From 2d114be1222e6dd5eb253e75b9df9c66e6f7a6ef Mon Sep 17 00:00:00 2001 From: LAX1DUDE Date: Thu, 10 Sep 2020 12:50:43 -0700 Subject: [PATCH] Delete classes.js --- javascript/classes.js | 229770 --------------------------------------- 1 file changed, 229770 deletions(-) delete mode 100644 javascript/classes.js diff --git a/javascript/classes.js b/javascript/classes.js deleted file mode 100644 index d45dadf..0000000 --- a/javascript/classes.js +++ /dev/null @@ -1,229770 +0,0 @@ -"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 #A&#A#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 * (var$11 * $t11 - var$12 * var$17) + var$8 * (var$12 * var$16 - var$10 * $t11) + var$9 * (var$10 * var$17 - var$11 * var$16); - $t12 = -nlegv_Matrix4f_determinant3x3($src.$m00, $src.$m01, $src.$m03, $src.$m20, $src.$m21, $src.$m23, $src.$m30, $src.$m31, $src.$m33); - $t13 = nlegv_Matrix4f_determinant3x3($src.$m00, $src.$m01, $src.$m02, $src.$m20, $src.$m21, $src.$m22, $src.$m30, $src.$m31, $src.$m32); - $t20 = nlegv_Matrix4f_determinant3x3($src.$m01, $src.$m02, $src.$m03, $src.$m11, $src.$m12, $src.$m13, $src.$m31, $src.$m32, $src.$m33); - $t21 = -nlegv_Matrix4f_determinant3x3($src.$m00, $src.$m02, $src.$m03, $src.$m10, $src.$m12, $src.$m13, $src.$m30, $src.$m32, $src.$m33); - $t22 = nlegv_Matrix4f_determinant3x3($src.$m00, $src.$m01, $src.$m03, $src.$m10, $src.$m11, $src.$m13, $src.$m30, $src.$m31, $src.$m33); - $t23 = -nlegv_Matrix4f_determinant3x3($src.$m00, $src.$m01, $src.$m02, $src.$m10, $src.$m11, $src.$m12, $src.$m30, $src.$m31, $src.$m32); - $t30 = -nlegv_Matrix4f_determinant3x3($src.$m01, $src.$m02, $src.$m03, $src.$m11, $src.$m12, $src.$m13, $src.$m21, $src.$m22, $src.$m23); - $t31 = nlegv_Matrix4f_determinant3x3($src.$m00, $src.$m02, $src.$m03, $src.$m10, $src.$m12, $src.$m13, $src.$m20, $src.$m22, $src.$m23); - $t32 = -nlegv_Matrix4f_determinant3x3($src.$m00, $src.$m01, $src.$m03, $src.$m10, $src.$m11, $src.$m13, $src.$m20, $src.$m21, $src.$m23); - $t33 = nlegv_Matrix4f_determinant3x3($src.$m00, $src.$m01, $src.$m02, $src.$m10, $src.$m11, $src.$m12, $src.$m20, $src.$m21, $src.$m22); - $dest.$m00 = $t00 * $determinant_inv; - $dest.$m11 = $t11 * $determinant_inv; - $dest.$m22 = $t22 * $determinant_inv; - $dest.$m33 = $t33 * $determinant_inv; - $dest.$m01 = $t10 * $determinant_inv; - $dest.$m10 = $t01 * $determinant_inv; - $dest.$m20 = $t02 * $determinant_inv; - $dest.$m02 = $t20 * $determinant_inv; - $dest.$m12 = $t21 * $determinant_inv; - $dest.$m21 = $t12 * $determinant_inv; - $dest.$m03 = $t30 * $determinant_inv; - $dest.$m30 = $t03 * $determinant_inv; - $dest.$m13 = $t31 * $determinant_inv; - $dest.$m31 = $t13 * $determinant_inv; - $dest.$m32 = $t23 * $determinant_inv; - $dest.$m23 = $t32 * $determinant_inv; - return $dest; -} -function nlegv_Matrix4f_equals($this, $m) { - return $m instanceof nlegv_Matrix4f && nlegv_Matrix4f_equal($this, $m) ? 1 : 0; -} -function nlegv_Matrix4f_equal($a, $b) { - var var$3; - a: { - b: { - if ($a.$m00 !== $b.$m00) - break b; - if ($a.$m01 !== $b.$m01) - break b; - if ($a.$m02 !== $b.$m02) - break b; - if ($a.$m03 !== $b.$m03) - break b; - if ($a.$m10 !== $b.$m10) - break b; - if ($a.$m11 !== $b.$m11) - break b; - if ($a.$m12 !== $b.$m12) - break b; - if ($a.$m13 !== $b.$m13) - break b; - if ($a.$m20 !== $b.$m20) - break b; - if ($a.$m21 !== $b.$m21) - break b; - if ($a.$m22 !== $b.$m22) - break b; - if ($a.$m23 !== $b.$m23) - break b; - if ($a.$m30 !== $b.$m30) - break b; - if ($a.$m31 !== $b.$m31) - break b; - if ($a.$m32 !== $b.$m32) - break b; - if ($a.$m33 === $b.$m33) { - var$3 = 1; - break a; - } - } - var$3 = 0; - } - return var$3; -} -function nlegv_Matrix3f() { - var a = this; nlegv_Matrix.call(a); - a.$m000 = 0.0; - a.$m010 = 0.0; - a.$m020 = 0.0; - a.$m100 = 0.0; - a.$m110 = 0.0; - a.$m120 = 0.0; - a.$m200 = 0.0; - a.$m210 = 0.0; - a.$m220 = 0.0; -} -function nlegv_Matrix3f__init_0() { - var var_0 = new nlegv_Matrix3f(); - nlegv_Matrix3f__init_(var_0); - return var_0; -} -function nlegv_Matrix3f__init_($this) { - nlegv_Matrix3f_setIdentity($this); -} -function nlegv_Matrix3f_load($this, $src) { - return nlegv_Matrix3f_load0($src, $this); -} -function nlegv_Matrix3f_load0($src, $dest) { - if ($dest === null) { - $dest = new nlegv_Matrix3f; - nlegv_Matrix3f_setIdentity($dest); - } - $dest.$m000 = $src.$m000; - $dest.$m100 = $src.$m100; - $dest.$m200 = $src.$m200; - $dest.$m010 = $src.$m010; - $dest.$m110 = $src.$m110; - $dest.$m210 = $src.$m210; - $dest.$m020 = $src.$m020; - $dest.$m120 = $src.$m120; - $dest.$m220 = $src.$m220; - return $dest; -} -function nlegv_Matrix3f_store($this, $buf) { - $buf = $buf.data; - $buf[0] = $this.$m000; - $buf[1] = $this.$m010; - $buf[2] = $this.$m020; - $buf[3] = $this.$m100; - $buf[4] = $this.$m110; - $buf[5] = $this.$m120; - $buf[6] = $this.$m200; - $buf[7] = $this.$m210; - $buf[8] = $this.$m220; - return $this; -} -function nlegv_Matrix3f_setIdentity0($this) { - return nlegv_Matrix3f_setIdentity($this); -} -function nlegv_Matrix3f_setIdentity($m) { - $m.$m000 = 1.0; - $m.$m010 = 0.0; - $m.$m020 = 0.0; - $m.$m100 = 0.0; - $m.$m110 = 1.0; - $m.$m120 = 0.0; - $m.$m200 = 0.0; - $m.$m210 = 0.0; - $m.$m220 = 1.0; - return $m; -} -function nlegv_Matrix3f_setZero($this) { - return nlegv_Matrix3f_setZero0($this); -} -function nlegv_Matrix3f_setZero0($m) { - $m.$m000 = 0.0; - $m.$m010 = 0.0; - $m.$m020 = 0.0; - $m.$m100 = 0.0; - $m.$m110 = 0.0; - $m.$m120 = 0.0; - $m.$m200 = 0.0; - $m.$m210 = 0.0; - $m.$m220 = 0.0; - return $m; -} -function nlegv_Matrix3f_equals($this, $m) { - return $m instanceof nlegv_Matrix3f && nlegv_Matrix3f_equal($this, $m) ? 1 : 0; -} -function nlegv_Matrix3f_equal($a, $b) { - var var$3; - a: { - b: { - if ($a.$m000 !== $b.$m000) - break b; - if ($a.$m010 !== $b.$m010) - break b; - if ($a.$m020 !== $b.$m020) - break b; - if ($a.$m100 !== $b.$m100) - break b; - if ($a.$m110 !== $b.$m110) - break b; - if ($a.$m120 !== $b.$m120) - break b; - if ($a.$m200 !== $b.$m200) - break b; - if ($a.$m210 !== $b.$m210) - break b; - if ($a.$m220 === $b.$m220) { - var$3 = 1; - break a; - } - } - var$3 = 0; - } - return var$3; -} -function nlegv_ReadableVector() { -} -function nlegv_Vector() { - jl_Object.call(this); -} -function nlegv_Vector_length($this) { - return jl_Math_sqrt(nlegv_Vector4f_lengthSquared($this)); -} -function nlegv_Vector_normalise($this) { - var $len, var$2, $l; - $len = jl_Math_sqrt(nlegv_Vector4f_lengthSquared($this)); - if ($len === 0.0) { - var$2 = new jl_IllegalStateException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(479); - $rt_throw(var$2); - } - $l = 1.0 / $len; - $this.$x0 = $this.$x0 * $l; - $this.$y0 = $this.$y0 * $l; - $this.$z0 = $this.$z0 * $l; - $this.$w = $this.$w * $l; - return $this; -} -function nlegv_ReadableVector2f() { -} -function nlegv_ReadableVector3f() { -} -function nlegv_WritableVector2f() { -} -function nlegv_WritableVector3f() { -} -function nlegv_Vector3f() { - var a = this; nlegv_Vector.call(a); - a.$x = 0.0; - a.$y = 0.0; - a.$z = 0.0; -} -function nlegv_Vector3f__init_0() { - var var_0 = new nlegv_Vector3f(); - nlegv_Vector3f__init_(var_0); - return var_0; -} -function nlegv_Vector3f__init_($this) { - return; -} -function nlegv_Vector3f_set($this, $x, $y, $z) { - $this.$x = $x; - $this.$y = $y; - $this.$z = $z; -} -function nlegv_ReadableVector4f() { -} -function nlegv_WritableVector4f() { -} -function nlegv_Vector4f() { - var a = this; nlegv_Vector.call(a); - a.$x0 = 0.0; - a.$y0 = 0.0; - a.$z0 = 0.0; - a.$w = 0.0; -} -function nlegv_Vector4f__init_0() { - var var_0 = new nlegv_Vector4f(); - nlegv_Vector4f__init_(var_0); - return var_0; -} -function nlegv_Vector4f__init_($this) { - return; -} -function nlegv_Vector4f_set($this, $x, $y, $z, $w) { - $this.$x0 = $x; - $this.$y0 = $y; - $this.$z0 = $z; - $this.$w = $w; -} -function nlegv_Vector4f_set0($this, $src) { - $this.$x0 = $src.$x0; - $this.$y0 = $src.$y0; - $this.$z0 = $src.$z0; - $this.$w = $src.$w; - return $this; -} -function nlegv_Vector4f_lengthSquared($this) { - return $this.$x0 * $this.$x0 + $this.$y0 * $this.$y0 + $this.$z0 * $this.$z0 + $this.$w * $this.$w; -} -function nlegv_Vector4f_scale($this, $scale) { - $this.$x0 = $this.$x0 * $scale; - $this.$y0 = $this.$y0 * $scale; - $this.$z0 = $this.$z0 * $scale; - $this.$w = $this.$w * $scale; - return $this; -} -function nlegv_Vector4f_getX($this) { - return $this.$x0; -} -function nlegv_Vector4f_getY($this) { - return $this.$y0; -} -function nlegv_Vector4f_getZ($this) { - return $this.$z0; -} -function nlegv_Vector4f_getW($this) { - return $this.$w; -} -function nlegv_Vector4f_equals($this, $obj) { - var $other; - if ($this === $obj) - return 1; - if ($obj === null) - return 0; - if (jl_Class_getClass($this.constructor) !== jl_Class_getClass($obj.constructor)) - return 0; - $other = $obj; - if ($this.$x0 === $other.$x0 && $this.$y0 === $other.$y0 && $this.$z0 === $other.$z0 && $this.$w === $other.$w) - return 1; - return 0; -} -function jn_ByteBufferImpl() { - var a = this; jn_ByteBuffer.call(a); - a.$direct = 0; - a.$readOnly = 0; -} -function jn_ByteBufferImpl_slice($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7; - var$1 = new jn_ByteBufferImpl; - var$2 = $this.$position; - var$3 = $this.$limit - $this.$position | 0; - var$4 = $this.$array; - var$5 = $this.$limit - $this.$position | 0; - var$6 = $this.$direct; - var$7 = $this.$readOnly; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$order = jn_ByteOrder_BIG_ENDIAN; - var$1.$start = var$2; - var$1.$array = var$4; - var$1.$position = 0; - var$1.$limit = var$5; - var$1.$direct = var$6; - var$1.$readOnly = var$7; - return var$1; -} -function jn_ByteBufferImpl_get($this) { - var var$1, var$2, var$3, var$4; - if ($this.$position < $this.$limit) { - var$1 = $this.$array.data; - var$2 = $this.$start; - var$3 = $this.$position; - $this.$position = var$3 + 1 | 0; - return var$1[var$2 + var$3 | 0]; - } - var$4 = new jn_BufferUnderflowException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -} -function jn_ByteBufferImpl_get0($this, $index) { - var var$2, var$3, var$4; - if ($index >= 0 && $index < $this.$limit) - return $this.$array.data[$this.$start + $index | 0]; - var$2 = new jl_IndexOutOfBoundsException; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(480)); - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $index, 10); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(411)); - $index = $this.$limit; - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $index, 10); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(64)); - 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_ByteBufferImpl_put($this, $index, $b) { - var var$3, var$4, var$5; - if ($this.$readOnly) { - var$3 = new jn_ReadOnlyBufferException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - if ($index >= 0 && $index < $this.$limit) { - $this.$array.data[$this.$start + $index | 0] = $b; - return $this; - } - var$4 = new jl_IndexOutOfBoundsException; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(480)); - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $index, 10); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(411)); - $index = $this.$limit; - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $index, 10); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(64)); - var$5 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - var$4.$message = var$5; - $rt_throw(var$4); -} -function jn_ByteBufferImpl_compact($this) { - var var$1, $sz, $dst, $src, $i, var$6, var$7, var$8, var$9; - if ($this.$readOnly) { - var$1 = new jn_ReadOnlyBufferException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - a: { - $sz = $this.$limit - $this.$position | 0; - if ($this.$position > 0) { - $dst = $this.$start; - $src = $this.$start + $this.$position | 0; - $i = 0; - while (true) { - if ($i >= $sz) - break a; - var$6 = $this.$array.data; - var$7 = $dst + 1 | 0; - var$8 = $this.$array.data; - var$9 = $src + 1 | 0; - var$6[$dst] = var$8[$src]; - $i = $i + 1 | 0; - $dst = var$7; - $src = var$9; - } - } - } - $this.$position = $sz; - $this.$limit = $this.$capacity; - $this.$mark = (-1); - return $this; -} -function jn_ByteBufferImpl_isReadOnly($this) { - return $this.$readOnly; -} -function jn_ByteBufferImpl_asIntBuffer($this) { - var $sz, var$2, var$3, var$4, var$5; - $sz = ($this.$limit - $this.$position | 0) / 4 | 0; - if ($this.$order !== jn_ByteOrder_BIG_ENDIAN) { - var$2 = new jn_IntBufferOverByteBufferLittleEndian; - var$3 = $this.$start + $this.$position | 0; - var$4 = $this.$readOnly; - var$2.$mark = (-1); - var$2.$capacity = $sz; - var$2.$limit = $sz; - var$2.$position = 0; - var$2.$limit = $sz; - var$2.$start3 = var$3; - var$2.$byteByffer = $this; - var$2.$readOnly3 = var$4; - return var$2; - } - var$2 = new jn_IntBufferOverByteBufferBigEndian; - var$4 = $this.$start + $this.$position | 0; - var$5 = $this.$readOnly; - var$2.$mark = (-1); - var$2.$capacity = $sz; - var$2.$limit = $sz; - var$2.$position = 0; - var$2.$limit = $sz; - var$2.$start3 = var$4; - var$2.$byteByffer = $this; - var$2.$readOnly3 = var$5; - return var$2; -} -function jn_ByteBufferImpl_asFloatBuffer($this) { - var $sz, var$2, var$3, var$4, var$5; - $sz = ($this.$limit - $this.$position | 0) / 4 | 0; - if ($this.$order !== jn_ByteOrder_LITTLE_ENDIAN) { - var$2 = new jn_FloatBufferOverByteBufferLittleEndian; - var$3 = $this.$start + $this.$position | 0; - var$4 = $this.$readOnly; - var$2.$mark = (-1); - var$2.$capacity = $sz; - var$2.$limit = $sz; - var$2.$position = 0; - var$2.$limit = $sz; - var$2.$start4 = var$3; - var$2.$byteByffer0 = $this; - var$2.$readOnly4 = var$4; - return var$2; - } - var$2 = new jn_FloatBufferOverByteBufferBigEndian; - var$4 = $this.$start + $this.$position | 0; - var$5 = $this.$readOnly; - var$2.$mark = (-1); - var$2.$capacity = $sz; - var$2.$limit = $sz; - var$2.$position = 0; - var$2.$limit = $sz; - var$2.$start4 = var$4; - var$2.$byteByffer0 = $this; - var$2.$readOnly4 = var$5; - return var$2; -} -function jl_Object$Monitor() { - var a = this; jl_Object.call(a); - a.$enteringThreads = null; - a.$notifyListeners = null; - a.$owner = null; - a.$count = 0; -} -function jl_Object$Monitor__init_0() { - var var_0 = new jl_Object$Monitor(); - jl_Object$Monitor__init_(var_0); - return var_0; -} -function jl_Object$Monitor__init_($this) { - $this.$owner = jl_Thread_currentThread0; -} -function jl_IllegalStateException() { - jl_Exception.call(this); -} -function jl_IllegalStateException__init_0() { - var var_0 = new jl_IllegalStateException(); - jl_IllegalStateException__init_(var_0); - return var_0; -} -function jl_IllegalStateException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jl_IllegalMonitorStateException() { - jl_RuntimeException.call(this); -} -function jl_IllegalMonitorStateException__init_0() { - var var_0 = new jl_IllegalMonitorStateException(); - jl_IllegalMonitorStateException__init_(var_0); - return var_0; -} -function jl_IllegalMonitorStateException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jn_IntBufferImpl() { - jn_IntBuffer.call(this); -} -function jn_IntBufferImpl_get($this) { - var var$1, var$2; - if ($this.$position < $this.$limit) { - var$1 = $this.$position; - $this.$position = var$1 + 1 | 0; - return $this.$getElement(var$1); - } - var$2 = new jn_BufferUnderflowException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); -} -function jn_IntBufferImpl_put($this, $b) { - var var$2, var$3; - if ($this.$readOnly2()) { - var$2 = new jn_ReadOnlyBufferException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - if ($this.$position < $this.$limit) { - var$3 = $this.$position; - $this.$position = var$3 + 1 | 0; - $this.$putElement(var$3, $b); - return $this; - } - var$2 = new jn_BufferOverflowException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); -} -function jn_IntBufferImpl_put0($this, $index, $b) { - var var$3, var$4, var$5; - if ($this.$readOnly2()) { - var$3 = new jn_ReadOnlyBufferException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - if ($index >= 0 && $index < $this.$limit) { - $this.$putElement($index, $b); - return $this; - } - var$4 = new jl_IndexOutOfBoundsException; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(480)); - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $index, 10); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(411)); - $b = $this.$limit; - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $b, 10); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(64)); - var$5 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - var$4.$message = var$5; - $rt_throw(var$4); -} -function jn_IntBufferImpl_isReadOnly($this) { - return $this.$readOnly2(); -} -function jn_IntBufferOverArray() { - var a = this; jn_IntBufferImpl.call(a); - a.$readOnly1 = 0; - a.$start1 = 0; - a.$array2 = null; -} -function jn_IntBufferOverArray_getElement($this, $index) { - return $this.$array2.data[$index + $this.$start1 | 0]; -} -function jn_IntBufferOverArray_putElement($this, $index, $value) { - $this.$array2.data[$index + $this.$start1 | 0] = $value; -} -function jn_IntBufferOverArray_readOnly($this) { - return $this.$readOnly1; -} -function nms_NBTTagByte() { - nms_NBTBase.call(this); - this.$data0 = 0; -} -function nms_NBTTagByte_write($this, $par1DataOutput) { - var var$2; - var$2 = $this.$data0; - $par1DataOutput.$out.$write0(var$2); - $par1DataOutput.$written = $par1DataOutput.$written + 1 | 0; -} -function nms_NBTTagByte_load($this, $par1DataInput) { - var var$2; - var$2 = $par1DataInput.$in.$read1(); - if (var$2 >= 0) { - $this.$data0 = var$2 << 24 >> 24; - return; - } - $par1DataInput = new ji_EOFException; - $par1DataInput.$suppressionEnabled = 1; - $par1DataInput.$writableStackTrace = 1; - $rt_throw($par1DataInput); -} -function nms_NBTTagByte_getId($this) { - return 1; -} -function nms_NBTTagByte_toString($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(44)); - var$2 = $this.$data0; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_NBTTagByte_copy($this) { - var var$1, var$2, var$3; - var$1 = new nms_NBTTagByte; - var$2 = $this.$name0 !== null ? $this.$name0 : $rt_s(44); - var$3 = $this.$data0; - if (var$2 !== null) - var$1.$name0 = var$2; - else - var$1.$name0 = $rt_s(44); - var$1.$data0 = var$3; - return var$1; -} -function nms_NBTTagByte_equals($this, $par1Obj) { - var $var2; - if (!nms_NBTBase_equals($this, $par1Obj)) - return 0; - $var2 = $par1Obj; - return $this.$data0 != $var2.$data0 ? 0 : 1; -} -function nms_NBTTagByte_hashCode($this) { - return jl_String_hashCode($this.$name0) ^ 1 ^ $this.$data0; -} -function nms_NBTTagShort() { - nms_NBTBase.call(this); - this.$data1 = 0; -} -function nms_NBTTagShort_write($this, $par1DataOutput) { - ji_DataOutputStream_writeShort($par1DataOutput, $this.$data1); -} -function nms_NBTTagShort_load($this, $par1DataInput) { - $this.$data1 = ji_DataInputStream_readShort($par1DataInput); -} -function nms_NBTTagShort_getId($this) { - return 2; -} -function nms_NBTTagShort_toString($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(44)); - var$2 = $this.$data1; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_NBTTagShort_copy($this) { - var var$1, var$2, var$3; - var$1 = new nms_NBTTagShort; - var$2 = $this.$name0 !== null ? $this.$name0 : $rt_s(44); - var$3 = $this.$data1; - if (var$2 !== null) - var$1.$name0 = var$2; - else - var$1.$name0 = $rt_s(44); - var$1.$data1 = var$3; - return var$1; -} -function nms_NBTTagShort_equals($this, $par1Obj) { - var $var2; - if (!nms_NBTBase_equals($this, $par1Obj)) - return 0; - $var2 = $par1Obj; - return $this.$data1 != $var2.$data1 ? 0 : 1; -} -function nms_NBTTagShort_hashCode($this) { - return jl_String_hashCode($this.$name0) ^ 2 ^ $this.$data1; -} -function nms_NBTTagInt() { - nms_NBTBase.call(this); - this.$data2 = 0; -} -function nms_NBTTagInt_write($this, $par1DataOutput) { - ji_DataOutputStream_writeInt($par1DataOutput, $this.$data2); -} -function nms_NBTTagInt_load($this, $par1DataInput) { - $this.$data2 = ji_DataInputStream_readInt($par1DataInput); -} -function nms_NBTTagInt_getId($this) { - return 3; -} -function nms_NBTTagInt_toString($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(44)); - var$2 = $this.$data2; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_NBTTagInt_copy($this) { - var var$1, var$2, var$3; - var$1 = new nms_NBTTagInt; - var$2 = $this.$name0 !== null ? $this.$name0 : $rt_s(44); - var$3 = $this.$data2; - if (var$2 !== null) - var$1.$name0 = var$2; - else - var$1.$name0 = $rt_s(44); - var$1.$data2 = var$3; - return var$1; -} -function nms_NBTTagInt_equals($this, $par1Obj) { - var $var2; - if (!nms_NBTBase_equals($this, $par1Obj)) - return 0; - $var2 = $par1Obj; - return $this.$data2 != $var2.$data2 ? 0 : 1; -} -function nms_NBTTagInt_hashCode($this) { - return jl_String_hashCode($this.$name0) ^ 3 ^ $this.$data2; -} -function nms_NBTTagLong() { - nms_NBTBase.call(this); - this.$data7 = Long_ZERO; -} -function nms_NBTTagLong_write($this, $par1DataOutput) { - ji_DataOutputStream_writeLong($par1DataOutput, $this.$data7); -} -function nms_NBTTagLong_load($this, $par1DataInput) { - $this.$data7 = ji_DataInputStream_readLong($par1DataInput); -} -function nms_NBTTagLong_getId($this) { - return 4; -} -function nms_NBTTagLong_toString($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(44)); - var$2 = $this.$data7; - jl_AbstractStringBuilder_insert1(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_NBTTagLong_copy($this) { - var var$1, var$2, var$3; - var$1 = new nms_NBTTagLong; - var$2 = $this.$name0 !== null ? $this.$name0 : $rt_s(44); - var$3 = $this.$data7; - if (var$2 !== null) - var$1.$name0 = var$2; - else - var$1.$name0 = $rt_s(44); - var$1.$data7 = var$3; - return var$1; -} -function nms_NBTTagLong_equals($this, $par1Obj) { - var $var2; - if (!nms_NBTBase_equals($this, $par1Obj)) - return 0; - $var2 = $par1Obj; - return Long_ne($this.$data7, $var2.$data7) ? 0 : 1; -} -function nms_NBTTagLong_hashCode($this) { - return jl_String_hashCode($this.$name0) ^ 4 ^ Long_xor($this.$data7, Long_shru($this.$data7, 32)).lo; -} -function nms_NBTTagFloat() { - nms_NBTBase.call(this); - this.$data3 = 0.0; -} -function nms_NBTTagFloat_write($this, $par1DataOutput) { - ji_DataOutputStream_writeInt($par1DataOutput, $rt_floatToIntBits($this.$data3)); -} -function nms_NBTTagFloat_load($this, $par1DataInput) { - $this.$data3 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInput)); -} -function nms_NBTTagFloat_getId($this) { - return 5; -} -function nms_NBTTagFloat_toString($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(44)); - var$2 = $this.$data3; - jl_AbstractStringBuilder_insert2(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_NBTTagFloat_copy($this) { - var var$1, var$2, var$3; - var$1 = new nms_NBTTagFloat; - var$2 = $this.$name0 !== null ? $this.$name0 : $rt_s(44); - var$3 = $this.$data3; - if (var$2 !== null) - var$1.$name0 = var$2; - else - var$1.$name0 = $rt_s(44); - var$1.$data3 = var$3; - return var$1; -} -function nms_NBTTagFloat_equals($this, $par1Obj) { - var $var2; - if (!nms_NBTBase_equals($this, $par1Obj)) - return 0; - $var2 = $par1Obj; - return $this.$data3 !== $var2.$data3 ? 0 : 1; -} -function nms_NBTTagFloat_hashCode($this) { - return jl_String_hashCode($this.$name0) ^ 5 ^ $rt_floatToIntBits($this.$data3); -} -function nms_NBTTagDouble() { - nms_NBTBase.call(this); - this.$data8 = 0.0; -} -function nms_NBTTagDouble_write($this, $par1DataOutput) { - ji_DataOutputStream_writeLong($par1DataOutput, $rt_doubleToLongBits($this.$data8)); -} -function nms_NBTTagDouble_load($this, $par1DataInput) { - $this.$data8 = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInput)); -} -function nms_NBTTagDouble_getId($this) { - return 6; -} -function nms_NBTTagDouble_toString($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(44)); - var$2 = $this.$data8; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_NBTTagDouble_copy($this) { - var var$1, var$2, var$3; - var$1 = new nms_NBTTagDouble; - var$2 = $this.$name0 !== null ? $this.$name0 : $rt_s(44); - var$3 = $this.$data8; - if (var$2 !== null) - var$1.$name0 = var$2; - else - var$1.$name0 = $rt_s(44); - var$1.$data8 = var$3; - return var$1; -} -function nms_NBTTagDouble_equals($this, $par1Obj) { - var $var2; - if (!nms_NBTBase_equals($this, $par1Obj)) - return 0; - $var2 = $par1Obj; - return $this.$data8 !== $var2.$data8 ? 0 : 1; -} -function nms_NBTTagDouble_hashCode($this) { - var $var1; - $var1 = $rt_doubleToLongBits($this.$data8); - return jl_String_hashCode($this.$name0) ^ 6 ^ Long_xor($var1, Long_shru($var1, 32)).lo; -} -function nms_NBTTagByteArray() { - nms_NBTBase.call(this); - this.$byteArray = null; -} -function nms_NBTTagByteArray_write($this, $par1DataOutput) { - var var$2, var$3; - ji_DataOutputStream_writeInt($par1DataOutput, $this.$byteArray.data.length); - var$2 = $this.$byteArray; - var$3 = var$2.data.length; - $par1DataOutput.$out.$write2(var$2, 0, var$3); - $par1DataOutput.$written = $par1DataOutput.$written + var$3 | 0; -} -function nms_NBTTagByteArray_load($this, $par1DataInput) { - var var$2; - $this.$byteArray = $rt_createByteArray(ji_DataInputStream_readInt($par1DataInput)); - var$2 = $this.$byteArray; - ji_DataInputStream_readFully($par1DataInput, var$2, 0, var$2.data.length); -} -function nms_NBTTagByteArray_getId($this) { - return 7; -} -function nms_NBTTagByteArray_toString($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(310)); - var$2 = $this.$byteArray.data.length; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(481)); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_NBTTagByteArray_copy($this) { - var $var1, var$2, var$3; - $var1 = $rt_createByteArray($this.$byteArray.data.length); - jl_System_arraycopy($this.$byteArray, 0, $var1, 0, $this.$byteArray.data.length); - var$2 = new nms_NBTTagByteArray; - var$3 = $this.$name0 !== null ? $this.$name0 : $rt_s(44); - if (var$3 !== null) - var$2.$name0 = var$3; - else - var$2.$name0 = $rt_s(44); - var$2.$byteArray = $var1; - return var$2; -} -function nms_NBTTagByteArray_equals($this, $par1Obj) { - return !nms_NBTBase_equals($this, $par1Obj) ? 0 : ju_Arrays_equals($this.$byteArray, $par1Obj.$byteArray); -} -function nms_NBTTagByteArray_hashCode($this) { - return jl_String_hashCode($this.$name0) ^ 7 ^ ju_Arrays_hashCode0($this.$byteArray); -} -function nms_NBTTagString() { - nms_NBTBase.call(this); - this.$data4 = null; -} -function nms_NBTTagString_write($this, $par1DataOutput) { - ji_DataOutputStream_writeUTF($par1DataOutput, $this.$data4); -} -function nms_NBTTagString_load($this, $par1DataInput) { - var var$2, var$3, var$4; - var$2 = ji_DataInputStream_readUnsignedShort($par1DataInput); - var$3 = $rt_createByteArray(var$2); - var$4 = $rt_createCharArray(var$2); - ji_DataInputStream_readFully($par1DataInput, var$3, 0, var$2); - $this.$data4 = ji_DataInputStream_convertUTF8WithBuf(var$3, var$4, 0, var$2); -} -function nms_NBTTagString_getId($this) { - return 8; -} -function nms_NBTTagString_toString($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(44)); - var$2 = $this.$data4; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_NBTTagString_copy($this) { - var var$1, var$2, var$3; - var$1 = new nms_NBTTagString; - var$2 = $this.$name0 !== null ? $this.$name0 : $rt_s(44); - var$3 = $this.$data4; - if (var$2 !== null) - var$1.$name0 = var$2; - else - var$1.$name0 = $rt_s(44); - var$1.$data4 = var$3; - if (var$3 !== null) - return var$1; - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(264); - $rt_throw(var$2); -} -function nms_NBTTagString_equals($this, $par1Obj) { - var $var2, var$3; - if (!nms_NBTBase_equals($this, $par1Obj)) - return 0; - a: { - b: { - $var2 = $par1Obj; - if (!($this.$data4 === null && $var2.$data4 === null)) { - if ($this.$data4 === null) - break b; - if (!jl_String_equals($this.$data4, $var2.$data4)) - break b; - } - var$3 = 1; - break a; - } - var$3 = 0; - } - return var$3; -} -function nms_NBTTagString_hashCode($this) { - return jl_String_hashCode($this.$name0) ^ 8 ^ jl_String_hashCode($this.$data4); -} -function nms_NBTTagIntArray() { - nms_NBTBase.call(this); - this.$intArray = null; -} -function nms_NBTTagIntArray_write($this, $par1DataOutput) { - var $var2; - ji_DataOutputStream_writeInt($par1DataOutput, $this.$intArray.data.length); - $var2 = 0; - while ($var2 < $this.$intArray.data.length) { - ji_DataOutputStream_writeInt($par1DataOutput, $this.$intArray.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_NBTTagIntArray_load($this, $par1DataInput) { - var $var2, $var3; - $var2 = ji_DataInputStream_readInt($par1DataInput); - $this.$intArray = $rt_createIntArray($var2); - $var3 = 0; - while ($var3 < $var2) { - $this.$intArray.data[$var3] = ji_DataInputStream_readInt($par1DataInput); - $var3 = $var3 + 1 | 0; - } -} -function nms_NBTTagIntArray_getId($this) { - return 11; -} -function nms_NBTTagIntArray_toString($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(310)); - var$2 = $this.$intArray.data.length; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(481)); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_NBTTagIntArray_copy($this) { - var $var1, var$2, var$3; - $var1 = $rt_createIntArray($this.$intArray.data.length); - jl_System_arraycopy($this.$intArray, 0, $var1, 0, $this.$intArray.data.length); - var$2 = new nms_NBTTagIntArray; - var$3 = $this.$name0 !== null ? $this.$name0 : $rt_s(44); - if (var$3 !== null) - var$2.$name0 = var$3; - else - var$2.$name0 = $rt_s(44); - var$2.$intArray = $var1; - return var$2; -} -function nms_NBTTagIntArray_equals($this, $par1Obj) { - var $var2, var$3; - if (!nms_NBTBase_equals($this, $par1Obj)) - return 0; - a: { - b: { - $var2 = $par1Obj; - if (!($this.$intArray === null && $var2.$intArray === null)) { - if ($this.$intArray === null) - break b; - if (!ju_Arrays_equals0($this.$intArray, $var2.$intArray)) - break b; - } - var$3 = 1; - break a; - } - var$3 = 0; - } - return var$3; -} -function nms_NBTTagIntArray_hashCode($this) { - return jl_String_hashCode($this.$name0) ^ 11 ^ ju_Arrays_hashCode($this.$intArray); -} -function otp_PlatformQueue() { - jl_Object.call(this); -} -function jl_Object$monitorExit$lambda$_8_0() { - jl_Object.call(this); - this.$_00 = null; -} -function jl_Object$monitorExit$lambda$_8_0_run(var$0) { - jl_Object_waitForOtherThreads(var$0.$_00); -} -function jl_Readable() { -} -function jn_CharBuffer() { - jn_Buffer.call(this); -} -function jn_CharBuffer_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(482)); - 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; - $i = 0; - while ($i < $length) { - var$11 = $offset + 1 | 0; - var$5 = $pos + 1 | 0; - var$4[$offset] = $this.$array0.data[$pos + $this.$start0 | 0]; - $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); - } - } - var$4 = $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)); - var$5 = var$4.length; - jl_AbstractStringBuilder_insert0(var$7, var$7.$length, var$5, 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_CharBuffer_get0($this, $dst) { - return jn_CharBuffer_get($this, $dst, 0, $dst.data.length); -} -function jn_CharBuffer_put($this, $src, $offset, $length) { - var var$4, var$5, var$6, $pos, var$8, var$9, $i, var$11; - if ($this.$readOnly0) { - 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(483)); - 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.$array0.data[$pos + $this.$start0 | 0] = 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_CharBuffer_put0($this, $src, $start, $end) { - var $sz, var$5, var$6, var$7, $pos, $pos_0; - if ($this.$readOnly0) { - $src = new jn_ReadOnlyBufferException; - $src.$suppressionEnabled = 1; - $src.$writableStackTrace = 1; - $rt_throw($src); - } - $sz = $end - $start | 0; - if (($this.$limit - $this.$position | 0) < $sz) { - $src = new jn_BufferOverflowException; - $src.$suppressionEnabled = 1; - $src.$writableStackTrace = 1; - $rt_throw($src); - } - if ($start >= 0 && $start < $src.$characters.data.length) { - if ($end > $src.$characters.data.length) { - var$5 = new jl_IndexOutOfBoundsException; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(483)); - jl_AbstractStringBuilder_insert0(var$6, var$6.$length, $end, 10); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(484)); - var$7 = $src.$characters.data.length; - jl_AbstractStringBuilder_insert0(var$6, var$6.$length, var$7, 10); - $src = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - var$5.$message = $src; - $rt_throw(var$5); - } - if ($start <= $end) { - $pos = $this.$position; - while ($start < $end) { - $pos_0 = $pos + 1 | 0; - var$7 = $start + 1 | 0; - $this.$array0.data[$pos + $this.$start0 | 0] = jl_String_charAt($src, $start); - $pos = $pos_0; - $start = var$7; - } - $this.$position = $this.$position + $sz | 0; - return $this; - } - $src = new jl_IndexOutOfBoundsException; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(485)); - jl_AbstractStringBuilder_insert0(var$5, var$5.$length, $start, 10); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(486)); - jl_AbstractStringBuilder_insert0(var$5, var$5.$length, $end, 10); - var$6 = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - $src.$suppressionEnabled = 1; - $src.$writableStackTrace = 1; - $src.$message = var$6; - $rt_throw($src); - } - var$6 = new jl_IndexOutOfBoundsException; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(485)); - jl_AbstractStringBuilder_insert0(var$5, var$5.$length, $start, 10); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(411)); - var$7 = $src.$characters.data.length; - jl_AbstractStringBuilder_insert0(var$5, var$5.$length, var$7, 10); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(64)); - $src = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - var$6.$message = $src; - $rt_throw(var$6); -} -function jn_CharBuffer_put1($this, $src) { - return jn_CharBuffer_put0($this, $src, 0, $src.$characters.data.length); -} -function jn_CharBuffer_hasArray($this) { - return 1; -} -function jn_CharBuffer_array($this) { - return $this.$array0; -} -function jn_CharBuffer_flip($this) { - $this.$limit = $this.$position; - $this.$position = 0; - $this.$mark = (-1); - return $this; -} -function jn_CharBuffer_position($this, $newPosition) { - jn_Buffer_position0($this, $newPosition); - return $this; -} -function cjj_GZIPException() { - ji_IOException.call(this); -} -function cjj_GZIPException__init_0() { - var var_0 = new cjj_GZIPException(); - cjj_GZIPException__init_(var_0); - return var_0; -} -function cjj_GZIPException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jl_CloneNotSupportedException() { - jl_Exception.call(this); -} -function jl_CloneNotSupportedException__init_0() { - var var_0 = new jl_CloneNotSupportedException(); - jl_CloneNotSupportedException__init_(var_0); - return var_0; -} -function jl_CloneNotSupportedException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jl_Enum() { - var a = this; jl_Object.call(a); - a.$name2 = null; - a.$ordinal = 0; -} -function jl_Enum_name($this) { - return $this.$name2; -} -function jl_Enum_ordinal($this) { - return $this.$ordinal; -} -function jl_Enum_toString($this) { - return $this.$name2; -} -function jl_Enum_equals($this, $other) { - return $this !== $other ? 0 : 1; -} -function jl_Enum_hashCode($this) { - return jl_Object_identity($this); -} -function jl_Enum_getDeclaringClass($this) { - var $result; - $result = jl_Class_getClass($this.constructor); - if (!(jl_Class_getClass($result.$platformClass.$meta.superclass) !== $rt_cls(jl_Enum) ? 0 : 1)) - $result = jl_Class_getClass($result.$platformClass.$meta.superclass); - return $result; -} -function jl_Enum_compareTo($this, $o) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = jl_Class_getClass($o.constructor); - if (!(jl_Class_getClass(var$2.$platformClass.$meta.superclass) !== $rt_cls(jl_Enum) ? 0 : 1)) - var$2 = jl_Class_getClass(var$2.$platformClass.$meta.superclass); - var$3 = var$2; - var$2 = jl_Class_getClass($this.constructor); - if (!(jl_Class_getClass(var$2.$platformClass.$meta.superclass) !== $rt_cls(jl_Enum) ? 0 : 1)) - var$2 = jl_Class_getClass(var$2.$platformClass.$meta.superclass); - if (var$3 === var$2) - return $rt_compare($this.$ordinal, $o.$ordinal); - 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(487)); - var$3 = jl_Class_getClass($this.constructor); - if (!(jl_Class_getClass(var$3.$platformClass.$meta.superclass) !== $rt_cls(jl_Enum) ? 0 : 1)) - var$3 = jl_Class_getClass(var$3.$platformClass.$meta.superclass); - var$5 = var$3; - if (var$5.$name === null) - var$5.$name = $rt_str(var$5.$platformClass.$meta.name); - var$6 = var$5.$name; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$6); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(488)); - var$6 = jl_Class_getClass($o.constructor); - if (!(jl_Class_getClass(var$6.$platformClass.$meta.superclass) !== $rt_cls(jl_Enum) ? 0 : 1)) - var$6 = jl_Class_getClass(var$6.$platformClass.$meta.superclass); - var$3 = var$6; - if (var$3.$name === null) - var$3.$name = $rt_str(var$3.$platformClass.$meta.name); - $o = var$3.$name; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $o); - $o = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $o; - $rt_throw(var$2); -} -function jl_Enum_compareTo0($this, var$1) { - return jl_Enum_compareTo($this, var$1); -} -function nle_BaseNCodec$CodecPolicy() { - jl_Enum.call(this); -} -var nle_BaseNCodec$CodecPolicy_STRICT = null; -var nle_BaseNCodec$CodecPolicy_LENIANT = null; -var nle_BaseNCodec$CodecPolicy_$VALUES = null; -function nle_BaseNCodec$CodecPolicy__clinit_() { - var var$1, var$2, var$3; - var$1 = new nle_BaseNCodec$CodecPolicy; - var$1.$name2 = $rt_s(489); - var$1.$ordinal = 0; - nle_BaseNCodec$CodecPolicy_STRICT = var$1; - var$1 = new nle_BaseNCodec$CodecPolicy; - var$1.$name2 = $rt_s(490); - var$1.$ordinal = 1; - nle_BaseNCodec$CodecPolicy_LENIANT = var$1; - var$2 = $rt_createArray(nle_BaseNCodec$CodecPolicy, 2); - var$3 = var$2.data; - var$3[0] = nle_BaseNCodec$CodecPolicy_STRICT; - var$3[1] = nle_BaseNCodec$CodecPolicy_LENIANT; - nle_BaseNCodec$CodecPolicy_$VALUES = var$2; -} -function nle_TextureLocation() { - var a = this; jl_Object.call(a); - a.$path = null; - a.$glObject = 0; -} -var nle_TextureLocation_locations = null; -function nle_TextureLocation__init_(var_0) { - var var_1 = new nle_TextureLocation(); - nle_TextureLocation__init_0(var_1, var_0); - return var_1; -} -function nle_TextureLocation__init_0($this, $path) { - $this.$path = $path; - $this.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, $this); -} -function nle_TextureLocation_bindTexture($this) { - var $r, var$2, var$3, var$4, var$5; - $r = nmc_Minecraft_theMinecraft.$renderEngine; - if ($this.$glObject == (-1)) { - $this.$glObject = nms_RenderEngine_getTexture($r, $this.$path); - if ($this.$glObject == (-1)) { - 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$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(491)); - var$2 = $this.$path; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$2); - var$2 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$2); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } - } - nms_RenderEngine_bindTexture0($r, $this.$glObject); -} -function nle_TextureLocation__clinit_() { - var var$1; - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - nle_TextureLocation_locations = var$1; -} -function jl_Object$monitorEnterWait$lambda$_6_0() { - var a = this; jl_Object.call(a); - a.$_0 = null; - a.$_1 = null; - a.$_2 = 0; - a.$_3 = null; -} -function jl_Object$monitorEnterWait$lambda$_6_0_run(var$0) { - var var$1, var$2, var$3, var$4; - var$1 = var$0.$_0; - var$2 = var$0.$_1; - var$3 = var$0.$_2; - var$4 = var$0.$_3; - if (jl_Thread_currentThread0 !== var$1) - jl_Thread_currentThread0 = var$1; - jl_Thread_currentThread0.$timeSliceStart = jl_System_currentTimeMillis(); - var$2.$monitor.$owner = var$1; - var$1 = var$2.$monitor; - var$1.$count = var$1.$count + var$3 | 0; - var$1 = null; - var$4.$realAsyncCallback.$complete(var$1); -} -function cjj_Checksum() { -} -function cjj_Adler32() { - var a = this; jl_Object.call(a); - a.$s1 = Long_ZERO; - a.$s2 = Long_ZERO; -} -function cjj_Adler32__init_0() { - var var_0 = new cjj_Adler32(); - cjj_Adler32__init_(var_0); - return var_0; -} -function cjj_Adler32__init_($this) { - $this.$s1 = Long_fromInt(1); - $this.$s2 = Long_ZERO; -} -function cjj_Adler32_reset($this, $init) { - $this.$s1 = Long_and($init, Long_fromInt(65535)); - $this.$s2 = Long_and(Long_shr($init, 16), Long_fromInt(65535)); -} -function cjj_Adler32_reset0($this) { - $this.$s1 = Long_fromInt(1); - $this.$s2 = Long_ZERO; -} -function cjj_Adler32_getValue($this) { - return Long_or(Long_shl($this.$s2, 16), $this.$s1); -} -function cjj_Adler32_update($this, $buf, $index, $len) { - var $len1, $len2, var$6, $k, var$8, var$9; - if ($len == 1) { - $buf = $buf.data; - $this.$s1 = Long_add($this.$s1, Long_fromInt($buf[$index] & 255)); - $this.$s2 = Long_add($this.$s2, $this.$s1); - $this.$s1 = Long_rem($this.$s1, Long_fromInt(65521)); - $this.$s2 = Long_rem($this.$s2, Long_fromInt(65521)); - return; - } - $len1 = $len / 5552 | 0; - $len2 = $len % 5552 | 0; - while (true) { - var$6 = $len1 + (-1) | 0; - if ($len1 <= 0) - break; - $k = 5552; - while (true) { - $len1 = $k + (-1) | 0; - if ($k <= 0) - break; - var$8 = $buf.data; - var$9 = $this.$s1; - $len = $index + 1 | 0; - $this.$s1 = Long_add(var$9, Long_fromInt(var$8[$index] & 255)); - $this.$s2 = Long_add($this.$s2, $this.$s1); - $k = $len1; - $index = $len; - } - $this.$s1 = Long_rem($this.$s1, Long_fromInt(65521)); - $this.$s2 = Long_rem($this.$s2, Long_fromInt(65521)); - $len1 = var$6; - } - while (true) { - $len = $len2 + (-1) | 0; - if ($len2 <= 0) - break; - var$8 = $buf.data; - var$9 = $this.$s1; - $len1 = $index + 1 | 0; - $this.$s1 = Long_add(var$9, Long_fromInt(var$8[$index] & 255)); - $this.$s2 = Long_add($this.$s2, $this.$s1); - $len2 = $len; - $index = $len1; - } - $this.$s1 = Long_rem($this.$s1, Long_fromInt(65521)); - $this.$s2 = Long_rem($this.$s2, Long_fromInt(65521)); -} -function jl_NullPointerException() { - jl_RuntimeException.call(this); -} -function jl_NullPointerException__init_() { - var var_0 = new jl_NullPointerException(); - jl_NullPointerException__init_0(var_0); - return var_0; -} -function jl_NullPointerException__init_0($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jl_IndexOutOfBoundsException() { - jl_RuntimeException.call(this); -} -function jl_IndexOutOfBoundsException__init_0() { - var var_0 = new jl_IndexOutOfBoundsException(); - jl_IndexOutOfBoundsException__init_(var_0); - return var_0; -} -function jl_IndexOutOfBoundsException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jlr_Array() { - jl_Object.call(this); -} -function jlr_Array__init_0() { - var var_0 = new jlr_Array(); - jlr_Array__init_(var_0); - return var_0; -} -function jlr_Array__init_($this) { - return; -} -function jlr_Array_getLength(var$1) { - if (var$1 === null || var$1.constructor.$meta.item === undefined) { - $rt_throw(jl_IllegalArgumentException__init_0()); - } - return var$1.data.length; -} -function jlr_Array_newInstance($componentType, $length) { - if ($componentType === null) { - $componentType = new jl_NullPointerException; - $componentType.$suppressionEnabled = 1; - $componentType.$writableStackTrace = 1; - $rt_throw($componentType); - } - if ($componentType === $rt_cls($rt_voidcls())) { - $componentType = new jl_IllegalArgumentException; - $componentType.$suppressionEnabled = 1; - $componentType.$writableStackTrace = 1; - $rt_throw($componentType); - } - if ($length >= 0) - return jlr_Array_newInstanceImpl($componentType.$platformClass, $length); - $componentType = new jl_NegativeArraySizeException; - $componentType.$suppressionEnabled = 1; - $componentType.$writableStackTrace = 1; - $rt_throw($componentType); -} -function jlr_Array_newInstanceImpl(var$1, var$2) { - if (var$1.$meta.primitive) { - if (var$1 == $rt_bytecls()) { - return $rt_createByteArray(var$2); - } - if (var$1 == $rt_shortcls()) { - return $rt_createShortArray(var$2); - } - if (var$1 == $rt_charcls()) { - return $rt_createCharArray(var$2); - } - if (var$1 == $rt_intcls()) { - return $rt_createIntArray(var$2); - } - if (var$1 == $rt_longcls()) { - return $rt_createLongArray(var$2); - } - if (var$1 == $rt_floatcls()) { - return $rt_createFloatArray(var$2); - } - if (var$1 == $rt_doublecls()) { - return $rt_createDoubleArray(var$2); - } - if (var$1 == $rt_booleancls()) { - return $rt_createBooleanArray(var$2); - } - } else { - return $rt_createArray(var$1, var$2) - } -} -function jl_ArrayStoreException() { - jl_RuntimeException.call(this); -} -function jl_ArrayStoreException__init_0() { - var var_0 = new jl_ArrayStoreException(); - jl_ArrayStoreException__init_(var_0); - return var_0; -} -function jl_ArrayStoreException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jl_UnsupportedOperationException() { - jl_RuntimeException.call(this); -} -function jl_UnsupportedOperationException__init_0() { - var var_0 = new jl_UnsupportedOperationException(); - jl_UnsupportedOperationException__init_(var_0); - return var_0; -} -function jl_UnsupportedOperationException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jn_ReadOnlyBufferException() { - jl_UnsupportedOperationException.call(this); -} -function jn_ReadOnlyBufferException__init_0() { - var var_0 = new jn_ReadOnlyBufferException(); - jn_ReadOnlyBufferException__init_(var_0); - return var_0; -} -function jn_ReadOnlyBufferException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jn_BufferOverflowException() { - jl_RuntimeException.call(this); -} -function jn_BufferOverflowException__init_0() { - var var_0 = new jn_BufferOverflowException(); - jn_BufferOverflowException__init_(var_0); - return var_0; -} -function jn_BufferOverflowException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jn_BufferUnderflowException() { - jl_RuntimeException.call(this); -} -function jn_BufferUnderflowException__init_0() { - var var_0 = new jn_BufferUnderflowException(); - jn_BufferUnderflowException__init_(var_0); - return var_0; -} -function jn_BufferUnderflowException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function ju_Map$Entry() { -} -function ju_MapEntry() { - var a = this; jl_Object.call(a); - a.$key = null; - a.$value0 = null; -} -function ju_MapEntry_equals($this, $object) { - var $entry, var$3; - if ($this === $object) - return 1; - if (!$rt_isInstance($object, ju_Map$Entry)) - return 0; - a: { - b: { - c: { - $entry = $object; - if ($this.$key === null) { - if ($entry.$getKey() !== null) - break c; - } else if (!$this.$key.$equals($entry.$getKey())) - break c; - if ($this.$value0 === null) { - if ($entry.$getValue() !== null) - break c; - break b; - } - if ($this.$value0.$equals($entry.$getValue())) - break b; - } - var$3 = 0; - break a; - } - var$3 = 1; - } - return var$3; -} -function ju_MapEntry_getKey($this) { - return $this.$key; -} -function ju_MapEntry_getValue($this) { - return $this.$value0; -} -function ju_MapEntry_hashCode($this) { - return ($this.$key === null ? 0 : $this.$key.$hashCode0()) ^ ($this.$value0 === null ? 0 : $this.$value0.$hashCode0()); -} -function ju_MapEntry_toString($this) { - var var$1, var$2; - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - var$2 = $this.$key; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2 === null ? $rt_s(47) : var$2.$toString()); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(492)); - var$2 = $this.$value0; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2 === null ? $rt_s(47) : var$2.$toString()); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function ju_HashMap$HashEntry() { - var a = this; ju_MapEntry.call(a); - a.$origKeyHash = 0; - a.$next1 = null; -} -function jl_StringIndexOutOfBoundsException() { - jl_IndexOutOfBoundsException.call(this); -} -function jl_StringIndexOutOfBoundsException__init_0() { - var var_0 = new jl_StringIndexOutOfBoundsException(); - jl_StringIndexOutOfBoundsException__init_(var_0); - return var_0; -} -function jl_StringIndexOutOfBoundsException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function ji_EOFException() { - ji_IOException.call(this); -} -function ji_EOFException__init_0() { - var var_0 = new ji_EOFException(); - ji_EOFException__init_(var_0); - return var_0; -} -function ji_EOFException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jl_VirtualMachineError() { - jl_Error.call(this); -} -function jl_VirtualMachineError__init_0() { - var var_0 = new jl_VirtualMachineError(); - jl_VirtualMachineError__init_(var_0); - return var_0; -} -function jl_VirtualMachineError__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jl_OutOfMemoryError() { - jl_VirtualMachineError.call(this); -} -function jl_OutOfMemoryError__init_0() { - var var_0 = new jl_OutOfMemoryError(); - jl_OutOfMemoryError__init_(var_0); - return var_0; -} -function jl_OutOfMemoryError__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function nms_GuiMemoryErrorScreen() { - nms_GuiScreen.call(this); -} -function nms_GuiMemoryErrorScreen__init_0() { - var var_0 = new nms_GuiMemoryErrorScreen(); - nms_GuiMemoryErrorScreen__init_(var_0); - return var_0; -} -function nms_GuiMemoryErrorScreen__init_($this) { - nms_GuiScreen__init_($this); -} -function nms_GuiMemoryErrorScreen_initGui($this) { - var $var1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9; - $var1 = nms_StringTranslate_instance; - var$2 = $this.$buttonList; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - var$3 = $this.$buttonList; - var$2 = new nms_GuiSmallButton; - var$4 = ($this.$width0 / 2 | 0) - 155 | 0; - var$5 = (($this.$height0 / 4 | 0) + 120 | 0) + 12 | 0; - var$6 = nms_StringTranslate_translateKey($var1, $rt_s(493)); - var$7 = null; - nms_GuiButton__init_0(var$2, 0, var$4, var$5, 150, 20, var$6); - var$2.$enumOptions = var$7; - ju_ArrayList_add(var$3, var$2); - var$2 = $this.$buttonList; - var$6 = new nms_GuiSmallButton; - var$8 = (($this.$width0 / 2 | 0) - 155 | 0) + 160 | 0; - var$9 = (($this.$height0 / 4 | 0) + 120 | 0) + 12 | 0; - $var1 = nms_StringTranslate_translateKey($var1, $rt_s(494)); - var$3 = null; - nms_GuiButton__init_0(var$6, 1, var$8, var$9, 150, 20, $var1); - var$6.$enumOptions = var$3; - ju_ArrayList_add(var$2, var$6); -} -function nms_GuiMemoryErrorScreen_actionPerformed($this, $par1GuiButton) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$id2) { - if ($par1GuiButton.$id2 == 1) - $this.$mc4.$running = 0; - return; - } - $par1GuiButton = $this.$mc4; - var$2 = nms_GuiMainMenu__init_0(); - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, $ptr); -} -function nms_GuiMemoryErrorScreen_keyTyped($this, $par1, $par2) { - return; -} -function nms_GuiMemoryErrorScreen_drawScreen($this, $par1, $par2, $par3) { - var var$4, var$5, var$6, var$7; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$4 = $this.$fontRenderer0; - var$5 = $this.$width0 / 2 | 0; - var$6 = (($this.$height0 / 4 | 0) - 60 | 0) + 20 | 0; - nms_FontRenderer_drawString(var$4, $rt_s(495), var$5 - (nms_FontRenderer_getStringWidth(var$4, $rt_s(495)) / 2 | 0) | 0, var$6, 16777215, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, $rt_s(496), ($this.$width0 / 2 | 0) - 140 | 0, ((($this.$height0 / 4 | 0) - 60 | 0) + 60 | 0) + 0 | 0, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, $rt_s(497), ($this.$width0 / 2 | 0) - 140 | 0, ((($this.$height0 / 4 | 0) - 60 | 0) + 60 | 0) + 18 | 0, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, $rt_s(498), ($this.$width0 / 2 | 0) - 140 | 0, ((($this.$height0 / 4 | 0) - 60 | 0) + 60 | 0) + 27 | 0, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, $rt_s(499), ($this.$width0 / 2 | 0) - 140 | 0, ((($this.$height0 / 4 | 0) - 60 | 0) + 60 | 0) + 36 | 0, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, $rt_s(500), ($this.$width0 / 2 | 0) - 140 | 0, ((($this.$height0 / 4 | 0) - 60 | 0) + 60 | 0) + 45 | 0, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, $rt_s(501), ($this.$width0 / 2 | 0) - 140 | 0, ((($this.$height0 / 4 | 0) - 60 | 0) + 60 | 0) + 63 | 0, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, $rt_s(502), ($this.$width0 / 2 | 0) - 140 | 0, ((($this.$height0 / 4 | 0) - 60 | 0) + 60 | 0) + 81 | 0, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, $rt_s(503), ($this.$width0 / 2 | 0) - 140 | 0, ((($this.$height0 / 4 | 0) - 60 | 0) + 60 | 0) + 90 | 0, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, $rt_s(504), ($this.$width0 / 2 | 0) - 140 | 0, ((($this.$height0 / 4 | 0) - 60 | 0) + 60 | 0) + 99 | 0, 10526880, 1); - var$6 = 0; - a: { - while (var$6 < $this.$buttonList.$size0) { - var$7 = $this.$buttonList; - if (var$6 < 0) - break a; - if (var$6 >= var$7.$size0) - break a; - var$7.$array1.data[var$6].$drawButton($this.$mc4, $par1, $par2); - var$6 = var$6 + 1 | 0; - } - return; - } - var$7 = new jl_IndexOutOfBoundsException; - var$7.$suppressionEnabled = 1; - var$7.$writableStackTrace = 1; - $rt_throw(var$7); -} -function cbpu_ByteHandler() { - jl_Object.call(this); -} -function cbpu_ByteHandler__init_0() { - var var_0 = new cbpu_ByteHandler(); - cbpu_ByteHandler__init_(var_0); - return var_0; -} -function cbpu_ByteHandler__init_($this) { - return; -} -function cbpu_ByteHandler_byteToLong($data, $offset, $size) { - var $result, $i, var$6; - $result = Long_ZERO; - $i = 0; - while ($i < $size) { - var$6 = $data.data; - $result = Long_or(Long_shl($result, 8), Long_and(Long_fromInt(var$6[$offset + $i | 0]), Long_fromInt(255))); - $i = $i + 1 | 0; - } - return $result; -} -function cbpu_ByteHandler_byteToString($data) { - var $str, var$3, var$4, $b, var$6; - $data = $data.data; - $str = new jl_StringBuilder; - $str.$buffer = $rt_createCharArray(16); - var$3 = $data.length; - var$4 = 0; - while (var$4 < var$3) { - $b = 255 & $data[var$4] & 65535; - var$6 = $str.$length; - jl_AbstractStringBuilder_insertSpace($str, var$6, var$6 + 1 | 0); - $str.$buffer.data[var$6] = $b; - var$4 = var$4 + 1 | 0; - } - return jl_String__init_0($str.$buffer, 0, $str.$length); -} -function cjj_Inflate() { - var a = this; jl_Object.call(a); - a.$mode = 0; - a.$method = 0; - a.$was = Long_ZERO; - a.$need = Long_ZERO; - a.$marker = 0; - a.$wrap0 = 0; - a.$wbits = 0; - a.$blocks = null; - a.$z2 = null; - a.$flags = 0; - a.$need_bytes = 0; - a.$crcbuf = null; - a.$gheader = null; - a.$tmp_string = null; -} -var cjj_Inflate_mark = null; -function cjj_Inflate_inflateReset($this) { - var var$1; - if ($this.$z2 === null) - return (-2); - var$1 = $this.$z2; - $this.$z2.$total_out = Long_ZERO; - var$1.$total_in = Long_ZERO; - $this.$z2.$msg = null; - $this.$mode = 14; - $this.$need_bytes = (-1); - cjj_InfBlocks_reset($this.$blocks); - return 0; -} -function cjj_Inflate_inflateEnd($this) { - var var$1; - if ($this.$blocks !== null) { - var$1 = $this.$blocks; - cjj_InfBlocks_reset(var$1); - var$1.$window = null; - var$1.$hufts = null; - } - return 0; -} -function cjj_Inflate_inflateInit($this, $w) { - var var$2; - $this.$z2.$msg = null; - $this.$blocks = null; - $this.$wrap0 = 0; - if ($w < 0) - $w = -$w; - else if ($w & 1073741824) { - $this.$wrap0 = 4; - $w = $w & (-1073741825); - if ($w < 48) - $w = $w & 15; - } else if ($w & (-32)) { - $this.$wrap0 = 4; - $w = $w & 15; - } else { - $this.$wrap0 = ($w >> 4) + 1 | 0; - if ($w < 48) - $w = $w & 15; - } - if ($w >= 8 && $w <= 15) { - if ($this.$blocks !== null && $this.$wbits != $w) { - var$2 = $this.$blocks; - cjj_InfBlocks_reset(var$2); - var$2.$window = null; - var$2.$hufts = null; - $this.$blocks = null; - } - $this.$wbits = $w; - $this.$blocks = cjj_InfBlocks__init_($this.$z2, 1 << $w); - cjj_Inflate_inflateReset($this); - return 0; - } - if ($this.$blocks !== null) { - var$2 = $this.$blocks; - cjj_InfBlocks_reset(var$2); - var$2.$window = null; - var$2.$hufts = null; - } - return (-2); -} -function cjj_Inflate_inflate($this, $f) { - var var$2, $r, $e, $foo, var$6, $b, var$8, $$je; - if ($this.$z2 !== null && $this.$z2.$next_in !== null) { - var$2 = $f != 4 ? 0 : (-5); - $r = (-5); - a: { - b: { - c: { - d: { - e: { - f: { - g: { - h: { - i: while (true) { - j: { - k: { - l: { - m: { - n: { - o: { - p: { - q: { - r: { - s: { - t: { - u: { - v: { - w: { - switch ($this.$mode) { - case 6: - $this.$mode = 13; - $this.$z2.$msg = $rt_s(505); - $this.$marker = 0; - return (-2); - case 7: - $r = cjj_InfBlocks_proc($this.$blocks, $r); - if ($r == (-3)) { - $this.$mode = 13; - $this.$marker = 0; - continue i; - } - if (!$r) - $r = var$2; - if ($r != 1) - break i; - $this.$was = $this.$z2.$adler.$getValue0(); - cjj_InfBlocks_reset($this.$blocks); - if (!$this.$wrap0) { - $this.$mode = 12; - $r = var$2; - continue i; - } - $this.$mode = 8; - $r = var$2; - break w; - case 12: - break e; - case 13: - return (-3); - case 14: - break r; - case 23: - try { - $r = cjj_Inflate_readBytes($this, 2, $r, var$2); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - return $e.$r; - } else { - throw $$e; - } - } - $this.$flags = $this.$need.lo & 65535; - if (($this.$flags & 255) != 8) { - $this.$z2.$msg = $rt_s(506); - $this.$mode = 13; - continue i; - } - if ($this.$flags & 57344) { - $this.$z2.$msg = $rt_s(507); - $this.$mode = 13; - continue i; - } - if ($this.$flags & 512) - cjj_Inflate_checksum($this, 2, $this.$need); - $this.$mode = 16; - break p; - case 2: - break d; - case 3: - break c; - case 4: - break b; - case 5: - var$2 = $r; - break a; - case 8: - break w; - case 9: - break v; - case 10: - break u; - case 11: - break t; - case 15: - break s; - case 16: - break p; - case 17: - break o; - case 18: - break n; - case 19: - break q; - case 20: - break l; - case 21: - break k; - case 22: - break; - default: - return (-2); - } - break j; - } - if (!$this.$z2.$avail_in) - return $r; - $e = $this.$z2; - $e.$avail_in = $e.$avail_in - 1 | 0; - $e = $this.$z2; - $e.$total_in = Long_add($e.$total_in, Long_fromInt(1)); - $foo = $this.$z2.$next_in.data; - $e = $this.$z2; - $f = $e.$next_in_index; - $e.$next_in_index = $f + 1 | 0; - $this.$need = Long_and(Long_fromInt(($foo[$f] & 255) << 24), new Long(4278190080, 0)); - $this.$mode = 9; - $r = var$2; - } - if (!$this.$z2.$avail_in) - return $r; - $e = $this.$z2; - $e.$avail_in = $e.$avail_in - 1 | 0; - $e = $this.$z2; - $e.$total_in = Long_add($e.$total_in, Long_fromInt(1)); - var$6 = $this.$need; - $foo = $this.$z2.$next_in.data; - $e = $this.$z2; - $f = $e.$next_in_index; - $e.$next_in_index = $f + 1 | 0; - $this.$need = Long_add(var$6, Long_and(Long_fromInt(($foo[$f] & 255) << 16), Long_fromInt(16711680))); - $this.$mode = 10; - $r = var$2; - } - if (!$this.$z2.$avail_in) - return $r; - $e = $this.$z2; - $e.$avail_in = $e.$avail_in - 1 | 0; - $e = $this.$z2; - $e.$total_in = Long_add($e.$total_in, Long_fromInt(1)); - var$6 = $this.$need; - $foo = $this.$z2.$next_in.data; - $e = $this.$z2; - $f = $e.$next_in_index; - $e.$next_in_index = $f + 1 | 0; - $this.$need = Long_add(var$6, Long_and(Long_fromInt(($foo[$f] & 255) << 8), Long_fromInt(65280))); - $this.$mode = 11; - $r = var$2; - } - if (!$this.$z2.$avail_in) - return $r; - $e = $this.$z2; - $e.$avail_in = $e.$avail_in - 1 | 0; - $e = $this.$z2; - $e.$total_in = Long_add($e.$total_in, Long_fromInt(1)); - var$6 = $this.$need; - $foo = $this.$z2.$next_in.data; - $e = $this.$z2; - $f = $e.$next_in_index; - $e.$next_in_index = $f + 1 | 0; - $this.$need = Long_add(var$6, Long_and(Long_fromInt($foo[$f]), Long_fromInt(255))); - if ($this.$flags) - $this.$need = Long_and(Long_or(Long_or(Long_or(Long_shr(Long_and($this.$need, Long_fromInt(-16777216)), 24), Long_shr(Long_and($this.$need, Long_fromInt(16711680)), 8)), Long_shl(Long_and($this.$need, Long_fromInt(65280)), 8)), Long_shl(Long_and($this.$need, Long_fromInt(65535)), 24)), new Long(4294967295, 0)); - if ($this.$was.lo != $this.$need.lo) - $this.$z2.$msg = $rt_s(508); - else if ($this.$flags && $this.$gheader !== null) - $this.$gheader.$crc0 = $this.$need; - $this.$mode = 15; - $r = var$2; - } - if (!($this.$wrap0 && $this.$flags)) { - if ($this.$z2.$msg === null) - break f; - if (!jl_String_equals($this.$z2.$msg, $rt_s(508))) - break f; - $this.$mode = 13; - $this.$marker = 5; - continue i; - } - try { - $r = cjj_Inflate_readBytes($this, 4, $r, var$2); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - return $e.$r; - } else { - throw $$e; - } - } - if ($this.$z2.$msg !== null && jl_String_equals($this.$z2.$msg, $rt_s(508))) { - $this.$mode = 13; - $this.$marker = 5; - continue i; - } - if (Long_eq($this.$need, Long_and($this.$z2.$total_out, new Long(4294967295, 0)))) { - $this.$z2.$msg = null; - break f; - } - $this.$z2.$msg = $rt_s(509); - $this.$mode = 13; - continue i; - } - if (!$this.$wrap0) { - $this.$mode = 7; - continue i; - } - try { - $r = cjj_Inflate_readBytes($this, 2, $r, var$2); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - return $e.$r; - } else { - throw $$e; - } - } - if (!($this.$wrap0 != 4 && !($this.$wrap0 & 2)) && Long_eq($this.$need, Long_fromInt(35615))) { - if ($this.$wrap0 == 4) - $this.$wrap0 = 2; - $this.$z2.$adler = cjj_CRC32__init_0(); - cjj_Inflate_checksum($this, 2, $this.$need); - if ($this.$gheader === null) - $this.$gheader = cjj_GZIPHeader__init_0(); - $this.$mode = 23; - continue i; - } - if ($this.$wrap0 & 2) { - $this.$mode = 13; - $this.$z2.$msg = $rt_s(510); - continue i; - } - $this.$flags = 0; - $this.$method = $this.$need.lo & 255; - $b = Long_shr($this.$need, 8).lo & 255; - if (!($this.$wrap0 & 1 && !((($this.$method << 8) + $b | 0) % 31 | 0)) && ($this.$method & 15) != 8) { - if ($this.$wrap0 != 4) { - $this.$mode = 13; - $this.$z2.$msg = $rt_s(510); - continue i; - } - $e = $this.$z2; - $e.$next_in_index = $e.$next_in_index - 2 | 0; - $e = $this.$z2; - $e.$avail_in = $e.$avail_in + 2 | 0; - $e = $this.$z2; - $e.$total_in = Long_sub($e.$total_in, Long_fromInt(2)); - $this.$wrap0 = 0; - $this.$mode = 7; - continue i; - } - if (($this.$method & 15) != 8) { - $this.$mode = 13; - $this.$z2.$msg = $rt_s(506); - continue i; - } - if ($this.$wrap0 == 4) - $this.$wrap0 = 1; - if ((($this.$method >> 4) + 8 | 0) > $this.$wbits) { - $this.$mode = 13; - $this.$z2.$msg = $rt_s(511); - continue i; - } - $this.$z2.$adler = cjj_Adler32__init_0(); - if ($b & 32) { - $this.$mode = 2; - break d; - } - $this.$mode = 7; - continue i; - } - break m; - } - try { - $r = cjj_Inflate_readBytes($this, 4, $r, var$2); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - return $e.$r; - } else { - throw $$e; - } - } - if ($this.$gheader !== null) - $this.$gheader.$time = $this.$need; - if ($this.$flags & 512) - cjj_Inflate_checksum($this, 4, $this.$need); - $this.$mode = 17; - } - try { - $r = cjj_Inflate_readBytes($this, 2, $r, var$2); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - return $e.$r; - } else { - throw $$e; - } - } - if ($this.$gheader !== null) { - $this.$gheader.$xflags = $this.$need.lo & 255; - $this.$gheader.$os = $this.$need.lo >> 8 & 255; - } - if ($this.$flags & 512) - cjj_Inflate_checksum($this, 2, $this.$need); - $this.$mode = 18; - } - if ($this.$flags & 1024) { - try { - $r = cjj_Inflate_readBytes($this, 2, $r, var$2); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - return $e.$r; - } else { - throw $$e; - } - } - if ($this.$gheader !== null) - $this.$gheader.$extra = $rt_createByteArray($this.$need.lo & 65535); - if ($this.$flags & 512) - cjj_Inflate_checksum($this, 2, $this.$need); - } else if ($this.$gheader !== null) - $this.$gheader.$extra = null; - $this.$mode = 19; - } - if ($this.$flags & 1024) - x: { - try { - $r = cjj_Inflate_readBytes0($this, $r, var$2); - if ($this.$gheader === null) - break x; - $foo = ji_ByteArrayOutputStream_toByteArray($this.$tmp_string); - var$8 = $foo.data; - $this.$tmp_string = null; - $f = var$8.length; - if ($f != $this.$gheader.$extra.data.length) { - $this.$z2.$msg = $rt_s(512); - $this.$mode = 13; - continue i; - } - jl_System_arraycopy($foo, 0, $this.$gheader.$extra, 0, $f); - break x; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - return $e.$r; - } else { - throw $$e; - } - } - } - else if ($this.$gheader !== null) - $this.$gheader.$extra = null; - $this.$mode = 20; - } - y: { - if ($this.$flags & 2048) { - z: { - try { - $r = cjj_Inflate_readString($this, $r, var$2); - if ($this.$gheader === null) - break z; - $this.$gheader.$name4 = ji_ByteArrayOutputStream_toByteArray($this.$tmp_string); - break z; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - break h; - } else { - throw $$e; - } - } - } - try { - $this.$tmp_string = null; - break y; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - break h; - } else { - throw $$e; - } - } - } else if ($this.$gheader !== null) - $this.$gheader.$name4 = null; - } - $this.$mode = 21; - } - ba: { - if ($this.$flags & 4096) { - bb: { - try { - $r = cjj_Inflate_readString($this, $r, var$2); - if ($this.$gheader === null) - break bb; - $this.$gheader.$comment = ji_ByteArrayOutputStream_toByteArray($this.$tmp_string); - break bb; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - break g; - } else { - throw $$e; - } - } - } - try { - $this.$tmp_string = null; - break ba; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - break g; - } else { - throw $$e; - } - } - } else if ($this.$gheader !== null) - $this.$gheader.$comment = null; - } - $this.$mode = 22; - } - if ($this.$flags & 512) { - try { - $r = cjj_Inflate_readBytes($this, 2, $r, var$2); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof cjj_Inflate$Return) { - $e = $$je; - return $e.$r; - } else { - throw $$e; - } - } - if ($this.$gheader !== null) - $this.$gheader.$hcrc = Long_and($this.$need, Long_fromInt(65535)).lo; - if (Long_ne($this.$need, Long_and($this.$z2.$adler.$getValue0(), Long_fromInt(65535)))) { - $this.$mode = 13; - $this.$z2.$msg = $rt_s(513); - $this.$marker = 5; - continue; - } - } - $this.$z2.$adler = cjj_CRC32__init_0(); - $this.$mode = 7; - } - return $r; - } - return $e.$r; - } - return $e.$r; - } - $this.$mode = 12; - } - return 1; - } - if (!$this.$z2.$avail_in) - return $r; - $e = $this.$z2; - $e.$avail_in = $e.$avail_in - 1 | 0; - $e = $this.$z2; - $e.$total_in = Long_add($e.$total_in, Long_fromInt(1)); - $foo = $this.$z2.$next_in.data; - $e = $this.$z2; - $r = $e.$next_in_index; - $e.$next_in_index = $r + 1 | 0; - $this.$need = Long_and(Long_fromInt(($foo[$r] & 255) << 24), new Long(4278190080, 0)); - $this.$mode = 3; - $r = var$2; - } - if (!$this.$z2.$avail_in) - return $r; - $e = $this.$z2; - $e.$avail_in = $e.$avail_in - 1 | 0; - $e = $this.$z2; - $e.$total_in = Long_add($e.$total_in, Long_fromInt(1)); - var$6 = $this.$need; - $foo = $this.$z2.$next_in.data; - $e = $this.$z2; - $r = $e.$next_in_index; - $e.$next_in_index = $r + 1 | 0; - $this.$need = Long_add(var$6, Long_and(Long_fromInt(($foo[$r] & 255) << 16), Long_fromInt(16711680))); - $this.$mode = 4; - $r = var$2; - } - if (!$this.$z2.$avail_in) - return $r; - $e = $this.$z2; - $e.$avail_in = $e.$avail_in - 1 | 0; - $e = $this.$z2; - $e.$total_in = Long_add($e.$total_in, Long_fromInt(1)); - var$6 = $this.$need; - $foo = $this.$z2.$next_in.data; - $e = $this.$z2; - $f = $e.$next_in_index; - $e.$next_in_index = $f + 1 | 0; - $this.$need = Long_add(var$6, Long_and(Long_fromInt(($foo[$f] & 255) << 8), Long_fromInt(65280))); - $this.$mode = 5; - } - if (!$this.$z2.$avail_in) - return var$2; - $e = $this.$z2; - $e.$avail_in = $e.$avail_in - 1 | 0; - $e = $this.$z2; - $e.$total_in = Long_add($e.$total_in, Long_fromInt(1)); - var$6 = $this.$need; - $foo = $this.$z2.$next_in.data; - $e = $this.$z2; - $f = $e.$next_in_index; - $e.$next_in_index = $f + 1 | 0; - $this.$need = Long_add(var$6, Long_and(Long_fromInt($foo[$f]), Long_fromInt(255))); - $this.$z2.$adler.$reset0($this.$need); - $this.$mode = 6; - return 2; - } - if ($f == 4 && $this.$mode == 14) - return 0; - return (-2); -} -function cjj_Inflate_readBytes($this, $n, $r, $f) { - var var$4, var$5, var$6, var$7; - if ($this.$need_bytes == (-1)) { - $this.$need_bytes = $n; - $this.$need = Long_ZERO; - } - while (true) { - if ($this.$need_bytes <= 0) { - if ($n == 2) - $this.$need = Long_and($this.$need, Long_fromInt(65535)); - else if ($n == 4) - $this.$need = Long_and($this.$need, new Long(4294967295, 0)); - $this.$need_bytes = (-1); - return $r; - } - if (!$this.$z2.$avail_in) - break; - var$4 = $this.$z2; - var$4.$avail_in = var$4.$avail_in - 1 | 0; - var$4 = $this.$z2; - var$4.$total_in = Long_add(var$4.$total_in, Long_fromInt(1)); - var$5 = $this.$need; - var$6 = $this.$z2.$next_in.data; - var$4 = $this.$z2; - var$7 = var$4.$next_in_index; - var$4.$next_in_index = var$7 + 1 | 0; - $this.$need = Long_or(var$5, Long_fromInt((var$6[var$7] & 255) << (($n - $this.$need_bytes | 0) * 8 | 0))); - $this.$need_bytes = $this.$need_bytes - 1 | 0; - $r = $f; - } - var$4 = new cjj_Inflate$Return; - var$4.$this$04 = $this; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - var$4.$r = $r; - $rt_throw(var$4); -} -function cjj_Inflate_readString($this, $r, $f) { - var var$3; - if ($this.$tmp_string === null) { - var$3 = new ji_ByteArrayOutputStream; - var$3.$buf1 = $rt_createByteArray(32); - $this.$tmp_string = var$3; - } - while (true) { - if (!$this.$z2.$avail_in) { - var$3 = new cjj_Inflate$Return; - var$3.$this$04 = $this; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$r = $r; - $rt_throw(var$3); - } - var$3 = $this.$z2; - var$3.$avail_in = var$3.$avail_in - 1 | 0; - var$3 = $this.$z2; - var$3.$total_in = Long_add(var$3.$total_in, Long_fromInt(1)); - $r = $this.$z2.$next_in.data[$this.$z2.$next_in_index]; - if ($r) - ji_ByteArrayOutputStream_write0($this.$tmp_string, $this.$z2.$next_in, $this.$z2.$next_in_index, 1); - $this.$z2.$adler.$update($this.$z2.$next_in, $this.$z2.$next_in_index, 1); - var$3 = $this.$z2; - var$3.$next_in_index = var$3.$next_in_index + 1 | 0; - if (!$r) - break; - $r = $f; - } - return $f; -} -function cjj_Inflate_readBytes0($this, $r, $f) { - var var$3; - if ($this.$tmp_string === null) { - var$3 = new ji_ByteArrayOutputStream; - var$3.$buf1 = $rt_createByteArray(32); - $this.$tmp_string = var$3; - } - while (Long_gt($this.$need, Long_ZERO)) { - if (!$this.$z2.$avail_in) { - var$3 = new cjj_Inflate$Return; - var$3.$this$04 = $this; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$r = $r; - $rt_throw(var$3); - } - var$3 = $this.$z2; - var$3.$avail_in = var$3.$avail_in - 1 | 0; - var$3 = $this.$z2; - var$3.$total_in = Long_add(var$3.$total_in, Long_fromInt(1)); - ji_ByteArrayOutputStream_write0($this.$tmp_string, $this.$z2.$next_in, $this.$z2.$next_in_index, 1); - $this.$z2.$adler.$update($this.$z2.$next_in, $this.$z2.$next_in_index, 1); - var$3 = $this.$z2; - var$3.$next_in_index = var$3.$next_in_index + 1 | 0; - $this.$need = Long_sub($this.$need, Long_fromInt(1)); - $r = $f; - } - return $r; -} -function cjj_Inflate_checksum($this, $n, $v) { - var $i; - $i = 0; - while ($i < $n) { - $this.$crcbuf.data[$i] = Long_and($v, Long_fromInt(255)).lo << 24 >> 24; - $v = Long_shr($v, 8); - $i = $i + 1 | 0; - } - $this.$z2.$adler.$update($this.$crcbuf, 0, $n); -} -function cjj_Inflate__clinit_() { - var var$1, var$2; - var$1 = $rt_createByteArray(4); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 0; - var$2[2] = (-1); - var$2[3] = (-1); - cjj_Inflate_mark = var$1; -} -function jl_ConsoleOutputStreamStderr() { - ji_OutputStream.call(this); -} -function jl_ConsoleOutputStreamStderr__init_0() { - var var_0 = new jl_ConsoleOutputStreamStderr(); - jl_ConsoleOutputStreamStderr__init_(var_0); - return var_0; -} -function jl_ConsoleOutputStreamStderr__init_($this) { - return; -} -function jl_ConsoleOutputStreamStderr_write($this, $b) { - $rt_putStderr($b); -} -function nms_AxisAlignedBB() { - var a = this; jl_Object.call(a); - a.$minX = 0.0; - a.$minY = 0.0; - a.$minZ = 0.0; - a.$maxX = 0.0; - a.$maxY = 0.0; - a.$maxZ = 0.0; -} -var nms_AxisAlignedBB_theAABBLocalPool = null; -function nms_AxisAlignedBB_getAABBPool() { - return jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool); -} -function nms_AxisAlignedBB_setBounds($this, $par1, $par3, $par5, $par7, $par9, $par11) { - $this.$minX = $par1; - $this.$minY = $par3; - $this.$minZ = $par5; - $this.$maxX = $par7; - $this.$maxY = $par9; - $this.$maxZ = $par11; - return $this; -} -function nms_AxisAlignedBB_addCoord($this, $par1, $par3, $par5) { - var $var7, $var9, $var11, $var13, $var15, $var17, var$10; - $var7 = $this.$minX; - $var9 = $this.$minY; - $var11 = $this.$minZ; - $var13 = $this.$maxX; - $var15 = $this.$maxY; - $var17 = $this.$maxZ; - var$10 = $rt_compare($par1, 0.0); - if (var$10 < 0) - $var7 = $var7 + $par1; - if (var$10 > 0) - $var13 = $var13 + $par1; - var$10 = $rt_compare($par3, 0.0); - if (var$10 < 0) - $var9 = $var9 + $par3; - if (var$10 > 0) - $var15 = $var15 + $par3; - var$10 = $rt_compare($par5, 0.0); - if (var$10 < 0) - $var11 = $var11 + $par5; - if (var$10 > 0) - $var17 = $var17 + $par5; - return nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), $var7, $var9, $var11, $var13, $var15, $var17); -} -function nms_AxisAlignedBB_expand($this, $par1, $par3, $par5) { - var $var7, $var9, $var11, $var13, $var15, $var17; - $var7 = $this.$minX - $par1; - $var9 = $this.$minY - $par3; - $var11 = $this.$minZ - $par5; - $var13 = $this.$maxX + $par1; - $var15 = $this.$maxY + $par3; - $var17 = $this.$maxZ + $par5; - return nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), $var7, $var9, $var11, $var13, $var15, $var17); -} -function nms_AxisAlignedBB_getOffsetBoundingBox($this, $par1, $par3, $par5) { - return nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), $this.$minX + $par1, $this.$minY + $par3, $this.$minZ + $par5, $this.$maxX + $par1, $this.$maxY + $par3, $this.$maxZ + $par5); -} -function nms_AxisAlignedBB_calculateXOffset($this, $par1AxisAlignedBB, $par2) { - var $var4, $var4_0; - if ($par1AxisAlignedBB.$maxY > $this.$minY && $par1AxisAlignedBB.$minY < $this.$maxY) { - if ($par1AxisAlignedBB.$maxZ > $this.$minZ && $par1AxisAlignedBB.$minZ < $this.$maxZ) { - if ($par2 <= 0.0) - $var4 = $par2; - else if ($par1AxisAlignedBB.$maxX > $this.$minX) - $var4 = $par2; - else { - $var4 = $this.$minX - $par1AxisAlignedBB.$maxX; - if ($var4 >= $par2) - $var4 = $par2; - } - if ($var4 >= 0.0) - $var4_0 = $var4; - else if ($par1AxisAlignedBB.$minX < $this.$maxX) - $var4_0 = $var4; - else { - $var4_0 = $this.$maxX - $par1AxisAlignedBB.$minX; - if ($var4_0 <= $var4) - $var4_0 = $var4; - } - return $var4_0; - } - return $par2; - } - return $par2; -} -function nms_AxisAlignedBB_calculateYOffset($this, $par1AxisAlignedBB, $par2) { - var $var4, $var4_0; - if ($par1AxisAlignedBB.$maxX > $this.$minX && $par1AxisAlignedBB.$minX < $this.$maxX) { - if ($par1AxisAlignedBB.$maxZ > $this.$minZ && $par1AxisAlignedBB.$minZ < $this.$maxZ) { - if ($par2 <= 0.0) - $var4 = $par2; - else if ($par1AxisAlignedBB.$maxY > $this.$minY) - $var4 = $par2; - else { - $var4 = $this.$minY - $par1AxisAlignedBB.$maxY; - if ($var4 >= $par2) - $var4 = $par2; - } - if ($var4 >= 0.0) - $var4_0 = $var4; - else if ($par1AxisAlignedBB.$minY < $this.$maxY) - $var4_0 = $var4; - else { - $var4_0 = $this.$maxY - $par1AxisAlignedBB.$minY; - if ($var4_0 <= $var4) - $var4_0 = $var4; - } - return $var4_0; - } - return $par2; - } - return $par2; -} -function nms_AxisAlignedBB_calculateZOffset($this, $par1AxisAlignedBB, $par2) { - var $var4, $var4_0; - if ($par1AxisAlignedBB.$maxX > $this.$minX && $par1AxisAlignedBB.$minX < $this.$maxX) { - if ($par1AxisAlignedBB.$maxY > $this.$minY && $par1AxisAlignedBB.$minY < $this.$maxY) { - if ($par2 <= 0.0) - $var4 = $par2; - else if ($par1AxisAlignedBB.$maxZ > $this.$minZ) - $var4 = $par2; - else { - $var4 = $this.$minZ - $par1AxisAlignedBB.$maxZ; - if ($var4 >= $par2) - $var4 = $par2; - } - if ($var4 >= 0.0) - $var4_0 = $var4; - else if ($par1AxisAlignedBB.$minZ < $this.$maxZ) - $var4_0 = $var4; - else { - $var4_0 = $this.$maxZ - $par1AxisAlignedBB.$minZ; - if ($var4_0 <= $var4) - $var4_0 = $var4; - } - return $var4_0; - } - return $par2; - } - return $par2; -} -function nms_AxisAlignedBB_intersectsWith($this, $par1AxisAlignedBB) { - return $par1AxisAlignedBB.$maxX > $this.$minX && $par1AxisAlignedBB.$minX < $this.$maxX ? ($par1AxisAlignedBB.$maxY > $this.$minY && $par1AxisAlignedBB.$minY < $this.$maxY ? ($par1AxisAlignedBB.$maxZ > $this.$minZ && $par1AxisAlignedBB.$minZ < $this.$maxZ ? 1 : 0) : 0) : 0; -} -function nms_AxisAlignedBB_offset($this, $par1, $par3, $par5) { - $this.$minX = $this.$minX + $par1; - $this.$minY = $this.$minY + $par3; - $this.$minZ = $this.$minZ + $par5; - $this.$maxX = $this.$maxX + $par1; - $this.$maxY = $this.$maxY + $par3; - $this.$maxZ = $this.$maxZ + $par5; - return $this; -} -function nms_AxisAlignedBB_isVecInside($this, $par1Vec3) { - return $par1Vec3.$xCoord > $this.$minX && $par1Vec3.$xCoord < $this.$maxX ? ($par1Vec3.$yCoord > $this.$minY && $par1Vec3.$yCoord < $this.$maxY ? ($par1Vec3.$zCoord > $this.$minZ && $par1Vec3.$zCoord < $this.$maxZ ? 1 : 0) : 0) : 0; -} -function nms_AxisAlignedBB_getAverageEdgeLength($this) { - return ($this.$maxX - $this.$minX + $this.$maxY - $this.$minY + $this.$maxZ - $this.$minZ) / 3.0; -} -function nms_AxisAlignedBB_contract($this, $par1, $par3, $par5) { - var $var7, $var9, $var11, $var13, $var15, $var17; - $var7 = $this.$minX + $par1; - $var9 = $this.$minY + $par3; - $var11 = $this.$minZ + $par5; - $var13 = $this.$maxX - $par1; - $var15 = $this.$maxY - $par3; - $var17 = $this.$maxZ - $par5; - return nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), $var7, $var9, $var11, $var13, $var15, $var17); -} -function nms_AxisAlignedBB_copy($this) { - return nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), $this.$minX, $this.$minY, $this.$minZ, $this.$maxX, $this.$maxY, $this.$maxZ); -} -function nms_AxisAlignedBB_calculateIntercept($this, $par1Vec3, $par2Vec3) { - var $var3, $var4, $var5, $var6, $var7, $var8, $var9, var$10, var$11, var$12, var$13, var$14, $var10; - $var3 = nms_Vec3_getIntermediateWithXValue($par1Vec3, $par2Vec3, $this.$minX); - $var4 = nms_Vec3_getIntermediateWithXValue($par1Vec3, $par2Vec3, $this.$maxX); - $var5 = nms_Vec3_getIntermediateWithYValue($par1Vec3, $par2Vec3, $this.$minY); - $var6 = nms_Vec3_getIntermediateWithYValue($par1Vec3, $par2Vec3, $this.$maxY); - $var7 = nms_Vec3_getIntermediateWithZValue($par1Vec3, $par2Vec3, $this.$minZ); - $var8 = nms_Vec3_getIntermediateWithZValue($par1Vec3, $par2Vec3, $this.$maxZ); - if (!nms_AxisAlignedBB_isVecInYZ($this, $var3)) - $var3 = null; - if (!nms_AxisAlignedBB_isVecInYZ($this, $var4)) - $var4 = null; - if (!nms_AxisAlignedBB_isVecInXZ($this, $var5)) - $var5 = null; - if (!nms_AxisAlignedBB_isVecInXZ($this, $var6)) - $var6 = null; - if (!nms_AxisAlignedBB_isVecInXY($this, $var7)) - $var7 = null; - if (!nms_AxisAlignedBB_isVecInXY($this, $var8)) - $var8 = null; - $var9 = null; - if ($var3 !== null) - $var9 = $var3; - a: { - if ($var4 !== null) { - if ($var9 !== null) { - var$10 = $var4.$xCoord - $par1Vec3.$xCoord; - var$11 = $var4.$yCoord - $par1Vec3.$yCoord; - var$12 = $var4.$zCoord - $par1Vec3.$zCoord; - var$12 = var$10 * var$10 + var$11 * var$11 + var$12 * var$12; - var$13 = $var9.$xCoord - $par1Vec3.$xCoord; - var$10 = $var9.$yCoord - $par1Vec3.$yCoord; - var$11 = $var9.$zCoord - $par1Vec3.$zCoord; - if (var$12 >= var$13 * var$13 + var$10 * var$10 + var$11 * var$11) - break a; - } - $var9 = $var4; - } - } - b: { - if ($var5 !== null) { - if ($var9 !== null) { - var$14 = $var5.$xCoord - $par1Vec3.$xCoord; - var$12 = $var5.$yCoord - $par1Vec3.$yCoord; - var$10 = $var5.$zCoord - $par1Vec3.$zCoord; - var$12 = var$14 * var$14 + var$12 * var$12 + var$10 * var$10; - var$10 = $var9.$xCoord - $par1Vec3.$xCoord; - var$11 = $var9.$yCoord - $par1Vec3.$yCoord; - var$14 = $var9.$zCoord - $par1Vec3.$zCoord; - if (var$12 >= var$10 * var$10 + var$11 * var$11 + var$14 * var$14) - break b; - } - $var9 = $var5; - } - } - c: { - if ($var6 !== null) { - if ($var9 !== null) { - var$12 = $var6.$xCoord - $par1Vec3.$xCoord; - var$10 = $var6.$yCoord - $par1Vec3.$yCoord; - var$11 = $var6.$zCoord - $par1Vec3.$zCoord; - var$13 = var$12 * var$12 + var$10 * var$10 + var$11 * var$11; - var$12 = $var9.$xCoord - $par1Vec3.$xCoord; - var$10 = $var9.$yCoord - $par1Vec3.$yCoord; - var$11 = $var9.$zCoord - $par1Vec3.$zCoord; - if (var$13 >= var$12 * var$12 + var$10 * var$10 + var$11 * var$11) - break c; - } - $var9 = $var6; - } - } - d: { - if ($var7 !== null) { - if ($var9 !== null) { - var$12 = $var7.$xCoord - $par1Vec3.$xCoord; - var$10 = $var7.$yCoord - $par1Vec3.$yCoord; - var$11 = $var7.$zCoord - $par1Vec3.$zCoord; - var$13 = var$12 * var$12 + var$10 * var$10 + var$11 * var$11; - var$12 = $var9.$xCoord - $par1Vec3.$xCoord; - var$10 = $var9.$yCoord - $par1Vec3.$yCoord; - var$11 = $var9.$zCoord - $par1Vec3.$zCoord; - if (var$13 >= var$12 * var$12 + var$10 * var$10 + var$11 * var$11) - break d; - } - $var9 = $var7; - } - } - if ($var8 !== null && !($var9 !== null && nms_Vec3_squareDistanceTo($par1Vec3, $var8) >= nms_Vec3_squareDistanceTo($par1Vec3, $var9))) - $var9 = $var8; - if ($var9 === null) - return null; - $var10 = (-1); - if ($var9 === $var3) - $var10 = 4; - if ($var9 === $var4) - $var10 = 5; - if ($var9 === $var5) - $var10 = 0; - if ($var9 === $var6) - $var10 = 1; - if ($var9 === $var7) - $var10 = 2; - if ($var9 === $var8) - $var10 = 3; - return nms_MovingObjectPosition__init_(0, 0, 0, $var10, $var9); -} -function nms_AxisAlignedBB_isVecInYZ($this, $par1Vec3) { - return $par1Vec3 === null ? 0 : $par1Vec3.$yCoord >= $this.$minY && $par1Vec3.$yCoord <= $this.$maxY && $par1Vec3.$zCoord >= $this.$minZ && $par1Vec3.$zCoord <= $this.$maxZ ? 1 : 0; -} -function nms_AxisAlignedBB_isVecInXZ($this, $par1Vec3) { - return $par1Vec3 === null ? 0 : $par1Vec3.$xCoord >= $this.$minX && $par1Vec3.$xCoord <= $this.$maxX && $par1Vec3.$zCoord >= $this.$minZ && $par1Vec3.$zCoord <= $this.$maxZ ? 1 : 0; -} -function nms_AxisAlignedBB_isVecInXY($this, $par1Vec3) { - return $par1Vec3 === null ? 0 : $par1Vec3.$xCoord >= $this.$minX && $par1Vec3.$xCoord <= $this.$maxX && $par1Vec3.$yCoord >= $this.$minY && $par1Vec3.$yCoord <= $this.$maxY ? 1 : 0; -} -function nms_AxisAlignedBB_setBB($this, $par1AxisAlignedBB) { - $this.$minX = $par1AxisAlignedBB.$minX; - $this.$minY = $par1AxisAlignedBB.$minY; - $this.$minZ = $par1AxisAlignedBB.$minZ; - $this.$maxX = $par1AxisAlignedBB.$maxX; - $this.$maxY = $par1AxisAlignedBB.$maxY; - $this.$maxZ = $par1AxisAlignedBB.$maxZ; -} -function nms_AxisAlignedBB_toString($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(514)); - var$2 = $this.$minX; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(344)); - var$2 = $this.$minY; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(344)); - var$2 = $this.$minZ; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(515)); - var$2 = $this.$maxX; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(344)); - var$2 = $this.$maxY; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(344)); - var$2 = $this.$maxZ; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(268)); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_AxisAlignedBB__clinit_() { - nms_AxisAlignedBB_theAABBLocalPool = new nms_AABBLocalPool; -} -function nms_GameSettings() { - var a = this; jl_Object.call(a); - a.$musicVolume = 0.0; - a.$soundVolume = 0.0; - a.$mouseSensitivity = 0.0; - a.$invertMouse = 0; - a.$renderDistance = 0; - a.$viewBobbing = 0; - a.$anaglyph = 0; - a.$advancedOpengl = 0; - a.$limitFramerate = 0; - a.$fancyGraphics = 0; - a.$enableFog = 0; - a.$ambientOcclusion = 0; - a.$clouds = 0; - a.$skin = null; - a.$chatVisibility = 0; - a.$chatColours = 0; - a.$chatLinks = 0; - a.$chatLinksPrompt = 0; - a.$chatOpacity = 0.0; - a.$serverTextures = 0; - a.$snooperEnabled = 0; - a.$fullScreen = 0; - a.$enableVsync = 0; - a.$hideServerAddress = 0; - a.$advancedItemTooltips = 0; - a.$pauseOnLostFocus = 0; - a.$showCape = 0; - a.$touchscreen = 0; - a.$antialiasMode = 0; - a.$overrideWidth = 0; - a.$overrideHeight = 0; - a.$heldItemTooltips = 0; - a.$chatScale = 0.0; - a.$chatWidth = 0.0; - a.$chatHeightUnfocused = 0.0; - a.$chatHeightFocused = 0.0; - a.$keyBindForward = null; - a.$keyBindLeft = null; - a.$keyBindBack = null; - a.$keyBindRight = null; - a.$keyBindJump = null; - a.$keyBindInventory = null; - a.$keyBindDrop = null; - a.$keyBindChat = null; - a.$keyBindSneak = null; - a.$keyBindAttack = null; - a.$keyBindUseItem = null; - a.$keyBindPlayerList = null; - a.$keyBindPickBlock = null; - a.$keyBindSprint = null; - a.$keyBindZoom = null; - a.$keyBindFunction = null; - a.$keyBindings = null; - a.$mc6 = null; - a.$difficulty = 0; - a.$hideGUI = 0; - a.$thirdPersonView = 0; - a.$showDebugInfo = 0; - a.$showDebugProfilerChart = 0; - a.$lastServer = null; - a.$noclip = 0; - a.$smoothCamera = 0; - a.$debugCamEnable = 0; - a.$noclipRate = 0.0; - a.$debugCamRate = 0.0; - a.$fovSetting = 0.0; - a.$gammaSetting = 0.0; - a.$guiScale = 0; - a.$particleSetting = 0; - a.$language = null; -} -var nms_GameSettings_RENDER_DISTANCES = null; -var nms_GameSettings_DIFFICULTIES = null; -var nms_GameSettings_GUISCALES = null; -var nms_GameSettings_CHAT_VISIBILITIES = null; -var nms_GameSettings_PARTICLES = null; -var nms_GameSettings_LIMIT_FRAMERATES = null; -var nms_GameSettings_AMBIENT_OCCLUSIONS = null; -var nms_GameSettings_ANTIALIASING = null; -function nms_GameSettings__init_(var_0) { - var var_1 = new nms_GameSettings(); - nms_GameSettings__init_0(var_1, var_0); - return var_1; -} -function nms_GameSettings__init_0($this, $par1Minecraft) { - var var$2, var$3, var$4, var$5; - $this.$musicVolume = 0.0; - $this.$soundVolume = 1.0; - $this.$mouseSensitivity = 0.5; - $this.$invertMouse = 0; - $this.$renderDistance = 1; - $this.$viewBobbing = 1; - $this.$anaglyph = 0; - $this.$advancedOpengl = 0; - $this.$limitFramerate = 1; - $this.$fancyGraphics = 0; - $this.$enableFog = 1; - $this.$ambientOcclusion = 0; - $this.$clouds = 0; - $this.$skin = $rt_s(516); - $this.$chatVisibility = 0; - $this.$chatColours = 1; - $this.$chatLinks = 1; - $this.$chatLinksPrompt = 1; - $this.$chatOpacity = 1.0; - $this.$serverTextures = 1; - $this.$snooperEnabled = 0; - $this.$fullScreen = 0; - $this.$enableVsync = 1; - $this.$hideServerAddress = 0; - $this.$advancedItemTooltips = 0; - $this.$pauseOnLostFocus = 1; - $this.$showCape = 1; - $this.$touchscreen = 0; - $this.$antialiasMode = 1; - $this.$overrideWidth = 0; - $this.$overrideHeight = 0; - $this.$heldItemTooltips = 1; - $this.$chatScale = 1.0; - $this.$chatWidth = 1.0; - $this.$chatHeightUnfocused = 0.44366195797920227; - $this.$chatHeightFocused = 1.0; - var$2 = new nms_KeyBinding; - var$2.$pressTime = 0; - var$2.$keyDescription = $rt_s(517); - var$2.$keyCode = 17; - ju_ArrayList_add(nms_KeyBinding_keybindArray, var$2); - nms_IntHashMap_addKey(nms_KeyBinding_hash, 17, var$2); - $this.$keyBindForward = var$2; - var$3 = new nms_KeyBinding; - var$3.$pressTime = 0; - var$3.$keyDescription = $rt_s(518); - var$3.$keyCode = 30; - ju_ArrayList_add(nms_KeyBinding_keybindArray, var$3); - nms_IntHashMap_addKey(nms_KeyBinding_hash, 30, var$3); - $this.$keyBindLeft = var$3; - var$3 = new nms_KeyBinding; - var$3.$pressTime = 0; - var$3.$keyDescription = $rt_s(519); - var$3.$keyCode = 31; - ju_ArrayList_add(nms_KeyBinding_keybindArray, var$3); - nms_IntHashMap_addKey(nms_KeyBinding_hash, 31, var$3); - $this.$keyBindBack = var$3; - var$3 = new nms_KeyBinding; - var$3.$pressTime = 0; - var$3.$keyDescription = $rt_s(520); - var$3.$keyCode = 32; - ju_ArrayList_add(nms_KeyBinding_keybindArray, var$3); - nms_IntHashMap_addKey(nms_KeyBinding_hash, 32, var$3); - $this.$keyBindRight = var$3; - var$3 = new nms_KeyBinding; - var$3.$pressTime = 0; - var$3.$keyDescription = $rt_s(521); - var$3.$keyCode = 57; - ju_ArrayList_add(nms_KeyBinding_keybindArray, var$3); - nms_IntHashMap_addKey(nms_KeyBinding_hash, 57, var$3); - $this.$keyBindJump = var$3; - var$3 = new nms_KeyBinding; - var$3.$pressTime = 0; - var$3.$keyDescription = $rt_s(522); - var$3.$keyCode = 18; - ju_ArrayList_add(nms_KeyBinding_keybindArray, var$3); - nms_IntHashMap_addKey(nms_KeyBinding_hash, 18, var$3); - $this.$keyBindInventory = var$3; - $this.$keyBindDrop = nms_KeyBinding__init_($rt_s(523), 16); - $this.$keyBindChat = nms_KeyBinding__init_($rt_s(524), 20); - $this.$keyBindSneak = nms_KeyBinding__init_($rt_s(525), 42); - $this.$keyBindAttack = nms_KeyBinding__init_($rt_s(526), (-100)); - $this.$keyBindUseItem = nms_KeyBinding__init_($rt_s(527), (-99)); - $this.$keyBindPlayerList = nms_KeyBinding__init_($rt_s(528), 15); - $this.$keyBindPickBlock = nms_KeyBinding__init_($rt_s(529), (-98)); - $this.$keyBindSprint = nms_KeyBinding__init_($rt_s(530), 19); - $this.$keyBindZoom = nms_KeyBinding__init_($rt_s(531), 46); - $this.$keyBindFunction = nms_KeyBinding__init_($rt_s(532), 33); - var$4 = $rt_createArray(nms_KeyBinding, 16); - var$5 = var$4.data; - var$5[0] = $this.$keyBindAttack; - var$5[1] = $this.$keyBindUseItem; - var$5[2] = $this.$keyBindForward; - var$5[3] = $this.$keyBindLeft; - var$5[4] = $this.$keyBindBack; - var$5[5] = $this.$keyBindRight; - var$5[6] = $this.$keyBindJump; - var$5[7] = $this.$keyBindSneak; - var$5[8] = $this.$keyBindDrop; - var$5[9] = $this.$keyBindInventory; - var$5[10] = $this.$keyBindChat; - var$5[11] = $this.$keyBindPlayerList; - var$5[12] = $this.$keyBindPickBlock; - var$5[13] = $this.$keyBindSprint; - var$5[14] = $this.$keyBindZoom; - var$5[15] = $this.$keyBindFunction; - $this.$keyBindings = var$4; - $this.$difficulty = 2; - $this.$hideGUI = 0; - $this.$thirdPersonView = 0; - $this.$showDebugInfo = 0; - $this.$showDebugProfilerChart = 1; - $this.$lastServer = $rt_s(44); - $this.$noclip = 0; - $this.$smoothCamera = 0; - $this.$debugCamEnable = 0; - $this.$noclipRate = 1.0; - $this.$debugCamRate = 1.0; - $this.$fovSetting = 0.0; - $this.$gammaSetting = 1.0; - $this.$guiScale = 3; - $this.$particleSetting = 0; - $this.$language = $rt_s(533); - $this.$mc6 = $par1Minecraft; - nms_GameSettings_loadOptions($this); -} -function nms_GameSettings_getKeyBindingDescription($this, $par1) { - return nms_StringTranslate_translateKey(nms_StringTranslate_instance, $this.$keyBindings.data[$par1].$keyDescription); -} -function nms_GameSettings_getOptionDisplayString($this, $par1) { - var $var2, var$3, var$4; - $var2 = $this.$keyBindings.data[$par1].$keyCode; - if ($var2 < 0) { - var$3 = $rt_createArray(jl_Object, 1); - var$3.data[0] = jl_Integer_valueOf($var2 + 101 | 0); - var$4 = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(534), var$3); - } else { - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = $var2 >= 0 && $var2 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[$var2] : $rt_s(47); - } - return var$4; -} -function nms_GameSettings_getKeyDisplayString($par0) { - var var$2, var$3; - if ($par0 < 0) { - var$2 = $rt_createArray(jl_Object, 1); - var$2.data[0] = jl_Integer_valueOf($par0 + 101 | 0); - var$3 = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(534), var$2); - } else { - nlea_EaglerAdapterImpl2_$callClinit(); - var$3 = $par0 >= 0 && $par0 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[$par0] : $rt_s(47); - } - return var$3; -} -function nms_GameSettings_setKeyBinding($this, $par1, $par2) { - $this.$keyBindings.data[$par1].$keyCode = $par2; - nms_GameSettings_saveOptions($this); -} -function nms_GameSettings_setOptionFloatValue($this, $par1EnumOptions, $par2) { - if ($par1EnumOptions === nms_EnumOptions_MUSIC) - $this.$musicVolume = $par2; - if ($par1EnumOptions === nms_EnumOptions_SOUND) - $this.$soundVolume = $par2; - if ($par1EnumOptions === nms_EnumOptions_SENSITIVITY) - $this.$mouseSensitivity = $par2; - if ($par1EnumOptions === nms_EnumOptions_FOV) - $this.$fovSetting = $par2; - if ($par1EnumOptions === nms_EnumOptions_GAMMA) - $this.$gammaSetting = $par2; - if ($par1EnumOptions === nms_EnumOptions_CHAT_OPACITY) { - $this.$chatOpacity = $par2; - nms_GuiNewChat_func_96132_b($this.$mc6.$ingameGUI.$persistantChatGUI); - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_HEIGHT_FOCUSED) { - $this.$chatHeightFocused = $par2; - nms_GuiNewChat_func_96132_b($this.$mc6.$ingameGUI.$persistantChatGUI); - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_HEIGHT_UNFOCUSED) { - $this.$chatHeightUnfocused = $par2; - nms_GuiNewChat_func_96132_b($this.$mc6.$ingameGUI.$persistantChatGUI); - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_WIDTH) { - $this.$chatWidth = $par2; - nms_GuiNewChat_func_96132_b($this.$mc6.$ingameGUI.$persistantChatGUI); - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_SCALE) { - $this.$chatScale = $par2; - nms_GuiNewChat_func_96132_b($this.$mc6.$ingameGUI.$persistantChatGUI); - } -} -function nms_GameSettings_setOptionValue($this, $par1EnumOptions, $par2) { - if ($par1EnumOptions === nms_EnumOptions_INVERT_MOUSE) - $this.$invertMouse = $this.$invertMouse ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_RENDER_DISTANCE) - $this.$renderDistance = ($this.$renderDistance + $par2 | 0) & 3; - if ($par1EnumOptions === nms_EnumOptions_GUI_SCALE) - $this.$guiScale = ($this.$guiScale + $par2 | 0) & 3; - if ($par1EnumOptions === nms_EnumOptions_PARTICLES) - $this.$particleSetting = ($this.$particleSetting + $par2 | 0) % 3 | 0; - if ($par1EnumOptions === nms_EnumOptions_VIEW_BOBBING) - $this.$viewBobbing = $this.$viewBobbing ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_RENDER_CLOUDS) - $this.$clouds = $this.$clouds ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_ENABLE_FOG) - $this.$enableFog = $this.$enableFog ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_ANAGLYPH) { - $this.$anaglyph = $this.$anaglyph ? 0 : 1; - nms_RenderEngine_refreshTextures($this.$mc6.$renderEngine); - } - if ($par1EnumOptions === nms_EnumOptions_FRAMERATE_LIMIT) - $this.$limitFramerate = (($this.$limitFramerate + $par2 | 0) + 3 | 0) % 3 | 0; - if ($par1EnumOptions === nms_EnumOptions_DIFFICULTY) - $this.$difficulty = ($this.$difficulty + $par2 | 0) & 3; - if ($par1EnumOptions === nms_EnumOptions_GRAPHICS) { - $this.$fancyGraphics = $this.$fancyGraphics ? 0 : 1; - nms_RenderGlobal_loadRenderers($this.$mc6.$renderGlobal); - } - if ($par1EnumOptions === nms_EnumOptions_AMBIENT_OCCLUSION) { - $this.$ambientOcclusion = ($this.$ambientOcclusion + $par2 | 0) % 3 | 0; - nms_RenderGlobal_loadRenderers($this.$mc6.$renderGlobal); - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_VISIBILITY) - $this.$chatVisibility = ($this.$chatVisibility + $par2 | 0) % 3 | 0; - if ($par1EnumOptions === nms_EnumOptions_CHAT_COLOR) - $this.$chatColours = $this.$chatColours ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_CHAT_LINKS) - $this.$chatLinks = $this.$chatLinks ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_CHAT_LINKS_PROMPT) - $this.$chatLinksPrompt = $this.$chatLinksPrompt ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_USE_SERVER_TEXTURES) - $this.$serverTextures = $this.$serverTextures ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_SNOOPER_ENABLED) - $this.$snooperEnabled = $this.$snooperEnabled ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_SHOW_CAPE) - $this.$showCape = $this.$showCape ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_ANTIALIASING) - $this.$antialiasMode = ($this.$antialiasMode + $par2 | 0) % 5 | 0; - if ($par1EnumOptions === nms_EnumOptions_USE_FULLSCREEN) - $this.$fullScreen = $this.$fullScreen ? 0 : 1; - if ($par1EnumOptions === nms_EnumOptions_ENABLE_VSYNC) { - $this.$enableVsync = $this.$enableVsync ? 0 : 1; - nlea_EaglerAdapterImpl2_$callClinit(); - } - nms_GameSettings_saveOptions($this); -} -function nms_GameSettings_getOptionFloatValue($this, $par1EnumOptions) { - var var$2; - a: { - if ($par1EnumOptions === nms_EnumOptions_FOV) { - var$2 = $this.$fovSetting; - break a; - } - if ($par1EnumOptions === nms_EnumOptions_GAMMA) { - var$2 = $this.$gammaSetting; - break a; - } - if ($par1EnumOptions === nms_EnumOptions_MUSIC) { - var$2 = $this.$musicVolume; - break a; - } - if ($par1EnumOptions === nms_EnumOptions_SOUND) { - var$2 = $this.$soundVolume; - break a; - } - if ($par1EnumOptions === nms_EnumOptions_SENSITIVITY) { - var$2 = $this.$mouseSensitivity; - break a; - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_OPACITY) { - var$2 = $this.$chatOpacity; - break a; - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_HEIGHT_FOCUSED) { - var$2 = $this.$chatHeightFocused; - break a; - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_HEIGHT_UNFOCUSED) { - var$2 = $this.$chatHeightUnfocused; - break a; - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_SCALE) { - var$2 = $this.$chatScale; - break a; - } - if ($par1EnumOptions !== nms_EnumOptions_CHAT_WIDTH) { - var$2 = 0.0; - break a; - } - var$2 = $this.$chatWidth; - } - return var$2; -} -function nms_GameSettings_getOptionOrdinalValue($this, $par1EnumOptions) { - nms_EnumOptionsHelper_$callClinit(); - switch (nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[$par1EnumOptions.$ordinal]) { - case 1: - break; - case 2: - return $this.$viewBobbing; - case 3: - return $this.$anaglyph; - case 4: - return $this.$advancedOpengl; - case 5: - return $this.$clouds; - case 6: - return $this.$chatColours; - case 7: - return $this.$chatLinks; - case 8: - return $this.$chatLinksPrompt; - case 9: - return $this.$serverTextures; - case 10: - return $this.$snooperEnabled; - case 11: - return $this.$fullScreen; - case 12: - return $this.$enableVsync; - case 13: - return $this.$showCape; - case 14: - return $this.$touchscreen; - case 15: - return $this.$enableFog; - default: - return 0; - } - return $this.$invertMouse; -} -function nms_GameSettings_getTranslation($par0ArrayOfStr, $par1) { - if (!($par1 >= 0 && $par1 < $par0ArrayOfStr.data.length)) - $par1 = 0; - $par0ArrayOfStr = $par0ArrayOfStr.data; - return nms_StringTranslate_translateKey(nms_StringTranslate_instance, $par0ArrayOfStr[$par1]); -} -function nms_GameSettings_getKeyBinding($this, $par1EnumOptions) { - var $var2, $var3, $var5; - $var2 = nms_StringTranslate_getInstance(); - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nms_StringTranslate_translateKey($var2, nms_EnumOptions_getEnumString($par1EnumOptions))), $rt_s(48))); - if (!nms_EnumOptions_getEnumFloat($par1EnumOptions)) { - if (nms_EnumOptions_getEnumBoolean($par1EnumOptions)) - return !nms_GameSettings_getOptionOrdinalValue($this, $par1EnumOptions) ? jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(535)))) : jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(536)))); - a: { - if ($par1EnumOptions === nms_EnumOptions_RENDER_DISTANCE) { - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GameSettings_getTranslation(nms_GameSettings_RENDER_DISTANCES, $this.$renderDistance))); - break a; - } - if ($par1EnumOptions === nms_EnumOptions_DIFFICULTY) { - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GameSettings_getTranslation(nms_GameSettings_DIFFICULTIES, $this.$difficulty))); - break a; - } - if ($par1EnumOptions === nms_EnumOptions_GUI_SCALE) { - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GameSettings_getTranslation(nms_GameSettings_GUISCALES, $this.$guiScale))); - break a; - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_VISIBILITY) { - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GameSettings_getTranslation(nms_GameSettings_CHAT_VISIBILITIES, $this.$chatVisibility))); - break a; - } - if ($par1EnumOptions === nms_EnumOptions_PARTICLES) { - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GameSettings_getTranslation(nms_GameSettings_PARTICLES, $this.$particleSetting))); - break a; - } - if ($par1EnumOptions === nms_EnumOptions_FRAMERATE_LIMIT) { - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GameSettings_getTranslation(nms_GameSettings_LIMIT_FRAMERATES, $this.$limitFramerate))); - break a; - } - if ($par1EnumOptions === nms_EnumOptions_AMBIENT_OCCLUSION) { - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GameSettings_getTranslation(nms_GameSettings_AMBIENT_OCCLUSIONS, $this.$ambientOcclusion))); - break a; - } - if ($par1EnumOptions === nms_EnumOptions_ANTIALIASING) { - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GameSettings_getTranslation(nms_GameSettings_ANTIALIASING, $this.$antialiasMode))); - break a; - } - if ($par1EnumOptions !== nms_EnumOptions_GRAPHICS) - break a; - if (!$this.$fancyGraphics) { - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(537)))); - break a; - } - $var3 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(538)))); - } - return $var3; - } - b: { - $var5 = nms_GameSettings_getOptionFloatValue($this, $par1EnumOptions); - if ($par1EnumOptions === nms_EnumOptions_SENSITIVITY) { - if ($var5 === 0.0) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(539)))); - break b; - } - if ($var5 === 1.0) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(540)))); - break b; - } - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), $var5 * 200.0 | 0), $rt_s(308))); - break b; - } - if ($par1EnumOptions === nms_EnumOptions_FOV) { - if ($var5 === 0.0) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(541)))); - break b; - } - if ($var5 === 1.0) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(542)))); - break b; - } - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), 70.0 + $var5 * 40.0 | 0)); - break b; - } - if ($par1EnumOptions === nms_EnumOptions_GAMMA) { - if ($var5 === 0.0) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(543)))); - break b; - } - if ($var5 === 1.0) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(544)))); - break b; - } - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), $rt_s(545)), $var5 * 100.0 | 0), $rt_s(308))); - break b; - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_OPACITY) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), $var5 * 90.0 + 10.0 | 0), $rt_s(308))); - break b; - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_HEIGHT_UNFOCUSED) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GuiNewChat_func_96130_b($var5)), $rt_s(546))); - break b; - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_HEIGHT_FOCUSED) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GuiNewChat_func_96130_b($var5)), $rt_s(546))); - break b; - } - if ($par1EnumOptions === nms_EnumOptions_CHAT_WIDTH) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_GuiNewChat_func_96128_a($var5)), $rt_s(546))); - break b; - } - if ($var5 === 0.0) { - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), nms_StringTranslate_translateKey($var2, $rt_s(535)))); - break b; - } - $par1EnumOptions = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var3), $var5 * 100.0 | 0), $rt_s(308))); - } - return $par1EnumOptions; -} -function nms_GameSettings_loadOptions($this) { - var $yee, $var4; - $yee = nle_LocalStorageManager_gameSettingsStorage; - if (!nms_NBTTagCompound_hasNoTags($yee)) { - if (nms_NBTTagCompound_hasKey($yee, $rt_s(547))) - $this.$musicVolume = nms_NBTTagCompound_getFloat($yee, $rt_s(547)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(548))) - $this.$soundVolume = nms_NBTTagCompound_getFloat($yee, $rt_s(548)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(549))) - $this.$mouseSensitivity = nms_NBTTagCompound_getFloat($yee, $rt_s(549)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(550))) - $this.$fovSetting = nms_NBTTagCompound_getFloat($yee, $rt_s(550)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(551))) - $this.$gammaSetting = nms_NBTTagCompound_getFloat($yee, $rt_s(551)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(552))) - $this.$invertMouse = nms_NBTTagCompound_getBoolean($yee, $rt_s(552)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(553))) - $this.$renderDistance = nms_NBTTagCompound_getInteger($yee, $rt_s(553)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(554))) - $this.$guiScale = nms_NBTTagCompound_getInteger($yee, $rt_s(554)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(322))) - $this.$particleSetting = nms_NBTTagCompound_getInteger($yee, $rt_s(322)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(555))) - $this.$viewBobbing = nms_NBTTagCompound_getBoolean($yee, $rt_s(555)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(556))) - $this.$anaglyph = nms_NBTTagCompound_getBoolean($yee, $rt_s(556)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(557))) - $this.$limitFramerate = nms_NBTTagCompound_getInteger($yee, $rt_s(557)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(558))) - $this.$fancyGraphics = nms_NBTTagCompound_getBoolean($yee, $rt_s(558)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(559))) - $this.$ambientOcclusion = nms_NBTTagCompound_getInteger($yee, $rt_s(559)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(560))) - $this.$clouds = nms_NBTTagCompound_getBoolean($yee, $rt_s(560)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(561))) - $this.$enableFog = nms_NBTTagCompound_getBoolean($yee, $rt_s(561)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(562))) - $this.$lastServer = nms_NBTTagCompound_getString($yee, $rt_s(562)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(563))) - $this.$language = nms_NBTTagCompound_getString($yee, $rt_s(563)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(564))) - $this.$chatVisibility = nms_NBTTagCompound_getInteger($yee, $rt_s(564)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(565))) - $this.$chatColours = nms_NBTTagCompound_getBoolean($yee, $rt_s(565)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(566))) - $this.$chatLinks = nms_NBTTagCompound_getBoolean($yee, $rt_s(566)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(567))) - $this.$chatLinksPrompt = nms_NBTTagCompound_getBoolean($yee, $rt_s(567)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(568))) - $this.$chatOpacity = nms_NBTTagCompound_getFloat($yee, $rt_s(568)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(569))) - $this.$fullScreen = nms_NBTTagCompound_getBoolean($yee, $rt_s(569)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(570))) - $this.$hideServerAddress = nms_NBTTagCompound_getBoolean($yee, $rt_s(570)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(571))) - $this.$advancedItemTooltips = nms_NBTTagCompound_getBoolean($yee, $rt_s(571)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(572))) - $this.$pauseOnLostFocus = nms_NBTTagCompound_getBoolean($yee, $rt_s(572)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(573))) - $this.$showCape = nms_NBTTagCompound_getBoolean($yee, $rt_s(573)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(574))) - $this.$touchscreen = nms_NBTTagCompound_getBoolean($yee, $rt_s(574)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(575))) - $this.$overrideHeight = nms_NBTTagCompound_getInteger($yee, $rt_s(575)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(576))) - $this.$overrideWidth = nms_NBTTagCompound_getInteger($yee, $rt_s(576)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(577))) - $this.$antialiasMode = nms_NBTTagCompound_getInteger($yee, $rt_s(577)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(578))) - $this.$heldItemTooltips = nms_NBTTagCompound_getBoolean($yee, $rt_s(578)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(579))) - $this.$chatHeightFocused = nms_NBTTagCompound_getFloat($yee, $rt_s(579)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(580))) - $this.$chatHeightUnfocused = nms_NBTTagCompound_getFloat($yee, $rt_s(580)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(581))) - $this.$chatScale = nms_NBTTagCompound_getFloat($yee, $rt_s(581)); - if (nms_NBTTagCompound_hasKey($yee, $rt_s(582))) - $this.$chatWidth = nms_NBTTagCompound_getFloat($yee, $rt_s(582)); - $var4 = 0; - while ($var4 < $this.$keyBindings.data.length) { - if (nms_NBTTagCompound_hasKey($yee, $this.$keyBindings.data[$var4].$keyDescription)) - $this.$keyBindings.data[$var4].$keyCode = nms_NBTTagCompound_getInteger($yee, $this.$keyBindings.data[$var4].$keyDescription); - $var4 = $var4 + 1 | 0; - } - nms_KeyBinding_resetKeyBindingArrayAndHash(); - } -} -function nms_GameSettings_saveOptions($this) { - var $yee, var$2, var$3, var$4, $var4; - $yee = nle_LocalStorageManager_gameSettingsStorage; - var$2 = $this.$musicVolume; - var$3 = $yee.$tagMap; - var$4 = new nms_NBTTagFloat; - var$4.$name0 = $rt_s(547); - var$4.$data3 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(547), var$4); - var$2 = $this.$soundVolume; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagFloat; - var$3.$name0 = $rt_s(548); - var$3.$data3 = var$2; - ju_HashMap_putImpl(var$4, $rt_s(548), var$3); - var$2 = $this.$mouseSensitivity; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagFloat; - var$3.$name0 = $rt_s(549); - var$3.$data3 = var$2; - ju_HashMap_putImpl(var$4, $rt_s(549), var$3); - var$2 = $this.$fovSetting; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagFloat; - var$3.$name0 = $rt_s(550); - var$3.$data3 = var$2; - ju_HashMap_putImpl(var$4, $rt_s(550), var$3); - var$2 = $this.$gammaSetting; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagFloat; - var$3.$name0 = $rt_s(551); - var$3.$data3 = var$2; - ju_HashMap_putImpl(var$4, $rt_s(551), var$3); - $var4 = (!$this.$invertMouse ? 0 : 1) << 24 >> 24; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagByte; - var$3.$name0 = $rt_s(552); - var$3.$data0 = $var4; - ju_HashMap_putImpl(var$4, $rt_s(552), var$3); - $var4 = $this.$renderDistance; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagInt; - var$3.$name0 = $rt_s(553); - var$3.$data2 = $var4; - ju_HashMap_putImpl(var$4, $rt_s(553), var$3); - $var4 = $this.$guiScale; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagInt; - var$3.$name0 = $rt_s(554); - var$3.$data2 = $var4; - ju_HashMap_putImpl(var$4, $rt_s(554), var$3); - $var4 = $this.$particleSetting; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagInt; - var$3.$name0 = $rt_s(322); - var$3.$data2 = $var4; - ju_HashMap_putImpl(var$4, $rt_s(322), var$3); - $var4 = (!$this.$viewBobbing ? 0 : 1) << 24 >> 24; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagByte; - var$3.$name0 = $rt_s(555); - var$3.$data0 = $var4; - ju_HashMap_putImpl(var$4, $rt_s(555), var$3); - $var4 = (!$this.$anaglyph ? 0 : 1) << 24 >> 24; - var$4 = $yee.$tagMap; - var$3 = new nms_NBTTagByte; - nms_NBTBase__init_0(var$3, $rt_s(556)); - var$3.$data0 = $var4; - ju_HashMap_put(var$4, $rt_s(556), var$3); - nms_NBTTagCompound_setInteger($yee, $rt_s(557), $this.$limitFramerate); - nms_NBTTagCompound_setBoolean($yee, $rt_s(558), $this.$fancyGraphics); - nms_NBTTagCompound_setInteger($yee, $rt_s(559), $this.$ambientOcclusion); - nms_NBTTagCompound_setBoolean($yee, $rt_s(560), $this.$clouds); - nms_NBTTagCompound_setBoolean($yee, $rt_s(561), $this.$enableFog); - nms_NBTTagCompound_setString($yee, $rt_s(562), $this.$lastServer); - nms_NBTTagCompound_setString($yee, $rt_s(563), $this.$language); - nms_NBTTagCompound_setInteger($yee, $rt_s(564), $this.$chatVisibility); - nms_NBTTagCompound_setBoolean($yee, $rt_s(565), $this.$chatColours); - nms_NBTTagCompound_setBoolean($yee, $rt_s(566), $this.$chatLinks); - nms_NBTTagCompound_setBoolean($yee, $rt_s(567), $this.$chatLinksPrompt); - nms_NBTTagCompound_setFloat($yee, $rt_s(568), $this.$chatOpacity); - nms_NBTTagCompound_setBoolean($yee, $rt_s(569), $this.$fullScreen); - nms_NBTTagCompound_setBoolean($yee, $rt_s(570), $this.$hideServerAddress); - nms_NBTTagCompound_setBoolean($yee, $rt_s(571), $this.$advancedItemTooltips); - nms_NBTTagCompound_setBoolean($yee, $rt_s(572), $this.$pauseOnLostFocus); - nms_NBTTagCompound_setBoolean($yee, $rt_s(573), $this.$showCape); - nms_NBTTagCompound_setBoolean($yee, $rt_s(574), $this.$touchscreen); - nms_NBTTagCompound_setInteger($yee, $rt_s(575), $this.$overrideHeight); - nms_NBTTagCompound_setInteger($yee, $rt_s(576), $this.$overrideWidth); - nms_NBTTagCompound_setInteger($yee, $rt_s(577), $this.$antialiasMode); - nms_NBTTagCompound_setBoolean($yee, $rt_s(578), $this.$heldItemTooltips); - nms_NBTTagCompound_setFloat($yee, $rt_s(579), $this.$chatHeightFocused); - nms_NBTTagCompound_setFloat($yee, $rt_s(580), $this.$chatHeightUnfocused); - nms_NBTTagCompound_setFloat($yee, $rt_s(581), $this.$chatScale); - nms_NBTTagCompound_setFloat($yee, $rt_s(582), $this.$chatWidth); - $var4 = 0; - while ($var4 < $this.$keyBindings.data.length) { - nms_NBTTagCompound_setInteger($yee, $this.$keyBindings.data[$var4].$keyDescription, $this.$keyBindings.data[$var4].$keyCode); - $var4 = $var4 + 1 | 0; - } - nle_LocalStorageManager_saveStorageG(); - nms_GameSettings_sendSettingsToServer($this); -} -function nms_GameSettings_sendSettingsToServer($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8; - if ($this.$mc6.$thePlayer !== null) { - var$1 = $this.$mc6.$thePlayer.$sendQueue; - var$2 = new nms_Packet204ClientInfo; - var$3 = $this.$language; - var$4 = $this.$renderDistance; - var$5 = $this.$chatVisibility; - var$6 = $this.$chatColours; - var$7 = $this.$difficulty; - var$8 = $this.$showCape; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - var$2.$language0 = var$3; - var$2.$renderDistance0 = var$4; - var$2.$chatVisisble = var$5; - var$2.$chatColours0 = var$6; - var$2.$gameDifficulty = var$7; - var$2.$showCape0 = var$8; - if (!var$1.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$1.$netManager, var$2); - } -} -function nms_GameSettings_shouldRenderClouds($this) { - return $this.$renderDistance < 2 && $this.$clouds ? 1 : 0; -} -function nms_GameSettings__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(583); - var$2[1] = $rt_s(584); - var$2[2] = $rt_s(585); - var$2[3] = $rt_s(586); - nms_GameSettings_RENDER_DISTANCES = var$1; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(587); - var$2[1] = $rt_s(588); - var$2[2] = $rt_s(589); - var$2[3] = $rt_s(590); - nms_GameSettings_DIFFICULTIES = var$1; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(591); - var$2[1] = $rt_s(592); - var$2[2] = $rt_s(593); - var$2[3] = $rt_s(594); - nms_GameSettings_GUISCALES = var$1; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(595); - var$2[1] = $rt_s(596); - var$2[2] = $rt_s(597); - nms_GameSettings_CHAT_VISIBILITIES = var$1; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(598); - var$2[1] = $rt_s(599); - var$2[2] = $rt_s(600); - nms_GameSettings_PARTICLES = var$1; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(601); - var$2[1] = $rt_s(602); - var$2[2] = $rt_s(603); - nms_GameSettings_LIMIT_FRAMERATES = var$1; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(604); - var$2[1] = $rt_s(605); - var$2[2] = $rt_s(606); - nms_GameSettings_AMBIENT_OCCLUSIONS = var$1; - var$1 = $rt_createArray(jl_String, 5); - var$2 = var$1.data; - var$2[0] = $rt_s(607); - var$2[1] = $rt_s(608); - var$2[2] = $rt_s(609); - var$2[3] = $rt_s(610); - var$2[4] = $rt_s(611); - nms_GameSettings_ANTIALIASING = var$1; -} -function nms_RenderBlocks() { - var a = this; jl_Object.call(a); - a.$blockAccess = null; - a.$overrideBlockTexture = null; - a.$flipTexture = 0; - a.$renderAllFaces = 0; - a.$useInventoryTint = 0; - a.$renderMinX = 0.0; - a.$renderMaxX = 0.0; - a.$renderMinY = 0.0; - a.$renderMaxY = 0.0; - a.$renderMinZ = 0.0; - a.$renderMaxZ = 0.0; - a.$lockBlockBounds = 0; - a.$partialRenderBounds = 0; - a.$minecraftRB = null; - a.$uvRotateEast = 0; - a.$uvRotateWest = 0; - a.$uvRotateSouth = 0; - a.$uvRotateNorth = 0; - a.$uvRotateTop = 0; - a.$uvRotateBottom = 0; - a.$enableAO = 0; - a.$aoLightValueScratchXYZNNN = 0.0; - a.$aoLightValueScratchXYNN = 0.0; - a.$aoLightValueScratchXYZNNP = 0.0; - a.$aoLightValueScratchYZNN = 0.0; - a.$aoLightValueScratchYZNP = 0.0; - a.$aoLightValueScratchXYZPNN = 0.0; - a.$aoLightValueScratchXYPN = 0.0; - a.$aoLightValueScratchXYZPNP = 0.0; - a.$aoLightValueScratchXYZNPN = 0.0; - a.$aoLightValueScratchXYNP = 0.0; - a.$aoLightValueScratchXYZNPP = 0.0; - a.$aoLightValueScratchYZPN = 0.0; - a.$aoLightValueScratchXYZPPN = 0.0; - a.$aoLightValueScratchXYPP = 0.0; - a.$aoLightValueScratchYZPP = 0.0; - a.$aoLightValueScratchXYZPPP = 0.0; - a.$aoLightValueScratchXZNN = 0.0; - a.$aoLightValueScratchXZPN = 0.0; - a.$aoLightValueScratchXZNP = 0.0; - a.$aoLightValueScratchXZPP = 0.0; - a.$aoBrightnessXYZNNN = 0; - a.$aoBrightnessXYNN = 0; - a.$aoBrightnessXYZNNP = 0; - a.$aoBrightnessYZNN = 0; - a.$aoBrightnessYZNP = 0; - a.$aoBrightnessXYZPNN = 0; - a.$aoBrightnessXYPN = 0; - a.$aoBrightnessXYZPNP = 0; - a.$aoBrightnessXYZNPN = 0; - a.$aoBrightnessXYNP = 0; - a.$aoBrightnessXYZNPP = 0; - a.$aoBrightnessYZPN = 0; - a.$aoBrightnessXYZPPN = 0; - a.$aoBrightnessXYPP = 0; - a.$aoBrightnessYZPP = 0; - a.$aoBrightnessXYZPPP = 0; - a.$aoBrightnessXZNN = 0; - a.$aoBrightnessXZPN = 0; - a.$aoBrightnessXZNP = 0; - a.$aoBrightnessXZPP = 0; - a.$brightnessTopLeft = 0; - a.$brightnessBottomLeft = 0; - a.$brightnessBottomRight = 0; - a.$brightnessTopRight = 0; - a.$colorRedTopLeft = 0.0; - a.$colorRedBottomLeft = 0.0; - a.$colorRedBottomRight = 0.0; - a.$colorRedTopRight = 0.0; - a.$colorGreenTopLeft = 0.0; - a.$colorGreenBottomLeft = 0.0; - a.$colorGreenBottomRight = 0.0; - a.$colorGreenTopRight = 0.0; - a.$colorBlueTopLeft = 0.0; - a.$colorBlueBottomLeft = 0.0; - a.$colorBlueBottomRight = 0.0; - a.$colorBlueTopRight = 0.0; -} -var nms_RenderBlocks_fancyGrass = 0; -function nms_RenderBlocks__init_0(var_0) { - var var_1 = new nms_RenderBlocks(); - nms_RenderBlocks__init_1(var_1, var_0); - return var_1; -} -function nms_RenderBlocks__init_2() { - var var_0 = new nms_RenderBlocks(); - nms_RenderBlocks__init_(var_0); - return var_0; -} -function nms_RenderBlocks__init_1($this, $par1IBlockAccess) { - $this.$overrideBlockTexture = null; - $this.$flipTexture = 0; - $this.$renderAllFaces = 0; - $this.$useInventoryTint = 1; - $this.$lockBlockBounds = 0; - $this.$partialRenderBounds = 0; - $this.$uvRotateEast = 0; - $this.$uvRotateWest = 0; - $this.$uvRotateSouth = 0; - $this.$uvRotateNorth = 0; - $this.$uvRotateTop = 0; - $this.$uvRotateBottom = 0; - $this.$blockAccess = $par1IBlockAccess; - $this.$minecraftRB = nmc_Minecraft_theMinecraft; -} -function nms_RenderBlocks__init_($this) { - $this.$overrideBlockTexture = null; - $this.$flipTexture = 0; - $this.$renderAllFaces = 0; - $this.$useInventoryTint = 1; - $this.$lockBlockBounds = 0; - $this.$partialRenderBounds = 0; - $this.$uvRotateEast = 0; - $this.$uvRotateWest = 0; - $this.$uvRotateSouth = 0; - $this.$uvRotateNorth = 0; - $this.$uvRotateTop = 0; - $this.$uvRotateBottom = 0; - $this.$minecraftRB = nmc_Minecraft_theMinecraft; -} -function nms_RenderBlocks_setOverrideBlockTexture($this, $par1Icon) { - $this.$overrideBlockTexture = $par1Icon; -} -function nms_RenderBlocks_clearOverrideBlockTexture($this) { - $this.$overrideBlockTexture = null; -} -function nms_RenderBlocks_hasOverrideBlockTexture($this) { - return $this.$overrideBlockTexture === null ? 0 : 1; -} -function nms_RenderBlocks_setRenderBounds($this, $par1, $par3, $par5, $par7, $par9, $par11) { - var var$7; - if (!$this.$lockBlockBounds) { - a: { - b: { - $this.$renderMinX = $par1; - $this.$renderMaxX = $par7; - $this.$renderMinY = $par3; - $this.$renderMaxY = $par9; - $this.$renderMinZ = $par5; - $this.$renderMaxZ = $par11; - if ($this.$minecraftRB.$gameSettings.$ambientOcclusion >= 2) { - if ($this.$renderMinX > 0.0) - break b; - if ($this.$renderMaxX < 1.0) - break b; - if ($this.$renderMinY > 0.0) - break b; - if ($this.$renderMaxY < 1.0) - break b; - if ($this.$renderMinZ > 0.0) - break b; - if ($this.$renderMaxZ < 1.0) - break b; - } - var$7 = 0; - break a; - } - var$7 = 1; - } - $this.$partialRenderBounds = var$7; - } -} -function nms_RenderBlocks_setRenderBoundsFromBlock($this, $par1Block) { - var var$2; - if (!$this.$lockBlockBounds) { - a: { - b: { - $this.$renderMinX = $par1Block.$minX0; - $this.$renderMaxX = $par1Block.$maxX0; - $this.$renderMinY = $par1Block.$minY0; - $this.$renderMaxY = $par1Block.$maxY0; - $this.$renderMinZ = $par1Block.$minZ0; - $this.$renderMaxZ = $par1Block.$maxZ0; - if ($this.$minecraftRB.$gameSettings.$ambientOcclusion >= 2) { - if ($this.$renderMinX > 0.0) - break b; - if ($this.$renderMaxX < 1.0) - break b; - if ($this.$renderMinY > 0.0) - break b; - if ($this.$renderMaxY < 1.0) - break b; - if ($this.$renderMinZ > 0.0) - break b; - if ($this.$renderMaxZ < 1.0) - break b; - } - var$2 = 0; - break a; - } - var$2 = 1; - } - $this.$partialRenderBounds = var$2; - } -} -function nms_RenderBlocks_overrideBlockBounds($this, $par1, $par3, $par5, $par7, $par9, $par11) { - var var$7; - a: { - b: { - $this.$renderMinX = $par1; - $this.$renderMaxX = $par7; - $this.$renderMinY = $par3; - $this.$renderMaxY = $par9; - $this.$renderMinZ = $par5; - $this.$renderMaxZ = $par11; - $this.$lockBlockBounds = 1; - if ($this.$minecraftRB.$gameSettings.$ambientOcclusion >= 2) { - if ($this.$renderMinX > 0.0) - break b; - if ($this.$renderMaxX < 1.0) - break b; - if ($this.$renderMinY > 0.0) - break b; - if ($this.$renderMaxY < 1.0) - break b; - if ($this.$renderMinZ > 0.0) - break b; - if ($this.$renderMaxZ < 1.0) - break b; - } - var$7 = 0; - break a; - } - var$7 = 1; - } - $this.$partialRenderBounds = var$7; -} -function nms_RenderBlocks_unlockBlockBounds($this) { - $this.$lockBlockBounds = 0; -} -function nms_RenderBlocks_renderBlockUsingTexture($this, $par1Block, $par2, $par3, $par4, $par5Icon) { - $this.$overrideBlockTexture = $par5Icon; - nms_RenderBlocks_renderBlockByRenderType($this, $par1Block, $par2, $par3, $par4); - $this.$overrideBlockTexture = null; -} -function nms_RenderBlocks_renderBlockAllFaces($this, $par1Block, $par2, $par3, $par4) { - $this.$renderAllFaces = 1; - nms_RenderBlocks_renderBlockByRenderType($this, $par1Block, $par2, $par3, $par4); - $this.$renderAllFaces = 0; -} -function nms_RenderBlocks_renderBlockByRenderType($this, $par1Block, $par2, $par3, $par4) { - var $var5; - $var5 = $par1Block.$getRenderType(); - if ($var5 == (-1)) - return 0; - a: { - $par1Block.$setBlockBoundsBasedOnState($this.$blockAccess, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBoundsFromBlock($this, $par1Block); - if (!$var5) { - $par2 = nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 4) { - $par2 = nms_RenderBlocks_renderBlockFluids($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 31) { - $par2 = nms_RenderBlocks_renderBlockLog($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 1) { - $par2 = nms_RenderBlocks_renderCrossedSquares($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 2) { - $par2 = nms_RenderBlocks_renderBlockTorch($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 20) { - $par2 = nms_RenderBlocks_renderBlockVine($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 11) { - $par2 = nms_RenderBlocks_renderBlockFence($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 39) { - $par2 = nms_RenderBlocks_renderBlockQuartz($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 5) { - $par2 = nms_RenderBlocks_renderBlockRedstoneWire($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 13) { - $par2 = nms_RenderBlocks_renderBlockCactus($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 9) { - $par2 = nms_RenderBlocks_renderBlockMinecartTrack($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 19) { - $par2 = nms_RenderBlocks_renderBlockStem($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 23) { - $par2 = nms_RenderBlocks_renderBlockLilyPad($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 6) { - $par2 = nms_RenderBlocks_renderBlockCrops($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 3) { - $par2 = nms_RenderBlocks_renderBlockFire($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 8) { - $par2 = nms_RenderBlocks_renderBlockLadder($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 7) { - $par2 = nms_RenderBlocks_renderBlockDoor($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 10) { - $par2 = nms_RenderBlocks_renderBlockStairs($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 27) { - $par2 = nms_RenderBlocks_renderBlockDragonEgg($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 32) { - $par2 = nms_RenderBlocks_renderBlockWall($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 12) { - $par2 = nms_RenderBlocks_renderBlockLever($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 29) { - $par2 = nms_RenderBlocks_renderBlockTripWireSource($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 30) { - $par2 = nms_RenderBlocks_renderBlockTripWire($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 14) { - $par2 = nms_RenderBlocks_renderBlockBed($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 15) { - $par2 = nms_RenderBlocks_renderBlockRepeater($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 36) { - nms_RenderBlocks_renderBlockRedstoneLogicMetadata($this, $par1Block, $par2, $par3, $par4, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4) & 3); - $par2 = 1; - break a; - } - if ($var5 == 37) { - $par2 = nms_RenderBlocks_renderBlockComparator($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 16) { - $par2 = nms_RenderBlocks_renderPistonBase($this, $par1Block, $par2, $par3, $par4, 0); - break a; - } - if ($var5 == 17) { - $par2 = nms_RenderBlocks_renderPistonExtension($this, $par1Block, $par2, $par3, $par4, 1); - break a; - } - if ($var5 == 18) { - $par2 = nms_RenderBlocks_renderBlockPane($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 21) { - $par2 = nms_RenderBlocks_renderBlockFenceGate($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 24) { - $par2 = nms_RenderBlocks_renderBlockCauldron($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 33) { - $par2 = nms_RenderBlocks_renderBlockFlowerpot($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 35) { - $par2 = nms_RenderBlocks_renderBlockAnvilMetadata($this, $par1Block, $par2, $par3, $par4, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4)); - break a; - } - if ($var5 == 25) { - $par2 = nms_RenderBlocks_renderBlockBrewingStand($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 26) { - $par2 = nms_RenderBlocks_renderBlockEndPortalFrame($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 28) { - $par2 = nms_RenderBlocks_renderBlockCocoa($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 == 34) { - $par2 = nms_RenderBlocks_renderBlockBeacon($this, $par1Block, $par2, $par3, $par4); - break a; - } - if ($var5 != 38) { - $par2 = 0; - break a; - } - $par2 = nms_RenderBlocks_renderBlockHopper($this, $par1Block, $par2, $par3, $par4); - } - return $par2; -} -function nms_RenderBlocks_renderBlockEndPortalFrame($this, $par1BlockEndPortalFrame, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var6 = $var5 & 3; - if (!$var6) - $this.$uvRotateTop = 3; - else if ($var6 == 3) - $this.$uvRotateTop = 1; - else if ($var6 == 1) - $this.$uvRotateTop = 2; - if (!(!($var5 & 4) ? 0 : 1)) { - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 0.8125, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockEndPortalFrame, $par2, $par3, $par4); - $this.$uvRotateTop = 0; - return 1; - } - $this.$renderAllFaces = 1; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 0.8125, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockEndPortalFrame, $par2, $par3, $par4); - $this.$overrideBlockTexture = $par1BlockEndPortalFrame.$field_94399_b; - nms_RenderBlocks_setRenderBounds($this, 0.25, 0.8125, 0.25, 0.75, 1.0, 0.75); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockEndPortalFrame, $par2, $par3, $par4); - $this.$renderAllFaces = 0; - $this.$overrideBlockTexture = null; - $this.$uvRotateTop = 0; - return 1; -} -function nms_RenderBlocks_renderBlockBed($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var25, $var27, $var28, $var30, $var32, $var34, var$15, $var36, $var38, var$18, $var40, var$20, $var42, $var44, $var52, $var54, $var56, $var58, $var60, $var62, $var63; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var7 = $var6 & 3; - $var8 = !($var6 & 8) ? 0 : 1; - $var25 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = $var25; - nlea_Tessellator_setColorRGBA($var5, 127, 127, 127, 255); - $var27 = nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($this.$blockAccess, $par2, $par3, $par4, 0)); - $var28 = $var27.$getMinU(); - $var30 = $var27.$getMaxU(); - $var32 = $var27.$getMinV(); - $var34 = $var27.$getMaxV(); - var$15 = $par2; - $var36 = var$15 + $this.$renderMinX; - $var38 = var$15 + $this.$renderMaxX; - var$18 = $par3; - $var40 = var$18 + $this.$renderMinY + 0.1875; - var$20 = $par4; - $var42 = var$20 + $this.$renderMinZ; - $var44 = var$20 + $this.$renderMaxZ; - nlea_Tessellator_addVertexWithUV($var5, $var36, $var40, $var44, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var5, $var36, $var40, $var42, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var5, $var38, $var40, $var42, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var5, $var38, $var40, $var44, $var30, $var34); - nlea_Tessellator_setBrightness($var5, $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 + 1 | 0, $par4)); - nlea_Tessellator_setColorOpaque_F($var5, 1.0, 1.0, 1.0); - $var27 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 1); - $var36 = $var27.$getMinU(); - $var38 = $var27.$getMaxU(); - $var40 = $var27.$getMinV(); - $var42 = $var27.$getMaxV(); - if (!$var7) { - $var28 = $var36; - $var30 = $var42; - $var32 = $var38; - $var34 = $var40; - } else if ($var7 == 2) { - $var28 = $var38; - $var30 = $var40; - $var32 = $var36; - $var34 = $var42; - $var52 = $var36; - $var54 = $var40; - $var36 = $var38; - $var40 = $var42; - $var38 = $var52; - $var42 = $var54; - } else if ($var7 != 3) { - $var28 = $var38; - $var30 = $var40; - $var32 = $var36; - $var34 = $var42; - } else { - $var28 = $var36; - $var30 = $var42; - $var32 = $var38; - $var34 = $var40; - $var52 = $var36; - $var54 = $var40; - $var36 = $var38; - $var40 = $var42; - $var38 = $var52; - $var42 = $var54; - } - $var52 = var$15 + $this.$renderMinX; - $var54 = var$15 + $this.$renderMaxX; - $var56 = var$18 + $this.$renderMaxY; - $var58 = var$20 + $this.$renderMinZ; - $var60 = var$20 + $this.$renderMaxZ; - nlea_Tessellator_addVertexWithUV($var5, $var54, $var56, $var60, $var32, $var42); - nlea_Tessellator_addVertexWithUV($var5, $var54, $var56, $var58, $var36, $var30); - nlea_Tessellator_addVertexWithUV($var5, $var52, $var56, $var58, $var28, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var52, $var56, $var60, $var38, $var34); - $var62 = nms_Direction_directionToFacing.data[$var7]; - if ($var8) - $var62 = nms_Direction_directionToFacing.data[nms_Direction_rotateOpposite.data[$var7]]; - a: { - b: { - c: { - $var63 = 4; - switch ($var7) { - case 0: - break; - case 1: - $var63 = 3; - break b; - case 3: - $var63 = 2; - break a; - case 2: - break c; - default: - break c; - } - $var63 = 5; - break a; - } - } - } - if ($var62 != 2 && !(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 - 1 | 0, 2))) { - nlea_Tessellator_setBrightness($var5, $this.$renderMinZ > 0.0 ? $var25 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 - 1 | 0)); - nlea_Tessellator_setColorOpaque_F($var5, 0.800000011920929, 0.800000011920929, 0.800000011920929); - $this.$flipTexture = $var63 != 2 ? 0 : 1; - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, var$15, var$18, var$20, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 2)); - } - if ($var62 != 3 && !(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 + 1 | 0, 3))) { - nlea_Tessellator_setBrightness($var5, $this.$renderMaxZ < 1.0 ? $var25 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 + 1 | 0)); - nlea_Tessellator_setColorOpaque_F($var5, 0.800000011920929, 0.800000011920929, 0.800000011920929); - $this.$flipTexture = $var63 != 3 ? 0 : 1; - nms_RenderBlocks_renderFaceZPos($this, $par1Block, var$15, var$18, var$20, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 3)); - } - if ($var62 != 4 && !(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 - 1 | 0, $par3, $par4, 4))) { - nlea_Tessellator_setBrightness($var5, $this.$renderMinZ > 0.0 ? $var25 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 - 1 | 0, $par3, $par4)); - nlea_Tessellator_setColorOpaque_F($var5, 0.6000000238418579, 0.6000000238418579, 0.6000000238418579); - $this.$flipTexture = $var63 != 4 ? 0 : 1; - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, var$15, var$18, var$20, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 4)); - } - if ($var62 != 5 && !(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 + 1 | 0, $par3, $par4, 5))) { - if ($this.$renderMaxZ >= 1.0) - $var25 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - nlea_Tessellator_setBrightness($var5, $var25); - nlea_Tessellator_setColorOpaque_F($var5, 0.6000000238418579, 0.6000000238418579, 0.6000000238418579); - $this.$flipTexture = $var63 != 5 ? 0 : 1; - nms_RenderBlocks_renderFaceXPos($this, $par1Block, var$15, var$18, var$20, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 5)); - } - $this.$flipTexture = 0; - return 1; -} -function nms_RenderBlocks_renderBlockBrewingStand($this, $par1BlockBrewingStand, $par2, $par3, $par4) { - var $var5, $var32, $var17, $var13, $var11, var$10, $var33, $var14, $var16, $var24, $var28, var$16, var$17, $var18, $var20, $var22, $var26, $var30, $var6; - nms_RenderBlocks_setRenderBounds($this, 0.4375, 0.0, 0.4375, 0.5625, 0.875, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockBrewingStand, $par2, $par3, $par4); - $this.$overrideBlockTexture = $par1BlockBrewingStand.$theIcon; - nms_RenderBlocks_setRenderBounds($this, 0.5625, 0.0, 0.3125, 0.9375, 0.125, 0.6875); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockBrewingStand, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.125, 0.0, 0.0625, 0.5, 0.125, 0.4375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockBrewingStand, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.125, 0.0, 0.5625, 0.5, 0.125, 0.9375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockBrewingStand, $par2, $par3, $par4); - $this.$overrideBlockTexture = null; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var32 = $this.$blockAccess; - $var17 = $var32.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$var32.$getBlockId($par2, $par3, $par4)]); - $var5.$hasBrightness = 1; - $var5.$brightness = $var17; - $var13 = 1.0; - if (!nms_EntityRenderer_anaglyphEnable) { - $var11 = $var13; - var$10 = $var13; - } else { - $var11 = 1.0; - $var13 = 1.0; - var$10 = $var13; - } - nlea_Tessellator_setColorRGBA($var5, 1.0 * $var11 * 255.0 | 0, 1.0 * var$10 * 255.0 | 0, 1.0 * $var13 * 255.0 | 0, 255); - $var32 = nms_RenderBlocks_getIconSafe($this, $par1BlockBrewingStand.$blockIcon); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var32 = $this.$overrideBlockTexture; - $var33 = $var32.$getMinV(); - $var14 = $var32.$getMaxV(); - $var16 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var17 = 0; - $var24 = $par2 + 0.5; - $var28 = $par4 + 0.5; - var$16 = $par3 + 1 | 0; - $var11 = $var33; - var$17 = $par3 + 0 | 0; - $var13 = $var14; - while ($var17 < 3) { - $var18 = $var17 * 3.141592653589793 * 2.0 / 3.0 + 1.5707963267948966; - $var20 = $var32.$getInterpolatedU(8.0); - $var22 = $var32.$getMaxU(); - if ($var16 & 1 << $var17) - $var22 = $var32.$getMinU(); - $var26 = $var24 + jl_Math_sin($var18) * 8.0 / 16.0; - $var30 = $var28 + jl_Math_cos($var18) * 8.0 / 16.0; - $var5.$hasTexture = 1; - $var6 = $var20; - $var5.$textureU = $var6; - $var5.$textureV = $var11; - nlea_Tessellator_addVertex($var5, $var24, var$16, $var28); - $var5.$hasTexture = 1; - $var5.$textureU = $var6; - $var5.$textureV = $var13; - nlea_Tessellator_addVertex($var5, $var24, var$17, $var28); - $var5.$hasTexture = 1; - var$10 = $var22; - $var5.$textureU = var$10; - $var5.$textureV = $var13; - nlea_Tessellator_addVertex($var5, $var26, var$17, $var30); - $var5.$hasTexture = 1; - $var5.$textureU = var$10; - $var5.$textureV = $var11; - nlea_Tessellator_addVertex($var5, $var26, var$16, $var30); - $var5.$hasTexture = 1; - $var5.$textureU = var$10; - $var5.$textureV = $var11; - nlea_Tessellator_addVertex($var5, $var26, var$16, $var30); - $var5.$hasTexture = 1; - $var5.$textureU = var$10; - $var5.$textureV = $var13; - nlea_Tessellator_addVertex($var5, $var26, var$17, $var30); - $var5.$hasTexture = 1; - $var5.$textureU = $var6; - $var5.$textureV = $var13; - nlea_Tessellator_addVertex($var5, $var24, var$17, $var28); - $var5.$hasTexture = 1; - $var5.$textureU = $var6; - $var5.$textureV = $var11; - nlea_Tessellator_addVertex($var5, $var24, var$16, $var28); - $var17 = $var17 + 1 | 0; - } - nms_BlockBrewingStand_setBlockBoundsForItemRender($par1BlockBrewingStand); - return 1; -} -function nms_RenderBlocks_renderBlockCauldron($this, $par1BlockCauldron, $par2, $par3, $par4) { - var $var5, $var17, var$7, $var13, $var11, $var12, var$11, var$12, var$13, var$14, $var6, $var14, $var15; - nms_RenderBlocks_renderStandardBlock($this, $par1BlockCauldron, $par2, $par3, $par4); - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var17 = $this.$blockAccess; - var$7 = $var17.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$var17.$getBlockId($par2, $par3, $par4)]); - $var5.$hasBrightness = 1; - $var5.$brightness = var$7; - $var13 = 1.0; - if (!nms_EntityRenderer_anaglyphEnable) { - $var11 = $var13; - $var12 = $var13; - } else { - $var11 = 1.0; - $var13 = 1.0; - $var12 = $var13; - } - nlea_Tessellator_setColorRGBA($var5, 1.0 * $var11 * 255.0 | 0, 1.0 * $var12 * 255.0 | 0, 1.0 * $var13 * 255.0 | 0, 255); - $var17 = $par1BlockCauldron.$blockIcon; - $var11 = $par2; - var$11 = $var11 - 1.0 + 0.125; - var$12 = $par3; - var$13 = $par4; - nms_RenderBlocks_renderFaceXPos($this, $par1BlockCauldron, var$11, var$12, var$13, $var17); - nms_RenderBlocks_renderFaceXNeg($this, $par1BlockCauldron, $var11 + 1.0 - 0.125, var$12, var$13, $var17); - var$14 = $par2; - $var6 = $par4; - nms_RenderBlocks_renderFaceZPos($this, $par1BlockCauldron, var$14, var$12, $var6 - 1.0 + 0.125, $var17); - nms_RenderBlocks_renderFaceZNeg($this, $par1BlockCauldron, var$14, var$12, $var6 + 1.0 - 0.125, $var17); - $var17 = nms_BlockCauldron_func_94375_b($rt_s(612)); - $var11 = $par3; - $var12 = $var11 - 1.0; - nms_RenderBlocks_renderFaceYPos($this, $par1BlockCauldron, var$14, $var12 + 0.25, var$13, $var17); - nms_RenderBlocks_renderFaceYNeg($this, $par1BlockCauldron, var$14, $var11 + 1.0 - 0.75, var$13, $var17); - $var14 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - if ($var14 > 0) { - $var15 = nms_BlockFluid_func_94424_b($rt_s(613)); - if ($var14 > 3) - $var14 = 3; - nms_RenderBlocks_renderFaceYPos($this, $par1BlockCauldron, var$14, $var12 + (6.0 + $var14 * 3.0) / 16.0, var$13, $var15); - } - return 1; -} -function nms_RenderBlocks_renderBlockFlowerpot($this, $par1BlockFlowerPot, $par2, $par3, $par4) { - var $var5, $var8, $var19, $var14, $var12, var$10, var$11, var$12, var$13, var$14, $var17; - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFlowerPot, $par2, $par3, $par4); - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var8 = $this.$blockAccess; - $var19 = $var8.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$var8.$getBlockId($par2, $par3, $par4)]); - $var5.$hasBrightness = 1; - $var5.$brightness = $var19; - $var8 = nms_RenderBlocks_getIconSafe($this, $par1BlockFlowerPot.$blockIcon); - $var14 = 1.0; - if (!nms_EntityRenderer_anaglyphEnable) { - $var12 = $var14; - var$10 = $var14; - } else { - $var12 = 1.0; - $var14 = 1.0; - var$10 = $var14; - } - nlea_Tessellator_setColorRGBA($var5, 1.0 * $var12 * 255.0 | 0, 1.0 * var$10 * 255.0 | 0, 1.0 * $var14 * 255.0 | 0, 255); - $var14 = $par2; - var$11 = $var14 - 0.5 + 0.18649999797344208; - var$12 = $par3; - var$13 = $par4; - nms_RenderBlocks_renderFaceXPos($this, $par1BlockFlowerPot, var$11, var$12, var$13, $var8); - nms_RenderBlocks_renderFaceXNeg($this, $par1BlockFlowerPot, $var14 + 0.5 - 0.18649999797344208, var$12, var$13, $var8); - var$14 = $par2; - var$10 = $par4; - nms_RenderBlocks_renderFaceZPos($this, $par1BlockFlowerPot, var$14, var$12, var$10 - 0.5 + 0.18649999797344208, $var8); - nms_RenderBlocks_renderFaceZNeg($this, $par1BlockFlowerPot, var$14, var$12, var$10 + 0.5 - 0.18649999797344208, $var8); - var$11 = $par3 - 0.5 + 0.18649999797344208 + 0.1875; - nms_Block_$callClinit(); - nms_RenderBlocks_renderFaceYPos($this, $par1BlockFlowerPot, var$14, var$11, var$13, nms_RenderBlocks_getIconSafe($this, nms_Block_dirt.$getIcon(1, 0))); - $var19 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - if ($var19) { - a: { - b: { - c: { - $var17 = null; - switch ($var19) { - case 1: - break; - case 2: - $var17 = nms_Block_plantYellow; - break b; - case 7: - $var17 = nms_Block_mushroomRed; - break a; - case 8: - $var17 = nms_Block_mushroomBrown; - break a; - case 3: - case 4: - case 5: - case 6: - break c; - default: - break c; - } - $var17 = nms_Block_plantRed; - break a; - } - } - } - $var5.$xOffset = $var5.$xOffset + 0.0; - $var5.$yOffset = $var5.$yOffset + 0.25; - $var5.$zOffset = $var5.$zOffset + 0.0; - if ($var17 !== null) - nms_RenderBlocks_renderBlockByRenderType($this, $var17, $par2, $par3, $par4); - else if ($var19 == 9) { - $this.$renderAllFaces = 1; - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.0, 0.375, 0.625, 0.25, 0.625); - nms_RenderBlocks_renderStandardBlock($this, nms_Block_cactus, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.25, 0.375, 0.625, 0.5, 0.625); - nms_RenderBlocks_renderStandardBlock($this, nms_Block_cactus, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.5, 0.375, 0.625, 0.75, 0.625); - nms_RenderBlocks_renderStandardBlock($this, nms_Block_cactus, $par2, $par3, $par4); - $this.$renderAllFaces = 0; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - } else if ($var19 == 3) - nms_RenderBlocks_drawCrossedSquares($this, nms_Block_sapling, 0, var$14, var$12, var$13, 0.75); - else if ($var19 == 5) - nms_RenderBlocks_drawCrossedSquares($this, nms_Block_sapling, 2, var$14, var$12, var$13, 0.75); - else if ($var19 == 4) - nms_RenderBlocks_drawCrossedSquares($this, nms_Block_sapling, 1, var$14, var$12, var$13, 0.75); - else if ($var19 == 6) - nms_RenderBlocks_drawCrossedSquares($this, nms_Block_sapling, 3, var$14, var$12, var$13, 0.75); - else if ($var19 == 11) { - $par2 = nms_BlockTallGrass_colorMultiplier(nms_Block_tallGrass, $this.$blockAccess, $par2, $par3, $par4); - nlea_Tessellator_setColorOpaque_F($var5, 1.0 * ($par2 >> 16 & 255) / 255.0, 1.0 * ($par2 >> 8 & 255) / 255.0, 1.0 * ($par2 & 255) / 255.0); - nms_RenderBlocks_drawCrossedSquares($this, nms_Block_tallGrass, 2, var$14, var$12, var$13, 0.75); - } else if ($var19 == 10) - nms_RenderBlocks_drawCrossedSquares($this, nms_Block_deadBush, 2, var$14, var$12, var$13, 0.75); - nlea_Tessellator_addTranslation($var5, -0.0, (-0.25), -0.0); - } - return 1; -} -function nms_RenderBlocks_renderBlockAnvilMetadata($this, $par1BlockAnvil, $par2, $par3, $par4, $par5) { - var $var6, var$7, var$8, $var14, $var12, var$11; - nlea_Tessellator_$callClinit(); - $var6 = nlea_Tessellator_instance; - var$7 = $this.$blockAccess; - var$8 = var$7.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[var$7.$getBlockId($par2, $par3, $par4)]); - $var6.$hasBrightness = 1; - $var6.$brightness = var$8; - $var14 = 1.0; - if (!nms_EntityRenderer_anaglyphEnable) { - $var12 = $var14; - var$11 = $var14; - } else { - $var12 = 1.0; - $var14 = 1.0; - var$11 = $var14; - } - $var12 = 1.0 * $var12; - var$11 = 1.0 * var$11; - $var14 = 1.0 * $var14; - nlea_Tessellator_setColorRGBA($var6, $var12 * 255.0 | 0, var$11 * 255.0 | 0, $var14 * 255.0 | 0, 255); - return nms_RenderBlocks_renderBlockAnvilOrient($this, $par1BlockAnvil, $par2, $par3, $par4, $par5, 0); -} -function nms_RenderBlocks_renderBlockAnvilOrient($this, $par1BlockAnvil, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8; - $var7 = $par6 ? 0 : $par5 & 3; - a: { - $var8 = 0; - switch ($var7) { - case 0: - $this.$uvRotateSouth = 2; - $this.$uvRotateNorth = 1; - $this.$uvRotateTop = 3; - $this.$uvRotateBottom = 3; - break a; - case 1: - $this.$uvRotateEast = 1; - $this.$uvRotateWest = 2; - $this.$uvRotateTop = 2; - $this.$uvRotateBottom = 1; - $var8 = 1; - break a; - case 2: - $this.$uvRotateSouth = 1; - $this.$uvRotateNorth = 2; - break a; - case 3: - $this.$uvRotateEast = 2; - $this.$uvRotateWest = 1; - $this.$uvRotateTop = 1; - $this.$uvRotateBottom = 2; - $var8 = 1; - break a; - default: - } - } - nms_RenderBlocks_renderBlockAnvilRotate($this, $par1BlockAnvil, $par2, $par3, $par4, 3, nms_RenderBlocks_renderBlockAnvilRotate($this, $par1BlockAnvil, $par2, $par3, $par4, 2, nms_RenderBlocks_renderBlockAnvilRotate($this, $par1BlockAnvil, $par2, $par3, $par4, 1, nms_RenderBlocks_renderBlockAnvilRotate($this, $par1BlockAnvil, $par2, $par3, $par4, 0, 0.0, 0.75, 0.25, 0.75, $var8, $par6, $par5), 0.5, 0.0625, 0.625, $var8, $par6, $par5), 0.25, 0.3125, 0.5, $var8, $par6, $par5), 0.625, 0.375, 1.0, $var8, $par6, - $par5); - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - $this.$uvRotateEast = 0; - $this.$uvRotateWest = 0; - $this.$uvRotateSouth = 0; - $this.$uvRotateNorth = 0; - $this.$uvRotateTop = 0; - $this.$uvRotateBottom = 0; - return 1; -} -function nms_RenderBlocks_renderBlockAnvilRotate($this, $par1BlockAnvil, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $par11, $par12) { - var var$13, var$14, var$15, var$16, var$17, $var14; - if (!$par10) { - var$13 = $par9; - $par9 = $par7; - $par7 = var$13; - } - var$13 = $par9 / 2.0; - $par9 = $par7 / 2.0; - $par1BlockAnvil.$field_82521_b = $par5; - var$14 = 0.5 - var$13; - var$15 = $par6; - var$16 = 0.5 - $par9; - var$17 = 0.5 + var$13; - $par7 = $par6 + $par8; - nms_RenderBlocks_setRenderBounds($this, var$14, var$15, var$16, var$17, $par7, 0.5 + $par9); - if (!$par11) - nms_RenderBlocks_renderStandardBlock($this, $par1BlockAnvil, $par2, $par3, $par4); - else { - nlea_Tessellator_$callClinit(); - $var14 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var14, 98); - nlea_Tessellator_setNormal($var14, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1BlockAnvil, 0.0, 0.0, 0.0, nms_RenderBlocks_getIconSafe($this, nms_BlockAnvil_getIcon($par1BlockAnvil, 0, $par12))); - nlea_Tessellator_draw($var14); - nlea_Tessellator_startDrawing($var14, 98); - nlea_Tessellator_setNormal($var14, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1BlockAnvil, 0.0, 0.0, 0.0, nms_RenderBlocks_getIconSafe($this, nms_BlockAnvil_getIcon($par1BlockAnvil, 1, $par12))); - nlea_Tessellator_draw($var14); - nlea_Tessellator_startDrawing($var14, 98); - nlea_Tessellator_setNormal($var14, 0.0, 0.0, (-1.0)); - nms_RenderBlocks_renderFaceZNeg($this, $par1BlockAnvil, 0.0, 0.0, 0.0, nms_RenderBlocks_getIconSafe($this, nms_BlockAnvil_getIcon($par1BlockAnvil, 2, $par12))); - nlea_Tessellator_draw($var14); - nlea_Tessellator_startDrawing($var14, 98); - nlea_Tessellator_setNormal($var14, 0.0, 0.0, 1.0); - nms_RenderBlocks_renderFaceZPos($this, $par1BlockAnvil, 0.0, 0.0, 0.0, nms_RenderBlocks_getIconSafe($this, nms_BlockAnvil_getIcon($par1BlockAnvil, 3, $par12))); - nlea_Tessellator_draw($var14); - nlea_Tessellator_startDrawing($var14, 98); - nlea_Tessellator_setNormal($var14, (-1.0), 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1BlockAnvil, 0.0, 0.0, 0.0, nms_RenderBlocks_getIconSafe($this, nms_BlockAnvil_getIcon($par1BlockAnvil, 4, $par12))); - nlea_Tessellator_draw($var14); - nlea_Tessellator_startDrawing($var14, 98); - nlea_Tessellator_setNormal($var14, 1.0, 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1BlockAnvil, 0.0, 0.0, 0.0, nms_RenderBlocks_getIconSafe($this, nms_BlockAnvil_getIcon($par1BlockAnvil, 5, $par12))); - nlea_Tessellator_draw($var14); - } - return $par7; -} -function nms_RenderBlocks_renderBlockTorch($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, var$7; - $var5 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - nlea_Tessellator_$callClinit(); - $var6 = nlea_Tessellator_instance; - var$7 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - $var6.$hasBrightness = 1; - $var6.$brightness = var$7; - nlea_Tessellator_setColorRGBA($var6, 255, 255, 255, 255); - if ($var5 == 1) - nms_RenderBlocks_renderTorchAtAngle($this, $par1Block, $par2 - 0.09999999403953552, $par3 + 0.20000000298023224, $par4, (-0.4000000059604645), 0.0, 0); - else if ($var5 == 2) - nms_RenderBlocks_renderTorchAtAngle($this, $par1Block, $par2 + 0.09999999403953552, $par3 + 0.20000000298023224, $par4, 0.4000000059604645, 0.0, 0); - else if ($var5 == 3) - nms_RenderBlocks_renderTorchAtAngle($this, $par1Block, $par2, $par3 + 0.20000000298023224, $par4 - 0.09999999403953552, 0.0, (-0.4000000059604645), 0); - else if ($var5 != 4) - nms_RenderBlocks_renderTorchAtAngle($this, $par1Block, $par2, $par3, $par4, 0.0, 0.0, 0); - else - nms_RenderBlocks_renderTorchAtAngle($this, $par1Block, $par2, $par3 + 0.20000000298023224, $par4 + 0.09999999403953552, 0.0, 0.4000000059604645, 0); - return 1; -} -function nms_RenderBlocks_renderBlockRepeater($this, $par1BlockRedstoneRepeater, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var20, $var11, $var12, $var14, $var16, $var18, $var21, $var22, $var23, $var24, var$19, var$20, var$21, var$22, var$23, $var27, var$25, $var29, $var25, $var31, var$29, var$30, var$31; - $var5 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var6 = $var5 & 3; - $var7 = ($var5 & 12) >> 2; - nlea_Tessellator_$callClinit(); - $var8 = nlea_Tessellator_instance; - $var20 = $this.$blockAccess; - $var11 = $var20.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$var20.$getBlockId($par2, $par3, $par4)]); - $var8.$hasBrightness = 1; - $var8.$brightness = $var11; - nlea_Tessellator_setColorRGBA($var8, 255, 255, 255, 255); - $var11 = nms_BlockRedstoneLogic_func_94482_f($par1BlockRedstoneRepeater, $this.$blockAccess, $par2, $par3, $par4, $var5) <= 0 ? 0 : 1; - a: { - $var12 = 0.0; - $var14 = 0.0; - $var16 = 0.0; - $var18 = 0.0; - switch ($var6) { - case 0: - $var18 = (-0.3125); - $var14 = nms_BlockRedstoneRepeater_repeaterTorchOffset.data[$var7]; - break a; - case 1: - $var16 = 0.3125; - $var12 = -nms_BlockRedstoneRepeater_repeaterTorchOffset.data[$var7]; - break a; - case 2: - $var18 = 0.3125; - $var14 = -nms_BlockRedstoneRepeater_repeaterTorchOffset.data[$var7]; - break a; - case 3: - $var16 = (-0.3125); - $var12 = nms_BlockRedstoneRepeater_repeaterTorchOffset.data[$var7]; - break a; - default: - } - } - if (!$var11) - nms_RenderBlocks_renderTorchAtAngle($this, $par1BlockRedstoneRepeater, $par2 + $var12, $par3 + (-0.1875), $par4 + $var14, 0.0, 0.0, 0); - else { - b: { - nms_Block_$callClinit(); - $var20 = nms_RenderBlocks_getIconSafe($this, nms_Block_bedrock.$getIcon(1, 0)); - $this.$overrideBlockTexture = $var20; - $var21 = 2.0; - $var22 = 14.0; - $var23 = 7.0; - $var24 = 9.0; - switch ($var6) { - case 1: - case 3: - $var21 = 7.0; - $var22 = 9.0; - $var23 = 2.0; - $var24 = 14.0; - break b; - case 0: - case 2: - break; - default: - } - } - var$19 = $var21 / 16.0; - var$20 = $var12; - var$21 = var$19 + var$20; - var$22 = $var23 / 16.0; - var$23 = $var14; - $var27 = var$22 + var$23; - var$25 = $var22 / 16.0; - $var29 = var$25 + var$20; - var$20 = $var24 / 16.0; - nms_RenderBlocks_setRenderBounds($this, var$21, 0.125, $var27, $var29, 0.25, var$20 + var$23); - $var25 = $var20.$getInterpolatedU($var21); - $var27 = $var20.$getInterpolatedV($var23); - $var29 = $var20.$getInterpolatedU($var22); - $var31 = $var20.$getInterpolatedV($var24); - $var22 = $par2; - var$29 = $var22 + var$19 + $var12; - var$30 = $par3 + 0.25; - var$31 = $par4; - var$21 = var$31 + var$22 + $var14; - $var8.$hasTexture = 1; - $var21 = $var25; - $var8.$textureU = $var21; - $var23 = $var27; - $var8.$textureV = $var23; - nlea_Tessellator_addVertex($var8, var$29, var$30, var$21); - $var25 = var$31 + var$20 + $var14; - $var8.$hasTexture = 1; - $var8.$textureU = $var21; - $var21 = $var31; - $var8.$textureV = $var21; - nlea_Tessellator_addVertex($var8, var$29, var$30, $var25); - $var27 = $var22 + var$25 + $var12; - $var8.$hasTexture = 1; - var$31 = $var29; - $var8.$textureU = var$31; - $var8.$textureV = $var21; - nlea_Tessellator_addVertex($var8, $var27, var$30, $var25); - $var8.$hasTexture = 1; - $var8.$textureU = var$31; - $var8.$textureV = $var23; - nlea_Tessellator_addVertex($var8, $var27, var$30, var$21); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockRedstoneRepeater, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 0.125, 1.0); - $this.$overrideBlockTexture = null; - } - $var20 = $this.$blockAccess; - $var6 = $var20.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$var20.$getBlockId($par2, $par3, $par4)]); - $var8.$hasBrightness = 1; - $var8.$brightness = $var6; - nlea_Tessellator_setColorRGBA($var8, 255, 255, 255, 255); - nms_RenderBlocks_renderTorchAtAngle($this, $par1BlockRedstoneRepeater, $par2 + $var16, $par3 + (-0.1875), $par4 + $var18, 0.0, 0.0, 0); - nms_RenderBlocks_renderBlockRedstoneLogicMetadata($this, $par1BlockRedstoneRepeater, $par2, $par3, $par4, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4) & 3); - return 1; -} -function nms_RenderBlocks_renderBlockComparator($this, $par1BlockComparator, $par2, $par3, $par4) { - var $var5, $var18, var$7, $var6, $var7, $var8, $var10, $var12, $var14, $var16, var$15, var$16, var$17, var$18, var$19, var$20; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var18 = $this.$blockAccess; - var$7 = $var18.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$var18.$getBlockId($par2, $par3, $par4)]); - $var5.$hasBrightness = 1; - $var5.$brightness = var$7; - nlea_Tessellator_setColorRGBA($var5, 255, 255, 255, 255); - $var6 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var7 = $var6 & 3; - $var8 = 0.0; - $var10 = (-0.1875); - $var12 = 0.0; - $var14 = 0.0; - $var16 = 0.0; - if (!(($var6 & 4) != 4 ? 0 : 1)) { - $var10 = (-0.375); - nms_Block_$callClinit(); - $var18 = nms_Block_torchRedstoneIdle.$getIcon(0, 0); - } else { - nms_Block_$callClinit(); - $var18 = nms_Block_torchRedstoneActive.$getIcon(0, 0); - } - a: { - switch ($var7) { - case 0: - $var12 = (-0.3125); - $var16 = 1.0; - break a; - case 1: - $var8 = 0.3125; - $var14 = (-1.0); - break a; - case 2: - $var12 = 0.3125; - $var16 = (-1.0); - break a; - case 3: - $var8 = (-0.3125); - $var14 = 1.0; - break a; - default: - } - } - var$15 = $par2; - var$16 = var$15 + 0.25 * $var14; - var$17 = var$16 + 0.1875 * $var16; - var$18 = $par3 - 0.1875; - var$19 = $par4; - var$20 = var$19 + 0.25 * $var16; - nms_RenderBlocks_renderTorchAtAngle($this, $par1BlockComparator, var$17, var$18, var$20 + 0.1875 * $var14, 0.0, 0.0, $var6); - nms_RenderBlocks_renderTorchAtAngle($this, $par1BlockComparator, var$16 + (-0.1875) * $var16, var$18, var$20 + (-0.1875) * $var14, 0.0, 0.0, $var6); - $this.$overrideBlockTexture = $var18; - nms_RenderBlocks_renderTorchAtAngle($this, $par1BlockComparator, var$15 + $var8, $par3 + $var10, var$19 + $var12, 0.0, 0.0, $var6); - $this.$overrideBlockTexture = null; - nms_RenderBlocks_renderBlockRedstoneLogicMetadata($this, $par1BlockComparator, $par2, $par3, $par4, $var7); - return 1; -} -function nms_RenderBlocks_renderBlockRedstoneLogicMetadata($this, $par1BlockRedstoneLogic, $par2, $par3, $par4, $par5) { - var $var6, $var8, var$8, $var9, $var11, $var13, $var15, $var19, $var23, $var27, $var29, $var35, $var17, var$19, var$20, var$21, var$22, var$23, var$24, var$25, var$26; - nms_RenderBlocks_renderStandardBlock($this, $par1BlockRedstoneLogic, $par2, $par3, $par4); - nlea_Tessellator_$callClinit(); - $var6 = nlea_Tessellator_instance; - $var8 = $this.$blockAccess; - var$8 = $var8.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$var8.$getBlockId($par2, $par3, $par4)]); - $var6.$hasBrightness = 1; - $var6.$brightness = var$8; - nlea_Tessellator_setColorRGBA($var6, 255, 255, 255, 255); - $var8 = nms_RenderBlocks_getIconSafe($this, $par1BlockRedstoneLogic.$getIcon(1, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4))); - $var9 = $var8.$getMinU(); - $var11 = $var8.$getMaxU(); - $var13 = $var8.$getMinV(); - $var15 = $var8.$getMaxV(); - $var19 = $par2 + 1 | 0; - $var23 = $par2 + 0 | 0; - $var27 = $par4 + 0 | 0; - $var29 = $par4 + 1 | 0; - $var35 = $par3 + 0.125; - if ($par5 == 2) { - $var17 = $var23; - var$19 = $var19; - var$20 = $var29; - var$21 = $var27; - } else if ($par5 == 3) { - $var17 = $var19; - var$22 = $var23; - var$19 = $var23; - var$20 = $var29; - var$23 = $var27; - var$21 = $var29; - $var23 = var$22; - $var29 = var$23; - } else if ($par5 != 1) { - $var17 = $var19; - var$19 = $var23; - var$22 = $var23; - var$20 = $var27; - var$21 = $var29; - var$23 = $var29; - $var23 = $var19; - $var19 = var$22; - $var29 = $var27; - $var27 = var$23; - } else { - $var17 = $var23; - var$19 = $var19; - var$21 = $var23; - var$20 = $var27; - var$22 = $var29; - var$23 = $var29; - $var23 = var$19; - var$19 = $var19; - $var19 = var$21; - $var29 = var$22; - var$21 = $var27; - $var27 = var$23; - } - $var6.$hasTexture = 1; - var$24 = $var9; - $var6.$textureU = var$24; - var$25 = $var13; - $var6.$textureV = var$25; - nlea_Tessellator_addVertex($var6, var$19, $var35, var$20); - $var6.$hasTexture = 1; - $var6.$textureU = var$24; - var$26 = $var15; - $var6.$textureV = var$26; - nlea_Tessellator_addVertex($var6, $var19, $var35, var$21); - $var6.$hasTexture = 1; - var$24 = $var11; - $var6.$textureU = var$24; - $var6.$textureV = var$26; - nlea_Tessellator_addVertex($var6, $var17, $var35, $var27); - $var6.$hasTexture = 1; - $var6.$textureU = var$24; - $var6.$textureV = var$25; - nlea_Tessellator_addVertex($var6, $var23, $var35, $var29); -} -function nms_RenderBlocks_renderPistonBaseAllFaces($this, $par1Block, $par2, $par3, $par4) { - $this.$renderAllFaces = 1; - nms_RenderBlocks_renderPistonBase($this, $par1Block, $par2, $par3, $par4, 1); - $this.$renderAllFaces = 0; -} -function nms_RenderBlocks_renderPistonBase($this, $par1Block, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, var$9, var$10, var$11, var$12, var$13, var$14, var$15; - $var6 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var7 = !$par5 && !($var6 & 8) ? 0 : 1; - $var8 = $var6 & 7; - if (!$var7) { - a: { - b: { - switch ($var8) { - case 0: - $this.$uvRotateEast = 3; - $this.$uvRotateWest = 3; - $this.$uvRotateSouth = 3; - $this.$uvRotateNorth = 3; - break b; - case 1: - break b; - case 2: - break; - case 3: - $this.$uvRotateSouth = 2; - $this.$uvRotateNorth = 1; - $this.$uvRotateTop = 3; - $this.$uvRotateBottom = 3; - break a; - case 4: - $this.$uvRotateEast = 1; - $this.$uvRotateWest = 2; - $this.$uvRotateTop = 2; - $this.$uvRotateBottom = 1; - break a; - case 5: - $this.$uvRotateEast = 2; - $this.$uvRotateWest = 1; - $this.$uvRotateTop = 1; - $this.$uvRotateBottom = 2; - break a; - default: - break b; - } - $this.$uvRotateSouth = 1; - $this.$uvRotateNorth = 2; - break a; - } - } - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - $this.$uvRotateEast = 0; - $this.$uvRotateWest = 0; - $this.$uvRotateSouth = 0; - $this.$uvRotateNorth = 0; - $this.$uvRotateTop = 0; - $this.$uvRotateBottom = 0; - } else { - c: { - switch ($var8) { - case 0: - $this.$uvRotateEast = 3; - $this.$uvRotateWest = 3; - $this.$uvRotateSouth = 3; - $this.$uvRotateNorth = 3; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.25, 0.0, 1.0, 1.0, 1.0); - break c; - case 1: - break; - case 2: - $this.$uvRotateSouth = 1; - $this.$uvRotateNorth = 2; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.25, 1.0, 1.0, 1.0); - break c; - case 3: - $this.$uvRotateSouth = 2; - $this.$uvRotateNorth = 1; - $this.$uvRotateTop = 3; - $this.$uvRotateBottom = 3; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 0.75); - break c; - case 4: - $this.$uvRotateEast = 1; - $this.$uvRotateWest = 2; - $this.$uvRotateTop = 2; - $this.$uvRotateBottom = 1; - nms_RenderBlocks_setRenderBounds($this, 0.25, 0.0, 0.0, 1.0, 1.0, 1.0); - break c; - case 5: - $this.$uvRotateEast = 2; - $this.$uvRotateWest = 1; - $this.$uvRotateTop = 1; - $this.$uvRotateBottom = 2; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 0.75, 1.0, 1.0); - break c; - default: - break c; - } - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 0.75, 1.0); - } - var$9 = $par1Block; - var$10 = $this.$renderMinX; - var$11 = $this.$renderMinY; - var$12 = $this.$renderMinZ; - var$13 = $this.$renderMaxX; - var$14 = $this.$renderMaxY; - var$15 = $this.$renderMaxZ; - var$9.$minX0 = var$10; - var$9.$minY0 = var$11; - var$9.$minZ0 = var$12; - var$9.$maxX0 = var$13; - var$9.$maxY0 = var$14; - var$9.$maxZ0 = var$15; - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - $this.$uvRotateEast = 0; - $this.$uvRotateWest = 0; - $this.$uvRotateSouth = 0; - $this.$uvRotateNorth = 0; - $this.$uvRotateTop = 0; - $this.$uvRotateBottom = 0; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - var$10 = $this.$renderMinX; - var$11 = $this.$renderMinY; - var$12 = $this.$renderMinZ; - var$13 = $this.$renderMaxX; - var$14 = $this.$renderMaxY; - var$15 = $this.$renderMaxZ; - var$9.$minX0 = var$10; - var$9.$minY0 = var$11; - var$9.$minZ0 = var$12; - var$9.$maxX0 = var$13; - var$9.$maxY0 = var$14; - var$9.$maxZ0 = var$15; - } - return 1; -} -function nms_RenderBlocks_renderPistonRodUD($this, $par1, $par3, $par5, $par7, $par9, $par11, $par13, $par14) { - var $var16, $var17, $var18, $var20, $var22, $var24, var$15, var$16, var$17; - $var16 = nms_BlockPistonBase_func_94496_b($rt_s(614)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var16 = $this.$overrideBlockTexture; - nlea_Tessellator_$callClinit(); - $var17 = nlea_Tessellator_instance; - $var18 = $var16.$getMinU(); - $var20 = $var16.$getMinV(); - $var22 = $var16.$getInterpolatedU($par14); - $var24 = $var16.$getInterpolatedV(4.0); - var$15 = $par13 * 255.0 | 0; - nlea_Tessellator_setColorRGBA($var17, var$15, var$15, var$15, 255); - $var17.$hasTexture = 1; - var$16 = $var22; - $var17.$textureU = var$16; - $par13 = $var20; - $var17.$textureV = $par13; - nlea_Tessellator_addVertex($var17, $par1, $par7, $par9); - $var17.$hasTexture = 1; - var$17 = $var18; - $var17.$textureU = var$17; - $var17.$textureV = $par13; - nlea_Tessellator_addVertex($var17, $par1, $par5, $par9); - $var17.$hasTexture = 1; - $var17.$textureU = var$17; - $par13 = $var24; - $var17.$textureV = $par13; - nlea_Tessellator_addVertex($var17, $par3, $par5, $par11); - $var17.$hasTexture = 1; - $var17.$textureU = var$16; - $var17.$textureV = $par13; - nlea_Tessellator_addVertex($var17, $par3, $par7, $par11); -} -function nms_RenderBlocks_renderPistonRodSN($this, $par1, $par3, $par5, $par7, $par9, $par11, $par13, $par14) { - var $var16, $var17, $var18, $var20, $var22, $var24, var$15, var$16, var$17; - $var16 = nms_BlockPistonBase_func_94496_b($rt_s(614)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var16 = $this.$overrideBlockTexture; - nlea_Tessellator_$callClinit(); - $var17 = nlea_Tessellator_instance; - $var18 = $var16.$getMinU(); - $var20 = $var16.$getMinV(); - $var22 = $var16.$getInterpolatedU($par14); - $var24 = $var16.$getInterpolatedV(4.0); - var$15 = $par13 * 255.0 | 0; - nlea_Tessellator_setColorRGBA($var17, var$15, var$15, var$15, 255); - $var17.$hasTexture = 1; - $par13 = $var22; - $var17.$textureU = $par13; - var$16 = $var20; - $var17.$textureV = var$16; - nlea_Tessellator_addVertex($var17, $par1, $par5, $par11); - $var17.$hasTexture = 1; - var$17 = $var18; - $var17.$textureU = var$17; - $var17.$textureV = var$16; - nlea_Tessellator_addVertex($var17, $par1, $par5, $par9); - $var17.$hasTexture = 1; - $var17.$textureU = var$17; - var$17 = $var24; - $var17.$textureV = var$17; - nlea_Tessellator_addVertex($var17, $par3, $par7, $par9); - $var17.$hasTexture = 1; - $var17.$textureU = $par13; - $var17.$textureV = var$17; - nlea_Tessellator_addVertex($var17, $par3, $par7, $par11); -} -function nms_RenderBlocks_renderPistonRodEW($this, $par1, $par3, $par5, $par7, $par9, $par11, $par13, $par14) { - var $var16, $var17, $var18, $var20, $var22, $var24, var$15, var$16, var$17; - $var16 = nms_BlockPistonBase_func_94496_b($rt_s(614)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var16 = $this.$overrideBlockTexture; - nlea_Tessellator_$callClinit(); - $var17 = nlea_Tessellator_instance; - $var18 = $var16.$getMinU(); - $var20 = $var16.$getMinV(); - $var22 = $var16.$getInterpolatedU($par14); - $var24 = $var16.$getInterpolatedV(4.0); - var$15 = $par13 * 255.0 | 0; - nlea_Tessellator_setColorRGBA($var17, var$15, var$15, var$15, 255); - $var17.$hasTexture = 1; - var$16 = $var22; - $var17.$textureU = var$16; - var$17 = $var20; - $var17.$textureV = var$17; - nlea_Tessellator_addVertex($var17, $par3, $par5, $par9); - $var17.$hasTexture = 1; - $par13 = $var18; - $var17.$textureU = $par13; - $var17.$textureV = var$17; - nlea_Tessellator_addVertex($var17, $par1, $par5, $par9); - $var17.$hasTexture = 1; - $var17.$textureU = $par13; - $par13 = $var24; - $var17.$textureV = $par13; - nlea_Tessellator_addVertex($var17, $par1, $par7, $par11); - $var17.$hasTexture = 1; - $var17.$textureU = var$16; - $var17.$textureV = $par13; - nlea_Tessellator_addVertex($var17, $par3, $par7, $par11); -} -function nms_RenderBlocks_renderPistonExtensionAllFaces($this, $par1Block, $par2, $par3, $par4, $par5) { - $this.$renderAllFaces = 1; - nms_RenderBlocks_renderPistonExtension($this, $par1Block, $par2, $par3, $par4, $par5); - $this.$renderAllFaces = 0; -} -function nms_RenderBlocks_renderPistonExtension($this, $par1Block, $par2, $par3, $par4, $par5) { - var $var7, $var11, $var12, $var13, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17; - $var7 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4) & 7; - $var11 = $par1Block.$getBlockBrightness($this.$blockAccess, $par2, $par3, $par4); - $var12 = !$par5 ? 0.5 : 1.0; - $var13 = !$par5 ? 8.0 : 16.0; - a: { - switch ($var7) { - case 0: - $this.$uvRotateEast = 3; - $this.$uvRotateWest = 3; - $this.$uvRotateSouth = 3; - $this.$uvRotateNorth = 3; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 0.25, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - var$10 = $par2; - var$11 = var$10 + 0.375; - var$12 = var$10 + 0.625; - var$10 = $par3 + 0.25; - var$13 = var$10; - var$14 = var$10 + $var12; - $var12 = $par4; - var$15 = $var12 + 0.625; - var$10 = $var11 * 0.800000011920929; - nms_RenderBlocks_renderPistonRodUD($this, var$11, var$12, var$13, var$14, var$15, var$15, var$10, $var13); - var$16 = $var12 + 0.375; - nms_RenderBlocks_renderPistonRodUD($this, var$12, var$11, var$13, var$14, var$16, var$16, var$10, $var13); - $var11 = $var11 * 0.6000000238418579; - nms_RenderBlocks_renderPistonRodUD($this, var$11, var$11, var$13, var$14, var$16, var$15, $var11, $var13); - nms_RenderBlocks_renderPistonRodUD($this, var$12, var$12, var$13, var$14, var$15, var$16, $var11, $var13); - break a; - case 1: - break; - case 2: - $this.$uvRotateSouth = 1; - $this.$uvRotateNorth = 2; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 0.25); - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - var$10 = $par2; - var$11 = var$10 + 0.375; - var$17 = $par3; - var$12 = var$17 + 0.625; - var$13 = var$17 + 0.375; - var$17 = $par4 + 0.25; - var$14 = var$17; - var$15 = var$17 + $var12; - $var12 = $var11 * 0.6000000238418579; - nms_RenderBlocks_renderPistonRodSN($this, var$11, var$11, var$12, var$13, var$14, var$15, $var12, $var13); - var$16 = var$10 + 0.625; - nms_RenderBlocks_renderPistonRodSN($this, var$16, var$16, var$13, var$12, var$14, var$15, $var12, $var13); - nms_RenderBlocks_renderPistonRodSN($this, var$11, var$16, var$13, var$13, var$14, var$15, $var11 * 0.5, $var13); - nms_RenderBlocks_renderPistonRodSN($this, var$16, var$11, var$12, var$12, var$14, var$15, $var11, $var13); - break a; - case 3: - $this.$uvRotateSouth = 2; - $this.$uvRotateNorth = 1; - $this.$uvRotateTop = 3; - $this.$uvRotateBottom = 3; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.75, 1.0, 1.0, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - var$10 = $par2; - var$11 = var$10 + 0.375; - var$17 = $par3; - var$12 = var$17 + 0.625; - var$13 = var$17 + 0.375; - var$17 = $par4 - 0.25 + 1.0; - var$14 = var$17 - $var12; - var$15 = var$17; - $var12 = $var11 * 0.6000000238418579; - nms_RenderBlocks_renderPistonRodSN($this, var$11, var$11, var$12, var$13, var$14, var$15, $var12, $var13); - var$16 = var$10 + 0.625; - nms_RenderBlocks_renderPistonRodSN($this, var$16, var$16, var$13, var$12, var$14, var$15, $var12, $var13); - nms_RenderBlocks_renderPistonRodSN($this, var$11, var$16, var$13, var$13, var$14, var$15, $var11 * 0.5, $var13); - nms_RenderBlocks_renderPistonRodSN($this, var$16, var$11, var$12, var$12, var$14, var$15, $var11, $var13); - break a; - case 4: - $this.$uvRotateEast = 1; - $this.$uvRotateWest = 2; - $this.$uvRotateTop = 2; - $this.$uvRotateBottom = 1; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 0.25, 1.0, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - var$10 = $par2 + 0.25; - var$11 = var$10; - var$12 = var$10 + $var12; - $var12 = $par3; - var$13 = $var12 + 0.375; - var$10 = $par4; - var$14 = var$10 + 0.625; - var$15 = var$10 + 0.375; - nms_RenderBlocks_renderPistonRodEW($this, var$11, var$12, var$13, var$13, var$14, var$15, $var11 * 0.5, $var13); - var$16 = $var12 + 0.625; - nms_RenderBlocks_renderPistonRodEW($this, var$11, var$12, var$16, var$16, var$15, var$14, $var11, $var13); - $var11 = $var11 * 0.6000000238418579; - nms_RenderBlocks_renderPistonRodEW($this, var$11, var$12, var$13, var$16, var$15, var$15, $var11, $var13); - nms_RenderBlocks_renderPistonRodEW($this, var$11, var$12, var$16, var$13, var$14, var$14, $var11, $var13); - break a; - case 5: - $this.$uvRotateEast = 2; - $this.$uvRotateWest = 1; - $this.$uvRotateTop = 1; - $this.$uvRotateBottom = 2; - nms_RenderBlocks_setRenderBounds($this, 0.75, 0.0, 0.0, 1.0, 1.0, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - var$10 = $par2 - 0.25 + 1.0; - var$11 = var$10 - $var12; - var$12 = var$10; - $var12 = $par3; - var$13 = $var12 + 0.375; - var$10 = $par4; - var$14 = var$10 + 0.625; - var$15 = var$10 + 0.375; - nms_RenderBlocks_renderPistonRodEW($this, var$11, var$12, var$13, var$13, var$14, var$15, $var11 * 0.5, $var13); - var$16 = $var12 + 0.625; - nms_RenderBlocks_renderPistonRodEW($this, var$11, var$12, var$16, var$16, var$15, var$14, $var11, $var13); - $var11 = $var11 * 0.6000000238418579; - nms_RenderBlocks_renderPistonRodEW($this, var$11, var$12, var$13, var$16, var$15, var$15, $var11, $var13); - nms_RenderBlocks_renderPistonRodEW($this, var$11, var$12, var$16, var$13, var$14, var$14, $var11, $var13); - break a; - default: - break a; - } - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.75, 0.0, 1.0, 1.0, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - var$10 = $par2; - var$11 = var$10 + 0.375; - var$12 = var$10 + 0.625; - var$10 = $par3 - 0.25 + 1.0; - var$13 = var$10 - $var12; - var$14 = var$10; - $var12 = $par4; - var$15 = $var12 + 0.625; - var$10 = $var11 * 0.800000011920929; - nms_RenderBlocks_renderPistonRodUD($this, var$11, var$12, var$13, var$14, var$15, var$15, var$10, $var13); - var$16 = $var12 + 0.375; - nms_RenderBlocks_renderPistonRodUD($this, var$12, var$11, var$13, var$14, var$16, var$16, var$10, $var13); - $var11 = $var11 * 0.6000000238418579; - nms_RenderBlocks_renderPistonRodUD($this, var$11, var$11, var$13, var$14, var$16, var$15, $var11, $var13); - nms_RenderBlocks_renderPistonRodUD($this, var$12, var$12, var$13, var$14, var$15, var$16, $var11, $var13); - } - $this.$uvRotateEast = 0; - $this.$uvRotateWest = 0; - $this.$uvRotateSouth = 0; - $this.$uvRotateNorth = 0; - $this.$uvRotateTop = 0; - $this.$uvRotateBottom = 0; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - return 1; -} -function nms_RenderBlocks_renderBlockLever($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, var$10, $var13, $var14, $var15, $var17, $var19, $var21, $var23, $var27, $var31, var$20, var$21, var$22, var$23, var$24, var$25, var$26, var$27, $var32, $var28, $var29, $var30; - $var5 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var6 = $var5 & 7; - $var7 = ($var5 & 8) <= 0 ? 0 : 1; - nlea_Tessellator_$callClinit(); - $var8 = nlea_Tessellator_instance; - $var9 = nms_RenderBlocks_hasOverrideBlockTexture($this); - if (!$var9) { - nms_Block_$callClinit(); - nms_RenderBlocks_setOverrideBlockTexture($this, nms_RenderBlocks_getBlockIcon0($this, nms_Block_cobblestone)); - } - a: { - var$10 = $rt_compare($var6, 5); - if (!var$10) { - nms_RenderBlocks_setRenderBounds($this, 0.3125, 0.0, 0.25, 0.6875, 0.1875, 0.75); - break a; - } - if ($var6 == 6) { - nms_RenderBlocks_setRenderBounds($this, 0.25, 0.0, 0.3125, 0.75, 0.1875, 0.6875); - break a; - } - if ($var6 == 4) { - nms_RenderBlocks_setRenderBounds($this, 0.3125, 0.25, 0.8125, 0.6875, 0.75, 1.0); - break a; - } - if ($var6 == 3) { - nms_RenderBlocks_setRenderBounds($this, 0.3125, 0.25, 0.0, 0.6875, 0.75, 0.1875); - break a; - } - if ($var6 == 2) { - nms_RenderBlocks_setRenderBounds($this, 0.8125, 0.25, 0.3125, 1.0, 0.75, 0.6875); - break a; - } - if ($var6 == 1) { - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.25, 0.3125, 0.1875, 0.75, 0.6875); - break a; - } - if (!$var6) { - nms_RenderBlocks_setRenderBounds($this, 0.25, 0.8125, 0.3125, 0.75, 1.0, 0.6875); - break a; - } - if ($var6 != 7) - break a; - nms_RenderBlocks_setRenderBounds($this, 0.3125, 0.8125, 0.25, 0.6875, 1.0, 0.75); - } - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - if (!$var9) - nms_RenderBlocks_clearOverrideBlockTexture($this); - nlea_Tessellator_setBrightness($var8, $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4)); - $var13 = 1.0; - if (nms_Block_lightValue.data[$par1Block.$blockID] > 0) - $var13 = 1.0; - nlea_Tessellator_setColorOpaque_F($var8, $var13, $var13, $var13); - $var14 = nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 0); - if (nms_RenderBlocks_hasOverrideBlockTexture($this)) - $var14 = $this.$overrideBlockTexture; - $var15 = $var14.$getMinU(); - $var17 = $var14.$getMinV(); - $var19 = $var14.$getMaxU(); - $var21 = $var14.$getMaxV(); - $var23 = $rt_createArray(nms_Vec3, 8).data; - $var23[0] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.0625), 0.0, (-0.0625)); - $var23[1] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.0625, 0.0, (-0.0625)); - $var23[2] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.0625, 0.0, 0.0625); - $var23[3] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.0625), 0.0, 0.0625); - $var23[4] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.0625), 0.625, (-0.0625)); - $var23[5] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.0625, 0.625, (-0.0625)); - $var23[6] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.0625, 0.625, 0.0625); - $var23[7] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.0625), 0.625, 0.0625); - $var27 = 0; - $var31 = $rt_compare($var6, 6); - $var9 = $rt_compare($var6, 4); - $var5 = $rt_compare($var6, 3); - var$20 = $rt_compare($var6, 2); - var$21 = $rt_compare($var6, 1); - var$22 = $par2 + 0.5; - var$23 = $par3; - var$24 = var$23 + 0.5; - var$25 = $par4 + 0.5; - $par2 = $rt_compare($var6, 7); - var$26 = var$23 + 0.125; - var$27 = var$23 + 0.875; - while ($var27 < 8) { - if (!$var7) { - $par1Block = $var23[$var27]; - $par1Block.$zCoord = $par1Block.$zCoord + 0.0625; - nms_Vec3_rotateAroundX($var23[$var27], (-0.6981317400932312)); - } else { - $par1Block = $var23[$var27]; - $par1Block.$zCoord = $par1Block.$zCoord - 0.0625; - nms_Vec3_rotateAroundX($var23[$var27], 0.6981317400932312); - } - if (!($var6 && $par2)) - nms_Vec3_rotateAroundZ($var23[$var27], 3.1415927410125732); - if (!($var31 && $var6)) - nms_Vec3_rotateAroundY($var23[$var27], 1.5707963705062866); - if ($var6 > 0 && var$10 < 0) { - $par1Block = $var23[$var27]; - $par1Block.$yCoord = $par1Block.$yCoord - 0.375; - nms_Vec3_rotateAroundX($var23[$var27], 1.5707963705062866); - if (!$var9) - nms_Vec3_rotateAroundY($var23[$var27], 0.0); - if (!$var5) - nms_Vec3_rotateAroundY($var23[$var27], 3.1415927410125732); - if (!var$20) - nms_Vec3_rotateAroundY($var23[$var27], 1.5707963705062866); - if (!var$21) - nms_Vec3_rotateAroundY($var23[$var27], (-1.5707963705062866)); - $par1Block = $var23[$var27]; - $par1Block.$xCoord = $par1Block.$xCoord + var$22; - $par1Block = $var23[$var27]; - $par1Block.$yCoord = $par1Block.$yCoord + var$24; - $par1Block = $var23[$var27]; - $par1Block.$zCoord = $par1Block.$zCoord + var$25; - } else if ($var6 && $par2) { - $par1Block = $var23[$var27]; - $par1Block.$xCoord = $par1Block.$xCoord + var$22; - $par1Block = $var23[$var27]; - $par1Block.$yCoord = $par1Block.$yCoord + var$26; - $par1Block = $var23[$var27]; - $par1Block.$zCoord = $par1Block.$zCoord + var$25; - } else { - $par1Block = $var23[$var27]; - $par1Block.$xCoord = $par1Block.$xCoord + var$22; - $par1Block = $var23[$var27]; - $par1Block.$yCoord = $par1Block.$yCoord + var$27; - $par1Block = $var23[$var27]; - $par1Block.$zCoord = $par1Block.$zCoord + var$25; - } - $var27 = $var27 + 1 | 0; - } - $var32 = null; - $var28 = null; - $var29 = null; - $var30 = null; - $var31 = 0; - while ($var31 < 6) { - if (!$var31) { - $var15 = $var14.$getInterpolatedU(7.0); - $var17 = $var14.$getInterpolatedV(6.0); - $var19 = $var14.$getInterpolatedU(9.0); - $var21 = $var14.$getInterpolatedV(8.0); - } else if ($var31 == 2) { - $var15 = $var14.$getInterpolatedU(7.0); - $var17 = $var14.$getInterpolatedV(6.0); - $var19 = $var14.$getInterpolatedU(9.0); - $var21 = $var14.$getMaxV(); - } - if (!$var31) { - $var32 = $var23[0]; - $var28 = $var23[1]; - $var29 = $var23[2]; - $var30 = $var23[3]; - } else if ($var31 == 1) { - $var32 = $var23[7]; - $var28 = $var23[6]; - $var29 = $var23[5]; - $var30 = $var23[4]; - } else if ($var31 == 2) { - $var32 = $var23[1]; - $var28 = $var23[0]; - $var29 = $var23[4]; - $var30 = $var23[5]; - } else if ($var31 == 3) { - $var32 = $var23[2]; - $var28 = $var23[1]; - $var29 = $var23[5]; - $var30 = $var23[6]; - } else if ($var31 == 4) { - $var32 = $var23[3]; - $var28 = $var23[2]; - $var29 = $var23[6]; - $var30 = $var23[7]; - } else if ($var31 == 5) { - $var32 = $var23[0]; - $var28 = $var23[3]; - $var29 = $var23[7]; - $var30 = $var23[4]; - } - nlea_Tessellator_addVertexWithUV($var8, $var32.$xCoord, $var32.$yCoord, $var32.$zCoord, $var15, $var21); - nlea_Tessellator_addVertexWithUV($var8, $var28.$xCoord, $var28.$yCoord, $var28.$zCoord, $var19, $var21); - nlea_Tessellator_addVertexWithUV($var8, $var29.$xCoord, $var29.$yCoord, $var29.$zCoord, $var19, $var17); - nlea_Tessellator_addVertexWithUV($var8, $var30.$xCoord, $var30.$yCoord, $var30.$zCoord, $var15, $var17); - $var31 = $var31 + 1 | 0; - } - return 1; -} -function nms_RenderBlocks_renderBlockTripWireSource($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var17, $var18, $var19, $var21, $var23, $var25, $var27, $var31, $var46, var$21, var$22, $var52, var$24, var$25, $var62, $var32, $var33, $var34, $var39, $var42, var$32, $var65, $var54, $var56, $var58, $var60, var$38, var$39; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var7 = $var6 & 3; - $var8 = ($var6 & 4) != 4 ? 0 : 1; - $var9 = ($var6 & 8) != 8 ? 0 : 1; - $var10 = $this.$blockAccess.$doesBlockHaveSolidTopSurface($par2, $par3 - 1 | 0, $par4) ? 0 : 1; - $var11 = nms_RenderBlocks_hasOverrideBlockTexture($this); - if (!$var11) { - nms_Block_$callClinit(); - nms_RenderBlocks_setOverrideBlockTexture($this, nms_RenderBlocks_getBlockIcon0($this, nms_Block_planks)); - } - $var6 = $rt_compare($var7, 2); - if (!$var6) - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.050000011920928955, 0.875, 0.625, 0.550000011920929, 1.0); - else if (!$var7) - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.050000011920928955, 0.0, 0.625, 0.550000011920929, 0.125); - else if ($var7 == 1) - nms_RenderBlocks_setRenderBounds($this, 0.875, 0.050000011920928955, 0.375, 1.0, 0.550000011920929, 0.625); - else if ($var7 == 3) - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.050000011920928955, 0.375, 0.125, 0.550000011920929, 0.625); - nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - if (!$var11) - nms_RenderBlocks_clearOverrideBlockTexture($this); - nlea_Tessellator_setBrightness($var5, $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4)); - $var17 = 1.0; - if (nms_Block_lightValue.data[$par1Block.$blockID] > 0) - $var17 = 1.0; - nlea_Tessellator_setColorOpaque_F($var5, $var17, $var17, $var17); - $var18 = nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 0); - if (nms_RenderBlocks_hasOverrideBlockTexture($this)) - $var18 = $this.$overrideBlockTexture; - $var19 = $var18.$getMinU(); - $var21 = $var18.$getMinV(); - $var23 = $var18.$getMaxU(); - $var25 = $var18.$getMaxV(); - $var27 = $rt_createArray(nms_Vec3, 8).data; - $var27[0] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.046875), 0.0, (-0.046875)); - $var27[1] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.046875, 0.0, (-0.046875)); - $var27[2] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.046875, 0.0, 0.046875); - $var27[3] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.046875), 0.0, 0.046875); - $var27[4] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.046875), 0.3125, (-0.046875)); - $var27[5] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.046875, 0.3125, (-0.046875)); - $var27[6] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.046875, 0.3125, 0.046875); - $var27[7] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.046875), 0.3125, 0.046875); - $var31 = 0; - $var11 = $rt_compare($var7, 1); - $var46 = $rt_compare($var7, 3); - var$21 = $par2; - var$22 = var$21 + 0.5; - $var52 = $par3 + 0.3125; - var$24 = $par4; - var$25 = var$24 + 0.5; - while ($var31 < 8) { - $var62 = $var27[$var31]; - $var62.$zCoord = $var62.$zCoord + 0.0625; - if ($var9) { - nms_Vec3_rotateAroundX($var27[$var31], 0.5235987901687622); - $var62 = $var27[$var31]; - $var62.$yCoord = $var62.$yCoord - 0.4375; - } else if (!$var8) { - nms_Vec3_rotateAroundX($var27[$var31], (-0.6981317400932312)); - $var62 = $var27[$var31]; - $var62.$yCoord = $var62.$yCoord - 0.375; - } else { - nms_Vec3_rotateAroundX($var27[$var31], 0.0872664675116539); - $var62 = $var27[$var31]; - $var62.$yCoord = $var62.$yCoord - 0.4375; - } - nms_Vec3_rotateAroundX($var27[$var31], 1.5707963705062866); - if (!$var6) - nms_Vec3_rotateAroundY($var27[$var31], 0.0); - if (!$var7) - nms_Vec3_rotateAroundY($var27[$var31], 3.1415927410125732); - if (!$var11) - nms_Vec3_rotateAroundY($var27[$var31], 1.5707963705062866); - if (!$var46) - nms_Vec3_rotateAroundY($var27[$var31], (-1.5707963705062866)); - $var62 = $var27[$var31]; - $var62.$xCoord = $var62.$xCoord + var$22; - $var62 = $var27[$var31]; - $var62.$yCoord = $var62.$yCoord + $var52; - $var62 = $var27[$var31]; - $var62.$zCoord = $var62.$zCoord + var$25; - $var31 = $var31 + 1 | 0; - } - $var62 = null; - $var32 = null; - $var33 = null; - $var34 = null; - $var39 = 0; - while ($var39 < 6) { - if (!$var39) { - $var62 = $var27[0]; - $var32 = $var27[1]; - $var33 = $var27[2]; - $var34 = $var27[3]; - $var19 = $var18.$getInterpolatedU(7.0); - $var21 = $var18.$getInterpolatedV(9.0); - $var23 = $var18.$getInterpolatedU(9.0); - $var25 = $var18.$getInterpolatedV(11.0); - } else if ($var39 == 1) { - $var62 = $var27[7]; - $var32 = $var27[6]; - $var33 = $var27[5]; - $var34 = $var27[4]; - } else if ($var39 == 2) { - $var62 = $var27[1]; - $var32 = $var27[0]; - $var33 = $var27[4]; - $var34 = $var27[5]; - $var19 = $var18.$getInterpolatedU(7.0); - $var21 = $var18.$getInterpolatedV(9.0); - $var23 = $var18.$getInterpolatedU(9.0); - $var25 = $var18.$getInterpolatedV(16.0); - } else if ($var39 == 3) { - $var62 = $var27[2]; - $var32 = $var27[1]; - $var33 = $var27[5]; - $var34 = $var27[6]; - } else if ($var39 == 4) { - $var62 = $var27[3]; - $var32 = $var27[2]; - $var33 = $var27[6]; - $var34 = $var27[7]; - } else if ($var39 == 5) { - $var62 = $var27[0]; - $var32 = $var27[3]; - $var33 = $var27[7]; - $var34 = $var27[4]; - } - nlea_Tessellator_addVertexWithUV($var5, $var62.$xCoord, $var62.$yCoord, $var62.$zCoord, $var19, $var25); - nlea_Tessellator_addVertexWithUV($var5, $var32.$xCoord, $var32.$yCoord, $var32.$zCoord, $var23, $var25); - nlea_Tessellator_addVertexWithUV($var5, $var33.$xCoord, $var33.$yCoord, $var33.$zCoord, $var23, $var21); - nlea_Tessellator_addVertexWithUV($var5, $var34.$xCoord, $var34.$yCoord, $var34.$zCoord, $var19, $var21); - $var39 = $var39 + 1 | 0; - } - $var27[0] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.09375), 0.0, (-0.09375)); - $var27[1] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.09375, 0.0, (-0.09375)); - $var27[2] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.09375, 0.0, 0.09375); - $var27[3] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.09375), 0.0, 0.09375); - $var27[4] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.09375), 0.03125, (-0.09375)); - $var27[5] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.09375, 0.03125, (-0.09375)); - $var27[6] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), 0.09375, 0.03125, 0.09375); - $var27[7] = nms_Vec3Pool_getVecFromPool($this.$blockAccess.$getWorldVec3Pool(), (-0.09375), 0.03125, 0.09375); - $var42 = 0; - while ($var42 < 8) { - var$32 = $var27[$var42]; - var$32.$zCoord = var$32.$zCoord + 0.21875; - if ($var9) { - var$32 = $var27[$var42]; - var$32.$yCoord = var$32.$yCoord - 0.09375; - var$32 = $var27[$var42]; - var$32.$zCoord = var$32.$zCoord - 0.1625; - nms_Vec3_rotateAroundX($var27[$var42], 0.0); - } else if (!$var8) - nms_Vec3_rotateAroundX($var27[$var42], 0.8726646304130554); - else { - var$32 = $var27[$var42]; - var$32.$yCoord = var$32.$yCoord + 0.015625; - var$32 = $var27[$var42]; - var$32.$zCoord = var$32.$zCoord - 0.171875; - nms_Vec3_rotateAroundX($var27[$var42], 0.1745329350233078); - } - if (!$var6) - nms_Vec3_rotateAroundY($var27[$var42], 0.0); - if (!$var7) - nms_Vec3_rotateAroundY($var27[$var42], 3.1415927410125732); - if (!$var11) - nms_Vec3_rotateAroundY($var27[$var42], 1.5707963705062866); - if (!$var46) - nms_Vec3_rotateAroundY($var27[$var42], (-1.5707963705062866)); - var$32 = $var27[$var42]; - var$32.$xCoord = var$32.$xCoord + var$22; - var$32 = $var27[$var42]; - var$32.$yCoord = var$32.$yCoord + $var52; - var$32 = $var27[$var42]; - var$32.$zCoord = var$32.$zCoord + var$25; - $var42 = $var42 + 1 | 0; - } - $var46 = 0; - while ($var46 < 6) { - if (!$var46) { - $var62 = $var27[0]; - $var32 = $var27[1]; - $var33 = $var27[2]; - $var34 = $var27[3]; - $var19 = $var18.$getInterpolatedU(5.0); - $var21 = $var18.$getInterpolatedV(3.0); - $var23 = $var18.$getInterpolatedU(11.0); - $var25 = $var18.$getInterpolatedV(9.0); - } else if ($var46 == 1) { - $var62 = $var27[7]; - $var32 = $var27[6]; - $var33 = $var27[5]; - $var34 = $var27[4]; - } else if ($var46 == 2) { - $var62 = $var27[1]; - $var32 = $var27[0]; - $var33 = $var27[4]; - $var34 = $var27[5]; - $var19 = $var18.$getInterpolatedU(5.0); - $var21 = $var18.$getInterpolatedV(3.0); - $var23 = $var18.$getInterpolatedU(11.0); - $var25 = $var18.$getInterpolatedV(5.0); - } else if ($var46 == 3) { - $var62 = $var27[2]; - $var32 = $var27[1]; - $var33 = $var27[5]; - $var34 = $var27[6]; - } else if ($var46 == 4) { - $var62 = $var27[3]; - $var32 = $var27[2]; - $var33 = $var27[6]; - $var34 = $var27[7]; - } else if ($var46 == 5) { - $var62 = $var27[0]; - $var32 = $var27[3]; - $var33 = $var27[7]; - $var34 = $var27[4]; - } - nlea_Tessellator_addVertexWithUV($var5, $var62.$xCoord, $var62.$yCoord, $var62.$zCoord, $var19, $var25); - nlea_Tessellator_addVertexWithUV($var5, $var32.$xCoord, $var32.$yCoord, $var32.$zCoord, $var23, $var25); - nlea_Tessellator_addVertexWithUV($var5, $var33.$xCoord, $var33.$yCoord, $var33.$zCoord, $var23, $var21); - nlea_Tessellator_addVertexWithUV($var5, $var34.$xCoord, $var34.$yCoord, $var34.$zCoord, $var19, $var21); - $var46 = $var46 + 1 | 0; - } - if ($var8) { - $var65 = $var27[0].$yCoord; - nms_RenderBlocks_getBlockIcon0($this, nms_Block_tripWire); - $var52 = $var18.$getMinU(); - $var54 = $var18.$getInterpolatedV(!$var8 ? 0.0 : 2.0); - $var56 = $var18.$getMaxU(); - $var58 = $var18.$getInterpolatedV(!$var8 ? 2.0 : 4.0); - $var60 = (!$var10 ? 1.5 : 3.5) / 16.0; - $var17 = $par1Block.$getBlockBrightness($this.$blockAccess, $par2, $par3, $par4) * 0.75; - nlea_Tessellator_setColorOpaque_F($var5, $var17, $var17, $var17); - if (!$var6) { - $var17 = $par2; - var$38 = $var17 + 0.484375; - var$39 = $par3 + $var60; - var$21 = var$24 + 0.25; - nlea_Tessellator_addVertexWithUV($var5, var$38, var$39, var$21, $var52, $var54); - var$22 = $var17 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$22, var$39, var$21, $var52, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$39, var$24, $var56, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$38, var$39, var$24, $var56, $var54); - nlea_Tessellator_addVertexWithUV($var5, var$38, $var65, var$25, $var52, $var54); - nlea_Tessellator_addVertexWithUV($var5, var$22, $var65, var$25, $var52, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$39, var$21, $var56, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$38, var$39, var$21, $var56, $var54); - } else if (!$var7) { - $var17 = $par2; - var$38 = $var17 + 0.484375; - var$39 = $par3 + $var60; - var$21 = var$24 + 0.75; - nlea_Tessellator_addVertexWithUV($var5, var$38, var$39, var$21, $var52, $var54); - var$22 = $var17 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$22, var$39, var$21, $var52, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$22, $var65, var$25, $var56, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$38, $var65, var$25, $var56, $var54); - $var65 = $par4 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$38, var$39, $var65, $var52, $var54); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$39, $var65, $var52, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$39, var$21, $var56, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$38, var$39, var$21, $var56, $var54); - } else if (!$var11) { - var$24 = $par3 + $var60; - $var17 = $par4; - var$25 = $var17 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$21, var$24, var$25, $var52, $var58); - var$38 = var$21 + 0.25; - nlea_Tessellator_addVertexWithUV($var5, var$38, var$24, var$25, $var56, $var58); - var$39 = $var17 + 0.484375; - nlea_Tessellator_addVertexWithUV($var5, var$38, var$24, var$39, $var56, $var54); - nlea_Tessellator_addVertexWithUV($var5, var$21, var$24, var$39, $var52, $var54); - nlea_Tessellator_addVertexWithUV($var5, var$38, var$24, var$25, $var52, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$22, $var65, var$25, $var56, $var58); - nlea_Tessellator_addVertexWithUV($var5, var$22, $var65, var$39, $var56, $var54); - nlea_Tessellator_addVertexWithUV($var5, var$38, var$24, var$39, $var52, $var54); - } else { - $var17 = $par4; - var$38 = $var17 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$22, $var65, var$38, $var52, $var58); - var$39 = var$21 + 0.75; - var$21 = $par3 + $var60; - nlea_Tessellator_addVertexWithUV($var5, var$39, var$21, var$38, $var56, $var58); - var$24 = $var17 + 0.484375; - nlea_Tessellator_addVertexWithUV($var5, var$39, var$21, var$24, $var56, $var54); - nlea_Tessellator_addVertexWithUV($var5, var$22, $var65, var$24, $var52, $var54); - nlea_Tessellator_addVertexWithUV($var5, var$39, var$21, var$38, $var52, $var58); - $var65 = $par2 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var65, var$21, var$38, $var56, $var58); - nlea_Tessellator_addVertexWithUV($var5, $var65, var$21, var$24, $var56, $var54); - nlea_Tessellator_addVertexWithUV($var5, var$39, var$21, var$24, $var52, $var54); - } - } - return 1; -} -function nms_RenderBlocks_renderBlockTripWire($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var13, $var15, $var17, $var19, $var21, $var22, $var23, $var24, var$20, var$21, var$22, var$23, var$24, var$25; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 0); - $var7 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var8 = ($var7 & 4) != 4 ? 0 : 1; - $var9 = ($var7 & 2) != 2 ? 0 : 1; - if (nms_RenderBlocks_hasOverrideBlockTexture($this)) - $var6 = $this.$overrideBlockTexture; - nlea_Tessellator_setBrightness($var5, $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4)); - $var10 = $par1Block.$getBlockBrightness($this.$blockAccess, $par2, $par3, $par4) * 0.75; - nlea_Tessellator_setColorOpaque_F($var5, $var10, $var10, $var10); - $var11 = $var6.$getMinU(); - $var13 = $var6.$getInterpolatedV(!$var8 ? 0.0 : 2.0); - $var15 = $var6.$getMaxU(); - $var17 = $var6.$getInterpolatedV(!$var8 ? 2.0 : 4.0); - $var19 = (!$var9 ? 1.5 : 3.5) / 16.0; - $var21 = nms_BlockTripWire_func_72148_a($this.$blockAccess, $par2, $par3, $par4, $var7, 1); - $var22 = nms_BlockTripWire_func_72148_a($this.$blockAccess, $par2, $par3, $par4, $var7, 3); - $var23 = nms_BlockTripWire_func_72148_a($this.$blockAccess, $par2, $par3, $par4, $var7, 2); - $var24 = nms_BlockTripWire_func_72148_a($this.$blockAccess, $par2, $par3, $par4, $var7, 0); - if (!$var23 && !$var22 && !$var24 && !$var21) { - $var23 = 1; - $var24 = 1; - } - if ($var23) { - $var10 = $par2; - var$20 = $var10 + 0.484375; - var$21 = $par3 + $var19; - var$22 = $par4; - var$23 = var$22 + 0.25; - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$23, $var11, $var13); - var$24 = $var10 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$23, $var11, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$22, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$22, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$23, $var11, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$23, $var11, $var13); - } - a: { - if (!$var23) { - if (!$var24) - break a; - if ($var22) - break a; - if ($var21) - break a; - } - $var10 = $par2; - var$21 = $var10 + 0.484375; - var$22 = $par3 + $var19; - var$23 = $par4; - var$24 = var$23 + 0.5; - nlea_Tessellator_addVertexWithUV($var5, var$21, var$22, var$24, $var11, $var13); - var$25 = $var10 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$25, var$22, var$24, $var11, $var17); - var$20 = var$23 + 0.25; - nlea_Tessellator_addVertexWithUV($var5, var$25, var$22, var$20, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$21, var$22, var$20, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$21, var$22, var$20, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$25, var$22, var$20, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$25, var$22, var$24, $var11, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$21, var$22, var$24, $var11, $var13); - } - b: { - if (!$var24) { - if (!$var23) - break b; - if ($var22) - break b; - if ($var21) - break b; - } - $var10 = $par2; - var$20 = $var10 + 0.484375; - var$21 = $par3 + $var19; - var$22 = $par4; - var$23 = var$22 + 0.75; - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$23, $var11, $var13); - var$24 = $var10 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$23, $var11, $var17); - var$22 = var$22 + 0.5; - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$22, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$22, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$23, $var11, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$23, $var11, $var13); - } - if ($var24) { - $var10 = $par2; - var$20 = $var10 + 0.484375; - var$21 = $par3 + $var19; - var$22 = $par4 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var11, $var13); - var$23 = $var10 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$23, var$21, var$22, $var11, $var17); - var$24 = $par4 + 0.75; - nlea_Tessellator_addVertexWithUV($var5, var$23, var$21, var$24, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$24, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$24, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$23, var$21, var$24, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$23, var$21, var$22, $var11, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var11, $var13); - } - if ($var21) { - var$20 = $par2; - var$21 = $par3 + $var19; - $var10 = $par4; - var$22 = $var10 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var11, $var17); - var$24 = var$20 + 0.25; - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$22, $var15, $var17); - var$23 = $var10 + 0.484375; - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$23, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$23, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$23, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$23, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$21, var$22, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var11, $var17); - } - c: { - if (!$var21) { - if (!$var22) - break c; - if ($var23) - break c; - if ($var24) - break c; - } - var$20 = $par2; - var$21 = var$20 + 0.25; - var$22 = $par3 + $var19; - $var10 = $par4; - var$23 = $var10 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$21, var$22, var$23, $var11, $var17); - var$20 = var$20 + 0.5; - nlea_Tessellator_addVertexWithUV($var5, var$20, var$22, var$23, $var15, $var17); - var$24 = $var10 + 0.484375; - nlea_Tessellator_addVertexWithUV($var5, var$20, var$22, var$24, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$21, var$22, var$24, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$21, var$22, var$24, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$22, var$24, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$22, var$23, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$21, var$22, var$23, $var11, $var17); - } - d: { - if (!$var22) { - if (!$var21) - break d; - if ($var23) - break d; - if ($var24) - break d; - } - var$23 = $par2; - var$24 = var$23 + 0.5; - var$20 = $par3 + $var19; - $var10 = $par4; - var$21 = $var10 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$24, var$20, var$21, $var11, $var17); - var$22 = var$23 + 0.75; - nlea_Tessellator_addVertexWithUV($var5, var$22, var$20, var$21, $var15, $var17); - var$23 = $var10 + 0.484375; - nlea_Tessellator_addVertexWithUV($var5, var$22, var$20, var$23, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$20, var$23, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$20, var$23, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$20, var$23, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$20, var$21, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$24, var$20, var$21, $var11, $var17); - } - if ($var22) { - var$20 = $par2 + 0.75; - var$21 = $par3 + $var19; - $var10 = $par4; - var$22 = $var10 + 0.515625; - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var11, $var17); - var$23 = $par2 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$23, var$21, var$22, $var15, $var17); - $var19 = $var10 + 0.484375; - nlea_Tessellator_addVertexWithUV($var5, var$23, var$21, $var19, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, $var19, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, $var19, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$23, var$21, $var19, $var15, $var13); - nlea_Tessellator_addVertexWithUV($var5, var$23, var$21, var$22, $var15, $var17); - nlea_Tessellator_addVertexWithUV($var5, var$20, var$21, var$22, $var11, $var17); - } - return 1; -} -function nms_RenderBlocks_renderBlockFire($this, $par1BlockFire, $par2, $par3, $par4) { - var $var5, $var6, $var7, var$8, $var9, $var11, $var13, $var15, var$13, $var20, $var22, $var24, $var26, $var28, $var30, var$20, var$21, $var32, var$23, $var18, $var20_0, var$26, var$27, var$28, var$29, var$30, var$31; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = nms_BlockFire_func_94438_c($par1BlockFire, 0); - $var7 = nms_BlockFire_func_94438_c($par1BlockFire, 1); - var$8 = nms_RenderBlocks_hasOverrideBlockTexture($this) ? $this.$overrideBlockTexture : $var6; - nlea_Tessellator_setColorOpaque_F($var5, 1.0, 1.0, 1.0); - nlea_Tessellator_setBrightness($var5, nms_Block_getMixedBrightnessForBlock($par1BlockFire, $this.$blockAccess, $par2, $par3, $par4)); - $var9 = var$8.$getMinU(); - $var11 = var$8.$getMinV(); - $var13 = var$8.$getMaxU(); - $var15 = var$8.$getMaxV(); - $par1BlockFire = $this.$blockAccess; - var$13 = $par3 - 1 | 0; - if (!$par1BlockFire.$doesBlockHaveSolidTopSurface($par2, var$13, $par4) && !nms_BlockFire_canBlockCatchFire(nms_Block_fire, $this.$blockAccess, $par2, var$13, $par4)) { - if (((($par2 + $par3 | 0) + $par4 | 0) & 1) == 1) { - $var9 = $var7.$getMinU(); - $var11 = $var7.$getMinV(); - $var13 = $var7.$getMaxU(); - $var15 = $var7.$getMaxV(); - } - if ((((($par2 / 2 | 0) + ($par3 / 2 | 0) | 0) + ($par4 / 2 | 0) | 0) & 1) != 1) { - $var20 = $var9; - $var9 = $var13; - $var13 = $var20; - } - if (nms_BlockFire_canBlockCatchFire(nms_Block_fire, $this.$blockAccess, $par2 - 1 | 0, $par3, $par4)) { - $var20 = $par2 + 0.20000000298023224; - $var22 = $par3 + 1.399999976158142 + 0.0625; - $var24 = $par4 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var24, $var9, $var11); - $var26 = $par2 + 0 | 0; - $var28 = ($par3 + 0 | 0) + 0.0625; - nlea_Tessellator_addVertexWithUV($var5, $var26, $var28, $var24, $var9, $var15); - $var30 = $par4 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var26, $var28, $var30, $var13, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var30, $var13, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var30, $var13, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var26, $var28, $var30, $var13, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var26, $var28, $var24, $var9, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var24, $var9, $var11); - } - $par1BlockFire = nms_Block_fire; - var$20 = $this.$blockAccess; - var$13 = $par2 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire($par1BlockFire, var$20, var$13, $par3, $par4)) { - $var20 = var$13 - 0.20000000298023224; - $var22 = $par3 + 1.399999976158142 + 0.0625; - $var24 = $par4 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var24, $var13, $var11); - $var26 = var$13 - 0 | 0; - $var28 = ($par3 + 0 | 0) + 0.0625; - nlea_Tessellator_addVertexWithUV($var5, $var26, $var28, $var24, $var13, $var15); - $var30 = $par4 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var26, $var28, $var30, $var9, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var30, $var9, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var30, $var9, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var26, $var28, $var30, $var9, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var26, $var28, $var24, $var13, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var24, $var13, $var11); - } - if (nms_BlockFire_canBlockCatchFire(nms_Block_fire, $this.$blockAccess, $par2, $par3, $par4 - 1 | 0)) { - $var20 = $par2 + 0 | 0; - $var22 = $par3 + 1.399999976158142 + 0.0625; - $var24 = $par4 + 0.20000000298023224; - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var24, $var9, $var11); - $var26 = ($par3 + 0 | 0) + 0.0625; - $var28 = $par4 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var20, $var26, $var28, $var9, $var15); - $var30 = var$13; - nlea_Tessellator_addVertexWithUV($var5, $var30, $var26, $var28, $var13, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var30, $var22, $var24, $var13, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var30, $var22, $var24, $var13, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var30, $var26, $var28, $var13, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var26, $var28, $var9, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var24, $var9, $var11); - } - $par1BlockFire = nms_Block_fire; - var$20 = $this.$blockAccess; - var$21 = $par4 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire($par1BlockFire, var$20, $par2, $par3, var$21)) { - $var20 = var$13; - $var22 = $par3 + 1.399999976158142 + 0.0625; - $var24 = var$21 - 0.20000000298023224; - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var24, $var13, $var11); - $var26 = ($par3 + 0 | 0) + 0.0625; - $var28 = var$21 - 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var20, $var26, $var28, $var13, $var15); - $var30 = $par2 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var30, $var26, $var28, $var9, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var30, $var22, $var24, $var9, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var30, $var22, $var24, $var9, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var30, $var26, $var28, $var9, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var26, $var28, $var13, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var24, $var13, $var11); - } - $par1BlockFire = nms_Block_fire; - var$20 = $this.$blockAccess; - $par3 = $par3 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire($par1BlockFire, var$20, $par2, $par3, $par4)) { - $var9 = $par2 + 0.5; - $var20 = $var9 + 0.5; - $var22 = $var9 - 0.5; - $var9 = $par4 + 0.5; - $var24 = $var9 + 0.5; - $var26 = $var9 - 0.5; - $var11 = $var6.$getMinU(); - $var9 = $var6.$getMinV(); - $var13 = $var6.$getMaxU(); - $var28 = $var6.$getMaxV(); - if ((($par2 + $par3 | 0) + $par4 | 0) & 1) { - $var20 = $par2 + 0 | 0; - $var22 = $par3 + (-0.20000000298023224); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var24, $var13, $var9); - $var30 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var20, $var30, $var26, $var13, $var28); - $var13 = var$13; - nlea_Tessellator_addVertexWithUV($var5, $var13, $var30, $var26, $var11, $var28); - nlea_Tessellator_addVertexWithUV($var5, $var13, $var22, $var24, $var11, $var9); - $var9 = $var7.$getMinU(); - $var11 = $var7.$getMinV(); - $var28 = $var7.$getMaxU(); - $var32 = $var7.$getMaxV(); - nlea_Tessellator_addVertexWithUV($var5, $var13, $var22, $var26, $var28, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var13, $var30, $var24, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var30, $var24, $var9, $var32); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var22, $var26, $var9, $var11); - } else { - $var24 = $par3 + (-0.20000000298023224); - $var26 = $par4 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var22, $var24, $var26, $var13, $var9); - $var30 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var20, $var30, $var26, $var13, $var28); - $var13 = var$21; - nlea_Tessellator_addVertexWithUV($var5, $var20, $var30, $var13, $var11, $var28); - nlea_Tessellator_addVertexWithUV($var5, $var22, $var24, $var13, $var11, $var9); - $var9 = $var7.$getMinU(); - $var11 = $var7.$getMinV(); - $var28 = $var7.$getMaxU(); - $var32 = $var7.$getMaxV(); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var24, $var13, $var28, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var22, $var30, $var13, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var5, $var22, $var30, $var26, $var9, $var32); - nlea_Tessellator_addVertexWithUV($var5, $var20, $var24, $var26, $var9, $var11); - } - } - } else { - var$23 = $par2 + 0.5; - $var18 = var$23 + 0.2; - $var20_0 = var$23 - 0.2; - $var20 = $par4 + 0.5; - $var22 = $var20 + 0.2; - $var24 = $var20 - 0.2; - $var26 = var$23 - 0.3; - $var28 = var$23 + 0.3; - $var30 = $var20 - 0.3; - $var32 = $var20 + 0.3; - var$26 = $par3 + 1.399999976158142; - var$27 = $par4 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var26, var$26, var$27, $var13, $var11); - var$28 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var18, var$28, var$27, $var13, $var15); - var$29 = $par4 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var18, var$28, var$29, $var9, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var26, var$26, var$29, $var9, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var28, var$26, var$29, $var13, $var11); - nlea_Tessellator_addVertexWithUV($var5, $var20_0, var$28, var$29, $var13, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var20_0, var$28, var$27, $var9, $var15); - nlea_Tessellator_addVertexWithUV($var5, $var28, var$26, var$27, $var9, $var11); - $var18 = $var7.$getMinU(); - $var20_0 = $var7.$getMinV(); - var$30 = $var7.$getMaxU(); - var$31 = $var7.$getMaxV(); - $var15 = $par2 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var15, var$26, $var32, var$30, $var20_0); - nlea_Tessellator_addVertexWithUV($var5, $var15, var$28, $var24, var$30, var$31); - $var9 = $par2 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var9, var$28, $var24, $var18, var$31); - nlea_Tessellator_addVertexWithUV($var5, $var9, var$26, $var32, $var18, $var20_0); - nlea_Tessellator_addVertexWithUV($var5, $var9, var$26, $var30, var$30, $var20_0); - nlea_Tessellator_addVertexWithUV($var5, $var9, var$28, $var22, var$30, var$31); - nlea_Tessellator_addVertexWithUV($var5, $var15, var$28, $var22, $var18, var$31); - nlea_Tessellator_addVertexWithUV($var5, $var15, var$26, $var30, $var18, $var20_0); - $var11 = var$23 - 0.5; - $var13 = var$23 + 0.5; - $var22 = $var20 - 0.5; - $var24 = $var20 + 0.5; - $var26 = var$23 - 0.4; - $var28 = var$23 + 0.4; - $var30 = $var20 - 0.4; - $var20 = $var20 + 0.4; - nlea_Tessellator_addVertexWithUV($var5, $var26, var$26, var$29, $var18, $var20_0); - nlea_Tessellator_addVertexWithUV($var5, $var11, var$28, var$29, $var18, var$31); - nlea_Tessellator_addVertexWithUV($var5, $var11, var$28, var$27, var$30, var$31); - nlea_Tessellator_addVertexWithUV($var5, $var26, var$26, var$27, var$30, $var20_0); - nlea_Tessellator_addVertexWithUV($var5, $var28, var$26, var$27, $var18, $var20_0); - nlea_Tessellator_addVertexWithUV($var5, $var13, var$28, var$27, $var18, var$31); - nlea_Tessellator_addVertexWithUV($var5, $var13, var$28, var$29, var$30, var$31); - nlea_Tessellator_addVertexWithUV($var5, $var28, var$26, var$29, var$30, $var20_0); - $var11 = $var6.$getMinU(); - $var13 = $var6.$getMinV(); - $var26 = $var6.$getMaxU(); - $var28 = $var6.$getMaxV(); - nlea_Tessellator_addVertexWithUV($var5, $var9, var$26, $var20, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, $var9, var$28, $var24, $var11, $var28); - nlea_Tessellator_addVertexWithUV($var5, $var15, var$28, $var24, $var26, $var28); - nlea_Tessellator_addVertexWithUV($var5, $var15, var$26, $var20, $var26, $var13); - nlea_Tessellator_addVertexWithUV($var5, $var15, var$26, $var30, $var11, $var13); - nlea_Tessellator_addVertexWithUV($var5, $var15, var$28, $var22, $var11, $var28); - nlea_Tessellator_addVertexWithUV($var5, $var9, var$28, $var22, $var26, $var28); - nlea_Tessellator_addVertexWithUV($var5, $var9, var$26, $var30, $var26, $var13); - } - return 1; -} -function nms_RenderBlocks_renderBlockRedstoneWire($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var12, $var13, $var26, $var14, $var15, var$16, $var20, var$18, $var21, var$20, $var22, var$22, $var23, var$24, var$25, $var24, $var25, var$28, $var27, $var28, var$31, var$32, var$33, var$34, var$35, $var29, $var30, $var31, $var32, var$40, var$41, var$42, var$43, var$44, var$45; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var7 = nms_BlockRedstoneWire_func_94409_b($rt_s(615)); - $var8 = nms_BlockRedstoneWire_func_94409_b($rt_s(616)); - $var9 = nms_BlockRedstoneWire_func_94409_b($rt_s(617)); - $var10 = nms_BlockRedstoneWire_func_94409_b($rt_s(618)); - nlea_Tessellator_setBrightness($var5, $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4)); - $var12 = $var6 / 15.0; - $var13 = $var12 * 0.6000000238418579 + 0.4000000059604645; - if (!$var6) - $var13 = 0.30000001192092896; - $var26 = $var12 * $var12; - $var14 = $var26 * 0.699999988079071 - 0.5; - $var15 = $var26 * 0.6000000238418579 - 0.699999988079071; - if ($var14 < 0.0) - $var14 = 0.0; - if ($var15 < 0.0) - $var15 = 0.0; - nlea_Tessellator_setColorOpaque_F($var5, $var13, $var14, $var15); - $par1Block = $this.$blockAccess; - var$16 = $par2 - 1 | 0; - $var20 = !nms_BlockRedstoneWire_isPowerProviderOrWire($par1Block, var$16, $par3, $par4, 1) && !(!$this.$blockAccess.$isBlockNormalCube(var$16, $par3, $par4) && nms_BlockRedstoneWire_isPowerProviderOrWire($this.$blockAccess, var$16, $par3 - 1 | 0, $par4, (-1))) ? 0 : 1; - $par1Block = $this.$blockAccess; - var$18 = $par2 + 1 | 0; - $var21 = !nms_BlockRedstoneWire_isPowerProviderOrWire($par1Block, var$18, $par3, $par4, 3) && !(!$this.$blockAccess.$isBlockNormalCube(var$18, $par3, $par4) && nms_BlockRedstoneWire_isPowerProviderOrWire($this.$blockAccess, var$18, $par3 - 1 | 0, $par4, (-1))) ? 0 : 1; - a: { - b: { - $par1Block = $this.$blockAccess; - var$20 = $par4 - 1 | 0; - if (!nms_BlockRedstoneWire_isPowerProviderOrWire($par1Block, $par2, $par3, var$20, 2)) { - if ($this.$blockAccess.$isBlockNormalCube($par2, $par3, var$20)) - break b; - if (!nms_BlockRedstoneWire_isPowerProviderOrWire($this.$blockAccess, $par2, $par3 - 1 | 0, var$20, (-1))) - break b; - } - $var22 = 1; - break a; - } - $var22 = 0; - } - c: { - d: { - $par1Block = $this.$blockAccess; - var$22 = $par4 + 1 | 0; - if (!nms_BlockRedstoneWire_isPowerProviderOrWire($par1Block, $par2, $par3, var$22, 0)) { - if ($this.$blockAccess.$isBlockNormalCube($par2, $par3, var$22)) - break d; - if (!nms_BlockRedstoneWire_isPowerProviderOrWire($this.$blockAccess, $par2, $par3 - 1 | 0, var$22, (-1))) - break d; - } - $var23 = 1; - break c; - } - $var23 = 0; - } - $par1Block = $this.$blockAccess; - var$24 = $par3 + 1 | 0; - if (!$par1Block.$isBlockNormalCube($par2, var$24, $par4)) { - if ($this.$blockAccess.$isBlockNormalCube(var$16, $par3, $par4) && nms_BlockRedstoneWire_isPowerProviderOrWire($this.$blockAccess, var$16, var$24, $par4, (-1))) - $var20 = 1; - if ($this.$blockAccess.$isBlockNormalCube(var$18, $par3, $par4) && nms_BlockRedstoneWire_isPowerProviderOrWire($this.$blockAccess, var$18, var$24, $par4, (-1))) - $var21 = 1; - if ($this.$blockAccess.$isBlockNormalCube($par2, $par3, var$20) && nms_BlockRedstoneWire_isPowerProviderOrWire($this.$blockAccess, $par2, var$24, var$20, (-1))) - $var22 = 1; - if ($this.$blockAccess.$isBlockNormalCube($par2, $par3, var$22) && nms_BlockRedstoneWire_isPowerProviderOrWire($this.$blockAccess, $par2, var$24, var$22, (-1))) - $var23 = 1; - } - var$25 = $par2 + 0 | 0; - $var24 = var$25; - $var25 = var$18; - var$28 = $par4 + 0 | 0; - $var26 = var$28; - $var27 = var$22; - $var28 = 0; - if (!(!$var20 && !$var21) && !$var22 && !$var23) - $var28 = 1; - if (!(!$var22 && !$var23) && !$var21 && !$var20) - $var28 = 2; - if ($var28) { - if ($var28 != 1) { - var$31 = $var25; - var$32 = $par3 + 0.015625; - var$33 = $var27; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$33, $var8.$getMaxU(), $var8.$getMaxV()); - var$34 = $var26; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$34, $var8.$getMinU(), $var8.$getMaxV()); - var$35 = $var24; - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$34, $var8.$getMinU(), $var8.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$33, $var8.$getMaxU(), $var8.$getMinV()); - nlea_Tessellator_setColorOpaque_F($var5, 1.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$33, $var10.$getMaxU(), $var10.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$34, $var10.$getMinU(), $var10.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$34, $var10.$getMinU(), $var10.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$33, $var10.$getMaxU(), $var10.$getMinV()); - } else { - var$31 = $var25; - var$32 = $par3 + 0.015625; - var$33 = $var27; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$33, $var8.$getMaxU(), $var8.$getMaxV()); - var$34 = $var26; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$34, $var8.$getMaxU(), $var8.$getMinV()); - var$35 = $var24; - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$34, $var8.$getMinU(), $var8.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$33, $var8.$getMinU(), $var8.$getMaxV()); - nlea_Tessellator_setColorOpaque_F($var5, 1.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$33, $var10.$getMaxU(), $var10.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$34, $var10.$getMaxU(), $var10.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$34, $var10.$getMinU(), $var10.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$33, $var10.$getMinU(), $var10.$getMaxV()); - } - } else { - $var29 = 0; - $var30 = 0; - $var31 = 16; - $var32 = 16; - if (!$var20) - $var24 = $var24 + 0.3125; - if (!$var20) - $var29 = 5; - if (!$var21) - $var25 = $var25 - 0.3125; - if (!$var21) - $var31 = 11; - if (!$var22) - $var26 = $var26 + 0.3125; - if (!$var22) - $var30 = 5; - if (!$var23) - $var27 = $var27 - 0.3125; - if (!$var23) - $var32 = 11; - var$40 = $var25; - var$41 = $par3 + 0.015625; - var$42 = $var27; - var$43 = $var31; - var$31 = $var7.$getInterpolatedU(var$43); - var$44 = $var32; - nlea_Tessellator_addVertexWithUV($var5, var$40, var$41, var$42, var$31, $var7.$getInterpolatedV(var$44)); - var$45 = $var26; - var$31 = $var7.$getInterpolatedU(var$43); - var$32 = $var30; - nlea_Tessellator_addVertexWithUV($var5, var$40, var$41, var$45, var$31, $var7.$getInterpolatedV(var$32)); - var$31 = $var24; - var$33 = $var29; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$41, var$45, $var7.$getInterpolatedU(var$33), $var7.$getInterpolatedV(var$32)); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$41, var$42, $var7.$getInterpolatedU(var$33), $var7.$getInterpolatedV(var$44)); - nlea_Tessellator_setColorOpaque_F($var5, 1.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var5, var$40, var$41, var$42, $var9.$getInterpolatedU(var$43), $var9.$getInterpolatedV(var$44)); - nlea_Tessellator_addVertexWithUV($var5, var$40, var$41, var$45, $var9.$getInterpolatedU(var$43), $var9.$getInterpolatedV(var$32)); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$41, var$45, $var9.$getInterpolatedU(var$33), $var9.$getInterpolatedV(var$32)); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$41, var$42, $var9.$getInterpolatedU(var$33), $var9.$getInterpolatedV(var$44)); - } - if (!$this.$blockAccess.$isBlockNormalCube($par2, var$24, $par4)) { - if ($this.$blockAccess.$isBlockNormalCube(var$16, $par3, $par4) && $this.$blockAccess.$getBlockId(var$16, var$24, $par4) == nms_Block_redstoneWire.$blockID) { - nlea_Tessellator_setColorOpaque_F($var5, 1.0 * $var13, 1.0 * $var14, 1.0 * $var15); - var$31 = $par2 + 0.015625; - var$32 = var$24 + 0.02187499962747097; - var$33 = var$22; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$33, $var8.$getMaxU(), $var8.$getMinV()); - var$34 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$34, var$33, $var8.$getMinU(), $var8.$getMinV()); - var$35 = var$28; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$34, var$35, $var8.$getMinU(), $var8.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$35, $var8.$getMaxU(), $var8.$getMaxV()); - nlea_Tessellator_setColorOpaque_F($var5, 1.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$33, $var10.$getMaxU(), $var10.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$34, var$33, $var10.$getMinU(), $var10.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$34, var$35, $var10.$getMinU(), $var10.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$35, $var10.$getMaxU(), $var10.$getMaxV()); - } - if ($this.$blockAccess.$isBlockNormalCube(var$18, $par3, $par4) && $this.$blockAccess.$getBlockId(var$18, var$24, $par4) == nms_Block_redstoneWire.$blockID) { - nlea_Tessellator_setColorOpaque_F($var5, 1.0 * $var13, 1.0 * $var14, 1.0 * $var15); - var$33 = var$18 - 0.015625; - var$34 = $par3 + 0 | 0; - var$31 = var$22; - nlea_Tessellator_addVertexWithUV($var5, var$33, var$34, var$31, $var8.$getMinU(), $var8.$getMaxV()); - var$35 = var$24 + 0.02187499962747097; - nlea_Tessellator_addVertexWithUV($var5, var$33, var$35, var$31, $var8.$getMaxU(), $var8.$getMaxV()); - var$40 = var$28; - nlea_Tessellator_addVertexWithUV($var5, var$33, var$35, var$40, $var8.$getMaxU(), $var8.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$33, var$34, var$40, $var8.$getMinU(), $var8.$getMinV()); - nlea_Tessellator_setColorOpaque_F($var5, 1.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var5, var$33, var$34, var$31, $var10.$getMinU(), $var10.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$33, var$35, var$31, $var10.$getMaxU(), $var10.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$33, var$35, var$40, $var10.$getMaxU(), $var10.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$33, var$34, var$40, $var10.$getMinU(), $var10.$getMinV()); - } - if ($this.$blockAccess.$isBlockNormalCube($par2, $par3, var$20) && $this.$blockAccess.$getBlockId($par2, var$24, var$20) == nms_Block_redstoneWire.$blockID) { - nlea_Tessellator_setColorOpaque_F($var5, 1.0 * $var13, 1.0 * $var14, 1.0 * $var15); - var$33 = var$18; - var$34 = $par3 + 0 | 0; - var$35 = $par4 + 0.015625; - nlea_Tessellator_addVertexWithUV($var5, var$33, var$34, var$35, $var8.$getMinU(), $var8.$getMaxV()); - var$40 = var$24 + 0.02187499962747097; - nlea_Tessellator_addVertexWithUV($var5, var$33, var$40, var$35, $var8.$getMaxU(), $var8.$getMaxV()); - var$41 = var$25; - nlea_Tessellator_addVertexWithUV($var5, var$41, var$40, var$35, $var8.$getMaxU(), $var8.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$41, var$34, var$35, $var8.$getMinU(), $var8.$getMinV()); - nlea_Tessellator_setColorOpaque_F($var5, 1.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var5, var$33, var$34, var$35, $var10.$getMinU(), $var10.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$33, var$40, var$35, $var10.$getMaxU(), $var10.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$41, var$40, var$35, $var10.$getMaxU(), $var10.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$41, var$34, var$35, $var10.$getMinU(), $var10.$getMinV()); - } - if ($this.$blockAccess.$isBlockNormalCube($par2, $par3, var$22) && $this.$blockAccess.$getBlockId($par2, var$24, var$22) == nms_Block_redstoneWire.$blockID) { - nlea_Tessellator_setColorOpaque_F($var5, 1.0 * $var13, 1.0 * $var14, 1.0 * $var15); - var$31 = var$18; - var$32 = var$24 + 0.02187499962747097; - var$33 = var$22 - 0.015625; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$33, $var8.$getMaxU(), $var8.$getMinV()); - var$34 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$31, var$34, var$33, $var8.$getMinU(), $var8.$getMinV()); - var$35 = var$25; - nlea_Tessellator_addVertexWithUV($var5, var$35, var$34, var$33, $var8.$getMinU(), $var8.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$33, $var8.$getMaxU(), $var8.$getMaxV()); - nlea_Tessellator_setColorOpaque_F($var5, 1.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$32, var$33, $var10.$getMaxU(), $var10.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$31, var$34, var$33, $var10.$getMinU(), $var10.$getMinV()); - nlea_Tessellator_addVertexWithUV($var5, var$35, var$34, var$33, $var10.$getMinU(), $var10.$getMaxV()); - nlea_Tessellator_addVertexWithUV($var5, var$35, var$32, var$33, $var10.$getMaxU(), $var10.$getMaxV()); - } - } - return 1; -} -function nms_RenderBlocks_renderBlockMinecartTrack($this, $par1BlockRailBase, $par2, $par3, $par4) { - var $var5, $var6, $var7, var$8, $var8, $var10, $var12, $var14, $var18, $var22, $var26, $var28, $var34, var$18, $var16, var$20, var$21, var$22, var$23, var$24, var$25, var$26, var$27, var$28, var$29; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var7 = nms_RenderBlocks_getIconSafe($this, $par1BlockRailBase.$getIcon(0, $var6)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var7 = $this.$overrideBlockTexture; - if ($par1BlockRailBase.$isPowered) - $var6 = $var6 & 7; - $par1BlockRailBase = $this.$blockAccess; - var$8 = $par1BlockRailBase.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$par1BlockRailBase.$getBlockId($par2, $par3, $par4)]); - $var5.$hasBrightness = 1; - $var5.$brightness = var$8; - nlea_Tessellator_setColorRGBA($var5, 255, 255, 255, 255); - $var8 = $var7.$getMinU(); - $var10 = $var7.$getMinV(); - $var12 = $var7.$getMaxU(); - $var14 = $var7.$getMaxV(); - $var18 = $par2 + 1 | 0; - $var22 = $par2 + 0 | 0; - $var26 = $par4 + 0 | 0; - $var28 = $par4 + 1 | 0; - $var34 = $par3 + 0.0625; - if ($var6 != 1 && $var6 != 2 && $var6 != 3 && $var6 != 7) { - if ($var6 == 8) { - var$18 = $var22; - $var16 = $var18; - var$20 = $var18; - var$21 = $var28; - var$22 = $var26; - var$23 = $var26; - var$24 = $var22; - $var18 = $var16; - $var22 = var$20; - var$25 = $var28; - $var26 = var$22; - $var28 = var$23; - } else if ($var6 != 9) { - var$18 = $var18; - $var16 = $var22; - var$21 = $var26; - var$20 = $var28; - var$24 = $var18; - $var18 = $var16; - var$25 = $var26; - $var26 = var$20; - } else { - var$18 = $var18; - var$24 = $var22; - $var16 = $var18; - var$21 = $var28; - var$25 = $var26; - var$20 = $var26; - $var18 = $var22; - $var22 = $var16; - $var26 = $var28; - $var28 = var$20; - } - } else { - var$18 = $var22; - var$24 = $var18; - var$21 = $var26; - var$25 = $var28; - } - if ($var6 != 2 && $var6 != 4) { - if ($var6 != 3 && $var6 != 5) { - var$20 = $var34; - $var16 = $var34; - var$22 = $var34; - var$23 = $var34; - $var34 = $var16; - } else { - $var16 = $var34 + 1.0; - var$20 = $var16; - var$22 = $var34; - var$23 = $var34; - $var34 = $var16; - } - } else { - var$23 = $var34 + 1.0; - var$20 = $var34; - var$22 = var$23; - } - $var5.$hasTexture = 1; - var$26 = $var12; - $var5.$textureU = var$26; - var$27 = $var10; - $var5.$textureV = var$27; - nlea_Tessellator_addVertex($var5, var$24, var$22, var$25); - $var5.$hasTexture = 1; - $var5.$textureU = var$26; - var$28 = $var14; - $var5.$textureV = var$28; - nlea_Tessellator_addVertex($var5, var$18, var$20, $var28); - $var5.$hasTexture = 1; - var$29 = $var8; - $var5.$textureU = var$29; - $var5.$textureV = var$28; - nlea_Tessellator_addVertex($var5, $var22, $var34, $var26); - $var5.$hasTexture = 1; - $var5.$textureU = var$29; - $var5.$textureV = var$27; - nlea_Tessellator_addVertex($var5, $var18, var$23, var$21); - $var5.$hasTexture = 1; - $var5.$textureU = var$29; - $var5.$textureV = var$27; - nlea_Tessellator_addVertex($var5, $var18, var$23, var$21); - $var5.$hasTexture = 1; - $var5.$textureU = var$29; - $var5.$textureV = var$28; - nlea_Tessellator_addVertex($var5, $var22, $var34, $var26); - $var5.$hasTexture = 1; - $var5.$textureU = var$26; - $var5.$textureV = var$28; - nlea_Tessellator_addVertex($var5, var$18, var$20, $var28); - $var5.$hasTexture = 1; - $var5.$textureU = var$26; - $var5.$textureV = var$27; - nlea_Tessellator_addVertex($var5, var$24, var$22, var$25); - return 1; -} -function nms_RenderBlocks_renderBlockLadder($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, $var15, $var20, $var9, $var11, $var13, var$12, var$13, var$14, var$15, var$16, var$17, var$18; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(0, 0)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var6 = $this.$overrideBlockTexture; - $var15 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = $var15; - nlea_Tessellator_setColorRGBA($var5, 255, 255, 255, 255); - $var20 = $var6.$getMinU(); - $var9 = $var6.$getMinV(); - $var11 = $var6.$getMaxU(); - $var13 = $var6.$getMaxV(); - $var15 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - if ($var15 == 5) { - var$12 = $par2 + 0.05000000074505806; - var$13 = ($par3 + 1 | 0) + 0.0; - var$14 = ($par4 + 1 | 0) + 0.0; - $var5.$hasTexture = 1; - var$15 = $var20; - $var5.$textureU = var$15; - var$16 = $var9; - $var5.$textureV = var$16; - nlea_Tessellator_addVertex($var5, var$12, var$13, var$14); - var$17 = ($par3 + 0 | 0) - 0.0; - $var5.$hasTexture = 1; - $var5.$textureU = var$15; - var$18 = $var13; - $var5.$textureV = var$18; - nlea_Tessellator_addVertex($var5, var$12, var$17, var$14); - var$14 = ($par4 + 0 | 0) - 0.0; - $var5.$hasTexture = 1; - var$15 = $var11; - $var5.$textureU = var$15; - $var5.$textureV = var$18; - nlea_Tessellator_addVertex($var5, var$12, var$17, var$14); - $var5.$hasTexture = 1; - $var5.$textureU = var$15; - $var5.$textureV = var$16; - nlea_Tessellator_addVertex($var5, var$12, var$13, var$14); - } - if ($var15 == 4) { - var$12 = ($par2 + 1 | 0) - 0.05000000074505806; - var$13 = ($par3 + 0 | 0) - 0.0; - var$14 = ($par4 + 1 | 0) + 0.0; - $var5.$hasTexture = 1; - var$15 = $var11; - $var5.$textureU = var$15; - var$16 = $var13; - $var5.$textureV = var$16; - nlea_Tessellator_addVertex($var5, var$12, var$13, var$14); - var$17 = ($par3 + 1 | 0) + 0.0; - $var5.$hasTexture = 1; - $var5.$textureU = var$15; - var$18 = $var9; - $var5.$textureV = var$18; - nlea_Tessellator_addVertex($var5, var$12, var$17, var$14); - var$14 = ($par4 + 0 | 0) - 0.0; - $var5.$hasTexture = 1; - var$15 = $var20; - $var5.$textureU = var$15; - $var5.$textureV = var$18; - nlea_Tessellator_addVertex($var5, var$12, var$17, var$14); - $var5.$hasTexture = 1; - $var5.$textureU = var$15; - $var5.$textureV = var$16; - nlea_Tessellator_addVertex($var5, var$12, var$13, var$14); - } - if ($var15 == 3) { - var$12 = ($par2 + 1 | 0) + 0.0; - var$13 = ($par3 + 0 | 0) - 0.0; - var$14 = $par4 + 0.05000000074505806; - $var5.$hasTexture = 1; - var$15 = $var11; - $var5.$textureU = var$15; - var$16 = $var13; - $var5.$textureV = var$16; - nlea_Tessellator_addVertex($var5, var$12, var$13, var$14); - var$17 = ($par3 + 1 | 0) + 0.0; - $var5.$hasTexture = 1; - $var5.$textureU = var$15; - var$18 = $var9; - $var5.$textureV = var$18; - nlea_Tessellator_addVertex($var5, var$12, var$17, var$14); - var$12 = ($par2 + 0 | 0) - 0.0; - $var5.$hasTexture = 1; - var$15 = $var20; - $var5.$textureU = var$15; - $var5.$textureV = var$18; - nlea_Tessellator_addVertex($var5, var$12, var$17, var$14); - $var5.$hasTexture = 1; - $var5.$textureU = var$15; - $var5.$textureV = var$16; - nlea_Tessellator_addVertex($var5, var$12, var$13, var$14); - } - if ($var15 == 2) { - var$12 = ($par2 + 1 | 0) + 0.0; - var$13 = ($par3 + 1 | 0) + 0.0; - var$14 = ($par4 + 1 | 0) - 0.05000000074505806; - $var5.$hasTexture = 1; - var$15 = $var20; - $var5.$textureU = var$15; - var$18 = $var9; - $var5.$textureV = var$18; - nlea_Tessellator_addVertex($var5, var$12, var$13, var$14); - $var20 = ($par3 + 0 | 0) - 0.0; - $var5.$hasTexture = 1; - $var5.$textureU = var$15; - var$16 = $var13; - $var5.$textureV = var$16; - nlea_Tessellator_addVertex($var5, var$12, $var20, var$14); - var$12 = ($par2 + 0 | 0) - 0.0; - $var5.$hasTexture = 1; - var$15 = $var11; - $var5.$textureU = var$15; - $var5.$textureV = var$16; - nlea_Tessellator_addVertex($var5, var$12, $var20, var$14); - $var5.$hasTexture = 1; - $var5.$textureU = var$15; - $var5.$textureV = var$18; - nlea_Tessellator_addVertex($var5, var$12, var$13, var$14); - } - return 1; -} -function nms_RenderBlocks_renderBlockVine($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, var$7, $var8, $var9, $var10, $var11, $var19, $var20, $var12, $var14, $var18, var$17, var$18, var$19, var$20, var$21, var$22; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(0, 0)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var6 = $this.$overrideBlockTexture; - var$7 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = var$7; - $var8 = $par1Block.$colorMultiplier($this.$blockAccess, $par2, $par3, $par4); - $var9 = ($var8 >> 16 & 255) / 255.0; - $var10 = ($var8 >> 8 & 255) / 255.0; - $var11 = ($var8 & 255) / 255.0; - nlea_Tessellator_setColorRGBA($var5, 1.0 * $var9 * 255.0 | 0, 1.0 * $var10 * 255.0 | 0, 1.0 * $var11 * 255.0 | 0, 255); - $var19 = $var6.$getMinU(); - $var20 = $var6.$getMinV(); - $var12 = $var6.$getMaxU(); - $var14 = $var6.$getMaxV(); - $var18 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - if ($var18 & 2) { - var$17 = $par2 + 0.05000000074505806; - var$18 = $par3 + 1 | 0; - var$19 = $par4 + 1 | 0; - $var5.$hasTexture = 1; - $var11 = $var19; - $var5.$textureU = $var11; - var$20 = $var20; - $var5.$textureV = var$20; - nlea_Tessellator_addVertex($var5, var$17, var$18, var$19); - var$21 = $par3 + 0 | 0; - $var5.$hasTexture = 1; - $var5.$textureU = $var11; - $var10 = $var14; - $var5.$textureV = $var10; - nlea_Tessellator_addVertex($var5, var$17, var$21, var$19); - var$22 = $par4 + 0 | 0; - $var5.$hasTexture = 1; - $var9 = $var12; - $var5.$textureU = $var9; - $var5.$textureV = $var10; - nlea_Tessellator_addVertex($var5, var$17, var$21, var$22); - $var5.$hasTexture = 1; - $var5.$textureU = $var9; - $var5.$textureV = var$20; - nlea_Tessellator_addVertex($var5, var$17, var$18, var$22); - $var5.$hasTexture = 1; - $var5.$textureU = $var9; - $var5.$textureV = var$20; - nlea_Tessellator_addVertex($var5, var$17, var$18, var$22); - $var5.$hasTexture = 1; - $var5.$textureU = $var9; - $var5.$textureV = $var10; - nlea_Tessellator_addVertex($var5, var$17, var$21, var$22); - $var5.$hasTexture = 1; - $var5.$textureU = $var11; - $var5.$textureV = $var10; - nlea_Tessellator_addVertex($var5, var$17, var$21, var$19); - $var5.$hasTexture = 1; - $var5.$textureU = $var11; - $var5.$textureV = var$20; - nlea_Tessellator_addVertex($var5, var$17, var$18, var$19); - } - if ($var18 & 8) { - var$17 = ($par2 + 1 | 0) - 0.05000000074505806; - var$19 = $par3 + 0 | 0; - var$21 = $par4 + 1 | 0; - $var5.$hasTexture = 1; - $var9 = $var12; - $var5.$textureU = $var9; - $var11 = $var14; - $var5.$textureV = $var11; - nlea_Tessellator_addVertex($var5, var$17, var$19, var$21); - var$22 = $par3 + 1 | 0; - $var5.$hasTexture = 1; - $var5.$textureU = $var9; - $var10 = $var20; - $var5.$textureV = $var10; - nlea_Tessellator_addVertex($var5, var$17, var$22, var$21); - var$18 = $par4 + 0 | 0; - $var5.$hasTexture = 1; - $var9 = $var19; - $var5.$textureU = $var9; - $var5.$textureV = $var10; - nlea_Tessellator_addVertex($var5, var$17, var$22, var$18); - $var5.$hasTexture = 1; - $var5.$textureU = $var9; - $var5.$textureV = $var11; - nlea_Tessellator_addVertex($var5, var$17, var$19, var$18); - nlea_Tessellator_addVertexWithUV($var5, var$17, var$19, var$18, $var19, $var14); - nlea_Tessellator_addVertexWithUV($var5, var$17, var$22, var$18, $var19, $var20); - nlea_Tessellator_addVertexWithUV($var5, var$17, var$22, var$21, $var12, $var20); - nlea_Tessellator_addVertexWithUV($var5, var$17, var$19, var$21, $var12, $var14); - } - if ($var18 & 4) { - var$17 = $par2 + 1 | 0; - var$18 = $par3 + 0 | 0; - var$19 = $par4 + 0.05000000074505806; - nlea_Tessellator_addVertexWithUV($var5, var$17, var$18, var$19, $var12, $var14); - var$21 = $par3 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$17, var$21, var$19, $var12, $var20); - var$22 = $par2 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$22, var$21, var$19, $var19, $var20); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$18, var$19, $var19, $var14); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$18, var$19, $var19, $var14); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$21, var$19, $var19, $var20); - nlea_Tessellator_addVertexWithUV($var5, var$17, var$21, var$19, $var12, $var20); - nlea_Tessellator_addVertexWithUV($var5, var$17, var$18, var$19, $var12, $var14); - } - if ($var18 & 1) { - var$17 = $par2 + 1 | 0; - var$18 = $par3 + 1 | 0; - var$19 = ($par4 + 1 | 0) - 0.05000000074505806; - nlea_Tessellator_addVertexWithUV($var5, var$17, var$18, var$19, $var19, $var20); - var$21 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$17, var$21, var$19, $var19, $var14); - var$22 = $par2 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$22, var$21, var$19, $var12, $var14); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$18, var$19, $var12, $var20); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$18, var$19, $var12, $var20); - nlea_Tessellator_addVertexWithUV($var5, var$22, var$21, var$19, $var12, $var14); - nlea_Tessellator_addVertexWithUV($var5, var$17, var$21, var$19, $var19, $var14); - nlea_Tessellator_addVertexWithUV($var5, var$17, var$18, var$19, $var19, $var20); - } - $par1Block = $this.$blockAccess; - $par3 = $par3 + 1 | 0; - if ($par1Block.$isBlockNormalCube($par2, $par3, $par4)) { - var$17 = $par2 + 1 | 0; - var$18 = $par3 - 0.05000000074505806; - var$19 = $par4 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$17, var$18, var$19, $var19, $var20); - var$21 = $par4 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var5, var$17, var$18, var$21, $var19, $var14); - $var19 = $par2 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var19, var$18, var$21, $var12, $var14); - nlea_Tessellator_addVertexWithUV($var5, $var19, var$18, var$19, $var12, $var20); - } - return 1; -} -function nms_RenderBlocks_renderBlockPane($this, $par1BlockPane, $par2, $par3, $par4) { - var $var5, $var6, $var8, $var12, $var13, $var14, var$11, $var64, $var65, $var16, $var18, $var20, $var22, $var24, $var28, $var30, $var32, $var34, $var36, $var38, $var40, var$26, $var42, $var44, $var46, var$30, $var48, $var50, $var52, $var54, $var56, var$36, $var58, $var59, $var66, $var60, $var61, var$42, $var62, var$44, $var63, var$46, var$47, var$48; - $var5 = $this.$blockAccess.$getHeight0(); - nlea_Tessellator_$callClinit(); - $var6 = nlea_Tessellator_instance; - nlea_Tessellator_setBrightness($var6, nms_Block_getMixedBrightnessForBlock($par1BlockPane, $this.$blockAccess, $par2, $par3, $par4)); - $var8 = nms_Block_colorMultiplier($par1BlockPane, $this.$blockAccess, $par2, $par3, $par4); - $var12 = ($var8 >> 16 & 255) / 255.0; - $var13 = ($var8 >> 8 & 255) / 255.0; - $var14 = ($var8 & 255) / 255.0; - if (nms_EntityRenderer_anaglyphEnable) { - var$11 = $var12 * 30.0; - $var12 = (var$11 + $var13 * 59.0 + $var14 * 11.0) / 100.0; - $var13 = (var$11 + $var13 * 70.0) / 100.0; - $var14 = (var$11 + $var14 * 70.0) / 100.0; - } - nlea_Tessellator_setColorOpaque_F($var6, 1.0 * $var12, 1.0 * $var13, 1.0 * $var14); - if (nms_RenderBlocks_hasOverrideBlockTexture($this)) { - $var64 = $this.$overrideBlockTexture; - $var65 = $this.$overrideBlockTexture; - } else { - $var64 = nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1BlockPane, 0, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4)); - $var65 = nms_BlockPane_getSideTextureIndex($par1BlockPane); - } - a: { - b: { - $var64.$getOriginX(); - $var64.$getOriginY(); - $var16 = $var64.$getMinU(); - $var18 = $var64.$getInterpolatedU(8.0); - $var20 = $var64.$getMaxU(); - $var22 = $var64.$getMinV(); - $var24 = $var64.$getMaxV(); - $var65.$getOriginX(); - $var65.$getOriginY(); - $var28 = $var65.$getInterpolatedU(7.0); - $var30 = $var65.$getInterpolatedU(9.0); - $var32 = $var65.$getMinV(); - $var34 = $var65.$getInterpolatedV(8.0); - $var36 = $var65.$getMaxV(); - $var38 = $par2; - $var40 = $var38 + 0.5; - var$26 = $par2 + 1 | 0; - $var42 = var$26; - $var44 = $par4; - $var46 = $var44 + 0.5; - var$30 = $par4 + 1 | 0; - $var48 = var$30; - $var50 = $var40 - 0.0625; - $var52 = $var40 + 0.0625; - $var54 = $var46 - 0.0625; - $var56 = $var46 + 0.0625; - $var65 = $this.$blockAccess; - var$36 = $par4 - 1 | 0; - $var58 = nms_BlockPane_canThisPaneConnectToThisBlockID($par1BlockPane, $var65.$getBlockId($par2, $par3, var$36)); - $var59 = nms_BlockPane_canThisPaneConnectToThisBlockID($par1BlockPane, $this.$blockAccess.$getBlockId($par2, $par3, var$30)); - $var65 = $this.$blockAccess; - $var66 = $par2 - 1 | 0; - $var60 = nms_BlockPane_canThisPaneConnectToThisBlockID($par1BlockPane, $var65.$getBlockId($var66, $par3, $par4)); - $var61 = nms_BlockPane_canThisPaneConnectToThisBlockID($par1BlockPane, $this.$blockAccess.$getBlockId(var$26, $par3, $par4)); - $var65 = $this.$blockAccess; - var$42 = $par3 + 1 | 0; - $var62 = nms_BlockPane_shouldSideBeRendered($par1BlockPane, $var65, $par2, var$42, $par4, 1); - $var65 = $this.$blockAccess; - var$44 = $par3 - 1 | 0; - $var63 = nms_BlockPane_shouldSideBeRendered($par1BlockPane, $var65, $par2, var$44, $par4, 0); - if (!($var60 && $var61)) { - if ($var60) - break b; - if ($var61) - break b; - if ($var58) - break b; - if ($var59) - break b; - } - var$46 = var$42; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var46, $var16, $var22); - var$47 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$47, $var46, $var16, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$47, $var46, $var20, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var46, $var20, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var46, $var16, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$47, $var46, $var16, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$47, $var46, $var20, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var46, $var20, $var22); - if ($var62) { - var$46 = var$46 + 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var36); - } else { - var$48 = $rt_compare($par3, $var5 - 1 | 0); - if (var$48 < 0 && $this.$blockAccess.$isAirBlock($var66, var$42, $par4)) { - var$47 = var$46 + 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$47, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$47, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$47, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$47, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var54, $var28, $var34); - } - if (var$48 < 0 && $this.$blockAccess.$isAirBlock(var$26, var$42, $par4)) { - var$46 = var$46 + 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var32); - } - } - if ($var63) { - var$46 = $par3 - 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var36); - break a; - } - $var8 = $rt_compare($par3, 1); - if ($var8 > 0 && $this.$blockAccess.$isAirBlock($var66, var$44, $par4)) { - var$46 = $par3 - 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var34); - } - if ($var8 <= 0) - break a; - if (!$this.$blockAccess.$isAirBlock(var$26, var$44, $par4)) - break a; - var$46 = $par3 - 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var32); - break a; - } - if ($var60 && !$var61) { - var$46 = var$42; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var46, $var16, $var22); - var$47 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$47, $var46, $var16, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var46, $var18, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var46, $var18, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var46, $var16, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var46, $var16, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$47, $var46, $var18, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var46, $var18, $var22); - if (!$var59 && !$var58) { - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var56, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var54, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var32); - } - c: { - if (!$var62) { - if ($par3 >= ($var5 - 1 | 0)) - break c; - if (!$this.$blockAccess.$isAirBlock($var66, var$42, $par4)) - break c; - } - var$46 = var$46 + 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var34); - } - if (!$var63) { - if ($par3 <= 1) - break a; - if (!$this.$blockAccess.$isAirBlock($var66, var$44, $par4)) - break a; - } - var$46 = $par3 - 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var38, var$46, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var34); - } else if (!$var60 && $var61) { - var$46 = var$42; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var46, $var18, $var22); - var$47 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var46, $var18, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$47, $var46, $var20, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var46, $var20, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var46, $var18, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$47, $var46, $var18, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var46, $var20, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var46, $var20, $var22); - if (!$var59 && !$var58) { - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var54, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var56, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var56, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var54, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var30, $var32); - } - d: { - if (!$var62) { - if ($par3 >= ($var5 - 1 | 0)) - break d; - if (!$this.$blockAccess.$isAirBlock(var$26, var$42, $par4)) - break d; - } - var$46 = var$46 + 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var32); - } - if (!$var63) { - if ($par3 <= 1) - break a; - if (!$this.$blockAccess.$isAirBlock(var$26, var$44, $par4)) - break a; - } - var$46 = $par3 - 0.01; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var56, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var56, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var54, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var42, var$46, $var54, $var28, $var32); - } - } - e: { - f: { - if (!($var58 && $var59)) { - if ($var60) - break f; - if ($var61) - break f; - if ($var58) - break f; - if ($var59) - break f; - } - var$46 = var$42; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var48, $var16, $var22); - var$47 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var48, $var16, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var44, $var20, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var44, $var20, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var44, $var16, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var44, $var16, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var48, $var20, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var48, $var20, $var22); - if ($var62) { - var$46 = var$46 + 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var28, $var36); - } else { - $par4 = $rt_compare($par3, $var5 - 1 | 0); - if ($par4 < 0 && $this.$blockAccess.$isAirBlock($par2, var$42, var$36)) { - var$47 = var$46 + 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var50, var$47, $var44, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$47, $var46, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$47, $var46, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$47, $var44, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$47, $var46, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$47, $var44, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$47, $var44, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$47, $var46, $var28, $var32); - } - if ($par4 < 0 && $this.$blockAccess.$isAirBlock($par2, var$42, var$30)) { - var$46 = var$46 + 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var34); - } - } - if ($var63) { - var$46 = $par3 - 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var28, $var36); - break e; - } - $par4 = $rt_compare($par3, 1); - if ($par4 > 0 && $this.$blockAccess.$isAirBlock($par2, var$44, var$36)) { - var$46 = $par3 - 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var28, $var32); - } - if ($par4 <= 0) - break e; - if (!$this.$blockAccess.$isAirBlock($par2, var$44, var$30)) - break e; - var$46 = $par3 - 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var34); - break e; - } - if ($var58 && !$var59) { - var$47 = var$42; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var44, $var16, $var22); - var$46 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var44, $var16, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var46, $var18, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var46, $var18, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var46, $var16, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var46, $var16, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var44, $var18, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var44, $var18, $var22); - if (!$var61 && !$var60) { - nlea_Tessellator_addVertexWithUV($var6, $var50, var$47, $var46, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$47, $var46, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$47, $var46, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$47, $var46, $var30, $var32); - } - g: { - if (!$var62) { - if ($par3 >= ($var5 - 1 | 0)) - break g; - if (!$this.$blockAccess.$isAirBlock($par2, var$42, var$36)) - break g; - } - var$46 = var$47 + 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var28, $var32); - } - if (!$var63) { - if ($par3 <= 1) - break e; - if (!$this.$blockAccess.$isAirBlock($par2, var$44, var$36)) - break e; - } - var$46 = $par3 - 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var44, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var44, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var28, $var32); - } else if (!$var58 && $var59) { - var$46 = var$42; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var46, $var18, $var22); - var$47 = $par3 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var46, $var18, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var48, $var20, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var48, $var20, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var48, $var18, $var22); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var48, $var18, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$47, $var46, $var20, $var24); - nlea_Tessellator_addVertexWithUV($var6, $var40, var$46, $var46, $var20, $var22); - if (!$var61 && !$var60) { - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$47, $var46, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$47, $var46, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var30, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var32); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$47, $var46, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$47, $var46, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var32); - } - h: { - if (!$var62) { - if ($par3 >= ($var5 - 1 | 0)) - break h; - if (!$this.$blockAccess.$isAirBlock($par2, var$42, var$30)) - break h; - } - var$46 = var$46 + 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var34); - } - if (!$var63) { - if ($par3 <= 1) - break e; - if (!$this.$blockAccess.$isAirBlock($par2, var$44, var$30)) - break e; - } - var$46 = $par3 - 0.005; - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var48, $var28, $var34); - nlea_Tessellator_addVertexWithUV($var6, $var50, var$46, $var46, $var28, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var46, $var30, $var36); - nlea_Tessellator_addVertexWithUV($var6, $var52, var$46, $var48, $var30, $var34); - } - } - return 1; -} -function nms_RenderBlocks_renderCrossedSquares($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var7, $var11, $var12, $var13, var$10, $var19, $var20, $var15, $var17; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var7 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = $var7; - $var7 = $par1Block.$colorMultiplier($this.$blockAccess, $par2, $par3, $par4); - $var11 = ($var7 >> 16 & 255) / 255.0; - $var12 = ($var7 >> 8 & 255) / 255.0; - $var13 = ($var7 & 255) / 255.0; - if (nms_EntityRenderer_anaglyphEnable) { - var$10 = $var11 * 30.0; - $var11 = (var$10 + $var12 * 59.0 + $var13 * 11.0) / 100.0; - $var12 = (var$10 + $var12 * 70.0) / 100.0; - $var13 = (var$10 + $var13 * 70.0) / 100.0; - } - nlea_Tessellator_setColorRGBA($var5, 1.0 * $var11 * 255.0 | 0, 1.0 * $var12 * 255.0 | 0, 1.0 * $var13 * 255.0 | 0, 255); - $var19 = $par2; - $var20 = $par3; - $var15 = $par4; - if ($par1Block === nms_Block_tallGrass) { - $var17 = Long_xor(Long_xor(Long_fromInt($rt_imul($par2, 3129871)), Long_mul(Long_fromInt($par4), Long_fromInt(116129781))), Long_fromInt($par3)); - $var17 = Long_add(Long_mul(Long_mul($var17, $var17), Long_fromInt(42317861)), Long_mul($var17, Long_fromInt(11))); - $var19 = $var19 + (Long_toNumber(Long_and(Long_shr($var17, 16), Long_fromInt(15))) / 15.0 - 0.5) * 0.5; - $var20 = $var20 + (Long_toNumber(Long_and(Long_shr($var17, 20), Long_fromInt(15))) / 15.0 - 1.0) * 0.2; - $var15 = $var15 + (Long_toNumber(Long_and(Long_shr($var17, 24), Long_fromInt(15))) / 15.0 - 0.5) * 0.5; - } - nms_RenderBlocks_drawCrossedSquares($this, $par1Block, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4), $var19, $var20, $var15, 1.0); - return 1; -} -function nms_RenderBlocks_renderBlockStem($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, var$7, $var8, $var12, $var13, $var14, var$12, $var15, var$14, var$15, var$16; - $var5 = $par1Block; - nlea_Tessellator_$callClinit(); - $var6 = nlea_Tessellator_instance; - $par1Block = $this.$blockAccess; - var$7 = $par1Block.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$par1Block.$getBlockId($par2, $par3, $par4)]); - $var6.$hasBrightness = 1; - $var6.$brightness = var$7; - $var8 = nms_BlockStem_colorMultiplier($var5, $this.$blockAccess, $par2, $par3, $par4); - $var12 = ($var8 >> 16 & 255) / 255.0; - $var13 = ($var8 >> 8 & 255) / 255.0; - $var14 = ($var8 & 255) / 255.0; - if (nms_EntityRenderer_anaglyphEnable) { - var$12 = $var12 * 30.0; - $var12 = (var$12 + $var13 * 59.0 + $var14 * 11.0) / 100.0; - $var13 = (var$12 + $var13 * 70.0) / 100.0; - $var14 = (var$12 + $var14 * 70.0) / 100.0; - } - nlea_Tessellator_setColorRGBA($var6, 1.0 * $var12 * 255.0 | 0, 1.0 * $var13 * 255.0 | 0, 1.0 * $var14 * 255.0 | 0, 255); - nms_BlockStem_setBlockBoundsBasedOnState($var5, $this.$blockAccess, $par2, $par3, $par4); - $var15 = nms_BlockStem_getState($var5, $this.$blockAccess, $par2, $par3, $par4); - if ($var15 < 0) - nms_RenderBlocks_renderBlockStemSmall($this, $var5, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4), $this.$renderMaxY, $par2, $par3 - 0.0625, $par4); - else { - var$7 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - var$14 = $par2; - var$15 = $par3 - 0.0625; - var$16 = $par4; - nms_RenderBlocks_renderBlockStemSmall($this, $var5, var$7, 0.5, var$14, var$15, var$16); - nms_RenderBlocks_renderBlockStemBig($this, $var5, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4), $var15, $this.$renderMaxY, var$14, var$15, var$16); - } - return 1; -} -function nms_RenderBlocks_renderBlockCrops($this, $par1Block, $par2, $par3, $par4) { - var $var5, var$6; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - var$6 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = var$6; - nlea_Tessellator_setColorRGBA($var5, 255, 255, 255, 255); - nms_RenderBlocks_renderBlockCropsImpl($this, $par1Block, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4), $par2, $par3 - 0.0625, $par4); - return 1; -} -function nms_RenderBlocks_renderTorchAtAngle($this, $par1Block, $par2, $par4, $par6, $par8, $par10, $par12) { - var $var13, $var14, $var15, $var17, $var19, $var21, $var23, $var25, $var27, $var29, $var31, $var33, $var35, $var37, var$22, var$23, $var39, $var41, $var43, $var45, var$28, var$29, $var49, var$31, var$32, var$33, var$34; - nlea_Tessellator_$callClinit(); - $var13 = nlea_Tessellator_instance; - $var14 = nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(0, $par12)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var14 = $this.$overrideBlockTexture; - $var15 = $var14.$getMinU(); - $var17 = $var14.$getMinV(); - $var19 = $var14.$getMaxU(); - $var21 = $var14.$getMaxV(); - $var23 = $var14.$getInterpolatedU(7.0); - $var25 = $var14.$getInterpolatedV(6.0); - $var27 = $var14.$getInterpolatedU(9.0); - $var29 = $var14.$getInterpolatedV(8.0); - $var31 = $var14.$getInterpolatedU(7.0); - $var33 = $var14.$getInterpolatedV(13.0); - $var35 = $var14.$getInterpolatedU(9.0); - $var37 = $var14.$getInterpolatedV(15.0); - var$22 = $par2 + 0.5; - var$23 = $par6 + 0.5; - $var39 = var$22 - 0.5; - $var41 = var$22 + 0.5; - $var43 = var$23 - 0.5; - $var45 = var$23 + 0.5; - var$28 = var$22 + $par8 * 0.375; - var$29 = var$28 - 0.0625; - $par6 = $par4 + 0.625; - $par2 = var$23 + $par10 * 0.375; - $var49 = $par2 - 0.0625; - $var13.$hasTexture = 1; - var$31 = $var23; - $var13.$textureU = var$31; - var$32 = $var25; - $var13.$textureV = var$32; - nlea_Tessellator_addVertex($var13, var$29, $par6, $var49); - $par2 = $par2 + 0.0625; - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - var$33 = $var29; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, var$29, $par6, $par2); - $var23 = var$28 + 0.0625; - $var13.$hasTexture = 1; - var$31 = $var27; - $var13.$textureU = var$31; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, $var23, $par6, $par2); - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - $var13.$textureV = var$32; - nlea_Tessellator_addVertex($var13, $var23, $par6, $var49); - $par2 = var$22 + 0.0625; - $par6 = $par2 + $par8; - $var49 = var$23 - 0.0625; - $var23 = $var49 + $par10; - $var13.$hasTexture = 1; - var$31 = $var35; - $var13.$textureU = var$31; - var$32 = $var33; - $var13.$textureV = var$32; - nlea_Tessellator_addVertex($var13, $par6, $par4, $var23); - $var25 = var$23 + 0.0625; - var$23 = $var25 + $par10; - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - var$33 = $var37; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, $par6, $par4, var$23); - $par6 = var$22 - 0.0625; - var$29 = $par6 + $par8; - $var13.$hasTexture = 1; - var$31 = $var31; - $var13.$textureU = var$31; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, var$29, $par4, var$23); - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - $var13.$textureV = var$32; - nlea_Tessellator_addVertex($var13, var$29, $par4, $var23); - $var27 = $par4 + 1.0; - $var13.$hasTexture = 1; - var$32 = $var15; - $var13.$textureU = var$32; - var$34 = $var17; - $var13.$textureV = var$34; - nlea_Tessellator_addVertex($var13, $par6, $var27, $var43); - $var15 = $par4 + 0.0; - $var17 = $var43 + $par10; - $var13.$hasTexture = 1; - $var13.$textureU = var$32; - var$33 = $var21; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, var$29, $var15, $var17); - $par10 = $var45 + $par10; - $var13.$hasTexture = 1; - var$31 = $var19; - $var13.$textureU = var$31; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, var$29, $var15, $par10); - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - $var13.$textureV = var$34; - nlea_Tessellator_addVertex($var13, $par6, $var27, $var45); - $var13.$hasTexture = 1; - $var13.$textureU = var$32; - $var13.$textureV = var$34; - nlea_Tessellator_addVertex($var13, $par2, $var27, $var45); - $par4 = var$22 + $par8 + 0.0625; - $var13.$hasTexture = 1; - $var13.$textureU = var$32; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, $par4, $var15, $par10); - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, $par4, $var15, $var17); - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - $var13.$textureV = var$34; - nlea_Tessellator_addVertex($var13, $par2, $var27, $var43); - $var13.$hasTexture = 1; - $var13.$textureU = var$32; - $var13.$textureV = var$34; - nlea_Tessellator_addVertex($var13, $var39, $var27, $var25); - $par2 = $var39 + $par8; - $var13.$hasTexture = 1; - $var13.$textureU = var$32; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, $par2, $var15, var$23); - $par4 = $var41 + $par8; - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, $par4, $var15, var$23); - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - $var13.$textureV = var$34; - nlea_Tessellator_addVertex($var13, $var41, $var27, $var25); - $var13.$hasTexture = 1; - $var13.$textureU = var$32; - $var13.$textureV = var$34; - nlea_Tessellator_addVertex($var13, $var41, $var27, $var49); - $var13.$hasTexture = 1; - $var13.$textureU = var$32; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, $par4, $var15, $var23); - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - $var13.$textureV = var$33; - nlea_Tessellator_addVertex($var13, $par2, $var15, $var23); - $var13.$hasTexture = 1; - $var13.$textureU = var$31; - $var13.$textureV = var$34; - nlea_Tessellator_addVertex($var13, $var39, $var27, $var49); -} -function nms_RenderBlocks_drawCrossedSquares($this, $par1Block, $par2, $par3, $par5, $par7, $par9) { - var $var10, $var11, $var12, $var14, $var16, $var18, var$13, $var20, $var22, $var24, $var26, $var28, var$19, var$20, var$21; - nlea_Tessellator_$callClinit(); - $var10 = nlea_Tessellator_instance; - $var11 = nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(0, $par2)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var11 = $this.$overrideBlockTexture; - $var12 = $var11.$getMinU(); - $var14 = $var11.$getMinV(); - $var16 = $var11.$getMaxU(); - $var18 = $var11.$getMaxV(); - var$13 = $par9; - $var20 = 0.45 * var$13; - $par3 = $par3 + 0.5; - $var22 = $par3 - $var20; - $var24 = $par3 + $var20; - $par3 = $par7 + 0.5; - $var26 = $par3 - $var20; - $var28 = $par3 + $var20; - $par3 = $par5 + var$13; - $var10.$hasTexture = 1; - var$19 = $var12; - $var10.$textureU = var$19; - var$20 = $var14; - $var10.$textureV = var$20; - nlea_Tessellator_addVertex($var10, $var22, $par3, $var26); - $par5 = $par5 + 0.0; - $var10.$hasTexture = 1; - $var10.$textureU = var$19; - $par9 = $var18; - $var10.$textureV = $par9; - nlea_Tessellator_addVertex($var10, $var22, $par5, $var26); - $var10.$hasTexture = 1; - var$21 = $var16; - $var10.$textureU = var$21; - $var10.$textureV = $par9; - nlea_Tessellator_addVertex($var10, $var24, $par5, $var28); - $var10.$hasTexture = 1; - $var10.$textureU = var$21; - $var10.$textureV = var$20; - nlea_Tessellator_addVertex($var10, $var24, $par3, $var28); - $var10.$hasTexture = 1; - $var10.$textureU = var$19; - $var10.$textureV = var$20; - nlea_Tessellator_addVertex($var10, $var24, $par3, $var28); - $var10.$hasTexture = 1; - $var10.$textureU = var$19; - $var10.$textureV = $par9; - nlea_Tessellator_addVertex($var10, $var24, $par5, $var28); - $var10.$hasTexture = 1; - $var10.$textureU = var$21; - $var10.$textureV = $par9; - nlea_Tessellator_addVertex($var10, $var22, $par5, $var26); - $var10.$hasTexture = 1; - $var10.$textureU = var$21; - $var10.$textureV = var$20; - nlea_Tessellator_addVertex($var10, $var22, $par3, $var26); - $var10.$hasTexture = 1; - $var10.$textureU = var$19; - $var10.$textureV = var$20; - nlea_Tessellator_addVertex($var10, $var22, $par3, $var28); - $var10.$hasTexture = 1; - $var10.$textureU = var$19; - $var10.$textureV = $par9; - nlea_Tessellator_addVertex($var10, $var22, $par5, $var28); - $var10.$hasTexture = 1; - $var10.$textureU = var$21; - $var10.$textureV = $par9; - nlea_Tessellator_addVertex($var10, $var24, $par5, $var26); - $var10.$hasTexture = 1; - $var10.$textureU = var$21; - $var10.$textureV = var$20; - nlea_Tessellator_addVertex($var10, $var24, $par3, $var26); - $var10.$hasTexture = 1; - $var10.$textureU = var$19; - $var10.$textureV = var$20; - nlea_Tessellator_addVertex($var10, $var24, $par3, $var26); - $var10.$hasTexture = 1; - $var10.$textureU = var$19; - $var10.$textureV = $par9; - nlea_Tessellator_addVertex($var10, $var24, $par5, $var26); - $var10.$hasTexture = 1; - $var10.$textureU = var$21; - $var10.$textureV = $par9; - nlea_Tessellator_addVertex($var10, $var22, $par5, $var28); - $var10.$hasTexture = 1; - $var10.$textureU = var$21; - $var10.$textureV = var$20; - nlea_Tessellator_addVertex($var10, $var22, $par3, $var28); -} -function nms_RenderBlocks_renderBlockStemSmall($this, $par1Block, $par2, $par3, $par5, $par7, $par9) { - var $var11, $var12, $var13, $var15, $var17, $var19, $var21, $var23, $var25, $var27, var$17, var$18, var$19, var$20; - nlea_Tessellator_$callClinit(); - $var11 = nlea_Tessellator_instance; - $var12 = nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(0, $par2)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var12 = $this.$overrideBlockTexture; - $var13 = $var12.$getMinU(); - $var15 = $var12.$getMinV(); - $var17 = $var12.$getMaxU(); - $var19 = $var12.$getInterpolatedV($par3 * 16.0); - $par5 = $par5 + 0.5; - $var21 = $par5 - 0.44999998807907104; - $var23 = $par5 + 0.44999998807907104; - $par5 = $par9 + 0.5; - $var25 = $par5 - 0.44999998807907104; - $var27 = $par5 + 0.44999998807907104; - $par3 = $par7 + $par3; - $var11.$hasTexture = 1; - var$17 = $var13; - $var11.$textureU = var$17; - var$18 = $var15; - $var11.$textureV = var$18; - nlea_Tessellator_addVertex($var11, $var21, $par3, $var25); - $par5 = $par7 + 0.0; - $var11.$hasTexture = 1; - $var11.$textureU = var$17; - var$19 = $var19; - $var11.$textureV = var$19; - nlea_Tessellator_addVertex($var11, $var21, $par5, $var25); - $var11.$hasTexture = 1; - var$20 = $var17; - $var11.$textureU = var$20; - $var11.$textureV = var$19; - nlea_Tessellator_addVertex($var11, $var23, $par5, $var27); - $var11.$hasTexture = 1; - $var11.$textureU = var$20; - $var11.$textureV = var$18; - nlea_Tessellator_addVertex($var11, $var23, $par3, $var27); - $var11.$hasTexture = 1; - $var11.$textureU = var$17; - $var11.$textureV = var$18; - nlea_Tessellator_addVertex($var11, $var23, $par3, $var27); - $var11.$hasTexture = 1; - $var11.$textureU = var$17; - $var11.$textureV = var$19; - nlea_Tessellator_addVertex($var11, $var23, $par5, $var27); - $var11.$hasTexture = 1; - $var11.$textureU = var$20; - $var11.$textureV = var$19; - nlea_Tessellator_addVertex($var11, $var21, $par5, $var25); - $var11.$hasTexture = 1; - $var11.$textureU = var$20; - $var11.$textureV = var$18; - nlea_Tessellator_addVertex($var11, $var21, $par3, $var25); - $var11.$hasTexture = 1; - $var11.$textureU = var$17; - $var11.$textureV = var$18; - nlea_Tessellator_addVertex($var11, $var21, $par3, $var27); - $var11.$hasTexture = 1; - $var11.$textureU = var$17; - $var11.$textureV = var$19; - nlea_Tessellator_addVertex($var11, $var21, $par5, $var27); - $var11.$hasTexture = 1; - $var11.$textureU = var$20; - $var11.$textureV = var$19; - nlea_Tessellator_addVertex($var11, $var23, $par5, $var25); - $var11.$hasTexture = 1; - $var11.$textureU = var$20; - $var11.$textureV = var$18; - nlea_Tessellator_addVertex($var11, $var23, $par3, $var25); - $var11.$hasTexture = 1; - $var11.$textureU = var$17; - $var11.$textureV = var$18; - nlea_Tessellator_addVertex($var11, $var23, $par3, $var25); - $var11.$hasTexture = 1; - $var11.$textureU = var$17; - $var11.$textureV = var$19; - nlea_Tessellator_addVertex($var11, $var23, $par5, $var25); - $var11.$hasTexture = 1; - $var11.$textureU = var$20; - $var11.$textureV = var$19; - nlea_Tessellator_addVertex($var11, $var21, $par5, $var27); - $var11.$hasTexture = 1; - $var11.$textureU = var$20; - $var11.$textureV = var$18; - nlea_Tessellator_addVertex($var11, $var21, $par3, $var27); -} -function nms_RenderBlocks_renderBlockLilyPad($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, $var8, $var10, $var12, $var14, $var16, $var18, var$13, $var19, $var20, $var21, $var22, var$18, var$19, var$20, $var7, var$22, var$23, var$24, var$25, var$26; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(1, 0)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var6 = $this.$overrideBlockTexture; - $var8 = $var6.$getMinU(); - $var10 = $var6.$getMinV(); - $var12 = $var6.$getMaxU(); - $var14 = $var6.$getMaxV(); - $var16 = Long_xor(Long_xor(Long_fromInt($rt_imul($par2, 3129871)), Long_mul(Long_fromInt($par4), Long_fromInt(116129781))), Long_fromInt($par3)); - $var18 = Long_and(Long_shr(Long_add(Long_mul(Long_mul($var16, $var16), Long_fromInt(42317861)), Long_mul($var16, Long_fromInt(11))), 16), Long_fromInt(3)).lo; - var$13 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = var$13; - $var19 = $par2 + 0.5; - $var20 = $par4 + 0.5; - $var21 = ($var18 & 1) * 0.5 * (1 - ((($var18 / 2 | 0) % 2 | 0) * 2 | 0) | 0); - $var18 = $var18 + 1 | 0; - $var22 = ($var18 & 1) * 0.5 * (1 - ((($var18 / 2 | 0) % 2 | 0) * 2 | 0) | 0); - $par2 = $par1Block.$getBlockColor(); - nlea_Tessellator_setColorRGBA($var5, $par2 >> 16 & 255, $par2 >> 8 & 255, $par2 & 255, 255); - var$18 = $var19 + $var21; - var$19 = var$18 - $var22; - var$20 = $par3 + 0.015625; - $var7 = $var20 + $var21; - var$22 = $var7 + $var22; - $var5.$hasTexture = 1; - var$23 = $var8; - $var5.$textureU = var$23; - var$24 = $var10; - $var5.$textureV = var$24; - nlea_Tessellator_addVertex($var5, var$19, var$20, var$22); - $var8 = var$18 + $var22; - $var20 = $var20 - $var21; - $var10 = $var20 + $var22; - $var5.$hasTexture = 1; - var$18 = $var12; - $var5.$textureU = var$18; - $var5.$textureV = var$24; - nlea_Tessellator_addVertex($var5, $var8, var$20, $var10); - $var19 = $var19 - $var21; - $var12 = $var19 + $var22; - var$25 = $var20 - $var22; - $var5.$hasTexture = 1; - $var5.$textureU = var$18; - $var20 = $var14; - $var5.$textureV = $var20; - nlea_Tessellator_addVertex($var5, $var12, var$20, var$25); - $var14 = $var19 - $var22; - var$26 = $var7 - $var22; - $var5.$hasTexture = 1; - $var5.$textureU = var$23; - $var5.$textureV = $var20; - nlea_Tessellator_addVertex($var5, $var14, var$20, var$26); - $par2 = ($par1Block.$getBlockColor() & 16711422) >> 1; - nlea_Tessellator_setColorRGBA($var5, $par2 >> 16 & 255, $par2 >> 8 & 255, $par2 & 255, 255); - $var5.$hasTexture = 1; - $var5.$textureU = var$23; - $var5.$textureV = $var20; - nlea_Tessellator_addVertex($var5, $var14, var$20, var$26); - $var5.$hasTexture = 1; - $var5.$textureU = var$18; - $var5.$textureV = $var20; - nlea_Tessellator_addVertex($var5, $var12, var$20, var$25); - $var5.$hasTexture = 1; - $var5.$textureU = var$18; - $var5.$textureV = var$24; - nlea_Tessellator_addVertex($var5, $var8, var$20, $var10); - $var5.$hasTexture = 1; - $var5.$textureU = var$23; - $var5.$textureV = var$24; - nlea_Tessellator_addVertex($var5, var$19, var$20, var$22); - return 1; -} -function nms_RenderBlocks_renderBlockStemBig($this, $par1BlockStem, $par2, $par3, $par4, $par6, $par8, $par10) { - var $var12, $var13, $var14, $var16, $var18, $var20, var$14, $var22, $var24, $var26, $var28, var$19, var$20, var$21, var$22; - nlea_Tessellator_$callClinit(); - $var12 = nlea_Tessellator_instance; - $var13 = $par1BlockStem.$theIcon0; - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var13 = $this.$overrideBlockTexture; - $var14 = $var13.$getMinU(); - $var16 = $var13.$getMinV(); - $var18 = $var13.$getMaxU(); - $var20 = $var13.$getMaxV(); - var$14 = $par6 + 0.5; - $var22 = var$14 - 0.5; - $var24 = var$14 + 0.5; - $par10 = $par10 + 0.5; - $var26 = $par10 - 0.5; - $var28 = $par10 + 0.5; - if (((($par3 + 1 | 0) / 2 | 0) % 2 | 0) != 1) { - $par6 = $var14; - $var14 = $var18; - $var18 = $par6; - } - if ($par3 >= 2) { - $par4 = $par8 + $par4; - $var12.$hasTexture = 1; - var$19 = $var18; - $var12.$textureU = var$19; - var$20 = $var16; - $var12.$textureV = var$20; - nlea_Tessellator_addVertex($var12, var$14, $par4, $var28); - $par6 = $par8 + 0.0; - $var12.$hasTexture = 1; - $var12.$textureU = var$19; - var$21 = $var20; - $var12.$textureV = var$21; - nlea_Tessellator_addVertex($var12, var$14, $par6, $var28); - $var12.$hasTexture = 1; - var$22 = $var14; - $var12.$textureU = var$22; - $var12.$textureV = var$21; - nlea_Tessellator_addVertex($var12, var$14, $par6, $var26); - $var12.$hasTexture = 1; - $var12.$textureU = var$22; - $var12.$textureV = var$20; - nlea_Tessellator_addVertex($var12, var$14, $par4, $var26); - $var12.$hasTexture = 1; - $var12.$textureU = var$22; - $var12.$textureV = var$20; - nlea_Tessellator_addVertex($var12, var$14, $par4, $var26); - $var12.$hasTexture = 1; - $var12.$textureU = var$22; - $var12.$textureV = var$21; - nlea_Tessellator_addVertex($var12, var$14, $par6, $var26); - $var12.$hasTexture = 1; - $var12.$textureU = var$19; - $var12.$textureV = var$21; - nlea_Tessellator_addVertex($var12, var$14, $par6, $var28); - $var12.$hasTexture = 1; - $var12.$textureU = var$19; - $var12.$textureV = var$20; - nlea_Tessellator_addVertex($var12, var$14, $par4, $var28); - } else { - $par6 = $par8 + $par4; - $var12.$hasTexture = 1; - var$19 = $var18; - $var12.$textureU = var$19; - var$20 = $var16; - $var12.$textureV = var$20; - nlea_Tessellator_addVertex($var12, $var22, $par6, $par10); - $par4 = $par8 + 0.0; - $var12.$hasTexture = 1; - $var12.$textureU = var$19; - var$22 = $var20; - $var12.$textureV = var$22; - nlea_Tessellator_addVertex($var12, $var22, $par4, $par10); - $var12.$hasTexture = 1; - var$21 = $var14; - $var12.$textureU = var$21; - $var12.$textureV = var$22; - nlea_Tessellator_addVertex($var12, $var24, $par4, $par10); - $var12.$hasTexture = 1; - $var12.$textureU = var$21; - $var12.$textureV = var$20; - nlea_Tessellator_addVertex($var12, $var24, $par6, $par10); - $var12.$hasTexture = 1; - $var12.$textureU = var$21; - $var12.$textureV = var$20; - nlea_Tessellator_addVertex($var12, $var24, $par6, $par10); - $var12.$hasTexture = 1; - $var12.$textureU = var$21; - $var12.$textureV = var$22; - nlea_Tessellator_addVertex($var12, $var24, $par4, $par10); - $var12.$hasTexture = 1; - $var12.$textureU = var$19; - $var12.$textureV = var$22; - nlea_Tessellator_addVertex($var12, $var22, $par4, $par10); - $var12.$hasTexture = 1; - $var12.$textureU = var$19; - $var12.$textureV = var$20; - nlea_Tessellator_addVertex($var12, $var22, $par6, $par10); - } -} -function nms_RenderBlocks_renderBlockCropsImpl($this, $par1Block, $par2, $par3, $par5, $par7) { - var $var9, $var10, $var11, $var13, $var15, $var17, var$12, $var19, $var21, var$15, $var23, $var25, var$18, var$19, var$20, var$21, var$22; - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - $var10 = nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(0, $par2)); - if ($this.$overrideBlockTexture === null ? 0 : 1) - $var10 = $this.$overrideBlockTexture; - $var11 = $var10.$getMinU(); - $var13 = $var10.$getMinV(); - $var15 = $var10.$getMaxU(); - $var17 = $var10.$getMaxV(); - var$12 = $par3 + 0.5; - $var19 = var$12 - 0.25; - $var21 = var$12 + 0.25; - var$15 = $par7 + 0.5; - $var23 = var$15 - 0.5; - $var25 = var$15 + 0.5; - var$18 = $par5 + 1.0; - $var9.$hasTexture = 1; - var$19 = $var11; - $var9.$textureU = var$19; - var$20 = $var13; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $var19, var$18, $var23); - $par3 = $par5 + 0.0; - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - var$21 = $var17; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $var19, $par3, $var23); - $var9.$hasTexture = 1; - var$22 = $var15; - $var9.$textureU = var$22; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $var19, $par3, $var25); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $var19, var$18, $var25); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $var19, var$18, $var25); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $var19, $par3, $var25); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $var19, $par3, $var23); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $var19, var$18, $var23); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $var21, var$18, $var25); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $var21, $par3, $var25); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $var21, $par3, $var23); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $var21, var$18, $var23); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $var21, var$18, $var23); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $var21, $par3, $var23); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $var21, $par3, $var25); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $var21, var$18, $var25); - $par5 = var$12 - 0.5; - $par7 = var$12 + 0.5; - $var11 = var$15 - 0.25; - $var21 = var$15 + 0.25; - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $par5, var$18, $var11); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $par5, $par3, $var11); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $par7, $par3, $var11); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $par7, var$18, $var11); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $par7, var$18, $var11); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $par7, $par3, $var11); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $par5, $par3, $var11); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $par5, var$18, $var11); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $par7, var$18, $var21); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $par7, $par3, $var21); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $par5, $par3, $var21); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $par5, var$18, $var21); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$20; - nlea_Tessellator_addVertex($var9, $par5, var$18, $var21); - $var9.$hasTexture = 1; - $var9.$textureU = var$19; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $par5, $par3, $var21); - $var9.$hasTexture = 1; - $var9.$textureU = var$22; - $var9.$textureV = var$21; - nlea_Tessellator_addVertex($var9, $par7, $par3, $var21); - nlea_Tessellator_addVertexWithUV($var9, $par7, var$18, $var21, $var15, $var13); -} -function nms_RenderBlocks_renderBlockFluids($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var60, $var59, $var11, $var12, var$15, var$16, var$17, var$18, $var13, $var22, $var23, $var24, $var26, $var28, $var30, $var34, $var35, $var36, $var50, $var46, $var40, $var36_0, $var44, $var46_0, $var40_0, $var52, $var53, $var51, $var32, var$40, $var45, var$42, $var32_0, $var47, $var43, $var45_0, $var45_1, $var45_2, $var43_0, $var43_1, $var49, $var52_0, $var54, $var55; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = $par1Block.$colorMultiplier($this.$blockAccess, $par2, $par3, $par4); - $var7 = ($var6 >> 16 & 255) / 255.0; - $var8 = ($var6 >> 8 & 255) / 255.0; - $var9 = ($var6 & 255) / 255.0; - $var10 = $par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3 + 1 | 0, $par4, 1); - $var60 = $this.$blockAccess; - $var59 = $par3 - 1 | 0; - $var11 = $par1Block.$shouldSideBeRendered($var60, $par2, $var59, $par4, 0); - $var12 = $rt_createBooleanArray(4).data; - $var60 = $this.$blockAccess; - var$15 = $par4 - 1 | 0; - $var12[0] = $par1Block.$shouldSideBeRendered($var60, $par2, $par3, var$15, 2); - $var60 = $this.$blockAccess; - var$16 = $par4 + 1 | 0; - $var12[1] = $par1Block.$shouldSideBeRendered($var60, $par2, $par3, var$16, 3); - $var60 = $this.$blockAccess; - var$17 = $par2 - 1 | 0; - $var12[2] = $par1Block.$shouldSideBeRendered($var60, var$17, $par3, $par4, 4); - $var60 = $this.$blockAccess; - var$18 = $par2 + 1 | 0; - $var12[3] = $par1Block.$shouldSideBeRendered($var60, var$18, $par3, $par4, 5); - if (!$var10 && !$var11 && !$var12[0] && !$var12[1] && !$var12[2] && !$var12[3]) - return 0; - $var13 = 0; - $var22 = $par1Block.$blockMaterial; - $var23 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var24 = nms_RenderBlocks_getFluidHeight($this, $par2, $par3, $par4, $var22); - $var26 = nms_RenderBlocks_getFluidHeight($this, $par2, $par3, var$16, $var22); - $var28 = nms_RenderBlocks_getFluidHeight($this, var$18, $par3, var$16, $var22); - $var30 = nms_RenderBlocks_getFluidHeight($this, var$18, $par3, $par4, $var22); - if (!(!$this.$renderAllFaces && !$var10)) { - $var13 = 1; - $var34 = nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 1, $var23); - $var35 = nms_BlockFluid_getFlowDirection($this.$blockAccess, $par2, $par3, $par4, $var22); - $var10 = $rt_compare($var35, (-999.0)); - if ($var10 > 0) - $var34 = nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 2, $var23); - $var24 = $var24 - 0.0010000000474974513; - $var26 = $var26 - 0.0010000000474974513; - $var28 = $var28 - 0.0010000000474974513; - $var30 = $var30 - 0.0010000000474974513; - if ($var10 < 0) { - $var36 = $var34.$getInterpolatedU(0.0); - $var50 = $var34.$getInterpolatedV(0.0); - $var46 = $var34.$getInterpolatedV(16.0); - $var40 = $var34.$getInterpolatedU(16.0); - $var36_0 = $var36; - $var44 = $var50; - $var46_0 = $var46; - $var40_0 = $var40; - } else { - $var52 = nms_MathHelper_sin($var35) * 0.25; - $var53 = nms_MathHelper_cos($var35) * 0.25; - $var51 = -$var53; - $var32 = 8.0 + ($var51 - $var52) * 16.0; - $var36_0 = $var34.$getInterpolatedU($var32); - var$40 = 8.0 + ($var51 + $var52) * 16.0; - $var44 = $var34.$getInterpolatedV(var$40); - $var36 = $var34.$getInterpolatedU(var$40); - var$40 = 8.0 + ($var53 + $var52) * 16.0; - $var46_0 = $var34.$getInterpolatedV(var$40); - $var40_0 = $var34.$getInterpolatedU(var$40); - var$40 = 8.0 + ($var53 - $var52) * 16.0; - $var46 = $var34.$getInterpolatedV(var$40); - $var40 = $var34.$getInterpolatedU(var$40); - $var50 = $var34.$getInterpolatedV($var32); - } - nlea_Tessellator_setBrightness($var5, $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4)); - nlea_Tessellator_setColorOpaque_F($var5, 1.0 * $var7, 1.0 * $var8, 1.0 * $var9); - $var32 = $par2 + 0 | 0; - $var45 = $par3; - var$40 = $var45 + $var24; - var$42 = $par4 + 0 | 0; - nlea_Tessellator_addVertexWithUV($var5, $var32, var$40, var$42, $var36_0, $var44); - var$40 = $var45 + $var26; - $var36_0 = var$16; - nlea_Tessellator_addVertexWithUV($var5, $var32, var$40, $var36_0, $var36, $var46_0); - $var32 = var$18; - nlea_Tessellator_addVertexWithUV($var5, $var32, $var45 + $var28, $var36_0, $var40_0, $var46); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var45 + $var30, var$42, $var40, $var50); - } - if (!(!$this.$renderAllFaces && !$var11)) { - nlea_Tessellator_setBrightness($var5, $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var59, $par4)); - nlea_Tessellator_setColorOpaque_F($var5, 0.5, 0.5, 0.5); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, $par2, $par3 + 0.0010000000474974513, $par4, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 0)); - $var13 = 1; - } - $var59 = 0; - $var40_0 = $par3; - $var32_0 = $par3 + 0 | 0; - $var47 = $par2; - $var43 = var$18; - $var45_0 = $par4; - $var45 = $var45_0 + 0.0010000000474974513; - $var45_1 = var$16; - $var45_2 = $var45_1 - 0.0010000000474974513; - $var43_0 = $var47 + 0.0010000000474974513; - $var43_1 = $var43 - 0.0010000000474974513; - while ($var59 < 4) { - $var6 = !$var59 ? var$15 : $par4; - var$18 = $rt_compare($var59, 1); - if (!var$18) - $var6 = $var6 + 1 | 0; - $var11 = $rt_compare($var59, 2); - $var10 = !$var11 ? var$17 : $par2; - if ($var59 == 3) - $var10 = $var10 + 1 | 0; - $var60 = nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, $var59 + 2 | 0, $var23); - if (!(!$this.$renderAllFaces && !$var12[$var59])) { - if (!$var59) { - var$42 = $var24; - $var36_0 = $var30; - $var44 = $var47; - $var36 = $var43; - $var46_0 = $var45; - $var49 = $var45; - } else if (!var$18) { - var$42 = $var28; - $var36_0 = $var26; - $var44 = $var43; - $var36 = $var47; - $var46_0 = $var45_2; - $var49 = $var45_2; - } else if ($var11) { - var$42 = $var30; - $var36_0 = $var28; - $var44 = $var43_1; - $var36 = $var43_1; - $var46_0 = $var45_0; - $var49 = $var45_1; - } else { - var$42 = $var26; - $var36_0 = $var24; - $var44 = $var43_0; - $var36 = $var43_0; - $var46_0 = $var45_1; - $var49 = $var45_0; - } - $var13 = 1; - $var51 = $var60.$getInterpolatedU(0.0); - $var52_0 = $var60.$getInterpolatedU(8.0); - $var53 = $var60.$getInterpolatedV((1.0 - var$42) * 16.0 * 0.5); - $var54 = $var60.$getInterpolatedV((1.0 - $var36_0) * 16.0 * 0.5); - $var55 = $var60.$getInterpolatedV(8.0); - nlea_Tessellator_setBrightness($var5, $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var10, $par3, $var6)); - $var35 = 1.0 * ($var11 >= 0 ? 0.6000000238418579 : 0.800000011920929); - nlea_Tessellator_setColorOpaque_F($var5, $var35 * $var7, $var35 * $var8, $var35 * $var9); - $var32 = $var40_0 + var$42; - var$40 = $var51; - nlea_Tessellator_addVertexWithUV($var5, $var44, $var32, $var46_0, var$40, $var53); - $var32 = $var40_0 + $var36_0; - var$42 = $var52_0; - nlea_Tessellator_addVertexWithUV($var5, $var36, $var32, $var49, var$42, $var54); - $var32 = $var55; - nlea_Tessellator_addVertexWithUV($var5, $var36, $var32_0, $var49, var$42, $var32); - nlea_Tessellator_addVertexWithUV($var5, $var44, $var32_0, $var46_0, var$40, $var32); - } - $var59 = $var59 + 1 | 0; - } - $this.$renderMinY = 0.0; - $this.$renderMaxY = 1.0; - return $var13; -} -function nms_RenderBlocks_getFluidHeight($this, $par1, $par2, $par3, $par4Material) { - var $var5, $var6, $var7, var$8, $var8, $var10, $var11, $var12; - $var5 = 0; - $var6 = 0.0; - $var7 = 0; - var$8 = $par2 + 1 | 0; - while (true) { - if ($var7 >= 4) - return 1.0 - $var6 / $var5; - $var8 = $par1 - ($var7 & 1) | 0; - $var10 = $par3 - ($var7 >> 1 & 1) | 0; - if ($this.$blockAccess.$getBlockMaterial($var8, var$8, $var10) === $par4Material) - break; - $var11 = $this.$blockAccess.$getBlockMaterial($var8, $par2, $var10); - if ($var11 === $par4Material) { - $var12 = $this.$blockAccess.$getBlockMetadata($var8, $par2, $var10); - $var8 = $rt_compare($var12, 8); - if (!($var8 < 0 && $var12)) { - $var6 = $var6 + (($var8 >= 0 ? 0 : $var12) + 1 | 0) / 9.0 * 10.0; - $var5 = $var5 + 10 | 0; - } - if ($var8 >= 0) - $var12 = 0; - $var6 = $var6 + ($var12 + 1 | 0) / 9.0; - $var5 = $var5 + 1 | 0; - } else if (!$var11.$isSolid()) { - $var6 = $var6 + 1.0; - $var5 = $var5 + 1 | 0; - } - $var7 = $var7 + 1 | 0; - } - return 1.0; -} -function nms_RenderBlocks_renderBlockSandFalling($this, $par1Block, $par2World, $par3, $par4, $par5, $par6) { - var $var11; - nlea_Tessellator_$callClinit(); - $var11 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var11, 98); - $par3 = $par1Block.$getMixedBrightnessForBlock($par2World, $par3, $par4, $par5); - $var11.$hasBrightness = 1; - $var11.$brightness = $par3; - nlea_Tessellator_setColorRGBA($var11, 127, 127, 127, 255); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, (-0.5), (-0.5), (-0.5), nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(0, $par6))); - nlea_Tessellator_setColorRGBA($var11, 255, 255, 255, 255); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, (-0.5), (-0.5), (-0.5), nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(1, $par6))); - nlea_Tessellator_setColorRGBA($var11, 204, 204, 204, 255); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, (-0.5), (-0.5), (-0.5), nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(2, $par6))); - nlea_Tessellator_setColorRGBA($var11, 204, 204, 204, 255); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, (-0.5), (-0.5), (-0.5), nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(3, $par6))); - nlea_Tessellator_setColorRGBA($var11, 153, 153, 153, 255); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, (-0.5), (-0.5), (-0.5), nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(4, $par6))); - nlea_Tessellator_setColorRGBA($var11, 153, 153, 153, 255); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, (-0.5), (-0.5), (-0.5), nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(5, $par6))); - nlea_Tessellator_draw($var11); -} -function nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var9, $var10, $var11, var$9, var$10; - $var5 = $par1Block.$colorMultiplier($this.$blockAccess, $par2, $par3, $par4); - $var9 = ($var5 >> 16 & 255) / 255.0; - $var10 = ($var5 >> 8 & 255) / 255.0; - $var11 = ($var5 & 255) / 255.0; - if (nms_EntityRenderer_anaglyphEnable) { - var$9 = $var9 * 30.0; - $var9 = (var$9 + $var10 * 59.0 + $var11 * 11.0) / 100.0; - $var10 = (var$9 + $var10 * 70.0) / 100.0; - $var11 = (var$9 + $var11 * 70.0) / 100.0; - } - var$10 = nmc_Minecraft_theMinecraft !== null && nmc_Minecraft_theMinecraft.$gameSettings.$ambientOcclusion ? 1 : 0; - return var$10 && !nms_Block_lightValue.data[$par1Block.$blockID] ? (!$this.$partialRenderBounds ? nms_RenderBlocks_renderStandardBlockWithAmbientOcclusion($this, $par1Block, $par2, $par3, $par4, $var9, $var10, $var11) : nms_RenderBlocks_func_102027_b($this, $par1Block, $par2, $par3, $par4, $var9, $var10, $var11)) : nms_RenderBlocks_renderStandardBlockWithColorMultiplier($this, $par1Block, $par2, $par3, $par4, $var9, $var10, $var11); -} -function nms_RenderBlocks_renderBlockLog($this, $par1Block, $par2, $par3, $par4) { - var $var6, $var7; - $var6 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4) & 12; - if ($var6 == 4) { - $this.$uvRotateEast = 1; - $this.$uvRotateWest = 1; - $this.$uvRotateTop = 1; - $this.$uvRotateBottom = 1; - } else if ($var6 == 8) { - $this.$uvRotateSouth = 1; - $this.$uvRotateNorth = 1; - } - $var7 = nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - $this.$uvRotateSouth = 0; - $this.$uvRotateEast = 0; - $this.$uvRotateWest = 0; - $this.$uvRotateNorth = 0; - $this.$uvRotateTop = 0; - $this.$uvRotateBottom = 0; - return $var7; -} -function nms_RenderBlocks_renderBlockQuartz($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - if ($var5 == 3) { - $this.$uvRotateEast = 1; - $this.$uvRotateWest = 1; - $this.$uvRotateTop = 1; - $this.$uvRotateBottom = 1; - } else if ($var5 == 4) { - $this.$uvRotateSouth = 1; - $this.$uvRotateNorth = 1; - } - $var6 = nms_RenderBlocks_renderStandardBlock($this, $par1Block, $par2, $par3, $par4); - $this.$uvRotateSouth = 0; - $this.$uvRotateEast = 0; - $this.$uvRotateWest = 0; - $this.$uvRotateNorth = 0; - $this.$uvRotateTop = 0; - $this.$uvRotateBottom = 0; - return $var6; -} -function nms_RenderBlocks_renderStandardBlockWithAmbientOcclusion($this, $par1Block, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var13, $var14, $var22, $var19, $var16, $var17, $var18, var$16, $var19_0, $var16_0, $var17_0, $var18_0, $var21, var$22, var$23, var$24, var$25, var$26, var$27, var$28; - $this.$enableAO = 1; - $var8 = 0; - $var13 = 1; - $var14 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - nlea_Tessellator_$callClinit(); - nlea_Tessellator_setBrightness(nlea_Tessellator_instance, 983055); - if (jl_String_equals(nms_RenderBlocks_getBlockIcon0($this, $par1Block).$getIconName(), $rt_s(619))) - $var13 = 0; - else if (nms_RenderBlocks_hasOverrideBlockTexture($this)) - $var13 = 0; - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3 - 1 | 0, $par4, 0))) { - if ($this.$renderMinY <= 0.0) - $par3 = $par3 + (-1) | 0; - $var22 = $this.$blockAccess; - $var19 = $par2 - 1 | 0; - $this.$aoBrightnessXYNN = $par1Block.$getMixedBrightnessForBlock($var22, $var19, $par3, $par4); - $var22 = $this.$blockAccess; - $var16 = $par4 - 1 | 0; - $this.$aoBrightnessYZNN = $par1Block.$getMixedBrightnessForBlock($var22, $par2, $par3, $var16); - $var22 = $this.$blockAccess; - $var17 = $par4 + 1 | 0; - $this.$aoBrightnessYZNP = $par1Block.$getMixedBrightnessForBlock($var22, $par2, $par3, $var17); - $var22 = $this.$blockAccess; - $var18 = $par2 + 1 | 0; - $this.$aoBrightnessXYPN = $par1Block.$getMixedBrightnessForBlock($var22, $var18, $par3, $par4); - $this.$aoLightValueScratchXYNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19, $par3, $par4); - $this.$aoLightValueScratchYZNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $var16); - $this.$aoLightValueScratchYZNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $var17); - $this.$aoLightValueScratchXYPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var18, $par3, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var22 = $this.$blockAccess; - $var19_0 = $par3 - 1 | 0; - $var16_0 = var$16[$var22.$getBlockId($var18, $var19_0, $par4)]; - $var17_0 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $var19_0, $par4)]; - $var18_0 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19_0, $var17)]; - $var19_0 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19_0, $var16)]; - if (!$var19_0 && !$var17_0) { - $this.$aoLightValueScratchXYZNNN = $this.$aoLightValueScratchXYNN; - $this.$aoBrightnessXYZNNN = $this.$aoBrightnessXYNN; - } else { - $this.$aoLightValueScratchXYZNNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19, $par3, $var16); - $this.$aoBrightnessXYZNNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19, $par3, $var16); - } - if (!$var18_0 && !$var17_0) { - $this.$aoLightValueScratchXYZNNP = $this.$aoLightValueScratchXYNN; - $this.$aoBrightnessXYZNNP = $this.$aoBrightnessXYNN; - } else { - $this.$aoLightValueScratchXYZNNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19, $par3, $var17); - $this.$aoBrightnessXYZNNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19, $par3, $var17); - } - if (!$var19_0 && !$var16_0) { - $this.$aoLightValueScratchXYZPNN = $this.$aoLightValueScratchXYPN; - $this.$aoBrightnessXYZPNN = $this.$aoBrightnessXYPN; - } else { - $this.$aoLightValueScratchXYZPNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var18, $par3, $var16); - $this.$aoBrightnessXYZPNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var18, $par3, $var16); - } - if (!$var18_0 && !$var16_0) { - $this.$aoLightValueScratchXYZPNP = $this.$aoLightValueScratchXYPN; - $this.$aoBrightnessXYZPNP = $this.$aoBrightnessXYPN; - } else { - $this.$aoLightValueScratchXYZPNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var18, $par3, $var17); - $this.$aoBrightnessXYZPNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var18, $par3, $var17); - } - if ($this.$renderMinY <= 0.0) - $par3 = $par3 + 1 | 0; - $var8 = $this.$renderMinY > 0.0 && $this.$blockAccess.$isBlockOpaqueCube($par2, $par3 - 1 | 0, $par4) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 - 1 | 0, $par4); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3 - 1 | 0, $par4); - var$22 = ($this.$aoLightValueScratchXYZNNP + $this.$aoLightValueScratchXYNN + $this.$aoLightValueScratchYZNP + $var21) / 4.0; - var$23 = ($this.$aoLightValueScratchYZNP + $var21 + $this.$aoLightValueScratchXYZPNP + $this.$aoLightValueScratchXYPN) / 4.0; - var$24 = ($var21 + $this.$aoLightValueScratchYZNN + $this.$aoLightValueScratchXYPN + $this.$aoLightValueScratchXYZPNN) / 4.0; - $var21 = ($this.$aoLightValueScratchXYNN + $this.$aoLightValueScratchXYZNNN + $var21 + $this.$aoLightValueScratchYZNN) / 4.0; - $this.$brightnessTopLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNNP, $this.$aoBrightnessXYNN, $this.$aoBrightnessYZNP, $var8); - $this.$brightnessTopRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZNP, $this.$aoBrightnessXYZPNP, $this.$aoBrightnessXYPN, $var8); - $this.$brightnessBottomRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZNN, $this.$aoBrightnessXYPN, $this.$aoBrightnessXYZPNN, $var8); - $this.$brightnessBottomLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYNN, $this.$aoBrightnessXYZNNN, $this.$aoBrightnessYZNN, $var8); - if (!$var13) { - $this.$colorRedTopRight = 0.5; - $this.$colorRedBottomRight = 0.5; - $this.$colorRedBottomLeft = 0.5; - $this.$colorRedTopLeft = 0.5; - $this.$colorGreenTopRight = 0.5; - $this.$colorGreenBottomRight = 0.5; - $this.$colorGreenBottomLeft = 0.5; - $this.$colorGreenTopLeft = 0.5; - $this.$colorBlueTopRight = 0.5; - $this.$colorBlueBottomRight = 0.5; - $this.$colorBlueBottomLeft = 0.5; - $this.$colorBlueTopLeft = 0.5; - } else { - var$25 = $par5 * 0.5; - $this.$colorRedTopRight = var$25; - $this.$colorRedBottomRight = var$25; - $this.$colorRedBottomLeft = var$25; - $this.$colorRedTopLeft = var$25; - var$25 = $par6 * 0.5; - $this.$colorGreenTopRight = var$25; - $this.$colorGreenBottomRight = var$25; - $this.$colorGreenBottomLeft = var$25; - $this.$colorGreenTopLeft = var$25; - var$25 = $par7 * 0.5; - $this.$colorBlueTopRight = var$25; - $this.$colorBlueBottomRight = var$25; - $this.$colorBlueBottomLeft = var$25; - $this.$colorBlueTopLeft = var$25; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * var$22; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * var$22; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * var$22; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $var21; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $var21; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $var21; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * var$24; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * var$24; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * var$24; - $this.$colorRedTopRight = $this.$colorRedTopRight * var$23; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * var$23; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * var$23; - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 0)); - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3 + 1 | 0, $par4, 1))) { - if ($this.$renderMaxY >= 1.0) - $par3 = $par3 + 1 | 0; - $var22 = $this.$blockAccess; - $var8 = $par2 - 1 | 0; - $this.$aoBrightnessXYNP = $par1Block.$getMixedBrightnessForBlock($var22, $var8, $par3, $par4); - $var22 = $this.$blockAccess; - $var17_0 = $par2 + 1 | 0; - $this.$aoBrightnessXYPP = $par1Block.$getMixedBrightnessForBlock($var22, $var17_0, $par3, $par4); - $var22 = $this.$blockAccess; - $var18_0 = $par4 - 1 | 0; - $this.$aoBrightnessYZPN = $par1Block.$getMixedBrightnessForBlock($var22, $par2, $par3, $var18_0); - $var22 = $this.$blockAccess; - $var19_0 = $par4 + 1 | 0; - $this.$aoBrightnessYZPP = $par1Block.$getMixedBrightnessForBlock($var22, $par2, $par3, $var19_0); - $this.$aoLightValueScratchXYNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $par3, $par4); - $this.$aoLightValueScratchXYPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $par3, $par4); - $this.$aoLightValueScratchYZPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $var18_0); - $this.$aoLightValueScratchYZPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $var19_0); - var$16 = nms_Block_canBlockGrass.data; - $var22 = $this.$blockAccess; - $var19 = $par3 + 1 | 0; - $var16 = var$16[$var22.$getBlockId($var17_0, $var19, $par4)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var8, $var19, $par4)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19, $var19_0)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19, $var18_0)]; - if (!$var19 && !$var17) { - $this.$aoLightValueScratchXYZNPN = $this.$aoLightValueScratchXYNP; - $this.$aoBrightnessXYZNPN = $this.$aoBrightnessXYNP; - } else { - $this.$aoLightValueScratchXYZNPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $par3, $var18_0); - $this.$aoBrightnessXYZNPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $par3, $var18_0); - } - if (!$var19 && !$var16) { - $this.$aoLightValueScratchXYZPPN = $this.$aoLightValueScratchXYPP; - $this.$aoBrightnessXYZPPN = $this.$aoBrightnessXYPP; - } else { - $this.$aoLightValueScratchXYZPPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $par3, $var18_0); - $this.$aoBrightnessXYZPPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $par3, $var18_0); - } - if (!$var18 && !$var17) { - $this.$aoLightValueScratchXYZNPP = $this.$aoLightValueScratchXYNP; - $this.$aoBrightnessXYZNPP = $this.$aoBrightnessXYNP; - } else { - $this.$aoLightValueScratchXYZNPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $par3, $var19_0); - $this.$aoBrightnessXYZNPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $par3, $var19_0); - } - if (!$var18 && !$var16) { - $this.$aoLightValueScratchXYZPPP = $this.$aoLightValueScratchXYPP; - $this.$aoBrightnessXYZPPP = $this.$aoBrightnessXYPP; - } else { - $this.$aoLightValueScratchXYZPPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $par3, $var19_0); - $this.$aoBrightnessXYZPPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $par3, $var19_0); - } - if ($this.$renderMaxY >= 1.0) - $par3 = $par3 + (-1) | 0; - $var8 = $this.$renderMaxY < 1.0 && $this.$blockAccess.$isBlockOpaqueCube($par2, $par3 + 1 | 0, $par4) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 + 1 | 0, $par4); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3 + 1 | 0, $par4); - var$22 = ($this.$aoLightValueScratchXYZNPP + $this.$aoLightValueScratchXYNP + $this.$aoLightValueScratchYZPP + $var21) / 4.0; - var$23 = ($this.$aoLightValueScratchYZPP + $var21 + $this.$aoLightValueScratchXYZPPP + $this.$aoLightValueScratchXYPP) / 4.0; - var$24 = ($var21 + $this.$aoLightValueScratchYZPN + $this.$aoLightValueScratchXYPP + $this.$aoLightValueScratchXYZPPN) / 4.0; - $var21 = ($this.$aoLightValueScratchXYNP + $this.$aoLightValueScratchXYZNPN + $var21 + $this.$aoLightValueScratchYZPN) / 4.0; - $this.$brightnessTopRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNPP, $this.$aoBrightnessXYNP, $this.$aoBrightnessYZPP, $var8); - $this.$brightnessTopLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZPP, $this.$aoBrightnessXYZPPP, $this.$aoBrightnessXYPP, $var8); - $this.$brightnessBottomLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZPN, $this.$aoBrightnessXYPP, $this.$aoBrightnessXYZPPN, $var8); - $this.$brightnessBottomRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYNP, $this.$aoBrightnessXYZNPN, $this.$aoBrightnessYZPN, $var8); - $this.$colorRedTopRight = $par5; - $this.$colorRedBottomRight = $par5; - $this.$colorRedBottomLeft = $par5; - $this.$colorRedTopLeft = $par5; - $this.$colorGreenTopRight = $par6; - $this.$colorGreenBottomRight = $par6; - $this.$colorGreenBottomLeft = $par6; - $this.$colorGreenTopLeft = $par6; - $this.$colorBlueTopRight = $par7; - $this.$colorBlueBottomRight = $par7; - $this.$colorBlueBottomLeft = $par7; - $this.$colorBlueTopLeft = $par7; - $this.$colorRedTopLeft = $this.$colorRedTopLeft * var$23; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * var$23; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * var$23; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * var$24; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * var$24; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * var$24; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $var21; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $var21; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $var21; - $this.$colorRedTopRight = $this.$colorRedTopRight * var$22; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * var$22; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * var$22; - nms_RenderBlocks_renderFaceYPos($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 1)); - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 - 1 | 0, 2))) { - if ($this.$renderMinZ <= 0.0) - $par4 = $par4 + (-1) | 0; - $var22 = $this.$blockAccess; - $var8 = $par2 - 1 | 0; - $this.$aoLightValueScratchXZNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $var8, $par3, $par4); - $var22 = $this.$blockAccess; - $var17_0 = $par3 - 1 | 0; - $this.$aoLightValueScratchYZNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $var17_0, $par4); - $var22 = $this.$blockAccess; - $var18_0 = $par3 + 1 | 0; - $this.$aoLightValueScratchYZPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $var18_0, $par4); - $var22 = $this.$blockAccess; - $var19_0 = $par2 + 1 | 0; - $this.$aoLightValueScratchXZPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $var19_0, $par3, $par4); - $this.$aoBrightnessXZNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $par3, $par4); - $this.$aoBrightnessYZNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var17_0, $par4); - $this.$aoBrightnessYZPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var18_0, $par4); - $this.$aoBrightnessXZPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19_0, $par3, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var22 = $this.$blockAccess; - $var19 = $par4 - 1 | 0; - $var16 = var$16[$var22.$getBlockId($var19_0, $par3, $var19)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var8, $par3, $var19)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var18_0, $var19)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var17_0, $var19)]; - if (!$var17 && !$var19) { - $this.$aoLightValueScratchXYZNNN = $this.$aoLightValueScratchXZNN; - $this.$aoBrightnessXYZNNN = $this.$aoBrightnessXZNN; - } else { - $this.$aoLightValueScratchXYZNNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $var17_0, $par4); - $this.$aoBrightnessXYZNNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $var17_0, $par4); - } - if (!$var17 && !$var18) { - $this.$aoLightValueScratchXYZNPN = $this.$aoLightValueScratchXZNN; - $this.$aoBrightnessXYZNPN = $this.$aoBrightnessXZNN; - } else { - $this.$aoLightValueScratchXYZNPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $var18_0, $par4); - $this.$aoBrightnessXYZNPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $var18_0, $par4); - } - if (!$var16 && !$var19) { - $this.$aoLightValueScratchXYZPNN = $this.$aoLightValueScratchXZPN; - $this.$aoBrightnessXYZPNN = $this.$aoBrightnessXZPN; - } else { - $this.$aoLightValueScratchXYZPNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19_0, $var17_0, $par4); - $this.$aoBrightnessXYZPNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19_0, $var17_0, $par4); - } - if (!$var16 && !$var18) { - $this.$aoLightValueScratchXYZPPN = $this.$aoLightValueScratchXZPN; - $this.$aoBrightnessXYZPPN = $this.$aoBrightnessXZPN; - } else { - $this.$aoLightValueScratchXYZPPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19_0, $var18_0, $par4); - $this.$aoBrightnessXYZPPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19_0, $var18_0, $par4); - } - if ($this.$renderMinZ <= 0.0) - $par4 = $par4 + 1 | 0; - $var8 = $this.$renderMinZ > 0.0 && $this.$blockAccess.$isBlockOpaqueCube($par2, $par3, $par4 - 1 | 0) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 - 1 | 0); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $par4 - 1 | 0); - var$22 = ($this.$aoLightValueScratchXZNN + $this.$aoLightValueScratchXYZNPN + $var21 + $this.$aoLightValueScratchYZPN) / 4.0; - var$23 = ($var21 + $this.$aoLightValueScratchYZPN + $this.$aoLightValueScratchXZPN + $this.$aoLightValueScratchXYZPPN) / 4.0; - var$24 = ($this.$aoLightValueScratchYZNN + $var21 + $this.$aoLightValueScratchXYZPNN + $this.$aoLightValueScratchXZPN) / 4.0; - $var21 = ($this.$aoLightValueScratchXYZNNN + $this.$aoLightValueScratchXZNN + $this.$aoLightValueScratchYZNN + $var21) / 4.0; - $this.$brightnessTopLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZNN, $this.$aoBrightnessXYZNPN, $this.$aoBrightnessYZPN, $var8); - $this.$brightnessBottomLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZPN, $this.$aoBrightnessXZPN, $this.$aoBrightnessXYZPPN, $var8); - $this.$brightnessBottomRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZNN, $this.$aoBrightnessXYZPNN, $this.$aoBrightnessXZPN, $var8); - $this.$brightnessTopRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNNN, $this.$aoBrightnessXZNN, $this.$aoBrightnessYZNN, $var8); - if (!$var13) { - $this.$colorRedTopRight = 0.800000011920929; - $this.$colorRedBottomRight = 0.800000011920929; - $this.$colorRedBottomLeft = 0.800000011920929; - $this.$colorRedTopLeft = 0.800000011920929; - $this.$colorGreenTopRight = 0.800000011920929; - $this.$colorGreenBottomRight = 0.800000011920929; - $this.$colorGreenBottomLeft = 0.800000011920929; - $this.$colorGreenTopLeft = 0.800000011920929; - $this.$colorBlueTopRight = 0.800000011920929; - $this.$colorBlueBottomRight = 0.800000011920929; - $this.$colorBlueBottomLeft = 0.800000011920929; - $this.$colorBlueTopLeft = 0.800000011920929; - } else { - var$25 = $par5 * 0.800000011920929; - $this.$colorRedTopRight = var$25; - $this.$colorRedBottomRight = var$25; - $this.$colorRedBottomLeft = var$25; - $this.$colorRedTopLeft = var$25; - var$25 = $par6 * 0.800000011920929; - $this.$colorGreenTopRight = var$25; - $this.$colorGreenBottomRight = var$25; - $this.$colorGreenBottomLeft = var$25; - $this.$colorGreenTopLeft = var$25; - var$25 = $par7 * 0.800000011920929; - $this.$colorBlueTopRight = var$25; - $this.$colorBlueBottomRight = var$25; - $this.$colorBlueBottomLeft = var$25; - $this.$colorBlueTopLeft = var$25; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * var$22; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * var$22; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * var$22; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * var$23; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * var$23; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * var$23; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * var$24; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * var$24; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * var$24; - $this.$colorRedTopRight = $this.$colorRedTopRight * $var21; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $var21; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $var21; - $var22 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 2); - var$26 = $par2; - var$27 = $par3; - var$28 = $par4; - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, var$26, var$27, var$28, $var22); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var22.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $par5; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $par5; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $par5; - $this.$colorRedTopRight = $this.$colorRedTopRight * $par5; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $par6; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $par6; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $par6; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $par6; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $par7; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $par7; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $par7; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $par7; - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, var$26, var$27, var$28, nms_BlockGrass_getIconSideOverlay()); - } - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 + 1 | 0, 3))) { - if ($this.$renderMaxZ >= 1.0) - $par4 = $par4 + 1 | 0; - $var22 = $this.$blockAccess; - $var8 = $par2 - 1 | 0; - $this.$aoLightValueScratchXZNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $var8, $par3, $par4); - $var22 = $this.$blockAccess; - $var17_0 = $par2 + 1 | 0; - $this.$aoLightValueScratchXZPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $var17_0, $par3, $par4); - $var22 = $this.$blockAccess; - $var18_0 = $par3 - 1 | 0; - $this.$aoLightValueScratchYZNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $var18_0, $par4); - $var22 = $this.$blockAccess; - $var19_0 = $par3 + 1 | 0; - $this.$aoLightValueScratchYZPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $var19_0, $par4); - $this.$aoBrightnessXZNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $par3, $par4); - $this.$aoBrightnessXZPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $par3, $par4); - $this.$aoBrightnessYZNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var18_0, $par4); - $this.$aoBrightnessYZPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var22 = $this.$blockAccess; - $var19 = $par4 + 1 | 0; - $var16 = var$16[$var22.$getBlockId($var17_0, $par3, $var19)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var8, $par3, $var19)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19_0, $var19)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var18_0, $var19)]; - if (!$var17 && !$var19) { - $this.$aoLightValueScratchXYZNNP = $this.$aoLightValueScratchXZNP; - $this.$aoBrightnessXYZNNP = $this.$aoBrightnessXZNP; - } else { - $this.$aoLightValueScratchXYZNNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $var18_0, $par4); - $this.$aoBrightnessXYZNNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $var18_0, $par4); - } - if (!$var17 && !$var18) { - $this.$aoLightValueScratchXYZNPP = $this.$aoLightValueScratchXZNP; - $this.$aoBrightnessXYZNPP = $this.$aoBrightnessXZNP; - } else { - $this.$aoLightValueScratchXYZNPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $var19_0, $par4); - $this.$aoBrightnessXYZNPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $var19_0, $par4); - } - if (!$var16 && !$var19) { - $this.$aoLightValueScratchXYZPNP = $this.$aoLightValueScratchXZPP; - $this.$aoBrightnessXYZPNP = $this.$aoBrightnessXZPP; - } else { - $this.$aoLightValueScratchXYZPNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $var18_0, $par4); - $this.$aoBrightnessXYZPNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $var18_0, $par4); - } - if (!$var16 && !$var18) { - $this.$aoLightValueScratchXYZPPP = $this.$aoLightValueScratchXZPP; - $this.$aoBrightnessXYZPPP = $this.$aoBrightnessXZPP; - } else { - $this.$aoLightValueScratchXYZPPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $var19_0, $par4); - $this.$aoBrightnessXYZPPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $var19_0, $par4); - } - if ($this.$renderMaxZ >= 1.0) - $par4 = $par4 + (-1) | 0; - $var8 = $this.$renderMaxZ < 1.0 && $this.$blockAccess.$isBlockOpaqueCube($par2, $par3, $par4 + 1 | 0) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 + 1 | 0); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $par4 + 1 | 0); - var$22 = ($this.$aoLightValueScratchXZNP + $this.$aoLightValueScratchXYZNPP + $var21 + $this.$aoLightValueScratchYZPP) / 4.0; - var$23 = ($var21 + $this.$aoLightValueScratchYZPP + $this.$aoLightValueScratchXZPP + $this.$aoLightValueScratchXYZPPP) / 4.0; - var$24 = ($this.$aoLightValueScratchYZNP + $var21 + $this.$aoLightValueScratchXYZPNP + $this.$aoLightValueScratchXZPP) / 4.0; - $var21 = ($this.$aoLightValueScratchXYZNNP + $this.$aoLightValueScratchXZNP + $this.$aoLightValueScratchYZNP + $var21) / 4.0; - $this.$brightnessTopLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZNP, $this.$aoBrightnessXYZNPP, $this.$aoBrightnessYZPP, $var8); - $this.$brightnessTopRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZPP, $this.$aoBrightnessXZPP, $this.$aoBrightnessXYZPPP, $var8); - $this.$brightnessBottomRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZNP, $this.$aoBrightnessXYZPNP, $this.$aoBrightnessXZPP, $var8); - $this.$brightnessBottomLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNNP, $this.$aoBrightnessXZNP, $this.$aoBrightnessYZNP, $var8); - if (!$var13) { - $this.$colorRedTopRight = 0.800000011920929; - $this.$colorRedBottomRight = 0.800000011920929; - $this.$colorRedBottomLeft = 0.800000011920929; - $this.$colorRedTopLeft = 0.800000011920929; - $this.$colorGreenTopRight = 0.800000011920929; - $this.$colorGreenBottomRight = 0.800000011920929; - $this.$colorGreenBottomLeft = 0.800000011920929; - $this.$colorGreenTopLeft = 0.800000011920929; - $this.$colorBlueTopRight = 0.800000011920929; - $this.$colorBlueBottomRight = 0.800000011920929; - $this.$colorBlueBottomLeft = 0.800000011920929; - $this.$colorBlueTopLeft = 0.800000011920929; - } else { - var$25 = $par5 * 0.800000011920929; - $this.$colorRedTopRight = var$25; - $this.$colorRedBottomRight = var$25; - $this.$colorRedBottomLeft = var$25; - $this.$colorRedTopLeft = var$25; - var$25 = $par6 * 0.800000011920929; - $this.$colorGreenTopRight = var$25; - $this.$colorGreenBottomRight = var$25; - $this.$colorGreenBottomLeft = var$25; - $this.$colorGreenTopLeft = var$25; - var$25 = $par7 * 0.800000011920929; - $this.$colorBlueTopRight = var$25; - $this.$colorBlueBottomRight = var$25; - $this.$colorBlueBottomLeft = var$25; - $this.$colorBlueTopLeft = var$25; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * var$22; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * var$22; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * var$22; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $var21; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $var21; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $var21; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * var$24; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * var$24; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * var$24; - $this.$colorRedTopRight = $this.$colorRedTopRight * var$23; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * var$23; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * var$23; - $var22 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 3); - var$26 = $par2; - var$27 = $par3; - var$28 = $par4; - nms_RenderBlocks_renderFaceZPos($this, $par1Block, var$26, var$27, var$28, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 3)); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var22.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $par5; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $par5; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $par5; - $this.$colorRedTopRight = $this.$colorRedTopRight * $par5; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $par6; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $par6; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $par6; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $par6; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $par7; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $par7; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $par7; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $par7; - nms_RenderBlocks_renderFaceZPos($this, $par1Block, var$26, var$27, var$28, nms_BlockGrass_getIconSideOverlay()); - } - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 - 1 | 0, $par3, $par4, 4))) { - if ($this.$renderMinX <= 0.0) - $par2 = $par2 + (-1) | 0; - $var22 = $this.$blockAccess; - $var8 = $par3 - 1 | 0; - $this.$aoLightValueScratchXYNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $var8, $par4); - $var22 = $this.$blockAccess; - $var17_0 = $par4 - 1 | 0; - $this.$aoLightValueScratchXZNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $par3, $var17_0); - $var22 = $this.$blockAccess; - $var18_0 = $par4 + 1 | 0; - $this.$aoLightValueScratchXZNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $par3, $var18_0); - $var22 = $this.$blockAccess; - $var19_0 = $par3 + 1 | 0; - $this.$aoLightValueScratchXYNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $var19_0, $par4); - $this.$aoBrightnessXYNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $par4); - $this.$aoBrightnessXZNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $var17_0); - $this.$aoBrightnessXZNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $var18_0); - $this.$aoBrightnessXYNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var22 = $this.$blockAccess; - $var19 = $par2 - 1 | 0; - $var16 = var$16[$var22.$getBlockId($var19, $var19_0, $par4)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $var8, $par4)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $par3, $var17_0)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $par3, $var18_0)]; - if (!$var18 && !$var17) { - $this.$aoLightValueScratchXYZNNN = $this.$aoLightValueScratchXZNN; - $this.$aoBrightnessXYZNNN = $this.$aoBrightnessXZNN; - } else { - $this.$aoLightValueScratchXYZNNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var8, $var17_0); - $this.$aoBrightnessXYZNNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $var17_0); - } - if (!$var19 && !$var17) { - $this.$aoLightValueScratchXYZNNP = $this.$aoLightValueScratchXZNP; - $this.$aoBrightnessXYZNNP = $this.$aoBrightnessXZNP; - } else { - $this.$aoLightValueScratchXYZNNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var8, $var18_0); - $this.$aoBrightnessXYZNNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $var18_0); - } - if (!$var18 && !$var16) { - $this.$aoLightValueScratchXYZNPN = $this.$aoLightValueScratchXZNN; - $this.$aoBrightnessXYZNPN = $this.$aoBrightnessXZNN; - } else { - $this.$aoLightValueScratchXYZNPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var19_0, $var17_0); - $this.$aoBrightnessXYZNPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $var17_0); - } - if (!$var19 && !$var16) { - $this.$aoLightValueScratchXYZNPP = $this.$aoLightValueScratchXZNP; - $this.$aoBrightnessXYZNPP = $this.$aoBrightnessXZNP; - } else { - $this.$aoLightValueScratchXYZNPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var19_0, $var18_0); - $this.$aoBrightnessXYZNPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $var18_0); - } - if ($this.$renderMinX <= 0.0) - $par2 = $par2 + 1 | 0; - $var8 = $this.$renderMinX > 0.0 && $this.$blockAccess.$isBlockOpaqueCube($par2 - 1 | 0, $par3, $par4) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 - 1 | 0, $par3, $par4); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2 - 1 | 0, $par3, $par4); - var$22 = ($this.$aoLightValueScratchXYNN + $this.$aoLightValueScratchXYZNNP + $var21 + $this.$aoLightValueScratchXZNP) / 4.0; - var$23 = ($var21 + $this.$aoLightValueScratchXZNP + $this.$aoLightValueScratchXYNP + $this.$aoLightValueScratchXYZNPP) / 4.0; - var$24 = ($this.$aoLightValueScratchXZNN + $var21 + $this.$aoLightValueScratchXYZNPN + $this.$aoLightValueScratchXYNP) / 4.0; - $var21 = ($this.$aoLightValueScratchXYZNNN + $this.$aoLightValueScratchXYNN + $this.$aoLightValueScratchXZNN + $var21) / 4.0; - $this.$brightnessTopRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYNN, $this.$aoBrightnessXYZNNP, $this.$aoBrightnessXZNP, $var8); - $this.$brightnessTopLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZNP, $this.$aoBrightnessXYNP, $this.$aoBrightnessXYZNPP, $var8); - $this.$brightnessBottomLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZNN, $this.$aoBrightnessXYZNPN, $this.$aoBrightnessXYNP, $var8); - $this.$brightnessBottomRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNNN, $this.$aoBrightnessXYNN, $this.$aoBrightnessXZNN, $var8); - if (!$var13) { - $this.$colorRedTopRight = 0.6000000238418579; - $this.$colorRedBottomRight = 0.6000000238418579; - $this.$colorRedBottomLeft = 0.6000000238418579; - $this.$colorRedTopLeft = 0.6000000238418579; - $this.$colorGreenTopRight = 0.6000000238418579; - $this.$colorGreenBottomRight = 0.6000000238418579; - $this.$colorGreenBottomLeft = 0.6000000238418579; - $this.$colorGreenTopLeft = 0.6000000238418579; - $this.$colorBlueTopRight = 0.6000000238418579; - $this.$colorBlueBottomRight = 0.6000000238418579; - $this.$colorBlueBottomLeft = 0.6000000238418579; - $this.$colorBlueTopLeft = 0.6000000238418579; - } else { - var$25 = $par5 * 0.6000000238418579; - $this.$colorRedTopRight = var$25; - $this.$colorRedBottomRight = var$25; - $this.$colorRedBottomLeft = var$25; - $this.$colorRedTopLeft = var$25; - var$25 = $par6 * 0.6000000238418579; - $this.$colorGreenTopRight = var$25; - $this.$colorGreenBottomRight = var$25; - $this.$colorGreenBottomLeft = var$25; - $this.$colorGreenTopLeft = var$25; - var$25 = $par7 * 0.6000000238418579; - $this.$colorBlueTopRight = var$25; - $this.$colorBlueBottomRight = var$25; - $this.$colorBlueBottomLeft = var$25; - $this.$colorBlueTopLeft = var$25; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * var$23; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * var$23; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * var$23; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * var$24; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * var$24; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * var$24; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $var21; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $var21; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $var21; - $this.$colorRedTopRight = $this.$colorRedTopRight * var$22; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * var$22; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * var$22; - $var22 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 4); - var$26 = $par2; - var$27 = $par3; - var$28 = $par4; - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, var$26, var$27, var$28, $var22); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var22.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $par5; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $par5; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $par5; - $this.$colorRedTopRight = $this.$colorRedTopRight * $par5; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $par6; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $par6; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $par6; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $par6; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $par7; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $par7; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $par7; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $par7; - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, var$26, var$27, var$28, nms_BlockGrass_getIconSideOverlay()); - } - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 + 1 | 0, $par3, $par4, 5))) { - if ($this.$renderMaxX >= 1.0) - $par2 = $par2 + 1 | 0; - $var22 = $this.$blockAccess; - $var8 = $par3 - 1 | 0; - $this.$aoLightValueScratchXYPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $var8, $par4); - $var22 = $this.$blockAccess; - $var17_0 = $par4 - 1 | 0; - $this.$aoLightValueScratchXZPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $par3, $var17_0); - $var22 = $this.$blockAccess; - $var18_0 = $par4 + 1 | 0; - $this.$aoLightValueScratchXZPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $par3, $var18_0); - $var22 = $this.$blockAccess; - $var19_0 = $par3 + 1 | 0; - $this.$aoLightValueScratchXYPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var22, $par2, $var19_0, $par4); - $this.$aoBrightnessXYPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $par4); - $this.$aoBrightnessXZPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $var17_0); - $this.$aoBrightnessXZPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $var18_0); - $this.$aoBrightnessXYPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var22 = $this.$blockAccess; - $var19 = $par2 + 1 | 0; - $var16_0 = var$16[$var22.$getBlockId($var19, $var19_0, $par4)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $var8, $par4)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $par3, $var18_0)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $par3, $var17_0)]; - if (!$var17 && !$var19) { - $this.$aoLightValueScratchXYZPNN = $this.$aoLightValueScratchXZPN; - $this.$aoBrightnessXYZPNN = $this.$aoBrightnessXZPN; - } else { - $this.$aoLightValueScratchXYZPNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var8, $var17_0); - $this.$aoBrightnessXYZPNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $var17_0); - } - if (!$var17 && !$var18) { - $this.$aoLightValueScratchXYZPNP = $this.$aoLightValueScratchXZPP; - $this.$aoBrightnessXYZPNP = $this.$aoBrightnessXZPP; - } else { - $this.$aoLightValueScratchXYZPNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var8, $var18_0); - $this.$aoBrightnessXYZPNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $var18_0); - } - if (!$var16_0 && !$var19) { - $this.$aoLightValueScratchXYZPPN = $this.$aoLightValueScratchXZPN; - $this.$aoBrightnessXYZPPN = $this.$aoBrightnessXZPN; - } else { - $this.$aoLightValueScratchXYZPPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var19_0, $var17_0); - $this.$aoBrightnessXYZPPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $var17_0); - } - if (!$var16_0 && !$var18) { - $this.$aoLightValueScratchXYZPPP = $this.$aoLightValueScratchXZPP; - $this.$aoBrightnessXYZPPP = $this.$aoBrightnessXZPP; - } else { - $this.$aoLightValueScratchXYZPPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var19_0, $var18_0); - $this.$aoBrightnessXYZPPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $var18_0); - } - if ($this.$renderMaxX >= 1.0) - $par2 = $par2 + (-1) | 0; - if (!($this.$renderMaxX < 1.0 && $this.$blockAccess.$isBlockOpaqueCube($par2 + 1 | 0, $par3, $par4))) - $var14 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - var$22 = ($this.$aoLightValueScratchXYPN + $this.$aoLightValueScratchXYZPNP + $var21 + $this.$aoLightValueScratchXZPP) / 4.0; - var$23 = ($this.$aoLightValueScratchXYZPNN + $this.$aoLightValueScratchXYPN + $this.$aoLightValueScratchXZPN + $var21) / 4.0; - var$24 = ($this.$aoLightValueScratchXZPN + $var21 + $this.$aoLightValueScratchXYZPPN + $this.$aoLightValueScratchXYPP) / 4.0; - $var21 = ($var21 + $this.$aoLightValueScratchXZPP + $this.$aoLightValueScratchXYPP + $this.$aoLightValueScratchXYZPPP) / 4.0; - $this.$brightnessTopLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYPN, $this.$aoBrightnessXYZPNP, $this.$aoBrightnessXZPP, $var14); - $this.$brightnessTopRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZPP, $this.$aoBrightnessXYPP, $this.$aoBrightnessXYZPPP, $var14); - $this.$brightnessBottomRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZPN, $this.$aoBrightnessXYZPPN, $this.$aoBrightnessXYPP, $var14); - $this.$brightnessBottomLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZPNN, $this.$aoBrightnessXYPN, $this.$aoBrightnessXZPN, $var14); - if (!$var13) { - $this.$colorRedTopRight = 0.6000000238418579; - $this.$colorRedBottomRight = 0.6000000238418579; - $this.$colorRedBottomLeft = 0.6000000238418579; - $this.$colorRedTopLeft = 0.6000000238418579; - $this.$colorGreenTopRight = 0.6000000238418579; - $this.$colorGreenBottomRight = 0.6000000238418579; - $this.$colorGreenBottomLeft = 0.6000000238418579; - $this.$colorGreenTopLeft = 0.6000000238418579; - $this.$colorBlueTopRight = 0.6000000238418579; - $this.$colorBlueBottomRight = 0.6000000238418579; - $this.$colorBlueBottomLeft = 0.6000000238418579; - $this.$colorBlueTopLeft = 0.6000000238418579; - } else { - var$25 = $par5 * 0.6000000238418579; - $this.$colorRedTopRight = var$25; - $this.$colorRedBottomRight = var$25; - $this.$colorRedBottomLeft = var$25; - $this.$colorRedTopLeft = var$25; - var$25 = $par6 * 0.6000000238418579; - $this.$colorGreenTopRight = var$25; - $this.$colorGreenBottomRight = var$25; - $this.$colorGreenBottomLeft = var$25; - $this.$colorGreenTopLeft = var$25; - var$25 = $par7 * 0.6000000238418579; - $this.$colorBlueTopRight = var$25; - $this.$colorBlueBottomRight = var$25; - $this.$colorBlueBottomLeft = var$25; - $this.$colorBlueTopLeft = var$25; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * var$22; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * var$22; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * var$22; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * var$23; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * var$23; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * var$23; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * var$24; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * var$24; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * var$24; - $this.$colorRedTopRight = $this.$colorRedTopRight * $var21; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $var21; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $var21; - $var22 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 5); - var$26 = $par2; - var$27 = $par3; - var$28 = $par4; - nms_RenderBlocks_renderFaceXPos($this, $par1Block, var$26, var$27, var$28, $var22); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var22.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $par5; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $par5; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $par5; - $this.$colorRedTopRight = $this.$colorRedTopRight * $par5; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $par6; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $par6; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $par6; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $par6; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $par7; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $par7; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $par7; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $par7; - nms_RenderBlocks_renderFaceXPos($this, $par1Block, var$26, var$27, var$28, nms_BlockGrass_getIconSideOverlay()); - } - $var8 = 1; - } - $this.$enableAO = 0; - return $var8; -} -function nms_RenderBlocks_func_102027_b($this, $par1Block, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var13, $var14, $var30, $var19, $var16, $var17, $var18, var$16, $var19_0, $var16_0, $var17_0, $var18_0, $var21, $var24, $var25, $var22, $var23, var$26, var$27, var$28, var$29, var$30, $var26, $var27, $var28, $var29, $var21_0; - $this.$enableAO = 1; - $var8 = 0; - $var13 = 1; - $var14 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - nlea_Tessellator_$callClinit(); - nlea_Tessellator_setBrightness(nlea_Tessellator_instance, 983055); - if (jl_String_equals(nms_RenderBlocks_getBlockIcon0($this, $par1Block).$getIconName(), $rt_s(619))) - $var13 = 0; - else if (nms_RenderBlocks_hasOverrideBlockTexture($this)) - $var13 = 0; - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3 - 1 | 0, $par4, 0))) { - if ($this.$renderMinY <= 0.0) - $par3 = $par3 + (-1) | 0; - $var30 = $this.$blockAccess; - $var19 = $par2 - 1 | 0; - $this.$aoBrightnessXYNN = $par1Block.$getMixedBrightnessForBlock($var30, $var19, $par3, $par4); - $var30 = $this.$blockAccess; - $var16 = $par4 - 1 | 0; - $this.$aoBrightnessYZNN = $par1Block.$getMixedBrightnessForBlock($var30, $par2, $par3, $var16); - $var30 = $this.$blockAccess; - $var17 = $par4 + 1 | 0; - $this.$aoBrightnessYZNP = $par1Block.$getMixedBrightnessForBlock($var30, $par2, $par3, $var17); - $var30 = $this.$blockAccess; - $var18 = $par2 + 1 | 0; - $this.$aoBrightnessXYPN = $par1Block.$getMixedBrightnessForBlock($var30, $var18, $par3, $par4); - $this.$aoLightValueScratchXYNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19, $par3, $par4); - $this.$aoLightValueScratchYZNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $var16); - $this.$aoLightValueScratchYZNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $var17); - $this.$aoLightValueScratchXYPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var18, $par3, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var30 = $this.$blockAccess; - $var19_0 = $par3 - 1 | 0; - $var16_0 = var$16[$var30.$getBlockId($var18, $var19_0, $par4)]; - $var17_0 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $var19_0, $par4)]; - $var18_0 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19_0, $var17)]; - $var19_0 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19_0, $var16)]; - if (!$var19_0 && !$var17_0) { - $this.$aoLightValueScratchXYZNNN = $this.$aoLightValueScratchXYNN; - $this.$aoBrightnessXYZNNN = $this.$aoBrightnessXYNN; - } else { - $this.$aoLightValueScratchXYZNNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19, $par3, $var16); - $this.$aoBrightnessXYZNNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19, $par3, $var16); - } - if (!$var18_0 && !$var17_0) { - $this.$aoLightValueScratchXYZNNP = $this.$aoLightValueScratchXYNN; - $this.$aoBrightnessXYZNNP = $this.$aoBrightnessXYNN; - } else { - $this.$aoLightValueScratchXYZNNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19, $par3, $var17); - $this.$aoBrightnessXYZNNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19, $par3, $var17); - } - if (!$var19_0 && !$var16_0) { - $this.$aoLightValueScratchXYZPNN = $this.$aoLightValueScratchXYPN; - $this.$aoBrightnessXYZPNN = $this.$aoBrightnessXYPN; - } else { - $this.$aoLightValueScratchXYZPNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var18, $par3, $var16); - $this.$aoBrightnessXYZPNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var18, $par3, $var16); - } - if (!$var18_0 && !$var16_0) { - $this.$aoLightValueScratchXYZPNP = $this.$aoLightValueScratchXYPN; - $this.$aoBrightnessXYZPNP = $this.$aoBrightnessXYPN; - } else { - $this.$aoLightValueScratchXYZPNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var18, $par3, $var17); - $this.$aoBrightnessXYZPNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var18, $par3, $var17); - } - if ($this.$renderMinY <= 0.0) - $par3 = $par3 + 1 | 0; - $var8 = $this.$renderMinY > 0.0 && $this.$blockAccess.$isBlockOpaqueCube($par2, $par3 - 1 | 0, $par4) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 - 1 | 0, $par4); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3 - 1 | 0, $par4); - $var24 = ($this.$aoLightValueScratchXYZNNP + $this.$aoLightValueScratchXYNN + $this.$aoLightValueScratchYZNP + $var21) / 4.0; - $var25 = ($this.$aoLightValueScratchYZNP + $var21 + $this.$aoLightValueScratchXYZPNP + $this.$aoLightValueScratchXYPN) / 4.0; - $var22 = ($var21 + $this.$aoLightValueScratchYZNN + $this.$aoLightValueScratchXYPN + $this.$aoLightValueScratchXYZPNN) / 4.0; - $var21 = ($this.$aoLightValueScratchXYNN + $this.$aoLightValueScratchXYZNNN + $var21 + $this.$aoLightValueScratchYZNN) / 4.0; - $this.$brightnessTopLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNNP, $this.$aoBrightnessXYNN, $this.$aoBrightnessYZNP, $var8); - $this.$brightnessTopRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZNP, $this.$aoBrightnessXYZPNP, $this.$aoBrightnessXYPN, $var8); - $this.$brightnessBottomRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZNN, $this.$aoBrightnessXYPN, $this.$aoBrightnessXYZPNN, $var8); - $this.$brightnessBottomLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYNN, $this.$aoBrightnessXYZNNN, $this.$aoBrightnessYZNN, $var8); - if (!$var13) { - $this.$colorRedTopRight = 0.5; - $this.$colorRedBottomRight = 0.5; - $this.$colorRedBottomLeft = 0.5; - $this.$colorRedTopLeft = 0.5; - $this.$colorGreenTopRight = 0.5; - $this.$colorGreenBottomRight = 0.5; - $this.$colorGreenBottomLeft = 0.5; - $this.$colorGreenTopLeft = 0.5; - $this.$colorBlueTopRight = 0.5; - $this.$colorBlueBottomRight = 0.5; - $this.$colorBlueBottomLeft = 0.5; - $this.$colorBlueTopLeft = 0.5; - } else { - $var23 = $par5 * 0.5; - $this.$colorRedTopRight = $var23; - $this.$colorRedBottomRight = $var23; - $this.$colorRedBottomLeft = $var23; - $this.$colorRedTopLeft = $var23; - $var23 = $par6 * 0.5; - $this.$colorGreenTopRight = $var23; - $this.$colorGreenBottomRight = $var23; - $this.$colorGreenBottomLeft = $var23; - $this.$colorGreenTopLeft = $var23; - $var23 = $par7 * 0.5; - $this.$colorBlueTopRight = $var23; - $this.$colorBlueBottomRight = $var23; - $this.$colorBlueBottomLeft = $var23; - $this.$colorBlueTopLeft = $var23; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $var24; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $var24; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $var24; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $var21; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $var21; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $var21; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $var22; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $var22; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $var22; - $this.$colorRedTopRight = $this.$colorRedTopRight * $var25; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $var25; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $var25; - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 0)); - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3 + 1 | 0, $par4, 1))) { - if ($this.$renderMaxY >= 1.0) - $par3 = $par3 + 1 | 0; - $var30 = $this.$blockAccess; - $var8 = $par2 - 1 | 0; - $this.$aoBrightnessXYNP = $par1Block.$getMixedBrightnessForBlock($var30, $var8, $par3, $par4); - $var30 = $this.$blockAccess; - $var17_0 = $par2 + 1 | 0; - $this.$aoBrightnessXYPP = $par1Block.$getMixedBrightnessForBlock($var30, $var17_0, $par3, $par4); - $var30 = $this.$blockAccess; - $var18_0 = $par4 - 1 | 0; - $this.$aoBrightnessYZPN = $par1Block.$getMixedBrightnessForBlock($var30, $par2, $par3, $var18_0); - $var30 = $this.$blockAccess; - $var19_0 = $par4 + 1 | 0; - $this.$aoBrightnessYZPP = $par1Block.$getMixedBrightnessForBlock($var30, $par2, $par3, $var19_0); - $this.$aoLightValueScratchXYNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $par3, $par4); - $this.$aoLightValueScratchXYPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $par3, $par4); - $this.$aoLightValueScratchYZPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $var18_0); - $this.$aoLightValueScratchYZPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $var19_0); - var$16 = nms_Block_canBlockGrass.data; - $var30 = $this.$blockAccess; - $var19 = $par3 + 1 | 0; - $var16 = var$16[$var30.$getBlockId($var17_0, $var19, $par4)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var8, $var19, $par4)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19, $var19_0)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19, $var18_0)]; - if (!$var19 && !$var17) { - $this.$aoLightValueScratchXYZNPN = $this.$aoLightValueScratchXYNP; - $this.$aoBrightnessXYZNPN = $this.$aoBrightnessXYNP; - } else { - $this.$aoLightValueScratchXYZNPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $par3, $var18_0); - $this.$aoBrightnessXYZNPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $par3, $var18_0); - } - if (!$var19 && !$var16) { - $this.$aoLightValueScratchXYZPPN = $this.$aoLightValueScratchXYPP; - $this.$aoBrightnessXYZPPN = $this.$aoBrightnessXYPP; - } else { - $this.$aoLightValueScratchXYZPPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $par3, $var18_0); - $this.$aoBrightnessXYZPPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $par3, $var18_0); - } - if (!$var18 && !$var17) { - $this.$aoLightValueScratchXYZNPP = $this.$aoLightValueScratchXYNP; - $this.$aoBrightnessXYZNPP = $this.$aoBrightnessXYNP; - } else { - $this.$aoLightValueScratchXYZNPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $par3, $var19_0); - $this.$aoBrightnessXYZNPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $par3, $var19_0); - } - if (!$var18 && !$var16) { - $this.$aoLightValueScratchXYZPPP = $this.$aoLightValueScratchXYPP; - $this.$aoBrightnessXYZPPP = $this.$aoBrightnessXYPP; - } else { - $this.$aoLightValueScratchXYZPPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $par3, $var19_0); - $this.$aoBrightnessXYZPPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $par3, $var19_0); - } - if ($this.$renderMaxY >= 1.0) - $par3 = $par3 + (-1) | 0; - $var8 = $this.$renderMaxY < 1.0 && $this.$blockAccess.$isBlockOpaqueCube($par2, $par3 + 1 | 0, $par4) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 + 1 | 0, $par4); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3 + 1 | 0, $par4); - $var24 = ($this.$aoLightValueScratchXYZNPP + $this.$aoLightValueScratchXYNP + $this.$aoLightValueScratchYZPP + $var21) / 4.0; - $var25 = ($this.$aoLightValueScratchYZPP + $var21 + $this.$aoLightValueScratchXYZPPP + $this.$aoLightValueScratchXYPP) / 4.0; - $var22 = ($var21 + $this.$aoLightValueScratchYZPN + $this.$aoLightValueScratchXYPP + $this.$aoLightValueScratchXYZPPN) / 4.0; - $var21 = ($this.$aoLightValueScratchXYNP + $this.$aoLightValueScratchXYZNPN + $var21 + $this.$aoLightValueScratchYZPN) / 4.0; - $this.$brightnessTopRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNPP, $this.$aoBrightnessXYNP, $this.$aoBrightnessYZPP, $var8); - $this.$brightnessTopLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZPP, $this.$aoBrightnessXYZPPP, $this.$aoBrightnessXYPP, $var8); - $this.$brightnessBottomLeft = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZPN, $this.$aoBrightnessXYPP, $this.$aoBrightnessXYZPPN, $var8); - $this.$brightnessBottomRight = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYNP, $this.$aoBrightnessXYZNPN, $this.$aoBrightnessYZPN, $var8); - $this.$colorRedTopRight = $par5; - $this.$colorRedBottomRight = $par5; - $this.$colorRedBottomLeft = $par5; - $this.$colorRedTopLeft = $par5; - $this.$colorGreenTopRight = $par6; - $this.$colorGreenBottomRight = $par6; - $this.$colorGreenBottomLeft = $par6; - $this.$colorGreenTopLeft = $par6; - $this.$colorBlueTopRight = $par7; - $this.$colorBlueBottomRight = $par7; - $this.$colorBlueBottomLeft = $par7; - $this.$colorBlueTopLeft = $par7; - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $var25; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $var25; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $var25; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $var22; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $var22; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $var22; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $var21; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $var21; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $var21; - $this.$colorRedTopRight = $this.$colorRedTopRight * $var24; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $var24; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $var24; - nms_RenderBlocks_renderFaceYPos($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 1)); - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 - 1 | 0, 2))) { - if ($this.$renderMinZ <= 0.0) - $par4 = $par4 + (-1) | 0; - $var30 = $this.$blockAccess; - $var8 = $par2 - 1 | 0; - $this.$aoLightValueScratchXZNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $var8, $par3, $par4); - $var30 = $this.$blockAccess; - $var17_0 = $par3 - 1 | 0; - $this.$aoLightValueScratchYZNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $var17_0, $par4); - $var30 = $this.$blockAccess; - $var18_0 = $par3 + 1 | 0; - $this.$aoLightValueScratchYZPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $var18_0, $par4); - $var30 = $this.$blockAccess; - $var19_0 = $par2 + 1 | 0; - $this.$aoLightValueScratchXZPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $var19_0, $par3, $par4); - $this.$aoBrightnessXZNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $par3, $par4); - $this.$aoBrightnessYZNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var17_0, $par4); - $this.$aoBrightnessYZPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var18_0, $par4); - $this.$aoBrightnessXZPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19_0, $par3, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var30 = $this.$blockAccess; - $var19 = $par4 - 1 | 0; - $var16 = var$16[$var30.$getBlockId($var19_0, $par3, $var19)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var8, $par3, $var19)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var18_0, $var19)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var17_0, $var19)]; - if (!$var17 && !$var19) { - $this.$aoLightValueScratchXYZNNN = $this.$aoLightValueScratchXZNN; - $this.$aoBrightnessXYZNNN = $this.$aoBrightnessXZNN; - } else { - $this.$aoLightValueScratchXYZNNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $var17_0, $par4); - $this.$aoBrightnessXYZNNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $var17_0, $par4); - } - if (!$var17 && !$var18) { - $this.$aoLightValueScratchXYZNPN = $this.$aoLightValueScratchXZNN; - $this.$aoBrightnessXYZNPN = $this.$aoBrightnessXZNN; - } else { - $this.$aoLightValueScratchXYZNPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $var18_0, $par4); - $this.$aoBrightnessXYZNPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $var18_0, $par4); - } - if (!$var16 && !$var19) { - $this.$aoLightValueScratchXYZPNN = $this.$aoLightValueScratchXZPN; - $this.$aoBrightnessXYZPNN = $this.$aoBrightnessXZPN; - } else { - $this.$aoLightValueScratchXYZPNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19_0, $var17_0, $par4); - $this.$aoBrightnessXYZPNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19_0, $var17_0, $par4); - } - if (!$var16 && !$var18) { - $this.$aoLightValueScratchXYZPPN = $this.$aoLightValueScratchXZPN; - $this.$aoBrightnessXYZPPN = $this.$aoBrightnessXZPN; - } else { - $this.$aoLightValueScratchXYZPPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var19_0, $var18_0, $par4); - $this.$aoBrightnessXYZPPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var19_0, $var18_0, $par4); - } - if ($this.$renderMinZ <= 0.0) - $par4 = $par4 + 1 | 0; - $var8 = $this.$renderMinZ > 0.0 && $this.$blockAccess.$isBlockOpaqueCube($par2, $par3, $par4 - 1 | 0) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 - 1 | 0); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $par4 - 1 | 0); - $var22 = ($this.$aoLightValueScratchXZNN + $this.$aoLightValueScratchXYZNPN + $var21 + $this.$aoLightValueScratchYZPN) / 4.0; - $var23 = ($var21 + $this.$aoLightValueScratchYZPN + $this.$aoLightValueScratchXZPN + $this.$aoLightValueScratchXYZPPN) / 4.0; - $var24 = ($this.$aoLightValueScratchYZNN + $var21 + $this.$aoLightValueScratchXYZPNN + $this.$aoLightValueScratchXZPN) / 4.0; - $var25 = ($this.$aoLightValueScratchXYZNNN + $this.$aoLightValueScratchXZNN + $this.$aoLightValueScratchYZNN + $var21) / 4.0; - var$26 = $var22; - var$27 = var$26 * $this.$renderMaxY * (1.0 - $this.$renderMinX); - var$28 = $var23; - var$27 = var$27 + var$28 * $this.$renderMinY * $this.$renderMinX; - var$29 = $var24; - var$27 = var$27 + var$29 * (1.0 - $this.$renderMaxY) * $this.$renderMinX; - var$30 = $var25; - $var21 = var$27 + var$30 * (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMinX); - $var24 = var$26 * $this.$renderMaxY * (1.0 - $this.$renderMaxX) + var$28 * $this.$renderMaxY * $this.$renderMaxX + var$29 * (1.0 - $this.$renderMaxY) * $this.$renderMaxX + var$30 * (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMaxX); - $var25 = var$26 * $this.$renderMinY * (1.0 - $this.$renderMaxX) + var$28 * $this.$renderMinY * $this.$renderMaxX + var$29 * (1.0 - $this.$renderMinY) * $this.$renderMaxX + var$30 * (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMaxX); - $var23 = var$26 * $this.$renderMinY * (1.0 - $this.$renderMinX) + var$28 * $this.$renderMinY * $this.$renderMinX + var$29 * (1.0 - $this.$renderMinY) * $this.$renderMinX + var$30 * (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMinX); - $var26 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZNN, $this.$aoBrightnessXYZNPN, $this.$aoBrightnessYZPN, $var8); - $var27 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZPN, $this.$aoBrightnessXZPN, $this.$aoBrightnessXYZPPN, $var8); - $var28 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZNN, $this.$aoBrightnessXYZPNN, $this.$aoBrightnessXZPN, $var8); - $var29 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNNN, $this.$aoBrightnessXZNN, $this.$aoBrightnessYZNN, $var8); - $this.$brightnessTopLeft = nms_RenderBlocks_mixAoBrightness($this, $var26, $var27, $var28, $var29, $this.$renderMaxY * (1.0 - $this.$renderMinX), $this.$renderMaxY * $this.$renderMinX, (1.0 - $this.$renderMaxY) * $this.$renderMinX, (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMinX)); - $this.$brightnessBottomLeft = nms_RenderBlocks_mixAoBrightness($this, $var26, $var27, $var28, $var29, $this.$renderMaxY * (1.0 - $this.$renderMaxX), $this.$renderMaxY * $this.$renderMaxX, (1.0 - $this.$renderMaxY) * $this.$renderMaxX, (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMaxX)); - $this.$brightnessBottomRight = nms_RenderBlocks_mixAoBrightness($this, $var26, $var27, $var28, $var29, $this.$renderMinY * (1.0 - $this.$renderMaxX), $this.$renderMinY * $this.$renderMaxX, (1.0 - $this.$renderMinY) * $this.$renderMaxX, (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMaxX)); - $this.$brightnessTopRight = nms_RenderBlocks_mixAoBrightness($this, $var26, $var27, $var28, $var29, $this.$renderMinY * (1.0 - $this.$renderMinX), $this.$renderMinY * $this.$renderMinX, (1.0 - $this.$renderMinY) * $this.$renderMinX, (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMinX)); - if (!$var13) { - $this.$colorRedTopRight = 0.800000011920929; - $this.$colorRedBottomRight = 0.800000011920929; - $this.$colorRedBottomLeft = 0.800000011920929; - $this.$colorRedTopLeft = 0.800000011920929; - $this.$colorGreenTopRight = 0.800000011920929; - $this.$colorGreenBottomRight = 0.800000011920929; - $this.$colorGreenBottomLeft = 0.800000011920929; - $this.$colorGreenTopLeft = 0.800000011920929; - $this.$colorBlueTopRight = 0.800000011920929; - $this.$colorBlueBottomRight = 0.800000011920929; - $this.$colorBlueBottomLeft = 0.800000011920929; - $this.$colorBlueTopLeft = 0.800000011920929; - } else { - $var22 = $par5 * 0.800000011920929; - $this.$colorRedTopRight = $var22; - $this.$colorRedBottomRight = $var22; - $this.$colorRedBottomLeft = $var22; - $this.$colorRedTopLeft = $var22; - $var22 = $par6 * 0.800000011920929; - $this.$colorGreenTopRight = $var22; - $this.$colorGreenBottomRight = $var22; - $this.$colorGreenBottomLeft = $var22; - $this.$colorGreenTopLeft = $var22; - $var22 = $par7 * 0.800000011920929; - $this.$colorBlueTopRight = $var22; - $this.$colorBlueBottomRight = $var22; - $this.$colorBlueBottomLeft = $var22; - $this.$colorBlueTopLeft = $var22; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $var21; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $var21; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $var21; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $var24; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $var24; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $var24; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $var25; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $var25; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $var25; - $this.$colorRedTopRight = $this.$colorRedTopRight * $var23; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $var23; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $var23; - $var30 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 2); - var$26 = $par2; - var$27 = $par3; - var$28 = $par4; - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, var$26, var$27, var$28, $var30); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var30.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $par5; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $par5; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $par5; - $this.$colorRedTopRight = $this.$colorRedTopRight * $par5; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $par6; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $par6; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $par6; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $par6; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $par7; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $par7; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $par7; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $par7; - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, var$26, var$27, var$28, nms_BlockGrass_getIconSideOverlay()); - } - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 + 1 | 0, 3))) { - if ($this.$renderMaxZ >= 1.0) - $par4 = $par4 + 1 | 0; - $var30 = $this.$blockAccess; - $var8 = $par2 - 1 | 0; - $this.$aoLightValueScratchXZNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $var8, $par3, $par4); - $var30 = $this.$blockAccess; - $var17_0 = $par2 + 1 | 0; - $this.$aoLightValueScratchXZPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $var17_0, $par3, $par4); - $var30 = $this.$blockAccess; - $var18_0 = $par3 - 1 | 0; - $this.$aoLightValueScratchYZNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $var18_0, $par4); - $var30 = $this.$blockAccess; - $var19_0 = $par3 + 1 | 0; - $this.$aoLightValueScratchYZPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $var19_0, $par4); - $this.$aoBrightnessXZNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $par3, $par4); - $this.$aoBrightnessXZPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $par3, $par4); - $this.$aoBrightnessYZNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var18_0, $par4); - $this.$aoBrightnessYZPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var30 = $this.$blockAccess; - $var19 = $par4 + 1 | 0; - $var16 = var$16[$var30.$getBlockId($var17_0, $par3, $var19)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var8, $par3, $var19)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var19_0, $var19)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($par2, $var18_0, $var19)]; - if (!$var17 && !$var19) { - $this.$aoLightValueScratchXYZNNP = $this.$aoLightValueScratchXZNP; - $this.$aoBrightnessXYZNNP = $this.$aoBrightnessXZNP; - } else { - $this.$aoLightValueScratchXYZNNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $var18_0, $par4); - $this.$aoBrightnessXYZNNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $var18_0, $par4); - } - if (!$var17 && !$var18) { - $this.$aoLightValueScratchXYZNPP = $this.$aoLightValueScratchXZNP; - $this.$aoBrightnessXYZNPP = $this.$aoBrightnessXZNP; - } else { - $this.$aoLightValueScratchXYZNPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var8, $var19_0, $par4); - $this.$aoBrightnessXYZNPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var8, $var19_0, $par4); - } - if (!$var16 && !$var19) { - $this.$aoLightValueScratchXYZPNP = $this.$aoLightValueScratchXZPP; - $this.$aoBrightnessXYZPNP = $this.$aoBrightnessXZPP; - } else { - $this.$aoLightValueScratchXYZPNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $var18_0, $par4); - $this.$aoBrightnessXYZPNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $var18_0, $par4); - } - if (!$var16 && !$var18) { - $this.$aoLightValueScratchXYZPPP = $this.$aoLightValueScratchXZPP; - $this.$aoBrightnessXYZPPP = $this.$aoBrightnessXZPP; - } else { - $this.$aoLightValueScratchXYZPPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $var17_0, $var19_0, $par4); - $this.$aoBrightnessXYZPPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $var17_0, $var19_0, $par4); - } - if ($this.$renderMaxZ >= 1.0) - $par4 = $par4 + (-1) | 0; - $var19_0 = $this.$renderMaxZ < 1.0 && $this.$blockAccess.$isBlockOpaqueCube($par2, $par3, $par4 + 1 | 0) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 + 1 | 0); - $var21_0 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $par3, $par4 + 1 | 0); - $var22 = ($this.$aoLightValueScratchXZNP + $this.$aoLightValueScratchXYZNPP + $var21_0 + $this.$aoLightValueScratchYZPP) / 4.0; - $var23 = ($var21_0 + $this.$aoLightValueScratchYZPP + $this.$aoLightValueScratchXZPP + $this.$aoLightValueScratchXYZPPP) / 4.0; - $var24 = ($this.$aoLightValueScratchYZNP + $var21_0 + $this.$aoLightValueScratchXYZPNP + $this.$aoLightValueScratchXZPP) / 4.0; - $var25 = ($this.$aoLightValueScratchXYZNNP + $this.$aoLightValueScratchXZNP + $this.$aoLightValueScratchYZNP + $var21_0) / 4.0; - var$26 = $var22; - var$27 = var$26 * $this.$renderMaxY * (1.0 - $this.$renderMinX); - var$28 = $var23; - var$27 = var$27 + var$28 * $this.$renderMaxY * $this.$renderMinX; - var$29 = $var24; - var$27 = var$27 + var$29 * (1.0 - $this.$renderMaxY) * $this.$renderMinX; - var$30 = $var25; - $var21 = var$27 + var$30 * (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMinX); - $var24 = var$26 * $this.$renderMinY * (1.0 - $this.$renderMinX) + var$28 * $this.$renderMinY * $this.$renderMinX + var$29 * (1.0 - $this.$renderMinY) * $this.$renderMinX + var$30 * (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMinX); - $var25 = var$26 * $this.$renderMinY * (1.0 - $this.$renderMaxX) + var$28 * $this.$renderMinY * $this.$renderMaxX + var$29 * (1.0 - $this.$renderMinY) * $this.$renderMaxX + var$30 * (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMaxX); - $var22 = var$26 * $this.$renderMaxY * (1.0 - $this.$renderMaxX) + var$28 * $this.$renderMaxY * $this.$renderMaxX + var$29 * (1.0 - $this.$renderMaxY) * $this.$renderMaxX + var$30 * (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMaxX); - $var26 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZNP, $this.$aoBrightnessXYZNPP, $this.$aoBrightnessYZPP, $var19_0); - $var27 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZPP, $this.$aoBrightnessXZPP, $this.$aoBrightnessXYZPPP, $var19_0); - $var28 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessYZNP, $this.$aoBrightnessXYZPNP, $this.$aoBrightnessXZPP, $var19_0); - $var29 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNNP, $this.$aoBrightnessXZNP, $this.$aoBrightnessYZNP, $var19_0); - $this.$brightnessTopLeft = nms_RenderBlocks_mixAoBrightness($this, $var26, $var29, $var28, $var27, $this.$renderMaxY * (1.0 - $this.$renderMinX), (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMinX), (1.0 - $this.$renderMaxY) * $this.$renderMinX, $this.$renderMaxY * $this.$renderMinX); - $this.$brightnessBottomLeft = nms_RenderBlocks_mixAoBrightness($this, $var26, $var29, $var28, $var27, $this.$renderMinY * (1.0 - $this.$renderMinX), (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMinX), (1.0 - $this.$renderMinY) * $this.$renderMinX, $this.$renderMinY * $this.$renderMinX); - $this.$brightnessBottomRight = nms_RenderBlocks_mixAoBrightness($this, $var26, $var29, $var28, $var27, $this.$renderMinY * (1.0 - $this.$renderMaxX), (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMaxX), (1.0 - $this.$renderMinY) * $this.$renderMaxX, $this.$renderMinY * $this.$renderMaxX); - $this.$brightnessTopRight = nms_RenderBlocks_mixAoBrightness($this, $var26, $var29, $var28, $var27, $this.$renderMaxY * (1.0 - $this.$renderMaxX), (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMaxX), (1.0 - $this.$renderMaxY) * $this.$renderMaxX, $this.$renderMaxY * $this.$renderMaxX); - if (!$var13) { - $this.$colorRedTopRight = 0.800000011920929; - $this.$colorRedBottomRight = 0.800000011920929; - $this.$colorRedBottomLeft = 0.800000011920929; - $this.$colorRedTopLeft = 0.800000011920929; - $this.$colorGreenTopRight = 0.800000011920929; - $this.$colorGreenBottomRight = 0.800000011920929; - $this.$colorGreenBottomLeft = 0.800000011920929; - $this.$colorGreenTopLeft = 0.800000011920929; - $this.$colorBlueTopRight = 0.800000011920929; - $this.$colorBlueBottomRight = 0.800000011920929; - $this.$colorBlueBottomLeft = 0.800000011920929; - $this.$colorBlueTopLeft = 0.800000011920929; - } else { - $var23 = $par5 * 0.800000011920929; - $this.$colorRedTopRight = $var23; - $this.$colorRedBottomRight = $var23; - $this.$colorRedBottomLeft = $var23; - $this.$colorRedTopLeft = $var23; - $var23 = $par6 * 0.800000011920929; - $this.$colorGreenTopRight = $var23; - $this.$colorGreenBottomRight = $var23; - $this.$colorGreenBottomLeft = $var23; - $this.$colorGreenTopLeft = $var23; - $var23 = $par7 * 0.800000011920929; - $this.$colorBlueTopRight = $var23; - $this.$colorBlueBottomRight = $var23; - $this.$colorBlueBottomLeft = $var23; - $this.$colorBlueTopLeft = $var23; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $var21; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $var21; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $var21; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $var24; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $var24; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $var24; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $var25; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $var25; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $var25; - $this.$colorRedTopRight = $this.$colorRedTopRight * $var22; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $var22; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $var22; - $var30 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 3); - var$26 = $par2; - var$27 = $par3; - var$28 = $par4; - nms_RenderBlocks_renderFaceZPos($this, $par1Block, var$26, var$27, var$28, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 3)); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var30.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $par5; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $par5; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $par5; - $this.$colorRedTopRight = $this.$colorRedTopRight * $par5; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $par6; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $par6; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $par6; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $par6; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $par7; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $par7; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $par7; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $par7; - nms_RenderBlocks_renderFaceZPos($this, $par1Block, var$26, var$27, var$28, nms_BlockGrass_getIconSideOverlay()); - } - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 - 1 | 0, $par3, $par4, 4))) { - if ($this.$renderMinX <= 0.0) - $par2 = $par2 + (-1) | 0; - $var30 = $this.$blockAccess; - $var8 = $par3 - 1 | 0; - $this.$aoLightValueScratchXYNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $var8, $par4); - $var30 = $this.$blockAccess; - $var17_0 = $par4 - 1 | 0; - $this.$aoLightValueScratchXZNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $par3, $var17_0); - $var30 = $this.$blockAccess; - $var18_0 = $par4 + 1 | 0; - $this.$aoLightValueScratchXZNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $par3, $var18_0); - $var30 = $this.$blockAccess; - $var19_0 = $par3 + 1 | 0; - $this.$aoLightValueScratchXYNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $var19_0, $par4); - $this.$aoBrightnessXYNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $par4); - $this.$aoBrightnessXZNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $var17_0); - $this.$aoBrightnessXZNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $var18_0); - $this.$aoBrightnessXYNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var30 = $this.$blockAccess; - $var19 = $par2 - 1 | 0; - $var16 = var$16[$var30.$getBlockId($var19, $var19_0, $par4)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $var8, $par4)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $par3, $var17_0)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $par3, $var18_0)]; - if (!$var18 && !$var17) { - $this.$aoLightValueScratchXYZNNN = $this.$aoLightValueScratchXZNN; - $this.$aoBrightnessXYZNNN = $this.$aoBrightnessXZNN; - } else { - $this.$aoLightValueScratchXYZNNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var8, $var17_0); - $this.$aoBrightnessXYZNNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $var17_0); - } - if (!$var19 && !$var17) { - $this.$aoLightValueScratchXYZNNP = $this.$aoLightValueScratchXZNP; - $this.$aoBrightnessXYZNNP = $this.$aoBrightnessXZNP; - } else { - $this.$aoLightValueScratchXYZNNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var8, $var18_0); - $this.$aoBrightnessXYZNNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $var18_0); - } - if (!$var18 && !$var16) { - $this.$aoLightValueScratchXYZNPN = $this.$aoLightValueScratchXZNN; - $this.$aoBrightnessXYZNPN = $this.$aoBrightnessXZNN; - } else { - $this.$aoLightValueScratchXYZNPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var19_0, $var17_0); - $this.$aoBrightnessXYZNPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $var17_0); - } - if (!$var19 && !$var16) { - $this.$aoLightValueScratchXYZNPP = $this.$aoLightValueScratchXZNP; - $this.$aoBrightnessXYZNPP = $this.$aoBrightnessXZNP; - } else { - $this.$aoLightValueScratchXYZNPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var19_0, $var18_0); - $this.$aoBrightnessXYZNPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $var18_0); - } - if ($this.$renderMinX <= 0.0) - $par2 = $par2 + 1 | 0; - $var8 = $this.$renderMinX > 0.0 && $this.$blockAccess.$isBlockOpaqueCube($par2 - 1 | 0, $par3, $par4) ? $var14 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 - 1 | 0, $par3, $par4); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2 - 1 | 0, $par3, $par4); - $var22 = ($this.$aoLightValueScratchXYNN + $this.$aoLightValueScratchXYZNNP + $var21 + $this.$aoLightValueScratchXZNP) / 4.0; - $var23 = ($var21 + $this.$aoLightValueScratchXZNP + $this.$aoLightValueScratchXYNP + $this.$aoLightValueScratchXYZNPP) / 4.0; - $var24 = ($this.$aoLightValueScratchXZNN + $var21 + $this.$aoLightValueScratchXYZNPN + $this.$aoLightValueScratchXYNP) / 4.0; - $var25 = ($this.$aoLightValueScratchXYZNNN + $this.$aoLightValueScratchXYNN + $this.$aoLightValueScratchXZNN + $var21) / 4.0; - var$26 = $var23; - var$27 = var$26 * $this.$renderMaxY * $this.$renderMaxZ; - var$28 = $var24; - var$27 = var$27 + var$28 * $this.$renderMaxY * (1.0 - $this.$renderMaxZ); - var$29 = $var25; - var$27 = var$27 + var$29 * (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMaxZ); - var$30 = $var22; - $var21 = var$27 + var$30 * (1.0 - $this.$renderMaxY) * $this.$renderMaxZ; - $var24 = var$26 * $this.$renderMaxY * $this.$renderMinZ + var$28 * $this.$renderMaxY * (1.0 - $this.$renderMinZ) + var$29 * (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMinZ) + var$30 * (1.0 - $this.$renderMaxY) * $this.$renderMinZ; - $var25 = var$26 * $this.$renderMinY * $this.$renderMinZ + var$28 * $this.$renderMinY * (1.0 - $this.$renderMinZ) + var$29 * (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMinZ) + var$30 * (1.0 - $this.$renderMinY) * $this.$renderMinZ; - $var22 = var$26 * $this.$renderMinY * $this.$renderMaxZ + var$28 * $this.$renderMinY * (1.0 - $this.$renderMaxZ) + var$29 * (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMaxZ) + var$30 * (1.0 - $this.$renderMinY) * $this.$renderMaxZ; - $var26 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYNN, $this.$aoBrightnessXYZNNP, $this.$aoBrightnessXZNP, $var8); - $var27 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZNP, $this.$aoBrightnessXYNP, $this.$aoBrightnessXYZNPP, $var8); - $var28 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZNN, $this.$aoBrightnessXYZNPN, $this.$aoBrightnessXYNP, $var8); - $var29 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZNNN, $this.$aoBrightnessXYNN, $this.$aoBrightnessXZNN, $var8); - $this.$brightnessTopLeft = nms_RenderBlocks_mixAoBrightness($this, $var27, $var28, $var29, $var26, $this.$renderMaxY * $this.$renderMaxZ, $this.$renderMaxY * (1.0 - $this.$renderMaxZ), (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMaxZ), (1.0 - $this.$renderMaxY) * $this.$renderMaxZ); - $this.$brightnessBottomLeft = nms_RenderBlocks_mixAoBrightness($this, $var27, $var28, $var29, $var26, $this.$renderMaxY * $this.$renderMinZ, $this.$renderMaxY * (1.0 - $this.$renderMinZ), (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMinZ), (1.0 - $this.$renderMaxY) * $this.$renderMinZ); - $this.$brightnessBottomRight = nms_RenderBlocks_mixAoBrightness($this, $var27, $var28, $var29, $var26, $this.$renderMinY * $this.$renderMinZ, $this.$renderMinY * (1.0 - $this.$renderMinZ), (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMinZ), (1.0 - $this.$renderMinY) * $this.$renderMinZ); - $this.$brightnessTopRight = nms_RenderBlocks_mixAoBrightness($this, $var27, $var28, $var29, $var26, $this.$renderMinY * $this.$renderMaxZ, $this.$renderMinY * (1.0 - $this.$renderMaxZ), (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMaxZ), (1.0 - $this.$renderMinY) * $this.$renderMaxZ); - if (!$var13) { - $this.$colorRedTopRight = 0.6000000238418579; - $this.$colorRedBottomRight = 0.6000000238418579; - $this.$colorRedBottomLeft = 0.6000000238418579; - $this.$colorRedTopLeft = 0.6000000238418579; - $this.$colorGreenTopRight = 0.6000000238418579; - $this.$colorGreenBottomRight = 0.6000000238418579; - $this.$colorGreenBottomLeft = 0.6000000238418579; - $this.$colorGreenTopLeft = 0.6000000238418579; - $this.$colorBlueTopRight = 0.6000000238418579; - $this.$colorBlueBottomRight = 0.6000000238418579; - $this.$colorBlueBottomLeft = 0.6000000238418579; - $this.$colorBlueTopLeft = 0.6000000238418579; - } else { - $var23 = $par5 * 0.6000000238418579; - $this.$colorRedTopRight = $var23; - $this.$colorRedBottomRight = $var23; - $this.$colorRedBottomLeft = $var23; - $this.$colorRedTopLeft = $var23; - $var23 = $par6 * 0.6000000238418579; - $this.$colorGreenTopRight = $var23; - $this.$colorGreenBottomRight = $var23; - $this.$colorGreenBottomLeft = $var23; - $this.$colorGreenTopLeft = $var23; - $var23 = $par7 * 0.6000000238418579; - $this.$colorBlueTopRight = $var23; - $this.$colorBlueBottomRight = $var23; - $this.$colorBlueBottomLeft = $var23; - $this.$colorBlueTopLeft = $var23; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $var21; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $var21; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $var21; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $var24; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $var24; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $var24; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $var25; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $var25; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $var25; - $this.$colorRedTopRight = $this.$colorRedTopRight * $var22; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $var22; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $var22; - $var30 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 4); - var$26 = $par2; - var$27 = $par3; - var$28 = $par4; - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, var$26, var$27, var$28, $var30); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var30.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $par5; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $par5; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $par5; - $this.$colorRedTopRight = $this.$colorRedTopRight * $par5; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $par6; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $par6; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $par6; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $par6; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $par7; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $par7; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $par7; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $par7; - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, var$26, var$27, var$28, nms_BlockGrass_getIconSideOverlay()); - } - $var8 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 + 1 | 0, $par3, $par4, 5))) { - if ($this.$renderMaxX >= 1.0) - $par2 = $par2 + 1 | 0; - $var30 = $this.$blockAccess; - $var8 = $par3 - 1 | 0; - $this.$aoLightValueScratchXYPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $var8, $par4); - $var30 = $this.$blockAccess; - $var17_0 = $par4 - 1 | 0; - $this.$aoLightValueScratchXZPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $par3, $var17_0); - $var30 = $this.$blockAccess; - $var18_0 = $par4 + 1 | 0; - $this.$aoLightValueScratchXZPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $par3, $var18_0); - $var30 = $this.$blockAccess; - $var19_0 = $par3 + 1 | 0; - $this.$aoLightValueScratchXYPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $var30, $par2, $var19_0, $par4); - $this.$aoBrightnessXYPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $par4); - $this.$aoBrightnessXZPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $var17_0); - $this.$aoBrightnessXZPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $var18_0); - $this.$aoBrightnessXYPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $par4); - var$16 = nms_Block_canBlockGrass.data; - $var30 = $this.$blockAccess; - $var19 = $par2 + 1 | 0; - $var16 = var$16[$var30.$getBlockId($var19, $var19_0, $par4)]; - $var17 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $var8, $par4)]; - $var18 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $par3, $var18_0)]; - $var19 = nms_Block_canBlockGrass.data[$this.$blockAccess.$getBlockId($var19, $par3, $var17_0)]; - if (!$var17 && !$var19) { - $this.$aoLightValueScratchXYZPNN = $this.$aoLightValueScratchXZPN; - $this.$aoBrightnessXYZPNN = $this.$aoBrightnessXZPN; - } else { - $this.$aoLightValueScratchXYZPNN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var8, $var17_0); - $this.$aoBrightnessXYZPNN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $var17_0); - } - if (!$var17 && !$var18) { - $this.$aoLightValueScratchXYZPNP = $this.$aoLightValueScratchXZPP; - $this.$aoBrightnessXYZPNP = $this.$aoBrightnessXZPP; - } else { - $this.$aoLightValueScratchXYZPNP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var8, $var18_0); - $this.$aoBrightnessXYZPNP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var8, $var18_0); - } - if (!$var16 && !$var19) { - $this.$aoLightValueScratchXYZPPN = $this.$aoLightValueScratchXZPN; - $this.$aoBrightnessXYZPPN = $this.$aoBrightnessXZPN; - } else { - $this.$aoLightValueScratchXYZPPN = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var19_0, $var17_0); - $this.$aoBrightnessXYZPPN = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $var17_0); - } - if (!$var16 && !$var18) { - $this.$aoLightValueScratchXYZPPP = $this.$aoLightValueScratchXZPP; - $this.$aoBrightnessXYZPPP = $this.$aoBrightnessXZPP; - } else { - $this.$aoLightValueScratchXYZPPP = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2, $var19_0, $var18_0); - $this.$aoBrightnessXYZPPP = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $var19_0, $var18_0); - } - if ($this.$renderMaxX >= 1.0) - $par2 = $par2 + (-1) | 0; - if (!($this.$renderMaxX < 1.0 && $this.$blockAccess.$isBlockOpaqueCube($par2 + 1 | 0, $par3, $par4))) - $var14 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - $var21 = nms_Block_getAmbientOcclusionLightValue($par1Block, $this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - $var22 = ($this.$aoLightValueScratchXYPN + $this.$aoLightValueScratchXYZPNP + $var21 + $this.$aoLightValueScratchXZPP) / 4.0; - $var23 = ($this.$aoLightValueScratchXYZPNN + $this.$aoLightValueScratchXYPN + $this.$aoLightValueScratchXZPN + $var21) / 4.0; - $var24 = ($this.$aoLightValueScratchXZPN + $var21 + $this.$aoLightValueScratchXYZPPN + $this.$aoLightValueScratchXYPP) / 4.0; - $var25 = ($var21 + $this.$aoLightValueScratchXZPP + $this.$aoLightValueScratchXYPP + $this.$aoLightValueScratchXYZPPP) / 4.0; - var$26 = $var22; - var$27 = var$26 * (1.0 - $this.$renderMinY) * $this.$renderMaxZ; - var$28 = $var23; - var$27 = var$27 + var$28 * (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMaxZ); - var$29 = $var24; - var$27 = var$27 + var$29 * $this.$renderMinY * (1.0 - $this.$renderMaxZ); - var$30 = $var25; - $var21 = var$27 + var$30 * $this.$renderMinY * $this.$renderMaxZ; - $var24 = var$26 * (1.0 - $this.$renderMinY) * $this.$renderMinZ + var$28 * (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMinZ) + var$29 * $this.$renderMinY * (1.0 - $this.$renderMinZ) + var$30 * $this.$renderMinY * $this.$renderMinZ; - $var25 = var$26 * (1.0 - $this.$renderMaxY) * $this.$renderMinZ + var$28 * (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMinZ) + var$29 * $this.$renderMaxY * (1.0 - $this.$renderMinZ) + var$30 * $this.$renderMaxY * $this.$renderMinZ; - $var22 = var$26 * (1.0 - $this.$renderMaxY) * $this.$renderMaxZ + var$28 * (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMaxZ) + var$29 * $this.$renderMaxY * (1.0 - $this.$renderMaxZ) + var$30 * $this.$renderMaxY * $this.$renderMaxZ; - $var26 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYPN, $this.$aoBrightnessXYZPNP, $this.$aoBrightnessXZPP, $var14); - $var27 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZPP, $this.$aoBrightnessXYPP, $this.$aoBrightnessXYZPPP, $var14); - $var28 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXZPN, $this.$aoBrightnessXYZPPN, $this.$aoBrightnessXYPP, $var14); - $var29 = nms_RenderBlocks_getAoBrightness($this, $this.$aoBrightnessXYZPNN, $this.$aoBrightnessXYPN, $this.$aoBrightnessXZPN, $var14); - $this.$brightnessTopLeft = nms_RenderBlocks_mixAoBrightness($this, $var26, $var29, $var28, $var27, (1.0 - $this.$renderMinY) * $this.$renderMaxZ, (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMaxZ), $this.$renderMinY * (1.0 - $this.$renderMaxZ), $this.$renderMinY * $this.$renderMaxZ); - $this.$brightnessBottomLeft = nms_RenderBlocks_mixAoBrightness($this, $var26, $var29, $var28, $var27, (1.0 - $this.$renderMinY) * $this.$renderMinZ, (1.0 - $this.$renderMinY) * (1.0 - $this.$renderMinZ), $this.$renderMinY * (1.0 - $this.$renderMinZ), $this.$renderMinY * $this.$renderMinZ); - $this.$brightnessBottomRight = nms_RenderBlocks_mixAoBrightness($this, $var26, $var29, $var28, $var27, (1.0 - $this.$renderMaxY) * $this.$renderMinZ, (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMinZ), $this.$renderMaxY * (1.0 - $this.$renderMinZ), $this.$renderMaxY * $this.$renderMinZ); - $this.$brightnessTopRight = nms_RenderBlocks_mixAoBrightness($this, $var26, $var29, $var28, $var27, (1.0 - $this.$renderMaxY) * $this.$renderMaxZ, (1.0 - $this.$renderMaxY) * (1.0 - $this.$renderMaxZ), $this.$renderMaxY * (1.0 - $this.$renderMaxZ), $this.$renderMaxY * $this.$renderMaxZ); - if (!$var13) { - $this.$colorRedTopRight = 0.6000000238418579; - $this.$colorRedBottomRight = 0.6000000238418579; - $this.$colorRedBottomLeft = 0.6000000238418579; - $this.$colorRedTopLeft = 0.6000000238418579; - $this.$colorGreenTopRight = 0.6000000238418579; - $this.$colorGreenBottomRight = 0.6000000238418579; - $this.$colorGreenBottomLeft = 0.6000000238418579; - $this.$colorGreenTopLeft = 0.6000000238418579; - $this.$colorBlueTopRight = 0.6000000238418579; - $this.$colorBlueBottomRight = 0.6000000238418579; - $this.$colorBlueBottomLeft = 0.6000000238418579; - $this.$colorBlueTopLeft = 0.6000000238418579; - } else { - $var23 = $par5 * 0.6000000238418579; - $this.$colorRedTopRight = $var23; - $this.$colorRedBottomRight = $var23; - $this.$colorRedBottomLeft = $var23; - $this.$colorRedTopLeft = $var23; - $var23 = $par6 * 0.6000000238418579; - $this.$colorGreenTopRight = $var23; - $this.$colorGreenBottomRight = $var23; - $this.$colorGreenBottomLeft = $var23; - $this.$colorGreenTopLeft = $var23; - $var23 = $par7 * 0.6000000238418579; - $this.$colorBlueTopRight = $var23; - $this.$colorBlueBottomRight = $var23; - $this.$colorBlueBottomLeft = $var23; - $this.$colorBlueTopLeft = $var23; - } - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $var21; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $var21; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $var21; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $var24; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $var24; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $var24; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $var25; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $var25; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $var25; - $this.$colorRedTopRight = $this.$colorRedTopRight * $var22; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $var22; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $var22; - $var30 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 5); - var$26 = $par2; - var$27 = $par3; - var$28 = $par4; - nms_RenderBlocks_renderFaceXPos($this, $par1Block, var$26, var$27, var$28, $var30); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var30.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - $this.$colorRedTopLeft = $this.$colorRedTopLeft * $par5; - $this.$colorRedBottomLeft = $this.$colorRedBottomLeft * $par5; - $this.$colorRedBottomRight = $this.$colorRedBottomRight * $par5; - $this.$colorRedTopRight = $this.$colorRedTopRight * $par5; - $this.$colorGreenTopLeft = $this.$colorGreenTopLeft * $par6; - $this.$colorGreenBottomLeft = $this.$colorGreenBottomLeft * $par6; - $this.$colorGreenBottomRight = $this.$colorGreenBottomRight * $par6; - $this.$colorGreenTopRight = $this.$colorGreenTopRight * $par6; - $this.$colorBlueTopLeft = $this.$colorBlueTopLeft * $par7; - $this.$colorBlueBottomLeft = $this.$colorBlueBottomLeft * $par7; - $this.$colorBlueBottomRight = $this.$colorBlueBottomRight * $par7; - $this.$colorBlueTopRight = $this.$colorBlueTopRight * $par7; - nms_RenderBlocks_renderFaceXPos($this, $par1Block, var$26, var$27, var$28, nms_BlockGrass_getIconSideOverlay()); - } - $var8 = 1; - } - $this.$enableAO = 0; - return $var8; -} -function nms_RenderBlocks_getAoBrightness($this, $par1, $par2, $par3, $par4) { - if (!$par1) - $par1 = $par4; - if (!$par2) - $par2 = $par4; - if (!$par3) - $par3 = $par4; - return ((($par1 + $par2 | 0) + $par3 | 0) + $par4 | 0) >> 2 & 16711935; -} -function nms_RenderBlocks_mixAoBrightness($this, $par1, $par2, $par3, $par4, $par5, $par7, $par9, $par11) { - return ((($par1 >> 16 & 255) * $par5 + ($par2 >> 16 & 255) * $par7 + ($par3 >> 16 & 255) * $par9 + ($par4 >> 16 & 255) * $par11 | 0) & 255) << 16 | (($par1 & 255) * $par5 + ($par2 & 255) * $par7 + ($par3 & 255) * $par9 + ($par4 & 255) * $par11 | 0) & 255; -} -function nms_RenderBlocks_renderStandardBlockWithColorMultiplier($this, $par1Block, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var10, $var12, $var13, $var14, $var15, $var16, var$16, $var11, var$18, var$19, var$20, var$21, $var26, $var28, var$24, var$25, var$26; - $this.$enableAO = 0; - nlea_Tessellator_$callClinit(); - $var8 = nlea_Tessellator_instance; - $var9 = 0; - $var10 = 0.5; - $var12 = 0.800000011920929; - $var13 = 0.6000000238418579; - $var14 = 1.0 * $par5; - $var15 = 1.0 * $par6; - $var16 = 1.0 * $par7; - nms_Block_$callClinit(); - if ($par1Block === nms_Block_grass) { - var$16 = $var10; - $var11 = $var12; - var$18 = $var13; - var$19 = $var10; - var$20 = $var12; - var$21 = $var13; - } else { - var$16 = $var10 * $par5; - $var11 = $var12 * $par5; - var$18 = $var13 * $par5; - var$19 = $var10 * $par6; - var$20 = $var12 * $par6; - var$21 = $var13 * $par6; - $var10 = $var10 * $par7; - $var12 = $var12 * $par7; - $var13 = $var13 * $par7; - } - $var26 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3 - 1 | 0, $par4, 0))) { - nlea_Tessellator_setBrightness($var8, $this.$renderMinY > 0.0 ? $var26 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 - 1 | 0, $par4)); - nlea_Tessellator_setColorOpaque_F($var8, var$16, var$19, $var10); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 0)); - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3 + 1 | 0, $par4, 1))) { - nlea_Tessellator_setBrightness($var8, $this.$renderMaxY < 1.0 ? $var26 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 + 1 | 0, $par4)); - nlea_Tessellator_setColorOpaque_F($var8, $var14, $var15, $var16); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 1)); - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 - 1 | 0, 2))) { - nlea_Tessellator_setBrightness($var8, $this.$renderMinZ > 0.0 ? $var26 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 - 1 | 0)); - nlea_Tessellator_setColorOpaque_F($var8, $var11, var$20, $var12); - $var28 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 2); - var$24 = $par2; - var$25 = $par3; - var$26 = $par4; - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, var$24, var$25, var$26, $var28); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var28.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - nlea_Tessellator_setColorOpaque_F($var8, $var11 * $par5, var$20 * $par6, $var12 * $par7); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, var$24, var$25, var$26, nms_BlockGrass_getIconSideOverlay()); - } - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 + 1 | 0, 3))) { - nlea_Tessellator_setBrightness($var8, $this.$renderMaxZ < 1.0 ? $var26 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 + 1 | 0)); - nlea_Tessellator_setColorOpaque_F($var8, $var11, var$20, $var12); - $var28 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 3); - var$24 = $par2; - var$25 = $par3; - var$26 = $par4; - nms_RenderBlocks_renderFaceZPos($this, $par1Block, var$24, var$25, var$26, $var28); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var28.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - nlea_Tessellator_setColorOpaque_F($var8, $var11 * $par5, var$20 * $par6, $var12 * $par7); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, var$24, var$25, var$26, nms_BlockGrass_getIconSideOverlay()); - } - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 - 1 | 0, $par3, $par4, 4))) { - nlea_Tessellator_setBrightness($var8, $this.$renderMinX > 0.0 ? $var26 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 - 1 | 0, $par3, $par4)); - nlea_Tessellator_setColorOpaque_F($var8, var$18, var$21, $var13); - $var28 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 4); - var$24 = $par2; - var$25 = $par3; - var$26 = $par4; - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, var$24, var$25, var$26, $var28); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var28.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - nlea_Tessellator_setColorOpaque_F($var8, var$18 * $par5, var$21 * $par6, $var13 * $par7); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, var$24, var$25, var$26, nms_BlockGrass_getIconSideOverlay()); - } - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 + 1 | 0, $par3, $par4, 5))) { - if ($this.$renderMaxX >= 1.0) - $var26 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - nlea_Tessellator_setBrightness($var8, $var26); - nlea_Tessellator_setColorOpaque_F($var8, var$18, var$21, $var13); - $var28 = nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 5); - var$24 = $par2; - var$25 = $par3; - var$26 = $par4; - nms_RenderBlocks_renderFaceXPos($this, $par1Block, var$24, var$25, var$26, $var28); - if (nms_RenderBlocks_fancyGrass && jl_String_equals($var28.$getIconName(), $rt_s(620)) && !nms_RenderBlocks_hasOverrideBlockTexture($this)) { - nlea_Tessellator_setColorOpaque_F($var8, var$18 * $par5, var$21 * $par6, $var13 * $par7); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, var$24, var$25, var$26, nms_BlockGrass_getIconSideOverlay()); - } - $var9 = 1; - } - return $var9; -} -function nms_RenderBlocks_renderBlockCocoa($this, $par1BlockCocoa, $par2, $par3, $par4) { - var $var5, $var9, $var8, $var6, $var7, $var11, $var10, var$12, $var12, var$14, $var18, $var20, $var22, $var24, $var26, $var28, $var14, $var16, $var32, $var34, $var36, $var38, $var40, $var42, var$29, var$30, var$31, var$32; - a: { - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var9 = $this.$blockAccess; - $var8 = $var9.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$var9.$getBlockId($par2, $par3, $par4)]); - $var5.$hasBrightness = 1; - $var5.$brightness = $var8; - nlea_Tessellator_setColorRGBA($var5, 255, 255, 255, 255); - $var6 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var7 = $var6 & 3; - $var8 = ($var6 & 12) >> 2; - $var9 = nms_BlockCocoa_func_94468_i_($par1BlockCocoa, $var8); - $var11 = $var8 * 2 | 0; - $var10 = 4 + $var11 | 0; - $var11 = 5 + $var11 | 0; - var$12 = $var10; - $var12 = 15.0 - var$12; - var$14 = $var11; - $var18 = 4.0 + var$14; - $var20 = $var9.$getInterpolatedU($var12); - $var22 = $var9.$getInterpolatedU(15.0); - $var24 = $var9.$getInterpolatedV(4.0); - $var26 = $var9.$getInterpolatedV($var18); - $var28 = 0.0; - switch ($var7) { - case 0: - $var28 = 8.0 - ($var10 / 2 | 0); - break a; - case 1: - $var28 = 1.0; - $var12 = 8.0 - ($var10 / 2 | 0); - break a; - case 2: - $var28 = 8.0 - ($var10 / 2 | 0); - $var12 = 1.0; - break a; - case 3: - $var14 = 8.0 - ($var10 / 2 | 0); - $var28 = $var12; - $var12 = $var14; - break a; - default: - } - $var12 = 0.0; - } - $var16 = $par2; - $var32 = $var16 + $var28 / 16.0; - $var34 = $var16 + ($var28 + var$12) / 16.0; - $var28 = $par3; - $var36 = $var28 + (12.0 - var$14) / 16.0; - $var38 = $var28 + 0.75; - var$14 = $par4; - $var40 = var$14 + $var12 / 16.0; - $var42 = var$14 + ($var12 + var$12) / 16.0; - $var5.$hasTexture = 1; - var$29 = $var20; - $var5.$textureU = var$29; - var$30 = $var26; - $var5.$textureV = var$30; - nlea_Tessellator_addVertex($var5, $var32, $var36, $var40); - $var5.$hasTexture = 1; - var$31 = $var22; - $var5.$textureU = var$31; - $var5.$textureV = var$30; - nlea_Tessellator_addVertex($var5, $var32, $var36, $var42); - $var5.$hasTexture = 1; - $var5.$textureU = var$31; - var$32 = $var24; - $var5.$textureV = var$32; - nlea_Tessellator_addVertex($var5, $var32, $var38, $var42); - $var5.$hasTexture = 1; - $var5.$textureU = var$29; - $var5.$textureV = var$32; - nlea_Tessellator_addVertex($var5, $var32, $var38, $var40); - $var5.$hasTexture = 1; - $var5.$textureU = var$29; - $var5.$textureV = var$30; - nlea_Tessellator_addVertex($var5, $var34, $var36, $var42); - $var5.$hasTexture = 1; - $var5.$textureU = var$31; - $var5.$textureV = var$30; - nlea_Tessellator_addVertex($var5, $var34, $var36, $var40); - $var5.$hasTexture = 1; - $var5.$textureU = var$31; - $var5.$textureV = var$32; - nlea_Tessellator_addVertex($var5, $var34, $var38, $var40); - $var5.$hasTexture = 1; - $var5.$textureU = var$29; - $var5.$textureV = var$32; - nlea_Tessellator_addVertex($var5, $var34, $var38, $var42); - $var5.$hasTexture = 1; - $var5.$textureU = var$29; - $var5.$textureV = var$30; - nlea_Tessellator_addVertex($var5, $var34, $var36, $var40); - $var5.$hasTexture = 1; - $var5.$textureU = var$31; - $var5.$textureV = var$30; - nlea_Tessellator_addVertex($var5, $var32, $var36, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, $var40, $var22, $var24); - nlea_Tessellator_addVertexWithUV($var5, $var34, $var38, $var40, $var20, $var24); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var36, $var42, $var20, $var26); - nlea_Tessellator_addVertexWithUV($var5, $var34, $var36, $var42, $var22, $var26); - nlea_Tessellator_addVertexWithUV($var5, $var34, $var38, $var42, $var22, $var24); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, $var42, $var20, $var24); - if ($var8 >= 2) - $var10 = $var10 - 1 | 0; - b: { - $var20 = $var9.$getMinU(); - $var14 = $var10; - var$12 = $var9.$getInterpolatedU($var14); - $var12 = $var9.$getMinV(); - $var14 = $var9.$getInterpolatedV($var14); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, $var42, $var20, $var14); - nlea_Tessellator_addVertexWithUV($var5, $var34, $var38, $var42, var$12, $var14); - nlea_Tessellator_addVertexWithUV($var5, $var34, $var38, $var40, var$12, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, $var40, $var20, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var36, $var40, $var20, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var34, $var36, $var40, var$12, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var34, $var36, $var42, var$12, $var14); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var36, $var42, $var20, $var14); - $var14 = $var9.$getInterpolatedU(12.0); - var$12 = $var9.$getMaxU(); - $var12 = $var9.$getMinV(); - $var40 = $var9.$getInterpolatedV(4.0); - $var42 = 8.0; - $var20 = 0.0; - switch ($var7) { - case 0: - break; - case 1: - $var42 = 0.0; - $var20 = 8.0; - $var32 = var$12; - var$12 = $var14; - $var14 = $var32; - break b; - case 2: - $var42 = 8.0; - $var20 = 0.0; - $var32 = var$12; - var$12 = $var14; - $var14 = $var32; - break b; - case 3: - $var42 = 12.0; - $var20 = 8.0; - break b; - default: - $var32 = var$12; - var$12 = $var14; - $var14 = $var32; - break b; - } - $var42 = 8.0; - $var20 = 12.0; - } - $var32 = $var16 + $var42 / 16.0; - $var42 = $var16 + ($var42 + 4.0) / 16.0; - $var34 = $var28 + 1.0; - $var28 = var$14 + $var20 / 16.0; - var$14 = var$14 + ($var20 + 4.0) / 16.0; - if (!($var7 != 2 && $var7)) { - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, $var28, $var14, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, var$14, var$12, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var34, var$14, var$12, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var34, $var28, $var14, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, var$14, var$12, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, $var28, $var14, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var34, $var28, $var14, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var34, var$14, var$12, $var12); - } else if (!($var7 != 1 && $var7 != 3)) { - nlea_Tessellator_addVertexWithUV($var5, $var42, $var38, $var28, var$12, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, $var28, $var14, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var34, $var28, $var14, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var42, $var34, $var28, var$12, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var38, $var28, $var14, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var42, $var38, $var28, var$12, $var40); - nlea_Tessellator_addVertexWithUV($var5, $var42, $var34, $var28, var$12, $var12); - nlea_Tessellator_addVertexWithUV($var5, $var32, $var34, $var28, $var14, $var12); - } - return 1; -} -function nms_RenderBlocks_renderBlockBeacon($this, $par1BlockBeacon, $par2, $par3, $par4) { - nms_Block_$callClinit(); - $this.$overrideBlockTexture = nms_RenderBlocks_getIconSafe($this, nms_Block_obsidian.$getIcon(1, 0)); - nms_RenderBlocks_setRenderBounds($this, 0.125, 0.0062500000931322575, 0.125, 0.875, 0.1875, 0.875); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockBeacon, $par2, $par3, $par4); - $this.$overrideBlockTexture = nms_RenderBlocks_getIconSafe($this, nms_Block_glass.$getIcon(1, 0)); - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockBeacon, $par2, $par3, $par4); - $this.$overrideBlockTexture = $par1BlockBeacon.$theIcon1; - nms_RenderBlocks_setRenderBounds($this, 0.1875, 0.1875, 0.1875, 0.8125, 0.875, 0.8125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockBeacon, $par2, $par3, $par4); - $this.$overrideBlockTexture = null; - return 1; -} -function nms_RenderBlocks_renderBlockCactus($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var9, $var10, $var11, var$9; - $var5 = $par1Block.$colorMultiplier($this.$blockAccess, $par2, $par3, $par4); - $var9 = ($var5 >> 16 & 255) / 255.0; - $var10 = ($var5 >> 8 & 255) / 255.0; - $var11 = ($var5 & 255) / 255.0; - if (nms_EntityRenderer_anaglyphEnable) { - var$9 = $var9 * 30.0; - $var9 = (var$9 + $var10 * 59.0 + $var11 * 11.0) / 100.0; - $var10 = (var$9 + $var10 * 70.0) / 100.0; - $var11 = (var$9 + $var11 * 70.0) / 100.0; - } - return nms_RenderBlocks_renderBlockCactusImpl($this, $par1Block, $par2, $par3, $par4, $var9, $var10, $var11); -} -function nms_RenderBlocks_renderBlockCactusImpl($this, $par1Block, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var14, $var15, $var16, $var17, $var18, $var19, $var20, $var21, $var22, $var23, $var24, $var25, $var28, var$23, var$24; - nlea_Tessellator_$callClinit(); - $var8 = nlea_Tessellator_instance; - $var9 = 0; - $var14 = 0.5 * $par5; - $var15 = 1.0 * $par5; - $var16 = 0.800000011920929 * $par5; - $var17 = 0.6000000238418579 * $par5; - $var18 = 0.5 * $par6; - $var19 = 1.0 * $par6; - $var20 = 0.800000011920929 * $par6; - $var21 = 0.6000000238418579 * $par6; - $var22 = 0.5 * $par7; - $var23 = 1.0 * $par7; - $var24 = 0.800000011920929 * $par7; - $var25 = 0.6000000238418579 * $par7; - $var28 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3 - 1 | 0, $par4, 0))) { - var$23 = $this.$renderMinY > 0.0 ? $var28 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 - 1 | 0, $par4); - $var8.$hasBrightness = 1; - $var8.$brightness = var$23; - nlea_Tessellator_setColorRGBA($var8, $var14 * 255.0 | 0, $var18 * 255.0 | 0, $var22 * 255.0 | 0, 255); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($this.$blockAccess, $par2, $par3, $par4, 0))); - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3 + 1 | 0, $par4, 1))) { - var$23 = $this.$renderMaxY < 1.0 ? $var28 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 + 1 | 0, $par4); - $var8.$hasBrightness = 1; - $var8.$brightness = var$23; - nlea_Tessellator_setColorRGBA($var8, $var15 * 255.0 | 0, $var19 * 255.0 | 0, $var23 * 255.0 | 0, 255); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($this.$blockAccess, $par2, $par3, $par4, 1))); - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 - 1 | 0, 2))) { - var$24 = $this.$renderMinZ > 0.0 ? $var28 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 - 1 | 0); - $var8.$hasBrightness = 1; - $var8.$brightness = var$24; - nlea_Tessellator_setColorRGBA($var8, $var16 * 255.0 | 0, $var20 * 255.0 | 0, $var24 * 255.0 | 0, 255); - $var8.$xOffset = $var8.$xOffset + 0.0; - $var8.$yOffset = $var8.$yOffset + 0.0; - $var8.$zOffset = $var8.$zOffset + 0.0625; - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 2)); - nlea_Tessellator_addTranslation($var8, 0.0, 0.0, (-0.0625)); - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2, $par3, $par4 + 1 | 0, 3))) { - nlea_Tessellator_setBrightness($var8, $this.$renderMaxZ < 1.0 ? $var28 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 + 1 | 0)); - nlea_Tessellator_setColorOpaque_F($var8, $var16, $var20, $var24); - nlea_Tessellator_addTranslation($var8, 0.0, 0.0, (-0.0625)); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 3)); - nlea_Tessellator_addTranslation($var8, 0.0, 0.0, 0.0625); - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 - 1 | 0, $par3, $par4, 4))) { - nlea_Tessellator_setBrightness($var8, $this.$renderMinX > 0.0 ? $var28 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 - 1 | 0, $par3, $par4)); - nlea_Tessellator_setColorOpaque_F($var8, $var17, $var21, $var25); - nlea_Tessellator_addTranslation($var8, 0.0625, 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 4)); - nlea_Tessellator_addTranslation($var8, (-0.0625), 0.0, 0.0); - $var9 = 1; - } - if (!(!$this.$renderAllFaces && !$par1Block.$shouldSideBeRendered($this.$blockAccess, $par2 + 1 | 0, $par3, $par4, 5))) { - if ($this.$renderMaxX >= 1.0) - $var28 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - nlea_Tessellator_setBrightness($var8, $var28); - nlea_Tessellator_setColorOpaque_F($var8, $var17, $var21, $var25); - nlea_Tessellator_addTranslation($var8, (-0.0625), 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, $par2, $par3, $par4, nms_RenderBlocks_getBlockIcon($this, $par1Block, $this.$blockAccess, $par2, $par3, $par4, 5)); - nlea_Tessellator_addTranslation($var8, 0.0625, 0.0, 0.0); - $var9 = 1; - } - return $var9; -} -function nms_RenderBlocks_renderBlockFence($this, $par1BlockFence, $par2, $par3, $par4) { - var var$5, $var8, $var9, var$8, $var10, $var12, $var11, $var13, $var18, $var19, $var16, $var17; - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.0, 0.375, 0.625, 1.0, 0.625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFence, $par2, $par3, $par4); - var$5 = 1; - $var8 = 0; - $var9 = 0; - var$8 = $this.$blockAccess; - $var10 = $par2 - 1 | 0; - if (!(!nms_BlockFence_canConnectFenceTo($par1BlockFence, var$8, $var10, $par3, $par4) && !nms_BlockFence_canConnectFenceTo($par1BlockFence, $this.$blockAccess, $par2 + 1 | 0, $par3, $par4))) - $var8 = 1; - var$8 = $this.$blockAccess; - $var12 = $par4 - 1 | 0; - if (!(!nms_BlockFence_canConnectFenceTo($par1BlockFence, var$8, $par2, $par3, $var12) && !nms_BlockFence_canConnectFenceTo($par1BlockFence, $this.$blockAccess, $par2, $par3, $par4 + 1 | 0))) - $var9 = 1; - $var10 = nms_BlockFence_canConnectFenceTo($par1BlockFence, $this.$blockAccess, $var10, $par3, $par4); - $var11 = nms_BlockFence_canConnectFenceTo($par1BlockFence, $this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - $var12 = nms_BlockFence_canConnectFenceTo($par1BlockFence, $this.$blockAccess, $par2, $par3, $var12); - $var13 = nms_BlockFence_canConnectFenceTo($par1BlockFence, $this.$blockAccess, $par2, $par3, $par4 + 1 | 0); - if (!$var8 && !$var9) - $var8 = 1; - $var18 = 0.4375; - $var19 = 0.5625; - $var16 = !$var10 ? $var18 : 0.0; - $var17 = !$var11 ? $var19 : 1.0; - if ($var12) - $var18 = 0.0; - if ($var13) - $var19 = 1.0; - if ($var8) { - nms_RenderBlocks_setRenderBounds($this, $var16, 0.75, 0.4375, $var17, 0.9375, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFence, $par2, $par3, $par4); - var$5 = 1; - } - if ($var9) { - nms_RenderBlocks_setRenderBounds($this, 0.4375, 0.75, $var18, 0.5625, 0.9375, $var19); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFence, $par2, $par3, $par4); - var$5 = 1; - } - if ($var8) { - nms_RenderBlocks_setRenderBounds($this, $var16, 0.375, 0.4375, $var17, 0.5625, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFence, $par2, $par3, $par4); - var$5 = 1; - } - if ($var9) { - nms_RenderBlocks_setRenderBounds($this, 0.4375, 0.375, $var18, 0.5625, 0.5625, $var19); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFence, $par2, $par3, $par4); - var$5 = 1; - } - nms_BlockFence_setBlockBoundsBasedOnState($par1BlockFence, $this.$blockAccess, $par2, $par3, $par4); - return var$5; -} -function nms_RenderBlocks_renderBlockWall($this, $par1BlockWall, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var11; - $var5 = nms_BlockWall_canConnectWallTo($par1BlockWall, $this.$blockAccess, $par2 - 1 | 0, $par3, $par4); - $var6 = nms_BlockWall_canConnectWallTo($par1BlockWall, $this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - $var7 = nms_BlockWall_canConnectWallTo($par1BlockWall, $this.$blockAccess, $par2, $par3, $par4 - 1 | 0); - $var8 = nms_BlockWall_canConnectWallTo($par1BlockWall, $this.$blockAccess, $par2, $par3, $par4 + 1 | 0); - $var9 = $var7 && $var8 && !$var5 && !$var6 ? 1 : 0; - $var10 = !$var7 && !$var8 && $var5 && $var6 ? 1 : 0; - $var11 = $this.$blockAccess.$isAirBlock($par2, $par3 + 1 | 0, $par4); - if (!(!$var9 && !$var10) && $var11) { - if (!$var9) { - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.3125, 1.0, 0.8125, 0.6875); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockWall, $par2, $par3, $par4); - } else { - nms_RenderBlocks_setRenderBounds($this, 0.3125, 0.0, 0.0, 0.6875, 0.8125, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockWall, $par2, $par3, $par4); - } - } else { - nms_RenderBlocks_setRenderBounds($this, 0.25, 0.0, 0.25, 0.75, 1.0, 0.75); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockWall, $par2, $par3, $par4); - if ($var5) { - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.3125, 0.25, 0.8125, 0.6875); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockWall, $par2, $par3, $par4); - } - if ($var6) { - nms_RenderBlocks_setRenderBounds($this, 0.75, 0.0, 0.3125, 1.0, 0.8125, 0.6875); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockWall, $par2, $par3, $par4); - } - if ($var7) { - nms_RenderBlocks_setRenderBounds($this, 0.3125, 0.0, 0.0, 0.6875, 0.8125, 0.25); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockWall, $par2, $par3, $par4); - } - if ($var8) { - nms_RenderBlocks_setRenderBounds($this, 0.3125, 0.0, 0.75, 0.6875, 0.8125, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockWall, $par2, $par3, $par4); - } - } - nms_BlockWall_setBlockBoundsBasedOnState($par1BlockWall, $this.$blockAccess, $par2, $par3, $par4); - return 1; -} -function nms_RenderBlocks_renderBlockDragonEgg($this, $par1BlockDragonEgg, $par2, $par3, $par4) { - var $var6, $var7, $var8, $var9, $var10, $var11, $var12, var$12, var$13, var$14; - $var6 = 0; - $var7 = 0; - while ($var7 < 8) { - $var8 = 0; - $var9 = 1; - if (!$var7) - $var8 = 2; - if ($var7 == 1) - $var8 = 3; - if ($var7 == 2) - $var8 = 4; - if ($var7 == 3) { - $var8 = 5; - $var9 = 2; - } - if ($var7 == 4) { - $var8 = 6; - $var9 = 3; - } - if ($var7 == 5) { - $var8 = 7; - $var9 = 5; - } - if ($var7 == 6) { - $var8 = 6; - $var9 = 2; - } - if ($var7 == 7) - $var8 = 3; - $var10 = $var8 / 16.0; - $var11 = 1.0 - $var6 / 16.0; - $var6 = $var6 + $var9 | 0; - $var12 = 1.0 - $var6 / 16.0; - var$12 = 0.5 - $var10; - var$13 = $var12; - var$14 = 0.5 + $var10; - nms_RenderBlocks_setRenderBounds($this, var$12, var$13, var$12, var$14, $var11, var$14); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockDragonEgg, $par2, $par3, $par4); - $var7 = $var7 + 1 | 0; - } - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - return 1; -} -function nms_RenderBlocks_renderBlockFenceGate($this, $par1BlockFenceGate, $par2, $par3, $par4) { - var $var6, $var7, $var8, $var9, $var10, $var11, $var12, $var13, $var14, var$14, var$15, var$16, var$17, var$18, var$19, var$20, var$21; - a: { - b: { - $var6 = $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4); - $var7 = nms_BlockFenceGate_isFenceGateOpen($var6); - $var8 = nms_BlockDirectional_getDirection($var6); - $var9 = 0.375; - $var10 = 0.5625; - $var11 = 0.75; - $var12 = 0.9375; - $var13 = 0.3125; - $var14 = 1.0; - $var6 = $rt_compare($var8, 2); - if (!($var6 && $var8)) { - var$14 = $this.$blockAccess.$getBlockId($par2 - 1 | 0, $par3, $par4); - nms_Block_$callClinit(); - if (var$14 == nms_Block_cobblestoneWall.$blockID && $this.$blockAccess.$getBlockId($par2 + 1 | 0, $par3, $par4) == nms_Block_cobblestoneWall.$blockID) - break b; - } - if ($var8 != 3 && $var8 != 1) - break a; - var$14 = $this.$blockAccess.$getBlockId($par2, $par3, $par4 - 1 | 0); - nms_Block_$callClinit(); - if (var$14 != nms_Block_cobblestoneWall.$blockID) - break a; - if ($this.$blockAccess.$getBlockId($par2, $par3, $par4 + 1 | 0) != nms_Block_cobblestoneWall.$blockID) - break a; - } - $var9 = 0.1875; - $var10 = 0.375; - $var11 = 0.5625; - $var12 = 0.75; - $var13 = 0.125; - $var14 = 0.8125; - } - $this.$renderAllFaces = 1; - var$15 = $rt_compare($var8, 3); - if (var$15 && $var8 != 1) { - var$16 = $var13; - var$17 = $var14; - nms_RenderBlocks_setRenderBounds($this, 0.0, var$16, 0.4375, 0.125, var$17, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.875, var$16, 0.4375, 1.0, var$17, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - } else { - $this.$uvRotateTop = 1; - var$16 = $var13; - var$18 = $var14; - nms_RenderBlocks_setRenderBounds($this, 0.4375, var$16, 0.0, 0.5625, var$18, 0.125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.4375, var$16, 0.875, 0.5625, var$18, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - $this.$uvRotateTop = 0; - } - if (!$var7) { - if (var$15 && $var8 != 1) { - var$16 = $var9; - var$17 = $var12; - nms_RenderBlocks_setRenderBounds($this, 0.375, var$16, 0.4375, 0.5, var$17, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.5, var$16, 0.4375, 0.625, var$17, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$19 = $var10; - nms_RenderBlocks_setRenderBounds($this, 0.625, var$16, 0.4375, 0.875, var$19, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$20 = $var11; - nms_RenderBlocks_setRenderBounds($this, 0.625, var$20, 0.4375, 0.875, var$17, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.125, var$16, 0.4375, 0.375, var$19, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.125, var$20, 0.4375, 0.375, var$17, 0.5625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - } else { - $this.$uvRotateTop = 1; - var$16 = $var9; - var$17 = $var12; - nms_RenderBlocks_setRenderBounds($this, 0.4375, var$16, 0.375, 0.5625, var$17, 0.5); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.4375, var$16, 0.5, 0.5625, var$17, 0.625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$21 = $var10; - nms_RenderBlocks_setRenderBounds($this, 0.4375, var$16, 0.625, 0.5625, var$21, 0.875); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$20 = $var11; - nms_RenderBlocks_setRenderBounds($this, 0.4375, var$20, 0.625, 0.5625, var$17, 0.875); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.4375, var$16, 0.125, 0.5625, var$21, 0.375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.4375, var$20, 0.125, 0.5625, var$17, 0.375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - } - } else { - if (!($var6 && $var8)) - $this.$uvRotateTop = 1; - if (!var$15) { - var$16 = $var9; - var$17 = $var12; - nms_RenderBlocks_setRenderBounds($this, 0.8125, var$16, 0.0, 0.9375, var$17, 0.125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.8125, var$16, 0.875, 0.9375, var$17, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$21 = $var10; - nms_RenderBlocks_setRenderBounds($this, 0.5625, var$16, 0.0, 0.8125, var$21, 0.125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.5625, var$16, 0.875, 0.8125, var$21, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$16 = $var11; - nms_RenderBlocks_setRenderBounds($this, 0.5625, var$16, 0.0, 0.8125, var$17, 0.125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.5625, var$16, 0.875, 0.8125, var$17, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - } else if ($var8 == 1) { - var$16 = $var9; - var$17 = $var12; - nms_RenderBlocks_setRenderBounds($this, 0.0625, var$16, 0.0, 0.1875, var$17, 0.125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.0625, var$16, 0.875, 0.1875, var$17, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$21 = $var10; - nms_RenderBlocks_setRenderBounds($this, 0.1875, var$16, 0.0, 0.4375, var$21, 0.125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.1875, var$16, 0.875, 0.4375, var$21, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$16 = $var11; - nms_RenderBlocks_setRenderBounds($this, 0.1875, var$16, 0.0, 0.4375, var$17, 0.125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.1875, var$16, 0.875, 0.4375, var$17, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - } else if (!$var8) { - var$16 = $var9; - var$18 = $var12; - nms_RenderBlocks_setRenderBounds($this, 0.0, var$16, 0.8125, 0.125, var$18, 0.9375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.875, var$16, 0.8125, 1.0, var$18, 0.9375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$21 = $var10; - nms_RenderBlocks_setRenderBounds($this, 0.0, var$16, 0.5625, 0.125, var$21, 0.8125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.875, var$16, 0.5625, 1.0, var$21, 0.8125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$16 = $var11; - nms_RenderBlocks_setRenderBounds($this, 0.0, var$16, 0.5625, 0.125, var$18, 0.8125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.875, var$16, 0.5625, 1.0, var$18, 0.8125); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - } else if (!$var6) { - var$16 = $var9; - var$17 = $var12; - nms_RenderBlocks_setRenderBounds($this, 0.0, var$16, 0.0625, 0.125, var$17, 0.1875); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.875, var$16, 0.0625, 1.0, var$17, 0.1875); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$21 = $var10; - nms_RenderBlocks_setRenderBounds($this, 0.0, var$16, 0.1875, 0.125, var$21, 0.4375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.875, var$16, 0.1875, 1.0, var$21, 0.4375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - var$16 = $var11; - nms_RenderBlocks_setRenderBounds($this, 0.0, var$16, 0.1875, 0.125, var$17, 0.4375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBounds($this, 0.875, var$16, 0.1875, 1.0, var$17, 0.4375); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockFenceGate, $par2, $par3, $par4); - } - } - $this.$renderAllFaces = 0; - $this.$uvRotateTop = 0; - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - return 1; -} -function nms_RenderBlocks_renderBlockHopper($this, $par1BlockHopper, $par2, $par3, $par4) { - var $var5, var$6, var$7, $var13, $var11, var$10, $var6; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - var$6 = $this.$blockAccess; - var$7 = var$6.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[var$6.$getBlockId($par2, $par3, $par4)]); - $var5.$hasBrightness = 1; - $var5.$brightness = var$7; - $var13 = 1.0; - if (!nms_EntityRenderer_anaglyphEnable) { - $var11 = $var13; - var$10 = $var13; - } else { - $var11 = 1.0; - $var13 = 1.0; - var$10 = $var13; - } - $var11 = 1.0 * $var11; - var$10 = 1.0 * var$10; - $var6 = 1.0 * $var13; - nlea_Tessellator_setColorRGBA($var5, $var11 * 255.0 | 0, var$10 * 255.0 | 0, $var6 * 255.0 | 0, 255); - return nms_RenderBlocks_renderBlockHopperMetadata($this, $par1BlockHopper, $par2, $par3, $par4, $this.$blockAccess.$getBlockMetadata($par2, $par3, $par4), 0); -} -function nms_RenderBlocks_renderBlockHopperMetadata($this, $par1BlockHopper, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, $var12, $var16, $var17, $var18, var$13, $var24, $var25, var$16, $var26, $var27, $var20; - nlea_Tessellator_$callClinit(); - $var7 = nlea_Tessellator_instance; - $var8 = nms_BlockHopper_getDirectionFromMetadata($par5); - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.625, 0.0, 1.0, 1.0, 1.0); - if (!$par6) - nms_RenderBlocks_renderStandardBlock($this, $par1BlockHopper, $par2, $par3, $par4); - else { - nlea_Tessellator_startDrawingQuads($var7); - nlea_Tessellator_setNormal($var7, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1BlockHopper, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1BlockHopper, 0, $par5)); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nlea_Tessellator_setNormal($var7, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1BlockHopper, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1BlockHopper, 1, $par5)); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nlea_Tessellator_setNormal($var7, 0.0, 0.0, (-1.0)); - nms_RenderBlocks_renderFaceZNeg($this, $par1BlockHopper, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1BlockHopper, 2, $par5)); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nlea_Tessellator_setNormal($var7, 0.0, 0.0, 1.0); - nms_RenderBlocks_renderFaceZPos($this, $par1BlockHopper, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1BlockHopper, 3, $par5)); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nlea_Tessellator_setNormal($var7, (-1.0), 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1BlockHopper, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1BlockHopper, 4, $par5)); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nlea_Tessellator_setNormal($var7, 1.0, 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1BlockHopper, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1BlockHopper, 5, $par5)); - nlea_Tessellator_draw($var7); - } - if (!$par6) { - nlea_Tessellator_setBrightness($var7, nms_Block_getMixedBrightnessForBlock($par1BlockHopper, $this.$blockAccess, $par2, $par3, $par4)); - $var12 = nms_Block_colorMultiplier($par1BlockHopper, $this.$blockAccess, $par2, $par3, $par4); - $var16 = ($var12 >> 16 & 255) / 255.0; - $var17 = ($var12 >> 8 & 255) / 255.0; - $var18 = ($var12 & 255) / 255.0; - if (nms_EntityRenderer_anaglyphEnable) { - var$13 = $var16 * 30.0; - $var16 = (var$13 + $var17 * 59.0 + $var18 * 11.0) / 100.0; - $var17 = (var$13 + $var17 * 70.0) / 100.0; - $var18 = (var$13 + $var18 * 70.0) / 100.0; - } - nlea_Tessellator_setColorOpaque_F($var7, 1.0 * $var16, 1.0 * $var17, 1.0 * $var18); - } - $var24 = nms_BlockHopper_getHopperIcon($rt_s(621)); - $var25 = nms_BlockHopper_getHopperIcon($rt_s(622)); - if ($par6) { - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceXPos($this, $par1BlockHopper, (-0.875), 0.0, 0.0, $var24); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceXNeg($this, $par1BlockHopper, 0.875, 0.0, 0.0, $var24); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceZPos($this, $par1BlockHopper, 0.0, 0.0, (-0.875), $var24); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceZNeg($this, $par1BlockHopper, 0.0, 0.0, 0.875, $var24); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceYPos($this, $par1BlockHopper, 0.0, (-0.375), 0.0, $var25); - nlea_Tessellator_draw($var7); - } else { - var$16 = $par2; - $var26 = var$16 - 1.0 + 0.125; - $var27 = $par3; - $var20 = $par4; - nms_RenderBlocks_renderFaceXPos($this, $par1BlockHopper, $var26, $var27, $var20, $var24); - nms_RenderBlocks_renderFaceXNeg($this, $par1BlockHopper, var$16 + 1.0 - 0.125, $var27, $var20, $var24); - $var26 = $par2; - var$13 = $par4; - nms_RenderBlocks_renderFaceZPos($this, $par1BlockHopper, $var26, $var27, var$13 - 1.0 + 0.125, $var24); - nms_RenderBlocks_renderFaceZNeg($this, $par1BlockHopper, $var26, $var27, var$13 + 1.0 - 0.125, $var24); - nms_RenderBlocks_renderFaceYPos($this, $par1BlockHopper, $var26, $par3 - 1.0 + 0.625, $var20, $var25); - } - nms_RenderBlocks_setOverrideBlockTexture($this, $var24); - nms_RenderBlocks_setRenderBounds($this, 0.25, 0.25, 0.25, 0.75, 0.623, 0.75); - if (!$par6) - nms_RenderBlocks_renderStandardBlock($this, $par1BlockHopper, $par2, $par3, $par4); - else { - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceXPos($this, $par1BlockHopper, 0.0, 0.0, 0.0, $var24); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceXNeg($this, $par1BlockHopper, 0.0, 0.0, 0.0, $var24); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceZPos($this, $par1BlockHopper, 0.0, 0.0, 0.0, $var24); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceZNeg($this, $par1BlockHopper, 0.0, 0.0, 0.0, $var24); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceYPos($this, $par1BlockHopper, 0.0, 0.0, 0.0, $var24); - nlea_Tessellator_draw($var7); - nlea_Tessellator_startDrawingQuads($var7); - nms_RenderBlocks_renderFaceYNeg($this, $par1BlockHopper, 0.0, 0.0, 0.0, $var24); - nlea_Tessellator_draw($var7); - } - if (!$par6) { - nms_RenderBlocks_setOverrideBlockTexture($this, $var24); - if (!$var8) { - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.0, 0.375, 0.625, 0.25, 0.625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockHopper, $par2, $par3, $par4); - } - if ($var8 == 2) { - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.25, 0.0, 0.625, 0.5, 0.25); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockHopper, $par2, $par3, $par4); - } - if ($var8 == 3) { - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.25, 0.75, 0.625, 0.5, 1.0); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockHopper, $par2, $par3, $par4); - } - if ($var8 == 4) { - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.25, 0.375, 0.25, 0.5, 0.625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockHopper, $par2, $par3, $par4); - } - if ($var8 == 5) { - nms_RenderBlocks_setRenderBounds($this, 0.75, 0.25, 0.375, 1.0, 0.5, 0.625); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockHopper, $par2, $par3, $par4); - } - } - nms_RenderBlocks_clearOverrideBlockTexture($this); - return 1; -} -function nms_RenderBlocks_renderBlockStairs($this, $par1BlockStairs, $par2, $par3, $par4) { - var $var5; - nms_BlockStairs_func_82541_d($par1BlockStairs, $this.$blockAccess, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBoundsFromBlock($this, $par1BlockStairs); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockStairs, $par2, $par3, $par4); - $var5 = nms_BlockStairs_func_82542_g($par1BlockStairs, $this.$blockAccess, $par2, $par3, $par4); - nms_RenderBlocks_setRenderBoundsFromBlock($this, $par1BlockStairs); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockStairs, $par2, $par3, $par4); - if ($var5 && nms_BlockStairs_func_82544_h($par1BlockStairs, $this.$blockAccess, $par2, $par3, $par4)) { - nms_RenderBlocks_setRenderBoundsFromBlock($this, $par1BlockStairs); - nms_RenderBlocks_renderStandardBlock($this, $par1BlockStairs, $par2, $par3, $par4); - } - return 1; -} -function nms_RenderBlocks_renderBlockDoor($this, $par1Block, $par2, $par3, $par4) { - var $var5, $var12, $var6, var$8, var$9, var$10; - a: { - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - if (!($this.$blockAccess.$getBlockMetadata($par2, $par3, $par4) & 8)) { - if ($this.$blockAccess.$getBlockId($par2, $par3 + 1 | 0, $par4) == $par1Block.$blockID) - break a; - return 0; - } - if ($this.$blockAccess.$getBlockId($par2, $par3 - 1 | 0, $par4) != $par1Block.$blockID) - return 0; - } - $var12 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4); - $var6 = $this.$renderMinY > 0.0 ? $var12 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 - 1 | 0, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = $var6; - nlea_Tessellator_setColorRGBA($var5, 127, 127, 127, 255); - var$8 = $par2; - var$9 = $par3; - var$10 = $par4; - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, var$8, var$9, var$10, nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($this.$blockAccess, $par2, $par3, $par4, 0))); - $var6 = $this.$renderMaxY < 1.0 ? $var12 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3 + 1 | 0, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = $var6; - nlea_Tessellator_setColorRGBA($var5, 255, 255, 255, 255); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, var$8, var$9, var$10, nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($this.$blockAccess, $par2, $par3, $par4, 1))); - $var6 = $this.$renderMinZ > 0.0 ? $var12 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 - 1 | 0); - $var5.$hasBrightness = 1; - $var5.$brightness = $var6; - nlea_Tessellator_setColorRGBA($var5, 204, 204, 204, 255); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, var$8, var$9, var$10, nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($this.$blockAccess, $par2, $par3, $par4, 2))); - $this.$flipTexture = 0; - $var6 = $this.$renderMaxZ < 1.0 ? $var12 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2, $par3, $par4 + 1 | 0); - $var5.$hasBrightness = 1; - $var5.$brightness = $var6; - nlea_Tessellator_setColorRGBA($var5, 204, 204, 204, 255); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, var$8, var$9, var$10, nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($this.$blockAccess, $par2, $par3, $par4, 3))); - $this.$flipTexture = 0; - $var6 = $this.$renderMinX > 0.0 ? $var12 : $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 - 1 | 0, $par3, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = $var6; - nlea_Tessellator_setColorRGBA($var5, 153, 153, 153, 255); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, var$8, var$9, var$10, nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($this.$blockAccess, $par2, $par3, $par4, 4))); - $this.$flipTexture = 0; - if ($this.$renderMaxX >= 1.0) - $var12 = $par1Block.$getMixedBrightnessForBlock($this.$blockAccess, $par2 + 1 | 0, $par3, $par4); - $var5.$hasBrightness = 1; - $var5.$brightness = $var12; - nlea_Tessellator_setColorRGBA($var5, 153, 153, 153, 255); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, var$8, var$9, var$10, nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($this.$blockAccess, $par2, $par3, $par4, 5))); - $this.$flipTexture = 0; - return 1; -} -function nms_RenderBlocks_renderFaceYNeg($this, $par1Block, $par2, $par4, $par6, $par8Icon) { - var $var9, $var10, $var12, $var14, $var16, var$11, var$12, var$13, var$14, $var26, $var28, $var30, $var32, $var34, var$20; - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - if ($this.$overrideBlockTexture === null ? 0 : 1) - $par8Icon = $this.$overrideBlockTexture; - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxX * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMinZ * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMaxZ * 16.0); - if (!($this.$renderMinX >= 0.0 && $this.$renderMaxX <= 1.0)) { - $var10 = $par8Icon.$getMinU(); - $var12 = $par8Icon.$getMaxU(); - } - if (!($this.$renderMinZ >= 0.0 && $this.$renderMaxZ <= 1.0)) { - $var14 = $par8Icon.$getMinV(); - $var16 = $par8Icon.$getMaxV(); - } - if ($this.$uvRotateBottom == 2) { - $var12 = $par8Icon.$getInterpolatedU($this.$renderMinZ * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxX * 16.0); - $var10 = $par8Icon.$getInterpolatedU($this.$renderMaxZ * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinX * 16.0); - var$11 = $var12; - var$12 = $var16; - var$13 = $var10; - var$14 = $var14; - } else if ($this.$uvRotateBottom == 1) { - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxZ * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinZ * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMaxX * 16.0); - var$11 = $var12; - var$12 = $var16; - var$13 = $var10; - var$14 = $var14; - } else if ($this.$uvRotateBottom != 3) { - var$11 = $var10; - var$12 = $var14; - var$13 = $var12; - var$14 = $var16; - } else { - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxX * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinZ * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxZ * 16.0); - var$11 = $var10; - var$12 = $var14; - var$13 = $var12; - var$14 = $var16; - } - $var26 = $par2 + $this.$renderMinX; - $var28 = $par2 + $this.$renderMaxX; - $var30 = $par4 + $this.$renderMinY; - $var32 = $par6 + $this.$renderMinZ; - $var34 = $par6 + $this.$renderMaxZ; - if (!$this.$enableAO) { - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var32); - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var32); - $var9.$hasTexture = 1; - $var9.$textureU = var$13; - $var9.$textureV = var$14; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var34); - } else { - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedTopLeft * 255.0 | 0, $this.$colorGreenTopLeft * 255.0 | 0, $this.$colorBlueTopLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessTopLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var34); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomLeft * 255.0 | 0, $this.$colorGreenBottomLeft * 255.0 | 0, $this.$colorBlueBottomLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var32); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomRight * 255.0 | 0, $this.$colorGreenBottomRight * 255.0 | 0, $this.$colorBlueBottomRight * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomRight; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var32); - nlea_Tessellator_setColorOpaque_F($var9, $this.$colorRedTopRight, $this.$colorGreenTopRight, $this.$colorBlueTopRight); - var$20 = $this.$brightnessTopRight; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - nlea_Tessellator_addVertexWithUV($var9, $var28, $var30, $var34, var$13, var$14); - } -} -function nms_RenderBlocks_renderFaceYPos($this, $par1Block, $par2, $par4, $par6, $par8Icon) { - var $var9, $var10, $var12, $var14, $var16, var$11, var$12, var$13, var$14, $var26, $var28, $var30, $var32, $var34, var$20; - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - if ($this.$overrideBlockTexture === null ? 0 : 1) - $par8Icon = $this.$overrideBlockTexture; - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxX * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMinZ * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMaxZ * 16.0); - if (!($this.$renderMinX >= 0.0 && $this.$renderMaxX <= 1.0)) { - $var10 = $par8Icon.$getMinU(); - $var12 = $par8Icon.$getMaxU(); - } - if (!($this.$renderMinZ >= 0.0 && $this.$renderMaxZ <= 1.0)) { - $var14 = $par8Icon.$getMinV(); - $var16 = $par8Icon.$getMaxV(); - } - if ($this.$uvRotateTop == 1) { - $var12 = $par8Icon.$getInterpolatedU($this.$renderMinZ * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxX * 16.0); - $var10 = $par8Icon.$getInterpolatedU($this.$renderMaxZ * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinX * 16.0); - var$11 = $var12; - var$12 = $var16; - var$13 = $var10; - var$14 = $var14; - } else if ($this.$uvRotateTop == 2) { - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxZ * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinZ * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMaxX * 16.0); - var$11 = $var12; - var$12 = $var16; - var$13 = $var10; - var$14 = $var14; - } else if ($this.$uvRotateTop != 3) { - var$11 = $var10; - var$12 = $var14; - var$13 = $var12; - var$14 = $var16; - } else { - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxX * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinZ * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxZ * 16.0); - var$11 = $var10; - var$12 = $var14; - var$13 = $var12; - var$14 = $var16; - } - $var26 = $par2 + $this.$renderMinX; - $var28 = $par2 + $this.$renderMaxX; - $var30 = $par4 + $this.$renderMaxY; - $var32 = $par6 + $this.$renderMinZ; - $var34 = $par6 + $this.$renderMaxZ; - if (!$this.$enableAO) { - $var9.$hasTexture = 1; - $var9.$textureU = var$13; - $var9.$textureV = var$14; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var32); - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var32); - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var34); - } else { - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedTopLeft * 255.0 | 0, $this.$colorGreenTopLeft * 255.0 | 0, $this.$colorBlueTopLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessTopLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = var$13; - $var9.$textureV = var$14; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var34); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomLeft * 255.0 | 0, $this.$colorGreenBottomLeft * 255.0 | 0, $this.$colorBlueBottomLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var32); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomRight * 255.0 | 0, $this.$colorGreenBottomRight * 255.0 | 0, $this.$colorBlueBottomRight * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomRight; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var32); - nlea_Tessellator_setColorOpaque_F($var9, $this.$colorRedTopRight, $this.$colorGreenTopRight, $this.$colorBlueTopRight); - var$20 = $this.$brightnessTopRight; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - nlea_Tessellator_addVertexWithUV($var9, $var26, $var30, $var34, $var10, $var16); - } -} -function nms_RenderBlocks_renderFaceZNeg($this, $par1Block, $par2, $par4, $par6, $par8Icon) { - var $var9, $var10, $var12, $var14, $var16, var$11, var$12, var$13, var$14, $var26, $var28, $var30, $var32, $var34, var$20; - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - if ($this.$overrideBlockTexture === null ? 0 : 1) - $par8Icon = $this.$overrideBlockTexture; - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxX * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinY * 16.0); - if (!$this.$flipTexture) { - var$11 = $var12; - $var12 = $var10; - $var10 = var$11; - } - if (!($this.$renderMinX >= 0.0 && $this.$renderMaxX <= 1.0)) { - $var12 = $par8Icon.$getMinU(); - $var10 = $par8Icon.$getMaxU(); - } - if (!($this.$renderMinY >= 0.0 && $this.$renderMaxY <= 1.0)) { - $var14 = $par8Icon.$getMinV(); - $var16 = $par8Icon.$getMaxV(); - } - if ($this.$uvRotateEast == 2) { - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinY * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxX * 16.0); - var$11 = $var10; - var$12 = $var16; - var$13 = $var12; - var$14 = $var14; - } else if ($this.$uvRotateEast == 1) { - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMaxX * 16.0); - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinY * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMinX * 16.0); - var$11 = $var10; - var$12 = $var16; - var$13 = $var12; - var$14 = $var14; - } else if ($this.$uvRotateEast != 3) { - var$11 = $var12; - var$12 = $var14; - var$13 = $var10; - var$14 = $var16; - } else { - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinX * 16.0); - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxX * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMinY * 16.0); - var$11 = $var12; - var$12 = $var14; - var$13 = $var10; - var$14 = $var16; - } - $var26 = $par2 + $this.$renderMinX; - $var28 = $par2 + $this.$renderMaxX; - $var30 = $par4 + $this.$renderMinY; - $var32 = $par4 + $this.$renderMaxY; - $var34 = $par6 + $this.$renderMinZ; - if (!$this.$enableAO) { - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var26, $var32, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var28, $var32, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = var$13; - $var9.$textureV = var$14; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var34); - } else { - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedTopLeft * 255.0 | 0, $this.$colorGreenTopLeft * 255.0 | 0, $this.$colorBlueTopLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessTopLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var26, $var32, $var34); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomLeft * 255.0 | 0, $this.$colorGreenBottomLeft * 255.0 | 0, $this.$colorBlueBottomLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var28, $var32, $var34); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomRight * 255.0 | 0, $this.$colorGreenBottomRight * 255.0 | 0, $this.$colorBlueBottomRight * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomRight; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var34); - nlea_Tessellator_setColorOpaque_F($var9, $this.$colorRedTopRight, $this.$colorGreenTopRight, $this.$colorBlueTopRight); - nlea_Tessellator_setBrightness($var9, $this.$brightnessTopRight); - nlea_Tessellator_addVertexWithUV($var9, $var26, $var30, $var34, var$13, var$14); - } -} -function nms_RenderBlocks_renderFaceZPos($this, $par1Block, $par2, $par4, $par6, $par8Icon) { - var $var9, $var10, $var12, $var14, $var16, var$11, var$12, var$13, var$14, $var26, $var28, $var30, $var32, $var34, var$20; - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - if ($this.$overrideBlockTexture === null ? 0 : 1) - $par8Icon = $this.$overrideBlockTexture; - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxX * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinY * 16.0); - if (!$this.$flipTexture) { - var$11 = $var12; - $var12 = $var10; - $var10 = var$11; - } - if (!($this.$renderMinX >= 0.0 && $this.$renderMaxX <= 1.0)) { - $var12 = $par8Icon.$getMinU(); - $var10 = $par8Icon.$getMaxU(); - } - if (!($this.$renderMinY >= 0.0 && $this.$renderMaxY <= 1.0)) { - $var14 = $par8Icon.$getMinV(); - $var16 = $par8Icon.$getMaxV(); - } - if ($this.$uvRotateWest == 1) { - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinY * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinX * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxY * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxX * 16.0); - var$11 = $var10; - var$12 = $var14; - var$13 = $var12; - var$14 = $var16; - } else if ($this.$uvRotateWest == 2) { - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMinX * 16.0); - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinY * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMaxX * 16.0); - var$11 = $var10; - var$12 = $var14; - var$13 = $var12; - var$14 = $var16; - } else if ($this.$uvRotateWest != 3) { - var$11 = $var12; - var$12 = $var16; - var$13 = $var10; - var$14 = $var14; - } else { - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinX * 16.0); - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxX * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMinY * 16.0); - var$11 = $var12; - var$12 = $var16; - var$13 = $var10; - var$14 = $var14; - } - $var26 = $par2 + $this.$renderMinX; - $var28 = $par2 + $this.$renderMaxX; - $var30 = $par4 + $this.$renderMinY; - $var32 = $par4 + $this.$renderMaxY; - $var34 = $par6 + $this.$renderMaxZ; - if (!$this.$enableAO) { - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$14; - nlea_Tessellator_addVertex($var9, $var26, $var32, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = var$13; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var28, $var32, $var34); - } else { - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedTopLeft * 255.0 | 0, $this.$colorGreenTopLeft * 255.0 | 0, $this.$colorBlueTopLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessTopLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$14; - nlea_Tessellator_addVertex($var9, $var26, $var32, $var34); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomLeft * 255.0 | 0, $this.$colorGreenBottomLeft * 255.0 | 0, $this.$colorBlueBottomLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var34); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomRight * 255.0 | 0, $this.$colorGreenBottomRight * 255.0 | 0, $this.$colorBlueBottomRight * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomRight; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = var$13; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var28, $var30, $var34); - nlea_Tessellator_setColorOpaque_F($var9, $this.$colorRedTopRight, $this.$colorGreenTopRight, $this.$colorBlueTopRight); - nlea_Tessellator_setBrightness($var9, $this.$brightnessTopRight); - nlea_Tessellator_addVertexWithUV($var9, $var28, $var32, $var34, $var10, $var14); - } -} -function nms_RenderBlocks_renderFaceXNeg($this, $par1Block, $par2, $par4, $par6, $par8Icon) { - var $var9, $var10, $var12, $var14, $var16, var$11, var$12, var$13, var$14, $var26, $var28, $var30, $var32, $var34, var$20; - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - if ($this.$overrideBlockTexture === null ? 0 : 1) - $par8Icon = $this.$overrideBlockTexture; - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinZ * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxZ * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinY * 16.0); - if (!$this.$flipTexture) { - var$11 = $var12; - $var12 = $var10; - $var10 = var$11; - } - if (!($this.$renderMinZ >= 0.0 && $this.$renderMaxZ <= 1.0)) { - $var12 = $par8Icon.$getMinU(); - $var10 = $par8Icon.$getMaxU(); - } - if (!($this.$renderMinY >= 0.0 && $this.$renderMaxY <= 1.0)) { - $var14 = $par8Icon.$getMinV(); - $var16 = $par8Icon.$getMaxV(); - } - if ($this.$uvRotateNorth == 1) { - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinY * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxZ * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinZ * 16.0); - var$11 = $var10; - var$12 = $var16; - var$13 = $var12; - var$14 = $var14; - } else if ($this.$uvRotateNorth == 2) { - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMinZ * 16.0); - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinY * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMaxZ * 16.0); - var$11 = $var10; - var$12 = $var16; - var$13 = $var12; - var$14 = $var14; - } else if ($this.$uvRotateNorth != 3) { - var$11 = $var12; - var$12 = $var14; - var$13 = $var10; - var$14 = $var16; - } else { - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinZ * 16.0); - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxZ * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMinY * 16.0); - var$11 = $var12; - var$12 = $var14; - var$13 = $var10; - var$14 = $var16; - } - $var26 = $par2 + $this.$renderMinX; - $var28 = $par4 + $this.$renderMinY; - $var30 = $par4 + $this.$renderMaxY; - $var32 = $par6 + $this.$renderMinZ; - $var34 = $par6 + $this.$renderMaxZ; - if (!$this.$enableAO) { - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var32); - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var26, $var28, $var32); - $var9.$hasTexture = 1; - $var9.$textureU = var$13; - $var9.$textureV = var$14; - nlea_Tessellator_addVertex($var9, $var26, $var28, $var34); - } else { - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedTopLeft * 255.0 | 0, $this.$colorGreenTopLeft * 255.0 | 0, $this.$colorBlueTopLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessTopLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var34); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomLeft * 255.0 | 0, $this.$colorGreenBottomLeft * 255.0 | 0, $this.$colorBlueBottomLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var32); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomRight * 255.0 | 0, $this.$colorGreenBottomRight * 255.0 | 0, $this.$colorBlueBottomRight * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomRight; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var26, $var28, $var32); - nlea_Tessellator_setColorOpaque_F($var9, $this.$colorRedTopRight, $this.$colorGreenTopRight, $this.$colorBlueTopRight); - nlea_Tessellator_setBrightness($var9, $this.$brightnessTopRight); - nlea_Tessellator_addVertexWithUV($var9, $var26, $var28, $var34, var$13, var$14); - } -} -function nms_RenderBlocks_renderFaceXPos($this, $par1Block, $par2, $par4, $par6, $par8Icon) { - var $var9, $var10, $var12, $var14, $var16, var$11, var$12, var$13, var$14, $var26, $var28, $var30, $var32, $var34, var$20; - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - if ($this.$overrideBlockTexture === null ? 0 : 1) - $par8Icon = $this.$overrideBlockTexture; - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinZ * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxZ * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinY * 16.0); - if (!$this.$flipTexture) { - var$11 = $var12; - $var12 = $var10; - $var10 = var$11; - } - if (!($this.$renderMinZ >= 0.0 && $this.$renderMaxZ <= 1.0)) { - $var12 = $par8Icon.$getMinU(); - $var10 = $par8Icon.$getMaxU(); - } - if (!($this.$renderMinY >= 0.0 && $this.$renderMaxY <= 1.0)) { - $var14 = $par8Icon.$getMinV(); - $var16 = $par8Icon.$getMaxV(); - } - if ($this.$uvRotateSouth == 2) { - $var10 = $par8Icon.$getInterpolatedU($this.$renderMinY * 16.0); - $var14 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMinZ * 16.0); - $var12 = $par8Icon.$getInterpolatedU($this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV(16.0 - $this.$renderMaxZ * 16.0); - var$11 = $var10; - var$12 = $var16; - var$13 = $var12; - var$14 = $var14; - } else if ($this.$uvRotateSouth == 1) { - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMaxZ * 16.0); - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinY * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMinZ * 16.0); - var$11 = $var10; - var$12 = $var16; - var$13 = $var12; - var$14 = $var14; - } else if ($this.$uvRotateSouth != 3) { - var$11 = $var12; - var$12 = $var14; - var$13 = $var10; - var$14 = $var16; - } else { - $var12 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMinZ * 16.0); - $var10 = $par8Icon.$getInterpolatedU(16.0 - $this.$renderMaxZ * 16.0); - $var14 = $par8Icon.$getInterpolatedV($this.$renderMaxY * 16.0); - $var16 = $par8Icon.$getInterpolatedV($this.$renderMinY * 16.0); - var$11 = $var12; - var$12 = $var14; - var$13 = $var10; - var$14 = $var16; - } - $var26 = $par2 + $this.$renderMaxX; - $var28 = $par4 + $this.$renderMinY; - $var30 = $par4 + $this.$renderMaxY; - $var32 = $par6 + $this.$renderMinZ; - $var34 = $par6 + $this.$renderMaxZ; - if (!$this.$enableAO) { - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var26, $var28, $var34); - $var9.$hasTexture = 1; - $var9.$textureU = var$13; - $var9.$textureV = var$14; - nlea_Tessellator_addVertex($var9, $var26, $var28, $var32); - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var32); - $var9.$hasTexture = 1; - $var9.$textureU = var$11; - $var9.$textureV = var$12; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var34); - } else { - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedTopLeft * 255.0 | 0, $this.$colorGreenTopLeft * 255.0 | 0, $this.$colorBlueTopLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessTopLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var12; - $var9.$textureV = $var16; - nlea_Tessellator_addVertex($var9, $var26, $var28, $var34); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomLeft * 255.0 | 0, $this.$colorGreenBottomLeft * 255.0 | 0, $this.$colorBlueBottomLeft * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomLeft; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = var$13; - $var9.$textureV = var$14; - nlea_Tessellator_addVertex($var9, $var26, $var28, $var32); - nlea_Tessellator_setColorRGBA($var9, $this.$colorRedBottomRight * 255.0 | 0, $this.$colorGreenBottomRight * 255.0 | 0, $this.$colorBlueBottomRight * 255.0 | 0, 255); - var$20 = $this.$brightnessBottomRight; - $var9.$hasBrightness = 1; - $var9.$brightness = var$20; - $var9.$hasTexture = 1; - $var9.$textureU = $var10; - $var9.$textureV = $var14; - nlea_Tessellator_addVertex($var9, $var26, $var30, $var32); - nlea_Tessellator_setColorOpaque_F($var9, $this.$colorRedTopRight, $this.$colorGreenTopRight, $this.$colorBlueTopRight); - nlea_Tessellator_setBrightness($var9, $this.$brightnessTopRight); - nlea_Tessellator_addVertexWithUV($var9, $var26, $var30, $var34, var$11, var$12); - } -} -function nms_RenderBlocks_renderBlockAsItem($this, $par1Block, $par2, $par3) { - var $var4, $var14, $var5, $var6, var$8, $var15, $var16, $var17, $var11, $var12, $var13, var$15, var$16, var$17, $var14_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var14_0 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();var$8 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var14 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Block = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nlea_Tessellator_$callClinit(); - $var4 = nlea_Tessellator_instance; - $var14 = $par1Block.$blockID; - nms_Block_$callClinit(); - $var5 = $var14 != nms_Block_grass.$blockID ? 0 : 1; - if (!($par1Block !== nms_Block_dispenser && $par1Block !== nms_Block_dropper && $par1Block !== nms_Block_furnaceIdle)) - $par2 = 3; - if ($this.$useInventoryTint) { - $var6 = $par1Block.$getRenderColor($par2); - if ($var5) - $var6 = 16777215; - nleg_EaglerAdapterGL30_glColor4f(($var6 >> 16 & 255) / 255.0 * $par3, ($var6 >> 8 & 255) / 255.0 * $par3, ($var6 & 255) / 255.0 * $par3, 1.0); - } - a: { - $var6 = $par1Block.$getRenderType(); - nms_RenderBlocks_setRenderBoundsFromBlock($this, $par1Block); - if ($var6 && $var6 != 31 && $var6 != 39 && $var6 != 16 && $var6 != 26) { - if ($var6 == 1) { - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_drawCrossedSquares($this, $par1Block, $par2, (-0.5), (-0.5), (-0.5), 1.0); - nlea_Tessellator_draw($var4); - } else if ($var6 == 19) { - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - $par1Block.$setBlockBoundsForItemRender(); - nms_RenderBlocks_renderBlockStemSmall($this, $par1Block, $par2, $this.$renderMaxY, (-0.5), (-0.5), (-0.5)); - nlea_Tessellator_draw($var4); - } else if ($var6 == 23) { - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - $par1Block.$setBlockBoundsForItemRender(); - nlea_Tessellator_draw($var4); - } else if ($var6 == 13) { - $par1Block.$setBlockBoundsForItemRender(); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 0)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 1)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, (-1.0)); - nlea_Tessellator_addTranslation($var4, 0.0, 0.0, 0.0625); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 2)); - nlea_Tessellator_addTranslation($var4, 0.0, 0.0, (-0.0625)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, 1.0); - nlea_Tessellator_addTranslation($var4, 0.0, 0.0, (-0.0625)); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 3)); - nlea_Tessellator_addTranslation($var4, 0.0, 0.0, 0.0625); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, (-1.0), 0.0, 0.0); - nlea_Tessellator_addTranslation($var4, 0.0625, 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 4)); - nlea_Tessellator_addTranslation($var4, (-0.0625), 0.0, 0.0); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 1.0, 0.0, 0.0); - nlea_Tessellator_addTranslation($var4, (-0.0625), 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 5)); - nlea_Tessellator_addTranslation($var4, 0.0625, 0.0, 0.0); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - } else { - if ($var6 == 22) { - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - var$8 = nms_ChestItemRenderHelper_instance; - $ptr = 1; - continue main; - } - if ($var6 == 6) { - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderBlockCropsImpl($this, $par1Block, $par2, (-0.5), (-0.5), (-0.5)); - nlea_Tessellator_draw($var4); - } else if ($var6 == 2) { - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderTorchAtAngle($this, $par1Block, (-0.5), (-0.5), (-0.5), 0.0, 0.0, 0); - nlea_Tessellator_draw($var4); - } else { - if ($var6 == 10) { - $var14 = 0; - while (true) { - if ($var14 >= 2) - break a; - if (!$var14) - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 0.5); - if ($var14 == 1) - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.5, 1.0, 0.5, 1.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 0)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 1)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, (-1.0)); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, 1.0); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 3)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, (-1.0), 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 4)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 1.0, 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 5)); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - $var14 = $var14 + 1 | 0; - } - } - if ($var6 != 27) { - if ($var6 == 11) { - $var14 = 0; - while ($var14 < 4) { - if (!$var14) - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.0, 0.0, 0.625, 1.0, 0.25); - if ($var14 == 1) - nms_RenderBlocks_setRenderBounds($this, 0.375, 0.0, 0.75, 0.625, 1.0, 1.0); - if ($var14 == 2) - nms_RenderBlocks_setRenderBounds($this, 0.4375, 0.8125, (-0.125), 0.5625, 0.9375, 1.125); - if ($var14 == 3) - nms_RenderBlocks_setRenderBounds($this, 0.4375, 0.3125, (-0.125), 0.5625, 0.4375, 1.125); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 0)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 1)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, (-1.0)); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, 1.0); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 3)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, (-1.0), 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 4)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 1.0, 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 5)); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - $var14 = $var14 + 1 | 0; - } - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - } else { - if ($var6 == 21) { - $var14 = 0; - while (true) { - if ($var14 >= 3) - break a; - if (!$var14) - nms_RenderBlocks_setRenderBounds($this, 0.4375, 0.30000001192092896, 0.0, 0.5625, 1.0, 0.125); - if ($var14 == 1) - nms_RenderBlocks_setRenderBounds($this, 0.4375, 0.30000001192092896, 0.875, 0.5625, 1.0, 1.0); - if ($var14 == 2) - nms_RenderBlocks_setRenderBounds($this, 0.4375, 0.5, 0.0, 0.5625, 0.9375, 1.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 0)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 1)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, (-1.0)); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, 1.0); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 3)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, (-1.0), 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 4)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 1.0, 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 5)); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - $var14 = $var14 + 1 | 0; - } - } - if ($var6 == 32) { - $var14 = 0; - while ($var14 < 2) { - if (!$var14) - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.3125, 1.0, 0.8125, 0.6875); - if ($var14 == 1) - nms_RenderBlocks_setRenderBounds($this, 0.25, 0.0, 0.25, 0.75, 1.0, 0.75); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 0, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 1, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, (-1.0)); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 2, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, 1.0); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 3, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, (-1.0), 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 4, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 1.0, 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 5, $par2)); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - $var14 = $var14 + 1 | 0; - } - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - } else if ($var6 == 35) { - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nms_RenderBlocks_renderBlockAnvilOrient($this, $par1Block, 0, 0, 0, $par2, 1); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - } else if ($var6 == 34) { - $var14 = 0; - while ($var14 < 3) { - if (!$var14) { - nms_RenderBlocks_setRenderBounds($this, 0.125, 0.0, 0.125, 0.875, 0.1875, 0.875); - nms_RenderBlocks_setOverrideBlockTexture($this, nms_RenderBlocks_getBlockIcon0($this, nms_Block_obsidian)); - } else if ($var14 == 1) { - nms_RenderBlocks_setRenderBounds($this, 0.1875, 0.1875, 0.1875, 0.8125, 0.875, 0.8125); - nms_RenderBlocks_setOverrideBlockTexture($this, nms_BlockBeacon_getBeaconIcon(nms_Block_beacon)); - } else if ($var14 == 2) { - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - nms_RenderBlocks_setOverrideBlockTexture($this, nms_RenderBlocks_getBlockIcon0($this, nms_Block_glass)); - } - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 0, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 1, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, (-1.0)); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 2, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, 1.0); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 3, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, (-1.0), 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 4, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 1.0, 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 5, $par2)); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - $var14 = $var14 + 1 | 0; - } - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - nms_RenderBlocks_clearOverrideBlockTexture($this); - } else if ($var6 == 38) { - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nms_RenderBlocks_renderBlockHopperMetadata($this, $par1Block, 0, 0, 0, 0, 1); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - } - } - } else { - $var14 = 0; - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nlea_Tessellator_startDrawingQuads($var4); - $var15 = 0; - while ($var15 < 8) { - $var16 = 0; - $var17 = 1; - if (!$var15) - $var16 = 2; - if ($var15 == 1) - $var16 = 3; - if ($var15 == 2) - $var16 = 4; - if ($var15 == 3) { - $var16 = 5; - $var17 = 2; - } - if ($var15 == 4) { - $var16 = 6; - $var17 = 3; - } - if ($var15 == 5) { - $var16 = 7; - $var17 = 5; - } - if ($var15 == 6) { - $var16 = 6; - $var17 = 2; - } - if ($var15 == 7) - $var16 = 3; - $var11 = $var16 / 16.0; - $var12 = 1.0 - $var14 / 16.0; - $var14 = $var14 + $var17 | 0; - $var13 = 1.0 - $var14 / 16.0; - var$15 = 0.5 - $var11; - var$16 = $var13; - var$17 = 0.5 + $var11; - nms_RenderBlocks_setRenderBounds($this, var$15, var$16, var$15, var$17, $var12, var$17); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 0)); - nlea_Tessellator_setNormal($var4, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 1)); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, (-1.0)); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 2)); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, 1.0); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 3)); - nlea_Tessellator_setNormal($var4, (-1.0), 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 4)); - nlea_Tessellator_setNormal($var4, 1.0, 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, 5)); - $var15 = $var15 + 1 | 0; - } - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - nms_RenderBlocks_setRenderBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); - } - } - } - } else { - if ($var6 == 16) - $par2 = 1; - $par1Block.$setBlockBoundsForItemRender(); - nms_RenderBlocks_setRenderBoundsFromBlock($this, $par1Block); - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, (-1.0), 0.0); - nms_RenderBlocks_renderFaceYNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 0, $par2)); - nlea_Tessellator_draw($var4); - if ($var5 && $this.$useInventoryTint) { - $var14_0 = $par1Block.$getRenderColor($par2); - nleg_EaglerAdapterGL30_glColor4f(($var14_0 >> 16 & 255) / 255.0 * $par3, ($var14_0 >> 8 & 255) / 255.0 * $par3, ($var14_0 & 255) / 255.0 * $par3, 1.0); - } - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 1.0, 0.0); - nms_RenderBlocks_renderFaceYPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 1, $par2)); - nlea_Tessellator_draw($var4); - if ($var5 && $this.$useInventoryTint) - nleg_EaglerAdapterGL30_glColor4f($par3, $par3, $par3, 1.0); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, (-1.0)); - nms_RenderBlocks_renderFaceZNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 2, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 0.0, 0.0, 1.0); - nms_RenderBlocks_renderFaceZPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 3, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, (-1.0), 0.0, 0.0); - nms_RenderBlocks_renderFaceXNeg($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 4, $par2)); - nlea_Tessellator_draw($var4); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setNormal($var4, 1.0, 0.0, 0.0); - nms_RenderBlocks_renderFaceXPos($this, $par1Block, 0.0, 0.0, 0.0, nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, 5, $par2)); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - } - } - return; - case 1: - nms_ChestItemRenderHelper_renderChest(var$8, $par1Block, $par2, $par3); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glDisable(41); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Block, $par2, $par3, $var4, $var14, $var5, $var6, var$8, $var15, $var16, $var17, $var11, $var12, $var13, var$15, var$16, var$17, $var14_0, $ptr); -} -function nms_RenderBlocks_renderItemIn3d($par0) { - a: { - if (!$par0) { - $par0 = 1; - break a; - } - if ($par0 == 31) { - $par0 = 1; - break a; - } - if ($par0 == 39) { - $par0 = 1; - break a; - } - if ($par0 == 13) { - $par0 = 1; - break a; - } - if ($par0 == 10) { - $par0 = 1; - break a; - } - if ($par0 == 11) { - $par0 = 1; - break a; - } - if ($par0 == 27) { - $par0 = 1; - break a; - } - if ($par0 == 22) { - $par0 = 1; - break a; - } - if ($par0 == 21) { - $par0 = 1; - break a; - } - if ($par0 == 16) { - $par0 = 1; - break a; - } - if ($par0 == 26) { - $par0 = 1; - break a; - } - if ($par0 == 32) { - $par0 = 1; - break a; - } - if ($par0 == 34) { - $par0 = 1; - break a; - } - if ($par0 != 35) { - $par0 = 0; - break a; - } - $par0 = 1; - } - return $par0; -} -function nms_RenderBlocks_getBlockIcon($this, $par1Block, $par2IBlockAccess, $par3, $par4, $par5, $par6) { - return nms_RenderBlocks_getIconSafe($this, $par1Block.$getBlockTexture($par2IBlockAccess, $par3, $par4, $par5, $par6)); -} -function nms_RenderBlocks_getBlockIconFromSideAndMetadata($this, $par1Block, $par2, $par3) { - return nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon($par2, $par3)); -} -function nms_RenderBlocks_getBlockIconFromSide($this, $par1Block, $par2) { - return nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon($par2, 0)); -} -function nms_RenderBlocks_getBlockIcon0($this, $par1Block) { - return nms_RenderBlocks_getIconSafe($this, $par1Block.$getIcon(1, 0)); -} -function nms_RenderBlocks_getIconSafe($this, $par1Icon) { - if ($par1Icon === null) - a: { - b: { - $par1Icon = $this.$minecraftRB.$renderEngine; - switch (0) { - case 0: - break; - case 1: - break b; - default: - break b; - } - $par1Icon = $par1Icon.$textureMapBlocks.$missingImage; - break a; - } - $par1Icon = $par1Icon.$textureMapItems.$missingTextureStiched; - } - return $par1Icon; -} -function nms_RenderBlocks__clinit_() { - nms_RenderBlocks_fancyGrass = 1; -} -function nms_EntityRenderer() { - var a = this; jl_Object.call(a); - a.$mc7 = null; - a.$farPlaneDistance = 0.0; - a.$itemRenderer0 = null; - a.$rendererUpdateCount = 0; - a.$pointedEntity = null; - a.$mouseFilterXAxis = null; - a.$mouseFilterYAxis = null; - a.$mouseFilterDummy1 = null; - a.$mouseFilterDummy2 = null; - a.$mouseFilterDummy3 = null; - a.$mouseFilterDummy4 = null; - a.$thirdPersonDistance = 0.0; - a.$thirdPersonDistanceTemp = 0.0; - a.$debugCamYaw = 0.0; - a.$prevDebugCamYaw = 0.0; - a.$debugCamPitch = 0.0; - a.$prevDebugCamPitch = 0.0; - a.$smoothCamYaw = 0.0; - a.$smoothCamPitch = 0.0; - a.$smoothCamFilterX = 0.0; - a.$smoothCamFilterY = 0.0; - a.$smoothCamPartialTicks = 0.0; - a.$debugCamFOV = 0.0; - a.$prevDebugCamFOV = 0.0; - a.$camRoll = 0.0; - a.$prevCamRoll = 0.0; - a.$lightmapTexture = 0; - a.$lightmapColors = null; - a.$fovModifierHand = 0.0; - a.$fovModifierHandPrev = 0.0; - a.$fovMultiplierTemp = 0.0; - a.$field_82831_U = 0.0; - a.$field_82832_V = 0.0; - a.$cloudFog = 0; - a.$cameraZoom = 0.0; - a.$cameraYaw = 0.0; - a.$cameraPitch = 0.0; - a.$prevFrameTime0 = Long_ZERO; - a.$renderEndNanoTime = Long_ZERO; - a.$lightmapUpdateNeeded = 0; - a.$torchFlickerX = 0.0; - a.$torchFlickerDX = 0.0; - a.$torchFlickerY = 0.0; - a.$torchFlickerDY = 0.0; - a.$random = null; - a.$rainSoundCounter = 0; - a.$rainXCoords = null; - a.$rainYCoords = null; - a.$field_78523_k = 0; - a.$field_78520_l = 0; - a.$fogColorBuffer = null; - a.$fogColorRed = 0.0; - a.$fogColorGreen = 0.0; - a.$fogColorBlue = 0.0; - a.$fogColor2 = 0.0; - a.$fogColor1 = 0.0; - a.$debugViewDirection = 0; -} -var nms_EntityRenderer_anaglyphEnable = 0; -var nms_EntityRenderer_anaglyphField = 0; -var nms_EntityRenderer_terrain = null; -var nms_EntityRenderer_rain = null; -var nms_EntityRenderer_snow = null; -function nms_EntityRenderer__init_(var_0) { - var var_1 = new nms_EntityRenderer(); - nms_EntityRenderer__init_0(var_1, var_0); - return var_1; -} -function nms_EntityRenderer__init_0($this, $par1Minecraft) { - var var$2, var$3, var$4, var$5, var$6; - $this.$farPlaneDistance = 0.0; - $this.$pointedEntity = null; - $this.$mouseFilterXAxis = new nms_MouseFilter; - $this.$mouseFilterYAxis = new nms_MouseFilter; - $this.$mouseFilterDummy1 = new nms_MouseFilter; - $this.$mouseFilterDummy2 = new nms_MouseFilter; - $this.$mouseFilterDummy3 = new nms_MouseFilter; - $this.$mouseFilterDummy4 = new nms_MouseFilter; - $this.$thirdPersonDistance = 4.0; - $this.$thirdPersonDistanceTemp = 4.0; - $this.$debugCamYaw = 0.0; - $this.$prevDebugCamYaw = 0.0; - $this.$debugCamPitch = 0.0; - $this.$prevDebugCamPitch = 0.0; - $this.$debugCamFOV = 0.0; - $this.$prevDebugCamFOV = 0.0; - $this.$camRoll = 0.0; - $this.$prevCamRoll = 0.0; - $this.$cloudFog = 0; - $this.$cameraZoom = 1.0; - $this.$cameraYaw = 0.0; - $this.$cameraPitch = 0.0; - $this.$prevFrameTime0 = jl_System_currentTimeMillis(); - $this.$renderEndNanoTime = Long_ZERO; - $this.$lightmapUpdateNeeded = 0; - $this.$torchFlickerX = 0.0; - $this.$torchFlickerDX = 0.0; - $this.$torchFlickerY = 0.0; - $this.$torchFlickerDY = 0.0; - $this.$random = new ju_Random; - $this.$rainSoundCounter = 0; - $this.$field_78523_k = 0; - $this.$field_78520_l = 0; - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL) - var$2 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$3 = $rt_createFloatArray(16); - var$4 = var$3.data.length; - var$2 = new jn_FloatBufferOverArray; - 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.$start5 = 0; - var$2.$readOnly5 = 0; - var$2.$array4 = var$3; - } - $this.$fogColorBuffer = var$2; - $this.$mc7 = $par1Minecraft; - $this.$itemRenderer0 = nms_ItemRenderer__init_($par1Minecraft); - $par1Minecraft = $par1Minecraft.$renderEngine; - var$2 = new nle_EaglerImage; - var$2.$w0 = 16; - var$2.$h = 16; - var$2.$alpha = 1; - var$2.$data = $rt_createIntArray(256); - var$6 = nms_GLAllocation_generateTextureNames(); - nms_RenderEngine_setupTextureExt($par1Minecraft, var$2, var$6, 0, 0); - nms_IntHashMap_addKey($par1Minecraft.$textureNameToImageMap, var$6, var$2); - $this.$lightmapTexture = var$6; - $this.$lightmapColors = $rt_createIntArray(256); -} -function nms_EntityRenderer_updateRenderer($this) { - var $var1, $var2, var$3, $var3, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var3 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_EntityRenderer_updateFovModifierHand($this); - nms_EntityRenderer_updateTorchFlicker($this); - $this.$fogColor2 = $this.$fogColor1; - $this.$thirdPersonDistanceTemp = $this.$thirdPersonDistance; - $this.$prevDebugCamYaw = $this.$debugCamYaw; - $this.$prevDebugCamPitch = $this.$debugCamPitch; - $this.$prevDebugCamFOV = $this.$debugCamFOV; - $this.$prevCamRoll = $this.$camRoll; - if ($this.$mc7.$gameSettings.$smoothCamera) { - $var1 = $this.$mc7.$gameSettings.$mouseSensitivity * 0.6000000238418579 + 0.20000000298023224; - $var2 = $var1 * $var1 * $var1 * 8.0; - var$3 = $this.$mouseFilterXAxis; - $var3 = $this.$smoothCamYaw; - $var2 = 0.05000000074505806 * $var2; - $this.$smoothCamFilterX = nms_MouseFilter_smooth(var$3, $var3, $var2); - $this.$smoothCamFilterY = nms_MouseFilter_smooth($this.$mouseFilterYAxis, $this.$smoothCamPitch, $var2); - $this.$smoothCamPartialTicks = 0.0; - $this.$smoothCamYaw = 0.0; - $this.$smoothCamPitch = 0.0; - } - if ($this.$mc7.$renderViewEntity === null) - $this.$mc7.$renderViewEntity = $this.$mc7.$thePlayer; - var$3 = $this.$mc7.$theWorld; - var$5 = $this.$mc7.$renderViewEntity.$posX; - var$6 = var$5 | 0; - if (var$5 < var$6) - var$6 = var$6 - 1 | 0; - var$5 = $this.$mc7.$renderViewEntity.$posY; - var$7 = var$5 | 0; - if (var$5 < var$7) - var$7 = var$7 - 1 | 0; - var$5 = $this.$mc7.$renderViewEntity.$posZ; - var$8 = var$5 | 0; - if (var$5 < var$8) - var$8 = var$8 - 1 | 0; - $var1 = var$3.$provider.$lightBrightnessTable.data[nms_World_getBlockLightValue_do(var$3, var$6, var$7, var$8, 1)]; - $var2 = (3 - $this.$mc7.$gameSettings.$renderDistance | 0) / 3.0; - $var3 = $var1 * (1.0 - $var2) + $var2; - $this.$fogColor1 = $this.$fogColor1 + ($var3 - $this.$fogColor1) * 0.10000000149011612; - $this.$rendererUpdateCount = $this.$rendererUpdateCount + 1 | 0; - nms_ItemRenderer_updateEquippedItem($this.$itemRenderer0); - $ptr = 1; - case 1: - nms_EntityRenderer_addRainParticles($this); - if ($rt_suspending()) { - break main; - } - $this.$field_82832_V = $this.$field_82831_U; - if (nms_BossStatus_field_82825_d) { - $this.$field_82831_U = $this.$field_82831_U + 0.05000000074505806; - if ($this.$field_82831_U > 1.0) - $this.$field_82831_U = 1.0; - nms_BossStatus_field_82825_d = 0; - } else if ($this.$field_82831_U > 0.0) - $this.$field_82831_U = $this.$field_82831_U - 0.012500000186264515; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, var$3, $var3, var$5, var$6, var$7, var$8, $ptr); -} -function nms_EntityRenderer_getMouseOver($this, $par1) { - var $var2, $var6, var$4, $var7, var$6, $var18, var$8, $var8, $var17, $var16, $var14, var$13, var$14, $var10, $var13, $var15, var$18; - a: { - if ($this.$mc7.$renderViewEntity !== null && $this.$mc7.$theWorld !== null) { - $this.$mc7.$pointedEntityLiving = null; - $var2 = !($this.$mc7.$playerController.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) ? 4.5 : 5.0; - $this.$mc7.$objectMouseOver = nms_EntityLiving_rayTrace($this.$mc7.$renderViewEntity, $var2, $par1); - $var6 = nms_EntityLiving_getPosition($this.$mc7.$renderViewEntity, $par1); - if ($this.$mc7.$playerController.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) { - var$4 = 6.0; - $var2 = 6.0; - } else { - if ($var2 > 3.0) - $var2 = 3.0; - var$4 = $var2; - } - if ($this.$mc7.$objectMouseOver !== null) - $var2 = nms_Vec3_distanceTo($this.$mc7.$objectMouseOver.$hitVec, $var6); - $var7 = nms_EntityLiving_getLook($this.$mc7.$renderViewEntity, $par1); - var$6 = $var7.$xCoord * var$4; - $var18 = $var7.$yCoord * var$4; - var$8 = $var7.$zCoord * var$4; - $var8 = nms_Vec3Pool_getVecFromPool($var6.$myVec3LocalPool, $var6.$xCoord + var$6, $var6.$yCoord + $var18, $var6.$zCoord + var$8); - $this.$pointedEntity = null; - $var17 = $this.$mc7.$theWorld; - $var16 = $this.$mc7.$renderViewEntity; - $var14 = nms_AxisAlignedBB_addCoord($this.$mc7.$renderViewEntity.$boundingBox, $var7.$xCoord * var$4, $var7.$yCoord * var$4, $var7.$zCoord * var$4); - $var18 = $var14.$minX - 1.0; - var$8 = $var14.$minY - 1.0; - var$4 = $var14.$minZ - 1.0; - var$13 = $var14.$maxX + 1.0; - var$14 = $var14.$maxY + 1.0; - var$6 = $var14.$maxZ + 1.0; - $var10 = nms_World_getEntitiesWithinAABBExcludingEntity($var17, $var16, nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), $var18, var$8, var$4, var$13, var$14, var$6), null); - $var13 = 0; - var$6 = $var2; - while (true) { - if ($var13 >= $var10.$size0) { - if ($this.$pointedEntity === null) - break a; - if (var$6 >= $var2 && $this.$mc7.$objectMouseOver !== null) - break a; - $var6 = $this.$mc7; - $var14 = new nms_MovingObjectPosition; - $var17 = $this.$pointedEntity; - $var14.$typeOfHit = nms_EnumMovingObjectType_ENTITY; - $var14.$entityHit = $var17; - $var14.$hitVec = nms_Vec3Pool_getVecFromPool($var17.$worldObj.$vecPool, $var17.$posX, $var17.$posY, $var17.$posZ); - $var6.$objectMouseOver = $var14; - if (!($this.$pointedEntity instanceof nms_EntityLiving)) - break a; - $this.$mc7.$pointedEntityLiving = $this.$pointedEntity; - break a; - } - if ($var13 < 0) - break; - if ($var13 >= $var10.$size0) - break; - $var14 = $var10.$array1.data[$var13]; - if ($var14.$canBeCollidedWith()) { - $var15 = $var14.$getCollisionBorderSize(); - $var17 = $var14.$boundingBox; - $var18 = $var15; - var$8 = $var17.$minX - $var18; - var$4 = $var17.$minY - $var18; - var$13 = $var17.$minZ - $var18; - var$14 = $var17.$maxX + $var18; - var$18 = $var17.$maxY + $var18; - $var18 = $var17.$maxZ + $var18; - $var16 = nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$8, var$4, var$13, var$14, var$18, $var18); - $var17 = nms_AxisAlignedBB_calculateIntercept($var16, $var6, $var8); - if (nms_AxisAlignedBB_isVecInside($var16, $var6)) { - if (!(0.0 >= var$6 && var$6 !== 0.0)) { - $this.$pointedEntity = $var14; - var$6 = 0.0; - } - } else if ($var17 !== null) { - $var18 = nms_Vec3_distanceTo($var6, $var17.$hitVec); - if (!($var18 >= var$6 && var$6 !== 0.0)) { - $this.$pointedEntity = $var14; - var$6 = $var18; - } - } - } - $var13 = $var13 + 1 | 0; - } - $var6 = new jl_IndexOutOfBoundsException; - $var6.$suppressionEnabled = 1; - $var6.$writableStackTrace = 1; - $rt_throw($var6); - } - } -} -function nms_EntityRenderer_updateFovModifierHand($this) { - $this.$fovMultiplierTemp = nms_EntityPlayerSP_getFOVMultiplier($this.$mc7.$renderViewEntity); - $this.$fovModifierHandPrev = $this.$fovModifierHand; - $this.$fovModifierHand = $this.$fovModifierHand + ($this.$fovMultiplierTemp - $this.$fovModifierHand) * 0.5; - if ($this.$fovModifierHand > 1.5) - $this.$fovModifierHand = 1.5; - if ($this.$fovModifierHand < 0.10000000149011612) - $this.$fovModifierHand = 0.10000000149011612; -} -function nms_EntityRenderer_getFOVModifier($this, $par1, $par2) { - var $var3, $var4, $var6; - if ($this.$mc7.$gameSettings.$keyBindZoom.$pressed) - return 12.0; - if ($this.$debugViewDirection > 0) - return 90.0; - $var3 = $this.$mc7.$renderViewEntity; - $var4 = 70.0; - if ($par2) - $var4 = ($var4 + $this.$mc7.$gameSettings.$fovSetting * 40.0) * ($this.$fovModifierHandPrev + ($this.$fovModifierHand - $this.$fovModifierHandPrev) * $par1); - if ($var3.$health <= 0) - $var4 = $var4 / ((1.0 - 500.0 / ($var3.$deathTime + $par1 + 500.0)) * 2.0 + 1.0); - $var6 = nms_ActiveRenderInfo_getBlockIdAtEntityViewpoint($this.$mc7.$theWorld, $var3, $par1); - if ($var6) { - nms_Block_$callClinit(); - $var3 = nms_Block_blocksList.data[$var6].$blockMaterial; - nms_Material_$callClinit(); - if ($var3 === nms_Material_water) - $var4 = $var4 * 60.0 / 70.0; - } - return $var4 + $this.$prevDebugCamFOV + ($this.$debugCamFOV - $this.$prevDebugCamFOV) * $par1; -} -function nms_EntityRenderer_hurtCameraEffect($this, $par1) { - var $var2, $var3, $var4; - $var2 = $this.$mc7.$renderViewEntity; - $var3 = $var2.$hurtTime - $par1; - if ($var2.$health <= 0) - nleg_EaglerAdapterGL30_glRotatef(40.0 - 8000.0 / ($var2.$deathTime + $par1 + 200.0), 0.0, 0.0, 1.0); - if ($var3 >= 0.0) { - $par1 = $var3 / $var2.$maxHurtTime; - $par1 = $par1 * $par1 * $par1 * $par1 * 3.1415927410125732; - $par1 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - $var4 = $var2.$attackedAtYaw; - nleg_EaglerAdapterGL30_glRotatef( -$var4, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$par1 * 14.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef($var4, 0.0, 1.0, 0.0); - } -} -function nms_EntityRenderer_setupViewBobbing($this, $par1) { - var $var2, $var3, $var4, $var5, $var6, var$7, var$8, var$9, var$10, var$11; - if ($this.$mc7.$renderViewEntity instanceof nms_EntityPlayer) { - $var2 = $this.$mc7.$renderViewEntity; - $var3 = $var2.$distanceWalkedModified - $var2.$prevDistanceWalkedModified; - $var4 = -($var2.$distanceWalkedModified + $var3 * $par1); - $var5 = $var2.$prevCameraYaw + ($var2.$cameraYaw0 - $var2.$prevCameraYaw) * $par1; - $var6 = $var2.$prevCameraPitch + ($var2.$cameraPitch0 - $var2.$prevCameraPitch) * $par1; - $var3 = $var4 * 3.1415927410125732; - var$7 = nms_MathHelper_SIN_TABLE.data; - $var4 = $var3 * 10430.3779296875; - var$8 = ($var4 | 0) & 65535; - $par1 = var$7[var$8] * $var5 * 0.5; - $var4 = nms_MathHelper_SIN_TABLE.data[($var4 + 16384.0 | 0) & 65535] * $var5; - if ($var4 <= 0.0) - $var4 = -$var4; - $var4 = -$var4; - nleg_EaglerAdapterGL30_$callClinit(); - $var2 = nleg_EaglerAdapterGL30_deevis; - $var2.$x = $par1; - $var2.$y = $var4; - $var2.$z = 0.0; - $var2 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var2, $var2); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$9 = new ji_PrintStream; - var$9.$out = new jl_ConsoleOutputStreamStderr; - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - var$9.$sb = $var2; - var$9.$buffer0 = $rt_createCharArray(32); - var$9.$autoFlush = 0; - $var2 = new jnci_UTF8Charset; - jnc_Charset__init_($var2, $rt_s(2), $rt_createArray(jl_String, 0)); - var$9.$charset = $var2; - 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); - } - nleg_EaglerAdapterGL30_glRotatef(nms_MathHelper_SIN_TABLE.data[var$8] * $var5 * 3.0, 0.0, 0.0, 1.0); - $par1 = $var3 - 0.20000000298023224; - $par1 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * $var5; - if ($par1 <= 0.0) - $par1 = -$par1; - nleg_EaglerAdapterGL30_glRotatef($par1 * 5.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var6, 1.0, 0.0, 0.0); - } -} -function nms_EntityRenderer_orientCamera($this, $par1) { - var $var2, $var3, $var6, $var8, var$6, $var4, $var14, $var10, $var27, $var28, $var13, $var28_0, $var13_0, $var23, $var21, $var16, $var18, $var20, $var22, $var24, var$22, $var25, var$24, var$25, var$26, var$27; - $var2 = $this.$mc7.$renderViewEntity; - $var3 = $var2.$yOffset0 - 1.6200000047683716; - $var6 = $var2.$prevPosX; - $var8 = $var2.$posX - $var2.$prevPosX; - var$6 = $par1; - $var4 = $var6 + $var8 * var$6; - $var6 = $var2.$prevPosY + ($var2.$posY - $var2.$prevPosY) * var$6; - $var14 = $var3; - $var6 = $var6 - $var14; - $var8 = $var2.$prevPosZ + ($var2.$posZ - $var2.$prevPosZ) * var$6; - nleg_EaglerAdapterGL30_glRotatef($this.$prevCamRoll + ($this.$camRoll - $this.$prevCamRoll) * $par1, 0.0, 0.0, 1.0); - if (nms_EntityPlayer_isPlayerSleeping($var2)) { - $var3 = $var14 + 1.0; - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.30000001192092896, 0.0); - if (!$this.$mc7.$gameSettings.$debugCamEnable) { - $var10 = nms_World_getBlockId($this.$mc7.$theWorld, nms_MathHelper_floor_double($var2.$posX), nms_MathHelper_floor_double($var2.$posY), nms_MathHelper_floor_double($var2.$posZ)); - nms_Block_$callClinit(); - if ($var10 == nms_Block_bed.$blockID) - nleg_EaglerAdapterGL30_glRotatef((nms_World_getBlockMetadata($this.$mc7.$theWorld, nms_MathHelper_floor_double($var2.$posX), nms_MathHelper_floor_double($var2.$posY), nms_MathHelper_floor_double($var2.$posZ)) & 3) * 90 | 0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var2.$prevRotationYaw + ($var2.$rotationYaw - $var2.$prevRotationYaw) * $par1 + 180.0, 0.0, (-1.0), 0.0); - nleg_EaglerAdapterGL30_glRotatef($var2.$prevRotationPitch + ($var2.$rotationPitch - $var2.$prevRotationPitch) * $par1, (-1.0), 0.0, 0.0); - } - } else if ($this.$mc7.$gameSettings.$thirdPersonView <= 0) - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, (-0.10000000149011612)); - else { - $var27 = $this.$thirdPersonDistanceTemp + ($this.$thirdPersonDistance - $this.$thirdPersonDistanceTemp) * $par1; - if ($this.$mc7.$gameSettings.$debugCamEnable) { - $var28 = $this.$prevDebugCamYaw + ($this.$debugCamYaw - $this.$prevDebugCamYaw) * $par1; - $var13 = $this.$prevDebugCamPitch + ($this.$debugCamPitch - $this.$prevDebugCamPitch) * $par1; - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, -$var27); - nleg_EaglerAdapterGL30_glRotatef($var13, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var28, 0.0, 1.0, 0.0); - } else { - $var28_0 = $var2.$rotationYaw; - $var13_0 = $var2.$rotationPitch; - if ($this.$mc7.$gameSettings.$thirdPersonView == 2) - $var13_0 = $var13_0 + 180.0; - $var23 = $var28_0 / 180.0 * 3.1415927410125732; - $var21 = -nms_MathHelper_sin($var23); - $var28 = $var13_0 / 180.0 * 3.1415927410125732; - $var14 = $var21 * nms_MathHelper_cos($var28) * $var27; - $var16 = nms_MathHelper_cos($var23) * nms_MathHelper_cos($var28) * $var27; - $var18 = -nms_MathHelper_sin($var28) * $var27; - $var20 = 0; - $var14 = $var4 - $var14; - $var18 = $var6 - $var18; - $var16 = $var8 - $var16; - while ($var20 < 8) { - $var21 = (($var20 & 1) * 2 | 0) - 1 | 0; - $var22 = (($var20 >> 1 & 1) * 2 | 0) - 1 | 0; - $var23 = (($var20 >> 2 & 1) * 2 | 0) - 1 | 0; - $var21 = $var21 * 0.10000000149011612; - $var28 = $var22 * 0.10000000149011612; - $var23 = $var23 * 0.10000000149011612; - $var24 = $this.$mc7.$theWorld; - var$22 = nms_World_getWorldVec3Pool($this.$mc7.$theWorld); - $var25 = $var21; - var$24 = $var4 + $var25; - var$25 = $var28; - var$26 = $var6 + var$25; - var$27 = $var23; - $var24 = nms_World_rayTraceBlocks($var24, nms_Vec3Pool_getVecFromPool(var$22, var$24, var$26, $var8 + var$27), nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$mc7.$theWorld), $var14 + $var25 + var$27, $var18 + var$25, $var16 + var$27)); - if ($var24 !== null) { - $var25 = nms_Vec3_distanceTo($var24.$hitVec, nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$mc7.$theWorld), $var4, $var6, $var8)); - if ($var25 < $var27) - $var27 = $var25; - } - $var20 = $var20 + 1 | 0; - } - if ($this.$mc7.$gameSettings.$thirdPersonView == 2) - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var2.$rotationPitch - $var13_0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var2.$rotationYaw - $var28_0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, -$var27); - nleg_EaglerAdapterGL30_glRotatef($var28_0 - $var2.$rotationYaw, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var13_0 - $var2.$rotationPitch, 1.0, 0.0, 0.0); - } - } - if (!$this.$mc7.$gameSettings.$debugCamEnable) { - nleg_EaglerAdapterGL30_glRotatef($var2.$prevRotationPitch + ($var2.$rotationPitch - $var2.$prevRotationPitch) * $par1, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var2.$prevRotationYaw + ($var2.$rotationYaw - $var2.$prevRotationYaw) * $par1 + 180.0, 0.0, 1.0, 0.0); - } - nleg_EaglerAdapterGL30_glTranslatef(0.0, $var3, 0.0); - $var6 = $var2.$prevPosX + ($var2.$posX - $var2.$prevPosX) * var$6; - $var8 = $var2.$prevPosY + ($var2.$posY - $var2.$prevPosY) * var$6 - $var3; - $var14 = $var2.$prevPosZ + ($var2.$posZ - $var2.$prevPosZ) * var$6; - $this.$cloudFog = nms_RenderGlobal_hasCloudFog($this.$mc7.$renderGlobal, $var6, $var8, $var14, $par1); -} -function nms_EntityRenderer_setupCameraTransform($this, $par1, $par2) { - var $var3, var$4, var$5, var$6, var$7, $var4, $var5, $var6, $var7; - $this.$farPlaneDistance = 256 >> $this.$mc7.$gameSettings.$renderDistance; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_matrixMode = 9; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - if ($this.$mc7.$gameSettings.$anaglyph) { - $var3 = -(($par2 * 2 | 0) - 1 | 0) * 0.07000000029802322; - var$4 = nleg_EaglerAdapterGL30_deevis; - var$4.$x = $var3; - var$4.$y = 0.0; - var$4.$z = 0.0; - 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$4 = var$6.$sb; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(220)); - var$7 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$7, var$7 + 1 | 0); - var$4.$buffer.data[var$7] = 10; - ji_PrintStream_printSB(var$6); - } - } - if ($this.$cameraZoom !== 1.0) { - $var3 = $this.$cameraYaw; - $var4 = -$this.$cameraPitch; - nlegv_Vector3f_set(nleg_EaglerAdapterGL30_deevis, $var3, $var4, 0.0); - var$4 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate1(var$4, nleg_EaglerAdapterGL30_deevis, var$4); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - nleg_EaglerAdapterGL30_glScalef($this.$cameraZoom, $this.$cameraZoom, 1.0); - } - nleg_EaglerAdapterGL30_gluPerspective(nms_EntityRenderer_getFOVModifier($this, $par1, 1), $this.$mc7.$displayWidth / $this.$mc7.$displayHeight, 0.05000000074505806, $this.$farPlaneDistance * 2.0); - nleg_EaglerAdapterGL30_glMatrixMode(10); - nleg_EaglerAdapterGL30_glLoadIdentity(); - if ($this.$mc7.$gameSettings.$anaglyph) - nleg_EaglerAdapterGL30_glTranslatef((($par2 * 2 | 0) - 1 | 0) * 0.10000000149011612, 0.0, 0.0); - nms_EntityRenderer_hurtCameraEffect($this, $par1); - if ($this.$mc7.$gameSettings.$viewBobbing) - nms_EntityRenderer_setupViewBobbing($this, $par1); - $var4 = $this.$mc7.$thePlayer.$prevTimeInPortal + ($this.$mc7.$thePlayer.$timeInPortal - $this.$mc7.$thePlayer.$prevTimeInPortal) * $par1; - if ($var4 > 0.0) { - $var5 = 20; - if (nms_EntityLiving_isPotionActive($this.$mc7.$thePlayer, nms_Potion_confusion)) - $var5 = 7; - $var6 = 5.0 / ($var4 * $var4 + 5.0) - $var4 * 0.03999999910593033; - $var3 = $var6 * $var6; - $var4 = $this.$rendererUpdateCount + $par1; - $var6 = $var5; - nleg_EaglerAdapterGL30_glRotatef($var4 * $var6, 0.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glScalef(1.0 / $var3, 1.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef( -($this.$rendererUpdateCount + $par1) * $var6, 0.0, 1.0, 1.0); - } - nms_EntityRenderer_orientCamera($this, $par1); - if ($this.$debugViewDirection > 0) { - $var7 = $this.$debugViewDirection - 1 | 0; - if ($var7 == 1) - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 1.0, 0.0); - if ($var7 == 2) - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 1.0, 0.0); - if ($var7 == 3) - nleg_EaglerAdapterGL30_glRotatef((-90.0), 0.0, 1.0, 0.0); - if ($var7 == 4) - nleg_EaglerAdapterGL30_glRotatef(90.0, 1.0, 0.0, 0.0); - if ($var7 == 5) - nleg_EaglerAdapterGL30_glRotatef((-90.0), 1.0, 0.0, 0.0); - } -} -function nms_EntityRenderer_renderHand($this, $par1, $par2) { - var var$3, var$4, var$5, var$6, 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();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$debugViewDirection <= 0) { - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_matrixMode = 9; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_gluPerspectiveFlat(nms_EntityRenderer_getFOVModifier($this, $par1, 0), $this.$mc7.$displayWidth / $this.$mc7.$displayHeight, 0.05000000074505806, 10.0); - if ($this.$mc7.$gameSettings.$anaglyph) { - var$3 = -(($par2 * 2 | 0) - 1 | 0) * 0.07000000029802322; - var$4 = nleg_EaglerAdapterGL30_deevis; - var$4.$x = var$3; - var$4.$y = 0.0; - var$4.$z = 0.0; - 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); - } - } - if ($this.$cameraZoom !== 1.0) { - var$3 = $this.$cameraYaw; - var$8 = -$this.$cameraPitch; - var$4 = nleg_EaglerAdapterGL30_deevis; - var$4.$x = var$3; - var$4.$y = var$8; - var$4.$z = 0.0; - 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); - } - var$3 = $this.$cameraZoom; - var$8 = $this.$cameraZoom; - var$4 = nleg_EaglerAdapterGL30_deevis; - var$4.$x = var$3; - var$4.$y = var$8; - var$4.$z = 1.0; - nlegv_Matrix4f_scale0(nleg_EaglerAdapterGL30_getMatrix(), nleg_EaglerAdapterGL30_deevis); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - } - nleg_EaglerAdapterGL30_glMatrixMode(10); - nleg_EaglerAdapterGL30_glLoadIdentity(); - if ($this.$mc7.$gameSettings.$anaglyph) - nleg_EaglerAdapterGL30_glTranslatef((($par2 * 2 | 0) - 1 | 0) * 0.10000000149011612, 0.0, 0.0); - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_EntityRenderer_hurtCameraEffect($this, $par1); - if ($this.$mc7.$gameSettings.$viewBobbing) - nms_EntityRenderer_setupViewBobbing($this, $par1); - if (!$this.$mc7.$gameSettings.$thirdPersonView && !nms_EntityPlayer_isPlayerSleeping($this.$mc7.$renderViewEntity) && !$this.$mc7.$gameSettings.$hideGUI && !nms_PlayerControllerMP_enableEverythingIsScrewedUpMode($this.$mc7.$playerController)) { - var$9 = $par1; - nms_EntityRenderer_enableLightmap($this, var$9); - var$4 = $this.$itemRenderer0; - $ptr = 1; - continue main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - if (!$this.$mc7.$gameSettings.$thirdPersonView && !nms_EntityPlayer_isPlayerSleeping($this.$mc7.$renderViewEntity)) { - nms_ItemRenderer_renderOverlays($this.$itemRenderer0, $par1); - nms_EntityRenderer_hurtCameraEffect($this, $par1); - } - if ($this.$mc7.$gameSettings.$viewBobbing) - nms_EntityRenderer_setupViewBobbing($this, $par1); - } - return; - case 1: - nms_ItemRenderer_renderItemInFirstPerson(var$4, $par1); - if ($rt_suspending()) { - break main; - } - nms_EntityRenderer_disableLightmap($this, var$9); - nleg_EaglerAdapterGL30_glPopMatrix(); - if (!$this.$mc7.$gameSettings.$thirdPersonView && !nms_EntityPlayer_isPlayerSleeping($this.$mc7.$renderViewEntity)) { - nms_ItemRenderer_renderOverlays($this.$itemRenderer0, $par1); - nms_EntityRenderer_hurtCameraEffect($this, $par1); - } - if ($this.$mc7.$gameSettings.$viewBobbing) - nms_EntityRenderer_setupViewBobbing($this, $par1); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $ptr); -} -function nms_EntityRenderer_disableLightmap($this, $par1) { - nleg_EaglerAdapterGL30_glActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glActiveTexture(nms_OpenGlHelper_defaultTexUnit); -} -function nms_EntityRenderer_enableLightmap($this, $par1) { - var var$2, var$3, var$4; - nleg_EaglerAdapterGL30_glActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - var$2 = $this.$lightmapTexture; - var$3 = nleg_EaglerAdapterGL30_texObjects; - var$3 = var$2 < var$3.$size3 && var$2 >= 0 ? var$3.$values.data[var$2] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = nlea_EaglerAdapterImpl2_webgl; - var$3 = var$3 !== null ? var$3.$obj : null; - var$4.bindTexture(3553, var$3); - nleg_EaglerAdapterGL30_glTexParameteri(2, 47, 49); - nleg_EaglerAdapterGL30_glTexParameteri(2, 48, 49); - nleg_EaglerAdapterGL30_glTexParameteri(2, 72, 71); - nleg_EaglerAdapterGL30_glTexParameteri(2, 73, 71); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glEnable(2); - $this.$mc7.$renderEngine.$boundTexture = (-1); - nleg_EaglerAdapterGL30_glActiveTexture(nms_OpenGlHelper_defaultTexUnit); -} -function nms_EntityRenderer_updateTorchFlicker($this) { - $this.$torchFlickerDX = $this.$torchFlickerDX + (jl_Math_randomImpl() - jl_Math_randomImpl()) * jl_Math_randomImpl() * jl_Math_randomImpl(); - $this.$torchFlickerDY = $this.$torchFlickerDY + (jl_Math_randomImpl() - jl_Math_randomImpl()) * jl_Math_randomImpl() * jl_Math_randomImpl(); - $this.$torchFlickerDX = $this.$torchFlickerDX * 0.9; - $this.$torchFlickerDY = $this.$torchFlickerDY * 0.9; - $this.$torchFlickerX = $this.$torchFlickerX + ($this.$torchFlickerDX - $this.$torchFlickerX) * 1.0; - $this.$torchFlickerY = $this.$torchFlickerY + ($this.$torchFlickerDY - $this.$torchFlickerY) * 1.0; - $this.$lightmapUpdateNeeded = 1; -} -function nms_EntityRenderer_updateLightmap($this, $par1) { - var $var2, $var3, $var4, var$5, $var21, $var5, $var6, $var7, $var11, $var12, $var13, $var14, $var15, $var16, $var17, $var18, $var19; - $var2 = $this.$mc7.$theWorld; - if ($var2 !== null) { - $var3 = 0; - while ($var3 < 256) { - $var4 = nms_World_getSunBrightness($var2, 1.0) * 0.949999988079071 + 0.05000000074505806; - var$5 = $var2.$provider.$lightBrightnessTable.data; - $var21 = $var3 / 16 | 0; - $var5 = var$5[$var21] * $var4; - $var6 = $var2.$provider.$lightBrightnessTable.data[$var3 % 16 | 0] * ($this.$torchFlickerX * 0.15000000596046448 + 1.4500000476837158); - if ($var2.$lastLightningBolt > 0) - $var5 = $var2.$provider.$lightBrightnessTable.data[$var21]; - $var7 = $var5 * (nms_World_getSunBrightness($var2, 1.0) * 0.6499999761581421 + 0.3499999940395355); - $var11 = $var6 * (($var6 * 0.6000000238418579 + 0.4000000059604645) * 0.6000000238418579 + 0.4000000059604645); - $var12 = $var6 * ($var6 * $var6 * 0.6000000238418579 + 0.4000000059604645); - $var13 = $var7 + $var6; - $var14 = $var7 + $var11; - $var15 = $var5 + $var12; - $var13 = $var13 * 0.9599999785423279 + 0.029999999329447746; - $var14 = $var14 * 0.9599999785423279 + 0.029999999329447746; - $var15 = $var15 * 0.9599999785423279 + 0.029999999329447746; - if ($this.$field_82831_U > 0.0) { - $var16 = $this.$field_82832_V + ($this.$field_82831_U - $this.$field_82832_V) * $par1; - $var4 = 1.0 - $var16; - $var13 = $var13 * $var4 + $var13 * 0.699999988079071 * $var16; - $var14 = $var14 * $var4 + $var14 * 0.6000000238418579 * $var16; - $var15 = $var15 * $var4 + $var15 * 0.6000000238418579 * $var16; - } - if ($var2.$provider.$dimensionId == 1) { - $var13 = 0.2199999988079071 + $var6 * 0.75; - $var14 = 0.2800000011920929 + $var11 * 0.75; - $var15 = 0.25 + $var12 * 0.75; - } - if (nms_EntityLiving_isPotionActive($this.$mc7.$thePlayer, nms_Potion_nightVision)) { - $var16 = nms_EntityRenderer_getNightVisionBrightness($this, $this.$mc7.$thePlayer, $par1); - $var17 = 1.0 / $var13; - $var4 = 1.0 / $var14; - if ($var17 <= $var4) - $var4 = $var17; - $var5 = 1.0 / $var15; - if ($var4 <= $var5) - $var5 = $var4; - $var4 = 1.0 - $var16; - $var13 = $var13 * $var4 + $var13 * $var5 * $var16; - $var14 = $var14 * $var4 + $var14 * $var5 * $var16; - $var15 = $var15 * $var4 + $var15 * $var5 * $var16; - } - if ($var13 > 1.0) - $var13 = 1.0; - if ($var14 > 1.0) - $var14 = 1.0; - if ($var15 > 1.0) - $var15 = 1.0; - $var16 = $this.$mc7.$gameSettings.$gammaSetting; - $var17 = 1.0 - $var13; - $var18 = 1.0 - $var14; - $var19 = 1.0 - $var15; - $var4 = 1.0 - $var17 * $var17 * $var17 * $var17; - $var5 = 1.0 - $var18 * $var18 * $var18 * $var18; - $var6 = 1.0 - $var19 * $var19 * $var19 * $var19; - $var7 = 1.0 - $var16; - $var4 = $var13 * $var7 + $var4 * $var16; - $var5 = $var14 * $var7 + $var5 * $var16; - $var6 = $var15 * $var7 + $var6 * $var16; - $var4 = $var4 * 0.9599999785423279 + 0.029999999329447746; - $var5 = $var5 * 0.9599999785423279 + 0.029999999329447746; - $var6 = $var6 * 0.9599999785423279 + 0.029999999329447746; - if ($var4 > 1.0) - $var4 = 1.0; - if ($var5 > 1.0) - $var5 = 1.0; - if ($var6 > 1.0) - $var6 = 1.0; - if ($var4 < 0.0) - $var4 = 0.0; - if ($var5 < 0.0) - $var5 = 0.0; - if ($var6 < 0.0) - $var6 = 0.0; - $this.$lightmapColors.data[$var3] = (-16777216) | ($var4 * 255.0 | 0) << 16 | ($var5 * 255.0 | 0) << 8 | $var6 * 255.0 | 0; - $var3 = $var3 + 1 | 0; - } - nms_RenderEngine_createTextureFromBytes($this.$mc7.$renderEngine, $this.$lightmapColors, 16, 16, $this.$lightmapTexture); - } -} -function nms_EntityRenderer_getNightVisionBrightness($this, $par1EntityPlayer, $par2) { - var $var3; - $var3 = nms_EntityLiving_getActivePotionEffect($par1EntityPlayer, nms_Potion_nightVision).$duration; - if ($var3 > 200) - $par2 = 1.0; - else { - $par2 = ($var3 - $par2) * 3.1415927410125732 * 0.20000000298023224; - $par2 = 0.699999988079071 + nms_MathHelper_SIN_TABLE.data[($par2 * 10430.3779296875 | 0) & 65535] * 0.30000001192092896; - } - return $par2; -} -function nms_EntityRenderer_updateCameraAndRender($this, $par1) { - var $var2, $var13, var$4, var$5, $var3, $var4, $var5, $var6, $var7, $var8, $var14, $var15, $var16, $var17, $var18, var$17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$17 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var13 = $thread.pop();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Profiler_startSection($this.$mc7.$mcProfiler, $rt_s(623)); - if ($this.$lightmapUpdateNeeded) - nms_EntityRenderer_updateLightmap($this, $par1); - nms_Profiler_endSection($this.$mc7.$mcProfiler); - $var2 = nlea_EaglerAdapterImpl2_isFocused(); - if (!$var2 && $this.$mc7.$gameSettings.$pauseOnLostFocus) { - $var13 = $this.$mc7; - if ($var13.$currentScreen === null) { - var$4 = new nms_GuiIngameMenu; - nms_GuiScreen__init_(var$4); - var$4.$updateCounter2 = 0; - var$4.$updateCounter = 0; - $ptr = 1; - continue main; - } - } else - $this.$prevFrameTime0 = jl_System_currentTimeMillis(); - nms_Profiler_startSection($this.$mc7.$mcProfiler, $rt_s(323)); - if ($this.$mc7.$inGameHasFocus && $var2) { - $var13 = $this.$mc7.$mouseHelper; - var$5 = nlea_EaglerAdapterImpl2_mouseDX; - nlea_EaglerAdapterImpl2_mouseDX = 0.0; - $var13.$deltaX = var$5 | 0; - var$5 = nlea_EaglerAdapterImpl2_mouseDY; - nlea_EaglerAdapterImpl2_mouseDY = 0.0; - $var13.$deltaY = var$5 | 0; - $var3 = $this.$mc7.$gameSettings.$mouseSensitivity * 0.6000000238418579 + 0.20000000298023224; - if ($this.$mc7.$gameSettings.$keyBindZoom.$pressed) - $var3 = $var3 * 0.5; - $var4 = $var3 * $var3 * $var3 * 8.0; - $var5 = $this.$mc7.$mouseHelper.$deltaX * $var4; - $var6 = $this.$mc7.$mouseHelper.$deltaY * $var4; - $var7 = 1; - if ($this.$mc7.$gameSettings.$invertMouse) - $var7 = (-1); - if (!$this.$mc7.$gameSettings.$smoothCamera) - nms_Entity_setAngles($this.$mc7.$thePlayer, $var5, $var6 * $var7); - else { - $this.$smoothCamYaw = $this.$smoothCamYaw + $var5; - $this.$smoothCamPitch = $this.$smoothCamPitch + $var6; - $var8 = $par1 - $this.$smoothCamPartialTicks; - $this.$smoothCamPartialTicks = $par1; - $var3 = $this.$smoothCamFilterX * $var8; - $var4 = $this.$smoothCamFilterY * $var8; - nms_Entity_setAngles($this.$mc7.$thePlayer, $var3, $var4 * $var7); - } - } - nms_Profiler_endSection($this.$mc7.$mcProfiler); - if (!$this.$mc7.$skipRenderWorld) { - nms_EntityRenderer_anaglyphEnable = $this.$mc7.$gameSettings.$anaglyph; - $var13 = nms_ScaledResolution__init_($this.$mc7.$gameSettings, $this.$mc7.$displayWidth, $this.$mc7.$displayHeight); - $var14 = $var13.$scaledWidth; - $var15 = $var13.$scaledHeight; - $var16 = $rt_imul(nlea_EaglerAdapterImpl2_mouseX, $var14) / $this.$mc7.$displayWidth | 0; - $var17 = ($var15 - ($rt_imul(nlea_EaglerAdapterImpl2_mouseY, $var15) / $this.$mc7.$displayHeight | 0) | 0) - 1 | 0; - $var2 = $this.$mc7.$gameSettings.$limitFramerate; - $var18 = 240; - if ($var2 == 1) - $var18 = 90; - if ($var2 == 2) - $var18 = 35; - if ($this.$mc7.$theWorld !== null) { - nms_Profiler_startSection($this.$mc7.$mcProfiler, $rt_s(320)); - if (!$this.$mc7.$gameSettings.$limitFramerate) { - var$17 = Long_ZERO; - $ptr = 3; - continue main; - } - var$17 = Long_add($this.$renderEndNanoTime, Long_fromInt(1000000000 / $var18 | 0)); - $ptr = 2; - continue main; - } - $var15 = $this.$mc7.$displayWidth; - $var18 = $this.$mc7.$displayHeight; - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2__wglViewport(0, 0, $var15, $var18); - nleg_EaglerAdapterGL30_matrixMode = 9; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_matrixMode = 10; - nleg_EaglerAdapterGL30_glLoadIdentity(); - nms_EntityRenderer_setupOverlayRendering($this); - $this.$renderEndNanoTime = jl_System_nanoTime(); - nleg_EaglerAdapterGL30_glClear(2); - if ($this.$mc7.$currentScreen !== null) { - $var13 = $this.$mc7.$currentScreen; - $ptr = 4; - continue main; - } - nle_GuiScreenVoiceChannel_drawOverlay(); - } - return; - case 1: - nmc_Minecraft_displayGuiScreen($var13, var$4); - if ($rt_suspending()) { - break main; - } - nms_Profiler_startSection($this.$mc7.$mcProfiler, $rt_s(323)); - if ($this.$mc7.$inGameHasFocus && $var2) { - $var13 = $this.$mc7.$mouseHelper; - var$5 = nlea_EaglerAdapterImpl2_mouseDX; - nlea_EaglerAdapterImpl2_mouseDX = 0.0; - $var13.$deltaX = var$5 | 0; - var$5 = nlea_EaglerAdapterImpl2_mouseDY; - nlea_EaglerAdapterImpl2_mouseDY = 0.0; - $var13.$deltaY = var$5 | 0; - $var3 = $this.$mc7.$gameSettings.$mouseSensitivity * 0.6000000238418579 + 0.20000000298023224; - if ($this.$mc7.$gameSettings.$keyBindZoom.$pressed) - $var3 = $var3 * 0.5; - $var4 = $var3 * $var3 * $var3 * 8.0; - $var5 = $this.$mc7.$mouseHelper.$deltaX * $var4; - $var6 = $this.$mc7.$mouseHelper.$deltaY * $var4; - $var7 = 1; - if ($this.$mc7.$gameSettings.$invertMouse) - $var7 = (-1); - if (!$this.$mc7.$gameSettings.$smoothCamera) - nms_Entity_setAngles($this.$mc7.$thePlayer, $var5, $var6 * $var7); - else { - $this.$smoothCamYaw = $this.$smoothCamYaw + $var5; - $this.$smoothCamPitch = $this.$smoothCamPitch + $var6; - $var8 = $par1 - $this.$smoothCamPartialTicks; - $this.$smoothCamPartialTicks = $par1; - $var3 = $this.$smoothCamFilterX * $var8; - $var4 = $this.$smoothCamFilterY * $var8; - nms_Entity_setAngles($this.$mc7.$thePlayer, $var3, $var4 * $var7); - } - } - nms_Profiler_endSection($this.$mc7.$mcProfiler); - if (!$this.$mc7.$skipRenderWorld) { - nms_EntityRenderer_anaglyphEnable = $this.$mc7.$gameSettings.$anaglyph; - $var13 = nms_ScaledResolution__init_($this.$mc7.$gameSettings, $this.$mc7.$displayWidth, $this.$mc7.$displayHeight); - $var14 = $var13.$scaledWidth; - $var15 = $var13.$scaledHeight; - $var16 = $rt_imul(nlea_EaglerAdapterImpl2_mouseX, $var14) / $this.$mc7.$displayWidth | 0; - $var17 = ($var15 - ($rt_imul(nlea_EaglerAdapterImpl2_mouseY, $var15) / $this.$mc7.$displayHeight | 0) | 0) - 1 | 0; - $var2 = $this.$mc7.$gameSettings.$limitFramerate; - $var18 = 240; - if ($var2 == 1) - $var18 = 90; - if ($var2 == 2) - $var18 = 35; - if ($this.$mc7.$theWorld !== null) { - nms_Profiler_startSection($this.$mc7.$mcProfiler, $rt_s(320)); - if (!$this.$mc7.$gameSettings.$limitFramerate) { - var$17 = Long_ZERO; - $ptr = 3; - continue main; - } - var$17 = Long_add($this.$renderEndNanoTime, Long_fromInt(1000000000 / $var18 | 0)); - $ptr = 2; - continue main; - } - $var15 = $this.$mc7.$displayWidth; - $var18 = $this.$mc7.$displayHeight; - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2__wglViewport(0, 0, $var15, $var18); - nleg_EaglerAdapterGL30_matrixMode = 9; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_matrixMode = 10; - nleg_EaglerAdapterGL30_glLoadIdentity(); - nms_EntityRenderer_setupOverlayRendering($this); - $this.$renderEndNanoTime = jl_System_nanoTime(); - nleg_EaglerAdapterGL30_glClear(2); - if ($this.$mc7.$currentScreen !== null) { - $var13 = $this.$mc7.$currentScreen; - $ptr = 4; - continue main; - } - nle_GuiScreenVoiceChannel_drawOverlay(); - } - return; - case 2: - nms_EntityRenderer_renderWorld($this, $par1, var$17); - if ($rt_suspending()) { - break main; - } - $this.$renderEndNanoTime = jl_System_nanoTime(); - $var13 = $this.$mc7.$mcProfiler; - nms_Profiler_endSection($var13); - nms_Profiler_startSection($var13, $rt_s(314)); - if ($this.$mc7.$gameSettings.$hideGUI && $this.$mc7.$currentScreen === null) { - nms_Profiler_endSection($this.$mc7.$mcProfiler); - nleg_EaglerAdapterGL30_glClear(2); - if ($this.$mc7.$currentScreen === null) { - nle_GuiScreenVoiceChannel_drawOverlay(); - return; - } - $var13 = $this.$mc7.$currentScreen; - $ptr = 4; - continue main; - } - $var13 = $this.$mc7.$ingameGUI; - $var2 = $this.$mc7.$currentScreen === null ? 0 : 1; - $ptr = 5; - continue main; - case 3: - nms_EntityRenderer_renderWorld($this, $par1, var$17); - if ($rt_suspending()) { - break main; - } - $this.$renderEndNanoTime = jl_System_nanoTime(); - $var13 = $this.$mc7.$mcProfiler; - nms_Profiler_endSection($var13); - nms_Profiler_startSection($var13, $rt_s(314)); - if ($this.$mc7.$gameSettings.$hideGUI && $this.$mc7.$currentScreen === null) { - nms_Profiler_endSection($this.$mc7.$mcProfiler); - nleg_EaglerAdapterGL30_glClear(2); - if ($this.$mc7.$currentScreen === null) { - nle_GuiScreenVoiceChannel_drawOverlay(); - return; - } - $var13 = $this.$mc7.$currentScreen; - $ptr = 4; - continue main; - } - $var13 = $this.$mc7.$ingameGUI; - $var2 = $this.$mc7.$currentScreen === null ? 0 : 1; - $ptr = 5; - continue main; - case 4: - $var13.$drawScreen($var16, $var17, $par1); - if ($rt_suspending()) { - break main; - } - if ($this.$mc7.$currentScreen !== null && $this.$mc7.$currentScreen.$guiParticles !== null) - nms_GuiParticle_draw($this.$mc7.$currentScreen.$guiParticles, $par1); - nle_GuiScreenVoiceChannel_drawOverlay(); - return; - case 5: - nms_GuiIngame_renderGameOverlay($var13, $par1, $var2, $var16, $var17); - if ($rt_suspending()) { - break main; - } - nms_Profiler_endSection($this.$mc7.$mcProfiler); - nleg_EaglerAdapterGL30_glClear(2); - if ($this.$mc7.$currentScreen === null) { - nle_GuiScreenVoiceChannel_drawOverlay(); - return; - } - $var13 = $this.$mc7.$currentScreen; - $ptr = 4; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, $var13, var$4, var$5, $var3, $var4, $var5, $var6, $var7, $var8, $var14, $var15, $var16, $var17, $var18, var$17, $ptr); -} -function nms_EntityRenderer_renderWorld($this, $par1, $par2) { - var $var4, $var5, $var6, var$6, var$7, var$8, $var7, $var9, $var11, $var13, var$13, var$14, $var17, $var14, $var15, var$18, $var18, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var18 = $thread.pop();var$18 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var17 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Profiler_startSection($this.$mc7.$mcProfiler, $rt_s(623)); - if ($this.$lightmapUpdateNeeded) - nms_EntityRenderer_updateLightmap($this, $par1); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glEnable(4); - if ($this.$mc7.$renderViewEntity === null) - $this.$mc7.$renderViewEntity = $this.$mc7.$thePlayer; - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(315)); - nms_EntityRenderer_getMouseOver($this, $par1); - $var4 = $this.$mc7.$renderViewEntity; - $var5 = $this.$mc7.$renderGlobal; - $var6 = $this.$mc7.$effectRenderer; - var$6 = $var4.$lastTickPosX; - var$7 = $var4.$posX - $var4.$lastTickPosX; - var$8 = $par1; - $var7 = var$6 + var$7 * var$8; - $var9 = $var4.$lastTickPosY + ($var4.$posY - $var4.$lastTickPosY) * var$8; - $var11 = $var4.$lastTickPosZ + ($var4.$posZ - $var4.$lastTickPosZ) * var$8; - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(624)); - $var13 = 0; - var$13 = Long_compare($par2, Long_ZERO); - var$14 = $var4 instanceof nms_EntityPlayer; - $var17 = $var4; - if ($var13 >= 2) { - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(625)); - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 0); - nleg_EffectPipelineFXAA_endPipelineRender(); - nms_Profiler_endSection($this.$mc7.$mcProfiler); - return; - } - if ($this.$mc7.$gameSettings.$anaglyph) { - nms_EntityRenderer_anaglyphField = $var13; - if (nms_EntityRenderer_anaglyphField) - nleg_EaglerAdapterGL30_glColorMask(1, 0, 0, 0); - else - nleg_EaglerAdapterGL30_glColorMask(0, 1, 1, 0); - } - nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$mc7.$displayWidth, $this.$mc7.$displayHeight); - nleg_EffectPipelineFXAA_beginPipelineRender(); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(626)); - nleg_EaglerAdapterGL30_glClear(3); - nms_EntityRenderer_updateFogColor($this, $par1); - nleg_EaglerAdapterGL30_glEnable(46); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(627)); - nms_EntityRenderer_setupCameraTransform($this, $par1, $var13); - nms_ActiveRenderInfo_updateRenderInfo($this.$mc7.$thePlayer, $this.$mc7.$gameSettings.$thirdPersonView != 2 ? 0 : 1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(628)); - nms_ClippingHelperImpl_getInstance(); - nleg_EaglerAdapterGL30_glEnable(14); - if ($this.$mc7.$gameSettings.$renderDistance < 2) { - nms_EntityRenderer_setupFog($this, (-1), $par1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(629)); - nms_RenderGlobal_renderSky($var5, $par1); - } - nms_EntityRenderer_setupFog($this, 1, $par1); - if ($this.$mc7.$gameSettings.$ambientOcclusion) - nleg_EaglerAdapterGL30_glShadeModel(3); - a: { - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(630)); - $var14 = nms_Frustrum__init_0(); - nms_Frustrum_setPosition($var14, $var7, $var9, $var11); - nms_RenderGlobal_clipRenderersByFrustum($this.$mc7.$renderGlobal, $var14, $par1); - if (!$var13) { - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(631)); - while (true) { - if (nms_RenderGlobal_updateRenderers($this.$mc7.$renderGlobal, $var4, 0)) - break a; - if (!var$13) - break a; - $var15 = Long_sub($par2, jl_System_nanoTime()); - if (Long_lt($var15, Long_ZERO)) - break a; - if (Long_gt($var15, Long_fromInt(1000000000))) - break; - } - } - } - if ($var4.$posY < 128.0) - nms_EntityRenderer_renderCloudsCheck($this, $var5, $par1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(632)); - nleg_EaglerAdapterGL30_glEnable(14); - nms_EntityRenderer_setupFog($this, 0, $par1); - nleg_EaglerAdapterGL30_glDisable(16); - nms_RenderHelper_disableStandardItemLighting(); - nle_TextureLocation_bindTexture(nms_EntityRenderer_terrain); - nleg_EaglerAdapterGL30_glTexParameterf(2, 150, 16.0); - nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.6000000238418579); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(633)); - nms_RenderGlobal_sortAndRender($var5, $var4, 0, var$8); - nleg_EaglerAdapterGL30_glShadeModel(34); - if (!$this.$debugViewDirection) { - nms_RenderHelper_enableStandardItemLighting(); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(634)); - var$18 = nms_EntityLiving_getPosition($var4, $par1); - $ptr = 1; - continue main; - } - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glDepthMask(1); - nms_EntityRenderer_setupFog($this, 0, $par1); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.029999999329447746); - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture(nms_EntityRenderer_terrain); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(613)); - nleg_EaglerAdapterGL30_glColorMask(0, 0, 0, 0); - $var18 = nms_RenderGlobal_sortAndRender($var5, $var4, 1, var$8); - if (!$this.$mc7.$gameSettings.$anaglyph) - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 1); - else if (nms_EntityRenderer_anaglyphField) - nleg_EaglerAdapterGL30_glColorMask(1, 0, 0, 1); - else - nleg_EaglerAdapterGL30_glColorMask(0, 1, 1, 1); - if ($var18 > 0) { - nleg_EaglerAdapterGL30_glDepthFunc(52); - nms_RenderGlobal_renderSortedRenderers($var5, 0, $var5.$sortedWorldRenderers.data.length, 1, var$8); - nleg_EaglerAdapterGL30_glDepthFunc(5); - } - nleg_EaglerAdapterGL30_glTexParameterf(2, 150, 1.0); - $ptr = 4; - continue main; - case 1: - nms_RenderGlobal_renderEntities($var5, var$18, $var14, $par1); - if ($rt_suspending()) { - break main; - } - nms_EntityRenderer_enableLightmap($this, var$8); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(635)); - $ptr = 2; - case 2: - nms_EffectRenderer_renderLitParticles($var6, $var4, $par1); - if ($rt_suspending()) { - break main; - } - nms_RenderHelper_disableStandardItemLighting(); - nms_EntityRenderer_setupFog($this, 0, $par1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(322)); - $ptr = 3; - case 3: - nms_EffectRenderer_renderParticles($var6, $var4, $par1); - if ($rt_suspending()) { - break main; - } - nms_EntityRenderer_disableLightmap($this, var$8); - if ($this.$mc7.$objectMouseOver !== null) { - nms_Material_$callClinit(); - if (nms_Entity_isInsideOfMaterial($var4, nms_Material_water) && var$14 && !$this.$mc7.$gameSettings.$hideGUI) { - nleg_EaglerAdapterGL30_glDisable(6); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(636)); - nms_RenderGlobal_drawBlockBreaking($var5, $var17, $this.$mc7.$objectMouseOver, 0, nms_InventoryPlayer_getCurrentItem($var17.$inventory), $par1); - nms_RenderGlobal_drawSelectionBox($var5, $var17, $this.$mc7.$objectMouseOver, 0, nms_InventoryPlayer_getCurrentItem($var17.$inventory), $par1); - nleg_EaglerAdapterGL30_glEnable(6); - } - } - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glDepthMask(1); - nms_EntityRenderer_setupFog($this, 0, $par1); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.029999999329447746); - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture(nms_EntityRenderer_terrain); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(613)); - nleg_EaglerAdapterGL30_glColorMask(0, 0, 0, 0); - $var18 = nms_RenderGlobal_sortAndRender($var5, $var4, 1, var$8); - if (!$this.$mc7.$gameSettings.$anaglyph) - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 1); - else if (nms_EntityRenderer_anaglyphField) - nleg_EaglerAdapterGL30_glColorMask(1, 0, 0, 1); - else - nleg_EaglerAdapterGL30_glColorMask(0, 1, 1, 1); - if ($var18 > 0) { - nleg_EaglerAdapterGL30_glDepthFunc(52); - nms_RenderGlobal_renderSortedRenderers($var5, 0, $var5.$sortedWorldRenderers.data.length, 1, var$8); - nleg_EaglerAdapterGL30_glDepthFunc(5); - } - nleg_EaglerAdapterGL30_glTexParameterf(2, 150, 1.0); - $ptr = 4; - case 4: - nms_EffectRenderer_renderTransparentParticles($var6, $var4, $par1); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glDepthMask(1); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glDisable(16); - if ($this.$cameraZoom === 1.0 && var$14 && !$this.$mc7.$gameSettings.$hideGUI && $this.$mc7.$objectMouseOver !== null) { - nms_Material_$callClinit(); - if (!nms_Entity_isInsideOfMaterial($var4, nms_Material_water)) { - nleg_EaglerAdapterGL30_glDisable(6); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(636)); - nms_RenderGlobal_drawBlockBreaking($var5, $var17, $this.$mc7.$objectMouseOver, 0, nms_InventoryPlayer_getCurrentItem($var17.$inventory), $par1); - nms_RenderGlobal_drawSelectionBox($var5, $var17, $this.$mc7.$objectMouseOver, 0, nms_InventoryPlayer_getCurrentItem($var17.$inventory), $par1); - nleg_EaglerAdapterGL30_glEnable(6); - } - } - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(637)); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 1); - nlea_Tessellator_$callClinit(); - nms_RenderGlobal_drawBlockDamageTexture($var5, nlea_Tessellator_instance, $var17, $par1); - nleg_EaglerAdapterGL30_glDisable(16); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(638)); - nleg_EaglerAdapterGL30_glDisable(14); - if ($var4.$posY >= 128.0) - nms_EntityRenderer_renderCloudsCheck($this, $var5, $par1); - nms_EntityRenderer_renderRainSnow($this, $par1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(639)); - if (!$this.$mc7.$gameSettings.$keyBindZoom.$pressed) { - $ptr = 5; - continue main; - } - if ($this.$mc7.$gameSettings.$anaglyph) { - $var13 = $var13 + 1 | 0; - if ($var13 < 2) { - if ($this.$mc7.$gameSettings.$anaglyph) { - nms_EntityRenderer_anaglyphField = $var13; - if (nms_EntityRenderer_anaglyphField) - nleg_EaglerAdapterGL30_glColorMask(1, 0, 0, 0); - else - nleg_EaglerAdapterGL30_glColorMask(0, 1, 1, 0); - } - nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$mc7.$displayWidth, $this.$mc7.$displayHeight); - nleg_EffectPipelineFXAA_beginPipelineRender(); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(626)); - nleg_EaglerAdapterGL30_glClear(3); - nms_EntityRenderer_updateFogColor($this, $par1); - nleg_EaglerAdapterGL30_glEnable(46); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(627)); - nms_EntityRenderer_setupCameraTransform($this, $par1, $var13); - nms_ActiveRenderInfo_updateRenderInfo($this.$mc7.$thePlayer, $this.$mc7.$gameSettings.$thirdPersonView != 2 ? 0 : 1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(628)); - nms_ClippingHelperImpl_getInstance(); - nleg_EaglerAdapterGL30_glEnable(14); - if ($this.$mc7.$gameSettings.$renderDistance < 2) { - nms_EntityRenderer_setupFog($this, (-1), $par1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(629)); - nms_RenderGlobal_renderSky($var5, $par1); - } - nms_EntityRenderer_setupFog($this, 1, $par1); - if ($this.$mc7.$gameSettings.$ambientOcclusion) - nleg_EaglerAdapterGL30_glShadeModel(3); - b: { - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(630)); - $var14 = nms_Frustrum__init_0(); - nms_Frustrum_setPosition($var14, $var7, $var9, $var11); - nms_RenderGlobal_clipRenderersByFrustum($this.$mc7.$renderGlobal, $var14, $par1); - if (!$var13) { - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(631)); - while (true) { - if (nms_RenderGlobal_updateRenderers($this.$mc7.$renderGlobal, $var4, 0)) - break b; - if (!var$13) - break b; - $var15 = Long_sub($par2, jl_System_nanoTime()); - if (Long_lt($var15, Long_ZERO)) - break b; - if (Long_gt($var15, Long_fromInt(1000000000))) - break; - } - } - } - if ($var4.$posY < 128.0) - nms_EntityRenderer_renderCloudsCheck($this, $var5, $par1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(632)); - nleg_EaglerAdapterGL30_glEnable(14); - nms_EntityRenderer_setupFog($this, 0, $par1); - nleg_EaglerAdapterGL30_glDisable(16); - nms_RenderHelper_disableStandardItemLighting(); - nle_TextureLocation_bindTexture(nms_EntityRenderer_terrain); - nleg_EaglerAdapterGL30_glTexParameterf(2, 150, 16.0); - nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.6000000238418579); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(633)); - nms_RenderGlobal_sortAndRender($var5, $var4, 0, var$8); - nleg_EaglerAdapterGL30_glShadeModel(34); - if (!$this.$debugViewDirection) { - nms_RenderHelper_enableStandardItemLighting(); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(634)); - var$18 = nms_EntityLiving_getPosition($var4, $par1); - $ptr = 1; - continue main; - } - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glDepthMask(1); - nms_EntityRenderer_setupFog($this, 0, $par1); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.029999999329447746); - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture(nms_EntityRenderer_terrain); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(613)); - nleg_EaglerAdapterGL30_glColorMask(0, 0, 0, 0); - $var18 = nms_RenderGlobal_sortAndRender($var5, $var4, 1, var$8); - if (!$this.$mc7.$gameSettings.$anaglyph) - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 1); - else if (nms_EntityRenderer_anaglyphField) - nleg_EaglerAdapterGL30_glColorMask(1, 0, 0, 1); - else - nleg_EaglerAdapterGL30_glColorMask(0, 1, 1, 1); - if ($var18 > 0) { - nleg_EaglerAdapterGL30_glDepthFunc(52); - nms_RenderGlobal_renderSortedRenderers($var5, 0, $var5.$sortedWorldRenderers.data.length, 1, var$8); - nleg_EaglerAdapterGL30_glDepthFunc(5); - } - nleg_EaglerAdapterGL30_glTexParameterf(2, 150, 1.0); - continue main; - } - } - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(625)); - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 0); - nleg_EffectPipelineFXAA_endPipelineRender(); - nms_Profiler_endSection($this.$mc7.$mcProfiler); - return; - case 5: - nms_EntityRenderer_renderHand($this, $par1, $var13); - if ($rt_suspending()) { - break main; - } - if ($this.$mc7.$gameSettings.$anaglyph) { - $var13 = $var13 + 1 | 0; - if ($var13 < 2) { - if ($this.$mc7.$gameSettings.$anaglyph) { - nms_EntityRenderer_anaglyphField = $var13; - if (nms_EntityRenderer_anaglyphField) - nleg_EaglerAdapterGL30_glColorMask(1, 0, 0, 0); - else - nleg_EaglerAdapterGL30_glColorMask(0, 1, 1, 0); - } - nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$mc7.$displayWidth, $this.$mc7.$displayHeight); - nleg_EffectPipelineFXAA_beginPipelineRender(); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(626)); - nleg_EaglerAdapterGL30_glClear(3); - nms_EntityRenderer_updateFogColor($this, $par1); - nleg_EaglerAdapterGL30_glEnable(46); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(627)); - nms_EntityRenderer_setupCameraTransform($this, $par1, $var13); - nms_ActiveRenderInfo_updateRenderInfo($this.$mc7.$thePlayer, $this.$mc7.$gameSettings.$thirdPersonView != 2 ? 0 : 1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(628)); - nms_ClippingHelperImpl_getInstance(); - nleg_EaglerAdapterGL30_glEnable(14); - if ($this.$mc7.$gameSettings.$renderDistance < 2) { - nms_EntityRenderer_setupFog($this, (-1), $par1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(629)); - nms_RenderGlobal_renderSky($var5, $par1); - } - nms_EntityRenderer_setupFog($this, 1, $par1); - if ($this.$mc7.$gameSettings.$ambientOcclusion) - nleg_EaglerAdapterGL30_glShadeModel(3); - a: { - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(630)); - $var14 = nms_Frustrum__init_0(); - nms_Frustrum_setPosition($var14, $var7, $var9, $var11); - nms_RenderGlobal_clipRenderersByFrustum($this.$mc7.$renderGlobal, $var14, $par1); - if (!$var13) { - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(631)); - while (true) { - if (nms_RenderGlobal_updateRenderers($this.$mc7.$renderGlobal, $var4, 0)) - break a; - if (!var$13) - break a; - $var15 = Long_sub($par2, jl_System_nanoTime()); - if (Long_lt($var15, Long_ZERO)) - break a; - if (Long_gt($var15, Long_fromInt(1000000000))) - break; - } - } - } - if ($var4.$posY < 128.0) - nms_EntityRenderer_renderCloudsCheck($this, $var5, $par1); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(632)); - nleg_EaglerAdapterGL30_glEnable(14); - nms_EntityRenderer_setupFog($this, 0, $par1); - nleg_EaglerAdapterGL30_glDisable(16); - nms_RenderHelper_disableStandardItemLighting(); - nle_TextureLocation_bindTexture(nms_EntityRenderer_terrain); - nleg_EaglerAdapterGL30_glTexParameterf(2, 150, 16.0); - nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.6000000238418579); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(633)); - nms_RenderGlobal_sortAndRender($var5, $var4, 0, var$8); - nleg_EaglerAdapterGL30_glShadeModel(34); - if (!$this.$debugViewDirection) { - nms_RenderHelper_enableStandardItemLighting(); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(634)); - var$18 = nms_EntityLiving_getPosition($var4, $par1); - $ptr = 1; - continue main; - } - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glDepthMask(1); - nms_EntityRenderer_setupFog($this, 0, $par1); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.029999999329447746); - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture(nms_EntityRenderer_terrain); - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(613)); - nleg_EaglerAdapterGL30_glColorMask(0, 0, 0, 0); - $var18 = nms_RenderGlobal_sortAndRender($var5, $var4, 1, var$8); - if (!$this.$mc7.$gameSettings.$anaglyph) - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 1); - else if (nms_EntityRenderer_anaglyphField) - nleg_EaglerAdapterGL30_glColorMask(1, 0, 0, 1); - else - nleg_EaglerAdapterGL30_glColorMask(0, 1, 1, 1); - if ($var18 > 0) { - nleg_EaglerAdapterGL30_glDepthFunc(52); - nms_RenderGlobal_renderSortedRenderers($var5, 0, $var5.$sortedWorldRenderers.data.length, 1, var$8); - nleg_EaglerAdapterGL30_glDepthFunc(5); - } - nleg_EaglerAdapterGL30_glTexParameterf(2, 150, 1.0); - $ptr = 4; - continue main; - } - } - nms_Profiler_endStartSection($this.$mc7.$mcProfiler, $rt_s(625)); - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 0); - nleg_EffectPipelineFXAA_endPipelineRender(); - nms_Profiler_endSection($this.$mc7.$mcProfiler); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var4, $var5, $var6, var$6, var$7, var$8, $var7, $var9, $var11, $var13, var$13, var$14, $var17, $var14, $var15, var$18, $var18, $ptr); -} -function nms_EntityRenderer_renderCloudsCheck($this, $par1RenderGlobal, $par2) { - var var$3, var$4; - var$3 = $this.$mc7.$gameSettings; - if (var$3.$renderDistance < 2 && var$3.$clouds ? 1 : 0) { - var$4 = $this.$mc7.$mcProfiler; - nms_Profiler_endSection(var$4); - nms_Profiler_startSection(var$4, $rt_s(560)); - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_EntityRenderer_setupFog($this, 0, $par2); - nleg_EaglerAdapterGL30_glEnable(14); - nms_RenderGlobal_renderClouds($par1RenderGlobal, $par2); - nleg_EaglerAdapterGL30_glDisable(14); - nms_EntityRenderer_setupFog($this, 1, $par2); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_EntityRenderer_addRainParticles($this) { - var $var2, $var1, $var3, var$4, $var4, $var5, $var6, $var8, $var10, $var12, $var14, $var15, $var16, $var7, $var7_0, $var17, $var18, $var19, $var20, $var21, $var22, $var23, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();$var23 = $thread.pop();$var22 = $thread.pop();$var21 = $thread.pop();$var20 = $thread.pop();$var19 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var7_0 = $thread.pop();$var7 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$var1 = - $thread.pop();$var2 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$mc7.$theWorld; - $var1 = $var2.$prevRainingStrength + ($var2.$rainingStrength - $var2.$prevRainingStrength) * 1.0; - if (!$this.$mc7.$gameSettings.$fancyGraphics) - $var1 = $var1 / 2.0; - if ($var1 !== 0.0) { - $var2 = $this.$mc7.$renderViewEntity; - $var3 = $this.$mc7.$theWorld; - var$4 = $var2.$posX; - $var4 = var$4 | 0; - if (var$4 < $var4) - $var4 = $var4 - 1 | 0; - var$4 = $var2.$posY; - $var5 = var$4 | 0; - if (var$4 < $var5) - $var5 = $var5 - 1 | 0; - var$4 = $var2.$posZ; - $var6 = var$4 | 0; - if (var$4 < $var6) - $var6 = $var6 - 1 | 0; - $var8 = 0.0; - $var10 = 0.0; - $var12 = 0.0; - $var14 = 0; - $var15 = 100.0 * $var1 * $var1 | 0; - if ($this.$mc7.$gameSettings.$particleSetting == 1) - $var15 = $var15 >> 1; - else if ($this.$mc7.$gameSettings.$particleSetting == 2) - $var15 = 0; - $var16 = 0; - $var7 = $var5 + 10 | 0; - $var7_0 = $var5 - 10 | 0; - while ($var16 < $var15) { - $var17 = ($var4 + (Math.random() * 10.0 | 0) | 0) - (Math.random() * 10.0 | 0) | 0; - $var18 = ($var6 + (Math.random() * 10.0 | 0) | 0) - (Math.random() * 10.0 | 0) | 0; - $var19 = nms_World_getPrecipitationHeight($var3, $var17, $var18); - $var20 = nms_World_getBlockId($var3, $var17, $var19 - 1 | 0, $var18); - $var21 = nms_World_getBiomeGenForCoords($var3, $var17, $var18); - if ($var19 <= $var7 && $var19 >= $var7_0 && nms_BiomeGenBase_canSpawnLightningBolt($var21) && nms_BiomeGenBase_getFloatTemperature($var21) >= 0.20000000298023224) { - $var22 = ju_Random_nextFloat($this.$random); - $var23 = ju_Random_nextFloat($this.$random); - if ($var20 > 0) { - nms_Block_$callClinit(); - $var21 = nms_Block_blocksList.data[$var20].$blockMaterial; - nms_Material_$callClinit(); - if ($var21 === nms_Material_lava) - nms_EffectRenderer_addEffect($this.$mc7.$effectRenderer, nms_EntitySmokeFX__init_($var3, $var17 + $var22, $var19 + 0.10000000149011612 - nms_Block_getBlockBoundsMinY(nms_Block_blocksList.data[$var20]), $var18 + $var23, 0.0, 0.0, 0.0)); - else { - $var14 = $var14 + 1 | 0; - if (!ju_Random_nextInt0($this.$random, $var14)) { - $var8 = $var17 + $var22; - $var10 = $var19 + 0.10000000149011612 - nms_Block_getBlockBoundsMinY(nms_Block_blocksList.data[$var20]); - $var12 = $var18 + $var23; - } - nms_EffectRenderer_addEffect($this.$mc7.$effectRenderer, nms_EntityRainFX__init_($var3, $var17 + $var22, $var19 + 0.10000000149011612 - nms_Block_getBlockBoundsMinY(nms_Block_blocksList.data[$var20]), $var18 + $var23)); - } - } - } - $var16 = $var16 + 1 | 0; - } - if ($var14 > 0) { - $var6 = ju_Random_nextInt0($this.$random, 3); - $var5 = $this.$rainSoundCounter; - $this.$rainSoundCounter = $var5 + 1 | 0; - if ($var6 < $var5) { - $this.$rainSoundCounter = 0; - if ($var10 > $var2.$posY + 1.0 && nms_World_getPrecipitationHeight($var3, nms_MathHelper_floor_double($var2.$posX), nms_MathHelper_floor_double($var2.$posZ)) > nms_MathHelper_floor_double($var2.$posY)) { - $var2 = $this.$mc7.$theWorld; - $var21 = $rt_s(640); - $var1 = 0.029999999329447746; - var$23 = 0.5; - $var18 = 0; - $ptr = 2; - continue main; - } - $var21 = $this.$mc7.$theWorld; - $var2 = $rt_s(640); - $var1 = 0.05999999865889549; - var$23 = 1.0; - $var18 = 0; - $ptr = 1; - continue main; - } - } - } - return; - case 1: - nms_WorldClient_playSound($var21, $var8, $var10, $var12, $var2, $var1, var$23, $var18); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_WorldClient_playSound($var2, $var8, $var10, $var12, $var21, $var1, var$23, $var18); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var2, $var1, $var3, var$4, $var4, $var5, $var6, $var8, $var10, $var12, $var14, $var15, $var16, $var7, $var7_0, $var17, $var18, $var19, $var20, $var21, $var22, $var23, var$23, $ptr); -} -function nms_EntityRenderer_renderRainSnow($this, $par1) { - var $var2, var$3, $var3, $var4, $var5, $var6, $var7, var$9, $var45, $var41, $var42, $var43, $var44, $var8, $var9, $var11, $var13, $var15, $var16, $var18, $ticks, $var19, $var20, var$25, $var32, $var29, $var21, $var22, $var23, $var24, $var25, $var26, $var27, $var28, var$36, var$37, var$38, $var34, $var33, $var35, $var37, $var47, $var31, $var46, var$46, var$47, var$48, $var39, var$50; - $var2 = nms_World_getRainStrength($this.$mc7.$theWorld, $par1) * 0.5; - if ($var2 > 0.0) { - a: { - var$3 = $par1; - nms_EntityRenderer_enableLightmap($this, var$3); - if ($this.$rainXCoords === null) { - $this.$rainXCoords = $rt_createFloatArray(1024); - $this.$rainYCoords = $rt_createFloatArray(1024); - $var3 = 0; - while (true) { - if ($var3 >= 32) - break a; - $var4 = 0; - while ($var4 < 32) { - $var5 = $var4 - 16 | 0; - $var6 = $var3 - 16 | 0; - $var7 = nms_MathHelper_sqrt_float($var5 * $var5 + $var6 * $var6); - var$9 = $this.$rainXCoords.data; - $var45 = $var3 << 5 | $var4; - var$9[$var45] = -$var6 / $var7; - $this.$rainYCoords.data[$var45] = $var5 / $var7; - $var4 = $var4 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - } - } - $var41 = $this.$mc7.$renderViewEntity; - $var42 = $this.$mc7.$theWorld; - $var43 = nms_MathHelper_floor_double($var41.$posX); - $var44 = nms_MathHelper_floor_double($var41.$posY); - $var45 = nms_MathHelper_floor_double($var41.$posZ); - nlea_Tessellator_$callClinit(); - $var8 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.009999999776482582); - nle_TextureLocation_bindTexture(nms_EntityRenderer_snow); - $var9 = $var41.$lastTickPosX + ($var41.$posX - $var41.$lastTickPosX) * var$3; - $var11 = $var41.$lastTickPosY + ($var41.$posY - $var41.$lastTickPosY) * var$3; - $var13 = $var41.$lastTickPosZ + ($var41.$posZ - $var41.$lastTickPosZ) * var$3; - $var15 = nms_MathHelper_floor_double($var11); - $var16 = 5; - if ($this.$mc7.$gameSettings.$fancyGraphics) - $var16 = 10; - $var18 = (-1); - $ticks = $this.$rendererUpdateCount % 100000 | 0; - $var19 = $ticks + $par1; - if ($this.$mc7.$gameSettings.$fancyGraphics) - $var16 = 10; - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - $var20 = $var45 - $var16 | 0; - var$25 = -$var9 * 1.0; - $var11 = -$var11 * 1.0; - $var13 = -$var13 * 1.0; - $var32 = (($ticks & 511) + $par1) / 512.0; - $var5 = $var19 * 0.009999999776482582; - $var29 = $var32 * 1.0; - while ($var20 <= ($var45 + $var16 | 0)) { - $var21 = $var43 - $var16 | 0; - while ($var21 <= ($var43 + $var16 | 0)) { - $var22 = ((((($var20 - $var45 | 0) + 16 | 0) * 32 | 0) + $var21 | 0) - $var43 | 0) + 16 | 0; - $var23 = $this.$rainXCoords.data[$var22] * 0.5; - $var24 = $this.$rainYCoords.data[$var22] * 0.5; - $var25 = nms_World_getBiomeGenForCoords($var42, $var21, $var20); - if (!(!nms_BiomeGenBase_canSpawnLightningBolt($var25) && !nms_BiomeGenBase_getEnableSnow($var25))) { - $var26 = nms_World_getPrecipitationHeight($var42, $var21, $var20); - $var27 = $var44 - $var16 | 0; - $var28 = $var44 + $var16 | 0; - if ($var27 < $var26) - $var27 = $var26; - if ($var28 < $var26) - $var28 = $var26; - if ($var26 < $var15) - $var26 = $var15; - if ($var27 != $var28) { - var$36 = $this.$random; - $var3 = $rt_imul($var21, $var21) * 3121 | 0; - $var4 = $rt_imul($var21, 45238971); - $var22 = $var3 + $var4 | 0; - var$37 = $rt_imul($rt_imul($var20, $var20), 418711); - var$38 = $var20 * 13761 | 0; - ju_Random_setSeed(var$36, Long_fromInt($var22 ^ (var$37 + var$38 | 0))); - if (nms_BiomeGenBase_getFloatTemperature($var25) >= 0.15000000596046448) { - if ($var18) { - if ($var18 >= 0) - nlea_Tessellator_draw($var8); - $var18 = 0; - nle_TextureLocation_bindTexture(nms_EntityRenderer_rain); - nlea_Tessellator_startDrawingQuads($var8); - } - $var32 = (((((($ticks + $var3 | 0) + $var4 | 0) + var$37 | 0) + var$38 | 0) & 31) + $par1) / 32.0 * (3.0 + ju_Random_nextFloat($this.$random)) % 100000.0; - $var34 = $var21; - $var33 = $var34 + 0.5 - $var41.$posX; - $var6 = $var20; - $var35 = $var6 + 0.5 - $var41.$posZ; - $var37 = nms_MathHelper_sqrt_double($var33 * $var33 + $var35 * $var35) / $var16; - nlea_Tessellator_setBrightness($var8, nms_World_getLightBrightnessForSkyBlocks($var42, $var21, $var26, $var20, 0)); - nlea_Tessellator_setColorRGBA_F($var8, 1.0, 1.0, 1.0, ((1.0 - $var37 * $var37) * 0.5 + 0.5) * $var2); - nlea_Tessellator_setTranslation($var8, var$25, $var11, $var13); - $var33 = $var34 - $var23 + 0.5; - $var35 = $var27; - $var47 = $var6 - $var24 + 0.5; - $var31 = $var27 * 1.0 / 4.0; - $var46 = $var32 * 1.0; - var$46 = $var31 + $var46; - nlea_Tessellator_addVertexWithUV($var8, $var33, $var35, $var47, 0.0, var$46); - var$47 = $var34 + $var23 + 0.5; - var$48 = $var6 + $var24 + 0.5; - nlea_Tessellator_addVertexWithUV($var8, var$47, $var35, var$48, 1.0, var$46); - $var35 = $var28; - var$46 = $var28 * 1.0 / 4.0 + $var46; - nlea_Tessellator_addVertexWithUV($var8, var$47, $var35, var$48, 1.0, var$46); - nlea_Tessellator_addVertexWithUV($var8, $var33, $var35, $var47, 0.0, var$46); - nlea_Tessellator_setTranslation($var8, 0.0, 0.0, 0.0); - } else { - if ($var18 != 1) { - if ($var18 >= 0) - nlea_Tessellator_draw($var8); - $var18 = 1; - nle_TextureLocation_bindTexture(nms_EntityRenderer_snow); - nlea_Tessellator_startDrawingQuads($var8); - } - $var46 = ju_Random_nextFloat($this.$random) + $var5 * ju_Random_nextGaussian($this.$random); - $var34 = ju_Random_nextFloat($this.$random) + $var19 * ju_Random_nextGaussian($this.$random) * 0.0010000000474974513; - $var6 = $var21; - $var35 = $var6 + 0.5 - $var41.$posX; - $var37 = $var20; - $var47 = $var37 + 0.5 - $var41.$posZ; - $var39 = nms_MathHelper_sqrt_double($var35 * $var35 + $var47 * $var47) / $var16; - nlea_Tessellator_setBrightness($var8, ((nms_World_getLightBrightnessForSkyBlocks($var42, $var21, $var26, $var20, 0) * 3 | 0) + 15728880 | 0) / 4 | 0); - nlea_Tessellator_setColorRGBA_F($var8, 1.0, 1.0, 1.0, ((1.0 - $var39 * $var39) * 0.30000001192092896 + 0.5) * $var2); - nlea_Tessellator_setTranslation($var8, var$25, $var11, $var13); - $var33 = $var6 - $var23 + 0.5; - $var35 = $var27; - $var47 = $var37 - $var24 + 0.5; - $var9 = 0.0 + $var46; - var$50 = $var27 * 1.0 / 4.0 + $var29 + $var34; - nlea_Tessellator_addVertexWithUV($var8, $var33, $var35, $var47, $var9, var$50); - var$46 = $var6 + $var23 + 0.5; - var$47 = $var37 + $var24 + 0.5; - var$48 = 1.0 + $var46; - nlea_Tessellator_addVertexWithUV($var8, var$46, $var35, var$47, var$48, var$50); - $var35 = $var28; - var$50 = $var28 * 1.0 / 4.0 + $var29 + $var34; - nlea_Tessellator_addVertexWithUV($var8, var$46, $var35, var$47, var$48, var$50); - nlea_Tessellator_addVertexWithUV($var8, $var33, $var35, $var47, $var9, var$50); - nlea_Tessellator_setTranslation($var8, 0.0, 0.0, 0.0); - } - } - } - $var21 = $var21 + 1 | 0; - } - $var20 = $var20 + 1 | 0; - } - if ($var18 >= 0) - nlea_Tessellator_draw($var8); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.10000000149011612); - nms_EntityRenderer_disableLightmap($this, var$3); - } -} -function nms_EntityRenderer_setupOverlayRendering($this) { - var $var1, var$2, var$3, var$4; - $var1 = nms_ScaledResolution__init_($this.$mc7.$gameSettings, $this.$mc7.$displayWidth, $this.$mc7.$displayHeight); - nleg_EaglerAdapterGL30_glClear(2); - 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()); - $var1 = nleg_EaglerAdapterGL30_deevis; - $var1.$x = 0.0; - $var1.$y = 0.0; - $var1.$z = (-2000.0); - $var1 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var1, $var1); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$2 = new ji_PrintStream; - var$2.$out = new jl_ConsoleOutputStreamStderr; - $var1 = new jl_StringBuilder; - $var1.$buffer = $rt_createCharArray(16); - var$2.$sb = $var1; - var$2.$buffer0 = $rt_createCharArray(32); - var$2.$autoFlush = 0; - $var1 = new jnci_UTF8Charset; - jnc_Charset__init_($var1, $rt_s(2), $rt_createArray(jl_String, 0)); - var$2.$charset = $var1; - 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(220)); - 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 nms_EntityRenderer_updateFogColor($this, $par1) { - var $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var12, $var22, $var20, $var19, $var21, $var13, $var14, $var16, $var23, $var17, $var18; - $var2 = $this.$mc7.$theWorld; - $var3 = $this.$mc7.$renderViewEntity; - $var4 = 1.0 - jl_Math_pow(1.0 / (4 - $this.$mc7.$gameSettings.$renderDistance | 0), 0.25); - $var5 = nms_World_getSkyColor($var2, $this.$mc7.$renderViewEntity, $par1); - $var6 = $var5.$xCoord; - $var7 = $var5.$yCoord; - $var8 = $var5.$zCoord; - $var9 = nms_World_getFogColor($var2, $par1); - $this.$fogColorRed = $var9.$xCoord; - $this.$fogColorGreen = $var9.$yCoord; - $this.$fogColorBlue = $var9.$zCoord; - if ($this.$mc7.$gameSettings.$renderDistance < 2) { - $var10 = nms_MathHelper_sin(nms_World_getCelestialAngleRadians($var2, $par1)) <= 0.0 ? nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($var2), 1.0, 0.0, 0.0) : nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($var2), (-1.0), 0.0, 0.0); - $var11 = nms_Vec3_dotProduct(nms_EntityLiving_getLook($var3, $par1), $var10); - if ($var11 < 0.0) - $var11 = 0.0; - if ($var11 > 0.0) { - $var12 = $var2.$provider.$calcSunriseSunsetColors(nms_World_getCelestialAngle($var2, $par1), $par1); - if ($var12 !== null) { - $var12 = $var12.data; - $var22 = $var11 * $var12[3]; - $var20 = $this.$fogColorRed; - $var11 = 1.0 - $var22; - $this.$fogColorRed = $var20 * $var11 + $var12[0] * $var22; - $this.$fogColorGreen = $this.$fogColorGreen * $var11 + $var12[1] * $var22; - $this.$fogColorBlue = $this.$fogColorBlue * $var11 + $var12[2] * $var22; - } - } - } - $this.$fogColorRed = $this.$fogColorRed + ($var6 - $this.$fogColorRed) * $var4; - $this.$fogColorGreen = $this.$fogColorGreen + ($var7 - $this.$fogColorGreen) * $var4; - $this.$fogColorBlue = $this.$fogColorBlue + ($var8 - $this.$fogColorBlue) * $var4; - $var19 = nms_World_getRainStrength($var2, $par1); - if ($var19 > 0.0) { - $var11 = 1.0 - $var19 * 0.5; - $var20 = 1.0 - $var19 * 0.4000000059604645; - $this.$fogColorRed = $this.$fogColorRed * $var11; - $this.$fogColorGreen = $this.$fogColorGreen * $var11; - $this.$fogColorBlue = $this.$fogColorBlue * $var20; - } - $var11 = nms_World_getWeightedThunderStrength($var2, $par1); - if ($var11 > 0.0) { - $var20 = 1.0 - $var11 * 0.5; - $this.$fogColorRed = $this.$fogColorRed * $var20; - $this.$fogColorGreen = $this.$fogColorGreen * $var20; - $this.$fogColorBlue = $this.$fogColorBlue * $var20; - } - a: { - $var21 = nms_ActiveRenderInfo_getBlockIdAtEntityViewpoint($this.$mc7.$theWorld, $var3, $par1); - if ($this.$cloudFog) { - $var13 = nms_World_getCloudColour($var2, $par1); - $this.$fogColorRed = $var13.$xCoord; - $this.$fogColorGreen = $var13.$yCoord; - $this.$fogColorBlue = $var13.$zCoord; - } else { - if ($var21) { - nms_Block_$callClinit(); - $var13 = nms_Block_blocksList.data[$var21].$blockMaterial; - nms_Material_$callClinit(); - if ($var13 === nms_Material_water) { - $this.$fogColorRed = 0.019999999552965164; - $this.$fogColorGreen = 0.019999999552965164; - $this.$fogColorBlue = 0.20000000298023224; - break a; - } - } - if ($var21) { - nms_Block_$callClinit(); - $var13 = nms_Block_blocksList.data[$var21].$blockMaterial; - nms_Material_$callClinit(); - if ($var13 === nms_Material_lava) { - $this.$fogColorRed = 0.6000000238418579; - $this.$fogColorGreen = 0.10000000149011612; - $this.$fogColorBlue = 0.0; - } - } - } - } - $var22 = $this.$fogColor2 + ($this.$fogColor1 - $this.$fogColor2) * $par1; - $this.$fogColorRed = $this.$fogColorRed * $var22; - $this.$fogColorGreen = $this.$fogColorGreen * $var22; - $this.$fogColorBlue = $this.$fogColorBlue * $var22; - $var14 = ($var3.$lastTickPosY + ($var3.$posY - $var3.$lastTickPosY) * $par1) * nms_WorldProvider_getVoidFogYFactor($var2.$provider); - if (nms_EntityLiving_isPotionActive($var3, nms_Potion_blindness)) { - $var16 = nms_PotionEffect_getDuration(nms_EntityLiving_getActivePotionEffect($var3, nms_Potion_blindness)); - $var14 = $var16 >= 20 ? 0.0 : $var14 * (1.0 - $var16 / 20.0); - } - if ($var14 < 1.0) { - if ($var14 < 0.0) - $var14 = 0.0; - $var14 = $var14 * $var14; - $this.$fogColorRed = $this.$fogColorRed * $var14; - $this.$fogColorGreen = $this.$fogColorGreen * $var14; - $this.$fogColorBlue = $this.$fogColorBlue * $var14; - } - if ($this.$field_82831_U > 0.0) { - $var23 = $this.$field_82832_V + ($this.$field_82831_U - $this.$field_82832_V) * $par1; - $var22 = $this.$fogColorRed; - $var20 = 1.0 - $var23; - $this.$fogColorRed = $var22 * $var20 + $this.$fogColorRed * 0.699999988079071 * $var23; - $this.$fogColorGreen = $this.$fogColorGreen * $var20 + $this.$fogColorGreen * 0.6000000238418579 * $var23; - $this.$fogColorBlue = $this.$fogColorBlue * $var20 + $this.$fogColorBlue * 0.6000000238418579 * $var23; - } - if (nms_EntityLiving_isPotionActive($var3, nms_Potion_nightVision)) { - $var23 = nms_EntityRenderer_getNightVisionBrightness($this, $this.$mc7.$thePlayer, $par1); - $var17 = 1.0 / $this.$fogColorRed; - if ($var17 > 1.0 / $this.$fogColorGreen) - $var17 = 1.0 / $this.$fogColorGreen; - if ($var17 > 1.0 / $this.$fogColorBlue) - $var17 = 1.0 / $this.$fogColorBlue; - $par1 = $this.$fogColorRed; - $var22 = 1.0 - $var23; - $this.$fogColorRed = $par1 * $var22 + $this.$fogColorRed * $var17 * $var23; - $this.$fogColorGreen = $this.$fogColorGreen * $var22 + $this.$fogColorGreen * $var17 * $var23; - $this.$fogColorBlue = $this.$fogColorBlue * $var22 + $this.$fogColorBlue * $var17 * $var23; - } - if ($this.$mc7.$gameSettings.$anaglyph) { - $var23 = ($this.$fogColorRed * 30.0 + $this.$fogColorGreen * 59.0 + $this.$fogColorBlue * 11.0) / 100.0; - $var17 = ($this.$fogColorRed * 30.0 + $this.$fogColorGreen * 70.0) / 100.0; - $var18 = ($this.$fogColorRed * 30.0 + $this.$fogColorBlue * 70.0) / 100.0; - $this.$fogColorRed = $var23; - $this.$fogColorGreen = $var17; - $this.$fogColorBlue = $var18; - } - nleg_EaglerAdapterGL30_glClearColor($this.$fogColorRed, $this.$fogColorGreen, $this.$fogColorBlue, 0.0); -} -function nms_EntityRenderer_setupFog($this, $par1, $par2) { - var $var3, $var6, $var9, var$6, var$7, $var5, $var6_0, $var7, $var13; - $var3 = $this.$mc7.$renderViewEntity; - if ($par1 == 999) { - nleg_EaglerAdapterGL30_glFog(94, nms_EntityRenderer_setFogColorBuffer($this, 0.0, 0.0, 0.0, 1.0)); - nleg_EaglerAdapterGL30_glFogi(89, 49); - nleg_EaglerAdapterGL30_glFogf(92, 0.0); - nleg_EaglerAdapterGL30_glFogf(93, 8.0); - nleg_EaglerAdapterGL30_glFogf(92, 0.0); - } else { - a: { - $var6 = $this.$fogColorRed; - $var9 = $this.$fogColorGreen; - var$6 = $this.$fogColorBlue; - var$7 = $this.$fogColorBuffer; - var$7.$position = 0; - var$7.$limit = var$7.$capacity; - var$7.$mark = (-1); - jn_FloatBufferImpl_put(jn_FloatBufferImpl_put(jn_FloatBufferImpl_put(jn_FloatBufferImpl_put($this.$fogColorBuffer, $var6), $var9), var$6), 1.0); - var$7 = $this.$fogColorBuffer; - var$7.$limit = var$7.$position; - var$7.$position = 0; - var$7.$mark = (-1); - nleg_EaglerAdapterGL30_glFog(94, $this.$fogColorBuffer); - nleg_EaglerAdapterGL30_glNormal3f(0.0, (-1.0), 0.0); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var5 = nms_ActiveRenderInfo_getBlockIdAtEntityViewpoint($this.$mc7.$theWorld, $var3, $par2); - if (nms_EntityLiving_isPotionActive($var3, nms_Potion_blindness)) { - $var6_0 = 5.0; - $var7 = nms_EntityLiving_getActivePotionEffect($var3, nms_Potion_blindness).$duration; - if ($var7 < 20) - $var6_0 = 5.0 + ($this.$farPlaneDistance - 5.0) * (1.0 - $var7 / 20.0); - nleg_EaglerAdapterGL30_glFogi(89, 49); - if ($par1 >= 0) { - nleg_EaglerAdapterGL30_glFogf(92, $var6_0 * 0.25); - nleg_EaglerAdapterGL30_glFogf(93, $var6_0); - } else { - nleg_EaglerAdapterGL30_glFogf(92, 0.0); - nleg_EaglerAdapterGL30_glFogf(93, $var6_0 * 0.800000011920929); - } - } else if ($this.$cloudFog) { - nleg_EaglerAdapterGL30_glFogi(89, 90); - nleg_EaglerAdapterGL30_glFogf(91, 0.10000000149011612); - } else { - if ($var5 > 0) { - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[$var5].$blockMaterial; - nms_Material_$callClinit(); - if (var$7 === nms_Material_water) { - nleg_EaglerAdapterGL30_glFogi(89, 90); - if (!nms_EntityLiving_isPotionActive($var3, nms_Potion_waterBreathing)) - nleg_EaglerAdapterGL30_glFogf(91, 0.10000000149011612); - else - nleg_EaglerAdapterGL30_glFogf(91, 0.05000000074505806); - if (!$this.$mc7.$gameSettings.$anaglyph) - break a; - break a; - } - } - if ($var5 > 0) { - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[$var5].$blockMaterial; - nms_Material_$callClinit(); - if (var$7 === nms_Material_lava) { - nleg_EaglerAdapterGL30_glFogi(89, 90); - nleg_EaglerAdapterGL30_glFogf(91, 2.0); - if (!$this.$mc7.$gameSettings.$anaglyph) - break a; - break a; - } - } - if (!$this.$mc7.$gameSettings.$enableFog) - nleg_EaglerAdapterGL30_glDisable(14); - else { - $var6 = $this.$farPlaneDistance; - if (!nms_WorldProvider_getWorldHasVoidParticles($this.$mc7.$theWorld.$provider)) - $var9 = $var6; - else { - $var13 = ((nms_EntityPlayer_getBrightnessForRender($var3, $par2) & 15728640) >> 20) / 16.0 + ($var3.$lastTickPosY + ($var3.$posY - $var3.$lastTickPosY) * $par2 + 4.0) / 32.0; - if ($var13 >= 1.0) - $var9 = $var6; - else { - if ($var13 < 0.0) - $var13 = 0.0; - $var9 = 100.0 * $var13 * $var13; - if ($var9 < 5.0) - $var9 = 5.0; - if ($var6 <= $var9) - $var9 = $var6; - } - } - nleg_EaglerAdapterGL30_glFogi(89, 49); - if ($par1 < 0) { - nleg_EaglerAdapterGL30_glFogf(92, 0.0); - nleg_EaglerAdapterGL30_glFogf(93, $var9 * 0.800000011920929); - } else { - nleg_EaglerAdapterGL30_glFogf(92, $var9 * 0.25); - nleg_EaglerAdapterGL30_glFogf(93, $var9 * 0.8999999761581421); - } - if ($this.$mc7.$theWorld.$provider.$doesXZShowFog($var3.$posX | 0, $var3.$posZ | 0)) { - nleg_EaglerAdapterGL30_glFogf(92, $var9 * 0.05000000074505806); - nleg_EaglerAdapterGL30_glFogf(93, jl_Math_min($var9, 192.0) * 0.5); - } - } - } - } - nleg_EaglerAdapterGL30_glEnable(15); - } -} -function nms_EntityRenderer_setFogColorBuffer($this, $par1, $par2, $par3, $par4) { - var var$5; - var$5 = $this.$fogColorBuffer; - var$5.$position = 0; - var$5.$limit = var$5.$capacity; - var$5.$mark = (-1); - jn_FloatBufferImpl_put(jn_FloatBufferImpl_put(jn_FloatBufferImpl_put(jn_FloatBufferImpl_put($this.$fogColorBuffer, $par1), $par2), $par3), $par4); - var$5 = $this.$fogColorBuffer; - var$5.$limit = var$5.$position; - var$5.$position = 0; - var$5.$mark = (-1); - return $this.$fogColorBuffer; -} -function nms_EntityRenderer_performanceToFps($par0) { - var $var1; - $var1 = 240; - if ($par0 == 1) - $var1 = 90; - if ($par0 == 2) - $var1 = 35; - return $var1; -} -function nms_EntityRenderer__clinit_() { - var var$1, var$2; - nms_EntityRenderer_anaglyphEnable = 0; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_EntityRenderer_terrain = var$1; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(642); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_EntityRenderer_rain = var$2; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(643); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_EntityRenderer_snow = var$2; -} -function nms_RenderEngine() { - var a = this; jl_Object.call(a); - a.$textureMap = null; - a.$textureContentsMap = null; - a.$textureNameToImageMap = null; - a.$imageData = null; - a.$urlToImageDataMap = null; - a.$options0 = null; - a.$texturePack = null; - a.$missingTextureImage = null; - a.$textureMapBlocks = null; - a.$textureMapItems = null; - a.$boundTexture = 0; -} -function nms_RenderEngine__init_(var_0, var_1) { - var var_2 = new nms_RenderEngine(); - nms_RenderEngine__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_RenderEngine__init_0($this, $par1TexturePackList, $par2GameSettings) { - var var$3, var$4, $missingTex, var$6, var$7, var$8, $i; - $this.$textureMap = ju_HashMap__init_1(16, 0.75); - $this.$textureContentsMap = ju_HashMap__init_1(16, 0.75); - var$3 = new nms_IntHashMap; - var$3.$slots = $rt_createArray(nms_IntHashMapEntry, 16); - var$3.$threshold0 = 12; - var$3.$growFactor = 0.75; - var$4 = new ju_HashSet; - var$4.$backingMap = ju_HashMap__init_1(16, 0.75); - var$3.$keySet0 = var$4; - $this.$textureNameToImageMap = var$3; - $this.$urlToImageDataMap = ju_HashMap__init_1(16, 0.75); - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL) - var$3 = jn_ByteBufferImpl_asIntBuffer(nms_GLAllocation_createDirectByteBuffer(16777216)); - else { - $missingTex = $rt_createIntArray(4194304); - var$6 = $missingTex.data.length; - var$3 = new jn_IntBufferOverArray; - var$7 = 0 + var$6 | 0; - var$3.$mark = (-1); - var$3.$capacity = var$6; - var$3.$limit = var$6; - var$3.$position = 0; - var$3.$limit = var$7; - var$3.$start1 = 0; - var$3.$readOnly1 = 0; - var$3.$array2 = $missingTex; - } - $this.$imageData = var$3; - $this.$texturePack = $par1TexturePackList; - $this.$options0 = $par2GameSettings; - $missingTex = $rt_createIntArray(256); - var$8 = $missingTex.data; - $i = 0; - while ($i < 256) { - var$8[$i] = (($i / 16 | 0) + ($i % 16 | 0) | 0) % 2 | 0 ? (-16777216) : (-65281); - $i = $i + 1 | 0; - } - $this.$missingTextureImage = nle_EaglerImage__init_($missingTex, 16, 16, 1); - $this.$textureMapBlocks = nle_TextureTerrainMap__init_(1024, $rt_s(633), $rt_s(644), $this.$missingTextureImage); - $this.$textureMapItems = nms_TextureMap__init_(1, $rt_s(645), $rt_s(646), $this.$missingTextureImage); -} -function nms_RenderEngine_getTextureContents($this, $par1Str) { - var $var2, var$3, var$4, $var3, $var7, $var4; - $var2 = $this.$texturePack.$selectedTexturePack; - var$3 = $this.$textureContentsMap; - if ($par1Str !== null) { - var$4 = jl_String_hashCode($par1Str); - var$3 = ju_HashMap_findNonNullKeyEntry(var$3, $par1Str, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - var$3 = var$3.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - $var3 = var$3 === null ? null : var$3.$value0; - if ($var3 !== null) - return $var3; - $var7 = nms_TexturePackDefault_getResourceAsBytes($var2, $par1Str); - $var4 = $var7 !== null ? nle_EaglerImage_loadImage($var7).$data : $this.$missingTextureImage.$data; - ju_HashMap_putImpl($this.$textureContentsMap, $par1Str, $var4); - return $var4; -} -function nms_RenderEngine_bindTexture($this, $par1Str) { - nms_RenderEngine_bindTexture0($this, nms_RenderEngine_getTexture($this, $par1Str)); -} -function nms_RenderEngine_bindTexture0($this, $par1) { - var var$2, var$3; - if ($par1 != $this.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - var$2 = nleg_EaglerAdapterGL30_texObjects; - var$2 = $par1 < var$2.$size3 && $par1 >= 0 ? var$2.$values.data[$par1] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2 !== null ? var$2.$obj : null; - var$3.bindTexture(3553, var$2); - $this.$boundTexture = $par1; - } -} -function nms_RenderEngine_resetBoundTexture($this) { - $this.$boundTexture = (-1); -} -function nms_RenderEngine_getTexture($this, $par1Str) { - var $var2, $var5, var$4, $var3, $var9, $var6, $var7, $var4, $$je; - if (jl_String_equals($par1Str, $rt_s(641))) - return $this.$textureMapBlocks.$texture; - if (jl_String_equals($par1Str, $rt_s(647))) { - nms_Texture_bindTexture($this.$textureMapItems.$atlasTexture, 0); - return $this.$textureMapItems.$atlasTexture.$glTextureId; - } - $var2 = $this.$textureMap; - $var5 = jl_String_hashCode($par1Str); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, $par1Str, $var5 & ($var2.$elementData.data.length - 1 | 0), $var5); - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 !== null) - return $var2.$value; - a: { - try { - var$4 = $par1Str; - $var3 = nms_GLAllocation_generateTextureNames(); - $var9 = jl_String_startsWith0($par1Str, $rt_s(648)); - if (!$var9) - $var2 = $par1Str; - else { - var$4 = $par1Str; - $var2 = jl_String_substring($par1Str, 6); - var$4 = $var2; - } - var$4 = $var2; - $var5 = jl_String_startsWith0($var2, $rt_s(649)); - if ($var5) { - var$4 = $var2; - $var2 = jl_String_substring($var2, 7); - var$4 = $var2; - } - var$4 = $var2; - $var6 = nms_TexturePackDefault_getResourceAsBytes(nms_TexturePackList_getSelectedTexturePack($this.$texturePack), $var2); - if ($var6 !== null) { - var$4 = $var2; - nms_RenderEngine_setupTextureExt($this, nms_RenderEngine_readTextureImage($this, $var6), $var3, $var9, $var5); - } else { - var$4 = $var2; - nms_RenderEngine_setupTextureExt($this, $this.$missingTextureImage, $var3, $var9, $var5); - } - var$4 = $var2; - ju_HashMap_put($this.$textureMap, $par1Str, jl_Integer_valueOf($var3)); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var7 = $$je; - break a; - } else { - throw $$e; - } - } - return $var3; - } - if (jl_System_errCache === null) { - $par1Str = new ji_PrintStream; - $par1Str.$out = new jl_ConsoleOutputStreamStderr; - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - $par1Str.$sb = $var2; - $par1Str.$buffer0 = $rt_createCharArray(32); - $par1Str.$autoFlush = 0; - $var2 = new jnci_UTF8Charset; - jnc_Charset__init_($var2, $rt_s(2), $rt_createArray(jl_String, 0)); - $par1Str.$charset = $var2; - jl_System_errCache = $par1Str; - } - jl_Throwable_printStackTrace0($var7, jl_System_errCache); - $var4 = nms_GLAllocation_generateTextureNames(); - nms_RenderEngine_setupTextureExt($this, $this.$missingTextureImage, $var4, 0, 0); - ju_HashMap_putImpl($this.$textureMap, var$4, jl_Integer_valueOf($var4)); - return $var4; -} -function nms_RenderEngine_allocateAndSetupTexture($this, $par1BufferedImage) { - var $var2; - $var2 = nms_GLAllocation_generateTextureNames(); - nms_RenderEngine_setupTextureExt($this, $par1BufferedImage, $var2, 0, 0); - nms_IntHashMap_addKey($this.$textureNameToImageMap, $var2, $par1BufferedImage); - return $var2; -} -function nms_RenderEngine_setupTexture($this, $par1BufferedImage, $par2) { - nms_RenderEngine_setupTextureExt($this, $par1BufferedImage, $par2, 0, 0); -} -function nms_RenderEngine_makeViewportTexture($this, $w, $h) { - var var$3, var$4, $t; - nleg_EaglerAdapterGL30_$callClinit(); - var$3 = nleg_EaglerAdapterGL30_texObjects; - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = new nlea_EaglerAdapterImpl2$TextureGL; - var$4.$obj = nlea_EaglerAdapterImpl2_webgl.createTexture(); - $t = nleg_GLObjectMap_register(var$3, var$4); - if ($t != $this.$boundTexture) { - var$3 = nleg_EaglerAdapterGL30_texObjects; - var$3 = $t < var$3.$size3 && $t >= 0 ? var$3.$values.data[$t] : null; - var$4 = nlea_EaglerAdapterImpl2_webgl; - var$3 = var$3 !== null ? var$3.$obj : null; - var$4.bindTexture(3553, var$3); - $this.$boundTexture = $t; - } - var$3 = $this.$imageData; - jn_Buffer_position0(var$3, 0); - jn_Buffer_limit0(var$3, $rt_imul($w, $h)); - var$3 = $this.$imageData; - nleg_EaglerAdapterGL30_bytesUploaded = nleg_EaglerAdapterGL30_bytesUploaded + ((var$3.$limit - var$3.$position | 0) * 4 | 0) | 0; - nlea_EaglerAdapterImpl2__wglTexImage2D0(3553, 0, 32849, $w, $h, 0, 6407, 5121, var$3); - return $t; -} -function nms_RenderEngine_setupTextureExt($this, $par1BufferedImage, $par2, $par3, $par4) { - var var$5, var$6, $var5, $var6, $var7, var$10; - if ($par2 != $this.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - var$5 = nleg_EaglerAdapterGL30_texObjects; - var$5 = $par2 < var$5.$size3 && $par2 >= 0 ? var$5.$values.data[$par2] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$6 = nlea_EaglerAdapterImpl2_webgl; - var$5 = var$5 !== null ? var$5.$obj : null; - var$6.bindTexture(3553, var$5); - $this.$boundTexture = $par2; - } - nleg_EaglerAdapterGL30_glTexParameteri(2, 47, 70); - nleg_EaglerAdapterGL30_glTexParameteri(2, 48, 70); - if ($par3) { - nleg_EaglerAdapterGL30_glTexParameteri(2, 47, 49); - nleg_EaglerAdapterGL30_glTexParameteri(2, 48, 49); - } - if (!$par4) { - nleg_EaglerAdapterGL30_glTexParameteri(2, 72, 74); - nleg_EaglerAdapterGL30_glTexParameteri(2, 73, 74); - } else { - nleg_EaglerAdapterGL30_glTexParameteri(2, 72, 71); - nleg_EaglerAdapterGL30_glTexParameteri(2, 73, 71); - } - $var5 = $par1BufferedImage.$w0; - $var6 = $par1BufferedImage.$h; - $var7 = $par1BufferedImage.$data; - if ($this.$options0 !== null && $this.$options0.$anaglyph) - $var7 = nms_RenderEngine_colorToAnaglyph($this, $var7); - var$10 = $var7.data; - $par1BufferedImage = $this.$imageData; - $par1BufferedImage.$position = 0; - $par1BufferedImage.$limit = $par1BufferedImage.$capacity; - $par1BufferedImage.$mark = (-1); - $par1BufferedImage = $this.$imageData; - $par3 = var$10.length; - jn_IntBuffer_put0($par1BufferedImage, $var7, 0, $par3); - $par1BufferedImage = $this.$imageData; - jn_Buffer_position0($par1BufferedImage, 0); - jn_Buffer_limit0($par1BufferedImage, $par3); - $par1BufferedImage = $this.$imageData; - nleg_EaglerAdapterGL30_bytesUploaded = nleg_EaglerAdapterGL30_bytesUploaded + (($par1BufferedImage.$limit - $par1BufferedImage.$position | 0) * 4 | 0) | 0; - nlea_EaglerAdapterImpl2__wglTexImage2D0(3553, 0, 32856, $var5, $var6, 0, 6408, 5121, $par1BufferedImage); -} -function nms_RenderEngine_setupTextureRaw($this, $data, $w, $h) { - var $e, var$5, var$6, $upload, var$8, $i, var$10, var$11; - $e = nms_GLAllocation_generateTextureNames(); - if ($e != $this.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - var$5 = nleg_EaglerAdapterGL30_texObjects; - var$5 = $e < var$5.$size3 && $e >= 0 ? var$5.$values.data[$e] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$6 = nlea_EaglerAdapterImpl2_webgl; - var$5 = var$5 !== null ? var$5.$obj : null; - var$6.bindTexture(3553, var$5); - $this.$boundTexture = $e; - } - $data = $data.data; - nleg_EaglerAdapterGL30_glTexParameteri(2, 47, 70); - nleg_EaglerAdapterGL30_glTexParameteri(2, 48, 70); - nleg_EaglerAdapterGL30_glTexParameteri(2, 72, 71); - nleg_EaglerAdapterGL30_glTexParameteri(2, 73, 71); - var$5 = $this.$imageData; - var$5.$position = 0; - var$5.$limit = var$5.$capacity; - var$5.$mark = (-1); - $upload = $rt_createIntArray($data.length / 4 | 0); - var$8 = $upload.data; - $i = 0; - var$10 = var$8.length; - while ($i < var$10) { - var$11 = $i * 4 | 0; - var$8[$i] = ($data[var$11 + 3 | 0] & 255) << 24 | ($data[var$11 + 2 | 0] & 255) << 16 | ($data[var$11 + 1 | 0] & 255) << 8 | $data[var$11] & 255; - $i = $i + 1 | 0; - } - var$5 = jn_IntBuffer_put0($this.$imageData, $upload, 0, var$10); - var$5.$limit = var$5.$position; - var$5.$position = 0; - var$5.$mark = (-1); - var$5 = $this.$imageData; - nleg_EaglerAdapterGL30_bytesUploaded = nleg_EaglerAdapterGL30_bytesUploaded + ((var$5.$limit - var$5.$position | 0) * 4 | 0) | 0; - nlea_EaglerAdapterImpl2__wglTexImage2D0(3553, 0, 32856, $w, $h, 0, 6408, 5121, var$5); - return $e; -} -function nms_RenderEngine_colorToAnaglyph($this, $par1ArrayOfInteger) { - var var$2, $var2, var$4, $var3, $var4, $var5, $var6, $var7, $var10; - $par1ArrayOfInteger = $par1ArrayOfInteger.data; - var$2 = $par1ArrayOfInteger.length; - $var2 = $rt_createIntArray(var$2); - var$4 = $var2.data; - $var3 = 0; - while ($var3 < var$2) { - $var4 = $par1ArrayOfInteger[$var3] >> 24 & 255; - $var5 = $par1ArrayOfInteger[$var3] >> 16 & 255; - $var6 = $par1ArrayOfInteger[$var3] >> 8 & 255; - $var7 = $par1ArrayOfInteger[$var3] & 255; - $var10 = $var5 * 30 | 0; - var$4[$var3] = $var4 << 24 | ((($var10 + ($var6 * 59 | 0) | 0) + ($var7 * 11 | 0) | 0) / 100 | 0) << 16 | (($var10 + ($var6 * 70 | 0) | 0) / 100 | 0) << 8 | (($var10 + ($var7 * 70 | 0) | 0) / 100 | 0); - $var3 = $var3 + 1 | 0; - } - return $var2; -} -function nms_RenderEngine_createTextureFromBytes($this, $par1ArrayOfInteger, $par2, $par3, $par4) { - var var$5, var$6, var$7, var$8; - if ($par4 != $this.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - var$5 = nleg_EaglerAdapterGL30_texObjects; - var$5 = $par4 < var$5.$size3 && $par4 >= 0 ? var$5.$values.data[$par4] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$6 = nlea_EaglerAdapterImpl2_webgl; - var$5 = var$5 !== null ? var$5.$obj : null; - var$6.bindTexture(3553, var$5); - $this.$boundTexture = $par4; - } - nleg_EaglerAdapterGL30_glTexParameteri(2, 47, 70); - nleg_EaglerAdapterGL30_glTexParameteri(2, 48, 70); - nleg_EaglerAdapterGL30_glTexParameteri(2, 72, 74); - nleg_EaglerAdapterGL30_glTexParameteri(2, 73, 74); - if ($this.$options0 !== null && $this.$options0.$anaglyph) - $par1ArrayOfInteger = nms_RenderEngine_colorToAnaglyph($this, $par1ArrayOfInteger); - var$7 = $par1ArrayOfInteger.data; - var$5 = $this.$imageData; - var$5.$position = 0; - var$5.$limit = var$5.$capacity; - var$5.$mark = (-1); - var$5 = $this.$imageData; - var$8 = var$7.length; - jn_IntBuffer_put0(var$5, $par1ArrayOfInteger, 0, var$8); - var$5 = $this.$imageData; - jn_Buffer_position0(var$5, 0); - jn_Buffer_limit0(var$5, var$8); - nleg_EaglerAdapterGL30_glTexSubImage2D(2, 0, 0, 0, $par2, $par3, 75, 76, $this.$imageData); -} -function nms_RenderEngine_deleteTexture($this, $par1) { - var var$2, var$3; - nms_IntHashMap_removeObject($this.$textureNameToImageMap, $par1); - nleg_EaglerAdapterGL30_$callClinit(); - var$2 = nleg_GLObjectMap_free(nleg_EaglerAdapterGL30_texObjects, $par1); - nlea_EaglerAdapterImpl2_$callClinit(); - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2.$obj; - var$3.deleteTexture(var$2); -} -function nms_RenderEngine_updateDynamicTextures($this) { - nle_TextureTerrainMap_updateAnimations($this.$textureMapBlocks); - nms_TextureMap_updateAnimations($this.$textureMapItems); -} -function nms_RenderEngine_refreshTextures($this) { - var $var4, $var11, $var1, $var2, $var3, $var12, $var6, $var7, $b, $var9, $var4_0, $var8, $$je; - $var4 = nle_TextureLocation_locations; - $var11 = new ju_AbstractList$1; - $var11.$this$0 = $var4; - $var11.$modCount = $var11.$this$0.$modCount0; - $var11.$size1 = $var11.$this$0.$size2(); - $var11.$removeIndex = (-1); - while ($var11.$index >= $var11.$size1 ? 0 : 1) { - ju_AbstractList$1_next($var11).$glObject = (-1); - } - $var1 = $this.$texturePack.$selectedTexturePack; - nle_TextureTerrainMap_refreshTextures($this.$textureMapBlocks); - nms_TextureMap_refreshTextures($this.$textureMapItems); - $var4 = $this.$textureNameToImageMap.$keySet0.$backingMap; - if ($var4.$cachedKeySet === null) { - $var11 = new ju_HashMap$1; - $var11.$this$01 = $var4; - $var4.$cachedKeySet = $var11; - } - $var2 = $var4.$cachedKeySet.$iterator(); - while ($var2.$hasNext()) { - $var3 = $var2.$next().$value; - nms_RenderEngine_setupTextureExt($this, nms_IntHashMap_lookup($this.$textureNameToImageMap, $var3), $var3, 0, 0); - } - $var4 = $this.$textureMap; - if ($var4.$cachedKeySet === null) { - $var11 = new ju_HashMap$1; - $var11.$this$01 = $var4; - $var4.$cachedKeySet = $var11; - } - $var4 = $var4.$cachedKeySet.$iterator(); - while ($var4.$hasNext()) { - $var11 = $var4.$next(); - try { - $var12 = jl_Integer_intValue(ju_HashMap_get($this.$textureMap, $var11)); - $var6 = jl_String_startsWith0($var11, $rt_s(648)); - if ($var6) - $var11 = jl_String_substring($var11, 6); - $var7 = jl_String_startsWith0($var11, $rt_s(649)); - if ($var7) - $var11 = jl_String_substring($var11, 7); - $b = nms_TexturePackDefault_getResourceAsBytes($var1, $var11); - if ($b !== null) - nms_RenderEngine_setupTextureExt($this, nms_RenderEngine_readTextureImage($this, $b), $var12, $var6, $var7); - else - ji_PrintStream_println0(jl_System_err(), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(650)), $var11))); - continue; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $var9 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var4_0 = new ji_PrintStream; - $var4_0.$out = new jl_ConsoleOutputStreamStderr; - $var11 = new jl_StringBuilder; - $var11.$buffer = $rt_createCharArray(16); - $var4_0.$sb = $var11; - $var4_0.$buffer0 = $rt_createCharArray(32); - $var4_0.$autoFlush = 0; - $var11 = new jnci_UTF8Charset; - jnc_Charset__init_($var11, $rt_s(2), $rt_createArray(jl_String, 0)); - $var4_0.$charset = $var11; - jl_System_errCache = $var4_0; - } - jl_Throwable_printStackTrace0($var9, jl_System_errCache); - } - $var4 = $this.$textureContentsMap; - if ($var4.$cachedKeySet === null) { - $var11 = new ju_HashMap$1; - $var11.$this$01 = $var4; - $var4.$cachedKeySet = $var11; - } - $var4 = $var4.$cachedKeySet.$iterator(); - while ($var4.$hasNext()) { - $var11 = $var4.$next(); - try { - $var4_0 = nms_RenderEngine_readTextureImage($this, nms_TexturePackDefault_getResourceAsBytes($var1, $var11)); - jl_System_arraycopy($var4_0.$data, 0, ju_HashMap_get($this.$textureContentsMap, $var11), 0, $var4_0.$data.data.length); - continue; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $var8 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var4_0 = new ji_PrintStream; - $var4_0.$out = new jl_ConsoleOutputStreamStderr; - $var11 = new jl_StringBuilder; - $var11.$buffer = $rt_createCharArray(16); - $var4_0.$sb = $var11; - $var4_0.$buffer0 = $rt_createCharArray(32); - $var4_0.$autoFlush = 0; - $var11 = new jnci_UTF8Charset; - jnc_Charset__init_($var11, $rt_s(2), $rt_createArray(jl_String, 0)); - $var4_0.$charset = $var11; - jl_System_errCache = $var4_0; - } - jl_Throwable_printStackTrace0($var8, jl_System_errCache); - } - nms_FontRenderer_readFontData(nmc_Minecraft_theMinecraft.$fontRenderer); - nms_FontRenderer_readFontData(nmc_Minecraft_theMinecraft.$standardGalacticFontRenderer); -} -function nms_RenderEngine_readTextureImage($this, $par1InputStream) { - return nle_EaglerImage_loadImage($par1InputStream); -} -function nms_RenderEngine_refreshTextureMaps($this) { - nle_TextureTerrainMap_refreshTextures($this.$textureMapBlocks); - nms_TextureMap_refreshTextures($this.$textureMapItems); -} -function nms_RenderEngine_getMissingIcon($this, $par1) { - a: { - switch ($par1) { - case 0: - break; - case 1: - break a; - default: - break a; - } - return $this.$textureMapBlocks.$missingImage; - } - return $this.$textureMapItems.$missingTextureStiched; -} -function cbpd_IDATManager() { - ju_ArrayList.call(this); -} -function cbpd_IDATManager__init_0() { - var var_0 = new cbpd_IDATManager(); - cbpd_IDATManager__init_(var_0); - return var_0; -} -function cbpd_IDATManager__init_($this) { - $this.$array1 = $rt_createArray(jl_Object, 10); -} -function cbpd_IDATManager_getIDATData($this) { - var $dataSize, $idat, $idat_0, $data, $curPos; - $dataSize = 0; - $idat = new ju_AbstractList$1; - $idat.$this$0 = $this; - $idat.$modCount = $idat.$this$0.$modCount0; - $idat.$size1 = $idat.$this$0.$size2(); - $idat.$removeIndex = (-1); - while ($idat.$index >= $idat.$size1 ? 0 : 1) { - $idat_0 = ju_AbstractList$1_next($idat); - $dataSize = Long_add(Long_fromInt($dataSize), Long_fromInt($idat_0.$data6.data.length)).lo; - } - $data = $rt_createByteArray($dataSize); - $curPos = 0; - $idat_0 = new ju_AbstractList$1; - $idat_0.$this$0 = $this; - $idat_0.$modCount = $idat_0.$this$0.$modCount0; - $idat_0.$size1 = $idat_0.$this$0.$size2(); - $idat_0.$removeIndex = (-1); - while ($idat_0.$index >= $idat_0.$size1 ? 0 : 1) { - $idat = ju_AbstractList$1_next($idat_0); - jl_System_arraycopy($idat.$data6, 0, $data, $curPos, Long_fromInt($idat.$data6.data.length).lo); - $curPos = Long_add(Long_fromInt($curPos), Long_fromInt($idat.$data6.data.length)).lo; - } - return $data; -} -function cbpc_ChunkType() { - jl_Enum.call(this); -} -var cbpc_ChunkType_IHDR = null; -var cbpc_ChunkType_PLTE = null; -var cbpc_ChunkType_IDAT = null; -var cbpc_ChunkType_IEND = null; -var cbpc_ChunkType_$VALUES = null; -function cbpc_ChunkType__clinit_() { - var var$1, var$2, var$3; - var$1 = new cbpc_ChunkType$1; - var$1.$name2 = $rt_s(651); - var$1.$ordinal = 0; - cbpc_ChunkType_IHDR = var$1; - var$1 = new cbpc_ChunkType$2; - var$1.$name2 = $rt_s(652); - var$1.$ordinal = 1; - cbpc_ChunkType_PLTE = var$1; - var$1 = new cbpc_ChunkType$3; - var$1.$name2 = $rt_s(653); - var$1.$ordinal = 2; - cbpc_ChunkType_IDAT = var$1; - var$1 = new cbpc_ChunkType$4; - var$1.$name2 = $rt_s(406); - var$1.$ordinal = 3; - cbpc_ChunkType_IEND = var$1; - var$2 = $rt_createArray(cbpc_ChunkType, 4); - var$3 = var$2.data; - var$3[0] = cbpc_ChunkType_IHDR; - var$3[1] = cbpc_ChunkType_PLTE; - var$3[2] = cbpc_ChunkType_IDAT; - var$3[3] = cbpc_ChunkType_IEND; - cbpc_ChunkType_$VALUES = var$2; -} -function jl_Math() { - jl_Object.call(this); -} -function jl_Math__init_0() { - var var_0 = new jl_Math(); - jl_Math__init_(var_0); - return var_0; -} -function jl_Math__init_($this) { - return; -} -function jl_Math_sin(var$1) { - return Math.sin(var$1); -} -function jl_Math_cos(var$1) { - return Math.cos(var$1); -} -function jl_Math_atan(var$1) { - return Math.atan(var$1); -} -function jl_Math_log(var$1) { - return Math.log(var$1); -} -function jl_Math_sqrt(var$1) { - return Math.sqrt(var$1); -} -function jl_Math_floor(var$1) { - return Math.floor(var$1); -} -function jl_Math_pow(var$1, var$2) { - return Math.pow(var$1, var$2); -} -function jl_Math_atan2(var$1, var$2) { - return Math.atan2(var$1, var$2); -} -function jl_Math_round($a) { - var var$2; - var$2 = $rt_compare($a, 0.0); - return Long_fromNumber($a + (var$2 > 0 ? 1.0 : var$2 >= 0 ? $a : (-1.0)) * 0.5); -} -function jl_Math_random() { - return jl_Math_randomImpl(); -} -function jl_Math_randomImpl() { - return Math.random(); -} -function jl_Math_min0($a, $b) { - if ($a < $b) - $b = $a; - return $b; -} -function jl_Math_max($a, $b) { - if ($a > $b) - $b = $a; - return $b; -} -function jl_Math_min($a, $b) { - if ($a < $b) - $b = $a; - return $b; -} -function jl_Math_abs($n) { - if ($n <= 0) - $n = -$n; - return $n; -} -function jl_Math_abs0($n) { - if ($n <= 0.0) - $n = -$n; - return $n; -} -function jl_Math_signum($d) { - var var$2; - var$2 = $rt_compare($d, 0.0); - if (var$2 > 0) - $d = 1.0; - else if (var$2 < 0) - $d = (-1.0); - return $d; -} -function jnc_CodingErrorAction() { - jl_Object.call(this); - this.$name5 = null; -} -var jnc_CodingErrorAction_IGNORE = null; -var jnc_CodingErrorAction_REPLACE = null; -var jnc_CodingErrorAction_REPORT = null; -function jnc_CodingErrorAction__clinit_() { - var var$1; - var$1 = new jnc_CodingErrorAction; - var$1.$name5 = $rt_s(654); - jnc_CodingErrorAction_IGNORE = var$1; - var$1 = new jnc_CodingErrorAction; - var$1.$name5 = $rt_s(655); - jnc_CodingErrorAction_REPLACE = var$1; - var$1 = new jnc_CodingErrorAction; - var$1.$name5 = $rt_s(656); - jnc_CodingErrorAction_REPORT = var$1; -} -function nms_AABBPool() { - var a = this; jl_Object.call(a); - a.$maxNumCleans = 0; - a.$numEntriesToRemove = 0; - a.$listAABB = null; - a.$nextPoolIndex = 0; - a.$maxPoolIndex = 0; - a.$numCleans = 0; -} -function nms_AABBPool__init_(var_0, var_1) { - var var_2 = new nms_AABBPool(); - nms_AABBPool__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_AABBPool__init_0($this, $par1, $par2) { - var var$3; - var$3 = new ju_ArrayList; - var$3.$array1 = $rt_createArray(jl_Object, 10); - $this.$listAABB = var$3; - $this.$nextPoolIndex = 0; - $this.$maxPoolIndex = 0; - $this.$numCleans = 0; - $this.$maxNumCleans = $par1; - $this.$numEntriesToRemove = $par2; -} -function nms_AABBPool_getAABB($this, $par1, $par3, $par5, $par7, $par9, $par11) { - var $var13, var$8; - if ($this.$nextPoolIndex >= $this.$listAABB.$size0) { - $var13 = new nms_AxisAlignedBB; - $var13.$minX = $par1; - $var13.$minY = $par3; - $var13.$minZ = $par5; - $var13.$maxX = $par7; - $var13.$maxY = $par9; - $var13.$maxZ = $par11; - ju_ArrayList_add($this.$listAABB, $var13); - } else { - $var13 = $this.$listAABB; - var$8 = $this.$nextPoolIndex; - if (var$8 >= 0 && var$8 < $var13.$size0) { - $var13 = $var13.$array1.data[var$8]; - $var13.$minX = $par1; - $var13.$minY = $par3; - $var13.$minZ = $par5; - $var13.$maxX = $par7; - $var13.$maxY = $par9; - $var13.$maxZ = $par11; - } else { - $var13 = new jl_IndexOutOfBoundsException; - $var13.$suppressionEnabled = 1; - $var13.$writableStackTrace = 1; - $rt_throw($var13); - } - } - $this.$nextPoolIndex = $this.$nextPoolIndex + 1 | 0; - return $var13; -} -function nms_AABBPool_cleanPool($this) { - var $var1, $var1_0; - if ($this.$nextPoolIndex > $this.$maxPoolIndex) - $this.$maxPoolIndex = $this.$nextPoolIndex; - $var1 = $this.$numCleans; - $this.$numCleans = $var1 + 1 | 0; - if ($var1 == $this.$maxNumCleans) { - $var1_0 = $this.$maxPoolIndex; - $var1 = $this.$listAABB.$size0 - $this.$numEntriesToRemove | 0; - if ($var1_0 > $var1) - $var1 = $var1_0; - while ($this.$listAABB.$size0 > $var1) { - ju_ArrayList_remove($this.$listAABB, $var1); - } - $this.$maxPoolIndex = 0; - $this.$numCleans = 0; - } - $this.$nextPoolIndex = 0; -} -function nms_AABBPool_clearPool($this) { - var var$1; - $this.$nextPoolIndex = 0; - var$1 = $this.$listAABB; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; -} -function nms_IBlockAccess() { -} -function nms_World() { - var a = this; jl_Object.call(a); - a.$scheduledUpdatesAreImmediate = 0; - a.$loadedEntityList = null; - a.$unloadedEntityList = null; - a.$loadedTileEntityList = null; - a.$addedTileEntityList = null; - a.$entityRemoval = null; - a.$playerEntities = null; - a.$weatherEffects = null; - a.$cloudColour = Long_ZERO; - a.$skylightSubtracted = 0; - a.$updateLCG = 0; - a.$DIST_HASH_MAGIC = 1013904223; - a.$prevRainingStrength = 0.0; - a.$rainingStrength = 0.0; - a.$prevThunderingStrength = 0.0; - a.$thunderingStrength = 0.0; - a.$lastLightningBolt = 0; - a.$difficultySetting = 0; - a.$rand = null; - a.$provider = null; - a.$worldAccesses = null; - a.$chunkProvider = null; - a.$worldInfo = null; - a.$mapStorage = null; - a.$theProfiler = null; - a.$vecPool = null; - a.$theCalendar = null; - a.$worldScoreboard = null; - a.$collidingBoundingBoxes = null; - a.$scanningTileEntities = 0; - a.$spawnHostileMobs = 0; - a.$spawnPeacefulMobs = 0; - a.$activeChunkSet = null; - a.$ambientTickCountdown = 0; - a.$lightUpdateBlockList = null; - a.$isRemote = 0; -} -function nms_World__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_World(); - nms_World__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_World_getBiomeGenForCoords($this, $par1, $par2) { - var var$3, var$4; - var$3 = $par1 >> 4; - var$4 = $par2 >> 4; - return nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$3, var$4), $par1 & 15, $par2 & 15); -} -function nms_World__init_0($this, $par2Str, $par3WorldProvider, $par4WorldSettings, $par5Profiler) { - var var$5, var$6, var$7, var$8; - $this.$scheduledUpdatesAreImmediate = 0; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$loadedEntityList = var$5; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$unloadedEntityList = var$5; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$loadedTileEntityList = var$5; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$addedTileEntityList = var$5; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$entityRemoval = var$5; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$playerEntities = var$5; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$weatherEffects = var$5; - $this.$cloudColour = Long_fromInt(16777215); - $this.$skylightSubtracted = 0; - $this.$updateLCG = ju_Random_next(new ju_Random, 32); - $this.$DIST_HASH_MAGIC = 1013904223; - $this.$lastLightningBolt = 0; - $this.$rand = new ju_Random; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$worldAccesses = var$5; - var$6 = new nms_Vec3Pool; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - var$6.$vec3Cache = var$5; - var$6.$nextFreeSpace = 0; - var$6.$maximumSizeSinceLastTruncation = 0; - var$6.$resetCount = 0; - var$6.$truncateArrayResetThreshold = 300; - var$6.$minimumSize = 2000; - $this.$vecPool = var$6; - var$5 = new ju_GregorianCalendar; - var$7 = ju_Locale_defaultLocale; - ju_GregorianCalendar__init_0(var$5, ju_TimeZone_getDefault(), var$7); - $this.$theCalendar = var$5; - $this.$worldScoreboard = nms_Scoreboard__init_0(); - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$collidingBoundingBoxes = var$5; - $this.$spawnHostileMobs = 1; - $this.$spawnPeacefulMobs = 1; - var$5 = new ju_HashSet; - var$5.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$activeChunkSet = var$5; - $this.$ambientTickCountdown = Math.random() * 12000.0 | 0; - $this.$lightUpdateBlockList = $rt_createIntArray(32768); - $this.$isRemote = 0; - $this.$theProfiler = $par5Profiler; - $this.$worldInfo = nms_WorldInfo__init_0($par4WorldSettings, $par2Str); - $this.$provider = $par3WorldProvider; - $this.$mapStorage = nms_MapStorage__init_0(); - $par3WorldProvider.$worldObj0 = $this; - $par3WorldProvider.$terrainType = $this.$worldInfo.$terrainType0; - $par3WorldProvider.$field_82913_c = $this.$worldInfo.$generatorOptions; - $par3WorldProvider.$registerWorldChunkManager(); - $par3WorldProvider.$generateLightBrightnessTable(); - $this.$chunkProvider = nms_WorldClient_createChunkProvider($this); - var$8 = nms_World_calculateSkylightSubtracted($this, 1.0); - if (var$8 != $this.$skylightSubtracted) - $this.$skylightSubtracted = var$8; - if ($this.$worldInfo.$raining) { - $this.$rainingStrength = 1.0; - if ($this.$worldInfo.$thundering) - $this.$thunderingStrength = 1.0; - } -} -function nms_World_setSpawnLocation($this) { - var var$1; - var$1 = $this.$worldInfo; - var$1.$spawnX = 8; - var$1.$spawnY = 64; - var$1.$spawnZ = 8; -} -function nms_World_getBlockId($this, $par1, $par2, $par3) { - var var$4, var$5; - if ($par1 >= (-30000000) && $par3 >= (-30000000) && $par1 < 30000000 && $par3 < 30000000) { - if ($par2 < 0) - return 0; - if ($par2 >= 256) - return 0; - var$4 = $par1 >> 4; - var$5 = $par3 >> 4; - return nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$4, var$5).$getBlockID($par1 & 15, $par2, $par3 & 15); - } - return 0; -} -function nms_World_isAirBlock($this, $par1, $par2, $par3) { - return nms_World_getBlockId($this, $par1, $par2, $par3) ? 0 : 1; -} -function nms_World_blockGetRenderType($this, $par1, $par2, $par3) { - var $var4; - $var4 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - return nms_Block_blocksList.data[$var4] === null ? (-1) : nms_Block_blocksList.data[$var4].$getRenderType(); -} -function nms_World_blockExists($this, $par1, $par2, $par3) { - return $par2 >= 0 && $par2 < 256 ? 1 : 0; -} -function nms_World_doChunksNearChunkExist($this, $par1, $par2, $par3, $par4) { - return nms_World_checkChunksExist($this, $par1 - $par4 | 0, $par2 - $par4 | 0, $par3 - $par4 | 0, $par1 + $par4 | 0, $par2 + $par4 | 0, $par3 + $par4 | 0); -} -function nms_World_checkChunksExist($this, $par1, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8; - if ($par5 >= 0 && $par2 < 256) { - $var7 = $par1 >> 4; - $par1 = $par3 >> 4; - $par2 = $par4 >> 4; - $par3 = $par6 >> 4; - while ($var7 <= $par2) { - $var8 = $par1; - while ($var8 <= $par3) { - $var8 = $var8 + 1 | 0; - } - $var7 = $var7 + 1 | 0; - } - return 1; - } - return 0; -} -function nms_World_chunkExists($this, $par1, $par2) { - return 1; -} -function nms_World_getChunkFromBlockCoords($this, $par1, $par2) { - var var$3; - var$3 = $par1 >> 4; - $par1 = $par2 >> 4; - return nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$3, $par1); -} -function nms_World_getChunkFromChunkCoords($this, $par1, $par2) { - return nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $par1, $par2); -} -function nms_World_setBlock($this, $par1, $par2, $par3, $par4, $par5, $par6) { - var $var8, var$8, $var7, var$10, $var9, $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();var$10 = $thread.pop();$var7 = $thread.pop();var$8 = $thread.pop();$var8 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 >= (-30000000) && $par3 >= (-30000000) && $par1 < 30000000 && $par3 < 30000000) { - if ($par2 < 0) - return 0; - if ($par2 >= 256) - return 0; - $var8 = $par1 >> 4; - var$8 = $par3 >> 4; - $var7 = nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var8, var$8); - $var8 = 0; - var$8 = $par6 & 1; - if (var$8) - $var8 = $var7.$getBlockID($par1 & 15, $par2, $par3 & 15); - var$10 = $par1 & 15; - $var9 = $par3 & 15; - $ptr = 1; - continue main; - } - return 0; - case 1: - $tmp = $var7.$setBlockIDWithMetadata(var$10, $par2, $var9, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $var9 = $tmp; - nms_Profiler_startSection($this.$theProfiler, $rt_s(657)); - if (!$this.$provider.$hasNoSky) - nms_World_updateLightByType($this, nms_EnumSkyBlock_Sky, $par1, $par2, $par3); - nms_World_updateLightByType($this, nms_EnumSkyBlock_Block, $par1, $par2, $par3); - nms_Profiler_endSection($this.$theProfiler); - if ($var9) { - if ($par6 & 2 && !($this.$isRemote && $par6 & 4)) - nms_World_markBlockForUpdate($this, $par1, $par2, $par3); - if (!$this.$isRemote && var$8) { - $ptr = 2; - continue main; - } - } - return $var9; - case 2: - nms_World_notifyBlocksOfNeighborChange($this, $par1, $par2, $par3, $var8); - if ($rt_suspending()) { - break main; - } - nms_Block_$callClinit(); - $var10 = nms_Block_blocksList.data[$par4]; - if ($var10 !== null && $var10.$hasComparatorInputOverride()) { - $ptr = 3; - continue main; - } - return $var9; - case 3: - nms_World_func_96440_m($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return $var9; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5, $par6, $var8, var$8, $var7, var$10, $var9, $var10, $ptr); -} -function nms_World_getBlockMaterial($this, $par1, $par2, $par3) { - var $var4, var$5; - $var4 = nms_World_getBlockId($this, $par1, $par2, $par3); - if (!$var4) { - nms_Material_$callClinit(); - var$5 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$5 = nms_Block_blocksList.data[$var4].$blockMaterial; - } - return var$5; -} -function nms_World_getBlockMetadata($this, $par1, $par2, $par3) { - var var$4, var$5; - if ($par1 >= (-30000000) && $par3 >= (-30000000) && $par1 < 30000000 && $par3 < 30000000) { - if ($par2 < 0) - return 0; - if ($par2 >= 256) - return 0; - var$4 = $par1 >> 4; - var$5 = $par3 >> 4; - return nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$4, var$5).$getBlockMetadata($par1 & 15, $par2, $par3 & 15); - } - return 0; -} -function nms_World_setBlockMetadataWithNotify($this, $par1, $par2, $par3, $par4, $par5) { - var $var7, $var8, $var6, $var9, $var10, $var11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var6 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 >= (-30000000) && $par3 >= (-30000000) && $par1 < 30000000 && $par3 < 30000000) { - if ($par2 < 0) - return 0; - if ($par2 >= 256) - return 0; - $var7 = $par1 >> 4; - $var8 = $par3 >> 4; - $var6 = nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var7, $var8); - $var7 = $par1 & 15; - $var8 = $par3 & 15; - $var9 = $var6.$setBlockMetadata($var7, $par2, $var8, $par4); - if ($var9) { - $var10 = $var6.$getBlockID($var7, $par2, $var8); - if ($par5 & 2 && !($this.$isRemote && $par5 & 4)) - nms_World_markBlockForUpdate($this, $par1, $par2, $par3); - if (!$this.$isRemote && $par5 & 1) { - $ptr = 1; - continue main; - } - } - return $var9; - } - return 0; - case 1: - nms_World_notifyBlocksOfNeighborChange($this, $par1, $par2, $par3, $var10); - if ($rt_suspending()) { - break main; - } - nms_Block_$callClinit(); - $var11 = nms_Block_blocksList.data[$var10]; - if ($var11 !== null && $var11.$hasComparatorInputOverride()) { - $ptr = 2; - continue main; - } - return $var9; - case 2: - nms_World_func_96440_m($this, $par1, $par2, $par3, $var10); - if ($rt_suspending()) { - break main; - } - return $var9; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5, $var7, $var8, $var6, $var9, $var10, $var11, $ptr); -} -function nms_World_setBlockToAir($this, $par1, $par2, $par3) { - var 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();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$4 = 0; - var$5 = 0; - var$6 = 3; - $ptr = 1; - case 1: - $tmp = nms_World_setBlock($this, $par1, $par2, $par3, var$4, var$5, var$6); - if ($rt_suspending()) { - break main; - } - $par1 = $tmp; - return $par1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, var$4, var$5, var$6, $ptr); -} -function nms_World_destroyBlock($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, 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();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockId($this, $par1, $par2, $par3); - if ($var5 <= 0) - return 0; - $var6 = nms_World_getBlockMetadata($this, $par1, $par2, $par3); - var$7 = 2001; - var$8 = $var5 + ($var6 << 12) | 0; - var$9 = null; - $ptr = 1; - case 1: - nms_World_playAuxSFXAtEntity($this, var$9, var$7, $par1, $par2, $par3, var$8); - if ($rt_suspending()) { - break main; - } - if ($par4) { - nms_Block_$callClinit(); - nms_Block_blocksList.data[$var5].$dropBlockAsItemWithChance($this, $par1, $par2, $par3, $var6, 1.0, 0); - } - $var6 = 0; - $par4 = 0; - $var5 = 3; - $ptr = 2; - case 2: - $tmp = nms_World_setBlock($this, $par1, $par2, $par3, $var6, $par4, $var5); - if ($rt_suspending()) { - break main; - } - $par1 = $tmp; - return $par1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $var5, $var6, var$7, var$8, var$9, $ptr); -} -function nms_World_setBlock0($this, $par1, $par2, $par3, $par4) { - var 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();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$5 = 0; - var$6 = 3; - $ptr = 1; - case 1: - $tmp = nms_World_setBlock($this, $par1, $par2, $par3, $par4, var$5, var$6); - if ($rt_suspending()) { - break main; - } - $par1 = $tmp; - return $par1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, var$5, var$6, $ptr); -} -function nms_World_markBlockForUpdate($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7, var$8, var$9, var$10; - $var4 = 0; - var$5 = $par1 - 1 | 0; - var$6 = $par2 - 1 | 0; - var$7 = $par3 - 1 | 0; - var$8 = $par1 + 1 | 0; - var$9 = $par2 + 1 | 0; - $par1 = $par3 + 1 | 0; - a: { - while ($var4 < $this.$worldAccesses.$size0) { - var$10 = $this.$worldAccesses; - if ($var4 < 0) - break a; - if ($var4 >= var$10.$size0) - break a; - nms_RenderGlobal_markBlocksForUpdate(var$10.$array1.data[$var4], var$5, var$6, var$7, var$8, var$9, $par1); - $var4 = $var4 + 1 | 0; - } - return; - } - var$10 = new jl_IndexOutOfBoundsException; - var$10.$suppressionEnabled = 1; - var$10.$writableStackTrace = 1; - $rt_throw(var$10); -} -function nms_World_notifyBlockChange($this, $par1, $par2, $par3, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $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: - nms_World_notifyBlocksOfNeighborChange($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $ptr); -} -function nms_World_markBlocksDirtyVertical($this, $par1, $par2, $par3, $par4) { - var $var5; - if ($par3 <= $par4) { - $var5 = $par3; - $par3 = $par4; - $par4 = $var5; - } - a: { - if (!$this.$provider.$hasNoSky) { - $var5 = $par4; - while (true) { - if ($var5 > $par3) - break a; - nms_World_updateLightByType($this, nms_EnumSkyBlock_Sky, $par1, $var5, $par2); - $var5 = $var5 + 1 | 0; - } - } - } - nms_World_markBlockRangeForRenderUpdate($this, $par1, $par4, $par2, $par1, $par3, $par2); -} -function nms_World_markBlockRangeForRenderUpdate($this, $par1, $par2, $par3, $par4, $par5, $par6) { - var $var7, var$8, var$9; - $var7 = 0; - var$8 = $par1 - 1 | 0; - $par2 = $par2 - 1 | 0; - $par3 = $par3 - 1 | 0; - $par4 = $par4 + 1 | 0; - $par5 = $par5 + 1 | 0; - $par6 = $par6 + 1 | 0; - a: { - while ($var7 < $this.$worldAccesses.$size0) { - var$9 = $this.$worldAccesses; - if ($var7 < 0) - break a; - if ($var7 >= var$9.$size0) - break a; - nms_RenderGlobal_markBlocksForUpdate(var$9.$array1.data[$var7], var$8, $par2, $par3, $par4, $par5, $par6); - $var7 = $var7 + 1 | 0; - } - return; - } - var$9 = new jl_IndexOutOfBoundsException; - var$9.$suppressionEnabled = 1; - var$9.$writableStackTrace = 1; - $rt_throw(var$9); -} -function nms_World_notifyBlocksOfNeighborChange($this, $par1, $par2, $par3, $par4) { - var var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$5 = $par1 - 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, var$5, $par2, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 1; - continue main; - } - } - var$5 = $par1 + 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, var$5, $par2, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 2; - continue main; - } - } - var$5 = $par2 - 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, var$5, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 3; - continue main; - } - } - var$5 = $par2 + 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, var$5, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 4; - continue main; - } - } - var$5 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, $par2, var$5); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 5; - continue main; - } - } - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - var$5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$5]; - if (var$7 !== null) { - $ptr = 6; - continue main; - } - } - return; - case 1: - var$7.$onNeighborBlockChange($this, var$5, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$5 = $par1 + 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, var$5, $par2, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 2; - continue main; - } - } - var$5 = $par2 - 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, var$5, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 3; - continue main; - } - } - var$5 = $par2 + 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, var$5, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 4; - continue main; - } - } - var$5 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, $par2, var$5); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 5; - continue main; - } - } - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - var$5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$5]; - if (var$7 !== null) { - $ptr = 6; - continue main; - } - } - return; - case 2: - var$7.$onNeighborBlockChange($this, var$5, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$5 = $par2 - 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, var$5, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 3; - continue main; - } - } - var$5 = $par2 + 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, var$5, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 4; - continue main; - } - } - var$5 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, $par2, var$5); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 5; - continue main; - } - } - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - var$5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$5]; - if (var$7 !== null) { - $ptr = 6; - continue main; - } - } - return; - case 3: - var$7.$onNeighborBlockChange($this, $par1, var$5, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$5 = $par2 + 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, var$5, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 4; - continue main; - } - } - var$5 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, $par2, var$5); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 5; - continue main; - } - } - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - var$5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$5]; - if (var$7 !== null) { - $ptr = 6; - continue main; - } - } - return; - case 4: - var$7.$onNeighborBlockChange($this, $par1, var$5, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$5 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$6 = nms_World_getBlockId($this, $par1, $par2, var$5); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$6]; - if (var$7 !== null) { - $ptr = 5; - continue main; - } - } - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - var$5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$5]; - if (var$7 !== null) { - $ptr = 6; - continue main; - } - } - return; - case 5: - var$7.$onNeighborBlockChange($this, $par1, $par2, var$5, $par4); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - var$5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[var$5]; - if (var$7 !== null) { - $ptr = 6; - continue main; - } - } - return; - case 6: - var$7.$onNeighborBlockChange($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, var$5, var$6, var$7, $ptr); -} -function nms_World_notifyBlocksOfNeighborChange0($this, $par1, $par2, $par3, $par4, $par5) { - var var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par5 != 4) { - var$6 = $par1 - 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, var$6, $par2, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 1; - continue main; - } - } - } - if ($par5 != 5) { - var$6 = $par1 + 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, var$6, $par2, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 2; - continue main; - } - } - } - if ($par5) { - var$6 = $par2 - 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, var$6, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 3; - continue main; - } - } - } - if ($par5 != 1) { - var$6 = $par2 + 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, var$6, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 4; - continue main; - } - } - } - if ($par5 != 2) { - var$6 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, $par2, var$6); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 5; - continue main; - } - } - } - if ($par5 != 3) { - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - $par5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$par5]; - if (var$8 !== null) { - $ptr = 6; - continue main; - } - } - } - return; - case 1: - var$8.$onNeighborBlockChange($this, var$6, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - if ($par5 != 5) { - var$6 = $par1 + 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, var$6, $par2, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 2; - continue main; - } - } - } - if ($par5) { - var$6 = $par2 - 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, var$6, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 3; - continue main; - } - } - } - if ($par5 != 1) { - var$6 = $par2 + 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, var$6, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 4; - continue main; - } - } - } - if ($par5 != 2) { - var$6 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, $par2, var$6); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 5; - continue main; - } - } - } - if ($par5 != 3) { - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - $par5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$par5]; - if (var$8 !== null) { - $ptr = 6; - continue main; - } - } - } - return; - case 2: - var$8.$onNeighborBlockChange($this, var$6, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - if ($par5) { - var$6 = $par2 - 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, var$6, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 3; - continue main; - } - } - } - if ($par5 != 1) { - var$6 = $par2 + 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, var$6, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 4; - continue main; - } - } - } - if ($par5 != 2) { - var$6 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, $par2, var$6); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 5; - continue main; - } - } - } - if ($par5 != 3) { - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - $par5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$par5]; - if (var$8 !== null) { - $ptr = 6; - continue main; - } - } - } - return; - case 3: - var$8.$onNeighborBlockChange($this, $par1, var$6, $par3, $par4); - if ($rt_suspending()) { - break main; - } - if ($par5 != 1) { - var$6 = $par2 + 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, var$6, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 4; - continue main; - } - } - } - if ($par5 != 2) { - var$6 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, $par2, var$6); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 5; - continue main; - } - } - } - if ($par5 != 3) { - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - $par5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$par5]; - if (var$8 !== null) { - $ptr = 6; - continue main; - } - } - } - return; - case 4: - var$8.$onNeighborBlockChange($this, $par1, var$6, $par3, $par4); - if ($rt_suspending()) { - break main; - } - if ($par5 != 2) { - var$6 = $par3 - 1 | 0; - if (!$this.$isRemote) { - var$7 = nms_World_getBlockId($this, $par1, $par2, var$6); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$7]; - if (var$8 !== null) { - $ptr = 5; - continue main; - } - } - } - if ($par5 != 3) { - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - $par5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$par5]; - if (var$8 !== null) { - $ptr = 6; - continue main; - } - } - } - return; - case 5: - var$8.$onNeighborBlockChange($this, $par1, $par2, var$6, $par4); - if ($rt_suspending()) { - break main; - } - if ($par5 != 3) { - $par3 = $par3 + 1 | 0; - if (!$this.$isRemote) { - $par5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$par5]; - if (var$8 !== null) { - $ptr = 6; - continue main; - } - } - } - return; - case 6: - var$8.$onNeighborBlockChange($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5, var$6, var$7, var$8, $ptr); -} -function nms_World_notifyBlockOfNeighborChange($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$isRemote) { - $var5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - $var6 = nms_Block_blocksList.data[$var5]; - if ($var6 !== null) { - $ptr = 1; - continue main; - } - } - return; - case 1: - $var6.$onNeighborBlockChange($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $var5, $var6, $ptr); -} -function nms_World_isBlockTickScheduled($this, $par1, $par2, $par3, $par4) { - return 0; -} -function nms_World_canBlockSeeTheSky($this, $par1, $par2, $par3) { - var var$4, var$5; - var$4 = $par1 >> 4; - var$5 = $par3 >> 4; - return nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$4, var$5).$canBlockSeeTheSky($par1 & 15, $par2, $par3 & 15); -} -function nms_World_getFullBlockLightValue($this, $par1, $par2, $par3) { - var var$4, var$5; - if ($par2 < 0) - return 0; - if ($par2 >= 256) - $par2 = 255; - var$4 = $par1 >> 4; - var$5 = $par3 >> 4; - return nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$4, var$5).$getBlockLightValue($par1 & 15, $par2, $par3 & 15, 0); -} -function nms_World_getBlockLightValue($this, $par1, $par2, $par3) { - return nms_World_getBlockLightValue_do($this, $par1, $par2, $par3, 1); -} -function nms_World_getBlockLightValue_do($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10; - if ($par1 >= (-30000000) && $par3 >= (-30000000) && $par1 < 30000000 && $par3 < 30000000) { - if ($par4) { - $var5 = nms_World_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - if (nms_Block_useNeighborBrightness.data[$var5]) { - $var6 = nms_World_getBlockLightValue_do($this, $par1, $par2 + 1 | 0, $par3, 0); - $var7 = nms_World_getBlockLightValue_do($this, $par1 + 1 | 0, $par2, $par3, 0); - $var8 = nms_World_getBlockLightValue_do($this, $par1 - 1 | 0, $par2, $par3, 0); - $var9 = nms_World_getBlockLightValue_do($this, $par1, $par2, $par3 + 1 | 0, 0); - $var10 = nms_World_getBlockLightValue_do($this, $par1, $par2, $par3 - 1 | 0, 0); - if ($var7 <= $var6) - $var7 = $var6; - if ($var8 <= $var7) - $var8 = $var7; - if ($var9 <= $var8) - $var9 = $var8; - if ($var10 <= $var9) - $var10 = $var9; - return $var10; - } - } - if ($par2 < 0) - return 0; - if ($par2 >= 256) - $par2 = 255; - $par4 = $par1 >> 4; - $var6 = $par3 >> 4; - return nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $par4, $var6).$getBlockLightValue($par1 & 15, $par2, $par3 & 15, $this.$skylightSubtracted); - } - return 15; -} -function nms_World_getSkyBlockTypeBrightness($this, $par1EnumSkyBlock, $par2, $par3, $par4) { - var $var5, $var6, $var12, $var8, $var9, $var10, $var11; - if ($this.$provider.$hasNoSky && $par1EnumSkyBlock === nms_EnumSkyBlock_Sky) - return 0; - if ($par3 < 0) - $par3 = 0; - if ($par3 >= 256) - return $par1EnumSkyBlock.$defaultLightValue; - if ($par2 >= (-30000000) && $par4 >= (-30000000) && $par2 < 30000000 && $par4 < 30000000) { - $var5 = $par2 >> 4; - $var6 = $par4 >> 4; - nms_Block_$callClinit(); - if (!nms_Block_useNeighborBrightness.data[nms_World_getBlockId($this, $par2, $par3, $par4)]) - return nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var5, $var6).$getSavedLightValue($par1EnumSkyBlock, $par2 & 15, $par3, $par4 & 15); - $var12 = nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $par2, $par3 + 1 | 0, $par4); - $var8 = nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $par2 + 1 | 0, $par3, $par4); - $var9 = nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $par2 - 1 | 0, $par3, $par4); - $var10 = nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $par2, $par3, $par4 + 1 | 0); - $var11 = nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $par2, $par3, $par4 - 1 | 0); - if ($var8 <= $var12) - $var8 = $var12; - if ($var9 <= $var8) - $var9 = $var8; - if ($var10 <= $var9) - $var10 = $var9; - if ($var11 <= $var10) - $var11 = $var10; - return $var11; - } - return $par1EnumSkyBlock.$defaultLightValue; -} -function nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $par2, $par3, $par4) { - var $var5, $var6; - if ($par3 < 0) - $par3 = 0; - if ($par3 >= 256) - $par3 = 255; - if ($par2 >= (-30000000) && $par4 >= (-30000000) && $par2 < 30000000 && $par4 < 30000000) { - $var5 = $par2 >> 4; - $var6 = $par4 >> 4; - return nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var5, $var6).$getSavedLightValue($par1EnumSkyBlock, $par2 & 15, $par3, $par4 & 15); - } - return $par1EnumSkyBlock.$defaultLightValue; -} -function nms_World_setLightValue($this, $par1EnumSkyBlock, $par2, $par3, $par4, $par5) { - var $var7, var$7, var$8, var$9; - a: { - b: { - if ($par2 >= (-30000000) && $par4 >= (-30000000) && $par2 < 30000000 && $par4 < 30000000 && $par3 >= 0 && $par3 < 256) { - $var7 = $par2 >> 4; - var$7 = $par4 >> 4; - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var7, var$7).$setLightValue($par1EnumSkyBlock, $par2 & 15, $par3, $par4 & 15, $par5); - $var7 = 0; - $par5 = $par2 - 1 | 0; - var$7 = $par3 - 1 | 0; - var$8 = $par4 - 1 | 0; - var$9 = $par2 + 1 | 0; - $par3 = $par3 + 1 | 0; - $par4 = $par4 + 1 | 0; - while (true) { - if ($var7 >= $this.$worldAccesses.$size0) - break b; - $par1EnumSkyBlock = $this.$worldAccesses; - if ($var7 < 0) - break a; - if ($var7 >= $par1EnumSkyBlock.$size0) - break a; - nms_RenderGlobal_markBlocksForUpdate($par1EnumSkyBlock.$array1.data[$var7], $par5, var$7, var$8, var$9, $par3, $par4); - $var7 = $var7 + 1 | 0; - } - } - } - return; - } - $par1EnumSkyBlock = new jl_IndexOutOfBoundsException; - $par1EnumSkyBlock.$suppressionEnabled = 1; - $par1EnumSkyBlock.$writableStackTrace = 1; - $rt_throw($par1EnumSkyBlock); -} -function nms_World_markBlockForRenderUpdate($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7, var$8, var$9, var$10; - $var4 = 0; - var$5 = $par1 - 1 | 0; - var$6 = $par2 - 1 | 0; - var$7 = $par3 - 1 | 0; - var$8 = $par1 + 1 | 0; - var$9 = $par2 + 1 | 0; - $par1 = $par3 + 1 | 0; - a: { - while ($var4 < $this.$worldAccesses.$size0) { - var$10 = $this.$worldAccesses; - if ($var4 < 0) - break a; - if ($var4 >= var$10.$size0) - break a; - nms_RenderGlobal_markBlocksForUpdate(var$10.$array1.data[$var4], var$5, var$6, var$7, var$8, var$9, $par1); - $var4 = $var4 + 1 | 0; - } - return; - } - var$10 = new jl_IndexOutOfBoundsException; - var$10.$suppressionEnabled = 1; - var$10.$writableStackTrace = 1; - $rt_throw(var$10); -} -function nms_World_getLightBrightnessForSkyBlocks($this, $par1, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = nms_World_getSkyBlockTypeBrightness($this, nms_EnumSkyBlock_Sky, $par1, $par2, $par3); - $var6 = nms_World_getSkyBlockTypeBrightness($this, nms_EnumSkyBlock_Block, $par1, $par2, $par3); - if ($var6 >= $par4) - $par4 = $var6; - return $var5 << 20 | $par4 << 4; -} -function nms_World_getBrightness($this, $par1, $par2, $par3, $par4) { - var $var5; - $var5 = nms_World_getBlockLightValue_do($this, $par1, $par2, $par3, 1); - if ($var5 >= $par4) - $par4 = $var5; - return $this.$provider.$lightBrightnessTable.data[$par4]; -} -function nms_World_getLightBrightness($this, $par1, $par2, $par3) { - return $this.$provider.$lightBrightnessTable.data[nms_World_getBlockLightValue_do($this, $par1, $par2, $par3, 1)]; -} -function nms_World_isDaytime($this) { - return $this.$skylightSubtracted >= 4 ? 0 : 1; -} -function nms_World_rayTraceBlocks($this, $par1Vec3, $par2Vec3) { - return nms_World_rayTraceBlocks_do_do($this, $par1Vec3, $par2Vec3, 0, 0); -} -function nms_World_rayTraceBlocks_do($this, $par1Vec3, $par2Vec3, $par3) { - return nms_World_rayTraceBlocks_do_do($this, $par1Vec3, $par2Vec3, $par3, 0); -} -function nms_World_rayTraceBlocks_do_do($this, $par1Vec3, $par2Vec3, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var12, $var13, $var14, $var35, $var39, $var40, $var41, $var15, $var17, $var19, $var36, $var21, $var23, $var25, $var27, $var29, $var31, $var42, $var34, var$31, $var37, $var38; - if (!(isNaN($par1Vec3.$xCoord) ? 1 : 0) && !(isNaN($par1Vec3.$yCoord) ? 1 : 0) && !(isNaN($par1Vec3.$zCoord) ? 1 : 0)) { - if (!(isNaN($par2Vec3.$xCoord) ? 1 : 0) && !(isNaN($par2Vec3.$yCoord) ? 1 : 0) && !(isNaN($par2Vec3.$zCoord) ? 1 : 0)) { - $var5 = nms_MathHelper_floor_double($par2Vec3.$xCoord); - $var6 = nms_MathHelper_floor_double($par2Vec3.$yCoord); - $var7 = nms_MathHelper_floor_double($par2Vec3.$zCoord); - $var8 = nms_MathHelper_floor_double($par1Vec3.$xCoord); - $var9 = nms_MathHelper_floor_double($par1Vec3.$yCoord); - $var10 = nms_MathHelper_floor_double($par1Vec3.$zCoord); - $var11 = nms_World_getBlockId($this, $var8, $var9, $var10); - $var12 = nms_World_getBlockMetadata($this, $var8, $var9, $var10); - nms_Block_$callClinit(); - $var13 = nms_Block_blocksList.data[$var11]; - if (!($par4 && $var13 !== null && $var13.$getCollisionBoundingBoxFromPool($this, $var8, $var9, $var10) === null) && $var11 > 0 && $var13.$canCollideCheck($var12, $par3)) { - $var14 = $var13.$collisionRayTrace($this, $var8, $var9, $var10, $par1Vec3, $par2Vec3); - if ($var14 !== null) - return $var14; - } - $var35 = 200; - a: { - while (true) { - $var11 = $var35 + (-1) | 0; - if ($var35 < 0) - return null; - if (isNaN($par1Vec3.$xCoord) ? 1 : 0) - break a; - if (isNaN($par1Vec3.$yCoord) ? 1 : 0) - break a; - if (isNaN($par1Vec3.$zCoord) ? 1 : 0) - break a; - if ($var8 == $var5 && $var9 == $var6 && $var10 == $var7) - return null; - $var39 = 1; - $var40 = 1; - $var41 = 1; - $var15 = 999.0; - $var17 = 999.0; - $var19 = 999.0; - $var35 = $rt_compare($var5, $var8); - if ($var35 > 0) - $var15 = $var8 + 1.0; - else if ($var35 >= 0) - $var39 = 0; - else - $var15 = $var8 + 0.0; - $var36 = $rt_compare($var6, $var9); - if ($var36 > 0) - $var17 = $var9 + 1.0; - else if ($var36 >= 0) - $var40 = 0; - else - $var17 = $var9 + 0.0; - $var9 = $rt_compare($var7, $var10); - if ($var9 > 0) - $var19 = $var10 + 1.0; - else if ($var9 >= 0) - $var41 = 0; - else - $var19 = $var10 + 0.0; - $var21 = 999.0; - $var23 = 999.0; - $var25 = 999.0; - $var27 = $par2Vec3.$xCoord - $par1Vec3.$xCoord; - $var29 = $par2Vec3.$yCoord - $par1Vec3.$yCoord; - $var31 = $par2Vec3.$zCoord - $par1Vec3.$zCoord; - if ($var39) - $var21 = ($var15 - $par1Vec3.$xCoord) / $var27; - if ($var40) - $var23 = ($var17 - $par1Vec3.$yCoord) / $var29; - if ($var41) - $var25 = ($var19 - $par1Vec3.$zCoord) / $var31; - if ($var21 < $var23 && $var21 < $var25) { - $var42 = $var35 <= 0 ? 5 : 4; - $par1Vec3.$xCoord = $var15; - $par1Vec3.$yCoord = $par1Vec3.$yCoord + $var29 * $var21; - $par1Vec3.$zCoord = $par1Vec3.$zCoord + $var31 * $var21; - } else if ($var23 >= $var25) { - $var42 = $var9 <= 0 ? 3 : 2; - $par1Vec3.$xCoord = $par1Vec3.$xCoord + $var27 * $var25; - $par1Vec3.$yCoord = $par1Vec3.$yCoord + $var29 * $var25; - $par1Vec3.$zCoord = $var19; - } else { - $var42 = $var36 <= 0 ? 1 : 0; - $par1Vec3.$xCoord = $par1Vec3.$xCoord + $var27 * $var23; - $par1Vec3.$yCoord = $var17; - $par1Vec3.$zCoord = $par1Vec3.$zCoord + $var31 * $var23; - } - $var34 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this), $par1Vec3.$xCoord, $par1Vec3.$yCoord, $par1Vec3.$zCoord); - var$31 = nms_MathHelper_floor_double($par1Vec3.$xCoord); - $var34.$xCoord = var$31; - $var8 = var$31 | 0; - if ($var42 == 5) { - $var8 = $var8 + (-1) | 0; - $var34.$xCoord = $var34.$xCoord + 1.0; - } - var$31 = nms_MathHelper_floor_double($par1Vec3.$yCoord); - $var34.$yCoord = var$31; - $var9 = var$31 | 0; - if ($var42 == 1) { - $var9 = $var9 + (-1) | 0; - $var34.$yCoord = $var34.$yCoord + 1.0; - } - var$31 = nms_MathHelper_floor_double($par1Vec3.$zCoord); - $var34.$zCoord = var$31; - $var10 = var$31 | 0; - if ($var42 == 3) { - $var10 = $var10 + (-1) | 0; - $var34.$zCoord = $var34.$zCoord + 1.0; - } - $var35 = nms_World_getBlockId($this, $var8, $var9, $var10); - $var36 = nms_World_getBlockMetadata($this, $var8, $var9, $var10); - $var37 = nms_Block_blocksList.data[$var35]; - if (!($par4 && $var37 !== null && $var37.$getCollisionBoundingBoxFromPool($this, $var8, $var9, $var10) === null) && $var35 > 0 && $var37.$canCollideCheck($var36, $par3)) { - $var38 = $var37.$collisionRayTrace($this, $var8, $var9, $var10, $par1Vec3, $par2Vec3); - if ($var38 !== null) - break; - } - $var35 = $var11; - } - return $var38; - } - return null; - } - return null; - } - return null; -} -function nms_World_playSoundAtEntity($this, $par1Entity, $par2Str, $par3, $par4) { - var $var5; - a: { - b: { - if ($par1Entity !== null && $par2Str !== null) { - $var5 = 0; - while (true) { - if ($var5 >= $this.$worldAccesses.$size0) - break b; - $par1Entity = $this.$worldAccesses; - if ($var5 < 0) - break a; - if ($var5 >= $par1Entity.$size0) - break a; - $var5 = $var5 + 1 | 0; - } - } - } - return; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); -} -function nms_World_playSoundToNearExcept($this, $par1EntityPlayer, $par2Str, $par3, $par4) { - var $var5; - a: { - b: { - if ($par1EntityPlayer !== null && $par2Str !== null) { - $var5 = 0; - while (true) { - if ($var5 >= $this.$worldAccesses.$size0) - break b; - $par1EntityPlayer = $this.$worldAccesses; - if ($var5 < 0) - break a; - if ($var5 >= $par1EntityPlayer.$size0) - break a; - $var5 = $var5 + 1 | 0; - } - } - } - return; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); -} -function nms_World_playSoundEffect($this, $par1, $par3, $par5, $par7Str, $par8, $par9) { - var $var10; - a: { - b: { - if ($par7Str !== null) { - $var10 = 0; - while (true) { - if ($var10 >= $this.$worldAccesses.$size0) - break b; - $par7Str = $this.$worldAccesses; - if ($var10 < 0) - break a; - if ($var10 >= $par7Str.$size0) - break a; - $var10 = $var10 + 1 | 0; - } - } - } - return; - } - $par7Str = new jl_IndexOutOfBoundsException; - $par7Str.$suppressionEnabled = 1; - $par7Str.$writableStackTrace = 1; - $rt_throw($par7Str); -} -function nms_World_playRecord($this, $par1Str, $par2, $par3, $par4) { - var $var5, var$6; - $var5 = 0; - a: { - while ($var5 < $this.$worldAccesses.$size0) { - var$6 = $this.$worldAccesses; - if ($var5 < 0) - break a; - if ($var5 >= var$6.$size0) - break a; - nms_RenderGlobal_playRecord(var$6.$array1.data[$var5], $par1Str, $par2, $par3, $par4); - $var5 = $var5 + 1 | 0; - } - return; - } - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); -} -function nms_World_spawnParticle($this, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12) { - var $var14, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var14 = $thread.pop();$par12 = $thread.pop();$par10 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Str = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var14 = 0; - if ($var14 >= $this.$worldAccesses.$size0) - return; - var$9 = $this.$worldAccesses; - if ($var14 >= 0 && $var14 < var$9.$size0) { - var$9 = var$9.$array1.data[$var14]; - $ptr = 1; - continue main; - } - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - case 1: - nms_RenderGlobal_doSpawnParticle(var$9, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12); - if ($rt_suspending()) { - break main; - } - $var14 = $var14 + 1 | 0; - if ($var14 >= $this.$worldAccesses.$size0) - return; - var$9 = $this.$worldAccesses; - if ($var14 >= 0 && $var14 < var$9.$size0) { - var$9 = var$9.$array1.data[$var14]; - continue main; - } - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12, $var14, var$9, $ptr); -} -function nms_World_addWeatherEffect($this, $par1Entity) { - ju_ArrayList_add($this.$weatherEffects, $par1Entity); - return 1; -} -function nms_World_spawnEntityInWorld($this, $par1Entity) { - var var$2, $var2, $var3, $var4, var$6, $var5; - var$2 = $par1Entity.$posX / 16.0; - $var2 = var$2 | 0; - if (var$2 < $var2) - $var2 = $var2 - 1 | 0; - var$2 = $par1Entity.$posZ / 16.0; - $var3 = var$2 | 0; - if (var$2 < $var3) - $var3 = $var3 - 1 | 0; - $var4 = $par1Entity.$field_98038_p; - var$6 = $par1Entity instanceof nms_EntityPlayer; - if (var$6) - $var4 = 1; - if (var$6) { - $var5 = $par1Entity; - ju_ArrayList_add($this.$playerEntities, $var5); - } - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var2, $var3).$addEntity($par1Entity); - ju_ArrayList_add($this.$loadedEntityList, $par1Entity); - nms_WorldClient_obtainEntitySkin($this, $par1Entity); - return 1; -} -function nms_World_removeEntity($this, $par1Entity) { - 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();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1Entity.$riddenByEntity !== null) - $par1Entity.$riddenByEntity.$mountEntity(null); - if ($par1Entity.$ridingEntity !== null) - $par1Entity.$mountEntity(null); - $ptr = 1; - case 1: - $par1Entity.$setDead(); - if ($rt_suspending()) { - break main; - } - if ($par1Entity instanceof nms_EntityPlayer) { - var$2 = $this.$playerEntities; - var$3 = ju_AbstractList_indexOf(var$2, $par1Entity); - if (var$3 >= 0) - ju_ArrayList_remove(var$2, var$3); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, var$2, var$3, $ptr); -} -function nms_World_addWorldAccess($this, $par1IWorldAccess) { - ju_ArrayList_add($this.$worldAccesses, $par1IWorldAccess); -} -function nms_World_removeWorldAccess($this, $par1IWorldAccess) { - var var$2, var$3; - var$2 = $this.$worldAccesses; - var$3 = ju_AbstractList_indexOf(var$2, $par1IWorldAccess); - if (var$3 >= 0) - ju_ArrayList_remove(var$2, var$3); -} -function nms_World_getCollidingBoundingBoxes($this, $par1Entity, $par2AxisAlignedBB) { - var $var13, var$4, $var3, $var4, $var5, $var6, $var7, $var8, $var16, $var10, $var11, $var12, var$15, var$16, var$17, var$18, $var14, $var15; - $var13 = $this.$collidingBoundingBoxes; - ju_Arrays_fill($var13.$array1, 0, $var13.$size0, null); - $var13.$size0 = 0; - var$4 = $par2AxisAlignedBB.$minX; - $var3 = var$4 | 0; - if (var$4 < $var3) - $var3 = $var3 - 1 | 0; - var$4 = $par2AxisAlignedBB.$maxX + 1.0; - $var4 = var$4 | 0; - if (var$4 < $var4) - $var4 = $var4 - 1 | 0; - var$4 = $par2AxisAlignedBB.$minY; - $var5 = var$4 | 0; - if (var$4 < $var5) - $var5 = $var5 - 1 | 0; - var$4 = $par2AxisAlignedBB.$maxY + 1.0; - $var6 = var$4 | 0; - if (var$4 < $var6) - $var6 = $var6 - 1 | 0; - var$4 = $par2AxisAlignedBB.$minZ; - $var7 = var$4 | 0; - if (var$4 < $var7) - $var7 = $var7 - 1 | 0; - var$4 = $par2AxisAlignedBB.$maxZ + 1.0; - $var8 = var$4 | 0; - if (var$4 < $var8) - $var8 = $var8 - 1 | 0; - $var16 = $var5 - 1 | 0; - while ($var3 < $var4) { - $var10 = $var7; - while ($var10 < $var8) { - $var11 = $var16; - while ($var11 < $var6) { - nms_Block_$callClinit(); - $var12 = nms_Block_blocksList.data[nms_World_getBlockId($this, $var3, $var11, $var10)]; - if ($var12 !== null) - $var12.$addCollisionBoxesToList($this, $var3, $var11, $var10, $par2AxisAlignedBB, $this.$collidingBoundingBoxes, $par1Entity); - $var11 = $var11 + 1 | 0; - } - $var10 = $var10 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - var$4 = $par2AxisAlignedBB.$minX - 0.25; - var$15 = $par2AxisAlignedBB.$minY - 0.25; - var$16 = $par2AxisAlignedBB.$minZ - 0.25; - var$17 = $par2AxisAlignedBB.$maxX + 0.25; - var$18 = $par2AxisAlignedBB.$maxY + 0.25; - $var14 = $par2AxisAlignedBB.$maxZ + 0.25; - $var15 = nms_World_getEntitiesWithinAABBExcludingEntity($this, $par1Entity, nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$4, var$15, var$16, var$17, var$18, $var14), null); - $var16 = 0; - a: { - b: { - while ($var16 < $var15.$size0) { - if ($var16 < 0) - break a; - if ($var16 >= $var15.$size0) - break a; - $var13 = $var15.$array1.data[$var16].$getBoundingBox(); - if ($var13 !== null && nms_AxisAlignedBB_intersectsWith($var13, $par2AxisAlignedBB)) - ju_ArrayList_add($this.$collidingBoundingBoxes, $var13); - if ($var16 < 0) - break b; - if ($var16 >= $var15.$size0) - break b; - $var13 = $par1Entity.$getCollisionBox($var15.$array1.data[$var16]); - if ($var13 !== null && nms_AxisAlignedBB_intersectsWith($var13, $par2AxisAlignedBB)) - ju_ArrayList_add($this.$collidingBoundingBoxes, $var13); - $var16 = $var16 + 1 | 0; - } - return $this.$collidingBoundingBoxes; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); -} -function nms_World_getCollidingBlockBounds($this, $par1AxisAlignedBB) { - var var$2, var$3, $var2, $var3, $var4, $var5, $var6, $var7, $var9, $var10, $var11; - var$2 = $this.$collidingBoundingBoxes; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - var$3 = $par1AxisAlignedBB.$minX; - $var2 = var$3 | 0; - if (var$3 < $var2) - $var2 = $var2 - 1 | 0; - var$3 = $par1AxisAlignedBB.$maxX + 1.0; - $var3 = var$3 | 0; - if (var$3 < $var3) - $var3 = $var3 - 1 | 0; - var$3 = $par1AxisAlignedBB.$minY; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - var$3 = $par1AxisAlignedBB.$maxY + 1.0; - $var5 = var$3 | 0; - if (var$3 < $var5) - $var5 = $var5 - 1 | 0; - var$3 = $par1AxisAlignedBB.$minZ; - $var6 = var$3 | 0; - if (var$3 < $var6) - $var6 = $var6 - 1 | 0; - var$3 = $par1AxisAlignedBB.$maxZ + 1.0; - $var7 = var$3 | 0; - if (var$3 < $var7) - $var7 = $var7 - 1 | 0; - $var4 = $var4 - 1 | 0; - var$2 = null; - while ($var2 < $var3) { - $var9 = $var6; - while ($var9 < $var7) { - $var10 = $var4; - while ($var10 < $var5) { - nms_Block_$callClinit(); - $var11 = nms_Block_blocksList.data[nms_World_getBlockId($this, $var2, $var10, $var9)]; - if ($var11 !== null) - $var11.$addCollisionBoxesToList($this, $var2, $var10, $var9, $par1AxisAlignedBB, $this.$collidingBoundingBoxes, var$2); - $var10 = $var10 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } - return $this.$collidingBoundingBoxes; -} -function nms_World_calculateSkylightSubtracted($this, $par1) { - var $var3; - $var3 = $this.$provider.$calculateCelestialAngle($this.$worldInfo.$worldTime, $par1) * 3.1415927410125732 * 2.0; - $var3 = 1.0 - (nms_MathHelper_SIN_TABLE.data[($var3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.0 + 0.5); - if ($var3 < 0.0) - $var3 = 0.0; - if ($var3 > 1.0) - $var3 = 1.0; - return (1.0 - (1.0 - $var3) * (1.0 - ($this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par1) * 5.0 / 16.0) * (1.0 - ($this.$prevThunderingStrength + ($this.$thunderingStrength - $this.$prevThunderingStrength) * $par1) * ($this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par1) * 5.0 / 16.0)) * 11.0 | 0; -} -function nms_World_getSunBrightness($this, $par1) { - var $var3; - $var3 = $this.$provider.$calculateCelestialAngle($this.$worldInfo.$worldTime, $par1) * 3.1415927410125732 * 2.0; - $var3 = 1.0 - (nms_MathHelper_SIN_TABLE.data[($var3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.0 + 0.20000000298023224); - if ($var3 < 0.0) - $var3 = 0.0; - if ($var3 > 1.0) - $var3 = 1.0; - return (1.0 - $var3) * (1.0 - ($this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par1) * 5.0 / 16.0) * (1.0 - ($this.$prevThunderingStrength + ($this.$thunderingStrength - $this.$prevThunderingStrength) * $par1) * ($this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par1) * 5.0 / 16.0) * 0.800000011920929 + 0.20000000298023224; -} -function nms_World_getSkyColor($this, $par1Entity, $par2) { - var $var3, $var4, var$5, $var5, $var6, var$8, $var9, $var7, $var10, $var11, $var12, $var13, $var14, $var15, $var16; - $var3 = $this.$provider.$calculateCelestialAngle($this.$worldInfo.$worldTime, $par2) * 3.1415927410125732 * 2.0; - $var4 = nms_MathHelper_SIN_TABLE.data[($var3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.0 + 0.5; - if ($var4 < 0.10000000149011612) - $var4 = 0.10000000149011612; - if ($var4 > 1.0) - $var4 = 1.0; - var$5 = $par1Entity.$posX; - $var5 = var$5 | 0; - if (var$5 < $var5) - $var5 = $var5 - 1 | 0; - var$5 = $par1Entity.$posZ; - $var6 = var$5 | 0; - if (var$5 < $var6) - $var6 = $var6 - 1 | 0; - var$8 = $var5 >> 4; - $var9 = $var6 >> 4; - $var7 = nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$8, $var9), $var5 & 15, $var6 & 15); - $var9 = nms_BiomeGenBase_getSkyColorByTemp($var7, $var7.$temperature); - $var10 = ($var9 >> 16 & 255) / 255.0; - $var11 = ($var9 >> 8 & 255) / 255.0; - $var12 = ($var9 & 255) / 255.0; - $var3 = $var10 * $var4; - $var10 = $var11 * $var4; - $var4 = $var12 * $var4; - $var13 = $this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par2; - if ($var13 > 0.0) { - $var14 = ($var3 * 0.30000001192092896 + $var10 * 0.5899999737739563 + $var4 * 0.10999999940395355) * 0.6000000238418579; - $var15 = 1.0 - $var13 * 0.75; - $var3 = $var3 * $var15; - $var11 = $var14 * (1.0 - $var15); - $var3 = $var3 + $var11; - $var10 = $var10 * $var15 + $var11; - $var4 = $var4 * $var15 + $var11; - } - $var14 = ($this.$prevThunderingStrength + ($this.$thunderingStrength - $this.$prevThunderingStrength) * $par2) * ($this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par2); - if ($var14 > 0.0) { - $var15 = ($var3 * 0.30000001192092896 + $var10 * 0.5899999737739563 + $var4 * 0.10999999940395355) * 0.20000000298023224; - $var16 = 1.0 - $var14 * 0.75; - $var3 = $var3 * $var16; - $var11 = $var15 * (1.0 - $var16); - $var3 = $var3 + $var11; - $var10 = $var10 * $var16 + $var11; - $var4 = $var4 * $var16 + $var11; - } - if ($this.$lastLightningBolt > 0) { - $var15 = $this.$lastLightningBolt - $par2; - if ($var15 > 1.0) - $var15 = 1.0; - $par2 = $var15 * 0.44999998807907104; - $var11 = 1.0 - $par2; - $var3 = $var3 * $var11; - $var12 = 0.800000011920929 * $par2; - $var3 = $var3 + $var12; - $var10 = $var10 * $var11 + $var12; - $var4 = $var4 * $var11 + 1.0 * $par2; - } - return nms_Vec3Pool_getVecFromPool($this.$vecPool, $var3, $var10, $var4); -} -function nms_World_getCelestialAngle($this, $par1) { - return $this.$provider.$calculateCelestialAngle($this.$worldInfo.$worldTime, $par1); -} -function nms_World_getMoonPhase($this) { - return Long_div($this.$worldInfo.$worldTime, Long_fromInt(24000)).lo % 8 | 0; -} -function nms_World_getCelestialAngleRadians($this, $par1) { - return $this.$provider.$calculateCelestialAngle($this.$worldInfo.$worldTime, $par1) * 3.1415927410125732 * 2.0; -} -function nms_World_getCloudColour($this, $par1) { - var $var3, $var4, $var5, $var6, $var7, $var8, $var9, $var9_0, $var8_0, $var10; - $var3 = $this.$provider.$calculateCelestialAngle($this.$worldInfo.$worldTime, $par1) * 3.1415927410125732 * 2.0; - $var3 = nms_MathHelper_SIN_TABLE.data[($var3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.0 + 0.5; - if ($var3 < 0.0) - $var3 = 0.0; - if ($var3 > 1.0) - $var3 = 1.0; - $var4 = Long_toNumber(Long_and(Long_shr($this.$cloudColour, 16), Long_fromInt(255))) / 255.0; - $var5 = Long_toNumber(Long_and(Long_shr($this.$cloudColour, 8), Long_fromInt(255))) / 255.0; - $var6 = Long_toNumber(Long_and($this.$cloudColour, Long_fromInt(255))) / 255.0; - $var7 = $this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par1; - if ($var7 > 0.0) { - $var8 = ($var4 * 0.30000001192092896 + $var5 * 0.5899999737739563 + $var6 * 0.10999999940395355) * 0.6000000238418579; - $var9 = 1.0 - $var7 * 0.949999988079071; - $var9_0 = $var4 * $var9; - $var8 = $var8 * (1.0 - $var9); - $var4 = $var9_0 + $var8; - $var5 = $var5 * $var9 + $var8; - $var6 = $var6 * $var9 + $var8; - } - $var8 = $var3 * 0.8999999761581421 + 0.10000000149011612; - $var9 = $var4 * $var8; - $var8 = $var5 * $var8; - $var3 = $var6 * ($var3 * 0.8500000238418579 + 0.15000000596046448); - $var8_0 = ($this.$prevThunderingStrength + ($this.$thunderingStrength - $this.$prevThunderingStrength) * $par1) * ($this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par1); - if ($var8_0 > 0.0) { - $var9_0 = ($var9 * 0.30000001192092896 + $var8 * 0.5899999737739563 + $var3 * 0.10999999940395355) * 0.20000000298023224; - $var10 = 1.0 - $var8_0 * 0.949999988079071; - $var9 = $var9 * $var10; - $par1 = $var9_0 * (1.0 - $var10); - $var9 = $var9 + $par1; - $var8 = $var8 * $var10 + $par1; - $var3 = $var3 * $var10 + $par1; - } - return nms_Vec3Pool_getVecFromPool($this.$vecPool, $var9, $var8, $var3); -} -function nms_World_getFogColor($this, $par1) { - var $var2; - $var2 = $this.$provider.$calculateCelestialAngle($this.$worldInfo.$worldTime, $par1); - return $this.$provider.$getFogColor0($var2, $par1); -} -function nms_World_getPrecipitationHeight($this, $par1, $par2) { - var var$3, var$4; - var$3 = $par1 >> 4; - var$4 = $par2 >> 4; - return nms_Chunk_getPrecipitationHeight(nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$3, var$4), $par1 & 15, $par2 & 15); -} -function nms_World_getStarBrightness($this, $par1) { - var $var3; - $par1 = $this.$provider.$calculateCelestialAngle($this.$worldInfo.$worldTime, $par1) * 3.1415927410125732 * 2.0; - $var3 = 1.0 - (nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.0 + 0.25); - if ($var3 < 0.0) - $var3 = 0.0; - if ($var3 > 1.0) - $var3 = 1.0; - return $var3 * $var3 * 0.5; -} -function nms_World_scheduleBlockUpdate($this, $par1, $par2, $par3, $par4, $par5) { - return; -} -function nms_World_func_82740_a($this, $par1, $par2, $par3, $par4, $par5, $par6) { - return; -} -function nms_World_updateEntities($this) { - var $var1, $var14, $var2, $var3, $var13, $var9, $var11, $var10, $var12, $var15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var15 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var13 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var14 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Profiler_startSection($this.$theProfiler, $rt_s(634)); - nms_Profiler_startSection($this.$theProfiler, $rt_s(658)); - $var1 = 0; - if ($var1 < $this.$weatherEffects.$size0) { - $var14 = $this.$weatherEffects; - ju_ArrayList_checkIndex($var14, $var1); - $var2 = $var14.$array1.data[$var1]; - $var2.$ticksExisted = $var2.$ticksExisted + 1 | 0; - $ptr = 1; - continue main; - } - $var14 = $this.$theProfiler; - nms_Profiler_endSection($var14); - nms_Profiler_startSection($var14, $rt_s(659)); - ju_AbstractCollection_removeAll($this.$loadedEntityList, $this.$unloadedEntityList); - $var1 = 0; - while ($var1 < ju_ArrayList_size($this.$unloadedEntityList)) { - $var14 = $this.$unloadedEntityList; - ju_ArrayList_checkIndex($var14, $var1); - $var2 = $var14.$array1.data[$var1]; - $var3 = $var2.$chunkCoordX; - $var13 = $var2.$chunkCoordZ; - if ($var2.$addedToChunk && nms_World_chunkExists($this, $var3, $var13)) - nms_World_getChunkFromChunkCoords($this, $var3, $var13).$removeEntity($var2); - $var1 = $var1 + 1 | 0; - } - $var1 = 0; - while ($var1 < ju_ArrayList_size($this.$unloadedEntityList)) { - nms_WorldClient_releaseEntitySkin($this, ju_ArrayList_get($this.$unloadedEntityList, $var1)); - $var1 = $var1 + 1 | 0; - } - ju_ArrayList_clear($this.$unloadedEntityList); - nms_Profiler_endStartSection($this.$theProfiler, $rt_s(660)); - $var1 = 0; - a: while (true) { - if ($var1 >= ju_ArrayList_size($this.$loadedEntityList)) { - nms_Profiler_endStartSection($this.$theProfiler, $rt_s(661)); - $this.$scanningTileEntities = 1; - $var14 = ju_AbstractList_iterator($this.$loadedTileEntityList); - while (ju_AbstractList$1_hasNext($var14)) { - $var9 = ju_AbstractList$1_next($var14); - if (!nms_TileEntity_isInvalid($var9) && nms_TileEntity_func_70309_m($var9) && nms_World_blockExists($this, $var9.$xCoord0, $var9.$yCoord0, $var9.$zCoord0)) { - $ptr = 3; - continue main; - } - if (nms_TileEntity_isInvalid($var9)) { - ju_AbstractList$1_remove($var14); - if (nms_World_chunkExists($this, $var9.$xCoord0 >> 4, $var9.$zCoord0 >> 4)) { - $var11 = nms_World_getChunkFromChunkCoords($this, $var9.$xCoord0 >> 4, $var9.$zCoord0 >> 4); - if ($var11 !== null) - $var11.$removeChunkBlockTileEntity($var9.$xCoord0 & 15, $var9.$yCoord0, $var9.$zCoord0 & 15); - } - } - } - $this.$scanningTileEntities = 0; - if (!ju_AbstractCollection_isEmpty($this.$entityRemoval)) { - ju_AbstractCollection_removeAll($this.$loadedTileEntityList, $this.$entityRemoval); - ju_ArrayList_clear($this.$entityRemoval); - } - nms_Profiler_endStartSection($this.$theProfiler, $rt_s(662)); - if (!ju_AbstractCollection_isEmpty($this.$addedTileEntityList)) { - $var10 = 0; - while ($var10 < ju_ArrayList_size($this.$addedTileEntityList)) { - $var12 = ju_ArrayList_get($this.$addedTileEntityList, $var10); - if (!nms_TileEntity_isInvalid($var12)) { - if (!ju_AbstractCollection_contains($this.$loadedTileEntityList, $var12)) - ju_ArrayList_add($this.$loadedTileEntityList, $var12); - if (nms_World_chunkExists($this, $var12.$xCoord0 >> 4, $var12.$zCoord0 >> 4)) { - $var15 = nms_World_getChunkFromChunkCoords($this, $var12.$xCoord0 >> 4, $var12.$zCoord0 >> 4); - if ($var15 !== null) - $var15.$setChunkBlockTileEntity($var12.$xCoord0 & 15, $var12.$yCoord0, $var12.$zCoord0 & 15, $var12); - } - nms_World_markBlockForUpdate($this, $var12.$xCoord0, $var12.$yCoord0, $var12.$zCoord0); - } - $var10 = $var10 + 1 | 0; - } - ju_ArrayList_clear($this.$addedTileEntityList); - } - nms_Profiler_endSection($this.$theProfiler); - nms_Profiler_endSection($this.$theProfiler); - return; - } - b: { - $var2 = ju_ArrayList_get($this.$loadedEntityList, $var1); - if ($var2.$ridingEntity !== null) { - if (!$var2.$ridingEntity.$isDead && $var2.$ridingEntity.$riddenByEntity === $var2) - break b; - $var2.$ridingEntity.$riddenByEntity = null; - $var2.$ridingEntity = null; - } - nms_Profiler_startSection($this.$theProfiler, $rt_s(295)); - if (!$var2.$isDead) - break a; - nms_Profiler_endSection($this.$theProfiler); - nms_Profiler_startSection($this.$theProfiler, $rt_s(659)); - if ($var2.$isDead) { - $var3 = $var2.$chunkCoordX; - $var13 = $var2.$chunkCoordZ; - if ($var2.$addedToChunk && nms_World_chunkExists($this, $var3, $var13)) - nms_World_getChunkFromChunkCoords($this, $var3, $var13).$removeEntity($var2); - $var14 = $this.$loadedEntityList; - $var10 = $var1 + (-1) | 0; - ju_ArrayList_remove($var14, $var1); - nms_WorldClient_releaseEntitySkin($this, $var2); - $var1 = $var10; - } - nms_Profiler_endSection($this.$theProfiler); - } - $var1 = $var1 + 1 | 0; - } - $ptr = 2; - continue main; - case 1: - $var2.$onUpdate(); - if ($rt_suspending()) { - break main; - } - if (!$var2.$isDead) - $var10 = $var1; - else { - $var14 = $this.$weatherEffects; - $var10 = $var1 + (-1) | 0; - ju_ArrayList_remove($var14, $var1); - } - $var1 = $var10 + 1 | 0; - if ($var1 < $this.$weatherEffects.$size0) { - $var14 = $this.$weatherEffects; - ju_ArrayList_checkIndex($var14, $var1); - $var2 = $var14.$array1.data[$var1]; - $var2.$ticksExisted = $var2.$ticksExisted + 1 | 0; - continue main; - } - $var14 = $this.$theProfiler; - nms_Profiler_endSection($var14); - nms_Profiler_startSection($var14, $rt_s(659)); - ju_AbstractCollection_removeAll($this.$loadedEntityList, $this.$unloadedEntityList); - $var1 = 0; - while ($var1 < ju_ArrayList_size($this.$unloadedEntityList)) { - $var14 = $this.$unloadedEntityList; - ju_ArrayList_checkIndex($var14, $var1); - $var2 = $var14.$array1.data[$var1]; - $var3 = $var2.$chunkCoordX; - $var13 = $var2.$chunkCoordZ; - if ($var2.$addedToChunk && nms_World_chunkExists($this, $var3, $var13)) - nms_World_getChunkFromChunkCoords($this, $var3, $var13).$removeEntity($var2); - $var1 = $var1 + 1 | 0; - } - $var1 = 0; - while ($var1 < ju_ArrayList_size($this.$unloadedEntityList)) { - nms_WorldClient_releaseEntitySkin($this, ju_ArrayList_get($this.$unloadedEntityList, $var1)); - $var1 = $var1 + 1 | 0; - } - ju_ArrayList_clear($this.$unloadedEntityList); - nms_Profiler_endStartSection($this.$theProfiler, $rt_s(660)); - $var1 = 0; - b: while (true) { - if ($var1 >= ju_ArrayList_size($this.$loadedEntityList)) { - nms_Profiler_endStartSection($this.$theProfiler, $rt_s(661)); - $this.$scanningTileEntities = 1; - $var14 = ju_AbstractList_iterator($this.$loadedTileEntityList); - while (ju_AbstractList$1_hasNext($var14)) { - $var9 = ju_AbstractList$1_next($var14); - if (!nms_TileEntity_isInvalid($var9) && nms_TileEntity_func_70309_m($var9) && nms_World_blockExists($this, $var9.$xCoord0, $var9.$yCoord0, $var9.$zCoord0)) { - $ptr = 3; - continue main; - } - if (nms_TileEntity_isInvalid($var9)) { - ju_AbstractList$1_remove($var14); - if (nms_World_chunkExists($this, $var9.$xCoord0 >> 4, $var9.$zCoord0 >> 4)) { - $var11 = nms_World_getChunkFromChunkCoords($this, $var9.$xCoord0 >> 4, $var9.$zCoord0 >> 4); - if ($var11 !== null) - $var11.$removeChunkBlockTileEntity($var9.$xCoord0 & 15, $var9.$yCoord0, $var9.$zCoord0 & 15); - } - } - } - $this.$scanningTileEntities = 0; - if (!ju_AbstractCollection_isEmpty($this.$entityRemoval)) { - ju_AbstractCollection_removeAll($this.$loadedTileEntityList, $this.$entityRemoval); - ju_ArrayList_clear($this.$entityRemoval); - } - nms_Profiler_endStartSection($this.$theProfiler, $rt_s(662)); - if (!ju_AbstractCollection_isEmpty($this.$addedTileEntityList)) { - $var10 = 0; - while ($var10 < ju_ArrayList_size($this.$addedTileEntityList)) { - $var12 = ju_ArrayList_get($this.$addedTileEntityList, $var10); - if (!nms_TileEntity_isInvalid($var12)) { - if (!ju_AbstractCollection_contains($this.$loadedTileEntityList, $var12)) - ju_ArrayList_add($this.$loadedTileEntityList, $var12); - if (nms_World_chunkExists($this, $var12.$xCoord0 >> 4, $var12.$zCoord0 >> 4)) { - $var15 = nms_World_getChunkFromChunkCoords($this, $var12.$xCoord0 >> 4, $var12.$zCoord0 >> 4); - if ($var15 !== null) - $var15.$setChunkBlockTileEntity($var12.$xCoord0 & 15, $var12.$yCoord0, $var12.$zCoord0 & 15, $var12); - } - nms_World_markBlockForUpdate($this, $var12.$xCoord0, $var12.$yCoord0, $var12.$zCoord0); - } - $var10 = $var10 + 1 | 0; - } - ju_ArrayList_clear($this.$addedTileEntityList); - } - nms_Profiler_endSection($this.$theProfiler); - nms_Profiler_endSection($this.$theProfiler); - return; - } - c: { - $var2 = ju_ArrayList_get($this.$loadedEntityList, $var1); - if ($var2.$ridingEntity !== null) { - if (!$var2.$ridingEntity.$isDead && $var2.$ridingEntity.$riddenByEntity === $var2) - break c; - $var2.$ridingEntity.$riddenByEntity = null; - $var2.$ridingEntity = null; - } - nms_Profiler_startSection($this.$theProfiler, $rt_s(295)); - if (!$var2.$isDead) - break b; - nms_Profiler_endSection($this.$theProfiler); - nms_Profiler_startSection($this.$theProfiler, $rt_s(659)); - if ($var2.$isDead) { - $var3 = $var2.$chunkCoordX; - $var13 = $var2.$chunkCoordZ; - if ($var2.$addedToChunk && nms_World_chunkExists($this, $var3, $var13)) - nms_World_getChunkFromChunkCoords($this, $var3, $var13).$removeEntity($var2); - $var14 = $this.$loadedEntityList; - $var10 = $var1 + (-1) | 0; - ju_ArrayList_remove($var14, $var1); - nms_WorldClient_releaseEntitySkin($this, $var2); - $var1 = $var10; - } - nms_Profiler_endSection($this.$theProfiler); - } - $var1 = $var1 + 1 | 0; - } - $ptr = 2; - case 2: - nms_World_updateEntity($this, $var2); - if ($rt_suspending()) { - break main; - } - while (true) { - nms_Profiler_endSection($this.$theProfiler); - nms_Profiler_startSection($this.$theProfiler, $rt_s(659)); - if ($var2.$isDead) { - $var3 = $var2.$chunkCoordX; - $var13 = $var2.$chunkCoordZ; - if ($var2.$addedToChunk && nms_World_chunkExists($this, $var3, $var13)) - nms_World_getChunkFromChunkCoords($this, $var3, $var13).$removeEntity($var2); - $var14 = $this.$loadedEntityList; - $var10 = $var1 + (-1) | 0; - ju_ArrayList_remove($var14, $var1); - nms_WorldClient_releaseEntitySkin($this, $var2); - $var1 = $var10; - } - nms_Profiler_endSection($this.$theProfiler); - a: { - while (true) { - $var1 = $var1 + 1 | 0; - if ($var1 >= ju_ArrayList_size($this.$loadedEntityList)) { - nms_Profiler_endStartSection($this.$theProfiler, $rt_s(661)); - $this.$scanningTileEntities = 1; - $var14 = ju_AbstractList_iterator($this.$loadedTileEntityList); - while (ju_AbstractList$1_hasNext($var14)) { - $var9 = ju_AbstractList$1_next($var14); - if (!nms_TileEntity_isInvalid($var9) && nms_TileEntity_func_70309_m($var9) && nms_World_blockExists($this, $var9.$xCoord0, $var9.$yCoord0, $var9.$zCoord0)) { - $ptr = 3; - continue main; - } - if (nms_TileEntity_isInvalid($var9)) { - ju_AbstractList$1_remove($var14); - if (nms_World_chunkExists($this, $var9.$xCoord0 >> 4, $var9.$zCoord0 >> 4)) { - $var11 = nms_World_getChunkFromChunkCoords($this, $var9.$xCoord0 >> 4, $var9.$zCoord0 >> 4); - if ($var11 !== null) - $var11.$removeChunkBlockTileEntity($var9.$xCoord0 & 15, $var9.$yCoord0, $var9.$zCoord0 & 15); - } - } - } - $this.$scanningTileEntities = 0; - if (!ju_AbstractCollection_isEmpty($this.$entityRemoval)) { - ju_AbstractCollection_removeAll($this.$loadedTileEntityList, $this.$entityRemoval); - ju_ArrayList_clear($this.$entityRemoval); - } - nms_Profiler_endStartSection($this.$theProfiler, $rt_s(662)); - if (!ju_AbstractCollection_isEmpty($this.$addedTileEntityList)) { - $var10 = 0; - while ($var10 < ju_ArrayList_size($this.$addedTileEntityList)) { - $var12 = ju_ArrayList_get($this.$addedTileEntityList, $var10); - if (!nms_TileEntity_isInvalid($var12)) { - if (!ju_AbstractCollection_contains($this.$loadedTileEntityList, $var12)) - ju_ArrayList_add($this.$loadedTileEntityList, $var12); - if (nms_World_chunkExists($this, $var12.$xCoord0 >> 4, $var12.$zCoord0 >> 4)) { - $var15 = nms_World_getChunkFromChunkCoords($this, $var12.$xCoord0 >> 4, $var12.$zCoord0 >> 4); - if ($var15 !== null) - $var15.$setChunkBlockTileEntity($var12.$xCoord0 & 15, $var12.$yCoord0, $var12.$zCoord0 & 15, $var12); - } - nms_World_markBlockForUpdate($this, $var12.$xCoord0, $var12.$yCoord0, $var12.$zCoord0); - } - $var10 = $var10 + 1 | 0; - } - ju_ArrayList_clear($this.$addedTileEntityList); - } - nms_Profiler_endSection($this.$theProfiler); - nms_Profiler_endSection($this.$theProfiler); - return; - } - $var2 = ju_ArrayList_get($this.$loadedEntityList, $var1); - if ($var2.$ridingEntity === null) - break a; - if ($var2.$ridingEntity.$isDead) - break; - if ($var2.$ridingEntity.$riddenByEntity !== $var2) - break; - } - $var2.$ridingEntity.$riddenByEntity = null; - $var2.$ridingEntity = null; - } - nms_Profiler_startSection($this.$theProfiler, $rt_s(295)); - if ($var2.$isDead) - continue; - else - break; - } - continue main; - case 3: - $var9.$updateEntity0(); - if ($rt_suspending()) { - break main; - } - while (true) { - if (nms_TileEntity_isInvalid($var9)) { - ju_AbstractList$1_remove($var14); - if (nms_World_chunkExists($this, $var9.$xCoord0 >> 4, $var9.$zCoord0 >> 4)) { - $var11 = nms_World_getChunkFromChunkCoords($this, $var9.$xCoord0 >> 4, $var9.$zCoord0 >> 4); - if ($var11 !== null) - $var11.$removeChunkBlockTileEntity($var9.$xCoord0 & 15, $var9.$yCoord0, $var9.$zCoord0 & 15); - } - } - if (!ju_AbstractList$1_hasNext($var14)) - break; - $var9 = ju_AbstractList$1_next($var14); - if (nms_TileEntity_isInvalid($var9)) - continue; - if (!nms_TileEntity_func_70309_m($var9)) - continue; - if (!nms_World_blockExists($this, $var9.$xCoord0, $var9.$yCoord0, $var9.$zCoord0)) - continue; - else { - continue main; - } - } - $this.$scanningTileEntities = 0; - if (!ju_AbstractCollection_isEmpty($this.$entityRemoval)) { - ju_AbstractCollection_removeAll($this.$loadedTileEntityList, $this.$entityRemoval); - ju_ArrayList_clear($this.$entityRemoval); - } - nms_Profiler_endStartSection($this.$theProfiler, $rt_s(662)); - if (!ju_AbstractCollection_isEmpty($this.$addedTileEntityList)) { - $var10 = 0; - while ($var10 < ju_ArrayList_size($this.$addedTileEntityList)) { - $var12 = ju_ArrayList_get($this.$addedTileEntityList, $var10); - if (!nms_TileEntity_isInvalid($var12)) { - if (!ju_AbstractCollection_contains($this.$loadedTileEntityList, $var12)) - ju_ArrayList_add($this.$loadedTileEntityList, $var12); - if (nms_World_chunkExists($this, $var12.$xCoord0 >> 4, $var12.$zCoord0 >> 4)) { - $var15 = nms_World_getChunkFromChunkCoords($this, $var12.$xCoord0 >> 4, $var12.$zCoord0 >> 4); - if ($var15 !== null) - $var15.$setChunkBlockTileEntity($var12.$xCoord0 & 15, $var12.$yCoord0, $var12.$zCoord0 & 15, $var12); - } - nms_World_markBlockForUpdate($this, $var12.$xCoord0, $var12.$yCoord0, $var12.$zCoord0); - } - $var10 = $var10 + 1 | 0; - } - ju_ArrayList_clear($this.$addedTileEntityList); - } - nms_Profiler_endSection($this.$theProfiler); - nms_Profiler_endSection($this.$theProfiler); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var14, $var2, $var3, $var13, $var9, $var11, $var10, $var12, $var15, $ptr); -} -function nms_World_updateEntity($this, $par1Entity) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = 1; - $ptr = 1; - case 1: - nms_World_updateEntityWithOptionalForce($this, $par1Entity, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, var$2, $ptr); -} -function nms_World_updateEntityWithOptionalForce($this, $par1Entity, $par2) { - var var$3, $var3, $var4, var$6, $var6, $var7, $var8, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();var$6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$3 = $par1Entity.$posX; - $var3 = var$3 | 0; - if (var$3 < $var3) - $var3 = $var3 - 1 | 0; - var$3 = $par1Entity.$posZ; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - if (!($par2 && !nms_World_checkChunksExist($this, $var3 - 32 | 0, 0, $var4 - 32 | 0, $var3 + 32 | 0, 0, $var4 + 32 | 0))) { - $par1Entity.$lastTickPosX = $par1Entity.$posX; - $par1Entity.$lastTickPosY = $par1Entity.$posY; - $par1Entity.$lastTickPosZ = $par1Entity.$posZ; - $par1Entity.$prevRotationYaw = $par1Entity.$rotationYaw; - $par1Entity.$prevRotationPitch = $par1Entity.$rotationPitch; - if ($par2 && $par1Entity.$addedToChunk) { - if ($par1Entity.$ridingEntity !== null) { - $ptr = 2; - continue main; - } - $par1Entity.$ticksExisted = $par1Entity.$ticksExisted + 1 | 0; - $ptr = 1; - continue main; - } - nms_Profiler_startSection($this.$theProfiler, $rt_s(663)); - if (!(!(isNaN($par1Entity.$posX) ? 1 : 0) && !(!isFinite($par1Entity.$posX) ? 1 : 0))) - $par1Entity.$posX = $par1Entity.$lastTickPosX; - if (!(!(isNaN($par1Entity.$posY) ? 1 : 0) && !(!isFinite($par1Entity.$posY) ? 1 : 0))) - $par1Entity.$posY = $par1Entity.$lastTickPosY; - if (!(!(isNaN($par1Entity.$posZ) ? 1 : 0) && !(!isFinite($par1Entity.$posZ) ? 1 : 0))) - $par1Entity.$posZ = $par1Entity.$lastTickPosZ; - if (!(!(isNaN($par1Entity.$rotationPitch) ? 1 : 0) && !(!isFinite($par1Entity.$rotationPitch) ? 1 : 0))) - $par1Entity.$rotationPitch = $par1Entity.$prevRotationPitch; - if (!(!(isNaN($par1Entity.$rotationYaw) ? 1 : 0) && !(!isFinite($par1Entity.$rotationYaw) ? 1 : 0))) - $par1Entity.$rotationYaw = $par1Entity.$prevRotationYaw; - var$6 = $par1Entity.$posX / 16.0; - $var6 = var$6 | 0; - if (var$6 < $var6) - $var6 = $var6 - 1 | 0; - var$6 = $par1Entity.$posY / 16.0; - $var7 = var$6 | 0; - if (var$6 < $var7) - $var7 = $var7 - 1 | 0; - var$6 = $par1Entity.$posZ / 16.0; - $var8 = var$6 | 0; - if (var$6 < $var8) - $var8 = $var8 - 1 | 0; - if (!($par1Entity.$addedToChunk && $par1Entity.$chunkCoordX == $var6 && $par1Entity.$chunkCoordY == $var7 && $par1Entity.$chunkCoordZ == $var8)) { - if ($par1Entity.$addedToChunk) { - var$10 = $par1Entity.$chunkCoordX; - $var7 = $par1Entity.$chunkCoordZ; - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$10, $var7).$removeEntityAtIndex($par1Entity, $par1Entity.$chunkCoordY); - } - $par1Entity.$addedToChunk = 1; - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var6, $var8).$addEntity($par1Entity); - } - nms_Profiler_endSection($this.$theProfiler); - if ($par2 && $par1Entity.$addedToChunk && $par1Entity.$riddenByEntity !== null) { - if (!$par1Entity.$riddenByEntity.$isDead && $par1Entity.$riddenByEntity.$ridingEntity === $par1Entity) { - $par1Entity = $par1Entity.$riddenByEntity; - $par2 = 1; - $ptr = 3; - continue main; - } - $par1Entity.$riddenByEntity.$ridingEntity = null; - $par1Entity.$riddenByEntity = null; - } - } - return; - case 1: - $par1Entity.$onUpdate(); - if ($rt_suspending()) { - break main; - } - nms_Profiler_startSection($this.$theProfiler, $rt_s(663)); - if (!(!(isNaN($par1Entity.$posX) ? 1 : 0) && !(!isFinite($par1Entity.$posX) ? 1 : 0))) - $par1Entity.$posX = $par1Entity.$lastTickPosX; - if (!(!(isNaN($par1Entity.$posY) ? 1 : 0) && !(!isFinite($par1Entity.$posY) ? 1 : 0))) - $par1Entity.$posY = $par1Entity.$lastTickPosY; - if (!(!(isNaN($par1Entity.$posZ) ? 1 : 0) && !(!isFinite($par1Entity.$posZ) ? 1 : 0))) - $par1Entity.$posZ = $par1Entity.$lastTickPosZ; - if (!(!(isNaN($par1Entity.$rotationPitch) ? 1 : 0) && !(!isFinite($par1Entity.$rotationPitch) ? 1 : 0))) - $par1Entity.$rotationPitch = $par1Entity.$prevRotationPitch; - if (!(!(isNaN($par1Entity.$rotationYaw) ? 1 : 0) && !(!isFinite($par1Entity.$rotationYaw) ? 1 : 0))) - $par1Entity.$rotationYaw = $par1Entity.$prevRotationYaw; - var$6 = $par1Entity.$posX / 16.0; - $var6 = var$6 | 0; - if (var$6 < $var6) - $var6 = $var6 - 1 | 0; - var$6 = $par1Entity.$posY / 16.0; - $var7 = var$6 | 0; - if (var$6 < $var7) - $var7 = $var7 - 1 | 0; - var$6 = $par1Entity.$posZ / 16.0; - $var8 = var$6 | 0; - if (var$6 < $var8) - $var8 = $var8 - 1 | 0; - if (!($par1Entity.$addedToChunk && $par1Entity.$chunkCoordX == $var6 && $par1Entity.$chunkCoordY == $var7 && $par1Entity.$chunkCoordZ == $var8)) { - if ($par1Entity.$addedToChunk) { - var$10 = $par1Entity.$chunkCoordX; - $var7 = $par1Entity.$chunkCoordZ; - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$10, $var7).$removeEntityAtIndex($par1Entity, $par1Entity.$chunkCoordY); - } - $par1Entity.$addedToChunk = 1; - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var6, $var8).$addEntity($par1Entity); - } - nms_Profiler_endSection($this.$theProfiler); - if ($par2 && $par1Entity.$addedToChunk && $par1Entity.$riddenByEntity !== null) { - if (!$par1Entity.$riddenByEntity.$isDead && $par1Entity.$riddenByEntity.$ridingEntity === $par1Entity) { - $par1Entity = $par1Entity.$riddenByEntity; - $par2 = 1; - $ptr = 3; - continue main; - } - $par1Entity.$riddenByEntity.$ridingEntity = null; - $par1Entity.$riddenByEntity = null; - } - return; - case 2: - $par1Entity.$updateRidden(); - if ($rt_suspending()) { - break main; - } - nms_Profiler_startSection($this.$theProfiler, $rt_s(663)); - if (!(!(isNaN($par1Entity.$posX) ? 1 : 0) && !(!isFinite($par1Entity.$posX) ? 1 : 0))) - $par1Entity.$posX = $par1Entity.$lastTickPosX; - if (!(!(isNaN($par1Entity.$posY) ? 1 : 0) && !(!isFinite($par1Entity.$posY) ? 1 : 0))) - $par1Entity.$posY = $par1Entity.$lastTickPosY; - if (!(!(isNaN($par1Entity.$posZ) ? 1 : 0) && !(!isFinite($par1Entity.$posZ) ? 1 : 0))) - $par1Entity.$posZ = $par1Entity.$lastTickPosZ; - if (!(!(isNaN($par1Entity.$rotationPitch) ? 1 : 0) && !(!isFinite($par1Entity.$rotationPitch) ? 1 : 0))) - $par1Entity.$rotationPitch = $par1Entity.$prevRotationPitch; - if (!(!(isNaN($par1Entity.$rotationYaw) ? 1 : 0) && !(!isFinite($par1Entity.$rotationYaw) ? 1 : 0))) - $par1Entity.$rotationYaw = $par1Entity.$prevRotationYaw; - var$6 = $par1Entity.$posX / 16.0; - $var6 = var$6 | 0; - if (var$6 < $var6) - $var6 = $var6 - 1 | 0; - var$6 = $par1Entity.$posY / 16.0; - $var7 = var$6 | 0; - if (var$6 < $var7) - $var7 = $var7 - 1 | 0; - var$6 = $par1Entity.$posZ / 16.0; - $var8 = var$6 | 0; - if (var$6 < $var8) - $var8 = $var8 - 1 | 0; - if (!($par1Entity.$addedToChunk && $par1Entity.$chunkCoordX == $var6 && $par1Entity.$chunkCoordY == $var7 && $par1Entity.$chunkCoordZ == $var8)) { - if ($par1Entity.$addedToChunk) { - var$10 = $par1Entity.$chunkCoordX; - $var7 = $par1Entity.$chunkCoordZ; - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$10, $var7).$removeEntityAtIndex($par1Entity, $par1Entity.$chunkCoordY); - } - $par1Entity.$addedToChunk = 1; - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var6, $var8).$addEntity($par1Entity); - } - nms_Profiler_endSection($this.$theProfiler); - if ($par2 && $par1Entity.$addedToChunk && $par1Entity.$riddenByEntity !== null) { - if (!$par1Entity.$riddenByEntity.$isDead && $par1Entity.$riddenByEntity.$ridingEntity === $par1Entity) { - $par1Entity = $par1Entity.$riddenByEntity; - $par2 = 1; - $ptr = 3; - continue main; - } - $par1Entity.$riddenByEntity.$ridingEntity = null; - $par1Entity.$riddenByEntity = null; - } - return; - case 3: - nms_World_updateEntityWithOptionalForce($this, $par1Entity, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, var$3, $var3, $var4, var$6, $var6, $var7, $var8, var$10, $ptr); -} -function nms_World_checkNoEntityCollision($this, $par1AxisAlignedBB) { - return nms_World_checkNoEntityCollision0($this, $par1AxisAlignedBB, null); -} -function nms_World_checkNoEntityCollision0($this, $par1AxisAlignedBB, $par2Entity) { - var $var3, $var4, $var5; - $var3 = nms_World_getEntitiesWithinAABBExcludingEntity($this, null, $par1AxisAlignedBB, null); - $var4 = 0; - a: { - while ($var4 < $var3.$size0) { - if ($var4 < 0) - break a; - if ($var4 >= $var3.$size0) - break a; - $var5 = $var3.$array1.data[$var4]; - if (!$var5.$isDead && $var5.$preventEntitySpawning && $var5 !== $par2Entity) - return 0; - $var4 = $var4 + 1 | 0; - } - return 1; - } - $par1AxisAlignedBB = new jl_IndexOutOfBoundsException; - $par1AxisAlignedBB.$suppressionEnabled = 1; - $par1AxisAlignedBB.$writableStackTrace = 1; - $rt_throw($par1AxisAlignedBB); -} -function nms_World_isAnyLiquid($this, $par1AxisAlignedBB) { - var var$2, $var2, $var3, $var4, $var5, $var6, var$8, $var7, $var9, $var10, $var11; - var$2 = $par1AxisAlignedBB.$minX; - $var2 = var$2 | 0; - if (var$2 < $var2) - $var2 = $var2 - 1 | 0; - var$2 = $par1AxisAlignedBB.$maxX + 1.0; - $var3 = var$2 | 0; - if (var$2 < $var3) - $var3 = $var3 - 1 | 0; - var$2 = $par1AxisAlignedBB.$minY; - $var4 = var$2 | 0; - if (var$2 < $var4) - $var4 = $var4 - 1 | 0; - var$2 = $par1AxisAlignedBB.$maxY + 1.0; - $var5 = var$2 | 0; - if (var$2 < $var5) - $var5 = $var5 - 1 | 0; - var$2 = $par1AxisAlignedBB.$minZ; - $var6 = var$2 | 0; - if (var$2 < $var6) - $var6 = $var6 - 1 | 0; - var$8 = $par1AxisAlignedBB.$maxZ + 1.0; - $var7 = var$8 | 0; - if (var$8 < $var7) - $var7 = $var7 - 1 | 0; - if ($par1AxisAlignedBB.$minX < 0.0) - $var2 = $var2 + (-1) | 0; - if ($par1AxisAlignedBB.$minY < 0.0) - $var4 = $var4 + (-1) | 0; - if ($par1AxisAlignedBB.$minZ < 0.0) - $var6 = $var6 + (-1) | 0; - while ($var2 < $var3) { - $var9 = $var4; - while ($var9 < $var5) { - $var10 = $var6; - while ($var10 < $var7) { - nms_Block_$callClinit(); - $var11 = nms_Block_blocksList.data[nms_World_getBlockId($this, $var2, $var9, $var10)]; - if ($var11 !== null && $var11.$blockMaterial.$isLiquid()) - return 1; - $var10 = $var10 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } - return 0; -} -function nms_World_isBoundingBoxBurning($this, $par1AxisAlignedBB) { - var var$2, $var2, $var3, $var4, $var5, $var6, $var7, $var9, $var10, $var11; - var$2 = $par1AxisAlignedBB.$minX; - $var2 = var$2 | 0; - if (var$2 < $var2) - $var2 = $var2 - 1 | 0; - var$2 = $par1AxisAlignedBB.$maxX + 1.0; - $var3 = var$2 | 0; - if (var$2 < $var3) - $var3 = $var3 - 1 | 0; - var$2 = $par1AxisAlignedBB.$minY; - $var4 = var$2 | 0; - if (var$2 < $var4) - $var4 = $var4 - 1 | 0; - var$2 = $par1AxisAlignedBB.$maxY + 1.0; - $var5 = var$2 | 0; - if (var$2 < $var5) - $var5 = $var5 - 1 | 0; - var$2 = $par1AxisAlignedBB.$minZ; - $var6 = var$2 | 0; - if (var$2 < $var6) - $var6 = $var6 - 1 | 0; - var$2 = $par1AxisAlignedBB.$maxZ + 1.0; - $var7 = var$2 | 0; - if (var$2 < $var7) - $var7 = $var7 - 1 | 0; - a: { - b: { - if (nms_World_checkChunksExist($this, $var2, $var4, $var6, $var3, $var5, $var7)) - while (true) { - if ($var2 >= $var3) - break b; - $var9 = $var4; - while ($var9 < $var5) { - $var10 = $var6; - while ($var10 < $var7) { - $var11 = nms_World_getBlockId($this, $var2, $var9, $var10); - nms_Block_$callClinit(); - if ($var11 == nms_Block_fire.$blockID) - break a; - if ($var11 == nms_Block_lavaMoving.$blockID) - break a; - if ($var11 == nms_Block_lavaStill.$blockID) - break a; - $var10 = $var10 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } - } - return 0; - } - return 1; -} -function nms_World_handleMaterialAcceleration($this, $par1AxisAlignedBB, $par2Material, $par3Entity) { - var $var18, $var4, $var5, $var6, $var7, $var16, $var8, $var9, $var10, $var11, $var13, $var14, $var15, var$17, var$18; - $var18 = $par1AxisAlignedBB.$minX; - $var4 = $var18 | 0; - if ($var18 < $var4) - $var4 = $var4 - 1 | 0; - $var18 = $par1AxisAlignedBB.$maxX + 1.0; - $var5 = $var18 | 0; - if ($var18 < $var5) - $var5 = $var5 - 1 | 0; - $var18 = $par1AxisAlignedBB.$minY; - $var6 = $var18 | 0; - if ($var18 < $var6) - $var6 = $var6 - 1 | 0; - $var18 = $par1AxisAlignedBB.$maxY + 1.0; - $var7 = $var18 | 0; - if ($var18 < $var7) - $var7 = $var7 - 1 | 0; - $var16 = $par1AxisAlignedBB.$minZ; - $var8 = $var16 | 0; - if ($var16 < $var8) - $var8 = $var8 - 1 | 0; - $var16 = $par1AxisAlignedBB.$maxZ + 1.0; - $var9 = $var16 | 0; - if ($var16 < $var9) - $var9 = $var9 - 1 | 0; - if (!nms_World_checkChunksExist($this, $var4, $var6, $var8, $var5, $var7, $var9)) - return 0; - $var10 = 0; - $var11 = nms_Vec3Pool_getVecFromPool($this.$vecPool, 0.0, 0.0, 0.0); - $var18 = $var7; - while ($var4 < $var5) { - $var13 = $var6; - while ($var13 < $var7) { - $var14 = $var8; - while ($var14 < $var9) { - nms_Block_$callClinit(); - $var15 = nms_Block_blocksList.data[nms_World_getBlockId($this, $var4, $var13, $var14)]; - if ($var15 !== null && $var15.$blockMaterial === $par2Material) { - var$17 = $var13 + 1 | 0; - var$18 = nms_World_getBlockMetadata($this, $var4, $var13, $var14); - if (var$18 >= 8) - var$18 = 0; - if ($var18 >= var$17 - (var$18 + 1 | 0) / 9.0) { - $var10 = 1; - $var15.$velocityToAddToEntity($this, $var4, $var13, $var14, $par3Entity, $var11); - } - } - $var14 = $var14 + 1 | 0; - } - $var13 = $var13 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - if (nms_Vec3_lengthVector($var11) > 0.0 && $par3Entity.$func_96092_aw()) { - $par1AxisAlignedBB = nms_Vec3_normalize($var11); - $par3Entity.$motionX = $par3Entity.$motionX + $par1AxisAlignedBB.$xCoord * 0.014; - $par3Entity.$motionY = $par3Entity.$motionY + $par1AxisAlignedBB.$yCoord * 0.014; - $par3Entity.$motionZ = $par3Entity.$motionZ + $par1AxisAlignedBB.$zCoord * 0.014; - } - return $var10; -} -function nms_World_isMaterialInBB($this, $par1AxisAlignedBB, $par2Material) { - var var$3, $var3, $var4, var$6, $var5, $var6, $var7, $var8, $var10, $var11, $var12; - var$3 = $par1AxisAlignedBB.$minX; - $var3 = var$3 | 0; - if (var$3 < $var3) - $var3 = $var3 - 1 | 0; - var$3 = $par1AxisAlignedBB.$maxX + 1.0; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - var$6 = $par1AxisAlignedBB.$minY; - $var5 = var$6 | 0; - if (var$6 < $var5) - $var5 = $var5 - 1 | 0; - var$6 = $par1AxisAlignedBB.$maxY + 1.0; - $var6 = var$6 | 0; - if (var$6 < $var6) - $var6 = $var6 - 1 | 0; - var$6 = $par1AxisAlignedBB.$minZ; - $var7 = var$6 | 0; - if (var$6 < $var7) - $var7 = $var7 - 1 | 0; - var$6 = $par1AxisAlignedBB.$maxZ + 1.0; - $var8 = var$6 | 0; - if (var$6 < $var8) - $var8 = $var8 - 1 | 0; - while ($var3 < $var4) { - $var10 = $var5; - while ($var10 < $var6) { - $var11 = $var7; - while ($var11 < $var8) { - nms_Block_$callClinit(); - $var12 = nms_Block_blocksList.data[nms_World_getBlockId($this, $var3, $var10, $var11)]; - if ($var12 !== null && $var12.$blockMaterial === $par2Material) - return 1; - $var11 = $var11 + 1 | 0; - } - $var10 = $var10 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - return 0; -} -function nms_World_isAABBInMaterial($this, $par1AxisAlignedBB, $par2Material) { - var $var14, $var3, $var4, $var5, $var6, var$8, $var7, $var8, $var10, $var11, $var12, $var13; - $var14 = $par1AxisAlignedBB.$minX; - $var3 = $var14 | 0; - if ($var14 < $var3) - $var3 = $var3 - 1 | 0; - $var14 = $par1AxisAlignedBB.$maxX + 1.0; - $var4 = $var14 | 0; - if ($var14 < $var4) - $var4 = $var4 - 1 | 0; - $var14 = $par1AxisAlignedBB.$minY; - $var5 = $var14 | 0; - if ($var14 < $var5) - $var5 = $var5 - 1 | 0; - $var14 = $par1AxisAlignedBB.$maxY + 1.0; - $var6 = $var14 | 0; - if ($var14 < $var6) - $var6 = $var6 - 1 | 0; - var$8 = $par1AxisAlignedBB.$minZ; - $var7 = var$8 | 0; - if (var$8 < $var7) - $var7 = $var7 - 1 | 0; - $var14 = $par1AxisAlignedBB.$maxZ + 1.0; - $var8 = $var14 | 0; - if ($var14 < $var8) - $var8 = $var8 - 1 | 0; - while ($var3 < $var4) { - $var10 = $var5; - while ($var10 < $var6) { - $var11 = $var7; - while ($var11 < $var8) { - nms_Block_$callClinit(); - $var12 = nms_Block_blocksList.data[nms_World_getBlockId($this, $var3, $var10, $var11)]; - if ($var12 !== null && $var12.$blockMaterial === $par2Material) { - $var13 = nms_World_getBlockMetadata($this, $var3, $var10, $var11); - $var14 = $var10 + 1 | 0; - if ($var13 < 8) - $var14 = $var14 - $var13 / 8.0; - if ($var14 >= $par1AxisAlignedBB.$minY) - return 1; - } - $var11 = $var11 + 1 | 0; - } - $var10 = $var10 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - return 0; -} -function nms_World_createExplosion($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = nms_Explosion__init_($this, $par1Entity, $par2, $par4, $par6, $par8); - var$7.$isFlaming = 0; - var$7.$isSmoking = $par9; - $ptr = 1; - case 1: - nms_Explosion_doExplosionA(var$7); - if ($rt_suspending()) { - break main; - } - $par9 = 1; - $ptr = 2; - case 2: - nms_Explosion_doExplosionB(var$7, $par9); - if ($rt_suspending()) { - break main; - } - return var$7; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, var$7, $ptr); -} -function nms_World_newExplosion($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $par10) { - var $var11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var11 = nms_Explosion__init_($this, $par1Entity, $par2, $par4, $par6, $par8); - $var11.$isFlaming = $par9; - $var11.$isSmoking = $par10; - $ptr = 1; - case 1: - nms_Explosion_doExplosionA($var11); - if ($rt_suspending()) { - break main; - } - $par9 = 1; - $ptr = 2; - case 2: - nms_Explosion_doExplosionB($var11, $par9); - if ($rt_suspending()) { - break main; - } - return $var11; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $par10, $var11, $ptr); -} -function nms_World_getBlockDensity($this, $par1Vec3, $par2AxisAlignedBB) { - var $var3, $var5, $var7, $var9, $var10, $var11, $var12, $var13, $var14, $var16, $var18, var$14, var$15; - $var3 = 1.0 / (($par2AxisAlignedBB.$maxX - $par2AxisAlignedBB.$minX) * 2.0 + 1.0); - $var5 = 1.0 / (($par2AxisAlignedBB.$maxY - $par2AxisAlignedBB.$minY) * 2.0 + 1.0); - $var7 = 1.0 / (($par2AxisAlignedBB.$maxZ - $par2AxisAlignedBB.$minZ) * 2.0 + 1.0); - $var9 = 0; - $var10 = 0; - $var11 = 0.0; - while ($var11 <= 1.0) { - $var12 = 0.0; - while ($var12 <= 1.0) { - $var13 = 0.0; - while ($var13 <= 1.0) { - $var14 = $par2AxisAlignedBB.$minX + ($par2AxisAlignedBB.$maxX - $par2AxisAlignedBB.$minX) * $var11; - $var16 = $par2AxisAlignedBB.$minY + ($par2AxisAlignedBB.$maxY - $par2AxisAlignedBB.$minY) * $var12; - $var18 = $par2AxisAlignedBB.$minZ; - var$14 = $par2AxisAlignedBB.$maxZ - $par2AxisAlignedBB.$minZ; - var$15 = $var13; - $var18 = $var18 + var$14 * var$15; - if (nms_World_rayTraceBlocks_do_do($this, nms_Vec3Pool_getVecFromPool($this.$vecPool, $var14, $var16, $var18), $par1Vec3, 0, 0) === null) - $var9 = $var9 + 1 | 0; - $var10 = $var10 + 1 | 0; - $var13 = var$15 + $var7; - } - $var12 = $var12 + $var5; - } - $var11 = $var11 + $var3; - } - return $var9 / $var10; -} -function nms_World_extinguishFire($this, $par1EntityPlayer, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par5) - $par3 = $par3 + (-1) | 0; - if ($par5 == 1) - $par3 = $par3 + 1 | 0; - if ($par5 == 2) - $par4 = $par4 + (-1) | 0; - if ($par5 == 3) - $par4 = $par4 + 1 | 0; - if ($par5 == 4) - $par2 = $par2 + (-1) | 0; - if ($par5 == 5) - $par2 = $par2 + 1 | 0; - $par5 = nms_World_getBlockId($this, $par2, $par3, $par4); - nms_Block_$callClinit(); - if ($par5 != nms_Block_fire.$blockID) - return 0; - $par5 = 1004; - var$6 = 0; - $ptr = 1; - case 1: - nms_World_playAuxSFXAtEntity($this, $par1EntityPlayer, $par5, $par2, $par3, $par4, var$6); - if ($rt_suspending()) { - break main; - } - $par5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 2; - case 2: - nms_World_setBlock($this, $par2, $par3, $par4, $par5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_World_getDebugLoadedEntities($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(664)); - var$2 = $this.$loadedEntityList.$size0; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_World_getProviderName($this) { - return nms_ChunkProviderClient_makeString($this.$chunkProvider); -} -function nms_World_getBlockTileEntity($this, $par1, $par2, $par3) { - var $var4, $var6, $var5, $var7, $var5_0, $var6_0; - if ($par2 >= 0 && $par2 < 256) { - a: { - $var4 = null; - if (!$this.$scanningTileEntities) - $var6 = $var4; - else { - $var5 = 0; - while (true) { - if ($var5 >= $this.$addedTileEntityList.$size0) { - $var6 = $var4; - break a; - } - $var7 = $this.$addedTileEntityList; - if ($var5 < 0) - break; - if ($var5 >= $var7.$size0) - break; - $var6 = $var7.$array1.data[$var5]; - if (!$var6.$tileEntityInvalid && $var6.$xCoord0 == $par1 && $var6.$yCoord0 == $par2 && $var6.$zCoord0 == $par3) - break a; - $var5 = $var5 + 1 | 0; - } - $var7 = new jl_IndexOutOfBoundsException; - $var7.$suppressionEnabled = 1; - $var7.$writableStackTrace = 1; - $rt_throw($var7); - } - } - if ($var6 === null) { - $var5 = $par1 >> 4; - $var5_0 = $par3 >> 4; - $var7 = nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var5, $var5_0); - if ($var7 !== null) - $var6 = $var7.$getChunkBlockTileEntity($par1 & 15, $par2, $par3 & 15); - } - b: { - c: { - if ($var6 !== null) - $var6_0 = $var6; - else { - $var5_0 = 0; - while (true) { - if ($var5_0 >= $this.$addedTileEntityList.$size0) { - $var6_0 = $var6; - break c; - } - $var7 = $this.$addedTileEntityList; - if ($var5_0 < 0) - break b; - if ($var5_0 >= $var7.$size0) - break b; - $var6_0 = $var7.$array1.data[$var5_0]; - if (!$var6_0.$tileEntityInvalid && $var6_0.$xCoord0 == $par1 && $var6_0.$yCoord0 == $par2 && $var6_0.$zCoord0 == $par3) - break; - $var5_0 = $var5_0 + 1 | 0; - } - } - } - return $var6_0; - } - $var7 = new jl_IndexOutOfBoundsException; - $var7.$suppressionEnabled = 1; - $var7.$writableStackTrace = 1; - $rt_throw($var7); - } - return null; -} -function nms_World_setBlockTileEntity($this, $par1, $par2, $par3, $par4TileEntity) { - var var$5, var$6, $var7, $var5, $var6; - if ($par4TileEntity !== null && !$par4TileEntity.$tileEntityInvalid) { - if (!$this.$scanningTileEntities) { - ju_ArrayList_add($this.$loadedTileEntityList, $par4TileEntity); - var$5 = $par1 >> 4; - var$6 = $par3 >> 4; - $var7 = nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$5, var$6); - if ($var7 !== null) - $var7.$setChunkBlockTileEntity($par1 & 15, $par2, $par3 & 15, $par4TileEntity); - } else { - $par4TileEntity.$xCoord0 = $par1; - $par4TileEntity.$yCoord0 = $par2; - $par4TileEntity.$zCoord0 = $par3; - $var7 = $this.$addedTileEntityList; - $var5 = new ju_AbstractList$1; - $var5.$this$0 = $var7; - $var5.$modCount = $var5.$this$0.$modCount0; - $var5.$size1 = $var5.$this$0.$size2(); - $var5.$removeIndex = (-1); - while ($var5.$index >= $var5.$size1 ? 0 : 1) { - $var6 = ju_AbstractList$1_next($var5); - if ($var6.$xCoord0 == $par1 && $var6.$yCoord0 == $par2 && $var6.$zCoord0 == $par3) { - $var6.$invalidate(); - ju_AbstractList$1_remove($var5); - } - } - ju_ArrayList_add($this.$addedTileEntityList, $par4TileEntity); - } - } -} -function nms_World_removeBlockTileEntity($this, $par1, $par2, $par3) { - var $var4, $var5, var$6, var$7; - $var4 = nms_World_getBlockTileEntity($this, $par1, $par2, $par3); - if ($var4 !== null && $this.$scanningTileEntities) { - $var4.$invalidate(); - $var5 = $this.$addedTileEntityList; - $par1 = ju_AbstractList_indexOf($var5, $var4); - if ($par1 >= 0) - ju_ArrayList_remove($var5, $par1); - } else { - if ($var4 !== null) { - $var5 = $this.$addedTileEntityList; - var$6 = ju_AbstractList_indexOf($var5, $var4); - if (var$6 >= 0) - ju_ArrayList_remove($var5, var$6); - $var5 = $this.$loadedTileEntityList; - var$6 = ju_AbstractList_indexOf($var5, $var4); - if (var$6 >= 0) - ju_ArrayList_remove($var5, var$6); - } - var$6 = $par1 >> 4; - var$7 = $par3 >> 4; - $var5 = nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$6, var$7); - if ($var5 !== null) - $var5.$removeChunkBlockTileEntity($par1 & 15, $par2, $par3 & 15); - } -} -function nms_World_markTileEntityForDespawn($this, $par1TileEntity) { - ju_ArrayList_add($this.$entityRemoval, $par1TileEntity); -} -function nms_World_isBlockOpaqueCube($this, $par1, $par2, $par3) { - var $var4; - nms_Block_$callClinit(); - $var4 = nms_Block_blocksList.data[nms_World_getBlockId($this, $par1, $par2, $par3)]; - return $var4 !== null ? $var4.$isOpaqueCube() : 0; -} -function nms_World_isBlockNormalCube($this, $par1, $par2, $par3) { - return nms_Block_isNormalCube(nms_World_getBlockId($this, $par1, $par2, $par3)); -} -function nms_World_func_85174_u($this, $par1, $par2, $par3) { - var $var4, $var5; - $var4 = nms_World_getBlockId($this, $par1, $par2, $par3); - if ($var4) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var4] !== null) { - $var5 = nms_Block_blocksList.data[$var4].$getCollisionBoundingBoxFromPool($this, $par1, $par2, $par3); - return $var5 !== null && ($var5.$maxX - $var5.$minX + $var5.$maxY - $var5.$minY + $var5.$maxZ - $var5.$minZ) / 3.0 >= 1.0 ? 1 : 0; - } - } - return 0; -} -function nms_World_doesBlockHaveSolidTopSurface($this, $par1, $par2, $par3) { - nms_Block_$callClinit(); - return nms_World_isBlockTopFacingSurfaceSolid($this, nms_Block_blocksList.data[nms_World_getBlockId($this, $par1, $par2, $par3)], nms_World_getBlockMetadata($this, $par1, $par2, $par3)); -} -function nms_World_isBlockTopFacingSurfaceSolid($this, $par1Block, $par2) { - var var$3, var$4; - if ($par1Block === null) - $par2 = 0; - else { - var$3 = $par1Block.$blockMaterial; - var$4 = !var$3.$isTranslucent ? var$3.$blocksMovement() : 0; - $par2 = var$4 && $par1Block.$renderAsNormalBlock() ? 1 : $par1Block instanceof nms_BlockStairs ? (($par2 & 4) != 4 ? 0 : 1) : $par1Block instanceof nms_BlockHalfSlab ? (($par2 & 8) != 8 ? 0 : 1) : $par1Block instanceof nms_BlockHopper ? 1 : !($par1Block instanceof nms_BlockSnow) ? 0 : ($par2 & 7) != 7 ? 0 : 1; - } - return $par2; -} -function nms_World_isBlockNormalCubeDefault($this, $par1, $par2, $par3, $par4) { - var $var5, $var6; - if ($par1 >= (-30000000) && $par3 >= (-30000000) && $par1 < 30000000 && $par3 < 30000000) { - $var5 = nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $par1 >> 4, $par3 >> 4); - if ($var5 !== null && !$var5.$isEmpty()) { - nms_Block_$callClinit(); - $var6 = nms_Block_blocksList.data[nms_World_getBlockId($this, $par1, $par2, $par3)]; - if ($var6 === null) - $par1 = 0; - else { - $var5 = $var6.$blockMaterial; - $par1 = !$var5.$isTranslucent ? $var5.$blocksMovement() : 0; - $par1 = $par1 && $var6.$renderAsNormalBlock() ? 1 : 0; - } - return $par1; - } - return $par4; - } - return $par4; -} -function nms_World_calculateInitialSkylight($this) { - var $var1; - $var1 = nms_World_calculateSkylightSubtracted($this, 1.0); - if ($var1 != $this.$skylightSubtracted) - $this.$skylightSubtracted = $var1; -} -function nms_World_setAllowedSpawnTypes($this, $par1, $par2) { - $this.$spawnHostileMobs = $par1; - $this.$spawnPeacefulMobs = $par2; -} -function nms_World_setActivePlayerChunksAndCheckLight($this) { - var $var2, var$2, $var1, $var3, var$5, $var4, $var8, $var3_0, $var4_0, $var6, $var7, var$12; - $var2 = $this.$activeChunkSet.$backingMap; - if ($var2.$elementCount > 0) { - $var2.$elementCount = 0; - var$2 = $var2.$elementData; - ju_Arrays_fill(var$2, 0, var$2.data.length, null); - $var2.$modCount1 = $var2.$modCount1 + 1 | 0; - } - nms_Profiler_startSection($this.$theProfiler, $rt_s(665)); - $var1 = 0; - while (true) { - if ($var1 >= $this.$playerEntities.$size0) { - nms_Profiler_endSection($this.$theProfiler); - if ($this.$ambientTickCountdown > 0) - $this.$ambientTickCountdown = $this.$ambientTickCountdown - 1 | 0; - nms_Profiler_startSection($this.$theProfiler, $rt_s(666)); - if (!($this.$playerEntities.$size0 ? 0 : 1)) { - $var1 = $this.$playerEntities.$size0; - $var3 = Math.random() * $var1 | 0; - $var2 = $this.$playerEntities; - if ($var3 >= 0 && $var3 < $var2.$size0) { - $var2 = $var2.$array1.data[$var3]; - var$5 = $var2.$posX; - $var3 = var$5 | 0; - if (var$5 < $var3) - $var3 = $var3 - 1 | 0; - $var3 = ($var3 + (Math.random() * 11.0 | 0) | 0) - 5 | 0; - var$5 = $var2.$posY; - $var4 = var$5 | 0; - if (var$5 < $var4) - $var4 = $var4 - 1 | 0; - $var4 = ($var4 + (Math.random() * 11.0 | 0) | 0) - 5 | 0; - var$5 = $var2.$posZ; - $var8 = var$5 | 0; - if (var$5 < $var8) - $var8 = $var8 - 1 | 0; - $var8 = ($var8 + (Math.random() * 11.0 | 0) | 0) - 5 | 0; - if (!$this.$provider.$hasNoSky) - nms_World_updateLightByType($this, nms_EnumSkyBlock_Sky, $var3, $var4, $var8); - nms_World_updateLightByType($this, nms_EnumSkyBlock_Block, $var3, $var4, $var8); - } else { - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - } - nms_Profiler_endSection($this.$theProfiler); - return; - } - $var2 = $this.$playerEntities; - if ($var1 < 0) - break; - if ($var1 >= $var2.$size0) - break; - $var2 = $var2.$array1.data[$var1]; - var$5 = $var2.$posX / 16.0; - $var3_0 = var$5 | 0; - if (var$5 < $var3_0) - $var3_0 = $var3_0 - 1 | 0; - var$5 = $var2.$posZ / 16.0; - $var4_0 = var$5 | 0; - if (var$5 < $var4_0) - $var4_0 = $var4_0 - 1 | 0; - $var6 = (-7); - while ($var6 <= 7) { - $var7 = (-7); - while ($var7 <= 7) { - var$12 = $this.$activeChunkSet; - $var2 = new nms_ChunkCoordIntPair; - $var4 = $var6 + $var3_0 | 0; - $var8 = $var7 + $var4_0 | 0; - $var2.$chunkXPos = $var4; - $var2.$chunkZPos = $var8; - ju_HashMap_putImpl(var$12.$backingMap, $var2, var$12); - $var7 = $var7 + 1 | 0; - } - $var6 = $var6 + 1 | 0; - } - $var1 = $var1 + 1 | 0; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -} -function nms_World_moodSoundAndLightCheck($this, $par1, $par2, $par3Chunk) { - var var$4, $var4, $var5, $var6, $var7, $var8, var$10, var$11, var$12, $var9, var$14, var$15, var$16; - var$4 = $this.$theProfiler; - nms_Profiler_endSection(var$4); - nms_Profiler_startSection(var$4, $rt_s(667)); - if (!$this.$ambientTickCountdown && !$this.$isRemote) { - $this.$updateLCG = ($this.$updateLCG * 3 | 0) + 1013904223 | 0; - $var4 = $this.$updateLCG >> 2; - $var5 = $var4 & 15; - $var6 = $var4 >> 8 & 15; - $var7 = $var4 >> 16 & 127; - $var8 = $par3Chunk.$getBlockID($var5, $var7, $var6); - $var4 = $var5 + $par1 | 0; - $par2 = $var6 + $par2 | 0; - if (!$var8 && nms_World_getFullBlockLightValue($this, $var4, $var7, $par2) <= (Math.random() * 8.0 | 0) && nms_World_getSavedLightValue($this, nms_EnumSkyBlock_Sky, $var4, $var7, $par2) <= 0) { - var$10 = $var4 + 0.5; - var$11 = $var7 + 0.5; - var$12 = $par2 + 0.5; - $var9 = nms_World_getClosestPlayer($this, var$10, var$11, var$12, 8.0); - if ($var9 !== null) { - var$14 = $var9.$posX - var$10; - var$15 = $var9.$posY - var$11; - var$16 = $var9.$posZ - var$12; - if (var$14 * var$14 + var$15 * var$15 + var$16 * var$16 > 4.0) { - nms_World_playSoundEffect($this, var$10, var$11, var$12, $rt_s(668), 0.699999988079071, 0.800000011920929 + Math.random() * 0.20000000298023224); - $this.$ambientTickCountdown = (Math.random() * 12000.0 | 0) + 6000 | 0; - } - } - } - } - $var9 = $this.$theProfiler; - nms_Profiler_endSection($var9); - nms_Profiler_startSection($var9, $rt_s(657)); - nms_Chunk_enqueueRelightChecks($par3Chunk); -} -function nms_World_updateAllLightTypes($this, $par1, $par2, $par3) { - if (!$this.$provider.$hasNoSky) - nms_World_updateLightByType($this, nms_EnumSkyBlock_Sky, $par1, $par2, $par3); - nms_World_updateLightByType($this, nms_EnumSkyBlock_Block, $par1, $par2, $par3); -} -function nms_World_computeLightValue($this, $par1, $par2, $par3, $par4EnumSkyBlock) { - var $var8, $var7, $var5, $var6, $var12; - if ($par4EnumSkyBlock === nms_EnumSkyBlock_Sky) { - $var8 = $par1 >> 4; - $var7 = $par3 >> 4; - if (nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var8, $var7).$canBlockSeeTheSky($par1 & 15, $par2, $par3 & 15)) - return 15; - } - $var5 = nms_World_getBlockId($this, $par1, $par2, $par3); - if ($par4EnumSkyBlock === nms_EnumSkyBlock_Sky) - $var6 = 0; - else { - nms_Block_$callClinit(); - $var6 = nms_Block_lightValue.data[$var5]; - } - nms_Block_$callClinit(); - $var7 = nms_Block_lightOpacity.data[$var5]; - if ($var7 >= 15 && nms_Block_lightValue.data[$var5] > 0) - $var7 = 1; - if ($var7 < 1) - $var7 = 1; - if ($var7 >= 15) - return 0; - if ($var6 >= 14) - return $var6; - $var8 = 0; - while ($var8 < 6) { - $var12 = nms_World_getSavedLightValue($this, $par4EnumSkyBlock, $par1 + nms_Facing_offsetsXForSide.data[$var8] | 0, $par2 + nms_Facing_offsetsYForSide.data[$var8] | 0, $par3 + nms_Facing_offsetsZForSide.data[$var8] | 0) - $var7 | 0; - if ($var12 <= $var6) - $var12 = $var6; - if ($var12 >= 14) - return $var12; - $var8 = $var8 + 1 | 0; - $var6 = $var12; - } - return $var6; -} -function nms_World_updateLightByType($this, $par1EnumSkyBlock, $par2, $par3, $par4) { - var $var5, $var7, $var8, var$8, $var9, $var10, $var11, $var12, $var13, $var18, $var19, $var20, $var21, $var22, $var10_0, $var11_0, $var12_0, $var13_0, $var14, $var15, $var16, $var17, $var23; - if (nms_World_doChunksNearChunkExist($this, $par2, $par3, $par4, 17)) { - $var5 = 0; - nms_Profiler_startSection($this.$theProfiler, $rt_s(669)); - $var7 = nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $par2, $par3, $par4); - $var8 = $rt_compare(nms_World_computeLightValue($this, $par2, $par3, $par4, $par1EnumSkyBlock), $var7); - if ($var8 > 0) { - var$8 = $this.$lightUpdateBlockList.data; - $var8 = 1; - var$8[0] = 133152; - } else if ($var8 >= 0) - $var8 = 0; - else { - var$8 = $this.$lightUpdateBlockList.data; - $var8 = 1; - var$8[0] = 133152 | $var7 << 18; - while ($var5 < $var8) { - var$8 = $this.$lightUpdateBlockList.data; - $var7 = $var5 + 1 | 0; - $var9 = var$8[$var5]; - $var10 = (($var9 & 63) - 32 | 0) + $par2 | 0; - $var11 = (($var9 >> 6 & 63) - 32 | 0) + $par3 | 0; - $var12 = (($var9 >> 12 & 63) - 32 | 0) + $par4 | 0; - $var13 = $var9 >> 18 & 15; - if (nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $var10, $var11, $var12) != $var13) { - $var5 = $var7; - continue; - } - nms_World_setLightValue($this, $par1EnumSkyBlock, $var10, $var11, $var12, 0); - if ($var13 <= 0) { - $var5 = $var7; - continue; - } - if (((nms_MathHelper_abs_int($var10 - $par2 | 0) + nms_MathHelper_abs_int($var11 - $par3 | 0) | 0) + nms_MathHelper_abs_int($var12 - $par4 | 0) | 0) >= 17) { - $var5 = $var7; - continue; - } - $var18 = 0; - while ($var18 < 6) { - $var19 = $var10 + nms_Facing_offsetsXForSide.data[$var18] | 0; - $var20 = $var11 + nms_Facing_offsetsYForSide.data[$var18] | 0; - $var21 = $var12 + nms_Facing_offsetsZForSide.data[$var18] | 0; - nms_Block_$callClinit(); - $var22 = jl_Math_max(1, nms_Block_lightOpacity.data[nms_World_getBlockId($this, $var19, $var20, $var21)]); - $var10_0 = nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $var19, $var20, $var21); - $var22 = $var13 - $var22 | 0; - if ($var10_0 == $var22 && $var8 < $this.$lightUpdateBlockList.data.length) { - var$8 = $this.$lightUpdateBlockList.data; - $var10_0 = $var8 + 1 | 0; - var$8[$var8] = (($var19 - $par2 | 0) + 32 | 0) | (($var20 - $par3 | 0) + 32 | 0) << 6 | (($var21 - $par4 | 0) + 32 | 0) << 12 | $var22 << 18; - $var8 = $var10_0; - } - $var18 = $var18 + 1 | 0; - } - $var5 = $var7; - } - $var5 = 0; - } - nms_Profiler_endSection($this.$theProfiler); - nms_Profiler_startSection($this.$theProfiler, $rt_s(670)); - while ($var5 < $var8) { - var$8 = $this.$lightUpdateBlockList.data; - $var22 = $var5 + 1 | 0; - $var9 = var$8[$var5]; - $var10_0 = (($var9 & 63) - 32 | 0) + $par2 | 0; - $var11_0 = (($var9 >> 6 & 63) - 32 | 0) + $par3 | 0; - $var12_0 = (($var9 >> 12 & 63) - 32 | 0) + $par4 | 0; - $var13_0 = nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $var10_0, $var11_0, $var12_0); - $var14 = nms_World_computeLightValue($this, $var10_0, $var11_0, $var12_0, $par1EnumSkyBlock); - $var7 = $rt_compare($var14, $var13_0); - if (!$var7) { - $var5 = $var22; - continue; - } - nms_World_setLightValue($this, $par1EnumSkyBlock, $var10_0, $var11_0, $var12_0, $var14); - if ($var7 <= 0) { - $var5 = $var22; - continue; - } - $var13_0 = $var10_0 - $par2 | 0; - $var15 = jl_Math_abs($var13_0); - $var10 = $var11_0 - $par3 | 0; - $var16 = jl_Math_abs($var10); - $var11 = $var12_0 - $par4 | 0; - $var17 = jl_Math_abs($var11); - $var23 = $var8 >= ($this.$lightUpdateBlockList.data.length - 6 | 0) ? 0 : 1; - if ((($var15 + $var16 | 0) + $var17 | 0) < 17 && $var23) { - $var15 = $var10_0 - 1 | 0; - if (nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $var15, $var11_0, $var12_0) >= $var14) - $var23 = $var8; - else { - var$8 = $this.$lightUpdateBlockList.data; - $var23 = $var8 + 1 | 0; - var$8[$var8] = ((($var15 - $par2 | 0) + 32 | 0) + (($var10 + 32 | 0) << 6) | 0) + (($var11 + 32 | 0) << 12) | 0; - } - $var8 = $var10_0 + 1 | 0; - if (nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $var8, $var11_0, $var12_0) >= $var14) - $var17 = $var23; - else { - var$8 = $this.$lightUpdateBlockList.data; - $var17 = $var23 + 1 | 0; - var$8[$var23] = ((($var8 - $par2 | 0) + 32 | 0) + (($var10 + 32 | 0) << 6) | 0) + (($var11 + 32 | 0) << 12) | 0; - } - $var8 = $var11_0 - 1 | 0; - if (nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $var10_0, $var8, $var12_0) >= $var14) - $var16 = $var17; - else { - var$8 = $this.$lightUpdateBlockList.data; - $var16 = $var17 + 1 | 0; - var$8[$var17] = (($var13_0 + 32 | 0) + ((($var8 - $par3 | 0) + 32 | 0) << 6) | 0) + (($var11 + 32 | 0) << 12) | 0; - } - $var7 = $var11_0 + 1 | 0; - if (nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $var10_0, $var7, $var12_0) >= $var14) - $var8 = $var16; - else { - var$8 = $this.$lightUpdateBlockList.data; - $var8 = $var16 + 1 | 0; - var$8[$var16] = (($var13_0 + 32 | 0) + ((($var7 - $par3 | 0) + 32 | 0) << 6) | 0) + (($var11 + 32 | 0) << 12) | 0; - } - $var7 = $var12_0 - 1 | 0; - if (nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $var10_0, $var11_0, $var7) >= $var14) - $var15 = $var8; - else { - var$8 = $this.$lightUpdateBlockList.data; - $var15 = $var8 + 1 | 0; - var$8[$var8] = (($var13_0 + 32 | 0) + (($var10 + 32 | 0) << 6) | 0) + ((($var7 - $par4 | 0) + 32 | 0) << 12) | 0; - } - $var7 = $var12_0 + 1 | 0; - if (nms_World_getSavedLightValue($this, $par1EnumSkyBlock, $var10_0, $var11_0, $var7) >= $var14) - $var8 = $var15; - else { - var$8 = $this.$lightUpdateBlockList.data; - $var8 = $var15 + 1 | 0; - var$8[$var15] = (($var13_0 + 32 | 0) + (($var10 + 32 | 0) << 6) | 0) + ((($var7 - $par4 | 0) + 32 | 0) << 12) | 0; - } - } - $var5 = $var22; - } - nms_Profiler_endSection($this.$theProfiler); - } -} -function nms_World_getEntitiesWithinAABBExcludingEntity0($this, $par1Entity, $par2AxisAlignedBB) { - return nms_World_getEntitiesWithinAABBExcludingEntity($this, $par1Entity, $par2AxisAlignedBB, null); -} -function nms_World_getEntitiesWithinAABBExcludingEntity($this, $par1Entity, $par2AxisAlignedBB, $par3IEntitySelector) { - var $var4, var$5, $var5, $var6, $var7, $var8, $var10; - $var4 = new ju_ArrayList; - $var4.$array1 = $rt_createArray(jl_Object, 10); - var$5 = ($par2AxisAlignedBB.$minX - 2.0) / 16.0; - $var5 = var$5 | 0; - if (var$5 < $var5) - $var5 = $var5 - 1 | 0; - var$5 = ($par2AxisAlignedBB.$maxX + 2.0) / 16.0; - $var6 = var$5 | 0; - if (var$5 < $var6) - $var6 = $var6 - 1 | 0; - var$5 = ($par2AxisAlignedBB.$minZ - 2.0) / 16.0; - $var7 = var$5 | 0; - if (var$5 < $var7) - $var7 = $var7 - 1 | 0; - var$5 = ($par2AxisAlignedBB.$maxZ + 2.0) / 16.0; - $var8 = var$5 | 0; - if (var$5 < $var8) - $var8 = $var8 - 1 | 0; - while ($var5 <= $var6) { - $var10 = $var7; - while ($var10 <= $var8) { - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var5, $var10).$getEntitiesWithinAABBForEntity($par1Entity, $par2AxisAlignedBB, $var4, $par3IEntitySelector); - $var10 = $var10 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - return $var4; -} -function nms_World_getEntitiesWithinAABB($this, $par1Class, $par2AxisAlignedBB) { - return nms_World_selectEntitiesWithinAABB($this, $par1Class, $par2AxisAlignedBB, null); -} -function nms_World_selectEntitiesWithinAABB($this, $par1Class, $par2AxisAlignedBB, $par3IEntitySelector) { - var var$4, $var4, $var5, $var6, $var7, $var8, $var10; - var$4 = ($par2AxisAlignedBB.$minX - 2.0) / 16.0; - $var4 = var$4 | 0; - if (var$4 < $var4) - $var4 = $var4 - 1 | 0; - var$4 = ($par2AxisAlignedBB.$maxX + 2.0) / 16.0; - $var5 = var$4 | 0; - if (var$4 < $var5) - $var5 = $var5 - 1 | 0; - var$4 = ($par2AxisAlignedBB.$minZ - 2.0) / 16.0; - $var6 = var$4 | 0; - if (var$4 < $var6) - $var6 = $var6 - 1 | 0; - var$4 = ($par2AxisAlignedBB.$maxZ + 2.0) / 16.0; - $var7 = var$4 | 0; - if (var$4 < $var7) - $var7 = $var7 - 1 | 0; - $var8 = new ju_ArrayList; - $var8.$array1 = $rt_createArray(jl_Object, 10); - while ($var4 <= $var5) { - $var10 = $var6; - while ($var10 <= $var7) { - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var4, $var10).$getEntitiesOfTypeWithinAAAB($par1Class, $par2AxisAlignedBB, $var8, $par3IEntitySelector); - $var10 = $var10 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - return $var8; -} -function nms_World_getLoadedEntityList($this) { - return $this.$loadedEntityList; -} -function nms_World_updateTileEntityChunkAndDoNothing($this, $par1, $par2, $par3, $par4TileEntity) { - if ($par2 >= 0 && $par2 < 256 ? 1 : 0) { - $par2 = $par1 >> 4; - $par1 = $par3 >> 4; - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $par2, $par1).$setChunkModified(); - } -} -function nms_World_unloadEntities($this, $par1List) { - var var$2, var$3; - var$2 = $this.$unloadedEntityList; - var$3 = new ju_AbstractList$1; - var$3.$this$0 = $par1List; - 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; - } -} -function nms_World_canPlaceEntityOnSide($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity, $par8ItemStack) { - var $var9, $var10, $var11, $var12; - $var9 = nms_World_getBlockId($this, $par2, $par3, $par4); - nms_Block_$callClinit(); - $var10 = nms_Block_blocksList.data[$var9]; - $var11 = nms_Block_blocksList.data[$par1]; - $var12 = $var11.$getCollisionBoundingBoxFromPool($this, $par2, $par3, $par4); - if ($par5) - $var12 = null; - if ($var12 !== null && !nms_World_checkNoEntityCollision0($this, $var12, $par7Entity)) - return 0; - if ($var10 !== null && !($var10 !== nms_Block_waterMoving && $var10 !== nms_Block_waterStill && $var10 !== nms_Block_lavaMoving && $var10 !== nms_Block_lavaStill && $var10 !== nms_Block_fire && !$var10.$blockMaterial.$replaceable)) - $var10 = null; - a: { - if ($var10 !== null) { - $par7Entity = $var10.$blockMaterial; - nms_Material_$callClinit(); - if ($par7Entity === nms_Material_circuits && $var11 === nms_Block_anvil) { - $par1 = 1; - break a; - } - } - if ($par1 > 0 && $var10 === null && $var11.$canPlaceBlockOnSide($this, $par2, $par3, $par4, $par6)) - $par1 = 1; - else - $par1 = 0; - } - return $par1; -} -function nms_World_getPathEntityToEntity($this, $par1Entity, $par2Entity, $par3, $par4, $par5, $par6, $par7) { - var var$8, $var8, $var9, $var10, $var11, $var19; - nms_Profiler_startSection($this.$theProfiler, $rt_s(671)); - var$8 = $par1Entity.$posX; - $var8 = var$8 | 0; - if (var$8 < $var8) - $var8 = $var8 - 1 | 0; - var$8 = $par1Entity.$posY + 1.0; - $var9 = var$8 | 0; - if (var$8 < $var9) - $var9 = $var9 - 1 | 0; - var$8 = $par1Entity.$posZ; - $var10 = var$8 | 0; - if (var$8 < $var10) - $var10 = $var10 - 1 | 0; - $var11 = $par3 + 16.0 | 0; - $var19 = nms_PathFinder_createEntityPathTo(nms_PathFinder__init_(nms_ChunkCache__init_($this, $var8 - $var11 | 0, $var9 - $var11 | 0, $var10 - $var11 | 0, $var8 + $var11 | 0, $var9 + $var11 | 0, $var10 + $var11 | 0, 0), $par4, $par5, $par6, $par7), $par1Entity, $par2Entity.$posX, $par2Entity.$boundingBox.$minY, $par2Entity.$posZ, $par3); - nms_Profiler_endSection($this.$theProfiler); - return $var19; -} -function nms_World_getEntityPathToXYZ($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var var$10, $var10, $var11, $var12, $var13, $var21; - nms_Profiler_startSection($this.$theProfiler, $rt_s(671)); - var$10 = $par1Entity.$posX; - $var10 = var$10 | 0; - if (var$10 < $var10) - $var10 = $var10 - 1 | 0; - var$10 = $par1Entity.$posY; - $var11 = var$10 | 0; - if (var$10 < $var11) - $var11 = $var11 - 1 | 0; - var$10 = $par1Entity.$posZ; - $var12 = var$10 | 0; - if (var$10 < $var12) - $var12 = $var12 - 1 | 0; - $var13 = $par5 + 8.0 | 0; - $var21 = nms_PathFinder_createEntityPathTo(nms_PathFinder__init_(nms_ChunkCache__init_($this, $var10 - $var13 | 0, $var11 - $var13 | 0, $var12 - $var13 | 0, $var10 + $var13 | 0, $var11 + $var13 | 0, $var12 + $var13 | 0, 0), $par6, $par7, $par8, $par9), $par1Entity, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $par5); - nms_Profiler_endSection($this.$theProfiler); - return $var21; -} -function nms_World_isBlockProvidingPowerTo($this, $par1, $par2, $par3, $par4) { - var $var5; - $var5 = nms_World_getBlockId($this, $par1, $par2, $par3); - if (!$var5) - $par1 = 0; - else { - nms_Block_$callClinit(); - $par1 = nms_Block_blocksList.data[$var5].$isProvidingStrongPower($this, $par1, $par2, $par3, $par4); - } - return $par1; -} -function nms_World_getBlockPowerInput($this, $par1, $par2, $par3) { - var var$4, $var5, var$6, $var5_0; - var$4 = $par2 - 1 | 0; - $var5 = nms_World_getBlockId($this, $par1, var$4, $par3); - if (!$var5) - $var5 = 0; - else { - nms_Block_$callClinit(); - $var5 = nms_Block_blocksList.data[$var5].$isProvidingStrongPower($this, $par1, var$4, $par3, 0); - } - if (0 > $var5) - $var5 = 0; - if ($var5 >= 15) - return $var5; - var$6 = $par2 + 1 | 0; - $var5_0 = nms_World_getBlockId($this, $par1, var$6, $par3); - if (!$var5_0) - var$6 = 0; - else { - nms_Block_$callClinit(); - var$6 = nms_Block_blocksList.data[$var5_0].$isProvidingStrongPower($this, $par1, var$6, $par3, 1); - } - if ($var5 > var$6) - var$6 = $var5; - if (var$6 >= 15) - return var$6; - var$4 = $par3 - 1 | 0; - $var5_0 = nms_World_getBlockId($this, $par1, $par2, var$4); - if (!$var5_0) - var$4 = 0; - else { - nms_Block_$callClinit(); - var$4 = nms_Block_blocksList.data[$var5_0].$isProvidingStrongPower($this, $par1, $par2, var$4, 2); - } - if (var$6 > var$4) - var$4 = var$6; - if (var$4 >= 15) - return var$4; - $var5 = $par3 + 1 | 0; - var$6 = nms_World_getBlockId($this, $par1, $par2, $var5); - if (!var$6) - $var5 = 0; - else { - nms_Block_$callClinit(); - $var5 = nms_Block_blocksList.data[var$6].$isProvidingStrongPower($this, $par1, $par2, $var5, 3); - } - if (var$4 > $var5) - $var5 = var$4; - if ($var5 >= 15) - return $var5; - $var5_0 = $par1 - 1 | 0; - var$4 = nms_World_getBlockId($this, $var5_0, $par2, $par3); - if (!var$4) - var$4 = 0; - else { - nms_Block_$callClinit(); - var$4 = nms_Block_blocksList.data[var$4].$isProvidingStrongPower($this, $var5_0, $par2, $par3, 4); - } - if ($var5 > var$4) - var$4 = $var5; - if (var$4 >= 15) - return var$4; - $par1 = $par1 + 1 | 0; - var$6 = nms_World_getBlockId($this, $par1, $par2, $par3); - if (!var$6) - $par2 = 0; - else { - nms_Block_$callClinit(); - $par2 = nms_Block_blocksList.data[var$6].$isProvidingStrongPower($this, $par1, $par2, $par3, 5); - } - if (var$4 > $par2) - $par2 = var$4; - return $par2; -} -function nms_World_getIndirectPowerOutput($this, $par1, $par2, $par3, $par4) { - return nms_World_getIndirectPowerLevelTo($this, $par1, $par2, $par3, $par4) <= 0 ? 0 : 1; -} -function nms_World_getIndirectPowerLevelTo($this, $par1, $par2, $par3, $par4) { - var $var5; - if (nms_Block_isNormalCube(nms_World_getBlockId($this, $par1, $par2, $par3))) - return nms_World_getBlockPowerInput($this, $par1, $par2, $par3); - $var5 = nms_World_getBlockId($this, $par1, $par2, $par3); - return !$var5 ? 0 : nms_Block_blocksList.data[$var5].$isProvidingWeakPower($this, $par1, $par2, $par3, $par4); -} -function nms_World_isBlockIndirectlyGettingPowered($this, $par1, $par2, $par3) { - return nms_World_getIndirectPowerLevelTo($this, $par1, $par2 - 1 | 0, $par3, 0) > 0 ? 1 : nms_World_getIndirectPowerLevelTo($this, $par1, $par2 + 1 | 0, $par3, 1) > 0 ? 1 : nms_World_getIndirectPowerLevelTo($this, $par1, $par2, $par3 - 1 | 0, 2) > 0 ? 1 : nms_World_getIndirectPowerLevelTo($this, $par1, $par2, $par3 + 1 | 0, 3) > 0 ? 1 : nms_World_getIndirectPowerLevelTo($this, $par1 - 1 | 0, $par2, $par3, 4) > 0 ? 1 : nms_World_getIndirectPowerLevelTo($this, $par1 + 1 | 0, $par2, $par3, 5) <= 0 ? 0 : 1; -} -function nms_World_getStrongestIndirectPower($this, $par1, $par2, $par3) { - var $var4, $var5, $var6; - $var4 = 0; - $var5 = 0; - while ($var5 < 6) { - $var6 = nms_World_getIndirectPowerLevelTo($this, $par1 + nms_Facing_offsetsXForSide.data[$var5] | 0, $par2 + nms_Facing_offsetsYForSide.data[$var5] | 0, $par3 + nms_Facing_offsetsZForSide.data[$var5] | 0, $var5); - if ($var6 >= 15) - return 15; - if ($var6 > $var4) - $var4 = $var6; - $var5 = $var5 + 1 | 0; - } - return $var4; -} -function nms_World_getClosestPlayerToEntity($this, $par1Entity, $par2) { - return nms_World_getClosestPlayer($this, $par1Entity.$posX, $par1Entity.$posY, $par1Entity.$posZ, $par2); -} -function nms_World_getClosestPlayer($this, $par1, $par3, $par5, $par7) { - var $var9, $var11, $var12, var$8, $var13, $var14, var$11, var$12; - $var9 = (-1.0); - $var11 = null; - $var12 = 0; - var$8 = $rt_compare($par7, 0.0); - $par7 = $par7 * $par7; - a: { - while ($var12 < $this.$playerEntities.$size0) { - $var13 = $this.$playerEntities; - if ($var12 < 0) - break a; - if ($var12 >= $var13.$size0) - break a; - $var13 = $var13.$array1.data[$var12]; - $var14 = $var13.$posX - $par1; - var$11 = $var13.$posY - $par3; - var$12 = $var13.$posZ - $par5; - $var14 = $var14 * $var14 + var$11 * var$11 + var$12 * var$12; - if (!(var$8 >= 0 && $var14 >= $par7) && !($var9 !== (-1.0) && $var14 >= $var9)) { - $var9 = $var14; - $var11 = $var13; - } - $var12 = $var12 + 1 | 0; - } - return $var11; - } - $var11 = new jl_IndexOutOfBoundsException; - $var11.$suppressionEnabled = 1; - $var11.$writableStackTrace = 1; - $rt_throw($var11); -} -function nms_World_getClosestVulnerablePlayerToEntity($this, $par1Entity, $par2) { - return nms_World_getClosestVulnerablePlayer($this, $par1Entity.$posX, $par1Entity.$posY, $par1Entity.$posZ, $par2); -} -function nms_World_getClosestVulnerablePlayer($this, $par1, $par3, $par5, $par7) { - var $var9, $var11, $var12, var$8, var$9, $var13, var$11, $var14, var$13, $var18; - $var9 = (-1.0); - $var11 = null; - $var12 = 0; - var$8 = $par7 * 0.800000011920929; - var$9 = $rt_compare($par7, 0.0); - a: { - while ($var12 < $this.$playerEntities.$size0) { - $var13 = $this.$playerEntities; - if ($var12 < 0) - break a; - if ($var12 >= $var13.$size0) - break a; - $var13 = $var13.$array1.data[$var12]; - if (!$var13.$capabilities.$disableDamage && (!$var13.$isDead && $var13.$health > 0 ? 1 : 0)) { - var$11 = $var13.$posX - $par1; - $var14 = $var13.$posY - $par3; - var$13 = $var13.$posZ - $par5; - $var14 = var$11 * var$11 + $var14 * $var14 + var$13 * var$13; - var$11 = $var13.$isSneaking() ? var$8 : $par7; - if (!(nms_DataWatcher_getWatchableObjectByte($var13.$dataWatcher, 0) & 32) ? 0 : 1) { - $var18 = nms_EntityPlayer_func_82243_bO($var13); - if ($var18 < 0.10000000149011612) - $var18 = 0.10000000149011612; - var$11 = var$11 * 0.699999988079071 * $var18; - } - if (!(var$9 >= 0 && $var14 >= var$11 * var$11) && !($var9 !== (-1.0) && $var14 >= $var9)) { - $var9 = $var14; - $var11 = $var13; - } - } - $var12 = $var12 + 1 | 0; - } - return $var11; - } - $var13 = new jl_IndexOutOfBoundsException; - $var13.$suppressionEnabled = 1; - $var13.$writableStackTrace = 1; - $rt_throw($var13); -} -function nms_World_getPlayerEntityByName($this, $par1Str) { - var $var2, var$3; - $var2 = 0; - a: { - while ($var2 < $this.$playerEntities.$size0) { - var$3 = $this.$playerEntities; - if ($var2 < 0) - break a; - if ($var2 >= var$3.$size0) - break a; - if ($par1Str.$equals(var$3.$array1.data[$var2].$username0)) { - $par1Str = $this.$playerEntities; - if ($var2 >= 0 && $var2 < $par1Str.$size0) - return $par1Str.$array1.data[$var2]; - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $var2 = $var2 + 1 | 0; - } - return null; - } - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); -} -function nms_World_func_82738_a($this, $par1) { - $this.$worldInfo.$totalTime = $par1; -} -function nms_World_getTotalWorldTime($this) { - return $this.$worldInfo.$totalTime; -} -function nms_World_getWorldTime($this) { - return $this.$worldInfo.$worldTime; -} -function nms_World_setWorldTime($this, $par1) { - $this.$worldInfo.$worldTime = $par1; -} -function nms_World_getSpawnPoint($this) { - var var$1, var$2, var$3, var$4; - var$1 = new nms_ChunkCoordinates; - var$2 = $this.$worldInfo.$spawnX; - var$3 = $this.$worldInfo.$spawnY; - var$4 = $this.$worldInfo.$spawnZ; - var$1.$posX0 = var$2; - var$1.$posY0 = var$3; - var$1.$posZ0 = var$4; - return var$1; -} -function nms_World_setSpawnLocation0($this, $par1, $par2, $par3) { - var var$4; - var$4 = $this.$worldInfo; - var$4.$spawnX = $par1; - var$4.$spawnY = $par2; - var$4.$spawnZ = $par3; -} -function nms_World_joinEntityInSurroundings($this, $par1Entity) { - var var$2, $var2, $var3, $var5, var$6, $var4, $var6; - var$2 = $par1Entity.$posX / 16.0; - $var2 = var$2 | 0; - if (var$2 < $var2) - $var2 = $var2 - 1 | 0; - var$2 = $par1Entity.$posZ / 16.0; - $var3 = var$2 | 0; - if (var$2 < $var3) - $var3 = $var3 - 1 | 0; - $var5 = $var2 - 2 | 0; - var$6 = $var2 + 2 | 0; - $var4 = $var3 - 2 | 0; - $var3 = $var3 + 2 | 0; - while ($var5 <= var$6) { - $var6 = $var4; - while ($var6 <= $var3) { - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var5, $var6); - $var6 = $var6 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - if (!ju_AbstractCollection_contains($this.$loadedEntityList, $par1Entity)) - ju_ArrayList_add($this.$loadedEntityList, $par1Entity); -} -function nms_World_canMineBlock($this, $par1EntityPlayer, $par2, $par3, $par4) { - return 1; -} -function nms_World_setEntityState($this, $par1Entity, $par2) { - return; -} -function nms_World_getChunkProvider($this) { - return $this.$chunkProvider; -} -function nms_World_addBlockEvent($this, $par1, $par2, $par3, $par4, $par5, $par6) { - var var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par4 <= 0) - return; - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[$par4]; - $ptr = 1; - case 1: - var$7.$onBlockEventReceived($this, $par1, $par2, $par3, $par5, $par6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5, $par6, var$7, $ptr); -} -function nms_World_getWorldInfo($this) { - return $this.$worldInfo; -} -function nms_World_getGameRules($this) { - return $this.$worldInfo.$theGameRules; -} -function nms_World_updateAllPlayersSleepingFlag($this) { - return; -} -function nms_World_getWeightedThunderStrength($this, $par1) { - return ($this.$prevThunderingStrength + ($this.$thunderingStrength - $this.$prevThunderingStrength) * $par1) * ($this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par1); -} -function nms_World_getRainStrength($this, $par1) { - return $this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * $par1; -} -function nms_World_setRainStrength($this, $par1) { - $this.$prevRainingStrength = $par1; - $this.$rainingStrength = $par1; -} -function nms_World_isRaining($this) { - return $this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * 1.0 <= 0.2 ? 0 : 1; -} -function nms_World_canLightningStrikeAt($this, $par1, $par2, $par3) { - var var$4, var$5, $var4, var$7; - if (!($this.$prevRainingStrength + ($this.$rainingStrength - $this.$prevRainingStrength) * 1.0 <= 0.2 ? 0 : 1)) - return 0; - var$4 = $par1 >> 4; - var$5 = $par3 >> 4; - $var4 = nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$4, var$5); - $par1 = $par1 & 15; - var$7 = $par3 & 15; - if (!$var4.$canBlockSeeTheSky($par1, $par2, var$7)) - return 0; - if (nms_Chunk_getPrecipitationHeight(nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$4, var$5), $par1, var$7) > $par2) - return 0; - $var4 = nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$4, var$5), $par1, var$7); - return $var4.$enableSnow ? 0 : !$var4.$enableSnow ? $var4.$enableRain : 0; -} -function nms_World_setItemData($this, $par1Str, $par2WorldSavedData) { - nms_MapStorage_setData($this.$mapStorage, $par1Str, $par2WorldSavedData); -} -function nms_World_loadItemData($this, $par1Class, $par2Str) { - return nms_MapStorage_loadData($this.$mapStorage, $par1Class, $par2Str); -} -function nms_World_getUniqueDataId($this, $par1Str) { - return nms_MapStorage_getUniqueDataId($this.$mapStorage, $par1Str); -} -function nms_World_func_82739_e($this, $par1, $par2, $par3, $par4, $par5) { - var $var6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = 0; - if ($var6 >= $this.$worldAccesses.$size0) - return; - var$7 = $this.$worldAccesses; - if ($var6 >= 0 && $var6 < var$7.$size0) { - var$7 = var$7.$array1.data[$var6]; - $ptr = 1; - continue main; - } - var$7 = new jl_IndexOutOfBoundsException; - var$7.$suppressionEnabled = 1; - var$7.$writableStackTrace = 1; - $rt_throw(var$7); - case 1: - nms_RenderGlobal_broadcastSound(var$7, $par1, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $var6 = $var6 + 1 | 0; - if ($var6 >= $this.$worldAccesses.$size0) - return; - var$7 = $this.$worldAccesses; - if ($var6 >= 0 && $var6 < var$7.$size0) { - var$7 = var$7.$array1.data[$var6]; - continue main; - } - var$7 = new jl_IndexOutOfBoundsException; - var$7.$suppressionEnabled = 1; - var$7.$writableStackTrace = 1; - $rt_throw(var$7); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5, $var6, var$7, $ptr); -} -function nms_World_playAuxSFX($this, $par1, $par2, $par3, $par4, $par5) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = null; - $ptr = 1; - case 1: - nms_World_playAuxSFXAtEntity($this, var$6, $par1, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5, var$6, $ptr); -} -function nms_World_playAuxSFXAtEntity($this, $par1EntityPlayer, $par2, $par3, $par4, $par5, $par6) { - var $var7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = 0; - if ($var7 >= $this.$worldAccesses.$size0) - return; - var$8 = $this.$worldAccesses; - if ($var7 >= 0 && $var7 < var$8.$size0) { - var$8 = var$8.$array1.data[$var7]; - $ptr = 1; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - nms_RenderGlobal_playAuxSFX(var$8, $par1EntityPlayer, $par2, $par3, $par4, $par5, $par6); - if ($rt_suspending()) { - break main; - } - $var7 = $var7 + 1 | 0; - if ($var7 >= $this.$worldAccesses.$size0) - return; - var$8 = $this.$worldAccesses; - if ($var7 >= 0 && $var7 < var$8.$size0) { - var$8 = var$8.$array1.data[$var7]; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $par3, $par4, $par5, $par6, $var7, var$8, $ptr); -} -function nms_World_getHeight($this) { - return 256; -} -function nms_World_findClosestStructure($this, $par1Str, $par2, $par3, $par4) { - return null; -} -function nms_World_getHorizon($this) { - return $this.$worldInfo.$terrainType0 !== nms_WorldType_FLAT ? 63.0 : 0.0; -} -function nms_World_destroyBlockInWorldPartially($this, $par1, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $var6 = 0; - a: { - while ($var6 < $this.$worldAccesses.$size0) { - $var7 = $this.$worldAccesses; - if ($var6 < 0) - break a; - if ($var6 >= $var7.$size0) - break a; - nms_RenderGlobal_destroyBlockPartially($var7.$array1.data[$var6], $par1, $par2, $par3, $par4, $par5); - $var6 = $var6 + 1 | 0; - } - return; - } - $var7 = new jl_IndexOutOfBoundsException; - $var7.$suppressionEnabled = 1; - $var7.$writableStackTrace = 1; - $rt_throw($var7); -} -function nms_World_getWorldVec3Pool($this) { - return $this.$vecPool; -} -function nms_World_getCurrentDate($this) { - if (Long_eq(Long_rem($this.$worldInfo.$totalTime, Long_fromInt(600)), Long_ZERO)) - ju_Calendar_setTimeInMillis($this.$theCalendar, jl_System_currentTimeMillis()); - return $this.$theCalendar; -} -function nms_World_getScoreboard($this) { - return $this.$worldScoreboard; -} -function nms_World_func_96440_m($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = 0; - while ($var5 < 4) { - $var6 = $par1 + nms_Direction_offsetX.data[$var5] | 0; - $var7 = $par3 + nms_Direction_offsetZ.data[$var5] | 0; - $var8 = nms_World_getBlockId($this, $var6, $par2, $var7); - if ($var8) { - nms_Block_$callClinit(); - $var9 = nms_Block_blocksList.data[$var8]; - if ($var8 != nms_Block_redstoneComparatorActive.$blockID && $var8 != nms_Block_redstoneComparatorIdle.$blockID ? 0 : 1) { - $ptr = 1; - continue main; - } - if (nms_Block_isNormalCube($var8)) { - $var8 = $var6 + nms_Direction_offsetX.data[$var5] | 0; - $var7 = $var7 + nms_Direction_offsetZ.data[$var5] | 0; - var$10 = nms_World_getBlockId($this, $var8, $par2, $var7); - $var9 = nms_Block_blocksList.data[var$10]; - if (var$10 != nms_Block_redstoneComparatorActive.$blockID && var$10 != nms_Block_redstoneComparatorIdle.$blockID ? 0 : 1) { - $ptr = 2; - continue main; - } - } - } - $var5 = $var5 + 1 | 0; - } - return; - case 1: - $var9.$onNeighborBlockChange($this, $var6, $par2, $var7, $par4); - if ($rt_suspending()) { - break main; - } - while (true) { - $var5 = $var5 + 1 | 0; - if ($var5 >= 4) - break; - $var6 = $par1 + nms_Direction_offsetX.data[$var5] | 0; - $var7 = $par3 + nms_Direction_offsetZ.data[$var5] | 0; - $var8 = nms_World_getBlockId($this, $var6, $par2, $var7); - if (!$var8) - continue; - nms_Block_$callClinit(); - $var9 = nms_Block_blocksList.data[$var8]; - if ($var8 != nms_Block_redstoneComparatorActive.$blockID && $var8 != nms_Block_redstoneComparatorIdle.$blockID ? 0 : 1) { - continue main; - } - if (!nms_Block_isNormalCube($var8)) - continue; - $var8 = $var6 + nms_Direction_offsetX.data[$var5] | 0; - $var7 = $var7 + nms_Direction_offsetZ.data[$var5] | 0; - var$10 = nms_World_getBlockId($this, $var8, $par2, $var7); - $var9 = nms_Block_blocksList.data[var$10]; - if (!(var$10 != nms_Block_redstoneComparatorActive.$blockID && var$10 != nms_Block_redstoneComparatorIdle.$blockID ? 0 : 1)) - continue; - else { - $ptr = 2; - continue main; - } - } - return; - case 2: - $var9.$onNeighborBlockChange($this, $var8, $par2, $var7, $par4); - if ($rt_suspending()) { - break main; - } - while (true) { - $var5 = $var5 + 1 | 0; - if ($var5 >= 4) - break; - $var6 = $par1 + nms_Direction_offsetX.data[$var5] | 0; - $var7 = $par3 + nms_Direction_offsetZ.data[$var5] | 0; - $var8 = nms_World_getBlockId($this, $var6, $par2, $var7); - if (!$var8) - continue; - nms_Block_$callClinit(); - $var9 = nms_Block_blocksList.data[$var8]; - if ($var8 != nms_Block_redstoneComparatorActive.$blockID && $var8 != nms_Block_redstoneComparatorIdle.$blockID ? 0 : 1) { - $ptr = 1; - continue main; - } - if (!nms_Block_isNormalCube($var8)) - continue; - $var8 = $var6 + nms_Direction_offsetX.data[$var5] | 0; - $var7 = $var7 + nms_Direction_offsetZ.data[$var5] | 0; - var$10 = nms_World_getBlockId($this, $var8, $par2, $var7); - $var9 = nms_Block_blocksList.data[var$10]; - if (!(var$10 != nms_Block_redstoneComparatorActive.$blockID && var$10 != nms_Block_redstoneComparatorIdle.$blockID ? 0 : 1)) - continue; - else { - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $var5, $var6, $var7, $var8, $var9, var$10, $ptr); -} -function nms_Vec3Pool() { - var a = this; jl_Object.call(a); - a.$truncateArrayResetThreshold = 0; - a.$minimumSize = 0; - a.$vec3Cache = null; - a.$nextFreeSpace = 0; - a.$maximumSizeSinceLastTruncation = 0; - a.$resetCount = 0; -} -function nms_Vec3Pool_getVecFromPool($this, $par1, $par3, $par5) { - var $var7, var$5; - if ($this.$minimumSize >= 0 && $this.$truncateArrayResetThreshold >= 0 ? 0 : 1) - return nms_Vec3__init_($this, $par1, $par3, $par5); - if ($this.$nextFreeSpace >= $this.$vec3Cache.$size0) { - $var7 = nms_Vec3__init_($this, $par1, $par3, $par5); - ju_ArrayList_add($this.$vec3Cache, $var7); - } else { - $var7 = $this.$vec3Cache; - var$5 = $this.$nextFreeSpace; - if (var$5 >= 0 && var$5 < $var7.$size0) { - $var7 = $var7.$array1.data[var$5]; - $var7.$xCoord = $par1; - $var7.$yCoord = $par3; - $var7.$zCoord = $par5; - } else { - $var7 = new jl_IndexOutOfBoundsException; - $var7.$suppressionEnabled = 1; - $var7.$writableStackTrace = 1; - $rt_throw($var7); - } - } - $this.$nextFreeSpace = $this.$nextFreeSpace + 1 | 0; - return $var7; -} -function nms_Vec3Pool_clear($this) { - var $var1, $var1_0; - if (!($this.$minimumSize >= 0 && $this.$truncateArrayResetThreshold >= 0 ? 0 : 1)) { - if ($this.$nextFreeSpace > $this.$maximumSizeSinceLastTruncation) - $this.$maximumSizeSinceLastTruncation = $this.$nextFreeSpace; - $var1 = $this.$resetCount; - $this.$resetCount = $var1 + 1 | 0; - if ($var1 == $this.$truncateArrayResetThreshold) { - $var1_0 = $this.$maximumSizeSinceLastTruncation; - $var1 = $this.$vec3Cache.$size0 - $this.$minimumSize | 0; - if ($var1_0 > $var1) - $var1 = $var1_0; - while ($this.$vec3Cache.$size0 > $var1) { - ju_ArrayList_remove($this.$vec3Cache, $var1); - } - $this.$maximumSizeSinceLastTruncation = 0; - $this.$resetCount = 0; - } - $this.$nextFreeSpace = 0; - } -} -function nms_Vec3Pool_clearAndFreeCache($this) { - var var$1; - if (!($this.$minimumSize >= 0 && $this.$truncateArrayResetThreshold >= 0 ? 0 : 1)) { - $this.$nextFreeSpace = 0; - var$1 = $this.$vec3Cache; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; - } -} -function nms_Entity() { - var a = this; jl_Object.call(a); - a.$entityId = 0; - a.$renderDistanceWeight = 0.0; - a.$preventEntitySpawning = 0; - a.$riddenByEntity = null; - a.$ridingEntity = null; - a.$field_98038_p = 0; - a.$worldObj = null; - a.$prevPosX = 0.0; - a.$prevPosY = 0.0; - a.$prevPosZ = 0.0; - a.$posX = 0.0; - a.$posY = 0.0; - a.$posZ = 0.0; - a.$motionX = 0.0; - a.$motionY = 0.0; - a.$motionZ = 0.0; - a.$rotationYaw = 0.0; - a.$rotationPitch = 0.0; - a.$prevRotationYaw = 0.0; - a.$prevRotationPitch = 0.0; - a.$boundingBox = null; - a.$onGround = 0; - a.$isCollidedHorizontally = 0; - a.$isCollidedVertically = 0; - a.$isCollided = 0; - a.$velocityChanged = 0; - a.$isInWeb = 0; - a.$field_70135_K = 0; - a.$isDead = 0; - a.$yOffset0 = 0.0; - a.$width1 = 0.0; - a.$height1 = 0.0; - a.$prevDistanceWalkedModified = 0.0; - a.$distanceWalkedModified = 0.0; - a.$distanceWalkedOnStepModified = 0.0; - a.$fallDistance = 0.0; - a.$nextStepDistance = 0; - a.$lastTickPosX = 0.0; - a.$lastTickPosY = 0.0; - a.$lastTickPosZ = 0.0; - a.$ySize = 0.0; - a.$stepHeight = 0.0; - a.$noClip = 0; - a.$entityCollisionReduction = 0.0; - a.$rand0 = null; - a.$ticksExisted = 0; - a.$fireResistance = 0; - a.$fire = 0; - a.$inWater = 0; - a.$hurtResistantTime = 0; - a.$firstUpdate = 0; - a.$isImmuneToFire = 0; - a.$dataWatcher = null; - a.$entityRiderPitchDelta = 0.0; - a.$entityRiderYawDelta = 0.0; - a.$addedToChunk = 0; - a.$chunkCoordX = 0; - a.$chunkCoordY = 0; - a.$chunkCoordZ = 0; - a.$serverPosX = 0; - a.$serverPosY = 0; - a.$serverPosZ = 0; - a.$ignoreFrustumCheck = 0; - a.$isAirBorne = 0; - a.$timeUntilPortal = 0; - a.$inPortal = 0; - a.$dimension = 0; - a.$teleportDirection = 0; - a.$invulnerable = 0; - a.$myEntitySize = null; -} -var nms_Entity_nextEntityID = 0; -function nms_Entity__init_() { - var var_0 = new nms_Entity(); - nms_Entity__init_0(var_0); - return var_0; -} -function nms_Entity__init_0($this) { - var var$1, var$2, var$3; - var$1 = nms_Entity_nextEntityID; - nms_Entity_nextEntityID = var$1 + 1 | 0; - $this.$entityId = var$1; - $this.$renderDistanceWeight = 1.0; - $this.$preventEntitySpawning = 0; - var$2 = new nms_AxisAlignedBB; - var$2.$minX = 0.0; - var$2.$minY = 0.0; - var$2.$minZ = 0.0; - var$2.$maxX = 0.0; - var$2.$maxY = 0.0; - var$2.$maxZ = 0.0; - $this.$boundingBox = var$2; - $this.$onGround = 0; - $this.$isCollided = 0; - $this.$velocityChanged = 0; - $this.$field_70135_K = 1; - $this.$isDead = 0; - $this.$yOffset0 = 0.0; - $this.$width1 = 0.6000000238418579; - $this.$height1 = 1.7999999523162842; - $this.$prevDistanceWalkedModified = 0.0; - $this.$distanceWalkedModified = 0.0; - $this.$distanceWalkedOnStepModified = 0.0; - $this.$fallDistance = 0.0; - $this.$nextStepDistance = 1; - $this.$ySize = 0.0; - $this.$stepHeight = 0.0; - $this.$noClip = 0; - $this.$entityCollisionReduction = 0.0; - $this.$rand0 = new ju_Random; - $this.$ticksExisted = 0; - $this.$fireResistance = 1; - $this.$fire = 0; - $this.$inWater = 0; - $this.$hurtResistantTime = 0; - $this.$firstUpdate = 1; - $this.$isImmuneToFire = 0; - var$2 = new nms_DataWatcher; - var$2.$isBlank = 1; - var$2.$watchedObjects = ju_HashMap__init_1(16, 0.75); - $this.$dataWatcher = var$2; - $this.$addedToChunk = 0; - $this.$teleportDirection = 0; - $this.$invulnerable = 0; - $this.$myEntitySize = nms_EnumEntitySize_SIZE_2; - nms_Entity_setPosition($this, 0.0, 0.0, 0.0); - var$2 = $this.$dataWatcher; - var$3 = new jl_Byte; - var$3.$value4 = 0; - nms_DataWatcher_addObject(var$2, 0, var$3); - var$2 = $this.$dataWatcher; - var$3 = new jl_Short; - var$3.$value5 = 300; - nms_DataWatcher_addObject(var$2, 1, var$3); - $this.$entityInit(); -} -function nms_Entity_getDataWatcher($this) { - return $this.$dataWatcher; -} -function nms_Entity_equals($this, $par1Obj) { - return !($par1Obj instanceof nms_Entity) ? 0 : $par1Obj.$entityId != $this.$entityId ? 0 : 1; -} -function nms_Entity_hashCode($this) { - return $this.$entityId; -} -function nms_Entity_preparePlayerToSpawn($this) { - if ($this.$worldObj !== null) { - a: { - while (true) { - if ($this.$posY <= 0.0) - break a; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - if (nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, $this.$boundingBox).$size0 ? 0 : 1) - break; - $this.$posY = $this.$posY + 1.0; - } - } - $this.$motionZ = 0.0; - $this.$motionY = 0.0; - $this.$motionX = 0.0; - $this.$rotationPitch = 0.0; - } -} -function nms_Entity_setDead($this) { - $this.$isDead = 1; -} -function nms_Entity_setSize($this, $par1, $par2) { - var var$3; - if (!($par1 === $this.$width1 && $par2 === $this.$height1)) { - $this.$width1 = $par1; - $this.$height1 = $par2; - $this.$boundingBox.$maxX = $this.$boundingBox.$minX + $this.$width1; - $this.$boundingBox.$maxZ = $this.$boundingBox.$minZ + $this.$width1; - $this.$boundingBox.$maxY = $this.$boundingBox.$minY + $this.$height1; - } - var$3 = $par1 % 2.0; - if (var$3 < 0.375) - $this.$myEntitySize = nms_EnumEntitySize_SIZE_1; - else if (var$3 < 0.75) - $this.$myEntitySize = nms_EnumEntitySize_SIZE_2; - else if (var$3 < 1.0) - $this.$myEntitySize = nms_EnumEntitySize_SIZE_3; - else if (var$3 < 1.375) - $this.$myEntitySize = nms_EnumEntitySize_SIZE_4; - else if (var$3 >= 1.75) - $this.$myEntitySize = nms_EnumEntitySize_SIZE_6; - else - $this.$myEntitySize = nms_EnumEntitySize_SIZE_5; -} -function nms_Entity_setRotation($this, $par1, $par2) { - $this.$rotationYaw = $par1 % 360.0; - $this.$rotationPitch = $par2 % 360.0; -} -function nms_Entity_setPosition($this, $par1, $par3, $par5) { - var $var7, $var8, var$6, var$7, var$8, var$9, var$10; - $this.$posX = $par1; - $this.$posY = $par3; - $this.$posZ = $par5; - $var7 = $this.$width1 / 2.0; - $var8 = $this.$height1; - var$6 = $this.$boundingBox; - var$7 = $var7; - var$8 = $par1 - var$7; - var$9 = $par3 - $this.$yOffset0 + $this.$ySize; - var$10 = $par5 - var$7; - $par1 = $par1 + var$7; - $par3 = $par3 - $this.$yOffset0 + $this.$ySize + $var8; - $par5 = $par5 + var$7; - var$6.$minX = var$8; - var$6.$minY = var$9; - var$6.$minZ = var$10; - var$6.$maxX = $par1; - var$6.$maxY = $par3; - var$6.$maxZ = $par5; -} -function nms_Entity_setAngles($this, $par1, $par2) { - var $var3, $var4; - $var3 = $this.$rotationPitch; - $var4 = $this.$rotationYaw; - $this.$rotationYaw = $this.$rotationYaw + $par1 * 0.15; - $this.$rotationPitch = $this.$rotationPitch - $par2 * 0.15; - if ($this.$rotationPitch < (-90.0)) - $this.$rotationPitch = (-90.0); - if ($this.$rotationPitch > 90.0) - $this.$rotationPitch = 90.0; - $this.$prevRotationPitch = $this.$prevRotationPitch + $this.$rotationPitch - $var3; - $this.$prevRotationYaw = $this.$prevRotationYaw + $this.$rotationYaw - $var4; -} -function nms_Entity_onUpdate($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: - $ptr = 1; - case 1: - $this.$onEntityUpdate(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_Entity_onEntityUpdate($this) { - var $var4, var$2, $var5, $var2, $var6, var$6, var$7, var$8, var$9, var$10, var$11, 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();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var6 = $thread.pop();$var2 = $thread.pop();$var5 = $thread.pop();var$2 = $thread.pop();$var4 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(672)); - if ($this.$ridingEntity !== null && $this.$ridingEntity.$isDead) - $this.$ridingEntity = null; - $this.$prevDistanceWalkedModified = $this.$distanceWalkedModified; - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$prevRotationPitch = $this.$rotationPitch; - $this.$prevRotationYaw = $this.$rotationYaw; - $var4 = !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 8) ? 0 : 1; - if ($var4 && !$this.$isInWater()) { - var$2 = $this.$posX; - $var5 = var$2 | 0; - if (var$2 < $var5) - $var5 = $var5 - 1 | 0; - var$2 = $this.$posY - 0.20000000298023224 - $this.$yOffset0; - $var2 = var$2 | 0; - if (var$2 < $var2) - $var2 = $var2 - 1 | 0; - var$2 = $this.$posZ; - $var6 = var$2 | 0; - if (var$2 < $var6) - $var6 = $var6 - 1 | 0; - $var4 = nms_World_getBlockId($this.$worldObj, $var5, $var2, $var6); - if ($var4 > 0) { - var$6 = $this.$worldObj; - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(673)); - jl_AbstractStringBuilder_insert0(var$7, var$7.$length, $var4, 10); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(381)); - $var4 = nms_World_getBlockMetadata($this.$worldObj, $var5, $var2, $var6); - jl_AbstractStringBuilder_insert0(var$7, var$7.$length, $var4, 10); - var$8 = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - var$9 = $this.$posX + (Math.random() - 0.5) * $this.$width1; - var$10 = $this.$boundingBox.$minY + 0.1; - var$11 = $this.$posZ + (Math.random() - 0.5) * $this.$width1; - var$12 = -$this.$motionX * 4.0; - var$13 = 1.5; - var$2 = -$this.$motionZ * 4.0; - $var5 = 0; - if ($var5 < var$6.$worldAccesses.$size0) { - var$7 = var$6.$worldAccesses; - if ($var5 >= 0 && $var5 < var$7.$size0) { - var$7 = var$7.$array1.data[$var5]; - $ptr = 5; - continue main; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - } - } - } - $ptr = 1; - case 1: - $this.$handleWaterMovement(); - if ($rt_suspending()) { - break main; - } - if ($this.$worldObj.$isRemote) - $this.$fire = 0; - else if ($this.$fire > 0) { - if ($this.$isImmuneToFire) { - $this.$fire = $this.$fire - 4 | 0; - if ($this.$fire < 0) - $this.$fire = 0; - } else { - if (!($this.$fire % 20 | 0)) { - var$6 = nms_DamageSource_onFire; - $var4 = 1; - $ptr = 4; - continue main; - } - $this.$fire = $this.$fire - 1 | 0; - } - } - if ($this.$handleLavaMovement()) { - $ptr = 2; - continue main; - } - if ($this.$posY >= (-64.0)) { - if (!$this.$worldObj.$isRemote) { - nms_Entity_setFlag($this, 0, $this.$fire <= 0 ? 0 : 1); - nms_Entity_setFlag($this, 2, $this.$ridingEntity === null ? 0 : 1); - } - $this.$firstUpdate = 0; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - } - $ptr = 3; - continue main; - case 2: - nms_Entity_setOnFireFromLava($this); - if ($rt_suspending()) { - break main; - } - $this.$fallDistance = $this.$fallDistance * 0.5; - if ($this.$posY >= (-64.0)) { - if (!$this.$worldObj.$isRemote) { - nms_Entity_setFlag($this, 0, $this.$fire <= 0 ? 0 : 1); - nms_Entity_setFlag($this, 2, $this.$ridingEntity === null ? 0 : 1); - } - $this.$firstUpdate = 0; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - } - $ptr = 3; - case 3: - $this.$kill(); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote) { - nms_Entity_setFlag($this, 0, $this.$fire <= 0 ? 0 : 1); - nms_Entity_setFlag($this, 2, $this.$ridingEntity === null ? 0 : 1); - } - $this.$firstUpdate = 0; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - case 4: - $this.$attackEntityFrom(var$6, $var4); - if ($rt_suspending()) { - break main; - } - $this.$fire = $this.$fire - 1 | 0; - if ($this.$handleLavaMovement()) { - $ptr = 2; - continue main; - } - if ($this.$posY >= (-64.0)) { - if (!$this.$worldObj.$isRemote) { - nms_Entity_setFlag($this, 0, $this.$fire <= 0 ? 0 : 1); - nms_Entity_setFlag($this, 2, $this.$ridingEntity === null ? 0 : 1); - } - $this.$firstUpdate = 0; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - } - $ptr = 3; - continue main; - case 5: - nms_RenderGlobal_doSpawnParticle(var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$2); - if ($rt_suspending()) { - break main; - } - $var5 = $var5 + 1 | 0; - if ($var5 >= var$6.$worldAccesses.$size0) { - $ptr = 1; - continue main; - } - var$7 = var$6.$worldAccesses; - if ($var5 >= 0 && $var5 < var$7.$size0) { - var$7 = var$7.$array1.data[$var5]; - continue main; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var4, var$2, $var5, $var2, $var6, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, $ptr); -} -function nms_Entity_setOnFireFromLava($this) { - var var$1, var$2, $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: - if ($this.$isImmuneToFire) - return; - var$1 = nms_DamageSource_lava; - var$2 = 4; - $ptr = 1; - case 1: - $this.$attackEntityFrom(var$1, var$2); - if ($rt_suspending()) { - break main; - } - var$2 = nms_EnchantmentProtection_func_92093_a($this, 300); - if ($this.$fire < var$2) - $this.$fire = var$2; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, $ptr); -} -function nms_Entity_setFire($this, $par1) { - $par1 = nms_EnchantmentProtection_func_92093_a($this, $par1 * 20 | 0); - if ($this.$fire < $par1) - $this.$fire = $par1; -} -function nms_Entity_extinguish($this) { - $this.$fire = 0; -} -function nms_Entity_kill($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: - $ptr = 1; - case 1: - $this.$setDead(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_Entity_isOffsetPositionInLiquid($this, $par1, $par3, $par5) { - var $var7; - $var7 = $this.$boundingBox; - $var7 = nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), $var7.$minX + $par1, $var7.$minY + $par3, $var7.$minZ + $par5, $var7.$maxX + $par1, $var7.$maxY + $par3, $var7.$maxZ + $par5); - return !(nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, $var7).$size0 ? 0 : 1) ? 0 : nms_World_isAnyLiquid($this.$worldObj, $var7) ? 0 : 1; -} -function nms_Entity_moveEntity($this, $par1, $par3, $par5) { - var $var7, $var9, $var11, $var19, $var20, $var27, var$10, $var22, $var35, $var34, $var36, $var23, $var25, $var29, $var30, $var21, var$20, $var37, $var31, $var32, $var33, $var39, var$26, $var38, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var38 = $thread.pop();var$26 = $thread.pop();$var39 = $thread.pop();$var33 = $thread.pop();$var32 = $thread.pop();$var31 = $thread.pop();$var37 = $thread.pop();var$20 = $thread.pop();$var21 = $thread.pop();$var30 = $thread.pop();$var29 = $thread.pop();$var25 = $thread.pop();$var23 = $thread.pop();$var36 = $thread.pop();$var34 = $thread.pop();$var35 = $thread.pop();$var22 = $thread.pop();var$10 = $thread.pop();$var27 = $thread.pop();$var20 = $thread.pop();$var19 = $thread.pop();$var11 - = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$par5 = $thread.pop();$par3 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$noClip) { - nms_AxisAlignedBB_offset($this.$boundingBox, $par1, $par3, $par5); - $this.$posX = ($this.$boundingBox.$minX + $this.$boundingBox.$maxX) / 2.0; - $this.$posY = $this.$boundingBox.$minY + $this.$yOffset0 - $this.$ySize; - $this.$posZ = ($this.$boundingBox.$minZ + $this.$boundingBox.$maxZ) / 2.0; - return; - } - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(674)); - $this.$ySize = $this.$ySize * 0.4000000059604645; - $var7 = $this.$posX; - $var9 = $this.$posY; - $var11 = $this.$posZ; - if ($this.$isInWeb) { - $this.$isInWeb = 0; - $par1 = $par1 * 0.25; - $par3 = $par3 * 0.05000000074505806; - $par5 = $par5 * 0.25; - $this.$motionX = 0.0; - $this.$motionY = 0.0; - $this.$motionZ = 0.0; - } - $var19 = nms_AxisAlignedBB_copy($this.$boundingBox); - $var20 = $this.$onGround && $this.$isSneaking() && $this instanceof nms_EntityPlayer ? 1 : 0; - a: { - if (!$var20) { - $var27 = $par1; - var$10 = $par5; - } else { - $var27 = $par1; - b: { - while (true) { - $var22 = $rt_compare($par1, 0.0); - if (!$var22) - break; - if (!ju_AbstractCollection_isEmpty(nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, nms_AxisAlignedBB_getOffsetBoundingBox($this.$boundingBox, $par1, (-1.0), 0.0)))) { - var$10 = $par5; - break b; - } - $par1 = $par1 < 0.05 && $par1 >= (-0.05) ? 0.0 : $var22 <= 0 ? $par1 + 0.05 : $par1 - 0.05; - $var27 = $par1; - } - var$10 = $par5; - } - c: { - while (true) { - $var22 = $rt_compare($par5, 0.0); - if (!$var22) - break; - if (!ju_AbstractCollection_isEmpty(nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, nms_AxisAlignedBB_getOffsetBoundingBox($this.$boundingBox, 0.0, (-1.0), $par5)))) - break c; - $par5 = $par5 < 0.05 && $par5 >= (-0.05) ? 0.0 : $var22 <= 0 ? $par5 + 0.05 : $par5 - 0.05; - var$10 = $par5; - } - } - while (true) { - $var22 = $rt_compare($par1, 0.0); - if (!$var22) - break; - $var35 = $rt_compare($par5, 0.0); - if (!$var35) - break a; - if (!ju_AbstractCollection_isEmpty(nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, nms_AxisAlignedBB_getOffsetBoundingBox($this.$boundingBox, $par1, (-1.0), $par5)))) - break a; - $par1 = $par1 < 0.05 && $par1 >= (-0.05) ? 0.0 : $var22 <= 0 ? $par1 + 0.05 : $par1 - 0.05; - $par5 = $par5 < 0.05 && $par5 >= (-0.05) ? 0.0 : $var35 <= 0 ? $par5 + 0.05 : $par5 - 0.05; - $var27 = $par1; - var$10 = $par5; - } - } - } - $var34 = nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, nms_AxisAlignedBB_addCoord($this.$boundingBox, $par1, $par3, $par5)); - $var22 = 0; - $var36 = $par3; - while ($var22 < ju_ArrayList_size($var34)) { - $var36 = nms_AxisAlignedBB_calculateYOffset(ju_ArrayList_get($var34, $var22), $this.$boundingBox, $var36); - $var22 = $var22 + 1 | 0; - } - nms_AxisAlignedBB_offset($this.$boundingBox, 0.0, $var36, 0.0); - if (!$this.$field_70135_K && $par3 !== $var36) { - $par5 = 0.0; - $var36 = 0.0; - $par1 = 0.0; - } - d: { - e: { - if (!$this.$onGround) { - if ($par3 === $var36) - break e; - if ($par3 >= 0.0) - break e; - } - $var35 = 1; - break d; - } - $var35 = 0; - } - $var23 = 0; - while ($var23 < ju_ArrayList_size($var34)) { - $par1 = nms_AxisAlignedBB_calculateXOffset(ju_ArrayList_get($var34, $var23), $this.$boundingBox, $par1); - $var23 = $var23 + 1 | 0; - } - nms_AxisAlignedBB_offset($this.$boundingBox, $par1, 0.0, 0.0); - if (!$this.$field_70135_K && $var27 !== $par1) { - $par5 = 0.0; - $var36 = 0.0; - $par1 = 0.0; - } - $var22 = 0; - while ($var22 < ju_ArrayList_size($var34)) { - $par5 = nms_AxisAlignedBB_calculateZOffset(ju_ArrayList_get($var34, $var22), $this.$boundingBox, $par5); - $var22 = $var22 + 1 | 0; - } - nms_AxisAlignedBB_offset($this.$boundingBox, 0.0, 0.0, $par5); - if (!$this.$field_70135_K && var$10 !== $par5) { - $par5 = 0.0; - $var36 = 0.0; - $par1 = 0.0; - } - if ($this.$stepHeight > 0.0 && $var35 && !(!$var20 && $this.$ySize >= 0.05000000074505806) && !($var27 === $par1 && var$10 === $par5)) { - $var25 = $this.$stepHeight; - $var29 = nms_AxisAlignedBB_copy($this.$boundingBox); - nms_AxisAlignedBB_setBB($this.$boundingBox, $var19); - $var34 = nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, nms_AxisAlignedBB_addCoord($this.$boundingBox, $var27, $var25, var$10)); - $var30 = 0; - while ($var30 < ju_ArrayList_size($var34)) { - $var25 = nms_AxisAlignedBB_calculateYOffset(ju_ArrayList_get($var34, $var30), $this.$boundingBox, $var25); - $var30 = $var30 + 1 | 0; - } - nms_AxisAlignedBB_offset($this.$boundingBox, 0.0, $var25, 0.0); - if ($this.$field_70135_K) { - $var21 = var$10; - var$20 = $var27; - } else if ($par3 === $var25) { - $var21 = var$10; - var$20 = $var27; - } else { - $var21 = 0.0; - $var25 = 0.0; - var$20 = 0.0; - } - $var22 = 0; - while ($var22 < ju_ArrayList_size($var34)) { - var$20 = nms_AxisAlignedBB_calculateXOffset(ju_ArrayList_get($var34, $var22), $this.$boundingBox, var$20); - $var22 = $var22 + 1 | 0; - } - nms_AxisAlignedBB_offset($this.$boundingBox, var$20, 0.0, 0.0); - if (!$this.$field_70135_K && $var27 !== var$20) { - $var21 = 0.0; - $var25 = 0.0; - var$20 = 0.0; - } - $var22 = 0; - while ($var22 < ju_ArrayList_size($var34)) { - $var21 = nms_AxisAlignedBB_calculateZOffset(ju_ArrayList_get($var34, $var22), $this.$boundingBox, $var21); - $var22 = $var22 + 1 | 0; - } - nms_AxisAlignedBB_offset($this.$boundingBox, 0.0, 0.0, $var21); - if (!$this.$field_70135_K && var$10 !== $var21) { - $var21 = 0.0; - $var25 = 0.0; - var$20 = 0.0; - } - if (!$this.$field_70135_K && $par3 !== $var25) { - $var21 = 0.0; - $var25 = 0.0; - var$20 = 0.0; - } else { - $var25 = -$this.$stepHeight; - $var22 = 0; - while ($var22 < ju_ArrayList_size($var34)) { - $var25 = nms_AxisAlignedBB_calculateYOffset(ju_ArrayList_get($var34, $var22), $this.$boundingBox, $var25); - $var22 = $var22 + 1 | 0; - } - nms_AxisAlignedBB_offset($this.$boundingBox, 0.0, $var25, 0.0); - } - if ($par1 * $par1 + $par5 * $par5 >= var$20 * var$20 + $var21 * $var21) - nms_AxisAlignedBB_setBB($this.$boundingBox, $var29); - else { - $par1 = var$20; - $var36 = $var25; - $par5 = $var21; - } - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(675)); - $this.$posX = ($this.$boundingBox.$minX + $this.$boundingBox.$maxX) / 2.0; - $this.$posY = $this.$boundingBox.$minY + $this.$yOffset0 - $this.$ySize; - $this.$posZ = ($this.$boundingBox.$minZ + $this.$boundingBox.$maxZ) / 2.0; - $var22 = $rt_compare($var27, $par1); - $this.$isCollidedHorizontally = !$var22 && var$10 === $par5 ? 0 : 1; - $var35 = $rt_compare($par3, $var36); - $this.$isCollidedVertically = !$var35 ? 0 : 1; - $this.$onGround = $var35 && $par3 < 0.0 ? 1 : 0; - $this.$isCollided = !$this.$isCollidedHorizontally && !$this.$isCollidedVertically ? 0 : 1; - $var23 = $this.$onGround; - $ptr = 1; - case 1: - $this.$updateFallState($var36, $var23); - if ($rt_suspending()) { - break main; - } - if ($var22) - $this.$motionX = 0.0; - if ($var35) - $this.$motionY = 0.0; - if (var$10 !== $par5) - $this.$motionZ = 0.0; - $var36 = $this.$posX - $var7; - $var25 = $this.$posY - $var9; - $var27 = $this.$posZ - $var11; - if ($this.$canTriggerWalking() && !$var20 && $this.$ridingEntity === null) { - $var37 = nms_MathHelper_floor_double($this.$posX); - $var30 = nms_MathHelper_floor_double($this.$posY - 0.20000000298023224 - $this.$yOffset0); - $var31 = nms_MathHelper_floor_double($this.$posZ); - $var32 = nms_World_getBlockId($this.$worldObj, $var37, $var30, $var31); - if (!$var32) { - $var34 = $this.$worldObj; - $var22 = $var30 - 1 | 0; - $var33 = nms_World_blockGetRenderType($var34, $var37, $var22, $var31); - if (!($var33 != 11 && $var33 != 32 && $var33 != 21)) - $var32 = nms_World_getBlockId($this.$worldObj, $var37, $var22, $var31); - } - nms_Block_$callClinit(); - if ($var32 != nms_Block_ladder.$blockID) - $var25 = 0.0; - $par1 = $this.$distanceWalkedModified; - $par3 = $var36 * $var36; - $par5 = $var27 * $var27; - $this.$distanceWalkedModified = $par1 + nms_MathHelper_sqrt_double($par3 + $par5) * 0.6; - $this.$distanceWalkedOnStepModified = $this.$distanceWalkedOnStepModified + nms_MathHelper_sqrt_double($par3 + $var25 * $var25 + $par5) * 0.6; - if ($this.$distanceWalkedOnStepModified > $this.$nextStepDistance && $var32 > 0) { - $this.$nextStepDistance = ($this.$distanceWalkedOnStepModified | 0) + 1 | 0; - if (!$this.$isInWater()) { - $ptr = 5; - continue main; - } - $var39 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX * 0.20000000298023224 + $this.$motionY * $this.$motionY + $this.$motionZ * $this.$motionZ * 0.20000000298023224) * 0.3499999940395355; - if ($var39 > 1.0) - $var39 = 1.0; - $var34 = $rt_s(676); - var$26 = 1.0 + (ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0)) * 0.4000000059604645; - $ptr = 7; - continue main; - } - } - $ptr = 2; - case 2: - nms_Entity_doBlockCollisions($this); - if ($rt_suspending()) { - break main; - } - $var38 = nms_Entity_isWet($this); - if (nms_World_isBoundingBoxBurning($this.$worldObj, nms_AxisAlignedBB_contract($this.$boundingBox, 0.001, 0.001, 0.001))) { - $var22 = 1; - $ptr = 3; - continue main; - } - if ($this.$fire <= 0) - $this.$fire = -$this.$fireResistance; - if ($var38 && $this.$fire > 0) { - $var34 = $rt_s(677); - $var39 = 0.699999988079071; - var$26 = 1.600000023841858 + (ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0)) * 0.4000000059604645; - $ptr = 4; - continue main; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - case 3: - $this.$dealFireDamage($var22); - if ($rt_suspending()) { - break main; - } - if (!$var38) { - $this.$fire = $this.$fire + 1 | 0; - if (!$this.$fire) - nms_Entity_setFire($this, 8); - } - if ($var38 && $this.$fire > 0) { - $var34 = $rt_s(677); - $var39 = 0.699999988079071; - var$26 = 1.600000023841858 + (ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0)) * 0.4000000059604645; - $ptr = 4; - continue main; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - case 4: - $this.$playSound1($var34, $var39, var$26); - if ($rt_suspending()) { - break main; - } - $this.$fire = -$this.$fireResistance; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - case 5: - $this.$playStepSound($var37, $var30, $var31, $var32); - if ($rt_suspending()) { - break main; - } - $var34 = nms_Block_blocksList.data[$var32]; - $var29 = $this.$worldObj; - $ptr = 6; - case 6: - $var34.$onEntityWalking($var29, $var37, $var30, $var31, $this); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - continue main; - case 7: - $this.$playSound1($var34, $var39, var$26); - if ($rt_suspending()) { - break main; - } - $ptr = 5; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par3, $par5, $var7, $var9, $var11, $var19, $var20, $var27, var$10, $var22, $var35, $var34, $var36, $var23, $var25, $var29, $var30, $var21, var$20, $var37, $var31, $var32, $var33, $var39, var$26, $var38, $ptr); -} -function nms_Entity_doBlockCollisions($this) { - var var$1, $var1, $var2, $var3, $var4, $var5, $var6, $var8, $var9, $var10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$1 = $this.$boundingBox.$minX + 0.001; - $var1 = var$1 | 0; - if (var$1 < $var1) - $var1 = $var1 - 1 | 0; - var$1 = $this.$boundingBox.$minY + 0.001; - $var2 = var$1 | 0; - if (var$1 < $var2) - $var2 = $var2 - 1 | 0; - var$1 = $this.$boundingBox.$minZ + 0.001; - $var3 = var$1 | 0; - if (var$1 < $var3) - $var3 = $var3 - 1 | 0; - var$1 = $this.$boundingBox.$maxX - 0.001; - $var4 = var$1 | 0; - if (var$1 < $var4) - $var4 = $var4 - 1 | 0; - var$1 = $this.$boundingBox.$maxY - 0.001; - $var5 = var$1 | 0; - if (var$1 < $var5) - $var5 = $var5 - 1 | 0; - var$1 = $this.$boundingBox.$maxZ - 0.001; - $var6 = var$1 | 0; - if (var$1 < $var6) - $var6 = $var6 - 1 | 0; - a: { - if (nms_World_checkChunksExist($this.$worldObj, $var1, $var2, $var3, $var4, $var5, $var6)) - while (true) { - if ($var1 > $var4) - break a; - $var8 = $var2; - while ($var8 <= $var5) { - $var9 = $var3; - while ($var9 <= $var6) { - $var10 = nms_World_getBlockId($this.$worldObj, $var1, $var8, $var9); - if ($var10 > 0) { - nms_Block_$callClinit(); - var$11 = nms_Block_blocksList.data[$var10]; - var$12 = $this.$worldObj; - $ptr = 1; - continue main; - } - $var9 = $var9 + 1 | 0; - } - $var8 = $var8 + 1 | 0; - } - $var1 = $var1 + 1 | 0; - } - } - return; - case 1: - var$11.$onEntityCollidedWithBlock(var$12, $var1, $var8, $var9, $this); - if ($rt_suspending()) { - break main; - } - b: while (true) { - $var9 = $var9 + 1 | 0; - while ($var9 > $var6) { - $var8 = $var8 + 1 | 0; - while ($var8 > $var5) { - $var1 = $var1 + 1 | 0; - if ($var1 > $var4) - break b; - $var8 = $var2; - } - $var9 = $var3; - } - $var10 = nms_World_getBlockId($this.$worldObj, $var1, $var8, $var9); - if ($var10 <= 0) - continue; - else { - nms_Block_$callClinit(); - var$11 = nms_Block_blocksList.data[$var10]; - var$12 = $this.$worldObj; - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, $var2, $var3, $var4, $var5, $var6, $var8, $var9, $var10, var$11, var$12, $ptr); -} -function nms_Entity_playStepSound($this, $par1, $par2, $par3, $par4) { - var $var5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Block_$callClinit(); - $var5 = nms_Block_blocksList.data[$par4].$stepSound; - if (nms_World_getBlockId($this.$worldObj, $par1, $par2 + 1 | 0, $par3) == nms_Block_snow.$blockID) { - $var5 = nms_Block_snow.$stepSound; - var$6 = nms_StepSound_getStepSound($var5); - var$7 = $var5.$stepSoundVolume * 0.15000000596046448; - var$8 = $var5.$stepSoundPitch; - $ptr = 1; - continue main; - } - if (nms_Block_blocksList.data[$par4].$blockMaterial.$isLiquid()) - return; - var$6 = nms_StepSound_getStepSound($var5); - var$7 = $var5.$stepSoundVolume * 0.15000000596046448; - var$8 = $var5.$stepSoundPitch; - $ptr = 2; - continue main; - case 1: - $this.$playSound1(var$6, var$7, var$8); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $this.$playSound1(var$6, var$7, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $var5, var$6, var$7, var$8, $ptr); -} -function nms_Entity_playSound($this, $par1Str, $par2, $par3) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $par1Str, $par2, $par3); -} -function nms_Entity_canTriggerWalking($this) { - return 1; -} -function nms_Entity_updateFallState($this, $par1, $par3) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par3 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par3) { - if ($par1 < 0.0) - $this.$fallDistance = $this.$fallDistance - $par1; - } else if ($this.$fallDistance > 0.0) { - var$3 = $this.$fallDistance; - $ptr = 1; - continue main; - } - return; - case 1: - $this.$fall(var$3); - if ($rt_suspending()) { - break main; - } - $this.$fallDistance = 0.0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par3, var$3, $ptr); -} -function nms_Entity_getBoundingBox($this) { - return null; -} -function nms_Entity_dealFireDamage($this, $par1) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$isImmuneToFire) - return; - var$2 = nms_DamageSource_inFire; - $ptr = 1; - case 1: - $this.$attackEntityFrom(var$2, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, $ptr); -} -function nms_Entity_isImmuneToFire($this) { - return $this.$isImmuneToFire; -} -function nms_Entity_fall($this, $par1) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$riddenByEntity === null) - return; - var$2 = $this.$riddenByEntity; - $ptr = 1; - case 1: - var$2.$fall($par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, $ptr); -} -function nms_Entity_isWet($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7; - a: { - if (!$this.$inWater) { - var$1 = $this.$worldObj; - var$2 = $this.$posX; - var$3 = var$2 | 0; - if (var$2 < var$3) - var$3 = var$3 - 1 | 0; - var$2 = $this.$posY; - var$4 = var$2 | 0; - if (var$2 < var$4) - var$4 = var$4 - 1 | 0; - var$2 = $this.$posZ; - var$5 = var$2 | 0; - if (var$2 < var$5) - var$5 = var$5 - 1 | 0; - if (!nms_World_canLightningStrikeAt(var$1, var$3, var$4, var$5)) { - var$1 = $this.$worldObj; - var$2 = $this.$posX; - var$4 = var$2 | 0; - if (var$2 < var$4) - var$4 = var$4 - 1 | 0; - var$2 = $this.$posY + $this.$height1; - var$5 = var$2 | 0; - if (var$2 < var$5) - var$5 = var$5 - 1 | 0; - var$6 = $this.$posZ; - var$3 = var$6 | 0; - if (var$6 < var$3) - var$3 = var$3 - 1 | 0; - if (!nms_World_canLightningStrikeAt(var$1, var$4, var$5, var$3)) { - var$7 = 0; - break a; - } - } - } - var$7 = 1; - } - return var$7; -} -function nms_Entity_isInWater($this) { - return $this.$inWater; -} -function nms_Entity_handleWaterMovement($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $var1, $var2, var$12, $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();var$12 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $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: - var$1 = $this.$worldObj; - var$2 = $this.$boundingBox; - var$3 = var$2.$minX - 0.0; - var$4 = var$2.$minY + 0.4000000059604645; - var$5 = var$2.$minZ - 0.0; - var$6 = var$2.$maxX + 0.0; - var$7 = var$2.$maxY + (-0.4000000059604645); - var$8 = var$2.$maxZ + 0.0; - var$2 = nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$3, var$4, var$5, var$6, var$7, var$8); - var$3 = var$2.$minX + 0.001; - var$4 = var$2.$minY + 0.001; - var$5 = var$2.$minZ + 0.001; - var$6 = var$2.$maxX - 0.001; - var$7 = var$2.$maxY - 0.001; - var$8 = var$2.$maxZ - 0.001; - var$9 = nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$3, var$4, var$5, var$6, var$7, var$8); - nms_Material_$callClinit(); - if (!nms_World_handleMaterialAcceleration(var$1, var$9, nms_Material_water, $this)) - $this.$inWater = 0; - else { - if (!$this.$inWater && !$this.$firstUpdate) { - $var1 = jl_Math_sqrt($this.$motionX * $this.$motionX * 0.20000000298023224 + $this.$motionY * $this.$motionY + $this.$motionZ * $this.$motionZ * 0.20000000298023224) * 0.20000000298023224; - if ($var1 > 1.0) - $var1 = 1.0; - var$1 = $rt_s(678); - $var2 = 1.0 + (Math.random() - Math.random()) * 0.4000000059604645; - $ptr = 1; - continue main; - } - $this.$fallDistance = 0.0; - $this.$inWater = 1; - $this.$fire = 0; - } - return $this.$inWater; - case 1: - $this.$playSound1(var$1, $var1, $var2); - if ($rt_suspending()) { - break main; - } - var$6 = $this.$boundingBox.$minY; - var$12 = var$6 | 0; - if (var$6 < var$12) - var$12 = var$12 - 1 | 0; - $var2 = var$12; - $var3 = 0; - var$6 = $var2 + 1.0; - while (true) { - if ($var3 >= 1.0 + $this.$width1 * 20.0) { - $var3 = 0; - if ($var3 >= 1.0 + $this.$width1 * 20.0) { - $this.$fallDistance = 0.0; - $this.$inWater = 1; - $this.$fire = 0; - return $this.$inWater; - } - $var4 = (Math.random() * 2.0 - 1.0) * $this.$width1; - $var5 = (Math.random() * 2.0 - 1.0) * $this.$width1; - var$1 = $this.$worldObj; - var$2 = $rt_s(679); - var$7 = $this.$posX + $var4; - var$8 = $this.$posZ + $var5; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 2; - continue main; - } - $var4 = (Math.random() * 2.0 - 1.0) * $this.$width1; - $var5 = (Math.random() * 2.0 - 1.0) * $this.$width1; - var$1 = $this.$worldObj; - var$2 = $rt_s(680); - var$7 = $this.$posX + $var4; - var$8 = $this.$posZ + $var5; - var$3 = $this.$motionX; - var$4 = $this.$motionY - Math.random() * 0.20000000298023224; - var$5 = $this.$motionZ; - var$12 = 0; - if (var$12 < var$1.$worldAccesses.$size0) - break; - $var3 = $var3 + 1 | 0; - } - var$9 = var$1.$worldAccesses; - if (var$12 >= 0 && var$12 < var$9.$size0) { - var$9 = var$9.$array1.data[var$12]; - $ptr = 3; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - case 2: - nms_World_spawnParticle(var$1, var$2, var$7, var$6, var$8, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - $var3 = $var3 + 1 | 0; - if ($var3 >= 1.0 + $this.$width1 * 20.0) { - $this.$fallDistance = 0.0; - $this.$inWater = 1; - $this.$fire = 0; - return $this.$inWater; - } - $var4 = (Math.random() * 2.0 - 1.0) * $this.$width1; - $var5 = (Math.random() * 2.0 - 1.0) * $this.$width1; - var$1 = $this.$worldObj; - var$2 = $rt_s(679); - var$7 = $this.$posX + $var4; - var$8 = $this.$posZ + $var5; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - continue main; - case 3: - nms_RenderGlobal_doSpawnParticle(var$9, var$2, var$7, var$6, var$8, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - var$12 = var$12 + 1 | 0; - while (var$12 >= var$1.$worldAccesses.$size0) { - $var3 = $var3 + 1 | 0; - if ($var3 >= 1.0 + $this.$width1 * 20.0) { - $var3 = 0; - if ($var3 >= 1.0 + $this.$width1 * 20.0) { - $this.$fallDistance = 0.0; - $this.$inWater = 1; - $this.$fire = 0; - return $this.$inWater; - } - $var4 = (Math.random() * 2.0 - 1.0) * $this.$width1; - $var5 = (Math.random() * 2.0 - 1.0) * $this.$width1; - var$1 = $this.$worldObj; - var$2 = $rt_s(679); - var$7 = $this.$posX + $var4; - var$8 = $this.$posZ + $var5; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 2; - continue main; - } - $var4 = (Math.random() * 2.0 - 1.0) * $this.$width1; - $var5 = (Math.random() * 2.0 - 1.0) * $this.$width1; - var$1 = $this.$worldObj; - var$2 = $rt_s(680); - var$7 = $this.$posX + $var4; - var$8 = $this.$posZ + $var5; - var$3 = $this.$motionX; - var$4 = $this.$motionY - Math.random() * 0.20000000298023224; - var$5 = $this.$motionZ; - var$12 = 0; - } - var$9 = var$1.$worldAccesses; - if (var$12 >= 0 && var$12 < var$9.$size0) { - var$9 = var$9.$array1.data[var$12]; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $var1, $var2, var$12, $var3, $var4, $var5, $ptr); -} -function nms_Entity_isInsideOfMaterial($this, $par1Material) { - var $var2, var$3, $var4, $var6, $var8, $var5, $var7; - $var2 = $this.$posY + $this.$getEyeHeight(); - var$3 = $this.$posX; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - $var6 = $var2 | 0; - if ($var2 < $var6) - $var6 = $var6 - 1 | 0; - $var8 = $var6; - $var5 = $var8 | 0; - if ($var8 < $var5) - $var5 = $var5 - 1 | 0; - var$3 = $this.$posZ; - $var6 = var$3 | 0; - if (var$3 < $var6) - $var6 = $var6 - 1 | 0; - $var7 = nms_World_getBlockId($this.$worldObj, $var4, $var5, $var6); - if ($var7) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var7].$blockMaterial === $par1Material) { - $var4 = nms_World_getBlockMetadata($this.$worldObj, $var4, $var5, $var6); - if ($var4 >= 8) - $var4 = 0; - return $var2 >= ($var5 + 1 | 0) - (($var4 + 1 | 0) / 9.0 - 0.1111111119389534) ? 0 : 1; - } - } - return 0; -} -function nms_Entity_getEyeHeight($this) { - return 0.0; -} -function nms_Entity_handleLavaMovement($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9; - var$1 = $this.$worldObj; - var$2 = $this.$boundingBox; - var$3 = var$2.$minX + 0.10000000149011612; - var$4 = var$2.$minY + 0.4000000059604645; - var$5 = var$2.$minZ + 0.10000000149011612; - var$6 = var$2.$maxX + (-0.10000000149011612); - var$7 = var$2.$maxY + (-0.4000000059604645); - var$8 = var$2.$maxZ + (-0.10000000149011612); - var$9 = nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$3, var$4, var$5, var$6, var$7, var$8); - nms_Material_$callClinit(); - return nms_World_isMaterialInBB(var$1, var$9, nms_Material_lava); -} -function nms_Entity_moveFlying($this, $par1, $par2, $par3) { - var $var4, $var5, $var6; - $var4 = $par1 * $par1 + $par2 * $par2; - if ($var4 >= 9.999999747378752E-5) { - $var5 = jl_Math_sqrt($var4); - if ($var5 < 1.0) - $var5 = 1.0; - $par3 = $par3 / $var5; - $par1 = $par1 * $par3; - $par3 = $par2 * $par3; - $var4 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - $var5 = nms_MathHelper_SIN_TABLE.data[($var4 * 10430.3779296875 | 0) & 65535]; - $par2 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - $var6 = nms_MathHelper_SIN_TABLE.data[($par2 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $this.$motionX = $this.$motionX + $par1 * $var6 - $par3 * $var5; - $this.$motionZ = $this.$motionZ + $par3 * $var6 + $par1 * $var5; - } -} -function nms_Entity_getBrightnessForRender($this, $par1) { - var $var4, $var2, $var3, $var6, var$6, var$7, var$8; - $var4 = $this.$posX; - $var2 = $var4 | 0; - if ($var4 < $var2) - $var2 = $var2 - 1 | 0; - $var4 = $this.$posZ; - $var3 = $var4 | 0; - if ($var4 < $var3) - $var3 = $var3 - 1 | 0; - $var4 = ($this.$boundingBox.$maxY - $this.$boundingBox.$minY) * 0.66; - $var4 = $this.$posY - $this.$yOffset0 + $var4; - $var6 = $var4 | 0; - if ($var4 < $var6) - $var6 = $var6 - 1 | 0; - var$6 = $this.$worldObj; - var$7 = 0; - var$8 = nms_World_getSkyBlockTypeBrightness(var$6, nms_EnumSkyBlock_Sky, $var2, $var6, $var3); - $var6 = nms_World_getSkyBlockTypeBrightness(var$6, nms_EnumSkyBlock_Block, $var2, $var6, $var3); - if ($var6 >= var$7) - var$7 = $var6; - return var$8 << 20 | var$7 << 4; -} -function nms_Entity_getBrightness($this, $par1) { - var $var4, $var2, $var3, $var6, var$6; - $var4 = $this.$posX; - $var2 = $var4 | 0; - if ($var4 < $var2) - $var2 = $var2 - 1 | 0; - $var4 = $this.$posZ; - $var3 = $var4 | 0; - if ($var4 < $var3) - $var3 = $var3 - 1 | 0; - $var4 = ($this.$boundingBox.$maxY - $this.$boundingBox.$minY) * 0.66; - $var4 = $this.$posY - $this.$yOffset0 + $var4; - $var6 = $var4 | 0; - if ($var4 < $var6) - $var6 = $var6 - 1 | 0; - var$6 = $this.$worldObj; - return var$6.$provider.$lightBrightnessTable.data[nms_World_getBlockLightValue_do(var$6, $var2, $var6, $var3, 1)]; -} -function nms_Entity_setWorld($this, $par1World) { - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; -} -function nms_Entity_setPositionAndRotation($this, $par1, $par3, $par5, $par7, $par8) { - var $var9; - $this.$posX = $par1; - $this.$prevPosX = $par1; - $this.$posY = $par3; - $this.$prevPosY = $par3; - $this.$posZ = $par5; - $this.$prevPosZ = $par5; - $this.$rotationYaw = $par7; - $this.$prevRotationYaw = $par7; - $this.$rotationPitch = $par8; - $this.$prevRotationPitch = $par8; - $this.$ySize = 0.0; - $var9 = $this.$prevRotationYaw - $par7; - if ($var9 < (-180.0)) - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - if ($var9 >= 180.0) - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$rotationYaw = $par7 % 360.0; - $this.$rotationPitch = $par8 % 360.0; -} -function nms_Entity_setLocationAndAngles($this, $par1, $par3, $par5, $par7, $par8) { - $this.$posX = $par1; - $this.$prevPosX = $par1; - $this.$lastTickPosX = $par1; - $par1 = $par3 + $this.$yOffset0; - $this.$posY = $par1; - $this.$prevPosY = $par1; - $this.$lastTickPosY = $par1; - $this.$posZ = $par5; - $this.$prevPosZ = $par5; - $this.$lastTickPosZ = $par5; - $this.$rotationYaw = $par7; - $this.$rotationPitch = $par8; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); -} -function nms_Entity_getDistanceToEntity($this, $par1Entity) { - var $var2, $var3, $var4; - $var2 = $this.$posX - $par1Entity.$posX; - $var3 = $this.$posY - $par1Entity.$posY; - $var4 = $this.$posZ - $par1Entity.$posZ; - return jl_Math_sqrt($var2 * $var2 + $var3 * $var3 + $var4 * $var4); -} -function nms_Entity_getDistanceSq($this, $par1, $par3, $par5) { - var $var7, $var9, $var11; - $var7 = $this.$posX - $par1; - $var9 = $this.$posY - $par3; - $var11 = $this.$posZ - $par5; - return $var7 * $var7 + $var9 * $var9 + $var11 * $var11; -} -function nms_Entity_getDistance($this, $par1, $par3, $par5) { - var $var7, $var9, $var11; - $var7 = $this.$posX - $par1; - $var9 = $this.$posY - $par3; - $var11 = $this.$posZ - $par5; - return jl_Math_sqrt($var7 * $var7 + $var9 * $var9 + $var11 * $var11); -} -function nms_Entity_getDistanceSqToEntity($this, $par1Entity) { - var $var2, $var4, $var6; - $var2 = $this.$posX - $par1Entity.$posX; - $var4 = $this.$posY - $par1Entity.$posY; - $var6 = $this.$posZ - $par1Entity.$posZ; - return $var2 * $var2 + $var4 * $var4 + $var6 * $var6; -} -function nms_Entity_onCollideWithPlayer($this, $par1EntityPlayer) { - return; -} -function nms_Entity_applyEntityCollision($this, $par1Entity) { - var $var2, $var4, $var6, var$5, $var8; - if ($par1Entity.$riddenByEntity !== $this && $par1Entity.$ridingEntity !== $this) { - $var2 = $par1Entity.$posX - $this.$posX; - $var4 = $par1Entity.$posZ - $this.$posZ; - $var6 = nms_MathHelper_abs_max($var2, $var4); - if ($var6 >= 0.009999999776482582) { - $var6 = jl_Math_sqrt($var6); - $var2 = $var2 / $var6; - var$5 = $var4 / $var6; - $var8 = 1.0 / $var6; - if ($var8 > 1.0) - $var8 = 1.0; - $var2 = $var2 * $var8; - $var4 = var$5 * $var8; - $var2 = $var2 * 0.05000000074505806; - $var4 = $var4 * 0.05000000074505806; - $var2 = $var2 * (1.0 - $this.$entityCollisionReduction); - $var4 = $var4 * (1.0 - $this.$entityCollisionReduction); - $this.$addVelocity( -$var2, 0.0, -$var4); - $par1Entity.$motionX = $par1Entity.$motionX + $var2; - $par1Entity.$motionY = $par1Entity.$motionY + 0.0; - $par1Entity.$motionZ = $par1Entity.$motionZ + $var4; - $par1Entity.$isAirBorne = 1; - } - } -} -function nms_Entity_addVelocity($this, $par1, $par3, $par5) { - $this.$motionX = $this.$motionX + $par1; - $this.$motionY = $this.$motionY + $par3; - $this.$motionZ = $this.$motionZ + $par5; - $this.$isAirBorne = 1; -} -function nms_Entity_setBeenAttacked($this) { - $this.$velocityChanged = 1; -} -function nms_Entity_attackEntityFrom($this, $par1DamageSource, $par2) { - if ($this.$invulnerable) - return 0; - $this.$velocityChanged = 1; - return 0; -} -function nms_Entity_canBeCollidedWith($this) { - return 0; -} -function nms_Entity_canBePushed($this) { - return 0; -} -function nms_Entity_addToPlayerScore($this, $par1Entity, $par2) { - return; -} -function nms_Entity_isInRangeToRenderVec3D($this, $par1Vec3) { - var $var2, $var4, $var6; - $var2 = $this.$posX - $par1Vec3.$xCoord; - $var4 = $this.$posY - $par1Vec3.$yCoord; - $var6 = $this.$posZ - $par1Vec3.$zCoord; - return $this.$isInRangeToRenderDist($var2 * $var2 + $var4 * $var4 + $var6 * $var6); -} -function nms_Entity_isInRangeToRenderDist($this, $par1) { - var var$2, var$3; - var$2 = $this.$boundingBox; - var$3 = (var$2.$maxX - var$2.$minX + var$2.$maxY - var$2.$minY + var$2.$maxZ - var$2.$minZ) / 3.0 * 64.0 * $this.$renderDistanceWeight; - return $par1 >= var$3 * var$3 ? 0 : 1; -} -function nms_Entity_getShadowSize($this) { - return $this.$height1 / 2.0; -} -function nms_Entity_dropItem($this, $par1, $par2) { - return nms_Entity_dropItemWithOffset($this, $par1, $par2, 0.0); -} -function nms_Entity_dropItemWithOffset($this, $par1, $par2, $par3) { - var var$4; - var$4 = new nms_ItemStack; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = $par1; - var$4.$stackSize = $par2; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return nms_Entity_entityDropItem($this, var$4, $par3); -} -function nms_Entity_entityDropItem($this, $par1ItemStack, $par2) { - var $var3; - $var3 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + $par2, $this.$posZ); - nms_DataWatcher_updateObject($var3.$dataWatcher, 10, $par1ItemStack); - nms_DataWatcher_setObjectWatched($var3.$dataWatcher, 10); - $var3.$delayBeforeCanPickup = 10; - nms_WorldClient_spawnEntityInWorld($this.$worldObj, $var3); - return $var3; -} -function nms_Entity_isEntityAlive($this) { - return $this.$isDead ? 0 : 1; -} -function nms_Entity_isEntityInsideOpaqueBlock($this) { - var $var1, $var2, $var3, $var4, var$5, $var5, $var6, $var7; - $var1 = 0; - while ($var1 < 8) { - $var2 = ((($var1 >> 0) % 2 | 0) - 0.5) * $this.$width1 * 0.800000011920929; - $var3 = ((($var1 >> 1) % 2 | 0) - 0.5) * 0.10000000149011612; - $var4 = ((($var1 >> 2) % 2 | 0) - 0.5) * $this.$width1 * 0.800000011920929; - var$5 = $this.$posX + $var2; - $var5 = var$5 | 0; - if (var$5 < $var5) - $var5 = $var5 - 1 | 0; - var$5 = $this.$posY + $this.$getEyeHeight() + $var3; - $var6 = var$5 | 0; - if (var$5 < $var6) - $var6 = $var6 - 1 | 0; - var$5 = $this.$posZ + $var4; - $var7 = var$5 | 0; - if (var$5 < $var7) - $var7 = $var7 - 1 | 0; - if (nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var5, $var6, $var7))) - return 1; - $var1 = $var1 + 1 | 0; - } - return 0; -} -function nms_Entity_interact($this, $par1EntityPlayer) { - return 0; -} -function nms_Entity_getCollisionBox($this, $par1Entity) { - return null; -} -function nms_Entity_updateRidden($this) { - var $var1, $var3, 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();$var3 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$ridingEntity.$isDead) { - $this.$ridingEntity = null; - return; - } - $this.$motionX = 0.0; - $this.$motionY = 0.0; - $this.$motionZ = 0.0; - $ptr = 1; - case 1: - $this.$onUpdate(); - if ($rt_suspending()) { - break main; - } - if ($this.$ridingEntity !== null) { - $this.$ridingEntity.$updateRiderPosition(); - $this.$entityRiderYawDelta = $this.$entityRiderYawDelta + $this.$ridingEntity.$rotationYaw - $this.$ridingEntity.$prevRotationYaw; - $this.$entityRiderPitchDelta = $this.$entityRiderPitchDelta + $this.$ridingEntity.$rotationPitch - $this.$ridingEntity.$prevRotationPitch; - while ($this.$entityRiderYawDelta >= 180.0) { - $this.$entityRiderYawDelta = $this.$entityRiderYawDelta - 360.0; - } - while ($this.$entityRiderYawDelta < (-180.0)) { - $this.$entityRiderYawDelta = $this.$entityRiderYawDelta + 360.0; - } - while ($this.$entityRiderPitchDelta >= 180.0) { - $this.$entityRiderPitchDelta = $this.$entityRiderPitchDelta - 360.0; - } - while ($this.$entityRiderPitchDelta < (-180.0)) { - $this.$entityRiderPitchDelta = $this.$entityRiderPitchDelta + 360.0; - } - $var1 = $this.$entityRiderYawDelta * 0.5; - $var3 = $this.$entityRiderPitchDelta * 0.5; - var$3 = 10.0; - if ($var1 > var$3) - $var1 = var$3; - var$4 = (-10.0); - if ($var1 < var$4) - $var1 = var$4; - if ($var3 <= var$3) - var$3 = $var3; - if (var$3 >= var$4) - var$4 = var$3; - $this.$entityRiderYawDelta = $this.$entityRiderYawDelta - $var1; - $this.$entityRiderPitchDelta = $this.$entityRiderPitchDelta - var$4; - $this.$rotationYaw = $this.$rotationYaw + $var1; - $this.$rotationPitch = $this.$rotationPitch + var$4; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var3, var$3, var$4, $ptr); -} -function nms_Entity_updateRiderPosition($this) { - if ($this.$riddenByEntity !== null) { - if (!($this.$riddenByEntity instanceof nms_EntityPlayer && $this.$riddenByEntity.$func_71066_bF())) { - $this.$riddenByEntity.$lastTickPosX = $this.$lastTickPosX; - $this.$riddenByEntity.$lastTickPosY = $this.$lastTickPosY + $this.$getMountedYOffset() + $this.$riddenByEntity.$getYOffset(); - $this.$riddenByEntity.$lastTickPosZ = $this.$lastTickPosZ; - } - nms_Entity_setPosition($this.$riddenByEntity, $this.$posX, $this.$posY + $this.$getMountedYOffset() + $this.$riddenByEntity.$getYOffset(), $this.$posZ); - } -} -function nms_Entity_getYOffset($this) { - return $this.$yOffset0; -} -function nms_Entity_getMountedYOffset($this) { - return $this.$height1 * 0.75; -} -function nms_Entity_mountEntity($this, $par1Entity) { - $this.$entityRiderPitchDelta = 0.0; - $this.$entityRiderYawDelta = 0.0; - if ($par1Entity !== null) { - if ($this.$ridingEntity !== null) - $this.$ridingEntity.$riddenByEntity = null; - $this.$ridingEntity = $par1Entity; - $par1Entity.$riddenByEntity = $this; - } else { - if ($this.$ridingEntity !== null) { - nms_Entity_setLocationAndAngles($this, $this.$ridingEntity.$posX, $this.$ridingEntity.$boundingBox.$minY + $this.$ridingEntity.$height1, $this.$ridingEntity.$posZ, $this.$rotationYaw, $this.$rotationPitch); - $this.$ridingEntity.$riddenByEntity = null; - } - $this.$ridingEntity = null; - } -} -function nms_Entity_unmountEntity($this, $par1Entity) { - var $var3, $var5, $var7, $var9, $var11, $var13, $var14, $var2, var$10; - $var3 = $this.$posX; - $var5 = $this.$posY; - $var7 = $this.$posZ; - if ($par1Entity !== null) { - $var3 = $par1Entity.$posX; - $var5 = $par1Entity.$boundingBox.$minY + $par1Entity.$height1; - $var7 = $par1Entity.$posZ; - } - $var9 = (-1.5); - while ($var9 < 2.0) { - $var11 = (-1.5); - while ($var11 < 2.0) { - a: { - if (!($var9 === 0.0 && $var11 === 0.0)) { - $var13 = $this.$posX + $var9 | 0; - $var14 = $this.$posZ + $var11 | 0; - $par1Entity = $this.$boundingBox; - $var2 = nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), $par1Entity.$minX + $var9, $par1Entity.$minY + 1.0, $par1Entity.$minZ + $var11, $par1Entity.$maxX + $var9, $par1Entity.$maxY + 1.0, $par1Entity.$maxZ + $var11); - if (nms_World_getCollidingBlockBounds($this.$worldObj, $var2).$size0 ? 0 : 1) { - $var2 = $this.$worldObj; - var$10 = $this.$posY | 0; - nms_Block_$callClinit(); - if (nms_World_isBlockTopFacingSurfaceSolid($var2, nms_Block_blocksList.data[nms_World_getBlockId($var2, $var13, var$10, $var14)], nms_World_getBlockMetadata($var2, $var13, var$10, $var14))) { - nms_Entity_setLocationAndAngles($this, $this.$posX + $var9, $this.$posY + 1.0, $this.$posZ + $var11, $this.$rotationYaw, $this.$rotationPitch); - return; - } - $var2 = $this.$worldObj; - var$10 = ($this.$posY | 0) - 1 | 0; - if (!nms_World_isBlockTopFacingSurfaceSolid($var2, nms_Block_blocksList.data[nms_World_getBlockId($var2, $var13, var$10, $var14)], nms_World_getBlockMetadata($var2, $var13, var$10, $var14))) { - $var13 = nms_World_getBlockId($this.$worldObj, $var13, ($this.$posY | 0) - 1 | 0, $var14); - if (!$var13) { - nms_Material_$callClinit(); - $par1Entity = nms_Material_air; - } else - $par1Entity = nms_Block_blocksList.data[$var13].$blockMaterial; - nms_Material_$callClinit(); - if ($par1Entity !== nms_Material_water) - break a; - } - $var3 = $this.$posX + $var9; - $var5 = $this.$posY + 1.0; - $var7 = $this.$posZ + $var11; - } - } - } - $var11 = $var11 + 1.0; - } - $var9 = $var9 + 1.0; - } - nms_Entity_setLocationAndAngles($this, $var3, $var5, $var7, $this.$rotationYaw, $this.$rotationPitch); -} -function nms_Entity_setPositionAndRotation2($this, $par1, $par3, $par5, $par7, $par8, $par9) { - var $var10, $var14, var$9, $var11, var$11, var$12, var$13, var$14, $var13; - nms_Entity_setPosition($this, $par1, $par3, $par5); - $this.$rotationYaw = $par7 % 360.0; - $this.$rotationPitch = $par8 % 360.0; - $var10 = $this.$worldObj; - $var14 = $this.$boundingBox; - var$9 = $var14.$minX + 0.03125; - $var11 = $var14.$minY + 0.0; - var$11 = $var14.$minZ + 0.03125; - var$12 = $var14.$maxX - 0.03125; - var$13 = $var14.$maxY - 0.0; - var$14 = $var14.$maxZ - 0.03125; - $var10 = nms_World_getCollidingBoundingBoxes($var10, $this, nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$9, $var11, var$11, var$12, var$13, var$14)); - $par9 = $var10.$size0 ? 0 : 1; - a: { - if (!$par9) { - $var11 = 0.0; - $var13 = 0; - while ($var13 < $var10.$size0) { - if ($var13 < 0) - break a; - if ($var13 >= $var10.$size0) - break a; - $var14 = $var10.$array1.data[$var13]; - if ($var14.$maxY > $var11) - $var11 = $var14.$maxY; - $var13 = $var13 + 1 | 0; - } - nms_Entity_setPosition($this, $par1, $par3 + $var11 - $this.$boundingBox.$minY, $par5); - } - return; - } - $var14 = new jl_IndexOutOfBoundsException; - $var14.$suppressionEnabled = 1; - $var14.$writableStackTrace = 1; - $rt_throw($var14); -} -function nms_Entity_getCollisionBorderSize($this) { - return 0.10000000149011612; -} -function nms_Entity_getLookVec($this) { - return null; -} -function nms_Entity_setInPortal($this) { - var $var1, $var3; - if ($this.$timeUntilPortal > 0) - $this.$timeUntilPortal = $this.$getPortalCooldown(); - else { - $var1 = $this.$prevPosX - $this.$posX; - $var3 = $this.$prevPosZ - $this.$posZ; - if (!$this.$worldObj.$isRemote && !$this.$inPortal) - $this.$teleportDirection = nms_Direction_getMovementDirection($var1, $var3); - $this.$inPortal = 1; - } -} -function nms_Entity_getPortalCooldown($this) { - return 900; -} -function nms_Entity_setVelocity($this, $par1, $par3, $par5) { - $this.$motionX = $par1; - $this.$motionY = $par3; - $this.$motionZ = $par5; -} -function nms_Entity_handleHealthUpdate($this, $par1) { - return; -} -function nms_Entity_performHurtAnimation($this) { - return; -} -function nms_Entity_updateCloak($this) { - return; -} -function nms_Entity_getLastActiveItems($this) { - return null; -} -function nms_Entity_setCurrentItemOrArmor($this, $par1, $par2ItemStack) { - return; -} -function nms_Entity_isBurning($this) { - return $this.$fire <= 0 && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 1) ? 0 : 1) ? 0 : 1; -} -function nms_Entity_isRiding($this) { - return $this.$ridingEntity === null && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 4) ? 0 : 1) ? 0 : 1; -} -function nms_Entity_isSneaking($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 2) ? 0 : 1; -} -function nms_Entity_setSneaking($this, $par1) { - nms_Entity_setFlag($this, 1, $par1); -} -function nms_Entity_isSprinting($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 8) ? 0 : 1; -} -function nms_Entity_setSprinting($this, $par1) { - nms_Entity_setFlag($this, 3, $par1); -} -function nms_Entity_isInvisible($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 32) ? 0 : 1; -} -function nms_Entity_func_98034_c($this, $par1EntityPlayer) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 32) ? 0 : 1; -} -function nms_Entity_setInvisible($this, $par1) { - nms_Entity_setFlag($this, 5, $par1); -} -function nms_Entity_isEating($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 16) ? 0 : 1; -} -function nms_Entity_setEating($this, $par1) { - nms_Entity_setFlag($this, 4, $par1); -} -function nms_Entity_getFlag($this, $par1) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 1 << $par1) ? 0 : 1; -} -function nms_Entity_setFlag($this, $par1, $par2) { - var $var3, var$4, var$5; - $var3 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0); - if ($par2) { - var$4 = $this.$dataWatcher; - $par1 = ($var3 | 1 << $par1) << 24 >> 24; - var$5 = new jl_Byte; - var$5.$value4 = $par1; - nms_DataWatcher_updateObject(var$4, 0, var$5); - } else { - var$4 = $this.$dataWatcher; - $par1 = ($var3 & (1 << $par1 ^ (-1))) << 24 >> 24; - var$5 = new jl_Byte; - var$5.$value4 = $par1; - nms_DataWatcher_updateObject(var$4, 0, var$5); - } -} -function nms_Entity_getAir($this) { - return nms_DataWatcher_getWatchableObjectShort($this.$dataWatcher, 1); -} -function nms_Entity_setAir($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = $par1 << 16 >> 16; - var$3 = new jl_Short; - var$3.$value5 = $par1; - nms_DataWatcher_updateObject(var$2, 1, var$3); -} -function nms_Entity_onStruckByLightning($this, $par1EntityLightningBolt) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1EntityLightningBolt = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = 5; - $ptr = 1; - case 1: - $this.$dealFireDamage(var$2); - if ($rt_suspending()) { - break main; - } - $this.$fire = $this.$fire + 1 | 0; - if (!$this.$fire) { - var$2 = nms_EnchantmentProtection_func_92093_a($this, 160); - if ($this.$fire < var$2) - $this.$fire = var$2; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLightningBolt, var$2, $ptr); -} -function nms_Entity_onKillEntity($this, $par1EntityLiving) { - return; -} -function nms_Entity_pushOutOfBlocks($this, $par1, $par3, $par5) { - var $var7, $var8, $var9, $var10, $var12, $var14, $var21, $var17, $var18, $var20, $var22, $var23, $var24, $var26; - $var7 = $par1 | 0; - if ($par1 < $var7) - $var7 = $var7 - 1 | 0; - $var8 = $par3 | 0; - if ($par3 < $var8) - $var8 = $var8 - 1 | 0; - $var9 = $par5 | 0; - if ($par5 < $var9) - $var9 = $var9 - 1 | 0; - $var10 = $par1 - $var7; - $var12 = $par3 - $var8; - $var14 = $par5 - $var9; - $var21 = nms_World_getCollidingBlockBounds($this.$worldObj, $this.$boundingBox).$size0 ? 0 : 1; - if ($var21 && !nms_World_func_85174_u($this.$worldObj, $var7, $var8, $var9)) - return 0; - $var17 = nms_World_func_85174_u($this.$worldObj, $var7 - 1 | 0, $var8, $var9) ? 0 : 1; - $var18 = nms_World_func_85174_u($this.$worldObj, $var7 + 1 | 0, $var8, $var9) ? 0 : 1; - nms_World_func_85174_u($this.$worldObj, $var7, $var8 - 1 | 0, $var9); - $var20 = nms_World_func_85174_u($this.$worldObj, $var7, $var8 + 1 | 0, $var9) ? 0 : 1; - $var21 = nms_World_func_85174_u($this.$worldObj, $var7, $var8, $var9 - 1 | 0) ? 0 : 1; - $var22 = nms_World_func_85174_u($this.$worldObj, $var7, $var8, $var9 + 1 | 0) ? 0 : 1; - $var23 = 3; - $var24 = 9999.0; - if ($var17 && $var10 < $var24) { - $var23 = 0; - $var24 = $var10; - } - if (!$var18) - $par1 = $var24; - else { - $par1 = 1.0 - $var10; - if ($par1 < $var24) - $var23 = 1; - else - $par1 = $var24; - } - if (!$var20) - $par3 = $par1; - else { - $par3 = 1.0 - $var12; - if ($par3 < $par1) - $var23 = 3; - else - $par3 = $par1; - } - if ($var21 && $var14 < $par3) { - $var23 = 4; - $par3 = $var14; - } - if ($var22 && 1.0 - $var14 < $par3) - $var23 = 5; - $var26 = Math.random() * 0.20000000298023224 + 0.10000000149011612; - if (!$var23) - $this.$motionX = -$var26; - if ($var23 == 1) - $this.$motionX = $var26; - if ($var23 == 2) - $this.$motionY = -$var26; - if ($var23 == 3) - $this.$motionY = $var26; - if ($var23 == 4) - $this.$motionZ = -$var26; - if ($var23 == 5) - $this.$motionZ = $var26; - return 1; -} -function nms_Entity_setInWeb($this) { - $this.$isInWeb = 1; - $this.$fallDistance = 0.0; -} -function nms_Entity_getEntityName($this) { - var $var1, var$2, var$3; - $var1 = nms_EntityList_classToStringMapping; - var$2 = jl_Class_getClass($this.constructor); - if (var$2 !== null) { - var$3 = jl_Object_identity(var$2); - $var1 = ju_HashMap_findNonNullKeyEntry($var1, var$2, var$3 & ($var1.$elementData.data.length - 1 | 0), var$3); - } else { - $var1 = $var1.$elementData.data[0]; - while ($var1 !== null && $var1.$key !== null) { - $var1 = $var1.$next1; - } - } - $var1 = $var1 === null ? null : $var1.$value0; - if ($var1 === null) - $var1 = $rt_s(681); - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(682)); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $var1); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(683)); - $var1 = jl_String__init_0(var$2.$buffer, 0, var$2.$length); - return nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var1); -} -function nms_Entity_getParts($this) { - return null; -} -function nms_Entity_isEntityEqual($this, $par1Entity) { - return $this !== $par1Entity ? 0 : 1; -} -function nms_Entity_setRotationYawHead($this, $par1) { - return; -} -function nms_Entity_canAttackWithItem($this) { - return 1; -} -function nms_Entity_func_85031_j($this, $par1Entity) { - return 0; -} -function nms_Entity_toString($this) { - var var$1, var$2, var$3, var$4, var$5, var$6; - var$1 = $rt_createArray(jl_Object, 7); - var$2 = var$1.data; - var$2[0] = jl_Class_getSimpleName(jl_Class_getClass($this.constructor)); - var$2[1] = $this.$getEntityName(); - var$2[2] = jl_Integer_valueOf($this.$entityId); - var$2[3] = $this.$worldObj === null ? $rt_s(684) : $this.$worldObj.$worldInfo.$levelName; - var$3 = $this.$posX; - var$4 = new jl_Double; - var$4.$value6 = var$3; - var$2[4] = var$4; - var$3 = $this.$posY; - var$4 = new jl_Double; - var$4.$value6 = var$3; - var$2[5] = var$4; - var$3 = $this.$posZ; - var$4 = new jl_Double; - var$4.$value6 = var$3; - var$2[6] = var$4; - var$4 = new ju_Formatter; - var$5 = ju_Locale_defaultLocale; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - var$4.$out0 = var$6; - var$4.$locale = var$5; - return ju_Formatter_toString(ju_Formatter_format(var$4, var$4.$locale, $rt_s(685), var$1)); -} -function nms_Entity_isEntityInvulnerable($this) { - return $this.$invulnerable; -} -function nms_Entity_func_82149_j($this, $par1Entity) { - nms_Entity_setLocationAndAngles($this, $par1Entity.$posX, $par1Entity.$posY, $par1Entity.$posZ, $par1Entity.$rotationYaw, $par1Entity.$rotationPitch); -} -function nms_Entity_travelToDimension($this, $par1) { - return; -} -function nms_Entity_func_82146_a($this, $par1Explosion, $par2World, $par3, $par4, $par5, $par6Block) { - return $par6Block.$getExplosionResistance($this); -} -function nms_Entity_func_96091_a($this, $par1Explosion, $par2World, $par3, $par4, $par5, $par6, $par7) { - return 1; -} -function nms_Entity_doesEntityNotTriggerPressurePlate($this) { - return 0; -} -function nms_Entity_canRenderOnFire($this) { - return $this.$isBurning(); -} -function nms_Entity_func_96092_aw($this) { - return 1; -} -function nms_Entity_getTranslatedEntityName($this) { - return $this.$getEntityName(); -} -function nms_Entity__clinit_() { - nms_Entity_nextEntityID = 0; -} -function nms_EntityLiving() { - var a = this; nms_Entity.call(a); - a.$maxHurtResistantTime = 0; - a.$field_70769_ao = 0.0; - a.$field_70770_ap = 0.0; - a.$renderYawOffset = 0.0; - a.$prevRenderYawOffset = 0.0; - a.$rotationYawHead = 0.0; - a.$prevRotationYawHead = 0.0; - a.$field_70768_au = 0.0; - a.$field_70766_av = 0.0; - a.$field_70764_aw = 0.0; - a.$field_70763_ax = 0.0; - a.$field_70753_ay = 0; - a.$field_70740_aA = 0; - a.$field_70741_aB = 0.0; - a.$entityType = null; - a.$field_70743_aD = 0.0; - a.$scoreValue = 0; - a.$field_70745_aF = 0.0; - a.$landMovementFactor = 0.0; - a.$jumpMovementFactor = 0.0; - a.$prevSwingProgress = 0.0; - a.$swingProgress = 0.0; - a.$health = 0; - a.$prevHealth = 0; - a.$carryoverDamage = 0; - a.$livingSoundTime = 0; - a.$hurtTime = 0; - a.$maxHurtTime = 0; - a.$attackedAtYaw = 0.0; - a.$deathTime = 0; - a.$attackTime = 0; - a.$prevCameraPitch = 0.0; - a.$cameraPitch0 = 0.0; - a.$dead = 0; - a.$experienceValue = 0; - a.$field_70731_aW = 0; - a.$field_70730_aX = 0.0; - a.$prevLimbYaw = 0.0; - a.$limbYaw = 0.0; - a.$limbSwing = 0.0; - a.$attackingPlayer = null; - a.$recentlyHit = 0; - a.$entityLivingToAttack = null; - a.$revengeTimer = 0; - a.$lastAttackingEntity = null; - a.$arrowHitTimer = 0; - a.$activePotionsMap = null; - a.$potionsNeedUpdate = 0; - a.$field_70748_f = 0; - a.$lookHelper = null; - a.$moveHelper = null; - a.$jumpHelper = null; - a.$bodyHelper = null; - a.$attackTarget = null; - a.$senses = null; - a.$AIMoveSpeed = 0.0; - a.$homePosition = null; - a.$maximumHomeDistance = 0.0; - a.$equipment = null; - a.$equipmentDropChances = null; - a.$previousEquipment = null; - a.$isSwingInProgress = 0; - a.$swingProgressInt = 0; - a.$canPickUpLoot = 0; - a.$persistenceRequired = 0; - a.$field_94063_bt = null; - a.$newPosRotationIncrements = 0; - a.$newPosX = 0.0; - a.$newPosY = 0.0; - a.$newPosZ = 0.0; - a.$newRotationYaw = 0.0; - a.$newRotationPitch = 0.0; - a.$field_70706_bo = 0.0; - a.$lastDamage = 0; - a.$entityAge = 0; - a.$moveStrafing = 0.0; - a.$moveForward0 = 0.0; - a.$randomYawVelocity = 0.0; - a.$isJumping = 0; - a.$defaultPitch = 0.0; - a.$moveSpeed = 0.0; - a.$jumpTicks = 0; - a.$currentTarget = null; - a.$numTicksToChaseTarget = 0; -} -var nms_EntityLiving_enchantmentProbability = null; -var nms_EntityLiving_armorEnchantmentProbability = null; -var nms_EntityLiving_armorProbability = null; -var nms_EntityLiving_pickUpLootProability = null; -function nms_EntityLiving__init_() { - var var_0 = new nms_EntityLiving(); - nms_EntityLiving__init_0(var_0); - return var_0; -} -function nms_EntityLiving__init_0($this) { - var var$1, var$2, $var2; - nms_Entity__init_0($this); - $this.$maxHurtResistantTime = 20; - $this.$renderYawOffset = 0.0; - $this.$prevRenderYawOffset = 0.0; - $this.$rotationYawHead = 0.0; - $this.$prevRotationYawHead = 0.0; - $this.$field_70753_ay = 1; - $this.$field_70740_aA = 1; - $this.$field_70741_aB = 0.0; - $this.$entityType = null; - $this.$field_70743_aD = 1.0; - $this.$scoreValue = 0; - $this.$field_70745_aF = 0.0; - $this.$landMovementFactor = 0.10000000149011612; - $this.$jumpMovementFactor = 0.019999999552965164; - $this.$health = $this.$getMaxHealth(); - $this.$attackedAtYaw = 0.0; - $this.$deathTime = 0; - $this.$attackTime = 0; - $this.$dead = 0; - $this.$field_70731_aW = (-1); - $this.$field_70730_aX = jl_Math_randomImpl() * 0.8999999761581421 + 0.10000000149011612; - $this.$attackingPlayer = null; - $this.$recentlyHit = 0; - $this.$entityLivingToAttack = null; - $this.$revengeTimer = 0; - $this.$lastAttackingEntity = null; - $this.$arrowHitTimer = 0; - $this.$activePotionsMap = ju_HashMap__init_1(16, 0.75); - $this.$potionsNeedUpdate = 1; - var$1 = new nms_ChunkCoordinates; - var$1.$posX0 = 0; - var$1.$posY0 = 0; - var$1.$posZ0 = 0; - $this.$homePosition = var$1; - $this.$maximumHomeDistance = (-1.0); - $this.$equipment = $rt_createArray(nms_ItemStack, 5); - $this.$equipmentDropChances = $rt_createFloatArray(5); - $this.$previousEquipment = $rt_createArray(nms_ItemStack, 5); - $this.$isSwingInProgress = 0; - $this.$swingProgressInt = 0; - $this.$canPickUpLoot = 0; - $this.$persistenceRequired = 0; - var$1 = new nms_CombatTracker; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - var$1.$field_94556_a = var$2; - var$1.$field_94555_c = 0; - var$1.$field_94552_d = 0; - var$1.$field_94553_e = 0; - var$1.$field_94554_b = $this; - $this.$field_94063_bt = var$1; - $this.$field_70706_bo = 0.0; - $this.$lastDamage = 0; - $this.$entityAge = 0; - $this.$isJumping = 0; - $this.$defaultPitch = 0.0; - $this.$moveSpeed = 0.699999988079071; - $this.$jumpTicks = 0; - $this.$numTicksToChaseTarget = 0; - $this.$preventEntitySpawning = 1; - var$1 = new nms_EntityLookHelper; - var$1.$isLooking = 0; - var$1.$entity = $this; - $this.$lookHelper = var$1; - var$1 = new nms_EntityMoveHelper; - var$1.$update2 = 0; - var$1.$entity0 = $this; - var$1.$posX1 = $this.$posX; - var$1.$posY1 = $this.$posY; - var$1.$posZ1 = $this.$posZ; - $this.$moveHelper = var$1; - var$1 = new nms_EntityJumpHelper; - var$1.$isJumping0 = 0; - var$1.$entity1 = $this; - $this.$jumpHelper = var$1; - var$1 = new nms_EntityBodyHelper; - var$1.$field_75666_b = 0; - var$1.$field_75667_c = 0.0; - var$1.$theLiving = $this; - $this.$bodyHelper = var$1; - var$1 = new nms_EntitySenses; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - var$1.$seenEntities = var$2; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - var$1.$unseenEntities = var$2; - var$1.$entityObj = $this; - $this.$senses = var$1; - $this.$field_70770_ap = (jl_Math_randomImpl() + 1.0) * 0.009999999776482582; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$field_70769_ao = jl_Math_randomImpl() * 12398.0; - $this.$rotationYaw = jl_Math_randomImpl() * 3.141592653589793 * 2.0; - $this.$rotationYawHead = $this.$rotationYaw; - $var2 = 0; - while ($var2 < $this.$equipmentDropChances.data.length) { - $this.$equipmentDropChances.data[$var2] = 0.08500000089406967; - $var2 = $var2 + 1 | 0; - } - $this.$stepHeight = 0.5; -} -function nms_EntityLiving_getMoveHelper($this) { - return $this.$moveHelper; -} -function nms_EntityLiving_getJumpHelper($this) { - return $this.$jumpHelper; -} -function nms_EntityLiving_getRNG($this) { - return $this.$rand0; -} -function nms_EntityLiving_setLastAttackingEntity($this, $par1Entity) { - if ($par1Entity instanceof nms_EntityLiving) - $this.$lastAttackingEntity = $par1Entity; -} -function nms_EntityLiving_setRotationYawHead($this, $par1) { - $this.$rotationYawHead = $par1; -} -function nms_EntityLiving_getAIMoveSpeed($this) { - return $this.$AIMoveSpeed; -} -function nms_EntityLiving_setAIMoveSpeed($this, $par1) { - $this.$AIMoveSpeed = $par1; - $this.$moveForward0 = $par1; -} -function nms_EntityLiving_getAttackTarget($this) { - return $this.$attackTarget; -} -function nms_EntityLiving_setAttackTarget($this, $par1EntityLiving) { - $this.$attackTarget = $par1EntityLiving; -} -function nms_EntityLiving_updateFallState($this, $par1, $par3) { - var var$3, $var4, $var5, $var6, $var7, var$8, var$9, $var8, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var8 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$3 = $thread.pop();$par3 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$isInWater()) { - $ptr = 1; - continue main; - } - if ($par3 && $this.$fallDistance > 0.0) { - var$3 = $this.$posX; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - var$3 = $this.$posY - 0.20000000298023224 - $this.$yOffset0; - $var5 = var$3 | 0; - if (var$3 < $var5) - $var5 = $var5 - 1 | 0; - var$3 = $this.$posZ; - $var6 = var$3 | 0; - if (var$3 < $var6) - $var6 = $var6 - 1 | 0; - $var7 = nms_World_getBlockId($this.$worldObj, $var4, $var5, $var6); - if (!$var7) { - var$8 = $this.$worldObj; - var$9 = $var5 - 1 | 0; - $var8 = nms_World_getBlockId(var$8, $var4, var$9, $var6); - nms_Block_$callClinit(); - $var8 = nms_Block_blocksList.data[$var8] === null ? (-1) : nms_Block_blocksList.data[$var8].$getRenderType(); - if (!($var8 != 11 && $var8 != 32 && $var8 != 21)) - $var7 = nms_World_getBlockId($this.$worldObj, $var4, var$9, $var6); - } - if ($var7 > 0) { - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$var7]; - var$11 = $this.$worldObj; - var$12 = $this.$fallDistance; - $ptr = 3; - continue main; - } - } - $ptr = 2; - continue main; - case 1: - nms_Entity_handleWaterMovement($this); - if ($rt_suspending()) { - break main; - } - if ($par3 && $this.$fallDistance > 0.0) { - var$3 = $this.$posX; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - var$3 = $this.$posY - 0.20000000298023224 - $this.$yOffset0; - $var5 = var$3 | 0; - if (var$3 < $var5) - $var5 = $var5 - 1 | 0; - var$3 = $this.$posZ; - $var6 = var$3 | 0; - if (var$3 < $var6) - $var6 = $var6 - 1 | 0; - $var7 = nms_World_getBlockId($this.$worldObj, $var4, $var5, $var6); - if (!$var7) { - var$8 = $this.$worldObj; - var$9 = $var5 - 1 | 0; - $var8 = nms_World_getBlockId(var$8, $var4, var$9, $var6); - nms_Block_$callClinit(); - $var8 = nms_Block_blocksList.data[$var8] === null ? (-1) : nms_Block_blocksList.data[$var8].$getRenderType(); - if (!($var8 != 11 && $var8 != 32 && $var8 != 21)) - $var7 = nms_World_getBlockId($this.$worldObj, $var4, var$9, $var6); - } - if ($var7 > 0) { - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$var7]; - var$11 = $this.$worldObj; - var$12 = $this.$fallDistance; - $ptr = 3; - continue main; - } - } - $ptr = 2; - case 2: - nms_Entity_updateFallState($this, $par1, $par3); - if ($rt_suspending()) { - break main; - } - return; - case 3: - var$8.$onFallenUpon(var$11, $var4, $var5, $var6, $this, var$12); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par3, var$3, $var4, $var5, $var6, $var7, var$8, var$9, $var8, var$11, var$12, $ptr); -} -function nms_EntityLiving_setRevengeTarget($this, $par1EntityLiving) { - $this.$entityLivingToAttack = $par1EntityLiving; - $this.$revengeTimer = $this.$entityLivingToAttack === null ? 0 : 100; -} -function nms_EntityLiving_entityInit($this) { - var var$1, var$2; - nms_DataWatcher_addObject($this.$dataWatcher, 8, jl_Integer_valueOf($this.$field_70748_f)); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 9, var$2); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 10, var$2); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 6, var$2); - nms_DataWatcher_addObject($this.$dataWatcher, 5, $rt_s(44)); -} -function nms_EntityLiving_canEntityBeSeen($this, $par1Entity) { - return nms_World_rayTraceBlocks_do_do($this.$worldObj, nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $this.$posX, $this.$posY + $this.$getEyeHeight(), $this.$posZ), nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $par1Entity.$posX, $par1Entity.$posY + $par1Entity.$getEyeHeight(), $par1Entity.$posZ), 0, 0) !== null ? 0 : 1; -} -function nms_EntityLiving_canBeCollidedWith($this) { - return $this.$isDead ? 0 : 1; -} -function nms_EntityLiving_canBePushed($this) { - return $this.$isDead ? 0 : 1; -} -function nms_EntityLiving_getEyeHeight($this) { - return $this.$height1 * 0.8500000238418579; -} -function nms_EntityLiving_getTalkInterval($this) { - return 80; -} -function nms_EntityLiving_playLivingSound($this) { - var $var1, 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();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = $this.$getLivingSound(); - if ($var1 === null) - return; - var$2 = $this.$getSoundVolume(); - var$3 = $this.$getSoundPitch(); - $ptr = 1; - case 1: - $this.$playSound1($var1, var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, $ptr); -} -function nms_EntityLiving_onEntityUpdate($this) { - var var$1, $var1, var$3, $var3, $var4, $var2, var$7, $var5, var$9, var$10, var$11, var$12, var$13, var$14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var5 = $thread.pop();var$7 = $thread.pop();$var2 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();var$3 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevSwingProgress = $this.$swingProgress; - $ptr = 1; - case 1: - nms_Entity_onEntityUpdate($this); - if ($rt_suspending()) { - break main; - } - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(686)); - if (!$this.$isDead && $this.$health > 0 ? 1 : 0) { - var$1 = Math.random() * 1000.0 | 0; - $var1 = $this.$livingSoundTime; - $this.$livingSoundTime = $var1 + 1 | 0; - if (var$1 < $var1) { - $this.$livingSoundTime = -$this.$getTalkInterval(); - var$3 = $this.$getLivingSound(); - if (var$3 !== null) { - $var3 = $this.$getSoundVolume(); - $var4 = $this.$getSoundPitch(); - $ptr = 2; - continue main; - } - } - } - $var1 = !$this.$isDead && $this.$health > 0 ? 1 : 0; - if ($var1 && $this.$isEntityInsideOpaqueBlock()) { - var$3 = nms_DamageSource_inWall; - $var1 = 1; - $ptr = 3; - continue main; - } - if (!(!$this.$isImmuneToFire && !$this.$worldObj.$isRemote)) - $this.$fire = 0; - $var1 = $this instanceof nms_EntityPlayer && $this.$capabilities.$disableDamage ? 1 : 0; - $var2 = !$this.$isDead && $this.$health > 0 ? 1 : 0; - a: { - if ($var2) { - nms_Material_$callClinit(); - if (nms_Entity_isInsideOfMaterial($this, nms_Material_water) && !$this.$canBreatheUnderwater() && !(ju_HashMap_getEntry($this.$activePotionsMap, jl_Integer_valueOf(nms_Potion_waterBreathing.$id3)) === null ? 0 : 1) && !$var1) { - $var1 = $this.$decreaseAirSupply(nms_DataWatcher_getWatchableObjectShort($this.$dataWatcher, 1)); - var$3 = $this.$dataWatcher; - $var1 = $var1 << 16 >> 16; - var$7 = new jl_Short; - var$7.$value5 = $var1; - nms_DataWatcher_updateObject(var$3, 1, var$7); - if (nms_Entity_getAir($this) == (-20)) { - nms_Entity_setAir($this, 0); - $var2 = 0; - if ($var2 >= 8) { - var$3 = nms_DamageSource_drown; - $var1 = 2; - $ptr = 6; - continue main; - } - $var3 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - $var4 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - $var5 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - var$3 = $this.$worldObj; - var$7 = $rt_s(680); - var$9 = $this.$posX + $var3; - var$10 = $this.$posY + $var4; - var$11 = $this.$posZ + $var5; - var$12 = $this.$motionX; - var$13 = $this.$motionY; - var$14 = $this.$motionZ; - $ptr = 7; - continue main; - } - nms_Entity_extinguish($this); - break a; - } - } - var$3 = $this.$dataWatcher; - var$7 = new jl_Short; - var$7.$value5 = 300; - nms_DataWatcher_updateObject(var$3, 1, var$7); - } - $this.$prevCameraPitch = $this.$cameraPitch0; - if ($this.$attackTime > 0) - $this.$attackTime = $this.$attackTime - 1 | 0; - if ($this.$hurtTime > 0) - $this.$hurtTime = $this.$hurtTime - 1 | 0; - if ($this.$hurtResistantTime > 0) - $this.$hurtResistantTime = $this.$hurtResistantTime - 1 | 0; - if ($this.$health <= 0) { - $ptr = 4; - continue main; - } - if ($this.$recentlyHit <= 0) - $this.$attackingPlayer = null; - else - $this.$recentlyHit = $this.$recentlyHit - 1 | 0; - if ($this.$lastAttackingEntity !== null && !nms_EntityLiving_isEntityAlive($this.$lastAttackingEntity)) - $this.$lastAttackingEntity = null; - if ($this.$entityLivingToAttack !== null) { - if (!nms_EntityLiving_isEntityAlive($this.$entityLivingToAttack)) - $this.$setRevengeTarget(null); - else if ($this.$revengeTimer <= 0) - $this.$setRevengeTarget(null); - else - $this.$revengeTimer = $this.$revengeTimer - 1 | 0; - } - $ptr = 5; - continue main; - case 2: - $this.$playSound1(var$3, $var3, $var4); - if ($rt_suspending()) { - break main; - } - $var1 = !$this.$isDead && $this.$health > 0 ? 1 : 0; - if ($var1 && $this.$isEntityInsideOpaqueBlock()) { - var$3 = nms_DamageSource_inWall; - $var1 = 1; - $ptr = 3; - continue main; - } - if (!(!$this.$isImmuneToFire && !$this.$worldObj.$isRemote)) - $this.$fire = 0; - $var1 = $this instanceof nms_EntityPlayer && $this.$capabilities.$disableDamage ? 1 : 0; - $var2 = !$this.$isDead && $this.$health > 0 ? 1 : 0; - b: { - if ($var2) { - nms_Material_$callClinit(); - if (nms_Entity_isInsideOfMaterial($this, nms_Material_water) && !$this.$canBreatheUnderwater() && !(ju_HashMap_getEntry($this.$activePotionsMap, jl_Integer_valueOf(nms_Potion_waterBreathing.$id3)) === null ? 0 : 1) && !$var1) { - $var1 = $this.$decreaseAirSupply(nms_DataWatcher_getWatchableObjectShort($this.$dataWatcher, 1)); - var$3 = $this.$dataWatcher; - $var1 = $var1 << 16 >> 16; - var$7 = new jl_Short; - var$7.$value5 = $var1; - nms_DataWatcher_updateObject(var$3, 1, var$7); - if (nms_Entity_getAir($this) == (-20)) { - nms_Entity_setAir($this, 0); - $var2 = 0; - if ($var2 >= 8) { - var$3 = nms_DamageSource_drown; - $var1 = 2; - $ptr = 6; - continue main; - } - $var3 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - $var4 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - $var5 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - var$3 = $this.$worldObj; - var$7 = $rt_s(680); - var$9 = $this.$posX + $var3; - var$10 = $this.$posY + $var4; - var$11 = $this.$posZ + $var5; - var$12 = $this.$motionX; - var$13 = $this.$motionY; - var$14 = $this.$motionZ; - $ptr = 7; - continue main; - } - nms_Entity_extinguish($this); - break b; - } - } - var$3 = $this.$dataWatcher; - var$7 = new jl_Short; - var$7.$value5 = 300; - nms_DataWatcher_updateObject(var$3, 1, var$7); - } - $this.$prevCameraPitch = $this.$cameraPitch0; - if ($this.$attackTime > 0) - $this.$attackTime = $this.$attackTime - 1 | 0; - if ($this.$hurtTime > 0) - $this.$hurtTime = $this.$hurtTime - 1 | 0; - if ($this.$hurtResistantTime > 0) - $this.$hurtResistantTime = $this.$hurtResistantTime - 1 | 0; - if ($this.$health <= 0) { - $ptr = 4; - continue main; - } - if ($this.$recentlyHit <= 0) - $this.$attackingPlayer = null; - else - $this.$recentlyHit = $this.$recentlyHit - 1 | 0; - if ($this.$lastAttackingEntity !== null && !nms_EntityLiving_isEntityAlive($this.$lastAttackingEntity)) - $this.$lastAttackingEntity = null; - if ($this.$entityLivingToAttack !== null) { - if (!nms_EntityLiving_isEntityAlive($this.$entityLivingToAttack)) - $this.$setRevengeTarget(null); - else if ($this.$revengeTimer <= 0) - $this.$setRevengeTarget(null); - else - $this.$revengeTimer = $this.$revengeTimer - 1 | 0; - } - $ptr = 5; - continue main; - case 3: - $this.$attackEntityFrom(var$3, $var1); - if ($rt_suspending()) { - break main; - } - if (!(!$this.$isImmuneToFire && !$this.$worldObj.$isRemote)) - $this.$fire = 0; - $var1 = $this instanceof nms_EntityPlayer && $this.$capabilities.$disableDamage ? 1 : 0; - $var2 = !$this.$isDead && $this.$health > 0 ? 1 : 0; - c: { - if ($var2) { - nms_Material_$callClinit(); - if (nms_Entity_isInsideOfMaterial($this, nms_Material_water) && !$this.$canBreatheUnderwater() && !(ju_HashMap_getEntry($this.$activePotionsMap, jl_Integer_valueOf(nms_Potion_waterBreathing.$id3)) === null ? 0 : 1) && !$var1) { - $var1 = $this.$decreaseAirSupply(nms_DataWatcher_getWatchableObjectShort($this.$dataWatcher, 1)); - var$3 = $this.$dataWatcher; - $var1 = $var1 << 16 >> 16; - var$7 = new jl_Short; - var$7.$value5 = $var1; - nms_DataWatcher_updateObject(var$3, 1, var$7); - if (nms_Entity_getAir($this) == (-20)) { - nms_Entity_setAir($this, 0); - $var2 = 0; - if ($var2 >= 8) { - var$3 = nms_DamageSource_drown; - $var1 = 2; - $ptr = 6; - continue main; - } - $var3 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - $var4 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - $var5 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - var$3 = $this.$worldObj; - var$7 = $rt_s(680); - var$9 = $this.$posX + $var3; - var$10 = $this.$posY + $var4; - var$11 = $this.$posZ + $var5; - var$12 = $this.$motionX; - var$13 = $this.$motionY; - var$14 = $this.$motionZ; - $ptr = 7; - continue main; - } - nms_Entity_extinguish($this); - break c; - } - } - var$3 = $this.$dataWatcher; - var$7 = new jl_Short; - var$7.$value5 = 300; - nms_DataWatcher_updateObject(var$3, 1, var$7); - } - $this.$prevCameraPitch = $this.$cameraPitch0; - if ($this.$attackTime > 0) - $this.$attackTime = $this.$attackTime - 1 | 0; - if ($this.$hurtTime > 0) - $this.$hurtTime = $this.$hurtTime - 1 | 0; - if ($this.$hurtResistantTime > 0) - $this.$hurtResistantTime = $this.$hurtResistantTime - 1 | 0; - if ($this.$health <= 0) { - $ptr = 4; - continue main; - } - if ($this.$recentlyHit <= 0) - $this.$attackingPlayer = null; - else - $this.$recentlyHit = $this.$recentlyHit - 1 | 0; - if ($this.$lastAttackingEntity !== null && !nms_EntityLiving_isEntityAlive($this.$lastAttackingEntity)) - $this.$lastAttackingEntity = null; - if ($this.$entityLivingToAttack !== null) { - if (!nms_EntityLiving_isEntityAlive($this.$entityLivingToAttack)) - $this.$setRevengeTarget(null); - else if ($this.$revengeTimer <= 0) - $this.$setRevengeTarget(null); - else - $this.$revengeTimer = $this.$revengeTimer - 1 | 0; - } - $ptr = 5; - continue main; - case 4: - $this.$onDeathUpdate(); - if ($rt_suspending()) { - break main; - } - if ($this.$recentlyHit <= 0) - $this.$attackingPlayer = null; - else - $this.$recentlyHit = $this.$recentlyHit - 1 | 0; - if ($this.$lastAttackingEntity !== null && !nms_EntityLiving_isEntityAlive($this.$lastAttackingEntity)) - $this.$lastAttackingEntity = null; - if ($this.$entityLivingToAttack !== null) { - if (!nms_EntityLiving_isEntityAlive($this.$entityLivingToAttack)) - $this.$setRevengeTarget(null); - else if ($this.$revengeTimer <= 0) - $this.$setRevengeTarget(null); - else - $this.$revengeTimer = $this.$revengeTimer - 1 | 0; - } - $ptr = 5; - case 5: - nms_EntityLiving_updatePotionEffects($this); - if ($rt_suspending()) { - break main; - } - $this.$field_70763_ax = $this.$field_70764_aw; - $this.$prevRenderYawOffset = $this.$renderYawOffset; - $this.$prevRotationYawHead = $this.$rotationYawHead; - $this.$prevRotationYaw = $this.$rotationYaw; - $this.$prevRotationPitch = $this.$rotationPitch; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - case 6: - $this.$attackEntityFrom(var$3, $var1); - if ($rt_suspending()) { - break main; - } - nms_Entity_extinguish($this); - $this.$prevCameraPitch = $this.$cameraPitch0; - if ($this.$attackTime > 0) - $this.$attackTime = $this.$attackTime - 1 | 0; - if ($this.$hurtTime > 0) - $this.$hurtTime = $this.$hurtTime - 1 | 0; - if ($this.$hurtResistantTime > 0) - $this.$hurtResistantTime = $this.$hurtResistantTime - 1 | 0; - if ($this.$health <= 0) { - $ptr = 4; - continue main; - } - if ($this.$recentlyHit <= 0) - $this.$attackingPlayer = null; - else - $this.$recentlyHit = $this.$recentlyHit - 1 | 0; - if ($this.$lastAttackingEntity !== null && !nms_EntityLiving_isEntityAlive($this.$lastAttackingEntity)) - $this.$lastAttackingEntity = null; - if ($this.$entityLivingToAttack !== null) { - if (!nms_EntityLiving_isEntityAlive($this.$entityLivingToAttack)) - $this.$setRevengeTarget(null); - else if ($this.$revengeTimer <= 0) - $this.$setRevengeTarget(null); - else - $this.$revengeTimer = $this.$revengeTimer - 1 | 0; - } - $ptr = 5; - continue main; - case 7: - nms_World_spawnParticle(var$3, var$7, var$9, var$10, var$11, var$12, var$13, var$14); - if ($rt_suspending()) { - break main; - } - $var2 = $var2 + 1 | 0; - if ($var2 >= 8) { - var$3 = nms_DamageSource_drown; - $var1 = 2; - $ptr = 6; - continue main; - } - $var3 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - $var4 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - $var5 = ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0); - var$3 = $this.$worldObj; - var$7 = $rt_s(680); - var$9 = $this.$posX + $var3; - var$10 = $this.$posY + $var4; - var$11 = $this.$posZ + $var5; - var$12 = $this.$motionX; - var$13 = $this.$motionY; - var$14 = $this.$motionZ; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, var$3, $var3, $var4, $var2, var$7, $var5, var$9, var$10, var$11, var$12, var$13, var$14, $ptr); -} -function nms_EntityLiving_onDeathUpdate($this) { - var $var1, $var2, $var8, $var4, $var6, var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $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();$var6 = $thread.pop();$var4 = $thread.pop();$var8 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$deathTime = $this.$deathTime + 1 | 0; - if ($this.$deathTime != 20) - return; - a: { - if (!$this.$worldObj.$isRemote && !($this.$recentlyHit <= 0 && !$this.$isPlayer()) && !$this.$isChild() && nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(687))) { - $var1 = $this.$getExperiencePoints($this.$attackingPlayer); - while (true) { - if ($var1 <= 0) - break a; - $var2 = nms_EntityXPOrb_getXPSplit($var1); - $var1 = $var1 - $var2 | 0; - nms_WorldClient_spawnEntityInWorld($this.$worldObj, nms_EntityXPOrb__init_0($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, $var2)); - } - } - } - $ptr = 1; - case 1: - $this.$setDead(); - if ($rt_suspending()) { - break main; - } - $var1 = 0; - while ($var1 < 20) { - $var8 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - var$6 = $this.$worldObj; - var$7 = $rt_s(688); - var$8 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$9 = $this.$posY + Math.random() * $this.$height1; - var$10 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$11 = 0; - if (var$11 < var$6.$worldAccesses.$size0) { - var$12 = var$6.$worldAccesses; - if (var$11 >= 0 && var$11 < var$12.$size0) { - var$12 = var$12.$array1.data[var$11]; - $ptr = 2; - continue main; - } - var$12 = new jl_IndexOutOfBoundsException; - var$12.$suppressionEnabled = 1; - var$12.$writableStackTrace = 1; - $rt_throw(var$12); - } - $var1 = $var1 + 1 | 0; - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$12, var$7, var$8, var$9, var$10, $var8, $var4, $var6); - if ($rt_suspending()) { - break main; - } - var$11 = var$11 + 1 | 0; - while (true) { - if (var$11 < var$6.$worldAccesses.$size0) { - var$12 = var$6.$worldAccesses; - if (var$11 >= 0 && var$11 < var$12.$size0) { - var$12 = var$12.$array1.data[var$11]; - continue main; - } - var$12 = new jl_IndexOutOfBoundsException; - var$12.$suppressionEnabled = 1; - var$12.$writableStackTrace = 1; - $rt_throw(var$12); - } - $var1 = $var1 + 1 | 0; - if ($var1 >= 20) - break; - $var8 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - var$6 = $this.$worldObj; - var$7 = $rt_s(688); - var$8 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$9 = $this.$posY + Math.random() * $this.$height1; - var$10 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$11 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var8, $var4, $var6, var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr); -} -function nms_EntityLiving_decreaseAirSupply($this, $par1) { - var $var2, var$3; - a: { - nms_Enchantment_$callClinit(); - $var2 = nms_EnchantmentHelper_getMaxEnchantmentLevel(nms_Enchantment_respiration.$effectId, $this.$getLastActiveItems()); - if ($var2 > 0) { - var$3 = $var2 + 1 | 0; - if ((Math.random() * var$3 | 0) > 0) - break a; - } - $par1 = $par1 - 1 | 0; - } - return $par1; -} -function nms_EntityLiving_getExperiencePoints($this, $par1EntityPlayer) { - var $var2, $var3, $var4, var$5; - if ($this.$experienceValue <= 0) - return $this.$experienceValue; - $var2 = $this.$experienceValue; - $var3 = $this.$getLastActiveItems(); - $var4 = 0; - while (true) { - var$5 = $var3.data; - if ($var4 >= var$5.length) - break; - if (var$5[$var4] !== null && $this.$equipmentDropChances.data[$var4] <= 1.0) - $var2 = $var2 + (1 + (Math.random() * 3.0 | 0) | 0) | 0; - $var4 = $var4 + 1 | 0; - } - return $var2; -} -function nms_EntityLiving_isPlayer($this) { - return 0; -} -function nms_EntityLiving_spawnExplosionParticle($this) { - var $var1, $var2, $var4, $var6, var$5, 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();var$5 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = 0; - while ($var1 < 20) { - $var2 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - var$5 = $this.$worldObj; - var$6 = $rt_s(688); - var$7 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1 - $var2 * 10.0; - var$8 = $this.$posY + Math.random() * $this.$height1 - $var4 * 10.0; - var$9 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1 - $var6 * 10.0; - var$10 = 0; - if (var$10 < var$5.$worldAccesses.$size0) { - var$11 = var$5.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - $ptr = 1; - continue main; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - } - $var1 = $var1 + 1 | 0; - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$11, var$6, var$7, var$8, var$9, $var2, $var4, $var6); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - while (true) { - if (var$10 < var$5.$worldAccesses.$size0) { - var$11 = var$5.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - continue main; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - } - $var1 = $var1 + 1 | 0; - if ($var1 >= 20) - break; - $var2 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - var$5 = $this.$worldObj; - var$6 = $rt_s(688); - var$7 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1 - $var2 * 10.0; - var$8 = $this.$posY + Math.random() * $this.$height1 - $var4 * 10.0; - var$9 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1 - $var6 * 10.0; - var$10 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var4, $var6, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_EntityLiving_updateRidden($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: - $ptr = 1; - case 1: - nms_Entity_updateRidden($this); - if ($rt_suspending()) { - break main; - } - $this.$field_70768_au = $this.$field_70766_av; - $this.$field_70766_av = 0.0; - $this.$fallDistance = 0.0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_EntityLiving_setPositionAndRotation2($this, $par1, $par3, $par5, $par7, $par8, $par9) { - $this.$yOffset0 = 0.0; - $this.$newPosX = $par1; - $this.$newPosY = $par3; - $this.$newPosZ = $par5; - $this.$newRotationYaw = $par7; - $this.$newRotationPitch = $par8; - $this.$newPosRotationIncrements = $par9; -} -function nms_EntityLiving_onUpdate($this) { - var $var12, $var3, $var5, $var6, $var7, $var8, $var9, $var10, $var11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var12 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $this.$onEntityUpdate(); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - $this.$onLivingUpdate(); - if ($rt_suspending()) { - break main; - } - $var12 = $this.$posX - $this.$prevPosX; - $var3 = $this.$posZ - $this.$prevPosZ; - $var5 = $var12 * $var12 + $var3 * $var3; - $var6 = $this.$renderYawOffset; - $var7 = 0.0; - $this.$field_70768_au = $this.$field_70766_av; - $var8 = 0.0; - if ($var5 > 0.002500000176951289) { - $var8 = 1.0; - $var7 = jl_Math_sqrt($var5) * 3.0; - $var6 = jl_Math_atan2($var3, $var12) * 180.0 / 3.1415927410125732 - 90.0; - } - if ($this.$swingProgress > 0.0) - $var6 = $this.$rotationYaw; - if (!$this.$onGround) - $var8 = 0.0; - $this.$field_70766_av = $this.$field_70766_av + ($var8 - $this.$field_70766_av) * 0.30000001192092896; - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(689)); - if ($this.$isAIEnabled()) - nms_EntityBodyHelper_func_75664_a($this.$bodyHelper); - else { - $var9 = nms_MathHelper_wrapAngleTo180_float($var6 - $this.$renderYawOffset); - $this.$renderYawOffset = $this.$renderYawOffset + $var9 * 0.30000001192092896; - $var10 = nms_MathHelper_wrapAngleTo180_float($this.$rotationYaw - $this.$renderYawOffset); - $var11 = $var10 >= (-90.0) && $var10 < 90.0 ? 0 : 1; - if ($var10 < (-75.0)) - $var10 = (-75.0); - if ($var10 >= 75.0) - $var10 = 75.0; - $this.$renderYawOffset = $this.$rotationYaw - $var10; - if ($var10 * $var10 > 2500.0) - $this.$renderYawOffset = $this.$renderYawOffset + $var10 * 0.20000000298023224; - if ($var11) - $var7 = $var7 * (-1.0); - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(690)); - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - while ($this.$renderYawOffset - $this.$prevRenderYawOffset < (-180.0)) { - $this.$prevRenderYawOffset = $this.$prevRenderYawOffset - 360.0; - } - while ($this.$renderYawOffset - $this.$prevRenderYawOffset >= 180.0) { - $this.$prevRenderYawOffset = $this.$prevRenderYawOffset + 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYawHead - $this.$prevRotationYawHead < (-180.0)) { - $this.$prevRotationYawHead = $this.$prevRotationYawHead - 360.0; - } - while ($this.$rotationYawHead - $this.$prevRotationYawHead >= 180.0) { - $this.$prevRotationYawHead = $this.$prevRotationYawHead + 360.0; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - $this.$field_70764_aw = $this.$field_70764_aw + $var7; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var12, $var3, $var5, $var6, $var7, $var8, $var9, $var10, $var11, $ptr); -} -function nms_EntityLiving_heal($this, $par1) { - if ($this.$health > 0) { - $par1 = $this.$health + $par1 | 0; - $this.$health = $par1; - if ($par1 > $this.$getMaxHealth()) - $this.$getMaxHealth(); - if ($this.$health > $this.$getMaxHealth()) { - $par1 = $this.$getMaxHealth(); - $this.$health = $par1; - if ($par1 > $this.$getMaxHealth()) - $this.$getMaxHealth(); - } - $this.$hurtResistantTime = $this.$maxHurtResistantTime / 2 | 0; - } -} -function nms_EntityLiving_getHealth($this) { - return $this.$health; -} -function nms_EntityLiving_setEntityHealth($this, $par1) { - $this.$health = $par1; - if ($par1 > $this.$getMaxHealth()) - $this.$getMaxHealth(); -} -function nms_EntityLiving_attackEntityFrom($this, $par1DamageSource, $par2) { - var $var5, var$4, var$5, $var3, $var4, $var9, $var7, 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();$var7 = $thread.pop();$var9 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var5 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - if ($this.$worldObj.$isRemote) - return 0; - $this.$entityAge = 0; - if ($this.$health <= 0) - return 0; - if ($par1DamageSource.$fireDamage && nms_EntityLiving_isPotionActive($this, nms_Potion_fireResistance)) - return 0; - if (!($par1DamageSource !== nms_DamageSource_anvil && $par1DamageSource !== nms_DamageSource_fallingBlock) && $this.$getCurrentItemOrArmor(4) !== null) { - $var5 = $this.$getCurrentItemOrArmor(4); - var$4 = $par2 * 4 | 0; - var$5 = $par2 * 2 | 0; - var$5 = var$4 + (Math.random() * var$5 | 0) | 0; - $ptr = 1; - continue main; - } - $this.$limbYaw = 1.5; - $var3 = 1; - if ($this.$hurtResistantTime <= $this.$maxHurtResistantTime / 2.0) { - $this.$lastDamage = $par2; - $this.$prevHealth = $this.$health; - $this.$hurtResistantTime = $this.$maxHurtResistantTime; - $ptr = 2; - continue main; - } - if ($par2 <= $this.$lastDamage) - return 0; - var$5 = $par2 - $this.$lastDamage | 0; - $ptr = 3; - continue main; - case 1: - nms_ItemStack_damageItem($var5, var$5, $this); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 * 0.75 | 0; - $this.$limbYaw = 1.5; - $var3 = 1; - if ($this.$hurtResistantTime <= $this.$maxHurtResistantTime / 2.0) { - $this.$lastDamage = $par2; - $this.$prevHealth = $this.$health; - $this.$hurtResistantTime = $this.$maxHurtResistantTime; - $ptr = 2; - continue main; - } - if ($par2 <= $this.$lastDamage) - return 0; - var$5 = $par2 - $this.$lastDamage | 0; - $ptr = 3; - continue main; - case 2: - $this.$damageEntity($par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $this.$maxHurtTime = 10; - $this.$hurtTime = 10; - $this.$attackedAtYaw = 0.0; - $var4 = $par1DamageSource.$getEntity(); - if ($var4 !== null) { - if ($var4 instanceof nms_EntityLiving) - $this.$setRevengeTarget($var4); - if ($var4 instanceof nms_EntityPlayer) { - $this.$recentlyHit = 100; - $this.$attackingPlayer = $var4; - } else if ($var4 instanceof nms_EntityWolf && (!(nms_DataWatcher_getWatchableObjectByte($var4.$dataWatcher, 16) & 4) ? 0 : 1)) { - $this.$recentlyHit = 100; - $this.$attackingPlayer = null; - } - } - if ($var3) { - if ($par1DamageSource !== nms_DamageSource_drown) - $this.$velocityChanged = 1; - if ($var4 === null) - $this.$attackedAtYaw = (jl_Math_randomImpl() * 2.0 | 0) * 180 | 0; - else { - $var9 = $var4.$posX - $this.$posX; - $var7 = $var4.$posZ - $this.$posZ; - while ($var9 * $var9 + $var7 * $var7 < 1.0E-4) { - $var9 = (jl_Math_randomImpl() - jl_Math_randomImpl()) * 0.01; - $var7 = (jl_Math_randomImpl() - jl_Math_randomImpl()) * 0.01; - } - $this.$attackedAtYaw = jl_Math_atan2($var7, $var9) * 180.0 / 3.141592653589793 - $this.$rotationYaw; - nms_EntityLiving_knockBack($this, $var4, $par2, $var9, $var7); - } - } - if ($this.$health <= 0) { - if (!$var3) { - $ptr = 5; - continue main; - } - $var4 = $this.$getDeathSound(); - var$10 = $this.$getSoundVolume(); - var$11 = $this.$getSoundPitch(); - $ptr = 6; - continue main; - } - if (!$var3) - return 1; - $par1DamageSource = $this.$getHurtSound(); - var$10 = $this.$getSoundVolume(); - var$11 = $this.$getSoundPitch(); - $ptr = 4; - continue main; - case 3: - $this.$damageEntity($par1DamageSource, var$5); - if ($rt_suspending()) { - break main; - } - $this.$lastDamage = $par2; - $var3 = 0; - $this.$attackedAtYaw = 0.0; - $var4 = $par1DamageSource.$getEntity(); - if ($var4 !== null) { - if ($var4 instanceof nms_EntityLiving) - $this.$setRevengeTarget($var4); - if ($var4 instanceof nms_EntityPlayer) { - $this.$recentlyHit = 100; - $this.$attackingPlayer = $var4; - } else if ($var4 instanceof nms_EntityWolf && (!(nms_DataWatcher_getWatchableObjectByte($var4.$dataWatcher, 16) & 4) ? 0 : 1)) { - $this.$recentlyHit = 100; - $this.$attackingPlayer = null; - } - } - if ($var3) { - if ($par1DamageSource !== nms_DamageSource_drown) - $this.$velocityChanged = 1; - if ($var4 === null) - $this.$attackedAtYaw = (jl_Math_randomImpl() * 2.0 | 0) * 180 | 0; - else { - $var9 = $var4.$posX - $this.$posX; - $var7 = $var4.$posZ - $this.$posZ; - while ($var9 * $var9 + $var7 * $var7 < 1.0E-4) { - $var9 = (jl_Math_randomImpl() - jl_Math_randomImpl()) * 0.01; - $var7 = (jl_Math_randomImpl() - jl_Math_randomImpl()) * 0.01; - } - $this.$attackedAtYaw = jl_Math_atan2($var7, $var9) * 180.0 / 3.141592653589793 - $this.$rotationYaw; - nms_EntityLiving_knockBack($this, $var4, $par2, $var9, $var7); - } - } - if ($this.$health <= 0) { - if (!$var3) { - $ptr = 5; - continue main; - } - $var4 = $this.$getDeathSound(); - var$10 = $this.$getSoundVolume(); - var$11 = $this.$getSoundPitch(); - $ptr = 6; - continue main; - } - if (!$var3) - return 1; - $par1DamageSource = $this.$getHurtSound(); - var$10 = $this.$getSoundVolume(); - var$11 = $this.$getSoundPitch(); - $ptr = 4; - case 4: - $this.$playSound1($par1DamageSource, var$10, var$11); - if ($rt_suspending()) { - break main; - } - return 1; - case 5: - $this.$onDeath($par1DamageSource); - if ($rt_suspending()) { - break main; - } - return 1; - case 6: - $this.$playSound1($var4, var$10, var$11); - if ($rt_suspending()) { - break main; - } - $ptr = 5; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $var5, var$4, var$5, $var3, $var4, $var9, $var7, var$10, var$11, $ptr); -} -function nms_EntityLiving_getSoundPitch($this) { - return !$this.$isChild() ? (Math.random() - Math.random()) * 0.20000000298023224 + 1.0 : (Math.random() - Math.random()) * 0.20000000298023224 + 1.5; -} -function nms_EntityLiving_performHurtAnimation($this) { - $this.$maxHurtTime = 10; - $this.$hurtTime = 10; - $this.$attackedAtYaw = 0.0; -} -function nms_EntityLiving_getTotalArmorValue($this) { - var $var1, $var2, $var3, $var4, $var5; - $var1 = 0; - $var2 = $this.$getLastActiveItems().data; - $var3 = $var2.length; - $var4 = 0; - while ($var4 < $var3) { - $var5 = $var2[$var4]; - if ($var5 !== null) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var5.$itemID0] instanceof nms_ItemArmor) - $var1 = $var1 + nms_Item_itemsList.data[$var5.$itemID0].$damageReduceAmount | 0; - } - $var4 = $var4 + 1 | 0; - } - return $var1; -} -function nms_EntityLiving_damageArmor($this, $par1) { - return; -} -function nms_EntityLiving_applyArmorCalculations($this, $par1DamageSource, $par2) { - var $var4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var4 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1DamageSource.$isUnblockable) - return $par2; - $var4 = $rt_imul($par2, 25 - $this.$getTotalArmorValue() | 0) + $this.$carryoverDamage | 0; - $ptr = 1; - case 1: - $this.$damageArmor($par2); - if ($rt_suspending()) { - break main; - } - $par2 = $var4 / 25 | 0; - $this.$carryoverDamage = $var4 % 25 | 0; - return $par2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $var4, $ptr); -} -function nms_EntityLiving_applyPotionDamageCalculations($this, $par1DamageSource, $par2) { - var $var5, $var3; - if (nms_EntityLiving_isPotionActive($this, nms_Potion_resistance)) { - $var5 = $rt_imul($par2, 25 - ((nms_EntityLiving_getActivePotionEffect($this, nms_Potion_resistance).$amplifier + 1 | 0) * 5 | 0) | 0) + $this.$carryoverDamage | 0; - $par2 = $var5 / 25 | 0; - $this.$carryoverDamage = $var5 % 25 | 0; - } - if ($par2 <= 0) - return 0; - $var3 = nms_EnchantmentHelper_getEnchantmentModifierDamage($this.$getLastActiveItems(), $par1DamageSource); - if ($var3 > 20) - $var3 = 20; - if ($var3 > 0 && $var3 <= 20) { - $var5 = $rt_imul($par2, 25 - $var3 | 0) + $this.$carryoverDamage | 0; - $par2 = $var5 / 25 | 0; - $this.$carryoverDamage = $var5 % 25 | 0; - } - return $par2; -} -function nms_EntityLiving_damageEntity($this, $par1DamageSource, $par2) { - var $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return; - $ptr = 1; - case 1: - $tmp = nms_EntityLiving_applyArmorCalculations($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - $par2 = $this.$applyPotionDamageCalculations($par1DamageSource, $par2); - $var3 = $this.$health; - $this.$health = $this.$health - $par2 | 0; - nms_CombatTracker_func_94547_a($this.$field_94063_bt, $par1DamageSource, $var3, $par2); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $var3, $ptr); -} -function nms_EntityLiving_getSoundVolume($this) { - return 1.0; -} -function nms_EntityLiving_getLivingSound($this) { - return null; -} -function nms_EntityLiving_getHurtSound($this) { - return $rt_s(691); -} -function nms_EntityLiving_getDeathSound($this) { - return $rt_s(691); -} -function nms_EntityLiving_knockBack($this, $par1Entity, $par2, $par3, $par5) { - var $var7, var$6, var$7; - $this.$isAirBorne = 1; - $var7 = jl_Math_sqrt($par3 * $par3 + $par5 * $par5); - $this.$motionX = $this.$motionX / 2.0; - $this.$motionY = $this.$motionY / 2.0; - $this.$motionZ = $this.$motionZ / 2.0; - var$6 = $this.$motionX; - var$7 = $var7; - $this.$motionX = var$6 - $par3 / var$7 * 0.4000000059604645; - $this.$motionY = $this.$motionY + 0.4000000059604645; - $this.$motionZ = $this.$motionZ - $par5 / var$7 * 0.4000000059604645; - if ($this.$motionY > 0.4000000059604645) - $this.$motionY = 0.4000000059604645; -} -function nms_EntityLiving_onDeath($this, $par1DamageSource) { - var $var2, $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();$var2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $par1DamageSource.$getEntity(); - $var3 = nms_EntityLiving_func_94060_bK($this); - if ($this.$scoreValue >= 0 && $var3 !== null) - $var3.$addToPlayerScore($this, $this.$scoreValue); - if ($var2 === null) { - $this.$dead = 1; - if (!$this.$worldObj.$isRemote) { - $var4 = 0; - if ($var2 instanceof nms_EntityPlayer) { - $par1DamageSource = $var2; - nms_Enchantment_$callClinit(); - $var4 = nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_looting.$effectId, $par1DamageSource.$getHeldItem()); - } - if (!$this.$isChild() && nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(687))) { - $this.$dropFewItems($this.$recentlyHit <= 0 ? 0 : 1, $var4); - nms_EntityLiving_dropEquipment($this, $this.$recentlyHit <= 0 ? 0 : 1, $var4); - if ($this.$recentlyHit > 0) { - $var5 = (Math.random() * 200.0 | 0) - $var4 | 0; - if ($var5 < 5) - $this.$dropRareDrop($var5 > 0 ? 0 : 1); - } - } - } - return; - } - $ptr = 1; - case 1: - $var2.$onKillEntity($this); - if ($rt_suspending()) { - break main; - } - $this.$dead = 1; - if (!$this.$worldObj.$isRemote) { - $var4 = 0; - if ($var2 instanceof nms_EntityPlayer) { - $par1DamageSource = $var2; - nms_Enchantment_$callClinit(); - $var4 = nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_looting.$effectId, $par1DamageSource.$getHeldItem()); - } - if (!$this.$isChild() && nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(687))) { - $this.$dropFewItems($this.$recentlyHit <= 0 ? 0 : 1, $var4); - nms_EntityLiving_dropEquipment($this, $this.$recentlyHit <= 0 ? 0 : 1, $var4); - if ($this.$recentlyHit > 0) { - $var5 = (Math.random() * 200.0 | 0) - $var4 | 0; - if ($var5 < 5) - $this.$dropRareDrop($var5 > 0 ? 0 : 1); - } - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $var2, $var3, $var4, $var5, $ptr); -} -function nms_EntityLiving_dropRareDrop($this, $par1) { - return; -} -function nms_EntityLiving_dropFewItems($this, $par1, $par2) { - var $var3, $var4, $var5; - a: { - $var3 = $this.$getDropItemId(); - if ($var3 > 0) { - $var4 = Math.random() * 3.0 | 0; - if ($par2 > 0) { - $par1 = $par2 + 1 | 0; - $var4 = $var4 + (Math.random() * $par1 | 0) | 0; - } - $var5 = 0; - while (true) { - if ($var5 >= $var4) - break a; - nms_Entity_dropItemWithOffset($this, $var3, 1, 0.0); - $var5 = $var5 + 1 | 0; - } - } - } -} -function nms_EntityLiving_getDropItemId($this) { - return 0; -} -function nms_EntityLiving_fall($this, $par1) { - var $var4, $var2, var$4, var$5, var$6, var$7, $var3, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var3 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var2 = $thread.pop();$var4 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$riddenByEntity !== null) { - $var4 = $this.$riddenByEntity; - $ptr = 1; - continue main; - } - $par1 = $par1 - 3.0; - $var2 = $par1 | 0; - if ($par1 > $var2) - $var2 = $var2 + 1 | 0; - if ($var2 <= 0) - return; - if ($var2 <= 4) { - $var4 = $rt_s(692); - $par1 = 1.0; - var$4 = 1.0; - $ptr = 2; - continue main; - } - $var4 = $rt_s(693); - $par1 = 1.0; - var$4 = 1.0; - $ptr = 3; - continue main; - case 1: - $var4.$fall($par1); - if ($rt_suspending()) { - break main; - } - $par1 = $par1 - 3.0; - $var2 = $par1 | 0; - if ($par1 > $var2) - $var2 = $var2 + 1 | 0; - if ($var2 <= 0) - return; - if ($var2 <= 4) { - $var4 = $rt_s(692); - $par1 = 1.0; - var$4 = 1.0; - $ptr = 2; - continue main; - } - $var4 = $rt_s(693); - $par1 = 1.0; - var$4 = 1.0; - $ptr = 3; - continue main; - case 2: - $this.$playSound1($var4, $par1, var$4); - if ($rt_suspending()) { - break main; - } - $var4 = nms_DamageSource_fall; - $ptr = 4; - continue main; - case 3: - $this.$playSound1($var4, $par1, var$4); - if ($rt_suspending()) { - break main; - } - $var4 = nms_DamageSource_fall; - $ptr = 4; - case 4: - $this.$attackEntityFrom($var4, $var2); - if ($rt_suspending()) { - break main; - } - $var4 = $this.$worldObj; - var$5 = $this.$posX; - var$6 = var$5 | 0; - if (var$5 < var$6) - var$6 = var$6 - 1 | 0; - var$5 = $this.$posY - 0.20000000298023224 - $this.$yOffset0; - var$7 = var$5 | 0; - if (var$5 < var$7) - var$7 = var$7 - 1 | 0; - var$5 = $this.$posZ; - $var2 = var$5 | 0; - if (var$5 < $var2) - $var2 = $var2 - 1 | 0; - $var3 = nms_World_getBlockId($var4, var$6, var$7, $var2); - if ($var3 <= 0) - return; - nms_Block_$callClinit(); - $var4 = nms_Block_blocksList.data[$var3].$stepSound; - var$9 = nms_StepSound_getStepSound($var4); - $par1 = $var4.$stepSoundVolume * 0.5; - var$4 = $var4.$stepSoundPitch * 0.75; - $ptr = 5; - case 5: - $this.$playSound1(var$9, $par1, var$4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var4, $var2, var$4, var$5, var$6, var$7, $var3, var$9, $ptr); -} -function nms_EntityLiving_moveEntityWithHeading($this, $par1, $par2) { - var $var3, $var4, $var8, $var6, $var9, $var11, var$9, var$10, $var12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var6 = $thread.pop();$var8 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($this.$isInWater()) { - if (!($this instanceof nms_EntityPlayer)) - break a; - if (!$this.$capabilities.$isFlying) - break a; - } - b: { - if ($this.$handleLavaMovement()) { - if (!($this instanceof nms_EntityPlayer)) - break b; - if (!$this.$capabilities.$isFlying) - break b; - } - $var3 = 0.9100000262260437; - if ($this.$onGround) { - $var3 = 0.546000063419342; - $var4 = nms_World_getBlockId($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$boundingBox.$minY) - 1 | 0, nms_MathHelper_floor_double($this.$posZ)); - if ($var4 > 0) { - nms_Block_$callClinit(); - $var3 = nms_Block_blocksList.data[$var4].$slipperiness * 0.9100000262260437; - } - } - $var8 = 0.16277135908603668 / ($var3 * $var3 * $var3); - nms_Entity_moveFlying($this, $par1, $par2, !$this.$onGround ? $this.$jumpMovementFactor : (!$this.$isAIEnabled() ? $this.$landMovementFactor : nms_EntityLiving_getAIMoveSpeed($this)) * $var8); - $par1 = 0.9100000262260437; - if ($this.$onGround) { - $par1 = 0.546000063419342; - $var6 = nms_World_getBlockId($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$boundingBox.$minY) - 1 | 0, nms_MathHelper_floor_double($this.$posZ)); - if ($var6 > 0) { - nms_Block_$callClinit(); - $par1 = nms_Block_blocksList.data[$var6].$slipperiness * 0.9100000262260437; - } - } - if ($this.$isOnLadder()) { - if ($this.$motionX < (-0.15000000596046448)) - $this.$motionX = (-0.15000000596046448); - if ($this.$motionX > 0.15000000596046448) - $this.$motionX = 0.15000000596046448; - if ($this.$motionZ < (-0.15000000596046448)) - $this.$motionZ = (-0.15000000596046448); - if ($this.$motionZ > 0.15000000596046448) - $this.$motionZ = 0.15000000596046448; - $this.$fallDistance = 0.0; - if ($this.$motionY < (-0.15)) - $this.$motionY = (-0.15); - if (($this.$isSneaking() && $this instanceof nms_EntityPlayer ? 1 : 0) && $this.$motionY < 0.0) - $this.$motionY = 0.0; - } - $var9 = $this.$motionX; - $var11 = $this.$motionY; - var$9 = $this.$motionZ; - $ptr = 3; - continue main; - } - $var9 = $this.$posY; - nms_Entity_moveFlying($this, $par1, $par2, 0.019999999552965164); - $var11 = $this.$motionX; - var$9 = $this.$motionY; - var$10 = $this.$motionZ; - $ptr = 1; - continue main; - } - $var9 = $this.$posY; - nms_Entity_moveFlying($this, $par1, $par2, !$this.$isAIEnabled() ? 0.019999999552965164 : 0.03999999910593033); - $var11 = $this.$motionX; - var$9 = $this.$motionY; - var$10 = $this.$motionZ; - $ptr = 2; - continue main; - case 1: - $this.$moveEntity($var11, var$9, var$10); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.5; - $this.$motionZ = $this.$motionZ * 0.5; - $this.$motionY = $this.$motionY - 0.02; - if ($this.$isCollidedHorizontally && nms_Entity_isOffsetPositionInLiquid($this, $this.$motionX, $this.$motionY + 0.6000000238418579 - $this.$posY + $var9, $this.$motionZ)) - $this.$motionY = 0.30000001192092896; - $this.$prevLimbYaw = $this.$limbYaw; - $var9 = $this.$posX - $this.$prevPosX; - $var11 = $this.$posZ - $this.$prevPosZ; - $var12 = nms_MathHelper_sqrt_double($var9 * $var9 + $var11 * $var11) * 4.0; - if ($var12 > 1.0) - $var12 = 1.0; - $this.$limbYaw = $this.$limbYaw + ($var12 - $this.$limbYaw) * 0.4000000059604645; - $this.$limbSwing = $this.$limbSwing + $this.$limbYaw; - return; - case 2: - $this.$moveEntity($var11, var$9, var$10); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.800000011920929; - $this.$motionY = $this.$motionY * 0.800000011920929; - $this.$motionZ = $this.$motionZ * 0.800000011920929; - $this.$motionY = $this.$motionY - 0.02; - if ($this.$isCollidedHorizontally && nms_Entity_isOffsetPositionInLiquid($this, $this.$motionX, $this.$motionY + 0.6000000238418579 - $this.$posY + $var9, $this.$motionZ)) - $this.$motionY = 0.30000001192092896; - $this.$prevLimbYaw = $this.$limbYaw; - $var9 = $this.$posX - $this.$prevPosX; - $var11 = $this.$posZ - $this.$prevPosZ; - $var12 = nms_MathHelper_sqrt_double($var9 * $var9 + $var11 * $var11) * 4.0; - if ($var12 > 1.0) - $var12 = 1.0; - $this.$limbYaw = $this.$limbYaw + ($var12 - $this.$limbYaw) * 0.4000000059604645; - $this.$limbSwing = $this.$limbSwing + $this.$limbYaw; - return; - case 3: - $this.$moveEntity($var9, $var11, var$9); - if ($rt_suspending()) { - break main; - } - if ($this.$isCollidedHorizontally && $this.$isOnLadder()) - $this.$motionY = 0.2; - c: { - b: { - if ($this.$worldObj.$isRemote) { - if (!nms_World_blockExists($this.$worldObj, $this.$posX | 0, 0, $this.$posZ | 0)) - break b; - if (!nms_World_getChunkFromBlockCoords($this.$worldObj, $this.$posX | 0, $this.$posZ | 0).$isChunkLoaded) - break b; - } - $this.$motionY = $this.$motionY - 0.08; - break c; - } - if ($this.$posY <= 0.0) - $this.$motionY = 0.0; - else - $this.$motionY = (-0.1); - } - $this.$motionY = $this.$motionY * 0.9800000190734863; - $var9 = $this.$motionX; - $var11 = $par1; - $this.$motionX = $var9 * $var11; - $this.$motionZ = $this.$motionZ * $var11; - $this.$prevLimbYaw = $this.$limbYaw; - $var9 = $this.$posX - $this.$prevPosX; - $var11 = $this.$posZ - $this.$prevPosZ; - $var12 = nms_MathHelper_sqrt_double($var9 * $var9 + $var11 * $var11) * 4.0; - if ($var12 > 1.0) - $var12 = 1.0; - $this.$limbYaw = $this.$limbYaw + ($var12 - $this.$limbYaw) * 0.4000000059604645; - $this.$limbSwing = $this.$limbSwing + $this.$limbYaw; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, $var4, $var8, $var6, $var9, $var11, var$9, var$10, $var12, $ptr); -} -function nms_EntityLiving_isOnLadder($this) { - var var$1, $var1, $var2, $var3, $var4; - var$1 = $this.$posX; - $var1 = var$1 | 0; - if (var$1 < $var1) - $var1 = $var1 - 1 | 0; - var$1 = $this.$boundingBox.$minY; - $var2 = var$1 | 0; - if (var$1 < $var2) - $var2 = $var2 - 1 | 0; - var$1 = $this.$posZ; - $var3 = var$1 | 0; - if (var$1 < $var3) - $var3 = $var3 - 1 | 0; - $var4 = nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3); - nms_Block_$callClinit(); - return $var4 != nms_Block_ladder.$blockID && $var4 != nms_Block_vine.$blockID ? 0 : 1; -} -function nms_EntityLiving_isEntityAlive($this) { - return !$this.$isDead && $this.$health > 0 ? 1 : 0; -} -function nms_EntityLiving_canBreatheUnderwater($this) { - return 0; -} -function nms_EntityLiving_setMoveForward($this, $par1) { - $this.$moveForward0 = $par1; -} -function nms_EntityLiving_setJumping($this, $par1) { - $this.$isJumping = $par1; -} -function nms_EntityLiving_onLivingUpdate($this) { - var $var1, $var3, $var5, $var7, $var11, var$6, var$7, $var12, $var4, $var13, $var6, $var14, $var8, $var15, $var16, $var9, $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var8 = $thread.pop();$var14 = $thread.pop();$var6 = $thread.pop();$var13 = $thread.pop();$var4 = $thread.pop();$var12 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var11 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$jumpTicks > 0) - $this.$jumpTicks = $this.$jumpTicks - 1 | 0; - if ($this.$newPosRotationIncrements > 0) { - $var1 = $this.$posX + ($this.$newPosX - $this.$posX) / $this.$newPosRotationIncrements; - $var3 = $this.$posY + ($this.$newPosY - $this.$posY) / $this.$newPosRotationIncrements; - $var5 = $this.$posZ + ($this.$newPosZ - $this.$posZ) / $this.$newPosRotationIncrements; - $var7 = nms_MathHelper_wrapAngleTo180_double($this.$newRotationYaw - $this.$rotationYaw); - $this.$rotationYaw = $this.$rotationYaw + $var7 / $this.$newPosRotationIncrements; - $this.$rotationPitch = $this.$rotationPitch + ($this.$newRotationPitch - $this.$rotationPitch) / $this.$newPosRotationIncrements; - $this.$newPosRotationIncrements = $this.$newPosRotationIncrements - 1 | 0; - nms_Entity_setPosition($this, $var1, $var3, $var5); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } else if (!$this.$isClientWorld()) { - $this.$motionX = $this.$motionX * 0.98; - $this.$motionY = $this.$motionY * 0.98; - $this.$motionZ = $this.$motionZ * 0.98; - } - if (jl_Math_abs0($this.$motionX) < 0.005) - $this.$motionX = 0.0; - if (jl_Math_abs0($this.$motionY) < 0.005) - $this.$motionY = 0.0; - if (jl_Math_abs0($this.$motionZ) < 0.005) - $this.$motionZ = 0.0; - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(694)); - if ($this.$isMovementBlocked()) { - $this.$isJumping = 0; - $this.$moveStrafing = 0.0; - $this.$moveForward0 = 0.0; - $this.$randomYawVelocity = 0.0; - } else if ($this.$isClientWorld()) { - if (!$this.$isAIEnabled()) { - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(695)); - $ptr = 1; - continue main; - } - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(696)); - $ptr = 2; - continue main; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(697)); - if (!$this.$isJumping) - $this.$jumpTicks = 0; - else if (!(!$this.$isInWater() && !$this.$handleLavaMovement())) - $this.$motionY = $this.$motionY + 0.03999999910593033; - else if ($this.$onGround && !$this.$jumpTicks) { - $this.$jump0(); - $this.$jumpTicks = 10; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(698)); - $this.$moveStrafing = $this.$moveStrafing * 0.9800000190734863; - $this.$moveForward0 = $this.$moveForward0 * 0.9800000190734863; - $this.$randomYawVelocity = $this.$randomYawVelocity * 0.8999999761581421; - $var11 = $this.$landMovementFactor; - $this.$landMovementFactor = $this.$landMovementFactor * $this.$getSpeedModifier(); - var$6 = $this.$moveStrafing; - var$7 = $this.$moveForward0; - $ptr = 3; - continue main; - case 1: - $this.$updateEntityActionState(); - if ($rt_suspending()) { - break main; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - $this.$rotationYawHead = $this.$rotationYaw; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(697)); - if (!$this.$isJumping) - $this.$jumpTicks = 0; - else if (!(!$this.$isInWater() && !$this.$handleLavaMovement())) - $this.$motionY = $this.$motionY + 0.03999999910593033; - else if ($this.$onGround && !$this.$jumpTicks) { - $this.$jump0(); - $this.$jumpTicks = 10; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(698)); - $this.$moveStrafing = $this.$moveStrafing * 0.9800000190734863; - $this.$moveForward0 = $this.$moveForward0 * 0.9800000190734863; - $this.$randomYawVelocity = $this.$randomYawVelocity * 0.8999999761581421; - $var11 = $this.$landMovementFactor; - $this.$landMovementFactor = $this.$landMovementFactor * $this.$getSpeedModifier(); - var$6 = $this.$moveStrafing; - var$7 = $this.$moveForward0; - $ptr = 3; - continue main; - case 2: - $this.$updateAITasks(); - if ($rt_suspending()) { - break main; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(697)); - if (!$this.$isJumping) - $this.$jumpTicks = 0; - else if (!(!$this.$isInWater() && !$this.$handleLavaMovement())) - $this.$motionY = $this.$motionY + 0.03999999910593033; - else if ($this.$onGround && !$this.$jumpTicks) { - $this.$jump0(); - $this.$jumpTicks = 10; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(698)); - $this.$moveStrafing = $this.$moveStrafing * 0.9800000190734863; - $this.$moveForward0 = $this.$moveForward0 * 0.9800000190734863; - $this.$randomYawVelocity = $this.$randomYawVelocity * 0.8999999761581421; - $var11 = $this.$landMovementFactor; - $this.$landMovementFactor = $this.$landMovementFactor * $this.$getSpeedModifier(); - var$6 = $this.$moveStrafing; - var$7 = $this.$moveForward0; - $ptr = 3; - case 3: - $this.$moveEntityWithHeading(var$6, var$7); - if ($rt_suspending()) { - break main; - } - $this.$landMovementFactor = $var11; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(699)); - if (!$this.$worldObj.$isRemote) - $this.$func_85033_bc(); - a: { - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(700)); - if (!$this.$worldObj.$isRemote && $this.$canPickUpLoot0() && !$this.$dead && nms_GameRules_getGameRuleBooleanValue(nms_World_getGameRules($this.$worldObj), $rt_s(701))) { - $var12 = ju_AbstractList_iterator(nms_World_getEntitiesWithinAABB($this.$worldObj, $rt_cls(nms_EntityItem), nms_AxisAlignedBB_expand($this.$boundingBox, 1.0, 0.0, 1.0))); - while (true) { - if (!ju_AbstractList$1_hasNext($var12)) - break a; - $var4 = ju_AbstractList$1_next($var12); - if (!$var4.$isDead && nms_EntityItem_getEntityItem($var4) !== null) { - $var13 = nms_EntityItem_getEntityItem($var4); - $var6 = nms_EntityLiving_getArmorPosition($var13); - if ($var6 > (-1)) { - $var14 = 1; - $var8 = $this.$getCurrentItemOrArmor($var6); - if ($var8 !== null) { - if ($var6) { - if (nms_ItemStack_getItem($var13) instanceof nms_ItemArmor && !(nms_ItemStack_getItem($var8) instanceof nms_ItemArmor)) - $var14 = 1; - else if (nms_ItemStack_getItem($var13) instanceof nms_ItemArmor && nms_ItemStack_getItem($var8) instanceof nms_ItemArmor) { - $var15 = nms_ItemStack_getItem($var13); - $var16 = nms_ItemStack_getItem($var8); - if ($var15.$damageReduceAmount != $var16.$damageReduceAmount) - $var14 = $var15.$damageReduceAmount <= $var16.$damageReduceAmount ? 0 : 1; - else - b: { - c: { - if (nms_ItemStack_getItemDamage($var13) <= nms_ItemStack_getItemDamage($var8)) { - if (!nms_ItemStack_hasTagCompound($var13)) - break c; - if (nms_ItemStack_hasTagCompound($var8)) - break c; - } - $var14 = 1; - break b; - } - $var14 = 0; - } - } else - $var14 = 0; - } else if (nms_ItemStack_getItem($var13) instanceof nms_ItemSword && !(nms_ItemStack_getItem($var8) instanceof nms_ItemSword)) - $var14 = 1; - else if (nms_ItemStack_getItem($var13) instanceof nms_ItemSword && nms_ItemStack_getItem($var8) instanceof nms_ItemSword) { - $var9 = nms_ItemStack_getItem($var13); - $var10 = nms_ItemStack_getItem($var8); - if (nms_ItemSword_func_82803_g($var9) != nms_ItemSword_func_82803_g($var10)) - $var14 = nms_ItemSword_func_82803_g($var9) <= nms_ItemSword_func_82803_g($var10) ? 0 : 1; - else - d: { - e: { - if (nms_ItemStack_getItemDamage($var13) <= nms_ItemStack_getItemDamage($var8)) { - if (!nms_ItemStack_hasTagCompound($var13)) - break e; - if (nms_ItemStack_hasTagCompound($var8)) - break e; - } - $var14 = 1; - break d; - } - $var14 = 0; - } - } else - $var14 = 0; - } - if ($var14) { - if ($var8 !== null && ju_Random_nextFloat($this.$rand0) - 0.10000000149011612 < $this.$equipmentDropChances.data[$var6]) - nms_Entity_entityDropItem($this, $var8, 0.0); - $this.$setCurrentItemOrArmor($var6, $var13); - $this.$equipmentDropChances.data[$var6] = 2.0; - $this.$persistenceRequired = 1; - $this.$onItemPickup($var4, 1); - $ptr = 4; - continue main; - } - } - } - } - } - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - case 4: - nms_Entity_setDead($var4); - if ($rt_suspending()) { - break main; - } - while (ju_AbstractList$1_hasNext($var12)) { - $var4 = ju_AbstractList$1_next($var12); - if ($var4.$isDead) - continue; - if (nms_EntityItem_getEntityItem($var4) === null) - continue; - $var13 = nms_EntityItem_getEntityItem($var4); - $var6 = nms_EntityLiving_getArmorPosition($var13); - if ($var6 <= (-1)) - continue; - $var14 = 1; - $var8 = $this.$getCurrentItemOrArmor($var6); - if ($var8 !== null) { - if ($var6) { - if (nms_ItemStack_getItem($var13) instanceof nms_ItemArmor && !(nms_ItemStack_getItem($var8) instanceof nms_ItemArmor)) - $var14 = 1; - else if (nms_ItemStack_getItem($var13) instanceof nms_ItemArmor && nms_ItemStack_getItem($var8) instanceof nms_ItemArmor) { - $var15 = nms_ItemStack_getItem($var13); - $var16 = nms_ItemStack_getItem($var8); - if ($var15.$damageReduceAmount != $var16.$damageReduceAmount) - $var14 = $var15.$damageReduceAmount <= $var16.$damageReduceAmount ? 0 : 1; - else - f: { - g: { - if (nms_ItemStack_getItemDamage($var13) <= nms_ItemStack_getItemDamage($var8)) { - if (!nms_ItemStack_hasTagCompound($var13)) - break g; - if (nms_ItemStack_hasTagCompound($var8)) - break g; - } - $var14 = 1; - break f; - } - $var14 = 0; - } - } else - $var14 = 0; - } else if (nms_ItemStack_getItem($var13) instanceof nms_ItemSword && !(nms_ItemStack_getItem($var8) instanceof nms_ItemSword)) - $var14 = 1; - else if (nms_ItemStack_getItem($var13) instanceof nms_ItemSword && nms_ItemStack_getItem($var8) instanceof nms_ItemSword) { - $var9 = nms_ItemStack_getItem($var13); - $var10 = nms_ItemStack_getItem($var8); - if (nms_ItemSword_func_82803_g($var9) != nms_ItemSword_func_82803_g($var10)) - $var14 = nms_ItemSword_func_82803_g($var9) <= nms_ItemSword_func_82803_g($var10) ? 0 : 1; - else - h: { - i: { - if (nms_ItemStack_getItemDamage($var13) <= nms_ItemStack_getItemDamage($var8)) { - if (!nms_ItemStack_hasTagCompound($var13)) - break i; - if (nms_ItemStack_hasTagCompound($var8)) - break i; - } - $var14 = 1; - break h; - } - $var14 = 0; - } - } else - $var14 = 0; - } - if (!$var14) - continue; - else { - if ($var8 !== null && ju_Random_nextFloat($this.$rand0) - 0.10000000149011612 < $this.$equipmentDropChances.data[$var6]) - nms_Entity_entityDropItem($this, $var8, 0.0); - $this.$setCurrentItemOrArmor($var6, $var13); - $this.$equipmentDropChances.data[$var6] = 2.0; - $this.$persistenceRequired = 1; - $this.$onItemPickup($var4, 1); - continue main; - } - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var3, $var5, $var7, $var11, var$6, var$7, $var12, $var4, $var13, $var6, $var14, $var8, $var15, $var16, $var9, $var10, $ptr); -} -function nms_EntityLiving_func_85033_bc($this) { - var $var3, $var1, var$3, var$4, var$5, var$6, var$7, var$8, $var2; - a: { - b: { - $var3 = $this.$worldObj; - $var1 = $this.$boundingBox; - var$3 = $var1.$minX - 0.20000000298023224; - var$4 = $var1.$minY - 0.0; - var$5 = $var1.$minZ - 0.20000000298023224; - var$6 = $var1.$maxX + 0.20000000298023224; - var$7 = $var1.$maxY + 0.0; - var$8 = $var1.$maxZ + 0.20000000298023224; - $var1 = nms_World_getEntitiesWithinAABBExcludingEntity($var3, $this, nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$3, var$4, var$5, var$6, var$7, var$8), null); - if ($var1 !== null && !($var1.$size0 ? 0 : 1)) { - $var2 = 0; - while (true) { - if ($var2 >= $var1.$size0) - break b; - if ($var2 < 0) - break a; - if ($var2 >= $var1.$size0) - break a; - $var3 = $var1.$array1.data[$var2]; - if ($var3.$canBePushed()) - $this.$collideWithEntity($var3); - $var2 = $var2 + 1 | 0; - } - } - } - return; - } - $var3 = new jl_IndexOutOfBoundsException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $rt_throw($var3); -} -function nms_EntityLiving_collideWithEntity($this, $par1Entity) { - $par1Entity.$applyEntityCollision($this); -} -function nms_EntityLiving_isAIEnabled($this) { - return 0; -} -function nms_EntityLiving_isClientWorld($this) { - return $this.$worldObj.$isRemote ? 0 : 1; -} -function nms_EntityLiving_isMovementBlocked($this) { - return $this.$health > 0 ? 0 : 1; -} -function nms_EntityLiving_jump($this) { - var $var1, var$2, var$3, var$4; - $this.$motionY = 0.41999998688697815; - if (nms_EntityLiving_isPotionActive($this, nms_Potion_jump)) - $this.$motionY = $this.$motionY + (nms_EntityLiving_getActivePotionEffect($this, nms_Potion_jump).$amplifier + 1 | 0) * 0.10000000149011612; - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 8) ? 0 : 1) { - $var1 = $this.$rotationYaw * 0.01745329238474369; - var$2 = $this.$motionX; - var$3 = nms_MathHelper_SIN_TABLE.data; - var$4 = $var1 * 10430.3779296875; - $this.$motionX = var$2 - var$3[(var$4 | 0) & 65535] * 0.20000000298023224; - $this.$motionZ = $this.$motionZ + nms_MathHelper_SIN_TABLE.data[(var$4 + 16384.0 | 0) & 65535] * 0.20000000298023224; - } - $this.$isAirBorne = 1; -} -function nms_EntityLiving_canDespawn($this) { - return 1; -} -function nms_EntityLiving_despawnEntity($this) { - var $var1, $var2, $var4, $var6, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$persistenceRequired) { - $var1 = nms_World_getClosestPlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, (-1.0)); - if ($var1 !== null) { - $var2 = $var1.$posX - $this.$posX; - $var4 = $var1.$posY - $this.$posY; - $var6 = $var1.$posZ - $this.$posZ; - $var8 = $var2 * $var2 + $var4 * $var4 + $var6 * $var6; - if ($this.$canDespawn() && $var8 > 16384.0) { - $ptr = 1; - continue main; - } - if ($this.$entityAge > 600 && !(Math.random() * 800.0 | 0) && $var8 > 1024.0 && $this.$canDespawn()) { - $ptr = 2; - continue main; - } - if ($var8 < 1024.0) - $this.$entityAge = 0; - } - } - return; - case 1: - $this.$setDead(); - if ($rt_suspending()) { - break main; - } - if ($this.$entityAge > 600 && !(Math.random() * 800.0 | 0) && $var8 > 1024.0 && $this.$canDespawn()) { - $ptr = 2; - continue main; - } - if ($var8 < 1024.0) - $this.$entityAge = 0; - return; - case 2: - $this.$setDead(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var4, $var6, $var8, $ptr); -} -function nms_EntityLiving_updateAITasks($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: - $this.$entityAge = $this.$entityAge + 1 | 0; - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(702)); - $ptr = 1; - case 1: - $this.$despawnEntity(); - if ($rt_suspending()) { - break main; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(703)); - nms_EntitySenses_clearSensingCache($this.$senses); - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(704)); - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(705)); - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(706)); - $this.$updateAITick(); - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(707)); - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(674)); - nms_EntityMoveHelper_onUpdateMoveHelper($this.$moveHelper); - var$1 = $this.$worldObj.$theProfiler; - nms_Profiler_endSection(var$1); - nms_Profiler_startSection(var$1, $rt_s(708)); - nms_EntityLookHelper_onUpdateLook($this.$lookHelper); - var$1 = $this.$worldObj.$theProfiler; - nms_Profiler_endSection(var$1); - nms_Profiler_startSection(var$1, $rt_s(697)); - var$1 = $this.$jumpHelper; - var$1.$entity1.$isJumping = var$1.$isJumping0; - var$1.$isJumping0 = 0; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -} -function nms_EntityLiving_updateAITick($this) { - return; -} -function nms_EntityLiving_updateEntityActionState($this) { - var $var2, $var4, var$3, var$4, var$5, $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$entityAge = $this.$entityAge + 1 | 0; - $ptr = 1; - case 1: - $this.$despawnEntity(); - if ($rt_suspending()) { - break main; - } - $this.$moveStrafing = 0.0; - $this.$moveForward0 = 0.0; - if (Math.random() < 0.019999999552965164) { - $var2 = nms_World_getClosestPlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 8.0); - if ($var2 === null) - $this.$randomYawVelocity = (Math.random() - 0.5) * 20.0; - else { - $this.$currentTarget = $var2; - $this.$numTicksToChaseTarget = 10 + (Math.random() * 20.0 | 0) | 0; - } - } - a: { - if ($this.$currentTarget === null) { - if (Math.random() < 0.05000000074505806) - $this.$randomYawVelocity = (Math.random() - 0.5) * 20.0; - $this.$rotationYaw = $this.$rotationYaw + $this.$randomYawVelocity; - $this.$rotationPitch = $this.$defaultPitch; - } else { - nms_EntityLiving_faceEntity($this, $this.$currentTarget, 10.0, $this.$getVerticalFaceSpeed()); - $var4 = $this.$numTicksToChaseTarget; - $this.$numTicksToChaseTarget = $var4 - 1 | 0; - if ($var4 > 0 && !$this.$currentTarget.$isDead) { - $var2 = $this.$currentTarget; - var$3 = $var2.$posX - $this.$posX; - var$4 = $var2.$posY - $this.$posY; - var$5 = $var2.$posZ - $this.$posZ; - if (var$3 * var$3 + var$4 * var$4 + var$5 * var$5 <= 64.0) - break a; - } - $this.$currentTarget = null; - } - } - $var4 = $this.$isInWater(); - $var3 = $this.$handleLavaMovement(); - if (!(!$var4 && !$var3)) - $this.$isJumping = Math.random() >= 0.800000011920929 ? 0 : 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var2, $var4, var$3, var$4, var$5, $var3, $ptr); -} -function nms_EntityLiving_updateArmSwingProgress($this) { - var $var1; - $var1 = nms_EntityLiving_getArmSwingAnimationEnd($this); - if (!$this.$isSwingInProgress) - $this.$swingProgressInt = 0; - else { - $this.$swingProgressInt = $this.$swingProgressInt + 1 | 0; - if ($this.$swingProgressInt >= $var1) { - $this.$swingProgressInt = 0; - $this.$isSwingInProgress = 0; - } - } - $this.$swingProgress = $this.$swingProgressInt / $var1; -} -function nms_EntityLiving_getVerticalFaceSpeed($this) { - return 40; -} -function nms_EntityLiving_faceEntity($this, $par1Entity, $par2, $par3) { - var $var4, $var8, $var6, $var10, $var14, $var12, $var13, var$11; - $var4 = $par1Entity.$posX - $this.$posX; - $var8 = $par1Entity.$posZ - $this.$posZ; - if (!($par1Entity instanceof nms_EntityLiving)) - $var6 = ($par1Entity.$boundingBox.$minY + $par1Entity.$boundingBox.$maxY) / 2.0 - ($this.$posY + $this.$getEyeHeight()); - else { - $var10 = $par1Entity; - $var6 = $var10.$posY + $var10.$getEyeHeight() - ($this.$posY + $this.$getEyeHeight()); - } - $var14 = jl_Math_sqrt($var4 * $var4 + $var8 * $var8); - $var12 = jl_Math_atan2($var8, $var4) * 180.0 / 3.141592653589793 - 90.0; - $var13 = -(jl_Math_atan2($var6, $var14) * 180.0 / 3.141592653589793); - var$11 = $this.$rotationPitch; - $var13 = nms_MathHelper_wrapAngleTo180_float($var13 - var$11); - if ($var13 > $par3) - $var13 = $par3; - $par3 = -$par3; - if ($var13 >= $par3) - $par3 = $var13; - $this.$rotationPitch = var$11 + $par3; - $par3 = $this.$rotationYaw; - $var12 = nms_MathHelper_wrapAngleTo180_float($var12 - $par3); - if ($var12 > $par2) - $var12 = $par2; - $par2 = -$par2; - if ($var12 >= $par2) - $par2 = $var12; - $this.$rotationYaw = $par3 + $par2; -} -function nms_EntityLiving_kill($this) { - var var$1, var$2, $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: - var$1 = nms_DamageSource_outOfWorld; - var$2 = 4; - $ptr = 1; - case 1: - $this.$attackEntityFrom(var$1, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, $ptr); -} -function nms_EntityLiving_getSwingProgress($this, $par1) { - var $var2; - $var2 = $this.$swingProgress - $this.$prevSwingProgress; - if ($var2 < 0.0) - $var2 = $var2 + 1.0; - return $this.$prevSwingProgress + $var2 * $par1; -} -function nms_EntityLiving_getPosition($this, $par1) { - var $var2, $var4, $var6; - if ($par1 === 1.0) - return nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $this.$posX, $this.$posY, $this.$posZ); - $var2 = $this.$prevPosX; - $var4 = $this.$posX - $this.$prevPosX; - $var6 = $par1; - $var2 = $var2 + $var4 * $var6; - $var4 = $this.$prevPosY + ($this.$posY - $this.$prevPosY) * $var6; - $var6 = $this.$prevPosZ + ($this.$posZ - $this.$prevPosZ) * $var6; - return nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $var2, $var4, $var6); -} -function nms_EntityLiving_getLookVec($this) { - return nms_EntityLiving_getLook($this, 1.0); -} -function nms_EntityLiving_getLook($this, $par1) { - var $var2, var$3, $var4, $var5, $var6, $var7, $var2_0, $var3; - if ($par1 !== 1.0) { - $var2 = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * $par1; - $par1 = -($this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * $par1) * 0.01745329238474369 - 3.1415927410125732; - var$3 = nms_MathHelper_SIN_TABLE.data; - $par1 = $par1 * 10430.3779296875; - $var4 = var$3[($par1 + 16384.0 | 0) & 65535]; - $var5 = nms_MathHelper_SIN_TABLE.data[($par1 | 0) & 65535]; - $par1 = -$var2 * 0.01745329238474369; - var$3 = nms_MathHelper_SIN_TABLE.data; - $par1 = $par1 * 10430.3779296875; - $var6 = -var$3[($par1 + 16384.0 | 0) & 65535]; - $var7 = nms_MathHelper_SIN_TABLE.data[($par1 | 0) & 65535]; - return nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $var5 * $var6, $var7, $var4 * $var6); - } - $par1 = -$this.$rotationYaw * 0.01745329238474369 - 3.1415927410125732; - $var2_0 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $par1 = -$this.$rotationYaw * 0.01745329238474369 - 3.1415927410125732; - $var3 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - $par1 = -$this.$rotationPitch * 0.01745329238474369; - $var4 = -nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $par1 = -$this.$rotationPitch * 0.01745329238474369; - $var5 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - return nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $var3 * $var4, $var5, $var2_0 * $var4); -} -function nms_EntityLiving_getRenderSizeModifier($this) { - return 1.0; -} -function nms_EntityLiving_rayTrace($this, $par1, $par3) { - var $var4, $var5, var$5, var$6, $var6; - $var4 = nms_EntityLiving_getPosition($this, $par3); - $var5 = nms_EntityLiving_getLook($this, $par3); - var$5 = $var5.$xCoord * $par1; - var$6 = $var5.$yCoord * $par1; - $par1 = $var5.$zCoord * $par1; - $var6 = nms_Vec3Pool_getVecFromPool($var4.$myVec3LocalPool, $var4.$xCoord + var$5, $var4.$yCoord + var$6, $var4.$zCoord + $par1); - return nms_World_rayTraceBlocks_do_do($this.$worldObj, $var4, $var6, 0, 0); -} -function nms_EntityLiving_handleHealthUpdate($this, $par1) { - var 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();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 != 2) { - if ($par1 != 3) - return; - var$2 = $this.$getDeathSound(); - var$3 = $this.$getSoundVolume(); - var$4 = (Math.random() - Math.random()) * 0.20000000298023224 + 1.0; - $ptr = 3; - continue main; - } - $this.$limbYaw = 1.5; - $this.$hurtResistantTime = $this.$maxHurtResistantTime; - $this.$maxHurtTime = 10; - $this.$hurtTime = 10; - $this.$attackedAtYaw = 0.0; - var$2 = $this.$getHurtSound(); - var$3 = $this.$getSoundVolume(); - var$4 = (Math.random() - Math.random()) * 0.20000000298023224 + 1.0; - $ptr = 1; - case 1: - $this.$playSound1(var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - var$2 = nms_DamageSource_generic; - $par1 = 0; - $ptr = 2; - case 2: - $this.$attackEntityFrom(var$2, $par1); - if ($rt_suspending()) { - break main; - } - return; - case 3: - $this.$playSound1(var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - $this.$health = 0; - var$2 = nms_DamageSource_generic; - $ptr = 4; - case 4: - $this.$onDeath(var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, var$3, var$4, $ptr); -} -function nms_EntityLiving_isPlayerSleeping($this) { - return 0; -} -function nms_EntityLiving_getItemIcon($this, $par1ItemStack, $par2) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$par1ItemStack.$itemID0].$getIconFromDamage($par1ItemStack.$itemDamage); -} -function nms_EntityLiving_updatePotionEffects($this) { - var $var1, $var2, $var3, var$4, $var12, $var13, $var14, $var7, $var9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = $this.$activePotionsMap; - if ($var1.$cachedKeySet === null) { - $var2 = new ju_HashMap$1; - $var2.$this$01 = $var1; - $var1.$cachedKeySet = $var2; - } - $var1 = $var1.$cachedKeySet.$iterator(); - if ($var1.$hasNext()) { - $var2 = $var1.$next(); - $var3 = $this.$activePotionsMap; - if ($var2 !== null) { - var$4 = jl_Integer_hashCode($var2); - $var2 = ju_HashMap_findNonNullKeyEntry($var3, $var2, var$4 & ($var3.$elementData.data.length - 1 | 0), var$4); - } else { - $var2 = $var3.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var3 = $var2 === null ? null : $var2.$value0; - $ptr = 1; - continue main; - } - if ($this.$potionsNeedUpdate) { - if (!$this.$worldObj.$isRemote) { - if ($this.$activePotionsMap.$elementCount ? 0 : 1) { - $var1 = $this.$dataWatcher; - $var2 = new jl_Byte; - $var2.$value4 = 0; - nms_DataWatcher_updateObject($var1, 9, $var2); - nms_DataWatcher_updateObject($this.$dataWatcher, 8, jl_Integer_valueOf(0)); - nms_Entity_setFlag($this, 5, 0); - } else { - $var1 = $this.$activePotionsMap; - if ($var1.$cachedValues === null) { - $var2 = new ju_HashMap$2; - $var2.$this$00 = $var1; - $var1.$cachedValues = $var2; - } - $var12 = nms_PotionHelper_calcPotionLiquidColor($var1.$cachedValues); - $var1 = $this.$dataWatcher; - $var2 = $this.$activePotionsMap; - if ($var2.$cachedValues === null) { - $var3 = new ju_HashMap$2; - $var3.$this$00 = $var2; - $var2.$cachedValues = $var3; - } - $var2 = $var2.$cachedValues.$iterator(); - a: { - while ($var2.$hasNext()) { - if ($var2.$next().$isAmbient) - continue; - else { - var$4 = 0; - break a; - } - } - var$4 = 1; - } - nms_DataWatcher_updateObject($var1, 9, jl_Byte_valueOf((!var$4 ? 0 : 1) << 24 >> 24)); - nms_DataWatcher_updateObject($this.$dataWatcher, 8, jl_Integer_valueOf($var12)); - nms_Entity_setInvisible($this, nms_EntityLiving_isPotionActive0($this, nms_Potion_invisibility.$id3)); - } - } - $this.$potionsNeedUpdate = 0; - } - $var12 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 8); - $var13 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 9) <= 0 ? 0 : 1; - if ($var12 > 0) { - var$4 = !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 32) ? 0 : 1) ? ju_Random_nextBoolean($this.$rand0) : ju_Random_nextDouble($this.$rand0) * 15.0 | 0 ? 0 : 1; - if ($var13) - var$4 = var$4 & (ju_Random_nextInt0($this.$rand0, 5) ? 0 : 1); - if (var$4 && $var12 > 0) { - $var14 = ($var12 >> 16 & 255) / 255.0; - $var7 = ($var12 >> 8 & 255) / 255.0; - $var9 = ($var12 >> 0 & 255) / 255.0; - $var2 = $this.$worldObj; - $var3 = !$var13 ? $rt_s(709) : $rt_s(710); - var$10 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = $this.$posY + ju_Random_nextDouble($this.$rand0) * $this.$height1 - $this.$yOffset0; - var$12 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - $ptr = 2; - continue main; - } - } - return; - case 1: - $tmp = nms_PotionEffect_onUpdate($var3, $this); - if ($rt_suspending()) { - break main; - } - $var12 = $tmp; - if (!$var12) { - if (!$this.$worldObj.$isRemote) { - $var1.$remove(); - $this.$potionsNeedUpdate = 1; - } - } else if (!($var3.$duration % 600 | 0)) - $this.$potionsNeedUpdate = 1; - if ($var1.$hasNext()) { - $var2 = $var1.$next(); - $var3 = $this.$activePotionsMap; - if ($var2 !== null) { - var$4 = jl_Integer_hashCode($var2); - $var2 = ju_HashMap_findNonNullKeyEntry($var3, $var2, var$4 & ($var3.$elementData.data.length - 1 | 0), var$4); - } else { - $var2 = $var3.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var3 = $var2 === null ? null : $var2.$value0; - continue main; - } - if ($this.$potionsNeedUpdate) { - if (!$this.$worldObj.$isRemote) { - if ($this.$activePotionsMap.$elementCount ? 0 : 1) { - $var1 = $this.$dataWatcher; - $var2 = new jl_Byte; - $var2.$value4 = 0; - nms_DataWatcher_updateObject($var1, 9, $var2); - nms_DataWatcher_updateObject($this.$dataWatcher, 8, jl_Integer_valueOf(0)); - nms_Entity_setFlag($this, 5, 0); - } else { - $var1 = $this.$activePotionsMap; - if ($var1.$cachedValues === null) { - $var2 = new ju_HashMap$2; - $var2.$this$00 = $var1; - $var1.$cachedValues = $var2; - } - $var12 = nms_PotionHelper_calcPotionLiquidColor($var1.$cachedValues); - $var1 = $this.$dataWatcher; - $var2 = $this.$activePotionsMap; - if ($var2.$cachedValues === null) { - $var3 = new ju_HashMap$2; - $var3.$this$00 = $var2; - $var2.$cachedValues = $var3; - } - $var2 = $var2.$cachedValues.$iterator(); - b: { - while ($var2.$hasNext()) { - if ($var2.$next().$isAmbient) - continue; - else { - var$4 = 0; - break b; - } - } - var$4 = 1; - } - nms_DataWatcher_updateObject($var1, 9, jl_Byte_valueOf((!var$4 ? 0 : 1) << 24 >> 24)); - nms_DataWatcher_updateObject($this.$dataWatcher, 8, jl_Integer_valueOf($var12)); - nms_Entity_setInvisible($this, nms_EntityLiving_isPotionActive0($this, nms_Potion_invisibility.$id3)); - } - } - $this.$potionsNeedUpdate = 0; - } - $var12 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 8); - $var13 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 9) <= 0 ? 0 : 1; - if ($var12 > 0) { - var$4 = !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 32) ? 0 : 1) ? ju_Random_nextBoolean($this.$rand0) : ju_Random_nextDouble($this.$rand0) * 15.0 | 0 ? 0 : 1; - if ($var13) - var$4 = var$4 & (ju_Random_nextInt0($this.$rand0, 5) ? 0 : 1); - if (var$4 && $var12 > 0) { - $var14 = ($var12 >> 16 & 255) / 255.0; - $var7 = ($var12 >> 8 & 255) / 255.0; - $var9 = ($var12 >> 0 & 255) / 255.0; - $var2 = $this.$worldObj; - $var3 = !$var13 ? $rt_s(709) : $rt_s(710); - var$10 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = $this.$posY + ju_Random_nextDouble($this.$rand0) * $this.$height1 - $this.$yOffset0; - var$12 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - $ptr = 2; - continue main; - } - } - return; - case 2: - nms_World_spawnParticle($var2, $var3, var$10, var$11, var$12, $var14, $var7, $var9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var3, var$4, $var12, $var13, $var14, $var7, $var9, var$10, var$11, var$12, $ptr); -} -function nms_EntityLiving_clearActivePotions($this) { - var $var1, $var2, var$3, var$4; - $var1 = $this.$activePotionsMap; - if ($var1.$cachedKeySet === null) { - $var2 = new ju_HashMap$1; - $var2.$this$01 = $var1; - $var1.$cachedKeySet = $var2; - } - $var1 = $var1.$cachedKeySet.$iterator(); - while ($var1.$hasNext()) { - $var2 = $var1.$next(); - var$3 = $this.$activePotionsMap; - if ($var2 !== null) { - var$4 = jl_Integer_hashCode($var2); - $var2 = ju_HashMap_findNonNullKeyEntry(var$3, $var2, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - $var2 = var$3.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - if (!$this.$worldObj.$isRemote) { - $var1.$remove(); - $this.$potionsNeedUpdate = 1; - } - } -} -function nms_EntityLiving_getActivePotionEffects($this) { - var var$1, var$2; - var$1 = $this.$activePotionsMap; - if (var$1.$cachedValues === null) { - var$2 = new ju_HashMap$2; - var$2.$this$00 = var$1; - var$1.$cachedValues = var$2; - } - return var$1.$cachedValues; -} -function nms_EntityLiving_isPotionActive0($this, $par1) { - var var$2, var$3, var$4; - var$2 = $this.$activePotionsMap; - var$3 = jl_Integer_valueOf($par1); - 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; - } - } - return var$2 === null ? 0 : 1; -} -function nms_EntityLiving_isPotionActive($this, $par1Potion) { - var var$2, var$3; - var$2 = $this.$activePotionsMap; - $par1Potion = jl_Integer_valueOf($par1Potion.$id3); - if ($par1Potion !== null) { - var$3 = jl_Integer_hashCode($par1Potion); - $par1Potion = ju_HashMap_findNonNullKeyEntry(var$2, $par1Potion, var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Potion = var$2.$elementData.data[0]; - while ($par1Potion !== null && $par1Potion.$key !== null) { - $par1Potion = $par1Potion.$next1; - } - } - return $par1Potion === null ? 0 : 1; -} -function nms_EntityLiving_getActivePotionEffect($this, $par1Potion) { - var var$2, var$3; - var$2 = $this.$activePotionsMap; - $par1Potion = jl_Integer_valueOf($par1Potion.$id3); - if ($par1Potion !== null) { - var$3 = jl_Integer_hashCode($par1Potion); - $par1Potion = ju_HashMap_findNonNullKeyEntry(var$2, $par1Potion, var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Potion = var$2.$elementData.data[0]; - while ($par1Potion !== null && $par1Potion.$key !== null) { - $par1Potion = $par1Potion.$next1; - } - } - return $par1Potion === null ? null : $par1Potion.$value0; -} -function nms_EntityLiving_addPotionEffect($this, $par1PotionEffect) { - var var$2, var$3, var$4; - if ($this.$isPotionApplicable($par1PotionEffect)) { - var$2 = $this.$activePotionsMap; - var$3 = jl_Integer_valueOf($par1PotionEffect.$potionID); - 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)) { - ju_HashMap_putImpl($this.$activePotionsMap, jl_Integer_valueOf($par1PotionEffect.$potionID), $par1PotionEffect); - $this.$potionsNeedUpdate = 1; - } else { - var$2 = $this.$activePotionsMap; - var$3 = jl_Integer_valueOf($par1PotionEffect.$potionID); - 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; - } - } - nms_PotionEffect_combine(var$2 === null ? null : var$2.$value0, $par1PotionEffect); - var$2 = $this.$activePotionsMap; - $par1PotionEffect = jl_Integer_valueOf($par1PotionEffect.$potionID); - if ($par1PotionEffect !== null) { - var$4 = jl_Integer_hashCode($par1PotionEffect); - $par1PotionEffect = ju_HashMap_findNonNullKeyEntry(var$2, $par1PotionEffect, var$4 & (var$2.$elementData.data.length - 1 | 0), var$4); - } else { - $par1PotionEffect = var$2.$elementData.data[0]; - while ($par1PotionEffect !== null && $par1PotionEffect.$key !== null) { - $par1PotionEffect = $par1PotionEffect.$next1; - } - } - $this.$potionsNeedUpdate = 1; - } - } -} -function nms_EntityLiving_isPotionApplicable($this, $par1PotionEffect) { - var $var2; - a: { - if ($this.$getCreatureAttribute() === nms_EnumCreatureAttribute_UNDEAD) { - $var2 = $par1PotionEffect.$potionID; - if ($var2 == nms_Potion_regeneration.$id3) - break a; - if ($var2 == nms_Potion_poison.$id3) - break a; - } - return 1; - } - return 0; -} -function nms_EntityLiving_isEntityUndead($this) { - return $this.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 0 : 1; -} -function nms_EntityLiving_removePotionEffectClient($this, $par1) { - ju_HashMap_removeEntry($this.$activePotionsMap, jl_Integer_valueOf($par1)); -} -function nms_EntityLiving_removePotionEffect($this, $par1) { - var $var2; - $var2 = ju_HashMap_removeEntry($this.$activePotionsMap, jl_Integer_valueOf($par1)); - if (($var2 === null ? null : $var2.$value0) !== null) - $this.$potionsNeedUpdate = 1; -} -function nms_EntityLiving_onNewPotionEffect($this, $par1PotionEffect) { - $this.$potionsNeedUpdate = 1; -} -function nms_EntityLiving_onChangedPotionEffect($this, $par1PotionEffect) { - $this.$potionsNeedUpdate = 1; -} -function nms_EntityLiving_onFinishedPotionEffect($this, $par1PotionEffect) { - $this.$potionsNeedUpdate = 1; -} -function nms_EntityLiving_getSpeedModifier($this) { - var $var1, var$2, var$3, var$4; - $var1 = 1.0; - var$2 = nms_Potion_moveSpeed; - var$3 = $this.$activePotionsMap; - var$2 = jl_Integer_valueOf(var$2.$id3); - if (var$2 !== null) { - var$4 = jl_Integer_hashCode(var$2); - var$2 = ju_HashMap_findNonNullKeyEntry(var$3, var$2, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - var$2 = var$3.$elementData.data[0]; - while (var$2 !== null && var$2.$key !== null) { - var$2 = var$2.$next1; - } - } - if (var$2 === null ? 0 : 1) { - var$2 = nms_Potion_moveSpeed; - var$3 = $this.$activePotionsMap; - var$2 = jl_Integer_valueOf(var$2.$id3); - if (var$2 !== null) { - var$4 = jl_Integer_hashCode(var$2); - var$2 = ju_HashMap_findNonNullKeyEntry(var$3, var$2, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - var$2 = var$3.$elementData.data[0]; - while (var$2 !== null && var$2.$key !== null) { - var$2 = var$2.$next1; - } - } - $var1 = $var1 * (1.0 + 0.20000000298023224 * ((var$2 === null ? null : var$2.$value0).$amplifier + 1 | 0)); - } - var$2 = nms_Potion_moveSlowdown; - var$3 = $this.$activePotionsMap; - var$2 = jl_Integer_valueOf(var$2.$id3); - if (var$2 !== null) { - var$4 = jl_Integer_hashCode(var$2); - var$2 = ju_HashMap_findNonNullKeyEntry(var$3, var$2, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - var$2 = var$3.$elementData.data[0]; - while (var$2 !== null && var$2.$key !== null) { - var$2 = var$2.$next1; - } - } - if (var$2 === null ? 0 : 1) { - var$2 = nms_Potion_moveSlowdown; - var$3 = $this.$activePotionsMap; - var$2 = jl_Integer_valueOf(var$2.$id3); - if (var$2 !== null) { - var$4 = jl_Integer_hashCode(var$2); - var$2 = ju_HashMap_findNonNullKeyEntry(var$3, var$2, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - var$2 = var$3.$elementData.data[0]; - while (var$2 !== null && var$2.$key !== null) { - var$2 = var$2.$next1; - } - } - $var1 = $var1 * (1.0 - 0.15000000596046448 * ((var$2 === null ? null : var$2.$value0).$amplifier + 1 | 0)); - } - if ($var1 < 0.0) - $var1 = 0.0; - return $var1; -} -function nms_EntityLiving_isChild($this) { - return 0; -} -function nms_EntityLiving_getCreatureAttribute($this) { - return nms_EnumCreatureAttribute_UNDEFINED; -} -function nms_EntityLiving_renderBrokenItemStack($this, $par1ItemStack) { - var $var3, var$3, var$4, $var2, $var4, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var3 = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = $rt_s(711); - var$3 = 0.800000011920929; - var$4 = 0.800000011920929 + Math.random() * 0.4000000059604645; - $ptr = 1; - case 1: - $this.$playSound1($var3, var$3, var$4); - if ($rt_suspending()) { - break main; - } - $var2 = 0; - while ($var2 < 5) { - $var3 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.1, jl_Math_randomImpl() * 0.1 + 0.1, 0.0); - nms_Vec3_rotateAroundX($var3, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var3, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - $var4 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.3, -Math.random() * 0.6 - 0.3, 0.6); - nms_Vec3_rotateAroundX($var4, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var4, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - var$7 = $this.$posX; - var$8 = $this.$posY + $this.$getEyeHeight(); - var$9 = $this.$posZ; - var$10 = nms_Vec3Pool_getVecFromPool($var4.$myVec3LocalPool, $var4.$xCoord + var$7, $var4.$yCoord + var$8, $var4.$zCoord + var$9); - $var4 = $this.$worldObj; - var$11 = new jl_StringBuilder; - var$11.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(712)); - nms_Item_$callClinit(); - var$12 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$itemID; - jl_AbstractStringBuilder_insert0(var$11, var$11.$length, var$12, 10); - var$13 = jl_String__init_0(var$11.$buffer, 0, var$11.$length); - var$8 = var$10.$xCoord; - var$9 = var$10.$yCoord; - var$14 = var$10.$zCoord; - var$15 = $var3.$xCoord; - var$7 = $var3.$yCoord + 0.05; - var$16 = $var3.$zCoord; - var$12 = 0; - if (var$12 < $var4.$worldAccesses.$size0) { - $var3 = $var4.$worldAccesses; - if (var$12 >= 0 && var$12 < $var3.$size0) { - $var3 = $var3.$array1.data[var$12]; - $ptr = 2; - continue main; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $var2 = $var2 + 1 | 0; - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle($var3, var$13, var$8, var$9, var$14, var$15, var$7, var$16); - if ($rt_suspending()) { - break main; - } - var$12 = var$12 + 1 | 0; - while (true) { - if (var$12 < $var4.$worldAccesses.$size0) { - $var3 = $var4.$worldAccesses; - if (var$12 >= 0 && var$12 < $var3.$size0) { - $var3 = $var3.$array1.data[var$12]; - continue main; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $var2 = $var2 + 1 | 0; - if ($var2 >= 5) - break; - $var3 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.1, jl_Math_randomImpl() * 0.1 + 0.1, 0.0); - nms_Vec3_rotateAroundX($var3, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var3, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - $var4 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.3, -Math.random() * 0.6 - 0.3, 0.6); - nms_Vec3_rotateAroundX($var4, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var4, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - var$7 = $this.$posX; - var$8 = $this.$posY + $this.$getEyeHeight(); - var$9 = $this.$posZ; - var$10 = nms_Vec3Pool_getVecFromPool($var4.$myVec3LocalPool, $var4.$xCoord + var$7, $var4.$yCoord + var$8, $var4.$zCoord + var$9); - $var4 = $this.$worldObj; - var$11 = new jl_StringBuilder; - var$11.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(712)); - nms_Item_$callClinit(); - var$12 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$itemID; - jl_AbstractStringBuilder_insert0(var$11, var$11.$length, var$12, 10); - var$13 = jl_String__init_0(var$11.$buffer, 0, var$11.$length); - var$8 = var$10.$xCoord; - var$9 = var$10.$yCoord; - var$14 = var$10.$zCoord; - var$15 = $var3.$xCoord; - var$7 = $var3.$yCoord + 0.05; - var$16 = $var3.$zCoord; - var$12 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $var3, var$3, var$4, $var2, $var4, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, $ptr); -} -function nms_EntityLiving_func_82143_as($this) { - var $var1; - if ($this.$attackTarget === null) - return 3; - $var1 = ($this.$health - $this.$getMaxHealth() * 0.33000001311302185 | 0) - ((3 - $this.$worldObj.$difficultySetting | 0) * 4 | 0) | 0; - if ($var1 < 0) - $var1 = 0; - return $var1 + 3 | 0; -} -function nms_EntityLiving_getHeldItem($this) { - return $this.$equipment.data[0]; -} -function nms_EntityLiving_getCurrentItemOrArmor($this, $par1) { - return $this.$equipment.data[$par1]; -} -function nms_EntityLiving_getCurrentArmor($this, $par1) { - return $this.$equipment.data[$par1 + 1 | 0]; -} -function nms_EntityLiving_setCurrentItemOrArmor($this, $par1, $par2ItemStack) { - $this.$equipment.data[$par1] = $par2ItemStack; -} -function nms_EntityLiving_getLastActiveItems($this) { - return $this.$equipment; -} -function nms_EntityLiving_dropEquipment($this, $par1, $par2) { - var $var3, var$4, $var4, $var5, $var6, $var6_0, $var7; - $var3 = 0; - var$4 = $par2 * 0.009999999776482582; - while ($var3 < $this.$getLastActiveItems().data.length) { - $var4 = $this.$getCurrentItemOrArmor($var3); - $var5 = $this.$equipmentDropChances.data[$var3] <= 1.0 ? 0 : 1; - if ($var4 !== null && !(!$par1 && !$var5) && Math.random() - var$4 < $this.$equipmentDropChances.data[$var3]) { - if (!$var5) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var4.$itemID0].$maxDamage <= 0 ? 0 : 1) { - $var6 = nms_Item_itemsList.data[$var4.$itemID0].$maxDamage - 25 | 0; - $var6_0 = 1; - if ($var6 > $var6_0) - $var6_0 = $var6; - $var5 = nms_Item_itemsList.data[$var4.$itemID0].$maxDamage; - $par2 = (Math.random() * $var6_0 | 0) + 1 | 0; - $var7 = $var5 - (Math.random() * $par2 | 0) | 0; - if ($var7 <= $var6_0) - $var6_0 = $var7; - if ($var6_0 < 1) - $var6_0 = 1; - $var4.$itemDamage = $var6_0; - if ($var4.$itemDamage < 0) - $var4.$itemDamage = 0; - } - } - nms_Entity_entityDropItem($this, $var4, 0.0); - } - $var3 = $var3 + 1 | 0; - } -} -function nms_EntityLiving_addRandomArmor($this) { - var $var1, $var2, $var3, var$4, var$5, $var4, $var5, var$8; - a: { - if (Math.random() < nms_EntityLiving_armorProbability.data[$this.$worldObj.$difficultySetting]) { - $var1 = Math.random() * 2.0 | 0; - $var2 = $this.$worldObj.$difficultySetting != 3 ? 0.25 : 0.10000000149011612; - if (Math.random() < 0.0949999988079071) - $var1 = $var1 + 1 | 0; - if (Math.random() < 0.0949999988079071) - $var1 = $var1 + 1 | 0; - if (Math.random() < 0.0949999988079071) - $var1 = $var1 + 1 | 0; - $var3 = 3; - while (true) { - if ($var3 < 0) - break a; - var$4 = $this.$equipment.data; - var$5 = $var3 + 1 | 0; - $var4 = var$4[var$5]; - if ($var3 < 3 && Math.random() < $var2) - break; - if ($var4 === null) { - $var5 = nms_EntityLiving_getArmorItemForSlot(var$5, $var1); - if ($var5 !== null) { - $var4 = new nms_ItemStack; - var$8 = $var5.$itemID; - $var4.$stackSize = 0; - $var4.$itemFrame = null; - $var4.$itemID0 = var$8; - $var4.$stackSize = 1; - $var4.$itemDamage = 0; - if ($var4.$itemDamage < 0) - $var4.$itemDamage = 0; - $this.$equipment.data[var$5] = $var4; - } - } - $var3 = $var3 + (-1) | 0; - } - } - } -} -function nms_EntityLiving_onItemPickup($this, $par1Entity, $par2) { - return; -} -function nms_EntityLiving_getArmorPosition($par0ItemStack) { - var var$2; - var$2 = $par0ItemStack.$itemID0; - nms_Block_$callClinit(); - if (var$2 != nms_Block_pumpkin.$blockID) { - var$2 = $par0ItemStack.$itemID0; - nms_Item_$callClinit(); - if (var$2 != nms_Item_skull.$itemID) { - a: { - if (nms_Item_itemsList.data[$par0ItemStack.$itemID0] instanceof nms_ItemArmor) - switch (nms_Item_itemsList.data[$par0ItemStack.$itemID0].$armorType) { - case 0: - return 4; - case 1: - return 3; - case 2: - return 2; - case 3: - return 1; - default: - break a; - } - } - return 0; - } - } - return 4; -} -function nms_EntityLiving_getArmorItemForSlot($par0, $par1) { - a: { - b: { - c: { - d: { - switch ($par0) { - case 1: - break b; - case 2: - break c; - case 3: - break d; - case 4: - break; - default: - break a; - } - if (!$par1) { - nms_Item_$callClinit(); - return nms_Item_helmetLeather; - } - if ($par1 == 1) { - nms_Item_$callClinit(); - return nms_Item_helmetGold; - } - if ($par1 == 2) { - nms_Item_$callClinit(); - return nms_Item_helmetChain; - } - if ($par1 == 3) { - nms_Item_$callClinit(); - return nms_Item_helmetIron; - } - if ($par1 == 4) { - nms_Item_$callClinit(); - return nms_Item_helmetDiamond; - } - } - if (!$par1) { - nms_Item_$callClinit(); - return nms_Item_plateLeather; - } - if ($par1 == 1) { - nms_Item_$callClinit(); - return nms_Item_plateGold; - } - if ($par1 == 2) { - nms_Item_$callClinit(); - return nms_Item_plateChain; - } - if ($par1 == 3) { - nms_Item_$callClinit(); - return nms_Item_plateIron; - } - if ($par1 == 4) { - nms_Item_$callClinit(); - return nms_Item_plateDiamond; - } - } - if (!$par1) { - nms_Item_$callClinit(); - return nms_Item_legsLeather; - } - if ($par1 == 1) { - nms_Item_$callClinit(); - return nms_Item_legsGold; - } - if ($par1 == 2) { - nms_Item_$callClinit(); - return nms_Item_legsChain; - } - if ($par1 == 3) { - nms_Item_$callClinit(); - return nms_Item_legsIron; - } - if ($par1 == 4) { - nms_Item_$callClinit(); - return nms_Item_legsDiamond; - } - } - if (!$par1) { - nms_Item_$callClinit(); - return nms_Item_bootsLeather; - } - if ($par1 == 1) { - nms_Item_$callClinit(); - return nms_Item_bootsGold; - } - if ($par1 == 2) { - nms_Item_$callClinit(); - return nms_Item_bootsChain; - } - if ($par1 == 3) { - nms_Item_$callClinit(); - return nms_Item_bootsIron; - } - if ($par1 == 4) { - nms_Item_$callClinit(); - return nms_Item_bootsDiamond; - } - } - return null; -} -function nms_EntityLiving_func_82162_bC($this) { - var $var1, var$2, $var2; - if ($this.$equipment.data[0] !== null && Math.random() < nms_EntityLiving_enchantmentProbability.data[$this.$worldObj.$difficultySetting]) - nms_EnchantmentHelper_addRandomEnchantment($this.$rand0, $this.$equipment.data[0], 5 + $rt_imul($this.$worldObj.$difficultySetting, Math.random() * 6.0 | 0) | 0); - $var1 = 0; - while ($var1 < 4) { - var$2 = $this.$equipment.data; - $var1 = $var1 + 1 | 0; - $var2 = var$2[$var1]; - if ($var2 !== null && Math.random() < nms_EntityLiving_armorEnchantmentProbability.data[$this.$worldObj.$difficultySetting]) - nms_EnchantmentHelper_addRandomEnchantment($this.$rand0, $var2, 5 + $rt_imul($this.$worldObj.$difficultySetting, Math.random() * 6.0 | 0) | 0); - } -} -function nms_EntityLiving_initCreature($this) { - return; -} -function nms_EntityLiving_getArmSwingAnimationEnd($this) { - return nms_EntityLiving_isPotionActive($this, nms_Potion_digSpeed) ? 6 - ((1 + nms_EntityLiving_getActivePotionEffect($this, nms_Potion_digSpeed).$amplifier | 0) * 1 | 0) | 0 : !nms_EntityLiving_isPotionActive($this, nms_Potion_digSlowdown) ? 6 : 6 + ((1 + nms_EntityLiving_getActivePotionEffect($this, nms_Potion_digSlowdown).$amplifier | 0) * 2 | 0) | 0; -} -function nms_EntityLiving_swingItem($this) { - if (!($this.$isSwingInProgress && $this.$swingProgressInt < (nms_EntityLiving_getArmSwingAnimationEnd($this) / 2 | 0) && $this.$swingProgressInt >= 0)) { - $this.$swingProgressInt = (-1); - $this.$isSwingInProgress = 1; - } -} -function nms_EntityLiving_getArrowCountInEntity($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 10); -} -function nms_EntityLiving_setArrowCountInEntity($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = $par1 << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 10, var$3); -} -function nms_EntityLiving_func_94060_bK($this) { - return nms_CombatTracker_func_94550_c($this.$field_94063_bt) !== null ? nms_CombatTracker_func_94550_c($this.$field_94063_bt) : $this.$attackingPlayer !== null ? $this.$attackingPlayer : $this.$entityLivingToAttack === null ? null : $this.$entityLivingToAttack; -} -function nms_EntityLiving_getEntityName($this) { - return !(nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 5).$characters.data.length <= 0 ? 0 : 1) ? nms_Entity_getEntityName($this) : nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 5); -} -function nms_EntityLiving_func_94058_c($this, $par1Str) { - nms_DataWatcher_updateObject($this.$dataWatcher, 5, $par1Str); -} -function nms_EntityLiving_func_94057_bL($this) { - return nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 5); -} -function nms_EntityLiving_func_94056_bM($this) { - return nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 5).$characters.data.length <= 0 ? 0 : 1; -} -function nms_EntityLiving_func_94062_bN($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 6) != 1 ? 0 : 1; -} -function nms_EntityLiving_func_94059_bO($this) { - return $this.$func_94062_bN(); -} -function nms_EntityLiving_canPickUpLoot($this) { - return $this.$canPickUpLoot; -} -function nms_EntityLiving_setCanPickUpLoot($this, $par1) { - $this.$canPickUpLoot = $par1; -} -function nms_EntityLiving__clinit_() { - var var$1, var$2; - var$1 = $rt_createFloatArray(4); - var$2 = var$1.data; - var$2[0] = 0.0; - var$2[1] = 0.0; - var$2[2] = 0.10000000149011612; - var$2[3] = 0.20000000298023224; - nms_EntityLiving_enchantmentProbability = var$1; - var$1 = $rt_createFloatArray(4); - var$2 = var$1.data; - var$2[0] = 0.0; - var$2[1] = 0.0; - var$2[2] = 0.25; - var$2[3] = 0.5; - nms_EntityLiving_armorEnchantmentProbability = var$1; - var$1 = $rt_createFloatArray(4); - var$2 = var$1.data; - var$2[0] = 0.0; - var$2[1] = 0.0; - var$2[2] = 0.05000000074505806; - var$2[3] = 0.07000000029802322; - nms_EntityLiving_armorProbability = var$1; - var$1 = $rt_createFloatArray(4); - var$2 = var$1.data; - var$2[0] = 0.0; - var$2[1] = 0.10000000149011612; - var$2[2] = 0.15000000596046448; - var$2[3] = 0.44999998807907104; - nms_EntityLiving_pickUpLootProability = var$1; -} -function nms_ICommandSender() { -} -function nms_EntityPlayer() { - var a = this; nms_EntityLiving.call(a); - a.$inventory = null; - a.$theInventoryEnderChest = null; - a.$inventoryContainer = null; - a.$openContainer = null; - a.$foodStats = null; - a.$flyToggleTimer = 0; - a.$field_71098_bD = 0; - a.$prevCameraYaw = 0.0; - a.$cameraYaw0 = 0.0; - a.$username0 = null; - a.$xpCooldown = 0; - a.$field_71091_bM = 0.0; - a.$field_71096_bN = 0.0; - a.$field_71097_bO = 0.0; - a.$field_71094_bP = 0.0; - a.$field_71095_bQ = 0.0; - a.$field_71085_bR = 0.0; - a.$sleeping = 0; - a.$playerLocation = null; - a.$sleepTimer = 0; - a.$field_71079_bU = 0.0; - a.$field_71082_cx = 0.0; - a.$field_71089_bV = 0.0; - a.$spawnChunk = null; - a.$spawnForced = 0; - a.$startMinecartRidingCoordinate = null; - a.$capabilities = null; - a.$experienceLevel = 0; - a.$experienceTotal = 0; - a.$experience = 0.0; - a.$itemInUse = null; - a.$itemInUseCount = 0; - a.$speedOnGround = 0.0; - a.$speedInAir = 0.0; - a.$field_82249_h = 0; - a.$fishEntity = null; -} -function nms_EntityPlayer__init_() { - var var_0 = new nms_EntityPlayer(); - nms_EntityPlayer__init_0(var_0); - return var_0; -} -function nms_EntityPlayer__init_0($this) { - var var$1; - nms_EntityLiving__init_0($this); - var$1 = new nms_InventoryPlayer; - var$1.$mainInventory = $rt_createArray(nms_ItemStack, 36); - var$1.$armorInventory = $rt_createArray(nms_ItemStack, 4); - var$1.$currentItem = 0; - var$1.$inventoryChanged = 0; - var$1.$player = $this; - $this.$inventory = var$1; - var$1 = new nms_InventoryEnderChest; - var$1.$inventoryTitle = $rt_s(713); - var$1.$field_94051_e = 0; - var$1.$slotsCount = 27; - var$1.$inventoryContents = $rt_createArray(nms_ItemStack, 27); - $this.$theInventoryEnderChest = var$1; - var$1 = new nms_FoodStats; - var$1.$foodLevel = 20; - var$1.$foodSaturationLevel = 5.0; - var$1.$foodTimer = 0; - var$1.$prevFoodLevel = 20; - $this.$foodStats = var$1; - $this.$flyToggleTimer = 0; - $this.$field_71098_bD = 0; - $this.$xpCooldown = 0; - var$1 = new nms_PlayerCapabilities; - var$1.$disableDamage = 0; - var$1.$isFlying = 0; - var$1.$allowFlying = 0; - var$1.$isCreativeMode = 0; - var$1.$allowEdit = 1; - var$1.$flySpeed = 0.05000000074505806; - var$1.$walkSpeed = 0.10000000149011612; - $this.$capabilities = var$1; - $this.$speedOnGround = 0.10000000149011612; - $this.$speedInAir = 0.019999999552965164; - $this.$field_82249_h = 0; - $this.$fishEntity = null; - $this.$inventoryContainer = nms_ContainerPlayer__init_($this.$inventory, 0, $this); - $this.$openContainer = $this.$inventoryContainer; - $this.$yOffset0 = 1.6200000047683716; - $this.$entityType = $rt_s(714); - $this.$field_70741_aB = 180.0; - $this.$fireResistance = 20; -} -function nms_EntityPlayer_getBrightnessForRender($this, $par1) { - return nle_DefaultSkinRenderer_getPlayerRenderer($this) != 21 ? nms_Entity_getBrightnessForRender($this, $par1) : 15728880; -} -function nms_EntityPlayer_getMaxHealth($this) { - return 20; -} -function nms_EntityPlayer_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 17, var$2); - nms_DataWatcher_addObject($this.$dataWatcher, 18, jl_Integer_valueOf(0)); -} -function nms_EntityPlayer_getItemInUse($this) { - return $this.$itemInUse; -} -function nms_EntityPlayer_getItemInUseCount($this) { - return $this.$itemInUseCount; -} -function nms_EntityPlayer_isUsingItem($this) { - return $this.$itemInUse === null ? 0 : 1; -} -function nms_EntityPlayer_getItemInUseDuration($this) { - var var$1, var$2; - if (!($this.$itemInUse === null ? 0 : 1)) - var$1 = 0; - else { - var$2 = $this.$itemInUse; - nms_Item_$callClinit(); - var$1 = nms_Item_itemsList.data[var$2.$itemID0].$getMaxItemUseDuration(var$2) - $this.$itemInUseCount | 0; - } - return var$1; -} -function nms_EntityPlayer_stopUsingItem($this) { - 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();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$itemInUse === null) { - $this.$itemInUse = null; - $this.$itemInUseCount = 0; - if (!$this.$worldObj.$isRemote) - nms_Entity_setFlag($this, 4, 0); - return; - } - var$1 = $this.$itemInUse; - var$2 = $this.$worldObj; - var$3 = $this.$itemInUseCount; - nms_Item_$callClinit(); - var$4 = nms_Item_itemsList.data[var$1.$itemID0]; - $ptr = 1; - case 1: - var$4.$onPlayerStoppedUsing(var$1, var$2, $this, var$3); - if ($rt_suspending()) { - break main; - } - $this.$itemInUse = null; - $this.$itemInUseCount = 0; - if (!$this.$worldObj.$isRemote) - nms_Entity_setFlag($this, 4, 0); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $ptr); -} -function nms_EntityPlayer_clearItemInUse($this) { - $this.$itemInUse = null; - $this.$itemInUseCount = 0; - if (!$this.$worldObj.$isRemote) - nms_Entity_setFlag($this, 4, 0); -} -function nms_EntityPlayer_isBlocking($this) { - var var$1; - var$1 = $this.$itemInUse === null ? 0 : 1; - a: { - if (var$1) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$this.$itemInUse.$itemID0].$getItemUseAction($this.$itemInUse) === nms_EnumAction_block) { - var$1 = 1; - break a; - } - } - var$1 = 0; - } - return var$1; -} -function nms_EntityPlayer_onUpdate($this) { - var $var1, $i, $j, var$4, var$5, var$6, $var7, $var9, $var3, $var5, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$j = $thread.pop();$i = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$itemInUse !== null) { - $var1 = nms_InventoryPlayer_getCurrentItem($this.$inventory); - if ($var1 !== $this.$itemInUse) - nms_EntityPlayer_clearItemInUse($this); - else { - if ($this.$itemInUseCount <= 25 && !($this.$itemInUseCount % 4 | 0)) { - $i = 5; - $ptr = 2; - continue main; - } - $i = $this.$itemInUseCount - 1 | 0; - $this.$itemInUseCount = $i; - if (!$i && !$this.$worldObj.$isRemote) { - $ptr = 3; - continue main; - } - } - } - if ($this.$xpCooldown > 0) - $this.$xpCooldown = $this.$xpCooldown - 1 | 0; - if (nms_EntityPlayer_isPlayerSleeping($this)) { - $this.$sleepTimer = $this.$sleepTimer + 1 | 0; - if ($this.$sleepTimer > 100) - $this.$sleepTimer = 100; - if (!$this.$worldObj.$isRemote) { - if (!nms_EntityPlayer_isInBed($this)) { - $i = 1; - $j = 1; - var$4 = 0; - $ptr = 4; - continue main; - } - if (nms_World_isDaytime($this.$worldObj)) { - $j = 0; - var$4 = 1; - $i = 1; - $ptr = 6; - continue main; - } - } - } else if ($this.$sleepTimer > 0) { - $this.$sleepTimer = $this.$sleepTimer + 1 | 0; - if ($this.$sleepTimer >= 110) - $this.$sleepTimer = 0; - } - $ptr = 1; - case 1: - nms_EntityLiving_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote && $this.$openContainer !== null && !$this.$openContainer.$canInteractWith($this)) { - $ptr = 5; - continue main; - } - if (nms_Entity_isBurning($this) && $this.$capabilities.$disableDamage) - nms_Entity_extinguish($this); - if (!(nms_Entity_equals($this, nmc_Minecraft_getMinecraft().$renderViewEntity) && !nmc_Minecraft_getMinecraft().$gameSettings.$thirdPersonView)) { - $i = nle_DefaultSkinRenderer_getPlayerRenderer($this); - if ($i == 21) { - $var1 = $this.$worldObj; - var$5 = $rt_s(715); - var$6 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - $var7 = $this.$posY - $this.$yOffset0 + ju_Random_nextDouble($this.$rand0) * $this.$height1; - $var9 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - $var3 = 0.0; - $var5 = 0.0; - var$11 = 0.0; - $ptr = 7; - continue main; - } - if ($i == 19) { - $j = 0; - if ($j < 2) { - $var1 = $this.$worldObj; - var$12 = $rt_s(716); - $var9 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - $var3 = $this.$posY - $this.$yOffset0 + ju_Random_nextDouble($this.$rand0) * 2.5; - $var5 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - var$6 = -ju_Random_nextDouble($this.$rand0); - $var7 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - $ptr = 8; - continue main; - } - } - } - $this.$field_71091_bM = $this.$field_71094_bP; - $this.$field_71096_bN = $this.$field_71095_bQ; - $this.$field_71097_bO = $this.$field_71085_bR; - $var9 = $this.$posX - $this.$field_71094_bP; - $var3 = $this.$posY - $this.$field_71095_bQ; - $var5 = $this.$posZ - $this.$field_71085_bR; - if ($var9 > 10.0) { - var$11 = $this.$posX; - $this.$field_71094_bP = var$11; - $this.$field_71091_bM = var$11; - } - if ($var5 > 10.0) { - var$11 = $this.$posZ; - $this.$field_71085_bR = var$11; - $this.$field_71097_bO = var$11; - } - if ($var3 > 10.0) { - $var7 = $this.$posY; - $this.$field_71095_bQ = $var7; - $this.$field_71096_bN = $var7; - } - if ($var9 < (-10.0)) { - var$11 = $this.$posX; - $this.$field_71094_bP = var$11; - $this.$field_71091_bM = var$11; - } - if ($var5 < (-10.0)) { - var$11 = $this.$posZ; - $this.$field_71085_bR = var$11; - $this.$field_71097_bO = var$11; - } - if ($var3 < (-10.0)) { - $var7 = $this.$posY; - $this.$field_71095_bQ = $var7; - $this.$field_71096_bN = $var7; - } - $this.$field_71094_bP = $this.$field_71094_bP + $var9 * 0.25; - $this.$field_71085_bR = $this.$field_71085_bR + $var5 * 0.25; - $this.$field_71095_bQ = $this.$field_71095_bQ + $var3 * 0.25; - if ($this.$ridingEntity === null) - $this.$startMinecartRidingCoordinate = null; - if ($this.$worldObj.$isRemote) - return; - $var1 = $this.$foodStats; - $ptr = 9; - continue main; - case 2: - nms_EntityPlayer_updateItemUse($this, $var1, $i); - if ($rt_suspending()) { - break main; - } - $i = $this.$itemInUseCount - 1 | 0; - $this.$itemInUseCount = $i; - if (!$i && !$this.$worldObj.$isRemote) { - $ptr = 3; - continue main; - } - if ($this.$xpCooldown > 0) - $this.$xpCooldown = $this.$xpCooldown - 1 | 0; - if (nms_EntityPlayer_isPlayerSleeping($this)) { - $this.$sleepTimer = $this.$sleepTimer + 1 | 0; - if ($this.$sleepTimer > 100) - $this.$sleepTimer = 100; - if (!$this.$worldObj.$isRemote) { - if (!nms_EntityPlayer_isInBed($this)) { - $i = 1; - $j = 1; - var$4 = 0; - $ptr = 4; - continue main; - } - if (nms_World_isDaytime($this.$worldObj)) { - $j = 0; - var$4 = 1; - $i = 1; - $ptr = 6; - continue main; - } - } - } else if ($this.$sleepTimer > 0) { - $this.$sleepTimer = $this.$sleepTimer + 1 | 0; - if ($this.$sleepTimer >= 110) - $this.$sleepTimer = 0; - } - $ptr = 1; - continue main; - case 3: - nms_EntityPlayer_onItemUseFinish($this); - if ($rt_suspending()) { - break main; - } - if ($this.$xpCooldown > 0) - $this.$xpCooldown = $this.$xpCooldown - 1 | 0; - if (nms_EntityPlayer_isPlayerSleeping($this)) { - $this.$sleepTimer = $this.$sleepTimer + 1 | 0; - if ($this.$sleepTimer > 100) - $this.$sleepTimer = 100; - if (!$this.$worldObj.$isRemote) { - if (!nms_EntityPlayer_isInBed($this)) { - $i = 1; - $j = 1; - var$4 = 0; - $ptr = 4; - continue main; - } - if (nms_World_isDaytime($this.$worldObj)) { - $j = 0; - var$4 = 1; - $i = 1; - $ptr = 6; - continue main; - } - } - } else if ($this.$sleepTimer > 0) { - $this.$sleepTimer = $this.$sleepTimer + 1 | 0; - if ($this.$sleepTimer >= 110) - $this.$sleepTimer = 0; - } - $ptr = 1; - continue main; - case 4: - nms_EntityPlayer_wakeUpPlayer($this, $i, $j, var$4); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - case 5: - $this.$closeScreen(); - if ($rt_suspending()) { - break main; - } - $this.$openContainer = $this.$inventoryContainer; - if (nms_Entity_isBurning($this) && $this.$capabilities.$disableDamage) - nms_Entity_extinguish($this); - if (!(nms_Entity_equals($this, nmc_Minecraft_getMinecraft().$renderViewEntity) && !nmc_Minecraft_getMinecraft().$gameSettings.$thirdPersonView)) { - $i = nle_DefaultSkinRenderer_getPlayerRenderer($this); - if ($i == 21) { - $var1 = $this.$worldObj; - var$5 = $rt_s(715); - var$6 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - $var7 = $this.$posY - $this.$yOffset0 + ju_Random_nextDouble($this.$rand0) * $this.$height1; - $var9 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - $var3 = 0.0; - $var5 = 0.0; - var$11 = 0.0; - $ptr = 7; - continue main; - } - if ($i == 19) { - $j = 0; - if ($j < 2) { - $var1 = $this.$worldObj; - var$12 = $rt_s(716); - $var9 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - $var3 = $this.$posY - $this.$yOffset0 + ju_Random_nextDouble($this.$rand0) * 2.5; - $var5 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - var$6 = -ju_Random_nextDouble($this.$rand0); - $var7 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - $ptr = 8; - continue main; - } - } - } - $this.$field_71091_bM = $this.$field_71094_bP; - $this.$field_71096_bN = $this.$field_71095_bQ; - $this.$field_71097_bO = $this.$field_71085_bR; - $var9 = $this.$posX - $this.$field_71094_bP; - $var3 = $this.$posY - $this.$field_71095_bQ; - $var5 = $this.$posZ - $this.$field_71085_bR; - if ($var9 > 10.0) { - var$11 = $this.$posX; - $this.$field_71094_bP = var$11; - $this.$field_71091_bM = var$11; - } - if ($var5 > 10.0) { - var$11 = $this.$posZ; - $this.$field_71085_bR = var$11; - $this.$field_71097_bO = var$11; - } - if ($var3 > 10.0) { - $var7 = $this.$posY; - $this.$field_71095_bQ = $var7; - $this.$field_71096_bN = $var7; - } - if ($var9 < (-10.0)) { - var$11 = $this.$posX; - $this.$field_71094_bP = var$11; - $this.$field_71091_bM = var$11; - } - if ($var5 < (-10.0)) { - var$11 = $this.$posZ; - $this.$field_71085_bR = var$11; - $this.$field_71097_bO = var$11; - } - if ($var3 < (-10.0)) { - $var7 = $this.$posY; - $this.$field_71095_bQ = $var7; - $this.$field_71096_bN = $var7; - } - $this.$field_71094_bP = $this.$field_71094_bP + $var9 * 0.25; - $this.$field_71085_bR = $this.$field_71085_bR + $var5 * 0.25; - $this.$field_71095_bQ = $this.$field_71095_bQ + $var3 * 0.25; - if ($this.$ridingEntity === null) - $this.$startMinecartRidingCoordinate = null; - if ($this.$worldObj.$isRemote) - return; - $var1 = $this.$foodStats; - $ptr = 9; - continue main; - case 6: - nms_EntityPlayer_wakeUpPlayer($this, $j, var$4, $i); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - case 7: - nms_World_spawnParticle($var1, var$5, var$6, $var7, $var9, $var3, $var5, var$11); - if ($rt_suspending()) { - break main; - } - $this.$field_71091_bM = $this.$field_71094_bP; - $this.$field_71096_bN = $this.$field_71095_bQ; - $this.$field_71097_bO = $this.$field_71085_bR; - $var9 = $this.$posX - $this.$field_71094_bP; - $var3 = $this.$posY - $this.$field_71095_bQ; - $var5 = $this.$posZ - $this.$field_71085_bR; - if ($var9 > 10.0) { - var$11 = $this.$posX; - $this.$field_71094_bP = var$11; - $this.$field_71091_bM = var$11; - } - if ($var5 > 10.0) { - var$11 = $this.$posZ; - $this.$field_71085_bR = var$11; - $this.$field_71097_bO = var$11; - } - if ($var3 > 10.0) { - $var7 = $this.$posY; - $this.$field_71095_bQ = $var7; - $this.$field_71096_bN = $var7; - } - if ($var9 < (-10.0)) { - var$11 = $this.$posX; - $this.$field_71094_bP = var$11; - $this.$field_71091_bM = var$11; - } - if ($var5 < (-10.0)) { - var$11 = $this.$posZ; - $this.$field_71085_bR = var$11; - $this.$field_71097_bO = var$11; - } - if ($var3 < (-10.0)) { - $var7 = $this.$posY; - $this.$field_71095_bQ = $var7; - $this.$field_71096_bN = $var7; - } - $this.$field_71094_bP = $this.$field_71094_bP + $var9 * 0.25; - $this.$field_71085_bR = $this.$field_71085_bR + $var5 * 0.25; - $this.$field_71095_bQ = $this.$field_71095_bQ + $var3 * 0.25; - if ($this.$ridingEntity === null) - $this.$startMinecartRidingCoordinate = null; - if ($this.$worldObj.$isRemote) - return; - $var1 = $this.$foodStats; - $ptr = 9; - continue main; - case 8: - nms_World_spawnParticle($var1, var$12, $var9, $var3, $var5, var$11, var$6, $var7); - if ($rt_suspending()) { - break main; - } - $j = $j + 1 | 0; - if ($j < 2) { - $var1 = $this.$worldObj; - var$12 = $rt_s(716); - $var9 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - $var3 = $this.$posY - $this.$yOffset0 + ju_Random_nextDouble($this.$rand0) * 2.5; - $var5 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - var$6 = -ju_Random_nextDouble($this.$rand0); - $var7 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - continue main; - } - $this.$field_71091_bM = $this.$field_71094_bP; - $this.$field_71096_bN = $this.$field_71095_bQ; - $this.$field_71097_bO = $this.$field_71085_bR; - $var9 = $this.$posX - $this.$field_71094_bP; - $var3 = $this.$posY - $this.$field_71095_bQ; - $var5 = $this.$posZ - $this.$field_71085_bR; - if ($var9 > 10.0) { - var$11 = $this.$posX; - $this.$field_71094_bP = var$11; - $this.$field_71091_bM = var$11; - } - if ($var5 > 10.0) { - var$11 = $this.$posZ; - $this.$field_71085_bR = var$11; - $this.$field_71097_bO = var$11; - } - if ($var3 > 10.0) { - $var7 = $this.$posY; - $this.$field_71095_bQ = $var7; - $this.$field_71096_bN = $var7; - } - if ($var9 < (-10.0)) { - var$11 = $this.$posX; - $this.$field_71094_bP = var$11; - $this.$field_71091_bM = var$11; - } - if ($var5 < (-10.0)) { - var$11 = $this.$posZ; - $this.$field_71085_bR = var$11; - $this.$field_71097_bO = var$11; - } - if ($var3 < (-10.0)) { - $var7 = $this.$posY; - $this.$field_71095_bQ = $var7; - $this.$field_71096_bN = $var7; - } - $this.$field_71094_bP = $this.$field_71094_bP + $var9 * 0.25; - $this.$field_71085_bR = $this.$field_71085_bR + $var5 * 0.25; - $this.$field_71095_bQ = $this.$field_71095_bQ + $var3 * 0.25; - if ($this.$ridingEntity === null) - $this.$startMinecartRidingCoordinate = null; - if ($this.$worldObj.$isRemote) - return; - $var1 = $this.$foodStats; - $ptr = 9; - case 9: - nms_FoodStats_onUpdate($var1, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $i, $j, var$4, var$5, var$6, $var7, $var9, $var3, $var5, var$11, var$12, $ptr); -} -function nms_EntityPlayer_getPortalCooldown($this) { - return 10; -} -function nms_EntityPlayer_playSound($this, $par1Str, $par2, $par3) { - nms_World_playSoundToNearExcept($this.$worldObj, $this, $par1Str, $par2, $par3); -} -function nms_EntityPlayer_updateItemUse($this, $par1ItemStack, $par2) { - var $var5, var$4, var$5, $var3, $var4, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var5 = $thread.pop();$par2 = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$getItemUseAction($par1ItemStack) === nms_EnumAction_drink) { - $var5 = $rt_s(717); - var$4 = 0.5; - var$5 = Math.random() * 0.10000000149011612 + 0.8999999761581421; - $ptr = 1; - continue main; - } - if (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$getItemUseAction($par1ItemStack) !== nms_EnumAction_eat) - return; - $var3 = 0; - while ($var3 < $par2) { - $var4 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.1, jl_Math_randomImpl() * 0.1 + 0.1, 0.0); - nms_Vec3_rotateAroundX($var4, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var4, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - $var5 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.3, -Math.random() * 0.6 - 0.3, 0.6); - nms_Vec3_rotateAroundX($var5, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var5, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - var$8 = $this.$posX; - var$9 = $this.$posY + $this.$getEyeHeight(); - var$10 = $this.$posZ; - var$11 = nms_Vec3Pool_getVecFromPool($var5.$myVec3LocalPool, $var5.$xCoord + var$8, $var5.$yCoord + var$9, $var5.$zCoord + var$10); - $var5 = $this.$worldObj; - var$12 = new jl_StringBuilder; - var$12.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(712)); - var$13 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$itemID; - jl_AbstractStringBuilder_insert0(var$12, var$12.$length, var$13, 10); - var$14 = jl_String__init_0(var$12.$buffer, 0, var$12.$length); - var$8 = var$11.$xCoord; - var$9 = var$11.$yCoord; - var$10 = var$11.$zCoord; - var$15 = $var4.$xCoord; - var$16 = $var4.$yCoord + 0.05; - var$17 = $var4.$zCoord; - var$13 = 0; - if (var$13 < $var5.$worldAccesses.$size0) { - var$12 = $var5.$worldAccesses; - if (var$13 >= 0 && var$13 < var$12.$size0) { - var$12 = var$12.$array1.data[var$13]; - $ptr = 3; - continue main; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $var3 = $var3 + 1 | 0; - } - $par1ItemStack = $rt_s(718); - var$4 = 0.5 + 0.5 * (Math.random() * 2.0 | 0); - var$5 = (Math.random() - Math.random()) * 0.20000000298023224 + 1.0; - $ptr = 2; - continue main; - case 1: - $this.$playSound1($var5, var$4, var$5); - if ($rt_suspending()) { - break main; - } - if (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$getItemUseAction($par1ItemStack) !== nms_EnumAction_eat) - return; - $var3 = 0; - while ($var3 < $par2) { - $var4 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.1, jl_Math_randomImpl() * 0.1 + 0.1, 0.0); - nms_Vec3_rotateAroundX($var4, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var4, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - $var5 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.3, -Math.random() * 0.6 - 0.3, 0.6); - nms_Vec3_rotateAroundX($var5, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var5, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - var$8 = $this.$posX; - var$9 = $this.$posY + $this.$getEyeHeight(); - var$10 = $this.$posZ; - var$11 = nms_Vec3Pool_getVecFromPool($var5.$myVec3LocalPool, $var5.$xCoord + var$8, $var5.$yCoord + var$9, $var5.$zCoord + var$10); - $var5 = $this.$worldObj; - var$12 = new jl_StringBuilder; - var$12.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(712)); - var$13 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$itemID; - jl_AbstractStringBuilder_insert0(var$12, var$12.$length, var$13, 10); - var$14 = jl_String__init_0(var$12.$buffer, 0, var$12.$length); - var$8 = var$11.$xCoord; - var$9 = var$11.$yCoord; - var$10 = var$11.$zCoord; - var$15 = $var4.$xCoord; - var$16 = $var4.$yCoord + 0.05; - var$17 = $var4.$zCoord; - var$13 = 0; - if (var$13 < $var5.$worldAccesses.$size0) { - var$12 = $var5.$worldAccesses; - if (var$13 >= 0 && var$13 < var$12.$size0) { - var$12 = var$12.$array1.data[var$13]; - $ptr = 3; - continue main; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $var3 = $var3 + 1 | 0; - } - $par1ItemStack = $rt_s(718); - var$4 = 0.5 + 0.5 * (Math.random() * 2.0 | 0); - var$5 = (Math.random() - Math.random()) * 0.20000000298023224 + 1.0; - $ptr = 2; - case 2: - $this.$playSound1($par1ItemStack, var$4, var$5); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_RenderGlobal_doSpawnParticle(var$12, var$14, var$8, var$9, var$10, var$15, var$16, var$17); - if ($rt_suspending()) { - break main; - } - var$13 = var$13 + 1 | 0; - while (true) { - if (var$13 < $var5.$worldAccesses.$size0) { - var$12 = $var5.$worldAccesses; - if (var$13 >= 0 && var$13 < var$12.$size0) { - var$12 = var$12.$array1.data[var$13]; - continue main; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $var3 = $var3 + 1 | 0; - if ($var3 >= $par2) - break; - $var4 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.1, jl_Math_randomImpl() * 0.1 + 0.1, 0.0); - nms_Vec3_rotateAroundX($var4, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var4, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - $var5 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, (Math.random() - 0.5) * 0.3, -Math.random() * 0.6 - 0.3, 0.6); - nms_Vec3_rotateAroundX($var5, -$this.$rotationPitch * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var5, -$this.$rotationYaw * 3.1415927410125732 / 180.0); - var$8 = $this.$posX; - var$9 = $this.$posY + $this.$getEyeHeight(); - var$10 = $this.$posZ; - var$11 = nms_Vec3Pool_getVecFromPool($var5.$myVec3LocalPool, $var5.$xCoord + var$8, $var5.$yCoord + var$9, $var5.$zCoord + var$10); - $var5 = $this.$worldObj; - var$12 = new jl_StringBuilder; - var$12.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(712)); - var$13 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$itemID; - jl_AbstractStringBuilder_insert0(var$12, var$12.$length, var$13, 10); - var$14 = jl_String__init_0(var$12.$buffer, 0, var$12.$length); - var$8 = var$11.$xCoord; - var$9 = var$11.$yCoord; - var$10 = var$11.$zCoord; - var$15 = $var4.$xCoord; - var$16 = $var4.$yCoord + 0.05; - var$17 = $var4.$zCoord; - var$13 = 0; - } - $par1ItemStack = $rt_s(718); - var$4 = 0.5 + 0.5 * (Math.random() * 2.0 | 0); - var$5 = (Math.random() - Math.random()) * 0.20000000298023224 + 1.0; - $ptr = 2; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2, $var5, var$4, var$5, $var3, $var4, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17, $ptr); -} -function nms_EntityPlayer_onItemUseFinish($this) { - var var$1, $var1, $var2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$itemInUse === null) - return; - var$1 = $this.$itemInUse; - $var1 = 16; - $ptr = 1; - case 1: - a: { - nms_EntityPlayer_updateItemUse($this, var$1, $var1); - if ($rt_suspending()) { - break main; - } - $var1 = $this.$itemInUse.$stackSize; - var$1 = $this.$itemInUse; - $var2 = $this.$worldObj; - nms_Item_$callClinit(); - $var2 = nms_Item_itemsList.data[var$1.$itemID0].$onEaten(var$1, $var2, $this); - if ($var2 === $this.$itemInUse) { - if ($var2 === null) - break a; - if ($var2.$stackSize == $var1) - break a; - } - $this.$inventory.$mainInventory.data[$this.$inventory.$currentItem] = $var2; - if (!$var2.$stackSize) - $this.$inventory.$mainInventory.data[$this.$inventory.$currentItem] = null; - } - $this.$itemInUse = null; - $this.$itemInUseCount = 0; - if (!$this.$worldObj.$isRemote) - nms_Entity_setFlag($this, 4, 0); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, $var2, $ptr); -} -function nms_EntityPlayer_handleHealthUpdate($this, $par1) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 != 9) { - $ptr = 1; - continue main; - } - $ptr = 2; - continue main; - case 1: - nms_EntityLiving_handleHealthUpdate($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_EntityPlayer_onItemUseFinish($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $ptr); -} -function nms_EntityPlayer_isMovementBlocked($this) { - return $this.$health > 0 && !$this.$sleeping ? 0 : 1; -} -function nms_EntityPlayer_closeScreen($this) { - $this.$openContainer = $this.$inventoryContainer; -} -function nms_EntityPlayer_mountEntity($this, $par1Entity) { - if ($this.$ridingEntity !== $par1Entity) - nms_Entity_mountEntity($this, $par1Entity); - else { - nms_Entity_unmountEntity($this, $par1Entity); - if ($this.$ridingEntity !== null) - $this.$ridingEntity.$riddenByEntity = null; - $this.$ridingEntity = null; - } -} -function nms_EntityPlayer_updateRidden($this) { - var $var7, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = $this.$rotationYaw; - $var8 = $this.$rotationPitch; - $ptr = 1; - case 1: - nms_Entity_updateRidden($this); - if ($rt_suspending()) { - break main; - } - $this.$field_70768_au = $this.$field_70766_av; - $this.$field_70766_av = 0.0; - $this.$fallDistance = 0.0; - $this.$prevCameraYaw = $this.$cameraYaw0; - $this.$cameraYaw0 = 0.0; - if ($this.$ridingEntity instanceof nms_EntityPig) { - $this.$rotationPitch = $var8; - $this.$rotationYaw = $var7; - $this.$renderYawOffset = $this.$ridingEntity.$renderYawOffset; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var7, $var8, $ptr); -} -function nms_EntityPlayer_preparePlayerToSpawn($this) { - $this.$yOffset0 = 1.6200000047683716; - nms_Entity_setSize($this, 0.6000000238418579, 1.7999999523162842); - nms_Entity_preparePlayerToSpawn($this); - $this.$health = 20; - $this.$deathTime = 0; -} -function nms_EntityPlayer_updateEntityActionState($this) { - nms_EntityLiving_updateArmSwingProgress($this); -} -function nms_EntityPlayer_onLivingUpdate($this) { - var $var1, $var2, $var5, $var3, var$5, var$6, var$7, var$8, var$9, var$10, $var4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var4 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var3 = $thread.pop();$var5 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$flyToggleTimer > 0) - $this.$flyToggleTimer = $this.$flyToggleTimer - 1 | 0; - nms_InventoryPlayer_decrementAnimations($this.$inventory); - $this.$prevCameraYaw = $this.$cameraYaw0; - $ptr = 1; - case 1: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - $this.$landMovementFactor = $this.$capabilities.$walkSpeed; - $this.$jumpMovementFactor = $this.$speedInAir; - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 8) ? 0 : 1) { - $this.$landMovementFactor = $this.$landMovementFactor + $this.$capabilities.$walkSpeed * 0.3; - $this.$jumpMovementFactor = $this.$jumpMovementFactor + $this.$speedInAir * 0.3; - } - $var1 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $var2 = jl_Math_atan( -$this.$motionY * 0.20000000298023224) * 15.0; - if ($var1 > 0.10000000149011612) - $var1 = 0.10000000149011612; - if (!($this.$onGround && $this.$health > 0)) - $var1 = 0.0; - if (!(!$this.$onGround && $this.$health > 0)) - $var2 = 0.0; - a: { - b: { - $this.$cameraYaw0 = $this.$cameraYaw0 + ($var1 - $this.$cameraYaw0) * 0.4000000059604645; - $this.$cameraPitch0 = $this.$cameraPitch0 + ($var2 - $this.$cameraPitch0) * 0.800000011920929; - if ($this.$health > 0) { - $var5 = $this.$worldObj; - $var3 = $this.$boundingBox; - var$5 = $var3.$minX - 1.0; - var$6 = $var3.$minY - 0.5; - var$7 = $var3.$minZ - 1.0; - var$8 = $var3.$maxX + 1.0; - var$9 = $var3.$maxY + 0.5; - var$10 = $var3.$maxZ + 1.0; - $var3 = nms_World_getEntitiesWithinAABBExcludingEntity($var5, $this, nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$5, var$6, var$7, var$8, var$9, var$10), null); - if ($var3 !== null) { - $var4 = 0; - while (true) { - if ($var4 >= $var3.$size0) - break b; - if ($var4 < 0) - break a; - if ($var4 >= $var3.$size0) - break a; - $var5 = $var3.$array1.data[$var4]; - if (!$var5.$isDead) { - $ptr = 2; - continue main; - } - $var4 = $var4 + 1 | 0; - } - } - } - } - return; - } - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); - case 2: - $var5.$onCollideWithPlayer($this); - if ($rt_suspending()) { - break main; - } - c: { - while (true) { - $var4 = $var4 + 1 | 0; - if ($var4 >= $var3.$size0) - break; - if ($var4 < 0) - break c; - if ($var4 >= $var3.$size0) - break c; - $var5 = $var3.$array1.data[$var4]; - if ($var5.$isDead) - continue; - else { - continue main; - } - } - return; - } - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var5, $var3, var$5, var$6, var$7, var$8, var$9, var$10, $var4, $ptr); -} -function nms_EntityPlayer_getScore($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); -} -function nms_EntityPlayer_addScore($this, $par1) { - var $var2; - $var2 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf($var2 + $par1 | 0)); -} -function nms_EntityPlayer_onDeath($this, $par1DamageSource) { - var 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();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_onDeath($this, $par1DamageSource); - if ($rt_suspending()) { - break main; - } - nms_Entity_setSize($this, 0.20000000298023224, 0.20000000298023224); - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$motionY = 0.10000000149011612; - if (jl_String_equals($this.$username0, $rt_s(469))) { - var$2 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_appleRed.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - nms_EntityPlayer_dropPlayerItemWithRandomChoice($this, var$2, 1); - } - if (!nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(719))) - nms_InventoryPlayer_dropAllItems($this.$inventory); - if ($par1DamageSource === null) { - $this.$motionZ = 0.0; - $this.$motionX = 0.0; - } else { - var$4 = ($this.$attackedAtYaw + $this.$rotationYaw) * 3.1415927410125732 / 180.0; - $this.$motionX = -nms_MathHelper_SIN_TABLE.data[(var$4 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.10000000149011612; - var$4 = ($this.$attackedAtYaw + $this.$rotationYaw) * 3.1415927410125732 / 180.0; - $this.$motionZ = -nms_MathHelper_SIN_TABLE.data[(var$4 * 10430.3779296875 | 0) & 65535] * 0.10000000149011612; - } - $this.$yOffset0 = 0.10000000149011612; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, var$2, var$3, var$4, $ptr); -} -function nms_EntityPlayer_addToPlayerScore($this, $par1Entity, $par2) { - var var$3, $var3, $var5, $var4; - var$3 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf(var$3 + $par2 | 0)); - $var3 = nms_Scoreboard_func_96520_a($this.$worldObj.$worldScoreboard, nms_ScoreObjectiveCriteria_field_96640_e); - if ($par1Entity instanceof nms_EntityPlayer) { - $par1Entity = nms_Scoreboard_func_96520_a($this.$worldObj.$worldScoreboard, nms_ScoreObjectiveCriteria_field_96639_d); - $var5 = new ju_AbstractList$1; - $var5.$this$0 = $par1Entity; - $var5.$modCount = $var5.$this$0.$modCount0; - $var5.$size1 = $var5.$this$0.$size2(); - $var5.$removeIndex = (-1); - while ($var5.$index >= $var5.$size1 ? 0 : 1) { - if (!ju_ArrayList_add($var3, ju_AbstractList$1_next($var5))) - continue; - } - } - $var4 = new ju_AbstractList$1; - $var4.$this$0 = $var3; - $var4.$modCount = $var4.$this$0.$modCount0; - $var4.$size1 = $var4.$this$0.$size2(); - $var4.$removeIndex = (-1); - while ($var4.$index >= $var4.$size1 ? 0 : 1) { - $var5 = ju_AbstractList$1_next($var4); - nms_Score_func_96648_a(nms_Scoreboard_func_96529_a($this.$worldObj.$worldScoreboard, $this.$username0, $var5)); - } -} -function nms_EntityPlayer_dropPlayerItem($this, $par1ItemStack) { - return nms_EntityPlayer_dropPlayerItemWithRandomChoice($this, $par1ItemStack, 0); -} -function nms_EntityPlayer_dropPlayerItemWithRandomChoice($this, $par1ItemStack, $par2) { - var $var3, $var5, $var6, var$6, $var5_0, var$8, var$9, var$10, var$11, var$12; - if ($par1ItemStack === null) - return null; - $var3 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY - 0.30000001192092896 + $this.$getEyeHeight(), $this.$posZ); - nms_DataWatcher_updateObject($var3.$dataWatcher, 10, $par1ItemStack); - nms_DataWatcher_setObjectWatched($var3.$dataWatcher, 10); - $var3.$delayBeforeCanPickup = 40; - if ($par2) { - $var5 = Math.random() * 0.5; - $var6 = Math.random() * 3.1415927410125732 * 2.0; - var$6 = nms_MathHelper_SIN_TABLE.data; - $var6 = $var6 * 10430.3779296875; - $var3.$motionX = -var$6[($var6 | 0) & 65535] * $var5; - $var3.$motionZ = nms_MathHelper_SIN_TABLE.data[($var6 + 16384.0 | 0) & 65535] * $var5; - $var3.$motionY = 0.20000000298023224; - } else { - $var5_0 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - var$8 = -nms_MathHelper_SIN_TABLE.data[($var5_0 * 10430.3779296875 | 0) & 65535]; - $var5 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $var3.$motionX = var$8 * nms_MathHelper_SIN_TABLE.data[($var5 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.30000001192092896; - $var5 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - var$8 = nms_MathHelper_SIN_TABLE.data[($var5 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $var5 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $var3.$motionZ = var$8 * nms_MathHelper_SIN_TABLE.data[($var5 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.30000001192092896; - $var5 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $var3.$motionY = -nms_MathHelper_SIN_TABLE.data[($var5 * 10430.3779296875 | 0) & 65535] * 0.30000001192092896 + 0.10000000149011612; - $var5_0 = Math.random() * 3.1415927410125732 * 2.0; - $var5 = 0.019999999552965164 * Math.random(); - var$9 = $var3.$motionX; - var$10 = $var5_0; - var$11 = jl_Math_cos(var$10); - var$12 = $var5; - $var3.$motionX = var$9 + var$11 * var$12; - $var3.$motionY = $var3.$motionY + (Math.random() - Math.random()) * 0.10000000149011612; - $var3.$motionZ = $var3.$motionZ + jl_Math_sin(var$10) * var$12; - } - $this.$joinEntityItemWithWorld($var3); - return $var3; -} -function nms_EntityPlayer_joinEntityItemWithWorld($this, $par1EntityItem) { - nms_WorldClient_spawnEntityInWorld($this.$worldObj, $par1EntityItem); -} -function nms_EntityPlayer_getCurrentPlayerStrVsBlock($this, $par1Block, $par2) { - var $var3, var$4, $var4, $var5, $var6; - $var3 = nms_InventoryPlayer_getStrVsBlock($this.$inventory, $par1Block); - var$4 = $rt_compare($var3, 1.0); - if (var$4 > 0) { - nms_Enchantment_$callClinit(); - $var4 = nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_efficiency.$effectId, nms_InventoryPlayer_getCurrentItem($this.$inventory)); - $var5 = nms_InventoryPlayer_getCurrentItem($this.$inventory); - if ($var4 > 0 && $var5 !== null) { - $var6 = $rt_imul($var4, $var4) + 1 | 0; - nms_Item_$callClinit(); - $var3 = !nms_Item_itemsList.data[$var5.$itemID0].$canHarvestBlock($par1Block) && var$4 <= 0 ? $var3 + $var6 * 0.07999999821186066 : $var3 + $var6; - } - } - if (nms_EntityLiving_isPotionActive($this, nms_Potion_digSpeed)) - $var3 = $var3 * (1.0 + (nms_EntityLiving_getActivePotionEffect($this, nms_Potion_digSpeed).$amplifier + 1 | 0) * 0.20000000298023224); - if (nms_EntityLiving_isPotionActive($this, nms_Potion_digSlowdown)) - $var3 = $var3 * (1.0 - (nms_EntityLiving_getActivePotionEffect($this, nms_Potion_digSlowdown).$amplifier + 1 | 0) * 0.20000000298023224); - nms_Material_$callClinit(); - if (nms_Entity_isInsideOfMaterial($this, nms_Material_water)) { - nms_Enchantment_$callClinit(); - if (!(nms_EnchantmentHelper_getMaxEnchantmentLevel(nms_Enchantment_aquaAffinity.$effectId, $this.$inventory.$armorInventory) <= 0 ? 0 : 1)) - $var3 = $var3 / 5.0; - } - if (!$this.$onGround) - $var3 = $var3 / 5.0; - return $var3; -} -function nms_EntityPlayer_canHarvestBlock($this, $par1Block) { - return nms_InventoryPlayer_canHarvestBlock($this.$inventory, $par1Block); -} -function nms_EntityPlayer_getEyeHeight($this) { - return 0.11999999731779099; -} -function nms_EntityPlayer_resetHeight($this) { - $this.$yOffset0 = 1.6200000047683716; -} -function nms_EntityPlayer_func_96122_a($this, $par1EntityPlayer) { - var $var2; - $var2 = nms_Scoreboard_getPlayersTeam($this.$worldObj.$worldScoreboard, $this.$username0); - return $var2 !== nms_Scoreboard_getPlayersTeam($par1EntityPlayer.$worldObj.$worldScoreboard, $par1EntityPlayer.$username0) ? 1 : $var2 === null ? 1 : $var2.$field_96672_g; -} -function nms_EntityPlayer_alertWolves($this, $par1EntityLiving, $par2) { - var $var3, $var5, $var6, var$6, var$7, var$8, var$9, var$10, var$11, $var4, var$13; - a: { - if (!($par1EntityLiving instanceof nms_EntityCreeper) && !($par1EntityLiving instanceof nms_EntityGhast)) { - if ($par1EntityLiving instanceof nms_EntityWolf) { - $var3 = $par1EntityLiving; - if ((!(nms_DataWatcher_getWatchableObjectByte($var3.$dataWatcher, 16) & 4) ? 0 : 1) && jl_String_equals($this.$username0, nms_DataWatcher_getWatchableObjectString($var3.$dataWatcher, 17))) - return; - } - if ($par1EntityLiving instanceof nms_EntityPlayer) { - $var5 = $par1EntityLiving; - $var3 = nms_Scoreboard_getPlayersTeam($this.$worldObj.$worldScoreboard, $this.$username0); - if (!($var3 !== nms_Scoreboard_getPlayersTeam($var5.$worldObj.$worldScoreboard, $var5.$username0) ? 1 : $var3 === null ? 1 : $var3.$field_96672_g)) - break a; - } - $var5 = $this.$worldObj; - $var6 = nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), $this.$posX, $this.$posY, $this.$posZ, $this.$posX + 1.0, $this.$posY + 1.0, $this.$posZ + 1.0); - var$6 = $var6.$minX - 16.0; - var$7 = $var6.$minY - 4.0; - var$8 = $var6.$minZ - 16.0; - var$9 = $var6.$maxX + 16.0; - var$10 = $var6.$maxY + 4.0; - var$11 = $var6.$maxZ + 16.0; - $var6 = nms_World_selectEntitiesWithinAABB($var5, $rt_cls(nms_EntityWolf), nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$6, var$7, var$8, var$9, var$10, var$11), null); - $var4 = new ju_AbstractList$1; - $var4.$this$0 = $var6; - $var4.$modCount = $var4.$this$0.$modCount0; - $var4.$size1 = $var4.$this$0.$size2(); - $var4.$removeIndex = (-1); - while (true) { - if (!($var4.$index >= $var4.$size1 ? 0 : 1)) - break a; - $var5 = ju_AbstractList$1_next($var4); - var$13 = !(nms_DataWatcher_getWatchableObjectByte($var5.$dataWatcher, 16) & 4) ? 0 : 1; - if (var$13 && $var5.$entityToAttack === null && jl_String_equals($this.$username0, nms_DataWatcher_getWatchableObjectString($var5.$dataWatcher, 17)) && !($par2 && (!(nms_DataWatcher_getWatchableObjectByte($var5.$dataWatcher, 16) & 1) ? 0 : 1))) { - nms_EntityTameable_setSitting($var5, 0); - $var5.$entityToAttack = $par1EntityLiving; - } - } - } - } -} -function nms_EntityPlayer_damageArmor($this, $par1) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$inventory; - $ptr = 1; - case 1: - nms_InventoryPlayer_damageArmor(var$2, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, $ptr); -} -function nms_EntityPlayer_getTotalArmorValue($this) { - return nms_InventoryPlayer_getTotalArmorValue($this.$inventory); -} -function nms_EntityPlayer_func_82243_bO($this) { - var $var1, $var2, $var3, $var4; - $var1 = 0; - $var2 = $this.$inventory.$armorInventory.data; - $var3 = $var2.length; - $var4 = 0; - while ($var4 < $var3) { - if ($var2[$var4] !== null) - $var1 = $var1 + 1 | 0; - $var4 = $var4 + 1 | 0; - } - return $var1 / $this.$inventory.$armorInventory.data.length; -} -function nms_EntityPlayer_damageEntity($this, $par1DamageSource, $par2) { - 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();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return; - if (!$par1DamageSource.$isUnblockable && nms_EntityPlayer_isBlocking($this)) - $par2 = (1 + $par2 | 0) >> 1; - $ptr = 1; - case 1: - $tmp = nms_EntityLiving_applyArmorCalculations($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - $par2 = nms_EntityLiving_applyPotionDamageCalculations($this, $par1DamageSource, $par2); - nms_EntityPlayer_addExhaustion($this, $par1DamageSource.$hungerDamage); - $var3 = $this.$health; - var$4 = $this.$health - $par2 | 0; - $this.$health = var$4; - nms_CombatTracker_func_94547_a($this.$field_94063_bt, $par1DamageSource, $var3, $par2); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $var3, var$4, $ptr); -} -function nms_EntityPlayer_interactWith($this, $par1Entity) { - var var$2, $var2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $tmp = $par1Entity.$interact($this); - if ($rt_suspending()) { - break main; - } - var$2 = $tmp; - if (var$2) - return 1; - $var2 = nms_InventoryPlayer_getCurrentItem($this.$inventory); - if ($var2 !== null && $par1Entity instanceof nms_EntityLiving) { - if ($this.$capabilities.$isCreativeMode) - $var2 = nms_ItemStack_copy($var2); - $par1Entity = $par1Entity; - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var2.$itemID0].$itemInteractionForEntity($var2, $par1Entity)) { - if ($var2.$stackSize <= 0 && !$this.$capabilities.$isCreativeMode) - nms_EntityPlayer_destroyCurrentEquippedItem($this); - return 1; - } - } - return 0; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, var$2, $var2, $ptr); -} -function nms_EntityPlayer_getCurrentEquippedItem($this) { - return nms_InventoryPlayer_getCurrentItem($this.$inventory); -} -function nms_EntityPlayer_destroyCurrentEquippedItem($this) { - var var$1, var$2, var$3, var$4, var$5; - var$1 = $this.$inventory; - var$2 = $this.$inventory.$currentItem; - var$3 = null; - var$4 = var$1.$mainInventory; - var$5 = var$4.data.length; - if (var$2 >= var$5) { - var$2 = var$2 - var$5 | 0; - var$4 = var$1.$armorInventory; - } - var$4.data[var$2] = var$3; -} -function nms_EntityPlayer_getYOffset($this) { - return $this.$yOffset0 - 0.5; -} -function nms_EntityPlayer_attackTargetEntityWithCurrentItem($this, $par1Entity) { - var $var2, $var3, $var4, var$5, $var5, $var8, $var6, $var7, $var11, var$11, var$12, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var11 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var8 = $thread.pop();$var5 = $thread.pop();var$5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($par1Entity.$canAttackWithItem() && !$par1Entity.$func_85031_j($this)) { - $var2 = nms_InventoryPlayer_getDamageVsEntity($this.$inventory, $par1Entity); - if (nms_EntityLiving_isPotionActive($this, nms_Potion_damageBoost)) - $var2 = $var2 + (3 << nms_EntityLiving_getActivePotionEffect($this, nms_Potion_damageBoost).$amplifier) | 0; - if (nms_EntityLiving_isPotionActive($this, nms_Potion_weakness)) - $var2 = $var2 - (2 << nms_EntityLiving_getActivePotionEffect($this, nms_Potion_weakness).$amplifier) | 0; - $var3 = 0; - $var4 = 0; - var$5 = $par1Entity instanceof nms_EntityLiving; - if (var$5) { - $var4 = nms_EnchantmentHelper_getEnchantmentModifierLiving($this, $par1Entity); - nms_Enchantment_$callClinit(); - $var3 = $var3 + nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_knockback.$effectId, nms_InventoryPlayer_getCurrentItem($this.$inventory)) | 0; - } - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 8) ? 0 : 1) - $var3 = $var3 + 1 | 0; - if ($var2 > 0) - break a; - if ($var4 > 0) - break a; - } - return; - } - $var5 = $this.$fallDistance > 0.0 && !$this.$onGround && !nms_EntityLiving_isOnLadder($this) && !$this.$inWater && !nms_EntityLiving_isPotionActive($this, nms_Potion_blindness) && $this.$ridingEntity === null && var$5 ? 1 : 0; - if ($var5 && $var2 > 0) { - $var8 = ($var2 / 2 | 0) + 2 | 0; - $var2 = $var2 + (Math.random() * $var8 | 0) | 0; - } - $var2 = $var2 + $var4 | 0; - $var6 = 0; - nms_Enchantment_$callClinit(); - $var7 = nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_fireAspect.$effectId, nms_InventoryPlayer_getCurrentItem($this.$inventory)); - if (var$5 && $var7 > 0 && !$par1Entity.$isBurning()) { - $var6 = 1; - $var8 = nms_EnchantmentProtection_func_92093_a($par1Entity, 20); - if ($par1Entity.$fire < $var8) - $par1Entity.$fire = $var8; - } - $var11 = new nms_EntityDamageSource; - $var11.$isUnblockable = 0; - $var11.$isDamageAllowedInCreativeMode = 0; - $var11.$hungerDamage = 0.30000001192092896; - $var11.$magicDamage = 0; - $var11.$explosion = 0; - $var11.$damageType = $rt_s(720); - $var11.$damageSourceEntity = $this; - $ptr = 1; - case 1: - $tmp = $par1Entity.$attackEntityFrom($var11, $var2); - if ($rt_suspending()) { - break main; - } - $var8 = $tmp; - if ($var8) { - if ($var3 > 0) { - var$11 = -nms_MathHelper_sin($this.$rotationYaw * 3.1415927410125732 / 180.0); - var$12 = $var3; - $par1Entity.$addVelocity(var$11 * var$12 * 0.5, 0.1, nms_MathHelper_cos($this.$rotationYaw * 3.1415927410125732 / 180.0) * var$12 * 0.5); - $this.$motionX = $this.$motionX * 0.6; - $this.$motionZ = $this.$motionZ * 0.6; - nms_EntityPlayerSP_setSprinting($this, 0); - } - if ($var5) { - $ptr = 2; - continue main; - } - if ($var4 > 0) { - $ptr = 3; - continue main; - } - if ($var2 >= 18) { - nms_AchievementList_$callClinit(); - nms_EntityClientPlayerMP_addStat($this, nms_AchievementList_overkill, 1); - } - nms_EntityLiving_setLastAttackingEntity($this, $par1Entity); - if (var$5) { - $var11 = $par1Entity; - $var9 = $this.$rand0; - $ptr = 5; - continue main; - } - } - $var9 = nms_InventoryPlayer_getCurrentItem($this.$inventory); - if (!($par1Entity instanceof nms_EntityDragonPart)) - $var11 = $par1Entity; - else { - $var11 = $par1Entity.$entityDragonObj; - $var11 = $var11 === null ? $par1Entity : $var11 instanceof nms_EntityLiving ? $var11 : $par1Entity; - } - if ($var9 !== null && $var11 instanceof nms_EntityLiving) { - $var11 = $var11; - $ptr = 4; - continue main; - } - if (var$5) { - if ($par1Entity.$isEntityAlive()) - nms_EntityPlayer_alertWolves($this, $par1Entity, 1); - if ($var7 > 0 && $var8) - nms_Entity_setFire($par1Entity, $var7 * 4 | 0); - else if ($var6) - $par1Entity.$fire = 0; - } - nms_EntityPlayer_addExhaustion($this, 0.30000001192092896); - return; - case 2: - nms_EntityPlayerSP_onCriticalHit($this, $par1Entity); - if ($rt_suspending()) { - break main; - } - if ($var4 > 0) { - $ptr = 3; - continue main; - } - if ($var2 >= 18) { - nms_AchievementList_$callClinit(); - nms_EntityClientPlayerMP_addStat($this, nms_AchievementList_overkill, 1); - } - nms_EntityLiving_setLastAttackingEntity($this, $par1Entity); - if (var$5) { - $var11 = $par1Entity; - $var9 = $this.$rand0; - $ptr = 5; - continue main; - } - $var9 = nms_InventoryPlayer_getCurrentItem($this.$inventory); - if (!($par1Entity instanceof nms_EntityDragonPart)) - $var11 = $par1Entity; - else { - $var11 = $par1Entity.$entityDragonObj; - $var11 = $var11 === null ? $par1Entity : $var11 instanceof nms_EntityLiving ? $var11 : $par1Entity; - } - if ($var9 !== null && $var11 instanceof nms_EntityLiving) { - $var11 = $var11; - $ptr = 4; - continue main; - } - if (var$5) { - if ($par1Entity.$isEntityAlive()) - nms_EntityPlayer_alertWolves($this, $par1Entity, 1); - if ($var7 > 0 && $var8) - nms_Entity_setFire($par1Entity, $var7 * 4 | 0); - else if ($var6) - $par1Entity.$fire = 0; - } - nms_EntityPlayer_addExhaustion($this, 0.30000001192092896); - return; - case 3: - nms_EntityPlayerSP_onEnchantmentCritical($this, $par1Entity); - if ($rt_suspending()) { - break main; - } - if ($var2 >= 18) { - nms_AchievementList_$callClinit(); - nms_EntityClientPlayerMP_addStat($this, nms_AchievementList_overkill, 1); - } - nms_EntityLiving_setLastAttackingEntity($this, $par1Entity); - if (var$5) { - $var11 = $par1Entity; - $var9 = $this.$rand0; - $ptr = 5; - continue main; - } - $var9 = nms_InventoryPlayer_getCurrentItem($this.$inventory); - if (!($par1Entity instanceof nms_EntityDragonPart)) - $var11 = $par1Entity; - else { - $var11 = $par1Entity.$entityDragonObj; - $var11 = $var11 === null ? $par1Entity : $var11 instanceof nms_EntityLiving ? $var11 : $par1Entity; - } - if ($var9 !== null && $var11 instanceof nms_EntityLiving) { - $var11 = $var11; - $ptr = 4; - continue main; - } - if (var$5) { - if ($par1Entity.$isEntityAlive()) - nms_EntityPlayer_alertWolves($this, $par1Entity, 1); - if ($var7 > 0 && $var8) - nms_Entity_setFire($par1Entity, $var7 * 4 | 0); - else if ($var6) - $par1Entity.$fire = 0; - } - nms_EntityPlayer_addExhaustion($this, 0.30000001192092896); - return; - case 4: - nms_ItemStack_hitEntity($var9, $var11, $this); - if ($rt_suspending()) { - break main; - } - if ($var9.$stackSize <= 0) - nms_EntityPlayer_destroyCurrentEquippedItem($this); - if (var$5) { - if ($par1Entity.$isEntityAlive()) - nms_EntityPlayer_alertWolves($this, $par1Entity, 1); - if ($var7 > 0 && $var8) - nms_Entity_setFire($par1Entity, $var7 * 4 | 0); - else if ($var6) - $par1Entity.$fire = 0; - } - nms_EntityPlayer_addExhaustion($this, 0.30000001192092896); - return; - case 5: - nms_EnchantmentThorns_func_92096_a($this, $var11, $var9); - if ($rt_suspending()) { - break main; - } - $var9 = nms_InventoryPlayer_getCurrentItem($this.$inventory); - if (!($par1Entity instanceof nms_EntityDragonPart)) - $var11 = $par1Entity; - else { - $var11 = $par1Entity.$entityDragonObj; - $var11 = $var11 === null ? $par1Entity : $var11 instanceof nms_EntityLiving ? $var11 : $par1Entity; - } - if ($var9 !== null && $var11 instanceof nms_EntityLiving) { - $var11 = $var11; - $ptr = 4; - continue main; - } - if (var$5) { - if ($par1Entity.$isEntityAlive()) - nms_EntityPlayer_alertWolves($this, $par1Entity, 1); - if ($var7 > 0 && $var8) - nms_Entity_setFire($par1Entity, $var7 * 4 | 0); - else if ($var6) - $par1Entity.$fire = 0; - } - nms_EntityPlayer_addExhaustion($this, 0.30000001192092896); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $var2, $var3, $var4, var$5, $var5, $var8, $var6, $var7, $var11, var$11, var$12, $var9, $ptr); -} -function nms_EntityPlayer_setDead($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: - $this.$isDead = 1; - var$1 = $this.$inventoryContainer; - $ptr = 1; - case 1: - nms_ContainerPlayer_onCraftGuiClosed(var$1, $this); - if ($rt_suspending()) { - break main; - } - if ($this.$openContainer === null) - return; - var$1 = $this.$openContainer; - $ptr = 2; - case 2: - var$1.$onCraftGuiClosed($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -} -function nms_EntityPlayer_isEntityInsideOpaqueBlock($this) { - return !$this.$sleeping && nms_Entity_isEntityInsideOpaqueBlock($this) ? 1 : 0; -} -function nms_EntityPlayer_func_71066_bF($this) { - return 0; -} -function nms_EntityPlayer_sleepInBedAt($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7, $var5, $var10, $var7, $var8; - a: { - if (!$this.$worldObj.$isRemote) { - if (!$this.$sleeping && (!$this.$isDead && $this.$health > 0 ? 1 : 0)) { - if (!$this.$worldObj.$provider.$isSurfaceWorld()) - return nms_EnumStatus_NOT_POSSIBLE_HERE; - if ($this.$worldObj.$skylightSubtracted >= 4 ? 0 : 1) - return nms_EnumStatus_NOT_POSSIBLE_NOW; - $var4 = $this.$posX; - var$5 = $par1; - $var4 = $var4 - var$5; - if ($var4 <= 0.0) - $var4 = -$var4; - if ($var4 <= 3.0) { - $var4 = $this.$posY; - var$6 = $par2; - $var4 = $var4 - var$6; - if ($var4 <= 0.0) - $var4 = -$var4; - if ($var4 <= 2.0) { - $var4 = $this.$posZ; - var$7 = $par3; - $var4 = $var4 - var$7; - if ($var4 <= 0.0) - $var4 = -$var4; - if ($var4 <= 3.0) { - if (nms_World_selectEntitiesWithinAABB($this.$worldObj, $rt_cls(nms_EntityMob), nms_AABBPool_getAABB(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool), var$5 - 8.0, var$6 - 5.0, var$7 - 8.0, var$5 + 8.0, var$6 + 5.0, var$7 + 8.0), null).$size0 ? 0 : 1) - break a; - return nms_EnumStatus_NOT_SAFE; - } - } - } - return nms_EnumStatus_TOO_FAR_AWAY; - } - return nms_EnumStatus_OTHER_PROBLEM; - } - } - nms_Entity_setSize($this, 0.20000000298023224, 0.20000000298023224); - $this.$yOffset0 = 0.20000000298023224; - if (!($par2 >= 0 && $par2 < 256 ? 1 : 0)) - nms_Entity_setPosition($this, $par1 + 0.5, $par2 + 0.9375, $par3 + 0.5); - else { - b: { - $var5 = nms_World_getBlockMetadata($this.$worldObj, $par1, $par2, $par3) & 3; - $var10 = 0.5; - $var7 = 0.5; - switch ($var5) { - case 0: - $var7 = 0.8999999761581421; - break b; - case 1: - $var10 = 0.10000000149011612; - break b; - case 2: - $var7 = 0.10000000149011612; - break b; - case 3: - $var10 = 0.8999999761581421; - break b; - default: - } - } - nms_EntityPlayer_func_71013_b($this, $var5); - nms_Entity_setPosition($this, $par1 + $var10, $par2 + 0.9375, $par3 + $var7); - } - $this.$sleeping = 1; - $this.$sleepTimer = 0; - $var8 = new nms_ChunkCoordinates; - $var8.$posX0 = $par1; - $var8.$posY0 = $par2; - $var8.$posZ0 = $par3; - $this.$playerLocation = $var8; - $this.$motionY = 0.0; - $this.$motionZ = 0.0; - $this.$motionX = 0.0; - return nms_EnumStatus_OK; -} -function nms_EntityPlayer_func_71013_b($this, $par1) { - a: { - $this.$field_71079_bU = 0.0; - $this.$field_71089_bV = 0.0; - switch ($par1) { - case 0: - break; - case 1: - $this.$field_71079_bU = 1.7999999523162842; - break a; - case 2: - $this.$field_71089_bV = 1.7999999523162842; - break a; - case 3: - $this.$field_71079_bU = (-1.7999999523162842); - break a; - default: - break a; - } - $this.$field_71089_bV = (-1.7999999523162842); - } -} -function nms_EntityPlayer_wakeUpPlayer($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $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: - nms_Entity_setSize($this, 0.6000000238418579, 1.7999999523162842); - $this.$resetHeight(); - $var4 = $this.$playerLocation; - if ($var4 !== null) { - var$5 = nms_World_getBlockId($this.$worldObj, $var4.$posX0, $var4.$posY0, $var4.$posZ0); - nms_Block_$callClinit(); - if (var$5 == nms_Block_bed.$blockID) { - var$6 = $this.$worldObj; - var$5 = $var4.$posX0; - var$7 = $var4.$posY0; - var$8 = $var4.$posZ0; - var$9 = nms_World_getBlockMetadata(var$6, var$5, var$7, var$8) & (-5); - var$10 = 4; - $ptr = 1; - continue main; - } - } - $this.$sleeping = 0; - if (!$par1) - $this.$sleepTimer = 100; - else - $this.$sleepTimer = 0; - if ($par3) - nms_EntityPlayer_setSpawnChunk($this, $this.$playerLocation, 0); - return; - case 1: - nms_World_setBlockMetadataWithNotify(var$6, var$5, var$7, var$8, var$9, var$10); - if ($rt_suspending()) { - break main; - } - var$6 = nms_BlockBed_getNearestEmptyChunkCoordinates($this.$worldObj, $var4.$posX0, $var4.$posY0, $var4.$posZ0, 0); - if (var$6 === null) { - var$6 = new nms_ChunkCoordinates; - var$5 = $var4.$posX0; - var$7 = $var4.$posY0 + 1 | 0; - var$8 = $var4.$posZ0; - var$6.$posX0 = var$5; - var$6.$posY0 = var$7; - var$6.$posZ0 = var$8; - } - nms_Entity_setPosition($this, var$6.$posX0 + 0.5, var$6.$posY0 + $this.$yOffset0 + 0.10000000149011612, var$6.$posZ0 + 0.5); - $this.$sleeping = 0; - if (!$par1) - $this.$sleepTimer = 100; - else - $this.$sleepTimer = 0; - if ($par3) - nms_EntityPlayer_setSpawnChunk($this, $this.$playerLocation, 0); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -} -function nms_EntityPlayer_isInBed($this) { - var var$1; - var$1 = nms_World_getBlockId($this.$worldObj, $this.$playerLocation.$posX0, $this.$playerLocation.$posY0, $this.$playerLocation.$posZ0); - nms_Block_$callClinit(); - return var$1 != nms_Block_bed.$blockID ? 0 : 1; -} -function nms_EntityPlayer_getBedOrientationInDegrees($this) { - a: { - if ($this.$playerLocation !== null) - switch (nms_World_getBlockMetadata($this.$worldObj, $this.$playerLocation.$posX0, $this.$playerLocation.$posY0, $this.$playerLocation.$posZ0) & 3) { - case 0: - return 90.0; - case 1: - return 0.0; - case 2: - return 270.0; - case 3: - return 180.0; - default: - break a; - } - } - return 0.0; -} -function nms_EntityPlayer_isPlayerSleeping($this) { - return $this.$sleeping; -} -function nms_EntityPlayer_getSleepTimer($this) { - return $this.$sleepTimer; -} -function nms_EntityPlayer_getHideCape($this, $par1) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1 << $par1) ? 0 : 1; -} -function nms_EntityPlayer_setSpawnChunk($this, $par1ChunkCoordinates, $par2) { - var var$3; - if ($par1ChunkCoordinates === null) { - $this.$spawnChunk = null; - $this.$spawnForced = 0; - } else { - var$3 = new nms_ChunkCoordinates; - var$3.$posX0 = $par1ChunkCoordinates.$posX0; - var$3.$posY0 = $par1ChunkCoordinates.$posY0; - var$3.$posZ0 = $par1ChunkCoordinates.$posZ0; - $this.$spawnChunk = var$3; - $this.$spawnForced = $par2; - } -} -function nms_EntityPlayer_triggerAchievement($this, $par1StatBase) { - $this.$addStat($par1StatBase, 1); -} -function nms_EntityPlayer_addStat($this, $par1StatBase, $par2) { - return; -} -function nms_EntityPlayer_jump($this) { - nms_EntityLiving_jump($this); - if (!(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 8) ? 0 : 1)) - nms_EntityPlayer_addExhaustion($this, 0.20000000298023224); - else - nms_EntityPlayer_addExhaustion($this, 0.800000011920929); -} -function nms_EntityPlayer_moveEntityWithHeading($this, $par1, $par2) { - var $var3, $var5, $var7, $var9, $var11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = $this.$posX; - $var5 = $this.$posY; - $var7 = $this.$posZ; - if ($this.$capabilities.$isFlying && $this.$ridingEntity === null) { - $var9 = $this.$motionY; - $var11 = $this.$jumpMovementFactor; - $this.$jumpMovementFactor = $this.$capabilities.$flySpeed; - $ptr = 2; - continue main; - } - $ptr = 1; - case 1: - nms_EntityLiving_moveEntityWithHeading($this, $par1, $par2); - if ($rt_suspending()) { - break main; - } - nms_EntityPlayer_addMovementStat($this, $this.$posX - $var3, $this.$posY - $var5, $this.$posZ - $var7); - return; - case 2: - nms_EntityLiving_moveEntityWithHeading($this, $par1, $par2); - if ($rt_suspending()) { - break main; - } - $this.$motionY = $var9 * 0.6; - $this.$jumpMovementFactor = $var11; - nms_EntityPlayer_addMovementStat($this, $this.$posX - $var3, $this.$posY - $var5, $this.$posZ - $var7); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, $var5, $var7, $var9, $var11, $ptr); -} -function nms_EntityPlayer_addMovementStat($this, $par1, $par3, $par5) { - var var$4, $var7, $var7_0; - a: { - if ($this.$ridingEntity === null) { - nms_Material_$callClinit(); - if (nms_Entity_isInsideOfMaterial($this, nms_Material_water)) { - var$4 = jl_Math_sqrt($par1 * $par1 + $par3 * $par3 + $par5 * $par5) * 100.0; - $var7 = $rt_compare(var$4, 0.0); - $var7 = var$4 + ($var7 > 0 ? 1.0 : $var7 >= 0 ? var$4 : (-1.0)) * 0.5 | 0; - if ($var7 > 0) - nms_EntityPlayer_addExhaustion($this, 0.014999999664723873 * $var7 * 0.009999999776482582); - } else if ($this.$inWater) { - var$4 = jl_Math_sqrt($par1 * $par1 + $par5 * $par5) * 100.0; - $var7 = $rt_compare(var$4, 0.0); - $var7 = var$4 + ($var7 > 0 ? 1.0 : $var7 >= 0 ? var$4 : (-1.0)) * 0.5 | 0; - if ($var7 > 0) - nms_EntityPlayer_addExhaustion($this, 0.014999999664723873 * $var7 * 0.009999999776482582); - } else if (!nms_EntityLiving_isOnLadder($this)) { - if (!$this.$onGround) { - var$4 = jl_Math_sqrt($par1 * $par1 + $par5 * $par5) * 100.0; - $var7 = $rt_compare(var$4, 0.0); - if ((var$4 + ($var7 > 0 ? 1.0 : $var7 >= 0 ? var$4 : (-1.0)) * 0.5 | 0) <= 25) - break a; - else - break a; - } - var$4 = jl_Math_sqrt($par1 * $par1 + $par5 * $par5) * 100.0; - $var7 = $rt_compare(var$4, 0.0); - $var7_0 = var$4 + ($var7 > 0 ? 1.0 : $var7 >= 0 ? var$4 : (-1.0)) * 0.5 | 0; - if ($var7_0 > 0) { - if (!(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 8) ? 0 : 1)) - nms_EntityPlayer_addExhaustion($this, 0.009999999776482582 * $var7_0 * 0.009999999776482582); - else - nms_EntityPlayer_addExhaustion($this, 0.09999999403953552 * $var7_0 * 0.009999999776482582); - } - } else if ($par3 <= 0.0) { - } - } - } -} -function nms_EntityPlayer_fall($this, $par1) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$capabilities.$allowFlying) - return; - $ptr = 1; - case 1: - nms_EntityLiving_fall($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $ptr); -} -function nms_EntityPlayer_onKillEntity($this, $par1EntityLiving) { - if ($rt_isInstance($par1EntityLiving, nms_IMob)) { - nms_AchievementList_$callClinit(); - $this.$addStat(nms_AchievementList_killEnemy, 1); - } -} -function nms_EntityPlayer_setInWeb($this) { - if (!$this.$capabilities.$isFlying) { - $this.$isInWeb = 1; - $this.$fallDistance = 0.0; - } -} -function nms_EntityPlayer_getItemIcon($this, $par1ItemStack, $par2) { - var var$3, $var4; - nms_Item_$callClinit(); - var$3 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$getIconFromDamage($par1ItemStack.$itemDamage); - if ($par1ItemStack.$itemID0 == nms_Item_fishingRod.$itemID && $this.$fishEntity !== null) - var$3 = nms_Item_fishingRod.$theIcon2; - else { - if (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$requiresMultipleRenderPasses()) - return nms_Item_itemsList.data[$par1ItemStack.$itemID0].$getIconFromDamageForRenderPass($par1ItemStack.$itemDamage, $par2); - if ($this.$itemInUse !== null && $par1ItemStack.$itemID0 == nms_Item_bow.$itemID) { - $var4 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$getMaxItemUseDuration($par1ItemStack) - $this.$itemInUseCount | 0; - if ($var4 >= 18) - return nms_Item_bow.$iconArray.data[2]; - if ($var4 > 13) - return nms_Item_bow.$iconArray.data[1]; - if ($var4 > 0) - return nms_Item_bow.$iconArray.data[0]; - } - } - return var$3; -} -function nms_EntityPlayer_getCurrentArmor($this, $par1) { - return $this.$inventory.$armorInventory.data[$par1]; -} -function nms_EntityPlayer_addExperience($this, $par1) { - var var$2, $var2; - var$2 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf(var$2 + $par1 | 0)); - $var2 = 2147483647 - $this.$experienceTotal | 0; - if ($par1 <= $var2) - $var2 = $par1; - $this.$experience = $this.$experience + $var2 / nms_EntityPlayer_xpBarCap($this); - $this.$experienceTotal = $this.$experienceTotal + $var2 | 0; - while ($this.$experience >= 1.0) { - $this.$experience = ($this.$experience - 1.0) * nms_EntityPlayer_xpBarCap($this); - nms_EntityPlayer_addExperienceLevel($this, 1); - $this.$experience = $this.$experience / nms_EntityPlayer_xpBarCap($this); - } -} -function nms_EntityPlayer_addExperienceLevel($this, $par1) { - var $var2; - $this.$experienceLevel = $this.$experienceLevel + $par1 | 0; - if ($this.$experienceLevel < 0) { - $this.$experienceLevel = 0; - $this.$experience = 0.0; - $this.$experienceTotal = 0; - } - if ($par1 > 0 && !($this.$experienceLevel % 5 | 0) && $this.$field_82249_h < $this.$ticksExisted - 100.0) { - $var2 = $this.$experienceLevel > 30 ? 1.0 : $this.$experienceLevel / 30.0; - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(721), $var2 * 0.75, 1.0); - $this.$field_82249_h = $this.$ticksExisted; - } -} -function nms_EntityPlayer_xpBarCap($this) { - return $this.$experienceLevel >= 30 ? 62 + (($this.$experienceLevel - 30 | 0) * 7 | 0) | 0 : $this.$experienceLevel < 15 ? 17 : 17 + (($this.$experienceLevel - 15 | 0) * 3 | 0) | 0; -} -function nms_EntityPlayer_addExhaustion($this, $par1) { - var var$2, var$3; - if (!$this.$capabilities.$disableDamage && !$this.$worldObj.$isRemote) { - var$2 = $this.$foodStats; - $par1 = var$2.$foodExhaustionLevel + $par1; - var$3 = 40.0; - if ($par1 < var$3) - var$3 = $par1; - var$2.$foodExhaustionLevel = var$3; - } -} -function nms_EntityPlayer_getFoodStats($this) { - return $this.$foodStats; -} -function nms_EntityPlayer_canEat($this, $par1) { - return !(!$par1 && !($this.$foodStats.$foodLevel >= 20 ? 0 : 1)) && !$this.$capabilities.$disableDamage ? 1 : 0; -} -function nms_EntityPlayer_shouldHeal($this) { - return $this.$health > 0 && $this.$health < 20 ? 1 : 0; -} -function nms_EntityPlayer_setItemInUse($this, $par1ItemStack, $par2) { - if ($par1ItemStack !== $this.$itemInUse) { - $this.$itemInUse = $par1ItemStack; - $this.$itemInUseCount = $par2; - if (!$this.$worldObj.$isRemote) - nms_Entity_setFlag($this, 4, 1); - } -} -function nms_EntityPlayer_canCurrentToolHarvestBlock($this, $par1, $par2, $par3) { - var $var4, $var5, $var6; - if ($this.$capabilities.$allowEdit) - return 1; - a: { - $var4 = nms_World_getBlockId($this.$worldObj, $par1, $par2, $par3); - if ($var4 > 0) { - nms_Block_$callClinit(); - $var5 = nms_Block_blocksList.data[$var4]; - if ($var5.$blockMaterial.$field_85159_M) - return 1; - if (nms_InventoryPlayer_getCurrentItem($this.$inventory) !== null) { - $var6 = nms_InventoryPlayer_getCurrentItem($this.$inventory); - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var6.$itemID0].$canHarvestBlock($var5)) - break a; - if (nms_Item_itemsList.data[$var6.$itemID0].$getStrVsBlock0($var6, $var5) > 1.0) - break a; - } - } - return 0; - } - return 1; -} -function nms_EntityPlayer_canPlayerEdit($this, $par1, $par2, $par3, $par4, $par5ItemStack) { - if ($this.$capabilities.$allowEdit) - $par1 = 1; - else if ($par5ItemStack === null) - $par1 = 0; - else { - nms_Item_$callClinit(); - $par1 = 1; - } - return $par1; -} -function nms_EntityPlayer_getExperiencePoints($this, $par1EntityPlayer) { - var $var2; - if (nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(719))) - return 0; - $var2 = $this.$experienceLevel * 7 | 0; - if ($var2 > 100) - $var2 = 100; - return $var2; -} -function nms_EntityPlayer_isPlayer($this) { - return 1; -} -function nms_EntityPlayer_getEntityName($this) { - return $this.$username0; -} -function nms_EntityPlayer_func_94062_bN($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 6) != 1 ? 0 : 1; -} -function nms_EntityPlayer_func_94059_bO($this) { - return 1; -} -function nms_EntityPlayer_canPickUpLoot($this) { - return 0; -} -function nms_EntityPlayer_canTriggerWalking($this) { - return $this.$capabilities.$isFlying ? 0 : 1; -} -function nms_EntityPlayer_getCommandSenderName($this) { - return $this.$username0; -} -function nms_EntityPlayer_getTranslator($this) { - return nms_StringTranslate_instance; -} -function nms_EntityPlayer_getInventoryEnderChest($this) { - return $this.$theInventoryEnderChest; -} -function nms_EntityPlayer_getCurrentItemOrArmor($this, $par1) { - return !$par1 ? nms_InventoryPlayer_getCurrentItem($this.$inventory) : $this.$inventory.$armorInventory.data[$par1 - 1 | 0]; -} -function nms_EntityPlayer_getHeldItem($this) { - return nms_InventoryPlayer_getCurrentItem($this.$inventory); -} -function nms_EntityPlayer_setCurrentItemOrArmor($this, $par1, $par2ItemStack) { - $this.$inventory.$armorInventory.data[$par1] = $par2ItemStack; -} -function nms_EntityPlayer_func_98034_c($this, $par1EntityPlayer) { - var $var2; - if (!(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 32) ? 0 : 1)) - return 0; - $var2 = nms_Scoreboard_getPlayersTeam($this.$worldObj.$worldScoreboard, $this.$username0); - return $var2 !== null && $par1EntityPlayer !== null && nms_Scoreboard_getPlayersTeam($par1EntityPlayer.$worldObj.$worldScoreboard, $par1EntityPlayer.$username0) === $var2 && $var2.$field_98301_h ? 0 : 1; -} -function nms_EntityPlayer_getLastActiveItems($this) { - return $this.$inventory.$armorInventory; -} -function nms_EntityPlayer_getHideCape0($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 2) ? 0 : 1; -} -function nms_EntityPlayer_func_96092_aw($this) { - return $this.$capabilities.$isFlying ? 0 : 1; -} -function nms_EntityPlayer_getWorldScoreboard($this) { - return $this.$worldObj.$worldScoreboard; -} -function nms_EntityPlayer_getTeam($this) { - return nms_Scoreboard_getPlayersTeam($this.$worldObj.$worldScoreboard, $this.$username0); -} -function nms_EntityPlayer_getTranslatedEntityName($this) { - var var$1, var$2, var$3, var$4; - var$1 = nms_Scoreboard_getPlayersTeam($this.$worldObj.$worldScoreboard, $this.$username0); - var$2 = $this.$username0; - if (var$1 !== null) { - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - var$4 = var$1.$field_96674_e; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$4); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$2); - var$1 = var$1.$field_96671_f; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$1); - var$2 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - } - return var$2; -} -function nlea_Tessellator() { - var a = this; jl_Object.call(a); - a.$intBuffer = null; - a.$floatBuffer = null; - a.$vertexCount = 0; - a.$textureU = 0.0; - a.$textureV = 0.0; - a.$brightness = 0; - a.$color0 = 0; - a.$hasColor = 0; - a.$hasTexture = 0; - a.$hasBrightness = 0; - a.$hasNormals = 0; - a.$rawBufferIndex = 0; - a.$addedVertices = 0; - a.$isColorDisabled = 0; - a.$drawMode = 0; - a.$xOffset = 0.0; - a.$yOffset = 0.0; - a.$zOffset = 0.0; - a.$normal = 0; - a.$isDrawing = 0; - a.$useVBO = 0; - a.$bufferSize = 0; -} -var nlea_Tessellator_instance = null; -function nlea_Tessellator_$callClinit() { - nlea_Tessellator_$callClinit = $rt_eraseClinit(nlea_Tessellator); - nlea_Tessellator__clinit_(); -} -function nlea_Tessellator__init_(var_0) { - var var_1 = new nlea_Tessellator(); - nlea_Tessellator__init_0(var_1, var_0); - return var_1; -} -function nlea_Tessellator__init_0($this, $par1) { - var $a; - nlea_Tessellator_$callClinit(); - $this.$vertexCount = 0; - $this.$hasColor = 0; - $this.$hasTexture = 0; - $this.$hasBrightness = 0; - $this.$hasNormals = 0; - $this.$rawBufferIndex = 0; - $this.$addedVertices = 0; - $this.$isColorDisabled = 0; - $this.$isDrawing = 0; - $this.$useVBO = 0; - $this.$bufferSize = $par1; - $a = new ArrayBuffer($par1 * 4 | 0); - $this.$intBuffer = new Int32Array($a); - $this.$floatBuffer = new Float32Array($a); -} -function nlea_Tessellator_draw($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, $var1; - if (!$this.$isDrawing) - return 0; - $this.$isDrawing = 0; - if ($this.$vertexCount > 0) { - if ($this.$hasTexture) - nleg_EaglerAdapterGL30_glEnableVertexAttrib(82); - if ($this.$hasColor) - nleg_EaglerAdapterGL30_glEnableVertexAttrib(84); - if ($this.$hasNormals) - nleg_EaglerAdapterGL30_glEnableVertexAttrib(87); - if ($this.$hasBrightness) { - a: { - nleg_EaglerAdapterGL30_$callClinit(); - switch (100) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_selectedClientTex = 1; - break a; - default: - 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(238)); - 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; - } - nleg_EaglerAdapterGL30_selectedClientTex = 0; - } - b: { - nleg_EaglerAdapterGL30_glEnableVertexAttrib(82); - switch (99) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_selectedClientTex = 1; - break b; - default: - 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(238)); - 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 b; - } - nleg_EaglerAdapterGL30_selectedClientTex = 0; - } - } - var$5 = $this.$drawMode; - var$6 = $this.$vertexCount; - var$2 = $this.$intBuffer.buffer; - var$4 = $this.$vertexCount * 8 | 0; - nleg_EaglerAdapterGL30_glDrawArrays(var$5, 0, var$6, new Int32Array(var$2, 0, var$4)); - if ($this.$hasTexture) - nleg_EaglerAdapterGL30_glDisableVertexAttrib(82); - if ($this.$hasColor) - nleg_EaglerAdapterGL30_glDisableVertexAttrib(84); - if ($this.$hasNormals) - nleg_EaglerAdapterGL30_glDisableVertexAttrib(87); - if ($this.$hasBrightness) { - c: { - switch (100) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_selectedClientTex = 1; - break c; - default: - 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(238)); - 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 c; - } - nleg_EaglerAdapterGL30_selectedClientTex = 0; - } - d: { - nleg_EaglerAdapterGL30_glDisableVertexAttrib(82); - switch (99) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_selectedClientTex = 1; - break d; - default: - if (jl_System_errCache === null) { - var$1 = new ji_PrintStream; - var$2 = new jl_ConsoleOutputStreamStderr; - ji_OutputStream__init_0(var$2); - ji_PrintStream__init_0(var$1, var$2, 0); - jl_System_errCache = var$1; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(238)); - break d; - } - nleg_EaglerAdapterGL30_selectedClientTex = 0; - } - } - } - $var1 = $this.$rawBufferIndex * 4 | 0; - $this.$vertexCount = 0; - $this.$rawBufferIndex = 0; - $this.$addedVertices = 0; - return $var1; -} -function nlea_Tessellator_startDrawingQuads($this) { - nlea_Tessellator_startDrawing($this, 98); -} -function nlea_Tessellator_startDrawing($this, $par1) { - if ($this.$isDrawing) - nlea_Tessellator_draw($this); - $this.$isDrawing = 1; - $this.$vertexCount = 0; - $this.$rawBufferIndex = 0; - $this.$addedVertices = 0; - $this.$drawMode = $par1; - $this.$hasNormals = 0; - $this.$hasColor = 0; - $this.$hasTexture = 0; - $this.$hasBrightness = 0; - $this.$isColorDisabled = 0; -} -function nlea_Tessellator_setTextureUV($this, $par1, $par3) { - $this.$hasTexture = 1; - $this.$textureU = $par1; - $this.$textureV = $par3; -} -function nlea_Tessellator_setBrightness($this, $par1) { - $this.$hasBrightness = 1; - $this.$brightness = $par1; -} -function nlea_Tessellator_setColorOpaque_F($this, $par1, $par2, $par3) { - nlea_Tessellator_setColorRGBA($this, $par1 * 255.0 | 0, $par2 * 255.0 | 0, $par3 * 255.0 | 0, 255); -} -function nlea_Tessellator_setColorRGBA_F($this, $par1, $par2, $par3, $par4) { - nlea_Tessellator_setColorRGBA($this, $par1 * 255.0 | 0, $par2 * 255.0 | 0, $par3 * 255.0 | 0, $par4 * 255.0 | 0); -} -function nlea_Tessellator_setColorOpaque($this, $par1, $par2, $par3) { - nlea_Tessellator_setColorRGBA($this, $par1, $par2, $par3, 255); -} -function nlea_Tessellator_setColorRGBA($this, $par1, $par2, $par3, $par4) { - if (!$this.$isColorDisabled) { - if ($par1 > 255) - $par1 = 255; - if ($par2 > 255) - $par2 = 255; - if ($par3 > 255) - $par3 = 255; - if ($par4 > 255) - $par4 = 255; - if ($par1 < 0) - $par1 = 0; - if ($par2 < 0) - $par2 = 0; - if ($par3 < 0) - $par3 = 0; - if ($par4 < 0) - $par4 = 0; - $this.$hasColor = 1; - $this.$color0 = $par4 << 24 | $par3 << 16 | $par2 << 8 | $par1; - } -} -function nlea_Tessellator_addVertexWithUV($this, $par1, $par3, $par5, $par7, $par9) { - $this.$hasTexture = 1; - $this.$textureU = $par7; - $this.$textureV = $par9; - nlea_Tessellator_addVertex($this, $par1, $par3, $par5); -} -function nlea_Tessellator_addVertex($this, $par1, $par3, $par5) { - var $bufferIndex, $intBuffer0, $floatBuffer0, var$7, var$8, var$9; - if ($this.$addedVertices > 65534) - return; - $this.$addedVertices = $this.$addedVertices + 1 | 0; - $this.$vertexCount = $this.$vertexCount + 1 | 0; - $bufferIndex = $this.$rawBufferIndex; - $intBuffer0 = $this.$intBuffer; - $floatBuffer0 = $this.$floatBuffer; - var$7 = $bufferIndex + 0 | 0; - var$8 = $par1 + $this.$xOffset; - $floatBuffer0[var$7] = var$8; - var$7 = $bufferIndex + 1 | 0; - var$8 = $par3 + $this.$yOffset; - $floatBuffer0[var$7] = var$8; - var$7 = $bufferIndex + 2 | 0; - var$8 = $par5 + $this.$zOffset; - $floatBuffer0[var$7] = var$8; - if ($this.$hasTexture) { - var$7 = $bufferIndex + 3 | 0; - var$8 = $this.$textureU; - $floatBuffer0[var$7] = var$8; - var$7 = $bufferIndex + 4 | 0; - var$8 = $this.$textureV; - $floatBuffer0[var$7] = var$8; - } - if ($this.$hasColor) { - var$7 = $bufferIndex + 5 | 0; - var$9 = $this.$color0; - $intBuffer0[var$7] = var$9; - } - if ($this.$hasNormals) { - var$7 = $bufferIndex + 6 | 0; - var$9 = $this.$normal; - $intBuffer0[var$7] = var$9; - } - if ($this.$hasBrightness) { - $bufferIndex = $bufferIndex + 7 | 0; - var$7 = $this.$brightness; - $intBuffer0[$bufferIndex] = var$7; - } - $this.$rawBufferIndex = $this.$rawBufferIndex + 8 | 0; -} -function nlea_Tessellator_setColorOpaque_I($this, $par1) { - nlea_Tessellator_setColorRGBA($this, $par1 >> 16 & 255, $par1 >> 8 & 255, $par1 & 255, 255); -} -function nlea_Tessellator_setColorRGBA_I($this, $par1, $par2) { - nlea_Tessellator_setColorRGBA($this, $par1 >> 16 & 255, $par1 >> 8 & 255, $par1 & 255, $par2); -} -function nlea_Tessellator_disableColor($this) { - $this.$isColorDisabled = 1; -} -function nlea_Tessellator_setNormal($this, $par1, $par2, $par3) { - var $len; - $this.$hasNormals = 1; - $len = jl_Math_sqrt($par1 * $par1 + $par2 * $par2 + $par3 * $par3); - $this.$normal = (($par1 / $len * 128.0 | 0) + 127 | 0) & 255 | ((($par2 / $len * 128.0 | 0) + 127 | 0) & 255) << 8 | ((($par3 / $len * 128.0 | 0) + 127 | 0) & 255) << 16; -} -function nlea_Tessellator_setTranslation($this, $par1, $par3, $par5) { - $this.$xOffset = $par1; - $this.$yOffset = $par3; - $this.$zOffset = $par5; -} -function nlea_Tessellator_addTranslation($this, $par1, $par2, $par3) { - $this.$xOffset = $this.$xOffset + $par1; - $this.$yOffset = $this.$yOffset + $par2; - $this.$zOffset = $this.$zOffset + $par3; -} -function nlea_Tessellator__clinit_() { - nlea_Tessellator_instance = nlea_Tessellator__init_(525000); -} -function jt_Format() { - jl_Object.call(this); -} -function jt_NumberFormat() { - var a = this; jt_Format.call(a); - a.$groupingUsed = 0; - a.$parseIntegerOnly = 0; - a.$maximumIntegerDigits = 0; - a.$minimumIntegerDigits = 0; - a.$maximumFractionDigits = 0; - a.$minimumFractionDigits = 0; - a.$roundingMode = null; - a.$currency = null; -} -function jt_NumberFormat_getCurrency($this) { - return $this.$currency; -} -function jt_NumberFormat_format($this, $value) { - var var$2, var$3; - var$2 = new jl_StringBuffer; - var$2.$buffer = $rt_createCharArray(16); - var$3 = new jt_FieldPosition; - var$3.$myField = 0; - var$2 = jt_DecimalFormat_format($this, $value, var$2, var$3); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -} -function jt_NumberFormat_getIntegerInstance($locale) { - var var$2, $pattern, $format, var$5; - var$2 = $locale.$languageCode; - $pattern = $locale.$countryCode; - if (otciu_CLDRHelper_$$metadata$$17 === null) - otciu_CLDRHelper_$$metadata$$17 = otciu_CLDRHelper_getNumberFormatMap$$create(); - $pattern = otciu_CLDRHelper_resolveFormatSymbols(otciu_CLDRHelper_$$metadata$$17, var$2, $pattern); - $format = new jt_DecimalFormat; - var$5 = new jt_DecimalFormatSymbols; - var$5.$locale0 = $locale; - jt_DecimalFormatSymbols_initData(var$5); - jt_DecimalFormat__init_1($format, $pattern, var$5); - $format.$parseIntegerOnly = 1; - $format.$minimumFractionDigits = 0; - if ($format.$maximumFractionDigits < $format.$minimumFractionDigits) - $format.$maximumFractionDigits = $format.$minimumFractionDigits; - $format.$maximumFractionDigits = 0; - if ($format.$maximumFractionDigits < $format.$minimumFractionDigits) - $format.$minimumFractionDigits = $format.$maximumFractionDigits; - $format.$decimalSeparatorAlwaysShown = 0; - return $format; -} -function jt_NumberFormat_getMaximumFractionDigits($this) { - return $this.$maximumFractionDigits; -} -function jt_NumberFormat_getMaximumIntegerDigits($this) { - return $this.$maximumIntegerDigits; -} -function jt_NumberFormat_getMinimumFractionDigits($this) { - return $this.$minimumFractionDigits; -} -function jt_NumberFormat_getMinimumIntegerDigits($this) { - return $this.$minimumIntegerDigits; -} -function jt_NumberFormat_setGroupingUsed($this, $value) { - $this.$groupingUsed = $value; -} -function jt_NumberFormat_setMaximumFractionDigits($this, $value) { - if ($value < 0) - $value = 0; - $this.$maximumFractionDigits = $value; - if ($this.$maximumFractionDigits < $this.$minimumFractionDigits) - $this.$minimumFractionDigits = $this.$maximumFractionDigits; -} -function jt_NumberFormat_setMaximumIntegerDigits($this, $value) { - if ($value < 0) - $value = 0; - $this.$maximumIntegerDigits = $value; - if ($this.$maximumIntegerDigits < $this.$minimumIntegerDigits) - $this.$minimumIntegerDigits = $this.$maximumIntegerDigits; -} -function jt_NumberFormat_setMinimumFractionDigits($this, $value) { - if ($value < 0) - $value = 0; - $this.$minimumFractionDigits = $value; - if ($this.$maximumFractionDigits < $this.$minimumFractionDigits) - $this.$maximumFractionDigits = $this.$minimumFractionDigits; -} -function jt_NumberFormat_setMinimumIntegerDigits($this, $value) { - if ($value < 0) - $value = 0; - $this.$minimumIntegerDigits = $value; - if ($this.$maximumIntegerDigits < $this.$minimumIntegerDigits) - $this.$maximumIntegerDigits = $this.$minimumIntegerDigits; -} -function jt_NumberFormat_setParseIntegerOnly($this, $value) { - $this.$parseIntegerOnly = $value; -} -function jt_NumberFormat_getRoundingMode($this) { - return $this.$roundingMode; -} -function jt_DecimalFormat() { - var a = this; jt_NumberFormat.call(a); - a.$symbols = null; - a.$positivePrefix = null; - a.$negativePrefix = null; - a.$positiveSuffix = null; - a.$negativeSuffix = null; - a.$multiplier = 0; - a.$groupingSize = 0; - a.$decimalSeparatorAlwaysShown = 0; - a.$exponentDigits = 0; - a.$pattern = null; -} -var jt_DecimalFormat_POW10_ARRAY = null; -var jt_DecimalFormat_POW10_INT_ARRAY = null; -var jt_DecimalFormat_POW10_FRAC_ARRAY = null; -var jt_DecimalFormat_POWM10_FRAC_ARRAY = null; -function jt_DecimalFormat__init_2() { - var var_0 = new jt_DecimalFormat(); - jt_DecimalFormat__init_(var_0); - return var_0; -} -function jt_DecimalFormat__init_0(var_0) { - var var_1 = new jt_DecimalFormat(); - jt_DecimalFormat__init_3(var_1, var_0); - return var_1; -} -function jt_DecimalFormat__init_4(var_0, var_1) { - var var_2 = new jt_DecimalFormat(); - jt_DecimalFormat__init_1(var_2, var_0, var_1); - return var_2; -} -function jt_DecimalFormat__init_($this) { - var var$1, var$2, var$3; - var$1 = ju_Locale_defaultLocale.$languageCode; - var$2 = ju_Locale_defaultLocale.$countryCode; - if (otciu_CLDRHelper_$$metadata$$17 === null) - otciu_CLDRHelper_$$metadata$$17 = otciu_CLDRHelper_getNumberFormatMap$$create(); - var$2 = otciu_CLDRHelper_resolveFormatSymbols(otciu_CLDRHelper_$$metadata$$17, var$1, var$2); - var$3 = new jt_DecimalFormatSymbols; - var$3.$locale0 = ju_Locale_defaultLocale; - jt_DecimalFormatSymbols_initData(var$3); - jt_DecimalFormat__init_1($this, var$2, var$3); -} -function jt_DecimalFormat__init_3($this, $pattern) { - var var$2; - var$2 = new jt_DecimalFormatSymbols; - var$2.$locale0 = ju_Locale_defaultLocale; - jt_DecimalFormatSymbols_initData(var$2); - jt_DecimalFormat__init_1($this, $pattern, var$2); -} -function jt_DecimalFormat__init_1($this, $pattern, $value) { - var var$3, var$4, var$5, $$je; - $this.$groupingUsed = 1; - $this.$maximumIntegerDigits = 40; - $this.$minimumIntegerDigits = 1; - $this.$maximumFractionDigits = 3; - $this.$roundingMode = jm_RoundingMode_HALF_EVEN; - $this.$currency = ju_Currency_getInstance(ju_Locale_defaultLocale); - $this.$positivePrefix = $rt_createArray(jt_DecimalFormat$FormatField, 0); - var$3 = $rt_createArray(jt_DecimalFormat$FormatField, 1); - var$4 = var$3.data; - var$5 = new jt_DecimalFormat$TextField; - var$5.$text0 = $rt_s(722); - var$4[0] = var$5; - $this.$negativePrefix = var$3; - $this.$positiveSuffix = $rt_createArray(jt_DecimalFormat$FormatField, 0); - $this.$negativeSuffix = $rt_createArray(jt_DecimalFormat$FormatField, 0); - $this.$multiplier = 1; - a: { - try { - $value = jl_Object_clone($value); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_CloneNotSupportedException) { - $value = $$je; - break a; - } else { - throw $$e; - } - } - $this.$symbols = $value; - $value = new jt_DecimalFormatParser; - jt_DecimalFormatParser_parse($value, $pattern); - jt_DecimalFormatParser_apply($value, $this); - $this.$pattern = $pattern; - return; - } - var$5 = new jl_AssertionError; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - var$5.$message = $rt_s(723); - var$5.$cause = $value; - $rt_throw(var$5); -} -function jt_DecimalFormat_applyPattern($this, $pattern) { - var $parser; - $parser = new jt_DecimalFormatParser; - jt_DecimalFormatParser_parse($parser, $pattern); - jt_DecimalFormatParser_apply($parser, $this); - $this.$pattern = $pattern; -} -function jt_DecimalFormat_setMultiplier($this, $newValue) { - $this.$multiplier = $newValue; -} -function jt_DecimalFormat_getGroupingSize($this) { - return $this.$groupingSize; -} -function jt_DecimalFormat_setGroupingSize($this, $newValue) { - $this.$groupingSize = $newValue; -} -function jt_DecimalFormat_isDecimalSeparatorAlwaysShown($this) { - return $this.$decimalSeparatorAlwaysShown; -} -function jt_DecimalFormat_setDecimalSeparatorAlwaysShown($this, $newValue) { - $this.$decimalSeparatorAlwaysShown = $newValue; -} -function jt_DecimalFormat_format($this, $value, $buffer, $field) { - var var$4, var$5, var$6, $me, var$8; - if (isNaN($value) ? 1 : 0) { - var$4 = $this.$positivePrefix.data; - var$5 = var$4.length; - var$6 = 0; - while (var$6 < var$5) { - var$4[var$6].$render($this, $buffer); - var$6 = var$6 + 1 | 0; - } - $field = $this.$symbols.$nan; - jl_AbstractStringBuilder_insert($buffer, $buffer.$length, $field); - jt_DecimalFormat_appendSuffix($this, 1, $buffer); - } else if (!(!isFinite($value) ? 1 : 0)) { - $me = jt_DecimalFormat_getMantissaAndExponent($this, $value); - if ($this.$exponentDigits <= 0) - jt_DecimalFormat_formatRegular($this, $me.$mantissa1, $me.$exponent1, $buffer); - else - jt_DecimalFormat_formatExponent($this, $me.$mantissa1, $me.$exponent1, $buffer); - } else { - var$8 = $rt_compare($value, 0.0); - var$4 = (var$8 <= 0 ? $this.$negativePrefix : $this.$positivePrefix).data; - var$5 = var$4.length; - var$6 = 0; - while (var$6 < var$5) { - var$4[var$6].$render($this, $buffer); - var$6 = var$6 + 1 | 0; - } - $field = $this.$symbols.$infinity; - jl_AbstractStringBuilder_insert($buffer, $buffer.$length, $field); - jt_DecimalFormat_appendSuffix($this, var$8 <= 0 ? 0 : 1, $buffer); - } - return $buffer; -} -function jt_DecimalFormat_formatExponent($this, $mantissa, $exponent, $buffer) { - var $positive, $visibleExponent, $mantissaLength, $multiplierDigits, $significantSize, $exponentMultiplier, $delta, var$11, $exponentPos, $i, $mantissaDigitMask, $requiredSize, $limit, $count, var$18, $exponentLength, $exponentLength_0, $exponentDigit; - $positive = Long_lt($mantissa, Long_ZERO) ? 0 : 1; - $visibleExponent = jt_DecimalFormat_fastLn10($this, $mantissa); - $mantissaLength = $visibleExponent + 1 | 0; - if ($this.$multiplier != 1) { - $multiplierDigits = jt_DecimalFormat_fastLn100($this, $this.$multiplier); - if (jt_DecimalFormat_POW10_INT_ARRAY.data[$multiplierDigits] == $this.$multiplier) - $exponent = $exponent + $multiplierDigits | 0; - else if (Long_lt($mantissa, Long_div(new Long(4294967295, 2147483647), Long_fromInt($this.$multiplier))) && Long_gt($mantissa, Long_div(new Long(0, 2147483648), Long_fromInt($this.$multiplier)))) { - $mantissa = Long_mul($mantissa, Long_fromInt($this.$multiplier)); - $positive = Long_lt($mantissa, Long_ZERO) ? 0 : 1; - $visibleExponent = jt_DecimalFormat_fastLn10($this, $mantissa); - $mantissaLength = $visibleExponent + 1 | 0; - } else { - jt_DecimalFormat_formatExponent0($this, jm_BigDecimal__init_(jm_BigInteger_valueOf($mantissa), $visibleExponent - $exponent | 0), $buffer); - return; - } - } - $significantSize = $this.$minimumIntegerDigits + $this.$maximumFractionDigits | 0; - $exponentMultiplier = ($this.$maximumIntegerDigits - $this.$minimumIntegerDigits | 0) + 1 | 0; - if ($exponentMultiplier > 1) { - $delta = $exponent - $rt_imul($exponent / $exponentMultiplier | 0, $exponentMultiplier) | 0; - $exponent = $exponent - $delta | 0; - $exponentMultiplier = $visibleExponent - $delta | 0; - } else { - $exponent = $exponent - ($this.$minimumIntegerDigits - 1 | 0) | 0; - $exponentMultiplier = $visibleExponent - ($this.$minimumIntegerDigits - 1 | 0) | 0; - } - if ($significantSize < 0) - $mantissa = Long_ZERO; - else if ($significantSize < $mantissaLength) - $mantissa = jt_DecimalFormat_applyRounding($this, $mantissa, $mantissaLength, $significantSize); - var$11 = (!$positive ? $this.$negativePrefix : $this.$positivePrefix).data; - $delta = var$11.length; - $visibleExponent = 0; - while ($visibleExponent < $delta) { - var$11[$visibleExponent].$render($this, $buffer); - $visibleExponent = $visibleExponent + 1 | 0; - } - $exponentPos = 0; - if ($exponentMultiplier > $exponentPos) - $exponentPos = $exponentMultiplier; - $i = $mantissaLength - 1 | 0; - while ($i >= $exponentPos) { - $mantissaDigitMask = jt_DecimalFormat_POW10_ARRAY.data[$i]; - $delta = Long_div($mantissa, $mantissaDigitMask).lo; - if ($delta <= 0) - $delta = -$delta; - $multiplierDigits = ($this.$symbols.$zeroDigit + $delta | 0) & 65535; - $delta = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $delta, $delta + 1 | 0); - $buffer.$buffer.data[$delta] = $multiplierDigits; - $mantissa = Long_rem($mantissa, $mantissaDigitMask); - $i = $i + (-1) | 0; - } - $i = $exponentPos - 1 | 0; - while ($i >= $exponentMultiplier) { - $visibleExponent = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $visibleExponent, $visibleExponent + 1 | 0); - $buffer.$buffer.data[$visibleExponent] = 48; - $i = $i + (-1) | 0; - } - a: { - $delta = $significantSize - ($mantissaLength - $exponentMultiplier | 0) | 0; - $requiredSize = $delta - ($this.$maximumFractionDigits - $this.$minimumFractionDigits | 0) | 0; - if ($requiredSize <= 0) { - if (Long_eq($mantissa, Long_ZERO)) - break a; - if ($delta <= 0) - break a; - } - $exponentPos = $this.$symbols.$decimalSeparator; - $visibleExponent = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $visibleExponent, $visibleExponent + 1 | 0); - $buffer.$buffer.data[$visibleExponent] = $exponentPos; - $limit = $exponentMultiplier - $delta | 0; - if (0 > $limit) - $limit = 0; - $count = 0; - $i = $exponentMultiplier - 1 | 0; - b: { - while ($i >= $limit) { - $mantissaDigitMask = jt_DecimalFormat_POW10_ARRAY.data[$i]; - $delta = Long_div($mantissa, $mantissaDigitMask).lo; - if ($delta <= 0) - $delta = -$delta; - $visibleExponent = ($this.$symbols.$zeroDigit + $delta | 0) & 65535; - $exponentMultiplier = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $exponentMultiplier, $exponentMultiplier + 1 | 0); - $buffer.$buffer.data[$exponentMultiplier] = $visibleExponent; - $mantissa = Long_rem($mantissa, $mantissaDigitMask); - $count = $count + 1 | 0; - if (Long_eq($mantissa, Long_ZERO)) - break b; - $i = $i + (-1) | 0; - } - } - while (true) { - $exponentMultiplier = $count + 1 | 0; - if ($count >= $requiredSize) - break a; - jl_StringBuffer_append($buffer, 48); - $count = $exponentMultiplier; - } - } - var$18 = $this.$symbols.$exponentSeparator; - jl_AbstractStringBuilder_insert($buffer, $buffer.$length, var$18); - if ($exponent < 0) { - $exponent = -$exponent; - jl_StringBuffer_append($buffer, $this.$symbols.$minusSign); - } - $exponentLength = $this.$exponentDigits; - $exponentLength_0 = jt_DecimalFormat_fastLn100($this, $exponent) + 1 | 0; - if ($exponentLength > $exponentLength_0) - $exponentLength_0 = $exponentLength; - $i = $exponentLength_0 - 1 | 0; - while ($i >= 0) { - $exponentDigit = jt_DecimalFormat_POW10_INT_ARRAY.data[$i]; - jl_StringBuffer_append($buffer, jt_DecimalFormat_forDigit($this, $exponent / $exponentDigit | 0)); - $exponent = $exponent % $exponentDigit | 0; - $i = $i + (-1) | 0; - } - jt_DecimalFormat_appendSuffix($this, $positive, $buffer); -} -function jt_DecimalFormat_formatRegular($this, $mantissa, $exponent, $buffer) { - var $positive, $mantissaLength, $fracZeros, $multiplierDigits, $roundingPos, var$9, $digitPos, $i, $intLength, $mantissaDigit, $i_0, $significantIntDigits, $mantissaDigitMask, $significantFracDigits; - $positive = Long_lt($mantissa, Long_ZERO) ? 0 : 1; - $mantissaLength = jt_DecimalFormat_fastLn10($this, $mantissa) + 1 | 0; - $fracZeros = $exponent + 1 | 0; - if ($this.$multiplier != 1) { - $multiplierDigits = jt_DecimalFormat_fastLn100($this, $this.$multiplier); - if (jt_DecimalFormat_POW10_INT_ARRAY.data[$multiplierDigits] == $this.$multiplier) - $fracZeros = $fracZeros + $multiplierDigits | 0; - else if (Long_lt($mantissa, Long_div(new Long(4294967295, 2147483647), Long_fromInt($this.$multiplier))) && Long_gt($mantissa, Long_div(new Long(0, 2147483648), Long_fromInt($this.$multiplier)))) { - $mantissa = Long_mul($mantissa, Long_fromInt($this.$multiplier)); - $mantissaLength = jt_DecimalFormat_fastLn10($this, $mantissa) + 1 | 0; - } else { - jt_DecimalFormat_formatRegular0($this, jm_BigDecimal__init_(jm_BigInteger_valueOf($mantissa), $mantissaLength - $fracZeros | 0), $buffer); - return; - } - } - $roundingPos = $fracZeros + $this.$maximumFractionDigits | 0; - if ($roundingPos < 0) - $mantissa = Long_ZERO; - else if ($roundingPos < $mantissaLength) - $mantissa = jt_DecimalFormat_applyRounding($this, $mantissa, $mantissaLength, $roundingPos); - var$9 = (!$positive ? $this.$negativePrefix : $this.$positivePrefix).data; - $digitPos = var$9.length; - $i = 0; - while ($i < $digitPos) { - var$9[$i].$render($this, $buffer); - $i = $i + 1 | 0; - } - $intLength = 0; - if ($intLength <= $fracZeros) - $intLength = $fracZeros; - $digitPos = $this.$minimumIntegerDigits; - if ($intLength > $digitPos) - $digitPos = $intLength; - $digitPos = $digitPos - 1 | 0; - $i = $this.$minimumIntegerDigits - 1 | 0; - while ($i >= $intLength) { - $mantissaDigit = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $mantissaDigit, $mantissaDigit + 1 | 0); - $buffer.$buffer.data[$mantissaDigit] = 48; - if ($this.$groupingSize > 0 && !($digitPos % $this.$groupingSize | 0) && $digitPos > 0) { - $i_0 = $this.$symbols.$groupingSeparator; - $exponent = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $exponent, $exponent + 1 | 0); - $buffer.$buffer.data[$exponent] = $i_0; - } - $digitPos = $digitPos + (-1) | 0; - $i = $i + (-1) | 0; - } - $significantIntDigits = $mantissaLength >= $intLength ? $intLength : $mantissaLength; - $mantissaDigit = $mantissaLength - 1 | 0; - $i = 0; - while ($i < $significantIntDigits) { - var$9 = jt_DecimalFormat_POW10_ARRAY.data; - $exponent = $mantissaDigit + (-1) | 0; - $mantissaDigitMask = var$9[$mantissaDigit]; - jl_StringBuffer_append($buffer, jt_DecimalFormat_forDigit($this, jl_Math_abs(Long_div($mantissa, $mantissaDigitMask).lo))); - $mantissa = Long_rem($mantissa, $mantissaDigitMask); - if ($this.$groupingSize > 0 && !($digitPos % $this.$groupingSize | 0) && $digitPos > 0) - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getGroupingSeparator($this.$symbols)); - $digitPos = $digitPos + (-1) | 0; - $i = $i + 1 | 0; - $mantissaDigit = $exponent; - } - $exponent = $intLength - $significantIntDigits | 0; - $i_0 = 0; - while ($i_0 < $exponent) { - jl_StringBuffer_append($buffer, 48); - if ($this.$groupingSize > 0 && !($digitPos % $this.$groupingSize | 0) && $digitPos > 0) - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getGroupingSeparator($this.$symbols)); - $digitPos = $digitPos + (-1) | 0; - $i_0 = $i_0 + 1 | 0; - } - a: { - if (Long_eq($mantissa, Long_ZERO)) { - if (jt_NumberFormat_getMinimumFractionDigits($this)) { - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getDecimalSeparator($this.$symbols)); - $i = 0; - while ($i < jt_NumberFormat_getMinimumFractionDigits($this)) { - jl_StringBuffer_append($buffer, 48); - $i = $i + 1 | 0; - } - } else if (jt_DecimalFormat_isDecimalSeparatorAlwaysShown($this)) - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getDecimalSeparator($this.$symbols)); - } else { - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getDecimalSeparator($this.$symbols)); - $fracZeros = jl_Math_min0(jt_NumberFormat_getMaximumFractionDigits($this), jl_Math_max(0, -$fracZeros)); - $i = 0; - $i_0 = 0; - while ($i_0 < $fracZeros) { - $i = $i + 1 | 0; - jl_StringBuffer_append($buffer, 48); - $i_0 = $i_0 + 1 | 0; - } - $significantFracDigits = jl_Math_min0(jt_NumberFormat_getMaximumFractionDigits($this) - $i | 0, $mantissaDigit); - $i_0 = 0; - b: { - while (true) { - if ($i_0 >= $significantFracDigits) - break b; - if (Long_eq($mantissa, Long_ZERO)) - break; - $i = $i + 1 | 0; - $mantissaDigitMask = jt_DecimalFormat_POW10_ARRAY.data[$mantissaDigit]; - jl_StringBuffer_append($buffer, jt_DecimalFormat_forDigit($this, jl_Math_abs(Long_div($mantissa, $mantissaDigitMask).lo))); - $mantissa = Long_rem($mantissa, $mantissaDigitMask); - $mantissaDigit = $mantissaDigit + (-1) | 0; - $i_0 = $i_0 + 1 | 0; - } - } - while (true) { - if ($i >= jt_NumberFormat_getMinimumFractionDigits($this)) - break a; - jl_StringBuffer_append($buffer, 48); - $i = $i + 1 | 0; - } - } - } - jt_DecimalFormat_appendSuffix($this, $positive, $buffer); -} -function jt_DecimalFormat_formatExponent0($this, $value, $buffer) { - var $positive, $mantissaLength, $i, $exponent, var$7, $significantSize, $exponentMultiplier, $delta, $parts, $requiredSize, $limit, $exponentPos, $mantissaDigitMask, var$16, $limit_0, $i_0, $count, $exponentDigit; - if ($this.$multiplier != 1) - $value = jm_BigDecimal_multiply($value, jm_BigDecimal_valueOf(Long_fromInt($this.$multiplier))); - jm_BigDecimal_$callClinit(); - $positive = jm_BigDecimal_compareTo($value, jm_BigDecimal_ZERO) < 0 ? 0 : 1; - $mantissaLength = jm_BigDecimal_precision($value); - $i = $mantissaLength - 1 | 0; - $exponent = $i - $value.$scale1 | 0; - if ($value.$intVal === null) - $value.$intVal = jm_BigInteger_valueOf($value.$smallValue); - var$7 = $value.$intVal; - $significantSize = $this.$minimumIntegerDigits + $this.$maximumFractionDigits | 0; - $exponentMultiplier = ($this.$maximumIntegerDigits - $this.$minimumIntegerDigits | 0) + 1 | 0; - if ($exponentMultiplier > 1) { - $delta = $exponent - $rt_imul($exponent / $exponentMultiplier | 0, $exponentMultiplier) | 0; - $exponent = $exponent - $delta | 0; - $exponentMultiplier = $i - $delta | 0; - } else { - $exponent = $exponent - ($this.$minimumIntegerDigits - 1 | 0) | 0; - $exponentMultiplier = $i - ($this.$minimumIntegerDigits - 1 | 0) | 0; - } - if ($significantSize < 0) - var$7 = jm_BigInteger_ZERO; - else if ($significantSize < $mantissaLength) - var$7 = jt_DecimalFormat_applyRounding0($this, var$7, $mantissaLength, $significantSize); - $parts = (!$positive ? $this.$negativePrefix : $this.$positivePrefix).data; - $requiredSize = $parts.length; - $limit = 0; - while ($limit < $requiredSize) { - $parts[$limit].$render($this, $buffer); - $limit = $limit + 1 | 0; - } - $exponentPos = 0; - if ($exponentMultiplier > $exponentPos) - $exponentPos = $exponentMultiplier; - $mantissaDigitMask = jm_BigInteger_ONE; - $value = jm_BigInteger_TEN; - $requiredSize = $i; - while ($requiredSize) { - if ($requiredSize & 1) { - if (!$value.$sign1) - $mantissaDigitMask = jm_BigInteger_ZERO; - else if (!$mantissaDigitMask.$sign1) - $mantissaDigitMask = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissaDigitMask = jm_Multiplication_karatsuba($mantissaDigitMask, $value); - } - } - if (!$value.$sign1) - $value = jm_BigInteger_ZERO; - else if (!$value.$sign1) - $value = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $value = jm_Multiplication_karatsuba($value, $value); - } - $requiredSize = $requiredSize >>> 1; - } - while ($i >= $exponentPos) { - var$16 = jm_BigInteger_divideAndRemainder(var$7, $mantissaDigitMask).data; - $value = var$16[0]; - $requiredSize = $rt_imul($value.$sign1, $value.$digits.data[0]); - if ($requiredSize <= 0) - $requiredSize = -$requiredSize; - $limit_0 = ($this.$symbols.$zeroDigit + $requiredSize | 0) & 65535; - $requiredSize = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $requiredSize, $requiredSize + 1 | 0); - $buffer.$buffer.data[$requiredSize] = $limit_0; - var$7 = var$16[1]; - $mantissaDigitMask = jm_BigInteger_divide($mantissaDigitMask, jm_BigInteger_TEN); - $i = $i + (-1) | 0; - } - $i_0 = $exponentPos - 1 | 0; - while ($i_0 >= $exponentMultiplier) { - $requiredSize = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $requiredSize, $requiredSize + 1 | 0); - $buffer.$buffer.data[$requiredSize] = 48; - $i_0 = $i_0 + (-1) | 0; - } - a: { - $limit_0 = $significantSize - ($mantissaLength - $exponentMultiplier | 0) | 0; - $requiredSize = $limit_0 - ($this.$maximumFractionDigits - $this.$minimumFractionDigits | 0) | 0; - if ($requiredSize <= 0) { - if (jm_BigInteger_equals(var$7, jm_BigInteger_ZERO)) - break a; - if ($limit_0 <= 0) - break a; - } - $limit = $this.$symbols.$decimalSeparator; - $mantissaLength = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $mantissaLength, $mantissaLength + 1 | 0); - $buffer.$buffer.data[$mantissaLength] = $limit; - $limit_0 = $exponentMultiplier - $limit_0 | 0; - if (0 > $limit_0) - $limit_0 = 0; - $count = 0; - $i = $exponentMultiplier - 1 | 0; - b: { - while ($i >= $limit_0) { - $parts = jm_BigInteger_divideAndRemainder(var$7, $mantissaDigitMask).data; - jl_StringBuffer_append($buffer, jt_DecimalFormat_forDigit($this, jl_Math_abs(jm_BigInteger_intValue($parts[0])))); - var$7 = $parts[1]; - $count = $count + 1 | 0; - if (jm_BigInteger_equals(var$7, jm_BigInteger_ZERO)) - break b; - $mantissaDigitMask = jm_BigInteger_divide($mantissaDigitMask, jm_BigInteger_TEN); - $i = $i + (-1) | 0; - } - } - while (true) { - $limit_0 = $count + 1 | 0; - if ($count >= $requiredSize) - break a; - jl_StringBuffer_append($buffer, 48); - $count = $limit_0; - } - } - jl_StringBuffer_append0($buffer, $this.$symbols.$exponentSeparator); - if ($exponent < 0) { - $exponent = -$exponent; - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getMinusSign($this.$symbols)); - } - $i = jl_Math_max($this.$exponentDigits, jt_DecimalFormat_fastLn100($this, $exponent) + 1 | 0) - 1 | 0; - while ($i >= 0) { - $exponentDigit = jt_DecimalFormat_POW10_INT_ARRAY.data[$i]; - jl_StringBuffer_append($buffer, jt_DecimalFormat_forDigit($this, $exponent / $exponentDigit | 0)); - $exponent = $exponent % $exponentDigit | 0; - $i = $i + (-1) | 0; - } - jt_DecimalFormat_appendSuffix($this, $positive, $buffer); -} -function jt_DecimalFormat_appendSuffix($this, $positive, $buffer) { - var var$3, var$4, var$5; - if (!$positive) { - var$3 = ($this.$negativeSuffix !== null ? $this.$negativeSuffix : $this.$positiveSuffix !== null ? $this.$positiveSuffix : $rt_createArray(jt_DecimalFormat$FormatField, 0)).data; - $positive = var$3.length; - var$4 = 0; - while (var$4 < $positive) { - var$3[var$4].$render($this, $buffer); - var$4 = var$4 + 1 | 0; - } - } else if ($this.$positiveSuffix !== null) { - var$3 = $this.$positiveSuffix.data; - $positive = var$3.length; - var$5 = 0; - while (var$5 < $positive) { - var$3[var$5].$render($this, $buffer); - var$5 = var$5 + 1 | 0; - } - } -} -function jt_DecimalFormat_formatRegular0($this, $value, $buffer) { - var var$3, $positive, $mantissaLength, $exponent, $roundingPos, $parts, $significantIntDigits, $intLength, $digitPos, $i, $mantissaDigitMask, $i_0, $fracZeros, $significantFracDigits; - if ($this.$multiplier != 1) - $value = jm_BigDecimal_multiply($value, jm_BigDecimal_valueOf(Long_fromInt($this.$multiplier))); - if ($value.$intVal === null) - $value.$intVal = jm_BigInteger_valueOf($value.$smallValue); - var$3 = $value.$intVal; - $positive = jm_BigInteger_compareTo(var$3, jm_BigInteger_ZERO) < 0 ? 0 : 1; - $mantissaLength = jm_BigDecimal_precision($value); - $exponent = jm_BigDecimal_precision($value) - $value.$scale1 | 0; - $roundingPos = $exponent + $this.$maximumFractionDigits | 0; - if ($roundingPos < 0) - var$3 = jm_BigInteger_ZERO; - else if ($roundingPos < $mantissaLength) - var$3 = jt_DecimalFormat_applyRounding0($this, var$3, $mantissaLength, $roundingPos); - $parts = (!$positive ? $this.$negativePrefix : $this.$positivePrefix).data; - $roundingPos = $parts.length; - $significantIntDigits = 0; - while ($significantIntDigits < $roundingPos) { - $parts[$significantIntDigits].$render($this, $buffer); - $significantIntDigits = $significantIntDigits + 1 | 0; - } - $intLength = 0; - if ($intLength <= $exponent) - $intLength = $exponent; - $significantIntDigits = $this.$minimumIntegerDigits; - if ($intLength > $significantIntDigits) - $significantIntDigits = $intLength; - $digitPos = $significantIntDigits - 1 | 0; - $i = $this.$minimumIntegerDigits - 1 | 0; - while ($i >= $intLength) { - $significantIntDigits = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, $significantIntDigits, $significantIntDigits + 1 | 0); - $buffer.$buffer.data[$significantIntDigits] = 48; - if ($this.$groupingSize > 0 && !($digitPos % $this.$groupingSize | 0) && $digitPos > 0) - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getGroupingSeparator($this.$symbols)); - $digitPos = $digitPos + (-1) | 0; - $i = $i + (-1) | 0; - } - $significantIntDigits = $mantissaLength >= $intLength ? $intLength : $mantissaLength; - $mantissaDigitMask = jm_BigInteger_ONE; - $i_0 = $mantissaLength - 1 | 0; - $value = jm_BigInteger_TEN; - while ($i_0) { - if ($i_0 & 1) - $mantissaDigitMask = jm_BigInteger_multiply($mantissaDigitMask, $value); - if (!$value.$sign1) - $value = jm_BigInteger_ZERO; - else if (!$value.$sign1) - $value = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $value = jm_Multiplication_karatsuba($value, $value); - } - $i_0 = $i_0 >>> 1; - } - $i_0 = 0; - while ($i_0 < $significantIntDigits) { - $parts = jm_BigInteger_divideAndRemainder(var$3, $mantissaDigitMask).data; - jl_StringBuffer_append($buffer, jt_DecimalFormat_forDigit($this, jl_Math_abs(jm_BigInteger_intValue($parts[0])))); - var$3 = $parts[1]; - if ($this.$groupingSize > 0 && !($digitPos % $this.$groupingSize | 0) && $digitPos > 0) - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getGroupingSeparator($this.$symbols)); - $digitPos = $digitPos + (-1) | 0; - $mantissaLength = $mantissaLength + (-1) | 0; - $mantissaDigitMask = jm_BigInteger_divide($mantissaDigitMask, jm_BigInteger_TEN); - $i_0 = $i_0 + 1 | 0; - } - $roundingPos = $intLength - $significantIntDigits | 0; - $i_0 = 0; - while ($i_0 < $roundingPos) { - jl_StringBuffer_append($buffer, 48); - if ($this.$groupingSize > 0 && !($digitPos % $this.$groupingSize | 0) && $digitPos > 0) - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getGroupingSeparator($this.$symbols)); - $digitPos = $digitPos + (-1) | 0; - $i_0 = $i_0 + 1 | 0; - } - a: { - if (jm_BigInteger_equals(var$3, jm_BigInteger_ZERO)) { - if (jt_NumberFormat_getMinimumFractionDigits($this)) { - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getDecimalSeparator($this.$symbols)); - $i_0 = 0; - while ($i_0 < jt_NumberFormat_getMinimumFractionDigits($this)) { - jl_StringBuffer_append($buffer, 48); - $i_0 = $i_0 + 1 | 0; - } - } else if (jt_DecimalFormat_isDecimalSeparatorAlwaysShown($this)) - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getDecimalSeparator($this.$symbols)); - } else { - jl_StringBuffer_append($buffer, jt_DecimalFormatSymbols_getDecimalSeparator($this.$symbols)); - $fracZeros = jl_Math_min0(jt_NumberFormat_getMaximumFractionDigits($this), jl_Math_max(0, -$exponent)); - $i_0 = 0; - $i = 0; - while ($i < $fracZeros) { - $i_0 = $i_0 + 1 | 0; - jl_StringBuffer_append($buffer, 48); - $i = $i + 1 | 0; - } - $significantFracDigits = jl_Math_min0(jt_NumberFormat_getMaximumFractionDigits($this) - $i_0 | 0, $mantissaLength); - $i = 0; - b: { - while (true) { - if ($i >= $significantFracDigits) - break b; - if (jm_BigInteger_equals(var$3, jm_BigInteger_ZERO)) - break; - $i_0 = $i_0 + 1 | 0; - $parts = jm_BigInteger_divideAndRemainder(var$3, $mantissaDigitMask).data; - jl_StringBuffer_append($buffer, jt_DecimalFormat_forDigit($this, jl_Math_abs(jm_BigInteger_intValue($parts[0])))); - var$3 = $parts[1]; - $mantissaDigitMask = jm_BigInteger_divide($mantissaDigitMask, jm_BigInteger_TEN); - $i = $i + 1 | 0; - } - } - while (true) { - if ($i_0 >= jt_NumberFormat_getMinimumFractionDigits($this)) - break a; - jl_StringBuffer_append($buffer, 48); - $i_0 = $i_0 + 1 | 0; - } - } - } - jt_DecimalFormat_appendSuffix($this, $positive, $buffer); -} -function jt_DecimalFormat_applyRounding($this, $mantissa, $mantissaLength, $exponent) { - var $rounding, $signedRounding, var$6, var$7, var$8; - $rounding = jt_DecimalFormat_POW10_ARRAY.data[$mantissaLength - $exponent | 0]; - $signedRounding = Long_le($mantissa, Long_ZERO) ? Long_neg($rounding) : $rounding; - a: { - jt_DecimalFormat$1_$callClinit(); - switch (jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[$this.$roundingMode.$ordinal]) { - case 1: - $mantissa = Long_mul(Long_div($mantissa, $rounding), $rounding); - if (Long_lt($mantissa, Long_ZERO)) - break a; - $mantissa = Long_add($mantissa, $rounding); - break a; - case 2: - $mantissa = Long_mul(Long_div($mantissa, $rounding), $rounding); - if (Long_gt($mantissa, Long_ZERO)) - break a; - $mantissa = Long_sub($mantissa, $rounding); - break a; - case 3: - $mantissa = Long_add(Long_mul(Long_div($mantissa, $rounding), $rounding), $signedRounding); - break a; - case 4: - $mantissa = Long_mul(Long_div($mantissa, $rounding), $rounding); - break a; - case 5: - if (Long_eq(Long_rem($mantissa, $rounding), Long_ZERO)) - break a; - var$6 = new jl_ArithmeticException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - var$6.$message = $rt_s(724); - $rt_throw(var$6); - case 6: - var$7 = Long_rem($mantissa, $rounding); - $signedRounding = Long_div($signedRounding, Long_fromInt(2)); - if (Long_eq(var$7, $signedRounding)) { - $mantissa = Long_mul(Long_div($mantissa, $rounding), $rounding); - break a; - } - $mantissa = Long_mul(Long_div(Long_add($mantissa, $signedRounding), $rounding), $rounding); - break a; - case 7: - var$8 = Long_rem($mantissa, $rounding); - var$7 = Long_div($signedRounding, Long_fromInt(2)); - if (Long_ne(var$8, var$7)) { - $mantissa = Long_mul(Long_div(Long_add($mantissa, var$7), $rounding), $rounding); - break a; - } - $mantissa = Long_add(Long_mul(Long_div($mantissa, $rounding), $rounding), $signedRounding); - break a; - case 8: - var$8 = Long_rem($mantissa, $rounding); - var$7 = Long_div($signedRounding, Long_fromInt(2)); - if (Long_ne(var$8, var$7)) { - $mantissa = Long_mul(Long_div(Long_add($mantissa, var$7), $rounding), $rounding); - break a; - } - $mantissa = Long_mul(Long_div($mantissa, $rounding), $rounding); - if (Long_eq(Long_rem(Long_div($mantissa, $rounding), Long_fromInt(2)), Long_ZERO)) - break a; - $mantissa = Long_add($mantissa, $signedRounding); - break a; - default: - } - } - return $mantissa; -} -function jt_DecimalFormat_applyRounding0($this, $mantissa, $mantissaLength, $exponent) { - var $rounding, $signedRounding, var$6; - $rounding = jm_BigInteger_ONE; - $mantissaLength = $mantissaLength - $exponent | 0; - $signedRounding = jm_BigInteger_TEN; - while ($mantissaLength) { - if ($mantissaLength & 1) { - if (!$signedRounding.$sign1) - $rounding = jm_BigInteger_ZERO; - else if (!$rounding.$sign1) - $rounding = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $rounding = jm_Multiplication_karatsuba($rounding, $signedRounding); - } - } - if (!$signedRounding.$sign1) - $signedRounding = jm_BigInteger_ZERO; - else if (!$signedRounding.$sign1) - $signedRounding = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $signedRounding = jm_Multiplication_karatsuba($signedRounding, $signedRounding); - } - $mantissaLength = $mantissaLength >>> 1; - } - if (jm_BigInteger_compareTo($mantissa, jm_BigInteger_ZERO) >= 0) - $signedRounding = $rounding; - else if (!$rounding.$sign1) - $signedRounding = $rounding; - else { - $signedRounding = new jm_BigInteger; - $mantissaLength = -$rounding.$sign1; - $exponent = $rounding.$numberLength; - var$6 = $rounding.$digits; - $signedRounding.$firstNonzeroDigit = (-2); - $signedRounding.$sign1 = $mantissaLength; - $signedRounding.$numberLength = $exponent; - $signedRounding.$digits = var$6; - } - a: { - jt_DecimalFormat$1_$callClinit(); - switch (jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[$this.$roundingMode.$ordinal]) { - case 1: - $mantissa = jm_BigInteger_divide($mantissa, $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - if (jm_BigInteger_compareTo($mantissa, jm_BigInteger_ZERO) < 0) - break a; - $mantissa = jm_BigInteger_add($mantissa, $rounding); - break a; - case 2: - $mantissa = jm_BigInteger_divide($mantissa, $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - if (jm_BigInteger_compareTo($mantissa, jm_BigInteger_ZERO) > 0) - break a; - $mantissa = jm_BigInteger_subtract($mantissa, $rounding); - break a; - case 3: - $mantissa = jm_BigInteger_divide($mantissa, $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - $mantissa = jm_Elementary_add($mantissa, $signedRounding); - break a; - case 4: - $mantissa = jm_BigInteger_divide($mantissa, $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - break a; - case 5: - if (!jm_BigInteger_equals(jm_BigInteger_remainder($mantissa, $rounding), jm_BigInteger_ZERO)) - break a; - $rt_throw(jl_ArithmeticException__init_0($rt_s(724))); - case 6: - if (jm_BigInteger_equals(jm_BigInteger_remainder($mantissa, $rounding), jm_BigInteger_divide($signedRounding, jm_BigInteger_valueOf(Long_fromInt(2))))) { - $mantissa = jm_BigInteger_divide($mantissa, $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - break a; - } - $mantissa = jm_BigInteger_divide(jm_Elementary_add($mantissa, jm_BigInteger_divide($signedRounding, jm_BigInteger_valueOf(Long_fromInt(2)))), $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - break a; - case 7: - if (!jm_BigInteger_equals(jm_BigInteger_remainder($mantissa, $rounding), jm_BigInteger_divide($signedRounding, jm_BigInteger_valueOf(Long_fromInt(2))))) { - $mantissa = jm_BigInteger_divide(jm_Elementary_add($mantissa, jm_BigInteger_divide($signedRounding, jm_BigInteger_valueOf(Long_fromInt(2)))), $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - break a; - } - $mantissa = jm_BigInteger_divide($mantissa, $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - $mantissa = jm_Elementary_add($mantissa, $signedRounding); - break a; - case 8: - if (!jm_BigInteger_equals(jm_BigInteger_remainder($mantissa, $rounding), jm_BigInteger_divide($signedRounding, jm_BigInteger_valueOf(Long_fromInt(2))))) { - $mantissa = jm_BigInteger_divide(jm_Elementary_add($mantissa, jm_BigInteger_divide($signedRounding, jm_BigInteger_valueOf(Long_fromInt(2)))), $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - break a; - } - $mantissa = jm_BigInteger_divide($mantissa, $rounding); - if (!$rounding.$sign1) - $mantissa = jm_BigInteger_ZERO; - else if (!$mantissa.$sign1) - $mantissa = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $mantissa = jm_Multiplication_karatsuba($mantissa, $rounding); - } - if (jm_BigInteger_equals(jm_BigInteger_remainder(jm_BigInteger_divide($mantissa, $rounding), jm_BigInteger_valueOf(Long_fromInt(2))), jm_BigInteger_ZERO)) - break a; - $mantissa = jm_Elementary_add($mantissa, $signedRounding); - break a; - default: - } - } - return $mantissa; -} -function jt_DecimalFormat_fastLn10($this, $value) { - var $result; - $result = 0; - if (Long_lt($value, Long_ZERO)) { - if (Long_le($value, new Long(2420047872, 4292638989))) { - $result = 16; - $value = Long_div($value, new Long(1874919424, 2328306)); - } - if (Long_le($value, Long_fromInt(-100000000))) { - $result = $result + 8 | 0; - $value = Long_div($value, Long_fromInt(100000000)); - } - if (Long_le($value, Long_fromInt(-10000))) { - $result = $result + 4 | 0; - $value = Long_div($value, Long_fromInt(10000)); - } - if (Long_le($value, Long_fromInt(-100))) { - $result = $result + 2 | 0; - $value = Long_div($value, Long_fromInt(100)); - } - if (Long_le($value, Long_fromInt(-10))) - $result = $result + 1 | 0; - } else { - if (Long_ge($value, new Long(1874919424, 2328306))) { - $result = 16; - $value = Long_div($value, new Long(1874919424, 2328306)); - } - if (Long_ge($value, Long_fromInt(100000000))) { - $result = $result + 8 | 0; - $value = Long_div($value, Long_fromInt(100000000)); - } - if (Long_ge($value, Long_fromInt(10000))) { - $result = $result + 4 | 0; - $value = Long_div($value, Long_fromInt(10000)); - } - if (Long_ge($value, Long_fromInt(100))) { - $result = $result + 2 | 0; - $value = Long_div($value, Long_fromInt(100)); - } - if (Long_ge($value, Long_fromInt(10))) - $result = $result + 1 | 0; - } - return $result; -} -function jt_DecimalFormat_fastLn100($this, $value) { - var $result; - $result = 0; - if ($value >= 100000000) { - $result = 8; - $value = $value / 100000000 | 0; - } - if ($value >= 10000) { - $result = $result + 4 | 0; - $value = $value / 10000 | 0; - } - if ($value >= 100) { - $result = $result + 2 | 0; - $value = $value / 100 | 0; - } - if ($value >= 10) - $result = $result + 1 | 0; - return $result; -} -function jt_DecimalFormat_getMantissaAndExponent($this, $value) { - var $mantissaPattern, $positive, $bit, var$5, $digit, $i, var$8, var$9, $bit_0, $digit_0, var$12; - $mantissaPattern = jt_DecimalFormat_POW10_ARRAY.data[17]; - if ($value >= 0.0) - $positive = 1; - else { - $positive = 0; - $value = -$value; - } - if ($value >= 1.0) { - $bit = 256; - var$5 = 0; - $digit = 1.0; - $i = jt_DecimalFormat_POW10_FRAC_ARRAY.data.length - 1 | 0; - while ($i >= 0) { - var$8 = var$5 | $bit; - if (var$8 <= 308 && jt_DecimalFormat_POW10_FRAC_ARRAY.data[$i] * $digit <= $value) { - $digit = $digit * jt_DecimalFormat_POW10_FRAC_ARRAY.data[$i]; - var$5 = var$8; - } - $bit = $bit >> 1; - $i = $i + (-1) | 0; - } - var$9 = Long_fromNumber($value / $digit * Long_toNumber($mantissaPattern) + 0.5); - } else { - $bit_0 = 256; - var$5 = 0; - $digit_0 = 1.0; - $i = jt_DecimalFormat_POWM10_FRAC_ARRAY.data.length - 1 | 0; - while ($i >= 0) { - $bit = var$5 | $bit_0; - if ($bit <= 308 && jt_DecimalFormat_POWM10_FRAC_ARRAY.data[$i] * $digit_0 * 10.0 > $value) { - $digit_0 = $digit_0 * jt_DecimalFormat_POWM10_FRAC_ARRAY.data[$i]; - var$5 = $bit; - } - $bit_0 = $bit_0 >> 1; - $i = $i + (-1) | 0; - } - var$5 = -var$5; - var$9 = Long_fromNumber($value * Long_toNumber($mantissaPattern) / $digit_0 + 0.5); - } - $mantissaPattern = Long_mul(Long_div(Long_add(var$9, Long_fromInt(500)), Long_fromInt(1000)), Long_fromInt(1000)); - var$12 = new jt_DecimalFormat$MantissaAndExponent; - if (!$positive) - $mantissaPattern = Long_neg($mantissaPattern); - var$12.$mantissa1 = $mantissaPattern; - var$12.$exponent1 = var$5; - return var$12; -} -function jt_DecimalFormat_forDigit($this, $n) { - return ($this.$symbols.$zeroDigit + $n | 0) & 65535; -} -function jt_DecimalFormat__clinit_() { - var var$1, var$2; - var$1 = $rt_createLongArray(19); - var$2 = var$1.data; - var$2[0] = Long_fromInt(1); - var$2[1] = Long_fromInt(10); - var$2[2] = Long_fromInt(100); - var$2[3] = Long_fromInt(1000); - var$2[4] = Long_fromInt(10000); - var$2[5] = Long_fromInt(100000); - var$2[6] = Long_fromInt(1000000); - var$2[7] = Long_fromInt(10000000); - var$2[8] = Long_fromInt(100000000); - var$2[9] = Long_fromInt(1000000000); - var$2[10] = new Long(1410065408, 2); - var$2[11] = new Long(1215752192, 23); - var$2[12] = new Long(3567587328, 232); - var$2[13] = new Long(1316134912, 2328); - var$2[14] = new Long(276447232, 23283); - var$2[15] = new Long(2764472320, 232830); - var$2[16] = new Long(1874919424, 2328306); - var$2[17] = new Long(1569325056, 23283064); - var$2[18] = new Long(2808348672, 232830643); - jt_DecimalFormat_POW10_ARRAY = var$1; - var$1 = $rt_createIntArray(10); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 10; - var$2[2] = 100; - var$2[3] = 1000; - var$2[4] = 10000; - var$2[5] = 100000; - var$2[6] = 1000000; - var$2[7] = 10000000; - var$2[8] = 100000000; - var$2[9] = 1000000000; - jt_DecimalFormat_POW10_INT_ARRAY = var$1; - var$1 = $rt_createDoubleArray(9); - var$2 = var$1.data; - var$2[0] = 10.0; - var$2[1] = 100.0; - var$2[2] = 10000.0; - var$2[3] = 1.0E8; - var$2[4] = 1.0E16; - var$2[5] = 1.0E32; - var$2[6] = 1.0E64; - var$2[7] = 1.0E128; - var$2[8] = 1.0E256; - jt_DecimalFormat_POW10_FRAC_ARRAY = var$1; - var$1 = $rt_createDoubleArray(9); - var$2 = var$1.data; - var$2[0] = 0.1; - var$2[1] = 0.01; - var$2[2] = 1.0E-4; - var$2[3] = 1.0E-8; - var$2[4] = 1.0E-16; - var$2[5] = 1.0E-32; - var$2[6] = 1.0E-64; - var$2[7] = 1.0E-128; - var$2[8] = 1.0E-256; - jt_DecimalFormat_POWM10_FRAC_ARRAY = var$1; -} -function nms_ProfilerResult() { - var a = this; jl_Object.call(a); - a.$field_76332_a = 0.0; - a.$field_76330_b = 0.0; - a.$field_76331_c = null; -} -function nms_ProfilerResult__init_(var_0, var_1, var_2) { - var var_3 = new nms_ProfilerResult(); - nms_ProfilerResult__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ProfilerResult__init_0($this, $par1Str, $par2, $par4) { - $this.$field_76331_c = $par1Str; - $this.$field_76332_a = $par2; - $this.$field_76330_b = $par4; -} -function nms_ProfilerResult_func_76328_a($this, $par1ProfilerResult) { - return $par1ProfilerResult.$field_76332_a < $this.$field_76332_a ? (-1) : $par1ProfilerResult.$field_76332_a > $this.$field_76332_a ? 1 : jl_String_compareTo($par1ProfilerResult.$field_76331_c, $this.$field_76331_c); -} -function nms_ProfilerResult_func_76329_a($this) { - return (jl_String_hashCode($this.$field_76331_c) & 11184810) + 4473924 | 0; -} -function nms_ProfilerResult_compareTo($this, $par1Obj) { - return nms_ProfilerResult_func_76328_a($this, $par1Obj); -} -function nms_MathHelper() { - jl_Object.call(this); -} -var nms_MathHelper_SIN_TABLE = null; -function nms_MathHelper__init_0() { - var var_0 = new nms_MathHelper(); - nms_MathHelper__init_(var_0); - return var_0; -} -function nms_MathHelper__init_($this) { - return; -} -function nms_MathHelper_sin($par0) { - return nms_MathHelper_SIN_TABLE.data[($par0 * 10430.3779296875 | 0) & 65535]; -} -function nms_MathHelper_cos($par0) { - return nms_MathHelper_SIN_TABLE.data[($par0 * 10430.3779296875 + 16384.0 | 0) & 65535]; -} -function nms_MathHelper_sqrt_float($par0) { - return jl_Math_sqrt($par0); -} -function nms_MathHelper_sqrt_double($par0) { - return jl_Math_sqrt($par0); -} -function nms_MathHelper_truncateDoubleToInt($par0) { - return ($par0 + 1024.0 | 0) - 1024 | 0; -} -function nms_MathHelper_floor_double($par0) { - var $var2; - $var2 = $par0 | 0; - if ($par0 < $var2) - $var2 = $var2 - 1 | 0; - return $var2; -} -function nms_MathHelper_abs($par0) { - if ($par0 < 0.0) - $par0 = -$par0; - return $par0; -} -function nms_MathHelper_abs_int($par0) { - if ($par0 < 0) - $par0 = -$par0; - return $par0; -} -function nms_MathHelper_ceiling_float_int($par0) { - var $var1; - $var1 = $par0 | 0; - if ($par0 > $var1) - $var1 = $var1 + 1 | 0; - return $var1; -} -function nms_MathHelper_ceiling_double_int($par0) { - var $var2; - $var2 = $par0 | 0; - if ($par0 > $var2) - $var2 = $var2 + 1 | 0; - return $var2; -} -function nms_MathHelper_clamp_float($par0, $par1, $par2) { - if ($par0 >= $par1) - $par1 = $par0 <= $par2 ? $par0 : $par2; - return $par1; -} -function nms_MathHelper_abs_max($par0, $par2) { - if ($par0 < 0.0) - $par0 = -$par0; - if ($par2 < 0.0) - $par2 = -$par2; - if ($par0 > $par2) - $par2 = $par0; - return $par2; -} -function nms_MathHelper_getRandomIntegerInRange($par0Random, $par1, $par2) { - if ($par1 < $par2) { - $par2 = ($par2 - $par1 | 0) + 1 | 0; - $par1 = (Math.random() * $par2 | 0) + $par1 | 0; - } - return $par1; -} -function nms_MathHelper_getRandomDoubleInRange($par0Random, $par1, $par3) { - if ($par1 < $par3) - $par1 = Math.random() * ($par3 - $par1) + $par1; - return $par1; -} -function nms_MathHelper_wrapAngleTo180_float($par0) { - $par0 = $par0 % 360.0; - if ($par0 >= 180.0) - $par0 = $par0 - 360.0; - if ($par0 < (-180.0)) - $par0 = $par0 + 360.0; - return $par0; -} -function nms_MathHelper_wrapAngleTo180_double($par0) { - $par0 = $par0 % 360.0; - if ($par0 >= 180.0) - $par0 = $par0 - 360.0; - if ($par0 < (-180.0)) - $par0 = $par0 + 360.0; - return $par0; -} -function nms_MathHelper__clinit_() { - var $var0; - nms_MathHelper_SIN_TABLE = $rt_createFloatArray(65536); - $var0 = 0; - while ($var0 < 65536) { - nms_MathHelper_SIN_TABLE.data[$var0] = jl_Math_sin($var0 * 3.141592653589793 * 2.0 / 65536.0); - $var0 = $var0 + 1 | 0; - } -} -function nms_GuiAchievement() { - var a = this; nms_Gui.call(a); - a.$theGame = null; - a.$achievementWindowWidth = 0; - a.$achievementWindowHeight = 0; - a.$achievementGetLocalText = null; - a.$achievementStatName = null; - a.$theAchievement = null; - a.$achievementTime = Long_ZERO; - a.$itemRender = null; - a.$haveAchiement = 0; -} -var nms_GuiAchievement_bg = null; -function nms_GuiAchievement_queueTakenAchievement($this, $par1Achievement) { - var var$2; - $this.$achievementGetLocalText = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(725)); - var$2 = $par1Achievement.$statName; - $this.$achievementStatName = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$2); - $this.$achievementTime = jl_System_currentTimeMillis(); - $this.$theAchievement = $par1Achievement; - $this.$haveAchiement = 0; -} -function nms_GuiAchievement_updateAchievementWindowScale($this) { - var var$1, var$2, $var1, var$4, var$5, var$6; - var$1 = $this.$theGame.$displayWidth; - var$2 = $this.$theGame.$displayHeight; - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2__wglViewport(0, 0, var$1, var$2); - nleg_EaglerAdapterGL30_matrixMode = 9; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_matrixMode = 10; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - $this.$achievementWindowWidth = $this.$theGame.$displayWidth; - $this.$achievementWindowHeight = $this.$theGame.$displayHeight; - $var1 = nms_ScaledResolution__init_($this.$theGame.$gameSettings, $this.$theGame.$displayWidth, $this.$theGame.$displayHeight); - $this.$achievementWindowWidth = $var1.$scaledWidth; - $this.$achievementWindowHeight = $var1.$scaledHeight; - nleg_EaglerAdapterGL30_glClear(2); - nleg_EaglerAdapterGL30_matrixMode = 9; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_glOrtho(0.0, $this.$achievementWindowWidth, $this.$achievementWindowHeight, 0.0, 1000.0, 3000.0); - nleg_EaglerAdapterGL30_matrixMode = 10; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - $var1 = nleg_EaglerAdapterGL30_deevis; - $var1.$x = 0.0; - $var1.$y = 0.0; - $var1.$z = (-2000.0); - $var1 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var1, $var1); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - $var1 = new jl_StringBuilder; - $var1.$buffer = $rt_createCharArray(16); - var$4.$sb = $var1; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - $var1 = new jnci_UTF8Charset; - jnc_Charset__init_($var1, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = $var1; - 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)); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); - } -} -function nms_GuiAchievement_updateAchievementWindow($this) { - var $var1, $var3, $var5, $var6, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($this.$theAchievement !== null && Long_ne($this.$achievementTime, Long_ZERO)) { - $var1 = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $this.$achievementTime)) / 3000.0; - if ($this.$haveAchiement) - break a; - if ($var1 >= 0.0 && $var1 <= 1.0) - break a; - $this.$achievementTime = Long_ZERO; - } - return; - } - nms_GuiAchievement_updateAchievementWindowScale($this); - nleg_EaglerAdapterGL30_glDisable(4); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - $var3 = $var1 * 2.0; - if ($var3 > 1.0) - $var3 = 2.0 - $var3; - $var1 = 1.0 - $var3 * 4.0; - if ($var1 < 0.0) - $var1 = 0.0; - $var1 = $var1 * $var1; - $var3 = $var1 * $var1; - $var5 = $this.$achievementWindowWidth - 160 | 0; - $var6 = 0 - ($var3 * 36.0 | 0) | 0; - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glEnable(2); - nle_TextureLocation_bindTexture(nms_GuiAchievement_bg); - nleg_EaglerAdapterGL30_glDisable(13); - nms_Gui_drawTexturedModalRect($this, $var5, $var6, 96, 202, 160, 32); - if ($this.$haveAchiement) - nms_FontRenderer_drawSplitString($this.$theGame.$fontRenderer, $this.$achievementStatName, $var5 + 30 | 0, $var6 + 7 | 0, 120, (-1)); - else { - var$5 = $this.$theGame.$fontRenderer; - var$6 = $this.$achievementGetLocalText; - var$7 = $var5 + 30 | 0; - nms_FontRenderer_drawString(var$5, var$6, var$7, $var6 + 7 | 0, (-256), 0); - nms_FontRenderer_drawString($this.$theGame.$fontRenderer, $this.$achievementStatName, var$7, $var6 + 18 | 0, (-1), 0); - } - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef((-30.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(165.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glEnable(15); - var$5 = $this.$itemRender; - var$6 = $this.$theGame.$fontRenderer; - var$8 = $this.$theGame.$renderEngine; - var$9 = $this.$theAchievement.$theItemStack; - var$7 = $var5 + 8 | 0; - var$10 = $var6 + 8 | 0; - $ptr = 1; - case 1: - nms_RenderItem_renderItemAndEffectIntoGUI(var$5, var$6, var$8, var$9, var$7, var$10); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(15); - nleg_EaglerAdapterGL30_glDisable(41); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - nleg_EaglerAdapterGL30_glEnable(4); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var3, $var5, $var6, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -} -function nms_GuiAchievement__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(726); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_GuiAchievement_bg = var$1; -} -function nms_ScaledResolution() { - var a = this; jl_Object.call(a); - a.$scaledWidth = 0; - a.$scaledHeight = 0; - a.$scaledWidthD = 0.0; - a.$scaledHeightD = 0.0; - a.$scaleFactor = 0; -} -function nms_ScaledResolution__init_(var_0, var_1, var_2) { - var var_3 = new nms_ScaledResolution(); - nms_ScaledResolution__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ScaledResolution__init_0($this, $par1GameSettings, $par2, $par3) { - var $var4, var$5; - $this.$scaledWidth = $par2; - $this.$scaledHeight = $par3; - $this.$scaleFactor = 1; - $var4 = $par1GameSettings.$guiScale; - if (!$var4) - $var4 = 1000; - while ($this.$scaleFactor < $var4 && ($this.$scaledWidth / ($this.$scaleFactor + 1 | 0) | 0) >= 320 && ($this.$scaledHeight / ($this.$scaleFactor + 1 | 0) | 0) >= 240) { - $this.$scaleFactor = $this.$scaleFactor + 1 | 0; - } - $this.$scaledWidthD = $this.$scaledWidth / $this.$scaleFactor; - $this.$scaledHeightD = $this.$scaledHeight / $this.$scaleFactor; - var$5 = $this.$scaledWidthD; - $par3 = var$5 | 0; - if (var$5 > $par3) - $par3 = $par3 + 1 | 0; - $this.$scaledWidth = $par3; - var$5 = $this.$scaledHeightD; - $par3 = var$5 | 0; - if (var$5 > $par3) - $par3 = $par3 + 1 | 0; - $this.$scaledHeight = $par3; -} -function nms_ScaledResolution_getScaledWidth($this) { - return $this.$scaledWidth; -} -function nms_ScaledResolution_getScaledHeight($this) { - return $this.$scaledHeight; -} -function nms_ScaledResolution_getScaleFactor($this) { - return $this.$scaleFactor; -} -function nms_GuiMainMenu() { - var a = this; nms_GuiScreen.call(a); - a.$splashText = null; - a.$start6 = Long_ZERO; - a.$field_96141_q = 0; - a.$field_104025_t = null; - a.$field_92025_p = null; - a.$field_92024_r = 0; - a.$field_92023_s = 0; - a.$field_92022_t = 0; - a.$field_92021_u = 0; - a.$field_92020_v = 0; - a.$field_92019_w = 0; - a.$scrollPosition = 0; - a.$dragstart = 0; - a.$dragstartI = 0; - a.$ackLines = null; - a.$showAck = 0; - a.$mousex0 = 0; - a.$mousey0 = 0; -} -var nms_GuiMainMenu_rand = null; -var nms_GuiMainMenu_viewportTexture = 0; -var nms_GuiMainMenu_field_96140_r = 0; -var nms_GuiMainMenu_field_96139_s = 0; -var nms_GuiMainMenu_titlePanoramaPaths = null; -var nms_GuiMainMenu_mclogo = null; -var nms_GuiMainMenu_ackbk = null; -var nms_GuiMainMenu_beaconx = null; -function nms_GuiMainMenu__init_0() { - var var_0 = new nms_GuiMainMenu(); - nms_GuiMainMenu__init_(var_0); - return var_0; -} -function nms_GuiMainMenu__init_($this) { - var var$1, var$2, var$3, var$4, var$5; - nms_GuiScreen__init_($this); - $this.$splashText = $rt_s(727); - $this.$field_96141_q = 1; - $this.$field_104025_t = new jl_Object; - $this.$scrollPosition = 0; - $this.$dragstart = (-1); - $this.$dragstartI = (-1); - $this.$showAck = 0; - $this.$mousex0 = 0; - $this.$mousey0 = 0; - nlea_EaglerAdapterImpl2_$callClinit(); - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(44)); - var$2 = nms_EnumChatFormatting_BOLD; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2 === null ? $rt_s(47) : var$2.$field_96304_B); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(728)); - var$2 = nms_EnumChatFormatting_RESET; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2 === null ? $rt_s(47) : var$2.$field_96304_B); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(44)); - $this.$field_92025_p = jl_String__init_0(var$1.$buffer, 0, var$1.$length); - $this.$start6 = Long_add(jl_System_currentTimeMillis(), Long_rem(jl_System_currentTimeMillis(), Long_fromInt(10000))); - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$ackLines = var$1; - var$1 = nle_LocalStorageManager_gameSettingsStorage; - var$3 = var$1.$tagMap; - var$4 = jl_String_hashCode($rt_s(729)); - if (!(ju_HashMap_findNonNullKeyEntry(var$3, $rt_s(729), var$4 & (var$3.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1)) - var$5 = 0; - else { - var$1 = var$1.$tagMap; - var$4 = jl_String_hashCode($rt_s(729)); - var$1 = ju_HashMap_findNonNullKeyEntry(var$1, $rt_s(729), var$4 & (var$1.$elementData.data.length - 1 | 0), var$4); - var$5 = (var$1 === null ? null : var$1.$value0).$data0; - } - if (!(!var$5 ? 0 : 1)) - $this.$showAck = 1; -} -function nms_GuiMainMenu_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.$showAck) { - $var1 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel(); - if ($var1 < 0) - $this.$scrollPosition = $this.$scrollPosition + 3 | 0; - if ($var1 > 0) - $this.$scrollPosition = $this.$scrollPosition - 3 | 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $ptr); -} -function nms_GuiMainMenu_keyTyped($this, $par1, $par2) { - var var$3, var$4, var$5, $$je; - if ($par2 == 1) { - var$3 = nle_LocalStorageManager_gameSettingsStorage; - var$4 = var$3.$tagMap; - var$5 = jl_String_hashCode($rt_s(729)); - if (!(ju_HashMap_findNonNullKeyEntry(var$4, $rt_s(729), var$5 & (var$4.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) - $par1 = 0; - else { - var$3 = var$3.$tagMap; - var$5 = jl_String_hashCode($rt_s(729)); - var$3 = ju_HashMap_findNonNullKeyEntry(var$3, $rt_s(729), var$5 & (var$3.$elementData.data.length - 1 | 0), var$5); - $par1 = (var$3 === null ? null : var$3.$value0).$data0; - } - if (!(!$par1 ? 0 : 1)) { - var$4 = nle_LocalStorageManager_gameSettingsStorage.$tagMap; - var$3 = new nms_NBTTagByte; - var$3.$name0 = $rt_s(729); - var$3.$data0 = 1; - ju_HashMap_putImpl(var$4, $rt_s(729), var$3); - 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; - } - } - } - } - $this.$showAck = 0; - } -} -function nms_GuiMainMenu_initGui($this) { - var $var1, $s, $var2, $var4, $s2, $width, $file, $var6, $i, $lines, $words, $currentLine, var$13, $s3, $cCurrentLine, $$je; - if (nms_GuiMainMenu_viewportTexture == (-1)) - nms_GuiMainMenu_viewportTexture = nms_RenderEngine_makeViewportTexture($this.$mc4.$renderEngine, 256, 256); - $var1 = new ju_GregorianCalendar; - $s = ju_Locale_defaultLocale; - ju_GregorianCalendar__init_0($var1, ju_TimeZone_getDefault(), $s); - ju_Calendar_setTimeInMillis($var1, jl_System_currentTimeMillis()); - $this.$splashText = $rt_s(730); - $var2 = nms_StringTranslate_instance; - $var4 = ($this.$height0 / 4 | 0) + 48 | 0; - $s = $this.$buttonList; - $s2 = nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, $var4, 200, 20, nms_StringTranslate_translateKey($var2, $rt_s(731))); - ju_ArrayList_add($s, $s2); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(2, ($this.$width0 / 2 | 0) - 100 | 0, $var4 + 24 | 0, 200, 20, nms_StringTranslate_translateKey($var2, $rt_s(732)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(3, ($this.$width0 / 2 | 0) - 100 | 0, $var4 + 48 | 0, 200, 20, nms_StringTranslate_translateKey($var2, $rt_s(733)))); - $s2.$enabled = 0; - $s = $this.$buttonList; - $s2 = new nms_GuiButton; - $width = ($this.$width0 / 2 | 0) - 100 | 0; - $var4 = ($var4 + 72 | 0) + 12 | 0; - nms_GuiButton__init_0($s2, 0, $width, $var4, 98, 20, nms_StringTranslate_translateKey($var2, $rt_s(734))); - ju_ArrayList_add($s, $s2); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(4, ($this.$width0 / 2 | 0) + 2 | 0, $var4, 98, 20, nms_StringTranslate_translateKey($var2, $rt_s(735)))); - $file = $this.$buttonList; - $s = new nms_GuiButtonLanguage; - nms_GuiButton__init_0($s, 5, ($this.$width0 / 2 | 0) - 124 | 0, $var4, 20, 20, $rt_s(44)); - ju_ArrayList_add($file, $s); - $file = $this.$field_104025_t; - jl_Object_monitorEnterSync($file); - a: { - try { - $this.$field_92023_s = nms_FontRenderer_getStringWidth($this.$fontRenderer0, $this.$field_92025_p); - $this.$field_92024_r = nms_FontRenderer_getStringWidth($this.$fontRenderer0, $rt_s(44)); - $var6 = jl_Math_max($this.$field_92023_s, $this.$field_92024_r); - $this.$field_92022_t = ($this.$width0 - $var6 | 0) / 2 | 0; - $this.$field_92021_u = 82; - $this.$field_92020_v = $this.$field_92022_t + $var6 | 0; - $this.$field_92019_w = $this.$field_92021_u + 12 | 0; - jl_Object_monitorExitSync($file); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - $s = $$je; - - } - jl_Object_monitorExitSync($file); - $rt_throw($s); - } - $var6 = $this.$ackLines.$size0 ? 0 : 1; - b: { - if ($var6) { - $file = $rt_s(736); - nlea_EaglerAdapterImpl2_$callClinit(); - if ($file === $rt_s(58) ? 1 : jl_String_startsWith($file, $rt_s(58), 0)) - $file = jl_String_substring0($file, 1, $file.$characters.data.length); - $s = nle_AssetRepository_filePool; - if ($file === null) - $file = ju_HashMap_findNullKeyEntry($s); - else { - $i = jl_String_hashCode($file); - $file = ju_HashMap_findNonNullKeyEntry($s, $file, $i & ($s.$elementData.data.length - 1 | 0), $i); - } - $lines = $file === null ? null : $file.$value0; - $file = $lines === null ? null : jl_String__init_5($lines, jnc_Charset_forName($rt_s(2))); - if ($file === null) { - $i = 0; - while ($i < 30) { - ju_ArrayList_add($this.$ackLines, $rt_s(737)); - $i = $i + 1 | 0; - } - } else { - $lines = jl_String_split($file, $rt_s(60)).data; - $var6 = $lines.length; - $var4 = 0; - while (true) { - if ($var4 >= $var6) - break b; - $s2 = jl_String_trim($lines[$var4]); - if (jl_String_isEmpty($s2)) - ju_ArrayList_add($this.$ackLines, $rt_s(44)); - else { - $words = jl_String_split($s2, $rt_s(307)).data; - $currentLine = $rt_s(738); - $i = $words.length; - var$13 = 0; - while (var$13 < $i) { - $s3 = $words[var$13]; - $cCurrentLine = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $currentLine), $s3), $rt_s(307))); - if (nms_FontRenderer_getStringWidth($this.$mc4.$fontRenderer, $cCurrentLine) >= 315) { - ju_ArrayList_add($this.$ackLines, $currentLine); - $cCurrentLine = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $s3), $rt_s(307))); - } - var$13 = var$13 + 1 | 0; - $currentLine = $cCurrentLine; - } - ju_ArrayList_add($this.$ackLines, $currentLine); - } - $var4 = $var4 + 1 | 0; - } - } - } - } -} -function nms_GuiMainMenu_mouseClicked($this, $par1, $par2, $par3) { - var $x, $y, $w, var$7, var$8, $trackHeight, $offset, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$offset = $thread.pop();$trackHeight = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$w = $thread.pop();$y = $thread.pop();$x = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$showAck) { - if (!$par3) { - $x = ($this.$width0 - 345 | 0) / 2 | 0; - $y = ($this.$height0 - 230 | 0) / 2 | 0; - $w = $x + 323 | 0; - if ($par1 >= $w && $par1 <= ($w + 13 | 0)) { - $par3 = $y + 7 | 0; - if ($par2 >= $par3 && $par2 <= ($par3 + 13 | 0)) { - var$7 = nle_LocalStorageManager_gameSettingsStorage; - var$8 = var$7.$tagMap; - $trackHeight = jl_String_hashCode($rt_s(729)); - if (!(ju_HashMap_findNonNullKeyEntry(var$8, $rt_s(729), $trackHeight & (var$8.$elementData.data.length - 1 | 0), $trackHeight) === null ? 0 : 1)) - $par3 = 0; - else { - var$7 = var$7.$tagMap; - $trackHeight = jl_String_hashCode($rt_s(729)); - var$7 = ju_HashMap_findNonNullKeyEntry(var$7, $rt_s(729), $trackHeight & (var$7.$elementData.data.length - 1 | 0), $trackHeight); - $par3 = (var$7 === null ? null : var$7.$value0).$data0; - } - if (!(!$par3 ? 0 : 1)) { - var$8 = nle_LocalStorageManager_gameSettingsStorage.$tagMap; - var$7 = new nms_NBTTagByte; - var$7.$name0 = $rt_s(729); - var$7.$data0 = 1; - ju_HashMap_putImpl(var$8, $rt_s(729), var$7); - 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; - } - } - } - } - $this.$showAck = 0; - } - } - $offset = (193 * $this.$scrollPosition | 0) / $this.$ackLines.$size0 | 0; - if ($par1 >= ($x + 326 | 0) && $par1 <= ($x + 334 | 0)) { - $par3 = ($y + 27 | 0) + $offset | 0; - if ($par2 >= $par3 && $par2 <= (($par3 + (4053 / $this.$ackLines.$size0 | 0) | 0) + 1 | 0)) { - $this.$dragstart = $par2; - $this.$dragstartI = $this.$scrollPosition; - } - } - } - return; - } - $ptr = 1; - case 1: - nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - if (!$par3) { - $w = (nms_FontRenderer_getStringWidth($this.$fontRenderer0, $rt_s(739)) * 3 | 0) / 4 | 0; - if ($par1 >= (($this.$width0 - $w | 0) - 4 | 0) && $par1 <= $this.$width0 && $par2 >= 0 && $par2 <= 9) - $this.$showAck = 1; - $par3 = (nms_FontRenderer_getStringWidth($this.$fontRenderer0, $rt_s(740)) * 3 | 0) / 4 | 0; - if ($par1 >= 0 && $par1 <= ($par3 + 4 | 0) && $par2 >= 0 && $par2 <= 9) - nlea_EaglerAdapterImpl2_$callClinit(); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $x, $y, $w, var$7, var$8, $trackHeight, $offset, $ptr); -} -function nms_GuiMainMenu_actionPerformed($this, $par1GuiButton) { - var 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();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1GuiButton.$id2) { - var$2 = $this.$mc4; - var$3 = new nms_GuiOptions; - var$4 = $this.$mc4.$gameSettings; - nms_GuiOptions_$callClinit(); - nms_GuiScreen__init_(var$3); - var$3.$screenTitle0 = $rt_s(741); - var$3.$parentScreen = $this; - var$3.$options1 = var$4; - $ptr = 1; - continue main; - } - if ($par1GuiButton.$id2 == 5) { - var$2 = $this.$mc4; - var$3 = new nms_GuiLanguage; - var$4 = $this.$mc4.$gameSettings; - nms_GuiScreen__init_(var$3); - var$3.$updateTimer0 = (-1); - var$3.$parentGui = $this; - var$3.$theGameSettings = var$4; - $ptr = 2; - continue main; - } - if ($par1GuiButton.$id2 == 2) { - var$2 = $this.$mc4; - var$3 = nms_GuiMultiplayer__init_($this); - $ptr = 3; - continue main; - } - if ($par1GuiButton.$id2 == 3) { - var$2 = $this.$mc4; - var$3 = new nle_GuiScreenVoiceChannel; - nms_GuiScreen__init_(var$3); - var$3.$screenTitle1 = $rt_s(742); - var$3.$parent0 = $this; - $ptr = 4; - continue main; - } - if ($par1GuiButton.$id2 != 4) - return; - $par1GuiButton = $this.$mc4; - var$2 = nle_GuiScreenEditProfile__init_($this); - $ptr = 5; - continue main; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - if ($par1GuiButton.$id2 == 5) { - var$2 = $this.$mc4; - var$3 = new nms_GuiLanguage; - var$4 = $this.$mc4.$gameSettings; - nms_GuiScreen__init_(var$3); - var$3.$updateTimer0 = (-1); - var$3.$parentGui = $this; - var$3.$theGameSettings = var$4; - $ptr = 2; - continue main; - } - if ($par1GuiButton.$id2 == 2) { - var$2 = $this.$mc4; - var$3 = nms_GuiMultiplayer__init_($this); - $ptr = 3; - continue main; - } - if ($par1GuiButton.$id2 == 3) { - var$2 = $this.$mc4; - var$3 = new nle_GuiScreenVoiceChannel; - nms_GuiScreen__init_(var$3); - var$3.$screenTitle1 = $rt_s(742); - var$3.$parent0 = $this; - $ptr = 4; - continue main; - } - if ($par1GuiButton.$id2 != 4) - return; - $par1GuiButton = $this.$mc4; - var$2 = nle_GuiScreenEditProfile__init_($this); - $ptr = 5; - continue main; - case 2: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - if ($par1GuiButton.$id2 == 2) { - var$2 = $this.$mc4; - var$3 = nms_GuiMultiplayer__init_($this); - $ptr = 3; - continue main; - } - if ($par1GuiButton.$id2 == 3) { - var$2 = $this.$mc4; - var$3 = new nle_GuiScreenVoiceChannel; - nms_GuiScreen__init_(var$3); - var$3.$screenTitle1 = $rt_s(742); - var$3.$parent0 = $this; - $ptr = 4; - continue main; - } - if ($par1GuiButton.$id2 != 4) - return; - $par1GuiButton = $this.$mc4; - var$2 = nle_GuiScreenEditProfile__init_($this); - $ptr = 5; - continue main; - case 3: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - if ($par1GuiButton.$id2 == 3) { - var$2 = $this.$mc4; - var$3 = new nle_GuiScreenVoiceChannel; - nms_GuiScreen__init_(var$3); - var$3.$screenTitle1 = $rt_s(742); - var$3.$parent0 = $this; - $ptr = 4; - continue main; - } - if ($par1GuiButton.$id2 != 4) - return; - $par1GuiButton = $this.$mc4; - var$2 = nle_GuiScreenEditProfile__init_($this); - $ptr = 5; - continue main; - case 4: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - if ($par1GuiButton.$id2 != 4) - return; - $par1GuiButton = $this.$mc4; - var$2 = nle_GuiScreenEditProfile__init_($this); - $ptr = 5; - case 5: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, var$3, var$4, $ptr); -} -function nms_GuiMainMenu_drawPanorama($this, $par1, $par2, $par3) { - var $var4, $var6, $var7, $var8, var$8, var$9, $panTimer, $var10; - nlea_Tessellator_$callClinit(); - $var4 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_matrixMode = 9; - nleg_EaglerAdapterGL30_glPushMatrix(); - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_gluPerspective(120.0, 1.0, 0.05000000074505806, 10.0); - nleg_EaglerAdapterGL30_matrixMode = 10; - nleg_EaglerAdapterGL30_glPushMatrix(); - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glRotatef(180.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glDisable(46); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - $var6 = 0; - while ($var6 < 64) { - nleg_EaglerAdapterGL30_glPushMatrix(); - $var7 = (($var6 % 8 | 0) / 8.0 - 0.5) / 64.0; - $var8 = (($var6 / 8 | 0) / 8.0 - 0.5) / 64.0; - var$8 = nleg_EaglerAdapterGL30_deevis; - var$8.$x = $var7; - var$8.$y = $var8; - var$8.$z = 0.0; - 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; - ji_FilterOutputStream__init_0(var$9, new jl_ConsoleOutputStreamStderr); - var$8 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_(var$8); - var$9.$sb = var$8; - var$9.$buffer0 = $rt_createCharArray(32); - var$9.$autoFlush = 0; - var$9.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = var$9; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - $panTimer = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $this.$start6)) * 0.029999999329447746; - nleg_EaglerAdapterGL30_glRotatef(nms_MathHelper_sin($panTimer / 400.0) * 25.0 + 20.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$panTimer * 0.10000000149011612, 0.0, 1.0, 0.0); - $var10 = 0; - while ($var10 < 6) { - nleg_EaglerAdapterGL30_glPushMatrix(); - if ($var10 == 1) - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 1.0, 0.0); - if ($var10 == 2) - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 1.0, 0.0); - if ($var10 == 3) - nleg_EaglerAdapterGL30_glRotatef((-90.0), 0.0, 1.0, 0.0); - if ($var10 == 4) - nleg_EaglerAdapterGL30_glRotatef(90.0, 1.0, 0.0, 0.0); - if ($var10 == 5) - nleg_EaglerAdapterGL30_glRotatef((-90.0), 1.0, 0.0, 0.0); - nle_TextureLocation_bindTexture(nms_GuiMainMenu_titlePanoramaPaths.data[$var10]); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_setColorRGBA_I($var4, 16777215, 255 / ($var6 + 1 | 0) | 0); - nlea_Tessellator_addVertexWithUV($var4, (-1.0), (-1.0), 1.0, 0.0, 0.0); - nlea_Tessellator_addVertexWithUV($var4, 1.0, (-1.0), 1.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var4, 1.0, 1.0, 1.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var4, (-1.0), 1.0, 1.0, 0.0, 1.0); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var10 = $var10 + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 0); - $var6 = $var6 + 1 | 0; - } - $var4.$xOffset = 0.0; - $var4.$yOffset = 0.0; - $var4.$zOffset = 0.0; - nlea_EaglerAdapterImpl2_webgl.colorMask(!!1, !!1, !!1, !!1); - nleg_EaglerAdapterGL30_matrixMode = 9; - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_matrixMode = 10; - nleg_EaglerAdapterGL30_glPopMatrix(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glEnable(4); -} -function nms_GuiMainMenu_rotateAndBlurSkybox($this, $par1) { - var $var5, $var2, var$4, $var4, $var4_0, $var6, $var7, var$9, var$10, var$11, var$12, var$13, var$14; - $var5 = nms_GuiMainMenu_viewportTexture; - nleg_EaglerAdapterGL30_$callClinit(); - $var2 = nleg_EaglerAdapterGL30_texObjects; - $var2 = $var5 < $var2.$size3 && $var5 >= 0 ? $var2.$values.data[$var5] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = nlea_EaglerAdapterImpl2_webgl; - $var2 = $var2 !== null ? $var2.$obj : null; - var$4.bindTexture(3553, $var2); - $this.$mc4.$renderEngine.$boundTexture = (-1); - nlea_EaglerAdapterImpl2_webgl.copyTexSubImage2D(3553, 0, 0, 0, 0, 0, 256, 256); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nlea_EaglerAdapterImpl2_webgl.colorMask(!!1, !!1, !!1, !!1); - nlea_Tessellator_$callClinit(); - $var2 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var2, 98); - $var4 = 0; - while ($var4 < 3) { - $var4_0 = $var4 + 1 | 0; - nlea_Tessellator_setColorRGBA($var2, 255, 255, 255, 1.0 / $var4_0 * 255.0 | 0); - $var5 = $this.$width0; - $var6 = $this.$height0; - $var7 = ($var4 - 1 | 0) / 256.0; - var$9 = $var5; - var$10 = $var6; - var$11 = $this.$zLevel; - var$12 = 0.0 + $var7; - $var2.$hasTexture = 1; - var$13 = var$12; - $var2.$textureU = var$13; - $var2.$textureV = 0.0; - nlea_Tessellator_addVertex($var2, var$9, var$10, var$11); - var$12 = $this.$zLevel; - var$14 = 1.0 + $var7; - $var2.$hasTexture = 1; - $var7 = var$14; - $var2.$textureU = $var7; - $var2.$textureV = 0.0; - nlea_Tessellator_addVertex($var2, var$9, 0.0, var$12); - var$11 = $this.$zLevel; - $var2.$hasTexture = 1; - $var2.$textureU = $var7; - $var2.$textureV = 1.0; - nlea_Tessellator_addVertex($var2, 0.0, 0.0, var$11); - var$11 = $this.$zLevel; - $var2.$hasTexture = 1; - $var2.$textureU = var$13; - $var2.$textureV = 1.0; - nlea_Tessellator_addVertex($var2, 0.0, var$10, var$11); - $var4 = $var4_0; - } - nlea_Tessellator_draw($var2); - nlea_EaglerAdapterImpl2_webgl.colorMask(!!1, !!1, !!1, !!1); - $this.$mc4.$renderEngine.$boundTexture = (-1); -} -function nms_GuiMainMenu_renderSkybox($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var8, var$9, var$10, var$11, var$12, var$13; - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2__wglViewport(0, 0, 256, 256); - nms_GuiMainMenu_drawPanorama($this, $par1, $par2, $par3); - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glEnable(2); - nms_GuiMainMenu_rotateAndBlurSkybox($this, $par3); - nms_GuiMainMenu_rotateAndBlurSkybox($this, $par3); - nms_GuiMainMenu_rotateAndBlurSkybox($this, $par3); - nms_GuiMainMenu_rotateAndBlurSkybox($this, $par3); - nms_GuiMainMenu_rotateAndBlurSkybox($this, $par3); - nms_GuiMainMenu_rotateAndBlurSkybox($this, $par3); - nms_GuiMainMenu_rotateAndBlurSkybox($this, $par3); - nms_GuiMainMenu_rotateAndBlurSkybox($this, $par3); - nlea_EaglerAdapterImpl2__wglViewport(0, 0, $this.$mc4.$displayWidth, $this.$mc4.$displayHeight); - nlea_Tessellator_$callClinit(); - $var4 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var4, 98); - $var5 = $this.$width0 <= $this.$height0 ? 120.0 / $this.$height0 : 120.0 / $this.$width0; - $var6 = $this.$height0 * $var5 / 256.0; - $var7 = $this.$width0 * $var5 / 256.0; - nleg_EaglerAdapterGL30_glTexParameteri(2, 47, 49); - nleg_EaglerAdapterGL30_glTexParameteri(2, 48, 49); - nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); - $var8 = $this.$width0; - var$9 = $this.$height0; - var$10 = $this.$zLevel; - var$11 = 0.5 - $var6; - var$12 = 0.5 + $var7; - $var4.$hasTexture = 1; - $par3 = var$11; - $var4.$textureU = $par3; - $var5 = var$12; - $var4.$textureV = $var5; - nlea_Tessellator_addVertex($var4, 0.0, var$9, var$10); - var$13 = $var8; - var$10 = $this.$zLevel; - var$11 = 0.5 - $var7; - $var4.$hasTexture = 1; - $var4.$textureU = $par3; - $var7 = var$11; - $var4.$textureV = $var7; - nlea_Tessellator_addVertex($var4, var$13, var$9, var$10); - var$10 = $this.$zLevel; - var$11 = 0.5 + $var6; - $var4.$hasTexture = 1; - $par3 = var$11; - $var4.$textureU = $par3; - $var4.$textureV = $var7; - nlea_Tessellator_addVertex($var4, var$13, 0.0, var$10); - var$10 = $this.$zLevel; - $var4.$hasTexture = 1; - $var4.$textureU = $par3; - $var4.$textureV = $var5; - nlea_Tessellator_addVertex($var4, 0.0, 0.0, var$10); - nlea_Tessellator_draw($var4); -} -function nms_GuiMainMenu_drawScreen($this, $par1, $par2, $par3) { - var $var6, $x, $w, $y, $lines, $i, $offset; - $this.$mousex0 = $par1; - $this.$mousey0 = $par2; - nms_GuiMainMenu_renderSkybox($this, $par1, $par2, $par3); - $var6 = ($this.$width0 / 2 | 0) - 137 | 0; - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-2130706433), 16777215); - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, 0, (-2147483648)); - nle_TextureLocation_bindTexture(nms_GuiMainMenu_mclogo); - nms_Gui_drawTexturedModalRect($this, $var6 + 0 | 0, 30, 0, 0, 99, 44); - $x = $var6 + 99 | 0; - nms_Gui_drawTexturedModalRect($this, $x, 30, 129, 0, 27, 44); - $x = $x + 26 | 0; - nms_Gui_drawTexturedModalRect($this, $x, 30, 126, 0, 3, 44); - nms_Gui_drawTexturedModalRect($this, $x + 3 | 0, 30, 99, 0, 26, 44); - nms_Gui_drawTexturedModalRect($this, $var6 + 154 | 0, 30, 0, 45, 155, 44); - nms_Gui_drawString($this, $this.$fontRenderer0, $rt_s(743), 2, $this.$height0 - 20 | 0, 16777215); - nms_Gui_drawString($this, $this.$fontRenderer0, $rt_s(744), 2, $this.$height0 - 10 | 0, 16777215); - nms_Gui_drawString($this, $this.$fontRenderer0, $rt_s(745), ($this.$width0 - nms_FontRenderer_getStringWidth($this.$fontRenderer0, $rt_s(745)) | 0) - 2 | 0, $this.$height0 - 10 | 0, 16777215); - nms_Gui_drawString($this, $this.$fontRenderer0, $rt_s(746), ($this.$width0 - nms_FontRenderer_getStringWidth($this.$fontRenderer0, $rt_s(746)) | 0) - 2 | 0, $this.$height0 - 20 | 0, 16777215); - if ($this.$field_92025_p !== null && jl_String_length($this.$field_92025_p) > 0) { - nms_Gui_drawRect($this.$field_92022_t - 2 | 0, $this.$field_92021_u - 2 | 0, $this.$field_92020_v + 2 | 0, $this.$field_92019_w - 1 | 0, 1428160512); - nms_Gui_drawString($this, $this.$fontRenderer0, $this.$field_92025_p, $this.$field_92022_t, $this.$field_92021_u, 16777215); - } - $w = (nms_FontRenderer_getStringWidth($this.$fontRenderer0, $rt_s(739)) * 3 | 0) / 4 | 0; - if (!$this.$showAck && $par1 >= (($this.$width0 - $w | 0) - 4 | 0) && $par1 <= $this.$width0 && $par2 >= 0 && $par2 <= 9) - nms_Gui_drawRect(($this.$width0 - $w | 0) - 4 | 0, 0, $this.$width0, 9, 1426063513); - else - nms_Gui_drawRect(($this.$width0 - $w | 0) - 4 | 0, 0, $this.$width0, 9, 1428160512); - a: { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(($this.$width0 - $w | 0) - 2 | 0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.75, 0.75, 0.75); - nms_Gui_drawString($this, $this.$fontRenderer0, $rt_s(739), 0, 0, 16777215); - nleg_EaglerAdapterGL30_glPopMatrix(); - $x = (nms_FontRenderer_getStringWidth($this.$fontRenderer0, $rt_s(740)) * 3 | 0) / 4 | 0; - if (!$this.$showAck && $par1 >= 0) { - $y = $x + 4 | 0; - if ($par1 <= $y && $par2 >= 0 && $par2 <= 9) { - nms_Gui_drawRect(0, 0, $y, 9, 1426063513); - break a; - } - } - nms_Gui_drawRect(0, 0, $x + 4 | 0, 9, 1428160512); - } - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(2.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.75, 0.75, 0.75); - nms_Gui_drawString($this, $this.$fontRenderer0, $rt_s(740), 0, 0, 16777215); - nleg_EaglerAdapterGL30_glPopMatrix(); - if (!$this.$showAck) - nms_GuiScreen_drawScreen($this, $par1, $par2, $par3); - else { - nms_GuiScreen_drawScreen($this, 0, 0, $par3); - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - $x = ($this.$width0 - 345 | 0) / 2 | 0; - $y = ($this.$height0 - 230 | 0) / 2 | 0; - nle_TextureLocation_bindTexture(nms_GuiMainMenu_ackbk); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef($x, $y, 0.0); - nleg_EaglerAdapterGL30_glScalef(1.3899999856948853, 1.3899999856948853, 1.3899999856948853); - nms_Gui_drawTexturedModalRect($this, 0, 0, 0, 0, 248, 166); - nleg_EaglerAdapterGL30_glPopMatrix(); - nle_TextureLocation_bindTexture(nms_GuiMainMenu_beaconx); - nms_Gui_drawTexturedModalRect($this, $x + 323 | 0, $y + 7 | 0, 114, 223, 13, 13); - $lines = ju_ArrayList_size($this.$ackLines); - if ($this.$scrollPosition < 0) - $this.$scrollPosition = 0; - if (($this.$scrollPosition + 21 | 0) > $lines) - $this.$scrollPosition = $lines - 21 | 0; - $i = 0; - $par2 = $x + 10 | 0; - $var6 = $y + 10 | 0; - while ($i < 21) { - nms_FontRenderer_drawString0($this.$fontRenderer0, ju_ArrayList_get($this.$ackLines, $this.$scrollPosition + $i | 0), $par2, $var6 + ($i * 10 | 0) | 0, 4210784); - $i = $i + 1 | 0; - } - $offset = (193 * $this.$scrollPosition | 0) / $lines | 0; - $par1 = $x + 326 | 0; - $par2 = $y + 27 | 0; - $x = $x + 334 | 0; - nms_Gui_drawRect($par1, $par2, $x, $y + 220 | 0, 855638048); - nms_Gui_drawRect($par1, $par2 + $offset | 0, $x, (($par2 + (4053 / $lines | 0) | 0) + $offset | 0) + 1 | 0, 1711276032); - } -} -function nms_GuiMainMenu_updateScreen($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - if (nlea_EaglerAdapterImpl2_buttonStates.data[0] && $this.$dragstart > 0) { - $this.$scrollPosition = ($rt_imul($this.$mousey0 - $this.$dragstart | 0, $this.$ackLines.$size0) / 193 | 0) + $this.$dragstartI | 0; - if ($this.$scrollPosition < 0) - $this.$scrollPosition = 0; - if (($this.$scrollPosition + 21 | 0) > $this.$ackLines.$size0) - $this.$scrollPosition = $this.$ackLines.$size0 - 21 | 0; - } else - $this.$dragstart = (-1); -} -function nms_GuiMainMenu__clinit_() { - var var$1, var$2, var$3; - nms_GuiMainMenu_rand = new ju_Random; - nms_GuiMainMenu_viewportTexture = (-1); - nms_GuiMainMenu_field_96140_r = 0; - nms_GuiMainMenu_field_96139_s = 0; - var$1 = $rt_createArray(nle_TextureLocation, 6); - var$2 = var$1.data; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(747); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[0] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(748); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[1] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(749); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[2] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(750); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[3] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(751); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[4] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(752); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[5] = var$3; - nms_GuiMainMenu_titlePanoramaPaths = var$1; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(753); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - nms_GuiMainMenu_mclogo = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(754); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - nms_GuiMainMenu_ackbk = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(755); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - nms_GuiMainMenu_beaconx = var$3; -} -function cbpu_CRC() { - jl_Object.call(this); -} -var cbpu_CRC_crcTable = null; -function cbpu_CRC__init_0() { - var var_0 = new cbpu_CRC(); - cbpu_CRC__init_(var_0); - return var_0; -} -function cbpu_CRC__init_($this) { - return; -} -function cbpu_CRC_updateCrc($crc, $buf, $size) { - var $i, var$5; - $i = 0; - while ($i < $size) { - var$5 = $buf.data; - $crc = Long_xor(cbpu_CRC_crcTable.data[Long_and(Long_xor($crc, Long_fromInt(var$5[$i])), Long_fromInt(255)).lo], Long_shr($crc, 8)); - $i = $i + 1 | 0; - } - return $crc; -} -function cbpu_CRC__clinit_() { - var $i, $c, $k; - cbpu_CRC_crcTable = $rt_createLongArray(256); - $i = 0; - while ($i < 256) { - $c = Long_fromInt($i); - $k = 0; - while ($k < 8) { - $c = Long_eq(Long_and($c, Long_fromInt(1)), Long_ZERO) ? Long_shr($c, 1) : Long_xor(new Long(3988292384, 0), Long_shr($c, 1)); - $k = $k + 1 | 0; - } - cbpu_CRC_crcTable.data[$i] = $c; - $i = $i + 1 | 0; - } -} -function jn_CharBufferImpl() { - jn_CharBuffer.call(this); -} -function jn_CharBufferImpl_compact($this) { - var var$1, $sz, $src, $i, var$5, var$6; - if ($this.$readOnly0) { - var$1 = new jn_ReadOnlyBufferException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - a: { - $sz = $this.$limit - $this.$position | 0; - if ($this.$position > 0) { - $src = $this.$position; - $i = 0; - while (true) { - if ($i >= $sz) - break a; - var$5 = $src + 1 | 0; - var$6 = $this.$array0.data[$src + $this.$start0 | 0]; - $this.$array0.data[$i + $this.$start0 | 0] = var$6; - $i = $i + 1 | 0; - $src = var$5; - } - } - } - $this.$position = $sz; - $this.$limit = $this.$capacity; - $this.$mark = (-1); - return $this; -} -function jn_CharBufferImpl_isReadOnly($this) { - return $this.$readOnly0; -} -function jn_CharBufferOverArray() { - var a = this; jn_CharBufferImpl.call(a); - a.$readOnly0 = 0; - a.$start0 = 0; - a.$array0 = null; -} -function jn_CharBufferOverArray_getChar($this, $index) { - return $this.$array0.data[$index + $this.$start0 | 0]; -} -function jn_CharBufferOverArray_putChar($this, $index, $value) { - $this.$array0.data[$index + $this.$start0 | 0] = $value; -} -function jn_CharBufferOverArray_isArrayPresent($this) { - return 1; -} -function jn_CharBufferOverArray_getArray($this) { - return $this.$array0; -} -function jn_CharBufferOverArray_readOnly($this) { - return $this.$readOnly0; -} -function jnc_CharsetEncoder() { - var a = this; jl_Object.call(a); - a.$charset0 = null; - a.$replacement = null; - a.$averageBytesPerChar = 0.0; - a.$maxBytesPerChar = 0.0; - a.$malformedAction = null; - a.$unmappableAction = null; - a.$status = 0; -} -function jnc_CharsetEncoder_checkReplacement($this, $replacement) { - var var$2, var$3; - if ($replacement !== null) { - var$2 = $replacement.data.length; - if (var$2 && var$2 >= $this.$maxBytesPerChar) - return; - } - var$3 = new jl_IllegalArgumentException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(756); - $rt_throw(var$3); -} -function jnc_CharsetEncoder_onMalformedInput($this, $newAction) { - var var$2; - if ($newAction !== null) { - $this.$malformedAction = $newAction; - return $this; - } - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(356); - $rt_throw(var$2); -} -function jnc_CharsetEncoder_implOnMalformedInput($this, $newAction) { - return; -} -function jnc_CharsetEncoder_onUnmappableCharacter($this, $newAction) { - var var$2; - if ($newAction !== null) { - $this.$unmappableAction = $newAction; - return $this; - } - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(356); - $rt_throw(var$2); -} -function jnc_CharsetEncoder_implOnUnmappableCharacter($this, $newAction) { - return; -} -function jnc_CharsetEncoder_encode0($this, $in, $out, $endOfInput) { - var $result, $e, $remaining, $action, var$8, $$je; - a: { - if ($this.$status != 3) { - if ($endOfInput) - break a; - if ($this.$status != 2) - break a; - } - $in = new jl_IllegalStateException; - $in.$suppressionEnabled = 1; - $in.$writableStackTrace = 1; - $rt_throw($in); - } - $this.$status = !$endOfInput ? 1 : 2; - while (true) { - try { - $result = jnci_BufferedEncoder_encodeLoop($this, $in, $out); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_RuntimeException) { - $e = $$je; - $in = new jnc_CoderMalfunctionError; - $in.$suppressionEnabled = 1; - $in.$writableStackTrace = 1; - $in.$cause = $e; - $rt_throw($in); - } else { - throw $$e; - } - } - if ($result.$kind ? 0 : 1) { - if (!$endOfInput) - return $result; - $remaining = $in.$limit - $in.$position | 0; - if ($remaining <= 0) - return $result; - $result = new jnc_CoderResult; - $result.$kind = 2; - $result.$length2 = $remaining; - } else if ($result.$kind != 1 ? 0 : 1) - break; - $action = !($result.$kind != 3 ? 0 : 1) ? $this.$malformedAction : $this.$unmappableAction; - b: { - if ($action !== jnc_CodingErrorAction_REPLACE) { - if ($action === jnc_CodingErrorAction_IGNORE) - break b; - else - return $result; - } - if (($out.$limit - $out.$position | 0) < $this.$replacement.data.length) - return jnc_CoderResult_OVERFLOW; - var$8 = $this.$replacement; - jn_ByteBuffer_put0($out, var$8, 0, var$8.data.length); - } - jn_Buffer_position0($in, $in.$position + jnc_CoderResult_length($result) | 0); - } - return $result; -} -function jnc_CharsetEncoder_encode($this, $in) { - var $output, $result, var$4, var$5, $output_0, var$7, var$8, var$9; - if (!($in.$limit - $in.$position | 0)) - return jn_ByteBuffer_allocate(0); - $this.$status = 0; - $output = jn_ByteBuffer_allocate(($in.$limit - $in.$position | 0) * $this.$averageBytesPerChar | 0); - while (true) { - $result = jnc_CharsetEncoder_encode0($this, $in, $output, 0); - if ($result === jnc_CoderResult_UNDERFLOW) - break; - if ($result !== jnc_CoderResult_OVERFLOW) { - if (!jnc_CoderResult_isError($result)) - continue; - jnc_CoderResult_throwException($result); - continue; - } - var$4 = $output.$array; - var$4 = ju_Arrays_copyOf0(var$4, var$4.data.length * 2 | 0); - var$5 = var$4.data.length; - $output_0 = new jn_ByteBufferImpl; - var$7 = 0 + var$5 | 0; - $output_0.$mark = (-1); - $output_0.$capacity = var$5; - $output_0.$limit = var$5; - $output_0.$order = jn_ByteOrder_BIG_ENDIAN; - $output_0.$start = 0; - $output_0.$array = var$4; - $output_0.$position = 0; - $output_0.$limit = var$7; - $output_0.$direct = 0; - $output_0.$readOnly = 0; - jn_Buffer_position0($output_0, $output.$position); - $output = $output_0; - } - $in = jnc_CharsetEncoder_encode0($this, $in, $output, 1); - if (jnc_CoderResult_isError($in)) - jnc_CoderResult_throwException($in); - while (true) { - $in = jnc_CharsetEncoder_flush($this, $output); - if ($in.$kind ? 0 : 1) - break; - if (!($in.$kind != 1 ? 0 : 1)) - continue; - var$4 = $output.$array; - var$4 = ju_Arrays_copyOf0(var$4, var$4.data.length * 2 | 0); - var$8 = var$4.data.length; - $in = new jn_ByteBufferImpl; - var$9 = 0 + var$8 | 0; - $in.$mark = (-1); - $in.$capacity = var$8; - $in.$limit = var$8; - $in.$order = jn_ByteOrder_BIG_ENDIAN; - $in.$start = 0; - $in.$array = var$4; - $in.$position = 0; - $in.$limit = var$9; - $in.$direct = 0; - $in.$readOnly = 0; - jn_Buffer_position0($in, $output.$position); - $output = $in; - } - $output.$limit = $output.$position; - $output.$position = 0; - $output.$mark = (-1); - return $output; -} -function jnc_CharsetEncoder_flush($this, $out) { - var $result; - if ($this.$status != 2 && $this.$status != 4) { - $out = new jl_IllegalStateException; - $out.$suppressionEnabled = 1; - $out.$writableStackTrace = 1; - $rt_throw($out); - } - $result = jnc_CoderResult_UNDERFLOW; - if ($result === jnc_CoderResult_UNDERFLOW) - $this.$status = 3; - return $result; -} -function jnc_CharsetEncoder_implFlush($this, $out) { - return jnc_CoderResult_UNDERFLOW; -} -function jnc_CharsetEncoder_reset($this) { - $this.$status = 0; - return $this; -} -function jnc_CharsetEncoder_implReset($this) { - return; -} -function jnc_CoderResult() { - var a = this; jl_Object.call(a); - a.$kind = 0; - a.$length2 = 0; -} -var jnc_CoderResult_UNDERFLOW = null; -var jnc_CoderResult_OVERFLOW = null; -function jnc_CoderResult_isUnderflow($this) { - return $this.$kind ? 0 : 1; -} -function jnc_CoderResult_isOverflow($this) { - return $this.$kind != 1 ? 0 : 1; -} -function jnc_CoderResult_isError($this) { - var var$1; - var$1 = $this.$kind != 2 ? 0 : 1; - return !var$1 && !($this.$kind != 3 ? 0 : 1) ? 0 : 1; -} -function jnc_CoderResult_isMalformed($this) { - return $this.$kind != 2 ? 0 : 1; -} -function jnc_CoderResult_isUnmappable($this) { - return $this.$kind != 3 ? 0 : 1; -} -function jnc_CoderResult_length($this) { - var var$1, var$2; - var$1 = $this.$kind != 2 ? 0 : 1; - if (!var$1 && !($this.$kind != 3 ? 0 : 1) ? 0 : 1) - return $this.$length2; - var$2 = new jl_UnsupportedOperationException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); -} -function jnc_CoderResult_malformedForLength($length) { - var var$2; - var$2 = new jnc_CoderResult; - var$2.$kind = 2; - var$2.$length2 = $length; - return var$2; -} -function jnc_CoderResult_throwException($this) { - var var$1, var$2; - switch ($this.$kind) { - case 0: - var$1 = new jnc_BufferUnderflowException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - case 1: - var$1 = new jnc_BufferOverflowException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - case 2: - var$1 = new jnc_MalformedInputException; - var$2 = $this.$length2; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - var$1.$length3 = var$2; - $rt_throw(var$1); - case 3: - var$1 = new jnc_UnmappableCharacterException; - var$2 = $this.$length2; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - var$1.$length4 = var$2; - $rt_throw(var$1); - default: - } -} -function jnc_CoderResult__clinit_() { - var var$1; - var$1 = new jnc_CoderResult; - var$1.$kind = 0; - var$1.$length2 = 0; - jnc_CoderResult_UNDERFLOW = var$1; - var$1 = new jnc_CoderResult; - var$1.$kind = 1; - var$1.$length2 = 0; - jnc_CoderResult_OVERFLOW = var$1; -} -function jl_ThreadLocal() { - var a = this; jl_Object.call(a); - a.$initialized = 0; - a.$value7 = null; -} -function jl_ThreadLocal__init_0() { - var var_0 = new jl_ThreadLocal(); - jl_ThreadLocal__init_(var_0); - return var_0; -} -function jl_ThreadLocal__init_($this) { - return; -} -function jl_ThreadLocal_get($this) { - var var$1, var$2; - if (!$this.$initialized) { - var$1 = new nms_AABBPool; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - var$1.$listAABB = var$2; - var$1.$nextPoolIndex = 0; - var$1.$maxPoolIndex = 0; - var$1.$numCleans = 0; - var$1.$maxNumCleans = 300; - var$1.$numEntriesToRemove = 2000; - $this.$value7 = var$1; - $this.$initialized = 1; - } - return $this.$value7; -} -function nms_AABBLocalPool() { - jl_ThreadLocal.call(this); -} -function nms_AABBLocalPool__init_0() { - var var_0 = new nms_AABBLocalPool(); - nms_AABBLocalPool__init_(var_0); - return var_0; -} -function nms_AABBLocalPool__init_($this) { - return; -} -function nms_AABBLocalPool_createNewDefaultPool($this) { - var var$1, var$2; - var$1 = new nms_AABBPool; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - var$1.$listAABB = var$2; - var$1.$nextPoolIndex = 0; - var$1.$maxPoolIndex = 0; - var$1.$numCleans = 0; - var$1.$maxNumCleans = 300; - var$1.$numEntriesToRemove = 2000; - return var$1; -} -function nms_AABBLocalPool_initialValue($this) { - var var$1, var$2; - var$1 = new nms_AABBPool; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - var$1.$listAABB = var$2; - var$1.$nextPoolIndex = 0; - var$1.$maxPoolIndex = 0; - var$1.$numCleans = 0; - var$1.$maxNumCleans = 300; - var$1.$numEntriesToRemove = 2000; - return var$1; -} -function jt_DecimalFormatSymbols() { - var a = this; jl_Object.call(a); - a.$locale0 = null; - a.$zeroDigit = 0; - a.$groupingSeparator = 0; - a.$decimalSeparator = 0; - a.$perMill = 0; - a.$percent = 0; - a.$digit = 0; - a.$patternSeparator = 0; - a.$nan = null; - a.$infinity = null; - a.$minusSign = 0; - a.$monetaryDecimalSeparator = 0; - a.$exponentSeparator = null; -} -function jt_DecimalFormatSymbols__init_0() { - var var_0 = new jt_DecimalFormatSymbols(); - jt_DecimalFormatSymbols__init_(var_0); - return var_0; -} -function jt_DecimalFormatSymbols__init_1(var_0) { - var var_1 = new jt_DecimalFormatSymbols(); - jt_DecimalFormatSymbols__init_2(var_1, var_0); - return var_1; -} -function jt_DecimalFormatSymbols__init_($this) { - $this.$locale0 = ju_Locale_defaultLocale; - jt_DecimalFormatSymbols_initData($this); -} -function jt_DecimalFormatSymbols__init_2($this, $locale) { - $this.$locale0 = $locale; - jt_DecimalFormatSymbols_initData($this); -} -function jt_DecimalFormatSymbols_initData($this) { - var $data; - $data = otciu_CLDRHelper_resolveDecimalData($this.$locale0.$languageCode, $this.$locale0.$countryCode); - $this.$zeroDigit = 48; - $this.$groupingSeparator = $data.groupingSeparator & 65535; - $this.$decimalSeparator = $data.decimalSeparator & 65535; - $this.$perMill = $data.perMille & 65535; - $this.$percent = $data.percent & 65535; - $this.$digit = 35; - $this.$patternSeparator = 59; - $this.$nan = ($data.naN !== null ? $rt_str($data.naN) : null); - $this.$infinity = ($data.infinity !== null ? $rt_str($data.infinity) : null); - $this.$minusSign = $data.minusSign & 65535; - $this.$monetaryDecimalSeparator = $data.decimalSeparator & 65535; - $this.$exponentSeparator = ($data.exponentSeparator !== null ? $rt_str($data.exponentSeparator) : null); -} -function jt_DecimalFormatSymbols_getZeroDigit($this) { - return $this.$zeroDigit; -} -function jt_DecimalFormatSymbols_getGroupingSeparator($this) { - return $this.$groupingSeparator; -} -function jt_DecimalFormatSymbols_getPerMill($this) { - return $this.$perMill; -} -function jt_DecimalFormatSymbols_getPercent($this) { - return $this.$percent; -} -function jt_DecimalFormatSymbols_getLocale($this) { - return $this.$locale0; -} -function jt_DecimalFormatSymbols_getDecimalSeparator($this) { - return $this.$decimalSeparator; -} -function jt_DecimalFormatSymbols_getNaN($this) { - return $this.$nan; -} -function jt_DecimalFormatSymbols_getInfinity($this) { - return $this.$infinity; -} -function jt_DecimalFormatSymbols_getMinusSign($this) { - return $this.$minusSign; -} -function jt_DecimalFormatSymbols_getExponentSeparator($this) { - return $this.$exponentSeparator; -} -function jt_DecimalFormatSymbols_clone($this) { - var var$1, $e, var$3, $$je; - a: { - try { - var$1 = jl_Object_clone($this); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_CloneNotSupportedException) { - $e = $$je; - break a; - } else { - throw $$e; - } - } - return var$1; - } - var$3 = new jl_AssertionError; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(723); - var$3.$cause = $e; - $rt_throw(var$3); -} -function nms_FontRenderer() { - var a = this; jl_Object.call(a); - a.$charWidth = null; - a.$FONT_HEIGHT = 0; - a.$fontRandom = null; - a.$glyphWidth = null; - a.$colorCode = null; - a.$fontTexture = null; - a.$fontTextureName = null; - a.$renderEngine0 = null; - a.$posX2 = 0.0; - a.$posY2 = 0.0; - a.$unicodeFlag = 0; - a.$bidiFlag = 0; - a.$red = 0.0; - a.$blue = 0.0; - a.$green = 0.0; - a.$alpha0 = 0.0; - a.$textColor = 0; - a.$randomStyle = 0; - a.$boldStyle = 0; - a.$italicStyle = 0; - a.$underlineStyle = 0; - a.$strikethroughStyle = 0; -} -function nms_FontRenderer__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_FontRenderer(); - nms_FontRenderer__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_FontRenderer__init_0($this, $par1GameSettings, $par2Str, $par3RenderEngine, $par4) { - var var$5, $var5, $var6, $var10, $var11, $var12; - $this.$charWidth = $rt_createIntArray(256); - $this.$FONT_HEIGHT = 9; - $this.$fontRandom = new ju_Random; - $this.$glyphWidth = $rt_createByteArray(65536); - $this.$colorCode = $rt_createIntArray(32); - $this.$randomStyle = 0; - $this.$boldStyle = 0; - $this.$italicStyle = 0; - $this.$underlineStyle = 0; - $this.$strikethroughStyle = 0; - var$5 = new nle_TextureLocation; - var$5.$path = $par2Str; - var$5.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$5); - $this.$fontTexture = var$5; - $this.$fontTextureName = $par2Str; - $this.$renderEngine0 = $par3RenderEngine; - $this.$unicodeFlag = $par4; - nms_FontRenderer_readFontData($this); - nle_TextureLocation_bindTexture($this.$fontTexture); - $var5 = 0; - while ($var5 < 32) { - $var6 = ($var5 >> 3 & 1) * 85 | 0; - $var10 = (($var5 >> 2 & 1) * 170 | 0) + $var6 | 0; - $var11 = (($var5 >> 1 & 1) * 170 | 0) + $var6 | 0; - $var12 = (($var5 >> 0 & 1) * 170 | 0) + $var6 | 0; - if ($var5 == 6) - $var10 = $var10 + 85 | 0; - if ($par1GameSettings.$anaglyph) { - $par4 = $var10 * 30 | 0; - $var10 = (($par4 + ($var11 * 59 | 0) | 0) + ($var12 * 11 | 0) | 0) / 100 | 0; - $var11 = ($par4 + ($var11 * 70 | 0) | 0) / 100 | 0; - $var12 = ($par4 + ($var12 * 70 | 0) | 0) / 100 | 0; - } - if ($var5 >= 16) { - $var10 = $var10 / 4 | 0; - $var11 = $var11 / 4 | 0; - $var12 = $var12 / 4 | 0; - } - $this.$colorCode.data[$var5] = ($var10 & 255) << 16 | ($var11 & 255) << 8 | $var12 & 255; - $var5 = $var5 + 1 | 0; - } -} -function nms_FontRenderer_readFontData($this) { - var var$1, var$2, var$3; - nlea_EaglerAdapterImpl2_$callClinit(); - if (!($rt_s(757) === $rt_s(58) ? 1 : jl_String_startsWith($rt_s(757), $rt_s(58), 0))) - var$1 = $rt_s(757); - else { - var$2 = $rt_s(757).$characters.data.length; - if (1 > var$2) { - var$3 = new jl_IndexOutOfBoundsException; - jl_Throwable__init_(var$3); - $rt_throw(var$3); - } - var$1 = jl_String__init_0($rt_s(757).$characters, 1, var$2 - 1 | 0); - } - var$3 = nle_AssetRepository_filePool; - if (var$1 !== null) { - var$2 = jl_String_hashCode(var$1); - var$3 = ju_HashMap_findNonNullKeyEntry(var$3, var$1, var$2 & (var$3.$elementData.data.length - 1 | 0), var$2); - } else { - var$3 = var$3.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - $this.$glyphWidth = var$3 === null ? null : var$3.$value0; - nms_FontRenderer_readFontTexture($this, $this.$fontTextureName); -} -function nms_FontRenderer_readFontTexture($this, $par1Str) { - var $e, $var3, $var6, $var5, $var7, $var8, $var9, $var10, $var11, $var12; - nlea_EaglerAdapterImpl2_$callClinit(); - if (!($par1Str === $rt_s(58) ? 1 : jl_String_startsWith($par1Str, $rt_s(58), 0))) - $e = $par1Str; - else { - $var3 = $par1Str.$characters.data.length; - if (1 > $var3) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Str); - $rt_throw($par1Str); - } - $e = jl_String__init_0($par1Str.$characters, 1, $var3 - 1 | 0); - } - $par1Str = nle_AssetRepository_filePool; - if ($e !== null) { - $var6 = jl_String_hashCode($e); - $par1Str = ju_HashMap_findNonNullKeyEntry($par1Str, $e, $var6 & ($par1Str.$elementData.data.length - 1 | 0), $var6); - } else { - $par1Str = $par1Str.$elementData.data[0]; - while ($par1Str !== null && $par1Str.$key !== null) { - $par1Str = $par1Str.$next1; - } - } - $e = nle_EaglerImage_loadImage($par1Str === null ? null : $par1Str.$value0); - $var5 = $e.$data; - $var3 = $e.$w0; - $var6 = 0; - while ($var6 < 256) { - $var7 = $var6 % 16 | 0; - $var8 = $var6 / 16 | 0; - $var9 = 7; - $var7 = $var7 * 8 | 0; - $var8 = $var8 * 8 | 0; - while ($var9 >= 0) { - $var10 = $var7 + $var9 | 0; - $var11 = 1; - $var12 = 0; - while ($var12 < 8 && $var11) { - if (($var5.data[$var10 + $rt_imul($var8 + $var12 | 0, $var3) | 0] & 255) > 0) - $var11 = 0; - $var12 = $var12 + 1 | 0; - } - if (!$var11) - break; - $var9 = $var9 + (-1) | 0; - } - if ($var6 == 32) - $var9 = 2; - $this.$charWidth.data[$var6] = $var9 + 2 | 0; - $var6 = $var6 + 1 | 0; - } -} -function nms_FontRenderer_renderCharAtPos($this, $par1, $par2, $par3) { - return $par2 == 32 ? 4.0 : $par1 > 0 && !$this.$unicodeFlag ? nms_FontRenderer_renderDefaultChar($this, $par1 + 32 | 0, $par3) : nms_FontRenderer_renderUnicodeChar($this, $par2, $par3); -} -function nms_FontRenderer_renderDefaultChar($this, $par1, $par2) { - var $var3, $var4, $var5, $var6, $t, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15; - $var3 = ($par1 % 16 | 0) * 8 | 0; - $var4 = ($par1 / 16 | 0) * 8 | 0; - $var5 = !$par2 ? 0.0 : 1.0; - $var6 = $this.$charWidth.data[$par1] - 0.009999999776482582; - nlea_Tessellator_$callClinit(); - $t = nlea_Tessellator_instance; - var$8 = $this.$posX2 + $var5; - var$9 = $this.$posY2; - var$10 = $var3 / 128.0; - var$11 = $var4 / 128.0; - $t.$hasTexture = 1; - var$12 = var$10; - $t.$textureU = var$12; - var$13 = var$11; - $t.$textureV = var$13; - nlea_Tessellator_addVertex($t, var$8, var$9, 0.0); - var$14 = $this.$posX2 - $var5; - var$9 = $this.$posY2 + 7.989999771118164; - var$8 = ($var4 + 7.989999771118164) / 128.0; - $t.$hasTexture = 1; - $t.$textureU = var$12; - var$12 = var$8; - $t.$textureV = var$12; - nlea_Tessellator_addVertex($t, var$14, var$9, 0.0); - var$14 = $this.$posX2 + $var6 - $var5; - var$8 = $this.$posY2 + 7.989999771118164; - var$10 = ($var3 + $var6) / 128.0; - $t.$hasTexture = 1; - var$15 = var$10; - $t.$textureU = var$15; - $t.$textureV = var$12; - nlea_Tessellator_addVertex($t, var$14, var$8, 0.0); - var$14 = $this.$posX2 + $var6 + $var5; - var$8 = $this.$posY2; - $t.$hasTexture = 1; - $t.$textureU = var$15; - $t.$textureV = var$13; - nlea_Tessellator_addVertex($t, var$14, var$8, 0.0); - return $this.$charWidth.data[$par1]; -} -function nms_FontRenderer_renderUnicodeChar($this, $par1, $par2) { - var $t, $var3, var$5, var$6, var$7, var$8, $var4, $var5, $var6, $var7, $var8, $var9, var$15, $var10, $var11, var$18, var$19, var$20, var$21, var$22, var$23; - if (!$this.$glyphWidth.data[$par1]) - return 0.0; - nlea_Tessellator_$callClinit(); - $t = nlea_Tessellator_instance; - nlea_Tessellator_draw($t); - $var3 = $par1 / 256 | 0; - var$5 = $rt_createArray(jl_Object, 1); - var$5.data[0] = jl_Integer_valueOf($var3); - var$6 = new ju_Formatter; - var$7 = ju_Locale_defaultLocale; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - var$6.$out0 = var$8; - var$6.$locale = var$7; - var$6 = ju_Formatter_toString(ju_Formatter_format(var$6, var$6.$locale, $rt_s(758), var$5)); - var$8 = $this.$renderEngine0; - $var3 = nms_RenderEngine_getTexture(var$8, var$6); - if ($var3 != var$8.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - var$6 = nleg_EaglerAdapterGL30_texObjects; - var$6 = $var3 < var$6.$size3 && $var3 >= 0 ? var$6.$values.data[$var3] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$7 = nlea_EaglerAdapterImpl2_webgl; - var$6 = var$6 !== null ? var$6.$obj : null; - var$7.bindTexture(3553, var$6); - var$8.$boundTexture = $var3; - } - $var4 = $this.$glyphWidth.data[$par1] >>> 4; - $var5 = $this.$glyphWidth.data[$par1] & 15; - $var6 = $var4; - $var7 = $var5 + 1 | 0; - $var8 = (($par1 % 16 | 0) * 16 | 0) + $var6; - $var9 = (($par1 & 255) / 16 | 0) * 16 | 0; - var$15 = $var7 - $var6; - $var10 = var$15 - 0.019999999552965164; - $var11 = !$par2 ? 0.0 : 1.0; - nlea_Tessellator_startDrawing($t, 95); - var$18 = $this.$posX2 + $var11; - var$19 = $this.$posY2; - var$20 = $var8 / 256.0; - var$21 = $var9 / 256.0; - $t.$hasTexture = 1; - $var7 = var$20; - $t.$textureU = $var7; - var$22 = var$21; - $t.$textureV = var$22; - nlea_Tessellator_addVertex($t, var$18, var$19, 0.0); - var$23 = $this.$posX2 - $var11; - var$18 = $this.$posY2 + 7.989999771118164; - var$20 = ($var9 + 15.979999542236328) / 256.0; - $t.$hasTexture = 1; - $t.$textureU = $var7; - $var9 = var$20; - $t.$textureV = $var9; - nlea_Tessellator_addVertex($t, var$23, var$18, 0.0); - $var6 = $this.$posX2; - $var7 = $var10 / 2.0; - var$23 = $var6 + $var7 + $var11; - var$18 = $this.$posY2; - var$20 = ($var8 + $var10) / 256.0; - $t.$hasTexture = 1; - $var8 = var$20; - $t.$textureU = $var8; - $t.$textureV = var$22; - nlea_Tessellator_addVertex($t, var$23, var$18, 0.0); - var$23 = $this.$posX2 + $var7 - $var11; - var$18 = $this.$posY2 + 7.989999771118164; - $t.$hasTexture = 1; - $t.$textureU = $var8; - $t.$textureV = $var9; - nlea_Tessellator_addVertex($t, var$23, var$18, 0.0); - nlea_Tessellator_draw($t); - nle_TextureLocation_bindTexture($this.$fontTexture); - nlea_Tessellator_startDrawing($t, 98); - return var$15 / 2.0 + 1.0; -} -function nms_FontRenderer_drawStringWithShadow($this, $par1Str, $par2, $par3, $par4) { - return nms_FontRenderer_drawString($this, $par1Str, $par2, $par3, $par4, 1); -} -function nms_FontRenderer_drawString0($this, $par1Str, $par2, $par3, $par4) { - return nms_FontRenderer_drawString($this, $par1Str, $par2, $par3, $par4, 0); -} -function nms_FontRenderer_drawString($this, $par1Str, $par2, $par3, $par4, $par5) { - var $var6, $var6_0; - $this.$randomStyle = 0; - $this.$boldStyle = 0; - $this.$italicStyle = 0; - $this.$underlineStyle = 0; - $this.$strikethroughStyle = 0; - if (!$par5) - $var6 = nms_FontRenderer_renderString($this, $par1Str, $par2, $par3, $par4, 0); - else { - $var6_0 = nms_FontRenderer_renderString($this, $par1Str, $par2 + 1 | 0, $par3 + 1 | 0, $par4, 1); - $var6 = nms_FontRenderer_renderString($this, $par1Str, $par2, $par3, $par4, 0); - if ($var6_0 > $var6) - $var6 = $var6_0; - } - return $var6; -} -function nms_FontRenderer_renderStringAtPos($this, $par1Str, $par2) { - var $t, $var3, $var4, $var5, $var5_0, $var6, $var11, $var7, $var8, $var9, $var10, var$14; - nlea_Tessellator_$callClinit(); - $t = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture($this.$fontTexture); - nlea_Tessellator_startDrawingQuads($t); - $var3 = 0; - while ($var3 < jl_String_length($par1Str)) { - a: { - $var4 = jl_String_charAt($par1Str, $var3); - if ($var4 == 167) { - $var5 = $var3 + 1 | 0; - if ($var5 < jl_String_length($par1Str)) { - $var5_0 = jl_String_indexOf0($rt_s(759), jl_Character_toLowerCase(jl_String_charAt($par1Str, $var5))); - $var4 = $rt_compare($var5_0, 16); - if ($var4 >= 0) { - if (!$var4) - $this.$randomStyle = 1; - else if ($var5_0 == 17) - $this.$boldStyle = 1; - else if ($var5_0 == 18) - $this.$strikethroughStyle = 1; - else if ($var5_0 == 19) - $this.$underlineStyle = 1; - else if ($var5_0 == 20) - $this.$italicStyle = 1; - else if ($var5_0 == 21) { - $this.$randomStyle = 0; - $this.$boldStyle = 0; - $this.$strikethroughStyle = 0; - $this.$underlineStyle = 0; - $this.$italicStyle = 0; - nlea_Tessellator_draw($t); - nlea_Tessellator_startDrawingQuads($t); - nleg_EaglerAdapterGL30_glColor4f($this.$red, $this.$blue, $this.$green, $this.$alpha0); - } - } else { - $this.$randomStyle = 0; - $this.$boldStyle = 0; - $this.$strikethroughStyle = 0; - $this.$underlineStyle = 0; - $this.$italicStyle = 0; - if (!($var5_0 >= 0 && $var5_0 <= 15)) - $var5_0 = 15; - if ($par2) - $var5_0 = $var5_0 + 16 | 0; - nlea_Tessellator_draw($t); - nlea_Tessellator_startDrawingQuads($t); - $var6 = $this.$colorCode.data[$var5_0]; - $this.$textColor = $var6; - nleg_EaglerAdapterGL30_glColor4f(($var6 >> 16 & 255) / 255.0, ($var6 >> 8 & 255) / 255.0, ($var6 & 255) / 255.0, $this.$alpha0); - } - break a; - } - } - $var5 = jl_String_indexOf0(nms_ChatAllowedCharacters_allowedCharacters, $var4); - if (!$this.$randomStyle) - $var6 = $var5; - else if ($var5 <= 0) - $var6 = $var5; - else - while (true) { - $var6 = ju_Random_nextInt0($this.$fontRandom, jl_String_length(nms_ChatAllowedCharacters_allowedCharacters)); - if ($this.$charWidth.data[$var5 + 32 | 0] != $this.$charWidth.data[$var6 + 32 | 0]) - continue; - else - break; - } - $var11 = !$this.$unicodeFlag ? 1.0 : 0.5; - $var7 = !($var6 > 0 && !$this.$unicodeFlag) && $par2 ? 1 : 0; - if ($var7) { - $this.$posX2 = $this.$posX2 - $var11; - $this.$posY2 = $this.$posY2 - $var11; - } - $var8 = nms_FontRenderer_renderCharAtPos($this, $var6, $var4, $this.$italicStyle); - if ($var7) { - $this.$posX2 = $this.$posX2 + $var11; - $this.$posY2 = $this.$posY2 + $var11; - } - if ($this.$boldStyle) { - $this.$posX2 = $this.$posX2 + $var11; - if ($var7) { - $this.$posX2 = $this.$posX2 - $var11; - $this.$posY2 = $this.$posY2 - $var11; - } - nms_FontRenderer_renderCharAtPos($this, $var6, $var4, $this.$italicStyle); - $this.$posX2 = $this.$posX2 - $var11; - if ($var7) { - $this.$posX2 = $this.$posX2 + $var11; - $this.$posY2 = $this.$posY2 + $var11; - } - $var8 = $var8 + 1.0; - } - if ($this.$strikethroughStyle) { - $var9 = nlea_Tessellator_instance; - nlea_Tessellator_draw($var9); - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_startDrawingQuads($var9); - nlea_Tessellator_addVertex($var9, $this.$posX2, $this.$posY2 + ($this.$FONT_HEIGHT / 2 | 0), 0.0); - nlea_Tessellator_addVertex($var9, $this.$posX2 + $var8, $this.$posY2 + ($this.$FONT_HEIGHT / 2 | 0), 0.0); - nlea_Tessellator_addVertex($var9, $this.$posX2 + $var8, $this.$posY2 + ($this.$FONT_HEIGHT / 2 | 0) - 1.0, 0.0); - nlea_Tessellator_addVertex($var9, $this.$posX2, $this.$posY2 + ($this.$FONT_HEIGHT / 2 | 0) - 1.0, 0.0); - nlea_Tessellator_draw($var9); - nlea_Tessellator_startDrawingQuads($var9); - nleg_EaglerAdapterGL30_glEnable(2); - } - if ($this.$underlineStyle) { - $var9 = nlea_Tessellator_instance; - nlea_Tessellator_draw($var9); - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_startDrawingQuads($var9); - $var10 = !$this.$underlineStyle ? 0 : (-1); - $var11 = $this.$posX2; - var$14 = $var10; - nlea_Tessellator_addVertex($var9, $var11 + var$14, $this.$posY2 + $this.$FONT_HEIGHT, 0.0); - nlea_Tessellator_addVertex($var9, $this.$posX2 + $var8, $this.$posY2 + $this.$FONT_HEIGHT, 0.0); - nlea_Tessellator_addVertex($var9, $this.$posX2 + $var8, $this.$posY2 + $this.$FONT_HEIGHT - 1.0, 0.0); - nlea_Tessellator_addVertex($var9, $this.$posX2 + var$14, $this.$posY2 + $this.$FONT_HEIGHT - 1.0, 0.0); - nlea_Tessellator_draw($var9); - nlea_Tessellator_startDrawingQuads($var9); - nleg_EaglerAdapterGL30_glEnable(2); - } - $this.$posX2 = $this.$posX2 + ($var8 | 0); - $var5 = $var3; - } - $var3 = $var5 + 1 | 0; - } - nlea_Tessellator_draw($t); -} -function nms_FontRenderer_renderString($this, $par1Str, $par2, $par3, $par4, $par5) { - var var$6, var$7, var$8, var$9; - if ($par1Str === null) - return 0; - if (!($par4 & (-67108864))) - $par4 = $par4 | (-16777216); - if ($par5) - $par4 = ($par4 & 16579836) >> 2 | $par4 & (-16777216); - $this.$red = ($par4 >> 16 & 255) / 255.0; - $this.$blue = ($par4 >> 8 & 255) / 255.0; - $this.$green = ($par4 & 255) / 255.0; - $this.$alpha0 = ($par4 >> 24 & 255) / 255.0; - var$6 = $this.$red; - var$7 = $this.$blue; - var$8 = $this.$green; - var$9 = $this.$alpha0; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = var$6; - nleg_EaglerAdapterGL30_colorG = var$7; - nleg_EaglerAdapterGL30_colorB = var$8; - nleg_EaglerAdapterGL30_colorA = var$9; - $this.$posX2 = $par2; - $this.$posY2 = $par3; - nms_FontRenderer_renderStringAtPos($this, $par1Str, $par5); - return $this.$posX2 | 0; -} -function nms_FontRenderer_getStringWidth($this, $par1Str) { - var $var2, $var3, $var4, $var6, $var5; - if ($par1Str === null) - return 0; - $var2 = 0; - $var3 = 0; - $var4 = 0; - while ($var4 < $par1Str.$characters.data.length) { - $var6 = nms_FontRenderer_getCharWidth($this, jl_String_charAt($par1Str, $var4)); - if ($var6 < 0 && $var4 < ($par1Str.$characters.data.length - 1 | 0)) { - $var4 = $var4 + 1 | 0; - $var5 = jl_String_charAt($par1Str, $var4); - if (!($var5 != 108 && $var5 != 76)) - $var3 = 1; - else if (!($var5 != 114 && $var5 != 82)) - $var3 = 0; - $var6 = 0; - } - $var2 = $var2 + $var6 | 0; - if ($var3) - $var2 = $var2 + 1 | 0; - $var4 = $var4 + 1 | 0; - } - return $var2; -} -function nms_FontRenderer_getCharWidth($this, $par1) { - var $var2, $var3, $var4; - if ($par1 == 167) - return (-1); - if ($par1 == 32) - return 4; - $var2 = jl_String_indexOf(nms_ChatAllowedCharacters_allowedCharacters, $par1, 0); - if ($var2 >= 0 && !$this.$unicodeFlag) - return $this.$charWidth.data[$var2 + 32 | 0]; - if (!$this.$glyphWidth.data[$par1]) - return 0; - $var3 = $this.$glyphWidth.data[$par1] >>> 4; - $var4 = $this.$glyphWidth.data[$par1] & 15; - if ($var4 > 7) { - $var4 = 15; - $var3 = 0; - } - return ((($var4 + 1 | 0) - $var3 | 0) / 2 | 0) + 1 | 0; -} -function nms_FontRenderer_trimStringToWidth($this, $par1Str, $par2) { - return nms_FontRenderer_trimStringToWidth0($this, $par1Str, $par2, 0); -} -function nms_FontRenderer_trimStringToWidth0($this, $par1Str, $par2, $par3) { - var $var4, $var5, $var10, $var7, $var8, $var9, $var11, $var12; - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - $var5 = 0; - $var10 = !$par3 ? 0 : $par1Str.$characters.data.length - 1 | 0; - $var7 = !$par3 ? 1 : (-1); - $var8 = 0; - $var9 = 0; - a: { - while (true) { - if ($var10 < 0) - break a; - if ($var10 >= $par1Str.$characters.data.length) - break a; - if ($var5 >= $par2) - break a; - $var11 = jl_String_charAt($par1Str, $var10); - $var12 = nms_FontRenderer_getCharWidth($this, $var11); - if (!$var8) { - if ($var12 < 0) - $var8 = 1; - else { - $var5 = $var5 + $var12 | 0; - if ($var9) - $var5 = $var5 + 1 | 0; - } - } else { - $var8 = 0; - if (!($var11 != 108 && $var11 != 76)) - $var9 = 1; - else if (!($var11 != 114 && $var11 != 82)) - $var9 = 0; - } - if ($var5 > $par2) - break; - if ($par3) { - jl_AbstractStringBuilder_insertSpace($var4, 0, 1); - $var4.$buffer.data[0] = $var11; - } else { - $var12 = $var4.$length; - jl_AbstractStringBuilder_insertSpace($var4, $var12, $var12 + 1 | 0); - $var4.$buffer.data[$var12] = $var11; - } - $var10 = $var10 + $var7 | 0; - } - } - return jl_String__init_0($var4.$buffer, 0, $var4.$length); -} -function nms_FontRenderer_drawSplitString($this, $par1Str, $par2, $par3, $par4, $par5) { - var var$6, var$7; - $this.$randomStyle = 0; - $this.$boldStyle = 0; - $this.$italicStyle = 0; - $this.$underlineStyle = 0; - $this.$strikethroughStyle = 0; - $this.$textColor = $par5; - a: { - while (true) { - if ($par1Str === null) - break a; - if (!jl_String_endsWith($par1Str, $rt_s(60))) - break a; - $par5 = $par1Str.$characters.data.length - 1 | 0; - if (0 > $par5) - break; - $par1Str = jl_String__init_0($par1Str.$characters, 0, $par5 - 0 | 0); - } - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $par1Str = nms_FontRenderer_wrapFormattedStringToWidth($this, $par1Str, $par4); - var$6 = jur_Pattern_split(jur_Pattern_compile($rt_s(60), 0), $par1Str, 0); - $par1Str = new ju_Arrays$ArrayAsList; - $par1Str.$array3 = var$6; - var$7 = new ju_AbstractList$1; - var$7.$this$0 = $par1Str; - var$7.$modCount = var$7.$this$0.$modCount0; - var$7.$size1 = var$7.$this$0.$size2(); - var$7.$removeIndex = (-1); - while (var$7.$index >= var$7.$size1 ? 0 : 1) { - nms_FontRenderer_renderString($this, ju_AbstractList$1_next(var$7), $par2, $par3, $this.$textColor, 0); - $par3 = $par3 + $this.$FONT_HEIGHT | 0; - } -} -function nms_FontRenderer_splitStringWidth($this, $par1Str, $par2) { - var var$3; - var$3 = $this.$FONT_HEIGHT; - $par1Str = nms_FontRenderer_wrapFormattedStringToWidth($this, $par1Str, $par2); - return $rt_imul(var$3, jur_Pattern_split(jur_Pattern_compile($rt_s(60), 0), $par1Str, 0).data.length); -} -function nms_FontRenderer_setUnicodeFlag($this, $par1) { - $this.$unicodeFlag = $par1; -} -function nms_FontRenderer_getUnicodeFlag($this) { - return $this.$unicodeFlag; -} -function nms_FontRenderer_setBidiFlag($this, $par1) { - $this.$bidiFlag = $par1; -} -function nms_FontRenderer_listFormattedStringToWidth($this, $par1Str, $par2) { - var var$3; - $par1Str = nms_FontRenderer_wrapFormattedStringToWidth($this, $par1Str, $par2); - var$3 = jur_Pattern_split(jur_Pattern_compile($rt_s(60), 0), $par1Str, 0); - $par1Str = new ju_Arrays$ArrayAsList; - $par1Str.$array3 = var$3; - return $par1Str; -} -function nms_FontRenderer_wrapFormattedStringToWidth($this, $par1Str, $par2) { - var $var3, $var4, $var5, $var6, var$7, var$8; - $var3 = nms_FontRenderer_sizeStringToWidth($this, $par1Str, $par2); - if ($par1Str.$characters.data.length <= $var3) - return $par1Str; - if (0 > $var3) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $var4 = jl_String__init_0($par1Str.$characters, 0, $var3 - 0 | 0); - $var5 = jl_String_charAt($par1Str, $var3); - $var6 = $var5 != 32 && $var5 != 10 ? 0 : 1; - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - var$8 = nms_FontRenderer_getFormatFromString($var4); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, var$8); - $var3 = $var3 + (!$var6 ? 0 : 1) | 0; - $var6 = $par1Str.$characters.data.length; - if ($var3 > $var6) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - var$8 = jl_String__init_0($par1Str.$characters, $var3, $var6 - $var3 | 0); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, var$8); - $par1Str = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $var4); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(60)); - $par1Str = nms_FontRenderer_wrapFormattedStringToWidth($this, $par1Str, $par2); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $par1Str); - return jl_String__init_0(var$7.$buffer, 0, var$7.$length); -} -function nms_FontRenderer_sizeStringToWidth($this, $par1Str, $par2) { - var $var3, $var4, $var5, $var6, $var7, var$8, $var8, $var9; - $var3 = $par1Str.$characters.data.length; - $var4 = 0; - $var5 = 0; - $var6 = (-1); - $var7 = 0; - var$8 = $var3 - 1 | 0; - a: { - while ($var5 < $var3) { - b: { - c: { - $var8 = jl_String_charAt($par1Str, $var5); - switch ($var8) { - case 10: - break; - case 32: - $var6 = $var5; - break c; - case 167: - if ($var5 >= var$8) - break b; - $var5 = $var5 + 1 | 0; - $var9 = jl_String_charAt($par1Str, $var5); - if (!($var9 != 108 && $var9 != 76)) - $var7 = 1; - else if (!($var9 != 114 && $var9 != 82 && !nms_FontRenderer_isFormatColor($var9))) - $var7 = 0; - break b; - default: - break c; - } - $var5 = $var5 + (-1) | 0; - break b; - } - $var4 = $var4 + nms_FontRenderer_getCharWidth($this, $var8) | 0; - if ($var7) - $var4 = $var4 + 1 | 0; - } - if ($var8 == 10) { - $var6 = $var5 + 1 | 0; - $var5 = $var6; - break a; - } - if ($var4 > $par2) - break a; - $var5 = $var5 + 1 | 0; - } - } - if ($var5 != $var3 && $var6 != (-1) && $var6 < $var5) - $var5 = $var6; - return $var5; -} -function nms_FontRenderer_isFormatColor($par0) { - a: { - b: { - if (!($par0 >= 48 && $par0 <= 57) && !($par0 >= 97 && $par0 <= 102)) { - if ($par0 < 65) - break b; - if ($par0 > 70) - break b; - } - $par0 = 1; - break a; - } - $par0 = 0; - } - return $par0; -} -function nms_FontRenderer_isFormatSpecial($par0) { - return !($par0 >= 107 && $par0 <= 111) && !($par0 >= 75 && $par0 <= 79) && $par0 != 114 && $par0 != 82 ? 0 : 1; -} -function nms_FontRenderer_getFormatFromString($par0Str) { - var $var1, $var2, var$4, $var4, var$6, $var3, var$8; - $var1 = $rt_s(44); - $var2 = (-1); - var$4 = $par0Str.$characters.data.length - 1 | 0; - while (true) { - $var2 = jl_String_indexOf($par0Str, 167, $var2 + 1 | 0); - if ($var2 == (-1)) - break; - if ($var2 >= var$4) - continue; - $var4 = jl_String_charAt($par0Str, $var2 + 1 | 0); - if (nms_FontRenderer_isFormatColor($var4)) { - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(760)); - $var3 = var$6.$length; - jl_AbstractStringBuilder_insertSpace(var$6, $var3, $var3 + 1 | 0); - var$6.$buffer.data[$var3] = $var4; - $var1 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - } else if (nms_FontRenderer_isFormatSpecial($var4)) { - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $var1); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(760)); - var$8 = var$6.$length; - jl_AbstractStringBuilder_insertSpace(var$6, var$8, var$8 + 1 | 0); - var$6.$buffer.data[var$8] = $var4; - $var1 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - } - } - return $var1; -} -function nms_FontRenderer_getBidiFlag($this) { - return $this.$bidiFlag; -} -function nms_EnumOS() { - jl_Enum.call(this); -} -var nms_EnumOS_LINUX = null; -var nms_EnumOS_SOLARIS = null; -var nms_EnumOS_WINDOWS = null; -var nms_EnumOS_MACOS = null; -var nms_EnumOS_UNKNOWN = null; -var nms_EnumOS_$VALUES = null; -function nms_EnumOS__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumOS; - var$1.$name2 = $rt_s(761); - var$1.$ordinal = 0; - nms_EnumOS_LINUX = var$1; - var$1 = new nms_EnumOS; - var$1.$name2 = $rt_s(762); - var$1.$ordinal = 1; - nms_EnumOS_SOLARIS = var$1; - var$1 = new nms_EnumOS; - var$1.$name2 = $rt_s(763); - var$1.$ordinal = 2; - nms_EnumOS_WINDOWS = var$1; - var$1 = new nms_EnumOS; - var$1.$name2 = $rt_s(764); - var$1.$ordinal = 3; - nms_EnumOS_MACOS = var$1; - var$1 = new nms_EnumOS; - var$1.$name2 = $rt_s(251); - var$1.$ordinal = 4; - nms_EnumOS_UNKNOWN = var$1; - var$2 = $rt_createArray(nms_EnumOS, 5); - var$3 = var$2.data; - var$3[0] = nms_EnumOS_LINUX; - var$3[1] = nms_EnumOS_SOLARIS; - var$3[2] = nms_EnumOS_WINDOWS; - var$3[3] = nms_EnumOS_MACOS; - var$3[4] = nms_EnumOS_UNKNOWN; - nms_EnumOS_$VALUES = var$2; -} -function cbpc_ChunkType$1() { - cbpc_ChunkType.call(this); -} -function cbpc_ChunkType$1_apply($this, $png, $length, $type, $data, $crc) { - var var$6; - var$6 = new cbpc_IHDR; - cbpc_Chunk__init_0(var$6, $length, $type, $data, $crc); - cbpc_IHDR_build(var$6); - cbpc_IHDR_checkLegal(var$6); - $png.$ihdr = var$6; -} -function cbpc_ChunkType$2() { - cbpc_ChunkType.call(this); -} -function cbpc_ChunkType$2_apply($this, $png, $length, $type, $data, $crc) { - var var$6; - var$6 = new cbpc_PLTE; - cbpc_Chunk__init_0(var$6, $length, $type, $data, $crc); - cbpc_PLTE_build(var$6); - $png.$plte = var$6; -} -function cbpc_ChunkType$3() { - cbpc_ChunkType.call(this); -} -function cbpc_ChunkType$3_apply($this, $png, $length, $type, $data, $crc) { - var var$6; - var$6 = new cbpc_IDAT; - cbpc_Chunk__init_0(var$6, $length, $type, $data, $crc); - ju_ArrayList_add($png.$idats, var$6); -} -function cbpc_ChunkType$4() { - cbpc_ChunkType.call(this); -} -function cbpc_ChunkType$4_apply($this, $png, $length, $type, $data, $crc) { - var var$6; - var$6 = new cbpc_IEND; - cbpc_Chunk__init_0(var$6, $length, $type, $data, $crc); - $png.$iend = var$6; -} -function ju_Locale() { - var a = this; jl_Object.call(a); - a.$countryCode = null; - a.$languageCode = null; - a.$variantCode = null; -} -var ju_Locale_defaultLocale = null; -var ju_Locale_CANADA = null; -var ju_Locale_CANADA_FRENCH = null; -var ju_Locale_CHINA = null; -var ju_Locale_CHINESE = null; -var ju_Locale_ENGLISH = null; -var ju_Locale_FRANCE = null; -var ju_Locale_FRENCH = null; -var ju_Locale_GERMAN = null; -var ju_Locale_GERMANY = null; -var ju_Locale_ITALIAN = null; -var ju_Locale_ITALY = null; -var ju_Locale_JAPAN = null; -var ju_Locale_JAPANESE = null; -var ju_Locale_KOREA = null; -var ju_Locale_KOREAN = null; -var ju_Locale_PRC = null; -var ju_Locale_SIMPLIFIED_CHINESE = null; -var ju_Locale_TAIWAN = null; -var ju_Locale_TRADITIONAL_CHINESE = null; -var ju_Locale_UK = null; -var ju_Locale_US = null; -var ju_Locale_ROOT = null; -function ju_Locale__init_(var_0, var_1, var_2) { - var var_3 = new ju_Locale(); - ju_Locale__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function ju_Locale__init_0($this, $language, $country, $variant) { - if ($language !== null && $country !== null && $variant !== null) { - if (!$language.$characters.data.length && !$country.$characters.data.length) { - $this.$languageCode = $rt_s(44); - $this.$countryCode = $rt_s(44); - $this.$variantCode = $variant; - return; - } - $this.$languageCode = $language; - $this.$countryCode = $country; - $this.$variantCode = $variant; - return; - } - $language = new jl_NullPointerException; - $language.$suppressionEnabled = 1; - $language.$writableStackTrace = 1; - $rt_throw($language); -} -function ju_Locale_getCountry($this) { - return $this.$countryCode; -} -function ju_Locale_getLanguage($this) { - return $this.$languageCode; -} -function ju_Locale__clinit_() { - var $localeName, $countryIndex, var$3, var$4, var$5, var$6; - ju_Locale_CANADA = ju_Locale__init_($rt_s(765), $rt_s(766), $rt_s(44)); - ju_Locale_CANADA_FRENCH = ju_Locale__init_($rt_s(767), $rt_s(766), $rt_s(44)); - ju_Locale_CHINA = ju_Locale__init_($rt_s(768), $rt_s(769), $rt_s(44)); - ju_Locale_CHINESE = ju_Locale__init_($rt_s(768), $rt_s(44), $rt_s(44)); - ju_Locale_ENGLISH = ju_Locale__init_($rt_s(765), $rt_s(44), $rt_s(44)); - ju_Locale_FRANCE = ju_Locale__init_($rt_s(767), $rt_s(770), $rt_s(44)); - ju_Locale_FRENCH = ju_Locale__init_($rt_s(767), $rt_s(44), $rt_s(44)); - ju_Locale_GERMAN = ju_Locale__init_($rt_s(771), $rt_s(44), $rt_s(44)); - ju_Locale_GERMANY = ju_Locale__init_($rt_s(771), $rt_s(772), $rt_s(44)); - ju_Locale_ITALIAN = ju_Locale__init_($rt_s(773), $rt_s(44), $rt_s(44)); - ju_Locale_ITALY = ju_Locale__init_($rt_s(773), $rt_s(774), $rt_s(44)); - ju_Locale_JAPAN = ju_Locale__init_($rt_s(775), $rt_s(776), $rt_s(44)); - ju_Locale_JAPANESE = ju_Locale__init_($rt_s(775), $rt_s(44), $rt_s(44)); - ju_Locale_KOREA = ju_Locale__init_($rt_s(777), $rt_s(778), $rt_s(44)); - ju_Locale_KOREAN = ju_Locale__init_($rt_s(777), $rt_s(44), $rt_s(44)); - ju_Locale_PRC = ju_Locale__init_($rt_s(768), $rt_s(769), $rt_s(44)); - ju_Locale_SIMPLIFIED_CHINESE = ju_Locale__init_($rt_s(768), $rt_s(769), $rt_s(44)); - ju_Locale_TAIWAN = ju_Locale__init_($rt_s(768), $rt_s(779), $rt_s(44)); - ju_Locale_TRADITIONAL_CHINESE = ju_Locale__init_($rt_s(768), $rt_s(779), $rt_s(44)); - ju_Locale_UK = ju_Locale__init_($rt_s(765), $rt_s(780), $rt_s(44)); - ju_Locale_US = ju_Locale__init_($rt_s(765), $rt_s(781), $rt_s(44)); - ju_Locale_ROOT = ju_Locale__init_($rt_s(44), $rt_s(44), $rt_s(44)); - if (otciu_CLDRHelper_$$metadata$$10 === null) - otciu_CLDRHelper_$$metadata$$10 = otciu_CLDRHelper_getDefaultLocale$$create(); - $localeName = (otciu_CLDRHelper_$$metadata$$10.value !== null ? $rt_str(otciu_CLDRHelper_$$metadata$$10.value) : null); - $countryIndex = jl_String_indexOf($localeName, 95, 0); - var$3 = new ju_Locale; - if (0 > $countryIndex) { - $localeName = new jl_IndexOutOfBoundsException; - $localeName.$suppressionEnabled = 1; - $localeName.$writableStackTrace = 1; - $rt_throw($localeName); - } - var$4 = jl_String__init_0($localeName.$characters, 0, $countryIndex - 0 | 0); - var$5 = $countryIndex + 1 | 0; - var$6 = $localeName.$characters.data.length; - if (var$5 <= var$6) { - ju_Locale__init_0(var$3, var$4, jl_String__init_0($localeName.$characters, var$5, var$6 - var$5 | 0), $rt_s(44)); - ju_Locale_defaultLocale = var$3; - return; - } - $localeName = new jl_IndexOutOfBoundsException; - $localeName.$suppressionEnabled = 1; - $localeName.$writableStackTrace = 1; - $rt_throw($localeName); -} -function jt_DecimalFormat$FormatField() { -} -function jt_DecimalFormat$TextField() { - jl_Object.call(this); - this.$text0 = null; -} -function jt_DecimalFormat$TextField__init_(var_0) { - var var_1 = new jt_DecimalFormat$TextField(); - jt_DecimalFormat$TextField__init_0(var_1, var_0); - return var_1; -} -function jt_DecimalFormat$TextField__init_0($this, $text) { - $this.$text0 = $text; -} -function jt_DecimalFormat$TextField_render($this, $format, $buffer) { - $format = $this.$text0; - jl_AbstractStringBuilder_insert($buffer, $buffer.$length, $format); -} -function jt_DecimalFormat$TextField_equals($this, $obj) { - var $other; - if ($this === $obj) - return 1; - if (!($obj instanceof jt_DecimalFormat$TextField)) - return 0; - $other = $obj; - return jl_String_equals($this.$text0, $other.$text0); -} -function jt_DecimalFormat$TextField_hashCode($this) { - return jl_String_hashCode($this.$text0); -} -function jm_RoundingMode() { - jl_Enum.call(this); - this.$bigDecimalRM = 0; -} -var jm_RoundingMode_UP = null; -var jm_RoundingMode_DOWN = null; -var jm_RoundingMode_CEILING = null; -var jm_RoundingMode_FLOOR = null; -var jm_RoundingMode_HALF_UP = null; -var jm_RoundingMode_HALF_DOWN = null; -var jm_RoundingMode_HALF_EVEN = null; -var jm_RoundingMode_UNNECESSARY = null; -var jm_RoundingMode_$VALUES = null; -function jm_RoundingMode__clinit_() { - var var$1, var$2, var$3; - var$1 = new jm_RoundingMode; - var$1.$name2 = $rt_s(186); - var$1.$ordinal = 0; - var$1.$bigDecimalRM = 0; - jm_RoundingMode_UP = var$1; - var$1 = new jm_RoundingMode; - var$1.$name2 = $rt_s(191); - var$1.$ordinal = 1; - var$1.$bigDecimalRM = 1; - jm_RoundingMode_DOWN = var$1; - var$1 = new jm_RoundingMode; - var$1.$name2 = $rt_s(782); - var$1.$ordinal = 2; - var$1.$bigDecimalRM = 2; - jm_RoundingMode_CEILING = var$1; - var$1 = new jm_RoundingMode; - var$1.$name2 = $rt_s(783); - var$1.$ordinal = 3; - var$1.$bigDecimalRM = 3; - jm_RoundingMode_FLOOR = var$1; - var$1 = new jm_RoundingMode; - var$1.$name2 = $rt_s(784); - var$1.$ordinal = 4; - var$1.$bigDecimalRM = 4; - jm_RoundingMode_HALF_UP = var$1; - var$1 = new jm_RoundingMode; - var$1.$name2 = $rt_s(785); - var$1.$ordinal = 5; - var$1.$bigDecimalRM = 5; - jm_RoundingMode_HALF_DOWN = var$1; - var$1 = new jm_RoundingMode; - var$1.$name2 = $rt_s(786); - var$1.$ordinal = 6; - var$1.$bigDecimalRM = 6; - jm_RoundingMode_HALF_EVEN = var$1; - var$1 = new jm_RoundingMode; - var$1.$name2 = $rt_s(787); - var$1.$ordinal = 7; - var$1.$bigDecimalRM = 7; - jm_RoundingMode_UNNECESSARY = var$1; - var$2 = $rt_createArray(jm_RoundingMode, 8); - var$3 = var$2.data; - var$3[0] = jm_RoundingMode_UP; - var$3[1] = jm_RoundingMode_DOWN; - var$3[2] = jm_RoundingMode_CEILING; - var$3[3] = jm_RoundingMode_FLOOR; - var$3[4] = jm_RoundingMode_HALF_UP; - var$3[5] = jm_RoundingMode_HALF_DOWN; - var$3[6] = jm_RoundingMode_HALF_EVEN; - var$3[7] = jm_RoundingMode_UNNECESSARY; - jm_RoundingMode_$VALUES = var$2; -} -function ju_Currency() { - jl_Object.call(this); - this.$resource = null; -} -var ju_Currency_currencies = null; -function ju_Currency_initCurrencies() { - var $resources, $i, $resource, var$4, var$5, var$6; - if (ju_Currency_currencies !== null) - return; - ju_Currency_currencies = ju_HashMap__init_1(16, 0.75); - if (otcic_CurrencyHelper_$$metadata$$0 === null) - otcic_CurrencyHelper_$$metadata$$0 = otcic_CurrencyHelper_getCurrencies$$create(); - $resources = otcic_CurrencyHelper_$$metadata$$0; - $i = 0; - while ($i < $resources.length) { - $resource = $resources[$i]; - var$4 = ju_Currency_currencies; - var$5 = ($resource.code !== null ? $rt_str($resource.code) : null); - var$6 = new ju_Currency; - var$6.$resource = $resource; - ju_HashMap_putImpl(var$4, var$5, var$6); - $i = $i + 1 | 0; - } -} -function ju_Currency_getInstance0($currencyCode) { - var $currency, var$3; - if ($currencyCode === null) { - $currencyCode = new jl_NullPointerException; - $currencyCode.$suppressionEnabled = 1; - $currencyCode.$writableStackTrace = 1; - $rt_throw($currencyCode); - } - ju_Currency_initCurrencies(); - $currency = ju_HashMap_getEntry(ju_Currency_currencies, $currencyCode); - $currency = $currency === null ? null : $currency.$value0; - if ($currency !== null) - return $currency; - var$3 = new jl_IllegalArgumentException; - $currency = new jl_StringBuilder; - $currency.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($currency, $currency.$length, $rt_s(788)); - jl_AbstractStringBuilder_insert($currency, $currency.$length, $currencyCode); - $currencyCode = jl_String__init_0($currency.$buffer, 0, $currency.$length); - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $currencyCode; - $rt_throw(var$3); -} -function ju_Currency_getInstance($locale) { - var $countryMap, $coutry, var$4, var$5; - if ($locale === null) { - $locale = new jl_NullPointerException; - $locale.$suppressionEnabled = 1; - $locale.$writableStackTrace = 1; - $rt_throw($locale); - } - $countryMap = $locale.$languageCode; - $coutry = $locale.$countryCode; - if ($coutry.$characters.data.length ? 0 : 1) { - if (otciu_CLDRHelper_$$metadata$$0 === null) - otciu_CLDRHelper_$$metadata$$0 = otciu_CLDRHelper_getLikelySubtagsMap$$create(); - $locale = otciu_CLDRHelper_$$metadata$$0; - if ($locale.hasOwnProperty($rt_ustr($countryMap))) - $countryMap = ($locale[$rt_ustr($countryMap)].value !== null ? $rt_str($locale[$rt_ustr($countryMap)].value) : null); - var$4 = jl_String_lastIndexOf($countryMap, 95, $countryMap.$characters.data.length - 1 | 0); - if (var$4 <= 0) - $coutry = $rt_s(44); - else { - var$5 = var$4 + 1 | 0; - var$4 = $countryMap.$characters.data.length; - if (var$5 > var$4) { - $locale = new jl_IndexOutOfBoundsException; - $locale.$suppressionEnabled = 1; - $locale.$writableStackTrace = 1; - $rt_throw($locale); - } - $coutry = jl_String__init_0($countryMap.$characters, var$5, var$4 - var$5 | 0); - } - } - if (otcic_CurrencyHelper_$$metadata$$1 === null) - otcic_CurrencyHelper_$$metadata$$1 = otcic_CurrencyHelper_getCountryToCurrencyMap$$create(); - $countryMap = otcic_CurrencyHelper_$$metadata$$1; - if (!$countryMap.hasOwnProperty($rt_ustr($coutry))) - return null; - return ju_Currency_getInstance0(($countryMap[$rt_ustr($coutry)].value !== null ? $rt_str($countryMap[$rt_ustr($coutry)].value) : null)); -} -function ju_Currency_getCurrencyCode($this) { - return ($this.$resource.code !== null ? $rt_str($this.$resource.code) : null); -} -function ju_Currency_getSymbol($this, $locale) { - var $localization; - $localization = otciu_CLDRHelper_resolveCurrency($locale.$languageCode, $locale.$countryCode, ($this.$resource.code !== null ? $rt_str($this.$resource.code) : null)); - return $localization !== null && !(($localization.symbol !== null ? $rt_str($localization.symbol) : null).$characters.data.length ? 0 : 1) ? ($localization.symbol !== null ? $rt_str($localization.symbol) : null) : ($this.$resource.code !== null ? $rt_str($this.$resource.code) : null); -} -function ju_Currency_toString($this) { - return ($this.$resource.code !== null ? $rt_str($this.$resource.code) : null); -} -function otciu_CLDRHelper() { - jl_Object.call(this); -} -var otciu_CLDRHelper_$$metadata$$0 = null; -var otciu_CLDRHelper_$$metadata$$10 = null; -var otciu_CLDRHelper_$$metadata$$12 = null; -var otciu_CLDRHelper_$$metadata$$13 = null; -var otciu_CLDRHelper_$$metadata$$17 = null; -var otciu_CLDRHelper_$$metadata$$20 = null; -var otciu_CLDRHelper_$$metadata$$21 = null; -function otciu_CLDRHelper__init_0() { - var var_0 = new otciu_CLDRHelper(); - otciu_CLDRHelper__init_(var_0); - return var_0; -} -function otciu_CLDRHelper__init_($this) { - return; -} -function otciu_CLDRHelper_resolveFormatSymbols($map, $language, $country) { - var $localeCode, $res; - if ($country.$characters.data.length ? 0 : 1) - $localeCode = $language; - else { - $res = new jl_StringBuilder; - $res.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($res, $res.$length, $language); - jl_AbstractStringBuilder_insert($res, $res.$length, $rt_s(722)); - jl_AbstractStringBuilder_insert($res, $res.$length, $country); - $localeCode = jl_String__init_0($res.$buffer, 0, $res.$length); - } - return (($map.hasOwnProperty($rt_ustr($localeCode)) ? $map[$rt_ustr($localeCode)] : $map.hasOwnProperty($rt_ustr($language)) ? $map[$rt_ustr($language)] : $map.root).value !== null ? $rt_str(($map.hasOwnProperty($rt_ustr($localeCode)) ? $map[$rt_ustr($localeCode)] : $map.hasOwnProperty($rt_ustr($language)) ? $map[$rt_ustr($language)] : $map.root).value) : null); -} -function otciu_CLDRHelper_resolveDecimalData($language, $country) { - var $map, $localeCode, var$5; - if (otciu_CLDRHelper_$$metadata$$20 === null) - otciu_CLDRHelper_$$metadata$$20 = otciu_CLDRHelper_getDecimalDataMap$$create(); - $map = otciu_CLDRHelper_$$metadata$$20; - if ($country.$characters.data.length ? 0 : 1) - $localeCode = $language; - else { - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $language); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(722)); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $country); - $localeCode = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - } - return $map.hasOwnProperty($rt_ustr($localeCode)) ? $map[$rt_ustr($localeCode)] : $map.hasOwnProperty($rt_ustr($language)) ? $map[$rt_ustr($language)] : $map.root; -} -function otciu_CLDRHelper_resolveCurrency($language, $country, $currency) { - var $localeCode, $currencies, $map; - if ($country.$characters.data.length ? 0 : 1) - $localeCode = $language; - else { - $currencies = new jl_StringBuilder; - $currencies.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($currencies, $currencies.$length, $language); - jl_AbstractStringBuilder_insert($currencies, $currencies.$length, $rt_s(722)); - jl_AbstractStringBuilder_insert($currencies, $currencies.$length, $country); - $localeCode = jl_String__init_0($currencies.$buffer, 0, $currencies.$length); - } - if (otciu_CLDRHelper_$$metadata$$21 === null) - otciu_CLDRHelper_$$metadata$$21 = otciu_CLDRHelper_getCurrencyMap$$create(); - $map = otciu_CLDRHelper_$$metadata$$21; - if ($map.hasOwnProperty($rt_ustr($localeCode))) { - $currencies = $map[$rt_ustr($localeCode)]; - if ($currencies.hasOwnProperty($rt_ustr($currency))) - return $currencies[$rt_ustr($currency)]; - } - if ($map.hasOwnProperty($rt_ustr($language))) { - $currencies = $map[$rt_ustr($language)]; - if ($currencies.hasOwnProperty($rt_ustr($currency))) - return $currencies[$rt_ustr($currency)]; - } - return null; -} -function otciu_CLDRHelper_getLikelySubtagsMap$$create() { - return {"ksh": {"value" : "ksh-Latn-DE"}, "ksj": {"value" : "ksj-Latn-ZZ"}, "cch": {"value" : "cch-Latn-NG"}, "und-Khar": {"value" : "pra-Khar-PK"}, "gkn": {"value" : "gkn-Latn-ZZ"}, "ksr": {"value" : "ksr-Latn-ZZ"}, "und-Mani": {"value" : "xmn-Mani-CN"}, "gkp": {"value" : "gkp-Latn-ZZ"}, "xmf": {"value" : "xmf-Geor-GE"}, "ccp": {"value" : "ccp-Cakm-BD"}, "ted": {"value" : "ted-Latn-ZZ"}, "und-Mand": {"value" : "myz-Mand-IR"}, "ktb": {"value" : "ktb-Ethi-ZZ"}, "xmn": {"value" : "xmn-Mani-CN"}, "sd-Sind": - {"value" : "sd-Sind-IN"}, "xmr": {"value" : "xmr-Merc-SD"}, "tem": {"value" : "tem-Latn-SL"}, "und-Mroo": {"value" : "mro-Mroo-BD"}, "teo": {"value" : "teo-Latn-UG"}, "tet": {"value" : "tet-Latn-TL"}, "ktm": {"value" : "ktm-Latn-ZZ"}, "glk": {"value" : "glk-Arab-IR"}, "kto": {"value" : "kto-Latn-ZZ"}, "und-Soyo": {"value" : "cmg-Soyo-MN"}, "xna": {"value" : "xna-Narb-SA"}, "tfi": {"value" : "tfi-Latn-ZZ"}, "kub": {"value" : "kub-Latn-ZZ"}, "kue": {"value" : "kue-Latn-ZZ"}, "kud": {"value" : "kud-Latn-ZZ"} - , "xnr": {"value" : "xnr-Deva-IN"}, "ceb": {"value" : "ceb-Latn-PH"}, "kuj": {"value" : "kuj-Latn-ZZ"}, "kum": {"value" : "kum-Cyrl-RU"}, "kun": {"value" : "kun-Latn-ZZ"}, "gmm": {"value" : "gmm-Latn-ZZ"}, "kup": {"value" : "kup-Latn-ZZ"}, "kus": {"value" : "kus-Latn-ZZ"}, "gmv": {"value" : "gmv-Ethi-ZZ"}, "tgc": {"value" : "tgc-Latn-ZZ"}, "xog": {"value" : "xog-Latn-UG"}, "und-Arab-YT": {"value" : "swb-Arab-YT"}, "und-Latn-ET": {"value" : "en-Latn-ET"}, "xon": {"value" : "xon-Latn-ZZ"}, "ha-CM": {"value" - : "ha-Arab-CM"}, "gnd": {"value" : "gnd-Latn-ZZ"}, "kvg": {"value" : "kvg-Latn-ZZ"}, "tgo": {"value" : "tgo-Latn-ZZ"}, "cfa": {"value" : "cfa-Latn-ZZ"}, "gng": {"value" : "gng-Latn-ZZ"}, "tgu": {"value" : "tgu-Latn-ZZ"}, "und-Latn-GE": {"value" : "ku-Latn-GE"}, "kvr": {"value" : "kvr-Latn-ID"}, "kvx": {"value" : "kvx-Arab-PK"}, "und-Gujr": {"value" : "gu-Gujr-IN"}, "thl": {"value" : "thl-Deva-NP"}, "xpr": {"value" : "xpr-Prti-IR"}, "thq": {"value" : "thq-Deva-NP"}, "god": {"value" : "god-Latn-ZZ"}, "gof": - {"value" : "gof-Ethi-ZZ"}, "kwj": {"value" : "kwj-Latn-ZZ"}, "ky-Arab": {"value" : "ky-Arab-CN"}, "thr": {"value" : "thr-Deva-NP"}, "goi": {"value" : "goi-Latn-ZZ"}, "cgg": {"value" : "cgg-Latn-UG"}, "kwo": {"value" : "kwo-Latn-ZZ"}, "gom": {"value" : "gom-Deva-IN"}, "gon": {"value" : "gon-Telu-IN"}, "gos": {"value" : "gos-Latn-NL"}, "gor": {"value" : "gor-Latn-ID"}, "und-Latn-CY": {"value" : "tr-Latn-CY"}, "got": {"value" : "got-Goth-UA"}, "tif": {"value" : "tif-Latn-ZZ"}, "tig": {"value" : "tig-Ethi-ER"} - , "kxa": {"value" : "kxa-Latn-ZZ"}, "kxc": {"value" : "kxc-Ethi-ZZ"}, "pag": {"value" : "pag-Latn-PH"}, "tik": {"value" : "tik-Latn-ZZ"}, "tim": {"value" : "tim-Latn-ZZ"}, "pal": {"value" : "pal-Phli-IR"}, "tio": {"value" : "tio-Latn-ZZ"}, "pam": {"value" : "pam-Latn-PH"}, "und-Marc": {"value" : "bo-Marc-CN"}, "pap": {"value" : "pap-Latn-AW"}, "und-Latn-CN": {"value" : "za-Latn-CN"}, "tiv": {"value" : "tiv-Latn-NG"}, "kxm": {"value" : "kxm-Thai-TH"}, "kxp": {"value" : "kxp-Arab-PK"}, "pau": {"value" : "pau-Latn-PW"} - , "chk": {"value" : "chk-Latn-FM"}, "chm": {"value" : "chm-Cyrl-RU"}, "xrb": {"value" : "xrb-Latn-ZZ"}, "chp": {"value" : "chp-Latn-CA"}, "cho": {"value" : "cho-Latn-US"}, "kxw": {"value" : "kxw-Latn-ZZ"}, "und-Latn-DZ": {"value" : "fr-Latn-DZ"}, "chr": {"value" : "chr-Cher-US"}, "kxz": {"value" : "kxz-Latn-ZZ"}, "und-Batk": {"value" : "bbc-Batk-ID"}, "und-Bass": {"value" : "bsq-Bass-LR"}, "kye": {"value" : "kye-Latn-ZZ"}, "pbi": {"value" : "pbi-Latn-ZZ"}, "und-Deva-MU": {"value" : "bho-Deva-MU"}, "und-Sgnw": - {"value" : "ase-Sgnw-US"}, "xsa": {"value" : "xsa-Sarb-YE"}, "kyx": {"value" : "kyx-Latn-ZZ"}, "xsi": {"value" : "xsi-Latn-ZZ"}, "pcd": {"value" : "pcd-Latn-FR"}, "und-Latn-AM": {"value" : "ku-Latn-AM"}, "xsm": {"value" : "xsm-Latn-ZZ"}, "tkl": {"value" : "tkl-Latn-TK"}, "und-Thai-CN": {"value" : "lcp-Thai-CN"}, "grb": {"value" : "grb-Latn-ZZ"}, "xsr": {"value" : "xsr-Deva-NP"}, "und-Latn-AF": {"value" : "tk-Latn-AF"}, "grc": {"value" : "grc-Cprt-CY"}, "tkr": {"value" : "tkr-Latn-AZ"}, "cja": {"value" : - "cja-Arab-KH"}, "pcm": {"value" : "pcm-Latn-NG"}, "tkt": {"value" : "tkt-Deva-NP"}, "und-Olck": {"value" : "sat-Olck-IN"}, "kzr": {"value" : "kzr-Latn-ZZ"}, "cjm": {"value" : "cjm-Cham-VN"}, "grt": {"value" : "grt-Beng-IN"}, "und-Arab-TJ": {"value" : "fa-Arab-TJ"}, "und-Arab-TG": {"value" : "apd-Arab-TG"}, "und-Arab-TH": {"value" : "mfa-Arab-TH"}, "und-Deva-PK": {"value" : "btv-Deva-PK"}, "grw": {"value" : "grw-Latn-ZZ"}, "cjv": {"value" : "cjv-Latn-ZZ"}, "pdc": {"value" : "pdc-Latn-US"}, "tlf": {"value" - : "tlf-Latn-ZZ"}, "und-Arab-TR": {"value" : "az-Arab-TR"}, "ckb": {"value" : "ckb-Arab-IQ"}, "tly": {"value" : "tly-Latn-AZ"}, "pdt": {"value" : "pdt-Latn-CA"}, "tlx": {"value" : "tlx-Latn-ZZ"}, "ckl": {"value" : "ckl-Latn-ZZ"}, "cko": {"value" : "cko-Latn-ZZ"}, "gsw": {"value" : "gsw-Latn-CH"}, "ped": {"value" : "ped-Latn-ZZ"}, "tmh": {"value" : "tmh-Latn-NE"}, "cky": {"value" : "cky-Latn-ZZ"}, "kk-Arab": {"value" : "kk-Arab-CN"}, "und-Runr": {"value" : "non-Runr-SE"}, "cla": {"value" : "cla-Latn-ZZ"}, - "peo": {"value" : "peo-Xpeo-IR"}, "tmy": {"value" : "tmy-Latn-ZZ"}, "pex": {"value" : "pex-Latn-ZZ"}, "ky-TR": {"value" : "ky-Latn-TR"}, "tnh": {"value" : "tnh-Latn-ZZ"}, "guc": {"value" : "guc-Latn-CO"}, "gub": {"value" : "gub-Latn-BR"}, "gud": {"value" : "gud-Latn-ZZ"}, "pfl": {"value" : "pfl-Latn-DE"}, "cme": {"value" : "cme-Latn-ZZ"}, "cmg": {"value" : "cmg-Soyo-MN"}, "gur": {"value" : "gur-Latn-GH"}, "xwe": {"value" : "xwe-Latn-ZZ"}, "guw": {"value" : "guw-Latn-ZZ"}, "tof": {"value" : "tof-Latn-ZZ"} - , "gux": {"value" : "gux-Latn-ZZ"}, "guz": {"value" : "guz-Latn-KE"}, "tog": {"value" : "tog-Latn-MW"}, "gvf": {"value" : "gvf-Latn-ZZ"}, "toq": {"value" : "toq-Latn-ZZ"}, "gvr": {"value" : "gvr-Deva-NP"}, "und-Guru": {"value" : "pa-Guru-IN"}, "gvs": {"value" : "gvs-Latn-ZZ"}, "tpi": {"value" : "tpi-Latn-PG"}, "tpm": {"value" : "tpm-Latn-ZZ"}, "und-Tfng": {"value" : "zgh-Tfng-MA"}, "gwc": {"value" : "gwc-Arab-ZZ"}, "und-Arab-PK": {"value" : "ur-Arab-PK"}, "phl": {"value" : "phl-Arab-ZZ"}, "und-Aghb": {"value" - : "lez-Aghb-RU"}, "phn": {"value" : "phn-Phnx-LB"}, "gwi": {"value" : "gwi-Latn-CA"}, "tpz": {"value" : "tpz-Latn-ZZ"}, "cop": {"value" : "cop-Copt-EG"}, "gwt": {"value" : "gwt-Arab-ZZ"}, "lab": {"value" : "lab-Lina-GR"}, "lad": {"value" : "lad-Hebr-IL"}, "lah": {"value" : "lah-Arab-PK"}, "pil": {"value" : "pil-Latn-ZZ"}, "lag": {"value" : "lag-Latn-TZ"}, "tqo": {"value" : "tqo-Latn-ZZ"}, "laj": {"value" : "laj-Latn-UG"}, "pip": {"value" : "pip-Latn-ZZ"}, "und-Khmr": {"value" : "km-Khmr-KH"}, "las": {"value" - : "las-Latn-ZZ"}, "sd-Deva": {"value" : "sd-Deva-IN"}, "und-Khoj": {"value" : "sd-Khoj-IN"}, "cps": {"value" : "cps-Latn-PH"}, "kk-AF": {"value" : "kk-Arab-AF"}, "und-Arab-MU": {"value" : "ur-Arab-MU"}, "lbe": {"value" : "lbe-Cyrl-RU"}, "und-Arab-NG": {"value" : "ha-Arab-NG"}, "gyi": {"value" : "gyi-Latn-ZZ"}, "tru": {"value" : "tru-Latn-TR"}, "trw": {"value" : "trw-Arab-ZZ"}, "trv": {"value" : "trv-Latn-TW"}, "lbu": {"value" : "lbu-Latn-ZZ"}, "lbw": {"value" : "lbw-Latn-ID"}, "tsd": {"value" : "tsd-Grek-GR"} - , "tsf": {"value" : "tsf-Deva-NP"}, "pka": {"value" : "pka-Brah-IN"}, "tsg": {"value" : "tsg-Latn-PH"}, "tsj": {"value" : "tsj-Tibt-BT"}, "und-Deva-FJ": {"value" : "hif-Deva-FJ"}, "pko": {"value" : "pko-Latn-KE"}, "lcm": {"value" : "lcm-Latn-ZZ"}, "crh": {"value" : "crh-Cyrl-UA"}, "lcp": {"value" : "lcp-Thai-CN"}, "tsw": {"value" : "tsw-Latn-ZZ"}, "crj": {"value" : "crj-Cans-CA"}, "crl": {"value" : "crl-Cans-CA"}, "und-Arab-MN": {"value" : "kk-Arab-MN"}, "crk": {"value" : "crk-Cans-CA"}, "crm": {"value" - : "crm-Cans-CA"}, "und-Arab-MM": {"value" : "rhg-Arab-MM"}, "pla": {"value" : "pla-Latn-ZZ"}, "tte": {"value" : "tte-Latn-ZZ"}, "crs": {"value" : "crs-Latn-SC"}, "ttd": {"value" : "ttd-Latn-ZZ"}, "ldb": {"value" : "ldb-Latn-ZZ"}, "ttj": {"value" : "ttj-Latn-UG"}, "kk-CN": {"value" : "kk-Arab-CN"}, "und-Yiii": {"value" : "ii-Yiii-CN"}, "tts": {"value" : "tts-Thai-TH"}, "csb": {"value" : "csb-Latn-PL"}, "ttr": {"value" : "ttr-Latn-ZZ"}, "ttt": {"value" : "ttt-Latn-AZ"}, "csw": {"value" : "csw-Cans-CA"}, "tuh": - {"value" : "tuh-Latn-ZZ"}, "led": {"value" : "led-Latn-ZZ"}, "tul": {"value" : "tul-Latn-ZZ"}, "lee": {"value" : "lee-Latn-ZZ"}, "tum": {"value" : "tum-Latn-MW"}, "und-Arab-KH": {"value" : "cja-Arab-KH"}, "tuq": {"value" : "tuq-Latn-ZZ"}, "ctd": {"value" : "ctd-Pauc-MM"}, "lem": {"value" : "lem-Latn-ZZ"}, "lep": {"value" : "lep-Lepc-IN"}, "pms": {"value" : "pms-Latn-IT"}, "leq": {"value" : "leq-Latn-ZZ"}, "und-Pauc": {"value" : "ctd-Pauc-MM"}, "und-Sogo": {"value" : "sog-Sogo-UZ"}, "leu": {"value" : "leu-Latn-ZZ"} - , "lez": {"value" : "lez-Cyrl-RU"}, "tvd": {"value" : "tvd-Latn-ZZ"}, "mn-CN": {"value" : "mn-Mong-CN"}, "sr-TR": {"value" : "sr-Latn-TR"}, "png": {"value" : "png-Latn-ZZ"}, "tvl": {"value" : "tvl-Latn-TV"}, "und-Brah": {"value" : "pka-Brah-IN"}, "und-Brai": {"value" : "fr-Brai-FR"}, "pnn": {"value" : "pnn-Latn-ZZ"}, "tvu": {"value" : "tvu-Latn-ZZ"}, "pnt": {"value" : "pnt-Grek-GR"}, "uz-CN": {"value" : "uz-Cyrl-CN"}, "ha-SD": {"value" : "ha-Arab-SD"}, "twh": {"value" : "twh-Latn-ZZ"}, "und-Takr": {"value" - : "doi-Takr-IN"}, "lgg": {"value" : "lgg-Latn-ZZ"}, "pon": {"value" : "pon-Latn-FM"}, "twq": {"value" : "twq-Latn-NE"}, "und-Arab-ID": {"value" : "ms-Arab-ID"}, "und-Arab-IN": {"value" : "ur-Arab-IN"}, "txg": {"value" : "txg-Tang-CN"}, "yam": {"value" : "yam-Latn-ZZ"}, "und-Talu": {"value" : "khb-Talu-CN"}, "yao": {"value" : "yao-Latn-MZ"}, "yap": {"value" : "yap-Latn-FM"}, "yas": {"value" : "yas-Latn-ZZ"}, "yat": {"value" : "yat-Latn-ZZ"}, "ppo": {"value" : "ppo-Latn-ZZ"}, "yav": {"value" : "yav-Latn-CM"} - , "yay": {"value" : "yay-Latn-ZZ"}, "yaz": {"value" : "yaz-Latn-ZZ"}, "und-Tale": {"value" : "tdd-Tale-CN"}, "ybb": {"value" : "ybb-Latn-CM"}, "yba": {"value" : "yba-Latn-ZZ"}, "tya": {"value" : "tya-Latn-ZZ"}, "lia": {"value" : "lia-Latn-ZZ"}, "lid": {"value" : "lid-Latn-ZZ"}, "und-Latn-TW": {"value" : "trv-Latn-TW"}, "lif": {"value" : "lif-Deva-NP"}, "lih": {"value" : "lih-Latn-ZZ"}, "lig": {"value" : "lig-Latn-ZZ"}, "lij": {"value" : "lij-Latn-IT"}, "hag": {"value" : "hag-Latn-ZZ"}, "und-Latn-TN": {"value" - : "fr-Latn-TN"}, "tyv": {"value" : "tyv-Cyrl-RU"}, "yby": {"value" : "yby-Latn-ZZ"}, "und-Arab-GB": {"value" : "ks-Arab-GB"}, "hak": {"value" : "hak-Hans-CN"}, "und-Taml": {"value" : "ta-Taml-IN"}, "ham": {"value" : "ham-Latn-ZZ"}, "lis": {"value" : "lis-Lisu-CN"}, "und-Latn-SY": {"value" : "fr-Latn-SY"}, "ky-Latn": {"value" : "ky-Latn-TR"}, "pra": {"value" : "pra-Khar-PK"}, "haw": {"value" : "haw-Latn-US"}, "haz": {"value" : "haz-Arab-AF"}, "ku-LB": {"value" : "ku-Arab-LB"}, "prd": {"value" : "prd-Arab-IR"} - , "prg": {"value" : "prg-Latn-001"}, "tzm": {"value" : "tzm-Latn-MA"}, "hbb": {"value" : "hbb-Latn-ZZ"}, "und-Latn-UA": {"value" : "pl-Latn-UA"}, "ljp": {"value" : "ljp-Latn-ID"}, "und-Tang": {"value" : "txg-Tang-CN"}, "yue-Hans": {"value" : "yue-Hans-CN"}, "und-Latn-RU": {"value" : "krl-Latn-RU"}, "lki": {"value" : "lki-Arab-IR"}, "pss": {"value" : "pss-Latn-ZZ"}, "lkt": {"value" : "lkt-Latn-US"}, "sr-RO": {"value" : "sr-Latn-RO"}, "und-Arab-CN": {"value" : "ug-Arab-CN"}, "lle": {"value" : "lle-Latn-ZZ"} - , "und-Cyrl": {"value" : "ru-Cyrl-RU"}, "uz-AF": {"value" : "uz-Arab-AF"}, "yer": {"value" : "yer-Latn-ZZ"}, "und-Beng": {"value" : "bn-Beng-BD"}, "ptp": {"value" : "ptp-Latn-ZZ"}, "lln": {"value" : "lln-Latn-ZZ"}, "sr-RU": {"value" : "sr-Latn-RU"}, "hdy": {"value" : "hdy-Ethi-ZZ"}, "unr-NP": {"value" : "unr-Deva-NP"}, "und-Mend": {"value" : "men-Mend-SL"}, "lmn": {"value" : "lmn-Telu-IN"}, "lmp": {"value" : "lmp-Latn-ZZ"}, "lmo": {"value" : "lmo-Latn-IT"}, "puu": {"value" : "puu-Latn-GA"}, "und-Arab-CC": - {"value" : "ms-Arab-CC"}, "pal-Phlp": {"value" : "pal-Phlp-CN"}, "ygr": {"value" : "ygr-Latn-ZZ"}, "ygw": {"value" : "ygw-Latn-ZZ"}, "lns": {"value" : "lns-Latn-ZZ"}, "ky-CN": {"value" : "ky-Arab-CN"}, "lnu": {"value" : "lnu-Latn-ZZ"}, "pwa": {"value" : "pwa-Latn-ZZ"}, "und-Mahj": {"value" : "hi-Mahj-IN"}, "rif-NL": {"value" : "rif-Latn-NL"}, "loj": {"value" : "loj-Latn-ZZ"}, "lol": {"value" : "lol-Latn-CD"}, "lok": {"value" : "lok-Latn-ZZ"}, "lor": {"value" : "lor-Latn-ZZ"}, "und-Sora": {"value" : "srb-Sora-IN"} - , "los": {"value" : "los-Latn-ZZ"}, "loz": {"value" : "loz-Latn-ZM"}, "und-202": {"value" : "en-Latn-NG"}, "und-Latn-MR": {"value" : "fr-Latn-MR"}, "hhy": {"value" : "hhy-Latn-ZZ"}, "hia": {"value" : "hia-Latn-ZZ"}, "hif": {"value" : "hif-Latn-FJ"}, "dad": {"value" : "dad-Latn-ZZ"}, "hih": {"value" : "hih-Latn-ZZ"}, "hig": {"value" : "hig-Latn-ZZ"}, "daf": {"value" : "daf-Latn-ZZ"}, "ubu": {"value" : "ubu-Latn-ZZ"}, "dah": {"value" : "dah-Latn-ZZ"}, "hil": {"value" : "hil-Latn-PH"}, "dag": {"value" : "dag-Latn-ZZ"} - , "und-Mero": {"value" : "xmr-Mero-SD"}, "dak": {"value" : "dak-Latn-US"}, "und-Merc": {"value" : "xmr-Merc-SD"}, "dar": {"value" : "dar-Cyrl-RU"}, "dav": {"value" : "dav-Latn-KE"}, "lrc": {"value" : "lrc-Arab-IR"}, "yko": {"value" : "yko-Latn-ZZ"}, "und-Latn-MK": {"value" : "sq-Latn-MK"}, "und-Latn-MM": {"value" : "kac-Latn-MM"}, "dbd": {"value" : "dbd-Latn-ZZ"}, "und-Latn-MO": {"value" : "pt-Latn-MO"}, "und-Latn-MA": {"value" : "fr-Latn-MA"}, "und-Bali": {"value" : "ban-Bali-ID"}, "und-Tavt": {"value" - : "blt-Tavt-VN"}, "dbq": {"value" : "dbq-Latn-ZZ"}, "yle": {"value" : "yle-Latn-ZZ"}, "ylg": {"value" : "ylg-Latn-ZZ"}, "und-Maka": {"value" : "mak-Maka-ID"}, "yll": {"value" : "yll-Latn-ZZ"}, "udm": {"value" : "udm-Cyrl-RU"}, "dcc": {"value" : "dcc-Arab-IN"}, "yml": {"value" : "yml-Latn-ZZ"}, "hla": {"value" : "hla-Latn-ZZ"}, "und-Latn-IR": {"value" : "tk-Latn-IR"}, "ltg": {"value" : "ltg-Latn-LV"}, "und-Latn-KM": {"value" : "fr-Latn-KM"}, "ddn": {"value" : "ddn-Latn-ZZ"}, "hlu": {"value" : "hlu-Hluw-TR"} - , "lua": {"value" : "lua-Latn-CD"}, "und-Bamu": {"value" : "bax-Bamu-CM"}, "hmd": {"value" : "hmd-Plrd-CN"}, "ded": {"value" : "ded-Latn-ZZ"}, "luo": {"value" : "luo-Latn-KE"}, "und-142": {"value" : "zh-Hans-CN"}, "und-143": {"value" : "uz-Latn-UZ"}, "den": {"value" : "den-Latn-CA"}, "und-Gran": {"value" : "sa-Gran-IN"}, "hmt": {"value" : "hmt-Latn-ZZ"}, "uga": {"value" : "uga-Ugar-SY"}, "luz": {"value" : "luz-Arab-IR"}, "luy": {"value" : "luy-Latn-KE"}, "und-145": {"value" : "ar-Arab-SA"}, "und-Cakm": {"value" - : "ccp-Cakm-BD"}, "und-Dupl": {"value" : "fr-Dupl-FR"}, "yon": {"value" : "yon-Latn-ZZ"}, "ug-MN": {"value" : "ug-Cyrl-MN"}, "hne": {"value" : "hne-Deva-IN"}, "hnd": {"value" : "hnd-Arab-PK"}, "hnj": {"value" : "hnj-Hmng-LA"}, "hno": {"value" : "hno-Arab-PK"}, "hnn": {"value" : "hnn-Latn-PH"}, "ug-KZ": {"value" : "ug-Cyrl-KZ"}, "und-154": {"value" : "en-Latn-GB"}, "und-155": {"value" : "de-Latn-DE"}, "und-150": {"value" : "ru-Cyrl-RU"}, "und-151": {"value" : "ru-Cyrl-RU"}, "und-Sylo": {"value" : "syl-Sylo-BD"} - , "hoc": {"value" : "hoc-Deva-IN"}, "dga": {"value" : "dga-Latn-ZZ"}, "lwl": {"value" : "lwl-Thai-TH"}, "und-Ital": {"value" : "ett-Ital-IT"}, "hoj": {"value" : "hoj-Deva-IN"}, "dgh": {"value" : "dgh-Latn-ZZ"}, "dgi": {"value" : "dgi-Latn-ZZ"}, "dgl": {"value" : "dgl-Arab-ZZ"}, "hot": {"value" : "hot-Latn-ZZ"}, "dgr": {"value" : "dgr-Latn-CA"}, "dgz": {"value" : "dgz-Latn-ZZ"}, "yrb": {"value" : "yrb-Latn-ZZ"}, "yre": {"value" : "yre-Latn-ZZ"}, "und-Lyci": {"value" : "xlc-Lyci-TR"}, "und-Cans": {"value" - : "cr-Cans-CA"}, "und-Hluw": {"value" : "hlu-Hluw-TR"}, "und-Nand": {"value" : "sa-Nand-IN"}, "yrl": {"value" : "yrl-Latn-BR"}, "dia": {"value" : "dia-Latn-ZZ"}, "und-Grek": {"value" : "el-Grek-GR"}, "und-Mong": {"value" : "mn-Mong-CN"}, "und-Lydi": {"value" : "xld-Lydi-TR"}, "yss": {"value" : "yss-Latn-ZZ"}, "und-Newa": {"value" : "new-Newa-NP"}, "lzh": {"value" : "lzh-Hans-CN"}, "dje": {"value" : "dje-Latn-NE"}, "lzz": {"value" : "lzz-Latn-TR"}, "uli": {"value" : "uli-Latn-FM"}, "hsb": {"value" : "hsb-Latn-DE"} - , "und-Xsux": {"value" : "akk-Xsux-IQ"}, "hsn": {"value" : "hsn-Hans-CN"}, "und-Cari": {"value" : "xcr-Cari-TR"}, "und-Syrc": {"value" : "syr-Syrc-IQ"}, "yua": {"value" : "yua-Latn-MX"}, "yue": {"value" : "yue-Hant-HK"}, "umb": {"value" : "umb-Latn-AO"}, "yuj": {"value" : "yuj-Latn-ZZ"}, "yut": {"value" : "yut-Latn-ZZ"}, "yuw": {"value" : "yuw-Latn-ZZ"}, "und-Bopo": {"value" : "zh-Bopo-TW"}, "und": {"value" : "en-Latn-US"}, "und-Egyp": {"value" : "egy-Egyp-EG"}, "und-Tglg": {"value" : "fil-Tglg-PH"}, "unr": - {"value" : "unr-Beng-IN"}, "hui": {"value" : "hui-Latn-ZZ"}, "und-Elba": {"value" : "sq-Elba-AL"}, "unx": {"value" : "unx-Beng-IN"}, "und-Narb": {"value" : "xna-Narb-SA"}, "pa-PK": {"value" : "pa-Arab-PK"}, "und-Hebr-CA": {"value" : "yi-Hebr-CA"}, "und-Geor": {"value" : "ka-Geor-GE"}, "und-Shrd": {"value" : "sa-Shrd-IN"}, "dnj": {"value" : "dnj-Latn-CI"}, "dob": {"value" : "dob-Latn-ZZ"}, "und-Mymr-TH": {"value" : "mnw-Mymr-TH"}, "doi": {"value" : "doi-Arab-IN"}, "dop": {"value" : "dop-Latn-ZZ"}, "und-Sund": - {"value" : "su-Sund-ID"}, "dow": {"value" : "dow-Latn-ZZ"}, "sr-ME": {"value" : "sr-Latn-ME"}, "und-Hung": {"value" : "hu-Hung-HU"}, "mad": {"value" : "mad-Latn-ID"}, "mag": {"value" : "mag-Deva-IN"}, "maf": {"value" : "maf-Latn-CM"}, "mai": {"value" : "mai-Deva-IN"}, "mak": {"value" : "mak-Latn-ID"}, "man": {"value" : "man-Latn-GM"}, "mas": {"value" : "mas-Latn-KE"}, "maw": {"value" : "maw-Latn-ZZ"}, "maz": {"value" : "maz-Latn-MX"}, "uri": {"value" : "uri-Latn-ZZ"}, "mbh": {"value" : "mbh-Latn-ZZ"}, "urt": - {"value" : "urt-Latn-ZZ"}, "mbo": {"value" : "mbo-Latn-ZZ"}, "urw": {"value" : "urw-Latn-ZZ"}, "mbq": {"value" : "mbq-Latn-ZZ"}, "mbu": {"value" : "mbu-Latn-ZZ"}, "und-Hebr-GB": {"value" : "yi-Hebr-GB"}, "usa": {"value" : "usa-Latn-ZZ"}, "mbw": {"value" : "mbw-Latn-ZZ"}, "mci": {"value" : "mci-Latn-ZZ"}, "dri": {"value" : "dri-Latn-ZZ"}, "mcq": {"value" : "mcq-Latn-ZZ"}, "mcp": {"value" : "mcp-Latn-ZZ"}, "mcr": {"value" : "mcr-Latn-ZZ"}, "mcu": {"value" : "mcu-Latn-ZZ"}, "drs": {"value" : "drs-Ethi-ZZ"} - , "mda": {"value" : "mda-Latn-ZZ"}, "mdf": {"value" : "mdf-Cyrl-RU"}, "mde": {"value" : "mde-Arab-ZZ"}, "mdh": {"value" : "mdh-Latn-PH"}, "dsb": {"value" : "dsb-Latn-DE"}, "mdj": {"value" : "mdj-Latn-ZZ"}, "utr": {"value" : "utr-Latn-ZZ"}, "mdr": {"value" : "mdr-Latn-ID"}, "mdx": {"value" : "mdx-Ethi-ZZ"}, "mee": {"value" : "mee-Latn-ZZ"}, "med": {"value" : "med-Latn-ZZ"}, "mek": {"value" : "mek-Latn-ZZ"}, "men": {"value" : "men-Latn-SL"}, "az-RU": {"value" : "az-Cyrl-RU"}, "mis-Medf": {"value" : "mis-Medf-NG"} - , "mer": {"value" : "mer-Latn-KE"}, "dtm": {"value" : "dtm-Latn-ML"}, "meu": {"value" : "meu-Latn-ZZ"}, "met": {"value" : "met-Latn-ZZ"}, "dtp": {"value" : "dtp-Latn-MY"}, "dts": {"value" : "dts-Latn-ZZ"}, "uvh": {"value" : "uvh-Latn-ZZ"}, "dty": {"value" : "dty-Deva-NP"}, "mfa": {"value" : "mfa-Arab-TH"}, "uvl": {"value" : "uvl-Latn-ZZ"}, "mfe": {"value" : "mfe-Latn-MU"}, "dua": {"value" : "dua-Latn-CM"}, "dud": {"value" : "dud-Latn-ZZ"}, "duc": {"value" : "duc-Latn-ZZ"}, "mfn": {"value" : "mfn-Latn-ZZ"} - , "dug": {"value" : "dug-Latn-ZZ"}, "mfo": {"value" : "mfo-Latn-ZZ"}, "mfq": {"value" : "mfq-Latn-ZZ"}, "und-Phag": {"value" : "lzh-Phag-CN"}, "dva": {"value" : "dva-Latn-ZZ"}, "mgh": {"value" : "mgh-Latn-MZ"}, "mgl": {"value" : "mgl-Latn-ZZ"}, "mgo": {"value" : "mgo-Latn-CM"}, "mgp": {"value" : "mgp-Deva-NP"}, "mgy": {"value" : "mgy-Latn-TZ"}, "zag": {"value" : "zag-Latn-SD"}, "mhi": {"value" : "mhi-Latn-ZZ"}, "mhl": {"value" : "mhl-Latn-ZZ"}, "dww": {"value" : "dww-Latn-ZZ"}, "mif": {"value" : "mif-Latn-ZZ"} - , "und-Mymr-IN": {"value" : "kht-Mymr-IN"}, "min": {"value" : "min-Latn-ID"}, "mis": {"value" : "mis-Hatr-IQ"}, "ian": {"value" : "ian-Latn-ZZ"}, "miw": {"value" : "miw-Latn-ZZ"}, "iar": {"value" : "iar-Latn-ZZ"}, "uz-Arab": {"value" : "uz-Arab-AF"}, "ibb": {"value" : "ibb-Latn-NG"}, "iba": {"value" : "iba-Latn-MY"}, "dyo": {"value" : "dyo-Latn-SN"}, "dyu": {"value" : "dyu-Latn-BF"}, "iby": {"value" : "iby-Latn-ZZ"}, "zdj": {"value" : "zdj-Arab-KM"}, "ica": {"value" : "ica-Latn-ZZ"}, "mki": {"value" : "mki-Arab-ZZ"} - , "und-Wcho": {"value" : "nnp-Wcho-IN"}, "ich": {"value" : "ich-Latn-ZZ"}, "mkl": {"value" : "mkl-Latn-ZZ"}, "dzg": {"value" : "dzg-Latn-ZZ"}, "mkp": {"value" : "mkp-Latn-ZZ"}, "zea": {"value" : "zea-Latn-NL"}, "mkw": {"value" : "mkw-Latn-ZZ"}, "mle": {"value" : "mle-Latn-ZZ"}, "idd": {"value" : "idd-Latn-ZZ"}, "idi": {"value" : "idi-Latn-ZZ"}, "lif-Limb": {"value" : "lif-Limb-IN"}, "mlp": {"value" : "mlp-Latn-ZZ"}, "mls": {"value" : "mls-Latn-SD"}, "idu": {"value" : "idu-Latn-ZZ"}, "quc": {"value" : "quc-Latn-GT"} - , "qug": {"value" : "qug-Latn-EC"}, "und-Jamo": {"value" : "ko-Jamo-KR"}, "mmo": {"value" : "mmo-Latn-ZZ"}, "mmu": {"value" : "mmu-Latn-ZZ"}, "mmx": {"value" : "mmx-Latn-ZZ"}, "zgh": {"value" : "zgh-Tfng-MA"}, "mna": {"value" : "mna-Latn-ZZ"}, "mnf": {"value" : "mnf-Latn-ZZ"}, "ife": {"value" : "ife-Latn-TG"}, "mni": {"value" : "mni-Beng-IN"}, "mnw": {"value" : "mnw-Mymr-MM"}, "moa": {"value" : "moa-Latn-ZZ"}, "moe": {"value" : "moe-Latn-CA"}, "igb": {"value" : "igb-Latn-ZZ"}, "ige": {"value" : "ige-Latn-ZZ"} - , "moh": {"value" : "moh-Latn-CA"}, "und-Hebr-SE": {"value" : "yi-Hebr-SE"}, "zhx": {"value" : "zhx-Nshu-CN"}, "mos": {"value" : "mos-Latn-BF"}, "und-Shaw": {"value" : "en-Shaw-GB"}, "zia": {"value" : "zia-Latn-ZZ"}, "mox": {"value" : "mox-Latn-ZZ"}, "vag": {"value" : "vag-Latn-ZZ"}, "vai": {"value" : "vai-Vaii-LR"}, "van": {"value" : "van-Latn-ZZ"}, "mpp": {"value" : "mpp-Latn-ZZ"}, "mpt": {"value" : "mpt-Latn-ZZ"}, "mps": {"value" : "mps-Latn-ZZ"}, "mpx": {"value" : "mpx-Latn-ZZ"}, "und-Hebr-US": {"value" - : "yi-Hebr-US"}, "mql": {"value" : "mql-Latn-ZZ"}, "und-Hebr-UA": {"value" : "yi-Hebr-UA"}, "mrd": {"value" : "mrd-Deva-NP"}, "mrj": {"value" : "mrj-Cyrl-RU"}, "ijj": {"value" : "ijj-Latn-ZZ"}, "mro": {"value" : "mro-Mroo-BD"}, "und-Modi": {"value" : "mr-Modi-IN"}, "ebu": {"value" : "ebu-Latn-KE"}, "zlm": {"value" : "zlm-Latn-TG"}, "arc-Palm": {"value" : "arc-Palm-SY"}, "ikk": {"value" : "ikk-Latn-ZZ"}, "ikt": {"value" : "ikt-Latn-CA"}, "ikw": {"value" : "ikw-Latn-ZZ"}, "vec": {"value" : "vec-Latn-IT"}, - "ikx": {"value" : "ikx-Latn-ZZ"}, "zmi": {"value" : "zmi-Latn-MY"}, "mtc": {"value" : "mtc-Latn-ZZ"}, "mtf": {"value" : "mtf-Latn-ZZ"}, "vep": {"value" : "vep-Latn-RU"}, "zh-Bopo": {"value" : "zh-Bopo-TW"}, "mti": {"value" : "mti-Latn-ZZ"}, "und-Ethi": {"value" : "am-Ethi-ET"}, "mtr": {"value" : "mtr-Deva-IN"}, "und-Thai-LA": {"value" : "kdt-Thai-LA"}, "ilo": {"value" : "ilo-Latn-PH"}, "zne": {"value" : "zne-Latn-ZZ"}, "mua": {"value" : "mua-Latn-CM"}, "und-Thai-KH": {"value" : "kdt-Thai-KH"}, "imo": {"value" - : "imo-Latn-ZZ"}, "mus": {"value" : "mus-Latn-US"}, "mur": {"value" : "mur-Latn-ZZ"}, "mva": {"value" : "mva-Latn-ZZ"}, "inh": {"value" : "inh-Cyrl-RU"}, "mvn": {"value" : "mvn-Latn-ZZ"}, "efi": {"value" : "efi-Latn-NG"}, "mvy": {"value" : "mvy-Arab-PK"}, "und-Java": {"value" : "jv-Java-ID"}, "mwk": {"value" : "mwk-Latn-ML"}, "mwr": {"value" : "mwr-Deva-IN"}, "und-021": {"value" : "en-Latn-US"}, "egl": {"value" : "egl-Latn-IT"}, "mww": {"value" : "mww-Hmnp-US"}, "mwv": {"value" : "mwv-Latn-ID"}, "iou": {"value" - : "iou-Latn-ZZ"}, "und-029": {"value" : "es-Latn-CU"}, "vic": {"value" : "vic-Latn-SX"}, "egy": {"value" : "egy-Egyp-EG"}, "und-Ugar": {"value" : "uga-Ugar-SY"}, "mxc": {"value" : "mxc-Latn-ZW"}, "raj": {"value" : "raj-Deva-IN"}, "rai": {"value" : "rai-Latn-ZZ"}, "rao": {"value" : "rao-Latn-ZZ"}, "viv": {"value" : "viv-Latn-ZZ"}, "mxm": {"value" : "mxm-Latn-ZZ"}, "und-034": {"value" : "hi-Deva-IN"}, "und-030": {"value" : "zh-Hans-CN"}, "und-039": {"value" : "it-Latn-IT"}, "und-035": {"value" : "id-Latn-ID"} - , "ug-Cyrl": {"value" : "ug-Cyrl-KZ"}, "myk": {"value" : "myk-Latn-ZZ"}, "mym": {"value" : "mym-Ethi-ZZ"}, "aai": {"value" : "aai-Latn-ZZ"}, "aak": {"value" : "aak-Latn-ZZ"}, "myw": {"value" : "myw-Latn-ZZ"}, "myv": {"value" : "myv-Cyrl-RU"}, "myx": {"value" : "myx-Latn-UG"}, "myz": {"value" : "myz-Mand-IR"}, "und-Sinh": {"value" : "si-Sinh-LK"}, "und-Sind": {"value" : "sd-Sind-IN"}, "aau": {"value" : "aau-Latn-ZZ"}, "rcf": {"value" : "rcf-Latn-RE"}, "und-Orkh": {"value" : "otk-Orkh-MN"}, "mzk": {"value" - : "mzk-Latn-ZZ"}, "mzn": {"value" : "mzn-Arab-IR"}, "iri": {"value" : "iri-Latn-ZZ"}, "mzm": {"value" : "mzm-Latn-ZZ"}, "mzp": {"value" : "mzp-Latn-ZZ"}, "und-053": {"value" : "en-Latn-AU"}, "abi": {"value" : "abi-Latn-ZZ"}, "und-054": {"value" : "en-Latn-PG"}, "mzw": {"value" : "mzw-Latn-ZZ"}, "mzz": {"value" : "mzz-Latn-ZZ"}, "abr": {"value" : "abr-Latn-GH"}, "abq": {"value" : "abq-Cyrl-ZZ"}, "abt": {"value" : "abt-Latn-ZZ"}, "und-057": {"value" : "en-Latn-GU"}, "aby": {"value" : "aby-Latn-ZZ"}, "eka": - {"value" : "eka-Latn-ZZ"}, "vls": {"value" : "vls-Latn-BE"}, "ace": {"value" : "ace-Latn-ID"}, "acd": {"value" : "acd-Latn-ZZ"}, "ach": {"value" : "ach-Latn-UG"}, "vmf": {"value" : "vmf-Latn-DE"}, "eky": {"value" : "eky-Kali-MM"}, "rej": {"value" : "rej-Latn-ID"}, "rel": {"value" : "rel-Latn-ZZ"}, "ada": {"value" : "ada-Latn-GH"}, "res": {"value" : "res-Latn-ZZ"}, "vmw": {"value" : "vmw-Latn-MZ"}, "ade": {"value" : "ade-Latn-ZZ"}, "adj": {"value" : "adj-Latn-ZZ"}, "und-Hira": {"value" : "ja-Hira-JP"}, "adz": - {"value" : "adz-Latn-ZZ"}, "ady": {"value" : "ady-Cyrl-RU"}, "ema": {"value" : "ema-Latn-ZZ"}, "und-Deva": {"value" : "hi-Deva-IN"}, "aeb": {"value" : "aeb-Arab-TN"}, "emi": {"value" : "emi-Latn-ZZ"}, "und-009": {"value" : "en-Latn-AU"}, "aey": {"value" : "aey-Latn-ZZ"}, "und-002": {"value" : "en-Latn-NG"}, "und-003": {"value" : "en-Latn-US"}, "und-005": {"value" : "pt-Latn-BR"}, "rgn": {"value" : "rgn-Latn-IT"}, "vot": {"value" : "vot-Latn-RU"}, "enn": {"value" : "enn-Latn-ZZ"}, "enq": {"value" : "enq-Latn-ZZ"} - , "und-011": {"value" : "en-Latn-NG"}, "rhg": {"value" : "rhg-Arab-MM"}, "und-017": {"value" : "sw-Latn-CD"}, "und-018": {"value" : "en-Latn-ZA"}, "und-019": {"value" : "en-Latn-US"}, "und-013": {"value" : "es-Latn-MX"}, "und-014": {"value" : "sw-Latn-TZ"}, "und-015": {"value" : "ar-Arab-EG"}, "agc": {"value" : "agc-Latn-ZZ"}, "und-Zanb": {"value" : "cmg-Zanb-MN"}, "iwm": {"value" : "iwm-Latn-ZZ"}, "agd": {"value" : "agd-Latn-ZZ"}, "agg": {"value" : "agg-Latn-ZZ"}, "iws": {"value" : "iws-Latn-ZZ"}, "agm": - {"value" : "agm-Latn-ZZ"}, "ago": {"value" : "ago-Latn-ZZ"}, "agq": {"value" : "agq-Latn-CM"}, "ria": {"value" : "ria-Latn-IN"}, "rif": {"value" : "rif-Tfng-MA"}, "nac": {"value" : "nac-Latn-ZZ"}, "naf": {"value" : "naf-Latn-ZZ"}, "nak": {"value" : "nak-Latn-ZZ"}, "nan": {"value" : "nan-Hans-CN"}, "aha": {"value" : "aha-Latn-ZZ"}, "nap": {"value" : "nap-Latn-IT"}, "naq": {"value" : "naq-Latn-NA"}, "zza": {"value" : "zza-Latn-TR"}, "nas": {"value" : "nas-Latn-ZZ"}, "ahl": {"value" : "ahl-Latn-ZZ"}, "en-Shaw": - {"value" : "en-Shaw-GB"}, "und-Copt": {"value" : "cop-Copt-EG"}, "aho": {"value" : "aho-Ahom-IN"}, "vro": {"value" : "vro-Latn-EE"}, "rjs": {"value" : "rjs-Deva-NP"}, "nca": {"value" : "nca-Latn-ZZ"}, "ncf": {"value" : "ncf-Latn-ZZ"}, "nce": {"value" : "nce-Latn-ZZ"}, "nch": {"value" : "nch-Latn-MX"}, "izh": {"value" : "izh-Latn-RU"}, "izi": {"value" : "izi-Latn-ZZ"}, "rkt": {"value" : "rkt-Beng-BD"}, "nco": {"value" : "nco-Latn-ZZ"}, "eri": {"value" : "eri-Latn-ZZ"}, "ajg": {"value" : "ajg-Latn-ZZ"}, "ncu": - {"value" : "ncu-Latn-ZZ"}, "ndc": {"value" : "ndc-Latn-MZ"}, "esg": {"value" : "esg-Gonm-IN"}, "nds": {"value" : "nds-Latn-DE"}, "akk": {"value" : "akk-Xsux-IQ"}, "esu": {"value" : "esu-Latn-US"}, "neb": {"value" : "neb-Latn-ZZ"}, "rmf": {"value" : "rmf-Latn-FI"}, "und-061": {"value" : "sm-Latn-WS"}, "und-Limb": {"value" : "lif-Limb-IN"}, "vun": {"value" : "vun-Latn-TZ"}, "ff-Adlm": {"value" : "ff-Adlm-GN"}, "vut": {"value" : "vut-Latn-ZZ"}, "rmo": {"value" : "rmo-Latn-CH"}, "ala": {"value" : "ala-Latn-ZZ"} - , "rmt": {"value" : "rmt-Arab-IR"}, "rmu": {"value" : "rmu-Latn-SE"}, "ali": {"value" : "ali-Latn-ZZ"}, "nex": {"value" : "nex-Latn-ZZ"}, "new": {"value" : "new-Deva-NP"}, "aln": {"value" : "aln-Latn-XK"}, "etr": {"value" : "etr-Latn-ZZ"}, "und-Rohg": {"value" : "rhg-Rohg-MM"}, "ett": {"value" : "ett-Ital-IT"}, "rna": {"value" : "rna-Latn-ZZ"}, "etu": {"value" : "etu-Latn-ZZ"}, "alt": {"value" : "alt-Cyrl-RU"}, "etx": {"value" : "etx-Latn-ZZ"}, "rng": {"value" : "rng-Latn-MZ"}, "und-Linb": {"value" : "grc-Linb-GR"} - , "und-Lina": {"value" : "lab-Lina-GR"}, "und-Jpan": {"value" : "ja-Jpan-JP"}, "man-GN": {"value" : "man-Nkoo-GN"}, "nfr": {"value" : "nfr-Latn-ZZ"}, "amm": {"value" : "amm-Latn-ZZ"}, "und-Arab": {"value" : "ar-Arab-EG"}, "amo": {"value" : "amo-Latn-NG"}, "amn": {"value" : "amn-Latn-ZZ"}, "rob": {"value" : "rob-Latn-ID"}, "amp": {"value" : "amp-Latn-ZZ"}, "ngb": {"value" : "ngb-Latn-ZZ"}, "rof": {"value" : "rof-Latn-TZ"}, "nga": {"value" : "nga-Latn-ZZ"}, "ngl": {"value" : "ngl-Latn-MZ"}, "roo": {"value" - : "roo-Latn-ZZ"}, "anc": {"value" : "anc-Latn-ZZ"}, "ank": {"value" : "ank-Latn-ZZ"}, "ann": {"value" : "ann-Latn-ZZ"}, "und-Bhks": {"value" : "sa-Bhks-IN"}, "nhb": {"value" : "nhb-Latn-ZZ"}, "nhe": {"value" : "nhe-Latn-MX"}, "any": {"value" : "any-Latn-ZZ"}, "und-Orya": {"value" : "or-Orya-IN"}, "ewo": {"value" : "ewo-Latn-CM"}, "nhw": {"value" : "nhw-Latn-MX"}, "aoj": {"value" : "aoj-Latn-ZZ"}, "aom": {"value" : "aom-Latn-ZZ"}, "zh-Hanb": {"value" : "zh-Hanb-TW"}, "jab": {"value" : "jab-Latn-ZZ"}, "nif": - {"value" : "nif-Latn-ZZ"}, "aoz": {"value" : "aoz-Latn-ID"}, "nij": {"value" : "nij-Latn-ID"}, "nii": {"value" : "nii-Latn-ZZ"}, "zh-PH": {"value" : "zh-Hant-PH"}, "nin": {"value" : "nin-Latn-ZZ"}, "zh-Hant": {"value" : "zh-Hant-TW"}, "zh-PF": {"value" : "zh-Hant-PF"}, "und-Ahom": {"value" : "aho-Ahom-IN"}, "apd": {"value" : "apd-Arab-TG"}, "apc": {"value" : "apc-Arab-ZZ"}, "ape": {"value" : "ape-Latn-ZZ"}, "jam": {"value" : "jam-Latn-JM"}, "zh-PA": {"value" : "zh-Hant-PA"}, "niu": {"value" : "niu-Latn-NU"} - , "niz": {"value" : "niz-Latn-ZZ"}, "niy": {"value" : "niy-Latn-ZZ"}, "ext": {"value" : "ext-Latn-ES"}, "apr": {"value" : "apr-Latn-ZZ"}, "aps": {"value" : "aps-Latn-ZZ"}, "apz": {"value" : "apz-Latn-ZZ"}, "rro": {"value" : "rro-Latn-ZZ"}, "njo": {"value" : "njo-Latn-IN"}, "jbo": {"value" : "jbo-Latn-001"}, "jbu": {"value" : "jbu-Latn-ZZ"}, "zh-MO": {"value" : "zh-Hant-MO"}, "nkg": {"value" : "nkg-Latn-ZZ"}, "zh-MY": {"value" : "zh-Hant-MY"}, "arc": {"value" : "arc-Armi-IR"}, "nko": {"value" : "nko-Latn-ZZ"} - , "arh": {"value" : "arh-Latn-ZZ"}, "pa-Arab": {"value" : "pa-Arab-PK"}, "und-Mtei": {"value" : "mni-Mtei-IN"}, "arn": {"value" : "arn-Latn-CL"}, "aro": {"value" : "aro-Latn-BO"}, "und-Cyrl-RO": {"value" : "bg-Cyrl-RO"}, "arq": {"value" : "arq-Arab-DZ"}, "arz": {"value" : "arz-Arab-EG"}, "ary": {"value" : "ary-Arab-MA"}, "rtm": {"value" : "rtm-Latn-FJ"}, "asa": {"value" : "asa-Latn-TZ"}, "und-Grek-TR": {"value" : "bgx-Grek-TR"}, "ase": {"value" : "ase-Sgnw-US"}, "asg": {"value" : "asg-Latn-ZZ"}, "aso": {"value" - : "aso-Latn-ZZ"}, "ast": {"value" : "ast-Latn-ES"}, "rue": {"value" : "rue-Cyrl-UA"}, "rug": {"value" : "rug-Latn-SB"}, "nmg": {"value" : "nmg-Latn-CM"}, "ata": {"value" : "ata-Latn-ZZ"}, "jen": {"value" : "jen-Latn-ZZ"}, "atg": {"value" : "atg-Latn-ZZ"}, "atj": {"value" : "atj-Latn-CA"}, "nmz": {"value" : "nmz-Latn-ZZ"}, "unr-Deva": {"value" : "unr-Deva-NP"}, "nnf": {"value" : "nnf-Latn-ZZ"}, "nnh": {"value" : "nnh-Latn-CM"}, "nnk": {"value" : "nnk-Latn-ZZ"}, "nnm": {"value" : "nnm-Latn-ZZ"}, "nnp": {"value" - : "nnp-Wcho-IN"}, "az-IR": {"value" : "az-Arab-IR"}, "und-Adlm": {"value" : "ff-Adlm-GN"}, "az-IQ": {"value" : "az-Arab-IQ"}, "und-Nbat": {"value" : "arc-Nbat-JO"}, "sd-Khoj": {"value" : "sd-Khoj-IN"}, "nod": {"value" : "nod-Lana-TH"}, "auy": {"value" : "auy-Latn-ZZ"}, "noe": {"value" : "noe-Deva-IN"}, "rwk": {"value" : "rwk-Latn-TZ"}, "und-Cyrl-MD": {"value" : "uk-Cyrl-MD"}, "rwo": {"value" : "rwo-Latn-ZZ"}, "non": {"value" : "non-Runr-SE"}, "nop": {"value" : "nop-Latn-ZZ"}, "jgk": {"value" : "jgk-Latn-ZZ"} - , "jgo": {"value" : "jgo-Latn-CM"}, "und-Vaii": {"value" : "vai-Vaii-LR"}, "nou": {"value" : "nou-Latn-ZZ"}, "avl": {"value" : "avl-Arab-ZZ"}, "avn": {"value" : "avn-Latn-ZZ"}, "wae": {"value" : "wae-Latn-CH"}, "avt": {"value" : "avt-Latn-ZZ"}, "avu": {"value" : "avu-Latn-ZZ"}, "waj": {"value" : "waj-Latn-ZZ"}, "wal": {"value" : "wal-Ethi-ET"}, "wan": {"value" : "wan-Latn-ZZ"}, "zh-HK": {"value" : "zh-Hant-HK"}, "war": {"value" : "war-Latn-PH"}, "awa": {"value" : "awa-Deva-IN"}, "und-Plrd": {"value" : "hmd-Plrd-CN"} - , "awb": {"value" : "awb-Latn-ZZ"}, "awo": {"value" : "awo-Latn-ZZ"}, "und-Knda": {"value" : "kn-Knda-IN"}, "zh-ID": {"value" : "zh-Hant-ID"}, "jib": {"value" : "jib-Latn-ZZ"}, "awx": {"value" : "awx-Latn-ZZ"}, "wbp": {"value" : "wbp-Latn-AU"}, "und-Sidd": {"value" : "sa-Sidd-IN"}, "fab": {"value" : "fab-Latn-ZZ"}, "wbr": {"value" : "wbr-Deva-IN"}, "faa": {"value" : "faa-Latn-ZZ"}, "wbq": {"value" : "wbq-Telu-IN"}, "und-Kali": {"value" : "eky-Kali-MM"}, "fag": {"value" : "fag-Latn-ZZ"}, "nqo": {"value" : - "nqo-Nkoo-GN"}, "fai": {"value" : "fai-Latn-ZZ"}, "ryu": {"value" : "ryu-Kana-JP"}, "fan": {"value" : "fan-Latn-GQ"}, "wci": {"value" : "wci-Latn-ZZ"}, "nrb": {"value" : "nrb-Latn-ZZ"}, "und-Phlp": {"value" : "pal-Phlp-CN"}, "ayb": {"value" : "ayb-Latn-ZZ"}, "und-Phli": {"value" : "pal-Phli-IR"}, "cu-Glag": {"value" : "cu-Glag-BG"}, "und-Cyrl-XK": {"value" : "sr-Cyrl-XK"}, "az-Arab": {"value" : "az-Arab-IR"}, "und-Thai": {"value" : "th-Thai-TH"}, "nsk": {"value" : "nsk-Cans-CA"}, "nsn": {"value" : "nsn-Latn-ZZ"} - , "nso": {"value" : "nso-Latn-ZA"}, "und-Thaa": {"value" : "dv-Thaa-MV"}, "und-Nshu": {"value" : "zhx-Nshu-CN"}, "nss": {"value" : "nss-Latn-ZZ"}, "zh-VN": {"value" : "zh-Hant-VN"}, "und-Hmnp": {"value" : "mww-Hmnp-US"}, "und-Kana": {"value" : "ja-Kana-JP"}, "und-Hmng": {"value" : "hnj-Hmng-LA"}, "wer": {"value" : "wer-Latn-ZZ"}, "zh-TW": {"value" : "zh-Hant-TW"}, "ntm": {"value" : "ntm-Latn-ZZ"}, "ntr": {"value" : "ntr-Latn-ZZ"}, "zh-US": {"value" : "zh-Hant-US"}, "und-Xpeo": {"value" : "peo-Xpeo-IR"}, - "jmc": {"value" : "jmc-Latn-TZ"}, "nui": {"value" : "nui-Latn-ZZ"}, "jml": {"value" : "jml-Deva-NP"}, "nup": {"value" : "nup-Latn-ZZ"}, "und-Cyrl-SK": {"value" : "uk-Cyrl-SK"}, "nus": {"value" : "nus-Latn-SS"}, "nuv": {"value" : "nuv-Latn-ZZ"}, "nux": {"value" : "nux-Latn-ZZ"}, "zh-TH": {"value" : "zh-Hant-TH"}, "wgi": {"value" : "wgi-Latn-ZZ"}, "und-Phnx": {"value" : "phn-Phnx-LB"}, "und-Cyrl-TR": {"value" : "kbd-Cyrl-TR"}, "ffi": {"value" : "ffi-Latn-ZZ"}, "und-Elym": {"value" : "arc-Elym-IR"}, "ffm": - {"value" : "ffm-Latn-ML"}, "und-Rjng": {"value" : "rej-Rjng-ID"}, "whg": {"value" : "whg-Latn-ZZ"}, "nwb": {"value" : "nwb-Latn-ZZ"}, "zh-SR": {"value" : "zh-Hant-SR"}, "wib": {"value" : "wib-Latn-ZZ"}, "und-Hebr": {"value" : "he-Hebr-IL"}, "saf": {"value" : "saf-Latn-GH"}, "sah": {"value" : "sah-Cyrl-RU"}, "saq": {"value" : "saq-Latn-KE"}, "wiu": {"value" : "wiu-Latn-ZZ"}, "sas": {"value" : "sas-Latn-ID"}, "wiv": {"value" : "wiv-Latn-ZZ"}, "nxq": {"value" : "nxq-Latn-CN"}, "sat": {"value" : "sat-Latn-IN"} - , "nxr": {"value" : "nxr-Latn-ZZ"}, "sav": {"value" : "sav-Latn-SN"}, "saz": {"value" : "saz-Saur-IN"}, "wja": {"value" : "wja-Latn-ZZ"}, "sba": {"value" : "sba-Latn-ZZ"}, "sbe": {"value" : "sbe-Latn-ZZ"}, "wji": {"value" : "wji-Latn-ZZ"}, "mn-Mong": {"value" : "mn-Mong-CN"}, "und-419": {"value" : "es-Latn-419"}, "fia": {"value" : "fia-Arab-SD"}, "sbp": {"value" : "sbp-Latn-TZ"}, "und-NO": {"value" : "nb-Latn-NO"}, "nyn": {"value" : "nyn-Latn-UG"}, "nym": {"value" : "nym-Latn-TZ"}, "und-NL": {"value" : "nl-Latn-NL"} - , "und-NP": {"value" : "ne-Deva-NP"}, "fil": {"value" : "fil-Latn-PH"}, "bal": {"value" : "bal-Arab-PK"}, "ban": {"value" : "ban-Latn-ID"}, "bap": {"value" : "bap-Deva-NP"}, "fit": {"value" : "fit-Latn-SE"}, "bar": {"value" : "bar-Latn-AT"}, "bas": {"value" : "bas-Latn-CM"}, "bav": {"value" : "bav-Latn-ZZ"}, "bax": {"value" : "bax-Bamu-CM"}, "jra": {"value" : "jra-Latn-ZZ"}, "sck": {"value" : "sck-Deva-IN"}, "nzi": {"value" : "nzi-Latn-GH"}, "scl": {"value" : "scl-Arab-ZZ"}, "sco": {"value" : "sco-Latn-GB"} - , "scn": {"value" : "scn-Latn-IT"}, "aa": {"value" : "aa-Latn-ET"}, "bba": {"value" : "bba-Latn-ZZ"}, "und-MN": {"value" : "mn-Cyrl-MN"}, "ab": {"value" : "ab-Cyrl-GE"}, "und-MM": {"value" : "my-Mymr-MM"}, "und-Osma": {"value" : "so-Osma-SO"}, "bbc": {"value" : "bbc-Latn-ID"}, "scs": {"value" : "scs-Latn-CA"}, "und-ML": {"value" : "bm-Latn-ML"}, "bbb": {"value" : "bbb-Latn-ZZ"}, "und-MK": {"value" : "mk-Cyrl-MK"}, "ae": {"value" : "ae-Avst-IR"}, "und-MR": {"value" : "ar-Arab-MR"}, "af": {"value" : "af-Latn-ZA"} - , "bbd": {"value" : "bbd-Latn-ZZ"}, "und-MQ": {"value" : "fr-Latn-MQ"}, "und-Wara": {"value" : "hoc-Wara-IN"}, "und-MO": {"value" : "zh-Hant-MO"}, "und-MV": {"value" : "dv-Thaa-MV"}, "und-MU": {"value" : "mfe-Latn-MU"}, "ak": {"value" : "ak-Latn-GH"}, "und-MT": {"value" : "mt-Latn-MT"}, "bbj": {"value" : "bbj-Latn-CM"}, "am": {"value" : "am-Ethi-ET"}, "und-MZ": {"value" : "pt-Latn-MZ"}, "und-MY": {"value" : "ms-Latn-MY"}, "und-MX": {"value" : "es-Latn-MX"}, "ar": {"value" : "ar-Arab-EG"}, "bbp": {"value" - : "bbp-Latn-ZZ"}, "as": {"value" : "as-Beng-IN"}, "bbr": {"value" : "bbr-Latn-ZZ"}, "sdc": {"value" : "sdc-Latn-IT"}, "und-NC": {"value" : "fr-Latn-NC"}, "av": {"value" : "av-Cyrl-RU"}, "sdh": {"value" : "sdh-Arab-IR"}, "und-NA": {"value" : "af-Latn-NA"}, "ay": {"value" : "ay-Latn-BO"}, "az": {"value" : "az-Latn-AZ"}, "und-NE": {"value" : "ha-Latn-NE"}, "und-NI": {"value" : "es-Latn-NI"}, "ba": {"value" : "ba-Cyrl-RU"}, "wls": {"value" : "wls-Latn-WF"}, "und-Kore": {"value" : "ko-Kore-KR"}, "und-LK": {"value" - : "si-Sinh-LK"}, "be": {"value" : "be-Cyrl-BY"}, "bcf": {"value" : "bcf-Latn-ZZ"}, "bg": {"value" : "bg-Cyrl-BG"}, "bch": {"value" : "bch-Latn-ZZ"}, "bi": {"value" : "bi-Latn-VU"}, "und-LU": {"value" : "fr-Latn-LU"}, "bci": {"value" : "bci-Latn-CI"}, "und-LT": {"value" : "lt-Latn-LT"}, "und-LS": {"value" : "st-Latn-LS"}, "bm": {"value" : "bm-Latn-ML"}, "bcn": {"value" : "bcn-Latn-ZZ"}, "bn": {"value" : "bn-Beng-BD"}, "und-LY": {"value" : "ar-Arab-LY"}, "bcm": {"value" : "bcm-Latn-ZZ"}, "bo": {"value" : "bo-Tibt-CN"} - , "bco": {"value" : "bco-Latn-ZZ"}, "und-LV": {"value" : "lv-Latn-LV"}, "br": {"value" : "br-Latn-FR"}, "bcq": {"value" : "bcq-Ethi-ZZ"}, "bs": {"value" : "bs-Latn-BA"}, "bcu": {"value" : "bcu-Latn-ZZ"}, "sef": {"value" : "sef-Latn-CI"}, "und-MA": {"value" : "ar-Arab-MA"}, "sei": {"value" : "sei-Latn-MX"}, "seh": {"value" : "seh-Latn-MZ"}, "und-MF": {"value" : "fr-Latn-MF"}, "wmo": {"value" : "wmo-Latn-ZZ"}, "und-ME": {"value" : "sr-Latn-ME"}, "und-MD": {"value" : "ro-Latn-MD"}, "und-MC": {"value" : "fr-Latn-MC"} - , "ca": {"value" : "ca-Latn-ES"}, "und-MG": {"value" : "mg-Latn-MG"}, "ses": {"value" : "ses-Latn-ML"}, "ce": {"value" : "ce-Cyrl-RU"}, "und-Cyrl-BA": {"value" : "sr-Cyrl-BA"}, "bdd": {"value" : "bdd-Latn-ZZ"}, "und-KP": {"value" : "ko-Kore-KP"}, "ch": {"value" : "ch-Latn-GU"}, "und-KM": {"value" : "ar-Arab-KM"}, "und-KR": {"value" : "ko-Kore-KR"}, "co": {"value" : "co-Latn-FR"}, "flr": {"value" : "flr-Latn-ZZ"}, "und-KW": {"value" : "ar-Arab-KW"}, "wnc": {"value" : "wnc-Latn-ZZ"}, "und-Dogr": {"value" : - "doi-Dogr-IN"}, "cr": {"value" : "cr-Cans-CA"}, "cs": {"value" : "cs-Latn-CZ"}, "cu": {"value" : "cu-Cyrl-RU"}, "und-KZ": {"value" : "ru-Cyrl-KZ"}, "cv": {"value" : "cv-Cyrl-RU"}, "wni": {"value" : "wni-Arab-KM"}, "und-LA": {"value" : "lo-Laoo-LA"}, "cy": {"value" : "cy-Latn-GB"}, "und-LB": {"value" : "ar-Arab-LB"}, "und-LI": {"value" : "de-Latn-LI"}, "da": {"value" : "da-Latn-DK"}, "und-Cyrl-AL": {"value" : "mk-Cyrl-AL"}, "wnu": {"value" : "wnu-Latn-ZZ"}, "de": {"value" : "de-Latn-DE"}, "bef": {"value" - : "bef-Latn-ZZ"}, "beh": {"value" : "beh-Latn-ZZ"}, "und-JO": {"value" : "ar-Arab-JO"}, "bej": {"value" : "bej-Arab-SD"}, "fmp": {"value" : "fmp-Latn-ZZ"}, "jut": {"value" : "jut-Latn-DK"}, "bem": {"value" : "bem-Latn-ZM"}, "und-JP": {"value" : "ja-Jpan-JP"}, "wob": {"value" : "wob-Latn-ZZ"}, "sga": {"value" : "sga-Ogam-IE"}, "bet": {"value" : "bet-Latn-ZZ"}, "dv": {"value" : "dv-Thaa-MV"}, "bex": {"value" : "bex-Latn-ZZ"}, "bew": {"value" : "bew-Latn-ID"}, "bez": {"value" : "bez-Latn-TZ"}, "dz": {"value" - : "dz-Tibt-BT"}, "ms-ID": {"value" : "ms-Arab-ID"}, "wos": {"value" : "wos-Latn-ZZ"}, "und-KH": {"value" : "km-Khmr-KH"}, "und-KG": {"value" : "ky-Cyrl-KG"}, "sgs": {"value" : "sgs-Latn-LT"}, "und-KE": {"value" : "sw-Latn-KE"}, "ee": {"value" : "ee-Latn-GH"}, "bfd": {"value" : "bfd-Latn-CM"}, "sgw": {"value" : "sgw-Ethi-ZZ"}, "und-IN": {"value" : "hi-Deva-IN"}, "und-IL": {"value" : "he-Hebr-IL"}, "el": {"value" : "el-Grek-GR"}, "sgz": {"value" : "sgz-Latn-ZZ"}, "und-IR": {"value" : "fa-Arab-IR"}, "en": {"value" - : "en-Latn-US"}, "und-IQ": {"value" : "ar-Arab-IQ"}, "und-Perm": {"value" : "kv-Perm-RU"}, "eo": {"value" : "eo-Latn-001"}, "bfq": {"value" : "bfq-Taml-IN"}, "es": {"value" : "es-Latn-ES"}, "und-IT": {"value" : "it-Latn-IT"}, "et": {"value" : "et-Latn-EE"}, "und-IS": {"value" : "is-Latn-IS"}, "eu": {"value" : "eu-Latn-ES"}, "bft": {"value" : "bft-Arab-PK"}, "bfy": {"value" : "bfy-Deva-IN"}, "shi": {"value" : "shi-Tfng-MA"}, "shk": {"value" : "shk-Latn-ZZ"}, "shn": {"value" : "shn-Mymr-MM"}, "fod": {"value" - : "fod-Latn-ZZ"}, "fa": {"value" : "fa-Arab-IR"}, "bgc": {"value" : "bgc-Deva-IN"}, "ff": {"value" : "ff-Latn-SN"}, "shu": {"value" : "shu-Arab-ZZ"}, "fi": {"value" : "fi-Latn-FI"}, "fj": {"value" : "fj-Latn-FJ"}, "fon": {"value" : "fon-Latn-BJ"}, "und-HM": {"value" : "und-Latn-HM"}, "und-HK": {"value" : "zh-Hant-HK"}, "bgn": {"value" : "bgn-Arab-PK"}, "for": {"value" : "for-Latn-ZZ"}, "fo": {"value" : "fo-Latn-FO"}, "und-HN": {"value" : "es-Latn-HN"}, "fr": {"value" : "fr-Latn-FR"}, "und-HU": {"value" : - "hu-Latn-HU"}, "und-HT": {"value" : "ht-Latn-HT"}, "ku-Arab": {"value" : "ku-Arab-IQ"}, "sid": {"value" : "sid-Latn-ET"}, "und-HR": {"value" : "hr-Latn-HR"}, "sig": {"value" : "sig-Latn-ZZ"}, "bgx": {"value" : "bgx-Grek-TR"}, "fy": {"value" : "fy-Latn-NL"}, "sim": {"value" : "sim-Latn-ZZ"}, "sil": {"value" : "sil-Latn-ZZ"}, "fpe": {"value" : "fpe-Latn-ZZ"}, "ga": {"value" : "ga-Latn-IE"}, "bhb": {"value" : "bhb-Deva-IN"}, "gd": {"value" : "gd-Latn-GB"}, "und-ID": {"value" : "id-Latn-ID"}, "und-IC": {"value" - : "es-Latn-IC"}, "bhg": {"value" : "bhg-Latn-ZZ"}, "und-GH": {"value" : "ak-Latn-GH"}, "bhi": {"value" : "bhi-Deva-IN"}, "und-GF": {"value" : "fr-Latn-GF"}, "und-GE": {"value" : "ka-Geor-GE"}, "bhk": {"value" : "bhk-Latn-PH"}, "und-GL": {"value" : "kl-Latn-GL"}, "gl": {"value" : "gl-Latn-ES"}, "bhl": {"value" : "bhl-Latn-ZZ"}, "gn": {"value" : "gn-Latn-PY"}, "bho": {"value" : "bho-Deva-IN"}, "und-GP": {"value" : "fr-Latn-GP"}, "und-GN": {"value" : "fr-Latn-GN"}, "und-GT": {"value" : "es-Latn-GT"}, "und-GS": - {"value" : "und-Latn-GS"}, "gu": {"value" : "gu-Gujr-IN"}, "und-GR": {"value" : "el-Grek-GR"}, "gv": {"value" : "gv-Latn-IM"}, "und-GQ": {"value" : "es-Latn-GQ"}, "und-Palm": {"value" : "arc-Palm-SY"}, "und-GW": {"value" : "pt-Latn-GW"}, "bhy": {"value" : "bhy-Latn-ZZ"}, "ha": {"value" : "ha-Latn-NG"}, "wrs": {"value" : "wrs-Latn-ZZ"}, "bib": {"value" : "bib-Latn-ZZ"}, "sjr": {"value" : "sjr-Latn-ZZ"}, "he": {"value" : "he-Hebr-IL"}, "big": {"value" : "big-Latn-ZZ"}, "hi": {"value" : "hi-Deva-IN"}, "und-Cyrl-GE": - {"value" : "ab-Cyrl-GE"}, "bik": {"value" : "bik-Latn-PH"}, "bin": {"value" : "bin-Latn-NG"}, "und-Cham": {"value" : "cjm-Cham-VN"}, "und-FI": {"value" : "fi-Latn-FI"}, "bim": {"value" : "bim-Latn-ZZ"}, "ho": {"value" : "ho-Latn-PG"}, "tg-PK": {"value" : "tg-Arab-PK"}, "und-FO": {"value" : "fo-Latn-FO"}, "bio": {"value" : "bio-Latn-ZZ"}, "fqs": {"value" : "fqs-Latn-ZZ"}, "hr": {"value" : "hr-Latn-HR"}, "skc": {"value" : "skc-Latn-ZZ"}, "wsg": {"value" : "wsg-Gong-IN"}, "biq": {"value" : "biq-Latn-ZZ"}, "ht": - {"value" : "ht-Latn-HT"}, "hu": {"value" : "hu-Latn-HU"}, "und-FR": {"value" : "fr-Latn-FR"}, "wsk": {"value" : "wsk-Latn-ZZ"}, "hy": {"value" : "hy-Armn-AM"}, "hz": {"value" : "hz-Latn-NA"}, "frc": {"value" : "frc-Latn-US"}, "ia": {"value" : "ia-Latn-001"}, "sks": {"value" : "sks-Latn-ZZ"}, "id": {"value" : "id-Latn-ID"}, "skr": {"value" : "skr-Arab-PK"}, "ig": {"value" : "ig-Latn-NG"}, "und-GA": {"value" : "fr-Latn-GA"}, "bji": {"value" : "bji-Ethi-ZZ"}, "ii": {"value" : "ii-Yiii-CN"}, "bjh": {"value" - : "bjh-Latn-ZZ"}, "und-EE": {"value" : "et-Latn-EE"}, "ik": {"value" : "ik-Latn-US"}, "bjj": {"value" : "bjj-Deva-IN"}, "und-EC": {"value" : "es-Latn-EC"}, "und-Cprt": {"value" : "grc-Cprt-CY"}, "frp": {"value" : "frp-Latn-FR"}, "in": {"value" : "in-Latn-ID"}, "bjo": {"value" : "bjo-Latn-ZZ"}, "frs": {"value" : "frs-Latn-DE"}, "io": {"value" : "io-Latn-001"}, "und-EH": {"value" : "ar-Arab-EH"}, "bjn": {"value" : "bjn-Latn-ID"}, "frr": {"value" : "frr-Latn-DE"}, "und-EG": {"value" : "ar-Arab-EG"}, "is": {"value" - : "is-Latn-IS"}, "sld": {"value" : "sld-Latn-ZZ"}, "bjr": {"value" : "bjr-Latn-ZZ"}, "it": {"value" : "it-Latn-IT"}, "iu": {"value" : "iu-Cans-CA"}, "und-ER": {"value" : "ti-Ethi-ER"}, "bjt": {"value" : "bjt-Latn-SN"}, "iw": {"value" : "iw-Hebr-IL"}, "und-Tirh": {"value" : "mai-Tirh-IN"}, "sli": {"value" : "sli-Latn-PL"}, "und-EU": {"value" : "en-Latn-GB"}, "wtm": {"value" : "wtm-Deva-IN"}, "sll": {"value" : "sll-Latn-ZZ"}, "und-ET": {"value" : "am-Ethi-ET"}, "bjz": {"value" : "bjz-Latn-ZZ"}, "und-ES": {"value" - : "es-Latn-ES"}, "und-EZ": {"value" : "de-Latn-EZ"}, "ja": {"value" : "ja-Jpan-JP"}, "zh-GF": {"value" : "zh-Hant-GF"}, "bkc": {"value" : "bkc-Latn-ZZ"}, "zh-GB": {"value" : "zh-Hant-GB"}, "und-Cyrl-GR": {"value" : "mk-Cyrl-GR"}, "ji": {"value" : "ji-Hebr-UA"}, "und-DE": {"value" : "de-Latn-DE"}, "sly": {"value" : "sly-Latn-ID"}, "bkm": {"value" : "bkm-Latn-CM"}, "sma": {"value" : "sma-Latn-SE"}, "bkq": {"value" : "bkq-Latn-ZZ"}, "und-DK": {"value" : "da-Latn-DK"}, "und-DJ": {"value" : "aa-Latn-DJ"}, "bkv": - {"value" : "bkv-Latn-ZZ"}, "jv": {"value" : "jv-Latn-ID"}, "bku": {"value" : "bku-Latn-PH"}, "jw": {"value" : "jw-Latn-ID"}, "und-DO": {"value" : "es-Latn-DO"}, "smj": {"value" : "smj-Latn-SE"}, "smn": {"value" : "smn-Latn-FI"}, "ka": {"value" : "ka-Geor-GE"}, "smq": {"value" : "smq-Latn-ZZ"}, "wuu": {"value" : "wuu-Hans-CN"}, "smp": {"value" : "smp-Samr-IL"}, "sms": {"value" : "sms-Latn-FI"}, "wuv": {"value" : "wuv-Latn-ZZ"}, "und-DZ": {"value" : "ar-Arab-DZ"}, "kg": {"value" : "kg-Latn-CD"}, "und-EA": - {"value" : "es-Latn-EA"}, "ki": {"value" : "ki-Latn-KE"}, "kj": {"value" : "kj-Latn-NA"}, "kk": {"value" : "kk-Cyrl-KZ"}, "man-Nkoo": {"value" : "man-Nkoo-GN"}, "und-CD": {"value" : "sw-Latn-CD"}, "kl": {"value" : "kl-Latn-GL"}, "und-Telu": {"value" : "te-Telu-IN"}, "km": {"value" : "km-Khmr-KH"}, "kn": {"value" : "kn-Knda-IN"}, "ko": {"value" : "ko-Kore-KR"}, "und-CH": {"value" : "de-Latn-CH"}, "und-CG": {"value" : "fr-Latn-CG"}, "und-CF": {"value" : "fr-Latn-CF"}, "kr": {"value" : "kr-Latn-ZZ"}, "ks": - {"value" : "ks-Arab-IN"}, "und-CL": {"value" : "es-Latn-CL"}, "snc": {"value" : "snc-Latn-ZZ"}, "ku": {"value" : "ku-Latn-TR"}, "blt": {"value" : "blt-Tavt-VN"}, "kv": {"value" : "kv-Cyrl-RU"}, "und-CI": {"value" : "fr-Latn-CI"}, "kw": {"value" : "kw-Latn-GB"}, "und-CP": {"value" : "und-Latn-CP"}, "und-CO": {"value" : "es-Latn-CO"}, "ky": {"value" : "ky-Cyrl-KG"}, "und-CN": {"value" : "zh-Hans-CN"}, "und-CM": {"value" : "fr-Latn-CM"}, "snk": {"value" : "snk-Latn-ML"}, "fub": {"value" : "fub-Arab-CM"}, "und-CR": - {"value" : "es-Latn-CR"}, "fud": {"value" : "fud-Latn-WF"}, "snp": {"value" : "snp-Latn-ZZ"}, "la": {"value" : "la-Latn-VA"}, "und-CW": {"value" : "pap-Latn-CW"}, "fuf": {"value" : "fuf-Latn-GN"}, "lb": {"value" : "lb-Latn-LU"}, "und-CV": {"value" : "pt-Latn-CV"}, "fue": {"value" : "fue-Latn-ZZ"}, "und-CU": {"value" : "es-Latn-CU"}, "fuh": {"value" : "fuh-Latn-ZZ"}, "und-CZ": {"value" : "cs-Latn-CZ"}, "lg": {"value" : "lg-Latn-UG"}, "und-CY": {"value" : "el-Grek-CY"}, "bmh": {"value" : "bmh-Latn-ZZ"}, "snx": - {"value" : "snx-Latn-ZZ"}, "li": {"value" : "li-Latn-NL"}, "sny": {"value" : "sny-Latn-ZZ"}, "wwa": {"value" : "wwa-Latn-ZZ"}, "bmk": {"value" : "bmk-Latn-ZZ"}, "und-Cher": {"value" : "chr-Cher-US"}, "fur": {"value" : "fur-Latn-IT"}, "ln": {"value" : "ln-Latn-CD"}, "und-BA": {"value" : "bs-Latn-BA"}, "fuq": {"value" : "fuq-Latn-NE"}, "lo": {"value" : "lo-Laoo-LA"}, "und-BG": {"value" : "bg-Cyrl-BG"}, "und-BF": {"value" : "fr-Latn-BF"}, "fuv": {"value" : "fuv-Latn-NG"}, "und-BE": {"value" : "nl-Latn-BE"} - , "bmq": {"value" : "bmq-Latn-ML"}, "und-BD": {"value" : "bn-Beng-BD"}, "lt": {"value" : "lt-Latn-LT"}, "lu": {"value" : "lu-Latn-CD"}, "und-BJ": {"value" : "fr-Latn-BJ"}, "lv": {"value" : "lv-Latn-LV"}, "ogc": {"value" : "ogc-Latn-ZZ"}, "sog": {"value" : "sog-Sogd-UZ"}, "und-BI": {"value" : "rn-Latn-BI"}, "bmu": {"value" : "bmu-Latn-ZZ"}, "fuy": {"value" : "fuy-Latn-ZZ"}, "und-BH": {"value" : "ar-Arab-BH"}, "und-BO": {"value" : "es-Latn-BO"}, "und-BN": {"value" : "ms-Latn-BN"}, "sok": {"value" : "sok-Latn-ZZ"} - , "und-BL": {"value" : "fr-Latn-BL"}, "und-BR": {"value" : "pt-Latn-BR"}, "und-BQ": {"value" : "pap-Latn-BQ"}, "soq": {"value" : "soq-Latn-ZZ"}, "und-BV": {"value" : "und-Latn-BV"}, "und-BT": {"value" : "dz-Tibt-BT"}, "sou": {"value" : "sou-Thai-TH"}, "bng": {"value" : "bng-Latn-ZZ"}, "mg": {"value" : "mg-Latn-MG"}, "und-BY": {"value" : "be-Cyrl-BY"}, "und-Glag": {"value" : "cu-Glag-BG"}, "mh": {"value" : "mh-Latn-MH"}, "mi": {"value" : "mi-Latn-NZ"}, "soy": {"value" : "soy-Latn-ZZ"}, "mk": {"value" : "mk-Cyrl-MK"} - , "ml": {"value" : "ml-Mlym-IN"}, "bnm": {"value" : "bnm-Latn-ZZ"}, "mn": {"value" : "mn-Cyrl-MN"}, "und-Prti": {"value" : "xpr-Prti-IR"}, "fvr": {"value" : "fvr-Latn-SD"}, "und-AF": {"value" : "fa-Arab-AF"}, "bnp": {"value" : "bnp-Latn-ZZ"}, "mr": {"value" : "mr-Deva-IN"}, "und-AE": {"value" : "ar-Arab-AE"}, "ms": {"value" : "ms-Latn-MY"}, "spd": {"value" : "spd-Latn-ZZ"}, "und-AD": {"value" : "ca-Latn-AD"}, "mt": {"value" : "mt-Latn-MT"}, "my": {"value" : "my-Mymr-MM"}, "zh-BN": {"value" : "zh-Hant-BN"} - , "und-AM": {"value" : "hy-Armn-AM"}, "spl": {"value" : "spl-Latn-ZZ"}, "und-AL": {"value" : "sq-Latn-AL"}, "und-AR": {"value" : "es-Latn-AR"}, "und-AQ": {"value" : "und-Latn-AQ"}, "na": {"value" : "na-Latn-NR"}, "und-AO": {"value" : "pt-Latn-AO"}, "nb": {"value" : "nb-Latn-NO"}, "nd": {"value" : "nd-Latn-ZW"}, "und-AT": {"value" : "de-Latn-AT"}, "ne": {"value" : "ne-Deva-NP"}, "sps": {"value" : "sps-Latn-ZZ"}, "und-AS": {"value" : "sm-Latn-AS"}, "und-AZ": {"value" : "az-Latn-AZ"}, "ng": {"value" : "ng-Latn-NA"} - , "und-AX": {"value" : "sv-Latn-AX"}, "und-AW": {"value" : "nl-Latn-AW"}, "boj": {"value" : "boj-Latn-ZZ"}, "nl": {"value" : "nl-Latn-NL"}, "bon": {"value" : "bon-Latn-ZZ"}, "nn": {"value" : "nn-Latn-NO"}, "bom": {"value" : "bom-Latn-ZZ"}, "no": {"value" : "no-Latn-NO"}, "nr": {"value" : "nr-Latn-ZA"}, "arc-Nbat": {"value" : "arc-Nbat-JO"}, "und-Medf": {"value" : "mis-Medf-NG"}, "nv": {"value" : "nv-Latn-US"}, "kaa": {"value" : "kaa-Cyrl-UZ"}, "ny": {"value" : "ny-Latn-MW"}, "kac": {"value" : "kac-Latn-MM"} - , "kab": {"value" : "kab-Latn-DZ"}, "kad": {"value" : "kad-Latn-ZZ"}, "kai": {"value" : "kai-Latn-ZZ"}, "oc": {"value" : "oc-Latn-FR"}, "zh-AU": {"value" : "zh-Hant-AU"}, "kaj": {"value" : "kaj-Latn-NG"}, "kam": {"value" : "kam-Latn-KE"}, "und-Tagb": {"value" : "tbw-Tagb-PH"}, "kao": {"value" : "kao-Latn-ML"}, "und-Ogam": {"value" : "sga-Ogam-IE"}, "om": {"value" : "om-Latn-ET"}, "srb": {"value" : "srb-Sora-IN"}, "or": {"value" : "or-Orya-IN"}, "tg-Arab": {"value" : "tg-Arab-PK"}, "os": {"value" : "os-Cyrl-GE"} - , "und-Sogd": {"value" : "sog-Sogd-UZ"}, "bpy": {"value" : "bpy-Beng-IN"}, "kbd": {"value" : "kbd-Cyrl-RU"}, "srn": {"value" : "srn-Latn-SR"}, "pa": {"value" : "pa-Guru-IN"}, "srr": {"value" : "srr-Latn-SN"}, "bqc": {"value" : "bqc-Latn-ZZ"}, "und-Kthi": {"value" : "bho-Kthi-IN"}, "kbm": {"value" : "kbm-Latn-ZZ"}, "kbp": {"value" : "kbp-Latn-ZZ"}, "srx": {"value" : "srx-Deva-IN"}, "bqi": {"value" : "bqi-Arab-IR"}, "kbq": {"value" : "kbq-Latn-ZZ"}, "pl": {"value" : "pl-Latn-PL"}, "bqp": {"value" : "bqp-Latn-ZZ"} - , "kbx": {"value" : "kbx-Latn-ZZ"}, "kby": {"value" : "kby-Arab-NE"}, "ps": {"value" : "ps-Arab-AF"}, "pt": {"value" : "pt-Latn-BR"}, "ssd": {"value" : "ssd-Latn-ZZ"}, "und-Nkoo": {"value" : "man-Nkoo-GN"}, "bqv": {"value" : "bqv-Latn-CI"}, "ssg": {"value" : "ssg-Latn-ZZ"}, "und-Mymr": {"value" : "my-Mymr-MM"}, "kcg": {"value" : "kcg-Latn-NG"}, "bra": {"value" : "bra-Deva-IN"}, "kck": {"value" : "kck-Latn-ZW"}, "kcl": {"value" : "kcl-Latn-ZZ"}, "okr": {"value" : "okr-Latn-ZZ"}, "ssy": {"value" : "ssy-Latn-ER"} - , "brh": {"value" : "brh-Arab-PK"}, "okv": {"value" : "okv-Latn-ZZ"}, "kct": {"value" : "kct-Latn-ZZ"}, "und-Hani": {"value" : "zh-Hani-CN"}, "und-Bugi": {"value" : "bug-Bugi-ID"}, "und-Hang": {"value" : "ko-Hang-KR"}, "qu": {"value" : "qu-Latn-PE"}, "brx": {"value" : "brx-Deva-IN"}, "und-Samr": {"value" : "smp-Samr-IL"}, "brz": {"value" : "brz-Latn-ZZ"}, "stk": {"value" : "stk-Latn-ZZ"}, "und-Hano": {"value" : "hnn-Hano-PH"}, "kde": {"value" : "kde-Latn-TZ"}, "kdh": {"value" : "kdh-Arab-TG"}, "stq": {"value" - : "stq-Latn-DE"}, "kdl": {"value" : "kdl-Latn-ZZ"}, "bsj": {"value" : "bsj-Latn-ZZ"}, "und-Hanb": {"value" : "zh-Hanb-TW"}, "kdt": {"value" : "kdt-Thai-TH"}, "rm": {"value" : "rm-Latn-CH"}, "rn": {"value" : "rn-Latn-BI"}, "ro": {"value" : "ro-Latn-RO"}, "sua": {"value" : "sua-Latn-ZZ"}, "und-Deva-BT": {"value" : "ne-Deva-BT"}, "bsq": {"value" : "bsq-Bass-LR"}, "bst": {"value" : "bst-Ethi-ZZ"}, "sue": {"value" : "sue-Latn-ZZ"}, "bss": {"value" : "bss-Latn-CM"}, "ru": {"value" : "ru-Cyrl-RU"}, "und-Buhd": - {"value" : "bku-Buhd-PH"}, "rw": {"value" : "rw-Latn-RW"}, "kea": {"value" : "kea-Latn-CV"}, "suk": {"value" : "suk-Latn-TZ"}, "grc-Linb": {"value" : "grc-Linb-GR"}, "sa": {"value" : "sa-Deva-IN"}, "sc": {"value" : "sc-Latn-IT"}, "sus": {"value" : "sus-Latn-GN"}, "sd": {"value" : "sd-Arab-PK"}, "sur": {"value" : "sur-Latn-ZZ"}, "se": {"value" : "se-Latn-NO"}, "sg": {"value" : "sg-Latn-CF"}, "ken": {"value" : "ken-Latn-CM"}, "si": {"value" : "si-Sinh-LK"}, "und-Hant": {"value" : "zh-Hant-TW"}, "und-Hans": - {"value" : "zh-Hans-CN"}, "sk": {"value" : "sk-Latn-SK"}, "sl": {"value" : "sl-Latn-SI"}, "sm": {"value" : "sm-Latn-WS"}, "sn": {"value" : "sn-Latn-ZW"}, "bto": {"value" : "bto-Latn-PH"}, "so": {"value" : "so-Latn-SO"}, "sq": {"value" : "sq-Latn-AL"}, "sr": {"value" : "sr-Cyrl-RS"}, "ss": {"value" : "ss-Latn-ZA"}, "kez": {"value" : "kez-Latn-ZZ"}, "st": {"value" : "st-Latn-ZA"}, "su": {"value" : "su-Latn-ID"}, "btt": {"value" : "btt-Latn-ZZ"}, "sv": {"value" : "sv-Latn-SE"}, "sw": {"value" : "sw-Latn-TZ"} - , "btv": {"value" : "btv-Deva-PK"}, "ong": {"value" : "ong-Latn-ZZ"}, "ta": {"value" : "ta-Taml-IN"}, "onn": {"value" : "onn-Latn-ZZ"}, "bua": {"value" : "bua-Cyrl-RU"}, "bud": {"value" : "bud-Latn-ZZ"}, "buc": {"value" : "buc-Latn-YT"}, "te": {"value" : "te-Telu-IN"}, "tg": {"value" : "tg-Cyrl-TJ"}, "th": {"value" : "th-Thai-TH"}, "und-Gong": {"value" : "wsg-Gong-IN"}, "bug": {"value" : "bug-Latn-ID"}, "kfo": {"value" : "kfo-Latn-CI"}, "ons": {"value" : "ons-Latn-ZZ"}, "ti": {"value" : "ti-Ethi-ET"}, "kfr": - {"value" : "kfr-Deva-IN"}, "tk": {"value" : "tk-Latn-TM"}, "tl": {"value" : "tl-Latn-PH"}, "und-Lisu": {"value" : "lis-Lisu-CN"}, "buk": {"value" : "buk-Latn-ZZ"}, "tn": {"value" : "tn-Latn-ZA"}, "bum": {"value" : "bum-Latn-CM"}, "to": {"value" : "to-Latn-TO"}, "buo": {"value" : "buo-Latn-ZZ"}, "swc": {"value" : "swc-Latn-CD"}, "tr": {"value" : "tr-Latn-TR"}, "und-Gonm": {"value" : "esg-Gonm-IN"}, "kfy": {"value" : "kfy-Deva-IN"}, "swb": {"value" : "swb-Arab-YT"}, "ts": {"value" : "ts-Latn-ZA"}, "tt": {"value" - : "tt-Cyrl-RU"}, "bus": {"value" : "bus-Latn-ZZ"}, "swg": {"value" : "swg-Latn-DE"}, "buu": {"value" : "buu-Latn-ZZ"}, "ty": {"value" : "ty-Latn-PF"}, "kge": {"value" : "kge-Latn-ID"}, "kgf": {"value" : "kgf-Latn-ZZ"}, "swp": {"value" : "swp-Latn-ZZ"}, "bvb": {"value" : "bvb-Latn-GQ"}, "ug": {"value" : "ug-Arab-CN"}, "swv": {"value" : "swv-Deva-IN"}, "kgp": {"value" : "kgp-Latn-BR"}, "uk": {"value" : "uk-Cyrl-UA"}, "ur": {"value" : "ur-Arab-PK"}, "kk-IR": {"value" : "kk-Arab-IR"}, "khb": {"value" : "khb-Talu-CN"} - , "kha": {"value" : "kha-Latn-IN"}, "uz": {"value" : "uz-Latn-UZ"}, "sxn": {"value" : "sxn-Latn-ID"}, "xav": {"value" : "xav-Latn-BR"}, "opm": {"value" : "opm-Latn-ZZ"}, "bwd": {"value" : "bwd-Latn-ZZ"}, "und-Mlym": {"value" : "ml-Mlym-IN"}, "ve": {"value" : "ve-Latn-ZA"}, "khn": {"value" : "khn-Deva-IN"}, "sxw": {"value" : "sxw-Latn-ZZ"}, "vi": {"value" : "vi-Latn-VN"}, "khq": {"value" : "khq-Latn-ML"}, "kht": {"value" : "kht-Mymr-IN"}, "khs": {"value" : "khs-Latn-ZZ"}, "vo": {"value" : "vo-Latn-001"}, - "khw": {"value" : "khw-Arab-PK"}, "bwr": {"value" : "bwr-Latn-ZZ"}, "khz": {"value" : "khz-Latn-ZZ"}, "und-ZW": {"value" : "sn-Latn-ZW"}, "xbi": {"value" : "xbi-Latn-ZZ"}, "gaa": {"value" : "gaa-Latn-GH"}, "syl": {"value" : "syl-Beng-BD"}, "wa": {"value" : "wa-Latn-BE"}, "gag": {"value" : "gag-Latn-MD"}, "gaf": {"value" : "gaf-Latn-ZZ"}, "kij": {"value" : "kij-Latn-ZZ"}, "syr": {"value" : "syr-Syrc-IQ"}, "und-YE": {"value" : "ar-Arab-YE"}, "gah": {"value" : "gah-Latn-ZZ"}, "gaj": {"value" : "gaj-Latn-ZZ"} - , "gam": {"value" : "gam-Latn-ZZ"}, "bxh": {"value" : "bxh-Latn-ZZ"}, "gan": {"value" : "gan-Hans-CN"}, "kiu": {"value" : "kiu-Latn-TR"}, "kiw": {"value" : "kiw-Latn-ZZ"}, "wo": {"value" : "wo-Latn-SN"}, "gaw": {"value" : "gaw-Latn-ZZ"}, "und-Sarb": {"value" : "xsa-Sarb-YE"}, "gay": {"value" : "gay-Latn-ID"}, "und-YT": {"value" : "fr-Latn-YT"}, "kjd": {"value" : "kjd-Latn-ZZ"}, "szl": {"value" : "szl-Latn-PL"}, "xcr": {"value" : "xcr-Cari-TR"}, "gba": {"value" : "gba-Latn-ZZ"}, "und-Mult": {"value" : "skr-Mult-PK"} - , "kjg": {"value" : "kjg-Laoo-LA"}, "gbf": {"value" : "gbf-Latn-ZZ"}, "oro": {"value" : "oro-Latn-ZZ"}, "und-Hatr": {"value" : "mis-Hatr-IQ"}, "bye": {"value" : "bye-Latn-ZZ"}, "xh": {"value" : "xh-Latn-ZA"}, "gbm": {"value" : "gbm-Deva-IN"}, "oru": {"value" : "oru-Arab-ZZ"}, "kjs": {"value" : "kjs-Latn-ZZ"}, "byn": {"value" : "byn-Ethi-ER"}, "und-XK": {"value" : "sq-Latn-XK"}, "yue-CN": {"value" : "yue-Hans-CN"}, "und-Lepc": {"value" : "lep-Lepc-IN"}, "byr": {"value" : "byr-Latn-ZZ"}, "kjy": {"value" : - "kjy-Latn-ZZ"}, "osa": {"value" : "osa-Osge-US"}, "bys": {"value" : "bys-Latn-ZZ"}, "byv": {"value" : "byv-Latn-CM"}, "gbz": {"value" : "gbz-Arab-IR"}, "gby": {"value" : "gby-Latn-ZZ"}, "byx": {"value" : "byx-Latn-ZZ"}, "kkc": {"value" : "kkc-Latn-ZZ"}, "und-VU": {"value" : "bi-Latn-VU"}, "bza": {"value" : "bza-Latn-ZZ"}, "und-Goth": {"value" : "got-Goth-UA"}, "kkj": {"value" : "kkj-Latn-CM"}, "bze": {"value" : "bze-Latn-ML"}, "und-Avst": {"value" : "ae-Avst-IR"}, "bzf": {"value" : "bzf-Latn-ZZ"}, "yi": - {"value" : "yi-Hebr-001"}, "bzh": {"value" : "bzh-Latn-ZZ"}, "und-WF": {"value" : "fr-Latn-WF"}, "yo": {"value" : "yo-Latn-NG"}, "gcr": {"value" : "gcr-Latn-GF"}, "ota": {"value" : "ota-Arab-ZZ"}, "und-WS": {"value" : "sm-Latn-WS"}, "bzw": {"value" : "bzw-Latn-ZZ"}, "und-UZ": {"value" : "uz-Latn-UZ"}, "und-UY": {"value" : "es-Latn-UY"}, "otk": {"value" : "otk-Orkh-MN"}, "xes": {"value" : "xes-Latn-ZZ"}, "za": {"value" : "za-Latn-CN"}, "gde": {"value" : "gde-Latn-ZZ"}, "kln": {"value" : "kln-Latn-KE"}, "und-VA": - {"value" : "it-Latn-VA"}, "zh": {"value" : "zh-Hans-CN"}, "gdn": {"value" : "gdn-Latn-ZZ"}, "klq": {"value" : "klq-Latn-ZZ"}, "und-Saur": {"value" : "saz-Saur-IN"}, "klt": {"value" : "klt-Latn-ZZ"}, "und-VE": {"value" : "es-Latn-VE"}, "gdr": {"value" : "gdr-Latn-ZZ"}, "klx": {"value" : "klx-Latn-ZZ"}, "und-VN": {"value" : "vi-Latn-VN"}, "kk-MN": {"value" : "kk-Arab-MN"}, "zu": {"value" : "zu-Latn-ZA"}, "und-Armn": {"value" : "hy-Armn-AM"}, "kmb": {"value" : "kmb-Latn-AO"}, "und-TR": {"value" : "tr-Latn-TR"} - , "geb": {"value" : "geb-Latn-ZZ"}, "und-TW": {"value" : "zh-Hant-TW"}, "kmh": {"value" : "kmh-Latn-ZZ"}, "und-TV": {"value" : "tvl-Latn-TV"}, "und-TZ": {"value" : "sw-Latn-TZ"}, "kmo": {"value" : "kmo-Latn-ZZ"}, "gej": {"value" : "gej-Latn-ZZ"}, "und-UA": {"value" : "uk-Cyrl-UA"}, "gel": {"value" : "gel-Latn-ZZ"}, "kms": {"value" : "kms-Latn-ZZ"}, "kmu": {"value" : "kmu-Latn-ZZ"}, "kmw": {"value" : "kmw-Latn-ZZ"}, "und-Tibt": {"value" : "bo-Tibt-CN"}, "und-UG": {"value" : "sw-Latn-UG"}, "und-Armi": {"value" - : "arc-Armi-IR"}, "gez": {"value" : "gez-Ethi-ET"}, "und-ST": {"value" : "pt-Latn-ST"}, "knf": {"value" : "knf-Latn-GW"}, "und-SR": {"value" : "nl-Latn-SR"}, "und-SV": {"value" : "es-Latn-SV"}, "und-SY": {"value" : "ar-Arab-SY"}, "knp": {"value" : "knp-Latn-ZZ"}, "gfk": {"value" : "gfk-Latn-ZZ"}, "und-TD": {"value" : "fr-Latn-TD"}, "und-TH": {"value" : "th-Thai-TH"}, "und-TG": {"value" : "fr-Latn-TG"}, "und-TF": {"value" : "fr-Latn-TF"}, "und-TM": {"value" : "tk-Latn-TM"}, "und-TL": {"value" : "pt-Latn-TL"} - , "und-TK": {"value" : "tkl-Latn-TK"}, "und-TJ": {"value" : "tg-Cyrl-TJ"}, "und-TO": {"value" : "to-Latn-TO"}, "und-TN": {"value" : "ar-Arab-TN"}, "und-RS": {"value" : "sr-Cyrl-RS"}, "koi": {"value" : "koi-Cyrl-RU"}, "und-RW": {"value" : "rw-Latn-RW"}, "kok": {"value" : "kok-Deva-IN"}, "und-RU": {"value" : "ru-Cyrl-RU"}, "kol": {"value" : "kol-Latn-ZZ"}, "kos": {"value" : "kos-Latn-FM"}, "ggn": {"value" : "ggn-Deva-NP"}, "und-SD": {"value" : "ar-Arab-SD"}, "und-SC": {"value" : "fr-Latn-SC"}, "und-SA": {"value" - : "ar-Arab-SA"}, "koz": {"value" : "koz-Latn-ZZ"}, "und-SE": {"value" : "sv-Latn-SE"}, "und-SK": {"value" : "sk-Latn-SK"}, "und-SJ": {"value" : "nb-Latn-SJ"}, "und-SI": {"value" : "sl-Latn-SI"}, "taj": {"value" : "taj-Deva-NP"}, "und-SO": {"value" : "so-Latn-SO"}, "tal": {"value" : "tal-Latn-ZZ"}, "und-SN": {"value" : "fr-Latn-SN"}, "und-Osge": {"value" : "osa-Osge-US"}, "und-SM": {"value" : "it-Latn-SM"}, "kpf": {"value" : "kpf-Latn-ZZ"}, "tan": {"value" : "tan-Latn-ZZ"}, "kpe": {"value" : "kpe-Latn-LR"} - , "und-QO": {"value" : "en-Latn-DG"}, "taq": {"value" : "taq-Latn-ZZ"}, "kpo": {"value" : "kpo-Latn-ZZ"}, "kpr": {"value" : "kpr-Latn-ZZ"}, "kpx": {"value" : "kpx-Latn-ZZ"}, "ghs": {"value" : "ghs-Latn-ZZ"}, "und-Lana": {"value" : "nod-Lana-TH"}, "tbc": {"value" : "tbc-Latn-ZZ"}, "und-RE": {"value" : "fr-Latn-RE"}, "tbd": {"value" : "tbd-Latn-ZZ"}, "tbg": {"value" : "tbg-Latn-ZZ"}, "tbf": {"value" : "tbf-Latn-ZZ"}, "und-RO": {"value" : "ro-Latn-RO"}, "kqb": {"value" : "kqb-Latn-ZZ"}, "tbo": {"value" : "tbo-Latn-ZZ"} - , "kqf": {"value" : "kqf-Latn-ZZ"}, "und-PT": {"value" : "pt-Latn-PT"}, "und-PS": {"value" : "ar-Arab-PS"}, "und-PR": {"value" : "es-Latn-PR"}, "tbw": {"value" : "tbw-Latn-PH"}, "und-PY": {"value" : "gn-Latn-PY"}, "gim": {"value" : "gim-Latn-ZZ"}, "und-PW": {"value" : "pau-Latn-PW"}, "gil": {"value" : "gil-Latn-KI"}, "kqs": {"value" : "kqs-Latn-ZZ"}, "tbz": {"value" : "tbz-Latn-ZZ"}, "und-Laoo": {"value" : "lo-Laoo-LA"}, "can": {"value" : "can-Latn-ZZ"}, "und-QA": {"value" : "ar-Arab-QA"}, "kqy": {"value" - : "kqy-Ethi-ZZ"}, "ms-CC": {"value" : "ms-Arab-CC"}, "tci": {"value" : "tci-Latn-ZZ"}, "krc": {"value" : "krc-Cyrl-RU"}, "krj": {"value" : "krj-Latn-PH"}, "kri": {"value" : "kri-Latn-SL"}, "ozm": {"value" : "ozm-Latn-ZZ"}, "und-OM": {"value" : "ar-Arab-OM"}, "krl": {"value" : "krl-Latn-RU"}, "gjk": {"value" : "gjk-Arab-PK"}, "cbj": {"value" : "cbj-Latn-ZZ"}, "gjn": {"value" : "gjn-Latn-ZZ"}, "tcy": {"value" : "tcy-Knda-IN"}, "xla": {"value" : "xla-Latn-ZZ"}, "krs": {"value" : "krs-Latn-ZZ"}, "xlc": {"value" - : "xlc-Lyci-TR"}, "kru": {"value" : "kru-Deva-IN"}, "und-PA": {"value" : "es-Latn-PA"}, "xld": {"value" : "xld-Lydi-TR"}, "gju": {"value" : "gju-Arab-PK"}, "und-PE": {"value" : "es-Latn-PE"}, "tdd": {"value" : "tdd-Tale-CN"}, "tdg": {"value" : "tdg-Deva-NP"}, "tdh": {"value" : "tdh-Deva-NP"}, "und-PH": {"value" : "fil-Latn-PH"}, "und-PG": {"value" : "tpi-Latn-PG"}, "ksb": {"value" : "ksb-Latn-TZ"}, "und-PF": {"value" : "fr-Latn-PF"}, "und-PM": {"value" : "fr-Latn-PM"}, "ksd": {"value" : "ksd-Latn-ZZ"}, "und-PL": - {"value" : "pl-Latn-PL"}, "und-PK": {"value" : "ur-Arab-PK"}, "ksf": {"value" : "ksf-Latn-CM"}}; -} -function otciu_CLDRHelper_getDefaultLocale$$create() { - return {"value" : "en_GB"}; -} -function otciu_CLDRHelper_getMinimalDaysInFirstWeek$$create() { - return {"DE": {"value" : 4}, "PT": {"value" : 4}, "DK": {"value" : 4}, "LT": {"value" : 4}, "LU": {"value" : 4}, "HU": {"value" : 4}, "MC": {"value" : 4}, "UM": {"value" : 1}, "IE": {"value" : 4}, "US": {"value" : 1}, "EE": {"value" : 4}, "AD": {"value" : 4}, "IM": {"value" : 4}, "MQ": {"value" : 4}, "IS": {"value" : 4}, "IT": {"value" : 4}, "VA": {"value" : 4}, "AN": {"value" : 4}, "ES": {"value" : 4}, "001": {"value" : 1}, "AT": {"value" : 4}, "RE": {"value" : 4}, "VI": {"value" : 1}, "AX": {"value" : - 4}, "JE": {"value" : 4}, "NL": {"value" : 4}, "NO": {"value" : 4}, "BE": {"value" : 4}, "FI": {"value" : 4}, "RU": {"value" : 4}, "FJ": {"value" : 4}, "BG": {"value" : 4}, "FO": {"value" : 4}, "FR": {"value" : 4}, "SE": {"value" : 4}, "SJ": {"value" : 4}, "SK": {"value" : 4}, "SM": {"value" : 4}, "GB": {"value" : 4}, "GF": {"value" : 4}, "GG": {"value" : 4}, "GI": {"value" : 4}, "CH": {"value" : 4}, "GP": {"value" : 4}, "GR": {"value" : 4}, "GU": {"value" : 1}, "CZ": {"value" : 4}, "PL": {"value" : 4}, "LI": - {"value" : 4}}; -} -function otciu_CLDRHelper_getFirstDayOfWeek$$create() { - return {"PR": {"value" : 1}, "HK": {"value" : 1}, "PT": {"value" : 1}, "HN": {"value" : 1}, "PY": {"value" : 1}, "HR": {"value" : 2}, "YE": {"value" : 1}, "HU": {"value" : 2}, "QA": {"value" : 7}, "ID": {"value" : 1}, "IE": {"value" : 2}, "AD": {"value" : 2}, "IL": {"value" : 1}, "AE": {"value" : 7}, "AF": {"value" : 7}, "IN": {"value" : 1}, "AG": {"value" : 1}, "ZA": {"value" : 1}, "AI": {"value" : 2}, "IQ": {"value" : 7}, "IR": {"value" : 7}, "IS": {"value" : 2}, "AL": {"value" : 2}, "IT": {"value" : 2} - , "AM": {"value" : 2}, "AN": {"value" : 2}, "001": {"value" : 2}, "AR": {"value" : 1}, "AS": {"value" : 1}, "AT": {"value" : 2}, "RE": {"value" : 2}, "AU": {"value" : 1}, "AX": {"value" : 2}, "AZ": {"value" : 2}, "RO": {"value" : 2}, "ZW": {"value" : 1}, "BA": {"value" : 2}, "RS": {"value" : 2}, "BD": {"value" : 1}, "BE": {"value" : 2}, "JM": {"value" : 1}, "RU": {"value" : 2}, "BG": {"value" : 2}, "JO": {"value" : 7}, "BH": {"value" : 7}, "JP": {"value" : 1}, "BM": {"value" : 2}, "BN": {"value" : 2}, "SA": - {"value" : 1}, "BR": {"value" : 1}, "BS": {"value" : 1}, "SD": {"value" : 7}, "BT": {"value" : 1}, "SE": {"value" : 2}, "SG": {"value" : 1}, "BW": {"value" : 1}, "SI": {"value" : 2}, "BY": {"value" : 2}, "BZ": {"value" : 1}, "SK": {"value" : 2}, "KE": {"value" : 1}, "SM": {"value" : 2}, "KG": {"value" : 2}, "KH": {"value" : 1}, "CA": {"value" : 1}, "SV": {"value" : 1}, "CH": {"value" : 2}, "SY": {"value" : 7}, "KR": {"value" : 1}, "CL": {"value" : 2}, "CM": {"value" : 2}, "CN": {"value" : 1}, "CO": {"value" - : 1}, "KW": {"value" : 7}, "CR": {"value" : 2}, "KZ": {"value" : 2}, "TH": {"value" : 1}, "LA": {"value" : 1}, "CY": {"value" : 2}, "LB": {"value" : 2}, "TJ": {"value" : 2}, "CZ": {"value" : 2}, "TM": {"value" : 2}, "LI": {"value" : 2}, "TR": {"value" : 2}, "LK": {"value" : 2}, "TT": {"value" : 1}, "DE": {"value" : 2}, "TW": {"value" : 1}, "DJ": {"value" : 7}, "DK": {"value" : 2}, "LT": {"value" : 2}, "DM": {"value" : 1}, "LU": {"value" : 2}, "LV": {"value" : 2}, "DO": {"value" : 1}, "UA": {"value" : 2} - , "LY": {"value" : 7}, "DZ": {"value" : 7}, "MC": {"value" : 2}, "MD": {"value" : 2}, "ME": {"value" : 2}, "UM": {"value" : 1}, "MH": {"value" : 1}, "EC": {"value" : 2}, "MK": {"value" : 2}, "US": {"value" : 1}, "EE": {"value" : 2}, "MM": {"value" : 1}, "MN": {"value" : 2}, "EG": {"value" : 7}, "MO": {"value" : 1}, "MQ": {"value" : 2}, "UY": {"value" : 2}, "UZ": {"value" : 2}, "MT": {"value" : 1}, "MV": {"value" : 6}, "MX": {"value" : 1}, "VA": {"value" : 2}, "MY": {"value" : 2}, "MZ": {"value" : 1}, "ES": - {"value" : 2}, "ET": {"value" : 1}, "VE": {"value" : 1}, "GB-alt-variant": {"value" : 1}, "VI": {"value" : 1}, "VN": {"value" : 2}, "NI": {"value" : 1}, "NL": {"value" : 2}, "NO": {"value" : 2}, "NP": {"value" : 1}, "FI": {"value" : 2}, "FJ": {"value" : 2}, "FO": {"value" : 2}, "FR": {"value" : 2}, "NZ": {"value" : 2}, "GB": {"value" : 2}, "WS": {"value" : 1}, "GE": {"value" : 2}, "OM": {"value" : 7}, "GF": {"value" : 2}, "GP": {"value" : 2}, "GR": {"value" : 2}, "GT": {"value" : 1}, "GU": {"value" : 1} - , "PA": {"value" : 1}, "XK": {"value" : 2}, "PE": {"value" : 1}, "PH": {"value" : 1}, "PK": {"value" : 1}, "PL": {"value" : 2}}; -} -function otciu_CLDRHelper_getNumberFormatMap$$create() { - return {"root": {"value" : "#,##0.###"}, "en": {"value" : "#,##0.###"}}; -} -function otciu_CLDRHelper_getDecimalDataMap$$create() { - return {"root": {"exponentSeparator" : "E", "minusSign" : 45, "perMille" : 226, "decimalSeparator" : 46, "listSeparator" : 59, "infinity" : "∞", "naN" : "NaN", "groupingSeparator" : 44, "percent" : 37}, "en": {"exponentSeparator" : "E", "minusSign" : 45, "perMille" : 226, "decimalSeparator" : 46, "listSeparator" : 59, "infinity" : "∞", "naN" : "NaN", "groupingSeparator" : 44, "percent" : 37}}; -} -function otciu_CLDRHelper_getCurrencyMap$$create() { - return {"root": {"UGS": {"symbol" : "UGS", "name" : "UGS"}, "FJD": {"symbol" : "FJD", "name" : "FJD"}, "MXN": {"symbol" : "MX$", "name" : "MXN"}, "STD": {"symbol" : "STD", "name" : "STD"}, "BRR": {"symbol" : "BRR", "name" : "BRR"}, "LVL": {"symbol" : "LVL", "name" : "LVL"}, "SCR": {"symbol" : "SCR", "name" : "SCR"}, "CDF": {"symbol" : "CDF", "name" : "CDF"}, "MXP": {"symbol" : "MXP", "name" : "MXP"}, "ZAL": {"symbol" : "ZAL", "name" : "ZAL"}, "BBD": {"symbol" : "BBD", "name" : "BBD"}, "HNL": {"symbol" : - "HNL", "name" : "HNL"}, "UGX": {"symbol" : "UGX", "name" : "UGX"}, "LVR": {"symbol" : "LVR", "name" : "LVR"}, "MXV": {"symbol" : "MXV", "name" : "MXV"}, "ZAR": {"symbol" : "ZAR", "name" : "ZAR"}, "BRZ": {"symbol" : "BRZ", "name" : "BRZ"}, "STN": {"symbol" : "STN", "name" : "STN"}, "CUC": {"symbol" : "CUC", "name" : "CUC"}, "BSD": {"symbol" : "BSD", "name" : "BSD"}, "SDD": {"symbol" : "SDD", "name" : "SDD"}, "SDG": {"symbol" : "SDG", "name" : "SDG"}, "ZRN": {"symbol" : "ZRN", "name" : "ZRN"}, "IQD": {"symbol" - : "IQD", "name" : "IQD"}, "SDP": {"symbol" : "SDP", "name" : "SDP"}, "CUP": {"symbol" : "CUP", "name" : "CUP"}, "GMD": {"symbol" : "GMD", "name" : "GMD"}, "TWD": {"symbol" : "NT$", "name" : "TWD"}, "RSD": {"symbol" : "RSD", "name" : "RSD"}, "ZRZ": {"symbol" : "ZRZ", "name" : "ZRZ"}, "UYI": {"symbol" : "UYI", "name" : "UYI"}, "MYR": {"symbol" : "MYR", "name" : "MYR"}, "FKP": {"symbol" : "FKP", "name" : "FKP"}, "UYP": {"symbol" : "UYP", "name" : "UYP"}, "XOF": {"symbol" : "CFA", "name" : "XOF"}, "ARA": {"symbol" - : "ARA", "name" : "ARA"}, "UYU": {"symbol" : "UYU", "name" : "UYU"}, "SUR": {"symbol" : "SUR", "name" : "SUR"}, "UYW": {"symbol" : "UYW", "name" : "UYW"}, "CVE": {"symbol" : "CVE", "name" : "CVE"}, "OMR": {"symbol" : "OMR", "name" : "OMR"}, "KES": {"symbol" : "KES", "name" : "KES"}, "SEK": {"symbol" : "SEK", "name" : "SEK"}, "MZE": {"symbol" : "MZE", "name" : "MZE"}, "ARL": {"symbol" : "ARL", "name" : "ARL"}, "ARM": {"symbol" : "ARM", "name" : "ARM"}, "BTN": {"symbol" : "BTN", "name" : "BTN"}, "GNF": {"symbol" - : "GNF", "name" : "GNF"}, "ARP": {"symbol" : "ARP", "name" : "ARP"}, "MZN": {"symbol" : "MZN", "name" : "MZN"}, "MZM": {"symbol" : "MZM", "name" : "MZM"}, "SVC": {"symbol" : "SVC", "name" : "SVC"}, "ARS": {"symbol" : "ARS", "name" : "ARS"}, "QAR": {"symbol" : "QAR", "name" : "QAR"}, "IRR": {"symbol" : "IRR", "name" : "IRR"}, "NLG": {"symbol" : "NLG", "name" : "NLG"}, "GNS": {"symbol" : "GNS", "name" : "GNS"}, "XPD": {"symbol" : "XPD", "name" : "XPD"}, "THB": {"symbol" : "THB", "name" : "THB"}, "UZS": {"symbol" - : "UZS", "name" : "UZS"}, "XPF": {"symbol" : "CFPF", "name" : "XPF"}, "BDT": {"symbol" : "BDT", "name" : "BDT"}, "LYD": {"symbol" : "LYD", "name" : "LYD"}, "BUK": {"symbol" : "BUK", "name" : "BUK"}, "KWD": {"symbol" : "KWD", "name" : "KWD"}, "XPT": {"symbol" : "XPT", "name" : "XPT"}, "RUB": {"symbol" : "RUB", "name" : "RUB"}, "ISK": {"symbol" : "ISK", "name" : "ISK"}, "BEC": {"symbol" : "BEC", "name" : "BEC"}, "ISJ": {"symbol" : "ISJ", "name" : "ISJ"}, "BEF": {"symbol" : "BEF", "name" : "BEF"}, "MKD": {"symbol" - : "MKD", "name" : "MKD"}, "BEL": {"symbol" : "BEL", "name" : "BEL"}, "RUR": {"symbol" : "RUR", "name" : "RUR"}, "DZD": {"symbol" : "DZD", "name" : "DZD"}, "PAB": {"symbol" : "PAB", "name" : "PAB"}, "MKN": {"symbol" : "MKN", "name" : "MKN"}, "SGD": {"symbol" : "SGD", "name" : "SGD"}, "KGS": {"symbol" : "KGS", "name" : "KGS"}, "HRD": {"symbol" : "HRD", "name" : "HRD"}, "XAF": {"symbol" : "FCFA", "name" : "XAF"}, "XAG": {"symbol" : "XAG", "name" : "XAG"}, "ATS": {"symbol" : "ATS", "name" : "ATS"}, "CHF": {"symbol" - : "CHF", "name" : "CHF"}, "HRK": {"symbol" : "HRK", "name" : "HRK"}, "ITL": {"symbol" : "ITL", "name" : "ITL"}, "CHE": {"symbol" : "CHE", "name" : "CHE"}, "DJF": {"symbol" : "DJF", "name" : "DJF"}, "MLF": {"symbol" : "MLF", "name" : "MLF"}, "XRE": {"symbol" : "XRE", "name" : "XRE"}, "TZS": {"symbol" : "TZS", "name" : "TZS"}, "ADP": {"symbol" : "ADP", "name" : "ADP"}, "VND": {"symbol" : "₫", "name" : "VND"}, "XAU": {"symbol" : "XAU", "name" : "XAU"}, "AUD": {"symbol" : "A$", "name" : "AUD"}, "CHW": {"symbol" - : "CHW", "name" : "CHW"}, "KHR": {"symbol" : "KHR", "name" : "KHR"}, "IDR": {"symbol" : "IDR", "name" : "IDR"}, "XBA": {"symbol" : "XBA", "name" : "XBA"}, "KYD": {"symbol" : "KYD", "name" : "KYD"}, "VNN": {"symbol" : "VNN", "name" : "VNN"}, "XBC": {"symbol" : "XBC", "name" : "XBC"}, "YDD": {"symbol" : "YDD", "name" : "YDD"}, "XBB": {"symbol" : "XBB", "name" : "XBB"}, "BWP": {"symbol" : "BWP", "name" : "BWP"}, "GQE": {"symbol" : "GQE", "name" : "GQE"}, "SHP": {"symbol" : "SHP", "name" : "SHP"}, "CYP": {"symbol" - : "CYP", "name" : "CYP"}, "XBD": {"symbol" : "XBD", "name" : "XBD"}, "TJS": {"symbol" : "TJS", "name" : "TJS"}, "TJR": {"symbol" : "TJR", "name" : "TJR"}, "AED": {"symbol" : "AED", "name" : "AED"}, "RWF": {"symbol" : "RWF", "name" : "RWF"}, "DKK": {"symbol" : "DKK", "name" : "DKK"}, "BGL": {"symbol" : "BGL", "name" : "BGL"}, "ZWD": {"symbol" : "ZWD", "name" : "ZWD"}, "BGN": {"symbol" : "BGN", "name" : "BGN"}, "BGM": {"symbol" : "BGM", "name" : "BGM"}, "YUD": {"symbol" : "YUD", "name" : "YUD"}, "MMK": {"symbol" - : "MMK", "name" : "MMK"}, "BGO": {"symbol" : "BGO", "name" : "BGO"}, "NOK": {"symbol" : "NOK", "name" : "NOK"}, "SYP": {"symbol" : "SYP", "name" : "SYP"}, "ZWL": {"symbol" : "ZWL", "name" : "ZWL"}, "YUM": {"symbol" : "YUM", "name" : "YUM"}, "LKR": {"symbol" : "LKR", "name" : "LKR"}, "YUN": {"symbol" : "YUN", "name" : "YUN"}, "ZWR": {"symbol" : "ZWR", "name" : "ZWR"}, "CZK": {"symbol" : "CZK", "name" : "CZK"}, "IEP": {"symbol" : "IEP", "name" : "IEP"}, "YUR": {"symbol" : "YUR", "name" : "YUR"}, "GRD": {"symbol" - : "GRD", "name" : "GRD"}, "XCD": {"symbol" : "EC$", "name" : "XCD"}, "HTG": {"symbol" : "HTG", "name" : "HTG"}, "XSU": {"symbol" : "XSU", "name" : "XSU"}, "AFA": {"symbol" : "AFA", "name" : "AFA"}, "BHD": {"symbol" : "BHD", "name" : "BHD"}, "SIT": {"symbol" : "SIT", "name" : "SIT"}, "PTE": {"symbol" : "PTE", "name" : "PTE"}, "KZT": {"symbol" : "KZT", "name" : "KZT"}, "SZL": {"symbol" : "SZL", "name" : "SZL"}, "YER": {"symbol" : "YER", "name" : "YER"}, "AFN": {"symbol" : "AFN", "name" : "AFN"}, "BYB": {"symbol" - : "BYB", "name" : "BYB"}, "RHD": {"symbol" : "RHD", "name" : "RHD"}, "AWG": {"symbol" : "AWG", "name" : "AWG"}, "NPR": {"symbol" : "NPR", "name" : "NPR"}, "MNT": {"symbol" : "MNT", "name" : "MNT"}, "GBP": {"symbol" : "£", "name" : "GBP"}, "BYN": {"symbol" : "BYN", "name" : "BYN"}, "XTS": {"symbol" : "XTS", "name" : "XTS"}, "HUF": {"symbol" : "HUF", "name" : "HUF"}, "BYR": {"symbol" : "BYR", "name" : "BYR"}, "BIF": {"symbol" : "BIF", "name" : "BIF"}, "XUA": {"symbol" : "XUA", "name" : "XUA"}, "XDR": {"symbol" - : "XDR", "name" : "XDR"}, "BZD": {"symbol" : "BZD", "name" : "BZD"}, "MOP": {"symbol" : "MOP", "name" : "MOP"}, "NAD": {"symbol" : "NAD", "name" : "NAD"}, "SKK": {"symbol" : "SKK", "name" : "SKK"}, "PEI": {"symbol" : "PEI", "name" : "PEI"}, "TMM": {"symbol" : "TMM", "name" : "TMM"}, "PEN": {"symbol" : "PEN", "name" : "PEN"}, "WST": {"symbol" : "WST", "name" : "WST"}, "TMT": {"symbol" : "TMT", "name" : "TMT"}, "FRF": {"symbol" : "FRF", "name" : "FRF"}, "CLF": {"symbol" : "CLF", "name" : "CLF"}, "CLE": {"symbol" - : "CLE", "name" : "CLE"}, "PES": {"symbol" : "PES", "name" : "PES"}, "GTQ": {"symbol" : "GTQ", "name" : "GTQ"}, "CLP": {"symbol" : "CLP", "name" : "CLP"}, "XEU": {"symbol" : "XEU", "name" : "XEU"}, "TND": {"symbol" : "TND", "name" : "TND"}, "SLL": {"symbol" : "SLL", "name" : "SLL"}, "XFO": {"symbol" : "XFO", "name" : "XFO"}, "DOP": {"symbol" : "DOP", "name" : "DOP"}, "KMF": {"symbol" : "KMF", "name" : "KMF"}, "XFU": {"symbol" : "XFU", "name" : "XFU"}, "GEK": {"symbol" : "GEK", "name" : "GEK"}, "GEL": {"symbol" - : "GEL", "name" : "GEL"}, "MAD": {"symbol" : "MAD", "name" : "MAD"}, "MAF": {"symbol" : "MAF", "name" : "MAF"}, "AZM": {"symbol" : "AZM", "name" : "AZM"}, "TOP": {"symbol" : "TOP", "name" : "TOP"}, "AZN": {"symbol" : "AZN", "name" : "AZN"}, "PGK": {"symbol" : "PGK", "name" : "PGK"}, "CNH": {"symbol" : "CNH", "name" : "CNH"}, "UAH": {"symbol" : "UAH", "name" : "UAH"}, "UAK": {"symbol" : "UAK", "name" : "UAK"}, "ERN": {"symbol" : "ERN", "name" : "ERN"}, "TPE": {"symbol" : "TPE", "name" : "TPE"}, "MRO": {"symbol" - : "MRO", "name" : "MRO"}, "CNX": {"symbol" : "CNX", "name" : "CNX"}, "CNY": {"symbol" : "CN¥", "name" : "CNY"}, "MRU": {"symbol" : "MRU", "name" : "MRU"}, "ESA": {"symbol" : "ESA", "name" : "ESA"}, "GWE": {"symbol" : "GWE", "name" : "GWE"}, "ESB": {"symbol" : "ESB", "name" : "ESB"}, "BMD": {"symbol" : "BMD", "name" : "BMD"}, "PHP": {"symbol" : "PHP", "name" : "PHP"}, "XXX": {"symbol" : "¤", "name" : "XXX"}, "PYG": {"symbol" : "PYG", "name" : "PYG"}, "JMD": {"symbol" : "JMD", "name" : "JMD"}, "GWP": {"symbol" - : "GWP", "name" : "GWP"}, "ESP": {"symbol" : "ESP", "name" : "ESP"}, "COP": {"symbol" : "COP", "name" : "COP"}, "USD": {"symbol" : "US$", "name" : "USD"}, "COU": {"symbol" : "COU", "name" : "COU"}, "MCF": {"symbol" : "MCF", "name" : "MCF"}, "USN": {"symbol" : "USN", "name" : "USN"}, "ETB": {"symbol" : "ETB", "name" : "ETB"}, "VEB": {"symbol" : "VEB", "name" : "VEB"}, "ECS": {"symbol" : "ECS", "name" : "ECS"}, "USS": {"symbol" : "USS", "name" : "USS"}, "SOS": {"symbol" : "SOS", "name" : "SOS"}, "VEF": {"symbol" - : "VEF", "name" : "VEF"}, "VUV": {"symbol" : "VUV", "name" : "VUV"}, "LAK": {"symbol" : "LAK", "name" : "LAK"}, "BND": {"symbol" : "BND", "name" : "BND"}, "ECV": {"symbol" : "ECV", "name" : "ECV"}, "ZMK": {"symbol" : "ZMK", "name" : "ZMK"}, "LRD": {"symbol" : "LRD", "name" : "LRD"}, "ALK": {"symbol" : "ALK", "name" : "ALK"}, "ALL": {"symbol" : "ALL", "name" : "ALL"}, "GHC": {"symbol" : "GHC", "name" : "GHC"}, "MTL": {"symbol" : "MTL", "name" : "MTL"}, "VES": {"symbol" : "VES", "name" : "VES"}, "ZMW": {"symbol" - : "ZMW", "name" : "ZMW"}, "MTP": {"symbol" : "MTP", "name" : "MTP"}, "ILP": {"symbol" : "ILP", "name" : "ILP"}, "MDC": {"symbol" : "MDC", "name" : "MDC"}, "ILR": {"symbol" : "ILR", "name" : "ILR"}, "TRL": {"symbol" : "TRL", "name" : "TRL"}, "ILS": {"symbol" : "₪", "name" : "ILS"}, "GHS": {"symbol" : "GHS", "name" : "GHS"}, "GYD": {"symbol" : "GYD", "name" : "GYD"}, "KPW": {"symbol" : "KPW", "name" : "KPW"}, "BOB": {"symbol" : "BOB", "name" : "BOB"}, "MDL": {"symbol" : "MDL", "name" : "MDL"}, "AMD": {"symbol" - : "AMD", "name" : "AMD"}, "TRY": {"symbol" : "TRY", "name" : "TRY"}, "LBP": {"symbol" : "LBP", "name" : "LBP"}, "BOL": {"symbol" : "BOL", "name" : "BOL"}, "JOD": {"symbol" : "JOD", "name" : "JOD"}, "HKD": {"symbol" : "HK$", "name" : "HKD"}, "BOP": {"symbol" : "BOP", "name" : "BOP"}, "EUR": {"symbol" : "€", "name" : "EUR"}, "LSL": {"symbol" : "LSL", "name" : "LSL"}, "CAD": {"symbol" : "CA$", "name" : "CAD"}, "BOV": {"symbol" : "BOV", "name" : "BOV"}, "EEK": {"symbol" : "EEK", "name" : "EEK"}, "MUR": {"symbol" - : "MUR", "name" : "MUR"}, "ROL": {"symbol" : "ROL", "name" : "ROL"}, "GIP": {"symbol" : "GIP", "name" : "GIP"}, "RON": {"symbol" : "RON", "name" : "RON"}, "NGN": {"symbol" : "NGN", "name" : "NGN"}, "CRC": {"symbol" : "CRC", "name" : "CRC"}, "PKR": {"symbol" : "PKR", "name" : "PKR"}, "ANG": {"symbol" : "ANG", "name" : "ANG"}, "KRH": {"symbol" : "KRH", "name" : "KRH"}, "SRD": {"symbol" : "SRD", "name" : "SRD"}, "LTL": {"symbol" : "LTL", "name" : "LTL"}, "SAR": {"symbol" : "SAR", "name" : "SAR"}, "TTD": {"symbol" - : "TTD", "name" : "TTD"}, "MVP": {"symbol" : "MVP", "name" : "MVP"}, "MVR": {"symbol" : "MVR", "name" : "MVR"}, "KRO": {"symbol" : "KRO", "name" : "KRO"}, "SRG": {"symbol" : "SRG", "name" : "SRG"}, "DDM": {"symbol" : "DDM", "name" : "DDM"}, "INR": {"symbol" : "₹", "name" : "INR"}, "LTT": {"symbol" : "LTT", "name" : "LTT"}, "KRW": {"symbol" : "₩", "name" : "KRW"}, "JPY": {"symbol" : "JP¥", "name" : "JPY"}, "AOA": {"symbol" : "AOA", "name" : "AOA"}, "PLN": {"symbol" : "PLN", "name" : "PLN"}, "SBD": {"symbol" - : "SBD", "name" : "SBD"}, "CSD": {"symbol" : "CSD", "name" : "CSD"}, "CSK": {"symbol" : "CSK", "name" : "CSK"}, "LUC": {"symbol" : "LUC", "name" : "LUC"}, "LUF": {"symbol" : "LUF", "name" : "LUF"}, "AOK": {"symbol" : "AOK", "name" : "AOK"}, "PLZ": {"symbol" : "PLZ", "name" : "PLZ"}, "AON": {"symbol" : "AON", "name" : "AON"}, "MWK": {"symbol" : "MWK", "name" : "MWK"}, "LUL": {"symbol" : "LUL", "name" : "LUL"}, "AOR": {"symbol" : "AOR", "name" : "AOR"}, "BAD": {"symbol" : "BAD", "name" : "BAD"}, "MGA": {"symbol" - : "MGA", "name" : "MGA"}, "NIC": {"symbol" : "NIC", "name" : "NIC"}, "FIM": {"symbol" : "FIM", "name" : "FIM"}, "DEM": {"symbol" : "DEM", "name" : "DEM"}, "MGF": {"symbol" : "MGF", "name" : "MGF"}, "BAM": {"symbol" : "BAM", "name" : "BAM"}, "BAN": {"symbol" : "BAN", "name" : "BAN"}, "EGP": {"symbol" : "EGP", "name" : "EGP"}, "SSP": {"symbol" : "SSP", "name" : "SSP"}, "BRC": {"symbol" : "BRC", "name" : "BRC"}, "BRB": {"symbol" : "BRB", "name" : "BRB"}, "BRE": {"symbol" : "BRE", "name" : "BRE"}, "NIO": {"symbol" - : "NIO", "name" : "NIO"}, "NZD": {"symbol" : "NZ$", "name" : "NZD"}, "BRL": {"symbol" : "R$", "name" : "BRL"}, "BRN": {"symbol" : "BRN", "name" : "BRN"}}, "en": {"UGS": {"symbol" : "UGS", "name" : "Ugandan Shilling (1966–1987)"}, "FJD": {"symbol" : "FJD", "name" : "Fijian Dollar"}, "MXN": {"symbol" : "MX$", "name" : "Mexican Peso"}, "STD": {"symbol" : "STD", "name" : "São Tomé & Príncipe Dobra (1977–2017)"}, "BRR": {"symbol" : "BRR", "name" : "Brazilian Cruzeiro (1993–1994)"}, "LVL": {"symbol" : - "LVL", "name" : "Latvian Lats"}, "SCR": {"symbol" : "SCR", "name" : "Seychellois Rupee"}, "CDF": {"symbol" : "CDF", "name" : "Congolese Franc"}, "MXP": {"symbol" : "MXP", "name" : "Mexican Silver Peso (1861–1992)"}, "ZAL": {"symbol" : "ZAL", "name" : "South African Rand (financial)"}, "BBD": {"symbol" : "BBD", "name" : "Barbadian Dollar"}, "HNL": {"symbol" : "HNL", "name" : "Honduran Lempira"}, "UGX": {"symbol" : "UGX", "name" : "Ugandan Shilling"}, "LVR": {"symbol" : "LVR", "name" : "Latvian Ruble"}, - "MXV": {"symbol" : "MXV", "name" : "Mexican Investment Unit"}, "ZAR": {"symbol" : "ZAR", "name" : "South African Rand"}, "BRZ": {"symbol" : "BRZ", "name" : "Brazilian Cruzeiro (1942–1967)"}, "STN": {"symbol" : "STN", "name" : "São Tomé & Príncipe Dobra"}, "CUC": {"symbol" : "CUC", "name" : "Cuban Convertible Peso"}, "BSD": {"symbol" : "BSD", "name" : "Bahamian Dollar"}, "SDD": {"symbol" : "SDD", "name" : "Sudanese Dinar (1992–2007)"}, "SDG": {"symbol" : "SDG", "name" : "Sudanese Pound"}, "ZRN": {"symbol" - : "ZRN", "name" : "Zairean New Zaire (1993–1998)"}, "IQD": {"symbol" : "IQD", "name" : "Iraqi Dinar"}, "SDP": {"symbol" : "SDP", "name" : "Sudanese Pound (1957–1998)"}, "CUP": {"symbol" : "CUP", "name" : "Cuban Peso"}, "GMD": {"symbol" : "GMD", "name" : "Gambian Dalasi"}, "TWD": {"symbol" : "NT$", "name" : "New Taiwan Dollar"}, "RSD": {"symbol" : "RSD", "name" : "Serbian Dinar"}, "ZRZ": {"symbol" : "ZRZ", "name" : "Zairean Zaire (1971–1993)"}, "UYI": {"symbol" : "UYI", "name" : "Uruguayan Peso (Indexed Units)"} - , "MYR": {"symbol" : "MYR", "name" : "Malaysian Ringgit"}, "FKP": {"symbol" : "FKP", "name" : "Falkland Islands Pound"}, "UYP": {"symbol" : "UYP", "name" : "Uruguayan Peso (1975–1993)"}, "XOF": {"symbol" : "CFA", "name" : "West African CFA Franc"}, "ARA": {"symbol" : "ARA", "name" : "Argentine Austral"}, "UYU": {"symbol" : "UYU", "name" : "Uruguayan Peso"}, "SUR": {"symbol" : "SUR", "name" : "Soviet Rouble"}, "UYW": {"symbol" : "UYW", "name" : "Uruguayan Nominal Wage Index Unit"}, "CVE": {"symbol" : "CVE", - "name" : "Cape Verdean Escudo"}, "OMR": {"symbol" : "OMR", "name" : "Omani Rial"}, "KES": {"symbol" : "KES", "name" : "Kenyan Shilling"}, "SEK": {"symbol" : "SEK", "name" : "Swedish Krona"}, "MZE": {"symbol" : "MZE", "name" : "Mozambican Escudo"}, "ARL": {"symbol" : "ARL", "name" : "Argentine Peso Ley (1970–1983)"}, "ARM": {"symbol" : "ARM", "name" : "Argentine Peso (1881–1970)"}, "BTN": {"symbol" : "BTN", "name" : "Bhutanese Ngultrum"}, "GNF": {"symbol" : "GNF", "name" : "Guinean Franc"}, "ARP": {"symbol" - : "ARP", "name" : "Argentine Peso (1983–1985)"}, "MZN": {"symbol" : "MZN", "name" : "Mozambican Metical"}, "MZM": {"symbol" : "MZM", "name" : "Mozambican Metical (1980–2006)"}, "SVC": {"symbol" : "SVC", "name" : "Salvadoran Colón"}, "ARS": {"symbol" : "ARS", "name" : "Argentine Peso"}, "QAR": {"symbol" : "QAR", "name" : "Qatari Rial"}, "IRR": {"symbol" : "IRR", "name" : "Iranian Rial"}, "NLG": {"symbol" : "NLG", "name" : "Dutch Guilder"}, "GNS": {"symbol" : "GNS", "name" : "Guinean Syli"}, "XPD": {"symbol" - : "XPD", "name" : "Palladium"}, "THB": {"symbol" : "THB", "name" : "Thai Baht"}, "UZS": {"symbol" : "UZS", "name" : "Uzbekistani Som"}, "XPF": {"symbol" : "CFPF", "name" : "CFP Franc"}, "BDT": {"symbol" : "BDT", "name" : "Bangladeshi Taka"}, "LYD": {"symbol" : "LYD", "name" : "Libyan Dinar"}, "BUK": {"symbol" : "BUK", "name" : "Burmese Kyat"}, "KWD": {"symbol" : "KWD", "name" : "Kuwaiti Dinar"}, "XPT": {"symbol" : "XPT", "name" : "Platinum"}, "RUB": {"symbol" : "RUB", "name" : "Russian Ruble"}, "ISK": {"symbol" - : "ISK", "name" : "Icelandic Króna"}, "BEC": {"symbol" : "BEC", "name" : "Belgian Franc (convertible)"}, "ISJ": {"symbol" : "ISJ", "name" : "Icelandic Króna (1918–1981)"}, "BEF": {"symbol" : "BEF", "name" : "Belgian Franc"}, "MKD": {"symbol" : "MKD", "name" : "Macedonian Denar"}, "BEL": {"symbol" : "BEL", "name" : "Belgian Franc (financial)"}, "RUR": {"symbol" : "RUR", "name" : "Russian Ruble (1991–1998)"}, "DZD": {"symbol" : "DZD", "name" : "Algerian Dinar"}, "PAB": {"symbol" : "PAB", "name" : "Panamanian Balboa"} - , "MKN": {"symbol" : "MKN", "name" : "Macedonian Denar (1992–1993)"}, "SGD": {"symbol" : "SGD", "name" : "Singapore Dollar"}, "KGS": {"symbol" : "KGS", "name" : "Kyrgystani Som"}, "HRD": {"symbol" : "HRD", "name" : "Croatian Dinar"}, "XAF": {"symbol" : "FCFA", "name" : "Central African CFA Franc"}, "XAG": {"symbol" : "XAG", "name" : "Silver"}, "ATS": {"symbol" : "ATS", "name" : "Austrian Schilling"}, "CHF": {"symbol" : "CHF", "name" : "Swiss Franc"}, "HRK": {"symbol" : "HRK", "name" : "Croatian Kuna"} - , "ITL": {"symbol" : "ITL", "name" : "Italian Lira"}, "CHE": {"symbol" : "CHE", "name" : "WIR Euro"}, "DJF": {"symbol" : "DJF", "name" : "Djiboutian Franc"}, "MLF": {"symbol" : "MLF", "name" : "Malian Franc"}, "XRE": {"symbol" : "XRE", "name" : "RINET Funds"}, "TZS": {"symbol" : "TZS", "name" : "Tanzanian Shilling"}, "ADP": {"symbol" : "ADP", "name" : "Andorran Peseta"}, "VND": {"symbol" : "₫", "name" : "Vietnamese Dong"}, "XAU": {"symbol" : "XAU", "name" : "Gold"}, "AUD": {"symbol" : "A$", "name" : "Australian Dollar"} - , "CHW": {"symbol" : "CHW", "name" : "WIR Franc"}, "KHR": {"symbol" : "KHR", "name" : "Cambodian Riel"}, "IDR": {"symbol" : "IDR", "name" : "Indonesian Rupiah"}, "XBA": {"symbol" : "XBA", "name" : "European Composite Unit"}, "KYD": {"symbol" : "KYD", "name" : "Cayman Islands Dollar"}, "VNN": {"symbol" : "VNN", "name" : "Vietnamese Dong (1978–1985)"}, "XBC": {"symbol" : "XBC", "name" : "European Unit of Account (XBC)"}, "YDD": {"symbol" : "YDD", "name" : "Yemeni Dinar"}, "XBB": {"symbol" : "XBB", "name" - : "European Monetary Unit"}, "BWP": {"symbol" : "BWP", "name" : "Botswanan Pula"}, "GQE": {"symbol" : "GQE", "name" : "Equatorial Guinean Ekwele"}, "SHP": {"symbol" : "SHP", "name" : "St. Helena Pound"}, "CYP": {"symbol" : "CYP", "name" : "Cypriot Pound"}, "XBD": {"symbol" : "XBD", "name" : "European Unit of Account (XBD)"}, "TJS": {"symbol" : "TJS", "name" : "Tajikistani Somoni"}, "TJR": {"symbol" : "TJR", "name" : "Tajikistani Ruble"}, "AED": {"symbol" : "AED", "name" : "United Arab Emirates Dirham"}, - "RWF": {"symbol" : "RWF", "name" : "Rwandan Franc"}, "DKK": {"symbol" : "DKK", "name" : "Danish Krone"}, "BGL": {"symbol" : "BGL", "name" : "Bulgarian Hard Lev"}, "ZWD": {"symbol" : "ZWD", "name" : "Zimbabwean Dollar (1980–2008)"}, "BGN": {"symbol" : "BGN", "name" : "Bulgarian Lev"}, "BGM": {"symbol" : "BGM", "name" : "Bulgarian Socialist Lev"}, "YUD": {"symbol" : "YUD", "name" : "Yugoslavian Hard Dinar (1966–1990)"}, "MMK": {"symbol" : "MMK", "name" : "Myanmar Kyat"}, "BGO": {"symbol" : "BGO", "name" - : "Bulgarian Lev (1879–1952)"}, "NOK": {"symbol" : "NOK", "name" : "Norwegian Krone"}, "SYP": {"symbol" : "SYP", "name" : "Syrian Pound"}, "ZWL": {"symbol" : "ZWL", "name" : "Zimbabwean Dollar (2009)"}, "YUM": {"symbol" : "YUM", "name" : "Yugoslavian New Dinar (1994–2002)"}, "LKR": {"symbol" : "LKR", "name" : "Sri Lankan Rupee"}, "YUN": {"symbol" : "YUN", "name" : "Yugoslavian Convertible Dinar (1990–1992)"}, "ZWR": {"symbol" : "ZWR", "name" : "Zimbabwean Dollar (2008)"}, "CZK": {"symbol" : "CZK", - "name" : "Czech Koruna"}, "IEP": {"symbol" : "IEP", "name" : "Irish Pound"}, "YUR": {"symbol" : "YUR", "name" : "Yugoslavian Reformed Dinar (1992–1993)"}, "GRD": {"symbol" : "GRD", "name" : "Greek Drachma"}, "XCD": {"symbol" : "EC$", "name" : "East Caribbean Dollar"}, "HTG": {"symbol" : "HTG", "name" : "Haitian Gourde"}, "XSU": {"symbol" : "XSU", "name" : "Sucre"}, "AFA": {"symbol" : "AFA", "name" : "Afghan Afghani (1927–2002)"}, "BHD": {"symbol" : "BHD", "name" : "Bahraini Dinar"}, "SIT": {"symbol" - : "SIT", "name" : "Slovenian Tolar"}, "PTE": {"symbol" : "PTE", "name" : "Portuguese Escudo"}, "KZT": {"symbol" : "KZT", "name" : "Kazakhstani Tenge"}, "SZL": {"symbol" : "SZL", "name" : "Swazi Lilangeni"}, "YER": {"symbol" : "YER", "name" : "Yemeni Rial"}, "AFN": {"symbol" : "AFN", "name" : "Afghan Afghani"}, "BYB": {"symbol" : "BYB", "name" : "Belarusian Ruble (1994–1999)"}, "RHD": {"symbol" : "RHD", "name" : "Rhodesian Dollar"}, "AWG": {"symbol" : "AWG", "name" : "Aruban Florin"}, "NPR": {"symbol" : - "NPR", "name" : "Nepalese Rupee"}, "MNT": {"symbol" : "MNT", "name" : "Mongolian Tugrik"}, "GBP": {"symbol" : "£", "name" : "British Pound"}, "BYN": {"symbol" : "BYN", "name" : "Belarusian Ruble"}, "XTS": {"symbol" : "XTS", "name" : "Testing Currency Code"}, "HUF": {"symbol" : "HUF", "name" : "Hungarian Forint"}, "BYR": {"symbol" : "BYR", "name" : "Belarusian Ruble (2000–2016)"}, "BIF": {"symbol" : "BIF", "name" : "Burundian Franc"}, "XUA": {"symbol" : "XUA", "name" : "ADB Unit of Account"}, "XDR": {"symbol" - : "XDR", "name" : "Special Drawing Rights"}, "BZD": {"symbol" : "BZD", "name" : "Belize Dollar"}, "MOP": {"symbol" : "MOP", "name" : "Macanese Pataca"}, "NAD": {"symbol" : "NAD", "name" : "Namibian Dollar"}, "SKK": {"symbol" : "SKK", "name" : "Slovak Koruna"}, "PEI": {"symbol" : "PEI", "name" : "Peruvian Inti"}, "TMM": {"symbol" : "TMM", "name" : "Turkmenistani Manat (1993–2009)"}, "PEN": {"symbol" : "PEN", "name" : "Peruvian Sol"}, "WST": {"symbol" : "WST", "name" : "Samoan Tala"}, "TMT": {"symbol" : - "TMT", "name" : "Turkmenistani Manat"}, "FRF": {"symbol" : "FRF", "name" : "French Franc"}, "CLF": {"symbol" : "CLF", "name" : "Chilean Unit of Account (UF)"}, "CLE": {"symbol" : "CLE", "name" : "Chilean Escudo"}, "PES": {"symbol" : "PES", "name" : "Peruvian Sol (1863–1965)"}, "GTQ": {"symbol" : "GTQ", "name" : "Guatemalan Quetzal"}, "CLP": {"symbol" : "CLP", "name" : "Chilean Peso"}, "XEU": {"symbol" : "XEU", "name" : "European Currency Unit"}, "TND": {"symbol" : "TND", "name" : "Tunisian Dinar"}, "SLL": - {"symbol" : "SLL", "name" : "Sierra Leonean Leone"}, "XFO": {"symbol" : "XFO", "name" : "French Gold Franc"}, "DOP": {"symbol" : "DOP", "name" : "Dominican Peso"}, "KMF": {"symbol" : "KMF", "name" : "Comorian Franc"}, "XFU": {"symbol" : "XFU", "name" : "French UIC-Franc"}, "GEK": {"symbol" : "GEK", "name" : "Georgian Kupon Larit"}, "GEL": {"symbol" : "GEL", "name" : "Georgian Lari"}, "MAD": {"symbol" : "MAD", "name" : "Moroccan Dirham"}, "MAF": {"symbol" : "MAF", "name" : "Moroccan Franc"}, "AZM": {"symbol" - : "AZM", "name" : "Azerbaijani Manat (1993–2006)"}, "TOP": {"symbol" : "TOP", "name" : "Tongan Paʻanga"}, "AZN": {"symbol" : "AZN", "name" : "Azerbaijani Manat"}, "PGK": {"symbol" : "PGK", "name" : "Papua New Guinean Kina"}, "CNH": {"symbol" : "CNH", "name" : "Chinese Yuan (offshore)"}, "UAH": {"symbol" : "UAH", "name" : "Ukrainian Hryvnia"}, "UAK": {"symbol" : "UAK", "name" : "Ukrainian Karbovanets"}, "ERN": {"symbol" : "ERN", "name" : "Eritrean Nakfa"}, "TPE": {"symbol" : "TPE", "name" : "Timorese Escudo"} - , "MRO": {"symbol" : "MRO", "name" : "Mauritanian Ouguiya (1973–2017)"}, "CNX": {"symbol" : "CNX", "name" : "Chinese People’s Bank Dollar"}, "CNY": {"symbol" : "CN¥", "name" : "Chinese Yuan"}, "MRU": {"symbol" : "MRU", "name" : "Mauritanian Ouguiya"}, "ESA": {"symbol" : "ESA", "name" : "Spanish Peseta (A account)"}, "GWE": {"symbol" : "GWE", "name" : "Portuguese Guinea Escudo"}, "ESB": {"symbol" : "ESB", "name" : "Spanish Peseta (convertible account)"}, "BMD": {"symbol" : "BMD", "name" : "Bermudan Dollar"} - , "PHP": {"symbol" : "PHP", "name" : "Philippine Piso"}, "XXX": {"symbol" : "¤", "name" : "Unknown Currency"}, "PYG": {"symbol" : "PYG", "name" : "Paraguayan Guarani"}, "JMD": {"symbol" : "JMD", "name" : "Jamaican Dollar"}, "GWP": {"symbol" : "GWP", "name" : "Guinea-Bissau Peso"}, "ESP": {"symbol" : "ESP", "name" : "Spanish Peseta"}, "COP": {"symbol" : "COP", "name" : "Colombian Peso"}, "USD": {"symbol" : "$", "name" : "US Dollar"}, "COU": {"symbol" : "COU", "name" : "Colombian Real Value Unit"}, "MCF": - {"symbol" : "MCF", "name" : "Monegasque Franc"}, "USN": {"symbol" : "USN", "name" : "US Dollar (Next day)"}, "ETB": {"symbol" : "ETB", "name" : "Ethiopian Birr"}, "VEB": {"symbol" : "VEB", "name" : "Venezuelan Bolívar (1871–2008)"}, "ECS": {"symbol" : "ECS", "name" : "Ecuadorian Sucre"}, "USS": {"symbol" : "USS", "name" : "US Dollar (Same day)"}, "SOS": {"symbol" : "SOS", "name" : "Somali Shilling"}, "VEF": {"symbol" : "VEF", "name" : "Venezuelan Bolívar (2008–2018)"}, "VUV": {"symbol" : "VUV", "name" - : "Vanuatu Vatu"}, "LAK": {"symbol" : "LAK", "name" : "Laotian Kip"}, "BND": {"symbol" : "BND", "name" : "Brunei Dollar"}, "ECV": {"symbol" : "ECV", "name" : "Ecuadorian Unit of Constant Value"}, "ZMK": {"symbol" : "ZMK", "name" : "Zambian Kwacha (1968–2012)"}, "LRD": {"symbol" : "LRD", "name" : "Liberian Dollar"}, "ALK": {"symbol" : "ALK", "name" : "Albanian Lek (1946–1965)"}, "ALL": {"symbol" : "ALL", "name" : "Albanian Lek"}, "GHC": {"symbol" : "GHC", "name" : "Ghanaian Cedi (1979–2007)"}, "MTL": - {"symbol" : "MTL", "name" : "Maltese Lira"}, "VES": {"symbol" : "VES", "name" : "Venezuelan Bolívar"}, "ZMW": {"symbol" : "ZMW", "name" : "Zambian Kwacha"}, "MTP": {"symbol" : "MTP", "name" : "Maltese Pound"}, "ILP": {"symbol" : "ILP", "name" : "Israeli Pound"}, "MDC": {"symbol" : "MDC", "name" : "Moldovan Cupon"}, "ILR": {"symbol" : "ILR", "name" : "Israeli Shekel (1980–1985)"}, "TRL": {"symbol" : "TRL", "name" : "Turkish Lira (1922–2005)"}, "ILS": {"symbol" : "₪", "name" : "Israeli New Shekel"} - , "GHS": {"symbol" : "GHS", "name" : "Ghanaian Cedi"}, "GYD": {"symbol" : "GYD", "name" : "Guyanaese Dollar"}, "KPW": {"symbol" : "KPW", "name" : "North Korean Won"}, "BOB": {"symbol" : "BOB", "name" : "Bolivian Boliviano"}, "MDL": {"symbol" : "MDL", "name" : "Moldovan Leu"}, "AMD": {"symbol" : "AMD", "name" : "Armenian Dram"}, "TRY": {"symbol" : "TRY", "name" : "Turkish Lira"}, "LBP": {"symbol" : "LBP", "name" : "Lebanese Pound"}, "BOL": {"symbol" : "BOL", "name" : "Bolivian Boliviano (1863–1963)"}, "JOD": - {"symbol" : "JOD", "name" : "Jordanian Dinar"}, "HKD": {"symbol" : "HK$", "name" : "Hong Kong Dollar"}, "BOP": {"symbol" : "BOP", "name" : "Bolivian Peso"}, "EUR": {"symbol" : "€", "name" : "Euro"}, "LSL": {"symbol" : "LSL", "name" : "Lesotho Loti"}, "CAD": {"symbol" : "CA$", "name" : "Canadian Dollar"}, "BOV": {"symbol" : "BOV", "name" : "Bolivian Mvdol"}, "EEK": {"symbol" : "EEK", "name" : "Estonian Kroon"}, "MUR": {"symbol" : "MUR", "name" : "Mauritian Rupee"}, "ROL": {"symbol" : "ROL", "name" : "Romanian Leu (1952–2006)"} - , "GIP": {"symbol" : "GIP", "name" : "Gibraltar Pound"}, "RON": {"symbol" : "RON", "name" : "Romanian Leu"}, "NGN": {"symbol" : "NGN", "name" : "Nigerian Naira"}, "CRC": {"symbol" : "CRC", "name" : "Costa Rican Colón"}, "PKR": {"symbol" : "PKR", "name" : "Pakistani Rupee"}, "ANG": {"symbol" : "ANG", "name" : "Netherlands Antillean Guilder"}, "KRH": {"symbol" : "KRH", "name" : "South Korean Hwan (1953–1962)"}, "SRD": {"symbol" : "SRD", "name" : "Surinamese Dollar"}, "LTL": {"symbol" : "LTL", "name" : "Lithuanian Litas"} - , "SAR": {"symbol" : "SAR", "name" : "Saudi Riyal"}, "TTD": {"symbol" : "TTD", "name" : "Trinidad & Tobago Dollar"}, "MVP": {"symbol" : "MVP", "name" : "Maldivian Rupee (1947–1981)"}, "MVR": {"symbol" : "MVR", "name" : "Maldivian Rufiyaa"}, "KRO": {"symbol" : "KRO", "name" : "South Korean Won (1945–1953)"}, "SRG": {"symbol" : "SRG", "name" : "Surinamese Guilder"}, "DDM": {"symbol" : "DDM", "name" : "East German Mark"}, "INR": {"symbol" : "₹", "name" : "Indian Rupee"}, "LTT": {"symbol" : "LTT", "name" - : "Lithuanian Talonas"}, "KRW": {"symbol" : "₩", "name" : "South Korean Won"}, "JPY": {"symbol" : "¥", "name" : "Japanese Yen"}, "AOA": {"symbol" : "AOA", "name" : "Angolan Kwanza"}, "PLN": {"symbol" : "PLN", "name" : "Polish Zloty"}, "SBD": {"symbol" : "SBD", "name" : "Solomon Islands Dollar"}, "CSD": {"symbol" : "CSD", "name" : "Serbian Dinar (2002–2006)"}, "CSK": {"symbol" : "CSK", "name" : "Czechoslovak Hard Koruna"}, "LUC": {"symbol" : "LUC", "name" : "Luxembourgian Convertible Franc"}, "LUF": - {"symbol" : "LUF", "name" : "Luxembourgian Franc"}, "AOK": {"symbol" : "AOK", "name" : "Angolan Kwanza (1977–1991)"}, "PLZ": {"symbol" : "PLZ", "name" : "Polish Zloty (1950–1995)"}, "AON": {"symbol" : "AON", "name" : "Angolan New Kwanza (1990–2000)"}, "MWK": {"symbol" : "MWK", "name" : "Malawian Kwacha"}, "LUL": {"symbol" : "LUL", "name" : "Luxembourg Financial Franc"}, "AOR": {"symbol" : "AOR", "name" : "Angolan Readjusted Kwanza (1995–1999)"}, "BAD": {"symbol" : "BAD", "name" : "Bosnia-Herzegovina Dinar (1992–1994)"} - , "MGA": {"symbol" : "MGA", "name" : "Malagasy Ariary"}, "NIC": {"symbol" : "NIC", "name" : "Nicaraguan Córdoba (1988–1991)"}, "FIM": {"symbol" : "FIM", "name" : "Finnish Markka"}, "DEM": {"symbol" : "DEM", "name" : "German Mark"}, "MGF": {"symbol" : "MGF", "name" : "Malagasy Franc"}, "BAM": {"symbol" : "BAM", "name" : "Bosnia-Herzegovina Convertible Mark"}, "BAN": {"symbol" : "BAN", "name" : "Bosnia-Herzegovina New Dinar (1994–1997)"}, "EGP": {"symbol" : "EGP", "name" : "Egyptian Pound"}, "SSP": {"symbol" - : "SSP", "name" : "South Sudanese Pound"}, "BRC": {"symbol" : "BRC", "name" : "Brazilian Cruzado (1986–1989)"}, "BRB": {"symbol" : "BRB", "name" : "Brazilian New Cruzeiro (1967–1986)"}, "BRE": {"symbol" : "BRE", "name" : "Brazilian Cruzeiro (1990–1993)"}, "NIO": {"symbol" : "NIO", "name" : "Nicaraguan Córdoba"}, "NZD": {"symbol" : "NZ$", "name" : "New Zealand Dollar"}, "BRL": {"symbol" : "R$", "name" : "Brazilian Real"}, "BRN": {"symbol" : "BRN", "name" : "Brazilian New Cruzado (1989–1990)"}}}; -} -function otpp_ResourceAccessor() { - jl_Object.call(this); -} -function otpp_ResourceAccessor__init_0() { - var var_0 = new otpp_ResourceAccessor(); - otpp_ResourceAccessor__init_(var_0); - return var_0; -} -function otpp_ResourceAccessor__init_($this) { - return; -} -function otpp_ResourceAccessor_keys(var$1) { - var result = []; - for (var key in var$1) { - result.push(key); - } - return result; -} -function otcic_CurrencyHelper() { - jl_Object.call(this); -} -var otcic_CurrencyHelper_$$metadata$$0 = null; -var otcic_CurrencyHelper_$$metadata$$1 = null; -function otcic_CurrencyHelper__init_0() { - var var_0 = new otcic_CurrencyHelper(); - otcic_CurrencyHelper__init_(var_0); - return var_0; -} -function otcic_CurrencyHelper__init_($this) { - return; -} -function otcic_CurrencyHelper_getCurrencies$$create() { - return [{"code" : "AFN", "fractionDigits" : 2, "numericCode" : 971}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "ALL", "fractionDigits" : 2, "numericCode" : 8}, {"code" : "DZD", "fractionDigits" : 2, "numericCode" : 12}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "AOA", "fractionDigits" : 2, "numericCode" : 973}, {"code" : "XCD", "fractionDigits" : 2, "numericCode" : 951}, {"code" : null, - "fractionDigits" : 0, "numericCode" : 0}, {"code" : "XCD", "fractionDigits" : 2, "numericCode" : 951}, {"code" : "ARS", "fractionDigits" : 2, "numericCode" : 32}, {"code" : "AMD", "fractionDigits" : 2, "numericCode" : 51}, {"code" : "AWG", "fractionDigits" : 2, "numericCode" : 533}, {"code" : "AUD", "fractionDigits" : 2, "numericCode" : 36}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "AZN", "fractionDigits" : 2, "numericCode" : 944}, {"code" : "BSD", "fractionDigits" : 2, "numericCode" - : 44}, {"code" : "BHD", "fractionDigits" : 3, "numericCode" : 48}, {"code" : "BDT", "fractionDigits" : 2, "numericCode" : 50}, {"code" : "BBD", "fractionDigits" : 2, "numericCode" : 52}, {"code" : "BYR", "fractionDigits" : 0, "numericCode" : 974}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "BZD", "fractionDigits" : 2, "numericCode" : 84}, {"code" : "XOF", "fractionDigits" : 0, "numericCode" : 952}, {"code" : "BMD", "fractionDigits" : 2, "numericCode" : 60}, {"code" : "BTN", "fractionDigits" - : 2, "numericCode" : 64}, {"code" : "INR", "fractionDigits" : 2, "numericCode" : 356}, {"code" : "BOB", "fractionDigits" : 2, "numericCode" : 68}, {"code" : "BOV", "fractionDigits" : 2, "numericCode" : 984}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "BAM", "fractionDigits" : 2, "numericCode" : 977}, {"code" : "BWP", "fractionDigits" : 2, "numericCode" : 72}, {"code" : "NOK", "fractionDigits" : 2, "numericCode" : 578}, {"code" : "BRL", "fractionDigits" : 2, "numericCode" : 986} - , {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "BND", "fractionDigits" : 2, "numericCode" : 96}, {"code" : "BGN", "fractionDigits" : 2, "numericCode" : 975}, {"code" : "XOF", "fractionDigits" : 0, "numericCode" : 952}, {"code" : "BIF", "fractionDigits" : 0, "numericCode" : 108}, {"code" : "KHR", "fractionDigits" : 2, "numericCode" : 116}, {"code" : "XAF", "fractionDigits" : 0, "numericCode" : 950}, {"code" : "CAD", "fractionDigits" : 2, "numericCode" : 124}, {"code" : "CVE", "fractionDigits" - : 2, "numericCode" : 132}, {"code" : "KYD", "fractionDigits" : 2, "numericCode" : 136}, {"code" : "XAF", "fractionDigits" : 0, "numericCode" : 950}, {"code" : "XAF", "fractionDigits" : 0, "numericCode" : 950}, {"code" : "CLF", "fractionDigits" : 4, "numericCode" : 990}, {"code" : "CLP", "fractionDigits" : 0, "numericCode" : 152}, {"code" : "CNY", "fractionDigits" : 2, "numericCode" : 156}, {"code" : "AUD", "fractionDigits" : 2, "numericCode" : 36}, {"code" : "AUD", "fractionDigits" : 2, "numericCode" : 36} - , {"code" : "COP", "fractionDigits" : 2, "numericCode" : 170}, {"code" : "COU", "fractionDigits" : 2, "numericCode" : 970}, {"code" : "KMF", "fractionDigits" : 0, "numericCode" : 174}, {"code" : "XAF", "fractionDigits" : 0, "numericCode" : 950}, {"code" : "CDF", "fractionDigits" : 2, "numericCode" : 976}, {"code" : "NZD", "fractionDigits" : 2, "numericCode" : 554}, {"code" : "CRC", "fractionDigits" : 2, "numericCode" : 188}, {"code" : "XOF", "fractionDigits" : 0, "numericCode" : 952}, {"code" : "HRK", "fractionDigits" - : 2, "numericCode" : 191}, {"code" : "CUC", "fractionDigits" : 2, "numericCode" : 931}, {"code" : "CUP", "fractionDigits" : 2, "numericCode" : 192}, {"code" : "ANG", "fractionDigits" : 2, "numericCode" : 532}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "CZK", "fractionDigits" : 2, "numericCode" : 203}, {"code" : "DKK", "fractionDigits" : 2, "numericCode" : 208}, {"code" : "DJF", "fractionDigits" : 0, "numericCode" : 262}, {"code" : "XCD", "fractionDigits" : 2, "numericCode" : - 951}, {"code" : "DOP", "fractionDigits" : 2, "numericCode" : 214}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "EGP", "fractionDigits" : 2, "numericCode" : 818}, {"code" : "SVC", "fractionDigits" : 2, "numericCode" : 222}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "XAF", "fractionDigits" : 0, "numericCode" : 950}, {"code" : "ERN", "fractionDigits" : 2, "numericCode" : 232}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "ETB", - "fractionDigits" : 2, "numericCode" : 230}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "FKP", "fractionDigits" : 2, "numericCode" : 238}, {"code" : "DKK", "fractionDigits" : 2, "numericCode" : 208}, {"code" : "FJD", "fractionDigits" : 2, "numericCode" : 242}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "XPF", "fractionDigits" : 0, - "numericCode" : 953}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "XAF", "fractionDigits" : 0, "numericCode" : 950}, {"code" : "GMD", "fractionDigits" : 2, "numericCode" : 270}, {"code" : "GEL", "fractionDigits" : 2, "numericCode" : 981}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "GHS", "fractionDigits" : 2, "numericCode" : 936}, {"code" : "GIP", "fractionDigits" : 2, "numericCode" : 292}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978} - , {"code" : "DKK", "fractionDigits" : 2, "numericCode" : 208}, {"code" : "XCD", "fractionDigits" : 2, "numericCode" : 951}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "GTQ", "fractionDigits" : 2, "numericCode" : 320}, {"code" : "GBP", "fractionDigits" : 2, "numericCode" : 826}, {"code" : "GNF", "fractionDigits" : 0, "numericCode" : 324}, {"code" : "XOF", "fractionDigits" : 0, "numericCode" : 952}, {"code" : "GYD", "fractionDigits" - : 2, "numericCode" : 328}, {"code" : "HTG", "fractionDigits" : 2, "numericCode" : 332}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "AUD", "fractionDigits" : 2, "numericCode" : 36}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "HNL", "fractionDigits" : 2, "numericCode" : 340}, {"code" : "HKD", "fractionDigits" : 2, "numericCode" : 344}, {"code" : "HUF", "fractionDigits" : 2, "numericCode" : 348}, {"code" : "ISK", "fractionDigits" : 0, "numericCode" : 352} - , {"code" : "INR", "fractionDigits" : 2, "numericCode" : 356}, {"code" : "IDR", "fractionDigits" : 2, "numericCode" : 360}, {"code" : "XDR", "fractionDigits" : -1, "numericCode" : 960}, {"code" : "IRR", "fractionDigits" : 2, "numericCode" : 364}, {"code" : "IQD", "fractionDigits" : 3, "numericCode" : 368}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "GBP", "fractionDigits" : 2, "numericCode" : 826}, {"code" : "ILS", "fractionDigits" : 2, "numericCode" : 376}, {"code" : "EUR", "fractionDigits" - : 2, "numericCode" : 978}, {"code" : "JMD", "fractionDigits" : 2, "numericCode" : 388}, {"code" : "JPY", "fractionDigits" : 0, "numericCode" : 392}, {"code" : "GBP", "fractionDigits" : 2, "numericCode" : 826}, {"code" : "JOD", "fractionDigits" : 3, "numericCode" : 400}, {"code" : "KZT", "fractionDigits" : 2, "numericCode" : 398}, {"code" : "KES", "fractionDigits" : 2, "numericCode" : 404}, {"code" : "AUD", "fractionDigits" : 2, "numericCode" : 36}, {"code" : "KPW", "fractionDigits" : 2, "numericCode" : 408} - , {"code" : "KRW", "fractionDigits" : 0, "numericCode" : 410}, {"code" : "KWD", "fractionDigits" : 3, "numericCode" : 414}, {"code" : "KGS", "fractionDigits" : 2, "numericCode" : 417}, {"code" : "LAK", "fractionDigits" : 2, "numericCode" : 418}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "LBP", "fractionDigits" : 2, "numericCode" : 422}, {"code" : "LSL", "fractionDigits" : 2, "numericCode" : 426}, {"code" : "ZAR", "fractionDigits" : 2, "numericCode" : 710}, {"code" : "LRD", "fractionDigits" - : 2, "numericCode" : 430}, {"code" : "LYD", "fractionDigits" : 3, "numericCode" : 434}, {"code" : "CHF", "fractionDigits" : 2, "numericCode" : 756}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "MOP", "fractionDigits" : 2, "numericCode" : 446}, {"code" : "MKD", "fractionDigits" : 2, "numericCode" : 807}, {"code" : "MGA", "fractionDigits" : 2, "numericCode" : 969}, {"code" : "MWK", "fractionDigits" : 2, "numericCode" : - 454}, {"code" : "MYR", "fractionDigits" : 2, "numericCode" : 458}, {"code" : "MVR", "fractionDigits" : 2, "numericCode" : 462}, {"code" : "XOF", "fractionDigits" : 0, "numericCode" : 952}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "MRO", "fractionDigits" : 2, "numericCode" : 478}, {"code" : "MUR", "fractionDigits" : 2, "numericCode" : 480}, {"code" : "EUR", - "fractionDigits" : 2, "numericCode" : 978}, {"code" : "XUA", "fractionDigits" : -1, "numericCode" : 965}, {"code" : "MXN", "fractionDigits" : 2, "numericCode" : 484}, {"code" : "MXV", "fractionDigits" : 2, "numericCode" : 979}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "MDL", "fractionDigits" : 2, "numericCode" : 498}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "MNT", "fractionDigits" : 2, "numericCode" : 496}, {"code" : "EUR", "fractionDigits" : 2, - "numericCode" : 978}, {"code" : "XCD", "fractionDigits" : 2, "numericCode" : 951}, {"code" : "MAD", "fractionDigits" : 2, "numericCode" : 504}, {"code" : "MZN", "fractionDigits" : 2, "numericCode" : 943}, {"code" : "MMK", "fractionDigits" : 2, "numericCode" : 104}, {"code" : "NAD", "fractionDigits" : 2, "numericCode" : 516}, {"code" : "ZAR", "fractionDigits" : 2, "numericCode" : 710}, {"code" : "AUD", "fractionDigits" : 2, "numericCode" : 36}, {"code" : "NPR", "fractionDigits" : 2, "numericCode" : 524}, - {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "XPF", "fractionDigits" : 0, "numericCode" : 953}, {"code" : "NZD", "fractionDigits" : 2, "numericCode" : 554}, {"code" : "NIO", "fractionDigits" : 2, "numericCode" : 558}, {"code" : "XOF", "fractionDigits" : 0, "numericCode" : 952}, {"code" : "NGN", "fractionDigits" : 2, "numericCode" : 566}, {"code" : "NZD", "fractionDigits" : 2, "numericCode" : 554}, {"code" : "AUD", "fractionDigits" : 2, "numericCode" : 36}, {"code" : "USD", "fractionDigits" - : 2, "numericCode" : 840}, {"code" : "NOK", "fractionDigits" : 2, "numericCode" : 578}, {"code" : "OMR", "fractionDigits" : 3, "numericCode" : 512}, {"code" : "PKR", "fractionDigits" : 2, "numericCode" : 586}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : null, "fractionDigits" : 0, "numericCode" : 0}, {"code" : "PAB", "fractionDigits" : 2, "numericCode" : 590}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "PGK", "fractionDigits" : 2, "numericCode" : 598} - , {"code" : "PYG", "fractionDigits" : 0, "numericCode" : 600}, {"code" : "PEN", "fractionDigits" : 2, "numericCode" : 604}, {"code" : "PHP", "fractionDigits" : 2, "numericCode" : 608}, {"code" : "NZD", "fractionDigits" : 2, "numericCode" : 554}, {"code" : "PLN", "fractionDigits" : 2, "numericCode" : 985}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "QAR", "fractionDigits" : 2, "numericCode" : 634}, {"code" : "EUR", "fractionDigits" - : 2, "numericCode" : 978}, {"code" : "RON", "fractionDigits" : 2, "numericCode" : 946}, {"code" : "RUB", "fractionDigits" : 2, "numericCode" : 643}, {"code" : "RWF", "fractionDigits" : 0, "numericCode" : 646}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "SHP", "fractionDigits" : 2, "numericCode" : 654}, {"code" : "XCD", "fractionDigits" : 2, "numericCode" : 951}, {"code" : "XCD", "fractionDigits" : 2, "numericCode" : 951}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : - 978}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "XCD", "fractionDigits" : 2, "numericCode" : 951}, {"code" : "WST", "fractionDigits" : 2, "numericCode" : 882}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "STD", "fractionDigits" : 2, "numericCode" : 678}, {"code" : "SAR", "fractionDigits" : 2, "numericCode" : 682}, {"code" : "XOF", "fractionDigits" : 0, "numericCode" : 952}, {"code" : "RSD", "fractionDigits" : 2, "numericCode" : 941}, {"code" : "SCR", - "fractionDigits" : 2, "numericCode" : 690}, {"code" : "SLL", "fractionDigits" : 2, "numericCode" : 694}, {"code" : "SGD", "fractionDigits" : 2, "numericCode" : 702}, {"code" : "ANG", "fractionDigits" : 2, "numericCode" : 532}, {"code" : "XSU", "fractionDigits" : -1, "numericCode" : 994}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "SBD", "fractionDigits" : 2, "numericCode" : 90}, {"code" : "SOS", "fractionDigits" : 2, - "numericCode" : 706}, {"code" : "ZAR", "fractionDigits" : 2, "numericCode" : 710}, {"code" : null, "fractionDigits" : 0, "numericCode" : 0}, {"code" : "SSP", "fractionDigits" : 2, "numericCode" : 728}, {"code" : "EUR", "fractionDigits" : 2, "numericCode" : 978}, {"code" : "LKR", "fractionDigits" : 2, "numericCode" : 144}, {"code" : "SDG", "fractionDigits" : 2, "numericCode" : 938}, {"code" : "SRD", "fractionDigits" : 2, "numericCode" : 968}, {"code" : "NOK", "fractionDigits" : 2, "numericCode" : 578}, {"code" - : "SZL", "fractionDigits" : 2, "numericCode" : 748}, {"code" : "SEK", "fractionDigits" : 2, "numericCode" : 752}, {"code" : "CHE", "fractionDigits" : 2, "numericCode" : 947}, {"code" : "CHF", "fractionDigits" : 2, "numericCode" : 756}, {"code" : "CHW", "fractionDigits" : 2, "numericCode" : 948}, {"code" : "SYP", "fractionDigits" : 2, "numericCode" : 760}, {"code" : "TWD", "fractionDigits" : 2, "numericCode" : 901}, {"code" : "TJS", "fractionDigits" : 2, "numericCode" : 972}, {"code" : "TZS", "fractionDigits" - : 2, "numericCode" : 834}, {"code" : "THB", "fractionDigits" : 2, "numericCode" : 764}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "XOF", "fractionDigits" : 0, "numericCode" : 952}, {"code" : "NZD", "fractionDigits" : 2, "numericCode" : 554}, {"code" : "TOP", "fractionDigits" : 2, "numericCode" : 776}, {"code" : "TTD", "fractionDigits" : 2, "numericCode" : 780}, {"code" : "TND", "fractionDigits" : 3, "numericCode" : 788}, {"code" : "TRY", "fractionDigits" : 2, "numericCode" : - 949}, {"code" : "TMT", "fractionDigits" : 2, "numericCode" : 934}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "AUD", "fractionDigits" : 2, "numericCode" : 36}, {"code" : "UGX", "fractionDigits" : 0, "numericCode" : 800}, {"code" : "UAH", "fractionDigits" : 2, "numericCode" : 980}, {"code" : "AED", "fractionDigits" : 2, "numericCode" : 784}, {"code" : "GBP", "fractionDigits" : 2, "numericCode" : 826}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "USN", - "fractionDigits" : 2, "numericCode" : 997}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "UYI", "fractionDigits" : 0, "numericCode" : 940}, {"code" : "UYU", "fractionDigits" : 2, "numericCode" : 858}, {"code" : "UZS", "fractionDigits" : 2, "numericCode" : 860}, {"code" : "VUV", "fractionDigits" : 0, "numericCode" : 548}, {"code" : "VEF", "fractionDigits" : 2, "numericCode" : 937}, {"code" : "VND", "fractionDigits" : 0, "numericCode" : 704}, {"code" : "USD", "fractionDigits" : 2, - "numericCode" : 840}, {"code" : "USD", "fractionDigits" : 2, "numericCode" : 840}, {"code" : "XPF", "fractionDigits" : 0, "numericCode" : 953}, {"code" : "MAD", "fractionDigits" : 2, "numericCode" : 504}, {"code" : "YER", "fractionDigits" : 2, "numericCode" : 886}, {"code" : "ZMW", "fractionDigits" : 2, "numericCode" : 967}, {"code" : "ZWL", "fractionDigits" : 2, "numericCode" : 932}, {"code" : "XBA", "fractionDigits" : -1, "numericCode" : 955}, {"code" : "XBB", "fractionDigits" : -1, "numericCode" : 956} - , {"code" : "XBC", "fractionDigits" : -1, "numericCode" : 957}, {"code" : "XBD", "fractionDigits" : -1, "numericCode" : 958}, {"code" : "XTS", "fractionDigits" : -1, "numericCode" : 963}, {"code" : "XXX", "fractionDigits" : -1, "numericCode" : 999}, {"code" : "XAU", "fractionDigits" : -1, "numericCode" : 959}, {"code" : "XPD", "fractionDigits" : -1, "numericCode" : 964}, {"code" : "XPT", "fractionDigits" : -1, "numericCode" : 962}, {"code" : "XAG", "fractionDigits" : -1, "numericCode" : 961}]; -} -function otcic_CurrencyHelper_getCountryToCurrencyMap$$create() { - return {"": {"value" : "CYP"}, "PR": {"value" : "USD"}, "PT": {"value" : "EUR"}, "PW": {"value" : "USD"}, "PY": {"value" : "PYG"}, "QA": {"value" : "QAR"}, "AC": {"value" : "SHP"}, "AD": {"value" : "EUR"}, "AE": {"value" : "AED"}, "AF": {"value" : "AFN"}, "AG": {"value" : "XCD"}, "AI": {"value" : "XCD"}, "AL": {"value" : "ALL"}, "AM": {"value" : "AMD"}, "AN": {"value" : "ANG"}, "AO": {"value" : "AOA"}, "242": {"value" : "Brazzaville"}, "AQ": {"value" : ""}, "AR": {"value" : "ARS"}, "243": {"value" : "Kinshasa"} - , "AS": {"value" : "USD"}, "AT": {"value" : "EUR"}, "RE": {"value" : "EUR"}, "AU": {"value" : ""}, "AW": {"value" : "AWG"}, "AX": {"value" : "EUR"}, "AZ": {"value" : "AMD"}, "RO": {"value" : "RON"}, "BA": {"value" : "BAM"}, "BB": {"value" : "BBD"}, "RS": {"value" : "RSD"}, "BD": {"value" : "BDT"}, "BE": {"value" : "EUR"}, "RU": {"value" : "RUB"}, "BF": {"value" : "XOF"}, "BG": {"value" : "BGN"}, "RW": {"value" : "RWF"}, "27": {"value" : ""}, "BH": {"value" : "BHD"}, "BI": {"value" : "BIF"}, "BJ": {"value" - : "XOF"}, "BM": {"value" : "BMD"}, "BN": {"value" : "BND"}, "BO": {"value" : "BOB"}, "SA": {"value" : "SAR"}, "SB": {"value" : "SBD"}, "BR": {"value" : "BRL"}, "SC": {"value" : "SCR"}, "SD": {"value" : "SDD"}, "BT": {"value" : "BTN"}, "SE": {"value" : "SEK"}, "SG": {"value" : "SGD"}, "BV": {"value" : ""}, "BW": {"value" : "BWP"}, "SH": {"value" : "SHP"}, "SI": {"value" : "EUR"}, "BY": {"value" : "BYR"}, "SJ": {"value" : "NOK"}, "BZ": {"value" : "BZD"}, "SK": {"value" : "SKK"}, "SL": {"value" : "SLL"}, "SM": - {"value" : "EUR"}, "SN": {"value" : "XOF"}, "SO": {"value" : ""}, "CA": {"value" : "CAD"}, "SR": {"value" : "SRD"}, "CC": {"value" : "AUD"}, "ST": {"value" : "STD"}, "CF": {"value" : "XAF"}, "SV": {"value" : "USD"}, "CH": {"value" : "CHF"}, "CI": {"value" : "XOF"}, "SY": {"value" : "SYP"}, "SZ": {"value" : "SZL"}, "CK": {"value" : "NZD"}, "CL": {"value" : "CLP"}, "CM": {"value" : "XAF"}, "CO": {"value" : "COP"}, "TA": {"value" : "SHP"}, "CR": {"value" : "CRC"}, "TC": {"value" : "USD"}, "TD": {"value" : "XAF"} - , "CU": {"value" : "CUP"}, "TF": {"value" : ""}, "CV": {"value" : "CVE"}, "TG": {"value" : "XOF"}, "TH": {"value" : "THB"}, "CX": {"value" : "AUD"}, "CY": {"value" : "TRY"}, "TJ": {"value" : "TJS"}, "CZ": {"value" : "CZK"}, "TK": {"value" : "NZD"}, "TL": {"value" : "USD"}, "TM": {"value" : "TMM"}, "TN": {"value" : "TND"}, "TO": {"value" : "TOP"}, "TR": {"value" : "TRY"}, "TT": {"value" : "TTD"}, "DE": {"value" : "EUR"}, "TV": {"value" : "AUD"}, "DJ": {"value" : "DJF"}, "TZ": {"value" : "TZS"}, "DK": {"value" - : "DKK"}, "DM": {"value" : "XCD"}, "DO": {"value" : "DOP"}, "UA": {"value" : "UAH"}, "UG": {"value" : "UGX"}, "DZ": {"value" : "DZD"}, "UM": {"value" : ""}, "EC": {"value" : "USD"}, "US": {"value" : "USD"}, "EE": {"value" : "EEK"}, "EG": {"value" : "EGP"}, "UY": {"value" : "UYU"}, "UZ": {"value" : "UZS"}, "VA": {"value" : "EUR"}, "ER": {"value" : "ERN"}, "VC": {"value" : "XCD"}, "ES": {"value" : "EUR"}, "ET": {"value" : "ETB"}, "VE": {"value" : "VEB"}, "VG": {"value" : "USD"}, "VI": {"value" : "USD"}, "VN": - {"value" : "VND"}, "VU": {"value" : "VUV"}, "FI": {"value" : "EUR"}, "FJ": {"value" : "FJD"}, "FK": {"value" : "FKP"}, "FM": {"value" : "USD"}, "FO": {"value" : "DKK"}, "FR": {"value" : "EUR"}, "WF": {"value" : "XPF"}, "850": {"value" : "Pyongyang"}, "GA": {"value" : "XAF"}, "GB": {"value" : "GBP"}, "WS": {"value" : "WST"}, "GD": {"value" : "XCD"}, "GE": {"value" : "RUB and GEL"}, "GF": {"value" : "EUR"}, "GG": {"value" : "GGP"}, "GH": {"value" : "GHC"}, "GI": {"value" : "GIP"}, "GL": {"value" : "DKK"}, - "GN": {"value" : "GNF"}, "GP": {"value" : "EUR"}, "GQ": {"value" : "XAF"}, "GR": {"value" : "EUR"}, "GS": {"value" : ""}, "GT": {"value" : "GTQ"}, "GU": {"value" : "USD"}, "GW": {"value" : "XOF"}, "GY": {"value" : "GYD"}, "-241": {"value" : "Nassau"}, "82": {"value" : "Seoul"}, "86": {"value" : "Beijing"}, "HK": {"value" : "HKD"}, "HM": {"value" : ""}, "HN": {"value" : "HNL"}, "HR": {"value" : "HRK"}, "HT": {"value" : "HTG"}, "YE": {"value" : "YER"}, "HU": {"value" : "HUF"}, "ID": {"value" : "IDR"}, "YT": - {"value" : "EUR"}, "IE": {"value" : "EUR"}, "IL": {"value" : "ILS"}, "IM": {"value" : "IMP"}, "IN": {"value" : "INR"}, "IO": {"value" : ""}, "IQ": {"value" : "IQD"}, "IR": {"value" : "IRR"}, "IS": {"value" : "ISK"}, "IT": {"value" : "EUR"}, "ZM": {"value" : "ZMK"}, "886": {"value" : "Taipei"}, "JE": {"value" : "JEP"}, "ZW": {"value" : "ZWD"}, "JM": {"value" : "JMD"}, "JO": {"value" : "JOD"}, "JP": {"value" : "JPY"}, "KE": {"value" : "KES"}, "KG": {"value" : "KGS"}, "KH": {"value" : "KHR"}, "KI": {"value" - : "AUD"}, "KM": {"value" : "KMF"}, "KN": {"value" : "XCD"}, "KW": {"value" : "KWD"}, "KY": {"value" : "KYD"}, "KZ": {"value" : "KZT"}, "LA": {"value" : "LAK"}, "LB": {"value" : "LBP"}, "LC": {"value" : "XCD"}, "LI": {"value" : "CHF"}, "LK": {"value" : "LKR"}, "LR": {"value" : "LRD"}, "LS": {"value" : "LSL"}, "LT": {"value" : "LTL"}, "LU": {"value" : "EUR"}, "LV": {"value" : "LVL"}, "LY": {"value" : "LYD"}, "MA": {"value" : "MAD"}, "MC": {"value" : "EUR"}, "MD": {"value" : ""}, "ME": {"value" : "EUR"}, "MG": - {"value" : "MGA"}, "MH": {"value" : "USD"}, "MK": {"value" : "MKD"}, "ML": {"value" : "XOF"}, "MM": {"value" : "MMK"}, "MN": {"value" : "MNT"}, "MO": {"value" : "MOP"}, "MP": {"value" : "USD"}, "MQ": {"value" : "EUR"}, "MR": {"value" : "MRO"}, "MS": {"value" : "XCD"}, "MT": {"value" : "MTL"}, "MU": {"value" : "MUR"}, "MV": {"value" : "MVR"}, "MW": {"value" : "MWK"}, "MX": {"value" : "MXN"}, "MY": {"value" : "MYR"}, "MZ": {"value" : "MZM"}, "NA": {"value" : "NAD"}, "NC": {"value" : "XPF"}, "NE": {"value" - : "XOF"}, "NF": {"value" : "AUD"}, "NG": {"value" : "NGN"}, "NI": {"value" : "NIO"}, "NL": {"value" : "EUR"}, "NO": {"value" : "NOK"}, "NP": {"value" : "NPR"}, "NR": {"value" : "AUD"}, "NU": {"value" : "NZD"}, "NZ": {"value" : "NZD"}, "OM": {"value" : "OMR"}, "220": {"value" : "Banjul"}, "PA": {"value" : "PAB"}, "PE": {"value" : "PEN"}, "PF": {"value" : ""}, "PG": {"value" : "PGK"}, "PH": {"value" : "PHP"}, "PK": {"value" : "PKR"}, "PL": {"value" : "PLN"}, "PM": {"value" : "EUR"}, "PN": {"value" : "NZD"} - }; -} -function ju_Dictionary() { - jl_Object.call(this); -} -function ju_Hashtable() { - var a = this; ju_Dictionary.call(a); - a.$elementCount0 = 0; - a.$elementData0 = null; - a.$loadFactor0 = 0.0; - a.$threshold1 = 0; - a.$firstSlot = 0; - a.$lastSlot = 0; - a.$modCount2 = 0; -} -var ju_Hashtable_EMPTY_ENUMERATION = null; -var ju_Hashtable_EMPTY_ITERATOR = null; -function ju_Hashtable__init_1() { - var var_0 = new ju_Hashtable(); - ju_Hashtable__init_(var_0); - return var_0; -} -function ju_Hashtable__init_2(var_0) { - var var_1 = new ju_Hashtable(); - ju_Hashtable__init_0(var_1, var_0); - return var_1; -} -function ju_Hashtable__init_($this) { - ju_Hashtable__init_0($this, 11); -} -function ju_Hashtable__init_0($this, $capacity) { - var var$2; - $this.$lastSlot = (-1); - if ($capacity < 0) { - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - $this.$elementCount0 = 0; - if (!$capacity) - $capacity = 1; - $this.$elementData0 = $rt_createArray(ju_Hashtable$Entry, $capacity); - $this.$firstSlot = $this.$elementData0.data.length; - $this.$loadFactor0 = 0.75; - $this.$threshold1 = $this.$elementData0.data.length * $this.$loadFactor0 | 0; -} -function ju_Hashtable_get($this, $key) { - var $index, $entry; - jl_Object_monitorEnterSync($this); - try { - $index = (jl_String_hashCode($key) & 2147483647) % $this.$elementData0.data.length | 0; - $entry = $this.$elementData0.data[$index]; - while ($entry !== null) { - if ($entry.$hashcode0 == jl_String_hashCode($key) && $entry.$key.$equals($key) ? 1 : 0) - return $entry.$value0; - $entry = $entry.$next3; - } - return null; - } finally { - jl_Object_monitorExitSync($this); - } -} -function ju_Hashtable_put($this, $key, $value) { - var var$3, $index, $entry, $result, $hash; - jl_Object_monitorEnterSync($this); - try { - if ($key !== null && $value !== null) { - var$3 = jl_String_hashCode($key) & 2147483647; - $index = var$3 % $this.$elementData0.data.length | 0; - $entry = $this.$elementData0.data[$index]; - while ($entry !== null && !($entry.$hashcode0 == jl_String_hashCode($key) && $entry.$key.$equals($key) ? 1 : 0)) { - $entry = $entry.$next3; - } - if ($entry !== null) { - $result = $entry.$value0; - $entry.$value0 = $value; - return $result; - } - $this.$modCount2 = $this.$modCount2 + 1 | 0; - $hash = $this.$elementCount0 + 1 | 0; - $this.$elementCount0 = $hash; - if ($hash > $this.$threshold1) { - ju_Hashtable_rehash($this); - $index = var$3 % $this.$elementData0.data.length | 0; - } - if ($index < $this.$firstSlot) - $this.$firstSlot = $index; - if ($index > $this.$lastSlot) - $this.$lastSlot = $index; - $result = new ju_Hashtable$Entry; - $result.$key = $key; - $result.$value0 = $value; - $result.$hashcode0 = jl_String_hashCode($key); - $result.$next3 = $this.$elementData0.data[$index]; - $this.$elementData0.data[$index] = $result; - return null; - } - $key = new jl_NullPointerException; - $key.$suppressionEnabled = 1; - $key.$writableStackTrace = 1; - $rt_throw($key); - } finally { - jl_Object_monitorExitSync($this); - } -} -function ju_Hashtable_rehash($this) { - var $length, $newLast, $newData, var$4, $i, var$6, $entry, $index, $entry_0; - $length = ($this.$elementData0.data.length << 1) + 1 | 0; - if (!$length) - $length = 1; - $newLast = (-1); - $newData = $rt_createArray(ju_Hashtable$Entry, $length); - var$4 = $newData.data; - $i = $this.$lastSlot + 1 | 0; - var$6 = $length; - while (true) { - $i = $i + (-1) | 0; - if ($i < $this.$firstSlot) - break; - $entry = $this.$elementData0.data[$i]; - while ($entry !== null) { - $index = ($entry.$key.$hashCode0() & 2147483647) % $length | 0; - if ($index < var$6) - var$6 = $index; - if ($index > $newLast) - $newLast = $index; - $entry_0 = $entry.$next3; - $entry.$next3 = var$4[$index]; - var$4[$index] = $entry; - $entry = $entry_0; - } - } - $this.$firstSlot = var$6; - $this.$lastSlot = $newLast; - $this.$elementData0 = $newData; - $this.$threshold1 = $this.$elementData0.data.length * $this.$loadFactor0 | 0; -} -function ju_Hashtable__clinit_() { - ju_Hashtable_EMPTY_ENUMERATION = new ju_Hashtable$1; - ju_Hashtable_EMPTY_ITERATOR = new ju_Hashtable$2; -} -function ju_Properties() { - ju_Hashtable.call(this); - this.$defaults = null; -} -function ju_Properties__init_0() { - var var_0 = new ju_Properties(); - ju_Properties__init_(var_0); - return var_0; -} -function ju_Properties__init_($this) { - ju_Hashtable__init_0($this, 11); -} -function ju_Properties_getProperty($this, $name) { - var $result, $property; - $result = ju_Hashtable_get($this, $name); - $property = !($result instanceof jl_String) ? null : $result; - if ($property === null && $this.$defaults !== null) - $property = ju_Properties_getProperty($this.$defaults, $name); - return $property; -} -function ju_Properties_getProperty0($this, $name, $defaultValue) { - var $result, $property; - $result = ju_Hashtable_get($this, $name); - $property = !($result instanceof jl_String) ? null : $result; - if ($property === null && $this.$defaults !== null) - $property = ju_Properties_getProperty($this.$defaults, $name); - if ($property !== null) - return $property; - return $defaultValue; -} -function ju_Properties_setProperty($this, $name, $value) { - return ju_Hashtable_put($this, $name, $value); -} -function ju_Enumeration() { -} -function ju_Hashtable$1() { - jl_Object.call(this); -} -function ju_Hashtable$1__init_0() { - var var_0 = new ju_Hashtable$1(); - ju_Hashtable$1__init_(var_0); - return var_0; -} -function ju_Hashtable$1__init_($this) { - return; -} -function ju_Iterator() { -} -function ju_Hashtable$2() { - jl_Object.call(this); -} -function ju_Hashtable$2__init_0() { - var var_0 = new ju_Hashtable$2(); - ju_Hashtable$2__init_(var_0); - return var_0; -} -function ju_Hashtable$2__init_($this) { - return; -} -function ju_Hashtable$Entry() { - var a = this; ju_MapEntry.call(a); - a.$next3 = null; - a.$hashcode0 = 0; -} -function ju_Hashtable$Entry_getKeyHash($this) { - return $this.$key.$hashCode0(); -} -function ju_Hashtable$Entry_equalsKey($this, $aKey, $hash) { - return $this.$hashcode0 == jl_String_hashCode($aKey) && $this.$key.$equals($aKey) ? 1 : 0; -} -function jn_IntBufferOverByteBuffer() { - var a = this; jn_IntBufferImpl.call(a); - a.$byteByffer = null; - a.$readOnly3 = 0; - a.$start3 = 0; -} -function jn_IntBufferOverByteBuffer_readOnly($this) { - return $this.$readOnly3; -} -function jn_IntBufferOverByteBufferLittleEndian() { - jn_IntBufferOverByteBuffer.call(this); -} -function jn_IntBufferOverByteBufferLittleEndian_getElement($this, $index) { - var var$2, var$3; - var$2 = $this.$byteByffer.$array.data; - var$3 = $this.$start3; - $index = $index * 4 | 0; - return var$2[var$3 + $index | 0] & 255 | ($this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 1 | 0] & 255) << 8 | ($this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 2 | 0] & 255) << 16 | ($this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 3 | 0] & 255) << 24; -} -function jn_IntBufferOverByteBufferLittleEndian_putElement($this, $index, $value) { - var var$3, var$4; - var$3 = $this.$byteByffer.$array.data; - var$4 = $this.$start3; - $index = $index * 4 | 0; - var$3[var$4 + $index | 0] = $value << 24 >> 24; - $this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 1 | 0] = $value >> 8 << 24 >> 24; - $this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 2 | 0] = $value >> 16 << 24 >> 24; - $this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 3 | 0] = $value >> 24 << 24 >> 24; -} -function jn_IntBufferOverByteBufferBigEndian() { - jn_IntBufferOverByteBuffer.call(this); -} -function jn_IntBufferOverByteBufferBigEndian_getElement($this, $index) { - var var$2, var$3; - var$2 = $this.$byteByffer.$array.data; - var$3 = $this.$start3; - $index = $index * 4 | 0; - return (var$2[var$3 + $index | 0] & 255) << 24 | ($this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 1 | 0] & 255) << 16 | ($this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 2 | 0] & 255) << 8 | $this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 3 | 0] & 255; -} -function jn_IntBufferOverByteBufferBigEndian_putElement($this, $index, $value) { - var var$3, var$4; - var$3 = $this.$byteByffer.$array.data; - var$4 = $this.$start3; - $index = $index * 4 | 0; - var$3[var$4 + $index | 0] = $value >> 24 << 24 >> 24; - $this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 1 | 0] = $value >> 16 << 24 >> 24; - $this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 2 | 0] = $value >> 8 << 24 >> 24; - $this.$byteByffer.$array.data[($this.$start3 + $index | 0) + 3 | 0] = $value << 24 >> 24; -} -function cbpc_IEND() { - cbpc_Chunk.call(this); -} -function cbpc_PLTE() { - cbpc_Chunk.call(this); - this.$color = null; -} -function cbpc_PLTE_build($this) { - var var$1, $size, $i, var$4, var$5, var$6; - if (Long_ne(Long_rem($this.$length1, Long_fromInt(3)), Long_ZERO)) { - var$1 = new cbpd_DecodeException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - var$1.$message = $rt_s(789); - $rt_throw(var$1); - } - $size = $this.$length1.lo / 3 | 0; - $this.$color = $rt_createIntArray($size); - $i = 0; - while ($i < $size) { - var$4 = $this.$color.data; - var$5 = $this.$data6.data; - var$6 = $i * 3 | 0; - var$4[$i] = (var$5[var$6] & 255) << 16 | ($this.$data6.data[var$6 + 1 | 0] & 255) << 8 | $this.$data6.data[var$6 + 2 | 0] & 255; - $i = $i + 1 | 0; - } -} -function cbpc_PLTE_getColor($this, $i) { - return $this.$color.data[$i]; -} -function cbpc_IDAT() { - cbpc_Chunk.call(this); -} -function jl_Double() { - jl_Number.call(this); - this.$value6 = 0.0; -} -var jl_Double_NaN = 0.0; -var jl_Double_TYPE = null; -function jl_Double_intValue($this) { - return $this.$value6 | 0; -} -function jl_Double_parseDouble($string) { - var $start, $end, $negative, $c, $mantissa, $exp, $hasOneDigit, var$9, $negativeExp, $numExp; - if ($string.$characters.data.length ? 0 : 1) { - $string = new jl_NumberFormatException; - $string.$suppressionEnabled = 1; - $string.$writableStackTrace = 1; - $rt_throw($string); - } - $start = 0; - $end = $string.$characters.data.length; - while (true) { - if (jl_String_charAt($string, $start) > 32) { - while (jl_String_charAt($string, $end - 1 | 0) <= 32) { - $end = $end + (-1) | 0; - } - $negative = 0; - if (jl_String_charAt($string, $start) == 45) { - $start = $start + 1 | 0; - $negative = 1; - } else if (jl_String_charAt($string, $start) == 43) - $start = $start + 1 | 0; - if ($start == $end) - $rt_throw(jl_NumberFormatException__init_0()); - a: { - $c = jl_String_charAt($string, $start); - $mantissa = Long_ZERO; - $exp = 0; - $hasOneDigit = 0; - if ($c != 46) { - $hasOneDigit = 1; - if ($c >= 48 && $c <= 57) { - b: { - while ($start < $end) { - if (jl_String_charAt($string, $start) != 48) - break b; - $start = $start + 1 | 0; - } - } - while ($start < $end) { - var$9 = jl_String_charAt($string, $start); - if (var$9 < 48) - break a; - if (var$9 > 57) - break a; - if (Long_toNumber($mantissa) >= 1.0E17) - $exp = $exp + 1 | 0; - else - $mantissa = Long_add(Long_mul($mantissa, Long_fromInt(10)), Long_fromInt(var$9 - 48 | 0)); - $start = $start + 1 | 0; - } - } else - $rt_throw(jl_NumberFormatException__init_0()); - } - } - if ($start < $end && jl_String_charAt($string, $start) == 46) { - $start = $start + 1 | 0; - c: { - while (true) { - if ($start >= $end) - break c; - $c = jl_String_charAt($string, $start); - if ($c < 48) - break c; - if ($c > 57) - break; - if (Long_toNumber($mantissa) < 1.0E17) { - $mantissa = Long_add(Long_mul($mantissa, Long_fromInt(10)), Long_fromInt($c - 48 | 0)); - $exp = $exp + (-1) | 0; - } - $start = $start + 1 | 0; - $hasOneDigit = 1; - } - } - if (!$hasOneDigit) - $rt_throw(jl_NumberFormatException__init_0()); - } - if ($start < $end) { - $c = jl_String_charAt($string, $start); - if ($c != 101 && $c != 69) - $rt_throw(jl_NumberFormatException__init_0()); - $c = $start + 1 | 0; - $negativeExp = 0; - if ($c == $end) - $rt_throw(jl_NumberFormatException__init_0()); - if (jl_String_charAt($string, $c) == 45) { - $c = $c + 1 | 0; - $negativeExp = 1; - } else if (jl_String_charAt($string, $c) == 43) - $c = $c + 1 | 0; - $numExp = 0; - $start = 0; - d: { - while (true) { - if ($c >= $end) - break d; - $hasOneDigit = jl_String_charAt($string, $c); - if ($hasOneDigit < 48) - break d; - if ($hasOneDigit > 57) - break; - $numExp = (10 * $numExp | 0) + ($hasOneDigit - 48 | 0) | 0; - $start = 1; - $c = $c + 1 | 0; - } - } - if (!$start) - $rt_throw(jl_NumberFormatException__init_0()); - if ($negativeExp) - $numExp = -$numExp; - $exp = $exp + $numExp | 0; - } - e: { - var$9 = $rt_compare($exp, 308); - if (var$9 <= 0) { - if (var$9) - break e; - if (Long_le($mantissa, new Long(2133831477, 4185580))) - break e; - } - return $negative ? (-Infinity) : Infinity; - } - if ($negative) - $mantissa = Long_neg($mantissa); - return Long_toNumber($mantissa) * jl_Double_decimalExponent($exp); - } - $start = $start + 1 | 0; - if ($start == $end) - break; - } - $string = new jl_NumberFormatException; - $string.$suppressionEnabled = 1; - $string.$writableStackTrace = 1; - $rt_throw($string); -} -function jl_Double_decimalExponent($n) { - var $d, $result; - if ($n >= 0) - $d = 10.0; - else { - $d = 0.1; - $n = -$n; - } - $result = 1.0; - while ($n) { - if ($n % 2 | 0) - $result = $result * $d; - $d = $d * $d; - $n = $n / 2 | 0; - } - return $result; -} -function jl_Double_toString($this) { - var var$1, var$2; - var$1 = $this.$value6; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert3(var$2, var$2.$length, var$1); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -} -function jl_Double_hashCode($this) { - var var$1; - var$1 = $rt_doubleToLongBits($this.$value6); - return var$1.hi ^ var$1.lo; -} -function jl_Double__clinit_() { - jl_Double_NaN = NaN; - jl_Double_TYPE = $rt_cls($rt_doublecls()); -} -function nms_OpenGlHelper() { - jl_Object.call(this); -} -var nms_OpenGlHelper_defaultTexUnit = 0; -var nms_OpenGlHelper_lightmapTexUnit = 0; -function nms_OpenGlHelper__init_0() { - var var_0 = new nms_OpenGlHelper(); - nms_OpenGlHelper__init_(var_0); - return var_0; -} -function nms_OpenGlHelper__init_($this) { - return; -} -function nms_OpenGlHelper_setActiveTexture($par0) { - nleg_EaglerAdapterGL30_glActiveTexture($par0); -} -function nms_OpenGlHelper_setLightmapTextureCoords($par0, $par1, $par2) { - var var$4, var$5, var$6, var$7; - a: { - nleg_EaglerAdapterGL30_$callClinit(); - switch ($par0) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = $par1; - nleg_EaglerAdapterGL30_tex1Y = $par2; - break a; - default: - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - var$4.$sb = var$5; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - var$5 = new jnci_UTF8Charset; - jnc_Charset__init_(var$5, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = var$5; - jl_System_errCache = var$4; - } - var$6 = jl_System_errCache; - var$4 = var$6.$sb; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(238)); - var$7 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$7, var$7 + 1 | 0); - var$4.$buffer.data[var$7] = 10; - ji_PrintStream_printSB(var$6); - break a; - } - nleg_EaglerAdapterGL30_tex0X = $par1; - nleg_EaglerAdapterGL30_tex0Y = $par2; - } -} -function nms_TextureManager() { - var a = this; jl_Object.call(a); - a.$nextTextureID = 0; - a.$texturesMap = null; - a.$mapNameToId = null; -} -var nms_TextureManager_instance = null; -function nms_TextureManager__init_0() { - var var_0 = new nms_TextureManager(); - nms_TextureManager__init_(var_0); - return var_0; -} -function nms_TextureManager__init_($this) { - $this.$nextTextureID = 0; - $this.$texturesMap = ju_HashMap__init_1(16, 0.75); - $this.$mapNameToId = ju_HashMap__init_1(16, 0.75); -} -function nms_TextureManager_instance0() { - return nms_TextureManager_instance; -} -function nms_TextureManager_getNextTextureId($this) { - var var$1; - var$1 = $this.$nextTextureID; - $this.$nextTextureID = var$1 + 1 | 0; - return var$1; -} -function nms_TextureManager_registerTexture($this, $par1Str, $par2Texture) { - var var$3, var$4; - ju_HashMap_putImpl($this.$mapNameToId, $par1Str, jl_Integer_valueOf($par2Texture.$textureId)); - $par1Str = $this.$texturesMap; - var$3 = jl_Integer_valueOf($par2Texture.$textureId); - if (var$3 !== null) { - var$4 = jl_Integer_hashCode(var$3); - $par1Str = ju_HashMap_findNonNullKeyEntry($par1Str, var$3, var$4 & ($par1Str.$elementData.data.length - 1 | 0), var$4); - } else { - $par1Str = $par1Str.$elementData.data[0]; - while ($par1Str !== null && $par1Str.$key !== null) { - $par1Str = $par1Str.$next1; - } - } - if (!($par1Str === null ? 0 : 1)) - ju_HashMap_putImpl($this.$texturesMap, jl_Integer_valueOf($par2Texture.$textureId), $par2Texture); -} -function nms_TextureManager_registerTexture0($this, $par1Texture) { - var var$2, var$3, var$4; - if (!ju_HashMap_containsValue($this.$texturesMap, $par1Texture)) - ju_HashMap_putImpl($this.$texturesMap, jl_Integer_valueOf($par1Texture.$textureId), $par1Texture); - else { - if (jl_System_outCache === null) { - var$2 = new ji_PrintStream; - var$2.$out = new jl_ConsoleOutputStreamStdout; - $par1Texture = new jl_StringBuilder; - $par1Texture.$buffer = $rt_createCharArray(16); - var$2.$sb = $par1Texture; - var$2.$buffer0 = $rt_createCharArray(32); - var$2.$autoFlush = 0; - $par1Texture = new jnci_UTF8Charset; - jnc_Charset__init_($par1Texture, $rt_s(2), $rt_createArray(jl_String, 0)); - var$2.$charset = $par1Texture; - jl_System_outCache = var$2; - } - var$3 = jl_System_outCache; - var$2 = var$3.$sb; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(790)); - 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 nms_TextureManager_createStitcher($this, $par1Str) { - return nms_Stitcher__init_($par1Str, 8192, 8192, 1, 0); -} -function nms_TextureManager_createTexture($this, $par1Str) { - var $var2, $var3, var$4, $b, $var9, $var10, $var11, $var15, var$10, $var17, $var16; - $var2 = new ju_ArrayList; - $var2.$array1 = $rt_createArray(jl_Object, 10); - $var3 = nmc_Minecraft_theMinecraft.$texturePackList.$selectedTexturePack; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(58)); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $par1Str); - $b = nms_TexturePackDefault_getResourceAsBytes($var3, jl_String__init_0(var$4.$buffer, 0, var$4.$length)); - if ($b !== null) { - $var9 = nle_EaglerImage_loadImage($b); - $var10 = $var9.$w0; - $var11 = $var9.$h; - $var15 = jl_String_lastIndexOf($par1Str, 47, $par1Str.$characters.data.length - 1 | 0) + 1 | 0; - var$10 = $par1Str.$characters.data.length; - if ($var15 > var$10) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $var17 = jl_String__init_0($par1Str.$characters, $var15, var$10 - $var15 | 0); - var$10 = jl_String_lastIndexOf($var17, 46, $var17.$characters.data.length - 1 | 0); - if (0 > var$10) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - var$4 = jl_String__init_0($var17.$characters, 0, var$10 - 0 | 0); - if (nms_TextureManager_hasAnimationTxt($this, $par1Str, $var3)) { - $var15 = $var11 / $var10 | 0; - $var16 = 0; - while ($var16 < $var15) { - ju_ArrayList_add($var2, nms_TextureManager_makeTexture($this, var$4, 2, $var10, $var10, 71, 18, 70, 70, 0, nle_EaglerImage_getSubImage($var9, 0, $rt_imul($var10, $var16), $var10, $var10))); - $var16 = $var16 + 1 | 0; - } - } else if ($var10 == $var11) - ju_ArrayList_add($var2, nms_TextureManager_makeTexture($this, var$4, 2, $var10, $var10, 71, 18, 70, 70, 0, $var9)); - else { - if (jl_System_outCache === null) { - $var3 = new ji_PrintStream; - $var3.$out = new jl_ConsoleOutputStreamStdout; - $var9 = new jl_StringBuilder; - $var9.$buffer = $rt_createCharArray(16); - $var3.$sb = $var9; - $var3.$buffer0 = $rt_createCharArray(32); - $var3.$autoFlush = 0; - $var9 = new jnci_UTF8Charset; - jnc_Charset__init_($var9, $rt_s(2), $rt_createArray(jl_String, 0)); - $var3.$charset = $var9; - jl_System_outCache = $var3; - } - $var9 = jl_System_outCache; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(791)); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $par1Str); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(792)); - $var3 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - $par1Str = $var9.$sb; - jl_AbstractStringBuilder_insert($par1Str, $par1Str.$length, $var3); - $var11 = $par1Str.$length; - jl_AbstractStringBuilder_insertSpace($par1Str, $var11, $var11 + 1 | 0); - $par1Str.$buffer.data[$var11] = 10; - ji_PrintStream_printSB($var9); - } - } - return $var2; -} -function nms_TextureManager_hasAnimationTxt($this, $par1Str, $par2ITexturePack) { - var var$3, var$4, var$5, var$6, $var4; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(58)); - var$4 = jl_String_lastIndexOf($par1Str, 46, $par1Str.$characters.data.length - 1 | 0); - if (0 > var$4) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - var$5 = jl_String__init_0($par1Str.$characters, 0, var$4 - 0 | 0); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$5); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(793)); - var$6 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(58)); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $par1Str); - $var4 = nms_TexturePackImplementation_func_98138_b($par2ITexturePack, jl_String__init_0(var$3.$buffer, 0, var$3.$length), 0); - return nms_TexturePackImplementation_func_98138_b(nmc_Minecraft_theMinecraft.$texturePackList.$selectedTexturePack, var$6, $var4 ? 0 : 1); -} -function nms_TextureManager_makeTexture($this, $par1Str, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9, $par10BufferedImage) { - var $var11, var$12; - $var11 = nms_Texture__init_($par1Str, $par2, $par3, $par4, 1, $par5, $par6, $par7, $par8, $par10BufferedImage); - if (!ju_HashMap_containsValue($this.$texturesMap, $var11)) - ju_HashMap_putImpl($this.$texturesMap, jl_Integer_valueOf($var11.$textureId), $var11); - else { - if (jl_System_outCache === null) { - var$12 = new ji_PrintStream; - var$12.$out = new jl_ConsoleOutputStreamStdout; - $par1Str = new jl_StringBuilder; - $par1Str.$buffer = $rt_createCharArray(16); - var$12.$sb = $par1Str; - var$12.$buffer0 = $rt_createCharArray(32); - var$12.$autoFlush = 0; - $par1Str = new jnci_UTF8Charset; - jnc_Charset__init_($par1Str, $rt_s(2), $rt_createArray(jl_String, 0)); - var$12.$charset = $par1Str; - jl_System_outCache = var$12; - } - $par10BufferedImage = jl_System_outCache; - $par1Str = $par10BufferedImage.$sb; - jl_AbstractStringBuilder_insert($par1Str, $par1Str.$length, $rt_s(790)); - $par4 = $par1Str.$length; - jl_AbstractStringBuilder_insertSpace($par1Str, $par4, $par4 + 1 | 0); - $par1Str.$buffer.data[$par4] = 10; - ji_PrintStream_printSB($par10BufferedImage); - } - return $var11; -} -function nms_TextureManager_createEmptyTexture($this, $par1Str, $par2, $par3, $par4, $par5) { - var var$6, var$7, var$8; - var$6 = nms_Texture__init_($par1Str, $par2, $par3, $par4, 1, 71, $par5, 70, 70, null); - if (!ju_HashMap_containsValue($this.$texturesMap, var$6)) - ju_HashMap_putImpl($this.$texturesMap, jl_Integer_valueOf(var$6.$textureId), var$6); - else { - if (jl_System_outCache === null) { - var$7 = new ji_PrintStream; - var$7.$out = new jl_ConsoleOutputStreamStdout; - $par1Str = new jl_StringBuilder; - $par1Str.$buffer = $rt_createCharArray(16); - var$7.$sb = $par1Str; - var$7.$buffer0 = $rt_createCharArray(32); - var$7.$autoFlush = 0; - $par1Str = new jnci_UTF8Charset; - jnc_Charset__init_($par1Str, $rt_s(2), $rt_createArray(jl_String, 0)); - var$7.$charset = $par1Str; - jl_System_outCache = var$7; - } - var$8 = jl_System_outCache; - $par1Str = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Str, $par1Str.$length, $rt_s(790)); - $par4 = $par1Str.$length; - jl_AbstractStringBuilder_insertSpace($par1Str, $par4, $par4 + 1 | 0); - $par1Str.$buffer.data[$par4] = 10; - ji_PrintStream_printSB(var$8); - } - return var$6; -} -function nms_TexturePackList() { - var a = this; jl_Object.call(a); - a.$mc0 = null; - a.$availableTexturePacks = null; - a.$texturePackCache = null; - a.$selectedTexturePack = null; - a.$isDownloading = 0; -} -var nms_TexturePackList_defaultTexturePack = null; -function nms_TexturePackList_$callClinit() { - nms_TexturePackList_$callClinit = $rt_eraseClinit(nms_TexturePackList); - nms_TexturePackList__clinit_(); -} -function nms_TexturePackList_getIsDownloading($this) { - return $this.$isDownloading; -} -function nms_TexturePackList_onDownloadFinished($this) { - var var$1; - $this.$isDownloading = 0; - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$selectedTexturePack = nms_TexturePackList_defaultTexturePack; - ju_ArrayList_add(var$1, nms_TexturePackList_defaultTexturePack); - $this.$availableTexturePacks = var$1; - $this.$mc0.$refreshTexturePacksScheduled = 1; -} -function nms_TexturePackList_updateAvaliableTexturePacks($this) { - var $var1; - $var1 = new ju_ArrayList; - $var1.$array1 = $rt_createArray(jl_Object, 10); - $this.$selectedTexturePack = nms_TexturePackList_defaultTexturePack; - ju_ArrayList_add($var1, nms_TexturePackList_defaultTexturePack); - $this.$availableTexturePacks = $var1; -} -function nms_TexturePackList_getSelectedTexturePack($this) { - return $this.$selectedTexturePack; -} -function nms_TexturePackList__clinit_() { - nms_TexturePackList_defaultTexturePack = nms_TexturePackDefault__init_0(); -} -function nms_ChatAllowedCharacters() { - jl_Object.call(this); -} -var nms_ChatAllowedCharacters_allowedCharacters = null; -var nms_ChatAllowedCharacters_allowedCharactersArray = null; -function nms_ChatAllowedCharacters__init_0() { - var var_0 = new nms_ChatAllowedCharacters(); - nms_ChatAllowedCharacters__init_(var_0); - return var_0; -} -function nms_ChatAllowedCharacters__init_($this) { - return; -} -function nms_ChatAllowedCharacters_getAllowedCharacters() { - var $var0, var$2, $var1, var$4, $$je; - $var0 = $rt_s(44); - a: { - try { - var$2 = $var0; - $var1 = ji_BufferedReader__init_(ji_InputStreamReader__init_(nlea_EaglerAdapterImpl2_loadResource($rt_s(794)), $rt_s(2))); - while (true) { - var$2 = $var0; - var$4 = ji_BufferedReader_readLine($var1); - if (var$4 === null) - break; - var$2 = $var0; - if (jl_String_startsWith0(var$4, $rt_s(795))) - continue; - var$2 = $var0; - $var0 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var0), var$4)); - var$2 = $var0; - } - var$2 = $var0; - ji_BufferedReader_close($var1); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - } else { - throw $$e; - } - } - $var0 = var$2; - } - nms_ChatAllowedCharacters_allowedCharacters = $var0; -} -function nms_ChatAllowedCharacters_isAllowedCharacter($par0) { - a: { - b: { - if ($par0 != 167) { - if (jl_String_indexOf(nms_ChatAllowedCharacters_allowedCharacters, $par0, 0) >= 0) - break b; - if ($par0 > 32) - break b; - } - $par0 = 0; - break a; - } - $par0 = 1; - } - return $par0; -} -function nms_ChatAllowedCharacters_filerAllowedCharacters($par0Str) { - var $var1, $var2, $var3, $var4, $var5, var$7; - $var1 = new jl_StringBuilder; - $var1.$buffer = $rt_createCharArray(16); - $var2 = jl_String_toCharArray($par0Str).data; - $var3 = $var2.length; - $var4 = 0; - while ($var4 < $var3) { - $var5 = $var2[$var4]; - if (nms_ChatAllowedCharacters_isAllowedCharacter($var5)) { - var$7 = $var1.$length; - jl_AbstractStringBuilder_insertSpace($var1, var$7, var$7 + 1 | 0); - $var1.$buffer.data[var$7] = $var5; - } - $var4 = $var4 + 1 | 0; - } - return jl_String__init_0($var1.$buffer, 0, $var1.$length); -} -function nms_ChatAllowedCharacters__clinit_() { - var var$1, var$2; - nms_ChatAllowedCharacters_allowedCharacters = null; - var$1 = $rt_createCharArray(15); - var$2 = var$1.data; - var$2[0] = 47; - var$2[1] = 10; - var$2[2] = 13; - var$2[3] = 9; - var$2[4] = 0; - var$2[5] = 12; - var$2[6] = 96; - var$2[7] = 63; - var$2[8] = 42; - var$2[9] = 92; - var$2[10] = 60; - var$2[11] = 62; - var$2[12] = 124; - var$2[13] = 34; - var$2[14] = 58; - nms_ChatAllowedCharacters_allowedCharactersArray = var$1; -} -function nms_ColorizerGrass() { - jl_Object.call(this); -} -var nms_ColorizerGrass_grassBuffer = null; -function nms_ColorizerGrass__init_0() { - var var_0 = new nms_ColorizerGrass(); - nms_ColorizerGrass__init_(var_0); - return var_0; -} -function nms_ColorizerGrass__init_($this) { - return; -} -function nms_ColorizerGrass_getGrassColor($par0, $par2) { - var $var4, $var5; - $par2 = $par2 * $par0; - $var4 = (1.0 - $par0) * 255.0 | 0; - $var5 = (1.0 - $par2) * 255.0 | 0; - return nms_ColorizerGrass_grassBuffer.data[$var5 << 8 | $var4]; -} -function nms_ColorizerGrass__clinit_() { - nms_ColorizerGrass_grassBuffer = $rt_createIntArray(65536); -} -function nms_ColorizerFoliage() { - jl_Object.call(this); -} -var nms_ColorizerFoliage_foliageBuffer = null; -function nms_ColorizerFoliage__init_0() { - var var_0 = new nms_ColorizerFoliage(); - nms_ColorizerFoliage__init_(var_0); - return var_0; -} -function nms_ColorizerFoliage__init_($this) { - return; -} -function nms_ColorizerFoliage_getFoliageColor($par0, $par2) { - var $var4, $var5; - $par2 = $par2 * $par0; - $var4 = (1.0 - $par0) * 255.0 | 0; - $var5 = (1.0 - $par2) * 255.0 | 0; - return nms_ColorizerFoliage_foliageBuffer.data[$var5 << 8 | $var4]; -} -function nms_ColorizerFoliage__clinit_() { - nms_ColorizerFoliage_foliageBuffer = $rt_createIntArray(65536); -} -function nms_RenderManager() { - var a = this; jl_Object.call(a); - a.$entityRenderMap = null; - a.$fontRenderer1 = null; - a.$renderEngine1 = null; - a.$itemRenderer = null; - a.$worldObj1 = null; - a.$livingPlayer = null; - a.$field_96451_i = null; - a.$playerViewY = 0.0; - a.$playerViewX = 0.0; - a.$options2 = null; - a.$viewerPosX = 0.0; - a.$viewerPosY = 0.0; - a.$viewerPosZ = 0.0; -} -var nms_RenderManager_instance = null; -var nms_RenderManager_renderPosX = 0.0; -var nms_RenderManager_renderPosY = 0.0; -var nms_RenderManager_renderPosZ = 0.0; -var nms_RenderManager_field_85095_o = 0; -function nms_RenderManager__init_0() { - var var_0 = new nms_RenderManager(); - nms_RenderManager__init_(var_0); - return var_0; -} -function nms_RenderManager__init_($this) { - var $var1, var$2; - jl_Object__init_0($this); - $this.$entityRenderMap = ju_HashMap__init_0(); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntitySpider), nms_RenderSpider__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityCaveSpider), nms_RenderSpider__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityPig), nms_RenderPig__init_(nms_ModelPig__init_0(), nms_ModelPig__init_1(0.5), 0.699999988079071)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntitySheep), nms_RenderSheep__init_(nms_ModelSheep2__init_0(), nms_ModelSheep1__init_0(), 0.699999988079071)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityCow), nms_RenderCow__init_(nms_ModelCow__init_0(), 0.699999988079071)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityMooshroom), nms_RenderMooshroom__init_(nms_ModelCow__init_0(), 0.699999988079071)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityWolf), nms_RenderWolf__init_(nms_ModelWolf__init_0(), nms_ModelWolf__init_0(), 0.5)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityChicken), nms_RenderChicken__init_(nms_ModelChicken__init_0(), 0.30000001192092896)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityOcelot), nms_RenderOcelot__init_(nms_ModelOcelot__init_0(), 0.4000000059604645)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntitySilverfish), nms_RenderSilverfish__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityCreeper), nms_RenderCreeper__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityEnderman), nms_RenderEnderman__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntitySnowman), nms_RenderSnowMan__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntitySkeleton), nms_RenderSkeleton__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityWitch), nms_RenderWitch__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityBlaze), nms_RenderBlaze__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityZombie), nms_RenderZombie__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntitySlime), nms_RenderSlime__init_(nms_ModelSlime__init_(16), nms_ModelSlime__init_(0), 0.25)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityMagmaCube), nms_RenderMagmaCube__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityPlayer), nms_RenderPlayer__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityGhast), nms_RenderGhast__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntitySquid), nms_RenderSquid__init_(nms_ModelSquid__init_0(), 0.699999988079071)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityVillager), nms_RenderVillager__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityIronGolem), nms_RenderIronGolem__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityBat), nms_RenderBat__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityDragon), nms_RenderDragon__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityEnderCrystal), nms_RenderEnderCrystal__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityWither), nms_RenderWither__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_Entity), nms_RenderEntity__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityPainting), nms_RenderPainting__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityItemFrame), nms_RenderItemFrame__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityArrow), nms_RenderArrow__init_0()); - $var1 = $this.$entityRenderMap; - var$2 = new nms_RenderSnowball; - nms_Item_$callClinit(); - nms_RenderSnowball__init_(var$2, nms_Item_snowball); - ju_HashMap_put($var1, $rt_cls(nms_EntitySnowball), var$2); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityEnderPearl), nms_RenderSnowball__init_0(nms_Item_enderPearl)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityEnderEye), nms_RenderSnowball__init_0(nms_Item_eyeOfEnder)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityEgg), nms_RenderSnowball__init_0(nms_Item_egg)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityPotion), nms_RenderSnowball__init_1(nms_Item_potion, 16384)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityExpBottle), nms_RenderSnowball__init_0(nms_Item_expBottle)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityFireworkRocket), nms_RenderSnowball__init_0(nms_Item_firework)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityLargeFireball), nms_RenderFireball__init_(2.0)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntitySmallFireball), nms_RenderFireball__init_(0.5)); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityWitherSkull), nms_RenderWitherSkull__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityItem), nms_RenderItem__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityXPOrb), nms_RenderXPOrb__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityTNTPrimed), nms_RenderTNTPrimed__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityFallingSand), nms_RenderFallingSand__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityMinecartTNT), nms_RenderTntMinecart__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityMinecartMobSpawner), nms_RenderMinecartMobSpawner__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityMinecart), nms_RenderMinecart__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityBoat), nms_RenderBoat__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityFishHook), nms_RenderFish__init_0()); - ju_HashMap_put($this.$entityRenderMap, $rt_cls(nms_EntityLightningBolt), nms_RenderLightningBolt__init_0()); - $var1 = ju_HashMap_values($this.$entityRenderMap).$iterator(); - while ($var1.$hasNext()) { - nms_Render_setRenderManager($var1.$next(), $this); - } -} -function nms_RenderManager_getEntityClassRenderObject($this, $par1Class) { - var $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10; - $var2 = $this.$entityRenderMap; - if ($par1Class !== null) { - var$3 = jl_Object_identity($par1Class); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, $par1Class, var$3 & ($var2.$elementData.data.length - 1 | 0), var$3); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && $par1Class !== $rt_cls(nms_Entity)) { - var$4 = jl_Class_getClass($par1Class.$platformClass.$meta.superclass); - $var2 = $this.$entityRenderMap; - if (var$4 !== null) { - var$5 = jl_Object_identity(var$4); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$4, var$5 & ($var2.$elementData.data.length - 1 | 0), var$5); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && var$4 !== $rt_cls(nms_Entity)) { - var$6 = jl_Class_getClass(var$4.$platformClass.$meta.superclass); - $var2 = $this.$entityRenderMap; - if (var$6 !== null) { - var$7 = jl_Object_identity(var$6); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$6, var$7 & ($var2.$elementData.data.length - 1 | 0), var$7); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && var$6 !== $rt_cls(nms_Entity)) { - var$8 = jl_Class_getClass(var$6.$platformClass.$meta.superclass); - $var2 = $this.$entityRenderMap; - if (var$8 !== null) { - var$7 = jl_Object_identity(var$8); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$8, var$7 & ($var2.$elementData.data.length - 1 | 0), var$7); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && var$8 !== $rt_cls(nms_Entity)) { - var$9 = jl_Class_getClass(var$8.$platformClass.$meta.superclass); - $var2 = $this.$entityRenderMap; - if (var$9 !== null) { - var$7 = jl_Object_identity(var$9); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$9, var$7 & ($var2.$elementData.data.length - 1 | 0), var$7); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && var$9 !== $rt_cls(nms_Entity)) { - var$10 = jl_Class_getClass(var$9.$platformClass.$meta.superclass); - $var2 = ju_HashMap_get($this.$entityRenderMap, var$10); - if ($var2 === null && var$10 !== $rt_cls(nms_Entity)) { - $var2 = nms_RenderManager_getEntityClassRenderObject($this, jl_Class_getSuperclass(var$10)); - ju_HashMap_putImpl($this.$entityRenderMap, var$10, $var2); - } - ju_HashMap_put($this.$entityRenderMap, var$9, $var2); - } - ju_HashMap_put($this.$entityRenderMap, var$8, $var2); - } - ju_HashMap_put($this.$entityRenderMap, var$6, $var2); - } - ju_HashMap_put($this.$entityRenderMap, var$4, $var2); - } - ju_HashMap_put($this.$entityRenderMap, $par1Class, $var2); - } - return $var2; -} -function nms_RenderManager_getEntityRenderObject($this, $par1Entity) { - var var$2, var$3, var$4, var$5, var$6, var$7; - var$2 = jl_Class_getClass($par1Entity.constructor); - $par1Entity = $this.$entityRenderMap; - if (var$2 !== null) { - var$3 = jl_Object_identity(var$2); - $par1Entity = ju_HashMap_findNonNullKeyEntry($par1Entity, var$2, var$3 & ($par1Entity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Entity = $par1Entity.$elementData.data[0]; - while ($par1Entity !== null && $par1Entity.$key !== null) { - $par1Entity = $par1Entity.$next1; - } - } - $par1Entity = $par1Entity === null ? null : $par1Entity.$value0; - if ($par1Entity === null && var$2 !== $rt_cls(nms_Entity)) { - var$4 = jl_Class_getClass(var$2.$platformClass.$meta.superclass); - $par1Entity = $this.$entityRenderMap; - if (var$4 !== null) { - var$3 = jl_Object_identity(var$4); - $par1Entity = ju_HashMap_findNonNullKeyEntry($par1Entity, var$4, var$3 & ($par1Entity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Entity = $par1Entity.$elementData.data[0]; - while ($par1Entity !== null && $par1Entity.$key !== null) { - $par1Entity = $par1Entity.$next1; - } - } - $par1Entity = $par1Entity === null ? null : $par1Entity.$value0; - if ($par1Entity === null && var$4 !== $rt_cls(nms_Entity)) { - var$5 = jl_Class_getClass(var$4.$platformClass.$meta.superclass); - $par1Entity = $this.$entityRenderMap; - if (var$5 !== null) { - var$3 = jl_Object_identity(var$5); - $par1Entity = ju_HashMap_findNonNullKeyEntry($par1Entity, var$5, var$3 & ($par1Entity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Entity = $par1Entity.$elementData.data[0]; - while ($par1Entity !== null && $par1Entity.$key !== null) { - $par1Entity = $par1Entity.$next1; - } - } - $par1Entity = $par1Entity === null ? null : $par1Entity.$value0; - if ($par1Entity === null && var$5 !== $rt_cls(nms_Entity)) { - var$6 = jl_Class_getClass(var$5.$platformClass.$meta.superclass); - $par1Entity = $this.$entityRenderMap; - if (var$6 !== null) { - var$3 = jl_Object_identity(var$6); - $par1Entity = ju_HashMap_findNonNullKeyEntry($par1Entity, var$6, var$3 & ($par1Entity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Entity = $par1Entity.$elementData.data[0]; - while ($par1Entity !== null && $par1Entity.$key !== null) { - $par1Entity = $par1Entity.$next1; - } - } - $par1Entity = $par1Entity === null ? null : $par1Entity.$value0; - if ($par1Entity === null && var$6 !== $rt_cls(nms_Entity)) { - var$7 = jl_Class_getClass(var$6.$platformClass.$meta.superclass); - $par1Entity = $this.$entityRenderMap; - if (var$7 !== null) { - var$3 = jl_Object_hashCode(var$7); - $par1Entity = ju_HashMap_findNonNullKeyEntry($par1Entity, var$7, var$3 & ($par1Entity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Entity = $par1Entity.$elementData.data[0]; - while ($par1Entity !== null && $par1Entity.$key !== null) { - $par1Entity = $par1Entity.$next1; - } - } - $par1Entity = $par1Entity === null ? null : $par1Entity.$value0; - if ($par1Entity === null && var$7 !== $rt_cls(nms_Entity)) { - $par1Entity = nms_RenderManager_getEntityClassRenderObject($this, jl_Class_getClass(var$7.$platformClass.$meta.superclass)); - ju_HashMap_putImpl($this.$entityRenderMap, var$7, $par1Entity); - } - ju_HashMap_putImpl($this.$entityRenderMap, var$6, $par1Entity); - } - ju_HashMap_putImpl($this.$entityRenderMap, var$5, $par1Entity); - } - ju_HashMap_putImpl($this.$entityRenderMap, var$4, $par1Entity); - } - ju_HashMap_putImpl($this.$entityRenderMap, var$2, $par1Entity); - } - return $par1Entity; -} -function nms_RenderManager_cacheActiveRenderInfo($this, $par1World, $par2RenderEngine, $par3FontRenderer, $par4EntityLiving, $par5EntityLiving, $par6GameSettings, $par7) { - var var$8, var$9, $var8, $var10, var$12, var$13; - $this.$worldObj1 = $par1World; - $this.$renderEngine1 = $par2RenderEngine; - $this.$options2 = $par6GameSettings; - $this.$livingPlayer = $par4EntityLiving; - $this.$field_96451_i = $par5EntityLiving; - $this.$fontRenderer1 = $par3FontRenderer; - if (!$par4EntityLiving.$sleeping) { - $this.$playerViewY = $par4EntityLiving.$prevRotationYaw + ($par4EntityLiving.$rotationYaw - $par4EntityLiving.$prevRotationYaw) * $par7; - $this.$playerViewX = $par4EntityLiving.$prevRotationPitch + ($par4EntityLiving.$rotationPitch - $par4EntityLiving.$prevRotationPitch) * $par7; - } else { - var$8 = $par4EntityLiving.$posX; - var$9 = var$8 | 0; - if (var$8 < var$9) - var$9 = var$9 - 1 | 0; - var$8 = $par4EntityLiving.$posY; - $var8 = var$8 | 0; - if (var$8 < $var8) - $var8 = $var8 - 1 | 0; - var$8 = $par4EntityLiving.$posZ; - $var10 = var$8 | 0; - if (var$8 < $var10) - $var10 = $var10 - 1 | 0; - $var8 = nms_World_getBlockId($par1World, var$9, $var8, $var10); - nms_Block_$callClinit(); - if ($var8 == nms_Block_bed.$blockID) { - var$8 = $par4EntityLiving.$posX; - var$9 = var$8 | 0; - if (var$8 < var$9) - var$9 = var$9 - 1 | 0; - var$8 = $par4EntityLiving.$posY; - $var8 = var$8 | 0; - if (var$8 < $var8) - $var8 = $var8 - 1 | 0; - var$8 = $par4EntityLiving.$posZ; - $var10 = var$8 | 0; - if (var$8 < $var10) - $var10 = $var10 - 1 | 0; - $this.$playerViewY = ((nms_World_getBlockMetadata($par1World, var$9, $var8, $var10) & 3) * 90 | 0) + 180 | 0; - $this.$playerViewX = 0.0; - } - } - if ($par6GameSettings.$thirdPersonView == 2) - $this.$playerViewY = $this.$playerViewY + 180.0; - var$12 = $par4EntityLiving.$lastTickPosX; - var$8 = $par4EntityLiving.$posX - $par4EntityLiving.$lastTickPosX; - var$13 = $par7; - $this.$viewerPosX = var$12 + var$8 * var$13; - $this.$viewerPosY = $par4EntityLiving.$lastTickPosY + ($par4EntityLiving.$posY - $par4EntityLiving.$lastTickPosY) * var$13; - $this.$viewerPosZ = $par4EntityLiving.$lastTickPosZ + ($par4EntityLiving.$posZ - $par4EntityLiving.$lastTickPosZ) * var$13; -} -function nms_RenderManager_renderEntity($this, $par1Entity, $par2) { - var $var5, $var3, var$5, $var7, $var9, $var10, $var11, $var12, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();var$5 = $thread.pop();$var3 = $thread.pop();$var5 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1Entity.$ticksExisted) { - $par1Entity.$lastTickPosX = $par1Entity.$posX; - $par1Entity.$lastTickPosY = $par1Entity.$posY; - $par1Entity.$lastTickPosZ = $par1Entity.$posZ; - } - $var5 = $par1Entity.$lastTickPosX; - $var3 = $par1Entity.$posX - $par1Entity.$lastTickPosX; - var$5 = $par2; - $var3 = $var5 + $var3 * var$5; - $var5 = $par1Entity.$lastTickPosY + ($par1Entity.$posY - $par1Entity.$lastTickPosY) * var$5; - $var7 = $par1Entity.$lastTickPosZ + ($par1Entity.$posZ - $par1Entity.$lastTickPosZ) * var$5; - $var9 = $par1Entity.$prevRotationYaw + ($par1Entity.$rotationYaw - $par1Entity.$prevRotationYaw) * $par2; - $var10 = $par1Entity.$getBrightnessForRender($par2); - if ($par1Entity.$isBurning()) - $var10 = 15728880; - a: { - $var11 = $var10 % 65536 | 0; - $var12 = $var10 / 65536 | 0; - $var10 = nms_OpenGlHelper_lightmapTexUnit; - var$11 = $var11 / 1.0; - var$12 = $var12 / 1.0; - nleg_EaglerAdapterGL30_$callClinit(); - switch ($var10) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = var$11; - nleg_EaglerAdapterGL30_tex1Y = var$12; - break a; - default: - if (jl_System_errCache === null) { - var$13 = new ji_PrintStream; - var$13.$out = new jl_ConsoleOutputStreamStderr; - var$14 = new jl_StringBuilder; - var$14.$buffer = $rt_createCharArray(16); - var$13.$sb = var$14; - var$13.$buffer0 = $rt_createCharArray(32); - var$13.$autoFlush = 0; - var$14 = new jnci_UTF8Charset; - jnc_Charset__init_(var$14, $rt_s(2), $rt_createArray(jl_String, 0)); - var$13.$charset = var$14; - jl_System_errCache = var$13; - } - var$15 = jl_System_errCache; - var$13 = var$15.$sb; - jl_AbstractStringBuilder_insert(var$13, var$13.$length, $rt_s(238)); - $var12 = var$13.$length; - jl_AbstractStringBuilder_insertSpace(var$13, $var12, $var12 + 1 | 0); - var$13.$buffer.data[$var12] = 10; - ji_PrintStream_printSB(var$15); - break a; - } - nleg_EaglerAdapterGL30_tex0X = var$11; - nleg_EaglerAdapterGL30_tex0Y = var$12; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var3 = $var3 - nms_RenderManager_renderPosX; - $var5 = $var5 - nms_RenderManager_renderPosY; - var$5 = $var7 - nms_RenderManager_renderPosZ; - $ptr = 1; - case 1: - nms_RenderManager_renderEntityWithPosYaw($this, $par1Entity, $var3, $var5, var$5, $var9, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $var5, $var3, var$5, $var7, $var9, $var10, $var11, $var12, var$11, var$12, var$13, var$14, var$15, $ptr); -} -function nms_RenderManager_renderEntityWithPosYaw($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = jl_Class_getClass($par1Entity.constructor); - var$8 = $this.$entityRenderMap; - if (var$7 !== null) { - var$9 = jl_Object_identity(var$7); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$7, var$9 & (var$8.$elementData.data.length - 1 | 0), var$9); - } else { - var$8 = var$8.$elementData.data[0]; - while (var$8 !== null && var$8.$key !== null) { - var$8 = var$8.$next1; - } - } - var$8 = var$8 === null ? null : var$8.$value0; - if (var$8 === null && var$7 !== $rt_cls(nms_Entity)) { - var$10 = jl_Class_getClass(var$7.$platformClass.$meta.superclass); - var$8 = $this.$entityRenderMap; - if (var$10 !== null) { - var$9 = jl_Object_identity(var$10); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$10, var$9 & (var$8.$elementData.data.length - 1 | 0), var$9); - } else { - var$8 = var$8.$elementData.data[0]; - while (var$8 !== null && var$8.$key !== null) { - var$8 = var$8.$next1; - } - } - var$8 = var$8 === null ? null : var$8.$value0; - if (var$8 === null && var$10 !== $rt_cls(nms_Entity)) { - var$11 = jl_Class_getClass(var$10.$platformClass.$meta.superclass); - var$8 = $this.$entityRenderMap; - if (var$11 !== null) { - var$9 = jl_Object_identity(var$11); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$11, var$9 & (var$8.$elementData.data.length - 1 | 0), var$9); - } else { - var$8 = var$8.$elementData.data[0]; - while (var$8 !== null && var$8.$key !== null) { - var$8 = var$8.$next1; - } - } - var$8 = var$8 === null ? null : var$8.$value0; - if (var$8 === null && var$11 !== $rt_cls(nms_Entity)) { - var$12 = jl_Class_getClass(var$11.$platformClass.$meta.superclass); - var$8 = $this.$entityRenderMap; - if (var$12 !== null) { - var$13 = jl_Object_hashCode(var$12); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$12, var$13 & (var$8.$elementData.data.length - 1 | 0), var$13); - } else { - var$8 = var$8.$elementData.data[0]; - while (var$8 !== null && var$8.$key !== null) { - var$8 = var$8.$next1; - } - } - var$8 = var$8 === null ? null : var$8.$value0; - if (var$8 === null && var$12 !== $rt_cls(nms_Entity)) { - var$14 = jl_Class_getClass(var$12.$platformClass.$meta.superclass); - var$8 = $this.$entityRenderMap; - if (var$14 === null) - var$8 = ju_HashMap_findNullKeyEntry(var$8); - else { - var$15 = ju_HashMap_computeHashCode(var$14); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$14, var$15 & (var$8.$elementData.data.length - 1 | 0), var$15); - } - var$8 = var$8 === null ? null : var$8.$value0; - if (var$8 === null && var$14 !== $rt_cls(nms_Entity)) { - var$8 = nms_RenderManager_getEntityClassRenderObject($this, jl_Class_getClass(var$14.$platformClass.$meta.superclass)); - ju_HashMap_put($this.$entityRenderMap, var$14, var$8); - } - ju_HashMap_put($this.$entityRenderMap, var$12, var$8); - } - ju_HashMap_put($this.$entityRenderMap, var$11, var$8); - } - ju_HashMap_put($this.$entityRenderMap, var$10, var$8); - } - ju_HashMap_put($this.$entityRenderMap, var$7, var$8); - } - if (var$8 !== null && $this.$renderEngine1 !== null) { - if (nms_RenderManager_field_85095_o && !nms_Entity_isInvisible($par1Entity)) - nms_RenderManager_func_85094_b($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - $ptr = 1; - continue main; - } - return; - case 1: - var$8.$doRender($par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - nms_Render_doRenderShadowAndFire(var$8, $par1Entity, $par2, $par4, $par6, $par8, $par9); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr); -} -function nms_RenderManager_func_85094_b($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, $var13, $var15, $var17, $var19, $var21, $var23, $var25, $var27, var$17; - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glPushMatrix(); - nlea_Tessellator_$callClinit(); - $var10 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var10, 98); - nlea_Tessellator_setColorRGBA($var10, 255, 255, 255, 32); - $var11 = -$par1Entity.$width1 / 2.0; - $var13 = -$par1Entity.$width1 / 2.0; - $var15 = $par1Entity.$width1 / 2.0; - $var17 = -$par1Entity.$width1 / 2.0; - $var19 = -$par1Entity.$width1 / 2.0; - $var21 = $par1Entity.$width1 / 2.0; - $var23 = $par1Entity.$width1 / 2.0; - $var25 = $par1Entity.$width1 / 2.0; - $var27 = $par1Entity.$height1; - var$17 = $par2 + $var11; - $var11 = $par4 + $var27; - $var13 = $par6 + $var13; - nlea_Tessellator_addVertex($var10, var$17, $var11, $var13); - nlea_Tessellator_addVertex($var10, var$17, $par4, $var13); - $var15 = $par2 + $var15; - $var17 = $par6 + $var17; - nlea_Tessellator_addVertex($var10, $var15, $par4, $var17); - nlea_Tessellator_addVertex($var10, $var15, $var11, $var17); - $var23 = $par2 + $var23; - $var25 = $par6 + $var25; - nlea_Tessellator_addVertex($var10, $var23, $var11, $var25); - nlea_Tessellator_addVertex($var10, $var23, $par4, $var25); - $par2 = $par2 + $var19; - $par6 = $par6 + $var21; - nlea_Tessellator_addVertex($var10, $par2, $par4, $par6); - nlea_Tessellator_addVertex($var10, $par2, $var11, $par6); - nlea_Tessellator_addVertex($var10, $var15, $var11, $var17); - nlea_Tessellator_addVertex($var10, $var15, $par4, $var17); - nlea_Tessellator_addVertex($var10, $var23, $par4, $var25); - nlea_Tessellator_addVertex($var10, $var23, $var11, $var25); - nlea_Tessellator_addVertex($var10, $par2, $var11, $par6); - nlea_Tessellator_addVertex($var10, $par2, $par4, $par6); - nlea_Tessellator_addVertex($var10, var$17, $par4, $var13); - nlea_Tessellator_addVertex($var10, var$17, $var11, $var13); - nlea_Tessellator_draw($var10); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glDisable(16); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); -} -function nms_RenderManager_set($this, $par1World) { - $this.$worldObj1 = $par1World; -} -function nms_RenderManager_getDistanceToCamera($this, $par1, $par3, $par5) { - var $var7, $var9, $var11; - $var7 = $par1 - $this.$viewerPosX; - $var9 = $par3 - $this.$viewerPosY; - $var11 = $par5 - $this.$viewerPosZ; - return $var7 * $var7 + $var9 * $var9 + $var11 * $var11; -} -function nms_RenderManager_getFontRenderer($this) { - return $this.$fontRenderer1; -} -function nms_RenderManager_updateIcons($this, $par1IconRegister) { - var $var2, $var3; - $var2 = $this.$entityRenderMap; - if ($var2.$cachedValues === null) { - $var3 = new ju_HashMap$2; - $var3.$this$00 = $var2; - $var2.$cachedValues = $var3; - } - $var2 = $var2.$cachedValues.$iterator(); - while ($var2.$hasNext()) { - $var2.$next().$updateIcons($par1IconRegister); - } -} -function nms_RenderManager__clinit_() { - nms_RenderManager_field_85095_o = 0; -} -function nms_ItemRenderer() { - var a = this; jl_Object.call(a); - a.$mc8 = null; - a.$itemToRender = null; - a.$equippedProgress = 0.0; - a.$prevEquippedProgress = 0.0; - a.$renderBlocksInstance = null; - a.$mapItemRenderer = null; - a.$equippedItemSlot = 0; -} -var nms_ItemRenderer_terrain = null; -var nms_ItemRenderer_items = null; -var nms_ItemRenderer_glint = null; -var nms_ItemRenderer_mapbg = null; -var nms_ItemRenderer_water = null; -function nms_ItemRenderer__init_(var_0) { - var var_1 = new nms_ItemRenderer(); - nms_ItemRenderer__init_0(var_1, var_0); - return var_1; -} -function nms_ItemRenderer__init_0($this, $par1Minecraft) { - $this.$itemToRender = null; - $this.$equippedProgress = 0.0; - $this.$prevEquippedProgress = 0.0; - $this.$renderBlocksInstance = nms_RenderBlocks__init_2(); - $this.$equippedItemSlot = (-1); - $this.$mc8 = $par1Minecraft; - $this.$mapItemRenderer = nms_MapItemRenderer__init_($par1Minecraft.$fontRenderer, $par1Minecraft.$gameSettings, $par1Minecraft.$renderEngine); -} -function nms_ItemRenderer_renderItem($this, $par1EntityLiving, $par2ItemStack, $par3) { - var $var4, $var12, $var5, $var6, $var7, $var8, $var9, var$11, 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();var$11 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var12 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2ItemStack = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_Item_$callClinit(); - if (!nms_Item_itemsList.data[$par2ItemStack.$itemID0].$getSpriteNumber()) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$par2ItemStack.$itemID0] !== null && nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$par2ItemStack.$itemID0].$getRenderType())) { - nle_TextureLocation_bindTexture(nms_ItemRenderer_terrain); - $par1EntityLiving = $this.$renderBlocksInstance; - $var4 = nms_Block_blocksList.data[$par2ItemStack.$itemID0]; - $par3 = $par2ItemStack.$itemDamage; - $var12 = 1.0; - $ptr = 1; - continue main; - } - } - $var4 = $par1EntityLiving.$getItemIcon($par2ItemStack, $par3); - if ($var4 === null) { - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - } - if (nms_Item_itemsList.data[$par2ItemStack.$itemID0].$getSpriteNumber()) - nle_TextureLocation_bindTexture(nms_ItemRenderer_items); - else - nle_TextureLocation_bindTexture(nms_ItemRenderer_terrain); - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $var6 = $var4.$getMinU(); - $var7 = $var4.$getMaxU(); - $var8 = $var4.$getMinV(); - $var9 = $var4.$getMaxV(); - nleg_EaglerAdapterGL30_glEnable(41); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = -0.0; - $par1EntityLiving.$y = (-0.30000001192092896); - $par1EntityLiving.$z = 0.0; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$11.$sb = $par1EntityLiving; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = $par1EntityLiving; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$13 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$13, var$13 + 1 | 0); - var$11.$buffer.data[var$13] = 10; - ji_PrintStream_printSB(var$12); - } - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = 1.5; - $par1EntityLiving.$y = 1.5; - $par1EntityLiving.$z = 1.5; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - jl_AbstractStringBuilder__init_($par1EntityLiving); - var$11.$sb = $par1EntityLiving; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$11.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = var$11; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - nleg_EaglerAdapterGL30_glRotatef(50.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(335.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.9375), (-0.0625), 0.0); - nms_ItemRenderer_renderItemIn2D($var5, $var7, $var8, $var6, $var9, $var4.$getSheetWidth(), $var4.$getSheetHeight(), 0.0625); - if (nms_ItemStack_hasEffect($par2ItemStack) && !$par3) { - nleg_EaglerAdapterGL30_glDepthFunc(52); - nleg_EaglerAdapterGL30_glDisable(13); - nle_TextureLocation_bindTexture(nms_ItemRenderer_glint); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(53, 1); - nleg_EaglerAdapterGL30_glColor4f(0.3799999952316284, 0.1899999976158142, 0.6079999804496765, 1.0); - nleg_EaglerAdapterGL30_glMatrixMode(54); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glScalef(0.125, 0.125, 0.125); - nleg_EaglerAdapterGL30_glTranslatef(Long_toNumber(Long_rem(nmc_Minecraft_getSystemTime(), Long_fromInt(3000))) / 3000.0 * 8.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-50.0), 0.0, 0.0, 1.0); - nms_ItemRenderer_renderItemIn2D($var5, 0.0, 0.0, 1.0, 1.0, 256, 256, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glScalef(0.125, 0.125, 0.125); - nleg_EaglerAdapterGL30_glTranslatef( -(Long_toNumber(Long_rem(nmc_Minecraft_getSystemTime(), Long_fromInt(4873))) / 4873.0 * 8.0), 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(10.0, 0.0, 0.0, 1.0); - nms_ItemRenderer_renderItemIn2D($var5, 0.0, 0.0, 1.0, 1.0, 256, 256, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glMatrixMode(10); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glDepthFunc(5); - } - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1EntityLiving, $var4, $par3, $var12); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2ItemStack, $par3, $var4, $var12, $var5, $var6, $var7, $var8, $var9, var$11, var$12, var$13, $ptr); -} -function nms_ItemRenderer_renderItemIn2D($par0Tessellator, $par1, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$9, var$10, $var12, var$12, var$13, $var13, var$15, $var13_0, var$17, $var8, var$19, $var9, $var10, $var12_0, $var11, var$24, var$25, var$26, var$27; - nlea_Tessellator_startDrawing($par0Tessellator, 98); - nlea_Tessellator_setNormal($par0Tessellator, 0.0, 0.0, 1.0); - var$9 = $par1; - var$10 = $par4; - $par0Tessellator.$hasTexture = 1; - $var12 = var$9; - $par0Tessellator.$textureU = $var12; - var$12 = var$10; - $par0Tessellator.$textureV = var$12; - nlea_Tessellator_addVertex($par0Tessellator, 0.0, 0.0, 0.0); - var$13 = $par3; - $par0Tessellator.$hasTexture = 1; - $var13 = var$13; - $par0Tessellator.$textureU = $var13; - $par0Tessellator.$textureV = var$12; - nlea_Tessellator_addVertex($par0Tessellator, 1.0, 0.0, 0.0); - var$15 = $par2; - $par0Tessellator.$hasTexture = 1; - $par0Tessellator.$textureU = $var13; - $var13_0 = var$15; - $par0Tessellator.$textureV = $var13_0; - nlea_Tessellator_addVertex($par0Tessellator, 1.0, 1.0, 0.0); - $par0Tessellator.$hasTexture = 1; - $par0Tessellator.$textureU = $var12; - $par0Tessellator.$textureV = $var13_0; - nlea_Tessellator_addVertex($par0Tessellator, 0.0, 1.0, 0.0); - nlea_Tessellator_draw($par0Tessellator); - nlea_Tessellator_startDrawing($par0Tessellator, 98); - nlea_Tessellator_setNormal($par0Tessellator, 0.0, 0.0, (-1.0)); - var$17 = 0.0 - $par7; - $par0Tessellator.$hasTexture = 1; - $par0Tessellator.$textureU = $var12; - $par0Tessellator.$textureV = $var13_0; - nlea_Tessellator_addVertex($par0Tessellator, 0.0, 1.0, var$17); - $par0Tessellator.$hasTexture = 1; - $par0Tessellator.$textureU = $var13; - $par0Tessellator.$textureV = $var13_0; - nlea_Tessellator_addVertex($par0Tessellator, 1.0, 1.0, var$17); - $par0Tessellator.$hasTexture = 1; - $par0Tessellator.$textureU = $var13; - $par0Tessellator.$textureV = var$12; - nlea_Tessellator_addVertex($par0Tessellator, 1.0, 0.0, var$17); - $par0Tessellator.$hasTexture = 1; - $par0Tessellator.$textureU = $var12; - $par0Tessellator.$textureV = var$12; - nlea_Tessellator_addVertex($par0Tessellator, 0.0, 0.0, var$17); - nlea_Tessellator_draw($par0Tessellator); - $var13 = $par5; - $var8 = $var13 * ($par1 - $par3); - var$19 = $par6; - $var9 = var$19 * ($par4 - $par2); - nlea_Tessellator_startDrawing($par0Tessellator, 98); - nlea_Tessellator_setNormal($par0Tessellator, (-1.0), 0.0, 0.0); - $var10 = 0; - $var12_0 = $par3 - $par1; - $var13 = 0.5 / $var13; - while (true) { - $par3 = $var10; - if ($par3 >= $var8) - break; - $var11 = $par3 / $var8; - $var12 = $par1 + $var12_0 * $var11 - $var13; - var$24 = $var11; - var$25 = $var12; - $par0Tessellator.$hasTexture = 1; - $par3 = var$25; - $par0Tessellator.$textureU = $par3; - $par0Tessellator.$textureV = var$12; - nlea_Tessellator_addVertex($par0Tessellator, var$24, 0.0, var$17); - $par0Tessellator.$hasTexture = 1; - $par0Tessellator.$textureU = $par3; - $par0Tessellator.$textureV = var$12; - nlea_Tessellator_addVertex($par0Tessellator, var$24, 0.0, 0.0); - $par0Tessellator.$hasTexture = 1; - $par0Tessellator.$textureU = $par3; - $par0Tessellator.$textureV = $var13_0; - nlea_Tessellator_addVertex($par0Tessellator, var$24, 1.0, 0.0); - $par0Tessellator.$hasTexture = 1; - $par0Tessellator.$textureU = $par3; - $par0Tessellator.$textureV = $var13_0; - nlea_Tessellator_addVertex($par0Tessellator, var$24, 1.0, var$17); - $var10 = $var10 + 1 | 0; - } - nlea_Tessellator_draw($par0Tessellator); - nlea_Tessellator_startDrawing($par0Tessellator, 98); - nlea_Tessellator_setNormal($par0Tessellator, 1.0, 0.0, 0.0); - $par5 = 0; - $par7 = 1.0 / $var8; - while (true) { - $par3 = $par5; - if ($par3 >= $var8) - break; - $var11 = $par3 / $var8; - $var12 = $par1 + $var12_0 * $var11 - $var13; - var$24 = $var11 + $par7; - var$25 = $var12; - nlea_Tessellator_setTextureUV($par0Tessellator, var$25, var$15); - nlea_Tessellator_addVertex($par0Tessellator, var$24, 1.0, var$17); - nlea_Tessellator_addVertexWithUV($par0Tessellator, var$24, 1.0, 0.0, var$25, var$15); - nlea_Tessellator_addVertexWithUV($par0Tessellator, var$24, 0.0, 0.0, var$25, var$10); - nlea_Tessellator_addVertexWithUV($par0Tessellator, var$24, 0.0, var$17, var$25, var$10); - $par5 = $par5 + 1 | 0; - } - nlea_Tessellator_draw($par0Tessellator); - nlea_Tessellator_startDrawing($par0Tessellator, 98); - nlea_Tessellator_setNormal($par0Tessellator, 0.0, 1.0, 0.0); - $par5 = 0; - $par1 = $par2 - $par4; - $par3 = 0.5 / var$19; - $par7 = 1.0 / $var9; - while (true) { - $par2 = $par5; - if ($par2 >= $var9) - break; - $var11 = $par2 / $var9; - $var12_0 = $par4 + $par1 * $var11 - $par3; - var$26 = $var11 + $par7; - var$27 = $var12_0; - nlea_Tessellator_addVertexWithUV($par0Tessellator, 0.0, var$26, 0.0, var$9, var$27); - nlea_Tessellator_addVertexWithUV($par0Tessellator, 1.0, var$26, 0.0, var$13, var$27); - nlea_Tessellator_addVertexWithUV($par0Tessellator, 1.0, var$26, var$17, var$13, var$27); - nlea_Tessellator_addVertexWithUV($par0Tessellator, 0.0, var$26, var$17, var$9, var$27); - $par5 = $par5 + 1 | 0; - } - nlea_Tessellator_draw($par0Tessellator); - nlea_Tessellator_startDrawingQuads($par0Tessellator); - nlea_Tessellator_setNormal($par0Tessellator, 0.0, (-1.0), 0.0); - $par5 = 0; - while (true) { - $par2 = $par5; - if ($par2 >= $var9) - break; - $var11 = $par2 / $var9; - $var12_0 = $par4 + $par1 * $var11 - $par3; - var$26 = $var11; - var$27 = $var12_0; - nlea_Tessellator_addVertexWithUV($par0Tessellator, 1.0, var$26, 0.0, var$13, var$27); - nlea_Tessellator_addVertexWithUV($par0Tessellator, 0.0, var$26, 0.0, var$9, var$27); - nlea_Tessellator_addVertexWithUV($par0Tessellator, 0.0, var$26, var$17, var$9, var$27); - nlea_Tessellator_addVertexWithUV($par0Tessellator, 1.0, var$26, var$17, var$13, var$27); - $par5 = $par5 + 1 | 0; - } - nlea_Tessellator_draw($par0Tessellator); -} -function nms_ItemRenderer_renderItemInFirstPerson($this, $par1) { - var $var2, $var3, $var4, $var6, $var7, $var17, $var18, $var8, $var9, $var22, $var26, $var19, $var21, $var11, $var27, $var16, $var20, $var10, $var12, $var23, $var13, $var14, $var25, $var15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var15 = $thread.pop();$var25 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var23 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var20 = $thread.pop();$var16 = $thread.pop();$var27 = $thread.pop();$var11 = $thread.pop();$var21 = $thread.pop();$var19 = $thread.pop();$var26 = $thread.pop();$var22 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var4 - = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$prevEquippedProgress + ($this.$equippedProgress - $this.$prevEquippedProgress) * $par1; - $var3 = $this.$mc8.$thePlayer; - $var4 = $var3.$prevRotationPitch + ($var3.$rotationPitch - $var3.$prevRotationPitch) * $par1; - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef($var4, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var3.$prevRotationYaw + ($var3.$rotationYaw - $var3.$prevRotationYaw) * $par1, 0.0, 1.0, 0.0); - nms_RenderHelper_enableStandardItemLighting(); - nleg_EaglerAdapterGL30_glPopMatrix(); - if ($var3 instanceof nms_EntityPlayerSP) { - $var6 = $var3.$prevRenderArmPitch + ($var3.$renderArmPitch - $var3.$prevRenderArmPitch) * $par1; - $var7 = $var3.$prevRenderArmYaw + ($var3.$renderArmYaw - $var3.$prevRenderArmYaw) * $par1; - nleg_EaglerAdapterGL30_glRotatef(($var3.$rotationPitch - $var6) * 0.10000000149011612, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(($var3.$rotationYaw - $var7) * 0.10000000149011612, 0.0, 1.0, 0.0); - } - $var17 = $this.$itemToRender; - nms_World_getLightBrightness($this.$mc8.$theWorld, nms_MathHelper_floor_double($var3.$posX), nms_MathHelper_floor_double($var3.$posY), nms_MathHelper_floor_double($var3.$posZ)); - $var6 = 1.0; - $var18 = nms_World_getLightBrightnessForSkyBlocks($this.$mc8.$theWorld, nms_MathHelper_floor_double($var3.$posX), nms_MathHelper_floor_double($var3.$posY), nms_MathHelper_floor_double($var3.$posZ), 0); - $var8 = $var18 % 65536 | 0; - $var9 = $var18 / 65536 | 0; - nms_OpenGlHelper_setLightmapTextureCoords(nms_OpenGlHelper_lightmapTexUnit, $var8 / 1.0, $var9 / 1.0); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - if ($var17 === null) - nleg_EaglerAdapterGL30_glColor4f($var6, $var6, $var6, 1.0); - else { - nms_Item_$callClinit(); - $var22 = nms_Item_itemsList.data[$var17.$itemID0].$getColorFromItemStack($var17, 0); - nleg_EaglerAdapterGL30_glColor4f($var6 * ($var22 >> 16 & 255) / 255.0, $var6 * ($var22 >> 8 & 255) / 255.0, $var6 * ($var22 & 255) / 255.0, 1.0); - } - a: { - $var26 = nms_RenderManager_getEntityRenderObject(nms_RenderManager_instance, $this.$mc8.$thePlayer); - if ($var17 !== null) { - $var22 = $var17.$itemID0; - nms_Item_$callClinit(); - if ($var22 == nms_Item_map.$itemID) { - nleg_EaglerAdapterGL30_glPushMatrix(); - $var19 = nms_EntityLiving_getSwingProgress($var3, $par1); - $var21 = nms_MathHelper_sin($var19 * 3.1415927410125732); - nleg_EaglerAdapterGL30_glTranslatef( -nms_MathHelper_sin(nms_MathHelper_sqrt_float($var19) * 3.1415927410125732) * 0.4000000059604645, nms_MathHelper_sin(nms_MathHelper_sqrt_float($var19) * 3.1415927410125732 * 2.0) * 0.20000000298023224, -$var21 * 0.20000000298023224); - $var6 = 1.0 - $var4 / 45.0 + 0.10000000149011612; - if ($var6 < 0.0) - $var6 = 0.0; - if ($var6 > 1.0) - $var6 = 1.0; - $var6 = -nms_MathHelper_cos($var6 * 3.1415927410125732) * 0.5 + 0.5; - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0 - (1.0 - $var2) * 1.2000000476837158 - $var6 * 0.5 + 0.03999999910593033, (-0.7199999690055847)); - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var6 * (-85.0), 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glEnable(41); - nms_RenderPlayer_bindTexture($var26, $var3); - $var18 = 0; - while ($var18 < 2) { - $var22 = ($var18 * 2 | 0) - 1 | 0; - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.6000000238418579), 1.100000023841858 * $var22); - nleg_EaglerAdapterGL30_glRotatef((-45) * $var22 | 0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-90.0), 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef(59.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef((-65) * $var22 | 0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(1.0, 1.0, 1.0); - nms_RenderPlayer_renderFirstPersonArm($var26, $this.$mc8.$thePlayer); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var18 = $var18 + 1 | 0; - } - $var6 = nms_EntityLiving_getSwingProgress($var3, $par1); - $par1 = nms_MathHelper_sin($var6 * $var6 * 3.1415927410125732); - $var11 = nms_MathHelper_sin(nms_MathHelper_sqrt_float($var6) * 3.1415927410125732); - nleg_EaglerAdapterGL30_glRotatef( -$par1 * 20.0, 0.0, 1.0, 0.0); - $par1 = -$var11; - nleg_EaglerAdapterGL30_glRotatef($par1 * 20.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef($par1 * 80.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.3799999952316284, 0.3799999952316284, 0.3799999952316284); - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef((-1.0), (-1.0), 0.0); - nleg_EaglerAdapterGL30_glScalef(0.015625, 0.015625, 0.015625); - nle_TextureLocation_bindTexture(nms_ItemRenderer_mapbg); - nlea_Tessellator_$callClinit(); - $var27 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_glNormal3f(0.0, 0.0, (-1.0)); - nlea_Tessellator_startDrawingQuads($var27); - nlea_Tessellator_addVertexWithUV($var27, (-7.0), 135.0, 0.0, 0.0, 1.0); - nlea_Tessellator_addVertexWithUV($var27, 135.0, 135.0, 0.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var27, 135.0, (-7.0), 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var27, (-7.0), (-7.0), 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var27); - $var16 = nms_ItemMap_getMapData(nms_Item_map, $var17, $this.$mc8.$theWorld); - if ($var16 !== null) - nms_MapItemRenderer_renderMap($this.$mapItemRenderer, $this.$mc8.$thePlayer, $this.$mc8.$renderEngine, $var16); - nleg_EaglerAdapterGL30_glPopMatrix(); - break a; - } - } - if ($var17 !== null) { - nleg_EaglerAdapterGL30_glPushMatrix(); - if (nms_EntityPlayer_getItemInUseCount($var3) <= 0) { - $var19 = nms_EntityLiving_getSwingProgress($var3, $par1); - $var21 = nms_MathHelper_sin($var19 * 3.1415927410125732); - nleg_EaglerAdapterGL30_glTranslatef( -nms_MathHelper_sin(nms_MathHelper_sqrt_float($var19) * 3.1415927410125732) * 0.4000000059604645, nms_MathHelper_sin(nms_MathHelper_sqrt_float($var19) * 3.1415927410125732 * 2.0) * 0.20000000298023224, -$var21 * 0.20000000298023224); - } else { - $var20 = nms_ItemStack_getItemUseAction($var17); - if (!($var20 !== nms_EnumAction_eat && $var20 !== nms_EnumAction_drink)) { - $var21 = nms_EntityPlayer_getItemInUseCount($var3) - $par1 + 1.0; - $var10 = 1.0 - $var21 / nms_ItemStack_getMaxItemUseDuration($var17); - $var11 = 1.0 - $var10; - $var7 = $var11 * $var11 * $var11; - $var7 = $var7 * $var7 * $var7; - $var12 = 1.0 - $var7 * $var7 * $var7; - nleg_EaglerAdapterGL30_glTranslatef(0.0, nms_MathHelper_abs(nms_MathHelper_cos($var21 / 4.0 * 3.1415927410125732) * 0.10000000149011612) * ($var10 <= 0.2 ? 0 : 1), 0.0); - nleg_EaglerAdapterGL30_glTranslatef($var12 * 0.6000000238418579, -$var12 * 0.5, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var12 * 90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var12 * 10.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var12 * 30.0, 0.0, 0.0, 1.0); - } - } - nleg_EaglerAdapterGL30_glTranslatef(0.5600000023841858, (-0.5199999809265137) - (1.0 - $var2) * 0.6000000238418579, (-0.7199999690055847)); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(41); - $var19 = nms_EntityLiving_getSwingProgress($var3, $par1); - $var21 = nms_MathHelper_sin($var19 * $var19 * 3.1415927410125732); - $var10 = nms_MathHelper_sin(nms_MathHelper_sqrt_float($var19) * 3.1415927410125732); - nleg_EaglerAdapterGL30_glRotatef( -$var21 * 20.0, 0.0, 1.0, 0.0); - $var2 = -$var10; - nleg_EaglerAdapterGL30_glRotatef($var2 * 20.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef($var2 * 80.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.4000000059604645, 0.4000000059604645, 0.4000000059604645); - if (nms_EntityPlayer_getItemInUseCount($var3) > 0) { - $var23 = nms_ItemStack_getItemUseAction($var17); - if ($var23 === nms_EnumAction_block) { - nleg_EaglerAdapterGL30_glTranslatef((-0.5), 0.20000000298023224, 0.0); - nleg_EaglerAdapterGL30_glRotatef(30.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-80.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(60.0, 0.0, 1.0, 0.0); - } else if ($var23 === nms_EnumAction_bow) { - nleg_EaglerAdapterGL30_glRotatef((-18.0), 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef((-12.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-8.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.8999999761581421), 0.20000000298023224, 0.0); - $var13 = nms_ItemStack_getMaxItemUseDuration($var17) - (nms_EntityPlayer_getItemInUseCount($var3) - $par1 + 1.0); - $var14 = $var13 / 20.0; - $par1 = ($var14 * $var14 + $var14 * 2.0) / 3.0; - if ($par1 > 1.0) - $par1 = 1.0; - if ($par1 > 0.10000000149011612) - nleg_EaglerAdapterGL30_glTranslatef(0.0, nms_MathHelper_sin(($var13 - 0.10000000149011612) * 1.2999999523162842) * 0.009999999776482582 * ($par1 - 0.10000000149011612), 0.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, $par1 * 0.10000000149011612); - nleg_EaglerAdapterGL30_glRotatef((-335.0), 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef((-50.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.5, 0.0); - nleg_EaglerAdapterGL30_glScalef(1.0, 1.0, 1.0 + $par1 * 0.20000000298023224); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.5), 0.0); - nleg_EaglerAdapterGL30_glRotatef(50.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(335.0, 0.0, 0.0, 1.0); - } - } - if (nms_ItemStack_getItem($var17).$shouldRotateAroundWhenRendering()) - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 1.0, 0.0); - if (!nms_ItemStack_getItem($var17).$requiresMultipleRenderPasses()) { - $var22 = 0; - $ptr = 1; - continue main; - } - $var22 = 0; - $ptr = 2; - continue main; - } - if (!nms_Entity_isInvisible($var3)) { - nleg_EaglerAdapterGL30_glPushMatrix(); - $var19 = nms_EntityLiving_getSwingProgress($var3, $par1); - $var21 = nms_MathHelper_sin($var19 * 3.1415927410125732); - nleg_EaglerAdapterGL30_glTranslatef( -nms_MathHelper_sin(nms_MathHelper_sqrt_float($var19) * 3.1415927410125732) * 0.30000001192092896, nms_MathHelper_sin(nms_MathHelper_sqrt_float($var19) * 3.1415927410125732 * 2.0) * 0.4000000059604645, -$var21 * 0.4000000059604645); - nleg_EaglerAdapterGL30_glTranslatef(0.64000004529953, (-0.6000000238418579) - (1.0 - $var2) * 0.6000000238418579, (-0.7199999690055847)); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(41); - $par1 = nms_EntityLiving_getSwingProgress($var3, $par1); - $var6 = nms_MathHelper_sin($par1 * $par1 * 3.1415927410125732); - nleg_EaglerAdapterGL30_glRotatef(nms_MathHelper_sin(nms_MathHelper_sqrt_float($par1) * 3.1415927410125732) * 70.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$var6 * 20.0, 0.0, 0.0, 1.0); - nms_RenderPlayer_bindTexture($var26, $var3); - nleg_EaglerAdapterGL30_glTranslatef((-1.0), 3.5999999046325684, 3.5); - nleg_EaglerAdapterGL30_glRotatef(120.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef(200.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-135.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef(5.599999904632568, 0.0, 0.0); - $var3 = nms_RenderManager_getEntityRenderObject(nms_RenderManager_instance, $this.$mc8.$thePlayer); - nleg_EaglerAdapterGL30_glScalef(1.0, 1.0, 1.0); - nms_RenderPlayer_renderFirstPersonArm($var3, $this.$mc8.$thePlayer); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - } - nleg_EaglerAdapterGL30_glDisable(41); - nms_RenderHelper_disableStandardItemLighting(); - return; - case 1: - nms_ItemRenderer_renderItem($this, $var3, $var17, $var22); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(41); - nms_RenderHelper_disableStandardItemLighting(); - return; - case 2: - nms_ItemRenderer_renderItem($this, $var3, $var17, $var22); - if ($rt_suspending()) { - break main; - } - $var25 = nms_Item_itemsList.data[$var17.$itemID0].$getColorFromItemStack($var17, 1); - $var13 = ($var25 >> 16 & 255) / 255.0; - $var14 = ($var25 >> 8 & 255) / 255.0; - $var15 = ($var25 & 255) / 255.0; - nleg_EaglerAdapterGL30_glColor4f($var6 * $var13, $var6 * $var14, $var6 * $var15, 1.0); - $var22 = 1; - $ptr = 3; - case 3: - nms_ItemRenderer_renderItem($this, $var3, $var17, $var22); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(41); - nms_RenderHelper_disableStandardItemLighting(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, $var3, $var4, $var6, $var7, $var17, $var18, $var8, $var9, $var22, $var26, $var19, $var21, $var11, $var27, $var16, $var20, $var10, $var12, $var23, $var13, $var14, $var25, $var15, $ptr); -} -function nms_ItemRenderer_renderOverlays($this, $par1) { - var var$2, var$3, $var2, $var3, $var4, $var5, $var6, var$9, var$10, var$11, $var7, $var8, $var9, $var10, $var11, $var12, var$18; - nleg_EaglerAdapterGL30_glDisable(6); - var$2 = $this.$mc8.$thePlayer; - if (var$2.$fire <= 0 && !(!(nms_DataWatcher_getWatchableObjectByte(var$2.$dataWatcher, 0) & 1) ? 0 : 1) ? 0 : 1) { - nle_TextureLocation_bindTexture(nms_ItemRenderer_terrain); - nms_ItemRenderer_renderFireInFirstPerson($this, $par1); - } - var$2 = $this.$mc8.$thePlayer; - if (!var$2.$sleeping && nms_Entity_isEntityInsideOpaqueBlock(var$2) ? 1 : 0) { - var$3 = $this.$mc8.$thePlayer.$posX; - $var2 = var$3 | 0; - if (var$3 < $var2) - $var2 = $var2 - 1 | 0; - var$3 = $this.$mc8.$thePlayer.$posY; - $var3 = var$3 | 0; - if (var$3 < $var3) - $var3 = $var3 - 1 | 0; - var$3 = $this.$mc8.$thePlayer.$posZ; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - nle_TextureLocation_bindTexture(nms_ItemRenderer_terrain); - $var5 = nms_World_getBlockId($this.$mc8.$theWorld, $var2, $var3, $var4); - if (nms_Block_isNormalCube(nms_World_getBlockId($this.$mc8.$theWorld, $var2, $var3, $var4))) - nms_ItemRenderer_renderInsideOfBlock($this, $par1, nms_Block_blocksList.data[$var5].$getIcon(2, 0)); - else { - $var6 = 0; - var$9 = $var2; - var$10 = $var3; - var$11 = $var4; - while ($var6 < 8) { - $var7 = ((($var6 >> 0) % 2 | 0) - 0.5) * $this.$mc8.$thePlayer.$width1 * 0.8999999761581421; - $var8 = ((($var6 >> 1) % 2 | 0) - 0.5) * $this.$mc8.$thePlayer.$height1 * 0.20000000298023224; - $var9 = ((($var6 >> 2) % 2 | 0) - 0.5) * $this.$mc8.$thePlayer.$width1 * 0.8999999761581421; - $var7 = var$9 + $var7; - $var10 = $var7 | 0; - if ($var7 < $var10) - $var10 = $var10 - 1 | 0; - $var7 = var$10 + $var8; - $var11 = $var7 | 0; - if ($var7 < $var11) - $var11 = $var11 - 1 | 0; - $var7 = var$11 + $var9; - $var12 = $var7 | 0; - if ($var7 < $var12) - $var12 = $var12 - 1 | 0; - if (nms_Block_isNormalCube(nms_World_getBlockId($this.$mc8.$theWorld, $var10, $var11, $var12))) - $var5 = nms_World_getBlockId($this.$mc8.$theWorld, $var10, $var11, $var12); - $var6 = $var6 + 1 | 0; - } - } - if (nms_Block_blocksList.data[$var5] !== null) - nms_ItemRenderer_renderInsideOfBlock($this, $par1, nms_Block_blocksList.data[$var5].$getIcon(2, 0)); - } - var$18 = $this.$mc8.$thePlayer; - nms_Material_$callClinit(); - if (nms_Entity_isInsideOfMaterial(var$18, nms_Material_water)) { - nle_TextureLocation_bindTexture(nms_ItemRenderer_water); - nms_ItemRenderer_renderWarpedTextureOverlay($this, $par1); - } - nleg_EaglerAdapterGL30_glEnable(6); -} -function nms_ItemRenderer_renderInsideOfBlock($this, $par1, $par2Icon) { - var $var3, $var10, $var11, $var12, $var13, var$8, var$9, $var4; - nlea_Tessellator_$callClinit(); - $var3 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 0.10000000149011612; - nleg_EaglerAdapterGL30_colorG = 0.10000000149011612; - nleg_EaglerAdapterGL30_colorB = 0.10000000149011612; - nleg_EaglerAdapterGL30_colorA = 0.5; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var10 = $par2Icon.$getMinU(); - $var11 = $par2Icon.$getMaxU(); - $var12 = $par2Icon.$getMinV(); - $var13 = $par2Icon.$getMaxV(); - nlea_Tessellator_startDrawing($var3, 98); - var$8 = $var11; - var$9 = $var13; - $var3.$hasTexture = 1; - $var4 = var$8; - $var3.$textureU = $var4; - $var11 = var$9; - $var3.$textureV = $var11; - nlea_Tessellator_addVertex($var3, (-1.0), (-1.0), (-0.5)); - var$9 = $var10; - $var3.$hasTexture = 1; - $par1 = var$9; - $var3.$textureU = $par1; - $var3.$textureV = $var11; - nlea_Tessellator_addVertex($var3, 1.0, (-1.0), (-0.5)); - var$9 = $var12; - $var3.$hasTexture = 1; - $var3.$textureU = $par1; - $par1 = var$9; - $var3.$textureV = $par1; - nlea_Tessellator_addVertex($var3, 1.0, 1.0, (-0.5)); - $var3.$hasTexture = 1; - $var3.$textureU = $var4; - $var3.$textureV = $par1; - nlea_Tessellator_addVertex($var3, (-1.0), 1.0, (-0.5)); - nlea_Tessellator_draw($var3); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; -} -function nms_ItemRenderer_renderWarpedTextureOverlay($this, $par1) { - var $var2, $var3, $var10, $var11, var$6, var$7, $var4, var$9; - nlea_Tessellator_$callClinit(); - $var2 = nlea_Tessellator_instance; - $var3 = nms_Entity_getBrightness($this.$mc8.$thePlayer, $par1); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = $var3; - nleg_EaglerAdapterGL30_colorG = $var3; - nleg_EaglerAdapterGL30_colorB = $var3; - nleg_EaglerAdapterGL30_colorA = 0.5; - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glPushMatrix(); - $var10 = -$this.$mc8.$thePlayer.$rotationYaw / 64.0; - $var11 = $this.$mc8.$thePlayer.$rotationPitch / 64.0; - nlea_Tessellator_startDrawing($var2, 98); - var$6 = 4.0 + $var10; - var$7 = 4.0 + $var11; - $var2.$hasTexture = 1; - $var4 = var$6; - $var2.$textureU = $var4; - var$9 = var$7; - $var2.$textureV = var$9; - nlea_Tessellator_addVertex($var2, (-1.0), (-1.0), (-0.5)); - var$7 = 0.0 + $var10; - $var2.$hasTexture = 1; - $var3 = var$7; - $var2.$textureU = $var3; - $var2.$textureV = var$9; - nlea_Tessellator_addVertex($var2, 1.0, (-1.0), (-0.5)); - var$7 = 0.0 + $var11; - $var2.$hasTexture = 1; - $var2.$textureU = $var3; - $par1 = var$7; - $var2.$textureV = $par1; - nlea_Tessellator_addVertex($var2, 1.0, 1.0, (-0.5)); - $var2.$hasTexture = 1; - $var2.$textureU = $var4; - $var2.$textureV = $par1; - nlea_Tessellator_addVertex($var2, (-1.0), 1.0, (-0.5)); - nlea_Tessellator_draw($var2); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(16); -} -function nms_ItemRenderer_renderFireInFirstPerson($this, $par1) { - var $var2, $var4, $var5, $var6, $var7, $var8, $var9, var$9, var$10, var$11, var$12, var$13, var$14, var$15; - nlea_Tessellator_$callClinit(); - $var2 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 0.8999999761581421; - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - $var4 = 0; - while ($var4 < 2) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_Block_$callClinit(); - $var5 = nms_Block_fire.$iconArray0.data[1]; - $var6 = $var5.$getMinU(); - $var7 = $var5.$getMaxU(); - $var8 = $var5.$getMinV(); - $var9 = $var5.$getMaxV(); - var$9 = ($var4 * 2 | 0) - 1 | 0; - $par1 = -var$9 * 0.23999999463558197; - $var5 = nleg_EaglerAdapterGL30_deevis; - $var5.$x = $par1; - $var5.$y = (-0.30000001192092896); - $var5.$z = 0.0; - $var5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var5, $var5); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - $var5 = new jl_StringBuilder; - $var5.$buffer = $rt_createCharArray(16); - var$10.$sb = $var5; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - $var5 = new jnci_UTF8Charset; - jnc_Charset__init_($var5, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = $var5; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - nleg_EaglerAdapterGL30_glRotatef(var$9 * 10.0, 0.0, 1.0, 0.0); - nlea_Tessellator_startDrawing($var2, 98); - var$13 = $var7; - var$14 = $var9; - $var2.$hasTexture = 1; - var$15 = var$13; - $var2.$textureU = var$15; - $par1 = var$14; - $var2.$textureV = $par1; - nlea_Tessellator_addVertex($var2, (-0.5), (-0.5), (-0.5)); - var$14 = $var6; - $var2.$hasTexture = 1; - $var6 = var$14; - $var2.$textureU = $var6; - $var2.$textureV = $par1; - nlea_Tessellator_addVertex($var2, 0.5, (-0.5), (-0.5)); - var$14 = $var8; - $var2.$hasTexture = 1; - $var2.$textureU = $var6; - $par1 = var$14; - $var2.$textureV = $par1; - nlea_Tessellator_addVertex($var2, 0.5, 0.5, (-0.5)); - $var2.$hasTexture = 1; - $var2.$textureU = var$15; - $var2.$textureV = $par1; - nlea_Tessellator_addVertex($var2, (-0.5), 0.5, (-0.5)); - nlea_Tessellator_draw($var2); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var4 = $var4 + 1 | 0; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(16); -} -function nms_ItemRenderer_updateEquippedItem($this) { - var $var1, $var2, $var3, $var4, $var6, $var5; - $this.$prevEquippedProgress = $this.$equippedProgress; - $var1 = $this.$mc8.$thePlayer; - $var2 = nms_InventoryPlayer_getCurrentItem($var1.$inventory); - $var3 = $this.$equippedItemSlot == $var1.$inventory.$currentItem && $var2 === $this.$itemToRender ? 1 : 0; - if ($this.$itemToRender === null && $var2 === null) - $var3 = 1; - if ($var2 !== null && $this.$itemToRender !== null && $var2 !== $this.$itemToRender && $var2.$itemID0 == $this.$itemToRender.$itemID0 && $var2.$itemDamage == $this.$itemToRender.$itemDamage) { - $this.$itemToRender = $var2; - $var3 = 1; - } - $var4 = 0.4000000059604645; - $var6 = (!$var3 ? 0.0 : 1.0) - $this.$equippedProgress; - $var5 = (-0.4000000059604645); - if ($var6 >= $var5) - $var5 = $var6; - if ($var5 <= $var4) - $var4 = $var5; - $this.$equippedProgress = $this.$equippedProgress + $var4; - if ($this.$equippedProgress < 0.10000000149011612) { - $this.$itemToRender = $var2; - $this.$equippedItemSlot = $var1.$inventory.$currentItem; - } -} -function nms_ItemRenderer_resetEquippedProgress($this) { - $this.$equippedProgress = 0.0; -} -function nms_ItemRenderer_resetEquippedProgress2($this) { - $this.$equippedProgress = 0.0; -} -function nms_ItemRenderer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_ItemRenderer_terrain = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(647); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_ItemRenderer_items = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(796); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_ItemRenderer_glint = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(797); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_ItemRenderer_mapbg = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(798); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_ItemRenderer_water = var$1; -} -function nms_AchievementList() { - jl_Object.call(this); -} -var nms_AchievementList_minDisplayColumn = 0; -var nms_AchievementList_minDisplayRow = 0; -var nms_AchievementList_maxDisplayColumn = 0; -var nms_AchievementList_maxDisplayRow = 0; -var nms_AchievementList_achievementList = null; -var nms_AchievementList_openInventory = null; -var nms_AchievementList_mineWood = null; -var nms_AchievementList_buildWorkBench = null; -var nms_AchievementList_buildPickaxe = null; -var nms_AchievementList_buildFurnace = null; -var nms_AchievementList_acquireIron = null; -var nms_AchievementList_buildHoe = null; -var nms_AchievementList_makeBread = null; -var nms_AchievementList_bakeCake = null; -var nms_AchievementList_buildBetterPickaxe = null; -var nms_AchievementList_cookFish = null; -var nms_AchievementList_onARail = null; -var nms_AchievementList_buildSword = null; -var nms_AchievementList_killEnemy = null; -var nms_AchievementList_killCow = null; -var nms_AchievementList_flyPig = null; -var nms_AchievementList_snipeSkeleton = null; -var nms_AchievementList_diamonds = null; -var nms_AchievementList_portal = null; -var nms_AchievementList_ghast = null; -var nms_AchievementList_blazeRod = null; -var nms_AchievementList_potion = null; -var nms_AchievementList_theEnd = null; -var nms_AchievementList_theEnd2 = null; -var nms_AchievementList_enchantments = null; -var nms_AchievementList_overkill = null; -var nms_AchievementList_bookcase = null; -function nms_AchievementList_$callClinit() { - nms_AchievementList_$callClinit = $rt_eraseClinit(nms_AchievementList); - nms_AchievementList__clinit_(); -} -function nms_AchievementList__init_0() { - var var_0 = new nms_AchievementList(); - nms_AchievementList__init_(var_0); - return var_0; -} -function nms_AchievementList__init_($this) { - nms_AchievementList_$callClinit(); -} -function nms_AchievementList__clinit_() { - var var$1, var$2; - nms_AchievementList_achievementList = ju_ArrayList__init_0(); - var$1 = new nms_Achievement; - nms_Item_$callClinit(); - nms_Achievement__init_(var$1, 0, $rt_s(799), 0, 0, nms_Item_book, null); - nms_AchievementList_openInventory = nms_Achievement_registerAchievement(nms_Achievement_setIndependent(var$1)); - var$2 = new nms_Achievement; - nms_Block_$callClinit(); - nms_Achievement__init_0(var$2, 1, $rt_s(800), 2, 1, nms_Block_wood, nms_AchievementList_openInventory); - nms_AchievementList_mineWood = nms_Achievement_registerAchievement(var$2); - nms_AchievementList_buildWorkBench = nms_Achievement_registerAchievement(nms_Achievement__init_1(2, $rt_s(801), 4, (-1), nms_Block_workbench, nms_AchievementList_mineWood)); - nms_AchievementList_buildPickaxe = nms_Achievement_registerAchievement(nms_Achievement__init_2(3, $rt_s(802), 4, 2, nms_Item_pickaxeWood, nms_AchievementList_buildWorkBench)); - nms_AchievementList_buildFurnace = nms_Achievement_registerAchievement(nms_Achievement__init_1(4, $rt_s(803), 3, 4, nms_Block_furnaceIdle, nms_AchievementList_buildPickaxe)); - nms_AchievementList_acquireIron = nms_Achievement_registerAchievement(nms_Achievement__init_2(5, $rt_s(804), 1, 4, nms_Item_ingotIron, nms_AchievementList_buildFurnace)); - nms_AchievementList_buildHoe = nms_Achievement_registerAchievement(nms_Achievement__init_2(6, $rt_s(805), 2, (-3), nms_Item_hoeWood, nms_AchievementList_buildWorkBench)); - nms_AchievementList_makeBread = nms_Achievement_registerAchievement(nms_Achievement__init_2(7, $rt_s(806), (-1), (-3), nms_Item_bread, nms_AchievementList_buildHoe)); - nms_AchievementList_bakeCake = nms_Achievement_registerAchievement(nms_Achievement__init_2(8, $rt_s(807), 0, (-5), nms_Item_cake, nms_AchievementList_buildHoe)); - nms_AchievementList_buildBetterPickaxe = nms_Achievement_registerAchievement(nms_Achievement__init_2(9, $rt_s(808), 6, 2, nms_Item_pickaxeStone, nms_AchievementList_buildPickaxe)); - nms_AchievementList_cookFish = nms_Achievement_registerAchievement(nms_Achievement__init_2(10, $rt_s(809), 2, 6, nms_Item_fishCooked, nms_AchievementList_buildFurnace)); - nms_AchievementList_onARail = nms_Achievement_registerAchievement(nms_Achievement_setSpecial(nms_Achievement__init_1(11, $rt_s(810), 2, 3, nms_Block_rail, nms_AchievementList_acquireIron))); - nms_AchievementList_buildSword = nms_Achievement_registerAchievement(nms_Achievement__init_2(12, $rt_s(811), 6, (-1), nms_Item_swordWood, nms_AchievementList_buildWorkBench)); - nms_AchievementList_killEnemy = nms_Achievement_registerAchievement(nms_Achievement__init_2(13, $rt_s(812), 8, (-1), nms_Item_bone, nms_AchievementList_buildSword)); - nms_AchievementList_killCow = nms_Achievement_registerAchievement(nms_Achievement__init_2(14, $rt_s(813), 7, (-3), nms_Item_leather, nms_AchievementList_buildSword)); - nms_AchievementList_flyPig = nms_Achievement_registerAchievement(nms_Achievement_setSpecial(nms_Achievement__init_2(15, $rt_s(814), 8, (-4), nms_Item_saddle, nms_AchievementList_killCow))); - nms_AchievementList_snipeSkeleton = nms_Achievement_registerAchievement(nms_Achievement_setSpecial(nms_Achievement__init_2(16, $rt_s(815), 7, 0, nms_Item_bow, nms_AchievementList_killEnemy))); - nms_AchievementList_diamonds = nms_Achievement_registerAchievement(nms_Achievement__init_2(17, $rt_s(816), (-1), 5, nms_Item_diamond, nms_AchievementList_acquireIron)); - nms_AchievementList_portal = nms_Achievement_registerAchievement(nms_Achievement__init_1(18, $rt_s(716), (-1), 7, nms_Block_obsidian, nms_AchievementList_diamonds)); - nms_AchievementList_ghast = nms_Achievement_registerAchievement(nms_Achievement_setSpecial(nms_Achievement__init_2(19, $rt_s(817), (-4), 8, nms_Item_ghastTear, nms_AchievementList_portal))); - nms_AchievementList_blazeRod = nms_Achievement_registerAchievement(nms_Achievement__init_2(20, $rt_s(818), 0, 9, nms_Item_blazeRod, nms_AchievementList_portal)); - nms_AchievementList_potion = nms_Achievement_registerAchievement(nms_Achievement__init_2(21, $rt_s(819), 2, 8, nms_Item_potion, nms_AchievementList_blazeRod)); - nms_AchievementList_theEnd = nms_Achievement_registerAchievement(nms_Achievement_setSpecial(nms_Achievement__init_2(22, $rt_s(820), 3, 10, nms_Item_eyeOfEnder, nms_AchievementList_blazeRod))); - nms_AchievementList_theEnd2 = nms_Achievement_registerAchievement(nms_Achievement_setSpecial(nms_Achievement__init_1(23, $rt_s(821), 4, 13, nms_Block_dragonEgg, nms_AchievementList_theEnd))); - nms_AchievementList_enchantments = nms_Achievement_registerAchievement(nms_Achievement__init_1(24, $rt_s(822), (-4), 4, nms_Block_enchantmentTable, nms_AchievementList_diamonds)); - nms_AchievementList_overkill = nms_Achievement_registerAchievement(nms_Achievement_setSpecial(nms_Achievement__init_2(25, $rt_s(823), (-4), 1, nms_Item_swordDiamond, nms_AchievementList_enchantments))); - nms_AchievementList_bookcase = nms_Achievement_registerAchievement(nms_Achievement__init_1(26, $rt_s(824), (-3), 6, nms_Block_bookShelf, nms_AchievementList_enchantments)); - ji_PrintStream_println0(jl_System_out(), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder__init_(), ju_ArrayList_size(nms_AchievementList_achievementList)), $rt_s(825)))); -} -function nms_IStatStringFormat() { -} -function nms_StatStringFormatKeyInv() { - jl_Object.call(this); - this.$mc1 = null; -} -function nms_MouseHelper() { - var a = this; jl_Object.call(a); - a.$field_85184_d = null; - a.$deltaX = 0; - a.$deltaY = 0; -} -function nms_MouseHelper_grabMouseCursor($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_canvas.requestPointerLock(); - $this.$deltaX = 0; - $this.$deltaY = 0; -} -function nms_MouseHelper_ungrabMouseCursor($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_doc.exitPointerLock(); -} -function nms_MouseHelper_mouseXYChange($this) { - var var$1; - nlea_EaglerAdapterImpl2_$callClinit(); - var$1 = nlea_EaglerAdapterImpl2_mouseDX; - nlea_EaglerAdapterImpl2_mouseDX = 0.0; - $this.$deltaX = var$1 | 0; - var$1 = nlea_EaglerAdapterImpl2_mouseDY; - nlea_EaglerAdapterImpl2_mouseDY = 0.0; - $this.$deltaY = var$1 | 0; -} -function nms_IWorldAccess() { -} -function nms_RenderGlobal() { - var a = this; jl_Object.call(a); - a.$tileEntities = null; - a.$theWorld0 = null; - a.$renderEngine2 = null; - a.$worldRenderersToUpdate = null; - a.$sortedWorldRenderers = null; - a.$worldRenderers = null; - a.$renderChunksWide = 0; - a.$renderChunksTall = 0; - a.$renderChunksDeep = 0; - a.$glRenderListBase = 0; - a.$glOcclusionQuery = null; - a.$mc9 = null; - a.$globalRenderBlocks = null; - a.$cloudTickCounter = 0; - a.$starGLCallList = 0; - a.$glSkyList = 0; - a.$glSkyList2 = 0; - a.$minBlockX = 0; - a.$minBlockY = 0; - a.$minBlockZ = 0; - a.$maxBlockX = 0; - a.$maxBlockY = 0; - a.$maxBlockZ = 0; - a.$damagedBlocks = null; - a.$destroyBlockIcons = null; - a.$renderDistance1 = 0; - a.$renderEntitiesStartupCounter = 0; - a.$countEntitiesTotal = 0; - a.$countEntitiesRendered = 0; - a.$countEntitiesHidden = 0; - a.$dummyBuf50k = null; - a.$renderersLoaded = 0; - a.$renderersBeingClipped = 0; - a.$renderersBeingOccluded = 0; - a.$renderersBeingRendered = 0; - a.$renderersSkippingRenderPass = 0; - a.$dummyRenderInt = 0; - a.$worldRenderersCheckIndex = 0; - a.$glRenderLists = null; - a.$allRenderLists = null; - a.$prevSortX = 0.0; - a.$prevSortY = 0.0; - a.$prevSortZ = 0.0; - a.$frustumCheckOffset = 0; - a.$lastOcclusionQuery = Long_ZERO; - a.$occlusionQueryAvailable = 0; -} -var nms_RenderGlobal_tunnel = null; -var nms_RenderGlobal_sun = null; -var nms_RenderGlobal_moon = null; -var nms_RenderGlobal_tex_clouds = null; -var nms_RenderGlobal_tex_terrain = null; -function nms_RenderGlobal__init_(var_0, var_1) { - var var_2 = new nms_RenderGlobal(); - nms_RenderGlobal__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_RenderGlobal__init_0($this, $par1Minecraft, $par2RenderEngine) { - var $var5, var$4, var$5, $i, $var9, $var10, var$9, var$10, var$11; - $var5 = new ju_ArrayList; - $var5.$array1 = $rt_createArray(jl_Object, 10); - $this.$tileEntities = $var5; - $var5 = new ju_ArrayList; - $var5.$array1 = $rt_createArray(jl_Object, 10); - $this.$worldRenderersToUpdate = $var5; - $this.$cloudTickCounter = 0; - $this.$damagedBlocks = ju_HashMap__init_1(16, 0.75); - $this.$renderDistance1 = (-1); - $this.$renderEntitiesStartupCounter = 2; - $this.$dummyBuf50k = $rt_createIntArray(50000); - $var5 = new ju_ArrayList; - $var5.$array1 = $rt_createArray(jl_Object, 10); - $this.$glRenderLists = $var5; - var$4 = $rt_createArray(nms_RenderList, 4); - var$5 = var$4.data; - var$5[0] = nms_RenderList__init_0(); - var$5[1] = nms_RenderList__init_0(); - var$5[2] = nms_RenderList__init_0(); - var$5[3] = nms_RenderList__init_0(); - $this.$allRenderLists = var$4; - $this.$prevSortX = (-9999.0); - $this.$prevSortY = (-9999.0); - $this.$prevSortZ = (-9999.0); - $this.$frustumCheckOffset = 0; - $this.$lastOcclusionQuery = Long_ZERO; - $this.$occlusionQueryAvailable = 0; - $this.$mc9 = $par1Minecraft; - $this.$renderEngine2 = $par2RenderEngine; - $this.$glRenderListBase = nms_GLAllocation_generateDisplayLists(36992); - $this.$glOcclusionQuery = $rt_createIntArray(18496); - $i = 0; - while ($i < $this.$glOcclusionQuery.data.length) { - $this.$glOcclusionQuery.data[$i] = (-1); - $i = $i + 1 | 0; - } - $this.$starGLCallList = nms_GLAllocation_generateDisplayLists(3); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glNewList($this.$starGLCallList, 56); - nms_RenderGlobal_renderStars($this); - nleg_EaglerAdapterGL30_glEndList(); - nleg_EaglerAdapterGL30_glPopMatrix(); - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - $this.$glSkyList = $this.$starGLCallList + 1 | 0; - nleg_EaglerAdapterGL30_glNewList($this.$glSkyList, 56); - $var9 = (-384); - while ($var9 <= 384) { - $var10 = (-384); - while ($var10 <= 384) { - nlea_Tessellator_startDrawing($var5, 98); - var$9 = $var9 + 0 | 0; - var$10 = $var10 + 0 | 0; - nlea_Tessellator_addVertex($var5, var$9, 16.0, var$10); - var$11 = $var9 + 64 | 0; - nlea_Tessellator_addVertex($var5, var$11, 16.0, var$10); - $var10 = $var10 + 64 | 0; - var$10 = $var10; - nlea_Tessellator_addVertex($var5, var$11, 16.0, var$10); - nlea_Tessellator_addVertex($var5, var$9, 16.0, var$10); - nlea_Tessellator_draw($var5); - } - $var9 = $var9 + 64 | 0; - } - nleg_EaglerAdapterGL30_glEndList(); - $this.$glSkyList2 = $this.$starGLCallList + 2 | 0; - nleg_EaglerAdapterGL30_glNewList($this.$glSkyList2, 56); - nlea_Tessellator_startDrawing($var5, 98); - $i = (-384); - while ($i <= 384) { - $var10 = (-384); - while ($var10 <= 384) { - var$9 = $i + 64 | 0; - var$10 = $var10 + 0 | 0; - nlea_Tessellator_addVertex($var5, var$9, (-16.0), var$10); - var$11 = $i + 0 | 0; - nlea_Tessellator_addVertex($var5, var$11, (-16.0), var$10); - $var10 = $var10 + 64 | 0; - var$10 = $var10; - nlea_Tessellator_addVertex($var5, var$11, (-16.0), var$10); - nlea_Tessellator_addVertex($var5, var$9, (-16.0), var$10); - } - $i = $i + 64 | 0; - } - nlea_Tessellator_draw($var5); - nleg_EaglerAdapterGL30_glEndList(); -} -function nms_RenderGlobal_renderStars($this) { - var $var2, $var3, $var4, $var6, $var8, $var10, $var12, $var36, $var14, $var16, $var18, $var20, $var22, $var24, $var26, $var28, $var30, $var32, $var34, $var38, $var41, $var43, $var47, $var49, $var53, $var55, $var57, $var61; - nlea_Tessellator_$callClinit(); - $var2 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var2, 98); - $var3 = 0; - while ($var3 < 1500) { - a: { - $var4 = Math.random() * 2.0 - 1.0; - $var6 = Math.random() * 2.0 - 1.0; - $var8 = Math.random() * 2.0 - 1.0; - $var10 = 0.15000000596046448 + Math.random() * 0.10000000149011612; - $var12 = $var4 * $var4 + $var6 * $var6 + $var8 * $var8; - if ($var12 < 1.0 && $var12 > 0.01) { - $var12 = 1.0 / jl_Math_sqrt($var12); - $var4 = $var4 * $var12; - $var36 = $var6 * $var12; - $var12 = $var8 * $var12; - $var14 = $var4 * 100.0; - $var16 = $var36 * 100.0; - $var18 = $var12 * 100.0; - $var20 = jl_Math_atan2($var4, $var12); - $var22 = jl_Math_sin($var20); - $var24 = jl_Math_cos($var20); - $var26 = jl_Math_atan2(jl_Math_sqrt($var4 * $var4 + $var12 * $var12), $var36); - $var28 = jl_Math_sin($var26); - $var30 = jl_Math_cos($var26); - $var32 = Math.random() * 3.141592653589793 * 2.0; - $var34 = jl_Math_sin($var32); - $var36 = jl_Math_cos($var32); - $var38 = 0; - $var12 = 0.0 * $var30; - $var6 = 0.0 * $var28; - while (true) { - if ($var38 >= 4) - break a; - $var41 = (($var38 & 2) - 1 | 0) * $var10; - $var38 = $var38 + 1 | 0; - $var43 = (($var38 & 2) - 1 | 0) * $var10; - $var47 = $var41 * $var36 - $var43 * $var34; - $var49 = $var43 * $var36 + $var41 * $var34; - $var53 = $var47 * $var28 + $var12; - $var55 = $var6 - $var47 * $var30; - $var57 = $var55 * $var22 - $var49 * $var24; - $var61 = $var49 * $var22 + $var55 * $var24; - nlea_Tessellator_addVertex($var2, $var14 + $var57, $var16 + $var53, $var18 + $var61); - } - } - } - $var3 = $var3 + 1 | 0; - } - nlea_Tessellator_draw($var2); -} -function nms_RenderGlobal_setWorldAndLoadRenderers($this, $par1WorldClient) { - var var$2, var$3; - if ($this.$theWorld0 !== null) { - var$2 = $this.$theWorld0.$worldAccesses; - var$3 = ju_AbstractList_indexOf(var$2, $this); - if (var$3 >= 0) - ju_ArrayList_remove(var$2, var$3); - } - $this.$prevSortX = (-9999.0); - $this.$prevSortY = (-9999.0); - $this.$prevSortZ = (-9999.0); - nms_RenderManager_instance.$worldObj1 = $par1WorldClient; - $this.$theWorld0 = $par1WorldClient; - $this.$globalRenderBlocks = nms_RenderBlocks__init_0($par1WorldClient); - if ($par1WorldClient !== null) { - ju_ArrayList_add($par1WorldClient.$worldAccesses, $this); - nms_RenderGlobal_loadRenderers($this); - } -} -function nms_RenderGlobal_loadRenderers($this) { - var $var7, $var1, $var2, $var3, $var4, var$6, $var5, $var6, $i, var$10, var$11, var$12; - a: { - if ($this.$theWorld0 !== null) { - nms_Block_$callClinit(); - $var7 = nms_Block_leaves; - $var1 = $this.$mc9.$gameSettings.$fancyGraphics; - $var7.$graphicsLevel = $var1; - $var1 = !$var1 ? 1 : 0; - b: { - $var7.$field_94394_cP = $var1; - $this.$renderDistance1 = $this.$mc9.$gameSettings.$renderDistance; - if ($this.$worldRenderers !== null) { - $var1 = 0; - while (true) { - if ($var1 >= $this.$worldRenderers.data.length) - break b; - $var7 = $this.$worldRenderers.data[$var1]; - nms_WorldRenderer_setDontDraw($var7); - $var7.$worldObj2 = null; - $var1 = $var1 + 1 | 0; - } - } - } - $var1 = 64 << (3 - $this.$renderDistance1 | 0); - if ($var1 > 400) - $var1 = 400; - $var1 = ($var1 / 16 | 0) + 1 | 0; - $this.$renderChunksWide = $var1; - $this.$renderChunksTall = 16; - $this.$renderChunksDeep = $var1; - $this.$worldRenderers = $rt_createArray(nms_WorldRenderer, $rt_imul($rt_imul($this.$renderChunksWide, $this.$renderChunksTall), $this.$renderChunksDeep)); - $this.$sortedWorldRenderers = $rt_createArray(nms_WorldRenderer, $rt_imul($rt_imul($this.$renderChunksWide, $this.$renderChunksTall), $this.$renderChunksDeep)); - $var2 = 0; - $var3 = 0; - $this.$minBlockX = 0; - $this.$minBlockY = 0; - $this.$minBlockZ = 0; - $this.$maxBlockX = $this.$renderChunksWide; - $this.$maxBlockY = $this.$renderChunksTall; - $this.$maxBlockZ = $this.$renderChunksDeep; - $var4 = 0; - while (true) { - if ($var4 >= $this.$worldRenderersToUpdate.$size0) { - $var7 = $this.$worldRenderersToUpdate; - ju_Arrays_fill($var7.$array1, 0, $var7.$size0, null); - $var7.$size0 = 0; - $var7 = $this.$tileEntities; - ju_Arrays_fill($var7.$array1, 0, $var7.$size0, null); - $var7.$size0 = 0; - var$6 = 0; - while (var$6 < $this.$renderChunksWide) { - $var5 = 0; - while ($var5 < $this.$renderChunksTall) { - $var6 = 0; - while ($var6 < $this.$renderChunksDeep) { - $i = $rt_imul($rt_imul($var6, $this.$renderChunksTall) + $var5 | 0, $this.$renderChunksWide) + var$6 | 0; - $this.$worldRenderers.data[$i] = nms_WorldRenderer__init_($this.$theWorld0, $this.$tileEntities, var$6 * 16 | 0, $var5 * 16 | 0, $var6 * 16 | 0, $this.$glRenderListBase + $var2 | 0); - $this.$worldRenderers.data[$i].$isWaitingOnOcclusionQuery = 0; - $this.$worldRenderers.data[$i].$isVisible = 1; - $this.$worldRenderers.data[$i].$isInFrustum = 1; - $var7 = $this.$worldRenderers.data[$i]; - $var1 = $var3 + 1 | 0; - $var7.$chunkIndex = $var3; - $this.$worldRenderers.data[$i].$needsUpdate = 1; - $this.$sortedWorldRenderers.data[$i] = $this.$worldRenderers.data[$i]; - ju_ArrayList_add($this.$worldRenderersToUpdate, $this.$worldRenderers.data[$i]); - $var2 = $var2 + 2 | 0; - $var6 = $var6 + 1 | 0; - $var3 = $var1; - } - $var5 = $var5 + 1 | 0; - } - var$6 = var$6 + 1 | 0; - } - if ($this.$theWorld0 !== null) { - $var7 = $this.$mc9.$renderViewEntity; - if ($var7 !== null) { - var$10 = $var7.$posX; - $var4 = var$10 | 0; - if (var$10 < $var4) - $var4 = $var4 - 1 | 0; - var$10 = $var7.$posY; - $var3 = var$10 | 0; - if (var$10 < $var3) - $var3 = $var3 - 1 | 0; - var$10 = $var7.$posZ; - $var2 = var$10 | 0; - if (var$10 < $var2) - $var2 = $var2 - 1 | 0; - nms_RenderGlobal_markRenderersForNewPosition($this, $var4, $var3, $var2); - var$11 = $this.$sortedWorldRenderers; - var$12 = new nms_EntitySorter; - var$12.$entityPosX = -$var7.$posX; - var$12.$entityPosY = -$var7.$posY; - var$12.$entityPosZ = -$var7.$posZ; - var$12.$reverse = 0; - ju_Arrays_sort(var$11, var$12); - } - } - $this.$renderEntitiesStartupCounter = 2; - break a; - } - $var7 = $this.$worldRenderersToUpdate; - if ($var4 < 0) - break; - if ($var4 >= $var7.$size0) - break; - $var7.$array1.data[$var4].$needsUpdate = 0; - $var4 = $var4 + 1 | 0; - } - $var7 = new jl_IndexOutOfBoundsException; - $var7.$suppressionEnabled = 1; - $var7.$writableStackTrace = 1; - $rt_throw($var7); - } - } -} -function nms_RenderGlobal_renderEntities($this, $par1Vec3, $par2ICamera, $par3) { - var $var4, var$5, var$6, var$7, $var7, $var5, $var6, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2ICamera = $thread.pop();$par1Vec3 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($this.$renderEntitiesStartupCounter > 0) - $this.$renderEntitiesStartupCounter = $this.$renderEntitiesStartupCounter - 1 | 0; - else { - nms_Profiler_startSection($this.$theWorld0.$theProfiler, $rt_s(826)); - nms_TileEntityRenderer_$callClinit(); - nms_TileEntityRenderer_cacheActiveRenderInfo(nms_TileEntityRenderer_instance, $this.$theWorld0, $this.$renderEngine2, $this.$mc9.$fontRenderer, $this.$mc9.$renderViewEntity, $par3); - nms_RenderManager_cacheActiveRenderInfo(nms_RenderManager_instance, $this.$theWorld0, $this.$renderEngine2, $this.$mc9.$fontRenderer, $this.$mc9.$renderViewEntity, $this.$mc9.$pointedEntityLiving, $this.$mc9.$gameSettings, $par3); - $this.$countEntitiesTotal = 0; - $this.$countEntitiesRendered = 0; - $this.$countEntitiesHidden = 0; - $var4 = $this.$mc9.$renderViewEntity; - var$5 = $var4.$lastTickPosX; - var$6 = $var4.$posX - $var4.$lastTickPosX; - var$7 = $par3; - nms_RenderManager_renderPosX = var$5 + var$6 * var$7; - nms_RenderManager_renderPosY = $var4.$lastTickPosY + ($var4.$posY - $var4.$lastTickPosY) * var$7; - nms_RenderManager_renderPosZ = $var4.$lastTickPosZ + ($var4.$posZ - $var4.$lastTickPosZ) * var$7; - nms_TileEntityRenderer_staticPlayerX = $var4.$lastTickPosX + ($var4.$posX - $var4.$lastTickPosX) * var$7; - nms_TileEntityRenderer_staticPlayerY = $var4.$lastTickPosY + ($var4.$posY - $var4.$lastTickPosY) * var$7; - nms_TileEntityRenderer_staticPlayerZ = $var4.$lastTickPosZ + ($var4.$posZ - $var4.$lastTickPosZ) * var$7; - nms_EntityRenderer_enableLightmap($this.$mc9.$entityRenderer, var$7); - $var7 = $this.$theWorld0.$theProfiler; - nms_Profiler_endSection($var7); - nms_Profiler_startSection($var7, $rt_s(658)); - $var5 = $this.$theWorld0.$loadedEntityList; - $this.$countEntitiesTotal = $var5.$size0; - $var6 = 0; - while (true) { - if ($var6 >= $this.$theWorld0.$weatherEffects.$size0) { - $var7 = $this.$theWorld0.$theProfiler; - nms_Profiler_endSection($var7); - nms_Profiler_startSection($var7, $rt_s(634)); - $var6 = 0; - while (true) { - if ($var6 >= $var5.$size0) { - $par1Vec3 = $this.$theWorld0.$theProfiler; - nms_Profiler_endSection($par1Vec3); - nms_Profiler_startSection($par1Vec3, $rt_s(827)); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - $var6 = 0; - if ($var6 < ju_ArrayList_size($this.$tileEntities)) { - $par1Vec3 = nms_TileEntityRenderer_instance; - $par2ICamera = ju_ArrayList_get($this.$tileEntities, $var6); - $ptr = 2; - continue main; - } - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glDisable(2); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_defaultTexUnit); - nms_Profiler_endSection($this.$theWorld0.$theProfiler); - break a; - } - if ($var6 < 0) - break; - if ($var6 >= $var5.$size0) - break; - $var7 = $var5.$array1.data[$var6]; - if ($var7.$isInRangeToRenderVec3D($par1Vec3) && !(!$var7.$ignoreFrustumCheck && !nms_Frustrum_isBoundingBoxInFrustum($par2ICamera, $var7.$boundingBox) && $var7.$riddenByEntity !== $this.$mc9.$thePlayer) && !($var7 === $this.$mc9.$renderViewEntity && !$this.$mc9.$gameSettings.$thirdPersonView && !$this.$mc9.$renderViewEntity.$sleeping)) { - $var4 = $this.$theWorld0; - var$5 = $var7.$posX; - var$11 = var$5 | 0; - if (var$5 < var$11) - var$11 = var$11 - 1 | 0; - var$5 = $var7.$posZ; - var$12 = var$5 | 0; - if (var$5 < var$12) - var$12 = var$12 - 1 | 0; - if (nms_World_blockExists($var4, var$11, 0, var$12)) { - $this.$countEntitiesRendered = $this.$countEntitiesRendered + 1 | 0; - $var4 = nms_RenderManager_instance; - $ptr = 3; - continue main; - } - } - $var6 = $var6 + 1 | 0; - } - $par1Vec3 = new jl_IndexOutOfBoundsException; - $par1Vec3.$suppressionEnabled = 1; - $par1Vec3.$writableStackTrace = 1; - $rt_throw($par1Vec3); - } - $var7 = $this.$theWorld0.$weatherEffects; - if ($var6 < 0) - break; - if ($var6 >= $var7.$size0) - break; - $var7 = $var7.$array1.data[$var6]; - $this.$countEntitiesRendered = $this.$countEntitiesRendered + 1 | 0; - if ($var7.$isInRangeToRenderVec3D($par1Vec3)) { - $var4 = nms_RenderManager_instance; - $ptr = 1; - continue main; - } - $var6 = $var6 + 1 | 0; - } - $par1Vec3 = new jl_IndexOutOfBoundsException; - $par1Vec3.$suppressionEnabled = 1; - $par1Vec3.$writableStackTrace = 1; - $rt_throw($par1Vec3); - } - } - return; - case 1: - nms_RenderManager_renderEntity($var4, $var7, $par3); - if ($rt_suspending()) { - break main; - } - while (true) { - $var6 = $var6 + 1 | 0; - if ($var6 >= $this.$theWorld0.$weatherEffects.$size0) { - $var7 = $this.$theWorld0.$theProfiler; - nms_Profiler_endSection($var7); - nms_Profiler_startSection($var7, $rt_s(634)); - $var6 = 0; - while (true) { - if ($var6 >= $var5.$size0) { - $par1Vec3 = $this.$theWorld0.$theProfiler; - nms_Profiler_endSection($par1Vec3); - nms_Profiler_startSection($par1Vec3, $rt_s(827)); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - $var6 = 0; - if ($var6 >= ju_ArrayList_size($this.$tileEntities)) { - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glDisable(2); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_defaultTexUnit); - nms_Profiler_endSection($this.$theWorld0.$theProfiler); - return; - } - $par1Vec3 = nms_TileEntityRenderer_instance; - $par2ICamera = ju_ArrayList_get($this.$tileEntities, $var6); - $ptr = 2; - continue main; - } - if ($var6 < 0) - break; - if ($var6 >= $var5.$size0) - break; - $var7 = $var5.$array1.data[$var6]; - if ($var7.$isInRangeToRenderVec3D($par1Vec3) && !(!$var7.$ignoreFrustumCheck && !nms_Frustrum_isBoundingBoxInFrustum($par2ICamera, $var7.$boundingBox) && $var7.$riddenByEntity !== $this.$mc9.$thePlayer) && !($var7 === $this.$mc9.$renderViewEntity && !$this.$mc9.$gameSettings.$thirdPersonView && !$this.$mc9.$renderViewEntity.$sleeping)) { - $var4 = $this.$theWorld0; - var$5 = $var7.$posX; - var$11 = var$5 | 0; - if (var$5 < var$11) - var$11 = var$11 - 1 | 0; - var$5 = $var7.$posZ; - var$12 = var$5 | 0; - if (var$5 < var$12) - var$12 = var$12 - 1 | 0; - if (nms_World_blockExists($var4, var$11, 0, var$12)) { - $this.$countEntitiesRendered = $this.$countEntitiesRendered + 1 | 0; - $var4 = nms_RenderManager_instance; - $ptr = 3; - continue main; - } - } - $var6 = $var6 + 1 | 0; - } - $par1Vec3 = new jl_IndexOutOfBoundsException; - $par1Vec3.$suppressionEnabled = 1; - $par1Vec3.$writableStackTrace = 1; - $rt_throw($par1Vec3); - } - $var7 = $this.$theWorld0.$weatherEffects; - if ($var6 < 0) - break; - if ($var6 >= $var7.$size0) - break; - $var7 = $var7.$array1.data[$var6]; - $this.$countEntitiesRendered = $this.$countEntitiesRendered + 1 | 0; - if (!$var7.$isInRangeToRenderVec3D($par1Vec3)) - continue; - else { - $var4 = nms_RenderManager_instance; - continue main; - } - } - $par1Vec3 = new jl_IndexOutOfBoundsException; - $par1Vec3.$suppressionEnabled = 1; - $par1Vec3.$writableStackTrace = 1; - $rt_throw($par1Vec3); - case 2: - nms_TileEntityRenderer_renderTileEntity($par1Vec3, $par2ICamera, $par3); - if ($rt_suspending()) { - break main; - } - $var6 = $var6 + 1 | 0; - if ($var6 >= ju_ArrayList_size($this.$tileEntities)) { - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glDisable(2); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_defaultTexUnit); - nms_Profiler_endSection($this.$theWorld0.$theProfiler); - return; - } - $par1Vec3 = nms_TileEntityRenderer_instance; - $par2ICamera = ju_ArrayList_get($this.$tileEntities, $var6); - continue main; - case 3: - nms_RenderManager_renderEntity($var4, $var7, $par3); - if ($rt_suspending()) { - break main; - } - while (true) { - $var6 = $var6 + 1 | 0; - if ($var6 >= $var5.$size0) { - $par1Vec3 = $this.$theWorld0.$theProfiler; - nms_Profiler_endSection($par1Vec3); - nms_Profiler_startSection($par1Vec3, $rt_s(827)); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - $var6 = 0; - if ($var6 >= ju_ArrayList_size($this.$tileEntities)) { - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glDisable(2); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_defaultTexUnit); - nms_Profiler_endSection($this.$theWorld0.$theProfiler); - return; - } - $par1Vec3 = nms_TileEntityRenderer_instance; - $par2ICamera = ju_ArrayList_get($this.$tileEntities, $var6); - $ptr = 2; - continue main; - } - if ($var6 < 0) - break; - if ($var6 >= $var5.$size0) - break; - $var7 = $var5.$array1.data[$var6]; - if (!$var7.$isInRangeToRenderVec3D($par1Vec3)) - continue; - if (!$var7.$ignoreFrustumCheck && !nms_Frustrum_isBoundingBoxInFrustum($par2ICamera, $var7.$boundingBox) && $var7.$riddenByEntity !== $this.$mc9.$thePlayer) - continue; - if ($var7 === $this.$mc9.$renderViewEntity && !$this.$mc9.$gameSettings.$thirdPersonView && !$this.$mc9.$renderViewEntity.$sleeping) - continue; - $var4 = $this.$theWorld0; - var$5 = $var7.$posX; - var$11 = var$5 | 0; - if (var$5 < var$11) - var$11 = var$11 - 1 | 0; - var$5 = $var7.$posZ; - var$12 = var$5 | 0; - if (var$5 < var$12) - var$12 = var$12 - 1 | 0; - if (!nms_World_blockExists($var4, var$11, 0, var$12)) - continue; - else { - $this.$countEntitiesRendered = $this.$countEntitiesRendered + 1 | 0; - $var4 = nms_RenderManager_instance; - continue main; - } - } - $par1Vec3 = new jl_IndexOutOfBoundsException; - $par1Vec3.$suppressionEnabled = 1; - $par1Vec3.$writableStackTrace = 1; - $rt_throw($par1Vec3); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Vec3, $par2ICamera, $par3, $var4, var$5, var$6, var$7, $var7, $var5, $var6, var$11, var$12, $ptr); -} -function nms_RenderGlobal_getDebugInfoRenders($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(828)); - var$2 = $this.$renderersBeingRendered; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(58)); - var$2 = $this.$renderersLoaded; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(829)); - var$2 = $this.$renderersBeingClipped; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(830)); - var$2 = $this.$renderersBeingOccluded; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(831)); - var$2 = $this.$renderersSkippingRenderPass; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_RenderGlobal_getDebugInfoShort($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 = nmc_Minecraft_debugFPS; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(832)); - var$2 = $this.$renderersBeingRendered; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(58)); - var$2 = $this.$renderersLoaded; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(831)); - var$2 = $this.$countEntitiesRendered; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(545)); - var$3 = $this.$tileEntities.$size0; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$3, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(833)); - var$2 = nmc_Minecraft_debugChunkUpdates; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_RenderGlobal_getDebugInfoEntities($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(834)); - var$2 = $this.$countEntitiesRendered; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(58)); - var$2 = $this.$countEntitiesTotal; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(835)); - var$2 = $this.$countEntitiesHidden; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(836)); - var$2 = ($this.$countEntitiesTotal - $this.$countEntitiesHidden | 0) - $this.$countEntitiesRendered | 0; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_RenderGlobal_markRenderersForNewPosition($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, var$7, $var7, $var8, $var9, $var10, $var11, $var12, $var13, $var14, $var15; - $par2 = $par1 + (-8) | 0; - $par3 = $par3 + (-8) | 0; - $this.$minBlockX = 2147483647; - $this.$minBlockY = 2147483647; - $this.$minBlockZ = 2147483647; - $this.$maxBlockX = (-2147483648); - $this.$maxBlockY = (-2147483648); - $this.$maxBlockZ = (-2147483648); - $var4 = $this.$renderChunksWide * 16 | 0; - $var5 = $var4 / 2 | 0; - $var6 = 0; - var$7 = $var4 - 1 | 0; - while ($var6 < $this.$renderChunksWide) { - $var7 = $var6 * 16 | 0; - $var8 = ($var7 + $var5 | 0) - $par2 | 0; - if ($var8 < 0) - $var8 = $var8 - var$7 | 0; - $var7 = $var7 - $rt_imul($var8 / $var4 | 0, $var4) | 0; - if ($var7 < $this.$minBlockX) - $this.$minBlockX = $var7; - if ($var7 > $this.$maxBlockX) - $this.$maxBlockX = $var7; - $var9 = 0; - while ($var9 < $this.$renderChunksDeep) { - $var10 = $var9 * 16 | 0; - $var11 = ($var10 + $var5 | 0) - $par3 | 0; - if ($var11 < 0) - $var11 = $var11 - var$7 | 0; - $var8 = $var10 - $rt_imul($var11 / $var4 | 0, $var4) | 0; - if ($var8 < $this.$minBlockZ) - $this.$minBlockZ = $var8; - if ($var8 > $this.$maxBlockZ) - $this.$maxBlockZ = $var8; - $var12 = 0; - while ($var12 < $this.$renderChunksTall) { - $var13 = $var12 * 16 | 0; - if ($var13 < $this.$minBlockY) - $this.$minBlockY = $var13; - if ($var13 > $this.$maxBlockY) - $this.$maxBlockY = $var13; - $var14 = $this.$worldRenderers.data[$rt_imul($rt_imul($var9, $this.$renderChunksTall) + $var12 | 0, $this.$renderChunksWide) + $var6 | 0]; - $var15 = $var14.$needsUpdate; - nms_WorldRenderer_setPosition($var14, $var7, $var13, $var8); - if (!$var15 && $var14.$needsUpdate) - ju_ArrayList_add($this.$worldRenderersToUpdate, $var14); - $var12 = $var12 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - $var6 = $var6 + 1 | 0; - } -} -function nms_RenderGlobal_sortAndRender($this, $par1EntityLiving, $par2, $par3) { - var $var5, $var6, $var33, $var7, $var9, $var11, $var13, $var15, $fx, $fy, $fz, $i, $c, $ccx, $ccy, $ccz, $var34, $ct, $i_0, $q, var$24; - nms_Profiler_startSection($this.$theWorld0.$theProfiler, $rt_s(837)); - $var5 = 0; - while ($var5 < 10) { - $this.$worldRenderersCheckIndex = ($this.$worldRenderersCheckIndex + 1 | 0) % $this.$worldRenderers.data.length | 0; - $var6 = $this.$worldRenderers.data[$this.$worldRenderersCheckIndex]; - if ($var6.$needsUpdate && !ju_AbstractCollection_contains($this.$worldRenderersToUpdate, $var6)) - ju_ArrayList_add($this.$worldRenderersToUpdate, $var6); - $var5 = $var5 + 1 | 0; - } - if ($this.$mc9.$gameSettings.$renderDistance != $this.$renderDistance1) - nms_RenderGlobal_loadRenderers($this); - if (!$par2) { - $this.$renderersLoaded = 0; - $this.$dummyRenderInt = 0; - $this.$renderersBeingClipped = 0; - $this.$renderersBeingOccluded = 0; - $this.$renderersBeingRendered = 0; - $this.$renderersSkippingRenderPass = 0; - } - $var33 = $par1EntityLiving.$lastTickPosX + ($par1EntityLiving.$posX - $par1EntityLiving.$lastTickPosX) * $par3; - $var7 = $par1EntityLiving.$lastTickPosY + ($par1EntityLiving.$posY - $par1EntityLiving.$lastTickPosY) * $par3; - $var9 = $par1EntityLiving.$lastTickPosZ + ($par1EntityLiving.$posZ - $par1EntityLiving.$lastTickPosZ) * $par3; - $var11 = $var33 - $this.$prevSortX; - $var13 = $var7 - $this.$prevSortY; - $var15 = $var9 - $this.$prevSortZ; - $fx = nms_MathHelper_floor_double($var33); - $fy = nms_MathHelper_floor_double($var7); - $fz = nms_MathHelper_floor_double($var9); - if ($var11 * $var11 + $var13 * $var13 + $var15 * $var15 > 16.0) { - $this.$prevSortX = $var33; - $this.$prevSortY = $var7; - $this.$prevSortZ = $var9; - nms_RenderGlobal_markRenderersForNewPosition($this, $fx, $fy, $fz); - ju_Arrays_sort($this.$sortedWorldRenderers, nms_EntitySorter__init_($par1EntityLiving)); - } - a: { - $var5 = $fx >> 4; - $fx = nms_MathHelper_floor_double($var7 + nms_EntityPlayer_getEyeHeight($par1EntityLiving)) >> 4; - $fy = $fz >> 4; - nms_RenderHelper_disableStandardItemLighting(); - if (!$par2 && $this.$occlusionQueryAvailable) { - $this.$occlusionQueryAvailable = 0; - nms_Profiler_endStartSection($this.$theWorld0.$theProfiler, $rt_s(838)); - $i = 0; - while (true) { - if ($i >= $this.$sortedWorldRenderers.data.length) - break a; - $c = $this.$sortedWorldRenderers.data[$i]; - $ccx = $c.$chunkX - $var5 | 0; - $ccy = $c.$chunkY - $fx | 0; - $ccz = $c.$chunkZ - $fy | 0; - if ($ccx < 2 && $ccx > (-2) && $ccy < 2 && $ccy > (-2) && $ccz < 2 && $ccz > (-2)) - $c.$isVisible = 1; - else if (!nms_WorldRenderer_skipAllRenderPasses($c) && $c.$isInFrustum) - $c.$isVisible = $this.$glOcclusionQuery.data[$c.$chunkIndex] == (-1) ? 1 : nleg_EaglerAdapterGL30_glGetQueryResult($this.$glOcclusionQuery.data[$c.$chunkIndex]); - $i = $i + 1 | 0; - } - } - } - nms_Profiler_endStartSection($this.$theWorld0.$theProfiler, $rt_s(298)); - $var34 = 0 + nms_RenderGlobal_renderSortedRenderers($this, 0, $this.$sortedWorldRenderers.data.length, $par2, $par3) | 0; - $var7 = $var7 - nms_EntityPlayer_getEyeHeight($par1EntityLiving); - $ct = jl_System_currentTimeMillis(); - if (!$par2 && Long_gt(Long_sub($ct, $this.$lastOcclusionQuery), Long_fromInt(50))) { - $this.$lastOcclusionQuery = $ct; - $this.$occlusionQueryAvailable = 1; - nms_Profiler_endStartSection($this.$theWorld0.$theProfiler, $rt_s(839)); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glColorMask(0, 0, 0, 0); - nleg_EaglerAdapterGL30_glDepthMask(0); - nleg_EaglerAdapterGL30_glBindOcclusionBB(); - $i_0 = 0; - while ($i_0 < $this.$sortedWorldRenderers.data.length) { - $c = $this.$sortedWorldRenderers.data[$i_0]; - $ccx = $c.$chunkX - $var5 | 0; - $ccy = $c.$chunkY - $fx | 0; - $ccz = $c.$chunkZ - $fy | 0; - if (!nms_WorldRenderer_skipAllRenderPasses($c) && $c.$isInFrustum && !($ccx < 2 && $ccx > (-2) && $ccy < 2 && $ccy > (-2) && $ccz < 2 && $ccz > (-2))) { - $q = $this.$glOcclusionQuery.data[$c.$chunkIndex]; - if ($q == (-1)) { - var$24 = $this.$glOcclusionQuery.data; - $par2 = $c.$chunkIndex; - $q = nleg_EaglerAdapterGL30_glCreateQuery(); - var$24[$par2] = $q; - } - nleg_EaglerAdapterGL30_glBeginQuery($q); - nleg_EaglerAdapterGL30_glDrawOcclusionBB($c.$posX3 - $var33, $c.$posY3 - $var7, $c.$posZ2 - $var9, 16.0, 16.0, 16.0); - nleg_EaglerAdapterGL30_glEndQuery(); - } - $i_0 = $i_0 + 1 | 0; - } - nleg_EaglerAdapterGL30_glEndOcclusionBB(); - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 1); - nleg_EaglerAdapterGL30_glDepthMask(1); - nleg_EaglerAdapterGL30_glEnable(46); - } - nms_Profiler_endSection($this.$theWorld0.$theProfiler); - return $var34; -} -function nms_RenderGlobal_renderSortedRenderers($this, $var7, $par2, $par3, $par4) { - var $var19, $var6, $var20, $var10, $var12, $var14, $var15, $var16, $var17, $var18, var$15; - $var19 = $this.$glRenderLists; - ju_Arrays_fill($var19.$array1, 0, $var19.$size0, null); - $var19.$size0 = 0; - $var6 = 0; - while ($var7 < $par2) { - if (!$par3) { - $this.$renderersLoaded = $this.$renderersLoaded + 1 | 0; - if ($this.$sortedWorldRenderers.data[$var7].$skipRenderPass.data[$par3]) - $this.$renderersSkippingRenderPass = $this.$renderersSkippingRenderPass + 1 | 0; - else if (!$this.$sortedWorldRenderers.data[$var7].$isInFrustum) - $this.$renderersBeingClipped = $this.$renderersBeingClipped + 1 | 0; - else if ($this.$sortedWorldRenderers.data[$var7].$isVisible) - $this.$renderersBeingRendered = $this.$renderersBeingRendered + 1 | 0; - else - $this.$renderersBeingOccluded = $this.$renderersBeingOccluded + 1 | 0; - } - if (!$this.$sortedWorldRenderers.data[$var7].$skipRenderPass.data[$par3] && $this.$sortedWorldRenderers.data[$var7].$isInFrustum && $this.$sortedWorldRenderers.data[$var7].$isVisible && nms_WorldRenderer_getGLCallListForPass($this.$sortedWorldRenderers.data[$var7], $par3) >= 0) { - ju_ArrayList_add($this.$glRenderLists, $this.$sortedWorldRenderers.data[$var7]); - $var6 = $var6 + 1 | 0; - } - $var7 = $var7 + 1 | 0; - } - $var19 = $this.$mc9.$renderViewEntity; - $var20 = $var19.$lastTickPosX + ($var19.$posX - $var19.$lastTickPosX) * $par4; - $var10 = $var19.$lastTickPosY + ($var19.$posY - $var19.$lastTickPosY) * $par4; - $var12 = $var19.$lastTickPosZ + ($var19.$posZ - $var19.$lastTickPosZ) * $par4; - $var14 = 0; - $var15 = 0; - while ($var15 < $this.$allRenderLists.data.length) { - $var19 = $this.$allRenderLists.data[$var15]; - $var19.$field_78430_h = 0; - $var19.$field_78431_i = 0; - $var15 = $var15 + 1 | 0; - } - $var7 = 0; - a: { - while ($var7 < $this.$glRenderLists.$size0) { - $var19 = $this.$glRenderLists; - if ($var7 < 0) - break a; - if ($var7 >= $var19.$size0) - break a; - $var16 = $var19.$array1.data[$var7]; - $var17 = (-1); - $var18 = 0; - while ($var18 < $var14) { - if (nms_RenderList_func_78418_a($this.$allRenderLists.data[$var18], $var16.$posXMinus, $var16.$posYMinus, $var16.$posZMinus)) - $var17 = $var18; - $var18 = $var18 + 1 | 0; - } - if ($var17 >= 0) { - $var15 = $var14; - $var14 = $var17; - } else { - $var15 = $var14 + 1 | 0; - nms_RenderList_func_78422_a($this.$allRenderLists.data[$var14], $var16.$posXMinus, $var16.$posYMinus, $var16.$posZMinus, $var20, $var10, $var12); - } - var$15 = $this.$allRenderLists.data[$var14]; - $par2 = nms_WorldRenderer_getGLCallListForPass($var16, $par3); - jn_IntBufferImpl_put(var$15.$field_78424_g, $par2); - $var19 = var$15.$field_78424_g; - if (!($var19.$limit - $var19.$position | 0)) - nms_RenderList_func_78419_a(var$15); - $var7 = $var7 + 1 | 0; - $var14 = $var15; - } - nms_RenderGlobal_renderAllRenderLists($this, $par3, $par4); - return $var6; - } - $var19 = new jl_IndexOutOfBoundsException; - $var19.$suppressionEnabled = 1; - $var19.$writableStackTrace = 1; - $rt_throw($var19); -} -function nms_RenderGlobal_renderAllRenderLists($this, $par1, $par2) { - var $var4; - nms_EntityRenderer_enableLightmap($this.$mc9.$entityRenderer, $par2); - $var4 = 0; - while ($var4 < $this.$allRenderLists.data.length) { - nms_RenderList_func_78419_a($this.$allRenderLists.data[$var4]); - $var4 = $var4 + 1 | 0; - } - nleg_EaglerAdapterGL30_glActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glActiveTexture(nms_OpenGlHelper_defaultTexUnit); -} -function nms_RenderGlobal_updateClouds($this) { - var $var1, $var2, $var3; - a: { - $this.$cloudTickCounter = $this.$cloudTickCounter + 1 | 0; - if (!($this.$cloudTickCounter % 20 | 0)) { - $var1 = $this.$damagedBlocks; - if ($var1.$cachedValues === null) { - $var2 = new ju_HashMap$2; - $var2.$this$00 = $var1; - $var1.$cachedValues = $var2; - } - $var1 = $var1.$cachedValues.$iterator(); - while (true) { - if (!$var1.$hasNext()) - break a; - $var3 = $var1.$next().$createdAtCloudUpdateTick; - if (($this.$cloudTickCounter - $var3 | 0) > 400) - $var1.$remove(); - } - } - } -} -function nms_RenderGlobal_renderSky($this, $par1) { - var $var21, $var22, $var2, $var6, $var7, $var8, $var13, $var23, $var24, $var11, $var12, $var13_0, $var27, $var14, $var15, $var8_0, $var28, $var29, $var30, $var16, $var17, $var18, $var19, $var25, var$26, var$27, $var20, var$29; - if ($this.$mc9.$theWorld.$provider.$dimensionId == 1) { - nleg_EaglerAdapterGL30_glDisable(14); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nms_RenderHelper_disableStandardItemLighting(); - nleg_EaglerAdapterGL30_glDepthMask(0); - nle_TextureLocation_bindTexture(nms_RenderGlobal_tunnel); - nlea_Tessellator_$callClinit(); - $var21 = nlea_Tessellator_instance; - $var22 = 0; - while ($var22 < 6) { - nleg_EaglerAdapterGL30_glPushMatrix(); - if ($var22 == 1) - nleg_EaglerAdapterGL30_glRotatef(90.0, 1.0, 0.0, 0.0); - if ($var22 == 2) - nleg_EaglerAdapterGL30_glRotatef((-90.0), 1.0, 0.0, 0.0); - if ($var22 == 3) - nleg_EaglerAdapterGL30_glRotatef(180.0, 1.0, 0.0, 0.0); - if ($var22 == 4) - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 0.0, 1.0); - if ($var22 == 5) - nleg_EaglerAdapterGL30_glRotatef((-90.0), 0.0, 0.0, 1.0); - nlea_Tessellator_startDrawingQuads($var21); - nlea_Tessellator_setColorOpaque_I($var21, 2631720); - nlea_Tessellator_addVertexWithUV($var21, (-100.0), (-100.0), (-100.0), 0.0, 0.0); - nlea_Tessellator_addVertexWithUV($var21, (-100.0), (-100.0), 100.0, 0.0, 16.0); - nlea_Tessellator_addVertexWithUV($var21, 100.0, (-100.0), 100.0, 16.0, 16.0); - nlea_Tessellator_addVertexWithUV($var21, 100.0, (-100.0), (-100.0), 16.0, 0.0); - nlea_Tessellator_draw($var21); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var22 = $var22 + 1 | 0; - } - nleg_EaglerAdapterGL30_glDepthMask(1); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glEnable(6); - } else if ($this.$mc9.$theWorld.$provider.$isSurfaceWorld()) { - nleg_EaglerAdapterGL30_glDisable(2); - $var2 = nms_World_getSkyColor($this.$theWorld0, $this.$mc9.$renderViewEntity, $par1); - $var6 = $var2.$xCoord; - $var7 = $var2.$yCoord; - $var8 = $var2.$zCoord; - if ($this.$mc9.$gameSettings.$anaglyph) { - $var13 = $var6 * 30.0; - $var6 = ($var13 + $var7 * 59.0 + $var8 * 11.0) / 100.0; - $var7 = ($var13 + $var7 * 70.0) / 100.0; - $var8 = ($var13 + $var8 * 70.0) / 100.0; - } - nleg_EaglerAdapterGL30_glColor3f($var6, $var7, $var8); - nlea_Tessellator_$callClinit(); - $var23 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_glDepthMask(0); - nleg_EaglerAdapterGL30_glEnable(14); - nleg_EaglerAdapterGL30_glColor3f($var6, $var7, $var8); - nleg_EaglerAdapterGL30_glCallList($this.$glSkyList); - nleg_EaglerAdapterGL30_glDisable(14); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nms_RenderHelper_disableStandardItemLighting(); - $var24 = $this.$theWorld0.$provider.$calcSunriseSunsetColors(nms_World_getCelestialAngle($this.$theWorld0, $par1), $par1); - if ($var24 !== null) { - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glShadeModel(3); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef(90.0, 1.0, 0.0, 0.0); - $var13 = nms_MathHelper_sin(nms_World_getCelestialAngleRadians($this.$theWorld0, $par1)) >= 0.0 ? 0.0 : 180.0; - $var24 = $var24.data; - nleg_EaglerAdapterGL30_glRotatef($var13, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 0.0, 1.0); - $var11 = $var24[0]; - $var12 = $var24[1]; - $var13_0 = $var24[2]; - if ($this.$mc9.$gameSettings.$anaglyph) { - $var13 = $var11 * 30.0; - $var11 = ($var13 + $var12 * 59.0 + $var13_0 * 11.0) / 100.0; - $var12 = ($var13 + $var12 * 70.0) / 100.0; - $var13_0 = ($var13 + $var13_0 * 70.0) / 100.0; - } - nlea_Tessellator_startDrawing($var23, 145); - nlea_Tessellator_setColorRGBA_F($var23, $var11, $var12, $var13_0, $var24[3]); - nlea_Tessellator_addVertex($var23, 0.0, 100.0, 0.0); - nlea_Tessellator_setColorRGBA_F($var23, $var24[0], $var24[1], $var24[2], 0.0); - $var27 = 0; - while ($var27 <= 16) { - $var13 = $var27 * 3.1415927410125732 * 2.0 / 16.0; - $var14 = nms_MathHelper_sin($var13); - $var15 = nms_MathHelper_cos($var13); - nlea_Tessellator_addVertex($var23, $var14 * 120.0, $var15 * 120.0, -$var15 * 40.0 * $var24[3]); - $var27 = $var27 + 1 | 0; - } - nlea_Tessellator_draw($var23); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glShadeModel(34); - } - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glBlendFunc(42, 1); - nleg_EaglerAdapterGL30_glPushMatrix(); - $var8_0 = 1.0 - nms_World_getRainStrength($this.$theWorld0, $par1); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, $var8_0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-90.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(nms_World_getCelestialAngle($this.$theWorld0, $par1) * 360.0, 1.0, 0.0, 0.0); - nle_TextureLocation_bindTexture(nms_RenderGlobal_sun); - nlea_Tessellator_startDrawingQuads($var23); - nlea_Tessellator_addVertexWithUV($var23, (-30.0), 100.0, (-30.0), 0.0, 0.0); - nlea_Tessellator_addVertexWithUV($var23, 30.0, 100.0, (-30.0), 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var23, 30.0, 100.0, 30.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var23, (-30.0), 100.0, 30.0, 0.0, 1.0); - nlea_Tessellator_draw($var23); - nle_TextureLocation_bindTexture(nms_RenderGlobal_moon); - $var28 = nms_World_getMoonPhase($this.$theWorld0); - $var29 = $var28 % 4 | 0; - $var30 = ($var28 / 4 | 0) % 2 | 0; - $var16 = ($var29 + 0 | 0) / 4.0; - $var17 = ($var30 + 0 | 0) / 2.0; - $var18 = ($var29 + 1 | 0) / 4.0; - $var19 = ($var30 + 1 | 0) / 2.0; - nlea_Tessellator_startDrawingQuads($var23); - $var25 = $var18; - var$26 = $var19; - nlea_Tessellator_addVertexWithUV($var23, (-20.0), (-100.0), 20.0, $var25, var$26); - var$27 = $var16; - nlea_Tessellator_addVertexWithUV($var23, 20.0, (-100.0), 20.0, var$27, var$26); - var$26 = $var17; - nlea_Tessellator_addVertexWithUV($var23, 20.0, (-100.0), (-20.0), var$27, var$26); - nlea_Tessellator_addVertexWithUV($var23, (-20.0), (-100.0), (-20.0), $var25, var$26); - nlea_Tessellator_draw($var23); - nleg_EaglerAdapterGL30_glDisable(2); - $var20 = nms_World_getStarBrightness($this.$theWorld0, $par1) * $var8_0; - if ($var20 > 0.0) { - nleg_EaglerAdapterGL30_glColor4f($var20, $var20, $var20, $var20); - nleg_EaglerAdapterGL30_glCallList($this.$starGLCallList); - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glEnable(14); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glColor3f(0.0, 0.0, 0.0); - $var25 = nms_EntityLiving_getPosition($this.$mc9.$thePlayer, $par1).$yCoord - nms_World_getHorizon($this.$theWorld0); - if ($var25 < 0.0) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 12.0, 0.0); - nleg_EaglerAdapterGL30_glCallList($this.$glSkyList2); - nleg_EaglerAdapterGL30_glPopMatrix(); - $par1 = -($var25 + 65.0); - nlea_Tessellator_startDrawingQuads($var23); - nlea_Tessellator_setColorRGBA_I($var23, 0, 255); - var$29 = $par1; - nlea_Tessellator_addVertex($var23, (-1.0), var$29, 1.0); - nlea_Tessellator_addVertex($var23, 1.0, var$29, 1.0); - nlea_Tessellator_addVertex($var23, 1.0, (-1.0), 1.0); - nlea_Tessellator_addVertex($var23, (-1.0), (-1.0), 1.0); - nlea_Tessellator_addVertex($var23, (-1.0), (-1.0), (-1.0)); - nlea_Tessellator_addVertex($var23, 1.0, (-1.0), (-1.0)); - nlea_Tessellator_addVertex($var23, 1.0, var$29, (-1.0)); - nlea_Tessellator_addVertex($var23, (-1.0), var$29, (-1.0)); - nlea_Tessellator_addVertex($var23, 1.0, (-1.0), (-1.0)); - nlea_Tessellator_addVertex($var23, 1.0, (-1.0), 1.0); - nlea_Tessellator_addVertex($var23, 1.0, var$29, 1.0); - nlea_Tessellator_addVertex($var23, 1.0, var$29, (-1.0)); - nlea_Tessellator_addVertex($var23, (-1.0), var$29, (-1.0)); - nlea_Tessellator_addVertex($var23, (-1.0), var$29, 1.0); - nlea_Tessellator_addVertex($var23, (-1.0), (-1.0), 1.0); - nlea_Tessellator_addVertex($var23, (-1.0), (-1.0), (-1.0)); - nlea_Tessellator_addVertex($var23, (-1.0), (-1.0), (-1.0)); - nlea_Tessellator_addVertex($var23, (-1.0), (-1.0), 1.0); - nlea_Tessellator_addVertex($var23, 1.0, (-1.0), 1.0); - nlea_Tessellator_addVertex($var23, 1.0, (-1.0), (-1.0)); - nlea_Tessellator_draw($var23); - } - if (!$this.$theWorld0.$provider.$isSkyColored()) - nleg_EaglerAdapterGL30_glColor3f($var6, $var7, $var8); - else - nleg_EaglerAdapterGL30_glColor3f($var6 * 0.20000000298023224 + 0.03999999910593033, $var7 * 0.20000000298023224 + 0.03999999910593033, $var8 * 0.6000000238418579 + 0.10000000149011612); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, -($var25 - 16.0), 0.0); - nleg_EaglerAdapterGL30_glCallList($this.$glSkyList2); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glDepthMask(1); - } -} -function nms_RenderGlobal_renderClouds($this, $par1) { - var $var15, var$3, var$4, $var2, $var5, $var6, $var10, $var11, $var12, $var19, $var24, $var13, $var17, $var18, $var20, $var21, $var22, $var23, var$20, var$21, $var23_0, var$23; - if ($this.$mc9.$theWorld.$provider.$isSurfaceWorld()) { - if ($this.$mc9.$gameSettings.$fancyGraphics) - nms_RenderGlobal_renderCloudsFancy($this, $par1); - else { - nleg_EaglerAdapterGL30_glDisable(46); - $var15 = $this.$mc9.$renderViewEntity.$lastTickPosY; - var$3 = $this.$mc9.$renderViewEntity.$posY - $this.$mc9.$renderViewEntity.$lastTickPosY; - var$4 = $par1; - $var2 = $var15 + var$3 * var$4; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture(nms_RenderGlobal_tex_clouds); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - $var6 = nms_World_getCloudColour($this.$theWorld0, $par1); - $var10 = $var6.$xCoord; - $var11 = $var6.$yCoord; - $var12 = $var6.$zCoord; - if ($this.$mc9.$gameSettings.$anaglyph) { - $var19 = $var10 * 30.0; - $var10 = ($var19 + $var11 * 59.0 + $var12 * 11.0) / 100.0; - $var11 = ($var19 + $var11 * 70.0) / 100.0; - $var12 = ($var19 + $var12 * 70.0) / 100.0; - } - $var24 = $this.$cloudTickCounter + $par1; - $var13 = $this.$mc9.$renderViewEntity.$prevPosX + ($this.$mc9.$renderViewEntity.$posX - $this.$mc9.$renderViewEntity.$prevPosX) * var$4 + $var24 * 0.029999999329447746; - $var15 = $this.$mc9.$renderViewEntity.$prevPosZ + ($this.$mc9.$renderViewEntity.$posZ - $this.$mc9.$renderViewEntity.$prevPosZ) * var$4; - var$3 = $var13 / 2048.0; - $var17 = var$3 | 0; - if (var$3 < $var17) - $var17 = $var17 - 1 | 0; - var$3 = $var15 / 2048.0; - $var18 = var$3 | 0; - if (var$3 < $var18) - $var18 = $var18 - 1 | 0; - var$3 = $var13 - ($var17 * 2048 | 0); - $var15 = $var15 - ($var18 * 2048 | 0); - $var19 = $this.$theWorld0.$provider.$getCloudHeight() - $var2 + 0.33000001311302185; - $var20 = var$3 * 4.8828125E-4; - $var21 = $var15 * 4.8828125E-4; - nlea_Tessellator_startDrawing($var5, 98); - nlea_Tessellator_setColorRGBA($var5, $var10 * 255.0 | 0, $var11 * 255.0 | 0, $var12 * 255.0 | 0, 204); - $var13 = $var19; - $var22 = (-256); - while ($var22 < 256) { - $var23 = (-256); - while ($var23 < 256) { - var$20 = $var22 + 0 | 0; - var$21 = var$20; - $var23_0 = $var23 + 32 | 0; - var$4 = $var23_0; - $var15 = var$20 * 4.8828125E-4 + $var20; - var$3 = $var23_0 * 4.8828125E-4 + $var21; - $var5.$hasTexture = 1; - $var19 = $var15; - $var5.$textureU = $var19; - var$23 = var$3; - $var5.$textureV = var$23; - nlea_Tessellator_addVertex($var5, var$21, $var13, var$4); - var$20 = $var22 + 32 | 0; - $var15 = var$20; - var$3 = var$20 * 4.8828125E-4 + $var20; - $var5.$hasTexture = 1; - $var2 = var$3; - $var5.$textureU = $var2; - $var5.$textureV = var$23; - nlea_Tessellator_addVertex($var5, $var15, $var13, var$4); - var$20 = $var23 + 0 | 0; - var$3 = var$20; - var$4 = var$20 * 4.8828125E-4 + $var21; - $var5.$hasTexture = 1; - $var5.$textureU = $var2; - $par1 = var$4; - $var5.$textureV = $par1; - nlea_Tessellator_addVertex($var5, $var15, $var13, var$3); - $var5.$hasTexture = 1; - $var5.$textureU = $var19; - $var5.$textureV = $par1; - nlea_Tessellator_addVertex($var5, var$21, $var13, var$3); - $var23 = $var23_0; - } - $var22 = $var22 + 32 | 0; - } - nlea_Tessellator_draw($var5); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(46); - } - } -} -function nms_RenderGlobal_hasCloudFog($this, $par1, $par3, $par5, $par7) { - return 0; -} -function nms_RenderGlobal_renderCloudsFancy($this, $par1) { - var $var8, $var10, var$4, $var2, $var3, $var6, $var12, $var13, $var14, $var15, $var19, $var20, $var21, var$15, var$16, $var22, $var23, $var27, var$20, var$21, $var28, $var29, $var30, $var31, $var32, $var33, var$28, var$29, var$30, var$31, $var34, $var34_0; - nleg_EaglerAdapterGL30_glDisable(46); - $var8 = $this.$mc9.$renderViewEntity.$lastTickPosY; - $var10 = $this.$mc9.$renderViewEntity.$posY - $this.$mc9.$renderViewEntity.$lastTickPosY; - var$4 = $par1; - $var2 = $var8 + $var10 * var$4; - nlea_Tessellator_$callClinit(); - $var3 = nlea_Tessellator_instance; - $var6 = $this.$cloudTickCounter + $par1; - $var8 = ($this.$mc9.$renderViewEntity.$prevPosX + ($this.$mc9.$renderViewEntity.$posX - $this.$mc9.$renderViewEntity.$prevPosX) * var$4 + $var6 * 0.029999999329447746) / 12.0; - $var10 = ($this.$mc9.$renderViewEntity.$prevPosZ + ($this.$mc9.$renderViewEntity.$posZ - $this.$mc9.$renderViewEntity.$prevPosZ) * var$4) / 12.0 + 0.33000001311302185; - $var12 = $this.$theWorld0.$provider.$getCloudHeight() - $var2 + 0.33000001311302185; - $var13 = nms_MathHelper_floor_double($var8 / 2048.0); - $var14 = nms_MathHelper_floor_double($var10 / 2048.0); - $var8 = $var8 - ($var13 * 2048 | 0); - $var10 = $var10 - ($var14 * 2048 | 0); - nle_TextureLocation_bindTexture(nms_RenderGlobal_tex_clouds); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - $var15 = nms_World_getCloudColour($this.$theWorld0, $par1); - $var19 = $var15.$xCoord; - $var20 = $var15.$yCoord; - $var21 = $var15.$zCoord; - if ($this.$mc9.$gameSettings.$anaglyph) { - $par1 = $var19 * 30.0; - $var19 = ($par1 + $var20 * 59.0 + $var21 * 11.0) / 100.0; - $var20 = ($par1 + $var20 * 70.0) / 100.0; - $var21 = ($par1 + $var21 * 70.0) / 100.0; - } - var$15 = nms_MathHelper_floor_double($var8) * 0.00390625; - var$16 = nms_MathHelper_floor_double($var10) * 0.00390625; - $var22 = $var8 - nms_MathHelper_floor_double($var8); - $var23 = $var10 - nms_MathHelper_floor_double($var10); - nleg_EaglerAdapterGL30_glScalef(12.0, 1.0, 12.0); - $var27 = 0; - $var14 = $rt_compare($var12, (-5.0)); - $var6 = $var12 + 0.0; - var$20 = $rt_compare($var12, 5.0); - $par1 = $var12 + 4.0; - $var10 = $par1 - 9.765625E-4; - var$21 = $par1; - while ($var27 < 2) { - if (!$var27) - nleg_EaglerAdapterGL30_glColorMask(0, 0, 0, 0); - else if (!$this.$mc9.$gameSettings.$anaglyph) - nleg_EaglerAdapterGL30_glColorMask(1, 1, 1, 1); - else if (nms_EntityRenderer_anaglyphField) - nleg_EaglerAdapterGL30_glColorMask(1, 0, 0, 1); - else - nleg_EaglerAdapterGL30_glColorMask(0, 1, 1, 1); - $var28 = (-3); - while ($var28 <= 4) { - $var29 = (-3); - while ($var29 <= 4) { - nlea_Tessellator_startDrawingQuads($var3); - $var30 = $var28 * 8 | 0; - $var31 = $var29 * 8 | 0; - $var32 = $var30 - $var22; - $var33 = $var31 - $var23; - if ($var14 > 0) { - nlea_Tessellator_setColorRGBA_F($var3, $var19 * 0.699999988079071, $var20 * 0.699999988079071, $var21 * 0.699999988079071, 0.800000011920929); - nlea_Tessellator_setNormal($var3, 0.0, (-1.0), 0.0); - $var8 = $var32 + 0.0; - var$4 = $var33 + 8.0; - var$28 = ($var30 + 0.0) * 0.00390625 + var$15; - var$29 = ($var31 + 8.0) * 0.00390625 + var$16; - nlea_Tessellator_addVertexWithUV($var3, $var8, $var6, var$4, var$28, var$29); - var$30 = $var32 + 8.0; - var$31 = ($var30 + 8.0) * 0.00390625 + var$15; - nlea_Tessellator_addVertexWithUV($var3, var$30, $var6, var$4, var$31, var$29); - var$29 = $var33 + 0.0; - var$4 = ($var31 + 0.0) * 0.00390625 + var$16; - nlea_Tessellator_addVertexWithUV($var3, var$30, $var6, var$29, var$31, var$4); - nlea_Tessellator_addVertexWithUV($var3, $var8, $var6, var$29, var$28, var$4); - } - if (var$20 <= 0) { - nlea_Tessellator_setColorRGBA_F($var3, $var19, $var20, $var21, 0.800000011920929); - nlea_Tessellator_setNormal($var3, 0.0, 1.0, 0.0); - $var8 = $var32 + 0.0; - var$4 = $var33 + 8.0; - var$28 = ($var30 + 0.0) * 0.00390625 + var$15; - var$29 = ($var31 + 8.0) * 0.00390625 + var$16; - nlea_Tessellator_addVertexWithUV($var3, $var8, $var10, var$4, var$28, var$29); - var$30 = $var32 + 8.0; - var$31 = ($var30 + 8.0) * 0.00390625 + var$15; - nlea_Tessellator_addVertexWithUV($var3, var$30, $var10, var$4, var$31, var$29); - var$29 = $var33 + 0.0; - var$4 = ($var31 + 0.0) * 0.00390625 + var$16; - nlea_Tessellator_addVertexWithUV($var3, var$30, $var10, var$29, var$31, var$4); - nlea_Tessellator_addVertexWithUV($var3, $var8, $var10, var$29, var$28, var$4); - } - a: { - nlea_Tessellator_setColorRGBA_F($var3, $var19 * 0.8999999761581421, $var20 * 0.8999999761581421, $var21 * 0.8999999761581421, 0.800000011920929); - if ($var28 > (-1)) { - nlea_Tessellator_setNormal($var3, (-1.0), 0.0, 0.0); - $var34 = 0; - var$28 = $var33 + 8.0; - var$30 = ($var31 + 8.0) * 0.00390625 + var$16; - var$31 = $var33 + 0.0; - $var8 = ($var31 + 0.0) * 0.00390625 + var$16; - while (true) { - if ($var34 >= 8) - break a; - $par1 = $var34; - var$4 = $var32 + $par1 + 0.0; - var$29 = ($var30 + $par1 + 0.5) * 0.00390625 + var$15; - nlea_Tessellator_addVertexWithUV($var3, var$4, $var6, var$28, var$29, var$30); - nlea_Tessellator_addVertexWithUV($var3, var$4, var$21, var$28, var$29, var$30); - nlea_Tessellator_addVertexWithUV($var3, var$4, var$21, var$31, var$29, $var8); - nlea_Tessellator_addVertexWithUV($var3, var$4, $var6, var$31, var$29, $var8); - $var34 = $var34 + 1 | 0; - } - } - } - b: { - if ($var28 <= 1) { - nlea_Tessellator_setNormal($var3, 1.0, 0.0, 0.0); - $var34_0 = 0; - var$4 = $var33 + 8.0; - var$29 = ($var31 + 8.0) * 0.00390625 + var$16; - var$30 = $var33 + 0.0; - var$31 = ($var31 + 0.0) * 0.00390625 + var$16; - while (true) { - if ($var34_0 >= 8) - break b; - $par1 = $var34_0; - $var8 = $var32 + $par1 + 1.0 - 9.765625E-4; - var$28 = ($var30 + $par1 + 0.5) * 0.00390625 + var$15; - nlea_Tessellator_addVertexWithUV($var3, $var8, $var6, var$4, var$28, var$29); - nlea_Tessellator_addVertexWithUV($var3, $var8, var$21, var$4, var$28, var$29); - nlea_Tessellator_addVertexWithUV($var3, $var8, var$21, var$30, var$28, var$31); - nlea_Tessellator_addVertexWithUV($var3, $var8, $var6, var$30, var$28, var$31); - $var34_0 = $var34_0 + 1 | 0; - } - } - } - c: { - nlea_Tessellator_setColorRGBA_F($var3, $var19 * 0.800000011920929, $var20 * 0.800000011920929, $var21 * 0.800000011920929, 0.800000011920929); - if ($var29 > (-1)) { - nlea_Tessellator_setNormal($var3, 0.0, 0.0, (-1.0)); - $var34_0 = 0; - var$31 = $var32 + 0.0; - var$4 = ($var30 + 0.0) * 0.00390625 + var$15; - var$29 = $var32 + 8.0; - var$30 = ($var30 + 8.0) * 0.00390625 + var$15; - while (true) { - if ($var34_0 >= 8) - break c; - $par1 = $var34_0; - $var8 = $var33 + $par1 + 0.0; - var$28 = ($var31 + $par1 + 0.5) * 0.00390625 + var$16; - nlea_Tessellator_addVertexWithUV($var3, var$31, var$21, $var8, var$4, var$28); - nlea_Tessellator_addVertexWithUV($var3, var$29, var$21, $var8, var$30, var$28); - nlea_Tessellator_addVertexWithUV($var3, var$29, $var6, $var8, var$30, var$28); - nlea_Tessellator_addVertexWithUV($var3, var$31, $var6, $var8, var$4, var$28); - $var34_0 = $var34_0 + 1 | 0; - } - } - } - d: { - if ($var29 <= 1) { - nlea_Tessellator_setNormal($var3, 0.0, 0.0, 1.0); - $var34_0 = 0; - $var8 = $var32 + 0.0; - var$28 = ($var30 + 0.0) * 0.00390625 + var$15; - var$30 = $var32 + 8.0; - var$31 = ($var30 + 8.0) * 0.00390625 + var$15; - while (true) { - if ($var34_0 >= 8) - break d; - $par1 = $var34_0; - var$4 = $var33 + $par1 + 1.0 - 9.765625E-4; - var$29 = ($var31 + $par1 + 0.5) * 0.00390625 + var$16; - nlea_Tessellator_addVertexWithUV($var3, $var8, var$21, var$4, var$28, var$29); - nlea_Tessellator_addVertexWithUV($var3, var$30, var$21, var$4, var$31, var$29); - nlea_Tessellator_addVertexWithUV($var3, var$30, $var6, var$4, var$31, var$29); - nlea_Tessellator_addVertexWithUV($var3, $var8, $var6, var$4, var$28, var$29); - $var34_0 = $var34_0 + 1 | 0; - } - } - } - nlea_Tessellator_draw($var3); - $var29 = $var29 + 1 | 0; - } - $var28 = $var28 + 1 | 0; - } - $var27 = $var27 + 1 | 0; - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(46); -} -function nms_RenderGlobal_updateRenderers($this, $par1EntityLiving, $par2) { - var $var4, $var5, $var6, $var7, $var8, $var9, $var10, $var16, $var17, $var11, $var12, $var13, $var14, $var15, $var12_0; - $var4 = new nms_RenderSorter; - $var4.$baseEntity = $par1EntityLiving; - $var5 = $rt_createArray(nms_WorldRenderer, 2).data; - $var6 = null; - $var7 = $this.$worldRenderersToUpdate.$size0; - $var8 = 0; - nms_Profiler_startSection($this.$theWorld0.$theProfiler, $rt_s(840)); - $var9 = 0; - a: { - while (true) { - if ($var9 >= $var7) { - b: { - nms_Profiler_endSection($this.$theWorld0.$theProfiler); - nms_Profiler_startSection($this.$theWorld0.$theProfiler, $rt_s(841)); - if ($var6 !== null) { - if ($var6.$size0 > 1) - ju_Collections_sort0($var6, $var4); - $par2 = $var6.$size0 - 1 | 0; - while (true) { - if ($par2 < 0) - break b; - ju_ArrayList_checkIndex($var6, $par2); - $var10 = $var6.$array1.data[$par2]; - nms_WorldRenderer_updateRenderer($var10); - $var10.$needsUpdate = 0; - $par2 = $par2 + (-1) | 0; - } - } - } - nms_Profiler_endSection($this.$theWorld0.$theProfiler); - $var9 = 0; - $var16 = 1; - c: { - while (true) { - if ($var16 < 0) - break c; - $var17 = $var5[$var16]; - if ($var17 !== null) { - if (!$var17.$isInFrustum && $var16 != 1) - break; - nms_WorldRenderer_updateRenderer($var5[$var16]); - $var5[$var16].$needsUpdate = 0; - $var9 = $var9 + 1 | 0; - } - $var16 = $var16 + (-1) | 0; - } - $var5[$var16] = null; - $var5[0] = null; - } - $par1EntityLiving = $this.$mc9; - $par1EntityLiving.$chunkUpdates = $par1EntityLiving.$chunkUpdates + $var9 | 0; - nms_Profiler_startSection($this.$theWorld0.$theProfiler, $rt_s(842)); - $par2 = 0; - $var11 = 0; - $var12 = $this.$worldRenderersToUpdate.$size0; - while ($par2 != $var12) { - $par1EntityLiving = $this.$worldRenderersToUpdate; - ju_ArrayList_checkIndex($par1EntityLiving, $par2); - $var13 = $par1EntityLiving.$array1.data[$par2]; - if ($var13 !== null) { - $var14 = 0; - $var15 = 0; - while ($var15 < 2 && !$var14) { - if ($var13 === $var5[$var15]) - $var14 = 1; - $var15 = $var15 + 1 | 0; - } - if (!$var14) { - if ($var11 != $par2) - ju_ArrayList_set($this.$worldRenderersToUpdate, $var11, $var13); - $var11 = $var11 + 1 | 0; - } - } - $par2 = $par2 + 1 | 0; - } - nms_Profiler_endSection($this.$theWorld0.$theProfiler); - nms_Profiler_startSection($this.$theWorld0.$theProfiler, $rt_s(843)); - while (true) { - $par2 = $par2 + (-1) | 0; - if ($par2 < $var11) - break; - ju_ArrayList_remove($this.$worldRenderersToUpdate, $par2); - } - nms_Profiler_endSection($this.$theWorld0.$theProfiler); - return $var7 != ($var8 + $var9 | 0) ? 0 : 1; - } - $var10 = $this.$worldRenderersToUpdate; - if ($var9 < 0) - break; - if ($var9 >= $var10.$size0) - break; - d: { - $var10 = $var10.$array1.data[$var9]; - if ($var10 !== null) { - e: { - if ($par2) { - if ($var10.$isInFrustum) - break e; - break d; - } - if (nms_WorldRenderer_distanceToEntitySquared($var10, $par1EntityLiving) > 256.0) { - $var11 = 0; - while ($var11 < 2 && !($var5[$var11] !== null && nms_RenderSorter_doCompare($var4, $var5[$var11], $var10) > 0)) { - $var11 = $var11 + 1 | 0; - } - $var11 = $var11 + (-1) | 0; - if ($var11 <= 0) - break d; - $var12_0 = $var11; - while (true) { - $var12_0 = $var12_0 + (-1) | 0; - if (!$var12_0) - break; - $var5[$var12_0 - 1 | 0] = $var5[$var12_0]; - } - $var5[$var11] = $var10; - break d; - } - } - if ($var6 === null) { - $var6 = new ju_ArrayList; - $var6.$array1 = $rt_createArray(jl_Object, 10); - } - $var8 = $var8 + 1 | 0; - ju_ArrayList_add($var6, $var10); - $var10 = $this.$worldRenderersToUpdate; - $var13 = null; - if ($var9 < 0) - break a; - if ($var9 >= $var10.$size0) - break a; - $var10.$array1.data[$var9] = $var13; - } - } - $var9 = $var9 + 1 | 0; - } - $par1EntityLiving = new jl_IndexOutOfBoundsException; - $par1EntityLiving.$suppressionEnabled = 1; - $par1EntityLiving.$writableStackTrace = 1; - $rt_throw($par1EntityLiving); - } - $par1EntityLiving = new jl_IndexOutOfBoundsException; - $par1EntityLiving.$suppressionEnabled = 1; - $par1EntityLiving.$writableStackTrace = 1; - $rt_throw($par1EntityLiving); -} -function nms_RenderGlobal_drawBlockBreaking($this, $par1EntityPlayer, $par2MovingObjectPosition, $par3, $par4ItemStack, $par5) { - var $var7; - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glBlendFunc(42, 1); - $var7 = Long_toNumber(jl_System_currentTimeMillis()) / 100.0; - $var7 = (nms_MathHelper_SIN_TABLE.data[($var7 * 10430.3779296875 | 0) & 65535] * 0.20000000298023224 + 0.4000000059604645) * 0.5; - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = $var7; - if ($par3 && $par4ItemStack !== null) { - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - $par5 = Long_toNumber(jl_System_currentTimeMillis()) / 100.0; - $var7 = nms_MathHelper_SIN_TABLE.data[($par5 * 10430.3779296875 | 0) & 65535] * 0.20000000298023224 + 0.800000011920929; - $par5 = Long_toNumber(jl_System_currentTimeMillis()) / 200.0; - $par5 = nms_MathHelper_SIN_TABLE.data[($par5 * 10430.3779296875 | 0) & 65535] * 0.20000000298023224 + 0.5; - nleg_EaglerAdapterGL30_colorR = $var7; - nleg_EaglerAdapterGL30_colorG = $var7; - nleg_EaglerAdapterGL30_colorB = $var7; - nleg_EaglerAdapterGL30_colorA = $par5; - nle_TextureLocation_bindTexture(nms_RenderGlobal_tex_terrain); - } - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glDisable(6); -} -function nms_RenderGlobal_drawBlockDamageTexture($this, $par1Tessellator, $par2EntityPlayer, $par3) { - var $var8, $var12, $var14, $var4, $var6, $var16, $var10, $var11, $var18, $var19, var$14, var$15, var$16; - $var8 = $par2EntityPlayer.$lastTickPosX; - $var12 = $par2EntityPlayer.$posX - $par2EntityPlayer.$lastTickPosX; - $var14 = $par3; - $var4 = $var8 + $var12 * $var14; - $var6 = $par2EntityPlayer.$lastTickPosY + ($par2EntityPlayer.$posY - $par2EntityPlayer.$lastTickPosY) * $var14; - $var8 = $par2EntityPlayer.$lastTickPosZ + ($par2EntityPlayer.$posZ - $par2EntityPlayer.$lastTickPosZ) * $var14; - if (!($this.$damagedBlocks.$elementCount ? 0 : 1)) { - nleg_EaglerAdapterGL30_glBlendFunc(77, 53); - nle_TextureLocation_bindTexture(nms_RenderGlobal_tex_terrain); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 0.5; - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glDisable(6); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.polygonOffset((-3.0), (-3.0)); - nleg_EaglerAdapterGL30_glEnable(78); - nleg_EaglerAdapterGL30_glEnable(6); - nlea_Tessellator_startDrawing($par1Tessellator, 98); - $var12 = -$var4; - $var14 = -$var6; - $var16 = -$var8; - $par1Tessellator.$xOffset = $var12; - $par1Tessellator.$yOffset = $var14; - $par1Tessellator.$zOffset = $var16; - $par1Tessellator.$isColorDisabled = 1; - $par2EntityPlayer = $this.$damagedBlocks; - if ($par2EntityPlayer.$cachedValues === null) { - $var10 = new ju_HashMap$2; - $var10.$this$00 = $par2EntityPlayer; - $par2EntityPlayer.$cachedValues = $var10; - } - $var10 = $par2EntityPlayer.$cachedValues.$iterator(); - while ($var10.$hasNext()) { - $var11 = $var10.$next(); - $var12 = $var11.$partialBlockX - $var4; - $var14 = $var11.$partialBlockY - $var6; - $var16 = $var11.$partialBlockZ - $var8; - if ($var12 * $var12 + $var14 * $var14 + $var16 * $var16 > 1024.0) - $var10.$remove(); - else { - $var18 = nms_World_getBlockId($this.$theWorld0, $var11.$partialBlockX, $var11.$partialBlockY, $var11.$partialBlockZ); - if ($var18 <= 0) - $var19 = null; - else { - nms_Block_$callClinit(); - $var19 = nms_Block_blocksList.data[$var18]; - } - if ($var19 === null) { - nms_Block_$callClinit(); - $var19 = nms_Block_stone; - } - $par2EntityPlayer = $this.$globalRenderBlocks; - var$14 = $var11.$partialBlockX; - var$15 = $var11.$partialBlockY; - var$16 = $var11.$partialBlockZ; - $par2EntityPlayer.$overrideBlockTexture = $this.$destroyBlockIcons.data[$var11.$partialBlockProgress]; - nms_RenderBlocks_renderBlockByRenderType($par2EntityPlayer, $var19, var$14, var$15, var$16); - $par2EntityPlayer.$overrideBlockTexture = null; - } - } - nlea_Tessellator_draw($par1Tessellator); - $par1Tessellator.$xOffset = 0.0; - $par1Tessellator.$yOffset = 0.0; - $par1Tessellator.$zOffset = 0.0; - nleg_EaglerAdapterGL30_glDisable(6); - nlea_EaglerAdapterImpl2_webgl.polygonOffset(0.0, 0.0); - nleg_EaglerAdapterGL30_glDisable(78); - nleg_EaglerAdapterGL30_glEnable(6); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_RenderGlobal_drawSelectionBox($this, $par1EntityPlayer, $par2MovingObjectPosition, $par3, $par4ItemStack, $par5) { - var $var7, $var8, $var10, $var12, var$10, var$11, var$12, var$13, var$14, var$15, var$16; - if (!$par3 && $par2MovingObjectPosition.$typeOfHit === nms_EnumMovingObjectType_TILE) { - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_colorR = 0.0; - nleg_EaglerAdapterGL30_colorG = 0.0; - nleg_EaglerAdapterGL30_colorB = 0.0; - nleg_EaglerAdapterGL30_colorA = 0.4000000059604645; - nleg_EaglerAdapterGL30_glDisable(2); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - $var7 = nms_World_getBlockId($this.$theWorld0, $par2MovingObjectPosition.$blockX, $par2MovingObjectPosition.$blockY, $par2MovingObjectPosition.$blockZ); - if ($var7 > 0) { - nms_Block_$callClinit(); - nms_Block_blocksList.data[$var7].$setBlockBoundsBasedOnState($this.$theWorld0, $par2MovingObjectPosition.$blockX, $par2MovingObjectPosition.$blockY, $par2MovingObjectPosition.$blockZ); - $var8 = $par1EntityPlayer.$lastTickPosX; - $var10 = $par1EntityPlayer.$posX - $par1EntityPlayer.$lastTickPosX; - $var12 = $par5; - $var8 = $var8 + $var10 * $var12; - $var10 = $par1EntityPlayer.$lastTickPosY + ($par1EntityPlayer.$posY - $par1EntityPlayer.$lastTickPosY) * $var12; - $var12 = $par1EntityPlayer.$lastTickPosZ + ($par1EntityPlayer.$posZ - $par1EntityPlayer.$lastTickPosZ) * $var12; - $par1EntityPlayer = nms_Block_blocksList.data[$var7].$getSelectedBoundingBoxFromPool($this.$theWorld0, $par2MovingObjectPosition.$blockX, $par2MovingObjectPosition.$blockY, $par2MovingObjectPosition.$blockZ); - var$10 = $par1EntityPlayer.$minX - 0.0020000000949949026; - var$11 = $par1EntityPlayer.$minY - 0.0020000000949949026; - var$12 = $par1EntityPlayer.$minZ - 0.0020000000949949026; - var$13 = $par1EntityPlayer.$maxX + 0.0020000000949949026; - var$14 = $par1EntityPlayer.$maxY + 0.0020000000949949026; - var$15 = $par1EntityPlayer.$maxZ + 0.0020000000949949026; - $par2MovingObjectPosition = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par2MovingObjectPosition.$initialized) { - $par4ItemStack = new nms_AABBPool; - $par1EntityPlayer = new ju_ArrayList; - ju_AbstractList__init_0($par1EntityPlayer); - $par1EntityPlayer.$array1 = $rt_createArray(jl_Object, 10); - $par4ItemStack.$listAABB = $par1EntityPlayer; - $par4ItemStack.$nextPoolIndex = 0; - $par4ItemStack.$maxPoolIndex = 0; - $par4ItemStack.$numCleans = 0; - $par4ItemStack.$maxNumCleans = 300; - $par4ItemStack.$numEntriesToRemove = 2000; - $par2MovingObjectPosition.$value7 = $par4ItemStack; - $par2MovingObjectPosition.$initialized = 1; - } - var$16 = nms_AABBPool_getAABB($par2MovingObjectPosition.$value7, var$10, var$11, var$12, var$13, var$14, var$15); - $var8 = -$var8; - $var10 = -$var10; - $var12 = -$var12; - $par1EntityPlayer = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1EntityPlayer.$initialized) { - $par2MovingObjectPosition = new nms_AABBPool; - $par4ItemStack = new ju_ArrayList; - ju_AbstractList__init_0($par4ItemStack); - $par4ItemStack.$array1 = $rt_createArray(jl_Object, 10); - $par2MovingObjectPosition.$listAABB = $par4ItemStack; - $par2MovingObjectPosition.$nextPoolIndex = 0; - $par2MovingObjectPosition.$maxPoolIndex = 0; - $par2MovingObjectPosition.$numCleans = 0; - $par2MovingObjectPosition.$maxNumCleans = 300; - $par2MovingObjectPosition.$numEntriesToRemove = 2000; - $par1EntityPlayer.$value7 = $par2MovingObjectPosition; - $par1EntityPlayer.$initialized = 1; - } - nms_RenderGlobal_drawOutlinedBoundingBox($this, nms_AABBPool_getAABB($par1EntityPlayer.$value7, var$16.$minX + $var8, var$16.$minY + $var10, var$16.$minZ + $var12, var$16.$maxX + $var8, var$16.$maxY + $var10, var$16.$maxZ + $var12)); - } - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glDisable(16); - } -} -function nms_RenderGlobal_drawOutlinedBoundingBox($this, $par1AxisAlignedBB) { - var $var2; - nlea_Tessellator_$callClinit(); - $var2 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var2, 146); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$minY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$maxX, $par1AxisAlignedBB.$minY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$maxX, $par1AxisAlignedBB.$minY, $par1AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$minY, $par1AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$minY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_draw($var2); - nlea_Tessellator_startDrawing($var2, 146); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$maxY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$maxX, $par1AxisAlignedBB.$maxY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$maxX, $par1AxisAlignedBB.$maxY, $par1AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$maxY, $par1AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$maxY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_draw($var2); - nlea_Tessellator_startDrawing($var2, 148); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$minY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$maxY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$maxX, $par1AxisAlignedBB.$minY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$maxX, $par1AxisAlignedBB.$maxY, $par1AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$maxX, $par1AxisAlignedBB.$minY, $par1AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$maxX, $par1AxisAlignedBB.$maxY, $par1AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$minY, $par1AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var2, $par1AxisAlignedBB.$minX, $par1AxisAlignedBB.$maxY, $par1AxisAlignedBB.$maxZ); - nlea_Tessellator_draw($var2); -} -function nms_RenderGlobal_markBlocksForUpdate($this, $par1, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, $var9, $var10, $var11, $var12, $var14, $var15, $var16, $var17, $var18, $var19, $var20; - $var7 = $par1 >= 0 ? $par1 / 16 | 0 : -(( -$par1 - 1 | 0) / 16 | 0) - 1 | 0; - $var8 = $par2 >= 0 ? $par2 / 16 | 0 : -(( -$par2 - 1 | 0) / 16 | 0) - 1 | 0; - $var9 = $par3 >= 0 ? $par3 / 16 | 0 : -(( -$par3 - 1 | 0) / 16 | 0) - 1 | 0; - $var10 = $par4 >= 0 ? $par4 / 16 | 0 : -(( -$par4 - 1 | 0) / 16 | 0) - 1 | 0; - $var11 = $par5 >= 0 ? $par5 / 16 | 0 : -(( -$par5 - 1 | 0) / 16 | 0) - 1 | 0; - $var12 = $par6 >= 0 ? $par6 / 16 | 0 : -(( -$par6 - 1 | 0) / 16 | 0) - 1 | 0; - while ($var7 <= $var10) { - $var14 = $var7 % $this.$renderChunksWide | 0; - if ($var14 < 0) - $var14 = $var14 + $this.$renderChunksWide | 0; - $var15 = $var8; - while ($var15 <= $var11) { - $var16 = $var15 % $this.$renderChunksTall | 0; - if ($var16 < 0) - $var16 = $var16 + $this.$renderChunksTall | 0; - $var17 = $var9; - while ($var17 <= $var12) { - $var18 = $var17 % $this.$renderChunksDeep | 0; - if ($var18 < 0) - $var18 = $var18 + $this.$renderChunksDeep | 0; - $var19 = $rt_imul($rt_imul($var18, $this.$renderChunksTall) + $var16 | 0, $this.$renderChunksWide) + $var14 | 0; - $var20 = $this.$worldRenderers.data[$var19]; - if ($var20 !== null && !$var20.$needsUpdate) { - ju_ArrayList_add($this.$worldRenderersToUpdate, $var20); - $var20.$needsUpdate = 1; - } - $var17 = $var17 + 1 | 0; - } - $var15 = $var15 + 1 | 0; - } - $var7 = $var7 + 1 | 0; - } -} -function nms_RenderGlobal_markBlockForUpdate($this, $par1, $par2, $par3) { - nms_RenderGlobal_markBlocksForUpdate($this, $par1 - 1 | 0, $par2 - 1 | 0, $par3 - 1 | 0, $par1 + 1 | 0, $par2 + 1 | 0, $par3 + 1 | 0); -} -function nms_RenderGlobal_markBlockForRenderUpdate($this, $par1, $par2, $par3) { - nms_RenderGlobal_markBlocksForUpdate($this, $par1 - 1 | 0, $par2 - 1 | 0, $par3 - 1 | 0, $par1 + 1 | 0, $par2 + 1 | 0, $par3 + 1 | 0); -} -function nms_RenderGlobal_markBlockRangeForRenderUpdate($this, $par1, $par2, $par3, $par4, $par5, $par6) { - nms_RenderGlobal_markBlocksForUpdate($this, $par1 - 1 | 0, $par2 - 1 | 0, $par3 - 1 | 0, $par4 + 1 | 0, $par5 + 1 | 0, $par6 + 1 | 0); -} -function nms_RenderGlobal_clipRenderersByFrustum($this, $par1ICamera, $par2) { - var $var3, var$4; - $var3 = 0; - while ($var3 < $this.$worldRenderers.data.length) { - if (!nms_WorldRenderer_skipAllRenderPasses($this.$worldRenderers.data[$var3]) && !($this.$worldRenderers.data[$var3].$isInFrustum && ($var3 + $this.$frustumCheckOffset | 0) & 15)) { - var$4 = $this.$worldRenderers.data[$var3]; - var$4.$isInFrustum = nms_Frustrum_isBoundingBoxInFrustum($par1ICamera, var$4.$rendererBoundingBox); - } - $var3 = $var3 + 1 | 0; - } - $this.$frustumCheckOffset = $this.$frustumCheckOffset + 1 | 0; -} -function nms_RenderGlobal_playRecord($this, $par1Str, $par2, $par3, $par4) { - var $var5; - $var5 = nms_ItemRecord_records; - if ($par1Str !== null) { - $par4 = jl_String_hashCode($par1Str); - $var5 = ju_HashMap_findNonNullKeyEntry($var5, $par1Str, $par4 & ($var5.$elementData.data.length - 1 | 0), $par4); - } else { - $var5 = $var5.$elementData.data[0]; - while ($var5 !== null && $var5.$key !== null) { - $var5 = $var5.$next1; - } - } - $var5 = $var5 === null ? null : $var5.$value0; - if ($par1Str !== null && $var5 !== null) - nms_GuiIngame_setRecordPlayingMessage($this.$mc9.$ingameGUI, nms_ItemRecord_getRecordTitle($var5)); -} -function nms_RenderGlobal_playSound($this, $par1Str, $par2, $par4, $par6, $par8, $par9) { - return; -} -function nms_RenderGlobal_playSoundToNearExcept($this, $par1EntityPlayer, $par2Str, $par3, $par5, $par7, $par9, $par10) { - return; -} -function nms_RenderGlobal_spawnParticle($this, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par12 = $thread.pop();$par10 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Str = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderGlobal_doSpawnParticle($this, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12, $ptr); -} -function nms_RenderGlobal_doSpawnParticle($this, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12) { - var $var14, $var15, $var17, $var19, $var21, var$13, $var24, var$15, $var27, $var28, $var25, $var26, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var26 = $thread.pop();$var25 = $thread.pop();$var28 = $thread.pop();$var27 = $thread.pop();var$15 = $thread.pop();$var24 = $thread.pop();var$13 = $thread.pop();$var21 = $thread.pop();$var19 = $thread.pop();$var17 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$par12 = $thread.pop();$par10 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Str = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$mc9 !== null && $this.$mc9.$renderViewEntity !== null && $this.$mc9.$effectRenderer !== null) { - $var14 = $this.$mc9.$gameSettings.$particleSetting; - if ($var14 == 1 && !ju_Random_nextInt0($this.$theWorld0.$rand, 3)) - $var14 = 2; - $var15 = $this.$mc9.$renderViewEntity.$posX - $par2; - $var17 = $this.$mc9.$renderViewEntity.$posY - $par4; - $var19 = $this.$mc9.$renderViewEntity.$posZ - $par6; - $var21 = null; - if (jl_String_equals($par1Str, $rt_s(844))) { - var$13 = $this.$mc9.$effectRenderer; - $var21 = nms_EntityHugeExplodeFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - nms_EffectRenderer_addEffect(var$13, $var21); - } else if (jl_String_equals($par1Str, $rt_s(845))) { - var$13 = $this.$mc9.$effectRenderer; - $var21 = nms_EntityLargeExplodeFX__init_($this.$renderEngine2, $this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - nms_EffectRenderer_addEffect(var$13, $var21); - } else if (jl_String_equals($par1Str, $rt_s(846))) { - var$13 = $this.$mc9.$effectRenderer; - $var21 = nms_EntityFireworkSparkFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12, $this.$mc9.$effectRenderer); - nms_EffectRenderer_addEffect(var$13, $var21); - } - if ($var21 !== null) - return $var21; - if ($var15 * $var15 + $var17 * $var17 + $var19 * $var19 > 256.0) - return null; - if ($var14 > 1) - return null; - a: { - if (jl_String_equals($par1Str, $rt_s(680))) { - $var21 = nms_EntityBubbleFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(847))) { - $var21 = nms_EntitySuspendFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(848))) { - $var21 = nms_EntityAuraFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(849))) { - $var21 = nms_EntityAuraFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(850))) { - $var21 = new nms_EntityCritFX; - $par1Str = $this.$theWorld0; - $ptr = 1; - continue main; - } - if (jl_String_equals($par1Str, $rt_s(851))) { - $var21 = new nms_EntityCritFX; - $par1Str = $this.$theWorld0; - $ptr = 2; - continue main; - } - if (jl_String_equals($par1Str, $rt_s(852))) { - $var21 = nms_EntitySmokeFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(709))) { - $var21 = nms_EntitySpellParticleFX__init_($this.$theWorld0, $par2, $par4, $par6, 0.0, 0.0, 0.0); - nms_EntityFX_setRBGColorF($var21, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(710))) { - $var21 = nms_EntitySpellParticleFX__init_($this.$theWorld0, $par2, $par4, $par6, 0.0, 0.0, 0.0); - nms_EntityFX_setAlphaF($var21, 0.15000000596046448); - nms_EntityFX_setRBGColorF($var21, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(853))) { - $var21 = nms_EntitySpellParticleFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(854))) { - $var21 = nms_EntitySpellParticleFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - nms_EntitySpellParticleFX_setBaseSpellTextureIndex($var21, 144); - break a; - } - if (jl_String_equals($par1Str, $rt_s(855))) { - $var21 = nms_EntitySpellParticleFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - nms_EntitySpellParticleFX_setBaseSpellTextureIndex($var21, 144); - $var24 = ju_Random_nextFloat($this.$theWorld0.$rand) * 0.5 + 0.3499999940395355; - var$15 = 1.0 * $var24; - nms_EntityFX_setRBGColorF($var21, var$15, 0.0 * $var24, var$15); - break a; - } - if (jl_String_equals($par1Str, $rt_s(856))) { - $var21 = nms_EntityNoteFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(716))) { - $var21 = nms_EntityPortalFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(857))) { - $var21 = nms_EntityEnchantmentTableParticleFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(688))) { - $var21 = nms_EntityExplodeFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(858))) { - $var21 = nms_EntityFlameFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(859))) { - $var21 = nms_EntityLavaFX__init_($this.$theWorld0, $par2, $par4, $par6); - break a; - } - if (jl_String_equals($par1Str, $rt_s(860))) { - $var21 = nms_EntityFootStepFX__init_($this.$renderEngine2, $this.$theWorld0, $par2, $par4, $par6); - break a; - } - if (jl_String_equals($par1Str, $rt_s(679))) { - $var21 = nms_EntitySplashFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(715))) { - $var21 = nms_EntitySmokeFX__init_0($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12, 2.5); - break a; - } - if (jl_String_equals($par1Str, $rt_s(861))) { - $var21 = nms_EntityCloudFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(862))) { - $var21 = nms_EntityReddustFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(863))) { - $var21 = new nms_EntityBreakingFX; - $par1Str = $this.$theWorld0; - nms_Item_$callClinit(); - nms_EntityBreakingFX__init_($var21, $par1Str, $par2, $par4, $par6, nms_Item_snowball, $this.$renderEngine2); - break a; - } - if (jl_String_equals($par1Str, $rt_s(864))) { - $var21 = new nms_EntityDropParticleFX; - $par1Str = $this.$theWorld0; - nms_Material_$callClinit(); - nms_EntityDropParticleFX__init_($var21, $par1Str, $par2, $par4, $par6, nms_Material_water); - break a; - } - if (jl_String_equals($par1Str, $rt_s(865))) { - $var21 = new nms_EntityDropParticleFX; - $par1Str = $this.$theWorld0; - nms_Material_$callClinit(); - nms_EntityDropParticleFX__init_($var21, $par1Str, $par2, $par4, $par6, nms_Material_lava); - break a; - } - if (jl_String_equals($par1Str, $rt_s(866))) { - $var21 = nms_EntitySnowShovelFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(867))) { - $var21 = new nms_EntityBreakingFX; - $par1Str = $this.$theWorld0; - nms_Item_$callClinit(); - nms_EntityBreakingFX__init_($var21, $par1Str, $par2, $par4, $par6, nms_Item_slimeBall, $this.$renderEngine2); - break a; - } - if (jl_String_equals($par1Str, $rt_s(868))) { - $var21 = nms_EntityHeartFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - break a; - } - if (jl_String_equals($par1Str, $rt_s(869))) { - $var21 = nms_EntityHeartFX__init_($this.$theWorld0, $par2, $par4 + 0.5, $par6, $par8, $par10, $par12); - nms_EntityFX_setParticleTextureIndex($var21, 81); - nms_EntityFX_setRBGColorF($var21, 1.0, 1.0, 1.0); - break a; - } - if (jl_String_equals($par1Str, $rt_s(870))) { - $var21 = nms_EntityAuraFX__init_($this.$theWorld0, $par2, $par4, $par6, $par8, $par10, $par12); - nms_EntityFX_setParticleTextureIndex($var21, 82); - nms_EntityFX_setRBGColorF($var21, 1.0, 1.0, 1.0); - break a; - } - if (jl_String_startsWith0($par1Str, $rt_s(712))) { - $var27 = jl_Integer_parseInt0(jl_String_substring($par1Str, jl_String_indexOf2($par1Str, $rt_s(381)) + 1 | 0)); - $var21 = new nms_EntityBreakingFX; - $par1Str = $this.$theWorld0; - nms_Item_$callClinit(); - nms_EntityBreakingFX__init_0($var21, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12, nms_Item_itemsList.data[$var27], $this.$renderEngine2); - break a; - } - if (!jl_String_startsWith0($par1Str, $rt_s(673))) - break a; - $var28 = jl_String_split0($par1Str, $rt_s(381), 3).data; - $var25 = jl_Integer_parseInt0($var28[1]); - $var26 = jl_Integer_parseInt0($var28[2]); - $par1Str = new nms_EntityDiggingFX; - var$13 = $this.$theWorld0; - nms_Block_$callClinit(); - nms_EntityDiggingFX__init_($par1Str, var$13, $par2, $par4, $par6, $par8, $par10, $par12, nms_Block_blocksList.data[$var25], 0, $var26, $this.$renderEngine2); - $var21 = nms_EntityDiggingFX_applyRenderColor($par1Str, $var26); - } - if ($var21 !== null) - nms_EffectRenderer_addEffect($this.$mc9.$effectRenderer, $var21); - return $var21; - } - return null; - case 1: - nms_EntityCritFX__init_($var21, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12); - if ($rt_suspending()) { - break main; - } - if ($var21 !== null) - nms_EffectRenderer_addEffect($this.$mc9.$effectRenderer, $var21); - return $var21; - case 2: - nms_EntityCritFX__init_($var21, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12); - if ($rt_suspending()) { - break main; - } - nms_EntityFX_setRBGColorF($var21, nms_EntityFX_getRedColorF($var21) * 0.30000001192092896, nms_EntityFX_getGreenColorF($var21) * 0.800000011920929, nms_EntityFX_getBlueColorF($var21)); - nms_EntityFX_nextTextureIndexX($var21); - if ($var21 !== null) - nms_EffectRenderer_addEffect($this.$mc9.$effectRenderer, $var21); - return $var21; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Str, $par2, $par4, $par6, $par8, $par10, $par12, $var14, $var15, $var17, $var19, $var21, var$13, $var24, var$15, $var27, $var28, $var25, $var26, $ptr); -} -function nms_RenderGlobal_onEntityCreate($this, $par1Entity) { - $par1Entity.$updateCloak(); -} -function nms_RenderGlobal_onEntityDestroy($this, $par1Entity) { - return; -} -function nms_RenderGlobal_deleteAllDisplayLists($this) { - nms_GLAllocation_deleteDisplayLists($this.$glRenderListBase); -} -function nms_RenderGlobal_broadcastSound($this, $par1, $par2, $par3, $par4, $par5) { - var $var7, $var9, $var11, $var13, $var15, $var17, $var19, var$13, var$14, var$15, var$16, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var19 = $thread.pop();$var17 = $thread.pop();$var15 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - switch ($par1) { - case 1013: - case 1018: - break; - default: - break a; - } - if ($this.$mc9.$renderViewEntity !== null) { - $var7 = $par2 - $this.$mc9.$renderViewEntity.$posX; - $var9 = $par3 - $this.$mc9.$renderViewEntity.$posY; - $var11 = $par4 - $this.$mc9.$renderViewEntity.$posZ; - $var13 = jl_Math_sqrt($var7 * $var7 + $var9 * $var9 + $var11 * $var11); - $var15 = $this.$mc9.$renderViewEntity.$posX; - $var17 = $this.$mc9.$renderViewEntity.$posY; - $var19 = $this.$mc9.$renderViewEntity.$posZ; - if ($var13 > 0.0) { - $var15 = $var15 + $var7 / $var13 * 2.0; - $var17 = $var17 + $var9 / $var13 * 2.0; - $var19 = $var19 + $var11 / $var13 * 2.0; - } - if ($par1 == 1013) { - var$13 = $this.$theWorld0; - var$14 = $rt_s(871); - var$15 = 1.0; - var$16 = 1.0; - $par1 = 0; - $ptr = 1; - continue main; - } - if ($par1 == 1018) { - var$14 = $this.$theWorld0; - var$13 = $rt_s(872); - var$15 = 5.0; - var$16 = 1.0; - $par1 = 0; - $ptr = 2; - continue main; - } - } - } - return; - case 1: - nms_WorldClient_playSound(var$13, $var15, $var17, $var19, var$14, var$15, var$16, $par1); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_WorldClient_playSound(var$14, $var15, $var17, $var19, var$13, var$15, var$16, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5, $var7, $var9, $var11, $var13, $var15, $var17, $var19, var$13, var$14, var$15, var$16, $ptr); -} -function nms_RenderGlobal_playAuxSFX($this, $par1EntityPlayer, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var10, $var8, $var12, $var16, $var17, $var40, $var33, $var9, $var34, $var10_0, $var36, $var39, $var23, $var37, $var38, $var39_0, $var23_0, $var25, $var27, $var29, $var20, $var18, $var32, var$31, $var14, $var15, $var19, $var35, $var21, $var22, $var24, $var26, $var31, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var31 = $thread.pop();$var26 = $thread.pop();$var24 = $thread.pop();$var22 = $thread.pop();$var21 = $thread.pop();$var35 = $thread.pop();$var19 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();var$31 = $thread.pop();$var32 = $thread.pop();$var18 = $thread.pop();$var20 = $thread.pop();$var29 = $thread.pop();$var27 = $thread.pop();$var25 = $thread.pop();$var23_0 = $thread.pop();$var39_0 = $thread.pop();$var38 = $thread.pop();$var37 = $thread.pop();$var23 = $thread.pop();$var39 - = $thread.pop();$var36 = $thread.pop();$var10_0 = $thread.pop();$var34 = $thread.pop();$var9 = $thread.pop();$var33 = $thread.pop();$var40 = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var12 = $thread.pop();$var8 = $thread.pop();$var10 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var7 = $this.$theWorld0.$rand; - switch ($par2) { - case 1000: - $var7 = $this.$theWorld0; - $var10 = $par3; - $var8 = $par4; - $var12 = $par5; - $par1EntityPlayer = $rt_s(432); - $var16 = 1.0; - $var17 = 1.0; - $par2 = 0; - $ptr = 1; - continue main; - case 1001: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3; - $var8 = $par4; - $var12 = $par5; - $var7 = $rt_s(432); - $var16 = 1.0; - $var17 = 1.2000000476837158; - $par2 = 0; - $ptr = 2; - continue main; - case 1002: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3; - $var8 = $par4; - $var12 = $par5; - $var7 = $rt_s(873); - $var16 = 1.0; - $var17 = 1.2000000476837158; - $par2 = 0; - $ptr = 3; - continue main; - case 1003: - if (jl_Math_random() >= 0.5) { - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var7 = $rt_s(874); - $var16 = 1.0; - $var17 = ju_Random_nextFloat($this.$theWorld0.$rand) * 0.10000000149011612 + 0.8999999761581421; - $par2 = 0; - $ptr = 19; - continue main; - } - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var7 = $rt_s(875); - $var16 = 1.0; - $var17 = ju_Random_nextFloat($this.$theWorld0.$rand) * 0.10000000149011612 + 0.8999999761581421; - $par2 = 0; - $ptr = 20; - continue main; - case 1004: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(677); - $var16 = 0.5; - $var17 = 2.5999999046325684 + (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.800000011920929; - $par2 = 0; - $ptr = 4; - continue main; - case 1005: - break; - case 1007: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(876); - $var16 = 10.0; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 5; - continue main; - case 1008: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(877); - $var16 = 10.0; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 6; - continue main; - case 1009: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(877); - $var16 = 2.0; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 7; - continue main; - case 1010: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(878); - $var16 = 2.0; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 8; - continue main; - case 1011: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(879); - $var16 = 2.0; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 9; - continue main; - case 1012: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(880); - $var16 = 2.0; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 10; - continue main; - case 1014: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(881); - $var16 = 2.0; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 11; - continue main; - case 1015: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(882); - $var16 = 0.05000000074505806; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 12; - continue main; - case 1016: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(883); - $var16 = 2.0; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 13; - continue main; - case 1017: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var40 = $rt_s(884); - $var16 = 2.0; - $var17 = (ju_Random_nextFloat($var7) - ju_Random_nextFloat($var7)) * 0.20000000298023224 + 1.0; - $par2 = 0; - $ptr = 14; - continue main; - case 1020: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var7 = $rt_s(885); - $var16 = 1.0; - $var17 = ju_Random_nextFloat($this.$theWorld0.$rand) * 0.10000000149011612 + 0.8999999761581421; - $par2 = 0; - $ptr = 15; - continue main; - case 1021: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var7 = $rt_s(886); - $var16 = 1.0; - $var17 = ju_Random_nextFloat($this.$theWorld0.$rand) * 0.10000000149011612 + 0.8999999761581421; - $par2 = 0; - $ptr = 16; - continue main; - case 1022: - $par1EntityPlayer = $this.$theWorld0; - $var10 = $par3 + 0.5; - $var8 = $par4 + 0.5; - $var12 = $par5 + 0.5; - $var7 = $rt_s(887); - $var16 = 0.30000001192092896; - $var17 = ju_Random_nextFloat($this.$theWorld0.$rand) * 0.10000000149011612 + 0.8999999761581421; - $par2 = 0; - $ptr = 17; - continue main; - case 2000: - $var33 = ($par6 % 3 | 0) - 1 | 0; - $var9 = (($par6 / 3 | 0) % 3 | 0) - 1 | 0; - $var10 = $par3; - $var8 = $var33; - $var10 = $var10 + $var8 * 0.6 + 0.5; - $var12 = $par4 + 0.5; - $var34 = $par5; - $var10_0 = $var9; - $var34 = $var34 + $var10_0 * 0.6 + 0.5; - $var36 = 0; - $var39 = $var10 + $var8 * 0.01; - $var23 = $var34 + $var10_0 * 0.01; - if ($var36 >= 10) - return; - $var37 = ju_Random_nextDouble($var7) * 0.2 + 0.01; - $var38 = $var39 + (ju_Random_nextDouble($var7) - 0.5) * $var10_0 * 0.5; - $var39_0 = $var12 + (ju_Random_nextDouble($var7) - 0.5) * 0.5; - $var23_0 = $var23 + (ju_Random_nextDouble($var7) - 0.5) * $var8 * 0.5; - $var25 = $var8 * $var37 + ju_Random_nextGaussian($var7) * 0.01; - $var27 = (-0.03) + ju_Random_nextGaussian($var7) * 0.01; - $var29 = $var10_0 * $var37 + ju_Random_nextGaussian($var7) * 0.01; - $par1EntityPlayer = $rt_s(852); - $ptr = 22; - continue main; - case 2001: - $var20 = $par6 & 4095; - if ($var20 > 0) { - nms_Block_$callClinit(); - $var40 = nms_Block_blocksList.data[$var20]; - $par1EntityPlayer = $this.$mc9.$sndManager; - $var7 = $var40.$stepSound.$getBreakSound(); - $var16 = $par3 + 0.5; - $var17 = $par4 + 0.5; - $var18 = $par5 + 0.5; - $var32 = (nms_StepSound_getVolume($var40.$stepSound) + 1.0) / 2.0; - var$31 = nms_StepSound_getPitch($var40.$stepSound) * 0.800000011920929; - $ptr = 21; - continue main; - } - nms_EffectRenderer_addBlockDestroyEffects($this.$mc9.$effectRenderer, $par3, $par4, $par5, $var20, $par6 >> 12 & 255); - break a; - case 2002: - $var8 = $par3; - $var10_0 = $par4; - $var12 = $par5; - $par1EntityPlayer = jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(712)); - nms_Item_$callClinit(); - $var14 = jl_StringBuilder_toString(jl_StringBuilder_append1($par1EntityPlayer, nms_Item_potion.$itemID)); - $var15 = 0; - if ($var15 < 8) { - $var34 = ju_Random_nextGaussian($var7) * 0.15; - $var37 = ju_Random_nextDouble($var7) * 0.2; - $var10 = ju_Random_nextGaussian($var7) * 0.15; - $ptr = 23; - continue main; - } - $par2 = nms_ItemPotion_getColorFromDamage(nms_Item_potion, $par6); - $var16 = ($par2 >> 16 & 255) / 255.0; - $var17 = ($par2 >> 8 & 255) / 255.0; - $var18 = ($par2 >> 0 & 255) / 255.0; - $var19 = $rt_s(853); - if (nms_ItemPotion_isEffectInstant(nms_Item_potion, $par6)) - $var19 = $rt_s(854); - $var20 = 0; - $var38 = $var10_0 + 0.3; - if ($var20 >= 100) { - $par1EntityPlayer = $this.$theWorld0; - $var10 = $var8 + 0.5; - $var8 = $var10_0 + 0.5; - $var12 = $var12 + 0.5; - $var7 = $rt_s(888); - $var16 = 1.0; - $var17 = ju_Random_nextFloat($this.$theWorld0.$rand) * 0.10000000149011612 + 0.8999999761581421; - $par2 = 0; - $ptr = 29; - continue main; - } - $var39 = ju_Random_nextDouble($var7) * 4.0; - $var23 = ju_Random_nextDouble($var7) * 3.141592653589793 * 2.0; - $var25 = jl_Math_cos($var23) * $var39; - $var27 = 0.01 + ju_Random_nextDouble($var7) * 0.5; - $var29 = jl_Math_sin($var23) * $var39; - $var10 = $var8 + $var25 * 0.1; - $var34 = $var12 + $var29 * 0.1; - $ptr = 30; - continue main; - case 2003: - $var8 = $par3 + 0.5; - $var10 = $par4; - $var12 = $par5 + 0.5; - $par1EntityPlayer = jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(712)); - nms_Item_$callClinit(); - $var14 = jl_StringBuilder_toString(jl_StringBuilder_append1($par1EntityPlayer, nms_Item_eyeOfEnder.$itemID)); - $var15 = 0; - if ($var15 < 8) { - $var34 = ju_Random_nextGaussian($var7) * 0.15; - $var10_0 = ju_Random_nextDouble($var7) * 0.2; - $var37 = ju_Random_nextGaussian($var7) * 0.15; - $ptr = 24; - continue main; - } - $var35 = 0.0; - $var10_0 = $var10 - 0.4; - if ($var35 >= 6.283185307179586) - return; - $par1EntityPlayer = $rt_s(716); - $var10 = $var8 + jl_Math_cos($var35) * 5.0; - $var34 = $var12 + jl_Math_sin($var35) * 5.0; - $var37 = jl_Math_cos($var35) * (-5.0); - $var39 = 0.0; - $var38 = jl_Math_sin($var35) * (-5.0); - $ptr = 27; - continue main; - case 2004: - $var21 = 0; - $var10 = $par3 + 0.5; - $var34 = $par4 + 0.5; - $var10_0 = $par5 + 0.5; - if ($var21 >= 20) - return; - $var22 = $var10 + (ju_Random_nextFloat($this.$theWorld0.$rand) - 0.5) * 2.0; - $var24 = $var34 + (ju_Random_nextFloat($this.$theWorld0.$rand) - 0.5) * 2.0; - $var26 = $var10_0 + (ju_Random_nextFloat($this.$theWorld0.$rand) - 0.5) * 2.0; - $par1EntityPlayer = $this.$theWorld0; - $var7 = $rt_s(852); - $var8 = 0.0; - $var12 = 0.0; - $var37 = 0.0; - $ptr = 25; - continue main; - case 2005: - $par1EntityPlayer = $this.$theWorld0; - $ptr = 18; - continue main; - default: - break a; - } - nms_Item_$callClinit(); - if (!(nms_Item_itemsList.data[$par6] instanceof nms_ItemRecord)) - nms_World_playRecord($this.$theWorld0, null, $par3, $par4, $par5); - else - nms_World_playRecord($this.$theWorld0, nms_Item_itemsList.data[$par6].$recordName, $par3, $par4, $par5); - } - return; - case 1: - nms_WorldClient_playSound($var7, $var10, $var8, $var12, $par1EntityPlayer, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var7, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var7, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 5: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 6: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 7: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 8: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 9: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 10: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 11: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 12: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 13: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 14: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var40, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 15: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var7, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 16: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var7, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 17: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var7, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 18: - nms_ItemDye_func_96603_a($par1EntityPlayer, $par3, $par4, $par5, $par6); - if ($rt_suspending()) { - break main; - } - return; - case 19: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var7, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 20: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var7, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 21: - nms_SoundManager_playSound($par1EntityPlayer, $var7, $var16, $var17, $var18, $var32, var$31); - if ($rt_suspending()) { - break main; - } - nms_EffectRenderer_addBlockDestroyEffects($this.$mc9.$effectRenderer, $par3, $par4, $par5, $var20, $par6 >> 12 & 255); - return; - case 22: - nms_RenderGlobal_spawnParticle($this, $par1EntityPlayer, $var38, $var39_0, $var23_0, $var25, $var27, $var29); - if ($rt_suspending()) { - break main; - } - $var36 = $var36 + 1 | 0; - if ($var36 >= 10) - return; - $var37 = ju_Random_nextDouble($var7) * 0.2 + 0.01; - $var38 = $var39 + (ju_Random_nextDouble($var7) - 0.5) * $var10_0 * 0.5; - $var39_0 = $var12 + (ju_Random_nextDouble($var7) - 0.5) * 0.5; - $var23_0 = $var23 + (ju_Random_nextDouble($var7) - 0.5) * $var8 * 0.5; - $var25 = $var8 * $var37 + ju_Random_nextGaussian($var7) * 0.01; - $var27 = (-0.03) + ju_Random_nextGaussian($var7) * 0.01; - $var29 = $var10_0 * $var37 + ju_Random_nextGaussian($var7) * 0.01; - $par1EntityPlayer = $rt_s(852); - continue main; - case 23: - nms_RenderGlobal_spawnParticle($this, $var14, $var8, $var10_0, $var12, $var34, $var37, $var10); - if ($rt_suspending()) { - break main; - } - $var15 = $var15 + 1 | 0; - if ($var15 < 8) { - $var34 = ju_Random_nextGaussian($var7) * 0.15; - $var37 = ju_Random_nextDouble($var7) * 0.2; - $var10 = ju_Random_nextGaussian($var7) * 0.15; - continue main; - } - $par2 = nms_ItemPotion_getColorFromDamage(nms_Item_potion, $par6); - $var16 = ($par2 >> 16 & 255) / 255.0; - $var17 = ($par2 >> 8 & 255) / 255.0; - $var18 = ($par2 >> 0 & 255) / 255.0; - $var19 = $rt_s(853); - if (nms_ItemPotion_isEffectInstant(nms_Item_potion, $par6)) - $var19 = $rt_s(854); - $var20 = 0; - $var38 = $var10_0 + 0.3; - if ($var20 >= 100) { - $par1EntityPlayer = $this.$theWorld0; - $var10 = $var8 + 0.5; - $var8 = $var10_0 + 0.5; - $var12 = $var12 + 0.5; - $var7 = $rt_s(888); - $var16 = 1.0; - $var17 = ju_Random_nextFloat($this.$theWorld0.$rand) * 0.10000000149011612 + 0.8999999761581421; - $par2 = 0; - $ptr = 29; - continue main; - } - $var39 = ju_Random_nextDouble($var7) * 4.0; - $var23 = ju_Random_nextDouble($var7) * 3.141592653589793 * 2.0; - $var25 = jl_Math_cos($var23) * $var39; - $var27 = 0.01 + ju_Random_nextDouble($var7) * 0.5; - $var29 = jl_Math_sin($var23) * $var39; - $var10 = $var8 + $var25 * 0.1; - $var34 = $var12 + $var29 * 0.1; - $ptr = 30; - continue main; - case 24: - nms_RenderGlobal_spawnParticle($this, $var14, $var8, $var10, $var12, $var34, $var10_0, $var37); - if ($rt_suspending()) { - break main; - } - $var15 = $var15 + 1 | 0; - if ($var15 < 8) { - $var34 = ju_Random_nextGaussian($var7) * 0.15; - $var10_0 = ju_Random_nextDouble($var7) * 0.2; - $var37 = ju_Random_nextGaussian($var7) * 0.15; - continue main; - } - $var35 = 0.0; - $var10_0 = $var10 - 0.4; - if ($var35 >= 6.283185307179586) - return; - $par1EntityPlayer = $rt_s(716); - $var10 = $var8 + jl_Math_cos($var35) * 5.0; - $var34 = $var12 + jl_Math_sin($var35) * 5.0; - $var37 = jl_Math_cos($var35) * (-5.0); - $var39 = 0.0; - $var38 = jl_Math_sin($var35) * (-5.0); - $ptr = 27; - continue main; - case 25: - nms_World_spawnParticle($par1EntityPlayer, $var7, $var22, $var24, $var26, $var8, $var12, $var37); - if ($rt_suspending()) { - break main; - } - $par1EntityPlayer = $this.$theWorld0; - $var7 = $rt_s(858); - $var8 = 0.0; - $var12 = 0.0; - $var37 = 0.0; - $ptr = 26; - case 26: - nms_World_spawnParticle($par1EntityPlayer, $var7, $var22, $var24, $var26, $var8, $var12, $var37); - if ($rt_suspending()) { - break main; - } - $var21 = $var21 + 1 | 0; - if ($var21 >= 20) - return; - $var22 = $var10 + (ju_Random_nextFloat($this.$theWorld0.$rand) - 0.5) * 2.0; - $var24 = $var34 + (ju_Random_nextFloat($this.$theWorld0.$rand) - 0.5) * 2.0; - $var26 = $var10_0 + (ju_Random_nextFloat($this.$theWorld0.$rand) - 0.5) * 2.0; - $par1EntityPlayer = $this.$theWorld0; - $var7 = $rt_s(852); - $var8 = 0.0; - $var12 = 0.0; - $var37 = 0.0; - $ptr = 25; - continue main; - case 27: - nms_RenderGlobal_spawnParticle($this, $par1EntityPlayer, $var10, $var10_0, $var34, $var37, $var39, $var38); - if ($rt_suspending()) { - break main; - } - $par1EntityPlayer = $rt_s(716); - $var10 = $var8 + jl_Math_cos($var35) * 5.0; - $var34 = $var12 + jl_Math_sin($var35) * 5.0; - $var37 = jl_Math_cos($var35) * (-7.0); - $var39 = 0.0; - $var38 = jl_Math_sin($var35) * (-7.0); - $ptr = 28; - case 28: - nms_RenderGlobal_spawnParticle($this, $par1EntityPlayer, $var10, $var10_0, $var34, $var37, $var39, $var38); - if ($rt_suspending()) { - break main; - } - $var35 = $var35 + 0.15707963267948966; - if ($var35 >= 6.283185307179586) - return; - $par1EntityPlayer = $rt_s(716); - $var10 = $var8 + jl_Math_cos($var35) * 5.0; - $var34 = $var12 + jl_Math_sin($var35) * 5.0; - $var37 = jl_Math_cos($var35) * (-5.0); - $var39 = 0.0; - $var38 = jl_Math_sin($var35) * (-5.0); - $ptr = 27; - continue main; - case 29: - nms_WorldClient_playSound($par1EntityPlayer, $var10, $var8, $var12, $var7, $var16, $var17, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 30: - $tmp = nms_RenderGlobal_doSpawnParticle($this, $var19, $var10, $var38, $var34, $var25, $var27, $var29); - if ($rt_suspending()) { - break main; - } - $var31 = $tmp; - if ($var31 !== null) { - $var32 = 0.75 + ju_Random_nextFloat($var7) * 0.25; - nms_EntityFX_setRBGColorF($var31, $var16 * $var32, $var17 * $var32, $var18 * $var32); - nms_EntityFX_multiplyVelocity($var31, $var39); - } - $var20 = $var20 + 1 | 0; - if ($var20 >= 100) { - $par1EntityPlayer = $this.$theWorld0; - $var10 = $var8 + 0.5; - $var8 = $var10_0 + 0.5; - $var12 = $var12 + 0.5; - $var7 = $rt_s(888); - $var16 = 1.0; - $var17 = ju_Random_nextFloat($this.$theWorld0.$rand) * 0.10000000149011612 + 0.8999999761581421; - $par2 = 0; - $ptr = 29; - continue main; - } - $var39 = ju_Random_nextDouble($var7) * 4.0; - $var23 = ju_Random_nextDouble($var7) * 3.141592653589793 * 2.0; - $var25 = jl_Math_cos($var23) * $var39; - $var27 = 0.01 + ju_Random_nextDouble($var7) * 0.5; - $var29 = jl_Math_sin($var23) * $var39; - $var10 = $var8 + $var25 * 0.1; - $var34 = $var12 + $var29 * 0.1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $par3, $par4, $par5, $par6, $var7, $var10, $var8, $var12, $var16, $var17, $var40, $var33, $var9, $var34, $var10_0, $var36, $var39, $var23, $var37, $var38, $var39_0, $var23_0, $var25, $var27, $var29, $var20, $var18, $var32, var$31, $var14, $var15, $var19, $var35, $var21, $var22, $var24, $var26, $var31, $ptr); -} -function nms_RenderGlobal_destroyBlockPartially($this, $par1, $par2, $par3, $par4, $par5) { - var var$6, $var6, var$8, var$9; - a: { - if ($par5 >= 0) { - var$6 = $rt_compare($par5, 10); - if (var$6 < 0) { - $var6 = $this.$damagedBlocks; - var$8 = jl_Integer_valueOf($par1); - if (var$8 !== null) { - var$9 = jl_Integer_hashCode(var$8); - $var6 = ju_HashMap_findNonNullKeyEntry($var6, var$8, var$9 & ($var6.$elementData.data.length - 1 | 0), var$9); - } else { - $var6 = $var6.$elementData.data[0]; - while ($var6 !== null && $var6.$key !== null) { - $var6 = $var6.$next1; - } - } - $var6 = $var6 === null ? null : $var6.$value0; - if (!($var6 !== null && $var6.$partialBlockX == $par2 && $var6.$partialBlockY == $par3 && $var6.$partialBlockZ == $par4)) { - $var6 = new nms_DestroyBlockProgress; - $var6.$miningPlayerEntId = $par1; - $var6.$partialBlockX = $par2; - $var6.$partialBlockY = $par3; - $var6.$partialBlockZ = $par4; - ju_HashMap_putImpl($this.$damagedBlocks, jl_Integer_valueOf($par1), $var6); - } - if (var$6 > 0) - $par5 = 10; - $var6.$partialBlockProgress = $par5; - $var6.$createdAtCloudUpdateTick = $this.$cloudTickCounter; - break a; - } - } - ju_HashMap_removeEntry($this.$damagedBlocks, jl_Integer_valueOf($par1)); - } -} -function nms_RenderGlobal_registerDestroyBlockIcons($this, $par1IconRegister) { - var $var2, var$3, var$4; - $this.$destroyBlockIcons = $rt_createArray(nms_Icon, 10); - $var2 = 0; - while ($var2 < $this.$destroyBlockIcons.data.length) { - var$3 = $this.$destroyBlockIcons.data; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(889)); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var2, 10); - var$3[$var2] = $par1IconRegister.$registerIcon(jl_String__init_0(var$4.$buffer, 0, var$4.$length)); - $var2 = $var2 + 1 | 0; - } -} -function nms_RenderGlobal__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(890); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderGlobal_tunnel = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(891); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderGlobal_sun = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(892); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderGlobal_moon = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(893); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderGlobal_tex_clouds = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderGlobal_tex_terrain = var$1; -} -function nms_EffectRenderer() { - var a = this; jl_Object.call(a); - a.$worldObj3 = null; - a.$fxLayers = null; - a.$renderer = null; - a.$rand1 = null; -} -var nms_EffectRenderer_particles = null; -var nms_EffectRenderer_terrain = null; -var nms_EffectRenderer_items = null; -function nms_EffectRenderer__init_(var_0, var_1) { - var var_2 = new nms_EffectRenderer(); - nms_EffectRenderer__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_EffectRenderer__init_0($this, $par1World, $par2RenderEngine) { - var $var3, var$4; - $this.$fxLayers = $rt_createArray(ju_List, 4); - $this.$rand1 = new ju_Random; - if ($par1World !== null) - $this.$worldObj3 = $par1World; - $this.$renderer = $par2RenderEngine; - $var3 = 0; - while ($var3 < 4) { - var$4 = $this.$fxLayers.data; - $par1World = new ju_ArrayList; - $par1World.$array1 = $rt_createArray(jl_Object, 10); - var$4[$var3] = $par1World; - $var3 = $var3 + 1 | 0; - } -} -function nms_EffectRenderer_addEffect($this, $par1EntityFX) { - var $var2; - $var2 = $par1EntityFX.$getFXLayer(); - if ($this.$fxLayers.data[$var2].$size0 >= 4000) - ju_ArrayList_remove($this.$fxLayers.data[$var2], 0); - ju_ArrayList_add($this.$fxLayers.data[$var2], $par1EntityFX); -} -function nms_EffectRenderer_updateEffects($this) { - var $var1, $var2, $var3, var$4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = 0; - while ($var1 < 4) { - $var2 = 0; - if ($var2 < $this.$fxLayers.data[$var1].$size0) { - $var3 = $this.$fxLayers.data[$var1]; - if ($var2 >= 0 && $var2 < $var3.$size0) { - $var3 = $var3.$array1.data[$var2]; - $ptr = 1; - continue main; - } - $var3 = new jl_IndexOutOfBoundsException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $rt_throw($var3); - } - $var1 = $var1 + 1 | 0; - } - return; - case 1: - $var3.$onUpdate(); - if ($rt_suspending()) { - break main; - } - if (!$var3.$isDead) - var$4 = $var2; - else { - $var3 = $this.$fxLayers.data[$var1]; - var$4 = $var2 + (-1) | 0; - ju_ArrayList_remove($var3, $var2); - } - $var2 = var$4 + 1 | 0; - while (true) { - if ($var2 < $this.$fxLayers.data[$var1].$size0) { - $var3 = $this.$fxLayers.data[$var1]; - if ($var2 >= 0 && $var2 < $var3.$size0) { - $var3 = $var3.$array1.data[$var2]; - continue main; - } - $var3 = new jl_IndexOutOfBoundsException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $rt_throw($var3); - } - $var1 = $var1 + 1 | 0; - if ($var1 >= 4) - break; - $var2 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var3, var$4, $ptr); -} -function nms_EffectRenderer_renderParticles($this, $par1Entity, $par2) { - var $var3, $var4, $var5, $var6, $var7, var$8, var$9, var$10, $var8, $var9, $var10, $var11, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = nms_ActiveRenderInfo_rotationX; - $var4 = nms_ActiveRenderInfo_rotationZ; - $var5 = nms_ActiveRenderInfo_rotationYZ; - $var6 = nms_ActiveRenderInfo_rotationXY; - $var7 = nms_ActiveRenderInfo_rotationXZ; - var$8 = $par1Entity.$lastTickPosX; - var$9 = $par1Entity.$posX - $par1Entity.$lastTickPosX; - var$10 = $par2; - nms_EntityFX_interpPosX = var$8 + var$9 * var$10; - nms_EntityFX_interpPosY = $par1Entity.$lastTickPosY + ($par1Entity.$posY - $par1Entity.$lastTickPosY) * var$10; - nms_EntityFX_interpPosZ = $par1Entity.$lastTickPosZ + ($par1Entity.$posZ - $par1Entity.$lastTickPosZ) * var$10; - $var8 = 0; - a: { - while ($var8 < 3) { - if (!($this.$fxLayers.data[$var8].$size0 ? 0 : 1)) { - b: { - switch ($var8) { - case 0: - break; - case 1: - nle_TextureLocation_bindTexture(nms_EffectRenderer_terrain); - break b; - case 2: - nle_TextureLocation_bindTexture(nms_EffectRenderer_items); - break b; - default: - } - nle_TextureLocation_bindTexture(nms_EffectRenderer_particles); - } - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_alphaThresh = 0.004999999888241291; - nlea_Tessellator_startDrawing($var9, 98); - $var10 = 0; - while ($var10 < $this.$fxLayers.data[$var8].$size0) { - $par1Entity = $this.$fxLayers.data[$var8]; - if ($var10 < 0) - break a; - if ($var10 >= $par1Entity.$size0) - break a; - $var11 = $par1Entity.$array1.data[$var10]; - if ($var11.$particleAlpha === 1.0) { - var$15 = $var11.$getBrightnessForRender($par2); - $var9.$hasBrightness = 1; - $var9.$brightness = var$15; - $ptr = 1; - continue main; - } - $var10 = $var10 + 1 | 0; - } - nlea_Tessellator_draw($var9); - nleg_EaglerAdapterGL30_alphaThresh = 0.10000000149011612; - } - $var8 = $var8 + 1 | 0; - } - return; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - case 1: - $var11.$renderParticle($var9, $par2, $var3, $var7, $var4, $var5, $var6); - if ($rt_suspending()) { - break main; - } - a: { - c: while (true) { - $var10 = $var10 + 1 | 0; - while ($var10 >= $this.$fxLayers.data[$var8].$size0) { - nlea_Tessellator_draw($var9); - nleg_EaglerAdapterGL30_alphaThresh = 0.10000000149011612; - while (true) { - $var8 = $var8 + 1 | 0; - if ($var8 >= 3) - break c; - if ($this.$fxLayers.data[$var8].$size0 ? 0 : 1) - continue; - else - break; - } - d: { - switch ($var8) { - case 0: - break; - case 1: - nle_TextureLocation_bindTexture(nms_EffectRenderer_terrain); - break d; - case 2: - nle_TextureLocation_bindTexture(nms_EffectRenderer_items); - break d; - default: - } - nle_TextureLocation_bindTexture(nms_EffectRenderer_particles); - } - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_alphaThresh = 0.004999999888241291; - nlea_Tessellator_startDrawing($var9, 98); - $var10 = 0; - } - $par1Entity = $this.$fxLayers.data[$var8]; - if ($var10 < 0) - break a; - if ($var10 >= $par1Entity.$size0) - break a; - $var11 = $par1Entity.$array1.data[$var10]; - if ($var11.$particleAlpha !== 1.0) - continue; - else { - var$15 = $var11.$getBrightnessForRender($par2); - $var9.$hasBrightness = 1; - $var9.$brightness = var$15; - continue main; - } - } - return; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $var3, $var4, $var5, $var6, $var7, var$8, var$9, var$10, $var8, $var9, $var10, $var11, var$15, $ptr); -} -function nms_EffectRenderer_renderTransparentParticles($this, $par1Entity, $par2) { - var $var3, $var4, $var5, $var6, $var7, $var9, $var10, $var11, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nle_TextureLocation_bindTexture(nms_EffectRenderer_particles); - $var3 = nms_ActiveRenderInfo_rotationX; - $var4 = nms_ActiveRenderInfo_rotationZ; - $var5 = nms_ActiveRenderInfo_rotationYZ; - $var6 = nms_ActiveRenderInfo_rotationXY; - $var7 = nms_ActiveRenderInfo_rotationXZ; - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nlea_Tessellator_startDrawing($var9, 98); - $var10 = 0; - a: { - while ($var10 < $this.$fxLayers.data[0].$size0) { - $par1Entity = $this.$fxLayers.data[0]; - if ($var10 < 0) - break a; - if ($var10 >= $par1Entity.$size0) - break a; - $var11 = $par1Entity.$array1.data[$var10]; - if ($var11.$particleAlpha !== 1.0) { - var$11 = $var11.$getBrightnessForRender($par2); - $var9.$hasBrightness = 1; - $var9.$brightness = var$11; - $ptr = 1; - continue main; - } - $var10 = $var10 + 1 | 0; - } - nlea_Tessellator_draw($var9); - nleg_EaglerAdapterGL30_glDisable(16); - return; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - case 1: - $var11.$renderParticle($var9, $par2, $var3, $var7, $var4, $var5, $var6); - if ($rt_suspending()) { - break main; - } - a: { - while (true) { - $var10 = $var10 + 1 | 0; - if ($var10 >= $this.$fxLayers.data[0].$size0) - break; - $par1Entity = $this.$fxLayers.data[0]; - if ($var10 < 0) - break a; - if ($var10 >= $par1Entity.$size0) - break a; - $var11 = $par1Entity.$array1.data[$var10]; - if ($var11.$particleAlpha === 1.0) - continue; - else { - var$11 = $var11.$getBrightnessForRender($par2); - $var9.$hasBrightness = 1; - $var9.$brightness = var$11; - continue main; - } - } - nlea_Tessellator_draw($var9); - nleg_EaglerAdapterGL30_glDisable(16); - return; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $var3, $var4, $var5, $var6, $var7, $var9, $var10, $var11, var$11, $ptr); -} -function nms_EffectRenderer_renderLitParticles($this, $par1Entity, $par2) { - var $var5, $var4, $var6, $var7, $var8, $var9, $var10, $var11, $var12, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var5 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = $par1Entity.$rotationYaw * 0.01745329238474369; - $var4 = nms_MathHelper_SIN_TABLE.data[($var5 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $var5 = $par1Entity.$rotationYaw * 0.01745329238474369; - $var5 = nms_MathHelper_SIN_TABLE.data[($var5 * 10430.3779296875 | 0) & 65535]; - $var6 = -$var5; - $var7 = $par1Entity.$rotationPitch * 0.01745329238474369; - $var6 = $var6 * nms_MathHelper_SIN_TABLE.data[($var7 * 10430.3779296875 | 0) & 65535]; - $var7 = $par1Entity.$rotationPitch * 0.01745329238474369; - $var7 = $var4 * nms_MathHelper_SIN_TABLE.data[($var7 * 10430.3779296875 | 0) & 65535]; - $var8 = $par1Entity.$rotationPitch * 0.01745329238474369; - $var8 = nms_MathHelper_SIN_TABLE.data[($var8 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $var9 = 3; - if (!($this.$fxLayers.data[$var9].$size0 ? 0 : 1)) { - nlea_Tessellator_$callClinit(); - $var10 = nlea_Tessellator_instance; - $var11 = 0; - if ($var11 < $this.$fxLayers.data[$var9].$size0) { - $par1Entity = $this.$fxLayers.data[$var9]; - if ($var11 >= 0 && $var11 < $par1Entity.$size0) { - $var12 = $par1Entity.$array1.data[$var11]; - var$12 = $var12.$getBrightnessForRender($par2); - $var10.$hasBrightness = 1; - $var10.$brightness = var$12; - $ptr = 1; - continue main; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - } - } - return; - case 1: - $var12.$renderParticle($var10, $par2, $var4, $var8, $var5, $var6, $var7); - if ($rt_suspending()) { - break main; - } - $var11 = $var11 + 1 | 0; - if ($var11 >= $this.$fxLayers.data[$var9].$size0) - return; - $par1Entity = $this.$fxLayers.data[$var9]; - if ($var11 >= 0 && $var11 < $par1Entity.$size0) { - $var12 = $par1Entity.$array1.data[$var11]; - var$12 = $var12.$getBrightnessForRender($par2); - $var10.$hasBrightness = 1; - $var10.$brightness = var$12; - continue main; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $var5, $var4, $var6, $var7, $var8, $var9, $var10, $var11, $var12, var$12, $ptr); -} -function nms_EffectRenderer_clearEffects($this, $par1World) { - var $var2; - $this.$worldObj3 = $par1World; - $var2 = 0; - while ($var2 < 4) { - $par1World = $this.$fxLayers.data[$var2]; - ju_Arrays_fill($par1World.$array1, 0, $par1World.$size0, null); - $par1World.$size0 = 0; - $var2 = $var2 + 1 | 0; - } -} -function nms_EffectRenderer_addBlockDestroyEffects($this, $par1, $par2, $par3, $par4, $par5) { - var $var6, $var8, var$8, var$9, var$10, $var9, $var10, $var11, $var13, $var15, $var17; - a: { - if ($par4) { - nms_Block_$callClinit(); - $var6 = nms_Block_blocksList.data[$par4]; - $var8 = 0; - var$8 = $par1; - var$9 = $par2; - var$10 = $par3; - while (true) { - if ($var8 >= 4) - break a; - $var9 = 0; - while ($var9 < 4) { - $var10 = 0; - while ($var10 < 4) { - $var11 = var$8 + ($var8 + 0.5) / 4.0; - $var13 = var$9 + ($var9 + 0.5) / 4.0; - $var15 = var$10 + ($var10 + 0.5) / 4.0; - $var17 = Math.random() * 6.0 | 0; - nms_EffectRenderer_addEffect($this, nms_EntityDiggingFX_func_70596_a(nms_EntityDiggingFX__init_0($this.$worldObj3, $var11, $var13, $var15, $var11 - var$8 - 0.5, $var13 - var$9 - 0.5, $var15 - var$10 - 0.5, $var6, $var17, $par5, $this.$renderer), $par1, $par2, $par3)); - $var10 = $var10 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - $var8 = $var8 + 1 | 0; - } - } - } -} -function nms_EffectRenderer_addBlockHitEffects($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, var$7, $var8, var$9, $var10, var$11, $var12; - $var5 = nms_World_getBlockId($this.$worldObj3, $par1, $par2, $par3); - if ($var5) { - nms_Block_$callClinit(); - $var6 = nms_Block_blocksList.data[$var5]; - var$7 = $par1; - $var8 = var$7 + Math.random() * ($var6.$maxX0 - $var6.$minX0 - 0.20000000298023224) + 0.10000000149011612 + $var6.$minX0; - var$9 = $par2; - $var10 = var$9 + Math.random() * ($var6.$maxY0 - $var6.$minY0 - 0.20000000298023224) + 0.10000000149011612 + $var6.$minY0; - var$11 = $par3; - $var12 = var$11 + Math.random() * ($var6.$maxZ0 - $var6.$minZ0 - 0.20000000298023224) + 0.10000000149011612 + $var6.$minZ0; - if (!$par4) - $var10 = var$9 + $var6.$minY0 - 0.10000000149011612; - if ($par4 == 1) - $var10 = var$9 + $var6.$maxY0 + 0.10000000149011612; - if ($par4 == 2) - $var12 = var$11 + $var6.$minZ0 - 0.10000000149011612; - if ($par4 == 3) - $var12 = var$11 + $var6.$maxZ0 + 0.10000000149011612; - if ($par4 == 4) - $var8 = var$7 + $var6.$minX0 - 0.10000000149011612; - if ($par4 == 5) - $var8 = var$7 + $var6.$maxX0 + 0.10000000149011612; - $var6 = nms_EntityDiggingFX_func_70596_a(nms_EntityDiggingFX__init_0($this.$worldObj3, $var8, $var10, $var12, 0.0, 0.0, 0.0, $var6, $par4, nms_World_getBlockMetadata($this.$worldObj3, $par1, $par2, $par3), $this.$renderer), $par1, $par2, $par3); - $var6.$motionX = $var6.$motionX * 0.20000000298023224; - $var6.$motionY = ($var6.$motionY - 0.10000000149011612) * 0.20000000298023224 + 0.10000000149011612; - $var6.$motionZ = $var6.$motionZ * 0.20000000298023224; - nms_Entity_setSize($var6, 0.12000000476837158, 0.12000000476837158); - $var6.$particleScale = $var6.$particleScale * 0.6000000238418579; - nms_EffectRenderer_addEffect($this, $var6); - } -} -function nms_EffectRenderer_getStatistics($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(44)); - var$2 = ($this.$fxLayers.data[0].$size0 + $this.$fxLayers.data[1].$size0 | 0) + $this.$fxLayers.data[2].$size0 | 0; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_EffectRenderer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(894); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_EffectRenderer_particles = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_EffectRenderer_terrain = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(647); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_EffectRenderer_items = var$1; -} -function nleg_EffectPipeline() { - jl_Object.call(this); -} -var nleg_EffectPipeline_pipeline_tmp = null; -var nleg_EffectPipeline_pipeline = null; -var nleg_EffectPipeline_programs = null; -var nleg_EffectPipeline_uniforms = null; -var nleg_EffectPipeline_framebuffer = null; -var nleg_EffectPipeline_framebuffer_color = null; -var nleg_EffectPipeline_framebuffer_depth = null; -var nleg_EffectPipeline_framebuffer_bloom_a = null; -var nleg_EffectPipeline_framebuffer_bloom_a_color = null; -var nleg_EffectPipeline_framebuffer_bloom_b = null; -var nleg_EffectPipeline_framebuffer_bloom_b_color = null; -var nleg_EffectPipeline_renderQuadArray = null; -var nleg_EffectPipeline_renderQuadBuffer = null; -var nleg_EffectPipeline_pvert_shader = null; -var nleg_EffectPipeline_width = 0; -var nleg_EffectPipeline_height = 0; -var nleg_EffectPipeline_originalViewport = null; -var nleg_EffectPipeline_framebufferFlip = 0; -var nleg_EffectPipeline_bloom_width = 0; -var nleg_EffectPipeline_bloom_height = 0; -var nleg_EffectPipeline_deevis = null; -var nleg_EffectPipeline_projBuffer = null; -var nleg_EffectPipeline_projBufferInv = null; -var nleg_EffectPipeline_projectionMatrix = null; -var nleg_EffectPipeline_projectionMatrixInv = null; -var nleg_EffectPipeline_randomInterTimer = Long_ZERO; -var nleg_EffectPipeline_randomInterA = 0.0; -var nleg_EffectPipeline_randomInterB = 0.0; -function nleg_EffectPipeline__init_0() { - var var_0 = new nleg_EffectPipeline(); - nleg_EffectPipeline__init_(var_0); - return var_0; -} -function nleg_EffectPipeline__init_($this) { - return; -} -function nleg_EffectPipeline_init() { - var $upload, var$2, var$3, var$4, var$5, var$6, var$7; - nlea_EaglerAdapterImpl2_$callClinit(); - $upload = new nlea_EaglerAdapterImpl2$FramebufferGL; - $upload.$obj4 = nlea_EaglerAdapterImpl2_webgl.createFramebuffer(); - nleg_EffectPipeline_framebuffer = $upload; - $upload = new nlea_EaglerAdapterImpl2$TextureGL; - $upload.$obj = nlea_EaglerAdapterImpl2_webgl.createTexture(); - nleg_EffectPipeline_framebuffer_color = $upload; - $upload = new nlea_EaglerAdapterImpl2$TextureGL; - $upload.$obj = nlea_EaglerAdapterImpl2_webgl.createTexture(); - nleg_EffectPipeline_framebuffer_depth = $upload; - $upload = new nlea_EaglerAdapterImpl2$ShaderGL; - $upload.$obj1 = nlea_EaglerAdapterImpl2_webgl.createShader(35633); - nleg_EffectPipeline_pvert_shader = $upload; - var$2 = nleg_EffectPipeline_pvert_shader; - $upload = new jl_StringBuilder; - $upload.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($upload, $upload.$length, $rt_s(57)); - jl_AbstractStringBuilder_insert($upload, $upload.$length, $rt_s(60)); - if (!($rt_s(895) === $rt_s(58) ? 1 : jl_String_startsWith($rt_s(895), $rt_s(58), 0))) - var$3 = $rt_s(895); - else { - var$4 = $rt_s(895).$characters.data.length; - if (1 > var$4) { - $upload = new jl_IndexOutOfBoundsException; - $upload.$suppressionEnabled = 1; - $upload.$writableStackTrace = 1; - $rt_throw($upload); - } - var$3 = jl_String__init_0($rt_s(895).$characters, 1, var$4 - 1 | 0); - } - var$5 = ju_HashMap_getEntry(nle_AssetRepository_filePool, var$3); - var$6 = var$5 === null ? null : var$5.$value0; - if (var$6 === null) - var$5 = null; - else { - var$7 = var$6.data; - var$5 = new jl_String; - jl_String_initWithBytes(var$5, var$6, 0, var$7.length, jnc_Charset_forName($rt_s(2))); - } - jl_AbstractStringBuilder_insert($upload, $upload.$length, var$5); - nlea_EaglerAdapterImpl2__wglShaderSource(var$2, jl_String__init_0($upload.$buffer, 0, $upload.$length)); - nlea_EaglerAdapterImpl2__wglCompileShader(nleg_EffectPipeline_pvert_shader); - if (!nlea_EaglerAdapterImpl2__wglGetShaderCompiled(nleg_EffectPipeline_pvert_shader)) { - $upload = jl_System_err(); - var$2 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$2, 16); - var$5 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_(var$5); - ji_PrintStream_println0($upload, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(var$2, jl_String_replace0(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(var$5, $rt_s(60)), nlea_EaglerAdapterImpl2__wglGetShaderInfoLog(nleg_EffectPipeline_pvert_shader))), $rt_s(60), $rt_s(896))), $rt_s(60)))); - } - nlea_EaglerAdapterImpl2__wglBindTexture(3553, nleg_EffectPipeline_framebuffer_color); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10240, 9728); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10241, 9728); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10242, 33071); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10243, 33071); - nlea_EaglerAdapterImpl2__wglBindTexture(3553, nleg_EffectPipeline_framebuffer_depth); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10240, 9728); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10241, 9728); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10242, 33071); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10243, 33071); - nlea_EaglerAdapterImpl2__wglBindFramebuffer(36160, nleg_EffectPipeline_framebuffer); - nlea_EaglerAdapterImpl2__wglFramebufferTexture2D(36064, nleg_EffectPipeline_framebuffer_color); - nlea_EaglerAdapterImpl2__wglFramebufferTexture2D(33306, nleg_EffectPipeline_framebuffer_depth); - nlea_EaglerAdapterImpl2__wglBindFramebuffer(36160, null); - nleg_EffectPipeline_renderQuadArray = nlea_EaglerAdapterImpl2__wglCreateVertexArray(); - nleg_EffectPipeline_renderQuadBuffer = nlea_EaglerAdapterImpl2__wglCreateBuffer(); - nleg_EaglerAdapterGL30_$callClinit(); - $upload = nleg_EaglerAdapterGL30_isWebGL ? jn_IntBuffer_wrap($rt_createIntArray(12)) : jn_ByteBufferImpl_asIntBuffer(jn_ByteBuffer_order(jn_ByteBuffer_allocateDirect(48), jn_ByteOrder_nativeOrder())); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBuffer_flip($upload); - nlea_EaglerAdapterImpl2__wglBindBuffer(34962, nleg_EffectPipeline_renderQuadBuffer); - nlea_EaglerAdapterImpl2__wglBufferData0(34962, $upload, 35044); - nlea_EaglerAdapterImpl2__wglBindVertexArray(nleg_EffectPipeline_renderQuadArray); - nlea_EaglerAdapterImpl2__wglEnableVertexAttribArray(0); - nlea_EaglerAdapterImpl2__wglVertexAttribPointer(0, 2, 5126, 0, 8, 0); -} -function nleg_EffectPipeline_reloadPipeline() { - var $i, var$2, var$3, var$4, var$5, $tmp1, $tmp_0; - if (jl_System_outCache === null) { - $i = new ji_PrintStream; - $i.$out = new jl_ConsoleOutputStreamStdout; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - $i.$sb = var$2; - $i.$buffer0 = $rt_createCharArray(32); - $i.$autoFlush = 0; - var$2 = new jnci_UTF8Charset; - jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0)); - $i.$charset = var$2; - jl_System_outCache = $i; - } - var$3 = jl_System_outCache; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(897)); - var$4 = nleg_EffectPipeline_pipeline.data.length; - jl_AbstractStringBuilder_insert0(var$2, var$2.$length, var$4, 10); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(898)); - $i = jl_String__init_0(var$2.$buffer, 0, var$2.$length); - var$2 = var$3.$sb; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $i); - 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$3); - $tmp1 = nleg_EffectPipeline_pipeline; - var$2 = nleg_EffectPipeline_programs; - if (var$2.$cachedKeySet === null) { - $i = new ju_HashMap$1; - $i.$this$01 = var$2; - var$2.$cachedKeySet = $i; - } - $tmp_0 = ju_AbstractCollection_toArray0(var$2.$cachedKeySet, $rt_createArray(jl_String, 0)); - var$2 = nleg_EffectPipeline_programs; - if (var$2.$cachedValues === null) { - $i = new ju_HashMap$2; - $i.$this$00 = var$2; - var$2.$cachedValues = $i; - } - var$2 = var$2.$cachedValues.$iterator(); - while (var$2.$hasNext()) { - $i = var$2.$next(); - nlea_EaglerAdapterImpl2_$callClinit(); - var$3 = nlea_EaglerAdapterImpl2_webgl; - $i = $i.$obj0; - var$3.deleteProgram($i); - } - ju_HashMap_clear(nleg_EffectPipeline_programs); - ju_HashMap_clear(nleg_EffectPipeline_uniforms); - nleg_EffectPipeline_setupPipeline($tmp1, $tmp_0); -} -function nleg_EffectPipeline_setupPipeline($shaders, $load) { - var $i, $prog, var$5, $f, $c, $d, var$9, $r, $j, $x, $y, $z, $s, $hypot; - nleg_EffectPipeline_pipeline_tmp = $shaders; - $i = 0; - while (true) { - $shaders = $load.data; - if ($i >= $shaders.length) - break; - if (!(ju_HashMap_getEntry(nleg_EffectPipeline_programs, $shaders[$i]) === null ? 0 : 1)) { - nlea_EaglerAdapterImpl2_$callClinit(); - $prog = new nlea_EaglerAdapterImpl2$ProgramGL; - $prog.$obj0 = nlea_EaglerAdapterImpl2_webgl.createProgram(); - var$5 = nlea_EaglerAdapterImpl2_progId + 1 | 0; - nlea_EaglerAdapterImpl2_progId = var$5; - $prog.$hashcode = var$5; - $f = new nlea_EaglerAdapterImpl2$ShaderGL; - $f.$obj1 = nlea_EaglerAdapterImpl2_webgl.createShader(35632); - $c = new jl_StringBuilder; - $c.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($c, $c.$length, $rt_s(57)); - jl_AbstractStringBuilder_insert($c, $c.$length, $rt_s(60)); - $d = $shaders[$i]; - if (jl_String_startsWith0($d, $rt_s(58))) - $d = jl_String_substring($d, 1); - var$9 = ju_HashMap_get(nle_AssetRepository_filePool, $d); - jl_AbstractStringBuilder_append($c, var$9 === null ? null : jl_String__init_5(var$9, jnc_Charset_forName($rt_s(2)))); - nlea_EaglerAdapterImpl2__wglShaderSource($f, jl_StringBuilder_toString($c)); - nlea_EaglerAdapterImpl2__wglCompileShader($f); - if (!nlea_EaglerAdapterImpl2__wglGetShaderCompiled($f)) - 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($f))), $rt_s(60), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(899)), $shaders[$i]), - $rt_s(900))))), $rt_s(60)))); - nlea_EaglerAdapterImpl2__wglAttachShader($prog, nleg_EffectPipeline_pvert_shader); - nlea_EaglerAdapterImpl2__wglAttachShader($prog, $f); - nlea_EaglerAdapterImpl2__wglLinkProgram($prog); - nlea_EaglerAdapterImpl2__wglDetachShader($prog, nleg_EffectPipeline_pvert_shader); - nlea_EaglerAdapterImpl2__wglDetachShader($prog, $f); - nlea_EaglerAdapterImpl2__wglDeleteShader($f); - if (!nlea_EaglerAdapterImpl2__wglGetProgramLinked($prog)) { - 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__wglGetProgramInfoLog($prog))), $rt_s(60), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(899)), $shaders[$i]), - $rt_s(901))))), $rt_s(60)))); - nleg_EffectPipeline_pipeline_tmp = $rt_createArray(jl_String, 0); - return; - } - nlea_EaglerAdapterImpl2__wglUseProgram($prog); - $c = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(902)); - if ($c !== null) - nlea_EaglerAdapterImpl2__wglUniform1i($c, 0); - $d = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(903)); - if ($d !== null) - nlea_EaglerAdapterImpl2__wglUniform1i($d, 1); - a: { - nlea_EaglerAdapterImpl2__wglBindAttributeLocation($prog, 0, $rt_s(209)); - if (nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(904)) !== null) { - $r = ju_Random__init_1(Long_fromInt(jl_String_hashCode($rt_s(905)))); - $j = 0; - while (true) { - if ($j >= 24) - break a; - $x = ju_Random_nextFloat($r) * 2.0 - 1.0; - $y = ju_Random_nextFloat($r) * 2.0 - 1.0; - $z = ju_Random_nextFloat($r) * 2.0 - 1.0; - $s = 0.30000001192092896 + 0.699999988079071 * ju_Random_nextFloat($r); - $hypot = 1.0 / jl_Math_sqrt($x * $x + $y * $y + $z * $z) * $s; - $x = $x * $hypot; - $y = $y * $hypot; - $z = $z * $hypot; - nlea_EaglerAdapterImpl2__wglUniform3f(nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(906)), $j), $rt_s(268)))), $x, $y, $z); - $j = $j + 1 | 0; - } - } - } - ju_HashMap_put(nleg_EffectPipeline_programs, $shaders[$i], $prog); - $d = nleg_EffectPipeline_uniforms; - $r = $shaders[$i]; - $shaders = $rt_createArray(nlea_EaglerAdapterImpl2$UniformGL, 9); - var$9 = $shaders.data; - var$9[0] = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(907)); - var$9[1] = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(908)); - var$9[2] = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(909)); - var$9[3] = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(237)); - var$9[4] = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(910)); - var$9[5] = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(911)); - var$9[6] = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(912)); - var$9[7] = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(913)); - var$9[8] = nlea_EaglerAdapterImpl2__wglGetUniformLocation($prog, $rt_s(914)); - ju_HashMap_put($d, $r, $shaders); - } - $i = $i + 1 | 0; - } -} -function nleg_EffectPipeline__clinit_() { - var var$1; - nleg_EffectPipeline_pipeline_tmp = null; - nleg_EffectPipeline_pipeline = $rt_createArray(jl_String, 0); - nleg_EffectPipeline_programs = ju_HashMap__init_1(16, 0.75); - nleg_EffectPipeline_uniforms = ju_HashMap__init_1(16, 0.75); - nleg_EffectPipeline_framebuffer_bloom_a = null; - nleg_EffectPipeline_framebuffer_bloom_a_color = null; - nleg_EffectPipeline_framebuffer_bloom_b = null; - nleg_EffectPipeline_framebuffer_bloom_b_color = null; - nleg_EffectPipeline_width = (-1); - nleg_EffectPipeline_height = (-1); - nleg_EffectPipeline_originalViewport = null; - nleg_EffectPipeline_framebufferFlip = 0; - nleg_EffectPipeline_bloom_width = (-1); - nleg_EffectPipeline_bloom_height = (-1); - nleg_EffectPipeline_deevis = new ju_Random; - nleg_EffectPipeline_projBuffer = $rt_createFloatArray(16); - nleg_EffectPipeline_projBufferInv = $rt_createFloatArray(16); - var$1 = new nlegv_Matrix4f; - nlegv_Matrix4f_setIdentity(var$1); - nleg_EffectPipeline_projectionMatrix = nlegv_Matrix4f_setZero(var$1); - var$1 = new nlegv_Matrix4f; - nlegv_Matrix4f_setIdentity(var$1); - nleg_EffectPipeline_projectionMatrixInv = nlegv_Matrix4f_setZero(var$1); - nleg_EffectPipeline_randomInterTimer = Long_ZERO; - nleg_EffectPipeline_randomInterA = 0.0; - nleg_EffectPipeline_randomInterB = 0.0; -} -function nms_GuiIngame() { - var a = this; nms_Gui.call(a); - a.$rand2 = null; - a.$mc10 = null; - a.$persistantChatGUI = null; - a.$updateCounter0 = 0; - a.$recordPlaying = null; - a.$recordPlayingUpFor = 0; - a.$recordIsPlaying = 0; - a.$prevVignetteBrightness = 0.0; - a.$remainingHighlightTicks = 0; - a.$highlightingItemStack = null; -} -var nms_GuiIngame_itemRenderer = null; -var nms_GuiIngame_tex_gui = null; -var nms_GuiIngame_tex_icons = null; -var nms_GuiIngame_tex_pumpkin = null; -var nms_GuiIngame_tex_vigg = null; -var nms_GuiIngame_terrain = null; -function nms_GuiIngame__init_(var_0) { - var var_1 = new nms_GuiIngame(); - nms_GuiIngame__init_0(var_1, var_0); - return var_1; -} -function nms_GuiIngame__init_0($this, $par1Minecraft) { - $this.$zLevel = 0.0; - $this.$rand2 = new ju_Random; - $this.$updateCounter0 = 0; - $this.$recordPlaying = $rt_s(44); - $this.$recordPlayingUpFor = 0; - $this.$recordIsPlaying = 0; - $this.$prevVignetteBrightness = 1.0; - $this.$mc10 = $par1Minecraft; - $this.$persistantChatGUI = nms_GuiNewChat__init_($par1Minecraft); -} -function nms_GuiIngame_renderGameOverlay($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var31, $var11, $var12, $var13, $var15, $var16, $var19, $var22, $var23, $var47, $var24, $var25, $i, $var26, $var27, $var28, $var30, $var36, $var16_0, $var52, $var53, $var29, $var18, $var20, $var32, $var33, $var34, $var40, $var35, var$40, $var39, $var37, $var44, $var45, $var42, $var38, $var43, $var17, $var48, $var51, $var55, $var57, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var57 = $thread.pop();$var55 = $thread.pop();$var51 = $thread.pop();$var48 = $thread.pop();$var17 = $thread.pop();$var43 = $thread.pop();$var38 = $thread.pop();$var42 = $thread.pop();$var45 = $thread.pop();$var44 = $thread.pop();$var37 = $thread.pop();$var39 = $thread.pop();var$40 = $thread.pop();$var35 = $thread.pop();$var40 = $thread.pop();$var34 = $thread.pop();$var33 = $thread.pop();$var32 = $thread.pop();$var20 = $thread.pop();$var18 = $thread.pop();$var29 = $thread.pop();$var53 - = $thread.pop();$var52 = $thread.pop();$var16_0 = $thread.pop();$var36 = $thread.pop();$var30 = $thread.pop();$var28 = $thread.pop();$var27 = $thread.pop();$var26 = $thread.pop();$i = $thread.pop();$var25 = $thread.pop();$var24 = $thread.pop();$var47 = $thread.pop();$var23 = $thread.pop();$var22 = $thread.pop();$var19 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var31 = $thread.pop();$var10 = $thread.pop();$var9 = - $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_ScaledResolution__init_($this.$mc10.$gameSettings, $this.$mc10.$displayWidth, $this.$mc10.$displayHeight); - $var6 = nms_ScaledResolution_getScaledWidth($var5); - $var7 = nms_ScaledResolution_getScaledHeight($var5); - $var8 = $this.$mc10.$fontRenderer; - nms_EntityRenderer_setupOverlayRendering($this.$mc10.$entityRenderer); - nleg_EaglerAdapterGL30_glEnable(16); - if (!nmc_Minecraft_isFancyGraphicsEnabled()) - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - else - nms_GuiIngame_renderVignette($this, nms_Entity_getBrightness($this.$mc10.$thePlayer, $par1), $var6, $var7); - $var9 = nms_InventoryPlayer_armorItemInSlot($this.$mc10.$thePlayer.$inventory, 3); - if (!$this.$mc10.$gameSettings.$thirdPersonView && $var9 !== null) { - $par2 = $var9.$itemID0; - nms_Block_$callClinit(); - if ($par2 == nms_Block_pumpkin.$blockID) - nms_GuiIngame_renderPumpkinBlur($this, $var6, $var7); - } - if (!nms_EntityLiving_isPotionActive($this.$mc10.$thePlayer, nms_Potion_confusion)) { - $var10 = $this.$mc10.$thePlayer.$prevTimeInPortal + ($this.$mc10.$thePlayer.$timeInPortal - $this.$mc10.$thePlayer.$prevTimeInPortal) * $par1; - if ($var10 > 0.0) - nms_GuiIngame_renderPortalOverlay($this, $var10, $var6, $var7); - } - if (!nms_PlayerControllerMP_enableEverythingIsScrewedUpMode($this.$mc10.$playerController)) { - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture(nms_GuiIngame_tex_gui); - $var31 = $this.$mc10.$thePlayer.$inventory; - $this.$zLevel = (-90.0); - $par2 = $var6 / 2 | 0; - $par3 = $par2 - 91 | 0; - $par4 = $var7 - 22 | 0; - nms_Gui_drawTexturedModalRect($this, $par3, $par4, 0, 0, 182, 22); - nms_Gui_drawTexturedModalRect($this, ($par3 - 1 | 0) + ($var31.$currentItem * 20 | 0) | 0, $par4 - 1 | 0, 0, 22, 24, 22); - nle_TextureLocation_bindTexture(nms_GuiIngame_tex_icons); - nms_Gui_drawTexturedModalRect($this, $par2 - 7 | 0, ($var7 / 2 | 0) - 7 | 0, 0, 0, 16, 16); - $var11 = (($this.$mc10.$thePlayer.$hurtResistantTime / 3 | 0) % 2 | 0) != 1 ? 0 : 1; - if ($this.$mc10.$thePlayer.$hurtResistantTime < 10) - $var11 = 0; - $var12 = nms_EntityLiving_getHealth($this.$mc10.$thePlayer); - $var13 = $this.$mc10.$thePlayer.$prevHealth; - ju_Random_setSeed($this.$rand2, Long_fromInt($rt_imul($this.$updateCounter0, 312871))); - $var15 = nms_EntityPlayer_getFoodStats($this.$mc10.$thePlayer); - $var16 = nms_FoodStats_getFoodLevel($var15); - nms_FoodStats_getPrevFoodLevel($var15); - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(915)); - nms_GuiIngame_renderBossHealth($this); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - if (nms_PlayerControllerMP_shouldDrawHUD($this.$mc10.$playerController)) { - $var19 = $par2 + 91 | 0; - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(916)); - if (nms_EntityPlayer_xpBarCap($this.$mc10.$thePlayer) > 0) { - $var22 = $this.$mc10.$thePlayer.$experience * 183.0 | 0; - $var23 = ($var7 - 32 | 0) + 3 | 0; - nms_Gui_drawTexturedModalRect($this, $par3, $var23, 0, 64, 182, 5); - if ($var22 > 0) - nms_Gui_drawTexturedModalRect($this, $par3, $var23, 0, 69, $var22, 5); - } - $var47 = $var7 - 39 | 0; - $var22 = $var47 - 10 | 0; - $var23 = nms_EntityPlayer_getTotalArmorValue($this.$mc10.$thePlayer); - $var24 = (-1); - if (nms_EntityLiving_isPotionActive($this.$mc10.$thePlayer, nms_Potion_regeneration)) - $var24 = $this.$updateCounter0 % 25 | 0; - nms_Profiler_endStartSection($this.$mc10.$mcProfiler, $rt_s(917)); - $var25 = 0; - $i = $rt_compare($var12, 4); - while ($var25 < 10) { - if ($var23 > 0) { - $var26 = $par3 + ($var25 * 8 | 0) | 0; - $par4 = $rt_compare(($var25 * 2 | 0) + 1 | 0, $var23); - if ($par4 < 0) - nms_Gui_drawTexturedModalRect($this, $var26, $var22, 34, 9, 9, 9); - if (!$par4) - nms_Gui_drawTexturedModalRect($this, $var26, $var22, 25, 9, 9, 9); - if ($par4 > 0) - nms_Gui_drawTexturedModalRect($this, $var26, $var22, 16, 9, 9, 9); - } - $var26 = 16; - if (nms_EntityLiving_isPotionActive($this.$mc10.$thePlayer, nms_Potion_poison)) - $var26 = 52; - else if (nms_EntityLiving_isPotionActive($this.$mc10.$thePlayer, nms_Potion_wither)) - $var26 = 88; - $var27 = 0; - if ($var11) - $var27 = 1; - $var28 = $par3 + ($var25 * 8 | 0) | 0; - $par4 = $i > 0 ? $var47 : $var47 + ju_Random_nextInt0($this.$rand2, 2) | 0; - if ($var25 == $var24) - $par4 = $par4 + (-2) | 0; - $var30 = 0; - if (nms_WorldInfo_isHardcoreModeEnabled(nms_World_getWorldInfo($this.$mc10.$theWorld))) - $var30 = 5; - $var36 = 16 + ($var27 * 9 | 0) | 0; - $var16_0 = 9 * $var30 | 0; - nms_Gui_drawTexturedModalRect($this, $var28, $par4, $var36, $var16_0, 9, 9); - if ($var11) { - $var36 = $rt_compare(($var25 * 2 | 0) + 1 | 0, $var13); - if ($var36 < 0) - nms_Gui_drawTexturedModalRect($this, $var28, $par4, $var26 + 54 | 0, $var16_0, 9, 9); - if (!$var36) - nms_Gui_drawTexturedModalRect($this, $var28, $par4, $var26 + 63 | 0, $var16_0, 9, 9); - } - $var36 = $rt_compare(($var25 * 2 | 0) + 1 | 0, $var12); - if ($var36 < 0) - nms_Gui_drawTexturedModalRect($this, $var28, $par4, $var26 + 36 | 0, $var16_0, 9, 9); - if (!$var36) - nms_Gui_drawTexturedModalRect($this, $var28, $par4, $var26 + 45 | 0, $var16_0, 9, 9); - $var25 = $var25 + 1 | 0; - } - nms_Profiler_endStartSection($this.$mc10.$mcProfiler, $rt_s(918)); - $par3 = 0; - $var12 = ($var16 * 3 | 0) + 1 | 0; - while ($par3 < 10) { - $var52 = 16; - $var53 = 0; - if (nms_EntityLiving_isPotionActive($this.$mc10.$thePlayer, nms_Potion_hunger)) { - $var52 = 52; - $var53 = 13; - } - $par4 = nms_FoodStats_getSaturationLevel(nms_EntityPlayer_getFoodStats($this.$mc10.$thePlayer)) > 0.0 ? $var47 : $this.$updateCounter0 % $var12 | 0 ? $var47 : $var47 + (ju_Random_nextInt0($this.$rand2, 3) - 1 | 0) | 0; - $var29 = ($var19 - ($par3 * 8 | 0) | 0) - 9 | 0; - nms_Gui_drawTexturedModalRect($this, $var29, $par4, 16 + ($var53 * 9 | 0) | 0, 27, 9, 9); - $var24 = $rt_compare(($par3 * 2 | 0) + 1 | 0, $var16); - if ($var24 < 0) - nms_Gui_drawTexturedModalRect($this, $var29, $par4, $var52 + 36 | 0, 27, 9, 9); - if (!$var24) - nms_Gui_drawTexturedModalRect($this, $var29, $par4, $var52 + 45 | 0, 27, 9, 9); - $par3 = $par3 + 1 | 0; - } - a: { - nms_Profiler_endStartSection($this.$mc10.$mcProfiler, $rt_s(919)); - $var5 = $this.$mc10.$thePlayer; - nms_Material_$callClinit(); - if (nms_Entity_isInsideOfMaterial($var5, nms_Material_water)) { - $par3 = nms_Entity_getAir($this.$mc10.$thePlayer); - $var26 = nms_MathHelper_ceiling_double_int(($par3 - 2 | 0) * 10.0 / 300.0); - $var52 = nms_MathHelper_ceiling_double_int($par3 * 10.0 / 300.0) - $var26 | 0; - $var28 = 0; - $par3 = $var26 + $var52 | 0; - while (true) { - if ($var28 >= $par3) - break a; - if ($var28 >= $var26) - nms_Gui_drawTexturedModalRect($this, ($var19 - ($var28 * 8 | 0) | 0) - 9 | 0, $var22, 25, 18, 9, 9); - else - nms_Gui_drawTexturedModalRect($this, ($var19 - ($var28 * 8 | 0) | 0) - 9 | 0, $var22, 16, 18, 9, 9); - $var28 = $var28 + 1 | 0; - } - } - } - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - nleg_EaglerAdapterGL30_glDisable(16); - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(920)); - nleg_EaglerAdapterGL30_glEnable(41); - nms_RenderHelper_enableGUIStandardItemLighting(); - $var18 = 0; - $par3 = $par2 - 90 | 0; - $var20 = ($var7 - 16 | 0) - 3 | 0; - if ($var18 < 9) { - $var19 = ($par3 + ($var18 * 20 | 0) | 0) + 2 | 0; - $ptr = 1; - continue main; - } - nms_RenderHelper_disableStandardItemLighting(); - nleg_EaglerAdapterGL30_glDisable(41); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - if (nms_EntityPlayer_getSleepTimer($this.$mc10.$thePlayer) > 0) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(921)); - nleg_EaglerAdapterGL30_glDisable(4); - nleg_EaglerAdapterGL30_glDisable(6); - $var32 = nms_EntityPlayer_getSleepTimer($this.$mc10.$thePlayer); - $var33 = $var32 / 100.0; - if ($var33 > 1.0) - $var33 = 1.0 - ($var32 - 100 | 0) / 10.0; - nms_Gui_drawRect(0, 0, $var6, $var7, (220.0 * $var33 | 0) << 24 | 1052704); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glEnable(4); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - if (nms_PlayerControllerMP_func_78763_f($this.$mc10.$playerController) && $this.$mc10.$thePlayer.$experienceLevel > 0) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(922)); - $var34 = jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), $this.$mc10.$thePlayer.$experienceLevel)); - $var36 = ($var6 - nms_FontRenderer_getStringWidth($var8, $var34) | 0) / 2 | 0; - $var40 = ($var7 - 31 | 0) - 4 | 0; - nms_FontRenderer_drawString0($var8, $var34, $var36 + 1 | 0, $var40, 0); - nms_FontRenderer_drawString0($var8, $var34, $var36 - 1 | 0, $var40, 0); - nms_FontRenderer_drawString0($var8, $var34, $var36, $var40 + 1 | 0, 0); - nms_FontRenderer_drawString0($var8, $var34, $var36, $var40 - 1 | 0, 0); - nms_FontRenderer_drawString0($var8, $var34, $var36, $var40, 8453920); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - if ($this.$mc10.$gameSettings.$heldItemTooltips) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(923)); - if ($this.$remainingHighlightTicks > 0 && $this.$highlightingItemStack !== null) { - $var35 = nms_ItemStack_getDisplayName($this.$highlightingItemStack); - $var12 = ($var6 - nms_FontRenderer_getStringWidth($var8, $var35) | 0) / 2 | 0; - $var13 = $var7 - 59 | 0; - if (!nms_PlayerControllerMP_shouldDrawHUD($this.$mc10.$playerController)) - $var13 = $var13 + 14 | 0; - $var36 = $this.$remainingHighlightTicks * 256.0 / 10.0 | 0; - if ($var36 > 255) - $var36 = 255; - if ($var36 > 0) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nms_FontRenderer_drawStringWithShadow($var8, $var35, $var12, $var13, 16777215 + ($var36 << 24) | 0); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - } - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - if (nmc_Minecraft_isDemo($this.$mc10)) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(924)); - if (Long_ge(nms_World_getTotalWorldTime($this.$mc10.$theWorld), Long_fromInt(120500))) - $var5 = nms_StatCollector_translateToLocal($rt_s(925)); - else { - $var5 = nms_StatCollector_translateToLocal($rt_s(926)); - var$40 = $rt_createArray(jl_Object, 1); - var$40.data[0] = nms_StringUtils_ticksToElapsedTime(Long_sub(Long_fromInt(120500), nms_World_getTotalWorldTime($this.$mc10.$theWorld)).lo); - $var5 = jl_String_format($var5, var$40); - } - nms_FontRenderer_drawStringWithShadow($var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 10 | 0, 5, 16777215); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - $this.$mc10.$debug = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), nmc_Minecraft_debugFPS), $rt_s(927)), nmc_Minecraft_debugChunkUpdates), $rt_s(928))); - if (!$this.$mc10.$gameSettings.$showDebugInfo) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glScalef(0.75, 0.75, 0.75); - nms_FontRenderer_drawStringWithShadow($var8, nms_RenderGlobal_getDebugInfoShort($this.$mc10.$renderGlobal), 2, 2, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(929)), nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posX)), $rt_s(930)), nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posY)), $rt_s(931)), nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posZ))), 2, 12, 16777215); - nleg_EaglerAdapterGL30_glPopMatrix(); - } else { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(932)); - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_FontRenderer_drawStringWithShadow($var8, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(933)), $this.$mc10.$debug), $rt_s(64))), 2, 2, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, nmc_Minecraft_debugInfoRenders($this.$mc10), 2, 12, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, nmc_Minecraft_getEntityDebug($this.$mc10), 2, 22, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, nmc_Minecraft_debugInfoEntities($this.$mc10), 2, 32, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, nmc_Minecraft_getWorldProviderName($this.$mc10), 2, 42, 16777215); - $var39 = nlea_EaglerAdapterImpl2_maxMemory(); - $var37 = nlea_EaglerAdapterImpl2_totalMemory(); - $var44 = Long_sub($var37, nlea_EaglerAdapterImpl2_freeMemory()); - $var45 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(934)), Long_div(Long_mul($var44, Long_fromInt(100)), $var39)), $rt_s(935)), Long_div(Long_div($var44, Long_fromInt(1024)), Long_fromInt(1024))), $rt_s(936)), Long_div(Long_div($var39, Long_fromInt(1024)), Long_fromInt(1024))), $rt_s(937))); - nms_Gui_drawString($this, $var8, $var45, ($var6 - nms_FontRenderer_getStringWidth($var8, $var45) | 0) - 2 | 0, 2, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(938)), Long_div(Long_mul($var37, Long_fromInt(100)), $var39)), $rt_s(935)), Long_div(Long_div($var37, Long_fromInt(1024)), Long_fromInt(1024))), $rt_s(939))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 12, 14737632); - $var47 = nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posX); - $var22 = nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posY); - $var23 = nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posZ); - nms_Gui_drawString($this, $var8, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(929)), nms_GuiIngame_doubleToShorterString($this.$mc10.$thePlayer.$posX)), $rt_s(940)), $var47), $rt_s(941)), $var47 >> 4), $rt_s(940)), $var47 & 15), $rt_s(64))), 2, 64, 14737632); - nms_Gui_drawString($this, $var8, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(942)), nms_GuiIngame_doubleToShorterString($this.$mc10.$thePlayer.$posY)), $rt_s(940)), $var22), $rt_s(943))), 2, 72, 14737632); - nms_Gui_drawString($this, $var8, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(944)), nms_GuiIngame_doubleToShorterString($this.$mc10.$thePlayer.$posZ)), $rt_s(940)), $var23), $rt_s(941)), $var23 >> 4), $rt_s(940)), $var23 & 15), $rt_s(64))), 2, 80, 14737632); - $var24 = nms_MathHelper_floor_double($this.$mc10.$thePlayer.$rotationYaw * 4.0 / 360.0 + 0.5) & 3; - nms_Gui_drawString($this, $var8, jl_StringBuilder_toString(jl_StringBuilder_append3(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(945)), $var24), $rt_s(940)), nms_Direction_directions.data[$var24]), $rt_s(946)), nms_MathHelper_wrapAngleTo180_float($this.$mc10.$thePlayer.$rotationYaw))), 2, 88, 14737632); - nms_Gui_drawString($this, $var8, $rt_s(947), ($var6 - nms_FontRenderer_getStringWidth($var8, $rt_s(947)) | 0) - 2 | 0, 36, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(948)), nleg_EaglerAdapterGL30_getDisplayListCount()), $rt_s(949)), nleg_EaglerAdapterGL30_getBitsPerSecond() / 1000000 | 0), $rt_s(950))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 46, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(951)), nleg_EaglerAdapterGL30_getVertexesPerSecond() / 1000 | 0), $rt_s(952)), nleg_EaglerAdapterGL30_getTrianglesPerSecond() / 1000 | 0), $rt_s(953))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 56, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(954)), !nleg_EaglerAdapterGL30_isWebGL ? $rt_s(955) : $rt_s(956))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 66, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(957)), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(958))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 76, 14737632); - nms_Gui_drawString($this, $var8, $rt_s(959), ($var6 - nms_FontRenderer_getStringWidth($var8, $rt_s(959)) | 0) - 2 | 0, 100, 14737632); - nms_Gui_drawString($this, $var8, $rt_s(960), ($var6 - nms_FontRenderer_getStringWidth($var8, $rt_s(960)) | 0) - 2 | 0, 110, 14737632); - nms_Gui_drawString($this, $var8, $rt_s(229), ($var6 - nms_FontRenderer_getStringWidth($var8, $rt_s(229)) | 0) - 2 | 0, 120, 14737632); - $i = 0; - while ($i < nleg_EffectPipeline_pipeline.data.length) { - $var5 = nleg_EffectPipeline_pipeline.data[$i]; - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 130 + ($i * 10 | 0) | 0, 14737632); - $i = $i + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - if ($this.$recordPlayingUpFor > 0) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(961)); - $var33 = $this.$recordPlayingUpFor - $par1; - $var12 = $var33 * 256.0 / 20.0 | 0; - if ($var12 > 255) - $var12 = 255; - if ($var12 > 0) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef($var6 / 2 | 0, $var7 - 48 | 0, 0.0); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - $var13 = 16777215; - if ($this.$recordIsPlaying) - $var13 = nms_BiomeGenBase_HSBtoRGB($var33 / 50.0, 0.699999988079071, 0.6000000238418579) & 16777215; - nms_FontRenderer_drawString0($var8, $this.$recordPlaying, -nms_FontRenderer_getStringWidth($var8, $this.$recordPlaying) / 2 | 0, (-4), $var13 + ($var12 << 24) | 0); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - $var42 = nms_Scoreboard_func_96539_a(nms_World_getScoreboard($this.$mc10.$theWorld), 1); - if ($var42 !== null) - nms_GuiIngame_func_96136_a($this, $var42, $var7, $var6, $var8); - b: { - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, $var7 - 48 | 0, 0.0); - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(962)); - nms_GuiNewChat_drawChat($this.$persistantChatGUI, $this.$updateCounter0); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var5 = nms_Scoreboard_func_96539_a(nms_World_getScoreboard($this.$mc10.$theWorld), 0); - if ($this.$mc10.$gameSettings.$keyBindPlayerList.$pressed && !(nmc_Minecraft_isIntegratedServerRunning($this.$mc10) && ju_ArrayList_size($this.$mc10.$thePlayer.$sendQueue.$playerInfoList) <= 1 && $var5 === null)) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(963)); - $var38 = $this.$mc10.$thePlayer.$sendQueue; - $var43 = $var38.$playerInfoList; - $var36 = $var38.$currentServerMaxPlayers; - $var16_0 = 1; - $par2 = $var36; - while ($par2 > 20) { - $var16_0 = $var16_0 + 1 | 0; - $par2 = (($var36 + $var16_0 | 0) - 1 | 0) / $var16_0 | 0; - } - $var17 = 300 / $var16_0 | 0; - if ($var17 > 150) - $var17 = 150; - $par3 = $rt_imul($var16_0, $var17); - $var18 = ($var6 - $par3 | 0) / 2 | 0; - nms_Gui_drawRect($var18 - 1 | 0, 9, $var18 + $par3 | 0, 10 + (9 * $par2 | 0) | 0, (-2147483648)); - $var20 = 0; - while (true) { - if ($var20 >= $var36) - break b; - $var47 = $var18 + $rt_imul($var20 % $var16_0 | 0, $var17) | 0; - $var22 = 10 + (($var20 / $var16_0 | 0) * 9 | 0) | 0; - $par2 = $var47 + $var17 | 0; - nms_Gui_drawRect($var47, $var22, $par2 - 1 | 0, $var22 + 8 | 0, 553648127); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glEnable(6); - if ($var20 < ju_ArrayList_size($var43)) { - $var48 = ju_ArrayList_get($var43, $var20); - $var51 = nms_ScorePlayerTeam_func_96667_a(nms_Scoreboard_getPlayersTeam(nms_World_getScoreboard($this.$mc10.$theWorld), $var48.$name6), $var48.$name6); - nms_FontRenderer_drawStringWithShadow($var8, $var51, $var47, $var22, 16777215); - if ($var5 !== null) { - $var26 = ($var47 + nms_FontRenderer_getStringWidth($var8, $var51) | 0) + 5 | 0; - $var52 = ($par2 - 12 | 0) - 5 | 0; - if (($var52 - $var26 | 0) > 5) { - $var55 = nms_Scoreboard_func_96529_a(nms_ScoreObjective_getScoreboard($var5), $var48.$name6, $var5); - $var57 = jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder__init_(), nms_EnumChatFormatting_YELLOW), $rt_s(44)), nms_Score_func_96652_c($var55))); - nms_FontRenderer_drawStringWithShadow($var8, $var57, $var52 - nms_FontRenderer_getStringWidth($var8, $var57) | 0, $var22, 16777215); - } - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nms_RenderEngine_bindTexture($this.$mc10.$renderEngine, $rt_s(964)); - $var27 = $var48.$responseTime < 0 ? 5 : $var48.$responseTime < 150 ? 0 : $var48.$responseTime < 300 ? 1 : $var48.$responseTime < 600 ? 2 : $var48.$responseTime >= 1000 ? 4 : 3; - $this.$zLevel = $this.$zLevel + 100.0; - nms_Gui_drawTexturedModalRect($this, $par2 - 12 | 0, $var22, 0, 176 + ($var27 * 8 | 0) | 0, 10, 8); - $this.$zLevel = $this.$zLevel - 100.0; - } - $var20 = $var20 + 1 | 0; - } - } - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(6); - return; - case 1: - nms_GuiIngame_renderInventorySlot($this, $var18, $var19, $var20, $par1); - if ($rt_suspending()) { - break main; - } - $var18 = $var18 + 1 | 0; - if ($var18 >= 9) { - nms_RenderHelper_disableStandardItemLighting(); - nleg_EaglerAdapterGL30_glDisable(41); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - if (nms_EntityPlayer_getSleepTimer($this.$mc10.$thePlayer) > 0) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(921)); - nleg_EaglerAdapterGL30_glDisable(4); - nleg_EaglerAdapterGL30_glDisable(6); - $var32 = nms_EntityPlayer_getSleepTimer($this.$mc10.$thePlayer); - $var33 = $var32 / 100.0; - if ($var33 > 1.0) - $var33 = 1.0 - ($var32 - 100 | 0) / 10.0; - nms_Gui_drawRect(0, 0, $var6, $var7, (220.0 * $var33 | 0) << 24 | 1052704); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glEnable(4); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - if (nms_PlayerControllerMP_func_78763_f($this.$mc10.$playerController) && $this.$mc10.$thePlayer.$experienceLevel > 0) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(922)); - $var34 = jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), $this.$mc10.$thePlayer.$experienceLevel)); - $var36 = ($var6 - nms_FontRenderer_getStringWidth($var8, $var34) | 0) / 2 | 0; - $var40 = ($var7 - 31 | 0) - 4 | 0; - nms_FontRenderer_drawString0($var8, $var34, $var36 + 1 | 0, $var40, 0); - nms_FontRenderer_drawString0($var8, $var34, $var36 - 1 | 0, $var40, 0); - nms_FontRenderer_drawString0($var8, $var34, $var36, $var40 + 1 | 0, 0); - nms_FontRenderer_drawString0($var8, $var34, $var36, $var40 - 1 | 0, 0); - nms_FontRenderer_drawString0($var8, $var34, $var36, $var40, 8453920); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - if ($this.$mc10.$gameSettings.$heldItemTooltips) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(923)); - if ($this.$remainingHighlightTicks > 0 && $this.$highlightingItemStack !== null) { - $var35 = nms_ItemStack_getDisplayName($this.$highlightingItemStack); - $var12 = ($var6 - nms_FontRenderer_getStringWidth($var8, $var35) | 0) / 2 | 0; - $var13 = $var7 - 59 | 0; - if (!nms_PlayerControllerMP_shouldDrawHUD($this.$mc10.$playerController)) - $var13 = $var13 + 14 | 0; - $var36 = $this.$remainingHighlightTicks * 256.0 / 10.0 | 0; - if ($var36 > 255) - $var36 = 255; - if ($var36 > 0) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nms_FontRenderer_drawStringWithShadow($var8, $var35, $var12, $var13, 16777215 + ($var36 << 24) | 0); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - } - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - if (nmc_Minecraft_isDemo($this.$mc10)) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(924)); - if (Long_ge(nms_World_getTotalWorldTime($this.$mc10.$theWorld), Long_fromInt(120500))) - $var5 = nms_StatCollector_translateToLocal($rt_s(925)); - else { - $var5 = nms_StatCollector_translateToLocal($rt_s(926)); - var$40 = $rt_createArray(jl_Object, 1); - var$40.data[0] = nms_StringUtils_ticksToElapsedTime(Long_sub(Long_fromInt(120500), nms_World_getTotalWorldTime($this.$mc10.$theWorld)).lo); - $var5 = jl_String_format($var5, var$40); - } - nms_FontRenderer_drawStringWithShadow($var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 10 | 0, 5, 16777215); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - $this.$mc10.$debug = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), nmc_Minecraft_debugFPS), $rt_s(927)), nmc_Minecraft_debugChunkUpdates), $rt_s(928))); - if (!$this.$mc10.$gameSettings.$showDebugInfo) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glScalef(0.75, 0.75, 0.75); - nms_FontRenderer_drawStringWithShadow($var8, nms_RenderGlobal_getDebugInfoShort($this.$mc10.$renderGlobal), 2, 2, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(929)), nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posX)), $rt_s(930)), nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posY)), $rt_s(931)), nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posZ))), 2, 12, 16777215); - nleg_EaglerAdapterGL30_glPopMatrix(); - } else { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(932)); - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_FontRenderer_drawStringWithShadow($var8, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(933)), $this.$mc10.$debug), $rt_s(64))), 2, 2, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, nmc_Minecraft_debugInfoRenders($this.$mc10), 2, 12, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, nmc_Minecraft_getEntityDebug($this.$mc10), 2, 22, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, nmc_Minecraft_debugInfoEntities($this.$mc10), 2, 32, 16777215); - nms_FontRenderer_drawStringWithShadow($var8, nmc_Minecraft_getWorldProviderName($this.$mc10), 2, 42, 16777215); - $var39 = nlea_EaglerAdapterImpl2_maxMemory(); - $var37 = nlea_EaglerAdapterImpl2_totalMemory(); - $var44 = Long_sub($var37, nlea_EaglerAdapterImpl2_freeMemory()); - $var45 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(934)), Long_div(Long_mul($var44, Long_fromInt(100)), $var39)), $rt_s(935)), Long_div(Long_div($var44, Long_fromInt(1024)), Long_fromInt(1024))), $rt_s(936)), Long_div(Long_div($var39, Long_fromInt(1024)), Long_fromInt(1024))), $rt_s(937))); - nms_Gui_drawString($this, $var8, $var45, ($var6 - nms_FontRenderer_getStringWidth($var8, $var45) | 0) - 2 | 0, 2, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder_append2(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(938)), Long_div(Long_mul($var37, Long_fromInt(100)), $var39)), $rt_s(935)), Long_div(Long_div($var37, Long_fromInt(1024)), Long_fromInt(1024))), $rt_s(939))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 12, 14737632); - $var47 = nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posX); - $var22 = nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posY); - $var23 = nms_MathHelper_floor_double($this.$mc10.$thePlayer.$posZ); - nms_Gui_drawString($this, $var8, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(929)), nms_GuiIngame_doubleToShorterString($this.$mc10.$thePlayer.$posX)), $rt_s(940)), $var47), $rt_s(941)), $var47 >> 4), $rt_s(940)), $var47 & 15), $rt_s(64))), 2, 64, 14737632); - nms_Gui_drawString($this, $var8, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(942)), nms_GuiIngame_doubleToShorterString($this.$mc10.$thePlayer.$posY)), $rt_s(940)), $var22), $rt_s(943))), 2, 72, 14737632); - nms_Gui_drawString($this, $var8, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(944)), nms_GuiIngame_doubleToShorterString($this.$mc10.$thePlayer.$posZ)), $rt_s(940)), $var23), $rt_s(941)), $var23 >> 4), $rt_s(940)), $var23 & 15), $rt_s(64))), 2, 80, 14737632); - $var24 = nms_MathHelper_floor_double($this.$mc10.$thePlayer.$rotationYaw * 4.0 / 360.0 + 0.5) & 3; - nms_Gui_drawString($this, $var8, jl_StringBuilder_toString(jl_StringBuilder_append3(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(945)), $var24), $rt_s(940)), nms_Direction_directions.data[$var24]), $rt_s(946)), nms_MathHelper_wrapAngleTo180_float($this.$mc10.$thePlayer.$rotationYaw))), 2, 88, 14737632); - nms_Gui_drawString($this, $var8, $rt_s(947), ($var6 - nms_FontRenderer_getStringWidth($var8, $rt_s(947)) | 0) - 2 | 0, 36, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(948)), nleg_EaglerAdapterGL30_getDisplayListCount()), $rt_s(949)), nleg_EaglerAdapterGL30_getBitsPerSecond() / 1000000 | 0), $rt_s(950))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 46, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(951)), nleg_EaglerAdapterGL30_getVertexesPerSecond() / 1000 | 0), $rt_s(952)), nleg_EaglerAdapterGL30_getTrianglesPerSecond() / 1000 | 0), $rt_s(953))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 56, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(954)), !nleg_EaglerAdapterGL30_isWebGL ? $rt_s(955) : $rt_s(956))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 66, 14737632); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(957)), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(958))); - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 76, 14737632); - nms_Gui_drawString($this, $var8, $rt_s(959), ($var6 - nms_FontRenderer_getStringWidth($var8, $rt_s(959)) | 0) - 2 | 0, 100, 14737632); - nms_Gui_drawString($this, $var8, $rt_s(960), ($var6 - nms_FontRenderer_getStringWidth($var8, $rt_s(960)) | 0) - 2 | 0, 110, 14737632); - nms_Gui_drawString($this, $var8, $rt_s(229), ($var6 - nms_FontRenderer_getStringWidth($var8, $rt_s(229)) | 0) - 2 | 0, 120, 14737632); - $i = 0; - while ($i < nleg_EffectPipeline_pipeline.data.length) { - $var5 = nleg_EffectPipeline_pipeline.data[$i]; - nms_Gui_drawString($this, $var8, $var5, ($var6 - nms_FontRenderer_getStringWidth($var8, $var5) | 0) - 2 | 0, 130 + ($i * 10 | 0) | 0, 14737632); - $i = $i + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - if ($this.$recordPlayingUpFor > 0) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(961)); - $var33 = $this.$recordPlayingUpFor - $par1; - $var12 = $var33 * 256.0 / 20.0 | 0; - if ($var12 > 255) - $var12 = 255; - if ($var12 > 0) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef($var6 / 2 | 0, $var7 - 48 | 0, 0.0); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - $var13 = 16777215; - if ($this.$recordIsPlaying) - $var13 = nms_BiomeGenBase_HSBtoRGB($var33 / 50.0, 0.699999988079071, 0.6000000238418579) & 16777215; - nms_FontRenderer_drawString0($var8, $this.$recordPlaying, -nms_FontRenderer_getStringWidth($var8, $this.$recordPlaying) / 2 | 0, (-4), $var13 + ($var12 << 24) | 0); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - nms_Profiler_endSection($this.$mc10.$mcProfiler); - } - $var42 = nms_Scoreboard_func_96539_a(nms_World_getScoreboard($this.$mc10.$theWorld), 1); - if ($var42 !== null) - nms_GuiIngame_func_96136_a($this, $var42, $var7, $var6, $var8); - c: { - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, $var7 - 48 | 0, 0.0); - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(962)); - nms_GuiNewChat_drawChat($this.$persistantChatGUI, $this.$updateCounter0); - nms_Profiler_endSection($this.$mc10.$mcProfiler); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var5 = nms_Scoreboard_func_96539_a(nms_World_getScoreboard($this.$mc10.$theWorld), 0); - if ($this.$mc10.$gameSettings.$keyBindPlayerList.$pressed && !(nmc_Minecraft_isIntegratedServerRunning($this.$mc10) && ju_ArrayList_size($this.$mc10.$thePlayer.$sendQueue.$playerInfoList) <= 1 && $var5 === null)) { - nms_Profiler_startSection($this.$mc10.$mcProfiler, $rt_s(963)); - $var38 = $this.$mc10.$thePlayer.$sendQueue; - $var43 = $var38.$playerInfoList; - $var36 = $var38.$currentServerMaxPlayers; - $var16_0 = 1; - $par2 = $var36; - while ($par2 > 20) { - $var16_0 = $var16_0 + 1 | 0; - $par2 = (($var36 + $var16_0 | 0) - 1 | 0) / $var16_0 | 0; - } - $var17 = 300 / $var16_0 | 0; - if ($var17 > 150) - $var17 = 150; - $par3 = $rt_imul($var16_0, $var17); - $var18 = ($var6 - $par3 | 0) / 2 | 0; - nms_Gui_drawRect($var18 - 1 | 0, 9, $var18 + $par3 | 0, 10 + (9 * $par2 | 0) | 0, (-2147483648)); - $var20 = 0; - while (true) { - if ($var20 >= $var36) - break c; - $var47 = $var18 + $rt_imul($var20 % $var16_0 | 0, $var17) | 0; - $var22 = 10 + (($var20 / $var16_0 | 0) * 9 | 0) | 0; - $par2 = $var47 + $var17 | 0; - nms_Gui_drawRect($var47, $var22, $par2 - 1 | 0, $var22 + 8 | 0, 553648127); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glEnable(6); - if ($var20 < ju_ArrayList_size($var43)) { - $var48 = ju_ArrayList_get($var43, $var20); - $var51 = nms_ScorePlayerTeam_func_96667_a(nms_Scoreboard_getPlayersTeam(nms_World_getScoreboard($this.$mc10.$theWorld), $var48.$name6), $var48.$name6); - nms_FontRenderer_drawStringWithShadow($var8, $var51, $var47, $var22, 16777215); - if ($var5 !== null) { - $var26 = ($var47 + nms_FontRenderer_getStringWidth($var8, $var51) | 0) + 5 | 0; - $var52 = ($par2 - 12 | 0) - 5 | 0; - if (($var52 - $var26 | 0) > 5) { - $var55 = nms_Scoreboard_func_96529_a(nms_ScoreObjective_getScoreboard($var5), $var48.$name6, $var5); - $var57 = jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder__init_(), nms_EnumChatFormatting_YELLOW), $rt_s(44)), nms_Score_func_96652_c($var55))); - nms_FontRenderer_drawStringWithShadow($var8, $var57, $var52 - nms_FontRenderer_getStringWidth($var8, $var57) | 0, $var22, 16777215); - } - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nms_RenderEngine_bindTexture($this.$mc10.$renderEngine, $rt_s(964)); - $var27 = $var48.$responseTime < 0 ? 5 : $var48.$responseTime < 150 ? 0 : $var48.$responseTime < 300 ? 1 : $var48.$responseTime < 600 ? 2 : $var48.$responseTime >= 1000 ? 4 : 3; - $this.$zLevel = $this.$zLevel + 100.0; - nms_Gui_drawTexturedModalRect($this, $par2 - 12 | 0, $var22, 0, 176 + ($var27 * 8 | 0) | 0, 10, 8); - $this.$zLevel = $this.$zLevel - 100.0; - } - $var20 = $var20 + 1 | 0; - } - } - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(6); - return; - } - $var19 = ($par3 + ($var18 * 20 | 0) | 0) + 2 | 0; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $var5, $var6, $var7, $var8, $var9, $var10, $var31, $var11, $var12, $var13, $var15, $var16, $var19, $var22, $var23, $var47, $var24, $var25, $i, $var26, $var27, $var28, $var30, $var36, $var16_0, $var52, $var53, $var29, $var18, $var20, $var32, $var33, $var34, $var40, $var35, var$40, $var39, $var37, $var44, $var45, $var42, $var38, $var43, $var17, $var48, $var51, $var55, $var57, $ptr); -} -function nms_GuiIngame_doubleToShorterString($d) { - var var$2, var$3, $i, var$5; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert3(var$2, var$2.$length, $d); - var$3 = jl_String__init_0(var$2.$buffer, 0, var$2.$length); - $i = jl_String_indexOf(var$3, 46, 0); - if ((var$3.$characters.data.length - $i | 0) <= 6) - var$2 = var$3; - else { - var$5 = $i + 6 | 0; - if (0 > var$5) { - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - var$2 = jl_String__init_0(var$3.$characters, 0, var$5 - 0 | 0); - } - return var$2; -} -function nms_GuiIngame_func_96136_a($this, $par1ScoreObjective, $par2, $par3, $par4FontRenderer) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var13, $var14, $var16, $var15, $var23, $var19, $var22, $var25, $var12, $var20, $var21; - a: { - $var5 = $par1ScoreObjective.$theScoreboard; - $var6 = nms_Scoreboard_func_96534_i($var5, $par1ScoreObjective); - if ($var6.$size0 <= 15) { - $var7 = nms_FontRenderer_getStringWidth($par4FontRenderer, $par1ScoreObjective.$displayName); - $var8 = new ju_AbstractList$1; - $var8.$this$0 = $var6; - $var8.$modCount = $var8.$this$0.$modCount0; - $var8.$size1 = $var8.$this$0.$size2(); - $var8.$removeIndex = (-1); - while ($var8.$index >= $var8.$size1 ? 0 : 1) { - $var9 = ju_AbstractList$1_next($var8); - $var10 = nms_Scoreboard_getPlayersTeam($var5, $var9.$field_96654_d); - $var13 = new jl_StringBuilder; - $var13.$buffer = $rt_createCharArray(16); - $var14 = $var9.$field_96654_d; - if ($var10 !== null) { - $var16 = new jl_StringBuilder; - $var16.$buffer = $rt_createCharArray(16); - $var15 = $var10.$field_96674_e; - jl_AbstractStringBuilder_insert($var16, $var16.$length, $var15); - jl_AbstractStringBuilder_insert($var16, $var16.$length, $var14); - $var10 = $var10.$field_96671_f; - jl_AbstractStringBuilder_insert($var16, $var16.$length, $var10); - $var14 = jl_String__init_0($var16.$buffer, 0, $var16.$length); - } - jl_AbstractStringBuilder_insert($var13, $var13.$length, $var14); - jl_AbstractStringBuilder_insert($var13, $var13.$length, $rt_s(48)); - $var10 = nms_EnumChatFormatting_RED; - jl_AbstractStringBuilder_insert($var13, $var13.$length, $var10 === null ? $rt_s(47) : $var10.$field_96304_B); - $var23 = $var9.$field_96655_e; - jl_AbstractStringBuilder_insert0($var13, $var13.$length, $var23, 10); - $var19 = nms_FontRenderer_getStringWidth($par4FontRenderer, jl_String__init_0($var13.$buffer, 0, $var13.$length)); - if ($var7 > $var19) - $var19 = $var7; - $var7 = $var19; - } - $var22 = $rt_imul($var6.$size0, $par4FontRenderer.$FONT_HEIGHT); - $var23 = ($par2 / 2 | 0) + ($var22 / 3 | 0) | 0; - $var25 = ($par3 - $var7 | 0) - 3 | 0; - $var12 = 0; - $var13 = new ju_AbstractList$1; - $var13.$this$0 = $var6; - $var13.$modCount = $var13.$this$0.$modCount0; - $var13.$size1 = $var13.$this$0.$size2(); - $var13.$removeIndex = (-1); - $var20 = ($par3 - 3 | 0) + 2 | 0; - $var22 = $var25 - 2 | 0; - while (true) { - if (!ju_AbstractList$1_hasNext($var13)) - break a; - $var14 = ju_AbstractList$1_next($var13); - $var12 = $var12 + 1 | 0; - $var15 = nms_Scoreboard_getPlayersTeam($var5, $var14.$field_96654_d); - $var16 = $var14.$field_96654_d; - if ($var15 !== null) { - $var10 = new jl_StringBuilder; - $var10.$buffer = $rt_createCharArray(16); - $var9 = $var15.$field_96674_e; - jl_AbstractStringBuilder_insert($var10, $var10.$length, $var9); - jl_AbstractStringBuilder_insert($var10, $var10.$length, $var16); - $var9 = $var15.$field_96671_f; - jl_AbstractStringBuilder_insert($var10, $var10.$length, $var9); - $var16 = jl_String__init_0($var10.$buffer, 0, $var10.$length); - } - $var9 = new jl_StringBuilder; - $var9.$buffer = $rt_createCharArray(16); - $var10 = nms_EnumChatFormatting_RED; - jl_AbstractStringBuilder_insert($var9, $var9.$length, $var10 === null ? $rt_s(47) : $var10.$field_96304_B); - jl_AbstractStringBuilder_insert($var9, $var9.$length, $rt_s(44)); - $var19 = $var14.$field_96655_e; - jl_AbstractStringBuilder_insert0($var9, $var9.$length, $var19, 10); - $var10 = jl_String__init_0($var9.$buffer, 0, $var9.$length); - $var19 = $var23 - $rt_imul($var12, $par4FontRenderer.$FONT_HEIGHT) | 0; - nms_Gui_drawRect($var22, $var19, $var20, $var19 + $par4FontRenderer.$FONT_HEIGHT | 0, 1342177280); - nms_FontRenderer_drawString($par4FontRenderer, $var16, $var25, $var19, 553648127, 0); - nms_FontRenderer_drawString($par4FontRenderer, $var10, $var20 - nms_FontRenderer_getStringWidth($par4FontRenderer, $var10) | 0, $var19, 553648127, 0); - if ($var12 == $var6.$size0) { - $var21 = nms_ScoreObjective_getDisplayName($par1ScoreObjective); - $par2 = ($var19 - $par4FontRenderer.$FONT_HEIGHT | 0) - 1 | 0; - $par3 = $var19 - 1 | 0; - nms_Gui_drawRect($var22, $par2, $var20, $par3, 1610612736); - nms_Gui_drawRect($var22, $par3, $var20, $var19, 1342177280); - nms_FontRenderer_drawString0($par4FontRenderer, $var21, ($var25 + ($var7 / 2 | 0) | 0) - (nms_FontRenderer_getStringWidth($par4FontRenderer, $var21) / 2 | 0) | 0, $var19 - $par4FontRenderer.$FONT_HEIGHT | 0, 553648127); - } - } - } - } -} -function nms_GuiIngame_renderBossHealth($this) { - var $var1, $var3, $var5, $var6, $var8; - if (nms_BossStatus_bossName !== null && nms_BossStatus_statusBarLength > 0) { - nms_BossStatus_statusBarLength = nms_BossStatus_statusBarLength - 1 | 0; - $var1 = $this.$mc10.$fontRenderer; - $var3 = nms_ScaledResolution__init_($this.$mc10.$gameSettings, $this.$mc10.$displayWidth, $this.$mc10.$displayHeight).$scaledWidth / 2 | 0; - $var5 = $var3 - 91 | 0; - $var6 = nms_BossStatus_healthScale * 183.0 | 0; - nms_Gui_drawTexturedModalRect($this, $var5, 12, 0, 74, 182, 5); - nms_Gui_drawTexturedModalRect($this, $var5, 12, 0, 74, 182, 5); - if ($var6 > 0) - nms_Gui_drawTexturedModalRect($this, $var5, 12, 0, 79, $var6, 5); - $var8 = nms_BossStatus_bossName; - nms_FontRenderer_drawString($var1, $var8, $var3 - (nms_FontRenderer_getStringWidth($var1, $var8) / 2 | 0) | 0, 2, 16777215, 1); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture(nms_GuiIngame_tex_icons); - } -} -function nms_GuiIngame_renderPumpkinBlur($this, $par1, $par2) { - var $var3, var$4, var$5; - nleg_EaglerAdapterGL30_glDisable(4); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(6); - nle_TextureLocation_bindTexture(nms_GuiIngame_tex_pumpkin); - nlea_Tessellator_$callClinit(); - $var3 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var3, 98); - var$4 = $par2; - $var3.$hasTexture = 1; - $var3.$textureU = 0.0; - $var3.$textureV = 1.0; - nlea_Tessellator_addVertex($var3, 0.0, var$4, (-90.0)); - var$5 = $par1; - $var3.$hasTexture = 1; - $var3.$textureU = 1.0; - $var3.$textureV = 1.0; - nlea_Tessellator_addVertex($var3, var$5, var$4, (-90.0)); - $var3.$hasTexture = 1; - $var3.$textureU = 1.0; - $var3.$textureV = 0.0; - nlea_Tessellator_addVertex($var3, var$5, 0.0, (-90.0)); - $var3.$hasTexture = 1; - $var3.$textureU = 0.0; - $var3.$textureV = 0.0; - nlea_Tessellator_addVertex($var3, 0.0, 0.0, (-90.0)); - nlea_Tessellator_draw($var3); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - nleg_EaglerAdapterGL30_glEnable(4); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; -} -function nms_GuiIngame_renderVignette($this, $par1, $par2, $par3) { - var var$4, var$5, $var4, var$7, var$8; - $par1 = 1.0 - $par1 * 0.5; - if ($par1 < 0.0) - $par1 = 0.0; - if ($par1 > 1.0) - $par1 = 1.0; - $this.$prevVignetteBrightness = $this.$prevVignetteBrightness + ($par1 - $this.$prevVignetteBrightness) * 0.01; - nleg_EaglerAdapterGL30_glDisable(4); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nleg_EaglerAdapterGL30_glBlendFunc(0, 45); - $par1 = $this.$prevVignetteBrightness; - var$4 = $this.$prevVignetteBrightness; - var$5 = $this.$prevVignetteBrightness; - nleg_EaglerAdapterGL30_colorR = $par1; - nleg_EaglerAdapterGL30_colorG = var$4; - nleg_EaglerAdapterGL30_colorB = var$5; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture(nms_GuiIngame_tex_vigg); - nlea_Tessellator_$callClinit(); - $var4 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var4, 98); - var$7 = $par3; - $var4.$hasTexture = 1; - $var4.$textureU = 0.0; - $var4.$textureV = 1.0; - nlea_Tessellator_addVertex($var4, 0.0, var$7, (-90.0)); - var$8 = $par2; - $var4.$hasTexture = 1; - $var4.$textureU = 1.0; - $var4.$textureV = 1.0; - nlea_Tessellator_addVertex($var4, var$8, var$7, (-90.0)); - $var4.$hasTexture = 1; - $var4.$textureU = 1.0; - $var4.$textureV = 0.0; - nlea_Tessellator_addVertex($var4, var$8, 0.0, (-90.0)); - $var4.$hasTexture = 1; - $var4.$textureU = 0.0; - $var4.$textureV = 0.0; - nlea_Tessellator_addVertex($var4, 0.0, 0.0, (-90.0)); - nlea_Tessellator_draw($var4); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - nleg_EaglerAdapterGL30_glEnable(4); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); -} -function nms_GuiIngame_renderPortalOverlay($this, $par1, $par2, $par3) { - var $var9, $var5, $var6, $var7, $var8, var$9, var$10, var$11, var$12; - if ($par1 < 1.0) { - $par1 = $par1 * $par1; - $par1 = $par1 * $par1 * 0.800000011920929 + 0.20000000298023224; - } - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glDisable(4); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = $par1; - nle_TextureLocation_bindTexture(nms_GuiIngame_terrain); - nms_Block_$callClinit(); - $var9 = nms_Block_portal.$blockIcon; - $var5 = $var9.$getMinU(); - $var6 = $var9.$getMinV(); - $var7 = $var9.$getMaxU(); - $var8 = $var9.$getMaxV(); - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var9, 98); - var$9 = $par3; - var$10 = $var5; - var$11 = $var8; - $var9.$hasTexture = 1; - $var5 = var$10; - $var9.$textureU = $var5; - $var8 = var$11; - $var9.$textureV = $var8; - nlea_Tessellator_addVertex($var9, 0.0, var$9, (-90.0)); - var$12 = $par2; - var$10 = $var7; - $var9.$hasTexture = 1; - $par1 = var$10; - $var9.$textureU = $par1; - $var9.$textureV = $var8; - nlea_Tessellator_addVertex($var9, var$12, var$9, (-90.0)); - var$10 = $var6; - $var9.$hasTexture = 1; - $var9.$textureU = $par1; - $par1 = var$10; - $var9.$textureV = $par1; - nlea_Tessellator_addVertex($var9, var$12, 0.0, (-90.0)); - $var9.$hasTexture = 1; - $var9.$textureU = $var5; - $var9.$textureV = $par1; - nlea_Tessellator_addVertex($var9, 0.0, 0.0, (-90.0)); - nlea_Tessellator_draw($var9); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - nleg_EaglerAdapterGL30_glEnable(4); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; -} -function nms_GuiIngame_renderInventorySlot($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, $var7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = $this.$mc10.$thePlayer.$inventory.$mainInventory.data[$par1]; - if ($var5 === null) - return; - $var6 = $var5.$animationsToGo - $par4; - $par1 = $rt_compare($var6, 0.0); - if ($par1 > 0) { - nleg_EaglerAdapterGL30_glPushMatrix(); - $var7 = 1.0 + $var6 / 5.0; - var$8 = $par2 + 8 | 0; - $var6 = var$8; - var$9 = $par3 + 12 | 0; - var$10 = var$9; - var$11 = nleg_EaglerAdapterGL30_deevis; - var$11.$x = $var6; - var$11.$y = var$10; - var$11.$z = 0.0; - var$11 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$11, var$11); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$12 = new ji_PrintStream; - var$12.$out = new jl_ConsoleOutputStreamStderr; - var$11 = new jl_StringBuilder; - var$11.$buffer = $rt_createCharArray(16); - var$12.$sb = var$11; - var$12.$buffer0 = $rt_createCharArray(32); - var$12.$autoFlush = 0; - var$11 = new jnci_UTF8Charset; - jnc_Charset__init_(var$11, $rt_s(2), $rt_createArray(jl_String, 0)); - var$12.$charset = var$11; - jl_System_errCache = var$12; - } - var$13 = jl_System_errCache; - var$12 = var$13.$sb; - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(220)); - var$14 = var$12.$length; - jl_AbstractStringBuilder_insertSpace(var$12, var$14, var$14 + 1 | 0); - var$12.$buffer.data[var$14] = 10; - ji_PrintStream_printSB(var$13); - } - $par4 = 1.0 / $var7; - $var6 = ($var7 + 1.0) / 2.0; - var$11 = nleg_EaglerAdapterGL30_deevis; - var$11.$x = $par4; - var$11.$y = $var6; - var$11.$z = 1.0; - var$11 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$11, var$11); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$12 = new ji_PrintStream; - var$12.$out = new jl_ConsoleOutputStreamStderr; - var$11 = new jl_StringBuilder; - var$11.$buffer = $rt_createCharArray(16); - var$12.$sb = var$11; - var$12.$buffer0 = $rt_createCharArray(32); - var$12.$autoFlush = 0; - var$11 = new jnci_UTF8Charset; - jnc_Charset__init_(var$11, $rt_s(2), $rt_createArray(jl_String, 0)); - var$12.$charset = var$11; - jl_System_errCache = var$12; - } - var$13 = jl_System_errCache; - var$12 = var$13.$sb; - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(220)); - var$14 = var$12.$length; - jl_AbstractStringBuilder_insertSpace(var$12, var$14, var$14 + 1 | 0); - var$12.$buffer.data[var$14] = 10; - ji_PrintStream_printSB(var$13); - } - $par4 = -var$8; - $var6 = -var$9; - var$11 = nleg_EaglerAdapterGL30_deevis; - var$11.$x = $par4; - var$11.$y = $var6; - var$11.$z = 0.0; - var$11 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$11, var$11); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$12 = new ji_PrintStream; - var$12.$out = new jl_ConsoleOutputStreamStderr; - var$11 = new jl_StringBuilder; - var$11.$buffer = $rt_createCharArray(16); - var$12.$sb = var$11; - var$12.$buffer0 = $rt_createCharArray(32); - var$12.$autoFlush = 0; - var$11 = new jnci_UTF8Charset; - jnc_Charset__init_(var$11, $rt_s(2), $rt_createArray(jl_String, 0)); - var$12.$charset = var$11; - jl_System_errCache = var$12; - } - var$13 = jl_System_errCache; - var$12 = var$13.$sb; - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(220)); - var$14 = var$12.$length; - jl_AbstractStringBuilder_insertSpace(var$12, var$14, var$14 + 1 | 0); - var$12.$buffer.data[var$14] = 10; - ji_PrintStream_printSB(var$13); - } - } - if (nms_GuiIngame_itemRenderer === null) - nms_GuiIngame_itemRenderer = nms_RenderItem__init_0(); - var$11 = nms_GuiIngame_itemRenderer; - var$12 = $this.$mc10.$fontRenderer; - var$13 = $this.$mc10.$renderEngine; - $ptr = 1; - case 1: - nms_RenderItem_renderItemAndEffectIntoGUI(var$11, var$12, var$13, $var5, $par2, $par3); - if ($rt_suspending()) { - break main; - } - if ($par1 > 0) - nleg_EaglerAdapterGL30_glPopMatrix(); - nms_RenderItem_renderItemOverlayIntoGUI(nms_GuiIngame_itemRenderer, $this.$mc10.$fontRenderer, $this.$mc10.$renderEngine, $var5, $par2, $par3, null); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $var5, $var6, $var7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, $ptr); -} -function nms_GuiIngame_updateTick($this) { - var $var1; - if ($this.$recordPlayingUpFor > 0) - $this.$recordPlayingUpFor = $this.$recordPlayingUpFor - 1 | 0; - $this.$updateCounter0 = $this.$updateCounter0 + 1 | 0; - if ($this.$mc10.$thePlayer !== null) { - a: { - $var1 = nms_InventoryPlayer_getCurrentItem($this.$mc10.$thePlayer.$inventory); - if ($var1 === null) - $this.$remainingHighlightTicks = 0; - else { - b: { - if ($this.$highlightingItemStack !== null && $var1.$itemID0 == $this.$highlightingItemStack.$itemID0 && nms_ItemStack_areItemStackTagsEqual($var1, $this.$highlightingItemStack)) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var1.$itemID0].$maxDamage <= 0 ? 0 : 1) - break b; - if ($var1.$itemDamage == $this.$highlightingItemStack.$itemDamage) - break b; - } - $this.$remainingHighlightTicks = 40; - break a; - } - if ($this.$remainingHighlightTicks > 0) - $this.$remainingHighlightTicks = $this.$remainingHighlightTicks - 1 | 0; - } - } - $this.$highlightingItemStack = $var1; - } -} -function nms_GuiIngame_setRecordPlayingMessage($this, $par1Str) { - var var$2; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(965)); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $par1Str); - $this.$recordPlaying = jl_String__init_0(var$2.$buffer, 0, var$2.$length); - $this.$recordPlayingUpFor = 60; - $this.$recordIsPlaying = 1; -} -function nms_GuiIngame_getChatGUI($this) { - return $this.$persistantChatGUI; -} -function nms_GuiIngame_getUpdateCounter($this) { - return $this.$updateCounter0; -} -function nms_GuiIngame__clinit_() { - var var$1, var$2; - nms_GuiIngame_itemRenderer = null; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(442); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_GuiIngame_tex_gui = var$1; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(964); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_GuiIngame_tex_icons = var$2; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(966); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_GuiIngame_tex_pumpkin = var$2; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(967); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_GuiIngame_tex_vigg = var$2; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(641); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_GuiIngame_terrain = var$2; -} -function nms_IProgressUpdate() { -} -function nms_LoadingScreenRenderer() { - var a = this; jl_Object.call(a); - a.$field_73727_a = null; - a.$mc2 = null; - a.$currentlyDisplayedText = null; - a.$field_73723_d = Long_ZERO; - a.$field_73724_e = 0; -} -var nms_LoadingScreenRenderer_background = null; -function nms_LoadingScreenRenderer_resetProgressAndMessage($this, $par1Str) { - $this.$field_73724_e = 0; - nms_LoadingScreenRenderer_func_73722_d($this, $par1Str); -} -function nms_LoadingScreenRenderer_func_73722_d($this, $par1Str) { - var $var2, var$3, var$4; - a: { - $this.$currentlyDisplayedText = $par1Str; - if (!$this.$mc2.$running) { - if ($this.$field_73724_e) - break a; - $par1Str = new nms_MinecraftError; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $var2 = nms_ScaledResolution__init_($this.$mc2.$gameSettings, $this.$mc2.$displayWidth, $this.$mc2.$displayHeight); - nleg_EaglerAdapterGL30_glClear(2); - nleg_EaglerAdapterGL30_matrixMode = 9; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_glOrtho(0.0, $var2.$scaledWidth, $var2.$scaledHeight, 0.0, 100.0, 300.0); - nleg_EaglerAdapterGL30_matrixMode = 10; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - $par1Str = nleg_EaglerAdapterGL30_deevis; - $par1Str.$x = 0.0; - $par1Str.$y = 0.0; - $par1Str.$z = (-200.0); - $par1Str = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Str, $par1Str); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var2 = new ji_PrintStream; - $var2.$out = new jl_ConsoleOutputStreamStderr; - $par1Str = new jl_StringBuilder; - $par1Str.$buffer = $rt_createCharArray(16); - $var2.$sb = $par1Str; - $var2.$buffer0 = $rt_createCharArray(32); - $var2.$autoFlush = 0; - $par1Str = new jnci_UTF8Charset; - jnc_Charset__init_($par1Str, $rt_s(2), $rt_createArray(jl_String, 0)); - $var2.$charset = $par1Str; - jl_System_errCache = $var2; - } - var$3 = jl_System_errCache; - $var2 = var$3.$sb; - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(220)); - var$4 = $var2.$length; - jl_AbstractStringBuilder_insertSpace($var2, var$4, var$4 + 1 | 0); - $var2.$buffer.data[var$4] = 10; - ji_PrintStream_printSB(var$3); - } - } -} -function nms_LoadingScreenRenderer_resetProgresAndWorkingMessage($this, $par1Str) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1Str = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$mc2.$running) { - if ($this.$field_73724_e) - return; - $par1Str = new nms_MinecraftError; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $this.$field_73723_d = Long_ZERO; - $this.$field_73727_a = $par1Str; - var$2 = (-1); - $ptr = 1; - case 1: - nms_LoadingScreenRenderer_setLoadingProgress($this, var$2); - if ($rt_suspending()) { - break main; - } - $this.$field_73723_d = Long_ZERO; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Str, var$2, $ptr); -} -function nms_LoadingScreenRenderer_setLoadingProgress($this, $par1) { - var $var4, $var2, $var5, $var6, $var7, var$7, $var11, var$9, var$10, var$11, var$12, var$13, var$14, $var12, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var12 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var11 = $thread.pop();var$7 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var2 = $thread.pop();$var4 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if (!$this.$mc2.$running) { - if ($this.$field_73724_e) - break a; - $var4 = new nms_MinecraftError; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); - } - $var2 = jl_System_currentTimeMillis(); - if (Long_ge(Long_sub($var2, $this.$field_73723_d), Long_fromInt(100))) { - $this.$field_73723_d = $var2; - $var4 = nms_ScaledResolution__init_($this.$mc2.$gameSettings, $this.$mc2.$displayWidth, $this.$mc2.$displayHeight); - $var5 = $var4.$scaledWidth; - $var6 = $var4.$scaledHeight; - nleg_EaglerAdapterGL30_glClear(2); - nleg_EaglerAdapterGL30_matrixMode = 9; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_glOrtho(0.0, $var4.$scaledWidth, $var4.$scaledHeight, 0.0, 100.0, 300.0); - nleg_EaglerAdapterGL30_matrixMode = 10; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - $var4 = nleg_EaglerAdapterGL30_deevis; - $var4.$x = 0.0; - $var4.$y = 0.0; - $var4.$z = (-200.0); - $var4 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var4, $var4); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var4 = new ji_PrintStream; - $var4.$out = new jl_ConsoleOutputStreamStderr; - $var7 = new jl_StringBuilder; - $var7.$buffer = $rt_createCharArray(16); - $var4.$sb = $var7; - $var4.$buffer0 = $rt_createCharArray(32); - $var4.$autoFlush = 0; - $var7 = new jnci_UTF8Charset; - jnc_Charset__init_($var7, $rt_s(2), $rt_createArray(jl_String, 0)); - $var4.$charset = $var7; - jl_System_errCache = $var4; - } - var$7 = jl_System_errCache; - $var7 = var$7.$sb; - jl_AbstractStringBuilder_insert($var7, $var7.$length, $rt_s(220)); - $var11 = $var7.$length; - jl_AbstractStringBuilder_insertSpace($var7, $var11, $var11 + 1 | 0); - $var7.$buffer.data[$var11] = 10; - ji_PrintStream_printSB(var$7); - } - nleg_EaglerAdapterGL30_glClear(3); - nlea_Tessellator_$callClinit(); - $var7 = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture(nms_LoadingScreenRenderer_background); - nlea_Tessellator_startDrawing($var7, 98); - nlea_Tessellator_setColorRGBA($var7, 64, 64, 64, 255); - var$9 = $var6; - var$10 = $var6 / 32.0; - $var7.$hasTexture = 1; - $var7.$textureU = 0.0; - var$11 = var$10; - $var7.$textureV = var$11; - nlea_Tessellator_addVertex($var7, 0.0, var$9, 0.0); - var$12 = $var5; - var$13 = $var5 / 32.0; - $var7.$hasTexture = 1; - var$14 = var$13; - $var7.$textureU = var$14; - $var7.$textureV = var$11; - nlea_Tessellator_addVertex($var7, var$12, var$9, 0.0); - $var7.$hasTexture = 1; - $var7.$textureU = var$14; - $var7.$textureV = 0.0; - nlea_Tessellator_addVertex($var7, var$12, 0.0, 0.0); - nlea_Tessellator_setTextureUV($var7, 0.0, 0.0); - nlea_Tessellator_addVertex($var7, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var7); - if ($par1 >= 0) { - $var11 = ($var5 / 2 | 0) - 50 | 0; - $var12 = ($var6 / 2 | 0) + 16 | 0; - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_startDrawingQuads($var7); - nlea_Tessellator_setColorOpaque_I($var7, 8421504); - var$13 = $var11; - var$9 = $var12; - nlea_Tessellator_addVertex($var7, var$13, var$9, 0.0); - var$12 = $var12 + 2 | 0; - nlea_Tessellator_addVertex($var7, var$13, var$12, 0.0); - var$10 = $var11 + 100 | 0; - nlea_Tessellator_addVertex($var7, var$10, var$12, 0.0); - nlea_Tessellator_addVertex($var7, var$10, var$9, 0.0); - nlea_Tessellator_setColorOpaque_I($var7, 8454016); - nlea_Tessellator_addVertex($var7, var$13, var$9, 0.0); - nlea_Tessellator_addVertex($var7, var$13, var$12, 0.0); - var$13 = $var11 + $par1 | 0; - nlea_Tessellator_addVertex($var7, var$13, var$12, 0.0); - nlea_Tessellator_addVertex($var7, var$13, var$9, 0.0); - nlea_Tessellator_draw($var7); - nleg_EaglerAdapterGL30_glEnable(2); - } - $var4 = $this.$mc2.$fontRenderer; - $var7 = $this.$currentlyDisplayedText; - $par1 = ($var5 - nms_FontRenderer_getStringWidth($this.$mc2.$fontRenderer, $this.$currentlyDisplayedText) | 0) / 2 | 0; - $var9 = ($var6 / 2 | 0) - 4 | 0; - nms_FontRenderer_drawString($var4, $var7, $par1, $var9 - 16 | 0, 16777215, 1); - nms_FontRenderer_drawString($this.$mc2.$fontRenderer, $this.$field_73727_a, ($var5 - nms_FontRenderer_getStringWidth($this.$mc2.$fontRenderer, $this.$field_73727_a) | 0) / 2 | 0, $var9 + 8 | 0, 16777215, 1); - $ptr = 1; - continue main; - } - } - return; - case 1: - nlea_EaglerAdapterImpl2_updateDisplay(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var4, $var2, $var5, $var6, $var7, var$7, $var11, var$9, var$10, var$11, var$12, var$13, var$14, $var12, $var9, $ptr); -} -function nms_LoadingScreenRenderer__clinit_() { - var var$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_LoadingScreenRenderer_background = var$1; -} -function nms_StringTranslate() { - var a = this; jl_Object.call(a); - a.$translateTable = null; - a.$languageList = null; - a.$field_94521_d = null; - a.$currentLanguage = null; - a.$isUnicode = 0; -} -var nms_StringTranslate_instance = null; -function nms_StringTranslate_getInstance() { - return nms_StringTranslate_instance; -} -function nms_StringTranslate_getLanguageList($this) { - return $this.$languageList; -} -function nms_StringTranslate_loadLanguage($this, $par1Properties, $par2Str) { - var var$3, $var4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $$je; - var$3 = new ji_BufferedReader; - $var4 = new ji_InputStreamReader; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(968)); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $par2Str); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(969)); - var$6 = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - nlea_EaglerAdapterImpl2_$callClinit(); - if (!(var$6 === $rt_s(58) ? 1 : jl_String_startsWith(var$6, $rt_s(58), 0))) - $par2Str = var$6; - else { - var$7 = var$6.$characters.data.length; - if (1 > var$7) { - $par1Properties = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1Properties); - $rt_throw($par1Properties); - } - $par2Str = jl_String__init_0(var$6.$characters, 1, var$7 - 1 | 0); - } - var$5 = nle_AssetRepository_filePool; - if ($par2Str !== null) { - var$7 = jl_String_hashCode($par2Str); - $par2Str = ju_HashMap_findNonNullKeyEntry(var$5, $par2Str, var$7 & (var$5.$elementData.data.length - 1 | 0), var$7); - } else { - $par2Str = var$5.$elementData.data[0]; - while ($par2Str !== null && $par2Str.$key !== null) { - $par2Str = $par2Str.$next1; - } - } - var$8 = $par2Str === null ? null : $par2Str.$value0; - if (var$8 === null) - $par2Str = null; - else { - var$9 = var$8.data; - $par2Str = new ji_ByteArrayInputStream; - var$10 = var$9.length; - $par2Str.$buf = var$8; - $par2Str.$pos = 0; - $par2Str.$mark0 = 0; - $par2Str.$count0 = 0 + var$10 | 0; - } - a: { - try { - var$11 = jnc_Charset_forName(jl_String_toString($rt_s(2))); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jnc_UnsupportedCharsetException) { - } else { - throw $$e; - } - } - $par1Properties = new ji_UnsupportedEncodingException; - $par1Properties.$suppressionEnabled = 1; - $par1Properties.$writableStackTrace = 1; - $par1Properties.$message = $rt_s(2); - $rt_throw($par1Properties); - } - var$6 = new jnci_UTF8Decoder; - jnc_CharsetDecoder__init_(var$6, var$11, 0.3333333432674408, 0.5); - var$5 = jnc_CodingErrorAction_REPLACE; - if (var$5 === null) { - $par2Str = new jl_IllegalArgumentException; - $par2Str.$suppressionEnabled = 1; - $par2Str.$writableStackTrace = 1; - $par2Str.$message = $rt_s(970); - $rt_throw($par2Str); - } - var$6.$malformedAction0 = var$5; - var$5 = jnc_CodingErrorAction_REPLACE; - if (var$5 === null) { - $par2Str = new jl_IllegalArgumentException; - $par2Str.$suppressionEnabled = 1; - $par2Str.$writableStackTrace = 1; - $par2Str.$message = $rt_s(970); - $rt_throw($par2Str); - } - var$6.$unmappableAction0 = var$5; - ji_InputStreamReader__init_0($var4, $par2Str, var$6); - var$3.$lock = new jl_Object; - var$3.$mark1 = (-1); - var$3.$innerReader = $var4; - var$3.$buffer3 = $rt_createCharArray(1024); - $var4 = ji_BufferedReader_readLine(var$3); - while ($var4 !== null) { - $par2Str = jl_String_trim($var4); - if (!($par2Str === $rt_s(795) ? 1 : jl_String_startsWith($par2Str, $rt_s(795), 0))) { - var$9 = jur_Pattern_split(jur_Pattern_compile($rt_s(492), 0), $par2Str, 0); - if (var$9 !== null) { - var$9 = var$9.data; - if (var$9.length == 2) - ju_Hashtable_put($par1Properties, var$9[0], var$9[1]); - } - } - $var4 = ji_BufferedReader_readLine(var$3); - } -} -function nms_StringTranslate_setLanguage($this, $par1Str, $par2) { - var $var3, $$je; - jl_Object_monitorEnterSync($this); - try { - if (!(!$par2 && jl_String_equals($par1Str, $this.$currentLanguage))) { - $var3 = new ju_Properties; - ju_Hashtable__init_0($var3, 11); - a: { - try { - nms_StringTranslate_loadLanguage($this, $var3, $rt_s(533)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - } else { - throw $$e; - } - } - } - $this.$isUnicode = 0; - $this.$currentLanguage = $par1Str; - $this.$translateTable = $var3; - } - } finally { - jl_Object_monitorExitSync($this); - } -} -function nms_StringTranslate_getCurrentLanguage($this) { - return $this.$currentLanguage; -} -function nms_StringTranslate_isUnicode($this) { - return $this.$isUnicode; -} -function nms_StringTranslate_translateKey($this, $par1Str) { - jl_Object_monitorEnterSync($this); - try { - return ju_Properties_getProperty0($this.$translateTable, $par1Str, $par1Str); - } finally { - jl_Object_monitorExitSync($this); - } -} -function nms_StringTranslate_translateKeyFormat($this, $par1Str, $par2ArrayOfObj) { - var $var3, $$je; - jl_Object_monitorEnterSync($this); - try { - $var3 = ju_Properties_getProperty0($this.$translateTable, $par1Str, $par1Str); - a: { - try { - $par1Str = jl_String_format($var3, $par2ArrayOfObj); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ju_IllegalFormatException) { - break a; - } else { - throw $$e; - } - } - return $par1Str; - } - $par1Str = new jl_StringBuilder; - $par1Str.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1Str, $par1Str.$length, $rt_s(971)); - jl_AbstractStringBuilder_insert($par1Str, $par1Str.$length, $var3); - return jl_String__init_0($par1Str.$buffer, 0, $par1Str.$length); - } finally { - jl_Object_monitorExitSync($this); - } -} -function nms_StringTranslate_translateNamedKey($this, $par1Str) { - var var$2, var$3; - jl_Object_monitorEnterSync($this); - try { - var$2 = $this.$translateTable; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $par1Str); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(683)); - return ju_Properties_getProperty0(var$2, jl_String__init_0(var$3.$buffer, 0, var$3.$length), $rt_s(44)); - } finally { - jl_Object_monitorExitSync($this); - } -} -function nms_StringTranslate__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_StringTranslate; - var$2 = new ju_Properties; - ju_Hashtable__init_0(var$2, 11); - var$1.$translateTable = var$2; - var$2 = new ju_TreeMap; - var$3 = null; - var$2.$originalComparator = var$3; - if (var$3 === null) { - var$3 = new ju_TreeMap$1; - var$3.$this$05 = var$2; - } - var$2.$comparator = var$3; - var$1.$field_94521_d = var$2; - var$2 = new ju_TreeMap; - var$3 = null; - var$2.$originalComparator = var$3; - if (var$3 === null) { - var$3 = new ju_TreeMap$1; - var$3.$this$05 = var$2; - } - var$2.$comparator = var$3; - var$1.$languageList = var$2; - var$2 = var$1.$languageList; - var$2.$root = ju_TreeMap_getOrCreateNode(var$2, var$2.$root, $rt_s(533)); - var$3 = ju_TreeMap_findExact(var$2, $rt_s(533)); - var$3.$value8 = $rt_s(972); - var$3.$value8 = $rt_s(972); - var$2.$modCount3 = var$2.$modCount3 + 1 | 0; - nms_StringTranslate_instance = var$1; -} -function nms_GuiGameOver() { - nms_GuiScreen.call(this); - this.$cooldownTimer = 0; -} -function nms_GuiGameOver__init_0() { - var var_0 = new nms_GuiGameOver(); - nms_GuiGameOver__init_(var_0); - return var_0; -} -function nms_GuiGameOver__init_($this) { - nms_GuiScreen__init_($this); -} -function nms_GuiGameOver_initGui($this) { - var $var2, $var1; - $var2 = $this.$buttonList; - ju_Arrays_fill($var2.$array1, 0, $var2.$size0, null); - $var2.$size0 = 0; - if (!$this.$mc4.$theWorld.$worldInfo.$hardcore) { - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, ($this.$height0 / 4 | 0) + 72 | 0, 200, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(973)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(2, ($this.$width0 / 2 | 0) - 100 | 0, ($this.$height0 / 4 | 0) + 96 | 0, 200, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(974)))); - } else if (!$this.$mc4.$integratedServerIsRunning) - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, ($this.$height0 / 4 | 0) + 96 | 0, 200, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(975)))); - else - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, ($this.$height0 / 4 | 0) + 96 | 0, 200, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(976)))); - $var2 = $this.$buttonList; - $var1 = new ju_AbstractList$1; - $var1.$this$0 = $var2; - $var1.$modCount = $var1.$this$0.$modCount0; - $var1.$size1 = $var1.$this$0.$size2(); - $var1.$removeIndex = (-1); - while ($var1.$index >= $var1.$size1 ? 0 : 1) { - ju_AbstractList$1_next($var1).$enabled = 0; - } -} -function nms_GuiGameOver_keyTyped($this, $par1, $par2) { - return; -} -function nms_GuiGameOver_actionPerformed($this, $par1GuiButton) { - 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();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - switch ($par1GuiButton.$id2) { - case 1: - nms_EntityClientPlayerMP_respawnPlayer($this.$mc4.$thePlayer); - var$2 = $this.$mc4; - $par1GuiButton = null; - $ptr = 1; - continue main; - case 2: - nms_WorldClient_sendQuittingDisconnectingPacket($this.$mc4.$theWorld); - $par1GuiButton = $this.$mc4; - var$2 = null; - var$3 = $rt_s(44); - $ptr = 2; - continue main; - default: - } - return; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, $par1GuiButton); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_loadWorld0($par1GuiButton, var$2, var$3); - if ($rt_suspending()) { - break main; - } - $par1GuiButton = $this.$mc4; - var$2 = nms_GuiMainMenu__init_0(); - $ptr = 3; - case 3: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, var$3, $ptr); -} -function nms_GuiGameOver_drawScreen($this, $par1, $par2, $par3) { - var $var5, var$5, var$6, var$7, $var4, var$9, var$10; - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, 1615855616, (-1602211792)); - nleg_EaglerAdapterGL30_glPushMatrix(); - $var5 = nleg_EaglerAdapterGL30_deevis; - $var5.$x = 2.0; - $var5.$y = 2.0; - $var5.$z = 2.0; - $var5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $var5, $var5); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$5 = new ji_PrintStream; - var$5.$out = new jl_ConsoleOutputStreamStderr; - $var5 = new jl_StringBuilder; - $var5.$buffer = $rt_createCharArray(16); - var$5.$sb = $var5; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - $var5 = new jnci_UTF8Charset; - jnc_Charset__init_($var5, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = $var5; - 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); - } - $var4 = $this.$mc4.$theWorld.$worldInfo.$hardcore; - $var5 = !$var4 ? nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(977)) : nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(978)); - var$5 = $this.$fontRenderer0; - nms_FontRenderer_drawString(var$5, $var5, (($this.$width0 / 2 | 0) / 2 | 0) - (nms_FontRenderer_getStringWidth(var$5, $var5) / 2 | 0) | 0, 30, 16777215, 1); - nleg_EaglerAdapterGL30_glPopMatrix(); - if ($var4) { - $var5 = $this.$fontRenderer0; - var$5 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(979)); - nms_FontRenderer_drawString($var5, var$5, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth($var5, var$5) / 2 | 0) | 0, 144, 16777215, 1); - } - $var5 = $this.$fontRenderer0; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - var$6 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(980)); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$6); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(48)); - var$6 = nms_EnumChatFormatting_YELLOW; - jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$6 === null ? $rt_s(47) : var$6.$field_96304_B); - var$9 = nms_DataWatcher_getWatchableObjectInt($this.$mc4.$thePlayer.$dataWatcher, 18); - jl_AbstractStringBuilder_insert0(var$5, var$5.$length, var$9, 10); - var$6 = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - nms_FontRenderer_drawString($var5, var$6, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth($var5, var$6) / 2 | 0) | 0, 100, 16777215, 1); - var$10 = 0; - a: { - while (var$10 < $this.$buttonList.$size0) { - $var5 = $this.$buttonList; - if (var$10 < 0) - break a; - if (var$10 >= $var5.$size0) - break a; - $var5.$array1.data[var$10].$drawButton($this.$mc4, $par1, $par2); - var$10 = var$10 + 1 | 0; - } - return; - } - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); -} -function nms_GuiGameOver_updateScreen($this) { - var $var2, $var1; - a: { - $this.$cooldownTimer = $this.$cooldownTimer + 1 | 0; - if ($this.$cooldownTimer == 20) { - $var2 = $this.$buttonList; - $var1 = new ju_AbstractList$1; - $var1.$this$0 = $var2; - $var1.$modCount = $var1.$this$0.$modCount0; - $var1.$size1 = $var1.$this$0.$size2(); - $var1.$removeIndex = (-1); - while (true) { - if (!($var1.$index >= $var1.$size1 ? 0 : 1)) - break a; - ju_AbstractList$1_next($var1).$enabled = 1; - } - } - } -} -function nle_BaseNCodec$Context() { - var a = this; jl_Object.call(a); - a.$ibitWorkArea = 0; - a.$buffer2 = null; - a.$pos0 = 0; - a.$readPos = 0; - a.$eof = 0; - a.$currentLinePos = 0; - a.$modulus = 0; -} -function nle_BaseNCodec$Context__init_0() { - var var_0 = new nle_BaseNCodec$Context(); - nle_BaseNCodec$Context__init_(var_0); - return var_0; -} -function nle_BaseNCodec$Context__init_($this) { - return; -} -function cjj_InfBlocks() { - var a = this; jl_Object.call(a); - a.$mode0 = 0; - a.$left = 0; - a.$table = 0; - a.$index1 = 0; - a.$blens = null; - a.$bb = null; - a.$tb = null; - a.$bl = null; - a.$bd = null; - a.$tl = null; - a.$td = null; - a.$tli = null; - a.$tdi = null; - a.$codes = null; - a.$last = 0; - a.$bitk = 0; - a.$bitb = 0; - a.$hufts = null; - a.$window = null; - a.$end1 = 0; - a.$read3 = 0; - a.$write3 = 0; - a.$check = 0; - a.$inftree = null; - a.$z3 = null; -} -var cjj_InfBlocks_inflate_mask = null; -var cjj_InfBlocks_border = null; -function cjj_InfBlocks__init_(var_0, var_1) { - var var_2 = new cjj_InfBlocks(); - cjj_InfBlocks__init_0(var_2, var_0, var_1); - return var_2; -} -function cjj_InfBlocks__init_0($this, $z, $w) { - var var$3, var$4; - $this.$bb = $rt_createIntArray(1); - $this.$tb = $rt_createIntArray(1); - $this.$bl = $rt_createIntArray(1); - $this.$bd = $rt_createIntArray(1); - $this.$tl = $rt_createArray($rt_arraycls($rt_intcls()), 1); - $this.$td = $rt_createArray($rt_arraycls($rt_intcls()), 1); - $this.$tli = $rt_createIntArray(1); - $this.$tdi = $rt_createIntArray(1); - var$3 = new cjj_InfTree; - var$3.$hn = null; - var$3.$v = null; - var$3.$c = null; - var$3.$r0 = null; - var$3.$u = null; - var$3.$x2 = null; - $this.$inftree = var$3; - $this.$z3 = $z; - var$3 = new cjj_InfCodes; - var$4 = $this.$z3; - var$3.$tree_index = 0; - var$3.$z4 = var$4; - var$3.$s = $this; - $this.$codes = var$3; - $this.$hufts = $rt_createIntArray(4320); - $this.$window = $rt_createByteArray($w); - $this.$end1 = $w; - $this.$check = $z.$istate.$wrap0 ? 1 : 0; - $this.$mode0 = 0; - cjj_InfBlocks_reset($this); -} -function cjj_InfBlocks_reset($this) { - $this.$mode0 = 0; - $this.$bitk = 0; - $this.$bitb = 0; - $this.$write3 = 0; - $this.$read3 = 0; - if ($this.$check) - $this.$z3.$adler.$reset(); -} -function cjj_InfBlocks_proc($this, $r) { - var $p, $n, $b, $k, $q, $m, var$8, var$9, var$10, $i, $t, $c, var$14, $j, $i_0; - $p = $this.$z3.$next_in_index; - $n = $this.$z3.$avail_in; - $b = $this.$bitb; - $k = $this.$bitk; - $q = $this.$write3; - $m = $q >= $this.$read3 ? $this.$end1 - $q | 0 : ($this.$read3 - $q | 0) - 1 | 0; - a: { - b: { - c: { - d: { - e: while (true) { - f: { - g: { - h: { - i: { - j: { - switch ($this.$mode0) { - case 2: - break f; - case 9: - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, (-3)); - case 0: - break j; - case 1: - break; - case 3: - while ($k < 14) { - if (!$n) { - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, $r); - } - $r = 0; - $n = $n + (-1) | 0; - var$9 = $this.$z3.$next_in.data; - var$10 = $p + 1 | 0; - $b = $b | (var$9[$p] & 255) << $k; - $k = $k + 8 | 0; - $p = var$10; - } - var$10 = $b & 16383; - $this.$table = var$10; - $i = var$10 & 31; - if ($i > 29) - break d; - var$10 = var$10 >> 5 & 31; - if (var$10 > 29) - break d; - k: { - var$10 = (258 + $i | 0) + var$10 | 0; - if (!($this.$blens !== null && $this.$blens.data.length >= var$10)) - $this.$blens = $rt_createIntArray(var$10); - else { - $i = 0; - while (true) { - if ($i >= var$10) - break k; - $this.$blens.data[$i] = 0; - $i = $i + 1 | 0; - } - } - } - $b = $b >>> 14; - $k = $k + (-14) | 0; - $this.$index1 = 0; - $this.$mode0 = 4; - break i; - case 4: - break i; - case 5: - break h; - case 6: - break g; - case 7: - break b; - case 8: - break a; - default: - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, (-2)); - } - while ($k < 32) { - if (!$n) { - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, $r); - } - $r = 0; - $n = $n + (-1) | 0; - var$9 = $this.$z3.$next_in.data; - var$10 = $p + 1 | 0; - $b = $b | (var$9[$p] & 255) << $k; - $k = $k + 8 | 0; - $p = var$10; - } - var$10 = ($b ^ (-1)) >>> 16 & 65535; - $i = $b & 65535; - if (var$10 != $i) { - $this.$mode0 = 9; - $this.$z3.$msg = $rt_s(981); - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, (-3)); - } - $this.$left = $i; - $k = 0; - $this.$mode0 = $this.$left ? 2 : !$this.$last ? 0 : 7; - $b = $k; - continue e; - } - while ($k < 3) { - if (!$n) { - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, $r); - } - $r = 0; - $n = $n + (-1) | 0; - var$9 = $this.$z3.$next_in.data; - var$10 = $p + 1 | 0; - $b = $b | (var$9[$p] & 255) << $k; - $k = $k + 8 | 0; - $p = var$10; - } - l: { - $t = $b & 7; - $this.$last = $t & 1; - switch ($t >>> 1) { - case 0: - var$10 = $b >>> 3; - $i = $k + (-3) | 0; - $c = $i & 7; - $b = var$10 >>> $c; - $k = $i - $c | 0; - $this.$mode0 = 1; - break l; - case 1: - cjj_InfTree_inflate_trees_fixed($this.$bl, $this.$bd, $this.$tl, $this.$td, $this.$z3); - cjj_InfCodes_init($this.$codes, $this.$bl.data[0], $this.$bd.data[0], $this.$tl.data[0], 0, $this.$td.data[0], 0); - $b = $b >>> 3; - $k = $k + (-3) | 0; - $this.$mode0 = 6; - break l; - case 2: - $b = $b >>> 3; - $k = $k + (-3) | 0; - $this.$mode0 = 3; - break l; - case 3: - $r = $b >>> 3; - var$10 = $k + (-3) | 0; - $this.$mode0 = 9; - $this.$z3.$msg = $rt_s(982); - $this.$bitb = $r; - $this.$bitk = var$10; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, (-3)); - default: - } - } - continue e; - } - while ($this.$index1 < (4 + ($this.$table >>> 10) | 0)) { - while ($k < 3) { - if (!$n) { - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, $r); - } - $r = 0; - $n = $n + (-1) | 0; - var$9 = $this.$z3.$next_in.data; - var$10 = $p + 1 | 0; - $b = $b | (var$9[$p] & 255) << $k; - $k = $k + 8 | 0; - $p = var$10; - } - var$14 = $this.$blens.data; - var$9 = cjj_InfBlocks_border.data; - var$10 = $this.$index1; - $this.$index1 = var$10 + 1 | 0; - var$14[var$9[var$10]] = $b & 7; - $b = $b >>> 3; - $k = $k + (-3) | 0; - } - while ($this.$index1 < 19) { - var$14 = $this.$blens.data; - var$9 = cjj_InfBlocks_border.data; - var$10 = $this.$index1; - $this.$index1 = var$10 + 1 | 0; - var$14[var$9[var$10]] = 0; - } - $this.$bb.data[0] = 7; - var$10 = cjj_InfTree_inflate_trees_bits($this.$inftree, $this.$blens, $this.$bb, $this.$tb, $this.$hufts, $this.$z3); - if (var$10) { - if (var$10 == (-3)) { - $this.$blens = null; - $this.$mode0 = 9; - } - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, var$10); - } - $this.$index1 = 0; - $this.$mode0 = 5; - } - while (true) { - var$10 = $this.$table; - if ($this.$index1 >= ((258 + (var$10 & 31) | 0) + (var$10 >> 5 & 31) | 0)) - break; - var$10 = $this.$bb.data[0]; - while ($k < var$10) { - if (!$n) { - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, $r); - } - $r = 0; - $n = $n + (-1) | 0; - var$9 = $this.$z3.$next_in.data; - $i = $p + 1 | 0; - $b = $b | (var$9[$p] & 255) << $k; - $k = $k + 8 | 0; - $p = $i; - } - var$10 = $this.$hufts.data[(($this.$tb.data[0] + ($b & cjj_InfBlocks_inflate_mask.data[var$10]) | 0) * 3 | 0) + 1 | 0]; - $c = $this.$hufts.data[(($this.$tb.data[0] + ($b & cjj_InfBlocks_inflate_mask.data[var$10]) | 0) * 3 | 0) + 2 | 0]; - $i = $rt_compare($c, 16); - if ($i < 0) { - $b = $b >>> var$10; - $k = $k - var$10 | 0; - var$9 = $this.$blens.data; - var$10 = $this.$index1; - $this.$index1 = var$10 + 1 | 0; - var$9[var$10] = $c; - } else { - $j = $rt_compare($c, 18); - $i_0 = !$j ? 7 : $c - 14 | 0; - $j = $j ? 3 : 11; - while ($k < (var$10 + $i_0 | 0)) { - if (!$n) { - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, $r); - } - $r = 0; - $n = $n + (-1) | 0; - var$9 = $this.$z3.$next_in.data; - $c = $p + 1 | 0; - $b = $b | (var$9[$p] & 255) << $k; - $k = $k + 8 | 0; - $p = $c; - } - $c = $b >>> var$10; - var$10 = $k - var$10 | 0; - $j = $j + ($c & cjj_InfBlocks_inflate_mask.data[$i_0]) | 0; - $b = $c >>> $i_0; - $k = var$10 - $i_0 | 0; - $m = $this.$index1; - $i_0 = $this.$table; - if (($m + $j | 0) > ((258 + ($i_0 & 31) | 0) + ($i_0 >> 5 & 31) | 0)) - break c; - if (!$i && $m < 1) - break c; - var$10 = $i ? 0 : $this.$blens.data[$m - 1 | 0]; - while (true) { - var$9 = $this.$blens.data; - $i = $m + 1 | 0; - var$9[$m] = var$10; - $j = $j + (-1) | 0; - if (!$j) - break; - $m = $i; - } - $this.$index1 = $i; - } - } - $this.$tb.data[0] = (-1); - $this.$bl.data[0] = 9; - $this.$bd.data[0] = 6; - var$10 = $this.$table; - var$10 = cjj_InfTree_inflate_trees_dynamic($this.$inftree, 257 + (var$10 & 31) | 0, 1 + (var$10 >> 5 & 31) | 0, $this.$blens, $this.$bl, $this.$bd, $this.$tli, $this.$tdi, $this.$hufts, $this.$z3); - if (var$10) { - if (var$10 == (-3)) { - $this.$blens = null; - $this.$mode0 = 9; - } - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, var$10); - } - cjj_InfCodes_init($this.$codes, $this.$bl.data[0], $this.$bd.data[0], $this.$hufts, $this.$tli.data[0], $this.$hufts, $this.$tdi.data[0]); - $this.$mode0 = 6; - } - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - $r = cjj_InfCodes_proc($this.$codes, $r); - if ($r != 1) - break e; - $r = 0; - cjj_InfCodes_free($this.$codes, $this.$z3); - $p = $this.$z3.$next_in_index; - $n = $this.$z3.$avail_in; - $b = $this.$bitb; - $k = $this.$bitk; - $q = $this.$write3; - $m = $q >= $this.$read3 ? $this.$end1 - $q | 0 : ($this.$read3 - $q | 0) - 1 | 0; - if ($this.$last) { - $this.$mode0 = 7; - break b; - } - $this.$mode0 = 0; - continue e; - } - if (!$n) { - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, $r); - } - if (!$m) { - if ($q == $this.$end1 && $this.$read3) { - $q = 0; - $m = $q >= $this.$read3 ? $this.$end1 - $q | 0 : ($this.$read3 - $q | 0) - 1 | 0; - } - if (!$m) { - $this.$write3 = $q; - $r = cjj_InfBlocks_inflate_flush($this, $r); - $q = $this.$write3; - $m = $q >= $this.$read3 ? $this.$end1 - $q | 0 : ($this.$read3 - $q | 0) - 1 | 0; - if ($q == $this.$end1 && $this.$read3) { - $q = 0; - $m = $q >= $this.$read3 ? $this.$end1 - $q | 0 : ($this.$read3 - $q | 0) - 1 | 0; - } - if (!$m) { - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, $r); - } - } - } - $r = 0; - var$10 = $this.$left; - if (var$10 > $n) - var$10 = $n; - if (var$10 > $m) - var$10 = $m; - jl_System_arraycopy($this.$z3.$next_in, $p, $this.$window, $q, var$10); - $p = $p + var$10 | 0; - $n = $n - var$10 | 0; - $q = $q + var$10 | 0; - $m = $m - var$10 | 0; - var$10 = $this.$left - var$10 | 0; - $this.$left = var$10; - if (var$10) - continue; - $this.$mode0 = !$this.$last ? 0 : 7; - } - return cjj_InfBlocks_inflate_flush($this, $r); - } - $this.$mode0 = 9; - $this.$z3.$msg = $rt_s(983); - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, (-3)); - } - $this.$blens = null; - $this.$mode0 = 9; - $this.$z3.$msg = $rt_s(984); - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, (-3)); - } - $this.$write3 = $q; - $r = cjj_InfBlocks_inflate_flush($this, $r); - $q = $this.$write3; - if ($this.$read3 != $this.$write3) { - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, $r); - } - $this.$mode0 = 8; - } - $this.$bitb = $b; - $this.$bitk = $k; - $this.$z3.$avail_in = $n; - var$8 = $this.$z3; - var$8.$total_in = Long_add(var$8.$total_in, Long_fromInt($p - $this.$z3.$next_in_index | 0)); - $this.$z3.$next_in_index = $p; - $this.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this, 1); -} -function cjj_InfBlocks_free($this) { - cjj_InfBlocks_reset($this); - $this.$window = null; - $this.$hufts = null; -} -function cjj_InfBlocks_inflate_flush($this, $r) { - var $p, $q, $n, var$5, var$6; - $p = $this.$z3.$next_out_index; - $q = $this.$read3; - $n = ($q > $this.$write3 ? $this.$end1 : $this.$write3) - $q | 0; - if ($n > $this.$z3.$avail_out) - $n = $this.$z3.$avail_out; - if ($n && $r == (-5)) - $r = 0; - var$5 = $this.$z3; - var$5.$avail_out = var$5.$avail_out - $n | 0; - var$5 = $this.$z3; - var$5.$total_out = Long_add(var$5.$total_out, Long_fromInt($n)); - if ($this.$check && $n > 0) - $this.$z3.$adler.$update($this.$window, $q, $n); - jl_System_arraycopy($this.$window, $q, $this.$z3.$next_out, $p, $n); - $p = $p + $n | 0; - var$6 = $q + $n | 0; - if (var$6 == $this.$end1) { - if ($this.$write3 == $this.$end1) - $this.$write3 = 0; - $q = $this.$write3 - 0 | 0; - if ($q > $this.$z3.$avail_out) - $q = $this.$z3.$avail_out; - if ($q && $r == (-5)) - $r = 0; - var$5 = $this.$z3; - var$5.$avail_out = var$5.$avail_out - $q | 0; - var$5 = $this.$z3; - var$5.$total_out = Long_add(var$5.$total_out, Long_fromInt($q)); - if ($this.$check && $q > 0) - $this.$z3.$adler.$update($this.$window, 0, $q); - jl_System_arraycopy($this.$window, 0, $this.$z3.$next_out, $p, $q); - $p = $p + $q | 0; - var$6 = 0 + $q | 0; - } - $this.$z3.$next_out_index = $p; - $this.$read3 = var$6; - return $r; -} -function cjj_InfBlocks__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(17); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 1; - var$2[2] = 3; - var$2[3] = 7; - var$2[4] = 15; - var$2[5] = 31; - var$2[6] = 63; - var$2[7] = 127; - var$2[8] = 255; - var$2[9] = 511; - var$2[10] = 1023; - var$2[11] = 2047; - var$2[12] = 4095; - var$2[13] = 8191; - var$2[14] = 16383; - var$2[15] = 32767; - var$2[16] = 65535; - cjj_InfBlocks_inflate_mask = var$1; - var$1 = $rt_createIntArray(19); - var$2 = var$1.data; - var$2[0] = 16; - var$2[1] = 17; - var$2[2] = 18; - var$2[3] = 0; - var$2[4] = 8; - var$2[5] = 7; - var$2[6] = 9; - var$2[7] = 6; - var$2[8] = 10; - var$2[9] = 5; - var$2[10] = 11; - var$2[11] = 4; - var$2[12] = 12; - var$2[13] = 3; - var$2[14] = 13; - var$2[15] = 2; - var$2[16] = 14; - var$2[17] = 1; - var$2[18] = 15; - cjj_InfBlocks_border = var$1; -} -function ju_HashMap$2() { - ju_AbstractCollection.call(this); - this.$this$00 = null; -} -function ju_HashMap$2_size($this) { - return $this.$this$00.$elementCount; -} -function ju_HashMap$2_iterator($this) { - var var$1, var$2; - var$1 = new ju_HashMap$ValueIterator; - var$2 = $this.$this$00; - var$1.$associatedMap0 = var$2; - var$1.$expectedModCount = var$2.$modCount1; - var$1.$futureEntry = null; - return var$1; -} -function jl_Long() { - jl_Number.call(this); - this.$value2 = Long_ZERO; -} -var jl_Long_TYPE = null; -function jl_Long_valueOf($value) { - var var$2; - var$2 = new jl_Long; - var$2.$value2 = $value; - return var$2; -} -function jl_Long_longValue($this) { - return $this.$value2; -} -function jl_Long_toString($this) { - var var$1, var$2; - var$1 = $this.$value2; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert1(var$2, var$2.$length, var$1, 10); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -} -function jl_Long_hashCode($this) { - var var$1; - var$1 = $this.$value2; - return var$1.lo ^ var$1.hi; -} -function jl_Long_equals($this, $other) { - if ($this === $other) - return 1; - return $other instanceof jl_Long && Long_eq($other.$value2, $this.$value2) ? 1 : 0; -} -function jl_Long_compareTo($this, $other) { - return Long_compare($this.$value2, $other.$value2); -} -function jl_Long_numberOfLeadingZeros($i) { - var $n, var$3; - if (Long_eq($i, Long_ZERO)) - return 64; - $n = 0; - var$3 = Long_shru($i, 32); - if (Long_ne(var$3, Long_ZERO)) - $n = 32; - else - var$3 = $i; - $i = Long_shru(var$3, 16); - if (Long_eq($i, Long_ZERO)) - $i = var$3; - else - $n = $n | 16; - var$3 = Long_shru($i, 8); - if (Long_eq(var$3, Long_ZERO)) - var$3 = $i; - else - $n = $n | 8; - $i = Long_shru(var$3, 4); - if (Long_eq($i, Long_ZERO)) - $i = var$3; - else - $n = $n | 4; - var$3 = Long_shru($i, 2); - if (Long_eq(var$3, Long_ZERO)) - var$3 = $i; - else - $n = $n | 2; - if (Long_ne(Long_shru(var$3, 1), Long_ZERO)) - $n = $n | 1; - return (64 - $n | 0) - 1 | 0; -} -function jl_Long_divideUnsigned(var$1, var$2) { - return Long_udiv(var$1, var$2); -} -function jl_Long_remainderUnsigned(var$1, var$2) { - return Long_urem(var$1, var$2); -} -function jl_Long_compareTo0($this, var$1) { - var$1 = var$1; - return Long_compare($this.$value2, var$1.$value2); -} -function jl_Long__clinit_() { - jl_Long_TYPE = $rt_cls($rt_longcls()); -} -function nle_DefaultSkinRenderer() { - jl_Object.call(this); -} -var nle_DefaultSkinRenderer_defaultVanillaSkins = null; -var nle_DefaultSkinRenderer_skinCookies = null; -var nle_DefaultSkinRenderer_skinGLUnits = null; -var nle_DefaultSkinRenderer_skinGLTimeout = null; -var nle_DefaultSkinRenderer_lastClean = Long_ZERO; -var nle_DefaultSkinRenderer_oldSkinRenderer = null; -var nle_DefaultSkinRenderer_newSkinRenderer = null; -var nle_DefaultSkinRenderer_zombieRenderer = null; -var nle_DefaultSkinRenderer_villagerRenderer = null; -var nle_DefaultSkinRenderer_endermanRenderer = null; -var nle_DefaultSkinRenderer_blazeRenderer = null; -var nle_DefaultSkinRenderer_skeletonRenderer = null; -function nle_DefaultSkinRenderer__init_0() { - var var_0 = new nle_DefaultSkinRenderer(); - nle_DefaultSkinRenderer__init_(var_0); - return var_0; -} -function nle_DefaultSkinRenderer__init_($this) { - return; -} -function nle_DefaultSkinRenderer_deleteOldSkins() { - var $e, $itr, $ee, $itr2, var$5; - a: { - if (Long_gt(Long_sub(jl_System_currentTimeMillis(), nle_DefaultSkinRenderer_lastClean), Long_fromInt(60000))) { - nle_DefaultSkinRenderer_lastClean = jl_System_currentTimeMillis(); - $e = nle_DefaultSkinRenderer_skinGLTimeout; - $itr = new ju_HashMap$EntryIterator; - $itr.$associatedMap0 = $e; - $itr.$expectedModCount = $e.$modCount1; - $itr.$futureEntry = null; - while (ju_HashMap$AbstractMapIterator_hasNext($itr)) { - ju_HashMap$AbstractMapIterator_makeNext($itr); - $ee = $itr.$currentEntry; - if (Long_gt(Long_sub(jl_System_currentTimeMillis(), $ee.$value0.$value2), Long_fromInt(80000))) { - ju_HashMap$AbstractMapIterator_remove($itr); - $itr2 = nmc_Minecraft_theMinecraft.$renderEngine; - $e = ju_HashMap_removeEntry(nle_DefaultSkinRenderer_skinGLUnits, $ee.$key); - var$5 = ($e === null ? null : $e.$value0).$value; - nms_IntHashMap_removeObject($itr2.$textureNameToImageMap, var$5); - nleg_EaglerAdapterGL30_$callClinit(); - $e = nleg_GLObjectMap_free(nleg_EaglerAdapterGL30_texObjects, var$5); - nlea_EaglerAdapterImpl2_$callClinit(); - $ee = nlea_EaglerAdapterImpl2_webgl; - $e = $e.$obj; - $ee.deleteTexture($e); - } - } - $e = nle_DefaultSkinRenderer_skinCookies; - $itr2 = new ju_HashMap$EntryIterator; - $itr2.$associatedMap0 = $e; - $itr2.$expectedModCount = $e.$modCount1; - $itr2.$futureEntry = null; - while (true) { - if (!ju_HashMap$AbstractMapIterator_hasNext($itr2)) - break a; - ju_HashMap$AbstractMapIterator_makeNext($itr2); - if ($itr2.$currentEntry.$value0.$isDead) - ju_HashMap$AbstractMapIterator_remove($itr2); - } - } - } -} -function nle_DefaultSkinRenderer_bindSyncedSkin($p) { - var $pp, $cookie, $n, $h, $pkt, $skinToLoad, $i, $w, var$10; - if ($p instanceof nms_EntityClientPlayerMP) - return 0; - if (!($p instanceof nms_EntityOtherPlayerMP)) - return 0; - $pp = $p; - if ($pp.$skinPacket === null) { - if (!ju_HashMap_containsValue(nle_DefaultSkinRenderer_skinCookies, $pp)) { - $cookie = Long_rem(Long_fromNumber(performance.now() * 1000000.0), Long_fromInt(65536)).lo; - ju_HashMap_putImpl(nle_DefaultSkinRenderer_skinCookies, jl_Integer_valueOf($cookie), $pp); - $p = $pp.$username0; - $pp = new jnci_UTF8Charset; - jnc_Charset__init_($pp, $rt_s(2), $rt_createArray(jl_String, 0)); - $n = jl_String_getBytes0($p, $pp); - $h = $n.data.length; - $pkt = $rt_createByteArray($h + 2 | 0); - $skinToLoad = $pkt.data; - jl_System_arraycopy($n, 0, $pkt, 2, $h); - $skinToLoad[0] = ($cookie & 255) << 24 >> 24; - $skinToLoad[1] = ($cookie >> 8 & 255) << 24 >> 24; - $pp = nmc_Minecraft_theMinecraft; - $i = $pp.$thePlayer === null ? null : $pp.$thePlayer.$sendQueue; - $p = nms_Packet250CustomPayload__init_0($rt_s(985), $pkt); - if (!$i.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($i.$netManager, $p); - } - return 0; - } - if (($pp.$skinPacket.data[0] & 255) < 4) { - $p = nle_DefaultSkinRenderer_skinGLUnits; - $h = $pp.$entityId; - if (!(ju_HashMap_findNonNullKeyEntry($p, $pp, $h & ($p.$elementData.data.length - 1 | 0), $h) === null ? 0 : 1)) { - a: { - b: { - $skinToLoad = $rt_createByteArray($pp.$skinPacket.data.length - 1 | 0); - $n = $skinToLoad.data; - jl_System_arraycopy($pp.$skinPacket, 1, $skinToLoad, 0, $n.length); - switch ($pp.$skinPacket.data[0] & 255) { - 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; - } - ju_HashMap_putImpl(nle_DefaultSkinRenderer_skinGLUnits, $pp, jl_Integer_valueOf(nms_RenderEngine_setupTextureRaw(nmc_Minecraft_theMinecraft.$renderEngine, $skinToLoad, $w, $h))); - } - $p = nle_DefaultSkinRenderer_skinGLTimeout; - var$10 = jl_System_currentTimeMillis(); - $i = new jl_Long; - $i.$value2 = var$10; - ju_HashMap_putImpl($p, $pp, $i); - $p = nle_DefaultSkinRenderer_skinGLUnits; - $h = $pp.$entityId; - $p = ju_HashMap_findNonNullKeyEntry($p, $pp, $h & ($p.$elementData.data.length - 1 | 0), $h); - $i = $p === null ? null : $p.$value0; - if ($i !== null && $i.$value > 0) { - $p = nmc_Minecraft_theMinecraft.$renderEngine; - $h = $i.$value; - if ($h != $p.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - $pp = nleg_EaglerAdapterGL30_texObjects; - $pp = $h < $pp.$size3 && $h >= 0 ? $pp.$values.data[$h] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - $i = nlea_EaglerAdapterImpl2_webgl; - $pp = $pp !== null ? $pp.$obj : null; - $i.bindTexture(3553, $pp); - $p.$boundTexture = $h; - } - } else - nle_TextureLocation_bindTexture(nle_DefaultSkinRenderer_defaultVanillaSkins.data[0]); - } else if (($pp.$skinPacket.data[1] & 255) < nle_DefaultSkinRenderer_defaultVanillaSkins.data.length) - nle_TextureLocation_bindTexture(nle_DefaultSkinRenderer_defaultVanillaSkins.data[$pp.$skinPacket.data[1] & 255]); - return 1; -} -function nle_DefaultSkinRenderer_skinResponse($data) { - var $packet, $cookie, $p, var$5, var$6, var$7; - $packet = $data.data; - $cookie = $packet[0] & 255 | ($packet[1] & 255) << 8; - $p = nle_DefaultSkinRenderer_skinCookies; - var$5 = jl_Integer_valueOf($cookie); - if (var$5 !== null) { - var$6 = jl_Integer_hashCode(var$5); - $p = ju_HashMap_findNonNullKeyEntry($p, var$5, var$6 & ($p.$elementData.data.length - 1 | 0), var$6); - } else { - $p = $p.$elementData.data[0]; - while ($p !== null && $p.$key !== null) { - $p = $p.$next1; - } - } - if ($p === null ? 0 : 1) { - var$7 = $packet.length; - if (var$7 > 3) { - $p = ju_HashMap_removeEntry(nle_DefaultSkinRenderer_skinCookies, jl_Integer_valueOf($cookie)); - $p = $p === null ? null : $p.$value0; - $packet = $rt_createByteArray(var$7 - 2 | 0); - jl_System_arraycopy($data, 2, $packet, 0, $packet.data.length); - $p.$skinPacket = $packet; - } - } -} -function nle_DefaultSkinRenderer_isNewSkin($id) { - a: { - b: { - if (!$id) - break b; - if ($id == 2) - break b; - if ($id == 4) - break b; - if ($id == 6) - break b; - if ($id == 8) - break b; - if ($id == 10) - break b; - if ($id == 12) - break b; - if ($id == 14) - break b; - if ($id == 18) - break b; - if ($id != 28) { - $id = 1; - break a; - } - } - $id = 0; - } - return $id; -} -function nle_DefaultSkinRenderer_isStandardModel($id) { - var var$2; - var$2 = $id != 18 && $id != 28 ? 0 : 1; - return !var$2 && $id != 19 && $id != 20 && $id != 21 && $id != 32 && $id != 33 && $id != 34 ? 1 : 0; -} -function nle_DefaultSkinRenderer_isZombieModel($id) { - return $id != 18 && $id != 28 ? 0 : 1; -} -function nle_DefaultSkinRenderer_isPlayerNewSkin($p) { - var $pp, $type; - if (!($p instanceof nms_EntityClientPlayerMP)) { - if ($p instanceof nms_EntityOtherPlayerMP) { - $pp = $p; - if ($pp.$skinPacket !== null) { - if ($pp.$skinPacket.data[0] >= 4) - return nle_DefaultSkinRenderer_isNewSkin($pp.$skinPacket.data[1] & 255); - return $pp.$skinPacket.data[0] != 1 && $pp.$skinPacket.data[0] != 3 ? 0 : 1; - } - } - return 0; - } - nle_EaglerProfile_$callClinit(); - if (nle_EaglerProfile_presetSkinId != (-1)) - return nle_DefaultSkinRenderer_isNewSkin(nle_EaglerProfile_presetSkinId); - $p = nle_EaglerProfile_skinDatas; - $type = nle_EaglerProfile_customSkinId; - if ($type >= 0 && $type < $p.$size0) { - $type = nle_EaglerProfile_getSkinSize($p.$array1.data[$type].data.length); - return $type != 1 && $type != 3 ? 0 : 1; - } - $p = new jl_IndexOutOfBoundsException; - $p.$suppressionEnabled = 1; - $p.$writableStackTrace = 1; - $rt_throw($p); -} -function nle_DefaultSkinRenderer_isPlayerStandard($p) { - var $pp; - if ($p instanceof nms_EntityClientPlayerMP) { - nle_EaglerProfile_$callClinit(); - if (nle_EaglerProfile_presetSkinId == (-1)) - return 1; - return nle_DefaultSkinRenderer_isStandardModel(nle_EaglerProfile_presetSkinId); - } - if ($p instanceof nms_EntityOtherPlayerMP) { - $pp = $p; - if ($pp.$skinPacket !== null) { - if ($pp.$skinPacket.data[0] < 4) - return 1; - return nle_DefaultSkinRenderer_isStandardModel($pp.$skinPacket.data[1] & 255); - } - } - return 1; -} -function nle_DefaultSkinRenderer_getPlayerRenderer($p) { - var $pp; - if ($p instanceof nms_EntityClientPlayerMP) { - nle_EaglerProfile_$callClinit(); - if (nle_EaglerProfile_presetSkinId != (-1)) - return nle_EaglerProfile_presetSkinId; - return 0; - } - if ($p instanceof nms_EntityOtherPlayerMP) { - $pp = $p; - if ($pp.$skinPacket !== null) { - if ($pp.$skinPacket.data[0] < 4) - return 0; - return $pp.$skinPacket.data[1] & 255; - } - } - return 0; -} -function nle_DefaultSkinRenderer_renderPlayerPreview($x, $y, $mx, $my, $id2) { - var $id, var$7, var$8, var$9, var$10, var$11, $isNew, $type; - nle_EaglerProfile_$callClinit(); - $id = $id2 - ju_ArrayList_size(nle_EaglerProfile_skinNames) | 0; - nleg_EaglerAdapterGL30_glEnable(2); - nms_RenderHelper_enableStandardItemLighting(); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef($x, $y - 80 | 0, 100.0); - nleg_EaglerAdapterGL30_glScalef(50.0, 50.0, 50.0); - nleg_EaglerAdapterGL30_glRotatef(180.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glScalef(1.0, (-1.0), 1.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 1.0, 0.0); - var$7 = $y - $my | 0; - nleg_EaglerAdapterGL30_glRotatef(var$7 * (-0.05999999865889549), 1.0, 0.0, 0.0); - var$8 = ($x - $mx | 0) * 0.05999999865889549; - nleg_EaglerAdapterGL30_glRotatef(var$8, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-1.0), 0.0); - if ($id >= 0) - nle_TextureLocation_bindTexture(nle_DefaultSkinRenderer_defaultVanillaSkins.data[$id]); - else - nms_RenderEngine_bindTexture0(nmc_Minecraft_getMinecraft().$renderEngine, jl_Integer_intValue(ju_ArrayList_get(nle_EaglerProfile_glTex, $id2))); - if (!nle_DefaultSkinRenderer_isStandardModel($id) && $id >= 0) { - if (nle_DefaultSkinRenderer_isZombieModel($id)) { - if (nle_DefaultSkinRenderer_zombieRenderer === null) - nle_DefaultSkinRenderer_zombieRenderer = nms_ModelZombie__init_0(0.0, 1); - nle_DefaultSkinRenderer_zombieRenderer.$isChild0 = 0; - nms_ModelBiped_render(nle_DefaultSkinRenderer_zombieRenderer, null, 0.0, 0.0, Long_toNumber(Long_rem(jl_System_currentTimeMillis(), Long_fromInt(100000))) / 50.0, var$8, var$7 * (-0.10000000149011612), 0.0625); - } else if ($id == 32) { - if (nle_DefaultSkinRenderer_villagerRenderer === null) - nle_DefaultSkinRenderer_villagerRenderer = nms_ModelVillager__init_(0.0); - nle_DefaultSkinRenderer_villagerRenderer.$isChild0 = 0; - nms_ModelVillager_render(nle_DefaultSkinRenderer_villagerRenderer, null, 0.0, 0.0, Long_toNumber(Long_rem(jl_System_currentTimeMillis(), Long_fromInt(100000))) / 50.0, var$8, var$7 * (-0.10000000149011612), 0.0625); - } else if ($id == 19) { - if (nle_DefaultSkinRenderer_endermanRenderer === null) - nle_DefaultSkinRenderer_endermanRenderer = nms_ModelEnderman__init_0(); - nle_DefaultSkinRenderer_endermanRenderer.$isChild0 = 0; - var$9 = nle_DefaultSkinRenderer_endermanRenderer; - var$10 = null; - var$11 = Long_toNumber(Long_rem(jl_System_currentTimeMillis(), Long_fromInt(100000))) / 50.0; - var$7 = var$7 * (-0.10000000149011612); - nms_ModelBiped_render(var$9, var$10, 0.0, 0.0, var$11, var$8, var$7, 0.0625); - nleg_EaglerAdapterGL30_glColor4f(1.399999976158142, 1.399999976158142, 1.399999976158142, 1.0); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glDisable(4); - nle_TextureLocation_bindTexture(nms_RenderEnderman_tex_eyes); - nms_ModelBiped_render(nle_DefaultSkinRenderer_endermanRenderer, null, 0.0, 0.0, Long_toNumber(Long_rem(jl_System_currentTimeMillis(), Long_fromInt(100000))) / 50.0, var$8, var$7, 0.0625); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glEnable(4); - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - } else if ($id == 20) { - if (nle_DefaultSkinRenderer_skeletonRenderer === null) - nle_DefaultSkinRenderer_skeletonRenderer = nms_ModelSkeleton__init_0(0.0); - nle_DefaultSkinRenderer_skeletonRenderer.$isChild0 = 0; - nms_ModelBiped_render(nle_DefaultSkinRenderer_skeletonRenderer, null, 0.0, 0.0, Long_toNumber(Long_rem(jl_System_currentTimeMillis(), Long_fromInt(100000))) / 50.0, var$8, var$7 * (-0.10000000149011612), 0.0625); - } else if ($id == 21) { - if (nle_DefaultSkinRenderer_blazeRenderer === null) - nle_DefaultSkinRenderer_blazeRenderer = nms_ModelBlaze__init_0(); - nle_DefaultSkinRenderer_blazeRenderer.$isChild0 = 0; - nleg_EaglerAdapterGL30_glColor4f(1.5, 1.5, 1.5, 1.0); - nms_ModelBlaze_render(nle_DefaultSkinRenderer_blazeRenderer, null, 0.0, 0.0, Long_toNumber(Long_rem(jl_System_currentTimeMillis(), Long_fromInt(100000))) / 50.0, var$8, var$7 * (-0.10000000149011612), 0.0625); - } - } else { - if (nle_DefaultSkinRenderer_oldSkinRenderer === null) - nle_DefaultSkinRenderer_oldSkinRenderer = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - if (nle_DefaultSkinRenderer_newSkinRenderer === null) - nle_DefaultSkinRenderer_newSkinRenderer = nle_ModelBipedNewSkins__init_(0.0, 0); - nle_DefaultSkinRenderer_newSkinRenderer.$isChild0 = 0; - nle_DefaultSkinRenderer_oldSkinRenderer.$isChild0 = 0; - $isNew = nle_DefaultSkinRenderer_isNewSkin($id); - if ($id < 0) { - $type = nle_EaglerProfile_getSkinSize(ju_ArrayList_get(nle_EaglerProfile_skinDatas, $id2).data.length); - $isNew = $type != 1 && $type != 3 ? 0 : 1; - } - if (!$isNew) - nms_ModelBiped_render(nle_DefaultSkinRenderer_oldSkinRenderer, null, 0.0, 0.0, Long_toNumber(Long_rem(jl_System_currentTimeMillis(), Long_fromInt(100000))) / 50.0, var$8, var$7 * (-0.10000000149011612), 0.0625); - else - nle_ModelBipedNewSkins_render(nle_DefaultSkinRenderer_newSkinRenderer, null, 0.0, 0.0, Long_toNumber(Long_rem(jl_System_currentTimeMillis(), Long_fromInt(100000))) / 50.0, var$8, var$7 * (-0.10000000149011612), 0.0625); - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(41); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glDisable(2); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_defaultTexUnit); - nleg_EaglerAdapterGL30_glDisable(13); -} -function nle_DefaultSkinRenderer__clinit_() { - var var$1, var$2, var$3; - var$1 = $rt_createArray(nle_TextureLocation, 35); - var$2 = var$1.data; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(986); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[0] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(987); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[1] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(988); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[2] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(989); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[3] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(990); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[4] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(991); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[5] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(992); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[6] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(993); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[7] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(994); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[8] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(995); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[9] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(996); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[10] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(997); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[11] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(998); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[12] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(999); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[13] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(1000); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[14] = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(1001); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2[15] = var$3; - var$2[16] = nle_TextureLocation__init_($rt_s(1002)); - var$2[17] = nle_TextureLocation__init_($rt_s(1003)); - var$2[18] = nle_TextureLocation__init_($rt_s(1004)); - var$2[19] = nle_TextureLocation__init_($rt_s(1005)); - var$2[20] = nle_TextureLocation__init_($rt_s(1006)); - var$2[21] = nle_TextureLocation__init_($rt_s(1007)); - var$2[22] = nle_TextureLocation__init_($rt_s(1008)); - var$2[23] = nle_TextureLocation__init_($rt_s(1009)); - var$2[24] = nle_TextureLocation__init_($rt_s(1010)); - var$2[25] = nle_TextureLocation__init_($rt_s(1011)); - var$2[26] = nle_TextureLocation__init_($rt_s(1012)); - var$2[27] = nle_TextureLocation__init_($rt_s(1013)); - var$2[28] = nle_TextureLocation__init_($rt_s(1014)); - var$2[29] = nle_TextureLocation__init_($rt_s(1015)); - var$2[30] = nle_TextureLocation__init_($rt_s(1016)); - var$2[31] = nle_TextureLocation__init_($rt_s(1017)); - var$2[32] = nle_TextureLocation__init_($rt_s(1018)); - var$2[33] = nle_TextureLocation__init_($rt_s(1019)); - var$2[34] = nle_TextureLocation__init_($rt_s(1020)); - nle_DefaultSkinRenderer_defaultVanillaSkins = var$1; - nle_DefaultSkinRenderer_skinCookies = ju_HashMap__init_0(); - nle_DefaultSkinRenderer_skinGLUnits = ju_HashMap__init_0(); - nle_DefaultSkinRenderer_skinGLTimeout = ju_HashMap__init_0(); - nle_DefaultSkinRenderer_lastClean = Long_ZERO; - nle_DefaultSkinRenderer_oldSkinRenderer = null; - nle_DefaultSkinRenderer_newSkinRenderer = null; - nle_DefaultSkinRenderer_zombieRenderer = null; - nle_DefaultSkinRenderer_villagerRenderer = null; - nle_DefaultSkinRenderer_endermanRenderer = null; - nle_DefaultSkinRenderer_blazeRenderer = null; - nle_DefaultSkinRenderer_skeletonRenderer = null; -} -function nle_GuiScreenVoiceChannel() { - var a = this; nms_GuiScreen.call(a); - a.$screenTitle1 = null; - a.$parent0 = null; - a.$channel = null; - a.$done = null; - a.$connect = null; - a.$disconnect = null; - a.$slider = null; -} -var nle_GuiScreenVoiceChannel_tex_gui = null; -var nle_GuiScreenVoiceChannel_connectedUsers = null; -var nle_GuiScreenVoiceChannel_talkingUsers = null; -var nle_GuiScreenVoiceChannel_voiceActive = 0; -var nle_GuiScreenVoiceChannel_voiceRelayed = 0; -var nle_GuiScreenVoiceChannel_fadeInTimer = Long_ZERO; -function nle_GuiScreenVoiceChannel_initGui($this) { - var $var1, var$2, var$3, var$4; - $var1 = nms_StringTranslate_instance; - $this.$screenTitle1 = nms_StringTranslate_translateKey($var1, $rt_s(1021)); - $this.$channel = nms_GuiTextField__init_($this.$fontRenderer0, ($this.$width0 / 2 | 0) - 98 | 0, ($this.$height0 / 6 | 0) + 24 | 0, 195, 20); - var$2 = $this.$channel; - nle_EaglerProfile_$callClinit(); - nms_GuiTextField_setText(var$2, nle_EaglerProfile_myChannel); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - var$3 = $this.$buttonList; - var$4 = nms_GuiButton__init_(200, ($this.$width0 / 2 | 0) - 100 | 0, ($this.$height0 / 6 | 0) + 148 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(436))); - $this.$done = var$4; - ju_ArrayList_add(var$3, var$4); - var$3 = $this.$buttonList; - var$4 = nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, ($this.$height0 / 6 | 0) + 52 | 0, 99, 20, nms_StringTranslate_translateKey($var1, $rt_s(1022))); - $this.$connect = var$4; - ju_ArrayList_add(var$3, var$4); - var$2 = $this.$buttonList; - var$3 = nms_GuiButton__init_(2, ($this.$width0 / 2 | 0) + 1 | 0, ($this.$height0 / 6 | 0) + 52 | 0, 99, 20, nms_StringTranslate_translateKey($var1, $rt_s(1023))); - $this.$disconnect = var$3; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$buttonList; - var$3 = nms_GuiSlider2__init_(3, ($this.$width0 / 2 | 0) - 100 | 0, ($this.$height0 / 6 | 0) + 103 | 0, 200, 20, 0.5, 2.0); - $this.$slider = var$3; - ju_ArrayList_add(var$2, var$3); -} -function nle_GuiScreenVoiceChannel_onGuiClosed($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; -} -function nle_GuiScreenVoiceChannel_drawScreen($this, $mx, $my, $par3) { - var $var1, var$5, var$6, var$7, var$8; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - $var1 = nms_StringTranslate_instance; - var$5 = $this.$fontRenderer0; - var$6 = $this.$screenTitle1; - nms_FontRenderer_drawString(var$5, var$6, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$5, var$6) / 2 | 0) | 0, 15, 16777215, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var1, $rt_s(1024)), ($this.$width0 / 2 | 0) - 98 | 0, ($this.$height0 / 6 | 0) + 8 | 0, 10526880, 1); - if (!nle_GuiScreenVoiceChannel_voiceRelayed) { - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var1, $rt_s(1025)), ($this.$width0 / 2 | 0) - 98 | 0, ($this.$height0 / 6 | 0) + 89 | 0, 10526880, 1); - $this.$slider.$yPosition = ($this.$height0 / 6 | 0) + 103 | 0; - $this.$done.$yPosition = ($this.$height0 / 6 | 0) + 148 | 0; - } else { - var$5 = $this.$fontRenderer0; - var$6 = nms_StringTranslate_translateKey($var1, $rt_s(1026)); - var$7 = $this.$width0 / 2 | 0; - var$8 = ($this.$height0 / 6 | 0) + 125 | 0; - nms_FontRenderer_drawString(var$5, var$6, var$7 - (nms_FontRenderer_getStringWidth(var$5, var$6) / 2 | 0) | 0, var$8, 16764108, 1); - var$5 = $this.$fontRenderer0; - var$6 = nms_StringTranslate_translateKey($var1, $rt_s(1027)); - var$7 = $this.$width0 / 2 | 0; - var$8 = ($this.$height0 / 6 | 0) + 136 | 0; - nms_FontRenderer_drawString(var$5, var$6, var$7 - (nms_FontRenderer_getStringWidth(var$5, var$6) / 2 | 0) | 0, var$8, 16764108, 1); - var$5 = $this.$fontRenderer0; - var$6 = nms_StringTranslate_translateKey($var1, $rt_s(1028)); - var$7 = $this.$width0 / 2 | 0; - var$8 = ($this.$height0 / 6 | 0) + 147 | 0; - nms_FontRenderer_drawString(var$5, var$6, var$7 - (nms_FontRenderer_getStringWidth(var$5, var$6) / 2 | 0) | 0, var$8, 16764108, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var1, $rt_s(1025)), ($this.$width0 / 2 | 0) - 98 | 0, ($this.$height0 / 6 | 0) + 81 | 0, 10526880, 1); - $this.$slider.$yPosition = ($this.$height0 / 6 | 0) + 95 | 0; - $this.$done.$yPosition = ($this.$height0 / 6 | 0) + 168 | 0; - } - var$7 = 0; - a: { - while (var$7 < $this.$buttonList.$size0) { - var$5 = $this.$buttonList; - if (var$7 < 0) - break a; - if (var$7 >= var$5.$size0) - break a; - var$5.$array1.data[var$7].$drawButton($this.$mc4, $mx, $my); - var$7 = var$7 + 1 | 0; - } - nms_GuiTextField_drawTextBox($this.$channel); - return; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); -} -function nle_GuiScreenVoiceChannel_actionPerformed($this, $par1GuiButton) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$id2 != 200) { - if ($par1GuiButton.$id2 == 1) { - nlea_EaglerAdapterImpl2_$callClinit(); - alert("voice channels are not implemented yet"); - nlea_EaglerAdapterImpl2_connected = 1; - } else if ($par1GuiButton.$id2 == 2) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_connected = 0; - } - return; - } - $par1GuiButton = $this.$mc4; - var$2 = $this.$parent0; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, $ptr); -} -function nle_GuiScreenVoiceChannel_updateScreen($this) { - var var$1; - var$1 = $this.$channel; - var$1.$cursorCounter = var$1.$cursorCounter + 1 | 0; - $this.$connect.$enabled = nle_GuiScreenVoiceChannel_voiceActive ? 0 : 1; - $this.$disconnect.$enabled = nle_GuiScreenVoiceChannel_voiceActive; - $this.$channel.$isEnabled = nle_GuiScreenVoiceChannel_voiceActive ? 0 : 1; - $this.$slider.$enabled = nle_GuiScreenVoiceChannel_voiceActive; -} -function nle_GuiScreenVoiceChannel_keyTyped($this, $par1, $par2) { - nms_GuiTextField_textboxKeyTyped($this.$channel, $par1, $par2); -} -function nle_GuiScreenVoiceChannel_mouseClicked($this, $par1, $par2, $par3) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $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: - nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - nms_GuiTextField_mouseClicked($this.$channel, $par1, $par2, $par3); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $ptr); -} -function nle_GuiScreenVoiceChannel_tickVoiceConnection() { - nlea_EaglerAdapterImpl2_$callClinit(); - nle_GuiScreenVoiceChannel_voiceActive = nlea_EaglerAdapterImpl2_connected; - if (!nle_GuiScreenVoiceChannel_voiceActive) - nle_GuiScreenVoiceChannel_voiceRelayed = 0; - else { - nle_GuiScreenVoiceChannel_voiceRelayed = nlea_EaglerAdapterImpl2_connected; - nle_GuiScreenVoiceChannel_connectedUsers = $rt_createArray(jl_String, 0); - nle_GuiScreenVoiceChannel_talkingUsers = $rt_createArray(jl_String, 0); - ju_Arrays_sort(nle_GuiScreenVoiceChannel_talkingUsers, new ju_Arrays$NaturalOrder); - ju_Arrays_sort(nle_GuiScreenVoiceChannel_connectedUsers, new ju_Arrays$NaturalOrder); - } -} -function nle_GuiScreenVoiceChannel_drawOverlay() { - var $mc, $res, $i, $titleScreen, $width, $line2, $ll1, $ll2, var$9, $wid, $i_0, $isTalking, var$13, $sw, var$15, $j, $sw_0, $wid_0, $i_1, var$20, $b; - $mc = nmc_Minecraft_getMinecraft(); - if (Long_lt(Long_sub(jl_System_currentTimeMillis(), nle_GuiScreenVoiceChannel_fadeInTimer), Long_fromInt(1500))) { - $res = nms_ScaledResolution__init_($mc.$gameSettings, $mc.$displayWidth, $mc.$displayHeight); - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glDisable(4); - nleg_EaglerAdapterGL30_glDepthMask(0); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - $i = 1.0 / (Long_toNumber(Long_sub(jl_System_currentTimeMillis(), nle_GuiScreenVoiceChannel_fadeInTimer)) / 600.0 + 1.0); - $i = $i * $i * 1.0800000429153442 - 0.07999999821186066; - if ($i < 0.0) - $i = 0.0; - nms_Gui_drawRect(0, 0, nms_ScaledResolution_getScaledWidth($res), nms_ScaledResolution_getScaledHeight($res), ($i * 255.0 | 0) << 24 | 16777215); - nleg_EaglerAdapterGL30_glEnable(6); - if (Long_lt(Long_sub(jl_System_currentTimeMillis(), nle_GuiScreenVoiceChannel_fadeInTimer), Long_fromInt(130))) - nmc_Minecraft_showWarningText($mc); - nleg_EaglerAdapterGL30_glEnable(4); - nleg_EaglerAdapterGL30_glDepthMask(1); - } - $titleScreen = $mc.$currentScreen !== null && $mc.$currentScreen instanceof nms_GuiMainMenu ? 1 : 0; - if (nle_GuiScreenVoiceChannel_voiceActive && !($titleScreen && $mc.$currentScreen.$showAck) && !$mc.$gameSettings.$showDebugInfo) { - $res = nms_ScaledResolution__init_($mc.$gameSettings, $mc.$displayWidth, $mc.$displayHeight); - $width = nms_ScaledResolution_getScaledWidth($res); - nms_ScaledResolution_getScaledHeight($res); - if ($titleScreen) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 12.0, 0.0); - } - a: { - b: { - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - $line2 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), nle_GuiScreenVoiceChannel_connectedUsers.data.length), $rt_s(1029))); - $ll1 = nms_FontRenderer_getStringWidth($mc.$fontRenderer, $rt_s(1030)); - $ll2 = nms_FontRenderer_getStringWidth($mc.$fontRenderer, $line2); - var$9 = $width - 17 | 0; - nms_Gui_drawRect((var$9 - $ll1 | 0) - 6 | 0, 0, $width, 20, 855638016); - if (!$mc.$gameSettings.$keyBindPlayerList.$pressed) { - if ($mc.$currentScreen !== null) { - if ($mc.$currentScreen instanceof nms_GuiIngameMenu) - break b; - if ($mc.$currentScreen instanceof nle_GuiScreenVoiceChannel) - break b; - } - if (nle_GuiScreenVoiceChannel_talkingUsers.data.length <= 0) - break a; - $wid = 0; - $i_0 = 0; - $isTalking = $width - 12 | 0; - var$13 = $width - 9 | 0; - while ($i_0 < nle_GuiScreenVoiceChannel_talkingUsers.data.length) { - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - $sw = nms_FontRenderer_getStringWidth($mc.$fontRenderer, nle_GuiScreenVoiceChannel_talkingUsers.data[$i_0]); - $res = $mc.$fontRenderer; - var$15 = nle_GuiScreenVoiceChannel_talkingUsers.data[$i_0]; - $j = $isTalking - $sw | 0; - $sw_0 = $i_0 * 11 | 0; - nms_FontRenderer_drawStringWithShadow($res, var$15, $j, 26 + $sw_0 | 0, (-1118482)); - if ($wid < $sw) - $wid = $sw; - nle_TextureLocation_bindTexture(nle_GuiScreenVoiceChannel_tex_gui); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 0.6499999761581421); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(var$13, 27 + $sw_0 | 0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.5, 0.5, 0.5); - nms_Gui_static_drawTexturedModalRect(0, 0, 208, 0, 15, 15); - nleg_EaglerAdapterGL30_glPopMatrix(); - $i_0 = $i_0 + 1 | 0; - } - nms_Gui_drawRect(($width - $wid | 0) - 15 | 0, 24, $width, 26 + (nle_GuiScreenVoiceChannel_talkingUsers.data.length * 11 | 0) | 0, 855638016); - break a; - } - } - if (nle_GuiScreenVoiceChannel_connectedUsers.data.length > 0) { - $wid_0 = 0; - $i_1 = 0; - var$20 = $width - 12 | 0; - var$13 = $width - 9 | 0; - while ($i_1 < nle_GuiScreenVoiceChannel_connectedUsers.data.length) { - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - $sw_0 = nms_FontRenderer_getStringWidth($mc.$fontRenderer, nle_GuiScreenVoiceChannel_connectedUsers.data[$i_1]); - $res = $mc.$fontRenderer; - var$15 = nle_GuiScreenVoiceChannel_connectedUsers.data[$i_1]; - $wid = var$20 - $sw_0 | 0; - $sw = $i_1 * 11 | 0; - nms_FontRenderer_drawStringWithShadow($res, var$15, $wid, 26 + $sw | 0, (-1118482)); - if ($wid_0 >= $sw_0) - $sw_0 = $wid_0; - $isTalking = 0; - $j = 0; - c: { - while ($j < nle_GuiScreenVoiceChannel_talkingUsers.data.length) { - if (jl_String_equals(nle_GuiScreenVoiceChannel_talkingUsers.data[$j], nle_GuiScreenVoiceChannel_connectedUsers.data[$i_1])) { - $isTalking = 1; - break c; - } - $j = $j + 1 | 0; - } - } - nle_TextureLocation_bindTexture(nle_GuiScreenVoiceChannel_tex_gui); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 0.6499999761581421); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(var$13, 27 + $sw | 0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.5, 0.5, 0.5); - nms_Gui_static_drawTexturedModalRect(0, 0, !$isTalking ? 224 : 208, 0, 15, 15); - nleg_EaglerAdapterGL30_glPopMatrix(); - $i_1 = $i_1 + 1 | 0; - $wid_0 = $sw_0; - } - nms_Gui_drawRect(($width - $wid_0 | 0) - 15 | 0, 24, $width, 26 + (nle_GuiScreenVoiceChannel_connectedUsers.data.length * 11 | 0) | 0, 855638016); - } - } - nms_FontRenderer_drawStringWithShadow($mc.$fontRenderer, $rt_s(1030), (($width - 16 | 0) - $ll1 | 0) - 4 | 0, 2, (-1)); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef($width - 20 | 0, 11.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.75, 0.75, 0.75); - nms_FontRenderer_drawStringWithShadow($mc.$fontRenderer, $line2, -$ll2, 0, (-1)); - nleg_EaglerAdapterGL30_glPopMatrix(); - $b = Long_ne(Long_rem(Long_div(jl_System_currentTimeMillis(), Long_fromInt(800)), Long_fromInt(2)), Long_fromInt(1)) ? 0 : 1; - nle_TextureLocation_bindTexture(nle_GuiScreenVoiceChannel_tex_gui); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 0.6499999761581421); - nms_Gui_static_drawTexturedModalRect(var$9, 2, !$b ? 224 : 192, 0, 15, 15); - if ($titleScreen) - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nle_GuiScreenVoiceChannel__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(442); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nle_GuiScreenVoiceChannel_tex_gui = var$1; - nle_GuiScreenVoiceChannel_connectedUsers = $rt_createArray(jl_String, 0); - nle_GuiScreenVoiceChannel_talkingUsers = $rt_createArray(jl_String, 0); - nle_GuiScreenVoiceChannel_voiceActive = 0; - nle_GuiScreenVoiceChannel_voiceRelayed = 0; - nle_GuiScreenVoiceChannel_fadeInTimer = Long_ZERO; -} -function nms_KeyBinding() { - var a = this; jl_Object.call(a); - a.$keyDescription = null; - a.$keyCode = 0; - a.$pressed = 0; - a.$pressTime = 0; -} -var nms_KeyBinding_keybindArray = null; -var nms_KeyBinding_hash = null; -function nms_KeyBinding__init_(var_0, var_1) { - var var_2 = new nms_KeyBinding(); - nms_KeyBinding__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_KeyBinding_onTick($par0) { - var $var1; - $var1 = nms_IntHashMap_lookup(nms_KeyBinding_hash, $par0); - if ($var1 !== null) - $var1.$pressTime = $var1.$pressTime + 1 | 0; -} -function nms_KeyBinding_setKeyBindState($par0, $par1) { - var $var2; - $var2 = nms_IntHashMap_lookup(nms_KeyBinding_hash, $par0); - if ($var2 !== null) - $var2.$pressed = $par1; -} -function nms_KeyBinding_resetKeyBindingArrayAndHash() { - var $var1, $var0; - nms_IntHashMap_clearMap(nms_KeyBinding_hash); - $var1 = nms_KeyBinding_keybindArray; - $var0 = new ju_AbstractList$1; - $var0.$this$0 = $var1; - $var0.$modCount = $var0.$this$0.$modCount0; - $var0.$size1 = $var0.$this$0.$size2(); - $var0.$removeIndex = (-1); - while ($var0.$index >= $var0.$size1 ? 0 : 1) { - $var1 = ju_AbstractList$1_next($var0); - nms_IntHashMap_addKey(nms_KeyBinding_hash, $var1.$keyCode, $var1); - } -} -function nms_KeyBinding__init_0($this, $par1Str, $par2) { - $this.$pressTime = 0; - $this.$keyDescription = $par1Str; - $this.$keyCode = $par2; - ju_ArrayList_add(nms_KeyBinding_keybindArray, $this); - nms_IntHashMap_addKey(nms_KeyBinding_hash, $par2, $this); -} -function nms_KeyBinding_isPressed($this) { - if (!$this.$pressTime) - return 0; - $this.$pressTime = $this.$pressTime - 1 | 0; - return 1; -} -function nms_KeyBinding__clinit_() { - var var$1, var$2; - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - nms_KeyBinding_keybindArray = var$1; - var$1 = new nms_IntHashMap; - var$1.$slots = $rt_createArray(nms_IntHashMapEntry, 16); - var$1.$threshold0 = 12; - var$1.$growFactor = 0.75; - var$2 = new ju_HashSet; - var$2.$backingMap = ju_HashMap__init_1(16, 0.75); - var$1.$keySet0 = var$2; - nms_KeyBinding_hash = var$1; -} -function nms_EntityPlayerSP() { - var a = this; nms_EntityPlayer.call(a); - a.$movementInput = null; - a.$mc3 = null; - a.$sprintToggleTimer = 0; - a.$sprintingTicksLeft = 0; - a.$renderArmYaw = 0.0; - a.$renderArmPitch = 0.0; - a.$prevRenderArmYaw = 0.0; - a.$prevRenderArmPitch = 0.0; - a.$field_71162_ch = null; - a.$field_71160_ci = null; - a.$field_71161_cj = null; - a.$timeInPortal = 0.0; - a.$prevTimeInPortal = 0.0; -} -function nms_EntityPlayerSP__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityPlayerSP(); - nms_EntityPlayerSP__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityPlayerSP__init_0($this, $par1Minecraft, $par2World, $par3Session, $par4) { - nms_EntityPlayer__init_0($this); - $this.$sprintToggleTimer = 0; - $this.$sprintingTicksLeft = 0; - $this.$field_71162_ch = new nms_MouseFilter; - $this.$field_71160_ci = new nms_MouseFilter; - $this.$field_71161_cj = new nms_MouseFilter; - $this.$worldObj = $par2World; - $this.$dimension = $par2World.$provider.$dimensionId; - $this.$mc3 = $par1Minecraft; - $this.$dimension = $par4; - $this.$username0 = $par3Session; -} -function nms_EntityPlayerSP_moveEntity($this, $par1, $par3, $par5) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5 = $thread.pop();$par3 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, $par1, $par3, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par3, $par5, $ptr); -} -function nms_EntityPlayerSP_updateEntityActionState($this) { - nms_EntityLiving_updateArmSwingProgress($this); - $this.$moveStrafing = $this.$movementInput.$moveStrafe; - $this.$moveForward0 = $this.$movementInput.$moveForward; - $this.$isJumping = $this.$movementInput.$jump; - $this.$prevRenderArmYaw = $this.$renderArmYaw; - $this.$prevRenderArmPitch = $this.$renderArmPitch; - $this.$renderArmPitch = $this.$renderArmPitch + ($this.$rotationPitch - $this.$renderArmPitch) * 0.5; - $this.$renderArmYaw = $this.$renderArmYaw + ($this.$rotationYaw - $this.$renderArmYaw) * 0.5; -} -function nms_EntityPlayerSP_isClientWorld($this) { - return 1; -} -function nms_EntityPlayerSP_onLivingUpdate($this) { - var var$1, var$2, var$3, $var2, $var1, $var3, $var4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var1 = $thread.pop();$var2 = $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.$sprintingTicksLeft > 0) { - $this.$sprintingTicksLeft = $this.$sprintingTicksLeft - 1 | 0; - if (!$this.$sprintingTicksLeft) - nms_EntityPlayerSP_setSprinting($this, 0); - } - if ($this.$sprintToggleTimer > 0) - $this.$sprintToggleTimer = $this.$sprintToggleTimer - 1 | 0; - if (nms_PlayerControllerMP_enableEverythingIsScrewedUpMode($this.$mc3.$playerController)) { - $this.$posZ = 0.5; - $this.$posX = 0.5; - $this.$posX = 0.0; - $this.$posZ = 0.0; - $this.$rotationYaw = $this.$ticksExisted / 12.0; - $this.$rotationPitch = 10.0; - $this.$posY = 68.5; - return; - } - $this.$prevTimeInPortal = $this.$timeInPortal; - if (!$this.$inPortal) { - if (nms_EntityLiving_isPotionActive($this, nms_Potion_confusion) && nms_PotionEffect_getDuration(nms_EntityLiving_getActivePotionEffect($this, nms_Potion_confusion)) > 60) { - $this.$timeInPortal = $this.$timeInPortal + 0.006666666828095913; - if ($this.$timeInPortal > 1.0) - $this.$timeInPortal = 1.0; - } else { - if ($this.$timeInPortal > 0.0) - $this.$timeInPortal = $this.$timeInPortal - 0.05000000074505806; - if ($this.$timeInPortal < 0.0) - $this.$timeInPortal = 0.0; - } - } else { - if ($this.$mc3.$currentScreen !== null) { - var$1 = $this.$mc3; - var$2 = null; - $ptr = 1; - continue main; - } - if ($this.$timeInPortal === 0.0) { - var$1 = $this.$mc3.$sndManager; - var$2 = $rt_s(1031); - var$3 = 1.0; - $var2 = ju_Random_nextFloat($this.$rand0) * 0.4000000059604645 + 0.800000011920929; - $ptr = 2; - continue main; - } - $this.$timeInPortal = $this.$timeInPortal + 0.012500000186264515; - if ($this.$timeInPortal >= 1.0) - $this.$timeInPortal = 1.0; - $this.$inPortal = 0; - } - if ($this.$timeUntilPortal > 0) - $this.$timeUntilPortal = $this.$timeUntilPortal - 1 | 0; - $var1 = $this.$movementInput.$jump; - $var3 = $this.$movementInput.$moveForward < 0.800000011920929 ? 0 : 1; - nms_MovementInputFromOptions_updatePlayerMoveState($this.$movementInput); - if (nms_EntityPlayer_isUsingItem($this)) { - var$1 = $this.$movementInput; - var$1.$moveStrafe = var$1.$moveStrafe * 0.20000000298023224; - var$1 = $this.$movementInput; - var$1.$moveForward = var$1.$moveForward * 0.20000000298023224; - $this.$sprintToggleTimer = 0; - } - if ($this.$movementInput.$sneak && $this.$ySize < 0.20000000298023224) - $this.$ySize = 0.20000000298023224; - a: { - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX - $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ + $this.$width1 * 0.35); - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX - $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ - $this.$width1 * 0.35); - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX + $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ - $this.$width1 * 0.35); - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX + $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ + $this.$width1 * 0.35); - $var4 = nms_EntityPlayerSP_canSprint($this); - if (!$this.$onGround) - break a; - if ($var3) - break a; - if ($this.$movementInput.$moveForward < 0.800000011920929) - break a; - if (nms_Entity_isSprinting($this)) - break a; - if (!$var4) - break a; - if (nms_EntityPlayer_isUsingItem($this)) - break a; - if (nms_EntityLiving_isPotionActive($this, nms_Potion_blindness)) - break a; - if (!$this.$sprintToggleTimer) { - $this.$sprintToggleTimer = 7; - break a; - } - nms_EntityPlayerSP_setSprinting($this, 1); - $this.$sprintToggleTimer = 0; - } - if (nms_EntityPlayerSP_isSneaking($this)) - $this.$sprintToggleTimer = 0; - if (nms_Entity_isSprinting($this) && !($this.$movementInput.$moveForward >= 0.800000011920929 && !$this.$isCollidedHorizontally && $var4)) - nms_EntityPlayerSP_setSprinting($this, 0); - if ($this.$capabilities.$allowFlying && !$var1 && $this.$movementInput.$jump) { - if (!$this.$flyToggleTimer) - $this.$flyToggleTimer = 7; - else { - $this.$capabilities.$isFlying = $this.$capabilities.$isFlying ? 0 : 1; - nms_EntityClientPlayerMP_sendPlayerAbilities($this); - $this.$flyToggleTimer = 0; - } - } - if ($this.$capabilities.$isFlying) { - if ($this.$movementInput.$sneak) - $this.$motionY = $this.$motionY - 0.15; - if ($this.$movementInput.$jump) - $this.$motionY = $this.$motionY + 0.15; - } - $ptr = 3; - continue main; - case 1: - nmc_Minecraft_displayGuiScreen(var$1, var$2); - if ($rt_suspending()) { - break main; - } - if ($this.$timeInPortal === 0.0) { - var$1 = $this.$mc3.$sndManager; - var$2 = $rt_s(1031); - var$3 = 1.0; - $var2 = ju_Random_nextFloat($this.$rand0) * 0.4000000059604645 + 0.800000011920929; - $ptr = 2; - continue main; - } - $this.$timeInPortal = $this.$timeInPortal + 0.012500000186264515; - if ($this.$timeInPortal >= 1.0) - $this.$timeInPortal = 1.0; - $this.$inPortal = 0; - if ($this.$timeUntilPortal > 0) - $this.$timeUntilPortal = $this.$timeUntilPortal - 1 | 0; - $var1 = $this.$movementInput.$jump; - $var3 = $this.$movementInput.$moveForward < 0.800000011920929 ? 0 : 1; - nms_MovementInputFromOptions_updatePlayerMoveState($this.$movementInput); - if (nms_EntityPlayer_isUsingItem($this)) { - var$1 = $this.$movementInput; - var$1.$moveStrafe = var$1.$moveStrafe * 0.20000000298023224; - var$1 = $this.$movementInput; - var$1.$moveForward = var$1.$moveForward * 0.20000000298023224; - $this.$sprintToggleTimer = 0; - } - if ($this.$movementInput.$sneak && $this.$ySize < 0.20000000298023224) - $this.$ySize = 0.20000000298023224; - b: { - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX - $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ + $this.$width1 * 0.35); - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX - $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ - $this.$width1 * 0.35); - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX + $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ - $this.$width1 * 0.35); - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX + $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ + $this.$width1 * 0.35); - $var4 = nms_EntityPlayerSP_canSprint($this); - if (!$this.$onGround) - break b; - if ($var3) - break b; - if ($this.$movementInput.$moveForward < 0.800000011920929) - break b; - if (nms_Entity_isSprinting($this)) - break b; - if (!$var4) - break b; - if (nms_EntityPlayer_isUsingItem($this)) - break b; - if (nms_EntityLiving_isPotionActive($this, nms_Potion_blindness)) - break b; - if (!$this.$sprintToggleTimer) { - $this.$sprintToggleTimer = 7; - break b; - } - nms_EntityPlayerSP_setSprinting($this, 1); - $this.$sprintToggleTimer = 0; - } - if (nms_EntityPlayerSP_isSneaking($this)) - $this.$sprintToggleTimer = 0; - if (nms_Entity_isSprinting($this) && !($this.$movementInput.$moveForward >= 0.800000011920929 && !$this.$isCollidedHorizontally && $var4)) - nms_EntityPlayerSP_setSprinting($this, 0); - if ($this.$capabilities.$allowFlying && !$var1 && $this.$movementInput.$jump) { - if (!$this.$flyToggleTimer) - $this.$flyToggleTimer = 7; - else { - $this.$capabilities.$isFlying = $this.$capabilities.$isFlying ? 0 : 1; - nms_EntityClientPlayerMP_sendPlayerAbilities($this); - $this.$flyToggleTimer = 0; - } - } - if ($this.$capabilities.$isFlying) { - if ($this.$movementInput.$sneak) - $this.$motionY = $this.$motionY - 0.15; - if ($this.$movementInput.$jump) - $this.$motionY = $this.$motionY + 0.15; - } - $ptr = 3; - continue main; - case 2: - nms_SoundManager_playSoundFX(var$1, var$2, var$3, $var2); - if ($rt_suspending()) { - break main; - } - $this.$timeInPortal = $this.$timeInPortal + 0.012500000186264515; - if ($this.$timeInPortal >= 1.0) - $this.$timeInPortal = 1.0; - $this.$inPortal = 0; - if ($this.$timeUntilPortal > 0) - $this.$timeUntilPortal = $this.$timeUntilPortal - 1 | 0; - $var1 = $this.$movementInput.$jump; - $var3 = $this.$movementInput.$moveForward < 0.800000011920929 ? 0 : 1; - nms_MovementInputFromOptions_updatePlayerMoveState($this.$movementInput); - if (nms_EntityPlayer_isUsingItem($this)) { - var$1 = $this.$movementInput; - var$1.$moveStrafe = var$1.$moveStrafe * 0.20000000298023224; - var$1 = $this.$movementInput; - var$1.$moveForward = var$1.$moveForward * 0.20000000298023224; - $this.$sprintToggleTimer = 0; - } - if ($this.$movementInput.$sneak && $this.$ySize < 0.20000000298023224) - $this.$ySize = 0.20000000298023224; - c: { - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX - $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ + $this.$width1 * 0.35); - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX - $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ - $this.$width1 * 0.35); - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX + $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ - $this.$width1 * 0.35); - nms_EntityPlayerSP_pushOutOfBlocks($this, $this.$posX + $this.$width1 * 0.35, $this.$boundingBox.$minY + 0.5, $this.$posZ + $this.$width1 * 0.35); - $var4 = nms_EntityPlayerSP_canSprint($this); - if (!$this.$onGround) - break c; - if ($var3) - break c; - if ($this.$movementInput.$moveForward < 0.800000011920929) - break c; - if (nms_Entity_isSprinting($this)) - break c; - if (!$var4) - break c; - if (nms_EntityPlayer_isUsingItem($this)) - break c; - if (nms_EntityLiving_isPotionActive($this, nms_Potion_blindness)) - break c; - if (!$this.$sprintToggleTimer) { - $this.$sprintToggleTimer = 7; - break c; - } - nms_EntityPlayerSP_setSprinting($this, 1); - $this.$sprintToggleTimer = 0; - } - if (nms_EntityPlayerSP_isSneaking($this)) - $this.$sprintToggleTimer = 0; - if (nms_Entity_isSprinting($this) && !($this.$movementInput.$moveForward >= 0.800000011920929 && !$this.$isCollidedHorizontally && $var4)) - nms_EntityPlayerSP_setSprinting($this, 0); - if ($this.$capabilities.$allowFlying && !$var1 && $this.$movementInput.$jump) { - if (!$this.$flyToggleTimer) - $this.$flyToggleTimer = 7; - else { - $this.$capabilities.$isFlying = $this.$capabilities.$isFlying ? 0 : 1; - nms_EntityClientPlayerMP_sendPlayerAbilities($this); - $this.$flyToggleTimer = 0; - } - } - if ($this.$capabilities.$isFlying) { - if ($this.$movementInput.$sneak) - $this.$motionY = $this.$motionY - 0.15; - if ($this.$movementInput.$jump) - $this.$motionY = $this.$motionY + 0.15; - } - $ptr = 3; - case 3: - nms_EntityPlayer_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$onGround && $this.$capabilities.$isFlying) { - $this.$capabilities.$isFlying = 0; - nms_EntityClientPlayerMP_sendPlayerAbilities($this); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $var2, $var1, $var3, $var4, $ptr); -} -function nms_EntityPlayerSP_canSprint($this) { - return $this.$foodStats.$foodLevel <= 6.0 && !$this.$capabilities.$allowFlying ? 0 : 1; -} -function nms_EntityPlayerSP_getFOVMultiplier($this) { - var $var1, $var2, var$3, $var3; - $var1 = 1.0; - if ($this.$capabilities.$isFlying) - $var1 = 1.100000023841858; - $var1 = $var1 * ($this.$landMovementFactor * nms_EntityLiving_getSpeedModifier($this) / $this.$speedOnGround + 1.0) / 2.0; - if ($this.$itemInUse === null ? 0 : 1) { - $var2 = $this.$itemInUse.$itemID0; - nms_Item_$callClinit(); - if ($var2 == nms_Item_bow.$itemID) { - if (!($this.$itemInUse === null ? 0 : 1)) - $var2 = 0; - else { - var$3 = $this.$itemInUse; - $var2 = nms_Item_itemsList.data[var$3.$itemID0].$getMaxItemUseDuration(var$3) - $this.$itemInUseCount | 0; - } - $var3 = $var2 / 20.0; - $var1 = $var1 * (1.0 - ($var3 <= 1.0 ? $var3 * $var3 : 1.0) * 0.15000000596046448); - } - } - return $var1; -} -function nms_EntityPlayerSP_updateCloak($this) { - return; -} -function nms_EntityPlayerSP_displayGUIEditSign($this, $par1TileEntity) { - 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();$par1TileEntity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!($par1TileEntity instanceof nms_TileEntitySign)) { - if (!($par1TileEntity instanceof nms_TileEntityCommandBlock)) - return; - var$2 = $this.$mc3; - var$3 = new nms_GuiCommandBlock; - $par1TileEntity = $par1TileEntity; - nms_GuiScreen__init_(var$3); - var$3.$commandBlock = $par1TileEntity; - $ptr = 2; - continue main; - } - var$3 = $this.$mc3; - var$2 = new nms_GuiEditSign; - $par1TileEntity = $par1TileEntity; - nms_GuiEditSign_$callClinit(); - nms_GuiScreen__init_(var$2); - var$2.$screenTitle2 = $rt_s(1032); - var$2.$editLine = 0; - var$2.$entitySign = $par1TileEntity; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$3, var$2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntity, var$2, var$3, $ptr); -} -function nms_EntityPlayerSP_displayGUIBook($this, $par1ItemStack) { - var $var2, var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Item_$callClinit(); - $var2 = nms_Item_itemsList.data[$par1ItemStack.$itemID0]; - if ($var2 === nms_Item_writtenBook) { - var$3 = $this.$mc3; - $var2 = nms_GuiScreenBook__init_($this, $par1ItemStack, 0); - $ptr = 1; - continue main; - } - if ($var2 !== nms_Item_writableBook) - return; - var$3 = $this.$mc3; - $var2 = nms_GuiScreenBook__init_($this, $par1ItemStack, 1); - $ptr = 2; - continue main; - case 1: - nmc_Minecraft_displayGuiScreen(var$3, $var2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen(var$3, $var2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $var2, var$3, $ptr); -} -function nms_EntityPlayerSP_displayGUIChest($this, $par1IInventory) { - var 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();$par1IInventory = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc3; - var$3 = new nms_GuiChest; - var$4 = $this.$inventory; - $ptr = 1; - case 1: - nms_GuiChest__init_(var$3, var$4, $par1IInventory); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1IInventory, var$2, var$3, var$4, $ptr); -} -function nms_EntityPlayerSP_displayGUIHopper($this, $par1TileEntityHopper) { - var 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();$par1TileEntityHopper = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc3; - var$3 = new nms_GuiHopper; - var$4 = $this.$inventory; - nms_GuiContainer__init_(var$3, nms_ContainerHopper__init_(var$4, $par1TileEntityHopper)); - var$3.$field_94081_r = var$4; - var$3.$field_94080_s = $par1TileEntityHopper; - var$3.$allowUserInput = 0; - var$3.$ySize0 = 133; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntityHopper, var$2, var$3, var$4, $ptr); -} -function nms_EntityPlayerSP_displayGUIHopperMinecart($this, $par1EntityMinecartHopper) { - var 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();$par1EntityMinecartHopper = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc3; - var$3 = new nms_GuiHopper; - var$4 = $this.$inventory; - nms_GuiContainer__init_(var$3, nms_ContainerHopper__init_(var$4, $par1EntityMinecartHopper)); - var$3.$field_94081_r = var$4; - var$3.$field_94080_s = $par1EntityMinecartHopper; - var$3.$allowUserInput = 0; - var$3.$ySize0 = 133; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMinecartHopper, var$2, var$3, var$4, $ptr); -} -function nms_EntityPlayerSP_displayGUIWorkbench($this, $par1, $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();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$4 = $this.$mc3; - var$5 = new nms_GuiCrafting; - nms_GuiContainer__init_(var$5, nms_ContainerWorkbench__init_($this.$inventory, $this.$worldObj, $par1, $par2, $par3)); - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$4, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, var$4, var$5, $ptr); -} -function nms_EntityPlayerSP_displayGUIEnchantment($this, $par1, $par2, $par3, $par4Str) { - var 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();$par4Str = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$5 = $this.$mc3; - var$6 = new nms_GuiEnchantment; - nms_GuiContainer__init_(var$6, nms_ContainerEnchantment__init_($this.$inventory, $this.$worldObj, $par1, $par2, $par3)); - var$6.$rand3 = new ju_Random; - var$6.$containerEnchantment = var$6.$inventorySlots0; - var$6.$field_94079_C = $par4Str; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$5, var$6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4Str, var$5, var$6, $ptr); -} -function nms_EntityPlayerSP_displayGUIAnvil($this, $par1, $par2, $par3) { - var 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();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$4 = $this.$mc3; - var$5 = new nms_GuiRepair; - var$6 = $this.$inventory; - nms_GuiContainer__init_(var$5, nms_ContainerRepair__init_(var$6, $this.$worldObj, $par1, $par2, $par3, nmc_Minecraft_theMinecraft.$thePlayer)); - var$5.$field_82325_q = var$6; - var$5.$repairContainer = var$5.$inventorySlots0; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$4, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, var$4, var$5, var$6, $ptr); -} -function nms_EntityPlayerSP_displayGUIFurnace($this, $par1TileEntityFurnace) { - 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();$par1TileEntityFurnace = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc3; - var$3 = new nms_GuiFurnace; - nms_GuiContainer__init_(var$3, nms_ContainerFurnace__init_($this.$inventory, $par1TileEntityFurnace)); - var$3.$furnaceInventory = $par1TileEntityFurnace; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntityFurnace, var$2, var$3, $ptr); -} -function nms_EntityPlayerSP_displayGUIBrewingStand($this, $par1TileEntityBrewingStand) { - 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();$par1TileEntityBrewingStand = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc3; - var$3 = new nms_GuiBrewingStand; - nms_GuiContainer__init_(var$3, nms_ContainerBrewingStand__init_($this.$inventory, $par1TileEntityBrewingStand)); - var$3.$brewingStand = $par1TileEntityBrewingStand; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntityBrewingStand, var$2, var$3, $ptr); -} -function nms_EntityPlayerSP_displayGUIBeacon($this, $par1TileEntityBeacon) { - 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();$par1TileEntityBeacon = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc3; - var$3 = new nms_GuiBeacon; - nms_GuiContainer__init_(var$3, nms_ContainerBeacon__init_($this.$inventory, $par1TileEntityBeacon)); - var$3.$beacon = $par1TileEntityBeacon; - var$3.$xSize = 230; - var$3.$ySize0 = 219; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntityBeacon, var$2, var$3, $ptr); -} -function nms_EntityPlayerSP_displayGUIDispenser($this, $par1TileEntityDispenser) { - 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();$par1TileEntityDispenser = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc3; - var$3 = new nms_GuiDispenser; - nms_GuiContainer__init_(var$3, nms_ContainerDispenser__init_($this.$inventory, $par1TileEntityDispenser)); - var$3.$field_94078_r = $par1TileEntityDispenser; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntityDispenser, var$2, var$3, $ptr); -} -function nms_EntityPlayerSP_displayGUIMerchant($this, $par1IMerchant, $par2Str) { - var 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();$par2Str = $thread.pop();$par1IMerchant = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$3 = $this.$mc3; - var$4 = nms_GuiMerchant__init_($this.$inventory, $par1IMerchant, $this.$worldObj, $par2Str); - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$3, var$4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1IMerchant, $par2Str, var$3, var$4, $ptr); -} -function nms_EntityPlayerSP_onCriticalHit($this, $par1Entity) { - var var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc3.$effectRenderer; - var$3 = new nms_EntityCrit2FX; - var$4 = $this.$mc3.$theWorld; - var$5 = $rt_s(850); - $ptr = 1; - case 1: - nms_EntityCrit2FX__init_(var$3, var$4, $par1Entity, var$5); - if ($rt_suspending()) { - break main; - } - nms_EffectRenderer_addEffect(var$2, var$3); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, var$2, var$3, var$4, var$5, $ptr); -} -function nms_EntityPlayerSP_onEnchantmentCritical($this, $par1Entity) { - var $var2, 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();$var2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = new nms_EntityCrit2FX; - var$3 = $this.$mc3.$theWorld; - var$4 = $rt_s(851); - $ptr = 1; - case 1: - nms_EntityCrit2FX__init_($var2, var$3, $par1Entity, var$4); - if ($rt_suspending()) { - break main; - } - nms_EffectRenderer_addEffect($this.$mc3.$effectRenderer, $var2); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $var2, var$3, var$4, $ptr); -} -function nms_EntityPlayerSP_onItemPickup($this, $par1Entity, $par2) { - nms_EffectRenderer_addEffect($this.$mc3.$effectRenderer, nms_EntityPickupFX__init_($this.$mc3.$theWorld, $par1Entity, $this, (-0.5))); -} -function nms_EntityPlayerSP_isSneaking($this) { - return $this.$movementInput.$sneak && !$this.$sleeping ? 1 : 0; -} -function nms_EntityPlayerSP_setHealth($this, $par1) { - var $var2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$health - $par1 | 0; - if ($var2 <= 0) { - $this.$health = $par1; - if ($var2 < 0) - $this.$hurtResistantTime = $this.$maxHurtResistantTime / 2 | 0; - } else { - $this.$lastDamage = $var2; - $par1 = $this.$health; - $this.$health = $par1; - $this.$hurtResistantTime = $this.$maxHurtResistantTime; - if (!$this.$invulnerable) { - $par1 = $this.$health - $var2 | 0; - $this.$health = $par1; - } - $this.$maxHurtTime = 10; - $this.$hurtTime = 10; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, $ptr); -} -function nms_EntityPlayerSP_addChatMessage($this, $par1Str) { - nms_GuiNewChat_addTranslatedMessage($this.$mc3.$ingameGUI.$persistantChatGUI, $par1Str, $rt_createArray(jl_Object, 0)); -} -function nms_EntityPlayerSP_addStat($this, $par1StatBase, $par2) { - var var$3, var$4; - if ($par1StatBase !== null) { - $par1StatBase = $par1StatBase; - if (nle_LocalStorageManager_hasMadeAchievement($par1StatBase)) { - var$3 = $this.$mc3.$guiAchievement; - var$3.$achievementGetLocalText = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(725)); - var$4 = $par1StatBase.$statName; - var$3.$achievementStatName = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$4); - var$3.$achievementTime = jl_System_currentTimeMillis(); - var$3.$theAchievement = $par1StatBase; - var$3.$haveAchiement = 0; - } - } -} -function nms_EntityPlayerSP_pushOutOfBlocks($this, $par1, $par3, $par5) { - var $var7, $var8, $var9, $var10, $var12, var$9, $var18, $var14, $var15, $var16, $var17, $var19; - $var7 = $par1 | 0; - if ($par1 < $var7) - $var7 = $var7 - 1 | 0; - $var8 = $par3 | 0; - if ($par3 < $var8) - $var8 = $var8 - 1 | 0; - $var9 = $par5 | 0; - if ($par5 < $var9) - $var9 = $var9 - 1 | 0; - a: { - $var10 = $par1 - $var7; - $var12 = $par5 - $var9; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var7, $var8, $var9))) { - var$9 = $var8 + 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var7, var$9, $var9))) - break a; - } - b: { - $var18 = $var7 - 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var18, $var8, $var9))) { - var$9 = $var8 + 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var18, var$9, $var9))) { - $var14 = 1; - break b; - } - } - $var14 = 0; - } - c: { - $var18 = $var7 + 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var18, $var8, $var9))) { - var$9 = $var8 + 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var18, var$9, $var9))) { - $var15 = 1; - break c; - } - } - $var15 = 0; - } - d: { - $var18 = $var9 - 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var7, $var8, $var18))) { - var$9 = $var8 + 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var7, var$9, $var18))) { - $var16 = 1; - break d; - } - } - $var16 = 0; - } - e: { - $var9 = $var9 + 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var7, $var8, $var9))) { - var$9 = $var8 + 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($this.$worldObj, $var7, var$9, $var9))) { - $var17 = 1; - break e; - } - } - $var17 = 0; - } - $var18 = (-1); - $var19 = 9999.0; - if ($var14 && $var10 < $var19) { - $var18 = 0; - $var19 = $var10; - } - if (!$var15) - $par3 = $var19; - else { - $par3 = 1.0 - $var10; - if ($par3 < $var19) - $var18 = 1; - else - $par3 = $var19; - } - if ($var16 && $var12 < $par3) { - $var18 = 4; - $par3 = $var12; - } - if ($var17 && 1.0 - $var12 < $par3) - $var18 = 5; - if (!$var18) - $this.$motionX = (-0.10000000149011612); - if ($var18 == 1) - $this.$motionX = 0.10000000149011612; - if ($var18 == 4) - $this.$motionZ = (-0.10000000149011612); - if ($var18 == 5) - $this.$motionZ = 0.10000000149011612; - } - return 0; -} -function nms_EntityPlayerSP_setSprinting($this, $par1) { - nms_Entity_setFlag($this, 3, $par1); - $this.$sprintingTicksLeft = !$par1 ? 0 : 600; -} -function nms_EntityPlayerSP_setXPStats($this, $par1, $par2, $par3) { - $this.$experience = $par1; - $this.$experienceTotal = $par2; - $this.$experienceLevel = $par3; -} -function nms_EntityPlayerSP_sendChatToPlayer($this, $par1Str) { - nms_GuiNewChat_printChatMessageWithOptionalDeletion($this.$mc3.$ingameGUI.$persistantChatGUI, $par1Str, 0); -} -function nms_EntityPlayerSP_getHeldItem($this) { - return nms_InventoryPlayer_getCurrentItem($this.$inventory); -} -function nms_EntityPlayerSP_playSound($this, $par1Str, $par2, $par3) { - var var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Str = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$4 = $this.$worldObj; - var$5 = $this.$posX; - var$6 = $this.$posY - $this.$yOffset0; - var$7 = $this.$posZ; - var$8 = 0; - $ptr = 1; - case 1: - nms_WorldClient_playSound(var$4, var$5, var$6, var$7, $par1Str, $par2, $par3, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Str, $par2, $par3, var$4, var$5, var$6, var$7, var$8, $ptr); -} -function nms_EntityClientPlayerMP() { - var a = this; nms_EntityPlayerSP.call(a); - a.$sendQueue = null; - a.$oldPosX = 0.0; - a.$oldMinY = 0.0; - a.$oldPosY = 0.0; - a.$oldPosZ = 0.0; - a.$oldRotationYaw = 0.0; - a.$oldRotationPitch = 0.0; - a.$wasOnGround = 0; - a.$shouldStopSneaking = 0; - a.$wasSneaking = 0; - a.$field_71168_co = 0; - a.$hasSetHealth = 0; -} -function nms_EntityClientPlayerMP_attackEntityFrom($this, $par1DamageSource, $par2) { - return 0; -} -function nms_EntityClientPlayerMP_heal($this, $par1) { - return; -} -function nms_EntityClientPlayerMP_onUpdate($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: - var$1 = $this.$posX; - var$1 = $this.$posZ; - $ptr = 1; - case 1: - nms_EntityPlayer_onUpdate($this); - if ($rt_suspending()) { - break main; - } - nms_EntityClientPlayerMP_sendMotionUpdates($this); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -} -function nms_EntityClientPlayerMP_sendMotionUpdates($this) { - var $var2, var$2, var$3, $var3, $var5, $var7, $var9, $var11, $var13, $var14, var$11, var$12; - $var2 = !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 8) ? 0 : 1; - if ($var2 != $this.$wasSneaking) { - if (!$var2) { - var$2 = $this.$sendQueue; - var$3 = new nms_Packet19EntityAction; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$entityId0 = $this.$entityId; - var$3.$state = 5; - if (!var$2.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$2.$netManager, var$3); - } else { - var$2 = $this.$sendQueue; - var$3 = new nms_Packet19EntityAction; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$entityId0 = $this.$entityId; - var$3.$state = 4; - if (!var$2.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$2.$netManager, var$3); - } - $this.$wasSneaking = $var2; - } - $var2 = $this.$movementInput.$sneak && !$this.$sleeping ? 1 : 0; - if ($var2 != $this.$shouldStopSneaking) { - if (!$var2) { - var$2 = $this.$sendQueue; - var$3 = new nms_Packet19EntityAction; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$entityId0 = $this.$entityId; - var$3.$state = 2; - if (!var$2.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$2.$netManager, var$3); - } else { - var$2 = $this.$sendQueue; - var$3 = new nms_Packet19EntityAction; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$entityId0 = $this.$entityId; - var$3.$state = 1; - if (!var$2.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$2.$netManager, var$3); - } - $this.$shouldStopSneaking = $var2; - } - $var3 = $this.$posX - $this.$oldPosX; - $var5 = $this.$boundingBox.$minY - $this.$oldMinY; - $var7 = $this.$posZ - $this.$oldPosZ; - $var9 = $this.$rotationYaw - $this.$oldRotationYaw; - $var11 = $this.$rotationPitch - $this.$oldRotationPitch; - $var13 = $var3 * $var3 + $var5 * $var5 + $var7 * $var7 <= 9.0E-4 && $this.$field_71168_co < 20 ? 0 : 1; - $var14 = $var9 === 0.0 && $var11 === 0.0 ? 0 : 1; - if ($this.$ridingEntity !== null) { - var$2 = $this.$sendQueue; - var$3 = new nms_Packet13PlayerLookMove; - $var3 = $this.$motionX; - $var9 = $this.$motionZ; - var$11 = $this.$rotationYaw; - var$12 = $this.$rotationPitch; - $var13 = $this.$onGround; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$xPosition = $var3; - var$3.$yPosition0 = (-999.0); - var$3.$stance = (-999.0); - var$3.$zPosition = $var9; - var$3.$yaw = var$11; - var$3.$pitch0 = var$12; - var$3.$onGround0 = $var13; - var$3.$rotating = 1; - var$3.$moving = 1; - if (!var$2.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$2.$netManager, var$3); - $var13 = 0; - } else if ($var13 && $var14) { - var$3 = $this.$sendQueue; - var$2 = new nms_Packet13PlayerLookMove; - $var3 = $this.$posX; - $var5 = $this.$boundingBox.$minY; - $var7 = $this.$posY; - $var9 = $this.$posZ; - var$11 = $this.$rotationYaw; - var$12 = $this.$rotationPitch; - $var2 = $this.$onGround; - nms_Packet10Flying__init_(var$2); - var$2.$xPosition = $var3; - var$2.$yPosition0 = $var5; - var$2.$stance = $var7; - var$2.$zPosition = $var9; - var$2.$yaw = var$11; - var$2.$pitch0 = var$12; - var$2.$onGround0 = $var2; - var$2.$rotating = 1; - var$2.$moving = 1; - nms_NetClientHandler_addToSendQueue(var$3, var$2); - } else if ($var13) - nms_NetClientHandler_addToSendQueue($this.$sendQueue, nms_Packet11PlayerPosition__init_0($this.$posX, $this.$boundingBox.$minY, $this.$posY, $this.$posZ, $this.$onGround)); - else if (!$var14) - nms_NetClientHandler_addToSendQueue($this.$sendQueue, nms_Packet10Flying__init_0($this.$onGround)); - else - nms_NetClientHandler_addToSendQueue($this.$sendQueue, nms_Packet12PlayerLook__init_0($this.$rotationYaw, $this.$rotationPitch, $this.$onGround)); - $this.$field_71168_co = $this.$field_71168_co + 1 | 0; - $this.$wasOnGround = $this.$onGround; - if ($var13) { - $this.$oldPosX = $this.$posX; - $this.$oldMinY = $this.$boundingBox.$minY; - $this.$oldPosY = $this.$posY; - $this.$oldPosZ = $this.$posZ; - $this.$field_71168_co = 0; - } - if ($var14) { - $this.$oldRotationYaw = $this.$rotationYaw; - $this.$oldRotationPitch = $this.$rotationPitch; - } -} -function nms_EntityClientPlayerMP_dropOneItem($this, $par1) { - var $var2, var$3, var$4; - $var2 = !$par1 ? 4 : 3; - var$3 = $this.$sendQueue; - var$4 = new nms_Packet14BlockDig; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$status0 = $var2; - var$4.$xPosition0 = 0; - var$4.$yPosition1 = 0; - var$4.$zPosition0 = 0; - var$4.$face = 0; - if (!var$3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$3.$netManager, var$4); - return null; -} -function nms_EntityClientPlayerMP_joinEntityItemWithWorld($this, $par1EntityItem) { - return; -} -function nms_EntityClientPlayerMP_sendChatMessage($this, $par1Str) { - var var$2, var$3, var$4, var$5; - var$2 = $this.$sendQueue; - var$3 = new nms_Packet3Chat; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$isServer = 1; - if ($par1Str.$characters.data.length <= nms_Packet3Chat_maxChatLength) - var$4 = $par1Str; - else { - var$5 = nms_Packet3Chat_maxChatLength; - if (0 > var$5) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - var$4 = jl_String__init_0($par1Str.$characters, 0, var$5 - 0 | 0); - } - var$3.$message0 = var$4; - var$3.$isServer = 1; - if (!var$2.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$2.$netManager, var$3); -} -function nms_EntityClientPlayerMP_swingItem($this) { - var var$1, var$2; - nms_EntityLiving_swingItem($this); - var$1 = $this.$sendQueue; - var$2 = new nms_Packet18Animation; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - var$2.$entityId1 = $this.$entityId; - var$2.$animate = 1; - if (!var$1.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$1.$netManager, var$2); -} -function nms_EntityClientPlayerMP_respawnPlayer($this) { - var var$1, var$2; - var$1 = $this.$sendQueue; - var$2 = new nms_Packet205ClientCommand; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - var$2.$forceRespawn = 1; - if (!var$1.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$1.$netManager, var$2); -} -function nms_EntityClientPlayerMP_damageEntity($this, $par1DamageSource, $par2) { - if (!$this.$invulnerable) { - $par2 = $this.$health - $par2 | 0; - $this.$health = $par2; - } -} -function nms_EntityClientPlayerMP_closeScreen($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: - var$1 = $this.$sendQueue; - var$2 = new nms_Packet101CloseWindow; - var$3 = $this.$openContainer.$windowId; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - var$2.$windowId0 = var$3; - if (!var$1.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$1.$netManager, var$2); - $this.$inventory.$itemStack = null; - $this.$openContainer = $this.$inventoryContainer; - var$1 = $this.$mc3; - var$2 = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$1, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $ptr); -} -function nms_EntityClientPlayerMP_func_92015_f($this) { - var var$1, var$2, $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.$inventory.$itemStack = null; - $this.$openContainer = $this.$inventoryContainer; - var$1 = $this.$mc3; - var$2 = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$1, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, $ptr); -} -function nms_EntityClientPlayerMP_setHealth($this, $par1) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$hasSetHealth) { - $this.$health = $par1; - $this.$hasSetHealth = 1; - return; - } - $ptr = 1; - case 1: - nms_EntityPlayerSP_setHealth($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $ptr); -} -function nms_EntityClientPlayerMP_addStat($this, $par1StatBase, $par2) { - if ($par1StatBase !== null && $par1StatBase.$isIndependent) - nms_EntityPlayerSP_addStat($this, $par1StatBase, $par2); -} -function nms_EntityClientPlayerMP_incrementStat($this, $par1StatBase, $par2) { - if ($par1StatBase !== null && !$par1StatBase.$isIndependent) - nms_EntityPlayerSP_addStat($this, $par1StatBase, $par2); -} -function nms_EntityClientPlayerMP_sendPlayerAbilities($this) { - var var$1, var$2; - var$1 = $this.$sendQueue; - var$2 = nms_Packet202PlayerAbilities__init_0($this.$capabilities); - if (!var$1.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$1.$netManager, var$2); -} -function nms_EntityClientPlayerMP_func_71066_bF($this) { - return 1; -} -function nms_IInventory() { -} -function nms_InventoryPlayer() { - var a = this; jl_Object.call(a); - a.$mainInventory = null; - a.$armorInventory = null; - a.$currentItem = 0; - a.$currentItemStack = null; - a.$player = null; - a.$itemStack = null; - a.$inventoryChanged = 0; -} -function nms_InventoryPlayer_getCurrentItem($this) { - return $this.$currentItem < 9 && $this.$currentItem >= 0 ? $this.$mainInventory.data[$this.$currentItem] : null; -} -function nms_InventoryPlayer_getInventorySlotContainItem($this, $par1) { - var $var2; - $var2 = 0; - while (true) { - if ($var2 >= $this.$mainInventory.data.length) - return (-1); - if ($this.$mainInventory.data[$var2] !== null && $this.$mainInventory.data[$var2].$itemID0 == $par1) - break; - $var2 = $var2 + 1 | 0; - } - return $var2; -} -function nms_InventoryPlayer_getInventorySlotContainItemAndDamage($this, $par1, $par2) { - var $var3; - $var3 = 0; - while (true) { - if ($var3 >= $this.$mainInventory.data.length) - return (-1); - if ($this.$mainInventory.data[$var3] !== null && $this.$mainInventory.data[$var3].$itemID0 == $par1 && $this.$mainInventory.data[$var3].$itemDamage == $par2) - break; - $var3 = $var3 + 1 | 0; - } - return $var3; -} -function nms_InventoryPlayer_storeItemStack($this, $par1ItemStack) { - var $var2, var$3, var$4; - $var2 = 0; - while (true) { - if ($var2 >= $this.$mainInventory.data.length) - return (-1); - if ($this.$mainInventory.data[$var2] !== null && $this.$mainInventory.data[$var2].$itemID0 == $par1ItemStack.$itemID0 && nms_ItemStack_isStackable($this.$mainInventory.data[$var2])) { - var$3 = $this.$mainInventory.data[$var2].$stackSize; - var$4 = $this.$mainInventory.data[$var2]; - nms_Item_$callClinit(); - if (var$3 < nms_Item_itemsList.data[var$4.$itemID0].$maxStackSize && $this.$mainInventory.data[$var2].$stackSize < 64) { - var$4 = $this.$mainInventory.data[$var2]; - if (!(nms_Item_itemsList.data[var$4.$itemID0].$hasSubtypes && $this.$mainInventory.data[$var2].$itemDamage != $par1ItemStack.$itemDamage) && nms_ItemStack_areItemStackTagsEqual($this.$mainInventory.data[$var2], $par1ItemStack)) - break; - } - } - $var2 = $var2 + 1 | 0; - } - return $var2; -} -function nms_InventoryPlayer_getFirstEmptyStack($this) { - var $var1; - $var1 = 0; - while (true) { - if ($var1 >= $this.$mainInventory.data.length) - return (-1); - if ($this.$mainInventory.data[$var1] === null) - break; - $var1 = $var1 + 1 | 0; - } - return $var1; -} -function nms_InventoryPlayer_setCurrentItem($this, $par1, $par2, $par3, $par4) { - var $var7, $var6; - $this.$currentItemStack = nms_InventoryPlayer_getCurrentItem($this); - $var7 = !$par3 ? nms_InventoryPlayer_getInventorySlotContainItem($this, $par1) : nms_InventoryPlayer_getInventorySlotContainItemAndDamage($this, $par1, $par2); - if ($var7 >= 0 && $var7 < 9) - $this.$currentItem = $var7; - else if ($par4 && $par1 > 0) { - $var6 = nms_InventoryPlayer_getFirstEmptyStack($this); - if ($var6 >= 0 && $var6 < 9) - $this.$currentItem = $var6; - nms_Item_$callClinit(); - nms_InventoryPlayer_func_70439_a($this, nms_Item_itemsList.data[$par1], $par2); - } -} -function nms_InventoryPlayer_changeCurrentItem($this, $par1) { - if ($par1 > 0) - $par1 = 1; - if ($par1 < 0) - $par1 = (-1); - $this.$currentItem = $this.$currentItem - $par1 | 0; - while ($this.$currentItem < 0) { - $this.$currentItem = $this.$currentItem + 9 | 0; - } - while ($this.$currentItem >= 9) { - $this.$currentItem = $this.$currentItem - 9 | 0; - } -} -function nms_InventoryPlayer_func_70439_a($this, $par1Item, $par2) { - var $var3, var$4, var$5, var$6, var$7; - if ($par1Item !== null) { - $var3 = nms_InventoryPlayer_getInventorySlotContainItemAndDamage($this, $par1Item.$itemID, $par2); - if ($var3 >= 0) - $this.$mainInventory.data[$var3] = $this.$mainInventory.data[$this.$currentItem]; - if ($this.$currentItemStack !== null && nms_ItemStack_isItemEnchantable($this.$currentItemStack) && nms_InventoryPlayer_getInventorySlotContainItemAndDamage($this, $this.$currentItemStack.$itemID0, $this.$currentItemStack.$itemDamage) == $this.$currentItem) - return; - var$4 = $this.$mainInventory; - var$5 = $this.$currentItem; - var$6 = new nms_ItemStack; - nms_Item_$callClinit(); - var$7 = nms_Item_itemsList.data[$par1Item.$itemID].$itemID; - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = var$7; - var$6.$stackSize = 1; - var$6.$itemDamage = $par2; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - var$4.data[var$5] = var$6; - } -} -function nms_InventoryPlayer_storePartialItemStack($this, $par1ItemStack) { - var $var2, $var3, $var4, $var4_0, var$6, var$7, var$8; - $var2 = $par1ItemStack.$itemID0; - $var3 = $par1ItemStack.$stackSize; - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize == 1) { - $var4 = nms_InventoryPlayer_getFirstEmptyStack($this); - if ($var4 < 0) - return $var3; - if ($this.$mainInventory.data[$var4] === null) - $this.$mainInventory.data[$var4] = nms_ItemStack_copy($par1ItemStack); - return 0; - } - $var4_0 = nms_InventoryPlayer_storeItemStack($this, $par1ItemStack); - if ($var4_0 < 0) - $var4_0 = nms_InventoryPlayer_getFirstEmptyStack($this); - if ($var4_0 < 0) - return $var3; - if ($this.$mainInventory.data[$var4_0] === null) { - var$6 = $this.$mainInventory; - var$7 = new nms_ItemStack; - var$8 = $par1ItemStack.$itemDamage; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = $var2; - var$7.$stackSize = 0; - var$7.$itemDamage = var$8; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - var$6.data[$var4_0] = var$7; - if ($par1ItemStack.$stackTagCompound === null ? 0 : 1) - $this.$mainInventory.data[$var4_0].$stackTagCompound = nms_NBTTagCompound_copy($par1ItemStack.$stackTagCompound); - } - $par1ItemStack = $this.$mainInventory.data[$var4_0]; - if ($var3 <= (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize - $this.$mainInventory.data[$var4_0].$stackSize | 0)) - $var2 = $var3; - else { - $par1ItemStack = $this.$mainInventory.data[$var4_0]; - $var2 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize - $this.$mainInventory.data[$var4_0].$stackSize | 0; - } - if ($var2 > (64 - $this.$mainInventory.data[$var4_0].$stackSize | 0)) - $var2 = 64 - $this.$mainInventory.data[$var4_0].$stackSize | 0; - if (!$var2) - return $var3; - $var4 = $var3 - $var2 | 0; - $par1ItemStack = $this.$mainInventory.data[$var4_0]; - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize + $var2 | 0; - $this.$mainInventory.data[$var4_0].$animationsToGo = 5; - return $var4; -} -function nms_InventoryPlayer_decrementAnimations($this) { - var $var1, var$2, var$3, var$4, var$5; - $var1 = 0; - while ($var1 < $this.$mainInventory.data.length) { - if ($this.$mainInventory.data[$var1] !== null) { - var$2 = $this.$mainInventory.data[$var1]; - var$3 = $this.$player.$worldObj; - var$4 = $this.$player; - var$5 = $this.$currentItem != $var1 ? 0 : 1; - if (var$2.$animationsToGo > 0) - var$2.$animationsToGo = var$2.$animationsToGo - 1 | 0; - nms_Item_$callClinit(); - nms_Item_itemsList.data[var$2.$itemID0].$onUpdate2(var$2, var$3, var$4, $var1, var$5); - } - $var1 = $var1 + 1 | 0; - } -} -function nms_InventoryPlayer_consumeInventoryItem($this, $par1) { - var $var2, var$3; - $var2 = nms_InventoryPlayer_getInventorySlotContainItem($this, $par1); - if ($var2 < 0) - return 0; - var$3 = $this.$mainInventory.data[$var2]; - $par1 = var$3.$stackSize - 1 | 0; - var$3.$stackSize = $par1; - if ($par1 <= 0) - $this.$mainInventory.data[$var2] = null; - return 1; -} -function nms_InventoryPlayer_hasItem($this, $par1) { - return nms_InventoryPlayer_getInventorySlotContainItem($this, $par1) < 0 ? 0 : 1; -} -function nms_InventoryPlayer_addItemStackToInventory($this, $par1ItemStack) { - var $var2; - if ($par1ItemStack === null) - return 0; - if (nms_ItemStack_isItemDamaged($par1ItemStack)) { - $var2 = nms_InventoryPlayer_getFirstEmptyStack($this); - if ($var2 < 0) { - if (!$this.$player.$capabilities.$isCreativeMode) - return 0; - $par1ItemStack.$stackSize = 0; - return 1; - } - $this.$mainInventory.data[$var2] = nms_ItemStack_copy($par1ItemStack); - $this.$mainInventory.data[$var2].$animationsToGo = 5; - $par1ItemStack.$stackSize = 0; - return 1; - } - while (true) { - $var2 = $par1ItemStack.$stackSize; - $par1ItemStack.$stackSize = nms_InventoryPlayer_storePartialItemStack($this, $par1ItemStack); - if ($par1ItemStack.$stackSize <= 0) - break; - if ($par1ItemStack.$stackSize < $var2) - continue; - else - break; - } - if ($par1ItemStack.$stackSize == $var2 && $this.$player.$capabilities.$isCreativeMode) { - $par1ItemStack.$stackSize = 0; - return 1; - } - return $par1ItemStack.$stackSize >= $var2 ? 0 : 1; -} -function nms_InventoryPlayer_decrStackSize($this, $par1, $par2) { - var $var3, $var4, $var4_0; - $var3 = $this.$mainInventory; - if ($par1 >= $this.$mainInventory.data.length) { - $var3 = $this.$armorInventory; - $par1 = $par1 - $this.$mainInventory.data.length | 0; - } - $var3 = $var3.data; - if ($var3[$par1] === null) - return null; - if ($var3[$par1].$stackSize <= $par2) { - $var4 = $var3[$par1]; - $var3[$par1] = null; - return $var4; - } - $var4_0 = nms_ItemStack_splitStack($var3[$par1], $par2); - if (!$var3[$par1].$stackSize) - $var3[$par1] = null; - return $var4_0; -} -function nms_InventoryPlayer_setInventorySlotContents($this, $par1, $par2ItemStack) { - var $var3, var$4; - $var3 = $this.$mainInventory; - var$4 = $var3.data.length; - if ($par1 >= var$4) { - $par1 = $par1 - var$4 | 0; - $var3 = $this.$armorInventory; - } - $var3.data[$par1] = $par2ItemStack; -} -function nms_InventoryPlayer_getStrVsBlock($this, $par1Block) { - var $var2, var$3; - $var2 = 1.0; - if ($this.$mainInventory.data[$this.$currentItem] !== null) { - var$3 = $this.$mainInventory.data[$this.$currentItem]; - nms_Item_$callClinit(); - $var2 = $var2 * nms_Item_itemsList.data[var$3.$itemID0].$getStrVsBlock0(var$3, $par1Block); - } - return $var2; -} -function nms_InventoryPlayer_getSizeInventory($this) { - return $this.$mainInventory.data.length + 4 | 0; -} -function nms_InventoryPlayer_getStackInSlot($this, $par1) { - var $var2, var$3; - $var2 = $this.$mainInventory; - var$3 = $var2.data.length; - if ($par1 >= var$3) { - $par1 = $par1 - var$3 | 0; - $var2 = $this.$armorInventory; - } - return $var2.data[$par1]; -} -function nms_InventoryPlayer_getInvName($this) { - return $rt_s(1033); -} -function nms_InventoryPlayer_isInvNameLocalized($this) { - return 0; -} -function nms_InventoryPlayer_getInventoryStackLimit($this) { - return 64; -} -function nms_InventoryPlayer_getDamageVsEntity($this, $par1Entity) { - var var$2, var$3, var$4, $var2; - var$2 = $this.$currentItem; - var$3 = $this.$mainInventory; - var$4 = var$3.data.length; - if (var$2 >= var$4) { - var$2 = var$2 - var$4 | 0; - var$3 = $this.$armorInventory; - } - $var2 = var$3.data[var$2]; - if ($var2 === null) - var$2 = 1; - else { - nms_Item_$callClinit(); - var$2 = nms_Item_itemsList.data[$var2.$itemID0].$getDamageVsEntity($par1Entity); - } - return var$2; -} -function nms_InventoryPlayer_canHarvestBlock($this, $par1Block) { - var var$2, var$3, var$4, $var2; - if ($par1Block.$blockMaterial.$requiresNoTool) - return 1; - var$2 = $this.$currentItem; - var$3 = $this.$mainInventory; - var$4 = var$3.data.length; - if (var$2 >= var$4) { - var$2 = var$2 - var$4 | 0; - var$3 = $this.$armorInventory; - } - $var2 = var$3.data[var$2]; - if ($var2 === null) - var$2 = 0; - else { - nms_Item_$callClinit(); - var$2 = nms_Item_itemsList.data[$var2.$itemID0].$canHarvestBlock($par1Block); - } - return var$2; -} -function nms_InventoryPlayer_armorItemInSlot($this, $par1) { - return $this.$armorInventory.data[$par1]; -} -function nms_InventoryPlayer_getTotalArmorValue($this) { - var $var1, $var2, var$3; - $var1 = 0; - $var2 = 0; - while ($var2 < $this.$armorInventory.data.length) { - if ($this.$armorInventory.data[$var2] !== null) { - var$3 = $this.$armorInventory.data[$var2]; - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[var$3.$itemID0] instanceof nms_ItemArmor) { - var$3 = $this.$armorInventory.data[$var2]; - $var1 = $var1 + nms_Item_itemsList.data[var$3.$itemID0].$damageReduceAmount | 0; - } - } - $var2 = $var2 + 1 | 0; - } - return $var1; -} -function nms_InventoryPlayer_damageArmor($this, $par1) { - var $var2, 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();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1 = $par1 / 4 | 0; - if ($par1 < 1) - $par1 = 1; - $var2 = 0; - while ($var2 < $this.$armorInventory.data.length) { - if ($this.$armorInventory.data[$var2] !== null) { - var$3 = $this.$armorInventory.data[$var2]; - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[var$3.$itemID0] instanceof nms_ItemArmor) { - var$3 = $this.$armorInventory.data[$var2]; - var$4 = $this.$player; - $ptr = 1; - continue main; - } - } - $var2 = $var2 + 1 | 0; - } - return; - case 1: - nms_ItemStack_damageItem(var$3, $par1, var$4); - if ($rt_suspending()) { - break main; - } - if (!$this.$armorInventory.data[$var2].$stackSize) - $this.$armorInventory.data[$var2] = null; - while (true) { - $var2 = $var2 + 1 | 0; - if ($var2 >= $this.$armorInventory.data.length) - break; - if ($this.$armorInventory.data[$var2] === null) - continue; - var$3 = $this.$armorInventory.data[$var2]; - nms_Item_$callClinit(); - if (!(nms_Item_itemsList.data[var$3.$itemID0] instanceof nms_ItemArmor)) - continue; - else { - var$3 = $this.$armorInventory.data[$var2]; - var$4 = $this.$player; - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, var$3, var$4, $ptr); -} -function nms_InventoryPlayer_dropAllItems($this) { - var $var1; - $var1 = 0; - while ($var1 < $this.$mainInventory.data.length) { - if ($this.$mainInventory.data[$var1] !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($this.$player, $this.$mainInventory.data[$var1], 1); - $this.$mainInventory.data[$var1] = null; - } - $var1 = $var1 + 1 | 0; - } - $var1 = 0; - while ($var1 < $this.$armorInventory.data.length) { - if ($this.$armorInventory.data[$var1] !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($this.$player, $this.$armorInventory.data[$var1], 1); - $this.$armorInventory.data[$var1] = null; - } - $var1 = $var1 + 1 | 0; - } -} -function nms_InventoryPlayer_onInventoryChanged($this) { - $this.$inventoryChanged = 1; -} -function nms_InventoryPlayer_setItemStack($this, $par1ItemStack) { - $this.$itemStack = $par1ItemStack; -} -function nms_InventoryPlayer_getItemStack($this) { - return $this.$itemStack; -} -function nms_InventoryPlayer_hasItemStack($this, $par1ItemStack) { - var $var2, var$3; - $var2 = 0; - while (true) { - if ($var2 >= $this.$armorInventory.data.length) { - $var2 = 0; - while ($var2 < $this.$mainInventory.data.length) { - if ($this.$mainInventory.data[$var2] !== null) { - var$3 = $this.$mainInventory.data[$var2]; - if (var$3.$itemID0 == $par1ItemStack.$itemID0 && var$3.$itemDamage == $par1ItemStack.$itemDamage ? 1 : 0) - return 1; - } - $var2 = $var2 + 1 | 0; - } - return 0; - } - if ($this.$armorInventory.data[$var2] !== null) { - var$3 = $this.$armorInventory.data[$var2]; - if (var$3.$itemID0 == $par1ItemStack.$itemID0 && var$3.$itemDamage == $par1ItemStack.$itemDamage ? 1 : 0) - break; - } - $var2 = $var2 + 1 | 0; - } - return 1; -} -function nleg_FixedFunctionShader() { - var a = this; jl_Object.call(a); - a.$enable_color = 0; - a.$enable_normal = 0; - a.$enable_texture0 = 0; - a.$enable_texture1 = 0; - a.$enable_TEX_GEN_STRQ = 0; - a.$enable_lighting = 0; - a.$enable_fog = 0; - a.$enable_alphatest = 0; - a.$enable_unit0 = 0; - a.$enable_unit1 = 0; - a.$globject = null; - a.$u_matrix_m = null; - a.$u_matrix_p = null; - a.$u_matrix_mn = null; - a.$u_matrix_t = null; - a.$u_fogColor = null; - a.$u_fogMode = null; - a.$u_fogStart = null; - a.$u_fogEnd = null; - a.$u_fogDensity = null; - a.$u_fogPremultiply = null; - a.$u_colorUniform = null; - a.$u_normalUniform = null; - a.$u_alphaTestF = null; - a.$u_textureGenS_M = null; - a.$u_textureGenT_M = null; - a.$u_textureGenR_M = null; - a.$u_textureGenQ_M = null; - a.$u_textureGenS_V = null; - a.$u_textureGenT_V = null; - a.$u_textureGenR_V = null; - a.$u_textureGenQ_V = null; - a.$u_matrix_inverse_m = null; - a.$u_texCoordV0 = null; - a.$u_texCoordV1 = null; - a.$u_light0Pos = null; - a.$u_light1Pos = null; - a.$a_position = 0; - a.$a_texture0 = 0; - a.$a_color = 0; - a.$a_normal = 0; - a.$a_texture1 = 0; - a.$attributeIndexesToEnable = 0; - a.$genericArray = null; - a.$genericBuffer = null; - a.$bufferIsInitialized = 0; - a.$modelBuffer = null; - a.$projectionBuffer = null; - a.$textureBuffer = null; - a.$normalModelBuffer = null; - a.$modelMatrix = null; - a.$projectionMatrix = null; - a.$textureMatrix = null; - a.$normalModelMatrix = null; - a.$inverseModelMatrix = null; - a.$light0Pos = null; - a.$light1Pos = null; - a.$bound = 0; - a.$fogMode = 0; - a.$fogColorR = 0.0; - a.$fogColorG = 0.0; - a.$fogColorB = 0.0; - a.$fogColorA = 0.0; - a.$fogStart = 0.0; - a.$fogEnd = 0.0; - a.$fogDensity = 0.0; - a.$alphaTestValue = 0.0; - a.$tex0x = 0.0; - a.$tex0y = 0.0; - a.$tex1x = 0.0; - a.$tex1y = 0.0; - a.$colorUniformR = 0.0; - a.$colorUniformG = 0.0; - a.$colorUniformB = 0.0; - a.$colorUniformA = 0.0; - a.$normalUniformX = 0.0; - a.$normalUniformY = 0.0; - a.$normalUniformZ = 0.0; -} -var nleg_FixedFunctionShader_instances = null; -var nleg_FixedFunctionShader_shaderSource = null; -function nleg_FixedFunctionShader__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { - var var_11 = new nleg_FixedFunctionShader(); - nleg_FixedFunctionShader__init_0(var_11, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); - return var_11; -} -function nleg_FixedFunctionShader_refreshCoreGL() { - var $i, var$2, var$3; - $i = 0; - while ($i < nleg_FixedFunctionShader_instances.data.length) { - if (nleg_FixedFunctionShader_instances.data[$i] !== null) { - var$2 = nleg_FixedFunctionShader_instances.data[$i].$globject; - nlea_EaglerAdapterImpl2_$callClinit(); - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2.$obj0; - var$3.deleteProgram(var$2); - nleg_FixedFunctionShader_instances.data[$i] = null; - } - $i = $i + 1 | 0; - } - nleg_FixedFunctionShader_shaderSource = null; -} -function nleg_FixedFunctionShader_instance($i) { - var $s, $CC_a_color, $CC_a_normal, $CC_a_texture0, $CC_a_texture1, $CC_TEX_GEN_STRQ, $CC_lighting, $CC_fog, $CC_alphatest, $CC_unit0, $CC_unit1; - $s = nleg_FixedFunctionShader_instances.data[$i]; - if ($s === null) { - $CC_a_color = 0; - $CC_a_normal = 0; - $CC_a_texture0 = 0; - $CC_a_texture1 = 0; - $CC_TEX_GEN_STRQ = 0; - $CC_lighting = 0; - $CC_fog = 0; - $CC_alphatest = 0; - $CC_unit0 = 0; - $CC_unit1 = 0; - if (($i & 1) == 1) - $CC_a_color = 1; - if (($i & 2) == 2) - $CC_a_normal = 1; - if (($i & 4) == 4) - $CC_a_texture0 = 1; - if (($i & 8) == 8) - $CC_a_texture1 = 1; - if (($i & 16) == 16) - $CC_TEX_GEN_STRQ = 1; - if (($i & 32) == 32) - $CC_lighting = 1; - if (($i & 64) == 64) - $CC_fog = 1; - if (($i & 128) == 128) - $CC_alphatest = 1; - if (($i & 256) == 256) - $CC_unit0 = 1; - if (($i & 512) == 512) - $CC_unit1 = 1; - $s = nleg_FixedFunctionShader__init_($i, $CC_a_color, $CC_a_normal, $CC_a_texture0, $CC_a_texture1, $CC_TEX_GEN_STRQ, $CC_lighting, $CC_fog, $CC_alphatest, $CC_unit0, $CC_unit1); - nleg_FixedFunctionShader_instances.data[$i] = $s; - } - return $s; -} -function nleg_FixedFunctionShader__init_0($this, $j, $CC_a_color, $CC_a_normal, $CC_a_texture0, $CC_a_texture1, $CC_TEX_GEN_STRQ, $CC_lighting, $CC_fog, $CC_alphatest, $CC_unit0, $CC_unit1) { - var $source, $v, $f; - jl_Object__init_0($this); - $this.$u_matrix_m = null; - $this.$u_matrix_p = null; - $this.$u_matrix_mn = null; - $this.$u_matrix_t = null; - $this.$u_fogColor = null; - $this.$u_fogMode = null; - $this.$u_fogStart = null; - $this.$u_fogEnd = null; - $this.$u_fogDensity = null; - $this.$u_fogPremultiply = null; - $this.$u_colorUniform = null; - $this.$u_normalUniform = null; - $this.$u_alphaTestF = null; - $this.$u_textureGenS_M = null; - $this.$u_textureGenT_M = null; - $this.$u_textureGenR_M = null; - $this.$u_textureGenQ_M = null; - $this.$u_textureGenS_V = null; - $this.$u_textureGenT_V = null; - $this.$u_textureGenR_V = null; - $this.$u_textureGenQ_V = null; - $this.$u_matrix_inverse_m = null; - $this.$u_texCoordV0 = null; - $this.$u_texCoordV1 = null; - $this.$u_light0Pos = null; - $this.$u_light1Pos = null; - $this.$bufferIsInitialized = 0; - $this.$modelBuffer = $rt_createFloatArray(16); - $this.$projectionBuffer = $rt_createFloatArray(16); - $this.$textureBuffer = $rt_createFloatArray(16); - $this.$normalModelBuffer = $rt_createFloatArray(9); - $this.$modelMatrix = nlegv_Matrix4f_setZero0(nlegv_Matrix4f__init_0()); - $this.$projectionMatrix = nlegv_Matrix4f_setZero0(nlegv_Matrix4f__init_0()); - $this.$textureMatrix = nlegv_Matrix4f_setZero0(nlegv_Matrix4f__init_0()); - $this.$normalModelMatrix = nlegv_Matrix3f_setZero(nlegv_Matrix3f__init_0()); - $this.$inverseModelMatrix = nlegv_Matrix4f_setZero0(nlegv_Matrix4f__init_0()); - $this.$light0Pos = nlegv_Vector4f__init_0(); - $this.$light1Pos = nlegv_Vector4f__init_0(); - $this.$bound = 0; - $this.$fogMode = 0; - $this.$fogColorR = 0.0; - $this.$fogColorG = 0.0; - $this.$fogColorB = 0.0; - $this.$fogColorA = 0.0; - $this.$fogStart = 0.0; - $this.$fogEnd = 0.0; - $this.$fogDensity = 0.0; - $this.$alphaTestValue = 0.0; - $this.$tex0x = 0.0; - $this.$tex0y = 0.0; - $this.$tex1x = 0.0; - $this.$tex1y = 0.0; - $this.$colorUniformR = 0.0; - $this.$colorUniformG = 0.0; - $this.$colorUniformB = 0.0; - $this.$colorUniformA = 0.0; - $this.$normalUniformX = 0.0; - $this.$normalUniformY = 0.0; - $this.$normalUniformZ = 0.0; - $this.$enable_color = $CC_a_color; - $this.$enable_normal = $CC_a_normal; - $this.$enable_texture0 = $CC_a_texture0; - $this.$enable_texture1 = $CC_a_texture1; - $this.$enable_TEX_GEN_STRQ = $CC_TEX_GEN_STRQ; - $this.$enable_lighting = $CC_lighting; - $this.$enable_fog = $CC_fog; - $this.$enable_alphatest = $CC_alphatest; - $this.$enable_unit0 = $CC_unit0; - $this.$enable_unit1 = $CC_unit1; - if (nleg_FixedFunctionShader_shaderSource === null) - nleg_FixedFunctionShader_shaderSource = nlea_EaglerAdapterImpl2_fileContents($rt_s(960)); - $source = $rt_s(44); - if ($this.$enable_color) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1034))); - if ($this.$enable_normal) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1035))); - if ($this.$enable_texture0) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1036))); - if ($this.$enable_texture1) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1037))); - if ($this.$enable_TEX_GEN_STRQ) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1038))); - if ($this.$enable_lighting) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1039))); - if ($this.$enable_fog) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1040))); - if ($this.$enable_alphatest) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1041))); - if ($this.$enable_unit0) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1042))); - if ($this.$enable_unit1) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1043))); - if (!nlea_EaglerAdapterImpl2__wisAnisotropicPatched()) - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), $rt_s(1044))); - $source = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $source), nleg_FixedFunctionShader_shaderSource)); - $v = nlea_EaglerAdapterImpl2__wglCreateShader(35633); - nlea_EaglerAdapterImpl2__wglShaderSource($v, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(230)), $source))); - nlea_EaglerAdapterImpl2__wglCompileShader($v); - if (!nlea_EaglerAdapterImpl2__wglGetShaderCompiled($v)) { - 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__wglGetShaderInfoLog($v))), $rt_s(60), $rt_s(1045))); - $rt_throw(jl_RuntimeException__init_($rt_s(1046))); - } - $f = nlea_EaglerAdapterImpl2__wglCreateShader(35632); - nlea_EaglerAdapterImpl2__wglShaderSource($f, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(231)), $source))); - nlea_EaglerAdapterImpl2__wglCompileShader($f); - if (!nlea_EaglerAdapterImpl2__wglGetShaderCompiled($f)) { - 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__wglGetShaderInfoLog($f))), $rt_s(60), $rt_s(1047))); - $rt_throw(jl_RuntimeException__init_($rt_s(1046))); - } - $this.$globject = nlea_EaglerAdapterImpl2__wglCreateProgram(); - nlea_EaglerAdapterImpl2__wglAttachShader($this.$globject, $v); - nlea_EaglerAdapterImpl2__wglAttachShader($this.$globject, $f); - nlea_EaglerAdapterImpl2__wglLinkProgram($this.$globject); - nlea_EaglerAdapterImpl2__wglDetachShader($this.$globject, $v); - nlea_EaglerAdapterImpl2__wglDetachShader($this.$globject, $f); - nlea_EaglerAdapterImpl2__wglDeleteShader($v); - nlea_EaglerAdapterImpl2__wglDeleteShader($f); - if (!nlea_EaglerAdapterImpl2__wglGetProgramLinked($this.$globject)) { - 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($this.$globject))), $rt_s(60), $rt_s(1048))); - $rt_throw(jl_RuntimeException__init_($rt_s(1046))); - } - nlea_EaglerAdapterImpl2__wglUseProgram($this.$globject); - $this.$u_matrix_m = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(236)); - $this.$u_matrix_mn = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1049)); - $this.$u_matrix_p = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(237)); - $this.$u_matrix_t = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1050)); - $this.$u_colorUniform = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1051)); - if ($this.$enable_lighting) { - $this.$u_normalUniform = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1052)); - $this.$u_light0Pos = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1053)); - $this.$u_light1Pos = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1054)); - } - if ($this.$enable_fog) { - $this.$u_fogColor = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1055)); - $this.$u_fogMode = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1056)); - $this.$u_fogStart = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1057)); - $this.$u_fogEnd = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1058)); - $this.$u_fogDensity = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1059)); - $this.$u_fogPremultiply = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1060)); - } - if ($this.$enable_alphatest) - $this.$u_alphaTestF = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1061)); - if ($this.$enable_TEX_GEN_STRQ) { - $this.$u_textureGenS_M = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1062)); - $this.$u_textureGenT_M = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1063)); - $this.$u_textureGenR_M = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1064)); - $this.$u_textureGenQ_M = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1065)); - $this.$u_textureGenS_V = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1066)); - $this.$u_textureGenT_V = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1067)); - $this.$u_textureGenR_V = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1068)); - $this.$u_textureGenQ_V = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1069)); - $this.$u_matrix_inverse_m = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1070)); - } - nlea_EaglerAdapterImpl2__wglUniform1i(nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1071)), 0); - nlea_EaglerAdapterImpl2__wglUniform1i(nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1072)), 1); - $this.$u_texCoordV0 = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1073)); - $this.$u_texCoordV1 = nlea_EaglerAdapterImpl2__wglGetUniformLocation($this.$globject, $rt_s(1074)); - $j = 1; - $this.$a_position = 0; - nlea_EaglerAdapterImpl2__wglBindAttributeLocation($this.$globject, $this.$a_position, $rt_s(1075)); - if (!$this.$enable_texture0) - $this.$a_texture0 = (-1); - else { - $this.$a_texture0 = $j; - nlea_EaglerAdapterImpl2__wglBindAttributeLocation($this.$globject, $this.$a_texture0, $rt_s(1076)); - $j = 2; - } - if (!$this.$enable_color) - $this.$a_color = (-1); - else { - $CC_a_color = $j + 1 | 0; - $this.$a_color = $j; - nlea_EaglerAdapterImpl2__wglBindAttributeLocation($this.$globject, $this.$a_color, $rt_s(1077)); - $j = $CC_a_color; - } - if (!$this.$enable_normal) - $this.$a_normal = (-1); - else { - $CC_a_color = $j + 1 | 0; - $this.$a_normal = $j; - nlea_EaglerAdapterImpl2__wglBindAttributeLocation($this.$globject, $this.$a_normal, $rt_s(1078)); - $j = $CC_a_color; - } - if (!$this.$enable_texture1) - $this.$a_texture1 = (-1); - else { - $CC_a_color = $j + 1 | 0; - $this.$a_texture1 = $j; - nlea_EaglerAdapterImpl2__wglBindAttributeLocation($this.$globject, $this.$a_texture1, $rt_s(1079)); - $j = $CC_a_color; - } - $this.$attributeIndexesToEnable = $j; - $this.$genericArray = nlea_EaglerAdapterImpl2__wglCreateVertexArray(); - $this.$genericBuffer = nlea_EaglerAdapterImpl2__wglCreateBuffer(); - nlea_EaglerAdapterImpl2__wglBindVertexArray($this.$genericArray); - nlea_EaglerAdapterImpl2__wglBindBuffer(34962, $this.$genericBuffer); - nleg_FixedFunctionShader_setupArrayForProgram($this); -} -function nleg_FixedFunctionShader_setupArrayForProgram($this) { - var var$1, var$2; - var$1 = $this.$a_position; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.enableVertexAttribArray(var$1); - var$2 = $this.$a_position; - nlea_EaglerAdapterImpl2_webgl.vertexAttribPointer(var$2, 3, 5126, !!0, 32, 0); - if ($this.$enable_texture0) { - var$1 = $this.$a_texture0; - nlea_EaglerAdapterImpl2_webgl.enableVertexAttribArray(var$1); - var$1 = $this.$a_texture0; - nlea_EaglerAdapterImpl2_webgl.vertexAttribPointer(var$1, 2, 5126, !!0, 32, 12); - } - if ($this.$enable_color) { - var$1 = $this.$a_color; - nlea_EaglerAdapterImpl2_webgl.enableVertexAttribArray(var$1); - var$1 = $this.$a_color; - nlea_EaglerAdapterImpl2_webgl.vertexAttribPointer(var$1, 4, 5121, !!1, 32, 20); - } - if ($this.$enable_normal) { - var$1 = $this.$a_normal; - nlea_EaglerAdapterImpl2_webgl.enableVertexAttribArray(var$1); - var$1 = $this.$a_normal; - nlea_EaglerAdapterImpl2_webgl.vertexAttribPointer(var$1, 4, 5121, !!1, 32, 24); - } - if ($this.$enable_texture1) { - var$1 = $this.$a_texture1; - nlea_EaglerAdapterImpl2_webgl.enableVertexAttribArray(var$1); - var$1 = $this.$a_texture1; - nlea_EaglerAdapterImpl2_webgl.vertexAttribPointer(var$1, 2, 5122, !!0, 32, 28); - } -} -function nleg_FixedFunctionShader_useProgram($this) { - nlea_EaglerAdapterImpl2__wglUseProgram($this.$globject); -} -function nleg_FixedFunctionShader_unuseProgram($this) { - return; -} -function nleg_FixedFunctionShader_setModelMatrix($this, $mat) { - var var$2; - var$2 = $this.$modelMatrix; - if (!(var$2 instanceof nlegv_Matrix4f && nlegv_Matrix4f_equal($mat, var$2) ? 1 : 0)) { - nlegv_Matrix4f_store0(nlegv_Matrix4f_load($mat, $this.$modelMatrix), $this.$modelBuffer); - nlea_EaglerAdapterImpl2__wglUniformMat4fv($this.$u_matrix_m, $this.$modelBuffer); - if ($this.$enable_TEX_GEN_STRQ) { - $mat = nlegv_Matrix4f_load($mat, $this.$inverseModelMatrix); - nlegv_Matrix4f_invert($mat, $mat); - nlegv_Matrix4f_store0($this.$inverseModelMatrix, $this.$modelBuffer); - nlea_EaglerAdapterImpl2__wglUniformMat4fv($this.$u_matrix_inverse_m, $this.$modelBuffer); - } - } -} -function nleg_FixedFunctionShader_setModelNormalMatrix($this, $mat) { - var var$2; - var$2 = $this.$normalModelMatrix; - if (!(var$2 instanceof nlegv_Matrix3f && nlegv_Matrix3f_equal($mat, var$2) ? 1 : 0)) { - nlegv_Matrix3f_store(nlegv_Matrix3f_load0($mat, $this.$normalModelMatrix), $this.$normalModelBuffer); - nlea_EaglerAdapterImpl2__wglUniformMat3fv($this.$u_matrix_mn, $this.$normalModelBuffer); - } -} -function nleg_FixedFunctionShader_setProjectionMatrix($this, $mat) { - var var$2; - var$2 = $this.$projectionMatrix; - if (!(var$2 instanceof nlegv_Matrix4f && nlegv_Matrix4f_equal($mat, var$2) ? 1 : 0)) { - nlegv_Matrix4f_store0(nlegv_Matrix4f_load($mat, $this.$projectionMatrix), $this.$projectionBuffer); - nlea_EaglerAdapterImpl2__wglUniformMat4fv($this.$u_matrix_p, $this.$projectionBuffer); - } -} -function nleg_FixedFunctionShader_setTextureMatrix($this, $mat) { - var var$2; - var$2 = $this.$textureMatrix; - if (!(var$2 instanceof nlegv_Matrix4f && nlegv_Matrix4f_equal($mat, var$2) ? 1 : 0)) { - nlegv_Matrix4f_store0(nlegv_Matrix4f_load($mat, $this.$textureMatrix), $this.$textureBuffer); - nlea_EaglerAdapterImpl2__wglUniformMat4fv($this.$u_matrix_t, $this.$textureBuffer); - } -} -function nleg_FixedFunctionShader_setLightPositions($this, $pos0, $pos1) { - var var$3, var$4, var$5, var$6; - if (!(nlegv_Vector4f_equals($pos0, $this.$light0Pos) && nlegv_Vector4f_equals($pos1, $this.$light1Pos))) { - var$3 = $this.$light0Pos; - var$3.$x0 = $pos0.$x0; - var$3.$y0 = $pos0.$y0; - var$3.$z0 = $pos0.$z0; - var$3.$w = $pos0.$w; - $pos0 = $this.$light1Pos; - $pos0.$x0 = $pos1.$x0; - $pos0.$y0 = $pos1.$y0; - $pos0.$z0 = $pos1.$z0; - $pos0.$w = $pos1.$w; - $pos0 = $this.$u_light0Pos; - var$4 = $this.$light0Pos.$x0; - var$5 = $this.$light0Pos.$y0; - var$6 = $this.$light0Pos.$z0; - nlea_EaglerAdapterImpl2_$callClinit(); - if ($pos0 !== null) { - $pos1 = nlea_EaglerAdapterImpl2_webgl; - var$3 = $pos0.$obj3; - $pos1.uniform3f(var$3, var$4, var$5, var$6); - } - $pos0 = $this.$u_light1Pos; - var$4 = $this.$light1Pos.$x0; - var$5 = $this.$light1Pos.$y0; - var$6 = $this.$light1Pos.$z0; - if ($pos0 !== null) { - $pos1 = nlea_EaglerAdapterImpl2_webgl; - var$3 = $pos0.$obj3; - $pos1.uniform3f(var$3, var$4, var$5, var$6); - } - } -} -function nleg_FixedFunctionShader_setFogMode($this, $mode) { - var var$2, var$3, var$4, var$5; - if ($this.$fogMode != $mode) { - $this.$fogMode = $mode; - var$2 = $this.$u_fogMode; - var$3 = $mode % 2 | 0; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$2 !== null) { - var$4 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2.$obj3; - var$4.uniform1i(var$2, var$3); - } - var$2 = $this.$u_fogPremultiply; - var$5 = $mode / 2 | 0; - if (var$2 !== null) { - var$4 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2.$obj3; - var$4.uniform1f(var$2, var$5); - } - } -} -function nleg_FixedFunctionShader_setFogColor($this, $r, $g, $b, $a) { - var var$5, var$6; - if (!($this.$fogColorR === $r && $this.$fogColorG === $g && $this.$fogColorB === $b && $this.$fogColorA === $a)) { - $this.$fogColorR = $r; - $this.$fogColorG = $g; - $this.$fogColorB = $b; - $this.$fogColorA = $a; - var$5 = $this.$u_fogColor; - $r = $this.$fogColorR; - $a = $this.$fogColorG; - $g = $this.$fogColorB; - $b = $this.$fogColorA; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$5 !== null) { - var$6 = nlea_EaglerAdapterImpl2_webgl; - var$5 = var$5.$obj3; - var$6.uniform4f(var$5, $r, $a, $g, $b); - } - } -} -function nleg_FixedFunctionShader_setFogStartEnd($this, $s, $e) { - var var$3, var$4; - if (!($this.$fogStart === $s && $this.$fogEnd === $e)) { - $this.$fogStart = $s; - $this.$fogEnd = $e; - var$3 = $this.$u_fogStart; - $s = $this.$fogStart; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$3 !== null) { - var$4 = nlea_EaglerAdapterImpl2_webgl; - var$3 = var$3.$obj3; - var$4.uniform1f(var$3, $s); - } - var$3 = $this.$u_fogEnd; - $s = $this.$fogEnd; - if (var$3 !== null) { - var$4 = nlea_EaglerAdapterImpl2_webgl; - var$3 = var$3.$obj3; - var$4.uniform1f(var$3, $s); - } - } -} -function nleg_FixedFunctionShader_setFogDensity($this, $d) { - var var$2, var$3; - if ($this.$fogDensity !== $d) { - $this.$fogDensity = $d; - var$2 = $this.$u_fogDensity; - $d = $this.$fogDensity; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$2 !== null) { - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2.$obj3; - var$3.uniform1f(var$2, $d); - } - } -} -function nleg_FixedFunctionShader_setAlphaTest($this, $limit) { - var var$2, var$3; - if ($this.$alphaTestValue !== $limit) { - $this.$alphaTestValue = $limit; - var$2 = $this.$u_alphaTestF; - $limit = $this.$alphaTestValue; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$2 !== null) { - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2.$obj3; - var$3.uniform1f(var$2, $limit); - } - } -} -function nleg_FixedFunctionShader_setTex0Coords($this, $x, $y) { - var var$3, var$4; - if (!($this.$tex0x === $x && $this.$tex0y === $y)) { - $this.$tex0x = $x; - $this.$tex0y = $y; - var$3 = $this.$u_texCoordV0; - $x = $this.$tex0x; - $y = $this.$tex0y; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$3 !== null) { - var$4 = nlea_EaglerAdapterImpl2_webgl; - var$3 = var$3.$obj3; - var$4.uniform2f(var$3, $x, $y); - } - } -} -function nleg_FixedFunctionShader_setTex1Coords($this, $x, $y) { - var var$3, var$4; - if (!($this.$tex1x === $x && $this.$tex1y === $y)) { - $this.$tex1x = $x; - $this.$tex1y = $y; - var$3 = $this.$u_texCoordV1; - $x = $this.$tex1x; - $y = $this.$tex1y; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$3 !== null) { - var$4 = nlea_EaglerAdapterImpl2_webgl; - var$3 = var$3.$obj3; - var$4.uniform2f(var$3, $x, $y); - } - } -} -function nleg_FixedFunctionShader_setTexGenS($this, $plane, $x, $y, $z, $w) { - var var$6, var$7, var$8, var$9; - var$6 = $this.$u_textureGenS_M; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$6 !== null) { - var$7 = nlea_EaglerAdapterImpl2_webgl; - var$8 = var$6.$obj3; - var$7.uniform1i(var$8, $plane); - } - var$6 = $this.$u_textureGenS_V; - if (var$6 !== null) { - var$9 = nlea_EaglerAdapterImpl2_webgl; - var$6 = var$6.$obj3; - var$9.uniform4f(var$6, $x, $y, $z, $w); - } -} -function nleg_FixedFunctionShader_setTexGenT($this, $plane, $x, $y, $z, $w) { - var var$6, var$7, var$8, var$9; - var$6 = $this.$u_textureGenT_M; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$6 !== null) { - var$7 = nlea_EaglerAdapterImpl2_webgl; - var$8 = var$6.$obj3; - var$7.uniform1i(var$8, $plane); - } - var$6 = $this.$u_textureGenT_V; - if (var$6 !== null) { - var$9 = nlea_EaglerAdapterImpl2_webgl; - var$6 = var$6.$obj3; - var$9.uniform4f(var$6, $x, $y, $z, $w); - } -} -function nleg_FixedFunctionShader_setTexGenR($this, $plane, $x, $y, $z, $w) { - var var$6, var$7, var$8, var$9; - var$6 = $this.$u_textureGenR_M; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$6 !== null) { - var$7 = nlea_EaglerAdapterImpl2_webgl; - var$8 = var$6.$obj3; - var$7.uniform1i(var$8, $plane); - } - var$6 = $this.$u_textureGenR_V; - if (var$6 !== null) { - var$9 = nlea_EaglerAdapterImpl2_webgl; - var$6 = var$6.$obj3; - var$9.uniform4f(var$6, $x, $y, $z, $w); - } -} -function nleg_FixedFunctionShader_setTexGenQ($this, $plane, $x, $y, $z, $w) { - var var$6, var$7, var$8, var$9; - var$6 = $this.$u_textureGenQ_M; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$6 !== null) { - var$7 = nlea_EaglerAdapterImpl2_webgl; - var$8 = var$6.$obj3; - var$7.uniform1i(var$8, $plane); - } - var$6 = $this.$u_textureGenQ_V; - if (var$6 !== null) { - var$9 = nlea_EaglerAdapterImpl2_webgl; - var$6 = var$6.$obj3; - var$9.uniform4f(var$6, $x, $y, $z, $w); - } -} -function nleg_FixedFunctionShader_setColor($this, $r, $g, $b, $a) { - var var$5, var$6; - if (!($this.$colorUniformR === $r && $this.$colorUniformG === $g && $this.$colorUniformB === $b && $this.$colorUniformA === $a)) { - $this.$colorUniformR = $r; - $this.$colorUniformG = $g; - $this.$colorUniformB = $b; - $this.$colorUniformA = $a; - var$5 = $this.$u_colorUniform; - $r = $this.$colorUniformR; - $a = $this.$colorUniformG; - $g = $this.$colorUniformB; - $b = $this.$colorUniformA; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$5 !== null) { - var$6 = nlea_EaglerAdapterImpl2_webgl; - var$5 = var$5.$obj3; - var$6.uniform4f(var$5, $r, $a, $g, $b); - } - } -} -function nleg_FixedFunctionShader_setNormal($this, $x, $y, $z) { - var var$4, var$5; - if (!($this.$normalUniformX === $x && $this.$normalUniformY === $y && $this.$normalUniformZ === $z)) { - $this.$normalUniformX = $x; - $this.$normalUniformY = $y; - $this.$normalUniformZ = $z; - var$4 = $this.$u_normalUniform; - $x = $this.$normalUniformX; - $y = $this.$normalUniformY; - $z = $this.$normalUniformZ; - nlea_EaglerAdapterImpl2_$callClinit(); - if (var$4 !== null) { - var$5 = nlea_EaglerAdapterImpl2_webgl; - var$4 = var$4.$obj3; - var$5.uniform3f(var$4, $x, $y, $z); - } - } -} -function nleg_FixedFunctionShader__clinit_() { - nleg_FixedFunctionShader_instances = $rt_createArray(nleg_FixedFunctionShader, 1024); - nleg_FixedFunctionShader_shaderSource = null; -} -function nms_EnumOptions() { - var a = this; jl_Enum.call(a); - a.$enumFloat = 0; - a.$enumBoolean = 0; - a.$enumString = null; -} -var nms_EnumOptions_MUSIC = null; -var nms_EnumOptions_SOUND = null; -var nms_EnumOptions_INVERT_MOUSE = null; -var nms_EnumOptions_SENSITIVITY = null; -var nms_EnumOptions_FOV = null; -var nms_EnumOptions_GAMMA = null; -var nms_EnumOptions_RENDER_DISTANCE = null; -var nms_EnumOptions_VIEW_BOBBING = null; -var nms_EnumOptions_ANAGLYPH = null; -var nms_EnumOptions_FRAMERATE_LIMIT = null; -var nms_EnumOptions_DIFFICULTY = null; -var nms_EnumOptions_GRAPHICS = null; -var nms_EnumOptions_AMBIENT_OCCLUSION = null; -var nms_EnumOptions_GUI_SCALE = null; -var nms_EnumOptions_RENDER_CLOUDS = null; -var nms_EnumOptions_PARTICLES = null; -var nms_EnumOptions_CHAT_VISIBILITY = null; -var nms_EnumOptions_CHAT_COLOR = null; -var nms_EnumOptions_CHAT_LINKS = null; -var nms_EnumOptions_CHAT_OPACITY = null; -var nms_EnumOptions_CHAT_LINKS_PROMPT = null; -var nms_EnumOptions_USE_SERVER_TEXTURES = null; -var nms_EnumOptions_SNOOPER_ENABLED = null; -var nms_EnumOptions_USE_FULLSCREEN = null; -var nms_EnumOptions_ENABLE_VSYNC = null; -var nms_EnumOptions_ENABLE_FOG = null; -var nms_EnumOptions_SHOW_CAPE = null; -var nms_EnumOptions_ANTIALIASING = null; -var nms_EnumOptions_CHAT_SCALE = null; -var nms_EnumOptions_CHAT_WIDTH = null; -var nms_EnumOptions_CHAT_HEIGHT_FOCUSED = null; -var nms_EnumOptions_CHAT_HEIGHT_UNFOCUSED = null; -var nms_EnumOptions_$VALUES = null; -function nms_EnumOptions__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EnumOptions(); - nms_EnumOptions__init_0(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EnumOptions_getEnumOptions($par0) { - var $var1, $var2, $var3, $var4; - $var1 = nms_EnumOptions_$VALUES.$clone().data; - $var2 = $var1.length; - $var3 = 0; - while (true) { - if ($var3 >= $var2) - return null; - $var4 = $var1[$var3]; - if ($var4.$ordinal == $par0) - break; - $var3 = $var3 + 1 | 0; - } - return $var4; -} -function nms_EnumOptions__init_0($this, var$1, var$2, $par3Str, $par4, $par5) { - $this.$name2 = var$1; - $this.$ordinal = var$2; - $this.$enumString = $par3Str; - $this.$enumFloat = $par4; - $this.$enumBoolean = $par5; -} -function nms_EnumOptions_getEnumFloat($this) { - return $this.$enumFloat; -} -function nms_EnumOptions_getEnumBoolean($this) { - return $this.$enumBoolean; -} -function nms_EnumOptions_returnEnumOrdinal($this) { - return $this.$ordinal; -} -function nms_EnumOptions_getEnumString($this) { - return $this.$enumString; -} -function nms_EnumOptions__clinit_() { - var var$1, var$2; - nms_EnumOptions_MUSIC = nms_EnumOptions__init_($rt_s(1080), 0, $rt_s(1081), 1, 0); - nms_EnumOptions_SOUND = nms_EnumOptions__init_($rt_s(1082), 1, $rt_s(1083), 1, 0); - nms_EnumOptions_INVERT_MOUSE = nms_EnumOptions__init_($rt_s(1084), 2, $rt_s(1085), 0, 1); - nms_EnumOptions_SENSITIVITY = nms_EnumOptions__init_($rt_s(1086), 3, $rt_s(1087), 1, 0); - nms_EnumOptions_FOV = nms_EnumOptions__init_($rt_s(1088), 4, $rt_s(1089), 1, 0); - nms_EnumOptions_GAMMA = nms_EnumOptions__init_($rt_s(1090), 5, $rt_s(1091), 1, 0); - nms_EnumOptions_RENDER_DISTANCE = nms_EnumOptions__init_($rt_s(1092), 6, $rt_s(1093), 0, 0); - nms_EnumOptions_VIEW_BOBBING = nms_EnumOptions__init_($rt_s(1094), 7, $rt_s(1095), 0, 1); - nms_EnumOptions_ANAGLYPH = nms_EnumOptions__init_($rt_s(1096), 8, $rt_s(1097), 0, 1); - nms_EnumOptions_FRAMERATE_LIMIT = nms_EnumOptions__init_($rt_s(1098), 9, $rt_s(1099), 0, 0); - nms_EnumOptions_DIFFICULTY = nms_EnumOptions__init_($rt_s(1100), 10, $rt_s(1101), 0, 0); - nms_EnumOptions_GRAPHICS = nms_EnumOptions__init_($rt_s(1102), 11, $rt_s(1103), 0, 0); - nms_EnumOptions_AMBIENT_OCCLUSION = nms_EnumOptions__init_($rt_s(1104), 12, $rt_s(1105), 0, 0); - nms_EnumOptions_GUI_SCALE = nms_EnumOptions__init_($rt_s(1106), 13, $rt_s(1107), 0, 0); - nms_EnumOptions_RENDER_CLOUDS = nms_EnumOptions__init_($rt_s(1108), 14, $rt_s(1109), 0, 1); - nms_EnumOptions_PARTICLES = nms_EnumOptions__init_($rt_s(1110), 15, $rt_s(1111), 0, 0); - nms_EnumOptions_CHAT_VISIBILITY = nms_EnumOptions__init_($rt_s(1112), 16, $rt_s(1113), 0, 0); - nms_EnumOptions_CHAT_COLOR = nms_EnumOptions__init_($rt_s(1114), 17, $rt_s(1115), 0, 1); - nms_EnumOptions_CHAT_LINKS = nms_EnumOptions__init_($rt_s(1116), 18, $rt_s(1117), 0, 1); - nms_EnumOptions_CHAT_OPACITY = nms_EnumOptions__init_($rt_s(1118), 19, $rt_s(1119), 1, 0); - nms_EnumOptions_CHAT_LINKS_PROMPT = nms_EnumOptions__init_($rt_s(1120), 20, $rt_s(1121), 0, 1); - nms_EnumOptions_USE_SERVER_TEXTURES = nms_EnumOptions__init_($rt_s(1122), 21, $rt_s(1123), 0, 1); - nms_EnumOptions_SNOOPER_ENABLED = nms_EnumOptions__init_($rt_s(1124), 22, $rt_s(1125), 0, 1); - nms_EnumOptions_USE_FULLSCREEN = nms_EnumOptions__init_($rt_s(1126), 23, $rt_s(1127), 0, 1); - nms_EnumOptions_ENABLE_VSYNC = nms_EnumOptions__init_($rt_s(1128), 24, $rt_s(1129), 0, 1); - nms_EnumOptions_ENABLE_FOG = nms_EnumOptions__init_($rt_s(1130), 25, $rt_s(1131), 0, 1); - nms_EnumOptions_SHOW_CAPE = nms_EnumOptions__init_($rt_s(1132), 26, $rt_s(1133), 0, 1); - nms_EnumOptions_ANTIALIASING = nms_EnumOptions__init_($rt_s(1134), 27, $rt_s(1135), 0, 0); - nms_EnumOptions_CHAT_SCALE = nms_EnumOptions__init_($rt_s(1136), 28, $rt_s(1137), 1, 0); - nms_EnumOptions_CHAT_WIDTH = nms_EnumOptions__init_($rt_s(1138), 29, $rt_s(1139), 1, 0); - nms_EnumOptions_CHAT_HEIGHT_FOCUSED = nms_EnumOptions__init_($rt_s(1140), 30, $rt_s(1141), 1, 0); - nms_EnumOptions_CHAT_HEIGHT_UNFOCUSED = nms_EnumOptions__init_($rt_s(1142), 31, $rt_s(1143), 1, 0); - var$1 = $rt_createArray(nms_EnumOptions, 32); - var$2 = var$1.data; - var$2[0] = nms_EnumOptions_MUSIC; - var$2[1] = nms_EnumOptions_SOUND; - var$2[2] = nms_EnumOptions_INVERT_MOUSE; - var$2[3] = nms_EnumOptions_SENSITIVITY; - var$2[4] = nms_EnumOptions_FOV; - var$2[5] = nms_EnumOptions_GAMMA; - var$2[6] = nms_EnumOptions_RENDER_DISTANCE; - var$2[7] = nms_EnumOptions_VIEW_BOBBING; - var$2[8] = nms_EnumOptions_ANAGLYPH; - var$2[9] = nms_EnumOptions_FRAMERATE_LIMIT; - var$2[10] = nms_EnumOptions_DIFFICULTY; - var$2[11] = nms_EnumOptions_GRAPHICS; - var$2[12] = nms_EnumOptions_AMBIENT_OCCLUSION; - var$2[13] = nms_EnumOptions_GUI_SCALE; - var$2[14] = nms_EnumOptions_RENDER_CLOUDS; - var$2[15] = nms_EnumOptions_PARTICLES; - var$2[16] = nms_EnumOptions_CHAT_VISIBILITY; - var$2[17] = nms_EnumOptions_CHAT_COLOR; - var$2[18] = nms_EnumOptions_CHAT_LINKS; - var$2[19] = nms_EnumOptions_CHAT_OPACITY; - var$2[20] = nms_EnumOptions_CHAT_LINKS_PROMPT; - var$2[21] = nms_EnumOptions_USE_SERVER_TEXTURES; - var$2[22] = nms_EnumOptions_SNOOPER_ENABLED; - var$2[23] = nms_EnumOptions_USE_FULLSCREEN; - var$2[24] = nms_EnumOptions_ENABLE_VSYNC; - var$2[25] = nms_EnumOptions_ENABLE_FOG; - var$2[26] = nms_EnumOptions_SHOW_CAPE; - var$2[27] = nms_EnumOptions_ANTIALIASING; - var$2[28] = nms_EnumOptions_CHAT_SCALE; - var$2[29] = nms_EnumOptions_CHAT_WIDTH; - var$2[30] = nms_EnumOptions_CHAT_HEIGHT_FOCUSED; - var$2[31] = nms_EnumOptions_CHAT_HEIGHT_UNFOCUSED; - nms_EnumOptions_$VALUES = var$1; -} -function nms_GuiContainer() { - var a = this; nms_GuiScreen.call(a); - a.$xSize = 0; - a.$ySize0 = 0; - a.$inventorySlots0 = null; - a.$guiLeft = 0; - a.$guiTop = 0; - a.$theSlot = null; - a.$clickedSlot = null; - a.$isRightMouseClick = 0; - a.$draggedStack = null; - a.$field_85049_r = 0; - a.$field_85048_s = 0; - a.$returningStackDestSlot = null; - a.$returningStackTime = Long_ZERO; - a.$returningStack = null; - a.$field_92033_y = null; - a.$field_92032_z = Long_ZERO; - a.$field_94077_p = null; - a.$field_94076_q = 0; - a.$field_94071_C = 0; - a.$field_94067_D = 0; - a.$field_94068_E = 0; - a.$field_94069_F = 0; - a.$field_94070_G = Long_ZERO; - a.$field_94072_H = null; - a.$field_94073_I = 0; - a.$field_94074_J = 0; - a.$field_94075_K = null; -} -var nms_GuiContainer_itemRenderer = null; -var nms_GuiContainer_items = null; -function nms_GuiContainer__init_0(var_0) { - var var_1 = new nms_GuiContainer(); - nms_GuiContainer__init_(var_1, var_0); - return var_1; -} -function nms_GuiContainer__init_($this, $par1Container) { - var var$2; - nms_GuiScreen__init_($this); - $this.$xSize = 176; - $this.$ySize0 = 166; - $this.$clickedSlot = null; - $this.$isRightMouseClick = 0; - $this.$draggedStack = null; - $this.$field_85049_r = 0; - $this.$field_85048_s = 0; - $this.$returningStackDestSlot = null; - $this.$returningStackTime = Long_ZERO; - $this.$returningStack = null; - $this.$field_92033_y = null; - $this.$field_92032_z = Long_ZERO; - var$2 = new ju_HashSet; - var$2.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$field_94077_p = var$2; - $this.$field_94071_C = 0; - $this.$field_94067_D = 0; - $this.$field_94068_E = 0; - $this.$field_94070_G = Long_ZERO; - $this.$field_94072_H = null; - $this.$field_94073_I = 0; - $this.$field_94075_K = null; - $this.$inventorySlots0 = $par1Container; - $this.$field_94068_E = 1; - if (nms_GuiContainer_itemRenderer === null) - nms_GuiContainer_itemRenderer = nms_RenderItem__init_0(); -} -function nms_GuiContainer_initGui($this) { - $this.$mc4.$thePlayer.$openContainer = $this.$inventorySlots0; - $this.$guiLeft = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $this.$guiTop = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; -} -function nms_GuiContainer_drawScreen($this, $par1, $par2, $par3) { - var $var4, $var5, $var13, $var18, $var14, $var15, $var16, $var9, $var20, $var11, $var12, $var19, $var10, $var8, $var9_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9_0 = $thread.pop();$var8 = $thread.pop();$var10 = $thread.pop();$var19 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var20 = $thread.pop();$var9 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var18 = $thread.pop();$var13 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - $var4 = $this.$guiLeft; - $var5 = $this.$guiTop; - $ptr = 1; - case 1: - $this.$drawGuiContainerBackgroundLayer($par3, $par1, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(15); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(4); - $var13 = 0; - while (true) { - if ($var13 >= $this.$buttonList.$size0) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef((-30.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(165.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par3 = $var4; - $var18 = $var5; - $var14 = nleg_EaglerAdapterGL30_deevis; - $var14.$x = $par3; - $var14.$y = $var18; - $var14.$z = 0.0; - $var14 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var14, $var14); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glEnable(41); - $this.$theSlot = null; - nms_OpenGlHelper_setLightmapTextureCoords(nms_OpenGlHelper_lightmapTexUnit, 240.0, 240.0); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - $var13 = 0; - if ($var13 < ju_ArrayList_size($this.$inventorySlots0.$inventorySlots)) { - $var15 = ju_ArrayList_get($this.$inventorySlots0.$inventorySlots, $var13); - $ptr = 2; - continue main; - } - $this.$drawGuiContainerForegroundLayer($par1, $par2); - $var14 = $this.$mc4.$thePlayer.$inventory; - $var16 = $this.$draggedStack !== null ? $this.$draggedStack : nms_InventoryPlayer_getItemStack($var14); - if ($var16 === null) { - if ($this.$returningStack === null) { - nleg_EaglerAdapterGL30_glPopMatrix(); - if (nms_InventoryPlayer_getItemStack($var14) === null && $this.$theSlot !== null && $this.$theSlot.$getHasStack()) - nms_GuiContainer_drawItemStackTooltip($this, $this.$theSlot.$getStack(), $par1, $par2); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(4); - nms_RenderHelper_enableStandardItemLighting(); - return; - } - $var18 = Long_toNumber(Long_sub(nmc_Minecraft_getSystemTime(), $this.$returningStackTime)) / 100.0; - if ($var18 >= 1.0) { - $var18 = 1.0; - $this.$returningStack = null; - } - $var9 = $this.$returningStackDestSlot.$xDisplayPosition - $this.$field_85049_r | 0; - $var20 = $this.$returningStackDestSlot.$yDisplayPosition - $this.$field_85048_s | 0; - $var11 = $this.$field_85049_r + ($var9 * $var18 | 0) | 0; - $var12 = $this.$field_85048_s + ($var20 * $var18 | 0) | 0; - $var16 = $this.$returningStack; - $var19 = null; - $ptr = 3; - continue main; - } - $var9 = $this.$draggedStack !== null ? 16 : 8; - $var10 = null; - if ($this.$draggedStack !== null && $this.$isRightMouseClick) { - $var16 = nms_ItemStack_copy($var16); - $var16.$stackSize = nms_MathHelper_ceiling_float_int($var16.$stackSize / 2.0); - } else if ($this.$field_94076_q && ju_HashSet_size($this.$field_94077_p) > 1) { - $var16 = nms_ItemStack_copy($var16); - $var16.$stackSize = $this.$field_94069_F; - if (!$var16.$stackSize) - $var10 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), nms_EnumChatFormatting_YELLOW), $rt_s(81))); - } - $var13 = ($par1 - $var4 | 0) - 8 | 0; - $var9 = ($par2 - $var5 | 0) - $var9 | 0; - $ptr = 4; - continue main; - } - $var14 = $this.$buttonList; - if ($var13 < 0) - break; - if ($var13 >= $var14.$size0) - break; - $var14.$array1.data[$var13].$drawButton($this.$mc4, $par1, $par2); - $var13 = $var13 + 1 | 0; - } - $var14 = new jl_IndexOutOfBoundsException; - $var14.$suppressionEnabled = 1; - $var14.$writableStackTrace = 1; - $rt_throw($var14); - case 2: - nms_GuiContainer_drawSlotInventory($this, $var15); - if ($rt_suspending()) { - break main; - } - if (nms_GuiContainer_isMouseOverSlot($this, $var15, $par1, $par2)) { - $this.$theSlot = $var15; - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(4); - $var8 = $var15.$xDisplayPosition; - $var9_0 = $var15.$yDisplayPosition; - nms_Gui_drawGradientRect($this, $var8, $var9_0, $var8 + 16 | 0, $var9_0 + 16 | 0, (-2130706433), (-2130706433)); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(4); - } - $var13 = $var13 + 1 | 0; - if ($var13 < ju_ArrayList_size($this.$inventorySlots0.$inventorySlots)) { - $var15 = ju_ArrayList_get($this.$inventorySlots0.$inventorySlots, $var13); - continue main; - } - $this.$drawGuiContainerForegroundLayer($par1, $par2); - $var14 = $this.$mc4.$thePlayer.$inventory; - $var16 = $this.$draggedStack !== null ? $this.$draggedStack : nms_InventoryPlayer_getItemStack($var14); - if ($var16 === null) { - if ($this.$returningStack === null) { - nleg_EaglerAdapterGL30_glPopMatrix(); - if (nms_InventoryPlayer_getItemStack($var14) === null && $this.$theSlot !== null && $this.$theSlot.$getHasStack()) - nms_GuiContainer_drawItemStackTooltip($this, $this.$theSlot.$getStack(), $par1, $par2); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(4); - nms_RenderHelper_enableStandardItemLighting(); - return; - } - $var18 = Long_toNumber(Long_sub(nmc_Minecraft_getSystemTime(), $this.$returningStackTime)) / 100.0; - if ($var18 >= 1.0) { - $var18 = 1.0; - $this.$returningStack = null; - } - $var9 = $this.$returningStackDestSlot.$xDisplayPosition - $this.$field_85049_r | 0; - $var20 = $this.$returningStackDestSlot.$yDisplayPosition - $this.$field_85048_s | 0; - $var11 = $this.$field_85049_r + ($var9 * $var18 | 0) | 0; - $var12 = $this.$field_85048_s + ($var20 * $var18 | 0) | 0; - $var16 = $this.$returningStack; - $var19 = null; - $ptr = 3; - continue main; - } - $var9 = $this.$draggedStack !== null ? 16 : 8; - $var10 = null; - if ($this.$draggedStack !== null && $this.$isRightMouseClick) { - $var16 = nms_ItemStack_copy($var16); - $var16.$stackSize = nms_MathHelper_ceiling_float_int($var16.$stackSize / 2.0); - } else if ($this.$field_94076_q && ju_HashSet_size($this.$field_94077_p) > 1) { - $var16 = nms_ItemStack_copy($var16); - $var16.$stackSize = $this.$field_94069_F; - if (!$var16.$stackSize) - $var10 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), nms_EnumChatFormatting_YELLOW), $rt_s(81))); - } - $var13 = ($par1 - $var4 | 0) - 8 | 0; - $var9 = ($par2 - $var5 | 0) - $var9 | 0; - $ptr = 4; - continue main; - case 3: - nms_GuiContainer_drawItemStack($this, $var16, $var11, $var12, $var19); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - if (nms_InventoryPlayer_getItemStack($var14) === null && $this.$theSlot !== null && $this.$theSlot.$getHasStack()) - nms_GuiContainer_drawItemStackTooltip($this, $this.$theSlot.$getStack(), $par1, $par2); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(4); - nms_RenderHelper_enableStandardItemLighting(); - return; - case 4: - nms_GuiContainer_drawItemStack($this, $var16, $var13, $var9, $var10); - if ($rt_suspending()) { - break main; - } - if ($this.$returningStack === null) { - nleg_EaglerAdapterGL30_glPopMatrix(); - if (nms_InventoryPlayer_getItemStack($var14) === null && $this.$theSlot !== null && $this.$theSlot.$getHasStack()) - nms_GuiContainer_drawItemStackTooltip($this, $this.$theSlot.$getStack(), $par1, $par2); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(4); - nms_RenderHelper_enableStandardItemLighting(); - return; - } - $var18 = Long_toNumber(Long_sub(nmc_Minecraft_getSystemTime(), $this.$returningStackTime)) / 100.0; - if ($var18 >= 1.0) { - $var18 = 1.0; - $this.$returningStack = null; - } - $var9 = $this.$returningStackDestSlot.$xDisplayPosition - $this.$field_85049_r | 0; - $var20 = $this.$returningStackDestSlot.$yDisplayPosition - $this.$field_85048_s | 0; - $var11 = $this.$field_85049_r + ($var9 * $var18 | 0) | 0; - $var12 = $this.$field_85048_s + ($var20 * $var18 | 0) | 0; - $var16 = $this.$returningStack; - $var19 = null; - $ptr = 3; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var13, $var18, $var14, $var15, $var16, $var9, $var20, $var11, $var12, $var19, $var10, $var8, $var9_0, $ptr); -} -function nms_GuiContainer_drawItemStack($this, $par1ItemStack, $par2, $par3, $par4Str) { - var var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4Str = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_$callClinit(); - var$5 = nleg_EaglerAdapterGL30_deevis; - var$5.$x = 0.0; - var$5.$y = 0.0; - var$5.$z = 32.0; - var$5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(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); - } - $this.$zLevel = 200.0; - nms_GuiContainer_itemRenderer.$zLevel0 = 200.0; - var$6 = nms_GuiContainer_itemRenderer; - var$7 = $this.$fontRenderer0; - var$5 = $this.$mc4.$renderEngine; - $ptr = 1; - case 1: - nms_RenderItem_renderItemAndEffectIntoGUI(var$6, var$7, var$5, $par1ItemStack, $par2, $par3); - if ($rt_suspending()) { - break main; - } - nms_RenderItem_renderItemOverlayIntoGUI(nms_GuiContainer_itemRenderer, $this.$fontRenderer0, $this.$mc4.$renderEngine, $par1ItemStack, $par2, $par3 - ($this.$draggedStack !== null ? 8 : 0) | 0, $par4Str); - $this.$zLevel = 0.0; - nms_GuiContainer_itemRenderer.$zLevel0 = 0.0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2, $par3, $par4Str, var$5, var$6, var$7, var$8, $ptr); -} -function nms_GuiContainer_drawItemStackTooltip($this, $par1ItemStack, $par2, $par3) { - var $var4, $var5, var$6, var$7; - $var4 = nms_ItemStack_getTooltip($par1ItemStack, $this.$mc4.$thePlayer, $this.$mc4.$gameSettings.$advancedItemTooltips); - $var5 = 0; - a: { - b: { - c: { - d: { - while ($var5 < $var4.$size0) { - if (!$var5) { - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(760)); - nms_Item_$callClinit(); - var$7 = otci_IntegerUtil_toUnsignedLogRadixString(nms_Item_itemsList.data[$par1ItemStack.$itemID0].$getRarity($par1ItemStack).$rarityColor, 4); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$7); - if ($var5 < 0) - break a; - if ($var5 >= $var4.$size0) - break a; - var$7 = $var4.$array1.data[$var5]; - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$7); - var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - if ($var5 < 0) - break b; - if ($var5 >= $var4.$size0) - break b; - $var4.$array1.data[$var5] = var$7; - } else { - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - var$7 = nms_EnumChatFormatting_GRAY; - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$7 === null ? $rt_s(47) : var$7.$field_96304_B); - if ($var5 < 0) - break c; - if ($var5 >= $var4.$size0) - break c; - var$7 = $var4.$array1.data[$var5]; - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$7); - var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - if ($var5 < 0) - break d; - if ($var5 >= $var4.$size0) - break d; - $var4.$array1.data[$var5] = var$7; - } - $var5 = $var5 + 1 | 0; - } - nms_GuiContainer_func_102021_a($this, $var4, $par2, $par3); - return; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); -} -function nms_GuiContainer_drawCreativeTabHoveringText($this, $par1Str, $par2, $par3) { - var var$4; - var$4 = $rt_createArray(jl_String, 1); - var$4.data[0] = $par1Str; - $par1Str = new ju_Arrays$ArrayAsList; - $par1Str.$array3 = var$4; - nms_GuiContainer_func_102021_a($this, $par1Str, $par2, $par3); -} -function nms_GuiContainer_func_102021_a($this, $par1List, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var14, $var15, $var8, $var12, var$12, var$13, var$14, $var13; - if (!($par1List.$size2() ? 0 : 1)) { - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(15); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(4); - $var4 = 0; - $var5 = new ju_AbstractList$1; - $var5.$this$0 = $par1List; - $var5.$modCount = $var5.$this$0.$modCount0; - $var5.$size1 = $var5.$this$0.$size2(); - $var5.$removeIndex = (-1); - while ($var5.$index >= $var5.$size1 ? 0 : 1) { - $var6 = ju_AbstractList$1_next($var5); - $var7 = nms_FontRenderer_getStringWidth($this.$fontRenderer0, $var6); - if ($var7 > $var4) - $var4 = $var7; - } - $var14 = $par2 + 12 | 0; - $var15 = $par3 - 12 | 0; - $var8 = 8; - if ($par1List.$size2() > 1) - $var8 = $var8 + (2 + (($par1List.$size2() - 1 | 0) * 10 | 0) | 0) | 0; - if (($var14 + $var4 | 0) > $this.$width0) - $var14 = $var14 - (28 + $var4 | 0) | 0; - if ((($var15 + $var8 | 0) + 6 | 0) > $this.$height0) - $var15 = ($this.$height0 - $var8 | 0) - 6 | 0; - $this.$zLevel = 300.0; - nms_GuiContainer_itemRenderer.$zLevel0 = 300.0; - $par3 = $var14 - 3 | 0; - $var7 = $var15 - 4 | 0; - $var12 = $var14 + $var4 | 0; - var$12 = $var12 + 3 | 0; - var$13 = $var15 - 3 | 0; - nms_Gui_drawGradientRect($this, $par3, $var7, var$12, var$13, (-267386864), (-267386864)); - $var8 = $var15 + $var8 | 0; - var$14 = $var8 + 3 | 0; - nms_Gui_drawGradientRect($this, $par3, var$14, var$12, $var8 + 4 | 0, (-267386864), (-267386864)); - nms_Gui_drawGradientRect($this, $par3, var$13, var$12, var$14, (-267386864), (-267386864)); - nms_Gui_drawGradientRect($this, $var14 - 4 | 0, var$13, $par3, var$14, (-267386864), (-267386864)); - nms_Gui_drawGradientRect($this, var$12, var$13, $var12 + 4 | 0, var$14, (-267386864), (-267386864)); - $par2 = var$13 + 1 | 0; - $var7 = $par3 + 1 | 0; - $var4 = var$14 - 1 | 0; - nms_Gui_drawGradientRect($this, $par3, $par2, $var7, $var4, 1347420415, 1344798847); - nms_Gui_drawGradientRect($this, $var12 + 2 | 0, $par2, var$12, $var4, 1347420415, 1344798847); - nms_Gui_drawGradientRect($this, $par3, var$13, var$12, $par2, 1347420415, 1347420415); - nms_Gui_drawGradientRect($this, $par3, $var8 + 2 | 0, var$12, var$14, 1344798847, 1344798847); - $var12 = 0; - while ($var12 < $par1List.$size2()) { - $var13 = $par1List.$get4($var12); - nms_FontRenderer_drawString($this.$fontRenderer0, $var13, $var14, $var15, (-1), 1); - if (!$var12) - $var15 = $var15 + 2 | 0; - $var15 = $var15 + 10 | 0; - $var12 = $var12 + 1 | 0; - } - $this.$zLevel = 0.0; - nms_GuiContainer_itemRenderer.$zLevel0 = 0.0; - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(4); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef((-30.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(165.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glEnable(41); - } -} -function nms_GuiContainer_drawSlotInventory($this, $par1Slot) { - var $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1Slot = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $par1Slot.$xDisplayPosition; - $var3 = $par1Slot.$yDisplayPosition; - $var4 = $par1Slot.$getStack(); - $var5 = 0; - $var6 = $par1Slot === $this.$clickedSlot && $this.$draggedStack !== null && !$this.$isRightMouseClick ? 1 : 0; - $var7 = $this.$mc4.$thePlayer.$inventory.$itemStack; - $var8 = null; - if ($par1Slot === $this.$clickedSlot && $this.$draggedStack !== null && $this.$isRightMouseClick && $var4 !== null) { - $var4 = nms_ItemStack_copy($var4); - $var4.$stackSize = $var4.$stackSize / 2 | 0; - } else if ($this.$field_94076_q) { - $var9 = $this.$field_94077_p.$backingMap; - if ($par1Slot !== null) { - var$10 = jl_Object_identity($par1Slot); - $var9 = ju_HashMap_findNonNullKeyEntry($var9, $par1Slot, var$10 & ($var9.$elementData.data.length - 1 | 0), var$10); - } else { - $var9 = $var9.$elementData.data[0]; - while ($var9 !== null && $var9.$key !== null) { - $var9 = $var9.$next1; - } - } - if (($var9 === null ? 0 : 1) && $var7 !== null) { - if ($this.$field_94077_p.$backingMap.$elementCount == 1) - return; - if (nms_Container_func_94527_a($par1Slot, $var7, 1) && $this.$inventorySlots0.$func_94531_b($par1Slot)) { - $var4 = nms_ItemStack_copy($var7); - $var5 = 1; - nms_Container_func_94525_a($this.$field_94077_p, $this.$field_94071_C, $var4, $par1Slot.$getStack() === null ? 0 : $par1Slot.$getStack().$stackSize); - var$11 = $var4.$stackSize; - nms_Item_$callClinit(); - if (var$11 > nms_Item_itemsList.data[$var4.$itemID0].$maxStackSize) { - $var9 = new jl_StringBuilder; - $var9.$buffer = $rt_createCharArray(16); - var$12 = nms_EnumChatFormatting_YELLOW; - jl_AbstractStringBuilder_insert($var9, $var9.$length, var$12 === null ? $rt_s(47) : var$12.$field_96304_B); - jl_AbstractStringBuilder_insert($var9, $var9.$length, $rt_s(44)); - var$10 = nms_Item_itemsList.data[$var4.$itemID0].$maxStackSize; - jl_AbstractStringBuilder_insert0($var9, $var9.$length, var$10, 10); - $var8 = jl_String__init_0($var9.$buffer, 0, $var9.$length); - $var4.$stackSize = nms_Item_itemsList.data[$var4.$itemID0].$maxStackSize; - } - if ($var4.$stackSize > $par1Slot.$getSlotStackLimit()) { - $var9 = new jl_StringBuilder; - $var9.$buffer = $rt_createCharArray(16); - var$12 = nms_EnumChatFormatting_YELLOW; - jl_AbstractStringBuilder_insert($var9, $var9.$length, var$12 === null ? $rt_s(47) : var$12.$field_96304_B); - jl_AbstractStringBuilder_append($var9, $rt_s(44)); - jl_AbstractStringBuilder_append0($var9, $par1Slot.$getSlotStackLimit()); - $var8 = jl_StringBuilder_toString($var9); - $var4.$stackSize = $par1Slot.$getSlotStackLimit(); - } - } else { - $var9 = ju_HashMap_removeEntry($this.$field_94077_p.$backingMap, $par1Slot); - nms_GuiContainer_func_94066_g($this); - } - } - } - $this.$zLevel = 100.0; - nms_GuiContainer_itemRenderer.$zLevel0 = 100.0; - if ($var4 === null) { - $var9 = $par1Slot.$getBackgroundIconIndex(); - if ($var9 !== null) { - nleg_EaglerAdapterGL30_glDisable(13); - nle_TextureLocation_bindTexture(nms_GuiContainer_items); - nms_Gui_drawTexturedModelRectFromIcon($this, $var2, $var3, $var9, 16, 16); - nleg_EaglerAdapterGL30_glEnable(13); - $var6 = 1; - } - } - if ($var6) { - nms_GuiContainer_itemRenderer.$zLevel0 = 0.0; - $this.$zLevel = 0.0; - return; - } - if ($var5) - nms_Gui_drawRect($var2, $var3, $var2 + 16 | 0, $var3 + 16 | 0, (-2130706433)); - nleg_EaglerAdapterGL30_glEnable(4); - $par1Slot = nms_GuiContainer_itemRenderer; - $var9 = $this.$fontRenderer0; - var$12 = $this.$mc4.$renderEngine; - $ptr = 1; - case 1: - nms_RenderItem_renderItemAndEffectIntoGUI($par1Slot, $var9, var$12, $var4, $var2, $var3); - if ($rt_suspending()) { - break main; - } - nms_RenderItem_renderItemOverlayIntoGUI(nms_GuiContainer_itemRenderer, $this.$fontRenderer0, $this.$mc4.$renderEngine, $var4, $var2, $var3, $var8); - nms_GuiContainer_itemRenderer.$zLevel0 = 0.0; - $this.$zLevel = 0.0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Slot, $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var9, var$10, var$11, var$12, $ptr); -} -function nms_GuiContainer_func_94066_g($this) { - var $var1, $var3, $var4, $var2, $var5, var$6; - a: { - $var1 = $this.$mc4.$thePlayer.$inventory.$itemStack; - if ($var1 !== null && $this.$field_94076_q) { - $this.$field_94069_F = $var1.$stackSize; - $var3 = $this.$field_94077_p.$backingMap; - if ($var3.$cachedKeySet === null) { - $var4 = new ju_HashMap$1; - $var4.$this$01 = $var3; - $var3.$cachedKeySet = $var4; - } - $var2 = $var3.$cachedKeySet.$iterator(); - while (true) { - if (!$var2.$hasNext()) - break a; - $var3 = $var2.$next(); - $var4 = nms_ItemStack_copy($var1); - $var5 = $var3.$getStack() === null ? 0 : $var3.$getStack().$stackSize; - nms_Container_func_94525_a($this.$field_94077_p, $this.$field_94071_C, $var4, $var5); - var$6 = $var4.$stackSize; - nms_Item_$callClinit(); - if (var$6 > nms_Item_itemsList.data[$var4.$itemID0].$maxStackSize) - $var4.$stackSize = nms_Item_itemsList.data[$var4.$itemID0].$maxStackSize; - if ($var4.$stackSize > $var3.$getSlotStackLimit()) - $var4.$stackSize = $var3.$getSlotStackLimit(); - $this.$field_94069_F = $this.$field_94069_F - ($var4.$stackSize - $var5 | 0) | 0; - } - } - } -} -function nms_GuiContainer_getSlotAtPosition($this, $par1, $par2) { - var $var3, $var4; - $var3 = 0; - a: { - while (true) { - if ($var3 >= $this.$inventorySlots0.$inventorySlots.$size0) - return null; - $var4 = $this.$inventorySlots0.$inventorySlots; - if ($var3 < 0) - break a; - if ($var3 >= $var4.$size0) - break a; - $var4 = $var4.$array1.data[$var3]; - if (nms_GuiContainer_isPointInRegion($this, $var4.$xDisplayPosition, $var4.$yDisplayPosition, 16, 16, $par1, $par2)) - break; - $var3 = $var3 + 1 | 0; - } - return $var4; - } - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); -} -function nms_GuiContainer_mouseClicked($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var8, $var9, $var10, $var11, var$11, var$12, $var12, $var13, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $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: - nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - $var4 = $par3 != ($this.$mc4.$gameSettings.$keyBindPickBlock.$keyCode + 100 | 0) ? 0 : 1; - $var5 = nms_GuiContainer_getSlotAtPosition($this, $par1, $par2); - $var6 = jl_System_currentTimeMillis(); - $this.$field_94074_J = $this.$field_94072_H === $var5 && Long_lt(Long_sub($var6, $this.$field_94070_G), Long_fromInt(250)) && $this.$field_94073_I == $par3 ? 1 : 0; - $this.$field_94068_E = 0; - if (!($par3 && $par3 != 1 && !$var4)) { - $var8 = $this.$guiLeft; - $var9 = $this.$guiTop; - $var10 = $par1 >= $var8 && $par2 >= $var9 && $par1 < ($var8 + $this.$xSize | 0) && $par2 < ($var9 + $this.$ySize0 | 0) ? 0 : 1; - $var11 = (-1); - if ($var5 !== null) - $var11 = $var5.$slotNumber; - if ($var10) - $var11 = (-999); - if ($this.$mc4.$gameSettings.$touchscreen && $var10 && $this.$mc4.$thePlayer.$inventory.$itemStack === null) { - var$11 = $this.$mc4; - var$12 = null; - $ptr = 2; - continue main; - } - if ($var11 != (-1)) { - if ($this.$mc4.$gameSettings.$touchscreen) { - if ($var5 !== null && $var5.$getHasStack()) { - $this.$clickedSlot = $var5; - $this.$draggedStack = null; - $this.$isRightMouseClick = $par3 != 1 ? 0 : 1; - } else - $this.$clickedSlot = null; - } else if (!$this.$field_94076_q) { - if ($this.$mc4.$thePlayer.$inventory.$itemStack === null) { - if ($par3 == ($this.$mc4.$gameSettings.$keyBindPickBlock.$keyCode + 100 | 0)) { - $par1 = 3; - $ptr = 3; - continue main; - } - a: { - b: { - $par1 = $rt_compare($var11, (-999)); - if ($par1) { - nlea_EaglerAdapterImpl2_$callClinit(); - if (nlea_EaglerAdapterImpl2_keyStates.data[42]) - break b; - if (nlea_EaglerAdapterImpl2_keyStates.data[54]) - break b; - } - $var12 = 0; - break a; - } - $var12 = 1; - } - $var13 = 0; - if ($var12) { - $this.$field_94075_K = $var5 !== null && $var5.$getHasStack() ? $var5.$getStack() : null; - $var13 = 1; - } else if (!$par1) - $var13 = 4; - $ptr = 4; - continue main; - } - $this.$field_94076_q = 1; - $this.$field_94067_D = $par3; - var$11 = $this.$field_94077_p.$backingMap; - if (var$11.$elementCount > 0) { - var$11.$elementCount = 0; - var$15 = var$11.$elementData; - ju_Arrays_fill(var$15, 0, var$15.data.length, null); - var$11.$modCount1 = var$11.$modCount1 + 1 | 0; - } - if (!$par3) - $this.$field_94071_C = 0; - else if ($par3 == 1) - $this.$field_94071_C = 1; - } - } - } - $this.$field_94072_H = $var5; - $this.$field_94070_G = $var6; - $this.$field_94073_I = $par3; - return; - case 2: - nmc_Minecraft_displayGuiScreen(var$11, var$12); - if ($rt_suspending()) { - break main; - } - return; - case 3: - $this.$handleMouseClick($var5, $var11, $par3, $par1); - if ($rt_suspending()) { - break main; - } - $this.$field_94068_E = 1; - $this.$field_94072_H = $var5; - $this.$field_94070_G = $var6; - $this.$field_94073_I = $par3; - return; - case 4: - $this.$handleMouseClick($var5, $var11, $par3, $var13); - if ($rt_suspending()) { - break main; - } - $this.$field_94068_E = 1; - $this.$field_94072_H = $var5; - $this.$field_94070_G = $var6; - $this.$field_94073_I = $par3; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var6, $var8, $var9, $var10, $var11, var$11, var$12, $var12, $var13, var$15, $ptr); -} -function nms_GuiContainer_func_85041_a($this, $par1, $par2, $par3, $par4) { - var $var6, $var7, var$7, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();var$7 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_GuiContainer_getSlotAtPosition($this, $par1, $par2); - $var7 = $this.$mc4.$thePlayer.$inventory.$itemStack; - if (!($this.$clickedSlot !== null && $this.$mc4.$gameSettings.$touchscreen)) { - if ($this.$field_94076_q && $var6 !== null && $var7 !== null && $var7.$stackSize > $this.$field_94077_p.$backingMap.$elementCount && nms_Container_func_94527_a($var6, $var7, 1) && $var6.$isItemValid($var7) && $this.$inventorySlots0.$func_94531_b($var6)) { - var$7 = $this.$field_94077_p; - ju_HashMap_putImpl(var$7.$backingMap, $var6, var$7); - nms_GuiContainer_func_94066_g($this); - } - } else if (!($par3 && $par3 != 1)) { - if ($this.$draggedStack === null) { - if ($var6 !== $this.$clickedSlot) - $this.$draggedStack = nms_ItemStack_copy($this.$clickedSlot.$getStack()); - } else if ($this.$draggedStack.$stackSize > 1 && $var6 !== null && nms_Container_func_94527_a($var6, $this.$draggedStack, 0)) { - $var8 = jl_System_currentTimeMillis(); - if ($this.$field_92033_y !== $var6) { - $this.$field_92033_y = $var6; - $this.$field_92032_z = $var8; - } else if (Long_gt(Long_sub($var8, $this.$field_92032_z), Long_fromInt(500))) { - var$7 = $this.$clickedSlot; - $par3 = $this.$clickedSlot.$slotNumber; - $par1 = 0; - $par2 = 0; - $ptr = 1; - continue main; - } - } - } - return; - case 1: - $this.$handleMouseClick(var$7, $par3, $par1, $par2); - if ($rt_suspending()) { - break main; - } - $par1 = $var6.$slotNumber; - $par2 = 1; - $par3 = 0; - $ptr = 2; - case 2: - $this.$handleMouseClick($var6, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - $var6 = $this.$clickedSlot; - $par1 = $this.$clickedSlot.$slotNumber; - $par2 = 0; - $par3 = 0; - $ptr = 3; - case 3: - $this.$handleMouseClick($var6, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - $this.$field_92032_z = Long_add($var8, Long_fromInt(750)); - $var6 = $this.$draggedStack; - $var6.$stackSize = $var6.$stackSize - 1 | 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $var6, $var7, var$7, $var8, $ptr); -} -function nms_GuiContainer_mouseMovedOrUp($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var8, $var11, $var10, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var10 = $thread.pop();$var11 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var4 = nms_GuiContainer_getSlotAtPosition($this, $par1, $par2); - $var5 = $this.$guiLeft; - $var6 = $this.$guiTop; - $var7 = $par1 >= $var5 && $par2 >= $var6 && $par1 < ($var5 + $this.$xSize | 0) && $par2 < ($var6 + $this.$ySize0 | 0) ? 0 : 1; - $var8 = (-1); - if ($var4 !== null) - $var8 = $var4.$slotNumber; - if ($var7) - $var8 = (-999); - a: { - if ($this.$field_94074_J && $var4 !== null && !$par3 && $this.$inventorySlots0.$func_94530_a(null, $var4)) { - if (!nms_GuiScreen_isShiftKeyDown()) { - $par1 = 6; - $ptr = 1; - continue main; - } - b: { - if ($var4.$inventory0 !== null && $this.$field_94075_K !== null) { - $var11 = ju_AbstractList_iterator($this.$inventorySlots0.$inventorySlots); - while (true) { - if (!ju_AbstractList$1_hasNext($var11)) - break b; - $var10 = ju_AbstractList$1_next($var11); - if ($var10 === null) - continue; - if (!$var10.$canTakeStack($this.$mc4.$thePlayer)) - continue; - if (!$var10.$getHasStack()) - continue; - if ($var10.$inventory0 !== $var4.$inventory0) - continue; - if (!nms_Container_func_94527_a($var10, $this.$field_94075_K, 1)) - continue; - else { - $par1 = $var10.$slotNumber; - $par2 = 1; - $ptr = 10; - continue main; - } - } - } - } - $this.$field_94074_J = 0; - $this.$field_94070_G = Long_ZERO; - } else { - if ($this.$field_94076_q && $this.$field_94067_D != $par3) { - $this.$field_94076_q = 0; - ju_HashSet_clear($this.$field_94077_p); - $this.$field_94068_E = 1; - return; - } - if ($this.$field_94068_E) { - $this.$field_94068_E = 0; - return; - } - if (!($this.$clickedSlot !== null && $this.$mc4.$gameSettings.$touchscreen)) { - if ($this.$field_94076_q && !ju_HashSet_isEmpty($this.$field_94077_p)) { - $var11 = null; - $par1 = (-999); - $par2 = nms_Container_func_94534_d(0, $this.$field_94071_C); - $par3 = 5; - $ptr = 2; - continue main; - } - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) - break a; - if ($par3 == ($this.$mc4.$gameSettings.$keyBindPickBlock.$keyCode + 100 | 0)) { - $par1 = 3; - $ptr = 3; - continue main; - } - c: { - d: { - if ($var8 != (-999)) { - if (nlea_EaglerAdapterImpl2_isKeyDown(42)) - break d; - if (nlea_EaglerAdapterImpl2_isKeyDown(54)) - break d; - } - $var9 = 0; - break c; - } - $var9 = 1; - } - if ($var9) - $this.$field_94075_K = $var4 !== null && $var4.$getHasStack() ? $var4.$getStack() : null; - $par1 = !$var9 ? 0 : 1; - $ptr = 9; - continue main; - } - if (!($par3 && $par3 != 1)) { - if ($this.$draggedStack === null && $var4 !== $this.$clickedSlot) - $this.$draggedStack = $this.$clickedSlot.$getStack(); - $var9 = nms_Container_func_94527_a($var4, $this.$draggedStack, 0); - if ($var8 != (-1) && $this.$draggedStack !== null && $var9) { - $var11 = $this.$clickedSlot; - $var9 = $this.$clickedSlot.$slotNumber; - $var7 = 0; - $ptr = 6; - continue main; - } - if ($this.$draggedStack !== null) { - $this.$field_85049_r = $par1 - $var5 | 0; - $this.$field_85048_s = $par2 - $var6 | 0; - $this.$returningStackDestSlot = $this.$clickedSlot; - $this.$returningStack = $this.$draggedStack; - $this.$returningStackTime = nmc_Minecraft_getSystemTime(); - } - $this.$draggedStack = null; - $this.$clickedSlot = null; - } - } - } - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) - $this.$field_94070_G = Long_ZERO; - $this.$field_94076_q = 0; - return; - case 1: - $this.$handleMouseClick($var4, $var8, $par3, $par1); - if ($rt_suspending()) { - break main; - } - $this.$field_94074_J = 0; - $this.$field_94070_G = Long_ZERO; - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) - $this.$field_94070_G = Long_ZERO; - $this.$field_94076_q = 0; - return; - case 2: - $this.$handleMouseClick($var11, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - $var11 = ju_HashSet_iterator($this.$field_94077_p); - if (!$var11.$hasNext()) { - $var11 = null; - $par1 = (-999); - $par2 = nms_Container_func_94534_d(2, $this.$field_94071_C); - $par3 = 5; - $ptr = 4; - continue main; - } - $var10 = $var11.$next(); - $par1 = $var10.$slotNumber; - $par2 = nms_Container_func_94534_d(1, $this.$field_94071_C); - $par3 = 5; - $ptr = 5; - continue main; - case 3: - $this.$handleMouseClick($var4, $var8, $par3, $par1); - if ($rt_suspending()) { - break main; - } - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) - $this.$field_94070_G = Long_ZERO; - $this.$field_94076_q = 0; - return; - case 4: - $this.$handleMouseClick($var11, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) - $this.$field_94070_G = Long_ZERO; - $this.$field_94076_q = 0; - return; - case 5: - $this.$handleMouseClick($var10, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - if (!$var11.$hasNext()) { - $var11 = null; - $par1 = (-999); - $par2 = nms_Container_func_94534_d(2, $this.$field_94071_C); - $par3 = 5; - $ptr = 4; - continue main; - } - $var10 = $var11.$next(); - $par1 = $var10.$slotNumber; - $par2 = nms_Container_func_94534_d(1, $this.$field_94071_C); - $par3 = 5; - continue main; - case 6: - $this.$handleMouseClick($var11, $var9, $par3, $var7); - if ($rt_suspending()) { - break main; - } - $var9 = 0; - $var7 = 0; - $ptr = 7; - case 7: - $this.$handleMouseClick($var4, $var8, $var9, $var7); - if ($rt_suspending()) { - break main; - } - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) { - $this.$returningStack = null; - $this.$draggedStack = null; - $this.$clickedSlot = null; - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) - $this.$field_94070_G = Long_ZERO; - $this.$field_94076_q = 0; - return; - } - $var11 = $this.$clickedSlot; - $var9 = $this.$clickedSlot.$slotNumber; - $var7 = 0; - $ptr = 8; - case 8: - $this.$handleMouseClick($var11, $var9, $par3, $var7); - if ($rt_suspending()) { - break main; - } - $this.$field_85049_r = $par1 - $var5 | 0; - $this.$field_85048_s = $par2 - $var6 | 0; - $this.$returningStackDestSlot = $this.$clickedSlot; - $this.$returningStack = $this.$draggedStack; - $this.$returningStackTime = nmc_Minecraft_getSystemTime(); - $this.$draggedStack = null; - $this.$clickedSlot = null; - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) - $this.$field_94070_G = Long_ZERO; - $this.$field_94076_q = 0; - return; - case 9: - $this.$handleMouseClick($var4, $var8, $par3, $par1); - if ($rt_suspending()) { - break main; - } - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) - $this.$field_94070_G = Long_ZERO; - $this.$field_94076_q = 0; - return; - case 10: - $this.$handleMouseClick($var10, $par1, $par3, $par2); - if ($rt_suspending()) { - break main; - } - while (ju_AbstractList$1_hasNext($var11)) { - $var10 = ju_AbstractList$1_next($var11); - if ($var10 === null) - continue; - if (!$var10.$canTakeStack($this.$mc4.$thePlayer)) - continue; - if (!$var10.$getHasStack()) - continue; - if ($var10.$inventory0 !== $var4.$inventory0) - continue; - if (!nms_Container_func_94527_a($var10, $this.$field_94075_K, 1)) - continue; - else { - $par1 = $var10.$slotNumber; - $par2 = 1; - continue main; - } - } - $this.$field_94074_J = 0; - $this.$field_94070_G = Long_ZERO; - if (nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) === null) - $this.$field_94070_G = Long_ZERO; - $this.$field_94076_q = 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var6, $var7, $var8, $var11, $var10, $var9, $ptr); -} -function nms_GuiContainer_isMouseOverSlot($this, $par1Slot, $par2, $par3) { - return nms_GuiContainer_isPointInRegion($this, $par1Slot.$xDisplayPosition, $par1Slot.$yDisplayPosition, 16, 16, $par2, $par3); -} -function nms_GuiContainer_isPointInRegion($this, $par1, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8; - $var7 = $this.$guiLeft; - $var8 = $this.$guiTop; - $par5 = $par5 - $var7 | 0; - $par6 = $par6 - $var8 | 0; - return $par5 >= ($par1 - 1 | 0) && $par5 < (($par1 + $par3 | 0) + 1 | 0) && $par6 >= ($par2 - 1 | 0) && $par6 < (($par2 + $par4 | 0) + 1 | 0) ? 1 : 0; -} -function nms_GuiContainer_handleMouseClick($this, $par1Slot, $par2, $par3, $par4) { - var 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();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Slot = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1Slot !== null) - $par2 = $par1Slot.$slotNumber; - $par1Slot = $this.$mc4.$playerController; - var$5 = $this.$inventorySlots0.$windowId; - var$6 = $this.$mc4.$thePlayer; - $ptr = 1; - case 1: - nms_PlayerControllerMP_windowClick($par1Slot, var$5, $par2, $par3, $par4, var$6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Slot, $par2, $par3, $par4, var$5, var$6, $ptr); -} -function nms_GuiContainer_keyTyped($this, $par1, $par2) { - var 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();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par2 != 1 && $par2 != $this.$mc4.$gameSettings.$keyBindInventory.$keyCode) { - $ptr = 2; - continue main; - } - var$3 = $this.$mc4.$thePlayer; - var$4 = var$3.$sendQueue; - var$5 = new nms_Packet101CloseWindow; - $par1 = var$3.$openContainer.$windowId; - nms_Packet_$callClinit(); - var$5.$creationTimeMillis = jl_System_currentTimeMillis(); - var$5.$isChunkDataPacket = 0; - var$5.$windowId0 = $par1; - if (!var$4.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$4.$netManager, var$5); - var$3.$inventory.$itemStack = null; - var$3.$openContainer = var$3.$inventoryContainer; - var$5 = var$3.$mc3; - var$3 = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$5, var$3); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nms_GuiContainer_checkHotbarKeys($this, $par2); - if ($rt_suspending()) { - break main; - } - if ($this.$theSlot !== null && $this.$theSlot.$getHasStack()) { - if ($par2 == $this.$mc4.$gameSettings.$keyBindPickBlock.$keyCode) { - var$3 = $this.$theSlot; - $par1 = $this.$theSlot.$slotNumber; - $par2 = 0; - var$6 = 3; - $ptr = 3; - continue main; - } - if ($par2 == $this.$mc4.$gameSettings.$keyBindDrop.$keyCode) { - var$3 = $this.$theSlot; - $par2 = $this.$theSlot.$slotNumber; - var$6 = !nms_GuiScreen_isCtrlKeyDown() ? 0 : 1; - $par1 = 4; - $ptr = 4; - continue main; - } - } - return; - case 3: - $this.$handleMouseClick(var$3, $par1, $par2, var$6); - if ($rt_suspending()) { - break main; - } - return; - case 4: - $this.$handleMouseClick(var$3, $par2, var$6, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, var$6, $ptr); -} -function nms_GuiContainer_checkHotbarKeys($this, $par1) { - var $var2, 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();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($this.$mc4.$thePlayer.$inventory.$itemStack === null && $this.$theSlot !== null) { - $var2 = 0; - while (true) { - if ($var2 >= 9) - break a; - if ($par1 == (2 + $var2 | 0)) { - var$3 = $this.$theSlot; - var$4 = $this.$theSlot.$slotNumber; - $par1 = 2; - $ptr = 1; - continue main; - } - $var2 = $var2 + 1 | 0; - } - } - } - return 0; - case 1: - $this.$handleMouseClick(var$3, var$4, $var2, $par1); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, var$3, var$4, $ptr); -} -function nms_GuiContainer_onGuiClosed($this) { - var var$1, var$2, $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: - if ($this.$mc4.$thePlayer === null) - return; - var$1 = $this.$inventorySlots0; - var$2 = $this.$mc4.$thePlayer; - $ptr = 1; - case 1: - var$1.$onCraftGuiClosed(var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, $ptr); -} -function nms_GuiContainer_updateScreen($this) { - 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();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$1 = $this.$mc4.$thePlayer; - var$2 = !var$1.$isDead && var$1.$health > 0 ? 1 : 0; - if (var$2 && !$this.$mc4.$thePlayer.$isDead) - return; - var$1 = $this.$mc4.$thePlayer; - var$3 = var$1.$sendQueue; - var$4 = new nms_Packet101CloseWindow; - var$2 = var$1.$openContainer.$windowId; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$windowId0 = var$2; - if (!var$3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$3.$netManager, var$4); - var$1.$inventory.$itemStack = null; - var$1.$openContainer = var$1.$inventoryContainer; - var$4 = var$1.$mc3; - var$1 = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$4, var$1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $ptr); -} -function nms_GuiContainer__clinit_() { - var var$1; - nms_GuiContainer_itemRenderer = null; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(647); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_GuiContainer_items = var$1; -} -function nms_InventoryEffectRenderer() { - nms_GuiContainer.call(this); - this.$field_74222_o = 0; -} -var nms_InventoryEffectRenderer_tex_inventory = null; -function nms_InventoryEffectRenderer_initGui($this) { - var var$1, var$2; - nms_GuiContainer_initGui($this); - var$1 = $this.$mc4.$thePlayer.$activePotionsMap; - if (var$1.$cachedValues === null) { - var$2 = new ju_HashMap$2; - var$2.$this$00 = var$1; - var$1.$cachedValues = var$2; - } - if (!(var$1.$cachedValues.$size2() ? 0 : 1)) { - $this.$guiLeft = 160 + ((($this.$width0 - $this.$xSize | 0) - 200 | 0) / 2 | 0) | 0; - $this.$field_74222_o = 1; - } -} -function nms_InventoryEffectRenderer_displayDebuffEffects($this) { - var $var1, $var2, $var10, $var8, $var9, $var5, $var6, var$8, var$9, $var7, $var11; - $var1 = $this.$guiLeft - 124 | 0; - $var2 = $this.$guiTop; - $var10 = $this.$mc4.$thePlayer.$activePotionsMap; - if ($var10.$cachedValues === null) { - $var8 = new ju_HashMap$2; - $var8.$this$00 = $var10; - $var10.$cachedValues = $var8; - } - $var10 = $var10.$cachedValues; - $var9 = $var10.$size2() ? 0 : 1; - a: { - if (!$var9) { - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(13); - $var5 = 33; - if ($var10.$size2() > 5) - $var5 = 132 / ($var10.$size2() - 1 | 0) | 0; - $var10 = $this.$mc4.$thePlayer.$activePotionsMap; - if ($var10.$cachedValues === null) { - $var8 = new ju_HashMap$2; - $var8.$this$00 = $var10; - $var10.$cachedValues = $var8; - } - $var6 = $var10.$cachedValues.$iterator(); - var$8 = $var1 + 6 | 0; - var$9 = ($var1 + 10 | 0) + 18 | 0; - while (true) { - if (!$var6.$hasNext()) - break a; - $var7 = $var6.$next(); - $var8 = nms_Potion_potionTypes.data[$var7.$potionID]; - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture(nms_InventoryEffectRenderer_tex_inventory); - nms_Gui_drawTexturedModalRect($this, $var1, $var2, 0, 166, 140, 32); - if ($var8.$statusIconIndex < 0 ? 0 : 1) { - $var9 = $var8.$statusIconIndex; - nms_Gui_drawTexturedModalRect($this, var$8, $var2 + 7 | 0, 0 + (($var9 % 8 | 0) * 18 | 0) | 0, 198 + (($var9 / 8 | 0) * 18 | 0) | 0, 18, 18); - } - $var8 = $var8.$name7; - $var11 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var8); - if ($var7.$amplifier == 1) { - $var10 = new jl_StringBuilder; - $var10.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var10, $var10.$length, $var11); - jl_AbstractStringBuilder_insert($var10, $var10.$length, $rt_s(1144)); - $var11 = jl_String__init_0($var10.$buffer, 0, $var10.$length); - } else if ($var7.$amplifier == 2) { - $var10 = new jl_StringBuilder; - $var10.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var10, $var10.$length, $var11); - jl_AbstractStringBuilder_insert($var10, $var10.$length, $rt_s(1145)); - $var11 = jl_String__init_0($var10.$buffer, 0, $var10.$length); - } else if ($var7.$amplifier == 3) { - $var10 = new jl_StringBuilder; - $var10.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var10, $var10.$length, $var11); - jl_AbstractStringBuilder_insert($var10, $var10.$length, $rt_s(1146)); - $var11 = jl_String__init_0($var10.$buffer, 0, $var10.$length); - } - $var10 = $this.$fontRenderer0; - $var9 = $var2 + 6 | 0; - nms_FontRenderer_drawString($var10, $var11, var$9, $var9, 16777215, 1); - $var10 = $var7.$isPotionDurationMax ? $rt_s(1147) : nms_StringUtils_ticksToElapsedTime($var7.$duration); - nms_FontRenderer_drawString($this.$fontRenderer0, $var10, var$9, $var9 + 10 | 0, 8355711, 1); - $var2 = $var2 + $var5 | 0; - } - } - } -} -function nms_InventoryEffectRenderer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1148); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_InventoryEffectRenderer_tex_inventory = var$1; -} -function nms_GuiInventory() { - var a = this; nms_InventoryEffectRenderer.call(a); - a.$xSize_lo = 0.0; - a.$ySize_lo = 0.0; -} -var nms_GuiInventory_tex = null; -function nms_GuiInventory__init_(var_0) { - var var_1 = new nms_GuiInventory(); - nms_GuiInventory__init_0(var_1, var_0); - return var_1; -} -function nms_GuiInventory__init_0($this, $par1EntityPlayer) { - var var$2; - nms_GuiContainer__init_($this, $par1EntityPlayer.$inventoryContainer); - $this.$allowUserInput = 1; - nms_AchievementList_$callClinit(); - var$2 = nms_AchievementList_openInventory; - if (var$2 !== null && var$2.$isIndependent) - nms_EntityPlayerSP_addStat($par1EntityPlayer, var$2, 1); -} -function nms_GuiInventory_updateScreen($this) { - var var$1, var$2, $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: - if (!($this.$mc4.$playerController.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1)) - return; - var$1 = $this.$mc4; - var$2 = nms_GuiContainerCreative__init_($this.$mc4.$thePlayer); - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$1, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, $ptr); -} -function nms_GuiInventory_initGui($this) { - var var$1, var$2, $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: - var$1 = $this.$buttonList; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; - if (!($this.$mc4.$playerController.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1)) { - $ptr = 1; - continue main; - } - var$2 = $this.$mc4; - var$1 = nms_GuiContainerCreative__init_($this.$mc4.$thePlayer); - $ptr = 2; - continue main; - case 1: - nms_InventoryEffectRenderer_initGui($this); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen(var$2, var$1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, $ptr); -} -function nms_GuiInventory_drawGuiContainerForegroundLayer($this, $par1, $par2) { - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1149)), 86, 16, 4210752, 0); -} -function nms_GuiInventory_drawScreen($this, $par1, $par2, $par3) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $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: - nms_GuiContainer_drawScreen($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - if ($this.$field_74222_o) - nms_InventoryEffectRenderer_displayDebuffEffects($this); - $this.$xSize_lo = $par1; - $this.$ySize_lo = $par2; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $ptr); -} -function nms_GuiInventory_drawGuiContainerBackgroundLayer($this, $par1, $par2, $par3) { - var $var4, $var5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture(nms_GuiInventory_tex); - $var4 = $this.$guiLeft; - $var5 = $this.$guiTop; - nms_Gui_drawTexturedModalRect($this, $var4, $var5, 0, 0, $this.$xSize, $this.$ySize0); - var$6 = $this.$mc4; - $par2 = $var4 + 51 | 0; - $par3 = $var5 + 75 | 0; - $var4 = 30; - var$7 = $par2 - $this.$xSize_lo; - $par1 = ($par3 - 50 | 0) - $this.$ySize_lo; - $ptr = 1; - case 1: - nms_GuiInventory_drawPlayerOnGui(var$6, $par2, $par3, $var4, var$7, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, var$6, var$7, $ptr); -} -function nms_GuiInventory_drawPlayerOnGui($par0Minecraft, $par1, $par2, $par3, $par4, $par5) { - var $var6, $var7, var$9, var$10, var$11, var$12, $var8, var$14, var$15, var$16, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();$var8 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$par0Minecraft = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_glPushMatrix(); - $var6 = $par1; - $var7 = $par2; - var$9 = nleg_EaglerAdapterGL30_deevis; - var$9.$x = $var6; - var$9.$y = $var7; - var$9.$z = 50.0; - var$9 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$9, var$9); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - var$10.$sb = var$9; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - var$9 = new jnci_UTF8Charset; - jnc_Charset__init_(var$9, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = var$9; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - $par2 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, $par2, $par2 + 1 | 0); - var$10.$buffer.data[$par2] = 10; - ji_PrintStream_printSB(var$11); - } - var$12 = -$par3; - $var6 = $par3; - var$9 = nleg_EaglerAdapterGL30_deevis; - var$9.$x = var$12; - var$9.$y = $var6; - var$9.$z = $var6; - var$9 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$9, var$9); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - var$10.$sb = var$9; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - var$9 = new jnci_UTF8Charset; - jnc_Charset__init_(var$9, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = var$9; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - $par2 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, $par2, $par2 + 1 | 0); - var$10.$buffer.data[$par2] = 10; - ji_PrintStream_printSB(var$11); - } - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 0.0, 1.0); - $var6 = $par0Minecraft.$thePlayer.$renderYawOffset; - $var7 = $par0Minecraft.$thePlayer.$rotationYaw; - $var8 = $par0Minecraft.$thePlayer.$rotationPitch; - nleg_EaglerAdapterGL30_glRotatef(135.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - nleg_EaglerAdapterGL30_glRotatef((-135.0), 0.0, 1.0, 0.0); - var$14 = $par5 / 40.0; - nleg_EaglerAdapterGL30_glRotatef( -jl_Math_atan(var$14) * 20.0, 1.0, 0.0, 0.0); - var$9 = $par0Minecraft.$thePlayer; - var$15 = $par4 / 40.0; - var$9.$renderYawOffset = jl_Math_atan(var$15) * 20.0; - $par0Minecraft.$thePlayer.$rotationYaw = jl_Math_atan(var$15) * 40.0; - $par0Minecraft.$thePlayer.$rotationPitch = -jl_Math_atan(var$14) * 20.0; - $par0Minecraft.$thePlayer.$rotationYawHead = $par0Minecraft.$thePlayer.$rotationYaw; - $par5 = $par0Minecraft.$thePlayer.$yOffset0; - var$9 = nleg_EaglerAdapterGL30_deevis; - var$9.$x = 0.0; - var$9.$y = $par5; - var$9.$z = 0.0; - var$9 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$9, var$9); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - var$10.$sb = var$9; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - var$9 = new jnci_UTF8Charset; - jnc_Charset__init_(var$9, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = var$9; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_append(var$10, $rt_s(220)); - jl_StringBuilder_append(var$10, 10); - ji_PrintStream_printSB(var$11); - } - nms_RenderManager_instance.$playerViewY = 180.0; - var$9 = nms_RenderManager_instance; - var$10 = $par0Minecraft.$thePlayer; - var$16 = 0.0; - var$14 = 0.0; - var$15 = 0.0; - $par4 = 0.0; - $par5 = 1.0; - $ptr = 1; - case 1: - nms_RenderManager_renderEntityWithPosYaw(var$9, var$10, var$16, var$14, var$15, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $par0Minecraft.$thePlayer.$renderYawOffset = $var6; - $par0Minecraft.$thePlayer.$rotationYaw = $var7; - $par0Minecraft.$thePlayer.$rotationPitch = $var8; - nleg_EaglerAdapterGL30_glPopMatrix(); - nms_RenderHelper_disableStandardItemLighting(); - nleg_EaglerAdapterGL30_glDisable(41); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glDisable(2); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_defaultTexUnit); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0Minecraft, $par1, $par2, $par3, $par4, $par5, $var6, $var7, var$9, var$10, var$11, var$12, $var8, var$14, var$15, var$16, $ptr); -} -function nms_GuiInventory_actionPerformed($this, $par1GuiButton) { - return; -} -function nms_GuiInventory__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1148); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_GuiInventory_tex = var$1; -} -function nms_GuiChat() { - var a = this; nms_GuiScreen.call(a); - a.$field_73898_b = null; - a.$sentHistoryCursor = 0; - a.$field_73897_d = 0; - a.$field_73905_m = 0; - a.$field_73903_n = 0; - a.$field_73904_o = null; - a.$clickedURI = null; - a.$inputField = null; - a.$defaultInputFieldText = null; -} -function nms_GuiChat__init_0() { - var var_0 = new nms_GuiChat(); - nms_GuiChat__init_(var_0); - return var_0; -} -function nms_GuiChat__init_1(var_0) { - var var_1 = new nms_GuiChat(); - nms_GuiChat__init_2(var_1, var_0); - return var_1; -} -function nms_GuiChat__init_($this) { - var var$1; - nms_GuiScreen__init_($this); - $this.$field_73898_b = $rt_s(44); - $this.$sentHistoryCursor = (-1); - $this.$field_73897_d = 0; - $this.$field_73905_m = 0; - $this.$field_73903_n = 0; - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$field_73904_o = var$1; - $this.$clickedURI = null; - $this.$defaultInputFieldText = $rt_s(44); -} -function nms_GuiChat__init_2($this, $par1Str) { - var var$2; - nms_GuiScreen__init_($this); - $this.$field_73898_b = $rt_s(44); - $this.$sentHistoryCursor = (-1); - $this.$field_73897_d = 0; - $this.$field_73905_m = 0; - $this.$field_73903_n = 0; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $this.$field_73904_o = var$2; - $this.$clickedURI = null; - $this.$defaultInputFieldText = $rt_s(44); - $this.$defaultInputFieldText = $par1Str; -} -function nms_GuiChat_initGui($this) { - var var$1; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - $this.$sentHistoryCursor = $this.$mc4.$ingameGUI.$persistantChatGUI.$sentMessages.$size0; - $this.$inputField = nms_GuiTextField__init_($this.$fontRenderer0, 4, $this.$height0 - 12 | 0, $this.$width0 - 4 | 0, 12); - nms_GuiTextField_setMaxStringLength($this.$inputField, 100); - $this.$inputField.$enableBackgroundDrawing = 0; - var$1 = $this.$inputField; - if (!var$1.$isFocused) - var$1.$cursorCounter = 0; - var$1.$isFocused = 1; - nms_GuiTextField_setText($this.$inputField, $this.$defaultInputFieldText); - $this.$inputField.$canLoseFocus = 0; -} -function nms_GuiChat_onGuiClosed($this) { - var var$1; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; - var$1 = $this.$mc4.$ingameGUI.$persistantChatGUI; - var$1.$field_73768_d = 0; - var$1.$field_73769_e = 0; -} -function nms_GuiChat_updateScreen($this) { - var var$1; - var$1 = $this.$inputField; - var$1.$cursorCounter = var$1.$cursorCounter + 1 | 0; -} -function nms_GuiChat_keyTyped($this, $par1, $par2) { - var $var3, 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();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$field_73905_m = 0; - if ($par2 == 15) - nms_GuiChat_completePlayerName($this); - else - $this.$field_73897_d = 0; - if ($par2 == 1) { - $var3 = $this.$mc4; - var$4 = null; - $ptr = 1; - continue main; - } - if ($par2 != 28) { - if ($par2 == 200) - nms_GuiChat_getSentHistory($this, (-1)); - else if ($par2 == 208) - nms_GuiChat_getSentHistory($this, 1); - else if ($par2 == 201) - nms_GuiNewChat_scroll($this.$mc4.$ingameGUI.$persistantChatGUI, nms_GuiNewChat_func_96127_i($this.$mc4.$ingameGUI.$persistantChatGUI) - 1 | 0); - else if ($par2 != 209) - nms_GuiTextField_textboxKeyTyped($this.$inputField, $par1, $par2); - else - nms_GuiNewChat_scroll($this.$mc4.$ingameGUI.$persistantChatGUI, -nms_GuiNewChat_func_96127_i($this.$mc4.$ingameGUI.$persistantChatGUI) + 1 | 0); - return; - } - $var3 = jl_String_trim($this.$inputField.$text); - if ($var3.$characters.data.length > 0) { - nms_GuiNewChat_addToSentMessages($this.$mc4.$ingameGUI.$persistantChatGUI, $var3); - if (!(($var3 === $rt_s(58) ? 1 : jl_String_startsWith($var3, $rt_s(58), 0)) ? 0 : 0)) { - var$5 = $this.$mc4.$thePlayer.$sendQueue; - var$4 = new nms_Packet3Chat; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$isServer = 1; - if ($var3.$characters.data.length <= nms_Packet3Chat_maxChatLength) - var$6 = $var3; - else { - $par2 = nms_Packet3Chat_maxChatLength; - if (0 > $par2) { - $var3 = new jl_IndexOutOfBoundsException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($var3); - $rt_throw($var3); - } - var$6 = jl_String__init_0($var3.$characters, 0, $par2 - 0 | 0); - } - var$4.$message0 = var$6; - var$4.$isServer = 1; - if (!var$5.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$5.$netManager, var$4); - } - } - $var3 = $this.$mc4; - var$4 = null; - $ptr = 2; - continue main; - case 1: - nmc_Minecraft_displayGuiScreen($var3, var$4); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen($var3, var$4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, var$4, var$5, var$6, $ptr); -} -function nms_GuiChat_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; - } - $var1 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel(); - if ($var1) { - if ($var1 > 1) - $var1 = 1; - if ($var1 < (-1)) - $var1 = (-1); - if (!(!nlea_EaglerAdapterImpl2_keyStates.data[42] && !nlea_EaglerAdapterImpl2_keyStates.data[54] ? 0 : 1)) - $var1 = $var1 * 7 | 0; - nms_GuiNewChat_scroll($this.$mc4.$ingameGUI.$persistantChatGUI, $var1); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $ptr); -} -function nms_GuiChat_mouseClicked($this, $par1, $par2, $par3) { - var $var4, $var5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par3 && $this.$mc4.$gameSettings.$chatLinks) { - $var4 = $this.$mc4.$ingameGUI.$persistantChatGUI; - nlea_EaglerAdapterImpl2_$callClinit(); - $var4 = nms_GuiNewChat_func_73766_a($var4, nlea_EaglerAdapterImpl2_mouseX, nlea_EaglerAdapterImpl2_mouseY); - if ($var4 !== null) { - $var5 = $var4.$clickedUrl; - if ($var5 !== null) { - if (!$this.$mc4.$gameSettings.$chatLinksPrompt) { - var$6 = $var4.$clickedUrl; - nlea_EaglerAdapterImpl2_win.open($rt_ustr(var$6), "_blank"); - return; - } - $this.$clickedURI = $var5; - var$7 = $this.$mc4; - $var5 = nms_GuiConfirmOpenLink__init_($this, $var4.$clickedUrl, 0, 0); - $ptr = 2; - continue main; - } - } - } - nms_GuiTextField_mouseClicked($this.$inputField, $par1, $par2, $par3); - $ptr = 1; - case 1: - nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen(var$7, $var5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, var$6, var$7, $ptr); -} -function nms_GuiChat_confirmClicked($this, $par1, $par2) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par2) - return; - if ($par1) { - var$3 = $this.$clickedURI; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_win.open($rt_ustr(var$3), "_blank"); - } - $this.$clickedURI = null; - var$3 = $this.$mc4; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$3, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, $ptr); -} -function nms_GuiChat_completePlayerName($this) { - var $var1, $var4, $var3, var$4, var$5, $var3_0, $var5, var$8; - if ($this.$field_73897_d) { - nms_GuiTextField_deleteFromCursor($this.$inputField, nms_GuiTextField_func_73798_a($this.$inputField, (-1), $this.$inputField.$cursorPosition, 0) - $this.$inputField.$cursorPosition | 0); - if ($this.$field_73903_n >= $this.$field_73904_o.$size0) - $this.$field_73903_n = 0; - } else { - $var1 = nms_GuiTextField_func_73798_a($this.$inputField, (-1), $this.$inputField.$cursorPosition, 0); - $var4 = $this.$field_73904_o; - ju_Arrays_fill($var4.$array1, 0, $var4.$size0, null); - $var4.$size0 = 0; - $this.$field_73903_n = 0; - $var3 = $this.$inputField.$text; - var$4 = $var3.$characters.data.length; - if ($var1 > var$4) { - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); - } - jl_String_toLowerCase(jl_String__init_0($var3.$characters, $var1, var$4 - $var1 | 0)); - $var3 = $this.$inputField.$text; - var$5 = $this.$inputField.$cursorPosition; - if (0 > var$5) { - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); - } - $var3_0 = jl_String__init_0($var3.$characters, 0, var$5 - 0 | 0); - if ($var3_0.$characters.data.length >= 1) { - $var4 = $this.$mc4.$thePlayer.$sendQueue; - $var3 = new nms_Packet203AutoComplete; - nms_Packet_$callClinit(); - $var3.$creationTimeMillis = jl_System_currentTimeMillis(); - $var3.$isChunkDataPacket = 0; - $var3.$text1 = $var3_0; - if (!$var4.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($var4.$netManager, $var3); - $this.$field_73905_m = 1; - } - if ($this.$field_73904_o.$size0 ? 0 : 1) - return; - $this.$field_73897_d = 1; - nms_GuiTextField_deleteFromCursor($this.$inputField, $var1 - $this.$inputField.$cursorPosition | 0); - } - if ($this.$field_73904_o.$size0 > 1) { - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - $var3 = $this.$field_73904_o; - $var5 = new ju_AbstractList$1; - $var5.$this$0 = $var3; - $var5.$modCount = $var5.$this$0.$modCount0; - $var5.$size1 = $var5.$this$0.$size2(); - $var5.$removeIndex = (-1); - while ($var5.$index >= $var5.$size1 ? 0 : 1) { - $var3 = ju_AbstractList$1_next($var5); - if ($var4.$length > 0) - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(344)); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $var3); - } - nms_GuiNewChat_printChatMessageWithOptionalDeletion($this.$mc4.$ingameGUI.$persistantChatGUI, jl_String__init_0($var4.$buffer, 0, $var4.$length), 1); - } - $var4 = $this.$inputField; - $var3 = $this.$field_73904_o; - var$8 = $this.$field_73903_n; - $this.$field_73903_n = var$8 + 1 | 0; - if (var$8 >= 0 && var$8 < $var3.$size0) { - nms_GuiTextField_writeText($var4, $var3.$array1.data[var$8]); - return; - } - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); -} -function nms_GuiChat_getSentHistory($this, $par1) { - var $var2, $var3, var$4, var$5; - $var2 = $this.$sentHistoryCursor + $par1 | 0; - $var3 = $this.$mc4.$ingameGUI.$persistantChatGUI.$sentMessages.$size0; - if ($var2 < 0) - $var2 = 0; - if ($var2 > $var3) - $var2 = $var3; - a: { - if ($var2 != $this.$sentHistoryCursor) { - if ($var2 == $var3) { - $this.$sentHistoryCursor = $var3; - nms_GuiTextField_setText($this.$inputField, $this.$field_73898_b); - } else { - if ($this.$sentHistoryCursor == $var3) - $this.$field_73898_b = $this.$inputField.$text; - var$4 = $this.$inputField; - var$5 = $this.$mc4.$ingameGUI.$persistantChatGUI.$sentMessages; - if ($var2 < 0) - break a; - if ($var2 >= var$5.$size0) - break a; - nms_GuiTextField_setText(var$4, var$5.$array1.data[$var2]); - $this.$sentHistoryCursor = $var2; - } - } - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -} -function nms_GuiChat_drawScreen($this, $par1, $par2, $par3) { - var var$4, var$5; - nms_Gui_drawRect(2, $this.$height0 - 14 | 0, $this.$width0 - 2 | 0, $this.$height0 - 2 | 0, (-2147483648)); - nms_GuiTextField_drawTextBox($this.$inputField); - var$4 = 0; - a: { - while (var$4 < $this.$buttonList.$size0) { - var$5 = $this.$buttonList; - if (var$4 < 0) - break a; - if (var$4 >= var$5.$size0) - break a; - var$5.$array1.data[var$4].$drawButton($this.$mc4, $par1, $par2); - var$4 = var$4 + 1 | 0; - } - return; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); -} -function nms_GuiChat_func_73894_a($this, $par1ArrayOfStr) { - var $var5, $var3, $var4; - if ($this.$field_73905_m) { - $par1ArrayOfStr = $par1ArrayOfStr.data; - $var5 = $this.$field_73904_o; - ju_Arrays_fill($var5.$array1, 0, $var5.$size0, null); - $var5.$size0 = 0; - $var3 = $par1ArrayOfStr.length; - $var4 = 0; - while ($var4 < $var3) { - $var5 = $par1ArrayOfStr[$var4]; - if ($var5.$characters.data.length > 0) - ju_ArrayList_add($this.$field_73904_o, $var5); - $var4 = $var4 + 1 | 0; - } - if ($this.$field_73904_o.$size0 > 0) { - $this.$field_73897_d = 1; - nms_GuiChat_completePlayerName($this); - } - } -} -function nms_WorldClient() { - var a = this; nms_World.call(a); - a.$sendQueue0 = null; - a.$clientChunkProvider = null; - a.$entityHashSet = null; - a.$entityList = null; - a.$entitySpawnQueue = null; - a.$mc11 = null; - a.$previousActiveChunkSet = null; -} -function nms_WorldClient__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_WorldClient(); - nms_WorldClient__init_0(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_WorldClient__init_0($this, $par1NetClientHandler, $par2WorldSettings, $par3, $par4, $par5Profiler) { - nms_World__init_0($this, $rt_s(1150), nms_WorldProvider_getProviderForDimension($par3), $par2WorldSettings, $par5Profiler); - $par2WorldSettings = new nms_IntHashMap; - $par2WorldSettings.$slots = $rt_createArray(nms_IntHashMapEntry, 16); - $par2WorldSettings.$threshold0 = 12; - $par2WorldSettings.$growFactor = 0.75; - $par5Profiler = new ju_HashSet; - $par5Profiler.$backingMap = ju_HashMap__init_1(16, 0.75); - $par2WorldSettings.$keySet0 = $par5Profiler; - $this.$entityHashSet = $par2WorldSettings; - $par2WorldSettings = new ju_HashSet; - $par2WorldSettings.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$entityList = $par2WorldSettings; - $par2WorldSettings = new ju_HashSet; - $par2WorldSettings.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$entitySpawnQueue = $par2WorldSettings; - $this.$mc11 = nmc_Minecraft_theMinecraft; - $par2WorldSettings = new ju_HashSet; - $par2WorldSettings.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$previousActiveChunkSet = $par2WorldSettings; - $this.$sendQueue0 = $par1NetClientHandler; - $this.$difficultySetting = $par4; - $par2WorldSettings = $this.$worldInfo; - $par2WorldSettings.$spawnX = 8; - $par2WorldSettings.$spawnY = 64; - $par2WorldSettings.$spawnZ = 8; - $this.$mapStorage = $par1NetClientHandler.$mapStorage0; -} -function nms_WorldClient_tick($this) { - var var$1, $var1, $var2, var$4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$4 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_WorldClient_updateWeather($this); - var$1 = Long_add($this.$worldInfo.$totalTime, Long_fromInt(1)); - $this.$worldInfo.$totalTime = var$1; - var$1 = Long_add($this.$worldInfo.$worldTime, Long_fromInt(1)); - $this.$worldInfo.$worldTime = var$1; - nms_Profiler_startSection($this.$theProfiler, $rt_s(1151)); - $var1 = 0; - while ($var1 < 10 && !($this.$entitySpawnQueue.$backingMap.$elementCount ? 0 : 1)) { - $var2 = $this.$entitySpawnQueue.$backingMap; - if ($var2.$cachedKeySet === null) { - var$4 = new ju_HashMap$1; - var$4.$this$01 = $var2; - $var2.$cachedKeySet = var$4; - } - $var2 = $var2.$cachedKeySet.$iterator().$next(); - var$4 = ju_HashMap_removeEntry($this.$entitySpawnQueue.$backingMap, $var2); - if (!ju_AbstractCollection_contains($this.$loadedEntityList, $var2)) - nms_WorldClient_spawnEntityInWorld($this, $var2); - $var1 = $var1 + 1 | 0; - } - $var2 = $this.$theProfiler; - nms_Profiler_endSection($var2); - nms_Profiler_startSection($var2, $rt_s(1152)); - $var2 = $this.$sendQueue0; - if (!$var2.$disconnected && $var2.$netManager !== null) { - var$4 = $var2.$netManager; - $ptr = 1; - continue main; - } - $var2 = $this.$theProfiler; - nms_Profiler_endSection($var2); - nms_Profiler_startSection($var2, $rt_s(1153)); - $var2 = $this.$theProfiler; - nms_Profiler_endSection($var2); - nms_Profiler_startSection($var2, $rt_s(1154)); - nms_WorldClient_tickBlocksAndAmbiance($this); - nms_Profiler_endSection($this.$theProfiler); - return; - case 1: - nle_WebsocketNetworkManager_processReadPackets(var$4); - if ($rt_suspending()) { - break main; - } - $var2 = $this.$theProfiler; - nms_Profiler_endSection($var2); - nms_Profiler_startSection($var2, $rt_s(1153)); - $var2 = $this.$theProfiler; - nms_Profiler_endSection($var2); - nms_Profiler_startSection($var2, $rt_s(1154)); - nms_WorldClient_tickBlocksAndAmbiance($this); - nms_Profiler_endSection($this.$theProfiler); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, $var2, var$4, $ptr); -} -function nms_WorldClient_invalidateBlockReceiveRegion($this, $par1, $par2, $par3, $par4, $par5, $par6) { - return; -} -function nms_WorldClient_createChunkProvider($this) { - var var$1, var$2; - var$1 = new nms_ChunkProviderClient; - var$2 = new nms_LongHashMap; - var$2.$hashArray = $rt_createArray(nms_LongHashMapEntry, 16); - var$2.$capacity0 = 12; - var$2.$percentUseable = 0.75; - var$1.$chunkMapping = var$2; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - var$1.$chunkListing = var$2; - var$2 = new nms_EmptyChunk; - nms_Chunk__init_(var$2, $this, 0, 0); - var$1.$blankChunk = var$2; - var$1.$worldObj4 = $this; - $this.$clientChunkProvider = var$1; - return $this.$clientChunkProvider; -} -function nms_WorldClient_tickBlocksAndAmbiance($this) { - var $var3, $var6, $var2, var$4, $var5, var$6, $var1, $var4, var$9, var$10; - nms_World_setActivePlayerChunksAndCheckLight($this); - $var3 = $this.$previousActiveChunkSet; - $var6 = $this.$activeChunkSet; - $var3 = $var3.$backingMap; - if ($var3.$cachedKeySet === null) { - $var2 = new ju_HashMap$1; - $var2.$this$01 = $var3; - $var3.$cachedKeySet = $var2; - } - var$4 = $var3.$cachedKeySet.$iterator(); - while (var$4.$hasNext()) { - $var3 = var$4.$next(); - $var2 = $var6.$backingMap; - if ($var3 !== null) { - $var5 = $var3.$hashCode0(); - $var3 = ju_HashMap_findNonNullKeyEntry($var2, $var3, $var5 & ($var2.$elementData.data.length - 1 | 0), $var5); - } else { - $var3 = $var2.$elementData.data[0]; - while ($var3 !== null && $var3.$key !== null) { - $var3 = $var3.$next1; - } - } - if (!($var3 === null ? 0 : 1)) - var$4.$remove(); - } - if ($this.$previousActiveChunkSet.$backingMap.$elementCount == $this.$activeChunkSet.$backingMap.$elementCount) { - $var3 = $this.$previousActiveChunkSet.$backingMap; - if ($var3.$elementCount > 0) { - $var3.$elementCount = 0; - var$6 = $var3.$elementData; - ju_Arrays_fill(var$6, 0, var$6.data.length, null); - $var3.$modCount1 = $var3.$modCount1 + 1 | 0; - } - } - $var1 = 0; - $var3 = $this.$activeChunkSet.$backingMap; - if ($var3.$cachedKeySet === null) { - $var6 = new ju_HashMap$1; - $var6.$this$01 = $var3; - $var3.$cachedKeySet = $var6; - } - $var2 = $var3.$cachedKeySet.$iterator(); - while ($var2.$hasNext()) { - $var3 = $var2.$next(); - $var6 = $this.$previousActiveChunkSet.$backingMap; - if ($var3 !== null) { - $var4 = nms_ChunkCoordIntPair_hashCode($var3); - $var6 = ju_HashMap_findNonNullKeyEntry($var6, $var3, $var4 & ($var6.$elementData.data.length - 1 | 0), $var4); - } else { - $var6 = $var6.$elementData.data[0]; - while ($var6 !== null && $var6.$key !== null) { - $var6 = $var6.$next1; - } - } - if (!($var6 === null ? 0 : 1)) { - $var4 = $var3.$chunkXPos * 16 | 0; - $var5 = $var3.$chunkZPos * 16 | 0; - nms_Profiler_startSection($this.$theProfiler, $rt_s(1155)); - var$9 = $var3.$chunkXPos; - var$10 = $var3.$chunkZPos; - nms_World_moodSoundAndLightCheck($this, $var4, $var5, nms_ChunkProviderClient_provideChunk($this.$chunkProvider, var$9, var$10)); - nms_Profiler_endSection($this.$theProfiler); - $var6 = $this.$previousActiveChunkSet; - ju_HashMap_putImpl($var6.$backingMap, $var3, $var6); - $var1 = $var1 + 1 | 0; - if ($var1 >= 10) - return; - } - } -} -function nms_WorldClient_doPreChunk($this, $par1, $par2, $par3) { - var var$4, var$5, var$6, var$7; - if (!$par3) - nms_ChunkProviderClient_unloadChunk($this.$clientChunkProvider, $par1, $par2); - else - nms_ChunkProviderClient_loadChunk($this.$clientChunkProvider, $par1, $par2); - a: { - if (!$par3) { - $par3 = $par1 * 16 | 0; - $par1 = $par2 * 16 | 0; - $par2 = $par3 + 15 | 0; - var$4 = $par1 + 15 | 0; - var$5 = 0; - var$6 = $par3 - 1 | 0; - $par1 = $par1 - 1 | 0; - $par2 = $par2 + 1 | 0; - var$4 = var$4 + 1 | 0; - while (var$5 < $this.$worldAccesses.$size0) { - var$7 = $this.$worldAccesses; - if (var$5 < 0) - break a; - if (var$5 >= var$7.$size0) - break a; - nms_RenderGlobal_markBlocksForUpdate(var$7.$array1.data[var$5], var$6, (-1), $par1, $par2, 257, var$4); - var$5 = var$5 + 1 | 0; - } - } - return; - } - var$7 = new jl_IndexOutOfBoundsException; - var$7.$suppressionEnabled = 1; - var$7.$writableStackTrace = 1; - $rt_throw(var$7); -} -function nms_WorldClient_spawnEntityInWorld($this, $par1Entity) { - var $var2, var$3; - $var2 = nms_World_spawnEntityInWorld($this, $par1Entity); - var$3 = $this.$entityList; - ju_HashMap_putImpl(var$3.$backingMap, $par1Entity, var$3); - if (!$var2) { - var$3 = $this.$entitySpawnQueue; - ju_HashMap_putImpl(var$3.$backingMap, $par1Entity, var$3); - } - return $var2; -} -function nms_WorldClient_removeEntity($this, $par1Entity) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_World_removeEntity($this, $par1Entity); - if ($rt_suspending()) { - break main; - } - $par1Entity = ju_HashMap_removeEntry($this.$entityList.$backingMap, $par1Entity); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $ptr); -} -function nms_WorldClient_obtainEntitySkin($this, $par1Entity) { - var var$2, var$3, var$4; - var$2 = 0; - while (true) { - if (var$2 >= $this.$worldAccesses.$size0) { - var$3 = $this.$entitySpawnQueue.$backingMap; - if ($par1Entity !== null) { - var$4 = $par1Entity.$entityId; - var$3 = ju_HashMap_findNonNullKeyEntry(var$3, $par1Entity, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - var$3 = var$3.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - if (var$3 === null ? 0 : 1) - $par1Entity = ju_HashMap_removeEntry($this.$entitySpawnQueue.$backingMap, $par1Entity); - return; - } - var$3 = $this.$worldAccesses; - if (var$2 < 0) - break; - if (var$2 >= var$3.$size0) - break; - $par1Entity.$updateCloak(); - var$2 = var$2 + 1 | 0; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); -} -function nms_WorldClient_releaseEntitySkin($this, $par1Entity) { - var var$2, var$3, var$4; - var$2 = 0; - while (true) { - if (var$2 >= $this.$worldAccesses.$size0) { - var$3 = $this.$entityList.$backingMap; - if ($par1Entity !== null) { - var$4 = $par1Entity.$entityId; - var$3 = ju_HashMap_findNonNullKeyEntry(var$3, $par1Entity, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - var$3 = var$3.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - if (var$3 === null ? 0 : 1) { - if ($par1Entity.$isEntityAlive()) { - var$3 = $this.$entitySpawnQueue; - ju_HashMap_putImpl(var$3.$backingMap, $par1Entity, var$3); - } else - $par1Entity = ju_HashMap_removeEntry($this.$entityList.$backingMap, $par1Entity); - } - return; - } - var$3 = $this.$worldAccesses; - if (var$2 < 0) - break; - if (var$2 >= var$3.$size0) - break; - var$2 = var$2 + 1 | 0; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); -} -function nms_WorldClient_addEntityToWorld($this, $par1, $par2Entity) { - var $var3, 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();$var3 = $thread.pop();$par2Entity = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = $par1 == $this.$mc11.$thePlayer.$entityId ? $this.$mc11.$thePlayer : nms_IntHashMap_lookup($this.$entityHashSet, $par1); - if ($var3 === null) { - $var3 = $this.$entityList; - ju_HashMap_putImpl($var3.$backingMap, $par2Entity, $var3); - $par2Entity.$entityId = $par1; - var$4 = nms_World_spawnEntityInWorld($this, $par2Entity); - var$5 = $this.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, $par2Entity, var$5); - if (!var$4) { - var$5 = $this.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, $par2Entity, var$5); - } - if (!var$4) { - var$5 = $this.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, $par2Entity, var$5); - } - nms_IntHashMap_addKey($this.$entityHashSet, $par1, $par2Entity); - return; - } - $ptr = 1; - case 1: - nms_World_removeEntity($this, $var3); - if ($rt_suspending()) { - break main; - } - var$5 = ju_HashMap_removeEntry($this.$entityList.$backingMap, $var3); - $var3 = $this.$entityList; - ju_HashMap_putImpl($var3.$backingMap, $par2Entity, $var3); - $par2Entity.$entityId = $par1; - var$4 = nms_World_spawnEntityInWorld($this, $par2Entity); - var$5 = $this.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, $par2Entity, var$5); - if (!var$4) { - var$5 = $this.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, $par2Entity, var$5); - } - if (!var$4) { - var$5 = $this.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, $par2Entity, var$5); - } - nms_IntHashMap_addKey($this.$entityHashSet, $par1, $par2Entity); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2Entity, $var3, var$4, var$5, $ptr); -} -function nms_WorldClient_getEntityByID($this, $par1) { - return $par1 == $this.$mc11.$thePlayer.$entityId ? $this.$mc11.$thePlayer : nms_IntHashMap_lookup($this.$entityHashSet, $par1); -} -function nms_WorldClient_removeEntityFromWorld($this, $par1) { - var $var2, var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_IntHashMap_removeObject($this.$entityHashSet, $par1); - if ($var2 === null) - return $var2; - var$3 = ju_HashMap_removeEntry($this.$entityList.$backingMap, $var2); - $ptr = 1; - case 1: - nms_World_removeEntity($this, $var2); - if ($rt_suspending()) { - break main; - } - var$3 = ju_HashMap_removeEntry($this.$entityList.$backingMap, $var2); - return $var2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, var$3, $ptr); -} -function nms_WorldClient_setBlockAndMetadataAndInvalidate($this, $par1, $par2, $par3, $par4, $par5) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = 3; - $ptr = 1; - case 1: - $tmp = nms_World_setBlock($this, $par1, $par2, $par3, $par4, $par5, var$6); - if ($rt_suspending()) { - break main; - } - $par1 = $tmp; - return $par1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5, var$6, $ptr); -} -function nms_WorldClient_sendQuittingDisconnectingPacket($this) { - var var$1, var$2; - var$1 = $this.$sendQueue0; - var$2 = new nms_Packet255KickDisconnect; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - var$2.$reason = $rt_s(1156); - if (!var$1.$disconnected) { - nle_WebsocketNetworkManager_addToSendQueue(var$1.$netManager, var$2); - nle_WebsocketNetworkManager_serverShutdown(var$1.$netManager); - } -} -function nms_WorldClient_func_82735_a($this, $par1EntityMinecart) { - return nms_SoundUpdaterMinecart__init_($this.$mc11.$sndManager, $par1EntityMinecart, $this.$mc11.$thePlayer); -} -function nms_WorldClient_updateWeather($this) { - if (!$this.$provider.$hasNoSky) { - $this.$prevRainingStrength = $this.$rainingStrength; - if (!$this.$worldInfo.$raining) - $this.$rainingStrength = $this.$rainingStrength - 0.01; - else - $this.$rainingStrength = $this.$rainingStrength + 0.01; - if ($this.$rainingStrength < 0.0) - $this.$rainingStrength = 0.0; - if ($this.$rainingStrength > 1.0) - $this.$rainingStrength = 1.0; - $this.$prevThunderingStrength = $this.$thunderingStrength; - if (!$this.$worldInfo.$thundering) - $this.$thunderingStrength = $this.$thunderingStrength - 0.01; - else - $this.$thunderingStrength = $this.$thunderingStrength + 0.01; - if ($this.$thunderingStrength < 0.0) - $this.$thunderingStrength = 0.0; - if ($this.$thunderingStrength > 1.0) - $this.$thunderingStrength = 1.0; - } -} -function nms_WorldClient_doVoidFogParticles($this, $par1, $par2, $par3) { - var $var5, $var6, var$6, var$7, $var7, $var8, $var9, $var10, var$12, var$13, var$14, var$15, var$16, var$17, var$18, var$19, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = new ju_Random; - $var6 = 0; - var$6 = 16.0; - var$7 = 8.0; - while ($var6 < 1000) { - a: { - $var7 = ($par1 + (Math.random() * var$6 | 0) | 0) - (Math.random() * var$6 | 0) | 0; - $var8 = ($par2 + (Math.random() * var$6 | 0) | 0) - (Math.random() * var$6 | 0) | 0; - $var9 = ($par3 + (Math.random() * var$6 | 0) | 0) - (Math.random() * var$6 | 0) | 0; - $var10 = nms_World_getBlockId($this, $var7, $var8, $var9); - if (!$var10 && (Math.random() * var$7 | 0) > $var8) { - var$12 = $this.$provider; - if (var$12.$terrainType !== nms_WorldType_FLAT && !var$12.$hasNoSky ? 1 : 0) { - var$12 = $rt_s(848); - var$13 = $var7 + Math.random(); - var$14 = $var8 + Math.random(); - var$15 = $var9 + Math.random(); - var$16 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $var8 = 0; - if ($var8 < $this.$worldAccesses.$size0) { - var$19 = $this.$worldAccesses; - if ($var8 >= 0 && $var8 < var$19.$size0) { - var$19 = var$19.$array1.data[$var8]; - $ptr = 2; - continue main; - } - var$12 = new jl_IndexOutOfBoundsException; - var$12.$suppressionEnabled = 1; - var$12.$writableStackTrace = 1; - $rt_throw(var$12); - } - break a; - } - } - if ($var10 > 0) { - nms_Block_$callClinit(); - var$12 = nms_Block_blocksList.data[$var10]; - $ptr = 1; - continue main; - } - } - $var6 = $var6 + 1 | 0; - } - return; - case 1: - var$12.$randomDisplayTick($this, $var7, $var8, $var9, $var5); - if ($rt_suspending()) { - break main; - } - while (true) { - $var6 = $var6 + 1 | 0; - if ($var6 >= 1000) - break; - $var7 = ($par1 + (Math.random() * var$6 | 0) | 0) - (Math.random() * var$6 | 0) | 0; - $var8 = ($par2 + (Math.random() * var$6 | 0) | 0) - (Math.random() * var$6 | 0) | 0; - $var9 = ($par3 + (Math.random() * var$6 | 0) | 0) - (Math.random() * var$6 | 0) | 0; - $var10 = nms_World_getBlockId($this, $var7, $var8, $var9); - if (!$var10 && (Math.random() * var$7 | 0) > $var8) { - var$12 = $this.$provider; - if (var$12.$terrainType !== nms_WorldType_FLAT && !var$12.$hasNoSky ? 1 : 0) { - var$12 = $rt_s(848); - var$13 = $var7 + Math.random(); - var$14 = $var8 + Math.random(); - var$15 = $var9 + Math.random(); - var$16 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $var8 = 0; - if ($var8 < $this.$worldAccesses.$size0) { - var$19 = $this.$worldAccesses; - if ($var8 >= 0 && $var8 < var$19.$size0) { - var$19 = var$19.$array1.data[$var8]; - $ptr = 2; - continue main; - } - var$12 = new jl_IndexOutOfBoundsException; - var$12.$suppressionEnabled = 1; - var$12.$writableStackTrace = 1; - $rt_throw(var$12); - } - continue; - } - } - if ($var10 <= 0) - continue; - else { - nms_Block_$callClinit(); - var$12 = nms_Block_blocksList.data[$var10]; - continue main; - } - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$19, var$12, var$13, var$14, var$15, var$16, var$17, var$18); - if ($rt_suspending()) { - break main; - } - $var8 = $var8 + 1 | 0; - b: while (true) { - if ($var8 < $this.$worldAccesses.$size0) { - var$19 = $this.$worldAccesses; - if ($var8 >= 0 && $var8 < var$19.$size0) { - var$19 = var$19.$array1.data[$var8]; - continue main; - } - var$12 = new jl_IndexOutOfBoundsException; - var$12.$suppressionEnabled = 1; - var$12.$writableStackTrace = 1; - $rt_throw(var$12); - } - while (true) { - $var6 = $var6 + 1 | 0; - if ($var6 >= 1000) - break b; - $var7 = ($par1 + (Math.random() * var$6 | 0) | 0) - (Math.random() * var$6 | 0) | 0; - $var8 = ($par2 + (Math.random() * var$6 | 0) | 0) - (Math.random() * var$6 | 0) | 0; - $var9 = ($par3 + (Math.random() * var$6 | 0) | 0) - (Math.random() * var$6 | 0) | 0; - $var10 = nms_World_getBlockId($this, $var7, $var8, $var9); - if (!$var10 && (Math.random() * var$7 | 0) > $var8) { - var$12 = $this.$provider; - if (var$12.$terrainType !== nms_WorldType_FLAT && !var$12.$hasNoSky ? 1 : 0) - break; - } - if ($var10 <= 0) - continue; - else { - nms_Block_$callClinit(); - var$12 = nms_Block_blocksList.data[$var10]; - $ptr = 1; - continue main; - } - } - var$12 = $rt_s(848); - var$13 = $var7 + Math.random(); - var$14 = $var8 + Math.random(); - var$15 = $var9 + Math.random(); - var$16 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $var8 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var5, $var6, var$6, var$7, $var7, $var8, $var9, $var10, var$12, var$13, var$14, var$15, var$16, var$17, var$18, var$19, $ptr); -} -function nms_WorldClient_removeAllEntities($this) { - var $var2, var$2, var$3, $var1, $var3, $var3_0, $var4; - $var2 = $this.$loadedEntityList; - var$2 = $this.$unloadedEntityList; - var$3 = new ju_AbstractList$1; - var$3.$this$0 = $var2; - 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_AbstractCollection_contains(var$2, ju_AbstractList$1_next(var$3))) - ju_AbstractList$1_remove(var$3); - } - $var1 = 0; - while (true) { - if ($var1 >= $this.$unloadedEntityList.$size0) { - $var1 = 0; - a: { - while (true) { - if ($var1 >= $this.$unloadedEntityList.$size0) { - $var2 = $this.$unloadedEntityList; - ju_Arrays_fill($var2.$array1, 0, $var2.$size0, null); - $var2.$size0 = 0; - $var3 = 0; - while ($var3 < $this.$loadedEntityList.$size0) { - b: { - $var2 = $this.$loadedEntityList; - ju_ArrayList_checkIndex($var2, $var3); - $var2 = $var2.$array1.data[$var3]; - if ($var2.$ridingEntity !== null) { - if (!$var2.$ridingEntity.$isDead && $var2.$ridingEntity.$riddenByEntity === $var2) - break b; - $var2.$ridingEntity.$riddenByEntity = null; - $var2.$ridingEntity = null; - } - if ($var2.$isDead) { - $var3_0 = $var2.$chunkCoordX; - $var4 = $var2.$chunkCoordZ; - if ($var2.$addedToChunk && nms_World_chunkExists($this, $var3_0, $var4)) - nms_World_getChunkFromChunkCoords($this, $var3_0, $var4).$removeEntity($var2); - var$2 = $this.$loadedEntityList; - $var1 = $var3 + (-1) | 0; - ju_ArrayList_remove(var$2, $var3); - nms_WorldClient_releaseEntitySkin($this, $var2); - $var3 = $var1; - } - } - $var3 = $var3 + 1 | 0; - } - return; - } - $var2 = $this.$unloadedEntityList; - if ($var1 < 0) - break; - if ($var1 >= $var2.$size0) - break; - $var2 = $var2.$array1.data[$var1]; - $var3 = 0; - while ($var3 < $this.$worldAccesses.$size0) { - var$2 = $this.$worldAccesses; - if ($var3 < 0) - break a; - if ($var3 >= var$2.$size0) - break a; - $var3 = $var3 + 1 | 0; - } - var$2 = $this.$entityList.$backingMap; - if ($var2 !== null) { - $var4 = $var2.$entityId; - var$2 = ju_HashMap_findNonNullKeyEntry(var$2, $var2, $var4 & (var$2.$elementData.data.length - 1 | 0), $var4); - } 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) { - if ($var2.$isEntityAlive()) { - var$2 = $this.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, $var2, var$2); - } else - $var2 = ju_HashMap_removeEntry($this.$entityList.$backingMap, $var2); - } - $var1 = $var1 + 1 | 0; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($var2); - $rt_throw($var2); - } - $var2 = $this.$unloadedEntityList; - if ($var1 < 0) - break; - if ($var1 >= $var2.$size0) - break; - $var2 = $var2.$array1.data[$var1]; - $var3 = $var2.$chunkCoordX; - $var4 = $var2.$chunkCoordZ; - if ($var2.$addedToChunk) - nms_ChunkProviderClient_provideChunk($this.$chunkProvider, $var3, $var4).$removeEntity($var2); - $var1 = $var1 + 1 | 0; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -} -function nms_WorldClient_playSound($this, $par1, $par3, $par5, $par7Str, $par8, $par9, $par10) { - var $var11, var$9, $var14, $var12, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();$var12 = $thread.pop();$var14 = $thread.pop();var$9 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7Str = $thread.pop();$par5 = $thread.pop();$par3 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var11 = 16.0; - if ($par8 > 1.0) - $var11 = $var11 * $par8; - a: { - var$9 = $this.$mc11.$renderViewEntity; - $var14 = var$9.$posX - $par1; - $var12 = var$9.$posY - $par3; - var$12 = var$9.$posZ - $par5; - $var12 = $var14 * $var14 + $var12 * $var12 + var$12 * var$12; - if ($var12 < $var11 * $var11) { - if (!$par10) - break a; - if ($var12 <= 100.0) - break a; - $var14 = jl_Math_sqrt($var12) / 40.0; - var$9 = $this.$mc11.$sndManager; - $var11 = $par1; - var$13 = $par3; - var$14 = $par5; - $par5 = $var14 * 20.0; - $par10 = $rt_compare($par5, 0.0); - $par10 = Long_fromNumber($par5 + ($par10 > 0 ? 1.0 : $par10 >= 0 ? $par5 : (-1.0)) * 0.5).lo; - var$15 = var$9.$queuedsoundevents; - var$9 = new nms_SoundManager$QueuedSoundEvent; - var$9.$sound = $par7Str; - var$9.$x1 = $var11; - var$9.$y1 = var$13; - var$9.$z1 = var$14; - var$9.$volume = $par8; - var$9.$pitch = $par9; - var$9.$timer0 = $par10; - ju_ArrayList_add(var$15, var$9); - } - return; - } - var$9 = $this.$mc11.$sndManager; - $var11 = $par1; - var$13 = $par3; - var$14 = $par5; - $ptr = 1; - case 1: - nms_SoundManager_playSound(var$9, $par7Str, $var11, var$13, var$14, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par3, $par5, $par7Str, $par8, $par9, $par10, $var11, var$9, $var14, $var12, var$12, var$13, var$14, var$15, $ptr); -} -function nms_WorldClient_func_92088_a($this, $par1, $par3, $par5, $par7, $par9, $par11, $par13NBTTagCompound) { - nms_EffectRenderer_addEffect($this.$mc11.$effectRenderer, nms_EntityFireworkStarterFX__init_($this, $par1, $par3, $par5, $par7, $par9, $par11, $this.$mc11.$effectRenderer, $par13NBTTagCompound)); -} -function nms_WorldClient_func_96443_a($this, $par1Scoreboard) { - $this.$worldScoreboard = $par1Scoreboard; -} -function nms_GuiSleepMP() { - nms_GuiChat.call(this); -} -function nms_GuiSleepMP__init_0() { - var var_0 = new nms_GuiSleepMP(); - nms_GuiSleepMP__init_(var_0); - return var_0; -} -function nms_GuiSleepMP__init_($this) { - nms_GuiChat__init_($this); -} -function nms_GuiSleepMP_initGui($this) { - var $var1; - nms_GuiChat_initGui($this); - $var1 = nms_StringTranslate_instance; - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, $this.$height0 - 40 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(1157)))); -} -function nms_GuiSleepMP_keyTyped($this, $par1, $par2) { - var var$3, $var3, 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();$var3 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par2 == 1) { - var$3 = $this.$mc4.$thePlayer.$sendQueue; - $var3 = new nms_Packet19EntityAction; - var$5 = $this.$mc4.$thePlayer; - nms_Packet_$callClinit(); - $var3.$creationTimeMillis = jl_System_currentTimeMillis(); - $var3.$isChunkDataPacket = 0; - $var3.$entityId0 = var$5.$entityId; - $var3.$state = 3; - if (!var$3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$3.$netManager, $var3); - } else { - if ($par2 != 28) { - $ptr = 1; - continue main; - } - $var3 = jl_String_trim($this.$inputField.$text); - if ($var3.$characters.data.length > 0) { - var$5 = $this.$mc4.$thePlayer.$sendQueue; - var$3 = new nms_Packet3Chat; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$isServer = 1; - if ($var3.$characters.data.length <= nms_Packet3Chat_maxChatLength) - var$6 = $var3; - else { - $par2 = nms_Packet3Chat_maxChatLength; - if (0 > $par2) { - $var3 = new jl_IndexOutOfBoundsException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($var3); - $rt_throw($var3); - } - var$6 = jl_String__init_0($var3.$characters, 0, $par2 - 0 | 0); - } - var$3.$message0 = var$6; - var$3.$isServer = 1; - if (!var$5.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$5.$netManager, var$3); - } - nms_GuiTextField_setText($this.$inputField, $rt_s(44)); - $var3 = $this.$mc4.$ingameGUI.$persistantChatGUI; - $var3.$field_73768_d = 0; - $var3.$field_73769_e = 0; - } - return; - case 1: - nms_GuiChat_keyTyped($this, $par1, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, $var3, var$5, var$6, $ptr); -} -function nms_GuiSleepMP_actionPerformed($this, $par1GuiButton) { - var var$2, var$3; - if ($par1GuiButton.$id2 == 1) { - var$2 = $this.$mc4.$thePlayer.$sendQueue; - $par1GuiButton = new nms_Packet19EntityAction; - var$3 = $this.$mc4.$thePlayer; - nms_Packet_$callClinit(); - $par1GuiButton.$creationTimeMillis = jl_System_currentTimeMillis(); - $par1GuiButton.$isChunkDataPacket = 0; - $par1GuiButton.$entityId0 = var$3.$entityId; - $par1GuiButton.$state = 3; - if (!var$2.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$2.$netManager, $par1GuiButton); - } -} -function nms_SoundManager$EntitySoundEvent() { - var a = this; jl_Object.call(a); - a.$e = null; - a.$id1 = 0; -} -function nms_SoundManager$QueuedSoundEvent() { - var a = this; jl_Object.call(a); - a.$sound = null; - a.$x1 = 0.0; - a.$y1 = 0.0; - a.$z1 = 0.0; - a.$volume = 0.0; - a.$pitch = 0.0; - a.$timer0 = 0; -} -function jnci_BufferedEncoder() { - jnc_CharsetEncoder.call(this); -} -function jnci_BufferedEncoder_encodeLoop($this, $in, $out) { - var $outSize, $i, $inArray, $inPos, $inSize, $outSize_0, var$9, $outArray, var$11, var$12, $controller; - $outSize = $in.$limit - $in.$position | 0; - $i = 512; - if ($outSize < $i) - $i = $outSize; - $inArray = $rt_createCharArray($i); - $inPos = 0; - $inSize = 0; - $outSize_0 = $out.$limit - $out.$position | 0; - $outSize = 512; - if ($outSize_0 < $outSize) - $outSize = $outSize_0; - var$9 = $inArray.data; - $outArray = $rt_createByteArray($outSize); - var$11 = $outArray.data; - a: { - while (true) { - if (($inPos + 32 | 0) > $inSize && ($in.$position >= $in.$limit ? 0 : 1)) { - $i = $inPos; - while ($i < $inSize) { - var$9[$i - $inPos | 0] = var$9[$i]; - $i = $i + 1 | 0; - } - $i = $inSize - $inPos | 0; - $outSize_0 = ($in.$limit - $in.$position | 0) + $i | 0; - $inSize = var$9.length; - if ($outSize_0 < $inSize) - $inSize = $outSize_0; - jn_CharBuffer_get($in, $inArray, $i, $inSize - $i | 0); - $inPos = 0; - } - if (!($out.$position >= $out.$limit ? 0 : 1)) { - $i = $in.$position >= $in.$limit ? 0 : 1; - var$12 = !$i && $inPos >= $inSize ? jnc_CoderResult_UNDERFLOW : jnc_CoderResult_OVERFLOW; - break a; - } - $outSize = $out.$limit - $out.$position | 0; - $outSize_0 = var$11.length; - if ($outSize < $outSize_0) - $outSize_0 = $outSize; - $controller = new jnci_BufferedEncoder$Controller; - $controller.$in1 = $in; - $controller.$out2 = $out; - var$12 = jnci_UTF8Encoder_arrayEncode($this, $inArray, $inPos, $inSize, $outArray, 0, $outSize_0, $controller); - $inPos = $controller.$inPosition; - if (var$12 === null && 0 == $controller.$outPosition) - var$12 = jnc_CoderResult_UNDERFLOW; - jn_ByteBuffer_put0($out, $outArray, 0, $controller.$outPosition); - if (var$12 !== null) - break; - } - } - jn_Buffer_position0($in, $in.$position - ($inSize - $inPos | 0) | 0); - return var$12; -} -function jnci_UTF8Encoder() { - jnci_BufferedEncoder.call(this); -} -function jnci_UTF8Encoder_arrayEncode($this, $inArray, $inPos, $inSize, $outArray, $outPos, $outSize, $controller) { - var $result, var$9, var$10, $ch, $low, var$13, $codePoint, var$15; - $result = null; - a: { - while ($inPos < $inSize) { - if ($outPos >= $outSize) { - var$9 = $inPos; - break a; - } - var$10 = $inArray.data; - var$9 = $inPos + 1 | 0; - $ch = var$10[$inPos]; - if ($ch < 128) { - var$10 = $outArray.data; - $low = $outPos + 1 | 0; - var$10[$outPos] = $ch << 24 >> 24; - } else if ($ch < 2048) { - if (($outPos + 2 | 0) > $outSize) { - var$9 = var$9 + (-1) | 0; - var$13 = $controller.$out2; - if ((var$13.$limit - var$13.$position | 0) < 2 ? 0 : 1) - break a; - $result = jnc_CoderResult_OVERFLOW; - break a; - } - var$10 = $outArray.data; - $inPos = $outPos + 1 | 0; - var$10[$outPos] = (192 | $ch >> 6) << 24 >> 24; - $low = $inPos + 1 | 0; - var$10[$inPos] = (128 | $ch & 63) << 24 >> 24; - } else { - $codePoint = $ch & 64512; - $low = $rt_compare($codePoint, 55296); - $inPos = $low ? 0 : 1; - if (!(!$inPos && !($codePoint != 56320 ? 0 : 1) ? 0 : 1)) { - if (($outPos + 3 | 0) > $outSize) { - var$9 = var$9 + (-1) | 0; - var$13 = $controller.$out2; - if ((var$13.$limit - var$13.$position | 0) < 3 ? 0 : 1) - break a; - $result = jnc_CoderResult_OVERFLOW; - break a; - } - var$10 = $outArray.data; - $inPos = $outPos + 1 | 0; - var$10[$outPos] = (224 | $ch >> 12) << 24 >> 24; - $outPos = $inPos + 1 | 0; - var$10[$inPos] = (128 | $ch >> 6 & 63) << 24 >> 24; - $low = $outPos + 1 | 0; - var$10[$outPos] = (128 | $ch & 63) << 24 >> 24; - } else { - if (!($low ? 0 : 1)) { - $result = new jnc_CoderResult; - $result.$kind = 2; - $result.$length2 = 1; - break a; - } - if (var$9 >= $inSize) { - var$13 = $controller.$in1; - if (var$13.$position >= var$13.$limit ? 0 : 1) - break a; - $result = jnc_CoderResult_UNDERFLOW; - break a; - } - var$15 = var$9 + 1 | 0; - $low = var$10[var$9]; - if (!(($low & 64512) != 56320 ? 0 : 1)) { - var$9 = var$15 + (-2) | 0; - $result = new jnc_CoderResult; - $result.$kind = 2; - $result.$length2 = 1; - break a; - } - if (($outPos + 4 | 0) > $outSize) { - var$9 = var$15 + (-2) | 0; - var$13 = $controller.$out2; - if ((var$13.$limit - var$13.$position | 0) < 4 ? 0 : 1) - break a; - $result = jnc_CoderResult_OVERFLOW; - break a; - } - var$10 = $outArray.data; - $codePoint = (($ch & 1023) << 10 | $low & 1023) + 65536 | 0; - $low = $outPos + 1 | 0; - var$10[$outPos] = (240 | $codePoint >> 18) << 24 >> 24; - $inPos = $low + 1 | 0; - var$10[$low] = (128 | $codePoint >> 12 & 63) << 24 >> 24; - $outPos = $inPos + 1 | 0; - var$10[$inPos] = (128 | $codePoint >> 6 & 63) << 24 >> 24; - $low = $outPos + 1 | 0; - var$10[$outPos] = (128 | $codePoint & 63) << 24 >> 24; - var$9 = var$15; - } - } - $inPos = var$9; - $outPos = $low; - } - var$9 = $inPos; - } - $controller.$inPosition = var$9; - $controller.$outPosition = $outPos; - return $result; -} -function ju_Collections() { - jl_Object.call(this); -} -var ju_Collections_EMPTY_SET = null; -var ju_Collections_EMPTY_MAP = null; -var ju_Collections_EMPTY_LIST = null; -var ju_Collections_naturalOrder = null; -var ju_Collections_reverseOrder = null; -function ju_Collections__init_0() { - var var_0 = new ju_Collections(); - ju_Collections__init_(var_0); - return var_0; -} -function ju_Collections__init_($this) { - return; -} -function ju_Collections_sort0($list, $c) { - var $array, $i, var$5; - if ($c === null) - $c = ju_Collections_naturalOrder; - $array = $rt_createArray(jl_Object, $list.$size0); - ju_AbstractCollection_toArray0($list, $array); - ju_Arrays_sort($array, $c); - $i = 0; - while (true) { - var$5 = $array.data; - if ($i >= var$5.length) - break; - ju_ArrayList_set($list, $i, var$5[$i]); - $i = $i + 1 | 0; - } -} -function ju_Collections_sort($list) { - ju_Collections_sort0($list, ju_Collections_naturalOrder); -} -function ju_Collections_shuffle($list) { - var var$2, var$3, var$4, var$5, var$6, var$7; - a: { - if ($rt_isInstance($list, ju_RandomAccess)) { - var$2 = $list.$size0 - 1 | 0; - b: { - c: { - d: { - e: { - while (var$2 > 0) { - var$3 = var$2 + 1 | 0; - var$4 = Math.random() * var$3 | 0; - if (var$2 < 0) - break b; - if (var$2 >= $list.$size0) - break b; - var$5 = $list.$array1.data[var$2]; - if (var$4 < 0) - break c; - if (var$4 >= $list.$size0) - break c; - var$6 = $list.$array1.data[var$4]; - if (var$2 < 0) - break d; - if (var$2 >= $list.$size0) - break d; - $list.$array1.data[var$2] = var$6; - if (var$4 < 0) - break e; - if (var$4 >= $list.$size0) - break e; - $list.$array1.data[var$4] = var$5; - var$2 = var$2 + (-1) | 0; - } - break a; - } - $list = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($list); - $rt_throw($list); - } - $list = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($list); - $rt_throw($list); - } - $list = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($list); - $rt_throw($list); - } - $list = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($list); - $rt_throw($list); - } - var$6 = ju_ArrayList__init_3($list); - var$2 = var$6.$size0 - 1 | 0; - f: { - g: { - h: { - while (true) { - if (var$2 <= 0) { - ju_Arrays_fill($list.$array1, 0, $list.$size0, null); - $list.$size0 = 0; - var$5 = new ju_AbstractList$1; - var$5.$this$0 = var$6; - var$5.$modCount = var$5.$this$0.$modCount0; - var$5.$size1 = var$5.$this$0.$size2(); - var$5.$removeIndex = (-1); - while (var$5.$index >= var$5.$size1 ? 0 : 1) { - if (!ju_ArrayList_add($list, ju_AbstractList$1_next(var$5))) - continue; - } - break a; - } - var$3 = var$2 + 1 | 0; - var$4 = Math.random() * var$3 | 0; - if (var$2 < 0) - break f; - if (var$2 >= var$6.$size0) - break f; - var$7 = var$6.$array1.data[var$2]; - if (var$4 < 0) - break g; - if (var$4 >= var$6.$size0) - break g; - var$5 = var$6.$array1.data[var$4]; - if (var$2 < 0) - break h; - if (var$2 >= var$6.$size0) - break h; - var$6.$array1.data[var$2] = var$5; - if (var$4 < 0) - break; - if (var$4 >= var$6.$size0) - break; - var$6.$array1.data[var$4] = var$7; - var$2 = var$2 + (-1) | 0; - } - $list = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($list); - $rt_throw($list); - } - $list = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($list); - $rt_throw($list); - } - $list = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($list); - $rt_throw($list); - } - $list = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($list); - $rt_throw($list); - } -} -function ju_Collections__clinit_() { - ju_Collections_EMPTY_SET = new ju_Collections$5; - ju_Collections_EMPTY_MAP = new ju_Collections$6; - ju_Collections_EMPTY_LIST = new ju_Collections$3; - ju_Collections_naturalOrder = new ju_Collections$_clinit_$lambda$_61_0; - ju_Collections_reverseOrder = new ju_Collections$_clinit_$lambda$_61_1; -} -function jl_StringBuffer() { - jl_AbstractStringBuilder.call(this); -} -function jl_StringBuffer__init_0() { - var var_0 = new jl_StringBuffer(); - jl_StringBuffer__init_(var_0); - return var_0; -} -function jl_StringBuffer__init_($this) { - $this.$buffer = $rt_createCharArray(16); -} -function jl_StringBuffer_append0($this, $string) { - jl_AbstractStringBuilder_insert($this, $this.$length, $string); - return $this; -} -function jl_StringBuffer_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_StringBuffer_append1($this, $chars, $offset, $len) { - jl_AbstractStringBuilder_insert6($this, $this.$length, $chars, $offset, $len); - return $this; -} -function jl_StringBuffer_append2($this, $chars) { - var var$2; - var$2 = $chars.data.length; - jl_AbstractStringBuilder_insert6($this, $this.$length, $chars, 0, var$2); - return $this; -} -function jl_StringBuffer_append3($this, $s, $start, $end) { - jl_AbstractStringBuilder_insert5($this, $this.$length, $s, $start, $end); - return $this; -} -function jl_StringBuffer_append4($this, $s) { - var var$2; - var$2 = $s.$characters.data.length; - jl_AbstractStringBuilder_insert5($this, $this.$length, $s, 0, var$2); - return $this; -} -function jl_StringBuffer_insert($this, $index, $s, $start, $end) { - jl_AbstractStringBuilder_insert5($this, $index, $s, $start, $end); - return $this; -} -function jl_StringBuffer_insert0($this, $index, $chars, $offset, $len) { - jl_AbstractStringBuilder_insert6($this, $index, $chars, $offset, $len); - return $this; -} -function jl_StringBuffer_insert1($this, $index, $c) { - jl_AbstractStringBuilder_insertSpace($this, $index, $index + 1 | 0); - $this.$buffer.data[$index] = $c; - return $this; -} -function jl_StringBuffer_insert2($this, $index, $string) { - jl_AbstractStringBuilder_insert($this, $index, $string); - return $this; -} -function jl_StringBuffer_insert3($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_StringBuffer_append5($this, var$1, var$2, var$3) { - jl_AbstractStringBuilder_insert6($this, $this.$length, var$1, var$2, var$3); - return $this; -} -function jl_StringBuffer_insert4($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_StringBuffer_append6($this, var$1, var$2, var$3) { - jl_AbstractStringBuilder_insert5($this, $this.$length, var$1, var$2, var$3); - return $this; -} -function jl_StringBuffer_charAt($this, var$1) { - return jl_AbstractStringBuilder_charAt($this, var$1); -} -function jl_StringBuffer_length($this) { - return $this.$length; -} -function jl_StringBuffer_toString($this) { - return jl_String__init_0($this.$buffer, 0, $this.$length); -} -function jl_StringBuffer_ensureCapacity($this, var$1) { - jl_AbstractStringBuilder_ensureCapacity($this, var$1); -} -function jl_StringBuffer_insert5($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_StringBuffer_insert6($this, var$1, var$2) { - jl_AbstractStringBuilder_insert($this, var$1, var$2); - return $this; -} -function jt_FieldPosition() { - jl_Object.call(this); - this.$myField = 0; -} -function jl_AssertionError() { - jl_Error.call(this); -} -function jl_AssertionError__init_0() { - var var_0 = new jl_AssertionError(); - jl_AssertionError__init_(var_0); - return var_0; -} -function jl_AssertionError__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jt_DecimalFormatParser() { - var a = this; jl_Object.call(a); - a.$positivePrefix0 = null; - a.$positiveSuffix0 = null; - a.$negativePrefix0 = null; - a.$negativeSuffix0 = null; - a.$groupSize = 0; - a.$minimumIntLength = 0; - a.$intLength = 0; - a.$minimumFracLength = 0; - a.$fracLength = 0; - a.$exponentLength = 0; - a.$decimalSeparatorRequired = 0; - a.$string = null; - a.$index2 = 0; - a.$multiplier0 = 0; -} -function jt_DecimalFormatParser__init_0() { - var var_0 = new jt_DecimalFormatParser(); - jt_DecimalFormatParser__init_(var_0); - return var_0; -} -function jt_DecimalFormatParser__init_($this) { - return; -} -function jt_DecimalFormatParser_parse($this, $string) { - var var$2, var$3, var$4, var$5; - $this.$groupSize = 0; - $this.$minimumFracLength = 0; - $this.$fracLength = 0; - $this.$exponentLength = 0; - $this.$decimalSeparatorRequired = 0; - $this.$multiplier0 = 1; - $this.$string = $string; - $this.$index2 = 0; - $this.$positivePrefix0 = jt_DecimalFormatParser_parseText($this, 0, 0); - if ($this.$index2 == $string.$characters.data.length) { - 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(1158)); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $string); - $string = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $string; - $rt_throw(var$2); - } - jt_DecimalFormatParser_parseNumber($this, 1); - $this.$negativePrefix0 = null; - $this.$negativeSuffix0 = null; - if ($this.$index2 < $string.$characters.data.length && jl_String_charAt($string, $this.$index2) != 59) - $this.$positiveSuffix0 = jt_DecimalFormatParser_parseText($this, 1, 0); - if ($this.$index2 < $string.$characters.data.length) { - var$4 = $this.$index2; - $this.$index2 = var$4 + 1 | 0; - if (jl_String_charAt($string, var$4) != 59) { - 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(1159)); - var$5 = $this.$index2; - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, var$5, 10); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(1160)); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $string); - $string = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $string; - $rt_throw(var$2); - } - $this.$negativePrefix0 = jt_DecimalFormatParser_parseText($this, 0, 1); - jt_DecimalFormatParser_parseNumber($this, 0); - $this.$negativeSuffix0 = jt_DecimalFormatParser_parseText($this, 1, 1); - } -} -function jt_DecimalFormatParser_apply($this, $format) { - var var$2, var$3; - $format.$positivePrefix = $this.$positivePrefix0; - $format.$positiveSuffix = $this.$positiveSuffix0; - if ($this.$negativePrefix0 !== null) - $format.$negativePrefix = $this.$negativePrefix0; - else { - $format.$negativePrefix = $rt_createArray(jt_DecimalFormat$FormatField, $this.$positivePrefix0.data.length + 1 | 0); - jl_System_arraycopy($this.$positivePrefix0, 0, $format.$negativePrefix, 1, $this.$positivePrefix0.data.length); - $format.$negativePrefix.data[0] = new jt_DecimalFormat$MinusField; - } - $format.$negativeSuffix = $this.$negativeSuffix0 === null ? $this.$positiveSuffix0 : $this.$negativeSuffix0; - $format.$groupingSize = $this.$groupSize; - $format.$groupingUsed = $this.$groupSize <= 0 ? 0 : 1; - if (!$this.$decimalSeparatorRequired) - var$2 = $this.$minimumIntLength; - else { - var$2 = $this.$minimumIntLength; - if (1 > var$2) - var$2 = 1; - } - if (var$2 < 0) - var$2 = 0; - $format.$minimumIntegerDigits = var$2; - if ($format.$maximumIntegerDigits < $format.$minimumIntegerDigits) - $format.$maximumIntegerDigits = $format.$minimumIntegerDigits; - var$3 = $this.$intLength; - if (var$3 < 0) - var$3 = 0; - $format.$maximumIntegerDigits = var$3; - if ($format.$maximumIntegerDigits < $format.$minimumIntegerDigits) - $format.$minimumIntegerDigits = $format.$maximumIntegerDigits; - var$3 = $this.$minimumFracLength; - if (var$3 < 0) - var$3 = 0; - $format.$minimumFractionDigits = var$3; - if ($format.$maximumFractionDigits < $format.$minimumFractionDigits) - $format.$maximumFractionDigits = $format.$minimumFractionDigits; - var$3 = $this.$fracLength; - if (var$3 < 0) - var$3 = 0; - $format.$maximumFractionDigits = var$3; - if ($format.$maximumFractionDigits < $format.$minimumFractionDigits) - $format.$minimumFractionDigits = $format.$maximumFractionDigits; - $format.$decimalSeparatorAlwaysShown = $this.$decimalSeparatorRequired; - $format.$exponentDigits = $this.$exponentLength; - $format.$multiplier = $this.$multiplier0; -} -function jt_DecimalFormatParser_parseText($this, $suffix, $end) { - var $fields, $sb, $c, $next, var$7, var$8; - $fields = new ju_ArrayList; - $fields.$array1 = $rt_createArray(jl_Object, 10); - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(16); - a: { - b: { - c: while (true) { - if ($this.$index2 >= $this.$string.$characters.data.length) - break a; - d: { - e: { - $c = jl_String_charAt($this.$string, $this.$index2); - switch ($c) { - case 35: - case 48: - if (!$suffix) - break a; - $rt_throw(jl_IllegalArgumentException__init_1(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1161)), $this.$index2), $rt_s(1160)), $this.$string)))); - case 37: - if ($sb.$length > 0) { - ju_ArrayList_add($fields, jt_DecimalFormat$TextField__init_(jl_StringBuilder_toString($sb))); - jl_StringBuilder_setLength($sb, 0); - } - ju_ArrayList_add($fields, new jt_DecimalFormat$PercentField); - $this.$index2 = $this.$index2 + 1 | 0; - $this.$multiplier0 = 100; - break d; - case 39: - $this.$index2 = $this.$index2 + 1 | 0; - $next = jl_String_indexOf($this.$string, 39, $this.$index2); - if ($next < 0) - break c; - if ($next == $this.$index2) - jl_StringBuilder_append($sb, 39); - else - jl_StringBuilder_append0($sb, jl_String_substring0($this.$string, $this.$index2, $next)); - $this.$index2 = $next + 1 | 0; - break d; - case 45: - if ($sb.$length > 0) { - ju_ArrayList_add($fields, jt_DecimalFormat$TextField__init_(jl_StringBuilder_toString($sb))); - jl_StringBuilder_setLength($sb, 0); - } - ju_ArrayList_add($fields, new jt_DecimalFormat$MinusField); - $this.$index2 = $this.$index2 + 1 | 0; - break d; - case 46: - case 69: - break b; - case 59: - if (!$end) - break a; - else { - $fields = new jl_IllegalArgumentException; - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(1161)); - $suffix = $this.$index2; - jl_AbstractStringBuilder_insert0(var$7, var$7.$length, $suffix, 10); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(1160)); - var$8 = $this.$string; - jl_AbstractStringBuilder_insert(var$7, var$7.$length, var$8); - jl_IllegalArgumentException__init_2($fields, jl_StringBuilder_toString(var$7)); - $rt_throw($fields); - } - case 164: - if ($sb.$length > 0) { - var$7 = new jt_DecimalFormat$TextField; - var$7.$text0 = jl_String__init_0($sb.$buffer, 0, $sb.$length); - ju_ArrayList_add($fields, var$7); - $sb.$length = 0; - } - ju_ArrayList_add($fields, new jt_DecimalFormat$CurrencyField); - $this.$index2 = $this.$index2 + 1 | 0; - break d; - case 8240: - break e; - default: - } - $next = $sb.$length; - jl_AbstractStringBuilder_insertSpace($sb, $next, $next + 1 | 0); - $sb.$buffer.data[$next] = $c; - $this.$index2 = $this.$index2 + 1 | 0; - break d; - } - if ($sb.$length > 0) { - var$7 = new jt_DecimalFormat$TextField; - var$7.$text0 = jl_String__init_0($sb.$buffer, 0, $sb.$length); - ju_ArrayList_add($fields, var$7); - $sb.$length = 0; - } - ju_ArrayList_add($fields, new jt_DecimalFormat$PerMillField); - $this.$index2 = $this.$index2 + 1 | 0; - $this.$multiplier0 = 1000; - } - } - $rt_throw(jl_IllegalArgumentException__init_1(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1162)), $this.$index2), $rt_s(1163)), $this.$string)))); - } - $fields = new jl_IllegalArgumentException; - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(1161)); - $suffix = $this.$index2; - jl_AbstractStringBuilder_insert0(var$7, var$7.$length, $suffix, 10); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(1160)); - var$8 = $this.$string; - jl_AbstractStringBuilder_insert(var$7, var$7.$length, var$8); - var$8 = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - $fields.$suppressionEnabled = 1; - $fields.$writableStackTrace = 1; - $fields.$message = var$8; - $rt_throw($fields); - } - if ($sb.$length > 0) - ju_ArrayList_add($fields, jt_DecimalFormat$TextField__init_(jl_StringBuilder_toString($sb))); - return ju_AbstractCollection_toArray0($fields, $rt_createArray(jt_DecimalFormat$FormatField, ju_ArrayList_size($fields))); -} -function jt_DecimalFormatParser_parseNumber($this, $apply) { - jt_DecimalFormatParser_parseIntegerPart($this, $apply); - if ($this.$index2 < $this.$string.$characters.data.length && jl_String_charAt($this.$string, $this.$index2) == 46) { - $this.$index2 = $this.$index2 + 1 | 0; - jt_DecimalFormatParser_parseFractionalPart($this, $apply); - } - if ($this.$index2 < $this.$string.$characters.data.length && jl_String_charAt($this.$string, $this.$index2) == 69) { - $this.$index2 = $this.$index2 + 1 | 0; - jt_DecimalFormatParser_parseExponent($this, $apply); - } -} -function jt_DecimalFormatParser_parseIntegerPart($this, $apply) { - var $start, $lastGroup, $optionalDigits, $length, $minimumLength, var$7, var$8, var$9; - $start = $this.$index2; - $lastGroup = $this.$index2; - $optionalDigits = 1; - $length = 0; - $minimumLength = 0; - a: { - b: while (true) { - if ($this.$index2 >= $this.$string.$characters.data.length) - break a; - c: { - d: { - switch (jl_String_charAt($this.$string, $this.$index2)) { - case 35: - if (!$optionalDigits) - break b; - $length = $length + 1 | 0; - break c; - case 44: - break d; - case 48: - break; - default: - break a; - } - $optionalDigits = 0; - $length = $length + 1 | 0; - $minimumLength = $minimumLength + 1 | 0; - break c; - } - if ($lastGroup == $this.$index2) { - var$7 = new jl_IllegalArgumentException; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1164)); - $apply = $this.$index2; - jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $apply, 10); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1160)); - var$9 = $this.$string; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, var$9); - 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 ($apply) - $this.$groupSize = $this.$index2 - $lastGroup | 0; - $lastGroup = $this.$index2 + 1 | 0; - } - $this.$index2 = $this.$index2 + 1 | 0; - } - var$7 = new jl_IllegalArgumentException; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1165)); - $apply = $this.$index2; - jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $apply, 10); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1160)); - var$9 = $this.$string; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, var$9); - 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 (!$length) { - var$7 = new jl_IllegalArgumentException; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1166)); - $apply = $this.$index2; - jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $apply, 10); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1160)); - var$9 = $this.$string; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, var$9); - 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 ($lastGroup != $this.$index2) { - if ($apply && $lastGroup > $start) - $this.$groupSize = $this.$index2 - $lastGroup | 0; - if ($apply) { - $this.$intLength = $length; - $this.$minimumIntLength = $minimumLength; - } - return; - } - var$7 = new jl_IllegalArgumentException; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1167)); - $apply = $this.$index2; - jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $apply, 10); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1160)); - var$9 = $this.$string; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, var$9); - 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); -} -function jt_DecimalFormatParser_parseFractionalPart($this, $apply) { - var $optionalDigits, $length, $minimumLength, var$5, var$6, var$7; - $optionalDigits = 0; - $length = 0; - $minimumLength = 0; - a: { - b: while (true) { - if ($this.$index2 >= $this.$string.$characters.data.length) - break a; - c: { - switch (jl_String_charAt($this.$string, $this.$index2)) { - case 35: - break; - case 44: - 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(1168)); - $apply = $this.$index2; - jl_AbstractStringBuilder_insert0(var$6, var$6.$length, $apply, 10); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(1160)); - var$7 = $this.$string; - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$7); - 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); - case 46: - var$6 = new jl_IllegalArgumentException; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(1169)); - $apply = $this.$index2; - jl_AbstractStringBuilder_insert0(var$5, var$5.$length, $apply, 10); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(1160)); - var$7 = $this.$string; - jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$7); - 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); - case 48: - if ($optionalDigits) { - var$6 = new jl_IllegalArgumentException; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(1170)); - $apply = $this.$index2; - jl_AbstractStringBuilder_insert0(var$5, var$5.$length, $apply, 10); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(1160)); - var$7 = $this.$string; - jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$7); - 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); - } - $length = $length + 1 | 0; - $minimumLength = $minimumLength + 1 | 0; - break c; - default: - break b; - } - $length = $length + 1 | 0; - $optionalDigits = 1; - } - $this.$index2 = $this.$index2 + 1 | 0; - } - } - if ($apply) { - $this.$fracLength = $length; - $this.$minimumFracLength = $minimumLength; - $this.$decimalSeparatorRequired = $length ? 0 : 1; - } -} -function jt_DecimalFormatParser_parseExponent($this, $apply) { - var $length, var$3, var$4, var$5; - $length = 0; - a: { - b: while (true) { - if ($this.$index2 >= $this.$string.$characters.data.length) - break a; - switch (jl_String_charAt($this.$string, $this.$index2)) { - case 35: - case 44: - case 46: - case 69: - break b; - case 48: - break; - default: - break a; - } - $length = $length + 1 | 0; - $this.$index2 = $this.$index2 + 1 | 0; - } - var$3 = new jl_IllegalArgumentException; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1171)); - $apply = $this.$index2; - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $apply, 10); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1160)); - var$5 = $this.$string; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$5); - var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = var$5; - $rt_throw(var$3); - } - if ($length) { - if ($apply) - $this.$exponentLength = $length; - return; - } - var$4 = new jl_IllegalArgumentException; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(1172)); - $apply = $this.$index2; - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $apply, 10); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(1160)); - var$5 = $this.$string; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$5); - var$5 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - var$4.$message = var$5; - $rt_throw(var$4); -} -function nle_EaglerInflater() { - jl_Object.call(this); -} -function nle_EaglerInflater__init_0() { - var var_0 = new nle_EaglerInflater(); - nle_EaglerInflater__init_(var_0); - return var_0; -} -function nle_EaglerInflater__init_($this) { - return; -} -function nle_EaglerInflater_uncompress($input) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $input.data; - var$3 = new cjj_InflaterInputStream; - var$4 = new ji_ByteArrayInputStream; - var$5 = var$2.length; - var$4.$buf = $input; - var$4.$pos = 0; - var$4.$mark0 = 0; - var$4.$count0 = 0 + var$5 | 0; - cjj_InflaterInputStream__init_0(var$3, var$4, cjj_Inflater__init_0(15, 0), 512, 1); - var$3.$myinflater = 1; - var$4 = new ji_ByteArrayOutputStream; - var$4.$buf1 = $rt_createByteArray(32); - $input = $rt_createByteArray(65535); - var$6 = $input.data.length; - var$5 = cjj_InflaterInputStream_read0(var$3, $input, 0, var$6); - while (var$5 != (-1)) { - ji_ByteArrayOutputStream_write0(var$4, $input, 0, var$5); - var$5 = cjj_InflaterInputStream_read0(var$3, $input, 0, var$6); - } - return ju_Arrays_copyOf0(var$4.$buf1, var$4.$count1); -} -function cbpu_ReverseFilter() { - jl_Object.call(this); -} -function cbpu_ReverseFilter__init_0() { - var var_0 = new cbpu_ReverseFilter(); - cbpu_ReverseFilter__init_(var_0); - return var_0; -} -function cbpu_ReverseFilter__init_($this) { - return; -} -function cbpu_ReverseFilter_paethPredictor($a, $b, $c) { - var $p, $pa, $pb, $pc; - $p = ($a + $b | 0) - $c | 0; - $pa = $p - $a | 0; - if ($pa <= 0) - $pa = -$pa; - $pb = $p - $b | 0; - if ($pb <= 0) - $pb = -$pb; - $pc = $p - $c | 0; - if ($pc <= 0) - $pc = -$pc; - if ($pa <= $pb && $pa <= $pc) - return $a; - if ($pb > $pc) - return $c; - return $b; -} -function cbpu_ReverseFilter_apply($data, $width, $height, $bpp) { - var var$5, var$6, $filterType, $dataIndex, $i, $result, $rawBpp, $j, $blocks, $i_0, $prior, $bppPrior; - var$5 = $rt_createIntArray($height).data; - var$6 = $rt_imul($width, $bpp); - $filterType = $rt_createIntMultiArray([var$6, $height]).data; - $dataIndex = 0; - $i = 0; - while ($i < $height) { - $result = $data.data; - $rawBpp = $dataIndex + 1 | 0; - var$5[$i] = $result[$dataIndex] & 255; - $j = 0; - while ($j < var$6) { - $blocks = $filterType[$i].data; - $width = $rawBpp + 1 | 0; - $blocks[$j] = $result[$rawBpp] & 255; - $j = $j + 1 | 0; - $rawBpp = $width; - } - $i = $i + 1 | 0; - $dataIndex = $rawBpp; - } - $i_0 = 0; - while ($i_0 < $height) { - $j = 0; - while ($j < var$6) { - $prior = !$i_0 ? 0 : $filterType[$i_0 - 1 | 0].data[$j]; - $width = $rt_compare($j, $bpp); - $rawBpp = $width < 0 ? 0 : $filterType[$i_0].data[$j - $bpp | 0]; - $bppPrior = $i_0 && $width >= 0 ? $filterType[$i_0 - 1 | 0].data[$j - $bpp | 0] : 0; - a: { - switch (var$5[$i_0]) { - case 0: - break; - case 1: - $filterType[$i_0].data[$j] = $filterType[$i_0].data[$j] + $rawBpp | 0; - break a; - case 2: - $filterType[$i_0].data[$j] = $filterType[$i_0].data[$j] + $prior | 0; - break a; - case 3: - $filterType[$i_0].data[$j] = $filterType[$i_0].data[$j] + (($rawBpp + $prior | 0) / 2 | 0) | 0; - break a; - case 4: - $filterType[$i_0].data[$j] = $filterType[$i_0].data[$j] + cbpu_ReverseFilter_paethPredictor($rawBpp, $prior, $bppPrior) | 0; - break a; - default: - break a; - } - } - $data = $filterType[$i_0].data; - $data[$j] = $data[$j] & 255; - $j = $j + 1 | 0; - } - $i_0 = $i_0 + 1 | 0; - } - $result = $rt_createByteMultiArray([var$6, $height]); - $data = $result.data; - $i_0 = 0; - while ($i_0 < $height) { - $j = 0; - while ($j < var$6) { - $data[$i_0].data[$j] = $filterType[$i_0].data[$j] << 24 >> 24; - $j = $j + 1 | 0; - } - $i_0 = $i_0 + 1 | 0; - } - return $result; -} -function nleg_EaglerAdapterGL30$DisplayList() { - var a = this; jl_Object.call(a); - a.$id0 = 0; - a.$glarray = null; - a.$glbuffer = null; - a.$shaderMode = 0; - a.$listLength = 0; -} -function nms_IntHashMap() { - var a = this; jl_Object.call(a); - a.$slots = null; - a.$count3 = 0; - a.$threshold0 = 0; - a.$growFactor = 0.75; - a.$versionStamp = 0; - a.$keySet0 = null; -} -function nms_IntHashMap__init_0() { - var var_0 = new nms_IntHashMap(); - nms_IntHashMap__init_(var_0); - return var_0; -} -function nms_IntHashMap__init_($this) { - var var$1; - $this.$slots = $rt_createArray(nms_IntHashMapEntry, 16); - $this.$threshold0 = 12; - $this.$growFactor = 0.75; - var$1 = new ju_HashSet; - var$1.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$keySet0 = var$1; -} -function nms_IntHashMap_lookup($this, $par1) { - var $var2, $var3; - $var2 = $par1 ^ $par1 >>> 20 ^ $par1 >>> 12; - $var2 = $var2 ^ $var2 >>> 7 ^ $var2 >>> 4; - $var3 = $this.$slots.data[$var2 & ($this.$slots.data.length - 1 | 0)]; - while ($var3 !== null) { - if ($var3.$hashEntry == $par1) - return $var3.$valueEntry; - $var3 = $var3.$nextEntry0; - } - return null; -} -function nms_IntHashMap_containsItem($this, $par1) { - return nms_IntHashMap_lookupEntry($this, $par1) === null ? 0 : 1; -} -function nms_IntHashMap_lookupEntry($this, $par1) { - var $var2, $var3; - $var2 = $par1 ^ $par1 >>> 20 ^ $par1 >>> 12; - $var2 = $var2 ^ $var2 >>> 7 ^ $var2 >>> 4; - $var3 = $this.$slots.data[$var2 & ($this.$slots.data.length - 1 | 0)]; - while (true) { - if ($var3 === null) - return null; - if ($var3.$hashEntry == $par1) - break; - $var3 = $var3.$nextEntry0; - } - return $var3; -} -function nms_IntHashMap_addKey($this, $par1, $par2Obj) { - var var$3, var$4, var$5, $var3, $var4, $var5; - var$3 = $this.$keySet0; - var$4 = jl_Integer_valueOf($par1); - ju_HashMap_putImpl(var$3.$backingMap, var$4, var$3); - var$5 = $par1 ^ $par1 >>> 20 ^ $par1 >>> 12; - $var3 = var$5 ^ var$5 >>> 7 ^ var$5 >>> 4; - $var4 = $var3 & ($this.$slots.data.length - 1 | 0); - $var5 = $this.$slots.data[$var4]; - while (true) { - if ($var5 === null) { - $this.$versionStamp = $this.$versionStamp + 1 | 0; - nms_IntHashMap_insert($this, $var3, $par1, $par2Obj, $var4); - return; - } - if ($var5.$hashEntry == $par1) - break; - $var5 = $var5.$nextEntry0; - } - $var5.$valueEntry = $par2Obj; -} -function nms_IntHashMap_grow($this, $par1) { - var $var4; - if ($this.$slots.data.length == 1073741824) - $this.$threshold0 = 2147483647; - else { - $var4 = $rt_createArray(nms_IntHashMapEntry, $par1); - nms_IntHashMap_copyTo($this, $var4); - $this.$slots = $var4; - $this.$threshold0 = $par1 * 0.75 | 0; - } -} -function nms_IntHashMap_copyTo($this, $par1ArrayOfIntHashMapEntry) { - var $var2, $var3, $var4, var$5, $var5, $var6, $var7; - $par1ArrayOfIntHashMapEntry = $par1ArrayOfIntHashMapEntry.data; - $var2 = $this.$slots; - $var3 = $par1ArrayOfIntHashMapEntry.length; - $var4 = 0; - $var3 = $var3 - 1 | 0; - while (true) { - var$5 = $var2.data; - if ($var4 >= var$5.length) - break; - a: { - $var5 = var$5[$var4]; - if ($var5 !== null) { - var$5[$var4] = null; - while (true) { - $var6 = $var5.$nextEntry0; - $var7 = $var5.$slotHash & $var3; - $var5.$nextEntry0 = $par1ArrayOfIntHashMapEntry[$var7]; - $par1ArrayOfIntHashMapEntry[$var7] = $var5; - if ($var6 === null) - break a; - $var5 = $var6; - } - } - } - $var4 = $var4 + 1 | 0; - } -} -function nms_IntHashMap_removeObject($this, $par1) { - var $var2, var$3; - $var2 = $this.$keySet0; - var$3 = jl_Integer_valueOf($par1); - $var2 = ju_HashMap_removeEntry($var2.$backingMap, var$3); - $var2 = nms_IntHashMap_removeEntry($this, $par1); - return $var2 !== null ? $var2.$valueEntry : null; -} -function nms_IntHashMap_removeEntry($this, $par1) { - var $var3, $var5, var$4, $var5_0; - $var3 = $par1 ^ $par1 >>> 20 ^ $par1 >>> 12; - $var3 = ($var3 ^ $var3 >>> 7 ^ $var3 >>> 4) & ($this.$slots.data.length - 1 | 0); - $var5 = $this.$slots.data[$var3]; - var$4 = $var5; - while ($var5 !== null) { - $var5_0 = $var5.$nextEntry0; - if ($var5.$hashEntry == $par1) { - $this.$versionStamp = $this.$versionStamp + 1 | 0; - $this.$count3 = $this.$count3 - 1 | 0; - if (var$4 !== $var5) - var$4.$nextEntry0 = $var5_0; - else - $this.$slots.data[$var3] = $var5_0; - return $var5; - } - var$4 = $var5; - $var5 = $var5_0; - } - return $var5; -} -function nms_IntHashMap_clearMap($this) { - var $var1, $var2, var$3; - $this.$versionStamp = $this.$versionStamp + 1 | 0; - $var1 = $this.$slots; - $var2 = 0; - while (true) { - var$3 = $var1.data; - if ($var2 >= var$3.length) - break; - var$3[$var2] = null; - $var2 = $var2 + 1 | 0; - } - $this.$count3 = 0; -} -function nms_IntHashMap_insert($this, $par1, $par2, $par3Obj, $par4) { - var $var5, var$6, var$7; - $var5 = $this.$slots.data[$par4]; - var$6 = $this.$slots.data; - var$7 = new nms_IntHashMapEntry; - var$7.$valueEntry = $par3Obj; - var$7.$nextEntry0 = $var5; - var$7.$hashEntry = $par2; - var$7.$slotHash = $par1; - var$6[$par4] = var$7; - $par1 = $this.$count3; - $this.$count3 = $par1 + 1 | 0; - if ($par1 >= $this.$threshold0) - nms_IntHashMap_grow($this, 2 * $this.$slots.data.length | 0); -} -function nms_IntHashMap_getKeySet($this) { - return $this.$keySet0; -} -function nms_IconRegister() { -} -function nle_TextureTerrainMap() { - var a = this; jl_Object.call(a); - a.$basePath = null; - a.$width2 = 0; - a.$height2 = 0; - a.$missingImage = null; - a.$iconList = null; - a.$texture = 0; - a.$missingData = null; - a.$nextSlot = 0; -} -var nle_TextureTerrainMap_uploadBuffer = null; -function nle_TextureTerrainMap_$callClinit() { - nle_TextureTerrainMap_$callClinit = $rt_eraseClinit(nle_TextureTerrainMap); - nle_TextureTerrainMap__clinit_(); -} -function nle_TextureTerrainMap__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nle_TextureTerrainMap(); - nle_TextureTerrainMap__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nle_TextureTerrainMap__init_0($this, $size, $par2, $par3Str, $par4BufferedImage) { - var $levelW, $blank, $levelH, var$8, $i, var$10; - nle_TextureTerrainMap_$callClinit(); - $this.$nextSlot = 0; - $size = ($size / 48 | 0) * 48 | 0; - $this.$width2 = $size; - $this.$height2 = $size; - $this.$basePath = $par3Str; - $par2 = new nle_TextureTerrainMap$TerrainIcon; - $levelW = $this.$nextSlot; - $this.$nextSlot = $levelW + 1 | 0; - nle_TextureTerrainMap$TerrainIcon__init_($par2, $levelW, $this, null); - $this.$missingImage = $par2; - $par2 = new ju_ArrayList; - $par2.$array1 = $rt_createArray(jl_Object, 10); - $this.$iconList = $par2; - nleg_EaglerAdapterGL30_$callClinit(); - $par3Str = nleg_EaglerAdapterGL30_texObjects; - nlea_EaglerAdapterImpl2_$callClinit(); - $blank = new nlea_EaglerAdapterImpl2$TextureGL; - $blank.$obj = nlea_EaglerAdapterImpl2_webgl.createTexture(); - $this.$texture = nleg_GLObjectMap_register($par3Str, $blank); - $size = $this.$texture; - $par2 = nleg_EaglerAdapterGL30_texObjects; - $par2 = $size < $par2.$size3 && $size >= 0 ? $par2.$values.data[$size] : null; - $par3Str = nlea_EaglerAdapterImpl2_webgl; - $par2 = $par2 !== null ? $par2.$obj : null; - $par3Str.bindTexture(3553, $par2); - $levelW = $this.$width2; - $levelH = $this.$height2; - $size = $rt_imul($levelW, $levelH); - if (!nleg_EaglerAdapterGL30_isWebGL) - $blank = jn_ByteBufferImpl_asIntBuffer(nms_GLAllocation_createDirectByteBuffer($size << 2)); - else { - var$8 = $rt_createIntArray($size); - $i = var$8.data.length; - $blank = new jn_IntBufferOverArray; - var$10 = 0 + $i | 0; - $blank.$mark = (-1); - $blank.$capacity = $i; - $blank.$limit = $i; - $blank.$position = 0; - $blank.$limit = var$10; - $blank.$start1 = 0; - $blank.$readOnly1 = 0; - $blank.$array2 = var$8; - } - $i = 0; - while ($i < $blank.$limit) { - jn_IntBufferImpl_put0($blank, $i, (($i / $this.$width2 | 0) + ($i % $this.$width2 | 0) | 0) % 2 | 0 ? (-16777216) : (-65281)); - $i = $i + 1 | 0; - } - nleg_EaglerAdapterGL30_glTexParameteri(2, 47, 149); - nleg_EaglerAdapterGL30_glTexParameteri(2, 48, 70); - nleg_EaglerAdapterGL30_glTexParameteri(2, 72, 71); - nleg_EaglerAdapterGL30_glTexParameteri(2, 73, 71); - nleg_EaglerAdapterGL30_glTexParameteri(2, 151, 4); - switch (2) { - case 2: - break; - default: - } - switch (150) { - case 150: - break; - default: - } - nlea_EaglerAdapterImpl2_webgl.texParameterf(3553, 34046, 1.0); - $i = 0; - while ($i < 5) { - $blank.$position = 0; - $blank.$limit = $blank.$capacity; - $blank.$mark = (-1); - jn_Buffer_limit0($blank, $rt_imul($levelW, $levelH)); - nleg_EaglerAdapterGL30_bytesUploaded = nleg_EaglerAdapterGL30_bytesUploaded + (($blank.$limit - $blank.$position | 0) * 4 | 0) | 0; - nlea_EaglerAdapterImpl2__wglTexImage2D0(3553, $i, 32856, $levelW, $levelH, 0, 6408, 5121, $blank); - $levelW = $levelW / 2 | 0; - $levelH = $levelH / 2 | 0; - $i = $i + 1 | 0; - } - $par2 = $this.$missingImage; - var$8 = nle_TextureTerrainMap_generateMip($par4BufferedImage); - $this.$missingData = var$8; - nle_TextureTerrainMap_replaceTexture($this, $par2, var$8); -} -function nle_TextureTerrainMap_generateMip($src16x16) { - var $ret, var$3; - nle_TextureTerrainMap_$callClinit(); - $ret = $rt_createArray(nle_EaglerImage, 5); - var$3 = $ret.data; - var$3[0] = nle_TextureTerrainMap_populateAlpha($src16x16); - var$3[1] = nle_TextureTerrainMap_generateLevel(var$3[0]); - var$3[0] = nle_TextureTerrainMap_create3x3(var$3[0]); - var$3[2] = nle_TextureTerrainMap_generateLevel(var$3[1]); - var$3[1] = nle_TextureTerrainMap_create3x3(var$3[1]); - var$3[3] = nle_TextureTerrainMap_generateLevel(var$3[2]); - var$3[2] = nle_TextureTerrainMap_create3x3(var$3[2]); - var$3[4] = nle_TextureTerrainMap_create3x3_2(nle_TextureTerrainMap_generateLevel(var$3[3])); - var$3[3] = nle_TextureTerrainMap_create3x3(var$3[3]); - return $ret; -} -function nle_TextureTerrainMap_generateLevel($src) { - var $e, $x2, $y, $x, $y2, $a, $b, var$9, $c, $d, $ca, $cr, $cg, $cb; - nle_TextureTerrainMap_$callClinit(); - $e = new nle_EaglerImage; - $x2 = $src.$w0 / 2 | 0; - $y = $src.$h / 2 | 0; - $e.$w0 = $x2; - $e.$h = $y; - $e.$alpha = 1; - $e.$data = $rt_createIntArray($rt_imul($x2, $y)); - $y = 0; - while ($y < $e.$h) { - $x = 0; - while ($x < $e.$w0) { - $x2 = $x * 2 | 0; - $y2 = $y * 2 | 0; - $a = $src.$data.data[$rt_imul($y2, $src.$w0) + $x2 | 0]; - $b = $src.$data.data[($rt_imul($y2, $src.$w0) + $x2 | 0) + 1 | 0]; - var$9 = $src.$data.data; - $y2 = $y2 + 1 | 0; - $c = var$9[$rt_imul($y2, $src.$w0) + $x2 | 0]; - $d = $src.$data.data[($rt_imul($y2, $src.$w0) + $x2 | 0) + 1 | 0]; - $ca = (((($a >> 24 & 255) + ($b >> 24 & 255) | 0) + ($c >> 24 & 255) | 0) + ($d >> 24 & 255) | 0) >> 2; - $cr = (((($a >> 16 & 255) + ($b >> 16 & 255) | 0) + ($c >> 16 & 255) | 0) + ($d >> 16 & 255) | 0) >> 2; - $cg = (((($a >> 8 & 255) + ($b >> 8 & 255) | 0) + ($c >> 8 & 255) | 0) + ($d >> 8 & 255) | 0) >> 2; - $cb = (((($a & 255) + ($b & 255) | 0) + ($c & 255) | 0) + ($d & 255) | 0) >> 2; - $e.$data.data[$rt_imul($y, $e.$w0) + $x | 0] = $ca << 24 | $cr << 16 | $cg << 8 | $cb; - $x = $x + 1 | 0; - } - $y = $y + 1 | 0; - } - return $e; -} -function nle_TextureTerrainMap_populateAlpha($src) { - var $ret, $x, $a, $reducedR, $reducedG, $reducedB, $divisor, $array, $i, var$11, $blend1, $alpha, $reducedR2, $reducedG2, $reducedB2, $blend2, $blend3, $blend4; - nle_TextureTerrainMap_$callClinit(); - $ret = new nle_EaglerImage; - $x = $src.$w0; - $a = $src.$h; - $ret.$w0 = $x; - $ret.$h = $a; - $ret.$alpha = 1; - $ret.$data = $rt_createIntArray($rt_imul($x, $a)); - $reducedR = 0; - $reducedG = 0; - $reducedB = 0; - $divisor = 0; - $array = $src.$data; - $i = 0; - while (true) { - var$11 = $array.data; - $a = var$11.length; - if ($i >= $a) - break; - $x = var$11[$i]; - if (($x >> 24 & 255) > 2) { - $reducedR = $reducedR + ($x >> 16 & 255) | 0; - $reducedG = $reducedG + ($x >> 8 & 255) | 0; - $reducedB = $reducedB + ($x & 255) | 0; - $divisor = $divisor + 1 | 0; - } - $i = $i + 1 | 0; - } - if ($divisor) { - $reducedR = $reducedR / $divisor | 0; - $x = $reducedG / $divisor | 0; - $blend1 = $reducedB / $divisor | 0; - } else { - $reducedR = 0; - $x = 0; - $blend1 = 0; - } - $alpha = $reducedR << 16 | $x << 8 | $blend1; - $i = 0; - while ($i < $a) { - $x = var$11[$i]; - $reducedG = $rt_compare($x >> 24 & 255, 2); - if ($reducedG >= 0) - $ret.$data.data[$i] = $src.$data.data[$i]; - else { - $reducedR2 = 0; - $reducedG2 = 0; - $reducedB2 = 0; - $reducedB = 0; - $blend1 = $i + 1 | 0; - $blend2 = $i - 1 | 0; - $blend3 = $i + $src.$w0 | 0; - $blend4 = $i - $src.$w0 | 0; - if ($blend1 >= 0 && $blend1 < $a && $reducedG > 0) { - $reducedR2 = $reducedR2 + ($x >> 16 & 255) | 0; - $reducedG2 = $reducedG2 + ($x >> 8 & 255) | 0; - $reducedB2 = $reducedB2 + ($x & 255) | 0; - $reducedB = 1; - } - if ($blend2 >= 0 && $blend2 < $a && $reducedG > 0) { - $reducedR2 = $reducedR2 + ($x >> 16 & 255) | 0; - $reducedG2 = $reducedG2 + ($x >> 8 & 255) | 0; - $reducedB2 = $reducedB2 + ($x & 255) | 0; - $reducedB = $reducedB + 1 | 0; - } - if ($blend3 >= 0 && $blend3 < $a && $reducedG > 0) { - $reducedR2 = $reducedR2 + ($x >> 16 & 255) | 0; - $reducedG2 = $reducedG2 + ($x >> 8 & 255) | 0; - $reducedB2 = $reducedB2 + ($x & 255) | 0; - $reducedB = $reducedB + 1 | 0; - } - if ($blend4 >= 0 && $blend4 < $a && $reducedG > 0) { - $reducedR2 = $reducedR2 + ($x >> 16 & 255) | 0; - $reducedG2 = $reducedG2 + ($x >> 8 & 255) | 0; - $reducedB2 = $reducedB2 + ($x & 255) | 0; - $reducedB = $reducedB + 1 | 0; - } - if (!$reducedB) - $ret.$data.data[$i] = $alpha; - else - $ret.$data.data[$i] = ($reducedR2 / $reducedB | 0) << 16 | ($reducedG2 / $reducedB | 0) << 8 | ($reducedB2 / $reducedB | 0); - } - $i = $i + 1 | 0; - } - return $ret; -} -function nle_TextureTerrainMap_create3x3($src) { - var $ret, $pixel, $y, $x; - nle_TextureTerrainMap_$callClinit(); - $ret = new nle_EaglerImage; - $pixel = $src.$w0 * 3 | 0; - $y = $src.$h * 3 | 0; - $ret.$w0 = $pixel; - $ret.$h = $y; - $ret.$alpha = 1; - $ret.$data = $rt_createIntArray($rt_imul($pixel, $y)); - $y = 0; - while ($y < $src.$h) { - $x = 0; - while ($x < $src.$w0) { - $pixel = $src.$data.data[$rt_imul($y, $src.$w0) + $x | 0]; - if ($y != ($src.$h - 1 | 0)) { - $ret.$data.data[$rt_imul(($src.$h - 1 | 0) - $y | 0, $ret.$w0) + $x | 0] = $pixel; - $ret.$data.data[$rt_imul(($src.$h - 1 | 0) - $y | 0, $ret.$w0) + ($x + $src.$w0 | 0) | 0] = $pixel; - $ret.$data.data[$rt_imul(($src.$h - 1 | 0) - $y | 0, $ret.$w0) + ($x + ($src.$w0 * 2 | 0) | 0) | 0] = $pixel; - } - $ret.$data.data[$rt_imul($y + $src.$h | 0, $ret.$w0) + $x | 0] = $pixel; - $ret.$data.data[$rt_imul($y + $src.$h | 0, $ret.$w0) + ($x + $src.$w0 | 0) | 0] = $pixel; - $ret.$data.data[$rt_imul($y + $src.$h | 0, $ret.$w0) + ($x + ($src.$w0 * 2 | 0) | 0) | 0] = $pixel; - if ($y) { - $ret.$data.data[$rt_imul((($src.$h * 3 | 0) - 1 | 0) - $y | 0, $ret.$w0) + $x | 0] = $pixel; - $ret.$data.data[$rt_imul((($src.$h * 3 | 0) - 1 | 0) - $y | 0, $ret.$w0) + ($x + $src.$w0 | 0) | 0] = $pixel; - $ret.$data.data[$rt_imul((($src.$h * 3 | 0) - 1 | 0) - $y | 0, $ret.$w0) + ($x + ($src.$w0 * 2 | 0) | 0) | 0] = $pixel; - } - $x = $x + 1 | 0; - } - $y = $y + 1 | 0; - } - return $ret; -} -function nle_TextureTerrainMap_create3x3_2($src) { - var $ret; - nle_TextureTerrainMap_$callClinit(); - $ret = new nle_EaglerImage; - $ret.$w0 = 3; - $ret.$h = 3; - $ret.$alpha = 1; - $ret.$data = $rt_createIntArray(9); - $ret.$data.data[0] = $src.$data.data[0]; - $ret.$data.data[1] = $src.$data.data[0]; - $ret.$data.data[2] = $src.$data.data[0]; - $ret.$data.data[3] = $src.$data.data[0]; - $ret.$data.data[4] = $src.$data.data[0]; - $ret.$data.data[5] = $src.$data.data[0]; - $ret.$data.data[6] = $src.$data.data[0]; - $ret.$data.data[7] = $src.$data.data[0]; - $ret.$data.data[8] = $src.$data.data[0]; - return $ret; -} -function nle_TextureTerrainMap_refreshTextures($this) { - var $var4, $var1, $var2, $var3, $t, var$6; - $var4 = $this.$iconList; - ju_Arrays_fill($var4.$array1, 0, $var4.$size0, null); - $var4.$size0 = 0; - $this.$nextSlot = 1; - nms_Block_$callClinit(); - $var1 = nms_Block_blocksList.data; - $var2 = $var1.length; - $var3 = 0; - while ($var3 < $var2) { - $var4 = $var1[$var3]; - if ($var4 !== null) - $var4.$registerIcons($this); - $var3 = $var3 + 1 | 0; - } - nms_RenderGlobal_registerDestroyBlockIcons(nmc_Minecraft_theMinecraft.$renderGlobal, $this); - $var4 = nms_RenderManager_instance.$entityRenderMap; - if ($var4.$cachedValues === null) { - $t = new ju_HashMap$2; - $t.$this$00 = $var4; - $var4.$cachedValues = $t; - } - $var4 = $var4.$cachedValues.$iterator(); - while ($var4.$hasNext()) { - $var4.$next().$updateIcons($this); - } - $var4 = $this.$iconList; - var$6 = new ju_AbstractList$1; - var$6.$this$0 = $var4; - var$6.$modCount = var$6.$this$0.$modCount0; - var$6.$size1 = var$6.$this$0.$size2(); - var$6.$removeIndex = (-1); - while (var$6.$index >= var$6.$size1 ? 0 : 1) { - nle_TextureTerrainMap$TerrainIcon_loadData(ju_AbstractList$1_next(var$6)); - } -} -function nle_TextureTerrainMap_replaceTexture($this, $icon, $textures) { - var $divisor, var$4, var$5, var$6, $i, var$8, var$9, var$10; - $divisor = 1; - var$4 = $this.$texture; - nleg_EaglerAdapterGL30_$callClinit(); - var$5 = nleg_EaglerAdapterGL30_texObjects; - var$5 = var$4 < var$5.$size3 && var$4 >= 0 ? var$5.$values.data[var$4] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$6 = nlea_EaglerAdapterImpl2_webgl; - var$5 = var$5 !== null ? var$5.$obj : null; - var$6.bindTexture(3553, var$5); - $i = 0; - while ($i < 5) { - var$8 = $textures.data; - var$5 = nle_TextureTerrainMap_uploadBuffer; - var$5.$position = 0; - var$5.$limit = var$5.$capacity; - var$5.$mark = (-1); - var$5 = nle_TextureTerrainMap_uploadBuffer; - var$8 = var$8[$i].$data; - jn_IntBuffer_put0(var$5, var$8, 0, var$8.data.length); - var$5 = nle_TextureTerrainMap_uploadBuffer; - var$5.$limit = var$5.$position; - var$5.$position = 0; - var$5.$mark = (-1); - var$4 = $icon.$originX / $divisor | 0; - var$9 = $icon.$originY / $divisor | 0; - var$10 = 48 / $divisor | 0; - nleg_EaglerAdapterGL30_glTexSubImage2D(2, $i, var$4, var$9, var$10, var$10, 18, 19, nle_TextureTerrainMap_uploadBuffer); - $divisor = $divisor * 2 | 0; - $i = $i + 1 | 0; - } -} -function nle_TextureTerrainMap_updateAnimations($this) { - var $t, var$2; - $t = $this.$iconList; - var$2 = new ju_AbstractList$1; - var$2.$this$0 = $t; - 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) { - nle_TextureTerrainMap$TerrainIcon_updateAnimation(ju_AbstractList$1_next(var$2)); - } -} -function nle_TextureTerrainMap_registerIcon($this, $par1Str) { - var $ret, var$3, var$4, $t; - if ($par1Str === null) - return $this.$missingImage; - $ret = $this.$iconList; - var$3 = new ju_AbstractList$1; - var$3.$this$0 = $ret; - 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)) { - $ret = new nle_TextureTerrainMap$TerrainIcon; - var$4 = $this.$nextSlot; - $this.$nextSlot = var$4 + 1 | 0; - nle_TextureTerrainMap$TerrainIcon__init_($ret, var$4, $this, $par1Str); - ju_ArrayList_add($this.$iconList, $ret); - return $ret; - } - $t = ju_AbstractList$1_next(var$3); - if (jl_String_equals($par1Str, $t.$name8)) - break; - } - return $t; -} -function nle_TextureTerrainMap_getMissingIcon($this) { - return $this.$missingImage; -} -function nle_TextureTerrainMap_access$200($x0, $x1, $x2) { - nle_TextureTerrainMap_$callClinit(); - nle_TextureTerrainMap_replaceTexture($x0, $x1, $x2); -} -function nle_TextureTerrainMap_access$300($x0) { - nle_TextureTerrainMap_$callClinit(); - return $x0.$basePath; -} -function nle_TextureTerrainMap_access$400($x0) { - nle_TextureTerrainMap_$callClinit(); - return $x0.$missingData; -} -function nle_TextureTerrainMap__clinit_() { - var var$1, var$2, var$3, var$4; - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL) { - var$1 = jn_ByteBuffer_allocateDirect(16384); - var$1.$order = jn_ByteOrder_BIG_ENDIAN; - var$1 = jn_ByteBufferImpl_asIntBuffer(var$1); - } else { - var$2 = $rt_createIntArray(4096); - var$3 = var$2.data.length; - var$1 = new jn_IntBufferOverArray; - var$4 = 0 + var$3 | 0; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$position = 0; - var$1.$limit = var$4; - var$1.$start1 = 0; - var$1.$readOnly1 = 0; - var$1.$array2 = var$2; - } - nle_TextureTerrainMap_uploadBuffer = var$1; -} -function nms_TextureMap() { - var a = this; jl_Object.call(a); - a.$textureType = 0; - a.$textureName = null; - a.$basePath0 = null; - a.$textureExt = null; - a.$mapTexturesStiched = null; - a.$missingImage0 = null; - a.$missingTextureStiched = null; - a.$atlasTexture = null; - a.$listTextureStiched = null; - a.$textureStichedMap = null; -} -function nms_TextureMap__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_TextureMap(); - nms_TextureMap__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_TextureMap__init_0($this, $par1, $par2, $par3Str, $par4BufferedImage) { - var var$5; - $this.$mapTexturesStiched = ju_HashMap__init_1(16, 0.75); - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $this.$listTextureStiched = var$5; - $this.$textureStichedMap = ju_HashMap__init_1(16, 0.75); - $this.$textureType = $par1; - $this.$textureName = $par2; - $this.$basePath0 = $par3Str; - $this.$textureExt = $rt_s(1173); - $this.$missingImage0 = $par4BufferedImage; -} -function nms_TextureMap_refreshTextures($this) { - var $var20, $var19, $var2, $var3, $var4, $var9, $var23, $var21, $var22, $var24, $var5, $var6, $var7, $var8, $var18, $var25, $var27, $var29, $var10, $var11, $var12, $var13, $var14, $$je; - $var20 = $this.$textureStichedMap; - if ($var20.$elementCount > 0) { - $var20.$elementCount = 0; - $var19 = $var20.$elementData; - ju_Arrays_fill($var19, 0, $var19.data.length, null); - $var20.$modCount1 = $var20.$modCount1 + 1 | 0; - } - if (!$this.$textureType) { - nms_Block_$callClinit(); - $var19 = nms_Block_blocksList.data; - $var2 = $var19.length; - $var3 = 0; - while ($var3 < $var2) { - $var4 = $var19[$var3]; - if ($var4 !== null) - $var4.$registerIcons($this); - $var3 = $var3 + 1 | 0; - } - nms_RenderGlobal_registerDestroyBlockIcons(nmc_Minecraft_theMinecraft.$renderGlobal, $this); - $var20 = nms_RenderManager_instance.$entityRenderMap; - if ($var20.$cachedValues === null) { - $var9 = new ju_HashMap$2; - $var9.$this$00 = $var20; - $var20.$cachedValues = $var9; - } - $var20 = $var20.$cachedValues.$iterator(); - while ($var20.$hasNext()) { - $var20.$next().$updateIcons($this); - } - } - nms_Item_$callClinit(); - $var19 = nms_Item_itemsList.data; - $var2 = $var19.length; - $var3 = 0; - while ($var3 < $var2) { - $var23 = $var19[$var3]; - if ($var23 !== null && $var23.$getSpriteNumber() == $this.$textureType) - $var23.$registerIcons($this); - $var3 = $var3 + 1 | 0; - } - $var20 = ju_HashMap__init_0(); - $var21 = nms_TextureManager_createStitcher(nms_TextureManager_instance, $this.$textureName); - ju_HashMap_clear($this.$mapTexturesStiched); - ju_ArrayList_clear($this.$listTextureStiched); - $var22 = nms_TextureManager_makeTexture(nms_TextureManager_instance0(), $rt_s(727), 2, $this.$missingImage0.$w0, $this.$missingImage0.$h, 71, 18, 70, 70, 0, $this.$missingImage0); - $var24 = nms_StitchHolder__init_($var22); - nms_Stitcher_addStitchHolder($var21, $var24); - $var19 = $rt_createArray(nms_Texture, 1); - $var19.data[0] = $var22; - ju_HashMap_put($var20, $var24, ju_Arrays_asList($var19)); - $var5 = ju_HashMap_keySet($this.$textureStichedMap).$iterator(); - while ($var5.$hasNext()) { - $var6 = $var5.$next(); - $var7 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $this.$basePath0), $var6), $this.$textureExt)); - $var8 = nms_TextureManager_createTexture(nms_TextureManager_instance0(), $var7); - if (!ju_AbstractCollection_isEmpty($var8)) { - $var9 = nms_StitchHolder__init_(ju_ArrayList_get($var8, 0)); - nms_Stitcher_addStitchHolder($var21, $var9); - ju_HashMap_put($var20, $var9, $var8); - } - } - a: { - try { - nms_Stitcher_doStitch($var21); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof nms_StitcherException) { - $var18 = $$je; - } else { - throw $$e; - } - } - $rt_throw($var18); - } - $this.$atlasTexture = nms_Stitcher_getTexture($var21); - $var9 = ju_AbstractList_iterator(nms_Stitcher_getStichSlots($var21)); - while (ju_AbstractList$1_hasNext($var9)) { - $var25 = ju_AbstractList$1_next($var9); - $var27 = nms_StitchSlot_getStitchHolder($var25); - $var29 = nms_Texture_getTextureName(nms_StitchHolder_func_98150_a($var27)); - $var10 = ju_HashMap_get($var20, $var27); - $var11 = ju_HashMap_get($this.$textureStichedMap, $var29); - $var12 = 0; - if ($var11 === null) { - $var12 = 1; - $var11 = nms_TextureStitched_makeTextureStitched($var29); - if (!jl_String_equals($var29, $rt_s(727))) - ji_PrintStream_println0(jl_System_out(), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1174)), $var29), $rt_s(1175)), $this.$textureName))); - } - nms_TextureStitched_init($var11, $this.$atlasTexture, $var10, nms_StitchSlot_getOriginX($var25), nms_StitchSlot_getOriginY($var25), nms_Texture_getWidth(nms_StitchHolder_func_98150_a($var27)), nms_Texture_getHeight(nms_StitchHolder_func_98150_a($var27)), nms_StitchHolder_isRotated($var27)); - ju_HashMap_put($this.$mapTexturesStiched, $var29, $var11); - if (!$var12) - ju_HashMap_remove($this.$textureStichedMap, $var29); - if ($var10.$size2() > 1) { - ju_ArrayList_add($this.$listTextureStiched, $var11); - $var13 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $this.$basePath0), $var29), $rt_s(793))); - $var14 = nms_TexturePackList_getSelectedTexturePack(nmc_Minecraft_getMinecraft().$texturePackList); - nms_TexturePackImplementation_func_98138_b($var14, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(58)), $this.$basePath0), $var29), $rt_s(1173))), 0); - if (nms_TexturePackImplementation_func_98138_b($var14, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(58)), $var13)), 0)) { - ji_PrintStream_println0(jl_System_out(), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1176)), $var13))); - nms_TextureStitched_readAnimationInfo($var11, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(58)), $var13))); - } - } - } - $this.$missingTextureStiched = ju_HashMap_get($this.$mapTexturesStiched, $rt_s(727)); - $var20 = ju_HashMap_values($this.$textureStichedMap).$iterator(); - while ($var20.$hasNext()) { - nms_TextureStitched_copyFrom($var20.$next(), $this.$missingTextureStiched); - } - jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1177)), $this.$textureName), $rt_s(1173))); - nms_Texture_uploadTexture($this.$atlasTexture); -} -function nms_TextureMap_updateAnimations($this) { - var $var2, $var1; - $var2 = $this.$listTextureStiched; - $var1 = new ju_AbstractList$1; - $var1.$this$0 = $var2; - $var1.$modCount = $var1.$this$0.$modCount0; - $var1.$size1 = $var1.$this$0.$size2(); - $var1.$removeIndex = (-1); - while ($var1.$index >= $var1.$size1 ? 0 : 1) { - ju_AbstractList$1_next($var1).$updateAnimation(); - } -} -function nms_TextureMap_getTexture($this) { - return $this.$atlasTexture; -} -function nms_TextureMap_registerIcon($this, $par1Str) { - var $var2, var$3, var$4, var$5; - if ($par1Str === null) { - $var2 = new jl_RuntimeException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $var2.$message = $rt_s(1178); - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - var$3.$sb = var$4; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - var$4 = new jnci_UTF8Charset; - jnc_Charset__init_(var$4, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = var$4; - jl_System_errCache = var$3; - } - jl_Throwable_printStackTrace0($var2, jl_System_errCache); - } - $var2 = $this.$textureStichedMap; - if ($par1Str !== null) { - var$5 = jl_String_hashCode($par1Str); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, $par1Str, var$5 & ($var2.$elementData.data.length - 1 | 0), var$5); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null) { - $var2 = nms_TextureStitched_makeTextureStitched($par1Str); - ju_HashMap_putImpl($this.$textureStichedMap, $par1Str, $var2); - } - return $var2; -} -function nms_TextureMap_getMissingIcon($this) { - return $this.$missingTextureStiched; -} -function ji_Reader() { - jl_Object.call(this); - this.$lock = null; -} -function ji_BufferedReader() { - var a = this; ji_Reader.call(a); - a.$innerReader = null; - a.$buffer3 = null; - a.$index3 = 0; - a.$count4 = 0; - a.$eof1 = 0; - a.$mark1 = 0; -} -function ji_BufferedReader__init_(var_0) { - var var_1 = new ji_BufferedReader(); - ji_BufferedReader__init_0(var_1, var_0); - return var_1; -} -function ji_BufferedReader__init_0($this, $innerReader) { - $this.$lock = new jl_Object; - $this.$mark1 = (-1); - $this.$innerReader = $innerReader; - $this.$buffer3 = $rt_createCharArray(1024); -} -function ji_BufferedReader_close($this) { - var var$1; - if ($this.$innerReader !== null) { - $this.$innerReader = null; - return; - } - var$1 = new ji_IOException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); -} -function ji_BufferedReader_readLine($this) { - var $line, var$2, var$3, $ch; - if ($this.$innerReader === null) { - $line = new ji_IOException; - $line.$suppressionEnabled = 1; - $line.$writableStackTrace = 1; - $rt_throw($line); - } - if ($this.$eof1 && $this.$index3 >= $this.$count4) - return null; - $line = new jl_StringBuilder; - $line.$buffer = $rt_createCharArray(16); - a: { - while (true) { - if ($this.$index3 >= $this.$count4 && !ji_BufferedReader_fillBuffer($this, 0)) - break a; - var$2 = $this.$buffer3.data; - var$3 = $this.$index3; - $this.$index3 = var$3 + 1 | 0; - $ch = var$2[var$3]; - if ($ch == 10) - break; - if ($ch == 13) { - if ($this.$index3 >= $this.$count4 && !ji_BufferedReader_fillBuffer($this, 0)) - break a; - if ($this.$buffer3.data[$this.$index3] != 10) - break a; - $this.$index3 = $this.$index3 + 1 | 0; - break a; - } - var$3 = $line.$length; - jl_AbstractStringBuilder_insertSpace($line, var$3, var$3 + 1 | 0); - $line.$buffer.data[var$3] = $ch; - } - } - return jl_String__init_0($line.$buffer, 0, $line.$length); -} -function ji_BufferedReader_fillBuffer($this, $offset) { - var $charsRead; - if ($this.$eof1) - return 0; - a: { - while (true) { - if ($offset >= $this.$buffer3.data.length) - break a; - $charsRead = ji_InputStreamReader_read($this.$innerReader, $this.$buffer3, $offset, $this.$buffer3.data.length - $offset | 0); - if ($charsRead == (-1)) { - $this.$eof1 = 1; - break a; - } - if (!$charsRead) - break; - $offset = $offset + $charsRead | 0; - } - } - $this.$count4 = $offset; - $this.$index3 = 0; - $this.$mark1 = (-1); - return 1; -} -function ji_InputStreamReader() { - var a = this; ji_Reader.call(a); - a.$stream = null; - a.$decoder = null; - a.$inData = null; - a.$inBuffer = null; - a.$outData = null; - a.$outBuffer = null; - a.$streamEof = 0; - a.$eof2 = 0; -} -function ji_InputStreamReader__init_(var_0, var_1) { - var var_2 = new ji_InputStreamReader(); - ji_InputStreamReader__init_1(var_2, var_0, var_1); - return var_2; -} -function ji_InputStreamReader__init_2(var_0, var_1) { - var var_2 = new ji_InputStreamReader(); - ji_InputStreamReader__init_0(var_2, var_0, var_1); - return var_2; -} -function ji_InputStreamReader__init_1($this, $in, $charsetName) { - var var$3, var$4, $$je; - a: { - try { - var$3 = jnc_Charset_forName(jl_String_toString($charsetName)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jnc_UnsupportedCharsetException) { - } else { - throw $$e; - } - } - $in = new ji_UnsupportedEncodingException; - $in.$suppressionEnabled = 1; - $in.$writableStackTrace = 1; - $in.$message = $charsetName; - $rt_throw($in); - } - var$4 = new jnci_UTF8Decoder; - jnc_CharsetDecoder__init_(var$4, var$3, 0.3333333432674408, 0.5); - $charsetName = jnc_CodingErrorAction_REPLACE; - if ($charsetName === null) { - $charsetName = new jl_IllegalArgumentException; - $charsetName.$suppressionEnabled = 1; - $charsetName.$writableStackTrace = 1; - $charsetName.$message = $rt_s(970); - $rt_throw($charsetName); - } - var$4.$malformedAction0 = $charsetName; - $charsetName = jnc_CodingErrorAction_REPLACE; - if ($charsetName !== null) { - var$4.$unmappableAction0 = $charsetName; - ji_InputStreamReader__init_0($this, $in, var$4); - return; - } - $charsetName = new jl_IllegalArgumentException; - $charsetName.$suppressionEnabled = 1; - $charsetName.$writableStackTrace = 1; - $charsetName.$message = $rt_s(970); - $rt_throw($charsetName); -} -function ji_InputStreamReader__init_0($this, $in, $decoder) { - var var$3, var$4, var$5, var$6, var$7, var$8; - $this.$lock = new jl_Object; - $this.$inData = $rt_createByteArray(8192); - var$3 = $this.$inData; - var$4 = var$3.data.length; - var$5 = new jn_ByteBufferImpl; - var$6 = 0 + var$4 | 0; - var$5.$mark = (-1); - var$5.$capacity = var$4; - var$5.$limit = var$4; - var$5.$order = jn_ByteOrder_BIG_ENDIAN; - var$5.$start = 0; - var$5.$array = var$3; - var$5.$position = 0; - var$5.$limit = var$6; - var$5.$direct = 0; - var$5.$readOnly = 0; - $this.$inBuffer = var$5; - $this.$outData = $rt_createCharArray(1024); - var$7 = $this.$outData; - var$8 = var$7.data.length; - var$5 = new jn_CharBufferOverArray; - var$6 = 0 + var$8 | 0; - var$5.$mark = (-1); - var$5.$capacity = var$8; - var$5.$limit = var$8; - var$5.$position = 0; - var$5.$limit = var$6; - var$5.$start0 = 0; - var$5.$readOnly0 = 0; - var$5.$array0 = var$7; - $this.$outBuffer = var$5; - $this.$stream = $in; - $this.$decoder = $decoder; - jn_Buffer_position0($this.$outBuffer, $this.$outBuffer.$limit); - jn_Buffer_position0($this.$inBuffer, $this.$inBuffer.$limit); -} -function ji_InputStreamReader_close($this) { - return; -} -function ji_InputStreamReader_read($this, $cbuf, $off, $len) { - var var$4, $bytesRead, $sz, var$7; - if ($this.$eof2) { - var$4 = $this.$outBuffer; - if (!(var$4.$position >= var$4.$limit ? 0 : 1)) - return (-1); - } - $bytesRead = 0; - a: { - while ($len > 0) { - var$4 = $this.$outBuffer; - $sz = var$4.$limit - var$4.$position | 0; - if ($len < $sz) - $sz = $len; - jn_CharBuffer_get($this.$outBuffer, $cbuf, $off + $bytesRead | 0, $sz); - $len = $len - $sz | 0; - $bytesRead = $bytesRead + $sz | 0; - var$4 = $this.$outBuffer; - var$7 = var$4.$position >= var$4.$limit ? 0 : 1; - if (!var$7 && !ji_InputStreamReader_fillBuffer($this)) - break a; - } - } - return $bytesRead; -} -function ji_InputStreamReader_fillBuffer($this) { - var var$1, var$2; - if ($this.$eof2) - return 0; - jn_CharBufferImpl_compact($this.$outBuffer); - a: { - while (true) { - var$1 = $this.$inBuffer; - var$2 = var$1.$position >= var$1.$limit ? 0 : 1; - if (!var$2 && !ji_InputStreamReader_fillReadBuffer($this)) - break a; - if (!(jnc_CharsetDecoder_decode0($this.$decoder, $this.$inBuffer, $this.$outBuffer, $this.$streamEof).$kind != 1 ? 0 : 1)) - continue; - else - break; - } - } - var$1 = $this.$inBuffer; - var$2 = var$1.$position >= var$1.$limit ? 0 : 1; - if (!var$2 && $this.$streamEof && (jnc_CharsetDecoder_flush($this.$decoder, $this.$outBuffer).$kind ? 0 : 1)) - $this.$eof2 = 1; - var$1 = $this.$outBuffer; - var$1.$limit = var$1.$position; - var$1.$position = 0; - var$1.$mark = (-1); - return 1; -} -function ji_InputStreamReader_fillReadBuffer($this) { - var var$1, var$2, var$3, var$4, $bytesRead; - if ($this.$streamEof) - return 0; - jn_ByteBufferImpl_compact($this.$inBuffer); - a: { - while (true) { - var$1 = $this.$inBuffer; - if (!(var$1.$position >= var$1.$limit ? 0 : 1)) - break a; - var$1 = $this.$stream; - var$2 = $this.$inBuffer.$array; - var$3 = $this.$inBuffer.$position; - var$4 = $this.$inBuffer; - $bytesRead = ji_ByteArrayInputStream_read0(var$1, var$2, var$3, var$4.$limit - var$4.$position | 0); - if ($bytesRead == (-1)) { - $this.$streamEof = 1; - break a; - } - jn_Buffer_position0($this.$inBuffer, $this.$inBuffer.$position + $bytesRead | 0); - if (!$bytesRead) - break; - } - } - var$1 = $this.$inBuffer; - var$1.$limit = var$1.$position; - var$1.$position = 0; - var$1.$mark = (-1); - return 1; -} -function nms_MouseFilter() { - var a = this; jl_Object.call(a); - a.$field_76336_a = 0.0; - a.$field_76334_b = 0.0; - a.$field_76335_c = 0.0; -} -function nms_MouseFilter__init_0() { - var var_0 = new nms_MouseFilter(); - nms_MouseFilter__init_(var_0); - return var_0; -} -function nms_MouseFilter__init_($this) { - return; -} -function nms_MouseFilter_smooth($this, $par1, $par2) { - var var$3; - a: { - $this.$field_76336_a = $this.$field_76336_a + $par1; - $par1 = ($this.$field_76336_a - $this.$field_76334_b) * $par2; - $this.$field_76335_c = $this.$field_76335_c + ($par1 - $this.$field_76335_c) * 0.5; - var$3 = $rt_compare($par1, 0.0); - if (!(var$3 > 0 && $par1 > $this.$field_76335_c)) { - if (var$3 >= 0) - break a; - if ($par1 >= $this.$field_76335_c) - break a; - } - $par1 = $this.$field_76335_c; - } - $this.$field_76334_b = $this.$field_76334_b + $par1; - return $par1; -} -function nms_EntityCreature() { - var a = this; nms_EntityLiving.call(a); - a.$pathToEntity = null; - a.$entityToAttack = null; - a.$hasAttacked = 0; - a.$fleeingTick = 0; -} -function nms_EntityCreature_isMovementCeased($this) { - return 0; -} -function nms_EntityCreature_updateEntityActionState($this) { - var $var1, $var2, var$3, $var21, $var3, $var4, $var5, $var6, $var16, $var8, $var10, $var12, $var15, $var18, $var20, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var20 = $thread.pop();$var18 = $thread.pop();$var15 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var16 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var21 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(694)); - if ($this.$fleeingTick > 0) - $this.$fleeingTick = $this.$fleeingTick - 1 | 0; - $this.$hasAttacked = 0; - $var1 = 16.0; - if ($this.$entityToAttack === null) { - $this.$entityToAttack = $this.$findPlayerToAttack(); - if ($this.$entityToAttack !== null) - $this.$pathToEntity = nms_World_getPathEntityToEntity($this.$worldObj, $this, $this.$entityToAttack, $var1, 1, 0, 0, 1); - } else if (!$this.$entityToAttack.$isEntityAlive()) - $this.$entityToAttack = null; - else { - $var2 = nms_Entity_getDistanceToEntity($this.$entityToAttack, $this); - if (nms_EntityLiving_canEntityBeSeen($this, $this.$entityToAttack)) { - var$3 = $this.$entityToAttack; - $ptr = 1; - continue main; - } - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - if (!$this.$hasAttacked && $this.$entityToAttack !== null && !($this.$pathToEntity !== null && ju_Random_nextInt0($this.$rand0, 20))) - $this.$pathToEntity = nms_World_getPathEntityToEntity($this.$worldObj, $this, $this.$entityToAttack, $var1, 1, 0, 0, 1); - else if (!$this.$hasAttacked && !(!($this.$pathToEntity === null && !ju_Random_nextInt0($this.$rand0, 180)) && ju_Random_nextInt0($this.$rand0, 120) && $this.$fleeingTick <= 0) && $this.$entityAge < 100) - nms_EntityCreature_updateWanderPath($this); - $var21 = nms_MathHelper_floor_double($this.$boundingBox.$minY + 0.5); - $var3 = $this.$isInWater(); - $var4 = nms_Entity_handleLavaMovement($this); - $this.$rotationPitch = 0.0; - if ($this.$pathToEntity !== null && ju_Random_nextInt0($this.$rand0, 100)) { - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(1179)); - var$3 = $this.$pathToEntity; - $var5 = nms_PathEntity_getVectorFromIndex(var$3, $this, var$3.$currentPathIndex); - $var6 = $this.$width1 * 2.0; - $var16 = $var6 * $var6; - while ($var5 !== null && nms_Vec3_squareDistanceTo0($var5, $this.$posX, $var5.$yCoord, $this.$posZ) < $var16) { - nms_PathEntity_incrementPathIndex($this.$pathToEntity); - if (!nms_PathEntity_isFinished($this.$pathToEntity)) { - $var5 = nms_PathEntity_getPosition($this.$pathToEntity, $this); - continue; - } - $var5 = null; - $this.$pathToEntity = null; - } - $this.$isJumping = 0; - if ($var5 !== null) { - $var8 = $var5.$xCoord - $this.$posX; - $var10 = $var5.$zCoord - $this.$posZ; - $var12 = $var5.$yCoord - $var21; - $var15 = nms_MathHelper_wrapAngleTo180_float(jl_Math_atan2($var10, $var8) * 180.0 / 3.141592653589793 - 90.0 - $this.$rotationYaw); - $this.$moveForward0 = $this.$moveSpeed; - if ($var15 > 30.0) - $var15 = 30.0; - if ($var15 < (-30.0)) - $var15 = (-30.0); - $this.$rotationYaw = $this.$rotationYaw + $var15; - if ($this.$hasAttacked && $this.$entityToAttack !== null) { - $var16 = $this.$entityToAttack.$posX - $this.$posX; - $var18 = $this.$entityToAttack.$posZ - $this.$posZ; - $var20 = $this.$rotationYaw; - $this.$rotationYaw = jl_Math_atan2($var18, $var16) * 180.0 / 3.141592653589793 - 90.0; - $var1 = ($var20 - $this.$rotationYaw + 90.0) * 3.1415927410125732 / 180.0; - $this.$moveStrafing = -nms_MathHelper_sin($var1) * $this.$moveForward0 * 1.0; - $this.$moveForward0 = nms_MathHelper_cos($var1) * $this.$moveForward0 * 1.0; - } - if ($var12 > 0.0) - $this.$isJumping = 1; - } - if ($this.$entityToAttack !== null) - nms_EntityLiving_faceEntity($this, $this.$entityToAttack, 30.0, 30.0); - if ($this.$isCollidedHorizontally && !nms_EntityCreature_hasPath($this)) - $this.$isJumping = 1; - if (ju_Random_nextFloat($this.$rand0) < 0.800000011920929 && !(!$var3 && !$var4)) - $this.$isJumping = 1; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - } - $ptr = 2; - continue main; - case 1: - $this.$attackEntity0(var$3, $var2); - if ($rt_suspending()) { - break main; - } - nms_Profiler_endSection($this.$worldObj.$theProfiler); - if (!$this.$hasAttacked && $this.$entityToAttack !== null && !($this.$pathToEntity !== null && ju_Random_nextInt0($this.$rand0, 20))) - $this.$pathToEntity = nms_World_getPathEntityToEntity($this.$worldObj, $this, $this.$entityToAttack, $var1, 1, 0, 0, 1); - else if (!$this.$hasAttacked && !(!($this.$pathToEntity === null && !ju_Random_nextInt0($this.$rand0, 180)) && ju_Random_nextInt0($this.$rand0, 120) && $this.$fleeingTick <= 0) && $this.$entityAge < 100) - nms_EntityCreature_updateWanderPath($this); - $var21 = nms_MathHelper_floor_double($this.$boundingBox.$minY + 0.5); - $var3 = $this.$isInWater(); - $var4 = nms_Entity_handleLavaMovement($this); - $this.$rotationPitch = 0.0; - if ($this.$pathToEntity !== null && ju_Random_nextInt0($this.$rand0, 100)) { - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(1179)); - var$3 = $this.$pathToEntity; - $var5 = nms_PathEntity_getVectorFromIndex(var$3, $this, var$3.$currentPathIndex); - $var6 = $this.$width1 * 2.0; - $var16 = $var6 * $var6; - while ($var5 !== null && nms_Vec3_squareDistanceTo0($var5, $this.$posX, $var5.$yCoord, $this.$posZ) < $var16) { - nms_PathEntity_incrementPathIndex($this.$pathToEntity); - if (!nms_PathEntity_isFinished($this.$pathToEntity)) { - $var5 = nms_PathEntity_getPosition($this.$pathToEntity, $this); - continue; - } - $var5 = null; - $this.$pathToEntity = null; - } - $this.$isJumping = 0; - if ($var5 !== null) { - $var8 = $var5.$xCoord - $this.$posX; - $var10 = $var5.$zCoord - $this.$posZ; - $var12 = $var5.$yCoord - $var21; - $var15 = nms_MathHelper_wrapAngleTo180_float(jl_Math_atan2($var10, $var8) * 180.0 / 3.141592653589793 - 90.0 - $this.$rotationYaw); - $this.$moveForward0 = $this.$moveSpeed; - if ($var15 > 30.0) - $var15 = 30.0; - if ($var15 < (-30.0)) - $var15 = (-30.0); - $this.$rotationYaw = $this.$rotationYaw + $var15; - if ($this.$hasAttacked && $this.$entityToAttack !== null) { - $var16 = $this.$entityToAttack.$posX - $this.$posX; - $var18 = $this.$entityToAttack.$posZ - $this.$posZ; - $var20 = $this.$rotationYaw; - $this.$rotationYaw = jl_Math_atan2($var18, $var16) * 180.0 / 3.141592653589793 - 90.0; - $var1 = ($var20 - $this.$rotationYaw + 90.0) * 3.1415927410125732 / 180.0; - $this.$moveStrafing = -nms_MathHelper_sin($var1) * $this.$moveForward0 * 1.0; - $this.$moveForward0 = nms_MathHelper_cos($var1) * $this.$moveForward0 * 1.0; - } - if ($var12 > 0.0) - $this.$isJumping = 1; - } - if ($this.$entityToAttack !== null) - nms_EntityLiving_faceEntity($this, $this.$entityToAttack, 30.0, 30.0); - if ($this.$isCollidedHorizontally && !nms_EntityCreature_hasPath($this)) - $this.$isJumping = 1; - if (ju_Random_nextFloat($this.$rand0) < 0.800000011920929 && !(!$var3 && !$var4)) - $this.$isJumping = 1; - nms_Profiler_endSection($this.$worldObj.$theProfiler); - return; - } - $ptr = 2; - case 2: - nms_EntityLiving_updateEntityActionState($this); - if ($rt_suspending()) { - break main; - } - $this.$pathToEntity = null; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, var$3, $var21, $var3, $var4, $var5, $var6, $var16, $var8, $var10, $var12, $var15, $var18, $var20, $ptr); -} -function nms_EntityCreature_updateWanderPath($this) { - var $var1, $var2, $var3, $var4, $var5, $var6, var$7, $var7, $var8, $var9, $var10; - nms_Profiler_startSection($this.$worldObj.$theProfiler, $rt_s(1180)); - $var1 = 0; - $var2 = (-1); - $var3 = (-1); - $var4 = (-1); - $var5 = (-99999.0); - $var6 = 0; - while ($var6 < 10) { - var$7 = $this.$posX + (Math.random() * 13.0 | 0) - 6.0; - $var7 = var$7 | 0; - if (var$7 < $var7) - $var7 = $var7 - 1 | 0; - var$7 = $this.$posY + (Math.random() * 7.0 | 0) - 3.0; - $var8 = var$7 | 0; - if (var$7 < $var8) - $var8 = $var8 - 1 | 0; - var$7 = $this.$posZ + (Math.random() * 13.0 | 0) - 6.0; - $var9 = var$7 | 0; - if (var$7 < $var9) - $var9 = $var9 - 1 | 0; - $var10 = $this.$getBlockPathWeight($var7, $var8, $var9); - if ($var10 > $var5) { - $var1 = 1; - $var5 = $var10; - $var2 = $var7; - $var3 = $var8; - $var4 = $var9; - } - $var6 = $var6 + 1 | 0; - } - if ($var1) - $this.$pathToEntity = nms_World_getEntityPathToXYZ($this.$worldObj, $this, $var2, $var3, $var4, 10.0, 1, 0, 0, 1); - nms_Profiler_endSection($this.$worldObj.$theProfiler); -} -function nms_EntityCreature_attackEntity($this, $par1Entity, $par2) { - return; -} -function nms_EntityCreature_getBlockPathWeight($this, $par1, $par2, $par3) { - return 0.0; -} -function nms_EntityCreature_findPlayerToAttack($this) { - return null; -} -function nms_EntityCreature_hasPath($this) { - return $this.$pathToEntity === null ? 0 : 1; -} -function nms_EntityCreature_getEntityToAttack($this) { - return $this.$entityToAttack; -} -function nms_EntityCreature_setTarget($this, $par1Entity) { - $this.$entityToAttack = $par1Entity; -} -function nms_EntityCreature_getSpeedModifier($this) { - var $var1; - $var1 = nms_EntityLiving_getSpeedModifier($this); - if ($this.$fleeingTick > 0 && !$this.$isAIEnabled()) - $var1 = $var1 * 2.0; - return $var1; -} -function nms_IAnimals() { -} -function nms_IMob() { -} -function nms_EntityMob() { - nms_EntityCreature.call(this); -} -function nms_EntityMob_onLivingUpdate($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: - nms_EntityLiving_updateArmSwingProgress($this); - if ($this.$getBrightness(1.0) > 0.5) - $this.$entityAge = $this.$entityAge + 2 | 0; - $ptr = 1; - case 1: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_EntityMob_onUpdate($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: - $ptr = 1; - case 1: - nms_EntityLiving_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote && !$this.$worldObj.$difficultySetting) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_EntityMob_findPlayerToAttack($this) { - var $var1; - $var1 = nms_World_getClosestVulnerablePlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 16.0); - if (!($var1 !== null && nms_EntityLiving_canEntityBeSeen($this, $var1))) - $var1 = null; - return $var1; -} -function nms_EntityMob_attackEntityFrom($this, $par1DamageSource, $par2) { - var $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - $ptr = 1; - case 1: - $tmp = nms_EntityLiving_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return 0; - $var3 = $par1DamageSource.$getEntity(); - if ($this.$riddenByEntity !== $var3 && $this.$ridingEntity !== $var3) { - if ($var3 !== $this) - $this.$entityToAttack = $var3; - return 1; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $var3, $ptr); -} -function nms_EntityMob_attackEntityAsMob($this, $par1Entity) { - var $var2, var$3, var$4, $var4, $var5, $var3, 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();$var3 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$getAttackStrength($par1Entity); - var$3 = nms_Potion_damageBoost; - var$4 = $this.$activePotionsMap; - var$3 = jl_Integer_valueOf(var$3.$id3); - if (var$3 !== null) { - $var4 = jl_Integer_hashCode(var$3); - var$3 = ju_HashMap_findNonNullKeyEntry(var$4, var$3, $var4 & (var$4.$elementData.data.length - 1 | 0), $var4); - } else { - var$3 = var$4.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - if (var$3 === null ? 0 : 1) { - var$3 = nms_Potion_damageBoost; - var$4 = $this.$activePotionsMap; - var$3 = jl_Integer_valueOf(var$3.$id3); - if (var$3 !== null) { - $var5 = jl_Integer_hashCode(var$3); - var$3 = ju_HashMap_findNonNullKeyEntry(var$4, var$3, $var5 & (var$4.$elementData.data.length - 1 | 0), $var5); - } else { - var$3 = var$4.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - $var2 = $var2 + (3 << (var$3 === null ? null : var$3.$value0).$amplifier) | 0; - } - var$3 = nms_Potion_weakness; - var$4 = $this.$activePotionsMap; - var$3 = jl_Integer_valueOf(var$3.$id3); - if (var$3 !== null) { - $var4 = jl_Integer_hashCode(var$3); - var$3 = ju_HashMap_findNonNullKeyEntry(var$4, var$3, $var4 & (var$4.$elementData.data.length - 1 | 0), $var4); - } else { - var$3 = var$4.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - if (var$3 === null ? 0 : 1) { - var$3 = nms_Potion_weakness; - var$4 = $this.$activePotionsMap; - var$3 = jl_Integer_valueOf(var$3.$id3); - if (var$3 !== null) { - $var5 = jl_Integer_hashCode(var$3); - var$3 = ju_HashMap_findNonNullKeyEntry(var$4, var$3, $var5 & (var$4.$elementData.data.length - 1 | 0), $var5); - } else { - var$3 = var$4.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - $var2 = $var2 - (2 << (var$3 === null ? null : var$3.$value0).$amplifier) | 0; - } - $var3 = 0; - var$8 = $par1Entity instanceof nms_EntityLiving; - if (var$8) { - $var2 = $var2 + nms_EnchantmentHelper_getEnchantmentModifierLiving($this, $par1Entity) | 0; - nms_Enchantment_$callClinit(); - $var3 = $var3 + nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_knockback.$effectId, $this.$equipment.data[0]) | 0; - } - var$3 = new nms_EntityDamageSource; - var$3.$isUnblockable = 0; - var$3.$isDamageAllowedInCreativeMode = 0; - var$3.$hungerDamage = 0.30000001192092896; - var$3.$magicDamage = 0; - var$3.$explosion = 0; - var$3.$damageType = $rt_s(1181); - var$3.$damageSourceEntity = $this; - $ptr = 1; - case 1: - $tmp = $par1Entity.$attackEntityFrom(var$3, $var2); - if ($rt_suspending()) { - break main; - } - $var4 = $tmp; - if ($var4) { - if ($var3 > 0) { - var$9 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - var$9 = -nms_MathHelper_SIN_TABLE.data[(var$9 * 10430.3779296875 | 0) & 65535]; - var$10 = $var3; - var$11 = var$9 * var$10 * 0.5; - var$9 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - $par1Entity.$addVelocity(var$11, 0.1, nms_MathHelper_SIN_TABLE.data[(var$9 * 10430.3779296875 + 16384.0 | 0) & 65535] * var$10 * 0.5); - $this.$motionX = $this.$motionX * 0.6; - $this.$motionZ = $this.$motionZ * 0.6; - } - nms_Enchantment_$callClinit(); - $var5 = nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_fireAspect.$effectId, $this.$equipment.data[0]); - if ($var5 > 0) { - $var2 = nms_EnchantmentProtection_func_92093_a($par1Entity, ($var5 * 4 | 0) * 20 | 0); - if ($par1Entity.$fire < $var2) - $par1Entity.$fire = $var2; - } - if (var$8) { - $par1Entity = $par1Entity; - var$3 = $this.$rand0; - $ptr = 2; - continue main; - } - } - return $var4; - case 2: - nms_EnchantmentThorns_func_92096_a($this, $par1Entity, var$3); - if ($rt_suspending()) { - break main; - } - return $var4; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $var2, var$3, var$4, $var4, $var5, $var3, var$8, var$9, var$10, var$11, $ptr); -} -function nms_EntityMob_attackEntity($this, $par1Entity, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$attackTime <= 0 && $par2 < 2.0 && $par1Entity.$boundingBox.$maxY > $this.$boundingBox.$minY && $par1Entity.$boundingBox.$minY < $this.$boundingBox.$maxY) { - $this.$attackTime = 20; - $ptr = 1; - continue main; - } - return; - case 1: - $this.$attackEntityAsMob($par1Entity); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $ptr); -} -function nms_EntityMob_getBlockPathWeight($this, $par1, $par2, $par3) { - var var$4; - var$4 = $this.$worldObj; - return 0.5 - var$4.$provider.$lightBrightnessTable.data[nms_World_getBlockLightValue_do(var$4, $par1, $par2, $par3, 1)]; -} -function nms_EntityMob_getAttackStrength($this, $par1Entity) { - return 2; -} -function nms_EntitySpider() { - nms_EntityMob.call(this); -} -function nms_EntitySpider__init_0() { - var var_0 = new nms_EntitySpider(); - nms_EntitySpider__init_(var_0); - return var_0; -} -function nms_EntitySpider__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - nms_Entity_setSize($this, 1.399999976158142, 0.8999999761581421); - $this.$moveSpeed = 0.800000011920929; -} -function nms_EntitySpider_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); -} -function nms_EntitySpider_onUpdate($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: - $ptr = 1; - case 1: - nms_EntityLiving_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote && !$this.$worldObj.$difficultySetting) - $this.$isDead = 1; - if (!$this.$worldObj.$isRemote) - nms_EntitySpider_setBesideClimbableBlock($this, $this.$isCollidedHorizontally); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_EntitySpider_getMaxHealth($this) { - return 16; -} -function nms_EntitySpider_getMountedYOffset($this) { - return $this.$height1 * 0.75 - 0.5; -} -function nms_EntitySpider_findPlayerToAttack($this) { - if (nms_Entity_getBrightness($this, 1.0) >= 0.5) - return null; - return nms_World_getClosestVulnerablePlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 16.0); -} -function nms_EntitySpider_getLivingSound($this) { - return $rt_s(1182); -} -function nms_EntitySpider_getHurtSound($this) { - return $rt_s(1182); -} -function nms_EntitySpider_getDeathSound($this) { - return $rt_s(1183); -} -function nms_EntitySpider_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1184), 0.15000000596046448, 1.0); -} -function nms_EntitySpider_attackEntity($this, $par1Entity, $par2) { - var $var4, $var6, var$5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$5 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if (nms_Entity_getBrightness($this, 1.0) > 0.5 && !(Math.random() * 100.0 | 0)) - $this.$entityToAttack = null; - else { - if ($par2 <= 2.0) - break a; - if ($par2 >= 6.0) - break a; - if (Math.random() * 10.0 | 0) - break a; - if ($this.$onGround) { - $var4 = $par1Entity.$posX - $this.$posX; - $var6 = $par1Entity.$posZ - $this.$posZ; - var$5 = jl_Math_sqrt($var4 * $var4 + $var6 * $var6); - $this.$motionX = $var4 / var$5 * 0.5 * 0.800000011920929 + $this.$motionX * 0.20000000298023224; - $this.$motionZ = $var6 / var$5 * 0.5 * 0.800000011920929 + $this.$motionZ * 0.20000000298023224; - $this.$motionY = 0.4000000059604645; - } - } - return; - } - $ptr = 1; - case 1: - nms_EntityMob_attackEntity($this, $par1Entity, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $var4, $var6, var$5, $ptr); -} -function nms_EntitySpider_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_silk.$itemID; -} -function nms_EntitySpider_dropFewItems($this, $par1, $par2) { - var var$3, var$4, var$5; - a: { - nms_EntityLiving_dropFewItems($this, $par1, $par2); - if ($par1) { - if (Math.random() * 3.0 | 0) { - $par1 = 1 + $par2 | 0; - if ((Math.random() * $par1 | 0) <= 0) - break a; - } - nms_Item_$callClinit(); - $par1 = nms_Item_spiderEye.$itemID; - var$3 = new nms_ItemStack; - var$3.$stackSize = 0; - var$3.$itemFrame = null; - var$3.$itemID0 = $par1; - var$3.$stackSize = 1; - var$3.$itemDamage = 0; - if (var$3.$itemDamage < 0) - var$3.$itemDamage = 0; - var$4 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$4.$dataWatcher, 10, var$3); - nms_DataWatcher_setObjectWatched(var$4.$dataWatcher, 10); - var$4.$delayBeforeCanPickup = 10; - var$3 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$3, var$4); - var$5 = var$3.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$4, var$5); - if (!$par1) { - var$3 = var$3.$entitySpawnQueue; - ju_HashMap_putImpl(var$3.$backingMap, var$4, var$3); - } - } - } -} -function nms_EntitySpider_isOnLadder($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; -} -function nms_EntitySpider_setInWeb($this) { - return; -} -function nms_EntitySpider_spiderScaleAmount($this) { - return 1.0; -} -function nms_EntitySpider_getCreatureAttribute($this) { - return nms_EnumCreatureAttribute_ARTHROPOD; -} -function nms_EntitySpider_isPotionApplicable($this, $par1PotionEffect) { - return $par1PotionEffect.$potionID != nms_Potion_poison.$id3 ? nms_EntityLiving_isPotionApplicable($this, $par1PotionEffect) : 0; -} -function nms_EntitySpider_isBesideClimbableBlock($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; -} -function nms_EntitySpider_setBesideClimbableBlock($this, $par1) { - var $var2, var$3, var$4; - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - $par1 = !$par1 ? ($var2 & (-2)) << 24 >> 24 : ($var2 | 1) << 24 >> 24; - var$3 = $this.$dataWatcher; - var$4 = new jl_Byte; - var$4.$value4 = $par1; - nms_DataWatcher_updateObject(var$3, 16, var$4); -} -function nms_EntitySpider_initCreature($this) { - var $var1, var$2, var$3, var$4; - if (!(Math.random() * 100.0 | 0)) { - $var1 = new nms_EntitySkeleton; - nms_EntityLiving__init_0($var1); - $var1.$hasAttacked = 0; - $var1.$fleeingTick = 0; - $var1.$experienceValue = 5; - $var1.$moveSpeed = 0.25; - var$2 = $this.$worldObj; - $var1.$worldObj = var$2; - $var1.$dimension = var$2.$provider.$dimensionId; - nms_Entity_setLocationAndAngles($var1, $this.$posX, $this.$posY, $this.$posZ, $this.$rotationYaw, 0.0); - var$2 = $this.$worldObj; - var$3 = nms_World_spawnEntityInWorld(var$2, $var1); - var$4 = var$2.$entityList; - ju_HashMap_putImpl(var$4.$backingMap, $var1, var$4); - if (!var$3) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, $var1, var$2); - } - nms_Entity_mountEntity($var1, $this); - } -} -function nms_Render() { - var a = this; jl_Object.call(a); - a.$renderManager = null; - a.$modelBase = null; - a.$renderBlocks = null; - a.$shadowSize = 0.0; - a.$shadowOpaque = 0.0; -} -var nms_Render_terrain = null; -var nms_Render_shadow = null; -function nms_Render_loadTexture($this, $par1Str) { - var var$2, var$3, var$4; - var$2 = $this.$renderManager.$renderEngine1; - var$3 = nms_RenderEngine_getTexture(var$2, $par1Str); - if (var$3 != var$2.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - $par1Str = nleg_EaglerAdapterGL30_texObjects; - $par1Str = var$3 < $par1Str.$size3 && var$3 >= 0 ? $par1Str.$values.data[var$3] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = nlea_EaglerAdapterImpl2_webgl; - $par1Str = $par1Str !== null ? $par1Str.$obj : null; - var$4.bindTexture(3553, $par1Str); - var$2.$boundTexture = var$3; - } -} -function nms_Render_renderEntityOnFire($this, $par1Entity, $par2, $par4, $par6, $par8) { - var $var9, $var10, $var11, $var13, $var12, var$11, $var19, var$13, $var15, $var16, $var17, $var18, $var20, $var21, $var22, $var23, var$22, var$23, var$24, var$25; - nleg_EaglerAdapterGL30_glDisable(13); - nms_Block_$callClinit(); - $var9 = nms_Block_fire.$iconArray0.data[0]; - $var10 = nms_Block_fire.$iconArray0.data[1]; - nleg_EaglerAdapterGL30_glPushMatrix(); - $par8 = $par2; - $var11 = $par4; - $var13 = $par6; - $var12 = nleg_EaglerAdapterGL30_deevis; - $var12.$x = $par8; - $var12.$y = $var11; - $var12.$z = $var13; - $var12 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var12, $var12); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - $var12 = new jl_StringBuilder; - $var12.$buffer = $rt_createCharArray(16); - var$11.$sb = $var12; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - $var12 = new jnci_UTF8Charset; - jnc_Charset__init_($var12, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = $var12; - jl_System_errCache = var$11; - } - $var19 = jl_System_errCache; - $var12 = $var19.$sb; - jl_AbstractStringBuilder_insert($var12, $var12.$length, $rt_s(220)); - var$13 = $var12.$length; - jl_AbstractStringBuilder_insertSpace($var12, var$13, var$13 + 1 | 0); - $var12.$buffer.data[var$13] = 10; - ji_PrintStream_printSB($var19); - } - $var11 = $par1Entity.$width1 * 1.399999976158142; - $var12 = nleg_EaglerAdapterGL30_deevis; - $var12.$x = $var11; - $var12.$y = $var11; - $var12.$z = $var11; - $var12 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $var12, $var12); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var19 = new ji_PrintStream; - $var19.$out = new jl_ConsoleOutputStreamStderr; - $var12 = new jl_StringBuilder; - $var12.$buffer = $rt_createCharArray(16); - $var19.$sb = $var12; - $var19.$buffer0 = $rt_createCharArray(32); - $var19.$autoFlush = 0; - $var12 = new jnci_UTF8Charset; - jnc_Charset__init_($var12, $rt_s(2), $rt_createArray(jl_String, 0)); - $var19.$charset = $var12; - jl_System_errCache = $var19; - } - $var19 = jl_System_errCache; - $var12 = $var19.$sb; - jl_AbstractStringBuilder_insert($var12, $var12.$length, $rt_s(220)); - var$13 = $var12.$length; - jl_AbstractStringBuilder_insertSpace($var12, var$13, var$13 + 1 | 0); - $var12.$buffer.data[var$13] = 10; - ji_PrintStream_printSB($var19); - } - nle_TextureLocation_bindTexture(nms_Render_terrain); - nlea_Tessellator_$callClinit(); - $var12 = nlea_Tessellator_instance; - $var13 = 0.5; - $var15 = $par1Entity.$height1 / $var11; - $var16 = $par1Entity.$posY - $par1Entity.$boundingBox.$minY; - nleg_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$playerViewY, 0.0, 1.0, 0.0); - $par8 = (-0.30000001192092896) + ($var15 | 0) * 0.019999999552965164; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = 0.0; - $par1Entity.$z = $par8; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var19 = new ji_PrintStream; - $var19.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - $var19.$sb = $par1Entity; - $var19.$buffer0 = $rt_createCharArray(32); - $var19.$autoFlush = 0; - $var19.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = $var19; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - $var17 = 0.0; - $var18 = 0; - nlea_Tessellator_startDrawingQuads($var12); - while ($var15 > 0.0) { - $var19 = $var18 % 2 | 0 ? $var10 : $var9; - $var20 = $var19.$getMinU(); - $var21 = $var19.$getMinV(); - $var22 = $var19.$getMaxU(); - $var23 = $var19.$getMaxV(); - if (($var18 / 2 | 0) % 2 | 0) { - $par8 = $var20; - $var20 = $var22; - $var22 = $par8; - } - $par2 = $var13 - 0.0; - $par4 = 0.0 - $var16; - $par6 = $var17; - var$22 = $var20; - var$23 = $var23; - nlea_Tessellator_addVertexWithUV($var12, $par2, $par4, $par6, var$22, var$23); - var$24 = -$var13 - 0.0; - var$25 = $var22; - nlea_Tessellator_addVertexWithUV($var12, var$24, $par4, $par6, var$25, var$23); - $par4 = 1.399999976158142 - $var16; - var$23 = $var21; - nlea_Tessellator_addVertexWithUV($var12, var$24, $par4, $par6, var$25, var$23); - nlea_Tessellator_addVertexWithUV($var12, $par2, $par4, $par6, var$22, var$23); - $var15 = $var15 - 0.44999998807907104; - $var16 = $var16 - 0.44999998807907104; - $var13 = $var13 * 0.8999999761581421; - $var17 = $var17 + 0.029999999329447746; - $var18 = $var18 + 1 | 0; - } - nlea_Tessellator_draw($var12); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glEnable(13); -} -function nms_Render_renderShadow($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, $var12, $var14, $var16, $var26, $var35, $var28, $var24, $var18, $var19, $var20, $var21, $var22, $var23, $var30, $var32, $var33, $var34; - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nle_TextureLocation_bindTexture(nms_Render_shadow); - $var10 = $this.$renderManager.$worldObj1; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - $var11 = $this.$shadowSize; - if ($par1Entity instanceof nms_EntityLiving) { - $var12 = $par1Entity; - $var11 = $var11 * 1.0; - if ($var12.$isChild()) - $var11 = $var11 * 0.5; - } - $var14 = $par1Entity.$lastTickPosX; - $var16 = $par1Entity.$posX - $par1Entity.$lastTickPosX; - $var26 = $par9; - $var35 = $var14 + $var16 * $var26; - $var14 = $par1Entity.$lastTickPosY + ($par1Entity.$posY - $par1Entity.$lastTickPosY) * $var26 + $par1Entity.$getShadowSize(); - $var16 = $par1Entity.$lastTickPosZ + ($par1Entity.$posZ - $par1Entity.$lastTickPosZ) * $var26; - $var28 = $var11; - $var24 = $var35 - $var28; - $var18 = $var24 | 0; - if ($var24 < $var18) - $var18 = $var18 - 1 | 0; - $var24 = $var35 + $var28; - $var19 = $var24 | 0; - if ($var24 < $var19) - $var19 = $var19 - 1 | 0; - $var24 = $var14 - $var28; - $var20 = $var24 | 0; - if ($var24 < $var20) - $var20 = $var20 - 1 | 0; - $var21 = $var14 | 0; - if ($var14 < $var21) - $var21 = $var21 - 1 | 0; - $var24 = $var16 - $var28; - $var22 = $var24 | 0; - if ($var24 < $var22) - $var22 = $var22 - 1 | 0; - $var28 = $var16 + $var28; - $var23 = $var28 | 0; - if ($var28 < $var23) - $var23 = $var23 - 1 | 0; - $var24 = $par2 - $var35; - $var26 = $par4 - $var14; - $var28 = $par6 - $var16; - nlea_Tessellator_$callClinit(); - $var30 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var30, 98); - while ($var18 <= $var19) { - $var32 = $var20; - while ($var32 <= $var21) { - $var33 = $var22; - while ($var33 <= $var23) { - $var34 = nms_World_getBlockId($var10, $var18, $var32 - 1 | 0, $var33); - if ($var34 > 0 && nms_World_getBlockLightValue_do($var10, $var18, $var32, $var33, 1) > 3) { - nms_Block_$callClinit(); - nms_Render_renderShadowOnBlock($this, nms_Block_blocksList.data[$var34], $par2, $par4 + $par1Entity.$getShadowSize(), $par6, $var18, $var32, $var33, $par8, $var11, $var24, $var26 + $par1Entity.$getShadowSize(), $var28); - } - $var33 = $var33 + 1 | 0; - } - $var32 = $var32 + 1 | 0; - } - $var18 = $var18 + 1 | 0; - } - nlea_Tessellator_draw($var30); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(16); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); -} -function nms_Render_renderShadowOnBlock($this, $par1Block, $par2, $par4, $par6, $par8, $par9, $par10, $par11, $par12, $par13, $par15, $par17) { - var $var19, $var20, $var26, var$16, $var22, $var24, $var28, $var30, $var32, $var33, $var34, $var35; - nlea_Tessellator_$callClinit(); - $var19 = nlea_Tessellator_instance; - if ($par1Block.$renderAsNormalBlock()) { - $var20 = $par11; - $var26 = $par9; - $par4 = ($var20 - ($par4 - ($var26 + $par15)) / 2.0) * 0.5; - var$16 = $this.$renderManager.$worldObj1; - $var20 = $par4 * var$16.$provider.$lightBrightnessTable.data[nms_World_getBlockLightValue_do(var$16, $par8, $par9, $par10, 1)]; - if ($var20 >= 0.0) { - if ($var20 > 1.0) - $var20 = 1.0; - nlea_Tessellator_setColorRGBA($var19, 255, 255, 255, $var20 * 255.0 | 0); - $var20 = $par8; - $var22 = $var20 + $par1Block.$minX0 + $par13; - $var24 = $var20 + $par1Block.$maxX0 + $par13; - $var26 = $var26 + $par1Block.$minY0 + $par15 + 0.015625; - $par13 = $par10; - $var28 = $par13 + $par1Block.$minZ0 + $par17; - $var30 = $par13 + $par1Block.$maxZ0 + $par17; - $par4 = ($par2 - $var22) / 2.0; - $par13 = $par12; - $var32 = $par4 / $par13 + 0.5; - $var33 = ($par2 - $var24) / 2.0 / $par13 + 0.5; - $var34 = ($par6 - $var28) / 2.0 / $par13 + 0.5; - $var35 = ($par6 - $var30) / 2.0 / $par13 + 0.5; - $par2 = $var32; - $par4 = $var34; - $var19.$hasTexture = 1; - $par11 = $par2; - $var19.$textureU = $par11; - $var34 = $par4; - $var19.$textureV = $var34; - nlea_Tessellator_addVertex($var19, $var22, $var26, $var28); - $par2 = $var35; - $var19.$hasTexture = 1; - $var19.$textureU = $par11; - $par12 = $par2; - $var19.$textureV = $par12; - nlea_Tessellator_addVertex($var19, $var22, $var26, $var30); - $par2 = $var33; - $var19.$hasTexture = 1; - $par11 = $par2; - $var19.$textureU = $par11; - $var19.$textureV = $par12; - nlea_Tessellator_addVertex($var19, $var24, $var26, $var30); - $var19.$hasTexture = 1; - $var19.$textureU = $par11; - $var19.$textureV = $var34; - nlea_Tessellator_addVertex($var19, $var24, $var26, $var28); - } - } -} -function nms_Render_renderOffsetAABB($par0AxisAlignedBB, $par1, $par3, $par5) { - var $var7; - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_$callClinit(); - $var7 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nlea_Tessellator_startDrawing($var7, 98); - $var7.$xOffset = $par1; - $var7.$yOffset = $par3; - $var7.$zOffset = $par5; - nlea_Tessellator_setNormal($var7, 0.0, 0.0, (-1.0)); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_setNormal($var7, 0.0, 0.0, 1.0); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_setNormal($var7, 0.0, (-1.0), 0.0); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_setNormal($var7, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_setNormal($var7, (-1.0), 0.0, 0.0); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$minX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_setNormal($var7, 1.0, 0.0, 0.0); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$minZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$maxY, $par0AxisAlignedBB.$maxZ); - nlea_Tessellator_addVertex($var7, $par0AxisAlignedBB.$maxX, $par0AxisAlignedBB.$minY, $par0AxisAlignedBB.$maxZ); - $var7.$xOffset = 0.0; - $var7.$yOffset = 0.0; - $var7.$zOffset = 0.0; - nlea_Tessellator_draw($var7); - nleg_EaglerAdapterGL30_glEnable(2); -} -function nms_Render_setRenderManager($this, $par1RenderManager) { - $this.$renderManager = $par1RenderManager; -} -function nms_Render_doRenderShadowAndFire($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var var$7, var$8, var$9, $var10, $var12; - if ($this.$renderManager.$options2.$fancyGraphics && $this.$shadowSize > 0.0 && !(!(nms_DataWatcher_getWatchableObjectByte($par1Entity.$dataWatcher, 0) & 32) ? 0 : 1)) { - var$7 = $this.$renderManager; - var$8 = $par1Entity.$posX; - var$9 = $par1Entity.$posY; - $var10 = $par1Entity.$posZ; - var$8 = var$8 - var$7.$viewerPosX; - var$9 = var$9 - var$7.$viewerPosY; - $var10 = $var10 - var$7.$viewerPosZ; - $var12 = (1.0 - (var$8 * var$8 + var$9 * var$9 + $var10 * $var10) / 256.0) * $this.$shadowOpaque; - if ($var12 > 0.0) - nms_Render_renderShadow($this, $par1Entity, $par2, $par4, $par6, $var12, $par9); - } - if ($par1Entity.$canRenderOnFire()) - nms_Render_renderEntityOnFire($this, $par1Entity, $par2, $par4, $par6, $par9); -} -function nms_Render_getFontRendererFromRenderManager($this) { - return $this.$renderManager.$fontRenderer1; -} -function nms_Render_updateIcons($this, $par1IconRegister) { - return; -} -function nms_Render__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_Render_terrain = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1185); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_Render_shadow = var$1; -} -function nms_RenderLiving() { - var a = this; nms_Render.call(a); - a.$mainModel = null; - a.$renderPassModel = null; -} -var nms_RenderLiving_glint = null; -function nms_RenderLiving_setRenderPassModel($this, $par1ModelBase) { - $this.$renderPassModel = $par1ModelBase; -} -function nms_RenderLiving_interpolateRotation($this, $par1, $par2, $par3) { - var $var4; - $var4 = $par2 - $par1; - while ($var4 < (-180.0)) { - $var4 = $var4 + 360.0; - } - while ($var4 >= 180.0) { - $var4 = $var4 - 360.0; - } - return $par1 + $par3 * $var4; -} -function nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, $var12, $var13, $var14, $var15, $var16, var$14, $var17, $var18, $var19, $var21, $var23, $var25, $var26, $var27, $var20, $var28, $var22, $var29, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var29 = $thread.pop();$var22 = $thread.pop();$var28 = $thread.pop();$var20 = $thread.pop();$var27 = $thread.pop();$var26 = $thread.pop();$var25 = $thread.pop();$var23 = $thread.pop();$var21 = $thread.pop();$var19 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();var$14 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 - = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glDisable(46); - $this.$mainModel.$onGround1 = nms_RenderLiving_renderSwingProgress($this, $par1EntityLiving, $par9); - if ($this.$renderPassModel !== null) - $this.$renderPassModel.$onGround1 = $this.$mainModel.$onGround1; - $this.$mainModel.$isRiding = nms_Entity_isRiding($par1EntityLiving); - if ($this.$renderPassModel !== null) - $this.$renderPassModel.$isRiding = $this.$mainModel.$isRiding; - $this.$mainModel.$isChild0 = $par1EntityLiving.$isChild(); - if ($this.$renderPassModel !== null) - $this.$renderPassModel.$isChild0 = $this.$mainModel.$isChild0; - try { - $var10 = nms_RenderLiving_interpolateRotation($this, $par1EntityLiving.$prevRenderYawOffset, $par1EntityLiving.$renderYawOffset, $par9); - $var11 = nms_RenderLiving_interpolateRotation($this, $par1EntityLiving.$prevRotationYawHead, $par1EntityLiving.$rotationYawHead, $par9); - $var12 = $par1EntityLiving.$prevRotationPitch + ($par1EntityLiving.$rotationPitch - $par1EntityLiving.$prevRotationPitch) * $par9; - $this.$renderLivingAt($par1EntityLiving, $par2, $par4, $par6); - $var13 = $this.$handleRotationFloat($par1EntityLiving, $par9); - $this.$rotateCorpse($par1EntityLiving, $var13, $var10, $par9); - $var14 = 0.0625; - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glScalef((-1.0), (-1.0), 1.0); - $this.$preRenderCallback($par1EntityLiving, $par9); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-1.5078125), 0.0); - $var15 = $par1EntityLiving.$prevLimbYaw + ($par1EntityLiving.$limbYaw - $par1EntityLiving.$prevLimbYaw) * $par9; - $var16 = $par1EntityLiving.$limbSwing - $par1EntityLiving.$limbYaw * (1.0 - $par9); - if ($par1EntityLiving.$isChild()) - $var16 = $var16 * 3.0; - if ($var15 > 1.0) - $var15 = 1.0; - nleg_EaglerAdapterGL30_glEnable(6); - $this.$mainModel.$setLivingAnimations($par1EntityLiving, $var16, $var15, $par9); - var$14 = $var11 - $var10; - $this.$renderModel($par1EntityLiving, $var16, $var15, $var13, var$14, $var12, $var14); - $var17 = 0; - while ($var17 < 4) { - $var18 = $this.$shouldRenderPass($par1EntityLiving, $var17, $par9); - if ($var18 > 0) { - $this.$renderPassModel.$setLivingAnimations($par1EntityLiving, $var16, $var15, $par9); - $this.$renderPassModel.$render0($par1EntityLiving, $var16, $var15, $var13, var$14, $var12, $var14); - if (($var18 & 240) == 16) { - $this.$func_82408_c($par1EntityLiving, $var17, $par9); - $this.$renderPassModel.$render0($par1EntityLiving, $var16, $var15, $var13, var$14, $var12, $var14); - } - if (($var18 & 15) == 15) { - $var19 = $par1EntityLiving.$ticksExisted + $par9; - nle_TextureLocation_bindTexture(nms_RenderLiving_glint); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glColor4f(0.5, 0.5, 0.5, 1.0); - nleg_EaglerAdapterGL30_glDepthFunc(52); - nleg_EaglerAdapterGL30_glDepthMask(0); - $var21 = 0; - while ($var21 < 2) { - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glColor4f(0.3799999952316284, 0.1899999976158142, 0.6079999804496765, 1.0); - nleg_EaglerAdapterGL30_glBlendFunc(53, 1); - nleg_EaglerAdapterGL30_glMatrixMode(54); - nleg_EaglerAdapterGL30_glLoadIdentity(); - $var10 = $var21; - $var23 = $var19 * (0.0010000000474974513 + $var10 * 0.003000000026077032) * 20.0; - nleg_EaglerAdapterGL30_glScalef(0.3333333432674408, 0.3333333432674408, 0.3333333432674408); - nleg_EaglerAdapterGL30_glRotatef(30.0 - $var10 * 60.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, $var23, 0.0); - nleg_EaglerAdapterGL30_glMatrixMode(10); - $this.$renderPassModel.$render0($par1EntityLiving, $var16, $var15, $var13, var$14, $var12, $var14); - $var21 = $var21 + 1 | 0; - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glMatrixMode(54); - nleg_EaglerAdapterGL30_glDepthMask(1); - nleg_EaglerAdapterGL30_glLoadIdentity(); - nleg_EaglerAdapterGL30_glMatrixMode(10); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glDepthFunc(5); - } - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(6); - } - $var17 = $var17 + 1 | 0; - } - nleg_EaglerAdapterGL30_glDepthMask(1); - $ptr = 1; - continue main; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var25 = $$je; - } else { - throw $$e; - } - } - jl_Throwable_printStackTrace($var25); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glEnable(2); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_defaultTexUnit); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glPopMatrix(); - nms_RenderLiving_passSpecialRender($this, $par1EntityLiving, $par2, $par4, $par6); - return; - case 1: - a: { - try { - $this.$renderEquippedItems($par1EntityLiving, $par9); - if ($rt_suspending()) { - break main; - } - $var26 = $par1EntityLiving.$getBrightness($par9); - $var18 = $this.$getColorMultiplier($par1EntityLiving, $var26, $par9); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glDisable(2); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_defaultTexUnit); - $var17 = $var18 >> 24 & 255; - if (!($var17 <= 0 && $par1EntityLiving.$hurtTime <= 0 && $par1EntityLiving.$deathTime <= 0)) { - b: { - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glDepthFunc(52); - if (!($par1EntityLiving.$hurtTime <= 0 && $par1EntityLiving.$deathTime <= 0)) { - nleg_EaglerAdapterGL30_glColor4f($var26, 0.0, 0.0, 0.4000000059604645); - $this.$mainModel.$render0($par1EntityLiving, $var16, $var15, $var13, var$14, $var12, $var14); - $var27 = 0; - while (true) { - if ($var27 >= 4) - break b; - if ($this.$inheritRenderPass($par1EntityLiving, $var27, $par9) >= 0) { - nleg_EaglerAdapterGL30_glColor4f($var26, 0.0, 0.0, 0.4000000059604645); - $this.$renderPassModel.$render0($par1EntityLiving, $var16, $var15, $var13, var$14, $var12, $var14); - } - $var27 = $var27 + 1 | 0; - } - } - } - c: { - if ($var17 > 0) { - $var19 = ($var18 >> 16 & 255) / 255.0; - $var20 = ($var18 >> 8 & 255) / 255.0; - $var28 = ($var18 & 255) / 255.0; - $var22 = $var17 / 255.0; - nleg_EaglerAdapterGL30_glColor4f($var19, $var20, $var28, $var22); - $this.$mainModel.$render0($par1EntityLiving, $var16, $var15, $var13, var$14, $var12, $var14); - $var29 = 0; - while (true) { - if ($var29 >= 4) - break c; - if ($this.$inheritRenderPass($par1EntityLiving, $var29, $par9) >= 0) { - nleg_EaglerAdapterGL30_glColor4f($var19, $var20, $var28, $var22); - $this.$renderPassModel.$render0($par1EntityLiving, $var16, $var15, $var13, var$14, $var12, $var14); - } - $var29 = $var29 + 1 | 0; - } - } - } - nleg_EaglerAdapterGL30_glDepthFunc(5); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glEnable(2); - } - nleg_EaglerAdapterGL30_glDisable(41); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var25 = $$je; - } else { - throw $$e; - } - } - jl_Throwable_printStackTrace($var25); - } - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_lightmapTexUnit); - nleg_EaglerAdapterGL30_glEnable(2); - nms_OpenGlHelper_setActiveTexture(nms_OpenGlHelper_defaultTexUnit); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glPopMatrix(); - nms_RenderLiving_passSpecialRender($this, $par1EntityLiving, $par2, $par4, $par6); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $var10, $var11, $var12, $var13, $var14, $var15, $var16, var$14, $var17, $var18, $var19, $var21, $var23, $var25, $var26, $var27, $var20, $var28, $var22, $var29, $ptr); -} -function nms_RenderLiving_renderModel($this, $par1EntityLiving, $par2, $par3, $par4, $par5, $par6, $par7) { - $this.$bindTexture2($par1EntityLiving); - if (!(!(nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 0) & 32) ? 0 : 1)) - $this.$mainModel.$render0($par1EntityLiving, $par2, $par3, $par4, $par5, $par6, $par7); - else if ($par1EntityLiving.$func_98034_c(nmc_Minecraft_theMinecraft.$thePlayer)) - $this.$mainModel.$setRotationAngles($par2, $par3, $par4, $par5, $par6, $par7, $par1EntityLiving); - else { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 0.15000000596046448; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_alphaThresh = 0.003921568859368563; - $this.$mainModel.$render0($par1EntityLiving, $par2, $par3, $par4, $par5, $par6, $par7); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_alphaThresh = 0.10000000149011612; - nleg_EaglerAdapterGL30_glPopMatrix(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - } -} -function nms_RenderLiving_renderLivingAt($this, $par1EntityLiving, $par2, $par4, $par6) { - var var$5, var$6, var$7, var$8, var$9, var$10; - var$5 = $par2; - var$6 = $par4; - var$7 = $par6; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = var$5; - $par1EntityLiving.$y = var$6; - $par1EntityLiving.$z = var$7; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1EntityLiving; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1EntityLiving; - jl_System_errCache = var$8; - } - var$9 = jl_System_errCache; - var$8 = var$9.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$10 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$10, var$10 + 1 | 0); - var$8.$buffer.data[var$10] = 10; - ji_PrintStream_printSB(var$9); - } -} -function nms_RenderLiving_rotateCorpse($this, $par1EntityLiving, $par2, $par3, $par4) { - nleg_EaglerAdapterGL30_glRotatef(180.0 - $par3, 0.0, 1.0, 0.0); - if ($par1EntityLiving.$deathTime > 0) { - $par3 = jl_Math_sqrt(($par1EntityLiving.$deathTime + $par4 - 1.0) / 20.0 * 1.600000023841858); - if ($par3 > 1.0) - $par3 = 1.0; - nleg_EaglerAdapterGL30_glRotatef($par3 * $this.$getDeathMaxRotation($par1EntityLiving), 0.0, 0.0, 1.0); - } -} -function nms_RenderLiving_renderSwingProgress($this, $par1EntityLiving, $par2) { - var var$3; - var$3 = $par1EntityLiving.$swingProgress - $par1EntityLiving.$prevSwingProgress; - if (var$3 < 0.0) - var$3 = var$3 + 1.0; - return $par1EntityLiving.$prevSwingProgress + var$3 * $par2; -} -function nms_RenderLiving_handleRotationFloat($this, $par1EntityLiving, $par2) { - return $par1EntityLiving.$ticksExisted + $par2; -} -function nms_RenderLiving_renderEquippedItems($this, $par1EntityLiving, $par2) { - return; -} -function nms_RenderLiving_renderArrowsStuckInEntity($this, $par1EntityLiving, $par2) { - var $var3, $var4, $var5, $var6, $var7, var$8, var$9, $var8, $var9, $var10, $var11, $var12, $var13, $var14, var$17, $var15, $var16, $var18, $var20, $var22, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var22 = $thread.pop();$var20 = $thread.pop();$var18 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();var$17 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 10); - if ($var3 > 0) { - $var4 = nms_EntityArrow__init_0($par1EntityLiving.$worldObj, $par1EntityLiving.$posX, $par1EntityLiving.$posY, $par1EntityLiving.$posZ); - $var5 = new ju_Random; - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(15); - $var6 = 0; - if ($var6 < $var3) { - nleg_EaglerAdapterGL30_glPushMatrix(); - $var7 = nms_ModelBase_getRandomModelBox($this.$mainModel, $var5); - $par1EntityLiving = $var7.$cubeList; - var$8 = $var7.$cubeList.$size0; - var$9 = Math.random() * var$8 | 0; - if (var$9 >= 0 && var$9 < $par1EntityLiving.$size0) { - $var8 = $par1EntityLiving.$array1.data[var$9]; - nms_ModelRenderer_postRender($var7, 0.0625); - $var9 = Math.random(); - $var10 = Math.random(); - $var11 = Math.random(); - $var12 = ($var8.$posX10 + ($var8.$posX20 - $var8.$posX10) * $var9) / 16.0; - $var13 = ($var8.$posY10 + ($var8.$posY20 - $var8.$posY10) * $var10) / 16.0; - $var14 = ($var8.$posZ10 + ($var8.$posZ20 - $var8.$posZ10) * $var11) / 16.0; - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = $var12; - $par1EntityLiving.$y = $var13; - $par1EntityLiving.$z = $var14; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var8 = new ji_PrintStream; - $var8.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - $var8.$sb = $par1EntityLiving; - $var8.$buffer0 = $rt_createCharArray(32); - $var8.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - $var8.$charset = $par1EntityLiving; - jl_System_errCache = $var8; - } - $var8 = jl_System_errCache; - $par1EntityLiving = $var8.$sb; - jl_AbstractStringBuilder_insert($par1EntityLiving, $par1EntityLiving.$length, $rt_s(220)); - var$17 = $par1EntityLiving.$length; - jl_AbstractStringBuilder_insertSpace($par1EntityLiving, var$17, var$17 + 1 | 0); - $par1EntityLiving.$buffer.data[var$17] = 10; - ji_PrintStream_printSB($var8); - } - $var12 = $var9 * 2.0 - 1.0; - $var13 = $var10 * 2.0 - 1.0; - $var14 = $var11 * 2.0 - 1.0; - $var12 = $var12 * (-1.0); - $var13 = $var13 * (-1.0); - $var14 = $var14 * (-1.0); - $var15 = jl_Math_sqrt($var12 * $var12 + $var14 * $var14); - $var12 = jl_Math_atan2($var12, $var14) * 180.0 / 3.141592653589793; - $var4.$rotationYaw = $var12; - $var4.$prevRotationYaw = $var12; - $var12 = jl_Math_atan2($var13, $var15) * 180.0 / 3.141592653589793; - $var4.$rotationPitch = $var12; - $var4.$prevRotationPitch = $var12; - $var16 = 0.0; - $var18 = 0.0; - $var20 = 0.0; - $var22 = 0.0; - $par1EntityLiving = $this.$renderManager; - $ptr = 1; - continue main; - } - $par1EntityLiving = new jl_IndexOutOfBoundsException; - $par1EntityLiving.$suppressionEnabled = 1; - $par1EntityLiving.$writableStackTrace = 1; - $rt_throw($par1EntityLiving); - } - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - } - return; - case 1: - nms_RenderManager_renderEntityWithPosYaw($par1EntityLiving, $var4, $var16, $var18, $var20, $var22, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - $var6 = $var6 + 1 | 0; - if ($var6 >= $var3) { - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - return; - } - nleg_EaglerAdapterGL30_glPushMatrix(); - $var7 = nms_ModelBase_getRandomModelBox($this.$mainModel, $var5); - $par1EntityLiving = $var7.$cubeList; - var$8 = $var7.$cubeList.$size0; - var$9 = Math.random() * var$8 | 0; - if (var$9 >= 0 && var$9 < $par1EntityLiving.$size0) { - $var8 = $par1EntityLiving.$array1.data[var$9]; - nms_ModelRenderer_postRender($var7, 0.0625); - $var9 = Math.random(); - $var10 = Math.random(); - $var11 = Math.random(); - $var12 = ($var8.$posX10 + ($var8.$posX20 - $var8.$posX10) * $var9) / 16.0; - $var13 = ($var8.$posY10 + ($var8.$posY20 - $var8.$posY10) * $var10) / 16.0; - $var14 = ($var8.$posZ10 + ($var8.$posZ20 - $var8.$posZ10) * $var11) / 16.0; - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = $var12; - $par1EntityLiving.$y = $var13; - $par1EntityLiving.$z = $var14; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var8 = new ji_PrintStream; - $var8.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - $var8.$sb = $par1EntityLiving; - $var8.$buffer0 = $rt_createCharArray(32); - $var8.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - $var8.$charset = $par1EntityLiving; - jl_System_errCache = $var8; - } - $var8 = jl_System_errCache; - $par1EntityLiving = $var8.$sb; - jl_AbstractStringBuilder_insert($par1EntityLiving, $par1EntityLiving.$length, $rt_s(220)); - var$17 = $par1EntityLiving.$length; - jl_AbstractStringBuilder_insertSpace($par1EntityLiving, var$17, var$17 + 1 | 0); - $par1EntityLiving.$buffer.data[var$17] = 10; - ji_PrintStream_printSB($var8); - } - $var12 = $var9 * 2.0 - 1.0; - $var13 = $var10 * 2.0 - 1.0; - $var14 = $var11 * 2.0 - 1.0; - $var12 = $var12 * (-1.0); - $var13 = $var13 * (-1.0); - $var14 = $var14 * (-1.0); - $var15 = jl_Math_sqrt($var12 * $var12 + $var14 * $var14); - $var12 = jl_Math_atan2($var12, $var14) * 180.0 / 3.141592653589793; - $var4.$rotationYaw = $var12; - $var4.$prevRotationYaw = $var12; - $var12 = jl_Math_atan2($var13, $var15) * 180.0 / 3.141592653589793; - $var4.$rotationPitch = $var12; - $var4.$prevRotationPitch = $var12; - $var16 = 0.0; - $var18 = 0.0; - $var20 = 0.0; - $var22 = 0.0; - $par1EntityLiving = $this.$renderManager; - continue main; - } - $par1EntityLiving = new jl_IndexOutOfBoundsException; - $par1EntityLiving.$suppressionEnabled = 1; - $par1EntityLiving.$writableStackTrace = 1; - $rt_throw($par1EntityLiving); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $var3, $var4, $var5, $var6, $var7, var$8, var$9, $var8, $var9, $var10, $var11, $var12, $var13, $var14, var$17, $var15, $var16, $var18, $var20, $var22, $ptr); -} -function nms_RenderLiving_inheritRenderPass($this, $par1EntityLiving, $par2, $par3) { - return $this.$shouldRenderPass($par1EntityLiving, $par2, $par3); -} -function nms_RenderLiving_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return (-1); -} -function nms_RenderLiving_func_82408_c($this, $par1EntityLiving, $par2, $par3) { - return; -} -function nms_RenderLiving_getDeathMaxRotation($this, $par1EntityLiving) { - return 90.0; -} -function nms_RenderLiving_getColorMultiplier($this, $par1EntityLiving, $par2, $par3) { - return 0; -} -function nms_RenderLiving_preRenderCallback($this, $par1EntityLiving, $par2) { - return; -} -function nms_RenderLiving_passSpecialRender($this, $par1EntityLiving, $par2, $par4, $par6) { - var $var16, $var15, $var10, var$8, var$9, $var12, $var13, var$12, var$13, var$14, var$15, var$16; - $var16 = nmc_Minecraft_theMinecraft !== null && nmc_Minecraft_theMinecraft.$gameSettings.$hideGUI ? 0 : 1; - a: { - if ($var16 && $par1EntityLiving !== $this.$renderManager.$livingPlayer && !$par1EntityLiving.$func_98034_c(nmc_Minecraft_theMinecraft.$thePlayer)) { - if (!$par1EntityLiving.$func_94059_bO()) { - if (!(nms_DataWatcher_getWatchableObjectString($par1EntityLiving.$dataWatcher, 5).$characters.data.length <= 0 ? 0 : 1)) - break a; - if ($par1EntityLiving !== $this.$renderManager.$field_96451_i) - break a; - } - $var15 = $this.$renderManager.$livingPlayer; - $var10 = $par1EntityLiving.$posX - $var15.$posX; - var$8 = $par1EntityLiving.$posY - $var15.$posY; - var$9 = $par1EntityLiving.$posZ - $var15.$posZ; - $var10 = $var10 * $var10 + var$8 * var$8 + var$9 * var$9; - $var12 = !$par1EntityLiving.$isSneaking() ? 64.0 : 32.0; - if ($var10 < $var12 * $var12) { - $var13 = $par1EntityLiving.$getTranslatedEntityName(); - if (!$par1EntityLiving.$isSneaking()) - $this.$func_96449_a($par1EntityLiving, $par2, $par4, $par6, $var13, 0.0266666691750288, $var10); - else { - var$12 = $this.$renderManager.$fontRenderer1; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var12 = $par2 + 0.0; - var$13 = $par4 + $par1EntityLiving.$height1 + 0.5; - var$14 = $par6; - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = $var12; - $par1EntityLiving.$y = var$13; - $par1EntityLiving.$z = var$14; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var15 = new ji_PrintStream; - $var15.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - $var15.$sb = $par1EntityLiving; - $var15.$buffer0 = $rt_createCharArray(32); - $var15.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - $var15.$charset = $par1EntityLiving; - jl_System_errCache = $var15; - } - var$15 = jl_System_errCache; - $var15 = var$15.$sb; - jl_AbstractStringBuilder_insert($var15, $var15.$length, $rt_s(220)); - var$16 = $var15.$length; - jl_AbstractStringBuilder_insertSpace($var15, var$16, var$16 + 1 | 0); - $var15.$buffer.data[var$16] = 10; - ji_PrintStream_printSB(var$15); - } - nleg_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$playerViewY, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($this.$renderManager.$playerViewX, 1.0, 0.0, 0.0); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = (-0.0266666691750288); - $par1EntityLiving.$y = (-0.0266666691750288); - $par1EntityLiving.$z = 0.0266666691750288; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var15 = new ji_PrintStream; - $var15.$out = new jl_ConsoleOutputStreamStderr; - $var15.$sb = jl_StringBuilder__init_(); - $var15.$buffer0 = $rt_createCharArray(32); - $var15.$autoFlush = 0; - $var15.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = $var15; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 9.374999046325684, 0.0); - nleg_EaglerAdapterGL30_glDepthMask(0); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nlea_Tessellator_$callClinit(); - $var15 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_startDrawingQuads($var15); - $var16 = nms_FontRenderer_getStringWidth(var$12, $var13) / 2 | 0; - nlea_Tessellator_setColorRGBA_F($var15, 0.0, 0.0, 0.0, 0.25); - $par4 = -$var16 - 1 | 0; - nlea_Tessellator_addVertex($var15, $par4, (-1.0), 0.0); - nlea_Tessellator_addVertex($var15, $par4, 8.0, 0.0); - $par2 = $var16 + 1 | 0; - nlea_Tessellator_addVertex($var15, $par2, 8.0, 0.0); - nlea_Tessellator_addVertex($var15, $par2, (-1.0), 0.0); - nlea_Tessellator_draw($var15); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glDepthMask(1); - nms_FontRenderer_drawString0(var$12, $var13, -nms_FontRenderer_getStringWidth(var$12, $var13) / 2 | 0, 0, 553648127); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - } - } - } -} -function nms_RenderLiving_func_96449_a($this, $par1EntityLiving, $par2, $par4, $par6, $par8Str, $par9, $par10) { - if (!$par1EntityLiving.$isPlayerSleeping()) - nms_RenderLiving_renderLivingLabel($this, $par1EntityLiving, $par8Str, $par2, $par4, $par6, 64); - else - nms_RenderLiving_renderLivingLabel($this, $par1EntityLiving, $par8Str, $par2, $par4 - 1.5, $par6, 64); -} -function nms_RenderLiving_renderLivingLabel($this, $par1EntityLiving, $par2Str, $par3, $par5, $par7, $par9) { - var $var15, $var10, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $var17, $var16; - $var15 = $this.$renderManager.$livingPlayer; - $var10 = $par1EntityLiving.$posX - $var15.$posX; - var$9 = $par1EntityLiving.$posY - $var15.$posY; - var$10 = $par1EntityLiving.$posZ - $var15.$posZ; - if ($var10 * $var10 + var$9 * var$9 + var$10 * var$10 <= $rt_imul($par9, $par9)) { - var$11 = $this.$renderManager.$fontRenderer1; - nleg_EaglerAdapterGL30_glPushMatrix(); - var$12 = $par3 + 0.0; - var$13 = $par5 + $par1EntityLiving.$height1 + 0.5; - var$14 = $par7; - $var15 = nleg_EaglerAdapterGL30_deevis; - $var15.$x = var$12; - $var15.$y = var$13; - $var15.$z = var$14; - $var15 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var15, $var15); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$15 = new ji_PrintStream; - var$15.$out = new jl_ConsoleOutputStreamStderr; - $var15 = new jl_StringBuilder; - $var15.$buffer = $rt_createCharArray(16); - var$15.$sb = $var15; - var$15.$buffer0 = $rt_createCharArray(32); - var$15.$autoFlush = 0; - $var15 = new jnci_UTF8Charset; - jnc_Charset__init_($var15, $rt_s(2), $rt_createArray(jl_String, 0)); - var$15.$charset = $var15; - jl_System_errCache = var$15; - } - var$15 = jl_System_errCache; - $var15 = var$15.$sb; - jl_AbstractStringBuilder_insert($var15, $var15.$length, $rt_s(220)); - $var17 = $var15.$length; - jl_AbstractStringBuilder_insertSpace($var15, $var17, $var17 + 1 | 0); - $var15.$buffer.data[$var17] = 10; - ji_PrintStream_printSB(var$15); - } - nleg_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$playerViewY, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($this.$renderManager.$playerViewX, 1.0, 0.0, 0.0); - $var15 = nleg_EaglerAdapterGL30_deevis; - $var15.$x = (-0.0266666691750288); - $var15.$y = (-0.0266666691750288); - $var15.$z = 0.0266666691750288; - $var15 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $var15, $var15); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$15 = new ji_PrintStream; - var$15.$out = new jl_ConsoleOutputStreamStderr; - $var15 = new jl_StringBuilder; - $var15.$buffer = $rt_createCharArray(16); - var$15.$sb = $var15; - var$15.$buffer0 = $rt_createCharArray(32); - var$15.$autoFlush = 0; - $var15 = new jnci_UTF8Charset; - jnc_Charset__init_($var15, $rt_s(2), $rt_createArray(jl_String, 0)); - var$15.$charset = $var15; - jl_System_errCache = var$15; - } - var$15 = jl_System_errCache; - $var15 = var$15.$sb; - jl_AbstractStringBuilder_insert($var15, $var15.$length, $rt_s(220)); - $var17 = $var15.$length; - jl_AbstractStringBuilder_insertSpace($var15, $var17, $var17 + 1 | 0); - $var15.$buffer.data[$var17] = 10; - ji_PrintStream_printSB(var$15); - } - nleg_EaglerAdapterGL30_glDisable(13); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nleg_EaglerAdapterGL30_glDisable(4); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nlea_Tessellator_$callClinit(); - $var15 = nlea_Tessellator_instance; - $var16 = 0; - if (jl_String_equals($par2Str, $rt_s(1186))) - $var16 = (-10); - if ($par1EntityLiving instanceof nms_EntityOtherPlayerMP && nle_DefaultSkinRenderer_getPlayerRenderer($par1EntityLiving) == 19) - $var16 = (-32); - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_startDrawing($var15, 98); - $var17 = nms_FontRenderer_getStringWidth(var$11, $par2Str) / 2 | 0; - nlea_Tessellator_setColorRGBA_F($var15, 0.0, 0.0, 0.0, 0.25); - $par5 = -$var17 - 1 | 0; - $par7 = (-1) + $var16 | 0; - nlea_Tessellator_addVertex($var15, $par5, $par7, 0.0); - $par3 = 8 + $var16 | 0; - nlea_Tessellator_addVertex($var15, $par5, $par3, 0.0); - $par5 = $var17 + 1 | 0; - nlea_Tessellator_addVertex($var15, $par5, $par3, 0.0); - nlea_Tessellator_addVertex($var15, $par5, $par7, 0.0); - nlea_Tessellator_draw($var15); - nleg_EaglerAdapterGL30_glEnable(2); - nms_FontRenderer_drawString(var$11, $par2Str, -nms_FontRenderer_getStringWidth(var$11, $par2Str) / 2 | 0, $var16, 553648127, 0); - nleg_EaglerAdapterGL30_glEnable(4); - nlea_EaglerAdapterImpl2__wglDepthMask(1); - nms_FontRenderer_drawString(var$11, $par2Str, -nms_FontRenderer_getStringWidth(var$11, $par2Str) / 2 | 0, $var16, (-1), 0); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_RenderLiving_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - $this.$doRenderLiving($par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderLiving__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(796); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderLiving_glint = var$1; -} -function nms_RenderSpider() { - nms_RenderLiving.call(this); -} -var nms_RenderSpider_tex_eyes = null; -var nms_RenderSpider_entityTexture0 = null; -var nms_RenderSpider_entityTexture1 = null; -function nms_RenderSpider__init_0() { - var var_0 = new nms_RenderSpider(); - nms_RenderSpider__init_(var_0); - return var_0; -} -function nms_RenderSpider__init_($this) { - var var$1; - var$1 = nms_ModelSpider__init_0(); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 1.0; - $this.$renderPassModel = nms_ModelSpider__init_0(); -} -function nms_RenderSpider_setSpiderDeathMaxRotation($this, $par1EntitySpider) { - return 180.0; -} -function nms_RenderSpider_setSpiderEyeBrightness($this, $par1EntitySpider, $par2, $par3) { - var var$4, var$5, var$6; - if ($par2) - return (-1); - nle_TextureLocation_bindTexture(nms_RenderSpider_tex_eyes); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glBlendFunc(1, 1); - if (!(!(nms_DataWatcher_getWatchableObjectByte($par1EntitySpider.$dataWatcher, 0) & 32) ? 0 : 1)) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - } else { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - } - a: { - switch (nms_OpenGlHelper_lightmapTexUnit) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = 61680.0; - nleg_EaglerAdapterGL30_tex1Y = 0.0; - break a; - default: - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - $par1EntitySpider = new jl_StringBuilder; - $par1EntitySpider.$buffer = $rt_createCharArray(16); - var$4.$sb = $par1EntitySpider; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - $par1EntitySpider = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntitySpider, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = $par1EntitySpider; - 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(238)); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); - break a; - } - nleg_EaglerAdapterGL30_tex0X = 61680.0; - nleg_EaglerAdapterGL30_tex0Y = 0.0; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - return 1; -} -function nms_RenderSpider_scaleSpider($this, $par1EntitySpider, $par2) { - var $var3, var$4, var$5, var$6; - $var3 = $par1EntitySpider.$spiderScaleAmount(); - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntitySpider = nleg_EaglerAdapterGL30_deevis; - $par1EntitySpider.$x = $var3; - $par1EntitySpider.$y = $var3; - $par1EntitySpider.$z = $var3; - $par1EntitySpider = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntitySpider, $par1EntitySpider); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - $par1EntitySpider = new jl_StringBuilder; - $par1EntitySpider.$buffer = $rt_createCharArray(16); - var$4.$sb = $par1EntitySpider; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - $par1EntitySpider = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntitySpider, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = $par1EntitySpider; - 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)); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); - } -} -function nms_RenderSpider_preRenderCallback($this, $par1EntityLiving, $par2) { - var var$3, var$4, var$5; - $par2 = $par1EntityLiving.$spiderScaleAmount(); - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = $par2; - $par1EntityLiving.$y = $par2; - $par1EntityLiving.$z = $par2; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityLiving; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityLiving; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } -} -function nms_RenderSpider_getDeathMaxRotation($this, $par1EntityLiving) { - return 180.0; -} -function nms_RenderSpider_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderSpider_setSpiderEyeBrightness($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderSpider_bindTexture($this, $par1EntityLiving) { - if (!($par1EntityLiving instanceof nms_EntityCaveSpider)) - nle_TextureLocation_bindTexture(nms_RenderSpider_entityTexture0); - else - nle_TextureLocation_bindTexture(nms_RenderSpider_entityTexture1); -} -function nms_RenderSpider__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1187); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSpider_tex_eyes = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1188); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSpider_entityTexture0 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1189); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSpider_entityTexture1 = var$1; -} -function nms_EntityCaveSpider() { - nms_EntitySpider.call(this); -} -function nms_EntityCaveSpider__init_0() { - var var_0 = new nms_EntityCaveSpider(); - nms_EntityCaveSpider__init_(var_0); - return var_0; -} -function nms_EntityCaveSpider__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - nms_Entity_setSize($this, 1.399999976158142, 0.8999999761581421); - $this.$moveSpeed = 0.800000011920929; - nms_Entity_setSize($this, 0.699999988079071, 0.5); -} -function nms_EntityCaveSpider_getMaxHealth($this) { - return 12; -} -function nms_EntityCaveSpider_spiderScaleAmount($this) { - return 0.699999988079071; -} -function nms_EntityCaveSpider_attackEntityAsMob($this, $par1Entity) { - var $var2, var$3, 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();var$3 = $thread.pop();$var2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $tmp = nms_EntityMob_attackEntityAsMob($this, $par1Entity); - if ($rt_suspending()) { - break main; - } - $var2 = $tmp; - if (!$var2) - return 0; - if ($par1Entity instanceof nms_EntityLiving) { - $var2 = 0; - if ($this.$worldObj.$difficultySetting > 1) { - if ($this.$worldObj.$difficultySetting == 2) - $var2 = 7; - else if ($this.$worldObj.$difficultySetting == 3) - $var2 = 15; - } - if ($var2 > 0) { - var$3 = $par1Entity; - var$4 = new nms_PotionEffect; - var$5 = nms_Potion_poison.$id3; - $var2 = $var2 * 20 | 0; - var$4.$potionID = var$5; - var$4.$duration = $var2; - var$4.$amplifier = 0; - var$4.$isAmbient = 0; - var$3.$addPotionEffect(var$4); - } - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $var2, var$3, var$4, var$5, $ptr); -} -function nms_EntityCaveSpider_initCreature($this) { - return; -} -function nms_EntityAgeable() { - var a = this; nms_EntityCreature.call(a); - a.$field_98056_d = 0.0; - a.$field_98057_e = 0.0; -} -function nms_EntityAgeable_interact($this, $par1EntityPlayer) { - var $var2, var$3, $var4, $var3, var$6, var$7, var$8, var$9; - a: { - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var2 === null) - break a; - var$3 = $var2.$itemID0; - nms_Item_$callClinit(); - if (var$3 != nms_Item_monsterPlacer.$itemID) - break a; - if ($this.$worldObj.$isRemote) - break a; - var$3 = $var2.$itemDamage; - $var4 = nms_EntityList_IDtoClassMapping; - $var3 = jl_Integer_valueOf(var$3); - if ($var3 !== null) { - var$6 = jl_Integer_hashCode($var3); - $var4 = ju_HashMap_findNonNullKeyEntry($var4, $var3, var$6 & ($var4.$elementData.data.length - 1 | 0), var$6); - } else { - $var4 = $var4.$elementData.data[0]; - while ($var4 !== null && $var4.$key !== null) { - $var4 = $var4.$next1; - } - } - $var3 = $var4 === null ? null : $var4.$value0; - if ($var3 === null) - break a; - if (!otp_Platform_isAssignable(jl_Class_getClass($this.constructor).$platformClass, $var3.$platformClass)) - break a; - $var4 = $this.$createChild($this); - if ($var4 === null) - break a; - nms_EntityAgeable_setGrowingAge($var4, (-24000)); - nms_Entity_setLocationAndAngles($var4, $this.$posX, $this.$posY, $this.$posZ, 0.0, 0.0); - $var3 = $this.$worldObj; - var$3 = nms_World_spawnEntityInWorld($var3, $var4); - var$7 = $var3.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, $var4, var$7); - if (!var$3) { - $var3 = $var3.$entitySpawnQueue; - ju_HashMap_putImpl($var3.$backingMap, $var4, $var3); - } - if (nms_ItemStack_hasDisplayName($var2)) { - $var3 = nms_ItemStack_getDisplayName($var2); - nms_DataWatcher_updateObject($var4.$dataWatcher, 5, $var3); - } - if ($par1EntityPlayer.$capabilities.$isCreativeMode) - break a; - $var2.$stackSize = $var2.$stackSize - 1 | 0; - if ($var2.$stackSize > 0) - break a; - $var2 = $par1EntityPlayer.$inventory; - var$3 = $par1EntityPlayer.$inventory.$currentItem; - $par1EntityPlayer = null; - var$8 = $var2.$mainInventory; - var$9 = var$8.data.length; - if (var$3 >= var$9) { - var$3 = var$3 - var$9 | 0; - var$8 = $var2.$armorInventory; - } - var$8.data[var$3] = $par1EntityPlayer; - } - return 0; -} -function nms_EntityAgeable_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 0; - nms_DataWatcher_addObject(var$1, 12, var$2); -} -function nms_EntityAgeable_getGrowingAge($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12); -} -function nms_EntityAgeable_setGrowingAge($this, $par1) { - var var$2; - nms_DataWatcher_updateObject($this.$dataWatcher, 12, jl_Integer_valueOf($par1)); - var$2 = !(nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0 ? 0 : 1) ? 1.0 : 0.5; - nms_Entity_setSize($this, $this.$field_98056_d * var$2, $this.$field_98057_e * var$2); -} -function nms_EntityAgeable_onLivingUpdate($this) { - var var$1, $var1, var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$worldObj.$isRemote) { - var$1 = !(nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0 ? 0 : 1) ? 1.0 : 0.5; - nms_Entity_setSize($this, $this.$field_98056_d * var$1, $this.$field_98057_e * var$1); - } else { - $var1 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12); - if ($var1 < 0) { - var$3 = $var1 + 1 | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 12, jl_Integer_valueOf(var$3)); - var$1 = !(nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0 ? 0 : 1) ? 1.0 : 0.5; - nms_Entity_setSize($this, $this.$field_98056_d * var$1, $this.$field_98057_e * var$1); - } else if ($var1 > 0) { - var$3 = $var1 + (-1) | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 12, jl_Integer_valueOf(var$3)); - var$1 = !(nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0 ? 0 : 1) ? 1.0 : 0.5; - nms_Entity_setSize($this, $this.$field_98056_d * var$1, $this.$field_98057_e * var$1); - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, var$3, $ptr); -} -function nms_EntityAgeable_isChild($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0 ? 0 : 1; -} -function nms_EntityAgeable_func_98054_a($this, $par1) { - var var$2; - var$2 = !$par1 ? 1.0 : 0.5; - nms_Entity_setSize($this, $this.$field_98056_d * var$2, $this.$field_98057_e * var$2); -} -function nms_EntityAgeable_setSize($this, $par1, $par2) { - var $var3; - $var3 = $this.$field_98056_d <= 0.0 ? 0 : 1; - $this.$field_98056_d = $par1; - $this.$field_98057_e = $par2; - if (!$var3) - nms_Entity_setSize($this, $this.$field_98056_d * 1.0, $this.$field_98057_e * 1.0); -} -function nms_EntityAnimal() { - var a = this; nms_EntityAgeable.call(a); - a.$inLove = 0; - a.$breeding = 0; -} -function nms_EntityAnimal_updateAITick($this) { - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12)) - $this.$inLove = 0; -} -function nms_EntityAnimal_onLivingUpdate($this) { - var $var1, $var2, $var4, $var6, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityAgeable_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12)) - $this.$inLove = 0; - if ($this.$inLove <= 0) - $this.$breeding = 0; - else { - $this.$inLove = $this.$inLove - 1 | 0; - $var1 = $rt_s(868); - if (!($this.$inLove % 10 | 0)) { - $var2 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - var$5 = $this.$worldObj; - var$6 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$7 = $this.$posY + 0.5 + Math.random() * $this.$height1; - var$8 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$9 = 0; - if (var$9 < var$5.$worldAccesses.$size0) { - var$10 = var$5.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - $ptr = 2; - continue main; - } - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - } - } - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$10, $var1, var$6, var$7, var$8, $var2, $var4, $var6); - if ($rt_suspending()) { - break main; - } - var$9 = var$9 + 1 | 0; - if (var$9 >= var$5.$worldAccesses.$size0) - return; - var$10 = var$5.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - continue main; - } - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var4, $var6, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -} -function nms_EntityAnimal_attackEntity($this, $par1Entity, $par2) { - var $var3, $var7, $var8, var$6, var$7, var$8, var$9, var$10, $var5, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();$var5 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($par1Entity instanceof nms_EntityPlayer) { - if ($par2 < 3.0) { - $var3 = $par1Entity.$posX - $this.$posX; - $this.$rotationYaw = jl_Math_atan2($par1Entity.$posZ - $this.$posZ, $var3) * 180.0 / 3.141592653589793 - 90.0; - $this.$hasAttacked = 1; - } - $var7 = $par1Entity; - if (!(nms_InventoryPlayer_getCurrentItem($var7.$inventory) !== null && $this.$isBreedingItem(nms_InventoryPlayer_getCurrentItem($var7.$inventory)))) - $this.$entityToAttack = null; - } else if ($par1Entity instanceof nms_EntityAnimal) { - $var8 = $par1Entity; - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) > 0 && nms_DataWatcher_getWatchableObjectInt($var8.$dataWatcher, 12) < 0) { - if ($par2 < 2.5) - $this.$hasAttacked = 1; - } else if ($this.$inLove > 0 && $var8.$inLove > 0) { - if ($var8.$entityToAttack === null) - $var8.$entityToAttack = $this; - if ($var8.$entityToAttack === $this && $par2 < 3.5) { - $var8.$inLove = $var8.$inLove + 1 | 0; - $this.$inLove = $this.$inLove + 1 | 0; - $this.$breeding = $this.$breeding + 1 | 0; - if (!($this.$breeding % 4 | 0)) { - $var7 = $this.$worldObj; - var$6 = $rt_s(868); - var$7 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$8 = $this.$posY + 0.5 + Math.random() * $this.$height1; - var$9 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$10 = 0.0; - $var3 = 0.0; - $var5 = 0.0; - var$12 = 0; - if (var$12 < $var7.$worldAccesses.$size0) { - $par1Entity = $var7.$worldAccesses; - if (var$12 >= 0 && var$12 < $par1Entity.$size0) { - $par1Entity = $par1Entity.$array1.data[var$12]; - $ptr = 2; - continue main; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - } - } - if ($this.$breeding != 60) - break a; - else { - $ptr = 1; - continue main; - } - } - $this.$breeding = 0; - } else { - $this.$breeding = 0; - $this.$entityToAttack = null; - } - } - } - return; - case 1: - nms_EntityAnimal_procreate($this, $var8); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle($par1Entity, var$6, var$7, var$8, var$9, var$10, $var3, $var5); - if ($rt_suspending()) { - break main; - } - var$12 = var$12 + 1 | 0; - if (var$12 >= $var7.$worldAccesses.$size0) { - if ($this.$breeding != 60) - return; - $ptr = 1; - continue main; - } - $par1Entity = $var7.$worldAccesses; - if (var$12 >= 0 && var$12 < $par1Entity.$size0) { - $par1Entity = $par1Entity.$array1.data[var$12]; - continue main; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $var3, $var7, $var8, var$6, var$7, var$8, var$9, var$10, $var5, var$12, $ptr); -} -function nms_EntityAnimal_procreate($this, $par1EntityAnimal) { - var $var2, $var3, $var4, $var6, $var8, var$7, var$8, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1EntityAnimal = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$createChild($par1EntityAnimal); - if ($var2 !== null) { - nms_EntityAgeable_setGrowingAge($this, 6000); - nms_EntityAgeable_setGrowingAge($par1EntityAnimal, 6000); - $this.$inLove = 0; - $this.$breeding = 0; - $this.$entityToAttack = null; - $par1EntityAnimal.$entityToAttack = null; - $par1EntityAnimal.$breeding = 0; - $par1EntityAnimal.$inLove = 0; - nms_EntityAgeable_setGrowingAge($var2, (-24000)); - nms_Entity_setLocationAndAngles($var2, $this.$posX, $this.$posY, $this.$posZ, $this.$rotationYaw, $this.$rotationPitch); - $var3 = 0; - while ($var3 < 7) { - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var8 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $par1EntityAnimal = $this.$worldObj; - var$7 = $rt_s(868); - var$8 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$9 = $this.$posY + 0.5 + Math.random() * $this.$height1; - var$10 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$11 = 0; - if (var$11 < $par1EntityAnimal.$worldAccesses.$size0) { - var$12 = $par1EntityAnimal.$worldAccesses; - if (var$11 >= 0 && var$11 < var$12.$size0) { - var$12 = var$12.$array1.data[var$11]; - $ptr = 1; - continue main; - } - $par1EntityAnimal = new jl_IndexOutOfBoundsException; - $par1EntityAnimal.$suppressionEnabled = 1; - $par1EntityAnimal.$writableStackTrace = 1; - $rt_throw($par1EntityAnimal); - } - $var3 = $var3 + 1 | 0; - } - $par1EntityAnimal = $this.$worldObj; - $var3 = nms_World_spawnEntityInWorld($par1EntityAnimal, $var2); - var$7 = $par1EntityAnimal.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, $var2, var$7); - if (!$var3) { - $par1EntityAnimal = $par1EntityAnimal.$entitySpawnQueue; - ju_HashMap_putImpl($par1EntityAnimal.$backingMap, $var2, $par1EntityAnimal); - } - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$12, var$7, var$8, var$9, var$10, $var4, $var6, $var8); - if ($rt_suspending()) { - break main; - } - var$11 = var$11 + 1 | 0; - while (true) { - if (var$11 < $par1EntityAnimal.$worldAccesses.$size0) { - var$12 = $par1EntityAnimal.$worldAccesses; - if (var$11 >= 0 && var$11 < var$12.$size0) { - var$12 = var$12.$array1.data[var$11]; - continue main; - } - $par1EntityAnimal = new jl_IndexOutOfBoundsException; - $par1EntityAnimal.$suppressionEnabled = 1; - $par1EntityAnimal.$writableStackTrace = 1; - $rt_throw($par1EntityAnimal); - } - $var3 = $var3 + 1 | 0; - if ($var3 >= 7) - break; - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var8 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $par1EntityAnimal = $this.$worldObj; - var$7 = $rt_s(868); - var$8 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$9 = $this.$posY + 0.5 + Math.random() * $this.$height1; - var$10 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$11 = 0; - } - $par1EntityAnimal = $this.$worldObj; - $var3 = nms_World_spawnEntityInWorld($par1EntityAnimal, $var2); - var$7 = $par1EntityAnimal.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, $var2, var$7); - if (!$var3) { - $par1EntityAnimal = $par1EntityAnimal.$entitySpawnQueue; - ju_HashMap_putImpl($par1EntityAnimal.$backingMap, $var2, $par1EntityAnimal); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityAnimal, $var2, $var3, $var4, $var6, $var8, var$7, var$8, var$9, var$10, var$11, var$12, $ptr); -} -function nms_EntityAnimal_attackEntityFrom($this, $par1DamageSource, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - $this.$fleeingTick = 60; - $this.$entityToAttack = null; - $this.$inLove = 0; - $ptr = 1; - case 1: - $tmp = nms_EntityLiving_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $ptr); -} -function nms_EntityAnimal_getBlockPathWeight($this, $par1, $par2, $par3) { - var var$4, var$5, var$6; - var$4 = nms_World_getBlockId($this.$worldObj, $par1, $par2 - 1 | 0, $par3); - nms_Block_$callClinit(); - if (var$4 == nms_Block_grass.$blockID) - var$5 = 10.0; - else { - var$6 = $this.$worldObj; - var$5 = var$6.$provider.$lightBrightnessTable.data[nms_World_getBlockLightValue_do(var$6, $par1, $par2, $par3, 1)] - 0.5; - } - return var$5; -} -function nms_EntityAnimal_findPlayerToAttack($this) { - var $var2, var$2, $var4, var$4, var$5, var$6, var$7, var$8, var$9, $var5, $var2_0, $var3, var$13; - if ($this.$fleeingTick > 0) - return null; - a: { - b: { - if ($this.$inLove > 0) { - $var2 = $this.$worldObj; - var$2 = jl_Class_getClass($this.constructor); - $var4 = $this.$boundingBox; - var$4 = $var4.$minX - 8.0; - var$5 = $var4.$minY - 8.0; - var$6 = $var4.$minZ - 8.0; - var$7 = $var4.$maxX + 8.0; - var$8 = $var4.$maxY + 8.0; - var$9 = $var4.$maxZ + 8.0; - $var4 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var4.$initialized) { - $var5 = new nms_AABBPool; - $var2_0 = new ju_ArrayList; - ju_AbstractList__init_0($var2_0); - $var2_0.$array1 = $rt_createArray(jl_Object, 10); - $var5.$listAABB = $var2_0; - $var5.$nextPoolIndex = 0; - $var5.$maxPoolIndex = 0; - $var5.$numCleans = 0; - $var5.$maxNumCleans = 300; - $var5.$numEntriesToRemove = 2000; - $var4.$value7 = $var5; - $var4.$initialized = 1; - } - $var2_0 = nms_World_selectEntitiesWithinAABB($var2, var$2, nms_AABBPool_getAABB($var4.$value7, var$4, var$5, var$6, var$7, var$8, var$9), null); - $var3 = 0; - c: { - while (true) { - if ($var3 >= $var2_0.$size0) - break b; - if ($var3 < 0) - break c; - if ($var3 >= $var2_0.$size0) - break c; - $var4 = $var2_0.$array1.data[$var3]; - if ($var4 !== $this && $var4.$inLove > 0) - break; - $var3 = $var3 + 1 | 0; - } - return $var4; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12)) { - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) <= 0) - break b; - $var2 = $this.$worldObj; - $var2_0 = jl_Class_getClass($this.constructor); - $var4 = $this.$boundingBox; - var$7 = $var4.$minX - 8.0; - var$8 = $var4.$minY - 8.0; - var$9 = $var4.$minZ - 8.0; - var$13 = $var4.$maxX + 8.0; - var$4 = $var4.$maxY + 8.0; - var$6 = $var4.$maxZ + 8.0; - $var4 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var4.$initialized) { - $var4.$value7 = nms_AABBPool__init_(300, 2000); - $var4.$initialized = 1; - } - $var2 = nms_World_getEntitiesWithinAABB($var2, $var2_0, nms_AABBPool_getAABB($var4.$value7, var$7, var$8, var$9, var$13, var$4, var$6)); - $var3 = 0; - while (true) { - if ($var3 >= $var2.$size0) - break b; - $var4 = ju_ArrayList_get($var2, $var3); - if ($var4 !== $this && nms_EntityAgeable_getGrowingAge($var4) < 0) - break; - $var3 = $var3 + 1 | 0; - } - return $var4; - } - $var2 = $this.$worldObj; - $var5 = $this.$boundingBox; - var$7 = $var5.$minX - 8.0; - var$8 = $var5.$minY - 8.0; - var$9 = $var5.$minZ - 8.0; - var$13 = $var5.$maxX + 8.0; - var$4 = $var5.$maxY + 8.0; - var$6 = $var5.$maxZ + 8.0; - $var5 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var5.$initialized) { - $var2_0 = new nms_AABBPool; - var$2 = new ju_ArrayList; - ju_AbstractList__init_0(var$2); - var$2.$array1 = $rt_createArray(jl_Object, 10); - $var2_0.$listAABB = var$2; - $var2_0.$nextPoolIndex = 0; - $var2_0.$maxPoolIndex = 0; - $var2_0.$numCleans = 0; - $var2_0.$maxNumCleans = 300; - $var2_0.$numEntriesToRemove = 2000; - $var5.$value7 = $var2_0; - $var5.$initialized = 1; - } - $var2 = nms_World_selectEntitiesWithinAABB($var2, $rt_cls(nms_EntityPlayer), nms_AABBPool_getAABB($var5.$value7, var$7, var$8, var$9, var$13, var$4, var$6), null); - $var3 = 0; - while (true) { - if ($var3 >= $var2.$size0) - break b; - if ($var3 < 0) - break a; - if ($var3 >= $var2.$size0) - break a; - $var5 = $var2.$array1.data[$var3]; - if (nms_InventoryPlayer_getCurrentItem($var5.$inventory) !== null && $this.$isBreedingItem(nms_InventoryPlayer_getCurrentItem($var5.$inventory))) - break; - $var3 = $var3 + 1 | 0; - } - return $var5; - } - return null; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -} -function nms_EntityAnimal_getTalkInterval($this) { - return 120; -} -function nms_EntityAnimal_canDespawn($this) { - return 0; -} -function nms_EntityAnimal_getExperiencePoints($this, $par1EntityPlayer) { - return 1 + (Math.random() * 3.0 | 0) | 0; -} -function nms_EntityAnimal_isBreedingItem($this, $par1ItemStack) { - var var$2; - var$2 = $par1ItemStack.$itemID0; - nms_Item_$callClinit(); - return var$2 != nms_Item_wheat.$itemID ? 0 : 1; -} -function nms_EntityAnimal_interact($this, $par1EntityPlayer) { - var $var2, $var3, var$4, var$5, $var4, $var6, $var8, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var2 !== null && $this.$isBreedingItem($var2) && !nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) && $this.$inLove <= 0) { - if (!$par1EntityPlayer.$capabilities.$isCreativeMode) { - $var2.$stackSize = $var2.$stackSize - 1 | 0; - if ($var2.$stackSize <= 0) { - $var2 = $par1EntityPlayer.$inventory; - $var3 = $par1EntityPlayer.$inventory.$currentItem; - $par1EntityPlayer = null; - var$4 = $var2.$mainInventory; - var$5 = var$4.data.length; - if ($var3 >= var$5) { - $var3 = $var3 - var$5 | 0; - var$4 = $var2.$armorInventory; - } - var$4.data[$var3] = $par1EntityPlayer; - } - } - $this.$inLove = 600; - $this.$entityToAttack = null; - $var3 = 0; - while ($var3 < 7) { - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var8 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var2 = $this.$worldObj; - var$9 = $rt_s(868); - var$10 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$11 = $this.$posY + 0.5 + Math.random() * $this.$height1; - var$12 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$5 = 0; - if (var$5 < $var2.$worldAccesses.$size0) { - $par1EntityPlayer = $var2.$worldAccesses; - if (var$5 >= 0 && var$5 < $par1EntityPlayer.$size0) { - $par1EntityPlayer = $par1EntityPlayer.$array1.data[var$5]; - $ptr = 2; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - } - $var3 = $var3 + 1 | 0; - } - return 1; - } - $ptr = 1; - case 1: - $tmp = nms_EntityAgeable_interact($this, $par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - $var3 = $tmp; - return $var3; - case 2: - nms_RenderGlobal_doSpawnParticle($par1EntityPlayer, var$9, var$10, var$11, var$12, $var4, $var6, $var8); - if ($rt_suspending()) { - break main; - } - var$5 = var$5 + 1 | 0; - while (true) { - if (var$5 < $var2.$worldAccesses.$size0) { - $par1EntityPlayer = $var2.$worldAccesses; - if (var$5 >= 0 && var$5 < $par1EntityPlayer.$size0) { - $par1EntityPlayer = $par1EntityPlayer.$array1.data[var$5]; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - } - $var3 = $var3 + 1 | 0; - if ($var3 >= 7) - break; - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var8 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var2 = $this.$worldObj; - var$9 = $rt_s(868); - var$10 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$11 = $this.$posY + 0.5 + Math.random() * $this.$height1; - var$12 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$5 = 0; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $var2, $var3, var$4, var$5, $var4, $var6, $var8, var$9, var$10, var$11, var$12, $ptr); -} -function nms_EntityAnimal_isInLove($this) { - return $this.$inLove <= 0 ? 0 : 1; -} -function nms_EntityPig() { - nms_EntityAnimal.call(this); -} -function nms_EntityPig__init_0() { - var var_0 = new nms_EntityPig(); - nms_EntityPig__init_(var_0); - return var_0; -} -function nms_EntityPig__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$field_98056_d = (-1.0); - $this.$breeding = 0; - nms_EntityAgeable_setSize($this, 0.8999999761581421, 0.8999999761581421); -} -function nms_EntityPig_isAIEnabled($this) { - return 1; -} -function nms_EntityPig_getMaxHealth($this) { - return 10; -} -function nms_EntityPig_updateAITasks($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: - $ptr = 1; - case 1: - nms_EntityLiving_updateAITasks($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_EntityPig_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 0; - nms_DataWatcher_addObject(var$1, 12, var$2); - var$2 = $this.$dataWatcher; - var$1 = new jl_Byte; - var$1.$value4 = 0; - nms_DataWatcher_addObject(var$2, 16, var$1); -} -function nms_EntityPig_getLivingSound($this) { - return $rt_s(1190); -} -function nms_EntityPig_getHurtSound($this) { - return $rt_s(1190); -} -function nms_EntityPig_getDeathSound($this) { - return $rt_s(1191); -} -function nms_EntityPig_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1192), 0.15000000596046448, 1.0); -} -function nms_EntityPig_interact($this, $par1EntityPlayer) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $tmp = nms_EntityAnimal_interact($this, $par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - var$2 = $tmp; - if (var$2) - return 1; - var$2 = !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; - a: { - if (var$2 && !$this.$worldObj.$isRemote) { - if ($this.$riddenByEntity === null) - break a; - if ($this.$riddenByEntity === $par1EntityPlayer) - break a; - } - return 0; - } - nms_EntityPlayer_mountEntity($par1EntityPlayer, $this); - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, var$2, $ptr); -} -function nms_EntityPig_getDropItemId($this) { - var var$1; - if (!($this.$fire <= 0 && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 1) ? 0 : 1) ? 0 : 1)) { - nms_Item_$callClinit(); - var$1 = nms_Item_porkRaw.$itemID; - } else { - nms_Item_$callClinit(); - var$1 = nms_Item_porkCooked.$itemID; - } - return var$1; -} -function nms_EntityPig_dropFewItems($this, $par1, $par2) { - var $var3, $var4, var$5, var$6, var$7, var$8; - $var3 = (Math.random() * 3.0 | 0) + 1 | 0; - $par1 = 1 + $par2 | 0; - $var3 = $var3 + (Math.random() * $par1 | 0) | 0; - $var4 = 0; - while ($var4 < $var3) { - if (!($this.$fire <= 0 && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 1) ? 0 : 1) ? 0 : 1)) { - nms_Item_$callClinit(); - var$5 = nms_Item_porkRaw.$itemID; - var$6 = new nms_ItemStack; - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = var$5; - var$6.$stackSize = 1; - var$6.$itemDamage = 0; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - var$7 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$7.$dataWatcher, 10, var$6); - nms_DataWatcher_setObjectWatched(var$7.$dataWatcher, 10); - var$7.$delayBeforeCanPickup = 10; - var$6 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$6, var$7); - var$8 = var$6.$entityList; - ju_HashMap_putImpl(var$8.$backingMap, var$7, var$8); - if (!$par1) { - var$8 = var$6.$entitySpawnQueue; - ju_HashMap_putImpl(var$8.$backingMap, var$7, var$8); - } - } else { - nms_Item_$callClinit(); - $par1 = nms_Item_porkCooked.$itemID; - var$8 = new nms_ItemStack; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = $par1; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - var$7 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$7.$dataWatcher, 10, var$8); - nms_DataWatcher_setObjectWatched(var$7.$dataWatcher, 10); - var$7.$delayBeforeCanPickup = 10; - var$8 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$8, var$7); - var$6 = var$8.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, var$7, var$6); - if (!$par1) { - var$8 = var$8.$entitySpawnQueue; - ju_HashMap_putImpl(var$8.$backingMap, var$7, var$8); - } - } - $var4 = $var4 + 1 | 0; - } - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1) { - nms_Item_$callClinit(); - $par1 = nms_Item_saddle.$itemID; - var$8 = new nms_ItemStack; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = $par1; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - var$7 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$7.$dataWatcher, 10, var$8); - nms_DataWatcher_setObjectWatched(var$7.$dataWatcher, 10); - var$7.$delayBeforeCanPickup = 10; - var$8 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$8, var$7); - var$6 = var$8.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, var$7, var$6); - if (!$par1) { - var$8 = var$8.$entitySpawnQueue; - ju_HashMap_putImpl(var$8.$backingMap, var$7, var$8); - } - } -} -function nms_EntityPig_getSaddled($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; -} -function nms_EntityPig_setSaddled($this, $par1) { - var var$2, var$3; - if (!$par1) { - var$2 = $this.$dataWatcher; - var$3 = new jl_Byte; - var$3.$value4 = 0; - nms_DataWatcher_updateObject(var$2, 16, var$3); - } else { - var$2 = $this.$dataWatcher; - var$3 = new jl_Byte; - var$3.$value4 = 1; - nms_DataWatcher_updateObject(var$2, 16, var$3); - } -} -function nms_EntityPig_onStruckByLightning($this, $par1EntityLightningBolt) { - return; -} -function nms_EntityPig_fall($this, $par1) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_fall($this, $par1); - if ($rt_suspending()) { - break main; - } - if ($par1 > 5.0 && $this.$riddenByEntity instanceof nms_EntityPlayer) { - var$2 = $this.$riddenByEntity; - nms_AchievementList_$callClinit(); - var$2.$addStat(nms_AchievementList_flyPig, 1); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, $ptr); -} -function nms_EntityPig_spawnBabyAnimal($this, $par1EntityAgeable) { - var $p; - $p = new nms_EntityPig; - nms_EntityLiving__init_0($p); - $p.$hasAttacked = 0; - $p.$fleeingTick = 0; - $p.$field_98056_d = (-1.0); - $p.$breeding = 0; - nms_EntityAgeable_setSize($p, 0.8999999761581421, 0.8999999761581421); - $par1EntityAgeable = $this.$worldObj; - $p.$worldObj = $par1EntityAgeable; - $p.$dimension = $par1EntityAgeable.$provider.$dimensionId; - return $p; -} -function nms_EntityPig_isBreedingItem($this, $par1ItemStack) { - var var$2; - a: { - if ($par1ItemStack !== null) { - var$2 = $par1ItemStack.$itemID0; - nms_Item_$callClinit(); - if (var$2 == nms_Item_carrot.$itemID) { - var$2 = 1; - break a; - } - } - var$2 = 0; - } - return var$2; -} -function nms_EntityPig_createChild($this, $par1EntityAgeable) { - var var$2; - $par1EntityAgeable = new nms_EntityPig; - nms_EntityLiving__init_0($par1EntityAgeable); - $par1EntityAgeable.$hasAttacked = 0; - $par1EntityAgeable.$fleeingTick = 0; - $par1EntityAgeable.$field_98056_d = (-1.0); - $par1EntityAgeable.$breeding = 0; - nms_EntityAgeable_setSize($par1EntityAgeable, 0.8999999761581421, 0.8999999761581421); - var$2 = $this.$worldObj; - $par1EntityAgeable.$worldObj = var$2; - $par1EntityAgeable.$dimension = var$2.$provider.$dimensionId; - return $par1EntityAgeable; -} -function nms_RenderPig() { - nms_RenderLiving.call(this); -} -var nms_RenderPig_saddle = null; -var nms_RenderPig_entityTexture = null; -function nms_RenderPig__init_(var_0, var_1, var_2) { - var var_3 = new nms_RenderPig(); - nms_RenderPig__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_RenderPig__init_0($this, $par1ModelBase, $par2ModelBase, $par3) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = $par1ModelBase; - $this.$shadowSize = $par3; - $this.$renderPassModel = $par2ModelBase; -} -function nms_RenderPig_renderSaddledPig($this, $par1EntityPig, $par2, $par3) { - if (!$par2 && (!(nms_DataWatcher_getWatchableObjectByte($par1EntityPig.$dataWatcher, 16) & 1) ? 0 : 1)) { - nle_TextureLocation_bindTexture(nms_RenderPig_saddle); - return 1; - } - return (-1); -} -function nms_RenderPig_renderLivingPig($this, $par1EntityPig, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityPig = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityPig, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPig, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderPig_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - $par1EntityLiving = $par1EntityLiving; - if (!$par2 && (!(nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 16) & 1) ? 0 : 1)) { - nle_TextureLocation_bindTexture(nms_RenderPig_saddle); - $par2 = 1; - } else - $par2 = (-1); - return $par2; -} -function nms_RenderPig_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderPig_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderPig_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderPig_entityTexture); -} -function nms_RenderPig__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1193); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderPig_saddle = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1194); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderPig_entityTexture = var$1; -} -function nms_ModelBase() { - var a = this; jl_Object.call(a); - a.$onGround1 = 0.0; - a.$isRiding = 0; - a.$boxList = null; - a.$isChild0 = 0; - a.$modelTextureMap = null; - a.$textureWidth = 0; - a.$textureHeight = 0; -} -function nms_ModelBase__init_() { - var var_0 = new nms_ModelBase(); - nms_ModelBase__init_0(var_0); - return var_0; -} -function nms_ModelBase__init_0($this) { - var var$1; - $this.$isRiding = 0; - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$boxList = var$1; - $this.$isChild0 = 1; - $this.$modelTextureMap = ju_HashMap__init_1(16, 0.75); - $this.$textureWidth = 64; - $this.$textureHeight = 32; -} -function nms_ModelBase_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - return; -} -function nms_ModelBase_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - return; -} -function nms_ModelBase_getRandomModelBox($this, $par1Random) { - var var$2, var$3; - $par1Random = $this.$boxList; - var$2 = $this.$boxList.$size0; - var$3 = Math.random() * var$2 | 0; - if (var$3 >= 0 && var$3 < $par1Random.$size0) - return $par1Random.$array1.data[var$3]; - $par1Random = new jl_IndexOutOfBoundsException; - $par1Random.$suppressionEnabled = 1; - $par1Random.$writableStackTrace = 1; - $rt_throw($par1Random); -} -function nms_ModelBase_setTextureOffset($this, $par1Str, $par2, $par3) { - var var$4, var$5; - var$4 = $this.$modelTextureMap; - var$5 = new nms_TextureOffset; - var$5.$textureOffsetX = $par2; - var$5.$textureOffsetY = $par3; - ju_HashMap_putImpl(var$4, $par1Str, var$5); -} -function nms_ModelBase_getTextureOffset($this, $par1Str) { - var var$2, var$3; - var$2 = $this.$modelTextureMap; - if ($par1Str !== null) { - var$3 = jl_String_hashCode($par1Str); - $par1Str = ju_HashMap_findNonNullKeyEntry(var$2, $par1Str, var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Str = var$2.$elementData.data[0]; - while ($par1Str !== null && $par1Str.$key !== null) { - $par1Str = $par1Str.$next1; - } - } - return $par1Str === null ? null : $par1Str.$value0; -} -function nms_ModelQuadruped() { - var a = this; nms_ModelBase.call(a); - a.$head = null; - a.$body = null; - a.$leg1 = null; - a.$leg2 = null; - a.$leg3 = null; - a.$leg4 = null; - a.$field_78145_g = 0.0; - a.$field_78151_h = 0.0; -} -function nms_ModelQuadruped__init_(var_0, var_1) { - var var_2 = new nms_ModelQuadruped(); - nms_ModelQuadruped__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ModelQuadruped__init_0($this, $par1, $par2) { - var var$3, var$4, var$5, var$6; - nms_ModelBase__init_0($this); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 0; - $this.$head = var$3; - $this.$field_78145_g = 8.0; - $this.$field_78151_h = 4.0; - var$3 = $this.$head; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-4.0), (-4.0), (-8.0), 8, 8, 8, $par2)); - var$3 = $this.$head; - var$4 = 18 - $par1 | 0; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = var$4; - var$3.$rotationPointZ = (-6.0); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 28; - var$3.$textureOffsetY0 = 8; - $this.$body = var$3; - var$3 = $this.$body; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-5.0), (-10.0), (-7.0), 10, 16, 8, $par2)); - var$3 = $this.$body; - var$4 = 17 - $par1 | 0; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = var$4; - var$3.$rotationPointZ = 2.0; - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 16; - $this.$leg1 = var$3; - var$3 = $this.$leg1; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, $par1, 4, $par2)); - var$3 = $this.$leg1; - var$4 = 24 - $par1 | 0; - var$3.$rotationPointX = (-3.0); - var$3.$rotationPointY = var$4; - var$3.$rotationPointZ = 7.0; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 16; - $this.$leg2 = var$5; - var$6 = $this.$leg2; - ju_ArrayList_add(var$6.$cubeList, nms_ModelBox__init_(var$6, var$6.$textureOffsetX0, var$6.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, $par1, 4, $par2)); - var$3 = $this.$leg2; - var$3.$rotationPointX = 3.0; - var$3.$rotationPointY = var$4; - var$3.$rotationPointZ = 7.0; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 16; - $this.$leg3 = var$5; - var$6 = $this.$leg3; - ju_ArrayList_add(var$6.$cubeList, nms_ModelBox__init_(var$6, var$6.$textureOffsetX0, var$6.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, $par1, 4, $par2)); - var$3 = $this.$leg3; - var$3.$rotationPointX = (-3.0); - var$3.$rotationPointY = var$4; - var$3.$rotationPointZ = (-5.0); - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 16; - $this.$leg4 = var$5; - var$6 = $this.$leg4; - ju_ArrayList_add(var$6.$cubeList, nms_ModelBox__init_(var$6, var$6.$textureOffsetX0, var$6.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, $par1, 4, $par2)); - var$3 = $this.$leg4; - var$3.$rotationPointX = 3.0; - var$3.$rotationPointY = var$4; - var$3.$rotationPointZ = (-5.0); -} -function nms_ModelQuadruped_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, var$9, var$10, var$11; - $this.$setRotationAngles($par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - if (!$this.$isChild0) { - nms_ModelRenderer_render($this.$head, $par7); - nms_ModelRenderer_render($this.$body, $par7); - nms_ModelRenderer_render($this.$leg1, $par7); - nms_ModelRenderer_render($this.$leg2, $par7); - nms_ModelRenderer_render($this.$leg3, $par7); - nms_ModelRenderer_render($this.$leg4, $par7); - } else { - nleg_EaglerAdapterGL30_glPushMatrix(); - $par3 = $this.$field_78145_g * $par7; - $par4 = $this.$field_78151_h * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = $par4; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - nms_ModelRenderer_render($this.$head, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.5; - $par1Entity.$y = 0.5; - $par1Entity.$z = 0.5; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$10 = jl_System_errCache; - var$8 = var$10.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$11 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$11, var$11 + 1 | 0); - var$8.$buffer.data[var$11] = 10; - ji_PrintStream_printSB(var$10); - } - $par3 = 24.0 * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = 0.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - nms_ModelRenderer_render($this.$body, $par7); - nms_ModelRenderer_render($this.$leg1, $par7); - nms_ModelRenderer_render($this.$leg2, $par7); - nms_ModelRenderer_render($this.$leg3, $par7); - nms_ModelRenderer_render($this.$leg4, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_ModelQuadruped_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var var$8, var$9, var$10; - $this.$head.$rotateAngleX = $par5 / 57.2957763671875; - $this.$head.$rotateAngleY = $par4 / 57.2957763671875; - $this.$body.$rotateAngleX = 1.5707963705062866; - $par7Entity = $this.$leg1; - $par3 = $par1 * 0.6661999821662903; - var$8 = nms_MathHelper_SIN_TABLE.data; - var$9 = ($par3 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par7Entity.$rotateAngleX = var$8[var$9] * 1.399999976158142 * $par2; - $par7Entity = $this.$leg2; - $par1 = $par3 + 3.1415927410125732; - var$8 = nms_MathHelper_SIN_TABLE.data; - var$10 = ($par1 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par7Entity.$rotateAngleX = var$8[var$10] * 1.399999976158142 * $par2; - $this.$leg3.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[var$10] * 1.399999976158142 * $par2; - $this.$leg4.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[var$9] * 1.399999976158142 * $par2; -} -function nms_ModelPig() { - nms_ModelQuadruped.call(this); -} -function nms_ModelPig__init_0() { - var var_0 = new nms_ModelPig(); - nms_ModelPig__init_(var_0); - return var_0; -} -function nms_ModelPig__init_1(var_0) { - var var_1 = new nms_ModelPig(); - nms_ModelPig__init_2(var_1, var_0); - return var_1; -} -function nms_ModelPig__init_($this) { - nms_ModelPig__init_2($this, 0.0); -} -function nms_ModelPig__init_2($this, $par1) { - var var$2; - nms_ModelQuadruped__init_0($this, 6, $par1); - var$2 = $this.$head; - var$2.$textureOffsetX0 = 16; - var$2.$textureOffsetY0 = 16; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-2.0), 0.0, (-9.0), 4, 3, 1, $par1)); - $this.$field_78145_g = 4.0; -} -function nms_EntitySheep() { - var a = this; nms_EntityAnimal.call(a); - a.$field_90016_e = null; - a.$sheepTimer = 0; -} -var nms_EntitySheep_fleeceColorTable = null; -function nms_EntitySheep__init_0() { - var var_0 = new nms_EntitySheep(); - nms_EntitySheep__init_(var_0); - return var_0; -} -function nms_EntitySheep__init_($this) { - var var$1, var$2, var$3; - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$field_98056_d = (-1.0); - $this.$breeding = 0; - var$1 = new nms_InventoryCrafting; - var$2 = new nms_ContainerSheep; - nms_Container__init_(var$2); - var$2.$field_90034_a = $this; - var$1.$stackList = $rt_createArray(nms_ItemStack, 2); - var$1.$eventHandler = var$2; - var$1.$inventoryWidth = 2; - $this.$field_90016_e = var$1; - nms_EntityAgeable_setSize($this, 0.8999999761581421, 1.2999999523162842); - var$1 = $this.$field_90016_e; - var$2 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_dyePowder.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$1.$stackList.data[0] = var$2; - var$1.$eventHandler.$onCraftMatrixChanged(var$1); - var$1 = $this.$field_90016_e; - var$2 = new nms_ItemStack; - var$3 = nms_Item_dyePowder.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$1.$stackList.data[1] = var$2; - var$1.$eventHandler.$onCraftMatrixChanged(var$1); -} -function nms_EntitySheep_isAIEnabled($this) { - return 1; -} -function nms_EntitySheep_updateAITasks($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: - $ptr = 1; - case 1: - nms_EntityLiving_updateAITasks($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_EntitySheep_onLivingUpdate($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.$worldObj.$isRemote) { - var$1 = $this.$sheepTimer - 1 | 0; - if (0 > var$1) - var$1 = 0; - $this.$sheepTimer = var$1; - } - $ptr = 1; - case 1: - nms_EntityAnimal_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -} -function nms_EntitySheep_getMaxHealth($this) { - return 8; -} -function nms_EntitySheep_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 0; - nms_DataWatcher_addObject(var$1, 12, var$2); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); -} -function nms_EntitySheep_dropFewItems($this, $par1, $par2) { - var var$3, var$4, var$5, var$6; - if (!(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 16) ? 0 : 1)) { - var$3 = new nms_ItemStack; - nms_Block_$callClinit(); - $par2 = nms_Block_cloth.$blockID; - var$4 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 15; - var$3.$stackSize = 0; - var$3.$itemFrame = null; - var$3.$itemID0 = $par2; - var$3.$stackSize = 1; - var$3.$itemDamage = var$4; - if (var$3.$itemDamage < 0) - var$3.$itemDamage = 0; - var$5 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$5.$dataWatcher, 10, var$3); - nms_DataWatcher_setObjectWatched(var$5.$dataWatcher, 10); - var$5.$delayBeforeCanPickup = 10; - var$3 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$3, var$5); - var$6 = var$3.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, var$5, var$6); - if (!$par1) { - var$3 = var$3.$entitySpawnQueue; - ju_HashMap_putImpl(var$3.$backingMap, var$5, var$3); - } - } -} -function nms_EntitySheep_getDropItemId($this) { - nms_Block_$callClinit(); - return nms_Block_cloth.$blockID; -} -function nms_EntitySheep_handleHealthUpdate($this, $par1) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 == 10) { - $this.$sheepTimer = 40; - return; - } - $ptr = 1; - case 1: - nms_EntityLiving_handleHealthUpdate($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $ptr); -} -function nms_EntitySheep_func_70894_j($this, $par1) { - return $this.$sheepTimer <= 0 ? 0.0 : $this.$sheepTimer >= 4 && $this.$sheepTimer <= 36 ? 1.0 : $this.$sheepTimer < 4 ? ($this.$sheepTimer - $par1) / 4.0 : -(($this.$sheepTimer - 40 | 0) - $par1) / 4.0; -} -function nms_EntitySheep_func_70890_k($this, $par1) { - if ($this.$sheepTimer > 4 && $this.$sheepTimer <= 36) { - $par1 = (($this.$sheepTimer - 4 | 0) - $par1) / 32.0 * 28.700000762939453; - return 0.6283185482025146 + 0.21991150081157684 * nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - } - return $this.$sheepTimer > 0 ? 0.6283185482025146 : $this.$rotationPitch / 57.2957763671875; -} -function nms_EntitySheep_interact($this, $par1EntityPlayer) { - var $var2, var$3, $var3, $var4, var$6, var$7, var$8, $var5, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();$var5 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var2 !== null) { - var$3 = $var2.$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_shears.$itemID && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 16) ? 0 : 1) && !(nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0 ? 0 : 1)) { - a: { - if (!$this.$worldObj.$isRemote) { - nms_EntitySheep_setSheared($this, 1); - $var3 = 1 + (Math.random() * 3.0 | 0) | 0; - $var4 = 0; - while (true) { - if ($var4 >= $var3) - break a; - var$6 = new nms_ItemStack; - nms_Block_$callClinit(); - var$7 = nms_Block_cloth.$blockID; - var$8 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 15; - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = var$7; - var$6.$stackSize = 1; - var$6.$itemDamage = var$8; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - $var5 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 1.0, $this.$posZ); - nms_DataWatcher_updateObject($var5.$dataWatcher, 10, var$6); - nms_DataWatcher_setObjectWatched($var5.$dataWatcher, 10); - $var5.$delayBeforeCanPickup = 10; - var$10 = $this.$worldObj; - var$3 = nms_World_spawnEntityInWorld(var$10, $var5); - var$6 = var$10.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, $var5, var$6); - if (!var$3) { - var$10 = var$10.$entitySpawnQueue; - ju_HashMap_putImpl(var$10.$backingMap, $var5, var$10); - } - $var5.$motionY = $var5.$motionY + Math.random() * 0.05000000074505806; - $var5.$motionX = $var5.$motionX + (Math.random() - Math.random()) * 0.10000000149011612; - $var5.$motionZ = $var5.$motionZ + (Math.random() - Math.random()) * 0.10000000149011612; - $var4 = $var4 + 1 | 0; - } - } - } - var$3 = 1; - $ptr = 2; - continue main; - } - } - $ptr = 1; - case 1: - $tmp = nms_EntityAnimal_interact($this, $par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - var$3 = $tmp; - return var$3; - case 2: - nms_ItemStack_damageItem($var2, var$3, $par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1195), 1.0, 1.0); - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $var2, var$3, $var3, $var4, var$6, var$7, var$8, $var5, var$10, $ptr); -} -function nms_EntitySheep_getLivingSound($this) { - return $rt_s(1196); -} -function nms_EntitySheep_getHurtSound($this) { - return $rt_s(1196); -} -function nms_EntitySheep_getDeathSound($this) { - return $rt_s(1196); -} -function nms_EntitySheep_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1197), 0.15000000596046448, 1.0); -} -function nms_EntitySheep_getFleeceColor($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 15; -} -function nms_EntitySheep_setFleeceColor($this, $par1) { - var $var2, var$3, var$4; - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - var$3 = $this.$dataWatcher; - $par1 = ($var2 & 240 | $par1 & 15) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $par1; - nms_DataWatcher_updateObject(var$3, 16, var$4); -} -function nms_EntitySheep_getSheared($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 16) ? 0 : 1; -} -function nms_EntitySheep_setSheared($this, $par1) { - var $var2, var$3, var$4; - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if (!$par1) { - var$3 = $this.$dataWatcher; - $par1 = ($var2 & (-17)) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $par1; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } else { - var$3 = $this.$dataWatcher; - $var2 = ($var2 | 16) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $var2; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } -} -function nms_EntitySheep_getRandomFleeceColor($par0Random) { - var $var1; - $var1 = Math.random() * 100.0 | 0; - return $var1 < 5 ? 15 : $var1 < 10 ? 7 : $var1 < 15 ? 8 : $var1 < 18 ? 12 : Math.random() * 500.0 | 0 ? 0 : 6; -} -function nms_EntitySheep_func_90015_b($this, $par1EntityAgeable) { - var $var2, $var3, $var4, var$5; - $var2 = $par1EntityAgeable; - $var3 = nms_EntitySheep__init_0(); - $par1EntityAgeable = $this.$worldObj; - $var3.$worldObj = $par1EntityAgeable; - $var3.$dimension = $par1EntityAgeable.$provider.$dimensionId; - $var4 = 15 - nms_EntitySheep_func_90014_a($this, $this, $var2) | 0; - var$5 = nms_DataWatcher_getWatchableObjectByte($var3.$dataWatcher, 16); - $par1EntityAgeable = $var3.$dataWatcher; - $var4 = (var$5 & 240 | $var4 & 15) << 24 >> 24; - $var2 = new jl_Byte; - $var2.$value4 = $var4; - nms_DataWatcher_updateObject($par1EntityAgeable, 16, $var2); - return $var3; -} -function nms_EntitySheep_initCreature($this) { - var var$1, var$2, var$3, var$4; - var$1 = nms_EntitySheep_getRandomFleeceColor($this.$worldObj.$rand); - var$2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - var$3 = $this.$dataWatcher; - var$1 = (var$2 & 240 | var$1 & 15) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = var$1; - nms_DataWatcher_updateObject(var$3, 16, var$4); -} -function nms_EntitySheep_func_90014_a($this, $par1EntityAnimal, $par2EntityAnimal) { - var var$3, $var3, $var6, $var5; - var$3 = $par1EntityAnimal; - $var3 = 15 - (nms_DataWatcher_getWatchableObjectByte(var$3.$dataWatcher, 16) & 15) | 0; - $var6 = 15 - (nms_DataWatcher_getWatchableObjectByte($par2EntityAnimal.$dataWatcher, 16) & 15) | 0; - $par1EntityAnimal = $this.$field_90016_e; - $par1EntityAnimal = 0 >= $par1EntityAnimal.$stackList.data.length ? null : $par1EntityAnimal.$stackList.data[0]; - $par1EntityAnimal.$itemDamage = $var3; - if ($par1EntityAnimal.$itemDamage < 0) - $par1EntityAnimal.$itemDamage = 0; - $par1EntityAnimal = $this.$field_90016_e; - $par1EntityAnimal = 1 >= $par1EntityAnimal.$stackList.data.length ? null : $par1EntityAnimal.$stackList.data[1]; - $par1EntityAnimal.$itemDamage = $var6; - if ($par1EntityAnimal.$itemDamage < 0) - $par1EntityAnimal.$itemDamage = 0; - a: { - nms_CraftingManager_$callClinit(); - $var5 = nms_CraftingManager_findMatchingRecipe(nms_CraftingManager_instance, $this.$field_90016_e, var$3.$worldObj); - if ($var5 !== null) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var5.$itemID0].$itemID == nms_Item_dyePowder.$itemID) { - $var6 = $var5.$itemDamage; - break a; - } - } - if (ju_Random_next($this.$worldObj.$rand, 32) % 2 | 0 ? 0 : 1) - $var6 = $var3; - } - return $var6; -} -function nms_EntitySheep_createChild($this, $par1EntityAgeable) { - var var$2, var$3, var$4, var$5; - $par1EntityAgeable = $par1EntityAgeable; - var$2 = nms_EntitySheep__init_0(); - var$3 = $this.$worldObj; - var$2.$worldObj = var$3; - var$2.$dimension = var$3.$provider.$dimensionId; - var$4 = 15 - nms_EntitySheep_func_90014_a($this, $this, $par1EntityAgeable) | 0; - var$5 = nms_DataWatcher_getWatchableObjectByte(var$2.$dataWatcher, 16); - $par1EntityAgeable = var$2.$dataWatcher; - var$4 = (var$5 & 240 | var$4 & 15) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = var$4; - nms_DataWatcher_updateObject($par1EntityAgeable, 16, var$3); - return var$2; -} -function nms_EntitySheep__clinit_() { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createArray($rt_arraycls($rt_floatcls()), 16); - var$2 = var$1.data; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 1.0; - var$4[1] = 1.0; - var$4[2] = 1.0; - var$2[0] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.8500000238418579; - var$4[1] = 0.5; - var$4[2] = 0.20000000298023224; - var$2[1] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.699999988079071; - var$4[1] = 0.30000001192092896; - var$4[2] = 0.8500000238418579; - var$2[2] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.4000000059604645; - var$4[1] = 0.6000000238418579; - var$4[2] = 0.8500000238418579; - var$2[3] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.8999999761581421; - var$4[1] = 0.8999999761581421; - var$4[2] = 0.20000000298023224; - var$2[4] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.5; - var$4[1] = 0.800000011920929; - var$4[2] = 0.10000000149011612; - var$2[5] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.949999988079071; - var$4[1] = 0.5; - var$4[2] = 0.6499999761581421; - var$2[6] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.30000001192092896; - var$4[1] = 0.30000001192092896; - var$4[2] = 0.30000001192092896; - var$2[7] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.6000000238418579; - var$4[1] = 0.6000000238418579; - var$4[2] = 0.6000000238418579; - var$2[8] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.30000001192092896; - var$4[1] = 0.5; - var$4[2] = 0.6000000238418579; - var$2[9] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.5; - var$4[1] = 0.25; - var$4[2] = 0.699999988079071; - var$2[10] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.20000000298023224; - var$4[1] = 0.30000001192092896; - var$4[2] = 0.699999988079071; - var$2[11] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.4000000059604645; - var$4[1] = 0.30000001192092896; - var$4[2] = 0.20000000298023224; - var$2[12] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.4000000059604645; - var$4[1] = 0.5; - var$4[2] = 0.20000000298023224; - var$2[13] = var$3; - var$3 = $rt_createFloatArray(3); - var$4 = var$3.data; - var$4[0] = 0.6000000238418579; - var$4[1] = 0.20000000298023224; - var$4[2] = 0.20000000298023224; - var$2[14] = var$3; - var$4 = $rt_createFloatArray(3); - var$3 = var$4.data; - var$3[0] = 0.10000000149011612; - var$3[1] = 0.10000000149011612; - var$3[2] = 0.10000000149011612; - var$2[15] = var$4; - nms_EntitySheep_fleeceColorTable = var$1; -} -function nms_RenderSheep() { - nms_RenderLiving.call(this); -} -var nms_RenderSheep_tex_fur = null; -var nms_RenderSheep_entityTexture = null; -function nms_RenderSheep__init_(var_0, var_1, var_2) { - var var_3 = new nms_RenderSheep(); - nms_RenderSheep__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_RenderSheep__init_0($this, $par1ModelBase, $par2ModelBase, $par3) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = $par1ModelBase; - $this.$shadowSize = $par3; - $this.$renderPassModel = $par2ModelBase; -} -function nms_RenderSheep_setWoolColorAndRender($this, $par1EntitySheep, $par2, $par3) { - var $var5, var$5, $var4; - if (!$par2 && !(!(nms_DataWatcher_getWatchableObjectByte($par1EntitySheep.$dataWatcher, 16) & 16) ? 0 : 1)) { - nle_TextureLocation_bindTexture(nms_RenderSheep_tex_fur); - $var5 = nms_DataWatcher_getWatchableObjectByte($par1EntitySheep.$dataWatcher, 16) & 15; - $par3 = 1.0 * nms_EntitySheep_fleeceColorTable.data[$var5].data[0]; - var$5 = 1.0 * nms_EntitySheep_fleeceColorTable.data[$var5].data[1]; - $var4 = 1.0 * nms_EntitySheep_fleeceColorTable.data[$var5].data[2]; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = $par3; - nleg_EaglerAdapterGL30_colorG = var$5; - nleg_EaglerAdapterGL30_colorB = $var4; - nleg_EaglerAdapterGL30_colorA = 1.0; - return 1; - } - return (-1); -} -function nms_RenderSheep_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderSheep_setWoolColorAndRender($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderSheep_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderSheep_entityTexture); -} -function nms_RenderSheep__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1198); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSheep_tex_fur = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1199); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSheep_entityTexture = var$1; -} -function nms_ModelSheep2() { - nms_ModelQuadruped.call(this); - this.$field_78153_i = 0.0; -} -function nms_ModelSheep2__init_0() { - var var_0 = new nms_ModelSheep2(); - nms_ModelSheep2__init_(var_0); - return var_0; -} -function nms_ModelSheep2__init_($this) { - var var$1; - nms_ModelQuadruped__init_0($this, 12, 0.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - $this.$head = var$1; - var$1 = $this.$head; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-3.0), (-4.0), (-6.0), 6, 6, 8, 0.0)); - var$1 = $this.$head; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 6.0; - var$1.$rotationPointZ = (-8.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 28; - var$1.$textureOffsetY0 = 8; - $this.$body = var$1; - var$1 = $this.$body; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-4.0), (-10.0), (-7.0), 8, 16, 6, 0.0)); - var$1 = $this.$body; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 5.0; - var$1.$rotationPointZ = 2.0; -} -function nms_ModelSheep2_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - var var$5; - var$5 = $this.$head; - $par1EntityLiving = $par1EntityLiving; - var$5.$rotationPointY = 6.0 + nms_EntitySheep_func_70894_j($par1EntityLiving, $par4) * 9.0; - $this.$field_78153_i = nms_EntitySheep_func_70890_k($par1EntityLiving, $par4); -} -function nms_ModelSheep2_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - nms_ModelQuadruped_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity); - $this.$head.$rotateAngleX = $this.$field_78153_i; -} -function nms_ModelSheep1() { - nms_ModelQuadruped.call(this); - this.$field_78152_i = 0.0; -} -function nms_ModelSheep1__init_0() { - var var_0 = new nms_ModelSheep1(); - nms_ModelSheep1__init_(var_0); - return var_0; -} -function nms_ModelSheep1__init_($this) { - var var$1, var$2, var$3; - nms_ModelQuadruped__init_0($this, 12, 0.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - $this.$head = var$1; - var$1 = $this.$head; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-3.0), (-4.0), (-4.0), 6, 6, 6, 0.6000000238418579)); - var$1 = $this.$head; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 6.0; - var$1.$rotationPointZ = (-8.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 28; - var$1.$textureOffsetY0 = 8; - $this.$body = var$1; - var$1 = $this.$body; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-4.0), (-10.0), (-7.0), 8, 16, 6, 1.75)); - var$1 = $this.$body; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 5.0; - var$1.$rotationPointZ = 2.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 16; - $this.$leg1 = var$2; - var$3 = $this.$leg1; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 6, 4, 0.5)); - var$1 = $this.$leg1; - var$1.$rotationPointX = (-3.0); - var$1.$rotationPointY = 12.0; - var$1.$rotationPointZ = 7.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 16; - $this.$leg2 = var$1; - var$1 = $this.$leg2; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 6, 4, 0.5)); - var$1 = $this.$leg2; - var$1.$rotationPointX = 3.0; - var$1.$rotationPointY = 12.0; - var$1.$rotationPointZ = 7.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 16; - $this.$leg3 = var$1; - var$1 = $this.$leg3; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 6, 4, 0.5)); - var$1 = $this.$leg3; - var$1.$rotationPointX = (-3.0); - var$1.$rotationPointY = 12.0; - var$1.$rotationPointZ = (-5.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 16; - $this.$leg4 = var$1; - var$1 = $this.$leg4; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 6, 4, 0.5)); - var$1 = $this.$leg4; - var$1.$rotationPointX = 3.0; - var$1.$rotationPointY = 12.0; - var$1.$rotationPointZ = (-5.0); -} -function nms_ModelSheep1_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - var var$5; - var$5 = $this.$head; - $par1EntityLiving = $par1EntityLiving; - var$5.$rotationPointY = 6.0 + nms_EntitySheep_func_70894_j($par1EntityLiving, $par4) * 9.0; - $this.$field_78152_i = nms_EntitySheep_func_70890_k($par1EntityLiving, $par4); -} -function nms_ModelSheep1_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - nms_ModelQuadruped_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity); - $this.$head.$rotateAngleX = $this.$field_78152_i; -} -function nms_EntityCow() { - nms_EntityAnimal.call(this); -} -function nms_EntityCow__init_0() { - var var_0 = new nms_EntityCow(); - nms_EntityCow__init_(var_0); - return var_0; -} -function nms_EntityCow__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$field_98056_d = (-1.0); - $this.$breeding = 0; - nms_EntityAgeable_setSize($this, 0.8999999761581421, 1.2999999523162842); -} -function nms_EntityCow_isAIEnabled($this) { - return 1; -} -function nms_EntityCow_getMaxHealth($this) { - return 10; -} -function nms_EntityCow_getLivingSound($this) { - return $rt_s(1200); -} -function nms_EntityCow_getHurtSound($this) { - return $rt_s(1201); -} -function nms_EntityCow_getDeathSound($this) { - return $rt_s(1201); -} -function nms_EntityCow_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1202), 0.15000000596046448, 1.0); -} -function nms_EntityCow_getSoundVolume($this) { - return 0.4000000059604645; -} -function nms_EntityCow_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_leather.$itemID; -} -function nms_EntityCow_dropFewItems($this, $par1, $par2) { - var $var3, var$4, var$5, $var4, var$7, var$8, var$9, var$10, var$11, var$12; - $var3 = Math.random() * 3.0 | 0; - $par1 = 1 + $par2 | 0; - var$4 = Math.random(); - var$5 = $par1; - $var3 = $var3 + (var$4 * var$5 | 0) | 0; - $var4 = 0; - while ($var4 < $var3) { - nms_Item_$callClinit(); - $par1 = nms_Item_leather.$itemID; - var$7 = new nms_ItemStack; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = $par1; - var$7.$stackSize = 1; - var$7.$itemDamage = 0; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - var$8 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$8.$dataWatcher, 10, var$7); - nms_DataWatcher_setObjectWatched(var$8.$dataWatcher, 10); - var$8.$delayBeforeCanPickup = 10; - var$7 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$7, var$8); - var$9 = var$7.$entityList; - ju_HashMap_putImpl(var$9.$backingMap, var$8, var$9); - if (!$par1) { - var$7 = var$7.$entitySpawnQueue; - ju_HashMap_putImpl(var$7.$backingMap, var$8, var$7); - } - $var4 = $var4 + 1 | 0; - } - $par1 = ((Math.random() * 3.0 | 0) + 1 | 0) + (Math.random() * var$5 | 0) | 0; - $var4 = 0; - while ($var4 < $par1) { - if ($this.$fire <= 0 && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 1) ? 0 : 1) ? 0 : 1) { - nms_Item_$callClinit(); - var$10 = nms_Item_beefCooked.$itemID; - var$8 = new nms_ItemStack; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = var$10; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - var$9 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$9.$dataWatcher, 10, var$8); - nms_DataWatcher_setObjectWatched(var$9.$dataWatcher, 10); - var$9.$delayBeforeCanPickup = 10; - var$7 = $this.$worldObj; - $par2 = nms_World_spawnEntityInWorld(var$7, var$9); - var$8 = var$7.$entityList; - ju_HashMap_putImpl(var$8.$backingMap, var$9, var$8); - if (!$par2) { - var$7 = var$7.$entitySpawnQueue; - ju_HashMap_put(var$7.$backingMap, var$9, var$7); - } - } else { - nms_Item_$callClinit(); - var$11 = nms_Item_beefRaw.$itemID; - var$8 = new nms_ItemStack; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = var$11; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - var$9 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$9.$dataWatcher, 10, var$8); - nms_DataWatcher_setObjectWatched(var$9.$dataWatcher, 10); - var$9.$delayBeforeCanPickup = 10; - var$12 = $this.$worldObj; - $par2 = nms_World_spawnEntityInWorld(var$12, var$9); - var$7 = var$12.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$9, var$7); - if (!$par2) { - var$7 = var$12.$entitySpawnQueue; - ju_HashMap_putImpl(var$7.$backingMap, var$9, var$7); - } - } - $var4 = $var4 + 1 | 0; - } -} -function nms_EntityCow_interact($this, $par1EntityPlayer) { - var $var2, var$3, var$4, var$5, var$6, 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();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var2 !== null) { - var$3 = $var2.$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_bucketEmpty.$itemID) { - var$3 = $var2.$stackSize - 1 | 0; - $var2.$stackSize = var$3; - if (var$3 <= 0) { - $var2 = $par1EntityPlayer.$inventory; - var$3 = $par1EntityPlayer.$inventory.$currentItem; - $par1EntityPlayer = new nms_ItemStack; - var$4 = nms_Item_bucketMilk.$itemID; - $par1EntityPlayer.$stackSize = 0; - $par1EntityPlayer.$itemFrame = null; - $par1EntityPlayer.$itemID0 = var$4; - $par1EntityPlayer.$stackSize = 1; - $par1EntityPlayer.$itemDamage = 0; - if ($par1EntityPlayer.$itemDamage < 0) - $par1EntityPlayer.$itemDamage = 0; - var$5 = $var2.$mainInventory; - var$6 = var$5.data.length; - if (var$3 >= var$6) { - var$3 = var$3 - var$6 | 0; - var$5 = $var2.$armorInventory; - } - var$5.data[var$3] = $par1EntityPlayer; - } else { - var$7 = $par1EntityPlayer.$inventory; - var$8 = new nms_ItemStack; - var$9 = nms_Item_bucketMilk.$itemID; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = var$9; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - if (!nms_InventoryPlayer_addItemStackToInventory(var$7, var$8)) { - $var2 = new nms_ItemStack; - var$9 = nms_Item_bucketMilk.$itemID; - $var2.$stackSize = 0; - $var2.$itemFrame = null; - $var2.$itemID0 = var$9; - $var2.$stackSize = 1; - $var2.$itemDamage = 0; - if ($var2.$itemDamage < 0) - $var2.$itemDamage = 0; - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, $var2, 0); - } - } - return 1; - } - } - $ptr = 1; - case 1: - $tmp = nms_EntityAnimal_interact($this, $par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - var$3 = $tmp; - return var$3; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $ptr); -} -function nms_EntityCow_spawnBabyAnimal($this, $par1EntityAgeable) { - var $c; - $c = new nms_EntityCow; - nms_EntityLiving__init_0($c); - $c.$hasAttacked = 0; - $c.$fleeingTick = 0; - $c.$field_98056_d = (-1.0); - $c.$breeding = 0; - nms_EntityAgeable_setSize($c, 0.8999999761581421, 1.2999999523162842); - $par1EntityAgeable = $this.$worldObj; - $c.$worldObj = $par1EntityAgeable; - $c.$dimension = $par1EntityAgeable.$provider.$dimensionId; - return $c; -} -function nms_EntityCow_createChild($this, $par1EntityAgeable) { - return $this.$spawnBabyAnimal($par1EntityAgeable); -} -function nms_RenderCow() { - nms_RenderLiving.call(this); -} -var nms_RenderCow_entityTexture = null; -function nms_RenderCow__init_(var_0, var_1) { - var var_2 = new nms_RenderCow(); - nms_RenderCow__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_RenderCow__init_0($this, $par1ModelBase, $par2) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = $par1ModelBase; - $this.$shadowSize = $par2; -} -function nms_RenderCow_renderCow($this, $par1EntityCow, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityCow = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityCow, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityCow, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderCow_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderCow_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderCow_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderCow_entityTexture); -} -function nms_RenderCow__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1203); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderCow_entityTexture = var$1; -} -function nms_ModelCow() { - nms_ModelQuadruped.call(this); -} -function nms_ModelCow__init_0() { - var var_0 = new nms_ModelCow(); - nms_ModelCow__init_(var_0); - return var_0; -} -function nms_ModelCow__init_($this) { - var var$1; - nms_ModelQuadruped__init_0($this, 12, 0.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - $this.$head = var$1; - var$1 = $this.$head; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-4.0), (-4.0), (-6.0), 8, 8, 6, 0.0)); - var$1 = $this.$head; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 4.0; - var$1.$rotationPointZ = (-8.0); - var$1 = $this.$head; - var$1.$textureOffsetX0 = 22; - var$1.$textureOffsetY0 = 0; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-5.0), (-5.0), (-4.0), 1, 3, 1, 0.0)); - var$1 = $this.$head; - var$1.$textureOffsetX0 = 22; - var$1.$textureOffsetY0 = 0; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 4.0, (-5.0), (-4.0), 1, 3, 1, 0.0)); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 18; - var$1.$textureOffsetY0 = 4; - $this.$body = var$1; - var$1 = $this.$body; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-6.0), (-10.0), (-7.0), 12, 18, 10, 0.0)); - var$1 = $this.$body; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 5.0; - var$1.$rotationPointZ = 2.0; - var$1 = $this.$body; - var$1.$textureOffsetX0 = 52; - var$1.$textureOffsetY0 = 0; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-2.0), 2.0, (-8.0), 4, 6, 1, 0.0)); - var$1 = $this.$leg1; - var$1.$rotationPointX = var$1.$rotationPointX - 1.0; - var$1 = $this.$leg2; - var$1.$rotationPointX = var$1.$rotationPointX + 1.0; - var$1 = $this.$leg1; - var$1.$rotationPointZ = var$1.$rotationPointZ + 0.0; - var$1 = $this.$leg2; - var$1.$rotationPointZ = var$1.$rotationPointZ + 0.0; - var$1 = $this.$leg3; - var$1.$rotationPointX = var$1.$rotationPointX - 1.0; - var$1 = $this.$leg4; - var$1.$rotationPointX = var$1.$rotationPointX + 1.0; - var$1 = $this.$leg3; - var$1.$rotationPointZ = var$1.$rotationPointZ - 1.0; - var$1 = $this.$leg4; - var$1.$rotationPointZ = var$1.$rotationPointZ - 1.0; - $this.$field_78151_h = $this.$field_78151_h + 2.0; -} -function nms_EntityMooshroom() { - nms_EntityCow.call(this); -} -function nms_EntityMooshroom__init_0() { - var var_0 = new nms_EntityMooshroom(); - nms_EntityMooshroom__init_(var_0); - return var_0; -} -function nms_EntityMooshroom__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$field_98056_d = (-1.0); - $this.$breeding = 0; - nms_EntityAgeable_setSize($this, 0.8999999761581421, 1.2999999523162842); - nms_EntityAgeable_setSize($this, 0.8999999761581421, 1.2999999523162842); -} -function nms_EntityMooshroom_interact($this, $par1EntityPlayer) { - var $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $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();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var2 !== null) { - var$3 = $var2.$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_bowlEmpty.$itemID && nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0) { - if ($var2.$stackSize == 1) { - var$4 = $par1EntityPlayer.$inventory; - var$3 = $par1EntityPlayer.$inventory.$currentItem; - $par1EntityPlayer = new nms_ItemStack; - var$5 = nms_Item_bowlSoup.$itemID; - $par1EntityPlayer.$stackSize = 0; - $par1EntityPlayer.$itemFrame = null; - $par1EntityPlayer.$itemID0 = var$5; - $par1EntityPlayer.$stackSize = 1; - $par1EntityPlayer.$itemDamage = 0; - if ($par1EntityPlayer.$itemDamage < 0) - $par1EntityPlayer.$itemDamage = 0; - var$6 = var$4.$mainInventory; - var$7 = var$6.data.length; - if (var$3 >= var$7) { - var$3 = var$3 - var$7 | 0; - var$6 = var$4.$armorInventory; - } - var$6.data[var$3] = $par1EntityPlayer; - return 1; - } - var$8 = $par1EntityPlayer.$inventory; - var$9 = new nms_ItemStack; - var$10 = nms_Item_bowlSoup.$itemID; - var$9.$stackSize = 0; - var$9.$itemFrame = null; - var$9.$itemID0 = var$10; - var$9.$stackSize = 1; - var$9.$itemDamage = 0; - if (var$9.$itemDamage < 0) - var$9.$itemDamage = 0; - if (nms_InventoryPlayer_addItemStackToInventory(var$8, var$9) && !$par1EntityPlayer.$capabilities.$isCreativeMode) { - var$4 = $par1EntityPlayer.$inventory; - var$3 = $par1EntityPlayer.$inventory.$currentItem; - var$7 = 1; - $ptr = 2; - continue main; - } - } - } - if ($var2 !== null) { - var$3 = $var2.$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_shears.$itemID && nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0) { - $this.$isDead = 1; - $par1EntityPlayer = $this.$worldObj; - var$4 = $rt_s(845); - var$11 = $this.$posX; - var$12 = $this.$posY + $this.$height1 / 2.0; - var$13 = $this.$posZ; - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - var$3 = 0; - if (var$3 >= $par1EntityPlayer.$worldAccesses.$size0) - return 1; - $var2 = $par1EntityPlayer.$worldAccesses; - if (var$3 >= 0 && var$3 < $var2.$size0) { - $var2 = $var2.$array1.data[var$3]; - $ptr = 3; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - } - } - $ptr = 1; - case 1: - $tmp = nms_EntityCow_interact($this, $par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - var$3 = $tmp; - return var$3; - case 2: - nms_InventoryPlayer_decrStackSize(var$4, var$3, var$7); - if ($rt_suspending()) { - break main; - } - return 1; - case 3: - nms_RenderGlobal_doSpawnParticle($var2, var$4, var$11, var$12, var$13, var$14, var$15, var$16); - if ($rt_suspending()) { - break main; - } - var$3 = var$3 + 1 | 0; - if (var$3 >= $par1EntityPlayer.$worldAccesses.$size0) - return 1; - $var2 = $par1EntityPlayer.$worldAccesses; - if (var$3 >= 0 && var$3 < $var2.$size0) { - $var2 = $var2.$array1.data[var$3]; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, $ptr); -} -function nms_EntityMooshroom_func_94900_c($this, $par1EntityAgeable) { - var $m; - $m = new nms_EntityMooshroom; - nms_EntityLiving__init_0($m); - $m.$hasAttacked = 0; - $m.$fleeingTick = 0; - $m.$field_98056_d = (-1.0); - $m.$breeding = 0; - nms_EntityAgeable_setSize($m, 0.8999999761581421, 1.2999999523162842); - nms_EntityAgeable_setSize($m, 0.8999999761581421, 1.2999999523162842); - $par1EntityAgeable = $this.$worldObj; - $m.$worldObj = $par1EntityAgeable; - $m.$dimension = $par1EntityAgeable.$provider.$dimensionId; - return $m; -} -function nms_EntityMooshroom_spawnBabyAnimal($this, $par1EntityAgeable) { - var var$2; - $par1EntityAgeable = new nms_EntityMooshroom; - nms_EntityLiving__init_0($par1EntityAgeable); - $par1EntityAgeable.$hasAttacked = 0; - $par1EntityAgeable.$fleeingTick = 0; - $par1EntityAgeable.$field_98056_d = (-1.0); - $par1EntityAgeable.$breeding = 0; - nms_EntityAgeable_setSize($par1EntityAgeable, 0.8999999761581421, 1.2999999523162842); - nms_EntityAgeable_setSize($par1EntityAgeable, 0.8999999761581421, 1.2999999523162842); - var$2 = $this.$worldObj; - $par1EntityAgeable.$worldObj = var$2; - $par1EntityAgeable.$dimension = var$2.$provider.$dimensionId; - return $par1EntityAgeable; -} -function nms_EntityMooshroom_createChild($this, $par1EntityAgeable) { - var var$2; - $par1EntityAgeable = new nms_EntityMooshroom; - nms_EntityLiving__init_0($par1EntityAgeable); - $par1EntityAgeable.$hasAttacked = 0; - $par1EntityAgeable.$fleeingTick = 0; - $par1EntityAgeable.$field_98056_d = (-1.0); - $par1EntityAgeable.$breeding = 0; - nms_EntityAgeable_setSize($par1EntityAgeable, 0.8999999761581421, 1.2999999523162842); - nms_EntityAgeable_setSize($par1EntityAgeable, 0.8999999761581421, 1.2999999523162842); - var$2 = $this.$worldObj; - $par1EntityAgeable.$worldObj = var$2; - $par1EntityAgeable.$dimension = var$2.$provider.$dimensionId; - return $par1EntityAgeable; -} -function nms_RenderMooshroom() { - nms_RenderLiving.call(this); -} -var nms_RenderMooshroom_terrain = null; -var nms_RenderMooshroom_entityTexture = null; -function nms_RenderMooshroom__init_(var_0, var_1) { - var var_2 = new nms_RenderMooshroom(); - nms_RenderMooshroom__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_RenderMooshroom__init_0($this, $par1ModelBase, $par2) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = $par1ModelBase; - $this.$shadowSize = $par2; -} -function nms_RenderMooshroom_renderLivingMooshroom($this, $par1EntityMooshroom, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityMooshroom = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityMooshroom, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMooshroom, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderMooshroom_renderMooshroomEquippedItems($this, $par1EntityMooshroom, $par2) { - var 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();$par2 = $thread.pop();$par1EntityMooshroom = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_DataWatcher_getWatchableObjectInt($par1EntityMooshroom.$dataWatcher, 12) >= 0 ? 0 : 1) - return; - nle_TextureLocation_bindTexture(nms_RenderMooshroom_terrain); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityMooshroom = nleg_EaglerAdapterGL30_deevis; - $par1EntityMooshroom.$x = 1.0; - $par1EntityMooshroom.$y = (-1.0); - $par1EntityMooshroom.$z = 1.0; - $par1EntityMooshroom = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityMooshroom, $par1EntityMooshroom); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityMooshroom = new jl_StringBuilder; - $par1EntityMooshroom.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityMooshroom; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityMooshroom = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityMooshroom, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityMooshroom; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } - $par1EntityMooshroom = nleg_EaglerAdapterGL30_deevis; - $par1EntityMooshroom.$x = 0.20000000298023224; - $par1EntityMooshroom.$y = 0.4000000059604645; - $par1EntityMooshroom.$z = 0.5; - $par1EntityMooshroom = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityMooshroom, $par1EntityMooshroom); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityMooshroom = new jl_StringBuilder; - $par1EntityMooshroom.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityMooshroom; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityMooshroom = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityMooshroom, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityMooshroom; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } - nleg_EaglerAdapterGL30_glRotatef(42.0, 0.0, 1.0, 0.0); - $par1EntityMooshroom = $this.$renderBlocks; - nms_Block_$callClinit(); - var$3 = nms_Block_mushroomRed; - var$6 = 0; - $par2 = 1.0; - $ptr = 1; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1EntityMooshroom, var$3, var$6, $par2); - if ($rt_suspending()) { - break main; - } - $par1EntityMooshroom = nleg_EaglerAdapterGL30_deevis; - $par1EntityMooshroom.$x = 0.10000000149011612; - $par1EntityMooshroom.$y = 0.0; - $par1EntityMooshroom.$z = (-0.6000000238418579); - $par1EntityMooshroom = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityMooshroom, $par1EntityMooshroom); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityMooshroom = new jl_StringBuilder; - $par1EntityMooshroom.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityMooshroom; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityMooshroom = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityMooshroom, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityMooshroom; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } - nleg_EaglerAdapterGL30_glRotatef(42.0, 0.0, 1.0, 0.0); - $par1EntityMooshroom = $this.$renderBlocks; - var$3 = nms_Block_mushroomRed; - var$6 = 0; - $par2 = 1.0; - $ptr = 2; - case 2: - nms_RenderBlocks_renderBlockAsItem($par1EntityMooshroom, var$3, var$6, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_ModelRenderer_postRender($this.$mainModel.$head, 0.0625); - $par1EntityMooshroom = nleg_EaglerAdapterGL30_deevis; - $par1EntityMooshroom.$x = 1.0; - $par1EntityMooshroom.$y = (-1.0); - $par1EntityMooshroom.$z = 1.0; - $par1EntityMooshroom = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityMooshroom, $par1EntityMooshroom); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.75, (-0.20000000298023224)); - nleg_EaglerAdapterGL30_glRotatef(12.0, 0.0, 1.0, 0.0); - $par1EntityMooshroom = $this.$renderBlocks; - var$3 = nms_Block_mushroomRed; - var$6 = 0; - $par2 = 1.0; - $ptr = 3; - case 3: - nms_RenderBlocks_renderBlockAsItem($par1EntityMooshroom, var$3, var$6, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(46); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMooshroom, $par2, var$3, var$4, var$5, var$6, $ptr); -} -function nms_RenderMooshroom_renderEquippedItems($this, $par1EntityLiving, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderMooshroom_renderMooshroomEquippedItems($this, $par1EntityLiving, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $ptr); -} -function nms_RenderMooshroom_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderMooshroom_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderMooshroom_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderMooshroom_entityTexture); -} -function nms_RenderMooshroom__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderMooshroom_terrain = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1204); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderMooshroom_entityTexture = var$1; -} -function nms_EntityTameable() { - nms_EntityAnimal.call(this); -} -function nms_EntityTameable_playTameEffect($this, $par1) { - var $var2, $var3, $var4, $var6, $var8, var$7, var$8, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $rt_s(868); - if (!$par1) - $var2 = $rt_s(852); - $var3 = 0; - while ($var3 < 7) { - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var8 = ju_Random_nextGaussian($this.$rand0) * 0.02; - var$7 = $this.$worldObj; - var$8 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$9 = $this.$posY + 0.5 + Math.random() * $this.$height1; - var$10 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$11 = 0; - if (var$11 < var$7.$worldAccesses.$size0) { - var$12 = var$7.$worldAccesses; - if (var$11 >= 0 && var$11 < var$12.$size0) { - var$12 = var$12.$array1.data[var$11]; - $ptr = 1; - continue main; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - $var3 = $var3 + 1 | 0; - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$12, $var2, var$8, var$9, var$10, $var4, $var6, $var8); - if ($rt_suspending()) { - break main; - } - var$11 = var$11 + 1 | 0; - while (true) { - if (var$11 < var$7.$worldAccesses.$size0) { - var$12 = var$7.$worldAccesses; - if (var$11 >= 0 && var$11 < var$12.$size0) { - var$12 = var$12.$array1.data[var$11]; - continue main; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - $var3 = $var3 + 1 | 0; - if ($var3 >= 7) - break; - $var4 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var6 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var8 = ju_Random_nextGaussian($this.$rand0) * 0.02; - var$7 = $this.$worldObj; - var$8 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$9 = $this.$posY + 0.5 + Math.random() * $this.$height1; - var$10 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$11 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, $var3, $var4, $var6, $var8, var$7, var$8, var$9, var$10, var$11, var$12, $ptr); -} -function nms_EntityTameable_handleHealthUpdate($this, $par1) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 == 7) { - $par1 = 1; - $ptr = 1; - continue main; - } - if ($par1 != 6) { - $ptr = 2; - continue main; - } - $par1 = 0; - $ptr = 3; - continue main; - case 1: - nms_EntityTameable_playTameEffect($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_EntityLiving_handleHealthUpdate($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_EntityTameable_playTameEffect($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $ptr); -} -function nms_EntityTameable_isTamed($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1; -} -function nms_EntityTameable_setTamed($this, $par1) { - var $var2, var$3, var$4; - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if (!$par1) { - var$3 = $this.$dataWatcher; - $par1 = ($var2 & (-5)) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $par1; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } else { - var$3 = $this.$dataWatcher; - $var2 = ($var2 | 4) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $var2; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } -} -function nms_EntityTameable_isSitting($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; -} -function nms_EntityTameable_setSitting($this, $par1) { - var $var2, var$3, var$4; - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if (!$par1) { - var$3 = $this.$dataWatcher; - $par1 = ($var2 & (-2)) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $par1; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } else { - var$3 = $this.$dataWatcher; - $var2 = ($var2 | 1) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $var2; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } -} -function nms_EntityTameable_getOwnerName($this) { - return nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 17); -} -function nms_EntityTameable_setOwner($this, $par1Str) { - nms_DataWatcher_updateObject($this.$dataWatcher, 17, $par1Str); -} -function nms_EntityWolf() { - var a = this; nms_EntityTameable.call(a); - a.$field_70926_e = 0.0; - a.$field_70924_f = 0.0; - a.$isShaking = 0; - a.$field_70928_h = 0; - a.$timeWolfIsShaking = 0.0; - a.$prevTimeWolfIsShaking = 0.0; -} -function nms_EntityWolf__init_0() { - var var_0 = new nms_EntityWolf(); - nms_EntityWolf__init_(var_0); - return var_0; -} -function nms_EntityWolf__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$field_98056_d = (-1.0); - $this.$breeding = 0; - nms_EntityAgeable_setSize($this, 0.6000000238418579, 0.800000011920929); - $this.$moveSpeed = 0.30000001192092896; -} -function nms_EntityWolf_isAIEnabled($this) { - return 1; -} -function nms_EntityWolf_updateAITick($this) { - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf($this.$health)); -} -function nms_EntityWolf_getMaxHealth($this) { - return !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1) ? 8 : 20; -} -function nms_EntityWolf_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 0; - nms_DataWatcher_addObject(var$1, 12, var$2); - var$2 = $this.$dataWatcher; - var$1 = new jl_Byte; - var$1.$value4 = 0; - nms_DataWatcher_addObject(var$2, 16, var$1); - nms_DataWatcher_addObject($this.$dataWatcher, 17, $rt_s(44)); - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = $this.$health; - nms_DataWatcher_addObject(var$1, 18, var$2); - var$2 = $this.$dataWatcher; - var$1 = new jl_Byte; - var$1.$value4 = 0; - nms_DataWatcher_addObject(var$2, 19, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Byte; - var$1.$value4 = 14; - nms_DataWatcher_addObject(var$2, 20, var$1); -} -function nms_EntityWolf_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1205), 0.15000000596046448, 1.0); -} -function nms_EntityWolf_canDespawn($this) { - var var$1; - var$1 = !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 2) ? 0 : 1; - return var$1 && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1) ? 1 : 0; -} -function nms_EntityWolf_getLivingSound($this) { - var var$1, var$2; - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 2) ? 0 : 1) - var$1 = $rt_s(1206); - else if (Math.random() * 3.0 | 0) - var$1 = $rt_s(1207); - else { - var$2 = !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1; - var$1 = var$2 && nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18) < 10 ? $rt_s(1208) : $rt_s(1209); - } - return var$1; -} -function nms_EntityWolf_getHurtSound($this) { - return $rt_s(1210); -} -function nms_EntityWolf_getDeathSound($this) { - return $rt_s(1211); -} -function nms_EntityWolf_getSoundVolume($this) { - return 0.4000000059604645; -} -function nms_EntityWolf_getDropItemId($this) { - return (-1); -} -function nms_EntityWolf_onLivingUpdate($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: - $ptr = 1; - case 1: - nms_EntityAnimal_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote && $this.$isShaking && !$this.$field_70928_h && !($this.$pathToEntity === null ? 0 : 1) && $this.$onGround) { - $this.$field_70928_h = 1; - $this.$timeWolfIsShaking = 0.0; - $this.$prevTimeWolfIsShaking = 0.0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_EntityWolf_onUpdate($this) { - var $var1, $var4, $var2, $var3, var$5, $var5, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();var$5 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var4 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_onUpdate($this); - if ($rt_suspending()) { - break main; - } - $this.$field_70924_f = $this.$field_70926_e; - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 19) != 1 ? 0 : 1)) - $this.$field_70926_e = $this.$field_70926_e + (0.0 - $this.$field_70926_e) * 0.4000000059604645; - else - $this.$field_70926_e = $this.$field_70926_e + (1.0 - $this.$field_70926_e) * 0.4000000059604645; - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 19) != 1 ? 0 : 1) - $this.$numTicksToChaseTarget = 10; - a: { - if (nms_Entity_isWet($this)) { - $this.$isShaking = 1; - $this.$field_70928_h = 0; - $this.$timeWolfIsShaking = 0.0; - $this.$prevTimeWolfIsShaking = 0.0; - } else if (!(!$this.$isShaking && !$this.$field_70928_h) && $this.$field_70928_h) { - if ($this.$timeWolfIsShaking === 0.0) { - $var1 = (Math.random() - Math.random()) * 0.20000000298023224 + 1.0; - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1212), 0.4000000059604645, $var1); - } - $this.$prevTimeWolfIsShaking = $this.$timeWolfIsShaking; - $this.$timeWolfIsShaking = $this.$timeWolfIsShaking + 0.05000000074505806; - if ($this.$prevTimeWolfIsShaking >= 2.0) { - $this.$isShaking = 0; - $this.$field_70928_h = 0; - $this.$prevTimeWolfIsShaking = 0.0; - $this.$timeWolfIsShaking = 0.0; - } - if ($this.$timeWolfIsShaking > 0.4000000059604645) { - $var1 = $this.$boundingBox.$minY; - $var4 = ($this.$timeWolfIsShaking - 0.4000000059604645) * 3.1415927410125732; - $var2 = nms_MathHelper_SIN_TABLE.data[($var4 * 10430.3779296875 | 0) & 65535] * 7.0 | 0; - $var3 = 0; - var$5 = $var1 + 0.800000011920929; - while (true) { - if ($var3 >= $var2) - break a; - $var4 = (Math.random() * 2.0 - 1.0) * $this.$width1 * 0.5; - $var5 = (Math.random() * 2.0 - 1.0) * $this.$width1 * 0.5; - var$7 = $this.$worldObj; - var$8 = $rt_s(679); - var$9 = $this.$posX + $var4; - var$10 = $this.$posZ + $var5; - var$11 = $this.$motionX; - var$12 = $this.$motionY; - var$13 = $this.$motionZ; - var$14 = 0; - if (var$14 < var$7.$worldAccesses.$size0) { - var$15 = var$7.$worldAccesses; - if (var$14 >= 0 && var$14 < var$15.$size0) { - var$15 = var$15.$array1.data[var$14]; - $ptr = 2; - continue main; - } - var$7 = new jl_IndexOutOfBoundsException; - var$7.$suppressionEnabled = 1; - var$7.$writableStackTrace = 1; - $rt_throw(var$7); - } - $var3 = $var3 + 1 | 0; - } - } - } - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$15, var$8, var$9, var$5, var$10, var$11, var$12, var$13); - if ($rt_suspending()) { - break main; - } - var$14 = var$14 + 1 | 0; - while (true) { - if (var$14 < var$7.$worldAccesses.$size0) { - var$15 = var$7.$worldAccesses; - if (var$14 >= 0 && var$14 < var$15.$size0) { - var$15 = var$15.$array1.data[var$14]; - continue main; - } - var$7 = new jl_IndexOutOfBoundsException; - var$7.$suppressionEnabled = 1; - var$7.$writableStackTrace = 1; - $rt_throw(var$7); - } - $var3 = $var3 + 1 | 0; - if ($var3 >= $var2) - break; - $var4 = (Math.random() * 2.0 - 1.0) * $this.$width1 * 0.5; - $var5 = (Math.random() * 2.0 - 1.0) * $this.$width1 * 0.5; - var$7 = $this.$worldObj; - var$8 = $rt_s(679); - var$9 = $this.$posX + $var4; - var$10 = $this.$posZ + $var5; - var$11 = $this.$motionX; - var$12 = $this.$motionY; - var$13 = $this.$motionZ; - var$14 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var4, $var2, $var3, var$5, $var5, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr); -} -function nms_EntityWolf_getWolfShaking($this) { - return $this.$isShaking; -} -function nms_EntityWolf_getShadingWhileShaking($this, $par1) { - return 0.75 + ($this.$prevTimeWolfIsShaking + ($this.$timeWolfIsShaking - $this.$prevTimeWolfIsShaking) * $par1) / 2.0 * 0.25; -} -function nms_EntityWolf_getShakeAngle($this, $par1, $par2) { - var $var3; - $var3 = ($this.$prevTimeWolfIsShaking + ($this.$timeWolfIsShaking - $this.$prevTimeWolfIsShaking) * $par1 + $par2) / 1.7999999523162842; - if ($var3 < 0.0) - $var3 = 0.0; - else if ($var3 > 1.0) - $var3 = 1.0; - $par1 = $var3 * 3.1415927410125732; - $var3 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - $par1 = $par1 * 11.0; - return $var3 * nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535] * 0.15000000596046448 * 3.1415927410125732; -} -function nms_EntityWolf_getInterestedAngle($this, $par1) { - return ($this.$field_70924_f + ($this.$field_70926_e - $this.$field_70924_f) * $par1) * 0.15000000596046448 * 3.1415927410125732; -} -function nms_EntityWolf_getEyeHeight($this) { - return $this.$height1 * 0.800000011920929; -} -function nms_EntityWolf_getVerticalFaceSpeed($this) { - return (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1) ? 20 : 40; -} -function nms_EntityWolf_interact($this, $par1EntityPlayer) { - var $var2, var$3, $var3, var$5, var$6, $var4, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$var4 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var3 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - var$3 = !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1; - a: { - if (!var$3) { - if ($var2 === null) - break a; - var$3 = $var2.$itemID0; - nms_Item_$callClinit(); - if (var$3 != nms_Item_bone.$itemID) - break a; - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 2) ? 0 : 1) - break a; - if (!$par1EntityPlayer.$capabilities.$isCreativeMode) - $var2.$stackSize = $var2.$stackSize - 1 | 0; - if ($var2.$stackSize <= 0) { - $var3 = $par1EntityPlayer.$inventory; - var$3 = $par1EntityPlayer.$inventory.$currentItem; - $par1EntityPlayer = null; - var$5 = $var3.$mainInventory; - var$6 = var$5.data.length; - if (var$3 >= var$6) { - var$3 = var$3 - var$6 | 0; - var$5 = $var3.$armorInventory; - } - var$5.data[var$3] = $par1EntityPlayer; - } - return 1; - } - if ($var2 !== null) { - nms_Item_$callClinit(); - if (!(nms_Item_itemsList.data[$var2.$itemID0] instanceof nms_ItemFood)) { - if ($var2.$itemID0 != nms_Item_dyePowder.$itemID) - break a; - $var4 = ($var2.$itemDamage ^ (-1)) & 15; - if ($var4 == (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 20) & 15)) - break a; - $var3 = $this.$dataWatcher; - var$6 = ($var4 & 15) << 24 >> 24; - var$8 = new jl_Byte; - var$8.$value4 = var$6; - nms_DataWatcher_updateObject($var3, 20, var$8); - if (!$par1EntityPlayer.$capabilities.$isCreativeMode) { - var$3 = $var2.$stackSize - 1 | 0; - $var2.$stackSize = var$3; - if (var$3 <= 0) { - $var3 = $par1EntityPlayer.$inventory; - var$3 = $par1EntityPlayer.$inventory.$currentItem; - $par1EntityPlayer = null; - var$5 = $var3.$mainInventory; - var$6 = var$5.data.length; - if (var$3 >= var$6) { - var$3 = var$3 - var$6 | 0; - var$5 = $var3.$armorInventory; - } - var$5.data[var$3] = $par1EntityPlayer; - } - } - return 1; - } - $var3 = nms_Item_itemsList.data[$var2.$itemID0]; - if ($var3.$isWolfsFavoriteMeat && nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18) < 20) { - if (!$par1EntityPlayer.$capabilities.$isCreativeMode) - $var2.$stackSize = $var2.$stackSize - 1 | 0; - nms_EntityLiving_heal($this, $var3.$healAmount); - if ($var2.$stackSize <= 0) { - $var3 = $par1EntityPlayer.$inventory; - var$3 = $par1EntityPlayer.$inventory.$currentItem; - $par1EntityPlayer = null; - var$5 = $var3.$mainInventory; - var$6 = var$5.data.length; - if (var$3 >= var$6) { - var$3 = var$3 - var$6 | 0; - var$5 = $var3.$armorInventory; - } - var$5.data[var$3] = $par1EntityPlayer; - } - return 1; - } - } - } - $ptr = 1; - case 1: - $tmp = nms_EntityAnimal_interact($this, $par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - var$3 = $tmp; - return var$3; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $var2, var$3, $var3, var$5, var$6, $var4, var$8, $ptr); -} -function nms_EntityWolf_handleHealthUpdate($this, $par1) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 == 8) { - $this.$field_70928_h = 1; - $this.$timeWolfIsShaking = 0.0; - $this.$prevTimeWolfIsShaking = 0.0; - return; - } - $ptr = 1; - case 1: - nms_EntityTameable_handleHealthUpdate($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $ptr); -} -function nms_EntityWolf_getTailRotation($this) { - return (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 2) ? 0 : 1) ? 1.539380431175232 : !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1) ? 0.6283185482025146 : (0.550000011920929 - (20 - nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18) | 0) * 0.019999999552965164) * 3.1415927410125732; -} -function nms_EntityWolf_isBreedingItem($this, $par1ItemStack) { - var var$2; - if ($par1ItemStack === null) - var$2 = 0; - else { - nms_Item_$callClinit(); - var$2 = !(nms_Item_itemsList.data[$par1ItemStack.$itemID0] instanceof nms_ItemFood) ? 0 : nms_Item_itemsList.data[$par1ItemStack.$itemID0].$isWolfsFavoriteMeat; - } - return var$2; -} -function nms_EntityWolf_isAngry($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 2) ? 0 : 1; -} -function nms_EntityWolf_getCollarColor($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 20) & 15; -} -function nms_EntityWolf_setCollarColor($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = ($par1 & 15) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 20, var$3); -} -function nms_EntityWolf_spawnBabyAnimal($this, $par1EntityAgeable) { - var $var2, $var3; - $var2 = new nms_EntityWolf; - nms_EntityLiving__init_0($var2); - $var2.$hasAttacked = 0; - $var2.$fleeingTick = 0; - $var2.$field_98056_d = (-1.0); - $var2.$breeding = 0; - nms_EntityAgeable_setSize($var2, 0.6000000238418579, 0.800000011920929); - $var2.$moveSpeed = 0.30000001192092896; - $par1EntityAgeable = $this.$worldObj; - $var2.$worldObj = $par1EntityAgeable; - $var2.$dimension = $par1EntityAgeable.$provider.$dimensionId; - $var3 = nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 17); - if ($var3 !== null && jl_String_trim($var3).$characters.data.length > 0) { - nms_DataWatcher_updateObject($var2.$dataWatcher, 17, $var3); - nms_EntityTameable_setTamed($var2, 1); - } - return $var2; -} -function nms_EntityWolf_func_70922_bv($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 19) != 1 ? 0 : 1; -} -function nms_EntityWolf_createChild($this, $par1EntityAgeable) { - return nms_EntityWolf_spawnBabyAnimal($this, $par1EntityAgeable); -} -function nms_RenderWolf() { - nms_RenderLiving.call(this); -} -var nms_RenderWolf_tex_collar = null; -var nms_RenderWolf_entityTexture0 = null; -var nms_RenderWolf_entityTexture1 = null; -var nms_RenderWolf_entityTexture2 = null; -function nms_RenderWolf__init_(var_0, var_1, var_2) { - var var_3 = new nms_RenderWolf(); - nms_RenderWolf__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_RenderWolf__init_0($this, $par1ModelBase, $par2ModelBase, $par3) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = $par1ModelBase; - $this.$shadowSize = $par3; - $this.$renderPassModel = $par2ModelBase; -} -function nms_RenderWolf_getTailRotation($this, $par1EntityWolf, $par2) { - return nms_EntityWolf_getTailRotation($par1EntityWolf); -} -function nms_RenderWolf_func_82447_a($this, $par1EntityWolf, $par2, $par3) { - var $var4, $var5, var$6; - if (!$par2 && $par1EntityWolf.$isShaking) { - $var4 = nms_Entity_getBrightness($par1EntityWolf, $par3) * (0.75 + ($par1EntityWolf.$prevTimeWolfIsShaking + ($par1EntityWolf.$timeWolfIsShaking - $par1EntityWolf.$prevTimeWolfIsShaking) * $par3) / 2.0 * 0.25); - nms_RenderWolf_bindTexture($this, $par1EntityWolf); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = $var4; - nleg_EaglerAdapterGL30_colorG = $var4; - nleg_EaglerAdapterGL30_colorB = $var4; - nleg_EaglerAdapterGL30_colorA = 1.0; - return 1; - } - if ($par2 == 1 && (!(nms_DataWatcher_getWatchableObjectByte($par1EntityWolf.$dataWatcher, 16) & 4) ? 0 : 1)) { - nle_TextureLocation_bindTexture(nms_RenderWolf_tex_collar); - $var5 = nms_DataWatcher_getWatchableObjectByte($par1EntityWolf.$dataWatcher, 20) & 15; - $par3 = 1.0 * nms_EntitySheep_fleeceColorTable.data[$var5].data[0]; - var$6 = 1.0 * nms_EntitySheep_fleeceColorTable.data[$var5].data[1]; - $var4 = 1.0 * nms_EntitySheep_fleeceColorTable.data[$var5].data[2]; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = $par3; - nleg_EaglerAdapterGL30_colorG = var$6; - nleg_EaglerAdapterGL30_colorB = $var4; - nleg_EaglerAdapterGL30_colorA = 1.0; - return 1; - } - return (-1); -} -function nms_RenderWolf_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderWolf_func_82447_a($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderWolf_handleRotationFloat($this, $par1EntityLiving, $par2) { - return nms_EntityWolf_getTailRotation($par1EntityLiving); -} -function nms_RenderWolf_bindTexture($this, $par1EntityLiving) { - $par1EntityLiving = $par1EntityLiving; - if (!(nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 16) & 4) ? 0 : 1) - nle_TextureLocation_bindTexture(nms_RenderWolf_entityTexture2); - else if (!(!(nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 16) & 2) ? 0 : 1)) - nle_TextureLocation_bindTexture(nms_RenderWolf_entityTexture0); - else - nle_TextureLocation_bindTexture(nms_RenderWolf_entityTexture1); -} -function nms_RenderWolf__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1213); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWolf_tex_collar = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1214); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWolf_entityTexture0 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1215); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWolf_entityTexture1 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1216); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWolf_entityTexture2 = var$1; -} -function nms_ModelWolf() { - var a = this; nms_ModelBase.call(a); - a.$wolfHeadMain = null; - a.$wolfBody = null; - a.$wolfLeg1 = null; - a.$wolfLeg2 = null; - a.$wolfLeg3 = null; - a.$wolfLeg4 = null; - a.$wolfTail = null; - a.$wolfMane = null; -} -function nms_ModelWolf__init_0() { - var var_0 = new nms_ModelWolf(); - nms_ModelWolf__init_(var_0); - return var_0; -} -function nms_ModelWolf__init_($this) { - var var$1, var$2; - nms_ModelBase__init_0($this); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - $this.$wolfHeadMain = var$1; - var$2 = $this.$wolfHeadMain; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-3.0), (-3.0), (-2.0), 6, 6, 4, 0.0)); - var$1 = $this.$wolfHeadMain; - var$1.$rotationPointX = (-1.0); - var$1.$rotationPointY = 13.5; - var$1.$rotationPointZ = (-7.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 18; - var$1.$textureOffsetY0 = 14; - $this.$wolfBody = var$1; - var$2 = $this.$wolfBody; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-4.0), (-2.0), (-3.0), 6, 9, 6, 0.0)); - var$1 = $this.$wolfBody; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 14.0; - var$1.$rotationPointZ = 2.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 21; - var$1.$textureOffsetY0 = 0; - $this.$wolfMane = var$1; - var$1 = $this.$wolfMane; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-4.0), (-3.0), (-3.0), 8, 6, 7, 0.0)); - var$1 = $this.$wolfMane; - var$1.$rotationPointX = (-1.0); - var$1.$rotationPointY = 14.0; - var$1.$rotationPointZ = 2.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 18; - $this.$wolfLeg1 = var$1; - var$1 = $this.$wolfLeg1; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, 8, 2, 0.0)); - var$1 = $this.$wolfLeg1; - var$1.$rotationPointX = (-2.5); - var$1.$rotationPointY = 16.0; - var$1.$rotationPointZ = 7.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 18; - $this.$wolfLeg2 = var$1; - var$1 = $this.$wolfLeg2; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, 8, 2, 0.0)); - var$1 = $this.$wolfLeg2; - var$1.$rotationPointX = 0.5; - var$1.$rotationPointY = 16.0; - var$1.$rotationPointZ = 7.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 18; - $this.$wolfLeg3 = var$1; - var$1 = $this.$wolfLeg3; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, 8, 2, 0.0)); - var$1 = $this.$wolfLeg3; - var$1.$rotationPointX = (-2.5); - var$1.$rotationPointY = 16.0; - var$1.$rotationPointZ = (-4.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 18; - $this.$wolfLeg4 = var$1; - var$1 = $this.$wolfLeg4; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, 8, 2, 0.0)); - var$1 = $this.$wolfLeg4; - var$1.$rotationPointX = 0.5; - var$1.$rotationPointY = 16.0; - var$1.$rotationPointZ = (-4.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 9; - var$1.$textureOffsetY0 = 18; - $this.$wolfTail = var$1; - nms_ModelRenderer_addBox($this.$wolfTail, (-1.0), 0.0, (-1.0), 2, 8, 2, 0.0); - nms_ModelRenderer_setRotationPoint($this.$wolfTail, (-1.0), 12.0, 8.0); - var$1 = $this.$wolfHeadMain; - var$1.$textureOffsetX0 = 16; - var$1.$textureOffsetY0 = 14; - nms_ModelRenderer_addBox(var$1, (-3.0), (-5.0), 0.0, 2, 2, 1, 0.0); - nms_ModelRenderer_addBox(nms_ModelRenderer_setTextureOffset($this.$wolfHeadMain, 16, 14), 1.0, (-5.0), 0.0, 2, 2, 1, 0.0); - nms_ModelRenderer_addBox(nms_ModelRenderer_setTextureOffset($this.$wolfHeadMain, 0, 10), (-1.5), 0.0, (-5.0), 3, 3, 4, 0.0); -} -function nms_ModelWolf_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, var$9; - $this.$wolfHeadMain.$rotateAngleX = $par6 / 57.2957763671875; - $this.$wolfHeadMain.$rotateAngleY = $par5 / 57.2957763671875; - $this.$wolfTail.$rotateAngleX = $par4; - if (!$this.$isChild0) { - nms_ModelRenderer_renderWithRotation($this.$wolfHeadMain, $par7); - nms_ModelRenderer_render($this.$wolfBody, $par7); - nms_ModelRenderer_render($this.$wolfLeg1, $par7); - nms_ModelRenderer_render($this.$wolfLeg2, $par7); - nms_ModelRenderer_render($this.$wolfLeg3, $par7); - nms_ModelRenderer_render($this.$wolfLeg4, $par7); - nms_ModelRenderer_renderWithRotation($this.$wolfTail, $par7); - nms_ModelRenderer_render($this.$wolfMane, $par7); - } else { - nleg_EaglerAdapterGL30_glPushMatrix(); - $par3 = 5.0 * $par7; - $par4 = 2.0 * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = $par4; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $par1Entity = new ji_PrintStream; - $par1Entity.$out = new jl_ConsoleOutputStreamStderr; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - $par1Entity.$sb = var$8; - $par1Entity.$buffer0 = $rt_createCharArray(32); - $par1Entity.$autoFlush = 0; - var$8 = new jnci_UTF8Charset; - jnc_Charset__init_(var$8, $rt_s(2), $rt_createArray(jl_String, 0)); - $par1Entity.$charset = var$8; - jl_System_errCache = $par1Entity; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - nms_ModelRenderer_renderWithRotation($this.$wolfHeadMain, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.5; - $par1Entity.$y = 0.5; - $par1Entity.$z = 0.5; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - $par3 = 24.0 * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = 0.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - nms_ModelRenderer_render($this.$wolfBody, $par7); - nms_ModelRenderer_render($this.$wolfLeg1, $par7); - nms_ModelRenderer_render($this.$wolfLeg2, $par7); - nms_ModelRenderer_render($this.$wolfLeg3, $par7); - nms_ModelRenderer_render($this.$wolfLeg4, $par7); - nms_ModelRenderer_renderWithRotation($this.$wolfTail, $par7); - nms_ModelRenderer_render($this.$wolfMane, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_ModelWolf_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - var $var5, var$6, var$7, var$8, var$9; - $var5 = $par1EntityLiving; - if (!(nms_DataWatcher_getWatchableObjectByte($var5.$dataWatcher, 16) & 2) ? 0 : 1) - $this.$wolfTail.$rotateAngleY = 0.0; - else { - $par1EntityLiving = $this.$wolfTail; - var$6 = $par2 * 0.6661999821662903; - $par1EntityLiving.$rotateAngleY = nms_MathHelper_SIN_TABLE.data[(var$6 * 10430.3779296875 + 16384.0 | 0) & 65535] * 1.399999976158142 * $par3; - } - if (!(nms_DataWatcher_getWatchableObjectByte($var5.$dataWatcher, 16) & 1) ? 0 : 1) { - $par1EntityLiving = $this.$wolfMane; - $par1EntityLiving.$rotationPointX = (-1.0); - $par1EntityLiving.$rotationPointY = 16.0; - $par1EntityLiving.$rotationPointZ = (-3.0); - $this.$wolfMane.$rotateAngleX = 1.2566370964050293; - $this.$wolfMane.$rotateAngleY = 0.0; - $par1EntityLiving = $this.$wolfBody; - $par1EntityLiving.$rotationPointX = 0.0; - $par1EntityLiving.$rotationPointY = 18.0; - $par1EntityLiving.$rotationPointZ = 0.0; - $this.$wolfBody.$rotateAngleX = 0.7853981852531433; - $par1EntityLiving = $this.$wolfTail; - $par1EntityLiving.$rotationPointX = (-1.0); - $par1EntityLiving.$rotationPointY = 21.0; - $par1EntityLiving.$rotationPointZ = 6.0; - $par1EntityLiving = $this.$wolfLeg1; - $par1EntityLiving.$rotationPointX = (-2.5); - $par1EntityLiving.$rotationPointY = 22.0; - $par1EntityLiving.$rotationPointZ = 2.0; - $this.$wolfLeg1.$rotateAngleX = 4.71238899230957; - $par1EntityLiving = $this.$wolfLeg2; - $par1EntityLiving.$rotationPointX = 0.5; - $par1EntityLiving.$rotationPointY = 22.0; - $par1EntityLiving.$rotationPointZ = 2.0; - $this.$wolfLeg2.$rotateAngleX = 4.71238899230957; - $this.$wolfLeg3.$rotateAngleX = 5.811946868896484; - $par1EntityLiving = $this.$wolfLeg3; - $par1EntityLiving.$rotationPointX = (-2.490000009536743); - $par1EntityLiving.$rotationPointY = 17.0; - $par1EntityLiving.$rotationPointZ = (-4.0); - $this.$wolfLeg4.$rotateAngleX = 5.811946868896484; - $par1EntityLiving = $this.$wolfLeg4; - $par1EntityLiving.$rotationPointX = 0.5099999904632568; - $par1EntityLiving.$rotationPointY = 17.0; - $par1EntityLiving.$rotationPointZ = (-4.0); - } else { - $par1EntityLiving = $this.$wolfBody; - $par1EntityLiving.$rotationPointX = 0.0; - $par1EntityLiving.$rotationPointY = 14.0; - $par1EntityLiving.$rotationPointZ = 2.0; - $this.$wolfBody.$rotateAngleX = 1.5707963705062866; - $par1EntityLiving = $this.$wolfMane; - $par1EntityLiving.$rotationPointX = (-1.0); - $par1EntityLiving.$rotationPointY = 14.0; - $par1EntityLiving.$rotationPointZ = (-3.0); - $this.$wolfMane.$rotateAngleX = $this.$wolfBody.$rotateAngleX; - $par1EntityLiving = $this.$wolfTail; - $par1EntityLiving.$rotationPointX = (-1.0); - $par1EntityLiving.$rotationPointY = 12.0; - $par1EntityLiving.$rotationPointZ = 8.0; - $par1EntityLiving = $this.$wolfLeg1; - $par1EntityLiving.$rotationPointX = (-2.5); - $par1EntityLiving.$rotationPointY = 16.0; - $par1EntityLiving.$rotationPointZ = 7.0; - $par1EntityLiving = $this.$wolfLeg2; - $par1EntityLiving.$rotationPointX = 0.5; - $par1EntityLiving.$rotationPointY = 16.0; - $par1EntityLiving.$rotationPointZ = 7.0; - $par1EntityLiving = $this.$wolfLeg3; - $par1EntityLiving.$rotationPointX = (-2.5); - $par1EntityLiving.$rotationPointY = 16.0; - $par1EntityLiving.$rotationPointZ = (-4.0); - $par1EntityLiving = $this.$wolfLeg4; - $par1EntityLiving.$rotationPointX = 0.5; - $par1EntityLiving.$rotationPointY = 16.0; - $par1EntityLiving.$rotationPointZ = (-4.0); - $par1EntityLiving = $this.$wolfLeg1; - $par2 = $par2 * 0.6661999821662903; - var$7 = nms_MathHelper_SIN_TABLE.data; - var$8 = ($par2 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par1EntityLiving.$rotateAngleX = var$7[var$8] * 1.399999976158142 * $par3; - $par1EntityLiving = $this.$wolfLeg2; - $par2 = $par2 + 3.1415927410125732; - var$7 = nms_MathHelper_SIN_TABLE.data; - var$9 = ($par2 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par1EntityLiving.$rotateAngleX = var$7[var$9] * 1.399999976158142 * $par3; - $this.$wolfLeg3.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[var$9] * 1.399999976158142 * $par3; - $this.$wolfLeg4.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[var$8] * 1.399999976158142 * $par3; - } - $this.$wolfHeadMain.$rotateAngleZ = ($var5.$field_70924_f + ($var5.$field_70926_e - $var5.$field_70924_f) * $par4) * 0.15000000596046448 * 3.1415927410125732 + nms_EntityWolf_getShakeAngle($var5, $par4, 0.0); - $this.$wolfMane.$rotateAngleZ = nms_EntityWolf_getShakeAngle($var5, $par4, (-0.07999999821186066)); - $this.$wolfBody.$rotateAngleZ = nms_EntityWolf_getShakeAngle($var5, $par4, (-0.1599999964237213)); - $this.$wolfTail.$rotateAngleZ = nms_EntityWolf_getShakeAngle($var5, $par4, (-0.20000000298023224)); -} -function nms_ModelWolf_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - $this.$wolfHeadMain.$rotateAngleX = $par5 / 57.2957763671875; - $this.$wolfHeadMain.$rotateAngleY = $par4 / 57.2957763671875; - $this.$wolfTail.$rotateAngleX = $par3; -} -function nms_EntityChicken() { - var a = this; nms_EntityAnimal.call(a); - a.$field_70885_d = 0; - a.$field_70886_e = 0.0; - a.$destPos = 0.0; - a.$field_70884_g = 0.0; - a.$field_70888_h = 0.0; - a.$field_70889_i = 0.0; - a.$timeUntilNextEgg = 0; -} -function nms_EntityChicken__init_0() { - var var_0 = new nms_EntityChicken(); - nms_EntityChicken__init_(var_0); - return var_0; -} -function nms_EntityChicken__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$field_98056_d = (-1.0); - $this.$breeding = 0; - $this.$field_70885_d = 0; - $this.$field_70886_e = 0.0; - $this.$destPos = 0.0; - $this.$field_70889_i = 1.0; - nms_EntityAgeable_setSize($this, 0.30000001192092896, 0.699999988079071); - $this.$timeUntilNextEgg = (Math.random() * 6000.0 | 0) + 6000 | 0; -} -function nms_EntityChicken_isAIEnabled($this) { - return 1; -} -function nms_EntityChicken_getMaxHealth($this) { - return 4; -} -function nms_EntityChicken_onLivingUpdate($this) { - var var$1, var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityAnimal_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - $this.$field_70888_h = $this.$field_70886_e; - $this.$field_70884_g = $this.$destPos; - $this.$destPos = $this.$destPos + (!$this.$onGround ? 4 : (-1)) * 0.3; - if ($this.$destPos < 0.0) - $this.$destPos = 0.0; - if ($this.$destPos > 1.0) - $this.$destPos = 1.0; - if (!$this.$onGround && $this.$field_70889_i < 1.0) - $this.$field_70889_i = 1.0; - $this.$field_70889_i = $this.$field_70889_i * 0.9; - if (!$this.$onGround && $this.$motionY < 0.0) - $this.$motionY = $this.$motionY * 0.6; - $this.$field_70886_e = $this.$field_70886_e + $this.$field_70889_i * 2.0; - var$1 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0 ? 0 : 1; - if (!var$1 && !$this.$worldObj.$isRemote) { - var$1 = $this.$timeUntilNextEgg - 1 | 0; - $this.$timeUntilNextEgg = var$1; - if (var$1 <= 0) { - var$2 = (Math.random() - Math.random()) * 0.20000000298023224 + 1.0; - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1217), 1.0, var$2); - nms_Item_$callClinit(); - var$1 = nms_Item_egg.$itemID; - var$3 = new nms_ItemStack; - var$3.$stackSize = 0; - var$3.$itemFrame = null; - var$3.$itemID0 = var$1; - var$3.$stackSize = 1; - var$3.$itemDamage = 0; - if (var$3.$itemDamage < 0) - var$3.$itemDamage = 0; - var$4 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$4.$dataWatcher, 10, var$3); - nms_DataWatcher_setObjectWatched(var$4.$dataWatcher, 10); - var$4.$delayBeforeCanPickup = 10; - var$3 = $this.$worldObj; - var$1 = nms_World_spawnEntityInWorld(var$3, var$4); - var$5 = var$3.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$4, var$5); - if (!var$1) { - var$3 = var$3.$entitySpawnQueue; - ju_HashMap_putImpl(var$3.$backingMap, var$4, var$3); - } - $this.$timeUntilNextEgg = (Math.random() * 6000.0 | 0) + 6000 | 0; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $ptr); -} -function nms_EntityChicken_fall($this, $par1) { - return; -} -function nms_EntityChicken_getLivingSound($this) { - return $rt_s(1218); -} -function nms_EntityChicken_getHurtSound($this) { - return $rt_s(1219); -} -function nms_EntityChicken_getDeathSound($this) { - return $rt_s(1219); -} -function nms_EntityChicken_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1220), 0.15000000596046448, 1.0); -} -function nms_EntityChicken_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_feather.$itemID; -} -function nms_EntityChicken_dropFewItems($this, $par1, $par2) { - var $var3, $var4, var$5, var$6, var$7; - $var3 = Math.random() * 3.0 | 0; - $par1 = 1 + $par2 | 0; - $var3 = $var3 + (Math.random() * $par1 | 0) | 0; - $var4 = 0; - while ($var4 < $var3) { - nms_Item_$callClinit(); - $par1 = nms_Item_feather.$itemID; - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par1; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$6 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$6.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$6.$dataWatcher, 10); - var$6.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$5, var$6); - var$7 = var$5.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$6, var$7); - if (!$par1) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$6, var$5); - } - $var4 = $var4 + 1 | 0; - } - if (!($this.$fire <= 0 && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 1) ? 0 : 1) ? 0 : 1)) { - nms_Item_$callClinit(); - $par1 = nms_Item_chickenRaw.$itemID; - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par1; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$6 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$6.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$6.$dataWatcher, 10); - var$6.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$5, var$6); - var$7 = var$5.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$6, var$7); - if (!$par1) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$6, var$5); - } - } else { - nms_Item_$callClinit(); - $par1 = nms_Item_chickenCooked.$itemID; - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par1; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$6 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$6.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$6.$dataWatcher, 10); - var$6.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$5, var$6); - var$7 = var$5.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$6, var$7); - if (!$par1) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$6, var$5); - } - } -} -function nms_EntityChicken_spawnBabyAnimal($this, $par1EntityAgeable) { - var $c; - $c = nms_EntityChicken__init_0(); - $par1EntityAgeable = $this.$worldObj; - $c.$worldObj = $par1EntityAgeable; - $c.$dimension = $par1EntityAgeable.$provider.$dimensionId; - return $c; -} -function nms_EntityChicken_isBreedingItem($this, $par1ItemStack) { - var var$2; - a: { - if ($par1ItemStack !== null) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par1ItemStack.$itemID0] instanceof nms_ItemSeeds) { - var$2 = 1; - break a; - } - } - var$2 = 0; - } - return var$2; -} -function nms_EntityChicken_createChild($this, $par1EntityAgeable) { - var var$2; - $par1EntityAgeable = nms_EntityChicken__init_0(); - var$2 = $this.$worldObj; - $par1EntityAgeable.$worldObj = var$2; - $par1EntityAgeable.$dimension = var$2.$provider.$dimensionId; - return $par1EntityAgeable; -} -function nms_RenderChicken() { - nms_RenderLiving.call(this); -} -var nms_RenderChicken_entityTexture = null; -function nms_RenderChicken__init_(var_0, var_1) { - var var_2 = new nms_RenderChicken(); - nms_RenderChicken__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_RenderChicken__init_0($this, $par1ModelBase, $par2) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = $par1ModelBase; - $this.$shadowSize = $par2; -} -function nms_RenderChicken_renderChicken($this, $par1EntityChicken, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityChicken = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityChicken, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityChicken, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderChicken_getWingRotation($this, $par1EntityChicken, $par2) { - var $var3, $var4; - $var3 = $par1EntityChicken.$field_70888_h + ($par1EntityChicken.$field_70886_e - $par1EntityChicken.$field_70888_h) * $par2; - $var4 = $par1EntityChicken.$field_70884_g + ($par1EntityChicken.$destPos - $par1EntityChicken.$field_70884_g) * $par2; - return (nms_MathHelper_SIN_TABLE.data[($var3 * 10430.3779296875 | 0) & 65535] + 1.0) * $var4; -} -function nms_RenderChicken_handleRotationFloat($this, $par1EntityLiving, $par2) { - return nms_RenderChicken_getWingRotation($this, $par1EntityLiving, $par2); -} -function nms_RenderChicken_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderChicken_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderChicken_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderChicken_entityTexture); -} -function nms_RenderChicken__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1221); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderChicken_entityTexture = var$1; -} -function nms_ModelChicken() { - var a = this; nms_ModelBase.call(a); - a.$head0 = null; - a.$body0 = null; - a.$rightLeg = null; - a.$leftLeg = null; - a.$rightWing = null; - a.$leftWing = null; - a.$bill = null; - a.$chin = null; -} -function nms_ModelChicken__init_0() { - var var_0 = new nms_ModelChicken(); - nms_ModelChicken__init_(var_0); - return var_0; -} -function nms_ModelChicken__init_($this) { - var var$1; - nms_ModelBase__init_0($this); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - $this.$head0 = var$1; - var$1 = $this.$head0; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-2.0), (-6.0), (-2.0), 4, 6, 3, 0.0)); - var$1 = $this.$head0; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 15.0; - var$1.$rotationPointZ = (-4.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 14; - var$1.$textureOffsetY0 = 0; - $this.$bill = var$1; - var$1 = $this.$bill; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-2.0), (-4.0), (-4.0), 4, 2, 2, 0.0)); - var$1 = $this.$bill; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 15.0; - var$1.$rotationPointZ = (-4.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 14; - var$1.$textureOffsetY0 = 4; - $this.$chin = var$1; - var$1 = $this.$chin; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), (-2.0), (-3.0), 2, 2, 2, 0.0)); - var$1 = $this.$chin; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 15.0; - var$1.$rotationPointZ = (-4.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 9; - $this.$body0 = var$1; - var$1 = $this.$body0; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-3.0), (-4.0), (-3.0), 6, 8, 6, 0.0)); - var$1 = $this.$body0; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 16.0; - var$1.$rotationPointZ = 0.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 26; - var$1.$textureOffsetY0 = 0; - $this.$rightLeg = var$1; - var$1 = $this.$rightLeg; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), 0.0, (-3.0), 3, 5, 3, 0.0)); - var$1 = $this.$rightLeg; - var$1.$rotationPointX = (-2.0); - var$1.$rotationPointY = 19.0; - var$1.$rotationPointZ = 1.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 26; - var$1.$textureOffsetY0 = 0; - $this.$leftLeg = var$1; - var$1 = $this.$leftLeg; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), 0.0, (-3.0), 3, 5, 3, 0.0)); - var$1 = $this.$leftLeg; - var$1.$rotationPointX = 1.0; - var$1.$rotationPointY = 19.0; - var$1.$rotationPointZ = 1.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 24; - var$1.$textureOffsetY0 = 13; - $this.$rightWing = var$1; - var$1 = $this.$rightWing; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, 0.0, (-3.0), 1, 4, 6, 0.0)); - var$1 = $this.$rightWing; - var$1.$rotationPointX = (-4.0); - var$1.$rotationPointY = 13.0; - var$1.$rotationPointZ = 0.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 24; - var$1.$textureOffsetY0 = 13; - $this.$leftWing = var$1; - var$1 = $this.$leftWing; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), 0.0, (-3.0), 1, 4, 6, 0.0)); - var$1 = $this.$leftWing; - var$1.$rotationPointX = 4.0; - var$1.$rotationPointY = 13.0; - var$1.$rotationPointZ = 0.0; -} -function nms_ModelChicken_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, var$9, var$10, var$11; - nms_ModelChicken_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - if (!$this.$isChild0) { - nms_ModelRenderer_render($this.$head0, $par7); - nms_ModelRenderer_render($this.$bill, $par7); - nms_ModelRenderer_render($this.$chin, $par7); - nms_ModelRenderer_render($this.$body0, $par7); - nms_ModelRenderer_render($this.$rightLeg, $par7); - nms_ModelRenderer_render($this.$leftLeg, $par7); - nms_ModelRenderer_render($this.$rightWing, $par7); - nms_ModelRenderer_render($this.$leftWing, $par7); - } else { - nleg_EaglerAdapterGL30_glPushMatrix(); - $par3 = 5.0 * $par7; - $par4 = 2.0 * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = $par4; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - nms_ModelRenderer_render($this.$head0, $par7); - nms_ModelRenderer_render($this.$bill, $par7); - nms_ModelRenderer_render($this.$chin, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.5; - $par1Entity.$y = 0.5; - $par1Entity.$z = 0.5; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$10 = jl_System_errCache; - var$8 = var$10.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$11 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$11, var$11 + 1 | 0); - var$8.$buffer.data[var$11] = 10; - ji_PrintStream_printSB(var$10); - } - $par3 = 24.0 * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = 0.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - nms_ModelRenderer_render($this.$body0, $par7); - nms_ModelRenderer_render($this.$rightLeg, $par7); - nms_ModelRenderer_render($this.$leftLeg, $par7); - nms_ModelRenderer_render($this.$rightWing, $par7); - nms_ModelRenderer_render($this.$leftWing, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_ModelChicken_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - $this.$head0.$rotateAngleX = $par5 / 57.2957763671875; - $this.$head0.$rotateAngleY = $par4 / 57.2957763671875; - $this.$bill.$rotateAngleX = $this.$head0.$rotateAngleX; - $this.$bill.$rotateAngleY = $this.$head0.$rotateAngleY; - $this.$chin.$rotateAngleX = $this.$head0.$rotateAngleX; - $this.$chin.$rotateAngleY = $this.$head0.$rotateAngleY; - $this.$body0.$rotateAngleX = 1.5707963705062866; - $par7Entity = $this.$rightLeg; - $par5 = $par1 * 0.6661999821662903; - $par7Entity.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[($par5 * 10430.3779296875 + 16384.0 | 0) & 65535] * 1.399999976158142 * $par2; - $par7Entity = $this.$leftLeg; - $par1 = $par5 + 3.1415927410125732; - $par7Entity.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * 1.399999976158142 * $par2; - $this.$rightWing.$rotateAngleZ = $par3; - $this.$leftWing.$rotateAngleZ = -$par3; -} -function nms_EntityOcelot() { - nms_EntityTameable.call(this); -} -function nms_EntityOcelot__init_0() { - var var_0 = new nms_EntityOcelot(); - nms_EntityOcelot__init_(var_0); - return var_0; -} -function nms_EntityOcelot__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$field_98056_d = (-1.0); - $this.$breeding = 0; - nms_EntityAgeable_setSize($this, 0.6000000238418579, 0.800000011920929); -} -function nms_EntityOcelot_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 0; - nms_DataWatcher_addObject(var$1, 12, var$2); - var$2 = $this.$dataWatcher; - var$1 = new jl_Byte; - var$1.$value4 = 0; - nms_DataWatcher_addObject(var$2, 16, var$1); - nms_DataWatcher_addObject($this.$dataWatcher, 17, $rt_s(44)); - var$2 = $this.$dataWatcher; - var$1 = new jl_Byte; - var$1.$value4 = 0; - nms_DataWatcher_addObject(var$2, 18, var$1); -} -function nms_EntityOcelot_updateAITick($this) { - var $var1; - if (!$this.$moveHelper.$update2) { - nms_Entity_setFlag($this, 1, 0); - nms_Entity_setFlag($this, 3, 0); - } else { - $var1 = $this.$moveHelper.$speed; - if ($var1 === 0.18000000715255737) { - nms_Entity_setFlag($this, 1, 1); - nms_Entity_setFlag($this, 3, 0); - } else if ($var1 !== 0.4000000059604645) { - nms_Entity_setFlag($this, 1, 0); - nms_Entity_setFlag($this, 3, 0); - } else { - nms_Entity_setFlag($this, 1, 0); - nms_Entity_setFlag($this, 3, 1); - } - } -} -function nms_EntityOcelot_canDespawn($this) { - return (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1) ? 0 : 1; -} -function nms_EntityOcelot_isAIEnabled($this) { - return 1; -} -function nms_EntityOcelot_getMaxHealth($this) { - return 10; -} -function nms_EntityOcelot_fall($this, $par1) { - return; -} -function nms_EntityOcelot_getLivingSound($this) { - return !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1) ? $rt_s(44) : ($this.$inLove <= 0 ? 0 : 1) ? $rt_s(1222) : Math.random() * 4.0 | 0 ? $rt_s(1223) : $rt_s(1224); -} -function nms_EntityOcelot_getHurtSound($this) { - return $rt_s(1225); -} -function nms_EntityOcelot_getDeathSound($this) { - return $rt_s(1225); -} -function nms_EntityOcelot_getSoundVolume($this) { - return 0.4000000059604645; -} -function nms_EntityOcelot_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_leather.$itemID; -} -function nms_EntityOcelot_dropFewItems($this, $par1, $par2) { - return; -} -function nms_EntityOcelot_spawnBabyAnimal($this, $par1EntityAgeable) { - var $var2, var$3, var$4; - $var2 = new nms_EntityOcelot; - nms_EntityLiving__init_0($var2); - $var2.$hasAttacked = 0; - $var2.$fleeingTick = 0; - $var2.$field_98056_d = (-1.0); - $var2.$breeding = 0; - nms_EntityAgeable_setSize($var2, 0.6000000238418579, 0.800000011920929); - $par1EntityAgeable = $this.$worldObj; - $var2.$worldObj = $par1EntityAgeable; - $var2.$dimension = $par1EntityAgeable.$provider.$dimensionId; - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1) { - var$3 = nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 17); - nms_DataWatcher_updateObject($var2.$dataWatcher, 17, var$3); - nms_EntityTameable_setTamed($var2, 1); - var$4 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 18); - $par1EntityAgeable = $var2.$dataWatcher; - var$4 = var$4 << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = var$4; - nms_DataWatcher_updateObject($par1EntityAgeable, 18, var$3); - } - return $var2; -} -function nms_EntityOcelot_isBreedingItem($this, $par1ItemStack) { - var var$2; - a: { - if ($par1ItemStack !== null) { - var$2 = $par1ItemStack.$itemID0; - nms_Item_$callClinit(); - if (var$2 == nms_Item_fishRaw.$itemID) { - var$2 = 1; - break a; - } - } - var$2 = 0; - } - return var$2; -} -function nms_EntityOcelot_getTameSkin($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 18); -} -function nms_EntityOcelot_setTameSkin($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = $par1 << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 18, var$3); -} -function nms_EntityOcelot_getEntityName($this) { - var var$1, var$2, var$3; - if (nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 5).$characters.data.length <= 0 ? 0 : 1) - var$1 = nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 5); - else if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1) - var$1 = $rt_s(1226); - else if (nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 5).$characters.data.length <= 0 ? 0 : 1) - var$1 = nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 5); - else { - var$1 = nms_EntityList_classToStringMapping; - 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; - } - } - var$1 = var$1 === null ? null : var$1.$value0; - if (var$1 === null) - var$1 = $rt_s(681); - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(682)); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$1); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(683)); - var$1 = jl_String__init_0(var$2.$buffer, 0, var$2.$length); - var$1 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$1); - } - return var$1; -} -function nms_EntityOcelot_initCreature($this) { - var $var1, $var2, var$3, var$4, var$5, var$6; - a: { - if (!(Math.random() * 7.0 | 0)) { - $var1 = 0; - while (true) { - if ($var1 >= 2) - break a; - $var2 = new nms_EntityOcelot; - nms_EntityLiving__init_0($var2); - $var2.$hasAttacked = 0; - $var2.$fleeingTick = 0; - $var2.$field_98056_d = (-1.0); - $var2.$breeding = 0; - nms_EntityAgeable_setSize($var2, 0.6000000238418579, 0.800000011920929); - var$3 = $this.$worldObj; - $var2.$worldObj = var$3; - $var2.$dimension = var$3.$provider.$dimensionId; - nms_Entity_setLocationAndAngles($var2, $this.$posX, $this.$posY, $this.$posZ, $this.$rotationYaw, 0.0); - nms_DataWatcher_updateObject($var2.$dataWatcher, 12, jl_Integer_valueOf((-24000))); - var$4 = !(nms_DataWatcher_getWatchableObjectInt($var2.$dataWatcher, 12) >= 0 ? 0 : 1) ? 1.0 : 0.5; - nms_Entity_setSize($var2, $var2.$field_98056_d * var$4, $var2.$field_98057_e * var$4); - var$5 = $this.$worldObj; - var$6 = nms_World_spawnEntityInWorld(var$5, $var2); - var$3 = var$5.$entityList; - ju_HashMap_putImpl(var$3.$backingMap, $var2, var$3); - if (!var$6) { - var$3 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$3.$backingMap, $var2, var$3); - } - $var1 = $var1 + 1 | 0; - } - } - } -} -function nms_EntityOcelot_createChild($this, $par1EntityAgeable) { - var var$2, var$3, var$4; - $par1EntityAgeable = new nms_EntityOcelot; - nms_EntityLiving__init_0($par1EntityAgeable); - $par1EntityAgeable.$hasAttacked = 0; - $par1EntityAgeable.$fleeingTick = 0; - $par1EntityAgeable.$field_98056_d = (-1.0); - $par1EntityAgeable.$breeding = 0; - nms_EntityAgeable_setSize($par1EntityAgeable, 0.6000000238418579, 0.800000011920929); - var$2 = $this.$worldObj; - $par1EntityAgeable.$worldObj = var$2; - $par1EntityAgeable.$dimension = var$2.$provider.$dimensionId; - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 4) ? 0 : 1) { - var$3 = nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 17); - nms_DataWatcher_updateObject($par1EntityAgeable.$dataWatcher, 17, var$3); - nms_EntityTameable_setTamed($par1EntityAgeable, 1); - var$4 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 18); - var$2 = $par1EntityAgeable.$dataWatcher; - var$4 = var$4 << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = var$4; - nms_DataWatcher_updateObject(var$2, 18, var$3); - } - return $par1EntityAgeable; -} -function nms_RenderOcelot() { - nms_RenderLiving.call(this); -} -var nms_RenderOcelot_entityTexture0 = null; -var nms_RenderOcelot_entityTexture1 = null; -var nms_RenderOcelot_entityTexture2 = null; -var nms_RenderOcelot_entityTexture3 = null; -function nms_RenderOcelot__init_(var_0, var_1) { - var var_2 = new nms_RenderOcelot(); - nms_RenderOcelot__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_RenderOcelot__init_0($this, $par1ModelBase, $par2) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = $par1ModelBase; - $this.$shadowSize = $par2; -} -function nms_RenderOcelot_renderLivingOcelot($this, $par1EntityOcelot, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityOcelot = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityOcelot, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityOcelot, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderOcelot_preRenderOcelot($this, $par1EntityOcelot, $par2) { - var var$3, var$4, var$5; - if (!(nms_DataWatcher_getWatchableObjectByte($par1EntityOcelot.$dataWatcher, 16) & 4) ? 0 : 1) { - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityOcelot = nleg_EaglerAdapterGL30_deevis; - $par1EntityOcelot.$x = 0.800000011920929; - $par1EntityOcelot.$y = 0.800000011920929; - $par1EntityOcelot.$z = 0.800000011920929; - $par1EntityOcelot = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityOcelot, $par1EntityOcelot); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityOcelot = new jl_StringBuilder; - $par1EntityOcelot.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityOcelot; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityOcelot = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityOcelot, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityOcelot; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } - } -} -function nms_RenderOcelot_preRenderCallback($this, $par1EntityLiving, $par2) { - var var$3, var$4, var$5; - if (!(nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 16) & 4) ? 0 : 1) { - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = 0.800000011920929; - $par1EntityLiving.$y = 0.800000011920929; - $par1EntityLiving.$z = 0.800000011920929; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityLiving; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityLiving; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } - } -} -function nms_RenderOcelot_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderOcelot_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderOcelot_bindTexture($this, $par1EntityLiving) { - a: { - switch (nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 18)) { - case 0: - break; - case 1: - nle_TextureLocation_bindTexture(nms_RenderOcelot_entityTexture1); - break a; - case 2: - nle_TextureLocation_bindTexture(nms_RenderOcelot_entityTexture2); - break a; - case 3: - nle_TextureLocation_bindTexture(nms_RenderOcelot_entityTexture3); - break a; - default: - } - nle_TextureLocation_bindTexture(nms_RenderOcelot_entityTexture0); - } -} -function nms_RenderOcelot__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1227); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderOcelot_entityTexture0 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1228); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderOcelot_entityTexture1 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1229); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderOcelot_entityTexture2 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1230); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderOcelot_entityTexture3 = var$1; -} -function nms_ModelOcelot() { - var a = this; nms_ModelBase.call(a); - a.$ocelotBackLeftLeg = null; - a.$ocelotBackRightLeg = null; - a.$ocelotFrontLeftLeg = null; - a.$ocelotFrontRightLeg = null; - a.$ocelotTail = null; - a.$ocelotTail2 = null; - a.$ocelotHead = null; - a.$ocelotBody = null; - a.$field_78163_i = 0; -} -function nms_ModelOcelot__init_0() { - var var_0 = new nms_ModelOcelot(); - nms_ModelOcelot__init_(var_0); - return var_0; -} -function nms_ModelOcelot__init_($this) { - var var$1, var$2, var$3; - nms_ModelBase__init_0($this); - $this.$field_78163_i = 1; - var$1 = $this.$modelTextureMap; - var$2 = new nms_TextureOffset; - var$2.$textureOffsetX = 0; - var$2.$textureOffsetY = 0; - ju_HashMap_putImpl(var$1, $rt_s(1231), var$2); - var$1 = $this.$modelTextureMap; - var$2 = new nms_TextureOffset; - var$2.$textureOffsetX = 0; - var$2.$textureOffsetY = 24; - ju_HashMap_putImpl(var$1, $rt_s(1232), var$2); - var$1 = $this.$modelTextureMap; - var$2 = new nms_TextureOffset; - var$2.$textureOffsetX = 0; - var$2.$textureOffsetY = 10; - ju_HashMap_putImpl(var$1, $rt_s(1233), var$2); - var$1 = $this.$modelTextureMap; - var$2 = new nms_TextureOffset; - var$2.$textureOffsetX = 6; - var$2.$textureOffsetY = 10; - ju_HashMap_putImpl(var$1, $rt_s(1234), var$2); - $this.$ocelotHead = nms_ModelRenderer__init_($this, $rt_s(1235)); - nms_ModelRenderer_addBox0($this.$ocelotHead, $rt_s(213), (-2.5), (-2.0), (-3.0), 5, 4, 5); - nms_ModelRenderer_addBox0($this.$ocelotHead, $rt_s(1236), (-1.5), 0.0, (-4.0), 3, 2, 2); - nms_ModelRenderer_addBox0($this.$ocelotHead, $rt_s(1237), (-2.0), (-3.0), 0.0, 1, 1, 2); - nms_ModelRenderer_addBox0($this.$ocelotHead, $rt_s(1238), 1.0, (-3.0), 0.0, 1, 1, 2); - var$3 = $this.$ocelotHead; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = 15.0; - var$3.$rotationPointZ = (-9.0); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 20; - var$3.$textureOffsetY0 = 0; - $this.$ocelotBody = var$3; - var$3 = $this.$ocelotBody; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-2.0), 3.0, (-8.0), 4, 16, 6, 0.0)); - var$3 = $this.$ocelotBody; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = 12.0; - var$3.$rotationPointZ = (-10.0); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 15; - $this.$ocelotTail = var$3; - var$3 = $this.$ocelotTail; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-0.5), 0.0, 0.0, 1, 8, 1, 0.0)); - $this.$ocelotTail.$rotateAngleX = 0.8999999761581421; - var$3 = $this.$ocelotTail; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = 15.0; - var$3.$rotationPointZ = 8.0; - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 4; - var$3.$textureOffsetY0 = 15; - $this.$ocelotTail2 = var$3; - var$3 = $this.$ocelotTail2; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-0.5), 0.0, 0.0, 1, 8, 1, 0.0)); - var$3 = $this.$ocelotTail2; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = 20.0; - var$3.$rotationPointZ = 14.0; - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 8; - var$3.$textureOffsetY0 = 13; - $this.$ocelotBackLeftLeg = var$3; - var$3 = $this.$ocelotBackLeftLeg; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-1.0), 0.0, 1.0, 2, 6, 2, 0.0)); - var$3 = $this.$ocelotBackLeftLeg; - var$3.$rotationPointX = 1.100000023841858; - var$3.$rotationPointY = 18.0; - var$3.$rotationPointZ = 5.0; - var$3 = nms_ModelRenderer__init_0($this); - var$3.$textureOffsetX0 = 8; - var$3.$textureOffsetY0 = 13; - $this.$ocelotBackRightLeg = var$3; - nms_ModelRenderer_addBox1($this.$ocelotBackRightLeg, (-1.0), 0.0, 1.0, 2, 6, 2); - nms_ModelRenderer_setRotationPoint($this.$ocelotBackRightLeg, (-1.100000023841858), 18.0, 5.0); - $this.$ocelotFrontLeftLeg = nms_ModelRenderer__init_1($this, 40, 0); - nms_ModelRenderer_addBox1($this.$ocelotFrontLeftLeg, (-1.0), 0.0, 0.0, 2, 10, 2); - nms_ModelRenderer_setRotationPoint($this.$ocelotFrontLeftLeg, 1.2000000476837158, 13.800000190734863, (-5.0)); - $this.$ocelotFrontRightLeg = nms_ModelRenderer__init_1($this, 40, 0); - nms_ModelRenderer_addBox1($this.$ocelotFrontRightLeg, (-1.0), 0.0, 0.0, 2, 10, 2); - nms_ModelRenderer_setRotationPoint($this.$ocelotFrontRightLeg, (-1.2000000476837158), 13.800000190734863, (-5.0)); -} -function nms_ModelOcelot_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, var$9, var$10, var$11; - nms_ModelOcelot_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - if (!$this.$isChild0) { - nms_ModelRenderer_render($this.$ocelotHead, $par7); - nms_ModelRenderer_render($this.$ocelotBody, $par7); - nms_ModelRenderer_render($this.$ocelotTail, $par7); - nms_ModelRenderer_render($this.$ocelotTail2, $par7); - nms_ModelRenderer_render($this.$ocelotBackLeftLeg, $par7); - nms_ModelRenderer_render($this.$ocelotBackRightLeg, $par7); - nms_ModelRenderer_render($this.$ocelotFrontLeftLeg, $par7); - nms_ModelRenderer_render($this.$ocelotFrontRightLeg, $par7); - } else { - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.75; - $par1Entity.$y = 0.75; - $par1Entity.$z = 0.75; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - $par3 = 10.0 * $par7; - $par4 = 4.0 * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = $par4; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$10 = jl_System_errCache; - var$8 = var$10.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$11 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$11, var$11 + 1 | 0); - var$8.$buffer.data[var$11] = 10; - ji_PrintStream_printSB(var$10); - } - nms_ModelRenderer_render($this.$ocelotHead, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.5; - $par1Entity.$y = 0.5; - $par1Entity.$z = 0.5; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - $par3 = 24.0 * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = 0.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2($par1Entity, 16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - var$8.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = var$8; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - nms_ModelRenderer_render($this.$ocelotBody, $par7); - nms_ModelRenderer_render($this.$ocelotBackLeftLeg, $par7); - nms_ModelRenderer_render($this.$ocelotBackRightLeg, $par7); - nms_ModelRenderer_render($this.$ocelotFrontLeftLeg, $par7); - nms_ModelRenderer_render($this.$ocelotFrontRightLeg, $par7); - nms_ModelRenderer_render($this.$ocelotTail, $par7); - nms_ModelRenderer_render($this.$ocelotTail2, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_ModelOcelot_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var var$8, var$9, var$10; - $this.$ocelotHead.$rotateAngleX = $par5 / 57.2957763671875; - $this.$ocelotHead.$rotateAngleY = $par4 / 57.2957763671875; - if ($this.$field_78163_i != 3) { - $this.$ocelotBody.$rotateAngleX = 1.5707963705062866; - if ($this.$field_78163_i == 2) { - $par7Entity = $this.$ocelotBackLeftLeg; - $par5 = $par1 * 0.6661999821662903; - $par7Entity.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[($par5 * 10430.3779296875 + 16384.0 | 0) & 65535] * 1.0 * $par2; - $par7Entity = $this.$ocelotBackRightLeg; - $par4 = $par5 + 0.30000001192092896; - $par7Entity.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[($par4 * 10430.3779296875 + 16384.0 | 0) & 65535] * 1.0 * $par2; - $par7Entity = $this.$ocelotFrontLeftLeg; - $par5 = $par5 + 3.1415927410125732; - $par4 = $par5 + 0.30000001192092896; - $par7Entity.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[($par4 * 10430.3779296875 + 16384.0 | 0) & 65535] * 1.0 * $par2; - $this.$ocelotFrontRightLeg.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[($par5 * 10430.3779296875 + 16384.0 | 0) & 65535] * 1.0 * $par2; - $this.$ocelotTail2.$rotateAngleX = 1.72787606716156 + 0.3141592741012573 * nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * $par2; - } else { - $par7Entity = $this.$ocelotBackLeftLeg; - $par5 = $par1 * 0.6661999821662903; - var$8 = nms_MathHelper_SIN_TABLE.data; - var$9 = ($par5 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par7Entity.$rotateAngleX = var$8[var$9] * 1.0 * $par2; - $par7Entity = $this.$ocelotBackRightLeg; - $par4 = $par5 + 3.1415927410125732; - var$8 = nms_MathHelper_SIN_TABLE.data; - var$10 = ($par4 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par7Entity.$rotateAngleX = var$8[var$10] * 1.0 * $par2; - $this.$ocelotFrontLeftLeg.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[var$10] * 1.0 * $par2; - $this.$ocelotFrontRightLeg.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[var$9] * 1.0 * $par2; - if ($this.$field_78163_i != 1) - $this.$ocelotTail2.$rotateAngleX = 1.72787606716156 + 0.4712389409542084 * nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * $par2; - else - $this.$ocelotTail2.$rotateAngleX = 1.72787606716156 + 0.7853981852531433 * nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * $par2; - } - } -} -function nms_ModelOcelot_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - var $var5; - $var5 = $par1EntityLiving; - $this.$ocelotBody.$rotationPointY = 12.0; - $this.$ocelotBody.$rotationPointZ = (-10.0); - $this.$ocelotHead.$rotationPointY = 15.0; - $this.$ocelotHead.$rotationPointZ = (-9.0); - $this.$ocelotTail.$rotationPointY = 15.0; - $this.$ocelotTail.$rotationPointZ = 8.0; - $this.$ocelotTail2.$rotationPointY = 20.0; - $this.$ocelotTail2.$rotationPointZ = 14.0; - $par1EntityLiving = $this.$ocelotFrontLeftLeg; - $this.$ocelotFrontRightLeg.$rotationPointY = 13.800000190734863; - $par1EntityLiving.$rotationPointY = 13.800000190734863; - $par1EntityLiving = $this.$ocelotFrontLeftLeg; - $this.$ocelotFrontRightLeg.$rotationPointZ = (-5.0); - $par1EntityLiving.$rotationPointZ = (-5.0); - $par1EntityLiving = $this.$ocelotBackLeftLeg; - $this.$ocelotBackRightLeg.$rotationPointY = 18.0; - $par1EntityLiving.$rotationPointY = 18.0; - $par1EntityLiving = $this.$ocelotBackLeftLeg; - $this.$ocelotBackRightLeg.$rotationPointZ = 5.0; - $par1EntityLiving.$rotationPointZ = 5.0; - $this.$ocelotTail.$rotateAngleX = 0.8999999761581421; - if (!(nms_DataWatcher_getWatchableObjectByte($var5.$dataWatcher, 0) & 2) ? 0 : 1) { - $par1EntityLiving = $this.$ocelotBody; - $par1EntityLiving.$rotationPointY = $par1EntityLiving.$rotationPointY + 1.0; - $par1EntityLiving = $this.$ocelotHead; - $par1EntityLiving.$rotationPointY = $par1EntityLiving.$rotationPointY + 2.0; - $par1EntityLiving = $this.$ocelotTail; - $par1EntityLiving.$rotationPointY = $par1EntityLiving.$rotationPointY + 1.0; - $par1EntityLiving = $this.$ocelotTail2; - $par1EntityLiving.$rotationPointY = $par1EntityLiving.$rotationPointY + (-4.0); - $par1EntityLiving = $this.$ocelotTail2; - $par1EntityLiving.$rotationPointZ = $par1EntityLiving.$rotationPointZ + 2.0; - $this.$ocelotTail.$rotateAngleX = 1.5707963705062866; - $this.$ocelotTail2.$rotateAngleX = 1.5707963705062866; - $this.$field_78163_i = 0; - } else if (!(nms_DataWatcher_getWatchableObjectByte($var5.$dataWatcher, 0) & 8) ? 0 : 1) { - $this.$ocelotTail2.$rotationPointY = $this.$ocelotTail.$rotationPointY; - $par1EntityLiving = $this.$ocelotTail2; - $par1EntityLiving.$rotationPointZ = $par1EntityLiving.$rotationPointZ + 2.0; - $this.$ocelotTail.$rotateAngleX = 1.5707963705062866; - $this.$ocelotTail2.$rotateAngleX = 1.5707963705062866; - $this.$field_78163_i = 2; - } else if (!(!(nms_DataWatcher_getWatchableObjectByte($var5.$dataWatcher, 16) & 1) ? 0 : 1)) - $this.$field_78163_i = 1; - else { - $this.$ocelotBody.$rotateAngleX = 0.7853981852531433; - $par1EntityLiving = $this.$ocelotBody; - $par1EntityLiving.$rotationPointY = $par1EntityLiving.$rotationPointY + (-4.0); - $par1EntityLiving = $this.$ocelotBody; - $par1EntityLiving.$rotationPointZ = $par1EntityLiving.$rotationPointZ + 5.0; - $par1EntityLiving = $this.$ocelotHead; - $par1EntityLiving.$rotationPointY = $par1EntityLiving.$rotationPointY + (-3.299999952316284); - $par1EntityLiving = $this.$ocelotHead; - $par1EntityLiving.$rotationPointZ = $par1EntityLiving.$rotationPointZ + 1.0; - $par1EntityLiving = $this.$ocelotTail; - $par1EntityLiving.$rotationPointY = $par1EntityLiving.$rotationPointY + 8.0; - $par1EntityLiving = $this.$ocelotTail; - $par1EntityLiving.$rotationPointZ = $par1EntityLiving.$rotationPointZ + (-2.0); - $par1EntityLiving = $this.$ocelotTail2; - $par1EntityLiving.$rotationPointY = $par1EntityLiving.$rotationPointY + 2.0; - $par1EntityLiving = $this.$ocelotTail2; - $par1EntityLiving.$rotationPointZ = $par1EntityLiving.$rotationPointZ + (-0.800000011920929); - $this.$ocelotTail.$rotateAngleX = 1.72787606716156; - $this.$ocelotTail2.$rotateAngleX = 2.670353889465332; - $par1EntityLiving = $this.$ocelotFrontLeftLeg; - $this.$ocelotFrontRightLeg.$rotateAngleX = (-0.15707963705062866); - $par1EntityLiving.$rotateAngleX = (-0.15707963705062866); - $par1EntityLiving = $this.$ocelotFrontLeftLeg; - $this.$ocelotFrontRightLeg.$rotationPointY = 15.800000190734863; - $par1EntityLiving.$rotationPointY = 15.800000190734863; - $par1EntityLiving = $this.$ocelotFrontLeftLeg; - $this.$ocelotFrontRightLeg.$rotationPointZ = (-7.0); - $par1EntityLiving.$rotationPointZ = (-7.0); - $par1EntityLiving = $this.$ocelotBackLeftLeg; - $this.$ocelotBackRightLeg.$rotateAngleX = (-1.5707963705062866); - $par1EntityLiving.$rotateAngleX = (-1.5707963705062866); - $par1EntityLiving = $this.$ocelotBackLeftLeg; - $this.$ocelotBackRightLeg.$rotationPointY = 21.0; - $par1EntityLiving.$rotationPointY = 21.0; - $par1EntityLiving = $this.$ocelotBackLeftLeg; - $this.$ocelotBackRightLeg.$rotationPointZ = 1.0; - $par1EntityLiving.$rotationPointZ = 1.0; - $this.$field_78163_i = 3; - } -} -function nms_EntitySilverfish() { - nms_EntityMob.call(this); - this.$allySummonCooldown = 0; -} -function nms_EntitySilverfish__init_0() { - var var_0 = new nms_EntitySilverfish(); - nms_EntitySilverfish__init_(var_0); - return var_0; -} -function nms_EntitySilverfish__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - nms_Entity_setSize($this, 0.30000001192092896, 0.699999988079071); - $this.$moveSpeed = 0.6000000238418579; -} -function nms_EntitySilverfish_getMaxHealth($this) { - return 8; -} -function nms_EntitySilverfish_canTriggerWalking($this) { - return 0; -} -function nms_EntitySilverfish_findPlayerToAttack($this) { - return nms_World_getClosestVulnerablePlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 8.0); -} -function nms_EntitySilverfish_getLivingSound($this) { - return $rt_s(1239); -} -function nms_EntitySilverfish_getHurtSound($this) { - return $rt_s(1240); -} -function nms_EntitySilverfish_getDeathSound($this) { - return $rt_s(1241); -} -function nms_EntitySilverfish_attackEntityFrom($this, $par1DamageSource, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - if ($this.$allySummonCooldown <= 0 && !(!($par1DamageSource instanceof nms_EntityDamageSource) && $par1DamageSource !== nms_DamageSource_magic)) - $this.$allySummonCooldown = 20; - $ptr = 1; - case 1: - $tmp = nms_EntityMob_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $ptr); -} -function nms_EntitySilverfish_attackEntity($this, $par1Entity, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$attackTime <= 0 && $par2 < 1.2000000476837158 && $par1Entity.$boundingBox.$maxY > $this.$boundingBox.$minY && $par1Entity.$boundingBox.$minY < $this.$boundingBox.$maxY) { - $this.$attackTime = 20; - $ptr = 1; - continue main; - } - return; - case 1: - nms_EntityMob_attackEntityAsMob($this, $par1Entity); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $ptr); -} -function nms_EntitySilverfish_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1242), 0.15000000596046448, 1.0); -} -function nms_EntitySilverfish_getDropItemId($this) { - return 0; -} -function nms_EntitySilverfish_onUpdate($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: - $this.$renderYawOffset = $this.$rotationYaw; - $ptr = 1; - case 1: - nms_EntityLiving_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote && !$this.$worldObj.$difficultySetting) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_EntitySilverfish_updateEntityActionState($this) { - var var$1, $var1, $var2, $var3, $var4, $var5, $var6, $var7, var$9, $var9, $var3_0, $var2_0, $var8, $var1_0, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();$var1_0 = $thread.pop();$var8 = $thread.pop();$var2_0 = $thread.pop();$var3_0 = $thread.pop();$var9 = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityCreature_updateEntityActionState($this); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote) { - a: { - if ($this.$allySummonCooldown > 0) { - $this.$allySummonCooldown = $this.$allySummonCooldown - 1 | 0; - if (!$this.$allySummonCooldown) { - var$1 = $this.$posX; - $var1 = var$1 | 0; - if (var$1 < $var1) - $var1 = $var1 - 1 | 0; - var$1 = $this.$posY; - $var2 = var$1 | 0; - if (var$1 < $var2) - $var2 = $var2 - 1 | 0; - var$1 = $this.$posZ; - $var3 = var$1 | 0; - if (var$1 < $var3) - $var3 = $var3 - 1 | 0; - $var4 = 0; - $var5 = 0; - b: while (true) { - if ($var4) - break a; - if ($var5 > 5) - break a; - if ($var5 < (-5)) - break a; - $var6 = 0; - while (!$var4 && $var6 <= 10 && $var6 >= (-10)) { - $var7 = 0; - c: { - while (!$var4) { - if ($var7 > 10) - break c; - if ($var7 < (-10)) - break c; - var$9 = $this.$worldObj; - $var9 = $var1 + $var6 | 0; - $var3_0 = $var2 + $var5 | 0; - $var2_0 = $var3 + $var7 | 0; - $var8 = nms_World_getBlockId(var$9, $var9, $var3_0, $var2_0); - nms_Block_$callClinit(); - if ($var8 == nms_Block_silverfish.$blockID) - break b; - $var7 = $var7 > 0 ? 0 - $var7 | 0 : 1 - $var7 | 0; - } - } - $var6 = $var6 > 0 ? 0 - $var6 | 0 : 1 - $var6 | 0; - } - $var5 = $var5 > 0 ? 0 - $var5 | 0 : 1 - $var5 | 0; - } - var$9 = $this.$worldObj; - $var1_0 = 0; - $ptr = 4; - continue main; - } - } - } - if ($this.$entityToAttack === null && !($this.$pathToEntity === null ? 0 : 1)) { - var$1 = $this.$posX; - $var1_0 = var$1 | 0; - if (var$1 < $var1_0) - $var1_0 = $var1_0 - 1 | 0; - var$1 = $this.$posY + 0.5; - $var2_0 = var$1 | 0; - if (var$1 < $var2_0) - $var2_0 = $var2_0 - 1 | 0; - var$1 = $this.$posZ; - $var3_0 = var$1 | 0; - if (var$1 < $var3_0) - $var3_0 = $var3_0 - 1 | 0; - $var9 = Math.random() * 6.0 | 0; - $var5 = nms_World_getBlockId($this.$worldObj, $var1_0 + nms_Facing_offsetsXForSide.data[$var9] | 0, $var2_0 + nms_Facing_offsetsYForSide.data[$var9] | 0, $var3_0 + nms_Facing_offsetsZForSide.data[$var9] | 0); - if (nms_BlockSilverfish_getPosingIdByMetadata($var5)) { - var$9 = $this.$worldObj; - $var1 = $var1_0 + nms_Facing_offsetsXForSide.data[$var9] | 0; - $var2_0 = $var2_0 + nms_Facing_offsetsYForSide.data[$var9] | 0; - $var9 = $var3_0 + nms_Facing_offsetsZForSide.data[$var9] | 0; - nms_Block_$callClinit(); - $var3_0 = nms_Block_silverfish.$blockID; - $var4 = nms_BlockSilverfish_getMetadataForBlockType($var5); - $var5 = 3; - $ptr = 2; - continue main; - } - nms_EntityCreature_updateWanderPath($this); - } else if ($this.$entityToAttack !== null && !($this.$pathToEntity === null ? 0 : 1)) - $this.$entityToAttack = null; - } - return; - case 2: - nms_World_setBlock(var$9, $var1, $var2_0, $var9, $var3_0, $var4, $var5); - if ($rt_suspending()) { - break main; - } - $ptr = 3; - case 3: - nms_EntityLiving_spawnExplosionParticle($this); - if ($rt_suspending()) { - break main; - } - $this.$isDead = 1; - return; - case 4: - nms_World_destroyBlock(var$9, $var9, $var3_0, $var2_0, $var1_0); - if ($rt_suspending()) { - break main; - } - var$15 = nms_Block_silverfish; - var$9 = $this.$worldObj; - $var1_0 = 0; - $ptr = 5; - case 5: - var$15.$onBlockDestroyedByPlayer(var$9, $var9, $var3_0, $var2_0, $var1_0); - if ($rt_suspending()) { - break main; - } - $var9 = ju_Random_next($this.$rand0, 32) % 2 | 0 ? 0 : 1; - a: { - d: { - if ($var9) - $var4 = 1; - else - while (true) { - if ($var7 > 0) { - $var9 = 0; - $var7 = $var9 - $var7 | 0; - } else { - $var9 = 1; - $var7 = $var9 - $var7 | 0; - } - if ($var4) - break d; - $var9 = 10; - $var9 = $rt_compare($var7, $var9); - if ($var9 > 0) - break d; - $var9 = (-10); - $var9 = $rt_compare($var7, $var9); - if ($var9 < 0) - break; - var$9 = $this.$worldObj; - $var9 = $var1 + $var6 | 0; - $var3_0 = $var2 + $var5 | 0; - $var2_0 = $var3 + $var7 | 0; - $var8 = nms_World_getBlockId(var$9, $var9, $var3_0, $var2_0); - nms_Block_$callClinit(); - var$9 = nms_Block_silverfish; - $var1_0 = var$9.$blockID; - $var1_0 = $rt_compare($var8, $var1_0); - if ($var1_0) - continue; - else - break a; - } - } - e: while (true) { - $var6 = $var6 > 0 ? 0 - $var6 | 0 : 1 - $var6 | 0; - while (!(!$var4 && $var6 <= 10 && $var6 >= (-10))) { - $var5 = $var5 > 0 ? 0 - $var5 | 0 : 1 - $var5 | 0; - if ($var4) - break e; - if ($var5 > 5) - break e; - if ($var5 < (-5)) - break e; - $var6 = 0; - } - $var7 = 0; - while (!$var4) { - $var9 = 10; - $var9 = $rt_compare($var7, $var9); - if ($var9 > 0) - continue e; - $var9 = (-10); - $var9 = $rt_compare($var7, $var9); - if ($var9 < 0) - continue e; - var$9 = $this.$worldObj; - $var9 = $var1 + $var6 | 0; - $var3_0 = $var2 + $var5 | 0; - $var2_0 = $var3 + $var7 | 0; - $var8 = nms_World_getBlockId(var$9, $var9, $var3_0, $var2_0); - nms_Block_$callClinit(); - var$9 = nms_Block_silverfish; - $var1_0 = var$9.$blockID; - $var1_0 = $rt_compare($var8, $var1_0); - if (!$var1_0) - break a; - if ($var7 > 0) { - $var9 = 0; - $var7 = $var9 - $var7 | 0; - } else { - $var9 = 1; - $var7 = $var9 - $var7 | 0; - } - } - } - if ($this.$entityToAttack === null && !($this.$pathToEntity === null ? 0 : 1)) { - var$1 = $this.$posX; - $var1_0 = var$1 | 0; - if (var$1 < $var1_0) - $var1_0 = $var1_0 - 1 | 0; - var$1 = $this.$posY + 0.5; - $var2_0 = var$1 | 0; - if (var$1 < $var2_0) - $var2_0 = $var2_0 - 1 | 0; - var$1 = $this.$posZ; - $var3_0 = var$1 | 0; - if (var$1 < $var3_0) - $var3_0 = $var3_0 - 1 | 0; - $var9 = Math.random() * 6.0 | 0; - $var5 = nms_World_getBlockId($this.$worldObj, $var1_0 + nms_Facing_offsetsXForSide.data[$var9] | 0, $var2_0 + nms_Facing_offsetsYForSide.data[$var9] | 0, $var3_0 + nms_Facing_offsetsZForSide.data[$var9] | 0); - if (nms_BlockSilverfish_getPosingIdByMetadata($var5)) { - var$9 = $this.$worldObj; - $var1 = $var1_0 + nms_Facing_offsetsXForSide.data[$var9] | 0; - $var2_0 = $var2_0 + nms_Facing_offsetsYForSide.data[$var9] | 0; - $var9 = $var3_0 + nms_Facing_offsetsZForSide.data[$var9] | 0; - nms_Block_$callClinit(); - $var3_0 = nms_Block_silverfish.$blockID; - $var4 = nms_BlockSilverfish_getMetadataForBlockType($var5); - $var5 = 3; - $ptr = 2; - continue main; - } - nms_EntityCreature_updateWanderPath($this); - } else if ($this.$entityToAttack !== null && !($this.$pathToEntity === null ? 0 : 1)) - $this.$entityToAttack = null; - return; - } - var$9 = $this.$worldObj; - $var1_0 = 0; - $ptr = 4; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, $var2, $var3, $var4, $var5, $var6, $var7, var$9, $var9, $var3_0, $var2_0, $var8, $var1_0, var$15, $ptr); -} -function nms_EntitySilverfish_getBlockPathWeight($this, $par1, $par2, $par3) { - var var$4, var$5, var$6; - var$4 = nms_World_getBlockId($this.$worldObj, $par1, $par2 - 1 | 0, $par3); - nms_Block_$callClinit(); - if (var$4 == nms_Block_stone.$blockID) - var$5 = 10.0; - else { - var$6 = $this.$worldObj; - var$5 = 0.5 - var$6.$provider.$lightBrightnessTable.data[nms_World_getBlockLightValue_do(var$6, $par1, $par2, $par3, 1)]; - } - return var$5; -} -function nms_EntitySilverfish_getAttackStrength($this, $par1Entity) { - return 1; -} -function nms_EntitySilverfish_getCreatureAttribute($this) { - return nms_EnumCreatureAttribute_ARTHROPOD; -} -function nms_RenderSilverfish() { - nms_RenderLiving.call(this); -} -var nms_RenderSilverfish_entityTexture = null; -function nms_RenderSilverfish__init_0() { - var var_0 = new nms_RenderSilverfish(); - nms_RenderSilverfish__init_(var_0); - return var_0; -} -function nms_RenderSilverfish__init_($this) { - var var$1; - var$1 = nms_ModelSilverfish__init_0(); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.30000001192092896; -} -function nms_RenderSilverfish_getSilverfishDeathRotation($this, $par1EntitySilverfish) { - return 180.0; -} -function nms_RenderSilverfish_renderSilverfish($this, $par1EntitySilverfish, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntitySilverfish = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntitySilverfish, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntitySilverfish, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderSilverfish_shouldSilverfishRenderPass($this, $par1EntitySilverfish, $par2, $par3) { - return (-1); -} -function nms_RenderSilverfish_getDeathMaxRotation($this, $par1EntityLiving) { - return 180.0; -} -function nms_RenderSilverfish_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return (-1); -} -function nms_RenderSilverfish_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderSilverfish_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderSilverfish_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderSilverfish_entityTexture); -} -function nms_RenderSilverfish__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1243); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSilverfish_entityTexture = var$1; -} -function nms_EntityCreeper() { - var a = this; nms_EntityMob.call(a); - a.$lastActiveTime = 0; - a.$timeSinceIgnited = 0; - a.$fuseTime = 0; - a.$explosionRadius = 0; -} -function nms_EntityCreeper__init_0() { - var var_0 = new nms_EntityCreeper(); - nms_EntityCreeper__init_(var_0); - return var_0; -} -function nms_EntityCreeper__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - $this.$fuseTime = 30; - $this.$explosionRadius = 3; -} -function nms_EntityCreeper_isAIEnabled($this) { - return 1; -} -function nms_EntityCreeper_func_82143_as($this) { - return $this.$attackTarget === null ? 3 : 3 + ($this.$health - 1 | 0) | 0; -} -function nms_EntityCreeper_fall($this, $par1) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_fall($this, $par1); - if ($rt_suspending()) { - break main; - } - $this.$timeSinceIgnited = $this.$timeSinceIgnited + $par1 * 1.5 | 0; - if ($this.$timeSinceIgnited > ($this.$fuseTime - 5 | 0)) - $this.$timeSinceIgnited = $this.$fuseTime - 5 | 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $ptr); -} -function nms_EntityCreeper_getMaxHealth($this) { - return 20; -} -function nms_EntityCreeper_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = (-1); - nms_DataWatcher_addObject(var$1, 16, var$2); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 17, var$2); -} -function nms_EntityCreeper_onUpdate($this) { - var $var1, $var2, var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$isDead && $this.$health > 0 ? 1 : 0) { - $this.$lastActiveTime = $this.$timeSinceIgnited; - $var1 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if ($var1 > 0 && !$this.$timeSinceIgnited) - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1244), 1.0, 0.5); - $this.$timeSinceIgnited = $this.$timeSinceIgnited + $var1 | 0; - if ($this.$timeSinceIgnited < 0) - $this.$timeSinceIgnited = 0; - if ($this.$timeSinceIgnited >= $this.$fuseTime) { - $this.$timeSinceIgnited = $this.$fuseTime; - if (!$this.$worldObj.$isRemote) { - $var2 = nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(701)); - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 17) != 1 ? 0 : 1)) { - var$3 = nms_Explosion__init_($this.$worldObj, $this, $this.$posX, $this.$posY, $this.$posZ, $this.$explosionRadius); - var$3.$isFlaming = 0; - var$3.$isSmoking = $var2; - $ptr = 2; - continue main; - } - var$3 = nms_Explosion__init_($this.$worldObj, $this, $this.$posX, $this.$posY, $this.$posZ, $this.$explosionRadius * 2 | 0); - var$3.$isFlaming = 0; - var$3.$isSmoking = $var2; - $ptr = 4; - continue main; - } - } - } - $ptr = 1; - case 1: - nms_EntityLiving_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote && !$this.$worldObj.$difficultySetting) - $this.$isDead = 1; - return; - case 2: - nms_Explosion_doExplosionA(var$3); - if ($rt_suspending()) { - break main; - } - $var2 = 1; - $ptr = 3; - case 3: - nms_Explosion_doExplosionB(var$3, $var2); - if ($rt_suspending()) { - break main; - } - $this.$isDead = 1; - $ptr = 1; - continue main; - case 4: - nms_Explosion_doExplosionA(var$3); - if ($rt_suspending()) { - break main; - } - $var2 = 1; - $ptr = 5; - case 5: - nms_Explosion_doExplosionB(var$3, $var2); - if ($rt_suspending()) { - break main; - } - $this.$isDead = 1; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, var$3, $ptr); -} -function nms_EntityCreeper_getHurtSound($this) { - return $rt_s(1245); -} -function nms_EntityCreeper_getDeathSound($this) { - return $rt_s(1246); -} -function nms_EntityCreeper_onDeath($this, $par1DamageSource) { - var $var2, var$3, 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();var$3 = $thread.pop();$var2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_onDeath($this, $par1DamageSource); - if ($rt_suspending()) { - break main; - } - if ($par1DamageSource.$getEntity() instanceof nms_EntitySkeleton) { - nms_Item_$callClinit(); - $var2 = nms_Item_record13.$itemID; - var$3 = (nms_Item_recordWait.$itemID - nms_Item_record13.$itemID | 0) + 1 | 0; - $var2 = $var2 + (Math.random() * var$3 | 0) | 0; - $par1DamageSource = new nms_ItemStack; - $par1DamageSource.$stackSize = 0; - $par1DamageSource.$itemFrame = null; - $par1DamageSource.$itemID0 = $var2; - $par1DamageSource.$stackSize = 1; - $par1DamageSource.$itemDamage = 0; - if ($par1DamageSource.$itemDamage < 0) - $par1DamageSource.$itemDamage = 0; - var$4 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$4.$dataWatcher, 10, $par1DamageSource); - nms_DataWatcher_setObjectWatched(var$4.$dataWatcher, 10); - var$4.$delayBeforeCanPickup = 10; - $par1DamageSource = $this.$worldObj; - $var2 = nms_World_spawnEntityInWorld($par1DamageSource, var$4); - var$5 = $par1DamageSource.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$4, var$5); - if (!$var2) { - $par1DamageSource = $par1DamageSource.$entitySpawnQueue; - ju_HashMap_putImpl($par1DamageSource.$backingMap, var$4, $par1DamageSource); - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $var2, var$3, var$4, var$5, $ptr); -} -function nms_EntityCreeper_attackEntityAsMob($this, $par1Entity) { - return 1; -} -function nms_EntityCreeper_getPowered($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 17) != 1 ? 0 : 1; -} -function nms_EntityCreeper_getCreeperFlashIntensity($this, $par1) { - return ($this.$lastActiveTime + ($this.$timeSinceIgnited - $this.$lastActiveTime | 0) * $par1) / ($this.$fuseTime - 2 | 0); -} -function nms_EntityCreeper_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_gunpowder.$itemID; -} -function nms_EntityCreeper_getCreeperState($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); -} -function nms_EntityCreeper_onStruckByLightning($this, $par1EntityLightningBolt) { - 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();$par1EntityLightningBolt = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = 5; - if ($this.$isImmuneToFire) { - $this.$fire = $this.$fire + 1 | 0; - if (!$this.$fire) { - var$2 = nms_EnchantmentProtection_func_92093_a($this, 160); - if ($this.$fire < var$2) - $this.$fire = var$2; - } - $par1EntityLightningBolt = $this.$dataWatcher; - var$3 = new jl_Byte; - var$3.$value4 = 1; - nms_DataWatcher_updateObject($par1EntityLightningBolt, 17, var$3); - return; - } - $par1EntityLightningBolt = nms_DamageSource_inFire; - $ptr = 1; - case 1: - nms_EntityMob_attackEntityFrom($this, $par1EntityLightningBolt, var$2); - if ($rt_suspending()) { - break main; - } - $this.$fire = $this.$fire + 1 | 0; - if (!$this.$fire) { - var$2 = nms_EnchantmentProtection_func_92093_a($this, 160); - if ($this.$fire < var$2) - $this.$fire = var$2; - } - $par1EntityLightningBolt = $this.$dataWatcher; - var$3 = new jl_Byte; - var$3.$value4 = 1; - nms_DataWatcher_updateObject($par1EntityLightningBolt, 17, var$3); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLightningBolt, var$2, var$3, $ptr); -} -function nms_RenderCreeper() { - nms_RenderLiving.call(this); - this.$creeperModel = null; -} -var nms_RenderCreeper_tex_power = null; -var nms_RenderCreeper_entityTexture = null; -function nms_RenderCreeper__init_0() { - var var_0 = new nms_RenderCreeper(); - nms_RenderCreeper__init_(var_0); - return var_0; -} -function nms_RenderCreeper__init_($this) { - var var$1; - var$1 = nms_ModelCreeper__init_0(0.0); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$creeperModel = nms_ModelCreeper__init_0(2.0); -} -function nms_RenderCreeper_updateCreeperScale($this, $par1EntityCreeper, $par2) { - var $var4, $var5, $var6, $var7, var$7, var$8, var$9; - $var4 = ($par1EntityCreeper.$lastActiveTime + ($par1EntityCreeper.$timeSinceIgnited - $par1EntityCreeper.$lastActiveTime | 0) * $par2) / ($par1EntityCreeper.$fuseTime - 2 | 0); - $par2 = $var4 * 100.0; - $var5 = 1.0 + nms_MathHelper_SIN_TABLE.data[($par2 * 10430.3779296875 | 0) & 65535] * $var4 * 0.009999999776482582; - if ($var4 < 0.0) - $var4 = 0.0; - if ($var4 > 1.0) - $var4 = 1.0; - $par2 = $var4 * $var4; - $par2 = $par2 * $par2; - $var6 = (1.0 + $par2 * 0.4000000059604645) * $var5; - $var7 = (1.0 + $par2 * 0.10000000149011612) / $var5; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityCreeper = nleg_EaglerAdapterGL30_deevis; - $par1EntityCreeper.$x = $var6; - $par1EntityCreeper.$y = $var7; - $par1EntityCreeper.$z = $var6; - $par1EntityCreeper = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityCreeper, $par1EntityCreeper); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$7 = new ji_PrintStream; - var$7.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityCreeper = new jl_StringBuilder; - $par1EntityCreeper.$buffer = $rt_createCharArray(16); - var$7.$sb = $par1EntityCreeper; - var$7.$buffer0 = $rt_createCharArray(32); - var$7.$autoFlush = 0; - $par1EntityCreeper = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityCreeper, $rt_s(2), $rt_createArray(jl_String, 0)); - var$7.$charset = $par1EntityCreeper; - jl_System_errCache = var$7; - } - var$8 = jl_System_errCache; - var$7 = var$8.$sb; - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(220)); - var$9 = var$7.$length; - jl_AbstractStringBuilder_insertSpace(var$7, var$9, var$9 + 1 | 0); - var$7.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } -} -function nms_RenderCreeper_updateCreeperColorMultiplier($this, $par1EntityCreeper, $par2, $par3) { - var $var5, $var6; - $var5 = ($par1EntityCreeper.$lastActiveTime + ($par1EntityCreeper.$timeSinceIgnited - $par1EntityCreeper.$lastActiveTime | 0) * $par3) / ($par1EntityCreeper.$fuseTime - 2 | 0); - if (!(($var5 * 10.0 | 0) % 2 | 0)) - return 0; - $var6 = $var5 * 0.20000000298023224 * 255.0 | 0; - if ($var6 < 0) - $var6 = 0; - if ($var6 > 255) - $var6 = 255; - return $var6 << 24 | 16711680 | 65280 | 255; -} -function nms_RenderCreeper_renderCreeperPassModel($this, $par1EntityCreeper, $par2, $par3) { - var $var4, $var5, var$6, var$7, var$8; - if (nms_DataWatcher_getWatchableObjectByte($par1EntityCreeper.$dataWatcher, 17) != 1 ? 0 : 1) { - if (!(!(nms_DataWatcher_getWatchableObjectByte($par1EntityCreeper.$dataWatcher, 0) & 32) ? 0 : 1)) { - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - } else { - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - } - if ($par2 == 1) { - $var4 = $par1EntityCreeper.$ticksExisted + $par3; - nle_TextureLocation_bindTexture(nms_RenderCreeper_tex_power); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_matrixMode = 54; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - $var5 = $var4 * 0.009999999776482582; - $par1EntityCreeper = nleg_EaglerAdapterGL30_deevis; - $par1EntityCreeper.$x = $var5; - $par1EntityCreeper.$y = $var5; - $par1EntityCreeper.$z = 0.0; - $par1EntityCreeper = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityCreeper, $par1EntityCreeper); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$6 = new ji_PrintStream; - var$6.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityCreeper = new jl_StringBuilder; - $par1EntityCreeper.$buffer = $rt_createCharArray(16); - var$6.$sb = $par1EntityCreeper; - var$6.$buffer0 = $rt_createCharArray(32); - var$6.$autoFlush = 0; - $par1EntityCreeper = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityCreeper, $rt_s(2), $rt_createArray(jl_String, 0)); - var$6.$charset = $par1EntityCreeper; - 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); - } - $this.$renderPassModel = $this.$creeperModel; - nleg_EaglerAdapterGL30_matrixMode = 10; - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_colorR = 0.5; - nleg_EaglerAdapterGL30_colorG = 0.5; - nleg_EaglerAdapterGL30_colorB = 0.5; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glBlendFunc(1, 1); - return 1; - } - if ($par2 == 2) { - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_matrixMode = 54; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - nleg_EaglerAdapterGL30_matrixMode = 10; - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glDisable(16); - } - } - return (-1); -} -function nms_RenderCreeper_func_77061_b($this, $par1EntityCreeper, $par2, $par3) { - return (-1); -} -function nms_RenderCreeper_preRenderCallback($this, $par1EntityLiving, $par2) { - nms_RenderCreeper_updateCreeperScale($this, $par1EntityLiving, $par2); -} -function nms_RenderCreeper_getColorMultiplier($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderCreeper_updateCreeperColorMultiplier($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderCreeper_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderCreeper_renderCreeperPassModel($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderCreeper_inheritRenderPass($this, $par1EntityLiving, $par2, $par3) { - return (-1); -} -function nms_RenderCreeper_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderCreeper_entityTexture); -} -function nms_RenderCreeper__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1247); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderCreeper_tex_power = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1248); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderCreeper_entityTexture = var$1; -} -function nms_EntityEnderman() { - var a = this; nms_EntityMob.call(a); - a.$teleportDelay = 0; - a.$field_70826_g = 0; - a.$field_104003_g = 0; -} -var nms_EntityEnderman_carriableBlocks = null; -function nms_EntityEnderman_$callClinit() { - nms_EntityEnderman_$callClinit = $rt_eraseClinit(nms_EntityEnderman); - nms_EntityEnderman__clinit_(); -} -function nms_EntityEnderman__init_0() { - var var_0 = new nms_EntityEnderman(); - nms_EntityEnderman__init_(var_0); - return var_0; -} -function nms_EntityEnderman__init_($this) { - nms_EntityEnderman_$callClinit(); - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - $this.$teleportDelay = 0; - $this.$field_70826_g = 0; - $this.$moveSpeed = 0.20000000298023224; - nms_Entity_setSize($this, 0.6000000238418579, 2.9000000953674316); - $this.$stepHeight = 1.0; -} -function nms_EntityEnderman_getMaxHealth($this) { - return 40; -} -function nms_EntityEnderman_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); - var$2 = $this.$dataWatcher; - var$1 = new jl_Byte; - var$1.$value4 = 0; - nms_DataWatcher_addObject(var$2, 17, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Byte; - var$1.$value4 = 0; - nms_DataWatcher_addObject(var$2, 18, var$1); -} -function nms_EntityEnderman_findPlayerToAttack($this) { - var $var1, var$2, var$3, var$4; - $var1 = nms_World_getClosestVulnerablePlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 64.0); - if ($var1 !== null) { - if (!nms_EntityEnderman_shouldAttackPlayer($this, $var1)) - $this.$field_70826_g = 0; - else { - $this.$field_104003_g = 1; - if (!$this.$field_70826_g) - nms_World_playSoundAtEntity($this.$worldObj, $var1, $rt_s(1249), 1.0, 1.0); - var$2 = $this.$field_70826_g; - $this.$field_70826_g = var$2 + 1 | 0; - if (var$2 == 5) { - $this.$field_70826_g = 0; - var$3 = $this.$dataWatcher; - var$4 = new jl_Byte; - var$4.$value4 = 1; - nms_DataWatcher_updateObject(var$3, 18, var$4); - return $var1; - } - } - } - return null; -} -function nms_EntityEnderman_shouldAttackPlayer($this, $par1EntityPlayer) { - var $var2, var$3, $var3, $var4, $var5; - $var2 = $par1EntityPlayer.$inventory.$armorInventory.data[3]; - if ($var2 !== null) { - var$3 = $var2.$itemID0; - nms_Block_$callClinit(); - if (var$3 == nms_Block_pumpkin.$blockID) - return 0; - } - $var3 = nms_Vec3_normalize(nms_EntityLiving_getLook($par1EntityPlayer, 1.0)); - $var4 = nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $this.$posX - $par1EntityPlayer.$posX, $this.$boundingBox.$minY + $this.$height1 / 2.0 - ($par1EntityPlayer.$posY + $par1EntityPlayer.$getEyeHeight()), $this.$posZ - $par1EntityPlayer.$posZ); - $var5 = nms_Vec3_lengthVector($var4); - $var2 = nms_Vec3_normalize($var4); - return $var3.$xCoord * $var2.$xCoord + $var3.$yCoord * $var2.$yCoord + $var3.$zCoord * $var2.$zCoord <= 1.0 - 0.025 / $var5 ? 0 : nms_EntityLiving_canEntityBeSeen($par1EntityPlayer, $this); -} -function nms_EntityEnderman_onLivingUpdate($this) { - var var$1, $var1, $var6, $var2, $var3, $var4, $var5, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var6 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_Entity_isWet($this)) { - var$1 = nms_DamageSource_drown; - $var1 = 1; - $ptr = 1; - continue main; - } - $var6 = $this.$entityToAttack === null ? 0.30000001192092896 : 6.5; - a: { - $this.$moveSpeed = $var6; - if (!$this.$worldObj.$isRemote && nms_GameRules_getGameRuleBooleanValue(nms_World_getGameRules($this.$worldObj), $rt_s(701))) { - if (!nms_EntityEnderman_getCarried($this)) { - if (ju_Random_nextInt0($this.$rand0, 20)) - break a; - $var1 = nms_MathHelper_floor_double($this.$posX - 2.0 + ju_Random_nextDouble($this.$rand0) * 4.0); - $var2 = nms_MathHelper_floor_double($this.$posY + ju_Random_nextDouble($this.$rand0) * 3.0); - $var3 = nms_MathHelper_floor_double($this.$posZ - 2.0 + ju_Random_nextDouble($this.$rand0) * 4.0); - $var4 = nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3); - if (!nms_EntityEnderman_carriableBlocks.data[$var4]) - break a; - nms_EntityEnderman_setCarried($this, nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3)); - nms_EntityEnderman_setCarryingData($this, nms_World_getBlockMetadata($this.$worldObj, $var1, $var2, $var3)); - var$1 = $this.$worldObj; - $var4 = 0; - $ptr = 4; - continue main; - } - if (!ju_Random_nextInt0($this.$rand0, 2000)) { - $var1 = nms_MathHelper_floor_double($this.$posX - 1.0 + ju_Random_nextDouble($this.$rand0) * 2.0); - $var2 = nms_MathHelper_floor_double($this.$posY + ju_Random_nextDouble($this.$rand0) * 2.0); - $var3 = nms_MathHelper_floor_double($this.$posZ - 1.0 + ju_Random_nextDouble($this.$rand0) * 2.0); - $var4 = nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3); - $var5 = nms_World_getBlockId($this.$worldObj, $var1, $var2 - 1 | 0, $var3); - if (!$var4 && $var5 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var5].$renderAsNormalBlock()) { - var$1 = $this.$worldObj; - $var4 = nms_EntityEnderman_getCarried($this); - $var5 = nms_EntityEnderman_getCarryingData($this); - var$8 = 3; - $ptr = 5; - continue main; - } - } - } - } - } - $var1 = 0; - if ($var1 < 2) { - var$1 = $this.$worldObj; - var$9 = $rt_s(716); - var$10 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = $this.$posY + ju_Random_nextDouble($this.$rand0) * $this.$height1 - 0.25; - var$12 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$13 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - var$14 = -ju_Random_nextDouble($this.$rand0); - var$15 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - $ptr = 2; - continue main; - } - if (nms_World_isDaytime($this.$worldObj) && !$this.$worldObj.$isRemote) { - $var6 = nms_Entity_getBrightness($this, 1.0); - if ($var6 > 0.5 && nms_World_canBlockSeeTheSky($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$posY), nms_MathHelper_floor_double($this.$posZ)) && ju_Random_nextFloat($this.$rand0) * 30.0 < ($var6 - 0.4000000059604645) * 2.0) { - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 6; - continue main; - } - } - if (!nms_Entity_isWet($this) && !nms_Entity_isBurning($this)) { - if (nms_EntityEnderman_isScreaming($this) && !$this.$field_104003_g && !ju_Random_nextInt0($this.$rand0, 100)) - nms_EntityEnderman_setScreaming($this, 0); - $this.$isJumping = 0; - if ($this.$entityToAttack !== null) - nms_EntityLiving_faceEntity($this, $this.$entityToAttack, 100.0, 100.0); - b: { - if (!$this.$worldObj.$isRemote && nms_EntityLiving_isEntityAlive($this)) { - if ($this.$entityToAttack === null) { - nms_EntityEnderman_setScreaming($this, 0); - $this.$teleportDelay = 0; - } else { - if (!($this.$entityToAttack instanceof nms_EntityPlayer && nms_EntityEnderman_shouldAttackPlayer($this, $this.$entityToAttack))) { - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) <= 256.0) - break b; - $var2 = $this.$teleportDelay; - $this.$teleportDelay = $var2 + 1 | 0; - if ($var2 < 30) - break b; - var$1 = $this.$entityToAttack; - $ptr = 8; - continue main; - } - $this.$moveForward0 = 0.0; - $this.$moveStrafing = 0.0; - $this.$moveSpeed = 0.0; - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) < 16.0) { - $ptr = 9; - continue main; - } - $this.$teleportDelay = 0; - } - } - } - $ptr = 7; - continue main; - } - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 3; - continue main; - case 1: - nms_EntityEnderman_attackEntityFrom($this, var$1, $var1); - if ($rt_suspending()) { - break main; - } - $var6 = $this.$entityToAttack === null ? 0.30000001192092896 : 6.5; - c: { - $this.$moveSpeed = $var6; - if (!$this.$worldObj.$isRemote && nms_GameRules_getGameRuleBooleanValue(nms_World_getGameRules($this.$worldObj), $rt_s(701))) { - if (!nms_EntityEnderman_getCarried($this)) { - if (ju_Random_nextInt0($this.$rand0, 20)) - break c; - $var1 = nms_MathHelper_floor_double($this.$posX - 2.0 + ju_Random_nextDouble($this.$rand0) * 4.0); - $var2 = nms_MathHelper_floor_double($this.$posY + ju_Random_nextDouble($this.$rand0) * 3.0); - $var3 = nms_MathHelper_floor_double($this.$posZ - 2.0 + ju_Random_nextDouble($this.$rand0) * 4.0); - $var4 = nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3); - if (!nms_EntityEnderman_carriableBlocks.data[$var4]) - break c; - nms_EntityEnderman_setCarried($this, nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3)); - nms_EntityEnderman_setCarryingData($this, nms_World_getBlockMetadata($this.$worldObj, $var1, $var2, $var3)); - var$1 = $this.$worldObj; - $var4 = 0; - $ptr = 4; - continue main; - } - if (!ju_Random_nextInt0($this.$rand0, 2000)) { - $var1 = nms_MathHelper_floor_double($this.$posX - 1.0 + ju_Random_nextDouble($this.$rand0) * 2.0); - $var2 = nms_MathHelper_floor_double($this.$posY + ju_Random_nextDouble($this.$rand0) * 2.0); - $var3 = nms_MathHelper_floor_double($this.$posZ - 1.0 + ju_Random_nextDouble($this.$rand0) * 2.0); - $var4 = nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3); - $var5 = nms_World_getBlockId($this.$worldObj, $var1, $var2 - 1 | 0, $var3); - if (!$var4 && $var5 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var5].$renderAsNormalBlock()) { - var$1 = $this.$worldObj; - $var4 = nms_EntityEnderman_getCarried($this); - $var5 = nms_EntityEnderman_getCarryingData($this); - var$8 = 3; - $ptr = 5; - continue main; - } - } - } - } - } - $var1 = 0; - if ($var1 < 2) { - var$1 = $this.$worldObj; - var$9 = $rt_s(716); - var$10 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = $this.$posY + ju_Random_nextDouble($this.$rand0) * $this.$height1 - 0.25; - var$12 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$13 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - var$14 = -ju_Random_nextDouble($this.$rand0); - var$15 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - $ptr = 2; - continue main; - } - if (nms_World_isDaytime($this.$worldObj) && !$this.$worldObj.$isRemote) { - $var6 = nms_Entity_getBrightness($this, 1.0); - if ($var6 > 0.5 && nms_World_canBlockSeeTheSky($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$posY), nms_MathHelper_floor_double($this.$posZ)) && ju_Random_nextFloat($this.$rand0) * 30.0 < ($var6 - 0.4000000059604645) * 2.0) { - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 6; - continue main; - } - } - if (!nms_Entity_isWet($this) && !nms_Entity_isBurning($this)) { - if (nms_EntityEnderman_isScreaming($this) && !$this.$field_104003_g && !ju_Random_nextInt0($this.$rand0, 100)) - nms_EntityEnderman_setScreaming($this, 0); - $this.$isJumping = 0; - if ($this.$entityToAttack !== null) - nms_EntityLiving_faceEntity($this, $this.$entityToAttack, 100.0, 100.0); - d: { - if (!$this.$worldObj.$isRemote && nms_EntityLiving_isEntityAlive($this)) { - if ($this.$entityToAttack === null) { - nms_EntityEnderman_setScreaming($this, 0); - $this.$teleportDelay = 0; - } else { - if (!($this.$entityToAttack instanceof nms_EntityPlayer && nms_EntityEnderman_shouldAttackPlayer($this, $this.$entityToAttack))) { - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) <= 256.0) - break d; - $var2 = $this.$teleportDelay; - $this.$teleportDelay = $var2 + 1 | 0; - if ($var2 < 30) - break d; - var$1 = $this.$entityToAttack; - $ptr = 8; - continue main; - } - $this.$moveForward0 = 0.0; - $this.$moveStrafing = 0.0; - $this.$moveSpeed = 0.0; - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) < 16.0) { - $ptr = 9; - continue main; - } - $this.$teleportDelay = 0; - } - } - } - $ptr = 7; - continue main; - } - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 3; - continue main; - case 2: - nms_World_spawnParticle(var$1, var$9, var$10, var$11, var$12, var$13, var$14, var$15); - if ($rt_suspending()) { - break main; - } - $var1 = $var1 + 1 | 0; - if ($var1 < 2) { - var$1 = $this.$worldObj; - var$9 = $rt_s(716); - var$10 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = $this.$posY + ju_Random_nextDouble($this.$rand0) * $this.$height1 - 0.25; - var$12 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$13 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - var$14 = -ju_Random_nextDouble($this.$rand0); - var$15 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - continue main; - } - if (nms_World_isDaytime($this.$worldObj) && !$this.$worldObj.$isRemote) { - $var6 = nms_Entity_getBrightness($this, 1.0); - if ($var6 > 0.5 && nms_World_canBlockSeeTheSky($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$posY), nms_MathHelper_floor_double($this.$posZ)) && ju_Random_nextFloat($this.$rand0) * 30.0 < ($var6 - 0.4000000059604645) * 2.0) { - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 6; - continue main; - } - } - if (!nms_Entity_isWet($this) && !nms_Entity_isBurning($this)) { - if (nms_EntityEnderman_isScreaming($this) && !$this.$field_104003_g && !ju_Random_nextInt0($this.$rand0, 100)) - nms_EntityEnderman_setScreaming($this, 0); - $this.$isJumping = 0; - if ($this.$entityToAttack !== null) - nms_EntityLiving_faceEntity($this, $this.$entityToAttack, 100.0, 100.0); - e: { - if (!$this.$worldObj.$isRemote && nms_EntityLiving_isEntityAlive($this)) { - if ($this.$entityToAttack === null) { - nms_EntityEnderman_setScreaming($this, 0); - $this.$teleportDelay = 0; - } else { - if (!($this.$entityToAttack instanceof nms_EntityPlayer && nms_EntityEnderman_shouldAttackPlayer($this, $this.$entityToAttack))) { - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) <= 256.0) - break e; - $var2 = $this.$teleportDelay; - $this.$teleportDelay = $var2 + 1 | 0; - if ($var2 < 30) - break e; - var$1 = $this.$entityToAttack; - $ptr = 8; - continue main; - } - $this.$moveForward0 = 0.0; - $this.$moveStrafing = 0.0; - $this.$moveSpeed = 0.0; - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) < 16.0) { - $ptr = 9; - continue main; - } - $this.$teleportDelay = 0; - } - } - } - $ptr = 7; - continue main; - } - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 3; - case 3: - nms_EntityEnderman_teleportRandomly($this); - if ($rt_suspending()) { - break main; - } - if (nms_EntityEnderman_isScreaming($this) && !$this.$field_104003_g && !ju_Random_nextInt0($this.$rand0, 100)) - nms_EntityEnderman_setScreaming($this, 0); - $this.$isJumping = 0; - if ($this.$entityToAttack !== null) - nms_EntityLiving_faceEntity($this, $this.$entityToAttack, 100.0, 100.0); - a: { - if (!$this.$worldObj.$isRemote && nms_EntityLiving_isEntityAlive($this)) { - if ($this.$entityToAttack === null) { - nms_EntityEnderman_setScreaming($this, 0); - $this.$teleportDelay = 0; - } else { - if (!($this.$entityToAttack instanceof nms_EntityPlayer && nms_EntityEnderman_shouldAttackPlayer($this, $this.$entityToAttack))) { - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) <= 256.0) - break a; - $var2 = $this.$teleportDelay; - $this.$teleportDelay = $var2 + 1 | 0; - if ($var2 < 30) - break a; - var$1 = $this.$entityToAttack; - $ptr = 8; - continue main; - } - $this.$moveForward0 = 0.0; - $this.$moveStrafing = 0.0; - $this.$moveSpeed = 0.0; - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) < 16.0) { - $ptr = 9; - continue main; - } - $this.$teleportDelay = 0; - } - } - } - $ptr = 7; - continue main; - case 4: - nms_World_setBlock0(var$1, $var1, $var2, $var3, $var4); - if ($rt_suspending()) { - break main; - } - $var1 = 0; - if ($var1 < 2) { - var$1 = $this.$worldObj; - var$9 = $rt_s(716); - var$10 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = $this.$posY + ju_Random_nextDouble($this.$rand0) * $this.$height1 - 0.25; - var$12 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$13 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - var$14 = -ju_Random_nextDouble($this.$rand0); - var$15 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - $ptr = 2; - continue main; - } - if (nms_World_isDaytime($this.$worldObj) && !$this.$worldObj.$isRemote) { - $var6 = nms_Entity_getBrightness($this, 1.0); - if ($var6 > 0.5 && nms_World_canBlockSeeTheSky($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$posY), nms_MathHelper_floor_double($this.$posZ)) && ju_Random_nextFloat($this.$rand0) * 30.0 < ($var6 - 0.4000000059604645) * 2.0) { - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 6; - continue main; - } - } - if (!nms_Entity_isWet($this) && !nms_Entity_isBurning($this)) { - if (nms_EntityEnderman_isScreaming($this) && !$this.$field_104003_g && !ju_Random_nextInt0($this.$rand0, 100)) - nms_EntityEnderman_setScreaming($this, 0); - $this.$isJumping = 0; - if ($this.$entityToAttack !== null) - nms_EntityLiving_faceEntity($this, $this.$entityToAttack, 100.0, 100.0); - e: { - if (!$this.$worldObj.$isRemote && nms_EntityLiving_isEntityAlive($this)) { - if ($this.$entityToAttack === null) { - nms_EntityEnderman_setScreaming($this, 0); - $this.$teleportDelay = 0; - } else { - if (!($this.$entityToAttack instanceof nms_EntityPlayer && nms_EntityEnderman_shouldAttackPlayer($this, $this.$entityToAttack))) { - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) <= 256.0) - break e; - $var2 = $this.$teleportDelay; - $this.$teleportDelay = $var2 + 1 | 0; - if ($var2 < 30) - break e; - var$1 = $this.$entityToAttack; - $ptr = 8; - continue main; - } - $this.$moveForward0 = 0.0; - $this.$moveStrafing = 0.0; - $this.$moveSpeed = 0.0; - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) < 16.0) { - $ptr = 9; - continue main; - } - $this.$teleportDelay = 0; - } - } - } - $ptr = 7; - continue main; - } - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 3; - continue main; - case 5: - nms_World_setBlock(var$1, $var1, $var2, $var3, $var4, $var5, var$8); - if ($rt_suspending()) { - break main; - } - nms_EntityEnderman_setCarried($this, 0); - $var1 = 0; - if ($var1 < 2) { - var$1 = $this.$worldObj; - var$9 = $rt_s(716); - var$10 = $this.$posX + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$11 = $this.$posY + ju_Random_nextDouble($this.$rand0) * $this.$height1 - 0.25; - var$12 = $this.$posZ + (ju_Random_nextDouble($this.$rand0) - 0.5) * $this.$width1; - var$13 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - var$14 = -ju_Random_nextDouble($this.$rand0); - var$15 = (ju_Random_nextDouble($this.$rand0) - 0.5) * 2.0; - $ptr = 2; - continue main; - } - if (nms_World_isDaytime($this.$worldObj) && !$this.$worldObj.$isRemote) { - $var6 = nms_Entity_getBrightness($this, 1.0); - if ($var6 > 0.5 && nms_World_canBlockSeeTheSky($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$posY), nms_MathHelper_floor_double($this.$posZ)) && ju_Random_nextFloat($this.$rand0) * 30.0 < ($var6 - 0.4000000059604645) * 2.0) { - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 6; - continue main; - } - } - if (!nms_Entity_isWet($this) && !nms_Entity_isBurning($this)) { - if (nms_EntityEnderman_isScreaming($this) && !$this.$field_104003_g && !ju_Random_nextInt0($this.$rand0, 100)) - nms_EntityEnderman_setScreaming($this, 0); - $this.$isJumping = 0; - if ($this.$entityToAttack !== null) - nms_EntityLiving_faceEntity($this, $this.$entityToAttack, 100.0, 100.0); - e: { - if (!$this.$worldObj.$isRemote && nms_EntityLiving_isEntityAlive($this)) { - if ($this.$entityToAttack === null) { - nms_EntityEnderman_setScreaming($this, 0); - $this.$teleportDelay = 0; - } else { - if (!($this.$entityToAttack instanceof nms_EntityPlayer && nms_EntityEnderman_shouldAttackPlayer($this, $this.$entityToAttack))) { - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) <= 256.0) - break e; - $var2 = $this.$teleportDelay; - $this.$teleportDelay = $var2 + 1 | 0; - if ($var2 < 30) - break e; - var$1 = $this.$entityToAttack; - $ptr = 8; - continue main; - } - $this.$moveForward0 = 0.0; - $this.$moveStrafing = 0.0; - $this.$moveSpeed = 0.0; - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) < 16.0) { - $ptr = 9; - continue main; - } - $this.$teleportDelay = 0; - } - } - } - $ptr = 7; - continue main; - } - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 3; - continue main; - case 6: - nms_EntityEnderman_teleportRandomly($this); - if ($rt_suspending()) { - break main; - } - if (!nms_Entity_isWet($this) && !nms_Entity_isBurning($this)) { - if (nms_EntityEnderman_isScreaming($this) && !$this.$field_104003_g && !ju_Random_nextInt0($this.$rand0, 100)) - nms_EntityEnderman_setScreaming($this, 0); - $this.$isJumping = 0; - if ($this.$entityToAttack !== null) - nms_EntityLiving_faceEntity($this, $this.$entityToAttack, 100.0, 100.0); - f: { - if (!$this.$worldObj.$isRemote && nms_EntityLiving_isEntityAlive($this)) { - if ($this.$entityToAttack === null) { - nms_EntityEnderman_setScreaming($this, 0); - $this.$teleportDelay = 0; - } else { - if (!($this.$entityToAttack instanceof nms_EntityPlayer && nms_EntityEnderman_shouldAttackPlayer($this, $this.$entityToAttack))) { - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) <= 256.0) - break f; - $var2 = $this.$teleportDelay; - $this.$teleportDelay = $var2 + 1 | 0; - if ($var2 < 30) - break f; - var$1 = $this.$entityToAttack; - $ptr = 8; - continue main; - } - $this.$moveForward0 = 0.0; - $this.$moveStrafing = 0.0; - $this.$moveSpeed = 0.0; - if (nms_Entity_getDistanceSqToEntity($this.$entityToAttack, $this) < 16.0) { - $ptr = 9; - continue main; - } - $this.$teleportDelay = 0; - } - } - } - $ptr = 7; - continue main; - } - $this.$entityToAttack = null; - nms_EntityEnderman_setScreaming($this, 0); - $this.$field_104003_g = 0; - $ptr = 3; - continue main; - case 7: - nms_EntityMob_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - case 8: - $tmp = nms_EntityEnderman_teleportToEntity($this, var$1); - if ($rt_suspending()) { - break main; - } - $var1 = $tmp; - if ($var1) - $this.$teleportDelay = 0; - $ptr = 7; - continue main; - case 9: - nms_EntityEnderman_teleportRandomly($this); - if ($rt_suspending()) { - break main; - } - $this.$teleportDelay = 0; - $ptr = 7; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, $var6, $var2, $var3, $var4, $var5, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr); -} -function nms_EntityEnderman_teleportRandomly($this) { - var $var1, $var3, $var5, var$4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$4 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = $this.$posX + (Math.random() - 0.5) * 64.0; - $var3 = $this.$posY + ((Math.random() * 64.0 | 0) - 32 | 0); - $var5 = $this.$posZ + (Math.random() - 0.5) * 64.0; - $ptr = 1; - case 1: - $tmp = nms_EntityEnderman_teleportTo($this, $var1, $var3, $var5); - if ($rt_suspending()) { - break main; - } - var$4 = $tmp; - return var$4; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var3, $var5, var$4, $ptr); -} -function nms_EntityEnderman_teleportToEntity($this, $par1Entity) { - var $var5, $var7, $var9, var$5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$5 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = nms_Vec3_normalize(nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $this.$posX - $par1Entity.$posX, $this.$boundingBox.$minY + $this.$height1 / 2.0 - $par1Entity.$posY + $par1Entity.$getEyeHeight(), $this.$posZ - $par1Entity.$posZ)); - $var5 = $this.$posX + (Math.random() - 0.5) * 8.0 - $par1Entity.$xCoord * 16.0; - $var7 = $this.$posY + ((Math.random() * 16.0 | 0) - 8 | 0) - $par1Entity.$yCoord * 16.0; - $var9 = $this.$posZ + (Math.random() - 0.5) * 8.0 - $par1Entity.$zCoord * 16.0; - $ptr = 1; - case 1: - $tmp = nms_EntityEnderman_teleportTo($this, $var5, $var7, $var9); - if ($rt_suspending()) { - break main; - } - var$5 = $tmp; - return var$5; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $var5, $var7, $var9, var$5, $ptr); -} -function nms_EntityEnderman_teleportTo($this, $par1, $par3, $par5) { - var $var7, $var9, $var11, $var13, $var14, $var15, $var16, $var17, $var18, $var30, $var19, $var21, $var22, $var23, $var24, $var26, $var28, var$21, var$22, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var28 = $thread.pop();$var26 = $thread.pop();$var24 = $thread.pop();$var23 = $thread.pop();$var22 = $thread.pop();$var21 = $thread.pop();$var19 = $thread.pop();$var30 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$par5 = $thread.pop();$par3 - = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = $this.$posX; - $var9 = $this.$posY; - $var11 = $this.$posZ; - $this.$posX = $par1; - $this.$posY = $par3; - $this.$posZ = $par5; - $var13 = 0; - $par1 = $this.$posX; - $var14 = $par1 | 0; - if ($par1 < $var14) - $var14 = $var14 - 1 | 0; - $par1 = $this.$posY; - $var15 = $par1 | 0; - if ($par1 < $var15) - $var15 = $var15 - 1 | 0; - $par1 = $this.$posZ; - $var16 = $par1 | 0; - if ($par1 < $var16) - $var16 = $var16 - 1 | 0; - if ($var15 >= 0 && $var15 < 256 ? 1 : 0) { - $var17 = 0; - while (!$var17 && $var15 > 0) { - $var18 = nms_World_getBlockId($this.$worldObj, $var14, $var15 - 1 | 0, $var16); - if ($var18) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var18].$blockMaterial.$blocksMovement()) { - $var17 = 1; - continue; - } - } - $this.$posY = $this.$posY - 1.0; - $var15 = $var15 + (-1) | 0; - } - if ($var17) { - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - if ((nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, $this.$boundingBox).$size0 ? 0 : 1) && !nms_World_isAnyLiquid($this.$worldObj, $this.$boundingBox)) - $var13 = 1; - } - } - if (!$var13) { - nms_Entity_setPosition($this, $var7, $var9, $var11); - return 0; - } - $var30 = 128; - $var18 = 0; - $par3 = 127.0; - while ($var18 < $var30) { - $var19 = $var18 / $par3; - $var21 = (Math.random() - 0.5) * 0.20000000298023224; - $var22 = (Math.random() - 0.5) * 0.20000000298023224; - $var23 = (Math.random() - 0.5) * 0.20000000298023224; - $var24 = $var7 + ($this.$posX - $var7) * $var19 + (Math.random() - 0.5) * $this.$width1 * 2.0; - $var26 = $var9 + ($this.$posY - $var9) * $var19 + Math.random() * $this.$height1; - $var28 = $var11 + ($this.$posZ - $var11) * $var19 + (Math.random() - 0.5) * $this.$width1 * 2.0; - var$21 = $this.$worldObj; - var$22 = $rt_s(716); - $par1 = $var21; - $par5 = $var22; - $var19 = $var23; - $var13 = 0; - if ($var13 < var$21.$worldAccesses.$size0) { - var$23 = var$21.$worldAccesses; - if ($var13 >= 0 && $var13 < var$23.$size0) { - var$23 = var$23.$array1.data[$var13]; - $ptr = 1; - continue main; - } - var$21 = new jl_IndexOutOfBoundsException; - var$21.$suppressionEnabled = 1; - var$21.$writableStackTrace = 1; - $rt_throw(var$21); - } - $var18 = $var18 + 1 | 0; - } - nms_World_playSoundEffect($this.$worldObj, $var7, $var9, $var11, $rt_s(1250), 1.0, 1.0); - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1250), 1.0, 1.0); - return 1; - case 1: - nms_RenderGlobal_doSpawnParticle(var$23, var$22, $var24, $var26, $var28, $par1, $par5, $var19); - if ($rt_suspending()) { - break main; - } - $var13 = $var13 + 1 | 0; - while (true) { - if ($var13 < var$21.$worldAccesses.$size0) { - var$23 = var$21.$worldAccesses; - if ($var13 >= 0 && $var13 < var$23.$size0) { - var$23 = var$23.$array1.data[$var13]; - continue main; - } - var$21 = new jl_IndexOutOfBoundsException; - var$21.$suppressionEnabled = 1; - var$21.$writableStackTrace = 1; - $rt_throw(var$21); - } - $var18 = $var18 + 1 | 0; - if ($var18 >= $var30) - break; - $var19 = $var18 / $par3; - $var21 = (Math.random() - 0.5) * 0.20000000298023224; - $var22 = (Math.random() - 0.5) * 0.20000000298023224; - $var23 = (Math.random() - 0.5) * 0.20000000298023224; - $var24 = $var7 + ($this.$posX - $var7) * $var19 + (Math.random() - 0.5) * $this.$width1 * 2.0; - $var26 = $var9 + ($this.$posY - $var9) * $var19 + Math.random() * $this.$height1; - $var28 = $var11 + ($this.$posZ - $var11) * $var19 + (Math.random() - 0.5) * $this.$width1 * 2.0; - var$21 = $this.$worldObj; - var$22 = $rt_s(716); - $par1 = $var21; - $par5 = $var22; - $var19 = $var23; - $var13 = 0; - } - nms_World_playSoundEffect($this.$worldObj, $var7, $var9, $var11, $rt_s(1250), 1.0, 1.0); - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1250), 1.0, 1.0); - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par3, $par5, $var7, $var9, $var11, $var13, $var14, $var15, $var16, $var17, $var18, $var30, $var19, $var21, $var22, $var23, $var24, $var26, $var28, var$21, var$22, var$23, $ptr); -} -function nms_EntityEnderman_getLivingSound($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 18) <= 0 ? 0 : 1) ? $rt_s(1251) : $rt_s(1252); -} -function nms_EntityEnderman_getHurtSound($this) { - return $rt_s(1253); -} -function nms_EntityEnderman_getDeathSound($this) { - return $rt_s(1254); -} -function nms_EntityEnderman_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_enderPearl.$itemID; -} -function nms_EntityEnderman_dropFewItems($this, $par1, $par2) { - var $var3, $var4, $var5, var$6, var$7, var$8; - a: { - nms_Item_$callClinit(); - $var3 = nms_Item_enderPearl.$itemID; - if ($var3 > 0) { - $par1 = 2 + $par2 | 0; - $var4 = Math.random() * $par1 | 0; - $var5 = 0; - while (true) { - if ($var5 >= $var4) - break a; - var$6 = new nms_ItemStack; - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = $var3; - var$6.$stackSize = 1; - var$6.$itemDamage = 0; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - var$7 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$7.$dataWatcher, 10, var$6); - nms_DataWatcher_setObjectWatched(var$7.$dataWatcher, 10); - var$7.$delayBeforeCanPickup = 10; - var$8 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$8, var$7); - var$6 = var$8.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, var$7, var$6); - if (!$par1) { - var$6 = var$8.$entitySpawnQueue; - ju_HashMap_putImpl(var$6.$backingMap, var$7, var$6); - } - $var5 = $var5 + 1 | 0; - } - } - } -} -function nms_EntityEnderman_setCarried($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = ($par1 & 255) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 16, var$3); -} -function nms_EntityEnderman_getCarried($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); -} -function nms_EntityEnderman_setCarryingData($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = ($par1 & 255) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 17, var$3); -} -function nms_EntityEnderman_getCarryingData($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 17); -} -function nms_EntityEnderman_attackEntityFrom($this, $par1DamageSource, $par2) { - var var$3, var$4, $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - var$3 = $this.$dataWatcher; - var$4 = new jl_Byte; - var$4.$value4 = 1; - nms_DataWatcher_updateObject(var$3, 18, var$4); - if ($par1DamageSource instanceof nms_EntityDamageSource && $par1DamageSource.$getEntity() instanceof nms_EntityPlayer) - $this.$field_104003_g = 1; - if (!($par1DamageSource instanceof nms_EntityDamageSourceIndirect)) { - $ptr = 1; - continue main; - } - $this.$field_104003_g = 0; - $var3 = 0; - if ($var3 >= 64) - return 0; - $ptr = 2; - continue main; - case 1: - $tmp = nms_EntityMob_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - case 2: - $tmp = nms_EntityEnderman_teleportRandomly($this); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if ($par2) - return 1; - $var3 = $var3 + 1 | 0; - if ($var3 >= 64) - return 0; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, var$3, var$4, $var3, $ptr); -} -function nms_EntityEnderman_isScreaming($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 18) <= 0 ? 0 : 1; -} -function nms_EntityEnderman_setScreaming($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = (!$par1 ? 0 : 1) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 18, var$3); -} -function nms_EntityEnderman_getAttackStrength($this, $par1Entity) { - return 7; -} -function nms_EntityEnderman__clinit_() { - var var$1; - nms_EntityEnderman_carriableBlocks = $rt_createBooleanArray(256); - var$1 = nms_EntityEnderman_carriableBlocks.data; - nms_Block_$callClinit(); - var$1[nms_Block_grass.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_dirt.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_sand.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_gravel.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_plantYellow.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_plantRed.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_mushroomBrown.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_mushroomRed.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_tnt.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_cactus.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_blockClay.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_pumpkin.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_melon.$blockID] = 1; - nms_EntityEnderman_carriableBlocks.data[nms_Block_mycelium.$blockID] = 1; -} -function nms_RenderEnderman() { - var a = this; nms_RenderLiving.call(a); - a.$endermanModel = null; - a.$rnd = null; -} -var nms_RenderEnderman_terrain = null; -var nms_RenderEnderman_tex_eyes = null; -var nms_RenderEnderman_entityTexture = null; -function nms_RenderEnderman__init_0() { - var var_0 = new nms_RenderEnderman(); - nms_RenderEnderman__init_(var_0); - return var_0; -} -function nms_RenderEnderman__init_($this) { - var var$1; - var$1 = nms_ModelEnderman__init_0(); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$rnd = new ju_Random; - $this.$endermanModel = $this.$mainModel; - $this.$renderPassModel = $this.$endermanModel; -} -function nms_RenderEnderman_renderEnderman($this, $par1EntityEnderman, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityEnderman = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$endermanModel.$isCarrying = nms_DataWatcher_getWatchableObjectByte($par1EntityEnderman.$dataWatcher, 16) <= 0 ? 0 : 1; - $this.$endermanModel.$isAttacking = nms_DataWatcher_getWatchableObjectByte($par1EntityEnderman.$dataWatcher, 18) <= 0 ? 0 : 1; - if (nms_DataWatcher_getWatchableObjectByte($par1EntityEnderman.$dataWatcher, 18) <= 0 ? 0 : 1) { - $par2 = $par2 + ju_Random_nextGaussian($this.$rnd) * 0.02; - $par6 = $par6 + ju_Random_nextGaussian($this.$rnd) * 0.02; - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityEnderman, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityEnderman, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderEnderman_renderCarrying($this, $par1EntityEnderman, $par2) { - var var$3, var$4, var$5, $var5, $var6, $var4, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var4 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1EntityEnderman = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_DataWatcher_getWatchableObjectByte($par1EntityEnderman.$dataWatcher, 16) <= 0) - return; - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glPushMatrix(); - var$3 = nleg_EaglerAdapterGL30_deevis; - var$3.$x = 0.0; - var$3.$y = 0.6875; - var$3.$z = (-0.75); - 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)); - $var5 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, $var5, $var5 + 1 | 0); - var$4.$buffer.data[$var5] = 10; - ji_PrintStream_printSB(var$5); - } - nleg_EaglerAdapterGL30_glRotatef(20.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - var$3 = nleg_EaglerAdapterGL30_deevis; - var$3.$x = (-0.5); - var$3.$y = (-0.5); - var$3.$z = 0.5; - var$3 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(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$3 = jl_System_errCache; - var$5 = var$3.$sb; - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(220)); - $var6 = var$5.$length; - jl_AbstractStringBuilder_insertSpace(var$5, $var6, $var6 + 1 | 0); - var$5.$buffer.data[$var6] = 10; - ji_PrintStream_printSB(var$3); - } - a: { - $var4 = nms_Entity_getBrightnessForRender($par1EntityEnderman, $par2); - $var5 = $var4 % 65536 | 0; - $var6 = $var4 / 65536 | 0; - $var4 = nms_OpenGlHelper_lightmapTexUnit; - $par2 = $var5 / 1.0; - var$9 = $var6 / 1.0; - switch ($var4) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = $par2; - nleg_EaglerAdapterGL30_tex1Y = var$9; - break a; - default: - 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(238)); - $var5 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, $var5, $var5 + 1 | 0); - var$4.$buffer.data[$var5] = 10; - ji_PrintStream_printSB(var$5); - break a; - } - nleg_EaglerAdapterGL30_tex0X = $par2; - nleg_EaglerAdapterGL30_tex0Y = var$9; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture(nms_RenderEnderman_terrain); - var$3 = $this.$renderBlocks; - nms_Block_$callClinit(); - var$4 = nms_Block_blocksList.data[nms_DataWatcher_getWatchableObjectByte($par1EntityEnderman.$dataWatcher, 16)]; - $var4 = nms_DataWatcher_getWatchableObjectByte($par1EntityEnderman.$dataWatcher, 17); - $par2 = 1.0; - $ptr = 1; - case 1: - nms_RenderBlocks_renderBlockAsItem(var$3, var$4, $var4, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(41); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityEnderman, $par2, var$3, var$4, var$5, $var5, $var6, $var4, var$9, $ptr); -} -function nms_RenderEnderman_renderEyes($this, $par1EntityEnderman, $par2, $par3) { - var var$4, var$5, var$6; - if ($par2) - return (-1); - nle_TextureLocation_bindTexture(nms_RenderEnderman_tex_eyes); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glBlendFunc(1, 1); - nleg_EaglerAdapterGL30_glDisable(13); - if (!(!(nms_DataWatcher_getWatchableObjectByte($par1EntityEnderman.$dataWatcher, 0) & 32) ? 0 : 1)) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - } else { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - } - a: { - switch (nms_OpenGlHelper_lightmapTexUnit) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = 61680.0; - nleg_EaglerAdapterGL30_tex1Y = 0.0; - break a; - default: - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityEnderman = new jl_StringBuilder; - $par1EntityEnderman.$buffer = $rt_createCharArray(16); - var$4.$sb = $par1EntityEnderman; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - $par1EntityEnderman = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityEnderman, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = $par1EntityEnderman; - 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(238)); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); - break a; - } - nleg_EaglerAdapterGL30_tex0X = 61680.0; - nleg_EaglerAdapterGL30_tex0Y = 0.0; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_colorR = 2.299999952316284; - nleg_EaglerAdapterGL30_colorG = 2.299999952316284; - nleg_EaglerAdapterGL30_colorB = 2.299999952316284; - nleg_EaglerAdapterGL30_colorA = 1.0; - return 1; -} -function nms_RenderEnderman_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderEnderman_renderEyes($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderEnderman_renderEquippedItems($this, $par1EntityLiving, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderEnderman_renderCarrying($this, $par1EntityLiving, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $ptr); -} -function nms_RenderEnderman_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderEnderman_renderEnderman($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderEnderman_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderEnderman_renderEnderman($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderEnderman_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderEnderman_entityTexture); -} -function nms_RenderEnderman__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderEnderman_terrain = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1255); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderEnderman_tex_eyes = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1005); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderEnderman_entityTexture = var$1; -} -function nms_EntityGolem() { - nms_EntityCreature.call(this); -} -function nms_EntityGolem_fall($this, $par1) { - return; -} -function nms_EntityGolem_getLivingSound($this) { - return $rt_s(1256); -} -function nms_EntityGolem_getHurtSound($this) { - return $rt_s(1256); -} -function nms_EntityGolem_getDeathSound($this) { - return $rt_s(1256); -} -function nms_EntityGolem_getTalkInterval($this) { - return 120; -} -function nms_EntityGolem_canDespawn($this) { - return 0; -} -function nms_IRangedAttackMob() { -} -function nms_EntitySnowman() { - nms_EntityGolem.call(this); -} -function nms_EntitySnowman__init_0() { - var var_0 = new nms_EntitySnowman(); - nms_EntitySnowman__init_(var_0); - return var_0; -} -function nms_EntitySnowman__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - nms_Entity_setSize($this, 0.4000000059604645, 1.7999999523162842); -} -function nms_EntitySnowman_isAIEnabled($this) { - return 1; -} -function nms_EntitySnowman_getMaxHealth($this) { - return 4; -} -function nms_EntitySnowman_onLivingUpdate($this) { - var var$1, var$2, var$3, $var1, $var2, $var3, var$7, $var4, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var4 = $thread.pop();var$7 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - if (nms_Entity_isWet($this)) { - var$1 = nms_DamageSource_drown; - var$2 = 1; - $ptr = 2; - continue main; - } - var$3 = $this.$posX; - $var1 = var$3 | 0; - if (var$3 < $var1) - $var1 = $var1 - 1 | 0; - var$3 = $this.$posZ; - $var2 = var$3 | 0; - if (var$3 < $var2) - $var2 = $var2 - 1 | 0; - var$1 = $this.$worldObj; - $var3 = $var1 >> 4; - var$2 = $var2 >> 4; - if (nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk(var$1.$chunkProvider, $var3, var$2), $var1 & 15, $var2 & 15).$temperature > 1.0) { - var$1 = nms_DamageSource_onFire; - var$2 = 1; - $ptr = 3; - continue main; - } - $var2 = 0; - while ($var2 < 4) { - var$3 = $this.$posX + ((($var2 % 2 | 0) * 2 | 0) - 1 | 0) * 0.25; - var$7 = var$3 | 0; - if (var$3 < var$7) - var$7 = var$7 - 1 | 0; - var$3 = $this.$posY; - $var3 = var$3 | 0; - if (var$3 < $var3) - $var3 = $var3 - 1 | 0; - var$3 = $this.$posZ + (((($var2 / 2 | 0) % 2 | 0) * 2 | 0) - 1 | 0) * 0.25; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - if (!nms_World_getBlockId($this.$worldObj, var$7, $var3, $var4)) { - var$1 = $this.$worldObj; - $var1 = var$7 >> 4; - var$2 = $var4 >> 4; - if (nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk(var$1.$chunkProvider, $var1, var$2), var$7 & 15, $var4 & 15).$temperature < 0.800000011920929) { - nms_Block_$callClinit(); - if (nms_Block_snow.$canPlaceBlockAt($this.$worldObj, var$7, $var3, $var4)) { - var$1 = $this.$worldObj; - var$2 = nms_Block_snow.$blockID; - $var1 = 0; - var$9 = 3; - $ptr = 4; - continue main; - } - } - } - $var2 = $var2 + 1 | 0; - } - return; - case 2: - nms_EntityLiving_attackEntityFrom($this, var$1, var$2); - if ($rt_suspending()) { - break main; - } - var$3 = $this.$posX; - $var1 = var$3 | 0; - if (var$3 < $var1) - $var1 = $var1 - 1 | 0; - var$3 = $this.$posZ; - $var2 = var$3 | 0; - if (var$3 < $var2) - $var2 = $var2 - 1 | 0; - var$1 = $this.$worldObj; - $var3 = $var1 >> 4; - var$2 = $var2 >> 4; - if (nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk(var$1.$chunkProvider, $var3, var$2), $var1 & 15, $var2 & 15).$temperature > 1.0) { - var$1 = nms_DamageSource_onFire; - var$2 = 1; - $ptr = 3; - continue main; - } - $var2 = 0; - while ($var2 < 4) { - var$3 = $this.$posX + ((($var2 % 2 | 0) * 2 | 0) - 1 | 0) * 0.25; - var$7 = var$3 | 0; - if (var$3 < var$7) - var$7 = var$7 - 1 | 0; - var$3 = $this.$posY; - $var3 = var$3 | 0; - if (var$3 < $var3) - $var3 = $var3 - 1 | 0; - var$3 = $this.$posZ + (((($var2 / 2 | 0) % 2 | 0) * 2 | 0) - 1 | 0) * 0.25; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - if (!nms_World_getBlockId($this.$worldObj, var$7, $var3, $var4)) { - var$1 = $this.$worldObj; - $var1 = var$7 >> 4; - var$2 = $var4 >> 4; - if (nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk(var$1.$chunkProvider, $var1, var$2), var$7 & 15, $var4 & 15).$temperature < 0.800000011920929) { - nms_Block_$callClinit(); - if (nms_Block_snow.$canPlaceBlockAt($this.$worldObj, var$7, $var3, $var4)) { - var$1 = $this.$worldObj; - var$2 = nms_Block_snow.$blockID; - $var1 = 0; - var$9 = 3; - $ptr = 4; - continue main; - } - } - } - $var2 = $var2 + 1 | 0; - } - return; - case 3: - nms_EntityLiving_attackEntityFrom($this, var$1, var$2); - if ($rt_suspending()) { - break main; - } - $var2 = 0; - while ($var2 < 4) { - var$3 = $this.$posX + ((($var2 % 2 | 0) * 2 | 0) - 1 | 0) * 0.25; - var$7 = var$3 | 0; - if (var$3 < var$7) - var$7 = var$7 - 1 | 0; - var$3 = $this.$posY; - $var3 = var$3 | 0; - if (var$3 < $var3) - $var3 = $var3 - 1 | 0; - var$3 = $this.$posZ + (((($var2 / 2 | 0) % 2 | 0) * 2 | 0) - 1 | 0) * 0.25; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - if (!nms_World_getBlockId($this.$worldObj, var$7, $var3, $var4)) { - var$1 = $this.$worldObj; - $var1 = var$7 >> 4; - var$2 = $var4 >> 4; - if (nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk(var$1.$chunkProvider, $var1, var$2), var$7 & 15, $var4 & 15).$temperature < 0.800000011920929) { - nms_Block_$callClinit(); - if (nms_Block_snow.$canPlaceBlockAt($this.$worldObj, var$7, $var3, $var4)) { - var$1 = $this.$worldObj; - var$2 = nms_Block_snow.$blockID; - $var1 = 0; - var$9 = 3; - $ptr = 4; - continue main; - } - } - } - $var2 = $var2 + 1 | 0; - } - return; - case 4: - nms_World_setBlock(var$1, var$7, $var3, $var4, var$2, $var1, var$9); - if ($rt_suspending()) { - break main; - } - while (true) { - $var2 = $var2 + 1 | 0; - if ($var2 >= 4) - break; - var$3 = $this.$posX + ((($var2 % 2 | 0) * 2 | 0) - 1 | 0) * 0.25; - var$7 = var$3 | 0; - if (var$3 < var$7) - var$7 = var$7 - 1 | 0; - var$3 = $this.$posY; - $var3 = var$3 | 0; - if (var$3 < $var3) - $var3 = $var3 - 1 | 0; - var$3 = $this.$posZ + (((($var2 / 2 | 0) % 2 | 0) * 2 | 0) - 1 | 0) * 0.25; - $var4 = var$3 | 0; - if (var$3 < $var4) - $var4 = $var4 - 1 | 0; - if (nms_World_getBlockId($this.$worldObj, var$7, $var3, $var4)) - continue; - var$1 = $this.$worldObj; - $var1 = var$7 >> 4; - var$2 = $var4 >> 4; - if (nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk(var$1.$chunkProvider, $var1, var$2), var$7 & 15, $var4 & 15).$temperature >= 0.800000011920929) - continue; - nms_Block_$callClinit(); - if (!nms_Block_snow.$canPlaceBlockAt($this.$worldObj, var$7, $var3, $var4)) - continue; - else { - var$1 = $this.$worldObj; - var$2 = nms_Block_snow.$blockID; - $var1 = 0; - var$9 = 3; - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $var1, $var2, $var3, var$7, $var4, var$9, $ptr); -} -function nms_EntitySnowman_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_snowball.$itemID; -} -function nms_EntitySnowman_dropFewItems($this, $par1, $par2) { - var $var3, $var4, var$5, var$6, var$7; - $var3 = Math.random() * 16.0 | 0; - $var4 = 0; - while ($var4 < $var3) { - nms_Item_$callClinit(); - $par2 = nms_Item_snowball.$itemID; - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par2; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$6 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$6.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$6.$dataWatcher, 10); - var$6.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$5, var$6); - var$7 = var$5.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$6, var$7); - if (!$par1) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$6, var$5); - } - $var4 = $var4 + 1 | 0; - } -} -function nms_RenderSnowMan() { - nms_RenderLiving.call(this); - this.$snowmanModel = null; -} -var nms_RenderSnowMan_entityTexture = null; -function nms_RenderSnowMan__init_0() { - var var_0 = new nms_RenderSnowMan(); - nms_RenderSnowMan__init_(var_0); - return var_0; -} -function nms_RenderSnowMan__init_($this) { - var var$1; - var$1 = nms_ModelSnowMan__init_0(); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$snowmanModel = $this.$mainModel; - $this.$renderPassModel = $this.$snowmanModel; -} -function nms_RenderSnowMan_renderSnowmanPumpkin($this, $par1EntitySnowman, $par2) { - var $var3, var$4, var$5, var$6, 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();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntitySnowman = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = new nms_ItemStack; - nms_Block_$callClinit(); - var$4 = nms_Block_pumpkin.$blockID; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$4; - $var3.$stackSize = 1; - $var3.$itemDamage = 0; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var3.$itemID0].$itemID >= 256) - return; - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_ModelRenderer_postRender($this.$snowmanModel.$head1, 0.0625); - if (nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var3.$itemID0].$getRenderType())) { - var$5 = nleg_EaglerAdapterGL30_deevis; - var$5.$x = 0.0; - var$5.$y = (-0.34375); - var$5.$z = 0.0; - var$5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(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); - } - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 1.0, 0.0); - var$5 = nleg_EaglerAdapterGL30_deevis; - var$5.$x = 0.625; - var$5.$y = (-0.625); - var$5.$z = 0.625; - var$5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(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); - } - } - var$5 = $this.$renderManager.$itemRenderer; - var$9 = 0; - $ptr = 1; - case 1: - nms_ItemRenderer_renderItem(var$5, $par1EntitySnowman, $var3, var$9); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntitySnowman, $par2, $var3, var$4, var$5, var$6, var$7, var$8, var$9, $ptr); -} -function nms_RenderSnowMan_renderEquippedItems($this, $par1EntityLiving, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderSnowMan_renderSnowmanPumpkin($this, $par1EntityLiving, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $ptr); -} -function nms_RenderSnowMan_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderSnowMan_entityTexture); -} -function nms_RenderSnowMan__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1257); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSnowMan_entityTexture = var$1; -} -function nms_EntitySkeleton() { - nms_EntityMob.call(this); -} -function nms_EntitySkeleton__init_0() { - var var_0 = new nms_EntitySkeleton(); - nms_EntitySkeleton__init_(var_0); - return var_0; -} -function nms_EntitySkeleton__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - $this.$moveSpeed = 0.25; -} -function nms_EntitySkeleton_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 13, var$2); -} -function nms_EntitySkeleton_isAIEnabled($this) { - return 1; -} -function nms_EntitySkeleton_getMaxHealth($this) { - return 20; -} -function nms_EntitySkeleton_getLivingSound($this) { - return $rt_s(1258); -} -function nms_EntitySkeleton_getHurtSound($this) { - return $rt_s(1259); -} -function nms_EntitySkeleton_getDeathSound($this) { - return $rt_s(1260); -} -function nms_EntitySkeleton_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1261), 0.15000000596046448, 1.0); -} -function nms_EntitySkeleton_attackEntityAsMob($this, $par1Entity) { - var 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();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $tmp = nms_EntityMob_attackEntityAsMob($this, $par1Entity); - if ($rt_suspending()) { - break main; - } - var$2 = $tmp; - if (!var$2) - return 0; - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 13) == 1 && $par1Entity instanceof nms_EntityLiving) { - var$3 = $par1Entity; - var$4 = new nms_PotionEffect; - var$4.$potionID = nms_Potion_wither.$id3; - var$4.$duration = 200; - var$4.$amplifier = 0; - var$4.$isAmbient = 0; - var$3.$addPotionEffect(var$4); - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, var$2, var$3, var$4, $ptr); -} -function nms_EntitySkeleton_getAttackStrength($this, $par1Entity) { - var $var2, $var3; - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 13) != 1) - return 2; - $var2 = $this.$equipment.data[0]; - $var3 = 4; - if ($var2 !== null) { - nms_Item_$callClinit(); - $var3 = $var3 + nms_Item_itemsList.data[$var2.$itemID0].$getDamageVsEntity($this) | 0; - } - return $var3; -} -function nms_EntitySkeleton_getCreatureAttribute($this) { - return nms_EnumCreatureAttribute_UNDEAD; -} -function nms_EntitySkeleton_onLivingUpdate($this) { - var $var2, $var1, var$3, var$4, var$5, var$6, var$7, var$8, $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var1 = $thread.pop();$var2 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$worldObj.$skylightSubtracted >= 4 ? 0 : 1; - if ($var2 && !$this.$worldObj.$isRemote) { - $var1 = nms_Entity_getBrightness($this, 1.0); - if ($var1 > 0.5 && Math.random() * 30.0 < ($var1 - 0.4000000059604645) * 2.0) { - var$3 = $this.$worldObj; - var$4 = $this.$posX; - var$5 = var$4 | 0; - if (var$4 < var$5) - var$5 = var$5 - 1 | 0; - var$4 = $this.$posY; - var$6 = var$4 | 0; - if (var$4 < var$6) - var$6 = var$6 - 1 | 0; - var$4 = $this.$posZ; - var$7 = var$4 | 0; - if (var$4 < var$7) - var$7 = var$7 - 1 | 0; - var$8 = var$5 >> 4; - $var2 = var$7 >> 4; - if (nms_ChunkProviderClient_provideChunk(var$3.$chunkProvider, var$8, $var2).$canBlockSeeTheSky(var$5 & 15, var$6, var$7 & 15)) { - $var2 = 1; - $var3 = $this.$equipment.data[4]; - if ($var3 !== null) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var3.$itemID0].$maxDamage <= 0 ? 0 : 1) { - $var3.$itemDamage = $var3.$itemDamage + (Math.random() * 2.0 | 0) | 0; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var3.$itemDamage >= nms_Item_itemsList.data[$var3.$itemID0].$maxDamage) { - $ptr = 2; - continue main; - } - } - $var2 = 0; - } - if ($var2) { - $var2 = nms_EnchantmentProtection_func_92093_a($this, 160); - if ($this.$fire < $var2) - $this.$fire = $var2; - } - } - } - } - if ($this.$worldObj.$isRemote && nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 13) == 1) - nms_Entity_setSize($this, 0.7200000286102295, 2.3399999141693115); - nms_EntityLiving_updateArmSwingProgress($this); - if (nms_Entity_getBrightness($this, 1.0) > 0.5) - $this.$entityAge = $this.$entityAge + 2 | 0; - $ptr = 1; - case 1: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_EntityLiving_renderBrokenItemStack($this, $var3); - if ($rt_suspending()) { - break main; - } - $this.$equipment.data[4] = null; - if (0) { - $var2 = nms_EnchantmentProtection_func_92093_a($this, 160); - if ($this.$fire < $var2) - $this.$fire = $var2; - } - if ($this.$worldObj.$isRemote && nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 13) == 1) - nms_Entity_setSize($this, 0.7200000286102295, 2.3399999141693115); - nms_EntityLiving_updateArmSwingProgress($this); - if (nms_Entity_getBrightness($this, 1.0) > 0.5) - $this.$entityAge = $this.$entityAge + 2 | 0; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var2, $var1, var$3, var$4, var$5, var$6, var$7, var$8, $var3, $ptr); -} -function nms_EntitySkeleton_onDeath($this, $par1DamageSource) { - var $var2, $var3, $var5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_onDeath($this, $par1DamageSource); - if ($rt_suspending()) { - break main; - } - if ($par1DamageSource.$getSourceOfDamage() instanceof nms_EntityArrow && $par1DamageSource.$getEntity() instanceof nms_EntityPlayer) { - $var2 = $par1DamageSource.$getEntity(); - $var3 = $var2.$posX - $this.$posX; - $var5 = $var2.$posZ - $this.$posZ; - if ($var3 * $var3 + $var5 * $var5 >= 2500.0) { - nms_AchievementList_$callClinit(); - $var2.$addStat(nms_AchievementList_snipeSkeleton, 1); - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $var2, $var3, $var5, $ptr); -} -function nms_EntitySkeleton_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_arrow.$itemID; -} -function nms_EntitySkeleton_dropFewItems($this, $par1, $par2) { - var $var3, $var4, var$5, var$6, var$7, $var3_0, var$9; - a: { - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 13) != 1) { - $par1 = 3 + $par2 | 0; - $var3 = Math.random() * $par1 | 0; - $var4 = 0; - while (true) { - if ($var4 >= $var3) - break a; - nms_Item_$callClinit(); - $par1 = nms_Item_arrow.$itemID; - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par1; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$6 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$6.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$6.$dataWatcher, 10); - var$6.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$5, var$6); - var$7 = var$5.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$6, var$7); - if (!$par1) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$6, var$5); - } - $var4 = $var4 + 1 | 0; - } - } - $par1 = 3 + $par2 | 0; - $var3_0 = (Math.random() * $par1 | 0) - 1 | 0; - $var4 = 0; - while (true) { - if ($var4 >= $var3_0) - break a; - nms_Item_$callClinit(); - $par1 = nms_Item_coal.$itemID; - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par1; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$6 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$6.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$6.$dataWatcher, 10); - var$6.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$5, var$6); - var$7 = var$5.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$6, var$7); - if (!$par1) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$6, var$5); - } - $var4 = $var4 + 1 | 0; - } - } - $par1 = 3 + $par2 | 0; - var$9 = Math.random() * $par1 | 0; - $par1 = 0; - while ($par1 < var$9) { - nms_Item_$callClinit(); - $par2 = nms_Item_bone.$itemID; - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par2; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$6 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$6.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$6.$dataWatcher, 10); - var$6.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par2 = nms_World_spawnEntityInWorld(var$5, var$6); - var$7 = var$5.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$6, var$7); - if (!$par2) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$6, var$5); - } - $par1 = $par1 + 1 | 0; - } -} -function nms_EntitySkeleton_dropRareDrop($this, $par1) { - var var$2, var$3, var$4, var$5; - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 13) == 1) { - var$2 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_skull.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 1; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$4.$dataWatcher, 10, var$2); - nms_DataWatcher_setObjectWatched(var$4.$dataWatcher, 10); - var$4.$delayBeforeCanPickup = 10; - var$2 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$2, var$4); - var$5 = var$2.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$4, var$5); - if (!$par1) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, var$4, var$2); - } - } -} -function nms_EntitySkeleton_initCreature($this) { - return; -} -function nms_EntitySkeleton_setCombatTask($this) { - return; -} -function nms_EntitySkeleton_getSkeletonType($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 13); -} -function nms_EntitySkeleton_setCurrentItemOrArmor($this, $par1, $par2ItemStack) { - $this.$equipment.data[$par1] = $par2ItemStack; -} -function nms_RenderBiped() { - var a = this; nms_RenderLiving.call(a); - a.$modelBipedMain = null; - a.$field_77070_b = 0.0; - a.$field_82423_g = null; - a.$field_82425_h = null; -} -var nms_RenderBiped_bipedArmorFilenamePrefix = null; -function nms_RenderBiped_func_82421_b($this) { - $this.$field_82423_g = nms_ModelBiped__init_0(1.0, 0.0, 64, 32); - $this.$field_82425_h = nms_ModelBiped__init_0(0.5, 0.0, 64, 32); -} -function nms_RenderBiped_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - var $var4, $var5, $var6, var$7, var$8, $var9, $var7, $var10, $var11, $var12, $var8; - $var4 = $par1EntityLiving.$getCurrentArmor(3 - $par2 | 0); - if ($var4 !== null) { - nms_Item_$callClinit(); - $var5 = nms_Item_itemsList.data[$var4.$itemID0]; - if ($var5 instanceof nms_ItemArmor) { - $var6 = $var5; - $var5 = new jl_StringBuilder; - $var5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var5, $var5.$length, $rt_s(1262)); - $par1EntityLiving = nms_RenderBiped_bipedArmorFilenamePrefix.data[$var6.$renderIndex]; - jl_AbstractStringBuilder_insert($var5, $var5.$length, $par1EntityLiving); - jl_AbstractStringBuilder_insert($var5, $var5.$length, $rt_s(381)); - var$7 = $rt_compare($par2, 2); - var$8 = var$7 ? 1 : 2; - jl_AbstractStringBuilder_insert0($var5, $var5.$length, var$8, 10); - jl_AbstractStringBuilder_insert($var5, $var5.$length, $rt_s(1173)); - $par1EntityLiving = jl_String__init_0($var5.$buffer, 0, $var5.$length); - $var5 = $this.$renderManager.$renderEngine1; - $var9 = nms_RenderEngine_getTexture($var5, $par1EntityLiving); - if ($var9 != $var5.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_texObjects; - $par1EntityLiving = $var9 < $par1EntityLiving.$size3 && $var9 >= 0 ? $par1EntityLiving.$values.data[$var9] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - $var7 = nlea_EaglerAdapterImpl2_webgl; - $par1EntityLiving = $par1EntityLiving !== null ? $par1EntityLiving.$obj : null; - $var7.bindTexture(3553, $par1EntityLiving); - $var5.$boundTexture = $var9; - } - $var7 = var$7 ? $this.$field_82423_g : $this.$field_82425_h; - $var7.$bipedHead.$showModel = $par2 ? 0 : 1; - $var7.$bipedHeadwear.$showModel = $par2 ? 0 : 1; - $par1EntityLiving = $var7.$bipedBody; - $var9 = $rt_compare($par2, 1); - $par1EntityLiving.$showModel = $var9 && var$7 ? 0 : 1; - $var7.$bipedRightArm.$showModel = $var9 ? 0 : 1; - $var7.$bipedLeftArm.$showModel = $var9 ? 0 : 1; - $var7.$bipedRightLeg.$showModel = var$7 && $par2 != 3 ? 0 : 1; - $var7.$bipedLeftLeg.$showModel = var$7 && $par2 != 3 ? 0 : 1; - $this.$renderPassModel = $var7; - $var7.$onGround1 = $this.$mainModel.$onGround1; - $var7.$isRiding = $this.$mainModel.$isRiding; - $var7.$isChild0 = $this.$mainModel.$isChild0; - if ($var6.$material !== nms_EnumArmorMaterial_CLOTH) { - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - if (!nms_ItemStack_isItemEnchanted($var4)) - return 1; - return 15; - } - $var9 = nms_ItemArmor_getColor($var6, $var4); - $var10 = ($var9 >> 16 & 255) / 255.0; - $var11 = ($var9 >> 8 & 255) / 255.0; - $var12 = ($var9 & 255) / 255.0; - $par3 = 1.0 * $var10; - $var10 = 1.0 * $var11; - $var8 = 1.0 * $var12; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = $par3; - nleg_EaglerAdapterGL30_colorG = $var10; - nleg_EaglerAdapterGL30_colorB = $var8; - nleg_EaglerAdapterGL30_colorA = 1.0; - if (!nms_ItemStack_isItemEnchanted($var4)) - return 16; - return 31; - } - } - return (-1); -} -function nms_RenderBiped_func_82408_c($this, $par1EntityLiving, $par2, $par3) { - var $var4, $var5, $var6; - $var4 = $par1EntityLiving.$getCurrentArmor(3 - $par2 | 0); - if ($var4 !== null) { - nms_Item_$callClinit(); - $var5 = nms_Item_itemsList.data[$var4.$itemID0]; - if ($var5 instanceof nms_ItemArmor) { - $var6 = $var5; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1EntityLiving, $par1EntityLiving.$length, $rt_s(1262)); - $var4 = nms_RenderBiped_bipedArmorFilenamePrefix.data[$var6.$renderIndex]; - jl_AbstractStringBuilder_insert($par1EntityLiving, $par1EntityLiving.$length, $var4); - jl_AbstractStringBuilder_insert($par1EntityLiving, $par1EntityLiving.$length, $rt_s(381)); - $par2 = $par2 != 2 ? 1 : 2; - jl_AbstractStringBuilder_insert0($par1EntityLiving, $par1EntityLiving.$length, $par2, 10); - jl_AbstractStringBuilder_insert($par1EntityLiving, $par1EntityLiving.$length, $rt_s(1263)); - $var4 = jl_String__init_0($par1EntityLiving.$buffer, 0, $par1EntityLiving.$length); - $par1EntityLiving = $this.$renderManager.$renderEngine1; - $par2 = nms_RenderEngine_getTexture($par1EntityLiving, $var4); - if ($par2 != $par1EntityLiving.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - $var4 = nleg_EaglerAdapterGL30_texObjects; - $var4 = $par2 < $var4.$size3 && $par2 >= 0 ? $var4.$values.data[$par2] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - $var6 = nlea_EaglerAdapterImpl2_webgl; - $var4 = $var4 !== null ? $var4.$obj : null; - $var6.bindTexture(3553, $var4); - $par1EntityLiving.$boundTexture = $par2; - } - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - } - } -} -function nms_RenderBiped_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $var12, $var11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var11 = $thread.pop();$var12 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nms_RenderBiped_func_82420_a($this, $par1EntityLiving, $par1EntityLiving.$getHeldItem()); - $var12 = $par4 - $par1EntityLiving.$yOffset0; - if ($par1EntityLiving.$isSneaking() && !($par1EntityLiving instanceof nms_EntityPlayerSP)) - $var12 = $var12 - 0.125; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $var12, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - $par1EntityLiving = $this.$field_82423_g; - $var11 = $this.$field_82425_h; - $this.$modelBipedMain.$aimedBow = 0; - $var11.$aimedBow = 0; - $par1EntityLiving.$aimedBow = 0; - $par1EntityLiving = $this.$field_82423_g; - $var11 = $this.$field_82425_h; - $this.$modelBipedMain.$isSneak = 0; - $var11.$isSneak = 0; - $par1EntityLiving.$isSneak = 0; - $par1EntityLiving = $this.$field_82423_g; - $var11 = $this.$field_82425_h; - $this.$modelBipedMain.$heldItemRight = 0; - $var11.$heldItemRight = 0; - $par1EntityLiving.$heldItemRight = 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $var12, $var11, $ptr); -} -function nms_RenderBiped_func_82420_a($this, $par1EntityLiving, $par2ItemStack) { - var var$3, var$4, var$5, var$6; - var$3 = $this.$field_82423_g; - var$4 = $this.$field_82425_h; - var$5 = $this.$modelBipedMain; - var$6 = $par2ItemStack === null ? 0 : 1; - var$5.$heldItemRight = var$6; - var$4.$heldItemRight = var$6; - var$3.$heldItemRight = var$6; - $par2ItemStack = $this.$field_82423_g; - var$3 = $this.$field_82425_h; - var$4 = $this.$modelBipedMain; - var$6 = $par1EntityLiving.$isSneaking(); - var$4.$isSneak = var$6; - var$3.$isSneak = var$6; - $par2ItemStack.$isSneak = var$6; -} -function nms_RenderBiped_renderEquippedItems($this, $par1EntityLiving, $par2) { - var $var4, $var5, $var7, var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var4 = $par1EntityLiving.$getHeldItem(); - $var5 = $par1EntityLiving.$getCurrentArmor(3); - if ($var5 !== null) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_ModelRenderer_postRender($this.$modelBipedMain.$bipedHead, 0.0625); - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var5.$itemID0].$itemID < 256) { - nms_Block_$callClinit(); - if (nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var5.$itemID0].$getRenderType())) { - $var7 = nleg_EaglerAdapterGL30_deevis; - $var7.$x = 0.0; - $var7.$y = (-0.25); - $var7.$z = 0.0; - $var7 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var7, $var7); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) - jl_System_errCache = ji_PrintStream__init_(new jl_ConsoleOutputStreamStderr, 0); - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), (-0.625)); - } - $var7 = $this.$renderManager.$itemRenderer; - var$6 = 0; - $ptr = 1; - continue main; - } - if (nms_Item_itemsList.data[$var5.$itemID0].$itemID == nms_Item_skull.$itemID) { - nleg_EaglerAdapterGL30_glScalef(1.0625, (-1.0625), (-1.0625)); - $var7 = $rt_s(44); - if (nms_ItemStack_hasTagCompound($var5) && ju_HashMap_containsKey($var5.$stackTagCompound.$tagMap, $rt_s(1264))) - $var7 = nms_NBTTagCompound_getString(nms_ItemStack_getTagCompound($var5), $rt_s(1264)); - nms_TileEntitySkullRenderer_func_82393_a(nms_TileEntitySkullRenderer_skullRenderer, (-0.5), 0.0, (-0.5), 1, 180.0, $var5.$itemDamage, $var7); - } - nleg_EaglerAdapterGL30_glPopMatrix(); - } - if ($var4 === null) - return; - nleg_EaglerAdapterGL30_glPushMatrix(); - if ($this.$mainModel.$isChild0) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.625, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-20.0), (-1.0), 0.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.5, 0.5, 0.5); - } - a: { - nms_ModelRenderer_postRender($this.$modelBipedMain.$bipedRightArm, 0.0625); - nleg_EaglerAdapterGL30_glTranslatef((-0.0625), 0.4375, 0.0625); - if ($var4.$itemID0 < 256) { - nms_Block_$callClinit(); - if (nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var4.$itemID0].$getRenderType())) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.1875, (-0.3125)); - nleg_EaglerAdapterGL30_glRotatef(20.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef((-0.375), (-0.375), 0.375); - break a; - } - } - var$6 = $var4.$itemID0; - nms_Item_$callClinit(); - if (var$6 == nms_Item_bow.$itemID) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.125, 0.3125); - nleg_EaglerAdapterGL30_glRotatef((-20.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } else if (!nms_Item_itemsList.data[$var4.$itemID0].$isFull3D()) { - nleg_EaglerAdapterGL30_glTranslatef(0.25, 0.1875, (-0.1875)); - nleg_EaglerAdapterGL30_glScalef(0.375, 0.375, 0.375); - nleg_EaglerAdapterGL30_glRotatef(60.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef((-90.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(20.0, 0.0, 0.0, 1.0); - } else { - if (nms_Item_itemsList.data[$var4.$itemID0].$shouldRotateAroundWhenRendering()) { - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.125), 0.0); - } - $this.$func_82422_c(); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } - } - $var5 = $this.$renderManager.$itemRenderer; - var$6 = 0; - $ptr = 2; - continue main; - case 1: - nms_ItemRenderer_renderItem($var7, $par1EntityLiving, $var5, var$6); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - if ($var4 === null) - return; - nleg_EaglerAdapterGL30_glPushMatrix(); - if ($this.$mainModel.$isChild0) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.625, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-20.0), (-1.0), 0.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.5, 0.5, 0.5); - } - b: { - nms_ModelRenderer_postRender($this.$modelBipedMain.$bipedRightArm, 0.0625); - nleg_EaglerAdapterGL30_glTranslatef((-0.0625), 0.4375, 0.0625); - if ($var4.$itemID0 < 256) { - nms_Block_$callClinit(); - if (nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var4.$itemID0].$getRenderType())) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.1875, (-0.3125)); - nleg_EaglerAdapterGL30_glRotatef(20.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef((-0.375), (-0.375), 0.375); - break b; - } - } - var$6 = $var4.$itemID0; - nms_Item_$callClinit(); - if (var$6 == nms_Item_bow.$itemID) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.125, 0.3125); - nleg_EaglerAdapterGL30_glRotatef((-20.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } else if (!nms_Item_itemsList.data[$var4.$itemID0].$isFull3D()) { - nleg_EaglerAdapterGL30_glTranslatef(0.25, 0.1875, (-0.1875)); - nleg_EaglerAdapterGL30_glScalef(0.375, 0.375, 0.375); - nleg_EaglerAdapterGL30_glRotatef(60.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef((-90.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(20.0, 0.0, 0.0, 1.0); - } else { - if (nms_Item_itemsList.data[$var4.$itemID0].$shouldRotateAroundWhenRendering()) { - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.125), 0.0); - } - $this.$func_82422_c(); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } - } - $var5 = $this.$renderManager.$itemRenderer; - var$6 = 0; - $ptr = 2; - case 2: - nms_ItemRenderer_renderItem($var5, $par1EntityLiving, $var4, var$6); - if ($rt_suspending()) { - break main; - } - if (!nms_ItemStack_getItem($var4).$requiresMultipleRenderPasses()) { - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - } - $var5 = $this.$renderManager.$itemRenderer; - var$6 = 1; - $ptr = 3; - case 3: - nms_ItemRenderer_renderItem($var5, $par1EntityLiving, $var4, var$6); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $var4, $var5, $var7, var$6, $ptr); -} -function nms_RenderBiped_func_82422_c($this) { - var var$1, var$2, var$3, var$4; - nleg_EaglerAdapterGL30_$callClinit(); - var$1 = nleg_EaglerAdapterGL30_deevis; - var$1.$x = 0.0; - var$1.$y = 0.1875; - var$1.$z = 0.0; - var$1 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$1, var$1); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - 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(220)); - 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 nms_RenderBiped_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - $this.$doRenderLiving($par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderBiped__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 5); - var$2 = var$1.data; - var$2[0] = $rt_s(1265); - var$2[1] = $rt_s(1266); - var$2[2] = $rt_s(1267); - var$2[3] = $rt_s(1268); - var$2[4] = $rt_s(1269); - nms_RenderBiped_bipedArmorFilenamePrefix = var$1; -} -function nms_RenderSkeleton() { - nms_RenderBiped.call(this); -} -var nms_RenderSkeleton_entityTexture0 = null; -var nms_RenderSkeleton_entityTexture1 = null; -function nms_RenderSkeleton__init_0() { - var var_0 = new nms_RenderSkeleton(); - nms_RenderSkeleton__init_(var_0); - return var_0; -} -function nms_RenderSkeleton__init_($this) { - var var$1; - var$1 = nms_ModelSkeleton__init_0(0.0); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$modelBipedMain = var$1; - $this.$field_77070_b = 1.0; - $this.$field_82423_g = nms_ModelBiped__init_0(1.0, 0.0, 64, 32); - $this.$field_82425_h = nms_ModelBiped__init_0(0.5, 0.0, 64, 32); -} -function nms_RenderSkeleton_func_82438_a($this, $par1EntitySkeleton, $par2) { - var var$3, var$4, var$5; - if (nms_DataWatcher_getWatchableObjectByte($par1EntitySkeleton.$dataWatcher, 13) == 1) { - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntitySkeleton = nleg_EaglerAdapterGL30_deevis; - $par1EntitySkeleton.$x = 1.2000000476837158; - $par1EntitySkeleton.$y = 1.2000000476837158; - $par1EntitySkeleton.$z = 1.2000000476837158; - $par1EntitySkeleton = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntitySkeleton, $par1EntitySkeleton); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntitySkeleton = new jl_StringBuilder; - $par1EntitySkeleton.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntitySkeleton; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntitySkeleton = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntitySkeleton, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntitySkeleton; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } - } -} -function nms_RenderSkeleton_func_82422_c($this) { - var var$1, var$2, var$3, var$4; - nleg_EaglerAdapterGL30_$callClinit(); - var$1 = nleg_EaglerAdapterGL30_deevis; - var$1.$x = 0.09375; - var$1.$y = 0.1875; - var$1.$z = 0.0; - var$1 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$1, var$1); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - 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(220)); - 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 nms_RenderSkeleton_preRenderCallback($this, $par1EntityLiving, $par2) { - var var$3, var$4, var$5; - if (nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 13) == 1) { - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = 1.2000000476837158; - $par1EntityLiving.$y = 1.2000000476837158; - $par1EntityLiving.$z = 1.2000000476837158; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityLiving; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityLiving; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } - } -} -function nms_RenderSkeleton_bindTexture($this, $par1EntityLiving) { - if (nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 13) != 1) - nle_TextureLocation_bindTexture(nms_RenderSkeleton_entityTexture0); - else - nle_TextureLocation_bindTexture(nms_RenderSkeleton_entityTexture1); -} -function nms_RenderSkeleton__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1006); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSkeleton_entityTexture0 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1270); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSkeleton_entityTexture1 = var$1; -} -function nms_EntityWitch() { - nms_EntityMob.call(this); - this.$witchAttackTimer = 0; -} -var nms_EntityWitch_witchDrops = null; -function nms_EntityWitch_$callClinit() { - nms_EntityWitch_$callClinit = $rt_eraseClinit(nms_EntityWitch); - nms_EntityWitch__clinit_(); -} -function nms_EntityWitch__init_0() { - var var_0 = new nms_EntityWitch(); - nms_EntityWitch__init_(var_0); - return var_0; -} -function nms_EntityWitch__init_($this) { - nms_EntityWitch_$callClinit(); - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - $this.$witchAttackTimer = 0; - $this.$moveSpeed = 0.25; -} -function nms_EntityWitch_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 21, var$2); -} -function nms_EntityWitch_getLivingSound($this) { - return $rt_s(1271); -} -function nms_EntityWitch_getHurtSound($this) { - return $rt_s(1272); -} -function nms_EntityWitch_getDeathSound($this) { - return $rt_s(1273); -} -function nms_EntityWitch_setAggressive($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = (!$par1 ? 0 : 1) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 21, var$3); -} -function nms_EntityWitch_getAggressive($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 21) != 1 ? 0 : 1; -} -function nms_EntityWitch_getMaxHealth($this) { - return 26; -} -function nms_EntityWitch_isAIEnabled($this) { - return 1; -} -function nms_EntityWitch_onLivingUpdate($this) { - var var$1, $var4, $var2, $var1, $var3, $var5, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var1 = $thread.pop();$var2 = $thread.pop();$var4 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote) { - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 21) != 1 ? 0 : 1) { - var$1 = $this.$witchAttackTimer; - $this.$witchAttackTimer = var$1 - 1 | 0; - if (var$1 <= 0) - a: { - $var4 = $this.$dataWatcher; - $var2 = new jl_Byte; - $var2.$value4 = 0; - nms_DataWatcher_updateObject($var4, 21, $var2); - $var1 = $this.$equipment.data[0]; - $this.$equipment.data[0] = null; - if ($var1 !== null) { - var$1 = $var1.$itemID0; - nms_Item_$callClinit(); - if (var$1 == nms_Item_potion.$itemID) { - $var2 = nms_ItemPotion_getEffects(nms_Item_potion, $var1); - if ($var2 !== null) { - $var3 = new ju_AbstractList$1; - $var3.$this$0 = $var2; - $var3.$modCount = $var3.$this$0.$modCount0; - $var3.$size1 = $var3.$this$0.$size2(); - $var3.$removeIndex = (-1); - while (true) { - if (!($var3.$index >= $var3.$size1 ? 0 : 1)) - break a; - $var4 = ju_AbstractList$1_next($var3); - $var2 = new nms_PotionEffect; - $var2.$potionID = $var4.$potionID; - $var2.$duration = $var4.$duration; - $var2.$amplifier = $var4.$amplifier; - nms_EntityLiving_addPotionEffect($this, $var2); - } - } - } - } - } - } else { - b: { - $var5 = (-1); - if (Math.random() < 0.15000000596046448 && ($this.$fire <= 0 && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 1) ? 0 : 1) ? 0 : 1)) { - $var2 = nms_Potion_fireResistance; - $var4 = $this.$activePotionsMap; - $var2 = jl_Integer_valueOf($var2.$id3); - if ($var2 === null) - $var2 = ju_HashMap_findNullKeyEntry($var4); - else { - var$7 = jl_Integer_hashCode($var2); - $var2 = ju_HashMap_findNonNullKeyEntry($var4, $var2, var$7 & ($var4.$elementData.data.length - 1 | 0), var$7); - } - if (!($var2 === null ? 0 : 1)) { - $var5 = 16307; - break b; - } - } - if (Math.random() < 0.05000000074505806 && $this.$health < nms_EntityWitch_getMaxHealth($this)) - $var5 = 16341; - else if (ju_Random_nextFloat($this.$rand0) < 0.25 && nms_EntityLiving_getAttackTarget($this) !== null && !nms_EntityLiving_isPotionActive($this, nms_Potion_moveSpeed) && nms_Entity_getDistanceSqToEntity(nms_EntityLiving_getAttackTarget($this), $this) > 121.0) - $var5 = 16274; - else if (ju_Random_nextFloat($this.$rand0) < 0.25 && nms_EntityLiving_getAttackTarget($this) !== null && !nms_EntityLiving_isPotionActive($this, nms_Potion_moveSpeed) && nms_Entity_getDistanceSqToEntity(nms_EntityLiving_getAttackTarget($this), $this) > 121.0) - $var5 = 16274; - } - if ($var5 > (-1)) { - $var4 = new nms_ItemStack; - nms_Item_$callClinit(); - nms_ItemStack__init_0($var4, nms_Item_potion.$itemID, 1, $var5); - $this.$equipment.data[0] = $var4; - $this.$witchAttackTimer = nms_ItemStack_getMaxItemUseDuration(nms_EntityLiving_getHeldItem($this)); - nms_EntityWitch_setAggressive($this, 1); - } - } - Math.random(); - } - nms_EntityLiving_updateArmSwingProgress($this); - if (nms_Entity_getBrightness($this, 1.0) > 0.5) - $this.$entityAge = $this.$entityAge + 2 | 0; - $ptr = 1; - case 1: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var4, $var2, $var1, $var3, $var5, var$7, $ptr); -} -function nms_EntityWitch_handleHealthUpdate($this, $par1) { - var $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $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();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 != 15) { - $ptr = 1; - continue main; - } - $var2 = 0; - var$3 = 35.0; - while ($var2 < ((Math.random() * var$3 | 0) + 10 | 0)) { - var$4 = $this.$worldObj; - var$5 = $rt_s(855); - var$6 = $this.$posX + ju_Random_nextGaussian($this.$rand0) * 0.12999999523162842; - var$7 = $this.$boundingBox.$maxY + 0.5 + ju_Random_nextGaussian($this.$rand0) * 0.12999999523162842; - var$8 = $this.$posZ + ju_Random_nextGaussian($this.$rand0) * 0.12999999523162842; - var$9 = 0.0; - var$10 = 0.0; - var$11 = 0.0; - $par1 = 0; - if ($par1 < var$4.$worldAccesses.$size0) { - var$12 = var$4.$worldAccesses; - if ($par1 >= 0 && $par1 < var$12.$size0) { - var$12 = var$12.$array1.data[$par1]; - $ptr = 2; - continue main; - } - var$12 = new jl_IndexOutOfBoundsException; - var$12.$suppressionEnabled = 1; - var$12.$writableStackTrace = 1; - $rt_throw(var$12); - } - $var2 = $var2 + 1 | 0; - } - return; - case 1: - nms_EntityLiving_handleHealthUpdate($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$12, var$5, var$6, var$7, var$8, var$9, var$10, var$11); - if ($rt_suspending()) { - break main; - } - $par1 = $par1 + 1 | 0; - while (true) { - if ($par1 < var$4.$worldAccesses.$size0) { - var$12 = var$4.$worldAccesses; - if ($par1 >= 0 && $par1 < var$12.$size0) { - var$12 = var$12.$array1.data[$par1]; - continue main; - } - var$12 = new jl_IndexOutOfBoundsException; - var$12.$suppressionEnabled = 1; - var$12.$writableStackTrace = 1; - $rt_throw(var$12); - } - $var2 = $var2 + 1 | 0; - if ($var2 >= ((Math.random() * var$3 | 0) + 10 | 0)) - break; - var$4 = $this.$worldObj; - var$5 = $rt_s(855); - var$6 = $this.$posX + ju_Random_nextGaussian($this.$rand0) * 0.12999999523162842; - var$7 = $this.$boundingBox.$maxY + 0.5 + ju_Random_nextGaussian($this.$rand0) * 0.12999999523162842; - var$8 = $this.$posZ + ju_Random_nextGaussian($this.$rand0) * 0.12999999523162842; - var$9 = 0.0; - var$10 = 0.0; - var$11 = 0.0; - $par1 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr); -} -function nms_EntityWitch_applyPotionDamageCalculations($this, $par1DamageSource, $par2) { - $par2 = nms_EntityLiving_applyPotionDamageCalculations($this, $par1DamageSource, $par2); - if ($par1DamageSource.$getEntity() === $this) - $par2 = 0; - if ($par1DamageSource.$magicDamage) - $par2 = $par2 * 0.15 | 0; - return $par2; -} -function nms_EntityWitch_getSpeedModifier($this) { - var $var1; - $var1 = nms_EntityLiving_getSpeedModifier($this); - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 21) != 1 ? 0 : 1) - $var1 = $var1 * 0.75; - return $var1; -} -function nms_EntityWitch_dropFewItems($this, $par1, $par2) { - var $var3, $var4, var$5, $var5, var$7, $var6, $var7, var$10, var$11, var$12; - $var3 = (Math.random() * 3.0 | 0) + 1 | 0; - $var4 = 0; - var$5 = $par2 + 1 | 0; - while ($var4 < $var3) { - $var5 = Math.random() * 3.0 | 0; - var$7 = nms_EntityWitch_witchDrops.data; - $par1 = nms_EntityWitch_witchDrops.data.length; - $var6 = var$7[Math.random() * $par1 | 0]; - if ($par2 > 0) - $var5 = $var5 + (Math.random() * var$5 | 0) | 0; - $var7 = 0; - while ($var7 < $var5) { - var$10 = new nms_ItemStack; - var$10.$stackSize = 0; - var$10.$itemFrame = null; - var$10.$itemID0 = $var6; - var$10.$stackSize = 1; - var$10.$itemDamage = 0; - if (var$10.$itemDamage < 0) - var$10.$itemDamage = 0; - var$11 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$11.$dataWatcher, 10, var$10); - nms_DataWatcher_setObjectWatched(var$11.$dataWatcher, 10); - var$11.$delayBeforeCanPickup = 10; - var$12 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$12, var$11); - var$10 = var$12.$entityList; - ju_HashMap_putImpl(var$10.$backingMap, var$11, var$10); - if (!$par1) { - var$10 = var$12.$entitySpawnQueue; - ju_HashMap_putImpl(var$10.$backingMap, var$11, var$10); - } - $var7 = $var7 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } -} -function nms_EntityWitch__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(8); - var$2 = var$1.data; - nms_Item_$callClinit(); - var$2[0] = nms_Item_lightStoneDust.$itemID; - var$2[1] = nms_Item_sugar.$itemID; - var$2[2] = nms_Item_redstone.$itemID; - var$2[3] = nms_Item_spiderEye.$itemID; - var$2[4] = nms_Item_glassBottle.$itemID; - var$2[5] = nms_Item_gunpowder.$itemID; - var$2[6] = nms_Item_stick.$itemID; - var$2[7] = nms_Item_stick.$itemID; - nms_EntityWitch_witchDrops = var$1; -} -function nms_RenderWitch() { - var a = this; nms_RenderLiving.call(a); - a.$field_82414_a = null; - a.$field_82413_f = 0; -} -var nms_RenderWitch_entityTexture = null; -function nms_RenderWitch__init_0() { - var var_0 = new nms_RenderWitch(); - nms_RenderWitch__init_(var_0); - return var_0; -} -function nms_RenderWitch__init_($this) { - var var$1; - var$1 = nms_ModelWitch__init_(0.0); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$field_82414_a = $this.$mainModel; - $this.$field_82413_f = 0; -} -function nms_RenderWitch_func_82412_a($this, $par1EntityWitch, $par2, $par4, $par6, $par8, $par9) { - var $var10, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityWitch = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var10 = $par1EntityWitch.$equipment.data[0]; - if (0 != $this.$field_82413_f) { - var$8 = nms_ModelWitch__init_(0.0); - $this.$field_82414_a = var$8; - $this.$mainModel = var$8; - $this.$field_82413_f = 0; - } - $this.$field_82414_a.$field_82900_g = $var10 === null ? 0 : 1; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityWitch, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityWitch, $par2, $par4, $par6, $par8, $par9, $var10, var$8, $ptr); -} -function nms_RenderWitch_func_82411_a($this, $par1EntityWitch, $par2) { - var $var4, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var4 = $thread.pop();$par2 = $thread.pop();$par1EntityWitch = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var4 = $par1EntityWitch.$equipment.data[0]; - if ($var4 === null) - return; - nleg_EaglerAdapterGL30_glPushMatrix(); - if ($this.$mainModel.$isChild0) { - var$4 = nleg_EaglerAdapterGL30_deevis; - var$4.$x = 0.0; - var$4.$y = 0.625; - var$4.$z = 0.0; - 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; - ji_FilterOutputStream__init_0(var$5, new jl_ConsoleOutputStreamStderr); - var$4 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_(var$4); - var$5.$sb = var$4; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - var$5.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = var$5; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - nleg_EaglerAdapterGL30_glRotatef((-20.0), (-1.0), 0.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.5, 0.5, 0.5); - } - nms_ModelRenderer_postRender($this.$field_82414_a.$field_82898_f, 0.0625); - var$4 = nleg_EaglerAdapterGL30_deevis; - var$4.$x = (-0.0625); - var$4.$y = 0.53125; - var$4.$z = 0.21875; - 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); - } - a: { - if ($var4.$itemID0 < 256) { - nms_Block_$callClinit(); - if (nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var4.$itemID0].$getRenderType())) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.1875, (-0.3125)); - nleg_EaglerAdapterGL30_glRotatef(20.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.375, (-0.375), 0.375); - break a; - } - } - var$8 = $var4.$itemID0; - nms_Item_$callClinit(); - if (var$8 == nms_Item_bow.$itemID) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.125, 0.3125); - nleg_EaglerAdapterGL30_glRotatef((-20.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } else if (!nms_Item_itemsList.data[$var4.$itemID0].$isFull3D()) { - nleg_EaglerAdapterGL30_glTranslatef(0.25, 0.1875, (-0.1875)); - nleg_EaglerAdapterGL30_glScalef(0.375, 0.375, 0.375); - nleg_EaglerAdapterGL30_glRotatef(60.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef((-90.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(20.0, 0.0, 0.0, 1.0); - } else { - if (nms_Item_itemsList.data[$var4.$itemID0].$shouldRotateAroundWhenRendering()) { - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.125), 0.0); - } - nms_RenderWitch_func_82410_b($this); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } - } - nleg_EaglerAdapterGL30_glRotatef((-15.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(40.0, 0.0, 0.0, 1.0); - var$4 = $this.$renderManager.$itemRenderer; - var$8 = 0; - $ptr = 1; - case 1: - nms_ItemRenderer_renderItem(var$4, $par1EntityWitch, $var4, var$8); - if ($rt_suspending()) { - break main; - } - if (!nms_ItemStack_getItem($var4).$requiresMultipleRenderPasses()) { - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - } - var$4 = $this.$renderManager.$itemRenderer; - var$8 = 1; - $ptr = 2; - case 2: - nms_ItemRenderer_renderItem(var$4, $par1EntityWitch, $var4, var$8); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityWitch, $par2, $var4, var$4, var$5, var$6, var$7, var$8, $ptr); -} -function nms_RenderWitch_func_82410_b($this) { - var var$1, var$2, var$3, var$4; - nleg_EaglerAdapterGL30_$callClinit(); - var$1 = nleg_EaglerAdapterGL30_deevis; - var$1.$x = 0.0; - var$1.$y = 0.1875; - var$1.$z = 0.0; - var$1 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$1, var$1); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - 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(220)); - 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 nms_RenderWitch_func_82409_b($this, $par1EntityWitch, $par2) { - var var$3, var$4, var$5; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityWitch = nleg_EaglerAdapterGL30_deevis; - $par1EntityWitch.$x = 0.9375; - $par1EntityWitch.$y = 0.9375; - $par1EntityWitch.$z = 0.9375; - $par1EntityWitch = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityWitch, $par1EntityWitch); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityWitch = new jl_StringBuilder; - $par1EntityWitch.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityWitch; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityWitch = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityWitch, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityWitch; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } -} -function nms_RenderWitch_preRenderCallback($this, $par1EntityLiving, $par2) { - var var$3, var$4, var$5; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = 0.9375; - $par1EntityLiving.$y = 0.9375; - $par1EntityLiving.$z = 0.9375; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityLiving; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityLiving; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } -} -function nms_RenderWitch_renderEquippedItems($this, $par1EntityLiving, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderWitch_func_82411_a($this, $par1EntityLiving, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $ptr); -} -function nms_RenderWitch_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderWitch_func_82412_a($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderWitch_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderWitch_func_82412_a($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderWitch_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderWitch_entityTexture); -} -function nms_RenderWitch__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1274); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWitch_entityTexture = var$1; -} -function nms_EntityBlaze() { - var a = this; nms_EntityMob.call(a); - a.$heightOffset = 0.0; - a.$heightOffsetUpdateTime = 0; - a.$field_70846_g = 0; -} -function nms_EntityBlaze__init_0() { - var var_0 = new nms_EntityBlaze(); - nms_EntityBlaze__init_(var_0); - return var_0; -} -function nms_EntityBlaze__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - $this.$heightOffset = 0.5; - $this.$isImmuneToFire = 1; - $this.$experienceValue = 10; -} -function nms_EntityBlaze_getMaxHealth($this) { - return 20; -} -function nms_EntityBlaze_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); -} -function nms_EntityBlaze_getLivingSound($this) { - return $rt_s(1275); -} -function nms_EntityBlaze_getHurtSound($this) { - return $rt_s(1276); -} -function nms_EntityBlaze_getDeathSound($this) { - return $rt_s(1277); -} -function nms_EntityBlaze_getBrightnessForRender($this, $par1) { - return 15728880; -} -function nms_EntityBlaze_getBrightness($this, $par1) { - return 1.0; -} -function nms_EntityBlaze_onLivingUpdate($this) { - var var$1, $var1, var$3, var$4, var$5, 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();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote) { - if (nms_Entity_isWet($this)) { - var$1 = nms_DamageSource_drown; - $var1 = 1; - $ptr = 1; - continue main; - } - $this.$heightOffsetUpdateTime = $this.$heightOffsetUpdateTime - 1 | 0; - if ($this.$heightOffsetUpdateTime <= 0) { - $this.$heightOffsetUpdateTime = 100; - $this.$heightOffset = 0.5 + ju_Random_nextGaussian($this.$rand0) * 3.0; - } - if ($this.$entityToAttack !== null && $this.$entityToAttack.$posY + $this.$entityToAttack.$getEyeHeight() > $this.$posY + $this.$height1 * 0.8500000238418579 + $this.$heightOffset) - $this.$motionY = $this.$motionY + (0.30000001192092896 - $this.$motionY) * 0.30000001192092896; - } - if (!(Math.random() * 24.0 | 0)) - nms_World_playSoundEffect($this.$worldObj, $this.$posX + 0.5, $this.$posY + 0.5, $this.$posZ + 0.5, $rt_s(1278), 1.0 + Math.random(), Math.random() * 0.699999988079071 + 0.30000001192092896); - if (!$this.$onGround && $this.$motionY < 0.0) - $this.$motionY = $this.$motionY * 0.6; - $var1 = 0; - while ($var1 < 2) { - var$1 = $this.$worldObj; - var$3 = $rt_s(715); - var$4 = $this.$posX + (Math.random() - 0.5) * $this.$width1; - var$5 = $this.$posY + Math.random() * $this.$height1; - var$6 = $this.$posZ + (Math.random() - 0.5) * $this.$width1; - var$7 = 0.0; - var$8 = 0.0; - var$9 = 0.0; - var$10 = 0; - if (var$10 < var$1.$worldAccesses.$size0) { - var$11 = var$1.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - $ptr = 3; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - $var1 = $var1 + 1 | 0; - } - nms_EntityLiving_updateArmSwingProgress($this); - $this.$entityAge = $this.$entityAge + 2 | 0; - $ptr = 2; - continue main; - case 1: - nms_EntityMob_attackEntityFrom($this, var$1, $var1); - if ($rt_suspending()) { - break main; - } - $this.$heightOffsetUpdateTime = $this.$heightOffsetUpdateTime - 1 | 0; - if ($this.$heightOffsetUpdateTime <= 0) { - $this.$heightOffsetUpdateTime = 100; - $this.$heightOffset = 0.5 + ju_Random_nextGaussian($this.$rand0) * 3.0; - } - if ($this.$entityToAttack !== null && $this.$entityToAttack.$posY + $this.$entityToAttack.$getEyeHeight() > $this.$posY + $this.$height1 * 0.8500000238418579 + $this.$heightOffset) - $this.$motionY = $this.$motionY + (0.30000001192092896 - $this.$motionY) * 0.30000001192092896; - if (!(Math.random() * 24.0 | 0)) - nms_World_playSoundEffect($this.$worldObj, $this.$posX + 0.5, $this.$posY + 0.5, $this.$posZ + 0.5, $rt_s(1278), 1.0 + Math.random(), Math.random() * 0.699999988079071 + 0.30000001192092896); - if (!$this.$onGround && $this.$motionY < 0.0) - $this.$motionY = $this.$motionY * 0.6; - $var1 = 0; - while ($var1 < 2) { - var$1 = $this.$worldObj; - var$3 = $rt_s(715); - var$4 = $this.$posX + (Math.random() - 0.5) * $this.$width1; - var$5 = $this.$posY + Math.random() * $this.$height1; - var$6 = $this.$posZ + (Math.random() - 0.5) * $this.$width1; - var$7 = 0.0; - var$8 = 0.0; - var$9 = 0.0; - var$10 = 0; - if (var$10 < var$1.$worldAccesses.$size0) { - var$11 = var$1.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - $ptr = 3; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - $var1 = $var1 + 1 | 0; - } - nms_EntityLiving_updateArmSwingProgress($this); - $this.$entityAge = $this.$entityAge + 2 | 0; - $ptr = 2; - case 2: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_RenderGlobal_doSpawnParticle(var$11, var$3, var$4, var$5, var$6, var$7, var$8, var$9); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - while (true) { - if (var$10 < var$1.$worldAccesses.$size0) { - var$11 = var$1.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - $var1 = $var1 + 1 | 0; - if ($var1 >= 2) - break; - var$1 = $this.$worldObj; - var$3 = $rt_s(715); - var$4 = $this.$posX + (Math.random() - 0.5) * $this.$width1; - var$5 = $this.$posY + Math.random() * $this.$height1; - var$6 = $this.$posZ + (Math.random() - 0.5) * $this.$width1; - var$7 = 0.0; - var$8 = 0.0; - var$9 = 0.0; - var$10 = 0; - } - nms_EntityLiving_updateArmSwingProgress($this); - $this.$entityAge = $this.$entityAge + 2 | 0; - $ptr = 2; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_EntityBlaze_attackEntity($this, $par1Entity, $par2) { - var $var3, $var5, $var7, $var9, $var11, var$8, var$9, var$10, var$11, $var10, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var10 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$attackTime <= 0 && $par2 < 2.0 && $par1Entity.$boundingBox.$maxY > $this.$boundingBox.$minY && $par1Entity.$boundingBox.$minY < $this.$boundingBox.$maxY) { - $this.$attackTime = 20; - $ptr = 1; - continue main; - } - if ($par2 < 30.0) { - a: { - $var3 = $par1Entity.$posX - $this.$posX; - $var5 = $par1Entity.$boundingBox.$minY + $par1Entity.$height1 / 2.0 - ($this.$posY + $this.$height1 / 2.0); - $var7 = $par1Entity.$posZ - $this.$posZ; - if (!$this.$attackTime) { - $this.$field_70846_g = $this.$field_70846_g + 1 | 0; - if ($this.$field_70846_g == 1) { - $this.$attackTime = 60; - nms_EntityBlaze_func_70844_e($this, 1); - } else if ($this.$field_70846_g <= 4) - $this.$attackTime = 6; - else { - $this.$attackTime = 100; - $this.$field_70846_g = 0; - nms_EntityBlaze_func_70844_e($this, 0); - } - if ($this.$field_70846_g > 1) { - $var9 = jl_Math_sqrt($par2) * 0.5; - $par1Entity = $this.$worldObj; - $var11 = null; - var$8 = 1009; - var$9 = $this.$posX | 0; - var$10 = $this.$posY | 0; - var$11 = $this.$posZ | 0; - $var10 = 0; - var$13 = 0; - if (var$13 < $par1Entity.$worldAccesses.$size0) { - var$14 = $par1Entity.$worldAccesses; - if (var$13 >= 0 && var$13 < var$14.$size0) { - var$14 = var$14.$array1.data[var$13]; - $ptr = 2; - continue main; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - } - $var10 = 0; - var$15 = $var9; - while (true) { - if ($var10 >= 1) - break a; - $var11 = new nms_EntitySmallFireball; - nms_EntityFireball__init_($var11, $this.$worldObj, $this, $var3 + ju_Random_nextGaussian($this.$rand0) * var$15, $var5, $var7 + ju_Random_nextGaussian($this.$rand0) * var$15); - nms_Entity_setSize($var11, 0.3125, 0.3125); - $var11.$posY = $this.$posY + $this.$height1 / 2.0 + 0.5; - $par1Entity = $this.$worldObj; - var$8 = nms_World_spawnEntityInWorld($par1Entity, $var11); - var$14 = $par1Entity.$entityList; - ju_HashMap_putImpl(var$14.$backingMap, $var11, var$14); - if (!var$8) { - $par1Entity = $par1Entity.$entitySpawnQueue; - ju_HashMap_putImpl($par1Entity.$backingMap, $var11, $par1Entity); - } - $var10 = $var10 + 1 | 0; - } - } - } - } - $this.$rotationYaw = jl_Math_atan2($var7, $var3) * 180.0 / 3.141592653589793 - 90.0; - $this.$hasAttacked = 1; - } - return; - case 1: - nms_EntityMob_attackEntityAsMob($this, $par1Entity); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_RenderGlobal_playAuxSFX(var$14, $var11, var$8, var$9, var$10, var$11, $var10); - if ($rt_suspending()) { - break main; - } - var$13 = var$13 + 1 | 0; - if (var$13 >= $par1Entity.$worldAccesses.$size0) { - $var10 = 0; - var$15 = $var9; - while ($var10 < 1) { - $var11 = new nms_EntitySmallFireball; - nms_EntityFireball__init_($var11, $this.$worldObj, $this, $var3 + ju_Random_nextGaussian($this.$rand0) * var$15, $var5, $var7 + ju_Random_nextGaussian($this.$rand0) * var$15); - nms_Entity_setSize($var11, 0.3125, 0.3125); - $var11.$posY = $this.$posY + $this.$height1 / 2.0 + 0.5; - $par1Entity = $this.$worldObj; - var$8 = nms_World_spawnEntityInWorld($par1Entity, $var11); - var$14 = $par1Entity.$entityList; - ju_HashMap_putImpl(var$14.$backingMap, $var11, var$14); - if (!var$8) { - $par1Entity = $par1Entity.$entitySpawnQueue; - ju_HashMap_putImpl($par1Entity.$backingMap, $var11, $par1Entity); - } - $var10 = $var10 + 1 | 0; - } - $this.$rotationYaw = jl_Math_atan2($var7, $var3) * 180.0 / 3.141592653589793 - 90.0; - $this.$hasAttacked = 1; - return; - } - var$14 = $par1Entity.$worldAccesses; - if (var$13 >= 0 && var$13 < var$14.$size0) { - var$14 = var$14.$array1.data[var$13]; - continue main; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $var3, $var5, $var7, $var9, $var11, var$8, var$9, var$10, var$11, $var10, var$13, var$14, var$15, $ptr); -} -function nms_EntityBlaze_fall($this, $par1) { - return; -} -function nms_EntityBlaze_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_blazeRod.$itemID; -} -function nms_EntityBlaze_isBurning($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; -} -function nms_EntityBlaze_dropFewItems($this, $par1, $par2) { - var $var3, $var4, var$5, var$6, var$7; - a: { - if ($par1) { - $par1 = 2 + $par2 | 0; - $var3 = Math.random() * $par1 | 0; - $var4 = 0; - while (true) { - if ($var4 >= $var3) - break a; - nms_Item_$callClinit(); - $par1 = nms_Item_blazeRod.$itemID; - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par1; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$6 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$6.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$6.$dataWatcher, 10); - var$6.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$5, var$6); - var$7 = var$5.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$6, var$7); - if (!$par1) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$6, var$5); - } - $var4 = $var4 + 1 | 0; - } - } - } -} -function nms_EntityBlaze_func_70845_n($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; -} -function nms_EntityBlaze_func_70844_e($this, $par1) { - var $var2, var$3, var$4; - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - $par1 = !$par1 ? ($var2 & (-2)) << 24 >> 24 : ($var2 | 1) << 24 >> 24; - var$3 = $this.$dataWatcher; - var$4 = new jl_Byte; - var$4.$value4 = $par1; - nms_DataWatcher_updateObject(var$3, 16, var$4); -} -function nms_EntityBlaze_getAttackStrength($this, $par1Entity) { - return 6; -} -function nms_RenderBlaze() { - nms_RenderLiving.call(this); - this.$field_77068_a = 0; -} -var nms_RenderBlaze_entityTexture = null; -function nms_RenderBlaze__init_0() { - var var_0 = new nms_RenderBlaze(); - nms_RenderBlaze__init_(var_0); - return var_0; -} -function nms_RenderBlaze__init_($this) { - var var$1; - var$1 = nms_ModelBlaze__init_0(); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$field_77068_a = 8; -} -function nms_RenderBlaze_renderBlaze($this, $par1EntityBlaze, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityBlaze = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (8 != $this.$field_77068_a) { - $this.$field_77068_a = 8; - $this.$mainModel = nms_ModelBlaze__init_0(); - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityBlaze, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityBlaze, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderBlaze_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - if (8 != $this.$field_77068_a) { - $this.$field_77068_a = 8; - $this.$mainModel = nms_ModelBlaze__init_0(); - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderBlaze_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - if (8 != $this.$field_77068_a) { - $this.$field_77068_a = 8; - $this.$mainModel = nms_ModelBlaze__init_0(); - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderBlaze_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderBlaze_entityTexture); -} -function nms_RenderBlaze__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1007); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderBlaze_entityTexture = var$1; -} -function nms_EntityZombie() { - nms_EntityMob.call(this); - this.$conversionTime = 0; -} -function nms_EntityZombie__init_0() { - var var_0 = new nms_EntityZombie(); - nms_EntityZombie__init_(var_0); - return var_0; -} -function nms_EntityZombie__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - $this.$conversionTime = 0; - $this.$moveSpeed = 0.23000000417232513; -} -function nms_EntityZombie_getSpeedModifier($this) { - var var$1; - var$1 = nms_EntityLiving_getSpeedModifier($this); - if ($this.$fleeingTick > 0 && !$this.$isAIEnabled()) - var$1 = var$1 * 2.0; - return var$1 * (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 12) != 1 ? 0 : 1) ? 1.0 : 1.5); -} -function nms_EntityZombie_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 12, var$2); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 13, var$2); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 14, var$2); -} -function nms_EntityZombie_getMaxHealth($this) { - return 20; -} -function nms_EntityZombie_getTotalArmorValue($this) { - var $var1; - $var1 = nms_EntityLiving_getTotalArmorValue($this) + 2 | 0; - if ($var1 > 20) - $var1 = 20; - return $var1; -} -function nms_EntityZombie_isAIEnabled($this) { - return 1; -} -function nms_EntityZombie_isChild($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 12) != 1 ? 0 : 1; -} -function nms_EntityZombie_setChild($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - var$3 = new jl_Byte; - var$3.$value4 = 1; - nms_DataWatcher_updateObject(var$2, 12, var$3); -} -function nms_EntityZombie_isVillager($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 13) != 1 ? 0 : 1; -} -function nms_EntityZombie_setVillager($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = (!$par1 ? 0 : 1) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 13, var$3); -} -function nms_EntityZombie_onLivingUpdate($this) { - var $var2, $var1, var$3, var$4, var$5, var$6, var$7, var$8, $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var1 = $thread.pop();$var2 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$worldObj.$skylightSubtracted >= 4 ? 0 : 1; - if ($var2 && !$this.$worldObj.$isRemote && !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 12) != 1 ? 0 : 1)) { - $var1 = nms_Entity_getBrightness($this, 1.0); - if ($var1 > 0.5 && Math.random() * 30.0 < ($var1 - 0.4000000059604645) * 2.0) { - var$3 = $this.$worldObj; - var$4 = $this.$posX; - var$5 = var$4 | 0; - if (var$4 < var$5) - var$5 = var$5 - 1 | 0; - var$4 = $this.$posY; - var$6 = var$4 | 0; - if (var$4 < var$6) - var$6 = var$6 - 1 | 0; - var$4 = $this.$posZ; - var$7 = var$4 | 0; - if (var$4 < var$7) - var$7 = var$7 - 1 | 0; - var$8 = var$5 >> 4; - $var2 = var$7 >> 4; - if (nms_ChunkProviderClient_provideChunk(var$3.$chunkProvider, var$8, $var2).$canBlockSeeTheSky(var$5 & 15, var$6, var$7 & 15)) { - $var2 = 1; - $var3 = $this.$equipment.data[4]; - if ($var3 !== null) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var3.$itemID0].$maxDamage <= 0 ? 0 : 1) { - $var3.$itemDamage = $var3.$itemDamage + (Math.random() * 2.0 | 0) | 0; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var3.$itemDamage >= nms_Item_itemsList.data[$var3.$itemID0].$maxDamage) { - $ptr = 2; - continue main; - } - } - $var2 = 0; - } - if ($var2) { - $var2 = nms_EnchantmentProtection_func_92093_a($this, 160); - if ($this.$fire < $var2) - $this.$fire = $var2; - } - } - } - } - nms_EntityLiving_updateArmSwingProgress($this); - if (nms_Entity_getBrightness($this, 1.0) > 0.5) - $this.$entityAge = $this.$entityAge + 2 | 0; - $ptr = 1; - case 1: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_EntityLiving_renderBrokenItemStack($this, $var3); - if ($rt_suspending()) { - break main; - } - var$3 = null; - $this.$equipment.data[4] = var$3; - if (0) { - $var2 = nms_EnchantmentProtection_func_92093_a($this, 160); - if ($this.$fire < $var2) - $this.$fire = $var2; - } - nms_EntityLiving_updateArmSwingProgress($this); - if (nms_Entity_getBrightness($this, 1.0) > 0.5) - $this.$entityAge = $this.$entityAge + 2 | 0; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var2, $var1, var$3, var$4, var$5, var$6, var$7, var$8, $var3, $ptr); -} -function nms_EntityZombie_onUpdate($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: - if (!$this.$worldObj.$isRemote && (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 14) != 1 ? 0 : 1)) { - $var1 = nms_EntityZombie_getConversionTimeBoost($this); - $this.$conversionTime = $this.$conversionTime - $var1 | 0; - if ($this.$conversionTime <= 0) { - $ptr = 2; - continue main; - } - } - $ptr = 1; - case 1: - nms_EntityLiving_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote && !$this.$worldObj.$difficultySetting) - $this.$isDead = 1; - return; - case 2: - nms_EntityZombie_convertToVillager($this); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $ptr); -} -function nms_EntityZombie_attackEntityAsMob($this, $par1Entity) { - var $var2, var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $tmp = nms_EntityMob_attackEntityAsMob($this, $par1Entity); - if ($rt_suspending()) { - break main; - } - $var2 = $tmp; - if ($var2 && $this.$equipment.data[0] === null && ($this.$fire <= 0 && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 1) ? 0 : 1) ? 0 : 1) && Math.random() < $this.$worldObj.$difficultySetting * 0.30000001192092896) { - var$3 = nms_EnchantmentProtection_func_92093_a($par1Entity, (2 * $this.$worldObj.$difficultySetting | 0) * 20 | 0); - if ($par1Entity.$fire < var$3) - $par1Entity.$fire = var$3; - } - return $var2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $var2, var$3, $ptr); -} -function nms_EntityZombie_getAttackStrength($this, $par1Entity) { - var $var2, var$3, var$4, $var4; - $var2 = $this.$equipment.data[0]; - var$3 = (20 - $this.$health | 0) / 20.0 * 4.0; - var$4 = var$3 | 0; - if (var$3 < var$4) - var$4 = var$4 - 1 | 0; - $var4 = 3 + var$4 | 0; - if ($var2 !== null) { - nms_Item_$callClinit(); - $var4 = $var4 + nms_Item_itemsList.data[$var2.$itemID0].$getDamageVsEntity($this) | 0; - } - return $var4; -} -function nms_EntityZombie_getLivingSound($this) { - return $rt_s(1279); -} -function nms_EntityZombie_getHurtSound($this) { - return $rt_s(1280); -} -function nms_EntityZombie_getDeathSound($this) { - return $rt_s(1281); -} -function nms_EntityZombie_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1282), 0.15000000596046448, 1.0); -} -function nms_EntityZombie_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_rottenFlesh.$itemID; -} -function nms_EntityZombie_getCreatureAttribute($this) { - return nms_EnumCreatureAttribute_UNDEAD; -} -function nms_EntityZombie_dropRareDrop($this, $par1) { - var var$2, var$3, var$4, var$5; - a: { - switch (Math.random() * 3.0 | 0) { - case 0: - break; - case 1: - nms_Item_$callClinit(); - $par1 = nms_Item_carrot.$itemID; - var$2 = new nms_ItemStack; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = $par1; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$3 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$3.$dataWatcher, 10, var$2); - nms_DataWatcher_setObjectWatched(var$3.$dataWatcher, 10); - var$3.$delayBeforeCanPickup = 10; - var$2 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$2, var$3); - var$4 = var$2.$entityList; - ju_HashMap_putImpl(var$4.$backingMap, var$3, var$4); - if (!$par1) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, var$3, var$2); - } - break a; - case 2: - nms_Item_$callClinit(); - $par1 = nms_Item_potato.$itemID; - var$2 = new nms_ItemStack; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = $par1; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$3 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$3.$dataWatcher, 10, var$2); - nms_DataWatcher_setObjectWatched(var$3.$dataWatcher, 10); - var$3.$delayBeforeCanPickup = 10; - var$2 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$2, var$3); - var$4 = var$2.$entityList; - ju_HashMap_putImpl(var$4.$backingMap, var$3, var$4); - if (!$par1) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, var$3, var$2); - } - break a; - default: - break a; - } - nms_Item_$callClinit(); - var$5 = nms_Item_ingotIron.$itemID; - var$2 = new nms_ItemStack; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$5; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$3 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$3.$dataWatcher, 10, var$2); - nms_DataWatcher_setObjectWatched(var$3.$dataWatcher, 10); - var$3.$delayBeforeCanPickup = 10; - var$2 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$2, var$3); - var$4 = var$2.$entityList; - ju_HashMap_putImpl(var$4.$backingMap, var$3, var$4); - if (!$par1) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, var$3, var$2); - } - } -} -function nms_EntityZombie_addRandomArmor($this) { - var var$1, var$2, var$3; - nms_EntityLiving_addRandomArmor($this); - if (Math.random() < ($this.$worldObj.$difficultySetting != 3 ? 0.009999999776482582 : 0.05000000074505806)) { - if (Math.random() * 3.0 | 0) { - var$1 = new nms_ItemStack; - nms_Item_$callClinit(); - var$2 = nms_Item_shovelIron.$itemID; - var$1.$stackSize = 0; - var$1.$itemFrame = null; - var$1.$itemID0 = var$2; - var$1.$stackSize = 1; - var$1.$itemDamage = 0; - if (var$1.$itemDamage < 0) - var$1.$itemDamage = 0; - $this.$equipment.data[0] = var$1; - } else { - var$3 = new nms_ItemStack; - nms_Item_$callClinit(); - var$2 = nms_Item_swordIron.$itemID; - var$3.$stackSize = 0; - var$3.$itemFrame = null; - var$3.$itemID0 = var$2; - var$3.$stackSize = 1; - var$3.$itemDamage = 0; - if (var$3.$itemDamage < 0) - var$3.$itemDamage = 0; - $this.$equipment.data[0] = var$3; - } - } -} -function nms_EntityZombie_onKillEntity($this, $par1EntityLiving) { - var $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$worldObj.$difficultySetting >= 2 && $par1EntityLiving instanceof nms_EntityVillager) { - if ($this.$worldObj.$difficultySetting == 2 && (ju_Random_next($this.$rand0, 32) % 2 | 0 ? 0 : 1)) - return; - $var2 = new nms_EntityZombie; - nms_EntityLiving__init_0($var2); - $var2.$hasAttacked = 0; - $var2.$fleeingTick = 0; - $var2.$experienceValue = 5; - $var2.$conversionTime = 0; - $var2.$moveSpeed = 0.23000000417232513; - var$3 = $this.$worldObj; - $var2.$worldObj = var$3; - $var2.$dimension = var$3.$provider.$dimensionId; - nms_Entity_setLocationAndAngles($var2, $par1EntityLiving.$posX, $par1EntityLiving.$posY, $par1EntityLiving.$posZ, $par1EntityLiving.$rotationYaw, $par1EntityLiving.$rotationPitch); - var$3 = $this.$worldObj; - $ptr = 1; - continue main; - } - return; - case 1: - nms_World_removeEntity(var$3, $par1EntityLiving); - if ($rt_suspending()) { - break main; - } - var$3 = ju_HashMap_removeEntry(var$3.$entityList.$backingMap, $par1EntityLiving); - nms_EntityZombie_initCreature($var2); - var$4 = $var2.$dataWatcher; - var$3 = new jl_Byte; - var$3.$value4 = 1; - nms_DataWatcher_updateObject(var$4, 13, var$3); - if ($par1EntityLiving.$isChild()) { - var$3 = $var2.$dataWatcher; - $par1EntityLiving = new jl_Byte; - $par1EntityLiving.$value4 = 1; - nms_DataWatcher_updateObject(var$3, 12, $par1EntityLiving); - } - $par1EntityLiving = $this.$worldObj; - var$5 = nms_World_spawnEntityInWorld($par1EntityLiving, $var2); - var$4 = $par1EntityLiving.$entityList; - ju_HashMap_putImpl(var$4.$backingMap, $var2, var$4); - if (!var$5) { - $par1EntityLiving = $par1EntityLiving.$entitySpawnQueue; - ju_HashMap_putImpl($par1EntityLiving.$backingMap, $var2, $par1EntityLiving); - } - $par1EntityLiving = $this.$worldObj; - var$3 = null; - var$5 = 1016; - var$6 = $this.$posX | 0; - var$7 = $this.$posY | 0; - var$8 = $this.$posZ | 0; - var$9 = 0; - var$10 = 0; - if (var$10 >= $par1EntityLiving.$worldAccesses.$size0) - return; - $var2 = $par1EntityLiving.$worldAccesses; - if (var$10 >= 0 && var$10 < $var2.$size0) { - $var2 = $var2.$array1.data[var$10]; - $ptr = 2; - continue main; - } - $par1EntityLiving = new jl_IndexOutOfBoundsException; - $par1EntityLiving.$suppressionEnabled = 1; - $par1EntityLiving.$writableStackTrace = 1; - $rt_throw($par1EntityLiving); - case 2: - nms_RenderGlobal_playAuxSFX($var2, var$3, var$5, var$6, var$7, var$8, var$9); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - if (var$10 >= $par1EntityLiving.$worldAccesses.$size0) - return; - $var2 = $par1EntityLiving.$worldAccesses; - if (var$10 >= 0 && var$10 < $var2.$size0) { - $var2 = $var2.$array1.data[var$10]; - continue main; - } - $par1EntityLiving = new jl_IndexOutOfBoundsException; - $par1EntityLiving.$suppressionEnabled = 1; - $par1EntityLiving.$writableStackTrace = 1; - $rt_throw($par1EntityLiving); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -} -function nms_EntityZombie_initCreature($this) { - var var$1, $var1, var$3; - $this.$canPickUpLoot = Math.random() >= nms_EntityLiving_pickUpLootProability.data[$this.$worldObj.$difficultySetting] ? 0 : 1; - if (Math.random() < 0.05000000074505806) { - var$1 = $this.$dataWatcher; - $var1 = new jl_Byte; - $var1.$value4 = 1; - nms_DataWatcher_updateObject(var$1, 13, $var1); - } - $this.$addRandomArmor(); - nms_EntityLiving_func_82162_bC($this); - if ($this.$equipment.data[4] === null) { - $var1 = $this.$worldObj; - if (Long_eq(Long_rem($var1.$worldInfo.$totalTime, Long_fromInt(600)), Long_ZERO)) - ju_Calendar_setTimeInMillis($var1.$theCalendar, jl_System_currentTimeMillis()); - $var1 = $var1.$theCalendar; - if ((ju_Calendar_get($var1, 2) + 1 | 0) == 10 && ju_Calendar_get($var1, 5) == 31 && Math.random() < 0.25) { - $var1 = new nms_ItemStack; - if (Math.random() >= 0.10000000149011612) { - nms_Block_$callClinit(); - var$1 = nms_Block_pumpkin; - } else { - nms_Block_$callClinit(); - var$1 = nms_Block_pumpkinLantern; - } - var$3 = var$1.$blockID; - $var1.$stackSize = 0; - $var1.$itemFrame = null; - $var1.$itemID0 = var$3; - $var1.$stackSize = 1; - $var1.$itemDamage = 0; - if ($var1.$itemDamage < 0) - $var1.$itemDamage = 0; - $this.$equipment.data[4] = $var1; - $this.$equipmentDropChances.data[4] = 0.0; - } - } -} -function nms_EntityZombie_interact($this, $par1EntityPlayer) { - var $var2, var$3, var$4, var$5, var$6, var$7; - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var2 !== null) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var2.$itemID0] === nms_Item_appleGold && !$var2.$itemDamage && (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 13) != 1 ? 0 : 1)) { - var$3 = nms_Potion_weakness; - var$4 = $this.$activePotionsMap; - var$3 = jl_Integer_valueOf(var$3.$id3); - if (var$3 !== null) { - var$5 = jl_Integer_hashCode(var$3); - var$3 = ju_HashMap_findNonNullKeyEntry(var$4, var$3, var$5 & (var$4.$elementData.data.length - 1 | 0), var$5); - } else { - var$3 = var$4.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - if (var$3 === null ? 0 : 1) { - if (!$par1EntityPlayer.$capabilities.$isCreativeMode) - $var2.$stackSize = $var2.$stackSize - 1 | 0; - if ($var2.$stackSize <= 0) { - var$3 = $par1EntityPlayer.$inventory; - var$6 = $par1EntityPlayer.$inventory.$currentItem; - $par1EntityPlayer = null; - var$7 = var$3.$mainInventory; - var$5 = var$7.data.length; - if (var$6 >= var$5) { - var$6 = var$6 - var$5 | 0; - var$7 = var$3.$armorInventory; - } - var$7.data[var$6] = $par1EntityPlayer; - } - if (!$this.$worldObj.$isRemote) - nms_EntityZombie_startConversion($this, (Math.random() * 2401.0 | 0) + 3600 | 0); - return 1; - } - } - } - return 0; -} -function nms_EntityZombie_startConversion($this, $par1) { - var var$2, var$3, var$4, var$5, var$6; - $this.$conversionTime = $par1; - var$2 = $this.$dataWatcher; - var$3 = new jl_Byte; - var$3.$value4 = 1; - nms_DataWatcher_updateObject(var$2, 14, var$3); - var$4 = nms_Potion_weakness.$id3; - var$2 = ju_HashMap_removeEntry($this.$activePotionsMap, jl_Integer_valueOf(var$4)); - if ((var$2 === null ? null : var$2.$value0) !== null) - $this.$potionsNeedUpdate = 1; - var$3 = new nms_PotionEffect; - var$5 = nms_Potion_damageBoost.$id3; - var$4 = $this.$worldObj.$difficultySetting - 1 | 0; - var$6 = 0; - if (var$4 < var$6) - var$6 = var$4; - var$3.$potionID = var$5; - var$3.$duration = $par1; - var$3.$amplifier = var$6; - var$3.$isAmbient = 0; - nms_EntityLiving_addPotionEffect($this, var$3); -} -function nms_EntityZombie_handleHealthUpdate($this, $par1) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 != 16) { - $ptr = 1; - continue main; - } - var$2 = $this.$worldObj; - var$3 = $this.$posX + 0.5; - var$4 = $this.$posY + 0.5; - var$5 = $this.$posZ + 0.5; - var$6 = $rt_s(1283); - var$7 = 1.0 + Math.random(); - var$8 = Math.random() * 0.699999988079071 + 0.30000001192092896; - $par1 = 0; - $ptr = 2; - continue main; - case 1: - nms_EntityLiving_handleHealthUpdate($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_WorldClient_playSound(var$2, var$3, var$4, var$5, var$6, var$7, var$8, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -} -function nms_EntityZombie_isConverting($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 14) != 1 ? 0 : 1; -} -function nms_EntityZombie_convertToVillager($this) { - var $var1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = nms_EntityVillager__init_0(); - var$2 = $this.$worldObj; - $var1.$worldObj = var$2; - $var1.$dimension = var$2.$provider.$dimensionId; - nms_Entity_setLocationAndAngles($var1, $this.$posX, $this.$posY, $this.$posZ, $this.$rotationYaw, $this.$rotationPitch); - var$3 = Math.random() * 5.0 | 0; - nms_DataWatcher_updateObject($var1.$dataWatcher, 16, jl_Integer_valueOf(var$3)); - $var1.$field_82190_bM = 1; - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 12) != 1 ? 0 : 1) { - nms_DataWatcher_updateObject($var1.$dataWatcher, 12, jl_Integer_valueOf((-24000))); - var$4 = !(nms_DataWatcher_getWatchableObjectInt($var1.$dataWatcher, 12) >= 0 ? 0 : 1) ? 1.0 : 0.5; - nms_Entity_setSize($var1, $var1.$field_98056_d * var$4, $var1.$field_98057_e * var$4); - } - var$2 = $this.$worldObj; - $ptr = 1; - case 1: - nms_World_removeEntity(var$2, $this); - if ($rt_suspending()) { - break main; - } - var$2 = ju_HashMap_removeEntry(var$2.$entityList.$backingMap, $this); - var$2 = $this.$worldObj; - var$5 = nms_World_spawnEntityInWorld(var$2, $var1); - var$6 = var$2.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, $var1, var$6); - if (!var$5) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, $var1, var$2); - } - var$6 = new nms_PotionEffect; - var$6.$potionID = nms_Potion_confusion.$id3; - var$6.$duration = 200; - var$6.$amplifier = 0; - var$6.$isAmbient = 0; - nms_EntityLiving_addPotionEffect($var1, var$6); - $var1 = $this.$worldObj; - var$2 = null; - var$5 = 1017; - var$7 = $this.$posX | 0; - var$3 = $this.$posY | 0; - var$8 = $this.$posZ | 0; - var$9 = 0; - var$10 = 0; - if (var$10 >= $var1.$worldAccesses.$size0) - return; - var$6 = $var1.$worldAccesses; - if (var$10 >= 0 && var$10 < var$6.$size0) { - var$6 = var$6.$array1.data[var$10]; - $ptr = 2; - continue main; - } - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - case 2: - nms_RenderGlobal_playAuxSFX(var$6, var$2, var$5, var$7, var$3, var$8, var$9); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - if (var$10 >= $var1.$worldAccesses.$size0) - return; - var$6 = $var1.$worldAccesses; - if (var$10 >= 0 && var$10 < var$6.$size0) { - var$6 = var$6.$array1.data[var$10]; - continue main; - } - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -} -function nms_EntityZombie_getConversionTimeBoost($this) { - var $var1, $var2, $var3, $var4, $var5, $var6; - a: { - $var1 = 1; - if (Math.random() < 0.009999999776482582) { - $var2 = 0; - $var3 = ($this.$posX | 0) - 4 | 0; - while ($var3 < (($this.$posX | 0) + 4 | 0)) { - if ($var2 >= 14) - break a; - $var4 = ($this.$posY | 0) - 4 | 0; - while ($var4 < (($this.$posY | 0) + 4 | 0) && $var2 < 14) { - $var5 = ($this.$posZ | 0) - 4 | 0; - while ($var5 < (($this.$posZ | 0) + 4 | 0) && $var2 < 14) { - $var6 = nms_World_getBlockId($this.$worldObj, $var3, $var4, $var5); - nms_Block_$callClinit(); - if (!($var6 != nms_Block_fenceIron.$blockID && $var6 != nms_Block_bed.$blockID)) { - if (Math.random() < 0.30000001192092896) - $var1 = $var1 + 1 | 0; - $var2 = $var2 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - } - } - return $var1; -} -function nms_RenderZombie() { - var a = this; nms_RenderBiped.call(a); - a.$field_82434_o = null; - a.$field_82432_p = null; - a.$field_82437_k = null; - a.$field_82435_l = null; - a.$field_82436_m = null; - a.$field_82433_n = null; - a.$field_82431_q = 0; -} -var nms_RenderZombie_entityTexture0 = null; -var nms_RenderZombie_entityTexture1 = null; -var nms_RenderZombie_entityTexture2 = null; -function nms_RenderZombie__init_0() { - var var_0 = new nms_RenderZombie(); - nms_RenderZombie__init_(var_0); - return var_0; -} -function nms_RenderZombie__init_($this) { - var var$1; - var$1 = new nms_ModelZombie; - nms_ModelBiped__init_1(var$1, 0.0, 0.0, 64, 64); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$modelBipedMain = var$1; - $this.$field_77070_b = 1.0; - nms_RenderZombie_func_82421_b($this); - $this.$field_82431_q = 1; - $this.$field_82434_o = $this.$modelBipedMain; - $this.$field_82432_p = nms_ModelZombieVillager__init_0(0.0, 0.0, 0); -} -function nms_RenderZombie_func_82421_b($this) { - var var$1; - var$1 = new nms_ModelZombie; - nms_ModelBiped__init_1(var$1, 1.0, 0.0, 64, 32); - $this.$field_82423_g = var$1; - var$1 = new nms_ModelZombie; - nms_ModelBiped__init_1(var$1, 0.5, 0.0, 64, 32); - $this.$field_82425_h = var$1; - $this.$field_82437_k = $this.$field_82423_g; - $this.$field_82435_l = $this.$field_82425_h; - $this.$field_82436_m = nms_ModelZombieVillager__init_0(1.0, 0.0, 1); - $this.$field_82433_n = nms_ModelZombieVillager__init_0(0.5, 0.0, 1); -} -function nms_RenderZombie_func_82429_a($this, $par1EntityZombie, $par2, $par3) { - nms_RenderZombie_func_82427_a($this, $par1EntityZombie); - return nms_RenderBiped_shouldRenderPass($this, $par1EntityZombie, $par2, $par3); -} -function nms_RenderZombie_func_82426_a($this, $par1EntityZombie, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityZombie = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_RenderZombie_func_82427_a($this, $par1EntityZombie); - $ptr = 1; - case 1: - nms_RenderBiped_doRenderLiving($this, $par1EntityZombie, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityZombie, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderZombie_func_82428_a($this, $par1EntityZombie, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1EntityZombie = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_RenderZombie_func_82427_a($this, $par1EntityZombie); - $ptr = 1; - case 1: - nms_RenderBiped_renderEquippedItems($this, $par1EntityZombie, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityZombie, $par2, $ptr); -} -function nms_RenderZombie_func_82427_a($this, $par1EntityZombie) { - if (!(nms_DataWatcher_getWatchableObjectByte($par1EntityZombie.$dataWatcher, 13) != 1 ? 0 : 1)) { - $this.$mainModel = $this.$field_82434_o; - $this.$field_82423_g = $this.$field_82437_k; - $this.$field_82425_h = $this.$field_82435_l; - } else { - if ($this.$field_82431_q != 10) { - $this.$field_82432_p = nms_ModelZombieVillager__init_0(0.0, 0.0, 0); - $this.$field_82431_q = 10; - $this.$field_82436_m = nms_ModelZombieVillager__init_0(1.0, 0.0, 1); - $this.$field_82433_n = nms_ModelZombieVillager__init_0(0.5, 0.0, 1); - } - $this.$mainModel = $this.$field_82432_p; - $this.$field_82423_g = $this.$field_82436_m; - $this.$field_82425_h = $this.$field_82433_n; - } - $this.$modelBipedMain = $this.$mainModel; -} -function nms_RenderZombie_func_82430_a($this, $par1EntityZombie, $par2, $par3, $par4) { - if (nms_DataWatcher_getWatchableObjectByte($par1EntityZombie.$dataWatcher, 14) != 1 ? 0 : 1) - $par3 = $par3 + jl_Math_cos($par1EntityZombie.$ticksExisted * 3.25) * 3.141592653589793 * 0.25; - nms_RenderLiving_rotateCorpse($this, $par1EntityZombie, $par2, $par3, $par4); -} -function nms_RenderZombie_renderEquippedItems($this, $par1EntityLiving, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - nms_RenderZombie_func_82427_a($this, $par1EntityLiving); - $ptr = 1; - case 1: - nms_RenderBiped_renderEquippedItems($this, $par1EntityLiving, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $ptr); -} -function nms_RenderZombie_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - nms_RenderZombie_func_82427_a($this, $par1EntityLiving); - $ptr = 1; - case 1: - nms_RenderBiped_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderZombie_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - $par1EntityLiving = $par1EntityLiving; - nms_RenderZombie_func_82427_a($this, $par1EntityLiving); - return nms_RenderBiped_shouldRenderPass($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderZombie_rotateCorpse($this, $par1EntityLiving, $par2, $par3, $par4) { - nms_RenderZombie_func_82430_a($this, $par1EntityLiving, $par2, $par3, $par4); -} -function nms_RenderZombie_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - nms_RenderZombie_func_82427_a($this, $par1Entity); - $ptr = 1; - case 1: - nms_RenderBiped_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderZombie_bindTexture($this, $par1EntityLiving) { - if ($par1EntityLiving instanceof nms_EntityPigZombie) - nle_TextureLocation_bindTexture(nms_RenderZombie_entityTexture1); - else if ($par1EntityLiving instanceof nms_EntityZombie && (nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 13) != 1 ? 0 : 1)) - nle_TextureLocation_bindTexture(nms_RenderZombie_entityTexture2); - else - nle_TextureLocation_bindTexture(nms_RenderZombie_entityTexture0); -} -function nms_RenderZombie__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1284); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderZombie_entityTexture0 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1285); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderZombie_entityTexture1 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1286); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderZombie_entityTexture2 = var$1; -} -function nms_EntitySlime() { - var a = this; nms_EntityLiving.call(a); - a.$field_70813_a = 0.0; - a.$field_70811_b = 0.0; - a.$field_70812_c = 0.0; - a.$slimeJumpDelay = 0; -} -var nms_EntitySlime_spawnChances = null; -function nms_EntitySlime__init_0() { - var var_0 = new nms_EntitySlime(); - nms_EntitySlime__init_(var_0); - return var_0; -} -function nms_EntitySlime__init_($this) { - var $var2; - nms_EntityLiving__init_0($this); - $this.$slimeJumpDelay = 0; - $var2 = 1 << (Math.random() * 3.0 | 0); - $this.$yOffset0 = 0.0; - $this.$slimeJumpDelay = (Math.random() * 20.0 | 0) + 10 | 0; - nms_EntitySlime_setSlimeSize($this, $var2); -} -function nms_EntitySlime_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 1; - nms_DataWatcher_addObject(var$1, 16, var$2); -} -function nms_EntitySlime_setSlimeSize($this, $par1) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $this.$dataWatcher; - var$3 = new jl_Byte; - var$3.$value4 = $par1 << 24 >> 24; - nms_DataWatcher_updateObject(var$2, 16, var$3); - var$4 = 0.6000000238418579 * $par1; - nms_Entity_setSize($this, var$4, var$4); - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - var$5 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - var$5 = $rt_imul(var$5, var$5); - $this.$health = var$5; - var$6 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if (var$5 > $rt_imul(var$6, var$6)) - nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - $this.$experienceValue = $par1; -} -function nms_EntitySlime_getMaxHealth($this) { - var $var1; - $var1 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - return $rt_imul($var1, $var1); -} -function nms_EntitySlime_getSlimeSize($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); -} -function nms_EntitySlime_getSlimeParticle($this) { - return $rt_s(867); -} -function nms_EntitySlime_getJumpSound($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(1287)); - var$2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 1 ? $rt_s(1288) : $rt_s(1289); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_EntitySlime_onUpdate($this) { - var $var1, $var2, $var3, var$4, $var4, $var5, var$7, $var6, $var7, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote && !$this.$worldObj.$difficultySetting && nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) > 0) - $this.$isDead = 1; - $this.$field_70811_b = $this.$field_70811_b + ($this.$field_70813_a - $this.$field_70811_b) * 0.5; - $this.$field_70812_c = $this.$field_70811_b; - $var1 = $this.$onGround; - $ptr = 1; - case 1: - nms_EntityLiving_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$onGround && !$var1) { - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - $var3 = 0; - $var1 = $var2 * 8 | 0; - var$4 = $var2; - while ($var3 < $var1) { - $var4 = Math.random() * 3.1415927410125732 * 2.0; - $var5 = Math.random() * 0.5 + 0.5; - var$7 = nms_MathHelper_SIN_TABLE.data; - $var4 = $var4 * 10430.3779296875; - $var6 = var$7[($var4 | 0) & 65535] * var$4 * 0.5 * $var5; - $var7 = nms_MathHelper_SIN_TABLE.data[($var4 + 16384.0 | 0) & 65535] * var$4 * 0.5 * $var5; - var$10 = $this.$worldObj; - var$11 = $this.$getSlimeParticle(); - var$12 = $this.$posX + $var6; - var$13 = $this.$boundingBox.$minY; - var$14 = $this.$posZ + $var7; - var$15 = 0.0; - var$16 = 0.0; - var$17 = 0.0; - $var2 = 0; - if ($var2 < var$10.$worldAccesses.$size0) { - var$18 = var$10.$worldAccesses; - if ($var2 >= 0 && $var2 < var$18.$size0) { - var$18 = var$18.$array1.data[$var2]; - $ptr = 2; - continue main; - } - var$18 = new jl_IndexOutOfBoundsException; - var$18.$suppressionEnabled = 1; - var$18.$writableStackTrace = 1; - $rt_throw(var$18); - } - $var3 = $var3 + 1 | 0; - } - if ($this.$makesSoundOnLand()) { - var$18 = $this.$getJumpSound(); - var$4 = 0.4000000059604645 * nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - $var7 = ((Math.random() - Math.random()) * 0.20000000298023224 + 1.0) / 0.800000011920929; - nms_World_playSoundAtEntity($this.$worldObj, $this, var$18, var$4, $var7); - } - $this.$field_70813_a = (-0.5); - } else if (!$this.$onGround && $var1) - $this.$field_70813_a = 1.0; - $this.$func_70808_l(); - if ($this.$worldObj.$isRemote) { - $var7 = 0.6000000238418579 * nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - nms_Entity_setSize($this, $var7, $var7); - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$18, var$11, var$12, var$13, var$14, var$15, var$16, var$17); - if ($rt_suspending()) { - break main; - } - $var2 = $var2 + 1 | 0; - while (true) { - if ($var2 < var$10.$worldAccesses.$size0) { - var$18 = var$10.$worldAccesses; - if ($var2 >= 0 && $var2 < var$18.$size0) { - var$18 = var$18.$array1.data[$var2]; - continue main; - } - var$18 = new jl_IndexOutOfBoundsException; - var$18.$suppressionEnabled = 1; - var$18.$writableStackTrace = 1; - $rt_throw(var$18); - } - $var3 = $var3 + 1 | 0; - if ($var3 >= $var1) - break; - $var4 = Math.random() * 3.1415927410125732 * 2.0; - $var5 = Math.random() * 0.5 + 0.5; - var$7 = nms_MathHelper_SIN_TABLE.data; - $var4 = $var4 * 10430.3779296875; - $var6 = var$7[($var4 | 0) & 65535] * var$4 * 0.5 * $var5; - $var7 = nms_MathHelper_SIN_TABLE.data[($var4 + 16384.0 | 0) & 65535] * var$4 * 0.5 * $var5; - var$10 = $this.$worldObj; - var$11 = $this.$getSlimeParticle(); - var$12 = $this.$posX + $var6; - var$13 = $this.$boundingBox.$minY; - var$14 = $this.$posZ + $var7; - var$15 = 0.0; - var$16 = 0.0; - var$17 = 0.0; - $var2 = 0; - } - if ($this.$makesSoundOnLand()) { - var$18 = $this.$getJumpSound(); - var$4 = 0.4000000059604645 * nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - $var7 = ((Math.random() - Math.random()) * 0.20000000298023224 + 1.0) / 0.800000011920929; - nms_World_playSoundAtEntity($this.$worldObj, $this, var$18, var$4, $var7); - } - $this.$field_70813_a = (-0.5); - $this.$func_70808_l(); - if ($this.$worldObj.$isRemote) { - $var7 = 0.6000000238418579 * nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - nms_Entity_setSize($this, $var7, $var7); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var3, var$4, $var4, $var5, var$7, $var6, $var7, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, $ptr); -} -function nms_EntitySlime_updateEntityActionState($this) { - var $var1, 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();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_despawnEntity($this); - if ($rt_suspending()) { - break main; - } - $var1 = nms_World_getClosestVulnerablePlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 16.0); - if ($var1 !== null) - nms_EntityLiving_faceEntity($this, $var1, 10.0, 20.0); - a: { - b: { - if ($this.$onGround) { - var$2 = $this.$slimeJumpDelay; - $this.$slimeJumpDelay = var$2 - 1 | 0; - if (var$2 <= 0) - break b; - } - $this.$isJumping = 0; - if (!$this.$onGround) - break a; - $this.$moveForward0 = 0.0; - $this.$moveStrafing = 0.0; - break a; - } - $this.$slimeJumpDelay = $this.$getJumpDelay(); - if ($var1 !== null) - $this.$slimeJumpDelay = $this.$slimeJumpDelay / 3 | 0; - $this.$isJumping = 1; - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 0 ? 0 : 1) { - $var1 = $this.$getJumpSound(); - var$3 = 0.4000000059604645 * nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - var$4 = ((Math.random() - Math.random()) * 0.20000000298023224 + 1.0) * 0.800000011920929; - nms_World_playSoundAtEntity($this.$worldObj, $this, $var1, var$3, var$4); - } - $this.$moveStrafing = 1.0 - Math.random() * 2.0; - $this.$moveForward0 = 1 * nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) | 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, var$4, $ptr); -} -function nms_EntitySlime_func_70808_l($this) { - $this.$field_70813_a = $this.$field_70813_a * 0.6000000238418579; -} -function nms_EntitySlime_getJumpDelay($this) { - return (Math.random() * 20.0 | 0) + 10 | 0; -} -function nms_EntitySlime_createInstance($this) { - var $s, var$2; - $s = nms_EntitySlime__init_0(); - var$2 = $this.$worldObj; - $s.$worldObj = var$2; - $s.$dimension = var$2.$provider.$dimensionId; - return $s; -} -function nms_EntitySlime_setDead($this) { - var $var1, $var2, $var3, var$4, $var4, $var5, $var6, var$8, var$9, var$10, var$11; - a: { - $var1 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if (!$this.$worldObj.$isRemote && $var1 > 1 && $this.$health <= 0) { - $var2 = 2 + (Math.random() * 3.0 | 0) | 0; - $var3 = 0; - var$4 = $var1; - while (true) { - if ($var3 >= $var2) - break a; - $var4 = (($var3 % 2 | 0) - 0.5) * var$4 / 4.0; - $var5 = (($var3 / 2 | 0) - 0.5) * var$4 / 4.0; - $var6 = $this.$createInstance(); - nms_EntitySlime_setSlimeSize($var6, $var1 / 2 | 0); - nms_Entity_setLocationAndAngles($var6, $this.$posX + $var4, $this.$posY + 0.5, $this.$posZ + $var5, Math.random() * 360.0, 0.0); - var$8 = $this.$worldObj; - var$9 = nms_World_spawnEntityInWorld(var$8, $var6); - var$10 = var$8.$entityList; - ju_HashMap_putImpl(var$10.$backingMap, $var6, var$10); - if (!var$9) { - var$11 = var$8.$entitySpawnQueue; - ju_HashMap_putImpl(var$11.$backingMap, $var6, var$11); - } - $var3 = $var3 + 1 | 0; - } - } - } - $this.$isDead = 1; -} -function nms_EntitySlime_onCollideWithPlayer($this, $par1EntityPlayer) { - var $var2, 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();$var2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$canDamagePlayer()) { - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if (nms_EntityLiving_canEntityBeSeen($this, $par1EntityPlayer)) { - var$3 = $this.$posX - $par1EntityPlayer.$posX; - var$4 = $this.$posY - $par1EntityPlayer.$posY; - var$5 = $this.$posZ - $par1EntityPlayer.$posZ; - var$6 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5; - var$4 = $var2; - if (var$6 < 0.6 * var$4 * 0.6 * var$4) - $this.$getAttackStrength0(); - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $var2, var$3, var$4, var$5, var$6, $ptr); -} -function nms_EntitySlime_canDamagePlayer($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 1 ? 0 : 1; -} -function nms_EntitySlime_getAttackStrength($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); -} -function nms_EntitySlime_getHurtSound($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(1287)); - var$2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 1 ? $rt_s(1288) : $rt_s(1289); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_EntitySlime_getDeathSound($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(1287)); - var$2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 1 ? $rt_s(1288) : $rt_s(1289); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_EntitySlime_getDropItemId($this) { - var var$1; - if (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) != 1) - var$1 = 0; - else { - nms_Item_$callClinit(); - var$1 = nms_Item_slimeBall.$itemID; - } - return var$1; -} -function nms_EntitySlime_getSoundVolume($this) { - return 0.4000000059604645 * nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); -} -function nms_EntitySlime_getVerticalFaceSpeed($this) { - return 0; -} -function nms_EntitySlime_makesSoundOnJump($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 0 ? 0 : 1; -} -function nms_EntitySlime_makesSoundOnLand($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 2 ? 0 : 1; -} -function nms_EntitySlime__clinit_() { - var var$1, var$2; - var$1 = $rt_createFloatArray(8); - var$2 = var$1.data; - var$2[0] = 1.0; - var$2[1] = 0.75; - var$2[2] = 0.5; - var$2[3] = 0.25; - var$2[4] = 0.0; - var$2[5] = 0.25; - var$2[6] = 0.5; - var$2[7] = 0.75; - nms_EntitySlime_spawnChances = var$1; -} -function nms_RenderSlime() { - nms_RenderLiving.call(this); - this.$scaleAmount = null; -} -var nms_RenderSlime_entityTexture = null; -function nms_RenderSlime__init_(var_0, var_1, var_2) { - var var_3 = new nms_RenderSlime(); - nms_RenderSlime__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_RenderSlime__init_0($this, $par1ModelBase, $par2ModelBase, $par3) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = $par1ModelBase; - $this.$shadowSize = $par3; - $this.$scaleAmount = $par2ModelBase; -} -function nms_RenderSlime_shouldSlimeRenderPass($this, $par1EntitySlime, $par2, $par3) { - if (!(nms_DataWatcher_getWatchableObjectByte($par1EntitySlime.$dataWatcher, 0) & 32) ? 0 : 1) - return 0; - if (!$par2) { - $this.$renderPassModel = $this.$scaleAmount; - nleg_EaglerAdapterGL30_glEnable(79); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - return 1; - } - if ($par2 == 1) { - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - } - return (-1); -} -function nms_RenderSlime_scaleSlime($this, $par1EntitySlime, $par2) { - var $var3, $var5, var$5, var$6, var$7; - $var3 = nms_DataWatcher_getWatchableObjectByte($par1EntitySlime.$dataWatcher, 16); - $var5 = 1.0 / (($par1EntitySlime.$field_70812_c + ($par1EntitySlime.$field_70811_b - $par1EntitySlime.$field_70812_c) * $par2) / ($var3 * 0.5 + 1.0) + 1.0); - $par2 = $var5 * $var3; - $var3 = 1.0 / $var5 * $var3; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntitySlime = nleg_EaglerAdapterGL30_deevis; - $par1EntitySlime.$x = $par2; - $par1EntitySlime.$y = $var3; - $par1EntitySlime.$z = $par2; - $par1EntitySlime = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntitySlime, $par1EntitySlime); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$5 = new ji_PrintStream; - var$5.$out = new jl_ConsoleOutputStreamStderr; - $par1EntitySlime = new jl_StringBuilder; - $par1EntitySlime.$buffer = $rt_createCharArray(16); - var$5.$sb = $par1EntitySlime; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - $par1EntitySlime = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntitySlime, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = $par1EntitySlime; - 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 nms_RenderSlime_preRenderCallback($this, $par1EntityLiving, $par2) { - nms_RenderSlime_scaleSlime($this, $par1EntityLiving, $par2); -} -function nms_RenderSlime_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderSlime_shouldSlimeRenderPass($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderSlime_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderSlime_entityTexture); -} -function nms_RenderSlime__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1290); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSlime_entityTexture = var$1; -} -function nms_ModelSlime() { - var a = this; nms_ModelBase.call(a); - a.$slimeBodies = null; - a.$slimeRightEye = null; - a.$slimeLeftEye = null; - a.$slimeMouth = null; -} -function nms_ModelSlime__init_(var_0) { - var var_1 = new nms_ModelSlime(); - nms_ModelSlime__init_0(var_1, var_0); - return var_1; -} -function nms_ModelSlime__init_0($this, $par1) { - var var$2; - nms_ModelBase__init_0($this); - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = $par1; - $this.$slimeBodies = var$2; - var$2 = $this.$slimeBodies; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-4.0), 16.0, (-4.0), 8, 8, 8, 0.0)); - if ($par1 > 0) { - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = $par1; - $this.$slimeBodies = var$2; - var$2 = $this.$slimeBodies; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-3.0), 17.0, (-3.0), 6, 6, 6, 0.0)); - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 32; - var$2.$textureOffsetY0 = 0; - $this.$slimeRightEye = var$2; - var$2 = $this.$slimeRightEye; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-3.25), 18.0, (-3.5), 2, 2, 2, 0.0)); - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 32; - var$2.$textureOffsetY0 = 4; - $this.$slimeLeftEye = var$2; - var$2 = $this.$slimeLeftEye; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, 1.25, 18.0, (-3.5), 2, 2, 2, 0.0)); - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 32; - var$2.$textureOffsetY0 = 8; - $this.$slimeMouth = var$2; - var$2 = $this.$slimeMouth; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, 0.0, 21.0, (-3.5), 1, 1, 1, 0.0)); - } -} -function nms_ModelSlime_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - nms_ModelRenderer_render($this.$slimeBodies, $par7); - if ($this.$slimeRightEye !== null) { - nms_ModelRenderer_render($this.$slimeRightEye, $par7); - nms_ModelRenderer_render($this.$slimeLeftEye, $par7); - nms_ModelRenderer_render($this.$slimeMouth, $par7); - } -} -function nms_EntityMagmaCube() { - nms_EntitySlime.call(this); -} -function nms_EntityMagmaCube__init_0() { - var var_0 = new nms_EntityMagmaCube(); - nms_EntityMagmaCube__init_(var_0); - return var_0; -} -function nms_EntityMagmaCube__init_($this) { - nms_EntitySlime__init_($this); - $this.$isImmuneToFire = 1; - $this.$landMovementFactor = 0.20000000298023224; -} -function nms_EntityMagmaCube_getTotalArmorValue($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) * 3 | 0; -} -function nms_EntityMagmaCube_getBrightnessForRender($this, $par1) { - return 15728880; -} -function nms_EntityMagmaCube_getBrightness($this, $par1) { - return 1.0; -} -function nms_EntityMagmaCube_getSlimeParticle($this) { - return $rt_s(858); -} -function nms_EntityMagmaCube_createInstance($this) { - var $c, var$2; - $c = new nms_EntityMagmaCube; - nms_EntitySlime__init_($c); - $c.$isImmuneToFire = 1; - $c.$landMovementFactor = 0.20000000298023224; - var$2 = $this.$worldObj; - $c.$worldObj = var$2; - $c.$dimension = var$2.$provider.$dimensionId; - return $c; -} -function nms_EntityMagmaCube_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_magmaCream.$itemID; -} -function nms_EntityMagmaCube_dropFewItems($this, $par1, $par2) { - var $var3, $var4, $var5, var$6, var$7, var$8; - a: { - nms_Item_$callClinit(); - $var3 = nms_Item_magmaCream.$itemID; - if ($var3 > 0 && nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) > 1) { - $var4 = (Math.random() * 4.0 | 0) - 2 | 0; - if ($par2 > 0) { - $par1 = $par2 + 1 | 0; - $var4 = $var4 + (Math.random() * $par1 | 0) | 0; - } - $var5 = 0; - while (true) { - if ($var5 >= $var4) - break a; - var$6 = new nms_ItemStack; - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = $var3; - var$6.$stackSize = 1; - var$6.$itemDamage = 0; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - var$7 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$7.$dataWatcher, 10, var$6); - nms_DataWatcher_setObjectWatched(var$7.$dataWatcher, 10); - var$7.$delayBeforeCanPickup = 10; - var$8 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$8, var$7); - var$6 = var$8.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, var$7, var$6); - if (!$par1) { - var$6 = var$8.$entitySpawnQueue; - ju_HashMap_putImpl(var$6.$backingMap, var$7, var$6); - } - $var5 = $var5 + 1 | 0; - } - } - } -} -function nms_EntityMagmaCube_isBurning($this) { - return 0; -} -function nms_EntityMagmaCube_getJumpDelay($this) { - return ((Math.random() * 20.0 | 0) + 10 | 0) * 4 | 0; -} -function nms_EntityMagmaCube_func_70808_l($this) { - $this.$field_70813_a = $this.$field_70813_a * 0.8999999761581421; -} -function nms_EntityMagmaCube_jump($this) { - $this.$motionY = 0.41999998688697815 + nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) * 0.10000000149011612; - $this.$isAirBorne = 1; -} -function nms_EntityMagmaCube_fall($this, $par1) { - return; -} -function nms_EntityMagmaCube_canDamagePlayer($this) { - return 1; -} -function nms_EntityMagmaCube_getAttackStrength($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) + 2 | 0; -} -function nms_EntityMagmaCube_getHurtSound($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(1287)); - var$2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 1 ? $rt_s(1288) : $rt_s(1289); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_EntityMagmaCube_getDeathSound($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(1287)); - var$2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 1 ? $rt_s(1288) : $rt_s(1289); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_EntityMagmaCube_getJumpSound($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) <= 1 ? $rt_s(1291) : $rt_s(1292); -} -function nms_EntityMagmaCube_handleLavaMovement($this) { - return 0; -} -function nms_EntityMagmaCube_makesSoundOnLand($this) { - return 1; -} -function nms_RenderMagmaCube() { - nms_RenderLiving.call(this); - this.$field_77120_a = 0; -} -var nms_RenderMagmaCube_entityTexture = null; -function nms_RenderMagmaCube__init_0() { - var var_0 = new nms_RenderMagmaCube(); - nms_RenderMagmaCube__init_(var_0); - return var_0; -} -function nms_RenderMagmaCube__init_($this) { - var var$1; - var$1 = nms_ModelMagmaCube__init_0(); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.25; - $this.$field_77120_a = 5; -} -function nms_RenderMagmaCube_renderMagmaCube($this, $par1EntityMagmaCube, $par2, $par4, $par6, $par8, $par9) { - var var$7, var$8, var$9, $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityMagmaCube = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (5 != $this.$field_77120_a) { - $this.$field_77120_a = 5; - $this.$mainModel = nms_ModelMagmaCube__init_0(); - if (jl_System_outCache === null) { - var$7 = new ji_PrintStream; - var$7.$out = new jl_ConsoleOutputStreamStdout; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - var$7.$sb = var$8; - var$7.$buffer0 = $rt_createCharArray(32); - var$7.$autoFlush = 0; - var$8 = new jnci_UTF8Charset; - jnc_Charset__init_(var$8, $rt_s(2), $rt_createArray(jl_String, 0)); - var$7.$charset = var$8; - jl_System_outCache = var$7; - } - var$9 = jl_System_outCache; - var$8 = var$9.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1293)); - $var10 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, $var10, $var10 + 1 | 0); - var$8.$buffer.data[$var10] = 10; - ji_PrintStream_printSB(var$9); - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityMagmaCube, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMagmaCube, $par2, $par4, $par6, $par8, $par9, var$7, var$8, var$9, $var10, $ptr); -} -function nms_RenderMagmaCube_scaleMagmaCube($this, $par1EntityMagmaCube, $par2) { - var $var3, var$4, $var5, var$6, var$7, var$8; - $var3 = nms_DataWatcher_getWatchableObjectByte($par1EntityMagmaCube.$dataWatcher, 16); - $par2 = $par1EntityMagmaCube.$field_70812_c + ($par1EntityMagmaCube.$field_70811_b - $par1EntityMagmaCube.$field_70812_c) * $par2; - var$4 = $var3; - $var5 = 1.0 / ($par2 / (var$4 * 0.5 + 1.0) + 1.0); - $par2 = $var5 * var$4; - var$4 = 1.0 / $var5 * var$4; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityMagmaCube = nleg_EaglerAdapterGL30_deevis; - $par1EntityMagmaCube.$x = $par2; - $par1EntityMagmaCube.$y = var$4; - $par1EntityMagmaCube.$z = $par2; - $par1EntityMagmaCube = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityMagmaCube, $par1EntityMagmaCube); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$6 = new ji_PrintStream; - var$6.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityMagmaCube = new jl_StringBuilder; - $par1EntityMagmaCube.$buffer = $rt_createCharArray(16); - var$6.$sb = $par1EntityMagmaCube; - var$6.$buffer0 = $rt_createCharArray(32); - var$6.$autoFlush = 0; - $par1EntityMagmaCube = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityMagmaCube, $rt_s(2), $rt_createArray(jl_String, 0)); - var$6.$charset = $par1EntityMagmaCube; - 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 nms_RenderMagmaCube_preRenderCallback($this, $par1EntityLiving, $par2) { - nms_RenderMagmaCube_scaleMagmaCube($this, $par1EntityLiving, $par2); -} -function nms_RenderMagmaCube_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderMagmaCube_renderMagmaCube($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderMagmaCube_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderMagmaCube_renderMagmaCube($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderMagmaCube_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderMagmaCube_entityTexture); -} -function nms_RenderMagmaCube__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1294); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderMagmaCube_entityTexture = var$1; -} -function nms_RenderPlayer() { - var a = this; nms_RenderLiving.call(a); - a.$modelBipedMain0 = null; - a.$modelBipedMainNewSkin = null; - a.$modelArmorChestplate = null; - a.$modelArmor = null; - a.$renderPass2 = 0; -} -var nms_RenderPlayer_armorFilenamePrefix = null; -var nms_RenderPlayer_lax1dude_cape = null; -var nms_RenderPlayer_terrain = null; -var nms_RenderPlayer_entityTexture = null; -function nms_RenderPlayer__init_0() { - var var_0 = new nms_RenderPlayer(); - nms_RenderPlayer__init_(var_0); - return var_0; -} -function nms_RenderPlayer__init_($this) { - var var$1; - var$1 = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$renderPass2 = 0; - $this.$modelBipedMain0 = $this.$mainModel; - $this.$modelBipedMainNewSkin = nle_ModelBipedNewSkins__init_(0.0, 0); - $this.$modelArmorChestplate = nms_ModelBiped__init_0(1.0, 0.0, 64, 32); - $this.$modelArmor = nms_ModelBiped__init_0(0.5, 0.0, 64, 32); -} -function nms_RenderPlayer_setArmorModel($this, $par1EntityPlayer, $par2, $par3) { - var $var9, $var4, $var5, $var6, $var7, var$9, var$10, $var10, $var11, $var12, $var8; - if (!nle_DefaultSkinRenderer_isPlayerStandard($par1EntityPlayer)) - return (-1); - $par1EntityPlayer = $par1EntityPlayer.$inventory; - $var9 = 3 - $par2 | 0; - $var4 = $par1EntityPlayer.$armorInventory.data[$var9]; - if ($var4 !== null) { - nms_Item_$callClinit(); - $var5 = nms_Item_itemsList.data[$var4.$itemID0]; - if ($var5 instanceof nms_ItemArmor) { - $var6 = $var5; - $par1EntityPlayer = new jl_StringBuilder; - $par1EntityPlayer.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1EntityPlayer, $par1EntityPlayer.$length, $rt_s(1262)); - $var7 = nms_RenderPlayer_armorFilenamePrefix.data[$var6.$renderIndex]; - jl_AbstractStringBuilder_insert($par1EntityPlayer, $par1EntityPlayer.$length, $var7); - jl_AbstractStringBuilder_insert($par1EntityPlayer, $par1EntityPlayer.$length, $rt_s(381)); - var$9 = $rt_compare($par2, 2); - var$10 = var$9 ? 1 : 2; - jl_AbstractStringBuilder_insert0($par1EntityPlayer, $par1EntityPlayer.$length, var$10, 10); - jl_AbstractStringBuilder_insert($par1EntityPlayer, $par1EntityPlayer.$length, $rt_s(1173)); - $var7 = jl_String__init_0($par1EntityPlayer.$buffer, 0, $par1EntityPlayer.$length); - $par1EntityPlayer = $this.$renderManager.$renderEngine1; - $var9 = nms_RenderEngine_getTexture($par1EntityPlayer, $var7); - if ($var9 != $par1EntityPlayer.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - $var7 = nleg_EaglerAdapterGL30_texObjects; - $var7 = $var9 < $var7.$size3 && $var9 >= 0 ? $var7.$values.data[$var9] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - $var5 = nlea_EaglerAdapterImpl2_webgl; - $var7 = $var7 !== null ? $var7.$obj : null; - $var5.bindTexture(3553, $var7); - $par1EntityPlayer.$boundTexture = $var9; - } - $var7 = var$9 ? $this.$modelArmorChestplate : $this.$modelArmor; - $var7.$bipedHead.$showModel = $par2 ? 0 : 1; - $var7.$bipedHeadwear.$showModel = $par2 ? 0 : 1; - $par1EntityPlayer = $var7.$bipedBody; - $var9 = $rt_compare($par2, 1); - $par1EntityPlayer.$showModel = $var9 && var$9 ? 0 : 1; - $var7.$bipedRightArm.$showModel = $var9 ? 0 : 1; - $var7.$bipedLeftArm.$showModel = $var9 ? 0 : 1; - $var7.$bipedRightLeg.$showModel = var$9 && $par2 != 3 ? 0 : 1; - $var7.$bipedLeftLeg.$showModel = var$9 && $par2 != 3 ? 0 : 1; - $this.$renderPassModel = $var7; - $var7.$onGround1 = $this.$mainModel.$onGround1; - $var7.$isRiding = $this.$mainModel.$isRiding; - $var7.$isChild0 = $this.$mainModel.$isChild0; - if ($var6.$material !== nms_EnumArmorMaterial_CLOTH) { - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - if (!nms_ItemStack_isItemEnchanted($var4)) - return 1; - return 15; - } - $var9 = nms_ItemArmor_getColor($var6, $var4); - $var10 = ($var9 >> 16 & 255) / 255.0; - $var11 = ($var9 >> 8 & 255) / 255.0; - $var12 = ($var9 & 255) / 255.0; - $par3 = 1.0 * $var10; - $var10 = 1.0 * $var11; - $var8 = 1.0 * $var12; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = $par3; - nleg_EaglerAdapterGL30_colorG = $var10; - nleg_EaglerAdapterGL30_colorB = $var8; - nleg_EaglerAdapterGL30_colorA = 1.0; - if (!nms_ItemStack_isItemEnchanted($var4)) - return 16; - return 31; - } - } - return (-1); -} -function nms_RenderPlayer_func_82439_b($this, $par1EntityPlayer, $par2, $par3) { - var var$4, $var4, $var5, $var6; - $par1EntityPlayer = $par1EntityPlayer.$inventory; - var$4 = 3 - $par2 | 0; - $var4 = $par1EntityPlayer.$armorInventory.data[var$4]; - if ($var4 !== null) { - nms_Item_$callClinit(); - $var5 = nms_Item_itemsList.data[$var4.$itemID0]; - if ($var5 instanceof nms_ItemArmor) { - $var6 = $var5; - $par1EntityPlayer = new jl_StringBuilder; - $par1EntityPlayer.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1EntityPlayer, $par1EntityPlayer.$length, $rt_s(1262)); - $var6 = nms_RenderPlayer_armorFilenamePrefix.data[$var6.$renderIndex]; - jl_AbstractStringBuilder_insert($par1EntityPlayer, $par1EntityPlayer.$length, $var6); - jl_AbstractStringBuilder_insert($par1EntityPlayer, $par1EntityPlayer.$length, $rt_s(381)); - $par2 = $par2 != 2 ? 1 : 2; - jl_AbstractStringBuilder_insert0($par1EntityPlayer, $par1EntityPlayer.$length, $par2, 10); - jl_AbstractStringBuilder_insert($par1EntityPlayer, $par1EntityPlayer.$length, $rt_s(1263)); - $var6 = jl_String__init_0($par1EntityPlayer.$buffer, 0, $par1EntityPlayer.$length); - $par1EntityPlayer = $this.$renderManager.$renderEngine1; - $par2 = nms_RenderEngine_getTexture($par1EntityPlayer, $var6); - if ($par2 != $par1EntityPlayer.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - $var6 = nleg_EaglerAdapterGL30_texObjects; - $var6 = $par2 < $var6.$size3 && $par2 >= 0 ? $var6.$values.data[$par2] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - $var5 = nlea_EaglerAdapterImpl2_webgl; - $var6 = $var6 !== null ? $var6.$obj : null; - $var5.bindTexture(3553, $var6); - $par1EntityPlayer.$boundTexture = $par2; - } - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - } - } -} -function nms_RenderPlayer_renderPlayer($this, $par1EntityPlayer, $par2, $par4, $par6, $par8, $par9) { - var $renderType, $var14, $var11, $var12, var$11, var$12, var$13, $var13, $var10, $var11_0, $var12_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12_0 = $thread.pop();$var11_0 = $thread.pop();$var10 = $thread.pop();$var13 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var14 = $thread.pop();$renderType = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nle_DefaultSkinRenderer_isPlayerStandard($par1EntityPlayer)) { - $renderType = nle_DefaultSkinRenderer_getPlayerRenderer($par1EntityPlayer); - if (nle_DefaultSkinRenderer_isZombieModel($renderType)) { - if (nle_DefaultSkinRenderer_zombieRenderer === null) - nle_DefaultSkinRenderer_zombieRenderer = nms_ModelZombie__init_0(0.0, 1); - $this.$mainModel = nle_DefaultSkinRenderer_zombieRenderer; - $this.$mainModel.$isChild0 = 0; - nle_DefaultSkinRenderer_zombieRenderer.$isSneak = $par1EntityPlayer.$isSneaking(); - nle_DefaultSkinRenderer_zombieRenderer.$isRiding = nms_Entity_isRiding($par1EntityPlayer); - $var14 = $par4 - $par1EntityPlayer.$yOffset0; - if ($par1EntityPlayer.$isSneaking() && !($par1EntityPlayer instanceof nms_EntityPlayerSP)) - $var14 = $var14 - 0.125; - $ptr = 4; - continue main; - } - switch ($renderType) { - case 19: - if (nle_DefaultSkinRenderer_endermanRenderer === null) - nle_DefaultSkinRenderer_endermanRenderer = nms_ModelEnderman__init_0(); - nle_DefaultSkinRenderer_endermanRenderer.$isChild0 = 0; - nle_DefaultSkinRenderer_endermanRenderer.$isCarrying = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory) !== null && nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory).$itemID0 < 256 ? 1 : 0; - $this.$mainModel = nle_DefaultSkinRenderer_endermanRenderer; - $var14 = $par4 - $par1EntityPlayer.$yOffset0 + 0.05000000074505806; - $ptr = 5; - continue main; - case 20: - if (nle_DefaultSkinRenderer_skeletonRenderer === null) - nle_DefaultSkinRenderer_skeletonRenderer = nms_ModelSkeleton__init_0(0.0); - nle_DefaultSkinRenderer_skeletonRenderer.$isChild0 = 0; - $this.$mainModel = nle_DefaultSkinRenderer_skeletonRenderer; - $par4 = $par4 - $par1EntityPlayer.$yOffset0; - $ptr = 1; - continue main; - case 21: - if (nle_DefaultSkinRenderer_blazeRenderer === null) - nle_DefaultSkinRenderer_blazeRenderer = nms_ModelBlaze__init_0(); - nle_DefaultSkinRenderer_blazeRenderer.$isChild0 = 0; - $this.$mainModel = nle_DefaultSkinRenderer_blazeRenderer; - $par4 = $par4 - $par1EntityPlayer.$yOffset0; - $ptr = 2; - continue main; - case 32: - if (nle_DefaultSkinRenderer_villagerRenderer === null) - nle_DefaultSkinRenderer_villagerRenderer = nms_ModelVillager__init_(0.0); - nle_DefaultSkinRenderer_villagerRenderer.$isChild0 = 0; - $this.$mainModel = nle_DefaultSkinRenderer_villagerRenderer; - $par4 = $par4 - $par1EntityPlayer.$yOffset0; - $ptr = 3; - continue main; - default: - } - return; - } - nleg_EaglerAdapterGL30_glColor3f(1.0, 1.0, 1.0); - $var11 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - $var12 = $this.$modelArmorChestplate; - var$11 = $this.$modelArmor; - var$12 = $this.$modelBipedMain0; - var$13 = $this.$modelBipedMainNewSkin; - $renderType = $var11 === null ? 0 : 1; - var$13.$heldItemRight = $renderType; - var$12.$heldItemRight = $renderType; - var$11.$heldItemRight = $renderType; - $var12.$heldItemRight = $renderType; - if ($var11 !== null && nms_EntityPlayer_getItemInUseCount($par1EntityPlayer) > 0) { - $var12 = nms_ItemStack_getItemUseAction($var11); - if ($var12 === nms_EnumAction_block) { - $var11 = $this.$modelArmorChestplate; - $var12 = $this.$modelArmor; - var$11 = $this.$modelBipedMain0; - $this.$modelBipedMainNewSkin.$heldItemRight = 3; - var$11.$heldItemRight = 3; - $var12.$heldItemRight = 3; - $var11.$heldItemRight = 3; - } else if ($var12 === nms_EnumAction_bow) { - $var11 = $this.$modelArmorChestplate; - $var12 = $this.$modelArmor; - var$11 = $this.$modelBipedMain0; - $this.$modelBipedMainNewSkin.$aimedBow = 1; - var$11.$aimedBow = 1; - $var12.$aimedBow = 1; - $var11.$aimedBow = 1; - } - } - $var11 = $this.$modelArmorChestplate; - $var12 = $this.$modelArmor; - var$11 = $this.$modelBipedMain0; - var$12 = $this.$modelBipedMainNewSkin; - $renderType = $par1EntityPlayer.$isSneaking(); - var$12.$isSneak = $renderType; - var$11.$isSneak = $renderType; - $var12.$isSneak = $renderType; - $var11.$isSneak = $renderType; - $var14 = $par4 - $par1EntityPlayer.$yOffset0; - if ($par1EntityPlayer.$isSneaking() && !($par1EntityPlayer instanceof nms_EntityPlayerSP)) - $var14 = $var14 - 0.125; - $this.$mainModel = !nle_DefaultSkinRenderer_isPlayerNewSkin($par1EntityPlayer) ? $this.$modelBipedMain0 : $this.$modelBipedMainNewSkin; - $this.$mainModel.$isChild0 = 0; - $ptr = 6; - continue main; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityPlayer, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - $this.$mainModel = $this.$modelBipedMain0; - return; - case 2: - nms_RenderLiving_doRenderLiving($this, $par1EntityPlayer, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - $this.$mainModel = $this.$modelBipedMain0; - return; - case 3: - nms_RenderLiving_doRenderLiving($this, $par1EntityPlayer, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - $this.$mainModel = $this.$modelBipedMain0; - return; - case 4: - nms_RenderLiving_doRenderLiving($this, $par1EntityPlayer, $par2, $var14, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - nle_DefaultSkinRenderer_zombieRenderer.$isSneak = 0; - nle_DefaultSkinRenderer_zombieRenderer.$isRiding = 0; - $this.$mainModel = $this.$modelBipedMain0; - return; - case 5: - nms_RenderLiving_doRenderLiving($this, $par1EntityPlayer, $par2, $var14, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - nle_TextureLocation_bindTexture(nms_RenderEnderman_tex_eyes); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 1); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glTranslatef($par2, $par4 - $par1EntityPlayer.$yOffset0 + 0.05000000074505806, $par6); - $var13 = nms_RenderLiving_handleRotationFloat($this, $par1EntityPlayer, $par9); - $var10 = $par1EntityPlayer.$prevRenderYawOffset + ($par1EntityPlayer.$renderYawOffset - $par1EntityPlayer.$prevRenderYawOffset) * $par9; - $var11_0 = $par1EntityPlayer.$prevRotationYawHead + ($par1EntityPlayer.$rotationYawHead - $par1EntityPlayer.$prevRotationYawHead) * $par9; - $var12_0 = $par1EntityPlayer.$prevRotationPitch + ($par1EntityPlayer.$rotationPitch - $par1EntityPlayer.$prevRotationPitch) * $par9; - nms_RenderPlayer_rotateCorpse($this, $par1EntityPlayer, $var13, $var10, $par9); - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glScalef((-0.949999988079071), (-1.0), 0.949999988079071); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-1.347212553024292), 0.0); - nleg_EaglerAdapterGL30_glColor4f(2.299999952316284, 2.299999952316284, 2.299999952316284, !nms_Entity_isInvisible($par1EntityPlayer) ? 1.0 : 0.30000001192092896); - nms_OpenGlHelper_setLightmapTextureCoords(nms_OpenGlHelper_lightmapTexUnit, 61680.0, 0.0); - nms_ModelBiped_render(nle_DefaultSkinRenderer_endermanRenderer, null, 0.0, 0.0, $var13, $var11_0 - $var10, $var12_0, 0.0625); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_DefaultSkinRenderer_endermanRenderer.$isCarrying = 0; - $this.$mainModel = $this.$modelBipedMain0; - return; - case 6: - nms_RenderLiving_doRenderLiving($this, $par1EntityPlayer, $par2, $var14, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - $this.$mainModel = $this.$modelBipedMain0; - $par1EntityPlayer = $this.$modelArmorChestplate; - $var11 = $this.$modelArmor; - $var12 = $this.$modelBipedMain0; - $this.$modelBipedMainNewSkin.$aimedBow = 0; - $var12.$aimedBow = 0; - $var11.$aimedBow = 0; - $par1EntityPlayer.$aimedBow = 0; - $par1EntityPlayer = $this.$modelArmorChestplate; - $var11 = $this.$modelArmor; - $var12 = $this.$modelBipedMain0; - $this.$modelBipedMainNewSkin.$isSneak = 0; - $var12.$isSneak = 0; - $var11.$isSneak = 0; - $par1EntityPlayer.$isSneak = 0; - $par1EntityPlayer = $this.$modelArmorChestplate; - $var11 = $this.$modelArmor; - $var12 = $this.$modelBipedMain0; - $this.$modelBipedMainNewSkin.$heldItemRight = 0; - $var12.$heldItemRight = 0; - $var11.$heldItemRight = 0; - $par1EntityPlayer.$heldItemRight = 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $par4, $par6, $par8, $par9, $renderType, $var14, $var11, $var12, var$11, var$12, var$13, $var13, $var10, $var11_0, $var12_0, $ptr); -} -function nms_RenderPlayer_renderSpecials($this, $par1EntityPlayer, $par2) { - var $var4, $isNew, $renderType, $var6, $var27, $var21, $var24, $var9, $var11, $var12, $var14, $var16, $var17, $var18, $var19, $var22, $var25, $var26, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var26 = $thread.pop();$var25 = $thread.pop();$var22 = $thread.pop();$var19 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var14 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var24 = $thread.pop();$var21 = $thread.pop();$var27 = $thread.pop();$var6 = $thread.pop();$renderType = $thread.pop();$isNew = $thread.pop();$var4 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_glColor3f(1.0, 1.0, 1.0); - $ptr = 1; - case 1: - nms_RenderLiving_renderEquippedItems($this, $par1EntityPlayer, $par2); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nms_RenderLiving_renderArrowsStuckInEntity($this, $par1EntityPlayer, $par2); - if ($rt_suspending()) { - break main; - } - $var4 = nms_InventoryPlayer_armorItemInSlot($par1EntityPlayer.$inventory, 3); - $isNew = nle_DefaultSkinRenderer_isPlayerNewSkin($par1EntityPlayer); - $renderType = nle_DefaultSkinRenderer_getPlayerRenderer($par1EntityPlayer); - if ($var4 !== null) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_ModelRenderer_postRender((!$isNew ? $this.$modelBipedMain0 : $this.$modelBipedMainNewSkin).$bipedHead, 0.0625); - if (nms_ItemStack_getItem($var4).$itemID < 256) { - nms_Block_$callClinit(); - if (nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var4.$itemID0].$getRenderType())) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.25), 0.0); - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), (-0.625)); - } - $var6 = $this.$renderManager.$itemRenderer; - $var27 = 0; - $ptr = 3; - continue main; - } - $var27 = nms_ItemStack_getItem($var4).$itemID; - nms_Item_$callClinit(); - if ($var27 == nms_Item_skull.$itemID) { - nleg_EaglerAdapterGL30_glScalef(1.0625, (-1.0625), (-1.0625)); - $var6 = $rt_s(44); - if (nms_ItemStack_hasTagCompound($var4) && nms_NBTTagCompound_hasKey(nms_ItemStack_getTagCompound($var4), $rt_s(1264))) - $var6 = nms_NBTTagCompound_getString(nms_ItemStack_getTagCompound($var4), $rt_s(1264)); - nms_TileEntitySkullRenderer_func_82393_a(nms_TileEntitySkullRenderer_skullRenderer, (-0.5), 0.0, (-0.5), 1, 180.0, nms_ItemStack_getItemDamage($var4), $var6); - } - nleg_EaglerAdapterGL30_glPopMatrix(); - } - if (jl_String_equals($par1EntityPlayer.$username0, $rt_s(1295)) && !nms_Entity_isInvisible($par1EntityPlayer) && !nms_EntityPlayer_getHideCape0($par1EntityPlayer) && $renderType != 21) { - nle_TextureLocation_bindTexture(nms_RenderPlayer_lax1dude_cape); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, 0.125); - $var21 = $par1EntityPlayer.$field_71091_bM; - $var24 = $par1EntityPlayer.$field_71094_bP - $par1EntityPlayer.$field_71091_bM; - $var9 = $par2; - $var21 = $var21 + $var24 * $var9 - ($par1EntityPlayer.$prevPosX + ($par1EntityPlayer.$posX - $par1EntityPlayer.$prevPosX) * $var9); - $var24 = $par1EntityPlayer.$field_71096_bN + ($par1EntityPlayer.$field_71095_bQ - $par1EntityPlayer.$field_71096_bN) * $var9 - ($par1EntityPlayer.$prevPosY + ($par1EntityPlayer.$posY - $par1EntityPlayer.$prevPosY) * $var9); - $var9 = $par1EntityPlayer.$field_71097_bO + ($par1EntityPlayer.$field_71085_bR - $par1EntityPlayer.$field_71097_bO) * $var9 - ($par1EntityPlayer.$prevPosZ + ($par1EntityPlayer.$posZ - $par1EntityPlayer.$prevPosZ) * $var9); - $var11 = ($par1EntityPlayer.$prevRenderYawOffset + ($par1EntityPlayer.$renderYawOffset - $par1EntityPlayer.$prevRenderYawOffset) * $par2) * 3.1415927410125732 / 180.0; - $var12 = nms_MathHelper_sin($var11); - $var14 = -nms_MathHelper_cos($var11); - $var16 = $var24 * 10.0; - if ($var16 < (-6.0)) - $var16 = (-6.0); - if ($var16 > 32.0) - $var16 = 32.0; - $var17 = ($var21 * $var12 + $var9 * $var14) * 100.0; - $var18 = ($var21 * $var14 - $var9 * $var12) * 100.0; - if ($var17 < 0.0) - $var17 = 0.0; - $var19 = $par1EntityPlayer.$prevCameraYaw + ($par1EntityPlayer.$cameraYaw0 - $par1EntityPlayer.$prevCameraYaw) * $par2; - $par2 = $var16 + nms_MathHelper_sin(($par1EntityPlayer.$prevDistanceWalkedModified + ($par1EntityPlayer.$distanceWalkedModified - $par1EntityPlayer.$prevDistanceWalkedModified) * $par2) * 6.0) * 32.0 * $var19; - if ($par1EntityPlayer.$isSneaking()) - $par2 = $par2 + 25.0; - nleg_EaglerAdapterGL30_glRotatef(6.0 + $var17 / 2.0 + $par2, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var18 / 2.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef( -$var18 / 2.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 1.0, 0.0); - nms_ModelBiped_renderCloak($this.$modelBipedMain0, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - $var22 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var22 !== null) { - nleg_EaglerAdapterGL30_glPushMatrix(); - if (!nle_DefaultSkinRenderer_isZombieModel($renderType) && $renderType != 20) - nms_ModelRenderer_postRender((!$isNew ? $this.$modelBipedMain0 : $this.$modelBipedMainNewSkin).$bipedRightArm, 0.0625); - else - nms_ModelRenderer_postRender($this.$mainModel.$bipedRightArm, 0.0625); - nleg_EaglerAdapterGL30_glTranslatef((-0.0625), 0.4375, 0.0625); - if ($par1EntityPlayer.$fishEntity !== null) { - $var22 = new nms_ItemStack; - nms_Item_$callClinit(); - nms_ItemStack__init_1($var22, nms_Item_stick); - } - $var25 = null; - if (nms_EntityPlayer_getItemInUseCount($par1EntityPlayer) > 0) - $var25 = nms_ItemStack_getItemUseAction($var22); - a: { - if ($var22.$itemID0 < 256) { - nms_Block_$callClinit(); - if (nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var22.$itemID0].$getRenderType())) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.1875, (-0.3125)); - nleg_EaglerAdapterGL30_glRotatef(20.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef((-0.375), (-0.375), 0.375); - break a; - } - } - $var27 = $var22.$itemID0; - nms_Item_$callClinit(); - if ($var27 == nms_Item_bow.$itemID) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.125, 0.3125); - nleg_EaglerAdapterGL30_glRotatef((-20.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } else if (!nms_Item_itemsList.data[$var22.$itemID0].$isFull3D()) { - nleg_EaglerAdapterGL30_glTranslatef(0.25, 0.1875, (-0.1875)); - nleg_EaglerAdapterGL30_glScalef(0.375, 0.375, 0.375); - nleg_EaglerAdapterGL30_glRotatef(60.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef((-90.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(20.0, 0.0, 0.0, 1.0); - } else { - if (nms_Item_itemsList.data[$var22.$itemID0].$shouldRotateAroundWhenRendering()) { - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.125), 0.0); - } - if (nms_EntityPlayer_getItemInUseCount($par1EntityPlayer) > 0 && $var25 === nms_EnumAction_block) { - nleg_EaglerAdapterGL30_glTranslatef(0.05000000074505806, 0.0, (-0.10000000149011612)); - nleg_EaglerAdapterGL30_glRotatef((-50.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-10.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-60.0), 0.0, 0.0, 1.0); - } - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.1875, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } - } - if (!nms_ItemStack_getItem($var22).$requiresMultipleRenderPasses()) { - $var27 = nms_ItemStack_getItem($var22).$getColorFromItemStack($var22, 0); - nleg_EaglerAdapterGL30_glColor4f(($var27 >> 16 & 255) / 255.0, ($var27 >> 8 & 255) / 255.0, ($var27 & 255) / 255.0, 1.0); - $var6 = $this.$renderManager.$itemRenderer; - $var27 = 0; - $ptr = 4; - continue main; - } - $var27 = 0; - if ($var27 <= 1) { - $var26 = nms_ItemStack_getItem($var22).$getColorFromItemStack($var22, $var27); - nleg_EaglerAdapterGL30_glColor4f(($var26 >> 16 & 255) / 255.0, ($var26 >> 8 & 255) / 255.0, ($var26 & 255) / 255.0, 1.0); - $var6 = $this.$renderManager.$itemRenderer; - $ptr = 5; - continue main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - } - return; - case 3: - nms_ItemRenderer_renderItem($var6, $par1EntityPlayer, $var4, $var27); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - if (jl_String_equals($par1EntityPlayer.$username0, $rt_s(1295)) && !nms_Entity_isInvisible($par1EntityPlayer) && !nms_EntityPlayer_getHideCape0($par1EntityPlayer) && $renderType != 21) { - nle_TextureLocation_bindTexture(nms_RenderPlayer_lax1dude_cape); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, 0.125); - $var21 = $par1EntityPlayer.$field_71091_bM; - $var24 = $par1EntityPlayer.$field_71094_bP - $par1EntityPlayer.$field_71091_bM; - $var9 = $par2; - $var21 = $var21 + $var24 * $var9 - ($par1EntityPlayer.$prevPosX + ($par1EntityPlayer.$posX - $par1EntityPlayer.$prevPosX) * $var9); - $var24 = $par1EntityPlayer.$field_71096_bN + ($par1EntityPlayer.$field_71095_bQ - $par1EntityPlayer.$field_71096_bN) * $var9 - ($par1EntityPlayer.$prevPosY + ($par1EntityPlayer.$posY - $par1EntityPlayer.$prevPosY) * $var9); - $var9 = $par1EntityPlayer.$field_71097_bO + ($par1EntityPlayer.$field_71085_bR - $par1EntityPlayer.$field_71097_bO) * $var9 - ($par1EntityPlayer.$prevPosZ + ($par1EntityPlayer.$posZ - $par1EntityPlayer.$prevPosZ) * $var9); - $var11 = ($par1EntityPlayer.$prevRenderYawOffset + ($par1EntityPlayer.$renderYawOffset - $par1EntityPlayer.$prevRenderYawOffset) * $par2) * 3.1415927410125732 / 180.0; - $var12 = nms_MathHelper_sin($var11); - $var14 = -nms_MathHelper_cos($var11); - $var16 = $var24 * 10.0; - if ($var16 < (-6.0)) - $var16 = (-6.0); - if ($var16 > 32.0) - $var16 = 32.0; - $var17 = ($var21 * $var12 + $var9 * $var14) * 100.0; - $var18 = ($var21 * $var14 - $var9 * $var12) * 100.0; - if ($var17 < 0.0) - $var17 = 0.0; - $var19 = $par1EntityPlayer.$prevCameraYaw + ($par1EntityPlayer.$cameraYaw0 - $par1EntityPlayer.$prevCameraYaw) * $par2; - $par2 = $var16 + nms_MathHelper_sin(($par1EntityPlayer.$prevDistanceWalkedModified + ($par1EntityPlayer.$distanceWalkedModified - $par1EntityPlayer.$prevDistanceWalkedModified) * $par2) * 6.0) * 32.0 * $var19; - if ($par1EntityPlayer.$isSneaking()) - $par2 = $par2 + 25.0; - nleg_EaglerAdapterGL30_glRotatef(6.0 + $var17 / 2.0 + $par2, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var18 / 2.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef( -$var18 / 2.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 1.0, 0.0); - nms_ModelBiped_renderCloak($this.$modelBipedMain0, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - $var22 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var22 !== null) { - nleg_EaglerAdapterGL30_glPushMatrix(); - if (!nle_DefaultSkinRenderer_isZombieModel($renderType) && $renderType != 20) - nms_ModelRenderer_postRender((!$isNew ? $this.$modelBipedMain0 : $this.$modelBipedMainNewSkin).$bipedRightArm, 0.0625); - else - nms_ModelRenderer_postRender($this.$mainModel.$bipedRightArm, 0.0625); - nleg_EaglerAdapterGL30_glTranslatef((-0.0625), 0.4375, 0.0625); - if ($par1EntityPlayer.$fishEntity !== null) { - $var22 = new nms_ItemStack; - nms_Item_$callClinit(); - nms_ItemStack__init_1($var22, nms_Item_stick); - } - $var25 = null; - if (nms_EntityPlayer_getItemInUseCount($par1EntityPlayer) > 0) - $var25 = nms_ItemStack_getItemUseAction($var22); - b: { - if ($var22.$itemID0 < 256) { - nms_Block_$callClinit(); - if (nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var22.$itemID0].$getRenderType())) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.1875, (-0.3125)); - nleg_EaglerAdapterGL30_glRotatef(20.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef((-0.375), (-0.375), 0.375); - break b; - } - } - $var27 = $var22.$itemID0; - nms_Item_$callClinit(); - if ($var27 == nms_Item_bow.$itemID) { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.125, 0.3125); - nleg_EaglerAdapterGL30_glRotatef((-20.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } else if (!nms_Item_itemsList.data[$var22.$itemID0].$isFull3D()) { - nleg_EaglerAdapterGL30_glTranslatef(0.25, 0.1875, (-0.1875)); - nleg_EaglerAdapterGL30_glScalef(0.375, 0.375, 0.375); - nleg_EaglerAdapterGL30_glRotatef(60.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef((-90.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(20.0, 0.0, 0.0, 1.0); - } else { - if (nms_Item_itemsList.data[$var22.$itemID0].$shouldRotateAroundWhenRendering()) { - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.125), 0.0); - } - if (nms_EntityPlayer_getItemInUseCount($par1EntityPlayer) > 0 && $var25 === nms_EnumAction_block) { - nleg_EaglerAdapterGL30_glTranslatef(0.05000000074505806, 0.0, (-0.10000000149011612)); - nleg_EaglerAdapterGL30_glRotatef((-50.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-10.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-60.0), 0.0, 0.0, 1.0); - } - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.1875, 0.0); - nleg_EaglerAdapterGL30_glScalef(0.625, (-0.625), 0.625); - nleg_EaglerAdapterGL30_glRotatef((-100.0), 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - } - } - if (!nms_ItemStack_getItem($var22).$requiresMultipleRenderPasses()) { - $var27 = nms_ItemStack_getItem($var22).$getColorFromItemStack($var22, 0); - nleg_EaglerAdapterGL30_glColor4f(($var27 >> 16 & 255) / 255.0, ($var27 >> 8 & 255) / 255.0, ($var27 & 255) / 255.0, 1.0); - $var6 = $this.$renderManager.$itemRenderer; - $var27 = 0; - $ptr = 4; - continue main; - } - $var27 = 0; - if ($var27 <= 1) { - $var26 = nms_ItemStack_getItem($var22).$getColorFromItemStack($var22, $var27); - nleg_EaglerAdapterGL30_glColor4f(($var26 >> 16 & 255) / 255.0, ($var26 >> 8 & 255) / 255.0, ($var26 & 255) / 255.0, 1.0); - $var6 = $this.$renderManager.$itemRenderer; - $ptr = 5; - continue main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - } - return; - case 4: - nms_ItemRenderer_renderItem($var6, $par1EntityPlayer, $var22, $var27); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - case 5: - nms_ItemRenderer_renderItem($var6, $par1EntityPlayer, $var22, $var27); - if ($rt_suspending()) { - break main; - } - $var27 = $var27 + 1 | 0; - if ($var27 > 1) { - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - } - $var26 = nms_ItemStack_getItem($var22).$getColorFromItemStack($var22, $var27); - nleg_EaglerAdapterGL30_glColor4f(($var26 >> 16 & 255) / 255.0, ($var26 >> 8 & 255) / 255.0, ($var26 & 255) / 255.0, 1.0); - $var6 = $this.$renderManager.$itemRenderer; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var4, $isNew, $renderType, $var6, $var27, $var21, $var24, $var9, $var11, $var12, $var14, $var16, $var17, $var18, $var19, $var22, $var25, $var26, $ptr); -} -function nms_RenderPlayer_renderPlayerScale($this, $par1EntityPlayer, $par2) { - var var$3, var$4, var$5; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityPlayer = nleg_EaglerAdapterGL30_deevis; - $par1EntityPlayer.$x = 0.9375; - $par1EntityPlayer.$y = 0.9375; - $par1EntityPlayer.$z = 0.9375; - $par1EntityPlayer = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityPlayer, $par1EntityPlayer); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityPlayer = new jl_StringBuilder; - $par1EntityPlayer.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityPlayer; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityPlayer = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityPlayer, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityPlayer; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } -} -function nms_RenderPlayer_func_96450_a($this, $par1EntityPlayer, $par2, $par4, $par6, $par8Str, $par9, $par10) { - var var$8, $var13, $var14, var$11; - if ($par10 < 100.0) { - var$8 = $par1EntityPlayer.$worldObj.$worldScoreboard; - $var13 = var$8.$field_96541_d.data[2]; - if ($var13 !== null) { - $var14 = nms_Scoreboard_func_96529_a(var$8, $par1EntityPlayer.$username0, $var13); - if (!$par1EntityPlayer.$sleeping) { - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - var$11 = $var14.$field_96655_e; - jl_AbstractStringBuilder_insert0(var$8, var$8.$length, var$11, 10); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(307)); - $var14 = $var13.$displayName; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $var14); - nms_RenderLiving_renderLivingLabel($this, $par1EntityPlayer, jl_String__init_0(var$8.$buffer, 0, var$8.$length), $par2, $par4, $par6, 64); - } else { - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - var$11 = $var14.$field_96655_e; - jl_AbstractStringBuilder_insert0(var$8, var$8.$length, var$11, 10); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(307)); - $var14 = $var13.$displayName; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $var14); - nms_RenderLiving_renderLivingLabel($this, $par1EntityPlayer, jl_String__init_0(var$8.$buffer, 0, var$8.$length), $par2, $par4 - 1.5, $par6, 64); - } - $par4 = $par4 + $this.$renderManager.$fontRenderer1.$FONT_HEIGHT * 1.149999976158142 * $par9; - } - } - if (!$par1EntityPlayer.$sleeping) - nms_RenderLiving_renderLivingLabel($this, $par1EntityPlayer, $par8Str, $par2, $par4, $par6, 64); - else - nms_RenderLiving_renderLivingLabel($this, $par1EntityPlayer, $par8Str, $par2, $par4 - 1.5, $par6, 64); -} -function nms_RenderPlayer_renderFirstPersonArm($this, $par1EntityPlayer) { - var $i, $isNew; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $i = nle_DefaultSkinRenderer_getPlayerRenderer($par1EntityPlayer); - if (!(!nle_DefaultSkinRenderer_isStandardModel($i) && !($i != 18 && $i != 28 ? 0 : 1))) { - $isNew = nle_DefaultSkinRenderer_isPlayerNewSkin($par1EntityPlayer); - (!$isNew ? $this.$modelBipedMain0 : $this.$modelBipedMainNewSkin).$onGround1 = 0.0; - (!$isNew ? $this.$modelBipedMain0 : $this.$modelBipedMainNewSkin).$setRotationAngles(0.0, 0.0, 0.0, 0.0, 0.0, 0.0625, $par1EntityPlayer); - nms_ModelRenderer_render((!$isNew ? $this.$modelBipedMain0 : $this.$modelBipedMainNewSkin).$bipedRightArm, 0.0625); - } -} -function nms_RenderPlayer_renderPlayerSleep($this, $par1EntityPlayer, $par2, $par4, $par6) { - var var$5, var$6, var$7, var$8, var$9, var$10, var$11; - var$5 = !$par1EntityPlayer.$isDead && $par1EntityPlayer.$health > 0 ? 1 : 0; - if (var$5 && $par1EntityPlayer.$sleeping) { - $par2 = $par2 + $par1EntityPlayer.$field_71079_bU; - $par4 = $par4 + $par1EntityPlayer.$field_71082_cx; - $par6 = $par6 + $par1EntityPlayer.$field_71089_bV; - var$6 = $par2; - var$7 = $par4; - var$8 = $par6; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityPlayer = nleg_EaglerAdapterGL30_deevis; - $par1EntityPlayer.$x = var$6; - $par1EntityPlayer.$y = var$7; - $par1EntityPlayer.$z = var$8; - $par1EntityPlayer = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityPlayer, $par1EntityPlayer); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$9 = new ji_PrintStream; - var$9.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityPlayer = new jl_StringBuilder; - $par1EntityPlayer.$buffer = $rt_createCharArray(16); - var$9.$sb = $par1EntityPlayer; - var$9.$buffer0 = $rt_createCharArray(32); - var$9.$autoFlush = 0; - $par1EntityPlayer = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityPlayer, $rt_s(2), $rt_createArray(jl_String, 0)); - var$9.$charset = $par1EntityPlayer; - 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); - } - } else { - var$6 = $par2; - var$7 = $par4; - var$8 = $par6; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityPlayer = nleg_EaglerAdapterGL30_deevis; - $par1EntityPlayer.$x = var$6; - $par1EntityPlayer.$y = var$7; - $par1EntityPlayer.$z = var$8; - $par1EntityPlayer = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityPlayer, $par1EntityPlayer); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$9 = new ji_PrintStream; - var$9.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityPlayer = new jl_StringBuilder; - $par1EntityPlayer.$buffer = $rt_createCharArray(16); - var$9.$sb = $par1EntityPlayer; - var$9.$buffer0 = $rt_createCharArray(32); - var$9.$autoFlush = 0; - $par1EntityPlayer = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityPlayer, $rt_s(2), $rt_createArray(jl_String, 0)); - var$9.$charset = $par1EntityPlayer; - 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); - } - } -} -function nms_RenderPlayer_rotatePlayer($this, $par1EntityPlayer, $par2, $par3, $par4) { - var var$5; - var$5 = !$par1EntityPlayer.$isDead && $par1EntityPlayer.$health > 0 ? 1 : 0; - if (var$5 && $par1EntityPlayer.$sleeping) { - nleg_EaglerAdapterGL30_glRotatef(nms_EntityPlayer_getBedOrientationInDegrees($par1EntityPlayer), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(90.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef(270.0, 0.0, 1.0, 0.0); - } else - nms_RenderLiving_rotateCorpse($this, $par1EntityPlayer, $par2, $par3, $par4); -} -function nms_RenderPlayer_func_96449_a($this, $par1EntityLiving, $par2, $par4, $par6, $par8Str, $par9, $par10) { - nms_RenderPlayer_func_96450_a($this, $par1EntityLiving, $par2, $par4, $par6, $par8Str, $par9, $par10); -} -function nms_RenderPlayer_preRenderCallback($this, $par1EntityLiving, $par2) { - var var$3, var$4, var$5; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = 0.9375; - $par1EntityLiving.$y = 0.9375; - $par1EntityLiving.$z = 0.9375; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityLiving; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityLiving; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } -} -function nms_RenderPlayer_func_82408_c($this, $par1EntityLiving, $par2, $par3) { - nms_RenderPlayer_func_82439_b($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderPlayer_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderPlayer_setArmorModel($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderPlayer_renderEquippedItems($this, $par1EntityLiving, $par2) { - var $p, $renderType, $s, var$6, $var5, $var6, $var4, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();$var4 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();var$6 = $thread.pop();$s = $thread.pop();$renderType = $thread.pop();$p = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if (!$this.$renderPass2) { - $p = $par1EntityLiving; - $renderType = nle_DefaultSkinRenderer_getPlayerRenderer($p); - if (!nle_DefaultSkinRenderer_isPlayerStandard($p) && !($renderType != 18 && $renderType != 28 ? 0 : 1) && $renderType != 20) { - if ($renderType != 19) - break a; - $s = nms_InventoryPlayer_getCurrentItem($p.$inventory); - if ($s === null) - break a; - if ($s.$itemID0 >= 256) - break a; - else { - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = 0.0; - $par1EntityLiving.$y = 0.6875; - $par1EntityLiving.$z = (-0.75); - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$6 = new ji_PrintStream; - var$6.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$6.$sb = $par1EntityLiving; - var$6.$buffer0 = $rt_createCharArray(32); - var$6.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$6.$charset = $par1EntityLiving; - jl_System_errCache = var$6; - } - $par1EntityLiving = jl_System_errCache; - var$6 = $par1EntityLiving.$sb; - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(220)); - $var5 = var$6.$length; - jl_AbstractStringBuilder_insertSpace(var$6, $var5, $var5 + 1 | 0); - var$6.$buffer.data[$var5] = 10; - ji_PrintStream_printSB($par1EntityLiving); - } - nleg_EaglerAdapterGL30_glRotatef(20.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = (-0.5); - $par1EntityLiving.$y = (-0.5); - $par1EntityLiving.$z = 0.5; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$6 = new ji_PrintStream; - var$6.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$6.$sb = $par1EntityLiving; - var$6.$buffer0 = $rt_createCharArray(32); - var$6.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$6.$charset = $par1EntityLiving; - jl_System_errCache = var$6; - } - var$6 = jl_System_errCache; - $par1EntityLiving = var$6.$sb; - jl_AbstractStringBuilder_insert($par1EntityLiving, $par1EntityLiving.$length, $rt_s(220)); - $var6 = $par1EntityLiving.$length; - jl_AbstractStringBuilder_insertSpace($par1EntityLiving, $var6, $var6 + 1 | 0); - $par1EntityLiving.$buffer.data[$var6] = 10; - ji_PrintStream_printSB(var$6); - } - $var4 = nle_DefaultSkinRenderer_getPlayerRenderer($p) != 21 ? nms_Entity_getBrightnessForRender($p, $par2) : 15728880; - b: { - $var5 = $var4 % 65536 | 0; - $var6 = $var4 / 65536 | 0; - $renderType = nms_OpenGlHelper_lightmapTexUnit; - $par2 = $var5 / 1.0; - var$10 = $var6 / 1.0; - switch ($renderType) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = $par2; - nleg_EaglerAdapterGL30_tex1Y = var$10; - break b; - default: - if (jl_System_errCache === null) { - $p = new ji_PrintStream; - $p.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - $p.$sb = $par1EntityLiving; - $p.$buffer0 = $rt_createCharArray(32); - $p.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - $p.$charset = $par1EntityLiving; - jl_System_errCache = $p; - } - var$6 = jl_System_errCache; - $p = var$6.$sb; - jl_AbstractStringBuilder_insert($p, $p.$length, $rt_s(238)); - $renderType = $p.$length; - jl_AbstractStringBuilder_insertSpace($p, $renderType, $renderType + 1 | 0); - $p.$buffer.data[$renderType] = 10; - ji_PrintStream_printSB(var$6); - break b; - } - nleg_EaglerAdapterGL30_tex0X = $par2; - nleg_EaglerAdapterGL30_tex0Y = var$10; - } - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture(nms_RenderPlayer_terrain); - $par1EntityLiving = $this.$renderBlocks; - nms_Block_$callClinit(); - $p = nms_Block_blocksList.data[$s.$itemID0]; - $var5 = nms_ItemStack_getItemDamage($s); - $par2 = 1.0; - $ptr = 2; - continue main; - } - } - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_RenderPlayer_renderSpecials($this, $p, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_RenderBlocks_renderBlockAsItem($par1EntityLiving, $p, $var5, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(41); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $p, $renderType, $s, var$6, $var5, $var6, $var4, var$10, $ptr); -} -function nms_RenderPlayer_rotateCorpse($this, $par1EntityLiving, $par2, $par3, $par4) { - nms_RenderPlayer_rotatePlayer($this, $par1EntityLiving, $par2, $par3, $par4); -} -function nms_RenderPlayer_renderLivingAt($this, $par1EntityLiving, $par2, $par4, $par6) { - nms_RenderPlayer_renderPlayerSleep($this, $par1EntityLiving, $par2, $par4, $par6); -} -function nms_RenderPlayer_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderPlayer_renderPlayer($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderPlayer_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderPlayer_renderPlayer($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderPlayer_bindTexture($this, $par1EntityLiving) { - var var$2, var$3, var$4, var$5; - if (!($par1EntityLiving instanceof nms_EntityClientPlayerMP)) { - if (!($par1EntityLiving instanceof nms_EntityOtherPlayerMP)) - nle_TextureLocation_bindTexture(nms_RenderPlayer_entityTexture); - else if (!nle_DefaultSkinRenderer_bindSyncedSkin($par1EntityLiving)) - nle_TextureLocation_bindTexture(nms_RenderPlayer_entityTexture); - } else { - nle_EaglerProfile_$callClinit(); - if (nle_EaglerProfile_presetSkinId >= 0) - nle_TextureLocation_bindTexture(nle_DefaultSkinRenderer_defaultVanillaSkins.data[nle_EaglerProfile_presetSkinId]); - else { - $par1EntityLiving = nmc_Minecraft_theMinecraft.$renderEngine; - var$2 = nle_EaglerProfile_glTex; - var$3 = nle_EaglerProfile_customSkinId; - if (var$3 >= 0 && var$3 < var$2.$size0) { - var$4 = var$2.$array1.data[var$3].$value; - if (var$4 != $par1EntityLiving.$boundTexture) { - nleg_EaglerAdapterGL30_$callClinit(); - var$2 = nleg_EaglerAdapterGL30_texObjects; - var$2 = var$4 < var$2.$size3 && var$4 >= 0 ? var$2.$values.data[var$4] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$5 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2 !== null ? var$2.$obj : null; - var$5.bindTexture(3553, var$2); - $par1EntityLiving.$boundTexture = var$4; - } - } else { - $par1EntityLiving = new jl_IndexOutOfBoundsException; - $par1EntityLiving.$suppressionEnabled = 1; - $par1EntityLiving.$writableStackTrace = 1; - $rt_throw($par1EntityLiving); - } - } - } -} -function nms_RenderPlayer__clinit_() { - var var$1, var$2, var$3; - var$1 = $rt_createArray(jl_String, 5); - var$2 = var$1.data; - var$2[0] = $rt_s(1265); - var$2[1] = $rt_s(1266); - var$2[2] = $rt_s(1267); - var$2[3] = $rt_s(1268); - var$2[4] = $rt_s(1269); - nms_RenderPlayer_armorFilenamePrefix = var$1; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(1296); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - nms_RenderPlayer_lax1dude_cape = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(641); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - nms_RenderPlayer_terrain = var$3; - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(1297); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - nms_RenderPlayer_entityTexture = var$3; -} -function nms_EntityFlying() { - nms_EntityLiving.call(this); -} -function nms_EntityFlying_fall($this, $par1) { - return; -} -function nms_EntityFlying_updateFallState($this, $par1, $par3) { - return; -} -function nms_EntityFlying_moveEntityWithHeading($this, $par1, $par2) { - var $var10, $var9, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $var3, var$13, $var4, $var5, var$16, $var8, $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$var8 = $thread.pop();var$16 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$13 = $thread.pop();$var3 = $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();var$5 = $thread.pop();$var9 = $thread.pop();$var10 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$inWater) { - nms_Entity_moveFlying($this, $par1, $par2, 0.019999999552965164); - $var10 = $this.$motionX; - $var9 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - continue main; - } - var$6 = $this.$worldObj; - var$7 = $this.$boundingBox; - var$8 = var$7.$minX + 0.10000000149011612; - var$9 = var$7.$minY + 0.4000000059604645; - var$10 = var$7.$minZ + 0.10000000149011612; - $var10 = var$7.$maxX + (-0.10000000149011612); - $var9 = var$7.$maxY + (-0.4000000059604645); - var$5 = var$7.$maxZ + (-0.10000000149011612); - var$7 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$7.$initialized) { - var$11 = new nms_AABBPool; - var$11.$listAABB = ju_ArrayList__init_1(10); - var$11.$nextPoolIndex = 0; - var$11.$maxPoolIndex = 0; - var$11.$numCleans = 0; - var$11.$maxNumCleans = 300; - var$11.$numEntriesToRemove = 2000; - var$7.$value7 = var$11; - var$7.$initialized = 1; - } - var$11 = nms_AABBPool_getAABB(var$7.$value7, var$8, var$9, var$10, $var10, $var9, var$5); - nms_Material_$callClinit(); - if (nms_World_isMaterialInBB(var$6, var$11, nms_Material_lava)) { - nms_Entity_moveFlying($this, $par1, $par2, 0.019999999552965164); - $var10 = $this.$motionX; - $var9 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 2; - continue main; - } - $var3 = 0.9100000262260437; - if ($this.$onGround) { - $var3 = 0.546000063419342; - var$6 = $this.$worldObj; - $var10 = $this.$posX; - var$13 = $var10 | 0; - if ($var10 < var$13) - var$13 = var$13 - 1 | 0; - $var10 = $this.$boundingBox.$minY; - $var4 = $var10 | 0; - if ($var10 < $var4) - $var4 = $var4 - 1 | 0; - $var5 = $var4 - 1 | 0; - $var10 = $this.$posZ; - var$16 = $var10 | 0; - if ($var10 < var$16) - var$16 = var$16 - 1 | 0; - $var4 = nms_World_getBlockId(var$6, var$13, $var5, var$16); - if ($var4 > 0) { - nms_Block_$callClinit(); - $var3 = nms_Block_blocksList.data[$var4].$slipperiness * 0.9100000262260437; - } - } - $var8 = 0.16277135908603668 / ($var3 * $var3 * $var3); - nms_Entity_moveFlying($this, $par1, $par2, !$this.$onGround ? 0.019999999552965164 : 0.10000000149011612 * $var8); - $par1 = 0.9100000262260437; - if ($this.$onGround) { - $par1 = 0.546000063419342; - var$6 = $this.$worldObj; - $var10 = $this.$posX; - var$16 = $var10 | 0; - if ($var10 < var$16) - var$16 = var$16 - 1 | 0; - $var10 = $this.$boundingBox.$minY; - $var4 = $var10 | 0; - if ($var10 < $var4) - $var4 = $var4 - 1 | 0; - $var5 = $var4 - 1 | 0; - $var10 = $this.$posZ; - var$13 = $var10 | 0; - if ($var10 < var$13) - var$13 = var$13 - 1 | 0; - $var5 = nms_World_getBlockId(var$6, var$16, $var5, var$13); - if ($var5 > 0) { - nms_Block_$callClinit(); - $par1 = nms_Block_blocksList.data[$var5].$slipperiness * 0.9100000262260437; - } - } - $var10 = $this.$motionX; - $var9 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 3; - continue main; - case 1: - nms_Entity_moveEntity($this, $var10, $var9, var$5); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.800000011920929; - $this.$motionY = $this.$motionY * 0.800000011920929; - $this.$motionZ = $this.$motionZ * 0.800000011920929; - $this.$prevLimbYaw = $this.$limbYaw; - $var10 = $this.$posX - $this.$prevPosX; - $var9 = $this.$posZ - $this.$prevPosZ; - $var7 = jl_Math_sqrt($var10 * $var10 + $var9 * $var9) * 4.0; - if ($var7 > 1.0) - $var7 = 1.0; - $this.$limbYaw = $this.$limbYaw + ($var7 - $this.$limbYaw) * 0.4000000059604645; - $this.$limbSwing = $this.$limbSwing + $this.$limbYaw; - return; - case 2: - nms_Entity_moveEntity($this, $var10, $var9, var$5); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.5; - $this.$motionZ = $this.$motionZ * 0.5; - $this.$prevLimbYaw = $this.$limbYaw; - $var10 = $this.$posX - $this.$prevPosX; - $var9 = $this.$posZ - $this.$prevPosZ; - $var7 = jl_Math_sqrt($var10 * $var10 + $var9 * $var9) * 4.0; - if ($var7 > 1.0) - $var7 = 1.0; - $this.$limbYaw = $this.$limbYaw + ($var7 - $this.$limbYaw) * 0.4000000059604645; - $this.$limbSwing = $this.$limbSwing + $this.$limbYaw; - return; - case 3: - nms_Entity_moveEntity($this, $var10, $var9, var$5); - if ($rt_suspending()) { - break main; - } - $var10 = $this.$motionX; - $var9 = $par1; - $this.$motionX = $var10 * $var9; - $this.$motionY = $this.$motionY * $var9; - $this.$motionZ = $this.$motionZ * $var9; - $this.$prevLimbYaw = $this.$limbYaw; - $var10 = $this.$posX - $this.$prevPosX; - $var9 = $this.$posZ - $this.$prevPosZ; - $var7 = jl_Math_sqrt($var10 * $var10 + $var9 * $var9) * 4.0; - if ($var7 > 1.0) - $var7 = 1.0; - $this.$limbYaw = $this.$limbYaw + ($var7 - $this.$limbYaw) * 0.4000000059604645; - $this.$limbSwing = $this.$limbSwing + $this.$limbYaw; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var10, $var9, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $var3, var$13, $var4, $var5, var$16, $var8, $var7, $ptr); -} -function nms_EntityFlying_isOnLadder($this) { - return 0; -} -function nms_EntityGhast() { - var a = this; nms_EntityFlying.call(a); - a.$courseChangeCooldown = 0; - a.$waypointX = 0.0; - a.$waypointY = 0.0; - a.$waypointZ = 0.0; - a.$targetedEntity = null; - a.$aggroCooldown = 0; - a.$prevAttackCounter = 0; - a.$attackCounter = 0; - a.$explosionStrength = 0; -} -function nms_EntityGhast__init_0() { - var var_0 = new nms_EntityGhast(); - nms_EntityGhast__init_(var_0); - return var_0; -} -function nms_EntityGhast__init_($this) { - nms_EntityLiving__init_0($this); - $this.$courseChangeCooldown = 0; - $this.$targetedEntity = null; - $this.$aggroCooldown = 0; - $this.$prevAttackCounter = 0; - $this.$attackCounter = 0; - $this.$explosionStrength = 1; - nms_Entity_setSize($this, 4.0, 4.0); - $this.$isImmuneToFire = 1; - $this.$experienceValue = 5; -} -function nms_EntityGhast_attackEntityFrom($this, $par1DamageSource, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - if (jl_String_equals($rt_s(1298), $par1DamageSource.$damageType) && $par1DamageSource.$getEntity() instanceof nms_EntityPlayer) { - $par2 = 1000; - $ptr = 2; - continue main; - } - $ptr = 1; - case 1: - $tmp = nms_EntityLiving_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - case 2: - nms_EntityLiving_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par1DamageSource = $par1DamageSource.$getEntity(); - nms_AchievementList_$callClinit(); - $par1DamageSource.$addStat(nms_AchievementList_ghast, 1); - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $ptr); -} -function nms_EntityGhast_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); -} -function nms_EntityGhast_getMaxHealth($this) { - return 10; -} -function nms_EntityGhast_updateEntityActionState($this) { - var $var1, $var3, $var5, $var7, $var21, var$6, $var11, $var13, $var15, $var17, $var20, $var12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var12 = $thread.pop();$var20 = $thread.pop();$var17 = $thread.pop();$var15 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();var$6 = $thread.pop();$var21 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote && !$this.$worldObj.$difficultySetting) { - $ptr = 2; - continue main; - } - $ptr = 1; - case 1: - nms_EntityLiving_despawnEntity($this); - if ($rt_suspending()) { - break main; - } - $this.$prevAttackCounter = $this.$attackCounter; - $var1 = $this.$waypointX - $this.$posX; - $var3 = $this.$waypointY - $this.$posY; - $var5 = $this.$waypointZ - $this.$posZ; - $var7 = $var1 * $var1 + $var3 * $var3 + $var5 * $var5; - if (!($var7 >= 1.0 && $var7 <= 3600.0)) { - $this.$waypointX = $this.$posX + (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * 16.0; - $this.$waypointY = $this.$posY + (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * 16.0; - $this.$waypointZ = $this.$posZ + (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * 16.0; - } - $var21 = $this.$courseChangeCooldown; - $this.$courseChangeCooldown = $var21 - 1 | 0; - if ($var21 <= 0) { - $this.$courseChangeCooldown = $this.$courseChangeCooldown + (ju_Random_nextInt0($this.$rand0, 5) + 2 | 0) | 0; - $var7 = nms_MathHelper_sqrt_double($var7); - if (!nms_EntityGhast_isCourseTraversable($this, $this.$waypointX, $this.$waypointY, $this.$waypointZ, $var7)) { - $this.$waypointX = $this.$posX; - $this.$waypointY = $this.$posY; - $this.$waypointZ = $this.$posZ; - } else { - $this.$motionX = $this.$motionX + $var1 / $var7 * 0.1; - $this.$motionY = $this.$motionY + $var3 / $var7 * 0.1; - $this.$motionZ = $this.$motionZ + $var5 / $var7 * 0.1; - } - } - if ($this.$targetedEntity !== null && $this.$targetedEntity.$isDead) - $this.$targetedEntity = null; - a: { - if ($this.$targetedEntity !== null) { - $var21 = $this.$aggroCooldown; - $this.$aggroCooldown = $var21 - 1 | 0; - if ($var21 > 0) - break a; - } - $this.$targetedEntity = nms_World_getClosestVulnerablePlayerToEntity($this.$worldObj, $this, 100.0); - if ($this.$targetedEntity !== null) - $this.$aggroCooldown = 20; - } - if (!($this.$targetedEntity !== null && nms_Entity_getDistanceSqToEntity($this.$targetedEntity, $this) < 4096.0)) { - var$6 = -jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.1415927410125732; - $this.$rotationYaw = var$6; - $this.$renderYawOffset = var$6; - if ($this.$attackCounter > 0) - $this.$attackCounter = $this.$attackCounter - 1 | 0; - } else { - $var11 = $this.$targetedEntity.$posX - $this.$posX; - $var13 = $this.$targetedEntity.$boundingBox.$minY + $this.$targetedEntity.$height1 / 2.0 - ($this.$posY + $this.$height1 / 2.0); - $var15 = $this.$targetedEntity.$posZ - $this.$posZ; - var$6 = -jl_Math_atan2($var11, $var15) * 180.0 / 3.1415927410125732; - $this.$rotationYaw = var$6; - $this.$renderYawOffset = var$6; - if (nms_EntityLiving_canEntityBeSeen($this, $this.$targetedEntity)) { - if ($this.$attackCounter == 10) { - $var17 = $this.$worldObj; - $var20 = null; - $var21 = 1007; - $var12 = $this.$posX | 0; - var$13 = $this.$posY | 0; - var$14 = $this.$posZ | 0; - var$15 = 0; - $ptr = 3; - continue main; - } - $this.$attackCounter = $this.$attackCounter + 1 | 0; - if ($this.$attackCounter == 20) { - $var17 = $this.$worldObj; - $var20 = null; - $var12 = 1008; - var$13 = $this.$posX | 0; - var$14 = $this.$posY | 0; - var$15 = $this.$posZ | 0; - $var21 = 0; - $ptr = 4; - continue main; - } - } else if ($this.$attackCounter > 0) - $this.$attackCounter = $this.$attackCounter - 1 | 0; - } - if (!$this.$worldObj.$isRemote) { - $var21 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - $var12 = ($this.$attackCounter <= 10 ? 0 : 1) << 24 >> 24; - if ($var21 != $var12) - nms_DataWatcher_updateObject($this.$dataWatcher, 16, jl_Byte_valueOf($var12)); - } - return; - case 2: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - case 3: - nms_World_playAuxSFXAtEntity($var17, $var20, $var21, $var12, var$13, var$14, var$15); - if ($rt_suspending()) { - break main; - } - $this.$attackCounter = $this.$attackCounter + 1 | 0; - if ($this.$attackCounter != 20) { - if (!$this.$worldObj.$isRemote) { - $var21 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - $var12 = ($this.$attackCounter <= 10 ? 0 : 1) << 24 >> 24; - if ($var21 != $var12) - nms_DataWatcher_updateObject($this.$dataWatcher, 16, jl_Byte_valueOf($var12)); - } - return; - } - $var17 = $this.$worldObj; - $var20 = null; - $var12 = 1008; - var$13 = $this.$posX | 0; - var$14 = $this.$posY | 0; - var$15 = $this.$posZ | 0; - $var21 = 0; - $ptr = 4; - case 4: - nms_World_playAuxSFXAtEntity($var17, $var20, $var12, var$13, var$14, var$15, $var21); - if ($rt_suspending()) { - break main; - } - $var17 = nms_EntityLargeFireball__init_0($this.$worldObj, $this, $var11, $var13, $var15); - $var17.$field_92057_e = $this.$explosionStrength; - $var20 = nms_EntityLiving_getLook($this, 1.0); - $var17.$posX = $this.$posX + $var20.$xCoord * 4.0; - $var17.$posY = $this.$posY + $this.$height1 / 2.0 + 0.5; - $var17.$posZ = $this.$posZ + $var20.$zCoord * 4.0; - nms_WorldClient_spawnEntityInWorld($this.$worldObj, $var17); - $this.$attackCounter = (-40); - if (!$this.$worldObj.$isRemote) { - $var21 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - $var12 = ($this.$attackCounter <= 10 ? 0 : 1) << 24 >> 24; - if ($var21 != $var12) - nms_DataWatcher_updateObject($this.$dataWatcher, 16, jl_Byte_valueOf($var12)); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var3, $var5, $var7, $var21, var$6, $var11, $var13, $var15, $var17, $var20, $var12, var$13, var$14, var$15, $ptr); -} -function nms_EntityGhast_isCourseTraversable($this, $par1, $par3, $par5, $par7) { - var $var9, $var11, $var13, var$8, $var15, var$10, var$11, $var16; - $var9 = ($this.$waypointX - $this.$posX) / $par7; - $var11 = ($this.$waypointY - $this.$posY) / $par7; - $var13 = ($this.$waypointZ - $this.$posZ) / $par7; - var$8 = $this.$boundingBox; - $var15 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var15.$initialized) { - var$10 = new nms_AABBPool; - var$11 = new ju_ArrayList; - ju_AbstractList__init_0(var$11); - var$11.$array1 = $rt_createArray(jl_Object, 10); - var$10.$listAABB = var$11; - var$10.$nextPoolIndex = 0; - var$10.$maxPoolIndex = 0; - var$10.$numCleans = 0; - var$10.$maxNumCleans = 300; - var$10.$numEntriesToRemove = 2000; - $var15.$value7 = var$10; - $var15.$initialized = 1; - } - $var15 = nms_AABBPool_getAABB($var15.$value7, var$8.$minX, var$8.$minY, var$8.$minZ, var$8.$maxX, var$8.$maxY, var$8.$maxZ); - $var16 = 1; - while ($var16 < $par7) { - nms_AxisAlignedBB_offset($var15, $var9, $var11, $var13); - if (!(nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, $var15).$size0 ? 0 : 1)) - return 0; - $var16 = $var16 + 1 | 0; - } - return 1; -} -function nms_EntityGhast_getLivingSound($this) { - return $rt_s(1299); -} -function nms_EntityGhast_getHurtSound($this) { - return $rt_s(1300); -} -function nms_EntityGhast_getDeathSound($this) { - return $rt_s(1301); -} -function nms_EntityGhast_getDropItemId($this) { - nms_Item_$callClinit(); - return nms_Item_gunpowder.$itemID; -} -function nms_EntityGhast_dropFewItems($this, $par1, $par2) { - var $var3, var$4, var$5, $var4, var$7, var$8, var$9, var$10; - $var3 = Math.random() * 2.0 | 0; - $par1 = 1 + $par2 | 0; - var$4 = Math.random(); - var$5 = $par1; - $var3 = $var3 + (var$4 * var$5 | 0) | 0; - $var4 = 0; - while ($var4 < $var3) { - nms_Item_$callClinit(); - $par1 = nms_Item_ghastTear.$itemID; - var$7 = new nms_ItemStack; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = $par1; - var$7.$stackSize = 1; - var$7.$itemDamage = 0; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - var$8 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$8.$dataWatcher, 10, var$7); - nms_DataWatcher_setObjectWatched(var$8.$dataWatcher, 10); - var$8.$delayBeforeCanPickup = 10; - var$7 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$7, var$8); - var$9 = var$7.$entityList; - ju_HashMap_putImpl(var$9.$backingMap, var$8, var$9); - if (!$par1) { - var$7 = var$7.$entitySpawnQueue; - ju_HashMap_putImpl(var$7.$backingMap, var$8, var$7); - } - $var4 = $var4 + 1 | 0; - } - $par1 = (Math.random() * 3.0 | 0) + (Math.random() * var$5 | 0) | 0; - $var3 = 0; - while ($var3 < $par1) { - nms_Item_$callClinit(); - $var4 = nms_Item_gunpowder.$itemID; - var$9 = new nms_ItemStack; - var$9.$stackSize = 0; - var$9.$itemFrame = null; - var$9.$itemID0 = $var4; - var$9.$stackSize = 1; - var$9.$itemDamage = 0; - if (var$9.$itemDamage < 0) - var$9.$itemDamage = 0; - var$8 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$8.$dataWatcher, 10, var$9); - nms_DataWatcher_setObjectWatched(var$8.$dataWatcher, 10); - var$8.$delayBeforeCanPickup = 10; - var$9 = $this.$worldObj; - $par2 = nms_World_spawnEntityInWorld(var$9, var$8); - var$10 = var$9.$entityList; - ju_HashMap_putImpl(var$10.$backingMap, var$8, var$10); - if (!$par2) { - var$7 = var$9.$entitySpawnQueue; - ju_HashMap_putImpl(var$7.$backingMap, var$8, var$7); - } - $var3 = $var3 + 1 | 0; - } -} -function nms_EntityGhast_getSoundVolume($this) { - return 10.0; -} -function nms_RenderGhast() { - nms_RenderLiving.call(this); -} -var nms_RenderGhast_entityTexture0 = null; -var nms_RenderGhast_entityTexture1 = null; -function nms_RenderGhast__init_0() { - var var_0 = new nms_RenderGhast(); - nms_RenderGhast__init_(var_0); - return var_0; -} -function nms_RenderGhast__init_($this) { - var var$1; - var$1 = nms_ModelGhast__init_0(); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; -} -function nms_RenderGhast_preRenderGhast($this, $par1EntityGhast, $par2) { - var $var4, $var5, $var6, var$6, var$7, var$8; - $var4 = ($par1EntityGhast.$prevAttackCounter + ($par1EntityGhast.$attackCounter - $par1EntityGhast.$prevAttackCounter | 0) * $par2) / 20.0; - if ($var4 < 0.0) - $var4 = 0.0; - $par2 = 1.0 / ($var4 * $var4 * $var4 * $var4 * $var4 * 2.0 + 1.0); - $var5 = (8.0 + $par2) / 2.0; - $var6 = (8.0 + 1.0 / $par2) / 2.0; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityGhast = nleg_EaglerAdapterGL30_deevis; - $par1EntityGhast.$x = $var6; - $par1EntityGhast.$y = $var5; - $par1EntityGhast.$z = $var6; - $par1EntityGhast = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityGhast, $par1EntityGhast); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$6 = new ji_PrintStream; - var$6.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityGhast = new jl_StringBuilder; - $par1EntityGhast.$buffer = $rt_createCharArray(16); - var$6.$sb = $par1EntityGhast; - var$6.$buffer0 = $rt_createCharArray(32); - var$6.$autoFlush = 0; - $par1EntityGhast = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityGhast, $rt_s(2), $rt_createArray(jl_String, 0)); - var$6.$charset = $par1EntityGhast; - 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); - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; -} -function nms_RenderGhast_preRenderCallback($this, $par1EntityLiving, $par2) { - nms_RenderGhast_preRenderGhast($this, $par1EntityLiving, $par2); -} -function nms_RenderGhast_bindTexture($this, $par1EntityLiving) { - if (nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 16) != 1) - nle_TextureLocation_bindTexture(nms_RenderGhast_entityTexture0); - else - nle_TextureLocation_bindTexture(nms_RenderGhast_entityTexture1); -} -function nms_RenderGhast__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1302); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderGhast_entityTexture0 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1303); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderGhast_entityTexture1 = var$1; -} -function nms_EntityWaterMob() { - nms_EntityCreature.call(this); -} -function nms_EntityWaterMob_canBreatheUnderwater($this) { - return 1; -} -function nms_EntityWaterMob_getTalkInterval($this) { - return 120; -} -function nms_EntityWaterMob_canDespawn($this) { - return 1; -} -function nms_EntityWaterMob_getExperiencePoints($this, $par1EntityPlayer) { - return 1 + (Math.random() * 3.0 | 0) | 0; -} -function nms_EntityWaterMob_onEntityUpdate($this) { - var $var1, 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();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = nms_DataWatcher_getWatchableObjectShort($this.$dataWatcher, 1); - $ptr = 1; - case 1: - nms_EntityLiving_onEntityUpdate($this); - if ($rt_suspending()) { - break main; - } - var$2 = !$this.$isDead && $this.$health > 0 ? 1 : 0; - a: { - if (var$2) { - nms_Material_$callClinit(); - if (!nms_Entity_isInsideOfMaterial($this, nms_Material_water)) { - var$2 = $var1 + (-1) | 0; - var$3 = $this.$dataWatcher; - var$2 = var$2 << 16 >> 16; - var$4 = new jl_Short; - var$4.$value5 = var$2; - nms_DataWatcher_updateObject(var$3, 1, var$4); - if (nms_DataWatcher_getWatchableObjectShort($this.$dataWatcher, 1) != (-20)) - break a; - else { - var$3 = $this.$dataWatcher; - var$4 = new jl_Short; - var$4.$value5 = 0; - nms_DataWatcher_updateObject(var$3, 1, var$4); - var$3 = nms_DamageSource_drown; - var$2 = 2; - $ptr = 2; - continue main; - } - } - } - var$3 = $this.$dataWatcher; - var$4 = new jl_Short; - var$4.$value5 = 300; - nms_DataWatcher_updateObject(var$3, 1, var$4); - } - return; - case 2: - nms_EntityLiving_attackEntityFrom($this, var$3, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, var$4, $ptr); -} -function nms_EntitySquid() { - var a = this; nms_EntityWaterMob.call(a); - a.$squidPitch = 0.0; - a.$prevSquidPitch = 0.0; - a.$squidYaw = 0.0; - a.$prevSquidYaw = 0.0; - a.$field_70867_h = 0.0; - a.$field_70868_i = 0.0; - a.$tentacleAngle = 0.0; - a.$prevTentacleAngle = 0.0; - a.$randomMotionSpeed = 0.0; - a.$field_70864_bA = 0.0; - a.$field_70871_bB = 0.0; - a.$randomMotionVecX = 0.0; - a.$randomMotionVecY = 0.0; - a.$randomMotionVecZ = 0.0; -} -function nms_EntitySquid__init_0() { - var var_0 = new nms_EntitySquid(); - nms_EntitySquid__init_(var_0); - return var_0; -} -function nms_EntitySquid__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$squidPitch = 0.0; - $this.$prevSquidPitch = 0.0; - $this.$squidYaw = 0.0; - $this.$prevSquidYaw = 0.0; - $this.$field_70867_h = 0.0; - $this.$field_70868_i = 0.0; - $this.$tentacleAngle = 0.0; - $this.$prevTentacleAngle = 0.0; - $this.$randomMotionSpeed = 0.0; - $this.$field_70864_bA = 0.0; - $this.$field_70871_bB = 0.0; - $this.$randomMotionVecX = 0.0; - $this.$randomMotionVecY = 0.0; - $this.$randomMotionVecZ = 0.0; - nms_Entity_setSize($this, 0.949999988079071, 0.949999988079071); - $this.$field_70864_bA = 1.0 / (Math.random() + 1.0) * 0.20000000298023224; -} -function nms_EntitySquid_getMaxHealth($this) { - return 10; -} -function nms_EntitySquid_getLivingSound($this) { - return null; -} -function nms_EntitySquid_getHurtSound($this) { - return null; -} -function nms_EntitySquid_getDeathSound($this) { - return null; -} -function nms_EntitySquid_getSoundVolume($this) { - return 0.4000000059604645; -} -function nms_EntitySquid_getDropItemId($this) { - return 0; -} -function nms_EntitySquid_dropFewItems($this, $par1, $par2) { - var $var3, $var4, var$5, var$6, var$7, var$8, var$9; - $par1 = 3 + $par2 | 0; - $var3 = (Math.random() * $par1 | 0) + 1 | 0; - $var4 = 0; - while ($var4 < $var3) { - var$5 = new nms_ItemStack; - nms_Item_$callClinit(); - var$6 = nms_Item_dyePowder.$itemID; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = var$6; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$7 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$7.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$7.$dataWatcher, 10); - var$7.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$5, var$7); - var$8 = var$5.$entityList; - ju_HashMap_putImpl(var$8.$backingMap, var$7, var$8); - if (!$par1) { - var$9 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$9.$backingMap, var$7, var$9); - } - $var4 = $var4 + 1 | 0; - } -} -function nms_EntitySquid_isInWater($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10; - var$1 = $this.$worldObj; - var$2 = $this.$boundingBox; - var$3 = var$2.$minX - 0.0; - var$4 = var$2.$minY + 0.6000000238418579; - var$5 = var$2.$minZ - 0.0; - var$6 = var$2.$maxX + 0.0; - var$7 = var$2.$maxY + (-0.6000000238418579); - var$8 = var$2.$maxZ + 0.0; - var$2 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$2.$initialized) { - var$9 = new nms_AABBPool; - var$10 = new ju_ArrayList; - ju_AbstractList__init_0(var$10); - var$10.$array1 = $rt_createArray(jl_Object, 10); - var$9.$listAABB = var$10; - var$9.$nextPoolIndex = 0; - var$9.$maxPoolIndex = 0; - var$9.$numCleans = 0; - var$9.$maxNumCleans = 300; - var$9.$numEntriesToRemove = 2000; - var$2.$value7 = var$9; - var$2.$initialized = 1; - } - var$10 = nms_AABBPool_getAABB(var$2.$value7, var$3, var$4, var$5, var$6, var$7, var$8); - nms_Material_$callClinit(); - return nms_World_handleMaterialAcceleration(var$1, var$10, nms_Material_water, $this); -} -function nms_EntitySquid_onLivingUpdate($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $var1, var$11, $var1_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var1_0 = $thread.pop();var$11 = $thread.pop();$var1 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $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: - $ptr = 1; - case 1: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - $this.$prevSquidPitch = $this.$squidPitch; - $this.$prevSquidYaw = $this.$squidYaw; - $this.$field_70868_i = $this.$field_70867_h; - $this.$prevTentacleAngle = $this.$tentacleAngle; - $this.$field_70867_h = $this.$field_70867_h + $this.$field_70864_bA; - if ($this.$field_70867_h > 6.2831854820251465) { - $this.$field_70867_h = $this.$field_70867_h - 6.2831854820251465; - if (!(Math.random() * 10.0 | 0)) - $this.$field_70864_bA = 1.0 / (Math.random() + 1.0) * 0.20000000298023224; - } - var$1 = $this.$worldObj; - var$2 = $this.$boundingBox; - var$3 = var$2.$minX - 0.0; - var$4 = var$2.$minY + 0.6000000238418579; - var$5 = var$2.$minZ - 0.0; - var$6 = var$2.$maxX + 0.0; - var$7 = var$2.$maxY + (-0.6000000238418579); - var$8 = var$2.$maxZ + 0.0; - var$2 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$2.$initialized) { - var$9 = new nms_AABBPool; - var$9.$listAABB = ju_ArrayList__init_1(10); - var$9.$nextPoolIndex = 0; - var$9.$maxPoolIndex = 0; - var$9.$numCleans = 0; - var$9.$maxNumCleans = 300; - var$9.$numEntriesToRemove = 2000; - var$2.$value7 = var$9; - var$2.$initialized = 1; - } - var$9 = nms_AABBPool_getAABB(var$2.$value7, var$3, var$4, var$5, var$6, var$7, var$8); - nms_Material_$callClinit(); - if (!nms_World_handleMaterialAcceleration(var$1, var$9, nms_Material_water, $this)) { - $var1 = $this.$field_70867_h; - var$11 = nms_MathHelper_SIN_TABLE.data[($var1 * 10430.3779296875 | 0) & 65535]; - if (var$11 < 0.0) - var$11 = -var$11; - $this.$tentacleAngle = var$11 * 3.1415927410125732 * 0.25; - if (!$this.$worldObj.$isRemote) { - $this.$motionX = 0.0; - $this.$motionY = $this.$motionY - 0.08; - $this.$motionY = $this.$motionY * 0.9800000190734863; - $this.$motionZ = 0.0; - } - $this.$squidPitch = $this.$squidPitch + ((-90.0) - $this.$squidPitch) * 0.02; - } else { - if ($this.$field_70867_h >= 3.1415927410125732) { - $this.$tentacleAngle = 0.0; - $this.$randomMotionSpeed = $this.$randomMotionSpeed * 0.8999999761581421; - $this.$field_70871_bB = $this.$field_70871_bB * 0.9900000095367432; - } else { - $var1 = $this.$field_70867_h / 3.1415927410125732; - var$11 = $var1 * $var1 * 3.1415927410125732; - $this.$tentacleAngle = nms_MathHelper_SIN_TABLE.data[(var$11 * 10430.3779296875 | 0) & 65535] * 3.1415927410125732 * 0.25; - if ($var1 <= 0.75) - $this.$field_70871_bB = $this.$field_70871_bB * 0.800000011920929; - else { - $this.$randomMotionSpeed = 1.0; - $this.$field_70871_bB = 1.0; - } - } - if (!$this.$worldObj.$isRemote) { - $this.$motionX = $this.$randomMotionVecX * $this.$randomMotionSpeed; - $this.$motionY = $this.$randomMotionVecY * $this.$randomMotionSpeed; - $this.$motionZ = $this.$randomMotionVecZ * $this.$randomMotionSpeed; - } - $var1_0 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$renderYawOffset = $this.$renderYawOffset + ( -jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.1415927410125732 - $this.$renderYawOffset) * 0.10000000149011612; - $this.$rotationYaw = $this.$renderYawOffset; - $this.$squidYaw = $this.$squidYaw + 3.1415927410125732 * $this.$field_70871_bB * 1.5; - $this.$squidPitch = $this.$squidPitch + ( -jl_Math_atan2($var1_0, $this.$motionY) * 180.0 / 3.1415927410125732 - $this.$squidPitch) * 0.10000000149011612; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $var1, var$11, $var1_0, $ptr); -} -function nms_EntitySquid_moveEntityWithHeading($this, $par1, $par2) { - var var$3, 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();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, $ptr); -} -function nms_EntitySquid_updateEntityActionState($this) { - var $var1, 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();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $this.$entityAge = $this.$entityAge + 1 | 0; - if ($this.$entityAge > 100) { - $this.$randomMotionVecZ = 0.0; - $this.$randomMotionVecY = 0.0; - $this.$randomMotionVecX = 0.0; - } else { - if (Math.random() * 50.0 | 0 && $this.$inWater) { - if ($this.$randomMotionVecX !== 0.0) - break a; - if ($this.$randomMotionVecY !== 0.0) - break a; - if ($this.$randomMotionVecZ !== 0.0) - break a; - } - $var1 = Math.random() * 3.1415927410125732 * 2.0; - var$2 = nms_MathHelper_SIN_TABLE.data; - var$3 = $var1 * 10430.3779296875; - $this.$randomMotionVecX = var$2[(var$3 + 16384.0 | 0) & 65535] * 0.20000000298023224; - $this.$randomMotionVecY = (-0.10000000149011612) + Math.random() * 0.20000000298023224; - $this.$randomMotionVecZ = nms_MathHelper_SIN_TABLE.data[(var$3 | 0) & 65535] * 0.20000000298023224; - } - } - $ptr = 1; - case 1: - nms_EntityLiving_despawnEntity($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, $ptr); -} -function nms_RenderSquid() { - nms_RenderLiving.call(this); -} -var nms_RenderSquid_entityTexture = null; -function nms_RenderSquid__init_(var_0, var_1) { - var var_2 = new nms_RenderSquid(); - nms_RenderSquid__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_RenderSquid__init_0($this, $par1ModelBase, $par2) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = $par1ModelBase; - $this.$shadowSize = $par2; -} -function nms_RenderSquid_renderLivingSquid($this, $par1EntitySquid, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntitySquid = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntitySquid, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntitySquid, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderSquid_rotateSquidsCorpse($this, $par1EntitySquid, $par2, $par3, $par4) { - var $var5, $var6, var$7, var$8, var$9; - $var5 = $par1EntitySquid.$prevSquidPitch + ($par1EntitySquid.$squidPitch - $par1EntitySquid.$prevSquidPitch) * $par4; - $var6 = $par1EntitySquid.$prevSquidYaw + ($par1EntitySquid.$squidYaw - $par1EntitySquid.$prevSquidYaw) * $par4; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntitySquid = nleg_EaglerAdapterGL30_deevis; - $par1EntitySquid.$x = 0.0; - $par1EntitySquid.$y = 0.5; - $par1EntitySquid.$z = 0.0; - $par1EntitySquid = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntitySquid, $par1EntitySquid); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$7 = new ji_PrintStream; - var$7.$out = new jl_ConsoleOutputStreamStderr; - $par1EntitySquid = new jl_StringBuilder; - $par1EntitySquid.$buffer = $rt_createCharArray(16); - var$7.$sb = $par1EntitySquid; - var$7.$buffer0 = $rt_createCharArray(32); - var$7.$autoFlush = 0; - $par1EntitySquid = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntitySquid, $rt_s(2), $rt_createArray(jl_String, 0)); - var$7.$charset = $par1EntitySquid; - jl_System_errCache = var$7; - } - var$8 = jl_System_errCache; - var$7 = var$8.$sb; - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(220)); - var$9 = var$7.$length; - jl_AbstractStringBuilder_insertSpace(var$7, var$9, var$9 + 1 | 0); - var$7.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - nleg_EaglerAdapterGL30_glRotatef(180.0 - $par3, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var5, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var6, 0.0, 1.0, 0.0); - $par1EntitySquid = nleg_EaglerAdapterGL30_deevis; - $par1EntitySquid.$x = 0.0; - $par1EntitySquid.$y = (-1.2000000476837158); - $par1EntitySquid.$z = 0.0; - $par1EntitySquid = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntitySquid, $par1EntitySquid); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$7 = new ji_PrintStream; - var$7.$out = new jl_ConsoleOutputStreamStderr; - $par1EntitySquid = new jl_StringBuilder; - $par1EntitySquid.$buffer = $rt_createCharArray(16); - var$7.$sb = $par1EntitySquid; - var$7.$buffer0 = $rt_createCharArray(32); - var$7.$autoFlush = 0; - $par1EntitySquid = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntitySquid, $rt_s(2), $rt_createArray(jl_String, 0)); - var$7.$charset = $par1EntitySquid; - jl_System_errCache = var$7; - } - var$8 = jl_System_errCache; - var$7 = var$8.$sb; - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(220)); - var$9 = var$7.$length; - jl_AbstractStringBuilder_insertSpace(var$7, var$9, var$9 + 1 | 0); - var$7.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } -} -function nms_RenderSquid_handleRotationFloat($this, $par1EntitySquid, $par2) { - return $par1EntitySquid.$prevTentacleAngle + ($par1EntitySquid.$tentacleAngle - $par1EntitySquid.$prevTentacleAngle) * $par2; -} -function nms_RenderSquid_handleRotationFloat0($this, $par1EntityLiving, $par2) { - $par1EntityLiving = $par1EntityLiving; - return $par1EntityLiving.$prevTentacleAngle + ($par1EntityLiving.$tentacleAngle - $par1EntityLiving.$prevTentacleAngle) * $par2; -} -function nms_RenderSquid_rotateCorpse($this, $par1EntityLiving, $par2, $par3, $par4) { - nms_RenderSquid_rotateSquidsCorpse($this, $par1EntityLiving, $par2, $par3, $par4); -} -function nms_RenderSquid_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderSquid_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderSquid_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderSquid_entityTexture); -} -function nms_RenderSquid__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1304); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSquid_entityTexture = var$1; -} -function nms_ModelSquid() { - var a = this; nms_ModelBase.call(a); - a.$squidBody = null; - a.$squidTentacles = null; -} -function nms_ModelSquid__init_0() { - var var_0 = new nms_ModelSquid(); - nms_ModelSquid__init_(var_0); - return var_0; -} -function nms_ModelSquid__init_($this) { - var var$1, $var2, var$3, var$4, var$5, $var3, $var5, $var6, var$9; - nms_ModelBase__init_0($this); - $this.$squidTentacles = $rt_createArray(nms_ModelRenderer, 8); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - $this.$squidBody = var$1; - var$1 = $this.$squidBody; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-6.0), (-8.0), (-6.0), 12, 16, 12, 0.0)); - var$1 = $this.$squidBody; - var$1.$rotationPointY = var$1.$rotationPointY + 8.0; - $var2 = 0; - var$3 = null; - while ($var2 < $this.$squidTentacles.data.length) { - var$4 = $this.$squidTentacles.data; - var$1 = nms_ModelRenderer__init_($this, var$3); - var$1.$textureOffsetX0 = 48; - var$1.$textureOffsetY0 = 0; - var$4[$var2] = var$1; - var$5 = $var2 * 3.141592653589793; - $var3 = var$5 * 2.0 / $this.$squidTentacles.data.length; - $var5 = jl_Math_cos($var3) * 5.0; - $var6 = jl_Math_sin($var3) * 5.0; - var$9 = $this.$squidTentacles.data[$var2]; - ju_ArrayList_add(var$9.$cubeList, nms_ModelBox__init_(var$9, var$9.$textureOffsetX0, var$9.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, 18, 2, 0.0)); - $this.$squidTentacles.data[$var2].$rotationPointX = $var5; - $this.$squidTentacles.data[$var2].$rotationPointZ = $var6; - $this.$squidTentacles.data[$var2].$rotationPointY = 15.0; - $var3 = var$5 * (-2.0) / $this.$squidTentacles.data.length + 1.5707963267948966; - $this.$squidTentacles.data[$var2].$rotateAngleY = $var3; - $var2 = $var2 + 1 | 0; - } -} -function nms_ModelSquid_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8, $var9, $var10; - $var8 = $this.$squidTentacles.data; - $var9 = $var8.length; - $var10 = 0; - while ($var10 < $var9) { - $var8[$var10].$rotateAngleX = $par3; - $var10 = $var10 + 1 | 0; - } -} -function nms_ModelSquid_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, var$9, var$10, $var8; - var$8 = $this.$squidTentacles.data; - var$9 = var$8.length; - var$10 = 0; - while (var$10 < var$9) { - var$8[var$10].$rotateAngleX = $par4; - var$10 = var$10 + 1 | 0; - } - nms_ModelRenderer_render($this.$squidBody, $par7); - $var8 = 0; - while ($var8 < $this.$squidTentacles.data.length) { - nms_ModelRenderer_render($this.$squidTentacles.data[$var8], $par7); - $var8 = $var8 + 1 | 0; - } -} -function nms_INpc() { -} -function nms_IMerchant() { -} -function nms_EntityVillager() { - var a = this; nms_EntityAgeable.call(a); - a.$randomTickDivider = 0; - a.$isMating = 0; - a.$isPlaying = 0; - a.$buyingPlayer = null; - a.$buyingList = null; - a.$timeUntilReset = 0; - a.$needsInitilization = 0; - a.$wealth = 0; - a.$lastBuyingPlayer = null; - a.$field_82190_bM = 0; - a.$field_82191_bN = 0.0; -} -var nms_EntityVillager_villagerStockList = null; -var nms_EntityVillager_blacksmithSellingList = null; -function nms_EntityVillager_$callClinit() { - nms_EntityVillager_$callClinit = $rt_eraseClinit(nms_EntityVillager); - nms_EntityVillager__clinit_(); -} -function nms_EntityVillager__init_0() { - var var_0 = new nms_EntityVillager(); - nms_EntityVillager__init_(var_0); - return var_0; -} -function nms_EntityVillager__init_($this) { - nms_EntityVillager_$callClinit(); - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$field_98056_d = (-1.0); - $this.$randomTickDivider = 0; - $this.$isMating = 0; - $this.$isPlaying = 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 16, jl_Integer_valueOf(0)); - $this.$moveSpeed = 0.5; - nms_EntityAgeable_setSize($this, 0.6000000238418579, 1.7999999523162842); -} -function nms_EntityVillager_isAIEnabled($this) { - return 1; -} -function nms_EntityVillager_updateAITick($this) { - var var$1, $var2, $var3, var$4; - var$1 = $this.$buyingPlayer === null ? 0 : 1; - if (!var$1 && $this.$timeUntilReset > 0) { - $this.$timeUntilReset = $this.$timeUntilReset - 1 | 0; - if ($this.$timeUntilReset <= 0) { - if ($this.$needsInitilization) { - a: { - if ($this.$buyingList.$size0 > 1) { - $var2 = $this.$buyingList; - $var3 = new ju_AbstractList$1; - $var3.$this$0 = $var2; - $var3.$modCount = $var3.$this$0.$modCount0; - $var3.$size1 = $var3.$this$0.$size2(); - $var3.$removeIndex = (-1); - while (true) { - if (!($var3.$index >= $var3.$size1 ? 0 : 1)) - break a; - $var2 = ju_AbstractList$1_next($var3); - if ($var2.$toolUses < $var2.$maxTradeUses ? 0 : 1) { - var$1 = ((Math.random() * 6.0 | 0) + (Math.random() * 6.0 | 0) | 0) + 2 | 0; - $var2.$maxTradeUses = $var2.$maxTradeUses + var$1 | 0; - } - } - } - } - nms_EntityVillager_addDefaultEquipmentAndRecipies($this, 1); - $this.$needsInitilization = 0; - } - var$4 = new nms_PotionEffect; - var$4.$potionID = nms_Potion_regeneration.$id3; - var$4.$duration = 200; - var$4.$amplifier = 0; - var$4.$isAmbient = 0; - nms_EntityLiving_addPotionEffect($this, var$4); - } - } -} -function nms_EntityVillager_interact($this, $par1EntityPlayer) { - var $var2, $var3, 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();$var3 = $thread.pop();$var2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var2 !== null) { - $var3 = $var2.$itemID0; - nms_Item_$callClinit(); - if ($var3 == nms_Item_monsterPlacer.$itemID) { - $var3 = 1; - break a; - } - } - $var3 = 0; - } - if (!$var3 && (!$this.$isDead && $this.$health > 0 ? 1 : 0) && !($this.$buyingPlayer === null ? 0 : 1) && !(nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 12) >= 0 ? 0 : 1)) { - if ($this.$worldObj.$isRemote) - return 1; - $this.$buyingPlayer = $par1EntityPlayer; - var$4 = nms_DataWatcher_getWatchableObjectString($this.$dataWatcher, 5); - var$5 = $par1EntityPlayer.$mc3; - $var2 = nms_GuiMerchant__init_($par1EntityPlayer.$inventory, $this, $par1EntityPlayer.$worldObj, var$4); - $ptr = 2; - continue main; - } - $ptr = 1; - case 1: - $tmp = nms_EntityAgeable_interact($this, $par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - $var3 = $tmp; - return $var3; - case 2: - nmc_Minecraft_displayGuiScreen(var$5, $var2); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $var2, $var3, var$4, var$5, $ptr); -} -function nms_EntityVillager_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 0; - nms_DataWatcher_addObject(var$1, 12, var$2); - nms_DataWatcher_addObject($this.$dataWatcher, 16, jl_Integer_valueOf(0)); -} -function nms_EntityVillager_getMaxHealth($this) { - return 20; -} -function nms_EntityVillager_canDespawn($this) { - return 0; -} -function nms_EntityVillager_getLivingSound($this) { - return $rt_s(1305); -} -function nms_EntityVillager_getHurtSound($this) { - return $rt_s(1306); -} -function nms_EntityVillager_getDeathSound($this) { - return $rt_s(1307); -} -function nms_EntityVillager_setProfession($this, $par1) { - nms_DataWatcher_updateObject($this.$dataWatcher, 16, jl_Integer_valueOf($par1)); -} -function nms_EntityVillager_getProfession($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 16); -} -function nms_EntityVillager_setRevengeTarget($this, $par1EntityLiving) { - $this.$entityLivingToAttack = $par1EntityLiving; - $this.$revengeTimer = $this.$entityLivingToAttack === null ? 0 : 100; -} -function nms_EntityVillager_onDeath($this, $par1DamageSource) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_onDeath($this, $par1DamageSource); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $ptr); -} -function nms_EntityVillager_setCustomer($this, $par1EntityPlayer) { - $this.$buyingPlayer = $par1EntityPlayer; -} -function nms_EntityVillager_getCustomer($this) { - return $this.$buyingPlayer; -} -function nms_EntityVillager_isTrading($this) { - return $this.$buyingPlayer === null ? 0 : 1; -} -function nms_EntityVillager_useRecipe($this, $par1MerchantRecipe) { - var var$2, var$3; - $par1MerchantRecipe.$toolUses = $par1MerchantRecipe.$toolUses + 1 | 0; - var$2 = $this.$buyingList; - var$3 = $this.$buyingList.$size0 - 1 | 0; - if (var$3 >= 0 && var$3 < var$2.$size0) { - if (nms_MerchantRecipe_hasSameIDsAs($par1MerchantRecipe, var$2.$array1.data[var$3])) { - $this.$timeUntilReset = 40; - $this.$needsInitilization = 1; - if ($this.$buyingPlayer === null) - $this.$lastBuyingPlayer = null; - else - $this.$lastBuyingPlayer = $this.$buyingPlayer.$username0; - } - var$3 = $par1MerchantRecipe.$itemToBuy.$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_emerald.$itemID) - $this.$wealth = $this.$wealth + $par1MerchantRecipe.$itemToBuy.$stackSize | 0; - return; - } - $par1MerchantRecipe = new jl_IndexOutOfBoundsException; - $par1MerchantRecipe.$suppressionEnabled = 1; - $par1MerchantRecipe.$writableStackTrace = 1; - $rt_throw($par1MerchantRecipe); -} -function nms_EntityVillager_getRecipes($this, $par1EntityPlayer) { - if ($this.$buyingList === null) - nms_EntityVillager_addDefaultEquipmentAndRecipies($this, 1); - return $this.$buyingList; -} -function nms_EntityVillager_func_82188_j($this, $par1) { - var $var2; - $var2 = $par1 + $this.$field_82191_bN; - if ($var2 > 0.8999999761581421) - $var2 = 0.8999999761581421 - ($var2 - 0.8999999761581421); - return $var2; -} -function nms_EntityVillager_addDefaultEquipmentAndRecipies($this, $par1) { - var $var2, $var8, $var10, $var11, $var6, $var3, $var5, $var7, $var9; - if ($this.$buyingList === null) - $this.$field_82191_bN = 0.0; - else - $this.$field_82191_bN = nms_MathHelper_sqrt_float(ju_ArrayList_size($this.$buyingList)) * 0.20000000298023224; - a: { - b: { - $var2 = nms_MerchantRecipeList__init_0(); - switch (nms_EntityVillager_getProfession($this)) { - case 0: - break b; - case 1: - nms_Item_$callClinit(); - nms_EntityVillager_addMerchantItem($var2, nms_Item_paper.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.800000011920929)); - nms_EntityVillager_addMerchantItem($var2, nms_Item_book.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.800000011920929)); - nms_EntityVillager_addMerchantItem($var2, nms_Item_writtenBook.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_Block_$callClinit(); - nms_EntityVillager_addBlacksmithItem($var2, nms_Block_bookShelf.$blockID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.800000011920929)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Block_glass.$blockID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_compass.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_pocketSundial.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - if (ju_Random_nextFloat($this.$rand0) >= nms_EntityVillager_func_82188_j($this, 0.07000000029802322)) - break a; - nms_Enchantment_$callClinit(); - $var8 = nms_Enchantment_field_92090_c.data[ju_Random_nextInt0($this.$rand0, nms_Enchantment_field_92090_c.data.length)]; - $var10 = nms_MathHelper_getRandomIntegerInRange($this.$rand0, nms_Enchantment_getMinLevel($var8), $var8.$getMaxLevel()); - $var11 = nms_ItemEnchantedBook_func_92111_a(nms_Item_enchantedBook, nms_EnchantmentData__init_($var8, $var10)); - $var6 = (2 + ju_Random_nextInt0($this.$rand0, 5 + ($var10 * 10 | 0) | 0) | 0) + (3 * $var10 | 0) | 0; - ju_ArrayList_add($var2, nms_MerchantRecipe__init_(nms_ItemStack__init_2(nms_Item_book), nms_ItemStack__init_3(nms_Item_emerald, $var6), $var11)); - break a; - case 2: - nms_Item_$callClinit(); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_eyeOfEnder.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_expBottle.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_redstone.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.4000000059604645)); - nms_Block_$callClinit(); - nms_EntityVillager_addBlacksmithItem($var2, nms_Block_glowStone.$blockID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - $var3 = $rt_createIntArray(8).data; - $var3[0] = nms_Item_swordIron.$itemID; - $var3[1] = nms_Item_swordDiamond.$itemID; - $var3[2] = nms_Item_plateIron.$itemID; - $var3[3] = nms_Item_plateDiamond.$itemID; - $var3[4] = nms_Item_axeIron.$itemID; - $var3[5] = nms_Item_axeDiamond.$itemID; - $var3[6] = nms_Item_pickaxeIron.$itemID; - $var3[7] = nms_Item_pickaxeDiamond.$itemID; - $var5 = $var3.length; - $var6 = 0; - while ($var6 < $var5) { - $var7 = $var3[$var6]; - if (ju_Random_nextFloat($this.$rand0) < nms_EntityVillager_func_82188_j($this, 0.05000000074505806)) - ju_ArrayList_add($var2, nms_MerchantRecipe__init_(nms_ItemStack__init_4($var7, 1, 0), nms_ItemStack__init_5(nms_Item_emerald, 2 + ju_Random_nextInt0($this.$rand0, 3) | 0, 0), nms_EnchantmentHelper_addRandomEnchantment($this.$rand0, nms_ItemStack__init_4($var7, 1, 0), 5 + ju_Random_nextInt0($this.$rand0, 15) | 0))); - $var6 = $var6 + 1 | 0; - } - break a; - case 3: - nms_Item_$callClinit(); - nms_EntityVillager_addMerchantItem($var2, nms_Item_coal.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.699999988079071)); - nms_EntityVillager_addMerchantItem($var2, nms_Item_ingotIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addMerchantItem($var2, nms_Item_ingotGold.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addMerchantItem($var2, nms_Item_diamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_swordIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_swordDiamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_axeIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_axeDiamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_pickaxeIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_pickaxeDiamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_shovelIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_shovelDiamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_hoeIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_hoeDiamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_bootsIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_bootsDiamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_helmetIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_helmetDiamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_plateIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_plateDiamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_legsIron.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_legsDiamond.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.20000000298023224)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_bootsChain.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.10000000149011612)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_helmetChain.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.10000000149011612)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_plateChain.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.10000000149011612)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_legsChain.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.10000000149011612)); - break a; - case 4: - break; - default: - break a; - } - nms_Item_$callClinit(); - nms_EntityVillager_addMerchantItem($var2, nms_Item_coal.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.699999988079071)); - nms_EntityVillager_addMerchantItem($var2, nms_Item_porkRaw.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addMerchantItem($var2, nms_Item_beefRaw.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_saddle.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.10000000149011612)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_plateLeather.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_bootsLeather.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_helmetLeather.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_legsLeather.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_porkCooked.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_beefCooked.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - break a; - } - nms_Item_$callClinit(); - nms_EntityVillager_addMerchantItem($var2, nms_Item_wheat.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.8999999761581421)); - nms_Block_$callClinit(); - nms_EntityVillager_addMerchantItem($var2, nms_Block_cloth.$blockID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addMerchantItem($var2, nms_Item_chickenRaw.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - nms_EntityVillager_addMerchantItem($var2, nms_Item_fishCooked.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.4000000059604645)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_bread.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.8999999761581421)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_melon.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_appleRed.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_cookie.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_shears.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_flintAndSteel.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_chickenCooked.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.30000001192092896)); - nms_EntityVillager_addBlacksmithItem($var2, nms_Item_arrow.$itemID, $this.$rand0, nms_EntityVillager_func_82188_j($this, 0.5)); - if (ju_Random_nextFloat($this.$rand0) < nms_EntityVillager_func_82188_j($this, 0.5)) - ju_ArrayList_add($var2, nms_MerchantRecipe__init_(nms_ItemStack__init_6(nms_Block_gravel, 10), nms_ItemStack__init_2(nms_Item_emerald), nms_ItemStack__init_4(nms_Item_flint.$itemID, 4 + ju_Random_nextInt0($this.$rand0, 2) | 0, 0))); - } - if (ju_AbstractCollection_isEmpty($var2)) { - nms_Item_$callClinit(); - nms_EntityVillager_addMerchantItem($var2, nms_Item_ingotGold.$itemID, $this.$rand0, 1.0); - } - ju_Collections_shuffle($var2); - if ($this.$buyingList === null) - $this.$buyingList = nms_MerchantRecipeList__init_0(); - $var9 = 0; - while ($var9 < $par1 && $var9 < ju_ArrayList_size($var2)) { - nms_MerchantRecipeList_addToListWithCheck($this.$buyingList, ju_ArrayList_get($var2, $var9)); - $var9 = $var9 + 1 | 0; - } -} -function nms_EntityVillager_setRecipes($this, $par1MerchantRecipeList) { - return; -} -function nms_EntityVillager_addMerchantItem($par0MerchantRecipeList, $par1, $par2Random, $par3) { - var var$5, var$6, var$7, var$8, var$9; - nms_EntityVillager_$callClinit(); - if (Math.random() < $par3) { - var$5 = new nms_MerchantRecipe; - var$6 = new nms_ItemStack; - var$7 = nms_EntityVillager_getRandomCountForItem($par1, $par2Random); - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = $par1; - var$6.$stackSize = var$7; - var$6.$itemDamage = 0; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - nms_Item_$callClinit(); - $par2Random = nms_Item_emerald; - var$8 = new nms_ItemStack; - var$9 = $par2Random.$itemID; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = var$9; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - $par2Random = null; - var$5.$itemToBuy = var$6; - var$5.$secondItemToBuy = $par2Random; - var$5.$itemToSell = var$8; - var$5.$maxTradeUses = 7; - ju_ArrayList_add($par0MerchantRecipeList, var$5); - } -} -function nms_EntityVillager_getRandomCountForItem($par0, $par1Random) { - var $var2, var$4, var$5; - nms_EntityVillager_$callClinit(); - $par1Random = nms_EntityVillager_villagerStockList; - $var2 = jl_Integer_valueOf($par0); - if ($var2 !== null) { - var$4 = jl_Integer_hashCode($var2); - $par1Random = ju_HashMap_findNonNullKeyEntry($par1Random, $var2, var$4 & ($par1Random.$elementData.data.length - 1 | 0), var$4); - } else { - $par1Random = $par1Random.$elementData.data[0]; - while ($par1Random !== null && $par1Random.$key !== null) { - $par1Random = $par1Random.$next1; - } - } - $var2 = $par1Random === null ? null : $par1Random.$value0; - if ($var2 === null) - $par0 = 1; - else if ($var2.$first.$value >= $var2.$second.$value) - $par0 = $var2.$first.$value; - else { - var$5 = $var2.$first.$value; - $par0 = $var2.$second.$value - $var2.$first.$value | 0; - $par0 = var$5 + (Math.random() * $par0 | 0) | 0; - } - return $par0; -} -function nms_EntityVillager_addBlacksmithItem($par0MerchantRecipeList, $par1, $par2Random, $par3) { - var $var4, $var5, var$7, $var6, var$9, var$10, var$11; - nms_EntityVillager_$callClinit(); - if (Math.random() < $par3) { - $var4 = nms_EntityVillager_getRandomCountForBlacksmithItem($par1, $par2Random); - if ($var4 >= 0) { - $var5 = new nms_ItemStack; - nms_Item_$callClinit(); - var$7 = nms_Item_emerald.$itemID; - $var5.$stackSize = 0; - $var5.$itemFrame = null; - $var5.$itemID0 = var$7; - $var5.$stackSize = $var4; - $var5.$itemDamage = 0; - if ($var5.$itemDamage < 0) - $var5.$itemDamage = 0; - $var6 = new nms_ItemStack; - $var6.$stackSize = 0; - $var6.$itemFrame = null; - $var6.$itemID0 = $par1; - $var6.$stackSize = 1; - $var6.$itemDamage = 0; - if ($var6.$itemDamage < 0) - $var6.$itemDamage = 0; - } else { - $var5 = new nms_ItemStack; - nms_Item_$callClinit(); - var$9 = nms_Item_emerald.$itemID; - $var5.$stackSize = 0; - $var5.$itemFrame = null; - $var5.$itemID0 = var$9; - $var5.$stackSize = 1; - $var5.$itemDamage = 0; - if ($var5.$itemDamage < 0) - $var5.$itemDamage = 0; - $var6 = new nms_ItemStack; - var$10 = -$var4; - $var6.$stackSize = 0; - $var6.$itemFrame = null; - $var6.$itemID0 = $par1; - $var6.$stackSize = var$10; - $var6.$itemDamage = 0; - if ($var6.$itemDamage < 0) - $var6.$itemDamage = 0; - } - $par2Random = new nms_MerchantRecipe; - var$11 = null; - $par2Random.$itemToBuy = $var5; - $par2Random.$secondItemToBuy = var$11; - $par2Random.$itemToSell = $var6; - $par2Random.$maxTradeUses = 7; - ju_ArrayList_add($par0MerchantRecipeList, $par2Random); - } -} -function nms_EntityVillager_getRandomCountForBlacksmithItem($par0, $par1Random) { - var $var2, var$4, var$5; - nms_EntityVillager_$callClinit(); - $par1Random = nms_EntityVillager_blacksmithSellingList; - $var2 = jl_Integer_valueOf($par0); - if ($var2 !== null) { - var$4 = jl_Integer_hashCode($var2); - $par1Random = ju_HashMap_findNonNullKeyEntry($par1Random, $var2, var$4 & ($par1Random.$elementData.data.length - 1 | 0), var$4); - } else { - $par1Random = $par1Random.$elementData.data[0]; - while ($par1Random !== null && $par1Random.$key !== null) { - $par1Random = $par1Random.$next1; - } - } - $var2 = $par1Random === null ? null : $par1Random.$value0; - if ($var2 === null) - $par0 = 1; - else if ($var2.$first.$value >= $var2.$second.$value) - $par0 = $var2.$first.$value; - else { - var$5 = $var2.$first.$value; - $par0 = $var2.$second.$value - $var2.$first.$value | 0; - $par0 = var$5 + (Math.random() * $par0 | 0) | 0; - } - return $par0; -} -function nms_EntityVillager_handleHealthUpdate($this, $par1) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 == 12) { - var$2 = $rt_s(868); - $ptr = 1; - continue main; - } - if ($par1 == 13) { - var$2 = $rt_s(869); - $ptr = 2; - continue main; - } - if ($par1 != 14) { - $ptr = 3; - continue main; - } - var$2 = $rt_s(870); - $ptr = 4; - continue main; - case 1: - nms_EntityVillager_generateRandomParticles($this, var$2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_EntityVillager_generateRandomParticles($this, var$2); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_EntityLiving_handleHealthUpdate($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_EntityVillager_generateRandomParticles($this, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, $ptr); -} -function nms_EntityVillager_generateRandomParticles($this, $par1Str) { - var $var2, $var3, $var5, $var7, 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();$var7 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1Str = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = 0; - while ($var2 < 5) { - $var3 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var5 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var7 = ju_Random_nextGaussian($this.$rand0) * 0.02; - var$6 = $this.$worldObj; - var$7 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$8 = $this.$posY + 1.0 + Math.random() * $this.$height1; - var$9 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$10 = 0; - if (var$10 < var$6.$worldAccesses.$size0) { - var$11 = var$6.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - $ptr = 1; - continue main; - } - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $var2 = $var2 + 1 | 0; - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$11, $par1Str, var$7, var$8, var$9, $var3, $var5, $var7); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - while (true) { - if (var$10 < var$6.$worldAccesses.$size0) { - var$11 = var$6.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - continue main; - } - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $var2 = $var2 + 1 | 0; - if ($var2 >= 5) - break; - $var3 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var5 = ju_Random_nextGaussian($this.$rand0) * 0.02; - $var7 = ju_Random_nextGaussian($this.$rand0) * 0.02; - var$6 = $this.$worldObj; - var$7 = $this.$posX + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$8 = $this.$posY + 1.0 + Math.random() * $this.$height1; - var$9 = $this.$posZ + Math.random() * $this.$width1 * 2.0 - $this.$width1; - var$10 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Str, $var2, $var3, $var5, $var7, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_EntityVillager_initCreature($this) { - var var$1; - var$1 = Math.random() * 5.0 | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 16, jl_Integer_valueOf(var$1)); -} -function nms_EntityVillager_func_82187_q($this) { - $this.$field_82190_bM = 1; -} -function nms_EntityVillager_func_90012_b($this, $par1EntityAgeable) { - var $var2, var$3; - $var2 = new nms_EntityVillager; - nms_EntityVillager_$callClinit(); - nms_EntityLiving__init_0($var2); - $var2.$hasAttacked = 0; - $var2.$fleeingTick = 0; - $var2.$field_98056_d = (-1.0); - $var2.$randomTickDivider = 0; - $var2.$isMating = 0; - $var2.$isPlaying = 0; - nms_DataWatcher_updateObject($var2.$dataWatcher, 16, jl_Integer_valueOf(0)); - $var2.$moveSpeed = 0.5; - nms_EntityAgeable_setSize($var2, 0.6000000238418579, 1.7999999523162842); - $par1EntityAgeable = $this.$worldObj; - $var2.$worldObj = $par1EntityAgeable; - $var2.$dimension = $par1EntityAgeable.$provider.$dimensionId; - var$3 = Math.random() * 5.0 | 0; - nms_DataWatcher_updateObject($var2.$dataWatcher, 16, jl_Integer_valueOf(var$3)); - return $var2; -} -function nms_EntityVillager_createChild($this, $par1EntityAgeable) { - var var$2, var$3; - $par1EntityAgeable = new nms_EntityVillager; - nms_EntityVillager_$callClinit(); - nms_EntityLiving__init_0($par1EntityAgeable); - $par1EntityAgeable.$hasAttacked = 0; - $par1EntityAgeable.$fleeingTick = 0; - $par1EntityAgeable.$field_98056_d = (-1.0); - $par1EntityAgeable.$randomTickDivider = 0; - $par1EntityAgeable.$isMating = 0; - $par1EntityAgeable.$isPlaying = 0; - nms_DataWatcher_updateObject($par1EntityAgeable.$dataWatcher, 16, jl_Integer_valueOf(0)); - $par1EntityAgeable.$moveSpeed = 0.5; - nms_EntityAgeable_setSize($par1EntityAgeable, 0.6000000238418579, 1.7999999523162842); - var$2 = $this.$worldObj; - $par1EntityAgeable.$worldObj = var$2; - $par1EntityAgeable.$dimension = var$2.$provider.$dimensionId; - var$3 = Math.random() * 5.0 | 0; - nms_DataWatcher_updateObject($par1EntityAgeable.$dataWatcher, 16, jl_Integer_valueOf(var$3)); - return $par1EntityAgeable; -} -function nms_EntityVillager__clinit_() { - var var$1, var$2; - nms_EntityVillager_villagerStockList = ju_HashMap__init_0(); - nms_EntityVillager_blacksmithSellingList = ju_HashMap__init_0(); - var$1 = nms_EntityVillager_villagerStockList; - nms_Item_$callClinit(); - ju_HashMap_put(var$1, jl_Integer_valueOf(nms_Item_coal.$itemID), nms_Tuple__init_(jl_Integer_valueOf(16), jl_Integer_valueOf(24))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_ingotIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(8), jl_Integer_valueOf(10))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_ingotGold.$itemID), nms_Tuple__init_(jl_Integer_valueOf(8), jl_Integer_valueOf(10))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_diamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(4), jl_Integer_valueOf(6))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_paper.$itemID), nms_Tuple__init_(jl_Integer_valueOf(24), jl_Integer_valueOf(36))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_book.$itemID), nms_Tuple__init_(jl_Integer_valueOf(11), jl_Integer_valueOf(13))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_writtenBook.$itemID), nms_Tuple__init_(jl_Integer_valueOf(1), jl_Integer_valueOf(1))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_enderPearl.$itemID), nms_Tuple__init_(jl_Integer_valueOf(3), jl_Integer_valueOf(4))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_eyeOfEnder.$itemID), nms_Tuple__init_(jl_Integer_valueOf(2), jl_Integer_valueOf(3))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_porkRaw.$itemID), nms_Tuple__init_(jl_Integer_valueOf(14), jl_Integer_valueOf(18))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_beefRaw.$itemID), nms_Tuple__init_(jl_Integer_valueOf(14), jl_Integer_valueOf(18))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_chickenRaw.$itemID), nms_Tuple__init_(jl_Integer_valueOf(14), jl_Integer_valueOf(18))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_fishCooked.$itemID), nms_Tuple__init_(jl_Integer_valueOf(9), jl_Integer_valueOf(13))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_seeds.$itemID), nms_Tuple__init_(jl_Integer_valueOf(34), jl_Integer_valueOf(48))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_melonSeeds.$itemID), nms_Tuple__init_(jl_Integer_valueOf(30), jl_Integer_valueOf(38))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_pumpkinSeeds.$itemID), nms_Tuple__init_(jl_Integer_valueOf(30), jl_Integer_valueOf(38))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_wheat.$itemID), nms_Tuple__init_(jl_Integer_valueOf(18), jl_Integer_valueOf(22))); - var$2 = nms_EntityVillager_villagerStockList; - nms_Block_$callClinit(); - ju_HashMap_put(var$2, jl_Integer_valueOf(nms_Block_cloth.$blockID), nms_Tuple__init_(jl_Integer_valueOf(14), jl_Integer_valueOf(22))); - ju_HashMap_put(nms_EntityVillager_villagerStockList, jl_Integer_valueOf(nms_Item_rottenFlesh.$itemID), nms_Tuple__init_(jl_Integer_valueOf(36), jl_Integer_valueOf(64))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_flintAndSteel.$itemID), nms_Tuple__init_(jl_Integer_valueOf(3), jl_Integer_valueOf(4))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_shears.$itemID), nms_Tuple__init_(jl_Integer_valueOf(3), jl_Integer_valueOf(4))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_swordIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(7), jl_Integer_valueOf(11))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_swordDiamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(12), jl_Integer_valueOf(14))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_axeIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(6), jl_Integer_valueOf(8))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_axeDiamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(9), jl_Integer_valueOf(12))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_pickaxeIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(7), jl_Integer_valueOf(9))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_pickaxeDiamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(10), jl_Integer_valueOf(12))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_shovelIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(4), jl_Integer_valueOf(6))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_shovelDiamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(7), jl_Integer_valueOf(8))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_hoeIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(4), jl_Integer_valueOf(6))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_hoeDiamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(7), jl_Integer_valueOf(8))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_bootsIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(4), jl_Integer_valueOf(6))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_bootsDiamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(7), jl_Integer_valueOf(8))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_helmetIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(4), jl_Integer_valueOf(6))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_helmetDiamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(7), jl_Integer_valueOf(8))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_plateIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(10), jl_Integer_valueOf(14))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_plateDiamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(16), jl_Integer_valueOf(19))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_legsIron.$itemID), nms_Tuple__init_(jl_Integer_valueOf(8), jl_Integer_valueOf(10))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_legsDiamond.$itemID), nms_Tuple__init_(jl_Integer_valueOf(11), jl_Integer_valueOf(14))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_bootsChain.$itemID), nms_Tuple__init_(jl_Integer_valueOf(5), jl_Integer_valueOf(7))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_helmetChain.$itemID), nms_Tuple__init_(jl_Integer_valueOf(5), jl_Integer_valueOf(7))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_plateChain.$itemID), nms_Tuple__init_(jl_Integer_valueOf(11), jl_Integer_valueOf(15))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_legsChain.$itemID), nms_Tuple__init_(jl_Integer_valueOf(9), jl_Integer_valueOf(11))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_bread.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-4)), jl_Integer_valueOf((-2)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_melon.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-8)), jl_Integer_valueOf((-4)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_appleRed.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-8)), jl_Integer_valueOf((-4)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_cookie.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-10)), jl_Integer_valueOf((-7)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Block_glass.$blockID), nms_Tuple__init_(jl_Integer_valueOf((-5)), jl_Integer_valueOf((-3)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Block_bookShelf.$blockID), nms_Tuple__init_(jl_Integer_valueOf(3), jl_Integer_valueOf(4))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_plateLeather.$itemID), nms_Tuple__init_(jl_Integer_valueOf(4), jl_Integer_valueOf(5))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_bootsLeather.$itemID), nms_Tuple__init_(jl_Integer_valueOf(2), jl_Integer_valueOf(4))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_helmetLeather.$itemID), nms_Tuple__init_(jl_Integer_valueOf(2), jl_Integer_valueOf(4))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_legsLeather.$itemID), nms_Tuple__init_(jl_Integer_valueOf(2), jl_Integer_valueOf(4))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_saddle.$itemID), nms_Tuple__init_(jl_Integer_valueOf(6), jl_Integer_valueOf(8))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_expBottle.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-4)), jl_Integer_valueOf((-1)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_redstone.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-4)), jl_Integer_valueOf((-1)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_compass.$itemID), nms_Tuple__init_(jl_Integer_valueOf(10), jl_Integer_valueOf(12))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_pocketSundial.$itemID), nms_Tuple__init_(jl_Integer_valueOf(10), jl_Integer_valueOf(12))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Block_glowStone.$blockID), nms_Tuple__init_(jl_Integer_valueOf((-3)), jl_Integer_valueOf((-1)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_porkCooked.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-7)), jl_Integer_valueOf((-5)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_beefCooked.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-7)), jl_Integer_valueOf((-5)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_chickenCooked.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-8)), jl_Integer_valueOf((-6)))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_eyeOfEnder.$itemID), nms_Tuple__init_(jl_Integer_valueOf(7), jl_Integer_valueOf(11))); - ju_HashMap_put(nms_EntityVillager_blacksmithSellingList, jl_Integer_valueOf(nms_Item_arrow.$itemID), nms_Tuple__init_(jl_Integer_valueOf((-12)), jl_Integer_valueOf((-8)))); -} -function nms_RenderVillager() { - nms_RenderLiving.call(this); - this.$villagerModel = null; -} -var nms_RenderVillager_entityTexture0 = null; -var nms_RenderVillager_entityTexture1 = null; -var nms_RenderVillager_entityTexture2 = null; -var nms_RenderVillager_entityTexture3 = null; -var nms_RenderVillager_entityTexture4 = null; -var nms_RenderVillager_entityTexture5 = null; -function nms_RenderVillager__init_0() { - var var_0 = new nms_RenderVillager(); - nms_RenderVillager__init_(var_0); - return var_0; -} -function nms_RenderVillager__init_($this) { - var var$1; - var$1 = nms_ModelVillager__init_0(0.0, 0.0, 64, 64); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$villagerModel = $this.$mainModel; -} -function nms_RenderVillager_shouldVillagerRenderPass($this, $par1EntityVillager, $par2, $par3) { - return (-1); -} -function nms_RenderVillager_renderVillager($this, $par1EntityVillager, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityVillager = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityVillager, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityVillager, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderVillager_renderVillagerEquipedItems($this, $par1EntityVillager, $par2) { - return; -} -function nms_RenderVillager_preRenderVillager($this, $par1EntityVillager, $par2) { - var $var3, var$4, var$5, var$6; - $var3 = 0.9375; - if (nms_DataWatcher_getWatchableObjectInt($par1EntityVillager.$dataWatcher, 12) >= 0) - $this.$shadowSize = 0.5; - else { - $var3 = 0.46875; - $this.$shadowSize = 0.25; - } - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityVillager = nleg_EaglerAdapterGL30_deevis; - $par1EntityVillager.$x = $var3; - $par1EntityVillager.$y = $var3; - $par1EntityVillager.$z = $var3; - $par1EntityVillager = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityVillager, $par1EntityVillager); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityVillager = new jl_StringBuilder; - $par1EntityVillager.$buffer = $rt_createCharArray(16); - var$4.$sb = $par1EntityVillager; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - $par1EntityVillager = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityVillager, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = $par1EntityVillager; - 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)); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); - } -} -function nms_RenderVillager_preRenderCallback($this, $par1EntityLiving, $par2) { - var var$3, var$4, var$5; - $par1EntityLiving = $par1EntityLiving; - $par2 = 0.9375; - if (nms_DataWatcher_getWatchableObjectInt($par1EntityLiving.$dataWatcher, 12) >= 0) - $this.$shadowSize = 0.5; - else { - $par2 = 0.46875; - $this.$shadowSize = 0.25; - } - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = $par2; - $par1EntityLiving.$y = $par2; - $par1EntityLiving.$z = $par2; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityLiving; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityLiving; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } -} -function nms_RenderVillager_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return (-1); -} -function nms_RenderVillager_renderEquippedItems($this, $par1EntityLiving, $par2) { - return; -} -function nms_RenderVillager_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderVillager_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderVillager_bindTexture($this, $par1EntityLiving) { - a: { - switch (nms_DataWatcher_getWatchableObjectInt($par1EntityLiving.$dataWatcher, 16)) { - case 0: - break; - case 1: - nle_TextureLocation_bindTexture(nms_RenderVillager_entityTexture1); - break a; - case 2: - nle_TextureLocation_bindTexture(nms_RenderVillager_entityTexture2); - break a; - case 3: - nle_TextureLocation_bindTexture(nms_RenderVillager_entityTexture3); - break a; - case 4: - nle_TextureLocation_bindTexture(nms_RenderVillager_entityTexture4); - break a; - default: - nle_TextureLocation_bindTexture(nms_RenderVillager_entityTexture5); - break a; - } - nle_TextureLocation_bindTexture(nms_RenderVillager_entityTexture0); - } -} -function nms_RenderVillager__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1308); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderVillager_entityTexture0 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1309); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderVillager_entityTexture1 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1310); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderVillager_entityTexture2 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1311); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderVillager_entityTexture3 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1312); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderVillager_entityTexture4 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1018); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderVillager_entityTexture5 = var$1; -} -function nms_EntityIronGolem() { - var a = this; nms_EntityGolem.call(a); - a.$homeCheckTimer = 0; - a.$attackTimer = 0; - a.$holdRoseTick = 0; -} -function nms_EntityIronGolem__init_0() { - var var_0 = new nms_EntityIronGolem(); - nms_EntityIronGolem__init_(var_0); - return var_0; -} -function nms_EntityIronGolem__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$homeCheckTimer = 0; - nms_Entity_setSize($this, 1.399999976158142, 2.9000000953674316); -} -function nms_EntityIronGolem_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); -} -function nms_EntityIronGolem_isAIEnabled($this) { - return 1; -} -function nms_EntityIronGolem_updateAITick($this) { - return; -} -function nms_EntityIronGolem_getMaxHealth($this) { - return 100; -} -function nms_EntityIronGolem_decreaseAirSupply($this, $par1) { - return $par1; -} -function nms_EntityIronGolem_collideWithEntity($this, $par1Entity) { - if ($rt_isInstance($par1Entity, nms_IMob) && !(Math.random() * 20.0 | 0)) - $this.$attackTarget = $par1Entity; - $par1Entity.$applyEntityCollision($this); -} -function nms_EntityIronGolem_onLivingUpdate($this) { - var var$1, $var1, $var2, $var3, $var4, var$6, var$7, var$8, var$9, var$10, var$11, 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();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$attackTimer > 0) - $this.$attackTimer = $this.$attackTimer - 1 | 0; - if ($this.$holdRoseTick > 0) - $this.$holdRoseTick = $this.$holdRoseTick - 1 | 0; - if ($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ > 2.500000277905201E-7 && !(Math.random() * 5.0 | 0)) { - var$1 = $this.$posX; - $var1 = var$1 | 0; - if (var$1 < $var1) - $var1 = $var1 - 1 | 0; - var$1 = $this.$posY - 0.20000000298023224 - $this.$yOffset0; - $var2 = var$1 | 0; - if (var$1 < $var2) - $var2 = $var2 - 1 | 0; - var$1 = $this.$posZ; - $var3 = var$1 | 0; - if (var$1 < $var3) - $var3 = $var3 - 1 | 0; - $var4 = nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3); - if ($var4 > 0) { - var$6 = $this.$worldObj; - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(673)); - jl_AbstractStringBuilder_insert0(var$7, var$7.$length, $var4, 10); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(381)); - $var4 = nms_World_getBlockMetadata($this.$worldObj, $var1, $var2, $var3); - jl_AbstractStringBuilder_insert0(var$7, var$7.$length, $var4, 10); - var$8 = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - var$9 = $this.$posX + (Math.random() - 0.5) * $this.$width1; - var$10 = $this.$boundingBox.$minY + 0.1; - var$11 = $this.$posZ + (Math.random() - 0.5) * $this.$width1; - var$12 = 4.0 * (Math.random() - 0.5); - var$13 = 0.5; - var$1 = (Math.random() - 0.5) * 4.0; - $var3 = 0; - if ($var3 < var$6.$worldAccesses.$size0) { - var$7 = var$6.$worldAccesses; - if ($var3 >= 0 && $var3 < var$7.$size0) { - var$7 = var$7.$array1.data[$var3]; - $ptr = 2; - continue main; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - } - } - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$1); - if ($rt_suspending()) { - break main; - } - $var3 = $var3 + 1 | 0; - if ($var3 >= var$6.$worldAccesses.$size0) - return; - var$7 = var$6.$worldAccesses; - if ($var3 >= 0 && $var3 < var$7.$size0) { - var$7 = var$7.$array1.data[$var3]; - continue main; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, $var2, $var3, $var4, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, $ptr); -} -function nms_EntityIronGolem_handleHealthUpdate($this, $par1) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 == 4) { - $this.$attackTimer = 10; - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1313), 1.0, 1.0); - } else { - if ($par1 != 11) { - $ptr = 1; - continue main; - } - $this.$holdRoseTick = 400; - } - return; - case 1: - nms_EntityLiving_handleHealthUpdate($this, $par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $ptr); -} -function nms_EntityIronGolem_getAttackTimer($this) { - return $this.$attackTimer; -} -function nms_EntityIronGolem_getLivingSound($this) { - return $rt_s(1256); -} -function nms_EntityIronGolem_getHurtSound($this) { - return $rt_s(1314); -} -function nms_EntityIronGolem_getDeathSound($this) { - return $rt_s(1315); -} -function nms_EntityIronGolem_playStepSound($this, $par1, $par2, $par3, $par4) { - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1316), 1.0, 1.0); -} -function nms_EntityIronGolem_dropFewItems($this, $par1, $par2) { - var $var3, $var4, var$5, var$6, var$7, $var5, var$9; - $var3 = Math.random() * 3.0 | 0; - $var4 = 0; - while ($var4 < $var3) { - nms_Block_$callClinit(); - $par1 = nms_Block_plantRed.$blockID; - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par1; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$6 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$6.$dataWatcher, 10, var$5); - nms_DataWatcher_setObjectWatched(var$6.$dataWatcher, 10); - var$6.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$5, var$6); - var$7 = var$5.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, var$6, var$7); - if (!$par1) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$6, var$5); - } - $var4 = $var4 + 1 | 0; - } - $par1 = 3 + (Math.random() * 3.0 | 0) | 0; - $var5 = 0; - while ($var5 < $par1) { - nms_Item_$callClinit(); - $var4 = nms_Item_ingotIron.$itemID; - var$6 = new nms_ItemStack; - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = $var4; - var$6.$stackSize = 1; - var$6.$itemDamage = 0; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - var$9 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$9.$dataWatcher, 10, var$6); - nms_DataWatcher_setObjectWatched(var$9.$dataWatcher, 10); - var$9.$delayBeforeCanPickup = 10; - var$5 = $this.$worldObj; - $par2 = nms_World_spawnEntityInWorld(var$5, var$9); - var$6 = var$5.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, var$9, var$6); - if (!$par2) { - var$5 = var$5.$entitySpawnQueue; - ju_HashMap_putImpl(var$5.$backingMap, var$9, var$5); - } - $var5 = $var5 + 1 | 0; - } -} -function nms_EntityIronGolem_getHoldRoseTick($this) { - return $this.$holdRoseTick; -} -function nms_EntityIronGolem_setPlayerCreated($this, $par1) { - var $var2, var$3, var$4; - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if (!$par1) { - var$3 = $this.$dataWatcher; - $par1 = ($var2 & (-2)) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $par1; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } else { - var$3 = $this.$dataWatcher; - $var2 = ($var2 | 1) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $var2; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } -} -function nms_EntityIronGolem_onDeath($this, $par1DamageSource) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_onDeath($this, $par1DamageSource); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $ptr); -} -function nms_RenderIronGolem() { - nms_RenderLiving.call(this); - this.$ironGolemModel = null; -} -var nms_RenderIronGolem_terrain = null; -var nms_RenderIronGolem_entityTexture = null; -function nms_RenderIronGolem__init_0() { - var var_0 = new nms_RenderIronGolem(); - nms_RenderIronGolem__init_(var_0); - return var_0; -} -function nms_RenderIronGolem__init_($this) { - var var$1; - var$1 = nms_ModelIronGolem__init_0(0.0, (-7.0)); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$ironGolemModel = $this.$mainModel; -} -function nms_RenderIronGolem_doRenderIronGolem($this, $par1EntityIronGolem, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityIronGolem = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityIronGolem, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityIronGolem, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderIronGolem_rotateIronGolemCorpse($this, $par1EntityIronGolem, $par2, $par3, $par4) { - nms_RenderLiving_rotateCorpse($this, $par1EntityIronGolem, $par2, $par3, $par4); - if ($par1EntityIronGolem.$limbYaw >= 0.01) { - $par2 = ($par1EntityIronGolem.$limbSwing - $par1EntityIronGolem.$limbYaw * (1.0 - $par4) + 6.0) % 13.0 - 6.5; - if ($par2 <= 0.0) - $par2 = -$par2; - nleg_EaglerAdapterGL30_glRotatef(6.5 * ($par2 - 3.25) / 3.25, 0.0, 0.0, 1.0); - } -} -function nms_RenderIronGolem_renderIronGolemEquippedItems($this, $par1EntityIronGolem, $par2) { - var var$3, var$4, var$5, $var6, $var4, $var5, $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1EntityIronGolem = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1EntityIronGolem.$holdRoseTick) - return; - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef(5.0 + 180.0 * $this.$ironGolemModel.$ironGolemRightArm.$rotateAngleX / 3.1415927410125732, 1.0, 0.0, 0.0); - var$3 = nleg_EaglerAdapterGL30_deevis; - var$3.$x = (-0.6875); - var$3.$y = 1.25; - var$3.$z = (-0.9375); - 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$3 = var$5.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - $var6 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, $var6, $var6 + 1 | 0); - var$3.$buffer.data[$var6] = 10; - ji_PrintStream_printSB(var$5); - } - nleg_EaglerAdapterGL30_glRotatef(90.0, 1.0, 0.0, 0.0); - var$3 = nleg_EaglerAdapterGL30_deevis; - var$3.$x = 0.800000011920929; - var$3.$y = (-0.800000011920929); - var$3.$z = 0.800000011920929; - var$3 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$3, var$3); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$5 = new ji_PrintStream; - var$5.$out = new jl_ConsoleOutputStreamStderr; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - var$5.$sb = var$3; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - var$3 = new jnci_UTF8Charset; - jnc_Charset__init_(var$3, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = var$3; - jl_System_errCache = var$5; - } - var$5 = jl_System_errCache; - var$3 = var$5.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - $var6 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, $var6, $var6 + 1 | 0); - var$3.$buffer.data[$var6] = 10; - ji_PrintStream_printSB(var$5); - } - a: { - $var4 = nms_Entity_getBrightnessForRender($par1EntityIronGolem, $par2); - $var5 = $var4 % 65536 | 0; - $var6 = $var4 / 65536 | 0; - $var4 = nms_OpenGlHelper_lightmapTexUnit; - $par2 = $var5 / 1.0; - $var3 = $var6 / 1.0; - switch ($var4) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = $par2; - nleg_EaglerAdapterGL30_tex1Y = $var3; - break a; - default: - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityIronGolem = new jl_StringBuilder; - $par1EntityIronGolem.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityIronGolem; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityIronGolem = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityIronGolem, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityIronGolem; - jl_System_errCache = var$3; - } - var$5 = jl_System_errCache; - var$3 = var$5.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(238)); - $var5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, $var5, $var5 + 1 | 0); - var$3.$buffer.data[$var5] = 10; - ji_PrintStream_printSB(var$5); - break a; - } - nleg_EaglerAdapterGL30_tex0X = $par2; - nleg_EaglerAdapterGL30_tex0Y = $var3; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture(nms_RenderIronGolem_terrain); - $par1EntityIronGolem = $this.$renderBlocks; - nms_Block_$callClinit(); - var$3 = nms_Block_plantRed; - $var4 = 0; - $par2 = 1.0; - $ptr = 1; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1EntityIronGolem, var$3, $var4, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(41); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityIronGolem, $par2, var$3, var$4, var$5, $var6, $var4, $var5, $var3, $ptr); -} -function nms_RenderIronGolem_renderEquippedItems($this, $par1EntityLiving, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderIronGolem_renderIronGolemEquippedItems($this, $par1EntityLiving, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $ptr); -} -function nms_RenderIronGolem_rotateCorpse($this, $par1EntityLiving, $par2, $par3, $par4) { - nms_RenderIronGolem_rotateIronGolemCorpse($this, $par1EntityLiving, $par2, $par3, $par4); -} -function nms_RenderIronGolem_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderIronGolem_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderIronGolem_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderIronGolem_entityTexture); -} -function nms_RenderIronGolem__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderIronGolem_terrain = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1317); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderIronGolem_entityTexture = var$1; -} -function nms_EntityAmbientCreature() { - nms_EntityLiving.call(this); -} -function nms_EntityBat() { - nms_EntityAmbientCreature.call(this); - this.$currentFlightTarget = null; -} -function nms_EntityBat__init_0() { - var var_0 = new nms_EntityBat(); - nms_EntityBat__init_(var_0); - return var_0; -} -function nms_EntityBat__init_($this) { - nms_EntityLiving__init_0($this); - nms_Entity_setSize($this, 0.5, 0.8999999761581421); - nms_EntityBat_setIsBatHanging($this, 1); -} -function nms_EntityBat_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); -} -function nms_EntityBat_getSoundVolume($this) { - return 0.10000000149011612; -} -function nms_EntityBat_getSoundPitch($this) { - return nms_EntityLiving_getSoundPitch($this) * 0.949999988079071; -} -function nms_EntityBat_getLivingSound($this) { - var var$1; - var$1 = !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; - return var$1 && Math.random() * 4.0 | 0 ? null : $rt_s(1318); -} -function nms_EntityBat_getHurtSound($this) { - return $rt_s(1319); -} -function nms_EntityBat_getDeathSound($this) { - return $rt_s(1320); -} -function nms_EntityBat_canBePushed($this) { - return 0; -} -function nms_EntityBat_collideWithEntity($this, $par1Entity) { - return; -} -function nms_EntityBat_func_85033_bc($this) { - return; -} -function nms_EntityBat_getMaxHealth($this) { - return 6; -} -function nms_EntityBat_getIsBatHanging($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; -} -function nms_EntityBat_setIsBatHanging($this, $par1) { - var $var2, var$3, var$4; - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if (!$par1) { - var$3 = $this.$dataWatcher; - $par1 = ($var2 & (-2)) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $par1; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } else { - var$3 = $this.$dataWatcher; - $var2 = ($var2 | 1) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $var2; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } -} -function nms_EntityBat_isAIEnabled($this) { - return 1; -} -function nms_EntityBat_onUpdate($this) { - var var$1, var$2, $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: - $ptr = 1; - case 1: - nms_EntityLiving_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if (!(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1)) - $this.$motionY = $this.$motionY * 0.6000000238418579; - else { - $this.$motionZ = 0.0; - $this.$motionY = 0.0; - $this.$motionX = 0.0; - var$1 = $this.$posY; - var$2 = var$1 | 0; - if (var$1 < var$2) - var$2 = var$2 - 1 | 0; - $this.$posY = var$2 + 1.0 - $this.$height1; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, $ptr); -} -function nms_EntityBat_updateAITasks($this) { - var var$1, $var1, $var3, $var5, $var8, var$6, var$7, var$8, var$9, var$10, var$11, 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();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var8 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityLiving_updateAITasks($this); - if ($rt_suspending()) { - break main; - } - var$1 = !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; - a: { - if (!var$1) { - if ($this.$currentFlightTarget !== null && !(nms_World_isAirBlock($this.$worldObj, $this.$currentFlightTarget.$posX0, $this.$currentFlightTarget.$posY0, $this.$currentFlightTarget.$posZ0) && $this.$currentFlightTarget.$posY0 >= 1)) - $this.$currentFlightTarget = null; - if (!($this.$currentFlightTarget !== null && ju_Random_nextInt0($this.$rand0, 30) && nms_ChunkCoordinates_getDistanceSquared($this.$currentFlightTarget, $this.$posX | 0, $this.$posY | 0, $this.$posZ | 0) >= 4.0)) - $this.$currentFlightTarget = nms_ChunkCoordinates__init_0((($this.$posX | 0) + ju_Random_nextInt0($this.$rand0, 7) | 0) - ju_Random_nextInt0($this.$rand0, 7) | 0, (($this.$posY | 0) + ju_Random_nextInt0($this.$rand0, 6) | 0) - 2 | 0, (($this.$posZ | 0) + ju_Random_nextInt0($this.$rand0, 7) | 0) - ju_Random_nextInt0($this.$rand0, 7) | 0); - $var1 = $this.$currentFlightTarget.$posX0 + 0.5 - $this.$posX; - $var3 = $this.$currentFlightTarget.$posY0 + 0.1 - $this.$posY; - $var5 = $this.$currentFlightTarget.$posZ0 + 0.5 - $this.$posZ; - $this.$motionX = $this.$motionX + (jl_Math_signum($var1) * 0.5 - $this.$motionX) * 0.10000000149011612; - $this.$motionY = $this.$motionY + (jl_Math_signum($var3) * 0.699999988079071 - $this.$motionY) * 0.10000000149011612; - $this.$motionZ = $this.$motionZ + (jl_Math_signum($var5) * 0.5 - $this.$motionZ) * 0.10000000149011612; - $var8 = nms_MathHelper_wrapAngleTo180_float(jl_Math_atan2($this.$motionZ, $this.$motionX) * 180.0 / 3.141592653589793 - 90.0 - $this.$rotationYaw); - $this.$moveForward0 = 0.5; - $this.$rotationYaw = $this.$rotationYaw + $var8; - if (!ju_Random_nextInt0($this.$rand0, 100) && nms_World_isBlockNormalCube($this.$worldObj, nms_MathHelper_floor_double($this.$posX), ($this.$posY | 0) + 1 | 0, nms_MathHelper_floor_double($this.$posZ))) - nms_EntityBat_setIsBatHanging($this, 1); - } else { - var$6 = $this.$worldObj; - $var1 = $this.$posX; - var$7 = $var1 | 0; - if ($var1 < var$7) - var$7 = var$7 - 1 | 0; - var$1 = ($this.$posY | 0) + 1 | 0; - $var1 = $this.$posZ; - var$8 = $var1 | 0; - if ($var1 < var$8) - var$8 = var$8 - 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId(var$6, var$7, var$1, var$8))) { - nms_EntityBat_setIsBatHanging($this, 0); - var$6 = $this.$worldObj; - var$9 = null; - var$1 = 1015; - var$10 = $this.$posX | 0; - var$8 = $this.$posY | 0; - var$7 = $this.$posZ | 0; - var$11 = 0; - var$12 = 0; - if (var$12 >= var$6.$worldAccesses.$size0) - break a; - var$13 = var$6.$worldAccesses; - if (var$12 >= 0 && var$12 < var$13.$size0) { - var$13 = var$13.$array1.data[var$12]; - $ptr = 3; - continue main; - } - var$6 = new jl_IndexOutOfBoundsException; - jl_Throwable__init_(var$6); - $rt_throw(var$6); - } - if (!(Math.random() * 200.0 | 0)) - $this.$rotationYawHead = ju_Random_nextInt0($this.$rand0, 360); - if (nms_World_getClosestPlayerToEntity($this.$worldObj, $this, 4.0) !== null) { - nms_EntityBat_setIsBatHanging($this, 0); - var$6 = $this.$worldObj; - var$9 = null; - var$1 = 1015; - var$10 = $this.$posX | 0; - var$8 = $this.$posY | 0; - var$7 = $this.$posZ | 0; - var$11 = 0; - $ptr = 2; - continue main; - } - } - } - return; - case 2: - nms_World_playAuxSFXAtEntity(var$6, var$9, var$1, var$10, var$8, var$7, var$11); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_RenderGlobal_playAuxSFX(var$13, var$9, var$1, var$10, var$8, var$7, var$11); - if ($rt_suspending()) { - break main; - } - var$12 = var$12 + 1 | 0; - if (var$12 >= var$6.$worldAccesses.$size0) - return; - var$13 = var$6.$worldAccesses; - if (var$12 >= 0 && var$12 < var$13.$size0) { - var$13 = var$13.$array1.data[var$12]; - continue main; - } - var$6 = new jl_IndexOutOfBoundsException; - jl_Throwable__init_(var$6); - $rt_throw(var$6); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, $var3, $var5, $var8, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, $ptr); -} -function nms_EntityBat_canTriggerWalking($this) { - return 0; -} -function nms_EntityBat_fall($this, $par1) { - return; -} -function nms_EntityBat_updateFallState($this, $par1, $par3) { - return; -} -function nms_EntityBat_doesEntityNotTriggerPressurePlate($this) { - return 1; -} -function nms_EntityBat_attackEntityFrom($this, $par1DamageSource, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - if (!$this.$worldObj.$isRemote && (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1)) - nms_EntityBat_setIsBatHanging($this, 0); - $ptr = 1; - case 1: - $tmp = nms_EntityLiving_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $ptr); -} -function nms_EntityBat_initCreature($this) { - return; -} -function nms_RenderBat() { - nms_RenderLiving.call(this); - this.$renderedBatSize = 0; -} -var nms_RenderBat_entityTexture = null; -function nms_RenderBat__init_0() { - var var_0 = new nms_RenderBat(); - nms_RenderBat__init_(var_0); - return var_0; -} -function nms_RenderBat__init_($this) { - var var$1; - var$1 = nms_ModelBat__init_0(); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.25; - $this.$renderedBatSize = 36; -} -function nms_RenderBat_func_82443_a($this, $par1EntityBat, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityBat = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (36 != $this.$renderedBatSize) { - $this.$renderedBatSize = 36; - $this.$mainModel = nms_ModelBat__init_0(); - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityBat, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityBat, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderBat_func_82442_a($this, $par1EntityBat, $par2) { - var var$3, var$4, var$5; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityBat = nleg_EaglerAdapterGL30_deevis; - $par1EntityBat.$x = 0.3499999940395355; - $par1EntityBat.$y = 0.3499999940395355; - $par1EntityBat.$z = 0.3499999940395355; - $par1EntityBat = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityBat, $par1EntityBat); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityBat = new jl_StringBuilder; - $par1EntityBat.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityBat; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityBat = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityBat, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityBat; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } -} -function nms_RenderBat_func_82445_a($this, $par1EntityBat, $par2, $par4, $par6) { - var var$5, var$6, var$7, var$8, var$9, var$10; - var$5 = $par2; - var$6 = $par4; - var$7 = $par6; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityBat = nleg_EaglerAdapterGL30_deevis; - $par1EntityBat.$x = var$5; - $par1EntityBat.$y = var$6; - $par1EntityBat.$z = var$7; - $par1EntityBat = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityBat, $par1EntityBat); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityBat = new jl_StringBuilder; - $par1EntityBat.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1EntityBat; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1EntityBat = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityBat, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1EntityBat; - jl_System_errCache = var$8; - } - var$9 = jl_System_errCache; - var$8 = var$9.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$10 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$10, var$10 + 1 | 0); - var$8.$buffer.data[var$10] = 10; - ji_PrintStream_printSB(var$9); - } -} -function nms_RenderBat_func_82444_a($this, $par1EntityBat, $par2, $par3, $par4) { - var var$5, var$6, var$7, var$8, var$9; - if (!(nms_DataWatcher_getWatchableObjectByte($par1EntityBat.$dataWatcher, 16) & 1) ? 0 : 1) { - nleg_EaglerAdapterGL30_$callClinit(); - var$5 = nleg_EaglerAdapterGL30_deevis; - var$5.$x = 0.0; - var$5.$y = (-0.10000000149011612); - var$5.$z = 0.0; - var$5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(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); - } - } else { - var$9 = $par2 * 0.30000001192092896; - var$9 = nms_MathHelper_SIN_TABLE.data[(var$9 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.10000000149011612; - nleg_EaglerAdapterGL30_$callClinit(); - var$5 = nleg_EaglerAdapterGL30_deevis; - var$5.$x = 0.0; - var$5.$y = var$9; - var$5.$z = 0.0; - var$5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(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); - } - } - nms_RenderLiving_rotateCorpse($this, $par1EntityBat, $par2, $par3, $par4); -} -function nms_RenderBat_preRenderCallback($this, $par1EntityLiving, $par2) { - var var$3, var$4, var$5; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = 0.3499999940395355; - $par1EntityLiving.$y = 0.3499999940395355; - $par1EntityLiving.$z = 0.3499999940395355; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$3.$sb = $par1EntityLiving; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = $par1EntityLiving; - jl_System_errCache = var$3; - } - var$4 = jl_System_errCache; - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(220)); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); - } -} -function nms_RenderBat_rotateCorpse($this, $par1EntityLiving, $par2, $par3, $par4) { - nms_RenderBat_func_82444_a($this, $par1EntityLiving, $par2, $par3, $par4); -} -function nms_RenderBat_renderLivingAt($this, $par1EntityLiving, $par2, $par4, $par6) { - var var$5, var$6, var$7, var$8, var$9; - var$5 = $par2; - var$6 = $par4; - var$7 = $par6; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityLiving = nleg_EaglerAdapterGL30_deevis; - $par1EntityLiving.$x = var$5; - $par1EntityLiving.$y = var$6; - $par1EntityLiving.$z = var$7; - $par1EntityLiving = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityLiving, $par1EntityLiving); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityLiving = new jl_StringBuilder; - jl_Object__init_0($par1EntityLiving); - $par1EntityLiving.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1EntityLiving; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1EntityLiving = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityLiving, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1EntityLiving; - jl_System_errCache = var$8; - } - var$9 = jl_System_errCache; - var$8 = var$9.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - jl_AbstractStringBuilder_insert4(var$8, var$8.$length, 10); - ji_PrintStream_printSB(var$9); - } -} -function nms_RenderBat_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - if (36 != $this.$renderedBatSize) { - $this.$renderedBatSize = 36; - $this.$mainModel = nms_ModelBat__init_0(); - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderBat_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - if (36 != $this.$renderedBatSize) { - $this.$renderedBatSize = 36; - $this.$mainModel = nms_ModelBat__init_0(); - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderBat_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderBat_entityTexture); -} -function nms_RenderBat__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1321); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderBat_entityTexture = var$1; -} -function nms_IBossDisplayData() { -} -function nms_IEntityMultiPart() { -} -function nms_EntityDragon() { - var a = this; nms_EntityLiving.call(a); - a.$targetX = 0.0; - a.$targetY = 0.0; - a.$targetZ = 0.0; - a.$ringBuffer = null; - a.$ringBufferIndex = 0; - a.$dragonPartArray = null; - a.$dragonPartHead = null; - a.$dragonPartBody = null; - a.$dragonPartTail1 = null; - a.$dragonPartTail2 = null; - a.$dragonPartTail3 = null; - a.$dragonPartWing1 = null; - a.$dragonPartWing2 = null; - a.$prevAnimTime = 0.0; - a.$animTime = 0.0; - a.$forceNewTarget = 0; - a.$slowed = 0; - a.$target0 = null; - a.$deathTicks = 0; - a.$healingEnderCrystal = null; -} -function nms_EntityDragon__init_0() { - var var_0 = new nms_EntityDragon(); - nms_EntityDragon__init_(var_0); - return var_0; -} -function nms_EntityDragon__init_($this) { - var var$1, var$2, var$3, var$4, var$5; - nms_EntityLiving__init_0($this); - $this.$ringBuffer = $rt_createDoubleMultiArray([3, 64]); - $this.$ringBufferIndex = (-1); - $this.$prevAnimTime = 0.0; - $this.$animTime = 0.0; - $this.$forceNewTarget = 0; - $this.$slowed = 0; - $this.$deathTicks = 0; - $this.$healingEnderCrystal = null; - var$1 = $rt_createArray(nms_EntityDragonPart, 7); - var$2 = var$1.data; - var$3 = new nms_EntityDragonPart; - nms_Entity__init_0(var$3); - var$4 = $this.$worldObj; - var$3.$worldObj = var$4; - var$3.$dimension = var$4.$provider.$dimensionId; - nms_Entity_setSize(var$3, 6.0, 6.0); - var$3.$entityDragonObj = $this; - var$3.$name9 = $rt_s(1235); - $this.$dragonPartHead = var$3; - var$2[0] = var$3; - var$5 = new nms_EntityDragonPart; - nms_Entity__init_0(var$5); - var$3 = $this.$worldObj; - var$5.$worldObj = var$3; - var$5.$dimension = var$3.$provider.$dimensionId; - nms_Entity_setSize(var$5, 8.0, 8.0); - var$5.$entityDragonObj = $this; - var$5.$name9 = $rt_s(1322); - $this.$dragonPartBody = var$5; - var$2[1] = var$5; - var$5 = new nms_EntityDragonPart; - nms_Entity__init_0(var$5); - var$3 = $this.$worldObj; - var$5.$worldObj = var$3; - var$5.$dimension = var$3.$provider.$dimensionId; - nms_Entity_setSize(var$5, 4.0, 4.0); - var$5.$entityDragonObj = $this; - var$5.$name9 = $rt_s(1323); - $this.$dragonPartTail1 = var$5; - var$2[2] = var$5; - var$3 = new nms_EntityDragonPart; - nms_Entity__init_0(var$3); - var$4 = $this.$worldObj; - var$3.$worldObj = var$4; - var$3.$dimension = var$4.$provider.$dimensionId; - nms_Entity_setSize(var$3, 4.0, 4.0); - var$3.$entityDragonObj = $this; - var$3.$name9 = $rt_s(1323); - $this.$dragonPartTail2 = var$3; - var$2[3] = var$3; - var$3 = new nms_EntityDragonPart; - nms_Entity__init_0(var$3); - var$4 = $this.$worldObj; - var$3.$worldObj = var$4; - var$3.$dimension = var$4.$provider.$dimensionId; - nms_Entity_setSize(var$3, 4.0, 4.0); - var$3.$entityDragonObj = $this; - var$3.$name9 = $rt_s(1323); - $this.$dragonPartTail3 = var$3; - var$2[4] = var$3; - var$3 = new nms_EntityDragonPart; - nms_Entity__init_0(var$3); - var$4 = $this.$worldObj; - var$3.$worldObj = var$4; - var$3.$dimension = var$4.$provider.$dimensionId; - nms_Entity_setSize(var$3, 4.0, 4.0); - var$3.$entityDragonObj = $this; - var$3.$name9 = $rt_s(1324); - $this.$dragonPartWing1 = var$3; - var$2[5] = var$3; - var$3 = new nms_EntityDragonPart; - nms_Entity__init_0(var$3); - var$4 = $this.$worldObj; - var$3.$worldObj = var$4; - var$3.$dimension = var$4.$provider.$dimensionId; - nms_Entity_setSize(var$3, 4.0, 4.0); - var$3.$entityDragonObj = $this; - var$3.$name9 = $rt_s(1324); - $this.$dragonPartWing2 = var$3; - var$2[6] = var$3; - $this.$dragonPartArray = var$1; - $this.$health = 200; - nms_Entity_setSize($this, 16.0, 8.0); - $this.$noClip = 1; - $this.$isImmuneToFire = 1; - $this.$targetY = 100.0; - $this.$ignoreFrustumCheck = 1; -} -function nms_EntityDragon_getMaxHealth($this) { - return 200; -} -function nms_EntityDragon_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 200; - nms_DataWatcher_addObject(var$1, 16, var$2); -} -function nms_EntityDragon_getMovementOffsets($this, $par1, $par2) { - var var$3, $var3, $var4, $var5, var$7, $var6, $var8, var$10; - if ($this.$health <= 0) - $par2 = 0.0; - $par2 = 1.0 - $par2; - var$3 = $this.$ringBufferIndex; - $par1 = $par1 * 1 | 0; - $var3 = (var$3 - $par1 | 0) & 63; - $var4 = (($this.$ringBufferIndex - $par1 | 0) - 1 | 0) & 63; - $var5 = $rt_createDoubleArray(3); - var$7 = $var5.data; - $var6 = $this.$ringBuffer.data[$var3].data[0]; - $var8 = nms_MathHelper_wrapAngleTo180_double($this.$ringBuffer.data[$var4].data[0] - $var6); - var$10 = $par2; - var$7[0] = $var6 + $var8 * var$10; - $var6 = $this.$ringBuffer.data[$var3].data[1]; - var$7[1] = $var6 + ($this.$ringBuffer.data[$var4].data[1] - $var6) * var$10; - var$7[2] = $this.$ringBuffer.data[$var3].data[2] + ($this.$ringBuffer.data[$var4].data[2] - $this.$ringBuffer.data[$var3].data[2]) * var$10; - return $var5; -} -function nms_EntityDragon_onLivingUpdate($this) { - var $var1, $var39, $var26, $var4, $var6, $var15, $var2, $var30, $var3, $var11, $var8, $var13, $var25, $var27, $var5, $var28, $var7, $var10, $var12, $var16, $var17, $var18, $var19, $var21, var$25, $var29, $var31, $var33, $var32, $var35, $var37, $var36, $var38, $var40, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var40 = $thread.pop();$var38 = $thread.pop();$var36 = $thread.pop();$var37 = $thread.pop();$var35 = $thread.pop();$var32 = $thread.pop();$var33 = $thread.pop();$var31 = $thread.pop();$var29 = $thread.pop();var$25 = $thread.pop();$var21 = $thread.pop();$var19 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var7 = $thread.pop();$var28 = $thread.pop();$var5 = $thread.pop();$var27 = $thread.pop();$var25 - = $thread.pop();$var13 = $thread.pop();$var8 = $thread.pop();$var11 = $thread.pop();$var3 = $thread.pop();$var30 = $thread.pop();$var2 = $thread.pop();$var15 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var26 = $thread.pop();$var39 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote) - nms_DataWatcher_updateObject($this.$dataWatcher, 16, jl_Integer_valueOf($this.$health)); - else { - $var1 = nms_MathHelper_cos($this.$animTime * 3.1415927410125732 * 2.0); - if (nms_MathHelper_cos($this.$prevAnimTime * 3.1415927410125732 * 2.0) <= (-0.30000001192092896) && $var1 >= (-0.30000001192092896)) { - $var39 = $this.$worldObj; - $var26 = $this.$posX; - $var4 = $this.$posY; - $var6 = $this.$posZ; - $var15 = $rt_s(1325); - $var1 = 5.0; - $var2 = 0.800000011920929 + ju_Random_nextFloat($this.$rand0) * 0.30000001192092896; - $var30 = 0; - $ptr = 3; - continue main; - } - } - $this.$prevAnimTime = $this.$animTime; - if ($this.$health > 0) { - $ptr = 1; - continue main; - } - $var1 = (ju_Random_nextFloat($this.$rand0) - 0.5) * 8.0; - $var2 = (ju_Random_nextFloat($this.$rand0) - 0.5) * 4.0; - $var3 = (ju_Random_nextFloat($this.$rand0) - 0.5) * 8.0; - $var15 = $this.$worldObj; - $var39 = $rt_s(845); - $var4 = $this.$posX + $var1; - $var6 = $this.$posY + 2.0 + $var2; - $var11 = $this.$posZ + $var3; - $var8 = 0.0; - $var13 = 0.0; - $var26 = 0.0; - $ptr = 2; - continue main; - case 1: - nms_EntityDragon_updateDragonEnderCrystal($this); - if ($rt_suspending()) { - break main; - } - $var1 = 0.20000000298023224 / (nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ) * 10.0 + 1.0) * jl_Math_pow(2.0, $this.$motionY); - if (!$this.$slowed) - $this.$animTime = $this.$animTime + $var1; - else - $this.$animTime = $this.$animTime + $var1 * 0.5; - a: { - $this.$rotationYaw = nms_MathHelper_wrapAngleTo180_float($this.$rotationYaw); - if ($this.$ringBufferIndex < 0) { - $var25 = 0; - while (true) { - if ($var25 >= $this.$ringBuffer.data.length) - break a; - $this.$ringBuffer.data[$var25].data[0] = $this.$rotationYaw; - $this.$ringBuffer.data[$var25].data[1] = $this.$posY; - $var25 = $var25 + 1 | 0; - } - } - } - $var30 = $this.$ringBufferIndex + 1 | 0; - $this.$ringBufferIndex = $var30; - if ($var30 == $this.$ringBuffer.data.length) - $this.$ringBufferIndex = 0; - $this.$ringBuffer.data[$this.$ringBufferIndex].data[0] = $this.$rotationYaw; - $this.$ringBuffer.data[$this.$ringBufferIndex].data[1] = $this.$posY; - if ($this.$worldObj.$isRemote) { - if ($this.$newPosRotationIncrements > 0) { - $var26 = $this.$posX + ($this.$newPosX - $this.$posX) / $this.$newPosRotationIncrements; - $var4 = $this.$posY + ($this.$newPosY - $this.$posY) / $this.$newPosRotationIncrements; - $var6 = $this.$posZ + ($this.$newPosZ - $this.$posZ) / $this.$newPosRotationIncrements; - $var8 = nms_MathHelper_wrapAngleTo180_double($this.$newRotationYaw - $this.$rotationYaw); - $this.$rotationYaw = $this.$rotationYaw + $var8 / $this.$newPosRotationIncrements; - $this.$rotationPitch = $this.$rotationPitch + ($this.$newRotationPitch - $this.$rotationPitch) / $this.$newPosRotationIncrements; - $this.$newPosRotationIncrements = $this.$newPosRotationIncrements - 1 | 0; - nms_Entity_setPosition($this, $var26, $var4, $var6); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } - $this.$renderYawOffset = $this.$rotationYaw; - $var15 = $this.$dragonPartHead; - $this.$dragonPartHead.$height1 = 3.0; - $var15.$width1 = 3.0; - $var15 = $this.$dragonPartTail1; - $this.$dragonPartTail1.$height1 = 2.0; - $var15.$width1 = 2.0; - $var15 = $this.$dragonPartTail2; - $this.$dragonPartTail2.$height1 = 2.0; - $var15.$width1 = 2.0; - $var15 = $this.$dragonPartTail3; - $this.$dragonPartTail3.$height1 = 2.0; - $var15.$width1 = 2.0; - $this.$dragonPartBody.$height1 = 3.0; - $this.$dragonPartBody.$width1 = 5.0; - $this.$dragonPartWing1.$height1 = 2.0; - $this.$dragonPartWing1.$width1 = 4.0; - $this.$dragonPartWing2.$height1 = 3.0; - $this.$dragonPartWing2.$width1 = 4.0; - $var2 = (nms_EntityDragon_getMovementOffsets($this, 5, 1.0).data[1] - nms_EntityDragon_getMovementOffsets($this, 10, 1.0).data[1]) * 10.0 / 180.0 * 3.1415927410125732; - $var3 = nms_MathHelper_cos($var2); - $var27 = -nms_MathHelper_sin($var2); - $var5 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - $var28 = nms_MathHelper_sin($var5); - $var7 = nms_MathHelper_cos($var5); - $var15 = $this.$dragonPartBody; - $ptr = 4; - continue main; - } - $var26 = $this.$targetX - $this.$posX; - $var4 = $this.$targetY - $this.$posY; - $var6 = $this.$targetZ - $this.$posZ; - $var11 = $var26 * $var26; - $var8 = $var11 + $var4 * $var4; - $var13 = $var6 * $var6; - $var8 = $var8 + $var13; - if ($this.$target0 === null) { - $this.$targetX = $this.$targetX + ju_Random_nextGaussian($this.$rand0) * 2.0; - $this.$targetZ = $this.$targetZ + ju_Random_nextGaussian($this.$rand0) * 2.0; - } else { - $this.$targetX = $this.$target0.$posX; - $this.$targetZ = $this.$target0.$posZ; - $var10 = $this.$targetX - $this.$posX; - $var12 = $this.$targetZ - $this.$posZ; - $var16 = 0.4000000059604645 + jl_Math_sqrt($var10 * $var10 + $var12 * $var12) / 80.0 - 1.0; - if ($var16 > 10.0) - $var16 = 10.0; - $this.$targetY = $this.$target0.$boundingBox.$minY + $var16; - } - if (!(!$this.$forceNewTarget && $var8 >= 100.0 && $var8 <= 22500.0 && !$this.$isCollidedHorizontally && !$this.$isCollidedVertically)) - nms_EntityDragon_setNewTarget($this); - $var4 = $var4 / nms_MathHelper_sqrt_double($var11 + $var13); - $var11 = (-0.6000000238418579); - if ($var4 >= $var11) - $var11 = $var4; - $var4 = 0.6000000238418579; - if ($var11 <= $var4) - $var4 = $var11; - $this.$motionY = $this.$motionY + $var4 * 0.10000000149011612; - $this.$rotationYaw = nms_MathHelper_wrapAngleTo180_float($this.$rotationYaw); - $var13 = nms_MathHelper_wrapAngleTo180_double(180.0 - jl_Math_atan2($var26, $var6) * 180.0 / 3.141592653589793 - $this.$rotationYaw); - if ($var13 > 50.0) - $var13 = 50.0; - if ($var13 < (-50.0)) - $var13 = (-50.0); - $var15 = nms_Vec3_normalize(nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$targetX - $this.$posX, $this.$targetY - $this.$posY, $this.$targetZ - $this.$posZ)); - $var39 = nms_Vec3_normalize(nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), nms_MathHelper_sin($this.$rotationYaw * 3.1415927410125732 / 180.0), $this.$motionY, -nms_MathHelper_cos($this.$rotationYaw * 3.1415927410125732 / 180.0))); - $var17 = (nms_Vec3_dotProduct($var39, $var15) + 0.5) / 1.5; - if ($var17 < 0.0) - $var17 = 0.0; - $this.$randomYawVelocity = $this.$randomYawVelocity * 0.800000011920929; - $var18 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ) * 1.0 + 1.0; - $var19 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ) * 1.0 + 1.0; - if ($var19 > 40.0) - $var19 = 40.0; - $this.$randomYawVelocity = $this.$randomYawVelocity + $var13 * 0.699999988079071 / $var19 / $var18; - $this.$rotationYaw = $this.$rotationYaw + $this.$randomYawVelocity * 0.10000000149011612; - $var21 = 2.0 / ($var19 + 1.0); - nms_Entity_moveFlying($this, 0.0, (-1.0), 0.05999999865889549 * ($var17 * $var21 + 1.0 - $var21)); - if (!$this.$slowed) { - $var26 = $this.$motionX; - $var4 = $this.$motionY; - $var6 = $this.$motionZ; - $ptr = 12; - continue main; - } - $var26 = $this.$motionX * 0.800000011920929; - $var4 = $this.$motionY * 0.800000011920929; - $var6 = $this.$motionZ * 0.800000011920929; - $ptr = 13; - continue main; - case 2: - nms_World_spawnParticle($var15, $var39, $var4, $var6, $var11, $var8, $var13, $var26); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_WorldClient_playSound($var39, $var26, $var4, $var6, $var15, $var1, $var2, $var30); - if ($rt_suspending()) { - break main; - } - $this.$prevAnimTime = $this.$animTime; - if ($this.$health > 0) { - $ptr = 1; - continue main; - } - $var1 = (ju_Random_nextFloat($this.$rand0) - 0.5) * 8.0; - $var2 = (ju_Random_nextFloat($this.$rand0) - 0.5) * 4.0; - $var3 = (ju_Random_nextFloat($this.$rand0) - 0.5) * 8.0; - $var15 = $this.$worldObj; - $var39 = $rt_s(845); - $var4 = $this.$posX + $var1; - $var6 = $this.$posY + 2.0 + $var2; - $var11 = $this.$posZ + $var3; - $var8 = 0.0; - $var13 = 0.0; - $var26 = 0.0; - $ptr = 2; - continue main; - case 4: - nms_Entity_onUpdate($var15); - if ($rt_suspending()) { - break main; - } - nms_Entity_setLocationAndAngles($this.$dragonPartBody, $this.$posX + $var28 * 0.5, $this.$posY, $this.$posZ - $var7 * 0.5, 0.0, 0.0); - $var15 = $this.$dragonPartWing1; - $ptr = 5; - case 5: - nms_Entity_onUpdate($var15); - if ($rt_suspending()) { - break main; - } - $var15 = $this.$dragonPartWing1; - $var26 = $this.$posX; - $var4 = $var7 * 4.5; - $var26 = $var26 + $var4; - $var6 = $this.$posY + 2.0; - $var11 = $this.$posZ; - $var8 = $var28 * 4.5; - nms_Entity_setLocationAndAngles($var15, $var26, $var6, $var11 + $var8, 0.0, 0.0); - $var15 = $this.$dragonPartWing2; - $ptr = 6; - case 6: - nms_Entity_onUpdate($var15); - if ($rt_suspending()) { - break main; - } - nms_Entity_setLocationAndAngles($this.$dragonPartWing2, $this.$posX - $var4, $this.$posY + 2.0, $this.$posZ - $var8, 0.0, 0.0); - if (!$this.$worldObj.$isRemote && !$this.$hurtTime) { - nms_EntityDragon_collideWithEntities($this, nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_offset(nms_AxisAlignedBB_expand($this.$dragonPartWing1.$boundingBox, 4.0, 2.0, 4.0), 0.0, (-2.0), 0.0))); - nms_EntityDragon_collideWithEntities($this, nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_offset(nms_AxisAlignedBB_expand($this.$dragonPartWing2.$boundingBox, 4.0, 2.0, 4.0), 0.0, (-2.0), 0.0))); - $var15 = nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_expand($this.$dragonPartHead.$boundingBox, 1.0, 1.0, 1.0)); - $ptr = 8; - continue main; - } - var$25 = nms_EntityDragon_getMovementOffsets($this, 5, 1.0).data; - $var29 = nms_EntityDragon_getMovementOffsets($this, 0, 1.0).data; - $var31 = nms_MathHelper_sin($this.$rotationYaw * 3.1415927410125732 / 180.0 - $this.$randomYawVelocity * 0.009999999776482582); - $var33 = nms_MathHelper_cos($this.$rotationYaw * 3.1415927410125732 / 180.0 - $this.$randomYawVelocity * 0.009999999776482582); - $var15 = $this.$dragonPartHead; - $ptr = 7; - case 7: - nms_Entity_onUpdate($var15); - if ($rt_suspending()) { - break main; - } - nms_Entity_setLocationAndAngles($this.$dragonPartHead, $this.$posX + $var31 * 5.5 * $var3, $this.$posY + ($var29[1] - var$25[1]) * 1.0 + $var27 * 5.5, $this.$posZ - $var33 * 5.5 * $var3, 0.0, 0.0); - $var30 = 0; - $var18 = $var28 * 1.5; - $var21 = $var7 * 1.5; - if ($var30 >= 3) { - if ($this.$worldObj.$isRemote) - return; - $var15 = $this.$dragonPartHead.$boundingBox; - $ptr = 9; - continue main; - } - $var32 = null; - if (!$var30) - $var32 = $this.$dragonPartTail1; - if ($var30 == 1) - $var32 = $this.$dragonPartTail2; - if ($var30 == 2) - $var32 = $this.$dragonPartTail3; - $var29 = nms_EntityDragon_getMovementOffsets($this, 12 + ($var30 * 2 | 0) | 0, 1.0).data; - $var35 = $this.$rotationYaw * 3.1415927410125732 / 180.0 + nms_EntityDragon_simplifyAngle($this, $var29[0] - var$25[0]) * 3.1415927410125732 / 180.0 * 1.0; - $var37 = nms_MathHelper_sin($var35); - $var36 = nms_MathHelper_cos($var35); - $var38 = 1.5; - $var30 = $var30 + 1 | 0; - $var40 = $var30 * 2.0; - $ptr = 11; - continue main; - case 8: - nms_EntityDragon_attackEntitiesInList($this, $var15); - if ($rt_suspending()) { - break main; - } - var$25 = nms_EntityDragon_getMovementOffsets($this, 5, 1.0).data; - $var29 = nms_EntityDragon_getMovementOffsets($this, 0, 1.0).data; - $var31 = nms_MathHelper_sin($this.$rotationYaw * 3.1415927410125732 / 180.0 - $this.$randomYawVelocity * 0.009999999776482582); - $var33 = nms_MathHelper_cos($this.$rotationYaw * 3.1415927410125732 / 180.0 - $this.$randomYawVelocity * 0.009999999776482582); - $var15 = $this.$dragonPartHead; - $ptr = 7; - continue main; - case 9: - $tmp = nms_EntityDragon_destroyBlocksInAABB($this, $var15); - if ($rt_suspending()) { - break main; - } - $var30 = $tmp; - $var15 = $this.$dragonPartBody.$boundingBox; - $ptr = 10; - case 10: - $tmp = nms_EntityDragon_destroyBlocksInAABB($this, $var15); - if ($rt_suspending()) { - break main; - } - $var25 = $tmp; - $this.$slowed = $var30 | $var25; - return; - case 11: - nms_Entity_onUpdate($var32); - if ($rt_suspending()) { - break main; - } - nms_Entity_setLocationAndAngles($var32, $this.$posX - ($var18 + $var37 * $var40) * $var3, $this.$posY + ($var29[1] - var$25[1]) * 1.0 - ($var40 + $var38) * $var27 + 1.5, $this.$posZ + ($var21 + $var36 * $var40) * $var3, 0.0, 0.0); - if ($var30 >= 3) { - if ($this.$worldObj.$isRemote) - return; - $var15 = $this.$dragonPartHead.$boundingBox; - $ptr = 9; - continue main; - } - $var32 = null; - if (!$var30) - $var32 = $this.$dragonPartTail1; - if ($var30 == 1) - $var32 = $this.$dragonPartTail2; - if ($var30 == 2) - $var32 = $this.$dragonPartTail3; - $var29 = nms_EntityDragon_getMovementOffsets($this, 12 + ($var30 * 2 | 0) | 0, 1.0).data; - $var35 = $this.$rotationYaw * 3.1415927410125732 / 180.0 + nms_EntityDragon_simplifyAngle($this, $var29[0] - var$25[0]) * 3.1415927410125732 / 180.0 * 1.0; - $var37 = nms_MathHelper_sin($var35); - $var36 = nms_MathHelper_cos($var35); - $var38 = 1.5; - $var30 = $var30 + 1 | 0; - $var40 = $var30 * 2.0; - continue main; - case 12: - nms_Entity_moveEntity($this, $var26, $var4, $var6); - if ($rt_suspending()) { - break main; - } - $var1 = 0.800000011920929 + 0.15000000596046448 * (nms_Vec3_dotProduct(nms_Vec3_normalize(nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$motionX, $this.$motionY, $this.$motionZ)), $var39) + 1.0) / 2.0; - $var26 = $this.$motionX; - $var4 = $var1; - $this.$motionX = $var26 * $var4; - $this.$motionZ = $this.$motionZ * $var4; - $this.$motionY = $this.$motionY * 0.9100000262260437; - $this.$renderYawOffset = $this.$rotationYaw; - $var15 = $this.$dragonPartHead; - $this.$dragonPartHead.$height1 = 3.0; - $var15.$width1 = 3.0; - $var15 = $this.$dragonPartTail1; - $this.$dragonPartTail1.$height1 = 2.0; - $var15.$width1 = 2.0; - $var15 = $this.$dragonPartTail2; - $this.$dragonPartTail2.$height1 = 2.0; - $var15.$width1 = 2.0; - $var15 = $this.$dragonPartTail3; - $this.$dragonPartTail3.$height1 = 2.0; - $var15.$width1 = 2.0; - $this.$dragonPartBody.$height1 = 3.0; - $this.$dragonPartBody.$width1 = 5.0; - $this.$dragonPartWing1.$height1 = 2.0; - $this.$dragonPartWing1.$width1 = 4.0; - $this.$dragonPartWing2.$height1 = 3.0; - $this.$dragonPartWing2.$width1 = 4.0; - $var2 = (nms_EntityDragon_getMovementOffsets($this, 5, 1.0).data[1] - nms_EntityDragon_getMovementOffsets($this, 10, 1.0).data[1]) * 10.0 / 180.0 * 3.1415927410125732; - $var3 = nms_MathHelper_cos($var2); - $var27 = -nms_MathHelper_sin($var2); - $var5 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - $var28 = nms_MathHelper_sin($var5); - $var7 = nms_MathHelper_cos($var5); - $var15 = $this.$dragonPartBody; - $ptr = 4; - continue main; - case 13: - nms_Entity_moveEntity($this, $var26, $var4, $var6); - if ($rt_suspending()) { - break main; - } - $var1 = 0.800000011920929 + 0.15000000596046448 * (nms_Vec3_dotProduct(nms_Vec3_normalize(nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$motionX, $this.$motionY, $this.$motionZ)), $var39) + 1.0) / 2.0; - $var26 = $this.$motionX; - $var4 = $var1; - $this.$motionX = $var26 * $var4; - $this.$motionZ = $this.$motionZ * $var4; - $this.$motionY = $this.$motionY * 0.9100000262260437; - $this.$renderYawOffset = $this.$rotationYaw; - $var15 = $this.$dragonPartHead; - $this.$dragonPartHead.$height1 = 3.0; - $var15.$width1 = 3.0; - $var15 = $this.$dragonPartTail1; - $this.$dragonPartTail1.$height1 = 2.0; - $var15.$width1 = 2.0; - $var15 = $this.$dragonPartTail2; - $this.$dragonPartTail2.$height1 = 2.0; - $var15.$width1 = 2.0; - $var15 = $this.$dragonPartTail3; - $this.$dragonPartTail3.$height1 = 2.0; - $var15.$width1 = 2.0; - $this.$dragonPartBody.$height1 = 3.0; - $this.$dragonPartBody.$width1 = 5.0; - $this.$dragonPartWing1.$height1 = 2.0; - $this.$dragonPartWing1.$width1 = 4.0; - $this.$dragonPartWing2.$height1 = 3.0; - $this.$dragonPartWing2.$width1 = 4.0; - $var2 = (nms_EntityDragon_getMovementOffsets($this, 5, 1.0).data[1] - nms_EntityDragon_getMovementOffsets($this, 10, 1.0).data[1]) * 10.0 / 180.0 * 3.1415927410125732; - $var3 = nms_MathHelper_cos($var2); - $var27 = -nms_MathHelper_sin($var2); - $var5 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - $var28 = nms_MathHelper_sin($var5); - $var7 = nms_MathHelper_cos($var5); - $var15 = $this.$dragonPartBody; - $ptr = 4; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var39, $var26, $var4, $var6, $var15, $var2, $var30, $var3, $var11, $var8, $var13, $var25, $var27, $var5, $var28, $var7, $var10, $var12, $var16, $var17, $var18, $var19, $var21, var$25, $var29, $var31, $var33, $var32, $var35, $var37, $var36, $var38, $var40, $ptr); -} -function nms_EntityDragon_updateDragonEnderCrystal($this) { - var $var3, $var6, var$3, $var2, var$5, var$6, $var4, var$8, var$9, $var8, $var7, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();$var7 = $thread.pop();$var8 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var4 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();$var6 = $thread.pop();$var3 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$healingEnderCrystal !== null) { - if ($this.$healingEnderCrystal.$isDead) { - if (!$this.$worldObj.$isRemote) { - $var3 = $this.$dragonPartHead; - $var6 = nms_DamageSource_setExplosionSource(null); - var$3 = 10; - $ptr = 1; - continue main; - } - $this.$healingEnderCrystal = null; - } else if (!($this.$ticksExisted % 10 | 0) && $this.$health < 200) { - var$3 = $this.$health + 1 | 0; - $this.$health = var$3; - } - } - if (!(Math.random() * 10.0 | 0)) { - $var3 = $this.$worldObj; - $var2 = $this.$boundingBox; - var$5 = $var2.$minX - 32.0; - var$6 = $var2.$minY - 32.0; - $var4 = $var2.$minZ - 32.0; - var$8 = $var2.$maxX + 32.0; - var$9 = $var2.$maxY + 32.0; - $var8 = $var2.$maxZ + 32.0; - $var2 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var2.$initialized) { - $var7 = new nms_AABBPool; - var$12 = new ju_ArrayList; - ju_AbstractList__init_0(var$12); - var$12.$array1 = $rt_createArray(jl_Object, 10); - $var7.$listAABB = var$12; - $var7.$nextPoolIndex = 0; - $var7.$maxPoolIndex = 0; - $var7.$numCleans = 0; - $var7.$maxNumCleans = 300; - $var7.$numEntriesToRemove = 2000; - $var2.$value7 = $var7; - $var2.$initialized = 1; - } - $var2 = nms_World_selectEntitiesWithinAABB($var3, $rt_cls(nms_EntityEnderCrystal), nms_AABBPool_getAABB($var2.$value7, var$5, var$6, $var4, var$8, var$9, $var8), null); - $var3 = null; - $var4 = 1.7976931348623157E308; - $var6 = new ju_AbstractList$1; - $var6.$this$0 = $var2; - $var6.$modCount = $var6.$this$0.$modCount0; - $var6.$size1 = $var6.$this$0.$size2(); - $var6.$removeIndex = (-1); - while ($var6.$index >= $var6.$size1 ? 0 : 1) { - $var7 = ju_AbstractList$1_next($var6); - var$8 = $var7.$posX - $this.$posX; - $var8 = $var7.$posY - $this.$posY; - var$5 = $var7.$posZ - $this.$posZ; - $var8 = var$8 * var$8 + $var8 * $var8 + var$5 * var$5; - if ($var8 < $var4) { - $var4 = $var8; - $var3 = $var7; - } - } - $this.$healingEnderCrystal = $var3; - } - return; - case 1: - nms_EntityDragon_attackEntityFromPart($this, $var3, $var6, var$3); - if ($rt_suspending()) { - break main; - } - $this.$healingEnderCrystal = null; - if (!(Math.random() * 10.0 | 0)) { - $var3 = $this.$worldObj; - $var2 = $this.$boundingBox; - var$5 = $var2.$minX - 32.0; - var$6 = $var2.$minY - 32.0; - $var4 = $var2.$minZ - 32.0; - var$8 = $var2.$maxX + 32.0; - var$9 = $var2.$maxY + 32.0; - $var8 = $var2.$maxZ + 32.0; - $var2 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var2.$initialized) { - $var7 = new nms_AABBPool; - var$12 = new ju_ArrayList; - ju_AbstractList__init_0(var$12); - var$12.$array1 = $rt_createArray(jl_Object, 10); - $var7.$listAABB = var$12; - $var7.$nextPoolIndex = 0; - $var7.$maxPoolIndex = 0; - $var7.$numCleans = 0; - $var7.$maxNumCleans = 300; - $var7.$numEntriesToRemove = 2000; - $var2.$value7 = $var7; - $var2.$initialized = 1; - } - $var2 = nms_World_selectEntitiesWithinAABB($var3, $rt_cls(nms_EntityEnderCrystal), nms_AABBPool_getAABB($var2.$value7, var$5, var$6, $var4, var$8, var$9, $var8), null); - $var3 = null; - $var4 = 1.7976931348623157E308; - $var6 = new ju_AbstractList$1; - $var6.$this$0 = $var2; - $var6.$modCount = $var6.$this$0.$modCount0; - $var6.$size1 = $var6.$this$0.$size2(); - $var6.$removeIndex = (-1); - while ($var6.$index >= $var6.$size1 ? 0 : 1) { - $var7 = ju_AbstractList$1_next($var6); - var$8 = $var7.$posX - $this.$posX; - $var8 = $var7.$posY - $this.$posY; - var$5 = $var7.$posZ - $this.$posZ; - $var8 = var$8 * var$8 + $var8 * $var8 + var$5 * var$5; - if ($var8 < $var4) { - $var4 = $var8; - $var3 = $var7; - } - } - $this.$healingEnderCrystal = $var3; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var3, $var6, var$3, $var2, var$5, var$6, $var4, var$8, var$9, $var8, $var7, var$12, $ptr); -} -function nms_EntityDragon_collideWithEntities($this, $par1List) { - var $var2, $var4, $var6, $var7, $var8, $var10, $var12; - $var2 = ($this.$dragonPartBody.$boundingBox.$minX + $this.$dragonPartBody.$boundingBox.$maxX) / 2.0; - $var4 = ($this.$dragonPartBody.$boundingBox.$minZ + $this.$dragonPartBody.$boundingBox.$maxZ) / 2.0; - $var6 = new ju_AbstractList$1; - $var6.$this$0 = $par1List; - $var6.$modCount = $var6.$this$0.$modCount0; - $var6.$size1 = $var6.$this$0.$size2(); - $var6.$removeIndex = (-1); - while ($var6.$index >= $var6.$size1 ? 0 : 1) { - $var7 = ju_AbstractList$1_next($var6); - if ($var7 instanceof nms_EntityLiving) { - $var8 = $var7.$posX - $var2; - $var10 = $var7.$posZ - $var4; - $var12 = $var8 * $var8 + $var10 * $var10; - $var7.$addVelocity($var8 / $var12 * 4.0, 0.20000000298023224, $var10 / $var12 * 4.0); - } - } -} -function nms_EntityDragon_attackEntitiesInList($this, $par1List) { - var $var2, $var3, 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();$var3 = $thread.pop();$var2 = $thread.pop();$par1List = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = 0; - a: { - while ($var2 < $par1List.$size0) { - if ($var2 < 0) - break a; - if ($var2 >= $par1List.$size0) - break a; - $var3 = $par1List.$array1.data[$var2]; - if ($var3 instanceof nms_EntityLiving) { - var$4 = new nms_EntityDamageSource; - var$4.$isUnblockable = 0; - var$4.$isDamageAllowedInCreativeMode = 0; - var$4.$hungerDamage = 0.30000001192092896; - var$4.$magicDamage = 0; - var$4.$explosion = 0; - var$4.$damageType = $rt_s(1181); - var$4.$damageSourceEntity = $this; - var$5 = 10; - $ptr = 1; - continue main; - } - $var2 = $var2 + 1 | 0; - } - return; - } - $par1List = new jl_IndexOutOfBoundsException; - $par1List.$suppressionEnabled = 1; - $par1List.$writableStackTrace = 1; - $rt_throw($par1List); - case 1: - $var3.$attackEntityFrom(var$4, var$5); - if ($rt_suspending()) { - break main; - } - a: { - while (true) { - $var2 = $var2 + 1 | 0; - if ($var2 >= $par1List.$size0) - break; - if ($var2 < 0) - break a; - if ($var2 >= $par1List.$size0) - break a; - $var3 = $par1List.$array1.data[$var2]; - if (!($var3 instanceof nms_EntityLiving)) - continue; - else { - var$4 = new nms_EntityDamageSource; - var$4.$isUnblockable = 0; - var$4.$isDamageAllowedInCreativeMode = 0; - var$4.$hungerDamage = 0.30000001192092896; - var$4.$magicDamage = 0; - var$4.$explosion = 0; - var$4.$damageType = $rt_s(1181); - var$4.$damageSourceEntity = $this; - var$5 = 10; - continue main; - } - } - return; - } - $par1List = new jl_IndexOutOfBoundsException; - $par1List.$suppressionEnabled = 1; - $par1List.$writableStackTrace = 1; - $rt_throw($par1List); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1List, $var2, $var3, var$4, var$5, $ptr); -} -function nms_EntityDragon_setNewTarget($this) { - var var$1, var$2, var$3, $var2, $var4, $var6; - a: { - $this.$forceNewTarget = 0; - if (!(Math.random() * 2.0 | 0) && !($this.$worldObj.$playerEntities.$size0 ? 0 : 1)) { - var$1 = $this.$worldObj.$playerEntities; - var$2 = $this.$worldObj.$playerEntities.$size0; - var$3 = Math.random() * var$2 | 0; - if (var$3 >= 0 && var$3 < var$1.$size0) { - $this.$target0 = var$1.$array1.data[var$3]; - break a; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - while (true) { - $this.$targetX = 0.0; - $this.$targetY = 70.0 + Math.random() * 50.0; - $this.$targetZ = 0.0; - $this.$targetX = $this.$targetX + Math.random() * 120.0 - 60.0; - $this.$targetZ = $this.$targetZ + Math.random() * 120.0 - 60.0; - $var2 = $this.$posX - $this.$targetX; - $var4 = $this.$posY - $this.$targetY; - $var6 = $this.$posZ - $this.$targetZ; - if (!($var2 * $var2 + $var4 * $var4 + $var6 * $var6 <= 100.0 ? 0 : 1)) - continue; - else - break; - } - $this.$target0 = null; - } -} -function nms_EntityDragon_simplifyAngle($this, $par1) { - return nms_MathHelper_wrapAngleTo180_double($par1); -} -function nms_EntityDragon_destroyBlocksInAABB($this, $par1AxisAlignedBB) { - var var$2, $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var9, $var16, $var17, $var14, var$14, var$15, var$16, var$17, $var12, $var11, $var13, var$21, var$22, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var12 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();$var14 = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$par1AxisAlignedBB - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $par1AxisAlignedBB.$minX; - $var2 = var$2 | 0; - if (var$2 < $var2) - $var2 = $var2 - 1 | 0; - var$2 = $par1AxisAlignedBB.$minY; - $var3 = var$2 | 0; - if (var$2 < $var3) - $var3 = $var3 - 1 | 0; - var$2 = $par1AxisAlignedBB.$minZ; - $var4 = var$2 | 0; - if (var$2 < $var4) - $var4 = $var4 - 1 | 0; - var$2 = $par1AxisAlignedBB.$maxX; - $var5 = var$2 | 0; - if (var$2 < $var5) - $var5 = $var5 - 1 | 0; - var$2 = $par1AxisAlignedBB.$maxY; - $var6 = var$2 | 0; - if (var$2 < $var6) - $var6 = $var6 - 1 | 0; - var$2 = $par1AxisAlignedBB.$maxZ; - $var7 = var$2 | 0; - if (var$2 < $var7) - $var7 = $var7 - 1 | 0; - $var8 = 0; - $var9 = 0; - a: while (true) { - if ($var2 > $var5) { - if ($var9) { - $var16 = $par1AxisAlignedBB.$minX + ($par1AxisAlignedBB.$maxX - $par1AxisAlignedBB.$minX) * Math.random(); - $var17 = $par1AxisAlignedBB.$minY + ($par1AxisAlignedBB.$maxY - $par1AxisAlignedBB.$minY) * Math.random(); - $var14 = $par1AxisAlignedBB.$minZ + ($par1AxisAlignedBB.$maxZ - $par1AxisAlignedBB.$minZ) * Math.random(); - var$14 = $this.$worldObj; - var$15 = $rt_s(845); - var$2 = 0.0; - var$16 = 0.0; - var$17 = 0.0; - $var12 = 0; - if ($var12 < var$14.$worldAccesses.$size0) { - $par1AxisAlignedBB = var$14.$worldAccesses; - if ($var12 >= 0 && $var12 < $par1AxisAlignedBB.$size0) { - $par1AxisAlignedBB = $par1AxisAlignedBB.$array1.data[$var12]; - $ptr = 1; - continue main; - } - $par1AxisAlignedBB = new jl_IndexOutOfBoundsException; - $par1AxisAlignedBB.$suppressionEnabled = 1; - $par1AxisAlignedBB.$writableStackTrace = 1; - $rt_throw($par1AxisAlignedBB); - } - } - return $var8; - } - $var11 = $var3; - while ($var11 <= $var6) { - $var12 = $var4; - while ($var12 <= $var7) { - $var13 = nms_World_getBlockId($this.$worldObj, $var2, $var11, $var12); - if ($var13) { - nms_Block_$callClinit(); - if ($var13 != nms_Block_obsidian.$blockID && $var13 != nms_Block_whiteStone.$blockID && $var13 != nms_Block_bedrock.$blockID && nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(701))) - break a; - $var8 = 1; - } - $var12 = $var12 + 1 | 0; - } - $var11 = $var11 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } - var$14 = $this.$worldObj; - $var13 = 0; - var$21 = 0; - var$22 = 3; - $ptr = 2; - continue main; - case 1: - nms_RenderGlobal_doSpawnParticle($par1AxisAlignedBB, var$15, $var16, $var17, $var14, var$2, var$16, var$17); - if ($rt_suspending()) { - break main; - } - $var12 = $var12 + 1 | 0; - if ($var12 >= var$14.$worldAccesses.$size0) - return $var8; - $par1AxisAlignedBB = var$14.$worldAccesses; - if ($var12 >= 0 && $var12 < $par1AxisAlignedBB.$size0) { - $par1AxisAlignedBB = $par1AxisAlignedBB.$array1.data[$var12]; - continue main; - } - $par1AxisAlignedBB = new jl_IndexOutOfBoundsException; - $par1AxisAlignedBB.$suppressionEnabled = 1; - $par1AxisAlignedBB.$writableStackTrace = 1; - $rt_throw($par1AxisAlignedBB); - case 2: - $tmp = nms_World_setBlock(var$14, $var2, $var11, $var12, $var13, var$21, var$22); - if ($rt_suspending()) { - break main; - } - $var13 = $tmp; - $var9 = !$var13 && !$var9 ? 0 : 1; - while (true) { - $var12 = $var12 + 1 | 0; - while ($var12 > $var7) { - $var11 = $var11 + 1 | 0; - while ($var11 > $var6) { - $var2 = $var2 + 1 | 0; - if ($var2 > $var5) { - if ($var9) { - $var16 = $par1AxisAlignedBB.$minX + ($par1AxisAlignedBB.$maxX - $par1AxisAlignedBB.$minX) * Math.random(); - $var17 = $par1AxisAlignedBB.$minY + ($par1AxisAlignedBB.$maxY - $par1AxisAlignedBB.$minY) * Math.random(); - $var14 = $par1AxisAlignedBB.$minZ + ($par1AxisAlignedBB.$maxZ - $par1AxisAlignedBB.$minZ) * Math.random(); - var$14 = $this.$worldObj; - var$15 = $rt_s(845); - var$2 = 0.0; - var$16 = 0.0; - var$17 = 0.0; - $var12 = 0; - if ($var12 < var$14.$worldAccesses.$size0) { - $par1AxisAlignedBB = var$14.$worldAccesses; - if ($var12 >= 0 && $var12 < $par1AxisAlignedBB.$size0) { - $par1AxisAlignedBB = $par1AxisAlignedBB.$array1.data[$var12]; - $ptr = 1; - continue main; - } - $par1AxisAlignedBB = new jl_IndexOutOfBoundsException; - $par1AxisAlignedBB.$suppressionEnabled = 1; - $par1AxisAlignedBB.$writableStackTrace = 1; - $rt_throw($par1AxisAlignedBB); - } - } - return $var8; - } - $var11 = $var3; - } - $var12 = $var4; - } - $var13 = nms_World_getBlockId($this.$worldObj, $var2, $var11, $var12); - if (!$var13) - continue; - nms_Block_$callClinit(); - if ($var13 != nms_Block_obsidian.$blockID && $var13 != nms_Block_whiteStone.$blockID && $var13 != nms_Block_bedrock.$blockID && nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(701))) - break; - $var8 = 1; - } - var$14 = $this.$worldObj; - $var13 = 0; - var$21 = 0; - var$22 = 3; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1AxisAlignedBB, var$2, $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var9, $var16, $var17, $var14, var$14, var$15, var$16, var$17, $var12, $var11, $var13, var$21, var$22, $ptr); -} -function nms_EntityDragon_attackEntityFromPart($this, $par1EntityDragonPart, $par2DamageSource, $par3) { - var $var4, var$5, var$6, $var5, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2DamageSource = $thread.pop();$par1EntityDragonPart = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1EntityDragonPart !== $this.$dragonPartHead) - $par3 = ($par3 / 4 | 0) + 1 | 0; - $var4 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - var$5 = nms_MathHelper_SIN_TABLE.data; - var$6 = $var4 * 10430.3779296875; - $var5 = var$5[(var$6 | 0) & 65535]; - $var6 = nms_MathHelper_SIN_TABLE.data[(var$6 + 16384.0 | 0) & 65535]; - $this.$targetX = $this.$posX + $var5 * 5.0 + (Math.random() - 0.5) * 2.0; - $this.$targetY = $this.$posY + Math.random() * 3.0 + 1.0; - $this.$targetZ = $this.$posZ - $var6 * 5.0 + (Math.random() - 0.5) * 2.0; - $this.$target0 = null; - if (!($par2DamageSource.$getEntity() instanceof nms_EntityPlayer) && !$par2DamageSource.$explosion) - return 1; - $ptr = 1; - case 1: - nms_EntityLiving_attackEntityFrom($this, $par2DamageSource, $par3); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityDragonPart, $par2DamageSource, $par3, $var4, var$5, var$6, $var5, $var6, $ptr); -} -function nms_EntityDragon_attackEntityFrom($this, $par1DamageSource, $par2) { - return 0; -} -function nms_EntityDragon_func_82195_e($this, $par1DamageSource, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $tmp = nms_EntityLiving_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $ptr); -} -function nms_EntityDragon_onDeathUpdate($this) { - var $var1, $var2, $var3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $var4, var$13, $var5, var$15, var$16, var$17, var$18, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();$var5 = $thread.pop();var$13 = $thread.pop();$var4 = $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();var$5 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$deathTicks = $this.$deathTicks + 1 | 0; - if ($this.$deathTicks >= 180 && $this.$deathTicks <= 200) { - $var1 = (Math.random() - 0.5) * 8.0; - $var2 = (Math.random() - 0.5) * 4.0; - $var3 = (Math.random() - 0.5) * 8.0; - var$4 = $this.$worldObj; - var$5 = $rt_s(844); - var$6 = $this.$posX + $var1; - var$7 = $this.$posY + 2.0 + $var2; - var$8 = $this.$posZ + $var3; - var$9 = 0.0; - var$10 = 0.0; - var$11 = 0.0; - $var4 = 0; - if ($var4 < var$4.$worldAccesses.$size0) { - var$13 = var$4.$worldAccesses; - if ($var4 >= 0 && $var4 < var$13.$size0) { - var$13 = var$13.$array1.data[$var4]; - $ptr = 2; - continue main; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - } - if (!$this.$worldObj.$isRemote) { - a: { - if ($this.$deathTicks > 150 && !($this.$deathTicks % 5 | 0)) { - $var4 = 1000; - while (true) { - if ($var4 <= 0) - break a; - $var5 = nms_EntityXPOrb_getXPSplit($var4); - $var4 = $var4 - $var5 | 0; - var$4 = $this.$worldObj; - var$5 = nms_EntityXPOrb__init_0($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, $var5); - $var5 = nms_World_spawnEntityInWorld(var$4, var$5); - var$13 = var$4.$entityList; - ju_HashMap_putImpl(var$13.$backingMap, var$5, var$13); - if (!$var5) { - var$4 = var$4.$entitySpawnQueue; - ju_HashMap_putImpl(var$4.$backingMap, var$5, var$4); - } - } - } - } - if ($this.$deathTicks == 1) { - var$4 = $this.$worldObj; - $var4 = 1018; - $var5 = $this.$posX | 0; - var$15 = $this.$posY | 0; - var$16 = $this.$posZ | 0; - var$17 = 0; - var$18 = 0; - if (var$18 < var$4.$worldAccesses.$size0) { - var$5 = var$4.$worldAccesses; - if (var$18 >= 0 && var$18 < var$5.$size0) { - var$5 = var$5.$array1.data[var$18]; - $ptr = 3; - continue main; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - } - } - var$7 = 0.0; - var$11 = 0.10000000149011612; - var$6 = 0.0; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$7, var$11, var$6); - if ($rt_suspending()) { - break main; - } - $var1 = $this.$rotationYaw + 20.0; - $this.$rotationYaw = $var1; - $this.$renderYawOffset = $var1; - if ($this.$deathTicks == 200 && !$this.$worldObj.$isRemote) { - $var4 = 2000; - while ($var4 > 0) { - $var5 = nms_EntityXPOrb_getXPSplit($var4); - $var4 = $var4 - $var5 | 0; - var$4 = $this.$worldObj; - var$5 = nms_EntityXPOrb__init_0($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, $var5); - $var5 = nms_World_spawnEntityInWorld(var$4, var$5); - var$13 = var$4.$entityList; - ju_HashMap_putImpl(var$13.$backingMap, var$5, var$13); - if (!$var5) { - var$4 = var$4.$entitySpawnQueue; - ju_HashMap_putImpl(var$4.$backingMap, var$5, var$4); - } - } - var$11 = $this.$posX; - var$15 = var$11 | 0; - if (var$11 < var$15) - var$15 = var$15 - 1 | 0; - var$11 = $this.$posZ; - $var5 = var$11 | 0; - if (var$11 < $var5) - $var5 = $var5 - 1 | 0; - $ptr = 4; - continue main; - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$13, var$5, var$6, var$7, var$8, var$9, var$10, var$11); - if ($rt_suspending()) { - break main; - } - $var4 = $var4 + 1 | 0; - if ($var4 < var$4.$worldAccesses.$size0) { - var$13 = var$4.$worldAccesses; - if ($var4 >= 0 && $var4 < var$13.$size0) { - var$13 = var$13.$array1.data[$var4]; - continue main; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - if (!$this.$worldObj.$isRemote) { - b: { - if ($this.$deathTicks > 150 && !($this.$deathTicks % 5 | 0)) { - $var4 = 1000; - while (true) { - if ($var4 <= 0) - break b; - $var5 = nms_EntityXPOrb_getXPSplit($var4); - $var4 = $var4 - $var5 | 0; - var$4 = $this.$worldObj; - var$5 = nms_EntityXPOrb__init_0($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, $var5); - $var5 = nms_World_spawnEntityInWorld(var$4, var$5); - var$13 = var$4.$entityList; - ju_HashMap_putImpl(var$13.$backingMap, var$5, var$13); - if (!$var5) { - var$4 = var$4.$entitySpawnQueue; - ju_HashMap_putImpl(var$4.$backingMap, var$5, var$4); - } - } - } - } - if ($this.$deathTicks == 1) { - var$4 = $this.$worldObj; - $var4 = 1018; - $var5 = $this.$posX | 0; - var$15 = $this.$posY | 0; - var$16 = $this.$posZ | 0; - var$17 = 0; - var$18 = 0; - if (var$18 < var$4.$worldAccesses.$size0) { - var$5 = var$4.$worldAccesses; - if (var$18 >= 0 && var$18 < var$5.$size0) { - var$5 = var$5.$array1.data[var$18]; - $ptr = 3; - continue main; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - } - } - var$7 = 0.0; - var$11 = 0.10000000149011612; - var$6 = 0.0; - $ptr = 1; - continue main; - case 3: - nms_RenderGlobal_broadcastSound(var$5, $var4, $var5, var$15, var$16, var$17); - if ($rt_suspending()) { - break main; - } - var$18 = var$18 + 1 | 0; - if (var$18 >= var$4.$worldAccesses.$size0) { - var$7 = 0.0; - var$11 = 0.10000000149011612; - var$6 = 0.0; - $ptr = 1; - continue main; - } - var$5 = var$4.$worldAccesses; - if (var$18 >= 0 && var$18 < var$5.$size0) { - var$5 = var$5.$array1.data[var$18]; - continue main; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - case 4: - nms_EntityDragon_createEnderPortal($this, var$15, $var5); - if ($rt_suspending()) { - break main; - } - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $var4, var$13, $var5, var$15, var$16, var$17, var$18, $ptr); -} -function nms_EntityDragon_createEnderPortal($this, $par1, $par2) { - var $var3, $var5, $var4, var$6, var$7, var$8, var$9, var$10, var$11, $var6, $var4_0, $var7, $var8, $var10, $var12, var$18, var$19, var$20, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var4_0 = $thread.pop();$var6 = $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();$var4 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = 64; - nms_BlockEndPortal_bossDefeated = 1; - $var5 = 63; - $var4 = $par1 - 4 | 0; - var$6 = $par1 + 4 | 0; - var$7 = $par2 - 4 | 0; - var$8 = $par2 + 4 | 0; - var$9 = 12.25; - var$10 = 6.25; - a: while (true) { - if ($var5 > 96) { - var$11 = $this.$worldObj; - $var4 = 64; - nms_Block_$callClinit(); - $var6 = nms_Block_bedrock.$blockID; - $var4_0 = 0; - var$6 = 3; - $ptr = 1; - continue main; - } - $var6 = $var4; - while ($var6 <= var$6) { - $var7 = var$7; - while ($var7 <= var$8) { - $var8 = $var6 - $par1 | 0; - $var10 = $var7 - $par2 | 0; - $var12 = $var8 * $var8 + $var10 * $var10; - if ($var12 <= var$9) { - $var4_0 = $rt_compare($var5, $var3); - if ($var4_0 >= 0) { - if ($var4_0 > 0) { - var$18 = $this.$worldObj; - $var4_0 = 0; - var$19 = 0; - var$20 = 3; - $ptr = 10; - continue main; - } - if ($var12 <= var$10) { - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_endPortal.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 12; - continue main; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 13; - continue main; - } - if ($var12 <= var$10) - break a; - } - $var7 = $var7 + 1 | 0; - } - $var6 = $var6 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 11; - continue main; - case 1: - nms_World_setBlock(var$11, $par1, $var4, $par2, $var6, $var4_0, var$6); - if ($rt_suspending()) { - break main; - } - var$18 = $this.$worldObj; - $var4 = 65; - $var6 = nms_Block_bedrock.$blockID; - $var4_0 = 0; - var$6 = 3; - $ptr = 2; - case 2: - nms_World_setBlock(var$18, $par1, $var4, $par2, $var6, $var4_0, var$6); - if ($rt_suspending()) { - break main; - } - var$18 = $this.$worldObj; - $var4 = 66; - $var6 = nms_Block_bedrock.$blockID; - $var4_0 = 0; - var$6 = 3; - $ptr = 3; - case 3: - nms_World_setBlock(var$18, $par1, $var4, $par2, $var6, $var4_0, var$6); - if ($rt_suspending()) { - break main; - } - var$18 = $this.$worldObj; - $var6 = $par1 - 1 | 0; - $var4_0 = nms_Block_torchWood.$blockID; - var$6 = 0; - var$7 = 3; - $ptr = 4; - case 4: - nms_World_setBlock(var$18, $var6, $var4, $par2, $var4_0, var$6, var$7); - if ($rt_suspending()) { - break main; - } - var$18 = $this.$worldObj; - $var6 = $par1 + 1 | 0; - $var4_0 = nms_Block_torchWood.$blockID; - var$6 = 0; - var$7 = 3; - $ptr = 5; - case 5: - nms_World_setBlock(var$18, $var6, $var4, $par2, $var4_0, var$6, var$7); - if ($rt_suspending()) { - break main; - } - var$18 = $this.$worldObj; - $var6 = $par2 - 1 | 0; - $var4_0 = nms_Block_torchWood.$blockID; - var$6 = 0; - var$7 = 3; - $ptr = 6; - case 6: - nms_World_setBlock(var$18, $par1, $var4, $var6, $var4_0, var$6, var$7); - if ($rt_suspending()) { - break main; - } - var$18 = $this.$worldObj; - $var6 = $par2 + 1 | 0; - $var4_0 = nms_Block_torchWood.$blockID; - var$6 = 0; - var$7 = 3; - $ptr = 7; - case 7: - nms_World_setBlock(var$18, $par1, $var4, $var6, $var4_0, var$6, var$7); - if ($rt_suspending()) { - break main; - } - var$18 = $this.$worldObj; - $var4 = 67; - $var6 = nms_Block_bedrock.$blockID; - $var4_0 = 0; - var$6 = 3; - $ptr = 8; - case 8: - nms_World_setBlock(var$18, $par1, $var4, $par2, $var6, $var4_0, var$6); - if ($rt_suspending()) { - break main; - } - var$18 = $this.$worldObj; - $var4 = 68; - $var6 = nms_Block_dragonEgg.$blockID; - $var4_0 = 0; - var$6 = 3; - $ptr = 9; - case 9: - nms_World_setBlock(var$18, $par1, $var4, $par2, $var6, $var4_0, var$6); - if ($rt_suspending()) { - break main; - } - nms_BlockEndPortal_bossDefeated = 0; - return; - case 10: - nms_World_setBlock(var$18, $var6, $var5, $var7, $var4_0, var$19, var$20); - if ($rt_suspending()) { - break main; - } - while (true) { - $var7 = $var7 + 1 | 0; - while ($var7 > var$8) { - $var6 = $var6 + 1 | 0; - while ($var6 > var$6) { - $var5 = $var5 + 1 | 0; - if ($var5 > 96) { - var$11 = $this.$worldObj; - $var4 = 64; - nms_Block_$callClinit(); - $var6 = nms_Block_bedrock.$blockID; - $var4_0 = 0; - var$6 = 3; - $ptr = 1; - continue main; - } - $var6 = $var4; - } - $var7 = var$7; - } - $var8 = $var6 - $par1 | 0; - $var10 = $var7 - $par2 | 0; - $var12 = $var8 * $var8 + $var10 * $var10; - if ($var12 > var$9) - continue; - $var4_0 = $rt_compare($var5, $var3); - if ($var4_0 >= 0) { - if ($var4_0 > 0) { - var$18 = $this.$worldObj; - $var4_0 = 0; - var$19 = 0; - var$20 = 3; - continue main; - } - if ($var12 <= var$10) { - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_endPortal.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 12; - continue main; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 13; - continue main; - } - if ($var12 > var$10) - continue; - else - break; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 11; - case 11: - nms_World_setBlock(var$18, $var6, $var5, $var7, $var4_0, var$19, var$20); - if ($rt_suspending()) { - break main; - } - while (true) { - $var7 = $var7 + 1 | 0; - while ($var7 > var$8) { - $var6 = $var6 + 1 | 0; - while ($var6 > var$6) { - $var5 = $var5 + 1 | 0; - if ($var5 > 96) { - var$11 = $this.$worldObj; - $var4 = 64; - nms_Block_$callClinit(); - $var6 = nms_Block_bedrock.$blockID; - $var4_0 = 0; - var$6 = 3; - $ptr = 1; - continue main; - } - $var6 = $var4; - } - $var7 = var$7; - } - $var8 = $var6 - $par1 | 0; - $var10 = $var7 - $par2 | 0; - $var12 = $var8 * $var8 + $var10 * $var10; - if ($var12 > var$9) - continue; - $var4_0 = $rt_compare($var5, $var3); - if ($var4_0 >= 0) { - if ($var4_0 > 0) { - var$18 = $this.$worldObj; - $var4_0 = 0; - var$19 = 0; - var$20 = 3; - $ptr = 10; - continue main; - } - if ($var12 <= var$10) { - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_endPortal.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 12; - continue main; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 13; - continue main; - } - if ($var12 > var$10) - continue; - else - break; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - continue main; - case 12: - nms_World_setBlock(var$18, $var6, $var5, $var7, $var4_0, var$19, var$20); - if ($rt_suspending()) { - break main; - } - while (true) { - $var7 = $var7 + 1 | 0; - while ($var7 > var$8) { - $var6 = $var6 + 1 | 0; - while ($var6 > var$6) { - $var5 = $var5 + 1 | 0; - if ($var5 > 96) { - var$11 = $this.$worldObj; - $var4 = 64; - nms_Block_$callClinit(); - $var6 = nms_Block_bedrock.$blockID; - $var4_0 = 0; - var$6 = 3; - $ptr = 1; - continue main; - } - $var6 = $var4; - } - $var7 = var$7; - } - $var8 = $var6 - $par1 | 0; - $var10 = $var7 - $par2 | 0; - $var12 = $var8 * $var8 + $var10 * $var10; - if ($var12 > var$9) - continue; - $var4_0 = $rt_compare($var5, $var3); - if ($var4_0 >= 0) { - if ($var4_0 > 0) { - var$18 = $this.$worldObj; - $var4_0 = 0; - var$19 = 0; - var$20 = 3; - $ptr = 10; - continue main; - } - if ($var12 <= var$10) { - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_endPortal.$blockID; - var$19 = 0; - var$20 = 3; - continue main; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 13; - continue main; - } - if ($var12 > var$10) - continue; - else - break; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 11; - continue main; - case 13: - nms_World_setBlock(var$18, $var6, $var5, $var7, $var4_0, var$19, var$20); - if ($rt_suspending()) { - break main; - } - while (true) { - $var7 = $var7 + 1 | 0; - while ($var7 > var$8) { - $var6 = $var6 + 1 | 0; - while ($var6 > var$6) { - $var5 = $var5 + 1 | 0; - if ($var5 > 96) { - var$11 = $this.$worldObj; - $var4 = 64; - nms_Block_$callClinit(); - $var6 = nms_Block_bedrock.$blockID; - $var4_0 = 0; - var$6 = 3; - $ptr = 1; - continue main; - } - $var6 = $var4; - } - $var7 = var$7; - } - $var8 = $var6 - $par1 | 0; - $var10 = $var7 - $par2 | 0; - $var12 = $var8 * $var8 + $var10 * $var10; - if ($var12 > var$9) - continue; - $var4_0 = $rt_compare($var5, $var3); - if ($var4_0 >= 0) { - if ($var4_0 > 0) { - var$18 = $this.$worldObj; - $var4_0 = 0; - var$19 = 0; - var$20 = 3; - $ptr = 10; - continue main; - } - if ($var12 <= var$10) { - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_endPortal.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 12; - continue main; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - continue main; - } - if ($var12 > var$10) - continue; - else - break; - } - var$18 = $this.$worldObj; - nms_Block_$callClinit(); - $var4_0 = nms_Block_bedrock.$blockID; - var$19 = 0; - var$20 = 3; - $ptr = 11; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, $var5, $var4, var$6, var$7, var$8, var$9, var$10, var$11, $var6, $var4_0, $var7, $var8, $var10, $var12, var$18, var$19, var$20, $ptr); -} -function nms_EntityDragon_despawnEntity($this) { - return; -} -function nms_EntityDragon_getParts($this) { - return $this.$dragonPartArray; -} -function nms_EntityDragon_canBeCollidedWith($this) { - return 0; -} -function nms_EntityDragon_getBossHealth($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 16); -} -function nms_EntityDragon_func_82194_d($this) { - return $this.$worldObj; -} -function nms_EntityDragon_getLivingSound($this) { - return $rt_s(1326); -} -function nms_EntityDragon_getHurtSound($this) { - return $rt_s(1327); -} -function nms_EntityDragon_getSoundVolume($this) { - return 5.0; -} -function nms_RenderDragon() { - nms_RenderLiving.call(this); - this.$modelDragon = null; -} -var nms_RenderDragon_updateModelState = 0; -var nms_RenderDragon_tex_shuffle = null; -var nms_RenderDragon_tex_beam = null; -var nms_RenderDragon_tex_eyes = null; -var nms_RenderDragon_entityTexture = null; -function nms_RenderDragon__init_0() { - var var_0 = new nms_RenderDragon(); - nms_RenderDragon__init_(var_0); - return var_0; -} -function nms_RenderDragon__init_($this) { - var var$1; - var$1 = nms_ModelDragon__init_(0.0); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 0.5; - $this.$modelDragon = $this.$mainModel; - $this.$renderPassModel = $this.$mainModel; -} -function nms_RenderDragon_rotateDragonBody($this, $par1EntityDragon, $par2, $par3, $par4) { - var $var5, $var6, var$7, var$8, var$9, var$10; - $var5 = nms_EntityDragon_getMovementOffsets($par1EntityDragon, 7, $par4).data[0]; - $var6 = nms_EntityDragon_getMovementOffsets($par1EntityDragon, 5, $par4).data[1] - nms_EntityDragon_getMovementOffsets($par1EntityDragon, 10, $par4).data[1]; - nleg_EaglerAdapterGL30_glRotatef( -$var5, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($var6 * 10.0, 1.0, 0.0, 0.0); - var$7 = nleg_EaglerAdapterGL30_deevis; - var$7.$x = 0.0; - var$7.$y = 0.0; - var$7.$z = 1.0; - var$7 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$7, var$7); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - var$8.$sb = var$7; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - var$7 = new jnci_UTF8Charset; - jnc_Charset__init_(var$7, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = var$7; - jl_System_errCache = var$8; - } - var$9 = jl_System_errCache; - var$8 = var$9.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$10 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$10, var$10 + 1 | 0); - var$8.$buffer.data[var$10] = 10; - ji_PrintStream_printSB(var$9); - } - if ($par1EntityDragon.$deathTime > 0) { - $par3 = jl_Math_sqrt(($par1EntityDragon.$deathTime + $par4 - 1.0) / 20.0 * 1.600000023841858); - if ($par3 > 1.0) - $par3 = 1.0; - nleg_EaglerAdapterGL30_glRotatef($par3 * 90.0, 0.0, 0.0, 1.0); - } -} -function nms_RenderDragon_bindTexture($this, $par1EntityLiving) { - nle_TextureLocation_bindTexture(nms_RenderDragon_entityTexture); -} -function nms_RenderDragon_renderDragonModel($this, $par1EntityDragon, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, var$9, var$10; - if ($par1EntityDragon.$deathTicks > 0) { - a: { - $var8 = $par1EntityDragon.$deathTicks / 200.0; - nleg_EaglerAdapterGL30_$callClinit(); - var$9 = 518; - switch (5) { - case 5: - var$9 = 518; - break a; - case 7: - var$9 = 513; - break a; - case 52: - var$9 = 514; - break a; - default: - } - } - b: { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthFunc(var$9); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_alphaThresh = $var8; - nle_TextureLocation_bindTexture(nms_RenderDragon_tex_shuffle); - $this.$mainModel.$render0($par1EntityDragon, $par2, $par3, $par4, $par5, $par6, $par7); - nleg_EaglerAdapterGL30_alphaThresh = 0.10000000149011612; - var$9 = 518; - switch (52) { - case 5: - var$9 = 518; - break b; - case 7: - var$9 = 513; - break b; - case 52: - var$9 = 514; - break b; - default: - } - } - nlea_EaglerAdapterImpl2_webgl.depthFunc(var$9); - } - nle_TextureLocation_bindTexture(nms_RenderDragon_entityTexture); - $this.$mainModel.$render0($par1EntityDragon, $par2, $par3, $par4, $par5, $par6, $par7); - if ($par1EntityDragon.$hurtTime > 0) { - c: { - nleg_EaglerAdapterGL30_$callClinit(); - var$10 = 518; - switch (52) { - case 5: - var$10 = 518; - break c; - case 7: - var$10 = 513; - break c; - case 52: - var$10 = 514; - break c; - default: - } - } - d: { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthFunc(var$10); - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 0.0; - nleg_EaglerAdapterGL30_colorB = 0.0; - nleg_EaglerAdapterGL30_colorA = 0.5; - $this.$mainModel.$render0($par1EntityDragon, $par2, $par3, $par4, $par5, $par6, $par7); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glDisable(16); - var$9 = 518; - switch (5) { - case 5: - var$9 = 518; - break d; - case 7: - var$9 = 513; - break d; - case 52: - var$9 = 514; - break d; - default: - } - } - nlea_EaglerAdapterImpl2_webgl.depthFunc(var$9); - } -} -function nms_RenderDragon_renderDragon($this, $par1EntityDragon, $par2, $par4, $par6, $par8, $par9) { - var $var17, var$8, var$9, $var11, var$11, var$12, var$13, $var12, $var13, $var14, $var19, $var15, $var16, $var18, $var21, var$22, $var22, $var23, $var24, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var24 = $thread.pop();$var23 = $thread.pop();$var22 = $thread.pop();var$22 = $thread.pop();$var21 = $thread.pop();$var18 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var19 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var11 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var17 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 - = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityDragon = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_BossStatus_healthScale = nms_DataWatcher_getWatchableObjectInt($par1EntityDragon.$dataWatcher, 16) / 200.0; - nms_BossStatus_statusBarLength = 100; - if (nms_DataWatcher_getWatchableObjectString($par1EntityDragon.$dataWatcher, 5).$characters.data.length <= 0 ? 0 : 1) - $var17 = nms_EntityLiving_func_94057_bL($par1EntityDragon); - else { - $var17 = nms_EntityList_classToStringMapping; - var$8 = jl_Class_getClass($par1EntityDragon.constructor); - if (var$8 !== null) { - var$9 = jl_Object_hashCode(var$8); - $var17 = ju_HashMap_findNonNullKeyEntry($var17, var$8, var$9 & ($var17.$elementData.data.length - 1 | 0), var$9); - } else { - $var17 = $var17.$elementData.data[0]; - while ($var17 !== null && $var17.$key !== null) { - $var17 = $var17.$next1; - } - } - $var17 = $var17 === null ? null : $var17.$value0; - if ($var17 === null) - $var17 = $rt_s(681); - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - jl_StringBuilder_insert6(var$8, var$8.$length, $rt_s(682)); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $var17); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(683)); - $var17 = nms_StatCollector_translateToLocal(jl_String__init_0(var$8.$buffer, 0, var$8.$length)); - } - nms_BossStatus_bossName = $var17; - nms_BossStatus_field_82825_d = 0; - if (nms_RenderDragon_updateModelState != 4) { - $this.$mainModel = nms_ModelDragon__init_(0.0); - nms_RenderDragon_updateModelState = 4; - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityDragon, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - if ($par1EntityDragon.$healingEnderCrystal !== null) { - $var11 = nms_MathHelper_sin(($par1EntityDragon.$healingEnderCrystal.$innerRotation + $par9) * 0.20000000298023224) / 2.0 + 0.5; - $par8 = ($var11 * $var11 + $var11) * 0.20000000298023224; - var$11 = $par1EntityDragon.$healingEnderCrystal.$posX - $par1EntityDragon.$posX; - var$12 = $par1EntityDragon.$prevPosX - $par1EntityDragon.$posX; - var$13 = 1.0 - $par9; - $var12 = var$11 - var$12 * var$13; - $var13 = $par8 + $par1EntityDragon.$healingEnderCrystal.$posY - 1.0 - $par1EntityDragon.$posY - ($par1EntityDragon.$prevPosY - $par1EntityDragon.$posY) * var$13; - $var14 = $par1EntityDragon.$healingEnderCrystal.$posZ - $par1EntityDragon.$posZ - ($par1EntityDragon.$prevPosZ - $par1EntityDragon.$posZ) * var$13; - $par8 = $var12 * $var12; - $var19 = $var14 * $var14; - $var15 = nms_MathHelper_sqrt_float($par8 + $var19); - $var19 = $par8 + $var13 * $var13 + $var19; - $var16 = nms_MathHelper_sqrt_float($var19); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef($par2, $par4 + 2.0, $par6); - nleg_EaglerAdapterGL30_glRotatef( -jl_Math_atan2($var14, $var12) * 180.0 / 3.1415927410125732 - 90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -jl_Math_atan2($var15, $var13) * 180.0 / 3.1415927410125732 - 90.0, 1.0, 0.0, 0.0); - nlea_Tessellator_$callClinit(); - $var17 = nlea_Tessellator_instance; - nms_RenderHelper_disableStandardItemLighting(); - nleg_EaglerAdapterGL30_glDisable(46); - nle_TextureLocation_bindTexture(nms_RenderDragon_tex_beam); - nleg_EaglerAdapterGL30_glShadeModel(3); - $var18 = 0.0 - ($par1EntityDragon.$ticksExisted + $par9) * 0.009999999776482582; - $var19 = nms_MathHelper_sqrt_float($var19) / 32.0 - ($par1EntityDragon.$ticksExisted + $par9) * 0.009999999776482582; - nlea_Tessellator_startDrawing($var17, 95); - $var21 = 0; - $par2 = $var19; - var$12 = $var16; - var$22 = $var18; - while ($var21 <= 8) { - $par8 = $var21 % 8 | 0; - $par9 = $par8 * 3.1415927410125732 * 2.0 / 8.0; - $var22 = nms_MathHelper_sin($par9) * 0.75; - $var23 = nms_MathHelper_cos($par9) * 0.75; - $var24 = $par8 * 1.0 / 8.0; - nlea_Tessellator_setColorOpaque_I($var17, 0); - $par4 = $var22 * 0.20000000298023224; - $par6 = $var23 * 0.20000000298023224; - var$11 = $var24; - nlea_Tessellator_addVertexWithUV($var17, $par4, $par6, 0.0, var$11, $par2); - nlea_Tessellator_setColorOpaque_I($var17, 16777215); - nlea_Tessellator_addVertexWithUV($var17, $var22, $var23, var$12, var$11, var$22); - $var21 = $var21 + 1 | 0; - } - nlea_Tessellator_draw($var17); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glShadeModel(34); - nms_RenderHelper_enableStandardItemLighting(); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityDragon, $par2, $par4, $par6, $par8, $par9, $var17, var$8, var$9, $var11, var$11, var$12, var$13, $var12, $var13, $var14, $var19, $var15, $var16, $var18, $var21, var$22, $var22, $var23, $var24, $ptr); -} -function nms_RenderDragon_renderDragonDying($this, $par1EntityDragon, $par2) { - var $var3, $var4, $var5, $var6, var$7, var$8, $var7, var$10, var$11, $var8, $var9, var$14, var$15, var$16, var$17; - nlea_Tessellator_$callClinit(); - $var3 = nlea_Tessellator_instance; - if ($par1EntityDragon.$deathTicks > 0) { - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(15); - $var4 = ($par1EntityDragon.$deathTicks + $par2) / 200.0; - $var5 = 0.0; - if ($var4 > 0.800000011920929) - $var5 = ($var4 - 0.800000011920929) / 0.20000000298023224; - $var6 = new ju_Random; - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 1); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glEnable(46); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityDragon = nleg_EaglerAdapterGL30_deevis; - $par1EntityDragon.$x = 0.0; - $par1EntityDragon.$y = (-1.0); - $par1EntityDragon.$z = (-2.0); - $par1EntityDragon = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityDragon, $par1EntityDragon); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$7 = new ji_PrintStream; - var$7.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityDragon = new jl_StringBuilder; - $par1EntityDragon.$buffer = $rt_createCharArray(16); - var$7.$sb = $par1EntityDragon; - var$7.$buffer0 = $rt_createCharArray(32); - var$7.$autoFlush = 0; - $par1EntityDragon = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityDragon, $rt_s(2), $rt_createArray(jl_String, 0)); - var$7.$charset = $par1EntityDragon; - jl_System_errCache = var$7; - } - var$7 = jl_System_errCache; - $par1EntityDragon = var$7.$sb; - jl_AbstractStringBuilder_insert($par1EntityDragon, $par1EntityDragon.$length, $rt_s(220)); - var$8 = $par1EntityDragon.$length; - jl_AbstractStringBuilder_insertSpace($par1EntityDragon, var$8, var$8 + 1 | 0); - $par1EntityDragon.$buffer.data[var$8] = 10; - ji_PrintStream_printSB(var$7); - } - $var7 = 0; - var$10 = ($var4 + $var4 * $var4) / 2.0 * 60.0; - var$11 = $var4 * 90.0; - while ($var7 < var$10) { - nleg_EaglerAdapterGL30_glRotatef(Math.random() * 360.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(Math.random() * 360.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(Math.random() * 360.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef(Math.random() * 360.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(ju_Random_nextDouble($var6) * 360.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(ju_Random_nextFloat($var6) * 360.0 + var$11, 0.0, 0.0, 1.0); - nlea_Tessellator_startDrawing($var3, 145); - $var8 = ju_Random_nextFloat($var6) * 20.0 + 5.0 + $var5 * 10.0; - $var9 = ju_Random_nextFloat($var6) * 2.0 + 1.0 + $var5 * 2.0; - nlea_Tessellator_setColorRGBA_I($var3, 16777215, 255.0 * (1.0 - $var5) | 0); - nlea_Tessellator_addVertex($var3, 0.0, 0.0, 0.0); - nlea_Tessellator_setColorRGBA_I($var3, 16711935, 0); - var$14 = $var9; - var$15 = (-0.866) * var$14; - var$16 = $var8; - var$17 = (-0.5) * $var9; - nlea_Tessellator_addVertex($var3, var$15, var$16, var$17); - nlea_Tessellator_addVertex($var3, 0.866 * var$14, var$16, var$17); - nlea_Tessellator_addVertex($var3, 0.0, var$16, 1.0 * $var9); - nlea_Tessellator_addVertex($var3, var$15, var$16, var$17); - nlea_Tessellator_draw($var3); - $var7 = $var7 + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - } -} -function nms_RenderDragon_renderGlow($this, $par1EntityDragon, $par2, $par3) { - var var$4, var$5, var$6, var$7; - if ($par2 == 1) { - a: { - nleg_EaglerAdapterGL30_$callClinit(); - var$4 = 518; - switch (5) { - case 5: - var$4 = 518; - break a; - case 7: - var$4 = 513; - break a; - case 52: - var$4 = 514; - break a; - default: - } - } - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthFunc(var$4); - } - if ($par2) - return (-1); - b: { - nle_TextureLocation_bindTexture(nms_RenderDragon_tex_eyes); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glBlendFunc(1, 1); - nleg_EaglerAdapterGL30_glDisable(13); - var$5 = 518; - switch (52) { - case 5: - var$5 = 518; - break b; - case 7: - var$5 = 513; - break b; - case 52: - var$5 = 514; - break b; - default: - } - } - c: { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthFunc(var$5); - switch (nms_OpenGlHelper_lightmapTexUnit) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = 61680.0; - nleg_EaglerAdapterGL30_tex1Y = 0.0; - break c; - default: - if (jl_System_errCache === null) { - var$6 = new ji_PrintStream; - var$6.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityDragon = new jl_StringBuilder; - $par1EntityDragon.$buffer = $rt_createCharArray(16); - var$6.$sb = $par1EntityDragon; - var$6.$buffer0 = $rt_createCharArray(32); - var$6.$autoFlush = 0; - $par1EntityDragon = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityDragon, $rt_s(2), $rt_createArray(jl_String, 0)); - var$6.$charset = $par1EntityDragon; - 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(238)); - var$5 = var$6.$length; - jl_AbstractStringBuilder_insertSpace(var$6, var$5, var$5 + 1 | 0); - var$6.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$7); - break c; - } - nleg_EaglerAdapterGL30_tex0X = 61680.0; - nleg_EaglerAdapterGL30_tex0Y = 0.0; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - return 1; -} -function nms_RenderDragon_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderDragon_renderGlow($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderDragon_renderEquippedItems($this, $par1EntityLiving, $par2) { - nms_RenderDragon_renderDragonDying($this, $par1EntityLiving, $par2); -} -function nms_RenderDragon_rotateCorpse($this, $par1EntityLiving, $par2, $par3, $par4) { - nms_RenderDragon_rotateDragonBody($this, $par1EntityLiving, $par2, $par3, $par4); -} -function nms_RenderDragon_renderModel($this, $par1EntityLiving, $par2, $par3, $par4, $par5, $par6, $par7) { - nms_RenderDragon_renderDragonModel($this, $par1EntityLiving, $par2, $par3, $par4, $par5, $par6, $par7); -} -function nms_RenderDragon_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderDragon_renderDragon($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderDragon_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderDragon_renderDragon($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderDragon__clinit_() { - var var$1, var$2; - nms_RenderDragon_updateModelState = 0; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1328); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderDragon_tex_shuffle = var$1; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(1329); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_RenderDragon_tex_beam = var$2; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(1330); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_RenderDragon_tex_eyes = var$2; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(1331); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_RenderDragon_entityTexture = var$2; -} -function nms_EntityEnderCrystal() { - var a = this; nms_Entity.call(a); - a.$innerRotation = 0; - a.$health0 = 0; -} -function nms_EntityEnderCrystal__init_0() { - var var_0 = new nms_EntityEnderCrystal(); - nms_EntityEnderCrystal__init_(var_0); - return var_0; -} -function nms_EntityEnderCrystal__init_1(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityEnderCrystal(); - nms_EntityEnderCrystal__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityEnderCrystal__init_($this) { - nms_Entity__init_0($this); - $this.$innerRotation = 0; - $this.$preventEntitySpawning = 1; - nms_Entity_setSize($this, 2.0, 2.0); - $this.$yOffset0 = $this.$height1 / 2.0; - $this.$health0 = 5; - $this.$innerRotation = Math.random() * 100000.0 | 0; -} -function nms_EntityEnderCrystal__init_2($this, $par1World, $par2, $par4, $par6) { - nms_EntityEnderCrystal__init_($this); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - nms_Entity_setPosition($this, $par2, $par4, $par6); -} -function nms_EntityEnderCrystal_canTriggerWalking($this) { - return 0; -} -function nms_EntityEnderCrystal_entityInit($this) { - nms_DataWatcher_addObject($this.$dataWatcher, 8, jl_Integer_valueOf($this.$health0)); -} -function nms_EntityEnderCrystal_onUpdate($this) { - var var$1, $var1, $var2, $var3, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$innerRotation = $this.$innerRotation + 1 | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 8, jl_Integer_valueOf($this.$health0)); - var$1 = $this.$posX; - $var1 = var$1 | 0; - if (var$1 < $var1) - $var1 = $var1 - 1 | 0; - var$1 = $this.$posY; - $var2 = var$1 | 0; - if (var$1 < $var2) - $var2 = $var2 - 1 | 0; - var$1 = $this.$posZ; - $var3 = var$1 | 0; - if (var$1 < $var3) - $var3 = $var3 - 1 | 0; - var$5 = nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3); - nms_Block_$callClinit(); - if (var$5 == nms_Block_fire.$blockID) - return; - var$6 = $this.$worldObj; - var$5 = nms_Block_fire.$blockID; - var$7 = 0; - var$8 = 3; - $ptr = 1; - case 1: - nms_World_setBlock(var$6, $var1, $var2, $var3, var$5, var$7, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, $var2, $var3, var$5, var$6, var$7, var$8, $ptr); -} -function nms_EntityEnderCrystal_getShadowSize($this) { - return 0.0; -} -function nms_EntityEnderCrystal_canBeCollidedWith($this) { - return 1; -} -function nms_EntityEnderCrystal_attackEntityFrom($this, $par1DamageSource, $par2) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - if (!$this.$isDead && !$this.$worldObj.$isRemote) { - $this.$health0 = 0; - if ($this.$health0 <= 0) { - $this.$isDead = 1; - if (!$this.$worldObj.$isRemote) { - var$3 = nms_Explosion__init_($this.$worldObj, null, $this.$posX, $this.$posY, $this.$posZ, 6.0); - var$3.$isFlaming = 0; - var$3.$isSmoking = 1; - $ptr = 1; - continue main; - } - } - } - return 1; - case 1: - nms_Explosion_doExplosionA(var$3); - if ($rt_suspending()) { - break main; - } - $par2 = 1; - $ptr = 2; - case 2: - nms_Explosion_doExplosionB(var$3, $par2); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, var$3, $ptr); -} -function nms_RenderEnderCrystal() { - var a = this; nms_Render.call(a); - a.$field_76996_a = 0; - a.$field_76995_b = null; -} -var nms_RenderEnderCrystal_tex = null; -function nms_RenderEnderCrystal__init_0() { - var var_0 = new nms_RenderEnderCrystal(); - nms_RenderEnderCrystal__init_(var_0); - return var_0; -} -function nms_RenderEnderCrystal__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$field_76996_a = (-1); - $this.$shadowSize = 0.5; -} -function nms_RenderEnderCrystal_doRenderEnderCrystal($this, $par1EntityEnderCrystal, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, var$9, var$10, var$11, var$12; - if ($this.$field_76996_a != 1) { - $this.$field_76995_b = nms_ModelEnderCrystal__init_(0.0, 1); - $this.$field_76996_a = 1; - } - $var10 = $par1EntityEnderCrystal.$innerRotation + $par9; - nleg_EaglerAdapterGL30_glPushMatrix(); - $par8 = $par2; - $par9 = $par4; - $var11 = $par6; - var$9 = nleg_EaglerAdapterGL30_deevis; - var$9.$x = $par8; - var$9.$y = $par9; - var$9.$z = $var11; - var$9 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$9, var$9); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - var$10.$sb = var$9; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - var$9 = new jnci_UTF8Charset; - jnc_Charset__init_(var$9, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = var$9; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - nle_TextureLocation_bindTexture(nms_RenderEnderCrystal_tex); - $par8 = $var10 * 0.20000000298023224; - $var11 = nms_MathHelper_SIN_TABLE.data[($par8 * 10430.3779296875 | 0) & 65535] / 2.0 + 0.5; - $par9 = $var11 + $var11 * $var11; - nms_ModelEnderCrystal_render($this.$field_76995_b, $par1EntityEnderCrystal, 0.0, $var10 * 3.0, $par9 * 0.20000000298023224, 0.0, 0.0, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_RenderEnderCrystal_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderEnderCrystal_doRenderEnderCrystal($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_RenderEnderCrystal__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1332); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderEnderCrystal_tex = var$1; -} -function nms_EntityWither() { - var a = this; nms_EntityMob.call(a); - a.$field_82220_d = null; - a.$field_82221_e = null; - a.$field_82217_f = null; - a.$field_82218_g = null; - a.$field_82223_h = null; - a.$field_82224_i = null; - a.$field_82222_j = 0; -} -var nms_EntityWither_attackEntitySelector = null; -function nms_EntityWither__init_0() { - var var_0 = new nms_EntityWither(); - nms_EntityWither__init_(var_0); - return var_0; -} -function nms_EntityWither__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - $this.$field_82220_d = $rt_createFloatArray(2); - $this.$field_82221_e = $rt_createFloatArray(2); - $this.$field_82217_f = $rt_createFloatArray(2); - $this.$field_82218_g = $rt_createFloatArray(2); - $this.$field_82223_h = $rt_createIntArray(2); - $this.$field_82224_i = $rt_createIntArray(2); - $this.$health = 300; - nms_Entity_setSize($this, 0.8999999761581421, 4.0); - $this.$isImmuneToFire = 1; - $this.$moveSpeed = 0.6000000238418579; - $this.$experienceValue = 50; -} -function nms_EntityWither_entityInit($this) { - var var$1, var$2; - nms_EntityLiving_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 100; - nms_DataWatcher_addObject(var$1, 16, var$2); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 0; - nms_DataWatcher_addObject(var$2, 17, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 0; - nms_DataWatcher_addObject(var$2, 18, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 0; - nms_DataWatcher_addObject(var$2, 19, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 0; - nms_DataWatcher_addObject(var$2, 20, var$1); -} -function nms_EntityWither_getShadowSize($this) { - return $this.$height1 / 8.0; -} -function nms_EntityWither_getLivingSound($this) { - return $rt_s(1333); -} -function nms_EntityWither_getHurtSound($this) { - return $rt_s(1334); -} -function nms_EntityWither_getDeathSound($this) { - return $rt_s(1335); -} -function nms_EntityWither_isInvul($this) { - var $var1, var$2; - a: { - b: { - $var1 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 20); - if ($var1 > 0) { - if ($var1 > 80) - break b; - if ((($var1 / 5 | 0) % 2 | 0) != 1) - break b; - } - var$2 = 0; - break a; - } - var$2 = 1; - } - return var$2; -} -function nms_EntityWither_onLivingUpdate($this) { - var $var1, $var2, $var4, $var6, $var8, $var20, $var22, $var21, $var3, $var10, $var12, $var14, $var16, $var18, $var19, $var23, $var5, $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var23 = $thread.pop();$var19 = $thread.pop();$var18 = $thread.pop();$var16 = $thread.pop();$var14 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var3 = $thread.pop();$var21 = $thread.pop();$var22 = $thread.pop();$var20 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote) - nms_DataWatcher_updateObject($this.$dataWatcher, 16, jl_Integer_valueOf($this.$health)); - $this.$motionY = $this.$motionY * 0.6000000238418579; - if (!$this.$worldObj.$isRemote && nms_EntityWither_getWatchedTargetId($this, 0) > 0) { - $var1 = nms_WorldClient_getEntityByID($this.$worldObj, nms_EntityWither_getWatchedTargetId($this, 0)); - if ($var1 !== null) { - a: { - if ($this.$posY >= $var1.$posY) { - if (nms_EntityWither_isArmored($this)) - break a; - if ($this.$posY >= $var1.$posY + 5.0) - break a; - } - if ($this.$motionY < 0.0) - $this.$motionY = 0.0; - $this.$motionY = $this.$motionY + (0.5 - $this.$motionY) * 0.6000000238418579; - } - $var2 = $var1.$posX - $this.$posX; - $var4 = $var1.$posZ - $this.$posZ; - $var6 = $var2 * $var2 + $var4 * $var4; - if ($var6 > 9.0) { - $var8 = nms_MathHelper_sqrt_double($var6); - $this.$motionX = $this.$motionX + ($var2 / $var8 * 0.5 - $this.$motionX) * 0.6000000238418579; - $this.$motionZ = $this.$motionZ + ($var4 / $var8 * 0.5 - $this.$motionZ) * 0.6000000238418579; - } - } - } - if ($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ > 0.05000000074505806) - $this.$rotationYaw = jl_Math_atan2($this.$motionZ, $this.$motionX) * 57.2957763671875 - 90.0; - $ptr = 1; - case 1: - nms_EntityMob_onLivingUpdate($this); - if ($rt_suspending()) { - break main; - } - $var20 = 0; - while ($var20 < 2) { - $this.$field_82218_g.data[$var20] = $this.$field_82221_e.data[$var20]; - $this.$field_82217_f.data[$var20] = $this.$field_82220_d.data[$var20]; - $var20 = $var20 + 1 | 0; - } - $var20 = 0; - while ($var20 < 2) { - $var22 = $var20 + 1 | 0; - $var21 = nms_EntityWither_getWatchedTargetId($this, $var22); - $var3 = null; - if ($var21 > 0) - $var3 = nms_WorldClient_getEntityByID($this.$worldObj, $var21); - if ($var3 === null) - $this.$field_82221_e.data[$var20] = nms_EntityWither_func_82204_b($this, $this.$field_82221_e.data[$var20], $this.$renderYawOffset, 10.0); - else { - $var4 = nms_EntityWither_func_82214_u($this, $var22); - $var6 = nms_EntityWither_func_82208_v($this, $var22); - $var8 = nms_EntityWither_func_82213_w($this, $var22); - $var10 = $var3.$posX - $var4; - $var12 = $var3.$posY + $var3.$getEyeHeight() - $var6; - $var14 = $var3.$posZ - $var8; - $var16 = nms_MathHelper_sqrt_double($var10 * $var10 + $var14 * $var14); - $var18 = jl_Math_atan2($var14, $var10) * 180.0 / 3.141592653589793 - 90.0; - $var19 = -(jl_Math_atan2($var12, $var16) * 180.0 / 3.141592653589793); - $this.$field_82220_d.data[$var20] = nms_EntityWither_func_82204_b($this, $this.$field_82220_d.data[$var20], $var19, 40.0); - $this.$field_82221_e.data[$var20] = nms_EntityWither_func_82204_b($this, $this.$field_82221_e.data[$var20], $var18, 10.0); - } - $var20 = $var22; - } - $var22 = nms_EntityWither_isArmored($this); - $var21 = 0; - if ($var21 < 3) { - $var23 = nms_EntityWither_func_82214_u($this, $var21); - $var5 = nms_EntityWither_func_82208_v($this, $var21); - $var7 = nms_EntityWither_func_82213_w($this, $var21); - $var3 = $this.$worldObj; - $var1 = $rt_s(852); - $var4 = $var23 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var6 = $var5 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var8 = $var7 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var10 = 0.0; - $var12 = 0.0; - $var14 = 0.0; - $ptr = 2; - continue main; - } - if (nms_EntityWither_func_82212_n($this) > 0) { - $var20 = 0; - if ($var20 < 3) { - $var3 = $this.$worldObj; - $var1 = $rt_s(709); - $var5 = $this.$posX + ju_Random_nextGaussian($this.$rand0) * 1.0; - $var6 = $this.$posY + ju_Random_nextFloat($this.$rand0) * 3.299999952316284; - $var8 = $this.$posZ + ju_Random_nextGaussian($this.$rand0) * 1.0; - $var7 = 0.699999988079071; - $var4 = 0.699999988079071; - $var23 = 0.8999999761581421; - $ptr = 4; - continue main; - } - } - return; - case 2: - nms_World_spawnParticle($var3, $var1, $var4, $var6, $var8, $var10, $var12, $var14); - if ($rt_suspending()) { - break main; - } - if ($var22 && !ju_Random_nextInt0($this.$worldObj.$rand, 4)) { - $var3 = $this.$worldObj; - $var1 = $rt_s(709); - $var23 = $var23 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var5 = $var5 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var7 = $var7 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var4 = 0.699999988079071; - $var6 = 0.699999988079071; - $var8 = 0.5; - $ptr = 3; - continue main; - } - $var21 = $var21 + 1 | 0; - if ($var21 < 3) { - $var23 = nms_EntityWither_func_82214_u($this, $var21); - $var5 = nms_EntityWither_func_82208_v($this, $var21); - $var7 = nms_EntityWither_func_82213_w($this, $var21); - $var3 = $this.$worldObj; - $var1 = $rt_s(852); - $var4 = $var23 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var6 = $var5 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var8 = $var7 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var10 = 0.0; - $var12 = 0.0; - $var14 = 0.0; - continue main; - } - if (nms_EntityWither_func_82212_n($this) > 0) { - $var20 = 0; - if ($var20 < 3) { - $var3 = $this.$worldObj; - $var1 = $rt_s(709); - $var5 = $this.$posX + ju_Random_nextGaussian($this.$rand0) * 1.0; - $var6 = $this.$posY + ju_Random_nextFloat($this.$rand0) * 3.299999952316284; - $var8 = $this.$posZ + ju_Random_nextGaussian($this.$rand0) * 1.0; - $var7 = 0.699999988079071; - $var4 = 0.699999988079071; - $var23 = 0.8999999761581421; - $ptr = 4; - continue main; - } - } - return; - case 3: - nms_World_spawnParticle($var3, $var1, $var23, $var5, $var7, $var4, $var6, $var8); - if ($rt_suspending()) { - break main; - } - $var21 = $var21 + 1 | 0; - if ($var21 < 3) { - $var23 = nms_EntityWither_func_82214_u($this, $var21); - $var5 = nms_EntityWither_func_82208_v($this, $var21); - $var7 = nms_EntityWither_func_82213_w($this, $var21); - $var3 = $this.$worldObj; - $var1 = $rt_s(852); - $var4 = $var23 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var6 = $var5 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var8 = $var7 + ju_Random_nextGaussian($this.$rand0) * 0.30000001192092896; - $var10 = 0.0; - $var12 = 0.0; - $var14 = 0.0; - $ptr = 2; - continue main; - } - if (nms_EntityWither_func_82212_n($this) > 0) { - $var20 = 0; - if ($var20 < 3) { - $var3 = $this.$worldObj; - $var1 = $rt_s(709); - $var5 = $this.$posX + ju_Random_nextGaussian($this.$rand0) * 1.0; - $var6 = $this.$posY + ju_Random_nextFloat($this.$rand0) * 3.299999952316284; - $var8 = $this.$posZ + ju_Random_nextGaussian($this.$rand0) * 1.0; - $var7 = 0.699999988079071; - $var4 = 0.699999988079071; - $var23 = 0.8999999761581421; - $ptr = 4; - continue main; - } - } - return; - case 4: - nms_World_spawnParticle($var3, $var1, $var5, $var6, $var8, $var7, $var4, $var23); - if ($rt_suspending()) { - break main; - } - $var20 = $var20 + 1 | 0; - if ($var20 >= 3) - return; - $var3 = $this.$worldObj; - $var1 = $rt_s(709); - $var5 = $this.$posX + ju_Random_nextGaussian($this.$rand0) * 1.0; - $var6 = $this.$posY + ju_Random_nextFloat($this.$rand0) * 3.299999952316284; - $var8 = $this.$posZ + ju_Random_nextGaussian($this.$rand0) * 1.0; - $var7 = 0.699999988079071; - $var4 = 0.699999988079071; - $var23 = 0.8999999761581421; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var4, $var6, $var8, $var20, $var22, $var21, $var3, $var10, $var12, $var14, $var16, $var18, $var19, $var23, $var5, $var7, $ptr); -} -function nms_EntityWither_updateAITasks($this) { - var $var1, $var13, $var4, $var8, $var6, var$6, $var12, $var12_0, $var15, $var17, $var18, $var14, $var19, $var7, $var20, $var9, $var10, $var11, var$19, $var10003, $var16, $var5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var5 = $thread.pop();$var16 = $thread.pop();$var10003 = $thread.pop();var$19 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var20 = $thread.pop();$var7 = $thread.pop();$var19 = $thread.pop();$var14 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var15 = $thread.pop();$var12_0 = $thread.pop();$var12 = $thread.pop();var$6 = $thread.pop();$var6 = $thread.pop();$var8 = $thread.pop();$var4 = $thread.pop();$var13 = $thread.pop();$var1 - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_EntityWither_func_82212_n($this) <= 0) { - $ptr = 1; - continue main; - } - $var1 = nms_EntityWither_func_82212_n($this) - 1 | 0; - if ($var1 > 0) { - nms_EntityWither_func_82215_s($this, $var1); - if (!($this.$ticksExisted % 10 | 0)) - nms_EntityLiving_heal($this, 10); - return; - } - $var13 = $this.$worldObj; - $var4 = $this.$posX; - $var8 = $this.$posY + nms_EntityLiving_getEyeHeight($this); - $var6 = $this.$posZ; - var$6 = 7.0; - $var12 = 0; - $var12_0 = nms_GameRules_getGameRuleBooleanValue(nms_World_getGameRules($this.$worldObj), $rt_s(701)); - $ptr = 2; - continue main; - case 1: - nms_EntityLiving_updateAITasks($this); - if ($rt_suspending()) { - break main; - } - $var1 = 1; - a: while (true) { - if ($var1 >= 3) { - if (nms_EntityLiving_getAttackTarget($this) === null) - nms_EntityWither_func_82211_c($this, 0, 0); - else - nms_EntityWither_func_82211_c($this, 0, nms_EntityLiving_getAttackTarget($this).$entityId); - b: { - if ($this.$field_82222_j > 0) { - $this.$field_82222_j = $this.$field_82222_j - 1 | 0; - if (!$this.$field_82222_j && nms_GameRules_getGameRuleBooleanValue(nms_World_getGameRules($this.$worldObj), $rt_s(701))) { - $var12 = nms_MathHelper_floor_double($this.$posY); - $var12_0 = nms_MathHelper_floor_double($this.$posX); - $var15 = nms_MathHelper_floor_double($this.$posZ); - $var17 = 0; - $var18 = (-1); - c: while (true) { - if ($var18 > 1) { - if (!$var17) - break b; - else { - $var14 = $this.$worldObj; - $var13 = null; - $var1 = 1012; - $var12_0 = $this.$posX | 0; - $var15 = $this.$posY | 0; - $var17 = $this.$posZ | 0; - $var12 = 0; - $ptr = 6; - continue main; - } - } - $var19 = (-1); - while ($var19 <= 1) { - $var7 = 0; - while ($var7 <= 3) { - $var20 = $var12_0 + $var18 | 0; - $var9 = $var12 + $var7 | 0; - $var10 = $var15 + $var19 | 0; - $var11 = nms_World_getBlockId($this.$worldObj, $var20, $var9, $var10); - if ($var11 > 0) { - nms_Block_$callClinit(); - if ($var11 != nms_Block_bedrock.$blockID && $var11 != nms_Block_endPortal.$blockID && $var11 != nms_Block_endPortalFrame.$blockID) - break c; - } - $var7 = $var7 + 1 | 0; - } - $var19 = $var19 + 1 | 0; - } - $var18 = $var18 + 1 | 0; - } - $var14 = $this.$worldObj; - $var1 = 1; - $ptr = 7; - continue main; - } - } - } - if (!($this.$ticksExisted % 20 | 0)) - nms_EntityLiving_heal($this, 1); - return; - } - d: { - $var12 = $this.$ticksExisted; - var$19 = $this.$field_82223_h.data; - $var12_0 = $var1 - 1 | 0; - if ($var12 >= var$19[$var12_0]) { - $this.$field_82223_h.data[$var12_0] = ($this.$ticksExisted + 10 | 0) + ju_Random_nextInt0($this.$rand0, 10) | 0; - if ($this.$worldObj.$difficultySetting >= 2) { - $var10003 = $this.$field_82224_i.data[$var12_0]; - $this.$field_82224_i.data[$var12_0] = $this.$field_82224_i.data[$var12_0] + 1 | 0; - if ($var10003 > 15) { - $var4 = nms_MathHelper_getRandomDoubleInRange($this.$rand0, $this.$posX - 10.0, $this.$posX + 10.0); - $var6 = nms_MathHelper_getRandomDoubleInRange($this.$rand0, $this.$posY - 5.0, $this.$posY + 5.0); - $var8 = nms_MathHelper_getRandomDoubleInRange($this.$rand0, $this.$posZ - 10.0, $this.$posZ + 10.0); - $var15 = $var1 + 1 | 0; - $var12 = 1; - $ptr = 4; - continue main; - } - } - $var12 = nms_EntityWither_getWatchedTargetId($this, $var1); - if ($var12 <= 0) { - $var13 = nms_World_selectEntitiesWithinAABB($this.$worldObj, $rt_cls(nms_EntityLiving), nms_AxisAlignedBB_expand($this.$boundingBox, 20.0, 8.0, 20.0), nms_EntityWither_attackEntitySelector); - $var16 = 0; - while (true) { - if ($var16 >= 10) - break d; - if (ju_AbstractCollection_isEmpty($var13)) - break d; - $var5 = ju_ArrayList_get($var13, ju_Random_nextInt0($this.$rand0, ju_ArrayList_size($var13))); - if ($var5 !== $this && nms_EntityLiving_isEntityAlive($var5) && nms_EntityLiving_canEntityBeSeen($this, $var5)) - break; - ju_ArrayList_remove0($var13, $var5); - $var16 = $var16 + 1 | 0; - } - if (!($var5 instanceof nms_EntityPlayer)) - nms_EntityWither_func_82211_c($this, $var1, $var5.$entityId); - else if (!$var5.$capabilities.$disableDamage) - nms_EntityWither_func_82211_c($this, $var1, $var5.$entityId); - } else { - $var14 = nms_WorldClient_getEntityByID($this.$worldObj, $var12); - if ($var14 !== null && $var14.$isEntityAlive() && nms_Entity_getDistanceSqToEntity($this, $var14) <= 900.0 && nms_EntityLiving_canEntityBeSeen($this, $var14)) - break a; - nms_EntityWither_func_82211_c($this, $var1, 0); - } - } - } - $var1 = $var1 + 1 | 0; - } - $var12 = $var1 + 1 | 0; - $var14 = $var14; - $ptr = 5; - continue main; - case 2: - nms_World_newExplosion($var13, $this, $var4, $var8, $var6, var$6, $var12, $var12_0); - if ($rt_suspending()) { - break main; - } - $var14 = $this.$worldObj; - $var12 = 1013; - $var12_0 = $this.$posX | 0; - $var15 = $this.$posY | 0; - $var17 = $this.$posZ | 0; - $var18 = 0; - $ptr = 3; - case 3: - nms_World_func_82739_e($var14, $var12, $var12_0, $var15, $var17, $var18); - if ($rt_suspending()) { - break main; - } - nms_EntityWither_func_82215_s($this, $var1); - if (!($this.$ticksExisted % 10 | 0)) - nms_EntityLiving_heal($this, 10); - return; - case 4: - nms_EntityWither_func_82209_a($this, $var15, $var4, $var6, $var8, $var12); - if ($rt_suspending()) { - break main; - } - $this.$field_82224_i.data[$var12_0] = 0; - a: while (true) { - d: { - $var12 = nms_EntityWither_getWatchedTargetId($this, $var1); - if ($var12 <= 0) { - $var13 = nms_World_selectEntitiesWithinAABB($this.$worldObj, $rt_cls(nms_EntityLiving), nms_AxisAlignedBB_expand($this.$boundingBox, 20.0, 8.0, 20.0), nms_EntityWither_attackEntitySelector); - $var16 = 0; - while (true) { - if ($var16 >= 10) - break d; - if (ju_AbstractCollection_isEmpty($var13)) - break d; - $var5 = ju_ArrayList_get($var13, ju_Random_nextInt0($this.$rand0, ju_ArrayList_size($var13))); - if ($var5 !== $this && nms_EntityLiving_isEntityAlive($var5) && nms_EntityLiving_canEntityBeSeen($this, $var5)) - break; - ju_ArrayList_remove0($var13, $var5); - $var16 = $var16 + 1 | 0; - } - if (!($var5 instanceof nms_EntityPlayer)) - nms_EntityWither_func_82211_c($this, $var1, $var5.$entityId); - else if (!$var5.$capabilities.$disableDamage) - nms_EntityWither_func_82211_c($this, $var1, $var5.$entityId); - } else { - $var14 = nms_WorldClient_getEntityByID($this.$worldObj, $var12); - if ($var14 !== null && $var14.$isEntityAlive() && nms_Entity_getDistanceSqToEntity($this, $var14) <= 900.0 && nms_EntityLiving_canEntityBeSeen($this, $var14)) - break a; - nms_EntityWither_func_82211_c($this, $var1, 0); - } - } - while (true) { - $var1 = $var1 + 1 | 0; - if ($var1 >= 3) { - if (nms_EntityLiving_getAttackTarget($this) === null) - nms_EntityWither_func_82211_c($this, 0, 0); - else - nms_EntityWither_func_82211_c($this, 0, nms_EntityLiving_getAttackTarget($this).$entityId); - b: { - if ($this.$field_82222_j > 0) { - $this.$field_82222_j = $this.$field_82222_j - 1 | 0; - if (!$this.$field_82222_j && nms_GameRules_getGameRuleBooleanValue(nms_World_getGameRules($this.$worldObj), $rt_s(701))) { - $var12 = nms_MathHelper_floor_double($this.$posY); - $var12_0 = nms_MathHelper_floor_double($this.$posX); - $var15 = nms_MathHelper_floor_double($this.$posZ); - $var17 = 0; - $var18 = (-1); - c: while (true) { - if ($var18 > 1) { - if (!$var17) - break b; - else { - $var14 = $this.$worldObj; - $var13 = null; - $var1 = 1012; - $var12_0 = $this.$posX | 0; - $var15 = $this.$posY | 0; - $var17 = $this.$posZ | 0; - $var12 = 0; - $ptr = 6; - continue main; - } - } - $var19 = (-1); - while ($var19 <= 1) { - $var7 = 0; - while ($var7 <= 3) { - $var20 = $var12_0 + $var18 | 0; - $var9 = $var12 + $var7 | 0; - $var10 = $var15 + $var19 | 0; - $var11 = nms_World_getBlockId($this.$worldObj, $var20, $var9, $var10); - if ($var11 > 0) { - nms_Block_$callClinit(); - if ($var11 != nms_Block_bedrock.$blockID && $var11 != nms_Block_endPortal.$blockID && $var11 != nms_Block_endPortalFrame.$blockID) - break c; - } - $var7 = $var7 + 1 | 0; - } - $var19 = $var19 + 1 | 0; - } - $var18 = $var18 + 1 | 0; - } - $var14 = $this.$worldObj; - $var1 = 1; - $ptr = 7; - continue main; - } - } - } - if (!($this.$ticksExisted % 20 | 0)) - nms_EntityLiving_heal($this, 1); - return; - } - $var12 = $this.$ticksExisted; - var$19 = $this.$field_82223_h.data; - $var12_0 = $var1 - 1 | 0; - if ($var12 < var$19[$var12_0]) - continue; - else - break; - } - $this.$field_82223_h.data[$var12_0] = ($this.$ticksExisted + 10 | 0) + ju_Random_nextInt0($this.$rand0, 10) | 0; - if ($this.$worldObj.$difficultySetting < 2) - continue; - $var10003 = $this.$field_82224_i.data[$var12_0]; - $this.$field_82224_i.data[$var12_0] = $this.$field_82224_i.data[$var12_0] + 1 | 0; - if ($var10003 <= 15) - continue; - else { - $var4 = nms_MathHelper_getRandomDoubleInRange($this.$rand0, $this.$posX - 10.0, $this.$posX + 10.0); - $var6 = nms_MathHelper_getRandomDoubleInRange($this.$rand0, $this.$posY - 5.0, $this.$posY + 5.0); - $var8 = nms_MathHelper_getRandomDoubleInRange($this.$rand0, $this.$posZ - 10.0, $this.$posZ + 10.0); - $var15 = $var1 + 1 | 0; - $var12 = 1; - continue main; - } - } - $var12 = $var1 + 1 | 0; - $var14 = $var14; - $ptr = 5; - case 5: - nms_EntityWither_func_82216_a($this, $var12, $var14); - if ($rt_suspending()) { - break main; - } - $this.$field_82223_h.data[$var12_0] = ($this.$ticksExisted + 40 | 0) + ju_Random_nextInt0($this.$rand0, 20) | 0; - $this.$field_82224_i.data[$var12_0] = 0; - while (true) { - e: while (true) { - $var1 = $var1 + 1 | 0; - if ($var1 >= 3) { - if (nms_EntityLiving_getAttackTarget($this) === null) - nms_EntityWither_func_82211_c($this, 0, 0); - else - nms_EntityWither_func_82211_c($this, 0, nms_EntityLiving_getAttackTarget($this).$entityId); - b: { - if ($this.$field_82222_j > 0) { - $this.$field_82222_j = $this.$field_82222_j - 1 | 0; - if (!$this.$field_82222_j && nms_GameRules_getGameRuleBooleanValue(nms_World_getGameRules($this.$worldObj), $rt_s(701))) { - $var12 = nms_MathHelper_floor_double($this.$posY); - $var12_0 = nms_MathHelper_floor_double($this.$posX); - $var15 = nms_MathHelper_floor_double($this.$posZ); - $var17 = 0; - $var18 = (-1); - c: while (true) { - if ($var18 > 1) { - if (!$var17) - break b; - else { - $var14 = $this.$worldObj; - $var13 = null; - $var1 = 1012; - $var12_0 = $this.$posX | 0; - $var15 = $this.$posY | 0; - $var17 = $this.$posZ | 0; - $var12 = 0; - $ptr = 6; - continue main; - } - } - $var19 = (-1); - while ($var19 <= 1) { - $var7 = 0; - while ($var7 <= 3) { - $var20 = $var12_0 + $var18 | 0; - $var9 = $var12 + $var7 | 0; - $var10 = $var15 + $var19 | 0; - $var11 = nms_World_getBlockId($this.$worldObj, $var20, $var9, $var10); - if ($var11 > 0) { - nms_Block_$callClinit(); - if ($var11 != nms_Block_bedrock.$blockID && $var11 != nms_Block_endPortal.$blockID && $var11 != nms_Block_endPortalFrame.$blockID) - break c; - } - $var7 = $var7 + 1 | 0; - } - $var19 = $var19 + 1 | 0; - } - $var18 = $var18 + 1 | 0; - } - $var14 = $this.$worldObj; - $var1 = 1; - $ptr = 7; - continue main; - } - } - } - if (!($this.$ticksExisted % 20 | 0)) - nms_EntityLiving_heal($this, 1); - return; - } - $var12 = $this.$ticksExisted; - var$19 = $this.$field_82223_h.data; - $var12_0 = $var1 - 1 | 0; - if ($var12 < var$19[$var12_0]) - continue; - $this.$field_82223_h.data[$var12_0] = ($this.$ticksExisted + 10 | 0) + ju_Random_nextInt0($this.$rand0, 10) | 0; - if ($this.$worldObj.$difficultySetting >= 2) { - $var10003 = $this.$field_82224_i.data[$var12_0]; - $this.$field_82224_i.data[$var12_0] = $this.$field_82224_i.data[$var12_0] + 1 | 0; - if ($var10003 > 15) { - $var4 = nms_MathHelper_getRandomDoubleInRange($this.$rand0, $this.$posX - 10.0, $this.$posX + 10.0); - $var6 = nms_MathHelper_getRandomDoubleInRange($this.$rand0, $this.$posY - 5.0, $this.$posY + 5.0); - $var8 = nms_MathHelper_getRandomDoubleInRange($this.$rand0, $this.$posZ - 10.0, $this.$posZ + 10.0); - $var15 = $var1 + 1 | 0; - $var12 = 1; - $ptr = 4; - continue main; - } - } - $var12 = nms_EntityWither_getWatchedTargetId($this, $var1); - if ($var12 > 0) - break; - $var13 = nms_World_selectEntitiesWithinAABB($this.$worldObj, $rt_cls(nms_EntityLiving), nms_AxisAlignedBB_expand($this.$boundingBox, 20.0, 8.0, 20.0), nms_EntityWither_attackEntitySelector); - $var16 = 0; - while (true) { - if ($var16 >= 10) - continue e; - if (ju_AbstractCollection_isEmpty($var13)) - continue e; - $var5 = ju_ArrayList_get($var13, ju_Random_nextInt0($this.$rand0, ju_ArrayList_size($var13))); - if ($var5 !== $this && nms_EntityLiving_isEntityAlive($var5) && nms_EntityLiving_canEntityBeSeen($this, $var5)) - break; - ju_ArrayList_remove0($var13, $var5); - $var16 = $var16 + 1 | 0; - } - if (!($var5 instanceof nms_EntityPlayer)) { - nms_EntityWither_func_82211_c($this, $var1, $var5.$entityId); - continue; - } - if ($var5.$capabilities.$disableDamage) - continue; - nms_EntityWither_func_82211_c($this, $var1, $var5.$entityId); - } - $var14 = nms_WorldClient_getEntityByID($this.$worldObj, $var12); - if ($var14 !== null && $var14.$isEntityAlive() && nms_Entity_getDistanceSqToEntity($this, $var14) <= 900.0 && nms_EntityLiving_canEntityBeSeen($this, $var14)) - break; - nms_EntityWither_func_82211_c($this, $var1, 0); - } - $var12 = $var1 + 1 | 0; - $var14 = $var14; - continue main; - case 6: - nms_World_playAuxSFXAtEntity($var14, $var13, $var1, $var12_0, $var15, $var17, $var12); - if ($rt_suspending()) { - break main; - } - if (!($this.$ticksExisted % 20 | 0)) - nms_EntityLiving_heal($this, 1); - return; - case 7: - $tmp = nms_World_destroyBlock($var14, $var20, $var9, $var10, $var1); - if ($rt_suspending()) { - break main; - } - $var1 = $tmp; - $var17 = !$var1 && !$var17 ? 0 : 1; - while (true) { - $var7 = $var7 + 1 | 0; - while ($var7 > 3) { - $var19 = $var19 + 1 | 0; - while ($var19 > 1) { - $var18 = $var18 + 1 | 0; - if ($var18 > 1) { - if (!$var17) { - if (!($this.$ticksExisted % 20 | 0)) - nms_EntityLiving_heal($this, 1); - return; - } - $var14 = $this.$worldObj; - $var13 = null; - $var1 = 1012; - $var12_0 = $this.$posX | 0; - $var15 = $this.$posY | 0; - $var17 = $this.$posZ | 0; - $var12 = 0; - $ptr = 6; - continue main; - } - $var19 = (-1); - } - $var7 = 0; - } - $var20 = $var12_0 + $var18 | 0; - $var9 = $var12 + $var7 | 0; - $var10 = $var15 + $var19 | 0; - $var11 = nms_World_getBlockId($this.$worldObj, $var20, $var9, $var10); - if ($var11 <= 0) - continue; - nms_Block_$callClinit(); - if ($var11 == nms_Block_bedrock.$blockID) - continue; - if ($var11 == nms_Block_endPortal.$blockID) - continue; - if ($var11 != nms_Block_endPortalFrame.$blockID) - break; - } - $var14 = $this.$worldObj; - $var1 = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var13, $var4, $var8, $var6, var$6, $var12, $var12_0, $var15, $var17, $var18, $var14, $var19, $var7, $var20, $var9, $var10, $var11, var$19, $var10003, $var16, $var5, $ptr); -} -function nms_EntityWither_func_82206_m($this) { - nms_DataWatcher_updateObject($this.$dataWatcher, 20, jl_Integer_valueOf(220)); - $this.$health = 100; -} -function nms_EntityWither_setInWeb($this) { - return; -} -function nms_EntityWither_getTotalArmorValue($this) { - return 4; -} -function nms_EntityWither_func_82214_u($this, $par1) { - var $var2, $var3; - if ($par1 <= 0) - return $this.$posX; - $var2 = ($this.$renderYawOffset + (180 * ($par1 - 1 | 0) | 0)) / 180.0 * 3.1415927410125732; - $var3 = nms_MathHelper_SIN_TABLE.data[($var2 * 10430.3779296875 + 16384.0 | 0) & 65535]; - return $this.$posX + $var3 * 1.3; -} -function nms_EntityWither_func_82208_v($this, $par1) { - return $par1 > 0 ? $this.$posY + 2.2 : $this.$posY + 3.0; -} -function nms_EntityWither_func_82213_w($this, $par1) { - var $var2, $var3; - if ($par1 <= 0) - return $this.$posZ; - $var2 = ($this.$renderYawOffset + (180 * ($par1 - 1 | 0) | 0)) / 180.0 * 3.1415927410125732; - $var3 = nms_MathHelper_SIN_TABLE.data[($var2 * 10430.3779296875 | 0) & 65535]; - return $this.$posZ + $var3 * 1.3; -} -function nms_EntityWither_func_82204_b($this, $par1, $par2, $par3) { - var $var4; - $var4 = nms_MathHelper_wrapAngleTo180_float($par2 - $par1); - if ($var4 > $par3) - $var4 = $par3; - $par2 = -$par3; - if ($var4 >= $par2) - $par2 = $var4; - return $par1 + $par2; -} -function nms_EntityWither_func_82216_a($this, $par1, $par2EntityLiving) { - var 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();$par2EntityLiving = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$3 = $par2EntityLiving.$posX; - var$4 = $par2EntityLiving.$posY + $par2EntityLiving.$getEyeHeight() * 0.5; - var$5 = $par2EntityLiving.$posZ; - var$6 = !$par1 && Math.random() < 0.0010000000474974513 ? 1 : 0; - $ptr = 1; - case 1: - nms_EntityWither_func_82209_a($this, $par1, var$3, var$4, var$5, var$6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2EntityLiving, var$3, var$4, var$5, var$6, $ptr); -} -function nms_EntityWither_func_82209_a($this, $par1, $par2, $par4, $par6, $par8) { - var var$6, $var21, var$8, var$9, var$10, var$11, var$12, var$13, $var9, $var11, $var13, $var15, $var17, $var19, var$20, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$20 = $thread.pop();$var19 = $thread.pop();$var17 = $thread.pop();$var15 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var21 = $thread.pop();var$6 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $this.$worldObj; - $var21 = null; - var$8 = 1014; - var$9 = $this.$posX | 0; - var$10 = $this.$posY | 0; - var$11 = $this.$posZ | 0; - var$12 = 0; - var$13 = 0; - if (var$13 >= var$6.$worldAccesses.$size0) { - $var9 = nms_EntityWither_func_82214_u($this, $par1); - $var11 = $par1 > 0 ? $this.$posY + 2.2 : $this.$posY + 3.0; - $var13 = nms_EntityWither_func_82213_w($this, $par1); - $var15 = $par2 - $var9; - $var17 = $par4 - $var11; - $var19 = $par6 - $var13; - $var21 = new nms_EntityWitherSkull; - nms_EntityFireball__init_($var21, $this.$worldObj, $this, $var15, $var17, $var19); - nms_Entity_setSize($var21, 0.3125, 0.3125); - if ($par8) { - var$6 = $var21.$dataWatcher; - var$20 = new jl_Byte; - var$20.$value4 = 1; - nms_DataWatcher_updateObject(var$6, 10, var$20); - } - $var21.$posY = $var11; - $var21.$posX = $var9; - $var21.$posZ = $var13; - var$6 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$6, $var21); - var$20 = var$6.$entityList; - ju_HashMap_putImpl(var$20.$backingMap, $var21, var$20); - if (!$par1) { - var$6 = var$6.$entitySpawnQueue; - ju_HashMap_putImpl(var$6.$backingMap, $var21, var$6); - } - return; - } - var$20 = var$6.$worldAccesses; - if (var$13 >= 0 && var$13 < var$20.$size0) { - var$20 = var$20.$array1.data[var$13]; - $ptr = 1; - continue main; - } - $var21 = new jl_IndexOutOfBoundsException; - $var21.$suppressionEnabled = 1; - $var21.$writableStackTrace = 1; - $rt_throw($var21); - case 1: - nms_RenderGlobal_playAuxSFX(var$20, $var21, var$8, var$9, var$10, var$11, var$12); - if ($rt_suspending()) { - break main; - } - var$13 = var$13 + 1 | 0; - if (var$13 >= var$6.$worldAccesses.$size0) { - $var9 = nms_EntityWither_func_82214_u($this, $par1); - $var11 = $par1 > 0 ? $this.$posY + 2.2 : $this.$posY + 3.0; - $var13 = nms_EntityWither_func_82213_w($this, $par1); - $var15 = $par2 - $var9; - $var17 = $par4 - $var11; - $var19 = $par6 - $var13; - $var21 = new nms_EntityWitherSkull; - nms_EntityFireball__init_($var21, $this.$worldObj, $this, $var15, $var17, $var19); - nms_Entity_setSize($var21, 0.3125, 0.3125); - if ($par8) { - var$6 = $var21.$dataWatcher; - var$20 = new jl_Byte; - var$20.$value4 = 1; - nms_DataWatcher_updateObject(var$6, 10, var$20); - } - $var21.$posY = $var11; - $var21.$posX = $var9; - $var21.$posZ = $var13; - var$6 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$6, $var21); - var$20 = var$6.$entityList; - ju_HashMap_putImpl(var$20.$backingMap, $var21, var$20); - if (!$par1) { - var$6 = var$6.$entitySpawnQueue; - ju_HashMap_putImpl(var$6.$backingMap, $var21, var$6); - } - return; - } - var$20 = var$6.$worldAccesses; - if (var$13 >= 0 && var$13 < var$20.$size0) { - var$20 = var$20.$array1.data[var$13]; - continue main; - } - $var21 = new jl_IndexOutOfBoundsException; - $var21.$suppressionEnabled = 1; - $var21.$writableStackTrace = 1; - $rt_throw($var21); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par4, $par6, $par8, var$6, $var21, var$8, var$9, var$10, var$11, var$12, var$13, $var9, $var11, $var13, $var15, $var17, $var19, var$20, $ptr); -} -function nms_EntityWither_attackEntityFrom($this, $par1DamageSource, $par2) { - var $var4, $var3, var$5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$5 = $thread.pop();$var3 = $thread.pop();$var4 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - if ($par1DamageSource === nms_DamageSource_drown) - return 0; - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 20) > 0) - return 0; - $var4 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 16) > 150 ? 0 : 1; - if ($var4 && $par1DamageSource.$getSourceOfDamage() instanceof nms_EntityArrow) - return 0; - $var3 = $par1DamageSource.$getEntity(); - if ($var3 !== null && !($var3 instanceof nms_EntityPlayer) && $var3 instanceof nms_EntityLiving && $var3.$getCreatureAttribute() === nms_EnumCreatureAttribute_UNDEAD) - return 0; - if ($this.$field_82222_j <= 0) - $this.$field_82222_j = 20; - $var4 = 0; - while ($var4 < $this.$field_82224_i.data.length) { - var$5 = $this.$field_82224_i.data; - var$5[$var4] = var$5[$var4] + 3 | 0; - $var4 = $var4 + 1 | 0; - } - $ptr = 1; - case 1: - $tmp = nms_EntityMob_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $var4, $var3, var$5, $ptr); -} -function nms_EntityWither_dropFewItems($this, $par1, $par2) { - var var$3, var$4, var$5; - nms_Item_$callClinit(); - $par2 = nms_Item_netherStar.$itemID; - var$3 = new nms_ItemStack; - var$3.$stackSize = 0; - var$3.$itemFrame = null; - var$3.$itemID0 = $par2; - var$3.$stackSize = 1; - var$3.$itemDamage = 0; - if (var$3.$itemDamage < 0) - var$3.$itemDamage = 0; - var$4 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$4.$dataWatcher, 10, var$3); - nms_DataWatcher_setObjectWatched(var$4.$dataWatcher, 10); - var$4.$delayBeforeCanPickup = 10; - var$3 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$3, var$4); - var$5 = var$3.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$4, var$5); - if (!$par1) { - var$3 = var$3.$entitySpawnQueue; - ju_HashMap_putImpl(var$3.$backingMap, var$4, var$3); - } -} -function nms_EntityWither_despawnEntity($this) { - $this.$entityAge = 0; -} -function nms_EntityWither_getBrightnessForRender($this, $par1) { - return 15728880; -} -function nms_EntityWither_canBeCollidedWith($this) { - return $this.$isDead ? 0 : 1; -} -function nms_EntityWither_getBossHealth($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 16); -} -function nms_EntityWither_fall($this, $par1) { - return; -} -function nms_EntityWither_addPotionEffect($this, $par1PotionEffect) { - return; -} -function nms_EntityWither_isAIEnabled($this) { - return 1; -} -function nms_EntityWither_getMaxHealth($this) { - return 300; -} -function nms_EntityWither_func_82207_a($this, $par1) { - return $this.$field_82221_e.data[$par1]; -} -function nms_EntityWither_func_82210_r($this, $par1) { - return $this.$field_82220_d.data[$par1]; -} -function nms_EntityWither_func_82212_n($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 20); -} -function nms_EntityWither_func_82215_s($this, $par1) { - nms_DataWatcher_updateObject($this.$dataWatcher, 20, jl_Integer_valueOf($par1)); -} -function nms_EntityWither_getWatchedTargetId($this, $par1) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 17 + $par1 | 0); -} -function nms_EntityWither_func_82211_c($this, $par1, $par2) { - nms_DataWatcher_updateObject($this.$dataWatcher, 17 + $par1 | 0, jl_Integer_valueOf($par2)); -} -function nms_EntityWither_isArmored($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 16) > 150 ? 0 : 1; -} -function nms_EntityWither_getCreatureAttribute($this) { - return nms_EnumCreatureAttribute_UNDEAD; -} -function nms_EntityWither_mountEntity($this, $par1Entity) { - $this.$ridingEntity = null; -} -function nms_EntityWither__clinit_() { - nms_EntityWither_attackEntitySelector = new nms_EntityWitherAttackFilter; -} -function nms_RenderWither() { - nms_RenderLiving.call(this); - this.$field_82419_a = 0; -} -var nms_RenderWither_tex_armor = null; -var nms_RenderWither_entityTexture0 = null; -var nms_RenderWither_entityTexture1 = null; -function nms_RenderWither__init_0() { - var var_0 = new nms_RenderWither(); - nms_RenderWither__init_(var_0); - return var_0; -} -function nms_RenderWither__init_($this) { - var var$1; - var$1 = nms_ModelWither__init_0(); - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$mainModel = var$1; - $this.$shadowSize = 1.0; - $this.$field_82419_a = 32; -} -function nms_RenderWither_func_82418_a($this, $par1EntityWither, $par2, $par4, $par6, $par8, $par9) { - var var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityWither = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_BossStatus_healthScale = nms_DataWatcher_getWatchableObjectInt($par1EntityWither.$dataWatcher, 16) / 300.0; - nms_BossStatus_statusBarLength = 100; - if (nms_DataWatcher_getWatchableObjectString($par1EntityWither.$dataWatcher, 5).$characters.data.length <= 0 ? 0 : 1) - var$7 = nms_DataWatcher_getWatchableObjectString($par1EntityWither.$dataWatcher, 5); - else { - var$7 = nms_EntityList_classToStringMapping; - var$8 = jl_Class_getClass($par1EntityWither.constructor); - if (var$8 !== null) { - var$9 = jl_Object_identity(var$8); - var$7 = ju_HashMap_findNonNullKeyEntry(var$7, var$8, var$9 & (var$7.$elementData.data.length - 1 | 0), var$9); - } else { - var$7 = var$7.$elementData.data[0]; - while (var$7 !== null && var$7.$key !== null) { - var$7 = var$7.$next1; - } - } - var$7 = var$7 === null ? null : var$7.$value0; - if (var$7 === null) - var$7 = $rt_s(681); - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(682)); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, var$7); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(683)); - var$10 = jl_String__init_0(var$8.$buffer, 0, var$8.$length); - var$7 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$10); - } - nms_BossStatus_bossName = var$7; - nms_BossStatus_field_82825_d = 1; - if (32 != $this.$field_82419_a) { - $this.$field_82419_a = 32; - $this.$mainModel = nms_ModelWither__init_0(); - } - $ptr = 1; - case 1: - nms_RenderLiving_doRenderLiving($this, $par1EntityWither, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityWither, $par2, $par4, $par6, $par8, $par9, var$7, var$8, var$9, var$10, $ptr); -} -function nms_RenderWither_func_82415_a($this, $par1EntityWither, $par2) { - var $var3, var$4, var$5, var$6, $var4; - $var3 = nms_DataWatcher_getWatchableObjectInt($par1EntityWither.$dataWatcher, 20); - if ($var3 <= 0) { - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityWither = nleg_EaglerAdapterGL30_deevis; - $par1EntityWither.$x = 2.0; - $par1EntityWither.$y = 2.0; - $par1EntityWither.$z = 2.0; - $par1EntityWither = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityWither, $par1EntityWither); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityWither = new jl_StringBuilder; - $par1EntityWither.$buffer = $rt_createCharArray(16); - var$4.$sb = $par1EntityWither; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - $par1EntityWither = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityWither, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = $par1EntityWither; - 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)); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); - } - } else { - $var4 = 2.0 - ($var3 - $par2) / 220.0 * 0.5; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityWither = nleg_EaglerAdapterGL30_deevis; - $par1EntityWither.$x = $var4; - $par1EntityWither.$y = $var4; - $par1EntityWither.$z = $var4; - $par1EntityWither = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityWither, $par1EntityWither); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityWither = new jl_StringBuilder; - $par1EntityWither.$buffer = $rt_createCharArray(16); - var$4.$sb = $par1EntityWither; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - $par1EntityWither = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityWither, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = $par1EntityWither; - 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)); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); - } - } -} -function nms_RenderWither_func_82417_a($this, $par1EntityWither, $par2, $par3) { - var $var4, $var5, $var6, var$7, var$8, var$9; - if (nms_DataWatcher_getWatchableObjectInt($par1EntityWither.$dataWatcher, 16) > 150 ? 0 : 1) { - if (!(!(nms_DataWatcher_getWatchableObjectByte($par1EntityWither.$dataWatcher, 0) & 32) ? 0 : 1)) { - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - } else { - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - } - if ($par2 == 1) { - $var4 = $par1EntityWither.$ticksExisted + $par3; - nle_TextureLocation_bindTexture(nms_RenderWither_tex_armor); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_matrixMode = 54; - nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix()); - $par3 = $var4 * 0.019999999552965164; - $var5 = nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 3.0; - $var6 = $var4 * 0.009999999776482582; - $par1EntityWither = nleg_EaglerAdapterGL30_deevis; - $par1EntityWither.$x = $var5; - $par1EntityWither.$y = $var6; - $par1EntityWither.$z = 0.0; - $par1EntityWither = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityWither, $par1EntityWither); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$7 = new ji_PrintStream; - var$7.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityWither = new jl_StringBuilder; - $par1EntityWither.$buffer = $rt_createCharArray(16); - var$7.$sb = $par1EntityWither; - var$7.$buffer0 = $rt_createCharArray(32); - var$7.$autoFlush = 0; - $par1EntityWither = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityWither, $rt_s(2), $rt_createArray(jl_String, 0)); - var$7.$charset = $par1EntityWither; - jl_System_errCache = var$7; - } - var$8 = jl_System_errCache; - var$7 = var$8.$sb; - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(220)); - var$9 = var$7.$length; - jl_AbstractStringBuilder_insertSpace(var$7, var$9, var$9 + 1 | 0); - var$7.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - $this.$renderPassModel = $this.$mainModel; - nleg_EaglerAdapterGL30_matrixMode = 10; - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_colorR = 0.5; - nleg_EaglerAdapterGL30_colorG = 0.5; - nleg_EaglerAdapterGL30_colorB = 0.5; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glBlendFunc(1, 1); - $par1EntityWither = nleg_EaglerAdapterGL30_deevis; - $par1EntityWither.$x = 0.0; - $par1EntityWither.$y = (-0.009999999776482582); - $par1EntityWither.$z = 0.0; - $par1EntityWither = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityWither, $par1EntityWither); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$7 = new ji_PrintStream; - var$7.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityWither = new jl_StringBuilder; - $par1EntityWither.$buffer = $rt_createCharArray(16); - var$7.$sb = $par1EntityWither; - var$7.$buffer0 = $rt_createCharArray(32); - var$7.$autoFlush = 0; - $par1EntityWither = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityWither, $rt_s(2), $rt_createArray(jl_String, 0)); - var$7.$charset = $par1EntityWither; - jl_System_errCache = var$7; - } - var$8 = jl_System_errCache; - var$7 = var$8.$sb; - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(220)); - var$9 = var$7.$length; - jl_AbstractStringBuilder_insertSpace(var$7, var$9, var$9 + 1 | 0); - var$7.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - $par1EntityWither = nleg_EaglerAdapterGL30_deevis; - $par1EntityWither.$x = 1.100000023841858; - $par1EntityWither.$y = 1.100000023841858; - $par1EntityWither.$z = 1.100000023841858; - $par1EntityWither = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityWither, $par1EntityWither); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$7 = new ji_PrintStream; - $par1EntityWither = new jl_ConsoleOutputStreamStderr; - ji_OutputStream__init_0($par1EntityWither); - ji_PrintStream__init_0(var$7, $par1EntityWither, 0); - jl_System_errCache = var$7; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - return 1; - } - if ($par2 == 2) { - nleg_EaglerAdapterGL30_glMatrixMode(54); - nleg_EaglerAdapterGL30_glLoadIdentity(); - nleg_EaglerAdapterGL30_glMatrixMode(10); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glDisable(16); - } - } - return (-1); -} -function nms_RenderWither_func_82416_b($this, $par1EntityWither, $par2, $par3) { - return (-1); -} -function nms_RenderWither_preRenderCallback($this, $par1EntityLiving, $par2) { - nms_RenderWither_func_82415_a($this, $par1EntityLiving, $par2); -} -function nms_RenderWither_shouldRenderPass($this, $par1EntityLiving, $par2, $par3) { - return nms_RenderWither_func_82417_a($this, $par1EntityLiving, $par2, $par3); -} -function nms_RenderWither_inheritRenderPass($this, $par1EntityLiving, $par2, $par3) { - return (-1); -} -function nms_RenderWither_doRenderLiving($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityLiving = $par1EntityLiving; - $ptr = 1; - case 1: - nms_RenderWither_func_82418_a($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderWither_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderWither_func_82418_a($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderWither_bindTexture($this, $par1EntityLiving) { - if (!nms_EntityWither_isInvul($par1EntityLiving)) - nle_TextureLocation_bindTexture(nms_RenderWither_entityTexture0); - else - nle_TextureLocation_bindTexture(nms_RenderWither_entityTexture1); -} -function nms_RenderWither__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1336); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWither_tex_armor = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1337); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWither_entityTexture0 = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1338); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWither_entityTexture1 = var$1; -} -function nms_RenderEntity() { - nms_Render.call(this); -} -function nms_RenderEntity__init_0() { - var var_0 = new nms_RenderEntity(); - nms_RenderEntity__init_(var_0); - return var_0; -} -function nms_RenderEntity__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; -} -function nms_RenderEntity_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_Render_renderOffsetAABB($par1Entity.$boundingBox, $par2 - $par1Entity.$lastTickPosX, $par4 - $par1Entity.$lastTickPosY, $par6 - $par1Entity.$lastTickPosZ); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_EntityHanging() { - var a = this; nms_Entity.call(a); - a.$tickCounter1 = 0; - a.$hangingDirection = 0; - a.$xPosition1 = 0; - a.$yPosition2 = 0; - a.$zPosition1 = 0; -} -function nms_EntityHanging_entityInit($this) { - return; -} -function nms_EntityHanging_setDirection($this, $par1) { - var $var2, $var3, $var4, var$5, $var7, var$7, var$8, $var5, $var6, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, var$19, var$20; - $this.$hangingDirection = $par1; - $var2 = $par1 * 90 | 0; - $this.$rotationYaw = $var2; - $this.$prevRotationYaw = $var2; - $var2 = $this.$func_82329_d(); - $var3 = $this.$func_82330_g(); - $var4 = $this.$func_82329_d(); - var$5 = $rt_compare($par1, 2); - if (var$5 && $par1) - $var2 = 0.5; - else { - $var4 = 0.5; - $var7 = nms_Direction_rotateOpposite.data[$par1] * 90 | 0; - $this.$prevRotationYaw = $var7; - $this.$rotationYaw = $var7; - } - $var2 = $var2 / 32.0; - var$7 = $var3 / 32.0; - var$8 = $var4 / 32.0; - $var5 = $this.$xPosition1 + 0.5; - $var6 = $this.$yPosition2 + 0.5; - $var7 = $this.$zPosition1 + 0.5; - if (!var$5) - $var7 = $var7 - 0.5625; - var$11 = $rt_compare($par1, 1); - if (!var$11) - $var5 = $var5 - 0.5625; - if (!$par1) - $var7 = $var7 + 0.5625; - var$12 = $rt_compare($par1, 3); - if (!var$12) - $var5 = $var5 + 0.5625; - if (!var$5) { - var$13 = $this.$func_82329_d(); - $var5 = $var5 - (var$13 == 32 ? 0.5 : var$13 != 64 ? 0.0 : 0.5); - } - if (!var$11) { - var$11 = $this.$func_82329_d(); - $var7 = $var7 + (var$11 == 32 ? 0.5 : var$11 != 64 ? 0.0 : 0.5); - } - if (!$par1) { - var$5 = $this.$func_82329_d(); - $var5 = $var5 + (var$5 == 32 ? 0.5 : var$5 != 64 ? 0.0 : 0.5); - } - if (!var$12) { - var$5 = $this.$func_82329_d(); - $var7 = $var7 - (var$5 == 32 ? 0.5 : var$5 != 64 ? 0.0 : 0.5); - } - $par1 = $this.$func_82330_g(); - $var3 = $var6 + ($par1 == 32 ? 0.5 : $par1 != 64 ? 0.0 : 0.5); - nms_Entity_setPosition($this, $var5, $var3, $var7); - var$14 = $this.$boundingBox; - var$15 = $var5 - $var2 + 0.03125; - var$16 = $var3 - var$7 + 0.03125; - var$17 = $var7 - var$8 + 0.03125; - var$18 = $var5 + $var2 + (-0.03125); - var$19 = $var3 + var$7 + (-0.03125); - var$20 = $var7 + var$8 + (-0.03125); - var$14.$minX = var$15; - var$14.$minY = var$16; - var$14.$minZ = var$17; - var$14.$maxX = var$18; - var$14.$maxY = var$19; - var$14.$maxZ = var$20; -} -function nms_EntityHanging_onUpdate($this) { - var var$1; - var$1 = $this.$tickCounter1; - $this.$tickCounter1 = var$1 + 1 | 0; - if (var$1 == 100 && !$this.$worldObj.$isRemote) { - $this.$tickCounter1 = 0; - if (!$this.$isDead && !nms_EntityHanging_onValidSurface($this)) { - $this.$isDead = 1; - $this.$dropItemStack(); - } - } -} -function nms_EntityHanging_onValidSurface($this) { - var $var1, $var2, $var3, $var5, var$5, var$6, $var2_0, $var6, $var9, $var10, $var7, $var1_0, $var8; - if (!(nms_World_getCollidingBoundingBoxes($this.$worldObj, $this, $this.$boundingBox).$size0 ? 0 : 1)) - return 0; - $var1 = $this.$func_82329_d() / 16 | 0; - if (1 > $var1) - $var1 = 1; - $var2 = $this.$func_82330_g() / 16 | 0; - if (1 > $var2) - $var2 = 1; - $var3 = $this.$xPosition1; - $var5 = $this.$zPosition1; - if ($this.$hangingDirection == 2) { - var$5 = $this.$posX - $this.$func_82329_d() / 32.0; - $var3 = var$5 | 0; - if (var$5 < $var3) - $var3 = $var3 - 1 | 0; - } - if ($this.$hangingDirection == 1) { - var$5 = $this.$posZ - $this.$func_82329_d() / 32.0; - $var5 = var$5 | 0; - if (var$5 < $var5) - $var5 = $var5 - 1 | 0; - } - if (!$this.$hangingDirection) { - var$5 = $this.$posX - $this.$func_82329_d() / 32.0; - $var3 = var$5 | 0; - if (var$5 < $var3) - $var3 = $var3 - 1 | 0; - } - if ($this.$hangingDirection == 3) { - var$6 = $this.$posZ - $this.$func_82329_d() / 32.0; - $var5 = var$6 | 0; - if (var$6 < $var5) - $var5 = $var5 - 1 | 0; - } - var$6 = $this.$posY - $this.$func_82330_g() / 32.0; - $var2_0 = var$6 | 0; - if (var$6 < $var2_0) - $var2_0 = $var2_0 - 1 | 0; - $var6 = 0; - a: while (true) { - if ($var6 >= $var1) { - $var9 = nms_World_getEntitiesWithinAABBExcludingEntity($this.$worldObj, $this, $this.$boundingBox, null); - $var10 = new ju_AbstractList$1; - $var10.$this$0 = $var9; - $var10.$modCount = $var10.$this$0.$modCount0; - $var10.$size1 = $var10.$this$0.$size2(); - $var10.$removeIndex = (-1); - while (true) { - if (!($var10.$index >= $var10.$size1 ? 0 : 1)) - return 1; - if (!(ju_AbstractList$1_next($var10) instanceof nms_EntityHanging)) - continue; - else - break; - } - return 0; - } - $var7 = 0; - while ($var7 < $var2) { - if ($this.$hangingDirection != 2 && $this.$hangingDirection) { - $var1_0 = nms_World_getBlockId($this.$worldObj, $this.$xPosition1, $var2_0 + $var7 | 0, $var5 + $var6 | 0); - if (!$var1_0) { - nms_Material_$callClinit(); - $var8 = nms_Material_air; - } else { - nms_Block_$callClinit(); - $var8 = nms_Block_blocksList.data[$var1_0].$blockMaterial; - } - } else { - $var1_0 = nms_World_getBlockId($this.$worldObj, $var3 + $var6 | 0, $var2_0 + $var7 | 0, $this.$zPosition1); - if (!$var1_0) { - nms_Material_$callClinit(); - $var8 = nms_Material_air; - } else { - nms_Block_$callClinit(); - $var8 = nms_Block_blocksList.data[$var1_0].$blockMaterial; - } - } - if (!$var8.$isSolid()) - break a; - $var7 = $var7 + 1 | 0; - } - $var6 = $var6 + 1 | 0; - } - return 0; -} -function nms_EntityHanging_canBeCollidedWith($this) { - return 1; -} -function nms_EntityHanging_func_85031_j($this, $par1Entity) { - var var$2, var$3; - if (!($par1Entity instanceof nms_EntityPlayer)) - var$2 = 0; - else { - $par1Entity = $par1Entity; - var$3 = new nms_EntityDamageSource; - var$3.$isUnblockable = 0; - var$3.$isDamageAllowedInCreativeMode = 0; - var$3.$hungerDamage = 0.30000001192092896; - var$3.$magicDamage = 0; - var$3.$explosion = 0; - var$3.$damageType = $rt_s(720); - var$3.$damageSourceEntity = $par1Entity; - var$2 = nms_EntityHanging_attackEntityFrom($this, var$3, 0); - } - return var$2; -} -function nms_EntityHanging_attackEntityFrom($this, $par1DamageSource, $par2) { - var $var3; - if ($this.$invulnerable) - return 0; - if (!$this.$isDead && !$this.$worldObj.$isRemote) { - $this.$isDead = 1; - $this.$velocityChanged = 1; - $var3 = null; - if ($par1DamageSource.$getEntity() instanceof nms_EntityPlayer) - $var3 = $par1DamageSource.$getEntity(); - if ($var3 !== null && $var3.$capabilities.$isCreativeMode) - return 1; - $this.$dropItemStack(); - } - return 1; -} -function nms_EntityHanging_moveEntity($this, $par1, $par3, $par5) { - if (!$this.$worldObj.$isRemote && !$this.$isDead && $par1 * $par1 + $par3 * $par3 + $par5 * $par5 > 0.0) { - $this.$isDead = 1; - $this.$dropItemStack(); - } -} -function nms_EntityHanging_addVelocity($this, $par1, $par3, $par5) { - if (!$this.$worldObj.$isRemote && !$this.$isDead && $par1 * $par1 + $par3 * $par3 + $par5 * $par5 > 0.0) { - $this.$isDead = 1; - $this.$dropItemStack(); - } -} -function nms_EntityPainting() { - nms_EntityHanging.call(this); - this.$art = null; -} -function nms_EntityPainting__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityPainting(); - nms_EntityPainting__init_0(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityPainting__init_1(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_EntityPainting(); - nms_EntityPainting__init_2(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -} -function nms_EntityPainting__init_0($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $var9, $var10; - nms_Entity__init_0($this); - $this.$tickCounter1 = 0; - $this.$hangingDirection = 0; - $this.$yOffset0 = 0.0; - nms_Entity_setSize($this, 0.5, 0.5); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$xPosition1 = $par2; - $this.$yPosition2 = $par3; - $this.$zPosition1 = $par4; - $var6 = new ju_ArrayList; - $var6.$array1 = $rt_createArray(jl_Object, 10); - $var7 = nms_EnumArt_$VALUES.$clone().data; - $var8 = $var7.length; - $var9 = 0; - while ($var9 < $var8) { - $var10 = $var7[$var9]; - $this.$art = $var10; - nms_EntityHanging_setDirection($this, $par5); - if (nms_EntityHanging_onValidSurface($this)) - ju_ArrayList_add($var6, $var10); - $var9 = $var9 + 1 | 0; - } - $par2 = $var6.$size0 ? 0 : 1; - a: { - if (!$par2) { - $par2 = $var6.$size0; - $par3 = Math.random() * $par2 | 0; - if ($par3 < 0) - break a; - if ($par3 >= $var6.$size0) - break a; - $this.$art = $var6.$array1.data[$par3]; - } - nms_EntityHanging_setDirection($this, $par5); - return; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); -} -function nms_EntityPainting__init_2($this, $par1World, $par2, $par3, $par4, $par5, $par6Str) { - var $var7, $var8, $var9, $var10; - nms_EntityPainting__init_0($this, $par1World, $par2, $par3, $par4, $par5); - $var7 = nms_EnumArt_$VALUES.$clone().data; - $var8 = $var7.length; - $var9 = 0; - a: { - while (true) { - if ($var9 >= $var8) - break a; - $var10 = $var7[$var9]; - if (jl_String_equals($var10.$title, $par6Str)) - break; - $var9 = $var9 + 1 | 0; - } - $this.$art = $var10; - } - nms_EntityHanging_setDirection($this, $par5); -} -function nms_EntityPainting_func_82329_d($this) { - return $this.$art.$sizeX; -} -function nms_EntityPainting_func_82330_g($this) { - return $this.$art.$sizeY; -} -function nms_EntityPainting_dropItemStack($this) { - var var$1, var$2, var$3, var$4, var$5; - var$1 = new nms_ItemStack; - nms_Item_$callClinit(); - var$2 = nms_Item_painting.$itemID; - var$1.$stackSize = 0; - var$1.$itemFrame = null; - var$1.$itemID0 = var$2; - var$1.$stackSize = 1; - var$1.$itemDamage = 0; - if (var$1.$itemDamage < 0) - var$1.$itemDamage = 0; - var$3 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$3.$dataWatcher, 10, var$1); - nms_DataWatcher_setObjectWatched(var$3.$dataWatcher, 10); - var$3.$delayBeforeCanPickup = 10; - var$1 = $this.$worldObj; - var$4 = nms_World_spawnEntityInWorld(var$1, var$3); - var$5 = var$1.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$3, var$5); - if (!var$4) { - var$1 = var$1.$entitySpawnQueue; - ju_HashMap_putImpl(var$1.$backingMap, var$3, var$1); - } -} -function nms_RenderPainting() { - nms_Render.call(this); -} -var nms_RenderPainting_kz = null; -function nms_RenderPainting__init_0() { - var var_0 = new nms_RenderPainting(); - nms_RenderPainting__init_(var_0); - return var_0; -} -function nms_RenderPainting__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; -} -function nms_RenderPainting_renderThePainting($this, $par1EntityPainting, $par2, $par4, $par6, $par8, $par9) { - var $var11, var$8, $var10, var$10, var$11, var$12, var$13; - nleg_EaglerAdapterGL30_glPushMatrix(); - $par9 = $par2; - $var11 = $par4; - var$8 = $par6; - $var10 = nleg_EaglerAdapterGL30_deevis; - $var10.$x = $par9; - $var10.$y = $var11; - $var10.$z = var$8; - $var10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var10, $var10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - $var10 = new jl_StringBuilder; - $var10.$buffer = $rt_createCharArray(16); - var$10.$sb = $var10; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - $var10 = new jnci_UTF8Charset; - jnc_Charset__init_($var10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = $var10; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - nleg_EaglerAdapterGL30_glRotatef($par8, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(41); - nle_TextureLocation_bindTexture(nms_RenderPainting_kz); - $var10 = $par1EntityPainting.$art; - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = 0.0625; - var$10.$y = 0.0625; - var$10.$z = 0.0625; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$13 = jl_System_errCache; - var$11 = var$13.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$12 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$12, var$12 + 1 | 0); - var$11.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$13); - } - nms_RenderPainting_func_77010_a($this, $par1EntityPainting, $var10.$sizeX, $var10.$sizeY, $var10.$offsetX, $var10.$offsetY); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_RenderPainting_func_77010_a($this, $par1EntityPainting, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var21, var$9, var$10, $var22, $var23, $var24, $var22_0, var$15, $var25, $var26, $var27, $var28, $var29, $var30, $var31, var$23, var$24, var$25, var$26, var$27, var$28; - $var6 = -$par2 / 2.0; - $var7 = -$par3 / 2.0; - $var21 = 0; - var$9 = $par2 / 16 | 0; - var$10 = $par3 / 16 | 0; - $par4 = $par4 + $par2 | 0; - $par3 = $par5 + $par3 | 0; - while ($var21 < var$9) { - $var22 = 0; - while ($var22 < var$10) { - $par2 = ($var21 + 1 | 0) * 16 | 0; - $var23 = $var6 + $par2; - $par5 = $var21 * 16 | 0; - $var24 = $var6 + $par5; - $var22_0 = $var22 + 1 | 0; - var$15 = $var22_0 * 16 | 0; - $var25 = $var7 + var$15; - $var22 = $var22 * 16 | 0; - $var26 = $var7 + $var22; - nms_RenderPainting_func_77008_a($this, $par1EntityPainting, ($var23 + $var24) / 2.0, ($var25 + $var26) / 2.0); - $var27 = ($par4 - $par5 | 0) / 256.0; - $var28 = ($par4 - $par2 | 0) / 256.0; - $var29 = ($par3 - $var22 | 0) / 256.0; - $var30 = ($par3 - var$15 | 0) / 256.0; - nlea_Tessellator_$callClinit(); - $var31 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var31, 98); - nlea_Tessellator_setNormal($var31, 0.0, 0.0, (-1.0)); - var$23 = $var23; - var$24 = $var26; - var$25 = $var28; - var$26 = $var29; - $var31.$hasTexture = 1; - $var29 = var$25; - $var31.$textureU = $var29; - var$27 = var$26; - $var31.$textureV = var$27; - nlea_Tessellator_addVertex($var31, var$23, var$24, (-0.5)); - var$25 = $var24; - var$26 = $var27; - $var31.$hasTexture = 1; - $var28 = var$26; - $var31.$textureU = $var28; - $var31.$textureV = var$27; - nlea_Tessellator_addVertex($var31, var$25, var$24, (-0.5)); - var$26 = $var25; - var$28 = $var30; - $var31.$hasTexture = 1; - $var31.$textureU = $var28; - $var28 = var$28; - $var31.$textureV = $var28; - nlea_Tessellator_addVertex($var31, var$25, var$26, (-0.5)); - $var31.$hasTexture = 1; - $var31.$textureU = $var29; - $var31.$textureV = $var28; - nlea_Tessellator_addVertex($var31, var$23, var$26, (-0.5)); - nlea_Tessellator_setNormal($var31, 0.0, 0.0, 1.0); - $var31.$hasTexture = 1; - $var31.$textureU = 0.75; - $var31.$textureV = 0.0; - nlea_Tessellator_addVertex($var31, var$23, var$26, 0.5); - $var31.$hasTexture = 1; - $var31.$textureU = 0.8125; - $var31.$textureV = 0.0; - nlea_Tessellator_addVertex($var31, var$25, var$26, 0.5); - $var31.$hasTexture = 1; - $var31.$textureU = 0.8125; - $var31.$textureV = 0.0625; - nlea_Tessellator_addVertex($var31, var$25, var$24, 0.5); - $var31.$hasTexture = 1; - $var31.$textureU = 0.75; - $var31.$textureV = 0.0625; - nlea_Tessellator_addVertex($var31, var$23, var$24, 0.5); - nlea_Tessellator_setNormal($var31, 0.0, 1.0, 0.0); - $var31.$hasTexture = 1; - $var31.$textureU = 0.75; - $var31.$textureV = 0.001953125; - nlea_Tessellator_addVertex($var31, var$23, var$26, (-0.5)); - $var31.$hasTexture = 1; - $var31.$textureU = 0.8125; - $var31.$textureV = 0.001953125; - nlea_Tessellator_addVertex($var31, var$25, var$26, (-0.5)); - $var31.$hasTexture = 1; - $var31.$textureU = 0.8125; - $var31.$textureV = 0.001953125; - nlea_Tessellator_addVertex($var31, var$25, var$26, 0.5); - $var31.$hasTexture = 1; - $var31.$textureU = 0.75; - $var31.$textureV = 0.001953125; - nlea_Tessellator_addVertex($var31, var$23, var$26, 0.5); - nlea_Tessellator_setNormal($var31, 0.0, (-1.0), 0.0); - $var31.$hasTexture = 1; - $var31.$textureU = 0.75; - $var31.$textureV = 0.001953125; - nlea_Tessellator_addVertex($var31, var$23, var$24, 0.5); - $var31.$hasTexture = 1; - $var31.$textureU = 0.8125; - $var31.$textureV = 0.001953125; - nlea_Tessellator_addVertex($var31, var$25, var$24, 0.5); - $var31.$hasTexture = 1; - $var31.$textureU = 0.8125; - $var31.$textureV = 0.001953125; - nlea_Tessellator_addVertex($var31, var$25, var$24, (-0.5)); - $var31.$hasTexture = 1; - $var31.$textureU = 0.75; - $var31.$textureV = 0.001953125; - nlea_Tessellator_addVertex($var31, var$23, var$24, (-0.5)); - nlea_Tessellator_setNormal($var31, (-1.0), 0.0, 0.0); - $var31.$hasTexture = 1; - $var31.$textureU = 0.751953125; - $var31.$textureV = 0.0; - nlea_Tessellator_addVertex($var31, var$23, var$26, 0.5); - $var31.$hasTexture = 1; - $var31.$textureU = 0.751953125; - $var31.$textureV = 0.0625; - nlea_Tessellator_addVertex($var31, var$23, var$24, 0.5); - $var31.$hasTexture = 1; - $var31.$textureU = 0.751953125; - $var31.$textureV = 0.0625; - nlea_Tessellator_addVertex($var31, var$23, var$24, (-0.5)); - $var31.$hasTexture = 1; - $var31.$textureU = 0.751953125; - $var31.$textureV = 0.0; - nlea_Tessellator_addVertex($var31, var$23, var$26, (-0.5)); - nlea_Tessellator_setNormal($var31, 1.0, 0.0, 0.0); - nlea_Tessellator_addVertexWithUV($var31, var$25, var$26, (-0.5), 0.751953125, 0.0); - nlea_Tessellator_addVertexWithUV($var31, var$25, var$24, (-0.5), 0.751953125, 0.0625); - nlea_Tessellator_addVertexWithUV($var31, var$25, var$24, 0.5, 0.751953125, 0.0625); - nlea_Tessellator_addVertexWithUV($var31, var$25, var$26, 0.5, 0.751953125, 0.0); - nlea_Tessellator_draw($var31); - $var22 = $var22_0; - } - $var21 = $var21 + 1 | 0; - } -} -function nms_RenderPainting_func_77008_a($this, $par1EntityPainting, $par2, $par3) { - var var$4, $var4, $var5, $var6, var$8, $var8, $var9, $var7, var$12, var$13; - var$4 = $par1EntityPainting.$posX; - $var4 = var$4 | 0; - if (var$4 < $var4) - $var4 = $var4 - 1 | 0; - var$4 = $par1EntityPainting.$posY + $par3 / 16.0; - $var5 = var$4 | 0; - if (var$4 < $var5) - $var5 = $var5 - 1 | 0; - var$4 = $par1EntityPainting.$posZ; - $var6 = var$4 | 0; - if (var$4 < $var6) - $var6 = $var6 - 1 | 0; - if ($par1EntityPainting.$hangingDirection == 2) { - var$8 = $par1EntityPainting.$posX + $par2 / 16.0; - $var4 = var$8 | 0; - if (var$8 < $var4) - $var4 = $var4 - 1 | 0; - } - if ($par1EntityPainting.$hangingDirection == 1) { - var$8 = $par1EntityPainting.$posZ - $par2 / 16.0; - $var6 = var$8 | 0; - if (var$8 < $var6) - $var6 = $var6 - 1 | 0; - } - if (!$par1EntityPainting.$hangingDirection) { - var$8 = $par1EntityPainting.$posX - $par2 / 16.0; - $var4 = var$8 | 0; - if (var$8 < $var4) - $var4 = $var4 - 1 | 0; - } - if ($par1EntityPainting.$hangingDirection == 3) { - var$4 = $par1EntityPainting.$posZ + $par2 / 16.0; - $var6 = var$4 | 0; - if (var$4 < $var6) - $var6 = $var6 - 1 | 0; - } - $par1EntityPainting = $this.$renderManager.$worldObj1; - $var8 = 0; - $var9 = nms_World_getSkyBlockTypeBrightness($par1EntityPainting, nms_EnumSkyBlock_Sky, $var4, $var5, $var6); - $var4 = nms_World_getSkyBlockTypeBrightness($par1EntityPainting, nms_EnumSkyBlock_Block, $var4, $var5, $var6); - if ($var4 >= $var8) - $var8 = $var4; - a: { - $var7 = $var9 << 20 | $var8 << 4; - $var8 = $var7 % 65536 | 0; - $var9 = $var7 / 65536 | 0; - $var4 = nms_OpenGlHelper_lightmapTexUnit; - $par2 = $var8; - $par3 = $var9; - nleg_EaglerAdapterGL30_$callClinit(); - switch ($var4) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = $par2; - nleg_EaglerAdapterGL30_tex1Y = $par3; - break a; - default: - if (jl_System_errCache === null) { - var$12 = new ji_PrintStream; - var$12.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityPainting = new jl_StringBuilder; - $par1EntityPainting.$buffer = $rt_createCharArray(16); - var$12.$sb = $par1EntityPainting; - var$12.$buffer0 = $rt_createCharArray(32); - var$12.$autoFlush = 0; - $par1EntityPainting = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityPainting, $rt_s(2), $rt_createArray(jl_String, 0)); - var$12.$charset = $par1EntityPainting; - jl_System_errCache = var$12; - } - var$13 = jl_System_errCache; - var$12 = var$13.$sb; - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(238)); - $var9 = var$12.$length; - jl_AbstractStringBuilder_insertSpace(var$12, $var9, $var9 + 1 | 0); - var$12.$buffer.data[$var9] = 10; - ji_PrintStream_printSB(var$13); - break a; - } - nleg_EaglerAdapterGL30_tex0X = $par2; - nleg_EaglerAdapterGL30_tex0Y = $par3; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; -} -function nms_RenderPainting_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderPainting_renderThePainting($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_RenderPainting__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1339); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderPainting_kz = var$1; -} -function nms_EntityItemFrame() { - nms_EntityHanging.call(this); - this.$itemDropChance = 0.0; -} -function nms_EntityItemFrame__init_0() { - var var_0 = new nms_EntityItemFrame(); - nms_EntityItemFrame__init_(var_0); - return var_0; -} -function nms_EntityItemFrame__init_1(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityItemFrame(); - nms_EntityItemFrame__init_2(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityItemFrame__init_($this) { - nms_Entity__init_0($this); - $this.$tickCounter1 = 0; - $this.$hangingDirection = 0; - $this.$yOffset0 = 0.0; - nms_Entity_setSize($this, 0.5, 0.5); - $this.$itemDropChance = 1.0; -} -function nms_EntityItemFrame__init_2($this, $par1World, $par2, $par3, $par4, $par5) { - nms_Entity__init_0($this); - $this.$tickCounter1 = 0; - $this.$hangingDirection = 0; - $this.$yOffset0 = 0.0; - nms_Entity_setSize($this, 0.5, 0.5); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$xPosition1 = $par2; - $this.$yPosition2 = $par3; - $this.$zPosition1 = $par4; - $this.$itemDropChance = 1.0; - nms_EntityHanging_setDirection($this, $par5); -} -function nms_EntityItemFrame_entityInit($this) { - var var$1, var$2, var$3; - var$1 = $this.$dataWatcher; - var$2 = new nms_WatchableObject; - var$3 = null; - var$2.$dataValueId = 2; - var$2.$watchedObject = var$3; - var$2.$objectType = 5; - var$2.$watched = 1; - ju_HashMap_putImpl(var$1.$watchedObjects, jl_Integer_valueOf(2), var$2); - var$1.$isBlank = 0; - var$3 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$3, 3, var$2); -} -function nms_EntityItemFrame_func_82329_d($this) { - return 9; -} -function nms_EntityItemFrame_func_82330_g($this) { - return 9; -} -function nms_EntityItemFrame_isInRangeToRenderDist($this, $par1) { - var $var3; - $var3 = 16.0 * 64.0 * $this.$renderDistanceWeight; - return $par1 >= $var3 * $var3 ? 0 : 1; -} -function nms_EntityItemFrame_dropItemStack($this) { - var var$1, var$2, $var1, var$4, var$5; - var$1 = new nms_ItemStack; - nms_Item_$callClinit(); - var$2 = nms_Item_itemFrame.$itemID; - var$1.$stackSize = 0; - var$1.$itemFrame = null; - var$1.$itemID0 = var$2; - var$1.$stackSize = 1; - var$1.$itemDamage = 0; - if (var$1.$itemDamage < 0) - var$1.$itemDamage = 0; - $var1 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject($var1.$dataWatcher, 10, var$1); - nms_DataWatcher_setObjectWatched($var1.$dataWatcher, 10); - $var1.$delayBeforeCanPickup = 10; - var$1 = $this.$worldObj; - var$4 = nms_World_spawnEntityInWorld(var$1, $var1); - var$5 = var$1.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, $var1, var$5); - if (!var$4) { - var$1 = var$1.$entitySpawnQueue; - ju_HashMap_putImpl(var$1.$backingMap, $var1, var$1); - } - $var1 = nms_DataWatcher_getWatchableObjectItemStack($this.$dataWatcher, 2); - if ($var1 !== null && Math.random() < $this.$itemDropChance) { - var$1 = nms_ItemStack_copy($var1); - var$1.$itemFrame = null; - $var1 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject($var1.$dataWatcher, 10, var$1); - nms_DataWatcher_setObjectWatched($var1.$dataWatcher, 10); - $var1.$delayBeforeCanPickup = 10; - var$1 = $this.$worldObj; - var$4 = nms_World_spawnEntityInWorld(var$1, $var1); - var$5 = var$1.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, $var1, var$5); - if (!var$4) { - var$1 = var$1.$entitySpawnQueue; - ju_HashMap_putImpl(var$1.$backingMap, $var1, var$1); - } - } -} -function nms_EntityItemFrame_getDisplayedItem($this) { - return nms_DataWatcher_getWatchableObjectItemStack($this.$dataWatcher, 2); -} -function nms_EntityItemFrame_setDisplayedItem($this, $par1ItemStack) { - $par1ItemStack = nms_ItemStack_copy($par1ItemStack); - $par1ItemStack.$stackSize = 1; - $par1ItemStack.$itemFrame = $this; - nms_DataWatcher_updateObject($this.$dataWatcher, 2, $par1ItemStack); - nms_DataWatcher_setObjectWatched($this.$dataWatcher, 2); -} -function nms_EntityItemFrame_getRotation($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 3); -} -function nms_EntityItemFrame_setItemRotation($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = ($par1 % 4 | 0) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 3, var$3); -} -function nms_EntityItemFrame_interact($this, $par1EntityPlayer) { - var $var2, var$3, var$4, var$5, var$6; - if (nms_DataWatcher_getWatchableObjectItemStack($this.$dataWatcher, 2) === null) { - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var2 !== null && !$this.$worldObj.$isRemote) { - var$3 = nms_ItemStack_copy($var2); - var$3.$stackSize = 1; - var$3.$itemFrame = $this; - nms_DataWatcher_updateObject($this.$dataWatcher, 2, var$3); - nms_DataWatcher_setObjectWatched($this.$dataWatcher, 2); - if (!$par1EntityPlayer.$capabilities.$isCreativeMode) { - var$4 = $var2.$stackSize - 1 | 0; - $var2.$stackSize = var$4; - if (var$4 <= 0) { - var$3 = $par1EntityPlayer.$inventory; - var$4 = $par1EntityPlayer.$inventory.$currentItem; - $par1EntityPlayer = null; - var$5 = var$3.$mainInventory; - var$6 = var$5.data.length; - if (var$4 >= var$6) { - var$4 = var$4 - var$6 | 0; - var$5 = var$3.$armorInventory; - } - var$5.data[var$4] = $par1EntityPlayer; - } - } - } - } else if (!$this.$worldObj.$isRemote) { - var$4 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 3) + 1 | 0; - $par1EntityPlayer = $this.$dataWatcher; - var$4 = (var$4 % 4 | 0) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = var$4; - nms_DataWatcher_updateObject($par1EntityPlayer, 3, var$3); - } - return 1; -} -function nms_RenderItemFrame() { - var a = this; nms_Render.call(a); - a.$renderBlocksInstance0 = null; - a.$field_94147_f = null; -} -var nms_RenderItemFrame_terrain = null; -var nms_RenderItemFrame_tex_mapbg = null; -function nms_RenderItemFrame__init_0() { - var var_0 = new nms_RenderItemFrame(); - nms_RenderItemFrame__init_(var_0); - return var_0; -} -function nms_RenderItemFrame__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$renderBlocksInstance0 = nms_RenderBlocks__init_2(); -} -function nms_RenderItemFrame_updateIcons($this, $par1IconRegister) { - $this.$field_94147_f = $par1IconRegister.$registerIcon($rt_s(1340)); -} -function nms_RenderItemFrame_func_82404_a($this, $par1EntityItemFrame, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, $var12, $var13, $var14, $var15, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityItemFrame = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_glPushMatrix(); - $var10 = $par1EntityItemFrame.$posX - $par2 - 0.5; - $var11 = $par1EntityItemFrame.$posY - $par4 - 0.5; - $var12 = $par1EntityItemFrame.$posZ - $par6 - 0.5; - $var13 = $par1EntityItemFrame.$xPosition1 + nms_Direction_offsetX.data[$par1EntityItemFrame.$hangingDirection] | 0; - $var14 = $par1EntityItemFrame.$yPosition2; - $var15 = $par1EntityItemFrame.$zPosition1 + nms_Direction_offsetZ.data[$par1EntityItemFrame.$hangingDirection] | 0; - $par8 = $var13 - $var10; - $par9 = $var14 - $var11; - $var10 = $var15 - $var12; - var$13 = nleg_EaglerAdapterGL30_deevis; - var$13.$x = $par8; - var$13.$y = $par9; - var$13.$z = $var10; - var$13 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$13, var$13); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$14 = new ji_PrintStream; - var$14.$out = new jl_ConsoleOutputStreamStderr; - var$13 = new jl_StringBuilder; - var$13.$buffer = $rt_createCharArray(16); - var$14.$sb = var$13; - var$14.$buffer0 = $rt_createCharArray(32); - var$14.$autoFlush = 0; - var$13 = new jnci_UTF8Charset; - jnc_Charset__init_(var$13, $rt_s(2), $rt_createArray(jl_String, 0)); - var$14.$charset = var$13; - jl_System_errCache = var$14; - } - var$15 = jl_System_errCache; - var$14 = var$15.$sb; - jl_AbstractStringBuilder_insert(var$14, var$14.$length, $rt_s(220)); - $var14 = var$14.$length; - jl_AbstractStringBuilder_insertSpace(var$14, $var14, $var14 + 1 | 0); - var$14.$buffer.data[$var14] = 10; - ji_PrintStream_printSB(var$15); - } - $ptr = 1; - case 1: - nms_RenderItemFrame_renderFrameItemAsBlock($this, $par1EntityItemFrame); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nms_RenderItemFrame_func_82402_b($this, $par1EntityItemFrame); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityItemFrame, $par2, $par4, $par6, $par8, $par9, $var10, $var11, $var12, $var13, $var14, $var15, var$13, var$14, var$15, $ptr); -} -function nms_RenderItemFrame_renderFrameItemAsBlock($this, $par1EntityItemFrame) { - var $var2, var$3, var$4, var$5, var$6, 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();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1EntityItemFrame = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_glPushMatrix(); - nle_TextureLocation_bindTexture(nms_RenderItemFrame_terrain); - nleg_EaglerAdapterGL30_glRotatef($par1EntityItemFrame.$rotationYaw, 0.0, 1.0, 0.0); - nms_Block_$callClinit(); - $var2 = nms_Block_planks; - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityItemFrame = $this.$renderBlocksInstance0; - var$3 = 0.8125; - nms_RenderBlocks_overrideBlockBounds($par1EntityItemFrame, 0.0, 0.1875, 0.1875, 0.03125, var$3, var$3); - $this.$renderBlocksInstance0.$overrideBlockTexture = $this.$field_94147_f; - $par1EntityItemFrame = $this.$renderBlocksInstance0; - var$4 = 0; - var$5 = 1.0; - $ptr = 1; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1EntityItemFrame, $var2, var$4, var$5); - if ($rt_suspending()) { - break main; - } - $this.$renderBlocksInstance0.$overrideBlockTexture = null; - $this.$renderBlocksInstance0.$lockBlockBounds = 0; - nleg_EaglerAdapterGL30_glPopMatrix(); - $this.$renderBlocksInstance0.$overrideBlockTexture = nms_Block_planks.$getIcon(1, 2); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityItemFrame = $this.$renderBlocksInstance0; - var$6 = 0.125; - var$7 = 0.06260000169277191; - var$8 = 0.1875; - var$9 = 0.875; - nms_RenderBlocks_overrideBlockBounds($par1EntityItemFrame, 0.0, var$6, var$6, var$7, var$8, var$9); - $par1EntityItemFrame = $this.$renderBlocksInstance0; - var$4 = 0; - var$5 = 1.0; - $ptr = 2; - case 2: - nms_RenderBlocks_renderBlockAsItem($par1EntityItemFrame, $var2, var$4, var$5); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_RenderBlocks_overrideBlockBounds($this.$renderBlocksInstance0, 0.0, var$3, var$6, var$7, var$9, var$9); - $par1EntityItemFrame = $this.$renderBlocksInstance0; - var$4 = 0; - var$5 = 1.0; - $ptr = 3; - case 3: - nms_RenderBlocks_renderBlockAsItem($par1EntityItemFrame, $var2, var$4, var$5); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityItemFrame = $this.$renderBlocksInstance0; - var$7 = 0.0625; - nms_RenderBlocks_overrideBlockBounds($par1EntityItemFrame, 0.0, var$6, var$6, var$7, var$9, var$8); - $par1EntityItemFrame = $this.$renderBlocksInstance0; - var$4 = 0; - var$5 = 1.0; - $ptr = 4; - case 4: - nms_RenderBlocks_renderBlockAsItem($par1EntityItemFrame, $var2, var$4, var$5); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_RenderBlocks_overrideBlockBounds($this.$renderBlocksInstance0, 0.0, var$6, var$3, var$7, var$9, var$9); - $par1EntityItemFrame = $this.$renderBlocksInstance0; - var$4 = 0; - var$5 = 1.0; - $ptr = 5; - case 5: - nms_RenderBlocks_renderBlockAsItem($par1EntityItemFrame, $var2, var$4, var$5); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - $this.$renderBlocksInstance0.$lockBlockBounds = 0; - $this.$renderBlocksInstance0.$overrideBlockTexture = null; - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityItemFrame, $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $ptr); -} -function nms_RenderItemFrame_func_82402_b($this, $par1EntityItemFrame) { - var $var2, $var3, var$4, var$5, $var4, $var9, var$8, $var10, $var7, var$11, var$12, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var7 = $thread.pop();$var10 = $thread.pop();var$8 = $thread.pop();$var9 = $thread.pop();$var4 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1EntityItemFrame = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_DataWatcher_getWatchableObjectItemStack($par1EntityItemFrame.$dataWatcher, 2); - if ($var2 !== null) { - $var3 = nms_EntityItem__init_0($par1EntityItemFrame.$worldObj, 0.0, 0.0, 0.0); - nms_DataWatcher_updateObject($var3.$dataWatcher, 10, $var2); - nms_DataWatcher_setObjectWatched($var3.$dataWatcher, 10); - nms_EntityItem_getEntityItem($var3).$stackSize = 1; - $var3.$hoverStart = 0.0; - nleg_EaglerAdapterGL30_glPushMatrix(); - var$4 = (-0.453125) * nms_Direction_offsetX.data[$par1EntityItemFrame.$hangingDirection]; - var$5 = (-0.453125) * nms_Direction_offsetZ.data[$par1EntityItemFrame.$hangingDirection]; - $var4 = nleg_EaglerAdapterGL30_deevis; - $var4.$x = var$4; - $var4.$y = (-0.18000000715255737); - $var4.$z = var$5; - $var4 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var4, $var4); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var2 = new ji_PrintStream; - $var2.$out = new jl_ConsoleOutputStreamStderr; - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - $var2.$sb = $var4; - $var2.$buffer0 = $rt_createCharArray(32); - $var2.$autoFlush = 0; - $var4 = new jnci_UTF8Charset; - jnc_Charset__init_($var4, $rt_s(2), $rt_createArray(jl_String, 0)); - $var2.$charset = $var4; - jl_System_errCache = $var2; - } - $var9 = jl_System_errCache; - $var2 = $var9.$sb; - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(220)); - var$8 = $var2.$length; - jl_AbstractStringBuilder_insertSpace($var2, var$8, var$8 + 1 | 0); - $var2.$buffer.data[var$8] = 10; - ji_PrintStream_printSB($var9); - } - a: { - nleg_EaglerAdapterGL30_glRotatef(180.0 + $par1EntityItemFrame.$rotationYaw, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-90) * nms_DataWatcher_getWatchableObjectByte($par1EntityItemFrame.$dataWatcher, 3) | 0, 0.0, 0.0, 1.0); - switch (nms_DataWatcher_getWatchableObjectByte($par1EntityItemFrame.$dataWatcher, 3)) { - case 1: - $var4 = nleg_EaglerAdapterGL30_deevis; - $var4.$x = (-0.1599999964237213); - $var4.$y = (-0.1599999964237213); - $var4.$z = 0.0; - $var4 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var4, $var4); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - $var4 = jl_System_err(); - $var9 = $var4.$sb; - jl_AbstractStringBuilder_append($var9, $rt_s(220)); - jl_StringBuilder_append($var9, 10); - ji_PrintStream_printSB($var4); - } - break a; - case 2: - break; - case 3: - nleg_EaglerAdapterGL30_glTranslatef(0.1599999964237213, (-0.1599999964237213), 0.0); - break a; - default: - break a; - } - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.3199999928474426), 0.0); - } - $var4 = nms_ItemStack_getItem(nms_EntityItem_getEntityItem($var3)); - nms_Item_$callClinit(); - if ($var4 !== nms_Item_map) { - if (nms_ItemStack_getItem(nms_EntityItem_getEntityItem($var3)) === nms_Item_compass) { - $var9 = nms_TextureCompass_compassTexture; - $var10 = $var9.$currentAngle; - $var7 = $var9.$angleDelta; - $var9.$currentAngle = 0.0; - $var9.$angleDelta = 0.0; - nms_TextureCompass_updateCompass($var9, $par1EntityItemFrame.$worldObj, $par1EntityItemFrame.$posX, $par1EntityItemFrame.$posZ, nms_MathHelper_wrapAngleTo180_float(180 + ($par1EntityItemFrame.$hangingDirection * 90 | 0) | 0), 0, 1); - $var9.$currentAngle = $var10; - $var9.$angleDelta = $var7; - } - nms_RenderItem_renderInFrame = 1; - $par1EntityItemFrame = nms_RenderManager_instance; - $var10 = 0.0; - $var7 = 0.0; - var$11 = 0.0; - var$4 = 0.0; - var$12 = 0.0; - $ptr = 1; - continue main; - } - nle_TextureLocation_bindTexture(nms_RenderItemFrame_tex_mapbg); - nlea_Tessellator_$callClinit(); - $var4 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glScalef(0.00390625, 0.00390625, 0.00390625); - nleg_EaglerAdapterGL30_glTranslatef((-65.0), (-107.0), (-3.0)); - nleg_EaglerAdapterGL30_glNormal3f(0.0, 0.0, (-1.0)); - nlea_Tessellator_startDrawingQuads($var4); - nlea_Tessellator_addVertexWithUV($var4, (-7.0), 135.0, 0.0, 0.0, 1.0); - nlea_Tessellator_addVertexWithUV($var4, 135.0, 135.0, 0.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var4, 135.0, (-7.0), 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var4, (-7.0), (-7.0), 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var4); - $var6 = nms_ItemMap_getMapData(nms_Item_map, nms_EntityItem_getEntityItem($var3), $par1EntityItemFrame.$worldObj); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, (-1.0)); - if ($var6 !== null) - nms_MapItemRenderer_renderMap($this.$renderManager.$itemRenderer.$mapItemRenderer, null, $this.$renderManager.$renderEngine1, $var6); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - return; - case 1: - nms_RenderManager_renderEntityWithPosYaw($par1EntityItemFrame, $var3, $var10, $var7, var$11, var$4, var$12); - if ($rt_suspending()) { - break main; - } - nms_RenderItem_renderInFrame = 0; - if (nms_ItemStack_getItem(nms_EntityItem_getEntityItem($var3)) === nms_Item_compass) - nms_TextureCompass_updateAnimation(nms_TextureCompass_compassTexture); - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityItemFrame, $var2, $var3, var$4, var$5, $var4, $var9, var$8, $var10, $var7, var$11, var$12, $var6, $ptr); -} -function nms_RenderItemFrame_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderItemFrame_func_82404_a($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderItemFrame__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderItemFrame_terrain = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(797); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderItemFrame_tex_mapbg = var$1; -} -function nms_IProjectile() { -} -function nms_EntityArrow() { - var a = this; nms_Entity.call(a); - a.$xTile = 0; - a.$yTile = 0; - a.$zTile = 0; - a.$inTile = 0; - a.$inData0 = 0; - a.$inGround = 0; - a.$canBePickedUp = 0; - a.$arrowShake = 0; - a.$shootingEntity = null; - a.$ticksInGround = 0; - a.$ticksInAir = 0; - a.$damage = 0.0; - a.$knockbackStrength = 0; -} -function nms_EntityArrow__init_1() { - var var_0 = new nms_EntityArrow(); - nms_EntityArrow__init_(var_0); - return var_0; -} -function nms_EntityArrow__init_0(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityArrow(); - nms_EntityArrow__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityArrow__init_3(var_0, var_1, var_2) { - var var_3 = new nms_EntityArrow(); - nms_EntityArrow__init_4(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_EntityArrow__init_($this) { - nms_Entity__init_0($this); - $this.$xTile = (-1); - $this.$yTile = (-1); - $this.$zTile = (-1); - $this.$inTile = 0; - $this.$inData0 = 0; - $this.$inGround = 0; - $this.$canBePickedUp = 0; - $this.$arrowShake = 0; - $this.$ticksInAir = 0; - $this.$damage = 2.0; - $this.$renderDistanceWeight = 10.0; - nms_Entity_setSize($this, 0.5, 0.5); -} -function nms_EntityArrow__init_2($this, $par1World, $par2, $par4, $par6) { - nms_Entity__init_0($this); - $this.$xTile = (-1); - $this.$yTile = (-1); - $this.$zTile = (-1); - $this.$inTile = 0; - $this.$inData0 = 0; - $this.$inGround = 0; - $this.$canBePickedUp = 0; - $this.$arrowShake = 0; - $this.$ticksInAir = 0; - $this.$damage = 2.0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$renderDistanceWeight = 10.0; - nms_Entity_setSize($this, 0.5, 0.5); - nms_Entity_setPosition($this, $par2, $par4, $par6); - $this.$yOffset0 = 0.0; -} -function nms_EntityArrow__init_4($this, $par1World, $par2EntityLiving, $par3) { - var var$4, var$5, var$6, var$7; - nms_Entity__init_0($this); - $this.$xTile = (-1); - $this.$yTile = (-1); - $this.$zTile = (-1); - $this.$inTile = 0; - $this.$inData0 = 0; - $this.$inGround = 0; - $this.$canBePickedUp = 0; - $this.$arrowShake = 0; - $this.$ticksInAir = 0; - $this.$damage = 2.0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$renderDistanceWeight = 10.0; - $this.$shootingEntity = $par2EntityLiving; - if ($par2EntityLiving instanceof nms_EntityPlayer) - $this.$canBePickedUp = 1; - nms_Entity_setSize($this, 0.5, 0.5); - nms_Entity_setLocationAndAngles($this, $par2EntityLiving.$posX, $par2EntityLiving.$posY + 0.11999999731779099, $par2EntityLiving.$posZ, $par2EntityLiving.$rotationYaw, $par2EntityLiving.$rotationPitch); - var$4 = $this.$posX; - var$5 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - $this.$posX = var$4 - nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.1599999964237213; - $this.$posY = $this.$posY - 0.10000000149011612; - var$4 = $this.$posZ; - var$5 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - $this.$posZ = var$4 - nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 | 0) & 65535] * 0.1599999964237213; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$yOffset0 = 0.0; - var$6 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - var$6 = -nms_MathHelper_SIN_TABLE.data[(var$6 * 10430.3779296875 | 0) & 65535]; - var$5 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $this.$motionX = var$6 * nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 + 16384.0 | 0) & 65535]; - var$6 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - var$7 = nms_MathHelper_SIN_TABLE.data[(var$6 * 10430.3779296875 + 16384.0 | 0) & 65535]; - var$6 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $this.$motionZ = var$7 * nms_MathHelper_SIN_TABLE.data[(var$6 * 10430.3779296875 + 16384.0 | 0) & 65535]; - var$6 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $this.$motionY = -nms_MathHelper_SIN_TABLE.data[(var$6 * 10430.3779296875 | 0) & 65535]; - nms_EntityArrow_setThrowableHeading($this, $this.$motionX, $this.$motionY, $this.$motionZ, $par3 * 1.5, 1.0); -} -function nms_EntityArrow_entityInit($this) { - var var$1, var$2; - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); -} -function nms_EntityArrow_setThrowableHeading($this, $par1, $par3, $par5, $par7, $par8) { - var var$6, var$7, $var10; - var$6 = jl_Math_sqrt($par1 * $par1 + $par3 * $par3 + $par5 * $par5); - $par1 = $par1 / var$6; - $par3 = $par3 / var$6; - $par5 = $par5 / var$6; - var$6 = ju_Random_nextGaussian($this.$rand0) * (!(ju_Random_next($this.$rand0, 32) % 2 | 0 ? 0 : 1) ? 1 : (-1)) * 0.007499999832361937; - var$7 = $par8; - $par1 = $par1 + var$6 * var$7; - $par3 = $par3 + ju_Random_nextGaussian($this.$rand0) * (!(ju_Random_next($this.$rand0, 32) % 2 | 0 ? 0 : 1) ? 1 : (-1)) * 0.007499999832361937 * var$7; - $par5 = $par5 + ju_Random_nextGaussian($this.$rand0) * (!(ju_Random_next($this.$rand0, 32) % 2 | 0 ? 0 : 1) ? 1 : (-1)) * 0.007499999832361937 * var$7; - var$6 = $par7; - $par1 = $par1 * var$6; - $par3 = $par3 * var$6; - $par5 = $par5 * var$6; - $this.$motionX = $par1; - $this.$motionY = $par3; - $this.$motionZ = $par5; - $var10 = jl_Math_sqrt($par1 * $par1 + $par5 * $par5); - $par7 = jl_Math_atan2($par1, $par5) * 180.0 / 3.141592653589793; - $this.$rotationYaw = $par7; - $this.$prevRotationYaw = $par7; - $par7 = jl_Math_atan2($par3, $var10) * 180.0 / 3.141592653589793; - $this.$rotationPitch = $par7; - $this.$prevRotationPitch = $par7; - $this.$ticksInGround = 0; -} -function nms_EntityArrow_setPositionAndRotation2($this, $par1, $par3, $par5, $par7, $par8, $par9) { - nms_Entity_setPosition($this, $par1, $par3, $par5); - $this.$rotationYaw = $par7 % 360.0; - $this.$rotationPitch = $par8 % 360.0; -} -function nms_EntityArrow_setVelocity($this, $par1, $par3, $par5) { - var $var7, var$5; - $this.$motionX = $par1; - $this.$motionY = $par3; - $this.$motionZ = $par5; - if ($this.$prevRotationPitch === 0.0 && $this.$prevRotationYaw === 0.0) { - $var7 = jl_Math_sqrt($par1 * $par1 + $par5 * $par5); - var$5 = jl_Math_atan2($par1, $par5) * 180.0 / 3.141592653589793; - $this.$rotationYaw = var$5; - $this.$prevRotationYaw = var$5; - $var7 = jl_Math_atan2($par3, $var7) * 180.0 / 3.141592653589793; - $this.$rotationPitch = $var7; - $this.$prevRotationPitch = $var7; - $this.$prevRotationPitch = $this.$rotationPitch; - $this.$prevRotationYaw = $this.$rotationYaw; - nms_Entity_setLocationAndAngles($this, $this.$posX, $this.$posY, $this.$posZ, $this.$rotationYaw, $this.$rotationPitch); - $this.$ticksInGround = 0; - } -} -function nms_EntityArrow_onUpdate($this) { - var $var1, $var21, $var16, $var2, $var18, $var19, $var17, $var3, $var4, $var5, $var6, $var7, $var9, $var10, $var13, $var14, $var20, var$18, $var24, $var22, var$21, var$22, var$23, $var26, $var25, $var27, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var27 = $thread.pop();$var25 = $thread.pop();$var26 = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var22 = $thread.pop();$var24 = $thread.pop();var$18 = $thread.pop();$var20 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var17 = $thread.pop();$var19 = $thread.pop();$var18 - = $thread.pop();$var2 = $thread.pop();$var16 = $thread.pop();$var21 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_Entity_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$prevRotationPitch === 0.0 && $this.$prevRotationYaw === 0.0) { - $var1 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $var21 = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationYaw = $var21; - $this.$prevRotationYaw = $var21; - $var21 = jl_Math_atan2($this.$motionY, $var1) * 180.0 / 3.141592653589793; - $this.$rotationPitch = $var21; - $this.$prevRotationPitch = $var21; - } - $var16 = nms_World_getBlockId($this.$worldObj, $this.$xTile, $this.$yTile, $this.$zTile); - if ($var16 > 0) { - nms_Block_$callClinit(); - nms_Block_blocksList.data[$var16].$setBlockBoundsBasedOnState($this.$worldObj, $this.$xTile, $this.$yTile, $this.$zTile); - $var2 = nms_Block_blocksList.data[$var16].$getCollisionBoundingBoxFromPool($this.$worldObj, $this.$xTile, $this.$yTile, $this.$zTile); - if ($var2 !== null && nms_AxisAlignedBB_isVecInside($var2, nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX, $this.$posY, $this.$posZ))) - $this.$inGround = 1; - } - if ($this.$arrowShake > 0) - $this.$arrowShake = $this.$arrowShake - 1 | 0; - if ($this.$inGround) { - a: { - $var18 = nms_World_getBlockId($this.$worldObj, $this.$xTile, $this.$yTile, $this.$zTile); - $var19 = nms_World_getBlockMetadata($this.$worldObj, $this.$xTile, $this.$yTile, $this.$zTile); - if ($var18 == $this.$inTile && $var19 == $this.$inData0) { - $this.$ticksInGround = $this.$ticksInGround + 1 | 0; - if ($this.$ticksInGround != 1200) - break a; - else { - $ptr = 2; - continue main; - } - } - $this.$inGround = 0; - $this.$motionX = $this.$motionX * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$motionY = $this.$motionY * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$motionZ = $this.$motionZ * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$ticksInGround = 0; - $this.$ticksInAir = 0; - } - return; - } - $this.$ticksInAir = $this.$ticksInAir + 1 | 0; - $var17 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX, $this.$posY, $this.$posZ); - $var3 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - $var4 = nms_World_rayTraceBlocks_do_do($this.$worldObj, $var17, $var3, 0, 1); - $var17 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX, $this.$posY, $this.$posZ); - $var3 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - if ($var4 !== null) - $var3 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $var4.$hitVec.$xCoord, $var4.$hitVec.$yCoord, $var4.$hitVec.$zCoord); - $var5 = null; - $var6 = nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_expand(nms_AxisAlignedBB_addCoord($this.$boundingBox, $this.$motionX, $this.$motionY, $this.$motionZ), 1.0, 1.0, 1.0)); - $var7 = 0.0; - $var9 = 0; - while ($var9 < ju_ArrayList_size($var6)) { - $var10 = ju_ArrayList_get($var6, $var9); - if ($var10.$canBeCollidedWith() && !($var10 === $this.$shootingEntity && $this.$ticksInAir < 5)) { - $var13 = nms_AxisAlignedBB_calculateIntercept(nms_AxisAlignedBB_expand($var10.$boundingBox, 0.30000001192092896, 0.30000001192092896, 0.30000001192092896), $var17, $var3); - if ($var13 !== null) { - $var14 = nms_Vec3_distanceTo($var17, $var13.$hitVec); - if (!($var14 >= $var7 && $var7 !== 0.0)) { - $var5 = $var10; - $var7 = $var14; - } - } - } - $var9 = $var9 + 1 | 0; - } - if ($var5 !== null) - $var4 = nms_MovingObjectPosition__init_0($var5); - b: { - if ($var4 !== null && $var4.$entityHit !== null && $var4.$entityHit instanceof nms_EntityPlayer) { - $var20 = $var4.$entityHit; - if (!$var20.$capabilities.$disableDamage) { - if (!($this.$shootingEntity instanceof nms_EntityPlayer)) - break b; - if (nms_EntityPlayer_func_96122_a($this.$shootingEntity, $var20)) - break b; - } - $var4 = null; - } - } - if ($var4 !== null) { - if ($var4.$entityHit === null) { - $this.$xTile = $var4.$blockX; - $this.$yTile = $var4.$blockY; - $this.$zTile = $var4.$blockZ; - $this.$inTile = nms_World_getBlockId($this.$worldObj, $this.$xTile, $this.$yTile, $this.$zTile); - $this.$inData0 = nms_World_getBlockMetadata($this.$worldObj, $this.$xTile, $this.$yTile, $this.$zTile); - $this.$motionX = $var4.$hitVec.$xCoord - $this.$posX; - $this.$motionY = $var4.$hitVec.$yCoord - $this.$posY; - $this.$motionZ = $var4.$hitVec.$zCoord - $this.$posZ; - $var21 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionY * $this.$motionY + $this.$motionZ * $this.$motionZ); - $var7 = $this.$posX; - $var14 = $this.$motionX; - var$18 = $var21; - $this.$posX = $var7 - $var14 / var$18 * 0.05000000074505806; - $this.$posY = $this.$posY - $this.$motionY / var$18 * 0.05000000074505806; - $this.$posZ = $this.$posZ - $this.$motionZ / var$18 * 0.05000000074505806; - $var17 = $rt_s(1341); - $var21 = 1.0; - $var24 = 1.2000000476837158 / (ju_Random_nextFloat($this.$rand0) * 0.20000000298023224 + 0.8999999761581421); - $ptr = 3; - continue main; - } - $var22 = nms_MathHelper_ceiling_double_int(nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionY * $this.$motionY + $this.$motionZ * $this.$motionZ) * $this.$damage); - if (nms_EntityArrow_getIsCritical($this)) - $var22 = $var22 + ju_Random_nextInt0($this.$rand0, ($var22 / 2 | 0) + 2 | 0) | 0; - $var17 = $this.$shootingEntity === null ? nms_DamageSource_causeArrowDamage($this, $this) : nms_DamageSource_causeArrowDamage($this, $this.$shootingEntity); - if (nms_Entity_isBurning($this) && !($var4.$entityHit instanceof nms_EntityEnderman)) - nms_Entity_setFire($var4.$entityHit, 5); - $var3 = $var4.$entityHit; - $ptr = 6; - continue main; - } - if (nms_EntityArrow_getIsCritical($this)) { - $var16 = 0; - if ($var16 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(850); - $var7 = $this.$posX; - $var14 = $this.$motionX; - var$18 = $var16; - $var7 = $var7 + $var14 * var$18 / 4.0; - var$21 = $this.$posY + $this.$motionY * var$18 / 4.0; - $var14 = $this.$posZ + $this.$motionZ * var$18 / 4.0; - var$18 = -$this.$motionX; - var$22 = -$this.$motionY + 0.2; - var$23 = -$this.$motionZ; - $ptr = 5; - continue main; - } - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var21 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var21) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var24 = 0.9900000095367432; - if (nms_Entity_isInWater($this)) { - $var26 = 0; - if ($var26 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(680); - $var7 = $this.$posX - $this.$motionX * 0.25; - $var14 = $this.$posY - $this.$motionY * 0.25; - var$18 = $this.$posZ - $this.$motionZ * 0.25; - var$22 = $this.$motionX; - var$23 = $this.$motionY; - var$21 = $this.$motionZ; - $ptr = 9; - continue main; - } - $var24 = 0.800000011920929; - } - $var7 = $this.$motionX; - $var14 = $var24; - $this.$motionX = $var7 * $var14; - $this.$motionY = $this.$motionY * $var14; - $this.$motionZ = $this.$motionZ * $var14; - $this.$motionY = $this.$motionY - 0.05000000074505806; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $ptr = 7; - continue main; - case 2: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_Entity_playSound($this, $var17, $var21, $var24); - if ($rt_suspending()) { - break main; - } - $this.$inGround = 1; - $this.$arrowShake = 7; - nms_EntityArrow_setIsCritical($this, 0); - if ($this.$inTile) { - nms_Block_$callClinit(); - $var17 = nms_Block_blocksList.data[$this.$inTile]; - $var3 = $this.$worldObj; - $var16 = $this.$xTile; - $var9 = $this.$yTile; - $var26 = $this.$zTile; - $ptr = 4; - continue main; - } - if (nms_EntityArrow_getIsCritical($this)) { - $var16 = 0; - if ($var16 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(850); - $var7 = $this.$posX; - $var14 = $this.$motionX; - var$18 = $var16; - $var7 = $var7 + $var14 * var$18 / 4.0; - var$21 = $this.$posY + $this.$motionY * var$18 / 4.0; - $var14 = $this.$posZ + $this.$motionZ * var$18 / 4.0; - var$18 = -$this.$motionX; - var$22 = -$this.$motionY + 0.2; - var$23 = -$this.$motionZ; - $ptr = 5; - continue main; - } - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var21 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var21) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var24 = 0.9900000095367432; - if (nms_Entity_isInWater($this)) { - $var26 = 0; - if ($var26 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(680); - $var7 = $this.$posX - $this.$motionX * 0.25; - $var14 = $this.$posY - $this.$motionY * 0.25; - var$18 = $this.$posZ - $this.$motionZ * 0.25; - var$22 = $this.$motionX; - var$23 = $this.$motionY; - var$21 = $this.$motionZ; - $ptr = 9; - continue main; - } - $var24 = 0.800000011920929; - } - $var7 = $this.$motionX; - $var14 = $var24; - $this.$motionX = $var7 * $var14; - $this.$motionY = $this.$motionY * $var14; - $this.$motionZ = $this.$motionZ * $var14; - $this.$motionY = $this.$motionY - 0.05000000074505806; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $ptr = 7; - continue main; - case 4: - $var17.$onEntityCollidedWithBlock($var3, $var16, $var9, $var26, $this); - if ($rt_suspending()) { - break main; - } - if (nms_EntityArrow_getIsCritical($this)) { - $var16 = 0; - if ($var16 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(850); - $var7 = $this.$posX; - $var14 = $this.$motionX; - var$18 = $var16; - $var7 = $var7 + $var14 * var$18 / 4.0; - var$21 = $this.$posY + $this.$motionY * var$18 / 4.0; - $var14 = $this.$posZ + $this.$motionZ * var$18 / 4.0; - var$18 = -$this.$motionX; - var$22 = -$this.$motionY + 0.2; - var$23 = -$this.$motionZ; - $ptr = 5; - continue main; - } - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var21 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var21) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var24 = 0.9900000095367432; - if (nms_Entity_isInWater($this)) { - $var26 = 0; - if ($var26 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(680); - $var7 = $this.$posX - $this.$motionX * 0.25; - $var14 = $this.$posY - $this.$motionY * 0.25; - var$18 = $this.$posZ - $this.$motionZ * 0.25; - var$22 = $this.$motionX; - var$23 = $this.$motionY; - var$21 = $this.$motionZ; - $ptr = 9; - continue main; - } - $var24 = 0.800000011920929; - } - $var7 = $this.$motionX; - $var14 = $var24; - $this.$motionX = $var7 * $var14; - $this.$motionY = $this.$motionY * $var14; - $this.$motionZ = $this.$motionZ * $var14; - $this.$motionY = $this.$motionY - 0.05000000074505806; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $ptr = 7; - continue main; - case 5: - nms_World_spawnParticle($var17, $var3, $var7, var$21, $var14, var$18, var$22, var$23); - if ($rt_suspending()) { - break main; - } - $var16 = $var16 + 1 | 0; - if ($var16 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(850); - $var7 = $this.$posX; - $var14 = $this.$motionX; - var$18 = $var16; - $var7 = $var7 + $var14 * var$18 / 4.0; - var$21 = $this.$posY + $this.$motionY * var$18 / 4.0; - $var14 = $this.$posZ + $this.$motionZ * var$18 / 4.0; - var$18 = -$this.$motionX; - var$22 = -$this.$motionY + 0.2; - var$23 = -$this.$motionZ; - continue main; - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var21 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var21) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var24 = 0.9900000095367432; - if (nms_Entity_isInWater($this)) { - $var26 = 0; - if ($var26 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(680); - $var7 = $this.$posX - $this.$motionX * 0.25; - $var14 = $this.$posY - $this.$motionY * 0.25; - var$18 = $this.$posZ - $this.$motionZ * 0.25; - var$22 = $this.$motionX; - var$23 = $this.$motionY; - var$21 = $this.$motionZ; - $ptr = 9; - continue main; - } - $var24 = 0.800000011920929; - } - $var7 = $this.$motionX; - $var14 = $var24; - $this.$motionX = $var7 * $var14; - $this.$motionY = $this.$motionY * $var14; - $this.$motionZ = $this.$motionZ * $var14; - $this.$motionY = $this.$motionY - 0.05000000074505806; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $ptr = 7; - continue main; - case 6: - $tmp = $var3.$attackEntityFrom($var17, $var22); - if ($rt_suspending()) { - break main; - } - $var16 = $tmp; - if ($var16) { - if ($var4.$entityHit instanceof nms_EntityLiving) { - $var25 = $var4.$entityHit; - if (!$this.$worldObj.$isRemote) - nms_EntityLiving_setArrowCountInEntity($var25, nms_EntityLiving_getArrowCountInEntity($var25) + 1 | 0); - if ($this.$knockbackStrength > 0) { - $var27 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - if ($var27 > 0.0) { - $var17 = $var4.$entityHit; - $var7 = $this.$motionX * $this.$knockbackStrength * 0.6000000238418579; - $var14 = $var27; - $var17.$addVelocity($var7 / $var14, 0.1, $this.$motionZ * $this.$knockbackStrength * 0.6000000238418579 / $var14); - } - } - if ($this.$shootingEntity !== null) { - $var17 = $this.$shootingEntity; - $var3 = $this.$rand0; - $ptr = 11; - continue main; - } - } - $var17 = $rt_s(1341); - $var21 = 1.0; - $var24 = 1.2000000476837158 / (ju_Random_nextFloat($this.$rand0) * 0.20000000298023224 + 0.8999999761581421); - $ptr = 8; - continue main; - } - $this.$motionX = $this.$motionX * (-0.10000000149011612); - $this.$motionY = $this.$motionY * (-0.10000000149011612); - $this.$motionZ = $this.$motionZ * (-0.10000000149011612); - $this.$rotationYaw = $this.$rotationYaw + 180.0; - $this.$prevRotationYaw = $this.$prevRotationYaw + 180.0; - $this.$ticksInAir = 0; - if (nms_EntityArrow_getIsCritical($this)) { - $var16 = 0; - if ($var16 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(850); - $var7 = $this.$posX; - $var14 = $this.$motionX; - var$18 = $var16; - $var7 = $var7 + $var14 * var$18 / 4.0; - var$21 = $this.$posY + $this.$motionY * var$18 / 4.0; - $var14 = $this.$posZ + $this.$motionZ * var$18 / 4.0; - var$18 = -$this.$motionX; - var$22 = -$this.$motionY + 0.2; - var$23 = -$this.$motionZ; - $ptr = 5; - continue main; - } - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var21 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var21) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var24 = 0.9900000095367432; - if (nms_Entity_isInWater($this)) { - $var26 = 0; - if ($var26 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(680); - $var7 = $this.$posX - $this.$motionX * 0.25; - $var14 = $this.$posY - $this.$motionY * 0.25; - var$18 = $this.$posZ - $this.$motionZ * 0.25; - var$22 = $this.$motionX; - var$23 = $this.$motionY; - var$21 = $this.$motionZ; - $ptr = 9; - continue main; - } - $var24 = 0.800000011920929; - } - $var7 = $this.$motionX; - $var14 = $var24; - $this.$motionX = $var7 * $var14; - $this.$motionY = $this.$motionY * $var14; - $this.$motionZ = $this.$motionZ * $var14; - $this.$motionY = $this.$motionY - 0.05000000074505806; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $ptr = 7; - case 7: - nms_Entity_doBlockCollisions($this); - if ($rt_suspending()) { - break main; - } - return; - case 8: - nms_Entity_playSound($this, $var17, $var21, $var24); - if ($rt_suspending()) { - break main; - } - if (!($var4.$entityHit instanceof nms_EntityEnderman)) { - $ptr = 10; - continue main; - } - if (nms_EntityArrow_getIsCritical($this)) { - $var16 = 0; - if ($var16 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(850); - $var7 = $this.$posX; - $var14 = $this.$motionX; - var$18 = $var16; - $var7 = $var7 + $var14 * var$18 / 4.0; - var$21 = $this.$posY + $this.$motionY * var$18 / 4.0; - $var14 = $this.$posZ + $this.$motionZ * var$18 / 4.0; - var$18 = -$this.$motionX; - var$22 = -$this.$motionY + 0.2; - var$23 = -$this.$motionZ; - $ptr = 5; - continue main; - } - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var21 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var21) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var24 = 0.9900000095367432; - if (nms_Entity_isInWater($this)) { - $var26 = 0; - if ($var26 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(680); - $var7 = $this.$posX - $this.$motionX * 0.25; - $var14 = $this.$posY - $this.$motionY * 0.25; - var$18 = $this.$posZ - $this.$motionZ * 0.25; - var$22 = $this.$motionX; - var$23 = $this.$motionY; - var$21 = $this.$motionZ; - $ptr = 9; - continue main; - } - $var24 = 0.800000011920929; - } - $var7 = $this.$motionX; - $var14 = $var24; - $this.$motionX = $var7 * $var14; - $this.$motionY = $this.$motionY * $var14; - $this.$motionZ = $this.$motionZ * $var14; - $this.$motionY = $this.$motionY - 0.05000000074505806; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $ptr = 7; - continue main; - case 9: - nms_World_spawnParticle($var17, $var3, $var7, $var14, var$18, var$22, var$23, var$21); - if ($rt_suspending()) { - break main; - } - $var26 = $var26 + 1 | 0; - if ($var26 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(680); - $var7 = $this.$posX - $this.$motionX * 0.25; - $var14 = $this.$posY - $this.$motionY * 0.25; - var$18 = $this.$posZ - $this.$motionZ * 0.25; - var$22 = $this.$motionX; - var$23 = $this.$motionY; - var$21 = $this.$motionZ; - continue main; - } - $var7 = $this.$motionX; - $var14 = 0.800000011920929; - $this.$motionX = $var7 * $var14; - $this.$motionY = $this.$motionY * $var14; - $this.$motionZ = $this.$motionZ * $var14; - $this.$motionY = $this.$motionY - 0.05000000074505806; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $ptr = 7; - continue main; - case 10: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - if (nms_EntityArrow_getIsCritical($this)) { - $var16 = 0; - if ($var16 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(850); - $var7 = $this.$posX; - $var14 = $this.$motionX; - var$18 = $var16; - $var7 = $var7 + $var14 * var$18 / 4.0; - var$21 = $this.$posY + $this.$motionY * var$18 / 4.0; - $var14 = $this.$posZ + $this.$motionZ * var$18 / 4.0; - var$18 = -$this.$motionX; - var$22 = -$this.$motionY + 0.2; - var$23 = -$this.$motionZ; - $ptr = 5; - continue main; - } - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var21 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var21) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var24 = 0.9900000095367432; - if (nms_Entity_isInWater($this)) { - $var26 = 0; - if ($var26 < 4) { - $var17 = $this.$worldObj; - $var3 = $rt_s(680); - $var7 = $this.$posX - $this.$motionX * 0.25; - $var14 = $this.$posY - $this.$motionY * 0.25; - var$18 = $this.$posZ - $this.$motionZ * 0.25; - var$22 = $this.$motionX; - var$23 = $this.$motionY; - var$21 = $this.$motionZ; - $ptr = 9; - continue main; - } - $var24 = 0.800000011920929; - } - $var7 = $this.$motionX; - $var14 = $var24; - $this.$motionX = $var7 * $var14; - $this.$motionY = $this.$motionY * $var14; - $this.$motionZ = $this.$motionZ * $var14; - $this.$motionY = $this.$motionY - 0.05000000074505806; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $ptr = 7; - continue main; - case 11: - nms_EnchantmentThorns_func_92096_a($var17, $var25, $var3); - if ($rt_suspending()) { - break main; - } - $var17 = $rt_s(1341); - $var21 = 1.0; - $var24 = 1.2000000476837158 / (ju_Random_nextFloat($this.$rand0) * 0.20000000298023224 + 0.8999999761581421); - $ptr = 8; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var21, $var16, $var2, $var18, $var19, $var17, $var3, $var4, $var5, $var6, $var7, $var9, $var10, $var13, $var14, $var20, var$18, $var24, $var22, var$21, var$22, var$23, $var26, $var25, $var27, $ptr); -} -function nms_EntityArrow_onCollideWithPlayer($this, $par1EntityPlayer) { - var $var2, var$3, var$4, var$5, var$6; - if (!$this.$worldObj.$isRemote && $this.$inGround && $this.$arrowShake <= 0) { - a: { - b: { - if ($this.$canBePickedUp != 1) { - if ($this.$canBePickedUp != 2) - break b; - if (!$par1EntityPlayer.$capabilities.$isCreativeMode) - break b; - } - $var2 = 1; - break a; - } - $var2 = 0; - } - if ($this.$canBePickedUp == 1) { - var$3 = $par1EntityPlayer.$inventory; - var$4 = new nms_ItemStack; - nms_Item_$callClinit(); - var$5 = nms_Item_arrow.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$5; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - if (!nms_InventoryPlayer_addItemStackToInventory(var$3, var$4)) - $var2 = 0; - } - if ($var2) { - var$6 = ((Math.random() - Math.random()) * 0.699999988079071 + 1.0) * 2.0; - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1342), 0.20000000298023224, var$6); - nms_EffectRenderer_addEffect($par1EntityPlayer.$mc3.$effectRenderer, nms_EntityPickupFX__init_($par1EntityPlayer.$mc3.$theWorld, $this, $par1EntityPlayer, (-0.5))); - $this.$isDead = 1; - } - } -} -function nms_EntityArrow_canTriggerWalking($this) { - return 0; -} -function nms_EntityArrow_getShadowSize($this) { - return 0.0; -} -function nms_EntityArrow_setDamage($this, $par1) { - $this.$damage = $par1; -} -function nms_EntityArrow_getDamage($this) { - return $this.$damage; -} -function nms_EntityArrow_setKnockbackStrength($this, $par1) { - $this.$knockbackStrength = $par1; -} -function nms_EntityArrow_canAttackWithItem($this) { - return 0; -} -function nms_EntityArrow_setIsCritical($this, $par1) { - var $var2, var$3, var$4; - $var2 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16); - if (!$par1) { - var$3 = $this.$dataWatcher; - $par1 = ($var2 & (-2)) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $par1; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } else { - var$3 = $this.$dataWatcher; - $var2 = ($var2 | 1) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = $var2; - nms_DataWatcher_updateObject(var$3, 16, var$4); - } -} -function nms_EntityArrow_getIsCritical($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; -} -function nms_RenderArrow() { - nms_Render.call(this); -} -var nms_RenderArrow_tex = null; -function nms_RenderArrow__init_0() { - var var_0 = new nms_RenderArrow(); - nms_RenderArrow__init_(var_0); - return var_0; -} -function nms_RenderArrow__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; -} -function nms_RenderArrow_renderArrow($this, $par1EntityArrow, $par2, $par4, $par6, $par8, $par9) { - var $var20, $var21, $var10, var$10, var$11, var$12, var$13, $var23; - nle_TextureLocation_bindTexture(nms_RenderArrow_tex); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par8 = $par2; - $var20 = $par4; - $var21 = $par6; - $var10 = nleg_EaglerAdapterGL30_deevis; - $var10.$x = $par8; - $var10.$y = $var20; - $var10.$z = $var21; - $var10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var10, $var10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - $var10 = new jl_StringBuilder; - $var10.$buffer = $rt_createCharArray(16); - var$10.$sb = $var10; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - $var10 = new jnci_UTF8Charset; - jnc_Charset__init_($var10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = $var10; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - nleg_EaglerAdapterGL30_glRotatef($par1EntityArrow.$prevRotationYaw + ($par1EntityArrow.$rotationYaw - $par1EntityArrow.$prevRotationYaw) * $par9 - 90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef($par1EntityArrow.$prevRotationPitch + ($par1EntityArrow.$rotationPitch - $par1EntityArrow.$prevRotationPitch) * $par9, 0.0, 0.0, 1.0); - nlea_Tessellator_$callClinit(); - $var10 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_glEnable(41); - $var21 = $par1EntityArrow.$arrowShake - $par9; - if ($var21 > 0.0) - nleg_EaglerAdapterGL30_glRotatef( -nms_MathHelper_sin($var21 * 3.0) * $var21, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 1.0, 0.0, 0.0); - $par1EntityArrow = nleg_EaglerAdapterGL30_deevis; - $par1EntityArrow.$x = 0.05624999850988388; - $par1EntityArrow.$y = 0.05624999850988388; - $par1EntityArrow.$z = 0.05624999850988388; - $par1EntityArrow = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityArrow, $par1EntityArrow); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $par1EntityArrow = new ji_PrintStream; - $par1EntityArrow.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - $par1EntityArrow.$sb = var$10; - $par1EntityArrow.$buffer0 = $rt_createCharArray(32); - $par1EntityArrow.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - $par1EntityArrow.$charset = var$10; - jl_System_errCache = $par1EntityArrow; - } - var$10 = jl_System_errCache; - $par1EntityArrow = var$10.$sb; - jl_AbstractStringBuilder_insert($par1EntityArrow, $par1EntityArrow.$length, $rt_s(220)); - var$13 = $par1EntityArrow.$length; - jl_AbstractStringBuilder_insertSpace($par1EntityArrow, var$13, var$13 + 1 | 0); - $par1EntityArrow.$buffer.data[var$13] = 10; - ji_PrintStream_printSB(var$10); - } - nlegv_Vector3f_set(nleg_EaglerAdapterGL30_deevis, (-4.0), 0.0, 0.0); - nlegv_Matrix4f_translate0(nleg_EaglerAdapterGL30_getMatrix(), nleg_EaglerAdapterGL30_deevis); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - nleg_EaglerAdapterGL30_glNormal3f(0.05624999850988388, 0.0, 0.0); - nlea_Tessellator_startDrawingQuads($var10); - nlea_Tessellator_addVertexWithUV($var10, (-7.0), (-2.0), (-2.0), 0.0, 0.15625); - nlea_Tessellator_addVertexWithUV($var10, (-7.0), (-2.0), 2.0, 0.15625, 0.15625); - nlea_Tessellator_addVertexWithUV($var10, (-7.0), 2.0, 2.0, 0.15625, 0.3125); - nlea_Tessellator_addVertexWithUV($var10, (-7.0), 2.0, (-2.0), 0.0, 0.3125); - nlea_Tessellator_draw($var10); - nleg_EaglerAdapterGL30_glNormal3f((-0.05624999850988388), 0.0, 0.0); - nlea_Tessellator_startDrawingQuads($var10); - nlea_Tessellator_addVertexWithUV($var10, (-7.0), 2.0, (-2.0), 0.0, 0.15625); - nlea_Tessellator_addVertexWithUV($var10, (-7.0), 2.0, 2.0, 0.15625, 0.15625); - nlea_Tessellator_addVertexWithUV($var10, (-7.0), (-2.0), 2.0, 0.15625, 0.3125); - nlea_Tessellator_addVertexWithUV($var10, (-7.0), (-2.0), (-2.0), 0.0, 0.3125); - nlea_Tessellator_draw($var10); - $var23 = 0; - while ($var23 < 4) { - nleg_EaglerAdapterGL30_glRotatef(90.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glNormal3f(0.0, 0.0, 0.05624999850988388); - nlea_Tessellator_startDrawingQuads($var10); - nlea_Tessellator_addVertexWithUV($var10, (-8.0), (-2.0), 0.0, 0.0, 0.0); - nlea_Tessellator_addVertexWithUV($var10, 8.0, (-2.0), 0.0, 0.5, 0.0); - nlea_Tessellator_addVertexWithUV($var10, 8.0, 2.0, 0.0, 0.5, 0.15625); - nlea_Tessellator_addVertexWithUV($var10, (-8.0), 2.0, 0.0, 0.0, 0.15625); - nlea_Tessellator_draw($var10); - $var23 = $var23 + 1 | 0; - } - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_RenderArrow_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderArrow_renderArrow($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_RenderArrow__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1343); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderArrow_tex = var$1; -} -function nms_EntityThrowable() { - var a = this; nms_Entity.call(a); - a.$xTile0 = 0; - a.$yTile0 = 0; - a.$zTile0 = 0; - a.$inTile0 = 0; - a.$inGround0 = 0; - a.$throwableShake = 0; - a.$thrower = null; - a.$throwerName = null; - a.$ticksInGround0 = 0; - a.$ticksInAir0 = 0; -} -function nms_EntityThrowable__init_() { - var var_0 = new nms_EntityThrowable(); - nms_EntityThrowable__init_0(var_0); - return var_0; -} -function nms_EntityThrowable__init_1(var_0, var_1) { - var var_2 = new nms_EntityThrowable(); - nms_EntityThrowable__init_2(var_2, var_0, var_1); - return var_2; -} -function nms_EntityThrowable__init_3(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityThrowable(); - nms_EntityThrowable__init_4(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityThrowable__init_0($this) { - nms_Entity__init_0($this); - $this.$xTile0 = (-1); - $this.$yTile0 = (-1); - $this.$zTile0 = (-1); - $this.$inTile0 = 0; - $this.$inGround0 = 0; - $this.$throwableShake = 0; - $this.$throwerName = null; - $this.$ticksInAir0 = 0; - nms_Entity_setSize($this, 0.25, 0.25); -} -function nms_EntityThrowable_entityInit($this) { - return; -} -function nms_EntityThrowable_isInRangeToRenderDist($this, $par1) { - var var$2, $var3; - var$2 = $this.$boundingBox; - $var3 = (var$2.$maxX - var$2.$minX + var$2.$maxY - var$2.$minY + var$2.$maxZ - var$2.$minZ) / 3.0 * 4.0 * 64.0; - return $par1 >= $var3 * $var3 ? 0 : 1; -} -function nms_EntityThrowable__init_2($this, $par1World, $par2EntityLiving) { - var var$3, $var3, var$5, var$6, var$7; - nms_Entity__init_0($this); - $this.$xTile0 = (-1); - $this.$yTile0 = (-1); - $this.$zTile0 = (-1); - $this.$inTile0 = 0; - $this.$inGround0 = 0; - $this.$throwableShake = 0; - $this.$throwerName = null; - $this.$ticksInAir0 = 0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$thrower = $par2EntityLiving; - nms_Entity_setSize($this, 0.25, 0.25); - nms_Entity_setLocationAndAngles($this, $par2EntityLiving.$posX, $par2EntityLiving.$posY + 0.11999999731779099, $par2EntityLiving.$posZ, $par2EntityLiving.$rotationYaw, $par2EntityLiving.$rotationPitch); - var$3 = $this.$posX; - $var3 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - $this.$posX = var$3 - nms_MathHelper_SIN_TABLE.data[($var3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.1599999964237213; - $this.$posY = $this.$posY - 0.10000000149011612; - var$3 = $this.$posZ; - $var3 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - $this.$posZ = var$3 - nms_MathHelper_SIN_TABLE.data[($var3 * 10430.3779296875 | 0) & 65535] * 0.1599999964237213; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$yOffset0 = 0.0; - var$5 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - var$5 = -nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 | 0) & 65535]; - var$6 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $this.$motionX = var$5 * nms_MathHelper_SIN_TABLE.data[(var$6 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.4000000059604645; - var$5 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - var$7 = nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 + 16384.0 | 0) & 65535]; - var$5 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $this.$motionZ = var$7 * nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.4000000059604645; - var$5 = ($this.$rotationPitch + $this.$func_70183_g()) / 180.0 * 3.1415927410125732; - $this.$motionY = -nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 | 0) & 65535] * 0.4000000059604645; - nms_EntityThrowable_setThrowableHeading($this, $this.$motionX, $this.$motionY, $this.$motionZ, $this.$func_70182_d(), 1.0); -} -function nms_EntityThrowable__init_4($this, $par1World, $par2, $par4, $par6) { - nms_Entity__init_0($this); - $this.$xTile0 = (-1); - $this.$yTile0 = (-1); - $this.$zTile0 = (-1); - $this.$inTile0 = 0; - $this.$inGround0 = 0; - $this.$throwableShake = 0; - $this.$throwerName = null; - $this.$ticksInAir0 = 0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$ticksInGround0 = 0; - nms_Entity_setSize($this, 0.25, 0.25); - nms_Entity_setPosition($this, $par2, $par4, $par6); - $this.$yOffset0 = 0.0; -} -function nms_EntityThrowable_func_70182_d($this) { - return 1.5; -} -function nms_EntityThrowable_func_70183_g($this) { - return 0.0; -} -function nms_EntityThrowable_setThrowableHeading($this, $par1, $par3, $par5, $par7, $par8) { - var var$6, var$7, var$8, $var10; - var$6 = jl_Math_sqrt($par1 * $par1 + $par3 * $par3 + $par5 * $par5); - var$7 = $par1 / var$6; - $par1 = $par3 / var$6; - var$6 = $par5 / var$6; - $par3 = ju_Random_nextGaussian($this.$rand0) * 0.007499999832361937; - var$8 = $par8; - $par3 = var$7 + $par3 * var$8; - $par5 = $par1 + ju_Random_nextGaussian($this.$rand0) * 0.007499999832361937 * var$8; - $par1 = var$6 + ju_Random_nextGaussian($this.$rand0) * 0.007499999832361937 * var$8; - var$6 = $par7; - $par3 = $par3 * var$6; - $par5 = $par5 * var$6; - $par1 = $par1 * var$6; - $this.$motionX = $par3; - $this.$motionY = $par5; - $this.$motionZ = $par1; - $var10 = jl_Math_sqrt($par3 * $par3 + $par1 * $par1); - $par7 = jl_Math_atan2($par3, $par1) * 180.0 / 3.141592653589793; - $this.$rotationYaw = $par7; - $this.$prevRotationYaw = $par7; - $par7 = jl_Math_atan2($par5, $var10) * 180.0 / 3.141592653589793; - $this.$rotationPitch = $par7; - $this.$prevRotationPitch = $par7; - $this.$ticksInGround0 = 0; -} -function nms_EntityThrowable_setVelocity($this, $par1, $par3, $par5) { - var $var7, var$5; - $this.$motionX = $par1; - $this.$motionY = $par3; - $this.$motionZ = $par5; - if ($this.$prevRotationPitch === 0.0 && $this.$prevRotationYaw === 0.0) { - $var7 = jl_Math_sqrt($par1 * $par1 + $par5 * $par5); - var$5 = jl_Math_atan2($par1, $par5) * 180.0 / 3.141592653589793; - $this.$rotationYaw = var$5; - $this.$prevRotationYaw = var$5; - var$5 = jl_Math_atan2($par3, $var7) * 180.0 / 3.141592653589793; - $this.$rotationPitch = var$5; - $this.$prevRotationPitch = var$5; - } -} -function nms_EntityThrowable_onUpdate($this) { - var $var16, $var2, $var3, $var4, $var5, $var6, $var8, $var9, $var10, $var13, $var14, $var1, $var17, $var18, $var19, $var7, var$17, var$18, var$19, var$20, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();$var7 = $thread.pop();$var19 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var1 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var16 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$lastTickPosX = $this.$posX; - $this.$lastTickPosY = $this.$posY; - $this.$lastTickPosZ = $this.$posZ; - $ptr = 1; - case 1: - nms_Entity_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$throwableShake > 0) - $this.$throwableShake = $this.$throwableShake - 1 | 0; - if (!$this.$inGround0) - $this.$ticksInAir0 = $this.$ticksInAir0 + 1 | 0; - else { - if (nms_World_getBlockId($this.$worldObj, $this.$xTile0, $this.$yTile0, $this.$zTile0) == $this.$inTile0) { - $this.$ticksInGround0 = $this.$ticksInGround0 + 1 | 0; - if ($this.$ticksInGround0 != 1200) - return; - $ptr = 2; - continue main; - } - $this.$inGround0 = 0; - $this.$motionX = $this.$motionX * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$motionY = $this.$motionY * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$motionZ = $this.$motionZ * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$ticksInGround0 = 0; - $this.$ticksInAir0 = 0; - } - $var16 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX, $this.$posY, $this.$posZ); - $var2 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - $var3 = nms_World_rayTraceBlocks($this.$worldObj, $var16, $var2); - $var16 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX, $this.$posY, $this.$posZ); - $var2 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - if ($var3 !== null) - $var2 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $var3.$hitVec.$xCoord, $var3.$hitVec.$yCoord, $var3.$hitVec.$zCoord); - if (!$this.$worldObj.$isRemote) { - $var4 = null; - $var5 = nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_expand(nms_AxisAlignedBB_addCoord($this.$boundingBox, $this.$motionX, $this.$motionY, $this.$motionZ), 1.0, 1.0, 1.0)); - $var6 = 0.0; - $var8 = nms_EntityThrowable_getThrower($this); - $var9 = 0; - while ($var9 < ju_ArrayList_size($var5)) { - $var10 = ju_ArrayList_get($var5, $var9); - if ($var10.$canBeCollidedWith() && !($var10 === $var8 && $this.$ticksInAir0 < 5)) { - $var13 = nms_AxisAlignedBB_calculateIntercept(nms_AxisAlignedBB_expand($var10.$boundingBox, 0.30000001192092896, 0.30000001192092896, 0.30000001192092896), $var16, $var2); - if ($var13 !== null) { - $var14 = nms_Vec3_distanceTo($var16, $var13.$hitVec); - if (!($var14 >= $var6 && $var6 !== 0.0)) { - $var4 = $var10; - $var6 = $var14; - } - } - } - $var9 = $var9 + 1 | 0; - } - if ($var4 !== null) - $var3 = nms_MovingObjectPosition__init_0($var4); - } - a: { - if ($var3 !== null) { - if ($var3.$typeOfHit !== nms_EnumMovingObjectType_TILE) - break a; - $var1 = nms_World_getBlockId($this.$worldObj, $var3.$blockX, $var3.$blockY, $var3.$blockZ); - nms_Block_$callClinit(); - if ($var1 != nms_Block_portal.$blockID) - break a; - nms_Entity_setInPortal($this); - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var17 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var17) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var18 = 0.9900000095367432; - $var19 = $this.$getGravityVelocity(); - if (nms_Entity_isInWater($this)) { - $var7 = 0; - if ($var7 < 4) { - $var16 = $this.$worldObj; - $var2 = $rt_s(680); - $var14 = $this.$posX - $this.$motionX * 0.25; - var$17 = $this.$posY - $this.$motionY * 0.25; - $var6 = $this.$posZ - $this.$motionZ * 0.25; - var$18 = $this.$motionX; - var$19 = $this.$motionY; - var$20 = $this.$motionZ; - $ptr = 4; - continue main; - } - $var18 = 0.800000011920929; - } - $var14 = $this.$motionX; - var$17 = $var18; - $this.$motionX = $var14 * var$17; - $this.$motionY = $this.$motionY * var$17; - $this.$motionZ = $this.$motionZ * var$17; - $this.$motionY = $this.$motionY - $var19; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - return; - } - $ptr = 3; - continue main; - case 2: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - return; - case 3: - $this.$onImpact($var3); - if ($rt_suspending()) { - break main; - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var17 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var17) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var18 = 0.9900000095367432; - $var19 = $this.$getGravityVelocity(); - if (nms_Entity_isInWater($this)) { - $var7 = 0; - if ($var7 < 4) { - $var16 = $this.$worldObj; - $var2 = $rt_s(680); - $var14 = $this.$posX - $this.$motionX * 0.25; - var$17 = $this.$posY - $this.$motionY * 0.25; - $var6 = $this.$posZ - $this.$motionZ * 0.25; - var$18 = $this.$motionX; - var$19 = $this.$motionY; - var$20 = $this.$motionZ; - $ptr = 4; - continue main; - } - $var18 = 0.800000011920929; - } - $var14 = $this.$motionX; - var$17 = $var18; - $this.$motionX = $var14 * var$17; - $this.$motionY = $this.$motionY * var$17; - $this.$motionZ = $this.$motionZ * var$17; - $this.$motionY = $this.$motionY - $var19; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - return; - case 4: - nms_World_spawnParticle($var16, $var2, $var14, var$17, $var6, var$18, var$19, var$20); - if ($rt_suspending()) { - break main; - } - $var7 = $var7 + 1 | 0; - if ($var7 >= 4) { - $var14 = $this.$motionX; - var$17 = 0.800000011920929; - $this.$motionX = $var14 * var$17; - $this.$motionY = $this.$motionY * var$17; - $this.$motionZ = $this.$motionZ * var$17; - $this.$motionY = $this.$motionY - $var19; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - return; - } - $var16 = $this.$worldObj; - $var2 = $rt_s(680); - $var14 = $this.$posX - $this.$motionX * 0.25; - var$17 = $this.$posY - $this.$motionY * 0.25; - $var6 = $this.$posZ - $this.$motionZ * 0.25; - var$18 = $this.$motionX; - var$19 = $this.$motionY; - var$20 = $this.$motionZ; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var16, $var2, $var3, $var4, $var5, $var6, $var8, $var9, $var10, $var13, $var14, $var1, $var17, $var18, $var19, $var7, var$17, var$18, var$19, var$20, $ptr); -} -function nms_EntityThrowable_getGravityVelocity($this) { - return 0.029999999329447746; -} -function nms_EntityThrowable_getShadowSize($this) { - return 0.0; -} -function nms_EntityThrowable_getThrower($this) { - if ($this.$thrower === null && $this.$throwerName !== null && $this.$throwerName.$length0() > 0) - $this.$thrower = nms_World_getPlayerEntityByName($this.$worldObj, $this.$throwerName); - return $this.$thrower; -} -function nms_EntitySnowball() { - nms_EntityThrowable.call(this); -} -function nms_EntitySnowball__init_0() { - var var_0 = new nms_EntitySnowball(); - nms_EntitySnowball__init_(var_0); - return var_0; -} -function nms_EntitySnowball__init_1(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntitySnowball(); - nms_EntitySnowball__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntitySnowball__init_($this) { - nms_EntityThrowable__init_0($this); -} -function nms_EntitySnowball__init_2($this, $par1World, $par2, $par4, $par6) { - nms_EntityThrowable__init_4($this, $par1World, $par2, $par4, $par6); -} -function nms_EntitySnowball_onImpact($this, $par1MovingObjectPosition) { - var $var2, var$3, var$4, $var3, var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $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();$var3 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1MovingObjectPosition = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1MovingObjectPosition.$entityHit !== null) { - $var2 = 0; - if ($par1MovingObjectPosition.$entityHit instanceof nms_EntityBlaze) - $var2 = 3; - $par1MovingObjectPosition = $par1MovingObjectPosition.$entityHit; - var$3 = nms_EntityThrowable_getThrower($this); - var$4 = new nms_EntityDamageSourceIndirect; - var$4.$isUnblockable = 0; - var$4.$isDamageAllowedInCreativeMode = 0; - var$4.$hungerDamage = 0.30000001192092896; - var$4.$magicDamage = 0; - var$4.$explosion = 0; - var$4.$damageType = $rt_s(1344); - var$4.$damageSourceEntity = $this; - var$4.$indirectEntity = var$3; - var$4.$projectile = 1; - $ptr = 1; - continue main; - } - $var3 = 0; - while ($var3 < 8) { - var$3 = $this.$worldObj; - var$4 = $rt_s(863); - var$6 = $this.$posX; - var$7 = $this.$posY; - var$8 = $this.$posZ; - var$9 = 0.0; - var$10 = 0.0; - var$11 = 0.0; - var$12 = 0; - if (var$12 < var$3.$worldAccesses.$size0) { - $par1MovingObjectPosition = var$3.$worldAccesses; - if (var$12 >= 0 && var$12 < $par1MovingObjectPosition.$size0) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$array1.data[var$12]; - $ptr = 2; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - $rt_throw($par1MovingObjectPosition); - } - $var3 = $var3 + 1 | 0; - } - if (!$this.$worldObj.$isRemote) - $this.$isDead = 1; - return; - case 1: - $par1MovingObjectPosition.$attackEntityFrom(var$4, $var2); - if ($rt_suspending()) { - break main; - } - $var3 = 0; - while ($var3 < 8) { - var$3 = $this.$worldObj; - var$4 = $rt_s(863); - var$6 = $this.$posX; - var$7 = $this.$posY; - var$8 = $this.$posZ; - var$9 = 0.0; - var$10 = 0.0; - var$11 = 0.0; - var$12 = 0; - if (var$12 < var$3.$worldAccesses.$size0) { - $par1MovingObjectPosition = var$3.$worldAccesses; - if (var$12 >= 0 && var$12 < $par1MovingObjectPosition.$size0) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$array1.data[var$12]; - $ptr = 2; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - $rt_throw($par1MovingObjectPosition); - } - $var3 = $var3 + 1 | 0; - } - if (!$this.$worldObj.$isRemote) - $this.$isDead = 1; - return; - case 2: - nms_RenderGlobal_doSpawnParticle($par1MovingObjectPosition, var$4, var$6, var$7, var$8, var$9, var$10, var$11); - if ($rt_suspending()) { - break main; - } - var$12 = var$12 + 1 | 0; - while (true) { - if (var$12 < var$3.$worldAccesses.$size0) { - $par1MovingObjectPosition = var$3.$worldAccesses; - if (var$12 >= 0 && var$12 < $par1MovingObjectPosition.$size0) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$array1.data[var$12]; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - $rt_throw($par1MovingObjectPosition); - } - $var3 = $var3 + 1 | 0; - if ($var3 >= 8) - break; - var$3 = $this.$worldObj; - var$4 = $rt_s(863); - var$6 = $this.$posX; - var$7 = $this.$posY; - var$8 = $this.$posZ; - var$9 = 0.0; - var$10 = 0.0; - var$11 = 0.0; - var$12 = 0; - } - if (!$this.$worldObj.$isRemote) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1MovingObjectPosition, $var2, var$3, var$4, $var3, var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr); -} -function nms_RenderSnowball() { - var a = this; nms_Render.call(a); - a.$field_94151_a = null; - a.$field_94150_f = 0; -} -var nms_RenderSnowball_tex = null; -function nms_RenderSnowball__init_1(var_0, var_1) { - var var_2 = new nms_RenderSnowball(); - nms_RenderSnowball__init_2(var_2, var_0, var_1); - return var_2; -} -function nms_RenderSnowball__init_0(var_0) { - var var_1 = new nms_RenderSnowball(); - nms_RenderSnowball__init_(var_1, var_0); - return var_1; -} -function nms_RenderSnowball__init_2($this, $par1, $par2) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$field_94151_a = $par1; - $this.$field_94150_f = $par2; -} -function nms_RenderSnowball__init_($this, $par1) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$field_94151_a = $par1; - $this.$field_94150_f = 0; -} -function nms_RenderSnowball_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var14, $var11, var$10, var$11, var$12, $var12, $var13, $var15; - $var10 = $this.$field_94151_a.$getIconFromDamage($this.$field_94150_f); - if ($var10 !== null) { - nleg_EaglerAdapterGL30_glPushMatrix(); - $par8 = $par2; - $par9 = $par4; - $var14 = $par6; - $var11 = nleg_EaglerAdapterGL30_deevis; - $var11.$x = $par8; - $var11.$y = $par9; - $var11.$z = $var14; - $var11 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var11, $var11); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - $var11 = new jl_StringBuilder; - $var11.$buffer = $rt_createCharArray(16); - var$10.$sb = $var11; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - $var11 = new jnci_UTF8Charset; - jnc_Charset__init_($var11, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = $var11; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - nleg_EaglerAdapterGL30_glEnable(41); - $var11 = nleg_EaglerAdapterGL30_deevis; - $var11.$x = 0.5; - $var11.$y = 0.5; - $var11.$z = 0.5; - $var11 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $var11, $var11); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - $var11 = new jl_StringBuilder; - $var11.$buffer = $rt_createCharArray(16); - var$10.$sb = $var11; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - $var11 = new jnci_UTF8Charset; - jnc_Charset__init_($var11, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = $var11; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - nle_TextureLocation_bindTexture(nms_RenderSnowball_tex); - nlea_Tessellator_$callClinit(); - $var11 = nlea_Tessellator_instance; - if ($var10 === nms_ItemPotion_func_94589_d($rt_s(1345))) { - $var12 = nms_PotionHelper_func_77915_a(nms_EntityPotion_getPotionDamage($par1Entity), 0); - $var13 = ($var12 >> 16 & 255) / 255.0; - $var14 = ($var12 >> 8 & 255) / 255.0; - $var15 = ($var12 & 255) / 255.0; - nleg_EaglerAdapterGL30_colorR = $var13; - nleg_EaglerAdapterGL30_colorG = $var14; - nleg_EaglerAdapterGL30_colorB = $var15; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_RenderSnowball_func_77026_a($this, $var11, nms_ItemPotion_func_94589_d($rt_s(1346))); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - } - nms_RenderSnowball_func_77026_a($this, $var11, $var10); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_RenderSnowball_func_77026_a($this, $par1Tessellator, $par2Icon) { - var $var3, $var4, $var5, $var6, var$7, var$8, var$9, var$10, var$11; - $var3 = $par2Icon.$getMinU(); - $var4 = $par2Icon.$getMaxU(); - $var5 = $par2Icon.$getMinV(); - $var6 = $par2Icon.$getMaxV(); - nleg_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$playerViewY, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$playerViewX, 1.0, 0.0, 0.0); - nlea_Tessellator_startDrawing($par1Tessellator, 98); - nlea_Tessellator_setNormal($par1Tessellator, 0.0, 1.0, 0.0); - var$7 = $var3; - var$8 = $var6; - $par1Tessellator.$hasTexture = 1; - var$9 = var$7; - $par1Tessellator.$textureU = var$9; - var$10 = var$8; - $par1Tessellator.$textureV = var$10; - nlea_Tessellator_addVertex($par1Tessellator, (-0.5), (-0.25), 0.0); - var$8 = $var4; - $par1Tessellator.$hasTexture = 1; - $var3 = var$8; - $par1Tessellator.$textureU = $var3; - $par1Tessellator.$textureV = var$10; - nlea_Tessellator_addVertex($par1Tessellator, 0.5, (-0.25), 0.0); - var$11 = $var5; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = $var3; - var$10 = var$11; - $par1Tessellator.$textureV = var$10; - nlea_Tessellator_addVertex($par1Tessellator, 0.5, 0.75, 0.0); - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = var$9; - $par1Tessellator.$textureV = var$10; - nlea_Tessellator_addVertex($par1Tessellator, (-0.5), 0.75, 0.0); - nlea_Tessellator_draw($par1Tessellator); -} -function nms_RenderSnowball__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(647); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderSnowball_tex = var$1; -} -function nms_Item() { - var a = this; jl_Object.call(a); - a.$tabToDisplayOn = null; - a.$itemID = 0; - a.$maxStackSize = 0; - a.$maxDamage = 0; - a.$bFull3D = 0; - a.$hasSubtypes = 0; - a.$containerItem = null; - a.$potionEffect = null; - a.$unlocalizedName = null; - a.$itemIcon = null; -} -var nms_Item_itemRand = null; -var nms_Item_itemsList = null; -var nms_Item_shovelIron = null; -var nms_Item_pickaxeIron = null; -var nms_Item_axeIron = null; -var nms_Item_flintAndSteel = null; -var nms_Item_appleRed = null; -var nms_Item_bow = null; -var nms_Item_arrow = null; -var nms_Item_coal = null; -var nms_Item_diamond = null; -var nms_Item_ingotIron = null; -var nms_Item_ingotGold = null; -var nms_Item_swordIron = null; -var nms_Item_swordWood = null; -var nms_Item_shovelWood = null; -var nms_Item_pickaxeWood = null; -var nms_Item_axeWood = null; -var nms_Item_swordStone = null; -var nms_Item_shovelStone = null; -var nms_Item_pickaxeStone = null; -var nms_Item_axeStone = null; -var nms_Item_swordDiamond = null; -var nms_Item_shovelDiamond = null; -var nms_Item_pickaxeDiamond = null; -var nms_Item_axeDiamond = null; -var nms_Item_stick = null; -var nms_Item_bowlEmpty = null; -var nms_Item_bowlSoup = null; -var nms_Item_swordGold = null; -var nms_Item_shovelGold = null; -var nms_Item_pickaxeGold = null; -var nms_Item_axeGold = null; -var nms_Item_silk = null; -var nms_Item_feather = null; -var nms_Item_gunpowder = null; -var nms_Item_hoeWood = null; -var nms_Item_hoeStone = null; -var nms_Item_hoeIron = null; -var nms_Item_hoeDiamond = null; -var nms_Item_hoeGold = null; -var nms_Item_seeds = null; -var nms_Item_wheat = null; -var nms_Item_bread = null; -var nms_Item_helmetLeather = null; -var nms_Item_plateLeather = null; -var nms_Item_legsLeather = null; -var nms_Item_bootsLeather = null; -var nms_Item_helmetChain = null; -var nms_Item_plateChain = null; -var nms_Item_legsChain = null; -var nms_Item_bootsChain = null; -var nms_Item_helmetIron = null; -var nms_Item_plateIron = null; -var nms_Item_legsIron = null; -var nms_Item_bootsIron = null; -var nms_Item_helmetDiamond = null; -var nms_Item_plateDiamond = null; -var nms_Item_legsDiamond = null; -var nms_Item_bootsDiamond = null; -var nms_Item_helmetGold = null; -var nms_Item_plateGold = null; -var nms_Item_legsGold = null; -var nms_Item_bootsGold = null; -var nms_Item_flint = null; -var nms_Item_porkRaw = null; -var nms_Item_porkCooked = null; -var nms_Item_painting = null; -var nms_Item_appleGold = null; -var nms_Item_sign = null; -var nms_Item_doorWood = null; -var nms_Item_bucketEmpty = null; -var nms_Item_bucketWater = null; -var nms_Item_bucketLava = null; -var nms_Item_minecartEmpty = null; -var nms_Item_saddle = null; -var nms_Item_doorIron = null; -var nms_Item_redstone = null; -var nms_Item_snowball = null; -var nms_Item_boat = null; -var nms_Item_leather = null; -var nms_Item_bucketMilk = null; -var nms_Item_brick = null; -var nms_Item_clay = null; -var nms_Item_reed = null; -var nms_Item_paper = null; -var nms_Item_book = null; -var nms_Item_slimeBall = null; -var nms_Item_minecartCrate = null; -var nms_Item_minecartPowered = null; -var nms_Item_egg = null; -var nms_Item_compass = null; -var nms_Item_fishingRod = null; -var nms_Item_pocketSundial = null; -var nms_Item_lightStoneDust = null; -var nms_Item_fishRaw = null; -var nms_Item_fishCooked = null; -var nms_Item_dyePowder = null; -var nms_Item_bone = null; -var nms_Item_sugar = null; -var nms_Item_cake = null; -var nms_Item_bed = null; -var nms_Item_redstoneRepeater = null; -var nms_Item_cookie = null; -var nms_Item_map = null; -var nms_Item_shears = null; -var nms_Item_melon = null; -var nms_Item_pumpkinSeeds = null; -var nms_Item_melonSeeds = null; -var nms_Item_beefRaw = null; -var nms_Item_beefCooked = null; -var nms_Item_chickenRaw = null; -var nms_Item_chickenCooked = null; -var nms_Item_rottenFlesh = null; -var nms_Item_enderPearl = null; -var nms_Item_blazeRod = null; -var nms_Item_ghastTear = null; -var nms_Item_goldNugget = null; -var nms_Item_netherStalkSeeds = null; -var nms_Item_potion = null; -var nms_Item_glassBottle = null; -var nms_Item_spiderEye = null; -var nms_Item_fermentedSpiderEye = null; -var nms_Item_blazePowder = null; -var nms_Item_magmaCream = null; -var nms_Item_brewingStand = null; -var nms_Item_cauldron = null; -var nms_Item_eyeOfEnder = null; -var nms_Item_speckledMelon = null; -var nms_Item_monsterPlacer = null; -var nms_Item_expBottle = null; -var nms_Item_fireballCharge = null; -var nms_Item_writableBook = null; -var nms_Item_writtenBook = null; -var nms_Item_emerald = null; -var nms_Item_itemFrame = null; -var nms_Item_flowerPot = null; -var nms_Item_carrot = null; -var nms_Item_potato = null; -var nms_Item_bakedPotato = null; -var nms_Item_poisonousPotato = null; -var nms_Item_emptyMap = null; -var nms_Item_goldenCarrot = null; -var nms_Item_skull = null; -var nms_Item_carrotOnAStick = null; -var nms_Item_netherStar = null; -var nms_Item_pumpkinPie = null; -var nms_Item_firework = null; -var nms_Item_fireworkCharge = null; -var nms_Item_enchantedBook = null; -var nms_Item_comparator = null; -var nms_Item_netherrackBrick = null; -var nms_Item_netherQuartz = null; -var nms_Item_minecartTnt = null; -var nms_Item_minecartHopper = null; -var nms_Item_record13 = null; -var nms_Item_recordCat = null; -var nms_Item_recordBlocks = null; -var nms_Item_recordChirp = null; -var nms_Item_recordFar = null; -var nms_Item_recordMall = null; -var nms_Item_recordMellohi = null; -var nms_Item_recordStal = null; -var nms_Item_recordStrad = null; -var nms_Item_recordWard = null; -var nms_Item_record11 = null; -var nms_Item_recordWait = null; -function nms_Item_$callClinit() { - nms_Item_$callClinit = $rt_eraseClinit(nms_Item); - nms_Item__clinit_(); -} -function nms_Item__init_(var_0) { - var var_1 = new nms_Item(); - nms_Item__init_0(var_1, var_0); - return var_1; -} -function nms_Item__init_0($this, $par1) { - var var$2, var$3, var$4, var$5, var$6; - nms_Item_$callClinit(); - $this.$tabToDisplayOn = null; - $this.$maxStackSize = 64; - $this.$maxDamage = 0; - $this.$bFull3D = 0; - $this.$hasSubtypes = 0; - $this.$containerItem = null; - $this.$potionEffect = null; - var$2 = 256 + $par1 | 0; - $this.$itemID = var$2; - if (nms_Item_itemsList.data[var$2] !== null) { - if (jl_System_outCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStdout; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - var$3.$sb = var$4; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - var$4 = new jnci_UTF8Charset; - jnc_Charset__init_(var$4, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = var$4; - jl_System_outCache = var$3; - } - var$5 = jl_System_outCache; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1347)); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $par1, 10); - var$3 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - var$4 = var$5.$sb; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$3); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); - } - nms_Item_itemsList.data[var$2] = $this; -} -function nms_Item_setMaxStackSize($this, $par1) { - $this.$maxStackSize = $par1; - return $this; -} -function nms_Item_getSpriteNumber($this) { - return 1; -} -function nms_Item_getIconFromDamage($this, $par1) { - return $this.$itemIcon; -} -function nms_Item_getIconIndex($this, $par1ItemStack) { - return $this.$getIconFromDamage($par1ItemStack.$itemDamage); -} -function nms_Item_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - return 0; -} -function nms_Item_getStrVsBlock($this, $par1ItemStack, $par2Block) { - return 1.0; -} -function nms_Item_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - return $par1ItemStack; -} -function nms_Item_onEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - return $par1ItemStack; -} -function nms_Item_getItemStackLimit($this) { - return $this.$maxStackSize; -} -function nms_Item_getMetadata($this, $par1) { - return 0; -} -function nms_Item_getHasSubtypes($this) { - return $this.$hasSubtypes; -} -function nms_Item_setHasSubtypes($this, $par1) { - $this.$hasSubtypes = $par1; - return $this; -} -function nms_Item_getMaxDamage($this) { - return $this.$maxDamage; -} -function nms_Item_setMaxDamage($this, $par1) { - $this.$maxDamage = $par1; - return $this; -} -function nms_Item_isDamageable($this) { - return $this.$maxDamage > 0 && !$this.$hasSubtypes ? 1 : 0; -} -function nms_Item_hitEntity($this, $par1ItemStack, $par2EntityLiving, $par3EntityLiving) { - return 0; -} -function nms_Item_onBlockDestroyed($this, $par1ItemStack, $par2World, $par3, $par4, $par5, $par6, $par7EntityLiving) { - return 0; -} -function nms_Item_getDamageVsEntity($this, $par1Entity) { - return 1; -} -function nms_Item_canHarvestBlock($this, $par1Block) { - return 0; -} -function nms_Item_itemInteractionForEntity($this, $par1ItemStack, $par2EntityLiving) { - return 0; -} -function nms_Item_setFull3D($this) { - $this.$bFull3D = 1; - return $this; -} -function nms_Item_isFull3D($this) { - return $this.$bFull3D; -} -function nms_Item_shouldRotateAroundWhenRendering($this) { - return 0; -} -function nms_Item_setUnlocalizedName($this, $par1Str) { - $this.$unlocalizedName = $par1Str; - return $this; -} -function nms_Item_getLocalizedName($this, $par1ItemStack) { - var $var2; - $var2 = $this.$getUnlocalizedName($par1ItemStack); - return $var2 === null ? $rt_s(44) : nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var2); -} -function nms_Item_getUnlocalizedName($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(1348)); - var$2 = $this.$unlocalizedName; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_Item_getUnlocalizedName0($this, $par1ItemStack) { - var var$2; - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(1348)); - var$2 = $this.$unlocalizedName; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$2); - return jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); -} -function nms_Item_setContainerItem($this, $par1Item) { - $this.$containerItem = $par1Item; - return $this; -} -function nms_Item_doesContainerItemLeaveCraftingGrid($this, $par1ItemStack) { - return 1; -} -function nms_Item_getShareTag($this) { - return 1; -} -function nms_Item_getContainerItem($this) { - return $this.$containerItem; -} -function nms_Item_hasContainerItem($this) { - return $this.$containerItem === null ? 0 : 1; -} -function nms_Item_getColorFromItemStack($this, $par1ItemStack, $par2) { - return 16777215; -} -function nms_Item_onUpdate($this, $par1ItemStack, $par2World, $par3Entity, $par4, $par5) { - return; -} -function nms_Item_onCreated($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - return; -} -function nms_Item_getItemUseAction($this, $par1ItemStack) { - return nms_EnumAction_none; -} -function nms_Item_getMaxItemUseDuration($this, $par1ItemStack) { - return 0; -} -function nms_Item_onPlayerStoppedUsing($this, $par1ItemStack, $par2World, $par3EntityPlayer, $par4) { - return; -} -function nms_Item_setPotionEffect($this, $par1Str) { - $this.$potionEffect = $par1Str; - return $this; -} -function nms_Item_getPotionEffect($this) { - return $this.$potionEffect; -} -function nms_Item_isPotionIngredient($this) { - return $this.$potionEffect === null ? 0 : 1; -} -function nms_Item_addInformation($this, $par1ItemStack, $par2EntityPlayer, $par3List, $par4) { - return; -} -function nms_Item_getItemDisplayName($this, $par1ItemStack) { - var var$2, var$3; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(44)); - var$3 = nms_StringTranslate_instance; - $par1ItemStack = $this.$getUnlocalizedName($par1ItemStack); - $par1ItemStack = nms_StringTranslate_translateNamedKey(var$3, $par1ItemStack === null ? $rt_s(44) : nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $par1ItemStack)); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $par1ItemStack); - return jl_String_trim(jl_String__init_0(var$2.$buffer, 0, var$2.$length)); -} -function nms_Item_hasEffect($this, $par1ItemStack) { - return nms_ItemStack_isItemEnchanted($par1ItemStack); -} -function nms_Item_getRarity($this, $par1ItemStack) { - return !nms_ItemStack_isItemEnchanted($par1ItemStack) ? nms_EnumRarity_common : nms_EnumRarity_rare; -} -function nms_Item_isItemTool($this, $par1ItemStack) { - return $this.$maxStackSize == 1 && ($this.$maxDamage > 0 && !$this.$hasSubtypes ? 1 : 0) ? 1 : 0; -} -function nms_Item_getMovingObjectPositionFromPlayer($this, $par1World, $par2EntityPlayer, $par3) { - var $var5, $var6, $var7, $var9, $var11, $var13, $var16, var$11, $var17, $var14, $var15, $var18, $var20; - $var5 = $par2EntityPlayer.$prevRotationPitch + ($par2EntityPlayer.$rotationPitch - $par2EntityPlayer.$prevRotationPitch) * 1.0; - $var6 = $par2EntityPlayer.$prevRotationYaw + ($par2EntityPlayer.$rotationYaw - $par2EntityPlayer.$prevRotationYaw) * 1.0; - $var7 = $par2EntityPlayer.$prevPosX + ($par2EntityPlayer.$posX - $par2EntityPlayer.$prevPosX) * 1.0; - $var9 = $par2EntityPlayer.$prevPosY + ($par2EntityPlayer.$posY - $par2EntityPlayer.$prevPosY) * 1.0 + 1.62 - $par2EntityPlayer.$yOffset0; - $var11 = $par2EntityPlayer.$prevPosZ + ($par2EntityPlayer.$posZ - $par2EntityPlayer.$prevPosZ) * 1.0; - $var13 = nms_Vec3Pool_getVecFromPool($par1World.$vecPool, $var7, $var9, $var11); - $var16 = -$var6 * 0.01745329238474369 - 3.1415927410125732; - var$11 = nms_MathHelper_SIN_TABLE.data; - $var17 = $var16 * 10430.3779296875; - $var14 = var$11[($var17 + 16384.0 | 0) & 65535]; - $var15 = nms_MathHelper_SIN_TABLE.data[($var17 | 0) & 65535]; - $var16 = -$var5 * 0.01745329238474369; - var$11 = nms_MathHelper_SIN_TABLE.data; - $var17 = $var16 * 10430.3779296875; - $var16 = -var$11[($var17 + 16384.0 | 0) & 65535]; - $var17 = nms_MathHelper_SIN_TABLE.data[($var17 | 0) & 65535]; - $var18 = $var15 * $var16; - $var20 = $var14 * $var16; - $var7 = $var18 * 5.0; - $var9 = $var17 * 5.0; - $var11 = $var20 * 5.0; - return nms_World_rayTraceBlocks_do_do($par1World, $var13, nms_Vec3Pool_getVecFromPool($var13.$myVec3LocalPool, $var13.$xCoord + $var7, $var13.$yCoord + $var9, $var13.$zCoord + $var11), $par3, $par3 ? 0 : 1); -} -function nms_Item_getItemEnchantability($this) { - return 0; -} -function nms_Item_requiresMultipleRenderPasses($this) { - return 0; -} -function nms_Item_getIconFromDamageForRenderPass($this, $par1, $par2) { - return $this.$getIconFromDamage($par1); -} -function nms_Item_getSubItems($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_Item_getCreativeTab($this) { - return $this.$tabToDisplayOn; -} -function nms_Item_setCreativeTab($this, $par1CreativeTabs) { - $this.$tabToDisplayOn = $par1CreativeTabs; - return $this; -} -function nms_Item_func_82788_x($this) { - return 1; -} -function nms_Item_getIsRepairable($this, $par1ItemStack, $par2ItemStack) { - return 0; -} -function nms_Item_registerIcons($this, $par1IconRegister) { - $this.$itemIcon = nms_TextureMap_registerIcon($par1IconRegister, $this.$unlocalizedName); -} -function nms_Item__clinit_() { - var var$1; - nms_Item_itemRand = ju_Random__init_0(); - nms_Item_itemsList = $rt_createArray(nms_Item, 32000); - nms_Item_shovelIron = nms_Item_setUnlocalizedName(nms_ItemSpade__init_(0, nms_EnumToolMaterial_IRON), $rt_s(1349)); - nms_Item_pickaxeIron = nms_Item_setUnlocalizedName(nms_ItemPickaxe__init_(1, nms_EnumToolMaterial_IRON), $rt_s(1350)); - nms_Item_axeIron = nms_Item_setUnlocalizedName(nms_ItemAxe__init_(2, nms_EnumToolMaterial_IRON), $rt_s(1351)); - nms_Item_flintAndSteel = nms_Item_setUnlocalizedName(nms_ItemFlintAndSteel__init_(3), $rt_s(1352)); - nms_Item_appleRed = nms_Item_setUnlocalizedName(nms_ItemFood__init_(4, 4, 0.30000001192092896, 0), $rt_s(1353)); - nms_Item_bow = nms_Item_setUnlocalizedName(nms_ItemBow__init_(5), $rt_s(1354)); - nms_Item_arrow = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(6), $rt_s(1355)), nms_CreativeTabs_tabCombat); - nms_Item_coal = nms_Item_setUnlocalizedName(nms_ItemCoal__init_(7), $rt_s(1356)); - nms_Item_diamond = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(8), $rt_s(1268)), nms_CreativeTabs_tabMaterials); - nms_Item_ingotIron = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(9), $rt_s(1357)), nms_CreativeTabs_tabMaterials); - nms_Item_ingotGold = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(10), $rt_s(1358)), nms_CreativeTabs_tabMaterials); - nms_Item_swordIron = nms_Item_setUnlocalizedName(nms_ItemSword__init_(11, nms_EnumToolMaterial_IRON), $rt_s(1359)); - nms_Item_swordWood = nms_Item_setUnlocalizedName(nms_ItemSword__init_(12, nms_EnumToolMaterial_WOOD), $rt_s(1360)); - nms_Item_shovelWood = nms_Item_setUnlocalizedName(nms_ItemSpade__init_(13, nms_EnumToolMaterial_WOOD), $rt_s(1361)); - nms_Item_pickaxeWood = nms_Item_setUnlocalizedName(nms_ItemPickaxe__init_(14, nms_EnumToolMaterial_WOOD), $rt_s(1362)); - nms_Item_axeWood = nms_Item_setUnlocalizedName(nms_ItemAxe__init_(15, nms_EnumToolMaterial_WOOD), $rt_s(1363)); - nms_Item_swordStone = nms_Item_setUnlocalizedName(nms_ItemSword__init_(16, nms_EnumToolMaterial_STONE), $rt_s(1364)); - nms_Item_shovelStone = nms_Item_setUnlocalizedName(nms_ItemSpade__init_(17, nms_EnumToolMaterial_STONE), $rt_s(1365)); - nms_Item_pickaxeStone = nms_Item_setUnlocalizedName(nms_ItemPickaxe__init_(18, nms_EnumToolMaterial_STONE), $rt_s(1366)); - nms_Item_axeStone = nms_Item_setUnlocalizedName(nms_ItemAxe__init_(19, nms_EnumToolMaterial_STONE), $rt_s(1367)); - nms_Item_swordDiamond = nms_Item_setUnlocalizedName(nms_ItemSword__init_(20, nms_EnumToolMaterial_EMERALD), $rt_s(1368)); - nms_Item_shovelDiamond = nms_Item_setUnlocalizedName(nms_ItemSpade__init_(21, nms_EnumToolMaterial_EMERALD), $rt_s(1369)); - nms_Item_pickaxeDiamond = nms_Item_setUnlocalizedName(nms_ItemPickaxe__init_(22, nms_EnumToolMaterial_EMERALD), $rt_s(1370)); - nms_Item_axeDiamond = nms_Item_setUnlocalizedName(nms_ItemAxe__init_(23, nms_EnumToolMaterial_EMERALD), $rt_s(1371)); - nms_Item_stick = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item_setFull3D(nms_Item__init_(24)), $rt_s(1372)), nms_CreativeTabs_tabMaterials); - nms_Item_bowlEmpty = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(25), $rt_s(1373)), nms_CreativeTabs_tabMaterials); - nms_Item_bowlSoup = nms_Item_setUnlocalizedName(nms_ItemSoup__init_(26, 6), $rt_s(1374)); - nms_Item_swordGold = nms_Item_setUnlocalizedName(nms_ItemSword__init_(27, nms_EnumToolMaterial_GOLD), $rt_s(1375)); - nms_Item_shovelGold = nms_Item_setUnlocalizedName(nms_ItemSpade__init_(28, nms_EnumToolMaterial_GOLD), $rt_s(1376)); - nms_Item_pickaxeGold = nms_Item_setUnlocalizedName(nms_ItemPickaxe__init_(29, nms_EnumToolMaterial_GOLD), $rt_s(1377)); - nms_Item_axeGold = nms_Item_setUnlocalizedName(nms_ItemAxe__init_(30, nms_EnumToolMaterial_GOLD), $rt_s(1378)); - var$1 = new nms_ItemReed; - nms_Block_$callClinit(); - nms_ItemReed__init_(var$1, 31, nms_Block_tripWire); - nms_Item_silk = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(var$1, $rt_s(1379)), nms_CreativeTabs_tabMaterials); - nms_Item_feather = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(32), $rt_s(1380)), nms_CreativeTabs_tabMaterials); - var$1 = nms_Item_setUnlocalizedName(nms_Item__init_(33), $rt_s(1381)); - nms_PotionHelper_$callClinit(); - nms_Item_gunpowder = nms_Item_setCreativeTab(nms_Item_setPotionEffect(var$1, nms_PotionHelper_gunpowderEffect), nms_CreativeTabs_tabMaterials); - nms_Item_hoeWood = nms_Item_setUnlocalizedName(nms_ItemHoe__init_(34, nms_EnumToolMaterial_WOOD), $rt_s(1382)); - nms_Item_hoeStone = nms_Item_setUnlocalizedName(nms_ItemHoe__init_(35, nms_EnumToolMaterial_STONE), $rt_s(1383)); - nms_Item_hoeIron = nms_Item_setUnlocalizedName(nms_ItemHoe__init_(36, nms_EnumToolMaterial_IRON), $rt_s(1384)); - nms_Item_hoeDiamond = nms_Item_setUnlocalizedName(nms_ItemHoe__init_(37, nms_EnumToolMaterial_EMERALD), $rt_s(1385)); - nms_Item_hoeGold = nms_Item_setUnlocalizedName(nms_ItemHoe__init_(38, nms_EnumToolMaterial_GOLD), $rt_s(1386)); - nms_Item_seeds = nms_Item_setUnlocalizedName(nms_ItemSeeds__init_(39, nms_Block_crops.$blockID, nms_Block_tilledField.$blockID), $rt_s(1387)); - nms_Item_wheat = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(40), $rt_s(1388)), nms_CreativeTabs_tabMaterials); - nms_Item_bread = nms_Item_setUnlocalizedName(nms_ItemFood__init_(41, 5, 0.6000000238418579, 0), $rt_s(1389)); - nms_Item_helmetLeather = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(42, nms_EnumArmorMaterial_CLOTH, 0, 0), $rt_s(1390)); - nms_Item_plateLeather = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(43, nms_EnumArmorMaterial_CLOTH, 0, 1), $rt_s(1391)); - nms_Item_legsLeather = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(44, nms_EnumArmorMaterial_CLOTH, 0, 2), $rt_s(1392)); - nms_Item_bootsLeather = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(45, nms_EnumArmorMaterial_CLOTH, 0, 3), $rt_s(1393)); - nms_Item_helmetChain = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(46, nms_EnumArmorMaterial_CHAIN, 1, 0), $rt_s(1394)); - nms_Item_plateChain = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(47, nms_EnumArmorMaterial_CHAIN, 1, 1), $rt_s(1395)); - nms_Item_legsChain = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(48, nms_EnumArmorMaterial_CHAIN, 1, 2), $rt_s(1396)); - nms_Item_bootsChain = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(49, nms_EnumArmorMaterial_CHAIN, 1, 3), $rt_s(1397)); - nms_Item_helmetIron = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(50, nms_EnumArmorMaterial_IRON, 2, 0), $rt_s(1398)); - nms_Item_plateIron = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(51, nms_EnumArmorMaterial_IRON, 2, 1), $rt_s(1399)); - nms_Item_legsIron = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(52, nms_EnumArmorMaterial_IRON, 2, 2), $rt_s(1400)); - nms_Item_bootsIron = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(53, nms_EnumArmorMaterial_IRON, 2, 3), $rt_s(1401)); - nms_Item_helmetDiamond = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(54, nms_EnumArmorMaterial_DIAMOND, 3, 0), $rt_s(1402)); - nms_Item_plateDiamond = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(55, nms_EnumArmorMaterial_DIAMOND, 3, 1), $rt_s(1403)); - nms_Item_legsDiamond = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(56, nms_EnumArmorMaterial_DIAMOND, 3, 2), $rt_s(1404)); - nms_Item_bootsDiamond = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(57, nms_EnumArmorMaterial_DIAMOND, 3, 3), $rt_s(1405)); - nms_Item_helmetGold = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(58, nms_EnumArmorMaterial_GOLD, 4, 0), $rt_s(1406)); - nms_Item_plateGold = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(59, nms_EnumArmorMaterial_GOLD, 4, 1), $rt_s(1407)); - nms_Item_legsGold = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(60, nms_EnumArmorMaterial_GOLD, 4, 2), $rt_s(1408)); - nms_Item_bootsGold = nms_Item_setUnlocalizedName(nms_ItemArmor__init_(61, nms_EnumArmorMaterial_GOLD, 4, 3), $rt_s(1409)); - nms_Item_flint = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(62), $rt_s(1410)), nms_CreativeTabs_tabMaterials); - nms_Item_porkRaw = nms_Item_setUnlocalizedName(nms_ItemFood__init_(63, 3, 0.30000001192092896, 1), $rt_s(1411)); - nms_Item_porkCooked = nms_Item_setUnlocalizedName(nms_ItemFood__init_(64, 8, 0.800000011920929, 1), $rt_s(1412)); - nms_Item_painting = nms_Item_setUnlocalizedName(nms_ItemHangingEntity__init_(65, $rt_cls(nms_EntityPainting)), $rt_s(1413)); - nms_Item_appleGold = nms_Item_setUnlocalizedName(nms_ItemFood_setPotionEffect(nms_ItemFood_setAlwaysEdible(nms_ItemAppleGold__init_(66, 4, 1.2000000476837158, 0)), nms_Potion_regeneration.$id3, 5, 0, 1.0), $rt_s(1414)); - nms_Item_sign = nms_Item_setUnlocalizedName(nms_ItemSign__init_(67), $rt_s(1415)); - var$1 = new nms_ItemDoor; - nms_Material_$callClinit(); - nms_ItemDoor__init_(var$1, 68, nms_Material_wood); - nms_Item_doorWood = nms_Item_setUnlocalizedName(var$1, $rt_s(1416)); - nms_Item_bucketEmpty = nms_Item_setMaxStackSize(nms_Item_setUnlocalizedName(nms_ItemBucket__init_(69, 0), $rt_s(1417)), 16); - nms_Item_bucketWater = nms_Item_setContainerItem(nms_Item_setUnlocalizedName(nms_ItemBucket__init_(70, nms_Block_waterMoving.$blockID), $rt_s(1418)), nms_Item_bucketEmpty); - nms_Item_bucketLava = nms_Item_setContainerItem(nms_Item_setUnlocalizedName(nms_ItemBucket__init_(71, nms_Block_lavaMoving.$blockID), $rt_s(1419)), nms_Item_bucketEmpty); - nms_Item_minecartEmpty = nms_Item_setUnlocalizedName(nms_ItemMinecart__init_(72, 0), $rt_s(1420)); - nms_Item_saddle = nms_Item_setUnlocalizedName(nms_ItemSaddle__init_(73), $rt_s(1421)); - nms_Item_doorIron = nms_Item_setUnlocalizedName(nms_ItemDoor__init_0(74, nms_Material_iron), $rt_s(1422)); - nms_Item_redstone = nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_ItemRedstone__init_(75), $rt_s(1423)), nms_PotionHelper_redstoneEffect); - nms_Item_snowball = nms_Item_setUnlocalizedName(nms_ItemSnowball__init_(76), $rt_s(1424)); - nms_Item_boat = nms_Item_setUnlocalizedName(nms_ItemBoat__init_(77), $rt_s(1425)); - nms_Item_leather = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(78), $rt_s(1426)), nms_CreativeTabs_tabMaterials); - nms_Item_bucketMilk = nms_Item_setContainerItem(nms_Item_setUnlocalizedName(nms_ItemBucketMilk__init_(79), $rt_s(1427)), nms_Item_bucketEmpty); - nms_Item_brick = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(80), $rt_s(1428)), nms_CreativeTabs_tabMaterials); - nms_Item_clay = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(81), $rt_s(1429)), nms_CreativeTabs_tabMaterials); - nms_Item_reed = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemReed__init_0(82, nms_Block_reed), $rt_s(1430)), nms_CreativeTabs_tabMaterials); - nms_Item_paper = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(83), $rt_s(1431)), nms_CreativeTabs_tabMisc); - nms_Item_book = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemBook__init_(84), $rt_s(1432)), nms_CreativeTabs_tabMisc); - nms_Item_slimeBall = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(85), $rt_s(1433)), nms_CreativeTabs_tabMisc); - nms_Item_minecartCrate = nms_Item_setUnlocalizedName(nms_ItemMinecart__init_(86, 1), $rt_s(1434)); - nms_Item_minecartPowered = nms_Item_setUnlocalizedName(nms_ItemMinecart__init_(87, 2), $rt_s(1435)); - nms_Item_egg = nms_Item_setUnlocalizedName(nms_ItemEgg__init_(88), $rt_s(1436)); - nms_Item_compass = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(89), $rt_s(1437)), nms_CreativeTabs_tabTools); - nms_Item_fishingRod = nms_Item_setUnlocalizedName(nms_ItemFishingRod__init_(90), $rt_s(1438)); - nms_Item_pocketSundial = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(91), $rt_s(1439)), nms_CreativeTabs_tabTools); - nms_Item_lightStoneDust = nms_Item_setCreativeTab(nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_Item__init_(92), $rt_s(1440)), nms_PotionHelper_glowstoneEffect), nms_CreativeTabs_tabMaterials); - nms_Item_fishRaw = nms_Item_setUnlocalizedName(nms_ItemFood__init_(93, 2, 0.30000001192092896, 0), $rt_s(1441)); - nms_Item_fishCooked = nms_Item_setUnlocalizedName(nms_ItemFood__init_(94, 5, 0.6000000238418579, 0), $rt_s(1442)); - nms_Item_dyePowder = nms_Item_setUnlocalizedName(nms_ItemDye__init_(95), $rt_s(1443)); - nms_Item_bone = nms_Item_setCreativeTab(nms_Item_setFull3D(nms_Item_setUnlocalizedName(nms_Item__init_(96), $rt_s(1444))), nms_CreativeTabs_tabMisc); - nms_Item_sugar = nms_Item_setCreativeTab(nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_Item__init_(97), $rt_s(1445)), nms_PotionHelper_sugarEffect), nms_CreativeTabs_tabMaterials); - nms_Item_cake = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item_setMaxStackSize(nms_ItemReed__init_0(98, nms_Block_cake), 1), $rt_s(1446)), nms_CreativeTabs_tabFood); - nms_Item_bed = nms_Item_setUnlocalizedName(nms_Item_setMaxStackSize(nms_ItemBed__init_(99), 1), $rt_s(1447)); - nms_Item_redstoneRepeater = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemReed__init_0(100, nms_Block_redstoneRepeaterIdle), $rt_s(1448)), nms_CreativeTabs_tabRedstone); - nms_Item_cookie = nms_Item_setUnlocalizedName(nms_ItemFood__init_(101, 2, 0.10000000149011612, 0), $rt_s(1449)); - nms_Item_map = nms_Item_setUnlocalizedName(nms_ItemMap__init_(102), $rt_s(1450)); - nms_Item_shears = nms_Item_setUnlocalizedName(nms_ItemShears__init_(103), $rt_s(1451)); - nms_Item_melon = nms_Item_setUnlocalizedName(nms_ItemFood__init_(104, 2, 0.30000001192092896, 0), $rt_s(1452)); - nms_Item_pumpkinSeeds = nms_Item_setUnlocalizedName(nms_ItemSeeds__init_(105, nms_Block_pumpkinStem.$blockID, nms_Block_tilledField.$blockID), $rt_s(1453)); - nms_Item_melonSeeds = nms_Item_setUnlocalizedName(nms_ItemSeeds__init_(106, nms_Block_melonStem.$blockID, nms_Block_tilledField.$blockID), $rt_s(1454)); - nms_Item_beefRaw = nms_Item_setUnlocalizedName(nms_ItemFood__init_(107, 3, 0.30000001192092896, 1), $rt_s(1455)); - nms_Item_beefCooked = nms_Item_setUnlocalizedName(nms_ItemFood__init_(108, 8, 0.800000011920929, 1), $rt_s(1456)); - nms_Item_chickenRaw = nms_Item_setUnlocalizedName(nms_ItemFood_setPotionEffect(nms_ItemFood__init_(109, 2, 0.30000001192092896, 1), nms_Potion_hunger.$id3, 30, 0, 0.30000001192092896), $rt_s(1457)); - nms_Item_chickenCooked = nms_Item_setUnlocalizedName(nms_ItemFood__init_(110, 6, 0.6000000238418579, 1), $rt_s(1458)); - nms_Item_rottenFlesh = nms_Item_setUnlocalizedName(nms_ItemFood_setPotionEffect(nms_ItemFood__init_(111, 4, 0.10000000149011612, 1), nms_Potion_hunger.$id3, 30, 0, 0.800000011920929), $rt_s(1459)); - nms_Item_enderPearl = nms_Item_setUnlocalizedName(nms_ItemEnderPearl__init_(112), $rt_s(1460)); - nms_Item_blazeRod = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(113), $rt_s(818)), nms_CreativeTabs_tabMaterials); - nms_Item_ghastTear = nms_Item_setCreativeTab(nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_Item__init_(114), $rt_s(1461)), $rt_s(1462)), nms_CreativeTabs_tabBrewing); - nms_Item_goldNugget = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(115), $rt_s(1463)), nms_CreativeTabs_tabMaterials); - nms_Item_netherStalkSeeds = nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_ItemSeeds__init_(116, nms_Block_netherStalk.$blockID, nms_Block_slowSand.$blockID), $rt_s(1464)), $rt_s(1465)); - nms_Item_potion = nms_Item_setUnlocalizedName(nms_ItemPotion__init_(117), $rt_s(819)); - nms_Item_glassBottle = nms_Item_setUnlocalizedName(nms_ItemGlassBottle__init_(118), $rt_s(1466)); - nms_Item_spiderEye = nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_ItemFood_setPotionEffect(nms_ItemFood__init_(119, 2, 0.800000011920929, 0), nms_Potion_poison.$id3, 5, 0, 1.0), $rt_s(1467)), nms_PotionHelper_spiderEyeEffect); - nms_Item_fermentedSpiderEye = nms_Item_setCreativeTab(nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_Item__init_(120), $rt_s(1468)), nms_PotionHelper_fermentedSpiderEyeEffect), nms_CreativeTabs_tabBrewing); - nms_Item_blazePowder = nms_Item_setCreativeTab(nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_Item__init_(121), $rt_s(1469)), nms_PotionHelper_blazePowderEffect), nms_CreativeTabs_tabBrewing); - nms_Item_magmaCream = nms_Item_setCreativeTab(nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_Item__init_(122), $rt_s(1470)), nms_PotionHelper_magmaCreamEffect), nms_CreativeTabs_tabBrewing); - nms_Item_brewingStand = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemReed__init_0(123, nms_Block_brewingStand), $rt_s(1471)), nms_CreativeTabs_tabBrewing); - nms_Item_cauldron = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemReed__init_0(124, nms_Block_cauldron), $rt_s(1472)), nms_CreativeTabs_tabBrewing); - nms_Item_eyeOfEnder = nms_Item_setUnlocalizedName(nms_ItemEnderEye__init_(125), $rt_s(1473)); - nms_Item_speckledMelon = nms_Item_setCreativeTab(nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_Item__init_(126), $rt_s(1474)), nms_PotionHelper_speckledMelonEffect), nms_CreativeTabs_tabBrewing); - nms_Item_monsterPlacer = nms_Item_setUnlocalizedName(nms_ItemMonsterPlacer__init_(127), $rt_s(1475)); - nms_Item_expBottle = nms_Item_setUnlocalizedName(nms_ItemExpBottle__init_(128), $rt_s(1476)); - nms_Item_fireballCharge = nms_Item_setUnlocalizedName(nms_ItemFireball__init_(129), $rt_s(1298)); - nms_Item_writableBook = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemWritableBook__init_(130), $rt_s(1477)), nms_CreativeTabs_tabMisc); - nms_Item_writtenBook = nms_Item_setUnlocalizedName(nms_ItemEditableBook__init_(131), $rt_s(1478)); - nms_Item_emerald = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(132), $rt_s(1479)), nms_CreativeTabs_tabMaterials); - nms_Item_itemFrame = nms_Item_setUnlocalizedName(nms_ItemHangingEntity__init_(133, $rt_cls(nms_EntityItemFrame)), $rt_s(1480)); - nms_Item_flowerPot = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemReed__init_0(134, nms_Block_flowerPot), $rt_s(1481)), nms_CreativeTabs_tabDecorations); - nms_Item_carrot = nms_Item_setUnlocalizedName(nms_ItemSeedFood__init_(135, 4, 0.6000000238418579, nms_Block_carrot.$blockID, nms_Block_tilledField.$blockID), $rt_s(1482)); - nms_Item_potato = nms_Item_setUnlocalizedName(nms_ItemSeedFood__init_(136, 1, 0.30000001192092896, nms_Block_potato.$blockID, nms_Block_tilledField.$blockID), $rt_s(1483)); - nms_Item_bakedPotato = nms_Item_setUnlocalizedName(nms_ItemFood__init_(137, 6, 0.6000000238418579, 0), $rt_s(1484)); - nms_Item_poisonousPotato = nms_Item_setUnlocalizedName(nms_ItemFood_setPotionEffect(nms_ItemFood__init_(138, 2, 0.30000001192092896, 0), nms_Potion_poison.$id3, 5, 0, 0.6000000238418579), $rt_s(1485)); - nms_Item_emptyMap = nms_Item_setUnlocalizedName(nms_ItemEmptyMap__init_(139), $rt_s(1486)); - nms_Item_goldenCarrot = nms_Item_setPotionEffect(nms_Item_setUnlocalizedName(nms_ItemFood__init_(140, 6, 1.2000000476837158, 0), $rt_s(1487)), nms_PotionHelper_goldenCarrotEffect); - nms_Item_skull = nms_Item_setUnlocalizedName(nms_ItemSkull__init_(141), $rt_s(1488)); - nms_Item_carrotOnAStick = nms_Item_setUnlocalizedName(nms_ItemCarrotOnAStick__init_(142), $rt_s(1489)); - nms_Item_netherStar = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemSimpleFoiled__init_(143), $rt_s(1490)), nms_CreativeTabs_tabMaterials); - nms_Item_pumpkinPie = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemFood__init_(144, 8, 0.30000001192092896, 0), $rt_s(1491)), nms_CreativeTabs_tabFood); - nms_Item_firework = nms_Item_setUnlocalizedName(nms_ItemFirework__init_(145), $rt_s(1492)); - nms_Item_fireworkCharge = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemFireworkCharge__init_(146), $rt_s(1493)), nms_CreativeTabs_tabMisc); - nms_Item_enchantedBook = nms_Item_setUnlocalizedName(nms_Item_setMaxStackSize(nms_ItemEnchantedBook__init_(147), 1), $rt_s(1494)); - nms_Item_comparator = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_ItemReed__init_0(148, nms_Block_redstoneComparatorIdle), $rt_s(1495)), nms_CreativeTabs_tabRedstone); - nms_Item_netherrackBrick = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(149), $rt_s(1496)), nms_CreativeTabs_tabMaterials); - nms_Item_netherQuartz = nms_Item_setCreativeTab(nms_Item_setUnlocalizedName(nms_Item__init_(150), $rt_s(1497)), nms_CreativeTabs_tabMaterials); - nms_Item_minecartTnt = nms_Item_setUnlocalizedName(nms_ItemMinecart__init_(151, 3), $rt_s(1498)); - nms_Item_minecartHopper = nms_Item_setUnlocalizedName(nms_ItemMinecart__init_(152, 5), $rt_s(1499)); - nms_Item_record13 = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2000, $rt_s(1500)), $rt_s(1501)); - nms_Item_recordCat = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2001, $rt_s(1502)), $rt_s(1501)); - nms_Item_recordBlocks = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2002, $rt_s(1503)), $rt_s(1501)); - nms_Item_recordChirp = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2003, $rt_s(1504)), $rt_s(1501)); - nms_Item_recordFar = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2004, $rt_s(1505)), $rt_s(1501)); - nms_Item_recordMall = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2005, $rt_s(1506)), $rt_s(1501)); - nms_Item_recordMellohi = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2006, $rt_s(1507)), $rt_s(1501)); - nms_Item_recordStal = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2007, $rt_s(1508)), $rt_s(1501)); - nms_Item_recordStrad = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2008, $rt_s(1509)), $rt_s(1501)); - nms_Item_recordWard = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2009, $rt_s(1510)), $rt_s(1501)); - nms_Item_record11 = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2010, $rt_s(1511)), $rt_s(1501)); - nms_Item_recordWait = nms_Item_setUnlocalizedName(nms_ItemRecord__init_(2011, $rt_s(1512)), $rt_s(1501)); -} -function nms_EntityEnderPearl() { - nms_EntityThrowable.call(this); -} -function nms_EntityEnderPearl__init_0() { - var var_0 = new nms_EntityEnderPearl(); - nms_EntityEnderPearl__init_(var_0); - return var_0; -} -function nms_EntityEnderPearl__init_1(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityEnderPearl(); - nms_EntityEnderPearl__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityEnderPearl__init_($this) { - nms_EntityThrowable__init_0($this); -} -function nms_EntityEnderPearl__init_2($this, $par1World, $par2, $par4, $par6) { - nms_EntityThrowable__init_4($this, $par1World, $par2, $par4, $par6); -} -function nms_EntityEnderPearl_onImpact($this, $par1MovingObjectPosition) { - var var$2, var$3, var$4, $var2, 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();$var2 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1MovingObjectPosition = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1MovingObjectPosition.$entityHit !== null) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$entityHit; - var$2 = nms_EntityThrowable_getThrower($this); - var$3 = new nms_EntityDamageSourceIndirect; - var$3.$isUnblockable = 0; - var$3.$isDamageAllowedInCreativeMode = 0; - var$3.$hungerDamage = 0.30000001192092896; - var$3.$magicDamage = 0; - var$3.$explosion = 0; - var$3.$damageType = $rt_s(1344); - var$3.$damageSourceEntity = $this; - var$3.$indirectEntity = var$2; - var$3.$projectile = 1; - var$4 = 0; - $ptr = 1; - continue main; - } - $var2 = 0; - while ($var2 < 32) { - $par1MovingObjectPosition = $this.$worldObj; - var$3 = $rt_s(716); - var$6 = $this.$posX; - var$7 = $this.$posY + Math.random() * 2.0; - var$8 = $this.$posZ; - var$9 = ju_Random_nextGaussian($this.$rand0); - var$10 = 0.0; - var$11 = ju_Random_nextGaussian($this.$rand0); - var$4 = 0; - if (var$4 < $par1MovingObjectPosition.$worldAccesses.$size0) { - var$2 = $par1MovingObjectPosition.$worldAccesses; - if (var$4 >= 0 && var$4 < var$2.$size0) { - var$2 = var$2.$array1.data[var$4]; - $ptr = 2; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - $rt_throw($par1MovingObjectPosition); - } - $var2 = $var2 + 1 | 0; - } - return; - case 1: - $par1MovingObjectPosition.$attackEntityFrom(var$3, var$4); - if ($rt_suspending()) { - break main; - } - $var2 = 0; - while ($var2 < 32) { - $par1MovingObjectPosition = $this.$worldObj; - var$3 = $rt_s(716); - var$6 = $this.$posX; - var$7 = $this.$posY + Math.random() * 2.0; - var$8 = $this.$posZ; - var$9 = ju_Random_nextGaussian($this.$rand0); - var$10 = 0.0; - var$11 = ju_Random_nextGaussian($this.$rand0); - var$4 = 0; - if (var$4 < $par1MovingObjectPosition.$worldAccesses.$size0) { - var$2 = $par1MovingObjectPosition.$worldAccesses; - if (var$4 >= 0 && var$4 < var$2.$size0) { - var$2 = var$2.$array1.data[var$4]; - $ptr = 2; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - $rt_throw($par1MovingObjectPosition); - } - $var2 = $var2 + 1 | 0; - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$2, var$3, var$6, var$7, var$8, var$9, var$10, var$11); - if ($rt_suspending()) { - break main; - } - var$4 = var$4 + 1 | 0; - while (true) { - if (var$4 < $par1MovingObjectPosition.$worldAccesses.$size0) { - var$2 = $par1MovingObjectPosition.$worldAccesses; - if (var$4 >= 0 && var$4 < var$2.$size0) { - var$2 = var$2.$array1.data[var$4]; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - $rt_throw($par1MovingObjectPosition); - } - $var2 = $var2 + 1 | 0; - if ($var2 >= 32) - break; - $par1MovingObjectPosition = $this.$worldObj; - var$3 = $rt_s(716); - var$6 = $this.$posX; - var$7 = $this.$posY + Math.random() * 2.0; - var$8 = $this.$posZ; - var$9 = ju_Random_nextGaussian($this.$rand0); - var$10 = 0.0; - var$11 = ju_Random_nextGaussian($this.$rand0); - var$4 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1MovingObjectPosition, var$2, var$3, var$4, $var2, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_EntityEnderEye() { - var a = this; nms_Entity.call(a); - a.$field_70226_a = 0; - a.$targetX0 = 0.0; - a.$targetY0 = 0.0; - a.$targetZ0 = 0.0; - a.$despawnTimer = 0; - a.$shatterOrDrop = 0; -} -function nms_EntityEnderEye__init_0() { - var var_0 = new nms_EntityEnderEye(); - nms_EntityEnderEye__init_(var_0); - return var_0; -} -function nms_EntityEnderEye__init_1(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityEnderEye(); - nms_EntityEnderEye__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityEnderEye__init_($this) { - nms_Entity__init_0($this); - $this.$field_70226_a = 0; - nms_Entity_setSize($this, 0.25, 0.25); -} -function nms_EntityEnderEye_entityInit($this) { - return; -} -function nms_EntityEnderEye_isInRangeToRenderDist($this, $par1) { - var var$2, $var3; - var$2 = $this.$boundingBox; - $var3 = (var$2.$maxX - var$2.$minX + var$2.$maxY - var$2.$minY + var$2.$maxZ - var$2.$minZ) / 3.0 * 4.0 * 64.0; - return $par1 >= $var3 * $var3 ? 0 : 1; -} -function nms_EntityEnderEye__init_2($this, $par1World, $par2, $par4, $par6) { - nms_Entity__init_0($this); - $this.$field_70226_a = 0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$despawnTimer = 0; - nms_Entity_setSize($this, 0.25, 0.25); - nms_Entity_setPosition($this, $par2, $par4, $par6); - $this.$yOffset0 = 0.0; -} -function nms_EntityEnderEye_moveTowards($this, $par1, $par3, $par4) { - var $var6, $var8, $var10; - $var6 = $par1 - $this.$posX; - $var8 = $par4 - $this.$posZ; - $var10 = jl_Math_sqrt($var6 * $var6 + $var8 * $var8); - if ($var10 <= 12.0) { - $this.$targetX0 = $par1; - $this.$targetY0 = $par3; - $this.$targetZ0 = $par4; - } else { - $par1 = $this.$posX; - $par4 = $var10; - $this.$targetX0 = $par1 + $var6 / $par4 * 12.0; - $this.$targetZ0 = $this.$posZ + $var8 / $par4 * 12.0; - $this.$targetY0 = $this.$posY + 8.0; - } - $this.$despawnTimer = 0; - $this.$shatterOrDrop = (Math.random() * 5.0 | 0) <= 0 ? 0 : 1; -} -function nms_EntityEnderEye_setVelocity($this, $par1, $par3, $par5) { - var $var7, var$5; - $this.$motionX = $par1; - $this.$motionY = $par3; - $this.$motionZ = $par5; - if ($this.$prevRotationPitch === 0.0 && $this.$prevRotationYaw === 0.0) { - $var7 = jl_Math_sqrt($par1 * $par1 + $par5 * $par5); - var$5 = jl_Math_atan2($par1, $par5) * 180.0 / 3.141592653589793; - $this.$rotationYaw = var$5; - $this.$prevRotationYaw = var$5; - var$5 = jl_Math_atan2($par3, $var7) * 180.0 / 3.141592653589793; - $this.$rotationPitch = var$5; - $this.$prevRotationPitch = var$5; - } -} -function nms_EntityEnderEye_onUpdate($this) { - var $var1, $var2, $var8, $var4, $var6, $var7, var$7, var$8, var$9, var$10, var$11, $var3, var$13, var$14, var$15, var$16, var$17, var$18, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var3 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var8 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$lastTickPosX = $this.$posX; - $this.$lastTickPosY = $this.$posY; - $this.$lastTickPosZ = $this.$posZ; - $ptr = 1; - case 1: - nms_Entity_onEntityUpdate($this); - if ($rt_suspending()) { - break main; - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var1 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $var2 = $this.$motionY; - $var8 = $var1; - $this.$rotationPitch = jl_Math_atan2($var2, $var8) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - if (!$this.$worldObj.$isRemote) { - $var2 = $this.$targetX0 - $this.$posX; - $var4 = $this.$targetZ0 - $this.$posZ; - $var6 = jl_Math_sqrt($var2 * $var2 + $var4 * $var4); - $var7 = jl_Math_atan2($var4, $var2); - $var8 = $var8 + ($var6 - $var1) * 0.0025; - if ($var6 < 1.0) { - $var8 = $var8 * 0.8; - $this.$motionY = $this.$motionY * 0.8; - } - $var2 = $var7; - $this.$motionX = jl_Math_cos($var2) * $var8; - $this.$motionZ = jl_Math_sin($var2) * $var8; - if ($this.$posY >= $this.$targetY0) - $this.$motionY = $this.$motionY + ((-1.0) - $this.$motionY) * 0.014999999664723873; - else - $this.$motionY = $this.$motionY + (1.0 - $this.$motionY) * 0.014999999664723873; - } - if (!$this.$inWater) { - var$7 = $this.$worldObj; - var$8 = $rt_s(716); - $var2 = $this.$posX - $this.$motionX * 0.25 + Math.random() * 0.6 - 0.3; - $var8 = $this.$posY - $this.$motionY * 0.25 - 0.5; - $var4 = $this.$posZ - $this.$motionZ * 0.25 + ju_Random_nextDouble($this.$rand0) * 0.6 - 0.3; - var$9 = $this.$motionX; - var$10 = $this.$motionY; - var$11 = $this.$motionZ; - $ptr = 2; - continue main; - } - $var3 = 0; - if ($var3 < 4) { - var$7 = $this.$worldObj; - var$8 = $rt_s(680); - $var4 = $this.$posX - $this.$motionX * 0.25; - var$9 = $this.$posY - $this.$motionY * 0.25; - var$10 = $this.$posZ - $this.$motionZ * 0.25; - var$11 = $this.$motionX; - $var2 = $this.$motionY; - $var8 = $this.$motionZ; - $ptr = 3; - continue main; - } - if (!$this.$worldObj.$isRemote) { - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$despawnTimer = $this.$despawnTimer + 1 | 0; - if ($this.$despawnTimer > 80 && !$this.$worldObj.$isRemote) { - $ptr = 4; - continue main; - } - } - return; - case 2: - nms_World_spawnParticle(var$7, var$8, $var2, $var8, $var4, var$9, var$10, var$11); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote) { - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$despawnTimer = $this.$despawnTimer + 1 | 0; - if ($this.$despawnTimer > 80 && !$this.$worldObj.$isRemote) { - $ptr = 4; - continue main; - } - } - return; - case 3: - nms_World_spawnParticle(var$7, var$8, $var4, var$9, var$10, var$11, $var2, $var8); - if ($rt_suspending()) { - break main; - } - $var3 = $var3 + 1 | 0; - if ($var3 < 4) { - var$7 = $this.$worldObj; - var$8 = $rt_s(680); - $var4 = $this.$posX - $this.$motionX * 0.25; - var$9 = $this.$posY - $this.$motionY * 0.25; - var$10 = $this.$posZ - $this.$motionZ * 0.25; - var$11 = $this.$motionX; - $var2 = $this.$motionY; - $var8 = $this.$motionZ; - continue main; - } - if (!$this.$worldObj.$isRemote) { - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$despawnTimer = $this.$despawnTimer + 1 | 0; - if ($this.$despawnTimer > 80 && !$this.$worldObj.$isRemote) { - $ptr = 4; - continue main; - } - } - return; - case 4: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - if ($this.$shatterOrDrop) { - var$7 = $this.$worldObj; - var$8 = new nms_EntityItem; - var$13 = $this.$worldObj; - $var2 = $this.$posX; - $var8 = $this.$posY; - $var4 = $this.$posZ; - var$14 = new nms_ItemStack; - nms_Item_$callClinit(); - nms_ItemStack__init_1(var$14, nms_Item_eyeOfEnder); - nms_EntityItem__init_1(var$8, var$13, $var2, $var8, $var4, var$14); - nms_WorldClient_spawnEntityInWorld(var$7, var$8); - return; - } - var$7 = $this.$worldObj; - $var3 = 2003; - var$15 = jl_Math_round($this.$posX).lo; - var$16 = jl_Math_round($this.$posY).lo; - var$17 = jl_Math_round($this.$posZ).lo; - var$18 = 0; - $ptr = 5; - case 5: - nms_World_playAuxSFX(var$7, $var3, var$15, var$16, var$17, var$18); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var8, $var4, $var6, $var7, var$7, var$8, var$9, var$10, var$11, $var3, var$13, var$14, var$15, var$16, var$17, var$18, $ptr); -} -function nms_EntityEnderEye_getShadowSize($this) { - return 0.0; -} -function nms_EntityEnderEye_getBrightnessForRender($this, $par1) { - return 15728880; -} -function nms_EntityEnderEye_canAttackWithItem($this) { - return 0; -} -function nms_EntityEgg() { - nms_EntityThrowable.call(this); -} -function nms_EntityEgg__init_0() { - var var_0 = new nms_EntityEgg(); - nms_EntityEgg__init_(var_0); - return var_0; -} -function nms_EntityEgg__init_1(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityEgg(); - nms_EntityEgg__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityEgg__init_($this) { - nms_EntityThrowable__init_0($this); -} -function nms_EntityEgg__init_2($this, $par1World, $par2, $par4, $par6) { - nms_EntityThrowable__init_4($this, $par1World, $par2, $par4, $par6); -} -function nms_EntityEgg_onImpact($this, $par1MovingObjectPosition) { - var $var4, var$3, $var2, $var3, var$6, $var5, var$8, var$9, var$10, var$11, 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();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var5 = $thread.pop();var$6 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();$var4 = $thread.pop();$par1MovingObjectPosition = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1MovingObjectPosition.$entityHit !== null) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$entityHit; - $var4 = nms_EntityThrowable_getThrower($this); - var$3 = new nms_EntityDamageSourceIndirect; - var$3.$isUnblockable = 0; - var$3.$isDamageAllowedInCreativeMode = 0; - var$3.$hungerDamage = 0.30000001192092896; - var$3.$magicDamage = 0; - var$3.$explosion = 0; - var$3.$damageType = $rt_s(1344); - var$3.$damageSourceEntity = $this; - var$3.$indirectEntity = $var4; - var$3.$projectile = 1; - $var2 = 0; - $ptr = 1; - continue main; - } - a: { - if (!$this.$worldObj.$isRemote && !(Math.random() * 8.0 | 0)) { - $var2 = 1; - if (!(Math.random() * 32.0 | 0)) - $var2 = 4; - $var3 = 0; - while (true) { - if ($var3 >= $var2) - break a; - $var4 = nms_EntityChicken__init_0(); - $par1MovingObjectPosition = $this.$worldObj; - $var4.$worldObj = $par1MovingObjectPosition; - $var4.$dimension = $par1MovingObjectPosition.$provider.$dimensionId; - nms_DataWatcher_updateObject($var4.$dataWatcher, 12, jl_Integer_valueOf((-24000))); - var$6 = !(nms_DataWatcher_getWatchableObjectInt($var4.$dataWatcher, 12) >= 0 ? 0 : 1) ? 1.0 : 0.5; - nms_Entity_setSize($var4, $var4.$field_98056_d * var$6, $var4.$field_98057_e * var$6); - nms_Entity_setLocationAndAngles($var4, $this.$posX, $this.$posY, $this.$posZ, $this.$rotationYaw, 0.0); - $par1MovingObjectPosition = $this.$worldObj; - $var5 = nms_World_spawnEntityInWorld($par1MovingObjectPosition, $var4); - var$3 = $par1MovingObjectPosition.$entityList; - ju_HashMap_putImpl(var$3.$backingMap, $var4, var$3); - if (!$var5) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$entitySpawnQueue; - ju_HashMap_putImpl($par1MovingObjectPosition.$backingMap, $var4, $par1MovingObjectPosition); - } - $var3 = $var3 + 1 | 0; - } - } - } - $var5 = 0; - while ($var5 < 8) { - $par1MovingObjectPosition = $this.$worldObj; - $var4 = $rt_s(863); - var$8 = $this.$posX; - var$9 = $this.$posY; - var$10 = $this.$posZ; - var$11 = 0.0; - var$12 = 0.0; - var$13 = 0.0; - $var3 = 0; - if ($var3 < $par1MovingObjectPosition.$worldAccesses.$size0) { - var$3 = $par1MovingObjectPosition.$worldAccesses; - if ($var3 >= 0 && $var3 < var$3.$size0) { - var$3 = var$3.$array1.data[$var3]; - $ptr = 2; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - $rt_throw($par1MovingObjectPosition); - } - $var5 = $var5 + 1 | 0; - } - if (!$this.$worldObj.$isRemote) - $this.$isDead = 1; - return; - case 1: - $par1MovingObjectPosition.$attackEntityFrom(var$3, $var2); - if ($rt_suspending()) { - break main; - } - b: { - if (!$this.$worldObj.$isRemote && !(Math.random() * 8.0 | 0)) { - $var2 = 1; - if (!(Math.random() * 32.0 | 0)) - $var2 = 4; - $var3 = 0; - while (true) { - if ($var3 >= $var2) - break b; - $var4 = nms_EntityChicken__init_0(); - $par1MovingObjectPosition = $this.$worldObj; - $var4.$worldObj = $par1MovingObjectPosition; - $var4.$dimension = $par1MovingObjectPosition.$provider.$dimensionId; - nms_DataWatcher_updateObject($var4.$dataWatcher, 12, jl_Integer_valueOf((-24000))); - var$6 = !(nms_DataWatcher_getWatchableObjectInt($var4.$dataWatcher, 12) >= 0 ? 0 : 1) ? 1.0 : 0.5; - nms_Entity_setSize($var4, $var4.$field_98056_d * var$6, $var4.$field_98057_e * var$6); - nms_Entity_setLocationAndAngles($var4, $this.$posX, $this.$posY, $this.$posZ, $this.$rotationYaw, 0.0); - $par1MovingObjectPosition = $this.$worldObj; - $var5 = nms_World_spawnEntityInWorld($par1MovingObjectPosition, $var4); - var$3 = $par1MovingObjectPosition.$entityList; - ju_HashMap_putImpl(var$3.$backingMap, $var4, var$3); - if (!$var5) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$entitySpawnQueue; - ju_HashMap_putImpl($par1MovingObjectPosition.$backingMap, $var4, $par1MovingObjectPosition); - } - $var3 = $var3 + 1 | 0; - } - } - } - $var5 = 0; - while ($var5 < 8) { - $par1MovingObjectPosition = $this.$worldObj; - $var4 = $rt_s(863); - var$8 = $this.$posX; - var$9 = $this.$posY; - var$10 = $this.$posZ; - var$11 = 0.0; - var$12 = 0.0; - var$13 = 0.0; - $var3 = 0; - if ($var3 < $par1MovingObjectPosition.$worldAccesses.$size0) { - var$3 = $par1MovingObjectPosition.$worldAccesses; - if ($var3 >= 0 && $var3 < var$3.$size0) { - var$3 = var$3.$array1.data[$var3]; - $ptr = 2; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - $rt_throw($par1MovingObjectPosition); - } - $var5 = $var5 + 1 | 0; - } - if (!$this.$worldObj.$isRemote) - $this.$isDead = 1; - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$3, $var4, var$8, var$9, var$10, var$11, var$12, var$13); - if ($rt_suspending()) { - break main; - } - $var3 = $var3 + 1 | 0; - while (true) { - if ($var3 < $par1MovingObjectPosition.$worldAccesses.$size0) { - var$3 = $par1MovingObjectPosition.$worldAccesses; - if ($var3 >= 0 && $var3 < var$3.$size0) { - var$3 = var$3.$array1.data[$var3]; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - $rt_throw($par1MovingObjectPosition); - } - $var5 = $var5 + 1 | 0; - if ($var5 >= 8) - break; - $par1MovingObjectPosition = $this.$worldObj; - $var4 = $rt_s(863); - var$8 = $this.$posX; - var$9 = $this.$posY; - var$10 = $this.$posZ; - var$11 = 0.0; - var$12 = 0.0; - var$13 = 0.0; - $var3 = 0; - } - if (!$this.$worldObj.$isRemote) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1MovingObjectPosition, $var4, var$3, $var2, $var3, var$6, $var5, var$8, var$9, var$10, var$11, var$12, var$13, $ptr); -} -function nms_EntityPotion() { - nms_EntityThrowable.call(this); - this.$potionDamage = null; -} -function nms_EntityPotion__init_0() { - var var_0 = new nms_EntityPotion(); - nms_EntityPotion__init_(var_0); - return var_0; -} -function nms_EntityPotion__init_1(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityPotion(); - nms_EntityPotion__init_2(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityPotion__init_($this) { - nms_EntityThrowable__init_0($this); -} -function nms_EntityPotion__init_2($this, $par1World, $par2, $par4, $par6, $par8) { - var var$6, var$7; - var$6 = new nms_ItemStack; - nms_Item_$callClinit(); - var$7 = nms_Item_potion.$itemID; - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = var$7; - var$6.$stackSize = 1; - var$6.$itemDamage = $par8; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - nms_EntityThrowable__init_4($this, $par1World, $par2, $par4, $par6); - $this.$potionDamage = var$6; -} -function nms_EntityPotion_getGravityVelocity($this) { - return 0.05000000074505806; -} -function nms_EntityPotion_func_70182_d($this) { - return 0.5; -} -function nms_EntityPotion_func_70183_g($this) { - return (-20.0); -} -function nms_EntityPotion_getPotionDamage($this) { - var var$1, var$2; - if ($this.$potionDamage === null) { - var$1 = new nms_ItemStack; - nms_Item_$callClinit(); - var$2 = nms_Item_potion.$itemID; - var$1.$stackSize = 0; - var$1.$itemFrame = null; - var$1.$itemID0 = var$2; - var$1.$stackSize = 1; - var$1.$itemDamage = 0; - if (var$1.$itemDamage < 0) - var$1.$itemDamage = 0; - $this.$potionDamage = var$1; - } - return $this.$potionDamage.$itemDamage; -} -function nms_EntityPotion_onImpact($this, $par1MovingObjectPosition) { - var $var2, $var4, $var7, $var9, var$6, var$7, var$8, var$9, $var6, $var5, $var3, $var11, $var12, $var13, $var14, var$17, var$18, var$19, var$20, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var3 = $thread.pop();$var5 = $thread.pop();$var6 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$par1MovingObjectPosition = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote) { - a: { - nms_Item_$callClinit(); - $var2 = nms_ItemPotion_getEffects(nms_Item_potion, $this.$potionDamage); - if ($var2 !== null && !($var2.$size2() ? 0 : 1)) { - $var4 = $this.$boundingBox; - $var7 = $var4.$minX - 4.0; - $var9 = $var4.$minY - 2.0; - var$6 = $var4.$minZ - 4.0; - var$7 = $var4.$maxX + 4.0; - var$8 = $var4.$maxY + 2.0; - var$9 = $var4.$maxZ + 4.0; - $var6 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var6.$initialized) { - $var4 = new nms_AABBPool; - $var5 = new ju_ArrayList; - ju_AbstractList__init_0($var5); - $var5.$array1 = $rt_createArray(jl_Object, 10); - $var4.$listAABB = $var5; - $var4.$nextPoolIndex = 0; - $var4.$maxPoolIndex = 0; - $var4.$numCleans = 0; - $var4.$maxNumCleans = 300; - $var4.$numEntriesToRemove = 2000; - $var6.$value7 = $var4; - $var6.$initialized = 1; - } - $var3 = nms_AABBPool_getAABB($var6.$value7, $var7, $var9, var$6, var$7, var$8, var$9); - $var4 = nms_World_selectEntitiesWithinAABB($this.$worldObj, $rt_cls(nms_EntityLiving), $var3, null); - if ($var4 !== null && !($var4.$size0 ? 0 : 1)) { - $var5 = new ju_AbstractList$1; - $var5.$this$0 = $var4; - $var5.$modCount = $var5.$this$0.$modCount0; - $var5.$size1 = $var5.$this$0.$size2(); - $var5.$removeIndex = (-1); - b: while (true) { - if (!ju_AbstractList$1_hasNext($var5)) - break a; - c: { - $var6 = ju_AbstractList$1_next($var5); - $var7 = nms_Entity_getDistanceSqToEntity($this, $var6); - if ($var7 < 16.0) { - $var9 = 1.0 - jl_Math_sqrt($var7) / 4.0; - if ($var6 === $par1MovingObjectPosition.$entityHit) - $var9 = 1.0; - $var11 = ju_AbstractList$1__init_($var2); - while (true) { - if (!ju_AbstractList$1_hasNext($var11)) - break c; - $var12 = ju_AbstractList$1_next($var11); - $var13 = $var12.$potionID; - if (nms_Potion_potionTypes.data[$var13].$isInstant()) - break b; - $var14 = $var9 * nms_PotionEffect_getDuration($var12) + 0.5 | 0; - if ($var14 > 20) - $var6.$addPotionEffect(nms_PotionEffect__init_($var13, $var14, nms_PotionEffect_getAmplifier($var12))); - } - } - } - } - $var4 = nms_Potion_potionTypes.data[$var13]; - $var3 = nms_EntityThrowable_getThrower($this); - $var14 = nms_PotionEffect_getAmplifier($var12); - $ptr = 2; - continue main; - } - } - } - $par1MovingObjectPosition = $this.$worldObj; - $var14 = 2002; - $var7 = $this.$posX; - var$17 = $rt_compare($var7, 0.0); - var$17 = Long_fromNumber($var7 + (var$17 > 0 ? 1.0 : var$17 >= 0 ? $var7 : (-1.0)) * 0.5).lo; - $var7 = $this.$posY; - $var13 = $rt_compare($var7, 0.0); - $var13 = Long_fromNumber($var7 + ($var13 > 0 ? 1.0 : $var13 >= 0 ? $var7 : (-1.0)) * 0.5).lo; - $var7 = $this.$posZ; - var$18 = $rt_compare($var7, 0.0); - var$18 = Long_fromNumber($var7 + (var$18 > 0 ? 1.0 : var$18 >= 0 ? $var7 : (-1.0)) * 0.5).lo; - if ($this.$potionDamage === null) { - $var2 = new nms_ItemStack; - var$19 = nms_Item_potion.$itemID; - $var2.$stackSize = 0; - $var2.$itemFrame = null; - $var2.$itemID0 = var$19; - $var2.$stackSize = 1; - $var2.$itemDamage = 0; - if ($var2.$itemDamage < 0) - $var2.$itemDamage = 0; - $this.$potionDamage = $var2; - } - var$19 = $this.$potionDamage.$itemDamage; - $var2 = null; - var$20 = 0; - if (var$20 < $par1MovingObjectPosition.$worldAccesses.$size0) { - $var4 = $par1MovingObjectPosition.$worldAccesses; - if (var$20 >= 0 && var$20 < $var4.$size0) { - $var4 = $var4.$array1.data[var$20]; - $ptr = 1; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1MovingObjectPosition); - $rt_throw($par1MovingObjectPosition); - } - $this.$isDead = 1; - } - return; - case 1: - nms_RenderGlobal_playAuxSFX($var4, $var2, $var14, var$17, $var13, var$18, var$19); - if ($rt_suspending()) { - break main; - } - var$20 = var$20 + 1 | 0; - if (var$20 >= $par1MovingObjectPosition.$worldAccesses.$size0) { - $this.$isDead = 1; - return; - } - $var4 = $par1MovingObjectPosition.$worldAccesses; - if (var$20 >= 0 && var$20 < $var4.$size0) { - $var4 = $var4.$array1.data[var$20]; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1MovingObjectPosition); - $rt_throw($par1MovingObjectPosition); - case 2: - nms_Potion_affectEntity($var4, $var3, $var6, $var14, $var9); - if ($rt_suspending()) { - break main; - } - while (true) { - while (!ju_AbstractList$1_hasNext($var11)) { - while (true) { - if (!ju_AbstractList$1_hasNext($var5)) { - $par1MovingObjectPosition = $this.$worldObj; - $var14 = 2002; - $var7 = $this.$posX; - var$17 = $rt_compare($var7, 0.0); - var$17 = Long_fromNumber($var7 + (var$17 > 0 ? 1.0 : var$17 >= 0 ? $var7 : (-1.0)) * 0.5).lo; - $var7 = $this.$posY; - $var13 = $rt_compare($var7, 0.0); - $var13 = Long_fromNumber($var7 + ($var13 > 0 ? 1.0 : $var13 >= 0 ? $var7 : (-1.0)) * 0.5).lo; - $var7 = $this.$posZ; - var$18 = $rt_compare($var7, 0.0); - var$18 = Long_fromNumber($var7 + (var$18 > 0 ? 1.0 : var$18 >= 0 ? $var7 : (-1.0)) * 0.5).lo; - if ($this.$potionDamage === null) { - $var2 = new nms_ItemStack; - var$19 = nms_Item_potion.$itemID; - $var2.$stackSize = 0; - $var2.$itemFrame = null; - $var2.$itemID0 = var$19; - $var2.$stackSize = 1; - $var2.$itemDamage = 0; - if ($var2.$itemDamage < 0) - $var2.$itemDamage = 0; - $this.$potionDamage = $var2; - } - var$19 = $this.$potionDamage.$itemDamage; - $var2 = null; - var$20 = 0; - if (var$20 >= $par1MovingObjectPosition.$worldAccesses.$size0) { - $this.$isDead = 1; - return; - } - $var4 = $par1MovingObjectPosition.$worldAccesses; - if (var$20 >= 0 && var$20 < $var4.$size0) { - $var4 = $var4.$array1.data[var$20]; - $ptr = 1; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1MovingObjectPosition); - $rt_throw($par1MovingObjectPosition); - } - $var6 = ju_AbstractList$1_next($var5); - $var7 = nms_Entity_getDistanceSqToEntity($this, $var6); - if ($var7 >= 16.0) - continue; - else - break; - } - $var9 = 1.0 - jl_Math_sqrt($var7) / 4.0; - if ($var6 === $par1MovingObjectPosition.$entityHit) - $var9 = 1.0; - $var11 = ju_AbstractList$1__init_($var2); - } - $var12 = ju_AbstractList$1_next($var11); - $var13 = $var12.$potionID; - if (nms_Potion_potionTypes.data[$var13].$isInstant()) - break; - $var14 = $var9 * nms_PotionEffect_getDuration($var12) + 0.5 | 0; - if ($var14 <= 20) - continue; - $var6.$addPotionEffect(nms_PotionEffect__init_($var13, $var14, nms_PotionEffect_getAmplifier($var12))); - } - $var4 = nms_Potion_potionTypes.data[$var13]; - $var3 = nms_EntityThrowable_getThrower($this); - $var14 = nms_PotionEffect_getAmplifier($var12); - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1MovingObjectPosition, $var2, $var4, $var7, $var9, var$6, var$7, var$8, var$9, $var6, $var5, $var3, $var11, $var12, $var13, $var14, var$17, var$18, var$19, var$20, $ptr); -} -function nms_EntityExpBottle() { - nms_EntityThrowable.call(this); -} -function nms_EntityExpBottle__init_0() { - var var_0 = new nms_EntityExpBottle(); - nms_EntityExpBottle__init_(var_0); - return var_0; -} -function nms_EntityExpBottle__init_1(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityExpBottle(); - nms_EntityExpBottle__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityExpBottle__init_($this) { - nms_EntityThrowable__init_0($this); -} -function nms_EntityExpBottle__init_2($this, $par1World, $par2, $par4, $par6) { - nms_EntityThrowable__init_4($this, $par1World, $par2, $par4, $par6); -} -function nms_EntityExpBottle_getGravityVelocity($this) { - return 0.07000000029802322; -} -function nms_EntityExpBottle_func_70182_d($this) { - return 0.699999988079071; -} -function nms_EntityExpBottle_func_70183_g($this) { - return (-20.0); -} -function nms_EntityExpBottle_onImpact($this, $par1MovingObjectPosition) { - var $var2, var$3, $var3, var$5, 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();var$5 = $thread.pop();$var3 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1MovingObjectPosition = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote) { - $par1MovingObjectPosition = $this.$worldObj; - $var2 = 2002; - var$3 = $this.$posX; - $var3 = $rt_compare(var$3, 0.0); - var$5 = Long_fromNumber(var$3 + ($var3 > 0 ? 1.0 : $var3 >= 0 ? var$3 : (-1.0)) * 0.5).lo; - var$3 = $this.$posY; - $var3 = $rt_compare(var$3, 0.0); - var$6 = Long_fromNumber(var$3 + ($var3 > 0 ? 1.0 : $var3 >= 0 ? var$3 : (-1.0)) * 0.5).lo; - var$7 = $this.$posZ; - $var3 = $rt_compare(var$7, 0.0); - var$8 = Long_fromNumber(var$7 + ($var3 > 0 ? 1.0 : $var3 >= 0 ? var$7 : (-1.0)) * 0.5).lo; - $var3 = 0; - var$9 = null; - var$10 = 0; - if (var$10 < $par1MovingObjectPosition.$worldAccesses.$size0) { - var$11 = $par1MovingObjectPosition.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - $ptr = 1; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1MovingObjectPosition); - $rt_throw($par1MovingObjectPosition); - } - $var2 = (3 + (Math.random() * 5.0 | 0) | 0) + (Math.random() * 5.0 | 0) | 0; - while ($var2 > 0) { - $var3 = nms_EntityXPOrb_getXPSplit($var2); - $var2 = $var2 - $var3 | 0; - $par1MovingObjectPosition = $this.$worldObj; - var$9 = nms_EntityXPOrb__init_0($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, $var3); - $var3 = nms_World_spawnEntityInWorld($par1MovingObjectPosition, var$9); - var$11 = $par1MovingObjectPosition.$entityList; - ju_HashMap_putImpl(var$11.$backingMap, var$9, var$11); - if (!$var3) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$entitySpawnQueue; - ju_HashMap_putImpl($par1MovingObjectPosition.$backingMap, var$9, $par1MovingObjectPosition); - } - } - $this.$isDead = 1; - } - return; - case 1: - nms_RenderGlobal_playAuxSFX(var$11, var$9, $var2, var$5, var$6, var$8, $var3); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - if (var$10 >= $par1MovingObjectPosition.$worldAccesses.$size0) { - $var2 = (3 + (Math.random() * 5.0 | 0) | 0) + (Math.random() * 5.0 | 0) | 0; - while ($var2 > 0) { - $var3 = nms_EntityXPOrb_getXPSplit($var2); - $var2 = $var2 - $var3 | 0; - $par1MovingObjectPosition = $this.$worldObj; - var$9 = nms_EntityXPOrb__init_0($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, $var3); - $var3 = nms_World_spawnEntityInWorld($par1MovingObjectPosition, var$9); - var$11 = $par1MovingObjectPosition.$entityList; - ju_HashMap_putImpl(var$11.$backingMap, var$9, var$11); - if (!$var3) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$entitySpawnQueue; - ju_HashMap_putImpl($par1MovingObjectPosition.$backingMap, var$9, $par1MovingObjectPosition); - } - } - $this.$isDead = 1; - return; - } - var$11 = $par1MovingObjectPosition.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - continue main; - } - $par1MovingObjectPosition = new jl_IndexOutOfBoundsException; - $par1MovingObjectPosition.$suppressionEnabled = 1; - $par1MovingObjectPosition.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1MovingObjectPosition); - $rt_throw($par1MovingObjectPosition); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1MovingObjectPosition, $var2, var$3, $var3, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_EntityFireworkRocket() { - var a = this; nms_Entity.call(a); - a.$fireworkAge = 0; - a.$lifetime = 0; -} -function nms_EntityFireworkRocket__init_0() { - var var_0 = new nms_EntityFireworkRocket(); - nms_EntityFireworkRocket__init_(var_0); - return var_0; -} -function nms_EntityFireworkRocket__init_1(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityFireworkRocket(); - nms_EntityFireworkRocket__init_2(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityFireworkRocket__init_($this) { - nms_Entity__init_0($this); - nms_Entity_setSize($this, 0.25, 0.25); -} -function nms_EntityFireworkRocket_entityInit($this) { - var var$1, var$2, var$3; - var$1 = $this.$dataWatcher; - var$2 = new nms_WatchableObject; - var$3 = null; - var$2.$dataValueId = 8; - var$2.$watchedObject = var$3; - var$2.$objectType = 5; - var$2.$watched = 1; - ju_HashMap_putImpl(var$1.$watchedObjects, jl_Integer_valueOf(8), var$2); - var$1.$isBlank = 0; -} -function nms_EntityFireworkRocket_isInRangeToRenderDist($this, $par1) { - return $par1 >= 4096.0 ? 0 : 1; -} -function nms_EntityFireworkRocket__init_2($this, $par1World, $par2, $par4, $par6, $par8ItemStack) { - var $var9, $var10, var$8, $var11, var$10; - nms_Entity__init_0($this); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$fireworkAge = 0; - nms_Entity_setSize($this, 0.25, 0.25); - nms_Entity_setPosition($this, $par2, $par4, $par6); - $this.$yOffset0 = 0.0; - $var9 = 1; - if ($par8ItemStack !== null && ($par8ItemStack.$stackTagCompound === null ? 0 : 1)) { - nms_DataWatcher_updateObject($this.$dataWatcher, 8, $par8ItemStack); - $var10 = $par8ItemStack.$stackTagCompound; - $par8ItemStack = $var10.$tagMap; - var$8 = jl_String_hashCode($rt_s(1513)); - if (!(ju_HashMap_findNonNullKeyEntry($par8ItemStack, $rt_s(1513), var$8 & ($par8ItemStack.$elementData.data.length - 1 | 0), var$8) === null ? 0 : 1)) { - $var11 = new nms_NBTTagCompound; - $var11.$name0 = $rt_s(1513); - $var11.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - $par8ItemStack = $var10.$tagMap; - var$8 = jl_String_hashCode($rt_s(1513)); - $par1World = ju_HashMap_findNonNullKeyEntry($par8ItemStack, $rt_s(1513), var$8 & ($par8ItemStack.$elementData.data.length - 1 | 0), var$8); - $var11 = $par1World === null ? null : $par1World.$value0; - } - if ($var11 !== null) { - $par8ItemStack = $var11.$tagMap; - var$8 = jl_String_hashCode($rt_s(1514)); - if (!(ju_HashMap_findNonNullKeyEntry($par8ItemStack, $rt_s(1514), var$8 & ($par8ItemStack.$elementData.data.length - 1 | 0), var$8) === null ? 0 : 1)) - var$10 = 0; - else { - $par8ItemStack = $var11.$tagMap; - var$8 = jl_String_hashCode($rt_s(1514)); - $par1World = ju_HashMap_findNonNullKeyEntry($par8ItemStack, $rt_s(1514), var$8 & ($par8ItemStack.$elementData.data.length - 1 | 0), var$8); - var$10 = ($par1World === null ? null : $par1World.$value0).$data0; - } - $var9 = $var9 + var$10 | 0; - } - } - $this.$motionX = ju_Random_nextGaussian($this.$rand0) * 0.001; - $this.$motionZ = ju_Random_nextGaussian($this.$rand0) * 0.001; - $this.$motionY = 0.05; - $this.$lifetime = ((10 * $var9 | 0) + (Math.random() * 6.0 | 0) | 0) + (Math.random() * 7.0 | 0) | 0; -} -function nms_EntityFireworkRocket_setVelocity($this, $par1, $par3, $par5) { - var $var7, var$5; - $this.$motionX = $par1; - $this.$motionY = $par3; - $this.$motionZ = $par5; - if ($this.$prevRotationPitch === 0.0 && $this.$prevRotationYaw === 0.0) { - $var7 = jl_Math_sqrt($par1 * $par1 + $par5 * $par5); - var$5 = jl_Math_atan2($par1, $par5) * 180.0 / 3.141592653589793; - $this.$rotationYaw = var$5; - $this.$prevRotationYaw = var$5; - var$5 = jl_Math_atan2($par3, $var7) * 180.0 / 3.141592653589793; - $this.$rotationPitch = var$5; - $this.$prevRotationPitch = var$5; - } -} -function nms_EntityFireworkRocket_onUpdate($this) { - var var$1, var$2, var$3, $var1, var$5, 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();var$5 = $thread.pop();$var1 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$lastTickPosX = $this.$posX; - $this.$lastTickPosY = $this.$posY; - $this.$lastTickPosZ = $this.$posZ; - $ptr = 1; - case 1: - nms_Entity_onEntityUpdate($this); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 1.15; - $this.$motionZ = $this.$motionZ * 1.15; - $this.$motionY = $this.$motionY + 0.04; - var$1 = $this.$motionX; - var$2 = $this.$motionY; - var$3 = $this.$motionZ; - $ptr = 2; - case 2: - nms_Entity_moveEntity($this, var$1, var$2, var$3); - if ($rt_suspending()) { - break main; - } - $var1 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var1) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - if (!$this.$fireworkAge) - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1515), 3.0, 1.0); - $this.$fireworkAge = $this.$fireworkAge + 1 | 0; - if ($this.$worldObj.$isRemote && ($this.$fireworkAge % 2 | 0) < 2) { - var$5 = $this.$worldObj; - var$6 = $rt_s(846); - var$2 = $this.$posX; - var$3 = $this.$posY - 0.3; - var$7 = $this.$posZ; - var$8 = ju_Random_nextGaussian($this.$rand0) * 0.05; - var$9 = -$this.$motionY * 0.5; - var$1 = ju_Random_nextGaussian($this.$rand0) * 0.05; - var$10 = 0; - if (var$10 < var$5.$worldAccesses.$size0) { - var$11 = var$5.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - $ptr = 3; - continue main; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - } - } - if (!$this.$worldObj.$isRemote && $this.$fireworkAge > $this.$lifetime) - $this.$isDead = 1; - return; - case 3: - nms_RenderGlobal_doSpawnParticle(var$11, var$6, var$2, var$3, var$7, var$8, var$9, var$1); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - if (var$10 >= var$5.$worldAccesses.$size0) { - if (!$this.$worldObj.$isRemote && $this.$fireworkAge > $this.$lifetime) - $this.$isDead = 1; - return; - } - var$11 = var$5.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - continue main; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $var1, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_EntityFireworkRocket_handleHealthUpdate($this, $par1) { - var $var2, $var3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11; - if ($par1 == 17 && $this.$worldObj.$isRemote) { - $var2 = nms_DataWatcher_getWatchableObjectItemStack($this.$dataWatcher, 8); - $var3 = null; - if ($var2 !== null && ($var2.$stackTagCompound === null ? 0 : 1)) { - var$4 = $var2.$stackTagCompound; - $var3 = var$4.$tagMap; - var$5 = jl_String_hashCode($rt_s(1513)); - if (!(ju_HashMap_findNonNullKeyEntry($var3, $rt_s(1513), var$5 & ($var3.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) { - $var3 = new nms_NBTTagCompound; - $var3.$name0 = $rt_s(1513); - $var3.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - $var3 = var$4.$tagMap; - var$5 = jl_String_hashCode($rt_s(1513)); - $var2 = ju_HashMap_findNonNullKeyEntry($var3, $rt_s(1513), var$5 & ($var3.$elementData.data.length - 1 | 0), var$5); - $var3 = $var2 === null ? null : $var2.$value0; - } - } - $var2 = $this.$worldObj; - var$6 = $this.$posX; - var$7 = $this.$posY; - var$8 = $this.$posZ; - var$9 = $this.$motionX; - var$10 = $this.$motionY; - var$11 = $this.$motionZ; - nms_EffectRenderer_addEffect($var2.$mc11.$effectRenderer, nms_EntityFireworkStarterFX__init_($var2, var$6, var$7, var$8, var$9, var$10, var$11, $var2.$mc11.$effectRenderer, $var3)); - } -} -function nms_EntityFireworkRocket_getShadowSize($this) { - return 0.0; -} -function nms_EntityFireworkRocket_getBrightnessForRender($this, $par1) { - return nms_Entity_getBrightnessForRender($this, $par1); -} -function nms_EntityFireworkRocket_canAttackWithItem($this) { - return 0; -} -function nms_EntityFireball() { - var a = this; nms_Entity.call(a); - a.$xTile1 = 0; - a.$yTile1 = 0; - a.$zTile1 = 0; - a.$inTile1 = 0; - a.$inGround1 = 0; - a.$shootingEntity0 = null; - a.$ticksAlive = 0; - a.$ticksInAir1 = 0; - a.$accelerationX = 0.0; - a.$accelerationY = 0.0; - a.$accelerationZ = 0.0; -} -function nms_EntityFireball__init_0() { - var var_0 = new nms_EntityFireball(); - nms_EntityFireball__init_1(var_0); - return var_0; -} -function nms_EntityFireball__init_2(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityFireball(); - nms_EntityFireball__init_3(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -function nms_EntityFireball__init_4(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityFireball(); - nms_EntityFireball__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityFireball__init_1($this) { - nms_Entity__init_0($this); - $this.$xTile1 = (-1); - $this.$yTile1 = (-1); - $this.$zTile1 = (-1); - $this.$inTile1 = 0; - $this.$inGround1 = 0; - $this.$ticksInAir1 = 0; - nms_Entity_setSize($this, 1.0, 1.0); -} -function nms_EntityFireball_entityInit($this) { - return; -} -function nms_EntityFireball_isInRangeToRenderDist($this, $par1) { - var var$2, $var3; - var$2 = $this.$boundingBox; - $var3 = (var$2.$maxX - var$2.$minX + var$2.$maxY - var$2.$minY + var$2.$maxZ - var$2.$minZ) / 3.0 * 4.0 * 64.0; - return $par1 >= $var3 * $var3 ? 0 : 1; -} -function nms_EntityFireball__init_3($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - var $var14; - nms_Entity__init_0($this); - $this.$xTile1 = (-1); - $this.$yTile1 = (-1); - $this.$zTile1 = (-1); - $this.$inTile1 = 0; - $this.$inGround1 = 0; - $this.$ticksInAir1 = 0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - nms_Entity_setSize($this, 1.0, 1.0); - nms_Entity_setLocationAndAngles($this, $par2, $par4, $par6, $this.$rotationYaw, $this.$rotationPitch); - nms_Entity_setPosition($this, $par2, $par4, $par6); - $var14 = jl_Math_sqrt($par8 * $par8 + $par10 * $par10 + $par12 * $par12); - $this.$accelerationX = $par8 / $var14 * 0.1; - $this.$accelerationY = $par10 / $var14 * 0.1; - $this.$accelerationZ = $par12 / $var14 * 0.1; -} -function nms_EntityFireball__init_($this, $par1World, $par2EntityLiving, $par3, $par5, $par7) { - var $var9; - nms_Entity__init_0($this); - $this.$xTile1 = (-1); - $this.$yTile1 = (-1); - $this.$zTile1 = (-1); - $this.$inTile1 = 0; - $this.$inGround1 = 0; - $this.$ticksInAir1 = 0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$shootingEntity0 = $par2EntityLiving; - nms_Entity_setSize($this, 1.0, 1.0); - nms_Entity_setLocationAndAngles($this, $par2EntityLiving.$posX, $par2EntityLiving.$posY, $par2EntityLiving.$posZ, $par2EntityLiving.$rotationYaw, $par2EntityLiving.$rotationPitch); - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$yOffset0 = 0.0; - $this.$motionZ = 0.0; - $this.$motionY = 0.0; - $this.$motionX = 0.0; - $par3 = $par3 + ju_Random_nextGaussian($this.$rand0) * 0.4; - $par5 = $par5 + ju_Random_nextGaussian($this.$rand0) * 0.4; - $par7 = $par7 + ju_Random_nextGaussian($this.$rand0) * 0.4; - $var9 = jl_Math_sqrt($par3 * $par3 + $par5 * $par5 + $par7 * $par7); - $this.$accelerationX = $par3 / $var9 * 0.1; - $this.$accelerationY = $par5 / $var9 * 0.1; - $this.$accelerationZ = $par7 / $var9 * 0.1; -} -function nms_EntityFireball_onUpdate($this) { - var $var15, $var2, $var3, $var4, $var5, $var6, $var8, $var9, $var12, $var13, $var16, $var17, $var18, var$14, var$15, var$16, var$17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var15 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if (!$this.$worldObj.$isRemote) { - if ($this.$shootingEntity0 !== null && $this.$shootingEntity0.$isDead) - break a; - if (!nms_World_blockExists($this.$worldObj, $this.$posX | 0, $this.$posY | 0, $this.$posZ | 0)) - break a; - } - $ptr = 1; - continue main; - } - $ptr = 2; - continue main; - case 1: - nms_Entity_onUpdate($this); - if ($rt_suspending()) { - break main; - } - nms_Entity_setFire($this, 1); - if (!$this.$inGround1) - $this.$ticksInAir1 = $this.$ticksInAir1 + 1 | 0; - else { - if (nms_World_getBlockId($this.$worldObj, $this.$xTile1, $this.$yTile1, $this.$zTile1) == $this.$inTile1) { - $this.$ticksAlive = $this.$ticksAlive + 1 | 0; - if ($this.$ticksAlive != 600) - return; - $ptr = 3; - continue main; - } - $this.$inGround1 = 0; - $this.$motionX = $this.$motionX * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$motionY = $this.$motionY * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$motionZ = $this.$motionZ * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$ticksAlive = 0; - $this.$ticksInAir1 = 0; - } - $var15 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX, $this.$posY, $this.$posZ); - $var2 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - $var3 = nms_World_rayTraceBlocks($this.$worldObj, $var15, $var2); - $var15 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX, $this.$posY, $this.$posZ); - $var2 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - if ($var3 !== null) - $var2 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $var3.$hitVec.$xCoord, $var3.$hitVec.$yCoord, $var3.$hitVec.$zCoord); - $var4 = null; - $var5 = nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_expand(nms_AxisAlignedBB_addCoord($this.$boundingBox, $this.$motionX, $this.$motionY, $this.$motionZ), 1.0, 1.0, 1.0)); - $var6 = 0.0; - $var8 = 0; - while ($var8 < ju_ArrayList_size($var5)) { - $var9 = ju_ArrayList_get($var5, $var8); - if ($var9.$canBeCollidedWith() && !($var9.$isEntityEqual($this.$shootingEntity0) && $this.$ticksInAir1 < 25)) { - $var12 = nms_AxisAlignedBB_calculateIntercept(nms_AxisAlignedBB_expand($var9.$boundingBox, 0.30000001192092896, 0.30000001192092896, 0.30000001192092896), $var15, $var2); - if ($var12 !== null) { - $var13 = nms_Vec3_distanceTo($var15, $var12.$hitVec); - if (!($var13 >= $var6 && $var6 !== 0.0)) { - $var4 = $var9; - $var6 = $var13; - } - } - } - $var8 = $var8 + 1 | 0; - } - if ($var4 !== null) - $var3 = nms_MovingObjectPosition__init_0($var4); - if ($var3 !== null) { - $ptr = 4; - continue main; - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var16 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionZ, $this.$motionX) * 180.0 / 3.141592653589793 + 90.0; - $this.$rotationPitch = jl_Math_atan2($var16, $this.$motionY) * 180.0 / 3.141592653589793 - 90.0; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var17 = $this.$getMotionFactor(); - if (nms_Entity_isInWater($this)) { - $var18 = 0; - if ($var18 < 4) { - $var15 = $this.$worldObj; - $var2 = $rt_s(680); - $var6 = $this.$posX - $this.$motionX * 0.25; - $var13 = $this.$posY - $this.$motionY * 0.25; - var$14 = $this.$posZ - $this.$motionZ * 0.25; - var$15 = $this.$motionX; - var$16 = $this.$motionY; - var$17 = $this.$motionZ; - $ptr = 6; - continue main; - } - $var17 = 0.800000011920929; - } - $this.$motionX = $this.$motionX + $this.$accelerationX; - $this.$motionY = $this.$motionY + $this.$accelerationY; - $this.$motionZ = $this.$motionZ + $this.$accelerationZ; - $var6 = $this.$motionX; - $var13 = $var17; - $this.$motionX = $var6 * $var13; - $this.$motionY = $this.$motionY * $var13; - $this.$motionZ = $this.$motionZ * $var13; - $var15 = $this.$worldObj; - $var2 = $rt_s(852); - var$15 = $this.$posX; - var$16 = $this.$posY + 0.5; - var$17 = $this.$posZ; - $var6 = 0.0; - $var13 = 0.0; - var$14 = 0.0; - $ptr = 5; - continue main; - case 2: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - return; - case 4: - $this.$onImpact($var3); - if ($rt_suspending()) { - break main; - } - $this.$posX = $this.$posX + $this.$motionX; - $this.$posY = $this.$posY + $this.$motionY; - $this.$posZ = $this.$posZ + $this.$motionZ; - $var16 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionZ, $this.$motionX) * 180.0 / 3.141592653589793 + 90.0; - $this.$rotationPitch = jl_Math_atan2($var16, $this.$motionY) * 180.0 / 3.141592653589793 - 90.0; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var17 = $this.$getMotionFactor(); - if (nms_Entity_isInWater($this)) { - $var18 = 0; - if ($var18 < 4) { - $var15 = $this.$worldObj; - $var2 = $rt_s(680); - $var6 = $this.$posX - $this.$motionX * 0.25; - $var13 = $this.$posY - $this.$motionY * 0.25; - var$14 = $this.$posZ - $this.$motionZ * 0.25; - var$15 = $this.$motionX; - var$16 = $this.$motionY; - var$17 = $this.$motionZ; - $ptr = 6; - continue main; - } - $var17 = 0.800000011920929; - } - $this.$motionX = $this.$motionX + $this.$accelerationX; - $this.$motionY = $this.$motionY + $this.$accelerationY; - $this.$motionZ = $this.$motionZ + $this.$accelerationZ; - $var6 = $this.$motionX; - $var13 = $var17; - $this.$motionX = $var6 * $var13; - $this.$motionY = $this.$motionY * $var13; - $this.$motionZ = $this.$motionZ * $var13; - $var15 = $this.$worldObj; - $var2 = $rt_s(852); - var$15 = $this.$posX; - var$16 = $this.$posY + 0.5; - var$17 = $this.$posZ; - $var6 = 0.0; - $var13 = 0.0; - var$14 = 0.0; - $ptr = 5; - case 5: - nms_World_spawnParticle($var15, $var2, var$15, var$16, var$17, $var6, $var13, var$14); - if ($rt_suspending()) { - break main; - } - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - return; - case 6: - nms_World_spawnParticle($var15, $var2, $var6, $var13, var$14, var$15, var$16, var$17); - if ($rt_suspending()) { - break main; - } - $var18 = $var18 + 1 | 0; - if ($var18 < 4) { - $var15 = $this.$worldObj; - $var2 = $rt_s(680); - $var6 = $this.$posX - $this.$motionX * 0.25; - $var13 = $this.$posY - $this.$motionY * 0.25; - var$14 = $this.$posZ - $this.$motionZ * 0.25; - var$15 = $this.$motionX; - var$16 = $this.$motionY; - var$17 = $this.$motionZ; - continue main; - } - $this.$motionX = $this.$motionX + $this.$accelerationX; - $this.$motionY = $this.$motionY + $this.$accelerationY; - $this.$motionZ = $this.$motionZ + $this.$accelerationZ; - $var6 = $this.$motionX; - $var13 = 0.800000011920929; - $this.$motionX = $var6 * $var13; - $this.$motionY = $this.$motionY * $var13; - $this.$motionZ = $this.$motionZ * $var13; - $var15 = $this.$worldObj; - $var2 = $rt_s(852); - var$15 = $this.$posX; - var$16 = $this.$posY + 0.5; - var$17 = $this.$posZ; - $var6 = 0.0; - $var13 = 0.0; - var$14 = 0.0; - $ptr = 5; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var15, $var2, $var3, $var4, $var5, $var6, $var8, $var9, $var12, $var13, $var16, $var17, $var18, var$14, var$15, var$16, var$17, $ptr); -} -function nms_EntityFireball_getMotionFactor($this) { - return 0.949999988079071; -} -function nms_EntityFireball_canBeCollidedWith($this) { - return 1; -} -function nms_EntityFireball_getCollisionBorderSize($this) { - return 1.0; -} -function nms_EntityFireball_attackEntityFrom($this, $par1DamageSource, $par2) { - var $var3; - if ($this.$invulnerable) - return 0; - $this.$velocityChanged = 1; - if ($par1DamageSource.$getEntity() === null) - return 0; - $var3 = $par1DamageSource.$getEntity().$getLookVec(); - if ($var3 !== null) { - $this.$motionX = $var3.$xCoord; - $this.$motionY = $var3.$yCoord; - $this.$motionZ = $var3.$zCoord; - $this.$accelerationX = $this.$motionX * 0.1; - $this.$accelerationY = $this.$motionY * 0.1; - $this.$accelerationZ = $this.$motionZ * 0.1; - } - if ($par1DamageSource.$getEntity() instanceof nms_EntityLiving) - $this.$shootingEntity0 = $par1DamageSource.$getEntity(); - return 1; -} -function nms_EntityFireball_getShadowSize($this) { - return 0.0; -} -function nms_EntityFireball_getBrightnessForRender($this, $par1) { - return 15728880; -} -function nms_EntityLargeFireball() { - nms_EntityFireball.call(this); - this.$field_92057_e = 0; -} -function nms_EntityLargeFireball__init_1() { - var var_0 = new nms_EntityLargeFireball(); - nms_EntityLargeFireball__init_(var_0); - return var_0; -} -function nms_EntityLargeFireball__init_2(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityLargeFireball(); - nms_EntityLargeFireball__init_3(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -function nms_EntityLargeFireball__init_0(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityLargeFireball(); - nms_EntityLargeFireball__init_4(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityLargeFireball__init_($this) { - nms_EntityFireball__init_1($this); - $this.$field_92057_e = 1; -} -function nms_EntityLargeFireball__init_3($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - nms_EntityFireball__init_3($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $this.$field_92057_e = 1; -} -function nms_EntityLargeFireball__init_4($this, $par1World, $par2EntityLiving, $par3, $par5, $par7) { - nms_EntityFireball__init_($this, $par1World, $par2EntityLiving, $par3, $par5, $par7); - $this.$field_92057_e = 1; -} -function nms_EntityLargeFireball_onImpact($this, $par1MovingObjectPosition) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1MovingObjectPosition = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$worldObj.$isRemote) - return; - if ($par1MovingObjectPosition.$entityHit === null) { - var$2 = $this.$worldObj; - var$3 = null; - var$4 = $this.$posX; - var$5 = $this.$posY; - var$6 = $this.$posZ; - var$7 = $this.$field_92057_e; - var$8 = nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(701)); - $par1MovingObjectPosition = nms_Explosion__init_(var$2, var$3, var$4, var$5, var$6, var$7); - $par1MovingObjectPosition.$isFlaming = 1; - $par1MovingObjectPosition.$isSmoking = var$8; - $ptr = 1; - continue main; - } - $par1MovingObjectPosition = $par1MovingObjectPosition.$entityHit; - var$2 = $this.$shootingEntity0; - if (var$2 !== null) { - var$9 = new nms_EntityDamageSourceIndirect; - var$9.$isUnblockable = 0; - var$9.$isDamageAllowedInCreativeMode = 0; - var$9.$hungerDamage = 0.30000001192092896; - var$9.$magicDamage = 0; - var$9.$explosion = 0; - var$9.$damageType = $rt_s(1298); - var$9.$damageSourceEntity = $this; - var$9.$indirectEntity = var$2; - var$9.$fireDamage = 1; - var$9.$projectile = 1; - } else { - var$9 = new nms_EntityDamageSourceIndirect; - var$9.$isUnblockable = 0; - var$9.$isDamageAllowedInCreativeMode = 0; - var$9.$hungerDamage = 0.30000001192092896; - var$9.$magicDamage = 0; - var$9.$explosion = 0; - var$9.$damageType = $rt_s(1516); - var$9.$damageSourceEntity = $this; - var$9.$indirectEntity = $this; - var$9.$fireDamage = 1; - var$9.$projectile = 1; - } - var$10 = 6; - $ptr = 3; - continue main; - case 1: - nms_Explosion_doExplosionA($par1MovingObjectPosition); - if ($rt_suspending()) { - break main; - } - var$10 = 1; - $ptr = 2; - case 2: - nms_Explosion_doExplosionB($par1MovingObjectPosition, var$10); - if ($rt_suspending()) { - break main; - } - $this.$isDead = 1; - return; - case 3: - $par1MovingObjectPosition.$attackEntityFrom(var$9, var$10); - if ($rt_suspending()) { - break main; - } - var$2 = $this.$worldObj; - var$3 = null; - var$4 = $this.$posX; - var$5 = $this.$posY; - var$6 = $this.$posZ; - var$7 = $this.$field_92057_e; - var$8 = nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(701)); - $par1MovingObjectPosition = nms_Explosion__init_(var$2, var$3, var$4, var$5, var$6, var$7); - $par1MovingObjectPosition.$isFlaming = 1; - $par1MovingObjectPosition.$isSmoking = var$8; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1MovingObjectPosition, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -} -function nms_RenderFireball() { - nms_Render.call(this); - this.$field_77002_a = 0.0; -} -var nms_RenderFireball_tex = null; -function nms_RenderFireball__init_(var_0) { - var var_1 = new nms_RenderFireball(); - nms_RenderFireball__init_0(var_1, var_0); - return var_1; -} -function nms_RenderFireball__init_0($this, $par1) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$field_77002_a = $par1; -} -function nms_RenderFireball_doRenderFireball($this, $par1EntityFireball, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, $var12, var$10, $var13, $var14, $var15, $var16, var$15; - nleg_EaglerAdapterGL30_glPushMatrix(); - $par8 = $par2; - $par9 = $par4; - $var10 = $par6; - $par1EntityFireball = nleg_EaglerAdapterGL30_deevis; - $par1EntityFireball.$x = $par8; - $par1EntityFireball.$y = $par9; - $par1EntityFireball.$z = $var10; - $par1EntityFireball = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1EntityFireball, $par1EntityFireball); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var11 = new ji_PrintStream; - $var11.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityFireball = new jl_StringBuilder; - $par1EntityFireball.$buffer = $rt_createCharArray(16); - $var11.$sb = $par1EntityFireball; - $var11.$buffer0 = $rt_createCharArray(32); - $var11.$autoFlush = 0; - $par1EntityFireball = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityFireball, $rt_s(2), $rt_createArray(jl_String, 0)); - $var11.$charset = $par1EntityFireball; - jl_System_errCache = $var11; - } - $var12 = jl_System_errCache; - $var11 = $var12.$sb; - jl_AbstractStringBuilder_insert($var11, $var11.$length, $rt_s(220)); - var$10 = $var11.$length; - jl_AbstractStringBuilder_insertSpace($var11, var$10, var$10 + 1 | 0); - $var11.$buffer.data[var$10] = 10; - ji_PrintStream_printSB($var12); - } - nleg_EaglerAdapterGL30_glEnable(41); - $par8 = $this.$field_77002_a / 1.0; - $par1EntityFireball = nleg_EaglerAdapterGL30_deevis; - $par1EntityFireball.$x = $par8; - $par1EntityFireball.$y = $par8; - $par1EntityFireball.$z = $par8; - $par1EntityFireball = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityFireball, $par1EntityFireball); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var11 = new ji_PrintStream; - $var11.$out = new jl_ConsoleOutputStreamStderr; - $par1EntityFireball = new jl_StringBuilder; - $par1EntityFireball.$buffer = $rt_createCharArray(16); - $var11.$sb = $par1EntityFireball; - $var11.$buffer0 = $rt_createCharArray(32); - $var11.$autoFlush = 0; - $par1EntityFireball = new jnci_UTF8Charset; - jnc_Charset__init_($par1EntityFireball, $rt_s(2), $rt_createArray(jl_String, 0)); - $var11.$charset = $par1EntityFireball; - jl_System_errCache = $var11; - } - $var12 = jl_System_errCache; - $var11 = $var12.$sb; - jl_AbstractStringBuilder_insert($var11, $var11.$length, $rt_s(220)); - var$10 = $var11.$length; - jl_AbstractStringBuilder_insertSpace($var11, var$10, var$10 + 1 | 0); - $var11.$buffer.data[var$10] = 10; - ji_PrintStream_printSB($var12); - } - nms_Item_$callClinit(); - $var11 = nms_Item_fireballCharge.$getIconFromDamage(0); - nle_TextureLocation_bindTexture(nms_RenderFireball_tex); - nlea_Tessellator_$callClinit(); - $var12 = nlea_Tessellator_instance; - $var13 = $var11.$getMinU(); - $var14 = $var11.$getMaxU(); - $var15 = $var11.$getMinV(); - $var16 = $var11.$getMaxV(); - nleg_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$playerViewY, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$playerViewX, 1.0, 0.0, 0.0); - nlea_Tessellator_startDrawing($var12, 98); - nlea_Tessellator_setNormal($var12, 0.0, 1.0, 0.0); - $par6 = $var13; - var$15 = $var16; - $var12.$hasTexture = 1; - $par9 = $par6; - $var12.$textureU = $par9; - $var10 = var$15; - $var12.$textureV = $var10; - nlea_Tessellator_addVertex($var12, (-0.5), (-0.25), 0.0); - var$15 = $var14; - $var12.$hasTexture = 1; - $par8 = var$15; - $var12.$textureU = $par8; - $var12.$textureV = $var10; - nlea_Tessellator_addVertex($var12, 0.5, (-0.25), 0.0); - var$15 = $var15; - $var12.$hasTexture = 1; - $var12.$textureU = $par8; - $par8 = var$15; - $var12.$textureV = $par8; - nlea_Tessellator_addVertex($var12, 0.5, 0.75, 0.0); - $var12.$hasTexture = 1; - $var12.$textureU = $par9; - $var12.$textureV = $par8; - nlea_Tessellator_addVertex($var12, (-0.5), 0.75, 0.0); - nlea_Tessellator_draw($var12); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_RenderFireball_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderFireball_doRenderFireball($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_RenderFireball__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(647); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderFireball_tex = var$1; -} -function nms_EntitySmallFireball() { - nms_EntityFireball.call(this); -} -function nms_EntitySmallFireball__init_0() { - var var_0 = new nms_EntitySmallFireball(); - nms_EntitySmallFireball__init_(var_0); - return var_0; -} -function nms_EntitySmallFireball__init_1(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntitySmallFireball(); - nms_EntitySmallFireball__init_2(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -function nms_EntitySmallFireball__init_($this) { - nms_EntityFireball__init_1($this); - nms_Entity_setSize($this, 0.3125, 0.3125); -} -function nms_EntitySmallFireball__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - nms_EntityFireball__init_3($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - nms_Entity_setSize($this, 0.3125, 0.3125); -} -function nms_EntitySmallFireball_onImpact($this, $par1MovingObjectPosition) { - var var$2, var$3, var$4, $var2, $var3, $var4, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1MovingObjectPosition = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote) { - a: { - if ($par1MovingObjectPosition.$entityHit !== null) { - if ($par1MovingObjectPosition.$entityHit.$isImmuneToFire) - break a; - var$2 = $par1MovingObjectPosition.$entityHit; - var$3 = $this.$shootingEntity0; - if (var$3 !== null) { - var$4 = new nms_EntityDamageSourceIndirect; - var$4.$isUnblockable = 0; - var$4.$isDamageAllowedInCreativeMode = 0; - var$4.$hungerDamage = 0.30000001192092896; - var$4.$magicDamage = 0; - var$4.$explosion = 0; - var$4.$damageType = $rt_s(1298); - var$4.$damageSourceEntity = $this; - var$4.$indirectEntity = var$3; - var$4.$fireDamage = 1; - var$4.$projectile = 1; - } else { - var$4 = new nms_EntityDamageSourceIndirect; - var$4.$isUnblockable = 0; - var$4.$isDamageAllowedInCreativeMode = 0; - var$4.$hungerDamage = 0.30000001192092896; - var$4.$magicDamage = 0; - var$4.$explosion = 0; - var$4.$damageType = $rt_s(1516); - var$4.$damageSourceEntity = $this; - var$4.$indirectEntity = $this; - var$4.$fireDamage = 1; - var$4.$projectile = 1; - } - $var2 = 5; - $ptr = 1; - continue main; - } - b: { - $var2 = $par1MovingObjectPosition.$blockX; - $var3 = $par1MovingObjectPosition.$blockY; - $var4 = $par1MovingObjectPosition.$blockZ; - switch ($par1MovingObjectPosition.$sideHit) { - case 0: - $var3 = $var3 + (-1) | 0; - break b; - case 1: - $var3 = $var3 + 1 | 0; - break b; - case 2: - $var4 = $var4 + (-1) | 0; - break b; - case 3: - $var4 = $var4 + 1 | 0; - break b; - case 4: - $var2 = $var2 + (-1) | 0; - break b; - case 5: - $var2 = $var2 + 1 | 0; - break b; - default: - } - } - if (nms_World_getBlockId($this.$worldObj, $var2, $var3, $var4) ? 0 : 1) { - var$2 = $this.$worldObj; - nms_Block_$callClinit(); - var$8 = nms_Block_fire.$blockID; - var$9 = 0; - var$10 = 3; - $ptr = 2; - continue main; - } - } - $this.$isDead = 1; - } - return; - case 1: - $tmp = var$2.$attackEntityFrom(var$4, $var2); - if ($rt_suspending()) { - break main; - } - $var2 = $tmp; - if ($var2) { - $par1MovingObjectPosition = $par1MovingObjectPosition.$entityHit; - $var2 = nms_EnchantmentProtection_func_92093_a($par1MovingObjectPosition, 100); - if ($par1MovingObjectPosition.$fire < $var2) - $par1MovingObjectPosition.$fire = $var2; - } - $this.$isDead = 1; - return; - case 2: - nms_World_setBlock(var$2, $var2, $var3, $var4, var$8, var$9, var$10); - if ($rt_suspending()) { - break main; - } - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1MovingObjectPosition, var$2, var$3, var$4, $var2, $var3, $var4, var$8, var$9, var$10, $ptr); -} -function nms_EntitySmallFireball_canBeCollidedWith($this) { - return 0; -} -function nms_EntitySmallFireball_attackEntityFrom($this, $par1DamageSource, $par2) { - return 0; -} -function nms_EntityWitherSkull() { - nms_EntityFireball.call(this); -} -function nms_EntityWitherSkull__init_0() { - var var_0 = new nms_EntityWitherSkull(); - nms_EntityWitherSkull__init_(var_0); - return var_0; -} -function nms_EntityWitherSkull__init_1(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityWitherSkull(); - nms_EntityWitherSkull__init_2(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -function nms_EntityWitherSkull__init_($this) { - nms_EntityFireball__init_1($this); - nms_Entity_setSize($this, 0.3125, 0.3125); -} -function nms_EntityWitherSkull_getMotionFactor($this) { - return (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 10) != 1 ? 0 : 1) ? 0.7300000190734863 : 0.949999988079071; -} -function nms_EntityWitherSkull__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - nms_EntityFireball__init_3($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - nms_Entity_setSize($this, 0.3125, 0.3125); -} -function nms_EntityWitherSkull_isBurning($this) { - return 0; -} -function nms_EntityWitherSkull_func_82146_a($this, $par1Explosion, $par2World, $par3, $par4, $par5, $par6Block) { - var $var7; - $var7 = $par6Block.$getExplosionResistance($this); - $par3 = nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 10) != 1 ? 0 : 1; - if ($par3 && $par6Block !== nms_Block_bedrock && $par6Block !== nms_Block_endPortal && $par6Block !== nms_Block_endPortalFrame && 0.800000011920929 < $var7) - $var7 = 0.800000011920929; - return $var7; -} -function nms_EntityWitherSkull_onImpact($this, $par1MovingObjectPosition) { - var var$2, var$3, var$4, var$5, var$6, var$7, $var2, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var2 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1MovingObjectPosition = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$worldObj.$isRemote) - return; - if ($par1MovingObjectPosition.$entityHit === null) { - var$2 = $this.$worldObj; - var$3 = $this.$posX; - var$4 = $this.$posY; - var$5 = $this.$posZ; - var$6 = nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(701)); - $par1MovingObjectPosition = nms_Explosion__init_(var$2, $this, var$3, var$4, var$5, 1.0); - $par1MovingObjectPosition.$isFlaming = 0; - $par1MovingObjectPosition.$isSmoking = var$6; - $ptr = 1; - continue main; - } - if ($this.$shootingEntity0 === null) { - var$2 = $par1MovingObjectPosition.$entityHit; - var$7 = nms_DamageSource_magic; - $var2 = 5; - $ptr = 3; - continue main; - } - var$2 = $par1MovingObjectPosition.$entityHit; - var$7 = $this.$shootingEntity0; - var$9 = new nms_EntityDamageSource; - var$9.$isUnblockable = 0; - var$9.$isDamageAllowedInCreativeMode = 0; - var$9.$hungerDamage = 0.30000001192092896; - var$9.$magicDamage = 0; - var$9.$explosion = 0; - var$9.$damageType = $rt_s(1181); - var$9.$damageSourceEntity = var$7; - $var2 = 8; - $ptr = 4; - continue main; - case 1: - nms_Explosion_doExplosionA($par1MovingObjectPosition); - if ($rt_suspending()) { - break main; - } - $var2 = 1; - $ptr = 2; - case 2: - nms_Explosion_doExplosionB($par1MovingObjectPosition, $var2); - if ($rt_suspending()) { - break main; - } - $this.$isDead = 1; - return; - case 3: - var$2.$attackEntityFrom(var$7, $var2); - if ($rt_suspending()) { - break main; - } - if ($par1MovingObjectPosition.$entityHit instanceof nms_EntityLiving) { - $var2 = 0; - if ($this.$worldObj.$difficultySetting > 1) { - if ($this.$worldObj.$difficultySetting == 2) - $var2 = 10; - else if ($this.$worldObj.$difficultySetting == 3) - $var2 = 40; - } - if ($var2 > 0) { - var$2 = $par1MovingObjectPosition.$entityHit; - var$7 = new nms_PotionEffect; - var$6 = nms_Potion_wither.$id3; - $var2 = 20 * $var2 | 0; - var$7.$potionID = var$6; - var$7.$duration = $var2; - var$7.$amplifier = 1; - var$7.$isAmbient = 0; - var$2.$addPotionEffect(var$7); - } - } - var$2 = $this.$worldObj; - var$3 = $this.$posX; - var$4 = $this.$posY; - var$5 = $this.$posZ; - var$6 = nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(701)); - $par1MovingObjectPosition = nms_Explosion__init_(var$2, $this, var$3, var$4, var$5, 1.0); - $par1MovingObjectPosition.$isFlaming = 0; - $par1MovingObjectPosition.$isSmoking = var$6; - $ptr = 1; - continue main; - case 4: - $tmp = var$2.$attackEntityFrom(var$9, $var2); - if ($rt_suspending()) { - break main; - } - $var2 = $tmp; - if ($var2 && !$par1MovingObjectPosition.$entityHit.$isEntityAlive()) - $this.$shootingEntity0.$heal(5); - if ($par1MovingObjectPosition.$entityHit instanceof nms_EntityLiving) { - $var2 = 0; - if ($this.$worldObj.$difficultySetting > 1) { - if ($this.$worldObj.$difficultySetting == 2) - $var2 = 10; - else if ($this.$worldObj.$difficultySetting == 3) - $var2 = 40; - } - if ($var2 > 0) { - var$2 = $par1MovingObjectPosition.$entityHit; - var$7 = new nms_PotionEffect; - var$6 = nms_Potion_wither.$id3; - $var2 = 20 * $var2 | 0; - var$7.$potionID = var$6; - var$7.$duration = $var2; - var$7.$amplifier = 1; - var$7.$isAmbient = 0; - var$2.$addPotionEffect(var$7); - } - } - var$2 = $this.$worldObj; - var$3 = $this.$posX; - var$4 = $this.$posY; - var$5 = $this.$posZ; - var$6 = nms_GameRules_getGameRuleBooleanValue($this.$worldObj.$worldInfo.$theGameRules, $rt_s(701)); - $par1MovingObjectPosition = nms_Explosion__init_(var$2, $this, var$3, var$4, var$5, 1.0); - $par1MovingObjectPosition.$isFlaming = 0; - $par1MovingObjectPosition.$isSmoking = var$6; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1MovingObjectPosition, var$2, var$3, var$4, var$5, var$6, var$7, $var2, var$9, $ptr); -} -function nms_EntityWitherSkull_canBeCollidedWith($this) { - return 0; -} -function nms_EntityWitherSkull_attackEntityFrom($this, $par1DamageSource, $par2) { - return 0; -} -function nms_EntityWitherSkull_entityInit($this) { - var var$1, var$2; - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 10, var$2); -} -function nms_EntityWitherSkull_isInvulnerable($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 10) != 1 ? 0 : 1; -} -function nms_EntityWitherSkull_setInvulnerable($this, $par1) { - var var$2, var$3; - var$2 = $this.$dataWatcher; - $par1 = (!$par1 ? 0 : 1) << 24 >> 24; - var$3 = new jl_Byte; - var$3.$value4 = $par1; - nms_DataWatcher_updateObject(var$2, 10, var$3); -} -function nms_RenderWitherSkull() { - nms_Render.call(this); - this.$skeletonHeadModel = null; -} -var nms_RenderWitherSkull_tex_wither = null; -var nms_RenderWitherSkull_tex_wither_invul = null; -function nms_RenderWitherSkull__init_0() { - var var_0 = new nms_RenderWitherSkull(); - nms_RenderWitherSkull__init_(var_0); - return var_0; -} -function nms_RenderWitherSkull__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$skeletonHeadModel = nms_ModelSkeletonHead__init_0(0, 35, 64, 64); -} -function nms_RenderWitherSkull_func_82400_a($this, $par1, $par2, $par3) { - var $var4; - $var4 = $par2 - $par1; - while ($var4 < (-180.0)) { - $var4 = $var4 + 360.0; - } - while ($var4 >= 180.0) { - $var4 = $var4 - 360.0; - } - return $par1 + $par3 * $var4; -} -function nms_RenderWitherSkull_func_82399_a($this, $par1EntityWitherSkull, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, $var12, var$10, var$11, var$12, var$13, var$14; - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glDisable(46); - $var10 = nms_RenderWitherSkull_func_82400_a($this, $par1EntityWitherSkull.$prevRotationYaw, $par1EntityWitherSkull.$rotationYaw, $par9); - $var11 = $par1EntityWitherSkull.$prevRotationPitch + ($par1EntityWitherSkull.$rotationPitch - $par1EntityWitherSkull.$prevRotationPitch) * $par9; - $par8 = $par2; - $par9 = $par4; - $var12 = $par6; - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = $par8; - var$10.$y = $par9; - var$10.$z = $var12; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$13 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$13, var$13 + 1 | 0); - var$11.$buffer.data[var$13] = 10; - ji_PrintStream_printSB(var$12); - } - nleg_EaglerAdapterGL30_glEnable(41); - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = (-1.0); - var$10.$y = (-1.0); - var$10.$z = 1.0; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$10 = jl_System_errCache; - var$11 = var$10.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$14 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$14, var$14 + 1 | 0); - var$11.$buffer.data[var$14] = 10; - ji_PrintStream_printSB(var$10); - } - nleg_EaglerAdapterGL30_glEnable(6); - if (!(nms_DataWatcher_getWatchableObjectByte($par1EntityWitherSkull.$dataWatcher, 10) != 1 ? 0 : 1)) - nle_TextureLocation_bindTexture(nms_RenderWitherSkull_tex_wither); - else - nle_TextureLocation_bindTexture(nms_RenderWitherSkull_tex_wither_invul); - $par1EntityWitherSkull = $this.$skeletonHeadModel; - $par1EntityWitherSkull.$skeletonHead.$rotateAngleY = $var10 / 57.2957763671875; - $par1EntityWitherSkull.$skeletonHead.$rotateAngleX = $var11 / 57.2957763671875; - nms_ModelRenderer_render($par1EntityWitherSkull.$skeletonHead, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_RenderWitherSkull_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderWitherSkull_func_82399_a($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_RenderWitherSkull__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1337); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWitherSkull_tex_wither = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1338); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderWitherSkull_tex_wither_invul = var$1; -} -function nms_EntityItem() { - var a = this; nms_Entity.call(a); - a.$age = 0; - a.$delayBeforeCanPickup = 0; - a.$health1 = 0; - a.$hoverStart = 0.0; -} -function nms_EntityItem__init_0(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityItem(); - nms_EntityItem__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityItem__init_3(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityItem(); - nms_EntityItem__init_1(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityItem__init_4() { - var var_0 = new nms_EntityItem(); - nms_EntityItem__init_(var_0); - return var_0; -} -function nms_EntityItem__init_2($this, $par1World, $par2, $par4, $par6) { - nms_Entity__init_0($this); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$age = 0; - $this.$health1 = 5; - $this.$hoverStart = jl_Math_randomImpl() * 3.141592653589793 * 2.0; - nms_Entity_setSize($this, 0.25, 0.25); - $this.$yOffset0 = $this.$height1 / 2.0; - nms_Entity_setPosition($this, $par2, $par4, $par6); - $this.$rotationYaw = jl_Math_randomImpl() * 360.0; - $this.$motionX = jl_Math_randomImpl() * 0.20000000298023224 - 0.10000000149011612; - $this.$motionY = 0.20000000298023224; - $this.$motionZ = jl_Math_randomImpl() * 0.20000000298023224 - 0.10000000149011612; -} -function nms_EntityItem__init_1($this, $par1World, $par2, $par4, $par6, $par8ItemStack) { - nms_EntityItem__init_2($this, $par1World, $par2, $par4, $par6); - nms_DataWatcher_updateObject($this.$dataWatcher, 10, $par8ItemStack); - nms_DataWatcher_setObjectWatched($this.$dataWatcher, 10); -} -function nms_EntityItem_canTriggerWalking($this) { - return 0; -} -function nms_EntityItem__init_($this) { - nms_Entity__init_0($this); - $this.$age = 0; - $this.$health1 = 5; - $this.$hoverStart = jl_Math_randomImpl() * 3.141592653589793 * 2.0; - nms_Entity_setSize($this, 0.25, 0.25); - $this.$yOffset0 = $this.$height1 / 2.0; -} -function nms_EntityItem_entityInit($this) { - var var$1, var$2, var$3; - var$1 = $this.$dataWatcher; - var$2 = new nms_WatchableObject; - var$3 = null; - var$2.$dataValueId = 10; - var$2.$watchedObject = var$3; - var$2.$objectType = 5; - var$2.$watched = 1; - ju_HashMap_putImpl(var$1.$watchedObjects, jl_Integer_valueOf(10), var$2); - var$1.$isBlank = 0; -} -function nms_EntityItem_onUpdate($this) { - var var$1, var$2, var$3, $var1, var$5, var$6, var$7, $var3, var$9, var$10, $var2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var2 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var3 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var1 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_Entity_onEntityUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$delayBeforeCanPickup > 0) - $this.$delayBeforeCanPickup = $this.$delayBeforeCanPickup - 1 | 0; - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$motionY = $this.$motionY - 0.03999999910593033; - $this.$noClip = nms_Entity_pushOutOfBlocks($this, $this.$posX, ($this.$boundingBox.$minY + $this.$boundingBox.$maxY) / 2.0, $this.$posZ); - var$1 = $this.$motionX; - var$2 = $this.$motionY; - var$3 = $this.$motionZ; - $ptr = 2; - case 2: - nms_Entity_moveEntity($this, var$1, var$2, var$3); - if ($rt_suspending()) { - break main; - } - $var1 = ($this.$prevPosX | 0) == ($this.$posX | 0) && ($this.$prevPosY | 0) == ($this.$posY | 0) && ($this.$prevPosZ | 0) == ($this.$posZ | 0) ? 0 : 1; - if (!(!$var1 && ($this.$ticksExisted % 25 | 0))) { - var$5 = $this.$worldObj; - var$1 = $this.$posX; - var$6 = var$1 | 0; - if (var$1 < var$6) - var$6 = var$6 - 1 | 0; - var$1 = $this.$posY; - var$7 = var$1 | 0; - if (var$1 < var$7) - var$7 = var$7 - 1 | 0; - var$1 = $this.$posZ; - $var3 = var$1 | 0; - if (var$1 < $var3) - $var3 = $var3 - 1 | 0; - $var1 = nms_World_getBlockId(var$5, var$6, var$7, $var3); - if (!$var1) { - nms_Material_$callClinit(); - var$9 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[$var1].$blockMaterial; - } - nms_Material_$callClinit(); - if (var$9 === nms_Material_lava) { - $this.$motionY = 0.20000000298023224; - $this.$motionX = (Math.random() - Math.random()) * 0.20000000298023224; - $this.$motionZ = (Math.random() - Math.random()) * 0.20000000298023224; - var$10 = 2.0 + Math.random() * 0.4000000059604645; - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(677), 0.4000000059604645, var$10); - } - if (!$this.$worldObj.$isRemote) - nms_EntityItem_searchForOtherItemsNearby($this); - } - $var2 = 0.9800000190734863; - if ($this.$onGround) { - $var2 = 0.5880000591278076; - var$5 = $this.$worldObj; - var$1 = $this.$posX; - var$6 = var$1 | 0; - if (var$1 < var$6) - var$6 = var$6 - 1 | 0; - var$1 = $this.$boundingBox.$minY; - $var3 = var$1 | 0; - if (var$1 < $var3) - $var3 = $var3 - 1 | 0; - $var1 = $var3 - 1 | 0; - var$1 = $this.$posZ; - var$7 = var$1 | 0; - if (var$1 < var$7) - var$7 = var$7 - 1 | 0; - $var3 = nms_World_getBlockId(var$5, var$6, $var1, var$7); - if ($var3 > 0) { - nms_Block_$callClinit(); - $var2 = nms_Block_blocksList.data[$var3].$slipperiness * 0.9800000190734863; - } - } - var$1 = $this.$motionX; - var$2 = $var2; - $this.$motionX = var$1 * var$2; - $this.$motionY = $this.$motionY * 0.9800000190734863; - $this.$motionZ = $this.$motionZ * var$2; - if ($this.$onGround) - $this.$motionY = $this.$motionY * (-0.5); - $this.$age = $this.$age + 1 | 0; - if (!$this.$worldObj.$isRemote && $this.$age >= 6000) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $var1, var$5, var$6, var$7, $var3, var$9, var$10, $var2, $ptr); -} -function nms_EntityItem_searchForOtherItemsNearby($this) { - var $var1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $var2; - $var1 = $this.$worldObj; - var$2 = $this.$boundingBox; - var$3 = var$2.$minX - 0.5; - var$4 = var$2.$minY - 0.0; - var$5 = var$2.$minZ - 0.5; - var$6 = var$2.$maxX + 0.5; - var$7 = var$2.$maxY + 0.0; - var$8 = var$2.$maxZ + 0.5; - var$2 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$2.$initialized) { - var$9 = new nms_AABBPool; - var$10 = new ju_ArrayList; - ju_AbstractList__init_0(var$10); - var$10.$array1 = $rt_createArray(jl_Object, 10); - var$9.$listAABB = var$10; - var$9.$nextPoolIndex = 0; - var$9.$maxPoolIndex = 0; - var$9.$numCleans = 0; - var$9.$maxNumCleans = 300; - var$9.$numEntriesToRemove = 2000; - var$2.$value7 = var$9; - var$2.$initialized = 1; - } - $var2 = nms_World_selectEntitiesWithinAABB($var1, $rt_cls(nms_EntityItem), nms_AABBPool_getAABB(var$2.$value7, var$3, var$4, var$5, var$6, var$7, var$8), null); - $var1 = new ju_AbstractList$1; - $var1.$this$0 = $var2; - $var1.$modCount = $var1.$this$0.$modCount0; - $var1.$size1 = $var1.$this$0.$size2(); - $var1.$removeIndex = (-1); - while ($var1.$index >= $var1.$size1 ? 0 : 1) { - nms_EntityItem_combineItems($this, ju_AbstractList$1_next($var1)); - } -} -function nms_EntityItem_combineItems($this, $par1EntityItem) { - var var$2, $var2, $var3, var$5, var$6, var$7, var$8; - if ($par1EntityItem === $this) - return 0; - var$2 = $par1EntityItem.$isDead ? 0 : 1; - if (var$2 && ($this.$isDead ? 0 : 1)) { - $var2 = nms_EntityItem_getEntityItem($this); - $var3 = nms_EntityItem_getEntityItem($par1EntityItem); - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var3.$itemID0] !== nms_Item_itemsList.data[$var2.$itemID0]) - return 0; - if (($var3.$stackTagCompound === null ? 0 : 1) ^ ($var2.$stackTagCompound === null ? 0 : 1)) - return 0; - if ($var3.$stackTagCompound === null ? 0 : 1) { - var$5 = $var3.$stackTagCompound; - var$6 = $var2.$stackTagCompound; - if (!nms_NBTBase_equals(var$5, var$6)) - var$2 = 0; - else { - var$6 = var$6; - var$5 = var$5.$tagMap; - var$7 = new ju_HashMap$HashMapEntrySet; - var$7.$associatedMap = var$5; - var$5 = var$6.$tagMap; - var$6 = new ju_HashMap$HashMapEntrySet; - var$6.$associatedMap = var$5; - var$2 = ju_AbstractSet_equals(var$7, var$6); - } - if (!var$2) - return 0; - } - if (nms_Item_itemsList.data[$var3.$itemID0].$hasSubtypes && $var3.$itemDamage != $var2.$itemDamage) - return 0; - if ($var3.$stackSize < $var2.$stackSize) - return nms_EntityItem_combineItems($par1EntityItem, $this); - if (($var3.$stackSize + $var2.$stackSize | 0) > nms_Item_itemsList.data[$var3.$itemID0].$maxStackSize) - return 0; - $var3.$stackSize = $var3.$stackSize + $var2.$stackSize | 0; - var$2 = $par1EntityItem.$delayBeforeCanPickup; - var$8 = $this.$delayBeforeCanPickup; - if (var$2 > var$8) - var$8 = var$2; - $par1EntityItem.$delayBeforeCanPickup = var$8; - var$2 = $par1EntityItem.$age; - var$8 = $this.$age; - if (var$2 < var$8) - var$8 = var$2; - $par1EntityItem.$age = var$8; - nms_DataWatcher_updateObject($par1EntityItem.$dataWatcher, 10, $var3); - nms_DataWatcher_setObjectWatched($par1EntityItem.$dataWatcher, 10); - $this.$isDead = 1; - return 1; - } - return 0; -} -function nms_EntityItem_handleWaterMovement($this) { - var var$1, var$2; - var$1 = $this.$worldObj; - var$2 = $this.$boundingBox; - nms_Material_$callClinit(); - return nms_World_handleMaterialAcceleration(var$1, var$2, nms_Material_water, $this); -} -function nms_EntityItem_dealFireDamage($this, $par1) { - nms_EntityItem_attackEntityFrom($this, nms_DamageSource_inFire, $par1); -} -function nms_EntityItem_attackEntityFrom($this, $par1DamageSource, $par2) { - var var$3; - if ($this.$invulnerable) - return 0; - if (nms_EntityItem_getEntityItem($this) !== null) { - var$3 = nms_EntityItem_getEntityItem($this).$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_netherStar.$itemID && $par1DamageSource.$explosion) - return 0; - } - $this.$velocityChanged = 1; - $this.$health1 = $this.$health1 - $par2 | 0; - if ($this.$health1 <= 0) - $this.$isDead = 1; - return 0; -} -function nms_EntityItem_onCollideWithPlayer($this, $par1EntityPlayer) { - var $var2, var$3, var$4, var$5; - if (!$this.$worldObj.$isRemote) { - $var2 = nms_EntityItem_getEntityItem($this); - if (!$this.$delayBeforeCanPickup && nms_InventoryPlayer_addItemStackToInventory($par1EntityPlayer.$inventory, $var2)) { - var$3 = $var2.$itemID0; - nms_Block_$callClinit(); - if (var$3 == nms_Block_wood.$blockID) { - nms_AchievementList_$callClinit(); - var$4 = nms_AchievementList_mineWood; - if (var$4 !== null && var$4.$isIndependent) - nms_EntityPlayerSP_addStat($par1EntityPlayer, var$4, 1); - } - var$3 = $var2.$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_leather.$itemID) { - nms_AchievementList_$callClinit(); - var$4 = nms_AchievementList_killCow; - if (var$4 !== null && var$4.$isIndependent) - nms_EntityPlayerSP_addStat($par1EntityPlayer, var$4, 1); - } - if ($var2.$itemID0 == nms_Item_diamond.$itemID) { - nms_AchievementList_$callClinit(); - var$4 = nms_AchievementList_diamonds; - if (var$4 !== null && var$4.$isIndependent) - nms_EntityPlayerSP_addStat($par1EntityPlayer, var$4, 1); - } - if ($var2.$itemID0 == nms_Item_blazeRod.$itemID) { - nms_AchievementList_$callClinit(); - var$4 = nms_AchievementList_blazeRod; - if (var$4 !== null && var$4.$isIndependent) - nms_EntityPlayerSP_addStat($par1EntityPlayer, var$4, 1); - } - var$5 = ((Math.random() - Math.random()) * 0.699999988079071 + 1.0) * 2.0; - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1342), 0.20000000298023224, var$5); - nms_EffectRenderer_addEffect($par1EntityPlayer.$mc3.$effectRenderer, nms_EntityPickupFX__init_($par1EntityPlayer.$mc3.$theWorld, $this, $par1EntityPlayer, (-0.5))); - if ($var2.$stackSize <= 0) - $this.$isDead = 1; - } - } -} -function nms_EntityItem_getEntityName($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(1348)); - var$2 = nms_EntityItem_getEntityItem($this); - nms_Item_$callClinit(); - var$2 = nms_Item_itemsList.data[var$2.$itemID0].$getUnlocalizedName(var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - var$2 = jl_String__init_0(var$1.$buffer, 0, var$1.$length); - return nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$2); -} -function nms_EntityItem_canAttackWithItem($this) { - return 0; -} -function nms_EntityItem_travelToDimension($this, $par1) { - if (!$this.$worldObj.$isRemote) - nms_EntityItem_searchForOtherItemsNearby($this); -} -function nms_EntityItem_getEntityItem($this) { - var $var1, var$2, var$3, var$4, var$5, var$6; - $var1 = nms_DataWatcher_getWatchableObjectItemStack($this.$dataWatcher, 10); - if ($var1 !== null) - return $var1; - if ($this.$worldObj !== null) { - if (jl_System_errCache === null) { - var$2 = new ji_PrintStream; - var$2.$out = new jl_ConsoleOutputStreamStderr; - $var1 = new jl_StringBuilder; - $var1.$buffer = $rt_createCharArray(16); - var$2.$sb = $var1; - var$2.$buffer0 = $rt_createCharArray(32); - var$2.$autoFlush = 0; - $var1 = new jnci_UTF8Charset; - jnc_Charset__init_($var1, $rt_s(2), $rt_createArray(jl_String, 0)); - var$2.$charset = $var1; - jl_System_errCache = var$2; - } - var$3 = jl_System_errCache; - $var1 = new jl_StringBuilder; - $var1.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var1, $var1.$length, $rt_s(1517)); - var$4 = $this.$entityId; - jl_AbstractStringBuilder_insert0($var1, $var1.$length, var$4, 10); - jl_AbstractStringBuilder_insert($var1, $var1.$length, $rt_s(1518)); - var$2 = jl_String__init_0($var1.$buffer, 0, $var1.$length); - $var1 = var$3.$sb; - jl_AbstractStringBuilder_insert($var1, $var1.$length, var$2); - var$5 = $var1.$length; - jl_AbstractStringBuilder_insertSpace($var1, var$5, var$5 + 1 | 0); - $var1.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$3); - } - var$2 = new nms_ItemStack; - nms_Block_$callClinit(); - var$6 = nms_Block_stone.$blockID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$6; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - return var$2; -} -function nms_EntityItem_setEntityItemStack($this, $par1ItemStack) { - nms_DataWatcher_updateObject($this.$dataWatcher, 10, $par1ItemStack); - nms_DataWatcher_setObjectWatched($this.$dataWatcher, 10); -} -function nms_RenderItem() { - var a = this; nms_Render.call(a); - a.$itemRenderBlocks = null; - a.$random1 = null; - a.$renderWithColor = 0; - a.$zLevel0 = 0.0; -} -var nms_RenderItem_renderInFrame = 0; -var nms_RenderItem_terrain = null; -var nms_RenderItem_items = null; -var nms_RenderItem_glint = null; -function nms_RenderItem__init_0() { - var var_0 = new nms_RenderItem(); - nms_RenderItem__init_(var_0); - return var_0; -} -function nms_RenderItem__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$itemRenderBlocks = nms_RenderBlocks__init_2(); - $this.$random1 = new ju_Random; - $this.$renderWithColor = 1; - $this.$zLevel0 = 0.0; - $this.$shadowSize = 0.15000000596046448; - $this.$shadowOpaque = 0.75; -} -function nms_RenderItem_doRenderItem($this, $par1EntityItem, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, $var12, $var13, $var22, $var24, $var25, $var17, $var18, $var14, $var15, $var19, $var20, $var21, $var23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var23 = $thread.pop();$var21 = $thread.pop();$var20 = $thread.pop();$var19 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var25 = $thread.pop();$var24 = $thread.pop();$var22 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityItem = $thread.pop();$this - = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - ju_Random_setSeed($this.$random1, Long_fromInt(187)); - $var10 = nms_EntityItem_getEntityItem($par1EntityItem); - if (nms_ItemStack_getItem($var10) !== null) { - nleg_EaglerAdapterGL30_glPushMatrix(); - $var11 = nms_MathHelper_sin(($par1EntityItem.$age + $par9) / 10.0 + $par1EntityItem.$hoverStart) * 0.10000000149011612 + 0.10000000149011612; - $var12 = (($par1EntityItem.$age + $par9) / 20.0 + $par1EntityItem.$hoverStart) * 57.2957763671875; - $var13 = 1; - if (nms_EntityItem_getEntityItem($par1EntityItem).$stackSize > 1) - $var13 = 2; - if (nms_EntityItem_getEntityItem($par1EntityItem).$stackSize > 5) - $var13 = 3; - if (nms_EntityItem_getEntityItem($par1EntityItem).$stackSize > 20) - $var13 = 4; - if (nms_EntityItem_getEntityItem($par1EntityItem).$stackSize > 40) - $var13 = 5; - a: { - nleg_EaglerAdapterGL30_glTranslatef($par2, $par4 + $var11, $par6); - nleg_EaglerAdapterGL30_glEnable(41); - if (!nms_ItemStack_getItemSpriteNumber($var10)) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var10.$itemID0] !== null && nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var10.$itemID0].$getRenderType())) { - $var22 = nms_Block_blocksList.data[$var10.$itemID0]; - nleg_EaglerAdapterGL30_glRotatef($var12, 0.0, 1.0, 0.0); - if (nms_RenderItem_renderInFrame) { - nleg_EaglerAdapterGL30_glScalef(1.25, 1.25, 1.25); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.05000000074505806, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-90.0), 0.0, 1.0, 0.0); - } - nle_TextureLocation_bindTexture(nms_RenderItem_terrain); - $var24 = 0.25; - $var25 = $var22.$getRenderType(); - if (!($var25 != 1 && $var25 != 19 && $var25 != 12 && $var25 != 2)) - $var24 = 0.5; - nleg_EaglerAdapterGL30_glScalef($var24, $var24, $var24); - $var17 = 0; - if ($var17 < $var13) { - nleg_EaglerAdapterGL30_glPushMatrix(); - if ($var17 > 0) - nleg_EaglerAdapterGL30_glTranslatef((ju_Random_nextFloat($this.$random1) * 2.0 - 1.0) * 0.20000000298023224 / $var24, (ju_Random_nextFloat($this.$random1) * 2.0 - 1.0) * 0.20000000298023224 / $var24, (ju_Random_nextFloat($this.$random1) * 2.0 - 1.0) * 0.20000000298023224 / $var24); - $var18 = 1.0; - $par1EntityItem = $this.$itemRenderBlocks; - $var25 = nms_ItemStack_getItemDamage($var10); - $ptr = 1; - continue main; - } - break a; - } - } - if (nms_ItemStack_getItem($var10).$requiresMultipleRenderPasses()) { - if (!nms_RenderItem_renderInFrame) - nleg_EaglerAdapterGL30_glScalef(0.5, 0.5, 0.5); - else { - nleg_EaglerAdapterGL30_glScalef(0.5128204822540283, 0.5128204822540283, 0.5128204822540283); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.05000000074505806), 0.0); - } - nle_TextureLocation_bindTexture(nms_RenderItem_items); - $var14 = 0; - while ($var14 <= 1) { - ju_Random_setSeed($this.$random1, Long_fromInt(187)); - $var15 = nms_ItemStack_getItem($var10).$getIconFromDamageForRenderPass(nms_ItemStack_getItemDamage($var10), $var14); - if (!$this.$renderWithColor) - nms_RenderItem_renderDroppedItem($this, $par1EntityItem, $var15, $var13, $par9, 1.0, 1.0, 1.0); - else { - $var17 = nms_Item_itemsList.data[$var10.$itemID0].$getColorFromItemStack($var10, $var14); - $var18 = ($var17 >> 16 & 255) / 255.0; - $var19 = ($var17 >> 8 & 255) / 255.0; - $var20 = ($var17 & 255) / 255.0; - $par8 = $var18 * 1.0; - $var12 = $var19 * 1.0; - $var18 = $var20 * 1.0; - nleg_EaglerAdapterGL30_glColor4f($par8, $var12, $var18, 1.0); - nms_RenderItem_renderDroppedItem($this, $par1EntityItem, $var15, $var13, $par9, $par8, $var12, $var18); - } - $var14 = $var14 + 1 | 0; - } - } else { - if (!nms_RenderItem_renderInFrame) - nleg_EaglerAdapterGL30_glScalef(0.5, 0.5, 0.5); - else { - nleg_EaglerAdapterGL30_glScalef(0.5128204822540283, 0.5128204822540283, 0.5128204822540283); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.05000000074505806), 0.0); - } - $var21 = nms_ItemStack_getIconIndex($var10); - if (nms_ItemStack_getItemSpriteNumber($var10)) - nle_TextureLocation_bindTexture(nms_RenderItem_items); - else - nle_TextureLocation_bindTexture(nms_RenderItem_terrain); - if (!$this.$renderWithColor) - nms_RenderItem_renderDroppedItem($this, $par1EntityItem, $var21, $var13, $par9, 1.0, 1.0, 1.0); - else { - $var23 = nms_Item_itemsList.data[$var10.$itemID0].$getColorFromItemStack($var10, 0); - nms_RenderItem_renderDroppedItem($this, $par1EntityItem, $var21, $var13, $par9, ($var23 >> 16 & 255) / 255.0 * 1.0, ($var23 >> 8 & 255) / 255.0 * 1.0, ($var23 & 255) / 255.0 * 1.0); - } - } - } - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); - } - return; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1EntityItem, $var22, $var25, $var18); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - $var17 = $var17 + 1 | 0; - if ($var17 >= $var13) { - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - } - nleg_EaglerAdapterGL30_glPushMatrix(); - if ($var17 > 0) - nleg_EaglerAdapterGL30_glTranslatef((ju_Random_nextFloat($this.$random1) * 2.0 - 1.0) * 0.20000000298023224 / $var24, (ju_Random_nextFloat($this.$random1) * 2.0 - 1.0) * 0.20000000298023224 / $var24, (ju_Random_nextFloat($this.$random1) * 2.0 - 1.0) * 0.20000000298023224 / $var24); - $var18 = 1.0; - $par1EntityItem = $this.$itemRenderBlocks; - $var25 = nms_ItemStack_getItemDamage($var10); - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityItem, $par2, $par4, $par6, $par8, $par9, $var10, $var11, $var12, $var13, $var22, $var24, $var25, $var17, $var18, $var14, $var15, $var19, $var20, $var21, $var23, $ptr); -} -function nms_RenderItem_renderDroppedItem($this, $par1EntityItem, $par2Icon, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var18, $var9, $var10, $var11, $var12, $var25, var$15, var$16, var$17, var$18, $var19, $var24, $var27, $var20; - nlea_Tessellator_$callClinit(); - $var8 = nlea_Tessellator_instance; - if ($par2Icon === null) - a: { - b: { - $par2Icon = $this.$renderManager.$renderEngine1; - $var18 = nms_EntityItem_getEntityItem($par1EntityItem); - nms_Item_$callClinit(); - switch (nms_Item_itemsList.data[$var18.$itemID0].$getSpriteNumber()) { - case 0: - break; - case 1: - break b; - default: - break b; - } - $par2Icon = $par2Icon.$textureMapBlocks.$missingImage; - break a; - } - $par2Icon = $par2Icon.$textureMapItems.$missingTextureStiched; - } - c: { - $var9 = $par2Icon.$getMinU(); - $var10 = $par2Icon.$getMaxU(); - $var11 = $par2Icon.$getMinV(); - $var12 = $par2Icon.$getMaxV(); - if (!$this.$renderManager.$options2.$fancyGraphics) { - $var25 = 0; - var$15 = $var9; - var$16 = $var12; - var$17 = $var10; - var$18 = $var11; - while (true) { - if ($var25 >= $par3) - break c; - nleg_EaglerAdapterGL30_glPushMatrix(); - if ($var25 > 0) - nleg_EaglerAdapterGL30_glTranslatef((ju_Random_nextFloat($this.$random1) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random1) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random1) * 2.0 - 1.0) * 0.30000001192092896); - if (!nms_RenderItem_renderInFrame) - nleg_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$playerViewY, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glColor4f($par5, $par6, $par7, 1.0); - nlea_Tessellator_startDrawingQuads($var8); - nlea_Tessellator_setNormal($var8, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var8, (-0.5), (-0.25), 0.0, var$15, var$16); - nlea_Tessellator_addVertexWithUV($var8, 0.5, (-0.25), 0.0, var$17, var$16); - nlea_Tessellator_addVertexWithUV($var8, 0.5, 0.75, 0.0, var$17, var$18); - nlea_Tessellator_addVertexWithUV($var8, (-0.5), 0.75, 0.0, var$15, var$18); - nlea_Tessellator_draw($var8); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var25 = $var25 + 1 | 0; - } - } - nleg_EaglerAdapterGL30_glPushMatrix(); - if (nms_RenderItem_renderInFrame) - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 1.0, 0.0); - else - nleg_EaglerAdapterGL30_glRotatef((($par1EntityItem.$age + $par4) / 20.0 + $par1EntityItem.$hoverStart) * 57.2957763671875, 0.0, 1.0, 0.0); - $var18 = nms_EntityItem_getEntityItem($par1EntityItem); - $var19 = $var18.$stackSize; - $var24 = $var19 < 2 ? 1 : $var19 < 16 ? 2 : $var19 >= 32 ? 4 : 3; - $var27 = -(0.08437500149011612 * $var24 / 2.0); - $par1EntityItem = nleg_EaglerAdapterGL30_deevis; - $par1EntityItem.$x = (-0.5); - $par1EntityItem.$y = (-0.25); - $par1EntityItem.$z = $var27; - $par1EntityItem = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate1($par1EntityItem, nleg_EaglerAdapterGL30_deevis, $par1EntityItem); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - $var20 = 0; - while ($var20 < $var24) { - d: { - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, 0.08437500149011612); - if (!nms_ItemStack_getItemSpriteNumber($var18)) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var18.$itemID0] !== null) { - nle_TextureLocation_bindTexture(nms_RenderItem_terrain); - break d; - } - } - nle_TextureLocation_bindTexture(nms_RenderItem_items); - } - nleg_EaglerAdapterGL30_glColor4f($par5, $par6, $par7, 1.0); - nms_ItemRenderer_renderItemIn2D($var8, $var10, $var11, $var9, $var12, $par2Icon.$getSheetWidth(), $par2Icon.$getSheetHeight(), 0.0625); - if ($var18 !== null && nms_ItemStack_hasEffect($var18)) { - nleg_EaglerAdapterGL30_glDepthFunc(52); - nleg_EaglerAdapterGL30_glDisable(13); - nle_TextureLocation_bindTexture(nms_RenderItem_glint); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(53, 1); - nleg_EaglerAdapterGL30_glColor4f(0.3799999952316284, 0.1899999976158142, 0.6079999804496765, 1.0); - nleg_EaglerAdapterGL30_glMatrixMode(54); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glScalef(0.125, 0.125, 0.125); - nleg_EaglerAdapterGL30_glTranslatef(Long_toNumber(Long_rem(nmc_Minecraft_getSystemTime(), Long_fromInt(3000))) / 3000.0 * 8.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef((-50.0), 0.0, 0.0, 1.0); - nms_ItemRenderer_renderItemIn2D($var8, 0.0, 0.0, 1.0, 1.0, 255, 255, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glScalef(0.125, 0.125, 0.125); - nleg_EaglerAdapterGL30_glTranslatef( -(Long_toNumber(Long_rem(nmc_Minecraft_getSystemTime(), Long_fromInt(4873))) / 4873.0 * 8.0), 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(10.0, 0.0, 0.0, 1.0); - nms_ItemRenderer_renderItemIn2D($var8, 0.0, 0.0, 1.0, 1.0, 255, 255, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glMatrixMode(10); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glDepthFunc(5); - } - $var20 = $var20 + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_RenderItem_renderItemIntoGUI($this, $par1FontRenderer, $par2RenderEngine, $par3ItemStack, $par4, $par5) { - var $var6, $var7, $var10, $var15, $var12, $var13, $var14, $var17, $var18, $var9, $var11, $var9_0, $var16, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var16 = $thread.pop();$var9_0 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var15 = $thread.pop();$var10 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3ItemStack = $thread.pop();$par2RenderEngine = $thread.pop();$par1FontRenderer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = $par3ItemStack.$itemID0; - $var7 = $par3ItemStack.$itemDamage; - nms_Item_$callClinit(); - $var10 = nms_Item_itemsList.data[$par3ItemStack.$itemID0].$getIconFromDamage($par3ItemStack.$itemDamage); - nleg_EaglerAdapterGL30_glEnable(46); - nleg_EaglerAdapterGL30_glEnable(41); - if (!nms_Item_itemsList.data[$par3ItemStack.$itemID0].$getSpriteNumber()) { - nms_Block_$callClinit(); - if (nms_RenderBlocks_renderItemIn3d(nms_Block_blocksList.data[$var6].$getRenderType())) { - nle_TextureLocation_bindTexture(nms_RenderItem_terrain); - $var15 = nms_Block_blocksList.data[$var6]; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var12 = $par4 - 2 | 0; - $var13 = $par5 + 3 | 0; - $var14 = (-3.0) + $this.$zLevel0; - $par1FontRenderer = nleg_EaglerAdapterGL30_deevis; - $par1FontRenderer.$x = $var12; - $par1FontRenderer.$y = $var13; - $par1FontRenderer.$z = $var14; - $par1FontRenderer = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1FontRenderer, $par1FontRenderer); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $par2RenderEngine = new ji_PrintStream; - $par2RenderEngine.$out = new jl_ConsoleOutputStreamStderr; - $par1FontRenderer = new jl_StringBuilder; - $par1FontRenderer.$buffer = $rt_createCharArray(16); - $par2RenderEngine.$sb = $par1FontRenderer; - $par2RenderEngine.$buffer0 = $rt_createCharArray(32); - $par2RenderEngine.$autoFlush = 0; - $par1FontRenderer = new jnci_UTF8Charset; - jnc_Charset__init_($par1FontRenderer, $rt_s(2), $rt_createArray(jl_String, 0)); - $par2RenderEngine.$charset = $par1FontRenderer; - jl_System_errCache = $par2RenderEngine; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - nleg_EaglerAdapterGL30_glScalef(10.0, 10.0, 10.0); - nleg_EaglerAdapterGL30_glTranslatef(1.0, 0.5, 1.0); - nleg_EaglerAdapterGL30_glScalef(1.0, 1.0, (-1.0)); - nleg_EaglerAdapterGL30_glRotatef(210.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(45.0, 0.0, 1.0, 0.0); - $var17 = nms_Item_itemsList.data[$var6].$getColorFromItemStack($par3ItemStack, 0); - $var18 = ($var17 >> 16 & 255) / 255.0; - $var12 = ($var17 >> 8 & 255) / 255.0; - $var13 = ($var17 & 255) / 255.0; - if ($this.$renderWithColor) - nleg_EaglerAdapterGL30_glColor4f($var18, $var12, $var13, 1.0); - nleg_EaglerAdapterGL30_glRotatef((-90.0), 0.0, 1.0, 0.0); - $this.$itemRenderBlocks.$useInventoryTint = $this.$renderWithColor; - $par1FontRenderer = $this.$itemRenderBlocks; - $var12 = 1.0; - $ptr = 1; - continue main; - } - } - if (nms_Item_itemsList.data[$var6].$requiresMultipleRenderPasses()) { - nleg_EaglerAdapterGL30_glDisable(13); - nle_TextureLocation_bindTexture(nms_RenderItem_items); - $var9 = 0; - while ($var9 <= 1) { - $var10 = nms_Item_itemsList.data[$var6].$getIconFromDamageForRenderPass($var7, $var9); - $var11 = nms_Item_itemsList.data[$var6].$getColorFromItemStack($par3ItemStack, $var9); - $var12 = ($var11 >> 16 & 255) / 255.0; - $var13 = ($var11 >> 8 & 255) / 255.0; - $var14 = ($var11 & 255) / 255.0; - if ($this.$renderWithColor) - nleg_EaglerAdapterGL30_glColor4f($var12, $var13, $var14, 1.0); - nms_RenderItem_renderIcon($this, $par4, $par5, $var10, 16, 16); - $var9 = $var9 + 1 | 0; - } - nleg_EaglerAdapterGL30_glEnable(13); - } else { - nleg_EaglerAdapterGL30_glDisable(13); - if (nms_ItemStack_getItemSpriteNumber($par3ItemStack)) - nle_TextureLocation_bindTexture(nms_RenderItem_items); - else - nle_TextureLocation_bindTexture(nms_RenderItem_terrain); - if ($var10 === null) - $var10 = nms_RenderEngine_getMissingIcon($par2RenderEngine, nms_ItemStack_getItemSpriteNumber($par3ItemStack)); - $var9_0 = nms_Item_itemsList.data[$var6].$getColorFromItemStack($par3ItemStack, 0); - $var16 = ($var9_0 >> 16 & 255) / 255.0; - $var18 = ($var9_0 >> 8 & 255) / 255.0; - $var12 = ($var9_0 & 255) / 255.0; - if ($this.$renderWithColor) - nleg_EaglerAdapterGL30_glColor4f($var16, $var18, $var12, 1.0); - nms_RenderItem_renderIcon($this, $par4, $par5, $var10, 16, 16); - nleg_EaglerAdapterGL30_glEnable(13); - } - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - return; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1FontRenderer, $var15, $var7, $var12); - if ($rt_suspending()) { - break main; - } - $this.$itemRenderBlocks.$useInventoryTint = 1; - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1FontRenderer, $par2RenderEngine, $par3ItemStack, $par4, $par5, $var6, $var7, $var10, $var15, $var12, $var13, $var14, $var17, $var18, $var9, $var11, $var9_0, $var16, $ptr); -} -function nms_RenderItem_renderItemAndEffectIntoGUI($this, $par1FontRenderer, $par2RenderEngine, $par3ItemStack, $par4, $par5) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3ItemStack = $thread.pop();$par2RenderEngine = $thread.pop();$par1FontRenderer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par3ItemStack === null) - return; - $ptr = 1; - case 1: - nms_RenderItem_renderItemIntoGUI($this, $par1FontRenderer, $par2RenderEngine, $par3ItemStack, $par4, $par5); - if ($rt_suspending()) { - break main; - } - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par3ItemStack.$itemID0].$hasEffect0($par3ItemStack)) { - a: { - nleg_EaglerAdapterGL30_$callClinit(); - var$6 = 518; - switch (7) { - case 5: - var$6 = 518; - break a; - case 7: - var$6 = 513; - break a; - case 52: - var$6 = 514; - break a; - default: - } - } - b: { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthFunc(var$6); - nleg_EaglerAdapterGL30_glDisable(13); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nle_TextureLocation_bindTexture(nms_RenderItem_glint); - $this.$zLevel0 = $this.$zLevel0 - 50.0; - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(77, 77); - nleg_EaglerAdapterGL30_colorR = 0.5; - nleg_EaglerAdapterGL30_colorG = 0.25; - nleg_EaglerAdapterGL30_colorB = 0.800000011920929; - nleg_EaglerAdapterGL30_colorA = 1.0; - nms_RenderItem_renderGlint($this, $rt_imul($par4, 431278612) + $rt_imul($par5, 32178161) | 0, $par4 - 2 | 0, $par5 - 2 | 0, 20, 20); - nleg_EaglerAdapterGL30_glDisable(16); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - $this.$zLevel0 = $this.$zLevel0 + 50.0; - nleg_EaglerAdapterGL30_glEnable(13); - $par5 = 518; - switch (5) { - case 5: - $par5 = 518; - break b; - case 7: - $par5 = 513; - break b; - case 52: - $par5 = 514; - break b; - default: - } - } - nlea_EaglerAdapterImpl2_webgl.depthFunc($par5); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1FontRenderer, $par2RenderEngine, $par3ItemStack, $par4, $par5, var$6, $ptr); -} -function nms_RenderItem_renderGlint($this, $par1, $par2, $par3, $par4, $par5) { - var $var6, var$7, var$8, var$9, var$10, var$11, $var8, var$13, var$14, $var9, $var11, $var12, var$18, var$19, var$20; - $var6 = 0; - var$7 = $par2 + 0 | 0; - var$8 = $par3 + $par5 | 0; - var$9 = $par5; - var$10 = (0.0 + var$9) * 0.00390625; - var$11 = $par2 + $par4 | 0; - $var8 = $par4; - var$13 = $par3 + 0 | 0; - while ($var6 < 2) { - if (!$var6) - nleg_EaglerAdapterGL30_glBlendFunc(53, 1); - $par3 = $rt_compare($var6, 1); - if (!$par3) - nleg_EaglerAdapterGL30_glBlendFunc(53, 1); - var$14 = jl_System_currentTimeMillis(); - $par2 = $var6 * 1873 | 0; - $var9 = Long_toNumber(Long_rem(var$14, Long_fromInt(3000 + $par2 | 0))) / (3000.0 + $par2) * 256.0; - nlea_Tessellator_$callClinit(); - $var11 = nlea_Tessellator_instance; - $var12 = 4.0; - if (!$par3) - $var12 = (-1.0); - nlea_Tessellator_startDrawing($var11, 98); - var$18 = $this.$zLevel0; - $var12 = var$9 * $var12; - var$19 = ($var9 + $var12) * 0.00390625; - $var11.$hasTexture = 1; - $var11.$textureU = var$19; - $var11.$textureV = var$10; - nlea_Tessellator_addVertex($var11, var$7, var$8, var$18); - var$18 = $this.$zLevel0; - var$20 = $var9 + $var8; - var$19 = (var$20 + $var12) * 0.00390625; - $var11.$hasTexture = 1; - $var11.$textureU = var$19; - $var11.$textureV = var$10; - nlea_Tessellator_addVertex($var11, var$11, var$8, var$18); - var$18 = $this.$zLevel0; - var$19 = var$20 * 0.00390625; - $var11.$hasTexture = 1; - $var11.$textureU = var$19; - $var11.$textureV = 0.0; - nlea_Tessellator_addVertex($var11, var$11, var$13, var$18); - var$19 = $this.$zLevel0; - var$18 = ($var9 + 0.0) * 0.00390625; - $var11.$hasTexture = 1; - $var11.$textureU = var$18; - $var11.$textureV = 0.0; - nlea_Tessellator_addVertex($var11, var$7, var$13, var$19); - nlea_Tessellator_draw($var11); - nleg_EaglerAdapterGL30_glBlendFunc(53, 45); - $var6 = $var6 + 1 | 0; - } -} -function nms_RenderItem_renderItemOverlayIntoGUI0($this, $par1FontRenderer, $par2RenderEngine, $par3ItemStack, $par4, $par5) { - nms_RenderItem_renderItemOverlayIntoGUI($this, $par1FontRenderer, $par2RenderEngine, $par3ItemStack, $par4, $par5, null); -} -function nms_RenderItem_renderItemOverlayIntoGUI($this, $par1FontRenderer, $par2RenderEngine, $par3ItemStack, $par4, $par5, $var7) { - var $var12, var$8, var$9, var$10, $var8, $var9, $var11, $var10, var$15; - if ($par3ItemStack !== null) { - if (!($par3ItemStack.$stackSize <= 1 && $var7 === null)) { - if ($var7 === null) { - $var12 = $par3ItemStack.$stackSize; - $par2RenderEngine = new jl_StringBuilder; - $par2RenderEngine.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert0($par2RenderEngine, $par2RenderEngine.$length, $var12, 10); - $var7 = jl_String__init_0($par2RenderEngine.$buffer, 0, $par2RenderEngine.$length); - } - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(4); - nms_FontRenderer_drawString($par1FontRenderer, $var7, (($par4 + 19 | 0) - 2 | 0) - nms_FontRenderer_getStringWidth($par1FontRenderer, $var7) | 0, ($par5 + 6 | 0) + 3 | 0, 16777215, 1); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(4); - } - if (nms_ItemStack_isItemDamaged($par3ItemStack)) { - var$8 = $par3ItemStack.$itemDamage * 13.0; - nms_Item_$callClinit(); - var$9 = 13.0 - var$8 / nms_Item_itemsList.data[$par3ItemStack.$itemID0].$maxDamage; - $var12 = $rt_compare(var$9, 0.0); - $var12 = Long_fromNumber(var$9 + ($var12 > 0 ? 1.0 : $var12 >= 0 ? var$9 : (-1.0)) * 0.5).lo; - var$10 = 255.0 - $par3ItemStack.$itemDamage * 255.0 / nms_Item_itemsList.data[$par3ItemStack.$itemID0].$maxDamage; - $var8 = $rt_compare(var$10, 0.0); - $var8 = Long_fromNumber(var$10 + ($var8 > 0 ? 1.0 : $var8 >= 0 ? var$10 : (-1.0)) * 0.5).lo; - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(4); - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_$callClinit(); - $var9 = nlea_Tessellator_instance; - $var11 = 255 - $var8 | 0; - $var10 = $var11 << 16 | $var8 << 8; - $var11 = ($var11 / 4 | 0) << 16 | 16128; - $par4 = $par4 + 2 | 0; - var$15 = $par5 + 13 | 0; - nms_RenderItem_renderQuad($this, $var9, $par4, var$15, 13, 2, 0); - nms_RenderItem_renderQuad($this, $var9, $par4, var$15, 12, 1, $var11); - nms_RenderItem_renderQuad($this, $var9, $par4, var$15, $var12, 1, $var10); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(4); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - } - } -} -function nms_RenderItem_renderQuad($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6) { - var var$7, var$8, var$9; - nlea_Tessellator_startDrawing($par1Tessellator, 98); - nlea_Tessellator_setColorRGBA($par1Tessellator, $par6 >> 16 & 255, $par6 >> 8 & 255, $par6 & 255, 255); - var$7 = $par2 + 0 | 0; - var$8 = $par3 + 0 | 0; - nlea_Tessellator_addVertex($par1Tessellator, var$7, var$8, 0.0); - var$9 = $par3 + $par5 | 0; - nlea_Tessellator_addVertex($par1Tessellator, var$7, var$9, 0.0); - var$7 = $par2 + $par4 | 0; - nlea_Tessellator_addVertex($par1Tessellator, var$7, var$9, 0.0); - nlea_Tessellator_addVertex($par1Tessellator, var$7, var$8, 0.0); - nlea_Tessellator_draw($par1Tessellator); -} -function nms_RenderItem_renderIcon($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.$zLevel0; - var$10 = $par3Icon.$getMinU(); - var$11 = $par3Icon.$getMaxV(); - $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$9 = $this.$zLevel0; - var$10 = $par3Icon.$getMaxU(); - var$11 = $par3Icon.$getMaxV(); - $var6.$hasTexture = 1; - $var6.$textureU = var$10; - $var6.$textureV = var$11; - nlea_Tessellator_addVertex($var6, var$12, var$8, var$9); - var$9 = $par2 + 0 | 0; - var$10 = $this.$zLevel0; - var$11 = $par3Icon.$getMaxU(); - var$8 = $par3Icon.$getMinV(); - $var6.$hasTexture = 1; - $var6.$textureU = var$11; - $var6.$textureV = var$8; - nlea_Tessellator_addVertex($var6, var$12, var$9, var$10); - var$10 = $this.$zLevel0; - var$11 = $par3Icon.$getMinU(); - var$8 = $par3Icon.$getMinV(); - $var6.$hasTexture = 1; - $var6.$textureU = var$11; - $var6.$textureV = var$8; - nlea_Tessellator_addVertex($var6, var$7, var$9, var$10); - nlea_Tessellator_draw($var6); -} -function nms_RenderItem_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderItem_doRenderItem($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderItem__clinit_() { - var var$1, var$2; - nms_RenderItem_renderInFrame = 0; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderItem_terrain = var$1; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(647); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_RenderItem_items = var$2; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(796); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - nms_RenderItem_glint = var$2; -} -function nms_EntityXPOrb() { - var a = this; nms_Entity.call(a); - a.$xpColor = 0; - a.$xpOrbAge = 0; - a.$field_70532_c = 0; - a.$xpOrbHealth = 0; - a.$xpValue = 0; - a.$closestPlayer = null; - a.$xpTargetColor = 0; -} -function nms_EntityXPOrb__init_0(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityXPOrb(); - nms_EntityXPOrb__init_1(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityXPOrb__init_2() { - var var_0 = new nms_EntityXPOrb(); - nms_EntityXPOrb__init_(var_0); - return var_0; -} -function nms_EntityXPOrb__init_1($this, $par1World, $par2, $par4, $par6, $par8) { - nms_Entity__init_0($this); - $this.$xpOrbAge = 0; - $this.$xpOrbHealth = 5; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - nms_Entity_setSize($this, 0.5, 0.5); - $this.$yOffset0 = $this.$height1 / 2.0; - nms_Entity_setPosition($this, $par2, $par4, $par6); - $this.$rotationYaw = jl_Math_randomImpl() * 360.0; - $this.$motionX = (jl_Math_randomImpl() * 0.20000000298023224 - 0.10000000149011612) * 2.0; - $this.$motionY = jl_Math_randomImpl() * 0.2 * 2.0; - $this.$motionZ = (jl_Math_randomImpl() * 0.20000000298023224 - 0.10000000149011612) * 2.0; - $this.$xpValue = $par8; -} -function nms_EntityXPOrb_canTriggerWalking($this) { - return 0; -} -function nms_EntityXPOrb__init_($this) { - nms_Entity__init_0($this); - $this.$xpOrbAge = 0; - $this.$xpOrbHealth = 5; - nms_Entity_setSize($this, 0.25, 0.25); - $this.$yOffset0 = $this.$height1 / 2.0; -} -function nms_EntityXPOrb_entityInit($this) { - return; -} -function nms_EntityXPOrb_getBrightnessForRender($this, $par1) { - var $var3, $var4, $var5; - $var3 = nms_Entity_getBrightnessForRender($this, $par1); - $var4 = $var3 & 255; - $var5 = $var3 >> 16 & 255; - $var3 = $var4 + 120 | 0; - if ($var3 > 240) - $var3 = 240; - return $var3 | $var5 << 16; -} -function nms_EntityXPOrb_onUpdate($this) { - var var$1, $var1, var$3, var$4, var$5, $var4, var$7, var$8, $var3, $var5, $var7, $var9, $var11, $var13, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var4 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_Entity_onEntityUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$field_70532_c > 0) - $this.$field_70532_c = $this.$field_70532_c - 1 | 0; - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$motionY = $this.$motionY - 0.029999999329447746; - var$1 = $this.$worldObj; - $var1 = $this.$posX; - var$3 = $var1 | 0; - if ($var1 < var$3) - var$3 = var$3 - 1 | 0; - $var1 = $this.$posY; - var$4 = $var1 | 0; - if ($var1 < var$4) - var$4 = var$4 - 1 | 0; - $var1 = $this.$posZ; - var$5 = $var1 | 0; - if ($var1 < var$5) - var$5 = var$5 - 1 | 0; - $var4 = nms_World_getBlockId(var$1, var$3, var$4, var$5); - if (!$var4) { - nms_Material_$callClinit(); - var$7 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[$var4].$blockMaterial; - } - nms_Material_$callClinit(); - if (var$7 === nms_Material_lava) { - $this.$motionY = 0.20000000298023224; - $this.$motionX = (Math.random() - Math.random()) * 0.20000000298023224; - $this.$motionZ = (Math.random() - Math.random()) * 0.20000000298023224; - var$8 = 2.0 + Math.random() * 0.4000000059604645; - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(677), 0.4000000059604645, var$8); - } - nms_Entity_pushOutOfBlocks($this, $this.$posX, ($this.$boundingBox.$minY + $this.$boundingBox.$maxY) / 2.0, $this.$posZ); - if ($this.$xpTargetColor < (($this.$xpColor - 20 | 0) + ($this.$entityId % 100 | 0) | 0)) { - if (!($this.$closestPlayer !== null && nms_Entity_getDistanceSqToEntity($this.$closestPlayer, $this) <= 64.0)) - $this.$closestPlayer = nms_World_getClosestPlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 8.0); - $this.$xpTargetColor = $this.$xpColor; - } - if ($this.$closestPlayer !== null) { - $var3 = ($this.$closestPlayer.$posX - $this.$posX) / 8.0; - $var5 = ($this.$closestPlayer.$posY + $this.$closestPlayer.$getEyeHeight() - $this.$posY) / 8.0; - $var7 = ($this.$closestPlayer.$posZ - $this.$posZ) / 8.0; - $var9 = jl_Math_sqrt($var3 * $var3 + $var5 * $var5 + $var7 * $var7); - $var11 = 1.0 - $var9; - if ($var11 > 0.0) { - $var1 = $var11 * $var11; - $this.$motionX = $this.$motionX + $var3 / $var9 * $var1 * 0.1; - $this.$motionY = $this.$motionY + $var5 / $var9 * $var1 * 0.1; - $this.$motionZ = $this.$motionZ + $var7 / $var9 * $var1 * 0.1; - } - } - $var1 = $this.$motionX; - $var3 = $this.$motionY; - $var5 = $this.$motionZ; - $ptr = 2; - case 2: - nms_Entity_moveEntity($this, $var1, $var3, $var5); - if ($rt_suspending()) { - break main; - } - $var13 = 0.9800000190734863; - if ($this.$onGround) { - $var13 = 0.5880000591278076; - $var4 = nms_World_getBlockId($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$boundingBox.$minY) - 1 | 0, nms_MathHelper_floor_double($this.$posZ)); - if ($var4 > 0) { - nms_Block_$callClinit(); - $var13 = nms_Block_blocksList.data[$var4].$slipperiness * 0.9800000190734863; - } - } - $var1 = $this.$motionX; - $var3 = $var13; - $this.$motionX = $var1 * $var3; - $this.$motionY = $this.$motionY * 0.9800000190734863; - $this.$motionZ = $this.$motionZ * $var3; - if ($this.$onGround) - $this.$motionY = $this.$motionY * (-0.8999999761581421); - $this.$xpColor = $this.$xpColor + 1 | 0; - $this.$xpOrbAge = $this.$xpOrbAge + 1 | 0; - if ($this.$xpOrbAge >= 6000) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, var$3, var$4, var$5, $var4, var$7, var$8, $var3, $var5, $var7, $var9, $var11, $var13, $ptr); -} -function nms_EntityXPOrb_handleWaterMovement($this) { - var var$1, var$2; - var$1 = $this.$worldObj; - var$2 = $this.$boundingBox; - nms_Material_$callClinit(); - return nms_World_handleMaterialAcceleration(var$1, var$2, nms_Material_water, $this); -} -function nms_EntityXPOrb_dealFireDamage($this, $par1) { - nms_EntityXPOrb_attackEntityFrom($this, nms_DamageSource_inFire, $par1); -} -function nms_EntityXPOrb_attackEntityFrom($this, $par1DamageSource, $par2) { - if ($this.$invulnerable) - return 0; - $this.$velocityChanged = 1; - $this.$xpOrbHealth = $this.$xpOrbHealth - $par2 | 0; - if ($this.$xpOrbHealth <= 0) - $this.$isDead = 1; - return 0; -} -function nms_EntityXPOrb_onCollideWithPlayer($this, $par1EntityPlayer) { - var var$2; - if (!$this.$worldObj.$isRemote && !$this.$field_70532_c && !$par1EntityPlayer.$xpCooldown) { - $par1EntityPlayer.$xpCooldown = 2; - var$2 = 0.5 * ((Math.random() - Math.random()) * 0.699999988079071 + 1.7999999523162842); - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1519), 0.10000000149011612, var$2); - nms_EffectRenderer_addEffect($par1EntityPlayer.$mc3.$effectRenderer, nms_EntityPickupFX__init_($par1EntityPlayer.$mc3.$theWorld, $this, $par1EntityPlayer, (-0.5))); - nms_EntityPlayer_addExperience($par1EntityPlayer, $this.$xpValue); - $this.$isDead = 1; - } -} -function nms_EntityXPOrb_getTextureByXP($this) { - var var$1; - a: { - if ($this.$xpValue >= 2477) { - var$1 = 10; - break a; - } - if ($this.$xpValue >= 1237) { - var$1 = 9; - break a; - } - if ($this.$xpValue >= 617) { - var$1 = 8; - break a; - } - if ($this.$xpValue >= 307) { - var$1 = 7; - break a; - } - if ($this.$xpValue >= 149) { - var$1 = 6; - break a; - } - if ($this.$xpValue >= 73) { - var$1 = 5; - break a; - } - if ($this.$xpValue >= 37) { - var$1 = 4; - break a; - } - if ($this.$xpValue >= 17) { - var$1 = 3; - break a; - } - if ($this.$xpValue >= 7) { - var$1 = 2; - break a; - } - if ($this.$xpValue < 3) { - var$1 = 0; - break a; - } - var$1 = 1; - } - return var$1; -} -function nms_EntityXPOrb_getXPSplit($par0) { - a: { - if ($par0 >= 2477) { - $par0 = 2477; - break a; - } - if ($par0 >= 1237) { - $par0 = 1237; - break a; - } - if ($par0 >= 617) { - $par0 = 617; - break a; - } - if ($par0 >= 307) { - $par0 = 307; - break a; - } - if ($par0 >= 149) { - $par0 = 149; - break a; - } - if ($par0 >= 73) { - $par0 = 73; - break a; - } - if ($par0 >= 37) { - $par0 = 37; - break a; - } - if ($par0 >= 17) { - $par0 = 17; - break a; - } - if ($par0 >= 7) { - $par0 = 7; - break a; - } - if ($par0 < 3) { - $par0 = 1; - break a; - } - $par0 = 3; - } - return $par0; -} -function nms_EntityXPOrb_canAttackWithItem($this) { - return 0; -} -function nms_RenderXPOrb() { - nms_Render.call(this); -} -var nms_RenderXPOrb_tex_xporb = null; -function nms_RenderXPOrb__init_0() { - var var_0 = new nms_RenderXPOrb(); - nms_RenderXPOrb__init_(var_0); - return var_0; -} -function nms_RenderXPOrb__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$shadowSize = 0.15000000596046448; - $this.$shadowOpaque = 0.75; -} -function nms_RenderXPOrb_renderTheXPOrb($this, $par1EntityXPOrb, $par2, $par4, $par6, $par8, $par9) { - var $var12, $var13, $var11, var$10, var$11, $var20, $var10, $var19, $var14, $var15, $var21, $var26, var$19, $var27, $var24, var$22, var$23, var$24, var$25; - nleg_EaglerAdapterGL30_glPushMatrix(); - $par8 = $par2; - $var12 = $par4; - $var13 = $par6; - $var11 = nleg_EaglerAdapterGL30_deevis; - $var11.$x = $par8; - $var11.$y = $var12; - $var11.$z = $var13; - $var11 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var11, $var11); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - $var11 = new jl_StringBuilder; - $var11.$buffer = $rt_createCharArray(16); - var$10.$sb = $var11; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - $var11 = new jnci_UTF8Charset; - jnc_Charset__init_($var11, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = $var11; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - $var20 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, $var20, $var20 + 1 | 0); - var$10.$buffer.data[$var20] = 10; - ji_PrintStream_printSB(var$11); - } - a: { - $var10 = nms_EntityXPOrb_getTextureByXP($par1EntityXPOrb); - nle_TextureLocation_bindTexture(nms_RenderXPOrb_tex_xporb); - nlea_Tessellator_$callClinit(); - $var11 = nlea_Tessellator_instance; - $var19 = ($var10 % 4 | 0) * 16 | 0; - $var12 = ($var19 + 0 | 0) / 64.0; - $var13 = ($var19 + 16 | 0) / 64.0; - $var19 = ($var10 / 4 | 0) * 16 | 0; - $var14 = ($var19 + 0 | 0) / 64.0; - $var15 = ($var19 + 16 | 0) / 64.0; - $var19 = nms_EntityXPOrb_getBrightnessForRender($par1EntityXPOrb, $par9); - $var20 = $var19 % 65536 | 0; - $var21 = $var19 / 65536 | 0; - $var19 = nms_OpenGlHelper_lightmapTexUnit; - $var26 = $var20 / 1.0; - $par8 = $var21 / 1.0; - switch ($var19) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = $var26; - nleg_EaglerAdapterGL30_tex1Y = $par8; - break a; - default: - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$19 = jl_System_errCache; - var$11 = var$19.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(238)); - $var20 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, $var20, $var20 + 1 | 0); - var$11.$buffer.data[$var20] = 10; - ji_PrintStream_printSB(var$19); - break a; - } - nleg_EaglerAdapterGL30_tex0X = $var26; - nleg_EaglerAdapterGL30_tex0Y = $par8; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var27 = ($par1EntityXPOrb.$xpColor + $par9) / 2.0; - $par9 = $var27 + 0.0; - $var21 = (nms_MathHelper_SIN_TABLE.data[($par9 * 10430.3779296875 | 0) & 65535] + 1.0) * 0.5 * 255.0 | 0; - $par8 = $var27 + 4.188790321350098; - $var24 = $var21 << 16 | 65280 | (nms_MathHelper_SIN_TABLE.data[($par8 * 10430.3779296875 | 0) & 65535] + 1.0) * 0.10000000149011612 * 255.0 | 0; - nleg_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$playerViewY, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$playerViewX, 1.0, 0.0, 0.0); - $par1EntityXPOrb = nleg_EaglerAdapterGL30_deevis; - $par1EntityXPOrb.$x = 0.30000001192092896; - $par1EntityXPOrb.$y = 0.30000001192092896; - $par1EntityXPOrb.$z = 0.30000001192092896; - $par1EntityXPOrb = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1EntityXPOrb, $par1EntityXPOrb); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - nlea_Tessellator_startDrawing($var11, 98); - nlea_Tessellator_setColorRGBA_I($var11, $var24, 128); - nlea_Tessellator_setNormal($var11, 0.0, 1.0, 0.0); - var$22 = $var12; - var$23 = $var15; - nlea_Tessellator_addVertexWithUV($var11, (-0.5), (-0.25), 0.0, var$22, var$23); - var$24 = $var13; - nlea_Tessellator_addVertexWithUV($var11, 0.5, (-0.25), 0.0, var$24, var$23); - var$25 = $var14; - nlea_Tessellator_addVertexWithUV($var11, 0.5, 0.75, 0.0, var$24, var$25); - nlea_Tessellator_addVertexWithUV($var11, (-0.5), 0.75, 0.0, var$22, var$25); - nlea_Tessellator_draw($var11); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_RenderXPOrb_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderXPOrb_renderTheXPOrb($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_RenderXPOrb__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1520); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderXPOrb_tex_xporb = var$1; -} -function nms_EntityTNTPrimed() { - var a = this; nms_Entity.call(a); - a.$fuse = 0; - a.$tntPlacedBy = null; -} -function nms_EntityTNTPrimed__init_0() { - var var_0 = new nms_EntityTNTPrimed(); - nms_EntityTNTPrimed__init_(var_0); - return var_0; -} -function nms_EntityTNTPrimed__init_1(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityTNTPrimed(); - nms_EntityTNTPrimed__init_2(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityTNTPrimed__init_($this) { - nms_Entity__init_0($this); - $this.$fuse = 0; - $this.$preventEntitySpawning = 1; - nms_Entity_setSize($this, 0.9800000190734863, 0.9800000190734863); - $this.$yOffset0 = $this.$height1 / 2.0; -} -function nms_EntityTNTPrimed__init_2($this, $par1World, $par2, $par4, $par6, $par8EntityLiving) { - var var$6; - nms_Entity__init_0($this); - $this.$fuse = 0; - $this.$preventEntitySpawning = 1; - nms_Entity_setSize($this, 0.9800000190734863, 0.9800000190734863); - $this.$yOffset0 = $this.$height1 / 2.0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - nms_Entity_setPosition($this, $par2, $par4, $par6); - var$6 = jl_Math_randomImpl() * 3.141592653589793 * 2.0; - $this.$motionX = -jl_Math_sin(var$6) * 0.019999999552965164; - $this.$motionY = 0.20000000298023224; - $this.$motionZ = -jl_Math_cos(var$6) * 0.019999999552965164; - $this.$fuse = 80; - $this.$prevPosX = $par2; - $this.$prevPosY = $par4; - $this.$prevPosZ = $par6; - $this.$tntPlacedBy = $par8EntityLiving; -} -function nms_EntityTNTPrimed_entityInit($this) { - return; -} -function nms_EntityTNTPrimed_canTriggerWalking($this) { - return 0; -} -function nms_EntityTNTPrimed_canBeCollidedWith($this) { - return $this.$isDead ? 0 : 1; -} -function nms_EntityTNTPrimed_onUpdate($this) { - var var$1, var$2, var$3, var$4, var$5, 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();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: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$motionY = $this.$motionY - 0.03999999910593033; - var$1 = $this.$motionX; - var$2 = $this.$motionY; - var$3 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$1, var$2, var$3); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9800000190734863; - $this.$motionY = $this.$motionY * 0.9800000190734863; - $this.$motionZ = $this.$motionZ * 0.9800000190734863; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - $this.$motionY = $this.$motionY * (-0.5); - } - a: { - var$4 = $this.$fuse; - $this.$fuse = var$4 - 1 | 0; - if (var$4 <= 0) { - $this.$isDead = 1; - if ($this.$worldObj.$isRemote) - break a; - var$5 = nms_Explosion__init_($this.$worldObj, $this, $this.$posX, $this.$posY, $this.$posZ, 4.0); - var$5.$isFlaming = 0; - var$5.$isSmoking = 1; - $ptr = 2; - continue main; - } - var$6 = $this.$worldObj; - var$5 = $rt_s(852); - var$2 = $this.$posX; - var$1 = $this.$posY + 0.5; - var$7 = $this.$posZ; - var$3 = 0.0; - var$8 = 0.0; - var$9 = 0.0; - var$10 = 0; - if (var$10 < var$6.$worldAccesses.$size0) { - var$11 = var$6.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - $ptr = 4; - continue main; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - } - } - return; - case 2: - nms_Explosion_doExplosionA(var$5); - if ($rt_suspending()) { - break main; - } - var$4 = 1; - $ptr = 3; - case 3: - nms_Explosion_doExplosionB(var$5, var$4); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_RenderGlobal_doSpawnParticle(var$11, var$5, var$2, var$1, var$7, var$3, var$8, var$9); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - if (var$10 >= var$6.$worldAccesses.$size0) - return; - var$11 = var$6.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - continue main; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_EntityTNTPrimed_getShadowSize($this) { - return 0.0; -} -function nms_EntityTNTPrimed_getTntPlacedBy($this) { - return $this.$tntPlacedBy; -} -function nms_RenderTNTPrimed() { - nms_Render.call(this); - this.$blockRenderer = null; -} -var nms_RenderTNTPrimed_terrain = null; -function nms_RenderTNTPrimed__init_0() { - var var_0 = new nms_RenderTNTPrimed(); - nms_RenderTNTPrimed__init_(var_0); - return var_0; -} -function nms_RenderTNTPrimed__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$blockRenderer = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.5; -} -function nms_RenderTNTPrimed_renderPrimedTNT($this, $par1EntityTNTPrimed, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, var$9, var$10, var$11, 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();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1EntityTNTPrimed = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_glPushMatrix(); - $par8 = $par2; - $var10 = $par4; - $var11 = $par6; - var$9 = nleg_EaglerAdapterGL30_deevis; - var$9.$x = $par8; - var$9.$y = $var10; - var$9.$z = $var11; - var$9 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$9, var$9); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - var$10.$sb = var$9; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - var$9 = new jnci_UTF8Charset; - jnc_Charset__init_(var$9, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = var$9; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - if ($par1EntityTNTPrimed.$fuse - $par9 + 1.0 < 10.0) { - $var10 = 1.0 - ($par1EntityTNTPrimed.$fuse - $par9 + 1.0) / 10.0; - if ($var10 < 0.0) - $var10 = 0.0; - if ($var10 > 1.0) - $var10 = 1.0; - $par8 = $var10 * $var10; - $var11 = 1.0 + $par8 * $par8 * 0.30000001192092896; - var$9 = nleg_EaglerAdapterGL30_deevis; - var$9.$x = $var11; - var$9.$y = $var11; - var$9.$z = $var11; - var$9 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$9, var$9); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - var$10.$sb = var$9; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - var$9 = new jnci_UTF8Charset; - jnc_Charset__init_(var$9, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = var$9; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - } - $var10 = (1.0 - ($par1EntityTNTPrimed.$fuse - $par9 + 1.0) / 100.0) * 0.800000011920929; - nle_TextureLocation_bindTexture(nms_RenderTNTPrimed_terrain); - var$9 = $this.$blockRenderer; - nms_Block_$callClinit(); - var$10 = nms_Block_tnt; - var$13 = 0; - $par8 = nms_Entity_getBrightness($par1EntityTNTPrimed, $par9); - $ptr = 1; - case 1: - nms_RenderBlocks_renderBlockAsItem(var$9, var$10, var$13, $par8); - if ($rt_suspending()) { - break main; - } - if (($par1EntityTNTPrimed.$fuse / 5 | 0) % 2 | 0) { - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - } - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 80); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = $var10; - $par1EntityTNTPrimed = $this.$blockRenderer; - var$9 = nms_Block_tnt; - var$13 = 0; - $par8 = 1.0; - $ptr = 2; - case 2: - nms_RenderBlocks_renderBlockAsItem($par1EntityTNTPrimed, var$9, var$13, $par8); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityTNTPrimed, $par2, $par4, $par6, $par8, $par9, $var10, $var11, var$9, var$10, var$11, var$12, var$13, $ptr); -} -function nms_RenderTNTPrimed_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderTNTPrimed_renderPrimedTNT($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderTNTPrimed__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderTNTPrimed_terrain = var$1; -} -function nms_EntityFallingSand() { - var a = this; nms_Entity.call(a); - a.$blockID0 = 0; - a.$metadata = 0; - a.$fallTime = 0; - a.$shouldDropItem = 0; - a.$isBreakingAnvil = 0; - a.$isAnvil = 0; - a.$fallHurtMax = 0; - a.$fallHurtAmount = 0.0; - a.$fallingBlockTileEntityData = null; -} -function nms_EntityFallingSand__init_0() { - var var_0 = new nms_EntityFallingSand(); - nms_EntityFallingSand__init_(var_0); - return var_0; -} -function nms_EntityFallingSand__init_1(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_EntityFallingSand(); - nms_EntityFallingSand__init_2(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -} -function nms_EntityFallingSand__init_($this) { - nms_Entity__init_0($this); - $this.$fallTime = 0; - $this.$shouldDropItem = 1; - $this.$isBreakingAnvil = 0; - $this.$isAnvil = 0; - $this.$fallHurtMax = 40; - $this.$fallHurtAmount = 2.0; - $this.$fallingBlockTileEntityData = null; -} -function nms_EntityFallingSand__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par9) { - nms_Entity__init_0($this); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$fallTime = 0; - $this.$shouldDropItem = 1; - $this.$isBreakingAnvil = 0; - $this.$isAnvil = 0; - $this.$fallHurtMax = 40; - $this.$fallHurtAmount = 2.0; - $this.$fallingBlockTileEntityData = null; - $this.$blockID0 = $par8; - $this.$metadata = $par9; - $this.$preventEntitySpawning = 1; - nms_Entity_setSize($this, 0.9800000190734863, 0.9800000190734863); - $this.$yOffset0 = $this.$height1 / 2.0; - nms_Entity_setPosition($this, $par2, $par4, $par6); - $this.$motionX = 0.0; - $this.$motionY = 0.0; - $this.$motionZ = 0.0; - $this.$prevPosX = $par2; - $this.$prevPosY = $par4; - $this.$prevPosZ = $par6; -} -function nms_EntityFallingSand_canTriggerWalking($this) { - return 0; -} -function nms_EntityFallingSand_entityInit($this) { - return; -} -function nms_EntityFallingSand_canBeCollidedWith($this) { - return $this.$isDead ? 0 : 1; -} -function nms_EntityFallingSand_onUpdate($this) { - var var$1, var$2, var$3, $var1, $var2, $var3, $var4, var$8, var$9, var$10, $var5, $var6, $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $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.$blockID0) { - $this.$isDead = 1; - return; - } - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$fallTime = $this.$fallTime + 1 | 0; - $this.$motionY = $this.$motionY - 0.03999999910593033; - var$1 = $this.$motionX; - var$2 = $this.$motionY; - var$3 = $this.$motionZ; - $ptr = 1; - case 1: - a: { - b: { - nms_Entity_moveEntity($this, var$1, var$2, var$3); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9800000190734863; - $this.$motionY = $this.$motionY * 0.9800000190734863; - $this.$motionZ = $this.$motionZ * 0.9800000190734863; - if (!$this.$worldObj.$isRemote) { - var$1 = $this.$posX; - $var1 = var$1 | 0; - if (var$1 < $var1) - $var1 = $var1 - 1 | 0; - var$1 = $this.$posY; - $var2 = var$1 | 0; - if (var$1 < $var2) - $var2 = $var2 - 1 | 0; - var$1 = $this.$posZ; - $var3 = var$1 | 0; - if (var$1 < $var3) - $var3 = $var3 - 1 | 0; - if ($this.$fallTime == 1) { - if (nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3) != $this.$blockID0) { - $this.$isDead = 1; - return; - } - $var4 = $this.$worldObj; - var$8 = 0; - var$9 = 0; - var$10 = 3; - $ptr = 2; - continue main; - } - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - $this.$motionY = $this.$motionY * (-0.5); - var$8 = nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3); - nms_Block_$callClinit(); - if (var$8 == nms_Block_pistonMoving.$blockID) - break b; - $this.$isDead = 1; - if (!(!$this.$isBreakingAnvil && nms_World_canPlaceEntityOnSide($this.$worldObj, $this.$blockID0, $var1, $var2, $var3, 1, 1, null, null) && !nms_BlockSand_canFallBelow($this.$worldObj, $var1, $var2 - 1 | 0, $var3))) { - if (!$this.$shouldDropItem) - break b; - if ($this.$isBreakingAnvil) - break b; - nms_Entity_entityDropItem($this, nms_ItemStack__init_4($this.$blockID0, 1, nms_Block_blocksList.data[$this.$blockID0].$damageDropped($this.$metadata)), 0.0); - break b; - } - $var4 = $this.$worldObj; - var$8 = $this.$blockID0; - var$9 = $this.$metadata; - var$10 = 3; - $ptr = 4; - continue main; - } - if ($this.$fallTime > 100 && !$this.$worldObj.$isRemote) { - if ($var2 < 1) - break a; - if ($var2 > 256) - break a; - } - if ($this.$fallTime > 600) - break a; - } - } - return; - } - if ($this.$shouldDropItem) { - $var4 = new nms_ItemStack; - var$9 = $this.$blockID0; - nms_Block_$callClinit(); - nms_ItemStack__init_0($var4, var$9, 1, nms_Block_blocksList.data[$this.$blockID0].$damageDropped($this.$metadata)); - nms_Entity_entityDropItem($this, $var4, 0.0); - } - $ptr = 3; - continue main; - case 2: - nms_World_setBlock($var4, $var1, $var2, $var3, var$8, var$9, var$10); - if ($rt_suspending()) { - break main; - } - a: { - b: { - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - $this.$motionY = $this.$motionY * (-0.5); - var$8 = nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3); - nms_Block_$callClinit(); - if (var$8 == nms_Block_pistonMoving.$blockID) - break b; - $this.$isDead = 1; - if (!(!$this.$isBreakingAnvil && nms_World_canPlaceEntityOnSide($this.$worldObj, $this.$blockID0, $var1, $var2, $var3, 1, 1, null, null) && !nms_BlockSand_canFallBelow($this.$worldObj, $var1, $var2 - 1 | 0, $var3))) { - if (!$this.$shouldDropItem) - break b; - if ($this.$isBreakingAnvil) - break b; - nms_Entity_entityDropItem($this, nms_ItemStack__init_4($this.$blockID0, 1, nms_Block_blocksList.data[$this.$blockID0].$damageDropped($this.$metadata)), 0.0); - break b; - } - $var4 = $this.$worldObj; - var$8 = $this.$blockID0; - var$9 = $this.$metadata; - var$10 = 3; - $ptr = 4; - continue main; - } - if ($this.$fallTime > 100 && !$this.$worldObj.$isRemote) { - if ($var2 < 1) - break a; - if ($var2 > 256) - break a; - } - if ($this.$fallTime > 600) - break a; - } - return; - } - if ($this.$shouldDropItem) { - $var4 = new nms_ItemStack; - var$9 = $this.$blockID0; - nms_Block_$callClinit(); - nms_ItemStack__init_0($var4, var$9, 1, nms_Block_blocksList.data[$this.$blockID0].$damageDropped($this.$metadata)); - nms_Entity_entityDropItem($this, $var4, 0.0); - } - $ptr = 3; - case 3: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - return; - case 4: - $tmp = nms_World_setBlock($var4, $var1, $var2, $var3, var$8, var$9, var$10); - if ($rt_suspending()) { - break main; - } - var$8 = $tmp; - if (var$8) { - if (nms_Block_blocksList.data[$this.$blockID0] instanceof nms_BlockSand) { - $var4 = nms_Block_blocksList.data[$this.$blockID0]; - $var5 = $this.$worldObj; - var$8 = $this.$metadata; - $ptr = 5; - continue main; - } - if ($this.$fallingBlockTileEntityData !== null && $rt_isInstance(nms_Block_blocksList.data[$this.$blockID0], nms_ITileEntityProvider)) { - $var4 = nms_World_getBlockTileEntity($this.$worldObj, $var1, $var2, $var3); - if ($var4 !== null) { - $var5 = new nms_NBTTagCompound; - nms_NBTBase__init_0($var5, $rt_s(44)); - $var5.$tagMap = ju_HashMap__init_1(16, 0.75); - $var4.$writeToNBT($var5); - $var6 = $this.$fallingBlockTileEntityData.$getTags().$iterator(); - while ($var6.$hasNext()) { - $var7 = $var6.$next(); - if (!$var7.$getName().$equals($rt_s(1521)) && !$var7.$getName().$equals($rt_s(1522)) && !$var7.$getName().$equals($rt_s(1523))) - nms_NBTTagCompound_setTag($var5, $var7.$getName(), $var7.$copy()); - } - $ptr = 6; - continue main; - } - } - } else if ($this.$shouldDropItem && !$this.$isBreakingAnvil) - nms_Entity_entityDropItem($this, nms_ItemStack__init_4($this.$blockID0, 1, nms_Block_blocksList.data[$this.$blockID0].$damageDropped($this.$metadata)), 0.0); - return; - case 5: - $var4.$onFinishFalling($var5, $var1, $var2, $var3, var$8); - if ($rt_suspending()) { - break main; - } - if ($this.$fallingBlockTileEntityData !== null && $rt_isInstance(nms_Block_blocksList.data[$this.$blockID0], nms_ITileEntityProvider)) { - $var4 = nms_World_getBlockTileEntity($this.$worldObj, $var1, $var2, $var3); - if ($var4 !== null) { - $var5 = new nms_NBTTagCompound; - nms_NBTBase__init_0($var5, $rt_s(44)); - $var5.$tagMap = ju_HashMap__init_1(16, 0.75); - $var4.$writeToNBT($var5); - $var6 = $this.$fallingBlockTileEntityData.$getTags().$iterator(); - while ($var6.$hasNext()) { - $var7 = $var6.$next(); - if (!$var7.$getName().$equals($rt_s(1521)) && !$var7.$getName().$equals($rt_s(1522)) && !$var7.$getName().$equals($rt_s(1523))) - nms_NBTTagCompound_setTag($var5, $var7.$getName(), $var7.$copy()); - } - $ptr = 6; - continue main; - } - } - return; - case 6: - $var4.$readFromNBT($var5); - if ($rt_suspending()) { - break main; - } - $ptr = 7; - case 7: - $var4.$onInventoryChanged(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $var1, $var2, $var3, $var4, var$8, var$9, var$10, $var5, $var6, $var7, $ptr); -} -function nms_EntityFallingSand_fall($this, $par1) { - var $var2, $var3, $var7, $var4, $var5, $var6, var$8, var$9, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var7 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$isAnvil) { - $par1 = $par1 - 1.0; - $var2 = $par1 | 0; - if ($par1 > $var2) - $var2 = $var2 + 1 | 0; - if ($var2 > 0) { - $var3 = ju_ArrayList__init_3(nms_World_getEntitiesWithinAABBExcludingEntity($this.$worldObj, $this, $this.$boundingBox, null)); - $var7 = $this.$blockID0; - nms_Block_$callClinit(); - $var4 = $var7 != nms_Block_anvil.$blockID ? nms_DamageSource_fallingBlock : nms_DamageSource_anvil; - $var5 = new ju_AbstractList$1; - $var5.$this$0 = $var3; - $var5.$modCount = $var5.$this$0.$modCount0; - $var5.$size1 = $var5.$this$0.$size2(); - $var5.$removeIndex = (-1); - $par1 = $var2; - if ($var5.$index >= $var5.$size1 ? 0 : 1) { - $var6 = ju_AbstractList$1_next($var5); - var$8 = $par1 * $this.$fallHurtAmount; - var$9 = var$8 | 0; - if (var$8 < var$9) - var$9 = var$9 - 1 | 0; - $var7 = $this.$fallHurtMax; - if (var$9 < $var7) - $var7 = var$9; - $ptr = 1; - continue main; - } - if ($this.$blockID0 == nms_Block_anvil.$blockID && Math.random() < 0.05000000074505806 + $var2 * 0.05) { - $var7 = $this.$metadata >> 2; - $var8 = $this.$metadata & 3; - $var7 = $var7 + 1 | 0; - if ($var7 > 2) - $this.$isBreakingAnvil = 1; - else - $this.$metadata = $var8 | $var7 << 2; - } - } - } - return; - case 1: - $var6.$attackEntityFrom($var4, $var7); - if ($rt_suspending()) { - break main; - } - if (!($var5.$index >= $var5.$size1 ? 0 : 1)) { - if ($this.$blockID0 == nms_Block_anvil.$blockID && Math.random() < 0.05000000074505806 + $var2 * 0.05) { - $var7 = $this.$metadata >> 2; - $var8 = $this.$metadata & 3; - $var7 = $var7 + 1 | 0; - if ($var7 > 2) - $this.$isBreakingAnvil = 1; - else - $this.$metadata = $var8 | $var7 << 2; - } - return; - } - $var6 = ju_AbstractList$1_next($var5); - var$8 = $par1 * $this.$fallHurtAmount; - var$9 = var$8 | 0; - if (var$8 < var$9) - var$9 = var$9 - 1 | 0; - $var7 = $this.$fallHurtMax; - if (var$9 < $var7) - $var7 = var$9; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, $var3, $var7, $var4, $var5, $var6, var$8, var$9, $var8, $ptr); -} -function nms_EntityFallingSand_getShadowSize($this) { - return 0.0; -} -function nms_EntityFallingSand_getWorld($this) { - return $this.$worldObj; -} -function nms_EntityFallingSand_canRenderOnFire($this) { - return 0; -} -function nms_RenderFallingSand() { - nms_Render.call(this); - this.$sandRenderBlocks = null; -} -var nms_RenderFallingSand_tex = null; -function nms_RenderFallingSand__init_0() { - var var_0 = new nms_RenderFallingSand(); - nms_RenderFallingSand__init_(var_0); - return var_0; -} -function nms_RenderFallingSand__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$sandRenderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.5; -} -function nms_RenderFallingSand_doRenderFallingSand($this, $par1EntityFallingSand, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, var$9, var$10, var$11, var$12, var$13, $var12, var$15, var$16; - $var10 = $par1EntityFallingSand.$worldObj; - nms_Block_$callClinit(); - $var11 = nms_Block_blocksList.data[$par1EntityFallingSand.$blockID0]; - var$9 = $par1EntityFallingSand.$posX; - var$10 = var$9 | 0; - if (var$9 < var$10) - var$10 = var$10 - 1 | 0; - var$9 = $par1EntityFallingSand.$posY; - var$11 = var$9 | 0; - if (var$9 < var$11) - var$11 = var$11 - 1 | 0; - var$9 = $par1EntityFallingSand.$posZ; - var$12 = var$9 | 0; - if (var$9 < var$12) - var$12 = var$12 - 1 | 0; - if (nms_World_getBlockId($var10, var$10, var$11, var$12) != $par1EntityFallingSand.$blockID0) { - nleg_EaglerAdapterGL30_glPushMatrix(); - $par8 = $par2; - $par9 = $par4; - var$13 = $par6; - $var12 = nleg_EaglerAdapterGL30_deevis; - $var12.$x = $par8; - $var12.$y = $par9; - $var12.$z = var$13; - $var12 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var12, $var12); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$15 = new ji_PrintStream; - var$15.$out = new jl_ConsoleOutputStreamStderr; - $var12 = new jl_StringBuilder; - $var12.$buffer = $rt_createCharArray(16); - var$15.$sb = $var12; - var$15.$buffer0 = $rt_createCharArray(32); - var$15.$autoFlush = 0; - $var12 = new jnci_UTF8Charset; - jnc_Charset__init_($var12, $rt_s(2), $rt_createArray(jl_String, 0)); - var$15.$charset = $var12; - jl_System_errCache = var$15; - } - var$16 = jl_System_errCache; - var$15 = var$16.$sb; - jl_AbstractStringBuilder_insert(var$15, var$15.$length, $rt_s(220)); - var$12 = var$15.$length; - jl_AbstractStringBuilder_insertSpace(var$15, var$12, var$12 + 1 | 0); - var$15.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$16); - } - nle_TextureLocation_bindTexture(nms_RenderFallingSand_tex); - nleg_EaglerAdapterGL30_glDisable(13); - if ($var11 instanceof nms_BlockAnvil && $var11.$getRenderType() == 35) { - $this.$sandRenderBlocks.$blockAccess = $var10; - nlea_Tessellator_$callClinit(); - $var12 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var12, 98); - $par2 = $par1EntityFallingSand.$posX; - var$12 = $par2 | 0; - if ($par2 < var$12) - var$12 = var$12 - 1 | 0; - $par2 = -var$12 - 0.5; - $par4 = $par1EntityFallingSand.$posY; - var$12 = $par4 | 0; - if ($par4 < var$12) - var$12 = var$12 - 1 | 0; - $par4 = -var$12 - 0.5; - var$9 = $par1EntityFallingSand.$posZ; - var$12 = var$9 | 0; - if (var$9 < var$12) - var$12 = var$12 - 1 | 0; - $par6 = -var$12 - 0.5; - $var12.$xOffset = $par2; - $var12.$yOffset = $par4; - $var12.$zOffset = $par6; - $var10 = $this.$sandRenderBlocks; - $var11 = $var11; - $par2 = $par1EntityFallingSand.$posX; - var$10 = $par2 | 0; - if ($par2 < var$10) - var$10 = var$10 - 1 | 0; - $par2 = $par1EntityFallingSand.$posY; - var$11 = $par2 | 0; - if ($par2 < var$11) - var$11 = var$11 - 1 | 0; - $par2 = $par1EntityFallingSand.$posZ; - var$12 = $par2 | 0; - if ($par2 < var$12) - var$12 = var$12 - 1 | 0; - nms_RenderBlocks_renderBlockAnvilMetadata($var10, $var11, var$10, var$11, var$12, $par1EntityFallingSand.$metadata); - $var12.$xOffset = 0.0; - $var12.$yOffset = 0.0; - $var12.$zOffset = 0.0; - nlea_Tessellator_draw($var12); - } else if ($var11.$getRenderType() != 27) { - nms_RenderBlocks_setRenderBoundsFromBlock($this.$sandRenderBlocks, $var11); - nms_RenderBlocks_renderBlockSandFalling($this.$sandRenderBlocks, $var11, $var10, nms_MathHelper_floor_double($par1EntityFallingSand.$posX), nms_MathHelper_floor_double($par1EntityFallingSand.$posY), nms_MathHelper_floor_double($par1EntityFallingSand.$posZ), $par1EntityFallingSand.$metadata); - } else { - $this.$sandRenderBlocks.$blockAccess = $var10; - nlea_Tessellator_$callClinit(); - $var12 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawing($var12, 98); - $par2 = $par1EntityFallingSand.$posX; - var$12 = $par2 | 0; - if ($par2 < var$12) - var$12 = var$12 - 1 | 0; - nlea_Tessellator_setTranslation($var12, -var$12 - 0.5, -nms_MathHelper_floor_double($par1EntityFallingSand.$posY) - 0.5, -nms_MathHelper_floor_double($par1EntityFallingSand.$posZ) - 0.5); - nms_RenderBlocks_renderBlockDragonEgg($this.$sandRenderBlocks, $var11, nms_MathHelper_floor_double($par1EntityFallingSand.$posX), nms_MathHelper_floor_double($par1EntityFallingSand.$posY), nms_MathHelper_floor_double($par1EntityFallingSand.$posZ)); - nlea_Tessellator_setTranslation($var12, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var12); - } - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_RenderFallingSand_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderFallingSand_doRenderFallingSand($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_RenderFallingSand__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderFallingSand_tex = var$1; -} -function nms_EntityMinecart() { - var a = this; nms_Entity.call(a); - a.$isInReverse = 0; - a.$field_82344_g = null; - a.$entityName = null; - a.$turnProgress = 0; - a.$minecartX = 0.0; - a.$minecartY = 0.0; - a.$minecartZ = 0.0; - a.$minecartYaw = 0.0; - a.$minecartPitch = 0.0; - a.$velocityX = 0.0; - a.$velocityY = 0.0; - a.$velocityZ = 0.0; -} -var nms_EntityMinecart_matrix = null; -function nms_EntityMinecart__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityMinecart(); - nms_EntityMinecart__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityMinecart_createMinecart($par0World, $par1, $par3, $par5, $par7) { - var var$6; - switch ($par7) { - case 1: - var$6 = new nms_EntityMinecartChest; - nms_EntityMinecart__init_0(var$6, $par0World, $par1, $par3, $par5); - var$6.$minecartContainerItems = $rt_createArray(nms_ItemStack, 36); - var$6.$dropContentsWhenDead = 1; - return var$6; - case 2: - var$6 = new nms_EntityMinecartFurnace; - nms_EntityMinecart__init_0(var$6, $par0World, $par1, $par3, $par5); - var$6.$fuel = 0; - return var$6; - case 3: - var$6 = new nms_EntityMinecartTNT; - nms_EntityMinecart__init_0(var$6, $par0World, $par1, $par3, $par5); - var$6.$minecartTNTFuse = (-1); - return var$6; - case 4: - break; - case 5: - var$6 = new nms_EntityMinecartHopper; - nms_EntityMinecart__init_0(var$6, $par0World, $par1, $par3, $par5); - var$6.$minecartContainerItems = $rt_createArray(nms_ItemStack, 36); - var$6.$dropContentsWhenDead = 1; - var$6.$isBlocked = 1; - var$6.$transferTicker = (-1); - return var$6; - default: - var$6 = new nms_EntityMinecartEmpty; - nms_EntityMinecart__init_0(var$6, $par0World, $par1, $par3, $par5); - return var$6; - } - var$6 = new nms_EntityMinecartMobSpawner; - nms_EntityMinecart__init_0(var$6, $par0World, $par1, $par3, $par5); - return var$6; -} -function nms_EntityMinecart_setWorld($this, $w) { - $this.$worldObj = $w; - $this.$dimension = $w.$provider.$dimensionId; - $this.$field_82344_g = nms_SoundUpdaterMinecart__init_($w.$mc11.$sndManager, $this, $w.$mc11.$thePlayer); -} -function nms_EntityMinecart_canTriggerWalking($this) { - return 0; -} -function nms_EntityMinecart_entityInit($this) { - var var$1, var$2; - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 0; - nms_DataWatcher_addObject(var$1, 17, var$2); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 1; - nms_DataWatcher_addObject(var$2, 18, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 0; - nms_DataWatcher_addObject(var$2, 19, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 0; - nms_DataWatcher_addObject(var$2, 20, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 6; - nms_DataWatcher_addObject(var$2, 21, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Byte; - var$1.$value4 = 0; - nms_DataWatcher_addObject(var$2, 22, var$1); -} -function nms_EntityMinecart_getCollisionBox($this, $par1Entity) { - return !$par1Entity.$canBePushed() ? null : $par1Entity.$boundingBox; -} -function nms_EntityMinecart_getBoundingBox($this) { - return null; -} -function nms_EntityMinecart_canBePushed($this) { - return 1; -} -function nms_EntityMinecart__init_0($this, $par1World, $par2, $par4, $par6) { - nms_Entity__init_0($this); - $this.$isInReverse = 0; - $this.$preventEntitySpawning = 1; - nms_Entity_setSize($this, 0.9800000190734863, 0.699999988079071); - $this.$yOffset0 = $this.$height1 / 2.0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$field_82344_g = nms_SoundUpdaterMinecart__init_($par1World.$mc11.$sndManager, $this, $par1World.$mc11.$thePlayer); - nms_Entity_setPosition($this, $par2, $par4 + $this.$yOffset0, $par6); - $this.$motionX = 0.0; - $this.$motionY = 0.0; - $this.$motionZ = 0.0; - $this.$prevPosX = $par2; - $this.$prevPosY = $par4; - $this.$prevPosZ = $par6; -} -function nms_EntityMinecart_getMountedYOffset($this) { - return $this.$height1 * 0.0 - 0.30000001192092896; -} -function nms_EntityMinecart_attackEntityFrom($this, $par1DamageSource, $par2) { - var var$3, $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$worldObj.$isRemote && !$this.$isDead) { - if ($this.$invulnerable) - return 0; - var$3 = -nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf(var$3)); - nms_DataWatcher_updateObject($this.$dataWatcher, 17, jl_Integer_valueOf(10)); - $this.$velocityChanged = 1; - $par2 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) + ($par2 * 10 | 0) | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 19, jl_Integer_valueOf($par2)); - $var3 = $par1DamageSource.$getEntity() instanceof nms_EntityPlayer && $par1DamageSource.$getEntity().$capabilities.$isCreativeMode ? 1 : 0; - if (!$var3 && nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) <= 40) - return 1; - if ($this.$riddenByEntity !== null) - $this.$riddenByEntity.$mountEntity($this); - if ($var3 && !($this.$entityName === null ? 0 : 1)) { - $ptr = 2; - continue main; - } - $ptr = 1; - continue main; - } - return 1; - case 1: - $this.$killMinecart($par1DamageSource); - if ($rt_suspending()) { - break main; - } - return 1; - case 2: - $this.$setDead(); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, var$3, $var3, $ptr); -} -function nms_EntityMinecart_killMinecart($this, $par1DamageSource) { - var $var2, var$3, 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();var$3 = $thread.pop();$var2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $this.$setDead(); - if ($rt_suspending()) { - break main; - } - $var2 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_minecartEmpty.$itemID; - $var2.$stackSize = 0; - $var2.$itemFrame = null; - $var2.$itemID0 = var$3; - $var2.$stackSize = 1; - $var2.$itemDamage = 0; - if ($var2.$itemDamage < 0) - $var2.$itemDamage = 0; - if ($this.$entityName !== null) - nms_ItemStack_setItemName($var2, $this.$entityName); - $par1DamageSource = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject($par1DamageSource.$dataWatcher, 10, $var2); - nms_DataWatcher_setObjectWatched($par1DamageSource.$dataWatcher, 10); - $par1DamageSource.$delayBeforeCanPickup = 10; - $var2 = $this.$worldObj; - var$4 = nms_World_spawnEntityInWorld($var2, $par1DamageSource); - var$5 = $var2.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, $par1DamageSource, var$5); - if (!var$4) { - $var2 = $var2.$entitySpawnQueue; - ju_HashMap_putImpl($var2.$backingMap, $par1DamageSource, $var2); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $var2, var$3, var$4, var$5, $ptr); -} -function nms_EntityMinecart_performHurtAnimation($this) { - var var$1; - var$1 = -nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf(var$1)); - nms_DataWatcher_updateObject($this.$dataWatcher, 17, jl_Integer_valueOf(10)); - var$1 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) + (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) * 10 | 0) | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 19, jl_Integer_valueOf(var$1)); -} -function nms_EntityMinecart_canBeCollidedWith($this) { - return $this.$isDead ? 0 : 1; -} -function nms_EntityMinecart_setDead($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: - $this.$isDead = 1; - if ($this.$field_82344_g === null) - return; - var$1 = $this.$field_82344_g; - $ptr = 1; - case 1: - nms_SoundUpdaterMinecart_update(var$1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -} -function nms_EntityMinecart_onUpdate($this) { - var $var15, $var8, $var19, $var21, $var5, $var7, $var4, $var18, $var2, $var20, $var6, $var9, $var22, $var11, $var13, $var16, $var17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var22 = $thread.pop();$var9 = $thread.pop();$var6 = $thread.pop();$var20 = $thread.pop();$var2 = $thread.pop();$var18 = $thread.pop();$var4 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var21 = $thread.pop();$var19 = $thread.pop();$var8 = $thread.pop();$var15 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$field_82344_g !== null) { - $var15 = $this.$field_82344_g; - $ptr = 1; - continue main; - } - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 17) > 0) { - $var8 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 17) - 1 | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 17, jl_Integer_valueOf($var8)); - } - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) > 0) { - $var8 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) - 1 | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 19, jl_Integer_valueOf($var8)); - } - if ($this.$posY < (-64.0)) { - $ptr = 2; - continue main; - } - if ($this.$worldObj.$isRemote) { - if ($this.$turnProgress <= 0) { - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } else { - $var19 = $this.$posX + ($this.$minecartX - $this.$posX) / $this.$turnProgress; - $var21 = $this.$posY + ($this.$minecartY - $this.$posY) / $this.$turnProgress; - $var5 = $this.$posZ + ($this.$minecartZ - $this.$posZ) / $this.$turnProgress; - $var7 = nms_MathHelper_wrapAngleTo180_double($this.$minecartYaw - $this.$rotationYaw); - $this.$rotationYaw = $this.$rotationYaw + $var7 / $this.$turnProgress; - $this.$rotationPitch = $this.$rotationPitch + ($this.$minecartPitch - $this.$rotationPitch) / $this.$turnProgress; - $this.$turnProgress = $this.$turnProgress - 1 | 0; - nms_Entity_setPosition($this, $var19, $var21, $var5); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } - return; - } - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$motionY = $this.$motionY - 0.03999999910593033; - $var4 = $this.$posX; - $var18 = $var4 | 0; - if ($var4 < $var18) - $var18 = $var18 - 1 | 0; - $var2 = nms_MathHelper_floor_double($this.$posY); - $var20 = nms_MathHelper_floor_double($this.$posZ); - if (nms_BlockRailBase_isRailBlockAt($this.$worldObj, $var18, $var2 - 1 | 0, $var20)) - $var2 = $var2 + (-1) | 0; - $var4 = 0.4; - $var6 = 0.0078125; - $var8 = nms_World_getBlockId($this.$worldObj, $var18, $var2, $var20); - if (!nms_BlockRailBase_isRailBlock($var8)) { - $ptr = 3; - continue main; - } - $var9 = nms_World_getBlockMetadata($this.$worldObj, $var18, $var2, $var20); - $ptr = 4; - continue main; - case 1: - nms_SoundUpdaterMinecart_update($var15); - if ($rt_suspending()) { - break main; - } - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 17) > 0) { - $var8 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 17) - 1 | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 17, jl_Integer_valueOf($var8)); - } - if (nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) > 0) { - $var8 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) - 1 | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 19, jl_Integer_valueOf($var8)); - } - if ($this.$posY < (-64.0)) { - $ptr = 2; - continue main; - } - if ($this.$worldObj.$isRemote) { - if ($this.$turnProgress <= 0) { - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } else { - $var19 = $this.$posX + ($this.$minecartX - $this.$posX) / $this.$turnProgress; - $var21 = $this.$posY + ($this.$minecartY - $this.$posY) / $this.$turnProgress; - $var5 = $this.$posZ + ($this.$minecartZ - $this.$posZ) / $this.$turnProgress; - $var7 = nms_MathHelper_wrapAngleTo180_double($this.$minecartYaw - $this.$rotationYaw); - $this.$rotationYaw = $this.$rotationYaw + $var7 / $this.$turnProgress; - $this.$rotationPitch = $this.$rotationPitch + ($this.$minecartPitch - $this.$rotationPitch) / $this.$turnProgress; - $this.$turnProgress = $this.$turnProgress - 1 | 0; - nms_Entity_setPosition($this, $var19, $var21, $var5); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } - return; - } - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$motionY = $this.$motionY - 0.03999999910593033; - $var4 = $this.$posX; - $var18 = $var4 | 0; - if ($var4 < $var18) - $var18 = $var18 - 1 | 0; - $var2 = nms_MathHelper_floor_double($this.$posY); - $var20 = nms_MathHelper_floor_double($this.$posZ); - if (nms_BlockRailBase_isRailBlockAt($this.$worldObj, $var18, $var2 - 1 | 0, $var20)) - $var2 = $var2 + (-1) | 0; - $var4 = 0.4; - $var6 = 0.0078125; - $var8 = nms_World_getBlockId($this.$worldObj, $var18, $var2, $var20); - if (!nms_BlockRailBase_isRailBlock($var8)) { - $ptr = 3; - continue main; - } - $var9 = nms_World_getBlockMetadata($this.$worldObj, $var18, $var2, $var20); - $ptr = 4; - continue main; - case 2: - $this.$setDead(); - if ($rt_suspending()) { - break main; - } - if ($this.$worldObj.$isRemote) { - if ($this.$turnProgress <= 0) { - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } else { - $var19 = $this.$posX + ($this.$minecartX - $this.$posX) / $this.$turnProgress; - $var21 = $this.$posY + ($this.$minecartY - $this.$posY) / $this.$turnProgress; - $var5 = $this.$posZ + ($this.$minecartZ - $this.$posZ) / $this.$turnProgress; - $var7 = nms_MathHelper_wrapAngleTo180_double($this.$minecartYaw - $this.$rotationYaw); - $this.$rotationYaw = $this.$rotationYaw + $var7 / $this.$turnProgress; - $this.$rotationPitch = $this.$rotationPitch + ($this.$minecartPitch - $this.$rotationPitch) / $this.$turnProgress; - $this.$turnProgress = $this.$turnProgress - 1 | 0; - nms_Entity_setPosition($this, $var19, $var21, $var5); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } - return; - } - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$motionY = $this.$motionY - 0.03999999910593033; - $var4 = $this.$posX; - $var18 = $var4 | 0; - if ($var4 < $var18) - $var18 = $var18 - 1 | 0; - $var2 = nms_MathHelper_floor_double($this.$posY); - $var20 = nms_MathHelper_floor_double($this.$posZ); - if (nms_BlockRailBase_isRailBlockAt($this.$worldObj, $var18, $var2 - 1 | 0, $var20)) - $var2 = $var2 + (-1) | 0; - $var4 = 0.4; - $var6 = 0.0078125; - $var8 = nms_World_getBlockId($this.$worldObj, $var18, $var2, $var20); - if (!nms_BlockRailBase_isRailBlock($var8)) { - $ptr = 3; - continue main; - } - $var9 = nms_World_getBlockMetadata($this.$worldObj, $var18, $var2, $var20); - $ptr = 4; - continue main; - case 3: - nms_EntityMinecart_func_94088_b($this, $var4); - if ($rt_suspending()) { - break main; - } - $ptr = 5; - continue main; - case 4: - $this.$updateOnTrack($var18, $var2, $var20, $var4, $var6, $var8, $var9); - if ($rt_suspending()) { - break main; - } - nms_Block_$callClinit(); - if ($var8 == nms_Block_railActivator.$blockID) - $this.$onActivatorRailPass($var18, $var2, $var20, !($var9 & 8) ? 0 : 1); - $ptr = 5; - case 5: - nms_Entity_doBlockCollisions($this); - if ($rt_suspending()) { - break main; - } - $this.$rotationPitch = 0.0; - $var22 = $this.$prevPosX - $this.$posX; - $var11 = $this.$prevPosZ - $this.$posZ; - if ($var22 * $var22 + $var11 * $var11 > 0.001) { - $this.$rotationYaw = jl_Math_atan2($var11, $var22) * 180.0 / 3.141592653589793; - if ($this.$isInReverse) - $this.$rotationYaw = $this.$rotationYaw + 180.0; - } - $var13 = nms_MathHelper_wrapAngleTo180_float($this.$rotationYaw - $this.$prevRotationYaw); - if (!($var13 >= (-170.0) && $var13 < 170.0)) { - $this.$rotationYaw = $this.$rotationYaw + 180.0; - $this.$isInReverse = $this.$isInReverse ? 0 : 1; - } - a: { - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - $var15 = nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_expand($this.$boundingBox, 0.20000000298023224, 0.0, 0.20000000298023224)); - if ($var15 !== null && !ju_AbstractCollection_isEmpty($var15)) { - $var16 = 0; - while (true) { - if ($var16 >= ju_ArrayList_size($var15)) - break a; - $var17 = ju_ArrayList_get($var15, $var16); - if ($var17 !== $this.$riddenByEntity && $var17.$canBePushed() && $var17 instanceof nms_EntityMinecart) - $var17.$applyEntityCollision($this); - $var16 = $var16 + 1 | 0; - } - } - } - if ($this.$riddenByEntity !== null && $this.$riddenByEntity.$isDead) { - if ($this.$riddenByEntity.$ridingEntity === $this) - $this.$riddenByEntity.$ridingEntity = null; - $this.$riddenByEntity = null; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var15, $var8, $var19, $var21, $var5, $var7, $var4, $var18, $var2, $var20, $var6, $var9, $var22, $var11, $var13, $var16, $var17, $ptr); -} -function nms_EntityMinecart_onActivatorRailPass($this, $par1, $par2, $par3, $par4) { - return; -} -function nms_EntityMinecart_func_94088_b($this, $par1) { - 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();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$motionX; - var$3 = -$par1; - if (var$2 < var$3) - $this.$motionX = var$3; - if ($this.$motionX > $par1) - $this.$motionX = $par1; - if ($this.$motionZ < var$3) - $this.$motionZ = var$3; - if ($this.$motionZ > $par1) - $this.$motionZ = $par1; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.5; - $this.$motionZ = $this.$motionZ * 0.5; - } - $par1 = $this.$motionX; - var$2 = $this.$motionY; - var$3 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, $par1, var$2, var$3); - if ($rt_suspending()) { - break main; - } - if (!$this.$onGround) { - $this.$motionX = $this.$motionX * 0.949999988079071; - $this.$motionY = $this.$motionY * 0.949999988079071; - $this.$motionZ = $this.$motionZ * 0.949999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, var$3, $ptr); -} -function nms_EntityMinecart_updateOnTrack($this, $par1, $par2, $par3, $par4, $par6, $par8, $par9) { - var $var10, $var11, $var12, $var13, $var14, $var16, $var18, $var22, $var24, $var26, $var41, $var39, $var28, $var30, $var32, $var34, $var36, $var38, $var45, $var40, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var40 = $thread.pop();$var45 = $thread.pop();$var38 = $thread.pop();$var36 = $thread.pop();$var34 = $thread.pop();$var32 = $thread.pop();$var30 = $thread.pop();$var28 = $thread.pop();$var39 = $thread.pop();$var41 = $thread.pop();$var26 = $thread.pop();$var24 = $thread.pop();$var22 = $thread.pop();$var18 = $thread.pop();$var16 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 - = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$fallDistance = 0.0; - $var10 = nms_EntityMinecart_func_70489_a($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$posY = $par2; - $var11 = 0; - $var12 = 0; - nms_Block_$callClinit(); - if ($par8 == nms_Block_railPowered.$blockID) { - $var11 = !($par9 & 8) ? 0 : 1; - $var12 = $var11 ? 0 : 1; - } - if (nms_BlockRailBase_isPowered(nms_Block_blocksList.data[$par8])) - $par9 = $par9 & 7; - $par8 = $rt_compare($par9, 2); - if ($par8 >= 0 && $par9 <= 5) - $this.$posY = $par2 + 1 | 0; - if (!$par8) - $this.$motionX = $this.$motionX - $par6; - if ($par9 == 3) - $this.$motionX = $this.$motionX + $par6; - if ($par9 == 4) - $this.$motionZ = $this.$motionZ + $par6; - if ($par9 == 5) - $this.$motionZ = $this.$motionZ - $par6; - $var13 = nms_EntityMinecart_matrix.data[$par9].data; - $var14 = $var13[1].data[0] - $var13[0].data[0] | 0; - $var16 = $var13[1].data[2] - $var13[0].data[2] | 0; - $var18 = jl_Math_sqrt($var14 * $var14 + $var16 * $var16); - if ($this.$motionX * $var14 + $this.$motionZ * $var16 < 0.0) { - $var14 = -$var14; - $var16 = -$var16; - } - $var22 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - if ($var22 > 2.0) - $var22 = 2.0; - $this.$motionX = $var22 * $var14 / $var18; - $this.$motionZ = $var22 * $var16 / $var18; - if ($this.$riddenByEntity !== null) { - $var24 = $this.$riddenByEntity.$motionX * $this.$riddenByEntity.$motionX + $this.$riddenByEntity.$motionZ * $this.$riddenByEntity.$motionZ; - $var26 = $this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ; - if ($var24 > 1.0E-4 && $var26 < 0.01) { - $this.$motionX = $this.$motionX + $this.$riddenByEntity.$motionX * 0.1; - $this.$motionZ = $this.$motionZ + $this.$riddenByEntity.$motionZ * 0.1; - $var12 = 0; - } - } - if ($var12) { - if (jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ) >= 0.03) { - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.0; - $this.$motionZ = $this.$motionZ * 0.5; - } else { - $this.$motionX = $this.$motionX * 0.0; - $this.$motionY = $this.$motionY * 0.0; - $this.$motionZ = $this.$motionZ * 0.0; - } - } - $par6 = $par1; - $var14 = $par6 + 0.5; - $var26 = $var14 + $var13[0].data[0] * 0.5; - $var41 = $par3; - $var39 = $var41 + 0.5; - $var28 = $var39 + $var13[0].data[2] * 0.5; - $var30 = $var14 + $var13[1].data[0] * 0.5; - $var32 = $var39 + $var13[1].data[2] * 0.5; - $var24 = $var30 - $var26; - $var34 = $var32 - $var28; - if ($var24 === 0.0) { - $this.$posX = $var14; - $par6 = $this.$posZ - $var41; - } else if ($var34 === 0.0) { - $this.$posZ = $var39; - $par6 = $this.$posX - $par6; - } else - $par6 = (($this.$posX - $var26) * $var24 + ($this.$posZ - $var28) * $var34) * 2.0; - $this.$posX = $var26 + $var24 * $par6; - $this.$posZ = $var28 + $var34 * $par6; - nms_Entity_setPosition($this, $this.$posX, $this.$posY + $this.$yOffset0, $this.$posZ); - $var34 = $this.$motionX; - $var36 = $this.$motionZ; - if ($this.$riddenByEntity !== null) { - $var34 = $var34 * 0.75; - $var36 = $var36 * 0.75; - } - $par6 = -$par4; - if ($var34 < $par6) - $var34 = $par6; - if ($var34 > $par4) - $var34 = $par4; - if ($var36 >= $par6) - $par6 = $var36; - if ($par6 <= $par4) - $par4 = $par6; - $par6 = 0.0; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, $var34, $par6, $par4); - if ($rt_suspending()) { - break main; - } - if ($var13[0].data[1] && (nms_MathHelper_floor_double($this.$posX) - $par1 | 0) == $var13[0].data[0] && (nms_MathHelper_floor_double($this.$posZ) - $par3 | 0) == $var13[0].data[2]) - nms_Entity_setPosition($this, $this.$posX, $this.$posY + $var13[0].data[1], $this.$posZ); - else if ($var13[1].data[1] && (nms_MathHelper_floor_double($this.$posX) - $par1 | 0) == $var13[1].data[0] && (nms_MathHelper_floor_double($this.$posZ) - $par3 | 0) == $var13[1].data[2]) - nms_Entity_setPosition($this, $this.$posX, $this.$posY + $var13[1].data[1], $this.$posZ); - $this.$applyDrag(); - $var38 = nms_EntityMinecart_func_70489_a($this, $this.$posX, $this.$posY, $this.$posZ); - if ($var38 !== null && $var10 !== null) { - $var39 = ($var10.$yCoord - $var38.$yCoord) * 0.05; - $par4 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - if ($par4 > 0.0) { - $par6 = $this.$motionX / $par4; - $var14 = $par4 + $var39; - $this.$motionX = $par6 * $var14; - $this.$motionZ = $this.$motionZ / $par4 * $var14; - } - nms_Entity_setPosition($this, $this.$posX, $var38.$yCoord, $this.$posZ); - } - $var45 = nms_MathHelper_floor_double($this.$posX); - $var40 = nms_MathHelper_floor_double($this.$posZ); - if (!($var45 == $par1 && $var40 == $par3)) { - $par4 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$motionX = $par4 * ($var45 - $par1 | 0); - $this.$motionZ = $par4 * ($var40 - $par3 | 0); - } - if ($var11) { - $var41 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - if ($var41 > 0.01) { - $this.$motionX = $this.$motionX + $this.$motionX / $var41 * 0.06; - $this.$motionZ = $this.$motionZ + $this.$motionZ / $var41 * 0.06; - } else if ($par9 == 1) { - if (nms_World_isBlockNormalCube($this.$worldObj, $par1 - 1 | 0, $par2, $par3)) - $this.$motionX = 0.02; - else if (nms_World_isBlockNormalCube($this.$worldObj, $par1 + 1 | 0, $par2, $par3)) - $this.$motionX = (-0.02); - } else if (!$par9) { - if (nms_World_isBlockNormalCube($this.$worldObj, $par1, $par2, $par3 - 1 | 0)) - $this.$motionZ = 0.02; - else if (nms_World_isBlockNormalCube($this.$worldObj, $par1, $par2, $par3 + 1 | 0)) - $this.$motionZ = (-0.02); - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par6, $par8, $par9, $var10, $var11, $var12, $var13, $var14, $var16, $var18, $var22, $var24, $var26, $var41, $var39, $var28, $var30, $var32, $var34, $var36, $var38, $var45, $var40, $ptr); -} -function nms_EntityMinecart_applyDrag($this) { - if ($this.$riddenByEntity === null) { - $this.$motionX = $this.$motionX * 0.9599999785423279; - $this.$motionY = $this.$motionY * 0.0; - $this.$motionZ = $this.$motionZ * 0.9599999785423279; - } else { - $this.$motionX = $this.$motionX * 0.996999979019165; - $this.$motionY = $this.$motionY * 0.0; - $this.$motionZ = $this.$motionZ * 0.996999979019165; - } -} -function nms_EntityMinecart_func_70495_a($this, $par1, $par3, $par5, $par7) { - var $var9, $var10, $var11, $var12, $var13, var$10, $var15, $var17, $var19; - $var9 = $par1 | 0; - if ($par1 < $var9) - $var9 = $var9 - 1 | 0; - $var10 = $par3 | 0; - if ($par3 < $var10) - $var10 = $var10 - 1 | 0; - $var11 = $par5 | 0; - if ($par5 < $var11) - $var11 = $var11 - 1 | 0; - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$worldObj, $var9, $var10 - 1 | 0, $var11))) - $var10 = $var10 + (-1) | 0; - $var12 = nms_World_getBlockId($this.$worldObj, $var9, $var10, $var11); - if (!nms_BlockRailBase_isRailBlock($var12)) - return null; - $var13 = nms_World_getBlockMetadata($this.$worldObj, $var9, $var10, $var11); - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var12].$isPowered) - $var13 = $var13 & 7; - $par3 = $var10; - if ($var13 >= 2 && $var13 <= 5) - $par3 = $var10 + 1 | 0; - a: { - var$10 = nms_EntityMinecart_matrix.data[$var13].data; - $var15 = var$10[1].data[0] - var$10[0].data[0] | 0; - $var17 = var$10[1].data[2] - var$10[0].data[2] | 0; - $var19 = jl_Math_sqrt($var15 * $var15 + $var17 * $var17); - $var15 = $var15 / $var19; - $var17 = $var17 / $var19; - $var15 = $par1 + $var15 * $par7; - $par5 = $par5 + $var17 * $par7; - if (var$10[0].data[1]) { - $var10 = $var15 | 0; - if ($var15 < $var10) - $var10 = $var10 - 1 | 0; - if (($var10 - $var9 | 0) == var$10[0].data[0]) { - $var10 = $par5 | 0; - if ($par5 < $var10) - $var10 = $var10 - 1 | 0; - if (($var10 - $var11 | 0) == var$10[0].data[2]) { - $par3 = $par3 + var$10[0].data[1]; - break a; - } - } - } - if (var$10[1].data[1]) { - $var10 = $var15 | 0; - if ($var15 < $var10) - $var10 = $var10 - 1 | 0; - if (($var10 - $var9 | 0) == var$10[1].data[0]) { - $var12 = $par5 | 0; - if ($par5 < $var12) - $var12 = $var12 - 1 | 0; - if (($var12 - $var11 | 0) == var$10[1].data[2]) - $par3 = $par3 + var$10[1].data[1]; - } - } - } - return nms_EntityMinecart_func_70489_a($this, $var15, $par3, $par5); -} -function nms_EntityMinecart_func_70489_a($this, $par1, $par3, $par5) { - var $var7, $var8, $var9, $var10, $var11, $var23, $var12, $var33, $var25, $var15, $var17, $var35, $var27, $var19, $var21, $var29, $var31; - $var7 = $par1 | 0; - if ($par1 < $var7) - $var7 = $var7 - 1 | 0; - $var8 = $par3 | 0; - if ($par3 < $var8) - $var8 = $var8 - 1 | 0; - $var9 = $par5 | 0; - if ($par5 < $var9) - $var9 = $var9 - 1 | 0; - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$worldObj, $var7, $var8 - 1 | 0, $var9))) - $var8 = $var8 + (-1) | 0; - $var10 = nms_World_getBlockId($this.$worldObj, $var7, $var8, $var9); - if (!nms_BlockRailBase_isRailBlock($var10)) - return null; - $var11 = nms_World_getBlockMetadata($this.$worldObj, $var7, $var8, $var9); - $var23 = $var8; - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var10].$isPowered) - $var11 = $var11 & 7; - $var12 = nms_EntityMinecart_matrix.data[$var11].data; - $var33 = $var7; - $var25 = $var33 + 0.5; - $var15 = $var25 + $var12[0].data[0] * 0.5; - $par3 = $var23 + 0.5; - $var17 = $par3 + $var12[0].data[1] * 0.5; - $var35 = $var9; - $var27 = $var35 + 0.5; - $var19 = $var27 + $var12[0].data[2] * 0.5; - $var21 = $var25 + $var12[1].data[0] * 0.5; - $var23 = $par3 + $var12[1].data[1] * 0.5; - $var25 = $var27 + $var12[1].data[2] * 0.5; - $var27 = $var21 - $var15; - $var29 = ($var23 - $var17) * 2.0; - $var31 = $var25 - $var19; - $par1 = $var27 === 0.0 ? $par5 - $var35 : $var31 === 0.0 ? $par1 - $var33 : (($par1 - $var15) * $var27 + ($par5 - $var19) * $var31) * 2.0; - $par3 = $var15 + $var27 * $par1; - $par5 = $var17 + $var29 * $par1; - $par1 = $var19 + $var31 * $par1; - $var10 = $rt_compare($var29, 0.0); - if ($var10 < 0) - $par5 = $par5 + 1.0; - if ($var10 > 0) - $par5 = $par5 + 0.5; - return nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $par3, $par5, $par1); -} -function nms_EntityMinecart_getShadowSize($this) { - return 0.0; -} -function nms_EntityMinecart_applyEntityCollision($this, $par1Entity) { - var $var2, $var4, $var6, $var8, $var10, $var12, $var14, $var15, var$10, $var16, $var18, $var20; - if (!$this.$worldObj.$isRemote && $par1Entity !== $this.$riddenByEntity) { - if ($par1Entity instanceof nms_EntityLiving && !($par1Entity instanceof nms_EntityPlayer) && !($par1Entity instanceof nms_EntityIronGolem) && !$this.$getMinecartType() && $this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ > 0.01 && $this.$riddenByEntity === null && $par1Entity.$ridingEntity === null) - $par1Entity.$mountEntity($this); - $var2 = $par1Entity.$posX - $this.$posX; - $var4 = $par1Entity.$posZ - $this.$posZ; - $var6 = $var2 * $var2 + $var4 * $var4; - if ($var6 >= 9.999999747378752E-5) { - $var6 = jl_Math_sqrt($var6); - $var2 = $var2 / $var6; - $var4 = $var4 / $var6; - $var8 = 1.0 / $var6; - if ($var8 > 1.0) - $var8 = 1.0; - $var2 = $var2 * $var8; - $var4 = $var4 * $var8; - $var2 = $var2 * 0.10000000149011612; - $var4 = $var4 * 0.10000000149011612; - $var6 = $var2 * (1.0 - $this.$entityCollisionReduction); - $var2 = $var4 * (1.0 - $this.$entityCollisionReduction); - $var4 = $var6 * 0.5; - $var2 = $var2 * 0.5; - if (!($par1Entity instanceof nms_EntityMinecart)) { - $var6 = -$var4; - $var10 = -$var2; - $this.$motionX = $this.$motionX + $var6; - $this.$motionY = $this.$motionY + 0.0; - $this.$motionZ = $this.$motionZ + $var10; - $this.$isAirBorne = 1; - $var6 = $var4 / 4.0; - $var2 = $var2 / 4.0; - $par1Entity.$motionX = $par1Entity.$motionX + $var6; - $par1Entity.$motionY = $par1Entity.$motionY + 0.0; - $par1Entity.$motionZ = $par1Entity.$motionZ + $var2; - $par1Entity.$isAirBorne = 1; - } else { - $var10 = $par1Entity.$posX - $this.$posX; - $var12 = $par1Entity.$posZ - $this.$posZ; - $var14 = nms_Vec3_normalize(nms_Vec3Pool_getVecFromPool($this.$worldObj.$vecPool, $var10, 0.0, $var12)); - $var15 = $this.$worldObj.$vecPool; - var$10 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - $var6 = nms_MathHelper_SIN_TABLE.data[(var$10 * 10430.3779296875 + 16384.0 | 0) & 65535]; - var$10 = $this.$rotationYaw * 3.1415927410125732 / 180.0; - $var16 = nms_Vec3_dotProduct($var14, nms_Vec3_normalize(nms_Vec3Pool_getVecFromPool($var15, $var6, 0.0, nms_MathHelper_SIN_TABLE.data[(var$10 * 10430.3779296875 | 0) & 65535]))); - if ($var16 <= 0.0) - $var16 = -$var16; - if ($var16 < 0.800000011920929) - return; - $var18 = $par1Entity.$motionX + $this.$motionX; - $var20 = $par1Entity.$motionZ + $this.$motionZ; - $var14 = $par1Entity; - if ($var14.$getMinecartType() == 2 && $this.$getMinecartType() != 2) { - $this.$motionX = $this.$motionX * 0.20000000298023224; - $this.$motionZ = $this.$motionZ * 0.20000000298023224; - nms_Entity_addVelocity($this, $par1Entity.$motionX - $var4, 0.0, $par1Entity.$motionZ - $var2); - $par1Entity.$motionX = $par1Entity.$motionX * 0.949999988079071; - $par1Entity.$motionZ = $par1Entity.$motionZ * 0.949999988079071; - } else if ($var14.$getMinecartType() != 2 && $this.$getMinecartType() == 2) { - $par1Entity.$motionX = $par1Entity.$motionX * 0.20000000298023224; - $par1Entity.$motionZ = $par1Entity.$motionZ * 0.20000000298023224; - nms_Entity_addVelocity($par1Entity, $this.$motionX + $var4, 0.0, $this.$motionZ + $var2); - $this.$motionX = $this.$motionX * 0.949999988079071; - $this.$motionZ = $this.$motionZ * 0.949999988079071; - } else { - $var6 = $var18 / 2.0; - $var8 = $var20 / 2.0; - $this.$motionX = $this.$motionX * 0.20000000298023224; - $this.$motionZ = $this.$motionZ * 0.20000000298023224; - nms_Entity_addVelocity($this, $var6 - $var4, 0.0, $var8 - $var2); - $par1Entity.$motionX = $par1Entity.$motionX * 0.20000000298023224; - $par1Entity.$motionZ = $par1Entity.$motionZ * 0.20000000298023224; - nms_Entity_addVelocity($par1Entity, $var6 + $var4, 0.0, $var8 + $var2); - } - } - } - } -} -function nms_EntityMinecart_setPositionAndRotation2($this, $par1, $par3, $par5, $par7, $par8, $par9) { - $this.$minecartX = $par1; - $this.$minecartY = $par3; - $this.$minecartZ = $par5; - $this.$minecartYaw = $par7; - $this.$minecartPitch = $par8; - $this.$turnProgress = $par9 + 2 | 0; - $this.$motionX = $this.$velocityX; - $this.$motionY = $this.$velocityY; - $this.$motionZ = $this.$velocityZ; -} -function nms_EntityMinecart_setVelocity($this, $par1, $par3, $par5) { - $this.$motionX = $par1; - $this.$velocityX = $par1; - $this.$motionY = $par3; - $this.$velocityY = $par3; - $this.$motionZ = $par5; - $this.$velocityZ = $par5; -} -function nms_EntityMinecart_setDamage($this, $par1) { - nms_DataWatcher_updateObject($this.$dataWatcher, 19, jl_Integer_valueOf($par1)); -} -function nms_EntityMinecart_getDamage($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19); -} -function nms_EntityMinecart_setRollingAmplitude($this, $par1) { - nms_DataWatcher_updateObject($this.$dataWatcher, 17, jl_Integer_valueOf($par1)); -} -function nms_EntityMinecart_getRollingAmplitude($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 17); -} -function nms_EntityMinecart_setRollingDirection($this, $par1) { - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf($par1)); -} -function nms_EntityMinecart_getRollingDirection($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); -} -function nms_EntityMinecart_getDisplayTile($this) { - var $var1, var$2; - if (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 22) != 1 ? 0 : 1)) - return $this.$getDefaultDisplayTile(); - a: { - $var1 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 20) & 65535; - if ($var1 > 0) { - nms_Block_$callClinit(); - if ($var1 < nms_Block_blocksList.data.length) { - var$2 = nms_Block_blocksList.data[$var1]; - break a; - } - } - var$2 = null; - } - return var$2; -} -function nms_EntityMinecart_getDefaultDisplayTile($this) { - return null; -} -function nms_EntityMinecart_getDisplayTileData($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 22) != 1 ? 0 : 1) ? $this.$getDefaultDisplayTileData() : nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 20) >> 16; -} -function nms_EntityMinecart_getDefaultDisplayTileData($this) { - return 0; -} -function nms_EntityMinecart_getDisplayTileOffset($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 22) != 1 ? 0 : 1) ? $this.$getDefaultDisplayTileOffset() : nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 21); -} -function nms_EntityMinecart_getDefaultDisplayTileOffset($this) { - return 6; -} -function nms_EntityMinecart_hasDisplayTile($this) { - return nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 22) != 1 ? 0 : 1; -} -function nms_EntityMinecart_func_96094_a($this, $par1Str) { - $this.$entityName = $par1Str; -} -function nms_EntityMinecart_getEntityName($this) { - var var$1, var$2, var$3; - if ($this.$entityName !== null) - var$1 = $this.$entityName; - else { - var$1 = nms_EntityList_classToStringMapping; - 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; - } - } - var$1 = var$1 === null ? null : var$1.$value0; - if (var$1 === null) - var$1 = $rt_s(681); - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(682)); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$1); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(683)); - var$1 = jl_String__init_0(var$2.$buffer, 0, var$2.$length); - var$1 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$1); - } - return var$1; -} -function nms_EntityMinecart_isInvNameLocalized($this) { - return $this.$entityName === null ? 0 : 1; -} -function nms_EntityMinecart_func_95999_t($this) { - return $this.$entityName; -} -function nms_EntityMinecart__clinit_() { - var var$1, var$2, var$3, var$4, var$5, var$6; - var$1 = $rt_createArray($rt_arraycls($rt_arraycls($rt_intcls())), 10); - var$2 = var$1.data; - var$3 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$3.data; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 0; - var$6[1] = 0; - var$6[2] = (-1); - var$4[0] = var$5; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 0; - var$6[1] = 0; - var$6[2] = 1; - var$4[1] = var$5; - var$2[0] = var$3; - var$3 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$3.data; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = (-1); - var$6[1] = 0; - var$6[2] = 0; - var$4[0] = var$5; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 1; - var$6[1] = 0; - var$6[2] = 0; - var$4[1] = var$5; - var$2[1] = var$3; - var$3 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$3.data; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = (-1); - var$6[1] = (-1); - var$6[2] = 0; - var$4[0] = var$5; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 1; - var$6[1] = 0; - var$6[2] = 0; - var$4[1] = var$5; - var$2[2] = var$3; - var$3 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$3.data; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = (-1); - var$6[1] = 0; - var$6[2] = 0; - var$4[0] = var$5; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 1; - var$6[1] = (-1); - var$6[2] = 0; - var$4[1] = var$5; - var$2[3] = var$3; - var$3 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$3.data; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 0; - var$6[1] = 0; - var$6[2] = (-1); - var$4[0] = var$5; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 0; - var$6[1] = (-1); - var$6[2] = 1; - var$4[1] = var$5; - var$2[4] = var$3; - var$3 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$3.data; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 0; - var$6[1] = (-1); - var$6[2] = (-1); - var$4[0] = var$5; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 0; - var$6[1] = 0; - var$6[2] = 1; - var$4[1] = var$5; - var$2[5] = var$3; - var$6 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$6.data; - var$3 = $rt_createIntArray(3); - var$5 = var$3.data; - var$5[0] = 0; - var$5[1] = 0; - var$5[2] = 1; - var$4[0] = var$3; - var$3 = $rt_createIntArray(3); - var$5 = var$3.data; - var$5[0] = 1; - var$5[1] = 0; - var$5[2] = 0; - var$4[1] = var$3; - var$2[6] = var$6; - var$3 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$3.data; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 0; - var$6[1] = 0; - var$6[2] = 1; - var$4[0] = var$5; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = (-1); - var$6[1] = 0; - var$6[2] = 0; - var$4[1] = var$5; - var$2[7] = var$3; - var$3 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$3.data; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 0; - var$6[1] = 0; - var$6[2] = (-1); - var$4[0] = var$5; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = (-1); - var$6[1] = 0; - var$6[2] = 0; - var$4[1] = var$5; - var$2[8] = var$3; - var$3 = $rt_createArray($rt_arraycls($rt_intcls()), 2); - var$4 = var$3.data; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 0; - var$6[1] = 0; - var$6[2] = (-1); - var$4[0] = var$5; - var$5 = $rt_createIntArray(3); - var$6 = var$5.data; - var$6[0] = 1; - var$6[1] = 0; - var$6[2] = 0; - var$4[1] = var$5; - var$2[9] = var$3; - nms_EntityMinecart_matrix = var$1; -} -function nms_EntityMinecartTNT() { - nms_EntityMinecart.call(this); - this.$minecartTNTFuse = 0; -} -function nms_EntityMinecartTNT_getMinecartType($this) { - return 3; -} -function nms_EntityMinecartTNT_getDefaultDisplayTile($this) { - nms_Block_$callClinit(); - return nms_Block_tnt; -} -function nms_EntityMinecartTNT_onUpdate($this) { - var $var1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - a: { - nms_EntityMinecart_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$minecartTNTFuse <= 0) { - if ($this.$minecartTNTFuse) - break a; - $var1 = $this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ; - $ptr = 2; - continue main; - } - $this.$minecartTNTFuse = $this.$minecartTNTFuse - 1 | 0; - var$2 = $this.$worldObj; - var$3 = $rt_s(852); - var$4 = $this.$posX; - var$5 = $this.$posY + 0.5; - var$6 = $this.$posZ; - $var1 = 0.0; - var$7 = 0.0; - var$8 = 0.0; - var$9 = 0; - if (var$9 < var$2.$worldAccesses.$size0) { - var$10 = var$2.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - $ptr = 4; - continue main; - } - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - } - if ($this.$isCollidedHorizontally) { - $var1 = $this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ; - if ($var1 >= 0.009999999776482582) { - $ptr = 3; - continue main; - } - } - return; - case 2: - nms_EntityMinecartTNT_explodeCart($this, $var1); - if ($rt_suspending()) { - break main; - } - if ($this.$isCollidedHorizontally) { - $var1 = $this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ; - if ($var1 >= 0.009999999776482582) { - $ptr = 3; - continue main; - } - } - return; - case 3: - nms_EntityMinecartTNT_explodeCart($this, $var1); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_RenderGlobal_doSpawnParticle(var$10, var$3, var$4, var$5, var$6, $var1, var$7, var$8); - if ($rt_suspending()) { - break main; - } - var$9 = var$9 + 1 | 0; - if (var$9 >= var$2.$worldAccesses.$size0) { - if ($this.$isCollidedHorizontally) { - $var1 = $this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ; - if ($var1 >= 0.009999999776482582) { - $ptr = 3; - continue main; - } - } - return; - } - var$10 = var$2.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - continue main; - } - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -} -function nms_EntityMinecartTNT_killMinecart($this, $par1DamageSource) { - var $var2, var$3, var$4, var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityMinecart_killMinecart($this, $par1DamageSource); - if ($rt_suspending()) { - break main; - } - $var2 = $this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ; - if (!$par1DamageSource.$explosion) { - var$3 = new nms_ItemStack; - nms_Block_$callClinit(); - var$4 = nms_Block_tnt.$blockID; - var$3.$stackSize = 0; - var$3.$itemFrame = null; - var$3.$itemID0 = var$4; - var$3.$stackSize = 1; - var$3.$itemDamage = 0; - if (var$3.$itemDamage < 0) - var$3.$itemDamage = 0; - var$5 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$5.$dataWatcher, 10, var$3); - nms_DataWatcher_setObjectWatched(var$5.$dataWatcher, 10); - var$5.$delayBeforeCanPickup = 10; - var$6 = $this.$worldObj; - var$7 = nms_World_spawnEntityInWorld(var$6, var$5); - var$3 = var$6.$entityList; - ju_HashMap_putImpl(var$3.$backingMap, var$5, var$3); - if (!var$7) { - var$6 = var$6.$entitySpawnQueue; - ju_HashMap_putImpl(var$6.$backingMap, var$5, var$6); - } - } - if (!$par1DamageSource.$fireDamage && !$par1DamageSource.$explosion && $var2 < 0.009999999776482582) - return; - $ptr = 2; - case 2: - nms_EntityMinecartTNT_explodeCart($this, $var2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $var2, var$3, var$4, var$5, var$6, var$7, $ptr); -} -function nms_EntityMinecartTNT_explodeCart($this, $par1) { - var $var3, var$3, var$4, var$5, var$6, 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();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var3 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$worldObj.$isRemote) - return; - $var3 = jl_Math_sqrt($par1); - if ($var3 > 5.0) - $var3 = 5.0; - var$3 = $this.$worldObj; - var$4 = $this.$posX; - var$5 = $this.$posY; - var$6 = $this.$posZ; - var$7 = 4.0 + Math.random() * 1.5 * $var3; - var$8 = nms_Explosion__init_(var$3, $this, var$4, var$5, var$6, var$7); - var$8.$isFlaming = 0; - var$8.$isSmoking = 1; - $ptr = 1; - case 1: - nms_Explosion_doExplosionA(var$8); - if ($rt_suspending()) { - break main; - } - var$9 = 1; - $ptr = 2; - case 2: - nms_Explosion_doExplosionB(var$8, var$9); - if ($rt_suspending()) { - break main; - } - $this.$isDead = 1; - if ($this.$field_82344_g === null) - return; - var$3 = $this.$field_82344_g; - $ptr = 3; - case 3: - nms_SoundUpdaterMinecart_update(var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var3, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $ptr); -} -function nms_EntityMinecartTNT_fall($this, $par1) { - var var$2, $var2, var$4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $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: - if ($par1 < 3.0) { - if ($this.$riddenByEntity === null) - return; - var$2 = $this.$riddenByEntity; - $ptr = 2; - continue main; - } - $var2 = $par1 / 10.0; - var$4 = $var2 * $var2; - $ptr = 1; - case 1: - nms_EntityMinecartTNT_explodeCart($this, var$4); - if ($rt_suspending()) { - break main; - } - if ($this.$riddenByEntity === null) - return; - var$2 = $this.$riddenByEntity; - $ptr = 2; - case 2: - var$2.$fall($par1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, $var2, var$4, $ptr); -} -function nms_EntityMinecartTNT_onActivatorRailPass($this, $par1, $par2, $par3, $par4) { - if ($par4 && $this.$minecartTNTFuse < 0) { - $this.$minecartTNTFuse = 80; - if (!$this.$worldObj.$isRemote) - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1244), 1.0, 1.0); - } -} -function nms_EntityMinecartTNT_handleHealthUpdate($this, $par1) { - if ($par1 == 10) { - $this.$minecartTNTFuse = 80; - if (!$this.$worldObj.$isRemote) - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1244), 1.0, 1.0); - } -} -function nms_EntityMinecartTNT_ignite($this) { - $this.$minecartTNTFuse = 80; - if (!$this.$worldObj.$isRemote) - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(1244), 1.0, 1.0); -} -function nms_EntityMinecartTNT_func_94104_d($this) { - return $this.$minecartTNTFuse; -} -function nms_EntityMinecartTNT_isIgnited($this) { - return $this.$minecartTNTFuse <= (-1) ? 0 : 1; -} -function nms_EntityMinecartTNT_func_82146_a($this, $par1Explosion, $par2World, $par3, $par4, $par5, $par6Block) { - var var$7; - var$7 = $this.$minecartTNTFuse <= (-1) ? 0 : 1; - return var$7 && !(!nms_BlockRailBase_isRailBlock($par6Block.$blockID) && !nms_BlockRailBase_isRailBlock(nms_World_getBlockId($par2World, $par3, $par4 + 1 | 0, $par5))) ? 0.0 : $par6Block.$getExplosionResistance($this); -} -function nms_EntityMinecartTNT_func_96091_a($this, $par1Explosion, $par2World, $par3, $par4, $par5, $par6, $par7) { - var var$8; - var$8 = $this.$minecartTNTFuse <= (-1) ? 0 : 1; - return var$8 && !(!nms_BlockRailBase_isRailBlock($par6) && !nms_BlockRailBase_isRailBlock(nms_World_getBlockId($par2World, $par3, $par4 + 1 | 0, $par5))) ? 0 : 1; -} -function nms_RenderMinecart() { - var a = this; nms_Render.call(a); - a.$modelMinecart = null; - a.$field_94145_f = null; -} -var nms_RenderMinecart_terrain = null; -var nms_RenderMinecart_cart = null; -function nms_RenderMinecart__init_0() { - var var_0 = new nms_RenderMinecart(); - nms_RenderMinecart__init_(var_0); - return var_0; -} -function nms_RenderMinecart__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$shadowSize = 0.5; - $this.$modelMinecart = nms_ModelMinecart__init_0(); - $this.$field_94145_f = nms_RenderBlocks__init_2(); -} -function nms_RenderMinecart_renderTheMinecart($this, $par1EntityMinecart, $par2, $par4, $par6, $par8, $par9) { - var $var10, var$8, $var12, $var13, $var14, $var23, $var25, $var26, $var29, $var15, $var17, $var19, $var24, $var27, $var31, $var32, $var33, $var28, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var28 = $thread.pop();$var33 = $thread.pop();$var32 = $thread.pop();$var31 = $thread.pop();$var27 = $thread.pop();$var24 = $thread.pop();$var19 = $thread.pop();$var17 = $thread.pop();$var15 = $thread.pop();$var29 = $thread.pop();$var26 = $thread.pop();$var25 = $thread.pop();$var23 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();var$8 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 - = $thread.pop();$par2 = $thread.pop();$par1EntityMinecart = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_glPushMatrix(); - $var10 = Long_mul(Long_fromInt($par1EntityMinecart.$entityId), Long_fromInt(493286711)); - var$8 = Long_add(Long_mul(Long_mul($var10, $var10), new Long(97199825, 1)), Long_mul($var10, Long_fromInt(98761))); - $var12 = ((Long_toNumber(Long_and(Long_shr(var$8, 16), Long_fromInt(7))) + 0.5) / 8.0 - 0.5) * 0.004000000189989805; - $var13 = ((Long_toNumber(Long_and(Long_shr(var$8, 20), Long_fromInt(7))) + 0.5) / 8.0 - 0.5) * 0.004000000189989805; - $var14 = ((Long_toNumber(Long_and(Long_shr(var$8, 24), Long_fromInt(7))) + 0.5) / 8.0 - 0.5) * 0.004000000189989805; - $var23 = nleg_EaglerAdapterGL30_deevis; - $var23.$x = $var12; - $var23.$y = $var13; - $var23.$z = $var14; - $var23 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var23, $var23); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var25 = new ji_PrintStream; - $var25.$out = new jl_ConsoleOutputStreamStderr; - $var23 = new jl_StringBuilder; - $var23.$buffer = $rt_createCharArray(16); - $var25.$sb = $var23; - $var25.$buffer0 = $rt_createCharArray(32); - $var25.$autoFlush = 0; - $var23 = new jnci_UTF8Charset; - jnc_Charset__init_($var23, $rt_s(2), $rt_createArray(jl_String, 0)); - $var25.$charset = $var23; - jl_System_errCache = $var25; - } - $var26 = jl_System_errCache; - $var25 = $var26.$sb; - jl_AbstractStringBuilder_insert($var25, $var25.$length, $rt_s(220)); - $var29 = $var25.$length; - jl_AbstractStringBuilder_insertSpace($var25, $var29, $var29 + 1 | 0); - $var25.$buffer.data[$var29] = 10; - ji_PrintStream_printSB($var26); - } - $var15 = $par1EntityMinecart.$lastTickPosX; - $var17 = $par1EntityMinecart.$posX - $par1EntityMinecart.$lastTickPosX; - $var19 = $par9; - $var15 = $var15 + $var17 * $var19; - $var17 = $par1EntityMinecart.$lastTickPosY + ($par1EntityMinecart.$posY - $par1EntityMinecart.$lastTickPosY) * $var19; - $var19 = $par1EntityMinecart.$lastTickPosZ + ($par1EntityMinecart.$posZ - $par1EntityMinecart.$lastTickPosZ) * $var19; - $var23 = nms_EntityMinecart_func_70489_a($par1EntityMinecart, $var15, $var17, $var19); - $var24 = $par1EntityMinecart.$prevRotationPitch + ($par1EntityMinecart.$rotationPitch - $par1EntityMinecart.$prevRotationPitch) * $par9; - if ($var23 !== null) { - $var25 = nms_EntityMinecart_func_70495_a($par1EntityMinecart, $var15, $var17, $var19, 0.30000001192092896); - $var26 = nms_EntityMinecart_func_70495_a($par1EntityMinecart, $var15, $var17, $var19, (-0.30000001192092896)); - if ($var25 === null) - $var25 = $var23; - if ($var26 === null) - $var26 = $var23; - $par2 = $par2 + $var23.$xCoord - $var15; - $par4 = $par4 + ($var25.$yCoord + $var26.$yCoord) / 2.0 - $var17; - $par6 = $par6 + $var23.$zCoord - $var19; - $var27 = nms_Vec3_addVector($var26, -$var25.$xCoord, -$var25.$yCoord, -$var25.$zCoord); - if (nms_Vec3_lengthVector($var27) !== 0.0) { - $var23 = nms_Vec3_normalize($var27); - $par8 = jl_Math_atan2($var23.$zCoord, $var23.$xCoord) * 180.0 / 3.141592653589793; - $var24 = jl_Math_atan($var23.$yCoord) * 73.0; - } - } - $var12 = $par2; - $var13 = $par4; - $var14 = $par6; - $var23 = nleg_EaglerAdapterGL30_deevis; - $var23.$x = $var12; - $var23.$y = $var13; - $var23.$z = $var14; - $var23 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var23, $var23); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - nleg_EaglerAdapterGL30_glRotatef(180.0 - $par8, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$var24, 0.0, 0.0, 1.0); - $var31 = nms_DataWatcher_getWatchableObjectInt($par1EntityMinecart.$dataWatcher, 17) - $par9; - $var32 = nms_EntityMinecart_getDamage($par1EntityMinecart) - $par9; - if ($var32 < 0.0) - $var32 = 0.0; - if ($var31 > 0.0) - nleg_EaglerAdapterGL30_glRotatef(nms_MathHelper_sin($var31) * $var31 * $var32 / 10.0 * nms_EntityMinecart_getRollingDirection($par1EntityMinecart), 1.0, 0.0, 0.0); - $var33 = nms_EntityMinecart_getDisplayTileOffset($par1EntityMinecart); - $var28 = nms_EntityMinecart_getDisplayTile($par1EntityMinecart); - $var29 = nms_EntityMinecart_getDisplayTileData($par1EntityMinecart); - if ($var28 === null) { - nle_TextureLocation_bindTexture(nms_RenderMinecart_cart); - nleg_EaglerAdapterGL30_glScalef((-1.0), (-1.0), 1.0); - nms_ModelMinecart_render($this.$modelMinecart, $par1EntityMinecart, 0.0, 0.0, (-0.10000000149011612), 0.0, 0.0, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - } - nleg_EaglerAdapterGL30_glPushMatrix(); - nle_TextureLocation_bindTexture(nms_RenderMinecart_terrain); - nleg_EaglerAdapterGL30_glScalef(0.75, 0.75, 0.75); - nleg_EaglerAdapterGL30_glTranslatef(0.0, $var33 / 16.0, 0.0); - $ptr = 1; - case 1: - $this.$renderBlockInMinecart($par1EntityMinecart, $par9, $var28, $var29); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture(nms_RenderMinecart_cart); - nleg_EaglerAdapterGL30_glScalef((-1.0), (-1.0), 1.0); - nms_ModelMinecart_render($this.$modelMinecart, $par1EntityMinecart, 0.0, 0.0, (-0.10000000149011612), 0.0, 0.0, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMinecart, $par2, $par4, $par6, $par8, $par9, $var10, var$8, $var12, $var13, $var14, $var23, $var25, $var26, $var29, $var15, $var17, $var19, $var24, $var27, $var31, $var32, $var33, $var28, $ptr); -} -function nms_RenderMinecart_renderBlockInMinecart($this, $par1EntityMinecart, $par2, $par3Block, $par4) { - var $var5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3Block = $thread.pop();$par2 = $thread.pop();$par1EntityMinecart = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_Entity_getBrightness($par1EntityMinecart, $par2); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityMinecart = $this.$field_94145_f; - $ptr = 1; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1EntityMinecart, $par3Block, $par4, $var5); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMinecart, $par2, $par3Block, $par4, $var5, $ptr); -} -function nms_RenderMinecart_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1Entity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Entity = $par1Entity; - $ptr = 1; - case 1: - nms_RenderMinecart_renderTheMinecart($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Entity, $par2, $par4, $par6, $par8, $par9, $ptr); -} -function nms_RenderMinecart__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderMinecart_terrain = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1524); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderMinecart_cart = var$1; -} -function nms_RenderTntMinecart() { - nms_RenderMinecart.call(this); -} -function nms_RenderTntMinecart__init_0() { - var var_0 = new nms_RenderTntMinecart(); - nms_RenderTntMinecart__init_(var_0); - return var_0; -} -function nms_RenderTntMinecart__init_($this) { - nms_RenderMinecart__init_($this); -} -function nms_RenderTntMinecart_func_94146_a($this, $par1EntityMinecartTNT, $par2, $par3Block, $par4) { - var $var5, var$6, $var6, $var7, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3Block = $thread.pop();$par2 = $thread.pop();$par1EntityMinecartTNT = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = $par1EntityMinecartTNT.$minecartTNTFuse; - var$6 = $rt_compare($var5, (-1)); - if (var$6 > 0) { - $var6 = $var5 - $par2 + 1.0; - if ($var6 < 10.0) { - $var6 = 1.0 - $var6 / 10.0; - if ($var6 < 0.0) - $var6 = 0.0; - if ($var6 > 1.0) - $var6 = 1.0; - $var6 = $var6 * $var6; - $var7 = 1.0 + $var6 * $var6 * 0.30000001192092896; - nleg_EaglerAdapterGL30_$callClinit(); - var$9 = nleg_EaglerAdapterGL30_deevis; - var$9.$x = $var7; - var$9.$y = $var7; - var$9.$z = $var7; - var$9 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$9, var$9); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - var$10.$sb = var$9; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - var$9 = new jnci_UTF8Charset; - jnc_Charset__init_(var$9, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = var$9; - jl_System_errCache = var$10; - } - var$9 = jl_System_errCache; - var$11 = var$9.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$12 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$12, var$12 + 1 | 0); - var$11.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$9); - } - } - } - $var6 = nms_Entity_getBrightness($par1EntityMinecartTNT, $par2); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityMinecartTNT = $this.$field_94145_f; - $ptr = 1; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1EntityMinecartTNT, $par3Block, $par4, $var6); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - if (var$6 > 0 && !(($var5 / 5 | 0) % 2 | 0)) { - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 80); - $par2 = (1.0 - ($var5 - $par2 + 1.0) / 100.0) * 0.800000011920929; - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = $par2; - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityMinecartTNT = $this.$field_94145_f; - nms_Block_$callClinit(); - $par3Block = nms_Block_tnt; - $par4 = 0; - $par2 = 1.0; - $ptr = 2; - continue main; - } - return; - case 2: - nms_RenderBlocks_renderBlockAsItem($par1EntityMinecartTNT, $par3Block, $par4, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(2); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMinecartTNT, $par2, $par3Block, $par4, $var5, var$6, $var6, $var7, var$9, var$10, var$11, var$12, $ptr); -} -function nms_RenderTntMinecart_renderBlockInMinecart($this, $par1EntityMinecart, $par2, $par3Block, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3Block = $thread.pop();$par2 = $thread.pop();$par1EntityMinecart = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1EntityMinecart = $par1EntityMinecart; - $ptr = 1; - case 1: - nms_RenderTntMinecart_func_94146_a($this, $par1EntityMinecart, $par2, $par3Block, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMinecart, $par2, $par3Block, $par4, $ptr); -} -function nms_EntityMinecartMobSpawner() { - nms_EntityMinecart.call(this); -} -function nms_EntityMinecartMobSpawner_getMinecartType($this) { - return 4; -} -function nms_EntityMinecartMobSpawner_getDefaultDisplayTile($this) { - nms_Block_$callClinit(); - return nms_Block_mobSpawner; -} -function nms_EntityMinecartMobSpawner_onUpdate($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: - $ptr = 1; - case 1: - nms_EntityMinecart_onUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -} -function nms_RenderMinecartMobSpawner() { - nms_RenderMinecart.call(this); -} -function nms_RenderMinecartMobSpawner__init_0() { - var var_0 = new nms_RenderMinecartMobSpawner(); - nms_RenderMinecartMobSpawner__init_(var_0); - return var_0; -} -function nms_RenderMinecartMobSpawner__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$shadowSize = 0.5; - $this.$modelMinecart = nms_ModelMinecart__init_0(); - $this.$field_94145_f = nms_RenderBlocks__init_2(); -} -function nms_RenderMinecartMobSpawner_func_98192_a($this, $par1EntityMinecartMobSpawner, $par2, $par3Block, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3Block = $thread.pop();$par2 = $thread.pop();$par1EntityMinecartMobSpawner = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par2 = nms_Entity_getBrightness($par1EntityMinecartMobSpawner, $par2); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityMinecartMobSpawner = $this.$field_94145_f; - $ptr = 1; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1EntityMinecartMobSpawner, $par3Block, $par4, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMinecartMobSpawner, $par2, $par3Block, $par4, $ptr); -} -function nms_RenderMinecartMobSpawner_renderBlockInMinecart($this, $par1EntityMinecart, $par2, $par3Block, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3Block = $thread.pop();$par2 = $thread.pop();$par1EntityMinecart = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par2 = nms_Entity_getBrightness($par1EntityMinecart, $par2); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1EntityMinecart = $this.$field_94145_f; - $ptr = 1; - case 1: - nms_RenderBlocks_renderBlockAsItem($par1EntityMinecart, $par3Block, $par4, $par2); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityMinecart, $par2, $par3Block, $par4, $ptr); -} -function nms_EntityBoat() { - var a = this; nms_Entity.call(a); - a.$field_70279_a = 0; - a.$speedMultiplier = 0.0; - a.$boatPosRotationIncrements = 0; - a.$boatX = 0.0; - a.$boatY = 0.0; - a.$boatZ = 0.0; - a.$boatYaw = 0.0; - a.$boatPitch = 0.0; - a.$velocityX0 = 0.0; - a.$velocityY0 = 0.0; - a.$velocityZ0 = 0.0; -} -function nms_EntityBoat__init_0() { - var var_0 = new nms_EntityBoat(); - nms_EntityBoat__init_(var_0); - return var_0; -} -function nms_EntityBoat__init_1(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityBoat(); - nms_EntityBoat__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityBoat__init_($this) { - nms_Entity__init_0($this); - $this.$field_70279_a = 1; - $this.$speedMultiplier = 0.07; - $this.$preventEntitySpawning = 1; - nms_Entity_setSize($this, 1.5, 0.6000000238418579); - $this.$yOffset0 = $this.$height1 / 2.0; -} -function nms_EntityBoat_canTriggerWalking($this) { - return 0; -} -function nms_EntityBoat_entityInit($this) { - var var$1, var$2; - var$1 = $this.$dataWatcher; - var$2 = new jl_Integer; - var$2.$value = 0; - nms_DataWatcher_addObject(var$1, 17, var$2); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 1; - nms_DataWatcher_addObject(var$2, 18, var$1); - var$2 = $this.$dataWatcher; - var$1 = new jl_Integer; - var$1.$value = 0; - nms_DataWatcher_addObject(var$2, 19, var$1); -} -function nms_EntityBoat_getCollisionBox($this, $par1Entity) { - return $par1Entity.$boundingBox; -} -function nms_EntityBoat_getBoundingBox($this) { - return $this.$boundingBox; -} -function nms_EntityBoat_canBePushed($this) { - return 1; -} -function nms_EntityBoat__init_2($this, $par1World, $par2, $par4, $par6) { - nms_Entity__init_0($this); - $this.$field_70279_a = 1; - $this.$speedMultiplier = 0.07; - $this.$preventEntitySpawning = 1; - nms_Entity_setSize($this, 1.5, 0.6000000238418579); - $this.$yOffset0 = $this.$height1 / 2.0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - nms_Entity_setPosition($this, $par2, $par4 + $this.$yOffset0, $par6); - $this.$motionX = 0.0; - $this.$motionY = 0.0; - $this.$motionZ = 0.0; - $this.$prevPosX = $par2; - $this.$prevPosY = $par4; - $this.$prevPosZ = $par6; -} -function nms_EntityBoat_getMountedYOffset($this) { - return $this.$height1 * 0.0 - 0.30000001192092896; -} -function nms_EntityBoat_attackEntityFrom($this, $par1DamageSource, $par2) { - var $var3, var$4, var$5; - if ($this.$invulnerable) - return 0; - if (!$this.$worldObj.$isRemote && !$this.$isDead) { - $var3 = -nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf($var3)); - nms_DataWatcher_updateObject($this.$dataWatcher, 17, jl_Integer_valueOf(10)); - $par2 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) + ($par2 * 10 | 0) | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 19, jl_Integer_valueOf($par2)); - $this.$velocityChanged = 1; - $var3 = $par1DamageSource.$getEntity() instanceof nms_EntityPlayer && $par1DamageSource.$getEntity().$capabilities.$isCreativeMode ? 1 : 0; - if (!(!$var3 && nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) <= 40)) { - if ($this.$riddenByEntity !== null) - $this.$riddenByEntity.$mountEntity($this); - if (!$var3) { - nms_Item_$callClinit(); - $par2 = nms_Item_boat.$itemID; - $par1DamageSource = new nms_ItemStack; - $par1DamageSource.$stackSize = 0; - $par1DamageSource.$itemFrame = null; - $par1DamageSource.$itemID0 = $par2; - $par1DamageSource.$stackSize = 1; - $par1DamageSource.$itemDamage = 0; - if ($par1DamageSource.$itemDamage < 0) - $par1DamageSource.$itemDamage = 0; - var$4 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$4.$dataWatcher, 10, $par1DamageSource); - nms_DataWatcher_setObjectWatched(var$4.$dataWatcher, 10); - var$4.$delayBeforeCanPickup = 10; - $par1DamageSource = $this.$worldObj; - $par2 = nms_World_spawnEntityInWorld($par1DamageSource, var$4); - var$5 = $par1DamageSource.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$4, var$5); - if (!$par2) { - $par1DamageSource = $par1DamageSource.$entitySpawnQueue; - ju_HashMap_putImpl($par1DamageSource.$backingMap, var$4, $par1DamageSource); - } - } - $this.$isDead = 1; - } - return 1; - } - return 1; -} -function nms_EntityBoat_performHurtAnimation($this) { - var var$1; - var$1 = -nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf(var$1)); - nms_DataWatcher_updateObject($this.$dataWatcher, 17, jl_Integer_valueOf(10)); - var$1 = nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19) * 11 | 0; - nms_DataWatcher_updateObject($this.$dataWatcher, 19, jl_Integer_valueOf(var$1)); -} -function nms_EntityBoat_canBeCollidedWith($this) { - return $this.$isDead ? 0 : 1; -} -function nms_EntityBoat_setPositionAndRotation2($this, $par1, $par3, $par5, $par7, $par8, $par9) { - var $var10, $var12, $var14; - if ($this.$field_70279_a) - $this.$boatPosRotationIncrements = $par9 + 5 | 0; - else { - $var10 = $par1 - $this.$posX; - $var12 = $par3 - $this.$posY; - $var14 = $par5 - $this.$posZ; - if ($var10 * $var10 + $var12 * $var12 + $var14 * $var14 <= 1.0) - return; - $this.$boatPosRotationIncrements = 3; - } - $this.$boatX = $par1; - $this.$boatY = $par3; - $this.$boatZ = $par5; - $this.$boatYaw = $par7; - $this.$boatPitch = $par8; - $this.$motionX = $this.$velocityX0; - $this.$motionY = $this.$velocityY0; - $this.$motionZ = $this.$velocityZ0; -} -function nms_EntityBoat_setVelocity($this, $par1, $par3, $par5) { - $this.$motionX = $par1; - $this.$velocityX0 = $par1; - $this.$motionY = $par3; - $this.$velocityY0 = $par3; - $this.$motionZ = $par5; - $this.$velocityZ0 = $par5; -} -function nms_EntityBoat_onUpdate($this) { - var $var2, $var4, $var5, $var23, $var6, $var7, $var9, $var16, $var8, $var10, $var12, $var11, $var13, $var15, $var17, $var18, $var25, $var14, $var26, $var27, $var19, $var20, $var21, $var22, $var1, $var24, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var24 = $thread.pop();$var1 = $thread.pop();$var22 = $thread.pop();$var21 = $thread.pop();$var20 = $thread.pop();$var19 = $thread.pop();$var27 = $thread.pop();$var26 = $thread.pop();$var14 = $thread.pop();$var25 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var15 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var16 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var6 - = $thread.pop();$var23 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_Entity_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if (nms_EntityBoat_getTimeSinceHit($this) > 0) - nms_EntityBoat_setTimeSinceHit($this, nms_EntityBoat_getTimeSinceHit($this) - 1 | 0); - if (nms_EntityBoat_getDamageTaken($this) > 0) - nms_EntityBoat_setDamageTaken($this, nms_EntityBoat_getDamageTaken($this) - 1 | 0); - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $var2 = 0.0; - $var4 = 0; - while ($var4 < 5) { - $var5 = $this.$boundingBox.$minY + ($this.$boundingBox.$maxY - $this.$boundingBox.$minY) * ($var4 + 0 | 0) / 5.0 - 0.125; - $var23 = $this.$boundingBox.$minY; - $var6 = $this.$boundingBox.$maxY - $this.$boundingBox.$minY; - $var4 = $var4 + 1 | 0; - $var7 = $var23 + $var6 * $var4 / 5.0 - 0.125; - $var9 = nms_AABBPool_getAABB(nms_AxisAlignedBB_getAABBPool(), $this.$boundingBox.$minX, $var5, $this.$boundingBox.$minZ, $this.$boundingBox.$maxX, $var7, $this.$boundingBox.$maxZ); - $var16 = $this.$worldObj; - nms_Material_$callClinit(); - if (nms_World_isAABBInMaterial($var16, $var9, nms_Material_water)) - $var2 = $var2 + 0.2; - } - $var23 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - if ($var23 > 0.26249999999999996) { - $var6 = jl_Math_cos($this.$rotationYaw * 3.141592653589793 / 180.0); - $var8 = jl_Math_sin($this.$rotationYaw * 3.141592653589793 / 180.0); - $var10 = 0; - $var12 = 1.0 + $var23 * 60.0; - if ($var10 < $var12) { - $var11 = ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0; - $var13 = ((ju_Random_nextInt0($this.$rand0, 2) * 2 | 0) - 1 | 0) * 0.7; - if (!ju_Random_nextBoolean($this.$rand0)) { - $var15 = $this.$posX + $var6 + $var8 * $var11 * 0.7; - $var17 = $this.$posZ + $var8 - $var6 * $var11 * 0.7; - $var16 = $this.$worldObj; - $var18 = $rt_s(679); - $var25 = $this.$posY - 0.125; - $var14 = $this.$motionX; - $var11 = $this.$motionY; - $var13 = $this.$motionZ; - $ptr = 2; - continue main; - } - $var15 = $this.$posX - $var6 * $var11 * 0.8 + $var8 * $var13; - $var17 = $this.$posZ - $var8 * $var11 * 0.8 - $var6 * $var13; - $var16 = $this.$worldObj; - $var18 = $rt_s(679); - $var25 = $this.$posY - 0.125; - $var14 = $this.$motionX; - $var11 = $this.$motionY; - $var13 = $this.$motionZ; - $ptr = 3; - continue main; - } - } - if ($this.$worldObj.$isRemote && $this.$field_70279_a) { - if ($this.$boatPosRotationIncrements <= 0) { - nms_Entity_setPosition($this, $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.5; - $this.$motionZ = $this.$motionZ * 0.5; - } - $this.$motionX = $this.$motionX * 0.9900000095367432; - $this.$motionY = $this.$motionY * 0.949999988079071; - $this.$motionZ = $this.$motionZ * 0.9900000095367432; - } else { - $var6 = $this.$posX + ($this.$boatX - $this.$posX) / $this.$boatPosRotationIncrements; - $var8 = $this.$posY + ($this.$boatY - $this.$posY) / $this.$boatPosRotationIncrements; - $var25 = $this.$posZ + ($this.$boatZ - $this.$posZ) / $this.$boatPosRotationIncrements; - $var12 = nms_MathHelper_wrapAngleTo180_double($this.$boatYaw - $this.$rotationYaw); - $this.$rotationYaw = $this.$rotationYaw + $var12 / $this.$boatPosRotationIncrements; - $this.$rotationPitch = $this.$rotationPitch + ($this.$boatPitch - $this.$rotationPitch) / $this.$boatPosRotationIncrements; - $this.$boatPosRotationIncrements = $this.$boatPosRotationIncrements - 1 | 0; - nms_Entity_setPosition($this, $var6, $var8, $var25); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } - return; - } - if ($var2 < 1.0) { - $var6 = $var2 * 2.0 - 1.0; - $this.$motionY = $this.$motionY + 0.03999999910593033 * $var6; - } else { - if ($this.$motionY < 0.0) - $this.$motionY = $this.$motionY / 2.0; - $this.$motionY = $this.$motionY + 0.007000000216066837; - } - if ($this.$riddenByEntity !== null) { - $this.$motionX = $this.$motionX + $this.$riddenByEntity.$motionX * $this.$speedMultiplier; - $this.$motionZ = $this.$motionZ + $this.$riddenByEntity.$motionZ * $this.$speedMultiplier; - } - $var6 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - if ($var6 > 0.35) { - $var8 = 0.35 / $var6; - $this.$motionX = $this.$motionX * $var8; - $this.$motionZ = $this.$motionZ * $var8; - $var6 = 0.35; - } - if (!($var6 > $var23 && $this.$speedMultiplier < 0.35)) { - $this.$speedMultiplier = $this.$speedMultiplier - ($this.$speedMultiplier - 0.07) / 35.0; - if ($this.$speedMultiplier < 0.07) - $this.$speedMultiplier = 0.07; - } else { - $this.$speedMultiplier = $this.$speedMultiplier + (0.35 - $this.$speedMultiplier) / 35.0; - if ($this.$speedMultiplier > 0.35) - $this.$speedMultiplier = 0.35; - } - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.5; - $this.$motionZ = $this.$motionZ * 0.5; - } - $var2 = $this.$motionX; - $var6 = $this.$motionY; - $var8 = $this.$motionZ; - $ptr = 4; - continue main; - case 2: - nms_World_spawnParticle($var16, $var18, $var15, $var25, $var17, $var14, $var11, $var13); - if ($rt_suspending()) { - break main; - } - $var10 = $var10 + 1 | 0; - if ($var10 < $var12) { - $var11 = ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0; - $var13 = ((ju_Random_nextInt0($this.$rand0, 2) * 2 | 0) - 1 | 0) * 0.7; - if (!ju_Random_nextBoolean($this.$rand0)) { - $var15 = $this.$posX + $var6 + $var8 * $var11 * 0.7; - $var17 = $this.$posZ + $var8 - $var6 * $var11 * 0.7; - $var16 = $this.$worldObj; - $var18 = $rt_s(679); - $var25 = $this.$posY - 0.125; - $var14 = $this.$motionX; - $var11 = $this.$motionY; - $var13 = $this.$motionZ; - continue main; - } - $var15 = $this.$posX - $var6 * $var11 * 0.8 + $var8 * $var13; - $var17 = $this.$posZ - $var8 * $var11 * 0.8 - $var6 * $var13; - $var16 = $this.$worldObj; - $var18 = $rt_s(679); - $var25 = $this.$posY - 0.125; - $var14 = $this.$motionX; - $var11 = $this.$motionY; - $var13 = $this.$motionZ; - $ptr = 3; - continue main; - } - if ($this.$worldObj.$isRemote && $this.$field_70279_a) { - if ($this.$boatPosRotationIncrements <= 0) { - nms_Entity_setPosition($this, $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.5; - $this.$motionZ = $this.$motionZ * 0.5; - } - $this.$motionX = $this.$motionX * 0.9900000095367432; - $this.$motionY = $this.$motionY * 0.949999988079071; - $this.$motionZ = $this.$motionZ * 0.9900000095367432; - } else { - $var6 = $this.$posX + ($this.$boatX - $this.$posX) / $this.$boatPosRotationIncrements; - $var8 = $this.$posY + ($this.$boatY - $this.$posY) / $this.$boatPosRotationIncrements; - $var25 = $this.$posZ + ($this.$boatZ - $this.$posZ) / $this.$boatPosRotationIncrements; - $var12 = nms_MathHelper_wrapAngleTo180_double($this.$boatYaw - $this.$rotationYaw); - $this.$rotationYaw = $this.$rotationYaw + $var12 / $this.$boatPosRotationIncrements; - $this.$rotationPitch = $this.$rotationPitch + ($this.$boatPitch - $this.$rotationPitch) / $this.$boatPosRotationIncrements; - $this.$boatPosRotationIncrements = $this.$boatPosRotationIncrements - 1 | 0; - nms_Entity_setPosition($this, $var6, $var8, $var25); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } - return; - } - if ($var2 < 1.0) { - $var6 = $var2 * 2.0 - 1.0; - $this.$motionY = $this.$motionY + 0.03999999910593033 * $var6; - } else { - if ($this.$motionY < 0.0) - $this.$motionY = $this.$motionY / 2.0; - $this.$motionY = $this.$motionY + 0.007000000216066837; - } - if ($this.$riddenByEntity !== null) { - $this.$motionX = $this.$motionX + $this.$riddenByEntity.$motionX * $this.$speedMultiplier; - $this.$motionZ = $this.$motionZ + $this.$riddenByEntity.$motionZ * $this.$speedMultiplier; - } - $var6 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - if ($var6 > 0.35) { - $var8 = 0.35 / $var6; - $this.$motionX = $this.$motionX * $var8; - $this.$motionZ = $this.$motionZ * $var8; - $var6 = 0.35; - } - if (!($var6 > $var23 && $this.$speedMultiplier < 0.35)) { - $this.$speedMultiplier = $this.$speedMultiplier - ($this.$speedMultiplier - 0.07) / 35.0; - if ($this.$speedMultiplier < 0.07) - $this.$speedMultiplier = 0.07; - } else { - $this.$speedMultiplier = $this.$speedMultiplier + (0.35 - $this.$speedMultiplier) / 35.0; - if ($this.$speedMultiplier > 0.35) - $this.$speedMultiplier = 0.35; - } - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.5; - $this.$motionZ = $this.$motionZ * 0.5; - } - $var2 = $this.$motionX; - $var6 = $this.$motionY; - $var8 = $this.$motionZ; - $ptr = 4; - continue main; - case 3: - nms_World_spawnParticle($var16, $var18, $var15, $var25, $var17, $var14, $var11, $var13); - if ($rt_suspending()) { - break main; - } - $var10 = $var10 + 1 | 0; - if ($var10 < $var12) { - $var11 = ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0; - $var13 = ((ju_Random_nextInt0($this.$rand0, 2) * 2 | 0) - 1 | 0) * 0.7; - if (!ju_Random_nextBoolean($this.$rand0)) { - $var15 = $this.$posX + $var6 + $var8 * $var11 * 0.7; - $var17 = $this.$posZ + $var8 - $var6 * $var11 * 0.7; - $var16 = $this.$worldObj; - $var18 = $rt_s(679); - $var25 = $this.$posY - 0.125; - $var14 = $this.$motionX; - $var11 = $this.$motionY; - $var13 = $this.$motionZ; - $ptr = 2; - continue main; - } - $var15 = $this.$posX - $var6 * $var11 * 0.8 + $var8 * $var13; - $var17 = $this.$posZ - $var8 * $var11 * 0.8 - $var6 * $var13; - $var16 = $this.$worldObj; - $var18 = $rt_s(679); - $var25 = $this.$posY - 0.125; - $var14 = $this.$motionX; - $var11 = $this.$motionY; - $var13 = $this.$motionZ; - continue main; - } - if ($this.$worldObj.$isRemote && $this.$field_70279_a) { - if ($this.$boatPosRotationIncrements <= 0) { - nms_Entity_setPosition($this, $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.5; - $this.$motionZ = $this.$motionZ * 0.5; - } - $this.$motionX = $this.$motionX * 0.9900000095367432; - $this.$motionY = $this.$motionY * 0.949999988079071; - $this.$motionZ = $this.$motionZ * 0.9900000095367432; - } else { - $var6 = $this.$posX + ($this.$boatX - $this.$posX) / $this.$boatPosRotationIncrements; - $var8 = $this.$posY + ($this.$boatY - $this.$posY) / $this.$boatPosRotationIncrements; - $var25 = $this.$posZ + ($this.$boatZ - $this.$posZ) / $this.$boatPosRotationIncrements; - $var12 = nms_MathHelper_wrapAngleTo180_double($this.$boatYaw - $this.$rotationYaw); - $this.$rotationYaw = $this.$rotationYaw + $var12 / $this.$boatPosRotationIncrements; - $this.$rotationPitch = $this.$rotationPitch + ($this.$boatPitch - $this.$rotationPitch) / $this.$boatPosRotationIncrements; - $this.$boatPosRotationIncrements = $this.$boatPosRotationIncrements - 1 | 0; - nms_Entity_setPosition($this, $var6, $var8, $var25); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } - return; - } - if ($var2 < 1.0) { - $var6 = $var2 * 2.0 - 1.0; - $this.$motionY = $this.$motionY + 0.03999999910593033 * $var6; - } else { - if ($this.$motionY < 0.0) - $this.$motionY = $this.$motionY / 2.0; - $this.$motionY = $this.$motionY + 0.007000000216066837; - } - if ($this.$riddenByEntity !== null) { - $this.$motionX = $this.$motionX + $this.$riddenByEntity.$motionX * $this.$speedMultiplier; - $this.$motionZ = $this.$motionZ + $this.$riddenByEntity.$motionZ * $this.$speedMultiplier; - } - $var6 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - if ($var6 > 0.35) { - $var8 = 0.35 / $var6; - $this.$motionX = $this.$motionX * $var8; - $this.$motionZ = $this.$motionZ * $var8; - $var6 = 0.35; - } - if (!($var6 > $var23 && $this.$speedMultiplier < 0.35)) { - $this.$speedMultiplier = $this.$speedMultiplier - ($this.$speedMultiplier - 0.07) / 35.0; - if ($this.$speedMultiplier < 0.07) - $this.$speedMultiplier = 0.07; - } else { - $this.$speedMultiplier = $this.$speedMultiplier + (0.35 - $this.$speedMultiplier) / 35.0; - if ($this.$speedMultiplier > 0.35) - $this.$speedMultiplier = 0.35; - } - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.5; - $this.$motionY = $this.$motionY * 0.5; - $this.$motionZ = $this.$motionZ * 0.5; - } - $var2 = $this.$motionX; - $var6 = $this.$motionY; - $var8 = $this.$motionZ; - $ptr = 4; - case 4: - a: { - nms_Entity_moveEntity($this, $var2, $var6, $var8); - if ($rt_suspending()) { - break main; - } - if ($this.$isCollidedHorizontally && $var23 > 0.2) { - if ($this.$worldObj.$isRemote) - break a; - if ($this.$isDead) - break a; - $ptr = 5; - continue main; - } - $this.$motionX = $this.$motionX * 0.9900000095367432; - $this.$motionY = $this.$motionY * 0.949999988079071; - $this.$motionZ = $this.$motionZ * 0.9900000095367432; - } - $this.$rotationPitch = 0.0; - $var8 = $this.$rotationYaw; - $var25 = $this.$prevPosX - $this.$posX; - $var12 = $this.$prevPosZ - $this.$posZ; - if ($var25 * $var25 + $var12 * $var12 > 0.001) - $var8 = jl_Math_atan2($var12, $var25) * 180.0 / 3.141592653589793; - $var14 = nms_MathHelper_wrapAngleTo180_double($var8 - $this.$rotationYaw); - if ($var14 > 20.0) - $var14 = 20.0; - if ($var14 < (-20.0)) - $var14 = (-20.0); - $this.$rotationYaw = $this.$rotationYaw + $var14; - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - if (!$this.$worldObj.$isRemote) { - b: { - $var16 = nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_expand($this.$boundingBox, 0.20000000298023224, 0.0, 0.20000000298023224)); - if ($var16 !== null && !ju_AbstractCollection_isEmpty($var16)) { - $var26 = 0; - while (true) { - if ($var26 >= ju_ArrayList_size($var16)) - break b; - $var18 = ju_ArrayList_get($var16, $var26); - if ($var18 !== $this.$riddenByEntity && $var18.$canBePushed() && $var18 instanceof nms_EntityBoat) - $var18.$applyEntityCollision($this); - $var26 = $var26 + 1 | 0; - } - } - } - $var26 = 0; - while ($var26 < 4) { - $var27 = nms_MathHelper_floor_double($this.$posX + (($var26 % 2 | 0) - 0.5) * 0.8); - $var19 = nms_MathHelper_floor_double($this.$posZ + (($var26 / 2 | 0) - 0.5) * 0.8); - $var20 = 0; - while ($var20 < 2) { - $var21 = nms_MathHelper_floor_double($this.$posY) + $var20 | 0; - $var22 = nms_World_getBlockId($this.$worldObj, $var27, $var21, $var19); - nms_Block_$callClinit(); - if ($var22 == nms_Block_snow.$blockID) { - $var16 = $this.$worldObj; - $ptr = 6; - continue main; - } - if ($var22 == nms_Block_waterlily.$blockID) { - $var16 = $this.$worldObj; - $var1 = 1; - $ptr = 7; - continue main; - } - $var20 = $var20 + 1 | 0; - } - $var26 = $var26 + 1 | 0; - } - if ($this.$riddenByEntity !== null && $this.$riddenByEntity.$isDead) - $this.$riddenByEntity = null; - } - return; - case 5: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - $var24 = 0; - while ($var24 < 3) { - nms_Block_$callClinit(); - nms_Entity_dropItemWithOffset($this, nms_Block_planks.$blockID, 1, 0.0); - $var24 = $var24 + 1 | 0; - } - $var1 = 0; - while ($var1 < 2) { - nms_Item_$callClinit(); - nms_Entity_dropItemWithOffset($this, nms_Item_stick.$itemID, 1, 0.0); - $var1 = $var1 + 1 | 0; - } - $this.$rotationPitch = 0.0; - $var8 = $this.$rotationYaw; - $var25 = $this.$prevPosX - $this.$posX; - $var12 = $this.$prevPosZ - $this.$posZ; - if ($var25 * $var25 + $var12 * $var12 > 0.001) - $var8 = jl_Math_atan2($var12, $var25) * 180.0 / 3.141592653589793; - $var14 = nms_MathHelper_wrapAngleTo180_double($var8 - $this.$rotationYaw); - if ($var14 > 20.0) - $var14 = 20.0; - if ($var14 < (-20.0)) - $var14 = (-20.0); - $this.$rotationYaw = $this.$rotationYaw + $var14; - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - if (!$this.$worldObj.$isRemote) { - c: { - $var16 = nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_expand($this.$boundingBox, 0.20000000298023224, 0.0, 0.20000000298023224)); - if ($var16 !== null && !ju_AbstractCollection_isEmpty($var16)) { - $var26 = 0; - while (true) { - if ($var26 >= ju_ArrayList_size($var16)) - break c; - $var18 = ju_ArrayList_get($var16, $var26); - if ($var18 !== $this.$riddenByEntity && $var18.$canBePushed() && $var18 instanceof nms_EntityBoat) - $var18.$applyEntityCollision($this); - $var26 = $var26 + 1 | 0; - } - } - } - $var26 = 0; - while ($var26 < 4) { - $var27 = nms_MathHelper_floor_double($this.$posX + (($var26 % 2 | 0) - 0.5) * 0.8); - $var19 = nms_MathHelper_floor_double($this.$posZ + (($var26 / 2 | 0) - 0.5) * 0.8); - $var20 = 0; - while ($var20 < 2) { - $var21 = nms_MathHelper_floor_double($this.$posY) + $var20 | 0; - $var22 = nms_World_getBlockId($this.$worldObj, $var27, $var21, $var19); - nms_Block_$callClinit(); - if ($var22 == nms_Block_snow.$blockID) { - $var16 = $this.$worldObj; - $ptr = 6; - continue main; - } - if ($var22 == nms_Block_waterlily.$blockID) { - $var16 = $this.$worldObj; - $var1 = 1; - $ptr = 7; - continue main; - } - $var20 = $var20 + 1 | 0; - } - $var26 = $var26 + 1 | 0; - } - if ($this.$riddenByEntity !== null && $this.$riddenByEntity.$isDead) - $this.$riddenByEntity = null; - } - return; - case 6: - nms_World_setBlockToAir($var16, $var27, $var21, $var19); - if ($rt_suspending()) { - break main; - } - d: while (true) { - $var20 = $var20 + 1 | 0; - while ($var20 >= 2) { - $var26 = $var26 + 1 | 0; - if ($var26 >= 4) - break d; - $var27 = nms_MathHelper_floor_double($this.$posX + (($var26 % 2 | 0) - 0.5) * 0.8); - $var19 = nms_MathHelper_floor_double($this.$posZ + (($var26 / 2 | 0) - 0.5) * 0.8); - $var20 = 0; - } - $var21 = nms_MathHelper_floor_double($this.$posY) + $var20 | 0; - $var22 = nms_World_getBlockId($this.$worldObj, $var27, $var21, $var19); - nms_Block_$callClinit(); - if ($var22 == nms_Block_snow.$blockID) { - $var16 = $this.$worldObj; - continue main; - } - if ($var22 != nms_Block_waterlily.$blockID) - continue; - else { - $var16 = $this.$worldObj; - $var1 = 1; - $ptr = 7; - continue main; - } - } - if ($this.$riddenByEntity !== null && $this.$riddenByEntity.$isDead) - $this.$riddenByEntity = null; - return; - case 7: - nms_World_destroyBlock($var16, $var27, $var21, $var19, $var1); - if ($rt_suspending()) { - break main; - } - d: while (true) { - $var20 = $var20 + 1 | 0; - while ($var20 >= 2) { - $var26 = $var26 + 1 | 0; - if ($var26 >= 4) - break d; - $var27 = nms_MathHelper_floor_double($this.$posX + (($var26 % 2 | 0) - 0.5) * 0.8); - $var19 = nms_MathHelper_floor_double($this.$posZ + (($var26 / 2 | 0) - 0.5) * 0.8); - $var20 = 0; - } - $var21 = nms_MathHelper_floor_double($this.$posY) + $var20 | 0; - $var22 = nms_World_getBlockId($this.$worldObj, $var27, $var21, $var19); - nms_Block_$callClinit(); - if ($var22 == nms_Block_snow.$blockID) { - $var16 = $this.$worldObj; - $ptr = 6; - continue main; - } - if ($var22 != nms_Block_waterlily.$blockID) - continue; - else { - $var16 = $this.$worldObj; - $var1 = 1; - continue main; - } - } - if ($this.$riddenByEntity !== null && $this.$riddenByEntity.$isDead) - $this.$riddenByEntity = null; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var2, $var4, $var5, $var23, $var6, $var7, $var9, $var16, $var8, $var10, $var12, $var11, $var13, $var15, $var17, $var18, $var25, $var14, $var26, $var27, $var19, $var20, $var21, $var22, $var1, $var24, $ptr); -} -function nms_EntityBoat_updateRiderPosition($this) { - var $var1, $var3; - if ($this.$riddenByEntity !== null) { - $var1 = jl_Math_cos($this.$rotationYaw * 3.141592653589793 / 180.0) * 0.4; - $var3 = jl_Math_sin($this.$rotationYaw * 3.141592653589793 / 180.0) * 0.4; - nms_Entity_setPosition($this.$riddenByEntity, $this.$posX + $var1, $this.$posY + $this.$height1 * 0.0 - 0.30000001192092896 + $this.$riddenByEntity.$getYOffset(), $this.$posZ + $var3); - } -} -function nms_EntityBoat_getShadowSize($this) { - return 0.0; -} -function nms_EntityBoat_interact($this, $par1EntityPlayer) { - if ($this.$riddenByEntity !== null && $this.$riddenByEntity instanceof nms_EntityPlayer && $this.$riddenByEntity !== $par1EntityPlayer) - return 1; - if (!$this.$worldObj.$isRemote) - nms_EntityPlayer_mountEntity($par1EntityPlayer, $this); - return 1; -} -function nms_EntityBoat_setDamageTaken($this, $par1) { - nms_DataWatcher_updateObject($this.$dataWatcher, 19, jl_Integer_valueOf($par1)); -} -function nms_EntityBoat_getDamageTaken($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 19); -} -function nms_EntityBoat_setTimeSinceHit($this, $par1) { - nms_DataWatcher_updateObject($this.$dataWatcher, 17, jl_Integer_valueOf($par1)); -} -function nms_EntityBoat_getTimeSinceHit($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 17); -} -function nms_EntityBoat_setForwardDirection($this, $par1) { - nms_DataWatcher_updateObject($this.$dataWatcher, 18, jl_Integer_valueOf($par1)); -} -function nms_EntityBoat_getForwardDirection($this) { - return nms_DataWatcher_getWatchableObjectInt($this.$dataWatcher, 18); -} -function nms_EntityBoat_func_70270_d($this, $par1) { - $this.$field_70279_a = $par1; -} -function nms_RenderBoat() { - nms_Render.call(this); - this.$modelBoat = null; -} -var nms_RenderBoat_tex = null; -function nms_RenderBoat__init_0() { - var var_0 = new nms_RenderBoat(); - nms_RenderBoat__init_(var_0); - return var_0; -} -function nms_RenderBoat__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; - $this.$shadowSize = 0.5; - $this.$modelBoat = nms_ModelBoat__init_0(); -} -function nms_RenderBoat_renderBoat($this, $par1EntityBoat, $par2, $par4, $par6, $par8, $par9) { - var $var11, $var12, $var10, var$10, var$11, var$12, var$13; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var11 = $par2; - $var12 = $par4; - $var10 = $par6; - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = $var11; - var$10.$y = $var12; - var$10.$z = $var10; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$13 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$13, var$13 + 1 | 0); - var$11.$buffer.data[var$13] = 10; - ji_PrintStream_printSB(var$12); - } - nleg_EaglerAdapterGL30_glRotatef(180.0 - $par8, 0.0, 1.0, 0.0); - $var10 = nms_DataWatcher_getWatchableObjectInt($par1EntityBoat.$dataWatcher, 17) - $par9; - $var11 = nms_DataWatcher_getWatchableObjectInt($par1EntityBoat.$dataWatcher, 19) - $par9; - if ($var11 < 0.0) - $var11 = 0.0; - if ($var10 > 0.0) - nleg_EaglerAdapterGL30_glRotatef(nms_MathHelper_sin($var10) * $var10 * $var11 / 10.0 * nms_EntityBoat_getForwardDirection($par1EntityBoat), 1.0, 0.0, 0.0); - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = 0.75; - var$10.$y = 0.75; - var$10.$z = 0.75; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$13 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$13, var$13 + 1 | 0); - var$11.$buffer.data[var$13] = 10; - ji_PrintStream_printSB(var$12); - } - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = 1.3333333730697632; - var$10.$y = 1.3333333730697632; - var$10.$z = 1.3333333730697632; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$13 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$13, var$13 + 1 | 0); - var$11.$buffer.data[var$13] = 10; - ji_PrintStream_printSB(var$12); - } - nle_TextureLocation_bindTexture(nms_RenderBoat_tex); - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = (-1.0); - var$10.$y = (-1.0); - var$10.$z = 1.0; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) - jl_System_errCache = ji_PrintStream__init_(new jl_ConsoleOutputStreamStderr, 0); - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - jl_AbstractStringBuilder_append2(var$11, 10); - ji_PrintStream_printSB(var$12); - } - nms_ModelBoat_render($this.$modelBoat, $par1EntityBoat, 0.0, 0.0, (-0.10000000149011612), 0.0, 0.0, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_RenderBoat_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderBoat_renderBoat($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_RenderBoat__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1525); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderBoat_tex = var$1; -} -function nms_EntityFishHook() { - var a = this; nms_Entity.call(a); - a.$xTile2 = 0; - a.$yTile2 = 0; - a.$zTile2 = 0; - a.$inTile2 = 0; - a.$inGround2 = 0; - a.$shake = 0; - a.$angler = null; - a.$ticksInGround1 = 0; - a.$ticksInAir2 = 0; - a.$ticksCatchable = 0; - a.$bobber = null; - a.$fishPosRotationIncrements = 0; - a.$fishX = 0.0; - a.$fishY = 0.0; - a.$fishZ = 0.0; - a.$fishYaw = 0.0; - a.$fishPitch = 0.0; - a.$velocityX1 = 0.0; - a.$velocityY1 = 0.0; - a.$velocityZ1 = 0.0; -} -function nms_EntityFishHook__init_0() { - var var_0 = new nms_EntityFishHook(); - nms_EntityFishHook__init_(var_0); - return var_0; -} -function nms_EntityFishHook__init_1(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityFishHook(); - nms_EntityFishHook__init_2(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_EntityFishHook__init_3(var_0, var_1) { - var var_2 = new nms_EntityFishHook(); - nms_EntityFishHook__init_4(var_2, var_0, var_1); - return var_2; -} -function nms_EntityFishHook__init_($this) { - nms_Entity__init_0($this); - $this.$xTile2 = (-1); - $this.$yTile2 = (-1); - $this.$zTile2 = (-1); - $this.$inTile2 = 0; - $this.$inGround2 = 0; - $this.$shake = 0; - $this.$ticksInAir2 = 0; - $this.$ticksCatchable = 0; - $this.$bobber = null; - nms_Entity_setSize($this, 0.25, 0.25); - $this.$ignoreFrustumCheck = 1; -} -function nms_EntityFishHook__init_2($this, $par1World, $par2, $par4, $par6, $par8EntityPlayer) { - nms_EntityFishHook__init_($this); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - nms_Entity_setPosition($this, $par2, $par4, $par6); - $this.$ignoreFrustumCheck = 1; - $this.$angler = $par8EntityPlayer; - $par8EntityPlayer.$fishEntity = $this; -} -function nms_EntityFishHook__init_4($this, $par1World, $par2EntityPlayer) { - var var$3, $var3, var$5, var$6, var$7; - nms_Entity__init_0($this); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$xTile2 = (-1); - $this.$yTile2 = (-1); - $this.$zTile2 = (-1); - $this.$inTile2 = 0; - $this.$inGround2 = 0; - $this.$shake = 0; - $this.$ticksInAir2 = 0; - $this.$ticksCatchable = 0; - $this.$bobber = null; - $this.$ignoreFrustumCheck = 1; - $this.$angler = $par2EntityPlayer; - $this.$angler.$fishEntity = $this; - nms_Entity_setSize($this, 0.25, 0.25); - nms_Entity_setLocationAndAngles($this, $par2EntityPlayer.$posX, $par2EntityPlayer.$posY + 1.62 - $par2EntityPlayer.$yOffset0, $par2EntityPlayer.$posZ, $par2EntityPlayer.$rotationYaw, $par2EntityPlayer.$rotationPitch); - var$3 = $this.$posX; - $var3 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - $this.$posX = var$3 - nms_MathHelper_SIN_TABLE.data[($var3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.1599999964237213; - $this.$posY = $this.$posY - 0.10000000149011612; - var$3 = $this.$posZ; - $var3 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - $this.$posZ = var$3 - nms_MathHelper_SIN_TABLE.data[($var3 * 10430.3779296875 | 0) & 65535] * 0.1599999964237213; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - $this.$yOffset0 = 0.0; - var$5 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - var$5 = -nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 | 0) & 65535]; - var$6 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $this.$motionX = var$5 * nms_MathHelper_SIN_TABLE.data[(var$6 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.4000000059604645; - var$5 = $this.$rotationYaw / 180.0 * 3.1415927410125732; - var$7 = nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 + 16384.0 | 0) & 65535]; - var$5 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $this.$motionZ = var$7 * nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.4000000059604645; - var$5 = $this.$rotationPitch / 180.0 * 3.1415927410125732; - $this.$motionY = -nms_MathHelper_SIN_TABLE.data[(var$5 * 10430.3779296875 | 0) & 65535] * 0.4000000059604645; - nms_EntityFishHook_calculateVelocity($this, $this.$motionX, $this.$motionY, $this.$motionZ, 1.5, 1.0); -} -function nms_EntityFishHook_entityInit($this) { - return; -} -function nms_EntityFishHook_isInRangeToRenderDist($this, $par1) { - var var$2, $var3; - var$2 = $this.$boundingBox; - $var3 = (var$2.$maxX - var$2.$minX + var$2.$maxY - var$2.$minY + var$2.$maxZ - var$2.$minZ) / 3.0 * 4.0 * 64.0; - return $par1 >= $var3 * $var3 ? 0 : 1; -} -function nms_EntityFishHook_calculateVelocity($this, $par1, $par3, $par5, $par7, $par8) { - var var$6, var$7, var$8, $var10; - var$6 = jl_Math_sqrt($par1 * $par1 + $par3 * $par3 + $par5 * $par5); - var$7 = $par1 / var$6; - $par1 = $par3 / var$6; - var$6 = $par5 / var$6; - $par3 = ju_Random_nextGaussian($this.$rand0) * 0.007499999832361937; - var$8 = $par8; - $par3 = var$7 + $par3 * var$8; - $par5 = $par1 + ju_Random_nextGaussian($this.$rand0) * 0.007499999832361937 * var$8; - $par1 = var$6 + ju_Random_nextGaussian($this.$rand0) * 0.007499999832361937 * var$8; - var$6 = $par7; - $par3 = $par3 * var$6; - $par5 = $par5 * var$6; - $par1 = $par1 * var$6; - $this.$motionX = $par3; - $this.$motionY = $par5; - $this.$motionZ = $par1; - $var10 = jl_Math_sqrt($par3 * $par3 + $par1 * $par1); - $par7 = jl_Math_atan2($par3, $par1) * 180.0 / 3.141592653589793; - $this.$rotationYaw = $par7; - $this.$prevRotationYaw = $par7; - $par7 = jl_Math_atan2($par5, $var10) * 180.0 / 3.141592653589793; - $this.$rotationPitch = $par7; - $this.$prevRotationPitch = $par7; - $this.$ticksInGround1 = 0; -} -function nms_EntityFishHook_setPositionAndRotation2($this, $par1, $par3, $par5, $par7, $par8, $par9) { - $this.$fishX = $par1; - $this.$fishY = $par3; - $this.$fishZ = $par5; - $this.$fishYaw = $par7; - $this.$fishPitch = $par8; - $this.$fishPosRotationIncrements = $par9; - $this.$motionX = $this.$velocityX1; - $this.$motionY = $this.$velocityY1; - $this.$motionZ = $this.$velocityZ1; -} -function nms_EntityFishHook_setVelocity($this, $par1, $par3, $par5) { - $this.$motionX = $par1; - $this.$velocityX1 = $par1; - $this.$motionY = $par3; - $this.$velocityY1 = $par3; - $this.$motionZ = $par5; - $this.$velocityZ1 = $par5; -} -function nms_EntityFishHook_onUpdate($this) { - var $var21, $var22, $var23, $var7, $var1, $var20, $var2, $var3, $var4, $var5, $var6, $var8, $var9, $var12, $var13, $var19, $var27, $var14, $var24, $var25, $var28, $var16, $var18, $var29, $var30, $var15, $var31, $var17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var17 = $thread.pop();$var31 = $thread.pop();$var15 = $thread.pop();$var30 = $thread.pop();$var29 = $thread.pop();$var18 = $thread.pop();$var16 = $thread.pop();$var28 = $thread.pop();$var25 = $thread.pop();$var24 = $thread.pop();$var14 = $thread.pop();$var27 = $thread.pop();$var19 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = - $thread.pop();$var20 = $thread.pop();$var1 = $thread.pop();$var7 = $thread.pop();$var23 = $thread.pop();$var22 = $thread.pop();$var21 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - a: { - nms_Entity_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$fishPosRotationIncrements > 0) { - $var21 = $this.$posX + ($this.$fishX - $this.$posX) / $this.$fishPosRotationIncrements; - $var22 = $this.$posY + ($this.$fishY - $this.$posY) / $this.$fishPosRotationIncrements; - $var23 = $this.$posZ + ($this.$fishZ - $this.$posZ) / $this.$fishPosRotationIncrements; - $var7 = nms_MathHelper_wrapAngleTo180_double($this.$fishYaw - $this.$rotationYaw); - $this.$rotationYaw = $this.$rotationYaw + $var7 / $this.$fishPosRotationIncrements; - $this.$rotationPitch = $this.$rotationPitch + ($this.$fishPitch - $this.$rotationPitch) / $this.$fishPosRotationIncrements; - $this.$fishPosRotationIncrements = $this.$fishPosRotationIncrements - 1 | 0; - nms_Entity_setPosition($this, $var21, $var22, $var23); - nms_Entity_setRotation($this, $this.$rotationYaw, $this.$rotationPitch); - } else { - if (!$this.$worldObj.$isRemote) { - $var1 = nms_EntityPlayer_getCurrentEquippedItem($this.$angler); - if ($this.$angler.$isDead) - break a; - if (!nms_EntityLiving_isEntityAlive($this.$angler)) - break a; - if ($var1 === null) - break a; - $var20 = nms_ItemStack_getItem($var1); - nms_Item_$callClinit(); - if ($var20 !== nms_Item_fishingRod) - break a; - if (nms_Entity_getDistanceSqToEntity($this, $this.$angler) > 1024.0) - break a; - if ($this.$bobber !== null) { - if (!$this.$bobber.$isDead) { - $this.$posX = $this.$bobber.$posX; - $this.$posY = $this.$bobber.$boundingBox.$minY + $this.$bobber.$height1 * 0.8; - $this.$posZ = $this.$bobber.$posZ; - return; - } - $this.$bobber = null; - } - } - if ($this.$shake > 0) - $this.$shake = $this.$shake - 1 | 0; - if (!$this.$inGround2) - $this.$ticksInAir2 = $this.$ticksInAir2 + 1 | 0; - else { - if (nms_World_getBlockId($this.$worldObj, $this.$xTile2, $this.$yTile2, $this.$zTile2) == $this.$inTile2) { - $this.$ticksInGround1 = $this.$ticksInGround1 + 1 | 0; - if ($this.$ticksInGround1 != 1200) - return; - $ptr = 3; - continue main; - } - $this.$inGround2 = 0; - $this.$motionX = $this.$motionX * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$motionY = $this.$motionY * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$motionZ = $this.$motionZ * ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $this.$ticksInGround1 = 0; - $this.$ticksInAir2 = 0; - } - $var20 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX, $this.$posY, $this.$posZ); - $var2 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - $var3 = nms_World_rayTraceBlocks($this.$worldObj, $var20, $var2); - $var20 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX, $this.$posY, $this.$posZ); - $var2 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $this.$posX + $this.$motionX, $this.$posY + $this.$motionY, $this.$posZ + $this.$motionZ); - if ($var3 !== null) - $var2 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj), $var3.$hitVec.$xCoord, $var3.$hitVec.$yCoord, $var3.$hitVec.$zCoord); - $var4 = null; - $var5 = nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj, $this, nms_AxisAlignedBB_expand(nms_AxisAlignedBB_addCoord($this.$boundingBox, $this.$motionX, $this.$motionY, $this.$motionZ), 1.0, 1.0, 1.0)); - $var6 = 0.0; - $var8 = 0; - while ($var8 < ju_ArrayList_size($var5)) { - $var9 = ju_ArrayList_get($var5, $var8); - if ($var9.$canBeCollidedWith() && !($var9 === $this.$angler && $this.$ticksInAir2 < 5)) { - $var12 = nms_AxisAlignedBB_calculateIntercept(nms_AxisAlignedBB_expand($var9.$boundingBox, 0.30000001192092896, 0.30000001192092896, 0.30000001192092896), $var20, $var2); - if ($var12 !== null) { - $var13 = nms_Vec3_distanceTo($var20, $var12.$hitVec); - if (!($var13 >= $var6 && $var6 !== 0.0)) { - $var4 = $var9; - $var6 = $var13; - } - } - } - $var8 = $var8 + 1 | 0; - } - if ($var4 !== null) - $var3 = nms_MovingObjectPosition__init_0($var4); - if ($var3 !== null) { - if ($var3.$entityHit !== null) { - $var20 = $var3.$entityHit; - $var2 = nms_DamageSource_causeThrownDamage($this, $this.$angler); - $var19 = 0; - $ptr = 5; - continue main; - } - $this.$inGround2 = 1; - } - if (!$this.$inGround2) { - $var6 = $this.$motionX; - $var27 = $this.$motionY; - $var14 = $this.$motionZ; - $ptr = 4; - continue main; - } - } - return; - } - $ptr = 2; - case 2: - nms_EntityFishHook_setDead($this); - if ($rt_suspending()) { - break main; - } - $this.$angler.$fishEntity = null; - return; - case 3: - nms_EntityFishHook_setDead($this); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_Entity_moveEntity($this, $var6, $var27, $var14); - if ($rt_suspending()) { - break main; - } - $var24 = nms_MathHelper_sqrt_double($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $this.$rotationYaw = jl_Math_atan2($this.$motionX, $this.$motionZ) * 180.0 / 3.141592653589793; - $this.$rotationPitch = jl_Math_atan2($this.$motionY, $var24) * 180.0 / 3.141592653589793; - while ($this.$rotationPitch - $this.$prevRotationPitch < (-180.0)) { - $this.$prevRotationPitch = $this.$prevRotationPitch - 360.0; - } - while ($this.$rotationPitch - $this.$prevRotationPitch >= 180.0) { - $this.$prevRotationPitch = $this.$prevRotationPitch + 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw < (-180.0)) { - $this.$prevRotationYaw = $this.$prevRotationYaw - 360.0; - } - while ($this.$rotationYaw - $this.$prevRotationYaw >= 180.0) { - $this.$prevRotationYaw = $this.$prevRotationYaw + 360.0; - } - $this.$rotationPitch = $this.$prevRotationPitch + ($this.$rotationPitch - $this.$prevRotationPitch) * 0.20000000298023224; - $this.$rotationYaw = $this.$prevRotationYaw + ($this.$rotationYaw - $this.$prevRotationYaw) * 0.20000000298023224; - $var25 = 0.9200000166893005; - if (!(!$this.$onGround && !$this.$isCollidedHorizontally)) - $var25 = 0.5; - $var27 = 0.0; - $var28 = 0; - while ($var28 < 5) { - $var14 = $this.$boundingBox.$minY + ($this.$boundingBox.$maxY - $this.$boundingBox.$minY) * ($var28 + 0 | 0) / 5.0 - 0.125 + 0.125; - $var6 = $this.$boundingBox.$minY; - $var13 = $this.$boundingBox.$maxY - $this.$boundingBox.$minY; - $var28 = $var28 + 1 | 0; - $var16 = $var6 + $var13 * $var28 / 5.0 - 0.125 + 0.125; - $var18 = nms_AABBPool_getAABB(nms_AxisAlignedBB_getAABBPool(), $this.$boundingBox.$minX, $var14, $this.$boundingBox.$minZ, $this.$boundingBox.$maxX, $var16, $this.$boundingBox.$maxZ); - $var20 = $this.$worldObj; - nms_Material_$callClinit(); - if (nms_World_isAABBInMaterial($var20, $var18, nms_Material_water)) - $var27 = $var27 + 0.2; - } - $var28 = $rt_compare($var27, 0.0); - if ($var28 > 0) { - if ($this.$ticksCatchable > 0) - $this.$ticksCatchable = $this.$ticksCatchable - 1 | 0; - else { - $var29 = 500; - if (nms_World_canLightningStrikeAt($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$posY) + 1 | 0, nms_MathHelper_floor_double($this.$posZ))) - $var29 = 300; - if (!ju_Random_nextInt0($this.$rand0, $var29)) { - $this.$ticksCatchable = ju_Random_nextInt0($this.$rand0, 30) + 10 | 0; - $this.$motionY = $this.$motionY - 0.20000000298023224; - $var20 = $rt_s(1526); - $var24 = 0.25; - $var30 = 1.0 + (ju_Random_nextFloat($this.$rand0) - ju_Random_nextFloat($this.$rand0)) * 0.4000000059604645; - $ptr = 6; - continue main; - } - } - } - if ($this.$ticksCatchable > 0) - $this.$motionY = $this.$motionY - ju_Random_nextFloat($this.$rand0) * ju_Random_nextFloat($this.$rand0) * ju_Random_nextFloat($this.$rand0) * 0.2; - $var13 = $var27 * 2.0 - 1.0; - $this.$motionY = $this.$motionY + 0.03999999910593033 * $var13; - if ($var28 > 0) { - $var25 = $var25 * 0.9; - $this.$motionY = $this.$motionY * 0.8; - } - $var6 = $this.$motionX; - $var27 = $var25; - $this.$motionX = $var6 * $var27; - $this.$motionY = $this.$motionY * $var27; - $this.$motionZ = $this.$motionZ * $var27; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - return; - case 5: - $tmp = $var20.$attackEntityFrom($var2, $var19); - if ($rt_suspending()) { - break main; - } - $var19 = $tmp; - if ($var19) - $this.$bobber = $var3.$entityHit; - if ($this.$inGround2) - return; - $var6 = $this.$motionX; - $var27 = $this.$motionY; - $var14 = $this.$motionZ; - $ptr = 4; - continue main; - case 6: - nms_Entity_playSound($this, $var20, $var24, $var30); - if ($rt_suspending()) { - break main; - } - $var30 = nms_MathHelper_floor_double($this.$boundingBox.$minY); - $var15 = 0; - $var22 = $var30 + 1.0; - if ($var15 < 1.0 + $this.$width1 * 20.0) { - $var31 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var17 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var20 = $this.$worldObj; - $var2 = $rt_s(680); - $var6 = $this.$posX + $var31; - $var14 = $this.$posZ + $var17; - $var16 = $this.$motionX; - $var13 = $this.$motionY - ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $var21 = $this.$motionZ; - $ptr = 7; - continue main; - } - $var19 = 0; - if ($var19 >= 1.0 + $this.$width1 * 20.0) { - if ($this.$ticksCatchable > 0) - $this.$motionY = $this.$motionY - ju_Random_nextFloat($this.$rand0) * ju_Random_nextFloat($this.$rand0) * ju_Random_nextFloat($this.$rand0) * 0.2; - $var13 = $var27 * 2.0 - 1.0; - $this.$motionY = $this.$motionY + 0.03999999910593033 * $var13; - if ($var28 > 0) { - $var25 = $var25 * 0.9; - $this.$motionY = $this.$motionY * 0.8; - } - $var6 = $this.$motionX; - $var27 = $var25; - $this.$motionX = $var6 * $var27; - $this.$motionY = $this.$motionY * $var27; - $this.$motionZ = $this.$motionZ * $var27; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - return; - } - $var31 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var17 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var20 = $this.$worldObj; - $var2 = $rt_s(679); - $var6 = $this.$posX + $var31; - $var14 = $this.$posZ + $var17; - $var16 = $this.$motionX; - $var13 = $this.$motionY; - $var21 = $this.$motionZ; - $ptr = 8; - continue main; - case 7: - nms_World_spawnParticle($var20, $var2, $var6, $var22, $var14, $var16, $var13, $var21); - if ($rt_suspending()) { - break main; - } - $var15 = $var15 + 1 | 0; - if ($var15 < 1.0 + $this.$width1 * 20.0) { - $var31 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var17 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var20 = $this.$worldObj; - $var2 = $rt_s(680); - $var6 = $this.$posX + $var31; - $var14 = $this.$posZ + $var17; - $var16 = $this.$motionX; - $var13 = $this.$motionY - ju_Random_nextFloat($this.$rand0) * 0.20000000298023224; - $var21 = $this.$motionZ; - continue main; - } - $var19 = 0; - if ($var19 >= 1.0 + $this.$width1 * 20.0) { - if ($this.$ticksCatchable > 0) - $this.$motionY = $this.$motionY - ju_Random_nextFloat($this.$rand0) * ju_Random_nextFloat($this.$rand0) * ju_Random_nextFloat($this.$rand0) * 0.2; - $var13 = $var27 * 2.0 - 1.0; - $this.$motionY = $this.$motionY + 0.03999999910593033 * $var13; - if ($var28 > 0) { - $var25 = $var25 * 0.9; - $this.$motionY = $this.$motionY * 0.8; - } - $var6 = $this.$motionX; - $var27 = $var25; - $this.$motionX = $var6 * $var27; - $this.$motionY = $this.$motionY * $var27; - $this.$motionZ = $this.$motionZ * $var27; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - return; - } - $var31 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var17 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var20 = $this.$worldObj; - $var2 = $rt_s(679); - $var6 = $this.$posX + $var31; - $var14 = $this.$posZ + $var17; - $var16 = $this.$motionX; - $var13 = $this.$motionY; - $var21 = $this.$motionZ; - $ptr = 8; - case 8: - nms_World_spawnParticle($var20, $var2, $var6, $var22, $var14, $var16, $var13, $var21); - if ($rt_suspending()) { - break main; - } - $var19 = $var19 + 1 | 0; - if ($var19 >= 1.0 + $this.$width1 * 20.0) { - if ($this.$ticksCatchable > 0) - $this.$motionY = $this.$motionY - ju_Random_nextFloat($this.$rand0) * ju_Random_nextFloat($this.$rand0) * ju_Random_nextFloat($this.$rand0) * 0.2; - $var13 = $var27 * 2.0 - 1.0; - $this.$motionY = $this.$motionY + 0.03999999910593033 * $var13; - if ($var28 > 0) { - $var25 = $var25 * 0.9; - $this.$motionY = $this.$motionY * 0.8; - } - $var6 = $this.$motionX; - $var27 = $var25; - $this.$motionX = $var6 * $var27; - $this.$motionY = $this.$motionY * $var27; - $this.$motionZ = $this.$motionZ * $var27; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - return; - } - $var31 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var17 = (ju_Random_nextFloat($this.$rand0) * 2.0 - 1.0) * $this.$width1; - $var20 = $this.$worldObj; - $var2 = $rt_s(679); - $var6 = $this.$posX + $var31; - $var14 = $this.$posZ + $var17; - $var16 = $this.$motionX; - $var13 = $this.$motionY; - $var21 = $this.$motionZ; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var21, $var22, $var23, $var7, $var1, $var20, $var2, $var3, $var4, $var5, $var6, $var8, $var9, $var12, $var13, $var19, $var27, $var14, $var24, $var25, $var28, $var16, $var18, $var29, $var30, $var15, $var31, $var17, $ptr); -} -function nms_EntityFishHook_getShadowSize($this) { - return 0.0; -} -function nms_EntityFishHook_catchFish($this) { - var $var1, $var2, $var4, $var6, $var8, var$6, $var13, var$8, $var3, $var5, $var7, var$12, $var9, var$14; - if ($this.$worldObj.$isRemote) - return 0; - $var1 = 0; - if ($this.$bobber !== null) { - $var2 = $this.$angler.$posX - $this.$posX; - $var4 = $this.$angler.$posY - $this.$posY; - $var6 = $this.$angler.$posZ - $this.$posZ; - $var8 = jl_Math_sqrt($var2 * $var2 + $var4 * $var4 + $var6 * $var6); - var$6 = $this.$bobber; - var$6.$motionX = var$6.$motionX + $var2 * 0.1; - var$6 = $this.$bobber; - var$6.$motionY = var$6.$motionY + $var4 * 0.1 + jl_Math_sqrt($var8) * 0.08; - var$6 = $this.$bobber; - var$6.$motionZ = var$6.$motionZ + $var6 * 0.1; - $var1 = 3; - } else if ($this.$ticksCatchable > 0) { - $var13 = new nms_EntityItem; - var$8 = $this.$worldObj; - $var3 = $this.$posX; - $var5 = $this.$posY; - $var7 = $this.$posZ; - var$6 = new nms_ItemStack; - nms_Item_$callClinit(); - var$12 = nms_Item_fishRaw.$itemID; - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = var$12; - var$6.$stackSize = 1; - var$6.$itemDamage = 0; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - nms_EntityItem__init_2($var13, var$8, $var3, $var5, $var7); - nms_DataWatcher_updateObject($var13.$dataWatcher, 10, var$6); - nms_DataWatcher_setObjectWatched($var13.$dataWatcher, 10); - $var3 = $this.$angler.$posX - $this.$posX; - $var5 = $this.$angler.$posY - $this.$posY; - $var7 = $this.$angler.$posZ - $this.$posZ; - $var9 = jl_Math_sqrt($var3 * $var3 + $var5 * $var5 + $var7 * $var7); - $var13.$motionX = $var3 * 0.1; - $var13.$motionY = $var5 * 0.1 + jl_Math_sqrt($var9) * 0.08; - $var13.$motionZ = $var7 * 0.1; - var$6 = $this.$worldObj; - $var1 = nms_World_spawnEntityInWorld(var$6, $var13); - var$14 = var$6.$entityList; - ju_HashMap_putImpl(var$14.$backingMap, $var13, var$14); - if (!$var1) { - var$6 = var$6.$entitySpawnQueue; - ju_HashMap_putImpl(var$6.$backingMap, $var13, var$6); - } - var$6 = $this.$angler.$worldObj; - var$14 = nms_EntityXPOrb__init_0($this.$angler.$worldObj, $this.$angler.$posX, $this.$angler.$posY + 0.5, $this.$angler.$posZ + 0.5, (Math.random() * 6.0 | 0) + 1 | 0); - $var1 = nms_World_spawnEntityInWorld(var$6, var$14); - $var13 = var$6.$entityList; - ju_HashMap_putImpl($var13.$backingMap, var$14, $var13); - if (!$var1) { - var$6 = var$6.$entitySpawnQueue; - ju_HashMap_putImpl(var$6.$backingMap, var$14, var$6); - } - $var1 = 1; - } - if ($this.$inGround2) - $var1 = 2; - $this.$isDead = 1; - if ($this.$angler !== null) - $this.$angler.$fishEntity = null; - $this.$angler.$fishEntity = null; - return $var1; -} -function nms_EntityFishHook_setDead($this) { - $this.$isDead = 1; - if ($this.$angler !== null) - $this.$angler.$fishEntity = null; -} -function nms_RenderFish() { - nms_Render.call(this); -} -var nms_RenderFish_tex = null; -function nms_RenderFish__init_0() { - var var_0 = new nms_RenderFish(); - nms_RenderFish__init_(var_0); - return var_0; -} -function nms_RenderFish__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; -} -function nms_RenderFish_doRenderFishHook($this, $par1EntityFishHook, $par2, $par4, $par6, $par8, $par9) { - var $var12, $var21, $var22, $var46, $var33, $var41, $var23, $var25, $var27, $var29, $var31, $var32, $var34, $var35, $var37, $var39, $var44, $var45; - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef($par2, $par4, $par6); - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glScalef(0.5, 0.5, 0.5); - nle_TextureLocation_bindTexture(nms_RenderFish_tex); - nlea_Tessellator_$callClinit(); - $var12 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$playerViewY, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$playerViewX, 1.0, 0.0, 0.0); - nlea_Tessellator_startDrawingQuads($var12); - nlea_Tessellator_setNormal($var12, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var12, (-0.5), (-0.5), 0.0, 0.0625, 0.1875); - nlea_Tessellator_addVertexWithUV($var12, 0.5, (-0.5), 0.0, 0.125, 0.1875); - nlea_Tessellator_addVertexWithUV($var12, 0.5, 0.5, 0.0, 0.125, 0.125); - nlea_Tessellator_addVertexWithUV($var12, (-0.5), 0.5, 0.0, 0.0625, 0.125); - nlea_Tessellator_draw($var12); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); - if ($par1EntityFishHook.$angler !== null) { - $var21 = nms_MathHelper_sin(nms_MathHelper_sqrt_float(nms_EntityLiving_getSwingProgress($par1EntityFishHook.$angler, $par9)) * 3.1415927410125732); - $var22 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($par1EntityFishHook.$worldObj), (-0.5), 0.03, 0.8); - nms_Vec3_rotateAroundX($var22, -($par1EntityFishHook.$angler.$prevRotationPitch + ($par1EntityFishHook.$angler.$rotationPitch - $par1EntityFishHook.$angler.$prevRotationPitch) * $par9) * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var22, -($par1EntityFishHook.$angler.$prevRotationYaw + ($par1EntityFishHook.$angler.$rotationYaw - $par1EntityFishHook.$angler.$prevRotationYaw) * $par9) * 3.1415927410125732 / 180.0); - nms_Vec3_rotateAroundY($var22, $var21 * 0.5); - nms_Vec3_rotateAroundX($var22, -$var21 * 0.699999988079071); - $var46 = $par1EntityFishHook.$angler.$prevPosX; - $var33 = $par1EntityFishHook.$angler.$posX - $par1EntityFishHook.$angler.$prevPosX; - $var41 = $par9; - $var23 = $var46 + $var33 * $var41 + $var22.$xCoord; - $var25 = $par1EntityFishHook.$angler.$prevPosY + ($par1EntityFishHook.$angler.$posY - $par1EntityFishHook.$angler.$prevPosY) * $var41 + $var22.$yCoord; - $var27 = $par1EntityFishHook.$angler.$prevPosZ + ($par1EntityFishHook.$angler.$posZ - $par1EntityFishHook.$angler.$prevPosZ) * $var41 + $var22.$zCoord; - $var29 = $par1EntityFishHook.$angler === nmc_Minecraft_getMinecraft().$thePlayer ? 0.0 : $par1EntityFishHook.$angler.$getEyeHeight(); - if (!($this.$renderManager.$options2.$thirdPersonView <= 0 && $par1EntityFishHook.$angler === nmc_Minecraft_getMinecraft().$thePlayer)) { - $var31 = ($par1EntityFishHook.$angler.$prevRenderYawOffset + ($par1EntityFishHook.$angler.$renderYawOffset - $par1EntityFishHook.$angler.$prevRenderYawOffset) * $par9) * 3.1415927410125732 / 180.0; - $var32 = nms_MathHelper_sin($var31); - $var34 = nms_MathHelper_cos($var31); - $var23 = $par1EntityFishHook.$angler.$prevPosX + ($par1EntityFishHook.$angler.$posX - $par1EntityFishHook.$angler.$prevPosX) * $var41 - $var34 * 0.35 - $var32 * 0.85; - $var25 = $par1EntityFishHook.$angler.$prevPosY + $var29 + ($par1EntityFishHook.$angler.$posY - $par1EntityFishHook.$angler.$prevPosY) * $var41 - 0.45; - $var27 = $par1EntityFishHook.$angler.$prevPosZ + ($par1EntityFishHook.$angler.$posZ - $par1EntityFishHook.$angler.$prevPosZ) * $var41 - $var32 * 0.35 + $var34 * 0.85; - } - $var46 = $par1EntityFishHook.$prevPosX + ($par1EntityFishHook.$posX - $par1EntityFishHook.$prevPosX) * $var41; - $var33 = $par1EntityFishHook.$prevPosY + ($par1EntityFishHook.$posY - $par1EntityFishHook.$prevPosY) * $var41 + 0.25; - $var35 = $par1EntityFishHook.$prevPosZ + ($par1EntityFishHook.$posZ - $par1EntityFishHook.$prevPosZ) * $var41; - $var37 = $var23 - $var46; - $var39 = $var25 - $var33; - $var41 = $var27 - $var35; - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glDisable(13); - nlea_Tessellator_startDrawing($var12, 146); - nlea_Tessellator_setColorOpaque_I($var12, 0); - $var44 = 0; - while ($var44 <= 16) { - $var45 = $var44 / 16.0; - $var35 = $var45; - nlea_Tessellator_addVertex($var12, $par2 + $var37 * $var35, $par4 + $var39 * ($var45 * $var45 + $var45) * 0.5 + 0.25, $par6 + $var41 * $var35); - $var44 = $var44 + 1 | 0; - } - nlea_Tessellator_draw($var12); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(2); - } -} -function nms_RenderFish_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderFish_doRenderFishHook($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_RenderFish__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(894); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_RenderFish_tex = var$1; -} -function nms_EntityWeatherEffect() { - nms_Entity.call(this); -} -function nms_EntityLightningBolt() { - var a = this; nms_EntityWeatherEffect.call(a); - a.$lightningState = 0; - a.$boltVertex = Long_ZERO; - a.$boltLivingTime = 0; -} -function nms_EntityLightningBolt__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityLightningBolt(); - nms_EntityLightningBolt__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EntityLightningBolt__init_0($this, $par1World, $par2, $par4, $par6) { - var var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $var8, $var9, $var10, $var11, var$20, var$21, var$22, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $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();var$5 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1World - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - nms_Entity__init_0($this); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$boltVertex = Long_ZERO; - nms_Entity_setLocationAndAngles($this, $par2, $par4, $par6, 0.0, 0.0); - $this.$lightningState = 2; - var$5 = $this.$rand0; - $this.$boltVertex = Long_or(Long_shl(Long_fromInt(ju_Random_next(var$5, 32)), 32), Long_fromInt(ju_Random_next(var$5, 32))); - var$6 = Math.random(); - var$7 = 3.0; - $this.$boltLivingTime = (var$6 * var$7 | 0) + 1 | 0; - if (!$par1World.$isRemote && $par1World.$difficultySetting >= 2) { - var$8 = $par2 | 0; - var$9 = $rt_compare($par2, var$8); - var$10 = var$9 >= 0 ? var$8 : var$8 - 1 | 0; - var$11 = $par4 | 0; - var$12 = $rt_compare($par4, var$11); - var$13 = var$12 >= 0 ? var$11 : var$11 - 1 | 0; - var$14 = $par6 | 0; - var$15 = $rt_compare($par6, var$14); - $var8 = var$15 >= 0 ? var$14 : var$14 - 1 | 0; - if (nms_World_checkChunksExist($par1World, var$10 - 10 | 0, var$13 - 10 | 0, $var8 - 10 | 0, var$10 + 10 | 0, var$13 + 10 | 0, $var8 + 10 | 0)) { - $var8 = var$9 >= 0 ? var$8 : var$8 - 1 | 0; - $var9 = var$12 >= 0 ? var$11 : var$11 - 1 | 0; - $var10 = var$15 >= 0 ? var$14 : var$14 - 1 | 0; - if (!nms_World_getBlockId($par1World, $var8, $var9, $var10)) { - nms_Block_$callClinit(); - if (nms_BlockFire_canPlaceBlockAt(nms_Block_fire, $par1World, $var8, $var9, $var10)) { - var$10 = nms_Block_fire.$blockID; - $var11 = 0; - var$20 = 3; - $ptr = 1; - continue main; - } - } - var$13 = 0; - $var8 = var$14 - 1 | 0; - var$21 = var$11 - 1 | 0; - var$22 = var$8 - 1 | 0; - while (true) { - if (var$13 >= 4) - break a; - $var11 = var$9 >= 0 ? var$8 : var$22; - var$23 = ($var11 + (Math.random() * var$7 | 0) | 0) - 1 | 0; - $var11 = var$12 >= 0 ? var$11 : var$21; - var$10 = ($var11 + (Math.random() * var$7 | 0) | 0) - 1 | 0; - var$20 = var$15 >= 0 ? var$14 : $var8; - $var11 = (var$20 + (Math.random() * var$7 | 0) | 0) - 1 | 0; - if (!nms_World_getBlockId($par1World, var$23, var$10, $var11)) { - nms_Block_$callClinit(); - if (nms_BlockFire_canPlaceBlockAt(nms_Block_fire, $par1World, var$23, var$10, $var11)) { - var$20 = nms_Block_fire.$blockID; - $var10 = 0; - $var9 = 3; - $ptr = 2; - continue main; - } - } - var$13 = var$13 + 1 | 0; - } - } - } - } - return; - case 1: - nms_World_setBlock($par1World, $var8, $var9, $var10, var$10, $var11, var$20); - if ($rt_suspending()) { - break main; - } - var$13 = 0; - $var8 = var$14 - 1 | 0; - var$21 = var$11 - 1 | 0; - var$22 = var$8 - 1 | 0; - while (var$13 < 4) { - $var11 = var$9 >= 0 ? var$8 : var$22; - var$23 = ($var11 + (Math.random() * var$7 | 0) | 0) - 1 | 0; - $var11 = var$12 >= 0 ? var$11 : var$21; - var$10 = ($var11 + (Math.random() * var$7 | 0) | 0) - 1 | 0; - var$20 = var$15 >= 0 ? var$14 : $var8; - $var11 = (var$20 + (Math.random() * var$7 | 0) | 0) - 1 | 0; - if (!nms_World_getBlockId($par1World, var$23, var$10, $var11)) { - nms_Block_$callClinit(); - if (nms_BlockFire_canPlaceBlockAt(nms_Block_fire, $par1World, var$23, var$10, $var11)) { - var$20 = nms_Block_fire.$blockID; - $var10 = 0; - $var9 = 3; - $ptr = 2; - continue main; - } - } - var$13 = var$13 + 1 | 0; - } - return; - case 2: - nms_World_setBlock($par1World, var$23, var$10, $var11, var$20, $var10, $var9); - if ($rt_suspending()) { - break main; - } - while (true) { - var$13 = var$13 + 1 | 0; - if (var$13 >= 4) - break; - $var11 = var$9 >= 0 ? var$8 : var$22; - var$23 = ($var11 + (Math.random() * var$7 | 0) | 0) - 1 | 0; - $var11 = var$12 >= 0 ? var$11 : var$21; - var$10 = ($var11 + (Math.random() * var$7 | 0) | 0) - 1 | 0; - $var11 = ((var$15 >= 0 ? var$14 : $var8) + (Math.random() * var$7 | 0) | 0) - 1 | 0; - if (nms_World_getBlockId($par1World, var$23, var$10, $var11)) - continue; - nms_Block_$callClinit(); - if (!nms_BlockFire_canPlaceBlockAt(nms_Block_fire, $par1World, var$23, var$10, $var11)) - continue; - else { - var$20 = nms_Block_fire.$blockID; - $var10 = 0; - $var9 = 3; - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par4, $par6, var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $var8, $var9, $var10, $var11, var$20, var$21, var$22, var$23, $ptr); -} -function nms_EntityLightningBolt_onUpdate($this) { - var $var5, var$2, var$3, var$4, var$5, $var1, $var2, $var3, $var4, $var7, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var7 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var5 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_Entity_onEntityUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$lightningState == 2) { - nms_World_playSoundEffect($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, $rt_s(1527), 10000.0, 0.800000011920929 + Math.random() * 0.20000000298023224); - nms_World_playSoundEffect($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, $rt_s(1528), 2.0, 0.5 + Math.random() * 0.20000000298023224); - } - $this.$lightningState = $this.$lightningState - 1 | 0; - if ($this.$lightningState < 0) { - if (!$this.$boltLivingTime) - $this.$isDead = 1; - else if ($this.$lightningState < -(Math.random() * 10.0 | 0)) { - $this.$boltLivingTime = $this.$boltLivingTime - 1 | 0; - $this.$lightningState = 1; - $var5 = $this.$rand0; - $this.$boltVertex = Long_or(Long_shl(Long_fromInt(ju_Random_next($var5, 32)), 32), Long_fromInt(ju_Random_next($var5, 32))); - if (!$this.$worldObj.$isRemote) { - $var5 = $this.$worldObj; - var$2 = $this.$posX; - var$3 = var$2 | 0; - if (var$2 < var$3) - var$3 = var$3 - 1 | 0; - var$2 = $this.$posY; - var$4 = var$2 | 0; - if (var$2 < var$4) - var$4 = var$4 - 1 | 0; - var$2 = $this.$posZ; - var$5 = var$2 | 0; - if (var$2 < var$5) - var$5 = var$5 - 1 | 0; - if (nms_World_checkChunksExist($var5, var$3 - 10 | 0, var$4 - 10 | 0, var$5 - 10 | 0, var$3 + 10 | 0, var$4 + 10 | 0, var$5 + 10 | 0)) { - var$2 = $this.$posX; - $var1 = var$2 | 0; - if (var$2 < $var1) - $var1 = $var1 - 1 | 0; - var$2 = $this.$posY; - $var2 = var$2 | 0; - if (var$2 < $var2) - $var2 = $var2 - 1 | 0; - var$2 = $this.$posZ; - $var3 = var$2 | 0; - if (var$2 < $var3) - $var3 = $var3 - 1 | 0; - if (!nms_World_getBlockId($this.$worldObj, $var1, $var2, $var3)) { - nms_Block_$callClinit(); - if (nms_BlockFire_canPlaceBlockAt(nms_Block_fire, $this.$worldObj, $var1, $var2, $var3)) { - $var5 = $this.$worldObj; - $var4 = nms_Block_fire.$blockID; - $ptr = 3; - continue main; - } - } - } - } - } - } - if ($this.$lightningState >= 0) { - if ($this.$worldObj.$isRemote) - $this.$worldObj.$lastLightningBolt = 2; - else { - $var5 = $this.$worldObj; - $var7 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var7.$initialized) { - var$11 = new nms_AABBPool; - var$12 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$12); - var$12.$array1 = $rt_createArray(jl_Object, 10); - var$11.$listAABB = var$12; - var$11.$nextPoolIndex = 0; - var$11.$maxPoolIndex = 0; - var$11.$numCleans = 0; - var$11.$maxNumCleans = 300; - var$11.$numEntriesToRemove = 2000; - $var7.$value7 = var$11; - $var7.$initialized = 1; - } - $var7 = nms_World_getEntitiesWithinAABBExcludingEntity($var5, $this, nms_AABBPool_getAABB($var7.$value7, $this.$posX - 3.0, $this.$posY - 3.0, $this.$posZ - 3.0, $this.$posX + 3.0, $this.$posY + 6.0 + 3.0, $this.$posZ + 3.0), null); - $var4 = 0; - if ($var4 < $var7.$size0) { - if ($var4 >= 0 && $var4 < $var7.$size0) { - $var5 = $var7.$array1.data[$var4]; - $ptr = 2; - continue main; - } - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); - } - } - } - return; - case 2: - $var5.$onStruckByLightning($this); - if ($rt_suspending()) { - break main; - } - $var4 = $var4 + 1 | 0; - if ($var4 >= $var7.$size0) - return; - if ($var4 >= 0 && $var4 < $var7.$size0) { - $var5 = $var7.$array1.data[$var4]; - continue main; - } - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); - case 3: - nms_World_setBlock0($var5, $var1, $var2, $var3, $var4); - if ($rt_suspending()) { - break main; - } - if ($this.$lightningState >= 0) { - if ($this.$worldObj.$isRemote) - $this.$worldObj.$lastLightningBolt = 2; - else { - $var5 = $this.$worldObj; - $var7 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var7.$initialized) { - var$11 = new nms_AABBPool; - var$12 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$12); - var$12.$array1 = $rt_createArray(jl_Object, 10); - var$11.$listAABB = var$12; - var$11.$nextPoolIndex = 0; - var$11.$maxPoolIndex = 0; - var$11.$numCleans = 0; - var$11.$maxNumCleans = 300; - var$11.$numEntriesToRemove = 2000; - $var7.$value7 = var$11; - $var7.$initialized = 1; - } - $var7 = nms_World_getEntitiesWithinAABBExcludingEntity($var5, $this, nms_AABBPool_getAABB($var7.$value7, $this.$posX - 3.0, $this.$posY - 3.0, $this.$posZ - 3.0, $this.$posX + 3.0, $this.$posY + 6.0 + 3.0, $this.$posZ + 3.0), null); - $var4 = 0; - if ($var4 < $var7.$size0) { - if ($var4 >= 0 && $var4 < $var7.$size0) { - $var5 = $var7.$array1.data[$var4]; - $ptr = 2; - continue main; - } - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); - } - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var5, var$2, var$3, var$4, var$5, $var1, $var2, $var3, $var4, $var7, var$11, var$12, $ptr); -} -function nms_EntityLightningBolt_entityInit($this) { - return; -} -function nms_EntityLightningBolt_isInRangeToRenderVec3D($this, $par1Vec3) { - return $this.$lightningState < 0 ? 0 : 1; -} -function nms_RenderLightningBolt() { - nms_Render.call(this); -} -function nms_RenderLightningBolt__init_0() { - var var_0 = new nms_RenderLightningBolt(); - nms_RenderLightningBolt__init_(var_0); - return var_0; -} -function nms_RenderLightningBolt__init_($this) { - $this.$modelBase = nms_ModelBiped__init_0(0.0, 0.0, 64, 32); - $this.$renderBlocks = nms_RenderBlocks__init_2(); - $this.$shadowSize = 0.0; - $this.$shadowOpaque = 1.0; -} -function nms_RenderLightningBolt_doRenderLightningBolt($this, $par1EntityLightningBolt, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var11, $var12, $var13, $var15, $var18, $var45, var$14, var$15, $var19, $var26, $var21, $var22, $var24, var$21, var$22, $var32, var$24, $var36, $var37, $var39, var$28, var$29, $var41, $var43; - nlea_Tessellator_$callClinit(); - $var10 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 1); - $var11 = $rt_createDoubleArray(8).data; - $var12 = $rt_createDoubleArray(8).data; - $var13 = 0.0; - $var15 = 0.0; - $var18 = 7; - while ($var18 >= 0) { - $var11[$var18] = $var13; - $var12[$var18] = $var15; - $var13 = $var13 + ((Math.random() * 11.0 | 0) - 5 | 0); - $var15 = $var15 + ((Math.random() * 11.0 | 0) - 5 | 0); - $var18 = $var18 + (-1) | 0; - } - $var45 = 0; - var$14 = $par2 + 0.5; - var$15 = $par6 + 0.5; - while ($var45 < 4) { - $var19 = 0; - while ($var19 < 3) { - $var26 = 7; - $var21 = 0; - if ($var19 > 0) - $var26 = 7 - $var19 | 0; - if ($var19 > 0) - $var21 = $var26 - 2 | 0; - $var22 = $var11[$var26] - $var13; - $var24 = $var12[$var26] - $var15; - while ($var26 >= $var21) { - if ($var19) { - var$21 = $var22 + ((Math.random() * 31.0 | 0) - 15 | 0); - var$22 = $var24 + ((Math.random() * 31.0 | 0) - 15 | 0); - } else { - var$21 = $var22 + ((Math.random() * 11.0 | 0) - 5 | 0); - var$22 = $var24 + ((Math.random() * 11.0 | 0) - 5 | 0); - } - nlea_Tessellator_startDrawing($var10, 95); - nlea_Tessellator_setColorRGBA($var10, 114, 114, 127, 76); - $var32 = 0.1 + $var45 * 0.2; - var$24 = $var19 ? $var32 : $var32 * ($var26 * 0.1 + 1.0); - if (!$var19) - $var32 = $var32 * (($var26 - 1 | 0) * 0.1 + 1.0); - $var36 = 0; - while ($var36 < 5) { - $var37 = var$14 - var$24; - $var39 = var$15 - var$24; - var$28 = $rt_compare($var36, 1); - if (!(var$28 && $var36 != 2)) - $var37 = $var37 + var$24 * 2.0; - var$29 = $rt_compare($var36, 2); - if (!(var$29 && $var36 != 3)) - $var39 = $var39 + var$24 * 2.0; - $var41 = var$14 - $var32; - $var43 = var$15 - $var32; - if (!(var$28 && var$29)) - $var41 = $var41 + $var32 * 2.0; - if (!(var$29 && $var36 != 3)) - $var43 = $var43 + $var32 * 2.0; - nlea_Tessellator_addVertex($var10, $var41 + var$21, $par4 + ($var26 * 16 | 0), $var43 + var$22); - nlea_Tessellator_addVertex($var10, $var37 + $var22, $par4 + (($var26 + 1 | 0) * 16 | 0), $var39 + $var24); - $var36 = $var36 + 1 | 0; - } - nlea_Tessellator_draw($var10); - $var26 = $var26 + (-1) | 0; - $var22 = var$21; - $var24 = var$22; - } - $var19 = $var19 + 1 | 0; - } - $var45 = $var45 + 1 | 0; - } - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(2); -} -function nms_RenderLightningBolt_doRender($this, $par1Entity, $par2, $par4, $par6, $par8, $par9) { - nms_RenderLightningBolt_doRenderLightningBolt($this, $par1Entity, $par2, $par4, $par6, $par8, $par9); -} -function nms_MapItemRenderer() { - var a = this; jl_Object.call(a); - a.$intArray0 = null; - a.$bufferedImage = 0; - a.$gameSettings1 = null; - a.$fontRenderer2 = null; -} -var nms_MapItemRenderer_mapicons = null; -function nms_MapItemRenderer__init_(var_0, var_1, var_2) { - var var_3 = new nms_MapItemRenderer(); - nms_MapItemRenderer__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_MapItemRenderer__init_0($this, $par1FontRenderer, $par2GameSettings, $par3RenderEngine) { - var $var4; - $this.$intArray0 = $rt_createIntArray(16384); - $this.$gameSettings1 = $par2GameSettings; - $this.$fontRenderer2 = $par1FontRenderer; - $par1FontRenderer = new nle_EaglerImage; - $par1FontRenderer.$w0 = 128; - $par1FontRenderer.$h = 128; - $par1FontRenderer.$alpha = 0; - $par1FontRenderer.$data = $rt_createIntArray(16384); - $var4 = nms_GLAllocation_generateTextureNames(); - nms_RenderEngine_setupTextureExt($par3RenderEngine, $par1FontRenderer, $var4, 0, 0); - nms_IntHashMap_addKey($par3RenderEngine.$textureNameToImageMap, $var4, $par1FontRenderer); - $this.$bufferedImage = $var4; - $var4 = 0; - while ($var4 < 16384) { - $this.$intArray0.data[$var4] = 0; - $var4 = $var4 + 1 | 0; - } -} -function nms_MapItemRenderer_renderMap($this, $par1EntityPlayer, $par2RenderEngine, $par3MapData) { - var $var4, $var5, $var19, $var6, $var7, $var8, $var12, $var13, $var14, $var17, $var21, $var20, $var22, $var23, $var24, $var25, var$20, var$21, var$22, var$23; - $var4 = 0; - while ($var4 < 16384) { - $var5 = $par3MapData.$colors.data[$var4]; - $var19 = $var5 / 4 | 0; - if (!$var19) - $this.$intArray0.data[$var4] = (((($var4 + ($var4 / 128 | 0) | 0) & 1) * 8 | 0) + 16 | 0) << 24; - else { - $var6 = nms_MapColor_mapColorArray.data[$var19].$colorValue; - $var7 = $var5 & 3; - $var8 = 220; - if ($var7 == 2) - $var8 = 255; - if (!$var7) - $var8 = 180; - $var12 = $rt_imul($var6 >> 16 & 255, $var8) / 255 | 0; - $var13 = $rt_imul($var6 >> 8 & 255, $var8) / 255 | 0; - $var14 = $rt_imul($var6 & 255, $var8) / 255 | 0; - if ($this.$gameSettings1.$anaglyph) { - $var5 = $var12 * 30 | 0; - $var12 = (($var5 + ($var13 * 59 | 0) | 0) + ($var14 * 11 | 0) | 0) / 100 | 0; - $var13 = ($var5 + ($var13 * 70 | 0) | 0) / 100 | 0; - $var14 = ($var5 + ($var14 * 70 | 0) | 0) / 100 | 0; - } - $this.$intArray0.data[$var4] = (-16777216) | $var12 << 16 | $var13 << 8 | $var14; - } - $var4 = $var4 + 1 | 0; - } - nms_RenderEngine_createTextureFromBytes($par2RenderEngine, $this.$intArray0, 128, 128, $this.$bufferedImage); - nlea_Tessellator_$callClinit(); - $var17 = nlea_Tessellator_instance; - $var19 = $this.$bufferedImage; - nleg_EaglerAdapterGL30_$callClinit(); - $par1EntityPlayer = nleg_EaglerAdapterGL30_texObjects; - $par1EntityPlayer = $var19 < $par1EntityPlayer.$size3 && $var19 >= 0 ? $par1EntityPlayer.$values.data[$var19] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - $var21 = nlea_EaglerAdapterImpl2_webgl; - $par1EntityPlayer = $par1EntityPlayer !== null ? $par1EntityPlayer.$obj : null; - $var21.bindTexture(3553, $par1EntityPlayer); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(1, 43); - nleg_EaglerAdapterGL30_glDisable(6); - nlea_Tessellator_startDrawing($var17, 98); - nlea_Tessellator_setTextureUV($var17, 0.0, 1.0); - nlea_Tessellator_addVertex($var17, 0.0, 128.0, (-0.009999999776482582)); - nlea_Tessellator_setTextureUV($var17, 1.0, 1.0); - nlea_Tessellator_addVertex($var17, 128.0, 128.0, (-0.009999999776482582)); - nlea_Tessellator_addVertexWithUV($var17, 128.0, 0.0, (-0.009999999776482582), 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var17, 0.0, 0.0, (-0.009999999776482582), 0.0, 0.0); - nlea_Tessellator_draw($var17); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glDisable(16); - nms_RenderEngine_resetBoundTexture($par2RenderEngine); - nle_TextureLocation_bindTexture(nms_MapItemRenderer_mapicons); - $var19 = 0; - $var20 = ju_LinkedHashMap_values($par3MapData.$playersVisibleOnMap).$iterator(); - while ($var20.$hasNext()) { - $var21 = $var20.$next(); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0 + $var21.$centerX / 2.0 + 64.0, 0.0 + $var21.$centerZ / 2.0 + 64.0, (-0.019999999552965164)); - nleg_EaglerAdapterGL30_glRotatef(($var21.$iconRotation * 360 | 0) / 16.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glScalef(4.0, 4.0, 3.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.125), 0.125, 0.0); - $var22 = (($var21.$iconSize % 4 | 0) + 0 | 0) / 4.0; - $var23 = (($var21.$iconSize / 4 | 0) + 0 | 0) / 4.0; - $var24 = (($var21.$iconSize % 4 | 0) + 1 | 0) / 4.0; - $var25 = (($var21.$iconSize / 4 | 0) + 1 | 0) / 4.0; - nlea_Tessellator_startDrawingQuads($var17); - var$20 = $var19 * 0.0010000000474974513; - var$21 = $var22; - var$22 = $var23; - nlea_Tessellator_addVertexWithUV($var17, (-1.0), 1.0, var$20, var$21, var$22); - var$23 = $var24; - nlea_Tessellator_addVertexWithUV($var17, 1.0, 1.0, var$20, var$23, var$22); - var$22 = $var25; - nlea_Tessellator_addVertexWithUV($var17, 1.0, (-1.0), var$20, var$23, var$22); - nlea_Tessellator_addVertexWithUV($var17, (-1.0), (-1.0), var$20, var$21, var$22); - nlea_Tessellator_draw($var17); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var19 = $var19 + 1 | 0; - } - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, (-0.03999999910593033)); - nleg_EaglerAdapterGL30_glScalef(1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_MapItemRenderer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1529); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_MapItemRenderer_mapicons = var$1; -} -function nms_StatBase() { - var a = this; jl_Object.call(a); - a.$statId = 0; - a.$statName = null; - a.$isIndependent = 0; - a.$statGuid = null; - a.$type0 = null; -} -var nms_StatBase_numberFormat = null; -var nms_StatBase_simpleStatType = null; -var nms_StatBase_decimalFormat = null; -var nms_StatBase_timeStatType = null; -var nms_StatBase_distanceStatType = null; -function nms_StatBase_$callClinit() { - nms_StatBase_$callClinit = $rt_eraseClinit(nms_StatBase); - nms_StatBase__clinit_(); -} -function nms_StatBase_getName($this) { - return $this.$statName; -} -function nms_StatBase_toString($this) { - var var$1; - var$1 = $this.$statName; - return nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$1); -} -function nms_StatBase__clinit_() { - var var$1, var$2; - nms_StatBase_numberFormat = jt_NumberFormat_getIntegerInstance(ju_Locale_US); - nms_StatBase_simpleStatType = new nms_StatTypeSimple; - var$1 = new jt_DecimalFormat; - var$2 = new jt_DecimalFormatSymbols; - var$2.$locale0 = ju_Locale_defaultLocale; - jt_DecimalFormatSymbols_initData(var$2); - jt_DecimalFormat__init_1(var$1, $rt_s(1530), var$2); - nms_StatBase_decimalFormat = var$1; - nms_StatBase_timeStatType = new nms_StatTypeTime; - nms_StatBase_distanceStatType = new nms_StatTypeDistance; -} -function nms_Achievement() { - var a = this; nms_StatBase.call(a); - a.$displayColumn = 0; - a.$displayRow = 0; - a.$parentAchievement = null; - a.$achievementDescription = null; - a.$statStringFormatter = null; - a.$theItemStack = null; - a.$isSpecial = 0; -} -function nms_Achievement__init_2(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_Achievement(); - nms_Achievement__init_(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -} -function nms_Achievement__init_1(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_Achievement(); - nms_Achievement__init_0(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -} -function nms_Achievement__init_3(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_Achievement(); - nms_Achievement__init_4(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -} -function nms_Achievement__init_($this, $par1, $par2Str, $par3, $par4, $par5Item, $par6Achievement) { - var var$7, var$8; - var$7 = new nms_ItemStack; - var$8 = $par5Item.$itemID; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = var$8; - var$7.$stackSize = 1; - var$7.$itemDamage = 0; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - nms_Achievement__init_4($this, $par1, $par2Str, $par3, $par4, var$7, $par6Achievement); -} -function nms_Achievement__init_0($this, $par1, $par2Str, $par3, $par4, $par5Block, $par6Achievement) { - var var$7, var$8; - var$7 = new nms_ItemStack; - var$8 = $par5Block.$blockID; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = var$8; - var$7.$stackSize = 1; - var$7.$itemDamage = 0; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - nms_Achievement__init_4($this, $par1, $par2Str, $par3, $par4, var$7, $par6Achievement); -} -function nms_Achievement__init_4($this, $par1, $par2Str, $par3, $par4, $par5ItemStack, $par6Achievement) { - var var$7, var$8, var$9; - var$7 = 5242880 + $par1 | 0; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(1531)); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $par2Str); - var$9 = jl_String__init_0(var$8.$buffer, 0, var$8.$length); - nms_StatBase_$callClinit(); - var$8 = nms_StatBase_simpleStatType; - $this.$isIndependent = 0; - $this.$statId = var$7; - $this.$statName = var$9; - $this.$type0 = var$8; - $this.$theItemStack = $par5ItemStack; - $par5ItemStack = new jl_StringBuilder; - $par5ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par5ItemStack, $par5ItemStack.$length, $rt_s(1531)); - jl_AbstractStringBuilder_insert($par5ItemStack, $par5ItemStack.$length, $par2Str); - jl_AbstractStringBuilder_insert($par5ItemStack, $par5ItemStack.$length, $rt_s(1532)); - $this.$achievementDescription = jl_String__init_0($par5ItemStack.$buffer, 0, $par5ItemStack.$length); - $this.$displayColumn = $par3; - $this.$displayRow = $par4; - nms_AchievementList_$callClinit(); - if ($par3 < nms_AchievementList_minDisplayColumn) - nms_AchievementList_minDisplayColumn = $par3; - if ($par4 < nms_AchievementList_minDisplayRow) - nms_AchievementList_minDisplayRow = $par4; - if ($par3 > nms_AchievementList_maxDisplayColumn) - nms_AchievementList_maxDisplayColumn = $par3; - if ($par4 > nms_AchievementList_maxDisplayRow) - nms_AchievementList_maxDisplayRow = $par4; - $this.$parentAchievement = $par6Achievement; -} -function nms_Achievement_setIndependent($this) { - $this.$isIndependent = 1; - return $this; -} -function nms_Achievement_setSpecial($this) { - $this.$isSpecial = 1; - return $this; -} -function nms_Achievement_registerAchievement($this) { - var var$1, var$2, var$3, var$4; - var$1 = $this.$statId; - nms_AchievementMap_$callClinit(); - var$2 = nms_AchievementMap_instance.$guidMap; - 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; - } - } - $this.$statGuid = var$2 === null ? null : var$2.$value0; - nms_AchievementList_$callClinit(); - ju_ArrayList_add(nms_AchievementList_achievementList, $this); - return $this; -} -function nms_Achievement_isAchievement($this) { - return 1; -} -function nms_Achievement_setStatStringFormatter($this, $par1IStatStringFormat) { - $this.$statStringFormatter = $par1IStatStringFormat; - return $this; -} -function nms_RenderList() { - var a = this; jl_Object.call(a); - a.$field_78429_a = 0; - a.$field_78427_b = 0; - a.$field_78428_c = 0; - a.$field_78425_d = 0.0; - a.$field_78426_e = 0.0; - a.$field_78423_f = 0.0; - a.$field_78424_g = null; - a.$field_78430_h = 0; - a.$field_78431_i = 0; -} -function nms_RenderList__init_0() { - var var_0 = new nms_RenderList(); - nms_RenderList__init_(var_0); - return var_0; -} -function nms_RenderList__init_($this) { - var var$1, var$2, var$3, var$4; - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL) - var$1 = jn_ByteBufferImpl_asIntBuffer(nms_GLAllocation_createDirectByteBuffer(262144)); - else { - var$2 = $rt_createIntArray(65536); - var$3 = var$2.data.length; - var$1 = new jn_IntBufferOverArray; - var$4 = 0 + var$3 | 0; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$position = 0; - var$1.$limit = var$4; - var$1.$start1 = 0; - var$1.$readOnly1 = 0; - var$1.$array2 = var$2; - } - $this.$field_78424_g = var$1; - $this.$field_78430_h = 0; - $this.$field_78431_i = 0; -} -function nms_RenderList_func_78422_a($this, $par1, $par2, $par3, $par4, $par6, $par8) { - var var$7; - $this.$field_78430_h = 1; - var$7 = $this.$field_78424_g; - var$7.$position = 0; - var$7.$limit = var$7.$capacity; - var$7.$mark = (-1); - $this.$field_78429_a = $par1; - $this.$field_78427_b = $par2; - $this.$field_78428_c = $par3; - $this.$field_78425_d = $par4; - $this.$field_78426_e = $par6; - $this.$field_78423_f = $par8; -} -function nms_RenderList_func_78418_a($this, $par1, $par2, $par3) { - return !$this.$field_78430_h ? 0 : $par1 == $this.$field_78429_a && $par2 == $this.$field_78427_b && $par3 == $this.$field_78428_c ? 1 : 0; -} -function nms_RenderList_func_78420_a($this, $par1) { - var var$2; - jn_IntBufferImpl_put($this.$field_78424_g, $par1); - var$2 = $this.$field_78424_g; - if (!(var$2.$limit - var$2.$position | 0)) - nms_RenderList_func_78419_a($this); -} -function nms_RenderList_func_78419_a($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7; - if ($this.$field_78430_h) { - if (!$this.$field_78431_i) { - var$1 = $this.$field_78424_g; - var$1.$limit = var$1.$position; - var$1.$position = 0; - var$1.$mark = (-1); - $this.$field_78431_i = 1; - } - var$1 = $this.$field_78424_g; - if ((var$1.$limit - var$1.$position | 0) > 0) { - nleg_EaglerAdapterGL30_glPushMatrix(); - var$2 = $this.$field_78429_a - $this.$field_78425_d; - var$3 = $this.$field_78427_b - $this.$field_78426_e; - var$4 = $this.$field_78428_c - $this.$field_78423_f; - var$1 = nleg_EaglerAdapterGL30_deevis; - var$1.$x = var$2; - var$1.$y = var$3; - var$1.$z = var$4; - var$1 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$1, var$1); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$5 = new ji_PrintStream; - var$5.$out = new jl_ConsoleOutputStreamStderr; - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - var$5.$sb = var$1; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - var$1 = new jnci_UTF8Charset; - jnc_Charset__init_(var$1, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = var$1; - 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); - } - var$1 = $this.$field_78424_g; - while (var$1.$position >= var$1.$limit ? 0 : 1) { - if (var$1.$position >= var$1.$limit) { - var$1 = new jn_BufferUnderflowException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - var$7 = var$1.$position; - var$1.$position = var$7 + 1 | 0; - nleg_EaglerAdapterGL30_glCallList(var$1.$getElement(var$7)); - } - nleg_EaglerAdapterGL30_glPopMatrix(); - } - } -} -function nms_RenderList_func_78421_b($this) { - $this.$field_78430_h = 0; - $this.$field_78431_i = 0; -} -function nms_GuiNewChat() { - var a = this; nms_Gui.call(a); - a.$mc12 = null; - a.$sentMessages = null; - a.$chatLines = null; - a.$field_96134_d = null; - a.$field_73768_d = 0; - a.$field_73769_e = 0; -} -function nms_GuiNewChat__init_(var_0) { - var var_1 = new nms_GuiNewChat(); - nms_GuiNewChat__init_0(var_1, var_0); - return var_1; -} -function nms_GuiNewChat__init_0($this, $par1Minecraft) { - var var$2; - $this.$zLevel = 0.0; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $this.$sentMessages = var$2; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $this.$chatLines = var$2; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $this.$field_96134_d = var$2; - $this.$field_73768_d = 0; - $this.$field_73769_e = 0; - $this.$mc12 = $par1Minecraft; -} -function nms_GuiNewChat_drawChat($this, $par1) { - var $var2, $var3, $var4, $var5, $var6, $var7, var$8, $var8, $var17, var$11, $var10, $var16, $var9, $var20, $var11, $var12, $var14, $var18, $var19, $var13, $var15; - if ($this.$mc12.$gameSettings.$chatVisibility != 2) { - $var2 = nms_GuiNewChat_func_96127_i($this); - $var3 = 0; - $var4 = 0; - $var5 = $this.$field_96134_d.$size0; - $var6 = $this.$mc12.$gameSettings.$chatOpacity * 0.8999999761581421 + 0.10000000149011612; - if ($var5 > 0) { - if ($this.$mc12.$currentScreen instanceof nms_GuiChat) - $var3 = 1; - $var7 = $this.$mc12.$gameSettings.$chatScale; - var$8 = nms_GuiNewChat_func_96126_f($this) / $var7; - $var8 = var$8 | 0; - if (var$8 > $var8) - $var8 = $var8 + 1 | 0; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var17 = nleg_EaglerAdapterGL30_deevis; - $var17.$x = 2.0; - $var17.$y = 20.0; - $var17.$z = 0.0; - $var17 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var17, $var17); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - $var17 = new jl_StringBuilder; - $var17.$buffer = $rt_createCharArray(16); - var$11.$sb = $var17; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - $var17 = new jnci_UTF8Charset; - jnc_Charset__init_($var17, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = $var17; - jl_System_errCache = var$11; - } - var$11 = jl_System_errCache; - $var10 = var$11.$sb; - jl_AbstractStringBuilder_insert($var10, $var10.$length, $rt_s(220)); - $var16 = $var10.$length; - jl_AbstractStringBuilder_insertSpace($var10, $var16, $var16 + 1 | 0); - $var10.$buffer.data[$var16] = 10; - ji_PrintStream_printSB(var$11); - } - $var17 = nleg_EaglerAdapterGL30_deevis; - $var17.$x = $var7; - $var17.$y = $var7; - $var17.$z = 1.0; - $var17 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $var17, $var17); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) - jl_System_errCache = ji_PrintStream__init_(jl_ConsoleOutputStreamStderr__init_0(), 0); - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - $var9 = 0; - $var20 = (0 + $var8 | 0) + 4 | 0; - while (($var9 + $this.$field_73768_d | 0) < ju_ArrayList_size($this.$field_96134_d) && $var9 < $var2) { - $var10 = ju_ArrayList_get($this.$field_96134_d, $var9 + $this.$field_73768_d | 0); - if ($var10 !== null) { - $var11 = $par1 - nms_ChatLine_getUpdatedCounter($var10) | 0; - if (!($var11 >= 200 && !$var3)) { - $var12 = (1.0 - $var11 / 200.0) * 10.0; - if ($var12 < 0.0) - $var12 = 0.0; - if ($var12 > 1.0) - $var12 = 1.0; - $var14 = 255.0 * $var12 * $var12 | 0; - if ($var3) - $var14 = 255; - $var14 = $var14 * $var6 | 0; - $var4 = $var4 + 1 | 0; - if ($var14 > 3) { - $var16 = -$var9 * 9 | 0; - nms_Gui_drawRect(0, $var16 - 9 | 0, $var20, $var16, ($var14 / 2 | 0) << 24); - nleg_EaglerAdapterGL30_glEnable(16); - $var17 = nms_ChatLine_getChatLineString($var10); - if (!$this.$mc12.$gameSettings.$chatColours) - $var17 = nms_StringUtils_stripControlCodes($var17); - nms_FontRenderer_drawStringWithShadow($this.$mc12.$fontRenderer, $var17, 0, $var16 - 8 | 0, 16777215 + ($var14 << 24) | 0); - } - } - } - $var9 = $var9 + 1 | 0; - } - if ($var3) { - $par1 = $this.$mc12.$fontRenderer.$FONT_HEIGHT; - nleg_EaglerAdapterGL30_glTranslatef((-3.0), 0.0, 0.0); - $var18 = $rt_imul($var5, $par1) + $var5 | 0; - $var11 = $rt_imul($var4, $par1) + $var4 | 0; - $var19 = $rt_imul($this.$field_73768_d, $var11) / $var5 | 0; - $var13 = $rt_imul($var11, $var11) / $var18 | 0; - if ($var18 != $var11) { - $var14 = $var19 <= 0 ? 96 : 170; - $var20 = !$this.$field_73769_e ? 3355562 : 13382451; - $var15 = -$var19; - $var8 = $var15 - $var13 | 0; - $par1 = $var14 << 24; - nms_Gui_drawRect(0, $var15, 2, $var8, $var20 + $par1 | 0); - nms_Gui_drawRect(2, $var15, 1, $var8, 13421772 + $par1 | 0); - } - } - nleg_EaglerAdapterGL30_glPopMatrix(); - } - } -} -function nms_GuiNewChat_clearChatMessages($this) { - var var$1; - var$1 = $this.$field_96134_d; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; - var$1 = $this.$chatLines; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; - var$1 = $this.$sentMessages; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; -} -function nms_GuiNewChat_printChatMessage($this, $par1Str) { - nms_GuiNewChat_printChatMessageWithOptionalDeletion($this, $par1Str, 0); -} -function nms_GuiNewChat_printChatMessageWithOptionalDeletion($this, $par1Str, $par2) { - var var$3, var$4, var$5, var$6; - nms_GuiNewChat_func_96129_a($this, $par1Str, $par2, $this.$mc12.$ingameGUI.$updateCounter0, 0); - if (jl_System_outCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStdout; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - var$3.$sb = var$4; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - var$4 = new jnci_UTF8Charset; - jnc_Charset__init_(var$4, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = var$4; - jl_System_outCache = var$3; - } - var$5 = jl_System_outCache; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1533)); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $par1Str); - $par1Str = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - var$4 = var$5.$sb; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $par1Str); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); -} -function nms_GuiNewChat_func_96129_a($this, $par1Str, $par2, $par3, $par4) { - var $var5, $var6, $var8, var$8, var$9, var$10, $var7, var$12, var$13; - $var5 = $this.$mc12.$currentScreen instanceof nms_GuiChat; - $var6 = 1; - if ($par2) - nms_GuiNewChat_deleteChatLine($this, $par2); - $var8 = $this.$mc12.$fontRenderer; - var$8 = nms_GuiNewChat_func_96126_f($this) / $this.$mc12.$gameSettings.$chatScale; - var$9 = var$8 | 0; - if (var$8 < var$9) - var$9 = var$9 - 1 | 0; - $var8 = nms_FontRenderer_wrapFormattedStringToWidth($var8, $par1Str, var$9); - var$10 = jur_Pattern_split(jur_Pattern_compile($rt_s(60), 0), $var8, 0); - $var8 = new ju_Arrays$ArrayAsList; - $var8.$array3 = var$10; - $var7 = new ju_AbstractList$1; - $var7.$this$0 = $var8; - $var7.$modCount = $var7.$this$0.$modCount0; - $var7.$size1 = $var7.$this$0.$size2(); - $var7.$removeIndex = (-1); - while ($var7.$index >= $var7.$size1 ? 0 : 1) { - $var8 = ju_AbstractList$1_next($var7); - if ($var5 && $this.$field_73768_d > 0) { - $this.$field_73769_e = 1; - nms_GuiNewChat_scroll($this, 1); - } - if (!$var6) { - var$12 = new jl_StringBuilder; - var$12.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(307)); - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $var8); - $var8 = jl_String__init_0(var$12.$buffer, 0, var$12.$length); - } - $var6 = 0; - var$12 = $this.$field_96134_d; - var$13 = new nms_ChatLine; - var$13.$lineString = $var8; - var$13.$updateCounterCreated = $par3; - var$13.$chatLineID = $par2; - ju_ArrayList_add0(var$12, 0, var$13); - } - while ($this.$field_96134_d.$size0 > 100) { - ju_ArrayList_remove($this.$field_96134_d, $this.$field_96134_d.$size0 - 1 | 0); - } - a: { - if (!$par4) { - $var8 = $this.$chatLines; - var$12 = new nms_ChatLine; - var$12.$lineString = jl_String_trim($par1Str); - var$12.$updateCounterCreated = $par3; - var$12.$chatLineID = $par2; - ju_ArrayList_add0($var8, 0, var$12); - while (true) { - if ($this.$chatLines.$size0 <= 100) - break a; - ju_ArrayList_remove($this.$chatLines, $this.$chatLines.$size0 - 1 | 0); - } - } - } -} -function nms_GuiNewChat_func_96132_b($this) { - var $var2, $var1; - $var2 = $this.$field_96134_d; - ju_Arrays_fill($var2.$array1, 0, $var2.$size0, null); - $var2.$size0 = 0; - $this.$field_73768_d = 0; - $this.$field_73769_e = 0; - $var1 = $this.$chatLines.$size0 - 1 | 0; - a: { - while ($var1 >= 0) { - $var2 = $this.$chatLines; - if ($var1 < 0) - break a; - if ($var1 >= $var2.$size0) - break a; - $var2 = $var2.$array1.data[$var1]; - nms_GuiNewChat_func_96129_a($this, $var2.$lineString, $var2.$chatLineID, $var2.$updateCounterCreated, 1); - $var1 = $var1 + (-1) | 0; - } - return; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -} -function nms_GuiNewChat_getSentMessages($this) { - return $this.$sentMessages; -} -function nms_GuiNewChat_addToSentMessages($this, $par1Str) { - var var$2, var$3; - var$2 = $this.$sentMessages.$size0 ? 0 : 1; - a: { - b: { - if (!var$2) { - var$3 = $this.$sentMessages; - var$2 = $this.$sentMessages.$size0 - 1 | 0; - if (var$2 >= 0 && var$2 < var$3.$size0) { - if (jl_String_equals(var$3.$array1.data[var$2], $par1Str)) - break a; - else - break b; - } - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - } - ju_ArrayList_add($this.$sentMessages, $par1Str); - } -} -function nms_GuiNewChat_resetScroll($this) { - $this.$field_73768_d = 0; - $this.$field_73769_e = 0; -} -function nms_GuiNewChat_scroll($this, $par1) { - var $var2; - $this.$field_73768_d = $this.$field_73768_d + $par1 | 0; - $var2 = $this.$field_96134_d.$size0; - if ($this.$field_73768_d > ($var2 - nms_GuiNewChat_func_96127_i($this) | 0)) - $this.$field_73768_d = $var2 - nms_GuiNewChat_func_96127_i($this) | 0; - if ($this.$field_73768_d <= 0) { - $this.$field_73768_d = 0; - $this.$field_73769_e = 0; - } -} -function nms_GuiNewChat_func_73766_a($this, $par1, $par2) { - var $var4, $var5, $var6, $var7, var$7, $var8, $var8_0, $var9, $var3, var$12, var$13; - if (!($this.$mc12.$currentScreen instanceof nms_GuiChat)) - return null; - $var4 = nms_ScaledResolution__init_($this.$mc12.$gameSettings, $this.$mc12.$displayWidth, $this.$mc12.$displayHeight).$scaleFactor; - $var5 = $this.$mc12.$gameSettings.$chatScale; - $var6 = ($par1 / $var4 | 0) - 3 | 0; - $var7 = ($par2 / $var4 | 0) - 25 | 0; - var$7 = $var6 / $var5; - $var6 = var$7 | 0; - if (var$7 < $var6) - $var6 = $var6 - 1 | 0; - var$7 = $var7 / $var5; - $var7 = var$7 | 0; - if (var$7 < $var7) - $var7 = $var7 - 1 | 0; - if ($var6 >= 0 && $var7 >= 0) { - $var8 = nms_GuiNewChat_func_96127_i($this); - $var8_0 = $this.$field_96134_d.$size0; - if ($var8 < $var8_0) - $var8_0 = $var8; - var$7 = nms_GuiNewChat_func_96126_f($this) / $this.$mc12.$gameSettings.$chatScale; - $par1 = var$7 | 0; - if (var$7 < $par1) - $par1 = $par1 - 1 | 0; - if ($var6 <= $par1 && $var7 < ($rt_imul($this.$mc12.$fontRenderer.$FONT_HEIGHT, $var8_0) + $var8_0 | 0)) { - $var9 = ($var7 / ($this.$mc12.$fontRenderer.$FONT_HEIGHT + 1 | 0) | 0) + $this.$field_73768_d | 0; - $var3 = new nms_ChatClickData; - var$12 = $this.$mc12.$fontRenderer; - var$13 = $this.$field_96134_d; - if ($var9 >= 0 && $var9 < var$13.$size0) { - var$13 = var$13.$array1.data[$var9]; - $var3.$fontR = var$12; - $var3.$line = var$13; - $var3.$field_78310_f = nms_FontRenderer_trimStringToWidth0(var$12, var$13.$lineString, $var6, 0); - $var3.$clickedUrl = nms_ChatClickData_findClickedUrl($var3); - return $var3; - } - $var3 = new jl_IndexOutOfBoundsException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $rt_throw($var3); - } - return null; - } - return null; -} -function nms_GuiNewChat_addTranslatedMessage($this, $par1Str, $par2ArrayOfObj) { - var var$3, var$4, var$5, var$6; - $par1Str = nms_StringTranslate_translateKeyFormat(nms_StringTranslate_instance, $par1Str, $par2ArrayOfObj); - nms_GuiNewChat_func_96129_a($this, $par1Str, 0, $this.$mc12.$ingameGUI.$updateCounter0, 0); - if (jl_System_outCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStdout; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - var$3.$sb = var$4; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - var$4 = new jnci_UTF8Charset; - jnc_Charset__init_(var$4, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = var$4; - jl_System_outCache = var$3; - } - var$5 = jl_System_outCache; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1533)); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $par1Str); - $par1Str = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - var$4 = var$5.$sb; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $par1Str); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); -} -function nms_GuiNewChat_getChatOpen($this) { - return $this.$mc12.$currentScreen instanceof nms_GuiChat; -} -function nms_GuiNewChat_deleteChatLine($this, $par1) { - var $var3, $var2; - $var3 = $this.$field_96134_d; - $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 (true) { - if (!($var2.$index >= $var2.$size1 ? 0 : 1)) { - $var3 = $this.$chatLines; - $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) { - if (ju_AbstractList$1_next($var2).$chatLineID != $par1) - continue; - else { - ju_AbstractList$1_remove($var2); - return; - } - } - return; - } - if (ju_AbstractList$1_next($var2).$chatLineID != $par1) - continue; - else - break; - } - ju_AbstractList$1_remove($var2); -} -function nms_GuiNewChat_func_96126_f($this) { - var var$1, var$2; - var$1 = $this.$mc12.$gameSettings.$chatWidth * 280.0 + 40.0; - var$2 = var$1 | 0; - if (var$1 < var$2) - var$2 = var$2 - 1 | 0; - return var$2; -} -function nms_GuiNewChat_func_96133_g($this) { - var var$1, var$2; - var$1 = (!($this.$mc12.$currentScreen instanceof nms_GuiChat) ? $this.$mc12.$gameSettings.$chatHeightUnfocused : $this.$mc12.$gameSettings.$chatHeightFocused) * 160.0 + 20.0; - var$2 = var$1 | 0; - if (var$1 < var$2) - var$2 = var$2 - 1 | 0; - return var$2; -} -function nms_GuiNewChat_func_96131_h($this) { - return $this.$mc12.$gameSettings.$chatScale; -} -function nms_GuiNewChat_func_96128_a($par0) { - var var$2; - $par0 = $par0 * 280.0 + 40.0; - var$2 = $par0 | 0; - if ($par0 < var$2) - var$2 = var$2 - 1 | 0; - return var$2; -} -function nms_GuiNewChat_func_96130_b($par0) { - var var$2; - $par0 = $par0 * 160.0 + 20.0; - var$2 = $par0 | 0; - if ($par0 < var$2) - var$2 = var$2 - 1 | 0; - return var$2; -} -function nms_GuiNewChat_func_96127_i($this) { - var var$1, var$2; - var$1 = (!($this.$mc12.$currentScreen instanceof nms_GuiChat) ? $this.$mc12.$gameSettings.$chatHeightUnfocused : $this.$mc12.$gameSettings.$chatHeightFocused) * 160.0 + 20.0; - var$2 = var$1 | 0; - if (var$1 < var$2) - var$2 = var$2 - 1 | 0; - return var$2 / 9 | 0; -} -function nms_EnumChatFormatting() { - var a = this; jl_Enum.call(a); - a.$field_96329_z = 0; - a.$field_96303_A = 0; - a.$field_96304_B = null; -} -var nms_EnumChatFormatting_BLACK = null; -var nms_EnumChatFormatting_DARK_BLUE = null; -var nms_EnumChatFormatting_DARK_GREEN = null; -var nms_EnumChatFormatting_DARK_AQUA = null; -var nms_EnumChatFormatting_DARK_RED = null; -var nms_EnumChatFormatting_DARK_PURPLE = null; -var nms_EnumChatFormatting_GOLD = null; -var nms_EnumChatFormatting_GRAY = null; -var nms_EnumChatFormatting_DARK_GRAY = null; -var nms_EnumChatFormatting_BLUE = null; -var nms_EnumChatFormatting_GREEN = null; -var nms_EnumChatFormatting_AQUA = null; -var nms_EnumChatFormatting_RED = null; -var nms_EnumChatFormatting_LIGHT_PURPLE = null; -var nms_EnumChatFormatting_YELLOW = null; -var nms_EnumChatFormatting_WHITE = null; -var nms_EnumChatFormatting_OBFUSCATED = null; -var nms_EnumChatFormatting_BOLD = null; -var nms_EnumChatFormatting_STRIKETHROUGH = null; -var nms_EnumChatFormatting_UNDERLINE = null; -var nms_EnumChatFormatting_ITALIC = null; -var nms_EnumChatFormatting_RESET = null; -var nms_EnumChatFormatting_field_96321_w = null; -var nms_EnumChatFormatting_field_96331_x = null; -var nms_EnumChatFormatting_field_96330_y = null; -var nms_EnumChatFormatting_$VALUES = null; -function nms_EnumChatFormatting__init_(var_0, var_1, var_2) { - var var_3 = new nms_EnumChatFormatting(); - nms_EnumChatFormatting__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_EnumChatFormatting__init_1(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EnumChatFormatting(); - nms_EnumChatFormatting__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_EnumChatFormatting_values() { - return nms_EnumChatFormatting_$VALUES.$clone(); -} -function nms_EnumChatFormatting__init_0($this, var$1, var$2, $par3) { - var var$4; - $this.$name2 = var$1; - $this.$ordinal = var$2; - $this.$field_96329_z = $par3; - $this.$field_96303_A = 0; - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(760)); - var$4 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$4, var$4 + 1 | 0); - var$1.$buffer.data[var$4] = $par3; - $this.$field_96304_B = jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_EnumChatFormatting__init_2($this, var$1, var$2, $par3, $par4) { - $this.$name2 = var$1; - $this.$ordinal = var$2; - $this.$field_96329_z = $par3; - $this.$field_96303_A = $par4; - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(760)); - $par4 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, $par4, $par4 + 1 | 0); - var$1.$buffer.data[$par4] = $par3; - $this.$field_96304_B = jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_EnumChatFormatting_func_96298_a($this) { - return $this.$field_96329_z; -} -function nms_EnumChatFormatting_func_96297_d($this) { - return jl_String_toLowerCase($this.$name2); -} -function nms_EnumChatFormatting_toString($this) { - return $this.$field_96304_B; -} -function nms_EnumChatFormatting__clinit_() { - var $var3, var$2, $var1, $var0, var$5, $var2; - $var3 = new nms_EnumChatFormatting; - $var3.$name2 = $rt_s(1534); - $var3.$ordinal = 0; - $var3.$field_96329_z = 48; - $var3.$field_96303_A = 0; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(760)); - $var1 = var$2.$length; - jl_AbstractStringBuilder_insertSpace(var$2, $var1, $var1 + 1 | 0); - var$2.$buffer.data[$var1] = 48; - $var3.$field_96304_B = jl_String__init_0(var$2.$buffer, 0, var$2.$length); - nms_EnumChatFormatting_BLACK = $var3; - $var3 = new nms_EnumChatFormatting; - $var3.$name2 = $rt_s(1535); - $var3.$ordinal = 1; - $var3.$field_96329_z = 49; - $var3.$field_96303_A = 0; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(760)); - $var3.$field_96304_B = jl_StringBuilder_toString(jl_StringBuilder_append(var$2, 49)); - nms_EnumChatFormatting_DARK_BLUE = $var3; - nms_EnumChatFormatting_DARK_GREEN = nms_EnumChatFormatting__init_($rt_s(1536), 2, 50); - nms_EnumChatFormatting_DARK_AQUA = nms_EnumChatFormatting__init_($rt_s(1537), 3, 51); - nms_EnumChatFormatting_DARK_RED = nms_EnumChatFormatting__init_($rt_s(1538), 4, 52); - nms_EnumChatFormatting_DARK_PURPLE = nms_EnumChatFormatting__init_($rt_s(1539), 5, 53); - nms_EnumChatFormatting_GOLD = nms_EnumChatFormatting__init_($rt_s(1540), 6, 54); - nms_EnumChatFormatting_GRAY = nms_EnumChatFormatting__init_($rt_s(1541), 7, 55); - nms_EnumChatFormatting_DARK_GRAY = nms_EnumChatFormatting__init_($rt_s(1542), 8, 56); - nms_EnumChatFormatting_BLUE = nms_EnumChatFormatting__init_($rt_s(1543), 9, 57); - nms_EnumChatFormatting_GREEN = nms_EnumChatFormatting__init_($rt_s(1544), 10, 97); - nms_EnumChatFormatting_AQUA = nms_EnumChatFormatting__init_($rt_s(1545), 11, 98); - nms_EnumChatFormatting_RED = nms_EnumChatFormatting__init_($rt_s(1546), 12, 99); - nms_EnumChatFormatting_LIGHT_PURPLE = nms_EnumChatFormatting__init_($rt_s(1547), 13, 100); - nms_EnumChatFormatting_YELLOW = nms_EnumChatFormatting__init_($rt_s(1548), 14, 101); - nms_EnumChatFormatting_WHITE = nms_EnumChatFormatting__init_($rt_s(1549), 15, 102); - nms_EnumChatFormatting_OBFUSCATED = nms_EnumChatFormatting__init_1($rt_s(1550), 16, 107, 1); - nms_EnumChatFormatting_BOLD = nms_EnumChatFormatting__init_1($rt_s(1551), 17, 108, 1); - nms_EnumChatFormatting_STRIKETHROUGH = nms_EnumChatFormatting__init_1($rt_s(1552), 18, 109, 1); - nms_EnumChatFormatting_UNDERLINE = nms_EnumChatFormatting__init_1($rt_s(171), 19, 110, 1); - nms_EnumChatFormatting_ITALIC = nms_EnumChatFormatting__init_1($rt_s(1553), 20, 111, 1); - nms_EnumChatFormatting_RESET = nms_EnumChatFormatting__init_($rt_s(1554), 21, 114); - $var0 = $rt_createArray(nms_EnumChatFormatting, 22); - var$5 = $var0.data; - var$5[0] = nms_EnumChatFormatting_BLACK; - var$5[1] = nms_EnumChatFormatting_DARK_BLUE; - var$5[2] = nms_EnumChatFormatting_DARK_GREEN; - var$5[3] = nms_EnumChatFormatting_DARK_AQUA; - var$5[4] = nms_EnumChatFormatting_DARK_RED; - var$5[5] = nms_EnumChatFormatting_DARK_PURPLE; - var$5[6] = nms_EnumChatFormatting_GOLD; - var$5[7] = nms_EnumChatFormatting_GRAY; - var$5[8] = nms_EnumChatFormatting_DARK_GRAY; - var$5[9] = nms_EnumChatFormatting_BLUE; - var$5[10] = nms_EnumChatFormatting_GREEN; - var$5[11] = nms_EnumChatFormatting_AQUA; - var$5[12] = nms_EnumChatFormatting_RED; - var$5[13] = nms_EnumChatFormatting_LIGHT_PURPLE; - var$5[14] = nms_EnumChatFormatting_YELLOW; - var$5[15] = nms_EnumChatFormatting_WHITE; - var$5[16] = nms_EnumChatFormatting_OBFUSCATED; - var$5[17] = nms_EnumChatFormatting_BOLD; - var$5[18] = nms_EnumChatFormatting_STRIKETHROUGH; - var$5[19] = nms_EnumChatFormatting_UNDERLINE; - var$5[20] = nms_EnumChatFormatting_ITALIC; - var$5[21] = nms_EnumChatFormatting_RESET; - nms_EnumChatFormatting_$VALUES = $var0; - nms_EnumChatFormatting_field_96321_w = ju_HashMap__init_0(); - nms_EnumChatFormatting_field_96331_x = ju_HashMap__init_0(); - nms_EnumChatFormatting_field_96330_y = jur_Pattern_compile0(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1555)), jl_String_valueOf(167)), $rt_s(1556)))); - $var0 = nms_EnumChatFormatting_values().data; - $var1 = $var0.length; - $var2 = 0; - while ($var2 < $var1) { - $var3 = $var0[$var2]; - ju_HashMap_put(nms_EnumChatFormatting_field_96321_w, jl_Character_valueOf(nms_EnumChatFormatting_func_96298_a($var3)), $var3); - ju_HashMap_put(nms_EnumChatFormatting_field_96331_x, nms_EnumChatFormatting_func_96297_d($var3), $var3); - $var2 = $var2 + 1 | 0; - } -} -function cjj_InfTree() { - var a = this; jl_Object.call(a); - a.$hn = null; - a.$v = null; - a.$c = null; - a.$r0 = null; - a.$u = null; - a.$x2 = null; -} -var cjj_InfTree_fixed_tl = null; -var cjj_InfTree_fixed_td = null; -var cjj_InfTree_cplens = null; -var cjj_InfTree_cplext = null; -var cjj_InfTree_cpdist = null; -var cjj_InfTree_cpdext = null; -function cjj_InfTree__init_0() { - var var_0 = new cjj_InfTree(); - cjj_InfTree__init_(var_0); - return var_0; -} -function cjj_InfTree__init_($this) { - $this.$hn = null; - $this.$v = null; - $this.$c = null; - $this.$r0 = null; - $this.$u = null; - $this.$x2 = null; -} -function cjj_InfTree_huft_build($this, $b, $bindex, $n, $s, $d, $e, $t, $m, $hp, $hn, $v) { - var $p, $i, var$14, var$15, $f, $l, $j, var$19, $y, var$21, $xp, $mask, $h, $w, $q, $z, $a, $a_0, var$30; - $p = 0; - $i = $n; - while (true) { - var$14 = $b.data; - var$15 = $this.$c.data; - $f = var$14[$bindex + $p | 0]; - var$15[$f] = var$15[$f] + 1 | 0; - $p = $p + 1 | 0; - $i = $i + (-1) | 0; - if (!$i) - break; - } - if ($this.$c.data[0] == $n) { - $b = $t.data; - $d = $m.data; - $b[0] = (-1); - $d[0] = 0; - return 0; - } - $m = $m.data; - $l = $m[0]; - $j = 1; - a: { - while (true) { - if ($j > 15) - break a; - if ($this.$c.data[$j]) - break; - $j = $j + 1 | 0; - } - } - if ($l < $j) - $l = $j; - var$19 = 15; - b: { - while (true) { - if (!var$19) - break b; - if ($this.$c.data[var$19]) - break; - var$19 = var$19 + (-1) | 0; - } - } - if ($l > var$19) - $l = var$19; - $m[0] = $l; - $y = 1 << $j; - $p = $j; - while (true) { - if ($p >= var$19) { - var$21 = $y - $this.$c.data[var$19] | 0; - if (var$21 < 0) - return (-3); - $b = $this.$c.data; - $b[var$19] = $b[var$19] + var$21 | 0; - $b = $this.$x2.data; - $y = 0; - $b[1] = $y; - $p = 1; - $xp = 2; - $mask = var$19; - while (true) { - $mask = $mask + (-1) | 0; - if (!$mask) - break; - $m = $this.$x2.data; - $y = $y + $this.$c.data[$p] | 0; - $m[$xp] = $y; - $xp = $xp + 1 | 0; - $p = $p + 1 | 0; - } - $p = 0; - $xp = 0; - while (true) { - $mask = var$14[$bindex + $xp | 0]; - if ($mask) { - $m = $v.data; - $b = $this.$x2.data; - $f = $b[$mask]; - $b[$mask] = $f + 1 | 0; - $m[$f] = $p; - } - $xp = $xp + 1 | 0; - $p = $p + 1 | 0; - if ($p >= $n) - break; - } - $y = $this.$x2.data[var$19]; - $b = $this.$x2.data; - $p = 0; - $b[0] = $p; - $xp = 0; - $h = (-1); - $w = -$l; - $this.$u.data[0] = 0; - $q = 0; - $z = 0; - c: while (true) { - if ($j > var$19) - return var$21 && var$19 != 1 ? (-5) : 0; - $a = $this.$c.data[$j]; - while (true) { - $a_0 = $a + (-1) | 0; - if (!$a) - break; - $i = $a_0 + 1 | 0; - while (true) { - var$30 = $w + $l | 0; - if ($j <= var$30) - break; - $h = $h + 1 | 0; - $mask = var$19 - var$30 | 0; - if ($mask > $l) - $mask = $l; - d: { - $a = $j - var$30 | 0; - $bindex = 1 << $a; - if ($bindex > $i) { - $f = $bindex - $i | 0; - if ($a < $mask) { - $bindex = $j; - while (true) { - $a = $a + 1 | 0; - if ($a >= $mask) - break; - $n = $f << 1; - $b = $this.$c.data; - $bindex = $bindex + 1 | 0; - if ($n <= $b[$bindex]) - break d; - $f = $n - $this.$c.data[$bindex] | 0; - } - } - } - } - $b = $hn.data; - $z = 1 << $a; - if (($b[0] + $z | 0) > 1440) - break c; - $m = $this.$u.data; - $q = $b[0]; - $m[$h] = $q; - $b[0] = $b[0] + $z | 0; - if (!$h) { - $t.data[0] = $q; - $w = var$30; - continue; - } - $this.$x2.data[$h] = $p; - $this.$r0.data[0] = $a << 24 >> 24; - $this.$r0.data[1] = $l << 24 >> 24; - $bindex = $p >>> (var$30 - $l | 0); - $m = $this.$r0.data; - $b = $this.$u.data; - $f = $h - 1 | 0; - $m[2] = ($q - $b[$f] | 0) - $bindex | 0; - jl_System_arraycopy($this.$r0, 0, $hp, ($this.$u.data[$f] + $bindex | 0) * 3 | 0, 3); - $w = var$30; - } - $b = $this.$r0.data; - $mask = $j - $w | 0; - $b[1] = $mask << 24 >> 24; - if ($xp >= $y) - $this.$r0.data[0] = 192; - else { - var$15 = $v.data; - if (var$15[$xp] >= $s) { - $m = $e.data; - var$14 = $d.data; - $this.$r0.data[0] = (($m[var$15[$xp] - $s | 0] + 16 | 0) + 64 | 0) << 24 >> 24; - $b = $this.$r0.data; - $n = $xp + 1 | 0; - $b[2] = var$14[var$15[$xp] - $s | 0]; - $xp = $n; - } else { - $b = $this.$r0; - $b.data[0] = (var$15[$xp] >= 256 ? 96 : 0) << 24 >> 24; - $b = $this.$r0.data; - $n = $xp + 1 | 0; - $b[2] = var$15[$xp]; - $xp = $n; - } - } - $f = 1 << $mask; - $bindex = $p >>> $w; - while ($bindex < $z) { - jl_System_arraycopy($this.$r0, 0, $hp, ($q + $bindex | 0) * 3 | 0, 3); - $bindex = $bindex + $f | 0; - } - $bindex = 1 << ($j - 1 | 0); - while ($p & $bindex) { - $p = $p ^ $bindex; - $bindex = $bindex >>> 1; - } - $p = $p ^ $bindex; - $mask = (1 << $w) - 1 | 0; - while (($p & $mask) != $this.$x2.data[$h]) { - $h = $h + (-1) | 0; - $w = $w - $l | 0; - $mask = (1 << $w) - 1 | 0; - } - $a = $a_0; - } - $j = $j + 1 | 0; - } - return (-3); - } - $f = $y - $this.$c.data[$p] | 0; - if ($f < 0) - break; - $p = $p + 1 | 0; - $y = $f << 1; - } - return (-3); -} -function cjj_InfTree_inflate_trees_bits($this, $c, $bb, $tb, $hp, $z) { - var $result; - cjj_InfTree_initWorkArea($this, 19); - $this.$hn.data[0] = 0; - $result = cjj_InfTree_huft_build($this, $c, 0, 19, 19, null, null, $tb, $bb, $hp, $this.$hn, $this.$v); - if ($result == (-3)) - $z.$msg = $rt_s(1557); - else if (!($result != (-5) && $bb.data[0])) { - $z.$msg = $rt_s(1558); - $result = (-3); - } - return $result; -} -function cjj_InfTree_inflate_trees_dynamic($this, $nl, $nd, $c, $bl, $bd, $tl, $td, $hp, $z) { - var $result; - cjj_InfTree_initWorkArea($this, 288); - $this.$hn.data[0] = 0; - $result = cjj_InfTree_huft_build($this, $c, 0, $nl, 257, cjj_InfTree_cplens, cjj_InfTree_cplext, $tl, $bl, $hp, $this.$hn, $this.$v); - if (!$result && $bl.data[0]) { - cjj_InfTree_initWorkArea($this, 288); - $nd = cjj_InfTree_huft_build($this, $c, $nl, $nd, 0, cjj_InfTree_cpdist, cjj_InfTree_cpdext, $td, $bd, $hp, $this.$hn, $this.$v); - if (!$nd && !(!$bd.data[0] && $nl > 257)) - return 0; - if ($nd == (-3)) - $z.$msg = $rt_s(1559); - else if ($nd == (-5)) { - $z.$msg = $rt_s(1560); - $nd = (-3); - } else if ($nd != (-4)) { - $z.$msg = $rt_s(1561); - $nd = (-3); - } - return $nd; - } - if ($result == (-3)) - $z.$msg = $rt_s(1562); - else if ($result != (-4)) { - $z.$msg = $rt_s(1563); - $result = (-3); - } - return $result; -} -function cjj_InfTree_inflate_trees_fixed($bl, $bd, $tl, $td, $z) { - $td = $td.data; - $tl = $tl.data; - $bd = $bd.data; - $bl.data[0] = 9; - $bd[0] = 5; - $tl[0] = cjj_InfTree_fixed_tl; - $td[0] = cjj_InfTree_fixed_td; - return 0; -} -function cjj_InfTree_initWorkArea($this, $vsize) { - var $i; - if ($this.$hn === null) { - $this.$hn = $rt_createIntArray(1); - $this.$v = $rt_createIntArray($vsize); - $this.$c = $rt_createIntArray(16); - $this.$r0 = $rt_createIntArray(3); - $this.$u = $rt_createIntArray(15); - $this.$x2 = $rt_createIntArray(16); - } - if ($this.$v.data.length < $vsize) - $this.$v = $rt_createIntArray($vsize); - $i = 0; - while ($i < $vsize) { - $this.$v.data[$i] = 0; - $i = $i + 1 | 0; - } - $i = 0; - while ($i < 16) { - $this.$c.data[$i] = 0; - $i = $i + 1 | 0; - } - $i = 0; - while ($i < 3) { - $this.$r0.data[$i] = 0; - $i = $i + 1 | 0; - } - jl_System_arraycopy($this.$c, 0, $this.$u, 0, 15); - jl_System_arraycopy($this.$c, 0, $this.$x2, 0, 16); -} -function cjj_InfTree__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(1536); - var$2 = var$1.data; - var$2[0] = 96; - var$2[1] = 7; - var$2[2] = 256; - var$2[3] = 0; - var$2[4] = 8; - var$2[5] = 80; - var$2[6] = 0; - var$2[7] = 8; - var$2[8] = 16; - var$2[9] = 84; - var$2[10] = 8; - var$2[11] = 115; - var$2[12] = 82; - var$2[13] = 7; - var$2[14] = 31; - var$2[15] = 0; - var$2[16] = 8; - var$2[17] = 112; - var$2[18] = 0; - var$2[19] = 8; - var$2[20] = 48; - var$2[21] = 0; - var$2[22] = 9; - var$2[23] = 192; - var$2[24] = 80; - var$2[25] = 7; - var$2[26] = 10; - var$2[27] = 0; - var$2[28] = 8; - var$2[29] = 96; - var$2[30] = 0; - var$2[31] = 8; - var$2[32] = 32; - var$2[33] = 0; - var$2[34] = 9; - var$2[35] = 160; - var$2[36] = 0; - var$2[37] = 8; - var$2[38] = 0; - var$2[39] = 0; - var$2[40] = 8; - var$2[41] = 128; - var$2[42] = 0; - var$2[43] = 8; - var$2[44] = 64; - var$2[45] = 0; - var$2[46] = 9; - var$2[47] = 224; - var$2[48] = 80; - var$2[49] = 7; - var$2[50] = 6; - var$2[51] = 0; - var$2[52] = 8; - var$2[53] = 88; - var$2[54] = 0; - var$2[55] = 8; - var$2[56] = 24; - var$2[57] = 0; - var$2[58] = 9; - var$2[59] = 144; - var$2[60] = 83; - var$2[61] = 7; - var$2[62] = 59; - var$2[63] = 0; - var$2[64] = 8; - var$2[65] = 120; - var$2[66] = 0; - var$2[67] = 8; - var$2[68] = 56; - var$2[69] = 0; - var$2[70] = 9; - var$2[71] = 208; - var$2[72] = 81; - var$2[73] = 7; - var$2[74] = 17; - var$2[75] = 0; - var$2[76] = 8; - var$2[77] = 104; - var$2[78] = 0; - var$2[79] = 8; - var$2[80] = 40; - var$2[81] = 0; - var$2[82] = 9; - var$2[83] = 176; - var$2[84] = 0; - var$2[85] = 8; - var$2[86] = 8; - var$2[87] = 0; - var$2[88] = 8; - var$2[89] = 136; - var$2[90] = 0; - var$2[91] = 8; - var$2[92] = 72; - var$2[93] = 0; - var$2[94] = 9; - var$2[95] = 240; - var$2[96] = 80; - var$2[97] = 7; - var$2[98] = 4; - var$2[99] = 0; - var$2[100] = 8; - var$2[101] = 84; - var$2[102] = 0; - var$2[103] = 8; - var$2[104] = 20; - var$2[105] = 85; - var$2[106] = 8; - var$2[107] = 227; - var$2[108] = 83; - var$2[109] = 7; - var$2[110] = 43; - var$2[111] = 0; - var$2[112] = 8; - var$2[113] = 116; - var$2[114] = 0; - var$2[115] = 8; - var$2[116] = 52; - var$2[117] = 0; - var$2[118] = 9; - var$2[119] = 200; - var$2[120] = 81; - var$2[121] = 7; - var$2[122] = 13; - var$2[123] = 0; - var$2[124] = 8; - var$2[125] = 100; - var$2[126] = 0; - var$2[127] = 8; - var$2[128] = 36; - var$2[129] = 0; - var$2[130] = 9; - var$2[131] = 168; - var$2[132] = 0; - var$2[133] = 8; - var$2[134] = 4; - var$2[135] = 0; - var$2[136] = 8; - var$2[137] = 132; - var$2[138] = 0; - var$2[139] = 8; - var$2[140] = 68; - var$2[141] = 0; - var$2[142] = 9; - var$2[143] = 232; - var$2[144] = 80; - var$2[145] = 7; - var$2[146] = 8; - var$2[147] = 0; - var$2[148] = 8; - var$2[149] = 92; - var$2[150] = 0; - var$2[151] = 8; - var$2[152] = 28; - var$2[153] = 0; - var$2[154] = 9; - var$2[155] = 152; - var$2[156] = 84; - var$2[157] = 7; - var$2[158] = 83; - var$2[159] = 0; - var$2[160] = 8; - var$2[161] = 124; - var$2[162] = 0; - var$2[163] = 8; - var$2[164] = 60; - var$2[165] = 0; - var$2[166] = 9; - var$2[167] = 216; - var$2[168] = 82; - var$2[169] = 7; - var$2[170] = 23; - var$2[171] = 0; - var$2[172] = 8; - var$2[173] = 108; - var$2[174] = 0; - var$2[175] = 8; - var$2[176] = 44; - var$2[177] = 0; - var$2[178] = 9; - var$2[179] = 184; - var$2[180] = 0; - var$2[181] = 8; - var$2[182] = 12; - var$2[183] = 0; - var$2[184] = 8; - var$2[185] = 140; - var$2[186] = 0; - var$2[187] = 8; - var$2[188] = 76; - var$2[189] = 0; - var$2[190] = 9; - var$2[191] = 248; - var$2[192] = 80; - var$2[193] = 7; - var$2[194] = 3; - var$2[195] = 0; - var$2[196] = 8; - var$2[197] = 82; - var$2[198] = 0; - var$2[199] = 8; - var$2[200] = 18; - var$2[201] = 85; - var$2[202] = 8; - var$2[203] = 163; - var$2[204] = 83; - var$2[205] = 7; - var$2[206] = 35; - var$2[207] = 0; - var$2[208] = 8; - var$2[209] = 114; - var$2[210] = 0; - var$2[211] = 8; - var$2[212] = 50; - var$2[213] = 0; - var$2[214] = 9; - var$2[215] = 196; - var$2[216] = 81; - var$2[217] = 7; - var$2[218] = 11; - var$2[219] = 0; - var$2[220] = 8; - var$2[221] = 98; - var$2[222] = 0; - var$2[223] = 8; - var$2[224] = 34; - var$2[225] = 0; - var$2[226] = 9; - var$2[227] = 164; - var$2[228] = 0; - var$2[229] = 8; - var$2[230] = 2; - var$2[231] = 0; - var$2[232] = 8; - var$2[233] = 130; - var$2[234] = 0; - var$2[235] = 8; - var$2[236] = 66; - var$2[237] = 0; - var$2[238] = 9; - var$2[239] = 228; - var$2[240] = 80; - var$2[241] = 7; - var$2[242] = 7; - var$2[243] = 0; - var$2[244] = 8; - var$2[245] = 90; - var$2[246] = 0; - var$2[247] = 8; - var$2[248] = 26; - var$2[249] = 0; - var$2[250] = 9; - var$2[251] = 148; - var$2[252] = 84; - var$2[253] = 7; - var$2[254] = 67; - var$2[255] = 0; - var$2[256] = 8; - var$2[257] = 122; - var$2[258] = 0; - var$2[259] = 8; - var$2[260] = 58; - var$2[261] = 0; - var$2[262] = 9; - var$2[263] = 212; - var$2[264] = 82; - var$2[265] = 7; - var$2[266] = 19; - var$2[267] = 0; - var$2[268] = 8; - var$2[269] = 106; - var$2[270] = 0; - var$2[271] = 8; - var$2[272] = 42; - var$2[273] = 0; - var$2[274] = 9; - var$2[275] = 180; - var$2[276] = 0; - var$2[277] = 8; - var$2[278] = 10; - var$2[279] = 0; - var$2[280] = 8; - var$2[281] = 138; - var$2[282] = 0; - var$2[283] = 8; - var$2[284] = 74; - var$2[285] = 0; - var$2[286] = 9; - var$2[287] = 244; - var$2[288] = 80; - var$2[289] = 7; - var$2[290] = 5; - var$2[291] = 0; - var$2[292] = 8; - var$2[293] = 86; - var$2[294] = 0; - var$2[295] = 8; - var$2[296] = 22; - var$2[297] = 192; - var$2[298] = 8; - var$2[299] = 0; - var$2[300] = 83; - var$2[301] = 7; - var$2[302] = 51; - var$2[303] = 0; - var$2[304] = 8; - var$2[305] = 118; - var$2[306] = 0; - var$2[307] = 8; - var$2[308] = 54; - var$2[309] = 0; - var$2[310] = 9; - var$2[311] = 204; - var$2[312] = 81; - var$2[313] = 7; - var$2[314] = 15; - var$2[315] = 0; - var$2[316] = 8; - var$2[317] = 102; - var$2[318] = 0; - var$2[319] = 8; - var$2[320] = 38; - var$2[321] = 0; - var$2[322] = 9; - var$2[323] = 172; - var$2[324] = 0; - var$2[325] = 8; - var$2[326] = 6; - var$2[327] = 0; - var$2[328] = 8; - var$2[329] = 134; - var$2[330] = 0; - var$2[331] = 8; - var$2[332] = 70; - var$2[333] = 0; - var$2[334] = 9; - var$2[335] = 236; - var$2[336] = 80; - var$2[337] = 7; - var$2[338] = 9; - var$2[339] = 0; - var$2[340] = 8; - var$2[341] = 94; - var$2[342] = 0; - var$2[343] = 8; - var$2[344] = 30; - var$2[345] = 0; - var$2[346] = 9; - var$2[347] = 156; - var$2[348] = 84; - var$2[349] = 7; - var$2[350] = 99; - var$2[351] = 0; - var$2[352] = 8; - var$2[353] = 126; - var$2[354] = 0; - var$2[355] = 8; - var$2[356] = 62; - var$2[357] = 0; - var$2[358] = 9; - var$2[359] = 220; - var$2[360] = 82; - var$2[361] = 7; - var$2[362] = 27; - var$2[363] = 0; - var$2[364] = 8; - var$2[365] = 110; - var$2[366] = 0; - var$2[367] = 8; - var$2[368] = 46; - var$2[369] = 0; - var$2[370] = 9; - var$2[371] = 188; - var$2[372] = 0; - var$2[373] = 8; - var$2[374] = 14; - var$2[375] = 0; - var$2[376] = 8; - var$2[377] = 142; - var$2[378] = 0; - var$2[379] = 8; - var$2[380] = 78; - var$2[381] = 0; - var$2[382] = 9; - var$2[383] = 252; - var$2[384] = 96; - var$2[385] = 7; - var$2[386] = 256; - var$2[387] = 0; - var$2[388] = 8; - var$2[389] = 81; - var$2[390] = 0; - var$2[391] = 8; - var$2[392] = 17; - var$2[393] = 85; - var$2[394] = 8; - var$2[395] = 131; - var$2[396] = 82; - var$2[397] = 7; - var$2[398] = 31; - var$2[399] = 0; - var$2[400] = 8; - var$2[401] = 113; - var$2[402] = 0; - var$2[403] = 8; - var$2[404] = 49; - var$2[405] = 0; - var$2[406] = 9; - var$2[407] = 194; - var$2[408] = 80; - var$2[409] = 7; - var$2[410] = 10; - var$2[411] = 0; - var$2[412] = 8; - var$2[413] = 97; - var$2[414] = 0; - var$2[415] = 8; - var$2[416] = 33; - var$2[417] = 0; - var$2[418] = 9; - var$2[419] = 162; - var$2[420] = 0; - var$2[421] = 8; - var$2[422] = 1; - var$2[423] = 0; - var$2[424] = 8; - var$2[425] = 129; - var$2[426] = 0; - var$2[427] = 8; - var$2[428] = 65; - var$2[429] = 0; - var$2[430] = 9; - var$2[431] = 226; - var$2[432] = 80; - var$2[433] = 7; - var$2[434] = 6; - var$2[435] = 0; - var$2[436] = 8; - var$2[437] = 89; - var$2[438] = 0; - var$2[439] = 8; - var$2[440] = 25; - var$2[441] = 0; - var$2[442] = 9; - var$2[443] = 146; - var$2[444] = 83; - var$2[445] = 7; - var$2[446] = 59; - var$2[447] = 0; - var$2[448] = 8; - var$2[449] = 121; - var$2[450] = 0; - var$2[451] = 8; - var$2[452] = 57; - var$2[453] = 0; - var$2[454] = 9; - var$2[455] = 210; - var$2[456] = 81; - var$2[457] = 7; - var$2[458] = 17; - var$2[459] = 0; - var$2[460] = 8; - var$2[461] = 105; - var$2[462] = 0; - var$2[463] = 8; - var$2[464] = 41; - var$2[465] = 0; - var$2[466] = 9; - var$2[467] = 178; - var$2[468] = 0; - var$2[469] = 8; - var$2[470] = 9; - var$2[471] = 0; - var$2[472] = 8; - var$2[473] = 137; - var$2[474] = 0; - var$2[475] = 8; - var$2[476] = 73; - var$2[477] = 0; - var$2[478] = 9; - var$2[479] = 242; - var$2[480] = 80; - var$2[481] = 7; - var$2[482] = 4; - var$2[483] = 0; - var$2[484] = 8; - var$2[485] = 85; - var$2[486] = 0; - var$2[487] = 8; - var$2[488] = 21; - var$2[489] = 80; - var$2[490] = 8; - var$2[491] = 258; - var$2[492] = 83; - var$2[493] = 7; - var$2[494] = 43; - var$2[495] = 0; - var$2[496] = 8; - var$2[497] = 117; - var$2[498] = 0; - var$2[499] = 8; - var$2[500] = 53; - var$2[501] = 0; - var$2[502] = 9; - var$2[503] = 202; - var$2[504] = 81; - var$2[505] = 7; - var$2[506] = 13; - var$2[507] = 0; - var$2[508] = 8; - var$2[509] = 101; - var$2[510] = 0; - var$2[511] = 8; - var$2[512] = 37; - var$2[513] = 0; - var$2[514] = 9; - var$2[515] = 170; - var$2[516] = 0; - var$2[517] = 8; - var$2[518] = 5; - var$2[519] = 0; - var$2[520] = 8; - var$2[521] = 133; - var$2[522] = 0; - var$2[523] = 8; - var$2[524] = 69; - var$2[525] = 0; - var$2[526] = 9; - var$2[527] = 234; - var$2[528] = 80; - var$2[529] = 7; - var$2[530] = 8; - var$2[531] = 0; - var$2[532] = 8; - var$2[533] = 93; - var$2[534] = 0; - var$2[535] = 8; - var$2[536] = 29; - var$2[537] = 0; - var$2[538] = 9; - var$2[539] = 154; - var$2[540] = 84; - var$2[541] = 7; - var$2[542] = 83; - var$2[543] = 0; - var$2[544] = 8; - var$2[545] = 125; - var$2[546] = 0; - var$2[547] = 8; - var$2[548] = 61; - var$2[549] = 0; - var$2[550] = 9; - var$2[551] = 218; - var$2[552] = 82; - var$2[553] = 7; - var$2[554] = 23; - var$2[555] = 0; - var$2[556] = 8; - var$2[557] = 109; - var$2[558] = 0; - var$2[559] = 8; - var$2[560] = 45; - var$2[561] = 0; - var$2[562] = 9; - var$2[563] = 186; - var$2[564] = 0; - var$2[565] = 8; - var$2[566] = 13; - var$2[567] = 0; - var$2[568] = 8; - var$2[569] = 141; - var$2[570] = 0; - var$2[571] = 8; - var$2[572] = 77; - var$2[573] = 0; - var$2[574] = 9; - var$2[575] = 250; - var$2[576] = 80; - var$2[577] = 7; - var$2[578] = 3; - var$2[579] = 0; - var$2[580] = 8; - var$2[581] = 83; - var$2[582] = 0; - var$2[583] = 8; - var$2[584] = 19; - var$2[585] = 85; - var$2[586] = 8; - var$2[587] = 195; - var$2[588] = 83; - var$2[589] = 7; - var$2[590] = 35; - var$2[591] = 0; - var$2[592] = 8; - var$2[593] = 115; - var$2[594] = 0; - var$2[595] = 8; - var$2[596] = 51; - var$2[597] = 0; - var$2[598] = 9; - var$2[599] = 198; - var$2[600] = 81; - var$2[601] = 7; - var$2[602] = 11; - var$2[603] = 0; - var$2[604] = 8; - var$2[605] = 99; - var$2[606] = 0; - var$2[607] = 8; - var$2[608] = 35; - var$2[609] = 0; - var$2[610] = 9; - var$2[611] = 166; - var$2[612] = 0; - var$2[613] = 8; - var$2[614] = 3; - var$2[615] = 0; - var$2[616] = 8; - var$2[617] = 131; - var$2[618] = 0; - var$2[619] = 8; - var$2[620] = 67; - var$2[621] = 0; - var$2[622] = 9; - var$2[623] = 230; - var$2[624] = 80; - var$2[625] = 7; - var$2[626] = 7; - var$2[627] = 0; - var$2[628] = 8; - var$2[629] = 91; - var$2[630] = 0; - var$2[631] = 8; - var$2[632] = 27; - var$2[633] = 0; - var$2[634] = 9; - var$2[635] = 150; - var$2[636] = 84; - var$2[637] = 7; - var$2[638] = 67; - var$2[639] = 0; - var$2[640] = 8; - var$2[641] = 123; - var$2[642] = 0; - var$2[643] = 8; - var$2[644] = 59; - var$2[645] = 0; - var$2[646] = 9; - var$2[647] = 214; - var$2[648] = 82; - var$2[649] = 7; - var$2[650] = 19; - var$2[651] = 0; - var$2[652] = 8; - var$2[653] = 107; - var$2[654] = 0; - var$2[655] = 8; - var$2[656] = 43; - var$2[657] = 0; - var$2[658] = 9; - var$2[659] = 182; - var$2[660] = 0; - var$2[661] = 8; - var$2[662] = 11; - var$2[663] = 0; - var$2[664] = 8; - var$2[665] = 139; - var$2[666] = 0; - var$2[667] = 8; - var$2[668] = 75; - var$2[669] = 0; - var$2[670] = 9; - var$2[671] = 246; - var$2[672] = 80; - var$2[673] = 7; - var$2[674] = 5; - var$2[675] = 0; - var$2[676] = 8; - var$2[677] = 87; - var$2[678] = 0; - var$2[679] = 8; - var$2[680] = 23; - var$2[681] = 192; - var$2[682] = 8; - var$2[683] = 0; - var$2[684] = 83; - var$2[685] = 7; - var$2[686] = 51; - var$2[687] = 0; - var$2[688] = 8; - var$2[689] = 119; - var$2[690] = 0; - var$2[691] = 8; - var$2[692] = 55; - var$2[693] = 0; - var$2[694] = 9; - var$2[695] = 206; - var$2[696] = 81; - var$2[697] = 7; - var$2[698] = 15; - var$2[699] = 0; - var$2[700] = 8; - var$2[701] = 103; - var$2[702] = 0; - var$2[703] = 8; - var$2[704] = 39; - var$2[705] = 0; - var$2[706] = 9; - var$2[707] = 174; - var$2[708] = 0; - var$2[709] = 8; - var$2[710] = 7; - var$2[711] = 0; - var$2[712] = 8; - var$2[713] = 135; - var$2[714] = 0; - var$2[715] = 8; - var$2[716] = 71; - var$2[717] = 0; - var$2[718] = 9; - var$2[719] = 238; - var$2[720] = 80; - var$2[721] = 7; - var$2[722] = 9; - var$2[723] = 0; - var$2[724] = 8; - var$2[725] = 95; - var$2[726] = 0; - var$2[727] = 8; - var$2[728] = 31; - var$2[729] = 0; - var$2[730] = 9; - var$2[731] = 158; - var$2[732] = 84; - var$2[733] = 7; - var$2[734] = 99; - var$2[735] = 0; - var$2[736] = 8; - var$2[737] = 127; - var$2[738] = 0; - var$2[739] = 8; - var$2[740] = 63; - var$2[741] = 0; - var$2[742] = 9; - var$2[743] = 222; - var$2[744] = 82; - var$2[745] = 7; - var$2[746] = 27; - var$2[747] = 0; - var$2[748] = 8; - var$2[749] = 111; - var$2[750] = 0; - var$2[751] = 8; - var$2[752] = 47; - var$2[753] = 0; - var$2[754] = 9; - var$2[755] = 190; - var$2[756] = 0; - var$2[757] = 8; - var$2[758] = 15; - var$2[759] = 0; - var$2[760] = 8; - var$2[761] = 143; - var$2[762] = 0; - var$2[763] = 8; - var$2[764] = 79; - var$2[765] = 0; - var$2[766] = 9; - var$2[767] = 254; - var$2[768] = 96; - var$2[769] = 7; - var$2[770] = 256; - var$2[771] = 0; - var$2[772] = 8; - var$2[773] = 80; - var$2[774] = 0; - var$2[775] = 8; - var$2[776] = 16; - var$2[777] = 84; - var$2[778] = 8; - var$2[779] = 115; - var$2[780] = 82; - var$2[781] = 7; - var$2[782] = 31; - var$2[783] = 0; - var$2[784] = 8; - var$2[785] = 112; - var$2[786] = 0; - var$2[787] = 8; - var$2[788] = 48; - var$2[789] = 0; - var$2[790] = 9; - var$2[791] = 193; - var$2[792] = 80; - var$2[793] = 7; - var$2[794] = 10; - var$2[795] = 0; - var$2[796] = 8; - var$2[797] = 96; - var$2[798] = 0; - var$2[799] = 8; - var$2[800] = 32; - var$2[801] = 0; - var$2[802] = 9; - var$2[803] = 161; - var$2[804] = 0; - var$2[805] = 8; - var$2[806] = 0; - var$2[807] = 0; - var$2[808] = 8; - var$2[809] = 128; - var$2[810] = 0; - var$2[811] = 8; - var$2[812] = 64; - var$2[813] = 0; - var$2[814] = 9; - var$2[815] = 225; - var$2[816] = 80; - var$2[817] = 7; - var$2[818] = 6; - var$2[819] = 0; - var$2[820] = 8; - var$2[821] = 88; - var$2[822] = 0; - var$2[823] = 8; - var$2[824] = 24; - var$2[825] = 0; - var$2[826] = 9; - var$2[827] = 145; - var$2[828] = 83; - var$2[829] = 7; - var$2[830] = 59; - var$2[831] = 0; - var$2[832] = 8; - var$2[833] = 120; - var$2[834] = 0; - var$2[835] = 8; - var$2[836] = 56; - var$2[837] = 0; - var$2[838] = 9; - var$2[839] = 209; - var$2[840] = 81; - var$2[841] = 7; - var$2[842] = 17; - var$2[843] = 0; - var$2[844] = 8; - var$2[845] = 104; - var$2[846] = 0; - var$2[847] = 8; - var$2[848] = 40; - var$2[849] = 0; - var$2[850] = 9; - var$2[851] = 177; - var$2[852] = 0; - var$2[853] = 8; - var$2[854] = 8; - var$2[855] = 0; - var$2[856] = 8; - var$2[857] = 136; - var$2[858] = 0; - var$2[859] = 8; - var$2[860] = 72; - var$2[861] = 0; - var$2[862] = 9; - var$2[863] = 241; - var$2[864] = 80; - var$2[865] = 7; - var$2[866] = 4; - var$2[867] = 0; - var$2[868] = 8; - var$2[869] = 84; - var$2[870] = 0; - var$2[871] = 8; - var$2[872] = 20; - var$2[873] = 85; - var$2[874] = 8; - var$2[875] = 227; - var$2[876] = 83; - var$2[877] = 7; - var$2[878] = 43; - var$2[879] = 0; - var$2[880] = 8; - var$2[881] = 116; - var$2[882] = 0; - var$2[883] = 8; - var$2[884] = 52; - var$2[885] = 0; - var$2[886] = 9; - var$2[887] = 201; - var$2[888] = 81; - var$2[889] = 7; - var$2[890] = 13; - var$2[891] = 0; - var$2[892] = 8; - var$2[893] = 100; - var$2[894] = 0; - var$2[895] = 8; - var$2[896] = 36; - var$2[897] = 0; - var$2[898] = 9; - var$2[899] = 169; - var$2[900] = 0; - var$2[901] = 8; - var$2[902] = 4; - var$2[903] = 0; - var$2[904] = 8; - var$2[905] = 132; - var$2[906] = 0; - var$2[907] = 8; - var$2[908] = 68; - var$2[909] = 0; - var$2[910] = 9; - var$2[911] = 233; - var$2[912] = 80; - var$2[913] = 7; - var$2[914] = 8; - var$2[915] = 0; - var$2[916] = 8; - var$2[917] = 92; - var$2[918] = 0; - var$2[919] = 8; - var$2[920] = 28; - var$2[921] = 0; - var$2[922] = 9; - var$2[923] = 153; - var$2[924] = 84; - var$2[925] = 7; - var$2[926] = 83; - var$2[927] = 0; - var$2[928] = 8; - var$2[929] = 124; - var$2[930] = 0; - var$2[931] = 8; - var$2[932] = 60; - var$2[933] = 0; - var$2[934] = 9; - var$2[935] = 217; - var$2[936] = 82; - var$2[937] = 7; - var$2[938] = 23; - var$2[939] = 0; - var$2[940] = 8; - var$2[941] = 108; - var$2[942] = 0; - var$2[943] = 8; - var$2[944] = 44; - var$2[945] = 0; - var$2[946] = 9; - var$2[947] = 185; - var$2[948] = 0; - var$2[949] = 8; - var$2[950] = 12; - var$2[951] = 0; - var$2[952] = 8; - var$2[953] = 140; - var$2[954] = 0; - var$2[955] = 8; - var$2[956] = 76; - var$2[957] = 0; - var$2[958] = 9; - var$2[959] = 249; - var$2[960] = 80; - var$2[961] = 7; - var$2[962] = 3; - var$2[963] = 0; - var$2[964] = 8; - var$2[965] = 82; - var$2[966] = 0; - var$2[967] = 8; - var$2[968] = 18; - var$2[969] = 85; - var$2[970] = 8; - var$2[971] = 163; - var$2[972] = 83; - var$2[973] = 7; - var$2[974] = 35; - var$2[975] = 0; - var$2[976] = 8; - var$2[977] = 114; - var$2[978] = 0; - var$2[979] = 8; - var$2[980] = 50; - var$2[981] = 0; - var$2[982] = 9; - var$2[983] = 197; - var$2[984] = 81; - var$2[985] = 7; - var$2[986] = 11; - var$2[987] = 0; - var$2[988] = 8; - var$2[989] = 98; - var$2[990] = 0; - var$2[991] = 8; - var$2[992] = 34; - var$2[993] = 0; - var$2[994] = 9; - var$2[995] = 165; - var$2[996] = 0; - var$2[997] = 8; - var$2[998] = 2; - var$2[999] = 0; - var$2[1000] = 8; - var$2[1001] = 130; - var$2[1002] = 0; - var$2[1003] = 8; - var$2[1004] = 66; - var$2[1005] = 0; - var$2[1006] = 9; - var$2[1007] = 229; - var$2[1008] = 80; - var$2[1009] = 7; - var$2[1010] = 7; - var$2[1011] = 0; - var$2[1012] = 8; - var$2[1013] = 90; - var$2[1014] = 0; - var$2[1015] = 8; - var$2[1016] = 26; - var$2[1017] = 0; - var$2[1018] = 9; - var$2[1019] = 149; - var$2[1020] = 84; - var$2[1021] = 7; - var$2[1022] = 67; - var$2[1023] = 0; - var$2[1024] = 8; - var$2[1025] = 122; - var$2[1026] = 0; - var$2[1027] = 8; - var$2[1028] = 58; - var$2[1029] = 0; - var$2[1030] = 9; - var$2[1031] = 213; - var$2[1032] = 82; - var$2[1033] = 7; - var$2[1034] = 19; - var$2[1035] = 0; - var$2[1036] = 8; - var$2[1037] = 106; - var$2[1038] = 0; - var$2[1039] = 8; - var$2[1040] = 42; - var$2[1041] = 0; - var$2[1042] = 9; - var$2[1043] = 181; - var$2[1044] = 0; - var$2[1045] = 8; - var$2[1046] = 10; - var$2[1047] = 0; - var$2[1048] = 8; - var$2[1049] = 138; - var$2[1050] = 0; - var$2[1051] = 8; - var$2[1052] = 74; - var$2[1053] = 0; - var$2[1054] = 9; - var$2[1055] = 245; - var$2[1056] = 80; - var$2[1057] = 7; - var$2[1058] = 5; - var$2[1059] = 0; - var$2[1060] = 8; - var$2[1061] = 86; - var$2[1062] = 0; - var$2[1063] = 8; - var$2[1064] = 22; - var$2[1065] = 192; - var$2[1066] = 8; - var$2[1067] = 0; - var$2[1068] = 83; - var$2[1069] = 7; - var$2[1070] = 51; - var$2[1071] = 0; - var$2[1072] = 8; - var$2[1073] = 118; - var$2[1074] = 0; - var$2[1075] = 8; - var$2[1076] = 54; - var$2[1077] = 0; - var$2[1078] = 9; - var$2[1079] = 205; - var$2[1080] = 81; - var$2[1081] = 7; - var$2[1082] = 15; - var$2[1083] = 0; - var$2[1084] = 8; - var$2[1085] = 102; - var$2[1086] = 0; - var$2[1087] = 8; - var$2[1088] = 38; - var$2[1089] = 0; - var$2[1090] = 9; - var$2[1091] = 173; - var$2[1092] = 0; - var$2[1093] = 8; - var$2[1094] = 6; - var$2[1095] = 0; - var$2[1096] = 8; - var$2[1097] = 134; - var$2[1098] = 0; - var$2[1099] = 8; - var$2[1100] = 70; - var$2[1101] = 0; - var$2[1102] = 9; - var$2[1103] = 237; - var$2[1104] = 80; - var$2[1105] = 7; - var$2[1106] = 9; - var$2[1107] = 0; - var$2[1108] = 8; - var$2[1109] = 94; - var$2[1110] = 0; - var$2[1111] = 8; - var$2[1112] = 30; - var$2[1113] = 0; - var$2[1114] = 9; - var$2[1115] = 157; - var$2[1116] = 84; - var$2[1117] = 7; - var$2[1118] = 99; - var$2[1119] = 0; - var$2[1120] = 8; - var$2[1121] = 126; - var$2[1122] = 0; - var$2[1123] = 8; - var$2[1124] = 62; - var$2[1125] = 0; - var$2[1126] = 9; - var$2[1127] = 221; - var$2[1128] = 82; - var$2[1129] = 7; - var$2[1130] = 27; - var$2[1131] = 0; - var$2[1132] = 8; - var$2[1133] = 110; - var$2[1134] = 0; - var$2[1135] = 8; - var$2[1136] = 46; - var$2[1137] = 0; - var$2[1138] = 9; - var$2[1139] = 189; - var$2[1140] = 0; - var$2[1141] = 8; - var$2[1142] = 14; - var$2[1143] = 0; - var$2[1144] = 8; - var$2[1145] = 142; - var$2[1146] = 0; - var$2[1147] = 8; - var$2[1148] = 78; - var$2[1149] = 0; - var$2[1150] = 9; - var$2[1151] = 253; - var$2[1152] = 96; - var$2[1153] = 7; - var$2[1154] = 256; - var$2[1155] = 0; - var$2[1156] = 8; - var$2[1157] = 81; - var$2[1158] = 0; - var$2[1159] = 8; - var$2[1160] = 17; - var$2[1161] = 85; - var$2[1162] = 8; - var$2[1163] = 131; - var$2[1164] = 82; - var$2[1165] = 7; - var$2[1166] = 31; - var$2[1167] = 0; - var$2[1168] = 8; - var$2[1169] = 113; - var$2[1170] = 0; - var$2[1171] = 8; - var$2[1172] = 49; - var$2[1173] = 0; - var$2[1174] = 9; - var$2[1175] = 195; - var$2[1176] = 80; - var$2[1177] = 7; - var$2[1178] = 10; - var$2[1179] = 0; - var$2[1180] = 8; - var$2[1181] = 97; - var$2[1182] = 0; - var$2[1183] = 8; - var$2[1184] = 33; - var$2[1185] = 0; - var$2[1186] = 9; - var$2[1187] = 163; - var$2[1188] = 0; - var$2[1189] = 8; - var$2[1190] = 1; - var$2[1191] = 0; - var$2[1192] = 8; - var$2[1193] = 129; - var$2[1194] = 0; - var$2[1195] = 8; - var$2[1196] = 65; - var$2[1197] = 0; - var$2[1198] = 9; - var$2[1199] = 227; - var$2[1200] = 80; - var$2[1201] = 7; - var$2[1202] = 6; - var$2[1203] = 0; - var$2[1204] = 8; - var$2[1205] = 89; - var$2[1206] = 0; - var$2[1207] = 8; - var$2[1208] = 25; - var$2[1209] = 0; - var$2[1210] = 9; - var$2[1211] = 147; - var$2[1212] = 83; - var$2[1213] = 7; - var$2[1214] = 59; - var$2[1215] = 0; - var$2[1216] = 8; - var$2[1217] = 121; - var$2[1218] = 0; - var$2[1219] = 8; - var$2[1220] = 57; - var$2[1221] = 0; - var$2[1222] = 9; - var$2[1223] = 211; - var$2[1224] = 81; - var$2[1225] = 7; - var$2[1226] = 17; - var$2[1227] = 0; - var$2[1228] = 8; - var$2[1229] = 105; - var$2[1230] = 0; - var$2[1231] = 8; - var$2[1232] = 41; - var$2[1233] = 0; - var$2[1234] = 9; - var$2[1235] = 179; - var$2[1236] = 0; - var$2[1237] = 8; - var$2[1238] = 9; - var$2[1239] = 0; - var$2[1240] = 8; - var$2[1241] = 137; - var$2[1242] = 0; - var$2[1243] = 8; - var$2[1244] = 73; - var$2[1245] = 0; - var$2[1246] = 9; - var$2[1247] = 243; - var$2[1248] = 80; - var$2[1249] = 7; - var$2[1250] = 4; - var$2[1251] = 0; - var$2[1252] = 8; - var$2[1253] = 85; - var$2[1254] = 0; - var$2[1255] = 8; - var$2[1256] = 21; - var$2[1257] = 80; - var$2[1258] = 8; - var$2[1259] = 258; - var$2[1260] = 83; - var$2[1261] = 7; - var$2[1262] = 43; - var$2[1263] = 0; - var$2[1264] = 8; - var$2[1265] = 117; - var$2[1266] = 0; - var$2[1267] = 8; - var$2[1268] = 53; - var$2[1269] = 0; - var$2[1270] = 9; - var$2[1271] = 203; - var$2[1272] = 81; - var$2[1273] = 7; - var$2[1274] = 13; - var$2[1275] = 0; - var$2[1276] = 8; - var$2[1277] = 101; - var$2[1278] = 0; - var$2[1279] = 8; - var$2[1280] = 37; - var$2[1281] = 0; - var$2[1282] = 9; - var$2[1283] = 171; - var$2[1284] = 0; - var$2[1285] = 8; - var$2[1286] = 5; - var$2[1287] = 0; - var$2[1288] = 8; - var$2[1289] = 133; - var$2[1290] = 0; - var$2[1291] = 8; - var$2[1292] = 69; - var$2[1293] = 0; - var$2[1294] = 9; - var$2[1295] = 235; - var$2[1296] = 80; - var$2[1297] = 7; - var$2[1298] = 8; - var$2[1299] = 0; - var$2[1300] = 8; - var$2[1301] = 93; - var$2[1302] = 0; - var$2[1303] = 8; - var$2[1304] = 29; - var$2[1305] = 0; - var$2[1306] = 9; - var$2[1307] = 155; - var$2[1308] = 84; - var$2[1309] = 7; - var$2[1310] = 83; - var$2[1311] = 0; - var$2[1312] = 8; - var$2[1313] = 125; - var$2[1314] = 0; - var$2[1315] = 8; - var$2[1316] = 61; - var$2[1317] = 0; - var$2[1318] = 9; - var$2[1319] = 219; - var$2[1320] = 82; - var$2[1321] = 7; - var$2[1322] = 23; - var$2[1323] = 0; - var$2[1324] = 8; - var$2[1325] = 109; - var$2[1326] = 0; - var$2[1327] = 8; - var$2[1328] = 45; - var$2[1329] = 0; - var$2[1330] = 9; - var$2[1331] = 187; - var$2[1332] = 0; - var$2[1333] = 8; - var$2[1334] = 13; - var$2[1335] = 0; - var$2[1336] = 8; - var$2[1337] = 141; - var$2[1338] = 0; - var$2[1339] = 8; - var$2[1340] = 77; - var$2[1341] = 0; - var$2[1342] = 9; - var$2[1343] = 251; - var$2[1344] = 80; - var$2[1345] = 7; - var$2[1346] = 3; - var$2[1347] = 0; - var$2[1348] = 8; - var$2[1349] = 83; - var$2[1350] = 0; - var$2[1351] = 8; - var$2[1352] = 19; - var$2[1353] = 85; - var$2[1354] = 8; - var$2[1355] = 195; - var$2[1356] = 83; - var$2[1357] = 7; - var$2[1358] = 35; - var$2[1359] = 0; - var$2[1360] = 8; - var$2[1361] = 115; - var$2[1362] = 0; - var$2[1363] = 8; - var$2[1364] = 51; - var$2[1365] = 0; - var$2[1366] = 9; - var$2[1367] = 199; - var$2[1368] = 81; - var$2[1369] = 7; - var$2[1370] = 11; - var$2[1371] = 0; - var$2[1372] = 8; - var$2[1373] = 99; - var$2[1374] = 0; - var$2[1375] = 8; - var$2[1376] = 35; - var$2[1377] = 0; - var$2[1378] = 9; - var$2[1379] = 167; - var$2[1380] = 0; - var$2[1381] = 8; - var$2[1382] = 3; - var$2[1383] = 0; - var$2[1384] = 8; - var$2[1385] = 131; - var$2[1386] = 0; - var$2[1387] = 8; - var$2[1388] = 67; - var$2[1389] = 0; - var$2[1390] = 9; - var$2[1391] = 231; - var$2[1392] = 80; - var$2[1393] = 7; - var$2[1394] = 7; - var$2[1395] = 0; - var$2[1396] = 8; - var$2[1397] = 91; - var$2[1398] = 0; - var$2[1399] = 8; - var$2[1400] = 27; - var$2[1401] = 0; - var$2[1402] = 9; - var$2[1403] = 151; - var$2[1404] = 84; - var$2[1405] = 7; - var$2[1406] = 67; - var$2[1407] = 0; - var$2[1408] = 8; - var$2[1409] = 123; - var$2[1410] = 0; - var$2[1411] = 8; - var$2[1412] = 59; - var$2[1413] = 0; - var$2[1414] = 9; - var$2[1415] = 215; - var$2[1416] = 82; - var$2[1417] = 7; - var$2[1418] = 19; - var$2[1419] = 0; - var$2[1420] = 8; - var$2[1421] = 107; - var$2[1422] = 0; - var$2[1423] = 8; - var$2[1424] = 43; - var$2[1425] = 0; - var$2[1426] = 9; - var$2[1427] = 183; - var$2[1428] = 0; - var$2[1429] = 8; - var$2[1430] = 11; - var$2[1431] = 0; - var$2[1432] = 8; - var$2[1433] = 139; - var$2[1434] = 0; - var$2[1435] = 8; - var$2[1436] = 75; - var$2[1437] = 0; - var$2[1438] = 9; - var$2[1439] = 247; - var$2[1440] = 80; - var$2[1441] = 7; - var$2[1442] = 5; - var$2[1443] = 0; - var$2[1444] = 8; - var$2[1445] = 87; - var$2[1446] = 0; - var$2[1447] = 8; - var$2[1448] = 23; - var$2[1449] = 192; - var$2[1450] = 8; - var$2[1451] = 0; - var$2[1452] = 83; - var$2[1453] = 7; - var$2[1454] = 51; - var$2[1455] = 0; - var$2[1456] = 8; - var$2[1457] = 119; - var$2[1458] = 0; - var$2[1459] = 8; - var$2[1460] = 55; - var$2[1461] = 0; - var$2[1462] = 9; - var$2[1463] = 207; - var$2[1464] = 81; - var$2[1465] = 7; - var$2[1466] = 15; - var$2[1467] = 0; - var$2[1468] = 8; - var$2[1469] = 103; - var$2[1470] = 0; - var$2[1471] = 8; - var$2[1472] = 39; - var$2[1473] = 0; - var$2[1474] = 9; - var$2[1475] = 175; - var$2[1476] = 0; - var$2[1477] = 8; - var$2[1478] = 7; - var$2[1479] = 0; - var$2[1480] = 8; - var$2[1481] = 135; - var$2[1482] = 0; - var$2[1483] = 8; - var$2[1484] = 71; - var$2[1485] = 0; - var$2[1486] = 9; - var$2[1487] = 239; - var$2[1488] = 80; - var$2[1489] = 7; - var$2[1490] = 9; - var$2[1491] = 0; - var$2[1492] = 8; - var$2[1493] = 95; - var$2[1494] = 0; - var$2[1495] = 8; - var$2[1496] = 31; - var$2[1497] = 0; - var$2[1498] = 9; - var$2[1499] = 159; - var$2[1500] = 84; - var$2[1501] = 7; - var$2[1502] = 99; - var$2[1503] = 0; - var$2[1504] = 8; - var$2[1505] = 127; - var$2[1506] = 0; - var$2[1507] = 8; - var$2[1508] = 63; - var$2[1509] = 0; - var$2[1510] = 9; - var$2[1511] = 223; - var$2[1512] = 82; - var$2[1513] = 7; - var$2[1514] = 27; - var$2[1515] = 0; - var$2[1516] = 8; - var$2[1517] = 111; - var$2[1518] = 0; - var$2[1519] = 8; - var$2[1520] = 47; - var$2[1521] = 0; - var$2[1522] = 9; - var$2[1523] = 191; - var$2[1524] = 0; - var$2[1525] = 8; - var$2[1526] = 15; - var$2[1527] = 0; - var$2[1528] = 8; - var$2[1529] = 143; - var$2[1530] = 0; - var$2[1531] = 8; - var$2[1532] = 79; - var$2[1533] = 0; - var$2[1534] = 9; - var$2[1535] = 255; - cjj_InfTree_fixed_tl = var$1; - var$1 = $rt_createIntArray(96); - var$2 = var$1.data; - var$2[0] = 80; - var$2[1] = 5; - var$2[2] = 1; - var$2[3] = 87; - var$2[4] = 5; - var$2[5] = 257; - var$2[6] = 83; - var$2[7] = 5; - var$2[8] = 17; - var$2[9] = 91; - var$2[10] = 5; - var$2[11] = 4097; - var$2[12] = 81; - var$2[13] = 5; - var$2[14] = 5; - var$2[15] = 89; - var$2[16] = 5; - var$2[17] = 1025; - var$2[18] = 85; - var$2[19] = 5; - var$2[20] = 65; - var$2[21] = 93; - var$2[22] = 5; - var$2[23] = 16385; - var$2[24] = 80; - var$2[25] = 5; - var$2[26] = 3; - var$2[27] = 88; - var$2[28] = 5; - var$2[29] = 513; - var$2[30] = 84; - var$2[31] = 5; - var$2[32] = 33; - var$2[33] = 92; - var$2[34] = 5; - var$2[35] = 8193; - var$2[36] = 82; - var$2[37] = 5; - var$2[38] = 9; - var$2[39] = 90; - var$2[40] = 5; - var$2[41] = 2049; - var$2[42] = 86; - var$2[43] = 5; - var$2[44] = 129; - var$2[45] = 192; - var$2[46] = 5; - var$2[47] = 24577; - var$2[48] = 80; - var$2[49] = 5; - var$2[50] = 2; - var$2[51] = 87; - var$2[52] = 5; - var$2[53] = 385; - var$2[54] = 83; - var$2[55] = 5; - var$2[56] = 25; - var$2[57] = 91; - var$2[58] = 5; - var$2[59] = 6145; - var$2[60] = 81; - var$2[61] = 5; - var$2[62] = 7; - var$2[63] = 89; - var$2[64] = 5; - var$2[65] = 1537; - var$2[66] = 85; - var$2[67] = 5; - var$2[68] = 97; - var$2[69] = 93; - var$2[70] = 5; - var$2[71] = 24577; - var$2[72] = 80; - var$2[73] = 5; - var$2[74] = 4; - var$2[75] = 88; - var$2[76] = 5; - var$2[77] = 769; - var$2[78] = 84; - var$2[79] = 5; - var$2[80] = 49; - var$2[81] = 92; - var$2[82] = 5; - var$2[83] = 12289; - var$2[84] = 82; - var$2[85] = 5; - var$2[86] = 13; - var$2[87] = 90; - var$2[88] = 5; - var$2[89] = 3073; - var$2[90] = 86; - var$2[91] = 5; - var$2[92] = 193; - var$2[93] = 192; - var$2[94] = 5; - var$2[95] = 24577; - cjj_InfTree_fixed_td = var$1; - var$1 = $rt_createIntArray(31); - var$2 = var$1.data; - var$2[0] = 3; - var$2[1] = 4; - var$2[2] = 5; - var$2[3] = 6; - var$2[4] = 7; - var$2[5] = 8; - var$2[6] = 9; - var$2[7] = 10; - var$2[8] = 11; - var$2[9] = 13; - var$2[10] = 15; - var$2[11] = 17; - var$2[12] = 19; - var$2[13] = 23; - var$2[14] = 27; - var$2[15] = 31; - var$2[16] = 35; - var$2[17] = 43; - var$2[18] = 51; - var$2[19] = 59; - var$2[20] = 67; - var$2[21] = 83; - var$2[22] = 99; - var$2[23] = 115; - var$2[24] = 131; - var$2[25] = 163; - var$2[26] = 195; - var$2[27] = 227; - var$2[28] = 258; - var$2[29] = 0; - var$2[30] = 0; - cjj_InfTree_cplens = var$1; - var$1 = $rt_createIntArray(31); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 0; - var$2[2] = 0; - var$2[3] = 0; - var$2[4] = 0; - var$2[5] = 0; - var$2[6] = 0; - var$2[7] = 0; - var$2[8] = 1; - var$2[9] = 1; - var$2[10] = 1; - var$2[11] = 1; - var$2[12] = 2; - var$2[13] = 2; - var$2[14] = 2; - var$2[15] = 2; - var$2[16] = 3; - var$2[17] = 3; - var$2[18] = 3; - var$2[19] = 3; - var$2[20] = 4; - var$2[21] = 4; - var$2[22] = 4; - var$2[23] = 4; - var$2[24] = 5; - var$2[25] = 5; - var$2[26] = 5; - var$2[27] = 5; - var$2[28] = 0; - var$2[29] = 112; - var$2[30] = 112; - cjj_InfTree_cplext = var$1; - var$1 = $rt_createIntArray(30); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 2; - var$2[2] = 3; - var$2[3] = 4; - var$2[4] = 5; - var$2[5] = 7; - var$2[6] = 9; - var$2[7] = 13; - var$2[8] = 17; - var$2[9] = 25; - var$2[10] = 33; - var$2[11] = 49; - var$2[12] = 65; - var$2[13] = 97; - var$2[14] = 129; - var$2[15] = 193; - var$2[16] = 257; - var$2[17] = 385; - var$2[18] = 513; - var$2[19] = 769; - var$2[20] = 1025; - var$2[21] = 1537; - var$2[22] = 2049; - var$2[23] = 3073; - var$2[24] = 4097; - var$2[25] = 6145; - var$2[26] = 8193; - var$2[27] = 12289; - var$2[28] = 16385; - var$2[29] = 24577; - cjj_InfTree_cpdist = var$1; - var$1 = $rt_createIntArray(30); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 0; - var$2[2] = 0; - var$2[3] = 0; - var$2[4] = 1; - var$2[5] = 1; - var$2[6] = 2; - var$2[7] = 2; - var$2[8] = 3; - var$2[9] = 3; - var$2[10] = 4; - var$2[11] = 4; - var$2[12] = 5; - var$2[13] = 5; - var$2[14] = 6; - var$2[15] = 6; - var$2[16] = 7; - var$2[17] = 7; - var$2[18] = 8; - var$2[19] = 8; - var$2[20] = 9; - var$2[21] = 9; - var$2[22] = 10; - var$2[23] = 10; - var$2[24] = 11; - var$2[25] = 11; - var$2[26] = 12; - var$2[27] = 12; - var$2[28] = 13; - var$2[29] = 13; - cjj_InfTree_cpdext = var$1; -} -function cjj_InfCodes() { - var a = this; jl_Object.call(a); - a.$mode1 = 0; - a.$len = 0; - a.$tree = null; - a.$tree_index = 0; - a.$need0 = 0; - a.$lit = 0; - a.$get9 = 0; - a.$dist = 0; - a.$lbits = 0; - a.$dbits = 0; - a.$ltree = null; - a.$ltree_index = 0; - a.$dtree = null; - a.$dtree_index = 0; - a.$z4 = null; - a.$s = null; -} -var cjj_InfCodes_inflate_mask = null; -function cjj_InfCodes_init($this, $bl, $bd, $tl, $tl_index, $td, $td_index) { - $this.$mode1 = 0; - $this.$lbits = $bl << 24 >> 24; - $this.$dbits = $bd << 24 >> 24; - $this.$ltree = $tl; - $this.$ltree_index = $tl_index; - $this.$dtree = $td; - $this.$dtree_index = $td_index; - $this.$tree = null; -} -function cjj_InfCodes_proc($this, $r) { - var var$2, $n, var$4, var$5, $q, $m, $f, var$9, var$10, $j, $tindex, $e, var$14; - var$2 = $this.$z4.$next_in_index; - $n = $this.$z4.$avail_in; - var$4 = $this.$s.$bitb; - var$5 = $this.$s.$bitk; - $q = $this.$s.$write3; - $m = $q >= $this.$s.$read3 ? $this.$s.$end1 - $q | 0 : ($this.$s.$read3 - $q | 0) - 1 | 0; - a: { - b: while (true) { - c: { - d: { - e: { - f: { - g: { - switch ($this.$mode1) { - case 0: - break f; - case 2: - $f = $this.$get9; - while (var$5 < $f) { - if (!$n) { - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, $r); - } - $r = 0; - $n = $n + (-1) | 0; - var$10 = $this.$z4.$next_in.data; - $j = var$2 + 1 | 0; - var$4 = var$4 | (var$10[var$2] & 255) << var$5; - var$5 = var$5 + 8 | 0; - var$2 = $j; - } - $this.$len = $this.$len + (var$4 & cjj_InfCodes_inflate_mask.data[$f]) | 0; - var$4 = var$4 >> $f; - var$5 = var$5 - $f | 0; - $this.$need0 = $this.$dbits; - $this.$tree = $this.$dtree; - $this.$tree_index = $this.$dtree_index; - $this.$mode1 = 3; - break g; - case 4: - $f = $this.$get9; - while (var$5 < $f) { - if (!$n) { - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, $r); - } - $r = 0; - $n = $n + (-1) | 0; - var$10 = $this.$z4.$next_in.data; - $j = var$2 + 1 | 0; - var$4 = var$4 | (var$10[var$2] & 255) << var$5; - var$5 = var$5 + 8 | 0; - var$2 = $j; - } - $this.$dist = $this.$dist + (var$4 & cjj_InfCodes_inflate_mask.data[$f]) | 0; - var$4 = var$4 >> $f; - var$5 = var$5 - $f | 0; - $this.$mode1 = 5; - break c; - case 6: - break d; - case 7: - if (var$5 > 7) { - var$5 = var$5 + (-8) | 0; - $n = $n + 1 | 0; - var$2 = var$2 + (-1) | 0; - } - $this.$s.$write3 = $q; - $r = cjj_InfBlocks_inflate_flush($this.$s, $r); - $q = $this.$s.$write3; - if ($this.$s.$read3 != $this.$s.$write3) { - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, $r); - } - $this.$mode1 = 8; - break a; - case 9: - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, (-3)); - case 1: - break e; - case 3: - break; - case 5: - break c; - case 8: - break a; - default: - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, (-2)); - } - } - $j = $this.$need0; - while (var$5 < $j) { - if (!$n) { - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, $r); - } - $r = 0; - $n = $n + (-1) | 0; - var$10 = $this.$z4.$next_in.data; - $f = var$2 + 1 | 0; - var$4 = var$4 | (var$10[var$2] & 255) << var$5; - var$5 = var$5 + 8 | 0; - var$2 = $f; - } - $tindex = ($this.$tree_index + (var$4 & cjj_InfCodes_inflate_mask.data[$j]) | 0) * 3 | 0; - var$10 = $this.$tree.data; - $f = $tindex + 1 | 0; - var$4 = var$4 >> var$10[$f]; - var$5 = var$5 - $this.$tree.data[$f] | 0; - $j = $this.$tree.data[$tindex]; - if ($j & 16) { - $this.$get9 = $j & 15; - $this.$dist = $this.$tree.data[$tindex + 2 | 0]; - $this.$mode1 = 4; - continue b; - } - if ($j & 64) { - $this.$mode1 = 9; - $this.$z4.$msg = $rt_s(1564); - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, (-3)); - } - $this.$need0 = $j; - $this.$tree_index = ($tindex / 3 | 0) + $this.$tree.data[$tindex + 2 | 0] | 0; - continue b; - } - if ($m >= 258 && $n >= 10) { - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - $r = cjj_InfCodes_inflate_fast($this, $this.$lbits, $this.$dbits, $this.$ltree, $this.$ltree_index, $this.$dtree, $this.$dtree_index, $this.$s, $this.$z4); - var$2 = $this.$z4.$next_in_index; - $n = $this.$z4.$avail_in; - var$4 = $this.$s.$bitb; - var$5 = $this.$s.$bitk; - $q = $this.$s.$write3; - $m = $q >= $this.$s.$read3 ? $this.$s.$end1 - $q | 0 : ($this.$s.$read3 - $q | 0) - 1 | 0; - if ($r) { - $this.$mode1 = $r != 1 ? 9 : 7; - continue b; - } - } - $this.$need0 = $this.$lbits; - $this.$tree = $this.$ltree; - $this.$tree_index = $this.$ltree_index; - $this.$mode1 = 1; - } - $j = $this.$need0; - while (var$5 < $j) { - if (!$n) - break b; - $r = 0; - $n = $n + (-1) | 0; - var$10 = $this.$z4.$next_in.data; - $f = var$2 + 1 | 0; - var$4 = var$4 | (var$10[var$2] & 255) << var$5; - var$5 = var$5 + 8 | 0; - var$2 = $f; - } - $tindex = ($this.$tree_index + (var$4 & cjj_InfCodes_inflate_mask.data[$j]) | 0) * 3 | 0; - var$10 = $this.$tree.data; - $f = $tindex + 1 | 0; - var$4 = var$4 >>> var$10[$f]; - var$5 = var$5 - $this.$tree.data[$f] | 0; - $e = $this.$tree.data[$tindex]; - if (!$e) { - $this.$lit = $this.$tree.data[$tindex + 2 | 0]; - $this.$mode1 = 6; - continue b; - } - if ($e & 16) { - $this.$get9 = $e & 15; - $this.$len = $this.$tree.data[$tindex + 2 | 0]; - $this.$mode1 = 2; - continue b; - } - if (!($e & 64)) { - $this.$need0 = $e; - $this.$tree_index = ($tindex / 3 | 0) + $this.$tree.data[$tindex + 2 | 0] | 0; - continue b; - } - if (!($e & 32)) { - $this.$mode1 = 9; - $this.$z4.$msg = $rt_s(1565); - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, (-3)); - } - $this.$mode1 = 7; - continue b; - } - if ($m) - $f = $q; - else { - if ($q != $this.$s.$end1) - $f = $q; - else if (!$this.$s.$read3) - $f = $q; - else { - $f = 0; - $m = $f >= $this.$s.$read3 ? $this.$s.$end1 - $f | 0 : ($this.$s.$read3 - $f | 0) - 1 | 0; - } - if (!$m) { - $this.$s.$write3 = $f; - $r = cjj_InfBlocks_inflate_flush($this.$s, $r); - $f = $this.$s.$write3; - $m = $f >= $this.$s.$read3 ? $this.$s.$end1 - $f | 0 : ($this.$s.$read3 - $f | 0) - 1 | 0; - if ($f == $this.$s.$end1 && $this.$s.$read3) { - $f = 0; - $m = $f >= $this.$s.$read3 ? $this.$s.$end1 - $f | 0 : ($this.$s.$read3 - $f | 0) - 1 | 0; - } - if (!$m) { - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $f; - return cjj_InfBlocks_inflate_flush($this.$s, $r); - } - } - } - $r = 0; - var$10 = $this.$s.$window.data; - $q = $f + 1 | 0; - var$10[$f] = $this.$lit << 24 >> 24; - $m = $m + (-1) | 0; - $this.$mode1 = 0; - continue b; - } - $f = $q - $this.$dist | 0; - while ($f < 0) { - $f = $f + $this.$s.$end1 | 0; - } - while ($this.$len) { - if ($m) - $j = $q; - else { - if ($q != $this.$s.$end1) - $j = $q; - else if (!$this.$s.$read3) - $j = $q; - else { - $j = 0; - $m = $j >= $this.$s.$read3 ? $this.$s.$end1 - $j | 0 : ($this.$s.$read3 - $j | 0) - 1 | 0; - } - if (!$m) { - $this.$s.$write3 = $j; - $r = cjj_InfBlocks_inflate_flush($this.$s, $r); - $j = $this.$s.$write3; - $m = $j >= $this.$s.$read3 ? $this.$s.$end1 - $j | 0 : ($this.$s.$read3 - $j | 0) - 1 | 0; - if ($j == $this.$s.$end1 && $this.$s.$read3) { - $j = 0; - $m = $j >= $this.$s.$read3 ? $this.$s.$end1 - $j | 0 : ($this.$s.$read3 - $j | 0) - 1 | 0; - } - if (!$m) { - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $j; - return cjj_InfBlocks_inflate_flush($this.$s, $r); - } - } - } - var$14 = $this.$s.$window.data; - $q = $j + 1 | 0; - var$10 = $this.$s.$window.data; - $tindex = $f + 1 | 0; - var$14[$j] = var$10[$f]; - $m = $m + (-1) | 0; - $f = $tindex == $this.$s.$end1 ? 0 : $tindex; - $this.$len = $this.$len - 1 | 0; - } - $this.$mode1 = 0; - } - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, $r); - } - $this.$s.$bitb = var$4; - $this.$s.$bitk = var$5; - $this.$z4.$avail_in = $n; - var$9 = $this.$z4; - var$9.$total_in = Long_add(var$9.$total_in, Long_fromInt(var$2 - $this.$z4.$next_in_index | 0)); - $this.$z4.$next_in_index = var$2; - $this.$s.$write3 = $q; - return cjj_InfBlocks_inflate_flush($this.$s, 1); -} -function cjj_InfCodes_free($this, $z) { - return; -} -function cjj_InfCodes_inflate_fast($this, $bl, $bd, $tl, $tl_index, $td, $td_index, $s, $z) { - var $p, $n, $b, $k, $q, $m, $ml, $md, var$17, var$18, $t, $tp_index_t_3, $c, $r, $d; - $p = $z.$next_in_index; - $n = $z.$avail_in; - $b = $s.$bitb; - $k = $s.$bitk; - $q = $s.$write3; - $m = $q >= $s.$read3 ? $s.$end1 - $q | 0 : ($s.$read3 - $q | 0) - 1 | 0; - $ml = cjj_InfCodes_inflate_mask.data[$bl]; - $md = cjj_InfCodes_inflate_mask.data[$bd]; - while (true) { - if ($k < 20) { - $n = $n + (-1) | 0; - var$17 = $z.$next_in.data; - $bl = $p + 1 | 0; - $b = $b | (var$17[$p] & 255) << $k; - $k = $k + 8 | 0; - $p = $bl; - continue; - } - a: { - var$18 = $tl.data; - $t = $b & $ml; - $tp_index_t_3 = ($tl_index + $t | 0) * 3 | 0; - $bd = var$18[$tp_index_t_3]; - if (!$bd) { - $bl = $tp_index_t_3 + 1 | 0; - $b = $b >> var$18[$bl]; - $k = $k - var$18[$bl] | 0; - var$17 = $s.$window.data; - $bd = $q + 1 | 0; - var$17[$q] = var$18[$tp_index_t_3 + 2 | 0] << 24 >> 24; - $m = $m + (-1) | 0; - } else { - while (true) { - $bl = $tp_index_t_3 + 1 | 0; - $b = $b >> var$18[$bl]; - $k = $k - var$18[$bl] | 0; - if ($bd & 16) { - $bl = $bd & 15; - $c = var$18[$tp_index_t_3 + 2 | 0] + ($b & cjj_InfCodes_inflate_mask.data[$bl]) | 0; - $r = $b >> $bl; - $k = $k - $bl | 0; - while ($k < 15) { - $n = $n + (-1) | 0; - var$17 = $z.$next_in.data; - $bl = $p + 1 | 0; - $r = $r | (var$17[$p] & 255) << $k; - $k = $k + 8 | 0; - $p = $bl; - } - var$17 = $td.data; - $bl = $r & $md; - $d = ($td_index + $bl | 0) * 3 | 0; - $bd = var$17[$d]; - while (true) { - $b = $d + 1 | 0; - $r = $r >> var$17[$b]; - $k = $k - var$17[$b] | 0; - if ($bd & 16) - break; - if ($bd & 64) { - $z.$msg = $rt_s(1564); - $bl = $z.$avail_in - $n | 0; - $bd = $k >> 3; - if ($bd < $bl) - $bl = $bd; - $bd = $n + $bl | 0; - $tl_index = $p - $bl | 0; - $bl = $k - ($bl << 3) | 0; - $s.$bitb = $r; - $s.$bitk = $bl; - $z.$avail_in = $bd; - $z.$total_in = Long_add($z.$total_in, Long_fromInt($tl_index - $z.$next_in_index | 0)); - $z.$next_in_index = $tl_index; - $s.$write3 = $q; - return (-3); - } - $bl = ($bl + var$17[$d + 2 | 0] | 0) + ($r & cjj_InfCodes_inflate_mask.data[$bd]) | 0; - $d = ($td_index + $bl | 0) * 3 | 0; - $bd = var$17[$d]; - } - $bl = $bd & 15; - while ($k < $bl) { - $n = $n + (-1) | 0; - var$18 = $z.$next_in.data; - $bd = $p + 1 | 0; - $r = $r | (var$18[$p] & 255) << $k; - $k = $k + 8 | 0; - $p = $bd; - } - $d = var$17[$d + 2 | 0] + ($r & cjj_InfCodes_inflate_mask.data[$bl]) | 0; - $b = $r >> $bl; - $k = $k - $bl | 0; - $m = $m - $c | 0; - if ($q >= $d) { - $r = $q - $d | 0; - $bl = $q - $r | 0; - if ($bl > 0 && 2 > $bl) { - var$18 = $s.$window.data; - $bl = $q + 1 | 0; - var$17 = $s.$window.data; - $bd = $r + 1 | 0; - var$18[$q] = var$17[$r]; - var$18 = $s.$window.data; - $q = $bl + 1 | 0; - var$17 = $s.$window.data; - $r = $bd + 1 | 0; - var$18[$bl] = var$17[$bd]; - $c = $c + (-2) | 0; - } else { - jl_System_arraycopy($s.$window, $r, $s.$window, $q, 2); - $q = $q + 2 | 0; - $r = $r + 2 | 0; - $c = $c + (-2) | 0; - } - } else { - $r = $q - $d | 0; - while (true) { - $r = $r + $s.$end1 | 0; - if ($r >= 0) - break; - } - $bl = $s.$end1 - $r | 0; - if ($c > $bl) { - $c = $c - $bl | 0; - $bd = $q - $r | 0; - if ($bd > 0 && $bl > $bd) { - $bd = $q; - while (true) { - var$18 = $s.$window.data; - $q = $bd + 1 | 0; - var$17 = $s.$window.data; - $d = $r + 1 | 0; - var$18[$bd] = var$17[$r]; - $bl = $bl + (-1) | 0; - if (!$bl) - break; - $bd = $q; - $r = $d; - } - } else { - jl_System_arraycopy($s.$window, $r, $s.$window, $q, $bl); - $q = $q + $bl | 0; - } - $r = 0; - } - } - $bl = $q - $r | 0; - if ($bl > 0 && $c > $bl) { - while (true) { - var$18 = $s.$window.data; - $bd = $q + 1 | 0; - var$17 = $s.$window.data; - $bl = $r + 1 | 0; - var$18[$q] = var$17[$r]; - $c = $c + (-1) | 0; - if (!$c) - break; - $q = $bd; - $r = $bl; - } - break a; - } - jl_System_arraycopy($s.$window, $r, $s.$window, $q, $c); - $bd = $q + $c | 0; - break a; - } - if ($bd & 64) { - if ($bd & 32) { - $c = $z.$avail_in - $n | 0; - $bl = $k >> 3; - if ($bl < $c) - $c = $bl; - $bl = $n + $c | 0; - $bd = $p - $c | 0; - $tl_index = $k - ($c << 3) | 0; - $s.$bitb = $b; - $s.$bitk = $tl_index; - $z.$avail_in = $bl; - $z.$total_in = Long_add($z.$total_in, Long_fromInt($bd - $z.$next_in_index | 0)); - $z.$next_in_index = $bd; - $s.$write3 = $q; - return 1; - } - $z.$msg = $rt_s(1565); - $c = $z.$avail_in - $n | 0; - $bl = $k >> 3; - if ($bl < $c) - $c = $bl; - $tl_index = $n + $c | 0; - $bl = $p - $c | 0; - $bd = $k - ($c << 3) | 0; - $s.$bitb = $b; - $s.$bitk = $bd; - $z.$avail_in = $tl_index; - $z.$total_in = Long_add($z.$total_in, Long_fromInt($bl - $z.$next_in_index | 0)); - $z.$next_in_index = $bl; - $s.$write3 = $q; - return (-3); - } - $t = ($t + var$18[$tp_index_t_3 + 2 | 0] | 0) + ($b & cjj_InfCodes_inflate_mask.data[$bd]) | 0; - $tp_index_t_3 = ($tl_index + $t | 0) * 3 | 0; - $bd = var$18[$tp_index_t_3]; - if (!$bd) - break; - } - $bl = $tp_index_t_3 + 1 | 0; - $b = $b >> var$18[$bl]; - $k = $k - var$18[$bl] | 0; - var$17 = $s.$window.data; - $bd = $q + 1 | 0; - var$17[$q] = var$18[$tp_index_t_3 + 2 | 0] << 24 >> 24; - $m = $m + (-1) | 0; - } - } - if ($m < 258) - break; - if ($n < 10) - break; - $q = $bd; - } - $c = $z.$avail_in - $n | 0; - $bl = $k >> 3; - if ($bl < $c) - $c = $bl; - $bl = $n + $c | 0; - $tl_index = $p - $c | 0; - $td_index = $k - ($c << 3) | 0; - $s.$bitb = $b; - $s.$bitk = $td_index; - $z.$avail_in = $bl; - $z.$total_in = Long_add($z.$total_in, Long_fromInt($tl_index - $z.$next_in_index | 0)); - $z.$next_in_index = $tl_index; - $s.$write3 = $bd; - return 0; -} -function cjj_InfCodes__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(17); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 1; - var$2[2] = 3; - var$2[3] = 7; - var$2[4] = 15; - var$2[5] = 31; - var$2[6] = 63; - var$2[7] = 127; - var$2[8] = 255; - var$2[9] = 511; - var$2[10] = 1023; - var$2[11] = 2047; - var$2[12] = 4095; - var$2[13] = 8191; - var$2[14] = 16383; - var$2[15] = 32767; - var$2[16] = 65535; - cjj_InfCodes_inflate_mask = var$1; -} -function nms_PlayerControllerMP() { - var a = this; jl_Object.call(a); - a.$mc13 = null; - a.$netClientHandler = null; - a.$currentBlockX = 0; - a.$currentBlockY = 0; - a.$currentblockZ = 0; - a.$field_85183_f = null; - a.$curBlockDamageMP = 0.0; - a.$stepSoundTickCounter = 0.0; - a.$blockHitDelay = 0; - a.$isHittingBlock = 0; - a.$currentGameType = null; - a.$currentPlayerItem = 0; -} -function nms_PlayerControllerMP__init_(var_0, var_1) { - var var_2 = new nms_PlayerControllerMP(); - nms_PlayerControllerMP__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_PlayerControllerMP__init_0($this, $par1Minecraft, $par2NetClientHandler) { - $this.$currentBlockX = (-1); - $this.$currentBlockY = (-1); - $this.$currentblockZ = (-1); - $this.$field_85183_f = null; - $this.$curBlockDamageMP = 0.0; - $this.$stepSoundTickCounter = 0.0; - $this.$blockHitDelay = 0; - $this.$isHittingBlock = 0; - $this.$currentGameType = nms_EnumGameType_SURVIVAL; - $this.$currentPlayerItem = 0; - $this.$mc13 = $par1Minecraft; - $this.$netClientHandler = $par2NetClientHandler; -} -function nms_PlayerControllerMP_setPlayerCapabilities($this, $par1EntityPlayer) { - nms_EnumGameType_configurePlayerCapabilities($this.$currentGameType, $par1EntityPlayer.$capabilities); -} -function nms_PlayerControllerMP_enableEverythingIsScrewedUpMode($this) { - return 0; -} -function nms_PlayerControllerMP_setGameType($this, $par1EnumGameType) { - $this.$currentGameType = $par1EnumGameType; - nms_EnumGameType_configurePlayerCapabilities($this.$currentGameType, $this.$mc13.$thePlayer.$capabilities); -} -function nms_PlayerControllerMP_flipPlayer($this, $par1EntityPlayer) { - $par1EntityPlayer.$rotationYaw = (-180.0); -} -function nms_PlayerControllerMP_shouldDrawHUD($this) { - var var$1; - var$1 = $this.$currentGameType; - return var$1 !== nms_EnumGameType_SURVIVAL && var$1 !== nms_EnumGameType_ADVENTURE ? 0 : 1; -} -function nms_PlayerControllerMP_onPlayerDestroyBlock($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, var$7, $var7, var$9, $var8, var$11, $var9, var$13, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$13 = $thread.pop();$var9 = $thread.pop();var$11 = $thread.pop();$var8 = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par4 = $this.$currentGameType !== nms_EnumGameType_ADVENTURE ? 0 : 1; - if ($par4 && !nms_EntityPlayer_canCurrentToolHarvestBlock($this.$mc13.$thePlayer, $par1, $par2, $par3)) - return 0; - $var5 = $this.$mc13.$theWorld; - nms_Block_$callClinit(); - $var6 = nms_Block_blocksList.data[nms_World_getBlockId($var5, $par1, $par2, $par3)]; - if ($var6 === null) - return 0; - var$7 = 2001; - $var7 = $var6.$blockID + (nms_World_getBlockMetadata($var5, $par1, $par2, $par3) << 12) | 0; - var$9 = null; - $par4 = 0; - if ($par4 >= $var5.$worldAccesses.$size0) { - $var7 = nms_World_getBlockMetadata($var5, $par1, $par2, $par3); - $par4 = 0; - $var8 = 0; - var$7 = 3; - $ptr = 1; - continue main; - } - var$11 = $var5.$worldAccesses; - if ($par4 >= 0 && $par4 < var$11.$size0) { - var$11 = var$11.$array1.data[$par4]; - $ptr = 3; - continue main; - } - var$11 = new jl_IndexOutOfBoundsException; - var$11.$suppressionEnabled = 1; - var$11.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace(var$11); - $rt_throw(var$11); - case 1: - $tmp = nms_World_setBlock($var5, $par1, $par2, $par3, $par4, $var8, var$7); - if ($rt_suspending()) { - break main; - } - $var8 = $tmp; - if ($var8) { - $ptr = 2; - continue main; - } - $this.$currentBlockY = (-1); - if (!($this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1)) { - $var9 = nms_InventoryPlayer_getCurrentItem($this.$mc13.$thePlayer.$inventory); - if ($var9 !== null) { - $par4 = $var6.$blockID; - var$11 = $this.$mc13.$thePlayer; - nms_Item_$callClinit(); - var$9 = nms_Item_itemsList.data[$var9.$itemID0]; - $ptr = 4; - continue main; - } - } - return $var8; - case 2: - $var6.$onBlockDestroyedByPlayer($var5, $par1, $par2, $par3, $var7); - if ($rt_suspending()) { - break main; - } - $this.$currentBlockY = (-1); - if (!($this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1)) { - $var9 = nms_InventoryPlayer_getCurrentItem($this.$mc13.$thePlayer.$inventory); - if ($var9 !== null) { - $par4 = $var6.$blockID; - var$11 = $this.$mc13.$thePlayer; - nms_Item_$callClinit(); - var$9 = nms_Item_itemsList.data[$var9.$itemID0]; - $ptr = 4; - continue main; - } - } - return $var8; - case 3: - nms_RenderGlobal_playAuxSFX(var$11, var$9, var$7, $par1, $par2, $par3, $var7); - if ($rt_suspending()) { - break main; - } - $par4 = $par4 + 1 | 0; - if ($par4 >= $var5.$worldAccesses.$size0) { - $var7 = nms_World_getBlockMetadata($var5, $par1, $par2, $par3); - $par4 = 0; - $var8 = 0; - var$7 = 3; - $ptr = 1; - continue main; - } - var$11 = $var5.$worldAccesses; - if ($par4 >= 0 && $par4 < var$11.$size0) { - var$11 = var$11.$array1.data[$par4]; - continue main; - } - var$11 = new jl_IndexOutOfBoundsException; - var$11.$suppressionEnabled = 1; - var$11.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace(var$11); - $rt_throw(var$11); - case 4: - var$9.$onBlockDestroyed($var9, $var5, $par4, $par1, $par2, $par3, var$11); - if ($rt_suspending()) { - break main; - } - if (!$var9.$stackSize) { - var$11 = $this.$mc13.$thePlayer; - $var5 = var$11.$inventory; - $par1 = var$11.$inventory.$currentItem; - var$11 = null; - var$13 = $var5.$mainInventory; - $par2 = var$13.data.length; - if ($par1 >= $par2) { - $par1 = $par1 - $par2 | 0; - var$13 = $var5.$armorInventory; - } - var$13.data[$par1] = var$11; - } - return $var8; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $var5, $var6, var$7, $var7, var$9, $var8, var$11, $var9, var$13, $ptr); -} -function nms_PlayerControllerMP_clickBlock($this, $par1, $par2, $par3, $par4) { - var $var5, 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();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = $this.$currentGameType !== nms_EnumGameType_ADVENTURE ? 0 : 1; - a: { - if (!($var5 && !nms_EntityPlayer_canCurrentToolHarvestBlock($this.$mc13.$thePlayer, $par1, $par2, $par3))) { - if ($this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) { - var$6 = $this.$netClientHandler; - var$7 = new nms_Packet14BlockDig; - nms_Packet_$callClinit(); - var$7.$creationTimeMillis = jl_System_currentTimeMillis(); - var$7.$isChunkDataPacket = 0; - var$7.$status0 = 0; - var$7.$xPosition0 = $par1; - var$7.$yPosition1 = $par2; - var$7.$zPosition0 = $par3; - var$7.$face = $par4; - if (!var$6.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$6.$netManager, var$7); - var$6 = $this.$mc13; - var$7 = var$6.$theWorld; - var$6 = var$6.$thePlayer; - $ptr = 1; - continue main; - } - if (!($this.$isHittingBlock && nms_PlayerControllerMP_sameToolAndBlock($this, $par1, $par2, $par3))) { - if ($this.$isHittingBlock) { - var$6 = $this.$netClientHandler; - var$7 = new nms_Packet14BlockDig; - var$8 = $this.$currentBlockX; - var$9 = $this.$currentBlockY; - var$10 = $this.$currentblockZ; - nms_Packet_$callClinit(); - var$7.$creationTimeMillis = jl_System_currentTimeMillis(); - var$7.$isChunkDataPacket = 0; - var$7.$status0 = 1; - var$7.$xPosition0 = var$8; - var$7.$yPosition1 = var$9; - var$7.$zPosition0 = var$10; - var$7.$face = $par4; - if (!var$6.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$6.$netManager, var$7); - } - var$7 = $this.$netClientHandler; - var$6 = new nms_Packet14BlockDig; - nms_Packet_$callClinit(); - var$6.$creationTimeMillis = jl_System_currentTimeMillis(); - var$6.$isChunkDataPacket = 0; - var$6.$status0 = 0; - var$6.$xPosition0 = $par1; - var$6.$yPosition1 = $par2; - var$6.$zPosition0 = $par3; - var$6.$face = $par4; - if (!var$7.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$7.$netManager, var$6); - $var5 = nms_World_getBlockId($this.$mc13.$theWorld, $par1, $par2, $par3); - if ($var5 > 0 && $this.$curBlockDamageMP === 0.0) { - nms_Block_$callClinit(); - var$6 = nms_Block_blocksList.data[$var5]; - var$7 = $this.$mc13.$theWorld; - var$11 = $this.$mc13.$thePlayer; - $ptr = 3; - continue main; - } - if ($var5 > 0) { - nms_Block_$callClinit(); - if (nms_Block_getPlayerRelativeBlockHardness(nms_Block_blocksList.data[$var5], $this.$mc13.$thePlayer, $this.$mc13.$thePlayer.$worldObj, $par1, $par2, $par3) >= 1.0) { - $ptr = 4; - continue main; - } - } - $this.$isHittingBlock = 1; - $this.$currentBlockX = $par1; - $this.$currentBlockY = $par2; - $this.$currentblockZ = $par3; - $this.$field_85183_f = nms_InventoryPlayer_getCurrentItem($this.$mc13.$thePlayer.$inventory); - $this.$curBlockDamageMP = 0.0; - $this.$stepSoundTickCounter = 0.0; - var$6 = $this.$mc13.$theWorld; - $par1 = $this.$mc13.$thePlayer.$entityId; - $par2 = $this.$currentBlockX; - $par3 = $this.$currentBlockY; - $par4 = $this.$currentblockZ; - $var5 = ($this.$curBlockDamageMP * 10.0 | 0) - 1 | 0; - var$8 = 0; - while (var$8 < var$6.$worldAccesses.$size0) { - var$7 = var$6.$worldAccesses; - if (var$8 < 0) - break a; - if (var$8 >= var$7.$size0) - break a; - nms_RenderGlobal_destroyBlockPartially(var$7.$array1.data[var$8], $par1, $par2, $par3, $par4, $var5); - var$8 = var$8 + 1 | 0; - } - } - } - return; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - case 1: - $tmp = nms_World_extinguishFire(var$7, var$6, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $var5 = $tmp; - if ($var5) { - $this.$blockHitDelay = 5; - return; - } - $ptr = 2; - case 2: - nms_PlayerControllerMP_onPlayerDestroyBlock($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $this.$blockHitDelay = 5; - return; - case 3: - var$6.$onBlockClicked(var$7, $par1, $par2, $par3, var$11); - if ($rt_suspending()) { - break main; - } - if ($var5 > 0) { - nms_Block_$callClinit(); - if (nms_Block_getPlayerRelativeBlockHardness(nms_Block_blocksList.data[$var5], $this.$mc13.$thePlayer, $this.$mc13.$thePlayer.$worldObj, $par1, $par2, $par3) >= 1.0) { - $ptr = 4; - continue main; - } - } - $this.$isHittingBlock = 1; - $this.$currentBlockX = $par1; - $this.$currentBlockY = $par2; - $this.$currentblockZ = $par3; - $this.$field_85183_f = nms_InventoryPlayer_getCurrentItem($this.$mc13.$thePlayer.$inventory); - $this.$curBlockDamageMP = 0.0; - $this.$stepSoundTickCounter = 0.0; - var$6 = $this.$mc13.$theWorld; - $par1 = $this.$mc13.$thePlayer.$entityId; - $par2 = $this.$currentBlockX; - $par3 = $this.$currentBlockY; - $par4 = $this.$currentblockZ; - $var5 = ($this.$curBlockDamageMP * 10.0 | 0) - 1 | 0; - var$8 = 0; - b: { - while (var$8 < var$6.$worldAccesses.$size0) { - var$7 = var$6.$worldAccesses; - if (var$8 < 0) - break b; - if (var$8 >= var$7.$size0) - break b; - nms_RenderGlobal_destroyBlockPartially(var$7.$array1.data[var$8], $par1, $par2, $par3, $par4, $var5); - var$8 = var$8 + 1 | 0; - } - return; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - case 4: - nms_PlayerControllerMP_onPlayerDestroyBlock($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $var5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_PlayerControllerMP_resetBlockRemoving($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9; - if ($this.$isHittingBlock) { - var$1 = $this.$netClientHandler; - var$2 = new nms_Packet14BlockDig; - var$3 = $this.$currentBlockX; - var$4 = $this.$currentBlockY; - var$5 = $this.$currentblockZ; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - var$2.$status0 = 1; - var$2.$xPosition0 = var$3; - var$2.$yPosition1 = var$4; - var$2.$zPosition0 = var$5; - var$2.$face = (-1); - if (!var$1.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$1.$netManager, var$2); - } - $this.$isHittingBlock = 0; - $this.$curBlockDamageMP = 0.0; - var$1 = $this.$mc13.$theWorld; - var$6 = $this.$mc13.$thePlayer.$entityId; - var$7 = $this.$currentBlockX; - var$3 = $this.$currentBlockY; - var$8 = $this.$currentblockZ; - var$9 = 0; - a: { - while (var$9 < var$1.$worldAccesses.$size0) { - var$2 = var$1.$worldAccesses; - if (var$9 < 0) - break a; - if (var$9 >= var$2.$size0) - break a; - nms_RenderGlobal_destroyBlockPartially(var$2.$array1.data[var$9], var$6, var$7, var$3, var$8, (-1)); - var$9 = var$9 + 1 | 0; - } - return; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); -} -function nms_PlayerControllerMP_onPlayerDamageBlock($this, $par1, $par2, $par3, $par4) { - var var$5, var$6, $var5, $var6, var$9, var$10, var$11, var$12, var$13, var$14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - nms_PlayerControllerMP_syncCurrentPlayItem($this); - if ($this.$blockHitDelay > 0) - $this.$blockHitDelay = $this.$blockHitDelay - 1 | 0; - else { - if ($this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) { - $this.$blockHitDelay = 5; - var$5 = $this.$netClientHandler; - var$6 = new nms_Packet14BlockDig; - nms_Packet_$callClinit(); - var$6.$creationTimeMillis = jl_System_currentTimeMillis(); - var$6.$isChunkDataPacket = 0; - var$6.$status0 = 0; - var$6.$xPosition0 = $par1; - var$6.$yPosition1 = $par2; - var$6.$zPosition0 = $par3; - var$6.$face = $par4; - if (!var$5.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$5.$netManager, var$6); - var$6 = $this.$mc13; - var$5 = var$6.$theWorld; - var$6 = var$6.$thePlayer; - $ptr = 2; - continue main; - } - if (!nms_PlayerControllerMP_sameToolAndBlock($this, $par1, $par2, $par3)) { - $ptr = 1; - continue main; - } - $var5 = nms_World_getBlockId($this.$mc13.$theWorld, $par1, $par2, $par3); - if (!$var5) { - $this.$isHittingBlock = 0; - return; - } - nms_Block_$callClinit(); - $var6 = nms_Block_blocksList.data[$var5]; - $this.$curBlockDamageMP = $this.$curBlockDamageMP + nms_Block_getPlayerRelativeBlockHardness($var6, $this.$mc13.$thePlayer, $this.$mc13.$thePlayer.$worldObj, $par1, $par2, $par3); - if ($this.$stepSoundTickCounter % 4.0 === 0.0) { - var$5 = $this.$mc13.$sndManager; - var$6 = nms_StepSound_getStepSound($var6.$stepSound); - var$9 = $par1 + 0.5; - var$10 = $par2 + 0.5; - var$11 = $par3 + 0.5; - var$12 = ($var6.$stepSound.$stepSoundVolume + 1.0) / 8.0; - var$13 = $var6.$stepSound.$stepSoundPitch * 0.5; - $ptr = 4; - continue main; - } - $this.$stepSoundTickCounter = $this.$stepSoundTickCounter + 1.0; - if ($this.$curBlockDamageMP >= 1.0) { - $this.$isHittingBlock = 0; - var$5 = $this.$netClientHandler; - var$6 = new nms_Packet14BlockDig; - nms_Packet_$callClinit(); - var$6.$creationTimeMillis = jl_System_currentTimeMillis(); - var$6.$isChunkDataPacket = 0; - var$6.$status0 = 2; - var$6.$xPosition0 = $par1; - var$6.$yPosition1 = $par2; - var$6.$zPosition0 = $par3; - var$6.$face = $par4; - if (!var$5.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$5.$netManager, var$6); - $ptr = 5; - continue main; - } - var$5 = $this.$mc13.$theWorld; - $par1 = $this.$mc13.$thePlayer.$entityId; - $par2 = $this.$currentBlockX; - $par3 = $this.$currentBlockY; - $par4 = $this.$currentblockZ; - $var5 = ($this.$curBlockDamageMP * 10.0 | 0) - 1 | 0; - var$14 = 0; - while (var$14 < var$5.$worldAccesses.$size0) { - var$6 = var$5.$worldAccesses; - if (var$14 < 0) - break a; - if (var$14 >= var$6.$size0) - break a; - nms_RenderGlobal_destroyBlockPartially(var$6.$array1.data[var$14], $par1, $par2, $par3, $par4, $var5); - var$14 = var$14 + 1 | 0; - } - } - return; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - case 1: - nms_PlayerControllerMP_clickBlock($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $tmp = nms_World_extinguishFire(var$5, var$6, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $var5 = $tmp; - if ($var5) - return; - $ptr = 3; - case 3: - nms_PlayerControllerMP_onPlayerDestroyBlock($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_SoundManager_playSound(var$5, var$6, var$9, var$10, var$11, var$12, var$13); - if ($rt_suspending()) { - break main; - } - $this.$stepSoundTickCounter = $this.$stepSoundTickCounter + 1.0; - if ($this.$curBlockDamageMP < 1.0) { - var$5 = $this.$mc13.$theWorld; - $par1 = $this.$mc13.$thePlayer.$entityId; - $par2 = $this.$currentBlockX; - $par3 = $this.$currentBlockY; - $par4 = $this.$currentblockZ; - $var5 = ($this.$curBlockDamageMP * 10.0 | 0) - 1 | 0; - var$14 = 0; - a: { - while (var$14 < var$5.$worldAccesses.$size0) { - var$6 = var$5.$worldAccesses; - if (var$14 < 0) - break a; - if (var$14 >= var$6.$size0) - break a; - nms_RenderGlobal_destroyBlockPartially(var$6.$array1.data[var$14], $par1, $par2, $par3, $par4, $var5); - var$14 = var$14 + 1 | 0; - } - return; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - } - $this.$isHittingBlock = 0; - var$5 = $this.$netClientHandler; - var$6 = new nms_Packet14BlockDig; - nms_Packet_$callClinit(); - var$6.$creationTimeMillis = jl_System_currentTimeMillis(); - var$6.$isChunkDataPacket = 0; - var$6.$status0 = 2; - var$6.$xPosition0 = $par1; - var$6.$yPosition1 = $par2; - var$6.$zPosition0 = $par3; - var$6.$face = $par4; - if (!var$5.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$5.$netManager, var$6); - $ptr = 5; - case 5: - nms_PlayerControllerMP_onPlayerDestroyBlock($this, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $this.$curBlockDamageMP = 0.0; - $this.$stepSoundTickCounter = 0.0; - $this.$blockHitDelay = 5; - var$5 = $this.$mc13.$theWorld; - $par1 = $this.$mc13.$thePlayer.$entityId; - $par2 = $this.$currentBlockX; - $par3 = $this.$currentBlockY; - $par4 = $this.$currentblockZ; - $var5 = ($this.$curBlockDamageMP * 10.0 | 0) - 1 | 0; - var$14 = 0; - b: { - while (var$14 < var$5.$worldAccesses.$size0) { - var$6 = var$5.$worldAccesses; - if (var$14 < 0) - break b; - if (var$14 >= var$6.$size0) - break b; - nms_RenderGlobal_destroyBlockPartially(var$6.$array1.data[var$14], $par1, $par2, $par3, $par4, $var5); - var$14 = var$14 + 1 | 0; - } - 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, $par4, var$5, var$6, $var5, $var6, var$9, var$10, var$11, var$12, var$13, var$14, $ptr); -} -function nms_PlayerControllerMP_getBlockReachDistance($this) { - return !($this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) ? 4.5 : 5.0; -} -function nms_PlayerControllerMP_updateController($this) { - nms_PlayerControllerMP_syncCurrentPlayItem($this); -} -function nms_PlayerControllerMP_sameToolAndBlock($this, $par1, $par2, $par3) { - var $var4, $var5; - $var4 = nms_InventoryPlayer_getCurrentItem($this.$mc13.$thePlayer.$inventory); - $var5 = $this.$field_85183_f === null && $var4 === null ? 1 : 0; - if ($this.$field_85183_f !== null && $var4 !== null) - a: { - b: { - if ($var4.$itemID0 == $this.$field_85183_f.$itemID0 && nms_ItemStack_areItemStackTagsEqual($var4, $this.$field_85183_f)) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var4.$itemID0].$maxDamage <= 0 ? 0 : 1) - break b; - if ($var4.$itemDamage == $this.$field_85183_f.$itemDamage) - break b; - } - $var5 = 0; - break a; - } - $var5 = 1; - } - return $par1 == $this.$currentBlockX && $par2 == $this.$currentBlockY && $par3 == $this.$currentblockZ && $var5 ? 1 : 0; -} -function nms_PlayerControllerMP_syncCurrentPlayItem($this) { - var $var1, var$2, var$3; - $var1 = $this.$mc13.$thePlayer.$inventory.$currentItem; - if ($var1 != $this.$currentPlayerItem) { - $this.$currentPlayerItem = $var1; - var$2 = $this.$netClientHandler; - var$3 = new nms_Packet16BlockItemSwitch; - $var1 = $this.$currentPlayerItem; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$id4 = $var1; - if (!var$2.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$2.$netManager, var$3); - } -} -function nms_PlayerControllerMP_onPlayerRightClick($this, $par1EntityPlayer, $par2World, $par3ItemStack, $par4, $par5, $par6, $par7, $par8Vec3) { - var $var9, $var10, $var11, $var12, $var13, $var16, var$15, $var13_0, $var14, $var15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var13_0 = $thread.pop();var$15 = $thread.pop();$var16 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$par8Vec3 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3ItemStack = $thread.pop();$par2World = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_PlayerControllerMP_syncCurrentPlayItem($this); - $var9 = $par8Vec3.$xCoord - $par4; - $var10 = $par8Vec3.$yCoord - $par5; - $var11 = $par8Vec3.$zCoord - $par6; - $var12 = 0; - $var13 = $par1EntityPlayer.$movementInput.$sneak && !$par1EntityPlayer.$sleeping ? 1 : 0; - if (!($var13 && nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory) !== null)) { - $var13 = nms_World_getBlockId($par2World, $par4, $par5, $par6); - if ($var13 > 0) { - nms_Block_$callClinit(); - $par8Vec3 = nms_Block_blocksList.data[$var13]; - $ptr = 1; - continue main; - } - } - if (!$var12 && $par3ItemStack !== null) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par3ItemStack.$itemID0] instanceof nms_ItemBlock && !nms_Item_itemsList.data[$par3ItemStack.$itemID0].$canPlaceItemBlockOnSide($par2World, $par4, $par5, $par6, $par7, $par1EntityPlayer, $par3ItemStack)) - return 0; - } - $par8Vec3 = $this.$netClientHandler; - $var16 = new nms_Packet15Place; - var$15 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - nms_Packet_$callClinit(); - $var16.$creationTimeMillis = jl_System_currentTimeMillis(); - $var16.$isChunkDataPacket = 0; - $var16.$xPosition2 = $par4; - $var16.$yPosition3 = $par5; - $var16.$zPosition2 = $par6; - $var16.$direction = $par7; - $var16.$itemStack0 = var$15 === null ? null : nms_ItemStack_copy(var$15); - $var16.$xOffset0 = $var9; - $var16.$yOffset1 = $var10; - $var16.$zOffset0 = $var11; - if (!$par8Vec3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($par8Vec3.$netManager, $var16); - if ($var12) - return 1; - if ($par3ItemStack === null) - return 0; - if (!($this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1)) { - nms_Item_$callClinit(); - $par8Vec3 = nms_Item_itemsList.data[$par3ItemStack.$itemID0]; - $ptr = 2; - continue main; - } - $var13_0 = $par3ItemStack.$itemDamage; - $var14 = $par3ItemStack.$stackSize; - nms_Item_$callClinit(); - $par8Vec3 = nms_Item_itemsList.data[$par3ItemStack.$itemID0]; - $ptr = 3; - continue main; - case 1: - $tmp = $par8Vec3.$onBlockActivated($par2World, $par4, $par5, $par6, $par1EntityPlayer, $par7, $var9, $var10, $var11); - if ($rt_suspending()) { - break main; - } - $var13 = $tmp; - if ($var13) - $var12 = 1; - if (!$var12 && $par3ItemStack !== null) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par3ItemStack.$itemID0] instanceof nms_ItemBlock && !nms_Item_itemsList.data[$par3ItemStack.$itemID0].$canPlaceItemBlockOnSide($par2World, $par4, $par5, $par6, $par7, $par1EntityPlayer, $par3ItemStack)) - return 0; - } - $par8Vec3 = $this.$netClientHandler; - $var16 = new nms_Packet15Place; - var$15 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - nms_Packet_$callClinit(); - $var16.$creationTimeMillis = jl_System_currentTimeMillis(); - $var16.$isChunkDataPacket = 0; - $var16.$xPosition2 = $par4; - $var16.$yPosition3 = $par5; - $var16.$zPosition2 = $par6; - $var16.$direction = $par7; - $var16.$itemStack0 = var$15 === null ? null : nms_ItemStack_copy(var$15); - $var16.$xOffset0 = $var9; - $var16.$yOffset1 = $var10; - $var16.$zOffset0 = $var11; - if (!$par8Vec3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($par8Vec3.$netManager, $var16); - if ($var12) - return 1; - if ($par3ItemStack === null) - return 0; - if (!($this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1)) { - nms_Item_$callClinit(); - $par8Vec3 = nms_Item_itemsList.data[$par3ItemStack.$itemID0]; - $ptr = 2; - continue main; - } - $var13_0 = $par3ItemStack.$itemDamage; - $var14 = $par3ItemStack.$stackSize; - nms_Item_$callClinit(); - $par8Vec3 = nms_Item_itemsList.data[$par3ItemStack.$itemID0]; - $ptr = 3; - continue main; - case 2: - $tmp = $par8Vec3.$onItemUse($par3ItemStack, $par1EntityPlayer, $par2World, $par4, $par5, $par6, $par7, $var9, $var10, $var11); - if ($rt_suspending()) { - break main; - } - $par4 = $tmp; - return $par4; - case 3: - $tmp = $par8Vec3.$onItemUse($par3ItemStack, $par1EntityPlayer, $par2World, $par4, $par5, $par6, $par7, $var9, $var10, $var11); - if ($rt_suspending()) { - break main; - } - $var15 = $tmp; - $par3ItemStack.$itemDamage = $var13_0; - if ($par3ItemStack.$itemDamage < 0) - $par3ItemStack.$itemDamage = 0; - $par3ItemStack.$stackSize = $var14; - return $var15; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2World, $par3ItemStack, $par4, $par5, $par6, $par7, $par8Vec3, $var9, $var10, $var11, $var12, $var13, $var16, var$15, $var13_0, $var14, $var15, $ptr); -} -function nms_PlayerControllerMP_sendUseItem($this, $par1EntityPlayer, $par2World, $par3ItemStack) { - var var$4, $var5, var$6, $var4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var4 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();var$4 = $thread.pop();$par3ItemStack = $thread.pop();$par2World = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_PlayerControllerMP_syncCurrentPlayItem($this); - var$4 = $this.$netClientHandler; - $var5 = new nms_Packet15Place; - var$6 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - nms_Packet_$callClinit(); - $var5.$creationTimeMillis = jl_System_currentTimeMillis(); - $var5.$isChunkDataPacket = 0; - $var5.$xPosition2 = (-1); - $var5.$yPosition3 = (-1); - $var5.$zPosition2 = (-1); - $var5.$direction = 255; - $var5.$itemStack0 = var$6 === null ? null : nms_ItemStack_copy(var$6); - $var5.$xOffset0 = 0.0; - $var5.$yOffset1 = 0.0; - $var5.$zOffset0 = 0.0; - if (!var$4.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$4.$netManager, $var5); - $var4 = $par3ItemStack.$stackSize; - nms_Item_$callClinit(); - $var5 = nms_Item_itemsList.data[$par3ItemStack.$itemID0]; - $ptr = 1; - case 1: - $tmp = $var5.$onItemRightClick($par3ItemStack, $par2World, $par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - $var5 = $tmp; - if ($var5 === $par3ItemStack && !($var5 !== null && $var5.$stackSize != $var4)) - return 0; - $par1EntityPlayer.$inventory.$mainInventory.data[$par1EntityPlayer.$inventory.$currentItem] = $var5; - if (!$var5.$stackSize) - $par1EntityPlayer.$inventory.$mainInventory.data[$par1EntityPlayer.$inventory.$currentItem] = null; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2World, $par3ItemStack, var$4, $var5, var$6, $var4, $ptr); -} -function nms_PlayerControllerMP_func_78754_a($this, $par1World) { - var var$2, var$3, var$4, var$5; - var$2 = new nms_EntityClientPlayerMP; - var$3 = $this.$mc13; - nle_EaglerProfile_$callClinit(); - var$4 = nle_EaglerProfile_username; - var$5 = $this.$netClientHandler; - nms_EntityPlayerSP__init_0(var$2, var$3, $par1World, var$4, 0); - var$2.$wasOnGround = 0; - var$2.$shouldStopSneaking = 0; - var$2.$wasSneaking = 0; - var$2.$field_71168_co = 0; - var$2.$hasSetHealth = 0; - var$2.$sendQueue = var$5; - return var$2; -} -function nms_PlayerControllerMP_attackEntity($this, $par1EntityPlayer, $par2Entity) { - var 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();$par2Entity = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_PlayerControllerMP_syncCurrentPlayItem($this); - var$3 = $this.$netClientHandler; - var$4 = new nms_Packet7UseEntity; - var$5 = $par1EntityPlayer.$entityId; - var$6 = $par2Entity.$entityId; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$playerEntityId = var$5; - var$4.$targetEntity = var$6; - var$4.$isLeftClick = 1; - if (!var$3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$3.$netManager, var$4); - $ptr = 1; - case 1: - nms_EntityPlayer_attackTargetEntityWithCurrentItem($par1EntityPlayer, $par2Entity); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2Entity, var$3, var$4, var$5, var$6, $ptr); -} -function nms_PlayerControllerMP_func_78768_b($this, $par1EntityPlayer, $par2Entity) { - var var$3, var$4, var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2Entity = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_PlayerControllerMP_syncCurrentPlayItem($this); - var$3 = $this.$netClientHandler; - var$4 = new nms_Packet7UseEntity; - var$5 = $par1EntityPlayer.$entityId; - var$6 = $par2Entity.$entityId; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$playerEntityId = var$5; - var$4.$targetEntity = var$6; - var$4.$isLeftClick = 0; - if (!var$3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$3.$netManager, var$4); - $ptr = 1; - case 1: - $tmp = nms_EntityPlayer_interactWith($par1EntityPlayer, $par2Entity); - if ($rt_suspending()) { - break main; - } - var$7 = $tmp; - return var$7; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2Entity, var$3, var$4, var$5, var$6, var$7, $ptr); -} -function nms_PlayerControllerMP_windowClick($this, $par1, $par2, $par3, $par4, $par5EntityPlayer) { - var $var7, $var6, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$var6 = $thread.pop();$var7 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = $par5EntityPlayer.$openContainer; - $var7.$transactionID = ($var7.$transactionID + 1 | 0) << 16 >> 16; - $var6 = $var7.$transactionID; - $var7 = $par5EntityPlayer.$openContainer; - $ptr = 1; - case 1: - $tmp = nms_Container_slotClick($var7, $par2, $par3, $par4, $par5EntityPlayer); - if ($rt_suspending()) { - break main; - } - $var7 = $tmp; - $par5EntityPlayer = $this.$netClientHandler; - var$8 = new nms_Packet102WindowClick; - nms_Packet_$callClinit(); - var$8.$creationTimeMillis = jl_System_currentTimeMillis(); - var$8.$isChunkDataPacket = 0; - var$8.$window_Id = $par1; - var$8.$inventorySlot = $par2; - var$8.$mouseClick = $par3; - var$8.$itemStack1 = $var7 === null ? null : nms_ItemStack_copy($var7); - var$8.$action = $var6; - var$8.$holdingShift = $par4; - if (!$par5EntityPlayer.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($par5EntityPlayer.$netManager, var$8); - return $var7; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5EntityPlayer, $var7, $var6, var$8, $ptr); -} -function nms_PlayerControllerMP_sendEnchantPacket($this, $par1, $par2) { - var var$3, var$4; - var$3 = $this.$netClientHandler; - var$4 = new nms_Packet108EnchantItem; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$windowId1 = $par1; - var$4.$enchantment = $par2; - if (!var$3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$3.$netManager, var$4); -} -function nms_PlayerControllerMP_sendSlotPacket($this, $par1ItemStack, $par2) { - var var$3, var$4; - if ($this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) { - var$3 = $this.$netClientHandler; - var$4 = new nms_Packet107CreativeSetSlot; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$slot = $par2; - var$4.$itemStack2 = $par1ItemStack === null ? null : nms_ItemStack_copy($par1ItemStack); - if (!var$3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$3.$netManager, var$4); - } -} -function nms_PlayerControllerMP_func_78752_a($this, $par1ItemStack) { - var var$2, var$3, var$4; - var$2 = $this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1; - if (var$2 && $par1ItemStack !== null) { - var$3 = $this.$netClientHandler; - var$4 = new nms_Packet107CreativeSetSlot; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$slot = (-1); - var$4.$itemStack2 = nms_ItemStack_copy($par1ItemStack); - if (!var$3.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$3.$netManager, var$4); - } -} -function nms_PlayerControllerMP_onStoppedUsingItem($this, $par1EntityPlayer) { - var var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_PlayerControllerMP_syncCurrentPlayItem($this); - var$2 = $this.$netClientHandler; - var$3 = new nms_Packet14BlockDig; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$status0 = 5; - var$3.$xPosition0 = 0; - var$3.$yPosition1 = 0; - var$3.$zPosition0 = 0; - var$3.$face = 255; - if (!var$2.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$2.$netManager, var$3); - if ($par1EntityPlayer.$itemInUse === null) { - $par1EntityPlayer.$itemInUse = null; - $par1EntityPlayer.$itemInUseCount = 0; - if (!$par1EntityPlayer.$worldObj.$isRemote) - nms_Entity_setFlag($par1EntityPlayer, 4, 0); - return; - } - var$3 = $par1EntityPlayer.$itemInUse; - var$2 = $par1EntityPlayer.$worldObj; - var$4 = $par1EntityPlayer.$itemInUseCount; - nms_Item_$callClinit(); - var$5 = nms_Item_itemsList.data[var$3.$itemID0]; - $ptr = 1; - case 1: - var$5.$onPlayerStoppedUsing(var$3, var$2, $par1EntityPlayer, var$4); - if ($rt_suspending()) { - break main; - } - $par1EntityPlayer.$itemInUse = null; - $par1EntityPlayer.$itemInUseCount = 0; - if (!$par1EntityPlayer.$worldObj.$isRemote) - nms_Entity_setFlag($par1EntityPlayer, 4, 0); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, var$2, var$3, var$4, var$5, $ptr); -} -function nms_PlayerControllerMP_func_78763_f($this) { - return 1; -} -function nms_PlayerControllerMP_isNotCreative($this) { - return ($this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) ? 0 : 1; -} -function nms_PlayerControllerMP_isInCreativeMode($this) { - return $this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1; -} -function nms_PlayerControllerMP_extendedReach($this) { - return $this.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1; -} -function nms_EntityOtherPlayerMP() { - var a = this; nms_EntityPlayer.call(a); - a.$isItemInUse = 0; - a.$otherPlayerMPPosRotationIncrements = 0; - a.$otherPlayerMPX = 0.0; - a.$otherPlayerMPY = 0.0; - a.$otherPlayerMPZ = 0.0; - a.$otherPlayerMPYaw = 0.0; - a.$otherPlayerMPPitch = 0.0; - a.$skinPacket = null; -} -function nms_EntityOtherPlayerMP__init_(var_0, var_1) { - var var_2 = new nms_EntityOtherPlayerMP(); - nms_EntityOtherPlayerMP__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_EntityOtherPlayerMP__init_0($this, $par1World, $par2Str) { - nms_EntityPlayer__init_0($this); - $this.$isItemInUse = 0; - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$username0 = $par2Str; - $this.$yOffset0 = 0.0; - $this.$stepHeight = 0.0; - $this.$noClip = 1; - $this.$field_71082_cx = 0.25; - $this.$renderDistanceWeight = 10.0; - $this.$skinPacket = null; -} -function nms_EntityOtherPlayerMP_resetHeight($this) { - $this.$yOffset0 = 0.0; -} -function nms_EntityOtherPlayerMP_attackEntityFrom($this, $par1DamageSource, $par2) { - return 1; -} -function nms_EntityOtherPlayerMP_setPositionAndRotation2($this, $par1, $par3, $par5, $par7, $par8, $par9) { - $this.$otherPlayerMPX = $par1; - $this.$otherPlayerMPY = $par3; - $this.$otherPlayerMPZ = $par5; - $this.$otherPlayerMPYaw = $par7; - $this.$otherPlayerMPPitch = $par8; - $this.$otherPlayerMPPosRotationIncrements = $par9; -} -function nms_EntityOtherPlayerMP_updateCloak($this) { - return; -} -function nms_EntityOtherPlayerMP_onUpdate($this) { - var $var1, $var3, $var5, $var6, 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();$var6 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$field_71082_cx = 0.0; - $ptr = 1; - case 1: - nms_EntityPlayer_onUpdate($this); - if ($rt_suspending()) { - break main; - } - $this.$prevLimbYaw = $this.$limbYaw; - $var1 = $this.$posX - $this.$prevPosX; - $var3 = $this.$posZ - $this.$prevPosZ; - $var5 = jl_Math_sqrt($var1 * $var1 + $var3 * $var3) * 4.0; - if ($var5 > 1.0) - $var5 = 1.0; - $this.$limbYaw = $this.$limbYaw + ($var5 - $this.$limbYaw) * 0.4000000059604645; - $this.$limbSwing = $this.$limbSwing + $this.$limbYaw; - if (!$this.$isItemInUse && (!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 16) ? 0 : 1) && $this.$inventory.$mainInventory.data[$this.$inventory.$currentItem] !== null) { - $var6 = $this.$inventory.$mainInventory.data[$this.$inventory.$currentItem]; - var$5 = $this.$inventory.$mainInventory.data[$this.$inventory.$currentItem]; - nms_Item_$callClinit(); - var$6 = nms_Item_itemsList.data[$var6.$itemID0].$getMaxItemUseDuration($var6); - if (var$5 !== $this.$itemInUse) { - $this.$itemInUse = var$5; - $this.$itemInUseCount = var$6; - if (!$this.$worldObj.$isRemote) - nms_Entity_setFlag($this, 4, 1); - } - $this.$isItemInUse = 1; - } else if ($this.$isItemInUse && !(!(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 0) & 16) ? 0 : 1)) { - $this.$itemInUse = null; - $this.$itemInUseCount = 0; - if (!$this.$worldObj.$isRemote) - nms_Entity_setFlag($this, 4, 0); - $this.$isItemInUse = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var3, $var5, $var6, var$5, var$6, $ptr); -} -function nms_EntityOtherPlayerMP_getShadowSize($this) { - return 0.0; -} -function nms_EntityOtherPlayerMP_onLivingUpdate($this) { - var $var1, $var3, $var5, $var7, $var2, var$6, $var9; - nms_EntityLiving_updateArmSwingProgress($this); - if ($this.$otherPlayerMPPosRotationIncrements > 0) { - $var1 = $this.$posX + ($this.$otherPlayerMPX - $this.$posX) / $this.$otherPlayerMPPosRotationIncrements; - $var3 = $this.$posY + ($this.$otherPlayerMPY - $this.$posY) / $this.$otherPlayerMPPosRotationIncrements; - $var5 = $this.$posZ + ($this.$otherPlayerMPZ - $this.$posZ) / $this.$otherPlayerMPPosRotationIncrements; - $var7 = $this.$otherPlayerMPYaw - $this.$rotationYaw; - while ($var7 < (-180.0)) { - $var7 = $var7 + 360.0; - } - while ($var7 >= 180.0) { - $var7 = $var7 - 360.0; - } - $this.$rotationYaw = $this.$rotationYaw + $var7 / $this.$otherPlayerMPPosRotationIncrements; - $this.$rotationPitch = $this.$rotationPitch + ($this.$otherPlayerMPPitch - $this.$rotationPitch) / $this.$otherPlayerMPPosRotationIncrements; - $this.$otherPlayerMPPosRotationIncrements = $this.$otherPlayerMPPosRotationIncrements - 1 | 0; - nms_Entity_setPosition($this, $var1, $var3, $var5); - $var2 = $this.$rotationYaw; - var$6 = $this.$rotationPitch; - $this.$rotationYaw = $var2 % 360.0; - $this.$rotationPitch = var$6 % 360.0; - } - $this.$prevCameraYaw = $this.$cameraYaw0; - $var9 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ); - $var2 = jl_Math_atan( -$this.$motionY * 0.20000000298023224) * 15.0; - if ($var9 > 0.10000000149011612) - $var9 = 0.10000000149011612; - if (!($this.$onGround && $this.$health > 0)) - $var9 = 0.0; - if (!(!$this.$onGround && $this.$health > 0)) - $var2 = 0.0; - $this.$cameraYaw0 = $this.$cameraYaw0 + ($var9 - $this.$cameraYaw0) * 0.4000000059604645; - $this.$cameraPitch0 = $this.$cameraPitch0 + ($var2 - $this.$cameraPitch0) * 0.800000011920929; -} -function nms_EntityOtherPlayerMP_setCurrentItemOrArmor($this, $par1, $par2ItemStack) { - if ($par1) - $this.$inventory.$armorInventory.data[$par1 - 1 | 0] = $par2ItemStack; - else - $this.$inventory.$mainInventory.data[$this.$inventory.$currentItem] = $par2ItemStack; -} -function nms_EntityOtherPlayerMP_getEyeHeight($this) { - return 1.8200000524520874; -} -function nms_GuiParticle() { - var a = this; nms_Gui.call(a); - a.$particles = null; - a.$mc5 = null; -} -var nms_GuiParticle_tex_particles = null; -function nms_GuiParticle_update($this) { - var $var1, $var2, var$3; - $var1 = 0; - a: { - while ($var1 < $this.$particles.$size0) { - $var2 = $this.$particles; - if ($var1 < 0) - break a; - if ($var1 >= $var2.$size0) - break a; - $var2 = $var2.$array1.data[$var1]; - $var2.$preUpdate(); - $var2.$update3($this); - if (!$var2.$isDead0) - var$3 = $var1; - else { - $var2 = $this.$particles; - var$3 = $var1 + (-1) | 0; - ju_ArrayList_remove($var2, $var1); - } - $var1 = var$3 + 1 | 0; - } - return; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -} -function nms_GuiParticle_draw($this, $par1) { - var $var2, var$3, $var3, $var4, $var5, $var6, $var7, $var8, $var9; - nle_TextureLocation_bindTexture(nms_GuiParticle_tex_particles); - $var2 = 0; - var$3 = $par1; - a: { - while ($var2 < $this.$particles.$size0) { - $var3 = $this.$particles; - if ($var2 < 0) - break a; - if ($var2 >= $var3.$size0) - break a; - $var3 = $var3.$array1.data[$var2]; - $var4 = $var3.$prevPosX0 + ($var3.$posX4 - $var3.$prevPosX0) * var$3 - 4.0 | 0; - $var5 = $var3.$prevPosY0 + ($var3.$posY4 - $var3.$prevPosY0) * var$3 - 4.0 | 0; - $var6 = $var3.$prevTintAlpha + ($var3.$tintAlpha - $var3.$prevTintAlpha) * var$3; - $var7 = $var3.$prevTintRed + ($var3.$tintRed - $var3.$prevTintRed) * var$3; - $var8 = $var3.$prevTintGreen + ($var3.$tintGreen - $var3.$prevTintGreen) * var$3; - $var9 = $var3.$prevTintBlue + ($var3.$tintBlue - $var3.$prevTintBlue) * var$3; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = $var7; - nleg_EaglerAdapterGL30_colorG = $var8; - nleg_EaglerAdapterGL30_colorB = $var9; - nleg_EaglerAdapterGL30_colorA = $var6; - nms_Gui_drawTexturedModalRect($this, $var4, $var5, 40, 0, 8, 8); - $var2 = $var2 + 1 | 0; - } - return; - } - $var3 = new jl_IndexOutOfBoundsException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $rt_throw($var3); -} -function nms_GuiParticle__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1566); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_GuiParticle_tex_particles = var$1; -} -function nms_MovingObjectPosition() { - var a = this; jl_Object.call(a); - a.$typeOfHit = null; - a.$blockX = 0; - a.$blockY = 0; - a.$blockZ = 0; - a.$sideHit = 0; - a.$hitVec = null; - a.$entityHit = null; -} -function nms_MovingObjectPosition__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_MovingObjectPosition(); - nms_MovingObjectPosition__init_1(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_MovingObjectPosition__init_0(var_0) { - var var_1 = new nms_MovingObjectPosition(); - nms_MovingObjectPosition__init_2(var_1, var_0); - return var_1; -} -function nms_MovingObjectPosition__init_1($this, $par1, $par2, $par3, $par4, $par5Vec3) { - $this.$typeOfHit = nms_EnumMovingObjectType_TILE; - $this.$blockX = $par1; - $this.$blockY = $par2; - $this.$blockZ = $par3; - $this.$sideHit = $par4; - $this.$hitVec = nms_Vec3Pool_getVecFromPool($par5Vec3.$myVec3LocalPool, $par5Vec3.$xCoord, $par5Vec3.$yCoord, $par5Vec3.$zCoord); -} -function nms_MovingObjectPosition__init_2($this, $par1Entity) { - $this.$typeOfHit = nms_EnumMovingObjectType_ENTITY; - $this.$entityHit = $par1Entity; - $this.$hitVec = nms_Vec3Pool_getVecFromPool($par1Entity.$worldObj.$vecPool, $par1Entity.$posX, $par1Entity.$posY, $par1Entity.$posZ); -} -function nms_EnumMovingObjectType() { - jl_Enum.call(this); -} -var nms_EnumMovingObjectType_TILE = null; -var nms_EnumMovingObjectType_ENTITY = null; -var nms_EnumMovingObjectType_$VALUES = null; -function nms_EnumMovingObjectType__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumMovingObjectType; - var$1.$name2 = $rt_s(1567); - var$1.$ordinal = 0; - nms_EnumMovingObjectType_TILE = var$1; - var$1 = new nms_EnumMovingObjectType; - var$1.$name2 = $rt_s(1568); - var$1.$ordinal = 1; - nms_EnumMovingObjectType_ENTITY = var$1; - var$2 = $rt_createArray(nms_EnumMovingObjectType, 2); - var$3 = var$2.data; - var$3[0] = nms_EnumMovingObjectType_TILE; - var$3[1] = nms_EnumMovingObjectType_ENTITY; - nms_EnumMovingObjectType_$VALUES = var$2; -} -function nms_ItemStack() { - var a = this; jl_Object.call(a); - a.$stackSize = 0; - a.$animationsToGo = 0; - a.$itemID0 = 0; - a.$stackTagCompound = null; - a.$itemDamage = 0; - a.$itemFrame = null; -} -function nms_ItemStack__init_7(var_0) { - var var_1 = new nms_ItemStack(); - nms_ItemStack__init_8(var_1, var_0); - return var_1; -} -function nms_ItemStack__init_6(var_0, var_1) { - var var_2 = new nms_ItemStack(); - nms_ItemStack__init_9(var_2, var_0, var_1); - return var_2; -} -function nms_ItemStack__init_10(var_0, var_1, var_2) { - var var_3 = new nms_ItemStack(); - nms_ItemStack__init_11(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ItemStack__init_2(var_0) { - var var_1 = new nms_ItemStack(); - nms_ItemStack__init_1(var_1, var_0); - return var_1; -} -function nms_ItemStack__init_3(var_0, var_1) { - var var_2 = new nms_ItemStack(); - nms_ItemStack__init_12(var_2, var_0, var_1); - return var_2; -} -function nms_ItemStack__init_5(var_0, var_1, var_2) { - var var_3 = new nms_ItemStack(); - nms_ItemStack__init_13(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ItemStack__init_4(var_0, var_1, var_2) { - var var_3 = new nms_ItemStack(); - nms_ItemStack__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ItemStack__init_14() { - var var_0 = new nms_ItemStack(); - nms_ItemStack__init_(var_0); - return var_0; -} -function nms_ItemStack__init_8($this, $par1Block) { - var var$2; - var$2 = $par1Block.$blockID; - $this.$stackSize = 0; - $this.$itemFrame = null; - $this.$itemID0 = var$2; - $this.$stackSize = 1; - $this.$itemDamage = 0; - if ($this.$itemDamage < 0) - $this.$itemDamage = 0; -} -function nms_ItemStack__init_9($this, $par1Block, $par2) { - var var$3; - var$3 = $par1Block.$blockID; - $this.$stackSize = 0; - $this.$itemFrame = null; - $this.$itemID0 = var$3; - $this.$stackSize = $par2; - $this.$itemDamage = 0; - if ($this.$itemDamage < 0) - $this.$itemDamage = 0; -} -function nms_ItemStack__init_11($this, $par1Block, $par2, $par3) { - var var$4; - var$4 = $par1Block.$blockID; - $this.$stackSize = 0; - $this.$itemFrame = null; - $this.$itemID0 = var$4; - $this.$stackSize = $par2; - $this.$itemDamage = $par3; - if ($this.$itemDamage < 0) - $this.$itemDamage = 0; -} -function nms_ItemStack__init_1($this, $par1Item) { - var var$2; - var$2 = $par1Item.$itemID; - $this.$stackSize = 0; - $this.$itemFrame = null; - $this.$itemID0 = var$2; - $this.$stackSize = 1; - $this.$itemDamage = 0; - if ($this.$itemDamage < 0) - $this.$itemDamage = 0; -} -function nms_ItemStack__init_12($this, $par1Item, $par2) { - var var$3; - var$3 = $par1Item.$itemID; - $this.$stackSize = 0; - $this.$itemFrame = null; - $this.$itemID0 = var$3; - $this.$stackSize = $par2; - $this.$itemDamage = 0; - if ($this.$itemDamage < 0) - $this.$itemDamage = 0; -} -function nms_ItemStack__init_13($this, $par1Item, $par2, $par3) { - var var$4; - var$4 = $par1Item.$itemID; - $this.$stackSize = 0; - $this.$itemFrame = null; - $this.$itemID0 = var$4; - $this.$stackSize = $par2; - $this.$itemDamage = $par3; - if ($this.$itemDamage < 0) - $this.$itemDamage = 0; -} -function nms_ItemStack__init_0($this, $par1, $par2, $par3) { - $this.$stackSize = 0; - $this.$itemFrame = null; - $this.$itemID0 = $par1; - $this.$stackSize = $par2; - $this.$itemDamage = $par3; - if ($this.$itemDamage < 0) - $this.$itemDamage = 0; -} -function nms_ItemStack_loadItemStackFromNBT($par0NBTTagCompound) { - var $var1; - $var1 = new nms_ItemStack; - $var1.$stackSize = 0; - $var1.$itemFrame = null; - nms_ItemStack_readFromNBT($var1, $par0NBTTagCompound); - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var1.$itemID0] === null) - $var1 = null; - return $var1; -} -function nms_ItemStack__init_($this) { - $this.$stackSize = 0; - $this.$itemFrame = null; -} -function nms_ItemStack_splitStack($this, $par1) { - var $var2, var$3, var$4; - $var2 = new nms_ItemStack; - var$3 = $this.$itemID0; - var$4 = $this.$itemDamage; - $var2.$stackSize = 0; - $var2.$itemFrame = null; - $var2.$itemID0 = var$3; - $var2.$stackSize = $par1; - $var2.$itemDamage = var$4; - if ($var2.$itemDamage < 0) - $var2.$itemDamage = 0; - if ($this.$stackTagCompound !== null) - $var2.$stackTagCompound = nms_NBTTagCompound_copy($this.$stackTagCompound); - $this.$stackSize = $this.$stackSize - $par1 | 0; - return $var2; -} -function nms_ItemStack_getItem($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0]; -} -function nms_ItemStack_getIconIndex($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$getIconFromDamage($this.$itemDamage); -} -function nms_ItemStack_getItemSpriteNumber($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$getSpriteNumber(); -} -function nms_ItemStack_tryPlaceItemIntoWorld($this, $par1EntityPlayer, $par2World, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var var$10, $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();var$10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2World = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Item_$callClinit(); - var$10 = nms_Item_itemsList.data[$this.$itemID0]; - $ptr = 1; - case 1: - $tmp = var$10.$onItemUse($this, $par1EntityPlayer, $par2World, $par3, $par4, $par5, $par6, $par7, $par8, $par9); - if ($rt_suspending()) { - break main; - } - $var10 = $tmp; - return $var10; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2World, $par3, $par4, $par5, $par6, $par7, $par8, $par9, var$10, $var10, $ptr); -} -function nms_ItemStack_getStrVsBlock($this, $par1Block) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$getStrVsBlock0($this, $par1Block); -} -function nms_ItemStack_useItemRightClick($this, $par1World, $par2EntityPlayer) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2EntityPlayer = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Item_$callClinit(); - var$3 = nms_Item_itemsList.data[$this.$itemID0]; - $ptr = 1; - case 1: - $tmp = var$3.$onItemRightClick($this, $par1World, $par2EntityPlayer); - if ($rt_suspending()) { - break main; - } - $par1World = $tmp; - return $par1World; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2EntityPlayer, var$3, $ptr); -} -function nms_ItemStack_onFoodEaten($this, $par1World, $par2EntityPlayer) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$onEaten($this, $par1World, $par2EntityPlayer); -} -function nms_ItemStack_writeToNBT($this, $par1NBTTagCompound) { - var var$2, var$3, var$4; - var$2 = $this.$itemID0 << 16 >> 16; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagShort; - var$4.$name0 = $rt_s(1569); - var$4.$data1 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(1569), var$4); - var$2 = $this.$stackSize << 24 >> 24; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagByte; - var$4.$name0 = $rt_s(1570); - var$4.$data0 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(1570), var$4); - var$2 = $this.$itemDamage << 16 >> 16; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagShort; - var$4.$name0 = $rt_s(1571); - var$4.$data1 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(1571), var$4); - if ($this.$stackTagCompound !== null) { - var$4 = $this.$stackTagCompound; - var$3 = $par1NBTTagCompound.$tagMap; - var$4.$name0 = $rt_s(1572); - ju_HashMap_putImpl(var$3, $rt_s(1572), var$4); - } - return $par1NBTTagCompound; -} -function nms_ItemStack_readFromNBT($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1569)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1569), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$4 = jl_String_hashCode($rt_s(1569)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1569), var$4 & (var$2.$elementData.data.length - 1 | 0), var$4); - var$4 = (var$5 === null ? null : var$5.$value0).$data1; - } - $this.$itemID0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1570)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1570), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1570)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1570), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data0; - } - $this.$stackSize = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1571)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1571), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1571)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1571), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data1; - } - $this.$itemDamage = var$4; - if ($this.$itemDamage < 0) - $this.$itemDamage = 0; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1572)); - if (ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1572), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) { - var$2 = $par1NBTTagCompound.$tagMap; - var$6 = ju_HashMap_computeHashCode($rt_s(1572)); - $this.$stackTagCompound = !(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1572), var$6 & (var$2.$elementData.data.length - 1 | 0), var$6) === null ? 0 : 1) ? nms_NBTTagCompound__init_1($rt_s(1572)) : ju_HashMap_get($par1NBTTagCompound.$tagMap, $rt_s(1572)); - } -} -function nms_ItemStack_getMaxStackSize($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$maxStackSize; -} -function nms_ItemStack_isStackable($this) { - var var$1; - a: { - b: { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$this.$itemID0].$maxStackSize > 1) { - if (!(nms_Item_itemsList.data[$this.$itemID0].$maxDamage <= 0 ? 0 : 1)) - break b; - if (!nms_ItemStack_isItemDamaged($this)) - break b; - } - var$1 = 0; - break a; - } - var$1 = 1; - } - return var$1; -} -function nms_ItemStack_isItemStackDamageable($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$maxDamage <= 0 ? 0 : 1; -} -function nms_ItemStack_getHasSubtypes($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$hasSubtypes; -} -function nms_ItemStack_isItemDamaged($this) { - var var$1; - nms_Item_$callClinit(); - var$1 = nms_Item_itemsList.data[$this.$itemID0].$maxDamage <= 0 ? 0 : 1; - return var$1 && $this.$itemDamage > 0 ? 1 : 0; -} -function nms_ItemStack_getItemDamageForDisplay($this) { - return $this.$itemDamage; -} -function nms_ItemStack_getItemDamage($this) { - return $this.$itemDamage; -} -function nms_ItemStack_setItemDamage($this, $par1) { - $this.$itemDamage = $par1; - if ($this.$itemDamage < 0) - $this.$itemDamage = 0; -} -function nms_ItemStack_getMaxDamage($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$maxDamage; -} -function nms_ItemStack_attemptDamageItem($this, $par1, $par2Random) { - var $var3, $var4, $var5; - nms_Item_$callClinit(); - if (!(nms_Item_itemsList.data[$this.$itemID0].$maxDamage <= 0 ? 0 : 1)) - return 0; - if ($par1 > 0) { - nms_Enchantment_$callClinit(); - $var3 = nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_unbreaking.$effectId, $this); - $var4 = 0; - $var5 = 0; - while ($var3 > 0 && $var5 < $par1) { - if (nms_EnchantmentDurability_negateDamage($this, $var3, $par2Random)) - $var4 = $var4 + 1 | 0; - $var5 = $var5 + 1 | 0; - } - $par1 = $par1 - $var4 | 0; - if ($par1 <= 0) - return 0; - } - $this.$itemDamage = $this.$itemDamage + $par1 | 0; - return $this.$itemDamage <= nms_Item_itemsList.data[$this.$itemID0].$maxDamage ? 0 : 1; -} -function nms_ItemStack_damageItem($this, $par1, $par2EntityLiving) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2EntityLiving = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!($par2EntityLiving instanceof nms_EntityPlayer && $par2EntityLiving.$capabilities.$isCreativeMode)) { - nms_Item_$callClinit(); - if ((nms_Item_itemsList.data[$this.$itemID0].$maxDamage <= 0 ? 0 : 1) && nms_ItemStack_attemptDamageItem($this, $par1, $par2EntityLiving.$rand0)) { - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_EntityLiving_renderBrokenItemStack($par2EntityLiving, $this); - if ($rt_suspending()) { - break main; - } - $this.$stackSize = $this.$stackSize - 1 | 0; - if ($this.$stackSize < 0) - $this.$stackSize = 0; - $this.$itemDamage = 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2EntityLiving, $ptr); -} -function nms_ItemStack_hitEntity($this, $par1EntityLiving, $par2EntityPlayer) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2EntityPlayer = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Item_$callClinit(); - var$3 = nms_Item_itemsList.data[$this.$itemID0]; - $ptr = 1; - case 1: - var$3.$hitEntity0($this, $par1EntityLiving, $par2EntityPlayer); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2EntityPlayer, var$3, $ptr); -} -function nms_ItemStack_onBlockDestroyed($this, $par1World, $par2, $par3, $par4, $par5, $par6EntityPlayer) { - var var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();$par6EntityPlayer = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Item_$callClinit(); - var$7 = nms_Item_itemsList.data[$this.$itemID0]; - $ptr = 1; - case 1: - var$7.$onBlockDestroyed($this, $par1World, $par2, $par3, $par4, $par5, $par6EntityPlayer); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6EntityPlayer, var$7, $ptr); -} -function nms_ItemStack_getDamageVsEntity($this, $par1Entity) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$getDamageVsEntity($par1Entity); -} -function nms_ItemStack_canHarvestBlock($this, $par1Block) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$canHarvestBlock($par1Block); -} -function nms_ItemStack_interactWith($this, $par1EntityLiving) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$itemInteractionForEntity($this, $par1EntityLiving); -} -function nms_ItemStack_copy($this) { - var $var1, var$2, var$3, var$4; - $var1 = new nms_ItemStack; - var$2 = $this.$itemID0; - var$3 = $this.$stackSize; - var$4 = $this.$itemDamage; - $var1.$stackSize = 0; - $var1.$itemFrame = null; - $var1.$itemID0 = var$2; - $var1.$stackSize = var$3; - $var1.$itemDamage = var$4; - if ($var1.$itemDamage < 0) - $var1.$itemDamage = 0; - if ($this.$stackTagCompound !== null) - $var1.$stackTagCompound = nms_NBTTagCompound_copy($this.$stackTagCompound); - return $var1; -} -function nms_ItemStack_areItemStackTagsEqual($par0ItemStack, $par1ItemStack) { - var var$3, var$4; - a: { - if ($par0ItemStack === null && $par1ItemStack === null) - var$3 = 1; - else if ($par0ItemStack !== null && $par1ItemStack !== null) { - if ($par0ItemStack.$stackTagCompound === null && $par1ItemStack.$stackTagCompound !== null) - var$3 = 0; - else { - if ($par0ItemStack.$stackTagCompound !== null) { - $par0ItemStack = $par0ItemStack.$stackTagCompound; - $par1ItemStack = $par1ItemStack.$stackTagCompound; - if (!nms_NBTBase_equals($par0ItemStack, $par1ItemStack)) - var$3 = 0; - else { - $par1ItemStack = $par1ItemStack; - $par0ItemStack = $par0ItemStack.$tagMap; - var$4 = new ju_HashMap$HashMapEntrySet; - var$4.$associatedMap = $par0ItemStack; - $par0ItemStack = $par1ItemStack.$tagMap; - $par1ItemStack = new ju_HashMap$HashMapEntrySet; - $par1ItemStack.$associatedMap = $par0ItemStack; - var$3 = ju_AbstractSet_equals(var$4, $par1ItemStack); - } - if (!var$3) { - var$3 = 0; - break a; - } - } - var$3 = 1; - } - } else - var$3 = 0; - } - return var$3; -} -function nms_ItemStack_areItemStacksEqual($par0ItemStack, $par1ItemStack) { - return $par0ItemStack === null && $par1ItemStack === null ? 1 : $par0ItemStack !== null && $par1ItemStack !== null ? nms_ItemStack_isItemStackEqual($par0ItemStack, $par1ItemStack) : 0; -} -function nms_ItemStack_isItemStackEqual($this, $par1ItemStack) { - var var$2, var$3, var$4; - a: { - if ($this.$stackSize != $par1ItemStack.$stackSize) - var$2 = 0; - else if ($this.$itemID0 != $par1ItemStack.$itemID0) - var$2 = 0; - else if ($this.$itemDamage != $par1ItemStack.$itemDamage) - var$2 = 0; - else if ($this.$stackTagCompound === null && $par1ItemStack.$stackTagCompound !== null) - var$2 = 0; - else { - if ($this.$stackTagCompound !== null) { - var$3 = $this.$stackTagCompound; - $par1ItemStack = $par1ItemStack.$stackTagCompound; - if (!nms_NBTBase_equals(var$3, $par1ItemStack)) - var$2 = 0; - else { - $par1ItemStack = $par1ItemStack; - var$3 = var$3.$tagMap; - var$4 = new ju_HashMap$HashMapEntrySet; - var$4.$associatedMap = var$3; - $par1ItemStack = $par1ItemStack.$tagMap; - var$3 = new ju_HashMap$HashMapEntrySet; - var$3.$associatedMap = $par1ItemStack; - var$2 = ju_AbstractSet_equals(var$4, var$3); - } - if (!var$2) { - var$2 = 0; - break a; - } - } - var$2 = 1; - } - } - return var$2; -} -function nms_ItemStack_isItemEqual($this, $par1ItemStack) { - return $this.$itemID0 == $par1ItemStack.$itemID0 && $this.$itemDamage == $par1ItemStack.$itemDamage ? 1 : 0; -} -function nms_ItemStack_getItemName($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$getUnlocalizedName($this); -} -function nms_ItemStack_copyItemStack($par0ItemStack) { - return $par0ItemStack !== null ? nms_ItemStack_copy($par0ItemStack) : null; -} -function nms_ItemStack_toString($this) { - var var$1, var$2, var$3; - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - var$2 = $this.$stackSize; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(1521)); - nms_Item_$callClinit(); - var$3 = nms_Item_itemsList.data[$this.$itemID0].$getUnlocalizedName0(); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$3); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(1)); - var$2 = $this.$itemDamage; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_ItemStack_updateAnimation($this, $par1World, $par2Entity, $par3, $par4) { - if ($this.$animationsToGo > 0) - $this.$animationsToGo = $this.$animationsToGo - 1 | 0; - nms_Item_$callClinit(); - nms_Item_itemsList.data[$this.$itemID0].$onUpdate2($this, $par1World, $par2Entity, $par3, $par4); -} -function nms_ItemStack_onCrafting($this, $par1World, $par2EntityPlayer, $par3) { - nms_Item_$callClinit(); - nms_Item_itemsList.data[$this.$itemID0].$onCreated($this, $par1World, $par2EntityPlayer); -} -function nms_ItemStack_getMaxItemUseDuration($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$getMaxItemUseDuration($this); -} -function nms_ItemStack_getItemUseAction($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$getItemUseAction($this); -} -function nms_ItemStack_onPlayerStoppedUsing($this, $par1World, $par2EntityPlayer, $par3) { - var var$4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$4 = $thread.pop();$par3 = $thread.pop();$par2EntityPlayer = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Item_$callClinit(); - var$4 = nms_Item_itemsList.data[$this.$itemID0]; - $ptr = 1; - case 1: - var$4.$onPlayerStoppedUsing($this, $par1World, $par2EntityPlayer, $par3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2EntityPlayer, $par3, var$4, $ptr); -} -function nms_ItemStack_hasTagCompound($this) { - return $this.$stackTagCompound === null ? 0 : 1; -} -function nms_ItemStack_getTagCompound($this) { - return $this.$stackTagCompound; -} -function nms_ItemStack_getEnchantmentTagList($this) { - var var$1, var$2, var$3; - if ($this.$stackTagCompound === null) - var$1 = null; - else { - var$2 = $this.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1573)); - var$1 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1573), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$1 = var$1 === null ? null : var$1.$value0; - } - return var$1; -} -function nms_ItemStack_setTagCompound($this, $par1NBTTagCompound) { - $this.$stackTagCompound = $par1NBTTagCompound; -} -function nms_ItemStack_getDisplayName($this) { - var $var1, var$2, var$3, $var2, var$5; - nms_Item_$callClinit(); - $var1 = nms_Item_itemsList.data[$this.$itemID0].$getItemDisplayName($this); - if ($this.$stackTagCompound !== null) { - var$2 = $this.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(299)); - if (ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(299), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) { - var$2 = $this.$stackTagCompound; - $var2 = var$2.$tagMap; - var$3 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(299), var$3 & ($var2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) { - $var2 = new nms_NBTTagCompound; - $var2.$name0 = $rt_s(299); - $var2.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - var$2 = var$2.$tagMap; - var$3 = jl_String_hashCode($rt_s(299)); - var$2 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(299), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var2 = var$2 === null ? null : var$2.$value0; - } - var$5 = $var2.$tagMap; - var$3 = jl_String_hashCode($rt_s(1574)); - if (ju_HashMap_findNonNullKeyEntry(var$5, $rt_s(1574), var$3 & (var$5.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) { - var$2 = $var2.$tagMap; - var$3 = jl_String_hashCode($rt_s(1574)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1574), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var1 = $rt_s(44); - else { - var$2 = $var2.$tagMap; - var$3 = jl_String_hashCode($rt_s(1574)); - $var1 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1574), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var1 = ($var1 === null ? null : $var1.$value0).$data4; - } - } - } - } - return $var1; -} -function nms_ItemStack_setItemName($this, $par1Str) { - var var$2, var$3, var$4, var$5; - if ($this.$stackTagCompound === null) { - var$2 = new nms_NBTTagCompound; - var$2.$name0 = $rt_s(1572); - var$2.$tagMap = ju_HashMap__init_1(16, 0.75); - $this.$stackTagCompound = var$2; - } - var$3 = $this.$stackTagCompound.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry(var$3, $rt_s(299), var$4 & (var$3.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1)) { - var$2 = $this.$stackTagCompound; - var$5 = new nms_NBTTagCompound; - var$5.$name0 = $rt_s(44); - var$5.$tagMap = ju_HashMap__init_1(16, 0.75); - var$2 = var$2.$tagMap; - var$5.$name0 = $rt_s(299); - ju_HashMap_putImpl(var$2, $rt_s(299), var$5); - } - var$2 = $this.$stackTagCompound; - var$5 = var$2.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry(var$5, $rt_s(299), var$4 & (var$5.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1)) { - var$5 = new nms_NBTTagCompound; - var$5.$name0 = $rt_s(299); - var$5.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - var$2 = var$2.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - var$2 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(299), var$4 & (var$2.$elementData.data.length - 1 | 0), var$4); - var$5 = var$2 === null ? null : var$2.$value0; - } - var$5 = var$5.$tagMap; - var$3 = new nms_NBTTagString; - var$3.$name0 = $rt_s(1574); - var$3.$data4 = $par1Str; - if ($par1Str !== null) { - ju_HashMap_putImpl(var$5, $rt_s(1574), var$3); - return; - } - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(264); - $rt_throw(var$2); -} -function nms_ItemStack_hasDisplayName($this) { - var var$1, var$2, var$3, var$4, var$5; - if ($this.$stackTagCompound === null) - var$1 = 0; - else { - var$2 = $this.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(299), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$1 = 0; - else { - var$4 = $this.$stackTagCompound; - var$5 = var$4.$tagMap; - var$3 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry(var$5, $rt_s(299), var$3 & (var$5.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) { - var$4 = new nms_NBTTagCompound; - var$4.$name0 = $rt_s(299); - var$4.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - var$4 = var$4.$tagMap; - var$3 = jl_String_hashCode($rt_s(299)); - var$4 = ju_HashMap_findNonNullKeyEntry(var$4, $rt_s(299), var$3 & (var$4.$elementData.data.length - 1 | 0), var$3); - var$4 = var$4 === null ? null : var$4.$value0; - } - var$4 = var$4.$tagMap; - var$3 = jl_String_hashCode($rt_s(1574)); - var$1 = ju_HashMap_findNonNullKeyEntry(var$4, $rt_s(1574), var$3 & (var$4.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1; - } - } - return var$1; -} -function nms_ItemStack_getTooltip($this, $par1EntityPlayer, $par2) { - var $var3, $var4, $var5, $var12, $var11, $var6, var$9, var$10, $var10, $var7, $var8, $var9, $var13; - $var3 = new ju_ArrayList; - $var3.$array1 = $rt_createArray(jl_Object, 10); - nms_Item_$callClinit(); - $var4 = nms_Item_itemsList.data[$this.$itemID0]; - $var5 = nms_ItemStack_getDisplayName($this); - if (nms_ItemStack_hasDisplayName($this)) { - $var12 = new jl_StringBuilder; - $var12.$buffer = $rt_createCharArray(16); - $var11 = nms_EnumChatFormatting_ITALIC; - jl_AbstractStringBuilder_insert($var12, $var12.$length, $var11 === null ? $rt_s(47) : $var11.$field_96304_B); - jl_AbstractStringBuilder_insert($var12, $var12.$length, $var5); - $var11 = nms_EnumChatFormatting_RESET; - jl_AbstractStringBuilder_insert($var12, $var12.$length, $var11 === null ? $rt_s(47) : $var11.$field_96304_B); - $var5 = jl_String__init_0($var12.$buffer, 0, $var12.$length); - } - if ($par2) { - $var6 = $rt_s(44); - if ($var5.$characters.data.length > 0) { - $var12 = new jl_StringBuilder; - $var12.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var12, $var12.$length, $var5); - jl_AbstractStringBuilder_insert($var12, $var12.$length, $rt_s(940)); - $var5 = jl_AbstractStringBuilder_toString($var12); - $var6 = $rt_s(64); - } - if (!nms_Item_itemsList.data[$this.$itemID0].$hasSubtypes) { - $var12 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2($var12, 16); - $var12 = jl_StringBuilder_append0($var12, $var5); - var$9 = $rt_createArray(jl_Object, 2); - var$10 = var$9.data; - var$10[0] = jl_Integer_valueOf($this.$itemID0); - var$10[1] = $var6; - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0($var12, jl_String_format($rt_s(1575), var$9))); - } else { - $var12 = jl_StringBuilder_append0(jl_StringBuilder__init_(), $var5); - var$9 = $rt_createArray(jl_Object, 3); - var$10 = var$9.data; - var$10[0] = jl_Integer_valueOf($this.$itemID0); - var$10[1] = jl_Integer_valueOf($this.$itemDamage); - var$10[2] = $var6; - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0($var12, jl_String_format($rt_s(1576), var$9))); - } - } else if (!nms_ItemStack_hasDisplayName($this) && $this.$itemID0 == nms_Item_map.$itemID) - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var5), $rt_s(1577)), $this.$itemDamage)); - a: { - ju_ArrayList_add($var3, $var5); - $var4.$addInformation($this, $par1EntityPlayer, $var3, $par2); - if (nms_ItemStack_hasTagCompound($this)) { - b: { - $var10 = nms_ItemStack_getEnchantmentTagList($this); - if ($var10 !== null) { - $var7 = 0; - while (true) { - if ($var7 >= nms_NBTTagList_tagCount($var10)) - break b; - $var8 = nms_NBTTagCompound_getShort(nms_NBTTagList_tagAt($var10, $var7), $rt_s(1569)); - $var9 = nms_NBTTagCompound_getShort(nms_NBTTagList_tagAt($var10, $var7), $rt_s(1578)); - nms_Enchantment_$callClinit(); - if (nms_Enchantment_enchantmentsList.data[$var8] !== null) - ju_ArrayList_add($var3, nms_Enchantment_getTranslatedName(nms_Enchantment_enchantmentsList.data[$var8], $var9)); - $var7 = $var7 + 1 | 0; - } - } - } - if (nms_NBTTagCompound_hasKey($this.$stackTagCompound, $rt_s(299))) { - $var11 = nms_NBTTagCompound_getCompoundTag($this.$stackTagCompound, $rt_s(299)); - if (nms_NBTTagCompound_hasKey($var11, $rt_s(1579))) { - if (!$par2) - ju_ArrayList_add($var3, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder__init_(), nms_EnumChatFormatting_ITALIC), nms_StatCollector_translateToLocal($rt_s(1580))))); - else - ju_ArrayList_add($var3, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1581)), jl_String_toUpperCase(jl_Integer_toHexString(nms_NBTTagCompound_getInteger($var11, $rt_s(1579))))))); - } - if (nms_NBTTagCompound_hasKey($var11, $rt_s(1582))) { - $var12 = nms_NBTTagCompound_getTagList($var11, $rt_s(1582)); - if (nms_NBTTagList_tagCount($var12) > 0) { - $var13 = 0; - while (true) { - if ($var13 >= nms_NBTTagList_tagCount($var12)) - break a; - ju_ArrayList_add($var3, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder__init_(), nms_EnumChatFormatting_DARK_PURPLE), $rt_s(44)), nms_EnumChatFormatting_ITALIC), nms_NBTTagList_tagAt($var12, $var13).$data4))); - $var13 = $var13 + 1 | 0; - } - } - } - } - } - } - if ($par2 && nms_ItemStack_isItemDamaged($this)) - ju_ArrayList_add($var3, jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1583)), nms_ItemStack_getMaxDamage($this) - nms_ItemStack_getItemDamageForDisplay($this) | 0), $rt_s(1584)), nms_ItemStack_getMaxDamage($this)))); - return $var3; -} -function nms_ItemStack_hasEffect($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$hasEffect0($this); -} -function nms_ItemStack_getRarity($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$itemID0].$getRarity($this); -} -function nms_ItemStack_isItemEnchantable($this) { - nms_Item_$callClinit(); - return !nms_Item_itemsList.data[$this.$itemID0].$isItemTool($this) ? 0 : nms_ItemStack_isItemEnchanted($this) ? 0 : 1; -} -function nms_ItemStack_addEnchantment($this, $par1Enchantment, $par2) { - var $var3, $var4, var$5, var$6, var$7, var$8, var$9; - if ($this.$stackTagCompound === null) { - $var3 = new nms_NBTTagCompound; - $var3.$name0 = $rt_s(44); - $var3.$tagMap = ju_HashMap__init_1(16, 0.75); - $this.$stackTagCompound = $var3; - } - $var4 = $this.$stackTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1573)); - if (!(ju_HashMap_findNonNullKeyEntry($var4, $rt_s(1573), var$5 & ($var4.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) { - $var4 = $this.$stackTagCompound; - var$6 = new nms_NBTTagList; - var$6.$name0 = $rt_s(1573); - $var3 = new ju_ArrayList; - $var3.$array1 = $rt_createArray(jl_Object, 10); - var$6.$tagList = $var3; - $var3 = $var4.$tagMap; - var$6.$name0 = $rt_s(1573); - ju_HashMap_putImpl($var3, $rt_s(1573), var$6); - } - $var3 = $this.$stackTagCompound.$tagMap; - var$7 = jl_String_hashCode($rt_s(1573)); - $var3 = ju_HashMap_findNonNullKeyEntry($var3, $rt_s(1573), var$7 & ($var3.$elementData.data.length - 1 | 0), var$7); - $var3 = $var3 === null ? null : $var3.$value0; - $var4 = new nms_NBTTagCompound; - $var4.$name0 = $rt_s(44); - $var4.$tagMap = ju_HashMap__init_1(16, 0.75); - var$8 = $par1Enchantment.$effectId << 16 >> 16; - var$6 = $var4.$tagMap; - $par1Enchantment = new nms_NBTTagShort; - $par1Enchantment.$name0 = $rt_s(1569); - $par1Enchantment.$data1 = var$8; - ju_HashMap_putImpl(var$6, $rt_s(1569), $par1Enchantment); - $par2 = $par2 << 24 >> 24 << 16 >> 16; - var$6 = $var4.$tagMap; - var$9 = new nms_NBTTagShort; - var$9.$name0 = $rt_s(1578); - var$9.$data1 = $par2; - ju_HashMap_putImpl(var$6, $rt_s(1578), var$9); - $var3.$tagType = 10; - ju_ArrayList_add($var3.$tagList, $var4); -} -function nms_ItemStack_isItemEnchanted($this) { - var var$1, var$2, var$3; - a: { - if ($this.$stackTagCompound !== null) { - var$1 = $this.$stackTagCompound.$tagMap; - var$2 = jl_String_hashCode($rt_s(1573)); - if (ju_HashMap_findNonNullKeyEntry(var$1, $rt_s(1573), var$2 & (var$1.$elementData.data.length - 1 | 0), var$2) === null ? 0 : 1) { - var$3 = 1; - break a; - } - } - var$3 = 0; - } - return var$3; -} -function nms_ItemStack_setTagInfo($this, $par1Str, $par2NBTBase) { - var var$3; - if ($this.$stackTagCompound === null) { - var$3 = new nms_NBTTagCompound; - var$3.$name0 = $rt_s(44); - var$3.$tagMap = ju_HashMap__init_1(16, 0.75); - $this.$stackTagCompound = var$3; - } - var$3 = $this.$stackTagCompound.$tagMap; - if ($par1Str !== null) - $par2NBTBase.$name0 = $par1Str; - else - $par2NBTBase.$name0 = $rt_s(44); - ju_HashMap_putImpl(var$3, $par1Str, $par2NBTBase); -} -function nms_ItemStack_func_82835_x($this) { - nms_Item_$callClinit(); - return 1; -} -function nms_ItemStack_isOnItemFrame($this) { - return $this.$itemFrame === null ? 0 : 1; -} -function nms_ItemStack_setItemFrame($this, $par1EntityItemFrame) { - $this.$itemFrame = $par1EntityItemFrame; -} -function nms_ItemStack_getItemFrame($this) { - return $this.$itemFrame; -} -function nms_ItemStack_getRepairCost($this) { - var var$1, var$2, var$3, var$4, var$5; - var$1 = $this.$stackTagCompound === null ? 0 : 1; - a: { - if (var$1) { - var$2 = $this.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1585)); - if (ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1585), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) { - var$4 = $this.$stackTagCompound; - var$5 = var$4.$tagMap; - var$3 = jl_String_hashCode($rt_s(1585)); - if (!(ju_HashMap_findNonNullKeyEntry(var$5, $rt_s(1585), var$3 & (var$5.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$1 = 0; - else { - var$4 = var$4.$tagMap; - var$3 = jl_String_hashCode($rt_s(1585)); - var$4 = ju_HashMap_findNonNullKeyEntry(var$4, $rt_s(1585), var$3 & (var$4.$elementData.data.length - 1 | 0), var$3); - var$1 = (var$4 === null ? null : var$4.$value0).$data2; - } - break a; - } - } - var$1 = 0; - } - return var$1; -} -function nms_ItemStack_setRepairCost($this, $par1) { - var var$2, var$3; - if (!($this.$stackTagCompound === null ? 0 : 1)) { - var$2 = new nms_NBTTagCompound; - var$2.$name0 = $rt_s(1572); - var$2.$tagMap = ju_HashMap__init_1(16, 0.75); - $this.$stackTagCompound = var$2; - } - var$3 = $this.$stackTagCompound.$tagMap; - var$2 = new nms_NBTTagInt; - var$2.$name0 = $rt_s(1585); - var$2.$data2 = $par1; - ju_HashMap_putImpl(var$3, $rt_s(1585), var$2); -} -function nms_PlayerCapabilities() { - var a = this; jl_Object.call(a); - a.$disableDamage = 0; - a.$isFlying = 0; - a.$allowFlying = 0; - a.$isCreativeMode = 0; - a.$allowEdit = 0; - a.$flySpeed = 0.0; - a.$walkSpeed = 0.0; -} -function nms_PlayerCapabilities__init_0() { - var var_0 = new nms_PlayerCapabilities(); - nms_PlayerCapabilities__init_(var_0); - return var_0; -} -function nms_PlayerCapabilities__init_($this) { - $this.$disableDamage = 0; - $this.$isFlying = 0; - $this.$allowFlying = 0; - $this.$isCreativeMode = 0; - $this.$allowEdit = 1; - $this.$flySpeed = 0.05000000074505806; - $this.$walkSpeed = 0.10000000149011612; -} -function nms_PlayerCapabilities_getFlySpeed($this) { - return $this.$flySpeed; -} -function nms_PlayerCapabilities_setFlySpeed($this, $par1) { - $this.$flySpeed = $par1; -} -function nms_PlayerCapabilities_getWalkSpeed($this) { - return $this.$walkSpeed; -} -function nms_PlayerCapabilities_setPlayerWalkSpeed($this, $par1) { - $this.$walkSpeed = $par1; -} -function nms_Block() { - var a = this; jl_Object.call(a); - a.$displayOnCreativeTab = null; - a.$blockID = 0; - a.$blockHardness = 0.0; - a.$blockResistance = 0.0; - a.$blockConstructorCalled = 0; - a.$enableStats = 0; - a.$needsRandomTick = 0; - a.$isBlockContainer = 0; - a.$minX0 = 0.0; - a.$minY0 = 0.0; - a.$minZ0 = 0.0; - a.$maxX0 = 0.0; - a.$maxY0 = 0.0; - a.$maxZ0 = 0.0; - a.$stepSound = null; - a.$blockParticleGravity = 0.0; - a.$blockMaterial = null; - a.$slipperiness = 0.0; - a.$unlocalizedName0 = null; - a.$blockIcon = null; -} -var nms_Block_soundPowderFootstep = null; -var nms_Block_soundWoodFootstep = null; -var nms_Block_soundGravelFootstep = null; -var nms_Block_soundGrassFootstep = null; -var nms_Block_soundStoneFootstep = null; -var nms_Block_soundMetalFootstep = null; -var nms_Block_soundGlassFootstep = null; -var nms_Block_soundClothFootstep = null; -var nms_Block_soundSandFootstep = null; -var nms_Block_soundSnowFootstep = null; -var nms_Block_soundLadderFootstep = null; -var nms_Block_soundAnvilFootstep = null; -var nms_Block_grassNoise = null; -var nms_Block_grassNoiseArray = null; -var nms_Block_noiseChunkX = 0; -var nms_Block_noiseChunkZ = 0; -var nms_Block_blocksList = null; -var nms_Block_opaqueCubeLookup = null; -var nms_Block_lightOpacity = null; -var nms_Block_canBlockGrass = null; -var nms_Block_lightValue = null; -var nms_Block_useNeighborBrightness = null; -var nms_Block_stone = null; -var nms_Block_grass = null; -var nms_Block_dirt = null; -var nms_Block_cobblestone = null; -var nms_Block_planks = null; -var nms_Block_sapling = null; -var nms_Block_bedrock = null; -var nms_Block_waterMoving = null; -var nms_Block_waterStill = null; -var nms_Block_lavaMoving = null; -var nms_Block_lavaStill = null; -var nms_Block_sand = null; -var nms_Block_gravel = null; -var nms_Block_oreGold = null; -var nms_Block_oreIron = null; -var nms_Block_oreCoal = null; -var nms_Block_wood = null; -var nms_Block_leaves = null; -var nms_Block_sponge = null; -var nms_Block_glass = null; -var nms_Block_oreLapis = null; -var nms_Block_blockLapis = null; -var nms_Block_dispenser = null; -var nms_Block_sandStone = null; -var nms_Block_music = null; -var nms_Block_bed = null; -var nms_Block_railPowered = null; -var nms_Block_railDetector = null; -var nms_Block_pistonStickyBase = null; -var nms_Block_web = null; -var nms_Block_tallGrass = null; -var nms_Block_deadBush = null; -var nms_Block_pistonBase = null; -var nms_Block_pistonExtension = null; -var nms_Block_cloth = null; -var nms_Block_pistonMoving = null; -var nms_Block_plantYellow = null; -var nms_Block_plantRed = null; -var nms_Block_mushroomBrown = null; -var nms_Block_mushroomRed = null; -var nms_Block_blockGold = null; -var nms_Block_blockIron = null; -var nms_Block_stoneDoubleSlab = null; -var nms_Block_stoneSingleSlab = null; -var nms_Block_brick = null; -var nms_Block_tnt = null; -var nms_Block_bookShelf = null; -var nms_Block_cobblestoneMossy = null; -var nms_Block_obsidian = null; -var nms_Block_torchWood = null; -var nms_Block_fire = null; -var nms_Block_mobSpawner = null; -var nms_Block_stairsWoodOak = null; -var nms_Block_chest = null; -var nms_Block_redstoneWire = null; -var nms_Block_oreDiamond = null; -var nms_Block_blockDiamond = null; -var nms_Block_workbench = null; -var nms_Block_crops = null; -var nms_Block_tilledField = null; -var nms_Block_furnaceIdle = null; -var nms_Block_furnaceBurning = null; -var nms_Block_signPost = null; -var nms_Block_doorWood = null; -var nms_Block_ladder = null; -var nms_Block_rail = null; -var nms_Block_stairsCobblestone = null; -var nms_Block_signWall = null; -var nms_Block_lever = null; -var nms_Block_pressurePlateStone = null; -var nms_Block_doorIron = null; -var nms_Block_pressurePlatePlanks = null; -var nms_Block_oreRedstone = null; -var nms_Block_oreRedstoneGlowing = null; -var nms_Block_torchRedstoneIdle = null; -var nms_Block_torchRedstoneActive = null; -var nms_Block_stoneButton = null; -var nms_Block_snow = null; -var nms_Block_ice = null; -var nms_Block_blockSnow = null; -var nms_Block_cactus = null; -var nms_Block_blockClay = null; -var nms_Block_reed = null; -var nms_Block_jukebox = null; -var nms_Block_fence = null; -var nms_Block_pumpkin = null; -var nms_Block_netherrack = null; -var nms_Block_slowSand = null; -var nms_Block_glowStone = null; -var nms_Block_portal = null; -var nms_Block_pumpkinLantern = null; -var nms_Block_cake = null; -var nms_Block_redstoneRepeaterIdle = null; -var nms_Block_redstoneRepeaterActive = null; -var nms_Block_lockedChest = null; -var nms_Block_trapdoor = null; -var nms_Block_silverfish = null; -var nms_Block_stoneBrick = null; -var nms_Block_mushroomCapBrown = null; -var nms_Block_mushroomCapRed = null; -var nms_Block_fenceIron = null; -var nms_Block_thinGlass = null; -var nms_Block_melon = null; -var nms_Block_pumpkinStem = null; -var nms_Block_melonStem = null; -var nms_Block_vine = null; -var nms_Block_fenceGate = null; -var nms_Block_stairsBrick = null; -var nms_Block_stairsStoneBrick = null; -var nms_Block_mycelium = null; -var nms_Block_waterlily = null; -var nms_Block_netherBrick = null; -var nms_Block_netherFence = null; -var nms_Block_stairsNetherBrick = null; -var nms_Block_netherStalk = null; -var nms_Block_enchantmentTable = null; -var nms_Block_brewingStand = null; -var nms_Block_cauldron = null; -var nms_Block_endPortal = null; -var nms_Block_endPortalFrame = null; -var nms_Block_whiteStone = null; -var nms_Block_dragonEgg = null; -var nms_Block_redstoneLampIdle = null; -var nms_Block_redstoneLampActive = null; -var nms_Block_woodDoubleSlab = null; -var nms_Block_woodSingleSlab = null; -var nms_Block_cocoaPlant = null; -var nms_Block_stairsSandStone = null; -var nms_Block_oreEmerald = null; -var nms_Block_enderChest = null; -var nms_Block_tripWireSource = null; -var nms_Block_tripWire = null; -var nms_Block_blockEmerald = null; -var nms_Block_stairsWoodSpruce = null; -var nms_Block_stairsWoodBirch = null; -var nms_Block_stairsWoodJungle = null; -var nms_Block_commandBlock = null; -var nms_Block_beacon = null; -var nms_Block_cobblestoneWall = null; -var nms_Block_flowerPot = null; -var nms_Block_carrot = null; -var nms_Block_potato = null; -var nms_Block_woodenButton = null; -var nms_Block_skull = null; -var nms_Block_anvil = null; -var nms_Block_chestTrapped = null; -var nms_Block_pressurePlateGold = null; -var nms_Block_pressurePlateIron = null; -var nms_Block_redstoneComparatorIdle = null; -var nms_Block_redstoneComparatorActive = null; -var nms_Block_daylightSensor = null; -var nms_Block_blockRedstone = null; -var nms_Block_oreNetherQuartz = null; -var nms_Block_hopperBlock = null; -var nms_Block_blockNetherQuartz = null; -var nms_Block_stairsNetherQuartz = null; -var nms_Block_railActivator = null; -var nms_Block_dropper = null; -function nms_Block_$callClinit() { - nms_Block_$callClinit = $rt_eraseClinit(nms_Block); - nms_Block__clinit_(); -} -function nms_Block__init_(var_0, var_1) { - var var_2 = new nms_Block(); - nms_Block__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_Block_initNoiseField0($cx, $cz) { - var $i; - nms_Block_$callClinit(); - $i = 0; - while ($i < nms_Block_grassNoiseArray.data.length) { - nms_Block_grassNoiseArray.data[$i] = 0.0; - $i = $i + 1 | 0; - } - nms_NoiseGeneratorPerlin_populateNoiseArray(nms_Block_grassNoise, nms_Block_grassNoiseArray, $cx * 16.0 * 0.05, 0.8, $cz * 16.0 * 0.05, 16, 1, 16, 0.05, 1.0, 0.05, 1.0); -} -function nms_Block__init_0($this, $par1, $par2Material) { - var var$3, var$4, var$5, var$6, var$7, var$8; - nms_Block_$callClinit(); - $this.$blockConstructorCalled = 1; - $this.$enableStats = 1; - $this.$stepSound = nms_Block_soundPowderFootstep; - $this.$blockParticleGravity = 1.0; - $this.$slipperiness = 0.6000000238418579; - if (nms_Block_blocksList.data[$par1] === null) { - $this.$blockMaterial = $par2Material; - nms_Block_blocksList.data[$par1] = $this; - $this.$blockID = $par1; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - nms_Block_opaqueCubeLookup.data[$par1] = $this.$isOpaqueCube(); - var$3 = nms_Block_lightOpacity; - var$3.data[$par1] = !$this.$isOpaqueCube() ? 0 : 255; - var$3 = nms_Block_canBlockGrass; - var$3.data[$par1] = $par2Material.$getCanBlockGrass() ? 0 : 1; - return; - } - $par2Material = new jl_IllegalArgumentException; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1586)); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $par1, 10); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1587)); - var$5 = nms_Block_blocksList.data[$par1]; - $par1 = var$4.$length; - if (var$5 === null) - var$6 = $rt_s(47); - else { - var$7 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$7, 16); - var$8 = jl_Class_getClass(var$5.constructor); - if (var$8.$name === null) - var$8.$name = $rt_str(var$8.$platformClass.$meta.name); - var$6 = var$8.$name; - jl_StringBuilder_insert14(var$7, var$7.$length, var$6); - jl_StringBuilder_insert14(var$7, var$7.$length, $rt_s(1)); - var$6 = otci_IntegerUtil_toUnsignedLogRadixString(jl_Object_identity(var$5), 4); - jl_StringBuilder_insert14(var$7, var$7.$length, var$6); - var$6 = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - } - jl_AbstractStringBuilder_insert(var$4, $par1, var$6); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1588)); - $par1 = var$4.$length; - var$6 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$6, 16); - var$8 = jl_Class_getClass($this.constructor); - if (var$8.$name === null) - var$8.$name = $rt_str(var$8.$platformClass.$meta.name); - var$7 = var$8.$name; - jl_StringBuilder_insert14(var$6, var$6.$length, var$7); - jl_StringBuilder_insert14(var$6, var$6.$length, $rt_s(1)); - var$7 = otci_IntegerUtil_toUnsignedLogRadixString(jl_Object_identity($this), 4); - jl_StringBuilder_insert14(var$6, var$6.$length, var$7); - jl_AbstractStringBuilder_insert(var$4, $par1, jl_String__init_0(var$6.$buffer, 0, var$6.$length)); - var$6 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - $par2Material.$suppressionEnabled = 1; - $par2Material.$writableStackTrace = 1; - $par2Material.$message = var$6; - $rt_throw($par2Material); -} -function nms_Block_initializeBlock($this) { - return; -} -function nms_Block_setStepSound($this, $par1StepSound) { - $this.$stepSound = $par1StepSound; - return $this; -} -function nms_Block_setLightOpacity($this, $par1) { - nms_Block_lightOpacity.data[$this.$blockID] = $par1; - return $this; -} -function nms_Block_setLightValue($this, $par1) { - nms_Block_lightValue.data[$this.$blockID] = 15.0 * $par1 | 0; - return $this; -} -function nms_Block_setResistance($this, $par1) { - $this.$blockResistance = $par1 * 3.0; - return $this; -} -function nms_Block_isNormalCube($par0) { - var $var1, var$3; - nms_Block_$callClinit(); - $var1 = nms_Block_blocksList.data[$par0]; - if ($var1 === null) - $par0 = 0; - else { - var$3 = $var1.$blockMaterial; - $par0 = !var$3.$isTranslucent ? var$3.$blocksMovement() : 0; - $par0 = $par0 && $var1.$renderAsNormalBlock() && !$var1.$canProvidePower() ? 1 : 0; - } - return $par0; -} -function nms_Block_renderAsNormalBlock($this) { - return 1; -} -function nms_Block_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - return $this.$blockMaterial.$blocksMovement() ? 0 : 1; -} -function nms_Block_getRenderType($this) { - return 0; -} -function nms_Block_setHardness($this, $par1) { - var var$2; - $this.$blockHardness = $par1; - var$2 = $this.$blockResistance; - $par1 = $par1 * 5.0; - if (var$2 < $par1) - $this.$blockResistance = $par1; - return $this; -} -function nms_Block_setBlockUnbreakable($this) { - $this.$blockHardness = (-1.0); - if ($this.$blockResistance < (-5.0)) - $this.$blockResistance = (-5.0); - return $this; -} -function nms_Block_getBlockHardness($this, $par1World, $par2, $par3, $par4) { - return $this.$blockHardness; -} -function nms_Block_setTickRandomly($this, $par1) { - $this.$needsRandomTick = $par1; - return $this; -} -function nms_Block_getTickRandomly($this) { - return $this.$needsRandomTick; -} -function nms_Block_hasTileEntity($this) { - return $this.$isBlockContainer; -} -function nms_Block_setBlockBounds($this, $par1, $par2, $par3, $par4, $par5, $par6) { - $this.$minX0 = $par1; - $this.$minY0 = $par2; - $this.$minZ0 = $par3; - $this.$maxX0 = $par4; - $this.$maxY0 = $par5; - $this.$maxZ0 = $par6; -} -function nms_Block_getBlockBrightness($this, $par1IBlockAccess, $par2, $par3, $par4) { - return $par1IBlockAccess.$getBrightness0($par2, $par3, $par4, nms_Block_lightValue.data[$par1IBlockAccess.$getBlockId($par2, $par3, $par4)]); -} -function nms_Block_getMixedBrightnessForBlock($this, $par1IBlockAccess, $par2, $par3, $par4) { - return $par1IBlockAccess.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, nms_Block_lightValue.data[$par1IBlockAccess.$getBlockId($par2, $par3, $par4)]); -} -function nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return !$par5 && $this.$minY0 > 0.0 ? 1 : $par5 == 1 && $this.$maxY0 < 1.0 ? 1 : $par5 == 2 && $this.$minZ0 > 0.0 ? 1 : $par5 == 3 && $this.$maxZ0 < 1.0 ? 1 : $par5 == 4 && $this.$minX0 > 0.0 ? 1 : $par5 == 5 && $this.$maxX0 < 1.0 ? 1 : $par1IBlockAccess.$isBlockOpaqueCube($par2, $par3, $par4) ? 0 : 1; -} -function nms_Block_getBlockTexture($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $this.$getIcon($par5, $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4)); -} -function nms_Block_getIcon($this, $par1, $par2) { - return $this.$blockIcon; -} -function nms_Block_getBlockTextureFromSide($this, $par1) { - return $this.$getIcon($par1, 0); -} -function nms_Block_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, var$8, var$9, var$10, var$11; - $par1World = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1World.$initialized) { - var$5 = new nms_AABBPool; - var$6 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$6); - var$6.$array1 = $rt_createArray(jl_Object, 10); - var$5.$listAABB = var$6; - var$5.$nextPoolIndex = 0; - var$5.$maxPoolIndex = 0; - var$5.$numCleans = 0; - var$5.$maxNumCleans = 300; - var$5.$numEntriesToRemove = 2000; - $par1World.$value7 = var$5; - $par1World.$initialized = 1; - } - $par1World = $par1World.$value7; - var$7 = $par2; - var$8 = var$7 + $this.$minX0; - var$9 = $par3; - var$10 = var$9 + $this.$minY0; - var$11 = $par4; - return nms_AABBPool_getAABB($par1World, var$8, var$10, var$11 + $this.$minZ0, var$7 + $this.$maxX0, var$9 + $this.$maxY0, var$11 + $this.$maxZ0); -} -function nms_Block_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - var $var8; - $var8 = $this.$getCollisionBoundingBoxFromPool($par1World, $par2, $par3, $par4); - if ($var8 !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $var8)) - ju_ArrayList_add($par6List, $var8); -} -function nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, var$8, var$9, var$10, var$11; - $par1World = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1World.$initialized) { - var$5 = new nms_AABBPool; - var$6 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$6); - var$6.$array1 = $rt_createArray(jl_Object, 10); - var$5.$listAABB = var$6; - var$5.$nextPoolIndex = 0; - var$5.$maxPoolIndex = 0; - var$5.$numCleans = 0; - var$5.$maxNumCleans = 300; - var$5.$numEntriesToRemove = 2000; - $par1World.$value7 = var$5; - $par1World.$initialized = 1; - } - $par1World = $par1World.$value7; - var$7 = $par2; - var$8 = var$7 + $this.$minX0; - var$9 = $par3; - var$10 = var$9 + $this.$minY0; - var$11 = $par4; - return nms_AABBPool_getAABB($par1World, var$8, var$10, var$11 + $this.$minZ0, var$7 + $this.$maxX0, var$9 + $this.$maxY0, var$11 + $this.$maxZ0); -} -function nms_Block_isOpaqueCube($this) { - return 1; -} -function nms_Block_canCollideCheck($this, $par1, $par2) { - return $this.$isCollidable(); -} -function nms_Block_isCollidable($this) { - return 1; -} -function nms_Block_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - return; -} -function nms_Block_onBlockDestroyedByPlayer($this, $par1World, $par2, $par3, $par4, $par5) { - return; -} -function nms_Block_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - return; -} -function nms_Block_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - return; -} -function nms_Block_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - return; -} -function nms_Block_quantityDropped($this, $par1Random) { - return 1; -} -function nms_Block_idDropped($this, $par1, $par2Random, $par3) { - return $this.$blockID; -} -function nms_Block_getPlayerRelativeBlockHardness($this, $par1EntityPlayer, $par2World, $par3, $par4, $par5) { - var $var6, var$7, var$8; - $var6 = $this.$blockHardness; - if ($var6 < 0.0) - var$7 = 0.0; - else { - $par2World = $par1EntityPlayer.$inventory; - if ($this.$blockMaterial.$requiresNoTool) - $par3 = 1; - else { - $par3 = $par2World.$currentItem; - var$8 = $par2World.$mainInventory; - $par4 = var$8.data.length; - if ($par3 >= $par4) { - $par3 = $par3 - $par4 | 0; - var$8 = $par2World.$armorInventory; - } - $par2World = var$8.data[$par3]; - if ($par2World === null) - $par3 = 0; - else { - nms_Item_$callClinit(); - $par3 = nms_Item_itemsList.data[$par2World.$itemID0].$canHarvestBlock($this); - } - } - var$7 = $par3 ? nms_EntityPlayer_getCurrentPlayerStrVsBlock($par1EntityPlayer, $this, 1) / $var6 / 30.0 : nms_EntityPlayer_getCurrentPlayerStrVsBlock($par1EntityPlayer, $this, 0) / $var6 / 100.0; - } - return var$7; -} -function nms_Block_dropBlockAsItem($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - $this.$dropBlockAsItemWithChance($par1World, $par2, $par3, $par4, $par5, 1.0, $par6); -} -function nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var10, var$11, var$12; - a: { - if (!$par1World.$isRemote) { - $var8 = $this.$quantityDroppedWithBonus($par7, $par1World.$rand); - $var9 = 0; - while (true) { - if ($var9 >= $var8) - break a; - if (Math.random() <= $par6) { - $var10 = $this.$idDropped($par5, $par1World.$rand, $par7); - if ($var10 > 0) { - var$11 = new nms_ItemStack; - var$12 = $this.$damageDropped($par5); - var$11.$stackSize = 0; - var$11.$itemFrame = null; - var$11.$itemID0 = $var10; - var$11.$stackSize = 1; - var$11.$itemDamage = var$12; - if (var$11.$itemDamage < 0) - var$11.$itemDamage = 0; - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, var$11); - } - } - $var9 = $var9 + 1 | 0; - } - } - } -} -function nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, $par5ItemStack) { - var $var13; - if (!$par1World.$isRemote && nms_GameRules_getGameRuleBooleanValue($par1World.$worldInfo.$theGameRules, $rt_s(1589))) { - $var13 = nms_EntityItem__init_0($par1World, $par2 + Math.random() * 0.699999988079071 + 0.15000000596046448, $par3 + Math.random() * 0.699999988079071 + 0.15000000596046448, $par4 + Math.random() * 0.699999988079071 + 0.15000000596046448); - nms_DataWatcher_updateObject($var13.$dataWatcher, 10, $par5ItemStack); - nms_DataWatcher_setObjectWatched($var13.$dataWatcher, 10); - $var13.$delayBeforeCanPickup = 10; - $par2 = nms_World_spawnEntityInWorld($par1World, $var13); - $par5ItemStack = $par1World.$entityList; - ju_HashMap_putImpl($par5ItemStack.$backingMap, $var13, $par5ItemStack); - if (!$par2) { - $par1World = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl($par1World.$backingMap, $var13, $par1World); - } - } -} -function nms_Block_dropXpOnBlockBreak($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, var$8, $var6, var$10, var$11; - a: { - if (!$par1World.$isRemote) { - var$6 = $par2 + 0.5; - var$7 = $par3 + 0.5; - var$8 = $par4 + 0.5; - while (true) { - if ($par5 <= 0) - break a; - $var6 = nms_EntityXPOrb_getXPSplit($par5); - $par5 = $par5 - $var6 | 0; - var$10 = nms_EntityXPOrb__init_0($par1World, var$6, var$7, var$8, $var6); - $par2 = nms_World_spawnEntityInWorld($par1World, var$10); - var$11 = $par1World.$entityList; - ju_HashMap_putImpl(var$11.$backingMap, var$10, var$11); - if (!$par2) { - var$11 = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl(var$11.$backingMap, var$10, var$11); - } - } - } - } -} -function nms_Block_damageDropped($this, $par1) { - return 0; -} -function nms_Block_getExplosionResistance($this, $par1Entity) { - return $this.$blockResistance / 5.0; -} -function nms_Block_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3) { - var var$7, var$8, var$9, $var7, $var8, $var9, $var10, $var11, $var12, $var13, var$17, var$18, var$19, $var14; - $this.$setBlockBoundsBasedOnState($par1World, $par2, $par3, $par4); - var$7 = -$par2; - var$8 = -$par3; - var$9 = -$par4; - $par5Vec3 = nms_Vec3Pool_getVecFromPool($par5Vec3.$myVec3LocalPool, $par5Vec3.$xCoord + var$7, $par5Vec3.$yCoord + var$8, $par5Vec3.$zCoord + var$9); - $par1World = nms_Vec3Pool_getVecFromPool($par6Vec3.$myVec3LocalPool, $par6Vec3.$xCoord + var$7, $par6Vec3.$yCoord + var$8, $par6Vec3.$zCoord + var$9); - $var7 = nms_Vec3_getIntermediateWithXValue($par5Vec3, $par1World, $this.$minX0); - $var8 = nms_Vec3_getIntermediateWithXValue($par5Vec3, $par1World, $this.$maxX0); - $var9 = nms_Vec3_getIntermediateWithYValue($par5Vec3, $par1World, $this.$minY0); - $var10 = nms_Vec3_getIntermediateWithYValue($par5Vec3, $par1World, $this.$maxY0); - $var11 = nms_Vec3_getIntermediateWithZValue($par5Vec3, $par1World, $this.$minZ0); - $var12 = nms_Vec3_getIntermediateWithZValue($par5Vec3, $par1World, $this.$maxZ0); - if (!nms_Block_isVecInsideYZBounds($this, $var7)) - $var7 = null; - if (!nms_Block_isVecInsideYZBounds($this, $var8)) - $var8 = null; - if (!nms_Block_isVecInsideXZBounds($this, $var9)) - $var9 = null; - if (!nms_Block_isVecInsideXZBounds($this, $var10)) - $var10 = null; - if (!nms_Block_isVecInsideXYBounds($this, $var11)) - $var11 = null; - if (!nms_Block_isVecInsideXYBounds($this, $var12)) - $var12 = null; - $var13 = null; - if ($var7 !== null) - $var13 = $var7; - a: { - if ($var8 !== null) { - if ($var13 !== null) { - var$17 = $var8.$xCoord - $par5Vec3.$xCoord; - var$18 = $var8.$yCoord - $par5Vec3.$yCoord; - var$8 = $var8.$zCoord - $par5Vec3.$zCoord; - var$9 = var$17 * var$17 + var$18 * var$18 + var$8 * var$8; - var$8 = $var13.$xCoord - $par5Vec3.$xCoord; - var$19 = $var13.$yCoord - $par5Vec3.$yCoord; - var$17 = $var13.$zCoord - $par5Vec3.$zCoord; - if (var$9 >= var$8 * var$8 + var$19 * var$19 + var$17 * var$17) - break a; - } - $var13 = $var8; - } - } - b: { - if ($var9 !== null) { - if ($var13 !== null) { - var$17 = $var9.$xCoord - $par5Vec3.$xCoord; - var$18 = $var9.$yCoord - $par5Vec3.$yCoord; - var$8 = $var9.$zCoord - $par5Vec3.$zCoord; - var$19 = var$17 * var$17 + var$18 * var$18 + var$8 * var$8; - var$17 = $var13.$xCoord - $par5Vec3.$xCoord; - var$18 = $var13.$yCoord - $par5Vec3.$yCoord; - var$8 = $var13.$zCoord - $par5Vec3.$zCoord; - if (var$19 >= var$17 * var$17 + var$18 * var$18 + var$8 * var$8) - break b; - } - $var13 = $var9; - } - } - c: { - if ($var10 !== null) { - if ($var13 !== null) { - var$17 = $var10.$xCoord - $par5Vec3.$xCoord; - var$18 = $var10.$yCoord - $par5Vec3.$yCoord; - var$8 = $var10.$zCoord - $par5Vec3.$zCoord; - var$19 = var$17 * var$17 + var$18 * var$18 + var$8 * var$8; - var$17 = $var13.$xCoord - $par5Vec3.$xCoord; - var$18 = $var13.$yCoord - $par5Vec3.$yCoord; - var$8 = $var13.$zCoord - $par5Vec3.$zCoord; - if (var$19 >= var$17 * var$17 + var$18 * var$18 + var$8 * var$8) - break c; - } - $var13 = $var10; - } - } - if ($var11 !== null && !($var13 !== null && nms_Vec3_squareDistanceTo($par5Vec3, $var11) >= nms_Vec3_squareDistanceTo($par5Vec3, $var13))) - $var13 = $var11; - if ($var12 !== null && !($var13 !== null && nms_Vec3_squareDistanceTo($par5Vec3, $var12) >= nms_Vec3_squareDistanceTo($par5Vec3, $var13))) - $var13 = $var12; - if ($var13 === null) - return null; - $var14 = (-1); - if ($var13 === $var7) - $var14 = 4; - if ($var13 === $var8) - $var14 = 5; - if ($var13 === $var9) - $var14 = 0; - if ($var13 === $var10) - $var14 = 1; - if ($var13 === $var11) - $var14 = 2; - if ($var13 === $var12) - $var14 = 3; - $par1World = new nms_MovingObjectPosition; - var$17 = $par2; - var$18 = $par3; - var$8 = $par4; - nms_MovingObjectPosition__init_1($par1World, $par2, $par3, $par4, $var14, nms_Vec3Pool_getVecFromPool($var13.$myVec3LocalPool, $var13.$xCoord + var$17, $var13.$yCoord + var$18, $var13.$zCoord + var$8)); - return $par1World; -} -function nms_Block_isVecInsideYZBounds($this, $par1Vec3) { - return $par1Vec3 === null ? 0 : $par1Vec3.$yCoord >= $this.$minY0 && $par1Vec3.$yCoord <= $this.$maxY0 && $par1Vec3.$zCoord >= $this.$minZ0 && $par1Vec3.$zCoord <= $this.$maxZ0 ? 1 : 0; -} -function nms_Block_isVecInsideXZBounds($this, $par1Vec3) { - return $par1Vec3 === null ? 0 : $par1Vec3.$xCoord >= $this.$minX0 && $par1Vec3.$xCoord <= $this.$maxX0 && $par1Vec3.$zCoord >= $this.$minZ0 && $par1Vec3.$zCoord <= $this.$maxZ0 ? 1 : 0; -} -function nms_Block_isVecInsideXYBounds($this, $par1Vec3) { - return $par1Vec3 === null ? 0 : $par1Vec3.$xCoord >= $this.$minX0 && $par1Vec3.$xCoord <= $this.$maxX0 && $par1Vec3.$yCoord >= $this.$minY0 && $par1Vec3.$yCoord <= $this.$maxY0 ? 1 : 0; -} -function nms_Block_onBlockDestroyedByExplosion($this, $par1World, $par2, $par3, $par4, $par5Explosion) { - return; -} -function nms_Block_getRenderBlockPass($this) { - return 0; -} -function nms_Block_canPlaceBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5, $par6ItemStack) { - return $this.$canPlaceBlockOnSide($par1World, $par2, $par3, $par4, $par5); -} -function nms_Block_canPlaceBlockOnSide0($this, $par1World, $par2, $par3, $par4, $par5) { - return $this.$canPlaceBlockAt($par1World, $par2, $par3, $par4); -} -function nms_Block_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var $var5; - $var5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - return $var5 && !nms_Block_blocksList.data[$var5].$blockMaterial.$replaceable ? 0 : 1; -} -function nms_Block_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - return 0; -} -function nms_Block_onEntityWalking($this, $par1World, $par2, $par3, $par4, $par5Entity) { - return; -} -function nms_Block_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - return $par9; -} -function nms_Block_onBlockClicked($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - return; -} -function nms_Block_velocityToAddToEntity($this, $par1World, $par2, $par3, $par4, $par5Entity, $par6Vec3) { - return; -} -function nms_Block_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - return; -} -function nms_Block_getBlockBoundsMinX($this) { - return $this.$minX0; -} -function nms_Block_getBlockBoundsMaxX($this) { - return $this.$maxX0; -} -function nms_Block_getBlockBoundsMinY($this) { - return $this.$minY0; -} -function nms_Block_getBlockBoundsMaxY($this) { - return $this.$maxY0; -} -function nms_Block_getBlockBoundsMinZ($this) { - return $this.$minZ0; -} -function nms_Block_getBlockBoundsMaxZ($this) { - return $this.$maxZ0; -} -function nms_Block_getBlockColor($this) { - return 16777215; -} -function nms_Block_getRenderColor($this, $par1) { - return 16777215; -} -function nms_Block_colorMultiplier($this, $par1IBlockAccess, $par2, $par3, $par4) { - return 16777215; -} -function nms_Block_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 0; -} -function nms_Block_canProvidePower($this) { - return 0; -} -function nms_Block_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - return; -} -function nms_Block_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 0; -} -function nms_Block_setBlockBoundsForItemRender($this) { - return; -} -function nms_Block_quantityDroppedWithBonus($this, $par1, $par2Random) { - return $this.$quantityDropped($par2Random); -} -function nms_Block_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - return; -} -function nms_Block_onPostBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5) { - return; -} -function nms_Block_setUnlocalizedName($this, $par1Str) { - $this.$unlocalizedName0 = $par1Str; - return $this; -} -function nms_Block_getUnlocalizedName($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(1590)); - var$2 = $this.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_Block_getUnlocalizedName2($this) { - return $this.$unlocalizedName0; -} -function nms_Block_onBlockEventReceived($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - return 0; -} -function nms_Block_disableStats($this) { - $this.$enableStats = 0; - return $this; -} -function nms_Block_getMobilityFlag($this) { - return $this.$blockMaterial.$mobilityFlag; -} -function nms_Block_getAmbientOcclusionLightValue($this, $par1IBlockAccess, $par2, $par3, $par4) { - return !$par1IBlockAccess.$isBlockNormalCube($par2, $par3, $par4) ? 1.0 : 0.20000000298023224; -} -function nms_Block_onFallenUpon($this, $par1World, $par2, $par3, $par4, $par5Entity, $par6) { - return; -} -function nms_Block_idPicked($this, $par1World, $par2, $par3, $par4) { - return $this.$blockID; -} -function nms_Block_getDamageValue($this, $par1World, $par2, $par3, $par4) { - return $this.$damageDropped(nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); -} -function nms_Block_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_Block_getCreativeTabToDisplayOn($this) { - return $this.$displayOnCreativeTab; -} -function nms_Block_setCreativeTab($this, $par1CreativeTabs) { - $this.$displayOnCreativeTab = $par1CreativeTabs; - return $this; -} -function nms_Block_onSetBlockIDWithMetaData($this, $par1World, $par2, $par3, $par4, $par5) { - return; -} -function nms_Block_isFlowerPot($this) { - return 0; -} -function nms_Block_canDropFromExplosion($this, $par1Explosion) { - return 1; -} -function nms_Block_hasComparatorInputOverride($this) { - return 0; -} -function nms_Block_getComparatorInputOverride($this, $par1World, $par2, $par3, $par4, $par5) { - return 0; -} -function nms_Block_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$unlocalizedName0); -} -function nms_Block_getItemIconName($this) { - return null; -} -function nms_Block__clinit_() { - var var$1, var$2, $var0, var$4, var$5, $var1; - nms_Block_soundPowderFootstep = nms_StepSound__init_($rt_s(1591), 1.0, 1.0); - nms_Block_soundWoodFootstep = nms_StepSound__init_($rt_s(1592), 1.0, 1.0); - nms_Block_soundGravelFootstep = nms_StepSound__init_($rt_s(1593), 1.0, 1.0); - nms_Block_soundGrassFootstep = nms_StepSound__init_($rt_s(1594), 1.0, 1.0); - nms_Block_soundStoneFootstep = nms_StepSound__init_($rt_s(1591), 1.0, 1.0); - nms_Block_soundMetalFootstep = nms_StepSound__init_($rt_s(1591), 1.0, 1.5); - nms_Block_soundGlassFootstep = nms_StepSoundStone__init_($rt_s(1591), 1.0, 1.0); - nms_Block_soundClothFootstep = nms_StepSound__init_($rt_s(1265), 1.0, 1.0); - nms_Block_soundSandFootstep = nms_StepSound__init_($rt_s(1595), 1.0, 1.0); - nms_Block_soundSnowFootstep = nms_StepSound__init_($rt_s(1596), 1.0, 1.0); - nms_Block_soundLadderFootstep = nms_StepSoundSand__init_($rt_s(1597), 1.0, 1.0); - nms_Block_soundAnvilFootstep = nms_StepSoundAnvil__init_($rt_s(1598), 0.30000001192092896, 1.0); - nms_Block_grassNoise = nms_NoiseGeneratorPerlin__init_0(ju_Random__init_1(Long_fromInt(jl_String_hashCode($rt_s(1599))))); - nms_Block_grassNoiseArray = $rt_createDoubleArray(256); - nms_Block_noiseChunkX = (-2147483648); - nms_Block_noiseChunkZ = (-2147483648); - nms_Block_blocksList = $rt_createArray(nms_Block, 4096); - nms_Block_opaqueCubeLookup = $rt_createBooleanArray(4096); - nms_Block_lightOpacity = $rt_createIntArray(4096); - nms_Block_canBlockGrass = $rt_createBooleanArray(4096); - nms_Block_lightValue = $rt_createIntArray(4096); - nms_Block_useNeighborBrightness = $rt_createBooleanArray(4096); - nms_Block_stone = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockStone__init_(1), 1.5), 10.0), nms_Block_soundStoneFootstep), $rt_s(1591)); - nms_Block_grass = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockGrass__init_(2), 0.6000000238418579), nms_Block_soundGrassFootstep), $rt_s(1594)); - nms_Block_dirt = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockDirt__init_(3), 0.5), nms_Block_soundGravelFootstep), $rt_s(1600)); - var$1 = new nms_Block; - nms_Material_$callClinit(); - nms_Block__init_0(var$1, 4, nms_Material_rock); - nms_Block_cobblestone = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(var$1, 2.0), 10.0), nms_Block_soundStoneFootstep), $rt_s(1601)), nms_CreativeTabs_tabBlock); - nms_Block_planks = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockWood__init_(5), 2.0), 5.0), nms_Block_soundWoodFootstep), $rt_s(1592)); - nms_Block_sapling = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockSapling__init_(6), 0.0), nms_Block_soundGrassFootstep), $rt_s(1602)); - nms_Block_bedrock = nms_Block_setCreativeTab(nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setBlockUnbreakable(nms_Block__init_(7, nms_Material_rock)), 6000000.0), nms_Block_soundStoneFootstep), $rt_s(1603))), nms_CreativeTabs_tabBlock); - nms_Block_waterMoving = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setLightOpacity(nms_Block_setHardness(nms_BlockFlowing__init_(8, nms_Material_water), 100.0), 3), $rt_s(613))); - nms_Block_waterStill = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setLightOpacity(nms_Block_setHardness(nms_BlockStationary__init_(9, nms_Material_water), 100.0), 3), $rt_s(613))); - nms_Block_lavaMoving = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setLightValue(nms_Block_setHardness(nms_BlockFlowing__init_(10, nms_Material_lava), 0.0), 1.0), $rt_s(859))); - nms_Block_lavaStill = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setLightValue(nms_Block_setHardness(nms_BlockStationary__init_(11, nms_Material_lava), 100.0), 1.0), $rt_s(859))); - nms_Block_sand = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockSand__init_(12), 0.5), nms_Block_soundSandFootstep), $rt_s(1595)); - nms_Block_gravel = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockGravel__init_(13), 0.6000000238418579), nms_Block_soundGravelFootstep), $rt_s(1593)); - nms_Block_oreGold = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOre__init_(14), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1604)); - nms_Block_oreIron = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOre__init_(15), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1605)); - nms_Block_oreCoal = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOre__init_(16), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1606)); - nms_Block_wood = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockLog__init_(17), 2.0), nms_Block_soundWoodFootstep), $rt_s(1607)); - nms_Block_leaves = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setLightOpacity(nms_Block_setHardness(nms_BlockLeaves__init_(18), 0.20000000298023224), 1), nms_Block_soundGrassFootstep), $rt_s(1608)); - nms_Block_sponge = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockSponge__init_(19), 0.6000000238418579), nms_Block_soundGrassFootstep), $rt_s(1609)); - nms_Block_glass = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockGlass__init_(20, nms_Material_glass, 0), 0.30000001192092896), nms_Block_soundGlassFootstep), $rt_s(1610)); - nms_Block_oreLapis = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOre__init_(21), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1611)); - nms_Block_blockLapis = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_Block__init_(22, nms_Material_rock), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1612)), nms_CreativeTabs_tabBlock); - nms_Block_dispenser = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockDispenser__init_(23), 3.5), nms_Block_soundStoneFootstep), $rt_s(1613)); - nms_Block_sandStone = nms_Block_setUnlocalizedName(nms_Block_setHardness(nms_Block_setStepSound(nms_BlockSandStone__init_(24), nms_Block_soundStoneFootstep), 0.800000011920929), $rt_s(1614)); - nms_Block_music = nms_Block_setUnlocalizedName(nms_Block_setHardness(nms_BlockNote__init_(25), 0.800000011920929), $rt_s(1615)); - nms_Block_bed = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setHardness(nms_BlockBed__init_(26), 0.20000000298023224), $rt_s(1447))); - nms_Block_railPowered = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockRailPowered__init_(27), 0.699999988079071), nms_Block_soundMetalFootstep), $rt_s(1616)); - nms_Block_railDetector = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockDetectorRail__init_(28), 0.699999988079071), nms_Block_soundMetalFootstep), $rt_s(1617)); - nms_Block_pistonStickyBase = nms_Block_setUnlocalizedName(nms_BlockPistonBase__init_(29, 1), $rt_s(1618)); - nms_Block_web = nms_Block_setUnlocalizedName(nms_Block_setHardness(nms_Block_setLightOpacity(nms_BlockWeb__init_(30), 1), 4.0), $rt_s(1619)); - nms_Block_tallGrass = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockTallGrass__init_(31), 0.0), nms_Block_soundGrassFootstep), $rt_s(1620)); - nms_Block_deadBush = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockDeadBush__init_(32), 0.0), nms_Block_soundGrassFootstep), $rt_s(1621)); - nms_Block_pistonBase = nms_Block_setUnlocalizedName(nms_BlockPistonBase__init_(33, 0), $rt_s(1622)); - nms_Block_pistonExtension = nms_BlockPistonExtension__init_(34); - nms_Block_cloth = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockCloth__init_0(), 0.800000011920929), nms_Block_soundClothFootstep), $rt_s(1265)); - nms_Block_pistonMoving = nms_BlockPistonMoving__init_(36); - nms_Block_plantYellow = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockFlower__init_(37), 0.0), nms_Block_soundGrassFootstep), $rt_s(1623)); - nms_Block_plantRed = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockFlower__init_(38), 0.0), nms_Block_soundGrassFootstep), $rt_s(1624)); - nms_Block_mushroomBrown = nms_Block_setUnlocalizedName(nms_Block_setLightValue(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockMushroom__init_(39, $rt_s(1625)), 0.0), nms_Block_soundGrassFootstep), 0.125), $rt_s(1626)); - nms_Block_mushroomRed = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockMushroom__init_(40, $rt_s(1627)), 0.0), nms_Block_soundGrassFootstep), $rt_s(1626)); - nms_Block_blockGold = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOreStorage__init_(41), 3.0), 10.0), nms_Block_soundMetalFootstep), $rt_s(1628)); - nms_Block_blockIron = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOreStorage__init_(42), 5.0), 10.0), nms_Block_soundMetalFootstep), $rt_s(1629)); - nms_Block_stoneDoubleSlab = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockStep__init_(43, 1), 2.0), 10.0), nms_Block_soundStoneFootstep), $rt_s(1630)); - nms_Block_stoneSingleSlab = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockStep__init_(44, 0), 2.0), 10.0), nms_Block_soundStoneFootstep), $rt_s(1630)); - nms_Block_brick = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_Block__init_(45, nms_Material_rock), 2.0), 10.0), nms_Block_soundStoneFootstep), $rt_s(1428)), nms_CreativeTabs_tabBlock); - nms_Block_tnt = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockTNT__init_(46), 0.0), nms_Block_soundGrassFootstep), $rt_s(1631)); - nms_Block_bookShelf = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockBookshelf__init_(47), 1.5), nms_Block_soundWoodFootstep), $rt_s(1632)); - nms_Block_cobblestoneMossy = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_Block__init_(48, nms_Material_rock), 2.0), 10.0), nms_Block_soundStoneFootstep), $rt_s(1633)), nms_CreativeTabs_tabBlock); - nms_Block_obsidian = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockObsidian__init_(49), 50.0), 2000.0), nms_Block_soundStoneFootstep), $rt_s(1634)); - nms_Block_torchWood = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setLightValue(nms_Block_setHardness(nms_BlockTorch__init_(50), 0.0), 0.9375), nms_Block_soundWoodFootstep), $rt_s(1635)); - nms_Block_fire = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setLightValue(nms_Block_setHardness(nms_BlockFire__init_(51), 0.0), 1.0), nms_Block_soundWoodFootstep), $rt_s(1636))); - nms_Block_mobSpawner = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockMobSpawner__init_(52), 5.0), nms_Block_soundMetalFootstep), $rt_s(1637))); - nms_Block_stairsWoodOak = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(53, nms_Block_planks, 0), $rt_s(1638)); - nms_Block_chest = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockChest__init_(54, 0), 2.5), nms_Block_soundWoodFootstep), $rt_s(1639)); - nms_Block_redstoneWire = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockRedstoneWire__init_(55), 0.0), nms_Block_soundPowderFootstep), $rt_s(1640))); - nms_Block_oreDiamond = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOre__init_(56), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1641)); - nms_Block_blockDiamond = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOreStorage__init_(57), 5.0), 10.0), nms_Block_soundMetalFootstep), $rt_s(1642)); - nms_Block_workbench = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockWorkbench__init_(58), 2.5), nms_Block_soundWoodFootstep), $rt_s(1643)); - nms_Block_crops = nms_Block_setUnlocalizedName(nms_BlockCrops__init_(59), $rt_s(1644)); - nms_Block_tilledField = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockFarmland__init_(60), 0.6000000238418579), nms_Block_soundGravelFootstep), $rt_s(1645)); - nms_Block_furnaceIdle = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockFurnace__init_(61, 0), 3.5), nms_Block_soundStoneFootstep), $rt_s(1646)), nms_CreativeTabs_tabDecorations); - nms_Block_furnaceBurning = nms_Block_setUnlocalizedName(nms_Block_setLightValue(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockFurnace__init_(62, 1), 3.5), nms_Block_soundStoneFootstep), 0.875), $rt_s(1646)); - nms_Block_signPost = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockSign__init_(63, $rt_cls(nms_TileEntitySign), 1), 1.0), nms_Block_soundWoodFootstep), $rt_s(1415))); - nms_Block_doorWood = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockDoor__init_(64, nms_Material_wood), 3.0), nms_Block_soundWoodFootstep), $rt_s(1416))); - nms_Block_ladder = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockLadder__init_(65), 0.4000000059604645), nms_Block_soundLadderFootstep), $rt_s(1597)); - nms_Block_rail = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockRail__init_(66), 0.699999988079071), nms_Block_soundMetalFootstep), $rt_s(1647)); - nms_Block_stairsCobblestone = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(67, nms_Block_cobblestone, 0), $rt_s(1648)); - nms_Block_signWall = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockSign__init_(68, $rt_cls(nms_TileEntitySign), 0), 1.0), nms_Block_soundWoodFootstep), $rt_s(1415))); - nms_Block_lever = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockLever__init_(69), 0.5), nms_Block_soundWoodFootstep), $rt_s(1649)); - nms_Block_pressurePlateStone = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockPressurePlate__init_(70, $rt_s(1591), nms_Material_rock, nms_EnumMobType_mobs), 0.5), nms_Block_soundStoneFootstep), $rt_s(1650)); - nms_Block_doorIron = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockDoor__init_(71, nms_Material_iron), 5.0), nms_Block_soundMetalFootstep), $rt_s(1422))); - nms_Block_pressurePlatePlanks = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockPressurePlate__init_(72, $rt_s(1592), nms_Material_wood, nms_EnumMobType_everything), 0.5), nms_Block_soundWoodFootstep), $rt_s(1650)); - nms_Block_oreRedstone = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockRedstoneOre__init_(73, 0), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1651)), nms_CreativeTabs_tabBlock); - nms_Block_oreRedstoneGlowing = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_Block_setLightValue(nms_BlockRedstoneOre__init_(74, 1), 0.625), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1651)); - nms_Block_torchRedstoneIdle = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockRedstoneTorch__init_(75, 0), 0.0), nms_Block_soundWoodFootstep), $rt_s(1652)); - nms_Block_torchRedstoneActive = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setLightValue(nms_Block_setHardness(nms_BlockRedstoneTorch__init_(76, 1), 0.0), 0.5), nms_Block_soundWoodFootstep), $rt_s(1652)), nms_CreativeTabs_tabRedstone); - nms_Block_stoneButton = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockButtonStone__init_(77), 0.5), nms_Block_soundStoneFootstep), $rt_s(1653)); - nms_Block_snow = nms_Block_setLightOpacity(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockSnow__init_(78), 0.10000000149011612), nms_Block_soundSnowFootstep), $rt_s(1596)), 0); - nms_Block_ice = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setLightOpacity(nms_Block_setHardness(nms_BlockIce__init_(79), 0.5), 3), nms_Block_soundGlassFootstep), $rt_s(1654)); - nms_Block_blockSnow = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockSnowBlock__init_(80), 0.20000000298023224), nms_Block_soundSnowFootstep), $rt_s(1596)); - nms_Block_cactus = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockCactus__init_(81), 0.4000000059604645), nms_Block_soundClothFootstep), $rt_s(1655)); - nms_Block_blockClay = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockClay__init_(82), 0.6000000238418579), nms_Block_soundGravelFootstep), $rt_s(1429)); - nms_Block_reed = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockReed__init_(83), 0.0), nms_Block_soundGrassFootstep), $rt_s(1430))); - nms_Block_jukebox = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockJukeBox__init_(84), 2.0), 10.0), nms_Block_soundStoneFootstep), $rt_s(1656)); - nms_Block_fence = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockFence__init_(85, $rt_s(1592), nms_Material_wood), 2.0), 5.0), nms_Block_soundWoodFootstep), $rt_s(1657)); - nms_Block_pumpkin = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockPumpkin__init_(86, 0), 1.0), nms_Block_soundWoodFootstep), $rt_s(1658)); - nms_Block_netherrack = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockNetherrack__init_(87), 0.4000000059604645), nms_Block_soundStoneFootstep), $rt_s(1659)); - nms_Block_slowSand = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockSoulSand__init_(88), 0.5), nms_Block_soundSandFootstep), $rt_s(1660)); - nms_Block_glowStone = nms_Block_setUnlocalizedName(nms_Block_setLightValue(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockGlowStone__init_(89, nms_Material_glass), 0.30000001192092896), nms_Block_soundGlassFootstep), 1.0), $rt_s(1661)); - nms_Block_portal = nms_Block_setUnlocalizedName(nms_Block_setLightValue(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockPortal__init_(90), (-1.0)), nms_Block_soundGlassFootstep), 0.75), $rt_s(716)); - nms_Block_pumpkinLantern = nms_Block_setUnlocalizedName(nms_Block_setLightValue(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockPumpkin__init_(91, 1), 1.0), nms_Block_soundWoodFootstep), 1.0), $rt_s(1662)); - nms_Block_cake = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockCake__init_(92), 0.5), nms_Block_soundClothFootstep), $rt_s(1446))); - nms_Block_redstoneRepeaterIdle = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockRedstoneRepeater__init_(93, 0), 0.0), nms_Block_soundWoodFootstep), $rt_s(1448))); - nms_Block_redstoneRepeaterActive = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setLightValue(nms_Block_setHardness(nms_BlockRedstoneRepeater__init_(94, 1), 0.0), 0.625), nms_Block_soundWoodFootstep), $rt_s(1448))); - nms_Block_lockedChest = nms_Block_setTickRandomly(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setLightValue(nms_Block_setHardness(nms_BlockLockedChest__init_(95), 0.0), 1.0), nms_Block_soundWoodFootstep), $rt_s(1663)), 1); - nms_Block_trapdoor = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockTrapDoor__init_(96, nms_Material_wood), 3.0), nms_Block_soundWoodFootstep), $rt_s(1664))); - nms_Block_silverfish = nms_Block_setUnlocalizedName(nms_Block_setHardness(nms_BlockSilverfish__init_(97), 0.75), $rt_s(1665)); - nms_Block_stoneBrick = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockStoneBrick__init_(98), 1.5), 10.0), nms_Block_soundStoneFootstep), $rt_s(1666)); - nms_Block_mushroomCapBrown = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockMushroomCap__init_(99, nms_Material_wood, 0), 0.20000000298023224), nms_Block_soundWoodFootstep), $rt_s(1626)); - nms_Block_mushroomCapRed = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockMushroomCap__init_(100, nms_Material_wood, 1), 0.20000000298023224), nms_Block_soundWoodFootstep), $rt_s(1626)); - nms_Block_fenceIron = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockPane__init_(101, $rt_s(1667), $rt_s(1667), nms_Material_iron, 1), 5.0), 10.0), nms_Block_soundMetalFootstep), $rt_s(1667)); - nms_Block_thinGlass = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockPane__init_(102, $rt_s(1610), $rt_s(1668), nms_Material_glass, 0), 0.30000001192092896), nms_Block_soundGlassFootstep), $rt_s(1669)); - nms_Block_melon = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockMelon__init_(103), 1.0), nms_Block_soundWoodFootstep), $rt_s(1452)); - nms_Block_pumpkinStem = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockStem__init_(104, nms_Block_pumpkin), 0.0), nms_Block_soundWoodFootstep), $rt_s(1670)); - nms_Block_melonStem = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockStem__init_(105, nms_Block_melon), 0.0), nms_Block_soundWoodFootstep), $rt_s(1670)); - nms_Block_vine = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockVine__init_(106), 0.20000000298023224), nms_Block_soundGrassFootstep), $rt_s(1671)); - nms_Block_fenceGate = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockFenceGate__init_(107), 2.0), 5.0), nms_Block_soundWoodFootstep), $rt_s(1672)); - nms_Block_stairsBrick = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(108, nms_Block_brick, 0), $rt_s(1673)); - nms_Block_stairsStoneBrick = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(109, nms_Block_stoneBrick, 0), $rt_s(1674)); - nms_Block_mycelium = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockMycelium__init_(110), 0.6000000238418579), nms_Block_soundGrassFootstep), $rt_s(1675)); - nms_Block_waterlily = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockLilyPad__init_(111), 0.0), nms_Block_soundGrassFootstep), $rt_s(1676)); - nms_Block_netherBrick = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_Block__init_(112, nms_Material_rock), 2.0), 10.0), nms_Block_soundStoneFootstep), $rt_s(1677)), nms_CreativeTabs_tabBlock); - nms_Block_netherFence = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockFence__init_(113, $rt_s(1677), nms_Material_rock), 2.0), 10.0), nms_Block_soundStoneFootstep), $rt_s(1678)); - nms_Block_stairsNetherBrick = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(114, nms_Block_netherBrick, 0), $rt_s(1679)); - nms_Block_netherStalk = nms_Block_setUnlocalizedName(nms_BlockNetherStalk__init_(115), $rt_s(1680)); - nms_Block_enchantmentTable = nms_Block_setUnlocalizedName(nms_Block_setResistance(nms_Block_setHardness(nms_BlockEnchantmentTable__init_(116), 5.0), 2000.0), $rt_s(1681)); - nms_Block_brewingStand = nms_Block_setUnlocalizedName(nms_Block_setLightValue(nms_Block_setHardness(nms_BlockBrewingStand__init_(117), 0.5), 0.125), $rt_s(1471)); - nms_Block_cauldron = nms_Block_setUnlocalizedName(nms_Block_setHardness(nms_BlockCauldron__init_(118), 2.0), $rt_s(1472)); - nms_Block_endPortal = nms_Block_setResistance(nms_Block_setHardness(nms_BlockEndPortal__init_(119, nms_Material_portal), (-1.0)), 6000000.0); - nms_Block_endPortalFrame = nms_Block_setCreativeTab(nms_Block_setResistance(nms_Block_setUnlocalizedName(nms_Block_setHardness(nms_Block_setLightValue(nms_Block_setStepSound(nms_BlockEndPortalFrame__init_(120), nms_Block_soundGlassFootstep), 0.125), (-1.0)), $rt_s(1682)), 6000000.0), nms_CreativeTabs_tabDecorations); - nms_Block_whiteStone = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_Block__init_(121, nms_Material_rock), 3.0), 15.0), nms_Block_soundStoneFootstep), $rt_s(1683)), nms_CreativeTabs_tabBlock); - nms_Block_dragonEgg = nms_Block_setUnlocalizedName(nms_Block_setLightValue(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockDragonEgg__init_(122), 3.0), 15.0), nms_Block_soundStoneFootstep), 0.125), $rt_s(1684)); - nms_Block_redstoneLampIdle = nms_Block_setCreativeTab(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockRedstoneLight__init_(123, 0), 0.30000001192092896), nms_Block_soundGlassFootstep), $rt_s(1685)), nms_CreativeTabs_tabRedstone); - nms_Block_redstoneLampActive = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockRedstoneLight__init_(124, 1), 0.30000001192092896), nms_Block_soundGlassFootstep), $rt_s(1685)); - nms_Block_woodDoubleSlab = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockWoodSlab__init_(125, 1), 2.0), 5.0), nms_Block_soundWoodFootstep), $rt_s(1686)); - nms_Block_woodSingleSlab = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockWoodSlab__init_(126, 0), 2.0), 5.0), nms_Block_soundWoodFootstep), $rt_s(1686)); - nms_Block_cocoaPlant = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockCocoa__init_(127), 0.20000000298023224), 5.0), nms_Block_soundWoodFootstep), $rt_s(1687)); - nms_Block_stairsSandStone = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(128, nms_Block_sandStone, 0), $rt_s(1688)); - nms_Block_oreEmerald = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOre__init_(129), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1689)); - nms_Block_enderChest = nms_Block_setLightValue(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockEnderChest__init_(130), 22.5), 1000.0), nms_Block_soundStoneFootstep), $rt_s(1690)), 0.5); - nms_Block_tripWireSource = nms_Block_setUnlocalizedName(nms_BlockTripWireSource__init_(131), $rt_s(1691)); - nms_Block_tripWire = nms_Block_setUnlocalizedName(nms_BlockTripWire__init_(132), $rt_s(1692)); - nms_Block_blockEmerald = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOreStorage__init_(133), 5.0), 10.0), nms_Block_soundMetalFootstep), $rt_s(1693)); - nms_Block_stairsWoodSpruce = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(134, nms_Block_planks, 1), $rt_s(1694)); - nms_Block_stairsWoodBirch = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(135, nms_Block_planks, 2), $rt_s(1695)); - nms_Block_stairsWoodJungle = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(136, nms_Block_planks, 3), $rt_s(1696)); - nms_Block_commandBlock = nms_Block_setUnlocalizedName(nms_BlockCommandBlock__init_(137), $rt_s(1697)); - nms_Block_beacon = nms_Block_setLightValue(nms_Block_setUnlocalizedName(nms_BlockBeacon__init_(138), $rt_s(1698)), 1.0); - nms_Block_cobblestoneWall = nms_Block_setUnlocalizedName(nms_BlockWall__init_(139, nms_Block_cobblestone), $rt_s(1699)); - nms_Block_flowerPot = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockFlowerPot__init_(140), 0.0), nms_Block_soundPowderFootstep), $rt_s(1481)); - nms_Block_carrot = nms_Block_setUnlocalizedName(nms_BlockCarrot__init_(141), $rt_s(1482)); - nms_Block_potato = nms_Block_setUnlocalizedName(nms_BlockPotato__init_(142), $rt_s(1700)); - nms_Block_woodenButton = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockButtonWood__init_(143), 0.5), nms_Block_soundWoodFootstep), $rt_s(1653)); - nms_Block_skull = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockSkull__init_(144), 1.0), nms_Block_soundStoneFootstep), $rt_s(1488)); - nms_Block_anvil = nms_Block_setUnlocalizedName(nms_Block_setResistance(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockAnvil__init_(145), 5.0), nms_Block_soundAnvilFootstep), 2000.0), $rt_s(1598)); - nms_Block_chestTrapped = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockChest__init_(146, 1), 2.5), nms_Block_soundWoodFootstep), $rt_s(1701)); - nms_Block_pressurePlateGold = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockPressurePlateWeighted__init_(147, $rt_s(1628), nms_Material_iron, 64), 0.5), nms_Block_soundWoodFootstep), $rt_s(1702)); - nms_Block_pressurePlateIron = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockPressurePlateWeighted__init_(148, $rt_s(1629), nms_Material_iron, 640), 0.5), nms_Block_soundWoodFootstep), $rt_s(1703)); - nms_Block_redstoneComparatorIdle = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockComparator__init_(149, 0), 0.0), nms_Block_soundWoodFootstep), $rt_s(1495))); - nms_Block_redstoneComparatorActive = nms_Block_disableStats(nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setLightValue(nms_Block_setHardness(nms_BlockComparator__init_(150, 1), 0.0), 0.625), nms_Block_soundWoodFootstep), $rt_s(1495))); - nms_Block_daylightSensor = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockDaylightDetector__init_(151), 0.20000000298023224), nms_Block_soundWoodFootstep), $rt_s(1704)); - nms_Block_blockRedstone = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockPoweredOre__init_(152), 5.0), 10.0), nms_Block_soundMetalFootstep), $rt_s(1705)); - nms_Block_oreNetherQuartz = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockOre__init_(153), 3.0), 5.0), nms_Block_soundStoneFootstep), $rt_s(1497)); - nms_Block_hopperBlock = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setResistance(nms_Block_setHardness(nms_BlockHopper__init_(154), 3.0), 8.0), nms_Block_soundWoodFootstep), $rt_s(621)); - nms_Block_blockNetherQuartz = nms_Block_setUnlocalizedName(nms_Block_setHardness(nms_Block_setStepSound(nms_BlockQuartz__init_(155), nms_Block_soundStoneFootstep), 0.800000011920929), $rt_s(1706)); - nms_Block_stairsNetherQuartz = nms_Block_setUnlocalizedName(nms_BlockStairs__init_(156, nms_Block_blockNetherQuartz, 0), $rt_s(1707)); - nms_Block_railActivator = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockRailPowered__init_(157), 0.699999988079071), nms_Block_soundMetalFootstep), $rt_s(1708)); - nms_Block_dropper = nms_Block_setUnlocalizedName(nms_Block_setStepSound(nms_Block_setHardness(nms_BlockDropper__init_(158), 3.5), nms_Block_soundStoneFootstep), $rt_s(1709)); - nms_Item_$callClinit(); - nms_Item_itemsList.data[nms_Block_cloth.$blockID] = nms_Item_setUnlocalizedName(nms_ItemCloth__init_(nms_Block_cloth.$blockID - 256 | 0), $rt_s(1265)); - nms_Item_itemsList.data[nms_Block_wood.$blockID] = nms_Item_setUnlocalizedName(nms_ItemMultiTextureTile__init_(nms_Block_wood.$blockID - 256 | 0, nms_Block_wood, nms_BlockLog_woodType), $rt_s(1607)); - nms_Item_itemsList.data[nms_Block_planks.$blockID] = nms_Item_setUnlocalizedName(nms_ItemMultiTextureTile__init_(nms_Block_planks.$blockID - 256 | 0, nms_Block_planks, nms_BlockWood_woodType), $rt_s(1592)); - nms_Item_itemsList.data[nms_Block_silverfish.$blockID] = nms_Item_setUnlocalizedName(nms_ItemMultiTextureTile__init_(nms_Block_silverfish.$blockID - 256 | 0, nms_Block_silverfish, nms_BlockSilverfish_silverfishStoneTypes), $rt_s(1665)); - nms_Item_itemsList.data[nms_Block_stoneBrick.$blockID] = nms_Item_setUnlocalizedName(nms_ItemMultiTextureTile__init_(nms_Block_stoneBrick.$blockID - 256 | 0, nms_Block_stoneBrick, nms_BlockStoneBrick_STONE_BRICK_TYPES), $rt_s(1666)); - nms_Item_itemsList.data[nms_Block_sandStone.$blockID] = nms_Item_setUnlocalizedName(nms_ItemMultiTextureTile__init_(nms_Block_sandStone.$blockID - 256 | 0, nms_Block_sandStone, nms_BlockSandStone_SAND_STONE_TYPES), $rt_s(1614)); - nms_Item_itemsList.data[nms_Block_blockNetherQuartz.$blockID] = nms_Item_setUnlocalizedName(nms_ItemMultiTextureTile__init_(nms_Block_blockNetherQuartz.$blockID - 256 | 0, nms_Block_blockNetherQuartz, nms_BlockQuartz_quartzBlockTypes), $rt_s(1706)); - nms_Item_itemsList.data[nms_Block_stoneSingleSlab.$blockID] = nms_Item_setUnlocalizedName(nms_ItemSlab__init_(nms_Block_stoneSingleSlab.$blockID - 256 | 0, nms_Block_stoneSingleSlab, nms_Block_stoneDoubleSlab, 0), $rt_s(1630)); - nms_Item_itemsList.data[nms_Block_stoneDoubleSlab.$blockID] = nms_Item_setUnlocalizedName(nms_ItemSlab__init_(nms_Block_stoneDoubleSlab.$blockID - 256 | 0, nms_Block_stoneSingleSlab, nms_Block_stoneDoubleSlab, 1), $rt_s(1630)); - nms_Item_itemsList.data[nms_Block_woodSingleSlab.$blockID] = nms_Item_setUnlocalizedName(nms_ItemSlab__init_(nms_Block_woodSingleSlab.$blockID - 256 | 0, nms_Block_woodSingleSlab, nms_Block_woodDoubleSlab, 0), $rt_s(1686)); - nms_Item_itemsList.data[nms_Block_woodDoubleSlab.$blockID] = nms_Item_setUnlocalizedName(nms_ItemSlab__init_(nms_Block_woodDoubleSlab.$blockID - 256 | 0, nms_Block_woodSingleSlab, nms_Block_woodDoubleSlab, 1), $rt_s(1686)); - nms_Item_itemsList.data[nms_Block_sapling.$blockID] = nms_Item_setUnlocalizedName(nms_ItemMultiTextureTile__init_(nms_Block_sapling.$blockID - 256 | 0, nms_Block_sapling, nms_BlockSapling_WOOD_TYPES), $rt_s(1602)); - nms_Item_itemsList.data[nms_Block_leaves.$blockID] = nms_Item_setUnlocalizedName(nms_ItemLeaves__init_(nms_Block_leaves.$blockID - 256 | 0), $rt_s(1608)); - nms_Item_itemsList.data[nms_Block_vine.$blockID] = nms_ItemColored__init_(nms_Block_vine.$blockID - 256 | 0, 0); - var$2 = nms_Item_itemsList.data; - $var0 = nms_Block_tallGrass.$blockID; - var$1 = nms_ItemColored__init_(nms_Block_tallGrass.$blockID - 256 | 0, 1); - var$4 = $rt_createArray(jl_String, 3); - var$5 = var$4.data; - var$5[0] = $rt_s(1710); - var$5[1] = $rt_s(1594); - var$5[2] = $rt_s(1711); - var$2[$var0] = nms_ItemColored_setBlockNames(var$1, var$4); - nms_Item_itemsList.data[nms_Block_snow.$blockID] = nms_ItemSnow__init_(nms_Block_snow.$blockID - 256 | 0, nms_Block_snow); - nms_Item_itemsList.data[nms_Block_waterlily.$blockID] = nms_ItemLilyPad__init_(nms_Block_waterlily.$blockID - 256 | 0); - nms_Item_itemsList.data[nms_Block_pistonBase.$blockID] = nms_ItemPiston__init_(nms_Block_pistonBase.$blockID - 256 | 0); - nms_Item_itemsList.data[nms_Block_pistonStickyBase.$blockID] = nms_ItemPiston__init_(nms_Block_pistonStickyBase.$blockID - 256 | 0); - nms_Item_itemsList.data[nms_Block_cobblestoneWall.$blockID] = nms_Item_setUnlocalizedName(nms_ItemMultiTextureTile__init_(nms_Block_cobblestoneWall.$blockID - 256 | 0, nms_Block_cobblestoneWall, nms_BlockWall_types), $rt_s(1699)); - nms_Item_itemsList.data[nms_Block_anvil.$blockID] = nms_Item_setUnlocalizedName(nms_ItemAnvilBlock__init_(nms_Block_anvil), $rt_s(1598)); - $var0 = 0; - while ($var0 < 256) { - if (nms_Block_blocksList.data[$var0] !== null) { - if (nms_Item_itemsList.data[$var0] === null) { - nms_Item_itemsList.data[$var0] = nms_ItemBlock__init_($var0 - 256 | 0); - nms_Block_blocksList.data[$var0].$initializeBlock(); - } - $var1 = 0; - if ($var0 > 0 && nms_Block_blocksList.data[$var0].$getRenderType() == 10) - $var1 = 1; - if ($var0 > 0 && nms_Block_blocksList.data[$var0] instanceof nms_BlockHalfSlab) - $var1 = 1; - if ($var0 == nms_Block_tilledField.$blockID) - $var1 = 1; - if (nms_Block_canBlockGrass.data[$var0]) - $var1 = 1; - if (!nms_Block_lightOpacity.data[$var0]) - $var1 = 1; - nms_Block_useNeighborBrightness.data[$var0] = $var1; - } - $var0 = $var0 + 1 | 0; - } - nms_Block_canBlockGrass.data[0] = 1; -} -function nms_Container() { - var a = this; jl_Object.call(a); - a.$inventoryItemStacks = null; - a.$inventorySlots = null; - a.$windowId = 0; - a.$transactionID = 0; - a.$field_94535_f = 0; - a.$field_94536_g = 0; - a.$field_94537_h = null; - a.$crafters = null; - a.$playerList = null; -} -function nms_Container__init_0() { - var var_0 = new nms_Container(); - nms_Container__init_(var_0); - return var_0; -} -function nms_Container__init_($this) { - var var$1; - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$inventoryItemStacks = var$1; - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$inventorySlots = var$1; - $this.$windowId = 0; - $this.$transactionID = 0; - $this.$field_94535_f = (-1); - $this.$field_94536_g = 0; - var$1 = new ju_HashSet; - var$1.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$field_94537_h = var$1; - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$crafters = var$1; - var$1 = new ju_HashSet; - var$1.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$playerList = var$1; -} -function nms_Container_addSlotToContainer($this, $par1Slot) { - $par1Slot.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par1Slot); - ju_ArrayList_add($this.$inventoryItemStacks, null); - return $par1Slot; -} -function nms_Container_addCraftingToCrafters($this, $par1ICrafting) { - if (!ju_AbstractCollection_contains($this.$crafters, $par1ICrafting)) { - ju_ArrayList_add($this.$crafters, $par1ICrafting); - $par1ICrafting.$sendContainerAndContentsToPlayer($this, nms_Container_getInventory($this)); - $this.$detectAndSendChanges(); - return; - } - $par1ICrafting = new jl_IllegalArgumentException; - $par1ICrafting.$suppressionEnabled = 1; - $par1ICrafting.$writableStackTrace = 1; - $par1ICrafting.$message = $rt_s(1712); - $rt_throw($par1ICrafting); -} -function nms_Container_removeCraftingFromCrafters($this, $par1ICrafting) { - var var$2, var$3; - var$2 = $this.$crafters; - var$3 = ju_AbstractList_indexOf(var$2, $par1ICrafting); - if (var$3 >= 0) - ju_ArrayList_remove(var$2, var$3); -} -function nms_Container_getInventory($this) { - var $var1, $var2, var$3; - $var1 = new ju_ArrayList; - $var1.$array1 = $rt_createArray(jl_Object, 10); - $var2 = 0; - a: { - while ($var2 < $this.$inventorySlots.$size0) { - var$3 = $this.$inventorySlots; - if ($var2 < 0) - break a; - if ($var2 >= var$3.$size0) - break a; - ju_ArrayList_add($var1, var$3.$array1.data[$var2].$getStack()); - $var2 = $var2 + 1 | 0; - } - return $var1; - } - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); -} -function nms_Container_detectAndSendChanges($this) { - var $var1, $var2, $var3, $var4, var$5, var$6; - $var1 = 0; - a: { - b: { - c: { - d: { - while ($var1 < $this.$inventorySlots.$size0) { - $var2 = $this.$inventorySlots; - if ($var1 < 0) - break c; - if ($var1 >= $var2.$size0) - break c; - $var2 = $var2.$array1.data[$var1].$getStack(); - $var3 = $this.$inventoryItemStacks; - if ($var1 < 0) - break d; - if ($var1 >= $var3.$size0) - break d; - e: { - if (!nms_ItemStack_areItemStacksEqual($var3.$array1.data[$var1], $var2)) { - if ($var2 === null) - $var3 = null; - else { - $var3 = new nms_ItemStack; - $var4 = $var2.$itemID0; - var$5 = $var2.$stackSize; - var$6 = $var2.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = $var4; - $var3.$stackSize = var$5; - $var3.$itemDamage = var$6; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var2.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var2.$stackTagCompound); - } - $var2 = $this.$inventoryItemStacks; - if ($var1 < 0) - break b; - if ($var1 >= $var2.$size0) - break b; - $var2.$array1.data[$var1] = $var3; - $var4 = 0; - while (true) { - if ($var4 >= $this.$crafters.$size0) - break e; - $var2 = $this.$crafters; - if ($var4 < 0) - break a; - if ($var4 >= $var2.$size0) - break a; - $var2.$array1.data[$var4].$sendSlotContents($this, $var1, $var3); - $var4 = $var4 + 1 | 0; - } - } - } - $var1 = $var1 + 1 | 0; - } - return; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -} -function nms_Container_getSlot($this, $par1) { - var var$2; - var$2 = $this.$inventorySlots; - 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_Container_slotClick($this, $par1, $par2, $par3, $par4EntityPlayer) { - var $var5, $var6, $var7, $var8, $var17, $var9, $var10, $var11, $var12, $var13, $var16, $var18, $var19, $var22, $var24, $var21, $var23, $var14, $var20, $var15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var15 = $thread.pop();$var20 = $thread.pop();$var14 = $thread.pop();$var23 = $thread.pop();$var21 = $thread.pop();$var24 = $thread.pop();$var22 = $thread.pop();$var19 = $thread.pop();$var18 = $thread.pop();$var16 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var17 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4EntityPlayer = $thread.pop();$par3 - = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var5 = null; - $var6 = $par4EntityPlayer.$inventory; - if ($par3 == 5) { - $var7 = $this.$field_94536_g; - $this.$field_94536_g = nms_Container_func_94532_c($par2); - if (!($var7 == 1 && $this.$field_94536_g == 2) && $var7 != $this.$field_94536_g) - nms_Container_func_94533_d($this); - else if (nms_InventoryPlayer_getItemStack($var6) === null) - nms_Container_func_94533_d($this); - else if (!$this.$field_94536_g) { - $this.$field_94535_f = nms_Container_func_94529_b($par2); - if (!nms_Container_func_94528_d($this.$field_94535_f)) - nms_Container_func_94533_d($this); - else { - $this.$field_94536_g = 1; - ju_HashSet_clear($this.$field_94537_h); - } - } else if ($this.$field_94536_g == 1) { - $var8 = ju_ArrayList_get($this.$inventorySlots, $par1); - if ($var8 !== null && nms_Container_func_94527_a($var8, nms_InventoryPlayer_getItemStack($var6), 1) && $var8.$isItemValid(nms_InventoryPlayer_getItemStack($var6)) && nms_InventoryPlayer_getItemStack($var6).$stackSize > ju_HashSet_size($this.$field_94537_h) && $this.$func_94531_b($var8)) - ju_HashSet_add($this.$field_94537_h, $var8); - } else if ($this.$field_94536_g != 2) - nms_Container_func_94533_d($this); - else { - if (!ju_HashSet_isEmpty($this.$field_94537_h)) { - $var17 = nms_ItemStack_copy(nms_InventoryPlayer_getItemStack($var6)); - $var9 = nms_InventoryPlayer_getItemStack($var6).$stackSize; - $var10 = ju_HashSet_iterator($this.$field_94537_h); - while ($var10.$hasNext()) { - $var11 = $var10.$next(); - if ($var11 !== null && nms_Container_func_94527_a($var11, nms_InventoryPlayer_getItemStack($var6), 1) && $var11.$isItemValid(nms_InventoryPlayer_getItemStack($var6)) && nms_InventoryPlayer_getItemStack($var6).$stackSize >= ju_HashSet_size($this.$field_94537_h) && $this.$func_94531_b($var11)) { - $var12 = nms_ItemStack_copy($var17); - $var13 = !$var11.$getHasStack() ? 0 : $var11.$getStack().$stackSize; - nms_Container_func_94525_a($this.$field_94537_h, $this.$field_94535_f, $var12, $var13); - if ($var12.$stackSize > nms_ItemStack_getMaxStackSize($var12)) - $var12.$stackSize = nms_ItemStack_getMaxStackSize($var12); - if ($var12.$stackSize > $var11.$getSlotStackLimit()) - $var12.$stackSize = $var11.$getSlotStackLimit(); - $var9 = $var9 - ($var12.$stackSize - $var13 | 0) | 0; - $ptr = 20; - continue main; - } - } - $var17.$stackSize = $var9; - if ($var17.$stackSize <= 0) - $var17 = null; - nms_InventoryPlayer_setItemStack($var6, $var17); - } - nms_Container_func_94533_d($this); - } - } else if ($this.$field_94536_g) - nms_Container_func_94533_d($this); - else { - b: { - if (!($par3 && $par3 != 1)) { - if (!$par2) - break b; - if ($par2 == 1) - break b; - } - if ($par3 == 2 && $par2 >= 0 && $par2 < 9) { - $var16 = ju_ArrayList_get($this.$inventorySlots, $par1); - if (!$var16.$canTakeStack($par4EntityPlayer)) - break a; - c: { - d: { - $var17 = nms_InventoryPlayer_getStackInSlot($var6, $par2); - if ($var17 !== null) { - if ($var16.$inventory0 !== $var6) - break d; - if (!$var16.$isItemValid($var17)) - break d; - } - $var18 = 1; - break c; - } - $var18 = 0; - } - $var19 = (-1); - if (!$var18) { - $var19 = nms_InventoryPlayer_getFirstEmptyStack($var6); - $var18 = $var18 | ($var19 <= (-1) ? 0 : 1); - } - if ($var16.$getHasStack() && $var18) { - $var22 = $var16.$getStack(); - $var24 = nms_ItemStack_copy($var22); - $ptr = 6; - continue main; - } - if (!$var16.$getHasStack() && $var17 !== null && $var16.$isItemValid($var17)) { - $par4EntityPlayer = null; - $ptr = 11; - continue main; - } - break a; - } - if ($par3 == 3 && $par4EntityPlayer.$capabilities.$isCreativeMode && nms_InventoryPlayer_getItemStack($var6) === null && $par1 >= 0) { - $var16 = ju_ArrayList_get($this.$inventorySlots, $par1); - if ($var16 === null) - break a; - if (!$var16.$getHasStack()) - break a; - $var17 = nms_ItemStack_copy($var16.$getStack()); - $var17.$stackSize = nms_ItemStack_getMaxStackSize($var17); - nms_InventoryPlayer_setItemStack($var6, $var17); - break a; - } - if ($par3 == 4 && nms_InventoryPlayer_getItemStack($var6) === null && $par1 >= 0) { - $var16 = ju_ArrayList_get($this.$inventorySlots, $par1); - if ($var16 === null) - break a; - if (!$var16.$getHasStack()) - break a; - if (!$var16.$canTakeStack($par4EntityPlayer)) - break a; - $par1 = !$par2 ? 1 : $var16.$getStack().$stackSize; - $ptr = 4; - continue main; - } - if ($par3 != 6) - break a; - if ($par1 < 0) - break a; - e: { - f: { - $var16 = ju_ArrayList_get($this.$inventorySlots, $par1); - $var17 = nms_InventoryPlayer_getItemStack($var6); - if ($var17 !== null && !($var16 !== null && $var16.$getHasStack() && $var16.$canTakeStack($par4EntityPlayer))) { - $var9 = !$par2 ? 0 : ju_ArrayList_size($this.$inventorySlots) - 1 | 0; - $var19 = $par2 ? (-1) : 1; - $var21 = 0; - $var22 = null; - while (true) { - if ($var21 >= 2) - break f; - $var23 = $var9; - while ($var23 >= 0 && $var23 < ju_ArrayList_size($this.$inventorySlots) && $var17.$stackSize < nms_ItemStack_getMaxStackSize($var17)) { - $var24 = ju_ArrayList_get($this.$inventorySlots, $var23); - if ($var24.$getHasStack() && nms_Container_func_94527_a($var24, $var17, 1) && $var24.$canTakeStack($par4EntityPlayer) && $this.$func_94530_a($var17, $var24)) { - if ($var21) - break e; - if ($var24.$getStack().$stackSize != nms_ItemStack_getMaxStackSize($var24.$getStack())) - break e; - } - $var23 = $var23 + $var19 | 0; - } - $var21 = $var21 + 1 | 0; - } - } - } - $this.$detectAndSendChanges(); - break a; - } - $var14 = jl_Math_min0(nms_ItemStack_getMaxStackSize($var17) - $var17.$stackSize | 0, $var24.$getStack().$stackSize); - $ptr = 24; - continue main; - } - $var9 = $rt_compare($par1, (-999)); - if ($var9) { - if ($par3 == 1) { - if ($par1 < 0) - return null; - $var16 = ju_ArrayList_get($this.$inventorySlots, $par1); - if ($var16 === null) - break a; - if (!$var16.$canTakeStack($par4EntityPlayer)) - break a; - $ptr = 1; - continue main; - } - if ($par1 < 0) - return null; - $var16 = ju_ArrayList_get($this.$inventorySlots, $par1); - if ($var16 !== null) { - $var17 = $var16.$getStack(); - $var20 = nms_InventoryPlayer_getItemStack($var6); - if ($var17 !== null) - $var5 = nms_ItemStack_copy($var17); - g: { - if ($var17 === null) { - if ($var20 === null) - break g; - if (!$var16.$isItemValid($var20)) - break g; - $var19 = $par2 ? 1 : $var20.$stackSize; - if ($var19 > $var16.$getSlotStackLimit()) - $var19 = $var16.$getSlotStackLimit(); - $par4EntityPlayer = nms_ItemStack_splitStack($var20, $var19); - $ptr = 16; - continue main; - } - if ($var16.$canTakeStack($par4EntityPlayer)) { - if ($var20 === null) { - $var19 = !$par2 ? $var17.$stackSize : ($var17.$stackSize + 1 | 0) / 2 | 0; - $ptr = 7; - continue main; - } - if (!$var16.$isItemValid($var20)) { - if ($var17.$itemID0 != $var20.$itemID0) - break g; - if (nms_ItemStack_getMaxStackSize($var20) <= 1) - break g; - if (nms_ItemStack_getHasSubtypes($var17) && nms_ItemStack_getItemDamage($var17) != nms_ItemStack_getItemDamage($var20)) - break g; - if (!nms_ItemStack_areItemStackTagsEqual($var17, $var20)) - break g; - $var19 = $var17.$stackSize; - if ($var19 <= 0) - break g; - if (($var19 + $var20.$stackSize | 0) > nms_ItemStack_getMaxStackSize($var20)) - break g; - $var20.$stackSize = $var20.$stackSize + $var19 | 0; - $ptr = 21; - continue main; - } - if ($var17.$itemID0 == $var20.$itemID0 && nms_ItemStack_getItemDamage($var17) == nms_ItemStack_getItemDamage($var20) && nms_ItemStack_areItemStackTagsEqual($var17, $var20)) { - $var19 = $par2 ? 1 : $var20.$stackSize; - if ($var19 > ($var16.$getSlotStackLimit() - $var17.$stackSize | 0)) - $var19 = $var16.$getSlotStackLimit() - $var17.$stackSize | 0; - if ($var19 > (nms_ItemStack_getMaxStackSize($var20) - $var17.$stackSize | 0)) - $var19 = nms_ItemStack_getMaxStackSize($var20) - $var17.$stackSize | 0; - nms_ItemStack_splitStack($var20, $var19); - if (!$var20.$stackSize) - nms_InventoryPlayer_setItemStack($var6, null); - $var17.$stackSize = $var17.$stackSize + $var19 | 0; - } else if ($var20.$stackSize <= $var16.$getSlotStackLimit()) { - $ptr = 8; - continue main; - } - } - } - $ptr = 2; - continue main; - } - } else if (nms_InventoryPlayer_getItemStack($var6) !== null && !$var9) { - if (!$par2) { - nms_EntityPlayer_dropPlayerItem($par4EntityPlayer, nms_InventoryPlayer_getItemStack($var6)); - nms_InventoryPlayer_setItemStack($var6, null); - } - if ($par2 == 1) { - nms_EntityPlayer_dropPlayerItem($par4EntityPlayer, nms_ItemStack_splitStack(nms_InventoryPlayer_getItemStack($var6), 1)); - if (!nms_InventoryPlayer_getItemStack($var6).$stackSize) - nms_InventoryPlayer_setItemStack($var6, null); - } - } - } - } - return $var5; - case 1: - $tmp = $this.$transferStackInSlot($par4EntityPlayer, $par1); - if ($rt_suspending()) { - break main; - } - $var17 = $tmp; - if ($var17 !== null) { - $var9 = $var17.$itemID0; - $var5 = nms_ItemStack_copy($var17); - if ($var16.$getStack() !== null && $var16.$getStack().$itemID0 == $var9) { - $par3 = 1; - $ptr = 3; - continue main; - } - } - return $var5; - case 2: - $var16.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - return $var5; - case 3: - $this.$retrySlotClick($par1, $par2, $par3, $par4EntityPlayer); - if ($rt_suspending()) { - break main; - } - return $var5; - case 4: - $tmp = $var16.$decrStackSize0($par1); - if ($rt_suspending()) { - break main; - } - $var17 = $tmp; - $ptr = 5; - case 5: - $var16.$onPickupFromSlot($par4EntityPlayer, $var17); - if ($rt_suspending()) { - break main; - } - nms_EntityPlayer_dropPlayerItem($par4EntityPlayer, $var17); - return $var5; - case 6: - nms_InventoryPlayer_setInventorySlotContents($var6, $par2, $var24); - if ($rt_suspending()) { - break main; - } - if (!($var16.$inventory0 === $var6 && $var16.$isItemValid($var17)) && $var17 !== null) { - if ($var19 <= (-1)) - return $var5; - nms_InventoryPlayer_addItemStackToInventory($var6, $var17); - $par1 = $var22.$stackSize; - $ptr = 17; - continue main; - } - $par1 = $var22.$stackSize; - $ptr = 13; - continue main; - case 7: - $tmp = $var16.$decrStackSize0($var19); - if ($rt_suspending()) { - break main; - } - $var22 = $tmp; - nms_InventoryPlayer_setItemStack($var6, $var22); - if ($var17.$stackSize) { - $var17 = nms_InventoryPlayer_getItemStack($var6); - $ptr = 9; - continue main; - } - $var17 = null; - $ptr = 10; - continue main; - case 8: - $var16.$putStack($var20); - if ($rt_suspending()) { - break main; - } - nms_InventoryPlayer_setItemStack($var6, $var17); - $ptr = 2; - continue main; - case 9: - $var16.$onPickupFromSlot($par4EntityPlayer, $var17); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - continue main; - case 10: - $var16.$putStack($var17); - if ($rt_suspending()) { - break main; - } - $var17 = nms_InventoryPlayer_getItemStack($var6); - $ptr = 9; - continue main; - case 11: - nms_InventoryPlayer_setInventorySlotContents($var6, $par2, $par4EntityPlayer); - if ($rt_suspending()) { - break main; - } - $ptr = 12; - case 12: - $var16.$putStack($var17); - if ($rt_suspending()) { - break main; - } - return $var5; - case 13: - $var16.$decrStackSize0($par1); - if ($rt_suspending()) { - break main; - } - $ptr = 14; - case 14: - $var16.$putStack($var17); - if ($rt_suspending()) { - break main; - } - $ptr = 15; - case 15: - $var16.$onPickupFromSlot($par4EntityPlayer, $var22); - if ($rt_suspending()) { - break main; - } - return $var5; - case 16: - $var16.$putStack($par4EntityPlayer); - if ($rt_suspending()) { - break main; - } - if (!$var20.$stackSize) - nms_InventoryPlayer_setItemStack($var6, null); - $ptr = 2; - continue main; - case 17: - $var16.$decrStackSize0($par1); - if ($rt_suspending()) { - break main; - } - $var17 = null; - $ptr = 18; - case 18: - $var16.$putStack($var17); - if ($rt_suspending()) { - break main; - } - $ptr = 19; - case 19: - $var16.$onPickupFromSlot($par4EntityPlayer, $var22); - if ($rt_suspending()) { - break main; - } - return $var5; - case 20: - $var11.$putStack($var12); - if ($rt_suspending()) { - break main; - } - while ($var10.$hasNext()) { - $var11 = $var10.$next(); - if ($var11 === null) - continue; - if (!nms_Container_func_94527_a($var11, nms_InventoryPlayer_getItemStack($var6), 1)) - continue; - if (!$var11.$isItemValid(nms_InventoryPlayer_getItemStack($var6))) - continue; - if (nms_InventoryPlayer_getItemStack($var6).$stackSize < ju_HashSet_size($this.$field_94537_h)) - continue; - if ($this.$func_94531_b($var11)) { - $var12 = nms_ItemStack_copy($var17); - $var13 = !$var11.$getHasStack() ? 0 : $var11.$getStack().$stackSize; - nms_Container_func_94525_a($this.$field_94537_h, $this.$field_94535_f, $var12, $var13); - if ($var12.$stackSize > nms_ItemStack_getMaxStackSize($var12)) - $var12.$stackSize = nms_ItemStack_getMaxStackSize($var12); - if ($var12.$stackSize > $var11.$getSlotStackLimit()) - $var12.$stackSize = $var11.$getSlotStackLimit(); - $var9 = $var9 - ($var12.$stackSize - $var13 | 0) | 0; - continue main; - } - } - $var17.$stackSize = $var9; - if ($var17.$stackSize <= 0) - $var17 = null; - nms_InventoryPlayer_setItemStack($var6, $var17); - nms_Container_func_94533_d($this); - return $var5; - case 21: - $tmp = $var16.$decrStackSize0($var19); - if ($rt_suspending()) { - break main; - } - $var17 = $tmp; - if ($var17.$stackSize) { - $var17 = nms_InventoryPlayer_getItemStack($var6); - $ptr = 22; - continue main; - } - $var17 = null; - $ptr = 23; - continue main; - case 22: - $var16.$onPickupFromSlot($par4EntityPlayer, $var17); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - continue main; - case 23: - $var16.$putStack($var17); - if ($rt_suspending()) { - break main; - } - $var17 = nms_InventoryPlayer_getItemStack($var6); - $ptr = 22; - continue main; - case 24: - $tmp = $var24.$decrStackSize0($var14); - if ($rt_suspending()) { - break main; - } - $var15 = $tmp; - $var17.$stackSize = $var17.$stackSize + $var14 | 0; - if ($var15.$stackSize > 0) { - $ptr = 25; - continue main; - } - $ptr = 26; - continue main; - case 25: - $var24.$onPickupFromSlot($par4EntityPlayer, $var15); - if ($rt_suspending()) { - break main; - } - h: { - a: while (true) { - $var23 = $var23 + $var19 | 0; - while (!($var23 >= 0 && $var23 < ju_ArrayList_size($this.$inventorySlots) && $var17.$stackSize < nms_ItemStack_getMaxStackSize($var17))) { - $var21 = $var21 + 1 | 0; - if ($var21 >= 2) - break a; - $var23 = $var9; - } - $var24 = ju_ArrayList_get($this.$inventorySlots, $var23); - if (!$var24.$getHasStack()) - continue; - if (!nms_Container_func_94527_a($var24, $var17, 1)) - continue; - if (!$var24.$canTakeStack($par4EntityPlayer)) - continue; - if (!$this.$func_94530_a($var17, $var24)) - continue; - if ($var21) - break h; - if ($var24.$getStack().$stackSize == nms_ItemStack_getMaxStackSize($var24.$getStack())) - continue; - else - break h; - } - $this.$detectAndSendChanges(); - return $var5; - } - $var14 = jl_Math_min0(nms_ItemStack_getMaxStackSize($var17) - $var17.$stackSize | 0, $var24.$getStack().$stackSize); - $ptr = 24; - continue main; - case 26: - $var24.$putStack($var22); - if ($rt_suspending()) { - break main; - } - $ptr = 25; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4EntityPlayer, $var5, $var6, $var7, $var8, $var17, $var9, $var10, $var11, $var12, $var13, $var16, $var18, $var19, $var22, $var24, $var21, $var23, $var14, $var20, $var15, $ptr); -} -function nms_Container_func_94530_a($this, $par1ItemStack, $par2Slot) { - return 1; -} -function nms_Container_retrySlotClick($this, $par1, $par2, $par3, $par4EntityPlayer) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4EntityPlayer = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par3 = 1; - $ptr = 1; - case 1: - nms_Container_slotClick($this, $par1, $par2, $par3, $par4EntityPlayer); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4EntityPlayer, $ptr); -} -function nms_Container_onCraftGuiClosed($this, $par1EntityPlayer) { - var $var2; - $var2 = $par1EntityPlayer.$inventory; - if ($var2.$itemStack !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, $var2.$itemStack, 0); - $var2.$itemStack = null; - } -} -function nms_Container_onCraftMatrixChanged($this, $par1IInventory) { - nms_Container_detectAndSendChanges($this); -} -function nms_Container_putStackInSlot($this, $par1, $par2ItemStack) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2ItemStack = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$3 = $this.$inventorySlots; - if ($par1 >= 0 && $par1 < var$3.$size0) { - var$3 = var$3.$array1.data[$par1]; - $ptr = 1; - continue main; - } - $par2ItemStack = new jl_IndexOutOfBoundsException; - $par2ItemStack.$suppressionEnabled = 1; - $par2ItemStack.$writableStackTrace = 1; - $rt_throw($par2ItemStack); - case 1: - var$3.$putStack($par2ItemStack); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2ItemStack, var$3, $ptr); -} -function nms_Container_putStacksInSlots($this, $par1ArrayOfItemStack) { - var $var2, var$3, 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();var$3 = $thread.pop();$var2 = $thread.pop();$par1ArrayOfItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = 0; - var$3 = $par1ArrayOfItemStack.data; - if ($var2 >= var$3.length) - return; - var$4 = $this.$inventorySlots; - if ($var2 >= 0 && $var2 < var$4.$size0) { - var$4 = var$4.$array1.data[$var2]; - var$5 = var$3[$var2]; - $ptr = 1; - continue main; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - case 1: - var$4.$putStack(var$5); - if ($rt_suspending()) { - break main; - } - $var2 = $var2 + 1 | 0; - var$3 = $par1ArrayOfItemStack.data; - if ($var2 >= var$3.length) - return; - var$4 = $this.$inventorySlots; - if ($var2 >= 0 && $var2 < var$4.$size0) { - var$4 = var$4.$array1.data[$var2]; - var$5 = var$3[$var2]; - continue main; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ArrayOfItemStack, $var2, var$3, var$4, var$5, $ptr); -} -function nms_Container_updateProgressBar($this, $par1, $par2) { - return; -} -function nms_Container_getNextTransactionID($this, $par1InventoryPlayer) { - $this.$transactionID = ($this.$transactionID + 1 | 0) << 16 >> 16; - return $this.$transactionID; -} -function nms_Container_mergeItemStack($this, $par1ItemStack, $par2, $par3, $par4) { - var var$5, $var7, $var7_0, $var8, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7_0 = $thread.pop();$var7 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$5 = !$par4 ? $par2 : $par3 - 1 | 0; - a: { - if (nms_ItemStack_isStackable($par1ItemStack)) { - while (true) { - if ($par1ItemStack.$stackSize <= 0) - break a; - if (!(!$par4 && var$5 < $par3)) { - if (!$par4) - break a; - if (var$5 < $par2) - break a; - } - $var7 = $this.$inventorySlots; - if (var$5 < 0) - break; - if (var$5 >= $var7.$size0) - break; - $var7_0 = $var7.$array1.data[var$5]; - $var8 = $var7_0.$getStack(); - if ($var8 !== null && $var8.$itemID0 == $par1ItemStack.$itemID0) { - nms_Item_$callClinit(); - if (!(nms_Item_itemsList.data[$par1ItemStack.$itemID0].$hasSubtypes && $par1ItemStack.$itemDamage != $var8.$itemDamage) && nms_ItemStack_areItemStackTagsEqual($par1ItemStack, $var8)) { - $var9 = $var8.$stackSize + $par1ItemStack.$stackSize | 0; - if ($var9 <= nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize) { - $par1ItemStack.$stackSize = 0; - $var8.$stackSize = $var9; - $ptr = 3; - continue main; - } - if ($var8.$stackSize < nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize) { - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize - $var8.$stackSize | 0) | 0; - $var8.$stackSize = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize; - $ptr = 4; - continue main; - } - } - } - if (!$par4) { - var$5 = var$5 + 1 | 0; - continue; - } - var$5 = var$5 + (-1) | 0; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - } - b: { - c: { - if ($par1ItemStack.$stackSize > 0) { - $var9 = !$par4 ? $par2 : $par3 - 1 | 0; - while (true) { - if (!(!$par4 && $var9 < $par3)) { - if (!$par4) - break c; - if ($var9 < $par2) - break; - } - $var7 = $this.$inventorySlots; - if ($var9 < 0) - break b; - if ($var9 >= $var7.$size0) - break b; - $var7 = $var7.$array1.data[$var9]; - if ($var7.$getStack() === null) { - $var7_0 = new nms_ItemStack; - $par2 = $par1ItemStack.$itemID0; - $par3 = $par1ItemStack.$stackSize; - $par4 = $par1ItemStack.$itemDamage; - $var7_0.$stackSize = 0; - $var7_0.$itemFrame = null; - $var7_0.$itemID0 = $par2; - $var7_0.$stackSize = $par3; - $var7_0.$itemDamage = $par4; - if ($var7_0.$itemDamage < 0) - $var7_0.$itemDamage = 0; - if ($par1ItemStack.$stackTagCompound !== null) - $var7_0.$stackTagCompound = nms_NBTTagCompound_copy($par1ItemStack.$stackTagCompound); - $ptr = 1; - continue main; - } - if (!$par4) { - $var9 = $var9 + 1 | 0; - continue; - } - $var9 = $var9 + (-1) | 0; - } - } - } - return 0; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - case 1: - $var7.$putStack($var7_0); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - $var7.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - $par1ItemStack.$stackSize = 0; - return 1; - case 3: - $var7_0.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - d: { - while (true) { - var$5 = !$par4 ? var$5 + 1 | 0 : var$5 + (-1) | 0; - if ($par1ItemStack.$stackSize <= 0) - break d; - if (!(!$par4 && var$5 < $par3)) { - if (!$par4) - break d; - if (var$5 < $par2) - break d; - } - $var7 = $this.$inventorySlots; - if (var$5 < 0) - break; - if (var$5 >= $var7.$size0) - break; - $var7_0 = $var7.$array1.data[var$5]; - $var8 = $var7_0.$getStack(); - if ($var8 === null) - continue; - if ($var8.$itemID0 != $par1ItemStack.$itemID0) - continue; - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$hasSubtypes && $par1ItemStack.$itemDamage != $var8.$itemDamage) - continue; - if (!nms_ItemStack_areItemStackTagsEqual($par1ItemStack, $var8)) - continue; - $var9 = $var8.$stackSize + $par1ItemStack.$stackSize | 0; - if ($var9 <= nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize) { - $par1ItemStack.$stackSize = 0; - $var8.$stackSize = $var9; - continue main; - } - if ($var8.$stackSize < nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize) { - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize - $var8.$stackSize | 0) | 0; - $var8.$stackSize = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize; - $ptr = 4; - continue main; - } - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - e: { - f: { - if ($par1ItemStack.$stackSize > 0) { - $var9 = !$par4 ? $par2 : $par3 - 1 | 0; - while (true) { - if (!(!$par4 && $var9 < $par3)) { - if (!$par4) - break f; - if ($var9 < $par2) - break; - } - $var7 = $this.$inventorySlots; - if ($var9 < 0) - break e; - if ($var9 >= $var7.$size0) - break e; - $var7 = $var7.$array1.data[$var9]; - if ($var7.$getStack() === null) { - $var7_0 = new nms_ItemStack; - $par2 = $par1ItemStack.$itemID0; - $par3 = $par1ItemStack.$stackSize; - $par4 = $par1ItemStack.$itemDamage; - $var7_0.$stackSize = 0; - $var7_0.$itemFrame = null; - $var7_0.$itemID0 = $par2; - $var7_0.$stackSize = $par3; - $var7_0.$itemDamage = $par4; - if ($var7_0.$itemDamage < 0) - $var7_0.$itemDamage = 0; - if ($par1ItemStack.$stackTagCompound !== null) - $var7_0.$stackTagCompound = nms_NBTTagCompound_copy($par1ItemStack.$stackTagCompound); - $ptr = 1; - continue main; - } - if (!$par4) { - $var9 = $var9 + 1 | 0; - continue; - } - $var9 = $var9 + (-1) | 0; - } - } - } - return 1; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - case 4: - $var7_0.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - d: { - while (true) { - var$5 = !$par4 ? var$5 + 1 | 0 : var$5 + (-1) | 0; - if ($par1ItemStack.$stackSize <= 0) - break d; - if (!(!$par4 && var$5 < $par3)) { - if (!$par4) - break d; - if (var$5 < $par2) - break d; - } - $var7 = $this.$inventorySlots; - if (var$5 < 0) - break; - if (var$5 >= $var7.$size0) - break; - $var7_0 = $var7.$array1.data[var$5]; - $var8 = $var7_0.$getStack(); - if ($var8 === null) - continue; - if ($var8.$itemID0 != $par1ItemStack.$itemID0) - continue; - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$hasSubtypes && $par1ItemStack.$itemDamage != $var8.$itemDamage) - continue; - if (!nms_ItemStack_areItemStackTagsEqual($par1ItemStack, $var8)) - continue; - $var9 = $var8.$stackSize + $par1ItemStack.$stackSize | 0; - if ($var9 <= nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize) { - $par1ItemStack.$stackSize = 0; - $var8.$stackSize = $var9; - $ptr = 3; - continue main; - } - if ($var8.$stackSize < nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize) { - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize - $var8.$stackSize | 0) | 0; - $var8.$stackSize = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize; - continue main; - } - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - e: { - f: { - if ($par1ItemStack.$stackSize > 0) { - $var9 = !$par4 ? $par2 : $par3 - 1 | 0; - while (true) { - if (!(!$par4 && $var9 < $par3)) { - if (!$par4) - break f; - if ($var9 < $par2) - break; - } - $var7 = $this.$inventorySlots; - if ($var9 < 0) - break e; - if ($var9 >= $var7.$size0) - break e; - $var7 = $var7.$array1.data[$var9]; - if ($var7.$getStack() === null) { - $var7_0 = new nms_ItemStack; - $par2 = $par1ItemStack.$itemID0; - $par3 = $par1ItemStack.$stackSize; - $par4 = $par1ItemStack.$itemDamage; - $var7_0.$stackSize = 0; - $var7_0.$itemFrame = null; - $var7_0.$itemID0 = $par2; - $var7_0.$stackSize = $par3; - $var7_0.$itemDamage = $par4; - if ($var7_0.$itemDamage < 0) - $var7_0.$itemDamage = 0; - if ($par1ItemStack.$stackTagCompound !== null) - $var7_0.$stackTagCompound = nms_NBTTagCompound_copy($par1ItemStack.$stackTagCompound); - $ptr = 1; - continue main; - } - if (!$par4) { - $var9 = $var9 + 1 | 0; - continue; - } - $var9 = $var9 + (-1) | 0; - } - } - } - return 1; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2, $par3, $par4, var$5, $var7, $var7_0, $var8, $var9, $ptr); -} -function nms_Container_func_94529_b($par0) { - return $par0 >> 2 & 3; -} -function nms_Container_func_94532_c($par0) { - return $par0 & 3; -} -function nms_Container_func_94534_d($par0, $par1) { - return $par0 & 3 | ($par1 & 3) << 2; -} -function nms_Container_func_94528_d($par0) { - return $par0 && $par0 != 1 ? 0 : 1; -} -function nms_Container_func_94533_d($this) { - var var$1, var$2; - $this.$field_94536_g = 0; - var$1 = $this.$field_94537_h.$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 nms_Container_func_94527_a($par0Slot, $par1ItemStack, $par2) { - var $var3, var$5, $var10002; - $var3 = $par0Slot !== null && $par0Slot.$getHasStack() ? 0 : 1; - if ($par0Slot !== null && $par0Slot.$getHasStack() && $par1ItemStack !== null) { - var$5 = $par0Slot.$getStack(); - if (($par1ItemStack.$itemID0 == var$5.$itemID0 && $par1ItemStack.$itemDamage == var$5.$itemDamage ? 1 : 0) && nms_ItemStack_areItemStackTagsEqual($par0Slot.$getStack(), $par1ItemStack)) { - $var10002 = !$par2 ? $par1ItemStack.$stackSize : 0; - $var10002 = $par0Slot.$getStack().$stackSize + $var10002 | 0; - nms_Item_$callClinit(); - $var3 = $var3 | ($var10002 > nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize ? 0 : 1); - } - } - return $var3; -} -function nms_Container_func_94525_a($par0Set, $par1, $par2ItemStack, $par3) { - var var$5; - a: { - switch ($par1) { - case 0: - var$5 = $par2ItemStack.$stackSize / $par0Set.$backingMap.$elementCount; - $par1 = var$5 | 0; - if (var$5 < $par1) - $par1 = $par1 - 1 | 0; - $par2ItemStack.$stackSize = $par1; - break a; - case 1: - break; - default: - break a; - } - $par2ItemStack.$stackSize = 1; - } - $par2ItemStack.$stackSize = $par2ItemStack.$stackSize + $par3 | 0; -} -function nms_Container_func_94531_b($this, $par1Slot) { - return 1; -} -function nms_Container_calcRedstoneFromInventory($par0IInventory) { - var $var1, $var2, $var3, $var4, var$6, var$7, var$8; - if ($par0IInventory === null) - return 0; - $var1 = 0; - $var2 = 0.0; - $var3 = 0; - while ($var3 < $par0IInventory.$getSizeInventory()) { - $var4 = $par0IInventory.$getStackInSlot($var3); - if ($var4 !== null) { - var$6 = $var4.$stackSize; - var$7 = $par0IInventory.$getInventoryStackLimit(); - nms_Item_$callClinit(); - var$8 = nms_Item_itemsList.data[$var4.$itemID0].$maxStackSize; - if (var$7 < var$8) - var$8 = var$7; - $var2 = $var2 + var$6 / var$8; - $var1 = $var1 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - $var2 = $var2 / $par0IInventory.$getSizeInventory() * 14.0; - $var3 = $var2 | 0; - if ($var2 < $var3) - $var3 = $var3 - 1 | 0; - return $var3 + ($var1 <= 0 ? 0 : 1) | 0; -} -function nms_EntityList() { - jl_Object.call(this); -} -var nms_EntityList_stringToClassMapping = null; -var nms_EntityList_classToStringMapping = null; -var nms_EntityList_IDtoClassMapping = null; -var nms_EntityList_classToIDMapping = null; -var nms_EntityList_stringToIDMapping = null; -var nms_EntityList_entityEggs = null; -function nms_EntityList__init_0() { - var var_0 = new nms_EntityList(); - nms_EntityList__init_(var_0); - return var_0; -} -function nms_EntityList__init_($this) { - return; -} -function nms_EntityList_addMapping($par0Class, $par1Str, $par2) { - ju_HashMap_putImpl(nms_EntityList_stringToClassMapping, $par1Str, $par0Class); - ju_HashMap_putImpl(nms_EntityList_classToStringMapping, $par0Class, $par1Str); - ju_HashMap_putImpl(nms_EntityList_IDtoClassMapping, jl_Integer_valueOf($par2), $par0Class); - ju_HashMap_putImpl(nms_EntityList_classToIDMapping, $par0Class, jl_Integer_valueOf($par2)); - ju_HashMap_putImpl(nms_EntityList_stringToIDMapping, $par1Str, jl_Integer_valueOf($par2)); -} -function nms_EntityList_addMapping0($par0Class, $par1Str, $par2, $par3, $par4) { - var var$6; - ju_HashMap_putImpl(nms_EntityList_stringToClassMapping, $par1Str, $par0Class); - ju_HashMap_putImpl(nms_EntityList_classToStringMapping, $par0Class, $par1Str); - ju_HashMap_putImpl(nms_EntityList_IDtoClassMapping, jl_Integer_valueOf($par2), $par0Class); - ju_HashMap_putImpl(nms_EntityList_classToIDMapping, $par0Class, jl_Integer_valueOf($par2)); - ju_HashMap_putImpl(nms_EntityList_stringToIDMapping, $par1Str, jl_Integer_valueOf($par2)); - $par0Class = nms_EntityList_entityEggs; - $par1Str = jl_Integer_valueOf($par2); - var$6 = new nms_EntityEggInfo; - var$6.$spawnedID = $par2; - var$6.$primaryColor = $par3; - var$6.$secondaryColor = $par4; - ju_LinkedHashMap_putImpl($par0Class, $par1Str, var$6); -} -function nms_EntityList_createEntityByID($par0, $par1World) { - var $var2, var$4, $var3, $var4, var$7, var$8, $$je; - $var2 = null; - a: { - try { - var$4 = $var2; - $var3 = nms_EntityList_getClassFromID($par0); - if ($var3 !== null) { - var$4 = $var2; - $var2 = jl_Class_newInstance($var3); - var$4 = $var2; - } - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var4 = $$je; - } else { - throw $$e; - } - } - 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; - var$7 = new jnci_UTF8Charset; - jnc_Charset__init_(var$7, $rt_s(2), $rt_createArray(jl_String, 0)); - $var3.$charset = var$7; - jl_System_errCache = $var3; - } - jl_Throwable_printStackTrace0($var4, jl_System_errCache); - $var2 = var$4; - } - if ($var2 !== null) { - $var2.$worldObj = $par1World; - $var2.$dimension = $par1World.$provider.$dimensionId; - } else { - if (jl_System_errCache === null) { - $var3 = new ji_PrintStream; - $var3.$out = new jl_ConsoleOutputStreamStderr; - $par1World = new jl_StringBuilder; - $par1World.$buffer = $rt_createCharArray(16); - $var3.$sb = $par1World; - $var3.$buffer0 = $rt_createCharArray(32); - $var3.$autoFlush = 0; - $par1World = new jnci_UTF8Charset; - jnc_Charset__init_($par1World, $rt_s(2), $rt_createArray(jl_String, 0)); - $var3.$charset = $par1World; - jl_System_errCache = $var3; - } - $var4 = jl_System_errCache; - $par1World = new jl_StringBuilder; - $par1World.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1World, $par1World.$length, $rt_s(1713)); - jl_AbstractStringBuilder_insert0($par1World, $par1World.$length, $par0, 10); - $var3 = jl_String__init_0($par1World.$buffer, 0, $par1World.$length); - $par1World = $var4.$sb; - jl_AbstractStringBuilder_insert($par1World, $par1World.$length, $var3); - var$8 = $par1World.$length; - jl_AbstractStringBuilder_insertSpace($par1World, var$8, var$8 + 1 | 0); - $par1World.$buffer.data[var$8] = 10; - ji_PrintStream_printSB($var4); - } - return $var2; -} -function nms_EntityList_getClassFromID($par0) { - var var$2, var$3, var$4; - var$2 = nms_EntityList_IDtoClassMapping; - var$3 = jl_Integer_valueOf($par0); - 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; - } - } - return var$2 === null ? null : var$2.$value0; -} -function nms_EntityList__clinit_() { - nms_EntityList_stringToClassMapping = ju_HashMap__init_1(16, 0.75); - nms_EntityList_classToStringMapping = ju_HashMap__init_1(16, 0.75); - nms_EntityList_IDtoClassMapping = ju_HashMap__init_1(16, 0.75); - nms_EntityList_classToIDMapping = ju_HashMap__init_1(16, 0.75); - nms_EntityList_stringToIDMapping = ju_HashMap__init_1(16, 0.75); - nms_EntityList_entityEggs = ju_LinkedHashMap__init_0(); - nms_EntityList_addMapping($rt_cls(nms_EntityItem), $rt_s(1714), 1); - nms_EntityList_addMapping($rt_cls(nms_EntityXPOrb), $rt_s(1715), 2); - nms_EntityList_addMapping($rt_cls(nms_EntityPainting), $rt_s(1716), 9); - nms_EntityList_addMapping($rt_cls(nms_EntityArrow), $rt_s(1717), 10); - nms_EntityList_addMapping($rt_cls(nms_EntitySnowball), $rt_s(1718), 11); - nms_EntityList_addMapping($rt_cls(nms_EntityLargeFireball), $rt_s(1719), 12); - nms_EntityList_addMapping($rt_cls(nms_EntitySmallFireball), $rt_s(1720), 13); - nms_EntityList_addMapping($rt_cls(nms_EntityEnderPearl), $rt_s(1721), 14); - nms_EntityList_addMapping($rt_cls(nms_EntityEnderEye), $rt_s(1722), 15); - nms_EntityList_addMapping($rt_cls(nms_EntityPotion), $rt_s(1723), 16); - nms_EntityList_addMapping($rt_cls(nms_EntityExpBottle), $rt_s(1724), 17); - nms_EntityList_addMapping($rt_cls(nms_EntityItemFrame), $rt_s(1725), 18); - nms_EntityList_addMapping($rt_cls(nms_EntityWitherSkull), $rt_s(1726), 19); - nms_EntityList_addMapping($rt_cls(nms_EntityTNTPrimed), $rt_s(1727), 20); - nms_EntityList_addMapping($rt_cls(nms_EntityFallingSand), $rt_s(1728), 21); - nms_EntityList_addMapping($rt_cls(nms_EntityFireworkRocket), $rt_s(1729), 22); - nms_EntityList_addMapping($rt_cls(nms_EntityBoat), $rt_s(1730), 41); - nms_EntityList_addMapping($rt_cls(nms_EntityMinecartEmpty), $rt_s(1731), 42); - nms_EntityList_addMapping($rt_cls(nms_EntityMinecartChest), $rt_s(1732), 43); - nms_EntityList_addMapping($rt_cls(nms_EntityMinecartFurnace), $rt_s(1733), 44); - nms_EntityList_addMapping($rt_cls(nms_EntityMinecartTNT), $rt_s(1734), 45); - nms_EntityList_addMapping($rt_cls(nms_EntityMinecartHopper), $rt_s(1735), 46); - nms_EntityList_addMapping($rt_cls(nms_EntityMinecartMobSpawner), $rt_s(1736), 47); - nms_EntityList_addMapping($rt_cls(nms_EntityLiving), $rt_s(1737), 48); - nms_EntityList_addMapping($rt_cls(nms_EntityMob), $rt_s(1738), 49); - nms_EntityList_addMapping0($rt_cls(nms_EntityCreeper), $rt_s(470), 50, 894731, 0); - nms_EntityList_addMapping0($rt_cls(nms_EntitySkeleton), $rt_s(463), 51, 12698049, 4802889); - nms_EntityList_addMapping0($rt_cls(nms_EntitySpider), $rt_s(1739), 52, 3419431, 11013646); - nms_EntityList_addMapping0($rt_cls(nms_EntityZombie), $rt_s(471), 54, 44975, 7969893); - nms_EntityList_addMapping0($rt_cls(nms_EntitySlime), $rt_s(466), 55, 5349438, 8306542); - nms_EntityList_addMapping0($rt_cls(nms_EntityGhast), $rt_s(1740), 56, 16382457, 12369084); - nms_EntityList_addMapping0($rt_cls(nms_EntityPigZombie), $rt_s(1741), 57, 15373203, 5009705); - nms_EntityList_addMapping0($rt_cls(nms_EntityEnderman), $rt_s(462), 58, 1447446, 0); - nms_EntityList_addMapping0($rt_cls(nms_EntityCaveSpider), $rt_s(1742), 59, 803406, 11013646); - nms_EntityList_addMapping0($rt_cls(nms_EntitySilverfish), $rt_s(1743), 60, 7237230, 3158064); - nms_EntityList_addMapping0($rt_cls(nms_EntityBlaze), $rt_s(464), 61, 16167425, 16775294); - nms_EntityList_addMapping0($rt_cls(nms_EntityMagmaCube), $rt_s(1744), 62, 3407872, 16579584); - nms_EntityList_addMapping($rt_cls(nms_EntityDragon), $rt_s(1745), 63); - nms_EntityList_addMapping($rt_cls(nms_EntityWither), $rt_s(1746), 64); - nms_EntityList_addMapping0($rt_cls(nms_EntityBat), $rt_s(1747), 65, 4996656, 986895); - nms_EntityList_addMapping0($rt_cls(nms_EntityWitch), $rt_s(1748), 66, 3407872, 5349438); - nms_EntityList_addMapping0($rt_cls(nms_EntityPig), $rt_s(472), 90, 15771042, 14377823); - nms_EntityList_addMapping0($rt_cls(nms_EntitySheep), $rt_s(1749), 91, 15198183, 16758197); - nms_EntityList_addMapping0($rt_cls(nms_EntityCow), $rt_s(1750), 92, 4470310, 10592673); - nms_EntityList_addMapping0($rt_cls(nms_EntityChicken), $rt_s(1751), 93, 10592673, 16711680); - nms_EntityList_addMapping0($rt_cls(nms_EntitySquid), $rt_s(473), 94, 2243405, 7375001); - nms_EntityList_addMapping0($rt_cls(nms_EntityWolf), $rt_s(1752), 95, 14144467, 13545366); - nms_EntityList_addMapping0($rt_cls(nms_EntityMooshroom), $rt_s(1753), 96, 10489616, 12040119); - nms_EntityList_addMapping($rt_cls(nms_EntitySnowman), $rt_s(1754), 97); - nms_EntityList_addMapping0($rt_cls(nms_EntityOcelot), $rt_s(1755), 98, 15720061, 5653556); - nms_EntityList_addMapping($rt_cls(nms_EntityIronGolem), $rt_s(1756), 99); - nms_EntityList_addMapping0($rt_cls(nms_EntityVillager), $rt_s(475), 120, 5651507, 12422002); - nms_EntityList_addMapping($rt_cls(nms_EntityEnderCrystal), $rt_s(1757), 200); -} -function jl_NegativeArraySizeException() { - jl_RuntimeException.call(this); -} -function jl_NegativeArraySizeException__init_0() { - var var_0 = new jl_NegativeArraySizeException(); - jl_NegativeArraySizeException__init_(var_0); - return var_0; -} -function jl_NegativeArraySizeException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function ji_UTFDataFormatException() { - ji_IOException.call(this); -} -function ji_UTFDataFormatException__init_0() { - var var_0 = new ji_UTFDataFormatException(); - ji_UTFDataFormatException__init_(var_0); - return var_0; -} -function ji_UTFDataFormatException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function nms_ITexturePack() { -} -function nms_TexturePackImplementation() { - var a = this; jl_Object.call(a); - a.$texturePackID = null; - a.$texturePackFileName = null; - a.$firstDescriptionLine = null; - a.$field_98141_g = null; - a.$thumbnailImage = null; - a.$thumbnailTextureName = 0; -} -var nms_TexturePackImplementation_tex_unknown_pack = null; -function nms_TexturePackImplementation_func_98138_b($this, $par1Str, $par2) { - var var$3, var$4, var$5, var$6, var$7, var$8, $var3; - nlea_EaglerAdapterImpl2_$callClinit(); - if (!($par1Str === $rt_s(58) ? 1 : jl_String_startsWith($par1Str, $rt_s(58), 0))) - var$3 = $par1Str; - else { - var$4 = $par1Str.$characters.data.length; - if (1 > var$4) { - $par1Str = new jl_IndexOutOfBoundsException; - jl_Exception__init_($par1Str); - $rt_throw($par1Str); - } - var$3 = jl_String__init_0($par1Str.$characters, 1, var$4 - 1 | 0); - } - var$5 = nle_AssetRepository_filePool; - if (var$3 !== null) { - var$4 = jl_String_hashCode(var$3); - var$3 = ju_HashMap_findNonNullKeyEntry(var$5, var$3, var$4 & (var$5.$elementData.data.length - 1 | 0), var$4); - } else { - var$3 = var$5.$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; - if (var$6 === null) - var$3 = null; - else { - var$7 = var$6.data; - var$3 = new ji_ByteArrayInputStream; - var$8 = var$7.length; - var$3.$buf = var$6; - var$3.$pos = 0; - var$3.$mark0 = 0; - var$3.$count0 = 0 + var$8 | 0; - } - $var3 = var$3 === null ? 0 : 1; - if (!$var3 && $par2 && $this.$field_98141_g !== null) - $var3 = $this.$field_98141_g.$func_98138_b($par1Str, $par2); - return $var3; -} -function nms_TexturePackImplementation__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1758); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - nms_TexturePackImplementation_tex_unknown_pack = var$1; -} -function nms_TexturePackDefault() { - nms_TexturePackImplementation.call(this); -} -function nms_TexturePackDefault__init_0() { - var var_0 = new nms_TexturePackDefault(); - nms_TexturePackDefault__init_(var_0); - return var_0; -} -function nms_TexturePackDefault__init_($this) { - var var$1, var$2, var$3, var$4; - var$1 = null; - $this.$thumbnailTextureName = (-1); - $this.$texturePackID = $rt_s(1759); - $this.$texturePackFileName = $rt_s(516); - $this.$field_98141_g = var$1; - nlea_EaglerAdapterImpl2_$callClinit(); - if (!($rt_s(1760) === $rt_s(58) ? 1 : jl_String_startsWith($rt_s(1760), $rt_s(58), 0))) - var$2 = $rt_s(1760); - else { - var$3 = $rt_s(1760).$characters.data.length; - if (1 > var$3) { - var$4 = new jl_IndexOutOfBoundsException; - jl_Exception__init_(var$4); - $rt_throw(var$4); - } - var$2 = jl_String__init_0($rt_s(1760).$characters, 1, var$3 - 1 | 0); - } - var$4 = nle_AssetRepository_filePool; - if (var$2 !== null) { - var$3 = jl_String_hashCode(var$2); - var$4 = ju_HashMap_findNonNullKeyEntry(var$4, var$2, var$3 & (var$4.$elementData.data.length - 1 | 0), var$3); - } else { - var$4 = var$4.$elementData.data[0]; - while (var$4 !== null && var$4.$key !== null) { - var$4 = var$4.$next1; - } - } - $this.$thumbnailImage = nle_EaglerImage_loadImage(var$4 === null ? null : var$4.$value0); - $this.$firstDescriptionLine = $rt_s(1761); -} -function nms_TexturePackDefault_loadDescription($this) { - $this.$firstDescriptionLine = $rt_s(1761); -} -function nms_TexturePackDefault_func_98140_c($this, $par1Str) { - var var$2, var$3, var$4, var$5, var$6; - nlea_EaglerAdapterImpl2_$callClinit(); - if (!($par1Str === $rt_s(58) ? 1 : jl_String_startsWith($par1Str, $rt_s(58), 0))) - var$2 = $par1Str; - else { - var$3 = $par1Str.$characters.data.length; - if (1 > var$3) { - $par1Str = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1Str); - $rt_throw($par1Str); - } - var$2 = jl_String__init_0($par1Str.$characters, 1, var$3 - 1 | 0); - } - $par1Str = nle_AssetRepository_filePool; - if (var$2 !== null) { - var$3 = jl_String_hashCode(var$2); - $par1Str = ju_HashMap_findNonNullKeyEntry($par1Str, var$2, var$3 & ($par1Str.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Str = $par1Str.$elementData.data[0]; - while ($par1Str !== null && $par1Str.$key !== null) { - $par1Str = $par1Str.$next1; - } - } - var$4 = $par1Str === null ? null : $par1Str.$value0; - if (var$4 === null) - $par1Str = null; - else { - var$5 = var$4.data; - $par1Str = new ji_ByteArrayInputStream; - var$6 = var$5.length; - $par1Str.$buf = var$4; - $par1Str.$pos = 0; - $par1Str.$mark0 = 0; - $par1Str.$count0 = 0 + var$6 | 0; - } - return $par1Str === null ? 0 : 1; -} -function nms_TexturePackDefault_getResourceAsBytes($this, $par1Str) { - var var$2, var$3; - nlea_EaglerAdapterImpl2_$callClinit(); - if (!($par1Str === $rt_s(58) ? 1 : jl_String_startsWith($par1Str, $rt_s(58), 0))) - var$2 = $par1Str; - else { - var$3 = $par1Str.$characters.data.length; - if (1 > var$3) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Str); - $rt_throw($par1Str); - } - var$2 = jl_String__init_0($par1Str.$characters, 1, var$3 - 1 | 0); - } - $par1Str = nle_AssetRepository_filePool; - if (var$2 !== null) { - var$3 = jl_String_hashCode(var$2); - $par1Str = ju_HashMap_findNonNullKeyEntry($par1Str, var$2, var$3 & ($par1Str.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Str = $par1Str.$elementData.data[0]; - while ($par1Str !== null && $par1Str.$key !== null) { - $par1Str = $par1Str.$next1; - } - } - return $par1Str === null ? null : $par1Str.$value0; -} -function nms_IntHashMapEntry() { - var a = this; jl_Object.call(a); - a.$hashEntry = 0; - a.$valueEntry = null; - a.$nextEntry0 = null; - a.$slotHash = 0; -} -function nms_Icon() { -} -function nle_TextureTerrainMap$TerrainIcon() { - var a = this; jl_Object.call(a); - a.$map = null; - a.$name8 = null; - a.$id5 = 0; - a.$frames = null; - a.$framesIdx = null; - a.$originX = 0; - a.$originY = 0; - a.$minU0 = 0.0; - a.$maxU0 = 0.0; - a.$minV0 = 0.0; - a.$maxV0 = 0.0; - a.$originX_center = 0; - a.$originY_center = 0; - a.$minU_center = 0.0; - a.$maxU_center = 0.0; - a.$minV_center = 0.0; - a.$maxV_center = 0.0; - a.$frameCounter = 0; - a.$frameCurrent = 0; -} -function nle_TextureTerrainMap$TerrainIcon__init_0(var_0, var_1, var_2) { - var var_3 = new nle_TextureTerrainMap$TerrainIcon(); - nle_TextureTerrainMap$TerrainIcon__init_(var_3, var_0, var_1, var_2); - return var_3; -} -function nle_TextureTerrainMap$TerrainIcon__init_($this, $id, $map, $name) { - $this.$frames = null; - $this.$framesIdx = null; - $this.$frameCounter = 0; - $this.$frameCurrent = 0; - $this.$id5 = $id; - $this.$map = $map; - $this.$name8 = $name; - nle_TextureTerrainMap_$callClinit(); - $this.$originX = ($id % ($map.$width2 / 48 | 0) | 0) * 48 | 0; - $this.$originY = ($id / ($map.$width2 / 48 | 0) | 0) * 48 | 0; - $this.$minU0 = $this.$originX / $map.$width2; - $this.$minV0 = $this.$originY / $map.$height2; - $this.$maxU0 = ($this.$originX + 48 | 0) / $map.$width2; - $this.$maxV0 = ($this.$originY + 48 | 0) / $map.$height2; - $this.$originX_center = $this.$originX + 16 | 0; - $this.$originY_center = $this.$originY + 16 | 0; - $this.$minU_center = $this.$originX_center / $map.$width2; - $this.$minV_center = $this.$originY_center / $map.$height2; - $this.$maxU_center = ($this.$originX_center + 16 | 0) / $map.$width2; - $this.$maxV_center = ($this.$originY_center + 16 | 0) / $map.$height2; -} -function nle_TextureTerrainMap$TerrainIcon_getOriginX($this) { - return $this.$originX_center; -} -function nle_TextureTerrainMap$TerrainIcon_getOriginY($this) { - return $this.$originY_center; -} -function nle_TextureTerrainMap$TerrainIcon_getMinU($this) { - return $this.$minU_center; -} -function nle_TextureTerrainMap$TerrainIcon_getMaxU($this) { - return $this.$maxU_center; -} -function nle_TextureTerrainMap$TerrainIcon_getInterpolatedU($this, $var1) { - var $var3; - $var3 = $this.$maxU_center - $this.$minU_center; - return $this.$minU_center + $var3 * $var1 / 16.0; -} -function nle_TextureTerrainMap$TerrainIcon_getMinV($this) { - return $this.$minV_center; -} -function nle_TextureTerrainMap$TerrainIcon_getMaxV($this) { - return $this.$maxV_center; -} -function nle_TextureTerrainMap$TerrainIcon_getInterpolatedV($this, $var1) { - var $var3; - $var3 = $this.$maxV_center - $this.$minV_center; - return $this.$minV_center + $var3 * $var1 / 16.0; -} -function nle_TextureTerrainMap$TerrainIcon_getIconName($this) { - return $this.$name8 !== null ? $this.$name8 : $rt_s(727); -} -function nle_TextureTerrainMap$TerrainIcon_getSheetWidth($this) { - var var$1; - var$1 = $this.$map; - nle_TextureTerrainMap_$callClinit(); - return var$1.$width2; -} -function nle_TextureTerrainMap$TerrainIcon_getSheetHeight($this) { - var var$1; - var$1 = $this.$map; - nle_TextureTerrainMap_$callClinit(); - return var$1.$height2; -} -function nle_TextureTerrainMap$TerrainIcon_updateAnimation($this) { - var $i, var$2, var$3; - if ($this.$frames !== null) { - $this.$frameCounter = ($this.$frameCounter + 1 | 0) % $this.$framesIdx.data.length | 0; - $i = $this.$framesIdx.data[$this.$frameCounter]; - if ($this.$frameCurrent != $i) { - $this.$frameCurrent = $i; - var$2 = $this.$map; - var$3 = $this.$frames.data[$i]; - nle_TextureTerrainMap_$callClinit(); - nle_TextureTerrainMap_replaceTexture(var$2, $this, var$3); - } - } -} -function nle_TextureTerrainMap$TerrainIcon_loadData($this) { - var $img, $dat, $i, $fd, $divs, $i_0, $len, var$8, $j, $i_1, $c, $l, $k; - $img = new jl_StringBuilder; - $img.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($img, $img.$length, $rt_s(58)); - $dat = $this.$map; - nle_TextureTerrainMap_$callClinit(); - $dat = $dat.$basePath; - jl_AbstractStringBuilder_insert($img, $img.$length, $dat); - $dat = $this.$name8; - jl_AbstractStringBuilder_insert($img, $img.$length, $dat); - jl_AbstractStringBuilder_insert($img, $img.$length, $rt_s(1173)); - $dat = jl_String__init_0($img.$buffer, 0, $img.$length); - nlea_EaglerAdapterImpl2_$callClinit(); - if (!($dat === $rt_s(58) ? 1 : jl_String_startsWith($dat, $rt_s(58), 0))) - $img = $dat; - else { - $i = $dat.$characters.data.length; - if (1 > $i) { - $img = new jl_IndexOutOfBoundsException; - $img.$suppressionEnabled = 1; - $img.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($img); - $rt_throw($img); - } - $img = jl_String__init_0($dat.$characters, 1, $i - 1 | 0); - } - $dat = nle_AssetRepository_filePool; - if ($img !== null) { - $i = jl_String_hashCode($img); - $img = ju_HashMap_findNonNullKeyEntry($dat, $img, $i & ($dat.$elementData.data.length - 1 | 0), $i); - } else { - $img = $dat.$elementData.data[0]; - while ($img !== null && $img.$key !== null) { - $img = $img.$next1; - } - } - $fd = $img === null ? null : $img.$value0; - if ($fd === null) - nle_TextureTerrainMap_access$200($this.$map, $this, nle_TextureTerrainMap_access$400($this.$map)); - else { - $img = nle_EaglerImage_loadImage($fd); - if ($img === null) - nle_TextureTerrainMap_access$200($this.$map, $this, nle_TextureTerrainMap_access$400($this.$map)); - else { - $divs = $img.$h / 16 | 0; - if ($divs == 1) { - $this.$frames = null; - $this.$framesIdx = null; - nle_TextureTerrainMap_access$200($this.$map, $this, nle_TextureTerrainMap_generateMip($img)); - } else { - $this.$frames = $rt_createArray($rt_arraycls(nle_EaglerImage), $divs); - $i = 0; - while ($i < $divs) { - $this.$frames.data[$i] = nle_TextureTerrainMap_generateMip(nle_EaglerImage_getSubImage($img, 0, $i * 16 | 0, 16, 16)); - $i = $i + 1 | 0; - } - $img = new jl_StringBuilder; - jl_AbstractStringBuilder__init_($img); - $dat = nlea_EaglerAdapterImpl2_fileContents(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0($img, $rt_s(58)), nle_TextureTerrainMap_access$300($this.$map)), $this.$name8), $rt_s(793)))); - if ($dat !== null) - ji_PrintStream_println0(jl_System_out(), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1176)), nle_TextureTerrainMap_access$300($this.$map)), $this.$name8), $rt_s(1173)))); - a: { - b: { - if ($dat !== null) { - $img = jl_String_trim($dat); - if (!jl_String_isEmpty($img)) - break b; - } - $this.$framesIdx = $rt_createIntArray($this.$frames.data.length); - $i_0 = 0; - while ($i_0 < $this.$frames.data.length) { - $this.$framesIdx.data[$i_0] = $i_0; - $i_0 = $i_0 + 1 | 0; - } - break a; - } - $fd = jl_String_split($img, $rt_s(267)); - $len = 0; - $i_0 = 0; - while (true) { - var$8 = $fd.data; - $divs = var$8.length; - if ($i_0 >= $divs) - break; - $j = jl_String_indexOf0(var$8[$i_0], 42); - $len = $len + ($j == (-1) ? 1 : jl_Integer_parseInt0(jl_String_substring(var$8[$i_0], $j + 1 | 0))) | 0; - $i_0 = $i_0 + 1 | 0; - } - $this.$framesIdx = $rt_createIntArray($len); - $i_0 = 0; - $i_1 = 0; - while (true) { - if ($i_1 >= $divs) - break a; - $j = jl_String_indexOf0(var$8[$i_1], 42); - if ($j == (-1)) { - $fd = $this.$framesIdx.data; - $i = $i_0 + 1 | 0; - $fd[$i_0] = jl_Integer_parseInt0(var$8[$i_1]); - } else { - $c = jl_Integer_parseInt0(jl_String_substring0(var$8[$i_1], 0, $j)); - $l = jl_Integer_parseInt0(jl_String_substring(var$8[$i_1], $j + 1 | 0)); - $k = 0; - while ($k < $l) { - $fd = $this.$framesIdx.data; - $i = $i_0 + 1 | 0; - $fd[$i_0] = $c; - $k = $k + 1 | 0; - $i_0 = $i; - } - $i = $i_0; - } - $i_1 = $i_1 + 1 | 0; - $i_0 = $i; - } - } - nle_TextureTerrainMap_access$200($this.$map, $this, $this.$frames.data[$this.$framesIdx.data[0]]); - } - } - } -} -function jn_FloatBuffer() { - jn_Buffer.call(this); -} -function jn_FloatBuffer_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(1762)); - 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; - $i = 0; - while ($i < $length) { - var$11 = $offset + 1 | 0; - var$5 = $pos + 1 | 0; - var$4[$offset] = $this.$getElement0($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_FloatBuffer_get0($this, $dst) { - return jn_FloatBuffer_get($this, $dst, 0, $dst.data.length); -} -function jn_FloatBuffer_clear($this) { - $this.$position = 0; - $this.$limit = $this.$capacity; - $this.$mark = (-1); - return $this; -} -function jn_FloatBuffer_flip($this) { - $this.$limit = $this.$position; - $this.$position = 0; - $this.$mark = (-1); - return $this; -} -function jn_FloatBuffer_limit($this, $newLimit) { - jn_Buffer_limit0($this, $newLimit); - return $this; -} -function jn_FloatBuffer_position($this, $newPosition) { - jn_Buffer_position0($this, $newPosition); - return $this; -} -function nms_ModelSpider() { - var a = this; nms_ModelBase.call(a); - a.$spiderHead = null; - a.$spiderNeck = null; - a.$spiderBody = null; - a.$spiderLeg1 = null; - a.$spiderLeg2 = null; - a.$spiderLeg3 = null; - a.$spiderLeg4 = null; - a.$spiderLeg5 = null; - a.$spiderLeg6 = null; - a.$spiderLeg7 = null; - a.$spiderLeg8 = null; -} -function nms_ModelSpider__init_0() { - var var_0 = new nms_ModelSpider(); - nms_ModelSpider__init_(var_0); - return var_0; -} -function nms_ModelSpider__init_($this) { - var var$1, var$2; - nms_ModelBase__init_0($this); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 32; - var$1.$textureOffsetY0 = 4; - $this.$spiderHead = var$1; - var$2 = $this.$spiderHead; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-4.0), (-4.0), (-8.0), 8, 8, 8, 0.0)); - var$1 = $this.$spiderHead; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 15.0; - var$1.$rotationPointZ = (-3.0); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - $this.$spiderNeck = var$1; - var$2 = $this.$spiderNeck; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-3.0), (-3.0), (-3.0), 6, 6, 6, 0.0)); - var$1 = $this.$spiderNeck; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 15.0; - var$1.$rotationPointZ = 0.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 12; - $this.$spiderBody = var$1; - var$1 = $this.$spiderBody; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-5.0), (-4.0), (-6.0), 10, 8, 12, 0.0)); - var$1 = $this.$spiderBody; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 15.0; - var$1.$rotationPointZ = 9.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 18; - var$1.$textureOffsetY0 = 0; - $this.$spiderLeg1 = var$1; - var$1 = $this.$spiderLeg1; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-15.0), (-1.0), (-1.0), 16, 2, 2, 0.0)); - var$1 = $this.$spiderLeg1; - var$1.$rotationPointX = (-4.0); - var$1.$rotationPointY = 15.0; - var$1.$rotationPointZ = 2.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 18; - var$1.$textureOffsetY0 = 0; - $this.$spiderLeg2 = var$1; - var$1 = $this.$spiderLeg2; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), (-1.0), (-1.0), 16, 2, 2, 0.0)); - var$1 = $this.$spiderLeg2; - var$1.$rotationPointX = 4.0; - var$1.$rotationPointY = 15.0; - var$1.$rotationPointZ = 2.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 18; - var$1.$textureOffsetY0 = 0; - $this.$spiderLeg3 = var$1; - var$1 = $this.$spiderLeg3; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-15.0), (-1.0), (-1.0), 16, 2, 2, 0.0)); - var$1 = $this.$spiderLeg3; - var$1.$rotationPointX = (-4.0); - var$1.$rotationPointY = 15.0; - var$1.$rotationPointZ = 1.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 18; - var$1.$textureOffsetY0 = 0; - $this.$spiderLeg4 = var$1; - var$1 = $this.$spiderLeg4; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), (-1.0), (-1.0), 16, 2, 2, 0.0)); - nms_ModelRenderer_setRotationPoint($this.$spiderLeg4, 4.0, 15.0, 1.0); - $this.$spiderLeg5 = nms_ModelRenderer__init_1($this, 18, 0); - nms_ModelRenderer_addBox($this.$spiderLeg5, (-15.0), (-1.0), (-1.0), 16, 2, 2, 0.0); - nms_ModelRenderer_setRotationPoint($this.$spiderLeg5, (-4.0), 15.0, 0.0); - $this.$spiderLeg6 = nms_ModelRenderer__init_1($this, 18, 0); - nms_ModelRenderer_addBox($this.$spiderLeg6, (-1.0), (-1.0), (-1.0), 16, 2, 2, 0.0); - nms_ModelRenderer_setRotationPoint($this.$spiderLeg6, 4.0, 15.0, 0.0); - $this.$spiderLeg7 = nms_ModelRenderer__init_1($this, 18, 0); - nms_ModelRenderer_addBox($this.$spiderLeg7, (-15.0), (-1.0), (-1.0), 16, 2, 2, 0.0); - nms_ModelRenderer_setRotationPoint($this.$spiderLeg7, (-4.0), 15.0, (-1.0)); - $this.$spiderLeg8 = nms_ModelRenderer__init_1($this, 18, 0); - nms_ModelRenderer_addBox($this.$spiderLeg8, (-1.0), (-1.0), (-1.0), 16, 2, 2, 0.0); - nms_ModelRenderer_setRotationPoint($this.$spiderLeg8, 4.0, 15.0, (-1.0)); -} -function nms_ModelSpider_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - nms_ModelSpider_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - nms_ModelRenderer_render($this.$spiderHead, $par7); - nms_ModelRenderer_render($this.$spiderNeck, $par7); - nms_ModelRenderer_render($this.$spiderBody, $par7); - nms_ModelRenderer_render($this.$spiderLeg1, $par7); - nms_ModelRenderer_render($this.$spiderLeg2, $par7); - nms_ModelRenderer_render($this.$spiderLeg3, $par7); - nms_ModelRenderer_render($this.$spiderLeg4, $par7); - nms_ModelRenderer_render($this.$spiderLeg5, $par7); - nms_ModelRenderer_render($this.$spiderLeg6, $par7); - nms_ModelRenderer_render($this.$spiderLeg7, $par7); - nms_ModelRenderer_render($this.$spiderLeg8, $par7); -} -function nms_ModelSpider_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var11, $var12, $var13, $var14, $var15, $var16, $var17, $var18; - $this.$spiderHead.$rotateAngleY = $par4 / 57.2957763671875; - $this.$spiderHead.$rotateAngleX = $par5 / 57.2957763671875; - $this.$spiderLeg1.$rotateAngleZ = (-0.7853981852531433); - $this.$spiderLeg2.$rotateAngleZ = 0.7853981852531433; - $this.$spiderLeg3.$rotateAngleZ = (-0.5811946392059326); - $this.$spiderLeg4.$rotateAngleZ = 0.5811946392059326; - $this.$spiderLeg5.$rotateAngleZ = (-0.5811946392059326); - $this.$spiderLeg6.$rotateAngleZ = 0.5811946392059326; - $this.$spiderLeg7.$rotateAngleZ = (-0.7853981852531433); - $this.$spiderLeg8.$rotateAngleZ = 0.7853981852531433; - $this.$spiderLeg1.$rotateAngleY = 0.7853981852531433; - $this.$spiderLeg2.$rotateAngleY = (-0.7853981852531433); - $this.$spiderLeg3.$rotateAngleY = 0.39269909262657166; - $this.$spiderLeg4.$rotateAngleY = (-0.39269909262657166); - $this.$spiderLeg5.$rotateAngleY = (-0.39269909262657166); - $this.$spiderLeg6.$rotateAngleY = 0.39269909262657166; - $this.$spiderLeg7.$rotateAngleY = (-0.7853981852531433); - $this.$spiderLeg8.$rotateAngleY = 0.7853981852531433; - $par1 = $par1 * 0.6661999821662903; - $par4 = $par1 * 2.0; - $par3 = $par4 + 0.0; - $var11 = -(nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.4000000059604645) * $par2; - $par3 = $par4 + 3.1415927410125732; - $var12 = -(nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.4000000059604645) * $par2; - $par3 = $par4 + 1.5707963705062866; - $var13 = -(nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.4000000059604645) * $par2; - $par3 = $par4 + 4.71238899230957; - $var14 = -(nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.4000000059604645) * $par2; - $par3 = $par1 + 0.0; - $par3 = nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 | 0) & 65535] * 0.4000000059604645; - if ($par3 <= 0.0) - $par3 = -$par3; - $var15 = $par3 * $par2; - $par3 = $par1 + 3.1415927410125732; - $par3 = nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 | 0) & 65535] * 0.4000000059604645; - if ($par3 <= 0.0) - $par3 = -$par3; - $var16 = $par3 * $par2; - $par4 = $par1 + 1.5707963705062866; - $par4 = nms_MathHelper_SIN_TABLE.data[($par4 * 10430.3779296875 | 0) & 65535] * 0.4000000059604645; - if ($par4 <= 0.0) - $par4 = -$par4; - $var17 = $par4 * $par2; - $par3 = $par1 + 4.71238899230957; - $par3 = nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 | 0) & 65535] * 0.4000000059604645; - if ($par3 <= 0.0) - $par3 = -$par3; - $var18 = $par3 * $par2; - $par7Entity = $this.$spiderLeg1; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + $var11; - $par7Entity = $this.$spiderLeg2; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + -$var11; - $par7Entity = $this.$spiderLeg3; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + $var12; - $par7Entity = $this.$spiderLeg4; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + -$var12; - $par7Entity = $this.$spiderLeg5; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + $var13; - $par7Entity = $this.$spiderLeg6; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + -$var13; - $par7Entity = $this.$spiderLeg7; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + $var14; - $par7Entity = $this.$spiderLeg8; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + -$var14; - $par7Entity = $this.$spiderLeg1; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ + $var15; - $par7Entity = $this.$spiderLeg2; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ + -$var15; - $par7Entity = $this.$spiderLeg3; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ + $var16; - $par7Entity = $this.$spiderLeg4; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ + -$var16; - $par7Entity = $this.$spiderLeg5; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ + $var17; - $par7Entity = $this.$spiderLeg6; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ + -$var17; - $par7Entity = $this.$spiderLeg7; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ + $var18; - $par7Entity = $this.$spiderLeg8; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ + -$var18; -} -function nms_ModelRenderer() { - var a = this; jl_Object.call(a); - a.$textureWidth0 = 0.0; - a.$textureHeight0 = 0.0; - a.$textureOffsetX0 = 0; - a.$textureOffsetY0 = 0; - a.$rotationPointX = 0.0; - a.$rotationPointY = 0.0; - a.$rotationPointZ = 0.0; - a.$rotateAngleX = 0.0; - a.$rotateAngleY = 0.0; - a.$rotateAngleZ = 0.0; - a.$compiled = 0; - a.$displayList = 0; - a.$mirror = 0; - a.$showModel = 0; - a.$isHidden = 0; - a.$cubeList = null; - a.$childModels = null; - a.$boxName = null; - a.$baseModel = null; - a.$field_82906_o = 0.0; - a.$field_82908_p = 0.0; - a.$field_82907_q = 0.0; -} -function nms_ModelRenderer__init_(var_0, var_1) { - var var_2 = new nms_ModelRenderer(); - nms_ModelRenderer__init_2(var_2, var_0, var_1); - return var_2; -} -function nms_ModelRenderer__init_0(var_0) { - var var_1 = new nms_ModelRenderer(); - nms_ModelRenderer__init_3(var_1, var_0); - return var_1; -} -function nms_ModelRenderer__init_1(var_0, var_1, var_2) { - var var_3 = new nms_ModelRenderer(); - nms_ModelRenderer__init_4(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ModelRenderer__init_2($this, $par1ModelBase, $par2Str) { - var var$3, var$4, var$5; - $this.$textureWidth0 = 64.0; - $this.$textureHeight0 = 32.0; - $this.$compiled = 0; - $this.$displayList = 0; - $this.$mirror = 0; - $this.$showModel = 1; - $this.$isHidden = 0; - var$3 = new ju_ArrayList; - var$3.$array1 = $rt_createArray(jl_Object, 10); - $this.$cubeList = var$3; - $this.$baseModel = $par1ModelBase; - ju_ArrayList_add($par1ModelBase.$boxList, $this); - $this.$boxName = $par2Str; - var$4 = $par1ModelBase.$textureWidth; - var$5 = $par1ModelBase.$textureHeight; - $this.$textureWidth0 = var$4; - $this.$textureHeight0 = var$5; -} -function nms_ModelRenderer__init_3($this, $par1ModelBase) { - nms_ModelRenderer__init_2($this, $par1ModelBase, null); -} -function nms_ModelRenderer__init_4($this, $par1ModelBase, $par2, $par3) { - nms_ModelRenderer__init_2($this, $par1ModelBase, null); - $this.$textureOffsetX0 = $par2; - $this.$textureOffsetY0 = $par3; -} -function nms_ModelRenderer_addChild($this, $par1ModelRenderer) { - var var$2; - if ($this.$childModels === null) { - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $this.$childModels = var$2; - } - ju_ArrayList_add($this.$childModels, $par1ModelRenderer); -} -function nms_ModelRenderer_setTextureOffset($this, $par1, $par2) { - $this.$textureOffsetX0 = $par1; - $this.$textureOffsetY0 = $par2; - return $this; -} -function nms_ModelRenderer_addBox0($this, $par1Str, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, var$9, var$10, var$11; - $var8 = new jl_StringBuilder; - $var8.$buffer = $rt_createCharArray(16); - var$9 = $this.$boxName; - jl_AbstractStringBuilder_insert($var8, $var8.$length, var$9); - jl_AbstractStringBuilder_insert($var8, $var8.$length, $rt_s(303)); - jl_AbstractStringBuilder_insert($var8, $var8.$length, $par1Str); - var$9 = jl_String__init_0($var8.$buffer, 0, $var8.$length); - $par1Str = $this.$baseModel.$modelTextureMap; - var$10 = jl_String_hashCode(var$9); - $par1Str = ju_HashMap_findNonNullKeyEntry($par1Str, var$9, var$10 & ($par1Str.$elementData.data.length - 1 | 0), var$10); - $var8 = $par1Str === null ? null : $par1Str.$value0; - var$10 = $var8.$textureOffsetX; - var$11 = $var8.$textureOffsetY; - $this.$textureOffsetX0 = var$10; - $this.$textureOffsetY0 = var$11; - $par1Str = $this.$cubeList; - $var8 = nms_ModelBox__init_($this, $this.$textureOffsetX0, $this.$textureOffsetY0, $par2, $par3, $par4, $par5, $par6, $par7, 0.0); - $var8.$field_78247_g = var$9; - ju_ArrayList_add($par1Str, $var8); - return $this; -} -function nms_ModelRenderer_addBox1($this, $par1, $par2, $par3, $par4, $par5, $par6) { - ju_ArrayList_add($this.$cubeList, nms_ModelBox__init_($this, $this.$textureOffsetX0, $this.$textureOffsetY0, $par1, $par2, $par3, $par4, $par5, $par6, 0.0)); - return $this; -} -function nms_ModelRenderer_addBox($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7) { - ju_ArrayList_add($this.$cubeList, nms_ModelBox__init_($this, $this.$textureOffsetX0, $this.$textureOffsetY0, $par1, $par2, $par3, $par4, $par5, $par6, $par7)); -} -function nms_ModelRenderer_setRotationPoint($this, $par1, $par2, $par3) { - $this.$rotationPointX = $par1; - $this.$rotationPointY = $par2; - $this.$rotationPointZ = $par3; -} -function nms_ModelRenderer_render($this, $par1) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, $var2; - if (!$this.$isHidden && $this.$showModel) { - if (!$this.$compiled) - nms_ModelRenderer_compileDisplayList($this, $par1); - var$2 = $this.$field_82906_o; - var$3 = $this.$field_82908_p; - var$4 = $this.$field_82907_q; - nleg_EaglerAdapterGL30_$callClinit(); - var$5 = nleg_EaglerAdapterGL30_deevis; - var$5.$x = var$2; - var$5.$y = var$3; - var$5.$z = var$4; - var$5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(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); - } - a: { - if ($this.$rotateAngleX === 0.0 && $this.$rotateAngleY === 0.0 && $this.$rotateAngleZ === 0.0) { - if ($this.$rotationPointX === 0.0 && $this.$rotationPointY === 0.0 && $this.$rotationPointZ === 0.0) { - nleg_EaglerAdapterGL30_glCallList($this.$displayList); - if ($this.$childModels === null) - break a; - $var2 = 0; - while (true) { - if ($var2 >= $this.$childModels.$size0) - break a; - nms_ModelRenderer_render(ju_ArrayList_get($this.$childModels, $var2), $par1); - $var2 = $var2 + 1 | 0; - } - } - b: { - nleg_EaglerAdapterGL30_glTranslatef($this.$rotationPointX * $par1, $this.$rotationPointY * $par1, $this.$rotationPointZ * $par1); - nleg_EaglerAdapterGL30_glCallList($this.$displayList); - if ($this.$childModels !== null) { - $var2 = 0; - while (true) { - if ($var2 >= ju_ArrayList_size($this.$childModels)) - break b; - nms_ModelRenderer_render(ju_ArrayList_get($this.$childModels, $var2), $par1); - $var2 = $var2 + 1 | 0; - } - } - } - nleg_EaglerAdapterGL30_glTranslatef( -$this.$rotationPointX * $par1, -$this.$rotationPointY * $par1, -$this.$rotationPointZ * $par1); - } else { - nleg_EaglerAdapterGL30_glPushMatrix(); - var$2 = $this.$rotationPointX * $par1; - var$3 = $this.$rotationPointY * $par1; - var$4 = $this.$rotationPointZ * $par1; - var$5 = nleg_EaglerAdapterGL30_deevis; - var$5.$x = var$2; - var$5.$y = var$3; - var$5.$z = var$4; - var$5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(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$6.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = var$6; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - if ($this.$rotateAngleZ !== 0.0) - nleg_EaglerAdapterGL30_glRotatef($this.$rotateAngleZ * 57.2957763671875, 0.0, 0.0, 1.0); - if ($this.$rotateAngleY !== 0.0) - nleg_EaglerAdapterGL30_glRotatef($this.$rotateAngleY * 57.2957763671875, 0.0, 1.0, 0.0); - if ($this.$rotateAngleX !== 0.0) - nleg_EaglerAdapterGL30_glRotatef($this.$rotateAngleX * 57.2957763671875, 1.0, 0.0, 0.0); - c: { - nleg_EaglerAdapterGL30_glCallList($this.$displayList); - if ($this.$childModels !== null) { - $var2 = 0; - while (true) { - if ($var2 >= ju_ArrayList_size($this.$childModels)) - break c; - nms_ModelRenderer_render(ju_ArrayList_get($this.$childModels, $var2), $par1); - $var2 = $var2 + 1 | 0; - } - } - } - nleg_EaglerAdapterGL30_glPopMatrix(); - } - } - nleg_EaglerAdapterGL30_glTranslatef( -$this.$field_82906_o, -$this.$field_82908_p, -$this.$field_82907_q); - } -} -function nms_ModelRenderer_renderWithRotation($this, $par1) { - var var$2, var$3, var$4, var$5, var$6, var$7; - if (!$this.$isHidden && $this.$showModel) { - if (!$this.$compiled) - nms_ModelRenderer_compileDisplayList($this, $par1); - nleg_EaglerAdapterGL30_glPushMatrix(); - var$2 = $this.$rotationPointX * $par1; - var$3 = $this.$rotationPointY * $par1; - $par1 = $this.$rotationPointZ * $par1; - var$4 = nleg_EaglerAdapterGL30_deevis; - var$4.$x = var$2; - var$4.$y = var$3; - var$4.$z = $par1; - 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); - } - if ($this.$rotateAngleY !== 0.0) - nleg_EaglerAdapterGL30_glRotatef($this.$rotateAngleY * 57.2957763671875, 0.0, 1.0, 0.0); - if ($this.$rotateAngleX !== 0.0) - nleg_EaglerAdapterGL30_glRotatef($this.$rotateAngleX * 57.2957763671875, 1.0, 0.0, 0.0); - if ($this.$rotateAngleZ !== 0.0) - nleg_EaglerAdapterGL30_glRotatef($this.$rotateAngleZ * 57.2957763671875, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glCallList($this.$displayList); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_ModelRenderer_postRender($this, $par1) { - var var$2, var$3, var$4, var$5, var$6, var$7; - if (!$this.$isHidden && $this.$showModel) { - if (!$this.$compiled) - nms_ModelRenderer_compileDisplayList($this, $par1); - if (!($this.$rotateAngleX === 0.0 && $this.$rotateAngleY === 0.0 && $this.$rotateAngleZ === 0.0)) { - var$2 = $this.$rotationPointX * $par1; - var$3 = $this.$rotationPointY * $par1; - $par1 = $this.$rotationPointZ * $par1; - nleg_EaglerAdapterGL30_$callClinit(); - var$4 = nleg_EaglerAdapterGL30_deevis; - var$4.$x = var$2; - var$4.$y = var$3; - var$4.$z = $par1; - 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); - } - if ($this.$rotateAngleZ !== 0.0) - nleg_EaglerAdapterGL30_glRotatef($this.$rotateAngleZ * 57.2957763671875, 0.0, 0.0, 1.0); - if ($this.$rotateAngleY !== 0.0) - nleg_EaglerAdapterGL30_glRotatef($this.$rotateAngleY * 57.2957763671875, 0.0, 1.0, 0.0); - if ($this.$rotateAngleX !== 0.0) - nleg_EaglerAdapterGL30_glRotatef($this.$rotateAngleX * 57.2957763671875, 1.0, 0.0, 0.0); - } else if (!($this.$rotationPointX === 0.0 && $this.$rotationPointY === 0.0 && $this.$rotationPointZ === 0.0)) { - var$2 = $this.$rotationPointX * $par1; - var$3 = $this.$rotationPointY * $par1; - $par1 = $this.$rotationPointZ * $par1; - nleg_EaglerAdapterGL30_$callClinit(); - var$4 = nleg_EaglerAdapterGL30_deevis; - var$4.$x = var$2; - var$4.$y = var$3; - var$4.$z = $par1; - 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 nms_ModelRenderer_compileDisplayList($this, $par1) { - var $var2, $var3, var$4, var$5; - $this.$displayList = nms_GLAllocation_generateDisplayLists(1); - nleg_EaglerAdapterGL30_glNewList($this.$displayList, 56); - nlea_Tessellator_$callClinit(); - $var2 = nlea_Tessellator_instance; - $var3 = 0; - a: { - while ($var3 < $this.$cubeList.$size0) { - var$4 = $this.$cubeList; - if ($var3 < 0) - break a; - if ($var3 >= var$4.$size0) - break a; - var$4 = var$4.$array1.data[$var3]; - var$5 = 0; - while (var$5 < var$4.$quadList.data.length) { - nms_TexturedQuad_draw(var$4.$quadList.data[var$5], $var2, $par1); - var$5 = var$5 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - nleg_EaglerAdapterGL30_glEndList(); - $this.$compiled = 1; - return; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -} -function nms_ModelRenderer_setTextureSize($this, $par1, $par2) { - $this.$textureWidth0 = $par1; - $this.$textureHeight0 = $par2; - return $this; -} -function nms_ModelSilverfish() { - var a = this; nms_ModelBase.call(a); - a.$silverfishBodyParts = null; - a.$silverfishWings = null; - a.$field_78170_c = null; -} -var nms_ModelSilverfish_silverfishBoxLength = null; -var nms_ModelSilverfish_silverfishTexturePositions = null; -function nms_ModelSilverfish__init_0() { - var var_0 = new nms_ModelSilverfish(); - nms_ModelSilverfish__init_(var_0); - return var_0; -} -function nms_ModelSilverfish__init_($this) { - var $var1, $var2, var$3, var$4, var$5, var$6; - nms_ModelBase__init_0($this); - $this.$silverfishBodyParts = $rt_createArray(nms_ModelRenderer, 7); - $this.$field_78170_c = $rt_createFloatArray(7); - $var1 = (-3.5); - $var2 = 0; - while ($var2 < $this.$silverfishBodyParts.data.length) { - $this.$silverfishBodyParts.data[$var2] = nms_ModelRenderer__init_1($this, nms_ModelSilverfish_silverfishTexturePositions.data[$var2].data[0], nms_ModelSilverfish_silverfishTexturePositions.data[$var2].data[1]); - nms_ModelRenderer_addBox1($this.$silverfishBodyParts.data[$var2], nms_ModelSilverfish_silverfishBoxLength.data[$var2].data[0] * (-0.5), 0.0, nms_ModelSilverfish_silverfishBoxLength.data[$var2].data[2] * (-0.5), nms_ModelSilverfish_silverfishBoxLength.data[$var2].data[0], nms_ModelSilverfish_silverfishBoxLength.data[$var2].data[1], nms_ModelSilverfish_silverfishBoxLength.data[$var2].data[2]); - nms_ModelRenderer_setRotationPoint($this.$silverfishBodyParts.data[$var2], 0.0, 24 - nms_ModelSilverfish_silverfishBoxLength.data[$var2].data[1] | 0, $var1); - $this.$field_78170_c.data[$var2] = $var1; - if ($var2 < ($this.$silverfishBodyParts.data.length - 1 | 0)) - $var1 = $var1 + (nms_ModelSilverfish_silverfishBoxLength.data[$var2].data[2] + nms_ModelSilverfish_silverfishBoxLength.data[$var2 + 1 | 0].data[2] | 0) * 0.5; - $var2 = $var2 + 1 | 0; - } - $this.$silverfishWings = $rt_createArray(nms_ModelRenderer, 3); - var$3 = $this.$silverfishWings.data; - var$4 = nms_ModelRenderer__init_($this, null); - var$4.$textureOffsetX0 = 20; - var$4.$textureOffsetY0 = 0; - var$3[0] = var$4; - var$4 = $this.$silverfishWings.data[0]; - var$5 = nms_ModelSilverfish_silverfishBoxLength.data[2].data[2] * (-0.5); - $var2 = nms_ModelSilverfish_silverfishBoxLength.data[2].data[2]; - ju_ArrayList_add(var$4.$cubeList, nms_ModelBox__init_(var$4, var$4.$textureOffsetX0, var$4.$textureOffsetY0, (-5.0), 0.0, var$5, 10, 8, $var2, 0.0)); - var$4 = $this.$silverfishWings.data[0]; - var$5 = $this.$field_78170_c.data[2]; - var$4.$rotationPointX = 0.0; - var$4.$rotationPointY = 16.0; - var$4.$rotationPointZ = var$5; - var$3 = $this.$silverfishWings.data; - var$4 = nms_ModelRenderer__init_($this, null); - var$4.$textureOffsetX0 = 20; - var$4.$textureOffsetY0 = 11; - var$3[1] = var$4; - var$4 = $this.$silverfishWings.data[1]; - var$5 = nms_ModelSilverfish_silverfishBoxLength.data[4].data[2] * (-0.5); - var$6 = nms_ModelSilverfish_silverfishBoxLength.data[4].data[2]; - ju_ArrayList_add(var$4.$cubeList, nms_ModelBox__init_(var$4, var$4.$textureOffsetX0, var$4.$textureOffsetY0, (-3.0), 0.0, var$5, 6, 4, var$6, 0.0)); - var$4 = $this.$silverfishWings.data[1]; - var$5 = $this.$field_78170_c.data[4]; - var$4.$rotationPointX = 0.0; - var$4.$rotationPointY = 20.0; - var$4.$rotationPointZ = var$5; - var$3 = $this.$silverfishWings.data; - var$4 = nms_ModelRenderer__init_($this, null); - var$4.$textureOffsetX0 = 20; - var$4.$textureOffsetY0 = 18; - var$3[2] = var$4; - nms_ModelRenderer_addBox1($this.$silverfishWings.data[2], (-3.0), 0.0, nms_ModelSilverfish_silverfishBoxLength.data[4].data[2] * (-0.5), 6, 5, nms_ModelSilverfish_silverfishBoxLength.data[1].data[2]); - nms_ModelRenderer_setRotationPoint($this.$silverfishWings.data[2], 0.0, 19.0, $this.$field_78170_c.data[1]); -} -function nms_ModelSilverfish_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - nms_ModelSilverfish_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - $var8 = 0; - while ($var8 < $this.$silverfishBodyParts.data.length) { - nms_ModelRenderer_render($this.$silverfishBodyParts.data[$var8], $par7); - $var8 = $var8 + 1 | 0; - } - $var8 = 0; - while ($var8 < $this.$silverfishWings.data.length) { - nms_ModelRenderer_render($this.$silverfishWings.data[$var8], $par7); - $var8 = $var8 + 1 | 0; - } -} -function nms_ModelSilverfish_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8, var$9, var$10; - $var8 = 0; - $par2 = $par3 * 0.8999999761581421; - while ($var8 < $this.$silverfishBodyParts.data.length) { - $par7Entity = $this.$silverfishBodyParts.data[$var8]; - $par1 = $par2 + $var8 * 0.15000000596046448 * 3.1415927410125732; - var$9 = nms_MathHelper_SIN_TABLE.data; - $par3 = $par1 * 10430.3779296875; - $par1 = var$9[($par3 + 16384.0 | 0) & 65535] * 3.1415927410125732 * 0.05000000074505806; - var$10 = $var8 - 2 | 0; - $par7Entity.$rotateAngleY = $par1 * (1 + (var$10 <= 0 ? -var$10 : var$10) | 0); - $par7Entity = $this.$silverfishBodyParts.data[$var8]; - $par1 = nms_MathHelper_SIN_TABLE.data[($par3 | 0) & 65535] * 3.1415927410125732 * 0.20000000298023224; - if (var$10 <= 0) - var$10 = -var$10; - $par7Entity.$rotationPointX = $par1 * var$10; - $var8 = $var8 + 1 | 0; - } - $this.$silverfishWings.data[0].$rotateAngleY = $this.$silverfishBodyParts.data[2].$rotateAngleY; - $this.$silverfishWings.data[1].$rotateAngleY = $this.$silverfishBodyParts.data[4].$rotateAngleY; - $this.$silverfishWings.data[1].$rotationPointX = $this.$silverfishBodyParts.data[4].$rotationPointX; - $this.$silverfishWings.data[2].$rotateAngleY = $this.$silverfishBodyParts.data[1].$rotateAngleY; - $this.$silverfishWings.data[2].$rotationPointX = $this.$silverfishBodyParts.data[1].$rotationPointX; -} -function nms_ModelSilverfish__clinit_() { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createArray($rt_arraycls($rt_intcls()), 7); - var$2 = var$1.data; - var$3 = $rt_createIntArray(3); - var$4 = var$3.data; - var$4[0] = 3; - var$4[1] = 2; - var$4[2] = 2; - var$2[0] = var$3; - var$3 = $rt_createIntArray(3); - var$4 = var$3.data; - var$4[0] = 4; - var$4[1] = 3; - var$4[2] = 2; - var$2[1] = var$3; - var$3 = $rt_createIntArray(3); - var$4 = var$3.data; - var$4[0] = 6; - var$4[1] = 4; - var$4[2] = 3; - var$2[2] = var$3; - var$3 = $rt_createIntArray(3); - var$4 = var$3.data; - var$4[0] = 3; - var$4[1] = 3; - var$4[2] = 3; - var$2[3] = var$3; - var$3 = $rt_createIntArray(3); - var$4 = var$3.data; - var$4[0] = 2; - var$4[1] = 2; - var$4[2] = 3; - var$2[4] = var$3; - var$3 = $rt_createIntArray(3); - var$4 = var$3.data; - var$4[0] = 2; - var$4[1] = 1; - var$4[2] = 2; - var$2[5] = var$3; - var$3 = $rt_createIntArray(3); - var$4 = var$3.data; - var$4[0] = 1; - var$4[1] = 1; - var$4[2] = 2; - var$2[6] = var$3; - nms_ModelSilverfish_silverfishBoxLength = var$1; - var$1 = $rt_createArray($rt_arraycls($rt_intcls()), 7); - var$2 = var$1.data; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = 0; - var$2[0] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = 4; - var$2[1] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = 9; - var$2[2] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = 16; - var$2[3] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = 22; - var$2[4] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 11; - var$4[1] = 0; - var$2[5] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 13; - var$4[1] = 4; - var$2[6] = var$3; - nms_ModelSilverfish_silverfishTexturePositions = var$1; -} -function nms_ModelCreeper() { - var a = this; nms_ModelBase.call(a); - a.$head2 = null; - a.$field_78133_b = null; - a.$body1 = null; - a.$leg10 = null; - a.$leg20 = null; - a.$leg30 = null; - a.$leg40 = null; -} -function nms_ModelCreeper__init_1() { - var var_0 = new nms_ModelCreeper(); - nms_ModelCreeper__init_(var_0); - return var_0; -} -function nms_ModelCreeper__init_0(var_0) { - var var_1 = new nms_ModelCreeper(); - nms_ModelCreeper__init_2(var_1, var_0); - return var_1; -} -function nms_ModelCreeper__init_($this) { - nms_ModelCreeper__init_2($this, 0.0); -} -function nms_ModelCreeper__init_2($this, $par1) { - var var$2, var$3, var$4; - nms_ModelBase__init_0($this); - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - $this.$head2 = var$2; - var$3 = $this.$head2; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-4.0), (-8.0), (-4.0), 8, 8, 8, $par1)); - var$2 = $this.$head2; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 32; - var$2.$textureOffsetY0 = 0; - $this.$field_78133_b = var$2; - var$2 = $this.$field_78133_b; - var$4 = $par1 + 0.5; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-4.0), (-8.0), (-4.0), 8, 8, 8, var$4)); - var$2 = $this.$field_78133_b; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 16; - var$2.$textureOffsetY0 = 16; - $this.$body1 = var$2; - var$2 = $this.$body1; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-4.0), 0.0, (-2.0), 8, 12, 4, $par1)); - var$2 = $this.$body1; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 16; - $this.$leg10 = var$2; - var$2 = $this.$leg10; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 6, 4, $par1)); - var$2 = $this.$leg10; - var$2.$rotationPointX = (-2.0); - var$2.$rotationPointY = 16.0; - var$2.$rotationPointZ = 4.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 16; - $this.$leg20 = var$2; - var$2 = $this.$leg20; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 6, 4, $par1)); - var$2 = $this.$leg20; - var$2.$rotationPointX = 2.0; - var$2.$rotationPointY = 16.0; - var$2.$rotationPointZ = 4.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 16; - $this.$leg30 = var$2; - var$2 = $this.$leg30; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 6, 4, $par1)); - var$2 = $this.$leg30; - var$2.$rotationPointX = (-2.0); - var$2.$rotationPointY = 16.0; - var$2.$rotationPointZ = (-4.0); - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 16; - $this.$leg40 = var$2; - var$2 = $this.$leg40; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 6, 4, $par1)); - var$2 = $this.$leg40; - var$2.$rotationPointX = 2.0; - var$2.$rotationPointY = 16.0; - var$2.$rotationPointZ = (-4.0); -} -function nms_ModelCreeper_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - nms_ModelCreeper_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - nms_ModelRenderer_render($this.$head2, $par7); - nms_ModelRenderer_render($this.$body1, $par7); - nms_ModelRenderer_render($this.$leg10, $par7); - nms_ModelRenderer_render($this.$leg20, $par7); - nms_ModelRenderer_render($this.$leg30, $par7); - nms_ModelRenderer_render($this.$leg40, $par7); -} -function nms_ModelCreeper_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var var$8, var$9, var$10; - $this.$head2.$rotateAngleY = $par4 / 57.2957763671875; - $this.$head2.$rotateAngleX = $par5 / 57.2957763671875; - $par7Entity = $this.$leg10; - $par1 = $par1 * 0.6661999821662903; - var$8 = nms_MathHelper_SIN_TABLE.data; - var$9 = ($par1 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par7Entity.$rotateAngleX = var$8[var$9] * 1.399999976158142 * $par2; - $par7Entity = $this.$leg20; - $par1 = $par1 + 3.1415927410125732; - var$8 = nms_MathHelper_SIN_TABLE.data; - var$10 = ($par1 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par7Entity.$rotateAngleX = var$8[var$10] * 1.399999976158142 * $par2; - $this.$leg30.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[var$10] * 1.399999976158142 * $par2; - $this.$leg40.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[var$9] * 1.399999976158142 * $par2; -} -function nms_ModelBiped() { - var a = this; nms_ModelBase.call(a); - a.$bipedHead = null; - a.$bipedHeadwear = null; - a.$bipedBody = null; - a.$bipedRightArm = null; - a.$bipedLeftArm = null; - a.$bipedRightLeg = null; - a.$bipedLeftLeg = null; - a.$bipedEars = null; - a.$bipedCloak = null; - a.$heldItemLeft = 0; - a.$heldItemRight = 0; - a.$isSneak = 0; - a.$aimedBow = 0; -} -function nms_ModelBiped__init_2() { - var var_0 = new nms_ModelBiped(); - nms_ModelBiped__init_(var_0); - return var_0; -} -function nms_ModelBiped__init_0(var_0, var_1, var_2, var_3) { - var var_4 = new nms_ModelBiped(); - nms_ModelBiped__init_1(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_ModelBiped__init_($this) { - nms_ModelBiped__init_1($this, 0.0, 0.0, 64, 32); -} -function nms_ModelBiped__init_1($this, $par1, $par2, $par3, $par4) { - var var$5, var$6, var$7; - nms_ModelBase__init_0($this); - $this.$heldItemLeft = 0; - $this.$heldItemRight = 0; - $this.$isSneak = 0; - $this.$aimedBow = 0; - $this.$textureWidth = $par3; - $this.$textureHeight = $par4; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 0; - $this.$bipedCloak = var$5; - var$5 = $this.$bipedCloak; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-5.0), 0.0, (-1.0), 10, 16, 1, $par1)); - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 24; - var$5.$textureOffsetY0 = 0; - $this.$bipedEars = var$5; - var$5 = $this.$bipedEars; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-3.0), (-6.0), (-1.0), 6, 6, 1, $par1)); - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 0; - $this.$bipedHead = var$5; - var$5 = $this.$bipedHead; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), (-8.0), (-4.0), 8, 8, 8, $par1)); - var$5 = $this.$bipedHead; - var$6 = 0.0 + $par2; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = var$6; - var$5.$rotationPointZ = 0.0; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 32; - var$5.$textureOffsetY0 = 0; - $this.$bipedHeadwear = var$5; - var$5 = $this.$bipedHeadwear; - var$7 = $par1 + 0.5; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), (-8.0), (-4.0), 8, 8, 8, var$7)); - var$5 = $this.$bipedHeadwear; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = var$6; - var$5.$rotationPointZ = 0.0; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 16; - var$5.$textureOffsetY0 = 16; - $this.$bipedBody = var$5; - var$5 = $this.$bipedBody; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), 0.0, (-2.0), 8, 12, 4, $par1)); - var$5 = $this.$bipedBody; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = var$6; - var$5.$rotationPointZ = 0.0; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 40; - var$5.$textureOffsetY0 = 16; - $this.$bipedRightArm = var$5; - var$5 = $this.$bipedRightArm; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-3.0), (-2.0), (-2.0), 4, 12, 4, $par1)); - var$5 = $this.$bipedRightArm; - var$6 = 2.0 + $par2; - var$5.$rotationPointX = (-5.0); - var$5.$rotationPointY = var$6; - var$5.$rotationPointZ = 0.0; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 40; - var$5.$textureOffsetY0 = 16; - $this.$bipedLeftArm = var$5; - $this.$bipedLeftArm.$mirror = 1; - var$5 = $this.$bipedLeftArm; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-1.0), (-2.0), (-2.0), 4, 12, 4, $par1)); - var$5 = $this.$bipedLeftArm; - var$5.$rotationPointX = 5.0; - var$5.$rotationPointY = var$6; - var$5.$rotationPointZ = 0.0; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 16; - $this.$bipedRightLeg = var$5; - var$5 = $this.$bipedRightLeg; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 12, 4, $par1)); - var$5 = $this.$bipedRightLeg; - $par2 = 12.0 + $par2; - var$5.$rotationPointX = (-1.899999976158142); - var$5.$rotationPointY = $par2; - var$5.$rotationPointZ = 0.0; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 16; - $this.$bipedLeftLeg = var$5; - $this.$bipedLeftLeg.$mirror = 1; - nms_ModelRenderer_addBox($this.$bipedLeftLeg, (-2.0), 0.0, (-2.0), 4, 12, 4, $par1); - nms_ModelRenderer_setRotationPoint($this.$bipedLeftLeg, 1.899999976158142, $par2, 0.0); -} -function nms_ModelBiped_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, var$9, var$10, var$11; - $this.$setRotationAngles($par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - if (!$this.$isChild0) { - nms_ModelRenderer_render($this.$bipedHead, $par7); - nms_ModelRenderer_render($this.$bipedBody, $par7); - nms_ModelRenderer_render($this.$bipedRightArm, $par7); - nms_ModelRenderer_render($this.$bipedLeftArm, $par7); - nms_ModelRenderer_render($this.$bipedRightLeg, $par7); - nms_ModelRenderer_render($this.$bipedLeftLeg, $par7); - nms_ModelRenderer_render($this.$bipedHeadwear, $par7); - } else { - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.75; - $par1Entity.$y = 0.75; - $par1Entity.$z = 0.75; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - $par3 = 16.0 * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = 0.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$10 = jl_System_errCache; - var$8 = var$10.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$11 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$11, var$11 + 1 | 0); - var$8.$buffer.data[var$11] = 10; - ji_PrintStream_printSB(var$10); - } - nms_ModelRenderer_render($this.$bipedHead, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.5; - $par1Entity.$y = 0.5; - $par1Entity.$z = 0.5; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$8 = jl_System_errCache; - $par1Entity = var$8.$sb; - jl_AbstractStringBuilder_insert($par1Entity, $par1Entity.$length, $rt_s(220)); - var$9 = $par1Entity.$length; - jl_AbstractStringBuilder_insertSpace($par1Entity, var$9, var$9 + 1 | 0); - $par1Entity.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - $par3 = 24.0 * $par7; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par3; - $par1Entity.$z = 0.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - var$8.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = var$8; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - nms_ModelRenderer_render($this.$bipedBody, $par7); - nms_ModelRenderer_render($this.$bipedRightArm, $par7); - nms_ModelRenderer_render($this.$bipedLeftArm, $par7); - nms_ModelRenderer_render($this.$bipedRightLeg, $par7); - nms_ModelRenderer_render($this.$bipedLeftLeg, $par7); - nms_ModelRenderer_render($this.$bipedHeadwear, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); - } -} -function nms_ModelBiped_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8, $var9, $var10; - $this.$bipedHead.$rotateAngleY = $par4 / 57.2957763671875; - $this.$bipedHead.$rotateAngleX = $par5 / 57.2957763671875; - $this.$bipedHeadwear.$rotateAngleY = $this.$bipedHead.$rotateAngleY; - $this.$bipedHeadwear.$rotateAngleX = $this.$bipedHead.$rotateAngleX; - $par7Entity = $this.$bipedRightArm; - $par1 = $par1 * 0.6661999821662903; - $par6 = $par1 + 3.1415927410125732; - $par7Entity.$rotateAngleX = nms_MathHelper_cos($par6) * 2.0 * $par2 * 0.5; - $this.$bipedLeftArm.$rotateAngleX = nms_MathHelper_cos($par1) * 2.0 * $par2 * 0.5; - $this.$bipedRightArm.$rotateAngleZ = 0.0; - $this.$bipedLeftArm.$rotateAngleZ = 0.0; - $this.$bipedRightLeg.$rotateAngleX = nms_MathHelper_cos($par1) * 1.399999976158142 * $par2; - $this.$bipedLeftLeg.$rotateAngleX = nms_MathHelper_cos($par6) * 1.399999976158142 * $par2; - $this.$bipedRightLeg.$rotateAngleY = 0.0; - $this.$bipedLeftLeg.$rotateAngleY = 0.0; - if ($this.$isRiding) { - $par7Entity = $this.$bipedRightArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX + (-0.6283185482025146); - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX + (-0.6283185482025146); - $this.$bipedRightLeg.$rotateAngleX = (-1.2566370964050293); - $this.$bipedLeftLeg.$rotateAngleX = (-1.2566370964050293); - $this.$bipedRightLeg.$rotateAngleY = 0.3141592741012573; - $this.$bipedLeftLeg.$rotateAngleY = (-0.3141592741012573); - } - if ($this.$heldItemLeft) - $this.$bipedLeftArm.$rotateAngleX = $this.$bipedLeftArm.$rotateAngleX * 0.5 - 0.3141592741012573 * $this.$heldItemLeft; - if ($this.$heldItemRight) - $this.$bipedRightArm.$rotateAngleX = $this.$bipedRightArm.$rotateAngleX * 0.5 - 0.3141592741012573 * $this.$heldItemRight; - $this.$bipedRightArm.$rotateAngleY = 0.0; - $this.$bipedLeftArm.$rotateAngleY = 0.0; - if ($this.$onGround1 > (-9990.0)) { - $var8 = $this.$onGround1; - $this.$bipedBody.$rotateAngleY = nms_MathHelper_sin(nms_MathHelper_sqrt_float($var8) * 3.1415927410125732 * 2.0) * 0.20000000298023224; - $this.$bipedRightArm.$rotationPointZ = nms_MathHelper_sin($this.$bipedBody.$rotateAngleY) * 5.0; - $this.$bipedRightArm.$rotationPointX = -nms_MathHelper_cos($this.$bipedBody.$rotateAngleY) * 5.0; - $this.$bipedLeftArm.$rotationPointZ = -nms_MathHelper_sin($this.$bipedBody.$rotateAngleY) * 5.0; - $this.$bipedLeftArm.$rotationPointX = nms_MathHelper_cos($this.$bipedBody.$rotateAngleY) * 5.0; - $par7Entity = $this.$bipedRightArm; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + $this.$bipedBody.$rotateAngleY; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + $this.$bipedBody.$rotateAngleY; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX + $this.$bipedBody.$rotateAngleY; - $par1 = 1.0 - $this.$onGround1; - $par1 = $par1 * $par1; - $var9 = nms_MathHelper_sin((1.0 - $par1 * $par1) * 3.1415927410125732); - $var10 = nms_MathHelper_sin($this.$onGround1 * 3.1415927410125732) * -($this.$bipedHead.$rotateAngleX - 0.699999988079071) * 0.75; - $this.$bipedRightArm.$rotateAngleX = $this.$bipedRightArm.$rotateAngleX - ($var9 * 1.2 + $var10); - $par7Entity = $this.$bipedRightArm; - $par7Entity.$rotateAngleY = $par7Entity.$rotateAngleY + $this.$bipedBody.$rotateAngleY * 2.0; - $this.$bipedRightArm.$rotateAngleZ = nms_MathHelper_sin($this.$onGround1 * 3.1415927410125732) * (-0.4000000059604645); - } - if (!$this.$isSneak) { - $this.$bipedBody.$rotateAngleX = 0.0; - $this.$bipedRightLeg.$rotationPointZ = 0.10000000149011612; - $this.$bipedLeftLeg.$rotationPointZ = 0.10000000149011612; - $this.$bipedRightLeg.$rotationPointY = 12.0; - $this.$bipedLeftLeg.$rotationPointY = 12.0; - $this.$bipedHead.$rotationPointY = 0.0; - $this.$bipedHeadwear.$rotationPointY = 0.0; - } else { - $this.$bipedBody.$rotateAngleX = 0.5; - $par7Entity = $this.$bipedRightArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX + 0.4000000059604645; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX + 0.4000000059604645; - $this.$bipedRightLeg.$rotationPointZ = 4.0; - $this.$bipedLeftLeg.$rotationPointZ = 4.0; - $this.$bipedRightLeg.$rotationPointY = 9.0; - $this.$bipedLeftLeg.$rotationPointY = 9.0; - $this.$bipedHead.$rotationPointY = 1.0; - $this.$bipedHeadwear.$rotationPointY = 1.0; - } - $par7Entity = $this.$bipedRightArm; - $par2 = $par7Entity.$rotateAngleZ; - $par1 = $par3 * 0.09000000357627869; - $par7Entity.$rotateAngleZ = $par2 + nms_MathHelper_cos($par1) * 0.05000000074505806 + 0.05000000074505806; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ - (nms_MathHelper_cos($par1) * 0.05000000074505806 + 0.05000000074505806); - $par7Entity = $this.$bipedRightArm; - $par2 = $par7Entity.$rotateAngleX; - $par3 = $par3 * 0.06700000166893005; - $par7Entity.$rotateAngleX = $par2 + nms_MathHelper_sin($par3) * 0.05000000074505806; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - nms_MathHelper_sin($par3) * 0.05000000074505806; - if ($this.$aimedBow) { - $this.$bipedRightArm.$rotateAngleZ = 0.0; - $this.$bipedLeftArm.$rotateAngleZ = 0.0; - $this.$bipedRightArm.$rotateAngleY = (-0.10000000149011612) + $this.$bipedHead.$rotateAngleY; - $this.$bipedLeftArm.$rotateAngleY = 0.10000000149011612 + $this.$bipedHead.$rotateAngleY + 0.4000000059604645; - $this.$bipedRightArm.$rotateAngleX = (-1.5707963705062866) + $this.$bipedHead.$rotateAngleX; - $this.$bipedLeftArm.$rotateAngleX = (-1.5707963705062866) + $this.$bipedHead.$rotateAngleX; - $par7Entity = $this.$bipedRightArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - 0.0; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - 0.0; - $par7Entity = $this.$bipedRightArm; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ + nms_MathHelper_cos($par1) * 0.05000000074505806 + 0.05000000074505806; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ - (nms_MathHelper_cos($par1) * 0.05000000074505806 + 0.05000000074505806); - $par7Entity = $this.$bipedRightArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX + nms_MathHelper_sin($par3) * 0.05000000074505806; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - nms_MathHelper_sin($par3) * 0.05000000074505806; - } -} -function nms_ModelBiped_renderCloak($this, $par1) { - nms_ModelRenderer_render($this.$bipedCloak, $par1); -} -function nms_ModelEnderman() { - var a = this; nms_ModelBiped.call(a); - a.$isCarrying = 0; - a.$isAttacking = 0; -} -function nms_ModelEnderman__init_0() { - var var_0 = new nms_ModelEnderman(); - nms_ModelEnderman__init_(var_0); - return var_0; -} -function nms_ModelEnderman__init_($this) { - var var$1, var$2; - nms_ModelBiped__init_1($this, 0.0, (-14.0), 64, 32); - $this.$isCarrying = 0; - $this.$isAttacking = 0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 16; - $this.$bipedHeadwear = var$1; - var$1 = $this.$bipedHeadwear; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-4.0), (-8.0), (-4.0), 8, 8, 8, (-0.5))); - var$1 = $this.$bipedHeadwear; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = (-14.0); - var$1.$rotationPointZ = 0.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 32; - var$2.$textureOffsetY0 = 16; - $this.$bipedBody = var$2; - var$1 = $this.$bipedBody; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-4.0), 0.0, (-2.0), 8, 12, 4, 0.0)); - var$1 = $this.$bipedBody; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = (-14.0); - var$1.$rotationPointZ = 0.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 56; - var$1.$textureOffsetY0 = 0; - $this.$bipedRightArm = var$1; - var$1 = $this.$bipedRightArm; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), (-2.0), (-1.0), 2, 30, 2, 0.0)); - var$1 = $this.$bipedRightArm; - var$1.$rotationPointX = (-3.0); - var$1.$rotationPointY = (-12.0); - var$1.$rotationPointZ = 0.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 56; - var$1.$textureOffsetY0 = 0; - $this.$bipedLeftArm = var$1; - $this.$bipedLeftArm.$mirror = 1; - var$1 = $this.$bipedLeftArm; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), (-2.0), (-1.0), 2, 30, 2, 0.0)); - var$1 = $this.$bipedLeftArm; - var$1.$rotationPointX = 5.0; - var$1.$rotationPointY = (-12.0); - var$1.$rotationPointZ = 0.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 56; - var$1.$textureOffsetY0 = 0; - $this.$bipedRightLeg = var$1; - var$1 = $this.$bipedRightLeg; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, 30, 2, 0.0)); - var$1 = $this.$bipedRightLeg; - var$1.$rotationPointX = (-2.0); - var$1.$rotationPointY = (-2.0); - var$1.$rotationPointZ = 0.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 56; - var$1.$textureOffsetY0 = 0; - $this.$bipedLeftLeg = var$1; - $this.$bipedLeftLeg.$mirror = 1; - var$1 = $this.$bipedLeftLeg; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, 30, 2, 0.0)); - var$1 = $this.$bipedLeftLeg; - var$1.$rotationPointX = 2.0; - var$1.$rotationPointY = (-2.0); - var$1.$rotationPointZ = 0.0; -} -function nms_ModelEnderman_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - nms_ModelBiped_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity); - $this.$bipedHead.$showModel = 1; - $this.$bipedBody.$rotateAngleX = 0.0; - $this.$bipedBody.$rotationPointY = (-14.0); - $this.$bipedBody.$rotationPointZ = -0.0; - $par7Entity = $this.$bipedRightLeg; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - 0.0; - $par7Entity = $this.$bipedLeftLeg; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - 0.0; - $this.$bipedRightArm.$rotateAngleX = $this.$bipedRightArm.$rotateAngleX * 0.5; - $this.$bipedLeftArm.$rotateAngleX = $this.$bipedLeftArm.$rotateAngleX * 0.5; - $this.$bipedRightLeg.$rotateAngleX = $this.$bipedRightLeg.$rotateAngleX * 0.5; - $this.$bipedLeftLeg.$rotateAngleX = $this.$bipedLeftLeg.$rotateAngleX * 0.5; - if ($this.$bipedRightArm.$rotateAngleX > 0.4000000059604645) - $this.$bipedRightArm.$rotateAngleX = 0.4000000059604645; - if ($this.$bipedLeftArm.$rotateAngleX > 0.4000000059604645) - $this.$bipedLeftArm.$rotateAngleX = 0.4000000059604645; - if ($this.$bipedRightArm.$rotateAngleX < (-0.4000000059604645)) - $this.$bipedRightArm.$rotateAngleX = (-0.4000000059604645); - if ($this.$bipedLeftArm.$rotateAngleX < (-0.4000000059604645)) - $this.$bipedLeftArm.$rotateAngleX = (-0.4000000059604645); - if ($this.$bipedRightLeg.$rotateAngleX > 0.4000000059604645) - $this.$bipedRightLeg.$rotateAngleX = 0.4000000059604645; - if ($this.$bipedLeftLeg.$rotateAngleX > 0.4000000059604645) - $this.$bipedLeftLeg.$rotateAngleX = 0.4000000059604645; - if ($this.$bipedRightLeg.$rotateAngleX < (-0.4000000059604645)) - $this.$bipedRightLeg.$rotateAngleX = (-0.4000000059604645); - if ($this.$bipedLeftLeg.$rotateAngleX < (-0.4000000059604645)) - $this.$bipedLeftLeg.$rotateAngleX = (-0.4000000059604645); - if ($this.$isCarrying) { - $this.$bipedRightArm.$rotateAngleX = (-0.5); - $this.$bipedLeftArm.$rotateAngleX = (-0.5); - $this.$bipedRightArm.$rotateAngleZ = 0.05000000074505806; - $this.$bipedLeftArm.$rotateAngleZ = (-0.05000000074505806); - } - $this.$bipedRightArm.$rotationPointZ = 0.0; - $this.$bipedLeftArm.$rotationPointZ = 0.0; - $this.$bipedRightLeg.$rotationPointZ = 0.0; - $this.$bipedLeftLeg.$rotationPointZ = 0.0; - $this.$bipedRightLeg.$rotationPointY = (-5.0); - $this.$bipedLeftLeg.$rotationPointY = (-5.0); - $this.$bipedHead.$rotationPointZ = -0.0; - $this.$bipedHead.$rotationPointY = (-13.0); - $this.$bipedHeadwear.$rotationPointX = $this.$bipedHead.$rotationPointX; - $this.$bipedHeadwear.$rotationPointY = $this.$bipedHead.$rotationPointY; - $this.$bipedHeadwear.$rotationPointZ = $this.$bipedHead.$rotationPointZ; - $this.$bipedHeadwear.$rotateAngleX = $this.$bipedHead.$rotateAngleX; - $this.$bipedHeadwear.$rotateAngleY = $this.$bipedHead.$rotateAngleY; - $this.$bipedHeadwear.$rotateAngleZ = $this.$bipedHead.$rotateAngleZ; - if ($this.$isAttacking) { - $par7Entity = $this.$bipedHead; - $par7Entity.$rotationPointY = $par7Entity.$rotationPointY - 5.0; - } -} -function nms_ModelSnowMan() { - var a = this; nms_ModelBase.call(a); - a.$body2 = null; - a.$bottomBody = null; - a.$head1 = null; - a.$rightHand = null; - a.$leftHand = null; -} -function nms_ModelSnowMan__init_0() { - var var_0 = new nms_ModelSnowMan(); - nms_ModelSnowMan__init_(var_0); - return var_0; -} -function nms_ModelSnowMan__init_($this) { - var var$1, var$2, var$3; - nms_ModelBase__init_0($this); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - var$1.$textureWidth0 = 64.0; - var$1.$textureHeight0 = 64.0; - $this.$head1 = var$1; - var$1 = $this.$head1; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-4.0), (-8.0), (-4.0), 8, 8, 8, (-0.5))); - var$1 = $this.$head1; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 4.0; - var$1.$rotationPointZ = 0.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 32; - var$1.$textureOffsetY0 = 0; - var$1.$textureWidth0 = 64.0; - var$1.$textureHeight0 = 64.0; - $this.$rightHand = var$1; - var$2 = $this.$rightHand; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-1.0), 0.0, (-1.0), 12, 2, 2, (-0.5))); - var$1 = $this.$rightHand; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 6.0; - var$1.$rotationPointZ = 0.0; - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 32; - var$3.$textureOffsetY0 = 0; - var$3.$textureWidth0 = 64.0; - var$3.$textureHeight0 = 64.0; - $this.$leftHand = var$3; - var$2 = $this.$leftHand; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-1.0), 0.0, (-1.0), 12, 2, 2, (-0.5))); - var$1 = $this.$leftHand; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 6.0; - var$1.$rotationPointZ = 0.0; - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 16; - var$3.$textureWidth0 = 64.0; - var$3.$textureHeight0 = 64.0; - $this.$body2 = var$3; - var$2 = $this.$body2; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-5.0), (-10.0), (-5.0), 10, 10, 10, (-0.5))); - var$1 = $this.$body2; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 13.0; - var$1.$rotationPointZ = 0.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 36; - var$1.$textureWidth0 = 64.0; - var$1.$textureHeight0 = 64.0; - $this.$bottomBody = var$1; - var$1 = $this.$bottomBody; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-6.0), (-12.0), (-6.0), 12, 12, 12, (-0.5))); - var$1 = $this.$bottomBody; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 24.0; - var$1.$rotationPointZ = 0.0; -} -function nms_ModelSnowMan_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8, $var9; - $par7Entity = $this.$head1; - $par1 = $par4 / 57.2957763671875; - $par7Entity.$rotateAngleY = $par1; - $this.$head1.$rotateAngleX = $par5 / 57.2957763671875; - $this.$body2.$rotateAngleY = $par1 * 0.25; - $par1 = $this.$body2.$rotateAngleY; - $var8 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - $par1 = $this.$body2.$rotateAngleY; - $var9 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $this.$rightHand.$rotateAngleZ = 1.0; - $this.$leftHand.$rotateAngleZ = (-1.0); - $this.$rightHand.$rotateAngleY = 0.0 + $this.$body2.$rotateAngleY; - $this.$leftHand.$rotateAngleY = 3.1415927410125732 + $this.$body2.$rotateAngleY; - $this.$rightHand.$rotationPointX = $var9 * 5.0; - $this.$rightHand.$rotationPointZ = -$var8 * 5.0; - $this.$leftHand.$rotationPointX = -$var9 * 5.0; - $this.$leftHand.$rotationPointZ = $var8 * 5.0; -} -function nms_ModelSnowMan_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - nms_ModelSnowMan_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - nms_ModelRenderer_render($this.$body2, $par7); - nms_ModelRenderer_render($this.$bottomBody, $par7); - nms_ModelRenderer_render($this.$head1, $par7); - nms_ModelRenderer_render($this.$rightHand, $par7); - nms_ModelRenderer_render($this.$leftHand, $par7); -} -function nms_ModelZombie() { - nms_ModelBiped.call(this); -} -function nms_ModelZombie__init_1() { - var var_0 = new nms_ModelZombie(); - nms_ModelZombie__init_(var_0); - return var_0; -} -function nms_ModelZombie__init_0(var_0, var_1) { - var var_2 = new nms_ModelZombie(); - nms_ModelZombie__init_2(var_2, var_0, var_1); - return var_2; -} -function nms_ModelZombie__init_($this) { - nms_ModelBiped__init_1($this, 0.0, 0.0, 64, 64); -} -function nms_ModelZombie__init_2($this, $par1, $par2) { - nms_ModelBiped__init_1($this, $par1, 0.0, 64, !$par2 ? 64 : 32); -} -function nms_ModelZombie_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8, $var9, var$10, var$11; - nms_ModelBiped_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity); - $par1 = $this.$onGround1 * 3.1415927410125732; - $var8 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - $par1 = (1.0 - (1.0 - $this.$onGround1) * (1.0 - $this.$onGround1)) * 3.1415927410125732; - $var9 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - $this.$bipedRightArm.$rotateAngleZ = 0.0; - $this.$bipedLeftArm.$rotateAngleZ = 0.0; - $par7Entity = $this.$bipedRightArm; - $par1 = 0.10000000149011612 - $var8 * 0.6000000238418579; - $par7Entity.$rotateAngleY = -$par1; - $this.$bipedLeftArm.$rotateAngleY = $par1; - $this.$bipedRightArm.$rotateAngleX = (-1.5707963705062866); - $this.$bipedLeftArm.$rotateAngleX = (-1.5707963705062866); - $par7Entity = $this.$bipedRightArm; - $par1 = $par7Entity.$rotateAngleX; - $par2 = $var8 * 1.2000000476837158 - $var9 * 0.4000000059604645; - $par7Entity.$rotateAngleX = $par1 - $par2; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - $par2; - $par7Entity = $this.$bipedRightArm; - $par1 = $par7Entity.$rotateAngleZ; - $par2 = $par3 * 0.09000000357627869; - var$10 = nms_MathHelper_SIN_TABLE.data; - var$11 = ($par2 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par7Entity.$rotateAngleZ = $par1 + var$10[var$11] * 0.05000000074505806 + 0.05000000074505806; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ - (nms_MathHelper_SIN_TABLE.data[var$11] * 0.05000000074505806 + 0.05000000074505806); - $par7Entity = $this.$bipedRightArm; - $par1 = $par7Entity.$rotateAngleX; - $par2 = $par3 * 0.06700000166893005; - var$10 = nms_MathHelper_SIN_TABLE.data; - var$11 = ($par2 * 10430.3779296875 | 0) & 65535; - $par7Entity.$rotateAngleX = $par1 + var$10[var$11] * 0.05000000074505806; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - nms_MathHelper_SIN_TABLE.data[var$11] * 0.05000000074505806; -} -function nms_ModelSkeleton() { - nms_ModelZombie.call(this); -} -function nms_ModelSkeleton__init_1() { - var var_0 = new nms_ModelSkeleton(); - nms_ModelSkeleton__init_(var_0); - return var_0; -} -function nms_ModelSkeleton__init_0(var_0) { - var var_1 = new nms_ModelSkeleton(); - nms_ModelSkeleton__init_2(var_1, var_0); - return var_1; -} -function nms_ModelSkeleton__init_($this) { - nms_ModelSkeleton__init_2($this, 0.0); -} -function nms_ModelSkeleton__init_2($this, $par1) { - var var$2; - nms_ModelBiped__init_1($this, $par1, 0.0, 64, 32); - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 40; - var$2.$textureOffsetY0 = 16; - $this.$bipedRightArm = var$2; - var$2 = $this.$bipedRightArm; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-1.0), (-2.0), (-1.0), 2, 12, 2, $par1)); - var$2 = $this.$bipedRightArm; - var$2.$rotationPointX = (-5.0); - var$2.$rotationPointY = 2.0; - var$2.$rotationPointZ = 0.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 40; - var$2.$textureOffsetY0 = 16; - $this.$bipedLeftArm = var$2; - $this.$bipedLeftArm.$mirror = 1; - var$2 = $this.$bipedLeftArm; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-1.0), (-2.0), (-1.0), 2, 12, 2, $par1)); - var$2 = $this.$bipedLeftArm; - var$2.$rotationPointX = 5.0; - var$2.$rotationPointY = 2.0; - var$2.$rotationPointZ = 0.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 16; - $this.$bipedRightLeg = var$2; - var$2 = $this.$bipedRightLeg; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, 12, 2, $par1)); - var$2 = $this.$bipedRightLeg; - var$2.$rotationPointX = (-2.0); - var$2.$rotationPointY = 12.0; - var$2.$rotationPointZ = 0.0; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 16; - $this.$bipedLeftLeg = var$2; - $this.$bipedLeftLeg.$mirror = 1; - var$2 = $this.$bipedLeftLeg; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, 12, 2, $par1)); - var$2 = $this.$bipedLeftLeg; - var$2.$rotationPointX = 2.0; - var$2.$rotationPointY = 12.0; - var$2.$rotationPointZ = 0.0; -} -function nms_ModelSkeleton_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - $this.$aimedBow = $par1EntityLiving !== null && $par1EntityLiving instanceof nms_EntitySkeleton && nms_DataWatcher_getWatchableObjectByte($par1EntityLiving.$dataWatcher, 13) != 1 ? 0 : 1; -} -function nms_ModelSkeleton_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - nms_ModelZombie_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity); -} -function nms_ModelVillager() { - var a = this; nms_ModelBase.call(a); - a.$villagerHead = null; - a.$villagerBody = null; - a.$villagerArms = null; - a.$rightVillagerLeg = null; - a.$leftVillagerLeg = null; - a.$field_82898_f = null; -} -function nms_ModelVillager__init_(var_0) { - var var_1 = new nms_ModelVillager(); - nms_ModelVillager__init_1(var_1, var_0); - return var_1; -} -function nms_ModelVillager__init_0(var_0, var_1, var_2, var_3) { - var var_4 = new nms_ModelVillager(); - nms_ModelVillager__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_ModelVillager__init_1($this, $par1) { - nms_ModelVillager__init_2($this, $par1, 0.0, 64, 64); -} -function nms_ModelVillager__init_2($this, $par1, $par2, $par3, $par4) { - var var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12; - nms_ModelBase__init_0($this); - var$5 = nms_ModelRenderer__init_($this, null); - var$6 = $par3; - var$5.$textureWidth0 = var$6; - var$7 = $par4; - var$5.$textureHeight0 = var$7; - $this.$villagerHead = var$5; - var$5 = $this.$villagerHead; - var$8 = 0.0 + $par2; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = var$8; - var$5.$rotationPointZ = 0.0; - var$5 = $this.$villagerHead; - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 0; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), (-10.0), (-4.0), 8, 10, 8, $par1)); - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureWidth0 = var$6; - var$5.$textureHeight0 = var$7; - $this.$field_82898_f = var$5; - var$5 = $this.$field_82898_f; - var$9 = $par2 - 2.0; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = var$9; - var$5.$rotationPointZ = 0.0; - var$5 = $this.$field_82898_f; - var$5.$textureOffsetX0 = 24; - var$5.$textureOffsetY0 = 0; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-1.0), (-1.0), (-6.0), 2, 4, 2, $par1)); - var$5 = $this.$villagerHead; - var$10 = $this.$field_82898_f; - if (var$5.$childModels === null) { - var$11 = new ju_ArrayList; - var$11.$array1 = $rt_createArray(jl_Object, 10); - var$5.$childModels = var$11; - } - ju_ArrayList_add(var$5.$childModels, var$10); - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureWidth0 = var$6; - var$5.$textureHeight0 = var$7; - $this.$villagerBody = var$5; - var$5 = $this.$villagerBody; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = var$8; - var$5.$rotationPointZ = 0.0; - var$5 = $this.$villagerBody; - var$5.$textureOffsetX0 = 16; - var$5.$textureOffsetY0 = 20; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), 0.0, (-3.0), 8, 12, 6, $par1)); - var$5 = $this.$villagerBody; - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 38; - var$12 = $par1 + 0.5; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), 0.0, (-3.0), 8, 18, 6, var$12)); - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureWidth0 = var$6; - var$5.$textureHeight0 = var$7; - $this.$villagerArms = var$5; - var$5 = $this.$villagerArms; - var$9 = var$8 + 2.0; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = var$9; - var$5.$rotationPointZ = 0.0; - var$5 = $this.$villagerArms; - var$5.$textureOffsetX0 = 44; - var$5.$textureOffsetY0 = 22; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-8.0), (-2.0), (-2.0), 4, 8, 4, $par1)); - var$5 = $this.$villagerArms; - var$5.$textureOffsetX0 = 44; - var$5.$textureOffsetY0 = 22; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, 4.0, (-2.0), (-2.0), 4, 8, 4, $par1)); - var$5 = $this.$villagerArms; - var$5.$textureOffsetX0 = 40; - var$5.$textureOffsetY0 = 38; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), 2.0, (-2.0), 8, 4, 4, $par1)); - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 22; - var$5.$textureWidth0 = var$6; - var$5.$textureHeight0 = var$7; - $this.$rightVillagerLeg = var$5; - var$5 = $this.$rightVillagerLeg; - $par2 = 12.0 + $par2; - var$5.$rotationPointX = (-2.0); - var$5.$rotationPointY = $par2; - var$5.$rotationPointZ = 0.0; - var$5 = $this.$rightVillagerLeg; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-2.0), 0.0, (-2.0), 4, 12, 4, $par1)); - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 22; - $this.$leftVillagerLeg = nms_ModelRenderer_setTextureSize(var$5, $par3, $par4); - $this.$leftVillagerLeg.$mirror = 1; - var$5 = $this.$leftVillagerLeg; - var$5.$rotationPointX = 2.0; - var$5.$rotationPointY = $par2; - var$5.$rotationPointZ = 0.0; - nms_ModelRenderer_addBox($this.$leftVillagerLeg, (-2.0), 0.0, (-2.0), 4, 12, 4, $par1); -} -function nms_ModelVillager_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - $this.$setRotationAngles($par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - nms_ModelRenderer_render($this.$villagerHead, $par7); - nms_ModelRenderer_render($this.$villagerBody, $par7); - nms_ModelRenderer_render($this.$rightVillagerLeg, $par7); - nms_ModelRenderer_render($this.$leftVillagerLeg, $par7); - nms_ModelRenderer_render($this.$villagerArms, $par7); -} -function nms_ModelVillager_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - $this.$villagerHead.$rotateAngleY = $par4 / 57.2957763671875; - $this.$villagerHead.$rotateAngleX = $par5 / 57.2957763671875; - $this.$villagerArms.$rotationPointY = 3.0; - $this.$villagerArms.$rotationPointZ = (-1.0); - $this.$villagerArms.$rotateAngleX = (-0.75); - $par7Entity = $this.$rightVillagerLeg; - $par3 = $par1 * 0.6661999821662903; - $par7Entity.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 1.399999976158142 * $par2 * 0.5; - $par7Entity = $this.$leftVillagerLeg; - $par1 = $par3 + 3.1415927410125732; - $par7Entity.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * 1.399999976158142 * $par2 * 0.5; - $this.$rightVillagerLeg.$rotateAngleY = 0.0; - $this.$leftVillagerLeg.$rotateAngleY = 0.0; -} -function nms_ModelWitch() { - var a = this; nms_ModelVillager.call(a); - a.$field_82900_g = 0; - a.$field_82901_h = null; - a.$witchHat = null; -} -function nms_ModelWitch__init_(var_0) { - var var_1 = new nms_ModelWitch(); - nms_ModelWitch__init_0(var_1, var_0); - return var_1; -} -function nms_ModelWitch__init_0($this, $par1) { - var $var2, $var3, var$4, $var4; - nms_ModelVillager__init_2($this, $par1, 0.0, 64, 128); - $this.$field_82900_g = 0; - $var2 = nms_ModelRenderer__init_($this, null); - $var2.$textureWidth0 = 64.0; - $var2.$textureHeight0 = 128.0; - $this.$field_82901_h = $var2; - $var2 = $this.$field_82901_h; - $var2.$rotationPointX = 0.0; - $var2.$rotationPointY = (-2.0); - $var2.$rotationPointZ = 0.0; - $var2 = $this.$field_82901_h; - $var2.$textureOffsetX0 = 0; - $var2.$textureOffsetY0 = 0; - ju_ArrayList_add($var2.$cubeList, nms_ModelBox__init_($var2, $var2.$textureOffsetX0, $var2.$textureOffsetY0, 0.0, 3.0, (-6.75), 1, 1, 1, (-0.25))); - $var2 = $this.$field_82898_f; - $var3 = $this.$field_82901_h; - if ($var2.$childModels === null) { - var$4 = new ju_ArrayList; - var$4.$array1 = $rt_createArray(jl_Object, 10); - $var2.$childModels = var$4; - } - ju_ArrayList_add($var2.$childModels, $var3); - $var2 = nms_ModelRenderer__init_($this, null); - $var2.$textureWidth0 = 64.0; - $var2.$textureHeight0 = 128.0; - $this.$witchHat = $var2; - $var2 = $this.$witchHat; - $var2.$rotationPointX = (-5.0); - $var2.$rotationPointY = (-10.03125); - $var2.$rotationPointZ = (-5.0); - $var2 = $this.$witchHat; - $var2.$textureOffsetX0 = 0; - $var2.$textureOffsetY0 = 64; - ju_ArrayList_add($var2.$cubeList, nms_ModelBox__init_($var2, $var2.$textureOffsetX0, $var2.$textureOffsetY0, 0.0, 0.0, 0.0, 10, 2, 10, 0.0)); - $var2 = $this.$villagerHead; - $var3 = $this.$witchHat; - if ($var2.$childModels === null) { - var$4 = new ju_ArrayList; - var$4.$array1 = $rt_createArray(jl_Object, 10); - $var2.$childModels = var$4; - } - ju_ArrayList_add($var2.$childModels, $var3); - $var2 = nms_ModelRenderer__init_($this, null); - $var2.$textureWidth0 = 64.0; - $var2.$textureHeight0 = 128.0; - $var2.$rotationPointX = 1.75; - $var2.$rotationPointY = (-4.0); - $var2.$rotationPointZ = 2.0; - $var2.$textureOffsetX0 = 0; - $var2.$textureOffsetY0 = 76; - ju_ArrayList_add($var2.$cubeList, nms_ModelBox__init_($var2, $var2.$textureOffsetX0, $var2.$textureOffsetY0, 0.0, 0.0, 0.0, 7, 4, 7, 0.0)); - $var2.$rotateAngleX = (-0.05235987901687622); - $var2.$rotateAngleZ = 0.02617993950843811; - $var3 = $this.$witchHat; - if ($var3.$childModels === null) { - var$4 = new ju_ArrayList; - var$4.$array1 = $rt_createArray(jl_Object, 10); - $var3.$childModels = var$4; - } - ju_ArrayList_add($var3.$childModels, $var2); - $var3 = nms_ModelRenderer__init_($this, null); - $var3.$textureWidth0 = 64.0; - $var3.$textureHeight0 = 128.0; - $var3.$rotationPointX = 1.75; - $var3.$rotationPointY = (-4.0); - $var3.$rotationPointZ = 2.0; - $var3.$textureOffsetX0 = 0; - $var3.$textureOffsetY0 = 87; - ju_ArrayList_add($var3.$cubeList, nms_ModelBox__init_($var3, $var3.$textureOffsetX0, $var3.$textureOffsetY0, 0.0, 0.0, 0.0, 4, 4, 4, 0.0)); - $var3.$rotateAngleX = (-0.10471975803375244); - $var3.$rotateAngleZ = 0.05235987901687622; - if ($var2.$childModels === null) { - var$4 = new ju_ArrayList; - var$4.$array1 = $rt_createArray(jl_Object, 10); - $var2.$childModels = var$4; - } - ju_ArrayList_add($var2.$childModels, $var3); - $var4 = nms_ModelRenderer__init_($this, null); - $var4.$textureWidth0 = 64.0; - $var4.$textureHeight0 = 128.0; - $var4.$rotationPointX = 1.75; - $var4.$rotationPointY = (-2.0); - $var4.$rotationPointZ = 2.0; - $var4.$textureOffsetX0 = 0; - $var4.$textureOffsetY0 = 95; - ju_ArrayList_add($var4.$cubeList, nms_ModelBox__init_($var4, $var4.$textureOffsetX0, $var4.$textureOffsetY0, 0.0, 0.0, 0.0, 1, 2, 1, 0.25)); - $var4.$rotateAngleX = (-0.20943951606750488); - $var4.$rotateAngleZ = 0.10471975803375244; - if ($var3.$childModels === null) { - $var2 = new ju_ArrayList; - $var2.$array1 = $rt_createArray(jl_Object, 10); - $var3.$childModels = $var2; - } - ju_ArrayList_add($var3.$childModels, $var4); -} -function nms_ModelWitch_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var var$8, var$9, $var8; - nms_ModelVillager_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity); - var$8 = $this.$field_82898_f; - var$9 = $this.$field_82898_f; - $this.$field_82898_f.$field_82907_q = 0.0; - var$9.$field_82908_p = 0.0; - var$8.$field_82906_o = 0.0; - $var8 = 0.009999999776482582 * ($par7Entity.$entityId % 10 | 0); - var$8 = $this.$field_82898_f; - $par1 = $par7Entity.$ticksExisted * $var8; - var$8.$rotateAngleX = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535] * 4.5 * 3.1415927410125732 / 180.0; - $this.$field_82898_f.$rotateAngleY = 0.0; - var$8 = $this.$field_82898_f; - $par1 = $par7Entity.$ticksExisted * $var8; - var$8.$rotateAngleZ = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.5 * 3.1415927410125732 / 180.0; - if ($this.$field_82900_g) { - $this.$field_82898_f.$rotateAngleX = (-0.8999999761581421); - $this.$field_82898_f.$field_82907_q = (-0.09375); - $this.$field_82898_f.$field_82908_p = 0.1875; - } -} -function nms_ModelWitch_func_82899_a($this) { - return 0; -} -function nms_ModelBlaze() { - var a = this; nms_ModelBase.call(a); - a.$blazeSticks = null; - a.$blazeHead = null; -} -function nms_ModelBlaze__init_0() { - var var_0 = new nms_ModelBlaze(); - nms_ModelBlaze__init_(var_0); - return var_0; -} -function nms_ModelBlaze__init_($this) { - var $var1, var$2, var$3, var$4; - nms_ModelBase__init_0($this); - $this.$blazeSticks = $rt_createArray(nms_ModelRenderer, 12); - $var1 = 0; - var$2 = null; - while ($var1 < $this.$blazeSticks.data.length) { - var$3 = $this.$blazeSticks.data; - var$4 = nms_ModelRenderer__init_($this, var$2); - var$4.$textureOffsetX0 = 0; - var$4.$textureOffsetY0 = 16; - var$3[$var1] = var$4; - var$4 = $this.$blazeSticks.data[$var1]; - ju_ArrayList_add(var$4.$cubeList, nms_ModelBox__init_(var$4, var$4.$textureOffsetX0, var$4.$textureOffsetY0, 0.0, 0.0, 0.0, 2, 8, 2, 0.0)); - $var1 = $var1 + 1 | 0; - } - var$4 = nms_ModelRenderer__init_($this, null); - var$4.$textureOffsetX0 = 0; - var$4.$textureOffsetY0 = 0; - $this.$blazeHead = var$4; - var$4 = $this.$blazeHead; - ju_ArrayList_add(var$4.$cubeList, nms_ModelBox__init_(var$4, var$4.$textureOffsetX0, var$4.$textureOffsetY0, (-4.0), (-4.0), (-4.0), 8, 8, 8, 0.0)); -} -function nms_ModelBlaze_func_78104_a($this) { - return 8; -} -function nms_ModelBlaze_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - nms_ModelBlaze_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - nms_ModelRenderer_render($this.$blazeHead, $par7); - $var8 = 0; - while ($var8 < $this.$blazeSticks.data.length) { - nms_ModelRenderer_render($this.$blazeSticks.data[$var8], $par7); - $var8 = $var8 + 1 | 0; - } -} -function nms_ModelBlaze_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8, $var9, var$10; - $par6 = $par3 * 3.1415927410125732; - $var8 = $par6 * (-0.10000000149011612); - $var9 = 0; - while ($var9 < 4) { - $par7Entity = $this.$blazeSticks.data[$var9]; - $par2 = (($var9 * 2 | 0) + $par3) * 0.25; - $par7Entity.$rotationPointY = (-2.0) + nms_MathHelper_SIN_TABLE.data[($par2 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $par7Entity = $this.$blazeSticks.data[$var9]; - var$10 = nms_MathHelper_SIN_TABLE.data; - $par2 = $var8 * 10430.3779296875; - $par7Entity.$rotationPointX = var$10[($par2 + 16384.0 | 0) & 65535] * 9.0; - $this.$blazeSticks.data[$var9].$rotationPointZ = nms_MathHelper_SIN_TABLE.data[($par2 | 0) & 65535] * 9.0; - $var8 = $var8 + 1.0; - $var9 = $var9 + 1 | 0; - } - $par1 = 0.7853981852531433 + $par6 * 0.029999999329447746; - $var9 = 4; - while ($var9 < 8) { - $par7Entity = $this.$blazeSticks.data[$var9]; - $var8 = (($var9 * 2 | 0) + $par3) * 0.25; - $par7Entity.$rotationPointY = 2.0 + nms_MathHelper_SIN_TABLE.data[($var8 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $par7Entity = $this.$blazeSticks.data[$var9]; - var$10 = nms_MathHelper_SIN_TABLE.data; - $var8 = $par1 * 10430.3779296875; - $par7Entity.$rotationPointX = var$10[($var8 + 16384.0 | 0) & 65535] * 7.0; - $this.$blazeSticks.data[$var9].$rotationPointZ = nms_MathHelper_SIN_TABLE.data[($var8 | 0) & 65535] * 7.0; - $par1 = $par1 + 1.0; - $var9 = $var9 + 1 | 0; - } - $par1 = 0.4712389409542084 + $par6 * (-0.05000000074505806); - $var9 = 8; - while ($var9 < 12) { - $par7Entity = $this.$blazeSticks.data[$var9]; - $par6 = ($var9 * 1.5 + $par3) * 0.5; - $par7Entity.$rotationPointY = 11.0 + nms_MathHelper_SIN_TABLE.data[($par6 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $par7Entity = $this.$blazeSticks.data[$var9]; - var$10 = nms_MathHelper_SIN_TABLE.data; - $par6 = $par1 * 10430.3779296875; - $par7Entity.$rotationPointX = var$10[($par6 + 16384.0 | 0) & 65535] * 5.0; - $this.$blazeSticks.data[$var9].$rotationPointZ = nms_MathHelper_SIN_TABLE.data[($par6 | 0) & 65535] * 5.0; - $par1 = $par1 + 1.0; - $var9 = $var9 + 1 | 0; - } - $this.$blazeHead.$rotateAngleY = $par4 / 57.2957763671875; - $this.$blazeHead.$rotateAngleX = $par5 / 57.2957763671875; -} -function nms_ModelZombieVillager() { - nms_ModelBiped.call(this); -} -function nms_ModelZombieVillager__init_1() { - var var_0 = new nms_ModelZombieVillager(); - nms_ModelZombieVillager__init_(var_0); - return var_0; -} -function nms_ModelZombieVillager__init_0(var_0, var_1, var_2) { - var var_3 = new nms_ModelZombieVillager(); - nms_ModelZombieVillager__init_2(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ModelZombieVillager__init_($this) { - nms_ModelZombieVillager__init_2($this, 0.0, 0.0, 0); -} -function nms_ModelZombieVillager__init_2($this, $par1, $par2, $par3) { - var var$4, var$5; - nms_ModelBiped__init_1($this, $par1, 0.0, 64, !$par3 ? 64 : 32); - if ($par3) { - var$4 = nms_ModelRenderer__init_($this, null); - var$4.$textureOffsetX0 = 0; - var$4.$textureOffsetY0 = 0; - $this.$bipedHead = var$4; - var$5 = $this.$bipedHead; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), (-10.0), (-4.0), 8, 6, 8, $par1)); - var$5 = $this.$bipedHead; - $par2 = 0.0 + $par2; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = $par2; - var$5.$rotationPointZ = 0.0; - } else { - $this.$bipedHead = nms_ModelRenderer__init_($this, null); - var$5 = $this.$bipedHead; - $par2 = 0.0 + $par2; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = $par2; - var$5.$rotationPointZ = 0.0; - var$5 = $this.$bipedHead; - var$5.$textureOffsetX0 = 0; - var$5.$textureOffsetY0 = 32; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), (-10.0), (-4.0), 8, 10, 8, $par1)); - var$5 = $this.$bipedHead; - var$5.$textureOffsetX0 = 24; - var$5.$textureOffsetY0 = 32; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-1.0), (-3.0), (-6.0), 2, 4, 2, $par1)); - } -} -function nms_ModelZombieVillager_func_82897_a($this) { - return 10; -} -function nms_ModelZombieVillager_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8, $var9, var$10, var$11; - nms_ModelBiped_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity); - $par1 = $this.$onGround1 * 3.1415927410125732; - $var8 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - $par1 = (1.0 - (1.0 - $this.$onGround1) * (1.0 - $this.$onGround1)) * 3.1415927410125732; - $var9 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]; - $this.$bipedRightArm.$rotateAngleZ = 0.0; - $this.$bipedLeftArm.$rotateAngleZ = 0.0; - $par7Entity = $this.$bipedRightArm; - $par1 = 0.10000000149011612 - $var8 * 0.6000000238418579; - $par7Entity.$rotateAngleY = -$par1; - $this.$bipedLeftArm.$rotateAngleY = $par1; - $this.$bipedRightArm.$rotateAngleX = (-1.5707963705062866); - $this.$bipedLeftArm.$rotateAngleX = (-1.5707963705062866); - $par7Entity = $this.$bipedRightArm; - $par1 = $par7Entity.$rotateAngleX; - $par2 = $var8 * 1.2000000476837158 - $var9 * 0.4000000059604645; - $par7Entity.$rotateAngleX = $par1 - $par2; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - $par2; - $par7Entity = $this.$bipedRightArm; - $par1 = $par7Entity.$rotateAngleZ; - $par2 = $par3 * 0.09000000357627869; - var$10 = nms_MathHelper_SIN_TABLE.data; - var$11 = ($par2 * 10430.3779296875 + 16384.0 | 0) & 65535; - $par7Entity.$rotateAngleZ = $par1 + var$10[var$11] * 0.05000000074505806 + 0.05000000074505806; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleZ = $par7Entity.$rotateAngleZ - (nms_MathHelper_SIN_TABLE.data[var$11] * 0.05000000074505806 + 0.05000000074505806); - $par7Entity = $this.$bipedRightArm; - $par1 = $par7Entity.$rotateAngleX; - $par2 = $par3 * 0.06700000166893005; - var$10 = nms_MathHelper_SIN_TABLE.data; - var$11 = ($par2 * 10430.3779296875 | 0) & 65535; - $par7Entity.$rotateAngleX = $par1 + var$10[var$11] * 0.05000000074505806; - $par7Entity = $this.$bipedLeftArm; - $par7Entity.$rotateAngleX = $par7Entity.$rotateAngleX - nms_MathHelper_SIN_TABLE.data[var$11] * 0.05000000074505806; -} -function nms_ModelMagmaCube() { - var a = this; nms_ModelBase.call(a); - a.$field_78109_a = null; - a.$field_78108_b = null; -} -function nms_ModelMagmaCube__init_0() { - var var_0 = new nms_ModelMagmaCube(); - nms_ModelMagmaCube__init_(var_0); - return var_0; -} -function nms_ModelMagmaCube__init_($this) { - var $var1, var$2, $var2, var$4, var$5, var$6, var$7; - nms_ModelBase__init_0($this); - $this.$field_78109_a = $rt_createArray(nms_ModelRenderer, 8); - $var1 = 0; - var$2 = null; - while ($var1 < $this.$field_78109_a.data.length) { - $var2 = 0; - if ($var1 == 2) { - $var2 = 24; - var$4 = 10; - } else if ($var1 != 3) - var$4 = $var1; - else { - $var2 = 24; - var$4 = 19; - } - var$5 = $this.$field_78109_a.data; - var$6 = nms_ModelRenderer__init_($this, var$2); - var$6.$textureOffsetX0 = $var2; - var$6.$textureOffsetY0 = var$4; - var$5[$var1] = var$6; - var$6 = $this.$field_78109_a.data[$var1]; - var$7 = 16 + $var1 | 0; - ju_ArrayList_add(var$6.$cubeList, nms_ModelBox__init_(var$6, var$6.$textureOffsetX0, var$6.$textureOffsetY0, (-4.0), var$7, (-4.0), 8, 1, 8, 0.0)); - $var1 = $var1 + 1 | 0; - } - var$6 = nms_ModelRenderer__init_($this, null); - var$6.$textureOffsetX0 = 0; - var$6.$textureOffsetY0 = 16; - $this.$field_78108_b = var$6; - var$6 = $this.$field_78108_b; - ju_ArrayList_add(var$6.$cubeList, nms_ModelBox__init_(var$6, var$6.$textureOffsetX0, var$6.$textureOffsetY0, (-2.0), 18.0, (-2.0), 4, 4, 4, 0.0)); -} -function nms_ModelMagmaCube_func_78107_a($this) { - return 5; -} -function nms_ModelMagmaCube_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - var $var5, $var6, $var7; - $var5 = $par1EntityLiving; - $var6 = $var5.$field_70812_c + ($var5.$field_70811_b - $var5.$field_70812_c) * $par4; - if ($var6 < 0.0) - $var6 = 0.0; - $var7 = 0; - while ($var7 < $this.$field_78109_a.data.length) { - $this.$field_78109_a.data[$var7].$rotationPointY = -(4 - $var7 | 0) * $var6 * 1.7000000476837158; - $var7 = $var7 + 1 | 0; - } -} -function nms_ModelMagmaCube_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - nms_ModelRenderer_render($this.$field_78108_b, $par7); - $var8 = 0; - while ($var8 < $this.$field_78109_a.data.length) { - nms_ModelRenderer_render($this.$field_78109_a.data[$var8], $par7); - $var8 = $var8 + 1 | 0; - } -} -function nle_ModelBipedNewSkins() { - var a = this; nms_ModelBiped.call(a); - a.$field_178734_a = null; - a.$field_178732_b = null; - a.$field_178733_c = null; - a.$field_178731_d = null; - a.$field_178730_v = null; - a.$field_178729_w = null; - a.$field_178736_x = null; - a.$field_178735_y = 0; -} -function nle_ModelBipedNewSkins__init_(var_0, var_1) { - var var_2 = new nle_ModelBipedNewSkins(); - nle_ModelBipedNewSkins__init_0(var_2, var_0, var_1); - return var_2; -} -function nle_ModelBipedNewSkins__init_0($this, $p_i46304_1_, $p_i46304_2_) { - var var$3, var$4, var$5, var$6; - nms_ModelBiped__init_1($this, $p_i46304_1_, 0.0, 64, 64); - $this.$field_178735_y = $p_i46304_2_; - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 24; - var$3.$textureOffsetY0 = 0; - $this.$field_178736_x = var$3; - var$4 = $this.$field_178736_x; - ju_ArrayList_add(var$4.$cubeList, nms_ModelBox__init_(var$4, var$4.$textureOffsetX0, var$4.$textureOffsetY0, (-3.0), (-6.0), (-1.0), 6, 6, 1, $p_i46304_1_)); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 0; - $this.$field_178729_w = var$3; - var$3 = $this.$field_178729_w; - var$3.$textureWidth0 = 64.0; - var$3.$textureHeight0 = 32.0; - var$3 = $this.$field_178729_w; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-5.0), 0.0, (-1.0), 10, 16, 1, $p_i46304_1_)); - if ($p_i46304_2_) { - $this.$bipedLeftArm = nms_ModelRenderer__init_1($this, 32, 48); - nms_ModelRenderer_addBox($this.$bipedLeftArm, (-1.0), (-2.0), (-2.0), 3, 12, 4, $p_i46304_1_); - nms_ModelRenderer_setRotationPoint($this.$bipedLeftArm, 5.0, 2.5, 0.0); - $this.$bipedRightArm = nms_ModelRenderer__init_1($this, 40, 16); - nms_ModelRenderer_addBox($this.$bipedRightArm, (-2.0), (-2.0), (-2.0), 3, 12, 4, $p_i46304_1_); - nms_ModelRenderer_setRotationPoint($this.$bipedRightArm, (-5.0), 2.5, 0.0); - $this.$field_178734_a = nms_ModelRenderer__init_1($this, 48, 48); - var$3 = $this.$field_178734_a; - var$5 = $p_i46304_1_ + 0.25; - nms_ModelRenderer_addBox(var$3, (-1.0), (-2.0), (-2.0), 3, 12, 4, var$5); - nms_ModelRenderer_setRotationPoint($this.$field_178734_a, 5.0, 2.5, 0.0); - $this.$field_178732_b = nms_ModelRenderer__init_1($this, 40, 32); - nms_ModelRenderer_addBox($this.$field_178732_b, (-2.0), (-2.0), (-2.0), 3, 12, 4, var$5); - nms_ModelRenderer_setRotationPoint($this.$field_178732_b, (-5.0), 2.5, 10.0); - } else { - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 32; - var$3.$textureOffsetY0 = 48; - $this.$bipedLeftArm = var$3; - var$3 = $this.$bipedLeftArm; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-1.0), (-2.0), (-2.0), 4, 12, 4, $p_i46304_1_)); - var$3 = $this.$bipedLeftArm; - var$3.$rotationPointX = 5.0; - var$3.$rotationPointY = 2.0; - var$3.$rotationPointZ = 0.0; - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 48; - var$3.$textureOffsetY0 = 48; - $this.$field_178734_a = var$3; - var$3 = $this.$field_178734_a; - var$6 = $p_i46304_1_ + 0.25; - nms_ModelRenderer_addBox(var$3, (-1.0), (-2.0), (-2.0), 4, 12, 4, var$6); - var$3 = $this.$field_178734_a; - var$3.$rotationPointX = 5.0; - var$3.$rotationPointY = 2.0; - var$3.$rotationPointZ = 0.0; - var$3 = nms_ModelRenderer__init_0($this); - nms_ModelRenderer_setTextureOffset(var$3, 40, 32); - $this.$field_178732_b = var$3; - nms_ModelRenderer_addBox($this.$field_178732_b, (-3.0), (-2.0), (-2.0), 4, 12, 4, var$6); - nms_ModelRenderer_setRotationPoint($this.$field_178732_b, (-5.0), 2.0, 10.0); - } - $this.$bipedLeftLeg = nms_ModelRenderer__init_1($this, 16, 48); - nms_ModelRenderer_addBox($this.$bipedLeftLeg, (-2.0), 0.0, (-2.0), 4, 12, 4, $p_i46304_1_); - nms_ModelRenderer_setRotationPoint($this.$bipedLeftLeg, 1.899999976158142, 12.0, 0.0); - $this.$field_178733_c = nms_ModelRenderer__init_1($this, 0, 48); - var$3 = $this.$field_178733_c; - $p_i46304_1_ = $p_i46304_1_ + 0.25; - nms_ModelRenderer_addBox(var$3, (-2.0), 0.0, (-2.0), 4, 12, 4, $p_i46304_1_); - nms_ModelRenderer_setRotationPoint($this.$field_178733_c, 1.899999976158142, 12.0, 0.0); - $this.$field_178731_d = nms_ModelRenderer__init_1($this, 0, 32); - nms_ModelRenderer_addBox($this.$field_178731_d, (-2.0), 0.0, (-2.0), 4, 12, 4, $p_i46304_1_); - nms_ModelRenderer_setRotationPoint($this.$field_178731_d, (-1.899999976158142), 12.0, 0.0); - $this.$field_178730_v = nms_ModelRenderer__init_1($this, 16, 32); - nms_ModelRenderer_addBox($this.$field_178730_v, (-4.0), 0.0, (-2.0), 8, 12, 4, $p_i46304_1_); - nms_ModelRenderer_setRotationPoint($this.$field_178730_v, 0.0, 0.0, 0.0); -} -function nle_ModelBipedNewSkins_render($this, $p_78088_1_, $p_78088_2_, $p_78088_3_, $p_78088_4_, $p_78088_5_, $p_78088_6_, $p_78088_7_) { - var var$8, var$9; - nms_ModelBiped_render($this, $p_78088_1_, $p_78088_2_, $p_78088_3_, $p_78088_4_, $p_78088_5_, $p_78088_6_, $p_78088_7_); - nleg_EaglerAdapterGL30_glPushMatrix(); - if ($p_78088_1_ !== null && $p_78088_1_.$isSneaking()) { - $p_78088_1_ = nleg_EaglerAdapterGL30_deevis; - $p_78088_1_.$x = 0.0; - $p_78088_1_.$y = 0.20000000298023224; - $p_78088_1_.$z = 0.0; - $p_78088_1_ = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $p_78088_1_, $p_78088_1_); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $p_78088_1_ = new ji_PrintStream; - $p_78088_1_.$out = new jl_ConsoleOutputStreamStderr; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - $p_78088_1_.$sb = var$8; - $p_78088_1_.$buffer0 = $rt_createCharArray(32); - $p_78088_1_.$autoFlush = 0; - var$8 = new jnci_UTF8Charset; - jnc_Charset__init_(var$8, $rt_s(2), $rt_createArray(jl_String, 0)); - $p_78088_1_.$charset = var$8; - jl_System_errCache = $p_78088_1_; - } - var$8 = jl_System_errCache; - $p_78088_1_ = var$8.$sb; - jl_AbstractStringBuilder_insert($p_78088_1_, $p_78088_1_.$length, $rt_s(220)); - var$9 = $p_78088_1_.$length; - jl_AbstractStringBuilder_insertSpace($p_78088_1_, var$9, var$9 + 1 | 0); - $p_78088_1_.$buffer.data[var$9] = 10; - ji_PrintStream_printSB(var$8); - } - } - nms_ModelRenderer_render($this.$field_178733_c, $p_78088_7_); - nms_ModelRenderer_render($this.$field_178731_d, $p_78088_7_); - nms_ModelRenderer_render($this.$field_178734_a, $p_78088_7_); - nms_ModelRenderer_render($this.$field_178732_b, $p_78088_7_); - nms_ModelRenderer_render($this.$field_178730_v, $p_78088_7_); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nle_ModelBipedNewSkins_setRotationAngles($this, $p_78087_1_, $p_78087_2_, $p_78087_3_, $p_78087_4_, $p_78087_5_, $p_78087_6_, $p_78087_7_) { - var var$8; - nms_ModelBiped_setRotationAngles($this, $p_78087_1_, $p_78087_2_, $p_78087_3_, $p_78087_4_, $p_78087_5_, $p_78087_6_, $p_78087_7_); - $p_78087_7_ = $this.$bipedLeftLeg; - var$8 = $this.$field_178733_c; - var$8.$rotateAngleX = $p_78087_7_.$rotateAngleX; - var$8.$rotateAngleY = $p_78087_7_.$rotateAngleY; - var$8.$rotateAngleZ = $p_78087_7_.$rotateAngleZ; - var$8.$rotationPointX = $p_78087_7_.$rotationPointX; - var$8.$rotationPointY = $p_78087_7_.$rotationPointY; - var$8.$rotationPointZ = $p_78087_7_.$rotationPointZ; - $p_78087_7_ = $this.$bipedRightLeg; - var$8 = $this.$field_178731_d; - var$8.$rotateAngleX = $p_78087_7_.$rotateAngleX; - var$8.$rotateAngleY = $p_78087_7_.$rotateAngleY; - var$8.$rotateAngleZ = $p_78087_7_.$rotateAngleZ; - var$8.$rotationPointX = $p_78087_7_.$rotationPointX; - var$8.$rotationPointY = $p_78087_7_.$rotationPointY; - var$8.$rotationPointZ = $p_78087_7_.$rotationPointZ; - $p_78087_7_ = $this.$bipedLeftArm; - var$8 = $this.$field_178734_a; - var$8.$rotateAngleX = $p_78087_7_.$rotateAngleX; - var$8.$rotateAngleY = $p_78087_7_.$rotateAngleY; - var$8.$rotateAngleZ = $p_78087_7_.$rotateAngleZ; - var$8.$rotationPointX = $p_78087_7_.$rotationPointX; - var$8.$rotationPointY = $p_78087_7_.$rotationPointY; - var$8.$rotationPointZ = $p_78087_7_.$rotationPointZ; - $p_78087_7_ = $this.$bipedRightArm; - var$8 = $this.$field_178732_b; - var$8.$rotateAngleX = $p_78087_7_.$rotateAngleX; - var$8.$rotateAngleY = $p_78087_7_.$rotateAngleY; - var$8.$rotateAngleZ = $p_78087_7_.$rotateAngleZ; - var$8.$rotationPointX = $p_78087_7_.$rotationPointX; - var$8.$rotationPointY = $p_78087_7_.$rotationPointY; - var$8.$rotationPointZ = $p_78087_7_.$rotationPointZ; - $p_78087_7_ = $this.$bipedBody; - var$8 = $this.$field_178730_v; - var$8.$rotateAngleX = $p_78087_7_.$rotateAngleX; - var$8.$rotateAngleY = $p_78087_7_.$rotateAngleY; - var$8.$rotateAngleZ = $p_78087_7_.$rotateAngleZ; - var$8.$rotationPointX = $p_78087_7_.$rotationPointX; - var$8.$rotationPointY = $p_78087_7_.$rotationPointY; - var$8.$rotationPointZ = $p_78087_7_.$rotationPointZ; -} -function nms_ModelGhast() { - var a = this; nms_ModelBase.call(a); - a.$body3 = null; - a.$tentacles = null; -} -function nms_ModelGhast__init_0() { - var var_0 = new nms_ModelGhast(); - nms_ModelGhast__init_(var_0); - return var_0; -} -function nms_ModelGhast__init_($this) { - var var$1, $var3, var$3, var$4, var$5, var$6, $var4, $var5, $var6, var$10; - nms_ModelBase__init_0($this); - $this.$tentacles = $rt_createArray(nms_ModelRenderer, 9); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - $this.$body3 = var$1; - var$1 = $this.$body3; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-8.0), (-8.0), (-8.0), 16, 16, 16, 0.0)); - var$1 = $this.$body3; - var$1.$rotationPointY = var$1.$rotationPointY + 8.0; - $var3 = 0; - var$3 = null; - while ($var3 < $this.$tentacles.data.length) { - var$4 = $this.$tentacles.data; - var$1 = nms_ModelRenderer__init_($this, var$3); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - var$4[$var3] = var$1; - var$5 = $var3 % 3 | 0; - var$6 = $var3 / 3 | 0; - $var4 = ((var$5 - (var$6 % 2 | 0) * 0.5 + 0.25) / 2.0 * 2.0 - 1.0) * 5.0; - $var5 = (var$6 / 2.0 * 2.0 - 1.0) * 5.0; - $var6 = (Math.random() * 7.0 | 0) + 8 | 0; - var$10 = $this.$tentacles.data[$var3]; - ju_ArrayList_add(var$10.$cubeList, nms_ModelBox__init_(var$10, var$10.$textureOffsetX0, var$10.$textureOffsetY0, (-1.0), 0.0, (-1.0), 2, $var6, 2, 0.0)); - $this.$tentacles.data[$var3].$rotationPointX = $var4; - $this.$tentacles.data[$var3].$rotationPointZ = $var5; - $this.$tentacles.data[$var3].$rotationPointY = 15.0; - $var3 = $var3 + 1 | 0; - } -} -function nms_ModelGhast_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8; - $var8 = 0; - $par3 = $par3 * 0.30000001192092896; - while ($var8 < $this.$tentacles.data.length) { - $par7Entity = $this.$tentacles.data[$var8]; - $par1 = $par3 + $var8; - $par7Entity.$rotateAngleX = 0.20000000298023224 * nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535] + 0.4000000059604645; - $var8 = $var8 + 1 | 0; - } -} -function nms_ModelGhast_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var11, var$9, $var10, $var8, $var9; - nms_ModelGhast_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = 0.6000000238418579; - $par1Entity.$z = 0.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $par1Entity = new ji_PrintStream; - $par1Entity.$out = new jl_ConsoleOutputStreamStderr; - $var11 = new jl_StringBuilder; - $var11.$buffer = $rt_createCharArray(16); - $par1Entity.$sb = $var11; - $par1Entity.$buffer0 = $rt_createCharArray(32); - $par1Entity.$autoFlush = 0; - $var11 = new jnci_UTF8Charset; - jnc_Charset__init_($var11, $rt_s(2), $rt_createArray(jl_String, 0)); - $par1Entity.$charset = $var11; - jl_System_errCache = $par1Entity; - } - var$9 = jl_System_errCache; - $var11 = var$9.$sb; - jl_AbstractStringBuilder_insert($var11, $var11.$length, $rt_s(220)); - $var10 = $var11.$length; - jl_AbstractStringBuilder_insertSpace($var11, $var10, $var10 + 1 | 0); - $var11.$buffer.data[$var10] = 10; - ji_PrintStream_printSB(var$9); - } - nms_ModelRenderer_render($this.$body3, $par7); - $var8 = $this.$tentacles.data; - $var9 = $var8.length; - $var10 = 0; - while ($var10 < $var9) { - nms_ModelRenderer_render($var8[$var10], $par7); - $var10 = $var10 + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_ModelIronGolem() { - var a = this; nms_ModelBase.call(a); - a.$ironGolemHead = null; - a.$ironGolemBody = null; - a.$ironGolemRightArm = null; - a.$ironGolemLeftArm = null; - a.$ironGolemLeftLeg = null; - a.$ironGolemRightLeg = null; -} -function nms_ModelIronGolem__init_1() { - var var_0 = new nms_ModelIronGolem(); - nms_ModelIronGolem__init_(var_0); - return var_0; -} -function nms_ModelIronGolem__init_0(var_0, var_1) { - var var_2 = new nms_ModelIronGolem(); - nms_ModelIronGolem__init_2(var_2, var_0, var_1); - return var_2; -} -function nms_ModelIronGolem__init_($this) { - nms_ModelIronGolem__init_2($this, 0.0, (-7.0)); -} -function nms_ModelIronGolem__init_2($this, $par1, $par2) { - var var$3, var$4; - nms_ModelBase__init_0($this); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureWidth0 = 128.0; - var$3.$textureHeight0 = 128.0; - $this.$ironGolemHead = var$3; - var$3 = $this.$ironGolemHead; - var$4 = 0.0 + $par2; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = var$4; - var$3.$rotationPointZ = (-2.0); - var$3 = $this.$ironGolemHead; - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 0; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-4.0), (-12.0), (-5.5), 8, 10, 8, $par1)); - var$3 = $this.$ironGolemHead; - var$3.$textureOffsetX0 = 24; - var$3.$textureOffsetY0 = 0; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-1.0), (-5.0), (-7.5), 2, 4, 2, $par1)); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureWidth0 = 128.0; - var$3.$textureHeight0 = 128.0; - $this.$ironGolemBody = var$3; - var$3 = $this.$ironGolemBody; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = var$4; - var$3.$rotationPointZ = 0.0; - var$3 = $this.$ironGolemBody; - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 40; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-9.0), (-2.0), (-6.0), 18, 12, 11, $par1)); - var$3 = $this.$ironGolemBody; - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 70; - var$4 = $par1 + 0.5; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-4.5), 10.0, (-3.0), 9, 5, 6, var$4)); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureWidth0 = 128.0; - var$3.$textureHeight0 = 128.0; - $this.$ironGolemRightArm = var$3; - var$3 = $this.$ironGolemRightArm; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = (-7.0); - var$3.$rotationPointZ = 0.0; - var$3 = $this.$ironGolemRightArm; - var$3.$textureOffsetX0 = 60; - var$3.$textureOffsetY0 = 21; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-13.0), (-2.5), (-3.0), 4, 30, 6, $par1)); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureWidth0 = 128.0; - var$3.$textureHeight0 = 128.0; - $this.$ironGolemLeftArm = var$3; - var$3 = $this.$ironGolemLeftArm; - var$3.$rotationPointX = 0.0; - var$3.$rotationPointY = (-7.0); - var$3.$rotationPointZ = 0.0; - var$3 = $this.$ironGolemLeftArm; - var$3.$textureOffsetX0 = 60; - var$3.$textureOffsetY0 = 58; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, 9.0, (-2.5), (-3.0), 4, 30, 6, $par1)); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 22; - var$3.$textureWidth0 = 128.0; - var$3.$textureHeight0 = 128.0; - $this.$ironGolemLeftLeg = var$3; - var$3 = $this.$ironGolemLeftLeg; - $par2 = 18.0 + $par2; - var$3.$rotationPointX = (-4.0); - var$3.$rotationPointY = $par2; - var$3.$rotationPointZ = 0.0; - var$3 = $this.$ironGolemLeftLeg; - var$3.$textureOffsetX0 = 37; - var$3.$textureOffsetY0 = 0; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-3.5), (-3.0), (-3.0), 6, 16, 5, $par1)); - var$3 = nms_ModelRenderer__init_($this, null); - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 22; - var$3.$textureWidth0 = 128.0; - var$3.$textureHeight0 = 128.0; - $this.$ironGolemRightLeg = var$3; - $this.$ironGolemRightLeg.$mirror = 1; - var$3 = $this.$ironGolemRightLeg; - var$3.$textureOffsetX0 = 60; - var$3.$textureOffsetY0 = 0; - var$3.$rotationPointX = 5.0; - var$3.$rotationPointY = $par2; - var$3.$rotationPointZ = 0.0; - var$3 = $this.$ironGolemRightLeg; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-3.5), (-3.0), (-3.0), 6, 16, 5, $par1)); -} -function nms_ModelIronGolem_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - nms_ModelIronGolem_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - nms_ModelRenderer_render($this.$ironGolemHead, $par7); - nms_ModelRenderer_render($this.$ironGolemBody, $par7); - nms_ModelRenderer_render($this.$ironGolemLeftLeg, $par7); - nms_ModelRenderer_render($this.$ironGolemRightLeg, $par7); - nms_ModelRenderer_render($this.$ironGolemRightArm, $par7); - nms_ModelRenderer_render($this.$ironGolemLeftArm, $par7); -} -function nms_ModelIronGolem_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var var$8; - $this.$ironGolemHead.$rotateAngleY = $par4 / 57.2957763671875; - $this.$ironGolemHead.$rotateAngleX = $par5 / 57.2957763671875; - $par7Entity = $this.$ironGolemLeftLeg; - $par4 = $par1 % 13.0 - 6.5; - var$8 = $rt_compare($par4, 0.0); - $par7Entity.$rotateAngleX = (-1.5) * ((var$8 <= 0 ? -$par4 : $par4) - 3.25) / 3.25 * $par2; - $par7Entity = $this.$ironGolemRightLeg; - if (var$8 <= 0) - $par4 = -$par4; - $par7Entity.$rotateAngleX = 1.5 * ($par4 - 3.25) / 3.25 * $par2; - $this.$ironGolemLeftLeg.$rotateAngleY = 0.0; - $this.$ironGolemRightLeg.$rotateAngleY = 0.0; -} -function nms_ModelIronGolem_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - var $var5, $var6, $var7, var$8, var$9; - $var5 = $par1EntityLiving; - $var6 = $var5.$attackTimer; - if ($var6 > 0) { - $par1EntityLiving = $this.$ironGolemRightArm; - $par4 = ($var6 - $par4) % 10.0 - 5.0; - $var7 = $rt_compare($par4, 0.0); - $par1EntityLiving.$rotateAngleX = (-2.0) + 1.5 * (($var7 <= 0 ? -$par4 : $par4) - 2.5) / 2.5; - $par1EntityLiving = $this.$ironGolemLeftArm; - if ($var7 <= 0) - $par4 = -$par4; - $par1EntityLiving.$rotateAngleX = (-2.0) + 1.5 * ($par4 - 2.5) / 2.5; - } else { - $var7 = $var5.$holdRoseTick; - if ($var7 > 0) { - $par1EntityLiving = $this.$ironGolemRightArm; - var$8 = $var7 % 70.0 - 35.0; - if (var$8 <= 0.0) - var$8 = -var$8; - $par1EntityLiving.$rotateAngleX = (-0.800000011920929) + 0.02500000037252903 * (var$8 - 17.5) / 17.5; - $this.$ironGolemLeftArm.$rotateAngleX = 0.0; - } else { - $par1EntityLiving = $this.$ironGolemRightArm; - var$9 = $par2 % 13.0 - 6.5; - $var7 = $rt_compare(var$9, 0.0); - $par1EntityLiving.$rotateAngleX = ((-0.20000000298023224) + 1.5 * (($var7 <= 0 ? -var$9 : var$9) - 3.25) / 3.25) * $par3; - $par1EntityLiving = $this.$ironGolemLeftArm; - if ($var7 <= 0) - var$9 = -var$9; - $par1EntityLiving.$rotateAngleX = ((-0.20000000298023224) - 1.5 * (var$9 - 3.25) / 3.25) * $par3; - } - } -} -function nms_ModelBat() { - var a = this; nms_ModelBase.call(a); - a.$batHead = null; - a.$batBody = null; - a.$batRightWing = null; - a.$batLeftWing = null; - a.$batOuterRightWing = null; - a.$batOuterLeftWing = null; -} -function nms_ModelBat__init_0() { - var var_0 = new nms_ModelBat(); - nms_ModelBat__init_(var_0); - return var_0; -} -function nms_ModelBat__init_($this) { - var $var1, $var2, var$3; - nms_ModelBase__init_0($this); - $this.$textureWidth = 64; - $this.$textureHeight = 64; - $var1 = nms_ModelRenderer__init_($this, null); - $var1.$textureOffsetX0 = 0; - $var1.$textureOffsetY0 = 0; - $this.$batHead = $var1; - $var1 = $this.$batHead; - ju_ArrayList_add($var1.$cubeList, nms_ModelBox__init_($var1, $var1.$textureOffsetX0, $var1.$textureOffsetY0, (-3.0), (-3.0), (-3.0), 6, 6, 6, 0.0)); - $var1 = nms_ModelRenderer__init_($this, null); - $var1.$textureOffsetX0 = 24; - $var1.$textureOffsetY0 = 0; - ju_ArrayList_add($var1.$cubeList, nms_ModelBox__init_($var1, $var1.$textureOffsetX0, $var1.$textureOffsetY0, (-4.0), (-6.0), (-2.0), 3, 4, 1, 0.0)); - $var2 = $this.$batHead; - if ($var2.$childModels === null) { - var$3 = new ju_ArrayList; - var$3.$array1 = $rt_createArray(jl_Object, 10); - $var2.$childModels = var$3; - } - ju_ArrayList_add($var2.$childModels, $var1); - $var2 = nms_ModelRenderer__init_($this, null); - $var2.$textureOffsetX0 = 24; - $var2.$textureOffsetY0 = 0; - $var2.$mirror = 1; - ju_ArrayList_add($var2.$cubeList, nms_ModelBox__init_($var2, $var2.$textureOffsetX0, $var2.$textureOffsetY0, 1.0, (-6.0), (-2.0), 3, 4, 1, 0.0)); - $var1 = $this.$batHead; - if ($var1.$childModels === null) { - var$3 = new ju_ArrayList; - var$3.$array1 = $rt_createArray(jl_Object, 10); - $var1.$childModels = var$3; - } - ju_ArrayList_add($var1.$childModels, $var2); - $var1 = nms_ModelRenderer__init_($this, null); - $var1.$textureOffsetX0 = 0; - $var1.$textureOffsetY0 = 16; - $this.$batBody = $var1; - $var1 = $this.$batBody; - ju_ArrayList_add($var1.$cubeList, nms_ModelBox__init_($var1, $var1.$textureOffsetX0, $var1.$textureOffsetY0, (-3.0), 4.0, (-3.0), 6, 12, 6, 0.0)); - $var1 = $this.$batBody; - $var1.$textureOffsetX0 = 0; - $var1.$textureOffsetY0 = 34; - ju_ArrayList_add($var1.$cubeList, nms_ModelBox__init_($var1, $var1.$textureOffsetX0, $var1.$textureOffsetY0, (-5.0), 16.0, 0.0, 10, 6, 1, 0.0)); - $var1 = nms_ModelRenderer__init_($this, null); - $var1.$textureOffsetX0 = 42; - $var1.$textureOffsetY0 = 0; - $this.$batRightWing = $var1; - $var1 = $this.$batRightWing; - ju_ArrayList_add($var1.$cubeList, nms_ModelBox__init_($var1, $var1.$textureOffsetX0, $var1.$textureOffsetY0, (-12.0), 1.0, 1.5, 10, 16, 1, 0.0)); - $var1 = nms_ModelRenderer__init_($this, null); - $var1.$textureOffsetX0 = 24; - $var1.$textureOffsetY0 = 16; - $this.$batOuterRightWing = $var1; - $var1 = $this.$batOuterRightWing; - $var1.$rotationPointX = (-12.0); - $var1.$rotationPointY = 1.0; - $var1.$rotationPointZ = 1.5; - $var1 = $this.$batOuterRightWing; - ju_ArrayList_add($var1.$cubeList, nms_ModelBox__init_($var1, $var1.$textureOffsetX0, $var1.$textureOffsetY0, (-8.0), 1.0, 0.0, 8, 12, 1, 0.0)); - $var1 = nms_ModelRenderer__init_($this, null); - $var1.$textureOffsetX0 = 42; - $var1.$textureOffsetY0 = 0; - $this.$batLeftWing = $var1; - $this.$batLeftWing.$mirror = 1; - $var1 = $this.$batLeftWing; - ju_ArrayList_add($var1.$cubeList, nms_ModelBox__init_($var1, $var1.$textureOffsetX0, $var1.$textureOffsetY0, 2.0, 1.0, 1.5, 10, 16, 1, 0.0)); - $var1 = nms_ModelRenderer__init_($this, null); - nms_ModelRenderer_setTextureOffset($var1, 24, 16); - $this.$batOuterLeftWing = $var1; - $this.$batOuterLeftWing.$mirror = 1; - nms_ModelRenderer_setRotationPoint($this.$batOuterLeftWing, 12.0, 1.0, 1.5); - nms_ModelRenderer_addBox1($this.$batOuterLeftWing, 0.0, 1.0, 0.0, 8, 12, 1); - nms_ModelRenderer_addChild($this.$batBody, $this.$batRightWing); - nms_ModelRenderer_addChild($this.$batBody, $this.$batLeftWing); - nms_ModelRenderer_addChild($this.$batRightWing, $this.$batOuterRightWing); - nms_ModelRenderer_addChild($this.$batLeftWing, $this.$batOuterLeftWing); -} -function nms_ModelBat_getBatSize($this) { - return 36; -} -function nms_ModelBat_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - if (!(nms_DataWatcher_getWatchableObjectByte($par1Entity.$dataWatcher, 16) & 1) ? 0 : 1) { - $this.$batHead.$rotateAngleX = $par6 / 57.2957763671875; - $this.$batHead.$rotateAngleY = 3.1415927410125732 - $par5 / 57.2957763671875; - $this.$batHead.$rotateAngleZ = 3.1415927410125732; - $par1Entity = $this.$batHead; - $par1Entity.$rotationPointX = 0.0; - $par1Entity.$rotationPointY = (-2.0); - $par1Entity.$rotationPointZ = 0.0; - $par1Entity = $this.$batRightWing; - $par1Entity.$rotationPointX = (-3.0); - $par1Entity.$rotationPointY = 0.0; - $par1Entity.$rotationPointZ = 3.0; - $par1Entity = $this.$batLeftWing; - $par1Entity.$rotationPointX = 3.0; - $par1Entity.$rotationPointY = 0.0; - $par1Entity.$rotationPointZ = 3.0; - $this.$batBody.$rotateAngleX = 3.1415927410125732; - $this.$batRightWing.$rotateAngleX = (-0.15707963705062866); - $this.$batRightWing.$rotateAngleY = (-1.2566370964050293); - $this.$batOuterRightWing.$rotateAngleY = (-1.72787606716156); - $this.$batLeftWing.$rotateAngleX = $this.$batRightWing.$rotateAngleX; - $this.$batLeftWing.$rotateAngleY = -$this.$batRightWing.$rotateAngleY; - $this.$batOuterLeftWing.$rotateAngleY = -$this.$batOuterRightWing.$rotateAngleY; - } else { - $this.$batHead.$rotateAngleX = $par6 / 57.2957763671875; - $this.$batHead.$rotateAngleY = $par5 / 57.2957763671875; - $this.$batHead.$rotateAngleZ = 0.0; - $par1Entity = $this.$batHead; - $par1Entity.$rotationPointX = 0.0; - $par1Entity.$rotationPointY = 0.0; - $par1Entity.$rotationPointZ = 0.0; - $par1Entity = $this.$batRightWing; - $par1Entity.$rotationPointX = 0.0; - $par1Entity.$rotationPointY = 0.0; - $par1Entity.$rotationPointZ = 0.0; - $par1Entity = $this.$batLeftWing; - $par1Entity.$rotationPointX = 0.0; - $par1Entity.$rotationPointY = 0.0; - $par1Entity.$rotationPointZ = 0.0; - $par1Entity = $this.$batBody; - $par3 = $par4 * 0.10000000149011612; - $par1Entity.$rotateAngleX = 0.7853981852531433 + nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 0.15000000596046448; - $this.$batBody.$rotateAngleY = 0.0; - $par1Entity = $this.$batRightWing; - $par3 = $par4 * 1.2999999523162842; - $par1Entity.$rotateAngleY = nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 3.1415927410125732 * 0.25; - $this.$batLeftWing.$rotateAngleY = -$this.$batRightWing.$rotateAngleY; - $this.$batOuterRightWing.$rotateAngleY = $this.$batRightWing.$rotateAngleY * 0.5; - $this.$batOuterLeftWing.$rotateAngleY = -$this.$batRightWing.$rotateAngleY * 0.5; - } - nms_ModelRenderer_render($this.$batHead, $par7); - nms_ModelRenderer_render($this.$batBody, $par7); -} -function nms_ModelDragon() { - var a = this; nms_ModelBase.call(a); - a.$head3 = null; - a.$neck = null; - a.$jaw = null; - a.$body4 = null; - a.$rearLeg = null; - a.$frontLeg = null; - a.$rearLegTip = null; - a.$frontLegTip = null; - a.$rearFoot = null; - a.$frontFoot = null; - a.$wing = null; - a.$wingTip = null; - a.$partialTicks = 0.0; -} -function nms_ModelDragon__init_(var_0) { - var var_1 = new nms_ModelDragon(); - nms_ModelDragon__init_0(var_1, var_0); - return var_1; -} -function nms_ModelDragon__init_0($this, $par1) { - nms_ModelBase__init_0($this); - $this.$textureWidth = 256; - $this.$textureHeight = 256; - nms_ModelBase_setTextureOffset($this, $rt_s(1763), 0, 0); - nms_ModelBase_setTextureOffset($this, $rt_s(1764), (-56), 88); - nms_ModelBase_setTextureOffset($this, $rt_s(1765), (-56), 144); - nms_ModelBase_setTextureOffset($this, $rt_s(1766), 0, 0); - nms_ModelBase_setTextureOffset($this, $rt_s(1767), 112, 0); - nms_ModelBase_setTextureOffset($this, $rt_s(1768), 196, 0); - nms_ModelBase_setTextureOffset($this, $rt_s(1769), 112, 30); - nms_ModelBase_setTextureOffset($this, $rt_s(1770), 112, 88); - nms_ModelBase_setTextureOffset($this, $rt_s(1771), 176, 44); - nms_ModelBase_setTextureOffset($this, $rt_s(1772), 176, 65); - nms_ModelBase_setTextureOffset($this, $rt_s(1773), 112, 104); - nms_ModelBase_setTextureOffset($this, $rt_s(1774), 112, 136); - nms_ModelBase_setTextureOffset($this, $rt_s(1775), 144, 104); - nms_ModelBase_setTextureOffset($this, $rt_s(1776), 192, 104); - nms_ModelBase_setTextureOffset($this, $rt_s(1777), 226, 138); - nms_ModelBase_setTextureOffset($this, $rt_s(1778), 220, 53); - nms_ModelBase_setTextureOffset($this, $rt_s(1779), 0, 0); - nms_ModelBase_setTextureOffset($this, $rt_s(1780), 48, 0); - nms_ModelBase_setTextureOffset($this, $rt_s(1781), 112, 0); - $this.$head3 = nms_ModelRenderer__init_($this, $rt_s(1235)); - nms_ModelRenderer_addBox0($this.$head3, $rt_s(1782), (-6.0), (-1.0), (-24.0), 12, 5, 16); - nms_ModelRenderer_addBox0($this.$head3, $rt_s(1783), (-8.0), (-8.0), (-10.0), 16, 16, 16); - $this.$head3.$mirror = 1; - nms_ModelRenderer_addBox0($this.$head3, $rt_s(1784), (-5.0), (-12.0), (-4.0), 2, 4, 6); - nms_ModelRenderer_addBox0($this.$head3, $rt_s(1785), (-5.0), (-3.0), (-22.0), 2, 2, 4); - $this.$head3.$mirror = 0; - nms_ModelRenderer_addBox0($this.$head3, $rt_s(1784), 3.0, (-12.0), (-4.0), 2, 4, 6); - nms_ModelRenderer_addBox0($this.$head3, $rt_s(1785), 3.0, (-3.0), (-22.0), 2, 2, 4); - $this.$jaw = nms_ModelRenderer__init_($this, $rt_s(1786)); - nms_ModelRenderer_setRotationPoint($this.$jaw, 0.0, 4.0, (-8.0)); - nms_ModelRenderer_addBox0($this.$jaw, $rt_s(1786), (-6.0), 0.0, (-16.0), 12, 4, 16); - nms_ModelRenderer_addChild($this.$head3, $this.$jaw); - $this.$neck = nms_ModelRenderer__init_($this, $rt_s(1787)); - nms_ModelRenderer_addBox0($this.$neck, $rt_s(1788), (-5.0), (-5.0), (-5.0), 10, 10, 10); - nms_ModelRenderer_addBox0($this.$neck, $rt_s(1784), (-1.0), (-9.0), (-3.0), 2, 4, 6); - $this.$body4 = nms_ModelRenderer__init_($this, $rt_s(1322)); - nms_ModelRenderer_setRotationPoint($this.$body4, 0.0, 4.0, 8.0); - nms_ModelRenderer_addBox0($this.$body4, $rt_s(1322), (-12.0), 0.0, (-16.0), 24, 24, 64); - nms_ModelRenderer_addBox0($this.$body4, $rt_s(1784), (-1.0), (-6.0), (-10.0), 2, 6, 12); - nms_ModelRenderer_addBox0($this.$body4, $rt_s(1784), (-1.0), (-6.0), 10.0, 2, 6, 12); - nms_ModelRenderer_addBox0($this.$body4, $rt_s(1784), (-1.0), (-6.0), 30.0, 2, 6, 12); - $this.$wing = nms_ModelRenderer__init_($this, $rt_s(1324)); - nms_ModelRenderer_setRotationPoint($this.$wing, (-12.0), 5.0, 2.0); - nms_ModelRenderer_addBox0($this.$wing, $rt_s(1444), (-56.0), (-4.0), (-4.0), 56, 8, 8); - nms_ModelRenderer_addBox0($this.$wing, $rt_s(1789), (-56.0), 0.0, 2.0, 56, 0, 56); - $this.$wingTip = nms_ModelRenderer__init_($this, $rt_s(1790)); - nms_ModelRenderer_setRotationPoint($this.$wingTip, (-56.0), 0.0, 0.0); - nms_ModelRenderer_addBox0($this.$wingTip, $rt_s(1444), (-56.0), (-2.0), (-2.0), 56, 4, 4); - nms_ModelRenderer_addBox0($this.$wingTip, $rt_s(1789), (-56.0), 0.0, 2.0, 56, 0, 56); - nms_ModelRenderer_addChild($this.$wing, $this.$wingTip); - $this.$frontLeg = nms_ModelRenderer__init_($this, $rt_s(1791)); - nms_ModelRenderer_setRotationPoint($this.$frontLeg, (-12.0), 20.0, 2.0); - nms_ModelRenderer_addBox0($this.$frontLeg, $rt_s(213), (-4.0), (-4.0), (-4.0), 8, 24, 8); - $this.$frontLegTip = nms_ModelRenderer__init_($this, $rt_s(1792)); - nms_ModelRenderer_setRotationPoint($this.$frontLegTip, 0.0, 20.0, (-1.0)); - nms_ModelRenderer_addBox0($this.$frontLegTip, $rt_s(213), (-3.0), (-1.0), (-3.0), 6, 24, 6); - nms_ModelRenderer_addChild($this.$frontLeg, $this.$frontLegTip); - $this.$frontFoot = nms_ModelRenderer__init_($this, $rt_s(1793)); - nms_ModelRenderer_setRotationPoint($this.$frontFoot, 0.0, 23.0, 0.0); - nms_ModelRenderer_addBox0($this.$frontFoot, $rt_s(213), (-4.0), 0.0, (-12.0), 8, 4, 16); - nms_ModelRenderer_addChild($this.$frontLegTip, $this.$frontFoot); - $this.$rearLeg = nms_ModelRenderer__init_($this, $rt_s(1794)); - nms_ModelRenderer_setRotationPoint($this.$rearLeg, (-16.0), 16.0, 42.0); - nms_ModelRenderer_addBox0($this.$rearLeg, $rt_s(213), (-8.0), (-4.0), (-8.0), 16, 32, 16); - $this.$rearLegTip = nms_ModelRenderer__init_($this, $rt_s(1795)); - nms_ModelRenderer_setRotationPoint($this.$rearLegTip, 0.0, 32.0, (-4.0)); - nms_ModelRenderer_addBox0($this.$rearLegTip, $rt_s(213), (-6.0), (-2.0), 0.0, 12, 32, 12); - nms_ModelRenderer_addChild($this.$rearLeg, $this.$rearLegTip); - $this.$rearFoot = nms_ModelRenderer__init_($this, $rt_s(1796)); - nms_ModelRenderer_setRotationPoint($this.$rearFoot, 0.0, 31.0, 4.0); - nms_ModelRenderer_addBox0($this.$rearFoot, $rt_s(213), (-9.0), 0.0, (-20.0), 18, 6, 24); - nms_ModelRenderer_addChild($this.$rearLegTip, $this.$rearFoot); -} -function nms_ModelDragon_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - $this.$partialTicks = $par4; -} -function nms_ModelDragon_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, var$10, $var10, $var13, $var15, $var16, $var17, $var12, $var19, var$18, $var22, $var20, $var21, $var23, var$23, $var24, $var25; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var8 = $par1Entity; - $var9 = $var8.$prevAnimTime + ($var8.$animTime - $var8.$prevAnimTime) * $this.$partialTicks; - $par1Entity = $this.$jaw; - $var9 = $var9 * 3.1415927410125732 * 2.0; - var$10 = $var9; - $par1Entity.$rotateAngleX = (jl_Math_sin(var$10) + 1.0) * 0.20000000298023224; - $var10 = jl_Math_sin($var9 - 1.0) + 1.0; - $par2 = ($var10 * $var10 * 1.0 + $var10 * 2.0) * 0.05000000074505806; - nleg_EaglerAdapterGL30_glTranslatef(0.0, $par2 - 2.0, (-3.0)); - nleg_EaglerAdapterGL30_glRotatef($par2 * 2.0, 1.0, 0.0, 0.0); - $var13 = 0.0; - $var15 = nms_EntityDragon_getMovementOffsets($var8, 6, $this.$partialTicks); - $var16 = nms_ModelDragon_updateRotations($this, nms_EntityDragon_getMovementOffsets($var8, 5, $this.$partialTicks).data[0] - nms_EntityDragon_getMovementOffsets($var8, 10, $this.$partialTicks).data[0]); - $var17 = nms_ModelDragon_updateRotations($this, nms_EntityDragon_getMovementOffsets($var8, 5, $this.$partialTicks).data[0] + $var16 / 2.0); - $par5 = 20.0; - $var12 = (-12.0); - $var19 = 0; - var$18 = $var17; - while ($var19 < 5) { - $var22 = $var15.data; - $var20 = nms_EntityDragon_getMovementOffsets($var8, 5 - $var19 | 0, $this.$partialTicks).data; - $var21 = jl_Math_cos($var19 * 0.44999998807907104 + $var9) * 0.15000000596046448; - $this.$neck.$rotateAngleY = nms_ModelDragon_updateRotations($this, $var20[0] - $var22[0]) * 3.1415927410125732 / 180.0 * 1.5; - $this.$neck.$rotateAngleX = $var21 + ($var20[1] - $var22[1]) * 3.1415927410125732 / 180.0 * 1.5 * 5.0; - $this.$neck.$rotateAngleZ = -nms_ModelDragon_updateRotations($this, $var20[0] - var$18) * 3.1415927410125732 / 180.0 * 1.5; - $this.$neck.$rotationPointY = $par5; - $this.$neck.$rotationPointZ = $var12; - $this.$neck.$rotationPointX = $var13; - $par5 = $par5 + jl_Math_sin($this.$neck.$rotateAngleX) * 10.0; - $var12 = $var12 - jl_Math_cos($this.$neck.$rotateAngleY) * jl_Math_cos($this.$neck.$rotateAngleX) * 10.0; - $var13 = $var13 - jl_Math_sin($this.$neck.$rotateAngleY) * jl_Math_cos($this.$neck.$rotateAngleX) * 10.0; - nms_ModelRenderer_render($this.$neck, $par7); - $var19 = $var19 + 1 | 0; - } - $var20 = $var15.data; - $this.$head3.$rotationPointY = $par5; - $this.$head3.$rotationPointZ = $var12; - $this.$head3.$rotationPointX = $var13; - $var22 = nms_EntityDragon_getMovementOffsets($var8, 0, $this.$partialTicks).data; - $this.$head3.$rotateAngleY = nms_ModelDragon_updateRotations($this, $var22[0] - $var20[0]) * 3.1415927410125732 / 180.0 * 1.0; - $this.$head3.$rotateAngleZ = -nms_ModelDragon_updateRotations($this, $var22[0] - var$18) * 3.1415927410125732 / 180.0 * 1.0; - nms_ModelRenderer_render($this.$head3, $par7); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef( -$var16 * 1.5 * 1.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-1.0), 0.0); - $this.$body4.$rotateAngleZ = 0.0; - nms_ModelRenderer_render($this.$body4, $par7); - $var23 = 0; - var$23 = $var9 + 2.0; - $par2 = $par2 * 0.10000000149011612; - $par4 = 1.0 + $par2; - $par5 = 0.5 + $par2; - $par6 = 0.75 + $par2; - $var13 = 1.2999999523162842 + $par2; - $var21 = (-0.5) - $par2; - while ($var23 < 2) { - nleg_EaglerAdapterGL30_glEnable(46); - $this.$wing.$rotateAngleX = 0.125 - jl_Math_cos(var$10) * 0.20000000298023224; - $this.$wing.$rotateAngleY = 0.25; - $this.$wing.$rotateAngleZ = (jl_Math_sin(var$10) + 0.125) * 0.800000011920929; - $this.$wingTip.$rotateAngleZ = -(jl_Math_sin(var$23) + 0.5) * 0.75; - $this.$rearLeg.$rotateAngleX = $par4; - $this.$rearLegTip.$rotateAngleX = $par5; - $this.$rearFoot.$rotateAngleX = $par6; - $this.$frontLeg.$rotateAngleX = $var13; - $this.$frontLegTip.$rotateAngleX = $var21; - $this.$frontFoot.$rotateAngleX = $par6; - nms_ModelRenderer_render($this.$wing, $par7); - nms_ModelRenderer_render($this.$frontLeg, $par7); - nms_ModelRenderer_render($this.$rearLeg, $par7); - nleg_EaglerAdapterGL30_glScalef((-1.0), 1.0, 1.0); - if (!$var23) - nleg_EaglerAdapterGL30_glCullFace(55); - $var23 = $var23 + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glCullFace(8); - nleg_EaglerAdapterGL30_glDisable(46); - $var24 = -jl_Math_sin(var$10) * 0.0; - $par4 = 10.0; - $par5 = 60.0; - $par6 = 0.0; - $var20 = nms_EntityDragon_getMovementOffsets($var8, 11, $this.$partialTicks); - $var25 = 0; - while ($var25 < 12) { - $var15 = $var20.data; - $var22 = nms_EntityDragon_getMovementOffsets($var8, 12 + $var25 | 0, $this.$partialTicks).data; - $var24 = $var24 + jl_Math_sin($var25 * 0.44999998807907104 + $var9) * 0.05000000074505806; - $this.$neck.$rotateAngleY = (nms_ModelDragon_updateRotations($this, $var22[0] - $var15[0]) * 1.5 + 180.0) * 3.1415927410125732 / 180.0; - $this.$neck.$rotateAngleX = $var24 + ($var22[1] - $var15[1]) * 3.1415927410125732 / 180.0 * 1.5 * 5.0; - $this.$neck.$rotateAngleZ = nms_ModelDragon_updateRotations($this, $var22[0] - var$18) * 3.1415927410125732 / 180.0 * 1.5; - $this.$neck.$rotationPointY = $par4; - $this.$neck.$rotationPointZ = $par5; - $this.$neck.$rotationPointX = $par6; - $par4 = $par4 + jl_Math_sin($this.$neck.$rotateAngleX) * 10.0; - $par5 = $par5 - jl_Math_cos($this.$neck.$rotateAngleY) * jl_Math_cos($this.$neck.$rotateAngleX) * 10.0; - $par6 = $par6 - jl_Math_sin($this.$neck.$rotateAngleY) * jl_Math_cos($this.$neck.$rotateAngleX) * 10.0; - nms_ModelRenderer_render($this.$neck, $par7); - $var25 = $var25 + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_ModelDragon_updateRotations($this, $par1) { - while ($par1 >= 180.0) { - $par1 = $par1 - 360.0; - } - while ($par1 < (-180.0)) { - $par1 = $par1 + 360.0; - } - return $par1; -} -function nms_ModelWither() { - var a = this; nms_ModelBase.call(a); - a.$field_82905_a = null; - a.$field_82904_b = null; -} -function nms_ModelWither__init_0() { - var var_0 = new nms_ModelWither(); - nms_ModelWither__init_(var_0); - return var_0; -} -function nms_ModelWither__init_($this) { - var var$1, var$2, var$3, var$4; - nms_ModelBase__init_0($this); - $this.$textureWidth = 64; - $this.$textureHeight = 64; - $this.$field_82905_a = $rt_createArray(nms_ModelRenderer, 3); - var$1 = $this.$field_82905_a.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 16; - var$1[0] = var$2; - var$2 = $this.$field_82905_a.data[0]; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-10.0), 3.9000000953674316, (-0.5), 20, 3, 3, 0.0)); - var$1 = $this.$field_82905_a.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$3 = $this.$textureWidth; - var$4 = $this.$textureHeight; - var$2.$textureWidth0 = var$3; - var$2.$textureHeight0 = var$4; - var$1[1] = var$2; - var$2 = $this.$field_82905_a.data[1]; - var$2.$rotationPointX = (-2.0); - var$2.$rotationPointY = 6.900000095367432; - var$2.$rotationPointZ = (-0.5); - var$2 = $this.$field_82905_a.data[1]; - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 22; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, 0.0, 0.0, 0.0, 3, 10, 3, 0.0)); - var$2 = $this.$field_82905_a.data[1]; - var$2.$textureOffsetX0 = 24; - var$2.$textureOffsetY0 = 22; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-4.0), 1.5, 0.5, 11, 2, 2, 0.0)); - var$2 = $this.$field_82905_a.data[1]; - var$2.$textureOffsetX0 = 24; - var$2.$textureOffsetY0 = 22; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-4.0), 4.0, 0.5, 11, 2, 2, 0.0)); - var$2 = $this.$field_82905_a.data[1]; - var$2.$textureOffsetX0 = 24; - var$2.$textureOffsetY0 = 22; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-4.0), 6.5, 0.5, 11, 2, 2, 0.0)); - var$1 = $this.$field_82905_a.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 12; - var$2.$textureOffsetY0 = 22; - var$1[2] = var$2; - var$2 = $this.$field_82905_a.data[2]; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, 0.0, 0.0, 0.0, 3, 6, 3, 0.0)); - $this.$field_82904_b = $rt_createArray(nms_ModelRenderer, 3); - var$1 = $this.$field_82904_b.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - var$1[0] = var$2; - var$2 = $this.$field_82904_b.data[0]; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-4.0), (-4.0), (-4.0), 8, 8, 8, 0.0)); - var$1 = $this.$field_82904_b.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 32; - var$2.$textureOffsetY0 = 0; - var$1[1] = var$2; - nms_ModelRenderer_addBox1($this.$field_82904_b.data[1], (-4.0), (-4.0), (-4.0), 6, 6, 6); - $this.$field_82904_b.data[1].$rotationPointX = (-8.0); - $this.$field_82904_b.data[1].$rotationPointY = 4.0; - var$1 = $this.$field_82904_b.data; - var$2 = nms_ModelRenderer__init_0($this); - nms_ModelRenderer_setTextureOffset(var$2, 32, 0); - var$1[2] = var$2; - nms_ModelRenderer_addBox1($this.$field_82904_b.data[2], (-4.0), (-4.0), (-4.0), 6, 6, 6); - $this.$field_82904_b.data[2].$rotationPointX = 10.0; - $this.$field_82904_b.data[2].$rotationPointY = 4.0; -} -function nms_ModelWither_func_82903_a($this) { - return 32; -} -function nms_ModelWither_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var10; - nms_ModelWither_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - $var8 = $this.$field_82904_b.data; - $var9 = $var8.length; - $var10 = 0; - while ($var10 < $var9) { - nms_ModelRenderer_render($var8[$var10], $par7); - $var10 = $var10 + 1 | 0; - } - $var8 = $this.$field_82905_a.data; - $var10 = $var8.length; - $var9 = 0; - while ($var9 < $var10) { - nms_ModelRenderer_render($var8[$var9], $par7); - $var9 = $var9 + 1 | 0; - } -} -function nms_ModelWither_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8; - $par1 = $par3 * 0.10000000149011612; - $var8 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $this.$field_82905_a.data[1].$rotateAngleX = (0.06499999761581421 + 0.05000000074505806 * $var8) * 3.1415927410125732; - $par7Entity = $this.$field_82905_a.data[2]; - $par3 = $this.$field_82905_a.data[1].$rotateAngleX; - $par2 = 6.900000095367432 + nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 + 16384.0 | 0) & 65535] * 10.0; - $par3 = $this.$field_82905_a.data[1].$rotateAngleX; - $par3 = (-0.5) + nms_MathHelper_SIN_TABLE.data[($par3 * 10430.3779296875 | 0) & 65535] * 10.0; - $par7Entity.$rotationPointX = (-2.0); - $par7Entity.$rotationPointY = $par2; - $par7Entity.$rotationPointZ = $par3; - $this.$field_82905_a.data[2].$rotateAngleX = (0.26499998569488525 + 0.10000000149011612 * $var8) * 3.1415927410125732; - $this.$field_82904_b.data[0].$rotateAngleY = $par4 / 57.2957763671875; - $this.$field_82904_b.data[0].$rotateAngleX = $par5 / 57.2957763671875; -} -function nms_ModelWither_setLivingAnimations($this, $par1EntityLiving, $par2, $par3, $par4) { - var $var5, $var6, var$7, var$8; - $var5 = $par1EntityLiving; - $var6 = 1; - while ($var6 < 3) { - var$7 = $this.$field_82904_b.data[$var6]; - var$8 = $var6 - 1 | 0; - var$7.$rotateAngleY = ($var5.$field_82221_e.data[var$8] - $par1EntityLiving.$renderYawOffset) / 57.2957763671875; - $this.$field_82904_b.data[$var6].$rotateAngleX = $var5.$field_82220_d.data[var$8] / 57.2957763671875; - $var6 = $var6 + 1 | 0; - } -} -function nms_ModelSkeletonHead() { - nms_ModelBase.call(this); - this.$skeletonHead = null; -} -function nms_ModelSkeletonHead__init_1() { - var var_0 = new nms_ModelSkeletonHead(); - nms_ModelSkeletonHead__init_(var_0); - return var_0; -} -function nms_ModelSkeletonHead__init_0(var_0, var_1, var_2, var_3) { - var var_4 = new nms_ModelSkeletonHead(); - nms_ModelSkeletonHead__init_2(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_ModelSkeletonHead__init_($this) { - nms_ModelSkeletonHead__init_2($this, 0, 35, 64, 64); -} -function nms_ModelSkeletonHead__init_2($this, $par1, $par2, $par3, $par4) { - var var$5; - nms_ModelBase__init_0($this); - $this.$textureWidth = $par3; - $this.$textureHeight = $par4; - var$5 = nms_ModelRenderer__init_($this, null); - var$5.$textureOffsetX0 = $par1; - var$5.$textureOffsetY0 = $par2; - $this.$skeletonHead = var$5; - var$5 = $this.$skeletonHead; - ju_ArrayList_add(var$5.$cubeList, nms_ModelBox__init_(var$5, var$5.$textureOffsetX0, var$5.$textureOffsetY0, (-4.0), (-8.0), (-4.0), 8, 8, 8, 0.0)); - var$5 = $this.$skeletonHead; - var$5.$rotationPointX = 0.0; - var$5.$rotationPointY = 0.0; - var$5.$rotationPointZ = 0.0; -} -function nms_ModelSkeletonHead_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - $this.$skeletonHead.$rotateAngleY = $par5 / 57.2957763671875; - $this.$skeletonHead.$rotateAngleX = $par6 / 57.2957763671875; - nms_ModelRenderer_render($this.$skeletonHead, $par7); -} -function nms_ModelSkeletonHead_setRotationAngles($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - $this.$skeletonHead.$rotateAngleY = $par4 / 57.2957763671875; - $this.$skeletonHead.$rotateAngleX = $par5 / 57.2957763671875; -} -function nms_ModelMinecart() { - nms_ModelBase.call(this); - this.$sideModels = null; -} -function nms_ModelMinecart__init_0() { - var var_0 = new nms_ModelMinecart(); - nms_ModelMinecart__init_(var_0); - return var_0; -} -function nms_ModelMinecart__init_($this) { - var var$1, var$2, var$3; - nms_ModelBase__init_0($this); - $this.$sideModels = $rt_createArray(nms_ModelRenderer, 7); - var$1 = $this.$sideModels.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 10; - var$1[0] = var$2; - var$1 = $this.$sideModels.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - var$1[1] = var$2; - var$1 = $this.$sideModels.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - var$1[2] = var$2; - var$1 = $this.$sideModels.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - var$1[3] = var$2; - var$1 = $this.$sideModels.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - var$1[4] = var$2; - var$1 = $this.$sideModels.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 44; - var$2.$textureOffsetY0 = 10; - var$1[5] = var$2; - var$3 = $this.$sideModels.data[0]; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-10.0), (-8.0), (-1.0), 20, 16, 2, 0.0)); - var$2 = $this.$sideModels.data[0]; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$3 = $this.$sideModels.data[5]; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-9.0), (-7.0), (-1.0), 18, 14, 1, 0.0)); - var$2 = $this.$sideModels.data[5]; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$3 = $this.$sideModels.data[1]; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-8.0), (-9.0), (-1.0), 16, 8, 2, 0.0)); - var$2 = $this.$sideModels.data[1]; - var$2.$rotationPointX = (-9.0); - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$3 = $this.$sideModels.data[2]; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-8.0), (-9.0), (-1.0), 16, 8, 2, 0.0)); - var$2 = $this.$sideModels.data[2]; - var$2.$rotationPointX = 9.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$3 = $this.$sideModels.data[3]; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-8.0), (-9.0), (-1.0), 16, 8, 2, 0.0)); - var$2 = $this.$sideModels.data[3]; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = (-7.0); - var$2 = $this.$sideModels.data[4]; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-8.0), (-9.0), (-1.0), 16, 8, 2, 0.0)); - var$2 = $this.$sideModels.data[4]; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 7.0; - $this.$sideModels.data[0].$rotateAngleX = 1.5707963705062866; - $this.$sideModels.data[1].$rotateAngleY = 4.71238899230957; - $this.$sideModels.data[2].$rotateAngleY = 1.5707963705062866; - $this.$sideModels.data[3].$rotateAngleY = 3.1415927410125732; - $this.$sideModels.data[5].$rotateAngleX = (-1.5707963705062866); -} -function nms_ModelMinecart_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $this.$sideModels.data[5].$rotationPointY = 4.0 - $par4; - $var8 = 0; - while ($var8 < 6) { - nms_ModelRenderer_render($this.$sideModels.data[$var8], $par7); - $var8 = $var8 + 1 | 0; - } -} -function nms_ModelBoat() { - nms_ModelBase.call(this); - this.$boatSides = null; -} -function nms_ModelBoat__init_0() { - var var_0 = new nms_ModelBoat(); - nms_ModelBoat__init_(var_0); - return var_0; -} -function nms_ModelBoat__init_($this) { - var var$1, var$2, var$3; - nms_ModelBase__init_0($this); - $this.$boatSides = $rt_createArray(nms_ModelRenderer, 5); - var$1 = $this.$boatSides.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 8; - var$1[0] = var$2; - var$1 = $this.$boatSides.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - var$1[1] = var$2; - var$1 = $this.$boatSides.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - var$1[2] = var$2; - var$1 = $this.$boatSides.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - var$1[3] = var$2; - var$1 = $this.$boatSides.data; - var$2 = nms_ModelRenderer__init_($this, null); - var$2.$textureOffsetX0 = 0; - var$2.$textureOffsetY0 = 0; - var$1[4] = var$2; - var$3 = $this.$boatSides.data[0]; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-12.0), (-8.0), (-3.0), 24, 16, 4, 0.0)); - var$2 = $this.$boatSides.data[0]; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$3 = $this.$boatSides.data[1]; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-10.0), (-7.0), (-1.0), 20, 6, 2, 0.0)); - var$2 = $this.$boatSides.data[1]; - var$2.$rotationPointX = (-11.0); - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$3 = $this.$boatSides.data[2]; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-10.0), (-7.0), (-1.0), 20, 6, 2, 0.0)); - var$2 = $this.$boatSides.data[2]; - var$2.$rotationPointX = 11.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 0.0; - var$3 = $this.$boatSides.data[3]; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-10.0), (-7.0), (-1.0), 20, 6, 2, 0.0)); - var$2 = $this.$boatSides.data[3]; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = (-9.0); - var$2 = $this.$boatSides.data[4]; - ju_ArrayList_add(var$2.$cubeList, nms_ModelBox__init_(var$2, var$2.$textureOffsetX0, var$2.$textureOffsetY0, (-10.0), (-7.0), (-1.0), 20, 6, 2, 0.0)); - var$2 = $this.$boatSides.data[4]; - var$2.$rotationPointX = 0.0; - var$2.$rotationPointY = 4.0; - var$2.$rotationPointZ = 9.0; - $this.$boatSides.data[0].$rotateAngleX = 1.5707963705062866; - $this.$boatSides.data[1].$rotateAngleY = 4.71238899230957; - $this.$boatSides.data[2].$rotateAngleY = 1.5707963705062866; - $this.$boatSides.data[3].$rotateAngleY = 3.1415927410125732; -} -function nms_ModelBoat_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = 0; - while ($var8 < 5) { - nms_ModelRenderer_render($this.$boatSides.data[$var8], $par7); - $var8 = $var8 + 1 | 0; - } -} -function nlea_EaglerAdapterImpl2$FramebufferGL() { - jl_Object.call(this); - this.$obj4 = null; -} -function ju_Arrays$NaturalOrder() { - jl_Object.call(this); -} -function ju_Arrays$NaturalOrder__init_0() { - var var_0 = new ju_Arrays$NaturalOrder(); - ju_Arrays$NaturalOrder__init_(var_0); - return var_0; -} -function ju_Arrays$NaturalOrder__init_($this) { - return; -} -function ju_Arrays$NaturalOrder_compare($this, $o1, $o2) { - if ($o1 !== null) - return $o1.$compareTo4($o2); - if ($o2 === null) - return 0; - return $o2.$compareTo4($o1); -} -function ju_Collections$_clinit_$lambda$_61_0() { - jl_Object.call(this); -} -function ju_Collections$_clinit_$lambda$_61_0__init_0() { - var var_0 = new ju_Collections$_clinit_$lambda$_61_0(); - ju_Collections$_clinit_$lambda$_61_0__init_(var_0); - return var_0; -} -function ju_Collections$_clinit_$lambda$_61_0__init_(var$0) { - return; -} -function ju_Collections$_clinit_$lambda$_61_0_compare(var$0, var$1, var$2) { - return var$1 !== null ? var$1.$compareTo4(var$2) : -var$2.$compareTo4(var$1); -} -function ju_Collections$_clinit_$lambda$_61_1() { - jl_Object.call(this); -} -function ju_Collections$_clinit_$lambda$_61_1__init_0() { - var var_0 = new ju_Collections$_clinit_$lambda$_61_1(); - ju_Collections$_clinit_$lambda$_61_1__init_(var_0); - return var_0; -} -function ju_Collections$_clinit_$lambda$_61_1__init_(var$0) { - return; -} -function ji_UnsupportedEncodingException() { - ji_IOException.call(this); -} -function ji_UnsupportedEncodingException__init_0() { - var var_0 = new ji_UnsupportedEncodingException(); - ji_UnsupportedEncodingException__init_(var_0); - return var_0; -} -function ji_UnsupportedEncodingException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function nms_ItemTool() { - var a = this; nms_Item.call(a); - a.$blocksEffectiveAgainst = null; - a.$efficiencyOnProperMaterial = 0.0; - a.$damageVsEntity = 0; - a.$toolMaterial = null; -} -function nms_ItemTool__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_ItemTool(); - nms_ItemTool__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_ItemTool__init_0($this, $par1, $par2, $par3EnumToolMaterial, $par4ArrayOfBlock) { - nms_Item__init_0($this, $par1); - $this.$efficiencyOnProperMaterial = 4.0; - $this.$toolMaterial = $par3EnumToolMaterial; - $this.$blocksEffectiveAgainst = $par4ArrayOfBlock; - $this.$maxStackSize = 1; - $this.$maxDamage = $par3EnumToolMaterial.$maxUses; - $this.$efficiencyOnProperMaterial = $par3EnumToolMaterial.$efficiencyOnProperMaterial0; - $this.$damageVsEntity = $par2 + $par3EnumToolMaterial.$damageVsEntity0 | 0; - $this.$tabToDisplayOn = nms_CreativeTabs_tabTools; -} -function nms_ItemTool_getStrVsBlock($this, $par1ItemStack, $par2Block) { - var $var3; - $var3 = 0; - while ($var3 < $this.$blocksEffectiveAgainst.data.length) { - if ($this.$blocksEffectiveAgainst.data[$var3] === $par2Block) - return $this.$efficiencyOnProperMaterial; - $var3 = $var3 + 1 | 0; - } - return 1.0; -} -function nms_ItemTool_hitEntity($this, $par1ItemStack, $par2EntityLiving, $par3EntityLiving) { - var var$4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$4 = $thread.pop();$par3EntityLiving = $thread.pop();$par2EntityLiving = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$4 = 2; - $ptr = 1; - case 1: - nms_ItemStack_damageItem($par1ItemStack, var$4, $par3EntityLiving); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityLiving, $par3EntityLiving, var$4, $ptr); -} -function nms_ItemTool_onBlockDestroyed($this, $par1ItemStack, $par2World, $par3, $par4, $par5, $par6, $par7EntityLiving) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par7EntityLiving = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$par3].$blockHardness === 0.0) - return 1; - $par3 = 1; - $ptr = 1; - case 1: - nms_ItemStack_damageItem($par1ItemStack, $par3, $par7EntityLiving); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3, $par4, $par5, $par6, $par7EntityLiving, $ptr); -} -function nms_ItemTool_getDamageVsEntity($this, $par1Entity) { - return $this.$damageVsEntity; -} -function nms_ItemTool_isFull3D($this) { - return 1; -} -function nms_ItemTool_getItemEnchantability($this) { - return $this.$toolMaterial.$enchantability; -} -function nms_ItemTool_getToolMaterialName($this) { - return $this.$toolMaterial.$name2; -} -function nms_ItemTool_getIsRepairable($this, $par1ItemStack, $par2ItemStack) { - return nms_EnumToolMaterial_getToolCraftingMaterial($this.$toolMaterial) == $par2ItemStack.$itemID0 ? 1 : 0; -} -function nms_ItemSpade() { - nms_ItemTool.call(this); -} -var nms_ItemSpade_blocksEffectiveAgainst = null; -function nms_ItemSpade_$callClinit() { - nms_ItemSpade_$callClinit = $rt_eraseClinit(nms_ItemSpade); - nms_ItemSpade__clinit_(); -} -function nms_ItemSpade__init_(var_0, var_1) { - var var_2 = new nms_ItemSpade(); - nms_ItemSpade__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemSpade__init_0($this, $par1, $par2EnumToolMaterial) { - nms_ItemSpade_$callClinit(); - nms_ItemTool__init_0($this, $par1, 1, $par2EnumToolMaterial, nms_ItemSpade_blocksEffectiveAgainst); -} -function nms_ItemSpade_canHarvestBlock($this, $par1Block) { - nms_Block_$callClinit(); - return $par1Block === nms_Block_snow ? 1 : $par1Block !== nms_Block_blockSnow ? 0 : 1; -} -function nms_ItemSpade__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(nms_Block, 10); - var$2 = var$1.data; - nms_Block_$callClinit(); - var$2[0] = nms_Block_grass; - var$2[1] = nms_Block_dirt; - var$2[2] = nms_Block_sand; - var$2[3] = nms_Block_gravel; - var$2[4] = nms_Block_snow; - var$2[5] = nms_Block_blockSnow; - var$2[6] = nms_Block_blockClay; - var$2[7] = nms_Block_tilledField; - var$2[8] = nms_Block_slowSand; - var$2[9] = nms_Block_mycelium; - nms_ItemSpade_blocksEffectiveAgainst = var$1; -} -function nms_EnumToolMaterial() { - var a = this; jl_Enum.call(a); - a.$harvestLevel = 0; - a.$maxUses = 0; - a.$efficiencyOnProperMaterial0 = 0.0; - a.$damageVsEntity0 = 0; - a.$enchantability = 0; -} -var nms_EnumToolMaterial_WOOD = null; -var nms_EnumToolMaterial_STONE = null; -var nms_EnumToolMaterial_IRON = null; -var nms_EnumToolMaterial_EMERALD = null; -var nms_EnumToolMaterial_GOLD = null; -var nms_EnumToolMaterial_$VALUES = null; -function nms_EnumToolMaterial_getMaxUses($this) { - return $this.$maxUses; -} -function nms_EnumToolMaterial_getEfficiencyOnProperMaterial($this) { - return $this.$efficiencyOnProperMaterial0; -} -function nms_EnumToolMaterial_getDamageVsEntity($this) { - return $this.$damageVsEntity0; -} -function nms_EnumToolMaterial_getHarvestLevel($this) { - return $this.$harvestLevel; -} -function nms_EnumToolMaterial_getEnchantability($this) { - return $this.$enchantability; -} -function nms_EnumToolMaterial_getToolCraftingMaterial($this) { - var var$1; - if ($this === nms_EnumToolMaterial_WOOD) { - nms_Block_$callClinit(); - var$1 = nms_Block_planks.$blockID; - } else if ($this === nms_EnumToolMaterial_STONE) { - nms_Block_$callClinit(); - var$1 = nms_Block_cobblestone.$blockID; - } else if ($this === nms_EnumToolMaterial_GOLD) { - nms_Item_$callClinit(); - var$1 = nms_Item_ingotGold.$itemID; - } else if ($this === nms_EnumToolMaterial_IRON) { - nms_Item_$callClinit(); - var$1 = nms_Item_ingotIron.$itemID; - } else if ($this !== nms_EnumToolMaterial_EMERALD) - var$1 = 0; - else { - nms_Item_$callClinit(); - var$1 = nms_Item_diamond.$itemID; - } - return var$1; -} -function nms_EnumToolMaterial__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumToolMaterial; - var$1.$name2 = $rt_s(1797); - var$1.$ordinal = 0; - var$1.$harvestLevel = 0; - var$1.$maxUses = 59; - var$1.$efficiencyOnProperMaterial0 = 2.0; - var$1.$damageVsEntity0 = 0; - var$1.$enchantability = 15; - nms_EnumToolMaterial_WOOD = var$1; - var$1 = new nms_EnumToolMaterial; - var$1.$name2 = $rt_s(1798); - var$1.$ordinal = 1; - var$1.$harvestLevel = 1; - var$1.$maxUses = 131; - var$1.$efficiencyOnProperMaterial0 = 4.0; - var$1.$damageVsEntity0 = 1; - var$1.$enchantability = 5; - nms_EnumToolMaterial_STONE = var$1; - var$1 = new nms_EnumToolMaterial; - var$1.$name2 = $rt_s(1799); - var$1.$ordinal = 2; - var$1.$harvestLevel = 2; - var$1.$maxUses = 250; - var$1.$efficiencyOnProperMaterial0 = 6.0; - var$1.$damageVsEntity0 = 2; - var$1.$enchantability = 14; - nms_EnumToolMaterial_IRON = var$1; - var$1 = new nms_EnumToolMaterial; - var$1.$name2 = $rt_s(1800); - var$1.$ordinal = 3; - var$1.$harvestLevel = 3; - var$1.$maxUses = 1561; - var$1.$efficiencyOnProperMaterial0 = 8.0; - var$1.$damageVsEntity0 = 3; - var$1.$enchantability = 10; - nms_EnumToolMaterial_EMERALD = var$1; - var$1 = new nms_EnumToolMaterial; - var$1.$name2 = $rt_s(1540); - var$1.$ordinal = 4; - var$1.$harvestLevel = 0; - var$1.$maxUses = 32; - var$1.$efficiencyOnProperMaterial0 = 12.0; - var$1.$damageVsEntity0 = 0; - var$1.$enchantability = 22; - nms_EnumToolMaterial_GOLD = var$1; - var$2 = $rt_createArray(nms_EnumToolMaterial, 5); - var$3 = var$2.data; - var$3[0] = nms_EnumToolMaterial_WOOD; - var$3[1] = nms_EnumToolMaterial_STONE; - var$3[2] = nms_EnumToolMaterial_IRON; - var$3[3] = nms_EnumToolMaterial_EMERALD; - var$3[4] = nms_EnumToolMaterial_GOLD; - nms_EnumToolMaterial_$VALUES = var$2; -} -function nms_ItemPickaxe() { - nms_ItemTool.call(this); -} -var nms_ItemPickaxe_blocksEffectiveAgainst = null; -function nms_ItemPickaxe_$callClinit() { - nms_ItemPickaxe_$callClinit = $rt_eraseClinit(nms_ItemPickaxe); - nms_ItemPickaxe__clinit_(); -} -function nms_ItemPickaxe__init_(var_0, var_1) { - var var_2 = new nms_ItemPickaxe(); - nms_ItemPickaxe__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemPickaxe__init_0($this, $par1, $par2EnumToolMaterial) { - nms_ItemPickaxe_$callClinit(); - nms_ItemTool__init_0($this, $par1, 2, $par2EnumToolMaterial, nms_ItemPickaxe_blocksEffectiveAgainst); -} -function nms_ItemPickaxe_canHarvestBlock($this, $par1Block) { - var var$2, var$3; - nms_Block_$callClinit(); - if ($par1Block === nms_Block_obsidian) - var$2 = $this.$toolMaterial.$harvestLevel != 3 ? 0 : 1; - else if ($par1Block !== nms_Block_blockDiamond && $par1Block !== nms_Block_oreDiamond) { - if ($par1Block !== nms_Block_oreEmerald && $par1Block !== nms_Block_blockEmerald) { - if ($par1Block !== nms_Block_blockGold && $par1Block !== nms_Block_oreGold) { - if ($par1Block !== nms_Block_blockIron && $par1Block !== nms_Block_oreIron) { - if ($par1Block !== nms_Block_blockLapis && $par1Block !== nms_Block_oreLapis) { - if ($par1Block !== nms_Block_oreRedstone && $par1Block !== nms_Block_oreRedstoneGlowing) { - var$3 = $par1Block.$blockMaterial; - nms_Material_$callClinit(); - var$2 = var$3 === nms_Material_rock ? 1 : $par1Block.$blockMaterial === nms_Material_iron ? 1 : $par1Block.$blockMaterial !== nms_Material_anvil ? 0 : 1; - } else - var$2 = $this.$toolMaterial.$harvestLevel < 2 ? 0 : 1; - } else - var$2 = $this.$toolMaterial.$harvestLevel < 1 ? 0 : 1; - } else - var$2 = $this.$toolMaterial.$harvestLevel < 1 ? 0 : 1; - } else - var$2 = $this.$toolMaterial.$harvestLevel < 2 ? 0 : 1; - } else - var$2 = $this.$toolMaterial.$harvestLevel < 2 ? 0 : 1; - } else - var$2 = $this.$toolMaterial.$harvestLevel < 2 ? 0 : 1; - return var$2; -} -function nms_ItemPickaxe_getStrVsBlock($this, $par1ItemStack, $par2Block) { - var var$3, var$4; - a: { - b: { - if ($par2Block !== null) { - var$3 = $par2Block.$blockMaterial; - nms_Material_$callClinit(); - if (var$3 === nms_Material_iron) - break b; - if ($par2Block.$blockMaterial === nms_Material_anvil) - break b; - if ($par2Block.$blockMaterial === nms_Material_rock) - break b; - } - var$4 = nms_ItemTool_getStrVsBlock($this, $par1ItemStack, $par2Block); - break a; - } - var$4 = $this.$efficiencyOnProperMaterial; - } - return var$4; -} -function nms_ItemPickaxe__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(nms_Block, 23); - var$2 = var$1.data; - nms_Block_$callClinit(); - var$2[0] = nms_Block_cobblestone; - var$2[1] = nms_Block_stoneDoubleSlab; - var$2[2] = nms_Block_stoneSingleSlab; - var$2[3] = nms_Block_stone; - var$2[4] = nms_Block_sandStone; - var$2[5] = nms_Block_cobblestoneMossy; - var$2[6] = nms_Block_oreIron; - var$2[7] = nms_Block_blockIron; - var$2[8] = nms_Block_oreCoal; - var$2[9] = nms_Block_blockGold; - var$2[10] = nms_Block_oreGold; - var$2[11] = nms_Block_oreDiamond; - var$2[12] = nms_Block_blockDiamond; - var$2[13] = nms_Block_ice; - var$2[14] = nms_Block_netherrack; - var$2[15] = nms_Block_oreLapis; - var$2[16] = nms_Block_blockLapis; - var$2[17] = nms_Block_oreRedstone; - var$2[18] = nms_Block_oreRedstoneGlowing; - var$2[19] = nms_Block_rail; - var$2[20] = nms_Block_railDetector; - var$2[21] = nms_Block_railPowered; - var$2[22] = nms_Block_railActivator; - nms_ItemPickaxe_blocksEffectiveAgainst = var$1; -} -function nms_ItemAxe() { - nms_ItemTool.call(this); -} -var nms_ItemAxe_blocksEffectiveAgainst = null; -function nms_ItemAxe_$callClinit() { - nms_ItemAxe_$callClinit = $rt_eraseClinit(nms_ItemAxe); - nms_ItemAxe__clinit_(); -} -function nms_ItemAxe__init_(var_0, var_1) { - var var_2 = new nms_ItemAxe(); - nms_ItemAxe__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemAxe__init_0($this, $par1, $par2EnumToolMaterial) { - nms_ItemAxe_$callClinit(); - nms_ItemTool__init_0($this, $par1, 3, $par2EnumToolMaterial, nms_ItemAxe_blocksEffectiveAgainst); -} -function nms_ItemAxe_getStrVsBlock($this, $par1ItemStack, $par2Block) { - var var$3, var$4; - a: { - b: { - if ($par2Block !== null) { - var$3 = $par2Block.$blockMaterial; - nms_Material_$callClinit(); - if (var$3 === nms_Material_wood) - break b; - if ($par2Block.$blockMaterial === nms_Material_plants) - break b; - if ($par2Block.$blockMaterial === nms_Material_vine) - break b; - } - var$4 = nms_ItemTool_getStrVsBlock($this, $par1ItemStack, $par2Block); - break a; - } - var$4 = $this.$efficiencyOnProperMaterial; - } - return var$4; -} -function nms_ItemAxe__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(nms_Block, 8); - var$2 = var$1.data; - nms_Block_$callClinit(); - var$2[0] = nms_Block_planks; - var$2[1] = nms_Block_bookShelf; - var$2[2] = nms_Block_wood; - var$2[3] = nms_Block_chest; - var$2[4] = nms_Block_stoneDoubleSlab; - var$2[5] = nms_Block_stoneSingleSlab; - var$2[6] = nms_Block_pumpkin; - var$2[7] = nms_Block_pumpkinLantern; - nms_ItemAxe_blocksEffectiveAgainst = var$1; -} -function nms_ItemFlintAndSteel() { - nms_Item.call(this); -} -function nms_ItemFlintAndSteel__init_(var_0) { - var var_1 = new nms_ItemFlintAndSteel(); - nms_ItemFlintAndSteel__init_0(var_1, var_0); - return var_1; -} -function nms_ItemFlintAndSteel__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; - $this.$maxDamage = 64; - $this.$tabToDisplayOn = nms_CreativeTabs_tabTools; -} -function nms_ItemFlintAndSteel_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var var$11, var$12, var$13, $var11, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();$var11 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par7) - $par5 = $par5 + (-1) | 0; - if ($par7 == 1) - $par5 = $par5 + 1 | 0; - if ($par7 == 2) - $par6 = $par6 + (-1) | 0; - if ($par7 == 3) - $par6 = $par6 + 1 | 0; - if ($par7 == 4) - $par4 = $par4 + (-1) | 0; - if ($par7 == 5) - $par4 = $par4 + 1 | 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par7 = 1; - else if ($par1ItemStack === null) - $par7 = 0; - else { - nms_Item_$callClinit(); - $par7 = 1; - } - if (!$par7) - return 0; - if (nms_World_getBlockId($par3World, $par4, $par5, $par6)) { - $par4 = 1; - $ptr = 1; - continue main; - } - var$11 = $par4 + 0.5; - var$12 = $par5 + 0.5; - var$13 = $par6 + 0.5; - nms_Item_$callClinit(); - nms_World_playSoundEffect($par3World, var$11, var$12, var$13, $rt_s(1801), 1.0, Math.random() * 0.4000000059604645 + 0.800000011920929); - nms_Block_$callClinit(); - $par7 = nms_Block_fire.$blockID; - $var11 = 0; - var$15 = 3; - $ptr = 2; - continue main; - case 1: - nms_ItemStack_damageItem($par1ItemStack, $par4, $par2EntityPlayer); - if ($rt_suspending()) { - break main; - } - return 1; - case 2: - nms_World_setBlock($par3World, $par4, $par5, $par6, $par7, $var11, var$15); - if ($rt_suspending()) { - break main; - } - $par4 = 1; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, var$11, var$12, var$13, $var11, var$15, $ptr); -} -function nms_ItemFood() { - var a = this; nms_Item.call(a); - a.$itemUseDuration = 0; - a.$healAmount = 0; - a.$saturationModifier = 0.0; - a.$isWolfsFavoriteMeat = 0; - a.$alwaysEdible = 0; - a.$potionId = 0; - a.$potionDuration = 0; - a.$potionAmplifier = 0; - a.$potionEffectProbability = 0.0; -} -function nms_ItemFood__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_ItemFood(); - nms_ItemFood__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_ItemFood__init_0($this, $par1, $par2, $par3, $par4) { - nms_Item__init_0($this, $par1); - $this.$itemUseDuration = 32; - $this.$healAmount = $par2; - $this.$isWolfsFavoriteMeat = $par4; - $this.$saturationModifier = $par3; - $this.$tabToDisplayOn = nms_CreativeTabs_tabFood; -} -function nms_ItemFood_onEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - nms_FoodStats_addStats($par3EntityPlayer.$foodStats, $this.$healAmount, $this.$saturationModifier); - nms_World_playSoundAtEntity($par2World, $par3EntityPlayer, $rt_s(1802), 0.5, Math.random() * 0.10000000149011612 + 0.8999999761581421); - $this.$onFoodEaten($par1ItemStack, $par2World, $par3EntityPlayer); - return $par1ItemStack; -} -function nms_ItemFood_onFoodEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var var$4, var$5, var$6; - if (!$par2World.$isRemote && $this.$potionId > 0 && Math.random() < $this.$potionEffectProbability) { - $par1ItemStack = new nms_PotionEffect; - var$4 = $this.$potionId; - var$5 = $this.$potionDuration * 20 | 0; - var$6 = $this.$potionAmplifier; - $par1ItemStack.$potionID = var$4; - $par1ItemStack.$duration = var$5; - $par1ItemStack.$amplifier = var$6; - $par1ItemStack.$isAmbient = 0; - nms_EntityLiving_addPotionEffect($par3EntityPlayer, $par1ItemStack); - } -} -function nms_ItemFood_getMaxItemUseDuration($this, $par1ItemStack) { - return 32; -} -function nms_ItemFood_getItemUseAction($this, $par1ItemStack) { - return nms_EnumAction_eat; -} -function nms_ItemFood_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - if (nms_EntityPlayer_canEat($par3EntityPlayer, $this.$alwaysEdible) && $par1ItemStack !== $par3EntityPlayer.$itemInUse) { - $par3EntityPlayer.$itemInUse = $par1ItemStack; - $par3EntityPlayer.$itemInUseCount = 32; - if (!$par3EntityPlayer.$worldObj.$isRemote) - nms_Entity_setFlag($par3EntityPlayer, 4, 1); - } - return $par1ItemStack; -} -function nms_ItemFood_getHealAmount($this) { - return $this.$healAmount; -} -function nms_ItemFood_getSaturationModifier($this) { - return $this.$saturationModifier; -} -function nms_ItemFood_isWolfsFavoriteMeat($this) { - return $this.$isWolfsFavoriteMeat; -} -function nms_ItemFood_setPotionEffect($this, $par1, $par2, $par3, $par4) { - $this.$potionId = $par1; - $this.$potionDuration = $par2; - $this.$potionAmplifier = $par3; - $this.$potionEffectProbability = $par4; - return $this; -} -function nms_ItemFood_setAlwaysEdible($this) { - $this.$alwaysEdible = 1; - return $this; -} -function nms_ItemBow() { - nms_Item.call(this); - this.$iconArray = null; -} -var nms_ItemBow_bowPullIconNameArray = null; -function nms_ItemBow__init_(var_0) { - var var_1 = new nms_ItemBow(); - nms_ItemBow__init_0(var_1, var_0); - return var_1; -} -function nms_ItemBow__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; - $this.$maxDamage = 384; - $this.$tabToDisplayOn = nms_CreativeTabs_tabCombat; -} -function nms_ItemBow_onPlayerStoppedUsing($this, $par1ItemStack, $par2World, $par3EntityPlayer, $par4) { - var $var5, var$6, $var7, var$8, $var8, $var9, $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3EntityPlayer = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) { - nms_Enchantment_$callClinit(); - if (nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_infinity.$effectId, $par1ItemStack) <= 0) { - $var5 = 0; - break a; - } - } - $var5 = 1; - } - if (!$var5) { - var$6 = $par3EntityPlayer.$inventory; - nms_Item_$callClinit(); - if (!(nms_InventoryPlayer_getInventorySlotContainItem(var$6, nms_Item_arrow.$itemID) < 0 ? 0 : 1)) - return; - } - $var7 = (72000 - $par4 | 0) / 20.0; - var$8 = ($var7 * $var7 + $var7 * 2.0) / 3.0; - if (var$8 < 0.1) - return; - if (var$8 > 1.0) - var$8 = 1.0; - $var8 = nms_EntityArrow__init_3($par2World, $par3EntityPlayer, var$8 * 2.0); - if (var$8 === 1.0) - nms_EntityArrow_setIsCritical($var8, 1); - nms_Enchantment_$callClinit(); - $var9 = nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_power.$effectId, $par1ItemStack); - if ($var9 > 0) - $var8.$damage = $var8.$damage + $var9 * 0.5 + 0.5; - $var10 = nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_punch.$effectId, $par1ItemStack); - if ($var10 > 0) - $var8.$knockbackStrength = $var10; - if (nms_EnchantmentHelper_getEnchantmentLevel(nms_Enchantment_flame.$effectId, $par1ItemStack) > 0) { - $par4 = nms_EnchantmentProtection_func_92093_a($var8, 2000); - if ($var8.$fire < $par4) - $var8.$fire = $par4; - } - $par4 = 1; - $ptr = 1; - case 1: - nms_ItemStack_damageItem($par1ItemStack, $par4, $par3EntityPlayer); - if ($rt_suspending()) { - break main; - } - nms_Item_$callClinit(); - nms_World_playSoundAtEntity($par2World, $par3EntityPlayer, $rt_s(873), 1.0, 1.0 / (Math.random() * 0.4000000059604645 + 1.2000000476837158) + var$8 * 0.5); - if ($var5) - $var8.$canBePickedUp = 2; - else - nms_InventoryPlayer_consumeInventoryItem($par3EntityPlayer.$inventory, nms_Item_arrow.$itemID); - if (!$par2World.$isRemote) { - $par4 = nms_World_spawnEntityInWorld($par2World, $var8); - $par1ItemStack = $par2World.$entityList; - ju_HashMap_putImpl($par1ItemStack.$backingMap, $var8, $par1ItemStack); - if (!$par4) { - $par1ItemStack = $par2World.$entitySpawnQueue; - ju_HashMap_putImpl($par1ItemStack.$backingMap, $var8, $par1ItemStack); - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3EntityPlayer, $par4, $var5, var$6, $var7, var$8, $var8, $var9, $var10, $ptr); -} -function nms_ItemBow_onEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - return $par1ItemStack; -} -function nms_ItemBow_getMaxItemUseDuration($this, $par1ItemStack) { - return 72000; -} -function nms_ItemBow_getItemUseAction($this, $par1ItemStack) { - return nms_EnumAction_bow; -} -function nms_ItemBow_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - a: { - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) { - $par2World = $par3EntityPlayer.$inventory; - nms_Item_$callClinit(); - if (!(nms_InventoryPlayer_getInventorySlotContainItem($par2World, nms_Item_arrow.$itemID) < 0 ? 0 : 1)) - break a; - } - if ($par1ItemStack !== $par3EntityPlayer.$itemInUse) { - $par3EntityPlayer.$itemInUse = $par1ItemStack; - $par3EntityPlayer.$itemInUseCount = 72000; - if (!$par3EntityPlayer.$worldObj.$isRemote) - nms_Entity_setFlag($par3EntityPlayer, 4, 1); - } - } - return $par1ItemStack; -} -function nms_ItemBow_getItemEnchantability($this) { - return 1; -} -function nms_ItemBow_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$itemIcon = nms_TextureMap_registerIcon($par1IconRegister, $this.$unlocalizedName); - $this.$iconArray = $rt_createArray(nms_Icon, nms_ItemBow_bowPullIconNameArray.data.length); - $var2 = 0; - while ($var2 < $this.$iconArray.data.length) { - $this.$iconArray.data[$var2] = nms_TextureMap_registerIcon($par1IconRegister, nms_ItemBow_bowPullIconNameArray.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_ItemBow_getItemIconForUseDuration($this, $par1) { - return $this.$iconArray.data[$par1]; -} -function nms_ItemBow__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(1803); - var$2[1] = $rt_s(1804); - var$2[2] = $rt_s(1805); - nms_ItemBow_bowPullIconNameArray = var$1; -} -function nms_CreativeTabs() { - var a = this; jl_Object.call(a); - a.$tabIndex = 0; - a.$tabLabel = null; - a.$backgroundImageName = null; - a.$hasScrollbar = 0; - a.$drawTitle = 0; -} -var nms_CreativeTabs_creativeTabArray = null; -var nms_CreativeTabs_tabBlock = null; -var nms_CreativeTabs_tabDecorations = null; -var nms_CreativeTabs_tabRedstone = null; -var nms_CreativeTabs_tabTransport = null; -var nms_CreativeTabs_tabMisc = null; -var nms_CreativeTabs_tabAllSearch = null; -var nms_CreativeTabs_tabFood = null; -var nms_CreativeTabs_tabTools = null; -var nms_CreativeTabs_tabCombat = null; -var nms_CreativeTabs_tabBrewing = null; -var nms_CreativeTabs_tabMaterials = null; -var nms_CreativeTabs_tabInventory = null; -function nms_CreativeTabs_getTabIndex($this) { - return $this.$tabIndex; -} -function nms_CreativeTabs_getTabLabel($this) { - return $this.$tabLabel; -} -function nms_CreativeTabs_getTranslatedTabLabel($this) { - var var$1, var$2, var$3; - var$1 = nms_StringTranslate_instance; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(1806)); - var$3 = $this.$tabLabel; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$3); - return nms_StringTranslate_translateKey(var$1, jl_String__init_0(var$2.$buffer, 0, var$2.$length)); -} -function nms_CreativeTabs_getTabIconItem($this) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$this.$getTabIconItemIndex()]; -} -function nms_CreativeTabs_getBackgroundImageName($this) { - return $this.$backgroundImageName; -} -function nms_CreativeTabs_setBackgroundImageName($this, $par1Str) { - $this.$backgroundImageName = $par1Str; - return $this; -} -function nms_CreativeTabs_drawInForegroundOfTab($this) { - return $this.$drawTitle; -} -function nms_CreativeTabs_setNoTitle($this) { - $this.$drawTitle = 0; - return $this; -} -function nms_CreativeTabs_shouldHidePlayerInventory($this) { - return $this.$hasScrollbar; -} -function nms_CreativeTabs_setNoScrollbar($this) { - $this.$hasScrollbar = 0; - return $this; -} -function nms_CreativeTabs_getTabColumn($this) { - return $this.$tabIndex % 6 | 0; -} -function nms_CreativeTabs_isTabInFirstRow($this) { - return $this.$tabIndex >= 6 ? 0 : 1; -} -function nms_CreativeTabs_displayAllReleventItems($this, $par1List) { - var $var2, $var3, $var4, $var5; - nms_Item_$callClinit(); - $var2 = nms_Item_itemsList.data; - $var3 = $var2.length; - $var4 = 0; - while ($var4 < $var3) { - $var5 = $var2[$var4]; - if ($var5 !== null && $var5.$getCreativeTab() === $this) - $var5.$getSubItems($var5.$itemID, $this, $par1List); - $var4 = $var4 + 1 | 0; - } -} -function nms_CreativeTabs_func_92116_a($this, $par1List, $par2ArrayOfEnumEnchantmentType) { - var $var3, $var4, $var5, $var6, $var7, $var8, var$9, var$10, var$11; - nms_Enchantment_$callClinit(); - $var3 = nms_Enchantment_enchantmentsList.data; - $var4 = $var3.length; - $var5 = 0; - while ($var5 < $var4) { - $var6 = $var3[$var5]; - if ($var6 !== null && $var6.$type1 !== null) { - $var7 = 0; - $var8 = 0; - while (true) { - var$9 = $par2ArrayOfEnumEnchantmentType.data; - if ($var8 >= var$9.length) - break; - if ($var7) - break; - if ($var6.$type1 === var$9[$var8]) - $var7 = 1; - $var8 = $var8 + 1 | 0; - } - if ($var7) { - nms_Item_$callClinit(); - var$10 = nms_Item_enchantedBook; - var$11 = new nms_EnchantmentData; - $var7 = $var6.$getMaxLevel(); - var$11.$enchantmentobj = $var6; - var$11.$enchantmentLevel = $var7; - ju_ArrayList_add($par1List, nms_ItemEnchantedBook_func_92111_a(var$10, var$11)); - } - } - $var5 = $var5 + 1 | 0; - } -} -function nms_CreativeTabs__clinit_() { - var var$1, var$2; - nms_CreativeTabs_creativeTabArray = $rt_createArray(nms_CreativeTabs, 12); - var$1 = new nms_CreativeTabBlock; - var$1.$backgroundImageName = $rt_s(1807); - var$1.$hasScrollbar = 1; - var$1.$drawTitle = 1; - var$1.$tabIndex = 0; - var$1.$tabLabel = $rt_s(1808); - nms_CreativeTabs_creativeTabArray.data[0] = var$1; - nms_CreativeTabs_tabBlock = var$1; - var$2 = new nms_CreativeTabDeco; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 1; - var$2.$tabLabel = $rt_s(1809); - nms_CreativeTabs_creativeTabArray.data[1] = var$2; - nms_CreativeTabs_tabDecorations = var$2; - var$2 = new nms_CreativeTabRedstone; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 2; - var$2.$tabLabel = $rt_s(1423); - nms_CreativeTabs_creativeTabArray.data[2] = var$2; - nms_CreativeTabs_tabRedstone = var$2; - var$2 = new nms_CreativeTabTransport; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 3; - var$2.$tabLabel = $rt_s(1810); - nms_CreativeTabs_creativeTabArray.data[3] = var$2; - nms_CreativeTabs_tabTransport = var$2; - var$2 = new nms_CreativeTabMisc; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 4; - var$2.$tabLabel = $rt_s(1811); - nms_CreativeTabs_creativeTabArray.data[4] = var$2; - nms_CreativeTabs_tabMisc = var$2; - var$2 = new nms_CreativeTabSearch; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 5; - var$2.$tabLabel = $rt_s(1812); - nms_CreativeTabs_creativeTabArray.data[5] = var$2; - var$2.$backgroundImageName = $rt_s(1813); - nms_CreativeTabs_tabAllSearch = var$2; - var$2 = new nms_CreativeTabFood; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 6; - var$2.$tabLabel = $rt_s(918); - nms_CreativeTabs_creativeTabArray.data[6] = var$2; - nms_CreativeTabs_tabFood = var$2; - var$2 = new nms_CreativeTabTools; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 7; - var$2.$tabLabel = $rt_s(1814); - nms_CreativeTabs_creativeTabArray.data[7] = var$2; - nms_CreativeTabs_tabTools = var$2; - var$2 = new nms_CreativeTabCombat; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 8; - var$2.$tabLabel = $rt_s(1815); - nms_CreativeTabs_creativeTabArray.data[8] = var$2; - nms_CreativeTabs_tabCombat = var$2; - var$2 = new nms_CreativeTabBrewing; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 9; - var$2.$tabLabel = $rt_s(1816); - nms_CreativeTabs_creativeTabArray.data[9] = var$2; - nms_CreativeTabs_tabBrewing = var$2; - var$2 = new nms_CreativeTabMaterial; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 10; - var$2.$tabLabel = $rt_s(1817); - nms_CreativeTabs_creativeTabArray.data[10] = var$2; - nms_CreativeTabs_tabMaterials = var$2; - var$2 = new nms_CreativeTabInventory; - var$2.$backgroundImageName = $rt_s(1807); - var$2.$hasScrollbar = 1; - var$2.$drawTitle = 1; - var$2.$tabIndex = 11; - var$2.$tabLabel = $rt_s(1818); - nms_CreativeTabs_creativeTabArray.data[11] = var$2; - var$2.$backgroundImageName = $rt_s(1819); - var$2.$hasScrollbar = 0; - var$2.$drawTitle = 0; - nms_CreativeTabs_tabInventory = var$2; -} -function nms_ItemCoal() { - nms_Item.call(this); -} -function nms_ItemCoal__init_(var_0) { - var var_1 = new nms_ItemCoal(); - nms_ItemCoal__init_0(var_1, var_0); - return var_1; -} -function nms_ItemCoal__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$hasSubtypes = 1; - $this.$maxDamage = 0; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMaterials; -} -function nms_ItemCoal_getUnlocalizedName($this, $par1ItemStack) { - return $par1ItemStack.$itemDamage != 1 ? $rt_s(1820) : $rt_s(1821); -} -function nms_ItemCoal_getSubItems($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_ItemSword() { - var a = this; nms_Item.call(a); - a.$weaponDamage = 0; - a.$toolMaterial0 = null; -} -function nms_ItemSword__init_(var_0, var_1) { - var var_2 = new nms_ItemSword(); - nms_ItemSword__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemSword__init_0($this, $par1, $par2EnumToolMaterial) { - nms_Item__init_0($this, $par1); - $this.$toolMaterial0 = $par2EnumToolMaterial; - $this.$maxStackSize = 1; - $this.$maxDamage = $par2EnumToolMaterial.$maxUses; - $this.$tabToDisplayOn = nms_CreativeTabs_tabCombat; - $this.$weaponDamage = 4 + $par2EnumToolMaterial.$damageVsEntity0 | 0; -} -function nms_ItemSword_func_82803_g($this) { - return $this.$toolMaterial0.$damageVsEntity0; -} -function nms_ItemSword_getStrVsBlock($this, $par1ItemStack, $par2Block) { - var var$3, $var3; - var$3 = $par2Block.$blockID; - nms_Block_$callClinit(); - if (var$3 == nms_Block_web.$blockID) - return 15.0; - $var3 = $par2Block.$blockMaterial; - nms_Material_$callClinit(); - return $var3 !== nms_Material_plants && $var3 !== nms_Material_vine && $var3 !== nms_Material_coral && $var3 !== nms_Material_leaves && $var3 !== nms_Material_pumpkin ? 1.0 : 1.5; -} -function nms_ItemSword_hitEntity($this, $par1ItemStack, $par2EntityLiving, $par3EntityLiving) { - var var$4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$4 = $thread.pop();$par3EntityLiving = $thread.pop();$par2EntityLiving = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$4 = 1; - $ptr = 1; - case 1: - nms_ItemStack_damageItem($par1ItemStack, var$4, $par3EntityLiving); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityLiving, $par3EntityLiving, var$4, $ptr); -} -function nms_ItemSword_onBlockDestroyed($this, $par1ItemStack, $par2World, $par3, $par4, $par5, $par6, $par7EntityLiving) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par7EntityLiving = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$par3].$blockHardness === 0.0) - return 1; - $par3 = 2; - $ptr = 1; - case 1: - nms_ItemStack_damageItem($par1ItemStack, $par3, $par7EntityLiving); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3, $par4, $par5, $par6, $par7EntityLiving, $ptr); -} -function nms_ItemSword_getDamageVsEntity($this, $par1Entity) { - return $this.$weaponDamage; -} -function nms_ItemSword_isFull3D($this) { - return 1; -} -function nms_ItemSword_getItemUseAction($this, $par1ItemStack) { - return nms_EnumAction_block; -} -function nms_ItemSword_getMaxItemUseDuration($this, $par1ItemStack) { - return 72000; -} -function nms_ItemSword_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - if ($par1ItemStack !== $par3EntityPlayer.$itemInUse) { - $par3EntityPlayer.$itemInUse = $par1ItemStack; - $par3EntityPlayer.$itemInUseCount = 72000; - if (!$par3EntityPlayer.$worldObj.$isRemote) - nms_Entity_setFlag($par3EntityPlayer, 4, 1); - } - return $par1ItemStack; -} -function nms_ItemSword_canHarvestBlock($this, $par1Block) { - var var$2; - var$2 = $par1Block.$blockID; - nms_Block_$callClinit(); - return var$2 != nms_Block_web.$blockID ? 0 : 1; -} -function nms_ItemSword_getItemEnchantability($this) { - return $this.$toolMaterial0.$enchantability; -} -function nms_ItemSword_getToolMaterialName($this) { - return $this.$toolMaterial0.$name2; -} -function nms_ItemSword_getIsRepairable($this, $par1ItemStack, $par2ItemStack) { - return nms_EnumToolMaterial_getToolCraftingMaterial($this.$toolMaterial0) == $par2ItemStack.$itemID0 ? 1 : 0; -} -function nms_ItemSoup() { - nms_ItemFood.call(this); -} -function nms_ItemSoup__init_(var_0, var_1) { - var var_2 = new nms_ItemSoup(); - nms_ItemSoup__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemSoup__init_0($this, $par1, $par2) { - nms_Item__init_0($this, $par1); - $this.$itemUseDuration = 32; - $this.$healAmount = $par2; - $this.$isWolfsFavoriteMeat = 0; - $this.$saturationModifier = 0.6000000238418579; - $this.$tabToDisplayOn = nms_CreativeTabs_tabFood; - $this.$maxStackSize = 1; -} -function nms_ItemSoup_onEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var var$4; - nms_ItemFood_onEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer); - $par1ItemStack = new nms_ItemStack; - nms_Item_$callClinit(); - var$4 = nms_Item_bowlEmpty.$itemID; - $par1ItemStack.$stackSize = 0; - $par1ItemStack.$itemFrame = null; - $par1ItemStack.$itemID0 = var$4; - $par1ItemStack.$stackSize = 1; - $par1ItemStack.$itemDamage = 0; - if ($par1ItemStack.$itemDamage < 0) - $par1ItemStack.$itemDamage = 0; - return $par1ItemStack; -} -function nms_ItemReed() { - nms_Item.call(this); - this.$spawnID = 0; -} -function nms_ItemReed__init_0(var_0, var_1) { - var var_2 = new nms_ItemReed(); - nms_ItemReed__init_(var_2, var_0, var_1); - return var_2; -} -function nms_ItemReed__init_($this, $par1, $par2Block) { - nms_Item__init_0($this, $par1); - $this.$spawnID = $par2Block.$blockID; -} -function nms_ItemReed_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, $var13, $var12, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();$var12 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - nms_Block_$callClinit(); - if ($var11 == nms_Block_snow.$blockID && (nms_World_getBlockMetadata($par3World, $par4, $par5, $par6) & 7) < 1) - $par7 = 1; - else if ($var11 != nms_Block_vine.$blockID && $var11 != nms_Block_tallGrass.$blockID && $var11 != nms_Block_deadBush.$blockID) { - if (!$par7) - $par5 = $par5 + (-1) | 0; - if ($par7 == 1) - $par5 = $par5 + 1 | 0; - if ($par7 == 2) - $par6 = $par6 + (-1) | 0; - if ($par7 == 3) - $par6 = $par6 + 1 | 0; - if ($par7 == 4) - $par4 = $par4 + (-1) | 0; - if ($par7 == 5) - $par4 = $par4 + 1 | 0; - } - if ($par2EntityPlayer.$capabilities.$allowEdit) - $var13 = 1; - else if ($par1ItemStack === null) - $var13 = 0; - else { - nms_Item_$callClinit(); - $var13 = 1; - } - if (!$var13) - return 0; - if (!$par1ItemStack.$stackSize) - return 0; - if (!nms_World_canPlaceEntityOnSide($par3World, $this.$spawnID, $par4, $par5, $par6, 0, $par7, null, $par1ItemStack)) - return 1; - $var12 = nms_Block_blocksList.data[$this.$spawnID]; - $var13 = $var12.$onBlockPlaced($par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, 0); - $par7 = $this.$spawnID; - var$14 = 3; - $ptr = 1; - case 1: - $tmp = nms_World_setBlock($par3World, $par4, $par5, $par6, $par7, $var13, var$14); - if ($rt_suspending()) { - break main; - } - $par7 = $tmp; - if ($par7) { - if (nms_World_getBlockId($par3World, $par4, $par5, $par6) == $this.$spawnID) { - var$15 = nms_Block_blocksList.data[$this.$spawnID]; - $ptr = 2; - continue main; - } - nms_World_playSoundEffect($par3World, $par4 + 0.5, $par5 + 0.5, $par6 + 0.5, $var12.$stepSound.$getPlaceSound(), ($var12.$stepSound.$stepSoundVolume + 1.0) / 2.0, $var12.$stepSound.$stepSoundPitch * 0.800000011920929); - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - } - return 1; - case 2: - var$15.$onBlockPlacedBy($par3World, $par4, $par5, $par6, $par2EntityPlayer, $par1ItemStack); - if ($rt_suspending()) { - break main; - } - $par2EntityPlayer = nms_Block_blocksList.data[$this.$spawnID]; - $ptr = 3; - case 3: - $par2EntityPlayer.$onPostBlockPlaced($par3World, $par4, $par5, $par6, $var13); - if ($rt_suspending()) { - break main; - } - nms_World_playSoundEffect($par3World, $par4 + 0.5, $par5 + 0.5, $par6 + 0.5, $var12.$stepSound.$getPlaceSound(), ($var12.$stepSound.$stepSoundVolume + 1.0) / 2.0, $var12.$stepSound.$stepSoundPitch * 0.800000011920929); - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, $var13, $var12, var$14, var$15, $ptr); -} -function nms_PotionHelper() { - jl_Object.call(this); -} -var nms_PotionHelper_field_77924_a = null; -var nms_PotionHelper_sugarEffect = null; -var nms_PotionHelper_spiderEyeEffect = null; -var nms_PotionHelper_fermentedSpiderEyeEffect = null; -var nms_PotionHelper_speckledMelonEffect = null; -var nms_PotionHelper_blazePowderEffect = null; -var nms_PotionHelper_magmaCreamEffect = null; -var nms_PotionHelper_redstoneEffect = null; -var nms_PotionHelper_glowstoneEffect = null; -var nms_PotionHelper_gunpowderEffect = null; -var nms_PotionHelper_goldenCarrotEffect = null; -var nms_PotionHelper_potionRequirements = null; -var nms_PotionHelper_potionAmplifiers = null; -var nms_PotionHelper_field_77925_n = null; -var nms_PotionHelper_potionPrefixes = null; -function nms_PotionHelper_$callClinit() { - nms_PotionHelper_$callClinit = $rt_eraseClinit(nms_PotionHelper); - nms_PotionHelper__clinit_(); -} -function nms_PotionHelper__init_0() { - var var_0 = new nms_PotionHelper(); - nms_PotionHelper__init_(var_0); - return var_0; -} -function nms_PotionHelper__init_($this) { - nms_PotionHelper_$callClinit(); -} -function nms_PotionHelper_calcPotionLiquidColor($par0Collection) { - var $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var9, var$10, var$11, var$12; - nms_PotionHelper_$callClinit(); - if ($par0Collection !== null && !($par0Collection.$size2() ? 0 : 1)) { - $var2 = 0.0; - $var3 = 0.0; - $var4 = 0.0; - $var5 = 0.0; - $var6 = $par0Collection.$iterator(); - while ($var6.$hasNext()) { - $var7 = $var6.$next(); - $var8 = nms_Potion_potionTypes.data[$var7.$potionID].$liquidColor; - $var9 = 0; - var$10 = ($var8 >> 16 & 255) / 255.0; - var$11 = ($var8 >> 8 & 255) / 255.0; - var$12 = ($var8 >> 0 & 255) / 255.0; - while ($var9 <= $var7.$amplifier) { - $var2 = $var2 + var$10; - $var3 = $var3 + var$11; - $var4 = $var4 + var$12; - $var5 = $var5 + 1.0; - $var9 = $var9 + 1 | 0; - } - } - return ($var2 / $var5 * 255.0 | 0) << 16 | ($var3 / $var5 * 255.0 | 0) << 8 | $var4 / $var5 * 255.0 | 0; - } - return 3694022; -} -function nms_PotionHelper_func_77915_a($par0, $par1) { - var var$3, var$4, var$5, $var2; - nms_PotionHelper_$callClinit(); - if ($par1) - return nms_PotionHelper_calcPotionLiquidColor(nms_PotionHelper_getPotionEffects($par0, $par1)); - var$3 = nms_PotionHelper_field_77925_n; - var$4 = jl_Integer_valueOf($par0); - if (var$4 !== null) { - var$5 = jl_Integer_hashCode(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; - } - } - if (!(var$3 === null ? 0 : 1)) { - $var2 = nms_PotionHelper_calcPotionLiquidColor(nms_PotionHelper_getPotionEffects($par0, 0)); - ju_HashMap_putImpl(nms_PotionHelper_field_77925_n, jl_Integer_valueOf($par0), jl_Integer_valueOf($var2)); - return $var2; - } - var$3 = nms_PotionHelper_field_77925_n; - var$4 = jl_Integer_valueOf($par0); - if (var$4 !== null) { - $var2 = jl_Integer_hashCode(var$4); - var$3 = ju_HashMap_findNonNullKeyEntry(var$3, var$4, $var2 & (var$3.$elementData.data.length - 1 | 0), $var2); - } else { - var$3 = var$3.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - return (var$3 === null ? null : var$3.$value0).$value; -} -function nms_PotionHelper_func_77904_a($par0, $par1, $par2, $par3, $par4, $par5, $par6) { - var $var7, var$9; - nms_PotionHelper_$callClinit(); - a: { - $var7 = 0; - if ($par0) - $var7 = !(!($par6 & 1 << $par4) ? 0 : 1) ? 1 : 0; - else if ($par3 == (-1)) - $var7 = !(!($par6 & 1 << $par4) ? 0 : 1) ? 0 : 1; - else { - if (!$par3) { - $par0 = 0; - var$9 = $par6; - while (var$9 > 0) { - var$9 = var$9 & (var$9 - 1 | 0); - $par0 = $par0 + 1 | 0; - } - if ($par0 == $par4) { - $var7 = 1; - break a; - } - } - if ($par3 == 1) { - $par0 = 0; - var$9 = $par6; - while (var$9 > 0) { - var$9 = var$9 & (var$9 - 1 | 0); - $par0 = $par0 + 1 | 0; - } - if ($par0 > $par4) { - $var7 = 1; - break a; - } - } - if ($par3 == 2) { - $par0 = 0; - while ($par6 > 0) { - $par6 = $par6 & ($par6 - 1 | 0); - $par0 = $par0 + 1 | 0; - } - if ($par0 < $par4) - $var7 = 1; - } - } - } - if ($par1) - $var7 = $rt_imul($var7, $par5); - if ($par2) - $var7 = $var7 * (-1) | 0; - return $var7; -} -function nms_PotionHelper_parsePotionEffects($par0Str, $var15, $par2, $par3) { - var $var4, $var5, $var17, $var18, $var6, $var7, $var8, $var9, $var10, $var11, $var12, $var13, $var14, $var16; - nms_PotionHelper_$callClinit(); - if ($var15 < $par0Str.$characters.data.length && $par2 >= 0 && $var15 < $par2) { - $var4 = jl_String_indexOf($par0Str, 124, $var15); - if ($var4 >= 0 && $var4 < $par2) { - $var5 = nms_PotionHelper_parsePotionEffects($par0Str, $var15, $var4 - 1 | 0, $par3); - if ($var5 > 0) - return $var5; - $var17 = nms_PotionHelper_parsePotionEffects($par0Str, $var4 + 1 | 0, $par2, $par3); - if ($var17 <= 0) - $var17 = 0; - return $var17; - } - $var5 = jl_String_indexOf($par0Str, 38, $var15); - if ($var5 >= 0 && $var5 < $par2) { - $var17 = nms_PotionHelper_parsePotionEffects($par0Str, $var15, $var5 - 1 | 0, $par3); - if ($var17 <= 0) - return 0; - $var18 = nms_PotionHelper_parsePotionEffects($par0Str, $var5 + 1 | 0, $par2, $par3); - if ($var18 <= 0) - $var18 = 0; - else if ($var17 > $var18) - $var18 = $var17; - return $var18; - } - $var6 = 0; - $var7 = 0; - $var8 = 0; - $var9 = 0; - $var10 = 0; - $var11 = (-1); - $var12 = 0; - $var13 = 0; - $var14 = 0; - while ($var15 < $par2) { - a: { - $var16 = jl_String_charAt($par0Str, $var15); - if ($var16 >= 48 && $var16 <= 57) { - if ($var6) { - $var13 = $var16 - 48 | 0; - $var7 = 1; - break a; - } - $var12 = ($var12 * 10 | 0) + ($var16 - 48 | 0) | 0; - $var8 = 1; - break a; - } - if ($var16 == 42) { - $var6 = 1; - break a; - } - if ($var16 == 33) { - if ($var8) { - $var14 = $var14 + nms_PotionHelper_func_77904_a($var9, $var7, $var10, $var11, $var12, $var13, $par3) | 0; - $var10 = 0; - $var6 = 0; - $var7 = 0; - $var8 = 0; - $var13 = 0; - $var12 = 0; - $var11 = (-1); - } - $var9 = 1; - break a; - } - if ($var16 == 45) { - if ($var8) { - $var14 = $var14 + nms_PotionHelper_func_77904_a($var9, $var7, $var10, $var11, $var12, $var13, $par3) | 0; - $var9 = 0; - $var6 = 0; - $var7 = 0; - $var8 = 0; - $var13 = 0; - $var12 = 0; - $var11 = (-1); - } - $var10 = 1; - break a; - } - $var4 = $rt_compare($var16, 61); - if ($var4 && $var16 != 60 && $var16 != 62) { - if ($var16 != 43) - break a; - if (!$var8) - break a; - $var14 = $var14 + nms_PotionHelper_func_77904_a($var9, $var7, $var10, $var11, $var12, $var13, $par3) | 0; - $var9 = 0; - $var10 = 0; - $var6 = 0; - $var7 = 0; - $var8 = 0; - $var13 = 0; - $var12 = 0; - $var11 = (-1); - break a; - } - if ($var8) { - $var14 = $var14 + nms_PotionHelper_func_77904_a($var9, $var7, $var10, $var11, $var12, $var13, $par3) | 0; - $var9 = 0; - $var10 = 0; - $var6 = 0; - $var7 = 0; - $var8 = 0; - $var13 = 0; - $var12 = 0; - $var11 = (-1); - } - if (!$var4) { - $var11 = 0; - break a; - } - if ($var16 == 60) { - $var11 = 2; - break a; - } - if ($var16 != 62) - break a; - $var11 = 1; - } - $var15 = $var15 + 1 | 0; - } - if ($var8) - $var14 = $var14 + nms_PotionHelper_func_77904_a($var9, $var7, $var10, $var11, $var12, $var13, $par3) | 0; - return $var14; - } - return 0; -} -function nms_PotionHelper_getPotionEffects($par0, $par1) { - var $var2, var$4, $var4, $var5, var$7, $var6, $var7, $var11, var$11, $var8, $var9, var$14, $var10, var$16, var$17, var$18; - nms_PotionHelper_$callClinit(); - $var2 = null; - var$4 = nms_Potion_potionTypes.data; - $var4 = var$4.length; - $var5 = 0; - var$7 = $par0 & 16384; - while ($var5 < $var4) { - $var6 = var$4[$var5]; - if ($var6 !== null && !($var6.$usable && !$par1)) { - $var7 = nms_PotionHelper_potionRequirements; - $var11 = jl_Integer_valueOf($var6.$id3); - if ($var11 !== null) { - var$11 = jl_Integer_hashCode($var11); - $var7 = ju_HashMap_findNonNullKeyEntry($var7, $var11, var$11 & ($var7.$elementData.data.length - 1 | 0), var$11); - } else { - $var7 = $var7.$elementData.data[0]; - while ($var7 !== null && $var7.$key !== null) { - $var7 = $var7.$next1; - } - } - $var7 = $var7 === null ? null : $var7.$value0; - if ($var7 !== null) { - $var8 = nms_PotionHelper_parsePotionEffects($var7, 0, $var7.$characters.data.length, $par0); - if ($var8 > 0) { - $var9 = 0; - $var7 = nms_PotionHelper_potionAmplifiers; - $var11 = jl_Integer_valueOf($var6.$id3); - if ($var11 !== null) { - var$14 = jl_Integer_hashCode($var11); - $var7 = ju_HashMap_findNonNullKeyEntry($var7, $var11, var$14 & ($var7.$elementData.data.length - 1 | 0), var$14); - } else { - $var7 = $var7.$elementData.data[0]; - while ($var7 !== null && $var7.$key !== null) { - $var7 = $var7.$next1; - } - } - $var10 = $var7 === null ? null : $var7.$value0; - if ($var10 !== null) { - $var9 = nms_PotionHelper_parsePotionEffects($var10, 0, $var10.$characters.data.length, $par0); - if ($var9 < 0) - $var9 = 0; - } - if ($var6.$isInstant()) - var$16 = 1; - else { - var$17 = ((1200 * (($var8 * 3 | 0) + (($var8 - 1 | 0) * 2 | 0) | 0) | 0) >> $var9) * $var6.$effectiveness; - $var8 = $rt_compare(var$17, 0.0); - var$16 = Long_fromNumber(var$17 + ($var8 > 0 ? 1.0 : $var8 >= 0 ? var$17 : (-1.0)) * 0.5).lo; - if (var$7) { - var$18 = var$16 * 0.75 + 0.5; - $var8 = $rt_compare(var$18, 0.0); - var$16 = Long_fromNumber(var$18 + ($var8 > 0 ? 1.0 : $var8 >= 0 ? var$18 : (-1.0)) * 0.5).lo; - } - } - if ($var2 === null) { - $var2 = new ju_ArrayList; - $var2.$array1 = $rt_createArray(jl_Object, 10); - } - $var11 = new nms_PotionEffect; - $var11.$potionID = $var6.$id3; - $var11.$duration = var$16; - $var11.$amplifier = $var9; - $var11.$isAmbient = 0; - if (var$7) - $var11.$isSplashPotion = 1; - ju_ArrayList_add($var2, $var11); - } - } - } - $var5 = $var5 + 1 | 0; - } - return $var2; -} -function nms_PotionHelper_brewBitOperations($par0, $par1, $par2, $par3, $par4) { - nms_PotionHelper_$callClinit(); - if ($par4) { - if (!(!($par0 & 1 << $par1) ? 0 : 1)) - return 0; - } else if ($par2) - $par0 = $par0 & (1 << $par1 ^ (-1)); - else if (!$par3) - $par0 = $par0 | 1 << $par1; - else { - $par1 = 1 << $par1; - $par0 = !($par0 & $par1) ? $par0 | $par1 : $par0 & ($par1 ^ (-1)); - } - return $par0; -} -function nms_PotionHelper_applyIngredient($par0, $par1Str) { - var $var9, $var3, $var4, $var5, $var6, $var7, $var8, $var10; - nms_PotionHelper_$callClinit(); - $var9 = 0; - $var3 = $par1Str.$characters.data.length; - $var4 = 0; - $var5 = 0; - $var6 = 0; - $var7 = 0; - $var8 = 0; - while ($var9 < $var3) { - $var10 = jl_String_charAt($par1Str, $var9); - if ($var10 >= 48 && $var10 <= 57) { - $var8 = ($var8 * 10 | 0) + ($var10 - 48 | 0) | 0; - $var4 = 1; - } else if ($var10 == 33) { - if ($var4) { - $par0 = nms_PotionHelper_brewBitOperations($par0, $var8, $var6, $var5, $var7); - $var7 = 0; - $var6 = 0; - $var4 = 0; - $var8 = 0; - } - $var5 = 1; - } else if ($var10 == 45) { - if ($var4) { - $par0 = nms_PotionHelper_brewBitOperations($par0, $var8, $var6, $var5, $var7); - $var7 = 0; - $var5 = 0; - $var4 = 0; - $var8 = 0; - } - $var6 = 1; - } else if ($var10 == 43) { - if ($var4) { - $par0 = nms_PotionHelper_brewBitOperations($par0, $var8, $var6, $var5, $var7); - $var7 = 0; - $var5 = 0; - $var6 = 0; - $var4 = 0; - $var8 = 0; - } - } else if ($var10 == 38) { - if ($var4) { - $par0 = nms_PotionHelper_brewBitOperations($par0, $var8, $var6, $var5, $var7); - $var5 = 0; - $var6 = 0; - $var4 = 0; - $var8 = 0; - } - $var7 = 1; - } - $var9 = $var9 + 1 | 0; - } - if ($var4) - $par0 = nms_PotionHelper_brewBitOperations($par0, $var8, $var6, $var5, $var7); - return $par0 & 32767; -} -function nms_PotionHelper_func_77908_a($par0, $par1, $par2, $par3, $par4, $par5) { - nms_PotionHelper_$callClinit(); - return (!(!($par0 & 1 << $par1) ? 0 : 1) ? 0 : 16) | (!(!($par0 & 1 << $par2) ? 0 : 1) ? 0 : 8) | (!(!($par0 & 1 << $par3) ? 0 : 1) ? 0 : 4) | (!(!($par0 & 1 << $par4) ? 0 : 1) ? 0 : 2) | (!(!($par0 & 1 << $par5) ? 0 : 1) ? 0 : 1); -} -function nms_PotionHelper__clinit_() { - var var$1, var$2; - nms_PotionHelper_field_77924_a = null; - nms_PotionHelper_potionRequirements = ju_HashMap__init_1(16, 0.75); - nms_PotionHelper_potionAmplifiers = ju_HashMap__init_1(16, 0.75); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_regeneration.$id3), $rt_s(1822)); - nms_PotionHelper_sugarEffect = $rt_s(1823); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_moveSpeed.$id3), $rt_s(1824)); - nms_PotionHelper_magmaCreamEffect = $rt_s(1825); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_fireResistance.$id3), $rt_s(1826)); - nms_PotionHelper_speckledMelonEffect = $rt_s(1827); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_heal.$id3), $rt_s(1828)); - nms_PotionHelper_spiderEyeEffect = $rt_s(1829); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_poison.$id3), $rt_s(1830)); - nms_PotionHelper_fermentedSpiderEyeEffect = $rt_s(1831); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_weakness.$id3), $rt_s(1832)); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_harm.$id3), $rt_s(1833)); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_moveSlowdown.$id3), $rt_s(1834)); - nms_PotionHelper_blazePowderEffect = $rt_s(1835); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_damageBoost.$id3), $rt_s(1836)); - nms_PotionHelper_goldenCarrotEffect = $rt_s(1837); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_nightVision.$id3), $rt_s(1838)); - ju_HashMap_putImpl(nms_PotionHelper_potionRequirements, jl_Integer_valueOf(nms_Potion_invisibility.$id3), $rt_s(1839)); - nms_PotionHelper_glowstoneEffect = $rt_s(1840); - ju_HashMap_putImpl(nms_PotionHelper_potionAmplifiers, jl_Integer_valueOf(nms_Potion_moveSpeed.$id3), $rt_s(76)); - ju_HashMap_putImpl(nms_PotionHelper_potionAmplifiers, jl_Integer_valueOf(nms_Potion_digSpeed.$id3), $rt_s(76)); - ju_HashMap_putImpl(nms_PotionHelper_potionAmplifiers, jl_Integer_valueOf(nms_Potion_damageBoost.$id3), $rt_s(76)); - ju_HashMap_putImpl(nms_PotionHelper_potionAmplifiers, jl_Integer_valueOf(nms_Potion_regeneration.$id3), $rt_s(76)); - ju_HashMap_putImpl(nms_PotionHelper_potionAmplifiers, jl_Integer_valueOf(nms_Potion_harm.$id3), $rt_s(76)); - ju_HashMap_putImpl(nms_PotionHelper_potionAmplifiers, jl_Integer_valueOf(nms_Potion_heal.$id3), $rt_s(76)); - ju_HashMap_putImpl(nms_PotionHelper_potionAmplifiers, jl_Integer_valueOf(nms_Potion_resistance.$id3), $rt_s(76)); - ju_HashMap_putImpl(nms_PotionHelper_potionAmplifiers, jl_Integer_valueOf(nms_Potion_poison.$id3), $rt_s(76)); - nms_PotionHelper_redstoneEffect = $rt_s(1841); - nms_PotionHelper_gunpowderEffect = $rt_s(1842); - nms_PotionHelper_field_77925_n = ju_HashMap__init_1(16, 0.75); - var$1 = $rt_createArray(jl_String, 32); - var$2 = var$1.data; - var$2[0] = $rt_s(1843); - var$2[1] = $rt_s(1844); - var$2[2] = $rt_s(1845); - var$2[3] = $rt_s(1846); - var$2[4] = $rt_s(1847); - var$2[5] = $rt_s(1848); - var$2[6] = $rt_s(1849); - var$2[7] = $rt_s(1850); - var$2[8] = $rt_s(1851); - var$2[9] = $rt_s(1852); - var$2[10] = $rt_s(1853); - var$2[11] = $rt_s(1854); - var$2[12] = $rt_s(1855); - var$2[13] = $rt_s(1856); - var$2[14] = $rt_s(1857); - var$2[15] = $rt_s(1858); - var$2[16] = $rt_s(1859); - var$2[17] = $rt_s(1860); - var$2[18] = $rt_s(1861); - var$2[19] = $rt_s(1862); - var$2[20] = $rt_s(1863); - var$2[21] = $rt_s(1864); - var$2[22] = $rt_s(1865); - var$2[23] = $rt_s(1866); - var$2[24] = $rt_s(1867); - var$2[25] = $rt_s(1868); - var$2[26] = $rt_s(1869); - var$2[27] = $rt_s(1870); - var$2[28] = $rt_s(1871); - var$2[29] = $rt_s(1872); - var$2[30] = $rt_s(1873); - var$2[31] = $rt_s(1874); - nms_PotionHelper_potionPrefixes = var$1; -} -function nms_ItemHoe() { - nms_Item.call(this); - this.$theToolMaterial = null; -} -function nms_ItemHoe__init_(var_0, var_1) { - var var_2 = new nms_ItemHoe(); - nms_ItemHoe__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemHoe__init_0($this, $par1, $par2EnumToolMaterial) { - nms_Item__init_0($this, $par1); - $this.$theToolMaterial = $par2EnumToolMaterial; - $this.$maxStackSize = 1; - $this.$maxDamage = $par2EnumToolMaterial.$maxUses; - $this.$tabToDisplayOn = nms_CreativeTabs_tabTools; -} -function nms_ItemHoe_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, $var12, $var13, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par2EntityPlayer.$capabilities.$allowEdit) - $var11 = 1; - else if ($par1ItemStack === null) - $var11 = 0; - else { - nms_Item_$callClinit(); - $var11 = 1; - } - if (!$var11) - return 0; - a: { - $var11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - $var12 = nms_World_getBlockId($par3World, $par4, $par5 + 1 | 0, $par6); - if ($par7 && !$var12) { - nms_Block_$callClinit(); - if ($var11 == nms_Block_grass.$blockID) - break a; - } - nms_Block_$callClinit(); - if ($var11 != nms_Block_dirt.$blockID) - return 0; - } - nms_Block_$callClinit(); - $var13 = nms_Block_tilledField; - nms_World_playSoundEffect($par3World, $par4 + 0.5, $par5 + 0.5, $par6 + 0.5, nms_StepSound_getStepSound($var13.$stepSound), ($var13.$stepSound.$stepSoundVolume + 1.0) / 2.0, $var13.$stepSound.$stepSoundPitch * 0.800000011920929); - if ($par3World.$isRemote) - return 1; - $par7 = $var13.$blockID; - $var11 = 0; - $var12 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par3World, $par4, $par5, $par6, $par7, $var11, $var12); - if ($rt_suspending()) { - break main; - } - $par4 = 1; - $ptr = 2; - case 2: - nms_ItemStack_damageItem($par1ItemStack, $par4, $par2EntityPlayer); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, $var12, $var13, $ptr); -} -function nms_ItemHoe_isFull3D($this) { - return 1; -} -function nms_ItemHoe_getMaterialName($this) { - return $this.$theToolMaterial.$name2; -} -function nms_ItemSeeds() { - var a = this; nms_Item.call(a); - a.$blockType = 0; - a.$soilBlockID = 0; -} -function nms_ItemSeeds__init_(var_0, var_1, var_2) { - var var_3 = new nms_ItemSeeds(); - nms_ItemSeeds__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ItemSeeds__init_0($this, $par1, $par2, $par3) { - nms_Item__init_0($this, $par1); - $this.$blockType = $par2; - $this.$soilBlockID = $par3; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMaterials; -} -function nms_ItemSeeds_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par7 != 1) - return 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par7 = 1; - else if ($par1ItemStack === null) - $par7 = 0; - else { - nms_Item_$callClinit(); - $par7 = 1; - } - if ($par7) { - $par7 = $par5 + 1 | 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $var11 = 1; - else if ($par1ItemStack === null) - $var11 = 0; - else { - nms_Item_$callClinit(); - $var11 = 1; - } - if ($var11) { - if (nms_World_getBlockId($par3World, $par4, $par5, $par6) == $this.$soilBlockID && (nms_World_getBlockId($par3World, $par4, $par7, $par6) ? 0 : 1)) { - $par5 = $this.$blockType; - $var11 = 0; - var$12 = 3; - $ptr = 1; - continue main; - } - return 0; - } - } - return 0; - case 1: - nms_World_setBlock($par3World, $par4, $par7, $par6, $par5, $var11, var$12); - if ($rt_suspending()) { - break main; - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, var$12, $ptr); -} -function nms_ItemArmor() { - var a = this; nms_Item.call(a); - a.$armorType = 0; - a.$damageReduceAmount = 0; - a.$renderIndex = 0; - a.$material = null; - a.$field_94605_cw = null; - a.$field_94604_cx = null; -} -var nms_ItemArmor_maxDamageArray = null; -var nms_ItemArmor_field_94606_cu = null; -var nms_ItemArmor_field_94603_a = null; -function nms_ItemArmor__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_ItemArmor(); - nms_ItemArmor__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_ItemArmor__init_0($this, $par1, $par2EnumArmorMaterial, $par3, $par4) { - nms_Item__init_0($this, $par1); - $this.$material = $par2EnumArmorMaterial; - $this.$armorType = $par4; - $this.$renderIndex = $par3; - $this.$damageReduceAmount = $par2EnumArmorMaterial.$damageReductionAmountArray.data[$par4]; - $this.$maxDamage = $rt_imul(nms_ItemArmor_maxDamageArray.data[$par4], $par2EnumArmorMaterial.$maxDamageFactor); - $this.$maxStackSize = 1; - $this.$tabToDisplayOn = nms_CreativeTabs_tabCombat; -} -function nms_ItemArmor_getColorFromItemStack($this, $par1ItemStack, $par2) { - var $var3; - if ($par2 > 0) - return 16777215; - $var3 = nms_ItemArmor_getColor($this, $par1ItemStack); - if ($var3 < 0) - $var3 = 16777215; - return $var3; -} -function nms_ItemArmor_requiresMultipleRenderPasses($this) { - return $this.$material !== nms_EnumArmorMaterial_CLOTH ? 0 : 1; -} -function nms_ItemArmor_getItemEnchantability($this) { - return $this.$material.$enchantability0; -} -function nms_ItemArmor_getArmorMaterial($this) { - return $this.$material; -} -function nms_ItemArmor_hasColor($this, $par1ItemStack) { - var var$2, var$3, var$4, var$5; - if ($this.$material !== nms_EnumArmorMaterial_CLOTH) - var$2 = 0; - else if (!($par1ItemStack.$stackTagCompound === null ? 0 : 1)) - var$2 = 0; - else { - var$3 = $par1ItemStack.$stackTagCompound.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry(var$3, $rt_s(299), var$4 & (var$3.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1)) - var$2 = 0; - else { - var$3 = $par1ItemStack.$stackTagCompound; - var$5 = var$3.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry(var$5, $rt_s(299), var$4 & (var$5.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1)) { - var$5 = new nms_NBTTagCompound; - var$5.$name0 = $rt_s(299); - var$5.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - var$5 = var$3.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry(var$5, $rt_s(299), var$4 & (var$5.$elementData.data.length - 1 | 0), var$4); - var$5 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - var$5 = var$5.$tagMap; - var$4 = jl_String_hashCode($rt_s(1579)); - var$2 = ju_HashMap_findNonNullKeyEntry(var$5, $rt_s(1579), var$4 & (var$5.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1; - } - } - return var$2; -} -function nms_ItemArmor_getColor($this, $par1ItemStack) { - var $var2, $var3, var$4, var$5; - if ($this.$material !== nms_EnumArmorMaterial_CLOTH) - return (-1); - $var2 = $par1ItemStack.$stackTagCompound; - if ($var2 === null) - return 10511680; - $var3 = $var2.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry($var3, $rt_s(299), var$4 & ($var3.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1)) { - $var3 = new nms_NBTTagCompound; - $var3.$name0 = $rt_s(299); - $var3.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - $var3 = $var2.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($var3, $rt_s(299), var$4 & ($var3.$elementData.data.length - 1 | 0), var$4); - $var3 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - if ($var3 === null) - var$5 = 10511680; - else { - $var2 = $var3.$tagMap; - var$4 = jl_String_hashCode($rt_s(1579)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1579), var$4 & ($var2.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1)) - var$5 = 10511680; - else { - $var2 = $var3.$tagMap; - var$4 = jl_String_hashCode($rt_s(1579)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1579), var$4 & ($var2.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1)) - var$5 = 0; - else { - $var3 = $var3.$tagMap; - var$4 = jl_String_hashCode($rt_s(1579)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($var3, $rt_s(1579), var$4 & ($var3.$elementData.data.length - 1 | 0), var$4); - var$5 = ($par1ItemStack === null ? null : $par1ItemStack.$value0).$data2; - } - } - } - return var$5; -} -function nms_ItemArmor_getIconFromDamageForRenderPass($this, $par1, $par2) { - return $par2 == 1 ? $this.$field_94605_cw : $this.$itemIcon; -} -function nms_ItemArmor_removeColor($this, $par1ItemStack) { - var $var2, $var3, var$4; - if ($this.$material === nms_EnumArmorMaterial_CLOTH) { - $var2 = $par1ItemStack.$stackTagCompound; - if ($var2 !== null) { - $var3 = $var2.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry($var3, $rt_s(299), var$4 & ($var3.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1)) { - $var3 = new nms_NBTTagCompound; - $var3.$name0 = $rt_s(299); - $var3.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - $var3 = $var2.$tagMap; - var$4 = jl_String_hashCode($rt_s(299)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($var3, $rt_s(299), var$4 & ($var3.$elementData.data.length - 1 | 0), var$4); - $var3 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - $var2 = $var3.$tagMap; - var$4 = jl_String_hashCode($rt_s(1579)); - if (ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1579), var$4 & ($var2.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1) - ju_HashMap_removeEntry($var3.$tagMap, $rt_s(1579)); - } - } -} -function nms_ItemArmor_func_82813_b($this, $par1ItemStack, $par2) { - var $var3, $var4, var$5, var$6, var$7; - if ($this.$material !== nms_EnumArmorMaterial_CLOTH) { - $par1ItemStack = new jl_UnsupportedOperationException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $par1ItemStack.$message = $rt_s(1875); - $rt_throw($par1ItemStack); - } - $var3 = $par1ItemStack.$stackTagCompound; - if ($var3 === null) { - $var3 = new nms_NBTTagCompound; - $var3.$name0 = $rt_s(44); - $var3.$tagMap = ju_HashMap__init_1(16, 0.75); - $par1ItemStack.$stackTagCompound = $var3; - } - $var4 = $var3.$tagMap; - var$5 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry($var4, $rt_s(299), var$5 & ($var4.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) { - $var4 = new nms_NBTTagCompound; - $var4.$name0 = $rt_s(299); - $var4.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - $var4 = $var3.$tagMap; - var$5 = jl_String_hashCode($rt_s(299)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($var4, $rt_s(299), var$5 & ($var4.$elementData.data.length - 1 | 0), var$5); - $var4 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - var$6 = $var3.$tagMap; - var$7 = jl_String_hashCode($rt_s(299)); - if (!(ju_HashMap_findNonNullKeyEntry(var$6, $rt_s(299), var$7 & (var$6.$elementData.data.length - 1 | 0), var$7) === null ? 0 : 1)) { - $var3 = $var3.$tagMap; - $var4.$name0 = $rt_s(299); - ju_HashMap_putImpl($var3, $rt_s(299), $var4); - } - $var4 = $var4.$tagMap; - $var3 = new nms_NBTTagInt; - $var3.$name0 = $rt_s(1579); - $var3.$data2 = $par2; - ju_HashMap_putImpl($var4, $rt_s(1579), $var3); -} -function nms_ItemArmor_getIsRepairable($this, $par1ItemStack, $par2ItemStack) { - return nms_EnumArmorMaterial_getArmorCraftingMaterial($this.$material) == $par2ItemStack.$itemID0 ? 1 : 0; -} -function nms_ItemArmor_registerIcons($this, $par1IconRegister) { - $this.$itemIcon = nms_TextureMap_registerIcon($par1IconRegister, $this.$unlocalizedName); - if ($this.$material === nms_EnumArmorMaterial_CLOTH) - $this.$field_94605_cw = nms_TextureMap_registerIcon($par1IconRegister, nms_ItemArmor_field_94606_cu.data[$this.$armorType]); - $this.$field_94604_cx = nms_TextureMap_registerIcon($par1IconRegister, nms_ItemArmor_field_94603_a.data[$this.$armorType]); -} -function nms_ItemArmor_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $var4, var$5, var$6, var$7; - $var4 = nms_EntityLiving_getArmorPosition($par1ItemStack) - 1 | 0; - if ($par3EntityPlayer.$inventory.$armorInventory.data[$var4] === null) { - $par2World = new nms_ItemStack; - var$5 = $par1ItemStack.$itemID0; - var$6 = $par1ItemStack.$stackSize; - var$7 = $par1ItemStack.$itemDamage; - $par2World.$stackSize = 0; - $par2World.$itemFrame = null; - $par2World.$itemID0 = var$5; - $par2World.$stackSize = var$6; - $par2World.$itemDamage = var$7; - if ($par2World.$itemDamage < 0) - $par2World.$itemDamage = 0; - if ($par1ItemStack.$stackTagCompound !== null) - $par2World.$stackTagCompound = nms_NBTTagCompound_copy($par1ItemStack.$stackTagCompound); - $par3EntityPlayer.$inventory.$armorInventory.data[$var4] = $par2World; - $par1ItemStack.$stackSize = 0; - } - return $par1ItemStack; -} -function nms_ItemArmor_func_94602_b($par0) { - switch ($par0) { - case 0: - nms_Item_$callClinit(); - return nms_Item_helmetDiamond.$field_94604_cx; - case 1: - nms_Item_$callClinit(); - return nms_Item_plateDiamond.$field_94604_cx; - case 2: - nms_Item_$callClinit(); - return nms_Item_legsDiamond.$field_94604_cx; - case 3: - nms_Item_$callClinit(); - return nms_Item_bootsDiamond.$field_94604_cx; - default: - } - return null; -} -function nms_ItemArmor__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(4); - var$2 = var$1.data; - var$2[0] = 11; - var$2[1] = 16; - var$2[2] = 15; - var$2[3] = 13; - nms_ItemArmor_maxDamageArray = var$1; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(1876); - var$2[1] = $rt_s(1877); - var$2[2] = $rt_s(1878); - var$2[3] = $rt_s(1879); - nms_ItemArmor_field_94606_cu = var$1; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(1880); - var$2[1] = $rt_s(1881); - var$2[2] = $rt_s(1882); - var$2[3] = $rt_s(1883); - nms_ItemArmor_field_94603_a = var$1; -} -function nms_EnumArmorMaterial() { - var a = this; jl_Enum.call(a); - a.$maxDamageFactor = 0; - a.$damageReductionAmountArray = null; - a.$enchantability0 = 0; -} -var nms_EnumArmorMaterial_CLOTH = null; -var nms_EnumArmorMaterial_CHAIN = null; -var nms_EnumArmorMaterial_IRON = null; -var nms_EnumArmorMaterial_GOLD = null; -var nms_EnumArmorMaterial_DIAMOND = null; -var nms_EnumArmorMaterial_$VALUES = null; -function nms_EnumArmorMaterial_getDurability($this, $par1) { - return $rt_imul(nms_ItemArmor_maxDamageArray.data[$par1], $this.$maxDamageFactor); -} -function nms_EnumArmorMaterial_getDamageReductionAmount($this, $par1) { - return $this.$damageReductionAmountArray.data[$par1]; -} -function nms_EnumArmorMaterial_getEnchantability($this) { - return $this.$enchantability0; -} -function nms_EnumArmorMaterial_getArmorCraftingMaterial($this) { - var var$1; - if ($this === nms_EnumArmorMaterial_CLOTH) { - nms_Item_$callClinit(); - var$1 = nms_Item_leather.$itemID; - } else if ($this === nms_EnumArmorMaterial_CHAIN) { - nms_Item_$callClinit(); - var$1 = nms_Item_ingotIron.$itemID; - } else if ($this === nms_EnumArmorMaterial_GOLD) { - nms_Item_$callClinit(); - var$1 = nms_Item_ingotGold.$itemID; - } else if ($this === nms_EnumArmorMaterial_IRON) { - nms_Item_$callClinit(); - var$1 = nms_Item_ingotIron.$itemID; - } else if ($this !== nms_EnumArmorMaterial_DIAMOND) - var$1 = 0; - else { - nms_Item_$callClinit(); - var$1 = nms_Item_diamond.$itemID; - } - return var$1; -} -function nms_EnumArmorMaterial__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumArmorMaterial; - var$2 = $rt_createIntArray(4); - var$3 = var$2.data; - var$3[0] = 1; - var$3[1] = 3; - var$3[2] = 2; - var$3[3] = 1; - var$1.$name2 = $rt_s(1884); - var$1.$ordinal = 0; - var$1.$maxDamageFactor = 5; - var$1.$damageReductionAmountArray = var$2; - var$1.$enchantability0 = 15; - nms_EnumArmorMaterial_CLOTH = var$1; - var$1 = new nms_EnumArmorMaterial; - var$2 = $rt_createIntArray(4); - var$3 = var$2.data; - var$3[0] = 2; - var$3[1] = 5; - var$3[2] = 4; - var$3[3] = 1; - var$1.$name2 = $rt_s(1885); - var$1.$ordinal = 1; - var$1.$maxDamageFactor = 15; - var$1.$damageReductionAmountArray = var$2; - var$1.$enchantability0 = 12; - nms_EnumArmorMaterial_CHAIN = var$1; - var$1 = new nms_EnumArmorMaterial; - var$2 = $rt_createIntArray(4); - var$3 = var$2.data; - var$3[0] = 2; - var$3[1] = 6; - var$3[2] = 5; - var$3[3] = 2; - var$1.$name2 = $rt_s(1799); - var$1.$ordinal = 2; - var$1.$maxDamageFactor = 15; - var$1.$damageReductionAmountArray = var$2; - var$1.$enchantability0 = 9; - nms_EnumArmorMaterial_IRON = var$1; - var$1 = new nms_EnumArmorMaterial; - var$2 = $rt_createIntArray(4); - var$3 = var$2.data; - var$3[0] = 2; - var$3[1] = 5; - var$3[2] = 3; - var$3[3] = 1; - var$1.$name2 = $rt_s(1540); - var$1.$ordinal = 3; - var$1.$maxDamageFactor = 7; - var$1.$damageReductionAmountArray = var$2; - var$1.$enchantability0 = 25; - nms_EnumArmorMaterial_GOLD = var$1; - var$1 = new nms_EnumArmorMaterial; - var$2 = $rt_createIntArray(4); - var$3 = var$2.data; - var$3[0] = 3; - var$3[1] = 8; - var$3[2] = 6; - var$3[3] = 3; - var$1.$name2 = $rt_s(1886); - var$1.$ordinal = 4; - var$1.$maxDamageFactor = 33; - var$1.$damageReductionAmountArray = var$2; - var$1.$enchantability0 = 10; - nms_EnumArmorMaterial_DIAMOND = var$1; - var$2 = $rt_createArray(nms_EnumArmorMaterial, 5); - var$3 = var$2.data; - var$3[0] = nms_EnumArmorMaterial_CLOTH; - var$3[1] = nms_EnumArmorMaterial_CHAIN; - var$3[2] = nms_EnumArmorMaterial_IRON; - var$3[3] = nms_EnumArmorMaterial_GOLD; - var$3[4] = nms_EnumArmorMaterial_DIAMOND; - nms_EnumArmorMaterial_$VALUES = var$2; -} -function nms_ItemHangingEntity() { - nms_Item.call(this); - this.$hangingEntityClass = null; -} -function nms_ItemHangingEntity__init_(var_0, var_1) { - var var_2 = new nms_ItemHangingEntity(); - nms_ItemHangingEntity__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemHangingEntity__init_0($this, $par1, $par2Class) { - nms_Item__init_0($this, $par1); - $this.$hangingEntityClass = $par2Class; - $this.$tabToDisplayOn = nms_CreativeTabs_tabDecorations; -} -function nms_ItemHangingEntity_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var12; - if (!$par7) - return 0; - if ($par7 == 1) - return 0; - $var12 = nms_ItemHangingEntity_createHangingEntity($this, $par3World, $par4, $par5, $par6, nms_Direction_facingToDirection.data[$par7]); - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par4 = 1; - else if ($par1ItemStack === null) - $par4 = 0; - else { - nms_Item_$callClinit(); - $par4 = 1; - } - if (!$par4) - return 0; - if ($var12 !== null && nms_EntityHanging_onValidSurface($var12)) { - if (!$par3World.$isRemote) { - $par4 = nms_World_spawnEntityInWorld($par3World, $var12); - $par2EntityPlayer = $par3World.$entityList; - ju_HashMap_putImpl($par2EntityPlayer.$backingMap, $var12, $par2EntityPlayer); - if (!$par4) { - $par2EntityPlayer = $par3World.$entitySpawnQueue; - ju_HashMap_putImpl($par2EntityPlayer.$backingMap, $var12, $par2EntityPlayer); - } - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - } - return 1; -} -function nms_ItemHangingEntity_createHangingEntity($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6; - if ($this.$hangingEntityClass === $rt_cls(nms_EntityPainting)) - var$6 = nms_EntityPainting__init_($par1World, $par2, $par3, $par4, $par5); - else if ($this.$hangingEntityClass !== $rt_cls(nms_EntityItemFrame)) - var$6 = null; - else { - var$6 = new nms_EntityItemFrame; - nms_Entity__init_0(var$6); - var$6.$tickCounter1 = 0; - var$6.$hangingDirection = 0; - var$6.$yOffset0 = 0.0; - nms_Entity_setSize(var$6, 0.5, 0.5); - var$6.$worldObj = $par1World; - var$6.$dimension = $par1World.$provider.$dimensionId; - var$6.$xPosition1 = $par2; - var$6.$yPosition2 = $par3; - var$6.$zPosition1 = $par4; - var$6.$itemDropChance = 1.0; - nms_EntityHanging_setDirection(var$6, $par5); - } - return var$6; -} -function nms_ItemAppleGold() { - nms_ItemFood.call(this); -} -function nms_ItemAppleGold__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_ItemAppleGold(); - nms_ItemAppleGold__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_ItemAppleGold__init_0($this, $par1, $par2, $par3, $par4) { - nms_Item__init_0($this, $par1); - $this.$itemUseDuration = 32; - $this.$healAmount = $par2; - $this.$isWolfsFavoriteMeat = $par4; - $this.$saturationModifier = $par3; - $this.$tabToDisplayOn = nms_CreativeTabs_tabFood; - $this.$hasSubtypes = 1; -} -function nms_ItemAppleGold_hasEffect($this, $par1ItemStack) { - return $par1ItemStack.$itemDamage <= 0 ? 0 : 1; -} -function nms_ItemAppleGold_getRarity($this, $par1ItemStack) { - return $par1ItemStack.$itemDamage ? nms_EnumRarity_epic : nms_EnumRarity_rare; -} -function nms_ItemAppleGold_onFoodEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - if ($par1ItemStack.$itemDamage <= 0) - nms_ItemFood_onFoodEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer); - else if (!$par2World.$isRemote) { - $par1ItemStack = new nms_PotionEffect; - $par1ItemStack.$potionID = nms_Potion_regeneration.$id3; - $par1ItemStack.$duration = 600; - $par1ItemStack.$amplifier = 3; - $par1ItemStack.$isAmbient = 0; - nms_EntityLiving_addPotionEffect($par3EntityPlayer, $par1ItemStack); - $par1ItemStack = new nms_PotionEffect; - $par1ItemStack.$potionID = nms_Potion_resistance.$id3; - $par1ItemStack.$duration = 6000; - $par1ItemStack.$amplifier = 0; - $par1ItemStack.$isAmbient = 0; - nms_EntityLiving_addPotionEffect($par3EntityPlayer, $par1ItemStack); - $par1ItemStack = new nms_PotionEffect; - $par1ItemStack.$potionID = nms_Potion_fireResistance.$id3; - $par1ItemStack.$duration = 6000; - $par1ItemStack.$amplifier = 0; - $par1ItemStack.$isAmbient = 0; - nms_EntityLiving_addPotionEffect($par3EntityPlayer, $par1ItemStack); - } -} -function nms_ItemAppleGold_getSubItems($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_Potion() { - var a = this; jl_Object.call(a); - a.$id3 = 0; - a.$name7 = null; - a.$statusIconIndex = 0; - a.$isBadEffect = 0; - a.$effectiveness = 0.0; - a.$usable = 0; - a.$liquidColor = 0; -} -var nms_Potion_potionTypes = null; -var nms_Potion_field_76423_b = null; -var nms_Potion_moveSpeed = null; -var nms_Potion_moveSlowdown = null; -var nms_Potion_digSpeed = null; -var nms_Potion_digSlowdown = null; -var nms_Potion_damageBoost = null; -var nms_Potion_heal = null; -var nms_Potion_harm = null; -var nms_Potion_jump = null; -var nms_Potion_confusion = null; -var nms_Potion_regeneration = null; -var nms_Potion_resistance = null; -var nms_Potion_fireResistance = null; -var nms_Potion_waterBreathing = null; -var nms_Potion_invisibility = null; -var nms_Potion_blindness = null; -var nms_Potion_nightVision = null; -var nms_Potion_hunger = null; -var nms_Potion_weakness = null; -var nms_Potion_poison = null; -var nms_Potion_wither = null; -var nms_Potion_field_76434_w = null; -var nms_Potion_field_76444_x = null; -var nms_Potion_field_76443_y = null; -var nms_Potion_field_76442_z = null; -var nms_Potion_field_76409_A = null; -var nms_Potion_field_76410_B = null; -var nms_Potion_field_76411_C = null; -var nms_Potion_field_76405_D = null; -var nms_Potion_field_76406_E = null; -var nms_Potion_field_76407_F = null; -var nms_Potion_field_76408_G = null; -function nms_Potion__init_(var_0, var_1, var_2) { - var var_3 = new nms_Potion(); - nms_Potion__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_Potion__init_0($this, $par1, $par2, $par3) { - $this.$name7 = $rt_s(44); - $this.$statusIconIndex = (-1); - $this.$id3 = $par1; - nms_Potion_potionTypes.data[$par1] = $this; - $this.$isBadEffect = $par2; - if (!$par2) - $this.$effectiveness = 1.0; - else - $this.$effectiveness = 0.5; - $this.$liquidColor = $par3; -} -function nms_Potion_setIconIndex($this, $par1, $par2) { - $this.$statusIconIndex = $par1 + ($par2 * 8 | 0) | 0; - return $this; -} -function nms_Potion_getId($this) { - return $this.$id3; -} -function nms_Potion_performEffect($this, $par1EntityLiving, $par2) { - var var$3, 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();var$3 = $thread.pop();$par2 = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - b: { - if ($this.$id3 != nms_Potion_regeneration.$id3) { - if ($this.$id3 == nms_Potion_poison.$id3) { - if ($par1EntityLiving.$health <= 1) - break b; - var$3 = nms_DamageSource_magic; - $par2 = 1; - $ptr = 2; - continue main; - } - if ($this.$id3 == nms_Potion_wither.$id3) { - var$3 = nms_DamageSource_wither; - $par2 = 1; - $ptr = 1; - continue main; - } - if ($this.$id3 == nms_Potion_hunger.$id3 && $par1EntityLiving instanceof nms_EntityPlayer) { - $par1EntityLiving = $par1EntityLiving; - var$4 = 0.02500000037252903 * ($par2 + 1 | 0); - if (!$par1EntityLiving.$capabilities.$disableDamage && !$par1EntityLiving.$worldObj.$isRemote) { - $par1EntityLiving = $par1EntityLiving.$foodStats; - var$4 = $par1EntityLiving.$foodExhaustionLevel + var$4; - var$5 = 40.0; - if (var$4 < var$5) - var$5 = var$4; - $par1EntityLiving.$foodExhaustionLevel = var$5; - } - } else { - c: { - if (!($this.$id3 == nms_Potion_heal.$id3 && !($par1EntityLiving.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 0 : 1))) { - if ($this.$id3 != nms_Potion_harm.$id3) - break c; - if (!($par1EntityLiving.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 0 : 1)) - break c; - } - $par1EntityLiving.$heal(6 << $par2); - break b; - } - if ($this.$id3 == nms_Potion_harm.$id3 && !($par1EntityLiving.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 0 : 1)) - break a; - if ($this.$id3 == nms_Potion_heal.$id3 && ($par1EntityLiving.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 0 : 1)) - break a; - } - } else if ($par1EntityLiving.$health < $par1EntityLiving.$getMaxHealth()) - $par1EntityLiving.$heal(1); - } - return; - } - var$3 = nms_DamageSource_magic; - $par2 = 6 << $par2; - $ptr = 3; - continue main; - case 1: - $par1EntityLiving.$attackEntityFrom(var$3, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $par1EntityLiving.$attackEntityFrom(var$3, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 3: - $par1EntityLiving.$attackEntityFrom(var$3, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2, var$3, var$4, var$5, $ptr); -} -function nms_Potion_affectEntity($this, $par1EntityLiving, $par2EntityLiving, $par3, $par4) { - var $var6, var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$var6 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2EntityLiving = $thread.pop();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - b: { - c: { - if (!($this.$id3 == nms_Potion_heal.$id3 && !($par2EntityLiving.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 0 : 1))) { - if ($this.$id3 != nms_Potion_harm.$id3) - break c; - if (!($par2EntityLiving.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 0 : 1)) - break c; - } - $par2EntityLiving.$heal($par4 * (6 << $par3) + 0.5 | 0); - break b; - } - if ($this.$id3 == nms_Potion_harm.$id3 && !($par2EntityLiving.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 0 : 1)) - break a; - if ($this.$id3 == nms_Potion_heal.$id3 && ($par2EntityLiving.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 0 : 1)) - break a; - } - return; - } - $var6 = $par4 * (6 << $par3) + 0.5 | 0; - if ($par1EntityLiving === null) { - $par1EntityLiving = nms_DamageSource_magic; - $ptr = 2; - continue main; - } - var$6 = new nms_EntityDamageSourceIndirect; - var$6.$isUnblockable = 0; - var$6.$isDamageAllowedInCreativeMode = 0; - var$6.$hungerDamage = 0.30000001192092896; - var$6.$magicDamage = 0; - var$6.$explosion = 0; - var$6.$damageType = $rt_s(1887); - var$6.$damageSourceEntity = $par2EntityLiving; - var$6.$indirectEntity = $par1EntityLiving; - var$6.$isUnblockable = 1; - var$6.$hungerDamage = 0.0; - var$6.$magicDamage = 1; - $ptr = 1; - case 1: - $par2EntityLiving.$attackEntityFrom(var$6, $var6); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $par2EntityLiving.$attackEntityFrom($par1EntityLiving, $var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, $par2EntityLiving, $par3, $par4, $var6, var$6, $ptr); -} -function nms_Potion_isInstant($this) { - return 0; -} -function nms_Potion_isReady($this, $par1, $par2) { - var $var3; - if ($this.$id3 != nms_Potion_regeneration.$id3 && $this.$id3 != nms_Potion_poison.$id3) { - if ($this.$id3 != nms_Potion_wither.$id3) - return $this.$id3 != nms_Potion_hunger.$id3 ? 0 : 1; - $var3 = 40 >> $par2; - return $var3 <= 0 ? 1 : $par1 % $var3 | 0 ? 0 : 1; - } - $var3 = 25 >> $par2; - return $var3 <= 0 ? 1 : $par1 % $var3 | 0 ? 0 : 1; -} -function nms_Potion_setPotionName($this, $par1Str) { - $this.$name7 = $par1Str; - return $this; -} -function nms_Potion_getName($this) { - return $this.$name7; -} -function nms_Potion_hasStatusIcon($this) { - return $this.$statusIconIndex < 0 ? 0 : 1; -} -function nms_Potion_getStatusIconIndex($this) { - return $this.$statusIconIndex; -} -function nms_Potion_isBadEffect($this) { - return $this.$isBadEffect; -} -function nms_Potion_setEffectiveness($this, $par1) { - $this.$effectiveness = $par1; - return $this; -} -function nms_Potion_getEffectiveness($this) { - return $this.$effectiveness; -} -function nms_Potion_isUsable($this) { - return $this.$usable; -} -function nms_Potion_getLiquidColor($this) { - return $this.$liquidColor; -} -function nms_Potion__clinit_() { - var var$1; - nms_Potion_potionTypes = $rt_createArray(nms_Potion, 32); - nms_Potion_field_76423_b = null; - var$1 = nms_Potion__init_(1, 0, 8171462); - var$1.$name7 = $rt_s(1888); - var$1.$statusIconIndex = 0; - nms_Potion_moveSpeed = var$1; - var$1 = nms_Potion__init_(2, 1, 5926017); - var$1.$name7 = $rt_s(1889); - var$1.$statusIconIndex = 1; - nms_Potion_moveSlowdown = var$1; - var$1 = nms_Potion__init_(3, 0, 14270531); - var$1.$name7 = $rt_s(1890); - var$1.$statusIconIndex = 2; - var$1.$effectiveness = 1.5; - nms_Potion_digSpeed = var$1; - var$1 = nms_Potion__init_(4, 1, 4866583); - var$1.$name7 = $rt_s(1891); - var$1.$statusIconIndex = 3; - nms_Potion_digSlowdown = var$1; - var$1 = nms_Potion__init_(5, 0, 9643043); - var$1.$name7 = $rt_s(1892); - var$1.$statusIconIndex = 4; - nms_Potion_damageBoost = var$1; - var$1 = new nms_PotionHealth; - nms_Potion__init_0(var$1, 6, 0, 16262179); - var$1.$name7 = $rt_s(1893); - nms_Potion_heal = var$1; - var$1 = new nms_PotionHealth; - nms_Potion__init_0(var$1, 7, 1, 4393481); - var$1.$name7 = $rt_s(1894); - nms_Potion_harm = var$1; - var$1 = nms_Potion__init_(8, 0, 7889559); - var$1.$name7 = $rt_s(1895); - var$1.$statusIconIndex = 10; - nms_Potion_jump = var$1; - var$1 = nms_Potion__init_(9, 1, 5578058); - var$1.$name7 = $rt_s(1896); - var$1.$statusIconIndex = 11; - var$1.$effectiveness = 0.25; - nms_Potion_confusion = var$1; - var$1 = nms_Potion__init_(10, 0, 13458603); - var$1.$name7 = $rt_s(1897); - var$1.$statusIconIndex = 7; - var$1.$effectiveness = 0.25; - nms_Potion_regeneration = var$1; - nms_Potion_resistance = nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(11, 0, 10044730), $rt_s(1898)), 6, 1); - nms_Potion_fireResistance = nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(12, 0, 14981690), $rt_s(1899)), 7, 1); - nms_Potion_waterBreathing = nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(13, 0, 3035801), $rt_s(1900)), 0, 2); - nms_Potion_invisibility = nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(14, 0, 8356754), $rt_s(1901)), 0, 1); - nms_Potion_blindness = nms_Potion_setEffectiveness(nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(15, 1, 2039587), $rt_s(1902)), 5, 1), 0.25); - nms_Potion_nightVision = nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(16, 0, 2039713), $rt_s(1903)), 4, 1); - nms_Potion_hunger = nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(17, 1, 5797459), $rt_s(1904)), 1, 1); - nms_Potion_weakness = nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(18, 1, 4738376), $rt_s(1905)), 5, 0); - nms_Potion_poison = nms_Potion_setEffectiveness(nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(19, 1, 5149489), $rt_s(1906)), 6, 0), 0.25); - nms_Potion_wither = nms_Potion_setEffectiveness(nms_Potion_setIconIndex(nms_Potion_setPotionName(nms_Potion__init_(20, 1, 3484199), $rt_s(1907)), 1, 2), 0.25); - nms_Potion_field_76434_w = null; - nms_Potion_field_76444_x = null; - nms_Potion_field_76443_y = null; - nms_Potion_field_76442_z = null; - nms_Potion_field_76409_A = null; - nms_Potion_field_76410_B = null; - nms_Potion_field_76411_C = null; - nms_Potion_field_76405_D = null; - nms_Potion_field_76406_E = null; - nms_Potion_field_76407_F = null; - nms_Potion_field_76408_G = null; -} -function nms_ItemSign() { - nms_Item.call(this); -} -function nms_ItemSign__init_(var_0) { - var var_1 = new nms_ItemSign(); - nms_ItemSign__init_0(var_1, var_0); - return var_1; -} -function nms_ItemSign__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 16; - $this.$tabToDisplayOn = nms_CreativeTabs_tabDecorations; -} -function nms_ItemSign_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, $var12, var$13, var$14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par7) - return 0; - $var11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - if (!$var11) { - nms_Material_$callClinit(); - $var12 = nms_Material_air; - } else { - nms_Block_$callClinit(); - $var12 = nms_Block_blocksList.data[$var11].$blockMaterial; - } - if (!$var12.$isSolid()) - return 0; - var$13 = $rt_compare($par7, 1); - if (!var$13) - $par5 = $par5 + 1 | 0; - if ($par7 == 2) - $par6 = $par6 + (-1) | 0; - if ($par7 == 3) - $par6 = $par6 + 1 | 0; - if ($par7 == 4) - $par4 = $par4 + (-1) | 0; - if ($par7 == 5) - $par4 = $par4 + 1 | 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $var11 = 1; - else if ($par1ItemStack === null) - $var11 = 0; - else { - nms_Item_$callClinit(); - $var11 = 1; - } - if (!$var11) - return 0; - nms_Block_$callClinit(); - if (!nms_Block_signPost.$canPlaceBlockAt($par3World, $par4, $par5, $par6)) - return 0; - if (var$13) { - $var11 = nms_Block_signWall.$blockID; - var$13 = 2; - $ptr = 1; - continue main; - } - var$14 = ($par2EntityPlayer.$rotationYaw + 180.0) * 16.0 / 360.0 + 0.5; - $var11 = var$14 | 0; - if (var$14 < $var11) - $var11 = $var11 - 1 | 0; - $var11 = $var11 & 15; - $par7 = nms_Block_signPost.$blockID; - var$13 = 2; - $ptr = 3; - continue main; - case 1: - nms_World_setBlock($par3World, $par4, $par5, $par6, $var11, $par7, var$13); - if ($rt_suspending()) { - break main; - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - $var12 = nms_World_getBlockTileEntity($par3World, $par4, $par5, $par6); - if ($var12 === null) - return 1; - $ptr = 2; - case 2: - nms_EntityPlayerSP_displayGUIEditSign($par2EntityPlayer, $var12); - if ($rt_suspending()) { - break main; - } - return 1; - case 3: - nms_World_setBlock($par3World, $par4, $par5, $par6, $par7, $var11, var$13); - if ($rt_suspending()) { - break main; - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - $var12 = nms_World_getBlockTileEntity($par3World, $par4, $par5, $par6); - if ($var12 === null) - return 1; - $ptr = 2; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, $var12, var$13, var$14, $ptr); -} -function nms_ItemDoor() { - nms_Item.call(this); - this.$doorMaterial = null; -} -function nms_ItemDoor__init_0(var_0, var_1) { - var var_2 = new nms_ItemDoor(); - nms_ItemDoor__init_(var_2, var_0, var_1); - return var_2; -} -function nms_ItemDoor__init_($this, $par1, $par2Material) { - nms_Item__init_0($this, $par1); - $this.$doorMaterial = $par2Material; - $this.$maxStackSize = 1; - $this.$tabToDisplayOn = nms_CreativeTabs_tabRedstone; -} -function nms_ItemDoor_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var var$11, var$12, $var11, var$14, $var12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();var$14 = $thread.pop();$var11 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par7 != 1) - return 0; - var$11 = $par5 + 1 | 0; - var$12 = $this.$doorMaterial; - nms_Material_$callClinit(); - if (var$12 !== nms_Material_wood) { - nms_Block_$callClinit(); - $var11 = nms_Block_doorIron; - } else { - nms_Block_$callClinit(); - $var11 = nms_Block_doorWood; - } - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par5 = 1; - else if ($par1ItemStack === null) - $par5 = 0; - else { - nms_Item_$callClinit(); - $par5 = 1; - } - if ($par5) { - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par5 = 1; - else if ($par1ItemStack === null) - $par5 = 0; - else { - nms_Item_$callClinit(); - $par5 = 1; - } - if ($par5) { - if (!$var11.$canPlaceBlockAt($par3World, $par4, var$11, $par6)) - return 0; - var$14 = ($par2EntityPlayer.$rotationYaw + 180.0) * 4.0 / 360.0 - 0.5; - $par7 = var$14 | 0; - if (var$14 < $par7) - $par7 = $par7 - 1 | 0; - $var12 = $par7 & 3; - $ptr = 1; - continue main; - } - } - return 0; - case 1: - nms_ItemDoor_placeDoorBlock($par3World, $par4, var$11, $par6, $var12, $var11); - if ($rt_suspending()) { - break main; - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, var$11, var$12, $var11, var$14, $var12, $ptr); -} -function nms_ItemDoor_placeDoorBlock($par0World, $par1, $par2, $par3, $par4, $par5Block) { - var $var6, $var7, $var10, $var11, $var12, var$12, $var8, var$14, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();var$14 = $thread.pop();$var8 = $thread.pop();var$12 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5Block = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$par0World = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = 0; - $var7 = 0; - if (!$par4) - $var7 = 1; - if ($par4 == 1) - $var6 = (-1); - if ($par4 == 2) - $var7 = (-1); - if ($par4 == 3) - $var6 = 1; - $var10 = $par1 - $var6 | 0; - $var11 = $par3 - $var7 | 0; - $var12 = !nms_Block_isNormalCube(nms_World_getBlockId($par0World, $var10, $par2, $var11)) ? 0 : 1; - var$12 = $par2 + 1 | 0; - $var8 = $var12 + (!nms_Block_isNormalCube(nms_World_getBlockId($par0World, $var10, var$12, $var11)) ? 0 : 1) | 0; - var$14 = $par1 + $var6 | 0; - $var7 = $par3 + $var7 | 0; - $var9 = (!nms_Block_isNormalCube(nms_World_getBlockId($par0World, var$14, $par2, $var7)) ? 0 : 1) + (!nms_Block_isNormalCube(nms_World_getBlockId($par0World, var$14, var$12, $var7)) ? 0 : 1) | 0; - $var10 = nms_World_getBlockId($par0World, $var10, $par2, $var11) != $par5Block.$blockID && nms_World_getBlockId($par0World, $var10, var$12, $var11) != $par5Block.$blockID ? 0 : 1; - $var11 = nms_World_getBlockId($par0World, var$14, $par2, $var7) != $par5Block.$blockID && nms_World_getBlockId($par0World, var$14, var$12, $var7) != $par5Block.$blockID ? 0 : 1; - $var12 = 0; - if ($var10 && !$var11) - $var12 = 1; - else if ($var9 > $var8) - $var12 = 1; - $var6 = $par5Block.$blockID; - $var8 = 2; - $ptr = 1; - case 1: - nms_World_setBlock($par0World, $par1, $par2, $par3, $var6, $par4, $var8); - if ($rt_suspending()) { - break main; - } - $par4 = $par5Block.$blockID; - $var6 = 8 | (!$var12 ? 0 : 1); - $var8 = 2; - $ptr = 2; - case 2: - nms_World_setBlock($par0World, $par1, var$12, $par3, $par4, $var6, $var8); - if ($rt_suspending()) { - break main; - } - $par4 = $par5Block.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par0World, $par1, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $par2 = $par5Block.$blockID; - $ptr = 4; - case 4: - nms_World_notifyBlocksOfNeighborChange($par0World, $par1, var$12, $par3, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0World, $par1, $par2, $par3, $par4, $par5Block, $var6, $var7, $var10, $var11, $var12, var$12, $var8, var$14, $var9, $ptr); -} -function nms_Material() { - var a = this; jl_Object.call(a); - a.$canBurn = 0; - a.$replaceable = 0; - a.$isTranslucent = 0; - a.$materialMapColor = null; - a.$requiresNoTool = 0; - a.$mobilityFlag = 0; - a.$field_85159_M = 0; -} -var nms_Material_air = null; -var nms_Material_grass = null; -var nms_Material_ground = null; -var nms_Material_wood = null; -var nms_Material_rock = null; -var nms_Material_iron = null; -var nms_Material_anvil = null; -var nms_Material_water = null; -var nms_Material_lava = null; -var nms_Material_leaves = null; -var nms_Material_plants = null; -var nms_Material_vine = null; -var nms_Material_sponge = null; -var nms_Material_cloth = null; -var nms_Material_fire = null; -var nms_Material_sand = null; -var nms_Material_circuits = null; -var nms_Material_glass = null; -var nms_Material_redstoneLight = null; -var nms_Material_tnt = null; -var nms_Material_coral = null; -var nms_Material_ice = null; -var nms_Material_snow = null; -var nms_Material_craftedSnow = null; -var nms_Material_cactus = null; -var nms_Material_clay = null; -var nms_Material_pumpkin = null; -var nms_Material_dragonEgg = null; -var nms_Material_portal = null; -var nms_Material_cake = null; -var nms_Material_web = null; -var nms_Material_piston = null; -function nms_Material_$callClinit() { - nms_Material_$callClinit = $rt_eraseClinit(nms_Material); - nms_Material__clinit_(); -} -function nms_Material__init_(var_0) { - var var_1 = new nms_Material(); - nms_Material__init_0(var_1, var_0); - return var_1; -} -function nms_Material__init_0($this, $par1MapColor) { - nms_Material_$callClinit(); - $this.$requiresNoTool = 1; - $this.$materialMapColor = $par1MapColor; -} -function nms_Material_isLiquid($this) { - return 0; -} -function nms_Material_isSolid($this) { - return 1; -} -function nms_Material_getCanBlockGrass($this) { - return 1; -} -function nms_Material_blocksMovement($this) { - return 1; -} -function nms_Material_setTranslucent($this) { - $this.$isTranslucent = 1; - return $this; -} -function nms_Material_setRequiresTool($this) { - $this.$requiresNoTool = 0; - return $this; -} -function nms_Material_setBurning($this) { - $this.$canBurn = 1; - return $this; -} -function nms_Material_setReplaceable($this) { - $this.$replaceable = 1; - return $this; -} -function nms_Material_isReplaceable($this) { - return $this.$replaceable; -} -function nms_Material_isOpaque($this) { - return !$this.$isTranslucent ? $this.$blocksMovement() : 0; -} -function nms_Material_isToolNotRequired($this) { - return $this.$requiresNoTool; -} -function nms_Material_getMaterialMobility($this) { - return $this.$mobilityFlag; -} -function nms_Material_setNoPushMobility($this) { - $this.$mobilityFlag = 1; - return $this; -} -function nms_Material_setImmovableMobility($this) { - $this.$mobilityFlag = 2; - return $this; -} -function nms_Material_setAlwaysHarvested($this) { - $this.$field_85159_M = 1; - return $this; -} -function nms_Material_isAlwaysHarvested($this) { - return $this.$field_85159_M; -} -function nms_Material__clinit_() { - var var$1, var$2; - var$1 = new nms_MaterialTransparent; - var$2 = nms_MapColor_airColor; - nms_Material_$callClinit(); - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$replaceable = 1; - nms_Material_air = var$1; - var$1 = new nms_Material; - var$2 = nms_MapColor_grassColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - nms_Material_grass = var$1; - var$1 = new nms_Material; - var$2 = nms_MapColor_dirtColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - nms_Material_ground = var$1; - var$1 = new nms_Material; - var$2 = nms_MapColor_woodColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$canBurn = 1; - nms_Material_wood = var$1; - var$1 = new nms_Material; - var$2 = nms_MapColor_stoneColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$requiresNoTool = 0; - nms_Material_rock = var$1; - var$1 = new nms_Material; - var$2 = nms_MapColor_ironColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$requiresNoTool = 0; - nms_Material_iron = var$1; - var$1 = new nms_Material; - var$2 = nms_MapColor_ironColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$requiresNoTool = 0; - var$1.$mobilityFlag = 2; - nms_Material_anvil = var$1; - var$1 = new nms_MaterialLiquid; - var$2 = nms_MapColor_waterColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$replaceable = 1; - var$1.$mobilityFlag = 1; - var$1.$mobilityFlag = 1; - nms_Material_water = var$1; - var$1 = new nms_MaterialLiquid; - var$2 = nms_MapColor_tntColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$replaceable = 1; - var$1.$mobilityFlag = 1; - var$1.$mobilityFlag = 1; - nms_Material_lava = var$1; - var$1 = new nms_Material; - var$2 = nms_MapColor_foliageColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$canBurn = 1; - var$1.$isTranslucent = 1; - var$1.$mobilityFlag = 1; - nms_Material_leaves = var$1; - var$1 = new nms_MaterialLogic; - var$2 = nms_MapColor_foliageColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$field_85159_M = 1; - var$1.$mobilityFlag = 1; - nms_Material_plants = var$1; - var$1 = new nms_MaterialLogic; - var$2 = nms_MapColor_foliageColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$field_85159_M = 1; - var$1.$canBurn = 1; - var$1.$mobilityFlag = 1; - var$1.$replaceable = 1; - nms_Material_vine = var$1; - var$1 = new nms_Material; - var$2 = nms_MapColor_clothColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - nms_Material_sponge = var$1; - var$1 = new nms_Material; - var$2 = nms_MapColor_clothColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - var$1.$canBurn = 1; - nms_Material_cloth = var$1; - var$1 = new nms_MaterialTransparent; - var$2 = nms_MapColor_airColor; - var$1.$requiresNoTool = 1; - var$1.$materialMapColor = var$2; - nms_Material_setReplaceable(var$1); - nms_Material_fire = nms_Material_setNoPushMobility(var$1); - nms_Material_sand = nms_Material__init_(nms_MapColor_sandColor); - nms_Material_circuits = nms_Material_setNoPushMobility(nms_MaterialLogic__init_(nms_MapColor_airColor)); - nms_Material_glass = nms_Material_setAlwaysHarvested(nms_Material_setTranslucent(nms_Material__init_(nms_MapColor_airColor))); - nms_Material_redstoneLight = nms_Material_setAlwaysHarvested(nms_Material__init_(nms_MapColor_airColor)); - nms_Material_tnt = nms_Material_setTranslucent(nms_Material_setBurning(nms_Material__init_(nms_MapColor_tntColor))); - nms_Material_coral = nms_Material_setNoPushMobility(nms_Material__init_(nms_MapColor_foliageColor)); - nms_Material_ice = nms_Material_setAlwaysHarvested(nms_Material_setTranslucent(nms_Material__init_(nms_MapColor_iceColor))); - nms_Material_snow = nms_Material_setNoPushMobility(nms_Material_setRequiresTool(nms_Material_setTranslucent(nms_Material_setReplaceable(nms_MaterialLogic__init_(nms_MapColor_snowColor))))); - nms_Material_craftedSnow = nms_Material_setRequiresTool(nms_Material__init_(nms_MapColor_snowColor)); - nms_Material_cactus = nms_Material_setNoPushMobility(nms_Material_setTranslucent(nms_Material__init_(nms_MapColor_foliageColor))); - nms_Material_clay = nms_Material__init_(nms_MapColor_clayColor); - nms_Material_pumpkin = nms_Material_setNoPushMobility(nms_Material__init_(nms_MapColor_foliageColor)); - nms_Material_dragonEgg = nms_Material_setNoPushMobility(nms_Material__init_(nms_MapColor_foliageColor)); - nms_Material_portal = nms_Material_setImmovableMobility(nms_MaterialPortal__init_(nms_MapColor_airColor)); - nms_Material_cake = nms_Material_setNoPushMobility(nms_Material__init_(nms_MapColor_airColor)); - nms_Material_web = nms_Material_setNoPushMobility(nms_Material_setRequiresTool(nms_MaterialWeb__init_(nms_MapColor_clothColor))); - nms_Material_piston = nms_Material_setImmovableMobility(nms_Material__init_(nms_MapColor_stoneColor)); -} -function nms_ItemBucket() { - nms_Item.call(this); - this.$isFull = 0; -} -function nms_ItemBucket__init_(var_0, var_1) { - var var_2 = new nms_ItemBucket(); - nms_ItemBucket__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemBucket__init_0($this, $par1, $par2) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; - $this.$isFull = $par2; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; -} -function nms_ItemBucket_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $var5, $var7, $var9, $var12, $var13, $var14, $var15, $var11, var$12, var$13, var$14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();$var11 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$par3EntityPlayer = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = $par3EntityPlayer.$prevPosX + ($par3EntityPlayer.$posX - $par3EntityPlayer.$prevPosX) * 1.0; - $var7 = $par3EntityPlayer.$prevPosY + ($par3EntityPlayer.$posY - $par3EntityPlayer.$prevPosY) * 1.0 + 1.62 - $par3EntityPlayer.$yOffset0; - $var9 = $par3EntityPlayer.$prevPosZ + ($par3EntityPlayer.$posZ - $par3EntityPlayer.$prevPosZ) * 1.0; - $var12 = nms_Item_getMovingObjectPositionFromPlayer($this, $par2World, $par3EntityPlayer, $this.$isFull ? 0 : 1); - if ($var12 === null) - return $par1ItemStack; - a: { - if ($var12.$typeOfHit !== nms_EnumMovingObjectType_TILE) { - if ($this.$isFull) - break a; - if (!($var12.$entityHit instanceof nms_EntityCow)) - break a; - return nms_ItemStack__init_2(nms_Item_bucketMilk); - } - $var13 = $var12.$blockX; - $var14 = $var12.$blockY; - $var15 = $var12.$blockZ; - if ($this.$isFull) { - if ($this.$isFull < 0) - return nms_ItemStack__init_2(nms_Item_bucketEmpty); - if (!$var12.$sideHit) - $var14 = $var14 + (-1) | 0; - if ($var12.$sideHit == 1) - $var14 = $var14 + 1 | 0; - if ($var12.$sideHit == 2) - $var15 = $var15 + (-1) | 0; - if ($var12.$sideHit == 3) - $var15 = $var15 + 1 | 0; - if ($var12.$sideHit == 4) - $var13 = $var13 + (-1) | 0; - if ($var12.$sideHit == 5) - $var13 = $var13 + 1 | 0; - if (!nms_EntityPlayer_canPlayerEdit($par3EntityPlayer, $var13, $var14, $var15, $var12.$sideHit, $par1ItemStack)) - return $par1ItemStack; - $ptr = 3; - continue main; - } - if (!($par3EntityPlayer.$capabilities.$allowEdit ? 1 : $par1ItemStack === null ? 0 : 1)) - return $par1ItemStack; - $var11 = nms_World_getBlockId($par2World, $var13, $var14, $var15); - if (!$var11) { - nms_Material_$callClinit(); - var$12 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$12 = nms_Block_blocksList.data[$var11].$blockMaterial; - } - nms_Material_$callClinit(); - if (var$12 === nms_Material_water && !nms_World_getBlockMetadata($par2World, $var13, $var14, $var15)) { - $var11 = 0; - var$13 = 0; - var$14 = 3; - $ptr = 1; - continue main; - } - $var11 = nms_World_getBlockId($par2World, $var13, $var14, $var15); - if (!$var11) - var$12 = nms_Material_air; - else { - nms_Block_$callClinit(); - var$12 = nms_Block_blocksList.data[$var11].$blockMaterial; - } - if (var$12 === nms_Material_lava && !nms_World_getBlockMetadata($par2World, $var13, $var14, $var15)) { - $ptr = 2; - continue main; - } - } - return $par1ItemStack; - case 1: - nms_World_setBlock($par2World, $var13, $var14, $var15, $var11, var$13, var$14); - if ($rt_suspending()) { - break main; - } - if ($par3EntityPlayer.$capabilities.$isCreativeMode) - return $par1ItemStack; - $var11 = $par1ItemStack.$stackSize - 1 | 0; - $par1ItemStack.$stackSize = $var11; - if ($var11 <= 0) - return nms_ItemStack__init_4(nms_Item_bucketWater.$itemID, 1, 0); - $par2World = $par3EntityPlayer.$inventory; - $var12 = new nms_ItemStack; - $var14 = nms_Item_bucketWater.$itemID; - $var12.$stackSize = 0; - $var12.$itemFrame = null; - $var12.$itemID0 = $var14; - $var12.$stackSize = 1; - $var12.$itemDamage = 0; - if ($var12.$itemDamage < 0) - $var12.$itemDamage = 0; - if (!nms_InventoryPlayer_addItemStackToInventory($par2World, $var12)) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par3EntityPlayer, nms_ItemStack__init_4(nms_Item_bucketWater.$itemID, 1, 0), 0); - return $par1ItemStack; - case 2: - nms_World_setBlockToAir($par2World, $var13, $var14, $var15); - if ($rt_suspending()) { - break main; - } - if ($par3EntityPlayer.$capabilities.$isCreativeMode) - return $par1ItemStack; - $var11 = $par1ItemStack.$stackSize - 1 | 0; - $par1ItemStack.$stackSize = $var11; - if ($var11 <= 0) - return nms_ItemStack__init_2(nms_Item_bucketLava); - if (!nms_InventoryPlayer_addItemStackToInventory($par3EntityPlayer.$inventory, nms_ItemStack__init_2(nms_Item_bucketLava))) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par3EntityPlayer, nms_ItemStack__init_4(nms_Item_bucketLava.$itemID, 1, 0), 0); - return $par1ItemStack; - case 3: - $tmp = nms_ItemBucket_tryPlaceContainedLiquid($this, $par2World, $var5, $var7, $var9, $var13, $var14, $var15); - if ($rt_suspending()) { - break main; - } - $var11 = $tmp; - if ($var11 && !$par3EntityPlayer.$capabilities.$isCreativeMode) - return nms_ItemStack__init_2(nms_Item_bucketEmpty); - return $par1ItemStack; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3EntityPlayer, $var5, $var7, $var9, $var12, $var13, $var14, $var15, $var11, var$12, var$13, var$14, $ptr); -} -function nms_ItemBucket_tryPlaceContainedLiquid($this, $par1World, $par2, $par4, $par6, $par8, $par9, $par10) { - var $var11, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$isFull <= 0) - return 0; - if (!(nms_World_getBlockId($par1World, $par8, $par9, $par10) ? 0 : 1)) { - $var11 = nms_World_getBlockId($par1World, $par8, $par9, $par10); - if (!$var11) { - nms_Material_$callClinit(); - var$9 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[$var11].$blockMaterial; - } - if (var$9.$isSolid()) - return 0; - } - if ($par1World.$provider.$isHellWorld) { - $var11 = $this.$isFull; - nms_Block_$callClinit(); - if ($var11 == nms_Block_waterMoving.$blockID) { - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par4 + 0.5, $par6 + 0.5, $rt_s(677), 0.5, 2.5999999046325684 + (Math.random() - Math.random()) * 0.800000011920929); - $var11 = 0; - $par4 = $par8; - var$10 = $par9; - var$11 = $par10; - while ($var11 < 8) { - var$12 = $rt_s(715); - $par6 = $par4 + jl_Math_randomImpl(); - var$13 = var$10 + jl_Math_randomImpl(); - var$14 = var$11 + jl_Math_randomImpl(); - var$15 = 0.0; - var$16 = 0.0; - $par2 = 0.0; - $par9 = 0; - if ($par9 < $par1World.$worldAccesses.$size0) { - var$9 = $par1World.$worldAccesses; - if ($par9 >= 0 && $par9 < var$9.$size0) { - var$9 = var$9.$array1.data[$par9]; - $ptr = 2; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var11 = $var11 + 1 | 0; - } - return 1; - } - } - $var11 = $this.$isFull; - var$17 = 0; - var$18 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par8, $par9, $par10, $var11, var$17, var$18); - if ($rt_suspending()) { - break main; - } - return 1; - case 2: - nms_RenderGlobal_doSpawnParticle(var$9, var$12, $par6, var$13, var$14, var$15, var$16, $par2); - if ($rt_suspending()) { - break main; - } - $par9 = $par9 + 1 | 0; - while (true) { - if ($par9 < $par1World.$worldAccesses.$size0) { - var$9 = $par1World.$worldAccesses; - if ($par9 >= 0 && $par9 < var$9.$size0) { - var$9 = var$9.$array1.data[$par9]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var11 = $var11 + 1 | 0; - if ($var11 >= 8) - break; - var$12 = $rt_s(715); - $par6 = $par4 + jl_Math_randomImpl(); - var$13 = var$10 + jl_Math_randomImpl(); - var$14 = var$11 + jl_Math_randomImpl(); - var$15 = 0.0; - var$16 = 0.0; - $par2 = 0.0; - $par9 = 0; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par4, $par6, $par8, $par9, $par10, $var11, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, $ptr); -} -function nms_BlockFluid() { - nms_Block.call(this); - this.$theIcon3 = null; -} -function nms_BlockFluid_getBlockColor($this) { - return 16777215; -} -function nms_BlockFluid_colorMultiplier($this, $par1IBlockAccess, $par2, $par3, $par4) { - var var$5, $var5, $var6, $var7, $var8, $var9, $var10; - var$5 = $this.$blockMaterial; - nms_Material_$callClinit(); - if (var$5 !== nms_Material_water) - return 16777215; - $var5 = 0; - $var6 = 0; - $var7 = 0; - $var8 = (-1); - while ($var8 <= 1) { - $var9 = (-1); - while ($var9 <= 1) { - $var10 = $par1IBlockAccess.$getBiomeGenForCoords($par2 + $var9 | 0, $par4 + $var8 | 0).$waterColorMultiplier; - $var5 = $var5 + (($var10 & 16711680) >> 16) | 0; - $var6 = $var6 + (($var10 & 65280) >> 8) | 0; - $var7 = $var7 + ($var10 & 255) | 0; - $var9 = $var9 + 1 | 0; - } - $var8 = $var8 + 1 | 0; - } - return (($var5 / 9 | 0) & 255) << 16 | (($var6 / 9 | 0) & 255) << 8 | ($var7 / 9 | 0) & 255; -} -function nms_BlockFluid_getFluidHeightPercent($par0) { - if ($par0 >= 8) - $par0 = 0; - return ($par0 + 1 | 0) / 9.0; -} -function nms_BlockFluid_getIcon($this, $par1, $par2) { - return $par1 && $par1 != 1 ? $this.$theIcon3.data[1] : $this.$theIcon3.data[0]; -} -function nms_BlockFluid_getEffectiveFlowDecay($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5; - if ($par1IBlockAccess.$getBlockMaterial($par2, $par3, $par4) !== $this.$blockMaterial) - return (-1); - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - if ($var5 >= 8) - $var5 = 0; - return $var5; -} -function nms_BlockFluid_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockFluid_isOpaqueCube($this) { - return 0; -} -function nms_BlockFluid_canCollideCheck($this, $par1, $par2) { - return $par2 && !$par1 ? 1 : 0; -} -function nms_BlockFluid_isBlockSolid($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - $var6 = $par1IBlockAccess.$getBlockMaterial($par2, $par3, $par4); - if ($var6 === $this.$blockMaterial) - $par2 = 0; - else if ($par5 == 1) - $par2 = 1; - else { - nms_Material_$callClinit(); - $par2 = $var6 === nms_Material_ice ? 0 : $par1IBlockAccess.$getBlockMaterial($par2, $par3, $par4).$isSolid(); - } - return $par2; -} -function nms_BlockFluid_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - $var6 = $par1IBlockAccess.$getBlockMaterial($par2, $par3, $par4); - if ($var6 === $this.$blockMaterial) - $par2 = 0; - else if ($par5 == 1) - $par2 = 1; - else { - nms_Material_$callClinit(); - $par2 = $var6 !== nms_Material_ice ? nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) : 0; - } - return $par2; -} -function nms_BlockFluid_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockFluid_getRenderType($this) { - return 4; -} -function nms_BlockFluid_idDropped($this, $par1, $par2Random, $par3) { - return 0; -} -function nms_BlockFluid_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockFluid_getFlowVector($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var7, var$8, var$9, $var13, var$11, var$12, var$13, $var11, $var12, var$16, var$17, var$18, var$19; - $var5 = nms_Vec3Pool_getVecFromPool($par1IBlockAccess.$getWorldVec3Pool(), 0.0, 0.0, 0.0); - if ($par1IBlockAccess.$getBlockMaterial($par2, $par3, $par4) !== $this.$blockMaterial) - $var6 = (-1); - else { - $var6 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - if ($var6 >= 8) - $var6 = 0; - } - $var7 = 0; - var$8 = $par2 - 1 | 0; - var$9 = $par4 - 1 | 0; - $var13 = $par3 - 1 | 0; - var$11 = $par3 - $par3 | 0; - while ($var7 < 4) { - var$12 = !$var7 ? var$8 : $par2; - var$13 = $var7 == 1 ? var$9 : $par4; - if ($var7 == 2) - var$12 = var$12 + 1 | 0; - if ($var7 == 3) - var$13 = var$13 + 1 | 0; - if ($par1IBlockAccess.$getBlockMaterial(var$12, $par3, var$13) !== $this.$blockMaterial) - $var11 = (-1); - else { - $var11 = $par1IBlockAccess.$getBlockMetadata(var$12, $par3, var$13); - if ($var11 >= 8) - $var11 = 0; - } - if ($var11 >= 0) { - if ($var11 >= 0) { - $var12 = $var11 - $var6 | 0; - var$16 = $rt_imul(var$12 - $par2 | 0, $var12); - var$17 = $rt_imul(var$11, $var12); - var$18 = $rt_imul(var$13 - $par4 | 0, $var12); - $var5 = nms_Vec3Pool_getVecFromPool($var5.$myVec3LocalPool, $var5.$xCoord + var$16, $var5.$yCoord + var$17, $var5.$zCoord + var$18); - } - } else if (!$par1IBlockAccess.$getBlockMaterial(var$12, $par3, var$13).$blocksMovement()) { - if ($par1IBlockAccess.$getBlockMaterial(var$12, $var13, var$13) !== $this.$blockMaterial) - $var12 = (-1); - else { - $var12 = $par1IBlockAccess.$getBlockMetadata(var$12, $var13, var$13); - if ($var12 >= 8) - $var12 = 0; - } - if ($var12 >= 0) { - $var12 = $var12 - ($var6 - 8 | 0) | 0; - var$19 = $rt_imul(var$12 - $par2 | 0, $var12); - var$18 = $rt_imul(var$11, $var12); - var$16 = $rt_imul(var$13 - $par4 | 0, $var12); - $var5 = nms_Vec3Pool_getVecFromPool($var5.$myVec3LocalPool, $var5.$xCoord + var$19, $var5.$yCoord + var$18, $var5.$zCoord + var$16); - } - } - $var7 = $var7 + 1 | 0; - } - if ($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) >= 8) { - $var13 = 0; - if (nms_BlockFluid_isBlockSolid($this, $par1IBlockAccess, $par2, $par3, var$9, 2)) - $var13 = 1; - if (!(!$var13 && !nms_BlockFluid_isBlockSolid($this, $par1IBlockAccess, $par2, $par3, $par4 + 1 | 0, 3))) - $var13 = 1; - if (!(!$var13 && !nms_BlockFluid_isBlockSolid($this, $par1IBlockAccess, var$8, $par3, $par4, 4))) - $var13 = 1; - if (!(!$var13 && !nms_BlockFluid_isBlockSolid($this, $par1IBlockAccess, $par2 + 1 | 0, $par3, $par4, 5))) - $var13 = 1; - if (!(!$var13 && !nms_BlockFluid_isBlockSolid($this, $par1IBlockAccess, $par2, $par3 + 1 | 0, var$9, 2))) - $var13 = 1; - if (!(!$var13 && !nms_BlockFluid_isBlockSolid($this, $par1IBlockAccess, $par2, $par3 + 1 | 0, $par4 + 1 | 0, 3))) - $var13 = 1; - if (!(!$var13 && !nms_BlockFluid_isBlockSolid($this, $par1IBlockAccess, var$8, $par3 + 1 | 0, $par4, 4))) - $var13 = 1; - if (!(!$var13 && !nms_BlockFluid_isBlockSolid($this, $par1IBlockAccess, $par2 + 1 | 0, $par3 + 1 | 0, $par4, 5))) - $var13 = 1; - if ($var13) { - $par1IBlockAccess = nms_Vec3_normalize($var5); - $var5 = nms_Vec3Pool_getVecFromPool($par1IBlockAccess.$myVec3LocalPool, $par1IBlockAccess.$xCoord + 0.0, $par1IBlockAccess.$yCoord + (-6.0), $par1IBlockAccess.$zCoord + 0.0); - } - } - return nms_Vec3_normalize($var5); -} -function nms_BlockFluid_velocityToAddToEntity($this, $par1World, $par2, $par3, $par4, $par5Entity, $par6Vec3) { - var $var7; - $var7 = nms_BlockFluid_getFlowVector($this, $par1World, $par2, $par3, $par4); - $par6Vec3.$xCoord = $par6Vec3.$xCoord + $var7.$xCoord; - $par6Vec3.$yCoord = $par6Vec3.$yCoord + $var7.$yCoord; - $par6Vec3.$zCoord = $par6Vec3.$zCoord + $var7.$zCoord; -} -function nms_BlockFluid_tickRate($this, $par1World) { - var var$2; - var$2 = $this.$blockMaterial; - nms_Material_$callClinit(); - return var$2 === nms_Material_water ? 5 : $this.$blockMaterial !== nms_Material_lava ? 0 : !$par1World.$provider.$hasNoSky ? 30 : 10; -} -function nms_BlockFluid_getMixedBrightnessForBlock($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10; - $var5 = $par1IBlockAccess.$getLightBrightnessForSkyBlocks($par2, $par3, $par4, 0); - $var6 = $par1IBlockAccess.$getLightBrightnessForSkyBlocks($par2, $par3 + 1 | 0, $par4, 0); - $var7 = $var5 & 255; - $var8 = $var6 & 255; - $var9 = $var5 >> 16 & 255; - $var10 = $var6 >> 16 & 255; - if ($var7 > $var8) - $var8 = $var7; - if ($var9 > $var10) - $var10 = $var9; - return $var8 | $var10 << 16; -} -function nms_BlockFluid_getBlockBrightness($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = $par1IBlockAccess.$getLightBrightness($par2, $par3, $par4); - $var6 = $par1IBlockAccess.$getLightBrightness($par2, $par3 + 1 | 0, $par4); - if ($var5 > $var6) - $var6 = $var5; - return $var6; -} -function nms_BlockFluid_getRenderBlockPass($this) { - var var$1; - var$1 = $this.$blockMaterial; - nms_Material_$callClinit(); - return var$1 !== nms_Material_water ? 0 : 1; -} -function nms_BlockFluid_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var var$6, $var6, $var6_0, var$9, var$10, var$11, var$12, var$13, var$14, $var21, $var23, $var22, $var21_0, $var23_0, $var7, var$21, var$22, var$23, var$24, var$25, $var22_0, var$27, $var10, $var19, $var11, $var13, $var15, $var17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var17 = $thread.pop();$var15 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var19 = $thread.pop();$var10 = $thread.pop();var$27 = $thread.pop();$var22_0 = $thread.pop();var$25 = $thread.pop();var$24 = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var7 = $thread.pop();$var23_0 = $thread.pop();$var21_0 = $thread.pop();$var22 = $thread.pop();$var23 = $thread.pop();$var21 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 - = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var6_0 = $thread.pop();$var6 = $thread.pop();var$6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - b: { - c: { - var$6 = $this.$blockMaterial; - nms_Material_$callClinit(); - if (var$6 === nms_Material_water) { - if (!ju_Random_nextInt0($par5Random, 10)) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if ($var6 <= 0) - break a; - if ($var6 >= 8) - break a; - } - $var6_0 = 0; - var$9 = $par2 - 1 | 0; - var$10 = $par4 - 1 | 0; - var$11 = $par3 - 1 | 0; - var$12 = $par2; - var$13 = $par3; - var$14 = $par4; - $var21 = var$12 - 0.0625; - $var23 = ($par2 + 1 | 0) + 0.0625; - $var22 = var$14 - 0.0625; - $var21_0 = ($par4 + 1 | 0) + 0.0625; - $var23_0 = (-0.0625); - while (true) { - if ($var6_0 >= 0) - break c; - $var7 = ju_Random_nextInt0($par5Random, 4); - var$21 = !$var7 ? var$9 : $par2; - var$22 = $rt_compare($var7, 1); - if (!var$22) - var$21 = var$21 + 1 | 0; - var$23 = $rt_compare($var7, 2); - var$24 = !var$23 ? var$10 : $par4; - var$25 = $rt_compare($var7, 3); - if (!var$25) - var$24 = var$24 + 1 | 0; - if (nms_World_getBlockMaterial($par1World, var$21, $par3, var$24) === nms_Material_air) { - if (nms_World_getBlockMaterial($par1World, var$21, var$11, var$24).$blocksMovement()) - break b; - if (nms_World_getBlockMaterial($par1World, var$21, var$11, var$24).$isLiquid()) - break b; - } - $var6_0 = $var6_0 + 1 | 0; - } - } - } - if ($this.$blockMaterial === nms_Material_water && !ju_Random_nextInt0($par5Random, 64)) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if ($var6 > 0 && $var6 < 8) { - $var21 = $par2 + 0.5; - $var22_0 = $par3 + 0.5; - $var23_0 = $par4 + 0.5; - var$27 = $rt_s(1908); - $var10 = ju_Random_nextFloat($par5Random) * 0.25 + 0.75; - var$12 = ju_Random_nextFloat($par5Random) * 1.0 + 0.5; - $var6 = 0; - $ptr = 2; - continue main; - } - } - if ($this.$blockMaterial === nms_Material_lava) { - $var6 = $par3 + 1 | 0; - if (nms_World_getBlockMaterial($par1World, $par2, $var6, $par4) === nms_Material_air && !nms_World_isBlockOpaqueCube($par1World, $par2, $var6, $par4)) { - if (!ju_Random_nextInt0($par5Random, 100)) { - $var21 = $par2 + ju_Random_nextFloat($par5Random); - $var22_0 = $par3 + $this.$maxY0; - $var23_0 = $par4 + ju_Random_nextFloat($par5Random); - var$27 = $rt_s(859); - $var19 = 0.0; - $var21_0 = 0.0; - $var22 = 0.0; - $ptr = 3; - continue main; - } - if (!ju_Random_nextInt0($par5Random, 200)) { - $var21 = $par2; - $var22_0 = $par3; - $var23_0 = $par4; - var$27 = $rt_s(1909); - $var10 = 0.20000000298023224 + ju_Random_nextFloat($par5Random) * 0.20000000298023224; - var$12 = 0.8999999761581421 + ju_Random_nextFloat($par5Random) * 0.15000000596046448; - $var6 = 0; - $ptr = 7; - continue main; - } - } - } - if (!ju_Random_nextInt0($par5Random, 10) && nms_World_doesBlockHaveSolidTopSurface($par1World, $par2, $par3 - 1 | 0, $par4) && !nms_World_getBlockMaterial($par1World, $par2, $par3 - 2 | 0, $par4).$blocksMovement()) { - $var21_0 = $par2 + ju_Random_nextFloat($par5Random); - $var22 = $par3 - 1.05; - $var23 = $par4 + ju_Random_nextFloat($par5Random); - if ($this.$blockMaterial !== nms_Material_water) { - $par5Random = $rt_s(865); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 5; - continue main; - } - $par5Random = $rt_s(864); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 6; - continue main; - } - return; - } - $var11 = var$12 + ju_Random_nextFloat($par5Random); - $var13 = var$13 + ju_Random_nextFloat($par5Random); - $var15 = var$14 + ju_Random_nextFloat($par5Random); - if (!$var7) - $var11 = $var21; - if (!var$22) - $var11 = $var23; - if (!var$23) - $var15 = $var22; - if (!var$25) - $var15 = $var21_0; - $var17 = 0.0; - $var19 = 0.0; - if (!$var7) - $var17 = $var23_0; - if (!var$22) - $var17 = 0.0625; - if (!var$23) - $var19 = $var23_0; - if (!var$25) - $var19 = 0.0625; - var$27 = $rt_s(679); - $var22_0 = 0.0; - $ptr = 8; - continue main; - } - var$27 = $rt_s(847); - $var21 = $par2 + ju_Random_nextFloat($par5Random); - $var22_0 = $par3 + ju_Random_nextFloat($par5Random); - $var23_0 = $par4 + ju_Random_nextFloat($par5Random); - $var19 = 0.0; - $var21_0 = 0.0; - $var22 = 0.0; - $ptr = 1; - case 1: - nms_World_spawnParticle($par1World, var$27, $var21, $var22_0, $var23_0, $var19, $var21_0, $var22); - if ($rt_suspending()) { - break main; - } - $var6_0 = 0; - var$9 = $par2 - 1 | 0; - var$10 = $par4 - 1 | 0; - var$11 = $par3 - 1 | 0; - var$12 = $par2; - var$13 = $par3; - var$14 = $par4; - $var21 = var$12 - 0.0625; - $var23 = ($par2 + 1 | 0) + 0.0625; - $var22 = var$14 - 0.0625; - $var21_0 = ($par4 + 1 | 0) + 0.0625; - $var23_0 = (-0.0625); - a: { - while ($var6_0 < 0) { - $var7 = ju_Random_nextInt0($par5Random, 4); - var$21 = !$var7 ? var$9 : $par2; - var$22 = $rt_compare($var7, 1); - if (!var$22) - var$21 = var$21 + 1 | 0; - var$23 = $rt_compare($var7, 2); - var$24 = !var$23 ? var$10 : $par4; - var$25 = $rt_compare($var7, 3); - if (!var$25) - var$24 = var$24 + 1 | 0; - if (nms_World_getBlockMaterial($par1World, var$21, $par3, var$24) === nms_Material_air) { - if (nms_World_getBlockMaterial($par1World, var$21, var$11, var$24).$blocksMovement()) - break a; - if (nms_World_getBlockMaterial($par1World, var$21, var$11, var$24).$isLiquid()) - break a; - } - $var6_0 = $var6_0 + 1 | 0; - } - if ($this.$blockMaterial === nms_Material_water && !ju_Random_nextInt0($par5Random, 64)) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if ($var6 > 0 && $var6 < 8) { - $var21 = $par2 + 0.5; - $var22_0 = $par3 + 0.5; - $var23_0 = $par4 + 0.5; - var$27 = $rt_s(1908); - $var10 = ju_Random_nextFloat($par5Random) * 0.25 + 0.75; - var$12 = ju_Random_nextFloat($par5Random) * 1.0 + 0.5; - $var6 = 0; - $ptr = 2; - continue main; - } - } - if ($this.$blockMaterial === nms_Material_lava) { - $var6 = $par3 + 1 | 0; - if (nms_World_getBlockMaterial($par1World, $par2, $var6, $par4) === nms_Material_air && !nms_World_isBlockOpaqueCube($par1World, $par2, $var6, $par4)) { - if (!ju_Random_nextInt0($par5Random, 100)) { - $var21 = $par2 + ju_Random_nextFloat($par5Random); - $var22_0 = $par3 + $this.$maxY0; - $var23_0 = $par4 + ju_Random_nextFloat($par5Random); - var$27 = $rt_s(859); - $var19 = 0.0; - $var21_0 = 0.0; - $var22 = 0.0; - $ptr = 3; - continue main; - } - if (!ju_Random_nextInt0($par5Random, 200)) { - $var21 = $par2; - $var22_0 = $par3; - $var23_0 = $par4; - var$27 = $rt_s(1909); - $var10 = 0.20000000298023224 + ju_Random_nextFloat($par5Random) * 0.20000000298023224; - var$12 = 0.8999999761581421 + ju_Random_nextFloat($par5Random) * 0.15000000596046448; - $var6 = 0; - $ptr = 7; - continue main; - } - } - } - if (!ju_Random_nextInt0($par5Random, 10) && nms_World_doesBlockHaveSolidTopSurface($par1World, $par2, $par3 - 1 | 0, $par4) && !nms_World_getBlockMaterial($par1World, $par2, $par3 - 2 | 0, $par4).$blocksMovement()) { - $var21_0 = $par2 + ju_Random_nextFloat($par5Random); - $var22 = $par3 - 1.05; - $var23 = $par4 + ju_Random_nextFloat($par5Random); - if ($this.$blockMaterial !== nms_Material_water) { - $par5Random = $rt_s(865); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 5; - continue main; - } - $par5Random = $rt_s(864); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 6; - continue main; - } - return; - } - $var11 = var$12 + ju_Random_nextFloat($par5Random); - $var13 = var$13 + ju_Random_nextFloat($par5Random); - $var15 = var$14 + ju_Random_nextFloat($par5Random); - if (!$var7) - $var11 = $var21; - if (!var$22) - $var11 = $var23; - if (!var$23) - $var15 = $var22; - if (!var$25) - $var15 = $var21_0; - $var17 = 0.0; - $var19 = 0.0; - if (!$var7) - $var17 = $var23_0; - if (!var$22) - $var17 = 0.0625; - if (!var$23) - $var19 = $var23_0; - if (!var$25) - $var19 = 0.0625; - var$27 = $rt_s(679); - $var22_0 = 0.0; - $ptr = 8; - continue main; - case 2: - nms_WorldClient_playSound($par1World, $var21, $var22_0, $var23_0, var$27, $var10, var$12, $var6); - if ($rt_suspending()) { - break main; - } - if ($this.$blockMaterial === nms_Material_lava) { - $var6 = $par3 + 1 | 0; - if (nms_World_getBlockMaterial($par1World, $par2, $var6, $par4) === nms_Material_air && !nms_World_isBlockOpaqueCube($par1World, $par2, $var6, $par4)) { - if (!ju_Random_nextInt0($par5Random, 100)) { - $var21 = $par2 + ju_Random_nextFloat($par5Random); - $var22_0 = $par3 + $this.$maxY0; - $var23_0 = $par4 + ju_Random_nextFloat($par5Random); - var$27 = $rt_s(859); - $var19 = 0.0; - $var21_0 = 0.0; - $var22 = 0.0; - $ptr = 3; - continue main; - } - if (!ju_Random_nextInt0($par5Random, 200)) { - $var21 = $par2; - $var22_0 = $par3; - $var23_0 = $par4; - var$27 = $rt_s(1909); - $var10 = 0.20000000298023224 + ju_Random_nextFloat($par5Random) * 0.20000000298023224; - var$12 = 0.8999999761581421 + ju_Random_nextFloat($par5Random) * 0.15000000596046448; - $var6 = 0; - $ptr = 7; - continue main; - } - } - } - if (!ju_Random_nextInt0($par5Random, 10) && nms_World_doesBlockHaveSolidTopSurface($par1World, $par2, $par3 - 1 | 0, $par4) && !nms_World_getBlockMaterial($par1World, $par2, $par3 - 2 | 0, $par4).$blocksMovement()) { - $var21_0 = $par2 + ju_Random_nextFloat($par5Random); - $var22 = $par3 - 1.05; - $var23 = $par4 + ju_Random_nextFloat($par5Random); - if ($this.$blockMaterial !== nms_Material_water) { - $par5Random = $rt_s(865); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 5; - continue main; - } - $par5Random = $rt_s(864); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 6; - continue main; - } - return; - case 3: - nms_World_spawnParticle($par1World, var$27, $var21, $var22_0, $var23_0, $var19, $var21_0, $var22); - if ($rt_suspending()) { - break main; - } - var$27 = $rt_s(1910); - var$12 = 0.20000000298023224 + ju_Random_nextFloat($par5Random) * 0.20000000298023224; - $var10 = 0.8999999761581421 + ju_Random_nextFloat($par5Random) * 0.15000000596046448; - $var6 = 0; - $ptr = 4; - case 4: - nms_WorldClient_playSound($par1World, $var21, $var22_0, $var23_0, var$27, var$12, $var10, $var6); - if ($rt_suspending()) { - break main; - } - if (!ju_Random_nextInt0($par5Random, 200)) { - $var21 = $par2; - $var22_0 = $par3; - $var23_0 = $par4; - var$27 = $rt_s(1909); - $var10 = 0.20000000298023224 + ju_Random_nextFloat($par5Random) * 0.20000000298023224; - var$12 = 0.8999999761581421 + ju_Random_nextFloat($par5Random) * 0.15000000596046448; - $var6 = 0; - $ptr = 7; - continue main; - } - if (!ju_Random_nextInt0($par5Random, 10) && nms_World_doesBlockHaveSolidTopSurface($par1World, $par2, $par3 - 1 | 0, $par4) && !nms_World_getBlockMaterial($par1World, $par2, $par3 - 2 | 0, $par4).$blocksMovement()) { - $var21_0 = $par2 + ju_Random_nextFloat($par5Random); - $var22 = $par3 - 1.05; - $var23 = $par4 + ju_Random_nextFloat($par5Random); - if ($this.$blockMaterial !== nms_Material_water) { - $par5Random = $rt_s(865); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 5; - continue main; - } - $par5Random = $rt_s(864); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 6; - continue main; - } - return; - case 5: - nms_World_spawnParticle($par1World, $par5Random, $var21_0, $var22, $var23, $var21, $var22_0, $var23_0); - if ($rt_suspending()) { - break main; - } - return; - case 6: - nms_World_spawnParticle($par1World, $par5Random, $var21_0, $var22, $var23, $var21, $var22_0, $var23_0); - if ($rt_suspending()) { - break main; - } - return; - case 7: - nms_WorldClient_playSound($par1World, $var21, $var22_0, $var23_0, var$27, $var10, var$12, $var6); - if ($rt_suspending()) { - break main; - } - if (!ju_Random_nextInt0($par5Random, 10) && nms_World_doesBlockHaveSolidTopSurface($par1World, $par2, $par3 - 1 | 0, $par4) && !nms_World_getBlockMaterial($par1World, $par2, $par3 - 2 | 0, $par4).$blocksMovement()) { - $var21_0 = $par2 + ju_Random_nextFloat($par5Random); - $var22 = $par3 - 1.05; - $var23 = $par4 + ju_Random_nextFloat($par5Random); - if ($this.$blockMaterial !== nms_Material_water) { - $par5Random = $rt_s(865); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 5; - continue main; - } - $par5Random = $rt_s(864); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 6; - continue main; - } - return; - case 8: - nms_World_spawnParticle($par1World, var$27, $var11, $var13, $var15, $var17, $var22_0, $var19); - if ($rt_suspending()) { - break main; - } - a: { - while (true) { - $var6_0 = $var6_0 + 1 | 0; - if ($var6_0 >= 0) - break; - $var7 = ju_Random_nextInt0($par5Random, 4); - var$21 = !$var7 ? var$9 : $par2; - var$22 = $rt_compare($var7, 1); - if (!var$22) - var$21 = var$21 + 1 | 0; - var$23 = $rt_compare($var7, 2); - var$24 = !var$23 ? var$10 : $par4; - var$25 = $rt_compare($var7, 3); - if (!var$25) - var$24 = var$24 + 1 | 0; - if (nms_World_getBlockMaterial($par1World, var$21, $par3, var$24) !== nms_Material_air) - continue; - if (nms_World_getBlockMaterial($par1World, var$21, var$11, var$24).$blocksMovement()) - break a; - if (!nms_World_getBlockMaterial($par1World, var$21, var$11, var$24).$isLiquid()) - continue; - else - break a; - } - if ($this.$blockMaterial === nms_Material_water && !ju_Random_nextInt0($par5Random, 64)) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if ($var6 > 0 && $var6 < 8) { - $var21 = $par2 + 0.5; - $var22_0 = $par3 + 0.5; - $var23_0 = $par4 + 0.5; - var$27 = $rt_s(1908); - $var10 = ju_Random_nextFloat($par5Random) * 0.25 + 0.75; - var$12 = ju_Random_nextFloat($par5Random) * 1.0 + 0.5; - $var6 = 0; - $ptr = 2; - continue main; - } - } - if ($this.$blockMaterial === nms_Material_lava) { - $var6 = $par3 + 1 | 0; - if (nms_World_getBlockMaterial($par1World, $par2, $var6, $par4) === nms_Material_air && !nms_World_isBlockOpaqueCube($par1World, $par2, $var6, $par4)) { - if (!ju_Random_nextInt0($par5Random, 100)) { - $var21 = $par2 + ju_Random_nextFloat($par5Random); - $var22_0 = $par3 + $this.$maxY0; - $var23_0 = $par4 + ju_Random_nextFloat($par5Random); - var$27 = $rt_s(859); - $var19 = 0.0; - $var21_0 = 0.0; - $var22 = 0.0; - $ptr = 3; - continue main; - } - if (!ju_Random_nextInt0($par5Random, 200)) { - $var21 = $par2; - $var22_0 = $par3; - $var23_0 = $par4; - var$27 = $rt_s(1909); - $var10 = 0.20000000298023224 + ju_Random_nextFloat($par5Random) * 0.20000000298023224; - var$12 = 0.8999999761581421 + ju_Random_nextFloat($par5Random) * 0.15000000596046448; - $var6 = 0; - $ptr = 7; - continue main; - } - } - } - if (!ju_Random_nextInt0($par5Random, 10) && nms_World_doesBlockHaveSolidTopSurface($par1World, $par2, $par3 - 1 | 0, $par4) && !nms_World_getBlockMaterial($par1World, $par2, $par3 - 2 | 0, $par4).$blocksMovement()) { - $var21_0 = $par2 + ju_Random_nextFloat($par5Random); - $var22 = $par3 - 1.05; - $var23 = $par4 + ju_Random_nextFloat($par5Random); - if ($this.$blockMaterial !== nms_Material_water) { - $par5Random = $rt_s(865); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 5; - continue main; - } - $par5Random = $rt_s(864); - $var21 = 0.0; - $var22_0 = 0.0; - $var23_0 = 0.0; - $ptr = 6; - continue main; - } - return; - } - $var11 = var$12 + ju_Random_nextFloat($par5Random); - $var13 = var$13 + ju_Random_nextFloat($par5Random); - $var15 = var$14 + ju_Random_nextFloat($par5Random); - if (!$var7) - $var11 = $var21; - if (!var$22) - $var11 = $var23; - if (!var$23) - $var15 = $var22; - if (!var$25) - $var15 = $var21_0; - $var17 = 0.0; - $var19 = 0.0; - if (!$var7) - $var17 = $var23_0; - if (!var$22) - $var17 = 0.0625; - if (!var$23) - $var19 = $var23_0; - if (!var$25) - $var19 = 0.0625; - var$27 = $rt_s(679); - $var22_0 = 0.0; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, var$6, $var6, $var6_0, var$9, var$10, var$11, var$12, var$13, var$14, $var21, $var23, $var22, $var21_0, $var23_0, $var7, var$21, var$22, var$23, var$24, var$25, $var22_0, var$27, $var10, $var19, $var11, $var13, $var15, $var17, $ptr); -} -function nms_BlockFluid_getFlowDirection($par0IBlockAccess, $par1, $par2, $par3, $par4Material) { - var $var5; - $var5 = null; - nms_Material_$callClinit(); - if ($par4Material === nms_Material_water) { - nms_Block_$callClinit(); - $var5 = nms_BlockFluid_getFlowVector(nms_Block_waterMoving, $par0IBlockAccess, $par1, $par2, $par3); - } - if ($par4Material === nms_Material_lava) { - nms_Block_$callClinit(); - $var5 = nms_BlockFluid_getFlowVector(nms_Block_lavaMoving, $par0IBlockAccess, $par1, $par2, $par3); - } - return $var5.$xCoord === 0.0 && $var5.$zCoord === 0.0 ? (-1000.0) : jl_Math_atan2($var5.$zCoord, $var5.$xCoord) - 1.5707963267948966; -} -function nms_BlockFluid_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockFluid_checkForHarden($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $ptr); -} -function nms_BlockFluid_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockFluid_checkForHarden($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $ptr); -} -function nms_BlockFluid_checkForHarden($this, $par1World, $par2, $par3, $par4) { - var var$5, $var5, $var6, 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();$var6 = $thread.pop();$var5 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) == $this.$blockID) { - var$5 = $this.$blockMaterial; - nms_Material_$callClinit(); - if (var$5 === nms_Material_lava) { - $var5 = 0; - $var6 = nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0); - if (!$var6) - var$8 = nms_Material_air; - else { - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$var6].$blockMaterial; - } - if (var$8 === nms_Material_water) - $var5 = 1; - a: { - if (!$var5) { - $var6 = nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0); - if (!$var6) - var$8 = nms_Material_air; - else { - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$var6].$blockMaterial; - } - if (var$8 !== nms_Material_water) - break a; - } - $var5 = 1; - } - b: { - if (!$var5) { - $var6 = nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4); - if (!$var6) - var$8 = nms_Material_air; - else { - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$var6].$blockMaterial; - } - if (var$8 !== nms_Material_water) - break b; - } - $var5 = 1; - } - c: { - if (!$var5) { - $var6 = nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4); - if (!$var6) - var$8 = nms_Material_air; - else { - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$var6].$blockMaterial; - } - if (var$8 !== nms_Material_water) - break c; - } - $var5 = 1; - } - d: { - if (!$var5) { - $var6 = nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4); - if (!$var6) - var$8 = nms_Material_air; - else { - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[$var6].$blockMaterial; - } - if (var$8 !== nms_Material_water) - break d; - } - $var5 = 1; - } - if ($var5) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if (!$var6) { - nms_Block_$callClinit(); - $var5 = nms_Block_obsidian.$blockID; - $var6 = 0; - var$9 = 3; - $ptr = 1; - continue main; - } - if ($var6 > 4) { - $ptr = 2; - continue main; - } - nms_Block_$callClinit(); - $var5 = nms_Block_cobblestone.$blockID; - $var6 = 0; - var$9 = 3; - $ptr = 3; - continue main; - } - } - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $var5, $var6, var$9); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nms_BlockFluid_triggerLavaMixEffects($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_World_setBlock($par1World, $par2, $par3, $par4, $var5, $var6, var$9); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, $var5, $var6, var$8, var$9, $ptr); -} -function nms_BlockFluid_triggerLavaMixEffects($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $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();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(677), 0.5, 2.5999999046325684 + (Math.random() - Math.random()) * 0.800000011920929); - $var5 = 0; - var$6 = $par2; - var$7 = $par3 + 1.2; - var$8 = $par4; - while ($var5 < 8) { - var$9 = $rt_s(715); - var$10 = var$6 + jl_Math_randomImpl(); - var$11 = var$8 + jl_Math_randomImpl(); - var$12 = 0.0; - var$13 = 0.0; - var$14 = 0.0; - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - var$15 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$15.$size0) { - var$15 = var$15.$array1.data[$par2]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var5 = $var5 + 1 | 0; - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$15, var$9, var$10, var$7, var$11, var$12, var$13, var$14); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - while (true) { - if ($par2 < $par1World.$worldAccesses.$size0) { - var$15 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$15.$size0) { - var$15 = var$15.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var5 = $var5 + 1 | 0; - if ($var5 >= 8) - break; - var$9 = $rt_s(715); - var$10 = var$6 + jl_Math_randomImpl(); - var$11 = var$8 + jl_Math_randomImpl(); - var$12 = 0.0; - var$13 = 0.0; - var$14 = 0.0; - $par2 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr); -} -function nms_BlockFluid_registerIcons($this, $par1IconRegister) { - var var$2, var$3, var$4; - var$2 = $this.$blockMaterial; - nms_Material_$callClinit(); - if (var$2 !== nms_Material_lava) { - var$3 = $rt_createArray(nms_Icon, 2); - var$4 = var$3.data; - var$4[0] = $par1IconRegister.$registerIcon($rt_s(613)); - var$4[1] = $par1IconRegister.$registerIcon($rt_s(1911)); - $this.$theIcon3 = var$3; - } else { - var$3 = $rt_createArray(nms_Icon, 2); - var$4 = var$3.data; - var$4[0] = $par1IconRegister.$registerIcon($rt_s(859)); - var$4[1] = $par1IconRegister.$registerIcon($rt_s(1912)); - $this.$theIcon3 = var$3; - } -} -function nms_BlockFluid_func_94424_b($par0Str) { - if ($par0Str === $rt_s(613)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_waterMoving.$theIcon3.data[0]; - } else if ($par0Str === $rt_s(1911)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_waterMoving.$theIcon3.data[1]; - } else if ($par0Str === $rt_s(859)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_lavaMoving.$theIcon3.data[0]; - } else if ($par0Str !== $rt_s(1912)) - $par0Str = null; - else { - nms_Block_$callClinit(); - $par0Str = nms_Block_lavaMoving.$theIcon3.data[1]; - } - return $par0Str; -} -function nms_ItemMinecart() { - nms_Item.call(this); - this.$minecartType = 0; -} -function nms_ItemMinecart__init_(var_0, var_1) { - var var_2 = new nms_ItemMinecart(); - nms_ItemMinecart__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemMinecart__init_0($this, $par1, $par2) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; - $this.$minecartType = $par2; - $this.$tabToDisplayOn = nms_CreativeTabs_tabTransport; -} -function nms_ItemMinecart_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var12; - if (!nms_BlockRailBase_isRailBlock(nms_World_getBlockId($par3World, $par4, $par5, $par6))) - return 0; - if (!$par3World.$isRemote) { - $var12 = nms_EntityMinecart_createMinecart($par3World, $par4 + 0.5, $par5 + 0.5, $par6 + 0.5, $this.$minecartType); - if (nms_ItemStack_hasDisplayName($par1ItemStack)) - $var12.$entityName = nms_ItemStack_getDisplayName($par1ItemStack); - $par4 = nms_World_spawnEntityInWorld($par3World, $var12); - $par2EntityPlayer = $par3World.$entityList; - ju_HashMap_putImpl($par2EntityPlayer.$backingMap, $var12, $par2EntityPlayer); - if (!$par4) { - $par2EntityPlayer = $par3World.$entitySpawnQueue; - ju_HashMap_putImpl($par2EntityPlayer.$backingMap, $var12, $par2EntityPlayer); - } - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; -} -function nms_ItemSaddle() { - nms_Item.call(this); -} -function nms_ItemSaddle__init_(var_0) { - var var_1 = new nms_ItemSaddle(); - nms_ItemSaddle__init_0(var_1, var_0); - return var_1; -} -function nms_ItemSaddle__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; - $this.$tabToDisplayOn = nms_CreativeTabs_tabTransport; -} -function nms_ItemSaddle_itemInteractionForEntity($this, $par1ItemStack, $par2EntityLiving) { - var $var3, var$4; - if (!($par2EntityLiving instanceof nms_EntityPig)) - return 0; - $var3 = $par2EntityLiving; - var$4 = !(nms_DataWatcher_getWatchableObjectByte($var3.$dataWatcher, 16) & 1) ? 0 : 1; - if (!var$4 && !(nms_DataWatcher_getWatchableObjectInt($var3.$dataWatcher, 12) >= 0 ? 0 : 1)) { - $par2EntityLiving = $var3.$dataWatcher; - $var3 = new jl_Byte; - $var3.$value4 = 1; - nms_DataWatcher_updateObject($par2EntityLiving, 16, $var3); - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - } - return 1; -} -function nms_ItemSaddle_hitEntity($this, $par1ItemStack, $par2EntityLiving, $par3EntityLiving) { - nms_ItemSaddle_itemInteractionForEntity($this, $par1ItemStack, $par2EntityLiving); - return 1; -} -function nms_ItemRedstone() { - nms_Item.call(this); -} -function nms_ItemRedstone__init_(var_0) { - var var_1 = new nms_ItemRedstone(); - nms_ItemRedstone__init_0(var_1, var_0); - return var_1; -} -function nms_ItemRedstone__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$tabToDisplayOn = nms_CreativeTabs_tabRedstone; -} -function nms_ItemRedstone_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - nms_Block_$callClinit(); - if (var$11 != nms_Block_snow.$blockID) { - if (!$par7) - $par5 = $par5 + (-1) | 0; - if ($par7 == 1) - $par5 = $par5 + 1 | 0; - if ($par7 == 2) - $par6 = $par6 + (-1) | 0; - if ($par7 == 3) - $par6 = $par6 + 1 | 0; - if ($par7 == 4) - $par4 = $par4 + (-1) | 0; - if ($par7 == 5) - $par4 = $par4 + 1 | 0; - if (!(nms_World_getBlockId($par3World, $par4, $par5, $par6) ? 0 : 1)) - return 0; - } - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par7 = 1; - else if ($par1ItemStack === null) - $par7 = 0; - else { - nms_Item_$callClinit(); - $par7 = 1; - } - if (!$par7) - return 0; - if (!nms_BlockRedstoneWire_canPlaceBlockAt(nms_Block_redstoneWire, $par3World, $par4, $par5, $par6)) - return 1; - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - var$12 = nms_Block_redstoneWire.$blockID; - $par7 = 0; - var$11 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par3World, $par4, $par5, $par6, var$12, $par7, var$11); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, var$11, var$12, $ptr); -} -function nms_ItemSnowball() { - nms_Item.call(this); -} -function nms_ItemSnowball__init_(var_0) { - var var_1 = new nms_ItemSnowball(); - nms_ItemSnowball__init_0(var_1, var_0); - return var_1; -} -function nms_ItemSnowball__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 16; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; -} -function nms_ItemSnowball_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var var$4, var$5; - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - nms_Item_$callClinit(); - nms_World_playSoundAtEntity($par2World, $par3EntityPlayer, $rt_s(873), 0.5, 0.4000000059604645 / (Math.random() * 0.4000000059604645 + 0.800000011920929)); - if (!$par2World.$isRemote) { - var$4 = new nms_EntitySnowball; - nms_EntityThrowable__init_2(var$4, $par2World, $par3EntityPlayer); - var$5 = nms_World_spawnEntityInWorld($par2World, var$4); - $par3EntityPlayer = $par2World.$entityList; - ju_HashMap_putImpl($par3EntityPlayer.$backingMap, var$4, $par3EntityPlayer); - if (!var$5) { - $par2World = $par2World.$entitySpawnQueue; - ju_HashMap_putImpl($par2World.$backingMap, var$4, $par2World); - } - } - return $par1ItemStack; -} -function nms_ItemBoat() { - nms_Item.call(this); -} -function nms_ItemBoat__init_(var_0) { - var var_1 = new nms_ItemBoat(); - nms_ItemBoat__init_0(var_1, var_0); - return var_1; -} -function nms_ItemBoat__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; - $this.$tabToDisplayOn = nms_CreativeTabs_tabTransport; -} -function nms_ItemBoat_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $var5, $var6, $var7, $var9, $var11, $var13, $var17, var$11, $var14, $var15, $var16, $var18, $var20, var$17, $var24, $var25, $var26, $var28, $var21, var$23, $var23, $var29, $var33, $var34, $var35, $var30, $var31; - $var5 = $par3EntityPlayer.$prevRotationPitch + ($par3EntityPlayer.$rotationPitch - $par3EntityPlayer.$prevRotationPitch) * 1.0; - $var6 = $par3EntityPlayer.$prevRotationYaw + ($par3EntityPlayer.$rotationYaw - $par3EntityPlayer.$prevRotationYaw) * 1.0; - $var7 = $par3EntityPlayer.$prevPosX + ($par3EntityPlayer.$posX - $par3EntityPlayer.$prevPosX) * 1.0; - $var9 = $par3EntityPlayer.$prevPosY + ($par3EntityPlayer.$posY - $par3EntityPlayer.$prevPosY) * 1.0 + 1.62 - $par3EntityPlayer.$yOffset0; - $var11 = $par3EntityPlayer.$prevPosZ + ($par3EntityPlayer.$posZ - $par3EntityPlayer.$prevPosZ) * 1.0; - $var13 = nms_Vec3Pool_getVecFromPool($par2World.$vecPool, $var7, $var9, $var11); - $var17 = -$var6 * 0.01745329238474369 - 3.1415927410125732; - var$11 = nms_MathHelper_SIN_TABLE.data; - $var17 = $var17 * 10430.3779296875; - $var14 = var$11[($var17 + 16384.0 | 0) & 65535]; - $var15 = nms_MathHelper_SIN_TABLE.data[($var17 | 0) & 65535]; - $var5 = -$var5 * 0.01745329238474369; - var$11 = nms_MathHelper_SIN_TABLE.data; - $var17 = $var5 * 10430.3779296875; - $var16 = -var$11[($var17 + 16384.0 | 0) & 65535]; - $var17 = nms_MathHelper_SIN_TABLE.data[($var17 | 0) & 65535]; - $var18 = $var15 * $var16; - $var20 = $var14 * $var16; - $var9 = $var18 * 5.0; - $var11 = $var17 * 5.0; - var$17 = $var20 * 5.0; - $var24 = nms_World_rayTraceBlocks_do_do($par2World, $var13, nms_Vec3Pool_getVecFromPool($var13.$myVec3LocalPool, $var13.$xCoord + $var9, $var13.$yCoord + $var11, $var13.$zCoord + var$17), 1, 0); - if ($var24 === null) - return $par1ItemStack; - $var25 = nms_EntityLiving_getLook($par3EntityPlayer, 1.0); - $var26 = 0; - $var28 = nms_AxisAlignedBB_addCoord($par3EntityPlayer.$boundingBox, $var25.$xCoord * 5.0, $var25.$yCoord * 5.0, $var25.$zCoord * 5.0); - $var7 = $var28.$minX - 1.0; - $var9 = $var28.$minY - 1.0; - $var11 = $var28.$minZ - 1.0; - $var21 = $var28.$maxX + 1.0; - var$17 = $var28.$maxY + 1.0; - var$23 = $var28.$maxZ + 1.0; - $var28 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var28.$initialized) { - $var23 = new nms_AABBPool; - $var25 = new ju_ArrayList; - ju_AbstractList__init_0($var25); - $var25.$array1 = $rt_createArray(jl_Object, 10); - $var23.$listAABB = $var25; - $var23.$nextPoolIndex = 0; - $var23.$maxPoolIndex = 0; - $var23.$numCleans = 0; - $var23.$maxNumCleans = 300; - $var23.$numEntriesToRemove = 2000; - $var28.$value7 = $var23; - $var28.$initialized = 1; - } - $var28 = nms_World_getEntitiesWithinAABBExcludingEntity($par2World, $par3EntityPlayer, nms_AABBPool_getAABB($var28.$value7, $var7, $var9, $var11, $var21, var$17, var$23), null); - $var29 = 0; - while (true) { - if ($var29 >= ju_ArrayList_size($var28)) { - if ($var26) - return $par1ItemStack; - if ($var24.$typeOfHit === nms_EnumMovingObjectType_TILE) { - $var29 = $var24.$blockX; - $var33 = $var24.$blockY; - $var34 = $var24.$blockZ; - $var26 = nms_World_getBlockId($par2World, $var29, $var33, $var34); - nms_Block_$callClinit(); - if ($var26 == nms_Block_snow.$blockID) - $var33 = $var33 + (-1) | 0; - $var35 = nms_EntityBoat__init_1($par2World, $var29 + 0.5, $var33 + 1.0, $var34 + 0.5); - $var35.$rotationYaw = ((nms_MathHelper_floor_double($par3EntityPlayer.$rotationYaw * 4.0 / 360.0 + 0.5) & 3) - 1 | 0) * 90 | 0; - if (!ju_AbstractCollection_isEmpty(nms_World_getCollidingBoundingBoxes($par2World, $var35, nms_AxisAlignedBB_expand($var35.$boundingBox, (-0.1), (-0.1), (-0.1))))) - return $par1ItemStack; - if (!$par2World.$isRemote) - nms_WorldClient_spawnEntityInWorld($par2World, $var35); - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - } - return $par1ItemStack; - } - if ($var29 < 0) - break; - if ($var29 >= $var28.$size0) - break; - $var30 = $var28.$array1.data[$var29]; - if ($var30.$canBeCollidedWith()) { - $var31 = $var30.$getCollisionBorderSize(); - $var23 = $var30.$boundingBox; - $var7 = $var31; - if (nms_AxisAlignedBB_isVecInside(nms_AxisAlignedBB_expand($var23, $var7, $var7, $var7), $var13)) - $var26 = 1; - } - $var29 = $var29 + 1 | 0; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1ItemStack); - $rt_throw($par1ItemStack); -} -function nms_ItemBucketMilk() { - nms_Item.call(this); -} -function nms_ItemBucketMilk__init_(var_0) { - var var_1 = new nms_ItemBucketMilk(); - nms_ItemBucketMilk__init_0(var_1, var_0); - return var_1; -} -function nms_ItemBucketMilk__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; -} -function nms_ItemBucketMilk_onEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var var$4; - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - if (!$par2World.$isRemote) - nms_EntityLiving_clearActivePotions($par3EntityPlayer); - if ($par1ItemStack.$stackSize <= 0) { - $par1ItemStack = new nms_ItemStack; - nms_Item_$callClinit(); - var$4 = nms_Item_bucketEmpty.$itemID; - $par1ItemStack.$stackSize = 0; - $par1ItemStack.$itemFrame = null; - $par1ItemStack.$itemID0 = var$4; - $par1ItemStack.$stackSize = 1; - $par1ItemStack.$itemDamage = 0; - if ($par1ItemStack.$itemDamage < 0) - $par1ItemStack.$itemDamage = 0; - } - return $par1ItemStack; -} -function nms_ItemBucketMilk_getMaxItemUseDuration($this, $par1ItemStack) { - return 32; -} -function nms_ItemBucketMilk_getItemUseAction($this, $par1ItemStack) { - return nms_EnumAction_drink; -} -function nms_ItemBucketMilk_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - if ($par1ItemStack !== $par3EntityPlayer.$itemInUse) { - $par3EntityPlayer.$itemInUse = $par1ItemStack; - $par3EntityPlayer.$itemInUseCount = 32; - if (!$par3EntityPlayer.$worldObj.$isRemote) - nms_Entity_setFlag($par3EntityPlayer, 4, 1); - } - return $par1ItemStack; -} -function nms_ItemBook() { - nms_Item.call(this); -} -function nms_ItemBook__init_(var_0) { - var var_1 = new nms_ItemBook(); - nms_ItemBook__init_0(var_1, var_0); - return var_1; -} -function nms_ItemBook__init_0($this, $par1) { - nms_Item__init_0($this, $par1); -} -function nms_ItemBook_isItemTool($this, $par1ItemStack) { - return $par1ItemStack.$stackSize != 1 ? 0 : 1; -} -function nms_ItemBook_getItemEnchantability($this) { - return 1; -} -function nms_ItemEgg() { - nms_Item.call(this); -} -function nms_ItemEgg__init_(var_0) { - var var_1 = new nms_ItemEgg(); - nms_ItemEgg__init_0(var_1, var_0); - return var_1; -} -function nms_ItemEgg__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 16; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMaterials; -} -function nms_ItemEgg_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var var$4, var$5; - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - nms_Item_$callClinit(); - nms_World_playSoundAtEntity($par2World, $par3EntityPlayer, $rt_s(873), 0.5, 0.4000000059604645 / (Math.random() * 0.4000000059604645 + 0.800000011920929)); - if (!$par2World.$isRemote) { - var$4 = new nms_EntityEgg; - nms_EntityThrowable__init_2(var$4, $par2World, $par3EntityPlayer); - var$5 = nms_World_spawnEntityInWorld($par2World, var$4); - $par3EntityPlayer = $par2World.$entityList; - ju_HashMap_putImpl($par3EntityPlayer.$backingMap, var$4, $par3EntityPlayer); - if (!var$5) { - $par2World = $par2World.$entitySpawnQueue; - ju_HashMap_putImpl($par2World.$backingMap, var$4, $par2World); - } - } - return $par1ItemStack; -} -function nms_ItemFishingRod() { - nms_Item.call(this); - this.$theIcon2 = null; -} -function nms_ItemFishingRod__init_(var_0) { - var var_1 = new nms_ItemFishingRod(); - nms_ItemFishingRod__init_0(var_1, var_0); - return var_1; -} -function nms_ItemFishingRod__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxDamage = 64; - $this.$maxStackSize = 1; - $this.$tabToDisplayOn = nms_CreativeTabs_tabTools; -} -function nms_ItemFishingRod_isFull3D($this) { - return 1; -} -function nms_ItemFishingRod_shouldRotateAroundWhenRendering($this) { - return 1; -} -function nms_ItemFishingRod_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var var$4, $var4, var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$var4 = $thread.pop();var$4 = $thread.pop();$par3EntityPlayer = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par3EntityPlayer.$fishEntity === null) { - nms_Item_$callClinit(); - nms_World_playSoundAtEntity($par2World, $par3EntityPlayer, $rt_s(873), 0.5, 0.4000000059604645 / (Math.random() * 0.4000000059604645 + 0.800000011920929)); - if (!$par2World.$isRemote) { - var$4 = nms_EntityFishHook__init_3($par2World, $par3EntityPlayer); - $var4 = nms_World_spawnEntityInWorld($par2World, var$4); - var$6 = $par2World.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, var$4, var$6); - if (!$var4) { - $par2World = $par2World.$entitySpawnQueue; - ju_HashMap_putImpl($par2World.$backingMap, var$4, $par2World); - } - } - nms_EntityLiving_swingItem($par3EntityPlayer); - $par2World = $par3EntityPlayer.$sendQueue; - var$4 = new nms_Packet18Animation; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$entityId1 = $par3EntityPlayer.$entityId; - var$4.$animate = 1; - if (!$par2World.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($par2World.$netManager, var$4); - return $par1ItemStack; - } - $var4 = nms_EntityFishHook_catchFish($par3EntityPlayer.$fishEntity); - $ptr = 1; - case 1: - nms_ItemStack_damageItem($par1ItemStack, $var4, $par3EntityPlayer); - if ($rt_suspending()) { - break main; - } - nms_EntityLiving_swingItem($par3EntityPlayer); - $par2World = $par3EntityPlayer.$sendQueue; - var$4 = new nms_Packet18Animation; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$entityId1 = $par3EntityPlayer.$entityId; - var$4.$animate = 1; - if (!$par2World.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($par2World.$netManager, var$4); - return $par1ItemStack; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3EntityPlayer, var$4, $var4, var$6, $ptr); -} -function nms_ItemFishingRod_registerIcons($this, $par1IconRegister) { - $this.$itemIcon = nms_TextureMap_registerIcon($par1IconRegister, $this.$unlocalizedName); - $this.$theIcon2 = nms_TextureMap_registerIcon($par1IconRegister, $rt_s(1913)); -} -function nms_ItemFishingRod_func_94597_g($this) { - return $this.$theIcon2; -} -function nms_ItemDye() { - nms_Item.call(this); - this.$field_94594_d = null; -} -var nms_ItemDye_dyeColorNames = null; -var nms_ItemDye_field_94595_b = null; -var nms_ItemDye_dyeColors = null; -function nms_ItemDye__init_(var_0) { - var var_1 = new nms_ItemDye(); - nms_ItemDye__init_0(var_1, var_0); - return var_1; -} -function nms_ItemDye__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$hasSubtypes = 1; - $this.$maxDamage = 0; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMaterials; -} -function nms_ItemDye_getIconFromDamage($this, $var2) { - var $var2_0; - $var2_0 = 0; - if ($var2 >= $var2_0) - $var2_0 = $var2 <= 15 ? $var2 : 15; - return $this.$field_94594_d.data[$var2_0]; -} -function nms_ItemDye_getUnlocalizedName($this, $par1ItemStack) { - var $var2, $var2_0, var$4, var$5; - $var2 = $par1ItemStack.$itemDamage; - $var2_0 = 0; - if ($var2 >= $var2_0) - $var2_0 = $var2 <= 15 ? $var2 : 15; - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1348)); - var$5 = $this.$unlocalizedName; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$5); - var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$5); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(303)); - var$4 = nms_ItemDye_dyeColorNames.data[$var2_0]; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$4); - return jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); -} -function nms_ItemDye_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var13, $var11, $var12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var13 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par2EntityPlayer.$capabilities.$allowEdit) - $var13 = 1; - else if ($par1ItemStack === null) - $var13 = 0; - else { - nms_Item_$callClinit(); - $var13 = 1; - } - if (!$var13) - return 0; - if ($par1ItemStack.$itemDamage == 15) { - $ptr = 1; - continue main; - } - if ($par1ItemStack.$itemDamage == 3) { - $var11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - $var12 = nms_World_getBlockMetadata($par3World, $par4, $par5, $par6); - nms_Block_$callClinit(); - if ($var11 == nms_Block_wood.$blockID && ($var12 & 3) == 3) { - if (!$par7) - return 0; - if ($par7 == 1) - return 0; - if ($par7 == 2) - $par6 = $par6 + (-1) | 0; - if ($par7 == 3) - $par6 = $par6 + 1 | 0; - if ($par7 == 4) - $par4 = $par4 + (-1) | 0; - if ($par7 == 5) - $par4 = $par4 + 1 | 0; - if (!(nms_World_getBlockId($par3World, $par4, $par5, $par6) ? 0 : 1)) - return 1; - $var13 = nms_Block_blocksList.data[nms_Block_cocoaPlant.$blockID].$onBlockPlaced($par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, 0); - $par7 = nms_Block_cocoaPlant.$blockID; - $var11 = 2; - $ptr = 3; - continue main; - } - } - return 0; - case 1: - $tmp = nms_ItemDye_func_96604_a($par1ItemStack, $par3World, $par4, $par5, $par6); - if ($rt_suspending()) { - break main; - } - $par7 = $tmp; - if (!$par7) - return 0; - if (!$par3World.$isRemote) { - $var13 = 2005; - $var11 = 0; - $par2EntityPlayer = null; - $var12 = 0; - if ($var12 < $par3World.$worldAccesses.$size0) { - $par1ItemStack = $par3World.$worldAccesses; - if ($var12 >= 0 && $var12 < $par1ItemStack.$size0) { - $par1ItemStack = $par1ItemStack.$array1.data[$var12]; - $ptr = 2; - continue main; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1ItemStack); - $rt_throw($par1ItemStack); - } - } - return 1; - case 2: - nms_RenderGlobal_playAuxSFX($par1ItemStack, $par2EntityPlayer, $var13, $par4, $par5, $par6, $var11); - if ($rt_suspending()) { - break main; - } - $var12 = $var12 + 1 | 0; - if ($var12 >= $par3World.$worldAccesses.$size0) - return 1; - $par1ItemStack = $par3World.$worldAccesses; - if ($var12 >= 0 && $var12 < $par1ItemStack.$size0) { - $par1ItemStack = $par1ItemStack.$array1.data[$var12]; - continue main; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1ItemStack); - $rt_throw($par1ItemStack); - case 3: - nms_World_setBlock($par3World, $par4, $par5, $par6, $par7, $var13, $var11); - if ($rt_suspending()) { - break main; - } - if (!$par2EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var13, $var11, $var12, $ptr); -} -function nms_ItemDye_func_96604_a($par0ItemStack, $par1World, $par2, $par3, $par4) { - var $var5, var$7, $var6, $var7, $var8, $var8_0, var$12, $var10, var$14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();$var10 = $thread.pop();var$12 = $thread.pop();$var8_0 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$par0ItemStack = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - nms_Block_$callClinit(); - if ($var5 == nms_Block_sapling.$blockID) { - if (!$par1World.$isRemote) - $par0ItemStack.$stackSize = $par0ItemStack.$stackSize - 1 | 0; - return 1; - } - if ($var5 != nms_Block_mushroomBrown.$blockID && $var5 != nms_Block_mushroomRed.$blockID) { - if ($var5 != nms_Block_melonStem.$blockID && $var5 != nms_Block_pumpkinStem.$blockID) { - if ($var5 > 0 && nms_Block_blocksList.data[$var5] instanceof nms_BlockCrops) { - if (nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) == 7) - return 0; - if ($par1World.$isRemote) - return 1; - var$7 = nms_Block_blocksList.data[$var5]; - $ptr = 3; - continue main; - } - if ($var5 == nms_Block_cocoaPlant.$blockID) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = $var6 & 3; - $var8 = ($var6 & 12) >> 2; - if ($var8 >= 2) - return 0; - if ($par1World.$isRemote) - return 1; - $var8 = ($var8 + 1 | 0) << 2 | $var7; - $var6 = 2; - $ptr = 2; - continue main; - } - if ($var5 != nms_Block_grass.$blockID) - return 0; - a: { - if (!$par1World.$isRemote) { - $par0ItemStack.$stackSize = $par0ItemStack.$stackSize - 1 | 0; - $var6 = 0; - $var8_0 = $par3 + 1 | 0; - var$12 = 3.0; - while (true) { - if ($var6 >= 128) - break a; - $var10 = 0; - $var7 = $par2; - $var5 = $var8_0; - var$14 = $par4; - b: { - while (true) { - if ($var10 >= ($var6 / 16 | 0)) { - if (nms_World_getBlockId($par1World, $var7, $var5, var$14)) - break b; - nms_Item_$callClinit(); - if (ju_Random_nextInt0(nms_Item_itemRand, 10)) { - if (!nms_BlockFlower_canBlockStay(nms_Block_tallGrass, $par1World, $var7, $var5, var$14)) - break b; - else { - $var10 = nms_Block_tallGrass.$blockID; - $par3 = 1; - $var8 = 3; - $ptr = 4; - continue main; - } - } - if (!ju_Random_nextInt0(nms_Item_itemRand, 3)) { - if (!nms_Block_plantRed.$canBlockStay($par1World, $var7, $var5, var$14)) - break b; - else { - $par3 = nms_Block_plantRed.$blockID; - $ptr = 5; - continue main; - } - } - if (!nms_Block_plantYellow.$canBlockStay($par1World, $var7, $var5, var$14)) - break b; - else { - $par3 = nms_Block_plantYellow.$blockID; - $ptr = 6; - continue main; - } - } - nms_Item_$callClinit(); - $var7 = $var7 + ((Math.random() * var$12 | 0) - 1 | 0) | 0; - $var5 = $var5 + ($rt_imul((Math.random() * var$12 | 0) - 1 | 0, Math.random() * var$12 | 0) / 2 | 0) | 0; - var$14 = var$14 + (ju_Random_nextInt0(nms_Item_itemRand, 3) - 1 | 0) | 0; - if (nms_World_getBlockId($par1World, $var7, $var5 - 1 | 0, var$14) != nms_Block_grass.$blockID) - break b; - if (nms_World_isBlockNormalCube($par1World, $var7, $var5, var$14)) - break; - $var10 = $var10 + 1 | 0; - } - } - $var6 = $var6 + 1 | 0; - } - } - } - return 1; - } - if (nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) == 7) - return 0; - if ($par1World.$isRemote) - return 1; - var$7 = nms_Block_blocksList.data[$var5]; - $ptr = 1; - continue main; - } - if (!$par1World.$isRemote) - $par0ItemStack.$stackSize = $par0ItemStack.$stackSize - 1 | 0; - return 1; - case 1: - nms_BlockStem_fertilizeStem(var$7, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $par0ItemStack.$stackSize = $par0ItemStack.$stackSize - 1 | 0; - return 1; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var8, $var6); - if ($rt_suspending()) { - break main; - } - $par0ItemStack.$stackSize = $par0ItemStack.$stackSize - 1 | 0; - return 1; - case 3: - nms_BlockCrops_fertilize(var$7, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $par0ItemStack.$stackSize = $par0ItemStack.$stackSize - 1 | 0; - return 1; - case 4: - nms_World_setBlock($par1World, $var7, $var5, var$14, $var10, $par3, $var8); - if ($rt_suspending()) { - break main; - } - c: while (true) { - $var6 = $var6 + 1 | 0; - if ($var6 >= 128) - break; - $var10 = 0; - $var7 = $par2; - $var5 = $var8_0; - var$14 = $par4; - while (true) { - if ($var10 >= ($var6 / 16 | 0)) { - if (nms_World_getBlockId($par1World, $var7, $var5, var$14)) - continue c; - nms_Item_$callClinit(); - if (ju_Random_nextInt0(nms_Item_itemRand, 10)) { - if (!nms_BlockFlower_canBlockStay(nms_Block_tallGrass, $par1World, $var7, $var5, var$14)) - continue c; - else { - $var10 = nms_Block_tallGrass.$blockID; - $par3 = 1; - $var8 = 3; - continue main; - } - } - if (!ju_Random_nextInt0(nms_Item_itemRand, 3)) { - if (!nms_Block_plantRed.$canBlockStay($par1World, $var7, $var5, var$14)) - continue c; - else { - $par3 = nms_Block_plantRed.$blockID; - $ptr = 5; - continue main; - } - } - if (!nms_Block_plantYellow.$canBlockStay($par1World, $var7, $var5, var$14)) - continue c; - else { - $par3 = nms_Block_plantYellow.$blockID; - $ptr = 6; - continue main; - } - } - nms_Item_$callClinit(); - $var7 = $var7 + ((Math.random() * var$12 | 0) - 1 | 0) | 0; - $var5 = $var5 + ($rt_imul((Math.random() * var$12 | 0) - 1 | 0, Math.random() * var$12 | 0) / 2 | 0) | 0; - var$14 = var$14 + (ju_Random_nextInt0(nms_Item_itemRand, 3) - 1 | 0) | 0; - if (nms_World_getBlockId($par1World, $var7, $var5 - 1 | 0, var$14) != nms_Block_grass.$blockID) - continue c; - if (nms_World_isBlockNormalCube($par1World, $var7, $var5, var$14)) - break; - $var10 = $var10 + 1 | 0; - } - } - return 1; - case 5: - nms_World_setBlock0($par1World, $var7, $var5, var$14, $par3); - if ($rt_suspending()) { - break main; - } - c: while (true) { - $var6 = $var6 + 1 | 0; - if ($var6 >= 128) - break; - $var10 = 0; - $var7 = $par2; - $var5 = $var8_0; - var$14 = $par4; - while (true) { - if ($var10 >= ($var6 / 16 | 0)) { - if (nms_World_getBlockId($par1World, $var7, $var5, var$14)) - continue c; - nms_Item_$callClinit(); - if (ju_Random_nextInt0(nms_Item_itemRand, 10)) { - if (!nms_BlockFlower_canBlockStay(nms_Block_tallGrass, $par1World, $var7, $var5, var$14)) - continue c; - else { - $var10 = nms_Block_tallGrass.$blockID; - $par3 = 1; - $var8 = 3; - $ptr = 4; - continue main; - } - } - if (!ju_Random_nextInt0(nms_Item_itemRand, 3)) { - if (!nms_Block_plantRed.$canBlockStay($par1World, $var7, $var5, var$14)) - continue c; - else { - $par3 = nms_Block_plantRed.$blockID; - continue main; - } - } - if (!nms_Block_plantYellow.$canBlockStay($par1World, $var7, $var5, var$14)) - continue c; - else { - $par3 = nms_Block_plantYellow.$blockID; - $ptr = 6; - continue main; - } - } - nms_Item_$callClinit(); - $var7 = $var7 + ((Math.random() * var$12 | 0) - 1 | 0) | 0; - $var5 = $var5 + ($rt_imul((Math.random() * var$12 | 0) - 1 | 0, Math.random() * var$12 | 0) / 2 | 0) | 0; - var$14 = var$14 + (ju_Random_nextInt0(nms_Item_itemRand, 3) - 1 | 0) | 0; - if (nms_World_getBlockId($par1World, $var7, $var5 - 1 | 0, var$14) != nms_Block_grass.$blockID) - continue c; - if (nms_World_isBlockNormalCube($par1World, $var7, $var5, var$14)) - break; - $var10 = $var10 + 1 | 0; - } - } - return 1; - case 6: - nms_World_setBlock0($par1World, $var7, $var5, var$14, $par3); - if ($rt_suspending()) { - break main; - } - c: while (true) { - $var6 = $var6 + 1 | 0; - if ($var6 >= 128) - break; - $var10 = 0; - $var7 = $par2; - $var5 = $var8_0; - var$14 = $par4; - while (true) { - if ($var10 >= ($var6 / 16 | 0)) { - if (nms_World_getBlockId($par1World, $var7, $var5, var$14)) - continue c; - nms_Item_$callClinit(); - if (ju_Random_nextInt0(nms_Item_itemRand, 10)) { - if (!nms_BlockFlower_canBlockStay(nms_Block_tallGrass, $par1World, $var7, $var5, var$14)) - continue c; - else { - $var10 = nms_Block_tallGrass.$blockID; - $par3 = 1; - $var8 = 3; - $ptr = 4; - continue main; - } - } - if (!ju_Random_nextInt0(nms_Item_itemRand, 3)) { - if (!nms_Block_plantRed.$canBlockStay($par1World, $var7, $var5, var$14)) - continue c; - else { - $par3 = nms_Block_plantRed.$blockID; - $ptr = 5; - continue main; - } - } - if (!nms_Block_plantYellow.$canBlockStay($par1World, $var7, $var5, var$14)) - continue c; - else { - $par3 = nms_Block_plantYellow.$blockID; - continue main; - } - } - nms_Item_$callClinit(); - $var7 = $var7 + ((Math.random() * var$12 | 0) - 1 | 0) | 0; - $var5 = $var5 + ($rt_imul((Math.random() * var$12 | 0) - 1 | 0, Math.random() * var$12 | 0) / 2 | 0) | 0; - var$14 = var$14 + (ju_Random_nextInt0(nms_Item_itemRand, 3) - 1 | 0) | 0; - if (nms_World_getBlockId($par1World, $var7, $var5 - 1 | 0, var$14) != nms_Block_grass.$blockID) - continue c; - if (nms_World_isBlockNormalCube($par1World, $var7, $var5, var$14)) - break; - $var10 = $var10 + 1 | 0; - } - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0ItemStack, $par1World, $par2, $par3, $par4, $var5, var$7, $var6, $var7, $var8, $var8_0, var$12, $var10, var$14, $ptr); -} -function nms_ItemDye_func_96603_a($par0World, $par1, $par2, $par3, $par4) { - var $var5, $var6, $var7, var$9, var$10, var$11, $var8, $var10, $var12, var$15, var$16, var$17, var$18, var$19, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$par0World = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockId($par0World, $par1, $par2, $par3); - if (!$par4) - $par4 = 15; - a: { - if ($var5 > 0) { - nms_Block_$callClinit(); - if ($var5 < nms_Block_blocksList.data.length) { - $var6 = nms_Block_blocksList.data[$var5]; - break a; - } - } - $var6 = null; - } - b: { - if ($var6 !== null) { - $var6.$setBlockBoundsBasedOnState($par0World, $par1, $par2, $par3); - $var7 = 0; - var$9 = $par1; - var$10 = $par2; - var$11 = $par3; - while (true) { - if ($var7 >= $par4) - break b; - nms_Item_$callClinit(); - $var8 = ju_Random_nextGaussian(nms_Item_itemRand) * 0.02; - $var10 = ju_Random_nextGaussian(nms_Item_itemRand) * 0.02; - $var12 = ju_Random_nextGaussian(nms_Item_itemRand) * 0.02; - var$15 = $rt_s(870); - var$16 = var$9 + Math.random(); - var$17 = var$10 + Math.random() * $var6.$maxY0; - var$18 = var$11 + Math.random(); - $par1 = 0; - if ($par1 < $par0World.$worldAccesses.$size0) { - var$19 = $par0World.$worldAccesses; - if ($par1 >= 0 && $par1 < var$19.$size0) { - var$19 = var$19.$array1.data[$par1]; - $ptr = 1; - continue main; - } - $par0World = new jl_IndexOutOfBoundsException; - $par0World.$suppressionEnabled = 1; - $par0World.$writableStackTrace = 1; - $rt_throw($par0World); - } - $var7 = $var7 + 1 | 0; - } - } - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$19, var$15, var$16, var$17, var$18, $var8, $var10, $var12); - if ($rt_suspending()) { - break main; - } - $par1 = $par1 + 1 | 0; - while (true) { - if ($par1 < $par0World.$worldAccesses.$size0) { - var$19 = $par0World.$worldAccesses; - if ($par1 >= 0 && $par1 < var$19.$size0) { - var$19 = var$19.$array1.data[$par1]; - continue main; - } - $par0World = new jl_IndexOutOfBoundsException; - $par0World.$suppressionEnabled = 1; - $par0World.$writableStackTrace = 1; - $rt_throw($par0World); - } - $var7 = $var7 + 1 | 0; - if ($var7 >= $par4) - break; - nms_Item_$callClinit(); - $var8 = ju_Random_nextGaussian(nms_Item_itemRand) * 0.02; - $var10 = ju_Random_nextGaussian(nms_Item_itemRand) * 0.02; - $var12 = ju_Random_nextGaussian(nms_Item_itemRand) * 0.02; - var$15 = $rt_s(870); - var$16 = var$9 + Math.random(); - var$17 = var$10 + Math.random() * $var6.$maxY0; - var$18 = var$11 + Math.random(); - $par1 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0World, $par1, $par2, $par3, $par4, $var5, $var6, $var7, var$9, var$10, var$11, $var8, $var10, $var12, var$15, var$16, var$17, var$18, var$19, $ptr); -} -function nms_ItemDye_itemInteractionForEntity($this, $par1ItemStack, $par2EntityLiving) { - var $var3, $var4, var$5, var$6; - if (!($par2EntityLiving instanceof nms_EntitySheep)) - return 0; - $var3 = $par2EntityLiving; - $var4 = ($par1ItemStack.$itemDamage ^ (-1)) & 15; - var$5 = !(nms_DataWatcher_getWatchableObjectByte($var3.$dataWatcher, 16) & 16) ? 0 : 1; - if (!var$5 && (nms_DataWatcher_getWatchableObjectByte($var3.$dataWatcher, 16) & 15) != $var4) { - var$6 = nms_DataWatcher_getWatchableObjectByte($var3.$dataWatcher, 16); - $par2EntityLiving = $var3.$dataWatcher; - var$5 = (var$6 & 240 | $var4 & 15) << 24 >> 24; - $var3 = new jl_Byte; - $var3.$value4 = var$5; - nms_DataWatcher_updateObject($par2EntityLiving, 16, $var3); - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - } - return 1; -} -function nms_ItemDye_getSubItems($this, $par1, $par2CreativeTabs, $par3List) { - var $var4; - $var4 = 0; - while ($var4 < 16) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = $var4; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $var4 = $var4 + 1 | 0; - } -} -function nms_ItemDye_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$field_94594_d = $rt_createArray(nms_Icon, nms_ItemDye_field_94595_b.data.length); - $var2 = 0; - while ($var2 < nms_ItemDye_field_94595_b.data.length) { - $this.$field_94594_d.data[$var2] = nms_TextureMap_registerIcon($par1IconRegister, nms_ItemDye_field_94595_b.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_ItemDye__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 16); - var$2 = var$1.data; - var$2[0] = $rt_s(1914); - var$2[1] = $rt_s(1915); - var$2[2] = $rt_s(1916); - var$2[3] = $rt_s(1917); - var$2[4] = $rt_s(1918); - var$2[5] = $rt_s(1919); - var$2[6] = $rt_s(1920); - var$2[7] = $rt_s(1921); - var$2[8] = $rt_s(1922); - var$2[9] = $rt_s(1923); - var$2[10] = $rt_s(1924); - var$2[11] = $rt_s(1925); - var$2[12] = $rt_s(1926); - var$2[13] = $rt_s(1927); - var$2[14] = $rt_s(1928); - var$2[15] = $rt_s(1929); - nms_ItemDye_dyeColorNames = var$1; - var$1 = $rt_createArray(jl_String, 16); - var$2 = var$1.data; - var$2[0] = $rt_s(1930); - var$2[1] = $rt_s(1931); - var$2[2] = $rt_s(1932); - var$2[3] = $rt_s(1933); - var$2[4] = $rt_s(1934); - var$2[5] = $rt_s(1935); - var$2[6] = $rt_s(1936); - var$2[7] = $rt_s(1937); - var$2[8] = $rt_s(1938); - var$2[9] = $rt_s(1939); - var$2[10] = $rt_s(1940); - var$2[11] = $rt_s(1941); - var$2[12] = $rt_s(1942); - var$2[13] = $rt_s(1943); - var$2[14] = $rt_s(1944); - var$2[15] = $rt_s(1945); - nms_ItemDye_field_94595_b = var$1; - var$1 = $rt_createIntArray(16); - var$2 = var$1.data; - var$2[0] = 1973019; - var$2[1] = 11743532; - var$2[2] = 3887386; - var$2[3] = 5320730; - var$2[4] = 2437522; - var$2[5] = 8073150; - var$2[6] = 2651799; - var$2[7] = 11250603; - var$2[8] = 4408131; - var$2[9] = 14188952; - var$2[10] = 4312372; - var$2[11] = 14602026; - var$2[12] = 6719955; - var$2[13] = 12801229; - var$2[14] = 15435844; - var$2[15] = 15790320; - nms_ItemDye_dyeColors = var$1; -} -function nms_ItemBed() { - nms_Item.call(this); -} -function nms_ItemBed__init_(var_0) { - var var_1 = new nms_ItemBed(); - nms_ItemBed__init_0(var_1, var_0); - return var_1; -} -function nms_ItemBed__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$tabToDisplayOn = nms_CreativeTabs_tabDecorations; -} -function nms_ItemBed_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, var$12, $var12, $var13, $var14, var$16, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$16 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();var$12 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par3World.$isRemote) - return 1; - if ($par7 != 1) - return 0; - $par7 = $par5 + 1 | 0; - nms_Block_$callClinit(); - $var11 = nms_Block_bed; - var$12 = $par2EntityPlayer.$rotationYaw * 4.0 / 360.0 + 0.5; - $var12 = var$12 | 0; - if (var$12 < $var12) - $var12 = $var12 - 1 | 0; - $var12 = $var12 & 3; - $var13 = 0; - $var14 = 0; - if (!$var12) - $var14 = 1; - if ($var12 == 1) - $var13 = (-1); - if ($var12 == 2) - $var14 = (-1); - if ($var12 == 3) - $var13 = 1; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par5 = 1; - else if ($par1ItemStack === null) - $par5 = 0; - else { - nms_Item_$callClinit(); - $par5 = 1; - } - if ($par5) { - $var13 = $par4 + $var13 | 0; - $var14 = $par6 + $var14 | 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par5 = 1; - else if ($par1ItemStack === null) - $par5 = 0; - else { - nms_Item_$callClinit(); - $par5 = 1; - } - if ($par5) { - $par5 = nms_World_getBlockId($par3World, $par4, $par7, $par6) ? 0 : 1; - if ($par5 && (nms_World_getBlockId($par3World, $var13, $par7, $var14) ? 0 : 1)) { - var$16 = $par7 - 1 | 0; - if (nms_World_isBlockTopFacingSurfaceSolid($par3World, nms_Block_blocksList.data[nms_World_getBlockId($par3World, $par4, var$16, $par6)], nms_World_getBlockMetadata($par3World, $par4, var$16, $par6)) && nms_World_isBlockTopFacingSurfaceSolid($par3World, nms_Block_blocksList.data[nms_World_getBlockId($par3World, $var13, var$16, $var14)], nms_World_getBlockMetadata($par3World, $var13, var$16, $var14))) { - $par5 = $var11.$blockID; - var$16 = 3; - $ptr = 1; - continue main; - } - } - return 0; - } - } - return 0; - case 1: - nms_World_setBlock($par3World, $par4, $par7, $par6, $par5, $var12, var$16); - if ($rt_suspending()) { - break main; - } - if (nms_World_getBlockId($par3World, $par4, $par7, $par6) != $var11.$blockID) { - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - } - $par5 = $var11.$blockID; - $par6 = $var12 + 8 | 0; - $par4 = 3; - $ptr = 2; - case 2: - nms_World_setBlock($par3World, $var13, $par7, $var14, $par5, $par6, $par4); - if ($rt_suspending()) { - break main; - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, var$12, $var12, $var13, $var14, var$16, $ptr); -} -function nms_ItemMapBase() { - nms_Item.call(this); -} -function nms_ItemMap() { - nms_ItemMapBase.call(this); -} -function nms_ItemMap__init_(var_0) { - var var_1 = new nms_ItemMap(); - nms_ItemMap__init_0(var_1, var_0); - return var_1; -} -function nms_ItemMap__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$hasSubtypes = 1; -} -function nms_ItemMap_getMPMapData($par0, $par1World) { - var $var3, var$4, var$5; - $var3 = new jl_StringBuilder; - $var3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(1946)); - jl_AbstractStringBuilder_insert0($var3, $var3.$length, $par0, 10); - var$4 = jl_String__init_0($var3.$buffer, 0, $var3.$length); - $var3 = nms_MapStorage_loadData($par1World.$mapStorage, $rt_cls(nms_MapData), var$4); - if ($var3 === null) { - $var3 = new nms_MapData; - $var3.$mapName = var$4; - $var3.$colors = $rt_createByteArray(16384); - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $var3.$playersArrayList = var$5; - $var3.$playersHashMap = ju_HashMap__init_1(16, 0.75); - var$5 = new ju_LinkedHashMap; - ju_HashMap__init_2(var$5, 16, 0.75); - var$5.$accessOrder = 0; - var$5.$head4 = null; - $var3.$playersVisibleOnMap = var$5; - nms_MapStorage_setData($par1World.$mapStorage, var$4, $var3); - } - return $var3; -} -function nms_ItemMap_getMapData($this, $par1ItemStack, $par2World) { - var $var4, var$4, var$5, var$6, var$7, $var5, var$9; - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(1946)); - var$4 = $par1ItemStack.$itemDamage; - jl_AbstractStringBuilder_insert0($var4, $var4.$length, var$4, 10); - var$5 = jl_String__init_0($var4.$buffer, 0, $var4.$length); - $var4 = nms_MapStorage_loadData($par2World.$mapStorage, $rt_cls(nms_MapData), var$5); - if ($var4 === null && !$par2World.$isRemote) { - $par1ItemStack.$itemDamage = nms_MapStorage_getUniqueDataId($par2World.$mapStorage, $rt_s(1450)); - if ($par1ItemStack.$itemDamage < 0) - $par1ItemStack.$itemDamage = 0; - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(1946)); - var$6 = $par1ItemStack.$itemDamage; - jl_AbstractStringBuilder_insert0($var4, $var4.$length, var$6, 10); - $par1ItemStack = jl_String__init_0($var4.$buffer, 0, $var4.$length); - $var4 = new nms_MapData; - $var4.$mapName = $par1ItemStack; - $var4.$colors = $rt_createByteArray(16384); - var$7 = new ju_ArrayList; - var$7.$array1 = $rt_createArray(jl_Object, 10); - $var4.$playersArrayList = var$7; - $var4.$playersHashMap = ju_HashMap__init_1(16, 0.75); - var$7 = new ju_LinkedHashMap; - ju_HashMap__init_2(var$7, 16, 0.75); - var$7.$accessOrder = 0; - var$7.$head4 = null; - $var4.$playersVisibleOnMap = var$7; - $var4.$scale2 = 3; - $var5 = 128 * (1 << $var4.$scale2) | 0; - var$9 = $par2World.$worldInfo.$spawnX / $var5; - var$6 = $rt_compare(var$9, 0.0); - $var4.$xCenter = $rt_imul(var$9 + (var$6 > 0 ? 1.0 : var$6 >= 0 ? var$9 : (-1.0)) * 0.5 | 0, $var5); - var$9 = $par2World.$worldInfo.$spawnZ / $var5 | 0; - var$6 = $rt_compare(var$9, 0.0); - $var4.$zCenter = $rt_imul(var$9 + (var$6 > 0 ? 1.0 : var$6 >= 0 ? var$9 : (-1.0)) * 0.5 | 0, $var5); - $var4.$dimension0 = $par2World.$provider.$dimensionId << 24 >> 24; - $var4.$dirty = 1; - nms_MapStorage_setData($par2World.$mapStorage, $par1ItemStack, $var4); - } - return $var4; -} -function nms_ItemMap_updateMapData($this, $par1World, $par2Entity, $par3MapData) { - var $var6, $var7, $var8, $var9, $var10, $var11, $var12, $var13, var$12, var$13, var$14, $var14, $var15, $var16, $var18, $var19, $var20, $var38, $var32, $var21, $var22, $var23, $var24, $var25, $var26, $var27, $var28, $var29, var$32, $var31, $var32_0, $var31_0, $var33, $var34, $var35, $var36, $var41, var$41, $var33_0, var$43, $var39, $var40, $var42, $var43; - a: { - if ($par1World.$provider.$dimensionId == $par3MapData.$dimension0 && $par2Entity instanceof nms_EntityPlayer) { - $var6 = 1 << $par3MapData.$scale2; - $var7 = $par3MapData.$xCenter; - $var8 = $par3MapData.$zCenter; - $var9 = (nms_MathHelper_floor_double($par2Entity.$posX - $var7) / $var6 | 0) + 64 | 0; - $var10 = (nms_MathHelper_floor_double($par2Entity.$posZ - $var8) / $var6 | 0) + 64 | 0; - $var11 = 128 / $var6 | 0; - if ($par1World.$provider.$hasNoSky) - $var11 = $var11 / 2 | 0; - $var12 = nms_MapData_func_82568_a($par3MapData, $par2Entity); - $var12.$field_82569_d = $var12.$field_82569_d + 1 | 0; - $var13 = ($var9 - $var11 | 0) + 1 | 0; - var$12 = $rt_imul($var6, $var6); - var$13 = $var6 + 4 | 0; - var$14 = var$12; - while (true) { - if ($var13 >= ($var9 + $var11 | 0)) - break a; - if (($var13 & 15) == ($var12.$field_82569_d & 15)) { - $var14 = 255; - $var15 = 0; - $var16 = 0.0; - $var18 = ($var10 - $var11 | 0) - 1 | 0; - while ($var18 < ($var10 + $var11 | 0)) { - b: { - if ($var13 < 0) - break b; - if ($var18 < (-1)) - break b; - if ($var13 >= 128) - break b; - if ($var18 >= 128) - break b; - $var19 = $var13 - $var9 | 0; - $var20 = $var18 - $var10 | 0; - $var38 = $rt_imul($var19, $var19) + $rt_imul($var20, $var20) | 0; - $var32 = $var11 - 2 | 0; - $var21 = $var38 <= $rt_imul($var32, $var32) ? 0 : 1; - $var22 = $rt_imul((($var7 / $var6 | 0) + $var13 | 0) - 64 | 0, $var6); - $var23 = $rt_imul((($var8 / $var6 | 0) + $var18 | 0) - 64 | 0, $var6); - $var24 = $rt_createIntArray(256); - $var25 = nms_World_getChunkFromBlockCoords($par1World, $var22, $var23); - if ($var25.$isEmpty()) - break b; - $var26 = $var22 & 15; - $var27 = $var23 & 15; - $var28 = 0; - $var29 = 0.0; - if (!$par1World.$provider.$hasNoSky) { - var$32 = $var24.data; - $var31 = 0; - while ($var31 < $var6) { - $var32_0 = 0; - while ($var32_0 < $var6) { - c: { - $var31_0 = $var31 + $var26 | 0; - $var19 = $var32_0 + $var27 | 0; - $var33 = $var25.$getHeightValue($var31_0, $var19) + 1 | 0; - $var34 = 0; - if ($var33 > 1) { - d: { - while (true) { - $var35 = 1; - $var34 = $var25.$getBlockID($var31_0, $var33 - 1 | 0, $var19); - if (!$var34) - $var35 = 0; - else if ($var33 > 0 && $var34 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var34].$blockMaterial.$materialMapColor === nms_MapColor_airColor) - $var35 = 0; - } - if (!$var35) { - $var33 = $var33 + (-1) | 0; - if ($var33 <= 0) - break d; - $var34 = $var25.$getBlockID($var31_0, $var33 - 1 | 0, $var19); - } - if ($var33 <= 0) - break d; - if ($var35) - break; - } - } - if ($var33 > 0 && $var34) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var34].$blockMaterial.$isLiquid()) { - $var36 = $var33 - 1 | 0; - while (true) { - $var32 = $var36 + (-1) | 0; - $var41 = $var25.$getBlockID($var31_0, $var36, $var19); - $var28 = $var28 + 1 | 0; - if ($var32 <= 0) - break; - if (!$var41) - break c; - if (!nms_Block_blocksList.data[$var41].$blockMaterial.$isLiquid()) - break c; - $var36 = $var32; - } - } - } - } - } - $var29 = $var29 + $var33 / var$14; - var$32[$var34] = var$32[$var34] + 1 | 0; - $var32_0 = $var32_0 + 1 | 0; - } - $var31 = $var31 + 1 | 0; - } - } else { - $var31_0 = $var22 + ($var23 * 231871 | 0) | 0; - if (($rt_imul($rt_imul($var31_0, $var31_0), 31287121) + ($var31_0 * 11 | 0) | 0) >> 20 & 1) { - var$41 = $var24.data; - nms_Block_$callClinit(); - $var32 = nms_Block_stone.$blockID; - var$41[$var32] = var$41[$var32] + 10 | 0; - } else { - var$41 = $var24.data; - nms_Block_$callClinit(); - $var32 = nms_Block_dirt.$blockID; - var$41[$var32] = var$41[$var32] + 10 | 0; - } - $var29 = 100.0; - } - var$41 = $var24.data; - $var41 = $var28 / var$12 | 0; - $var31_0 = 0; - $var32 = 0; - $var33_0 = 0; - while ($var33_0 < 256) { - if (var$41[$var33_0] > $var31_0) { - $var31_0 = var$41[$var33_0]; - $var32 = $var33_0; - } - $var33_0 = $var33_0 + 1 | 0; - } - $var16 = ($var29 - $var16) * 4.0 / var$13; - $var33_0 = ($var13 + $var18 | 0) & 1; - var$43 = $var33_0; - $var39 = $var16 + (var$43 - 0.5) * 0.4; - $var40 = 1; - if ($var39 > 0.6) - $var40 = 2; - if ($var39 < (-0.6)) - $var40 = 0; - $var36 = 0; - if ($var32 > 0) { - nms_Block_$callClinit(); - $var42 = nms_Block_blocksList.data[$var32].$blockMaterial.$materialMapColor; - if ($var42 === nms_MapColor_waterColor) { - $var16 = $var41 * 0.1 + var$43 * 0.2; - $var40 = 1; - if ($var16 < 0.5) - $var40 = 2; - if ($var16 > 0.9) - $var40 = 0; - } - $var36 = $var42.$colorIndex; - } - if ($var18 < 0) { - $var16 = $var29; - break b; - } - if ($var38 >= $rt_imul($var11, $var11)) { - $var16 = $var29; - break b; - } - if ($var21 && !$var33_0) { - $var16 = $var29; - break b; - } - var$41 = $par3MapData.$colors.data; - $var33_0 = $var13 + ($var18 * 128 | 0) | 0; - $var43 = var$41[$var33_0]; - $var38 = (($var36 * 4 | 0) + $var40 | 0) << 24 >> 24; - if ($var43 == $var38) { - $var16 = $var29; - break b; - } - if ($var14 > $var18) - $var14 = $var18; - if ($var15 < $var18) - $var15 = $var18; - $par3MapData.$colors.data[$var33_0] = $var38; - $var16 = $var29; - } - $var18 = $var18 + 1 | 0; - } - if ($var14 <= $var15) - nms_MapData_setColumnDirty($par3MapData, $var13, $var14, $var15); - } - $var13 = $var13 + 1 | 0; - } - } - } -} -function nms_ItemMap_onUpdate($this, $par1ItemStack, $par2World, $par3Entity, $par4, $par5) { - var $var6; - if (!$par2World.$isRemote) { - $var6 = nms_ItemMap_getMapData($this, $par1ItemStack, $par2World); - if ($par3Entity instanceof nms_EntityPlayer) - nms_MapData_updateVisiblePlayers($var6, $par3Entity, $par1ItemStack); - if ($par5) - nms_ItemMap_updateMapData($this, $par2World, $par3Entity, $var6); - } -} -function nms_ItemMap_onCreated($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $var4, $var5, var$6, var$7; - if ($par1ItemStack.$stackTagCompound === null ? 0 : 1) { - $var4 = $par1ItemStack.$stackTagCompound; - $var5 = $var4.$tagMap; - var$6 = jl_String_hashCode($rt_s(1947)); - if (!(ju_HashMap_findNonNullKeyEntry($var5, $rt_s(1947), var$6 & ($var5.$elementData.data.length - 1 | 0), var$6) === null ? 0 : 1)) - var$6 = 0; - else { - $var4 = $var4.$tagMap; - var$7 = jl_String_hashCode($rt_s(1947)); - $par3EntityPlayer = ju_HashMap_findNonNullKeyEntry($var4, $rt_s(1947), var$7 & ($var4.$elementData.data.length - 1 | 0), var$7); - var$6 = ($par3EntityPlayer === null ? null : $par3EntityPlayer.$value0).$data0; - } - if (!var$6 ? 0 : 1) { - nms_Item_$callClinit(); - $var4 = nms_ItemMap_getMapData(nms_Item_map, $par1ItemStack, $par2World); - $par1ItemStack.$itemDamage = nms_MapStorage_getUniqueDataId($par2World.$mapStorage, $rt_s(1450)); - if ($par1ItemStack.$itemDamage < 0) - $par1ItemStack.$itemDamage = 0; - $var5 = new nms_MapData; - $par3EntityPlayer = new jl_StringBuilder; - $par3EntityPlayer.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par3EntityPlayer, $par3EntityPlayer.$length, $rt_s(1946)); - var$7 = $par1ItemStack.$itemDamage; - jl_AbstractStringBuilder_insert0($par3EntityPlayer, $par3EntityPlayer.$length, var$7, 10); - $var5.$mapName = jl_String__init_0($par3EntityPlayer.$buffer, 0, $par3EntityPlayer.$length); - $var5.$colors = $rt_createByteArray(16384); - $par3EntityPlayer = new ju_ArrayList; - $par3EntityPlayer.$array1 = $rt_createArray(jl_Object, 10); - $var5.$playersArrayList = $par3EntityPlayer; - $var5.$playersHashMap = ju_HashMap__init_1(16, 0.75); - $par3EntityPlayer = new ju_LinkedHashMap; - ju_HashMap__init_2($par3EntityPlayer, 16, 0.75); - $par3EntityPlayer.$accessOrder = 0; - $par3EntityPlayer.$head4 = null; - $var5.$playersVisibleOnMap = $par3EntityPlayer; - $var5.$scale2 = ($var4.$scale2 + 1 | 0) << 24 >> 24; - if ($var5.$scale2 > 4) - $var5.$scale2 = 4; - $var5.$xCenter = $var4.$xCenter; - $var5.$zCenter = $var4.$zCenter; - $var5.$dimension0 = $var4.$dimension0; - $var5.$dirty = 1; - $par3EntityPlayer = new jl_StringBuilder; - $par3EntityPlayer.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par3EntityPlayer, $par3EntityPlayer.$length, $rt_s(1946)); - var$7 = $par1ItemStack.$itemDamage; - jl_AbstractStringBuilder_insert0($par3EntityPlayer, $par3EntityPlayer.$length, var$7, 10); - $var4 = jl_String__init_0($par3EntityPlayer.$buffer, 0, $par3EntityPlayer.$length); - nms_MapStorage_setData($par2World.$mapStorage, $var4, $var5); - } - } -} -function nms_ItemMap_addInformation($this, $par1ItemStack, $par2EntityPlayer, $par3List, $par4) { - var $var5; - $var5 = nms_ItemMap_getMapData($this, $par1ItemStack, $par2EntityPlayer.$worldObj); - if ($par4) { - if ($var5 === null) - ju_ArrayList_add($par3List, $rt_s(1948)); - else { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(1949)); - $par4 = 1 << $var5.$scale2; - jl_AbstractStringBuilder_insert0($par1ItemStack, $par1ItemStack.$length, $par4, 10); - ju_ArrayList_add($par3List, jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length)); - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(1950)); - $par4 = $var5.$scale2; - jl_AbstractStringBuilder_insert0($par1ItemStack, $par1ItemStack.$length, $par4, 10); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(58)); - jl_AbstractStringBuilder_insert0($par1ItemStack, $par1ItemStack.$length, 4, 10); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(64)); - ju_ArrayList_add($par3List, jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length)); - } - } -} -function nms_ItemShears() { - nms_Item.call(this); -} -function nms_ItemShears__init_(var_0) { - var var_1 = new nms_ItemShears(); - nms_ItemShears__init_0(var_1, var_0); - return var_1; -} -function nms_ItemShears__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; - $this.$maxDamage = 238; - $this.$tabToDisplayOn = nms_CreativeTabs_tabTools; -} -function nms_ItemShears_onBlockDestroyed($this, $par1ItemStack, $par2World, $par3, $par4, $par5, $par6, $par7EntityLiving) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par7EntityLiving = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Block_$callClinit(); - if ($par3 != nms_Block_leaves.$blockID && $par3 != nms_Block_web.$blockID && $par3 != nms_Block_tallGrass.$blockID && $par3 != nms_Block_vine.$blockID && $par3 != nms_Block_tripWire.$blockID) - return 0; - $par3 = 1; - $ptr = 1; - case 1: - nms_ItemStack_damageItem($par1ItemStack, $par3, $par7EntityLiving); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3, $par4, $par5, $par6, $par7EntityLiving, $ptr); -} -function nms_ItemShears_canHarvestBlock($this, $par1Block) { - var var$2; - var$2 = $par1Block.$blockID; - nms_Block_$callClinit(); - return var$2 != nms_Block_web.$blockID && $par1Block.$blockID != nms_Block_redstoneWire.$blockID && $par1Block.$blockID != nms_Block_tripWire.$blockID ? 0 : 1; -} -function nms_ItemShears_getStrVsBlock($this, $par1ItemStack, $par2Block) { - var var$3; - var$3 = $par2Block.$blockID; - nms_Block_$callClinit(); - return var$3 != nms_Block_web.$blockID && $par2Block.$blockID != nms_Block_leaves.$blockID ? ($par2Block.$blockID == nms_Block_cloth.$blockID ? 5.0 : 1.0) : 15.0; -} -function nms_ItemEnderPearl() { - nms_Item.call(this); -} -function nms_ItemEnderPearl__init_(var_0) { - var var_1 = new nms_ItemEnderPearl(); - nms_ItemEnderPearl__init_0(var_1, var_0); - return var_1; -} -function nms_ItemEnderPearl__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 16; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; -} -function nms_ItemEnderPearl_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var var$4, var$5; - if ($par3EntityPlayer.$capabilities.$isCreativeMode) - return $par1ItemStack; - if ($par3EntityPlayer.$ridingEntity !== null) - return $par1ItemStack; - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - nms_Item_$callClinit(); - nms_World_playSoundAtEntity($par2World, $par3EntityPlayer, $rt_s(873), 0.5, 0.4000000059604645 / (Math.random() * 0.4000000059604645 + 0.800000011920929)); - if (!$par2World.$isRemote) { - var$4 = new nms_EntityEnderPearl; - nms_EntityThrowable__init_2(var$4, $par2World, $par3EntityPlayer); - var$5 = nms_World_spawnEntityInWorld($par2World, var$4); - $par3EntityPlayer = $par2World.$entityList; - ju_HashMap_putImpl($par3EntityPlayer.$backingMap, var$4, $par3EntityPlayer); - if (!var$5) { - $par2World = $par2World.$entitySpawnQueue; - ju_HashMap_putImpl($par2World.$backingMap, var$4, $par2World); - } - } - return $par1ItemStack; -} -function nms_ItemPotion() { - var a = this; nms_Item.call(a); - a.$effectCache = null; - a.$field_94591_c = null; - a.$field_94590_d = null; - a.$field_94592_ct = null; -} -var nms_ItemPotion_field_77835_b = null; -function nms_ItemPotion__init_(var_0) { - var var_1 = new nms_ItemPotion(); - nms_ItemPotion__init_0(var_1, var_0); - return var_1; -} -function nms_ItemPotion__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$effectCache = ju_HashMap__init_1(16, 0.75); - $this.$maxStackSize = 1; - $this.$hasSubtypes = 1; - $this.$maxDamage = 0; - $this.$tabToDisplayOn = nms_CreativeTabs_tabBrewing; -} -function nms_ItemPotion_getEffects($this, $par1ItemStack) { - var $var6, var$3, $var5, $var2, $var3, $var4, var$8, var$9, var$10; - if ($par1ItemStack.$stackTagCompound === null ? 0 : 1) { - $var6 = $par1ItemStack.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1951)); - if (ju_HashMap_findNonNullKeyEntry($var6, $rt_s(1951), var$3 & ($var6.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) { - $var6 = new ju_ArrayList; - $var6.$array1 = $rt_createArray(jl_Object, 10); - $var5 = $par1ItemStack.$stackTagCompound; - $var2 = $var5.$tagMap; - var$3 = jl_String_hashCode($rt_s(1951)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1951), var$3 & ($var2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) { - $var3 = new nms_NBTTagList; - $var3.$name0 = $rt_s(1951); - $par1ItemStack = new ju_ArrayList; - $par1ItemStack.$array1 = $rt_createArray(jl_Object, 10); - $var3.$tagList = $par1ItemStack; - } else { - $var2 = $var5.$tagMap; - var$3 = jl_String_hashCode($rt_s(1951)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1951), var$3 & ($var2.$elementData.data.length - 1 | 0), var$3); - $var3 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - $var4 = 0; - a: { - while ($var4 < ju_ArrayList_size($var3.$tagList)) { - $par1ItemStack = $var3.$tagList; - if ($var4 < 0) - break a; - if ($var4 >= $par1ItemStack.$size0) - break a; - $var5 = $par1ItemStack.$array1.data[$var4]; - $var2 = $var5.$tagMap; - var$8 = jl_String_hashCode($rt_s(1952)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1952), var$8 & ($var2.$elementData.data.length - 1 | 0), var$8) === null ? 0 : 1)) - var$9 = 0; - else { - $par1ItemStack = ju_HashMap_getEntry($var5.$tagMap, $rt_s(1952)); - var$9 = ($par1ItemStack === null ? null : $par1ItemStack.$value0).$data0; - } - var$10 = nms_NBTTagCompound_getByte($var5, $rt_s(1953)); - ju_ArrayList_add($var6, nms_PotionEffect__init_0(var$9, nms_NBTTagCompound_getInteger($var5, $rt_s(1954)), var$10, nms_NBTTagCompound_getBoolean($var5, $rt_s(1955)))); - $var4 = $var4 + 1 | 0; - } - return $var6; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - } - $var2 = $this.$effectCache; - $var6 = jl_Integer_valueOf($par1ItemStack.$itemDamage); - if ($var6 !== null) { - var$3 = jl_Integer_hashCode($var6); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, $var6, var$3 & ($var2.$elementData.data.length - 1 | 0), var$3); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null) { - $var2 = nms_PotionHelper_getPotionEffects(nms_ItemStack_getItemDamage($par1ItemStack), 0); - ju_HashMap_put($this.$effectCache, jl_Integer_valueOf(nms_ItemStack_getItemDamage($par1ItemStack)), $var2); - } - return $var2; -} -function nms_ItemPotion_getEffects0($this, $par1) { - var $var2, var$3, var$4; - $var2 = $this.$effectCache; - var$3 = jl_Integer_valueOf($par1); - if (var$3 !== null) { - var$4 = jl_Integer_hashCode(var$3); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$3, var$4 & ($var2.$elementData.data.length - 1 | 0), var$4); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null) { - $var2 = nms_PotionHelper_getPotionEffects($par1, 0); - ju_HashMap_putImpl($this.$effectCache, jl_Integer_valueOf($par1), $var2); - } - return $var2; -} -function nms_ItemPotion_onEaten($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $var4, $var5, $var6, var$7; - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - a: { - if (!$par2World.$isRemote) { - $var4 = nms_ItemPotion_getEffects($this, $par1ItemStack); - if ($var4 !== null) { - $var5 = new ju_AbstractList$1; - $var5.$this$0 = $var4; - $var5.$modCount = $var5.$this$0.$modCount0; - $var5.$size1 = $var5.$this$0.$size2(); - $var5.$removeIndex = (-1); - while (true) { - if (!($var5.$index >= $var5.$size1 ? 0 : 1)) - break a; - $var6 = ju_AbstractList$1_next($var5); - $par2World = new nms_PotionEffect; - $par2World.$potionID = $var6.$potionID; - $par2World.$duration = $var6.$duration; - $par2World.$amplifier = $var6.$amplifier; - nms_EntityLiving_addPotionEffect($par3EntityPlayer, $par2World); - } - } - } - } - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) { - if ($par1ItemStack.$stackSize <= 0) { - $par1ItemStack = new nms_ItemStack; - nms_Item_$callClinit(); - var$7 = nms_Item_glassBottle.$itemID; - $par1ItemStack.$stackSize = 0; - $par1ItemStack.$itemFrame = null; - $par1ItemStack.$itemID0 = var$7; - $par1ItemStack.$stackSize = 1; - $par1ItemStack.$itemDamage = 0; - if ($par1ItemStack.$itemDamage < 0) - $par1ItemStack.$itemDamage = 0; - return $par1ItemStack; - } - $var4 = $par3EntityPlayer.$inventory; - $par2World = new nms_ItemStack; - nms_Item_$callClinit(); - var$7 = nms_Item_glassBottle.$itemID; - $par2World.$stackSize = 0; - $par2World.$itemFrame = null; - $par2World.$itemID0 = var$7; - $par2World.$stackSize = 1; - $par2World.$itemDamage = 0; - if ($par2World.$itemDamage < 0) - $par2World.$itemDamage = 0; - nms_InventoryPlayer_addItemStackToInventory($var4, $par2World); - } - return $par1ItemStack; -} -function nms_ItemPotion_getMaxItemUseDuration($this, $par1ItemStack) { - return 32; -} -function nms_ItemPotion_getItemUseAction($this, $par1ItemStack) { - return nms_EnumAction_drink; -} -function nms_ItemPotion_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var var$4, var$5; - if (!(!($par1ItemStack.$itemDamage & 16384) ? 0 : 1)) { - if ($par1ItemStack !== $par3EntityPlayer.$itemInUse) { - $par3EntityPlayer.$itemInUse = $par1ItemStack; - $par3EntityPlayer.$itemInUseCount = 32; - if (!$par3EntityPlayer.$worldObj.$isRemote) - nms_Entity_setFlag($par3EntityPlayer, 4, 1); - } - return $par1ItemStack; - } - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - nms_Item_$callClinit(); - nms_World_playSoundAtEntity($par2World, $par3EntityPlayer, $rt_s(873), 0.5, 0.4000000059604645 / (Math.random() * 0.4000000059604645 + 0.800000011920929)); - if (!$par2World.$isRemote) { - var$4 = new nms_EntityPotion; - nms_EntityThrowable__init_2(var$4, $par2World, $par3EntityPlayer); - var$4.$potionDamage = $par1ItemStack; - var$5 = nms_World_spawnEntityInWorld($par2World, var$4); - $par3EntityPlayer = $par2World.$entityList; - ju_HashMap_putImpl($par3EntityPlayer.$backingMap, var$4, $par3EntityPlayer); - if (!var$5) { - $par2World = $par2World.$entitySpawnQueue; - ju_HashMap_putImpl($par2World.$backingMap, var$4, $par2World); - } - } - return $par1ItemStack; -} -function nms_ItemPotion_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - return 0; -} -function nms_ItemPotion_getIconFromDamage($this, $par1) { - return !(!($par1 & 16384) ? 0 : 1) ? $this.$field_94590_d : $this.$field_94591_c; -} -function nms_ItemPotion_getIconFromDamageForRenderPass($this, $par1, $par2) { - return !$par2 ? $this.$field_94592_ct : !(!($par1 & 16384) ? 0 : 1) ? $this.$field_94590_d : $this.$field_94591_c; -} -function nms_ItemPotion_getColorFromDamage($this, $par1) { - return nms_PotionHelper_func_77915_a($par1, 0); -} -function nms_ItemPotion_getColorFromItemStack($this, $par1ItemStack, $par2) { - return $par2 > 0 ? 16777215 : nms_PotionHelper_func_77915_a($par1ItemStack.$itemDamage, 0); -} -function nms_ItemPotion_requiresMultipleRenderPasses($this) { - return 1; -} -function nms_ItemPotion_isEffectInstant($this, $par1) { - var $var2, $var3, var$4, $var4; - $var2 = $this.$effectCache; - $var3 = jl_Integer_valueOf($par1); - if ($var3 !== null) { - var$4 = jl_Integer_hashCode($var3); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, $var3, var$4 & ($var2.$elementData.data.length - 1 | 0), var$4); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null) { - $var2 = nms_PotionHelper_getPotionEffects($par1, 0); - ju_HashMap_putImpl($this.$effectCache, jl_Integer_valueOf($par1), $var2); - } - if ($var2 !== null && !($var2.$size2() ? 0 : 1)) { - $var3 = new ju_AbstractList$1; - $var3.$this$0 = $var2; - $var3.$modCount = $var3.$this$0.$modCount0; - $var3.$size1 = $var3.$this$0.$size2(); - $var3.$removeIndex = (-1); - while (true) { - if (!($var3.$index >= $var3.$size1 ? 0 : 1)) - return 0; - $var4 = ju_AbstractList$1_next($var3); - if (!nms_Potion_potionTypes.data[$var4.$potionID].$isInstant()) - continue; - else - break; - } - return 1; - } - return 0; -} -function nms_ItemPotion_getItemDisplayName($this, $par1ItemStack) { - var $var2, $var3, var$4, var$5, $var4, var$7; - if (!$par1ItemStack.$itemDamage) - return jl_String_trim(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1956))); - $var2 = $rt_s(44); - if (!($par1ItemStack.$itemDamage & 16384) ? 0 : 1) { - $var3 = new jl_StringBuilder; - $var3.$buffer = $rt_createCharArray(16); - $var2 = jl_String_trim(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1957))); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $var2); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(307)); - $var2 = jl_String__init_0($var3.$buffer, 0, $var3.$length); - } - nms_Item_$callClinit(); - $var3 = nms_ItemPotion_getEffects(nms_Item_potion, $par1ItemStack); - if ($var3 !== null && !($var3.$size2() ? 0 : 1)) { - $par1ItemStack = $var3.$get4(0); - $var3 = nms_Potion_potionTypes.data[$par1ItemStack.$potionID].$name7; - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var3); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(1958)); - $var3 = jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var2); - $var2 = jl_String_trim(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var3)); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var2); - return jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); - } - var$4 = $par1ItemStack.$itemDamage; - nms_PotionHelper_$callClinit(); - var$5 = nms_PotionHelper_func_77908_a(var$4, 5, 4, 3, 2, 1); - $var4 = nms_PotionHelper_potionPrefixes.data[var$5]; - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - $var2 = jl_String_trim(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var4)); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var2); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(307)); - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(44)); - $var3 = nms_StringTranslate_instance; - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(1348)); - var$7 = $this.$unlocalizedName; - jl_AbstractStringBuilder_insert($var4, $var4.$length, var$7); - var$7 = jl_String__init_0($var4.$buffer, 0, $var4.$length); - $var3 = nms_StringTranslate_translateNamedKey($var3, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$7)); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $var3); - $var2 = jl_String_trim(jl_String__init_0($var2.$buffer, 0, $var2.$length)); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var2); - return jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); -} -function nms_ItemPotion_addInformation($this, $par1ItemStack, $par2EntityPlayer, $par3List, $par4) { - var $var5, $var9, $var7, $var8, var$9, $var6; - if ($par1ItemStack.$itemDamage) { - nms_Item_$callClinit(); - $var5 = nms_ItemPotion_getEffects(nms_Item_potion, $par1ItemStack); - if ($var5 !== null && !($var5.$size2() ? 0 : 1)) { - $var9 = new ju_AbstractList$1; - $var9.$this$0 = $var5; - $var9.$modCount = $var9.$this$0.$modCount0; - $var9.$size1 = $var9.$this$0.$size2(); - $var9.$removeIndex = (-1); - while ($var9.$index >= $var9.$size1 ? 0 : 1) { - $var7 = ju_AbstractList$1_next($var9); - $par2EntityPlayer = nms_Potion_potionTypes.data[$var7.$potionID].$name7; - $var8 = jl_String_trim(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $par2EntityPlayer)); - if ($var7.$amplifier > 0) { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var8); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(307)); - $par2EntityPlayer = new jl_StringBuilder; - $par2EntityPlayer.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par2EntityPlayer, $par2EntityPlayer.$length, $rt_s(1959)); - var$9 = $var7.$amplifier; - jl_AbstractStringBuilder_insert0($par2EntityPlayer, $par2EntityPlayer.$length, var$9, 10); - $var5 = jl_String__init_0($par2EntityPlayer.$buffer, 0, $par2EntityPlayer.$length); - $par2EntityPlayer = jl_String_trim(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var5)); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $par2EntityPlayer); - $var8 = jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); - } - if ($var7.$duration > 20) { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var8); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(940)); - $par2EntityPlayer = $var7.$isPotionDurationMax ? $rt_s(1147) : nms_StringUtils_ticksToElapsedTime($var7.$duration); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $par2EntityPlayer); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(64)); - $var8 = jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); - } - if (!nms_Potion_potionTypes.data[$var7.$potionID].$isBadEffect) { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - $par2EntityPlayer = nms_EnumChatFormatting_GRAY; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $par2EntityPlayer === null ? $rt_s(47) : $par2EntityPlayer.$field_96304_B); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var8); - ju_ArrayList_add($par3List, jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length)); - } else { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - $par2EntityPlayer = nms_EnumChatFormatting_RED; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $par2EntityPlayer === null ? $rt_s(47) : $par2EntityPlayer.$field_96304_B); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var8); - ju_ArrayList_add($par3List, jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length)); - } - } - } else { - $var6 = jl_String_trim(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1960))); - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - $par2EntityPlayer = nms_EnumChatFormatting_GRAY; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $par2EntityPlayer === null ? $rt_s(47) : $par2EntityPlayer.$field_96304_B); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var6); - ju_ArrayList_add($par3List, jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length)); - } - } -} -function nms_ItemPotion_hasEffect($this, $par1ItemStack) { - var $var2; - $var2 = nms_ItemPotion_getEffects($this, $par1ItemStack); - return $var2 !== null && !($var2.$size2() ? 0 : 1) ? 1 : 0; -} -function nms_ItemPotion_getSubItems($this, $par1, $par2CreativeTabs, $par3List) { - var $var4, $var5, $var6, $var7, $var5_0, $var9, $var10; - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $var4 = nms_ItemPotion_field_77835_b.$elementCount ? 0 : 1; - a: { - if ($var4) { - $var4 = 0; - while (true) { - if ($var4 > 15) - break a; - $var5 = 0; - while ($var5 <= 1) { - $var6 = $var5 ? $var4 | 16384 : $var4 | 8192; - $var7 = 0; - while (true) { - $var5_0 = $rt_compare($var7, 2); - if ($var5_0 > 0) - break; - $var5_0 = !$var7 ? $var6 : $var7 == 1 ? $var6 | 32 : $var5_0 ? $var6 : $var6 | 64; - $var9 = nms_PotionHelper_getPotionEffects($var5_0, 0); - if ($var9 !== null && !($var9.$size0 ? 0 : 1)) - ju_LinkedHashMap_putImpl(nms_ItemPotion_field_77835_b, $var9, jl_Integer_valueOf($var5_0)); - $var7 = $var7 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - } - } - $par2CreativeTabs = nms_ItemPotion_field_77835_b; - if ($par2CreativeTabs.$cachedValues === null) { - $var10 = new ju_LinkedHashMap$2; - $var10.$this$06 = $par2CreativeTabs; - $par2CreativeTabs.$cachedValues = $var10; - } - $var10 = $par2CreativeTabs.$cachedValues.$iterator(); - while ($var10.$hasNext()) { - $var5_0 = $var10.$next().$value; - $var9 = new nms_ItemStack; - $var9.$stackSize = 0; - $var9.$itemFrame = null; - $var9.$itemID0 = $par1; - $var9.$stackSize = 1; - $var9.$itemDamage = $var5_0; - if ($var9.$itemDamage < 0) - $var9.$itemDamage = 0; - ju_ArrayList_add($par3List, $var9); - } -} -function nms_ItemPotion_registerIcons($this, $par1IconRegister) { - $this.$field_94590_d = nms_TextureMap_registerIcon($par1IconRegister, $rt_s(819)); - $this.$field_94591_c = nms_TextureMap_registerIcon($par1IconRegister, $rt_s(1345)); - $this.$field_94592_ct = nms_TextureMap_registerIcon($par1IconRegister, $rt_s(1346)); -} -function nms_ItemPotion_func_94589_d($par0Str) { - if ($par0Str === $rt_s(819)) { - nms_Item_$callClinit(); - $par0Str = nms_Item_potion.$field_94590_d; - } else if ($par0Str === $rt_s(1345)) { - nms_Item_$callClinit(); - $par0Str = nms_Item_potion.$field_94591_c; - } else if ($par0Str !== $rt_s(1346)) - $par0Str = null; - else { - nms_Item_$callClinit(); - $par0Str = nms_Item_potion.$field_94592_ct; - } - return $par0Str; -} -function nms_ItemPotion__clinit_() { - var var$1; - var$1 = new ju_LinkedHashMap; - ju_HashMap__init_2(var$1, 16, 0.75); - var$1.$accessOrder = 0; - var$1.$head4 = null; - nms_ItemPotion_field_77835_b = var$1; -} -function nms_ItemGlassBottle() { - nms_Item.call(this); -} -function nms_ItemGlassBottle__init_(var_0) { - var var_1 = new nms_ItemGlassBottle(); - nms_ItemGlassBottle__init_0(var_1, var_0); - return var_1; -} -function nms_ItemGlassBottle__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$tabToDisplayOn = nms_CreativeTabs_tabBrewing; -} -function nms_ItemGlassBottle_getIconFromDamage($this, $par1) { - nms_Item_$callClinit(); - return nms_Item_potion.$field_94590_d; -} -function nms_ItemGlassBottle_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $var4, $var5, $var6, $var7; - $var4 = nms_Item_getMovingObjectPositionFromPlayer($this, $par2World, $par3EntityPlayer, 1); - if ($var4 === null) - return $par1ItemStack; - if ($var4.$typeOfHit === nms_EnumMovingObjectType_TILE) { - $var5 = $var4.$blockX; - $var6 = $var4.$blockY; - $var7 = $var4.$blockZ; - if (!($par3EntityPlayer.$capabilities.$allowEdit ? 1 : $par1ItemStack === null ? 0 : 1)) - return $par1ItemStack; - $var5 = nms_World_getBlockId($par2World, $var5, $var6, $var7); - if (!$var5) { - nms_Material_$callClinit(); - $var4 = nms_Material_air; - } else { - nms_Block_$callClinit(); - $var4 = nms_Block_blocksList.data[$var5].$blockMaterial; - } - nms_Material_$callClinit(); - if ($var4 === nms_Material_water) { - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - if ($par1ItemStack.$stackSize <= 0) { - $par1ItemStack = new nms_ItemStack; - $var7 = nms_Item_potion.$itemID; - $par1ItemStack.$stackSize = 0; - $par1ItemStack.$itemFrame = null; - $par1ItemStack.$itemID0 = $var7; - $par1ItemStack.$stackSize = 1; - $par1ItemStack.$itemDamage = 0; - if ($par1ItemStack.$itemDamage < 0) - $par1ItemStack.$itemDamage = 0; - return $par1ItemStack; - } - $par2World = $par3EntityPlayer.$inventory; - $var4 = new nms_ItemStack; - $var7 = nms_Item_potion.$itemID; - $var4.$stackSize = 0; - $var4.$itemFrame = null; - $var4.$itemID0 = $var7; - $var4.$stackSize = 1; - $var4.$itemDamage = 0; - if ($var4.$itemDamage < 0) - $var4.$itemDamage = 0; - if (!nms_InventoryPlayer_addItemStackToInventory($par2World, $var4)) { - $par2World = new nms_ItemStack; - $var5 = nms_Item_potion.$itemID; - $par2World.$stackSize = 0; - $par2World.$itemFrame = null; - $par2World.$itemID0 = $var5; - $par2World.$stackSize = 1; - $par2World.$itemDamage = 0; - if ($par2World.$itemDamage < 0) - $par2World.$itemDamage = 0; - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par3EntityPlayer, $par2World, 0); - } - } - } - return $par1ItemStack; -} -function nms_ItemGlassBottle_registerIcons($this, $par1IconRegister) { - return; -} -function nms_ItemEnderEye() { - nms_Item.call(this); -} -function nms_ItemEnderEye__init_(var_0) { - var var_1 = new nms_ItemEnderEye(); - nms_ItemEnderEye__init_0(var_1, var_0); - return var_1; -} -function nms_ItemEnderEye__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; -} -function nms_ItemEnderEye_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, $var12, $var30, $var13, $var16, var$16, $var14, $var18, $var20, $var22, $var24, $var26, $var15, $var27, $var17, $var28, $var19, $var29, $var21, $var30_0, $var23, $var31, $var29_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var29_0 = $thread.pop();$var31 = $thread.pop();$var23 = $thread.pop();$var30_0 = $thread.pop();$var21 = $thread.pop();$var29 = $thread.pop();$var19 = $thread.pop();$var28 = $thread.pop();$var17 = $thread.pop();$var27 = $thread.pop();$var15 = $thread.pop();$var26 = $thread.pop();$var24 = $thread.pop();$var22 = $thread.pop();$var20 = $thread.pop();$var18 = $thread.pop();$var14 = $thread.pop();var$16 = $thread.pop();$var16 = $thread.pop();$var13 = $thread.pop();$var30 = $thread.pop();$var12 - = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - $var12 = nms_World_getBlockMetadata($par3World, $par4, $par5, $par6); - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par7 = 1; - else if ($par1ItemStack === null) - $par7 = 0; - else { - nms_Item_$callClinit(); - $par7 = 1; - } - if ($par7) { - nms_Block_$callClinit(); - if ($var11 == nms_Block_endPortalFrame.$blockID && !(!($var12 & 4) ? 0 : 1)) { - if ($par3World.$isRemote) - return 1; - $par7 = $var12 + 4 | 0; - $var30 = 2; - $ptr = 1; - continue main; - } - } - return 0; - case 1: - nms_World_setBlockMetadataWithNotify($par3World, $par4, $par5, $par6, $par7, $var30); - if ($rt_suspending()) { - break main; - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - $var13 = 0; - $par10 = $par4; - $var16 = $par5 + 0.8125; - var$16 = $par6; - if ($var13 < 16) { - nms_Item_$callClinit(); - $var14 = $par10 + (5.0 + Math.random() * 6.0) / 16.0; - $var18 = var$16 + (5.0 + ju_Random_nextDouble(nms_Item_itemRand) * 6.0) / 16.0; - $var20 = 0.0; - $var22 = 0.0; - $var24 = 0.0; - $par1ItemStack = $rt_s(852); - $ptr = 2; - continue main; - } - $var11 = $var12 & 3; - $var26 = 0; - $var15 = 0; - $var27 = 0; - $var17 = 1; - $var28 = nms_Direction_rotateRight.data[$var11]; - $var19 = (-2); - a: { - while ($var19 <= 2) { - $var29 = $par4 + $rt_imul(nms_Direction_offsetX.data[$var28], $var19) | 0; - $var21 = $par6 + $rt_imul(nms_Direction_offsetZ.data[$var28], $var19) | 0; - if (nms_World_getBlockId($par3World, $var29, $par5, $var21) == nms_Block_endPortalFrame.$blockID) { - if (!nms_BlockEndPortalFrame_isEnderEyeInserted(nms_World_getBlockMetadata($par3World, $var29, $par5, $var21))) { - $var17 = 0; - break a; - } - if ($var27) - $var15 = $var19; - else { - $var27 = 1; - $var15 = $var19; - $var26 = $var19; - } - } - $var19 = $var19 + 1 | 0; - } - } - b: { - if ($var17 && $var15 == ($var26 + 2 | 0)) { - $par7 = $var26; - c: { - d: { - while ($par7 <= $var15) { - $var29 = $par4 + $rt_imul(nms_Direction_offsetX.data[$var28], $par7) | 0; - $var21 = $par6 + $rt_imul(nms_Direction_offsetZ.data[$var28], $par7) | 0; - $var30 = $var29 + (nms_Direction_offsetX.data[$var11] * 4 | 0) | 0; - $var29 = $var21 + (nms_Direction_offsetZ.data[$var11] * 4 | 0) | 0; - $var30_0 = nms_World_getBlockId($par3World, $var30, $par5, $var29); - $var23 = nms_World_getBlockMetadata($par3World, $var30, $par5, $var29); - if ($var30_0 != nms_Block_endPortalFrame.$blockID) - break d; - if (!nms_BlockEndPortalFrame_isEnderEyeInserted($var23)) - break d; - $par7 = $par7 + 1 | 0; - } - break c; - } - $var17 = 0; - } - $var27 = $var26 - 1 | 0; - while ($var27 <= ($var15 + 1 | 0)) { - $var29 = 1; - e: { - f: { - while ($var29 <= 3) { - $var21 = $par4 + $rt_imul(nms_Direction_offsetX.data[$var28], $var27) | 0; - $var30 = $par6 + $rt_imul(nms_Direction_offsetZ.data[$var28], $var27) | 0; - $par7 = $var21 + $rt_imul(nms_Direction_offsetX.data[$var11], $var29) | 0; - $var30 = $var30 + $rt_imul(nms_Direction_offsetZ.data[$var11], $var29) | 0; - $var23 = nms_World_getBlockId($par3World, $par7, $par5, $var30); - $var31 = nms_World_getBlockMetadata($par3World, $par7, $par5, $var30); - if ($var23 != nms_Block_endPortalFrame.$blockID) - break f; - if (!nms_BlockEndPortalFrame_isEnderEyeInserted($var31)) - break f; - $var29 = $var29 + 1 | 0; - } - break e; - } - $var17 = 0; - } - $var27 = $var27 + 4 | 0; - } - if ($var17) - while (true) { - if ($var26 > $var15) - break b; - $var29_0 = 1; - if ($var29_0 <= 3) { - $var21 = $par4 + $rt_imul(nms_Direction_offsetX.data[$var28], $var26) | 0; - $var30 = $par6 + $rt_imul(nms_Direction_offsetZ.data[$var28], $var26) | 0; - $par7 = $var21 + $rt_imul(nms_Direction_offsetX.data[$var11], $var29_0) | 0; - $var30 = $var30 + $rt_imul(nms_Direction_offsetZ.data[$var11], $var29_0) | 0; - $var29 = nms_Block_endPortal.$blockID; - $var21 = 0; - $var23 = 2; - $ptr = 3; - continue main; - } - $var26 = $var26 + 1 | 0; - } - } - } - return 1; - case 2: - nms_World_spawnParticle($par3World, $par1ItemStack, $var14, $var16, $var18, $var20, $var22, $var24); - if ($rt_suspending()) { - break main; - } - $var13 = $var13 + 1 | 0; - if ($var13 < 16) { - nms_Item_$callClinit(); - $var14 = $par10 + (5.0 + Math.random() * 6.0) / 16.0; - $var18 = var$16 + (5.0 + ju_Random_nextDouble(nms_Item_itemRand) * 6.0) / 16.0; - $var20 = 0.0; - $var22 = 0.0; - $var24 = 0.0; - $par1ItemStack = $rt_s(852); - continue main; - } - $var11 = $var12 & 3; - $var26 = 0; - $var15 = 0; - $var27 = 0; - $var17 = 1; - $var28 = nms_Direction_rotateRight.data[$var11]; - $var19 = (-2); - a: { - while ($var19 <= 2) { - $var29 = $par4 + $rt_imul(nms_Direction_offsetX.data[$var28], $var19) | 0; - $var21 = $par6 + $rt_imul(nms_Direction_offsetZ.data[$var28], $var19) | 0; - if (nms_World_getBlockId($par3World, $var29, $par5, $var21) == nms_Block_endPortalFrame.$blockID) { - if (!nms_BlockEndPortalFrame_isEnderEyeInserted(nms_World_getBlockMetadata($par3World, $var29, $par5, $var21))) { - $var17 = 0; - break a; - } - if ($var27) - $var15 = $var19; - else { - $var27 = 1; - $var15 = $var19; - $var26 = $var19; - } - } - $var19 = $var19 + 1 | 0; - } - } - b: { - if ($var17 && $var15 == ($var26 + 2 | 0)) { - $par7 = $var26; - c: { - d: { - while ($par7 <= $var15) { - $var29 = $par4 + $rt_imul(nms_Direction_offsetX.data[$var28], $par7) | 0; - $var21 = $par6 + $rt_imul(nms_Direction_offsetZ.data[$var28], $par7) | 0; - $var30 = $var29 + (nms_Direction_offsetX.data[$var11] * 4 | 0) | 0; - $var29 = $var21 + (nms_Direction_offsetZ.data[$var11] * 4 | 0) | 0; - $var30_0 = nms_World_getBlockId($par3World, $var30, $par5, $var29); - $var23 = nms_World_getBlockMetadata($par3World, $var30, $par5, $var29); - if ($var30_0 != nms_Block_endPortalFrame.$blockID) - break d; - if (!nms_BlockEndPortalFrame_isEnderEyeInserted($var23)) - break d; - $par7 = $par7 + 1 | 0; - } - break c; - } - $var17 = 0; - } - $var27 = $var26 - 1 | 0; - while ($var27 <= ($var15 + 1 | 0)) { - $var29 = 1; - e: { - f: { - while ($var29 <= 3) { - $var21 = $par4 + $rt_imul(nms_Direction_offsetX.data[$var28], $var27) | 0; - $var30 = $par6 + $rt_imul(nms_Direction_offsetZ.data[$var28], $var27) | 0; - $par7 = $var21 + $rt_imul(nms_Direction_offsetX.data[$var11], $var29) | 0; - $var30 = $var30 + $rt_imul(nms_Direction_offsetZ.data[$var11], $var29) | 0; - $var23 = nms_World_getBlockId($par3World, $par7, $par5, $var30); - $var31 = nms_World_getBlockMetadata($par3World, $par7, $par5, $var30); - if ($var23 != nms_Block_endPortalFrame.$blockID) - break f; - if (!nms_BlockEndPortalFrame_isEnderEyeInserted($var31)) - break f; - $var29 = $var29 + 1 | 0; - } - break e; - } - $var17 = 0; - } - $var27 = $var27 + 4 | 0; - } - if ($var17) - while (true) { - if ($var26 > $var15) - break b; - $var29_0 = 1; - if ($var29_0 <= 3) { - $var21 = $par4 + $rt_imul(nms_Direction_offsetX.data[$var28], $var26) | 0; - $var30 = $par6 + $rt_imul(nms_Direction_offsetZ.data[$var28], $var26) | 0; - $par7 = $var21 + $rt_imul(nms_Direction_offsetX.data[$var11], $var29_0) | 0; - $var30 = $var30 + $rt_imul(nms_Direction_offsetZ.data[$var11], $var29_0) | 0; - $var29 = nms_Block_endPortal.$blockID; - $var21 = 0; - $var23 = 2; - $ptr = 3; - continue main; - } - $var26 = $var26 + 1 | 0; - } - } - } - return 1; - case 3: - nms_World_setBlock($par3World, $par7, $par5, $var30, $var29, $var21, $var23); - if ($rt_suspending()) { - break main; - } - $var29_0 = $var29_0 + 1 | 0; - while (true) { - if ($var29_0 <= 3) { - $var21 = $par4 + $rt_imul(nms_Direction_offsetX.data[$var28], $var26) | 0; - $var30 = $par6 + $rt_imul(nms_Direction_offsetZ.data[$var28], $var26) | 0; - $par7 = $var21 + $rt_imul(nms_Direction_offsetX.data[$var11], $var29_0) | 0; - $var30 = $var30 + $rt_imul(nms_Direction_offsetZ.data[$var11], $var29_0) | 0; - $var29 = nms_Block_endPortal.$blockID; - $var21 = 0; - $var23 = 2; - continue main; - } - $var26 = $var26 + 1 | 0; - if ($var26 > $var15) - break; - $var29_0 = 1; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, $var12, $var30, $var13, $var16, var$16, $var14, $var18, $var20, $var22, $var24, $var26, $var15, $var27, $var17, $var28, $var19, $var29, $var21, $var30_0, $var23, $var31, $var29_0, $ptr); -} -function nms_ItemEnderEye_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $var4, $var5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3EntityPlayer = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var4 = nms_Item_getMovingObjectPositionFromPlayer($this, $par2World, $par3EntityPlayer, 0); - if ($var4 !== null && $var4.$typeOfHit === nms_EnumMovingObjectType_TILE) { - $var5 = nms_World_getBlockId($par2World, $var4.$blockX, $var4.$blockY, $var4.$blockZ); - nms_Block_$callClinit(); - if ($var5 == nms_Block_endPortalFrame.$blockID) - return $par1ItemStack; - } - return $par1ItemStack; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3EntityPlayer, $var4, $var5, $ptr); -} -function nms_ItemMonsterPlacer() { - nms_Item.call(this); - this.$theIcon4 = null; -} -function nms_ItemMonsterPlacer__init_(var_0) { - var var_1 = new nms_ItemMonsterPlacer(); - nms_ItemMonsterPlacer__init_0(var_1, var_0); - return var_1; -} -function nms_ItemMonsterPlacer__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$hasSubtypes = 1; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; -} -function nms_ItemMonsterPlacer_getItemDisplayName($this, $par1ItemStack) { - var $var2, $var3, var$4, var$5, var$6, var$7; - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(44)); - $var3 = new jl_StringBuilder; - $var3.$buffer = $rt_createCharArray(16); - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1348)); - var$5 = $this.$unlocalizedName; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$5); - var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - jl_AbstractStringBuilder_insert($var3, $var3.$length, var$5); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(683)); - var$4 = jl_String__init_0($var3.$buffer, 0, $var3.$length); - $var3 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$4); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $var3); - $var2 = jl_String_trim(jl_String__init_0($var2.$buffer, 0, $var2.$length)); - var$6 = $par1ItemStack.$itemDamage; - $par1ItemStack = nms_EntityList_IDtoClassMapping; - $var3 = jl_Integer_valueOf(var$6); - if ($var3 !== null) { - var$7 = jl_Integer_hashCode($var3); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $var3, var$7 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$7); - } else { - $par1ItemStack = $par1ItemStack.$elementData.data[0]; - while ($par1ItemStack !== null && $par1ItemStack.$key !== null) { - $par1ItemStack = $par1ItemStack.$next1; - } - } - $var3 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - if ($var3 === null) - $var3 = null; - else { - $par1ItemStack = nms_EntityList_classToStringMapping; - var$7 = jl_Object_identity($var3); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $var3, var$7 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$7); - $var3 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - if ($var3 !== null) { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var2); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(307)); - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(682)); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $var3); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(683)); - $var3 = jl_String__init_0($var2.$buffer, 0, $var2.$length); - $var2 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var3); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var2); - $var2 = jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); - } - return $var2; -} -function nms_ItemMonsterPlacer_getColorFromItemStack($this, $par1ItemStack, $par2) { - var $var3; - $var3 = ju_LinkedHashMap_get(nms_EntityList_entityEggs, jl_Integer_valueOf($par1ItemStack.$itemDamage)); - return $var3 === null ? 16777215 : $par2 ? $var3.$secondaryColor : $var3.$primaryColor; -} -function nms_ItemMonsterPlacer_requiresMultipleRenderPasses($this) { - return 1; -} -function nms_ItemMonsterPlacer_getIconFromDamageForRenderPass($this, $par1, $par2) { - return $par2 > 0 ? $this.$theIcon4 : $this.$itemIcon; -} -function nms_ItemMonsterPlacer_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, $var12, var$13, var$14, $var14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var14 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par3World.$isRemote) - return 1; - $var11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - $par4 = $par4 + nms_Facing_offsetsXForSide.data[$par7] | 0; - $par5 = $par5 + nms_Facing_offsetsYForSide.data[$par7] | 0; - $par6 = $par6 + nms_Facing_offsetsZForSide.data[$par7] | 0; - $var12 = 0.0; - if ($par7 == 1) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var11] !== null && nms_Block_blocksList.data[$var11].$getRenderType() == 11) - $var12 = 0.5; - } - $par7 = $par1ItemStack.$itemDamage; - var$13 = $par4 + 0.5; - var$14 = $par5 + $var12; - $var12 = $par6 + 0.5; - $ptr = 1; - case 1: - $tmp = nms_ItemMonsterPlacer_spawnCreature($par3World, $par7, var$13, var$14, $var12); - if ($rt_suspending()) { - break main; - } - $var14 = $tmp; - if ($var14 !== null) { - if ($var14 instanceof nms_EntityLiving && nms_ItemStack_hasDisplayName($par1ItemStack)) { - $par3World = $var14; - $var14 = nms_ItemStack_getDisplayName($par1ItemStack); - nms_DataWatcher_updateObject($par3World.$dataWatcher, 5, $var14); - } - if (!$par2EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, $var12, var$13, var$14, $var14, $ptr); -} -function nms_ItemMonsterPlacer_spawnCreature($par0World, $par1, $par2, $par4, $par6) { - var $var8, $var10, var$8, $var9, var$10, var$11, 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();var$11 = $thread.pop();var$10 = $thread.pop();$var9 = $thread.pop();var$8 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$par0World = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var8 = nms_EntityList_entityEggs; - $var10 = jl_Integer_valueOf($par1); - if ($var10 !== null) { - var$8 = jl_Integer_hashCode($var10); - $var8 = ju_HashMap_findNonNullKeyEntry($var8, $var10, var$8 & ($var8.$elementData.data.length - 1 | 0), var$8); - } else { - $var8 = $var8.$elementData.data[0]; - while ($var8 !== null && $var8.$key !== null) { - $var8 = $var8.$next1; - } - } - if (!($var8 === null ? 0 : 1)) - return null; - $var8 = null; - $var9 = 0; - while ($var9 < 1) { - $var8 = nms_EntityList_createEntityByID($par1, $par0World); - if ($var8 !== null && $var8 instanceof nms_EntityLiving) { - $var10 = $var8; - $var10.$worldObj = $par0World; - $var10.$dimension = $par0World.$provider.$dimensionId; - nms_Entity_setLocationAndAngles($var8, $par2, $par4, $par6, nms_MathHelper_wrapAngleTo180_float(Math.random() * 360.0), 0.0); - $var10.$rotationYawHead = $var10.$rotationYaw; - $var10.$renderYawOffset = $var10.$rotationYaw; - $var10.$initCreature(); - var$10 = nms_World_spawnEntityInWorld($par0World, $var8); - var$11 = $par0World.$entityList; - ju_HashMap_putImpl(var$11.$backingMap, $var8, var$11); - if (!var$10) { - var$11 = $par0World.$entitySpawnQueue; - ju_HashMap_putImpl(var$11.$backingMap, $var8, var$11); - } - var$11 = $var10.$getLivingSound(); - if (var$11 !== null) { - var$12 = $var10.$getSoundVolume(); - var$13 = $var10.$getSoundPitch(); - nms_World_playSoundAtEntity($var10.$worldObj, $var10, var$11, var$12, var$13); - } - } - $var9 = $var9 + 1 | 0; - } - return $var8; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0World, $par1, $par2, $par4, $par6, $var8, $var10, var$8, $var9, var$10, var$11, var$12, var$13, $ptr); -} -function nms_ItemMonsterPlacer_getSubItems($this, $par1, $par2CreativeTabs, $par3List) { - var $var4, $var5, var$6; - $par2CreativeTabs = nms_EntityList_entityEggs; - if ($par2CreativeTabs.$cachedValues === null) { - $var4 = new ju_LinkedHashMap$2; - $var4.$this$06 = $par2CreativeTabs; - $par2CreativeTabs.$cachedValues = $var4; - } - $var4 = $par2CreativeTabs.$cachedValues.$iterator(); - while ($var4.$hasNext()) { - $var5 = $var4.$next(); - $par2CreativeTabs = new nms_ItemStack; - var$6 = $var5.$spawnedID; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = var$6; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - } -} -function nms_ItemMonsterPlacer_registerIcons($this, $par1IconRegister) { - $this.$itemIcon = nms_TextureMap_registerIcon($par1IconRegister, $this.$unlocalizedName); - $this.$theIcon4 = nms_TextureMap_registerIcon($par1IconRegister, $rt_s(1961)); -} -function nms_ItemExpBottle() { - nms_Item.call(this); -} -function nms_ItemExpBottle__init_(var_0) { - var var_1 = new nms_ItemExpBottle(); - nms_ItemExpBottle__init_0(var_1, var_0); - return var_1; -} -function nms_ItemExpBottle__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; -} -function nms_ItemExpBottle_hasEffect($this, $par1ItemStack) { - return 1; -} -function nms_ItemExpBottle_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var var$4, var$5; - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - nms_Item_$callClinit(); - nms_World_playSoundAtEntity($par2World, $par3EntityPlayer, $rt_s(873), 0.5, 0.4000000059604645 / (Math.random() * 0.4000000059604645 + 0.800000011920929)); - if (!$par2World.$isRemote) { - var$4 = new nms_EntityExpBottle; - nms_EntityThrowable__init_2(var$4, $par2World, $par3EntityPlayer); - var$5 = nms_World_spawnEntityInWorld($par2World, var$4); - $par3EntityPlayer = $par2World.$entityList; - ju_HashMap_putImpl($par3EntityPlayer.$backingMap, var$4, $par3EntityPlayer); - if (!var$5) { - $par2World = $par2World.$entitySpawnQueue; - ju_HashMap_putImpl($par2World.$backingMap, var$4, $par2World); - } - } - return $par1ItemStack; -} -function nms_ItemFireball() { - nms_Item.call(this); -} -function nms_ItemFireball__init_(var_0) { - var var_1 = new nms_ItemFireball(); - nms_ItemFireball__init_0(var_1, var_0); - return var_1; -} -function nms_ItemFireball__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; -} -function nms_ItemFireball_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var var$11, var$12, var$13, $var11, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();$var11 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par3World.$isRemote) - return 1; - if (!$par7) - $par5 = $par5 + (-1) | 0; - if ($par7 == 1) - $par5 = $par5 + 1 | 0; - if ($par7 == 2) - $par6 = $par6 + (-1) | 0; - if ($par7 == 3) - $par6 = $par6 + 1 | 0; - if ($par7 == 4) - $par4 = $par4 + (-1) | 0; - if ($par7 == 5) - $par4 = $par4 + 1 | 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par7 = 1; - else if ($par1ItemStack === null) - $par7 = 0; - else { - nms_Item_$callClinit(); - $par7 = 1; - } - if (!$par7) - return 0; - if (nms_World_getBlockId($par3World, $par4, $par5, $par6)) { - if (!$par2EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - } - var$11 = $par4 + 0.5; - var$12 = $par5 + 0.5; - var$13 = $par6 + 0.5; - nms_Item_$callClinit(); - nms_World_playSoundEffect($par3World, var$11, var$12, var$13, $rt_s(1801), 1.0, Math.random() * 0.4000000059604645 + 0.800000011920929); - nms_Block_$callClinit(); - $par7 = nms_Block_fire.$blockID; - $var11 = 0; - var$15 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par3World, $par4, $par5, $par6, $par7, $var11, var$15); - if ($rt_suspending()) { - break main; - } - if (!$par2EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, var$11, var$12, var$13, $var11, var$15, $ptr); -} -function nms_ItemWritableBook() { - nms_Item.call(this); -} -function nms_ItemWritableBook__init_(var_0) { - var var_1 = new nms_ItemWritableBook(); - nms_ItemWritableBook__init_0(var_1, var_0); - return var_1; -} -function nms_ItemWritableBook__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; -} -function nms_ItemWritableBook_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par3EntityPlayer = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityPlayerSP_displayGUIBook($par3EntityPlayer, $par1ItemStack); - if ($rt_suspending()) { - break main; - } - return $par1ItemStack; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3EntityPlayer, $ptr); -} -function nms_ItemWritableBook_getShareTag($this) { - return 1; -} -function nms_ItemEditableBook() { - nms_Item.call(this); -} -function nms_ItemEditableBook__init_(var_0) { - var var_1 = new nms_ItemEditableBook(); - nms_ItemEditableBook__init_0(var_1, var_0); - return var_1; -} -function nms_ItemEditableBook__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$maxStackSize = 1; -} -function nms_ItemEditableBook_getItemDisplayName($this, $par1ItemStack) { - var $var3, var$3, $var2, var$5; - if ($par1ItemStack.$stackTagCompound === null ? 0 : 1) { - $var3 = $par1ItemStack.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1962)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($var3, $rt_s(1962), var$3 & ($var3.$elementData.data.length - 1 | 0), var$3); - $var3 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - if ($var3 !== null) { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(44)); - $var3 = $var3.$data4; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var3); - return jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); - } - } - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(44)); - $var3 = nms_StringTranslate_instance; - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(1348)); - var$5 = $this.$unlocalizedName; - jl_AbstractStringBuilder_insert($var2, $var2.$length, var$5); - var$5 = jl_String__init_0($var2.$buffer, 0, $var2.$length); - $var3 = nms_StringTranslate_translateNamedKey($var3, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$5)); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $var3); - return jl_String_trim(jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length)); -} -function nms_ItemEditableBook_addInformation($this, $par1ItemStack, $par2EntityPlayer, $par3List, $par4) { - var var$5, $var6, var$7, $var5, var$9; - if ($par1ItemStack.$stackTagCompound === null ? 0 : 1) { - $par2EntityPlayer = $par1ItemStack.$stackTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1963)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par2EntityPlayer, $rt_s(1963), var$5 & ($par2EntityPlayer.$elementData.data.length - 1 | 0), var$5); - $var6 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - if ($var6 !== null) { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - $par2EntityPlayer = nms_EnumChatFormatting_GRAY; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $par2EntityPlayer === null ? $rt_s(47) : $par2EntityPlayer.$field_96304_B); - var$7 = $rt_createArray(jl_Object, 1); - var$7.data[0] = $var6.$data4; - $var6 = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(1964), var$7); - var$7 = $rt_createArray(jl_Object, 0); - $var5 = new ju_Formatter; - $par2EntityPlayer = ju_Locale_defaultLocale; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - $var5.$out0 = var$9; - $var5.$locale = $par2EntityPlayer; - $par2EntityPlayer = ju_Formatter_toString(ju_Formatter_format($var5, $var5.$locale, $var6, var$7)); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $par2EntityPlayer); - ju_ArrayList_add($par3List, jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length)); - } - } -} -function nms_ItemEditableBook_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par3EntityPlayer = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityPlayerSP_displayGUIBook($par3EntityPlayer, $par1ItemStack); - if ($rt_suspending()) { - break main; - } - return $par1ItemStack; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3EntityPlayer, $ptr); -} -function nms_ItemEditableBook_getShareTag($this) { - return 1; -} -function nms_ItemEditableBook_hasEffect($this, $par1ItemStack) { - return 1; -} -function nms_ItemSeedFood() { - var a = this; nms_ItemFood.call(a); - a.$cropId = 0; - a.$soilId = 0; -} -function nms_ItemSeedFood__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_ItemSeedFood(); - nms_ItemSeedFood__init_0(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_ItemSeedFood__init_0($this, $par1, $par2, $par3, $par4, $par5) { - nms_Item__init_0($this, $par1); - $this.$itemUseDuration = 32; - $this.$healAmount = $par2; - $this.$isWolfsFavoriteMeat = 0; - $this.$saturationModifier = $par3; - $this.$tabToDisplayOn = nms_CreativeTabs_tabFood; - $this.$cropId = $par4; - $this.$soilId = $par5; -} -function nms_ItemSeedFood_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par7 != 1) - return 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $par7 = 1; - else if ($par1ItemStack === null) - $par7 = 0; - else { - nms_Item_$callClinit(); - $par7 = 1; - } - if ($par7) { - $par7 = $par5 + 1 | 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $var11 = 1; - else if ($par1ItemStack === null) - $var11 = 0; - else { - nms_Item_$callClinit(); - $var11 = 1; - } - if ($var11) { - if (nms_World_getBlockId($par3World, $par4, $par5, $par6) == $this.$soilId && (nms_World_getBlockId($par3World, $par4, $par7, $par6) ? 0 : 1)) { - $par5 = $this.$cropId; - $var11 = 0; - var$12 = 3; - $ptr = 1; - continue main; - } - return 0; - } - } - return 0; - case 1: - nms_World_setBlock($par3World, $par4, $par7, $par6, $par5, $var11, var$12); - if ($rt_suspending()) { - break main; - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, var$12, $ptr); -} -function nms_ItemEmptyMap() { - nms_ItemMapBase.call(this); -} -function nms_ItemEmptyMap__init_(var_0) { - var var_1 = new nms_ItemEmptyMap(); - nms_ItemEmptyMap__init_0(var_1, var_0); - return var_1; -} -function nms_ItemEmptyMap__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; -} -function nms_ItemEmptyMap_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $var4, var$5, var$6, $var7, var$8, var$9, $var6, var$11, var$12, var$13, var$14, var$15, var$16; - $var4 = new nms_ItemStack; - nms_Item_$callClinit(); - var$5 = nms_Item_map; - var$6 = nms_MapStorage_getUniqueDataId($par2World.$mapStorage, $rt_s(1450)); - $var7 = var$5.$itemID; - $var4.$stackSize = 0; - $var4.$itemFrame = null; - $var4.$itemID0 = $var7; - $var4.$stackSize = 1; - $var4.$itemDamage = var$6; - if ($var4.$itemDamage < 0) - $var4.$itemDamage = 0; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(1946)); - var$8 = $var4.$itemDamage; - jl_AbstractStringBuilder_insert0(var$5, var$5.$length, var$8, 10); - var$9 = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - $var6 = new nms_MapData; - $var6.$mapName = var$9; - $var6.$colors = $rt_createByteArray(16384); - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - $var6.$playersArrayList = var$5; - $var6.$playersHashMap = ju_HashMap__init_1(16, 0.75); - var$5 = new ju_LinkedHashMap; - ju_HashMap__init_2(var$5, 16, 0.75); - var$5.$accessOrder = 0; - var$5.$head4 = null; - $var6.$playersVisibleOnMap = var$5; - nms_MapStorage_setData($par2World.$mapStorage, var$9, $var6); - $var6.$scale2 = 0; - $var7 = 128 * (1 << $var6.$scale2) | 0; - var$11 = $par3EntityPlayer.$posX; - var$12 = $var7; - var$13 = var$11 / var$12; - var$14 = $rt_compare(var$13, 0.0); - var$15 = Long_fromNumber(var$13 + (var$14 > 0 ? 1.0 : var$14 >= 0 ? var$13 : (-1.0)) * 0.5); - var$16 = Long_fromInt($var7); - $var6.$xCenter = Long_mul(var$15, var$16).lo; - var$12 = $par3EntityPlayer.$posZ / var$12; - var$14 = $rt_compare(var$12, 0.0); - $var6.$zCenter = Long_mul(Long_fromNumber(var$12 + (var$14 > 0 ? 1.0 : var$14 >= 0 ? var$12 : (-1.0)) * 0.5), var$16).lo; - $var6.$dimension0 = $par2World.$provider.$dimensionId << 24 >> 24; - $var6.$dirty = 1; - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - if ($par1ItemStack.$stackSize <= 0) - return $var4; - $par2World = $par3EntityPlayer.$inventory; - var$5 = new nms_ItemStack; - var$14 = $var4.$itemID0; - $var7 = $var4.$stackSize; - var$8 = $var4.$itemDamage; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = var$14; - var$5.$stackSize = $var7; - var$5.$itemDamage = var$8; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - if ($var4.$stackTagCompound !== null) - var$5.$stackTagCompound = nms_NBTTagCompound_copy($var4.$stackTagCompound); - if (!nms_InventoryPlayer_addItemStackToInventory($par2World, var$5)) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par3EntityPlayer, $var4, 0); - return $par1ItemStack; -} -function nms_ItemSkull() { - nms_Item.call(this); - this.$field_94586_c = null; -} -var nms_ItemSkull_skullTypes = null; -var nms_ItemSkull_field_94587_a = null; -function nms_ItemSkull__init_(var_0) { - var var_1 = new nms_ItemSkull(); - nms_ItemSkull__init_0(var_1, var_0); - return var_1; -} -function nms_ItemSkull__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$tabToDisplayOn = nms_CreativeTabs_tabDecorations; - $this.$maxDamage = 0; - $this.$hasSubtypes = 1; -} -function nms_ItemSkull_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var var$11, $var12, var$13, $var11, var$15, $var13, var$17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$17 = $thread.pop();$var13 = $thread.pop();var$15 = $thread.pop();$var11 = $thread.pop();var$13 = $thread.pop();$var12 = $thread.pop();var$11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par7) - return 0; - var$11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - if (!var$11) { - nms_Material_$callClinit(); - $var12 = nms_Material_air; - } else { - nms_Block_$callClinit(); - $var12 = nms_Block_blocksList.data[var$11].$blockMaterial; - } - if (!$var12.$isSolid()) - return 0; - var$13 = $rt_compare($par7, 1); - if (!var$13) - $par5 = $par5 + 1 | 0; - if ($par7 == 2) - $par6 = $par6 + (-1) | 0; - if ($par7 == 3) - $par6 = $par6 + 1 | 0; - if ($par7 == 4) - $par4 = $par4 + (-1) | 0; - if ($par7 == 5) - $par4 = $par4 + 1 | 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - var$11 = 1; - else if ($par1ItemStack === null) - var$11 = 0; - else { - nms_Item_$callClinit(); - var$11 = 1; - } - if (!var$11) - return 0; - nms_Block_$callClinit(); - if (!nms_Block_skull.$canPlaceBlockAt($par3World, $par4, $par5, $par6)) - return 0; - $var11 = nms_Block_skull.$blockID; - var$11 = 2; - $ptr = 1; - case 1: - nms_World_setBlock($par3World, $par4, $par5, $par6, $var11, $par7, var$11); - if ($rt_suspending()) { - break main; - } - $var11 = 0; - if (!var$13) { - var$15 = $par2EntityPlayer.$rotationYaw * 16.0 / 360.0 + 0.5; - var$11 = var$15 | 0; - if (var$15 < var$11) - var$11 = var$11 - 1 | 0; - $var11 = var$11 & 15; - } - $var12 = nms_World_getBlockTileEntity($par3World, $par4, $par5, $par6); - if ($var12 !== null && $var12 instanceof nms_TileEntitySkull) { - $var13 = $rt_s(44); - if ($par1ItemStack.$stackTagCompound === null ? 0 : 1) { - $par2EntityPlayer = $par1ItemStack.$stackTagCompound.$tagMap; - var$11 = jl_String_hashCode($rt_s(1264)); - if (ju_HashMap_findNonNullKeyEntry($par2EntityPlayer, $rt_s(1264), var$11 & ($par2EntityPlayer.$elementData.data.length - 1 | 0), var$11) === null ? 0 : 1) { - var$17 = $par1ItemStack.$stackTagCompound; - $var13 = var$17.$tagMap; - var$13 = jl_String_hashCode($rt_s(1264)); - if (!(ju_HashMap_findNonNullKeyEntry($var13, $rt_s(1264), var$13 & ($var13.$elementData.data.length - 1 | 0), var$13) === null ? 0 : 1)) - $var13 = $rt_s(44); - else { - $var13 = var$17.$tagMap; - var$11 = jl_String_hashCode($rt_s(1264)); - $par2EntityPlayer = ju_HashMap_findNonNullKeyEntry($var13, $rt_s(1264), var$11 & ($var13.$elementData.data.length - 1 | 0), var$11); - $var13 = ($par2EntityPlayer === null ? null : $par2EntityPlayer.$value0).$data4; - } - } - } - $par2EntityPlayer = $var12; - $par2EntityPlayer.$skullType = $par1ItemStack.$itemDamage; - $par2EntityPlayer.$extraType = $var13; - $par2EntityPlayer.$skullRotation = $var11; - $var12 = nms_Block_skull; - $ptr = 2; - continue main; - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - case 2: - nms_BlockSkull_makeWither($var12, $par3World, $par4, $par5, $par6, $par2EntityPlayer); - if ($rt_suspending()) { - break main; - } - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, var$11, $var12, var$13, $var11, var$15, $var13, var$17, $ptr); -} -function nms_ItemSkull_getSubItems($this, $par1, $par2CreativeTabs, $par3List) { - var $var4, var$5; - $var4 = 0; - while ($var4 < nms_ItemSkull_skullTypes.data.length) { - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par1; - var$5.$stackSize = 1; - var$5.$itemDamage = $var4; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - ju_ArrayList_add($par3List, var$5); - $var4 = $var4 + 1 | 0; - } -} -function nms_ItemSkull_getIconFromDamage($this, $par1) { - if (!($par1 >= 0 && $par1 < nms_ItemSkull_skullTypes.data.length)) - $par1 = 0; - return $this.$field_94586_c.data[$par1]; -} -function nms_ItemSkull_getUnlocalizedName($this, $par1ItemStack) { - var $var2, var$3, var$4; - $var2 = $par1ItemStack.$itemDamage; - if (!($var2 >= 0 && $var2 < nms_ItemSkull_skullTypes.data.length)) - $var2 = 0; - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(1348)); - var$4 = $this.$unlocalizedName; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$4); - var$4 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$4); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(303)); - var$3 = nms_ItemSkull_skullTypes.data[$var2]; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$3); - return jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); -} -function nms_ItemSkull_getItemDisplayName($this, $par1ItemStack) { - var var$2, var$3, var$4, var$5, var$6, var$7; - a: { - if ($par1ItemStack.$itemDamage == 3 && ($par1ItemStack.$stackTagCompound === null ? 0 : 1)) { - var$2 = $par1ItemStack.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1264)); - if (ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1264), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) { - var$4 = $rt_createArray(jl_Object, 1); - var$2 = $par1ItemStack.$stackTagCompound; - $par1ItemStack = var$2.$tagMap; - var$5 = jl_String_hashCode($rt_s(1264)); - if (!(ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1264), var$5 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) - $par1ItemStack = $rt_s(44); - else { - $par1ItemStack = var$2.$tagMap; - var$6 = jl_String_hashCode($rt_s(1264)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1264), var$6 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$6); - $par1ItemStack = ($par1ItemStack === null ? null : $par1ItemStack.$value0).$data4; - } - var$4.data[0] = $par1ItemStack; - $par1ItemStack = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(1965), var$4); - break a; - } - } - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(44)); - var$2 = nms_StringTranslate_instance; - $par1ItemStack = nms_ItemSkull_getUnlocalizedName($this, $par1ItemStack); - $par1ItemStack = nms_StringTranslate_translateNamedKey(var$2, $par1ItemStack === null ? $rt_s(44) : nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $par1ItemStack)); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $par1ItemStack); - $par1ItemStack = jl_String_trim(jl_String__init_0(var$7.$buffer, 0, var$7.$length)); - } - return $par1ItemStack; -} -function nms_ItemSkull_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$field_94586_c = $rt_createArray(nms_Icon, nms_ItemSkull_field_94587_a.data.length); - $var2 = 0; - while ($var2 < nms_ItemSkull_field_94587_a.data.length) { - $this.$field_94586_c.data[$var2] = nms_TextureMap_registerIcon($par1IconRegister, nms_ItemSkull_field_94587_a.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_ItemSkull__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 5); - var$2 = var$1.data; - var$2[0] = $rt_s(1966); - var$2[1] = $rt_s(1967); - var$2[2] = $rt_s(1968); - var$2[3] = $rt_s(1969); - var$2[4] = $rt_s(1970); - nms_ItemSkull_skullTypes = var$1; - var$1 = $rt_createArray(jl_String, 5); - var$2 = var$1.data; - var$2[0] = $rt_s(1971); - var$2[1] = $rt_s(1972); - var$2[2] = $rt_s(1973); - var$2[3] = $rt_s(1974); - var$2[4] = $rt_s(1975); - nms_ItemSkull_field_94587_a = var$1; -} -function nms_ItemCarrotOnAStick() { - nms_Item.call(this); -} -function nms_ItemCarrotOnAStick__init_(var_0) { - var var_1 = new nms_ItemCarrotOnAStick(); - nms_ItemCarrotOnAStick__init_0(var_1, var_0); - return var_1; -} -function nms_ItemCarrotOnAStick__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$tabToDisplayOn = nms_CreativeTabs_tabTransport; - $this.$maxStackSize = 1; - $this.$maxDamage = 25; -} -function nms_ItemCarrotOnAStick_isFull3D($this) { - return 1; -} -function nms_ItemCarrotOnAStick_shouldRotateAroundWhenRendering($this) { - return 1; -} -function nms_ItemSimpleFoiled() { - nms_Item.call(this); -} -function nms_ItemSimpleFoiled__init_(var_0) { - var var_1 = new nms_ItemSimpleFoiled(); - nms_ItemSimpleFoiled__init_0(var_1, var_0); - return var_1; -} -function nms_ItemSimpleFoiled__init_0($this, $par1) { - nms_Item__init_0($this, $par1); -} -function nms_ItemSimpleFoiled_hasEffect($this, $par1ItemStack) { - return 1; -} -function nms_ItemFirework() { - nms_Item.call(this); -} -function nms_ItemFirework__init_(var_0) { - var var_1 = new nms_ItemFirework(); - nms_ItemFirework__init_0(var_1, var_0); - return var_1; -} -function nms_ItemFirework__init_0($this, $par1) { - nms_Item__init_0($this, $par1); -} -function nms_ItemFirework_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, var$12; - if ($par3World.$isRemote) - return 0; - $var11 = nms_EntityFireworkRocket__init_1($par3World, $par4 + $par8, $par5 + $par9, $par6 + $par10, $par1ItemStack); - $par4 = nms_World_spawnEntityInWorld($par3World, $var11); - var$12 = $par3World.$entityList; - ju_HashMap_putImpl(var$12.$backingMap, $var11, var$12); - if (!$par4) { - $par3World = $par3World.$entitySpawnQueue; - ju_HashMap_putImpl($par3World.$backingMap, $var11, $par3World); - } - if (!$par2EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; -} -function nms_ItemFirework_addInformation($this, $par1ItemStack, $par2EntityPlayer, $par3List, $par4) { - var $var8, $var10, $var5, $var6, $var7, $var9; - $par4 = $par1ItemStack.$stackTagCompound === null ? 0 : 1; - a: { - if ($par4) { - $var8 = $par1ItemStack.$stackTagCompound; - $par2EntityPlayer = $var8.$tagMap; - $var10 = jl_String_hashCode($rt_s(1513)); - if (!(ju_HashMap_findNonNullKeyEntry($par2EntityPlayer, $rt_s(1513), $var10 & ($par2EntityPlayer.$elementData.data.length - 1 | 0), $var10) === null ? 0 : 1)) { - $var5 = new nms_NBTTagCompound; - $var5.$name0 = $rt_s(1513); - $var5.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - $par2EntityPlayer = $var8.$tagMap; - $var10 = jl_String_hashCode($rt_s(1513)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par2EntityPlayer, $rt_s(1513), $var10 & ($par2EntityPlayer.$elementData.data.length - 1 | 0), $var10); - $var5 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - if ($var5 !== null) { - $par2EntityPlayer = $var5.$tagMap; - $var10 = jl_String_hashCode($rt_s(1514)); - if (ju_HashMap_findNonNullKeyEntry($par2EntityPlayer, $rt_s(1514), $var10 & ($par2EntityPlayer.$elementData.data.length - 1 | 0), $var10) === null ? 0 : 1) { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - $par2EntityPlayer = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1976)); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $par2EntityPlayer); - ju_ArrayList_add($par3List, jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0($par1ItemStack, $rt_s(307)), nms_NBTTagCompound_getByte($var5, $rt_s(1514))))); - } - $par2EntityPlayer = $var5.$tagMap; - $var10 = jl_String_hashCode($rt_s(1977)); - if (!(ju_HashMap_findNonNullKeyEntry($par2EntityPlayer, $rt_s(1977), $var10 & ($par2EntityPlayer.$elementData.data.length - 1 | 0), $var10) === null ? 0 : 1)) { - $var6 = new nms_NBTTagList; - $var6.$name0 = $rt_s(1977); - $par1ItemStack = new ju_ArrayList; - $par1ItemStack.$array1 = $rt_createArray(jl_Object, 10); - $var6.$tagList = $par1ItemStack; - } else { - $par2EntityPlayer = $var5.$tagMap; - $var7 = jl_String_hashCode($rt_s(1977)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par2EntityPlayer, $rt_s(1977), $var7 & ($par2EntityPlayer.$elementData.data.length - 1 | 0), $var7); - $var6 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - if ($var6 !== null && nms_NBTTagList_tagCount($var6) > 0) { - $var7 = 0; - while (true) { - if ($var7 >= nms_NBTTagList_tagCount($var6)) - break a; - $var8 = nms_NBTTagList_tagAt($var6, $var7); - $var9 = ju_ArrayList__init_0(); - nms_ItemFireworkCharge_func_92107_a($var8, $var9); - if (ju_ArrayList_size($var9) > 0) { - $var10 = 1; - while ($var10 < ju_ArrayList_size($var9)) { - ju_ArrayList_set($var9, $var10, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1978)), ju_ArrayList_get($var9, $var10)))); - $var10 = $var10 + 1 | 0; - } - ju_AbstractCollection_addAll($par3List, $var9); - } - $var7 = $var7 + 1 | 0; - } - } - } - } - } -} -function nms_ItemFireworkCharge() { - nms_Item.call(this); - this.$theIcon5 = null; -} -function nms_ItemFireworkCharge__init_(var_0) { - var var_1 = new nms_ItemFireworkCharge(); - nms_ItemFireworkCharge__init_0(var_1, var_0); - return var_1; -} -function nms_ItemFireworkCharge__init_0($this, $par1) { - nms_Item__init_0($this, $par1); -} -function nms_ItemFireworkCharge_getIconFromDamageForRenderPass($this, $par1, $par2) { - return $par2 > 0 ? $this.$theIcon5 : $this.$itemIcon; -} -function nms_ItemFireworkCharge_getColorFromItemStack($this, $par1ItemStack, $par2) { - var var$3, $var3, $var7, $var4, $var5, $var6, $var8, $var9, $var10, $var11; - if ($par2 != 1) - return 16777215; - $par2 = $par1ItemStack.$stackTagCompound === null ? 0 : 1; - a: { - if ($par2) { - var$3 = $par1ItemStack.$stackTagCompound; - $var3 = var$3.$tagMap; - $var7 = jl_String_hashCode($rt_s(1979)); - if (!(ju_HashMap_findNonNullKeyEntry($var3, $rt_s(1979), $var7 & ($var3.$elementData.data.length - 1 | 0), $var7) === null ? 0 : 1)) { - $var3 = new nms_NBTTagCompound; - $var3.$name0 = $rt_s(1979); - $var3.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - $var3 = var$3.$tagMap; - $var7 = jl_String_hashCode($rt_s(1979)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($var3, $rt_s(1979), $var7 & ($var3.$elementData.data.length - 1 | 0), $var7); - $var3 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - if ($var3 !== null) { - $par1ItemStack = $var3.$tagMap; - $var7 = jl_String_hashCode($rt_s(1980)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1980), $var7 & ($par1ItemStack.$elementData.data.length - 1 | 0), $var7); - $var3 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - break a; - } - } - $var3 = null; - } - if ($var3 === null) - return 9079434; - $var4 = $var3; - if ($var4.$intArray.data.length == 1) - return $var4.$intArray.data[0]; - $var5 = 0; - $var6 = 0; - $var7 = 0; - $var8 = $var4.$intArray.data; - $var9 = $var8.length; - $var10 = 0; - while ($var10 < $var9) { - $var11 = $var8[$var10]; - $var5 = $var5 + (($var11 & 16711680) >> 16) | 0; - $var6 = $var6 + (($var11 & 65280) >> 8) | 0; - $var7 = $var7 + (($var11 & 255) >> 0) | 0; - $var10 = $var10 + 1 | 0; - } - return ($var5 / $var4.$intArray.data.length | 0) << 16 | ($var6 / $var4.$intArray.data.length | 0) << 8 | ($var7 / $var4.$intArray.data.length | 0); -} -function nms_ItemFireworkCharge_requiresMultipleRenderPasses($this) { - return 1; -} -function nms_ItemFireworkCharge_addInformation($this, $par1ItemStack, $par2EntityPlayer, $par3List, $par4) { - var $var5, var$6; - if ($par1ItemStack.$stackTagCompound === null ? 0 : 1) { - $var5 = $par1ItemStack.$stackTagCompound; - $par2EntityPlayer = $var5.$tagMap; - var$6 = jl_String_hashCode($rt_s(1979)); - if (!(ju_HashMap_findNonNullKeyEntry($par2EntityPlayer, $rt_s(1979), var$6 & ($par2EntityPlayer.$elementData.data.length - 1 | 0), var$6) === null ? 0 : 1)) { - $var5 = new nms_NBTTagCompound; - $var5.$name0 = $rt_s(1979); - $var5.$tagMap = ju_HashMap__init_1(16, 0.75); - } else { - $par2EntityPlayer = $var5.$tagMap; - var$6 = jl_String_hashCode($rt_s(1979)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par2EntityPlayer, $rt_s(1979), var$6 & ($par2EntityPlayer.$elementData.data.length - 1 | 0), var$6); - $var5 = $par1ItemStack === null ? null : $par1ItemStack.$value0; - } - if ($var5 !== null) - nms_ItemFireworkCharge_func_92107_a($var5, $par3List); - } -} -function nms_ItemFireworkCharge_func_92107_a($par0NBTTagCompound, $par1List) { - var $var14, $var2, $var5, $var13, $var15, $var4, $var8, $var9, $var10, $var11, $var15_0, $var18, $var19, $var12; - $var14 = $par0NBTTagCompound.$tagMap; - $var2 = jl_String_hashCode($rt_s(1981)); - if (!(ju_HashMap_findNonNullKeyEntry($var14, $rt_s(1981), $var2 & ($var14.$elementData.data.length - 1 | 0), $var2) === null ? 0 : 1)) - $var2 = 0; - else { - $var14 = $par0NBTTagCompound.$tagMap; - $var2 = jl_String_hashCode($rt_s(1981)); - $var5 = ju_HashMap_findNonNullKeyEntry($var14, $rt_s(1981), $var2 & ($var14.$elementData.data.length - 1 | 0), $var2); - $var2 = ($var5 === null ? null : $var5.$value0).$data0; - } - if ($var2 >= 0 && $var2 <= 4) { - $var5 = new jl_StringBuilder; - $var5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var5, $var5.$length, $rt_s(1982)); - jl_AbstractStringBuilder_insert0($var5, $var5.$length, $var2, 10); - $var14 = jl_String__init_0($var5.$buffer, 0, $var5.$length); - ju_ArrayList_add($par1List, jl_String_trim(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var14))); - } else - ju_ArrayList_add($par1List, jl_String_trim(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1983)))); - $var13 = (!(ju_HashMap_getEntry($par0NBTTagCompound.$tagMap, $rt_s(1980)) === null ? 0 : 1) ? $rt_createIntArray(0) : ju_HashMap_get($par0NBTTagCompound.$tagMap, $rt_s(1980)).$intArray).data; - $var15 = $var13.length; - if ($var15 > 0) { - $var4 = 1; - $var5 = $rt_s(44); - $var8 = 0; - while ($var8 < $var15) { - $var9 = $var13[$var8]; - if (!$var4) { - $var14 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_($var14); - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0($var14, $var5), $rt_s(344))); - } - $var4 = 0; - $var10 = 0; - $var11 = 0; - a: { - while ($var11 < 16) { - if ($var9 == nms_ItemDye_dyeColors.data[$var11]) { - $var10 = 1; - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var5), nms_StatCollector_translateToLocal(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1984)), nms_ItemDye_dyeColorNames.data[$var11]))))); - break a; - } - $var11 = $var11 + 1 | 0; - } - } - if (!$var10) - $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var5), nms_StatCollector_translateToLocal($rt_s(1985)))); - $var8 = $var8 + 1 | 0; - } - ju_ArrayList_add($par1List, $var5); - } - $var13 = nms_NBTTagCompound_getIntArray($par0NBTTagCompound, $rt_s(1986)).data; - $var15 = $var13.length; - if ($var15 > 0) { - $var15_0 = 1; - $var14 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nms_StatCollector_translateToLocal($rt_s(1987))), $rt_s(307))); - $var9 = 0; - while ($var9 < $var15) { - $var18 = $var13[$var9]; - if (!$var15_0) - $var14 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var14), $rt_s(344))); - $var15_0 = 0; - $var19 = 0; - $var12 = 0; - b: { - while ($var12 < 16) { - if ($var18 == nms_ItemDye_dyeColors.data[$var12]) { - $var19 = 1; - $var14 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var14), nms_StatCollector_translateToLocal(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(1984)), nms_ItemDye_dyeColorNames.data[$var12]))))); - break b; - } - $var12 = $var12 + 1 | 0; - } - } - if (!$var19) - $var14 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var14), nms_StatCollector_translateToLocal($rt_s(1985)))); - $var9 = $var9 + 1 | 0; - } - ju_ArrayList_add($par1List, $var14); - } - if (nms_NBTTagCompound_getBoolean($par0NBTTagCompound, $rt_s(1988))) - ju_ArrayList_add($par1List, nms_StatCollector_translateToLocal($rt_s(1989))); - if (nms_NBTTagCompound_getBoolean($par0NBTTagCompound, $rt_s(1990))) - ju_ArrayList_add($par1List, nms_StatCollector_translateToLocal($rt_s(1991))); -} -function nms_ItemFireworkCharge_registerIcons($this, $par1IconRegister) { - $this.$itemIcon = nms_TextureMap_registerIcon($par1IconRegister, $this.$unlocalizedName); - $this.$theIcon5 = nms_TextureMap_registerIcon($par1IconRegister, $rt_s(1992)); -} -function nms_ItemEnchantedBook() { - nms_Item.call(this); -} -function nms_ItemEnchantedBook__init_(var_0) { - var var_1 = new nms_ItemEnchantedBook(); - nms_ItemEnchantedBook__init_0(var_1, var_0); - return var_1; -} -function nms_ItemEnchantedBook__init_0($this, $par1) { - nms_Item__init_0($this, $par1); -} -function nms_ItemEnchantedBook_hasEffect($this, $par1ItemStack) { - return 1; -} -function nms_ItemEnchantedBook_isItemTool($this, $par1ItemStack) { - return 0; -} -function nms_ItemEnchantedBook_getRarity($this, $par1ItemStack) { - var var$2, var$3, var$4; - if (nms_ItemEnchantedBook_func_92110_g($this, $par1ItemStack).$tagList.$size0 > 0) - $par1ItemStack = nms_EnumRarity_uncommon; - else { - a: { - if ($par1ItemStack.$stackTagCompound !== null) { - var$2 = $par1ItemStack.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1573)); - if (ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1573), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) { - var$4 = 1; - break a; - } - } - var$4 = 0; - } - $par1ItemStack = !var$4 ? nms_EnumRarity_common : nms_EnumRarity_rare; - } - return $par1ItemStack; -} -function nms_ItemEnchantedBook_func_92110_g($this, $par1ItemStack) { - var var$2, var$3; - a: { - if ($par1ItemStack.$stackTagCompound !== null) { - var$2 = $par1ItemStack.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1993)); - if (ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1993), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) { - $par1ItemStack = $par1ItemStack.$stackTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1993)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1993), var$3 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$3); - $par1ItemStack = $par1ItemStack === null ? null : $par1ItemStack.$value0; - break a; - } - } - $par1ItemStack = new nms_NBTTagList; - $par1ItemStack.$name0 = $rt_s(44); - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $par1ItemStack.$tagList = var$2; - } - return $par1ItemStack; -} -function nms_ItemEnchantedBook_addInformation($this, $par1ItemStack, $par2EntityPlayer, $par3List, $par4) { - var $var5, $var6, var$7, $var7, var$9, $var8; - a: { - b: { - c: { - $var5 = nms_ItemEnchantedBook_func_92110_g($this, $par1ItemStack); - if ($var5 !== null) { - $var6 = 0; - while (true) { - if ($var6 >= $var5.$tagList.$size0) - break c; - $par1ItemStack = $var5.$tagList; - if ($var6 < 0) - break a; - if ($var6 >= $par1ItemStack.$size0) - break a; - $par2EntityPlayer = $par1ItemStack.$array1.data[$var6]; - $par1ItemStack = $par2EntityPlayer.$tagMap; - var$7 = jl_String_hashCode($rt_s(1569)); - if (!(ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1569), var$7 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$7) === null ? 0 : 1)) - $var7 = 0; - else { - $par1ItemStack = $par2EntityPlayer.$tagMap; - var$7 = jl_String_hashCode($rt_s(1569)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1569), var$7 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$7); - $var7 = ($par1ItemStack === null ? null : $par1ItemStack.$value0).$data1; - } - $par1ItemStack = $var5.$tagList; - if ($var6 < 0) - break b; - if ($var6 >= $par1ItemStack.$size0) - break b; - var$9 = $par1ItemStack.$array1.data[$var6]; - $par1ItemStack = var$9.$tagMap; - var$7 = jl_String_hashCode($rt_s(1578)); - if (!(ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1578), var$7 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$7) === null ? 0 : 1)) - $var8 = 0; - else { - $par1ItemStack = var$9.$tagMap; - $var8 = jl_String_hashCode($rt_s(1578)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1578), $var8 & ($par1ItemStack.$elementData.data.length - 1 | 0), $var8); - $var8 = ($par1ItemStack === null ? null : $par1ItemStack.$value0).$data1; - } - nms_Enchantment_$callClinit(); - if (nms_Enchantment_enchantmentsList.data[$var7] !== null) - ju_ArrayList_add($par3List, nms_Enchantment_getTranslatedName(nms_Enchantment_enchantmentsList.data[$var7], $var8)); - $var6 = $var6 + 1 | 0; - } - } - } - return; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); -} -function nms_ItemEnchantedBook_func_92115_a($this, $par1ItemStack, $par2EnchantmentData) { - var $var3, $var4, $var5, var$6, $var6, var$8, var$9, var$10, $var7; - $var3 = nms_ItemEnchantedBook_func_92110_g($this, $par1ItemStack); - $var4 = 1; - $var5 = 0; - a: { - while (true) { - if ($var5 >= nms_NBTTagList_tagCount($var3)) - break a; - var$6 = $var3.$tagList; - if ($var5 < 0) - break; - if ($var5 >= var$6.$size0) - break; - $var6 = var$6.$array1.data[$var5]; - var$6 = $var6.$tagMap; - var$8 = jl_String_hashCode($rt_s(1569)); - if (!(ju_HashMap_findNonNullKeyEntry(var$6, $rt_s(1569), var$8 & (var$6.$elementData.data.length - 1 | 0), var$8) === null ? 0 : 1)) - var$9 = 0; - else { - var$6 = $var6.$tagMap; - var$8 = jl_String_hashCode($rt_s(1569)); - var$6 = ju_HashMap_findNonNullKeyEntry(var$6, $rt_s(1569), var$8 & (var$6.$elementData.data.length - 1 | 0), var$8); - var$9 = (var$6 === null ? null : var$6.$value0).$data1; - } - if (var$9 == $par2EnchantmentData.$enchantmentobj.$effectId) { - var$6 = $var6.$tagMap; - var$8 = jl_String_hashCode($rt_s(1578)); - if (!(ju_HashMap_findNonNullKeyEntry(var$6, $rt_s(1578), var$8 & (var$6.$elementData.data.length - 1 | 0), var$8) === null ? 0 : 1)) - var$9 = 0; - else { - var$6 = $var6.$tagMap; - var$8 = jl_String_hashCode($rt_s(1578)); - var$6 = ju_HashMap_findNonNullKeyEntry(var$6, $rt_s(1578), var$8 & (var$6.$elementData.data.length - 1 | 0), var$8); - var$9 = (var$6 === null ? null : var$6.$value0).$data1; - } - if (var$9 < $par2EnchantmentData.$enchantmentLevel) { - var$9 = $par2EnchantmentData.$enchantmentLevel << 16 >> 16; - var$10 = $var6.$tagMap; - var$6 = new nms_NBTTagShort; - var$6.$name0 = $rt_s(1578); - var$6.$data1 = var$9; - ju_HashMap_putImpl(var$10, $rt_s(1578), var$6); - } - $var4 = 0; - break a; - } - $var5 = $var5 + 1 | 0; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - if ($var4) { - $var7 = new nms_NBTTagCompound; - $var7.$name0 = $rt_s(44); - $var7.$tagMap = ju_HashMap__init_1(16, 0.75); - var$9 = $par2EnchantmentData.$enchantmentobj.$effectId << 16 >> 16; - var$10 = $var7.$tagMap; - var$6 = new nms_NBTTagShort; - var$6.$name0 = $rt_s(1569); - var$6.$data1 = var$9; - ju_HashMap_putImpl(var$10, $rt_s(1569), var$6); - var$9 = $par2EnchantmentData.$enchantmentLevel << 16 >> 16; - $par2EnchantmentData = $var7.$tagMap; - var$10 = new nms_NBTTagShort; - var$10.$name0 = $rt_s(1578); - var$10.$data1 = var$9; - ju_HashMap_putImpl($par2EnchantmentData, $rt_s(1578), var$10); - $var3.$tagType = 10; - ju_ArrayList_add($var3.$tagList, $var7); - } - if (!($par1ItemStack.$stackTagCompound === null ? 0 : 1)) - nms_ItemStack_setTagCompound($par1ItemStack, nms_NBTTagCompound__init_0()); - ju_HashMap_put($par1ItemStack.$stackTagCompound.$tagMap, $rt_s(1993), nms_NBTBase_setName($var3, $rt_s(1993))); -} -function nms_ItemEnchantedBook_func_92111_a($this, $par1EnchantmentData) { - var $var2, var$3; - $var2 = new nms_ItemStack; - var$3 = $this.$itemID; - $var2.$stackSize = 0; - $var2.$itemFrame = null; - $var2.$itemID0 = var$3; - $var2.$stackSize = 1; - $var2.$itemDamage = 0; - if ($var2.$itemDamage < 0) - $var2.$itemDamage = 0; - nms_ItemEnchantedBook_func_92115_a($this, $var2, $par1EnchantmentData); - return $var2; -} -function nms_ItemEnchantedBook_func_92113_a($this, $par1Enchantment, $par2List) { - var $var3, var$4, var$5, var$6; - $var3 = 1; - while ($var3 <= $par1Enchantment.$getMaxLevel()) { - var$4 = new nms_EnchantmentData; - var$4.$enchantmentobj = $par1Enchantment; - var$4.$enchantmentLevel = $var3; - var$5 = new nms_ItemStack; - var$6 = $this.$itemID; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = var$6; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - nms_ItemEnchantedBook_func_92115_a($this, var$5, var$4); - ju_ArrayList_add($par2List, var$5); - $var3 = $var3 + 1 | 0; - } -} -function nms_ItemRecord() { - nms_Item.call(this); - this.$recordName = null; -} -var nms_ItemRecord_records = null; -function nms_ItemRecord__init_(var_0, var_1) { - var var_2 = new nms_ItemRecord(); - nms_ItemRecord__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemRecord__init_0($this, $par1, $par2Str) { - nms_Item__init_0($this, $par1); - $this.$recordName = $par2Str; - $this.$maxStackSize = 1; - $this.$tabToDisplayOn = nms_CreativeTabs_tabMisc; - ju_HashMap_putImpl(nms_ItemRecord_records, $par2Str, $this); -} -function nms_ItemRecord_getIconFromDamage($this, $par1) { - return $this.$itemIcon; -} -function nms_ItemRecord_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var var$11, 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();var$11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par7 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - nms_Block_$callClinit(); - if ($par7 == nms_Block_jukebox.$blockID && !nms_World_getBlockMetadata($par3World, $par4, $par5, $par6)) { - if ($par3World.$isRemote) - return 1; - $par2EntityPlayer = nms_Block_jukebox; - $ptr = 1; - continue main; - } - return 0; - case 1: - nms_BlockJukeBox_insertRecord($par2EntityPlayer, $par3World, $par4, $par5, $par6, $par1ItemStack); - if ($rt_suspending()) { - break main; - } - $par2EntityPlayer = null; - $par7 = 1005; - var$11 = $this.$itemID; - var$12 = 0; - if (var$12 >= $par3World.$worldAccesses.$size0) { - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - } - var$13 = $par3World.$worldAccesses; - if (var$12 >= 0 && var$12 < var$13.$size0) { - var$13 = var$13.$array1.data[var$12]; - $ptr = 2; - continue main; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - case 2: - nms_RenderGlobal_playAuxSFX(var$13, $par2EntityPlayer, $par7, $par4, $par5, $par6, var$11); - if ($rt_suspending()) { - break main; - } - var$12 = var$12 + 1 | 0; - if (var$12 >= $par3World.$worldAccesses.$size0) { - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - } - var$13 = $par3World.$worldAccesses; - if (var$12 >= 0 && var$12 < var$13.$size0) { - var$13 = var$13.$array1.data[var$12]; - continue main; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, var$11, var$12, var$13, $ptr); -} -function nms_ItemRecord_addInformation($this, $par1ItemStack, $par2EntityPlayer, $par3List, $par4) { - ju_ArrayList_add($par3List, nms_ItemRecord_getRecordTitle($this)); -} -function nms_ItemRecord_getRecordTitle($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(1994)); - var$2 = $this.$recordName; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_ItemRecord_getRarity($this, $par1ItemStack) { - return nms_EnumRarity_rare; -} -function nms_ItemRecord_registerIcons($this, $par1IconRegister) { - var var$2, var$3; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(1995)); - var$3 = $this.$recordName; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$3); - $this.$itemIcon = nms_TextureMap_registerIcon($par1IconRegister, jl_String__init_0(var$2.$buffer, 0, var$2.$length)); -} -function nms_ItemRecord__clinit_() { - nms_ItemRecord_records = ju_HashMap__init_1(16, 0.75); -} -function jur_Pattern() { - var a = this; jl_Object.call(a); - a.$lexemes = null; - a.$flags0 = 0; - a.$backRefs = null; - a.$needsBackRefReplacement = 0; - a.$globalGroupIndex = 0; - a.$compCount = 0; - a.$consCount = 0; - a.$start7 = null; -} -function jur_Pattern__init_0() { - var var_0 = new jur_Pattern(); - jur_Pattern__init_(var_0); - return var_0; -} -function jur_Pattern_matcher($this, $input) { - return jur_Matcher__init_($this, $input); -} -function jur_Pattern_split($this, $inputSeq, $limit) { - var $res, $mat, $index, $curPos, var$7, var$8, var$9, var$10, var$11; - $res = new ju_ArrayList; - $res.$array1 = $rt_createArray(jl_Object, 10); - $mat = jur_Matcher__init_($this, $inputSeq); - $index = 0; - $curPos = 0; - if (!$inputSeq.$characters.data.length) { - var$7 = $rt_createArray(jl_String, 1); - var$7.data[0] = $rt_s(44); - return var$7; - } - a: { - while (true) { - if (!jur_Matcher_find($mat)) - break a; - var$8 = $index + 1 | 0; - if (var$8 >= $limit && $limit > 0) - break a; - var$9 = $mat.$matchResult; - jur_MatchResultImpl_checkGroup(var$9, 0); - $index = var$9.$groupBounds.data[0]; - if ($curPos > $index) - break; - ju_ArrayList_add($res, jl_String__init_0($inputSeq.$characters, $curPos, $index - $curPos | 0)); - var$9 = $mat.$matchResult; - jur_MatchResultImpl_checkGroup(var$9, 0); - $curPos = var$9.$groupBounds.data[1]; - $index = var$8; - } - $inputSeq = new jl_IndexOutOfBoundsException; - $inputSeq.$suppressionEnabled = 1; - $inputSeq.$writableStackTrace = 1; - $rt_throw($inputSeq); - } - var$10 = $inputSeq.$characters.data.length; - if ($curPos > var$10) { - $inputSeq = new jl_IndexOutOfBoundsException; - $inputSeq.$suppressionEnabled = 1; - $inputSeq.$writableStackTrace = 1; - $rt_throw($inputSeq); - } - b: { - ju_ArrayList_add($res, jl_String__init_0($inputSeq.$characters, $curPos, var$10 - $curPos | 0)); - var$11 = $index + 1 | 0; - if (!$limit) { - while (true) { - var$11 = var$11 + (-1) | 0; - if (var$11 < 0) - break b; - if (var$11 < 0) - break; - if (var$11 >= $res.$size0) - break; - if ($res.$array1.data[var$11].$characters.data.length) - break b; - ju_ArrayList_remove($res, var$11); - } - $inputSeq = new jl_IndexOutOfBoundsException; - $inputSeq.$suppressionEnabled = 1; - $inputSeq.$writableStackTrace = 1; - $rt_throw($inputSeq); - } - } - if (var$11 < 0) - var$11 = 0; - return ju_AbstractCollection_toArray0($res, $rt_createArray(jl_String, var$11)); -} -function jur_Pattern_split0($this, $input) { - return jur_Pattern_split($this, $input, 0); -} -function jur_Pattern_pattern($this) { - return $this.$lexemes.$orig; -} -function jur_Pattern_compile($pattern, $flags) { - var var$3; - if ($pattern === null) { - $pattern = new jl_NullPointerException; - $pattern.$suppressionEnabled = 1; - $pattern.$writableStackTrace = 1; - $pattern.$message = $rt_s(1996); - $rt_throw($pattern); - } - if ($flags && ($flags | 255) != 255) { - $pattern = new jl_IllegalArgumentException; - $pattern.$suppressionEnabled = 1; - $pattern.$writableStackTrace = 1; - $pattern.$message = $rt_s(44); - $rt_throw($pattern); - } - jur_AbstractSet_counter = 1; - var$3 = new jur_Pattern; - var$3.$backRefs = $rt_createArray(jur_FSet, 10); - var$3.$globalGroupIndex = (-1); - var$3.$compCount = (-1); - var$3.$consCount = (-1); - return jur_Pattern_compileImpl(var$3, $pattern, $flags); -} -function jur_Pattern_compileImpl($this, $pattern, $flags) { - var var$3, var$4; - $this.$lexemes = jur_Lexer__init_($pattern, $flags); - $this.$flags0 = $flags; - $this.$start7 = jur_Pattern_processExpression($this, (-1), $this.$flags0, null); - if (jur_Lexer_isEmpty($this.$lexemes)) { - if ($this.$needsBackRefReplacement) - $this.$start7.$processSecondPass(); - return $this; - } - $pattern = new jur_PatternSyntaxException; - var$3 = $this.$lexemes.$orig; - var$4 = $this.$lexemes.$curToc; - $pattern.$suppressionEnabled = 1; - $pattern.$writableStackTrace = 1; - $pattern.$index4 = (-1); - $pattern.$desc = $rt_s(44); - $pattern.$pattern0 = var$3; - $pattern.$index4 = var$4; - $rt_throw($pattern); -} -function jur_Pattern_processAlternations($this, $last) { - var $auxRange, var$3, var$4, $rangeSet; - $auxRange = new jur_CharClass; - var$3 = ($this.$flags0 & 2) != 2 ? 0 : 1; - var$4 = ($this.$flags0 & 64) != 64 ? 0 : 1; - $rangeSet = new ju_BitSet; - $rangeSet.$data9 = $rt_createIntArray(64); - $auxRange.$lowHighSurrogates = $rangeSet; - $rangeSet = new ju_BitSet; - $rangeSet.$data9 = $rt_createIntArray(0); - $auxRange.$bits = $rangeSet; - $auxRange.$ci = var$3; - $auxRange.$uci = var$4; - while (!jur_Lexer_isEmpty($this.$lexemes) && jur_Lexer_isLetter($this.$lexemes) && !($this.$lexemes.$lookAhead && $this.$lexemes.$lookAhead != (-536870788) && $this.$lexemes.$lookAhead != (-536870871))) { - $rangeSet = $this.$lexemes; - jur_Lexer_movePointer($rangeSet); - jur_CharClass_add($auxRange, $rangeSet.$lookBack); - if ($this.$lexemes.$ch != (-536870788)) - continue; - jur_Lexer_movePointer($this.$lexemes); - } - $rangeSet = jur_Pattern_processRangeSet($this, $auxRange); - $rangeSet.$setNext($last); - return $rangeSet; -} -function jur_Pattern_processExpression($this, $ch, $newFlags, $last) { - var $children, $saveFlags, $saveChangedFlags, $fSet, var$8, $child; - $children = new ju_ArrayList; - $children.$array1 = $rt_createArray(jl_Object, 10); - $saveFlags = $this.$flags0; - $saveChangedFlags = 0; - if ($newFlags != $this.$flags0) - $this.$flags0 = $newFlags; - a: { - switch ($ch) { - case -1073741784: - $fSet = new jur_NonCapFSet; - $newFlags = $this.$consCount + 1 | 0; - $this.$consCount = $newFlags; - var$8 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$8 + 1 | 0; - $fSet.$index5 = jl_Integer_toString(var$8, 10); - $fSet.$groupIndex = $newFlags; - break a; - case -536870872: - case -268435416: - break; - case -134217688: - case -67108824: - $fSet = new jur_BehindFSet; - $newFlags = $this.$consCount + 1 | 0; - $this.$consCount = $newFlags; - var$8 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$8 + 1 | 0; - $fSet.$index5 = jl_Integer_toString(var$8, 10); - $fSet.$groupIndex = $newFlags; - break a; - case -33554392: - $fSet = new jur_AtomicFSet; - $newFlags = $this.$consCount + 1 | 0; - $this.$consCount = $newFlags; - var$8 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$8 + 1 | 0; - $fSet.$index5 = jl_Integer_toString(var$8, 10); - $fSet.$groupIndex = $newFlags; - break a; - default: - $this.$globalGroupIndex = $this.$globalGroupIndex + 1 | 0; - if ($last !== null) { - $fSet = new jur_FSet; - $newFlags = $this.$globalGroupIndex; - var$8 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$8 + 1 | 0; - $fSet.$index5 = jl_Integer_toString(var$8, 10); - $fSet.$groupIndex = $newFlags; - } else { - $fSet = new jur_FinalSet; - var$8 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$8 + 1 | 0; - $fSet.$index5 = jl_Integer_toString(var$8, 10); - $fSet.$groupIndex = 0; - $saveChangedFlags = 1; - } - if ($this.$globalGroupIndex <= (-1)) - break a; - if ($this.$globalGroupIndex >= 10) - break a; - $this.$backRefs.data[$this.$globalGroupIndex] = $fSet; - break a; - } - $fSet = new jur_AheadFSet; - var$8 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$8 + 1 | 0; - $fSet.$index5 = jl_Integer_toString(var$8, 10); - $fSet.$groupIndex = (-1); - } - while (true) { - if (jur_Lexer_isLetter($this.$lexemes) && $this.$lexemes.$lookAhead == (-536870788)) - $child = jur_Pattern_processAlternations($this, $fSet); - else if ($this.$lexemes.$ch == (-536870788)) { - $child = jur_EmptySet__init_($fSet); - jur_Lexer_next($this.$lexemes); - } else { - $child = jur_Pattern_processSubExpression($this, $fSet); - if (jur_Lexer_peek($this.$lexemes) == (-536870788)) - jur_Lexer_next($this.$lexemes); - } - if ($child !== null) - ju_ArrayList_add($children, $child); - if (jur_Lexer_isEmpty($this.$lexemes)) - break; - if ($this.$lexemes.$ch == (-536870871)) - break; - } - if ($this.$lexemes.$lookBack == (-536870788)) { - $last = new jur_EmptySet; - $child = new jl_Integer; - $newFlags = jur_AbstractSet_counter; - jur_AbstractSet_counter = $newFlags + 1 | 0; - $child.$value = $newFlags; - $last.$index5 = jl_Integer_toString1($child); - $last.$next5 = $fSet; - $last.$charCount = 1; - $last.$type2 = 1; - $last.$charCount = 0; - ju_ArrayList_add($children, $last); - } - if ($this.$flags0 != $saveFlags && !$saveChangedFlags) { - $this.$flags0 = $saveFlags; - jur_Lexer_restoreFlags($this.$lexemes, $this.$flags0); - } - switch ($ch) { - case -1073741784: - $last = new jur_NonCapJointSet; - jur_JointSet__init_0($last, $children, $fSet); - return $last; - case -536870872: - $last = new jur_PositiveLookAhead; - jur_AtomicJointSet__init_($last, $children, $fSet); - return $last; - case -268435416: - break; - case -134217688: - return jur_PositiveLookBehind__init_($children, $fSet); - case -67108824: - return jur_NegativeLookBehind__init_($children, $fSet); - case -33554392: - return jur_AtomicJointSet__init_0($children, $fSet); - default: - switch (ju_ArrayList_size($children)) { - case 0: - break; - case 1: - return jur_SingleSet__init_(ju_ArrayList_get($children, 0), $fSet); - default: - return jur_JointSet__init_1($children, $fSet); - } - return jur_EmptySet__init_($fSet); - } - return jur_NegativeLookAhead__init_($children, $fSet); -} -function jur_Pattern_processSequence($this) { - var $substring, var$2, var$3, $ch, var$5; - $substring = new jl_StringBuffer; - $substring.$buffer = $rt_createCharArray(16); - while (!jur_Lexer_isEmpty($this.$lexemes) && jur_Lexer_isLetter($this.$lexemes)) { - var$2 = $this.$lexemes; - if (var$2.$ch <= 56319 && var$2.$ch >= 55296 ? 1 : 0) - break; - var$2 = $this.$lexemes; - if (var$2.$ch <= 57343 && var$2.$ch >= 56320 ? 1 : 0) - break; - var$3 = $this.$lexemes.$lookAheadST === null ? 0 : 1; - if (!(!var$3 && !$this.$lexemes.$lookAhead)) { - var$3 = $this.$lexemes.$lookAheadST === null ? 0 : 1; - if (!(!var$3 && ($this.$lexemes.$lookAhead < 0 ? 0 : 1)) && $this.$lexemes.$lookAhead != (-536870871) && ($this.$lexemes.$lookAhead & (-2147418113)) != (-2147483608) && $this.$lexemes.$lookAhead != (-536870788) && $this.$lexemes.$lookAhead != (-536870876)) - break; - } - var$2 = $this.$lexemes; - jur_Lexer_movePointer(var$2); - $ch = var$2.$lookBack; - if (!($ch >= 65536 && $ch <= 1114111 ? 1 : 0)) { - var$3 = $ch & 65535; - $ch = $substring.$length; - jl_AbstractStringBuilder_insertSpace($substring, $ch, $ch + 1 | 0); - $substring.$buffer.data[$ch] = var$3; - } else { - var$5 = jl_Character_toChars($ch); - $ch = var$5.data.length; - jl_AbstractStringBuilder_insert6($substring, $substring.$length, var$5, 0, $ch); - } - } - if (!(($this.$flags0 & 2) != 2 ? 0 : 1)) - return jur_SequenceSet__init_($substring); - if (($this.$flags0 & 64) != 64 ? 0 : 1) - return jur_UCISequenceSet__init_($substring); - var$2 = new jur_CISequenceSet; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - var$2.$index5 = jl_Integer_toString(var$3, 10); - var$2.$charCount = 1; - var$2.$string0 = jl_String__init_0($substring.$buffer, 0, $substring.$length); - var$2.$charCount = $substring.$length; - return var$2; -} -function jur_Pattern_processDecomposedChar($this) { - var $codePoints, $curSymb, $curSymbIndex, $codePointsHangul, var$5, var$6, $readCodePoints; - $codePoints = $rt_createIntArray(4); - $curSymb = (-1); - $curSymbIndex = (-1); - if (!jur_Lexer_isEmpty($this.$lexemes) && jur_Lexer_isLetter($this.$lexemes)) { - $codePointsHangul = $codePoints.data; - var$5 = $this.$lexemes; - jur_Lexer_movePointer(var$5); - $curSymb = var$5.$lookBack; - $codePointsHangul[0] = $curSymb; - $curSymbIndex = $curSymb - 4352 | 0; - } - if ($curSymbIndex >= 0 && $curSymbIndex < 19) { - $codePointsHangul = $rt_createCharArray(3); - $codePoints = $codePointsHangul.data; - $codePoints[0] = $curSymb & 65535; - var$6 = $this.$lexemes.$ch; - $readCodePoints = var$6 - 4449 | 0; - if ($readCodePoints >= 0 && $readCodePoints < 21) { - $codePoints[1] = var$6 & 65535; - jur_Lexer_movePointer($this.$lexemes); - var$6 = $this.$lexemes.$ch; - $curSymb = var$6 - 4519 | 0; - if ($curSymb >= 0 && $curSymb < 28) { - $codePoints[2] = var$6 & 65535; - jur_Lexer_movePointer($this.$lexemes); - var$5 = new jur_HangulDecomposedCharSet; - $curSymb = jur_AbstractSet_counter; - jur_AbstractSet_counter = $curSymb + 1 | 0; - var$5.$index5 = jl_Integer_toString($curSymb, 10); - var$5.$decomposedChar = $codePointsHangul; - var$5.$decomposedCharLength = 3; - return var$5; - } - var$5 = new jur_HangulDecomposedCharSet; - $curSymb = jur_AbstractSet_counter; - jur_AbstractSet_counter = $curSymb + 1 | 0; - var$5.$index5 = jl_Integer_toString($curSymb, 10); - var$5.$decomposedChar = $codePointsHangul; - var$5.$decomposedCharLength = 2; - return var$5; - } - if (!(($this.$flags0 & 2) != 2 ? 0 : 1)) { - var$5 = new jur_CharSet; - $readCodePoints = $codePoints[0]; - $curSymb = jur_AbstractSet_counter; - jur_AbstractSet_counter = $curSymb + 1 | 0; - var$5.$index5 = jl_Integer_toString($curSymb, 10); - var$5.$charCount = 1; - var$5.$ch0 = $readCodePoints; - return var$5; - } - if (!(($this.$flags0 & 64) != 64 ? 0 : 1)) { - var$5 = new jur_CICharSet; - $readCodePoints = $codePoints[0]; - jur_AbstractSet__init_(var$5); - var$5.$charCount = 1; - var$5.$ch1 = $readCodePoints; - var$5.$supplement = jur_Pattern_getSupplement($readCodePoints); - return var$5; - } - var$5 = new jur_UCICharSet; - $readCodePoints = $codePoints[0]; - $curSymb = jur_AbstractSet_counter; - jur_AbstractSet_counter = $curSymb + 1 | 0; - var$5.$index5 = jl_Integer_toString($curSymb, 10); - var$5.$charCount = 1; - var$5.$ch2 = (String.fromCharCode((String.fromCharCode($readCodePoints)).toUpperCase().charCodeAt(0) & 65535)).toLowerCase().charCodeAt(0) & 65535; - return var$5; - } - $codePointsHangul = $codePoints.data; - $curSymb = 1; - while ($curSymb < 4 && !jur_Lexer_isEmpty($this.$lexemes) && jur_Lexer_isLetter($this.$lexemes)) { - $readCodePoints = $curSymb + 1 | 0; - $codePointsHangul[$curSymb] = jur_Lexer_next($this.$lexemes); - $curSymb = $readCodePoints; - } - if ($curSymb == 1 && !jur_Lexer_hasSingleCodepointDecomposition($codePointsHangul[0])) - return jur_Pattern_processCharSet($this, $codePointsHangul[0]); - if (!jur_Pattern_hasFlag($this, 2)) - return jur_DecomposedCharSet__init_($codePoints, $curSymb); - if (!jur_Pattern_hasFlag($this, 64)) - return jur_CIDecomposedCharSet__init_($codePoints, $curSymb); - var$5 = new jur_UCIDecomposedCharSet; - jur_DecomposedCharSet__init_0(var$5, $codePoints, $curSymb); - return var$5; -} -function jur_Pattern_processSubExpression($this, $last) { - var $cur, $term, var$4, var$5, $next, var$7, var$8; - a: { - if (jur_Lexer_isLetter($this.$lexemes) && !($this.$lexemes.$lookAheadST === null ? 0 : 1) && ($this.$lexemes.$lookAhead < 0 ? 0 : 1)) { - if (($this.$flags0 & 128) != 128 ? 0 : 1) { - $cur = jur_Pattern_processDecomposedChar($this); - if (!jur_Lexer_isEmpty($this.$lexemes) && !($this.$lexemes.$ch == (-536870871) && !($last instanceof jur_FinalSet)) && $this.$lexemes.$ch != (-536870788) && !jur_Lexer_isLetter($this.$lexemes)) - $cur = jur_Pattern_processQuantifier($this, $last, $cur); - } else { - $term = $this.$lexemes; - if (!($term.$ch <= 56319 && $term.$ch >= 55296 ? 1 : 0)) { - $term = $this.$lexemes; - if (!($term.$ch <= 57343 && $term.$ch >= 56320 ? 1 : 0)) { - $cur = jur_Pattern_processSequence($this); - break a; - } - } - $cur = jur_Pattern_processQuantifier($this, $last, jur_Pattern_processTerminal($this, $last)); - } - } else if ($this.$lexemes.$ch != (-536870871)) - $cur = jur_Pattern_processQuantifier($this, $last, jur_Pattern_processTerminal($this, $last)); - else { - if ($last instanceof jur_FinalSet) { - $last = new jur_PatternSyntaxException; - $cur = $this.$lexemes.$orig; - var$4 = $this.$lexemes.$curToc; - $last.$suppressionEnabled = 1; - $last.$writableStackTrace = 1; - $last.$index4 = (-1); - $last.$desc = $rt_s(44); - $last.$pattern0 = $cur; - $last.$index4 = var$4; - $rt_throw($last); - } - $cur = new jur_EmptySet; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $cur.$index5 = jl_Integer_toString(var$5, 10); - $cur.$next5 = $last; - $cur.$charCount = 1; - $cur.$type2 = 1; - $cur.$charCount = 0; - } - } - if (!jur_Lexer_isEmpty($this.$lexemes) && !($this.$lexemes.$ch == (-536870871) && !($last instanceof jur_FinalSet)) && $this.$lexemes.$ch != (-536870788)) { - $next = jur_Pattern_processSubExpression($this, $last); - if ($cur instanceof jur_LeafQuantifierSet && !($cur instanceof jur_CompositeQuantifierSet) && !($cur instanceof jur_GroupQuantifierSet) && !($cur instanceof jur_AltQuantifierSet)) { - $last = $cur; - if (!$next.$first0($last.$innerSet)) { - $cur = new jur_UnifiedQuantifierSet; - $term = $last.$innerSet; - var$7 = $last.$next5; - var$8 = $last.$type2; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $cur.$index5 = jl_Integer_toString(var$5, 10); - $cur.$next5 = var$7; - $cur.$innerSet = $term; - $cur.$type2 = var$8; - $cur.$leaf = $term; - $cur.$innerSet.$setNext($cur); - } - } - if (($next.$getType0() & 65535) != 43) - $cur.$setNext($next); - else - $cur.$setNext($next.$innerSet); - } else { - if ($cur === null) - return null; - $cur.$setNext($last); - } - if (($cur.$getType0() & 65535) != 43) - return $cur; - return $cur.$innerSet; -} -function jur_Pattern_processQuantifier($this, $last, $term) { - var $quant, $q, var$5, $leaf, var$7, var$8; - $quant = $this.$lexemes.$ch; - if ($term !== null && !($term instanceof jur_LeafSet)) { - switch ($quant) { - case -2147483606: - jur_Lexer_movePointer($this.$lexemes); - $q = new jur_PossessiveGroupQuantifierSet; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $q.$index5 = jl_Integer_toString(var$5, 10); - $q.$next5 = $last; - $q.$innerSet = $term; - $q.$type2 = $quant; - $term.$setNext(jur_FSet_posFSet); - return $q; - case -2147483605: - jur_Lexer_movePointer($this.$lexemes); - $leaf = new jur_PosPlusGroupQuantifierSet; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $leaf.$index5 = jl_Integer_toString(var$5, 10); - $leaf.$next5 = $last; - $leaf.$innerSet = $term; - $leaf.$type2 = (-2147483606); - $term.$setNext(jur_FSet_posFSet); - return $leaf; - case -2147483585: - jur_Lexer_movePointer($this.$lexemes); - $leaf = new jur_PosAltGroupQuantifierSet; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $leaf.$index5 = jl_Integer_toString(var$5, 10); - $leaf.$next5 = $last; - $leaf.$innerSet = $term; - $leaf.$type2 = (-536870849); - $term.$setNext(jur_FSet_posFSet); - return $leaf; - case -2147483525: - $leaf = new jur_PosCompositeGroupQuantifierSet; - $q = $this.$lexemes; - var$7 = $q.$curST; - jur_Lexer_movePointer($q); - $q = var$7; - $quant = $this.$compCount + 1 | 0; - $this.$compCount = $quant; - var$8 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$8 + 1 | 0; - $leaf.$index5 = jl_Integer_toString(var$8, 10); - $leaf.$next5 = $last; - $leaf.$innerSet = $term; - $leaf.$type2 = (-536870849); - $leaf.$quantifier = $q; - $leaf.$setCounter = $quant; - $term.$setNext(jur_FSet_posFSet); - return $leaf; - case -1073741782: - case -1073741781: - jur_Lexer_movePointer($this.$lexemes); - $q = new jur_ReluctantGroupQuantifierSet; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $q.$index5 = jl_Integer_toString(var$5, 10); - $q.$next5 = $last; - $q.$innerSet = $term; - $q.$type2 = $quant; - $term.$setNext($q); - return $q; - case -1073741761: - jur_Lexer_movePointer($this.$lexemes); - $q = new jur_RelAltGroupQuantifierSet; - jur_QuantifierSet__init_($q, $term, $last, (-536870849)); - $term.$setNext($last); - return $q; - case -1073741701: - $q = new jur_RelCompositeGroupQuantifierSet; - $leaf = $this.$lexemes; - var$7 = $leaf.$curST; - jur_Lexer_movePointer($leaf); - $leaf = var$7; - var$5 = $this.$compCount + 1 | 0; - $this.$compCount = var$5; - jur_RelCompositeGroupQuantifierSet__init_($q, $leaf, $term, $last, (-536870849), var$5); - $term.$setNext($q); - return $q; - case -536870870: - case -536870869: - jur_Lexer_next($this.$lexemes); - $q = $term.$getType0() != (-2147483602) ? jur_GroupQuantifierSet__init_($term, $last, $quant) : jur_Pattern_hasFlag($this, 32) ? jur_DotAllQuantifierSet__init_($term, $last, $quant) : jur_DotQuantifierSet__init_($term, $last, $quant, jur_AbstractLineTerminator_getInstance($this.$flags0)); - $term.$setNext($q); - return $q; - case -536870849: - jur_Lexer_next($this.$lexemes); - $q = jur_AltGroupQuantifierSet__init_($term, $last, (-536870849)); - $term.$setNext($last); - return $q; - case -536870789: - $q = new jur_CompositeGroupQuantifierSet; - $leaf = jur_Lexer_nextSpecial($this.$lexemes); - var$5 = $this.$compCount + 1 | 0; - $this.$compCount = var$5; - jur_CompositeGroupQuantifierSet__init_($q, $leaf, $term, $last, (-536870849), var$5); - $term.$setNext($q); - return $q; - default: - } - return $term; - } - $leaf = null; - if ($term !== null) - $leaf = $term; - switch ($quant) { - case -2147483606: - case -2147483605: - jur_Lexer_next($this.$lexemes); - $q = jur_PossessiveQuantifierSet__init_($leaf, $last, $quant); - jur_AbstractSet_setNext($leaf, $q); - return $q; - case -2147483585: - jur_Lexer_next($this.$lexemes); - return jur_PossessiveAltQuantifierSet__init_($leaf, $last, (-2147483585)); - case -2147483525: - return jur_PossessiveCompositeQuantifierSet__init_(jur_Lexer_nextSpecial($this.$lexemes), $leaf, $last, (-2147483525)); - case -1073741782: - case -1073741781: - jur_Lexer_next($this.$lexemes); - $q = jur_ReluctantQuantifierSet__init_($leaf, $last, $quant); - jur_AbstractSet_setNext($leaf, $q); - return $q; - case -1073741761: - jur_Lexer_next($this.$lexemes); - return jur_ReluctantAltQuantifierSet__init_($leaf, $last, (-1073741761)); - case -1073741701: - return jur_ReluctantCompositeQuantifierSet__init_(jur_Lexer_nextSpecial($this.$lexemes), $leaf, $last, (-1073741701)); - case -536870870: - case -536870869: - jur_Lexer_next($this.$lexemes); - $q = jur_LeafQuantifierSet__init_($leaf, $last, $quant); - jur_AbstractSet_setNext($leaf, $q); - return $q; - case -536870849: - jur_Lexer_next($this.$lexemes); - return jur_AltQuantifierSet__init_($leaf, $last, (-536870849)); - case -536870789: - return jur_CompositeQuantifierSet__init_(jur_Lexer_nextSpecial($this.$lexemes), $leaf, $last, (-536870789)); - default: - } - return $term; -} -function jur_Pattern_processTerminal($this, $last) { - var $term, var$3, $ch, $newFlags, $number, $negative, $cc; - $term = null; - var$3 = $last instanceof jur_FinalSet; - while (true) { - a: { - $ch = jur_Lexer_peek($this.$lexemes); - if (($ch & (-2147418113)) == (-2147483608)) { - jur_Lexer_next($this.$lexemes); - $newFlags = ($ch & 16711680) >> 16; - $ch = $ch & (-16711681); - if ($ch == (-16777176)) - $this.$flags0 = $newFlags; - else { - if ($ch != (-1073741784)) - $newFlags = $this.$flags0; - $term = jur_Pattern_processExpression($this, $ch, $newFlags, $last); - if (jur_Lexer_peek($this.$lexemes) != (-536870871)) - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Lexer_toString($this.$lexemes), jur_Lexer_getIndex($this.$lexemes))); - jur_Lexer_next($this.$lexemes); - } - } else { - b: { - c: { - switch ($ch) { - case -2147483599: - case -2147483598: - case -2147483597: - case -2147483596: - case -2147483595: - case -2147483594: - case -2147483593: - case -2147483592: - case -2147483591: - $number = ($ch & 2147483647) - 48 | 0; - if ($this.$globalGroupIndex < $number) - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Lexer_toString($this.$lexemes), jur_Lexer_getIndex($this.$lexemes))); - jur_Lexer_next($this.$lexemes); - $this.$consCount = $this.$consCount + 1 | 0; - $term = !jur_Pattern_hasFlag($this, 2) ? jur_BackReferenceSet__init_($number, $this.$consCount) : jur_Pattern_hasFlag($this, 64) ? jur_UCIBackReferenceSet__init_($number, $this.$consCount) : jur_CIBackReferenceSet__init_($number, $this.$consCount); - $this.$backRefs.data[$number].$isBackReferenced = 1; - $this.$needsBackRefReplacement = 1; - break a; - case -2147483583: - break; - case -2147483582: - jur_Lexer_next($this.$lexemes); - $term = jur_WordBoundary__init_(0); - break a; - case -2147483577: - jur_Lexer_next($this.$lexemes); - $term = jur_PreviousMatch__init_0(); - break a; - case -2147483558: - jur_Lexer_next($this.$lexemes); - $term = new jur_EOLSet; - $number = $this.$consCount + 1 | 0; - $this.$consCount = $number; - jur_EOLSet__init_($term, $number); - break a; - case -2147483550: - jur_Lexer_next($this.$lexemes); - $term = jur_WordBoundary__init_(1); - break a; - case -2147483526: - jur_Lexer_next($this.$lexemes); - $term = jur_EOISet__init_0(); - break a; - case -536870876: - break c; - case -536870866: - jur_Lexer_next($this.$lexemes); - if (jur_Pattern_hasFlag($this, 32)) { - $term = jur_DotAllSet__init_0(); - break a; - } - $term = jur_DotSet__init_(jur_AbstractLineTerminator_getInstance($this.$flags0)); - break a; - case -536870821: - jur_Lexer_next($this.$lexemes); - $negative = 0; - if (jur_Lexer_peek($this.$lexemes) == (-536870818)) { - $negative = 1; - jur_Lexer_next($this.$lexemes); - } - $term = jur_Pattern_processRange($this, $negative, $last); - if (jur_Lexer_peek($this.$lexemes) != (-536870819)) - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Lexer_toString($this.$lexemes), jur_Lexer_getIndex($this.$lexemes))); - jur_Lexer_setMode($this.$lexemes, 1); - jur_Lexer_next($this.$lexemes); - break a; - case -536870818: - jur_Lexer_next($this.$lexemes); - $this.$consCount = $this.$consCount + 1 | 0; - if (!jur_Pattern_hasFlag($this, 8)) { - $term = jur_SOLSet__init_0(); - break a; - } - $term = jur_MultiLineSOLSet__init_(jur_AbstractLineTerminator_getInstance($this.$flags0)); - break a; - case 0: - $cc = jur_Lexer_peekSpecial($this.$lexemes); - if ($cc !== null) - $term = jur_Pattern_processRangeSet($this, $cc); - else { - if (jur_Lexer_isEmpty($this.$lexemes)) { - $term = jur_EmptySet__init_($last); - break a; - } - $term = jur_CharSet__init_($ch & 65535); - } - jur_Lexer_next($this.$lexemes); - break a; - default: - break b; - } - jur_Lexer_next($this.$lexemes); - $term = jur_SOLSet__init_0(); - break a; - } - jur_Lexer_next($this.$lexemes); - $this.$consCount = $this.$consCount + 1 | 0; - if (jur_Pattern_hasFlag($this, 8)) { - if (jur_Pattern_hasFlag($this, 1)) { - $term = jur_UMultiLineEOLSet__init_($this.$consCount); - break a; - } - $term = jur_MultiLineEOLSet__init_($this.$consCount); - break a; - } - if (jur_Pattern_hasFlag($this, 1)) { - $term = jur_UEOLSet__init_($this.$consCount); - break a; - } - $term = jur_EOLSet__init_0($this.$consCount); - break a; - } - if ($ch >= 0 && !jur_Lexer_isSpecial($this.$lexemes)) { - $term = jur_Pattern_processCharSet($this, $ch); - jur_Lexer_next($this.$lexemes); - } else if ($ch == (-536870788)) - $term = jur_EmptySet__init_($last); - else { - if ($ch != (-536870871)) - $rt_throw(jur_PatternSyntaxException__init_(!jur_Lexer_isSpecial($this.$lexemes) ? jl_Character_toString0($ch & 65535) : jur_Lexer_peekSpecial($this.$lexemes).$toString(), jur_Lexer_toString($this.$lexemes), jur_Lexer_getIndex($this.$lexemes))); - if (var$3) - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Lexer_toString($this.$lexemes), jur_Lexer_getIndex($this.$lexemes))); - $term = jur_EmptySet__init_($last); - } - } - } - if ($ch != (-16777176)) - break; - } - return $term; -} -function jur_Pattern_processRange($this, $negative, $last) { - var $rangeSet; - $rangeSet = jur_Pattern_processRangeSet($this, jur_Pattern_processRangeExpression($this, $negative)); - $rangeSet.$setNext($last); - return $rangeSet; -} -function jur_Pattern_processRangeExpression($this, $alt) { - var $res, $negative, $cur, $cs, $buffer, $intersection, $notClosed, $firstInClass, var$10, $$je; - $res = new jur_CharClass; - $negative = ($this.$flags0 & 2) != 2 ? 0 : 1; - $cur = ($this.$flags0 & 64) != 64 ? 0 : 1; - $cs = new ju_BitSet; - $cs.$data9 = $rt_createIntArray(64); - $res.$lowHighSurrogates = $cs; - $cs = new ju_BitSet; - $cs.$data9 = $rt_createIntArray(0); - $res.$bits = $cs; - $res.$ci = $negative; - $res.$uci = $cur; - jur_AbstractCharClass_setNegative($res, $alt); - $buffer = (-1); - $intersection = 0; - $notClosed = 0; - $firstInClass = 1; - a: { - b: { - c: while (true) { - if (jur_Lexer_isEmpty($this.$lexemes)) - break a; - $notClosed = $this.$lexemes.$ch == (-536870819) && !$firstInClass ? 0 : 1; - if (!$notClosed) - break a; - d: { - switch ($this.$lexemes.$ch) { - case -536870874: - if ($buffer >= 0) - jur_CharClass_add($res, $buffer); - $buffer = jur_Lexer_next($this.$lexemes); - if (jur_Lexer_peek($this.$lexemes) != (-536870874)) { - $buffer = 38; - break d; - } - if (jur_Lexer_lookAhead($this.$lexemes) == (-536870821)) { - jur_Lexer_next($this.$lexemes); - $intersection = 1; - $buffer = (-1); - break d; - } - jur_Lexer_next($this.$lexemes); - if ($firstInClass) { - $res = jur_Pattern_processRangeExpression($this, 0); - break d; - } - if (jur_Lexer_peek($this.$lexemes) == (-536870819)) - break d; - jur_CharClass_intersection($res, jur_Pattern_processRangeExpression($this, 0)); - break d; - case -536870867: - if (!$firstInClass && jur_Lexer_lookAhead($this.$lexemes) != (-536870819) && jur_Lexer_lookAhead($this.$lexemes) != (-536870821) && $buffer >= 0) { - jur_Lexer_next($this.$lexemes); - $cur = jur_Lexer_peek($this.$lexemes); - if (jur_Lexer_isSpecial($this.$lexemes)) - break c; - if ($cur < 0 && jur_Lexer_lookAhead($this.$lexemes) != (-536870819) && jur_Lexer_lookAhead($this.$lexemes) != (-536870821) && $buffer >= 0) - break c; - e: { - try { - if (jur_Lexer_isLetter0($cur)) - break e; - $cur = $cur & 65535; - break e; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - break b; - } else { - throw $$e; - } - } - } - try { - jur_CharClass_add0($res, $buffer, $cur); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - break b; - } else { - throw $$e; - } - } - jur_Lexer_next($this.$lexemes); - $buffer = (-1); - break d; - } - if ($buffer >= 0) - jur_CharClass_add($res, $buffer); - $buffer = 45; - jur_Lexer_next($this.$lexemes); - break d; - case -536870821: - if ($buffer >= 0) { - jur_CharClass_add($res, $buffer); - $buffer = (-1); - } - jur_Lexer_next($this.$lexemes); - $negative = 0; - if ($this.$lexemes.$ch == (-536870818)) { - jur_Lexer_next($this.$lexemes); - $negative = 1; - } - if (!$intersection) - jur_CharClass_union($res, jur_Pattern_processRangeExpression($this, $negative)); - else - jur_CharClass_intersection($res, jur_Pattern_processRangeExpression($this, $negative)); - $intersection = 0; - jur_Lexer_next($this.$lexemes); - break d; - case -536870819: - break; - case -536870818: - if ($buffer >= 0) - jur_CharClass_add($res, $buffer); - $buffer = 94; - jur_Lexer_next($this.$lexemes); - break d; - case 0: - if ($buffer >= 0) - jur_CharClass_add($res, $buffer); - $cs = $this.$lexemes.$curST; - if ($cs === null) - $buffer = 0; - else { - jur_CharClass_add1($res, $cs); - $buffer = (-1); - } - jur_Lexer_next($this.$lexemes); - break d; - default: - if ($buffer >= 0) - jur_CharClass_add($res, $buffer); - $cs = $this.$lexemes; - jur_Lexer_movePointer($cs); - $buffer = $cs.$lookBack; - break d; - } - if ($buffer >= 0) - jur_CharClass_add($res, $buffer); - $buffer = 93; - jur_Lexer_next($this.$lexemes); - } - $firstInClass = 0; - } - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Pattern_pattern($this), jur_Lexer_getIndex($this.$lexemes))); - } - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Pattern_pattern($this), jur_Lexer_getIndex($this.$lexemes))); - } - if (!$notClosed) { - if ($buffer >= 0) - jur_CharClass_add($res, $buffer); - return $res; - } - $res = new jur_PatternSyntaxException; - var$10 = $this.$lexemes.$orig; - $alt = $this.$lexemes.$curToc - 1 | 0; - $res.$suppressionEnabled = 1; - $res.$writableStackTrace = 1; - $res.$index4 = (-1); - $res.$desc = $rt_s(44); - $res.$pattern0 = var$10; - $res.$index4 = $alt; - $rt_throw($res); -} -function jur_Pattern_processCharSet($this, $ch) { - var $isSupplCodePoint, var$3, var$4; - $isSupplCodePoint = $ch >= 65536 && $ch <= 1114111 ? 1 : 0; - if (($this.$flags0 & 2) != 2 ? 0 : 1) { - a: { - if (!($ch >= 97 && $ch <= 122)) { - if ($ch < 65) - break a; - if ($ch > 90) - break a; - } - var$3 = new jur_CICharSet; - $ch = $ch & 65535; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - var$3.$index5 = jl_Integer_toString(var$4, 10); - var$3.$charCount = 1; - var$3.$ch1 = $ch; - var$3.$supplement = jur_Pattern_getSupplement($ch); - return var$3; - } - if ((($this.$flags0 & 64) != 64 ? 0 : 1) && $ch > 128) { - if ($isSupplCodePoint) { - var$3 = new jur_UCISupplCharSet; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - var$3.$index5 = jl_Integer_toString(var$4, 10); - var$3.$charCount = 1; - var$3.$charCount = 2; - var$3.$ch3 = (String.fromCharCode((String.fromCharCode($ch)).toUpperCase().charCodeAt(0))).toLowerCase().charCodeAt(0); - return var$3; - } - if ($ch <= 57343 && $ch >= 56320 ? 1 : 0) { - var$3 = new jur_LowSurrogateCharSet; - $ch = $ch & 65535; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - var$3.$index5 = jl_Integer_toString(var$4, 10); - var$3.$low = $ch; - return var$3; - } - if ($ch <= 56319 && $ch >= 55296 ? 1 : 0) - return jur_HighSurrogateCharSet__init_($ch & 65535); - var$3 = new jur_UCICharSet; - $ch = $ch & 65535; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - var$3.$index5 = jl_Integer_toString(var$4, 10); - var$3.$charCount = 1; - var$3.$ch2 = (String.fromCharCode((String.fromCharCode($ch)).toUpperCase().charCodeAt(0) & 65535)).toLowerCase().charCodeAt(0) & 65535; - return var$3; - } - } - if ($isSupplCodePoint) - return jur_SupplCharSet__init_($ch); - if (jur_Lexer_isLowSurrogate($ch)) - return jur_LowSurrogateCharSet__init_($ch & 65535); - if (!jur_Lexer_isHighSurrogate($ch)) - return jur_CharSet__init_($ch & 65535); - return jur_HighSurrogateCharSet__init_($ch & 65535); -} -function jur_Pattern_processRangeSet($this, $charClass) { - var $surrogates, var$3, $lowHighSurrRangeSet, var$5, var$6; - if (!jur_AbstractCharClass_hasLowHighSurrogates($charClass)) { - if ($charClass.$mayContainSupplCodepoints) { - if (!$charClass.$hasUCI()) { - $surrogates = new jur_SupplRangeSet; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $surrogates.$index5 = jl_Integer_toString(var$3, 10); - $surrogates.$chars = $charClass.$getInstance4(); - $surrogates.$alt = $charClass.$alt0; - return $surrogates; - } - $surrogates = new jur_UCISupplRangeSet; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $surrogates.$index5 = jl_Integer_toString(var$3, 10); - $surrogates.$chars = $charClass.$getInstance4(); - $surrogates.$alt = $charClass.$alt0; - return $surrogates; - } - if (!$charClass.$hasUCI()) { - $surrogates = new jur_RangeSet; - $lowHighSurrRangeSet = new jl_Integer; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $lowHighSurrRangeSet.$value = var$3; - $surrogates.$index5 = jl_Integer_toString1($lowHighSurrRangeSet); - $surrogates.$charCount = 1; - $surrogates.$chars0 = $charClass.$getInstance4(); - $surrogates.$alt1 = $charClass.$alt0; - return $surrogates; - } - $surrogates = new jur_UCIRangeSet; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $surrogates.$index5 = jl_Integer_toString(var$3, 10); - $surrogates.$charCount = 1; - $surrogates.$chars1 = $charClass.$getInstance4(); - $surrogates.$alt2 = $charClass.$alt0; - return $surrogates; - } - $surrogates = jur_AbstractCharClass_getSurrogates($charClass); - $lowHighSurrRangeSet = new jur_LowHighSurrogateRangeSet; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $lowHighSurrRangeSet.$index5 = jl_Integer_toString(var$3, 10); - $lowHighSurrRangeSet.$surrChars = $surrogates; - $lowHighSurrRangeSet.$alt3 = $surrogates.$alt0; - if ($charClass.$mayContainSupplCodepoints) { - if (!$charClass.$hasUCI()) { - $surrogates = new jur_CompositeRangeSet; - var$5 = new jur_SupplRangeSet; - $charClass = jur_AbstractCharClass_getWithoutSurrogates($charClass); - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - var$5.$index5 = jl_Integer_toString(var$3, 10); - var$5.$chars = $charClass; - var$5.$alt = $charClass.$alt0; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $surrogates.$index5 = jl_Integer_toString(var$3, 10); - $surrogates.$withoutSurrogates = var$5; - $surrogates.$withSurrogates = $lowHighSurrRangeSet; - return $surrogates; - } - $surrogates = new jur_CompositeRangeSet; - var$6 = new jur_UCISupplRangeSet; - $charClass = jur_AbstractCharClass_getWithoutSurrogates($charClass); - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - var$6.$index5 = jl_Integer_toString(var$3, 10); - var$6.$chars = $charClass; - var$6.$alt = $charClass.$alt0; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $surrogates.$index5 = jl_Integer_toString(var$3, 10); - $surrogates.$withoutSurrogates = var$6; - $surrogates.$withSurrogates = $lowHighSurrRangeSet; - return $surrogates; - } - if ($charClass.$hasUCI()) { - $surrogates = new jur_CompositeRangeSet; - var$6 = new jur_UCIRangeSet; - $charClass = jur_AbstractCharClass_getWithoutSurrogates($charClass); - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - var$6.$index5 = jl_Integer_toString(var$3, 10); - var$6.$charCount = 1; - var$6.$chars1 = $charClass; - var$6.$alt2 = $charClass.$alt0; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $surrogates.$index5 = jl_Integer_toString(var$3, 10); - $surrogates.$withoutSurrogates = var$6; - $surrogates.$withSurrogates = $lowHighSurrRangeSet; - return $surrogates; - } - $surrogates = new jur_CompositeRangeSet; - var$6 = new jur_RangeSet; - $charClass = jur_AbstractCharClass_getWithoutSurrogates($charClass); - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - var$6.$index5 = jl_Integer_toString(var$3, 10); - var$6.$charCount = 1; - var$6.$chars0 = $charClass; - var$6.$alt1 = $charClass.$alt0; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $surrogates.$index5 = jl_Integer_toString(var$3, 10); - $surrogates.$withoutSurrogates = var$6; - $surrogates.$withSurrogates = $lowHighSurrRangeSet; - return $surrogates; -} -function jur_Pattern_compile0($pattern) { - return jur_Pattern_compile($pattern, 0); -} -function jur_Pattern_quote($s) { - var $sb, $apos, var$4, var$5, $apos_0; - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(1997)); - $apos = 0; - while (true) { - var$4 = jl_String_indexOf1($s, $rt_s(1998), $apos); - if (var$4 < 0) { - var$4 = $s.$characters.data.length; - if ($apos > var$4) { - $s = new jl_IndexOutOfBoundsException; - $s.$suppressionEnabled = 1; - $s.$writableStackTrace = 1; - $rt_throw($s); - } - var$5 = jl_String__init_0($s.$characters, $apos, var$4 - $apos | 0); - jl_AbstractStringBuilder_insert($sb, $sb.$length, var$5); - jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(1998)); - return jl_String__init_0($sb.$buffer, 0, $sb.$length); - } - $apos_0 = var$4 + 2 | 0; - if ($apos > $apos_0) - break; - var$5 = jl_String__init_0($s.$characters, $apos, $apos_0 - $apos | 0); - jl_AbstractStringBuilder_insert($sb, $sb.$length, var$5); - jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(1999)); - $apos = $apos_0; - } - $s = new jl_IndexOutOfBoundsException; - $s.$suppressionEnabled = 1; - $s.$writableStackTrace = 1; - $rt_throw($s); -} -function jur_Pattern_groupCount($this) { - return $this.$globalGroupIndex; -} -function jur_Pattern_compCount($this) { - return $this.$compCount + 1 | 0; -} -function jur_Pattern_consCount($this) { - return $this.$consCount + 1 | 0; -} -function jur_Pattern_getSupplement($ch) { - if ($ch >= 97 && $ch <= 122) - $ch = ($ch - 32 | 0) & 65535; - else if ($ch >= 65 && $ch <= 90) - $ch = ($ch + 32 | 0) & 65535; - return $ch; -} -function jur_Pattern_hasFlag($this, $flag) { - return ($this.$flags0 & $flag) != $flag ? 0 : 1; -} -function jur_Pattern__init_($this) { - $this.$backRefs = $rt_createArray(jur_FSet, 10); - $this.$globalGroupIndex = (-1); - $this.$compCount = (-1); - $this.$consCount = (-1); -} -function ju_SortedMap() { -} -function ju_NavigableMap() { -} -function ju_TreeMap() { - var a = this; ju_AbstractMap.call(a); - a.$root = null; - a.$comparator = null; - a.$originalComparator = null; - a.$modCount3 = 0; - a.$cachedEntrySet = null; -} -function ju_TreeMap__init_0() { - var var_0 = new ju_TreeMap(); - ju_TreeMap__init_(var_0); - return var_0; -} -function ju_TreeMap__init_($this) { - var var$1; - var$1 = null; - $this.$originalComparator = var$1; - if (var$1 === null) { - var$1 = new ju_TreeMap$1; - var$1.$this$05 = $this; - } - $this.$comparator = var$1; -} -function ju_TreeMap_get($this, $key) { - var $node; - $node = ju_TreeMap_findExact($this, $key); - return $node === null ? null : $node.$value8; -} -function ju_TreeMap_put($this, $key, $value) { - var $node, $old; - $this.$root = ju_TreeMap_getOrCreateNode($this, $this.$root, $key); - $node = ju_TreeMap_findExact($this, $key); - $old = $node.$value8; - $node.$value8 = $value; - $node.$value8 = $value; - $this.$modCount3 = $this.$modCount3 + 1 | 0; - return $old; -} -function ju_TreeMap_findExact($this, $key) { - var $node, var$3, $cmp; - $node = $this.$root; - while (true) { - if ($node === null) - return null; - var$3 = $node.$key0; - $cmp = $key !== null ? $key.$compareTo4(var$3) : jl_String_compareTo(var$3, $key); - if (!$cmp) - break; - $node = $cmp >= 0 ? $node.$right : $node.$left0; - } - return $node; -} -function ju_TreeMap_findExactOrNext($this, $key, $reverse) { - var $node, $lastForward, var$5, $cmp, var$7; - $node = $this.$root; - $lastForward = null; - while ($node !== null) { - var$5 = $node.$key0; - $cmp = $key !== null ? $key.$compareTo4(var$5) : jl_String_compareTo(var$5, $key); - if ($reverse) - $cmp = -$cmp; - if (!$cmp) - return $node; - if ($cmp >= 0) - $node = $reverse ? $node.$left0 : $node.$right; - else { - var$7 = $reverse ? $node.$right : $node.$left0; - $lastForward = $node; - $node = var$7; - } - } - return $lastForward; -} -function ju_TreeMap_pathToExactOrNext($this, $key, $reverse) { - var $path, $depth, $node, var$6, $cmp, var$8; - $path = $rt_createArray(ju_TreeMap$TreeNode, $this.$root === null ? 0 : $this.$root.$height3); - $depth = 0; - $node = $this.$root; - a: { - while ($node !== null) { - var$6 = $node.$key0; - $cmp = $key !== null ? $key.$compareTo4(var$6) : jl_String_compareTo(var$6, $key); - if ($reverse) - $cmp = -$cmp; - if (!$cmp) { - var$8 = $path.data; - $reverse = $depth + 1 | 0; - var$8[$depth] = $node; - break a; - } - if ($cmp >= 0) - $node = $reverse ? $node.$left0 : $node.$right; - else { - var$8 = $path.data; - $cmp = $depth + 1 | 0; - var$8[$depth] = $node; - $node = $reverse ? $node.$right : $node.$left0; - $depth = $cmp; - } - } - $reverse = $depth; - } - return ju_Arrays_copyOf1($path, $reverse); -} -function ju_TreeMap_findNext($this, $key, $reverse) { - var $node, $lastForward, var$5, $cmp, var$7; - $node = $this.$root; - $lastForward = null; - while ($node !== null) { - var$5 = $node.$key0; - $cmp = $key !== null ? $key.$compareTo4(var$5) : jl_String_compareTo(var$5, $key); - if ($reverse) - $cmp = -$cmp; - if ($cmp >= 0) - $node = $reverse ? $node.$left0 : $node.$right; - else { - var$7 = $reverse ? $node.$right : $node.$left0; - $lastForward = $node; - $node = var$7; - } - } - return $lastForward; -} -function ju_TreeMap_pathToNext($this, $key, $reverse) { - var $path, $depth, $node, var$6, $cmp, var$8; - $path = $rt_createArray(ju_TreeMap$TreeNode, $this.$root === null ? 0 : $this.$root.$height3); - $depth = 0; - $node = $this.$root; - while ($node !== null) { - var$6 = $node.$key0; - $cmp = $key !== null ? $key.$compareTo4(var$6) : jl_String_compareTo(var$6, $key); - if ($reverse) - $cmp = -$cmp; - if ($cmp >= 0) - $node = $reverse ? $node.$left0 : $node.$right; - else { - var$8 = $path.data; - $cmp = $depth + 1 | 0; - var$8[$depth] = $node; - $node = $reverse ? $node.$right : $node.$left0; - $depth = $cmp; - } - } - return ju_Arrays_copyOf1($path, $depth); -} -function ju_TreeMap_pathToFirst($this, $reverse) { - var $path, $depth, $node, var$5, var$6; - $path = $rt_createArray(ju_TreeMap$TreeNode, $this.$root === null ? 0 : $this.$root.$height3); - $depth = 0; - $node = $this.$root; - while ($node !== null) { - var$5 = $path.data; - var$6 = $depth + 1 | 0; - var$5[$depth] = $node; - $node = $reverse ? $node.$right : $node.$left0; - $depth = var$6; - } - return ju_Arrays_copyOf1($path, $depth); -} -function ju_TreeMap_getOrCreateNode($this, $root, $key) { - var var$3, var$4, $cmp; - if ($root === null) { - $root = new ju_TreeMap$TreeNode; - var$3 = null; - $root.$key0 = $key; - $root.$value8 = var$3; - $root.$height3 = 1; - $root.$size4 = 1; - return $root; - } - var$4 = $root.$key0; - $cmp = $key === null ? jl_String_compareTo(var$4, $key) : jl_String_compareTo($key, var$4); - if (!$cmp) - return $root; - if ($cmp >= 0) - $root.$right = ju_TreeMap_getOrCreateNode($this, $root.$right, $key); - else - $root.$left0 = ju_TreeMap_getOrCreateNode($this, $root.$left0, $key); - ju_TreeMap$TreeNode_fix($root); - return ju_TreeMap$TreeNode_balance($root); -} -function ju_TreeMap_deleteNode($this, $right, $key) { - var $node, $cmp, $left, $pathToMin, $minDepth, var$8, $minDepth_0; - if ($right === null) - return null; - $node = $right.$key0; - $cmp = $key === null ? jl_String_compareTo($node, $key) : jl_String_compareTo($key, $node); - if ($cmp < 0) - $right.$left0 = ju_TreeMap_deleteNode($this, $right.$left0, $key); - else if ($cmp > 0) - $right.$right = ju_TreeMap_deleteNode($this, $right.$right, $key); - else { - if ($right.$right === null) - return $right.$left0; - $left = $right.$left0; - $right = $right.$right; - $pathToMin = $rt_createArray(ju_TreeMap$TreeNode, $right.$height3); - $minDepth = 0; - while ($right.$left0 !== null) { - var$8 = $pathToMin.data; - $minDepth_0 = $minDepth + 1 | 0; - var$8[$minDepth] = $right; - $right = $right.$left0; - $minDepth = $minDepth_0; - } - $key = $right.$right; - while ($minDepth > 0) { - var$8 = $pathToMin.data; - $minDepth = $minDepth + (-1) | 0; - $node = var$8[$minDepth]; - $node.$left0 = $key; - ju_TreeMap$TreeNode_fix($node); - $key = ju_TreeMap$TreeNode_balance($node); - } - $right.$right = $key; - $right.$left0 = $left; - ju_TreeMap$TreeNode_fix($right); - } - ju_TreeMap$TreeNode_fix($right); - return ju_TreeMap$TreeNode_balance($right); -} -function ju_TreeMap_entrySet($this) { - var var$1, var$2, var$3; - if ($this.$cachedEntrySet === null) { - var$1 = new ju_TreeMap$EntrySet; - var$2 = null; - var$3 = null; - var$1.$modCount4 = (-1); - var$1.$owner0 = $this; - var$1.$from = var$2; - var$1.$fromIncluded = 1; - var$1.$fromChecked = 0; - var$1.$to = var$3; - var$1.$toIncluded = 1; - var$1.$toChecked = 0; - var$1.$reverse0 = 0; - $this.$cachedEntrySet = var$1; - } - return $this.$cachedEntrySet; -} -function ju_TreeMap_size($this) { - return $this.$root === null ? 0 : $this.$root.$size4; -} -function ju_TreeMap_height($this) { - return $this.$root === null ? 0 : $this.$root.$height3; -} -function nms_StepSound() { - var a = this; jl_Object.call(a); - a.$stepSoundName = null; - a.$stepSoundVolume = 0.0; - a.$stepSoundPitch = 0.0; -} -function nms_StepSound__init_(var_0, var_1, var_2) { - var var_3 = new nms_StepSound(); - nms_StepSound__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_StepSound__init_0($this, $par1Str, $par2, $par3) { - $this.$stepSoundName = $par1Str; - $this.$stepSoundVolume = $par2; - $this.$stepSoundPitch = $par3; -} -function nms_StepSound_getVolume($this) { - return $this.$stepSoundVolume; -} -function nms_StepSound_getPitch($this) { - return $this.$stepSoundPitch; -} -function nms_StepSound_getBreakSound($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(2000)); - var$2 = $this.$stepSoundName; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_StepSound_getStepSound($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(2001)); - var$2 = $this.$stepSoundName; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -function nms_StepSound_getPlaceSound($this) { - return $this.$getBreakSound(); -} -function nms_StepSoundStone() { - nms_StepSound.call(this); -} -function nms_StepSoundStone__init_(var_0, var_1, var_2) { - var var_3 = new nms_StepSoundStone(); - nms_StepSoundStone__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_StepSoundStone__init_0($this, $par1Str, $par2, $par3) { - $this.$stepSoundName = $par1Str; - $this.$stepSoundVolume = $par2; - $this.$stepSoundPitch = $par3; -} -function nms_StepSoundStone_getBreakSound($this) { - return $rt_s(888); -} -function nms_StepSoundStone_getPlaceSound($this) { - return $rt_s(2002); -} -function nms_StepSoundSand() { - nms_StepSound.call(this); -} -function nms_StepSoundSand__init_(var_0, var_1, var_2) { - var var_3 = new nms_StepSoundSand(); - nms_StepSoundSand__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_StepSoundSand__init_0($this, $par1Str, $par2, $par3) { - $this.$stepSoundName = $par1Str; - $this.$stepSoundVolume = $par2; - $this.$stepSoundPitch = $par3; -} -function nms_StepSoundSand_getBreakSound($this) { - return $rt_s(2003); -} -function nms_StepSoundAnvil() { - nms_StepSound.call(this); -} -function nms_StepSoundAnvil__init_(var_0, var_1, var_2) { - var var_3 = new nms_StepSoundAnvil(); - nms_StepSoundAnvil__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_StepSoundAnvil__init_0($this, $par1Str, $par2, $par3) { - $this.$stepSoundName = $par1Str; - $this.$stepSoundVolume = $par2; - $this.$stepSoundPitch = $par3; -} -function nms_StepSoundAnvil_getBreakSound($this) { - return $rt_s(2004); -} -function nms_StepSoundAnvil_getPlaceSound($this) { - return $rt_s(887); -} -function nms_NoiseGenerator() { - jl_Object.call(this); -} -function nms_NoiseGeneratorPerlin() { - var a = this; nms_NoiseGenerator.call(a); - a.$permutations = null; - a.$xCoord1 = 0.0; - a.$yCoord1 = 0.0; - a.$zCoord1 = 0.0; -} -function nms_NoiseGeneratorPerlin__init_1() { - var var_0 = new nms_NoiseGeneratorPerlin(); - nms_NoiseGeneratorPerlin__init_(var_0); - return var_0; -} -function nms_NoiseGeneratorPerlin__init_0(var_0) { - var var_1 = new nms_NoiseGeneratorPerlin(); - nms_NoiseGeneratorPerlin__init_2(var_1, var_0); - return var_1; -} -function nms_NoiseGeneratorPerlin__init_($this) { - nms_NoiseGeneratorPerlin__init_2($this, new ju_Random); -} -function nms_NoiseGeneratorPerlin__init_2($this, $par1Random) { - var $var2, var$3, $var2_0, $var3, $var4; - $this.$permutations = $rt_createIntArray(512); - $this.$xCoord1 = Math.random() * 256.0; - $this.$yCoord1 = Math.random() * 256.0; - $this.$zCoord1 = Math.random() * 256.0; - $var2 = 0; - while ($var2 < 256) { - var$3 = $this.$permutations.data; - $var2_0 = $var2 + 1 | 0; - var$3[$var2] = $var2; - $var2 = $var2_0; - } - $var2 = 0; - while ($var2 < 256) { - $var3 = 256 - $var2 | 0; - $var3 = (Math.random() * $var3 | 0) + $var2 | 0; - $var4 = $this.$permutations.data[$var2]; - $this.$permutations.data[$var2] = $this.$permutations.data[$var3]; - $this.$permutations.data[$var3] = $var4; - $this.$permutations.data[$var2 + 256 | 0] = $this.$permutations.data[$var2]; - $var2 = $var2 + 1 | 0; - } -} -function nms_NoiseGeneratorPerlin_lerp($this, $par1, $par3, $par5) { - return $par3 + $par1 * ($par5 - $par3); -} -function nms_NoiseGeneratorPerlin_func_76309_a($this, $par1, $var9, $var9_0) { - var $var6, $var7; - $var6 = $par1 & 15; - $var7 = (1 - (($var6 & 8) >> 3) | 0) * $var9; - if ($var6 < 4) - $var9 = 0.0; - else if ($var6 != 12 && $var6 != 14) - $var9 = $var9_0; - if ($var6 & 1) - $var7 = -$var7; - if ($var6 & 2) - $var9 = -$var9; - return $var7 + $var9; -} -function nms_NoiseGeneratorPerlin_grad($this, $par1, $var11, $var11_0, $var11_1) { - var $var8, $var9; - $var8 = $par1 & 15; - $var9 = $var8 >= 8 ? $var11_0 : $var11; - if ($var8 >= 4) - $var11_0 = $var8 != 12 && $var8 != 14 ? $var11_1 : $var11; - if ($var8 & 1) - $var9 = -$var9; - if ($var8 & 2) - $var11_0 = -$var11_0; - return $var9 + $var11_0; -} -function nms_NoiseGeneratorPerlin_populateNoiseArray($this, $par1ArrayOfDouble, $par2, $par4, $par6, $par8, $par9, $par10, $par11, $par13, $par15, $par17) { - var $var75, $var77, $var30, $var31, $var78, $var34, $var33, $var35, $var37, $var54, $var38, $var40, var$24, $var41, $var42, $var19, $var66, $var67, $var22, $var79, $var19_0, $var20, $var29, $var42_0, $var44, $var45, $var47, $var48, $var49, $var51, $var52, $var55, $var56, $var69, $var71, $var72, $var74, $var76, var$50, $var62; - a: { - if ($par9 == 1) { - $var75 = 0; - $var77 = 1.0 / $par17; - $var30 = 0; - while ($var30 < $par8) { - $var31 = $par2 + $var30 * $par11 + $this.$xCoord1; - $var78 = $var31 | 0; - if ($var31 < $var78) - $var78 = $var78 + (-1) | 0; - $var34 = $var78 & 255; - $var33 = $var31 - $var78; - $var35 = $var33 * $var33 * $var33 * ($var33 * ($var33 * 6.0 - 15.0) + 10.0); - $var37 = 0; - $var54 = $var34 + 1 | 0; - $par13 = $var33 - 1.0; - while ($var37 < $par10) { - $var38 = $par6 + $var37 * $par15 + $this.$zCoord1; - $var40 = $var38 | 0; - if ($var38 < $var40) - $var40 = $var40 + (-1) | 0; - var$24 = $par1ArrayOfDouble.data; - $var41 = $var40 & 255; - $par17 = $var38 - $var40; - $var42 = $par17 * $par17 * $par17 * ($par17 * ($par17 * 6.0 - 15.0) + 10.0); - $var19 = $this.$permutations.data[$var34] + 0 | 0; - $var66 = $this.$permutations.data[$var19] + $var41 | 0; - $var67 = $this.$permutations.data[$var54] + 0 | 0; - $var22 = $this.$permutations.data[$var67] + $var41 | 0; - $par4 = nms_NoiseGeneratorPerlin_lerp($this, $var35, nms_NoiseGeneratorPerlin_func_76309_a($this, $this.$permutations.data[$var66], $var33, $par17), nms_NoiseGeneratorPerlin_grad($this, $this.$permutations.data[$var22], $par13, 0.0, $par17)); - $par9 = $this.$permutations.data[$var66 + 1 | 0]; - $par17 = $par17 - 1.0; - $var79 = nms_NoiseGeneratorPerlin_lerp($this, $var42, $par4, nms_NoiseGeneratorPerlin_lerp($this, $var35, nms_NoiseGeneratorPerlin_grad($this, $par9, $var33, 0.0, $par17), nms_NoiseGeneratorPerlin_grad($this, $this.$permutations.data[$var22 + 1 | 0], $par13, 0.0, $par17))); - $par9 = $var75 + 1 | 0; - var$24[$var75] = var$24[$var75] + $var79 * $var77; - $var37 = $var37 + 1 | 0; - $var75 = $par9; - } - $var30 = $var30 + 1 | 0; - } - } else { - $var19_0 = 0; - $var20 = 1.0 / $par17; - $var22 = (-1); - $var29 = 0.0; - $var31 = 0.0; - $var33 = 0.0; - $var35 = 0.0; - $var37 = 0; - while (true) { - if ($var37 >= $par8) - break a; - $var38 = $par2 + $var37 * $par11 + $this.$xCoord1; - $var40 = $var38 | 0; - if ($var38 < $var40) - $var40 = $var40 + (-1) | 0; - $var41 = $var40 & 255; - $var77 = $var38 - $var40; - $var42_0 = $var77 * $var77 * $var77 * ($var77 * ($var77 * 6.0 - 15.0) + 10.0); - $var44 = 0; - $var19 = $var41 + 1 | 0; - $var38 = $var77 - 1.0; - while ($var44 < $par10) { - $var45 = $par6 + $var44 * $par15 + $this.$zCoord1; - $var47 = $var45 | 0; - if ($var45 < $var47) - $var47 = $var47 + (-1) | 0; - $var48 = $var47 & 255; - $var45 = $var45 - $var47; - $var49 = $var45 * $var45 * $var45 * ($var45 * ($var45 * 6.0 - 15.0) + 10.0); - $var51 = 0; - $var79 = $var45 - 1.0; - while ($var51 < $par9) { - $var52 = $par4 + $var51 * $par13 + $this.$yCoord1; - $var54 = $var52 | 0; - if ($var52 < $var54) - $var54 = $var54 + (-1) | 0; - $var55 = $var54 & 255; - $par17 = $var52 - $var54; - $var56 = $par17 * $par17 * $par17 * ($par17 * ($par17 * 6.0 - 15.0) + 10.0); - if ($var51 && $var55 == $var22) - $var55 = $var22; - else { - $var69 = $this.$permutations.data[$var41] + $var55 | 0; - $var71 = $this.$permutations.data[$var69] + $var48 | 0; - $var72 = $this.$permutations.data[$var69 + 1 | 0] + $var48 | 0; - $var74 = $this.$permutations.data[$var19] + $var55 | 0; - $var75 = $this.$permutations.data[$var74] + $var48 | 0; - $var76 = $this.$permutations.data[$var74 + 1 | 0] + $var48 | 0; - $var29 = nms_NoiseGeneratorPerlin_lerp($this, $var42_0, nms_NoiseGeneratorPerlin_grad($this, $this.$permutations.data[$var71], $var77, $par17, $var45), nms_NoiseGeneratorPerlin_grad($this, $this.$permutations.data[$var75], $var38, $par17, $var45)); - $var22 = $this.$permutations.data[$var72]; - $var52 = $par17 - 1.0; - $var31 = nms_NoiseGeneratorPerlin_lerp($this, $var42_0, nms_NoiseGeneratorPerlin_grad($this, $var22, $var77, $var52, $var45), nms_NoiseGeneratorPerlin_grad($this, $this.$permutations.data[$var76], $var38, $var52, $var45)); - $var33 = nms_NoiseGeneratorPerlin_lerp($this, $var42_0, nms_NoiseGeneratorPerlin_grad($this, $this.$permutations.data[$var71 + 1 | 0], $var77, $par17, $var79), nms_NoiseGeneratorPerlin_grad($this, $this.$permutations.data[$var75 + 1 | 0], $var38, $par17, $var79)); - $var35 = nms_NoiseGeneratorPerlin_lerp($this, $var42_0, nms_NoiseGeneratorPerlin_grad($this, $this.$permutations.data[$var72 + 1 | 0], $var77, $var52, $var79), nms_NoiseGeneratorPerlin_grad($this, $this.$permutations.data[$var76 + 1 | 0], $var38, $var52, $var79)); - } - var$50 = $par1ArrayOfDouble.data; - $var62 = nms_NoiseGeneratorPerlin_lerp($this, $var49, nms_NoiseGeneratorPerlin_lerp($this, $var56, $var29, $var31), nms_NoiseGeneratorPerlin_lerp($this, $var56, $var33, $var35)); - $var22 = $var19_0 + 1 | 0; - var$50[$var19_0] = var$50[$var19_0] + $var62 * $var20; - $var51 = $var51 + 1 | 0; - $var19_0 = $var22; - $var22 = $var55; - } - $var44 = $var44 + 1 | 0; - } - $var37 = $var37 + 1 | 0; - } - } - } -} -function nms_BlockStone() { - nms_Block.call(this); -} -function nms_BlockStone__init_(var_0) { - var var_1 = new nms_BlockStone(); - nms_BlockStone__init_0(var_1, var_0); - return var_1; -} -function nms_BlockStone__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockStone_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_cobblestone.$blockID; -} -function nms_BlockGrass() { - var a = this; nms_Block.call(a); - a.$iconGrassTop = null; - a.$iconSnowSide = null; - a.$iconGrassSideOverlay = null; -} -function nms_BlockGrass__init_(var_0) { - var var_1 = new nms_BlockGrass(); - nms_BlockGrass__init_0(var_1, var_0); - return var_1; -} -function nms_BlockGrass__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_grass); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockGrass_getIcon($this, $par1, $par2) { - var var$3; - if ($par1 == 1) - var$3 = $this.$iconGrassTop; - else if ($par1) - var$3 = $this.$blockIcon; - else { - nms_Block_$callClinit(); - var$3 = nms_Block_dirt.$getIcon($par1, 0); - } - return var$3; -} -function nms_BlockGrass_getBlockTexture($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - if ($par5 == 1) - return $this.$iconGrassTop; - if (!$par5) { - nms_Block_$callClinit(); - return nms_Block_dirt.$getIcon($par5, 0); - } - $var6 = $par1IBlockAccess.$getBlockMaterial($par2, $par3 + 1 | 0, $par4); - nms_Material_$callClinit(); - return $var6 !== nms_Material_snow && $var6 !== nms_Material_craftedSnow ? $this.$blockIcon : $this.$iconSnowSide; -} -function nms_BlockGrass_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(620)); - $this.$iconGrassTop = $par1IconRegister.$registerIcon($rt_s(619)); - $this.$iconSnowSide = $par1IconRegister.$registerIcon($rt_s(2005)); - $this.$iconGrassSideOverlay = $par1IconRegister.$registerIcon($rt_s(2006)); -} -function nms_BlockGrass_getBlockColor($this) { - return nms_ColorizerGrass_getGrassColor(0.5, 1.0); -} -function nms_BlockGrass_getRenderColor($this, $par1) { - return nms_ColorizerGrass_getGrassColor(0.5, 1.0); -} -function nms_BlockGrass_colorMultiplier($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10; - $var5 = 0; - $var6 = 0; - $var7 = 0; - $var8 = (-1); - while ($var8 <= 1) { - $var9 = (-1); - while ($var9 <= 1) { - $var10 = nms_BiomeGenBase_getBiomeGrassColor($par1IBlockAccess.$getBiomeGenForCoords($par2 + $var9 | 0, $par4 + $var8 | 0)); - $var5 = $var5 + (($var10 & 16711680) >> 16) | 0; - $var6 = $var6 + (($var10 & 65280) >> 8) | 0; - $var7 = $var7 + ($var10 & 255) | 0; - $var9 = $var9 + 1 | 0; - } - $var8 = $var8 + 1 | 0; - } - $var8 = $par2 >> 4; - $var9 = $par4 >> 4; - nms_Block_$callClinit(); - if (!(nms_Block_noiseChunkX == $var8 && nms_Block_noiseChunkZ == $var9)) { - nms_Block_noiseChunkX = $var8; - nms_Block_noiseChunkZ = $var9; - nms_Block_initNoiseField0($var8, $var9); - } - $par2 = ($var6 / 9 | 0) * (nms_Block_grassNoiseArray.data[($par4 & 15) + (($par2 & 15) * 16 | 0) | 0] * 0.15000000596046448 + 1.0) | 0; - if ($par2 > 255) - $par2 = 255; - if ($par2 < 0) - $par2 = 0; - return (($var5 / 9 | 0) & 255) << 16 | ($par2 & 255) << 8 | ($var7 / 9 | 0) & 255; -} -function nms_BlockGrass_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_dirt.$idDropped(0, $par2Random, $par3); -} -function nms_BlockGrass_getIconSideOverlay() { - nms_Block_$callClinit(); - return nms_Block_grass.$iconGrassSideOverlay; -} -function nms_BlockDirt() { - nms_Block.call(this); -} -function nms_BlockDirt__init_(var_0) { - var var_1 = new nms_BlockDirt(); - nms_BlockDirt__init_0(var_1, var_0); - return var_1; -} -function nms_BlockDirt__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_ground); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockWood() { - nms_Block.call(this); - this.$iconArray1 = null; -} -var nms_BlockWood_woodType = null; -var nms_BlockWood_woodTextureTypes = null; -function nms_BlockWood__init_(var_0) { - var var_1 = new nms_BlockWood(); - nms_BlockWood__init_0(var_1, var_0); - return var_1; -} -function nms_BlockWood__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockWood_getIcon($this, $par1, $par2) { - if (!($par2 >= 0 && $par2 < $this.$iconArray1.data.length)) - $par2 = 0; - return $this.$iconArray1.data[$par2]; -} -function nms_BlockWood_damageDropped($this, $par1) { - return $par1; -} -function nms_BlockWood_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 2; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 3; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_BlockWood_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$iconArray1 = $rt_createArray(nms_Icon, nms_BlockWood_woodTextureTypes.data.length); - $var2 = 0; - while ($var2 < $this.$iconArray1.data.length) { - $this.$iconArray1.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockWood_woodTextureTypes.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockWood__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(2007); - var$2[1] = $rt_s(2008); - var$2[2] = $rt_s(2009); - var$2[3] = $rt_s(2010); - nms_BlockWood_woodType = var$1; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(1592); - var$2[1] = $rt_s(2011); - var$2[2] = $rt_s(2012); - var$2[3] = $rt_s(2013); - nms_BlockWood_woodTextureTypes = var$1; -} -function nms_BlockFlower() { - nms_Block.call(this); -} -function nms_BlockFlower__init_(var_0) { - var var_1 = new nms_BlockFlower(); - nms_BlockFlower__init_0(var_1, var_0); - return var_1; -} -function nms_BlockFlower__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_plants); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.699999988079071; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockFlower_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - var$5 = var$5 && !nms_Block_blocksList.data[var$5].$blockMaterial.$replaceable ? 0 : 1; - return var$5 && $this.$canThisPlantGrowOnThisBlockID(nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4)) ? 1 : 0; -} -function nms_BlockFlower_canThisPlantGrowOnThisBlockID($this, $par1) { - nms_Block_$callClinit(); - return $par1 != nms_Block_grass.$blockID && $par1 != nms_Block_dirt.$blockID && $par1 != nms_Block_tilledField.$blockID ? 0 : 1; -} -function nms_BlockFlower_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$canBlockStay($par1World, $par2, $par3, $par4)) - return; - $this.$dropBlockAsItemWithChance($par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - var$6 = 0; - var$7 = 0; - $par5 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$6, var$7, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockFlower_checkFlowerChange($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$canBlockStay($par1World, $par2, $par3, $par4)) - return; - $this.$dropBlockAsItemWithChance($par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - var$5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, $ptr); -} -function nms_BlockFlower_canBlockStay($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6; - a: { - b: { - if (nms_World_getFullBlockLightValue($par1World, $par2, $par3, $par4) < 8) { - var$5 = $par2 >> 4; - var$6 = $par4 >> 4; - if (!nms_ChunkProviderClient_provideChunk($par1World.$chunkProvider, var$5, var$6).$canBlockSeeTheSky($par2 & 15, $par3, $par4 & 15)) - break b; - } - if ($this.$canThisPlantGrowOnThisBlockID(nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4))) { - $par2 = 1; - break a; - } - } - $par2 = 0; - } - return $par2; -} -function nms_BlockFlower_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockFlower_isOpaqueCube($this) { - return 0; -} -function nms_BlockFlower_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockFlower_getRenderType($this) { - return 1; -} -function nms_BlockSapling() { - nms_BlockFlower.call(this); - this.$saplingIcon = null; -} -var nms_BlockSapling_WOOD_TYPES = null; -var nms_BlockSapling_field_94370_b = null; -function nms_BlockSapling__init_(var_0) { - var var_1 = new nms_BlockSapling(); - nms_BlockSapling__init_0(var_1, var_0); - return var_1; -} -function nms_BlockSapling__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_plants); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.699999988079071; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$minX0 = 0.09999999403953552; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.09999999403953552; - $this.$maxX0 = 0.8999999761581421; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.8999999761581421; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockSapling_getIcon($this, $par1, $par2) { - $par1 = $par2 & 3; - return $this.$saplingIcon.data[$par1]; -} -function nms_BlockSapling_damageDropped($this, $par1) { - return $par1 & 3; -} -function nms_BlockSapling_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 2; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 3; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_BlockSapling_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$saplingIcon = $rt_createArray(nms_Icon, nms_BlockSapling_field_94370_b.data.length); - $var2 = 0; - while ($var2 < $this.$saplingIcon.data.length) { - $this.$saplingIcon.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockSapling_field_94370_b.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockSapling__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(2007); - var$2[1] = $rt_s(2008); - var$2[2] = $rt_s(2009); - var$2[3] = $rt_s(2010); - nms_BlockSapling_WOOD_TYPES = var$1; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(1602); - var$2[1] = $rt_s(2014); - var$2[2] = $rt_s(2015); - var$2[3] = $rt_s(2016); - nms_BlockSapling_field_94370_b = var$1; -} -function nms_BlockFlowing() { - var a = this; nms_BlockFluid.call(a); - a.$numAdjacentSources = 0; - a.$isOptimalFlowDirection = null; - a.$flowCost = null; -} -function nms_BlockFlowing__init_(var_0, var_1) { - var var_2 = new nms_BlockFlowing(); - nms_BlockFlowing__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockFlowing__init_0($this, $par1, $par2Material) { - nms_Block__init_0($this, $par1, $par2Material); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $this.$needsRandomTick = 1; - $this.$numAdjacentSources = 0; - $this.$isOptimalFlowDirection = $rt_createBooleanArray(4); - $this.$flowCost = $rt_createIntArray(4); -} -function nms_BlockFlowing_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - var var$5; - var$5 = $this.$blockMaterial; - nms_Material_$callClinit(); - return var$5 === nms_Material_lava ? 0 : 1; -} -function nms_BlockFlowing_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockFluid_checkForHarden($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) == $this.$blockID) - nms_BlockFluid_tickRate($this, $par1World); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $ptr); -} -function nms_BlockStationary() { - nms_BlockFluid.call(this); -} -function nms_BlockStationary__init_(var_0, var_1) { - var var_2 = new nms_BlockStationary(); - nms_BlockStationary__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockStationary__init_0($this, $par1, $par2Material) { - nms_Block__init_0($this, $par1, $par2Material); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $this.$needsRandomTick = 1; - $this.$needsRandomTick = 0; - nms_Material_$callClinit(); - if ($par2Material === nms_Material_lava) - $this.$needsRandomTick = 1; -} -function nms_BlockStationary_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - var var$5; - var$5 = $this.$blockMaterial; - nms_Material_$callClinit(); - return var$5 === nms_Material_lava ? 0 : 1; -} -function nms_BlockStationary_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockFluid_checkForHarden($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) != $this.$blockID) - return; - var$6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - var$7 = $this.$blockID - 1 | 0; - $par5 = 2; - $ptr = 2; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$7, var$6, $par5); - if ($rt_suspending()) { - break main; - } - nms_BlockFluid_tickRate($this, $par1World); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockSand() { - nms_Block.call(this); -} -var nms_BlockSand_fallInstantly = 0; -function nms_BlockSand__init_(var_0) { - var var_1 = new nms_BlockSand(); - nms_BlockSand__init_0(var_1, var_0); - return var_1; -} -function nms_BlockSand__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_sand); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockSand_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - return; -} -function nms_BlockSand_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - return; -} -function nms_BlockSand_tickRate($this, $par1World) { - return 2; -} -function nms_BlockSand_canFallBelow($par0World, $par1, $par2, $par3) { - var $var4, $var5; - $var4 = nms_World_getBlockId($par0World, $par1, $par2, $par3); - if (!$var4) - return 1; - nms_Block_$callClinit(); - if ($var4 == nms_Block_fire.$blockID) - return 1; - $var5 = nms_Block_blocksList.data[$var4].$blockMaterial; - nms_Material_$callClinit(); - return $var5 === nms_Material_water ? 1 : $var5 !== nms_Material_lava ? 0 : 1; -} -function nms_BlockSand_onFinishFalling($this, $par1World, $par2, $par3, $par4, $par5) { - return; -} -function nms_BlockSand__clinit_() { - nms_BlockSand_fallInstantly = 0; -} -function nms_BlockGravel() { - nms_BlockSand.call(this); -} -function nms_BlockGravel__init_(var_0) { - var var_1 = new nms_BlockGravel(); - nms_BlockGravel__init_0(var_1, var_0); - return var_1; -} -function nms_BlockGravel__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_sand); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockGravel_idDropped($this, $par1, $par2Random, $par3) { - if ($par3 > 3) - $par3 = 3; - $par1 = 10 - ($par3 * 3 | 0) | 0; - if (Math.random() * $par1 | 0) - $par1 = $this.$blockID; - else { - nms_Item_$callClinit(); - $par1 = nms_Item_flint.$itemID; - } - return $par1; -} -function nms_BlockOre() { - nms_Block.call(this); -} -function nms_BlockOre__init_(var_0) { - var var_1 = new nms_BlockOre(); - nms_BlockOre__init_0(var_1, var_0); - return var_1; -} -function nms_BlockOre__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockOre_idDropped($this, $par1, $par2Random, $par3) { - $par1 = $this.$blockID; - nms_Block_$callClinit(); - if ($par1 == nms_Block_oreCoal.$blockID) { - nms_Item_$callClinit(); - $par1 = nms_Item_coal.$itemID; - } else if ($this.$blockID == nms_Block_oreDiamond.$blockID) { - nms_Item_$callClinit(); - $par1 = nms_Item_diamond.$itemID; - } else if ($this.$blockID == nms_Block_oreLapis.$blockID) { - nms_Item_$callClinit(); - $par1 = nms_Item_dyePowder.$itemID; - } else if ($this.$blockID == nms_Block_oreEmerald.$blockID) { - nms_Item_$callClinit(); - $par1 = nms_Item_emerald.$itemID; - } else if ($this.$blockID != nms_Block_oreNetherQuartz.$blockID) - $par1 = $this.$blockID; - else { - nms_Item_$callClinit(); - $par1 = nms_Item_netherQuartz.$itemID; - } - return $par1; -} -function nms_BlockOre_quantityDropped($this, $par1Random) { - var var$2; - var$2 = $this.$blockID; - nms_Block_$callClinit(); - return var$2 != nms_Block_oreLapis.$blockID ? 1 : 4 + (Math.random() * 5.0 | 0) | 0; -} -function nms_BlockOre_quantityDroppedWithBonus($this, $par1, $par2Random) { - var $var3; - if ($par1 > 0 && $this.$blockID != nms_BlockOre_idDropped($this, 0, $par2Random, $par1)) { - $par1 = $par1 + 2 | 0; - $var3 = (Math.random() * $par1 | 0) - 1 | 0; - if ($var3 < 0) - $var3 = 0; - $par1 = $this.$blockID; - nms_Block_$callClinit(); - return $rt_imul($par1 != nms_Block_oreLapis.$blockID ? 1 : 4 + (Math.random() * 5.0 | 0) | 0, $var3 + 1 | 0); - } - $par1 = $this.$blockID; - nms_Block_$callClinit(); - return $par1 != nms_Block_oreLapis.$blockID ? 1 : 4 + (Math.random() * 5.0 | 0) | 0; -} -function nms_BlockOre_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7); - if (nms_BlockOre_idDropped($this, $par5, $par1World.$rand, $par7) != $this.$blockID) { - $var8 = 0; - if ($this.$blockID == nms_Block_oreCoal.$blockID) - $var8 = (Math.random() * 3.0 | 0) + 0 | 0; - else if ($this.$blockID == nms_Block_oreDiamond.$blockID) - $var8 = (Math.random() * 5.0 | 0) + 3 | 0; - else if ($this.$blockID == nms_Block_oreEmerald.$blockID) - $var8 = (Math.random() * 5.0 | 0) + 3 | 0; - else if ($this.$blockID == nms_Block_oreLapis.$blockID) - $var8 = (Math.random() * 4.0 | 0) + 2 | 0; - else if ($this.$blockID == nms_Block_oreNetherQuartz.$blockID) - $var8 = (Math.random() * 4.0 | 0) + 2 | 0; - nms_Block_dropXpOnBlockBreak($this, $par1World, $par2, $par3, $par4, $var8); - } -} -function nms_BlockOre_damageDropped($this, $par1) { - $par1 = $this.$blockID; - nms_Block_$callClinit(); - return $par1 != nms_Block_oreLapis.$blockID ? 0 : 4; -} -function nms_BlockLog() { - var a = this; nms_Block.call(a); - a.$iconArray2 = null; - a.$tree_top = null; -} -var nms_BlockLog_woodType = null; -var nms_BlockLog_treeTextureTypes = null; -function nms_BlockLog__init_(var_0) { - var var_1 = new nms_BlockLog(); - nms_BlockLog__init_0(var_1, var_0); - return var_1; -} -function nms_BlockLog__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockLog_getRenderType($this) { - return 31; -} -function nms_BlockLog_quantityDropped($this, $par1Random) { - return 1; -} -function nms_BlockLog_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_wood.$blockID; -} -function nms_BlockLog_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var9, $var10, $var11, var$11, var$12, var$13, $var12, $var13, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var7 = 4; - if (nms_World_checkChunksExist($par1World, $par2 - 5 | 0, $par3 - 5 | 0, $par4 - 5 | 0, $par2 + 5 | 0, $par3 + 5 | 0, $par4 + 5 | 0)) { - $par5 = (-4); - $var9 = $par5; - while (true) { - if ($var9 > $var7) - break a; - $var10 = $par5; - while ($var10 <= $var7) { - $var11 = $par5; - while ($var11 <= $var7) { - var$11 = $par2 + $var9 | 0; - var$12 = $par3 + $var10 | 0; - var$13 = $par4 + $var11 | 0; - $var12 = nms_World_getBlockId($par1World, var$11, var$12, var$13); - nms_Block_$callClinit(); - if ($var12 == nms_Block_leaves.$blockID) { - $var13 = nms_World_getBlockMetadata($par1World, var$11, var$12, var$13); - if (!($var13 & 8)) { - $par6 = $var13 | 8; - $var8 = 4; - $ptr = 1; - continue main; - } - } - $var11 = $var11 + 1 | 0; - } - $var10 = $var10 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - } - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, var$11, var$12, var$13, $par6, $var8); - if ($rt_suspending()) { - break main; - } - a: while (true) { - $var11 = $var11 + 1 | 0; - while ($var11 > $var7) { - $var10 = $var10 + 1 | 0; - while ($var10 > $var7) { - $var9 = $var9 + 1 | 0; - if ($var9 > $var7) - break a; - $var10 = $par5; - } - $var11 = $par5; - } - var$11 = $par2 + $var9 | 0; - var$12 = $par3 + $var10 | 0; - var$13 = $par4 + $var11 | 0; - $var12 = nms_World_getBlockId($par1World, var$11, var$12, var$13); - nms_Block_$callClinit(); - if ($var12 != nms_Block_leaves.$blockID) - continue; - $var13 = nms_World_getBlockMetadata($par1World, var$11, var$12, var$13); - if ($var13 & 8) - continue; - else { - $par6 = $var13 | 8; - $var8 = 4; - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var9, $var10, $var11, var$11, var$12, var$13, $var12, $var13, $var8, $ptr); -} -function nms_BlockLog_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var $var10, $var11; - a: { - $var10 = $par9 & 3; - $var11 = 0; - switch ($par5) { - case 0: - case 1: - $var11 = 0; - break a; - case 2: - case 3: - $var11 = 8; - break a; - case 4: - case 5: - $var11 = 4; - break a; - default: - } - } - return $var10 | $var11; -} -function nms_BlockLog_getIcon($this, $par1, $par2) { - var $var3, $var4; - $var3 = $par2 & 12; - $var4 = $par2 & 3; - return !$var3 && !($par1 != 1 && $par1) ? $this.$tree_top : $var3 == 4 && !($par1 != 5 && $par1 != 4) ? $this.$tree_top : $var3 == 8 && !($par1 != 2 && $par1 != 3) ? $this.$tree_top : $this.$iconArray2.data[$var4]; -} -function nms_BlockLog_damageDropped($this, $par1) { - return $par1 & 3; -} -function nms_BlockLog_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 2; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 3; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_BlockLog_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$tree_top = $par1IconRegister.$registerIcon($rt_s(2017)); - $this.$iconArray2 = $rt_createArray(nms_Icon, nms_BlockLog_treeTextureTypes.data.length); - $var2 = 0; - while ($var2 < $this.$iconArray2.data.length) { - $this.$iconArray2.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockLog_treeTextureTypes.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockLog__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(2007); - var$2[1] = $rt_s(2008); - var$2[2] = $rt_s(2009); - var$2[3] = $rt_s(2010); - nms_BlockLog_woodType = var$1; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(2018); - var$2[1] = $rt_s(2019); - var$2[2] = $rt_s(2020); - var$2[3] = $rt_s(2021); - nms_BlockLog_treeTextureTypes = var$1; -} -function nms_BlockLeavesBase() { - nms_Block.call(this); - this.$graphicsLevel = 0; -} -function nms_BlockLeavesBase_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - $var6 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4); - return !$this.$graphicsLevel && $var6 == $this.$blockID ? 0 : nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5); -} -function nms_BlockLeaves() { - var a = this; nms_BlockLeavesBase.call(a); - a.$field_94394_cP = 0; - a.$iconArray3 = null; -} -var nms_BlockLeaves_LEAF_TYPES = null; -var nms_BlockLeaves_field_94396_b = null; -function nms_BlockLeaves__init_(var_0) { - var var_1 = new nms_BlockLeaves(); - nms_BlockLeaves__init_0(var_1, var_0); - return var_1; -} -function nms_BlockLeaves__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_leaves); - $this.$graphicsLevel = 0; - $this.$iconArray3 = $rt_createArray($rt_arraycls(nms_Icon), 2); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockLeaves_getBlockColor($this) { - return nms_ColorizerFoliage_getFoliageColor(0.5, 1.0); -} -function nms_BlockLeaves_getRenderColor($this, $par1) { - $par1 = $par1 & 3; - return $par1 == 1 ? 6396257 : $par1 != 2 ? 4764952 : 8431445; -} -function nms_BlockLeaves_colorMultiplier($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var6, $var7, $var8, $var9, $var10, $var11, $var5; - $par3 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 3; - if ($par3 == 1) - return 6396257; - if ($par3 == 2) - return 8431445; - $var6 = 0; - $var7 = 0; - $var8 = 0; - $var9 = (-1); - while ($var9 <= 1) { - $var10 = (-1); - while ($var10 <= 1) { - $var11 = nms_BiomeGenBase_getBiomeFoliageColor($par1IBlockAccess.$getBiomeGenForCoords($par2 + $var10 | 0, $par4 + $var9 | 0)); - $var6 = $var6 + (($var11 & 16711680) >> 16) | 0; - $var7 = $var7 + (($var11 & 65280) >> 8) | 0; - $var8 = $var8 + ($var11 & 255) | 0; - $var10 = $var10 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - $var5 = $par2 >> 4; - $var9 = $par4 >> 4; - nms_Block_$callClinit(); - if (!(nms_Block_noiseChunkX == $var5 && nms_Block_noiseChunkZ == $var9)) { - nms_Block_noiseChunkX = $var5; - nms_Block_noiseChunkZ = $var9; - nms_Block_initNoiseField0($var5, $var9); - } - $par2 = ($var7 / 9 | 0) * (nms_Block_grassNoiseArray.data[($par4 & 15) + (($par2 & 15) * 16 | 0) | 0] * 0.30000001192092896 + 1.0) | 0; - if ($par2 > 255) - $par2 = 255; - if ($par2 < 0) - $par2 = 0; - return (($var6 / 9 | 0) & 255) << 16 | ($par2 & 255) << 8 | ($var8 / 9 | 0) & 255; -} -function nms_BlockLeaves_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var9, $var10, $var11, var$11, var$12, var$13, $var12, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var12 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var7 = 1; - if (nms_World_checkChunksExist($par1World, $par2 - 2 | 0, $par3 - 2 | 0, $par4 - 2 | 0, $par2 + 2 | 0, $par3 + 2 | 0, $par4 + 2 | 0)) { - $par5 = (-1); - $var9 = $par5; - while (true) { - if ($var9 > $var7) - break a; - $var10 = $par5; - while ($var10 <= $var7) { - $var11 = $par5; - while ($var11 <= $var7) { - var$11 = $par2 + $var9 | 0; - var$12 = $par3 + $var10 | 0; - var$13 = $par4 + $var11 | 0; - $var12 = nms_World_getBlockId($par1World, var$11, var$12, var$13); - nms_Block_$callClinit(); - if ($var12 == nms_Block_leaves.$blockID) { - $par6 = nms_World_getBlockMetadata($par1World, var$11, var$12, var$13) | 8; - $var8 = 4; - $ptr = 1; - continue main; - } - $var11 = $var11 + 1 | 0; - } - $var10 = $var10 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - } - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, var$11, var$12, var$13, $par6, $var8); - if ($rt_suspending()) { - break main; - } - a: while (true) { - $var11 = $var11 + 1 | 0; - while ($var11 > $var7) { - $var10 = $var10 + 1 | 0; - while ($var10 > $var7) { - $var9 = $var9 + 1 | 0; - if ($var9 > $var7) - break a; - $var10 = $par5; - } - $var11 = $par5; - } - var$11 = $par2 + $var9 | 0; - var$12 = $par3 + $var10 | 0; - var$13 = $par4 + $var11 | 0; - $var12 = nms_World_getBlockId($par1World, var$11, var$12, var$13); - nms_Block_$callClinit(); - if ($var12 != nms_Block_leaves.$blockID) - continue; - else { - $par6 = nms_World_getBlockMetadata($par1World, var$11, var$12, var$13) | 8; - $var8 = 4; - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var9, $var10, $var11, var$11, var$12, var$13, $var12, $var8, $ptr); -} -function nms_BlockLeaves_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var var$6, $var6, $var8, $var10, var$10, var$11, 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();var$11 = $thread.pop();var$10 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();var$6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_World_canLightningStrikeAt($par1World, $par2, $par3 + 1 | 0, $par4)) { - var$6 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$6, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$6, $par4)) && (Math.random() * 15.0 | 0) == 1) { - $var6 = $par2 + Math.random(); - $var8 = $par3 - 0.05; - $var10 = $par4 + Math.random(); - $par5Random = $rt_s(864); - var$10 = 0.0; - var$11 = 0.0; - var$12 = 0.0; - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$13, $par5Random, $var6, $var8, $var10, var$10, var$11, var$12); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, var$6, $var6, $var8, $var10, var$10, var$11, var$12, var$13, $ptr); -} -function nms_BlockLeaves_quantityDropped($this, $par1Random) { - return Math.random() * 20.0 | 0 ? 0 : 1; -} -function nms_BlockLeaves_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_sapling.$blockID; -} -function nms_BlockLeaves_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, var$10; - if (!$par1World.$isRemote) { - $var8 = 20; - $par5 = $par5 & 3; - if ($par5 == 3) - $var8 = 40; - if ($par7 > 0) { - $var8 = $var8 - (2 << $par7) | 0; - if ($var8 < 10) - $var8 = 10; - } - if (!(Math.random() * $var8 | 0)) { - nms_Block_$callClinit(); - $var9 = nms_Block_sapling.$blockID; - var$10 = new nms_ItemStack; - var$10.$stackSize = 0; - var$10.$itemFrame = null; - var$10.$itemID0 = $var9; - var$10.$stackSize = 1; - var$10.$itemDamage = $par5; - if (var$10.$itemDamage < 0) - var$10.$itemDamage = 0; - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, var$10); - } - $var9 = 200; - if ($par7 > 0) { - $var9 = $var9 - (10 << $par7) | 0; - if ($var9 < 40) - $var9 = 40; - } - if (!$par5 && !(Math.random() * $var9 | 0)) { - var$10 = new nms_ItemStack; - nms_Item_$callClinit(); - $var9 = nms_Item_appleRed.$itemID; - var$10.$stackSize = 0; - var$10.$itemFrame = null; - var$10.$itemID0 = $var9; - var$10.$stackSize = 1; - var$10.$itemDamage = 0; - if (var$10.$itemDamage < 0) - var$10.$itemDamage = 0; - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, var$10); - } - } -} -function nms_BlockLeaves_damageDropped($this, $par1) { - return $par1 & 3; -} -function nms_BlockLeaves_isOpaqueCube($this) { - return $this.$graphicsLevel ? 0 : 1; -} -function nms_BlockLeaves_getIcon($this, $par1, $par2) { - $par1 = $par2 & 3; - return $par1 == 1 ? $this.$iconArray3.data[$this.$field_94394_cP].data[1] : $par1 != 3 ? $this.$iconArray3.data[$this.$field_94394_cP].data[0] : $this.$iconArray3.data[$this.$field_94394_cP].data[3]; -} -function nms_BlockLeaves_setGraphicsLevel($this, $par1) { - $this.$graphicsLevel = $par1; - $this.$field_94394_cP = !$par1 ? 1 : 0; -} -function nms_BlockLeaves_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 2; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 3; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_BlockLeaves_registerIcons($this, $par1IconRegister) { - var $var2, $var3; - $var2 = 0; - while ($var2 < nms_BlockLeaves_field_94396_b.data.length) { - $this.$iconArray3.data[$var2] = $rt_createArray(nms_Icon, nms_BlockLeaves_field_94396_b.data[$var2].data.length); - $var3 = 0; - while ($var3 < nms_BlockLeaves_field_94396_b.data[$var2].data.length) { - $this.$iconArray3.data[$var2].data[$var3] = $par1IconRegister.$registerIcon(nms_BlockLeaves_field_94396_b.data[$var2].data[$var3]); - $var3 = $var3 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockLeaves__clinit_() { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(2007); - var$2[1] = $rt_s(2008); - var$2[2] = $rt_s(2009); - var$2[3] = $rt_s(2010); - nms_BlockLeaves_LEAF_TYPES = var$1; - var$1 = $rt_createArray($rt_arraycls(jl_String), 2); - var$3 = var$1.data; - var$2 = $rt_createArray(jl_String, 4); - var$4 = var$2.data; - var$4[0] = $rt_s(1608); - var$4[1] = $rt_s(2022); - var$4[2] = $rt_s(1608); - var$4[3] = $rt_s(2023); - var$3[0] = var$2; - var$2 = $rt_createArray(jl_String, 4); - var$4 = var$2.data; - var$4[0] = $rt_s(2024); - var$4[1] = $rt_s(2025); - var$4[2] = $rt_s(2024); - var$4[3] = $rt_s(2026); - var$3[1] = var$2; - nms_BlockLeaves_field_94396_b = var$1; -} -function nms_BlockSponge() { - nms_Block.call(this); -} -function nms_BlockSponge__init_(var_0) { - var var_1 = new nms_BlockSponge(); - nms_BlockSponge__init_0(var_1, var_0); - return var_1; -} -function nms_BlockSponge__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_sponge); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockBreakable() { - var a = this; nms_Block.call(a); - a.$localFlag = 0; - a.$breakableBlockIcon = null; -} -function nms_BlockBreakable_isOpaqueCube($this) { - return 0; -} -function nms_BlockBreakable_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - $var6 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4); - return !$this.$localFlag && $var6 == $this.$blockID ? 0 : nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5); -} -function nms_BlockBreakable_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$breakableBlockIcon); -} -function nms_BlockGlass() { - nms_BlockBreakable.call(this); -} -function nms_BlockGlass__init_(var_0, var_1, var_2) { - var var_3 = new nms_BlockGlass(); - nms_BlockGlass__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_BlockGlass__init_0($this, $par1, $par2Material, $par3) { - nms_Block__init_0($this, $par1, $par2Material); - $this.$localFlag = $par3; - $this.$breakableBlockIcon = $rt_s(1610); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockGlass_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockGlass_getRenderBlockPass($this) { - return 0; -} -function nms_BlockGlass_isOpaqueCube($this) { - return 0; -} -function nms_BlockGlass_renderAsNormalBlock($this) { - return 0; -} -function nms_ITileEntityProvider() { -} -function nms_BlockContainer() { - nms_Block.call(this); -} -function nms_BlockContainer_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - return; -} -function nms_BlockContainer_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); -} -function nms_BlockContainer_onBlockEventReceived($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7; - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - return $var7 === null ? 0 : $var7.$receiveClientEvent($par5, $par6); -} -function nms_BlockDispenser() { - var a = this; nms_BlockContainer.call(a); - a.$random2 = null; - a.$furnaceTopIcon = null; - a.$furnaceFrontIcon = null; - a.$field_96473_e = null; -} -function nms_BlockDispenser__init_(var_0) { - var var_1 = new nms_BlockDispenser(); - nms_BlockDispenser__init_0(var_1, var_0); - return var_1; -} -function nms_BlockDispenser__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$isBlockContainer = 1; - $this.$random2 = new ju_Random; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockDispenser_tickRate($this, $par1World) { - return 4; -} -function nms_BlockDispenser_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockDispenser_setDispenserDefaultDirection($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $ptr); -} -function nms_BlockDispenser_setDispenserDefaultDirection($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - $var5 = nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0); - $var6 = nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0); - $var7 = nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4); - $var8 = nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4); - $var9 = 3; - nms_Block_$callClinit(); - if (nms_Block_opaqueCubeLookup.data[$var5] && !nms_Block_opaqueCubeLookup.data[$var6]) - $var9 = 3; - if (nms_Block_opaqueCubeLookup.data[$var6] && !nms_Block_opaqueCubeLookup.data[$var5]) - $var9 = 2; - if (nms_Block_opaqueCubeLookup.data[$var7] && !nms_Block_opaqueCubeLookup.data[$var8]) - $var9 = 5; - if (nms_Block_opaqueCubeLookup.data[$var8] && !nms_Block_opaqueCubeLookup.data[$var7]) - $var9 = 4; - $var5 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var9, $var5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, $var7, $var8, $var9, $ptr); -} -function nms_BlockDispenser_getIcon($this, $par1, $par2) { - var $var3; - $var3 = $par2 & 7; - return $par1 == $var3 ? ($var3 != 1 && $var3 ? $this.$furnaceFrontIcon : $this.$field_96473_e) : $var3 != 1 && $var3 ? ($par1 != 1 && $par1 ? $this.$blockIcon : $this.$furnaceTopIcon) : $this.$furnaceTopIcon; -} -function nms_BlockDispenser_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2027)); - $this.$furnaceTopIcon = $par1IconRegister.$registerIcon($rt_s(2028)); - $this.$furnaceFrontIcon = $par1IconRegister.$registerIcon($rt_s(2029)); - $this.$field_96473_e = $par1IconRegister.$registerIcon($rt_s(2030)); -} -function nms_BlockDispenser_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var10 === null) - return 1; - var$11 = $par5EntityPlayer.$mc3; - $par1World = new nms_GuiDispenser; - nms_GuiContainer__init_($par1World, nms_ContainerDispenser__init_($par5EntityPlayer.$inventory, $var10)); - $par1World.$field_94078_r = $var10; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$11, $par1World); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, var$11, $ptr); -} -function nms_BlockDispenser_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4) && !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3 + 1 | 0, $par4) ? 0 : 1; - $var7 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var8 = !($var7 & 8) ? 0 : 1; - if ($var6 && !$var8) { - $par5 = $var7 | 8; - $var6 = 4; - $ptr = 1; - continue main; - } - if (!$var6 && $var8) { - $par5 = $var7 & (-9); - $var6 = 4; - $ptr = 2; - continue main; - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $var6); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $var8, $ptr); -} -function nms_BlockDispenser_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityDispenser; - $par1World.$blockMetadata = (-1); - $par1World.$dispenserContents = $rt_createArray(nms_ItemStack, 9); - $par1World.$dispenserRandom = new ju_Random; - return $par1World; -} -function nms_BlockDispenser_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var $var7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = nms_BlockPistonBase_determineOrientation($par1World, $par2, $par3, $par4, $par5EntityLiving); - var$8 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, var$8); - if ($rt_suspending()) { - break main; - } - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$customName = nms_ItemStack_getDisplayName($par6ItemStack); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, $var7, var$8, $ptr); -} -function nms_BlockDispenser_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, var$9, var$10, var$11, $var9, $var10, $var11, $var12, var$16, var$17, var$18, $var13, $var14, var$21, var$22, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var7 === null) { - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - } - $var8 = 0; - var$9 = $par2; - var$10 = $par3; - var$11 = $par4; - while ($var8 < 9) { - a: { - $var9 = $var7.$dispenserContents.data[$var8]; - if ($var9 !== null) { - $var10 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var11 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var12 = Math.random() * 0.800000011920929 + 0.10000000149011612; - var$16 = var$9 + $var10; - var$17 = var$10 + $var11; - var$18 = var$11 + $var12; - while (true) { - if ($var9.$stackSize <= 0) - break a; - $var13 = (Math.random() * 21.0 | 0) + 10 | 0; - if ($var13 > $var9.$stackSize) - $var13 = $var9.$stackSize; - $var9.$stackSize = $var9.$stackSize - $var13 | 0; - $var14 = new nms_EntityItem; - var$21 = new nms_ItemStack; - $par6 = $var9.$itemID0; - var$22 = $var9.$itemDamage; - var$21.$stackSize = 0; - var$21.$itemFrame = null; - var$21.$itemID0 = $par6; - var$21.$stackSize = $var13; - var$21.$itemDamage = var$22; - if (var$21.$itemDamage < 0) - var$21.$itemDamage = 0; - nms_EntityItem__init_2($var14, $par1World, var$16, var$17, var$18); - nms_DataWatcher_updateObject($var14.$dataWatcher, 10, var$21); - nms_DataWatcher_setObjectWatched($var14.$dataWatcher, 10); - if ($var9.$stackTagCompound === null ? 0 : 1) - nms_EntityItem_getEntityItem($var14).$stackTagCompound = nms_NBTTagCompound_copy($var9.$stackTagCompound); - $var14.$motionX = ju_Random_nextGaussian($this.$random2) * 0.05000000074505806; - $var14.$motionY = ju_Random_nextGaussian($this.$random2) * 0.05000000074505806 + 0.20000000298023224; - $var14.$motionZ = ju_Random_nextGaussian($this.$random2) * 0.05000000074505806; - $par6 = nms_World_spawnEntityInWorld($par1World, $var14); - var$23 = $par1World.$entityList; - ju_HashMap_putImpl(var$23.$backingMap, $var14, var$23); - if (!$par6) { - var$23 = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl(var$23.$backingMap, $var14, var$23); - } - } - } - } - $var8 = $var8 + 1 | 0; - } - $ptr = 1; - case 1: - nms_World_func_96440_m($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var8, var$9, var$10, var$11, $var9, $var10, $var11, $var12, var$16, var$17, var$18, $var13, $var14, var$21, var$22, var$23, $ptr); -} -function nms_BlockDispenser_hasComparatorInputOverride($this) { - return 1; -} -function nms_BlockDispenser_getComparatorInputOverride($this, $par1World, $par2, $par3, $par4, $par5) { - return nms_Container_calcRedstoneFromInventory(nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4)); -} -function nms_BlockSandStone() { - var a = this; nms_Block.call(a); - a.$field_94406_c = null; - a.$field_94403_cO = null; - a.$field_94404_cP = null; -} -var nms_BlockSandStone_SAND_STONE_TYPES = null; -var nms_BlockSandStone_field_94405_b = null; -function nms_BlockSandStone__init_(var_0) { - var var_1 = new nms_BlockSandStone(); - nms_BlockSandStone__init_0(var_1, var_0); - return var_1; -} -function nms_BlockSandStone__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockSandStone_getIcon($this, $par1, $par2) { - a: { - if ($par1 != 1) { - if ($par1) - break a; - if ($par2 != 1 && $par2 != 2) - break a; - } - return $this.$field_94403_cO; - } - if (!$par1) - return $this.$field_94404_cP; - if (!($par2 >= 0 && $par2 < $this.$field_94406_c.data.length)) - $par2 = 0; - return $this.$field_94406_c.data[$par2]; -} -function nms_BlockSandStone_damageDropped($this, $par1) { - return $par1; -} -function nms_BlockSandStone_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 2; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_BlockSandStone_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$field_94406_c = $rt_createArray(nms_Icon, nms_BlockSandStone_field_94405_b.data.length); - $var2 = 0; - while ($var2 < $this.$field_94406_c.data.length) { - $this.$field_94406_c.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockSandStone_field_94405_b.data[$var2]); - $var2 = $var2 + 1 | 0; - } - $this.$field_94403_cO = $par1IconRegister.$registerIcon($rt_s(2031)); - $this.$field_94404_cP = $par1IconRegister.$registerIcon($rt_s(2032)); -} -function nms_BlockSandStone__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(1759); - var$2[1] = $rt_s(2033); - var$2[2] = $rt_s(2034); - nms_BlockSandStone_SAND_STONE_TYPES = var$1; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(2035); - var$2[1] = $rt_s(2036); - var$2[2] = $rt_s(2037); - nms_BlockSandStone_field_94405_b = var$1; -} -function nms_BlockNote() { - nms_BlockContainer.call(this); -} -function nms_BlockNote__init_(var_0) { - var var_1 = new nms_BlockNote(); - nms_BlockNote__init_0(var_1, var_0); - return var_1; -} -function nms_BlockNote__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$isBlockContainer = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockNote_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4); - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var7 !== null && $var7.$previousRedstoneState != $var6) { - if ($var6) { - $ptr = 1; - continue main; - } - $var7.$previousRedstoneState = $var6; - } - return; - case 1: - nms_TileEntityNote_triggerNote($var7, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $var7.$previousRedstoneState = $var6; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $ptr); -} -function nms_BlockNote_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var10 === null) - return 1; - $var10.$note = (($var10.$note + 1 | 0) % 25 | 0) << 24 >> 24; - $ptr = 1; - case 1: - nms_TileEntity_onInventoryChanged($var10); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nms_TileEntityNote_triggerNote($var10, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $ptr); -} -function nms_BlockNote_onBlockClicked($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - var $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote) { - $var6 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var6 !== null) { - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_TileEntityNote_triggerNote($var6, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $var6, $ptr); -} -function nms_BlockNote_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityNote; - $par1World.$blockMetadata = (-1); - $par1World.$note = 0; - $par1World.$previousRedstoneState = 0; - return $par1World; -} -function nms_BlockNote_onBlockEventReceived($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = jl_Math_pow(2.0, ($par6 - 12 | 0) / 12.0); - $var8 = $rt_s(2038); - if ($par5 == 1) - $var8 = $rt_s(2039); - if ($par5 == 2) - $var8 = $rt_s(2040); - if ($par5 == 3) - $var8 = $rt_s(2041); - if ($par5 == 4) - $var8 = $rt_s(2042); - var$9 = $par2 + 0.5; - var$10 = $par3; - var$11 = var$10 + 0.5; - var$12 = $par4 + 0.5; - var$13 = new jl_StringBuilder; - var$13.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$13, var$13.$length, $rt_s(2043)); - jl_AbstractStringBuilder_insert(var$13, var$13.$length, $var8); - nms_World_playSoundEffect($par1World, var$9, var$11, var$12, jl_String__init_0(var$13.$buffer, 0, var$13.$length), 3.0, $var7); - $var8 = $rt_s(856); - var$11 = var$10 + 1.2; - var$14 = $par6 / 24.0; - var$15 = 0.0; - var$10 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return 1; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 1: - nms_RenderGlobal_doSpawnParticle(var$13, $var8, var$9, var$11, var$12, var$14, var$15, var$10); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return 1; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr); -} -function nms_BlockDirectional() { - nms_Block.call(this); -} -function nms_BlockDirectional_getDirection($par0) { - return $par0 & 3; -} -function nms_BlockBed() { - var a = this; nms_BlockDirectional.call(a); - a.$field_94472_b = null; - a.$bedSideIcons = null; - a.$bedTopIcons = null; -} -var nms_BlockBed_footBlockToHeadBlockMap = null; -function nms_BlockBed__init_(var_0) { - var var_1 = new nms_BlockBed(); - nms_BlockBed__init_0(var_1, var_0); - return var_1; -} -function nms_BlockBed__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_cloth); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.5625; - $this.$maxZ0 = 1.0; -} -function nms_BlockBed_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $var11, $var17, $var20, $var19, $var21, $var12, $var14, var$18, var$19, var$20, var$21, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();$var14 = $thread.pop();$var12 = $thread.pop();$var21 = $thread.pop();$var19 = $thread.pop();$var20 = $thread.pop();$var17 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this - = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if (!(!($var10 & 8) ? 0 : 1)) { - $var11 = $var10 & 3; - $par2 = $par2 + nms_BlockBed_footBlockToHeadBlockMap.data[$var11].data[0] | 0; - $par4 = $par4 + nms_BlockBed_footBlockToHeadBlockMap.data[$var11].data[1] | 0; - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) != $this.$blockID) - return 1; - $var10 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - } - if ($par1World.$provider.$canRespawnHere()) { - $var17 = $par2 >> 4; - $par6 = $par4 >> 4; - if (nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk($par1World.$chunkProvider, $var17, $par6), $par2 & 15, $par4 & 15) !== nms_BiomeGenBase_hell) { - if (!(!($var10 & 4) ? 0 : 1)) { - $var20 = nms_EntityPlayer_sleepInBedAt($par5EntityPlayer, $par2, $par3, $par4); - if ($var20 !== nms_EnumStatus_OK) { - if ($var20 === nms_EnumStatus_NOT_POSSIBLE_NOW) - nms_EntityPlayerSP_addChatMessage($par5EntityPlayer, $rt_s(2044)); - else if ($var20 === nms_EnumStatus_NOT_SAFE) - nms_EntityPlayerSP_addChatMessage($par5EntityPlayer, $rt_s(2045)); - return 1; - } - $par6 = 1; - $ptr = 4; - continue main; - } - $var19 = null; - $var21 = $par1World.$playerEntities; - $var12 = new ju_AbstractList$1; - $var12.$this$0 = $var21; - $var12.$modCount = $var12.$this$0.$modCount0; - $var12.$size1 = $var12.$this$0.$size2(); - $var12.$removeIndex = (-1); - while ($var12.$index >= $var12.$size1 ? 0 : 1) { - $var21 = ju_AbstractList$1_next($var12); - if ($var21.$sleeping) { - $var14 = $var21.$playerLocation; - if ($var14.$posX0 == $par2 && $var14.$posY0 == $par3 && $var14.$posZ0 == $par4) - $var19 = $var21; - } - } - if ($var19 !== null) { - $var12 = $par5EntityPlayer.$mc3.$ingameGUI.$persistantChatGUI; - var$18 = $rt_createArray(jl_Object, 0); - $par1World = nms_StringTranslate_translateKeyFormat(nms_StringTranslate_instance, $rt_s(2046), var$18); - nms_GuiNewChat_func_96129_a($var12, $par1World, 0, $var12.$mc12.$ingameGUI.$updateCounter0, 0); - if (jl_System_outCache === null) { - $var12 = new ji_PrintStream; - $par5EntityPlayer = new jl_ConsoleOutputStreamStdout; - jl_Object__init_0($var12); - $var12.$out = $par5EntityPlayer; - $par5EntityPlayer = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2($par5EntityPlayer, 16); - $var12.$sb = $par5EntityPlayer; - $var12.$buffer0 = $rt_createCharArray(32); - $var12.$autoFlush = 0; - $par5EntityPlayer = new jnci_UTF8Charset; - jnc_Charset__init_($par5EntityPlayer, $rt_s(2), $rt_createArray(jl_String, 0)); - $var12.$charset = $par5EntityPlayer; - jl_System_outCache = $var12; - } - $var21 = jl_System_outCache; - $par5EntityPlayer = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2($par5EntityPlayer, 16); - ji_PrintStream_println0($var21, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0($par5EntityPlayer, $rt_s(1533)), $par1World))); - return 1; - } - $var17 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & (-5); - $par6 = 4; - $ptr = 5; - continue main; - } - } - $par6 = 0; - $var17 = 0; - $var11 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par6, $var17, $var11); - if ($rt_suspending()) { - break main; - } - $var17 = $var10 & 3; - $par2 = $par2 + nms_BlockBed_footBlockToHeadBlockMap.data[$var17].data[0] | 0; - $par4 = $par4 + nms_BlockBed_footBlockToHeadBlockMap.data[$var17].data[1] | 0; - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) == $this.$blockID) { - $ptr = 3; - continue main; - } - $par5EntityPlayer = null; - var$19 = $par2 + 0.5; - var$20 = $par3 + 0.5; - var$21 = $par4 + 0.5; - $par7 = 5.0; - $par2 = 1; - $par3 = 1; - $ptr = 2; - case 2: - nms_World_newExplosion($par1World, $par5EntityPlayer, var$19, var$20, var$21, $par7, $par2, $par3); - if ($rt_suspending()) { - break main; - } - return 1; - case 3: - nms_World_setBlockToAir($par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $par5EntityPlayer = null; - var$19 = $par2 + 0.5; - var$20 = $par3 + 0.5; - var$21 = $par4 + 0.5; - $par7 = 5.0; - $par2 = 1; - $par3 = 1; - $ptr = 2; - continue main; - case 4: - nms_BlockBed_setBedOccupied($par1World, $par2, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - return 1; - case 5: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var17, $par6); - if ($rt_suspending()) { - break main; - } - $var20 = nms_EntityPlayer_sleepInBedAt($par5EntityPlayer, $par2, $par3, $par4); - if ($var20 !== nms_EnumStatus_OK) { - if ($var20 === nms_EnumStatus_NOT_POSSIBLE_NOW) - nms_EntityPlayerSP_addChatMessage($par5EntityPlayer, $rt_s(2044)); - else if ($var20 === nms_EnumStatus_NOT_SAFE) - nms_EntityPlayerSP_addChatMessage($par5EntityPlayer, $rt_s(2045)); - return 1; - } - $par6 = 1; - $ptr = 4; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $var11, $var17, $var20, $var19, $var21, $var12, $var14, var$18, var$19, var$20, var$21, $ptr); -} -function nms_BlockBed_getIcon($this, $par1, $par2) { - var $var3, $var4, $var5, var$6; - if (!$par1) { - nms_Block_$callClinit(); - return nms_Block_planks.$getIcon($par1, 0); - } - $var3 = $par2 & 3; - $var4 = nms_Direction_bedDirection.data[$var3].data[$par1]; - $var5 = !(!($par2 & 8) ? 0 : 1) ? 0 : 1; - a: { - b: { - if (!($var5 == 1 && $var4 == 2)) { - if ($var5) - break b; - if ($var4 != 3) - break b; - } - var$6 = $this.$field_94472_b.data[$var5]; - break a; - } - if ($var4 != 5 && $var4 != 4) - var$6 = $this.$bedTopIcons.data[$var5]; - else - var$6 = $this.$bedSideIcons.data[$var5]; - } - return var$6; -} -function nms_BlockBed_registerIcons($this, $par1IconRegister) { - var var$2, var$3; - var$2 = $rt_createArray(nms_Icon, 2); - var$3 = var$2.data; - var$3[0] = $par1IconRegister.$registerIcon($rt_s(2047)); - var$3[1] = $par1IconRegister.$registerIcon($rt_s(2048)); - $this.$bedTopIcons = var$2; - var$2 = $rt_createArray(nms_Icon, 2); - var$3 = var$2.data; - var$3[0] = $par1IconRegister.$registerIcon($rt_s(2049)); - var$3[1] = $par1IconRegister.$registerIcon($rt_s(2050)); - $this.$field_94472_b = var$2; - var$2 = $rt_createArray(nms_Icon, 2); - var$3 = var$2.data; - var$3[0] = $par1IconRegister.$registerIcon($rt_s(2051)); - var$3[1] = $par1IconRegister.$registerIcon($rt_s(2052)); - $this.$bedSideIcons = var$2; -} -function nms_BlockBed_getRenderType($this) { - return 14; -} -function nms_BlockBed_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockBed_isOpaqueCube($this) { - return 0; -} -function nms_BlockBed_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.5625; - $this.$maxZ0 = 1.0; -} -function nms_BlockBed_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, 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();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = $var6 & 3; - var$8 = $var6 & 8; - $par5 = !var$8 ? 0 : 1; - a: { - if (!$par5) { - if (nms_World_getBlockId($par1World, $par2 + nms_BlockBed_footBlockToHeadBlockMap.data[$var7].data[0] | 0, $par3, $par4 + nms_BlockBed_footBlockToHeadBlockMap.data[$var7].data[1] | 0) == $this.$blockID) - break a; - $par5 = 0; - $var7 = 0; - var$9 = 3; - $ptr = 1; - continue main; - } - if (nms_World_getBlockId($par1World, $par2 - nms_BlockBed_footBlockToHeadBlockMap.data[$var7].data[0] | 0, $par3, $par4 - nms_BlockBed_footBlockToHeadBlockMap.data[$var7].data[1] | 0) != $this.$blockID) { - $par5 = 0; - $var7 = 0; - $var6 = 3; - $ptr = 2; - continue main; - } - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var7, var$9); - if ($rt_suspending()) { - break main; - } - if (!$par1World.$isRemote && !(!var$8 ? 0 : 1)) - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var7, $var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, var$8, var$9, $ptr); -} -function nms_BlockBed_idDropped($this, $par1, $par2Random, $par3) { - if (!($par1 & 8) ? 0 : 1) - $par1 = 0; - else { - nms_Item_$callClinit(); - $par1 = nms_Item_bed.$itemID; - } - return $par1; -} -function nms_BlockBed_setBedOccupied($par0World, $par1, $par2, $par3, $par4) { - var $var5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$par0World = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockMetadata($par0World, $par1, $par2, $par3); - $par4 = !$par4 ? $var5 & (-5) : $var5 | 4; - $var5 = 4; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par0World, $par1, $par2, $par3, $par4, $var5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0World, $par1, $par2, $par3, $par4, $var5, $ptr); -} -function nms_BlockBed_getNearestEmptyChunkCoordinates($par0World, $par1, $par2, $par3, $par4) { - var $var6, $var7, var$8, var$9, $var12, $var9, $var10, $var11, $var13; - $var6 = nms_World_getBlockMetadata($par0World, $par1, $par2, $par3) & 3; - $var7 = 0; - var$8 = $par2 - 1 | 0; - var$9 = $par2 + 1 | 0; - while ($var7 <= 1) { - $var12 = ($par1 - $rt_imul(nms_BlockBed_footBlockToHeadBlockMap.data[$var6].data[0], $var7) | 0) - 1 | 0; - $var9 = ($par3 - $rt_imul(nms_BlockBed_footBlockToHeadBlockMap.data[$var6].data[1], $var7) | 0) - 1 | 0; - $var10 = $var12 + 2 | 0; - $var11 = $var9 + 2 | 0; - while ($var12 <= $var10) { - $var13 = $var9; - while ($var13 <= $var11) { - nms_Block_$callClinit(); - if (nms_World_isBlockTopFacingSurfaceSolid($par0World, nms_Block_blocksList.data[nms_World_getBlockId($par0World, $var12, var$8, $var13)], nms_World_getBlockMetadata($par0World, $var12, var$8, $var13)) && (nms_World_getBlockId($par0World, $var12, $par2, $var13) ? 0 : 1) && (nms_World_getBlockId($par0World, $var12, var$9, $var13) ? 0 : 1)) { - if ($par4 <= 0) { - $par0World = new nms_ChunkCoordinates; - $par0World.$posX0 = $var12; - $par0World.$posY0 = $par2; - $par0World.$posZ0 = $var13; - return $par0World; - } - $par4 = $par4 + (-1) | 0; - } - $var13 = $var13 + 1 | 0; - } - $var12 = $var12 + 1 | 0; - } - $var7 = $var7 + 1 | 0; - } - return null; -} -function nms_BlockBed_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - if (!(!($par5 & 8) ? 0 : 1)) - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, 0); -} -function nms_BlockBed_getMobilityFlag($this) { - return 1; -} -function nms_BlockBed_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_bed.$itemID; -} -function nms_BlockBed__clinit_() { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createArray($rt_arraycls($rt_intcls()), 4); - var$2 = var$1.data; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = 1; - var$2[0] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = (-1); - var$4[1] = 0; - var$2[1] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = (-1); - var$2[2] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 1; - var$4[1] = 0; - var$2[3] = var$3; - nms_BlockBed_footBlockToHeadBlockMap = var$1; -} -function nms_BlockRailBase() { - nms_Block.call(this); - this.$isPowered = 0; -} -function nms_BlockRailBase_isRailBlockAt($par0World, $par1, $par2, $par3) { - return nms_BlockRailBase_isRailBlock(nms_World_getBlockId($par0World, $par1, $par2, $par3)); -} -function nms_BlockRailBase_isRailBlock($par0) { - nms_Block_$callClinit(); - return $par0 != nms_Block_rail.$blockID && $par0 != nms_Block_railPowered.$blockID && $par0 != nms_Block_railDetector.$blockID && $par0 != nms_Block_railActivator.$blockID ? 0 : 1; -} -function nms_BlockRailBase_isPowered($this) { - return $this.$isPowered; -} -function nms_BlockRailBase_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockRailBase_isOpaqueCube($this) { - return 0; -} -function nms_BlockRailBase_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3) { - nms_BlockRailBase_setBlockBoundsBasedOnState($this, $par1World, $par2, $par3, $par4); - return nms_Block_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3); -} -function nms_BlockRailBase_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - if ($var5 >= 2 && $var5 <= 5) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.625; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.125; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockRailBase_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockRailBase_getRenderType($this) { - return 9; -} -function nms_BlockRailBase_quantityDropped($this, $par1Random) { - return 1; -} -function nms_BlockRailBase_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - $par3 = $par3 - 1 | 0; - nms_Block_$callClinit(); - return nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); -} -function nms_BlockRailBase_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote) { - var$5 = 1; - if (!$par1World.$isRemote) { - var$6 = nms_BlockBaseRailLogic__init_($this, $par1World, $par2, $par3, $par4); - var$7 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4); - $ptr = 1; - continue main; - } - if ($this.$isPowered) { - var$7 = $this.$blockID; - $ptr = 2; - continue main; - } - } - return; - case 1: - nms_BlockBaseRailLogic_func_94511_a(var$6, var$7, var$5); - if ($rt_suspending()) { - break main; - } - if (!$this.$isPowered) - return; - var$7 = $this.$blockID; - $ptr = 2; - case 2: - nms_BlockRailBase_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, $ptr); -} -function nms_BlockRailBase_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, var$7, $var8, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - var$7 = !$this.$isPowered ? $var6 : $var6 & 7; - $var8 = 0; - var$9 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$9, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$9, $par4))) - $var8 = 1; - if (var$7 == 2) { - var$9 = $par2 + 1 | 0; - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, var$9, $par3, $par4)], nms_World_getBlockMetadata($par1World, var$9, $par3, $par4))) - $var8 = 1; - } - if (var$7 == 3) { - var$9 = $par2 - 1 | 0; - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, var$9, $par3, $par4)], nms_World_getBlockMetadata($par1World, var$9, $par3, $par4))) - $var8 = 1; - } - if (var$7 == 4) { - var$9 = $par4 - 1 | 0; - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, var$9)], nms_World_getBlockMetadata($par1World, $par2, $par3, var$9))) - $var8 = 1; - } - if (var$7 == 5) { - var$9 = $par4 + 1 | 0; - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, var$9)], nms_World_getBlockMetadata($par1World, $par2, $par3, var$9))) - $var8 = 1; - } - if (!$var8) { - $ptr = 1; - continue main; - } - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - var$9 = 0; - $var6 = 3; - $ptr = 2; - continue main; - case 1: - $this.$func_94358_a($par1World, $par2, $par3, $par4, $var6, var$7, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$9, $var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, var$7, $var8, var$9, $ptr); -} -function nms_BlockRailBase_func_94358_a($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - return; -} -function nms_BlockRailBase_refreshTrackShape($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - var$6 = nms_BlockBaseRailLogic__init_($this, $par1World, $par2, $par3, $par4); - $par2 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4); - $ptr = 1; - case 1: - nms_BlockBaseRailLogic_func_94511_a(var$6, $par2, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, $ptr); -} -function nms_BlockRailBase_getMobilityFlag($this) { - return 0; -} -function nms_BlockRailBase_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$isPowered) - $par6 = $par6 & 7; - if ($par6 != 2 && $par6 != 3 && $par6 != 4 && $par6 != 5) { - if (!$this.$isPowered) - return; - $ptr = 2; - continue main; - } - $par6 = $par3 + 1 | 0; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par6, $par4, $par5); - if ($rt_suspending()) { - break main; - } - if (!$this.$isPowered) - return; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 - 1 | 0; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $ptr); -} -function nms_BlockRailPowered() { - nms_BlockRailBase.call(this); - this.$theIcon6 = null; -} -function nms_BlockRailPowered__init_(var_0) { - var var_1 = new nms_BlockRailPowered(); - nms_BlockRailPowered__init_0(var_1, var_0); - return var_1; -} -function nms_BlockRailPowered__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$isPowered = 1; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.125; - $this.$maxZ0 = 1.0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabTransport; -} -function nms_BlockRailPowered_getIcon($this, $par1, $par2) { - return $par2 & 8 ? $this.$theIcon6 : $this.$blockIcon; -} -function nms_BlockRailPowered_registerIcons($this, $par1IconRegister) { - var var$2, var$3; - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$unlocalizedName0); - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - var$3 = $this.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$3); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(2053)); - $this.$theIcon6 = $par1IconRegister.$registerIcon(jl_String__init_0(var$2.$buffer, 0, var$2.$length)); -} -function nms_BlockRailPowered_func_94360_a($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9; - if ($par7 >= 8) - return 0; - a: { - $var8 = $par5 & 7; - $var9 = 1; - switch ($var8) { - case 0: - if (!$par6) { - $par4 = $par4 + (-1) | 0; - break a; - } - $par4 = $par4 + 1 | 0; - break a; - case 1: - if (!$par6) { - $par2 = $par2 + 1 | 0; - break a; - } - $par2 = $par2 + (-1) | 0; - break a; - case 2: - if ($par6) - $par2 = $par2 + (-1) | 0; - else { - $par2 = $par2 + 1 | 0; - $par3 = $par3 + 1 | 0; - $var9 = 0; - } - $var8 = 1; - break a; - case 3: - if (!$par6) - $par2 = $par2 + 1 | 0; - else { - $par2 = $par2 + (-1) | 0; - $par3 = $par3 + 1 | 0; - $var9 = 0; - } - $var8 = 1; - break a; - case 4: - if ($par6) - $par4 = $par4 + 1 | 0; - else { - $par4 = $par4 + (-1) | 0; - $par3 = $par3 + 1 | 0; - $var9 = 0; - } - $var8 = 0; - break a; - case 5: - if (!$par6) - $par4 = $par4 + (-1) | 0; - else { - $par4 = $par4 + 1 | 0; - $par3 = $par3 + 1 | 0; - $var9 = 0; - } - $var8 = 0; - break a; - default: - } - } - return nms_BlockRailPowered_func_94361_a($this, $par1World, $par2, $par3, $par4, $par6, $par7, $var8) ? 1 : $var9 && nms_BlockRailPowered_func_94361_a($this, $par1World, $par2, $par3 - 1 | 0, $par4, $par6, $par7, $var8) ? 1 : 0; -} -function nms_BlockRailPowered_func_94361_a($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var9, $var10; - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) == $this.$blockID) { - $var9 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var10 = $var9 & 7; - if ($par7 == 1 && !($var10 && $var10 != 4 && $var10 != 5)) - return 0; - if (!$par7 && !($var10 != 1 && $var10 != 2 && $var10 != 3)) - return 0; - if ($var9 & 8) { - if (nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4)) - return 1; - return nms_BlockRailPowered_func_94360_a($this, $par1World, $par2, $par3, $par4, $var9, $par5, $par6 + 1 | 0); - } - } - return 0; -} -function nms_BlockRailPowered_func_94358_a($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par7 = !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4) && !nms_BlockRailPowered_func_94360_a($this, $par1World, $par2, $par3, $par4, $par5, 1, 0) && !nms_BlockRailPowered_func_94360_a($this, $par1World, $par2, $par3, $par4, $par5, 0, 0) ? 0 : 1; - if ($par7 && !($par5 & 8)) { - $par5 = $par6 | 8; - $par7 = 3; - $ptr = 1; - continue main; - } - if (!$par7 && $par5 & 8) { - $par5 = 3; - $ptr = 2; - continue main; - } - if (!0) - return; - $par5 = $par3 - 1 | 0; - $par7 = $this.$blockID; - $ptr = 3; - continue main; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $par7); - if ($rt_suspending()) { - break main; - } - if (!1) - return; - $par5 = $par3 - 1 | 0; - $par7 = $this.$blockID; - $ptr = 3; - continue main; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $par5); - if ($rt_suspending()) { - break main; - } - if (!1) - return; - $par5 = $par3 - 1 | 0; - $par7 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par5, $par4, $par7); - if ($rt_suspending()) { - break main; - } - if ($par6 != 2 && $par6 != 3 && $par6 != 4 && $par6 != 5) - return; - $par3 = $par3 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 4; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $ptr); -} -function nms_BlockDetectorRail() { - nms_BlockRailBase.call(this); - this.$iconArray4 = null; -} -function nms_BlockDetectorRail__init_(var_0) { - var var_1 = new nms_BlockDetectorRail(); - nms_BlockDetectorRail__init_0(var_1, var_0); - return var_1; -} -function nms_BlockDetectorRail__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$isPowered = 1; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.125; - $this.$maxZ0 = 1.0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabTransport; - $this.$needsRandomTick = 1; -} -function nms_BlockDetectorRail_tickRate($this, $par1World) { - return 20; -} -function nms_BlockDetectorRail_canProvidePower($this) { - return 1; -} -function nms_BlockDetectorRail_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - var $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$par5Entity = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if (!($var6 & 8)) { - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_BlockDetectorRail_setStateIfMinecartInteractsWithRail($this, $par1World, $par2, $par3, $par4, $var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Entity, $var6, $ptr); -} -function nms_BlockDetectorRail_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return !(nms_World_getBlockMetadata($par1IBlockAccess, $par2, $par3, $par4) & 8) ? 0 : 15; -} -function nms_BlockDetectorRail_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return !($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 8) ? 0 : $par5 != 1 ? 0 : 15; -} -function nms_BlockDetectorRail_setStateIfMinecartInteractsWithRail($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, var$8, var$9, $var9, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, var$19, var$20, var$21, var$22, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var9 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = !($par5 & 8) ? 0 : 1; - $var7 = 0; - var$8 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$8.$initialized) { - var$9 = new nms_AABBPool; - $var9 = new ju_ArrayList; - ju_AbstractCollection__init_0($var9); - $var9.$array1 = $rt_createArray(jl_Object, 10); - var$9.$listAABB = $var9; - var$9.$nextPoolIndex = 0; - var$9.$maxPoolIndex = 0; - var$9.$numCleans = 0; - var$9.$maxNumCleans = 300; - var$9.$numEntriesToRemove = 2000; - var$8.$value7 = var$9; - var$8.$initialized = 1; - } - $var9 = var$8.$value7; - var$11 = $par2 + 0.125; - var$12 = $par3; - var$13 = $par4 + 0.125; - var$14 = $par2 + 1 | 0; - var$15 = var$14 - 0.125; - var$16 = $par3 + 1 | 0; - var$17 = var$16 - 0.125; - var$18 = $par4 + 1 | 0; - if (!(nms_World_selectEntitiesWithinAABB($par1World, $rt_cls(nms_EntityMinecart), nms_AABBPool_getAABB($var9, var$11, var$12, var$13, var$15, var$17, var$18 - 0.125), null).$size0 ? 0 : 1)) - $var7 = 1; - if ($var7 && !$var6) { - var$19 = $par5 | 8; - var$20 = 3; - $ptr = 1; - continue main; - } - if (!$var7 && $var6) { - $par5 = $par5 & 7; - var$19 = 3; - $ptr = 5; - continue main; - } - $par5 = $this.$blockID; - $ptr = 4; - continue main; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$19, var$20); - if ($rt_suspending()) { - break main; - } - var$19 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, var$19); - if ($rt_suspending()) { - break main; - } - var$20 = $par3 - 1 | 0; - var$19 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$20, $par4, var$19); - if ($rt_suspending()) { - break main; - } - var$21 = 0; - var$22 = $par2 - 1 | 0; - var$23 = $par4 - 1 | 0; - while (true) { - if (var$21 >= $par1World.$worldAccesses.$size0) { - if (!$var7 && $var6) { - $par5 = $par5 & 7; - var$19 = 3; - $ptr = 5; - continue main; - } - $par5 = $this.$blockID; - $ptr = 4; - continue main; - } - $var9 = $par1World.$worldAccesses; - if (var$21 < 0) - break; - if (var$21 >= $var9.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate($var9.$array1.data[var$21], var$22, var$20, var$23, var$14, var$16, var$18); - var$21 = var$21 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 4: - nms_World_func_96440_m($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 5: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, var$19); - if ($rt_suspending()) { - break main; - } - $par5 = $this.$blockID; - $ptr = 6; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $par5 = $par3 - 1 | 0; - var$19 = $this.$blockID; - $ptr = 7; - case 7: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par5, $par4, var$19); - if ($rt_suspending()) { - break main; - } - var$19 = 0; - var$20 = $par2 - 1 | 0; - var$21 = $par4 - 1 | 0; - while (true) { - if (var$19 >= $par1World.$worldAccesses.$size0) { - $par5 = $this.$blockID; - $ptr = 4; - continue main; - } - $var9 = $par1World.$worldAccesses; - if (var$19 < 0) - break; - if (var$19 >= $var9.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate($var9.$array1.data[var$19], var$20, $par5, var$21, var$14, var$16, var$18); - var$19 = var$19 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, var$8, var$9, $var9, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, var$19, var$20, var$21, var$22, var$23, $ptr); -} -function nms_BlockDetectorRail_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote) { - var$5 = 1; - if (!$par1World.$isRemote) { - var$6 = nms_BlockBaseRailLogic__init_($this, $par1World, $par2, $par3, $par4); - var$7 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4); - $ptr = 2; - continue main; - } - if ($this.$isPowered) { - var$7 = $this.$blockID; - $ptr = 3; - continue main; - } - } - var$7 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $ptr = 1; - case 1: - nms_BlockDetectorRail_setStateIfMinecartInteractsWithRail($this, $par1World, $par2, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_BlockBaseRailLogic_func_94511_a(var$6, var$7, var$5); - if ($rt_suspending()) { - break main; - } - if (!$this.$isPowered) { - var$7 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $ptr = 1; - continue main; - } - var$7 = $this.$blockID; - $ptr = 3; - case 3: - nms_BlockRailBase_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - var$7 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, $ptr); -} -function nms_BlockDetectorRail_hasComparatorInputOverride($this) { - return 1; -} -function nms_BlockDetectorRail_getComparatorInputOverride($this, $par1World, $par2, $par3, $par4, $par5) { - var $var7, var$7, var$8; - if ((nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 8) > 0) { - $var7 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var7.$initialized) { - var$7 = new nms_AABBPool; - var$8 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$8); - var$8.$array1 = $rt_createArray(jl_Object, 10); - var$7.$listAABB = var$8; - var$7.$nextPoolIndex = 0; - var$7.$maxPoolIndex = 0; - var$7.$numCleans = 0; - var$7.$maxNumCleans = 300; - var$7.$numEntriesToRemove = 2000; - $var7.$value7 = var$7; - $var7.$initialized = 1; - } - $var7 = nms_World_selectEntitiesWithinAABB($par1World, $rt_cls(nms_EntityMinecart), nms_AABBPool_getAABB($var7.$value7, $par2 + 0.125, $par3, $par4 + 0.125, ($par2 + 1 | 0) - 0.125, ($par3 + 1 | 0) - 0.125, ($par4 + 1 | 0) - 0.125), nms_IEntitySelector_selectInventories); - if ($var7.$size0 > 0) { - if (0 < $var7.$size0) - return nms_Container_calcRedstoneFromInventory($var7.$array1.data[0]); - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - return 0; -} -function nms_BlockDetectorRail_registerIcons($this, $par1IconRegister) { - $this.$iconArray4 = $rt_createArray(nms_Icon, 2); - $this.$iconArray4.data[0] = $par1IconRegister.$registerIcon($rt_s(1617)); - $this.$iconArray4.data[1] = $par1IconRegister.$registerIcon($rt_s(2054)); -} -function nms_BlockDetectorRail_getIcon($this, $par1, $par2) { - return !($par2 & 8) ? $this.$iconArray4.data[0] : $this.$iconArray4.data[1]; -} -function nms_BlockPistonBase() { - var a = this; nms_Block.call(a); - a.$isSticky = 0; - a.$innerTopIcon = null; - a.$bottomIcon = null; - a.$topIcon = null; -} -function nms_BlockPistonBase__init_(var_0, var_1) { - var var_2 = new nms_BlockPistonBase(); - nms_BlockPistonBase__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockPistonBase__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_piston); - $this.$isSticky = $par2; - $this.$stepSound = nms_Block_soundStoneFootstep; - $this.$blockHardness = 0.5; - if ($this.$blockResistance < 2.5) - $this.$blockResistance = 2.5; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockPistonBase_getPistonExtensionTexture($this) { - return $this.$topIcon; -} -function nms_BlockPistonBase_func_96479_b($this, $par1, $par2, $par3, $par4, $par5, $par6) { - $this.$minX0 = $par1; - $this.$minY0 = $par2; - $this.$minZ0 = $par3; - $this.$maxX0 = $par4; - $this.$maxY0 = $par5; - $this.$maxZ0 = $par6; -} -function nms_BlockPistonBase_getIcon($this, $par1, $par2) { - var $var3, var$4; - $var3 = $par2 & 7; - if ($var3 > 5) - var$4 = $this.$topIcon; - else if ($par1 != $var3) - var$4 = $par1 != nms_Facing_oppositeSide.data[$var3] ? $this.$blockIcon : $this.$bottomIcon; - else { - $par1 = !($par2 & 8) ? 0 : 1; - var$4 = !$par1 && $this.$minX0 <= 0.0 && $this.$minY0 <= 0.0 && $this.$minZ0 <= 0.0 && $this.$maxX0 >= 1.0 && $this.$maxY0 >= 1.0 && $this.$maxZ0 >= 1.0 ? $this.$topIcon : $this.$innerTopIcon; - } - return var$4; -} -function nms_BlockPistonBase_func_94496_b($par0Str) { - if ($par0Str === $rt_s(614)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_pistonBase.$blockIcon; - } else if ($par0Str === $rt_s(2055)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_pistonBase.$topIcon; - } else if ($par0Str === $rt_s(2056)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_pistonStickyBase.$topIcon; - } else if ($par0Str !== $rt_s(2057)) - $par0Str = null; - else { - nms_Block_$callClinit(); - $par0Str = nms_Block_pistonBase.$innerTopIcon; - } - return $par0Str; -} -function nms_BlockPistonBase_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(614)); - $this.$topIcon = $par1IconRegister.$registerIcon(!$this.$isSticky ? $rt_s(2055) : $rt_s(2056)); - $this.$innerTopIcon = $par1IconRegister.$registerIcon($rt_s(2057)); - $this.$bottomIcon = $par1IconRegister.$registerIcon($rt_s(2058)); -} -function nms_BlockPistonBase_getRenderType($this) { - return 16; -} -function nms_BlockPistonBase_isOpaqueCube($this) { - return 0; -} -function nms_BlockPistonBase_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - return 0; -} -function nms_BlockPistonBase_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var $var7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = nms_BlockPistonBase_determineOrientation($par1World, $par2, $par3, $par4, $par5EntityLiving); - var$8 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, var$8); - if ($rt_suspending()) { - break main; - } - if ($par1World.$isRemote) - return; - $ptr = 2; - case 2: - nms_BlockPistonBase_updatePistonState($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, $var7, var$8, $ptr); -} -function nms_BlockPistonBase_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - $ptr = 1; - case 1: - nms_BlockPistonBase_updatePistonState($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $ptr); -} -function nms_BlockPistonBase_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote && nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4) === null) { - $ptr = 1; - continue main; - } - return; - case 1: - nms_BlockPistonBase_updatePistonState($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $ptr); -} -function nms_BlockPistonBase_updatePistonState($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var7, 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();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var6 = $var5 & 7; - if ($var6 != 7) { - $var7 = nms_BlockPistonBase_isIndirectlyPowered($this, $par1World, $par2, $par3, $par4, $var6); - if ($var7 && !(!($var5 & 8) ? 0 : 1)) { - if (!nms_BlockPistonBase_canExtend($par1World, $par2, $par3, $par4, $var6)) - break a; - var$8 = $this.$blockID; - $var7 = 0; - if (var$8 <= 0) - break a; - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8]; - $ptr = 3; - continue main; - } - if (!$var7 && (!($var5 & 8) ? 0 : 1)) { - var$8 = 2; - $ptr = 1; - continue main; - } - } - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var6, var$8); - if ($rt_suspending()) { - break main; - } - var$8 = $this.$blockID; - $var7 = 1; - if (var$8 <= 0) - return; - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8]; - $ptr = 2; - case 2: - var$9.$onBlockEventReceived($par1World, $par2, $par3, $par4, $var7, $var6); - if ($rt_suspending()) { - break main; - } - return; - case 3: - var$9.$onBlockEventReceived($par1World, $par2, $par3, $par4, $var7, $var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, $var7, var$8, var$9, $ptr); -} -function nms_BlockPistonBase_isIndirectlyPowered($this, $par1World, $par2, $par3, $par4, $par5) { - a: { - if ($par5 && (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3 - 1 | 0, $par4, 0) <= 0 ? 0 : 1)) { - $par2 = 1; - break a; - } - if ($par5 != 1 && (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3 + 1 | 0, $par4, 1) <= 0 ? 0 : 1)) { - $par2 = 1; - break a; - } - if ($par5 != 2 && (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3, $par4 - 1 | 0, 2) <= 0 ? 0 : 1)) { - $par2 = 1; - break a; - } - if ($par5 != 3 && (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3, $par4 + 1 | 0, 3) <= 0 ? 0 : 1)) { - $par2 = 1; - break a; - } - if ($par5 != 5 && (nms_World_getIndirectPowerLevelTo($par1World, $par2 + 1 | 0, $par3, $par4, 5) <= 0 ? 0 : 1)) { - $par2 = 1; - break a; - } - if ($par5 != 4 && (nms_World_getIndirectPowerLevelTo($par1World, $par2 - 1 | 0, $par3, $par4, 4) <= 0 ? 0 : 1)) { - $par2 = 1; - break a; - } - if (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3, $par4, 0) <= 0 ? 0 : 1) { - $par2 = 1; - break a; - } - if (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3 + 2 | 0, $par4, 1) <= 0 ? 0 : 1) { - $par2 = 1; - break a; - } - $par3 = $par3 + 1 | 0; - if (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3, $par4 - 1 | 0, 2) <= 0 ? 0 : 1) { - $par2 = 1; - break a; - } - if (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3, $par4 + 1 | 0, 3) <= 0 ? 0 : 1) { - $par2 = 1; - break a; - } - if (nms_World_getIndirectPowerLevelTo($par1World, $par2 - 1 | 0, $par3, $par4, 4) <= 0 ? 0 : 1) { - $par2 = 1; - break a; - } - $par2 = nms_World_getIndirectPowerLevelTo($par1World, $par2 + 1 | 0, $par3, $par4, 5) <= 0 ? 0 : 1; - } - return $par2; -} -function nms_BlockPistonBase_onBlockEventReceived($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var16, $var8, $var14, $var9, $var10, $var11, $var12, $var15, $var13, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var13 = $thread.pop();$var15 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var14 = $thread.pop();$var8 = $thread.pop();$var16 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote) { - $var7 = nms_BlockPistonBase_isIndirectlyPowered($this, $par1World, $par2, $par3, $par4, $par6); - if ($var7 && $par5 == 1) { - $par5 = $par6 | 8; - $par6 = 2; - $ptr = 3; - continue main; - } - if (!$var7 && !$par5) - return 0; - } - if (!$par5) { - $ptr = 1; - continue main; - } - if ($par5 != 1) - return 1; - $var16 = nms_World_getBlockTileEntity($par1World, $par2 + nms_Facing_offsetsXForSide.data[$par6] | 0, $par3 + nms_Facing_offsetsYForSide.data[$par6] | 0, $par4 + nms_Facing_offsetsZForSide.data[$par6] | 0); - if ($var16 instanceof nms_TileEntityPiston) { - $var16 = $var16; - $ptr = 5; - continue main; - } - nms_Block_$callClinit(); - $par5 = nms_Block_pistonMoving.$blockID; - $var8 = 3; - $ptr = 4; - continue main; - case 1: - $tmp = nms_BlockPistonBase_tryExtend($this, $par1World, $par2, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - $par5 = $tmp; - if (!$par5) - return 0; - $par5 = $par6 | 8; - $par6 = 2; - $ptr = 2; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $par6); - if ($rt_suspending()) { - break main; - } - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(2059), 0.5, Math.random() * 0.25 + 0.6000000238418579); - return 1; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $par6); - if ($rt_suspending()) { - break main; - } - return 0; - case 4: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $par6, $var8); - if ($rt_suspending()) { - break main; - } - $par5 = $this.$blockID; - $var16 = new nms_TileEntityPiston; - $var16.$blockMetadata = (-1); - $var14 = new ju_ArrayList; - $var14.$array1 = $rt_createArray(jl_Object, 10); - $var16.$pushedObjects = $var14; - $var16.$storedBlockID = $par5; - $var16.$storedMetadata = $par6; - $var16.$storedOrientation = $par6; - $var16.$extending = 0; - $var16.$shouldHeadBeRendered = 1; - nms_World_setBlockTileEntity($par1World, $par2, $par3, $par4, $var16); - if (!$this.$isSticky) { - $par5 = $par2 + nms_Facing_offsetsXForSide.data[$par6] | 0; - $var8 = $par3 + nms_Facing_offsetsYForSide.data[$par6] | 0; - $par6 = $par4 + nms_Facing_offsetsZForSide.data[$par6] | 0; - $var9 = 0; - $var10 = 0; - $var11 = 3; - $ptr = 6; - continue main; - } - $var8 = $par2 + (nms_Facing_offsetsXForSide.data[$par6] * 2 | 0) | 0; - $var9 = $par3 + (nms_Facing_offsetsYForSide.data[$par6] * 2 | 0) | 0; - $var10 = $par4 + (nms_Facing_offsetsZForSide.data[$par6] * 2 | 0) | 0; - $var11 = nms_World_getBlockId($par1World, $var8, $var9, $var10); - $var12 = nms_World_getBlockMetadata($par1World, $var8, $var9, $var10); - if ($var11 == nms_Block_pistonMoving.$blockID) { - $var14 = nms_World_getBlockTileEntity($par1World, $var8, $var9, $var10); - if ($var14 instanceof nms_TileEntityPiston) { - $var15 = $var14; - if ($var15.$storedOrientation == $par6 && $var15.$extending) { - $ptr = 8; - continue main; - } - } - } - a: { - if (!0 && $var11 > 0 && nms_BlockPistonBase_canPushBlock($var11, $par1World, $var8, $var9, $var10, 0)) { - if (!nms_Block_blocksList.data[$var11].$getMobilityFlag()) - break a; - if ($var11 == nms_Block_pistonBase.$blockID) - break a; - if ($var11 == nms_Block_pistonStickyBase.$blockID) - break a; - } - if (0) { - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(2060), 0.5, ju_Random_nextFloat($par1World.$rand) * 0.15000000596046448 + 0.6000000238418579); - return 1; - } - $par5 = $par2 + nms_Facing_offsetsXForSide.data[$par6] | 0; - $var8 = $par3 + nms_Facing_offsetsYForSide.data[$par6] | 0; - $par6 = $par4 + nms_Facing_offsetsZForSide.data[$par6] | 0; - $ptr = 7; - continue main; - } - $par2 = $par2 + nms_Facing_offsetsXForSide.data[$par6] | 0; - $par3 = $par3 + nms_Facing_offsetsYForSide.data[$par6] | 0; - $par4 = $par4 + nms_Facing_offsetsZForSide.data[$par6] | 0; - $par5 = nms_Block_pistonMoving.$blockID; - $var13 = 3; - $ptr = 9; - continue main; - case 5: - nms_TileEntityPiston_clearPistonTileEntity($var16); - if ($rt_suspending()) { - break main; - } - nms_Block_$callClinit(); - $par5 = nms_Block_pistonMoving.$blockID; - $var8 = 3; - $ptr = 4; - continue main; - case 6: - nms_World_setBlock($par1World, $par5, $var8, $par6, $var9, $var10, $var11); - if ($rt_suspending()) { - break main; - } - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(2060), 0.5, ju_Random_nextFloat($par1World.$rand) * 0.15000000596046448 + 0.6000000238418579); - return 1; - case 7: - nms_World_setBlockToAir($par1World, $par5, $var8, $par6); - if ($rt_suspending()) { - break main; - } - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(2060), 0.5, ju_Random_nextFloat($par1World.$rand) * 0.15000000596046448 + 0.6000000238418579); - return 1; - case 8: - nms_TileEntityPiston_clearPistonTileEntity($var15); - if ($rt_suspending()) { - break main; - } - $var11 = $var15.$storedBlockID; - $var12 = $var15.$storedMetadata; - b: { - if (!1 && $var11 > 0 && nms_BlockPistonBase_canPushBlock($var11, $par1World, $var8, $var9, $var10, 0)) { - if (!nms_Block_blocksList.data[$var11].$getMobilityFlag()) - break b; - if ($var11 == nms_Block_pistonBase.$blockID) - break b; - if ($var11 == nms_Block_pistonStickyBase.$blockID) - break b; - } - if (1) { - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(2060), 0.5, ju_Random_nextFloat($par1World.$rand) * 0.15000000596046448 + 0.6000000238418579); - return 1; - } - $par5 = $par2 + nms_Facing_offsetsXForSide.data[$par6] | 0; - $var8 = $par3 + nms_Facing_offsetsYForSide.data[$par6] | 0; - $par6 = $par4 + nms_Facing_offsetsZForSide.data[$par6] | 0; - $ptr = 7; - continue main; - } - $par2 = $par2 + nms_Facing_offsetsXForSide.data[$par6] | 0; - $par3 = $par3 + nms_Facing_offsetsYForSide.data[$par6] | 0; - $par4 = $par4 + nms_Facing_offsetsZForSide.data[$par6] | 0; - $par5 = nms_Block_pistonMoving.$blockID; - $var13 = 3; - $ptr = 9; - case 9: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var12, $var13); - if ($rt_suspending()) { - break main; - } - $var16 = new nms_TileEntityPiston; - $var16.$blockMetadata = (-1); - $var14 = new ju_ArrayList; - $var14.$array1 = $rt_createArray(jl_Object, 10); - $var16.$pushedObjects = $var14; - $var16.$storedBlockID = $var11; - $var16.$storedMetadata = $var12; - $var16.$storedOrientation = $par6; - $var16.$extending = 0; - $var16.$shouldHeadBeRendered = 0; - nms_World_setBlockTileEntity($par1World, $par2, $par3, $par4, $var16); - $ptr = 10; - case 10: - nms_World_setBlockToAir($par1World, $var8, $var9, $var10); - if ($rt_suspending()) { - break main; - } - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(2060), 0.5, ju_Random_nextFloat($par1World.$rand) * 0.15000000596046448 + 0.6000000238418579); - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var16, $var8, $var14, $var9, $var10, $var11, $var12, $var15, $var13, $ptr); -} -function nms_BlockPistonBase_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - if (!(!($var5 & 8) ? 0 : 1)) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else - a: { - switch ($var5 & 7) { - case 0: - break; - case 1: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.75; - $this.$maxZ0 = 1.0; - break a; - case 2: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.25; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - break a; - case 3: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.75; - break a; - case 4: - $this.$minX0 = 0.25; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - break a; - case 5: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.75; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - break a; - default: - break a; - } - $this.$minX0 = 0.0; - $this.$minY0 = 0.25; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockPistonBase_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; -} -function nms_BlockPistonBase_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - nms_BlockPistonBase_setBlockBoundsBasedOnState($this, $par1World, $par2, $par3, $par4); - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); -} -function nms_BlockPistonBase_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockPistonBase_setBlockBoundsBasedOnState($this, $par1World, $par2, $par3, $par4); - return nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockPistonBase_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockPistonBase_determineOrientation($par0World, $par1, $par2, $par3, $par4EntityLiving) { - var var$6, $var5, var$8, $var7; - var$6 = $par4EntityLiving.$posX - $par1; - if (var$6 < 0.0) - var$6 = -var$6; - if (var$6 < 2.0) { - var$6 = $par4EntityLiving.$posZ - $par3; - if (var$6 < 0.0) - var$6 = -var$6; - if (var$6 < 2.0) { - $var5 = $par4EntityLiving.$posY + 1.82 - $par4EntityLiving.$yOffset0; - var$8 = $par2; - if ($var5 - var$8 > 2.0) - return 1; - if (var$8 - $var5 > 0.0) - return 0; - } - } - $var5 = $par4EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - $par1 = $var5 | 0; - if ($var5 < $par1) - $par1 = $par1 - 1 | 0; - $var7 = $par1 & 3; - return !$var7 ? 2 : $var7 == 1 ? 5 : $var7 == 2 ? 3 : $var7 != 3 ? 0 : 4; -} -function nms_BlockPistonBase_canPushBlock($par0, $par1World, $par2, $par3, $par4, $par5) { - nms_Block_$callClinit(); - if ($par0 == nms_Block_obsidian.$blockID) - return 0; - a: { - if (!($par0 != nms_Block_pistonBase.$blockID && $par0 != nms_Block_pistonStickyBase.$blockID)) { - if (!(!(nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 8) ? 0 : 1)) - break a; - return 0; - } - if (nms_Block_blocksList.data[$par0].$blockHardness === (-1.0)) - return 0; - if (nms_Block_blocksList.data[$par0].$getMobilityFlag() == 2) - return 0; - if (nms_Block_blocksList.data[$par0].$getMobilityFlag() == 1) { - if ($par5) - return 1; - return 0; - } - } - return $rt_isInstance(nms_Block_blocksList.data[$par0], nms_ITileEntityProvider) ? 0 : 1; -} -function nms_BlockPistonBase_canExtend($par0World, $par1, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9; - $var5 = $par1 + nms_Facing_offsetsXForSide.data[$par4] | 0; - $var6 = $par2 + nms_Facing_offsetsYForSide.data[$par4] | 0; - $var7 = $par3 + nms_Facing_offsetsZForSide.data[$par4] | 0; - $var8 = 0; - a: { - while ($var8 < 13) { - if ($var6 <= 0) - break a; - if ($var6 >= 255) - break a; - $var9 = nms_World_getBlockId($par0World, $var5, $var6, $var7); - if (!$var9) - break; - if (!nms_BlockPistonBase_canPushBlock($var9, $par0World, $var5, $var6, $var7, 1)) - return 0; - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var9].$getMobilityFlag() == 1) - break; - if ($var8 == 12) - return 0; - $var5 = $var5 + nms_Facing_offsetsXForSide.data[$par4] | 0; - $var6 = $var6 + nms_Facing_offsetsYForSide.data[$par4] | 0; - $var7 = $var7 + nms_Facing_offsetsZForSide.data[$par4] | 0; - $var8 = $var8 + 1 | 0; - } - return 1; - } - return 0; -} -function nms_BlockPistonBase_tryExtend($this, $par1World, $par2, $par3, $par4, $par5) { - var $var14, $var15, $var16, $var9, $var10, $var14_0, $var15_0, $var12, var$14, var$15, var$16, var$17, $var16_0, $var17, $var18, var$21, var$22, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var16_0 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();$var12 = $thread.pop();$var15_0 = $thread.pop();$var14_0 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 - = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var14 = $par2 + nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15 = $par3 + nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16 = $par4 + nms_Facing_offsetsZForSide.data[$par5] | 0; - $var9 = 0; - a: { - b: { - while (true) { - if ($var9 >= 13) - break a; - if ($var15 <= 0) - break b; - if ($var15 >= 255) - break b; - $var10 = nms_World_getBlockId($par1World, $var14, $var15, $var16); - if (!$var10) - break a; - if (!nms_BlockPistonBase_canPushBlock($var10, $par1World, $var14, $var15, $var16, 1)) - return 0; - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var10].$getMobilityFlag() == 1) { - nms_Block_blocksList.data[$var10].$dropBlockAsItemWithChance($par1World, $var14, $var15, $var16, nms_World_getBlockMetadata($par1World, $var14, $var15, $var16), 1.0, 0); - $var14_0 = 0; - $var15_0 = 0; - $var9 = 3; - $ptr = 2; - continue main; - } - if ($var9 == 12) - break; - $var14 = $var14 + nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15 = $var15 + nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16 = $var16 + nms_Facing_offsetsZForSide.data[$par5] | 0; - $var9 = $var9 + 1 | 0; - } - return 0; - } - return 0; - } - $var12 = 0; - var$14 = $rt_createIntArray(13).data; - var$15 = $var14; - var$16 = $var15; - var$17 = $var16; - if (var$15 == $par2 && var$16 == $par3 && var$17 == $par4) { - if ($var14 == $par2 && $var15 == $par3 && $var16 == $par4) - return 1; - $var14 = $var14 - nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15 = $var15 - nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16 = $var16 - nms_Facing_offsetsZForSide.data[$par5] | 0; - $var15_0 = 0 + 1 | 0; - $var14_0 = var$14[0]; - $ptr = 3; - continue main; - } - $var14_0 = var$15 - nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15_0 = var$16 - nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16_0 = var$17 - nms_Facing_offsetsZForSide.data[$par5] | 0; - $var17 = nms_World_getBlockId($par1World, $var14_0, $var15_0, $var16_0); - $var18 = nms_World_getBlockMetadata($par1World, $var14_0, $var15_0, $var16_0); - if ($var17 == $this.$blockID && $var14_0 == $par2 && $var15_0 == $par3 && $var16_0 == $par4) { - nms_Block_$callClinit(); - $var9 = nms_Block_pistonMoving.$blockID; - $var10 = $par5 | (!$this.$isSticky ? 0 : 8); - var$21 = 4; - $ptr = 4; - continue main; - } - nms_Block_$callClinit(); - $var9 = nms_Block_pistonMoving.$blockID; - $var10 = 4; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, var$15, var$16, var$17, $var9, $var18, $var10); - if ($rt_suspending()) { - break main; - } - var$22 = new nms_TileEntityPiston; - var$22.$blockMetadata = (-1); - var$23 = new ju_ArrayList; - var$23.$array1 = $rt_createArray(jl_Object, 10); - var$22.$pushedObjects = var$23; - var$22.$storedBlockID = $var17; - var$22.$storedMetadata = $var18; - var$22.$storedOrientation = $par5; - var$22.$extending = 1; - var$22.$shouldHeadBeRendered = 0; - nms_World_setBlockTileEntity($par1World, var$15, var$16, var$17, var$22); - $var9 = $var12 + 1 | 0; - var$14[$var12] = $var17; - $var12 = $var9; - var$15 = $var14_0; - var$16 = $var15_0; - var$17 = $var16_0; - if (var$15 == $par2 && var$16 == $par3 && var$17 == $par4) { - if ($var14 == $par2 && $var15 == $par3 && $var16 == $par4) - return 1; - $var14 = $var14 - nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15 = $var15 - nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16 = $var16 - nms_Facing_offsetsZForSide.data[$par5] | 0; - $var15_0 = 0 + 1 | 0; - $var14_0 = var$14[0]; - $ptr = 3; - continue main; - } - $var14_0 = var$15 - nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15_0 = var$16 - nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16_0 = var$17 - nms_Facing_offsetsZForSide.data[$par5] | 0; - $var17 = nms_World_getBlockId($par1World, $var14_0, $var15_0, $var16_0); - $var18 = nms_World_getBlockMetadata($par1World, $var14_0, $var15_0, $var16_0); - if ($var17 == $this.$blockID && $var14_0 == $par2 && $var15_0 == $par3 && $var16_0 == $par4) { - nms_Block_$callClinit(); - $var9 = nms_Block_pistonMoving.$blockID; - $var10 = $par5 | (!$this.$isSticky ? 0 : 8); - var$21 = 4; - $ptr = 4; - continue main; - } - nms_Block_$callClinit(); - $var9 = nms_Block_pistonMoving.$blockID; - $var10 = 4; - continue main; - case 2: - nms_World_setBlock($par1World, $var14, $var15, $var16, $var14_0, $var15_0, $var9); - if ($rt_suspending()) { - break main; - } - $var12 = 0; - var$14 = $rt_createIntArray(13).data; - var$15 = $var14; - var$16 = $var15; - var$17 = $var16; - if (var$15 == $par2 && var$16 == $par3 && var$17 == $par4) { - if ($var14 == $par2 && $var15 == $par3 && $var16 == $par4) - return 1; - $var14 = $var14 - nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15 = $var15 - nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16 = $var16 - nms_Facing_offsetsZForSide.data[$par5] | 0; - $var15_0 = 0 + 1 | 0; - $var14_0 = var$14[0]; - $ptr = 3; - continue main; - } - $var14_0 = var$15 - nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15_0 = var$16 - nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16_0 = var$17 - nms_Facing_offsetsZForSide.data[$par5] | 0; - $var17 = nms_World_getBlockId($par1World, $var14_0, $var15_0, $var16_0); - $var18 = nms_World_getBlockMetadata($par1World, $var14_0, $var15_0, $var16_0); - if ($var17 == $this.$blockID && $var14_0 == $par2 && $var15_0 == $par3 && $var16_0 == $par4) { - nms_Block_$callClinit(); - $var9 = nms_Block_pistonMoving.$blockID; - $var10 = $par5 | (!$this.$isSticky ? 0 : 8); - var$21 = 4; - $ptr = 4; - continue main; - } - nms_Block_$callClinit(); - $var9 = nms_Block_pistonMoving.$blockID; - $var10 = 4; - $ptr = 1; - continue main; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $var14, $var15, $var16, $var14_0); - if ($rt_suspending()) { - break main; - } - $var14_0 = $var15_0; - if ($var14 == $par2 && $var15 == $par3 && $var16 == $par4) - return 1; - $var14 = $var14 - nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15 = $var15 - nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16 = $var16 - nms_Facing_offsetsZForSide.data[$par5] | 0; - $var15_0 = $var14_0 + 1 | 0; - $var14_0 = var$14[$var14_0]; - continue main; - case 4: - nms_World_setBlock($par1World, var$15, var$16, var$17, $var9, $var10, var$21); - if ($rt_suspending()) { - break main; - } - $var9 = nms_Block_pistonExtension.$blockID; - $var10 = $par5 | (!$this.$isSticky ? 0 : 8); - var$22 = new nms_TileEntityPiston; - var$22.$blockMetadata = (-1); - var$23 = new ju_ArrayList; - var$23.$array1 = $rt_createArray(jl_Object, 10); - var$22.$pushedObjects = var$23; - var$22.$storedBlockID = $var9; - var$22.$storedMetadata = $var10; - var$22.$storedOrientation = $par5; - var$22.$extending = 1; - var$22.$shouldHeadBeRendered = 0; - nms_World_setBlockTileEntity($par1World, var$15, var$16, var$17, var$22); - $var9 = $var12 + 1 | 0; - var$14[$var12] = $var17; - $var12 = $var9; - var$15 = $var14_0; - var$16 = $var15_0; - var$17 = $var16_0; - if (var$15 == $par2 && var$16 == $par3 && var$17 == $par4) { - if ($var14 == $par2 && $var15 == $par3 && $var16 == $par4) - return 1; - $var14 = $var14 - nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15 = $var15 - nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16 = $var16 - nms_Facing_offsetsZForSide.data[$par5] | 0; - $var15_0 = 0 + 1 | 0; - $var14_0 = var$14[0]; - $ptr = 3; - continue main; - } - $var14_0 = var$15 - nms_Facing_offsetsXForSide.data[$par5] | 0; - $var15_0 = var$16 - nms_Facing_offsetsYForSide.data[$par5] | 0; - $var16_0 = var$17 - nms_Facing_offsetsZForSide.data[$par5] | 0; - $var17 = nms_World_getBlockId($par1World, $var14_0, $var15_0, $var16_0); - $var18 = nms_World_getBlockMetadata($par1World, $var14_0, $var15_0, $var16_0); - if ($var17 == $this.$blockID && $var14_0 == $par2 && $var15_0 == $par3 && $var16_0 == $par4) { - nms_Block_$callClinit(); - $var9 = nms_Block_pistonMoving.$blockID; - $var10 = $par5 | (!$this.$isSticky ? 0 : 8); - var$21 = 4; - continue main; - } - nms_Block_$callClinit(); - $var9 = nms_Block_pistonMoving.$blockID; - $var10 = 4; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var14, $var15, $var16, $var9, $var10, $var14_0, $var15_0, $var12, var$14, var$15, var$16, var$17, $var16_0, $var17, $var18, var$21, var$22, var$23, $ptr); -} -function nms_BlockWeb() { - nms_Block.call(this); -} -function nms_BlockWeb__init_(var_0) { - var var_1 = new nms_BlockWeb(); - nms_BlockWeb__init_0(var_1, var_0); - return var_1; -} -function nms_BlockWeb__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_web); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockWeb_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - $par5Entity.$setInWeb(); -} -function nms_BlockWeb_isOpaqueCube($this) { - return 0; -} -function nms_BlockWeb_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockWeb_getRenderType($this) { - return 1; -} -function nms_BlockWeb_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockWeb_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_silk.$itemID; -} -function nms_BlockTallGrass() { - nms_BlockFlower.call(this); - this.$iconArray5 = null; -} -var nms_BlockTallGrass_grassTypes = null; -function nms_BlockTallGrass__init_(var_0) { - var var_1 = new nms_BlockTallGrass(); - nms_BlockTallGrass__init_0(var_1, var_0); - return var_1; -} -function nms_BlockTallGrass__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_vine); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.699999988079071; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$minX0 = 0.09999999403953552; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.09999999403953552; - $this.$maxX0 = 0.8999999761581421; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.8999999761581421; -} -function nms_BlockTallGrass_getIcon($this, $par1, $par2) { - if ($par2 >= $this.$iconArray5.data.length) - $par2 = 0; - return $this.$iconArray5.data[$par2]; -} -function nms_BlockTallGrass_getBlockColor($this) { - return nms_ColorizerGrass_getGrassColor(0.5, 1.0); -} -function nms_BlockTallGrass_getRenderColor($this, $par1) { - return $par1 ? 4764952 : 16777215; -} -function nms_BlockTallGrass_colorMultiplier($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6; - if (!$par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4)) - return 16777215; - $par3 = nms_BiomeGenBase_getBiomeGrassColor($par1IBlockAccess.$getBiomeGenForCoords($par2, $par4)); - $var5 = $par2 >> 4; - $var6 = $par4 >> 4; - nms_Block_$callClinit(); - if (!(nms_Block_noiseChunkX == $var5 && nms_Block_noiseChunkZ == $var6)) { - nms_Block_noiseChunkX = $var5; - nms_Block_noiseChunkZ = $var6; - nms_Block_initNoiseField0($var5, $var6); - } - $var6 = ($par3 >> 8 & 255) * (nms_Block_grassNoiseArray.data[($par4 & 15) + (($par2 & 15) * 16 | 0) | 0] * 0.25 + 1.0) | 0; - if ($var6 > 255) - $var6 = 255; - if ($var6 < 0) - $var6 = 0; - return $par3 & 16711935 | $var6 << 8; -} -function nms_BlockTallGrass_idDropped($this, $par1, $par2Random, $par3) { - if (Math.random() * 8.0 | 0) - $par1 = (-1); - else { - nms_Item_$callClinit(); - $par1 = nms_Item_seeds.$itemID; - } - return $par1; -} -function nms_BlockTallGrass_quantityDroppedWithBonus($this, $par1, $par2Random) { - $par1 = ($par1 * 2 | 0) + 1 | 0; - return 1 + (Math.random() * $par1 | 0) | 0; -} -function nms_BlockTallGrass_getDamageValue($this, $par1World, $par2, $par3, $par4) { - return nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); -} -function nms_BlockTallGrass_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - var $var4; - $var4 = 1; - while ($var4 < 3) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = $var4; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $var4 = $var4 + 1 | 0; - } -} -function nms_BlockTallGrass_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$iconArray5 = $rt_createArray(nms_Icon, nms_BlockTallGrass_grassTypes.data.length); - $var2 = 0; - while ($var2 < $this.$iconArray5.data.length) { - $this.$iconArray5.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockTallGrass_grassTypes.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockTallGrass__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(1621); - var$2[1] = $rt_s(1620); - var$2[2] = $rt_s(1711); - nms_BlockTallGrass_grassTypes = var$1; -} -function nms_BlockDeadBush() { - nms_BlockFlower.call(this); -} -function nms_BlockDeadBush__init_(var_0) { - var var_1 = new nms_BlockDeadBush(); - nms_BlockDeadBush__init_0(var_1, var_0); - return var_1; -} -function nms_BlockDeadBush__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_vine); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.699999988079071; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$minX0 = 0.09999999403953552; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.09999999403953552; - $this.$maxX0 = 0.8999999761581421; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.8999999761581421; -} -function nms_BlockDeadBush_canThisPlantGrowOnThisBlockID($this, $par1) { - nms_Block_$callClinit(); - return $par1 != nms_Block_sand.$blockID ? 0 : 1; -} -function nms_BlockDeadBush_idDropped($this, $par1, $par2Random, $par3) { - return (-1); -} -function nms_BlockPistonExtension() { - nms_Block.call(this); - this.$headTexture = null; -} -function nms_BlockPistonExtension__init_(var_0) { - var var_1 = new nms_BlockPistonExtension(); - nms_BlockPistonExtension__init_0(var_1, var_0); - return var_1; -} -function nms_BlockPistonExtension__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_piston); - $this.$headTexture = null; - $this.$stepSound = nms_Block_soundStoneFootstep; - $this.$blockHardness = 0.5; - if ($this.$blockResistance < 2.5) - $this.$blockResistance = 2.5; -} -function nms_BlockPistonExtension_setHeadTexture($this, $par1Icon) { - $this.$headTexture = $par1Icon; -} -function nms_BlockPistonExtension_clearHeadTexture($this) { - $this.$headTexture = null; -} -function nms_BlockPistonExtension_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = nms_Facing_oppositeSide.data[$par6 & 7]; - $par5 = $par2 + nms_Facing_offsetsXForSide.data[$var7] | 0; - $par2 = $par3 + nms_Facing_offsetsYForSide.data[$var7] | 0; - $par3 = $par4 + nms_Facing_offsetsZForSide.data[$var7] | 0; - $var8 = nms_World_getBlockId($par1World, $par5, $par2, $par3); - nms_Block_$callClinit(); - if (!($var8 != nms_Block_pistonBase.$blockID && $var8 != nms_Block_pistonStickyBase.$blockID)) { - $par4 = nms_World_getBlockMetadata($par1World, $par5, $par2, $par3); - if (!($par4 & 8) ? 0 : 1) { - nms_Block_blocksList.data[$var8].$dropBlockAsItemWithChance($par1World, $par5, $par2, $par3, $par4, 1.0, 0); - $par4 = 0; - $par6 = 0; - $var7 = 3; - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_World_setBlock($par1World, $par5, $par2, $par3, $par4, $par6, $var7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var8, $ptr); -} -function nms_BlockPistonExtension_getIcon($this, $par1, $par2) { - var $var3; - $var3 = $par2 & 7; - return $par1 == $var3 ? ($this.$headTexture !== null ? $this.$headTexture : !($par2 & 8) ? nms_BlockPistonBase_func_94496_b($rt_s(2055)) : nms_BlockPistonBase_func_94496_b($rt_s(2056))) : $var3 < 6 && $par1 == nms_Facing_oppositeSide.data[$var3] ? nms_BlockPistonBase_func_94496_b($rt_s(2055)) : nms_BlockPistonBase_func_94496_b($rt_s(614)); -} -function nms_BlockPistonExtension_registerIcons($this, $par1IconRegister) { - return; -} -function nms_BlockPistonExtension_getRenderType($this) { - return 17; -} -function nms_BlockPistonExtension_isOpaqueCube($this) { - return 0; -} -function nms_BlockPistonExtension_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockPistonExtension_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - return 0; -} -function nms_BlockPistonExtension_canPlaceBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5) { - return 0; -} -function nms_BlockPistonExtension_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockPistonExtension_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - var var$8; - a: { - switch (nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 7) { - case 0: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.25; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.375; - $this.$minY0 = 0.25; - $this.$minZ0 = 0.375; - $this.$maxX0 = 0.625; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.625; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - break a; - case 1: - $this.$minX0 = 0.0; - $this.$minY0 = 0.75; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.375; - $this.$maxX0 = 0.625; - $this.$maxY0 = 0.75; - $this.$maxZ0 = 0.625; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - break a; - case 2: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.25; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.25; - $this.$minY0 = 0.375; - $this.$minZ0 = 0.25; - $this.$maxX0 = 0.75; - $this.$maxY0 = 0.625; - $this.$maxZ0 = 1.0; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - break a; - case 3: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.75; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.25; - $this.$minY0 = 0.375; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.75; - $this.$maxY0 = 0.625; - $this.$maxZ0 = 0.75; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - break a; - case 4: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.25; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - var$8 = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if (var$8 !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, var$8)) - ju_ArrayList_add($par6List, var$8); - nms_Block_setBlockBounds($this, 0.375, 0.25, 0.25, 0.625, 0.75, 1.0); - nms_Block_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity); - break a; - case 5: - break; - default: - break a; - } - nms_Block_setBlockBounds($this, 0.75, 0.0, 0.0, 1.0, 1.0, 1.0); - nms_Block_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity); - nms_Block_setBlockBounds($this, 0.0, 0.375, 0.25, 0.75, 0.625, 0.75); - nms_Block_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity); - } - nms_Block_setBlockBounds($this, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0); -} -function nms_BlockPistonExtension_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - a: { - switch ($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 7) { - case 0: - break; - case 1: - $this.$minX0 = 0.0; - $this.$minY0 = 0.75; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - break a; - case 2: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.25; - break a; - case 3: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.75; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - break a; - case 4: - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.25; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - break a; - case 5: - $this.$minX0 = 0.75; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - break a; - default: - break a; - } - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.25; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockPistonExtension_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, 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();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 7; - $var7 = nms_World_getBlockId($par1World, $par2 - nms_Facing_offsetsXForSide.data[$var6] | 0, $par3 - nms_Facing_offsetsYForSide.data[$var6] | 0, $par4 - nms_Facing_offsetsZForSide.data[$var6] | 0); - nms_Block_$callClinit(); - if ($var7 != nms_Block_pistonBase.$blockID && $var7 != nms_Block_pistonStickyBase.$blockID) { - $par5 = 0; - $var7 = 0; - var$8 = 3; - $ptr = 2; - continue main; - } - var$9 = nms_Block_blocksList.data[$var7]; - $par2 = $par2 - nms_Facing_offsetsXForSide.data[$var6] | 0; - $par3 = $par3 - nms_Facing_offsetsYForSide.data[$var6] | 0; - $par4 = $par4 - nms_Facing_offsetsZForSide.data[$var6] | 0; - $ptr = 1; - case 1: - var$9.$onNeighborBlockChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var7, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, var$8, var$9, $ptr); -} -function nms_BlockPistonExtension_idPicked($this, $par1World, $par2, $par3, $par4) { - return 0; -} -function nms_BlockCloth() { - nms_Block.call(this); - this.$iconArray6 = null; -} -function nms_BlockCloth__init_0() { - var var_0 = new nms_BlockCloth(); - nms_BlockCloth__init_(var_0); - return var_0; -} -function nms_BlockCloth__init_($this) { - nms_Material_$callClinit(); - nms_Block__init_0($this, 35, nms_Material_cloth); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockCloth_getIcon($this, $par1, $par2) { - return $this.$iconArray6.data[$par2 % $this.$iconArray6.data.length | 0]; -} -function nms_BlockCloth_damageDropped($this, $par1) { - return $par1; -} -function nms_BlockCloth_getDyeFromBlock($par0) { - return ($par0 ^ (-1)) & 15; -} -function nms_BlockCloth_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - var $var4; - $var4 = 0; - while ($var4 < 16) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = $var4; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $var4 = $var4 + 1 | 0; - } -} -function nms_BlockCloth_registerIcons($this, $par1IconRegister) { - var $var2, var$3, var$4; - $this.$iconArray6 = $rt_createArray(nms_Icon, 16); - $var2 = 0; - while ($var2 < $this.$iconArray6.data.length) { - var$3 = $this.$iconArray6.data; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2061)); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var2, 10); - var$3[$var2] = $par1IconRegister.$registerIcon(jl_String__init_0(var$4.$buffer, 0, var$4.$length)); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockPistonMoving() { - nms_BlockContainer.call(this); -} -function nms_BlockPistonMoving__init_(var_0) { - var var_1 = new nms_BlockPistonMoving(); - nms_BlockPistonMoving__init_0(var_1, var_0); - return var_1; -} -function nms_BlockPistonMoving__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_piston); - $this.$isBlockContainer = 1; - $this.$blockHardness = (-1.0); - if ($this.$blockResistance < (-5.0)) - $this.$blockResistance = (-5.0); -} -function nms_BlockPistonMoving_createNewTileEntity($this, $par1World) { - return null; -} -function nms_BlockPistonMoving_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - return; -} -function nms_BlockPistonMoving_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if (!($var7 instanceof nms_TileEntityPiston)) { - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - } - $par1World = $var7; - $ptr = 1; - case 1: - nms_TileEntityPiston_clearPistonTileEntity($par1World); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $ptr); -} -function nms_BlockPistonMoving_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - return 0; -} -function nms_BlockPistonMoving_canPlaceBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5) { - return 0; -} -function nms_BlockPistonMoving_getRenderType($this) { - return (-1); -} -function nms_BlockPistonMoving_isOpaqueCube($this) { - return 0; -} -function nms_BlockPistonMoving_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockPistonMoving_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var 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();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote && nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4) === null) { - $par6 = 0; - var$10 = 0; - var$11 = 3; - $ptr = 1; - continue main; - } - return 0; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par6, var$10, var$11); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, var$10, var$11, $ptr); -} -function nms_BlockPistonMoving_idDropped($this, $par1, $par2Random, $par3) { - return 0; -} -function nms_BlockPistonMoving_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, $var8; - if (!$par1World.$isRemote) { - var$8 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - $var8 = !(var$8 instanceof nms_TileEntityPiston) ? null : var$8; - if ($var8 !== null) { - nms_Block_$callClinit(); - nms_Block_blocksList.data[$var8.$storedBlockID].$dropBlockAsItemWithChance($par1World, $par2, $par3, $par4, $var8.$storedMetadata, 1.0, 0); - } - } -} -function nms_BlockPistonMoving_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); -} -function nms_BlockPistonMoving_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - $var5 = !($var5 instanceof nms_TileEntityPiston) ? null : $var5; - if ($var5 === null) - return null; - $var6 = $var5.$lastProgress + ($var5.$progress - $var5.$lastProgress) * 0.0; - if ($var5.$extending) - $var6 = 1.0 - $var6; - return nms_BlockPistonMoving_getAxisAlignedBB($this, $par1World, $par2, $par3, $par4, $var5.$storedBlockID, $var6, $var5.$storedOrientation); -} -function nms_BlockPistonMoving_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var6, $var5, $var7, $var8; - $var6 = $par1IBlockAccess.$getBlockTileEntity($par2, $par3, $par4); - $var5 = !($var6 instanceof nms_TileEntityPiston) ? null : $var6; - if ($var5 !== null) { - nms_Block_$callClinit(); - $var6 = nms_Block_blocksList.data[$var5.$storedBlockID]; - if ($var6 !== null && $var6 !== $this) { - $var6.$setBlockBoundsBasedOnState($par1IBlockAccess, $par2, $par3, $par4); - $var7 = $var5.$lastProgress + ($var5.$progress - $var5.$lastProgress) * 0.0; - if ($var5.$extending) - $var7 = 1.0 - $var7; - $var8 = $var5.$storedOrientation; - $this.$minX0 = $var6.$minX0 - nms_Facing_offsetsXForSide.data[$var8] * $var7; - $this.$minY0 = $var6.$minY0 - nms_Facing_offsetsYForSide.data[$var8] * $var7; - $this.$minZ0 = $var6.$minZ0 - nms_Facing_offsetsZForSide.data[$var8] * $var7; - $this.$maxX0 = $var6.$maxX0 - nms_Facing_offsetsXForSide.data[$var8] * $var7; - $this.$maxY0 = $var6.$maxY0 - nms_Facing_offsetsYForSide.data[$var8] * $var7; - $this.$maxZ0 = $var6.$maxZ0 - nms_Facing_offsetsZForSide.data[$var8] * $var7; - } else - return; - } -} -function nms_BlockPistonMoving_getAxisAlignedBB($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - if ($par5 && $par5 != $this.$blockID) { - nms_Block_$callClinit(); - $var8 = nms_Block_blocksList.data[$par5].$getCollisionBoundingBoxFromPool($par1World, $par2, $par3, $par4); - if ($var8 === null) - return null; - if (nms_Facing_offsetsXForSide.data[$par7] >= 0) - $var8.$maxX = $var8.$maxX - nms_Facing_offsetsXForSide.data[$par7] * $par6; - else - $var8.$minX = $var8.$minX - nms_Facing_offsetsXForSide.data[$par7] * $par6; - if (nms_Facing_offsetsYForSide.data[$par7] >= 0) - $var8.$maxY = $var8.$maxY - nms_Facing_offsetsYForSide.data[$par7] * $par6; - else - $var8.$minY = $var8.$minY - nms_Facing_offsetsYForSide.data[$par7] * $par6; - if (nms_Facing_offsetsZForSide.data[$par7] >= 0) - $var8.$maxZ = $var8.$maxZ - nms_Facing_offsetsZForSide.data[$par7] * $par6; - else - $var8.$minZ = $var8.$minZ - nms_Facing_offsetsZForSide.data[$par7] * $par6; - return $var8; - } - return null; -} -function nms_BlockPistonMoving_idPicked($this, $par1World, $par2, $par3, $par4) { - return 0; -} -function nms_BlockPistonMoving_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2055)); -} -function nms_BlockMushroom() { - nms_BlockFlower.call(this); - this.$field_94374_a = null; -} -function nms_BlockMushroom__init_(var_0, var_1) { - var var_2 = new nms_BlockMushroom(); - nms_BlockMushroom__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockMushroom__init_0($this, $par1, $par2Str) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_plants); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.699999988079071; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$field_94374_a = $par2Str; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.4000000059604645; - $this.$maxZ0 = 0.699999988079071; - $this.$needsRandomTick = 1; -} -function nms_BlockMushroom_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - var$5 = var$5 && !nms_Block_blocksList.data[var$5].$blockMaterial.$replaceable ? 0 : 1; - a: { - if (var$5) { - var$5 = nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4); - nms_Block_$callClinit(); - if (nms_Block_opaqueCubeLookup.data[var$5]) { - var$5 = 1; - break a; - } - } - var$5 = 0; - } - return var$5 && nms_BlockMushroom_canBlockStay($this, $par1World, $par2, $par3, $par4) ? 1 : 0; -} -function nms_BlockMushroom_canThisPlantGrowOnThisBlockID($this, $par1) { - nms_Block_$callClinit(); - return nms_Block_opaqueCubeLookup.data[$par1]; -} -function nms_BlockMushroom_canBlockStay($this, $par1World, $par2, $par3, $par4) { - var $var5; - if ($par3 >= 0 && $par3 < 256) { - a: { - b: { - $var5 = nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4); - nms_Block_$callClinit(); - if ($var5 != nms_Block_mycelium.$blockID) { - if (nms_World_getFullBlockLightValue($par1World, $par2, $par3, $par4) >= 13) - break b; - if (!nms_Block_opaqueCubeLookup.data[$var5]) - break b; - } - $par2 = 1; - break a; - } - $par2 = 0; - } - return $par2; - } - return 0; -} -function nms_BlockMushroom_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$field_94374_a); -} -function nms_BlockOreStorage() { - nms_Block.call(this); -} -function nms_BlockOreStorage__init_(var_0) { - var var_1 = new nms_BlockOreStorage(); - nms_BlockOreStorage__init_0(var_1, var_0); - return var_1; -} -function nms_BlockOreStorage__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_iron); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockHalfSlab() { - nms_Block.call(this); - this.$isDoubleSlab = 0; -} -function nms_BlockHalfSlab__init_(var_0, var_1, var_2) { - var var_3 = new nms_BlockHalfSlab(); - nms_BlockHalfSlab__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_BlockHalfSlab__init_0($this, $par1, $par2, $par3Material) { - nms_Block__init_0($this, $par1, $par3Material); - $this.$isDoubleSlab = $par2; - if ($par2) - nms_Block_opaqueCubeLookup.data[$par1] = 1; - else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.5; - $this.$maxZ0 = 1.0; - } - nms_Block_lightOpacity.data[$this.$blockID] = 255; -} -function nms_BlockHalfSlab_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - if ($this.$isDoubleSlab) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else if (!(!($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 8) ? 0 : 1)) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.5; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.5; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockHalfSlab_setBlockBoundsForItemRender($this) { - if ($this.$isDoubleSlab) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.5; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockHalfSlab_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - nms_BlockHalfSlab_setBlockBoundsBasedOnState($this, $par1World, $par2, $par3, $par4); - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); -} -function nms_BlockHalfSlab_isOpaqueCube($this) { - return $this.$isDoubleSlab; -} -function nms_BlockHalfSlab_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - if (!$this.$isDoubleSlab && !($par5 && !($par5 != 1 && $par7 > 0.5))) - $par9 = $par9 | 8; - return $par9; -} -function nms_BlockHalfSlab_quantityDropped($this, $par1Random) { - return !$this.$isDoubleSlab ? 1 : 2; -} -function nms_BlockHalfSlab_damageDropped($this, $par1) { - return $par1 & 7; -} -function nms_BlockHalfSlab_renderAsNormalBlock($this) { - return $this.$isDoubleSlab; -} -function nms_BlockHalfSlab_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var var$6; - if ($this.$isDoubleSlab) - return nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5); - var$6 = $rt_compare($par5, 1); - if (var$6 && $par5 && !nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5)) - return 0; - return !(!($par1IBlockAccess.$getBlockMetadata($par2 + nms_Facing_offsetsXForSide.data[nms_Facing_oppositeSide.data[$par5]] | 0, $par3 + nms_Facing_offsetsYForSide.data[nms_Facing_oppositeSide.data[$par5]] | 0, $par4 + nms_Facing_offsetsZForSide.data[nms_Facing_oppositeSide.data[$par5]] | 0) & 8) ? 0 : 1) ? (!var$6 ? 1 : !$par5 && nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) ? 1 : nms_BlockHalfSlab_isBlockSingleSlab($par1IBlockAccess.$getBlockId($par2, $par3, $par4)) - && !($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 8) ? 0 : 1) : !$par5 ? 1 : !var$6 && nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) ? 1 : nms_BlockHalfSlab_isBlockSingleSlab($par1IBlockAccess.$getBlockId($par2, $par3, $par4)) && $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 8 ? 0 : 1; -} -function nms_BlockHalfSlab_isBlockSingleSlab($par0) { - nms_Block_$callClinit(); - return $par0 != nms_Block_stoneSingleSlab.$blockID && $par0 != nms_Block_woodSingleSlab.$blockID ? 0 : 1; -} -function nms_BlockHalfSlab_getDamageValue($this, $par1World, $par2, $par3, $par4) { - return nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 7 & 7; -} -function nms_BlockHalfSlab_idPicked($this, $par1World, $par2, $par3, $par4) { - if (nms_BlockHalfSlab_isBlockSingleSlab($this.$blockID)) - $par2 = $this.$blockID; - else { - $par2 = $this.$blockID; - nms_Block_$callClinit(); - $par2 = $par2 == nms_Block_stoneDoubleSlab.$blockID ? nms_Block_stoneSingleSlab.$blockID : $this.$blockID != nms_Block_woodDoubleSlab.$blockID ? nms_Block_stoneSingleSlab.$blockID : nms_Block_woodSingleSlab.$blockID; - } - return $par2; -} -function nms_BlockStep() { - nms_BlockHalfSlab.call(this); - this.$theIcon7 = null; -} -var nms_BlockStep_blockStepTypes = null; -function nms_BlockStep__init_(var_0, var_1) { - var var_2 = new nms_BlockStep(); - nms_BlockStep__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockStep__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_BlockHalfSlab__init_0($this, $par1, $par2, nms_Material_rock); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockStep_getIcon($this, $par1, $par2) { - var $var3, var$4; - $var3 = $par2 & 7; - if ($this.$isDoubleSlab && $par2 & 8) - $par1 = 1; - a: { - if (!$var3) { - if ($par1 != 1 && $par1) { - var$4 = $this.$theIcon7; - break a; - } - var$4 = $this.$blockIcon; - break a; - } - if ($var3 == 1) { - nms_Block_$callClinit(); - var$4 = nms_Block_sandStone.$getIcon($par1, 0); - break a; - } - if ($var3 == 2) { - nms_Block_$callClinit(); - var$4 = nms_Block_planks.$getIcon($par1, 0); - break a; - } - if ($var3 == 3) { - nms_Block_$callClinit(); - var$4 = nms_Block_cobblestone.$getIcon($par1, 0); - break a; - } - if ($var3 == 4) { - nms_Block_$callClinit(); - var$4 = nms_Block_brick.$getIcon($par1, 0); - break a; - } - if ($var3 == 5) { - nms_Block_$callClinit(); - var$4 = nms_Block_stoneBrick.$getIcon($par1, 0); - break a; - } - if ($var3 == 6) { - nms_Block_$callClinit(); - var$4 = nms_Block_netherBrick.$getIcon(1, 0); - break a; - } - if ($var3 != 7) { - var$4 = $this.$blockIcon; - break a; - } - nms_Block_$callClinit(); - var$4 = nms_Block_blockNetherQuartz.$getIcon($par1, 0); - } - return var$4; -} -function nms_BlockStep_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2062)); - $this.$theIcon7 = $par1IconRegister.$registerIcon($rt_s(2063)); -} -function nms_BlockStep_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_stoneSingleSlab.$blockID; -} -function nms_BlockStep_getFullSlabName($this, $par1) { - var var$2, var$3, var$4; - if (!($par1 >= 0 && $par1 < nms_BlockStep_blockStepTypes.data.length)) - $par1 = 0; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(1590)); - var$4 = $this.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$4); - var$4 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$4); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(303)); - var$3 = nms_BlockStep_blockStepTypes.data[$par1]; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$3); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -} -function nms_BlockStep_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - var $var4; - a: { - nms_Block_$callClinit(); - if ($par1 != nms_Block_stoneDoubleSlab.$blockID) { - $var4 = 0; - while (true) { - if ($var4 > 7) - break a; - if ($var4 != 2) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = $var4; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - } - $var4 = $var4 + 1 | 0; - } - } - } -} -function nms_BlockStep__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 8); - var$2 = var$1.data; - var$2[0] = $rt_s(1591); - var$2[1] = $rt_s(1595); - var$2[2] = $rt_s(1592); - var$2[3] = $rt_s(2064); - var$2[4] = $rt_s(1428); - var$2[5] = $rt_s(2065); - var$2[6] = $rt_s(1677); - var$2[7] = $rt_s(2066); - nms_BlockStep_blockStepTypes = var$1; -} -function nms_BlockTNT() { - var a = this; nms_Block.call(a); - a.$field_94393_a = null; - a.$field_94392_b = null; -} -function nms_BlockTNT__init_(var_0) { - var var_1 = new nms_BlockTNT(); - nms_BlockTNT__init_0(var_1, var_0); - return var_1; -} -function nms_BlockTNT__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_tnt); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockTNT_getIcon($this, $par1, $par2) { - return !$par1 ? $this.$field_94392_b : $par1 != 1 ? $this.$blockIcon : $this.$field_94393_a; -} -function nms_BlockTNT_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4)) - return; - nms_BlockTNT_func_94391_a($this, $par1World, $par2, $par3, $par4, 1, null); - var$5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, $ptr); -} -function nms_BlockTNT_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4)) - return; - nms_BlockTNT_func_94391_a($this, $par1World, $par2, $par3, $par4, 1, null); - $par5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockTNT_quantityDropped($this, $par1Random) { - return 1; -} -function nms_BlockTNT_onBlockDestroyedByExplosion($this, $par1World, $par2, $par3, $par4, $par5Explosion) { - var $var6; - if (!$par1World.$isRemote) { - $var6 = nms_EntityTNTPrimed__init_1($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, nms_Explosion_func_94613_c($par5Explosion)); - $par2 = $var6.$fuse / 4 | 0; - $var6.$fuse = (Math.random() * $par2 | 0) + ($var6.$fuse / 8 | 0) | 0; - $par2 = nms_World_spawnEntityInWorld($par1World, $var6); - $par5Explosion = $par1World.$entityList; - ju_HashMap_putImpl($par5Explosion.$backingMap, $var6, $par5Explosion); - if (!$par2) { - $par1World = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl($par1World.$backingMap, $var6, $par1World); - } - } -} -function nms_BlockTNT_onBlockDestroyedByPlayer($this, $par1World, $par2, $par3, $par4, $par5) { - nms_BlockTNT_func_94391_a($this, $par1World, $par2, $par3, $par4, $par5, null); -} -function nms_BlockTNT_func_94391_a($this, $par1World, $par2, $par3, $par4, $par5, $par6EntityLiving) { - var $var7; - if (!$par1World.$isRemote && ($par5 & 1) == 1) { - $var7 = nms_EntityTNTPrimed__init_1($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $par6EntityLiving); - $par2 = nms_World_spawnEntityInWorld($par1World, $var7); - $par6EntityLiving = $par1World.$entityList; - ju_HashMap_putImpl($par6EntityLiving.$backingMap, $var7, $par6EntityLiving); - if (!$par2) { - $par6EntityLiving = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl($par6EntityLiving.$backingMap, $var7, $par6EntityLiving); - } - nms_World_playSoundAtEntity($par1World, $var7, $rt_s(1244), 1.0, 1.0); - } -} -function nms_BlockTNT_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var 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();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_InventoryPlayer_getCurrentItem($par5EntityPlayer.$inventory) !== null) { - $par6 = nms_InventoryPlayer_getCurrentItem($par5EntityPlayer.$inventory).$itemID0; - nms_Item_$callClinit(); - if ($par6 == nms_Item_flintAndSteel.$itemID) { - nms_BlockTNT_func_94391_a($this, $par1World, $par2, $par3, $par4, 1, $par5EntityPlayer); - $par6 = 0; - var$10 = 0; - var$11 = 3; - $ptr = 1; - continue main; - } - } - return 0; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par6, var$10, var$11); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, var$10, var$11, $ptr); -} -function nms_BlockTNT_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - var $var6, 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();$var6 = $thread.pop();$par5Entity = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par5Entity instanceof nms_EntityArrow && !$par1World.$isRemote) { - $var6 = $par5Entity; - if ($var6.$fire <= 0 && !(!(nms_DataWatcher_getWatchableObjectByte($var6.$dataWatcher, 0) & 1) ? 0 : 1) ? 0 : 1) { - nms_BlockTNT_func_94391_a($this, $par1World, $par2, $par3, $par4, 1, !($var6.$shootingEntity instanceof nms_EntityLiving) ? null : $var6.$shootingEntity); - var$7 = 0; - var$8 = 0; - var$9 = 3; - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$7, var$8, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Entity, $var6, var$7, var$8, var$9, $ptr); -} -function nms_BlockTNT_canDropFromExplosion($this, $par1Explosion) { - return 0; -} -function nms_BlockTNT_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2067)); - $this.$field_94393_a = $par1IconRegister.$registerIcon($rt_s(2068)); - $this.$field_94392_b = $par1IconRegister.$registerIcon($rt_s(2069)); -} -function nms_BlockBookshelf() { - nms_Block.call(this); -} -function nms_BlockBookshelf__init_(var_0) { - var var_1 = new nms_BlockBookshelf(); - nms_BlockBookshelf__init_0(var_1, var_0); - return var_1; -} -function nms_BlockBookshelf__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockBookshelf_getIcon($this, $par1, $par2) { - var var$3; - if ($par1 != 1 && $par1) - var$3 = $this.$blockIcon; - else { - nms_Block_$callClinit(); - var$3 = nms_Block_planks.$getIcon($par1, 0); - } - return var$3; -} -function nms_BlockBookshelf_quantityDropped($this, $par1Random) { - return 3; -} -function nms_BlockBookshelf_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_book.$itemID; -} -function nms_BlockObsidian() { - nms_BlockStone.call(this); -} -function nms_BlockObsidian__init_(var_0) { - var var_1 = new nms_BlockObsidian(); - nms_BlockObsidian__init_0(var_1, var_0); - return var_1; -} -function nms_BlockObsidian__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockObsidian_quantityDropped($this, $par1Random) { - return 1; -} -function nms_BlockObsidian_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_obsidian.$blockID; -} -function nms_BlockTorch() { - nms_Block.call(this); -} -function nms_BlockTorch__init_(var_0) { - var var_1 = new nms_BlockTorch(); - nms_BlockTorch__init_0(var_1, var_0); - return var_1; -} -function nms_BlockTorch__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockTorch_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockTorch_isOpaqueCube($this) { - return 0; -} -function nms_BlockTorch_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockTorch_getRenderType($this) { - return 2; -} -function nms_BlockTorch_canPlaceTorchOn($this, $par1World, $par2, $par3, $par4) { - var $var5; - nms_Block_$callClinit(); - if (nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par3, $par4))) - return 1; - $var5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - return $var5 != nms_Block_fence.$blockID && $var5 != nms_Block_netherFence.$blockID && $var5 != nms_Block_glass.$blockID && $var5 != nms_Block_cobblestoneWall.$blockID ? 0 : 1; -} -function nms_BlockTorch_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - return nms_World_isBlockNormalCubeDefault($par1World, $par2 - 1 | 0, $par3, $par4, 1) ? 1 : nms_World_isBlockNormalCubeDefault($par1World, $par2 + 1 | 0, $par3, $par4, 1) ? 1 : nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 - 1 | 0, 1) ? 1 : nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 + 1 | 0, 1) ? 1 : nms_BlockTorch_canPlaceTorchOn($this, $par1World, $par2, $par3 - 1 | 0, $par4); -} -function nms_BlockTorch_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - if ($par5 == 1 && nms_BlockTorch_canPlaceTorchOn($this, $par1World, $par2, $par3 - 1 | 0, $par4)) - $par9 = 5; - if ($par5 == 2 && nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 + 1 | 0, 1)) - $par9 = 4; - if ($par5 == 3 && nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 - 1 | 0, 1)) - $par9 = 3; - if ($par5 == 4 && nms_World_isBlockNormalCubeDefault($par1World, $par2 + 1 | 0, $par3, $par4, 1)) - $par9 = 2; - if ($par5 == 5 && nms_World_isBlockNormalCubeDefault($par1World, $par2 - 1 | 0, $par3, $par4, 1)) - $par9 = 1; - return $par9; -} -function nms_BlockTorch_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var 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();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)) { - if (nms_World_isBlockNormalCubeDefault($par1World, $par2 - 1 | 0, $par3, $par4, 1)) { - var$5 = 1; - var$6 = 2; - $ptr = 2; - continue main; - } - if (nms_World_isBlockNormalCubeDefault($par1World, $par2 + 1 | 0, $par3, $par4, 1)) { - var$5 = 2; - var$6 = 2; - $ptr = 3; - continue main; - } - if (nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 - 1 | 0, 1)) { - var$5 = 3; - var$6 = 2; - $ptr = 4; - continue main; - } - if (nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 + 1 | 0, 1)) { - var$5 = 4; - var$6 = 2; - $ptr = 5; - continue main; - } - if (nms_BlockTorch_canPlaceTorchOn($this, $par1World, $par2, $par3 - 1 | 0, $par4)) { - var$5 = 5; - var$6 = 2; - $ptr = 6; - continue main; - } - } - $ptr = 1; - case 1: - nms_BlockTorch_dropTorchIfCantStay($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$5, var$6); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$5, var$6); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - case 4: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$5, var$6); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - case 5: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$5, var$6); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - case 6: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$5, var$6); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, $ptr); -} -function nms_BlockTorch_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockTorch_func_94397_d($this, $par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $ptr); -} -function nms_BlockTorch_func_94397_d($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $tmp = nms_BlockTorch_dropTorchIfCantStay($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $par5 = $tmp; - if (!$par5) - return 1; - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = 0; - if (!nms_World_isBlockNormalCubeDefault($par1World, $par2 - 1 | 0, $par3, $par4, 1) && $var6 == 1) - $var7 = 1; - if (!nms_World_isBlockNormalCubeDefault($par1World, $par2 + 1 | 0, $par3, $par4, 1) && $var6 == 2) - $var7 = 1; - if (!nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 - 1 | 0, 1) && $var6 == 3) - $var7 = 1; - if (!nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 + 1 | 0, 1) && $var6 == 4) - $var7 = 1; - if (!nms_BlockTorch_canPlaceTorchOn($this, $par1World, $par2, $par3 - 1 | 0, $par4) && $var6 == 5) - $var7 = 1; - if (!$var7) - return 0; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - var$8 = 0; - $var6 = 3; - $ptr = 2; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$8, $var6); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, var$8, $ptr); -} -function nms_BlockTorch_dropTorchIfCantStay($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_BlockTorch_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4)) - return 1; - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) != $this.$blockID) - return 0; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - var$5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return 0; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, $ptr); -} -function nms_BlockTorch_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3) { - var $var7; - $var7 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 7; - if ($var7 == 1) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.3499999940395355; - $this.$maxX0 = 0.30000001192092896; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.6499999761581421; - } else if ($var7 == 2) { - $this.$minX0 = 0.699999988079071; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.3499999940395355; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.6499999761581421; - } else if ($var7 == 3) { - $this.$minX0 = 0.3499999940395355; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.6499999761581421; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.30000001192092896; - } else if ($var7 != 4) { - $this.$minX0 = 0.4000000059604645; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.4000000059604645; - $this.$maxX0 = 0.6000000238418579; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.6000000238418579; - } else { - $this.$minX0 = 0.3499999940395355; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.699999988079071; - $this.$maxX0 = 0.6499999761581421; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 1.0; - } - return nms_Block_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3); -} -function nms_BlockTorch_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $var6, $var7, $var9, $var11, var$10, $var15, $var13, var$13, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$13 = $thread.pop();$var13 = $thread.pop();$var15 = $thread.pop();var$10 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = $par2 + 0.5; - $var9 = $par3 + 0.699999988079071; - $var11 = $par4 + 0.5; - if ($var6 == 1) { - var$10 = $rt_s(852); - $var15 = $var7 - 0.27000001072883606; - $var13 = $var9 + 0.2199999988079071; - var$13 = 0.0; - $var7 = 0.0; - $var9 = 0.0; - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - $par5Random = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par2]; - $ptr = 6; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$10 = $rt_s(858); - var$13 = 0.0; - $var7 = 0.0; - $var9 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - break a; - $par5Random = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par2]; - $ptr = 9; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - if ($var6 != 2) { - if ($var6 != 3) { - if ($var6 != 4) { - $par5Random = $rt_s(852); - $var15 = 0.0; - $var13 = 0.0; - var$13 = 0.0; - $ptr = 1; - continue main; - } - $par5Random = $rt_s(852); - $var13 = $var9 + 0.2199999988079071; - $var15 = $var11 + 0.27000001072883606; - var$13 = 0.0; - $var9 = 0.0; - $var11 = 0.0; - $ptr = 3; - continue main; - } - $par5Random = $rt_s(852); - $var13 = $var9 + 0.2199999988079071; - $var15 = $var11 - 0.27000001072883606; - var$13 = 0.0; - $var9 = 0.0; - $var11 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) { - $par5Random = $rt_s(858); - var$13 = 0.0; - $var9 = 0.0; - $var11 = 0.0; - $ptr = 5; - continue main; - } - var$10 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$10.$size0) { - var$10 = var$10.$array1.data[$par2]; - $ptr = 8; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$10 = $rt_s(852); - $var15 = $var7 + 0.27000001072883606; - $var13 = $var9 + 0.2199999988079071; - $var7 = 0.0; - $var9 = 0.0; - var$13 = 0.0; - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - $par5Random = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par2]; - $ptr = 7; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$10 = $rt_s(858); - var$13 = 0.0; - $var7 = 0.0; - $var9 = 0.0; - $par3 = 0; - if ($par3 < $par1World.$worldAccesses.$size0) { - $par5Random = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par3]; - $ptr = 10; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - return; - case 1: - nms_World_spawnParticle($par1World, $par5Random, $var7, $var9, $var11, $var15, $var13, var$13); - if ($rt_suspending()) { - break main; - } - $par5Random = $rt_s(858); - $var15 = 0.0; - $var13 = 0.0; - var$13 = 0.0; - $ptr = 2; - case 2: - nms_World_spawnParticle($par1World, $par5Random, $var7, $var9, $var11, $var15, $var13, var$13); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_World_spawnParticle($par1World, $par5Random, $var7, $var13, $var15, var$13, $var9, $var11); - if ($rt_suspending()) { - break main; - } - $par5Random = $rt_s(858); - var$13 = 0.0; - $var9 = 0.0; - $var11 = 0.0; - $ptr = 4; - case 4: - nms_World_spawnParticle($par1World, $par5Random, $var7, $var13, $var15, var$13, $var9, $var11); - if ($rt_suspending()) { - break main; - } - return; - case 5: - nms_World_spawnParticle($par1World, $par5Random, $var7, $var13, $var15, var$13, $var9, $var11); - if ($rt_suspending()) { - break main; - } - return; - case 6: - nms_RenderGlobal_doSpawnParticle($par5Random, var$10, $var15, $var13, $var11, var$13, $var7, $var9); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - $par5Random = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$10 = $rt_s(858); - var$13 = 0.0; - $var7 = 0.0; - $var9 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - $par5Random = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par2]; - $ptr = 9; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 7: - nms_RenderGlobal_doSpawnParticle($par5Random, var$10, $var15, $var13, $var11, $var7, $var9, var$13); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - $par5Random = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$10 = $rt_s(858); - var$13 = 0.0; - $var7 = 0.0; - $var9 = 0.0; - $par3 = 0; - if ($par3 >= $par1World.$worldAccesses.$size0) - return; - $par5Random = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par3]; - $ptr = 10; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 8: - nms_RenderGlobal_doSpawnParticle(var$10, $par5Random, $var7, $var13, $var15, var$13, $var9, $var11); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) { - $par5Random = $rt_s(858); - var$13 = 0.0; - $var9 = 0.0; - $var11 = 0.0; - $ptr = 5; - continue main; - } - var$10 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$10.$size0) { - var$10 = var$10.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 9: - nms_RenderGlobal_doSpawnParticle($par5Random, var$10, $var15, $var13, $var11, var$13, $var7, $var9); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - $par5Random = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 10: - nms_RenderGlobal_doSpawnParticle($par5Random, var$10, $var15, $var13, $var11, var$13, $var7, $var9); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 + 1 | 0; - if ($par3 >= $par1World.$worldAccesses.$size0) - return; - $par5Random = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par3]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $var6, $var7, $var9, $var11, var$10, $var15, $var13, var$13, $ptr); -} -function nms_BlockFire() { - var a = this; nms_Block.call(a); - a.$chanceToEncourageFire = null; - a.$abilityToCatchFire = null; - a.$iconArray0 = null; -} -function nms_BlockFire__init_(var_0) { - var var_1 = new nms_BlockFire(); - nms_BlockFire__init_0(var_1, var_0); - return var_1; -} -function nms_BlockFire__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_fire); - $this.$chanceToEncourageFire = $rt_createIntArray(256); - $this.$abilityToCatchFire = $rt_createIntArray(256); - $this.$needsRandomTick = 1; -} -function nms_BlockFire_initializeBlock($this) { - var var$1, var$2; - nms_Block_$callClinit(); - var$1 = nms_Block_planks.$blockID; - $this.$chanceToEncourageFire.data[var$1] = 5; - $this.$abilityToCatchFire.data[var$1] = 20; - var$2 = nms_Block_woodDoubleSlab.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 5; - $this.$abilityToCatchFire.data[var$2] = 20; - var$2 = nms_Block_woodSingleSlab.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 5; - $this.$abilityToCatchFire.data[var$2] = 20; - var$2 = nms_Block_fence.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 5; - $this.$abilityToCatchFire.data[var$2] = 20; - var$2 = nms_Block_stairsWoodOak.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 5; - $this.$abilityToCatchFire.data[var$2] = 20; - var$2 = nms_Block_stairsWoodBirch.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 5; - $this.$abilityToCatchFire.data[var$2] = 20; - var$2 = nms_Block_stairsWoodSpruce.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 5; - $this.$abilityToCatchFire.data[var$2] = 20; - var$2 = nms_Block_stairsWoodJungle.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 5; - $this.$abilityToCatchFire.data[var$2] = 20; - var$2 = nms_Block_wood.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 5; - $this.$abilityToCatchFire.data[var$2] = 5; - var$2 = nms_Block_leaves.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 30; - $this.$abilityToCatchFire.data[var$2] = 60; - var$2 = nms_Block_bookShelf.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 30; - $this.$abilityToCatchFire.data[var$2] = 20; - var$2 = nms_Block_tnt.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 15; - $this.$abilityToCatchFire.data[var$2] = 100; - var$2 = nms_Block_tallGrass.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 60; - $this.$abilityToCatchFire.data[var$2] = 100; - var$2 = nms_Block_cloth.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 30; - $this.$abilityToCatchFire.data[var$2] = 60; - var$2 = nms_Block_vine.$blockID; - $this.$chanceToEncourageFire.data[var$2] = 15; - $this.$abilityToCatchFire.data[var$2] = 100; -} -function nms_BlockFire_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockFire_isOpaqueCube($this) { - return 0; -} -function nms_BlockFire_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockFire_getRenderType($this) { - return 3; -} -function nms_BlockFire_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockFire_tickRate($this, $par1World) { - return 30; -} -function nms_BlockFire_canNeighborBurn($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = $par2 + 1 | 0; - if ($this.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, var$5, $par3, $par4)] <= 0 ? 0 : 1) - $par2 = 1; - else { - var$5 = $par2 - 1 | 0; - if ($this.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, var$5, $par3, $par4)] <= 0 ? 0 : 1) - $par2 = 1; - else { - var$5 = $par3 - 1 | 0; - if ($this.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $par2, var$5, $par4)] <= 0 ? 0 : 1) - $par2 = 1; - else { - var$5 = $par3 + 1 | 0; - if ($this.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $par2, var$5, $par4)] <= 0 ? 0 : 1) - $par2 = 1; - else { - var$5 = $par4 - 1 | 0; - if ($this.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $par2, $par3, var$5)] <= 0 ? 0 : 1) - $par2 = 1; - else { - $par4 = $par4 + 1 | 0; - $par2 = $this.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $par2, $par3, $par4)] <= 0 ? 0 : 1; - } - } - } - } - } - return $par2; -} -function nms_BlockFire_isCollidable($this) { - return 0; -} -function nms_BlockFire_canBlockCatchFire($this, $par1IBlockAccess, $par2, $par3, $par4) { - return $this.$chanceToEncourageFire.data[$par1IBlockAccess.$getBlockId($par2, $par3, $par4)] <= 0 ? 0 : 1; -} -function nms_BlockFire_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = $par3 - 1 | 0; - nms_Block_$callClinit(); - return !nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$5, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$5, $par4)) && !nms_BlockFire_canNeighborBurn($this, $par1World, $par2, $par3, $par4) ? 0 : 1; -} -function nms_BlockFire_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$6, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$6, $par4)) && !nms_BlockFire_canNeighborBurn($this, $par1World, $par2, $par3, $par4)) { - $par5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 1; - continue main; - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockFire_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$provider.$dimensionId <= 0) { - var$5 = nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4); - nms_Block_$callClinit(); - if (var$5 == nms_Block_obsidian.$blockID) { - var$6 = nms_Block_portal; - $ptr = 1; - continue main; - } - } - var$5 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$5, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$5, $par4)) && !nms_BlockFire_canNeighborBurn($this, $par1World, $par2, $par3, $par4)) { - var$7 = 0; - var$5 = 0; - var$8 = 3; - $ptr = 2; - continue main; - } - Math.random(); - return; - case 1: - $tmp = nms_BlockPortal_tryToCreatePortal(var$6, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$7 = $tmp; - if (!var$7) { - var$5 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$5, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$5, $par4)) && !nms_BlockFire_canNeighborBurn($this, $par1World, $par2, $par3, $par4)) { - var$7 = 0; - var$5 = 0; - var$8 = 3; - $ptr = 2; - continue main; - } - Math.random(); - } - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$7, var$5, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, var$8, $ptr); -} -function nms_BlockFire_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var var$6, var$7, var$8, var$9, $var9, $var7, $var6, $var8, $var7_0, $var8_0, $var9_0, var$17, var$18, var$19, $var9_1, $var6_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6_0 = $thread.pop();$var9_1 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();$var9_0 = $thread.pop();$var8_0 = $thread.pop();$var7_0 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var7 = $thread.pop();$var9 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this - = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!(Math.random() * 24.0 | 0)) { - var$6 = $par2 + 0.5; - var$7 = $par3 + 0.5; - var$8 = $par4 + 0.5; - var$9 = $rt_s(1278); - $var9 = 1.0 + Math.random(); - $var7 = Math.random() * 0.699999988079071 + 0.30000001192092896; - $var6 = 0; - $ptr = 1; - continue main; - } - a: { - $var6 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!(!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $var6, $par4)], nms_World_getBlockMetadata($par1World, $par2, $var6, $par4)) && !(nms_Block_fire.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $par2, $var6, $par4)] <= 0 ? 0 : 1))) { - $var6 = 0; - $var9 = $par2; - $var7 = $par3; - $var8 = $par4; - if ($var6 >= 3) - break a; - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8_0 = $var7 + ju_Random_nextFloat($par5Random) * 0.5 + 0.5; - $var9_0 = $var8 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$8 = $var7_0; - var$17 = $var8_0; - var$18 = $var9_0; - var$19 = 0.0; - var$6 = 0.0; - var$7 = 0.0; - $ptr = 2; - continue main; - } - var$9 = nms_Block_fire; - $var6 = $par2 - 1 | 0; - if (var$9.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $var6, $par3, $par4)] <= 0 ? 0 : 1) { - $var6 = 0; - $var9 = $par2; - $var8 = $par3; - $var9_1 = $par4; - if ($var6 < 2) { - $var7_0 = $var9 + ju_Random_nextDouble($par5Random) * 0.10000000149011612; - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9_0 = $var9_1 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8_0; - var$7 = $var9_0; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 3; - continue main; - } - } - var$9 = nms_Block_fire; - $var6_0 = $par2 + 1 | 0; - if (var$9.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $var6_0, $par3, $par4)] <= 0 ? 0 : 1) { - $var6 = 0; - $var9 = $var6_0; - $var8_0 = $par3; - $var9_0 = $par4; - if ($var6 < 2) { - $var7 = $var9 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var8 = $var8_0 + ju_Random_nextFloat($par5Random); - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 4; - continue main; - } - } - if (nms_BlockFire_canBlockCatchFire(nms_Block_fire, $par1World, $par2, $par3, $par4 - 1 | 0)) { - $var6_0 = 0; - $var9 = $par2; - $var8 = $par3; - $var9_0 = $par4; - if ($var6_0 < 2) { - $var7 = $var9 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7; - var$6 = $var8_0; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 5; - continue main; - } - } - var$9 = nms_Block_fire; - $var6 = $par4 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $var6)) { - $var6_0 = 0; - $var7 = $par2; - $var8 = $par3; - $var9_0 = $var6; - if ($var6_0 < 2) { - $var7_0 = $var7 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9 = $var9_0 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8_0; - var$7 = $var9; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 6; - continue main; - } - } - var$9 = nms_Block_fire; - $par3 = $par3 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $par4)) { - $var6 = 0; - $var9 = $par2; - $var7 = $par3; - $var9_0 = $par4; - if ($var6 < 2) { - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8 = $var7 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 7; - continue main; - } - } - } - return; - case 1: - nms_WorldClient_playSound($par1World, var$6, var$7, var$8, var$9, $var9, $var7, $var6); - if ($rt_suspending()) { - break main; - } - b: { - $var6 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!(!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $var6, $par4)], nms_World_getBlockMetadata($par1World, $par2, $var6, $par4)) && !(nms_Block_fire.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $par2, $var6, $par4)] <= 0 ? 0 : 1))) { - $var6 = 0; - $var9 = $par2; - $var7 = $par3; - $var8 = $par4; - if ($var6 >= 3) - break b; - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8_0 = $var7 + ju_Random_nextFloat($par5Random) * 0.5 + 0.5; - $var9_0 = $var8 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$8 = $var7_0; - var$17 = $var8_0; - var$18 = $var9_0; - var$19 = 0.0; - var$6 = 0.0; - var$7 = 0.0; - $ptr = 2; - continue main; - } - var$9 = nms_Block_fire; - $var6 = $par2 - 1 | 0; - if (var$9.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $var6, $par3, $par4)] <= 0 ? 0 : 1) { - $var6 = 0; - $var9 = $par2; - $var8 = $par3; - $var9_1 = $par4; - if ($var6 < 2) { - $var7_0 = $var9 + ju_Random_nextDouble($par5Random) * 0.10000000149011612; - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9_0 = $var9_1 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8_0; - var$7 = $var9_0; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 3; - continue main; - } - } - var$9 = nms_Block_fire; - $var6_0 = $par2 + 1 | 0; - if (var$9.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $var6_0, $par3, $par4)] <= 0 ? 0 : 1) { - $var6 = 0; - $var9 = $var6_0; - $var8_0 = $par3; - $var9_0 = $par4; - if ($var6 < 2) { - $var7 = $var9 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var8 = $var8_0 + ju_Random_nextFloat($par5Random); - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 4; - continue main; - } - } - if (nms_BlockFire_canBlockCatchFire(nms_Block_fire, $par1World, $par2, $par3, $par4 - 1 | 0)) { - $var6_0 = 0; - $var9 = $par2; - $var8 = $par3; - $var9_0 = $par4; - if ($var6_0 < 2) { - $var7 = $var9 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7; - var$6 = $var8_0; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 5; - continue main; - } - } - var$9 = nms_Block_fire; - $var6 = $par4 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $var6)) { - $var6_0 = 0; - $var7 = $par2; - $var8 = $par3; - $var9_0 = $var6; - if ($var6_0 < 2) { - $var7_0 = $var7 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9 = $var9_0 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8_0; - var$7 = $var9; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 6; - continue main; - } - } - var$9 = nms_Block_fire; - $par3 = $par3 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $par4)) { - $var6 = 0; - $var9 = $par2; - $var7 = $par3; - $var9_0 = $par4; - if ($var6 < 2) { - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8 = $var7 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 7; - continue main; - } - } - } - return; - case 2: - nms_World_spawnParticle($par1World, var$9, var$8, var$17, var$18, var$19, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $var6 = $var6 + 1 | 0; - if ($var6 >= 3) - return; - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8_0 = $var7 + ju_Random_nextFloat($par5Random) * 0.5 + 0.5; - $var9_0 = $var8 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$8 = $var7_0; - var$17 = $var8_0; - var$18 = $var9_0; - var$19 = 0.0; - var$6 = 0.0; - var$7 = 0.0; - continue main; - case 3: - nms_World_spawnParticle($par1World, var$9, var$19, var$6, var$7, var$8, var$17, var$18); - if ($rt_suspending()) { - break main; - } - $var6 = $var6 + 1 | 0; - if ($var6 < 2) { - $var7_0 = $var9 + ju_Random_nextDouble($par5Random) * 0.10000000149011612; - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9_0 = $var9_1 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8_0; - var$7 = $var9_0; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - continue main; - } - var$9 = nms_Block_fire; - $var6_0 = $par2 + 1 | 0; - if (var$9.$chanceToEncourageFire.data[nms_World_getBlockId($par1World, $var6_0, $par3, $par4)] <= 0 ? 0 : 1) { - $var6 = 0; - $var9 = $var6_0; - $var8_0 = $par3; - $var9_0 = $par4; - if ($var6 < 2) { - $var7 = $var9 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var8 = $var8_0 + ju_Random_nextFloat($par5Random); - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 4; - continue main; - } - } - if (nms_BlockFire_canBlockCatchFire(nms_Block_fire, $par1World, $par2, $par3, $par4 - 1 | 0)) { - $var6_0 = 0; - $var9 = $par2; - $var8 = $par3; - $var9_0 = $par4; - if ($var6_0 < 2) { - $var7 = $var9 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7; - var$6 = $var8_0; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 5; - continue main; - } - } - var$9 = nms_Block_fire; - $var6 = $par4 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $var6)) { - $var6_0 = 0; - $var7 = $par2; - $var8 = $par3; - $var9_0 = $var6; - if ($var6_0 < 2) { - $var7_0 = $var7 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9 = $var9_0 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8_0; - var$7 = $var9; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 6; - continue main; - } - } - var$9 = nms_Block_fire; - $par3 = $par3 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $par4)) { - $var6 = 0; - $var9 = $par2; - $var7 = $par3; - $var9_0 = $par4; - if ($var6 < 2) { - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8 = $var7 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 7; - continue main; - } - } - return; - case 4: - nms_World_spawnParticle($par1World, var$9, var$19, var$6, var$7, var$8, var$17, var$18); - if ($rt_suspending()) { - break main; - } - $var6 = $var6 + 1 | 0; - if ($var6 < 2) { - $var7 = $var9 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var8 = $var8_0 + ju_Random_nextFloat($par5Random); - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - continue main; - } - if (nms_BlockFire_canBlockCatchFire(nms_Block_fire, $par1World, $par2, $par3, $par4 - 1 | 0)) { - $var6_0 = 0; - $var9 = $par2; - $var8 = $par3; - $var9_0 = $par4; - if ($var6_0 < 2) { - $var7 = $var9 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7; - var$6 = $var8_0; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 5; - continue main; - } - } - var$9 = nms_Block_fire; - $var6 = $par4 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $var6)) { - $var6_0 = 0; - $var7 = $par2; - $var8 = $par3; - $var9_0 = $var6; - if ($var6_0 < 2) { - $var7_0 = $var7 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9 = $var9_0 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8_0; - var$7 = $var9; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 6; - continue main; - } - } - var$9 = nms_Block_fire; - $par3 = $par3 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $par4)) { - $var6 = 0; - $var9 = $par2; - $var7 = $par3; - $var9_0 = $par4; - if ($var6 < 2) { - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8 = $var7 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 7; - continue main; - } - } - return; - case 5: - nms_World_spawnParticle($par1World, var$9, var$19, var$6, var$7, var$8, var$17, var$18); - if ($rt_suspending()) { - break main; - } - $var6_0 = $var6_0 + 1 | 0; - if ($var6_0 < 2) { - $var7 = $var9 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7; - var$6 = $var8_0; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - continue main; - } - var$9 = nms_Block_fire; - $var6 = $par4 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $var6)) { - $var6_0 = 0; - $var7 = $par2; - $var8 = $par3; - $var9_0 = $var6; - if ($var6_0 < 2) { - $var7_0 = $var7 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9 = $var9_0 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8_0; - var$7 = $var9; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 6; - continue main; - } - } - var$9 = nms_Block_fire; - $par3 = $par3 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $par4)) { - $var6 = 0; - $var9 = $par2; - $var7 = $par3; - $var9_0 = $par4; - if ($var6 < 2) { - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8 = $var7 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 7; - continue main; - } - } - return; - case 6: - nms_World_spawnParticle($par1World, var$9, var$19, var$6, var$7, var$8, var$17, var$18); - if ($rt_suspending()) { - break main; - } - $var6_0 = $var6_0 + 1 | 0; - if ($var6_0 < 2) { - $var7_0 = $var7 + ju_Random_nextFloat($par5Random); - $var8_0 = $var8 + ju_Random_nextFloat($par5Random); - $var9 = $var9_0 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8_0; - var$7 = $var9; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - continue main; - } - var$9 = nms_Block_fire; - $par3 = $par3 + 1 | 0; - if (nms_BlockFire_canBlockCatchFire(var$9, $par1World, $par2, $par3, $par4)) { - $var6 = 0; - $var9 = $par2; - $var7 = $par3; - $var9_0 = $par4; - if ($var6 < 2) { - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8 = $var7 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - $ptr = 7; - continue main; - } - } - return; - case 7: - nms_World_spawnParticle($par1World, var$9, var$19, var$6, var$7, var$8, var$17, var$18); - if ($rt_suspending()) { - break main; - } - $var6 = $var6 + 1 | 0; - if ($var6 >= 2) - return; - $var7_0 = $var9 + ju_Random_nextFloat($par5Random); - $var8 = $var7 - ju_Random_nextFloat($par5Random) * 0.10000000149011612; - $var9_1 = $var9_0 + ju_Random_nextFloat($par5Random); - var$9 = $rt_s(715); - var$19 = $var7_0; - var$6 = $var8; - var$7 = $var9_1; - var$8 = 0.0; - var$17 = 0.0; - var$18 = 0.0; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, var$6, var$7, var$8, var$9, $var9, $var7, $var6, $var8, $var7_0, $var8_0, $var9_0, var$17, var$18, var$19, $var9_1, $var6_0, $ptr); -} -function nms_BlockFire_registerIcons($this, $par1IconRegister) { - var var$2, var$3; - var$2 = $rt_createArray(nms_Icon, 2); - var$3 = var$2.data; - var$3[0] = $par1IconRegister.$registerIcon($rt_s(2070)); - var$3[1] = $par1IconRegister.$registerIcon($rt_s(2071)); - $this.$iconArray0 = var$2; -} -function nms_BlockFire_func_94438_c($this, $par1) { - return $this.$iconArray0.data[$par1]; -} -function nms_BlockFire_getIcon($this, $par1, $par2) { - return $this.$iconArray0.data[0]; -} -function nms_BlockMobSpawner() { - nms_BlockContainer.call(this); -} -function nms_BlockMobSpawner__init_(var_0) { - var var_1 = new nms_BlockMobSpawner(); - nms_BlockMobSpawner__init_0(var_1, var_0); - return var_1; -} -function nms_BlockMobSpawner__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$isBlockContainer = 1; -} -function nms_BlockMobSpawner_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityMobSpawner; - $par1World.$blockMetadata = (-1); - return $par1World; -} -function nms_BlockMobSpawner_idDropped($this, $par1, $par2Random, $par3) { - return 0; -} -function nms_BlockMobSpawner_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockMobSpawner_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7); - nms_Block_dropXpOnBlockBreak($this, $par1World, $par2, $par3, $par4, (15 + (Math.random() * 15.0 | 0) | 0) + (Math.random() * 15.0 | 0) | 0); -} -function nms_BlockMobSpawner_isOpaqueCube($this) { - return 0; -} -function nms_BlockMobSpawner_idPicked($this, $par1World, $par2, $par3, $par4) { - return 0; -} -function nms_BlockStairs() { - var a = this; nms_Block.call(a); - a.$modelBlock = null; - a.$modelBlockMetadata = 0; - a.$field_72156_cr = 0; - a.$field_72160_cs = 0; -} -var nms_BlockStairs_field_72159_a = null; -function nms_BlockStairs__init_(var_0, var_1, var_2) { - var var_3 = new nms_BlockStairs(); - nms_BlockStairs__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_BlockStairs__init_0($this, $par1, $par2Block, $par3) { - var var$4, var$5; - nms_Block__init_0($this, $par1, $par2Block.$blockMaterial); - $this.$field_72156_cr = 0; - $this.$field_72160_cs = 0; - $this.$modelBlock = $par2Block; - $this.$modelBlockMetadata = $par3; - var$4 = $par2Block.$blockHardness; - $this.$blockHardness = var$4; - var$5 = $this.$blockResistance; - var$4 = var$4 * 5.0; - if (var$5 < var$4) - $this.$blockResistance = var$4; - $this.$blockResistance = $par2Block.$blockResistance / 3.0 * 3.0; - $this.$stepSound = $par2Block.$stepSound; - nms_Block_lightOpacity.data[$this.$blockID] = 255; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockStairs_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var var$5, var$6, var$7, var$8, var$9, var$10; - if (!$this.$field_72156_cr) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else { - var$5 = 0.5 * ($this.$field_72160_cs % 2 | 0); - var$6 = 0.5 * (($this.$field_72160_cs / 2 | 0) % 2 | 0); - var$7 = 0.5 * (($this.$field_72160_cs / 4 | 0) % 2 | 0); - var$8 = 0.5 + 0.5 * ($this.$field_72160_cs % 2 | 0); - var$9 = 0.5 + 0.5 * (($this.$field_72160_cs / 2 | 0) % 2 | 0); - var$10 = 0.5 + 0.5 * (($this.$field_72160_cs / 4 | 0) % 2 | 0); - $this.$minX0 = var$5; - $this.$minY0 = var$6; - $this.$minZ0 = var$7; - $this.$maxX0 = var$8; - $this.$maxY0 = var$9; - $this.$maxZ0 = var$10; - } -} -function nms_BlockStairs_isOpaqueCube($this) { - return 0; -} -function nms_BlockStairs_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockStairs_getRenderType($this) { - return 10; -} -function nms_BlockStairs_func_82541_d($this, $par1IBlockAccess, $par2, $par3, $par4) { - if (!($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 4)) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.5; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.5; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockStairs_isBlockStairsID($par0) { - a: { - if ($par0 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$par0] instanceof nms_BlockStairs) { - $par0 = 1; - break a; - } - } - $par0 = 0; - } - return $par0; -} -function nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - a: { - $var6 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4); - if ($var6 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var6] instanceof nms_BlockStairs) { - $var6 = 1; - break a; - } - } - $var6 = 0; - } - return $var6 && $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) == $par5 ? 1 : 0; -} -function nms_BlockStairs_func_82542_g($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var16, $var9, $var10, $var11, $var12, $var13, $var15, $var14, $var15_0; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - $var6 = $var5 & 3; - $var7 = 0.5; - $var8 = 1.0; - $var16 = $var5 & 4; - if ($var16) { - $var7 = 0.0; - $var8 = 0.5; - } - a: { - $var9 = 0.0; - $var10 = 1.0; - $var11 = 0.0; - $var12 = 0.5; - $var13 = 1; - if ($var6) { - if ($var6 != 1) { - if ($var6 == 2) { - $var11 = 0.5; - $var12 = 1.0; - $var15 = $par4 + 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($par2, $par3, $var15); - $var15_0 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $var15); - if (nms_BlockStairs_isBlockStairsID($var14) && $var16 == ($var15_0 & 4)) { - $var16 = $var15_0 & 3; - if ($var16 == 1 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2 + 1 | 0, $par3, $par4, $var5)) { - $var10 = 0.5; - $var13 = 0; - } else if (!$var16 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2 - 1 | 0, $par3, $par4, $var5)) { - $var9 = 0.5; - $var13 = 0; - } - } - } else if ($var6 == 3) { - $var15 = $par4 - 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($par2, $par3, $var15); - $var15 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $var15); - if (nms_BlockStairs_isBlockStairsID($var14) && $var16 == ($var15 & 4)) { - $var16 = $var15 & 3; - if ($var16 == 1 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2 + 1 | 0, $par3, $par4, $var5)) { - $var10 = 0.5; - $var13 = 0; - } else if (!$var16 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2 - 1 | 0, $par3, $par4, $var5)) { - $var9 = 0.5; - $var13 = 0; - } - } - } - } else { - b: { - $var10 = 0.5; - $var12 = 1.0; - $var15 = $par2 - 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($var15, $par3, $par4); - $var15_0 = $par1IBlockAccess.$getBlockMetadata($var15, $par3, $par4); - if ($var14 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var14] instanceof nms_BlockStairs) { - $var15 = 1; - break b; - } - } - $var15 = 0; - } - if ($var15 && $var16 == ($var15_0 & 4)) { - $var16 = $var15_0 & 3; - if ($var16 == 3 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2, $par3, $par4 + 1 | 0, $var5)) { - $var12 = 0.5; - $var13 = 0; - } else if ($var16 == 2 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2, $par3, $par4 - 1 | 0, $var5)) { - $var11 = 0.5; - $var13 = 0; - } - } - } - } else { - c: { - $var9 = 0.5; - $var12 = 1.0; - $var15 = $par2 + 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($var15, $par3, $par4); - $var15 = $par1IBlockAccess.$getBlockMetadata($var15, $par3, $par4); - if ($var14 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var14] instanceof nms_BlockStairs) { - $var14 = 1; - break c; - } - } - $var14 = 0; - } - if ($var14 && $var16 == ($var15 & 4)) { - $var16 = $var15 & 3; - if ($var16 == 3) { - d: { - $var15 = $par4 + 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($par2, $par3, $var15); - if ($var14 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var14] instanceof nms_BlockStairs) { - $var14 = 1; - break d; - } - } - $var14 = 0; - } - if (!($var14 && $par1IBlockAccess.$getBlockMetadata($par2, $par3, $var15) == $var5 ? 1 : 0)) { - $var12 = 0.5; - $var13 = 0; - break a; - } - } - if ($var16 == 2) { - e: { - $par4 = $par4 - 1 | 0; - $var15 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4); - if ($var15 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var15] instanceof nms_BlockStairs) { - $var15 = 1; - break e; - } - } - $var15 = 0; - } - if (!($var15 && $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) == $var5 ? 1 : 0)) { - $var11 = 0.5; - $var13 = 0; - } - } - } - } - } - $this.$minX0 = $var9; - $this.$minY0 = $var7; - $this.$minZ0 = $var11; - $this.$maxX0 = $var10; - $this.$maxY0 = $var8; - $this.$maxZ0 = $var12; - return $var13; -} -function nms_BlockStairs_func_82544_h($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var16, $var9, $var10, $var11, $var12, $var13, $var15, $var14, $var15_0; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - $var6 = $var5 & 3; - $var7 = 0.5; - $var8 = 1.0; - $var16 = $var5 & 4; - if ($var16) { - $var7 = 0.0; - $var8 = 0.5; - } - a: { - $var9 = 0.0; - $var10 = 0.5; - $var11 = 0.5; - $var12 = 1.0; - $var13 = 0; - if ($var6) { - if ($var6 != 1) { - if ($var6 == 2) { - $var15 = $par4 - 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($par2, $par3, $var15); - $var15_0 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $var15); - if (nms_BlockStairs_isBlockStairsID($var14) && $var16 == ($var15_0 & 4)) { - $var11 = 0.0; - $var12 = 0.5; - $var16 = $var15_0 & 3; - if ($var16 == 1 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2 - 1 | 0, $par3, $par4, $var5)) - $var13 = 1; - else if (!$var16 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2 + 1 | 0, $par3, $par4, $var5)) { - $var9 = 0.5; - $var10 = 1.0; - $var13 = 1; - } - } - } else if ($var6 == 3) { - $var15 = $par4 + 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($par2, $par3, $var15); - $var15 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $var15); - if (nms_BlockStairs_isBlockStairsID($var14) && $var16 == ($var15 & 4)) { - $var16 = $var15 & 3; - if ($var16 == 1 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2 - 1 | 0, $par3, $par4, $var5)) - $var13 = 1; - else if (!$var16 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2 + 1 | 0, $par3, $par4, $var5)) { - $var9 = 0.5; - $var10 = 1.0; - $var13 = 1; - } - } - } - } else { - b: { - $var15 = $par2 + 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($var15, $par3, $par4); - $var15_0 = $par1IBlockAccess.$getBlockMetadata($var15, $par3, $par4); - if ($var14 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var14] instanceof nms_BlockStairs) { - $var15 = 1; - break b; - } - } - $var15 = 0; - } - if ($var15 && $var16 == ($var15_0 & 4)) { - $var9 = 0.5; - $var10 = 1.0; - $var16 = $var15_0 & 3; - if ($var16 == 3 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2, $par3, $par4 - 1 | 0, $var5)) { - $var11 = 0.0; - $var12 = 0.5; - $var13 = 1; - } else if ($var16 == 2 && !nms_BlockStairs_func_82540_f($this, $par1IBlockAccess, $par2, $par3, $par4 + 1 | 0, $var5)) { - $var11 = 0.5; - $var12 = 1.0; - $var13 = 1; - } - } - } - } else { - c: { - $var15 = $par2 - 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($var15, $par3, $par4); - $var15 = $par1IBlockAccess.$getBlockMetadata($var15, $par3, $par4); - if ($var14 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var14] instanceof nms_BlockStairs) { - $var14 = 1; - break c; - } - } - $var14 = 0; - } - if ($var14 && $var16 == ($var15 & 4)) { - $var16 = $var15 & 3; - if ($var16 == 3) { - d: { - $var15 = $par4 - 1 | 0; - $var14 = $par1IBlockAccess.$getBlockId($par2, $par3, $var15); - if ($var14 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var14] instanceof nms_BlockStairs) { - $var14 = 1; - break d; - } - } - $var14 = 0; - } - if (!($var14 && $par1IBlockAccess.$getBlockMetadata($par2, $par3, $var15) == $var5 ? 1 : 0)) { - $var11 = 0.0; - $var12 = 0.5; - $var13 = 1; - break a; - } - } - if ($var16 == 2) { - e: { - $par4 = $par4 + 1 | 0; - $var15 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4); - if ($var15 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var15] instanceof nms_BlockStairs) { - $var15 = 1; - break e; - } - } - $var15 = 0; - } - if (!($var15 && $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) == $var5 ? 1 : 0)) { - $var11 = 0.5; - $var12 = 1.0; - $var13 = 1; - } - } - } - } - } - if ($var13) { - $this.$minX0 = $var9; - $this.$minY0 = $var7; - $this.$minZ0 = $var11; - $this.$maxX0 = $var10; - $this.$maxY0 = $var8; - $this.$maxZ0 = $var12; - } - return $var13; -} -function nms_BlockStairs_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - var $var8; - nms_BlockStairs_func_82541_d($this, $par1World, $par2, $par3, $par4); - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $var8 = nms_BlockStairs_func_82542_g($this, $par1World, $par2, $par3, $par4); - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - if ($var8 && nms_BlockStairs_func_82544_h($this, $par1World, $par2, $par3, $par4)) { - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - } - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; -} -function nms_BlockStairs_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $this.$modelBlock; - $ptr = 1; - case 1: - var$6.$randomDisplayTick($par1World, $par2, $par3, $par4, $par5Random); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, var$6, $ptr); -} -function nms_BlockStairs_onBlockClicked($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $this.$modelBlock; - $ptr = 1; - case 1: - var$6.$onBlockClicked($par1World, $par2, $par3, $par4, $par5EntityPlayer); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, var$6, $ptr); -} -function nms_BlockStairs_onBlockDestroyedByPlayer($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $this.$modelBlock; - $ptr = 1; - case 1: - var$6.$onBlockDestroyedByPlayer($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, $ptr); -} -function nms_BlockStairs_getMixedBrightnessForBlock($this, $par1IBlockAccess, $par2, $par3, $par4) { - return $this.$modelBlock.$getMixedBrightnessForBlock($par1IBlockAccess, $par2, $par3, $par4); -} -function nms_BlockStairs_getBlockBrightness($this, $par1IBlockAccess, $par2, $par3, $par4) { - return $this.$modelBlock.$getBlockBrightness($par1IBlockAccess, $par2, $par3, $par4); -} -function nms_BlockStairs_getExplosionResistance($this, $par1Entity) { - return $this.$modelBlock.$getExplosionResistance($par1Entity); -} -function nms_BlockStairs_getRenderBlockPass($this) { - return $this.$modelBlock.$getRenderBlockPass(); -} -function nms_BlockStairs_getIcon($this, $par1, $par2) { - return $this.$modelBlock.$getIcon($par1, $this.$modelBlockMetadata); -} -function nms_BlockStairs_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return $this.$modelBlock.$getSelectedBoundingBoxFromPool($par1World, $par2, $par3, $par4); -} -function nms_BlockStairs_velocityToAddToEntity($this, $par1World, $par2, $par3, $par4, $par5Entity, $par6Vec3) { - $this.$modelBlock.$velocityToAddToEntity($par1World, $par2, $par3, $par4, $par5Entity, $par6Vec3); -} -function nms_BlockStairs_isCollidable($this) { - return $this.$modelBlock.$isCollidable(); -} -function nms_BlockStairs_canCollideCheck($this, $par1, $par2) { - return $this.$modelBlock.$canCollideCheck($par1, $par2); -} -function nms_BlockStairs_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - return $this.$modelBlock.$canPlaceBlockAt($par1World, $par2, $par3, $par4); -} -function nms_BlockStairs_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$5 = $this.$modelBlock; - $ptr = 1; - case 1: - var$5.$onBlockAdded($par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, $ptr); -} -function nms_BlockStairs_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $this.$modelBlock; - $ptr = 1; - case 1: - var$7.$breakBlock($par1World, $par2, $par3, $par4, $par5, $par6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, var$7, $ptr); -} -function nms_BlockStairs_onEntityWalking($this, $par1World, $par2, $par3, $par4, $par5Entity) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5Entity = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $this.$modelBlock; - $ptr = 1; - case 1: - var$6.$onEntityWalking($par1World, $par2, $par3, $par4, $par5Entity); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Entity, var$6, $ptr); -} -function nms_BlockStairs_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$10 = $this.$modelBlock; - $par6 = 0; - $par7 = 0.0; - $par8 = 0.0; - $par9 = 0.0; - $ptr = 1; - case 1: - $tmp = var$10.$onBlockActivated($par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, var$10, $ptr); -} -function nms_BlockStairs_onBlockDestroyedByExplosion($this, $par1World, $par2, $par3, $par4, $par5Explosion) { - $this.$modelBlock.$onBlockDestroyedByExplosion($par1World, $par2, $par3, $par4, $par5Explosion); -} -function nms_BlockStairs_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, $var8, $var7, 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();$var7 = $thread.pop();$var8 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - $var8 = var$7 | 0; - if (var$7 < $var8) - $var8 = $var8 - 1 | 0; - $var7 = $var8 & 3; - $var8 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 4; - if (!$var7) { - var$10 = 2 | $var8; - var$11 = 2; - $ptr = 1; - continue main; - } - if ($var7 == 1) { - var$10 = 1 | $var8; - var$11 = 2; - $ptr = 2; - continue main; - } - if ($var7 == 2) { - var$10 = 3 | $var8; - var$11 = 2; - $ptr = 3; - continue main; - } - if ($var7 != 3) - return; - $var7 = 0 | $var8; - $var8 = 2; - $ptr = 4; - continue main; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$10, var$11); - if ($rt_suspending()) { - break main; - } - if ($var7 == 1) { - var$10 = 1 | $var8; - var$11 = 2; - $ptr = 2; - continue main; - } - if ($var7 == 2) { - var$10 = 3 | $var8; - var$11 = 2; - $ptr = 3; - continue main; - } - if ($var7 != 3) - return; - $var7 = 0 | $var8; - $var8 = 2; - $ptr = 4; - continue main; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$10, var$11); - if ($rt_suspending()) { - break main; - } - if ($var7 == 2) { - var$10 = 3 | $var8; - var$11 = 2; - $ptr = 3; - continue main; - } - if ($var7 != 3) - return; - $var7 = 0 | $var8; - $var8 = 2; - $ptr = 4; - continue main; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$10, var$11); - if ($rt_suspending()) { - break main; - } - if ($var7 != 3) - return; - $var7 = 0 | $var8; - $var8 = 2; - $ptr = 4; - case 4: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, $var8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, $var8, $var7, var$10, var$11, $ptr); -} -function nms_BlockStairs_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - if (!($par5 && !($par5 != 1 && $par7 > 0.5))) - $par9 = $par9 | 4; - return $par9; -} -function nms_BlockStairs_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3) { - var $var7, $var8, $var9, $var10, $var11, var$12, $var12, $var14, $var15, $var23, $var22, $var24, $var16, $var17, $var18, var$22, var$23, $var19; - $var7 = $rt_createArray(nms_MovingObjectPosition, 8); - $var8 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var9 = $var8 & 3; - $var10 = ($var8 & 4) != 4 ? 0 : 1; - $var11 = nms_BlockStairs_field_72159_a; - $var8 = !$var10 ? 0 : 4; - var$12 = $var7.data; - $var11 = $var11.data[$var9 + $var8 | 0]; - $this.$field_72156_cr = 1; - $var12 = 0; - while ($var12 < 8) { - $var7 = $var11.data; - $this.$field_72160_cs = $var12; - $var14 = $var7.length; - $var15 = 0; - while ($var15 < $var14) { - $var15 = $var15 + 1 | 0; - } - var$12[$var12] = nms_Block_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3); - $var12 = $var12 + 1 | 0; - } - $var7 = $var11.data; - $var23 = $var7.length; - $var14 = 0; - while ($var14 < $var23) { - var$12[$var7[$var14]] = null; - $var14 = $var14 + 1 | 0; - } - $var22 = null; - $var24 = 0.0; - $var16 = var$12.length; - $var17 = 0; - while ($var17 < $var16) { - $var18 = var$12[$var17]; - if ($var18 !== null) { - $par1World = $var18.$hitVec; - var$22 = $par6Vec3.$xCoord - $par1World.$xCoord; - var$23 = $par6Vec3.$yCoord - $par1World.$yCoord; - $var19 = $par6Vec3.$zCoord - $par1World.$zCoord; - $var19 = var$22 * var$22 + var$23 * var$23 + $var19 * $var19; - if ($var19 > $var24) { - $var22 = $var18; - $var24 = $var19; - } - } - $var17 = $var17 + 1 | 0; - } - return $var22; -} -function nms_BlockStairs_registerIcons($this, $par1IconRegister) { - return; -} -function nms_BlockStairs__clinit_() { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createArray($rt_arraycls($rt_intcls()), 8); - var$2 = var$1.data; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 2; - var$4[1] = 6; - var$2[0] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 3; - var$4[1] = 7; - var$2[1] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 2; - var$4[1] = 3; - var$2[2] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 6; - var$4[1] = 7; - var$2[3] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = 4; - var$2[4] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 1; - var$4[1] = 5; - var$2[5] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = 1; - var$2[6] = var$3; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = 4; - var$4[1] = 5; - var$2[7] = var$3; - nms_BlockStairs_field_72159_a = var$1; -} -function nms_BlockChest() { - var a = this; nms_BlockContainer.call(a); - a.$random3 = null; - a.$isTrapped = 0; -} -function nms_BlockChest__init_(var_0, var_1) { - var var_2 = new nms_BlockChest(); - nms_BlockChest__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockChest__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$isBlockContainer = 1; - $this.$random3 = new ju_Random; - $this.$isTrapped = $par2; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.875; - $this.$maxZ0 = 0.9375; -} -function nms_BlockChest_isOpaqueCube($this) { - return 0; -} -function nms_BlockChest_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockChest_getRenderType($this) { - return 22; -} -function nms_BlockChest_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - if ($par1IBlockAccess.$getBlockId($par2, $par3, $par4 - 1 | 0) == $this.$blockID) { - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.875; - $this.$maxZ0 = 0.9375; - } else if ($par1IBlockAccess.$getBlockId($par2, $par3, $par4 + 1 | 0) == $this.$blockID) { - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.875; - $this.$maxZ0 = 1.0; - } else if ($par1IBlockAccess.$getBlockId($par2 - 1 | 0, $par3, $par4) == $this.$blockID) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.875; - $this.$maxZ0 = 0.9375; - } else if ($par1IBlockAccess.$getBlockId($par2 + 1 | 0, $par3, $par4) != $this.$blockID) { - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.875; - $this.$maxZ0 = 0.9375; - } else { - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.875; - $this.$maxZ0 = 0.9375; - } -} -function nms_BlockChest_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, $var5, var$7, $var6, var$9, $var7, var$11, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();var$11 = $thread.pop();$var7 = $thread.pop();var$9 = $thread.pop();$var6 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockChest_unifyAdjacentChests($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$5 = $par4 - 1 | 0; - $var5 = nms_World_getBlockId($par1World, $par2, $par3, var$5); - var$7 = $par4 + 1 | 0; - $var6 = nms_World_getBlockId($par1World, $par2, $par3, var$7); - var$9 = $par2 - 1 | 0; - $var7 = nms_World_getBlockId($par1World, var$9, $par3, $par4); - var$11 = $par2 + 1 | 0; - $var8 = nms_World_getBlockId($par1World, var$11, $par3, $par4); - if ($var5 == $this.$blockID) { - $ptr = 2; - continue main; - } - if ($var6 == $this.$blockID) { - $ptr = 3; - continue main; - } - if ($var7 == $this.$blockID) { - $ptr = 4; - continue main; - } - if ($var8 != $this.$blockID) - return; - $ptr = 5; - continue main; - case 2: - nms_BlockChest_unifyAdjacentChests($this, $par1World, $par2, $par3, var$5); - if ($rt_suspending()) { - break main; - } - if ($var6 == $this.$blockID) { - $ptr = 3; - continue main; - } - if ($var7 == $this.$blockID) { - $ptr = 4; - continue main; - } - if ($var8 != $this.$blockID) - return; - $ptr = 5; - continue main; - case 3: - nms_BlockChest_unifyAdjacentChests($this, $par1World, $par2, $par3, var$7); - if ($rt_suspending()) { - break main; - } - if ($var7 == $this.$blockID) { - $ptr = 4; - continue main; - } - if ($var8 != $this.$blockID) - return; - $ptr = 5; - continue main; - case 4: - nms_BlockChest_unifyAdjacentChests($this, $par1World, var$9, $par3, $par4); - if ($rt_suspending()) { - break main; - } - if ($var8 != $this.$blockID) - return; - $ptr = 5; - case 5: - nms_BlockChest_unifyAdjacentChests($this, $par1World, var$11, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, $var5, var$7, $var6, var$9, $var7, var$11, $var8, $ptr); -} -function nms_BlockChest_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, $var7, var$9, $var8, var$11, $var9, var$13, $var10, $var11, var$16, var$17, $var12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();var$13 = $thread.pop();$var9 = $thread.pop();var$11 = $thread.pop();$var8 = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par4 - 1 | 0; - $var7 = nms_World_getBlockId($par1World, $par2, $par3, var$7); - var$9 = $par4 + 1 | 0; - $var8 = nms_World_getBlockId($par1World, $par2, $par3, var$9); - var$11 = $par2 - 1 | 0; - $var9 = nms_World_getBlockId($par1World, var$11, $par3, $par4); - var$13 = $par2 + 1 | 0; - $var10 = nms_World_getBlockId($par1World, var$13, $par3, $par4); - $var11 = 0; - var$16 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - var$17 = var$16 | 0; - if (var$16 < var$17) - var$17 = var$17 - 1 | 0; - $var12 = var$17 & 3; - if (!$var12) - $var11 = 2; - if ($var12 == 1) - $var11 = 5; - if ($var12 == 2) - $var11 = 3; - if ($var12 == 3) - $var11 = 4; - if ($var7 != $this.$blockID && $var8 != $this.$blockID && $var9 != $this.$blockID && $var10 != $this.$blockID) { - $var12 = 3; - $ptr = 3; - continue main; - } - a: { - if (!($var7 != $this.$blockID && $var8 != $this.$blockID)) { - if ($var11 == 4) - break a; - if ($var11 == 5) - break a; - } - b: { - if (!($var9 != $this.$blockID && $var10 != $this.$blockID)) { - if ($var11 == 2) - break b; - if ($var11 == 3) - break b; - } - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94045_s = nms_ItemStack_getDisplayName($par6ItemStack); - return; - } - if ($var9 != $this.$blockID) { - $var12 = 3; - $ptr = 5; - continue main; - } - $var12 = 3; - $ptr = 6; - continue main; - } - if ($var7 != $this.$blockID) { - $var12 = 3; - $ptr = 1; - continue main; - } - $var12 = 3; - $ptr = 2; - continue main; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, var$9, $var11, $var12); - if ($rt_suspending()) { - break main; - } - $var12 = 3; - $ptr = 4; - continue main; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, var$7, $var11, $var12); - if ($rt_suspending()) { - break main; - } - $var12 = 3; - $ptr = 4; - continue main; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var11, $var12); - if ($rt_suspending()) { - break main; - } - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94045_s = nms_ItemStack_getDisplayName($par6ItemStack); - return; - case 4: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var11, $var12); - if ($rt_suspending()) { - break main; - } - c: { - if (!($var9 != $this.$blockID && $var10 != $this.$blockID)) { - if ($var11 == 2) - break c; - if ($var11 == 3) - break c; - } - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94045_s = nms_ItemStack_getDisplayName($par6ItemStack); - return; - } - if ($var9 != $this.$blockID) { - $var12 = 3; - $ptr = 5; - continue main; - } - $var12 = 3; - $ptr = 6; - continue main; - case 5: - nms_World_setBlockMetadataWithNotify($par1World, var$13, $par3, $par4, $var11, $var12); - if ($rt_suspending()) { - break main; - } - $var12 = 3; - $ptr = 7; - continue main; - case 6: - nms_World_setBlockMetadataWithNotify($par1World, var$11, $par3, $par4, $var11, $var12); - if ($rt_suspending()) { - break main; - } - $var12 = 3; - $ptr = 7; - case 7: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var11, $var12); - if ($rt_suspending()) { - break main; - } - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94045_s = nms_ItemStack_getDisplayName($par6ItemStack); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, $var7, var$9, $var8, var$11, $var9, var$13, $var10, $var11, var$16, var$17, $var12, $ptr); -} -function nms_BlockChest_unifyAdjacentChests($this, $par1World, $par2, $par3, $par4) { - var $var10, $var5, $var14, $var6, $var10_0, $var7, var$11, $var8, $var13, $var11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var11 = $thread.pop();$var13 = $thread.pop();$var8 = $thread.pop();var$11 = $thread.pop();$var7 = $thread.pop();$var10_0 = $thread.pop();$var6 = $thread.pop();$var14 = $thread.pop();$var5 = $thread.pop();$var10 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - $var10 = $par4 - 1 | 0; - $var5 = nms_World_getBlockId($par1World, $par2, $par3, $var10); - $var14 = $par4 + 1 | 0; - $var6 = nms_World_getBlockId($par1World, $par2, $par3, $var14); - $var10_0 = $par2 - 1 | 0; - $var7 = nms_World_getBlockId($par1World, $var10_0, $par3, $par4); - var$11 = $par2 + 1 | 0; - $var8 = nms_World_getBlockId($par1World, var$11, $par3, $par4); - if ($var5 != $this.$blockID && $var6 != $this.$blockID) { - if ($var7 != $this.$blockID && $var8 != $this.$blockID) { - $var13 = 3; - nms_Block_$callClinit(); - if (nms_Block_opaqueCubeLookup.data[$var5] && !nms_Block_opaqueCubeLookup.data[$var6]) - $var13 = 3; - if (nms_Block_opaqueCubeLookup.data[$var6] && !nms_Block_opaqueCubeLookup.data[$var5]) - $var13 = 2; - if (nms_Block_opaqueCubeLookup.data[$var7] && !nms_Block_opaqueCubeLookup.data[$var8]) - $var13 = 5; - if (nms_Block_opaqueCubeLookup.data[$var8] && !nms_Block_opaqueCubeLookup.data[$var7]) - $var13 = 4; - } else { - $var10 = nms_World_getBlockId($par1World, $var7 != $this.$blockID ? var$11 : $var10_0, $par3, $var10); - $var11 = nms_World_getBlockId($par1World, $var7 != $this.$blockID ? var$11 : $var10_0, $par3, $var14); - $var13 = 3; - if (($var7 != $this.$blockID ? nms_World_getBlockMetadata($par1World, var$11, $par3, $par4) : nms_World_getBlockMetadata($par1World, $var10_0, $par3, $par4)) == 2) - $var13 = 2; - nms_Block_$callClinit(); - if (!(!nms_Block_opaqueCubeLookup.data[$var5] && !nms_Block_opaqueCubeLookup.data[$var10]) && !nms_Block_opaqueCubeLookup.data[$var6] && !nms_Block_opaqueCubeLookup.data[$var11]) - $var13 = 3; - if (!(!nms_Block_opaqueCubeLookup.data[$var6] && !nms_Block_opaqueCubeLookup.data[$var11]) && !nms_Block_opaqueCubeLookup.data[$var5] && !nms_Block_opaqueCubeLookup.data[$var10]) - $var13 = 2; - } - } else { - $var10_0 = nms_World_getBlockId($par1World, $var10_0, $par3, $var5 != $this.$blockID ? $var14 : $var10); - $var11 = nms_World_getBlockId($par1World, var$11, $par3, $var5 != $this.$blockID ? $var14 : $var10); - $var13 = 5; - if (($var5 != $this.$blockID ? nms_World_getBlockMetadata($par1World, $par2, $par3, $var14) : nms_World_getBlockMetadata($par1World, $par2, $par3, $var10)) == 4) - $var13 = 4; - nms_Block_$callClinit(); - if (!(!nms_Block_opaqueCubeLookup.data[$var7] && !nms_Block_opaqueCubeLookup.data[$var10_0]) && !nms_Block_opaqueCubeLookup.data[$var8] && !nms_Block_opaqueCubeLookup.data[$var11]) - $var13 = 5; - if (!(!nms_Block_opaqueCubeLookup.data[$var8] && !nms_Block_opaqueCubeLookup.data[$var11]) && !nms_Block_opaqueCubeLookup.data[$var7] && !nms_Block_opaqueCubeLookup.data[$var10_0]) - $var13 = 4; - } - $var11 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var13, $var11); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var10, $var5, $var14, $var6, $var10_0, $var7, var$11, $var8, $var13, $var11, $ptr); -} -function nms_BlockChest_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6, var$7, var$8, var$9; - $var5 = 0; - var$6 = $par2 - 1 | 0; - if (nms_World_getBlockId($par1World, var$6, $par3, $par4) == $this.$blockID) - $var5 = 1; - var$7 = $par2 + 1 | 0; - if (nms_World_getBlockId($par1World, var$7, $par3, $par4) == $this.$blockID) - $var5 = $var5 + 1 | 0; - var$8 = $par4 - 1 | 0; - if (nms_World_getBlockId($par1World, $par2, $par3, var$8) == $this.$blockID) - $var5 = $var5 + 1 | 0; - var$9 = $par4 + 1 | 0; - if (nms_World_getBlockId($par1World, $par2, $par3, var$9) == $this.$blockID) - $var5 = $var5 + 1 | 0; - return $var5 > 1 ? 0 : nms_BlockChest_isThereANeighborChest($this, $par1World, var$6, $par3, $par4) ? 0 : nms_BlockChest_isThereANeighborChest($this, $par1World, var$7, $par3, $par4) ? 0 : nms_BlockChest_isThereANeighborChest($this, $par1World, $par2, $par3, var$8) ? 0 : nms_BlockChest_isThereANeighborChest($this, $par1World, $par2, $par3, var$9) ? 0 : 1; -} -function nms_BlockChest_isThereANeighborChest($this, $par1World, $par2, $par3, $par4) { - return nms_World_getBlockId($par1World, $par2, $par3, $par4) != $this.$blockID ? 0 : nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4) == $this.$blockID ? 1 : nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4) == $this.$blockID ? 1 : nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0) == $this.$blockID ? 1 : nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0) != $this.$blockID ? 0 : 1; -} -function nms_BlockChest_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6; - $var6 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var6 !== null) { - $var6.$blockType0 = null; - $var6.$blockMetadata = (-1); - $var6.$adjacentChestChecked = 0; - } -} -function nms_BlockChest_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, var$9, var$10, var$11, $var9, $var10, $var11, $var12, var$16, var$17, var$18, $var13, $var14, var$21, var$22, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var7 === null) { - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - } - $var8 = 0; - var$9 = $par2; - var$10 = $par3; - var$11 = $par4; - while ($var8 < 27) { - a: { - $var9 = $var7.$chestContents.data[$var8]; - if ($var9 !== null) { - $var10 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var11 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var12 = Math.random() * 0.800000011920929 + 0.10000000149011612; - var$16 = var$9 + $var10; - var$17 = var$10 + $var11; - var$18 = var$11 + $var12; - while (true) { - if ($var9.$stackSize <= 0) - break a; - $var13 = (Math.random() * 21.0 | 0) + 10 | 0; - if ($var13 > $var9.$stackSize) - $var13 = $var9.$stackSize; - $var9.$stackSize = $var9.$stackSize - $var13 | 0; - $var14 = new nms_EntityItem; - var$21 = new nms_ItemStack; - $par6 = $var9.$itemID0; - var$22 = $var9.$itemDamage; - var$21.$stackSize = 0; - var$21.$itemFrame = null; - var$21.$itemID0 = $par6; - var$21.$stackSize = $var13; - var$21.$itemDamage = var$22; - if (var$21.$itemDamage < 0) - var$21.$itemDamage = 0; - nms_EntityItem__init_2($var14, $par1World, var$16, var$17, var$18); - nms_DataWatcher_updateObject($var14.$dataWatcher, 10, var$21); - nms_DataWatcher_setObjectWatched($var14.$dataWatcher, 10); - $var14.$motionX = ju_Random_nextGaussian($this.$random3) * 0.05000000074505806; - $var14.$motionY = ju_Random_nextGaussian($this.$random3) * 0.05000000074505806 + 0.20000000298023224; - $var14.$motionZ = ju_Random_nextGaussian($this.$random3) * 0.05000000074505806; - if ($var9.$stackTagCompound === null ? 0 : 1) - nms_EntityItem_getEntityItem($var14).$stackTagCompound = nms_NBTTagCompound_copy($var9.$stackTagCompound); - $par6 = nms_World_spawnEntityInWorld($par1World, $var14); - var$23 = $par1World.$entityList; - ju_HashMap_putImpl(var$23.$backingMap, $var14, var$23); - if (!$par6) { - var$23 = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl(var$23.$backingMap, $var14, var$23); - } - } - } - } - $var8 = $var8 + 1 | 0; - } - $ptr = 1; - case 1: - nms_World_func_96440_m($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var8, var$9, var$10, var$11, $var9, $var10, $var11, $var12, var$16, var$17, var$18, $var13, $var14, var$21, var$22, var$23, $ptr); -} -function nms_BlockChest_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_BlockChest_getInventory($this, $par1World, $par2, $par3, $par4); - if ($var10 === null) - return 1; - var$11 = $par5EntityPlayer.$mc3; - $par1World = new nms_GuiChest; - $par5EntityPlayer = $par5EntityPlayer.$inventory; - $ptr = 1; - case 1: - nms_GuiChest__init_($par1World, $par5EntityPlayer, $var10); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen(var$11, $par1World); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, var$11, $ptr); -} -function nms_BlockChest_getInventory($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13; - $var5 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var5 === null) - return null; - var$6 = $par3 + 1 | 0; - if (nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, var$6, $par4))) - return null; - if (nms_BlockChest_isOcelotBlockingChest($par1World, $par2, $par3, $par4)) - return null; - var$7 = $par2 - 1 | 0; - if (nms_World_getBlockId($par1World, var$7, $par3, $par4) == $this.$blockID && !(!nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$7, var$6, $par4)) && !nms_BlockChest_isOcelotBlockingChest($par1World, var$7, $par3, $par4))) - return null; - var$8 = $par2 + 1 | 0; - if (nms_World_getBlockId($par1World, var$8, $par3, $par4) == $this.$blockID && !(!nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$8, var$6, $par4)) && !nms_BlockChest_isOcelotBlockingChest($par1World, var$8, $par3, $par4))) - return null; - var$9 = $par4 - 1 | 0; - if (nms_World_getBlockId($par1World, $par2, $par3, var$9) == $this.$blockID && !(!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, var$6, var$9)) && !nms_BlockChest_isOcelotBlockingChest($par1World, $par2, $par3, var$9))) - return null; - var$10 = $par4 + 1 | 0; - if (nms_World_getBlockId($par1World, $par2, $par3, var$10) == $this.$blockID && !(!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, var$6, var$10)) && !nms_BlockChest_isOcelotBlockingChest($par1World, $par2, $par3, var$10))) - return null; - if (nms_World_getBlockId($par1World, var$7, $par3, $par4) != $this.$blockID) - var$11 = $var5; - else { - var$11 = new nms_InventoryLargeChest; - var$12 = nms_World_getBlockTileEntity($par1World, var$7, $par3, $par4); - $var5 = $var5; - var$11.$name10 = $rt_s(2072); - if (var$12 === null) - var$12 = $var5; - if ($var5 === null) - $var5 = var$12; - var$11.$upperChest = var$12; - var$11.$lowerChest = $var5; - } - if (nms_World_getBlockId($par1World, var$8, $par3, $par4) != $this.$blockID) - var$13 = var$11; - else { - var$13 = new nms_InventoryLargeChest; - var$11 = var$11; - $var5 = nms_World_getBlockTileEntity($par1World, var$8, $par3, $par4); - var$13.$name10 = $rt_s(2072); - if (var$11 === null) - var$11 = $var5; - if ($var5 === null) - $var5 = var$11; - var$13.$upperChest = var$11; - var$13.$lowerChest = $var5; - } - if (nms_World_getBlockId($par1World, $par2, $par3, var$9) != $this.$blockID) - var$11 = var$13; - else { - var$11 = new nms_InventoryLargeChest; - $var5 = nms_World_getBlockTileEntity($par1World, $par2, $par3, var$9); - var$13 = var$13; - var$11.$name10 = $rt_s(2072); - if ($var5 === null) - $var5 = var$13; - if (var$13 === null) - var$13 = $var5; - var$11.$upperChest = $var5; - var$11.$lowerChest = var$13; - } - if (nms_World_getBlockId($par1World, $par2, $par3, var$10) != $this.$blockID) - var$13 = var$11; - else { - var$13 = new nms_InventoryLargeChest; - var$11 = var$11; - $par1World = nms_World_getBlockTileEntity($par1World, $par2, $par3, var$10); - var$13.$name10 = $rt_s(2072); - if (var$11 === null) - var$11 = $par1World; - if ($par1World === null) - $par1World = var$11; - var$13.$upperChest = var$11; - var$13.$lowerChest = $par1World; - } - return var$13; -} -function nms_BlockChest_createNewTileEntity($this, $par1World) { - var $var2; - $var2 = new nms_TileEntityChest; - $var2.$blockMetadata = (-1); - $var2.$chestContents = $rt_createArray(nms_ItemStack, 36); - $var2.$adjacentChestChecked = 0; - $var2.$field_94046_i = (-1); - return $var2; -} -function nms_BlockChest_canProvidePower($this) { - return $this.$isTrapped != 1 ? 0 : 1; -} -function nms_BlockChest_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - if (!($this.$isTrapped != 1 ? 0 : 1)) - return 0; - $var6 = $par1IBlockAccess.$getBlockTileEntity($par2, $par3, $par4).$numUsingPlayers; - $par2 = 0; - if ($var6 >= $par2) - $par2 = $var6 <= 15 ? $var6 : 15; - return $par2; -} -function nms_BlockChest_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - if ($par5 != 1) - $par2 = 0; - else if (!($this.$isTrapped != 1 ? 0 : 1)) - $par2 = 0; - else { - $par3 = $par1IBlockAccess.$getBlockTileEntity($par2, $par3, $par4).$numUsingPlayers; - $par2 = 0; - if ($par3 >= $par2) - $par2 = $par3 <= 15 ? $par3 : 15; - } - return $par2; -} -function nms_BlockChest_isOcelotBlockingChest($par0World, $par1, $par2, $par3) { - var $var4, var$6, var$7; - $var4 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var4.$initialized) { - var$6 = new nms_AABBPool; - var$7 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$7); - var$7.$array1 = $rt_createArray(jl_Object, 10); - var$6.$listAABB = var$7; - var$6.$nextPoolIndex = 0; - var$6.$maxPoolIndex = 0; - var$6.$numCleans = 0; - var$6.$maxNumCleans = 300; - var$6.$numEntriesToRemove = 2000; - $var4.$value7 = var$6; - $var4.$initialized = 1; - } - $par0World = nms_World_selectEntitiesWithinAABB($par0World, $rt_cls(nms_EntityOcelot), nms_AABBPool_getAABB($var4.$value7, $par1, $par2 + 1 | 0, $par3, $par1 + 1 | 0, $par2 + 2 | 0, $par3 + 1 | 0), null); - $var4 = new ju_AbstractList$1; - $var4.$this$0 = $par0World; - $var4.$modCount = $var4.$this$0.$modCount0; - $var4.$size1 = $var4.$this$0.$size2(); - $var4.$removeIndex = (-1); - while (true) { - if (!($var4.$index >= $var4.$size1 ? 0 : 1)) - return 0; - if (!(!(nms_DataWatcher_getWatchableObjectByte(ju_AbstractList$1_next($var4).$dataWatcher, 16) & 1) ? 0 : 1)) - continue; - else - break; - } - return 1; -} -function nms_BlockChest_hasComparatorInputOverride($this) { - return 1; -} -function nms_BlockChest_getComparatorInputOverride($this, $par1World, $par2, $par3, $par4, $par5) { - return nms_Container_calcRedstoneFromInventory(nms_BlockChest_getInventory($this, $par1World, $par2, $par3, $par4)); -} -function nms_BlockChest_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(1592)); -} -function nms_BlockRedstoneWire() { - var a = this; nms_Block.call(a); - a.$wiresProvidePower = 0; - a.$blocksNeedingUpdate = null; - a.$field_94413_c = null; - a.$field_94410_cO = null; - a.$field_94411_cP = null; - a.$field_94412_cQ = null; -} -function nms_BlockRedstoneWire__init_(var_0) { - var var_1 = new nms_BlockRedstoneWire(); - nms_BlockRedstoneWire__init_0(var_1, var_0); - return var_1; -} -function nms_BlockRedstoneWire__init_0($this, $par1) { - var var$2; - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$wiresProvidePower = 1; - var$2 = new ju_HashSet; - var$2.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$blocksNeedingUpdate = var$2; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.0625; - $this.$maxZ0 = 1.0; -} -function nms_BlockRedstoneWire_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockRedstoneWire_isOpaqueCube($this) { - return 0; -} -function nms_BlockRedstoneWire_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockRedstoneWire_getRenderType($this) { - return 5; -} -function nms_BlockRedstoneWire_colorMultiplier($this, $par1IBlockAccess, $par2, $par3, $par4) { - return 8388608; -} -function nms_BlockRedstoneWire_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - $par3 = $par3 - 1 | 0; - nms_Block_$callClinit(); - return !nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)) && nms_World_getBlockId($par1World, $par2, $par3, $par4) != nms_Block_glowStone.$blockID ? 0 : 1; -} -function nms_BlockRedstoneWire_updateAndPropagateCurrentStrength($this, $par1World, $par2, $par3, $par4) { - var $var5, $var7, var$7, $var6, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var6 = $thread.pop();var$7 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockRedstoneWire_calculateCurrentChanges($this, $par1World, $par2, $par3, $par4, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $var5 = ju_ArrayList__init_3($this.$blocksNeedingUpdate); - $var7 = $this.$blocksNeedingUpdate.$backingMap; - if ($var7.$elementCount > 0) { - $var7.$elementCount = 0; - var$7 = $var7.$elementData; - ju_Arrays_fill(var$7, 0, var$7.data.length, null); - $var7.$modCount1 = $var7.$modCount1 + 1 | 0; - } - $var6 = 0; - if ($var6 >= $var5.$size0) - return; - if ($var6 >= 0 && $var6 < $var5.$size0) { - $var7 = $var5.$array1.data[$var6]; - $par2 = $var7.$x3; - $par3 = $var7.$y2; - $par4 = $var7.$z5; - var$9 = $this.$blockID; - $ptr = 2; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, var$9); - if ($rt_suspending()) { - break main; - } - $var6 = $var6 + 1 | 0; - if ($var6 >= $var5.$size0) - return; - if ($var6 >= 0 && $var6 < $var5.$size0) { - $var7 = $var5.$array1.data[$var6]; - $par2 = $var7.$x3; - $par3 = $var7.$y2; - $par4 = $var7.$z5; - var$9 = $this.$blockID; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var7, var$7, $var6, var$9, $ptr); -} -function nms_BlockRedstoneWire_calculateCurrentChanges($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var15, var$10, $var10, $var11, $var12, var$14, var$15, var$16, var$17, var$18, var$19, var$20, var$21, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();var$10 = $thread.pop();$var15 = $thread.pop();$var8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this - = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var8 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var15 = 0; - if (nms_World_getBlockId($par1World, $par5, $par6, $par7) == $this.$blockID) { - var$10 = nms_World_getBlockMetadata($par1World, $par5, $par6, $par7); - if (var$10 > $var15) - $var15 = var$10; - } - $this.$wiresProvidePower = 0; - $var10 = nms_World_getStrongestIndirectPower($par1World, $par2, $par3, $par4); - $this.$wiresProvidePower = 1; - if ($var10 > 0 && $var10 > ($var15 - 1 | 0)) - $var15 = $var10; - $var11 = 0; - $var12 = 0; - var$14 = $par2 - 1 | 0; - var$15 = $par4 - 1 | 0; - var$16 = $par3 + 1 | 0; - var$17 = $rt_compare($par3, $par6); - var$18 = $par3 - 1 | 0; - while ($var12 < 4) { - var$19 = !$var12 ? var$14 : $par2; - if ($var12 == 1) - var$19 = var$19 + 1 | 0; - $par6 = $var12 == 2 ? var$15 : $par4; - if ($var12 == 3) - $par6 = $par6 + 1 | 0; - var$10 = $rt_compare(var$19, $par5); - if (!(!var$10 && $par6 == $par7) && nms_World_getBlockId($par1World, var$19, $par3, $par6) == $this.$blockID) { - var$20 = nms_World_getBlockMetadata($par1World, var$19, $par3, $par6); - if (var$20 > $var11) - $var11 = var$20; - } - if (nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$19, $par3, $par6)) && !nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, var$16, $par4))) { - if (!(!var$10 && $par6 == $par7) && var$17 >= 0 && nms_World_getBlockId($par1World, var$19, var$16, $par6) == $this.$blockID) { - $par6 = nms_World_getBlockMetadata($par1World, var$19, var$16, $par6); - if ($par6 > $var11) - $var11 = $par6; - } - } else if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$19, $par3, $par6)) && !(!var$10 && $par6 == $par7) && var$17 <= 0 && nms_World_getBlockId($par1World, var$19, var$18, $par6) == $this.$blockID) { - $par6 = nms_World_getBlockMetadata($par1World, var$19, var$18, $par6); - if ($par6 > $var11) - $var11 = $par6; - } - $var12 = $var12 + 1 | 0; - } - $par5 = $var11 > $var15 ? $var11 - 1 | 0 : $var15 <= 0 ? 0 : $var15 + (-1) | 0; - if ($var10 <= ($par5 - 1 | 0)) - $var10 = $par5; - if ($var8 == $var10) - return; - $par5 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var10, $par5); - if ($rt_suspending()) { - break main; - } - $par1World = $this.$blocksNeedingUpdate; - var$21 = new nms_ChunkPosition; - var$21.$x3 = $par2; - var$21.$y2 = $par3; - var$21.$z5 = $par4; - ju_HashMap_putImpl($par1World.$backingMap, var$21, $par1World); - $par1World = $this.$blocksNeedingUpdate; - var$21 = new nms_ChunkPosition; - var$21.$x3 = var$14; - var$21.$y2 = $par3; - var$21.$z5 = $par4; - ju_HashMap_putImpl($par1World.$backingMap, var$21, $par1World); - $par1World = $this.$blocksNeedingUpdate; - var$21 = new nms_ChunkPosition; - var$21.$x3 = $par2 + 1 | 0; - var$21.$y2 = $par3; - var$21.$z5 = $par4; - ju_HashMap_putImpl($par1World.$backingMap, var$21, $par1World); - $par1World = $this.$blocksNeedingUpdate; - var$21 = new nms_ChunkPosition; - var$21.$x3 = $par2; - var$21.$y2 = var$18; - var$21.$z5 = $par4; - ju_HashMap_putImpl($par1World.$backingMap, var$21, $par1World); - $par1World = $this.$blocksNeedingUpdate; - var$21 = new nms_ChunkPosition; - var$21.$x3 = $par2; - var$21.$y2 = var$16; - var$21.$z5 = $par4; - ju_HashMap_putImpl($par1World.$backingMap, var$21, $par1World); - $par1World = $this.$blocksNeedingUpdate; - var$21 = new nms_ChunkPosition; - var$21.$x3 = $par2; - var$21.$y2 = $par3; - var$21.$z5 = var$15; - ju_HashMap_putImpl($par1World.$backingMap, var$21, $par1World); - $par1World = $this.$blocksNeedingUpdate; - var$21 = new nms_ChunkPosition; - $par4 = $par4 + 1 | 0; - var$21.$x3 = $par2; - var$21.$y2 = $par3; - var$21.$z5 = $par4; - ju_HashMap_putImpl($par1World.$backingMap, var$21, $par1World); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $var8, $var15, var$10, $var10, $var11, $var12, var$14, var$15, var$16, var$17, var$18, var$19, var$20, var$21, $ptr); -} -function nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, $par3, $par4) { - var 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();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) != $this.$blockID) - return; - var$5 = $this.$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, var$5); - if ($rt_suspending()) { - break main; - } - var$5 = $par2 - 1 | 0; - var$6 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, var$5, $par3, $par4, var$6); - if ($rt_suspending()) { - break main; - } - var$5 = $par2 + 1 | 0; - var$6 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, var$5, $par3, $par4, var$6); - if ($rt_suspending()) { - break main; - } - var$5 = $par4 - 1 | 0; - var$6 = $this.$blockID; - $ptr = 4; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, var$5, var$6); - if ($rt_suspending()) { - break main; - } - var$5 = $par4 + 1 | 0; - var$6 = $this.$blockID; - $ptr = 5; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, var$5, var$6); - if ($rt_suspending()) { - break main; - } - var$5 = $par3 - 1 | 0; - var$6 = $this.$blockID; - $ptr = 6; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$5, $par4, var$6); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 + 1 | 0; - var$5 = $this.$blockID; - $ptr = 7; - case 7: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, $ptr); -} -function nms_BlockRedstoneWire_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, 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();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - $ptr = 1; - case 1: - nms_BlockRedstoneWire_updateAndPropagateCurrentStrength($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$5 = $par3 + 1 | 0; - var$6 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$5, $par4, var$6); - if ($rt_suspending()) { - break main; - } - var$6 = $par3 - 1 | 0; - var$7 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$6, $par4, var$7); - if ($rt_suspending()) { - break main; - } - var$8 = $par2 - 1 | 0; - $ptr = 4; - case 4: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$8, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$9 = $par2 + 1 | 0; - $ptr = 5; - case 5: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$9, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$10 = $par4 - 1 | 0; - $ptr = 6; - case 6: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, $par3, var$10); - if ($rt_suspending()) { - break main; - } - var$11 = $par4 + 1 | 0; - $ptr = 7; - case 7: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, $par3, var$11); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$8, $par3, $par4))) { - $ptr = 8; - continue main; - } - $ptr = 9; - continue main; - case 8: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$8, var$6, $par4); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$9, $par3, $par4))) { - $ptr = 10; - continue main; - } - $ptr = 11; - continue main; - case 9: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$8, var$5, $par4); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$9, $par3, $par4))) { - $ptr = 10; - continue main; - } - $ptr = 11; - continue main; - case 10: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$9, var$6, $par4); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, var$10))) { - $ptr = 12; - continue main; - } - $ptr = 13; - continue main; - case 11: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$9, var$5, $par4); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, var$10))) { - $ptr = 12; - continue main; - } - $ptr = 13; - continue main; - case 12: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, var$6, var$10); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, var$11))) { - $ptr = 14; - continue main; - } - $ptr = 15; - continue main; - case 13: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, var$5, var$10); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, var$11))) { - $ptr = 14; - continue main; - } - $ptr = 15; - continue main; - case 14: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, var$6, var$11); - if ($rt_suspending()) { - break main; - } - return; - case 15: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, var$5, var$11); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_BlockRedstoneWire_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var 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();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - $par5 = $par3 + 1 | 0; - $par6 = $this.$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par5, $par4, $par6); - if ($rt_suspending()) { - break main; - } - $par6 = $par3 - 1 | 0; - var$7 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par6, $par4, var$7); - if ($rt_suspending()) { - break main; - } - var$8 = $par2 + 1 | 0; - var$7 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, var$8, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - var$9 = $par2 - 1 | 0; - var$7 = $this.$blockID; - $ptr = 4; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, var$9, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - var$10 = $par4 + 1 | 0; - var$7 = $this.$blockID; - $ptr = 5; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, var$10, var$7); - if ($rt_suspending()) { - break main; - } - var$11 = $par4 - 1 | 0; - var$7 = $this.$blockID; - $ptr = 6; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, var$11, var$7); - if ($rt_suspending()) { - break main; - } - $ptr = 7; - case 7: - nms_BlockRedstoneWire_updateAndPropagateCurrentStrength($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $ptr = 8; - case 8: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$9, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $ptr = 9; - case 9: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$8, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $ptr = 10; - case 10: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, $par3, var$11); - if ($rt_suspending()) { - break main; - } - $ptr = 11; - case 11: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, $par3, var$10); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$9, $par3, $par4))) { - $ptr = 12; - continue main; - } - $ptr = 13; - continue main; - case 12: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$9, $par6, $par4); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$8, $par3, $par4))) { - $ptr = 14; - continue main; - } - $ptr = 15; - continue main; - case 13: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$9, $par5, $par4); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, var$8, $par3, $par4))) { - $ptr = 14; - continue main; - } - $ptr = 15; - continue main; - case 14: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$8, $par6, $par4); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, var$11))) { - $ptr = 16; - continue main; - } - $ptr = 17; - continue main; - case 15: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, var$8, $par5, $par4); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, var$11))) { - $ptr = 16; - continue main; - } - $ptr = 17; - continue main; - case 16: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, $par6, var$11); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, var$10))) { - $ptr = 18; - continue main; - } - $ptr = 19; - continue main; - case 17: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, $par5, var$11); - if ($rt_suspending()) { - break main; - } - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, var$10))) { - $ptr = 18; - continue main; - } - $ptr = 19; - continue main; - case 18: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, $par6, var$10); - if ($rt_suspending()) { - break main; - } - return; - case 19: - nms_BlockRedstoneWire_notifyWireNeighborsOfNeighborChange($this, $par1World, $par2, $par5, var$10); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, var$7, var$8, var$9, var$10, var$11, $ptr); -} -function nms_BlockRedstoneWire_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - if (nms_BlockRedstoneWire_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4)) { - $ptr = 2; - continue main; - } - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, 0, 1.0, 0); - var$6 = 0; - $par5 = 0; - $var6 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$6, $par5, $var6); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_BlockRedstoneWire_updateAndPropagateCurrentStrength($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, $var6, $ptr); -} -function nms_BlockRedstoneWire_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_redstone.$itemID; -} -function nms_BlockRedstoneWire_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $this.$wiresProvidePower ? nms_BlockRedstoneWire_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) : 0; -} -function nms_BlockRedstoneWire_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6, var$7, $var7, var$9, $var8, var$11, $var9, var$13, $var10, var$15; - if (!$this.$wiresProvidePower) - return 0; - $var6 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - if (!$var6) - return 0; - if ($par5 == 1) - return $var6; - a: { - b: { - var$7 = $par2 - 1 | 0; - if (!nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, var$7, $par3, $par4, 1)) { - if ($par1IBlockAccess.$isBlockNormalCube(var$7, $par3, $par4)) - break b; - if (!nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, var$7, $par3 - 1 | 0, $par4, (-1))) - break b; - } - $var7 = 1; - break a; - } - $var7 = 0; - } - c: { - d: { - var$9 = $par2 + 1 | 0; - if (!nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, var$9, $par3, $par4, 3)) { - if ($par1IBlockAccess.$isBlockNormalCube(var$9, $par3, $par4)) - break d; - if (!nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, var$9, $par3 - 1 | 0, $par4, (-1))) - break d; - } - $var8 = 1; - break c; - } - $var8 = 0; - } - e: { - f: { - var$11 = $par4 - 1 | 0; - if (!nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, $par2, $par3, var$11, 2)) { - if ($par1IBlockAccess.$isBlockNormalCube($par2, $par3, var$11)) - break f; - if (!nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, $par2, $par3 - 1 | 0, var$11, (-1))) - break f; - } - $var9 = 1; - break e; - } - $var9 = 0; - } - g: { - h: { - var$13 = $par4 + 1 | 0; - if (!nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, $par2, $par3, var$13, 0)) { - if ($par1IBlockAccess.$isBlockNormalCube($par2, $par3, var$13)) - break h; - if (!nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, $par2, $par3 - 1 | 0, var$13, (-1))) - break h; - } - $var10 = 1; - break g; - } - $var10 = 0; - } - var$15 = $par3 + 1 | 0; - if (!$par1IBlockAccess.$isBlockNormalCube($par2, var$15, $par4)) { - if ($par1IBlockAccess.$isBlockNormalCube(var$7, $par3, $par4) && nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, var$7, var$15, $par4, (-1))) - $var7 = 1; - if ($par1IBlockAccess.$isBlockNormalCube(var$9, $par3, $par4) && nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, var$9, var$15, $par4, (-1))) - $var8 = 1; - if ($par1IBlockAccess.$isBlockNormalCube($par2, $par3, var$11) && nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, $par2, var$15, var$11, (-1))) - $var9 = 1; - if ($par1IBlockAccess.$isBlockNormalCube($par2, $par3, var$13) && nms_BlockRedstoneWire_isPoweredOrRepeater($par1IBlockAccess, $par2, var$15, var$13, (-1))) - $var10 = 1; - } - if (!(!$var9 && !$var8 && !$var7 && !$var10 && $par5 >= 2 && $par5 <= 5) && !($par5 == 2 && $var9 && !$var7 && !$var8) && !($par5 == 3 && $var10 && !$var7 && !$var8) && !($par5 == 4 && $var7 && !$var9 && !$var10) && !($par5 == 5 && $var8 && !$var9 && !$var10)) - $var6 = 0; - return $var6; -} -function nms_BlockRedstoneWire_canProvidePower($this) { - return $this.$wiresProvidePower; -} -function nms_BlockRedstoneWire_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $var6, $var7, $var9, $var11, $var13, $var14, $var15, $var16, var$14, var$15, var$16, var$17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if ($var6 > 0) { - $var7 = $par2 + 0.5 + (Math.random() - 0.5) * 0.2; - $var9 = $par3 + 0.0625; - $var11 = $par4 + 0.5 + (Math.random() - 0.5) * 0.2; - $var13 = $var6 / 15.0; - $var14 = $var13 * 0.6000000238418579 + 0.4000000059604645; - if (!$var6) - $var14 = 0.0; - $var13 = $var13 * $var13; - $var15 = $var13 * 0.699999988079071 - 0.5; - $var16 = $var13 * 0.6000000238418579 - 0.699999988079071; - if ($var15 < 0.0) - $var15 = 0.0; - if ($var16 < 0.0) - $var16 = 0.0; - $par5Random = $rt_s(862); - var$14 = $var14; - var$15 = $var15; - var$16 = $var16; - $par3 = 0; - if ($par3 < $par1World.$worldAccesses.$size0) { - var$17 = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < var$17.$size0) { - var$17 = var$17.$array1.data[$par3]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$17, $par5Random, $var7, $var9, $var11, var$14, var$15, var$16); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 + 1 | 0; - if ($par3 >= $par1World.$worldAccesses.$size0) - return; - var$17 = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < var$17.$size0) { - var$17 = var$17.$array1.data[$par3]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $var6, $var7, $var9, $var11, $var13, $var14, $var15, $var16, var$14, var$15, var$16, var$17, $ptr); -} -function nms_BlockRedstoneWire_isPowerProviderOrWire($par0IBlockAccess, $par1, $par2, $par3, $par4) { - var $var5; - $var5 = $par0IBlockAccess.$getBlockId($par1, $par2, $par3); - nms_Block_$callClinit(); - if ($var5 == nms_Block_redstoneWire.$blockID) - return 1; - if (!$var5) - return 0; - if (!($var5 != nms_Block_redstoneRepeaterActive.$blockID && $var5 != nms_Block_redstoneRepeaterIdle.$blockID ? 0 : 1)) - return nms_Block_blocksList.data[$var5].$canProvidePower() && $par4 != (-1) ? 1 : 0; - $par1 = $par0IBlockAccess.$getBlockMetadata($par1, $par2, $par3) & 3; - return $par4 != $par1 && $par4 != nms_Direction_rotateOpposite.data[$par1] ? 0 : 1; -} -function nms_BlockRedstoneWire_isPoweredOrRepeater($par0IBlockAccess, $par1, $par2, $par3, $par4) { - var $var5; - if (nms_BlockRedstoneWire_isPowerProviderOrWire($par0IBlockAccess, $par1, $par2, $par3, $par4)) - return 1; - $var5 = $par0IBlockAccess.$getBlockId($par1, $par2, $par3); - nms_Block_$callClinit(); - if ($var5 != nms_Block_redstoneRepeaterActive.$blockID) - return 0; - return $par4 != ($par0IBlockAccess.$getBlockMetadata($par1, $par2, $par3) & 3) ? 0 : 1; -} -function nms_BlockRedstoneWire_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_redstone.$itemID; -} -function nms_BlockRedstoneWire_registerIcons($this, $par1IconRegister) { - $this.$field_94413_c = $par1IconRegister.$registerIcon($rt_s(615)); - $this.$field_94410_cO = $par1IconRegister.$registerIcon($rt_s(616)); - $this.$field_94411_cP = $par1IconRegister.$registerIcon($rt_s(617)); - $this.$field_94412_cQ = $par1IconRegister.$registerIcon($rt_s(618)); - $this.$blockIcon = $this.$field_94413_c; -} -function nms_BlockRedstoneWire_func_94409_b($par0Str) { - if ($par0Str === $rt_s(615)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_redstoneWire.$field_94413_c; - } else if ($par0Str === $rt_s(616)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_redstoneWire.$field_94410_cO; - } else if ($par0Str === $rt_s(617)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_redstoneWire.$field_94411_cP; - } else if ($par0Str !== $rt_s(618)) - $par0Str = null; - else { - nms_Block_$callClinit(); - $par0Str = nms_Block_redstoneWire.$field_94412_cQ; - } - return $par0Str; -} -function nms_BlockWorkbench() { - var a = this; nms_Block.call(a); - a.$workbenchIconTop = null; - a.$workbenchIconFront = null; -} -function nms_BlockWorkbench__init_(var_0) { - var var_1 = new nms_BlockWorkbench(); - nms_BlockWorkbench__init_0(var_1, var_0); - return var_1; -} -function nms_BlockWorkbench__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockWorkbench_getIcon($this, $par1, $par2) { - var var$3; - if ($par1 == 1) - var$3 = $this.$workbenchIconTop; - else if (!$par1) { - nms_Block_$callClinit(); - var$3 = nms_Block_planks.$getIcon($par1, 0); - } else - var$3 = $par1 != 2 && $par1 != 4 ? $this.$blockIcon : $this.$workbenchIconFront; - return var$3; -} -function nms_BlockWorkbench_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2073)); - $this.$workbenchIconTop = $par1IconRegister.$registerIcon($rt_s(2074)); - $this.$workbenchIconFront = $par1IconRegister.$registerIcon($rt_s(2075)); -} -function nms_BlockWorkbench_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - var$10 = $par5EntityPlayer.$mc3; - $par1World = new nms_GuiCrafting; - nms_GuiContainer__init_($par1World, nms_ContainerWorkbench__init_($par5EntityPlayer.$inventory, $par5EntityPlayer.$worldObj, $par2, $par3, $par4)); - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$10, $par1World); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, var$10, $ptr); -} -function nms_BlockCrops() { - nms_BlockFlower.call(this); - this.$iconArray7 = null; -} -function nms_BlockCrops__init_(var_0) { - var var_1 = new nms_BlockCrops(); - nms_BlockCrops__init_0(var_1, var_0); - return var_1; -} -function nms_BlockCrops__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_plants); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.699999988079071; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$needsRandomTick = 1; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.25; - $this.$maxZ0 = 1.0; - $this.$displayOnCreativeTab = null; - $this.$blockHardness = 0.0; - if ($this.$blockResistance < 0.0) - $this.$blockResistance = 0.0; - $this.$stepSound = nms_Block_soundGrassFootstep; - $this.$enableStats = 0; -} -function nms_BlockCrops_canThisPlantGrowOnThisBlockID($this, $par1) { - nms_Block_$callClinit(); - return $par1 != nms_Block_tilledField.$blockID ? 0 : 1; -} -function nms_BlockCrops_fertilize($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) + ((Math.random() * 4.0 | 0) + 2 | 0) | 0; - if ($var5 > 7) - $var5 = 7; - var$6 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var5, var$6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, var$6, $ptr); -} -function nms_BlockCrops_getIcon($this, $par1, $par2) { - if (!($par2 >= 0 && $par2 <= 7)) - $par2 = 7; - return $this.$iconArray7.data[$par2]; -} -function nms_BlockCrops_getRenderType($this) { - return 6; -} -function nms_BlockCrops_getSeedItem($this) { - nms_Item_$callClinit(); - return nms_Item_seeds.$itemID; -} -function nms_BlockCrops_getCropItem($this) { - nms_Item_$callClinit(); - return nms_Item_wheat.$itemID; -} -function nms_BlockCrops_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, var$10, var$11; - a: { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, 0); - if (!$par1World.$isRemote && $par5 >= 7) { - $var8 = 3 + $par7 | 0; - $var9 = 0; - while (true) { - if ($var9 >= $var8) - break a; - if ((Math.random() * 15.0 | 0) <= $par5) { - var$10 = new nms_ItemStack; - var$11 = $this.$getSeedItem(); - var$10.$stackSize = 0; - var$10.$itemFrame = null; - var$10.$itemID0 = var$11; - var$10.$stackSize = 1; - var$10.$itemDamage = 0; - if (var$10.$itemDamage < 0) - var$10.$itemDamage = 0; - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, var$10); - } - $var9 = $var9 + 1 | 0; - } - } - } -} -function nms_BlockCrops_idDropped($this, $par1, $par2Random, $par3) { - return $par1 != 7 ? $this.$getSeedItem() : $this.$getCropItem(); -} -function nms_BlockCrops_quantityDropped($this, $par1Random) { - return 1; -} -function nms_BlockCrops_idPicked($this, $par1World, $par2, $par3, $par4) { - return $this.$getSeedItem(); -} -function nms_BlockCrops_registerIcons($this, $par1IconRegister) { - var $var2, var$3, var$4; - $this.$iconArray7 = $rt_createArray(nms_Icon, 8); - $var2 = 0; - while ($var2 < $this.$iconArray7.data.length) { - var$3 = $this.$iconArray7.data; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2076)); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var2, 10); - var$3[$var2] = $par1IconRegister.$registerIcon(jl_String__init_0(var$4.$buffer, 0, var$4.$length)); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockFarmland() { - var a = this; nms_Block.call(a); - a.$field_94441_a = null; - a.$field_94440_b = null; -} -function nms_BlockFarmland__init_(var_0) { - var var_1 = new nms_BlockFarmland(); - nms_BlockFarmland__init_0(var_1, var_0); - return var_1; -} -function nms_BlockFarmland__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_ground); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.9375; - $this.$maxZ0 = 1.0; - nms_Block_lightOpacity.data[$this.$blockID] = 255; -} -function nms_BlockFarmland_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6; - var$5 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$5.$initialized) { - $par1World = new nms_AABBPool; - var$6 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$6); - var$6.$array1 = $rt_createArray(jl_Object, 10); - $par1World.$listAABB = var$6; - $par1World.$nextPoolIndex = 0; - $par1World.$maxPoolIndex = 0; - $par1World.$numCleans = 0; - $par1World.$maxNumCleans = 300; - $par1World.$numEntriesToRemove = 2000; - var$5.$value7 = $par1World; - var$5.$initialized = 1; - } - return nms_AABBPool_getAABB(var$5.$value7, $par2 + 0 | 0, $par3 + 0 | 0, $par4 + 0 | 0, $par2 + 1 | 0, $par3 + 1 | 0, $par4 + 1 | 0); -} -function nms_BlockFarmland_isOpaqueCube($this) { - return 0; -} -function nms_BlockFarmland_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockFarmland_getIcon($this, $par1, $par2) { - var var$3; - if ($par1 != 1) { - nms_Block_$callClinit(); - var$3 = nms_Block_dirt.$getIcon($par1, 0); - } else - var$3 = $par2 <= 0 ? $this.$field_94440_b : $this.$field_94441_a; - return var$3; -} -function nms_BlockFarmland_onFallenUpon($this, $par1World, $par2, $par3, $par4, $par5Entity, $par6) { - var 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();$par6 = $thread.pop();$par5Entity = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote && Math.random() < $par6 - 0.5) { - if (!($par5Entity instanceof nms_EntityPlayer) && !nms_GameRules_getGameRuleBooleanValue($par1World.$worldInfo.$theGameRules, $rt_s(701))) - return; - nms_Block_$callClinit(); - var$7 = nms_Block_dirt.$blockID; - var$8 = 0; - var$9 = 3; - $ptr = 1; - continue main; - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$7, var$8, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Entity, $par6, var$7, var$8, var$9, $ptr); -} -function nms_BlockFarmland_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par5 = nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4); - if (!$par5) { - nms_Material_$callClinit(); - $var6 = nms_Material_air; - } else { - nms_Block_$callClinit(); - $var6 = nms_Block_blocksList.data[$par5].$blockMaterial; - } - if (!$var6.$isSolid()) - return; - nms_Block_$callClinit(); - $par5 = nms_Block_dirt.$blockID; - var$7 = 0; - var$8 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$7, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, var$7, var$8, $ptr); -} -function nms_BlockFarmland_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_dirt.$idDropped(0, $par2Random, $par3); -} -function nms_BlockFarmland_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Block_$callClinit(); - return nms_Block_dirt.$blockID; -} -function nms_BlockFarmland_registerIcons($this, $par1IconRegister) { - $this.$field_94441_a = $par1IconRegister.$registerIcon($rt_s(2077)); - $this.$field_94440_b = $par1IconRegister.$registerIcon($rt_s(2078)); -} -function nms_BlockFurnace() { - var a = this; nms_BlockContainer.call(a); - a.$furnaceRand = null; - a.$isActive = 0; - a.$furnaceIconTop = null; - a.$furnaceIconFront = null; -} -var nms_BlockFurnace_keepFurnaceInventory = 0; -function nms_BlockFurnace__init_(var_0, var_1) { - var var_2 = new nms_BlockFurnace(); - nms_BlockFurnace__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockFurnace__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$isBlockContainer = 1; - $this.$furnaceRand = new ju_Random; - $this.$isActive = $par2; -} -function nms_BlockFurnace_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_furnaceIdle.$blockID; -} -function nms_BlockFurnace_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockFurnace_setDefaultDirection($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $ptr); -} -function nms_BlockFurnace_setDefaultDirection($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - $var5 = nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0); - $var6 = nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0); - $var7 = nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4); - $var8 = nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4); - $var9 = 3; - nms_Block_$callClinit(); - if (nms_Block_opaqueCubeLookup.data[$var5] && !nms_Block_opaqueCubeLookup.data[$var6]) - $var9 = 3; - if (nms_Block_opaqueCubeLookup.data[$var6] && !nms_Block_opaqueCubeLookup.data[$var5]) - $var9 = 2; - if (nms_Block_opaqueCubeLookup.data[$var7] && !nms_Block_opaqueCubeLookup.data[$var8]) - $var9 = 5; - if (nms_Block_opaqueCubeLookup.data[$var8] && !nms_Block_opaqueCubeLookup.data[$var7]) - $var9 = 4; - $var5 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var9, $var5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, $var7, $var8, $var9, $ptr); -} -function nms_BlockFurnace_getIcon($this, $par1, $par2) { - return $par1 == 1 ? $this.$furnaceIconTop : !$par1 ? $this.$furnaceIconTop : $par1 == $par2 ? $this.$furnaceIconFront : $this.$blockIcon; -} -function nms_BlockFurnace_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2027)); - $this.$furnaceIconFront = $par1IconRegister.$registerIcon(!$this.$isActive ? $rt_s(2079) : $rt_s(2080)); - $this.$furnaceIconTop = $par1IconRegister.$registerIcon($rt_s(2028)); -} -function nms_BlockFurnace_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $var6, $var7, $var8, $var9, $var11, var$11, var$12, var$13, var$14, var$15, var$16, var$17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($this.$isActive) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = $par2 + 0.5; - $var8 = $par3 + 0.0 + Math.random() * 6.0 / 16.0; - $var9 = $par4 + 0.5; - $var11 = Math.random() * 0.6000000238418579 - 0.30000001192092896; - if ($var6 == 4) { - $par5Random = $rt_s(852); - var$11 = $var7 - 0.5199999809265137; - var$12 = $var8; - var$13 = $var9 + $var11; - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - var$17 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$17.$size0) { - var$17 = var$17.$array1.data[$par2]; - $ptr = 5; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$17 = $rt_s(858); - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - $par3 = 0; - if ($par3 >= $par1World.$worldAccesses.$size0) - break a; - $par5Random = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par3]; - $ptr = 7; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - if ($var6 != 5) { - if ($var6 != 2) { - if ($var6 != 3) - break a; - $par5Random = $rt_s(852); - var$14 = $var7 + $var11; - var$15 = $var8; - var$16 = $var9 + 0.5199999809265137; - var$11 = 0.0; - var$12 = 0.0; - var$13 = 0.0; - $ptr = 1; - continue main; - } - $par5Random = $rt_s(852); - var$11 = $var7 + $var11; - var$12 = $var8; - var$13 = $var9 - 0.5199999809265137; - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) { - $par5Random = $rt_s(858); - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - $ptr = 3; - continue main; - } - var$17 = $par1World.$worldAccesses; - ju_ArrayList_checkIndex(var$17, $par2); - var$17 = var$17.$array1.data[$par2]; - $ptr = 4; - continue main; - } - $par5Random = $rt_s(852); - var$11 = $var7 + 0.5199999809265137; - var$12 = $var8; - var$13 = $var9 + $var11; - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - var$17 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$17.$size0) { - var$17 = var$17.$array1.data[$par2]; - $ptr = 6; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $par5Random = $rt_s(858); - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - var$17 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$17.$size0) { - var$17 = var$17.$array1.data[$par2]; - $ptr = 8; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - } - return; - case 1: - nms_World_spawnParticle($par1World, $par5Random, var$14, var$15, var$16, var$11, var$12, var$13); - if ($rt_suspending()) { - break main; - } - $par5Random = $rt_s(858); - var$11 = 0.0; - var$12 = 0.0; - var$13 = 0.0; - $ptr = 2; - case 2: - nms_World_spawnParticle($par1World, $par5Random, var$14, var$15, var$16, var$11, var$12, var$13); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_World_spawnParticle($par1World, $par5Random, var$11, var$12, var$13, var$14, var$15, var$16); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_RenderGlobal_doSpawnParticle(var$17, $par5Random, var$11, var$12, var$13, var$14, var$15, var$16); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) { - $par5Random = $rt_s(858); - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - $ptr = 3; - continue main; - } - var$17 = $par1World.$worldAccesses; - ju_ArrayList_checkIndex(var$17, $par2); - var$17 = var$17.$array1.data[$par2]; - continue main; - case 5: - nms_RenderGlobal_doSpawnParticle(var$17, $par5Random, var$11, var$12, var$13, var$14, var$15, var$16); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - var$17 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$17.$size0) { - var$17 = var$17.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$17 = $rt_s(858); - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - $par3 = 0; - if ($par3 >= $par1World.$worldAccesses.$size0) - return; - $par5Random = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par3]; - $ptr = 7; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 6: - nms_RenderGlobal_doSpawnParticle(var$17, $par5Random, var$11, var$12, var$13, var$14, var$15, var$16); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - var$17 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$17.$size0) { - var$17 = var$17.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $par5Random = $rt_s(858); - var$14 = 0.0; - var$15 = 0.0; - var$16 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$17 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$17.$size0) { - var$17 = var$17.$array1.data[$par2]; - $ptr = 8; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 7: - nms_RenderGlobal_doSpawnParticle($par5Random, var$17, var$11, var$12, var$13, var$14, var$15, var$16); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 + 1 | 0; - if ($par3 >= $par1World.$worldAccesses.$size0) - return; - $par5Random = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par3]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 8: - nms_RenderGlobal_doSpawnParticle(var$17, $par5Random, var$11, var$12, var$13, var$14, var$15, var$16); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$17 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$17.$size0) { - var$17 = var$17.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $var6, $var7, $var8, $var9, $var11, var$11, var$12, var$13, var$14, var$15, var$16, var$17, $ptr); -} -function nms_BlockFurnace_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var10 === null) - return 1; - var$11 = $par5EntityPlayer.$mc3; - $par1World = new nms_GuiFurnace; - nms_GuiContainer__init_($par1World, nms_ContainerFurnace__init_($par5EntityPlayer.$inventory, $var10)); - $par1World.$furnaceInventory = $var10; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$11, $par1World); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, var$11, $ptr); -} -function nms_BlockFurnace_updateFurnaceBlockState($par0, $par1World, $par2, $par3, $par4) { - var $var5, $var6, 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();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$par0 = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var6 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - nms_BlockFurnace_keepFurnaceInventory = 1; - if (!$par0) { - nms_Block_$callClinit(); - var$8 = nms_Block_furnaceIdle.$blockID; - $par0 = 0; - var$9 = 3; - $ptr = 1; - continue main; - } - nms_Block_$callClinit(); - var$8 = nms_Block_furnaceBurning.$blockID; - $par0 = 0; - var$9 = 3; - $ptr = 2; - continue main; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$8, $par0, var$9); - if ($rt_suspending()) { - break main; - } - nms_BlockFurnace_keepFurnaceInventory = 0; - $par0 = 2; - $ptr = 3; - continue main; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$8, $par0, var$9); - if ($rt_suspending()) { - break main; - } - nms_BlockFurnace_keepFurnaceInventory = 0; - $par0 = 2; - $ptr = 3; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var5, $par0); - if ($rt_suspending()) { - break main; - } - if ($var6 !== null) { - $var6.$tileEntityInvalid = 0; - nms_World_setBlockTileEntity($par1World, $par2, $par3, $par4, $var6); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0, $par1World, $par2, $par3, $par4, $var5, $var6, var$8, var$9, $ptr); -} -function nms_BlockFurnace_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityFurnace; - $par1World.$blockMetadata = (-1); - $par1World.$furnaceItemStacks = $rt_createArray(nms_ItemStack, 3); - $par1World.$furnaceBurnTime = 0; - $par1World.$currentItemBurnTime = 0; - $par1World.$furnaceCookTime = 0; - return $par1World; -} -function nms_BlockFurnace_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, var$8, $var7, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();$var7 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - var$8 = var$7 | 0; - if (var$7 < var$8) - var$8 = var$8 - 1 | 0; - $var7 = var$8 & 3; - if (!$var7) { - var$8 = 2; - var$10 = 2; - $ptr = 1; - continue main; - } - if ($var7 == 1) { - var$8 = 5; - var$10 = 2; - $ptr = 2; - continue main; - } - if ($var7 == 2) { - var$8 = 3; - var$10 = 2; - $ptr = 3; - continue main; - } - if ($var7 != 3) { - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94130_e = nms_ItemStack_getDisplayName($par6ItemStack); - return; - } - $var7 = 4; - var$8 = 2; - $ptr = 4; - continue main; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$8, var$10); - if ($rt_suspending()) { - break main; - } - if ($var7 == 1) { - var$8 = 5; - var$10 = 2; - $ptr = 2; - continue main; - } - if ($var7 == 2) { - var$8 = 3; - var$10 = 2; - $ptr = 3; - continue main; - } - if ($var7 != 3) { - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94130_e = nms_ItemStack_getDisplayName($par6ItemStack); - return; - } - $var7 = 4; - var$8 = 2; - $ptr = 4; - continue main; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$8, var$10); - if ($rt_suspending()) { - break main; - } - if ($var7 == 2) { - var$8 = 3; - var$10 = 2; - $ptr = 3; - continue main; - } - if ($var7 != 3) { - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94130_e = nms_ItemStack_getDisplayName($par6ItemStack); - return; - } - $var7 = 4; - var$8 = 2; - $ptr = 4; - continue main; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$8, var$10); - if ($rt_suspending()) { - break main; - } - if ($var7 != 3) { - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94130_e = nms_ItemStack_getDisplayName($par6ItemStack); - return; - } - $var7 = 4; - var$8 = 2; - $ptr = 4; - case 4: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, var$8); - if ($rt_suspending()) { - break main; - } - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94130_e = nms_ItemStack_getDisplayName($par6ItemStack); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, var$8, $var7, var$10, $ptr); -} -function nms_BlockFurnace_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, var$9, var$10, var$11, $var9, $var10, $var11, $var12, var$16, var$17, var$18, $var13, $var14, var$21, var$22, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_BlockFurnace_keepFurnaceInventory) { - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var7 !== null) { - $var8 = 0; - var$9 = $par2; - var$10 = $par3; - var$11 = $par4; - while ($var8 < $var7.$furnaceItemStacks.data.length) { - a: { - $var9 = $var7.$furnaceItemStacks.data[$var8]; - if ($var9 !== null) { - $var10 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var11 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var12 = Math.random() * 0.800000011920929 + 0.10000000149011612; - var$16 = var$9 + $var10; - var$17 = var$10 + $var11; - var$18 = var$11 + $var12; - while (true) { - if ($var9.$stackSize <= 0) - break a; - $var13 = (Math.random() * 21.0 | 0) + 10 | 0; - if ($var13 > $var9.$stackSize) - $var13 = $var9.$stackSize; - $var9.$stackSize = $var9.$stackSize - $var13 | 0; - $var14 = new nms_EntityItem; - var$21 = new nms_ItemStack; - var$22 = $var9.$itemID0; - var$23 = $var9.$itemDamage; - var$21.$stackSize = 0; - var$21.$itemFrame = null; - var$21.$itemID0 = var$22; - var$21.$stackSize = $var13; - var$21.$itemDamage = var$23; - if (var$21.$itemDamage < 0) - var$21.$itemDamage = 0; - nms_EntityItem__init_2($var14, $par1World, var$16, var$17, var$18); - nms_DataWatcher_updateObject($var14.$dataWatcher, 10, var$21); - nms_DataWatcher_setObjectWatched($var14.$dataWatcher, 10); - if ($var9.$stackTagCompound === null ? 0 : 1) - nms_EntityItem_getEntityItem($var14).$stackTagCompound = nms_NBTTagCompound_copy($var9.$stackTagCompound); - $var14.$motionX = ju_Random_nextGaussian($this.$furnaceRand) * 0.05000000074505806; - $var14.$motionY = ju_Random_nextGaussian($this.$furnaceRand) * 0.05000000074505806 + 0.20000000298023224; - $var14.$motionZ = ju_Random_nextGaussian($this.$furnaceRand) * 0.05000000074505806; - $par6 = nms_World_spawnEntityInWorld($par1World, $var14); - var$21 = $par1World.$entityList; - ju_HashMap_putImpl(var$21.$backingMap, $var14, var$21); - if (!$par6) { - var$21 = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl(var$21.$backingMap, $var14, var$21); - } - } - } - } - $var8 = $var8 + 1 | 0; - } - $ptr = 1; - continue main; - } - } - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - case 1: - nms_World_func_96440_m($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var8, var$9, var$10, var$11, $var9, $var10, $var11, $var12, var$16, var$17, var$18, $var13, $var14, var$21, var$22, var$23, $ptr); -} -function nms_BlockFurnace_hasComparatorInputOverride($this) { - return 1; -} -function nms_BlockFurnace_getComparatorInputOverride($this, $par1World, $par2, $par3, $par4, $par5) { - return nms_Container_calcRedstoneFromInventory(nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4)); -} -function nms_BlockFurnace_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Block_$callClinit(); - return nms_Block_furnaceIdle.$blockID; -} -function nms_BlockFurnace__clinit_() { - nms_BlockFurnace_keepFurnaceInventory = 0; -} -function nms_BlockSign() { - var a = this; nms_BlockContainer.call(a); - a.$signEntityClass = null; - a.$isFreestanding = 0; -} -function nms_BlockSign__init_(var_0, var_1, var_2) { - var var_3 = new nms_BlockSign(); - nms_BlockSign__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_BlockSign__init_0($this, $par1, $par2Class, $par3) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$isBlockContainer = 1; - $this.$isFreestanding = $par3; - $this.$signEntityClass = $par2Class; - $this.$minX0 = 0.25; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.25; - $this.$maxX0 = 0.75; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.75; -} -function nms_BlockSign_getIcon($this, $par1, $par2) { - nms_Block_$callClinit(); - return nms_Block_planks.$getIcon($par1, 0); -} -function nms_BlockSign_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockSign_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockSign_setBlockBoundsBasedOnState($this, $par1World, $par2, $par3, $par4); - return nms_Block_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockSign_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5; - if (!$this.$isFreestanding) { - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - if ($var5 == 2) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.28125; - $this.$minZ0 = 0.875; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.78125; - $this.$maxZ0 = 1.0; - } - if ($var5 == 3) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.28125; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.78125; - $this.$maxZ0 = 0.125; - } - if ($var5 == 4) { - $this.$minX0 = 0.875; - $this.$minY0 = 0.28125; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.78125; - $this.$maxZ0 = 1.0; - } - if ($var5 == 5) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.28125; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.125; - $this.$maxY0 = 0.78125; - $this.$maxZ0 = 1.0; - } - } -} -function nms_BlockSign_getRenderType($this) { - return (-1); -} -function nms_BlockSign_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockSign_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - return 1; -} -function nms_BlockSign_isOpaqueCube($this) { - return 0; -} -function nms_BlockSign_createNewTileEntity($this, $par1World) { - var $var3, $$je; - a: { - try { - $par1World = jl_Class_newInstance($this.$signEntityClass); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var3 = $$je; - break a; - } else { - throw $$e; - } - } - return $par1World; - } - $par1World = new jl_RuntimeException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $par1World.$cause = $var3; - $rt_throw($par1World); -} -function nms_BlockSign_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_sign.$itemID; -} -function nms_BlockSign_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, var$7, $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = 0; - if ($this.$isFreestanding) { - $par5 = nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4); - if (!$par5) { - nms_Material_$callClinit(); - var$7 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[$par5].$blockMaterial; - } - if (!var$7.$isSolid()) - $var6 = 1; - } else { - $var7 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var6 = 1; - if ($var7 == 2) { - $par5 = nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0); - if (!$par5) { - nms_Material_$callClinit(); - var$7 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[$par5].$blockMaterial; - } - if (var$7.$isSolid()) - $var6 = 0; - } - if ($var7 == 3) { - $par5 = nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0); - if (!$par5) { - nms_Material_$callClinit(); - var$7 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[$par5].$blockMaterial; - } - if (var$7.$isSolid()) - $var6 = 0; - } - if ($var7 == 4) { - $par5 = nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4); - if (!$par5) { - nms_Material_$callClinit(); - var$7 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[$par5].$blockMaterial; - } - if (var$7.$isSolid()) - $var6 = 0; - } - if ($var7 == 5) { - $par5 = nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4); - if (!$par5) { - nms_Material_$callClinit(); - var$7 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$7 = nms_Block_blocksList.data[$par5].$blockMaterial; - } - if (var$7.$isSolid()) - $var6 = 0; - } - } - if (!$var6) - return; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - $var6 = 0; - $var7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var6, $var7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, var$7, $var7, $ptr); -} -function nms_BlockSign_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_sign.$itemID; -} -function nms_BlockSign_registerIcons($this, $par1IconRegister) { - return; -} -function nms_TileEntity() { - var a = this; jl_Object.call(a); - a.$worldObj5 = null; - a.$xCoord0 = 0; - a.$yCoord0 = 0; - a.$zCoord0 = 0; - a.$tileEntityInvalid = 0; - a.$blockMetadata = 0; - a.$blockType0 = null; -} -var nms_TileEntity_nameToClassMap = null; -var nms_TileEntity_classToNameMap = null; -function nms_TileEntity__init_0() { - var var_0 = new nms_TileEntity(); - nms_TileEntity__init_(var_0); - return var_0; -} -function nms_TileEntity__init_($this) { - $this.$blockMetadata = (-1); -} -function nms_TileEntity_addMapping($par0Class, $par1Str) { - var var$3, var$4; - var$3 = nms_TileEntity_nameToClassMap; - if ($par1Str !== null) { - var$4 = jl_String_hashCode($par1Str); - var$3 = ju_HashMap_findNonNullKeyEntry(var$3, $par1Str, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - var$3 = var$3.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - if (!(var$3 === null ? 0 : 1)) { - ju_HashMap_putImpl(nms_TileEntity_nameToClassMap, $par1Str, $par0Class); - ju_HashMap_putImpl(nms_TileEntity_classToNameMap, $par0Class, $par1Str); - return; - } - $par0Class = new jl_IllegalArgumentException; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(2081)); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $par1Str); - $par1Str = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - $par0Class.$suppressionEnabled = 1; - $par0Class.$writableStackTrace = 1; - $par0Class.$message = $par1Str; - $rt_throw($par0Class); -} -function nms_TileEntity_getWorldObj($this) { - return $this.$worldObj5; -} -function nms_TileEntity_setWorldObj($this, $par1World) { - $this.$worldObj5 = $par1World; -} -function nms_TileEntity_func_70309_m($this) { - return $this.$worldObj5 === null ? 0 : 1; -} -function nms_TileEntity_readFromNBT($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1521)); - var$6 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5); - var$4 = (var$6 === null ? null : var$6.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1522)); - var$6 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5); - var$4 = (var$6 === null ? null : var$6.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) - var$4 = 0; - else { - $par1NBTTagCompound = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1523)); - $par1NBTTagCompound = ju_HashMap_findNonNullKeyEntry($par1NBTTagCompound, $rt_s(1523), var$5 & ($par1NBTTagCompound.$elementData.data.length - 1 | 0), var$5); - var$4 = ($par1NBTTagCompound === null ? null : $par1NBTTagCompound.$value0).$data2; - } - $this.$zCoord0 = var$4; -} -function nms_TileEntity_writeToNBT($this, $par1NBTTagCompound) { - var $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9; - $var2 = nms_TileEntity_classToNameMap; - var$3 = jl_Class_getClass($this.constructor); - if (var$3 !== null) { - var$4 = jl_Object_identity(var$3); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$3, var$4 & ($var2.$elementData.data.length - 1 | 0), var$4); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 !== null) { - var$5 = $par1NBTTagCompound.$tagMap; - var$6 = new nms_NBTTagString; - var$6.$name0 = $rt_s(1569); - var$6.$data4 = $var2; - ju_HashMap_putImpl(var$5, $rt_s(1569), var$6); - var$7 = $this.$xCoord0; - var$6 = $par1NBTTagCompound.$tagMap; - var$3 = new nms_NBTTagInt; - var$3.$name0 = $rt_s(1521); - var$3.$data2 = var$7; - ju_HashMap_putImpl(var$6, $rt_s(1521), var$3); - var$7 = $this.$yCoord0; - var$6 = $par1NBTTagCompound.$tagMap; - var$3 = new nms_NBTTagInt; - var$3.$name0 = $rt_s(1522); - var$3.$data2 = var$7; - ju_HashMap_putImpl(var$6, $rt_s(1522), var$3); - var$7 = $this.$zCoord0; - var$3 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagInt; - $par1NBTTagCompound.$name0 = $rt_s(1523); - $par1NBTTagCompound.$data2 = var$7; - ju_HashMap_putImpl(var$3, $rt_s(1523), $par1NBTTagCompound); - return; - } - $par1NBTTagCompound = new jl_RuntimeException; - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - var$5 = jl_Class_getClass($this.constructor); - var$8 = $var2.$length; - if (var$5 === null) - var$3 = $rt_s(47); - else { - var$9 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$9, 16); - var$6 = jl_Class_getClass(var$5.constructor); - if (var$6.$name === null) - var$6.$name = $rt_str(var$6.$platformClass.$meta.name); - var$3 = var$6.$name; - jl_StringBuilder_insert14(var$9, var$9.$length, var$3); - jl_StringBuilder_insert14(var$9, var$9.$length, $rt_s(1)); - var$3 = otci_IntegerUtil_toUnsignedLogRadixString(jl_Object_identity(var$5), 4); - jl_StringBuilder_insert14(var$9, var$9.$length, var$3); - var$3 = jl_String__init_0(var$9.$buffer, 0, var$9.$length); - } - jl_AbstractStringBuilder_insert($var2, var$8, var$3); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(2082)); - var$3 = jl_String__init_0($var2.$buffer, 0, $var2.$length); - $par1NBTTagCompound.$suppressionEnabled = 1; - $par1NBTTagCompound.$writableStackTrace = 1; - $par1NBTTagCompound.$message = var$3; - $rt_throw($par1NBTTagCompound); -} -function nms_TileEntity_updateEntity($this) { - return; -} -function nms_TileEntity_getBlockMetadata($this) { - if ($this.$blockMetadata == (-1)) - $this.$blockMetadata = nms_World_getBlockMetadata($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0); - return $this.$blockMetadata; -} -function nms_TileEntity_onInventoryChanged($this) { - var var$1, var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$worldObj5 !== null) { - $this.$blockMetadata = nms_World_getBlockMetadata($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0); - var$1 = $this.$worldObj5; - var$2 = $this.$xCoord0; - var$3 = $this.$yCoord0; - var$4 = $this.$zCoord0; - if (var$3 >= 0 && var$3 < 256 ? 1 : 0) { - var$3 = var$2 >> 4; - var$2 = var$4 >> 4; - nms_ChunkProviderClient_provideChunk(var$1.$chunkProvider, var$3, var$2).$setChunkModified(); - } - if (nms_TileEntity_getBlockType($this) !== null) { - var$1 = $this.$worldObj5; - var$2 = $this.$xCoord0; - var$3 = $this.$yCoord0; - var$4 = $this.$zCoord0; - var$5 = nms_TileEntity_getBlockType($this).$blockID; - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_World_func_96440_m(var$1, var$2, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $ptr); -} -function nms_TileEntity_getDistanceFrom($this, $par1, $par3, $par5) { - var $var7, $var9, $var11; - $var7 = $this.$xCoord0 + 0.5 - $par1; - $var9 = $this.$yCoord0 + 0.5 - $par3; - $var11 = $this.$zCoord0 + 0.5 - $par5; - return $var7 * $var7 + $var9 * $var9 + $var11 * $var11; -} -function nms_TileEntity_getMaxRenderDistanceSquared($this) { - return 4096.0; -} -function nms_TileEntity_getBlockType($this) { - if ($this.$blockType0 === null) { - nms_Block_$callClinit(); - $this.$blockType0 = nms_Block_blocksList.data[nms_World_getBlockId($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0)]; - } - return $this.$blockType0; -} -function nms_TileEntity_isInvalid($this) { - return $this.$tileEntityInvalid; -} -function nms_TileEntity_invalidate($this) { - $this.$tileEntityInvalid = 1; -} -function nms_TileEntity_validate($this) { - $this.$tileEntityInvalid = 0; -} -function nms_TileEntity_receiveClientEvent($this, $par1, $par2) { - return 0; -} -function nms_TileEntity_updateContainingBlockInfo($this) { - $this.$blockType0 = null; - $this.$blockMetadata = (-1); -} -function nms_TileEntity__clinit_() { - nms_TileEntity_nameToClassMap = ju_HashMap__init_1(16, 0.75); - nms_TileEntity_classToNameMap = ju_HashMap__init_1(16, 0.75); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityFurnace), $rt_s(2083)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityChest), $rt_s(2084)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityEnderChest), $rt_s(2085)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityRecordPlayer), $rt_s(2086)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityDispenser), $rt_s(2087)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityDropper), $rt_s(2088)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntitySign), $rt_s(2089)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityMobSpawner), $rt_s(2090)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityNote), $rt_s(2091)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityPiston), $rt_s(2092)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityBrewingStand), $rt_s(2093)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityEnchantmentTable), $rt_s(2094)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityEndPortal), $rt_s(2095)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityCommandBlock), $rt_s(2096)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityBeacon), $rt_s(2097)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntitySkull), $rt_s(2098)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityDaylightDetector), $rt_s(2099)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityHopper), $rt_s(2100)); - nms_TileEntity_addMapping($rt_cls(nms_TileEntityComparator), $rt_s(2101)); -} -function nms_TileEntitySign() { - var a = this; nms_TileEntity.call(a); - a.$signText = null; - a.$lineBeingEdited = 0; - a.$isEditable = 0; -} -function nms_TileEntitySign__init_0() { - var var_0 = new nms_TileEntitySign(); - nms_TileEntitySign__init_(var_0); - return var_0; -} -function nms_TileEntitySign__init_($this) { - var var$1, var$2; - $this.$blockMetadata = (-1); - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(44); - var$2[1] = $rt_s(44); - var$2[2] = $rt_s(44); - var$2[3] = $rt_s(44); - $this.$signText = var$1; - $this.$lineBeingEdited = (-1); - $this.$isEditable = 1; -} -function nms_TileEntitySign_writeToNBT($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - var$2 = $this.$signText.data[0]; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagString; - var$4.$name0 = $rt_s(2102); - 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(2102), var$4); - var$2 = $this.$signText.data[1]; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagString; - var$4.$name0 = $rt_s(2103); - 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(2103), var$4); - var$2 = $this.$signText.data[2]; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagString; - var$4.$name0 = $rt_s(2104); - 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(2104), var$4); - var$2 = $this.$signText.data[3]; - var$4 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagString; - $par1NBTTagCompound.$name0 = $rt_s(2105); - $par1NBTTagCompound.$data4 = var$2; - if (var$2 !== null) { - ju_HashMap_putImpl(var$4, $rt_s(2105), $par1NBTTagCompound); - return; - } - var$5 = new jl_IllegalArgumentException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - var$5.$message = $rt_s(264); - $rt_throw(var$5); -} -function nms_TileEntitySign_readFromNBT($this, $par1NBTTagCompound) { - var $var2, var$3, var$4, $var2_0, var$6, var$7, var$8; - $this.$isEditable = 0; - nms_TileEntity_readFromNBT($this, $par1NBTTagCompound); - $var2 = 0; - while ($var2 < 4) { - var$3 = $this.$signText; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2106)); - $var2_0 = $var2 + 1 | 0; - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var2_0, 10); - var$6 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - var$4 = $par1NBTTagCompound.$tagMap; - var$7 = jl_String_hashCode(var$6); - if (!(ju_HashMap_findNonNullKeyEntry(var$4, var$6, var$7 & (var$4.$elementData.data.length - 1 | 0), var$7) === null ? 0 : 1)) - var$4 = $rt_s(44); - else { - var$4 = $par1NBTTagCompound.$tagMap; - var$8 = jl_String_hashCode(var$6); - var$4 = ju_HashMap_findNonNullKeyEntry(var$4, var$6, var$8 & (var$4.$elementData.data.length - 1 | 0), var$8); - var$4 = (var$4 === null ? null : var$4.$value0).$data4; - } - var$3.data[$var2] = var$4; - if ($this.$signText.data[$var2].$characters.data.length > 15) { - var$3 = $this.$signText.data; - var$4 = $this.$signText.data[$var2]; - var$3[$var2] = jl_String__init_0(var$4.$characters, 0, 15); - } - $var2 = $var2_0; - } -} -function nms_TileEntitySign_isEditable($this) { - return $this.$isEditable; -} -function nms_TileEntitySign_setEditable($this, $par1) { - $this.$isEditable = $par1; -} -function nms_BlockDoor() { - var a = this; nms_Block.call(a); - a.$doorTypeForIcon = 0; - a.$iconArray8 = null; -} -var nms_BlockDoor_doorIconNames = null; -function nms_BlockDoor__init_(var_0, var_1) { - var var_2 = new nms_BlockDoor(); - nms_BlockDoor__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockDoor__init_0($this, $par1, $par2Material) { - nms_Block__init_0($this, $par1, $par2Material); - nms_Material_$callClinit(); - if ($par2Material !== nms_Material_iron) - $this.$doorTypeForIcon = 0; - else - $this.$doorTypeForIcon = 2; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; -} -function nms_BlockDoor_getIcon($this, $par1, $par2) { - return $this.$iconArray8.data[$this.$doorTypeForIcon]; -} -function nms_BlockDoor_getBlockTexture($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $var9, $var10, var$11; - if ($par5 != 1 && $par5) { - $var6 = nms_BlockDoor_getFullMetadata($this, $par1IBlockAccess, $par2, $par3, $par4); - $var7 = $var6 & 3; - $var8 = !($var6 & 4) ? 0 : 1; - $var9 = 0; - $var10 = !($var6 & 8) ? 0 : 1; - if ($var8) { - if (!$var7 && $par5 == 2) - $var9 = 1; - else if ($var7 == 1 && $par5 == 5) - $var9 = 1; - else if ($var7 == 2 && $par5 == 3) - $var9 = 1; - else if ($var7 == 3 && $par5 == 4) - $var9 = 1; - } else { - if (!$var7 && $par5 == 5) - $var9 = 1; - else if ($var7 == 1 && $par5 == 3) - $var9 = 1; - else if ($var7 == 2 && $par5 == 4) - $var9 = 1; - else if ($var7 == 3 && $par5 == 2) - $var9 = 1; - if ($var6 & 16) - $var9 = $var9 ? 0 : 1; - } - var$11 = $this.$iconArray8; - $par2 = $this.$doorTypeForIcon + (!$var9 ? 0 : nms_BlockDoor_doorIconNames.data.length) | 0; - $par3 = !$var10 ? 0 : 1; - return var$11.data[$par2 + $par3 | 0]; - } - return $this.$iconArray8.data[$this.$doorTypeForIcon]; -} -function nms_BlockDoor_registerIcons($this, $par1IconRegister) { - var $var2, var$3, var$4, var$5; - $this.$iconArray8 = $rt_createArray(nms_Icon, nms_BlockDoor_doorIconNames.data.length * 2 | 0); - $var2 = 0; - while ($var2 < nms_BlockDoor_doorIconNames.data.length) { - $this.$iconArray8.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockDoor_doorIconNames.data[$var2]); - var$3 = $this.$iconArray8.data; - var$4 = $var2 + nms_BlockDoor_doorIconNames.data.length | 0; - var$5 = new nms_IconFlipped; - var$5.$baseIcon = $this.$iconArray8.data[$var2]; - var$5.$flipU = 1; - var$5.$flipV = 0; - var$3[var$4] = var$5; - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockDoor_isOpaqueCube($this) { - return 0; -} -function nms_BlockDoor_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - return !(nms_BlockDoor_getFullMetadata($this, $par1IBlockAccess, $par2, $par3, $par4) & 4) ? 0 : 1; -} -function nms_BlockDoor_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockDoor_getRenderType($this) { - return 7; -} -function nms_BlockDoor_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockDoor_setDoorRotation($this, nms_BlockDoor_getFullMetadata($this, $par1World, $par2, $par3, $par4)); - return nms_Block_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockDoor_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockDoor_setDoorRotation($this, nms_BlockDoor_getFullMetadata($this, $par1World, $par2, $par3, $par4)); - return nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockDoor_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - nms_BlockDoor_setDoorRotation($this, nms_BlockDoor_getFullMetadata($this, $par1IBlockAccess, $par2, $par3, $par4)); -} -function nms_BlockDoor_setDoorRotation($this, $par1) { - var $var3, $var4, $var5; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 2.0; - $this.$maxZ0 = 1.0; - $var3 = $par1 & 3; - $var4 = !($par1 & 4) ? 0 : 1; - $var5 = !($par1 & 16) ? 0 : 1; - if (!$var3) { - if (!$var4) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.1875; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else if ($var5) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.8125; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.1875; - } - } else if ($var3 == 1) { - if (!$var4) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.1875; - } else if ($var5) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.1875; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.8125; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } - } else if ($var3 == 2) { - if (!$var4) { - $this.$minX0 = 0.8125; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else if ($var5) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.1875; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.8125; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } - } else if ($var3 == 3) { - if (!$var4) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.8125; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else if ($var5) { - $this.$minX0 = 0.8125; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.1875; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } - } -} -function nms_BlockDoor_onBlockClicked($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - return; -} -function nms_BlockDoor_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var var$10, $var10, $var11, var$13, var$14, var$15, var$16, var$17, var$18, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();var$10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$10 = $this.$blockMaterial; - nms_Material_$callClinit(); - if (var$10 === nms_Material_iron) - return 1; - $var10 = nms_BlockDoor_getFullMetadata($this, $par1World, $par2, $par3, $par4); - $var11 = $var10 & 7 ^ 4; - if (!($var10 & 8)) { - $par6 = 2; - $ptr = 2; - continue main; - } - $var10 = $par3 - 1 | 0; - $par6 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $var10, $par4, $var11, $par6); - if ($rt_suspending()) { - break main; - } - $par6 = 0; - $var11 = $par2 - 1 | 0; - var$13 = $var10 - 1 | 0; - var$14 = $par4 - 1 | 0; - var$15 = $par2 + 1 | 0; - var$16 = $par3 + 1 | 0; - var$17 = $par4 + 1 | 0; - while (true) { - if ($par6 >= $par1World.$worldAccesses.$size0) { - $par6 = 1003; - $var10 = 0; - $var11 = 0; - if ($var11 >= $par1World.$worldAccesses.$size0) - return 1; - var$18 = $par1World.$worldAccesses; - if ($var11 >= 0 && $var11 < var$18.$size0) { - var$18 = var$18.$array1.data[$var11]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$18 = $par1World.$worldAccesses; - if ($par6 < 0) - break; - if ($par6 >= var$18.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate(var$18.$array1.data[$par6], $var11, var$13, var$14, var$15, var$16, var$17); - $par6 = $par6 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var11, $par6); - if ($rt_suspending()) { - break main; - } - $par6 = 0; - $var11 = $par2 - 1 | 0; - var$13 = $par3 - 1 | 0; - var$15 = $par4 - 1 | 0; - var$16 = $par2 + 1 | 0; - var$17 = $par3 + 1 | 0; - var$14 = $par4 + 1 | 0; - while (true) { - if ($par6 >= $par1World.$worldAccesses.$size0) { - $par6 = 1003; - $var10 = 0; - $var11 = 0; - if ($var11 >= $par1World.$worldAccesses.$size0) - return 1; - var$18 = $par1World.$worldAccesses; - if ($var11 >= 0 && $var11 < var$18.$size0) { - var$18 = var$18.$array1.data[$var11]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$18 = $par1World.$worldAccesses; - if ($par6 < 0) - break; - if ($par6 >= var$18.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate(var$18.$array1.data[$par6], $var11, var$13, var$15, var$16, var$17, var$14); - $par6 = $par6 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 3: - nms_RenderGlobal_playAuxSFX(var$18, $par5EntityPlayer, $par6, $par2, $par3, $par4, $var10); - if ($rt_suspending()) { - break main; - } - $var11 = $var11 + 1 | 0; - if ($var11 >= $par1World.$worldAccesses.$size0) - return 1; - var$18 = $par1World.$worldAccesses; - if ($var11 >= 0 && $var11 < var$18.$size0) { - var$18 = var$18.$array1.data[$var11]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, var$10, $var10, $var11, var$13, var$14, var$15, var$16, var$17, var$18, $ptr); -} -function nms_BlockDoor_onPoweredBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, var$9, var$10, var$11, var$12, var$13, var$14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_BlockDoor_getFullMetadata($this, $par1World, $par2, $par3, $par4); - if ((!($var6 & 4) ? 0 : 1) == $par5) - return; - $var7 = $var6 & 7 ^ 4; - if (!($var6 & 8)) { - $par5 = 2; - $ptr = 2; - continue main; - } - $var6 = $par3 - 1 | 0; - $par5 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $var6, $par4, $var7, $par5); - if ($rt_suspending()) { - break main; - } - $par5 = 0; - $var7 = $par2 - 1 | 0; - $var8 = $var6 - 1 | 0; - var$9 = $par4 - 1 | 0; - var$10 = $par2 + 1 | 0; - var$11 = $par3 + 1 | 0; - var$12 = $par4 + 1 | 0; - while (true) { - if ($par5 >= $par1World.$worldAccesses.$size0) { - var$13 = null; - $var7 = 1003; - $var8 = 0; - $par5 = 0; - if ($par5 >= $par1World.$worldAccesses.$size0) - return; - var$14 = $par1World.$worldAccesses; - if ($par5 >= 0 && $par5 < var$14.$size0) { - var$14 = var$14.$array1.data[$par5]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$14 = $par1World.$worldAccesses; - if ($par5 < 0) - break; - if ($par5 >= var$14.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate(var$14.$array1.data[$par5], $var7, $var8, var$9, var$10, var$11, var$12); - $par5 = $par5 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, $par5); - if ($rt_suspending()) { - break main; - } - $par5 = 0; - $var7 = $par2 - 1 | 0; - $var8 = $par3 - 1 | 0; - var$10 = $par4 - 1 | 0; - var$11 = $par2 + 1 | 0; - var$12 = $par3 + 1 | 0; - var$9 = $par4 + 1 | 0; - while (true) { - if ($par5 >= $par1World.$worldAccesses.$size0) { - var$13 = null; - $var7 = 1003; - $var8 = 0; - $par5 = 0; - if ($par5 >= $par1World.$worldAccesses.$size0) - return; - var$14 = $par1World.$worldAccesses; - if ($par5 >= 0 && $par5 < var$14.$size0) { - var$14 = var$14.$array1.data[$par5]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - var$14 = $par1World.$worldAccesses; - if ($par5 < 0) - break; - if ($par5 >= var$14.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate(var$14.$array1.data[$par5], $var7, $var8, var$10, var$11, var$12, var$9); - $par5 = $par5 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 3: - nms_RenderGlobal_playAuxSFX(var$14, var$13, $var7, $par2, $par3, $par4, $var8); - if ($rt_suspending()) { - break main; - } - $par5 = $par5 + 1 | 0; - if ($par5 >= $par1World.$worldAccesses.$size0) - return; - var$14 = $par1World.$worldAccesses; - if ($par5 >= 0 && $par5 < var$14.$size0) { - var$14 = var$14.$array1.data[$par5]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $var8, var$9, var$10, var$11, var$12, var$13, var$14, $ptr); -} -function nms_BlockDoor_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, 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();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if ($var6 & 8) { - $var7 = $par3 - 1 | 0; - if (nms_World_getBlockId($par1World, $par2, $var7, $par4) != $this.$blockID) { - $var8 = 0; - var$9 = 0; - var$10 = 3; - $ptr = 1; - continue main; - } - if ($par5 <= 0) - break a; - if ($par5 == $this.$blockID) - break a; - $ptr = 3; - continue main; - } - $var7 = 0; - $var8 = $par3 + 1 | 0; - if (nms_World_getBlockId($par1World, $par2, $var8, $par4) != $this.$blockID) { - $var7 = 0; - var$9 = 0; - var$10 = 3; - $ptr = 2; - continue main; - } - var$10 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$10, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$10, $par4))) { - $var7 = 0; - var$9 = 0; - var$10 = 3; - $ptr = 4; - continue main; - } - b: { - if (!$var7) { - $var8 = !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4) && !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $var8, $par4) ? 0 : 1; - if (!$var8) { - if ($par5 <= 0) - break b; - if (!nms_Block_blocksList.data[$par5].$canProvidePower()) - break b; - } - if ($par5 != $this.$blockID) { - $ptr = 6; - continue main; - } - } else if (!$par1World.$isRemote) - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - } - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $var8, var$9, var$10); - if ($rt_suspending()) { - break main; - } - if ($par5 > 0 && $par5 != $this.$blockID) { - $ptr = 3; - continue main; - } - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $var7, var$9, var$10); - if ($rt_suspending()) { - break main; - } - $var7 = 1; - var$10 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$10, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$10, $par4))) { - $var7 = 0; - var$9 = 0; - var$10 = 3; - $ptr = 4; - continue main; - } - c: { - if (!$var7) { - $var8 = !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4) && !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $var8, $par4) ? 0 : 1; - if (!$var8) { - if ($par5 <= 0) - break c; - if (!nms_Block_blocksList.data[$par5].$canProvidePower()) - break c; - } - if ($par5 != $this.$blockID) { - $ptr = 6; - continue main; - } - } else if (!$par1World.$isRemote) - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - } - return; - case 3: - nms_BlockDoor_onNeighborBlockChange($this, $par1World, $par2, $var7, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_World_setBlock($par1World, $par2, $par3, $par4, $var7, var$9, var$10); - if ($rt_suspending()) { - break main; - } - $var7 = 1; - if (nms_World_getBlockId($par1World, $par2, $var8, $par4) == $this.$blockID) { - var$11 = 0; - var$9 = 0; - var$10 = 3; - $ptr = 5; - continue main; - } - c: { - if (!$var7) { - $var8 = !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4) && !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $var8, $par4) ? 0 : 1; - if (!$var8) { - if ($par5 <= 0) - break c; - if (!nms_Block_blocksList.data[$par5].$canProvidePower()) - break c; - } - if ($par5 != $this.$blockID) { - $ptr = 6; - continue main; - } - } else if (!$par1World.$isRemote) - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - } - return; - case 5: - nms_World_setBlock($par1World, $par2, $var8, $par4, var$11, var$9, var$10); - if ($rt_suspending()) { - break main; - } - a: { - if (!$var7) { - $var8 = !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4) && !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $var8, $par4) ? 0 : 1; - if (!$var8) { - if ($par5 <= 0) - break a; - if (!nms_Block_blocksList.data[$par5].$canProvidePower()) - break a; - } - if ($par5 != $this.$blockID) { - $ptr = 6; - continue main; - } - } else if (!$par1World.$isRemote) - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - } - return; - case 6: - nms_BlockDoor_onPoweredBlockChange($this, $par1World, $par2, $par3, $par4, $var8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $var8, var$9, var$10, var$11, $ptr); -} -function nms_BlockDoor_idDropped($this, $par1, $par2Random, $par3) { - if ($par1 & 8) - $par1 = 0; - else { - $par2Random = $this.$blockMaterial; - nms_Material_$callClinit(); - if ($par2Random !== nms_Material_iron) { - nms_Item_$callClinit(); - $par1 = nms_Item_doorWood.$itemID; - } else { - nms_Item_$callClinit(); - $par1 = nms_Item_doorIron.$itemID; - } - } - return $par1; -} -function nms_BlockDoor_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3) { - nms_BlockDoor_setDoorRotation($this, nms_BlockDoor_getFullMetadata($this, $par1World, $par2, $par3, $par4)); - return nms_Block_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3); -} -function nms_BlockDoor_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5; - a: { - if ($par3 >= 255) - $par2 = 0; - else { - var$5 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$5, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$5, $par4))) { - var$5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - if (var$5 && !nms_Block_blocksList.data[var$5].$blockMaterial.$replaceable ? 0 : 1) { - $par2 = nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4); - if ($par2 && !nms_Block_blocksList.data[$par2].$blockMaterial.$replaceable ? 0 : 1) { - $par2 = 1; - break a; - } - } - } - $par2 = 0; - } - } - return $par2; -} -function nms_BlockDoor_getMobilityFlag($this) { - return 1; -} -function nms_BlockDoor_getFullMetadata($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var8, $var7, $var9; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - $var6 = !($var5 & 8) ? 0 : 1; - if (!$var6) - $var8 = $par1IBlockAccess.$getBlockMetadata($par2, $par3 + 1 | 0, $par4); - else { - $var7 = $par1IBlockAccess.$getBlockMetadata($par2, $par3 - 1 | 0, $par4); - $var8 = $var5; - $var5 = $var7; - } - $var9 = !($var8 & 1) ? 0 : 1; - return $var5 & 7 | (!$var6 ? 0 : 8) | (!$var9 ? 0 : 16); -} -function nms_BlockDoor_idPicked($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = $this.$blockMaterial; - nms_Material_$callClinit(); - if (var$5 !== nms_Material_iron) { - nms_Item_$callClinit(); - $par2 = nms_Item_doorWood.$itemID; - } else { - nms_Item_$callClinit(); - $par2 = nms_Item_doorIron.$itemID; - } - return $par2; -} -function nms_BlockDoor__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(2107); - var$2[1] = $rt_s(2108); - var$2[2] = $rt_s(2109); - var$2[3] = $rt_s(2110); - nms_BlockDoor_doorIconNames = var$1; -} -function nms_BlockLadder() { - nms_Block.call(this); -} -function nms_BlockLadder__init_(var_0) { - var var_1 = new nms_BlockLadder(); - nms_BlockLadder__init_0(var_1, var_0); - return var_1; -} -function nms_BlockLadder__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockLadder_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockLadder_updateLadderBounds($this, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); - return nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockLadder_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockLadder_updateLadderBounds($this, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); - return nms_Block_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockLadder_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - nms_BlockLadder_updateLadderBounds($this, $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4)); -} -function nms_BlockLadder_updateLadderBounds($this, $par1) { - if ($par1 == 2) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.875; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } - if ($par1 == 3) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.125; - } - if ($par1 == 4) { - $this.$minX0 = 0.875; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } - if ($par1 == 5) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.125; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockLadder_isOpaqueCube($this) { - return 0; -} -function nms_BlockLadder_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockLadder_getRenderType($this) { - return 8; -} -function nms_BlockLadder_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - return nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)); -} -function nms_BlockLadder_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - if (!($par9 && $par5 != 2) && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0))) - $par9 = 2; - if (!($par9 && $par5 != 3) && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0))) - $par9 = 3; - if (!($par9 && $par5 != 4) && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4))) - $par9 = 4; - if (!($par9 && $par5 != 5) && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4))) - $par9 = 5; - return $par9; -} -function nms_BlockLadder_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = 0; - if ($var6 == 2 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0))) - $var7 = 1; - if ($var6 == 3 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0))) - $var7 = 1; - if ($var6 == 4 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4))) - $var7 = 1; - if ($var6 == 5 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4))) - $var7 = 1; - if ($var7) - return; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - $par5 = 0; - $var6 = 0; - $var7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var6, $var7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $ptr); -} -function nms_BlockLadder_quantityDropped($this, $par1Random) { - return 1; -} -function nms_BlockRail() { - nms_BlockRailBase.call(this); - this.$theIcon8 = null; -} -function nms_BlockRail__init_(var_0) { - var var_1 = new nms_BlockRail(); - nms_BlockRail__init_0(var_1, var_0); - return var_1; -} -function nms_BlockRail__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$isPowered = 0; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.125; - $this.$maxZ0 = 1.0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabTransport; -} -function nms_BlockRail_getIcon($this, $par1, $par2) { - return $par2 < 6 ? $this.$blockIcon : $this.$theIcon8; -} -function nms_BlockRail_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$unlocalizedName0); - $this.$theIcon8 = $par1IconRegister.$registerIcon($rt_s(2111)); -} -function nms_BlockRail_func_94358_a($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par7 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$par7].$canProvidePower() && nms_BlockBaseRailLogic_getNumberOfAdjacentTracks(nms_BlockBaseRailLogic__init_($this, $par1World, $par2, $par3, $par4)) == 3) { - $par5 = 0; - if (!$par1World.$isRemote) { - var$8 = nms_BlockBaseRailLogic__init_($this, $par1World, $par2, $par3, $par4); - $par2 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4); - $ptr = 1; - continue main; - } - } - } - return; - case 1: - nms_BlockBaseRailLogic_func_94511_a(var$8, $par2, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, var$8, $ptr); -} -function nms_BlockLever() { - nms_Block.call(this); -} -function nms_BlockLever__init_(var_0) { - var var_1 = new nms_BlockLever(); - nms_BlockLever__init_0(var_1, var_0); - return var_1; -} -function nms_BlockLever__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockLever_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockLever_isOpaqueCube($this) { - return 0; -} -function nms_BlockLever_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockLever_getRenderType($this) { - return 12; -} -function nms_BlockLever_canPlaceBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6; - a: { - if (!$par5 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4))) - $par2 = 1; - else { - if ($par5 == 1) { - var$6 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$6, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$6, $par4))) { - $par2 = 1; - break a; - } - } - if ($par5 == 2 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0))) - $par2 = 1; - else if ($par5 == 3 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0))) - $par2 = 1; - else if ($par5 == 4 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4))) - $par2 = 1; - else if ($par5 == 5 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4))) - $par2 = 1; - else - $par2 = 0; - } - } - return $par2; -} -function nms_BlockLever_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5; - if (nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4))) - $par2 = 1; - else if (nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4))) - $par2 = 1; - else if (nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0))) - $par2 = 1; - else if (nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0))) - $par2 = 1; - else { - var$5 = $par3 - 1 | 0; - $par2 = nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$5, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$5, $par4)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4)); - } - return $par2; -} -function nms_BlockLever_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var $var11, $var12, var$12; - $var11 = $par9 & 8; - $var12 = (-1); - if (!$par5 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4))) - $var12 = 0; - if ($par5 == 1) { - var$12 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$12, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$12, $par4))) - $var12 = 5; - } - if ($par5 == 2 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0))) - $var12 = 4; - if ($par5 == 3 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0))) - $var12 = 3; - if ($par5 == 4 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4))) - $var12 = 2; - if ($par5 == 5 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4))) - $var12 = 1; - return $var12 + $var11 | 0; -} -function nms_BlockLever_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var $var7, $var8, $var9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var7 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var8 = $var7 & 7; - $var9 = $var7 & 8; - switch (1) { - case 0: - break; - case 1: - $var7 = 5; - break a; - case 2: - $var7 = 4; - break a; - case 3: - $var7 = 3; - break a; - case 4: - $var7 = 2; - break a; - case 5: - $var7 = 1; - break a; - default: - $var7 = (-1); - break a; - } - $var7 = 0; - } - if ($var8 == $var7) { - var$10 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - $var8 = var$10 | 0; - if (var$10 < $var8) - $var8 = $var8 - 1 | 0; - if ($var8 & 1) { - $var7 = 6 | $var9; - $var8 = 2; - $ptr = 1; - continue main; - } - $var7 = 5 | $var9; - $var8 = 2; - $ptr = 2; - continue main; - } - b: { - switch (0) { - case 0: - break; - case 1: - $var7 = 5; - break b; - case 2: - $var7 = 4; - break b; - case 3: - $var7 = 3; - break b; - case 4: - $var7 = 2; - break b; - case 5: - $var7 = 1; - break b; - default: - $var7 = (-1); - break b; - } - $var7 = 0; - } - if ($var8 != $var7) - return; - var$10 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - $var8 = var$10 | 0; - if (var$10 < $var8) - $var8 = $var8 - 1 | 0; - if ($var8 & 1) { - $var7 = 0 | $var9; - $var8 = 2; - $ptr = 3; - continue main; - } - $var7 = 7 | $var9; - $var8 = 2; - $ptr = 4; - continue main; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, $var8); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, $var8); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, $var8); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, $var8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, $var7, $var8, $var9, var$10, $ptr); -} -function nms_BlockLever_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, $var6, $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_BlockLever_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4)) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - var$6 = 0; - $var6 = 3; - $ptr = 1; - continue main; - } - if (1) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 7; - $var7 = 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) && $var6 == 1) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) && $var6 == 2) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) && $var6 == 3) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) && $var6 == 4) - $var7 = 1; - $par5 = $par3 - 1 | 0; - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par5, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par5, $par4)) && $var6 == 5) - $var7 = 1; - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par5, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par5, $par4)) && $var6 == 6) - $var7 = 1; - $par5 = $par3 + 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par5, $par4)) && !$var6) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par5, $par4)) && $var6 == 7) - $var7 = 1; - if ($var7) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - var$6 = 0; - $var6 = 3; - $ptr = 2; - continue main; - } - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$6, $var6); - if ($rt_suspending()) { - break main; - } - if (0) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 7; - $var7 = 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) && $var6 == 1) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) && $var6 == 2) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) && $var6 == 3) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) && $var6 == 4) - $var7 = 1; - $par5 = $par3 - 1 | 0; - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par5, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par5, $par4)) && $var6 == 5) - $var7 = 1; - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par5, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par5, $par4)) && $var6 == 6) - $var7 = 1; - $par5 = $par3 + 1 | 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par5, $par4)) && !$var6) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par5, $par4)) && $var6 == 7) - $var7 = 1; - if ($var7) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - var$6 = 0; - $var6 = 3; - $ptr = 2; - continue main; - } - } - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$6, $var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, $var6, $var7, $ptr); -} -function nms_BlockLever_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 7; - if ($var5 == 1) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.3125; - $this.$maxX0 = 0.375; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.6875; - } else if ($var5 == 2) { - $this.$minX0 = 0.625; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.3125; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.6875; - } else if ($var5 == 3) { - $this.$minX0 = 0.3125; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.6875; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.375; - } else if ($var5 == 4) { - $this.$minX0 = 0.3125; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.625; - $this.$maxX0 = 0.6875; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 1.0; - } else if (!($var5 != 5 && $var5 != 6)) { - $this.$minX0 = 0.25; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.25; - $this.$maxX0 = 0.75; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.75; - } else if (!($var5 && $var5 != 7)) { - $this.$minX0 = 0.25; - $this.$minY0 = 0.4000000059604645; - $this.$minZ0 = 0.25; - $this.$maxX0 = 0.75; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.75; - } -} -function nms_BlockLever_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $var11, $var12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var11 = $var10 & 7; - $var12 = 8 - ($var10 & 8) | 0; - $par6 = $var11 + $var12 | 0; - $var10 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var10); - if ($rt_suspending()) { - break main; - } - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(432), 0.30000001192092896, $var12 <= 0 ? 0.5 : 0.6000000238418579); - $par6 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - if ($var11 == 1) { - $par2 = $par2 - 1 | 0; - $par6 = $this.$blockID; - $ptr = 3; - continue main; - } - if ($var11 == 2) { - $par2 = $par2 + 1 | 0; - $par6 = $this.$blockID; - $ptr = 4; - continue main; - } - if ($var11 == 3) { - $par4 = $par4 - 1 | 0; - $par6 = $this.$blockID; - $ptr = 5; - continue main; - } - if ($var11 == 4) { - $par4 = $par4 + 1 | 0; - $par6 = $this.$blockID; - $ptr = 6; - continue main; - } - if ($var11 != 5 && $var11 != 6) { - if ($var11 && $var11 != 7) - return 1; - $par3 = $par3 + 1 | 0; - $par6 = $this.$blockID; - $ptr = 8; - continue main; - } - $par3 = $par3 - 1 | 0; - $par6 = $this.$blockID; - $ptr = 7; - continue main; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - return 1; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - return 1; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - return 1; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - return 1; - case 7: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - return 1; - case 8: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $var11, $var12, $ptr); -} -function nms_BlockLever_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (($par6 & 8) <= 0) - return; - $par5 = $this.$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $var7 = $par6 & 7; - if ($var7 == 1) { - $par2 = $par2 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 2; - continue main; - } - if ($var7 == 2) { - $par2 = $par2 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 3; - continue main; - } - if ($var7 == 3) { - $par4 = $par4 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 4; - continue main; - } - if ($var7 == 4) { - $par4 = $par4 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 5; - continue main; - } - if ($var7 != 5 && $var7 != 6) { - if ($var7 && $var7 != 7) - return; - $par3 = $par3 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 7; - continue main; - } - $par3 = $par3 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 6; - continue main; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 7: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $ptr); -} -function nms_BlockLever_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return (nms_World_getBlockMetadata($par1IBlockAccess, $par2, $par3, $par4) & 8) <= 0 ? 0 : 15; -} -function nms_BlockLever_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $var6 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - if (!($var6 & 8)) - return 0; - a: { - $var7 = $var6 & 7; - if (!$var7 && !$par5) { - $par2 = 15; - break a; - } - if ($var7 == 7 && !$par5) { - $par2 = 15; - break a; - } - if ($var7 == 6 && $par5 == 1) { - $par2 = 15; - break a; - } - if ($var7 == 5 && $par5 == 1) { - $par2 = 15; - break a; - } - if ($var7 == 4 && $par5 == 2) { - $par2 = 15; - break a; - } - if ($var7 == 3 && $par5 == 3) { - $par2 = 15; - break a; - } - if ($var7 == 2 && $par5 == 4) { - $par2 = 15; - break a; - } - if ($var7 == 1 && $par5 == 5) { - $par2 = 15; - break a; - } - $par2 = 0; - } - return $par2; -} -function nms_BlockLever_canProvidePower($this) { - return 1; -} -function nms_BlockBasePressurePlate() { - nms_Block.call(this); - this.$pressurePlateIconName = null; -} -function nms_BlockBasePressurePlate_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - nms_BlockBasePressurePlate_func_94353_c_($this, $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4)); -} -function nms_BlockBasePressurePlate_func_94353_c_($this, $par1) { - if (!($this.$getPowerSupply($par1) <= 0 ? 0 : 1)) { - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.0625; - $this.$maxZ0 = 0.9375; - } else { - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.03125; - $this.$maxZ0 = 0.9375; - } -} -function nms_BlockBasePressurePlate_tickRate($this, $par1World) { - return 20; -} -function nms_BlockBasePressurePlate_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockBasePressurePlate_isOpaqueCube($this) { - return 0; -} -function nms_BlockBasePressurePlate_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockBasePressurePlate_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - return 1; -} -function nms_BlockBasePressurePlate_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - $par3 = $par3 - 1 | 0; - nms_Block_$callClinit(); - return !nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)) && !nms_BlockFence_isIdAFence(nms_World_getBlockId($par1World, $par2, $par3, $par4)) ? 0 : 1; -} -function nms_BlockBasePressurePlate_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = 0; - var$7 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$7, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$7, $par4)) && !nms_BlockFence_isIdAFence(nms_World_getBlockId($par1World, $par2, var$7, $par4))) - $var6 = 1; - if (!$var6) - return; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - $var6 = 0; - var$7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, var$7, $ptr); -} -function nms_BlockBasePressurePlate_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - var $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$par5Entity = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote) { - $var6 = $this.$getPowerSupply(nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); - if (!$var6) { - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_BlockBasePressurePlate_setStateIfMobInteractsWithPlate($this, $par1World, $par2, $par3, $par4, $var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Entity, $var6, $ptr); -} -function nms_BlockBasePressurePlate_setStateIfMobInteractsWithPlate($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = $this.$getPlateState($par1World, $par2, $par3, $par4); - $var7 = $par5 <= 0 ? 0 : 1; - $var8 = $var6 <= 0 ? 0 : 1; - if ($par5 == $var6) { - if (!$var8 && $var7) - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.1, $par4 + 0.5, $rt_s(432), 0.30000001192092896, 0.5); - else if ($var8 && !$var7) - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.1, $par4 + 0.5, $rt_s(432), 0.30000001192092896, 0.6000000238418579); - if ($var8) - $this.$tickRate($par1World); - return; - } - $par5 = $this.$getMetaFromWeight($var6); - $var6 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $var6); - if ($rt_suspending()) { - break main; - } - $par5 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - var$9 = $par3 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$9, $par4, $par5); - if ($rt_suspending()) { - break main; - } - var$10 = 0; - $var6 = $par2 - 1 | 0; - var$11 = $par4 - 1 | 0; - var$12 = $par2 + 1 | 0; - var$13 = $par3 + 1 | 0; - var$14 = $par4 + 1 | 0; - while (true) { - if (var$10 >= $par1World.$worldAccesses.$size0) { - if (!$var8 && $var7) - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.1, $par4 + 0.5, $rt_s(432), 0.30000001192092896, 0.5); - else if ($var8 && !$var7) - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.1, $par4 + 0.5, $rt_s(432), 0.30000001192092896, 0.6000000238418579); - if ($var8) - $this.$tickRate($par1World); - return; - } - var$15 = $par1World.$worldAccesses; - if (var$10 < 0) - break; - if (var$10 >= var$15.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate(var$15.$array1.data[var$10], $var6, var$9, var$11, var$12, var$13, var$14); - var$10 = var$10 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $var8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr); -} -function nms_BlockBasePressurePlate_getSensitiveAABB($this, $par1, $par2, $par3) { - var var$4, var$5, var$6, var$7, var$8; - var$4 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$4.$initialized) { - var$5 = new nms_AABBPool; - var$6 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$6); - var$6.$array1 = $rt_createArray(jl_Object, 10); - var$5.$listAABB = var$6; - var$5.$nextPoolIndex = 0; - var$5.$maxPoolIndex = 0; - var$5.$numCleans = 0; - var$5.$maxNumCleans = 300; - var$5.$numEntriesToRemove = 2000; - var$4.$value7 = var$5; - var$4.$initialized = 1; - } - var$4 = var$4.$value7; - var$7 = $par1 + 0.125; - var$8 = $par2; - return nms_AABBPool_getAABB(var$4, var$7, var$8, $par3 + 0.125, ($par1 + 1 | 0) - 0.125, var$8 + 0.25, ($par3 + 1 | 0) - 0.125); -} -function nms_BlockBasePressurePlate_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$getPowerSupply($par6) <= 0) - return; - $par5 = $this.$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $ptr); -} -function nms_BlockBasePressurePlate_func_94354_b_($this, $par1World, $par2, $par3, $par4) { - var var$5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$5 = $this.$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, var$5); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 - 1 | 0; - var$5 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, $ptr); -} -function nms_BlockBasePressurePlate_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $this.$getPowerSupply(nms_World_getBlockMetadata($par1IBlockAccess, $par2, $par3, $par4)); -} -function nms_BlockBasePressurePlate_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $par5 != 1 ? 0 : $this.$getPowerSupply($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4)); -} -function nms_BlockBasePressurePlate_canProvidePower($this) { - return 1; -} -function nms_BlockBasePressurePlate_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.375; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.625; - $this.$maxZ0 = 1.0; -} -function nms_BlockBasePressurePlate_getMobilityFlag($this) { - return 1; -} -function nms_BlockBasePressurePlate_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$pressurePlateIconName); -} -function nms_BlockPressurePlate() { - nms_BlockBasePressurePlate.call(this); - this.$triggerMobType = null; -} -function nms_BlockPressurePlate__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_BlockPressurePlate(); - nms_BlockPressurePlate__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_BlockPressurePlate__init_0($this, $par1, $par2Str, $par3Material, $par4EnumMobType) { - nms_Block__init_0($this, $par1, $par3Material); - $this.$pressurePlateIconName = $par2Str; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; - $this.$needsRandomTick = 1; - nms_BlockBasePressurePlate_func_94353_c_($this, 1); - $this.$triggerMobType = $par4EnumMobType; -} -function nms_BlockPressurePlate_getMetaFromWeight($this, $par1) { - return $par1 <= 0 ? 0 : 1; -} -function nms_BlockPressurePlate_getPowerSupply($this, $par1) { - return $par1 != 1 ? 0 : 15; -} -function nms_BlockPressurePlate_getPlateState($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = null; - if ($this.$triggerMobType === nms_EnumMobType_everything) - $var5 = nms_World_getEntitiesWithinAABBExcludingEntity($par1World, null, nms_BlockBasePressurePlate_getSensitiveAABB($this, $par2, $par3, $par4), null); - if ($this.$triggerMobType === nms_EnumMobType_mobs) - $var5 = nms_World_selectEntitiesWithinAABB($par1World, $rt_cls(nms_EntityLiving), nms_BlockBasePressurePlate_getSensitiveAABB($this, $par2, $par3, $par4), null); - if ($this.$triggerMobType === nms_EnumMobType_players) - $var5 = nms_World_selectEntitiesWithinAABB($par1World, $rt_cls(nms_EntityPlayer), nms_BlockBasePressurePlate_getSensitiveAABB($this, $par2, $par3, $par4), null); - $par2 = $var5.$size0 ? 0 : 1; - a: { - if (!$par2) { - $var6 = new ju_AbstractList$1; - $var6.$this$0 = $var5; - $var6.$modCount = $var6.$this$0.$modCount0; - $var6.$size1 = $var6.$this$0.$size2(); - $var6.$removeIndex = (-1); - while (true) { - if (!($var6.$index >= $var6.$size1 ? 0 : 1)) - break a; - if (!ju_AbstractList$1_next($var6).$doesEntityNotTriggerPressurePlate()) - break; - } - return 15; - } - } - return 0; -} -function nms_EnumMobType() { - jl_Enum.call(this); -} -var nms_EnumMobType_everything = null; -var nms_EnumMobType_mobs = null; -var nms_EnumMobType_players = null; -var nms_EnumMobType_$VALUES = null; -function nms_EnumMobType__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumMobType; - var$1.$name2 = $rt_s(2112); - var$1.$ordinal = 0; - nms_EnumMobType_everything = var$1; - var$1 = new nms_EnumMobType; - var$1.$name2 = $rt_s(2113); - var$1.$ordinal = 1; - nms_EnumMobType_mobs = var$1; - var$1 = new nms_EnumMobType; - var$1.$name2 = $rt_s(2114); - var$1.$ordinal = 2; - nms_EnumMobType_players = var$1; - var$2 = $rt_createArray(nms_EnumMobType, 3); - var$3 = var$2.data; - var$3[0] = nms_EnumMobType_everything; - var$3[1] = nms_EnumMobType_mobs; - var$3[2] = nms_EnumMobType_players; - nms_EnumMobType_$VALUES = var$2; -} -function nms_BlockRedstoneOre() { - nms_Block.call(this); - this.$glowing = 0; -} -function nms_BlockRedstoneOre__init_(var_0, var_1) { - var var_2 = new nms_BlockRedstoneOre(); - nms_BlockRedstoneOre__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockRedstoneOre__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - if ($par2) - $this.$needsRandomTick = 1; - $this.$glowing = $par2; -} -function nms_BlockRedstoneOre_onBlockClicked($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - var var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockRedstoneOre_sparkle($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$6 = $this.$blockID; - nms_Block_$callClinit(); - if (var$6 != nms_Block_oreRedstone.$blockID) - return; - var$7 = nms_Block_oreRedstoneGlowing.$blockID; - var$6 = 0; - var$8 = 3; - $ptr = 2; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$7, var$6, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, var$6, var$7, var$8, $ptr); -} -function nms_BlockRedstoneOre_onEntityWalking($this, $par1World, $par2, $par3, $par4, $par5Entity) { - var var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5Entity = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockRedstoneOre_sparkle($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$6 = $this.$blockID; - nms_Block_$callClinit(); - if (var$6 != nms_Block_oreRedstone.$blockID) - return; - var$7 = nms_Block_oreRedstoneGlowing.$blockID; - var$6 = 0; - var$8 = 3; - $ptr = 2; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$7, var$6, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Entity, var$6, var$7, var$8, $ptr); -} -function nms_BlockRedstoneOre_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var 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();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockRedstoneOre_sparkle($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $par6 = $this.$blockID; - nms_Block_$callClinit(); - if ($par6 != nms_Block_oreRedstone.$blockID) - return 0; - $par6 = nms_Block_oreRedstoneGlowing.$blockID; - var$10 = 0; - var$11 = 3; - $ptr = 2; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par6, var$10, var$11); - if ($rt_suspending()) { - break main; - } - return 0; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, var$10, var$11, $ptr); -} -function nms_BlockRedstoneOre_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_redstone.$itemID; -} -function nms_BlockRedstoneOre_quantityDroppedWithBonus($this, $par1, $par2Random) { - var var$3; - var$3 = 4 + (Math.random() * 2.0 | 0) | 0; - $par1 = $par1 + 1 | 0; - return var$3 + (Math.random() * $par1 | 0) | 0; -} -function nms_BlockRedstoneOre_quantityDropped($this, $par1Random) { - return 4 + (Math.random() * 2.0 | 0) | 0; -} -function nms_BlockRedstoneOre_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7); - nms_Item_$callClinit(); - if (nms_Item_redstone.$itemID != $this.$blockID) - nms_Block_dropXpOnBlockBreak($this, $par1World, $par2, $par3, $par4, 1 + (Math.random() * 5.0 | 0) | 0); -} -function nms_BlockRedstoneOre_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$glowing) - return; - $ptr = 1; - case 1: - nms_BlockRedstoneOre_sparkle($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $ptr); -} -function nms_BlockRedstoneOre_sparkle($this, $par1World, $par2, $par3, $par4) { - var $var8, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, var$19, var$20, var$21, var$22, var$23, var$24, var$25, $var9, $var11, $var13, var$29, var$30, var$31, $var6, var$33, var$34, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$34 = $thread.pop();var$33 = $thread.pop();$var6 = $thread.pop();var$31 = $thread.pop();var$30 = $thread.pop();var$29 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();var$25 = $thread.pop();var$24 = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 - = $thread.pop();var$12 = $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();$var8 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var8 = 0; - var$6 = $par2; - var$7 = $par3; - var$8 = $par4; - var$9 = $par3 + 1 | 0; - var$10 = var$9; - var$11 = var$10 + 0.0625; - var$12 = $par3 - 1 | 0; - var$13 = ($par3 + 0 | 0) - 0.0625; - var$14 = $par4 + 1 | 0; - var$15 = var$14; - var$16 = var$15 + 0.0625; - var$17 = $par4 - 1 | 0; - var$18 = ($par4 + 0 | 0) - 0.0625; - var$19 = $par2 + 1 | 0; - var$20 = var$19; - var$21 = var$20 + 0.0625; - var$22 = $par2 - 1 | 0; - var$23 = ($par2 + 0 | 0) - 0.0625; - var$24 = $par2; - var$25 = $par4; - while ($var8 < 6) { - $var9 = var$6 + Math.random(); - $var11 = var$7 + Math.random(); - $var13 = var$8 + Math.random(); - if (!$var8) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$9, $par4)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var11 = var$11; - } - if ($var8 == 1) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$12, $par4)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var11 = var$13; - } - if ($var8 == 2) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, var$14)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var13 = var$16; - } - if ($var8 == 3) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, var$17)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var13 = var$18; - } - if ($var8 == 4) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, var$19, $par3, $par4)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var9 = var$21; - } - if ($var8 == 5) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, var$22, $par3, $par4)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var9 = var$23; - } - if (!($var9 >= var$24 && $var9 <= var$20 && $var11 >= 0.0 && $var11 <= var$10 && $var13 >= var$25 && $var13 <= var$15)) { - var$30 = $rt_s(862); - var$31 = 0.0; - $var6 = 0.0; - var$33 = 0.0; - var$34 = 0; - if (var$34 < $par1World.$worldAccesses.$size0) { - var$29 = $par1World.$worldAccesses; - if (var$34 >= 0 && var$34 < var$29.$size0) { - var$29 = var$29.$array1.data[var$34]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - $var8 = $var8 + 1 | 0; - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$29, var$30, $var9, $var11, $var13, var$31, $var6, var$33); - if ($rt_suspending()) { - break main; - } - var$34 = var$34 + 1 | 0; - a: while (true) { - if (var$34 < $par1World.$worldAccesses.$size0) { - var$29 = $par1World.$worldAccesses; - if (var$34 >= 0 && var$34 < var$29.$size0) { - var$29 = var$29.$array1.data[var$34]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - while (true) { - $var8 = $var8 + 1 | 0; - if ($var8 >= 6) - break a; - $var9 = var$6 + Math.random(); - $var11 = var$7 + Math.random(); - $var13 = var$8 + Math.random(); - if (!$var8) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$9, $par4)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var11 = var$11; - } - if ($var8 == 1) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$12, $par4)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var11 = var$13; - } - if ($var8 == 2) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, var$14)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var13 = var$16; - } - if ($var8 == 3) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, var$17)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var13 = var$18; - } - if ($var8 == 4) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, var$19, $par3, $par4)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var9 = var$21; - } - if ($var8 == 5) { - nms_Block_$callClinit(); - var$29 = nms_Block_blocksList.data[nms_World_getBlockId($par1World, var$22, $par3, $par4)]; - if (!(var$29 !== null ? var$29.$isOpaqueCube() : 0)) - $var9 = var$23; - } - if ($var9 < var$24) - break; - if ($var9 > var$20) - break; - if ($var11 < 0.0) - break; - if ($var11 > var$10) - break; - if ($var13 < var$25) - break; - if ($var13 <= var$15) - continue; - else - break; - } - var$30 = $rt_s(862); - var$31 = 0.0; - $var6 = 0.0; - var$33 = 0.0; - var$34 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var8, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, var$19, var$20, var$21, var$22, var$23, var$24, var$25, $var9, $var11, $var13, var$29, var$30, var$31, $var6, var$33, var$34, $ptr); -} -function nms_BlockRedstoneTorch() { - nms_BlockTorch.call(this); - this.$torchActive = 0; -} -var nms_BlockRedstoneTorch_redstoneUpdateInfoCache = null; -function nms_BlockRedstoneTorch__init_(var_0, var_1) { - var var_2 = new nms_BlockRedstoneTorch(); - nms_BlockRedstoneTorch__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockRedstoneTorch__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$torchActive = 0; - $this.$torchActive = $par2; - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = null; -} -function nms_BlockRedstoneTorch_tickRate($this, $par1World) { - return 2; -} -function nms_BlockRedstoneTorch_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var 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();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)) { - $ptr = 1; - continue main; - } - if (!$this.$torchActive) - return; - var$5 = $par3 - 1 | 0; - var$6 = $this.$blockID; - $ptr = 2; - continue main; - case 1: - nms_BlockTorch_onBlockAdded($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - if (!$this.$torchActive) - return; - var$5 = $par3 - 1 | 0; - var$6 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$5, $par4, var$6); - if ($rt_suspending()) { - break main; - } - var$6 = $par3 + 1 | 0; - var$5 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$6, $par4, var$5); - if ($rt_suspending()) { - break main; - } - var$6 = $par2 - 1 | 0; - var$5 = $this.$blockID; - $ptr = 4; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, var$6, $par3, $par4, var$5); - if ($rt_suspending()) { - break main; - } - var$6 = $par2 + 1 | 0; - var$5 = $this.$blockID; - $ptr = 5; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, var$6, $par3, $par4, var$5); - if ($rt_suspending()) { - break main; - } - var$6 = $par4 - 1 | 0; - var$5 = $this.$blockID; - $ptr = 6; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, var$6, var$5); - if ($rt_suspending()) { - break main; - } - $par4 = $par4 + 1 | 0; - var$6 = $this.$blockID; - $ptr = 7; - case 7: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, var$6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, $ptr); -} -function nms_BlockRedstoneTorch_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$torchActive) - return; - $par5 = $par3 - 1 | 0; - $par6 = $this.$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par5, $par4, $par6); - if ($rt_suspending()) { - break main; - } - $par5 = $par3 + 1 | 0; - $par6 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par5, $par4, $par6); - if ($rt_suspending()) { - break main; - } - $par5 = $par2 - 1 | 0; - $par6 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par5, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - $par5 = $par2 + 1 | 0; - $par6 = $this.$blockID; - $ptr = 4; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par5, $par3, $par4, $par6); - if ($rt_suspending()) { - break main; - } - $par5 = $par4 - 1 | 0; - $par6 = $this.$blockID; - $ptr = 5; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par5, $par6); - if ($rt_suspending()) { - break main; - } - $par4 = $par4 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 6; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $ptr); -} -function nms_BlockRedstoneTorch_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - if (!$this.$torchActive) - return 0; - $var6 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - return $var6 == 5 && $par5 == 1 ? 0 : $var6 == 3 && $par5 == 3 ? 0 : $var6 == 4 && $par5 == 2 ? 0 : $var6 == 1 && $par5 == 5 ? 0 : $var6 == 2 && $par5 == 4 ? 0 : 15; -} -function nms_BlockRedstoneTorch_isIndirectlyPowered($this, $par1World, $par2, $par3, $par4) { - var $var5; - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - return $var5 == 5 && (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3 - 1 | 0, $par4, 0) <= 0 ? 0 : 1) ? 1 : $var5 == 3 && (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3, $par4 - 1 | 0, 2) <= 0 ? 0 : 1) ? 1 : $var5 == 4 && (nms_World_getIndirectPowerLevelTo($par1World, $par2, $par3, $par4 + 1 | 0, 3) <= 0 ? 0 : 1) ? 1 : $var5 == 1 && (nms_World_getIndirectPowerLevelTo($par1World, $par2 - 1 | 0, $par3, $par4, 4) <= 0 ? 0 : 1) ? 1 : $var5 == 2 && (nms_World_getIndirectPowerLevelTo($par1World, - $par2 + 1 | 0, $par3, $par4, 5) <= 0 ? 0 : 1) ? 1 : 0; -} -function nms_BlockRedstoneTorch_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $tmp = nms_BlockTorch_func_94397_d($this, $par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $par5 = $tmp; - if (!$par5) - $var6 = nms_BlockRedstoneTorch_isIndirectlyPowered($this, $par1World, $par2, $par3, $par4); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $ptr); -} -function nms_BlockRedstoneTorch_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $par5 ? 0 : nms_BlockRedstoneTorch_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5); -} -function nms_BlockRedstoneTorch_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_torchRedstoneActive.$blockID; -} -function nms_BlockRedstoneTorch_canProvidePower($this) { - return 1; -} -function nms_BlockRedstoneTorch_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $var6, $var7, $var9, $var11, $var15, $var13, 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();$var13 = $thread.pop();$var15 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($this.$torchActive) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = $par2 + 0.5 + (Math.random() - 0.5) * 0.2; - $var9 = $par3 + 0.699999988079071 + (Math.random() - 0.5) * 0.2; - $var11 = $par4 + 0.5 + (Math.random() - 0.5) * 0.2; - if ($var6 == 1) { - $par5Random = $rt_s(862); - $var15 = $var7 - 0.27000001072883606; - $var13 = $var9 + 0.2199999988079071; - var$12 = 0.0; - $var7 = 0.0; - $var9 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - break a; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - if ($var6 == 2) { - $par5Random = $rt_s(862); - $var15 = $var7 + 0.27000001072883606; - $var13 = $var9 + 0.2199999988079071; - var$12 = 0.0; - $var7 = 0.0; - $var9 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - break a; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - $ptr = 2; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - if ($var6 == 3) { - $par5Random = $rt_s(862); - $var13 = $var9 + 0.2199999988079071; - $var15 = $var11 - 0.27000001072883606; - var$12 = 0.0; - $var9 = 0.0; - $var11 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - break a; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - if ($var6 == 4) { - $par5Random = $rt_s(862); - $var13 = $var9 + 0.2199999988079071; - $var15 = $var11 + 0.27000001072883606; - var$12 = 0.0; - $var9 = 0.0; - $var11 = 0.0; - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - break a; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - $ptr = 5; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1World); - $rt_throw($par1World); - } - var$13 = $rt_s(862); - $var13 = 0.0; - $var15 = 0.0; - var$12 = 0.0; - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - $par5Random = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par2]; - $ptr = 4; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$13, $par5Random, $var15, $var13, $var11, var$12, $var7, $var9); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 2: - nms_RenderGlobal_doSpawnParticle(var$13, $par5Random, $var15, $var13, $var11, var$12, $var7, $var9); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 3: - nms_RenderGlobal_doSpawnParticle(var$13, $par5Random, $var7, $var13, $var15, var$12, $var9, $var11); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 4: - nms_RenderGlobal_doSpawnParticle($par5Random, var$13, $var7, $var9, $var11, $var13, $var15, var$12); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - $par5Random = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 5: - nms_RenderGlobal_doSpawnParticle(var$13, $par5Random, $var7, $var13, $var15, var$12, $var9, $var11); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$13 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$13.$size0) { - var$13 = var$13.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1World); - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $var6, $var7, $var9, $var11, $var15, $var13, var$12, var$13, $ptr); -} -function nms_BlockRedstoneTorch_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Block_$callClinit(); - return nms_Block_torchRedstoneActive.$blockID; -} -function nms_BlockRedstoneTorch_registerIcons($this, $par1IconRegister) { - if (!$this.$torchActive) - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2115)); - else - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2116)); -} -function nms_BlockRedstoneTorch__clinit_() { - nms_BlockRedstoneTorch_redstoneUpdateInfoCache = ju_HashMap__init_1(16, 0.75); -} -function nms_BlockButton() { - nms_Block.call(this); - this.$sensible = 0; -} -function nms_BlockButton_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockButton_tickRate($this, $par1World) { - return !$this.$sensible ? 20 : 30; -} -function nms_BlockButton_isOpaqueCube($this) { - return 0; -} -function nms_BlockButton_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockButton_canPlaceBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5) { - return $par5 == 2 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) ? 1 : $par5 == 3 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) ? 1 : $par5 == 4 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) ? 1 : $par5 == 5 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) ? 1 : 0; -} -function nms_BlockButton_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - return nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)); -} -function nms_BlockButton_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var $var11; - $var11 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 8; - return ($par5 == 2 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) ? 4 : $par5 == 3 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) ? 3 : $par5 == 4 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) ? 2 : $par5 == 5 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) ? 1 : nms_BlockButton_getOrientation($this, $par1World, $par2, $par3, $par4)) + $var11 - | 0; -} -function nms_BlockButton_getOrientation($this, $par1World, $par2, $par3, $par4) { - return nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) ? 2 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) ? 3 : !nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) ? 1 : 4; -} -function nms_BlockButton_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_BlockButton_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4)) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - $var6 = 0; - $var7 = 3; - $ptr = 1; - continue main; - } - if (1) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 7; - $var7 = 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) && $var6 == 1) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) && $var6 == 2) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) && $var6 == 3) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) && $var6 == 4) - $var7 = 1; - if ($var7) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - $var6 = 0; - $var7 = 3; - $ptr = 2; - continue main; - } - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var6, $var7); - if ($rt_suspending()) { - break main; - } - if (0) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 7; - $var7 = 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) && $var6 == 1) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) && $var6 == 2) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) && $var6 == 3) - $var7 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) && $var6 == 4) - $var7 = 1; - if ($var7) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - $var6 = 0; - $var7 = 3; - $ptr = 2; - continue main; - } - } - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var6, $var7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $ptr); -} -function nms_BlockButton_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - nms_BlockButton_func_82534_e($this, $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4)); -} -function nms_BlockButton_func_82534_e($this, $par1) { - var $var2, $var3, $var7, var$5; - $var2 = $par1 & 7; - $var3 = ($par1 & 8) <= 0 ? 0 : 1; - $var7 = 0.125; - if ($var3) - $var7 = 0.0625; - if ($var2 == 1) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.375; - $this.$minZ0 = 0.3125; - $this.$maxX0 = $var7; - $this.$maxY0 = 0.625; - $this.$maxZ0 = 0.6875; - } else if ($var2 == 2) { - $this.$minX0 = 1.0 - $var7; - $this.$minY0 = 0.375; - $this.$minZ0 = 0.3125; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.625; - $this.$maxZ0 = 0.6875; - } else if ($var2 == 3) { - $this.$minX0 = 0.3125; - $this.$minY0 = 0.375; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.6875; - $this.$maxY0 = 0.625; - $this.$maxZ0 = $var7; - } else if ($var2 == 4) { - var$5 = 1.0 - $var7; - $this.$minX0 = 0.3125; - $this.$minY0 = 0.375; - $this.$minZ0 = var$5; - $this.$maxX0 = 0.6875; - $this.$maxY0 = 0.625; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockButton_onBlockClicked($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - return; -} -function nms_BlockButton_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $var11, $var12, var$13, var$14, var$15, var$16, var$17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var10 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var11 = $var10 & 7; - $var12 = 8 - ($var10 & 8) | 0; - if (!$var12) - return 1; - $par6 = $var11 + $var12 | 0; - $var10 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var10); - if ($rt_suspending()) { - break main; - } - $par6 = 0; - $var12 = $par2 - 1 | 0; - var$13 = $par3 - 1 | 0; - var$14 = $par4 - 1 | 0; - var$15 = $par2 + 1 | 0; - var$16 = $par3 + 1 | 0; - var$17 = $par4 + 1 | 0; - while (true) { - if ($par6 >= $par1World.$worldAccesses.$size0) { - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(432), 0.30000001192092896, 0.6000000238418579); - $ptr = 2; - continue main; - } - $par5EntityPlayer = $par1World.$worldAccesses; - if ($par6 < 0) - break; - if ($par6 >= $par5EntityPlayer.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate($par5EntityPlayer.$array1.data[$par6], $var12, var$13, var$14, var$15, var$16, var$17); - $par6 = $par6 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 2: - nms_BlockButton_func_82536_d($this, $par1World, $par2, $par3, $par4, $var11); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $var11, $var12, var$13, var$14, var$15, var$16, var$17, $ptr); -} -function nms_BlockButton_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (($par6 & 8) <= 0) - return; - $var7 = $par6 & 7; - $ptr = 1; - case 1: - nms_BlockButton_func_82536_d($this, $par1World, $par2, $par3, $par4, $var7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $ptr); -} -function nms_BlockButton_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return (nms_World_getBlockMetadata($par1IBlockAccess, $par2, $par3, $par4) & 8) <= 0 ? 0 : 15; -} -function nms_BlockButton_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $var6 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - if (!($var6 & 8)) - return 0; - $var7 = $var6 & 7; - return $var7 == 5 && $par5 == 1 ? 15 : $var7 == 4 && $par5 == 2 ? 15 : $var7 == 3 && $par5 == 3 ? 15 : $var7 == 2 && $par5 == 4 ? 15 : $var7 == 1 && $par5 == 5 ? 15 : 0; -} -function nms_BlockButton_canProvidePower($this) { - return 1; -} -function nms_BlockButton_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.3125; - $this.$minY0 = 0.375; - $this.$minZ0 = 0.375; - $this.$maxX0 = 0.6875; - $this.$maxY0 = 0.625; - $this.$maxZ0 = 0.625; -} -function nms_BlockButton_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5Entity = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote && $this.$sensible && !(nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 8)) { - $ptr = 1; - continue main; - } - return; - case 1: - nms_BlockButton_func_82535_o($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Entity, $ptr); -} -function nms_BlockButton_func_82535_o($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var7, var$8, var$9, $var9, var$11, var$12, var$13, var$14, var$15, $var8, var$17, var$18, var$19, var$20, var$21, var$22, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();$var8 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var9 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var6 = $var5 & 7; - $var7 = !($var5 & 8) ? 0 : 1; - nms_BlockButton_func_82534_e($this, $var5); - var$8 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$8.$initialized) { - var$9 = new nms_AABBPool; - $var9 = new ju_ArrayList; - ju_AbstractCollection__init_0($var9); - $var9.$array1 = $rt_createArray(jl_Object, 10); - var$9.$listAABB = $var9; - var$9.$nextPoolIndex = 0; - var$9.$maxPoolIndex = 0; - var$9.$numCleans = 0; - var$9.$maxNumCleans = 300; - var$9.$numEntriesToRemove = 2000; - var$8.$value7 = var$9; - var$8.$initialized = 1; - } - $var9 = var$8.$value7; - var$11 = $par2; - var$12 = var$11 + $this.$minX0; - var$13 = $par3; - var$14 = var$13 + $this.$minY0; - var$15 = $par4; - $var8 = (nms_World_selectEntitiesWithinAABB($par1World, $rt_cls(nms_EntityArrow), nms_AABBPool_getAABB($var9, var$12, var$14, var$15 + $this.$minZ0, var$11 + $this.$maxX0, var$13 + $this.$maxY0, var$15 + $this.$maxZ0), null).$size0 ? 0 : 1) ? 0 : 1; - if ($var8 && !$var7) { - $var5 = $var6 | 8; - var$17 = 3; - $ptr = 1; - continue main; - } - if (!$var8 && $var7) { - $var5 = 3; - $ptr = 3; - continue main; - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var5, var$17); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nms_BlockButton_func_82536_d($this, $par1World, $par2, $par3, $par4, $var6); - if ($rt_suspending()) { - break main; - } - var$17 = 0; - var$18 = $par2 - 1 | 0; - var$19 = $par3 - 1 | 0; - var$20 = $par4 - 1 | 0; - var$21 = $par2 + 1 | 0; - var$22 = $par3 + 1 | 0; - var$23 = $par4 + 1 | 0; - while (true) { - if (var$17 >= $par1World.$worldAccesses.$size0) { - nms_World_playSoundEffect($par1World, var$11 + 0.5, var$13 + 0.5, var$15 + 0.5, $rt_s(432), 0.30000001192092896, 0.6000000238418579); - if (!$var8 && $var7) { - $var5 = 3; - $ptr = 3; - continue main; - } - return; - } - $var9 = $par1World.$worldAccesses; - if (var$17 < 0) - break; - if (var$17 >= $var9.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate($var9.$array1.data[var$17], var$18, var$19, var$20, var$21, var$22, var$23); - var$17 = var$17 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var6, $var5); - if ($rt_suspending()) { - break main; - } - $ptr = 4; - case 4: - nms_BlockButton_func_82536_d($this, $par1World, $par2, $par3, $par4, $var6); - if ($rt_suspending()) { - break main; - } - var$17 = 0; - $var6 = $par2 - 1 | 0; - $var7 = $par3 - 1 | 0; - var$18 = $par4 - 1 | 0; - $var5 = $par2 + 1 | 0; - $par3 = $par3 + 1 | 0; - $par4 = $par4 + 1 | 0; - while (true) { - if (var$17 >= $par1World.$worldAccesses.$size0) { - nms_World_playSoundEffect($par1World, var$11 + 0.5, var$13 + 0.5, var$15 + 0.5, $rt_s(432), 0.30000001192092896, 0.5); - return; - } - $var9 = $par1World.$worldAccesses; - if (var$17 < 0) - break; - if (var$17 >= $var9.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate($var9.$array1.data[var$17], $var6, $var7, var$18, $var5, $par3, $par4); - var$17 = var$17 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, $var7, var$8, var$9, $var9, var$11, var$12, var$13, var$14, var$15, $var8, var$17, var$18, var$19, var$20, var$21, var$22, var$23, $ptr); -} -function nms_BlockButton_func_82536_d($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $this.$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, var$6); - if ($rt_suspending()) { - break main; - } - if ($par5 == 1) { - $par2 = $par2 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 2; - continue main; - } - if ($par5 == 2) { - $par2 = $par2 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 3; - continue main; - } - if ($par5 == 3) { - $par4 = $par4 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 4; - continue main; - } - if ($par5 != 4) { - $par3 = $par3 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 5; - continue main; - } - $par4 = $par4 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 6; - continue main; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, $ptr); -} -function nms_BlockButton_registerIcons($this, $par1IconRegister) { - return; -} -function nms_BlockButtonStone() { - nms_BlockButton.call(this); -} -function nms_BlockButtonStone__init_(var_0) { - var var_1 = new nms_BlockButtonStone(); - nms_BlockButtonStone__init_0(var_1, var_0); - return var_1; -} -function nms_BlockButtonStone__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; - $this.$sensible = 0; -} -function nms_BlockButtonStone_getIcon($this, $par1, $par2) { - nms_Block_$callClinit(); - return nms_Block_stone.$getIcon(1, 0); -} -function nms_BlockSnow() { - nms_Block.call(this); -} -function nms_BlockSnow__init_(var_0) { - var var_1 = new nms_BlockSnow(); - nms_BlockSnow__init_0(var_1, var_0); - return var_1; -} -function nms_BlockSnow__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_snow); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.125; - $this.$maxZ0 = 1.0; - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - nms_BlockSnow_setBlockBoundsForSnowDepth($this, 0); -} -function nms_BlockSnow_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(1596)); -} -function nms_BlockSnow_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6, var$7, var$8, var$9, var$10, var$11; - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 7; - $par1World = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1World.$initialized) { - var$6 = new nms_AABBPool; - var$7 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$7); - var$7.$array1 = $rt_createArray(jl_Object, 10); - var$6.$listAABB = var$7; - var$6.$nextPoolIndex = 0; - var$6.$maxPoolIndex = 0; - var$6.$numCleans = 0; - var$6.$maxNumCleans = 300; - var$6.$numEntriesToRemove = 2000; - $par1World.$value7 = var$6; - $par1World.$initialized = 1; - } - $par1World = $par1World.$value7; - var$8 = $par2; - var$9 = var$8 + $this.$minX0; - var$10 = $par3 + $this.$minY0; - var$11 = $par4; - return nms_AABBPool_getAABB($par1World, var$9, var$10, var$11 + $this.$minZ0, var$8 + $this.$maxX0, $par3 + $var5 * 0.125, var$11 + $this.$maxZ0); -} -function nms_BlockSnow_isOpaqueCube($this) { - return 0; -} -function nms_BlockSnow_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockSnow_setBlockBoundsForItemRender($this) { - nms_BlockSnow_setBlockBoundsForSnowDepth($this, 0); -} -function nms_BlockSnow_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - nms_BlockSnow_setBlockBoundsForSnowDepth($this, $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4)); -} -function nms_BlockSnow_setBlockBoundsForSnowDepth($this, $par1) { - var $var3; - $var3 = (2 * (1 + ($par1 & 7) | 0) | 0) / 16.0; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = $var3; - $this.$maxZ0 = 1.0; -} -function nms_BlockSnow_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5, $var5; - var$5 = $par3 - 1 | 0; - $var5 = nms_World_getBlockId($par1World, $par2, var$5, $par4); - if (!$var5) - $par2 = 0; - else if ($var5 == $this.$blockID && (nms_World_getBlockMetadata($par1World, $par2, var$5, $par4) & 7) == 7) - $par2 = 1; - else { - nms_Block_$callClinit(); - if ($var5 != nms_Block_leaves.$blockID && !nms_Block_blocksList.data[$var5].$isOpaqueCube()) - $par2 = 0; - else { - $par2 = nms_World_getBlockId($par1World, $par2, var$5, $par4); - if (!$par2) { - nms_Material_$callClinit(); - $par1World = nms_Material_air; - } else - $par1World = nms_Block_blocksList.data[$par2].$blockMaterial; - $par2 = $par1World.$blocksMovement(); - } - } - return $par2; -} -function nms_BlockSnow_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_BlockSnow_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4)) - return; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - var$6 = 0; - var$7 = 0; - $par5 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$6, var$7, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockSnow_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_snowball.$itemID; -} -function nms_BlockSnow_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockSnow_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $par5 != 1 ? nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) : 1; -} -function nms_BlockIce() { - nms_BlockBreakable.call(this); -} -function nms_BlockIce__init_(var_0) { - var var_1 = new nms_BlockIce(); - nms_BlockIce__init_0(var_1, var_0); - return var_1; -} -function nms_BlockIce__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_ice); - $this.$localFlag = 0; - $this.$breakableBlockIcon = $rt_s(1654); - $this.$slipperiness = 0.9800000190734863; - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockIce_getRenderBlockPass($this) { - return 1; -} -function nms_BlockIce_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var var$6, var$7; - var$6 = 1 - $par5 | 0; - var$7 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4); - return !$this.$localFlag && var$7 == $this.$blockID ? 0 : nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, var$6); -} -function nms_BlockIce_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockIce_getMobilityFlag($this) { - return 0; -} -function nms_BlockSnowBlock() { - nms_Block.call(this); -} -function nms_BlockSnowBlock__init_(var_0) { - var var_1 = new nms_BlockSnowBlock(); - nms_BlockSnowBlock__init_0(var_1, var_0); - return var_1; -} -function nms_BlockSnowBlock__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_craftedSnow); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockSnowBlock_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_snowball.$itemID; -} -function nms_BlockSnowBlock_quantityDropped($this, $par1Random) { - return 4; -} -function nms_BlockCactus() { - var a = this; nms_Block.call(a); - a.$cactusTopIcon = null; - a.$cactusBottomIcon = null; -} -function nms_BlockCactus__init_(var_0) { - var var_1 = new nms_BlockCactus(); - nms_BlockCactus__init_0(var_1, var_0); - return var_1; -} -function nms_BlockCactus__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_cactus); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockCactus_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6; - $par1World = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1World.$initialized) { - var$5 = new nms_AABBPool; - var$6 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$6); - var$6.$array1 = $rt_createArray(jl_Object, 10); - var$5.$listAABB = var$6; - var$5.$nextPoolIndex = 0; - var$5.$maxPoolIndex = 0; - var$5.$numCleans = 0; - var$5.$maxNumCleans = 300; - var$5.$numEntriesToRemove = 2000; - $par1World.$value7 = var$5; - $par1World.$initialized = 1; - } - return nms_AABBPool_getAABB($par1World.$value7, $par2 + 0.0625, $par3, $par4 + 0.0625, ($par2 + 1 | 0) - 0.0625, ($par3 + 1 | 0) - 0.0625, ($par4 + 1 | 0) - 0.0625); -} -function nms_BlockCactus_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6; - var$5 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$5.$initialized) { - var$6 = new nms_AABBPool; - $par1World = new ju_ArrayList; - ju_AbstractCollection__init_0($par1World); - $par1World.$array1 = $rt_createArray(jl_Object, 10); - var$6.$listAABB = $par1World; - var$6.$nextPoolIndex = 0; - var$6.$maxPoolIndex = 0; - var$6.$numCleans = 0; - var$6.$maxNumCleans = 300; - var$6.$numEntriesToRemove = 2000; - var$5.$value7 = var$6; - var$5.$initialized = 1; - } - return nms_AABBPool_getAABB(var$5.$value7, $par2 + 0.0625, $par3, $par4 + 0.0625, ($par2 + 1 | 0) - 0.0625, $par3 + 1 | 0, ($par4 + 1 | 0) - 0.0625); -} -function nms_BlockCactus_getIcon($this, $par1, $par2) { - return $par1 == 1 ? $this.$cactusTopIcon : $par1 ? $this.$blockIcon : $this.$cactusBottomIcon; -} -function nms_BlockCactus_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockCactus_isOpaqueCube($this) { - return 0; -} -function nms_BlockCactus_getRenderType($this) { - return 13; -} -function nms_BlockCactus_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - return (var$5 && !nms_Block_blocksList.data[var$5].$blockMaterial.$replaceable ? 0 : 1) ? nms_BlockCactus_canBlockStay($this, $par1World, $par2, $par3, $par4) : 0; -} -function nms_BlockCactus_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_BlockCactus_canBlockStay($this, $par1World, $par2, $par3, $par4)) - return; - $par5 = 1; - $ptr = 1; - case 1: - nms_World_destroyBlock($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $ptr); -} -function nms_BlockCactus_canBlockStay($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6; - $var5 = nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4); - if (!$var5) { - nms_Material_$callClinit(); - var$6 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$6 = nms_Block_blocksList.data[$var5].$blockMaterial; - } - if (var$6.$isSolid()) - return 0; - $var5 = nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4); - if (!$var5) - var$6 = nms_Material_air; - else { - nms_Block_$callClinit(); - var$6 = nms_Block_blocksList.data[$var5].$blockMaterial; - } - if (var$6.$isSolid()) - return 0; - $var5 = nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0); - if (!$var5) - var$6 = nms_Material_air; - else { - nms_Block_$callClinit(); - var$6 = nms_Block_blocksList.data[$var5].$blockMaterial; - } - if (var$6.$isSolid()) - return 0; - $var5 = nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0); - if (!$var5) - var$6 = nms_Material_air; - else { - nms_Block_$callClinit(); - var$6 = nms_Block_blocksList.data[$var5].$blockMaterial; - } - if (var$6.$isSolid()) - return 0; - $var5 = nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4); - nms_Block_$callClinit(); - return $var5 != nms_Block_cactus.$blockID && $var5 != nms_Block_sand.$blockID ? 0 : 1; -} -function nms_BlockCactus_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5Entity = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1World = nms_DamageSource_cactus; - $par2 = 1; - $ptr = 1; - case 1: - $par5Entity.$attackEntityFrom($par1World, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Entity, $ptr); -} -function nms_BlockCactus_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2117)); - $this.$cactusTopIcon = $par1IconRegister.$registerIcon($rt_s(2118)); - $this.$cactusBottomIcon = $par1IconRegister.$registerIcon($rt_s(2119)); -} -function nms_BlockClay() { - nms_Block.call(this); -} -function nms_BlockClay__init_(var_0) { - var var_1 = new nms_BlockClay(); - nms_BlockClay__init_0(var_1, var_0); - return var_1; -} -function nms_BlockClay__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_clay); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockClay_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_clay.$itemID; -} -function nms_BlockClay_quantityDropped($this, $par1Random) { - return 4; -} -function nms_BlockReed() { - nms_Block.call(this); -} -function nms_BlockReed__init_(var_0) { - var var_1 = new nms_BlockReed(); - nms_BlockReed__init_0(var_1, var_0); - return var_1; -} -function nms_BlockReed__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_plants); - $this.$minX0 = 0.125; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.125; - $this.$maxX0 = 0.875; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.875; - $this.$needsRandomTick = 1; -} -function nms_BlockReed_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5, $var5, var$7; - var$5 = $par3 - 1 | 0; - $var5 = nms_World_getBlockId($par1World, $par2, var$5, $par4); - if ($var5 == $this.$blockID) - $par2 = 1; - else { - nms_Block_$callClinit(); - if ($var5 != nms_Block_grass.$blockID && $var5 != nms_Block_dirt.$blockID && $var5 != nms_Block_sand.$blockID) - $par2 = 0; - else { - $par3 = nms_World_getBlockId($par1World, $par2 - 1 | 0, var$5, $par4); - if (!$par3) { - nms_Material_$callClinit(); - var$7 = nms_Material_air; - } else - var$7 = nms_Block_blocksList.data[$par3].$blockMaterial; - nms_Material_$callClinit(); - if (var$7 === nms_Material_water) - $par2 = 1; - else { - $par3 = nms_World_getBlockId($par1World, $par2 + 1 | 0, var$5, $par4); - if ((!$par3 ? nms_Material_air : nms_Block_blocksList.data[$par3].$blockMaterial) === nms_Material_water) - $par2 = 1; - else { - $par3 = nms_World_getBlockId($par1World, $par2, var$5, $par4 - 1 | 0); - if ((!$par3 ? nms_Material_air : nms_Block_blocksList.data[$par3].$blockMaterial) === nms_Material_water) - $par2 = 1; - else { - $par2 = nms_World_getBlockId($par1World, $par2, var$5, $par4 + 1 | 0); - $par2 = (!$par2 ? nms_Material_air : nms_Block_blocksList.data[$par2].$blockMaterial) !== nms_Material_water ? 0 : 1; - } - } - } - } - } - return $par2; -} -function nms_BlockReed_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_BlockReed_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4)) - return; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockReed_checkBlockCoordValid($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_BlockReed_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4)) - return; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - var$5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, $ptr); -} -function nms_BlockReed_canBlockStay($this, $par1World, $par2, $par3, $par4) { - return nms_BlockReed_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockReed_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockReed_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_reed.$itemID; -} -function nms_BlockReed_isOpaqueCube($this) { - return 0; -} -function nms_BlockReed_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockReed_getRenderType($this) { - return 1; -} -function nms_BlockReed_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_reed.$itemID; -} -function nms_BlockJukeBox() { - nms_BlockContainer.call(this); - this.$theIcon9 = null; -} -function nms_BlockJukeBox__init_(var_0) { - var var_1 = new nms_BlockJukeBox(); - nms_BlockJukeBox__init_0(var_1, var_0); - return var_1; -} -function nms_BlockJukeBox__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$isBlockContainer = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockJukeBox_getIcon($this, $par1, $par2) { - return $par1 != 1 ? $this.$blockIcon : $this.$theIcon9; -} -function nms_BlockJukeBox_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)) - return 0; - $ptr = 1; - case 1: - nms_BlockJukeBox_ejectRecord($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $ptr); -} -function nms_BlockJukeBox_insertRecord($this, $par1World, $par2, $par3, $par4, $par5ItemStack) { - var $var6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5ItemStack = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote) { - $var6 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var6 !== null) { - var$7 = new nms_ItemStack; - var$8 = $par5ItemStack.$itemID0; - var$9 = $par5ItemStack.$stackSize; - var$10 = $par5ItemStack.$itemDamage; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = var$8; - var$7.$stackSize = var$9; - var$7.$itemDamage = var$10; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - if ($par5ItemStack.$stackTagCompound !== null) - var$7.$stackTagCompound = nms_NBTTagCompound_copy($par5ItemStack.$stackTagCompound); - $var6.$record = var$7; - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_TileEntity_onInventoryChanged($var6); - if ($rt_suspending()) { - break main; - } - var$10 = 1; - var$8 = 2; - $ptr = 2; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$10, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5ItemStack, $var6, var$7, var$8, var$9, var$10, $ptr); -} -function nms_BlockJukeBox_ejectRecord($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, var$7, var$8, $var15, var$10, $var14, var$12, $var8, $var10, $var12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();var$12 = $thread.pop();$var14 = $thread.pop();var$10 = $thread.pop();$var15 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote) { - $var5 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var5 !== null) { - $var6 = $var5.$record; - if ($var6 !== null) { - var$7 = 1005; - var$8 = 0; - $var15 = null; - var$10 = 0; - if (var$10 < $par1World.$worldAccesses.$size0) { - $var14 = $par1World.$worldAccesses; - if (var$10 >= 0 && var$10 < $var14.$size0) { - $var14 = $var14.$array1.data[var$10]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1World); - $rt_throw($par1World); - } - $var14 = null; - var$10 = 0; - while (true) { - if (var$10 >= $par1World.$worldAccesses.$size0) { - $var5.$record = null; - $ptr = 1; - continue main; - } - $var15 = $par1World.$worldAccesses; - if (var$10 < 0) - break; - if (var$10 >= $var15.$size0) - break; - nms_RenderGlobal_playRecord($var15.$array1.data[var$10], $var14, $par2, $par3, $par4); - var$10 = var$10 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - } - return; - case 1: - nms_TileEntity_onInventoryChanged($var5); - if ($rt_suspending()) { - break main; - } - var$10 = 0; - var$12 = 2; - $ptr = 2; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$10, var$12); - if ($rt_suspending()) { - break main; - } - $var8 = Math.random() * 0.699999988079071 + 0.15000000596046448; - $var10 = Math.random() * 0.699999988079071 + 0.06000000238418579 + 0.6; - $var12 = Math.random() * 0.699999988079071 + 0.15000000596046448; - $var14 = new nms_ItemStack; - var$12 = $var6.$itemID0; - var$7 = $var6.$stackSize; - var$8 = $var6.$itemDamage; - $var14.$stackSize = 0; - $var14.$itemFrame = null; - $var14.$itemID0 = var$12; - $var14.$stackSize = var$7; - $var14.$itemDamage = var$8; - if ($var14.$itemDamage < 0) - $var14.$itemDamage = 0; - if ($var6.$stackTagCompound !== null) - $var14.$stackTagCompound = nms_NBTTagCompound_copy($var6.$stackTagCompound); - $var15 = nms_EntityItem__init_0($par1World, $par2 + $var8, $par3 + $var10, $par4 + $var12); - nms_DataWatcher_updateObject($var15.$dataWatcher, 10, $var14); - nms_DataWatcher_setObjectWatched($var15.$dataWatcher, 10); - $var15.$delayBeforeCanPickup = 10; - $par2 = nms_World_spawnEntityInWorld($par1World, $var15); - $var14 = $par1World.$entityList; - ju_HashMap_putImpl($var14.$backingMap, $var15, $var14); - if (!$par2) { - $par1World = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl($par1World.$backingMap, $var15, $par1World); - } - return; - case 3: - nms_RenderGlobal_playAuxSFX($var14, $var15, var$7, $par2, $par3, $par4, var$8); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - if (var$10 < $par1World.$worldAccesses.$size0) { - $var14 = $par1World.$worldAccesses; - if (var$10 >= 0 && var$10 < $var14.$size0) { - $var14 = $var14.$array1.data[var$10]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1World); - $rt_throw($par1World); - } - $var14 = null; - var$10 = 0; - while (true) { - if (var$10 >= $par1World.$worldAccesses.$size0) { - $var5.$record = null; - $ptr = 1; - continue main; - } - $var15 = $par1World.$worldAccesses; - if (var$10 < 0) - break; - if (var$10 >= $var15.$size0) - break; - nms_RenderGlobal_playRecord($var15.$array1.data[var$10], $var14, $par2, $par3, $par4); - var$10 = var$10 + 1 | 0; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, var$7, var$8, $var15, var$10, $var14, var$12, $var8, $var10, $var12, $ptr); -} -function nms_BlockJukeBox_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockJukeBox_ejectRecord($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $ptr); -} -function nms_BlockJukeBox_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - if (!$par1World.$isRemote) - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, 0); -} -function nms_BlockJukeBox_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityRecordPlayer; - $par1World.$blockMetadata = (-1); - return $par1World; -} -function nms_BlockJukeBox_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(1615)); - $this.$theIcon9 = $par1IconRegister.$registerIcon($rt_s(2120)); -} -function nms_BlockJukeBox_hasComparatorInputOverride($this) { - return 1; -} -function nms_BlockJukeBox_getComparatorInputOverride($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6; - $var6 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$record; - if ($var6 === null) - $par2 = 0; - else { - $par2 = $var6.$itemID0 + 1 | 0; - nms_Item_$callClinit(); - $par2 = $par2 - nms_Item_record13.$itemID | 0; - } - return $par2; -} -function nms_BlockFence() { - nms_Block.call(this); - this.$field_94464_a = null; -} -function nms_BlockFence__init_(var_0, var_1, var_2) { - var var_3 = new nms_BlockFence(); - nms_BlockFence__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_BlockFence__init_0($this, $par1, $par2Str, $par3Material) { - nms_Block__init_0($this, $par1, $par3Material); - $this.$field_94464_a = $par2Str; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockFence_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - var $var8, $var9, $var10, $var11, $var12, $var13, $var14, $var15; - $var8 = nms_BlockFence_canConnectFenceTo($this, $par1World, $par2, $par3, $par4 - 1 | 0); - $var9 = nms_BlockFence_canConnectFenceTo($this, $par1World, $par2, $par3, $par4 + 1 | 0); - $var10 = nms_BlockFence_canConnectFenceTo($this, $par1World, $par2 - 1 | 0, $par3, $par4); - $var11 = nms_BlockFence_canConnectFenceTo($this, $par1World, $par2 + 1 | 0, $par3, $par4); - $var12 = 0.375; - $var13 = 0.625; - $var14 = 0.375; - $var15 = 0.625; - if ($var8) - $var14 = 0.0; - if ($var9) - $var15 = 1.0; - if (!(!$var8 && !$var9)) { - $this.$minX0 = 0.375; - $this.$minY0 = 0.0; - $this.$minZ0 = $var14; - $this.$maxX0 = 0.625; - $this.$maxY0 = 1.5; - $this.$maxZ0 = $var15; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - } - $var14 = 0.375; - $var15 = 0.625; - if ($var10) - $var12 = 0.0; - if ($var11) - $var13 = 1.0; - a: { - if (!$var10 && !$var11) { - if ($var8) - break a; - if ($var9) - break a; - } - $this.$minX0 = $var12; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.375; - $this.$maxX0 = $var13; - $this.$maxY0 = 1.5; - $this.$maxZ0 = 0.625; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - } - if ($var8) - $var14 = 0.0; - if ($var9) - $var15 = 1.0; - $this.$minX0 = $var12; - $this.$minY0 = 0.0; - $this.$minZ0 = $var14; - $this.$maxX0 = $var13; - $this.$maxY0 = 1.0; - $this.$maxZ0 = $var15; -} -function nms_BlockFence_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var12; - $var5 = nms_BlockFence_canConnectFenceTo($this, $par1IBlockAccess, $par2, $par3, $par4 - 1 | 0); - $var6 = nms_BlockFence_canConnectFenceTo($this, $par1IBlockAccess, $par2, $par3, $par4 + 1 | 0); - $var7 = nms_BlockFence_canConnectFenceTo($this, $par1IBlockAccess, $par2 - 1 | 0, $par3, $par4); - $var8 = nms_BlockFence_canConnectFenceTo($this, $par1IBlockAccess, $par2 + 1 | 0, $par3, $par4); - $var9 = 0.375; - $var10 = 0.625; - $var11 = 0.375; - $var12 = 0.625; - if ($var5) - $var11 = 0.0; - if ($var6) - $var12 = 1.0; - if ($var7) - $var9 = 0.0; - if ($var8) - $var10 = 1.0; - $this.$minX0 = $var9; - $this.$minY0 = 0.0; - $this.$minZ0 = $var11; - $this.$maxX0 = $var10; - $this.$maxY0 = 1.0; - $this.$maxZ0 = $var12; -} -function nms_BlockFence_isOpaqueCube($this) { - return 0; -} -function nms_BlockFence_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockFence_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - return 0; -} -function nms_BlockFence_getRenderType($this) { - return 11; -} -function nms_BlockFence_canConnectFenceTo($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4); - if ($var5 != $this.$blockID) { - nms_Block_$callClinit(); - if ($var5 != nms_Block_fenceGate.$blockID) { - a: { - $var6 = nms_Block_blocksList.data[$var5]; - if ($var6 !== null) { - $par1IBlockAccess = $var6.$blockMaterial; - if ((!$par1IBlockAccess.$isTranslucent ? $par1IBlockAccess.$blocksMovement() : 0) && $var6.$renderAsNormalBlock()) { - $par1IBlockAccess = $var6.$blockMaterial; - nms_Material_$callClinit(); - if ($par1IBlockAccess === nms_Material_pumpkin) { - $par2 = 0; - break a; - } - $par2 = 1; - break a; - } - } - $par2 = 0; - } - return $par2; - } - } - return 1; -} -function nms_BlockFence_isIdAFence($par0) { - nms_Block_$callClinit(); - return $par0 != nms_Block_fence.$blockID && $par0 != nms_Block_netherFence.$blockID ? 0 : 1; -} -function nms_BlockFence_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 1; -} -function nms_BlockFence_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$field_94464_a); -} -function nms_BlockPumpkin() { - var a = this; nms_BlockDirectional.call(a); - a.$blockType1 = 0; - a.$field_94474_b = null; - a.$field_94475_c = null; -} -function nms_BlockPumpkin__init_(var_0, var_1) { - var var_2 = new nms_BlockPumpkin(); - nms_BlockPumpkin__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockPumpkin__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_pumpkin); - $this.$needsRandomTick = 1; - $this.$blockType1 = $par2; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockPumpkin_getIcon($this, $par1, $par2) { - return $par1 == 1 ? $this.$field_94474_b : !$par1 ? $this.$field_94474_b : $par2 == 2 && $par1 == 2 ? $this.$field_94475_c : $par2 == 3 && $par1 == 5 ? $this.$field_94475_c : !$par2 && $par1 == 3 ? $this.$field_94475_c : $par2 == 1 && $par1 == 4 ? $this.$field_94475_c : $this.$blockIcon; -} -function nms_BlockPumpkin_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, $var5, $var6, $var10, $var8, var$10, var$11, var$12, $var9, var$14, var$15, var$16, var$17, var$18, var$19, var$20, var$21, var$22, $var7, var$24, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$24 = $thread.pop();$var7 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();$var9 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();$var8 = $thread.pop();$var10 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = - $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - b: { - var$5 = $par3 - 1 | 0; - $var5 = nms_World_getBlockId($par1World, $par2, var$5, $par4); - nms_Block_$callClinit(); - if ($var5 == nms_Block_blockSnow.$blockID) { - $var6 = $par3 - 2 | 0; - if (nms_World_getBlockId($par1World, $par2, $var6, $par4) == nms_Block_blockSnow.$blockID) { - if (!$par1World.$isRemote) { - $var5 = 0; - $var10 = 0; - $var8 = 2; - $ptr = 1; - continue main; - } - $var10 = 0; - var$10 = $par2; - var$11 = $var6; - var$12 = $par4; - if ($var10 >= 120) - break b; - $var9 = $rt_s(866); - var$14 = var$10 + Math.random(); - var$15 = var$11 + ju_Random_nextDouble($par1World.$rand) * 2.5; - var$16 = var$12 + ju_Random_nextDouble($par1World.$rand); - var$17 = 0.0; - var$18 = 0.0; - var$19 = 0.0; - $ptr = 4; - continue main; - } - } - if (nms_World_getBlockId($par1World, $par2, var$5, $par4) == nms_Block_blockIron.$blockID) { - var$20 = $par3 - 2 | 0; - if (nms_World_getBlockId($par1World, $par2, var$20, $par4) == nms_Block_blockIron.$blockID) { - var$21 = $par2 - 1 | 0; - $var5 = nms_World_getBlockId($par1World, var$21, var$5, $par4) == nms_Block_blockIron.$blockID && nms_World_getBlockId($par1World, $par2 + 1 | 0, var$5, $par4) == nms_Block_blockIron.$blockID ? 1 : 0; - $var10 = $par4 - 1 | 0; - $var6 = nms_World_getBlockId($par1World, $par2, var$5, $var10) == nms_Block_blockIron.$blockID && nms_World_getBlockId($par1World, $par2, var$5, $par4 + 1 | 0) == nms_Block_blockIron.$blockID ? 1 : 0; - if ($var5) - break a; - if ($var6) - break a; - } - } - } - return; - } - $var6 = 0; - $var8 = 0; - var$22 = 2; - $ptr = 8; - continue main; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $var5, $var10, $var8); - if ($rt_suspending()) { - break main; - } - $var5 = 0; - $var10 = 0; - $var8 = 2; - $ptr = 2; - case 2: - nms_World_setBlock($par1World, $par2, var$5, $par4, $var5, $var10, $var8); - if ($rt_suspending()) { - break main; - } - $var8 = 0; - $var5 = 0; - $var10 = 2; - $ptr = 3; - case 3: - nms_World_setBlock($par1World, $par2, $var6, $par4, $var8, $var5, $var10); - if ($rt_suspending()) { - break main; - } - $var9 = new nms_EntitySnowman; - nms_EntityLiving__init_0($var9); - $var9.$hasAttacked = 0; - $var9.$fleeingTick = 0; - nms_Entity_setSize($var9, 0.4000000059604645, 1.7999999523162842); - $var9.$worldObj = $par1World; - $var9.$dimension = $par1World.$provider.$dimensionId; - nms_Entity_setLocationAndAngles($var9, $par2 + 0.5, $par3 - 1.95, $par4 + 0.5, 0.0, 0.0); - $var5 = nms_World_spawnEntityInWorld($par1World, $var9); - $var7 = $par1World.$entityList; - ju_HashMap_putImpl($var7.$backingMap, $var9, $var7); - if (!$var5) { - $var7 = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl($var7.$backingMap, $var9, $var7); - } - $var5 = 0; - $ptr = 5; - continue main; - case 4: - nms_World_spawnParticle($par1World, $var9, var$14, var$15, var$16, var$17, var$18, var$19); - if ($rt_suspending()) { - break main; - } - $var10 = $var10 + 1 | 0; - if ($var10 >= 120) - return; - $var9 = $rt_s(866); - var$14 = var$10 + Math.random(); - var$15 = var$11 + ju_Random_nextDouble($par1World.$rand) * 2.5; - var$16 = var$12 + ju_Random_nextDouble($par1World.$rand); - var$17 = 0.0; - var$18 = 0.0; - var$19 = 0.0; - continue main; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $var5); - if ($rt_suspending()) { - break main; - } - $par3 = 0; - $ptr = 6; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$5, $par4, $par3); - if ($rt_suspending()) { - break main; - } - $par3 = 0; - $ptr = 7; - case 7: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $var6, $par4, $par3); - if ($rt_suspending()) { - break main; - } - $var10 = 0; - var$10 = $par2; - var$11 = $var6; - var$12 = $par4; - if ($var10 >= 120) - return; - $var9 = $rt_s(866); - var$14 = var$10 + Math.random(); - var$15 = var$11 + ju_Random_nextDouble($par1World.$rand) * 2.5; - var$16 = var$12 + ju_Random_nextDouble($par1World.$rand); - var$17 = 0.0; - var$18 = 0.0; - var$19 = 0.0; - $ptr = 4; - continue main; - case 8: - nms_World_setBlock($par1World, $par2, $par3, $par4, $var6, $var8, var$22); - if ($rt_suspending()) { - break main; - } - $var6 = 0; - $var8 = 0; - var$22 = 2; - $ptr = 9; - case 9: - nms_World_setBlock($par1World, $par2, var$5, $par4, $var6, $var8, var$22); - if ($rt_suspending()) { - break main; - } - $var6 = 0; - $var8 = 0; - var$22 = 2; - $ptr = 10; - case 10: - nms_World_setBlock($par1World, $par2, var$20, $par4, $var6, $var8, var$22); - if ($rt_suspending()) { - break main; - } - if (!$var5) { - $var6 = 0; - $var8 = 0; - var$22 = 2; - $ptr = 11; - continue main; - } - $var6 = 0; - $var8 = 0; - var$22 = 2; - $ptr = 13; - continue main; - case 11: - nms_World_setBlock($par1World, $par2, var$5, $var10, $var6, $var8, var$22); - if ($rt_suspending()) { - break main; - } - $var6 = $par4 + 1 | 0; - $var8 = 0; - var$22 = 0; - var$24 = 2; - $ptr = 12; - case 12: - nms_World_setBlock($par1World, $par2, var$5, $var6, $var8, var$22, var$24); - if ($rt_suspending()) { - break main; - } - $var7 = nms_EntityIronGolem__init_0(); - nms_Entity_setWorld($var7, $par1World); - nms_EntityIronGolem_setPlayerCreated($var7, 1); - var$11 = $par2; - var$14 = var$11 + 0.5; - var$16 = $par3 - 1.95; - var$15 = $par4; - nms_Entity_setLocationAndAngles($var7, var$14, var$16, var$15 + 0.5, 0.0, 0.0); - nms_WorldClient_spawnEntityInWorld($par1World, $var7); - $var8 = 0; - var$12 = var$20; - if ($var8 >= 120) { - $var6 = 0; - $ptr = 15; - continue main; - } - $var9 = $rt_s(863); - var$16 = var$11 + ju_Random_nextDouble($par1World.$rand); - var$17 = var$12 + ju_Random_nextDouble($par1World.$rand) * 3.9; - var$18 = var$15 + ju_Random_nextDouble($par1World.$rand); - var$19 = 0.0; - var$10 = 0.0; - var$14 = 0.0; - $ptr = 18; - continue main; - case 13: - nms_World_setBlock($par1World, var$21, var$5, $par4, $var6, $var8, var$22); - if ($rt_suspending()) { - break main; - } - $var6 = $par2 + 1 | 0; - $var8 = 0; - var$22 = 0; - var$24 = 2; - $ptr = 14; - case 14: - nms_World_setBlock($par1World, $var6, var$5, $par4, $var8, var$22, var$24); - if ($rt_suspending()) { - break main; - } - $var7 = nms_EntityIronGolem__init_0(); - nms_Entity_setWorld($var7, $par1World); - nms_EntityIronGolem_setPlayerCreated($var7, 1); - var$11 = $par2; - var$14 = var$11 + 0.5; - var$16 = $par3 - 1.95; - var$15 = $par4; - nms_Entity_setLocationAndAngles($var7, var$14, var$16, var$15 + 0.5, 0.0, 0.0); - nms_WorldClient_spawnEntityInWorld($par1World, $var7); - $var8 = 0; - var$12 = var$20; - if ($var8 >= 120) { - $var6 = 0; - $ptr = 15; - continue main; - } - $var9 = $rt_s(863); - var$16 = var$11 + ju_Random_nextDouble($par1World.$rand); - var$17 = var$12 + ju_Random_nextDouble($par1World.$rand) * 3.9; - var$18 = var$15 + ju_Random_nextDouble($par1World.$rand); - var$19 = 0.0; - var$10 = 0.0; - var$14 = 0.0; - $ptr = 18; - continue main; - case 15: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $var6); - if ($rt_suspending()) { - break main; - } - $par3 = 0; - $ptr = 16; - case 16: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$5, $par4, $par3); - if ($rt_suspending()) { - break main; - } - $par3 = 0; - $ptr = 17; - case 17: - nms_World_notifyBlockChange($par1World, $par2, var$20, $par4, $par3); - if ($rt_suspending()) { - break main; - } - if (!$var5) { - $par3 = 0; - $ptr = 19; - continue main; - } - $par3 = 0; - $ptr = 21; - continue main; - case 18: - nms_World_spawnParticle($par1World, $var9, var$16, var$17, var$18, var$19, var$10, var$14); - if ($rt_suspending()) { - break main; - } - $var8 = $var8 + 1 | 0; - if ($var8 >= 120) { - $var6 = 0; - $ptr = 15; - continue main; - } - $var9 = $rt_s(863); - var$16 = var$11 + ju_Random_nextDouble($par1World.$rand); - var$17 = var$12 + ju_Random_nextDouble($par1World.$rand) * 3.9; - var$18 = var$15 + ju_Random_nextDouble($par1World.$rand); - var$19 = 0.0; - var$10 = 0.0; - var$14 = 0.0; - continue main; - case 19: - nms_World_notifyBlockChange($par1World, $par2, var$5, $var10, $par3); - if ($rt_suspending()) { - break main; - } - $par3 = $par4 + 1 | 0; - $par4 = 0; - $ptr = 20; - case 20: - nms_World_notifyBlockChange($par1World, $par2, var$5, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - case 21: - nms_World_notifyBlockChange($par1World, var$21, var$5, $par4, $par3); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - $par3 = 0; - $ptr = 22; - case 22: - nms_World_notifyBlockChange($par1World, $par2, var$5, $par4, $par3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, $var5, $var6, $var10, $var8, var$10, var$11, var$12, $var9, var$14, var$15, var$16, var$17, var$18, var$19, var$20, var$21, var$22, $var7, var$24, $ptr); -} -function nms_BlockPumpkin_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var $var5; - a: { - b: { - $var5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - if ($var5) { - nms_Block_$callClinit(); - if (!nms_Block_blocksList.data[$var5].$blockMaterial.$replaceable) - break b; - } - $par3 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par3, $par4))) { - $par2 = 1; - break a; - } - } - $par2 = 0; - } - return $par2; -} -function nms_BlockPumpkin_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, $var7, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 2.5; - $var7 = var$7 | 0; - if (var$7 < $var7) - $var7 = $var7 - 1 | 0; - $var7 = $var7 & 3; - var$9 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, $var7, var$9, $ptr); -} -function nms_BlockPumpkin_registerIcons($this, $par1IconRegister) { - $this.$field_94475_c = $par1IconRegister.$registerIcon(!$this.$blockType1 ? $rt_s(2121) : $rt_s(2122)); - $this.$field_94474_b = $par1IconRegister.$registerIcon($rt_s(2123)); - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2124)); -} -function nms_BlockNetherrack() { - nms_Block.call(this); -} -function nms_BlockNetherrack__init_(var_0) { - var var_1 = new nms_BlockNetherrack(); - nms_BlockNetherrack__init_0(var_1, var_0); - return var_1; -} -function nms_BlockNetherrack__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockSoulSand() { - nms_Block.call(this); -} -function nms_BlockSoulSand__init_(var_0) { - var var_1 = new nms_BlockSoulSand(); - nms_BlockSoulSand__init_0(var_1, var_0); - return var_1; -} -function nms_BlockSoulSand__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_sand); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockSoulSand_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6; - $par1World = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1World.$initialized) { - var$5 = new nms_AABBPool; - var$6 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$6); - var$6.$array1 = $rt_createArray(jl_Object, 10); - var$5.$listAABB = var$6; - var$5.$nextPoolIndex = 0; - var$5.$maxPoolIndex = 0; - var$5.$numCleans = 0; - var$5.$maxNumCleans = 300; - var$5.$numEntriesToRemove = 2000; - $par1World.$value7 = var$5; - $par1World.$initialized = 1; - } - return nms_AABBPool_getAABB($par1World.$value7, $par2, $par3, $par4, $par2 + 1 | 0, ($par3 + 1 | 0) - 0.125, $par4 + 1 | 0); -} -function nms_BlockSoulSand_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - $par5Entity.$motionX = $par5Entity.$motionX * 0.4; - $par5Entity.$motionZ = $par5Entity.$motionZ * 0.4; -} -function nms_BlockGlowStone() { - nms_Block.call(this); -} -function nms_BlockGlowStone__init_(var_0, var_1) { - var var_2 = new nms_BlockGlowStone(); - nms_BlockGlowStone__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockGlowStone__init_0($this, $par1, $par2Material) { - nms_Block__init_0($this, $par1, $par2Material); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockGlowStone_quantityDroppedWithBonus($this, $par1, $par2Random) { - var var$3, var$4; - var$3 = 2 + (Math.random() * 3.0 | 0) | 0; - $par1 = $par1 + 1 | 0; - $par1 = var$3 + (Math.random() * $par1 | 0) | 0; - var$4 = 1; - if ($par1 >= var$4) - var$4 = $par1 <= 4 ? $par1 : 4; - return var$4; -} -function nms_BlockGlowStone_quantityDropped($this, $par1Random) { - return 2 + (Math.random() * 3.0 | 0) | 0; -} -function nms_BlockGlowStone_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_lightStoneDust.$itemID; -} -function nms_BlockPortal() { - nms_BlockBreakable.call(this); -} -function nms_BlockPortal__init_(var_0) { - var var_1 = new nms_BlockPortal(); - nms_BlockPortal__init_0(var_1, var_0); - return var_1; -} -function nms_BlockPortal__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_portal); - $this.$localFlag = 0; - $this.$breakableBlockIcon = $rt_s(716); - $this.$needsRandomTick = 1; -} -function nms_BlockPortal_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockPortal_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - if ($par1IBlockAccess.$getBlockId($par2 - 1 | 0, $par3, $par4) != $this.$blockID && $par1IBlockAccess.$getBlockId($par2 + 1 | 0, $par3, $par4) != $this.$blockID) { - $this.$minX0 = 0.375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.625; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.375; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.625; - } -} -function nms_BlockPortal_isOpaqueCube($this) { - return 0; -} -function nms_BlockPortal_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockPortal_tryToCreatePortal($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var10, var$8, var$9, $var7, $var8, $var8_0, var$13, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();var$13 = $thread.pop();$var8_0 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var10 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = 0; - $var6 = 0; - $var10 = nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4); - nms_Block_$callClinit(); - if (!($var10 != nms_Block_obsidian.$blockID && nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4) != nms_Block_obsidian.$blockID)) - $var5 = 1; - if (!(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0) != nms_Block_obsidian.$blockID && nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0) != nms_Block_obsidian.$blockID)) - $var6 = 1; - if ($var5 == $var6) - return 0; - var$8 = $par2 - $var5 | 0; - var$9 = $par4 - $var6 | 0; - if (nms_World_getBlockId($par1World, var$8, $par3, var$9)) { - var$8 = $par2; - var$9 = $par4; - } - $var7 = (-1); - a: while (true) { - $var8 = $rt_compare($var7, 2); - if ($var8 > 0) { - $par2 = 0; - while ($par2 < 2) { - $var8 = 0; - if ($var8 < 3) { - $var7 = var$8 + $rt_imul($var5, $par2) | 0; - $var8_0 = $par3 + $var8 | 0; - var$13 = var$9 + $rt_imul($var6, $par2) | 0; - $par4 = nms_Block_portal.$blockID; - $var9 = 0; - $var10 = 2; - $ptr = 1; - continue main; - } - $par2 = $par2 + 1 | 0; - } - return 1; - } - $var8_0 = (-1); - while (true) { - $var10 = $rt_compare($var8_0, 3); - if ($var10 > 0) - break; - $par2 = $rt_compare($var7, (-1)); - $var9 = $par2 && $var8 && $var8_0 != (-1) && $var10 ? 0 : 1; - b: { - if (!($par2 && $var8)) { - if ($var8_0 == (-1)) - break b; - if (!$var10) - break b; - } - $var10 = nms_World_getBlockId($par1World, var$8 + $rt_imul($var5, $var7) | 0, $par3 + $var8_0 | 0, var$9 + $rt_imul($var6, $var7) | 0); - if ($var9) { - if ($var10 == nms_Block_obsidian.$blockID) - break b; - else - return 0; - } - if ($var10 && $var10 != nms_Block_fire.$blockID) - break a; - } - $var8_0 = $var8_0 + 1 | 0; - } - $var7 = $var7 + 1 | 0; - } - return 0; - case 1: - nms_World_setBlock($par1World, $var7, $var8_0, var$13, $par4, $var9, $var10); - if ($rt_suspending()) { - break main; - } - $var8 = $var8 + 1 | 0; - while (true) { - if ($var8 < 3) { - $var7 = var$8 + $rt_imul($var5, $par2) | 0; - $var8_0 = $par3 + $var8 | 0; - var$13 = var$9 + $rt_imul($var6, $par2) | 0; - $par4 = nms_Block_portal.$blockID; - $var9 = 0; - $var10 = 2; - continue main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= 2) - break; - $var8 = 0; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, $var10, var$8, var$9, $var7, $var8, $var8_0, var$13, $var9, $ptr); -} -function nms_BlockPortal_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var11, $var8, $var10, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var11 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = 0; - $var7 = 1; - $var11 = $par2 - 1 | 0; - if (!(nms_World_getBlockId($par1World, $var11, $par3, $par4) != $this.$blockID && nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4) != $this.$blockID)) { - $var6 = 1; - $var7 = 0; - } - $var8 = $par3; - while (true) { - $var10 = $var8 - 1 | 0; - if (nms_World_getBlockId($par1World, $par2, $var10, $par4) != $this.$blockID) - break; - $var8 = $var8 + (-1) | 0; - } - $par5 = nms_World_getBlockId($par1World, $par2, $var10, $par4); - nms_Block_$callClinit(); - if ($par5 != nms_Block_obsidian.$blockID) { - $par5 = 0; - $var9 = 0; - $var10 = 3; - $ptr = 1; - continue main; - } - $var9 = 1; - while ($var9 < 4 && nms_World_getBlockId($par1World, $par2, $var8 + $var9 | 0, $par4) == $this.$blockID) { - $var9 = $var9 + 1 | 0; - } - if ($var9 == 3 && nms_World_getBlockId($par1World, $par2, $var8 + $var9 | 0, $par4) == nms_Block_obsidian.$blockID) { - $var10 = nms_World_getBlockId($par1World, $var11, $par3, $par4) != $this.$blockID && nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4) != $this.$blockID ? 0 : 1; - $var11 = nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0) != $this.$blockID && nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0) != $this.$blockID ? 0 : 1; - if ($var10 && $var11) { - $par5 = 0; - $var9 = 0; - $var10 = 3; - $ptr = 3; - continue main; - } - a: { - $par5 = $par2 + $var6 | 0; - $var9 = $par4 + $var7 | 0; - if (!(nms_World_getBlockId($par1World, $par5, $par3, $var9) == nms_Block_obsidian.$blockID && nms_World_getBlockId($par1World, $par2 - $var6 | 0, $par3, $par4 - $var7 | 0) == $this.$blockID)) { - if (nms_World_getBlockId($par1World, $par2 - $var6 | 0, $par3, $par4 - $var7 | 0) != nms_Block_obsidian.$blockID) - break a; - if (nms_World_getBlockId($par1World, $par5, $par3, $var9) != $this.$blockID) - break a; - } - return; - } - $par5 = 0; - $var9 = 0; - $var10 = 3; - $ptr = 4; - continue main; - } - $par5 = 0; - $var9 = 0; - $var10 = 3; - $ptr = 2; - continue main; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var9, $var10); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var9, $var10); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var9, $var10); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var9, $var10); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $var11, $var8, $var10, $var9, $ptr); -} -function nms_BlockPortal_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $var9, $var10, $var11; - if ($par1IBlockAccess.$getBlockId($par2, $par3, $par4) == $this.$blockID) - return 0; - $var6 = $par1IBlockAccess.$getBlockId($par2 - 1 | 0, $par3, $par4) == $this.$blockID && $par1IBlockAccess.$getBlockId($par2 - 2 | 0, $par3, $par4) != $this.$blockID ? 1 : 0; - $var7 = $par1IBlockAccess.$getBlockId($par2 + 1 | 0, $par3, $par4) == $this.$blockID && $par1IBlockAccess.$getBlockId($par2 + 2 | 0, $par3, $par4) != $this.$blockID ? 1 : 0; - $var8 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4 - 1 | 0) == $this.$blockID && $par1IBlockAccess.$getBlockId($par2, $par3, $par4 - 2 | 0) != $this.$blockID ? 1 : 0; - $var9 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4 + 1 | 0) == $this.$blockID && $par1IBlockAccess.$getBlockId($par2, $par3, $par4 + 2 | 0) != $this.$blockID ? 1 : 0; - $var10 = !$var6 && !$var7 ? 0 : 1; - $var11 = !$var8 && !$var9 ? 0 : 1; - return $var10 && $par5 == 4 ? 1 : $var10 && $par5 == 5 ? 1 : $var11 && $par5 == 2 ? 1 : $var11 && $par5 == 3 ? 1 : 0; -} -function nms_BlockPortal_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockPortal_getRenderBlockPass($this) { - return 1; -} -function nms_BlockPortal_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - if ($par5Entity.$ridingEntity === null && $par5Entity.$riddenByEntity === null) - nms_Entity_setInPortal($par5Entity); -} -function nms_BlockPortal_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var var$6, var$7, var$8, var$9, var$10, var$11, $var6, var$13, var$14, var$15, var$16, var$17, $var7, $var9, $var11, $var19, var$22, var$23, var$24, var$25, var$26, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$26 = $thread.pop();var$25 = $thread.pop();var$24 = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();$var19 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var6 = $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();$par5Random - = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!(Math.random() * 100.0 | 0)) { - var$6 = $par2 + 0.5; - var$7 = $par3 + 0.5; - var$8 = $par4 + 0.5; - $par5Random = $rt_s(2125); - var$9 = 0.5; - var$10 = Math.random() * 0.4000000059604645 + 0.800000011920929; - var$11 = 0; - $ptr = 1; - continue main; - } - $var6 = 0; - var$13 = $par2; - var$14 = $par3; - var$15 = $par4; - var$6 = 2.0; - var$16 = $par2 - 1 | 0; - var$11 = $par2 + 1 | 0; - var$7 = $par2 + 0.5; - var$17 = $par4 + 0.5; - while ($var6 < 4) { - $var7 = var$13 + Math.random(); - $var9 = var$14 + Math.random(); - $var11 = var$15 + Math.random(); - $var19 = ((Math.random() * var$6 | 0) * 2 | 0) - 1 | 0; - var$22 = (Math.random() - 0.5) * 0.5; - var$23 = (Math.random() - 0.5) * 0.5; - var$24 = (Math.random() - 0.5) * 0.5; - if (nms_World_getBlockId($par1World, var$16, $par3, $par4) != $this.$blockID && nms_World_getBlockId($par1World, var$11, $par3, $par4) != $this.$blockID) { - $var7 = var$7 + 0.25 * $var19; - var$22 = Math.random() * 2.0 * $var19; - } else { - $var11 = var$17 + 0.25 * $var19; - var$24 = Math.random() * 2.0 * $var19; - } - $par5Random = $rt_s(716); - var$25 = 0; - if (var$25 < $par1World.$worldAccesses.$size0) { - var$26 = $par1World.$worldAccesses; - if (var$25 >= 0 && var$25 < var$26.$size0) { - var$26 = var$26.$array1.data[var$25]; - $ptr = 2; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var6 = $var6 + 1 | 0; - } - return; - case 1: - nms_WorldClient_playSound($par1World, var$6, var$7, var$8, $par5Random, var$9, var$10, var$11); - if ($rt_suspending()) { - break main; - } - $var6 = 0; - var$13 = $par2; - var$14 = $par3; - var$15 = $par4; - var$6 = 2.0; - var$16 = $par2 - 1 | 0; - var$11 = $par2 + 1 | 0; - var$7 = $par2 + 0.5; - var$17 = $par4 + 0.5; - while ($var6 < 4) { - $var7 = var$13 + Math.random(); - $var9 = var$14 + Math.random(); - $var11 = var$15 + Math.random(); - $var19 = ((Math.random() * var$6 | 0) * 2 | 0) - 1 | 0; - var$22 = (Math.random() - 0.5) * 0.5; - var$23 = (Math.random() - 0.5) * 0.5; - var$24 = (Math.random() - 0.5) * 0.5; - if (nms_World_getBlockId($par1World, var$16, $par3, $par4) != $this.$blockID && nms_World_getBlockId($par1World, var$11, $par3, $par4) != $this.$blockID) { - $var7 = var$7 + 0.25 * $var19; - var$22 = Math.random() * 2.0 * $var19; - } else { - $var11 = var$17 + 0.25 * $var19; - var$24 = Math.random() * 2.0 * $var19; - } - $par5Random = $rt_s(716); - var$25 = 0; - if (var$25 < $par1World.$worldAccesses.$size0) { - var$26 = $par1World.$worldAccesses; - if (var$25 >= 0 && var$25 < var$26.$size0) { - var$26 = var$26.$array1.data[var$25]; - $ptr = 2; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var6 = $var6 + 1 | 0; - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$26, $par5Random, $var7, $var9, $var11, var$22, var$23, var$24); - if ($rt_suspending()) { - break main; - } - var$25 = var$25 + 1 | 0; - while (true) { - if (var$25 < $par1World.$worldAccesses.$size0) { - var$26 = $par1World.$worldAccesses; - if (var$25 >= 0 && var$25 < var$26.$size0) { - var$26 = var$26.$array1.data[var$25]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var6 = $var6 + 1 | 0; - if ($var6 >= 4) - break; - $var7 = var$13 + Math.random(); - $var9 = var$14 + Math.random(); - $var11 = var$15 + Math.random(); - $var19 = ((Math.random() * var$6 | 0) * 2 | 0) - 1 | 0; - var$22 = (Math.random() - 0.5) * 0.5; - var$23 = (Math.random() - 0.5) * 0.5; - var$24 = (Math.random() - 0.5) * 0.5; - if (nms_World_getBlockId($par1World, var$16, $par3, $par4) != $this.$blockID && nms_World_getBlockId($par1World, var$11, $par3, $par4) != $this.$blockID) { - $var7 = var$7 + 0.25 * $var19; - var$22 = Math.random() * 2.0 * $var19; - } else { - $var11 = var$17 + 0.25 * $var19; - var$24 = Math.random() * 2.0 * $var19; - } - $par5Random = $rt_s(716); - var$25 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, var$6, var$7, var$8, var$9, var$10, var$11, $var6, var$13, var$14, var$15, var$16, var$17, $var7, $var9, $var11, $var19, var$22, var$23, var$24, var$25, var$26, $ptr); -} -function nms_BlockPortal_idPicked($this, $par1World, $par2, $par3, $par4) { - return 0; -} -function nms_BlockCake() { - var a = this; nms_Block.call(a); - a.$cakeTopIcon = null; - a.$cakeBottomIcon = null; - a.$field_94382_c = null; -} -function nms_BlockCake__init_(var_0) { - var var_1 = new nms_BlockCake(); - nms_BlockCake__init_0(var_1, var_0); - return var_1; -} -function nms_BlockCake__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_cake); - $this.$needsRandomTick = 1; -} -function nms_BlockCake_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - $this.$minX0 = (1 + ($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) * 2 | 0) | 0) / 16.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.5; - $this.$maxZ0 = 0.9375; -} -function nms_BlockCake_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.5; - $this.$maxZ0 = 0.9375; -} -function nms_BlockCake_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var $var7, var$6, var$7; - $var7 = (1 + (nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) * 2 | 0) | 0) / 16.0; - var$6 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$6.$initialized) { - $par1World = new nms_AABBPool; - var$7 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$7); - var$7.$array1 = $rt_createArray(jl_Object, 10); - $par1World.$listAABB = var$7; - $par1World.$nextPoolIndex = 0; - $par1World.$maxPoolIndex = 0; - $par1World.$numCleans = 0; - $par1World.$maxNumCleans = 300; - $par1World.$numEntriesToRemove = 2000; - var$6.$value7 = $par1World; - var$6.$initialized = 1; - } - return nms_AABBPool_getAABB(var$6.$value7, $par2 + $var7, $par3, $par4 + 0.0625, ($par2 + 1 | 0) - 0.0625, $par3 + 0.5 - 0.0625, ($par4 + 1 | 0) - 0.0625); -} -function nms_BlockCake_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var $var7, var$6, var$7; - $var7 = (1 + (nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) * 2 | 0) | 0) / 16.0; - $par1World = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1World.$initialized) { - var$6 = new nms_AABBPool; - var$7 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$7); - var$7.$array1 = $rt_createArray(jl_Object, 10); - var$6.$listAABB = var$7; - var$6.$nextPoolIndex = 0; - var$6.$maxPoolIndex = 0; - var$6.$numCleans = 0; - var$6.$maxNumCleans = 300; - var$6.$numEntriesToRemove = 2000; - $par1World.$value7 = var$6; - $par1World.$initialized = 1; - } - return nms_AABBPool_getAABB($par1World.$value7, $par2 + $var7, $par3, $par4 + 0.0625, ($par2 + 1 | 0) - 0.0625, $par3 + 0.5, ($par4 + 1 | 0) - 0.0625); -} -function nms_BlockCake_getIcon($this, $par1, $par2) { - return $par1 == 1 ? $this.$cakeTopIcon : !$par1 ? $this.$cakeBottomIcon : $par2 > 0 && $par1 == 4 ? $this.$field_94382_c : $this.$blockIcon; -} -function nms_BlockCake_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2126)); - $this.$field_94382_c = $par1IconRegister.$registerIcon($rt_s(2127)); - $this.$cakeTopIcon = $par1IconRegister.$registerIcon($rt_s(2128)); - $this.$cakeBottomIcon = $par1IconRegister.$registerIcon($rt_s(2129)); -} -function nms_BlockCake_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockCake_isOpaqueCube($this) { - return 0; -} -function nms_BlockCake_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockCake_eatCakeSlice($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $ptr); -} -function nms_BlockCake_onBlockClicked($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockCake_eatCakeSlice($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $ptr); -} -function nms_BlockCake_eatCakeSlice($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - var $var6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_EntityPlayer_canEat($par5EntityPlayer, 0)) - return; - nms_FoodStats_addStats($par5EntityPlayer.$foodStats, 2, 0.10000000149011612); - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) + 1 | 0; - if ($var6 < 6) { - var$7 = 2; - $ptr = 1; - continue main; - } - var$7 = 0; - $var6 = 0; - var$8 = 3; - $ptr = 2; - continue main; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var6, var$7); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$7, $var6, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $var6, var$7, var$8, $ptr); -} -function nms_BlockCake_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - return (var$5 && !nms_Block_blocksList.data[var$5].$blockMaterial.$replaceable ? 0 : 1) ? nms_BlockCake_canBlockStay($this, $par1World, $par2, $par3, $par4) : 0; -} -function nms_BlockCake_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_BlockCake_canBlockStay($this, $par1World, $par2, $par3, $par4)) - return; - $par5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockCake_canBlockStay($this, $par1World, $par2, $par3, $par4) { - $par2 = nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4); - if (!$par2) { - nms_Material_$callClinit(); - $par1World = nms_Material_air; - } else { - nms_Block_$callClinit(); - $par1World = nms_Block_blocksList.data[$par2].$blockMaterial; - } - return $par1World.$isSolid(); -} -function nms_BlockCake_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockCake_idDropped($this, $par1, $par2Random, $par3) { - return 0; -} -function nms_BlockCake_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_cake.$itemID; -} -function nms_BlockRedstoneLogic() { - nms_BlockDirectional.call(this); - this.$isRepeaterPowered = 0; -} -function nms_BlockRedstoneLogic_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockRedstoneLogic_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$5, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$5, $par4))) - $par2 = 0; - else { - $par2 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - $par2 = $par2 && !nms_Block_blocksList.data[$par2].$blockMaterial.$replaceable ? 0 : 1; - } - return $par2; -} -function nms_BlockRedstoneLogic_canBlockStay($this, $par1World, $par2, $par3, $par4) { - $par3 = $par3 - 1 | 0; - nms_Block_$callClinit(); - return !nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)) ? 0 : 1; -} -function nms_BlockRedstoneLogic_getIcon($this, $par1, $par2) { - var var$3; - if ($par1) { - if ($par1 == 1) - var$3 = $this.$blockIcon; - else { - nms_Block_$callClinit(); - var$3 = nms_Block_stoneDoubleSlab.$getIcon(1, 0); - } - } else if (!$this.$isRepeaterPowered) { - nms_Block_$callClinit(); - var$3 = nms_Block_torchRedstoneIdle.$getIcon($par1, 0); - } else { - nms_Block_$callClinit(); - var$3 = nms_Block_torchRedstoneActive.$getIcon($par1, 0); - } - return var$3; -} -function nms_BlockRedstoneLogic_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon(!$this.$isRepeaterPowered ? $rt_s(2130) : $rt_s(2131)); -} -function nms_BlockRedstoneLogic_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $par5 && $par5 != 1 ? 1 : 0; -} -function nms_BlockRedstoneLogic_func_96470_c($this, $par1) { - return $this.$isRepeaterPowered; -} -function nms_BlockRedstoneLogic_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return nms_BlockRedstoneLogic_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5); -} -function nms_BlockRedstoneLogic_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $var6 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - if (!$this.$func_96470_c($var6)) - return 0; - $var7 = $var6 & 3; - return !$var7 && $par5 == 3 ? $this.$func_94480_d($par1IBlockAccess, $par2, $par3, $par4, $var6) : $var7 == 1 && $par5 == 4 ? $this.$func_94480_d($par1IBlockAccess, $par2, $par3, $par4, $var6) : $var7 == 2 && $par5 == 2 ? $this.$func_94480_d($par1IBlockAccess, $par2, $par3, $par4, $var6) : $var7 == 3 && $par5 == 5 ? $this.$func_94480_d($par1IBlockAccess, $par2, $par3, $par4, $var6) : 0; -} -function nms_BlockRedstoneLogic_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (!nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$6, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$6, $par4)) ? 0 : 1) { - $this.$func_94479_f($par1World, $par2, $par3, $par4, $par5); - return; - } - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - var$7 = 0; - var$8 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par5 = $par2 + 1 | 0; - var$7 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par5, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - $par5 = $par2 - 1 | 0; - var$7 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par5, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - $par5 = $par4 + 1 | 0; - var$7 = $this.$blockID; - $ptr = 4; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par5, var$7); - if ($rt_suspending()) { - break main; - } - $par5 = $par4 - 1 | 0; - var$7 = $this.$blockID; - $ptr = 5; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par5, var$7); - if ($rt_suspending()) { - break main; - } - $par5 = $this.$blockID; - $ptr = 6; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, var$6, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 7; - case 7: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, var$8, $ptr); -} -function nms_BlockRedstoneLogic_func_94479_f($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7; - a: { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if (!$this.$func_94476_e($par1World, $par2, $par3, $par4, $var6)) { - $var7 = $this.$func_94478_d($par1World, $par2, $par3, $par4, $var6); - if (!($this.$isRepeaterPowered && !$var7)) { - if ($this.$isRepeaterPowered) - break a; - if (!$var7) - break a; - } - nms_BlockRedstoneLogic_func_83011_d($this, $par1World, $par2, $par3, $par4, $var6); - $this.$func_94481_j_($var6); - } - } -} -function nms_BlockRedstoneLogic_func_94476_e($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 0; -} -function nms_BlockRedstoneLogic_func_94478_d($this, $par1World, $par2, $par3, $par4, $par5) { - return $this.$getInputStrength($par1World, $par2, $par3, $par4, $par5) <= 0 ? 0 : 1; -} -function nms_BlockRedstoneLogic_getInputStrength($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $var9; - $var6 = $par5 & 3; - $var7 = $par2 + nms_Direction_offsetX.data[$var6] | 0; - $var8 = $par4 + nms_Direction_offsetZ.data[$var6] | 0; - $var9 = nms_World_getIndirectPowerLevelTo($par1World, $var7, $par3, $var8, nms_Direction_directionToFacing.data[$var6]); - if ($var9 < 15) { - $par2 = nms_World_getBlockId($par1World, $var7, $par3, $var8); - nms_Block_$callClinit(); - $par2 = $par2 != nms_Block_redstoneWire.$blockID ? 0 : nms_World_getBlockMetadata($par1World, $var7, $par3, $var8); - if ($var9 > $par2) - $par2 = $var9; - $var9 = $par2; - } - return $var9; -} -function nms_BlockRedstoneLogic_func_94482_f($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - switch ($par5 & 3) { - case 0: - case 2: - $par5 = nms_BlockRedstoneLogic_func_94488_g($this, $par1IBlockAccess, $par2 - 1 | 0, $par3, $par4, 4); - $par2 = nms_BlockRedstoneLogic_func_94488_g($this, $par1IBlockAccess, $par2 + 1 | 0, $par3, $par4, 5); - if ($par5 > $par2) - $par2 = $par5; - return $par2; - case 1: - case 3: - $par5 = nms_BlockRedstoneLogic_func_94488_g($this, $par1IBlockAccess, $par2, $par3, $par4 + 1 | 0, 3); - $par2 = nms_BlockRedstoneLogic_func_94488_g($this, $par1IBlockAccess, $par2, $par3, $par4 - 1 | 0, 2); - if ($par5 > $par2) - $par2 = $par5; - return $par2; - default: - } - return 0; -} -function nms_BlockRedstoneLogic_func_94488_g($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - $var6 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4); - if (!$this.$func_94477_d($var6)) - $par2 = 0; - else { - nms_Block_$callClinit(); - $par2 = $var6 != nms_Block_redstoneWire.$blockID ? $par1IBlockAccess.$isBlockProvidingPowerTo($par2, $par3, $par4, $par5) : $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - } - return $par2; -} -function nms_BlockRedstoneLogic_canProvidePower($this) { - return 1; -} -function nms_BlockRedstoneLogic_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, $var8, $var7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7 = $thread.pop();$var8 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - $var8 = var$7 | 0; - if (var$7 < $var8) - $var8 = $var8 - 1 | 0; - $var7 = (($var8 & 3) + 2 | 0) % 4 | 0; - $var8 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, $var8); - if ($rt_suspending()) { - break main; - } - $this.$func_94478_d($par1World, $par2, $par3, $par4, $var7); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, $var8, $var7, $ptr); -} -function nms_BlockRedstoneLogic_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockRedstoneLogic_func_94483_i_($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $ptr); -} -function nms_BlockRedstoneLogic_func_94483_i_($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6, 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();var$6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 3; - if ($var5 == 1) { - var$6 = $par2 + 1 | 0; - var$7 = $this.$blockID; - if (!$par1World.$isRemote) { - var$8 = nms_World_getBlockId($par1World, var$6, $par3, $par4); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8]; - if (var$9 !== null) { - $ptr = 3; - continue main; - } - } - var$7 = $this.$blockID; - var$8 = 4; - $ptr = 1; - continue main; - } - if ($var5 == 3) { - var$6 = $par2 - 1 | 0; - var$7 = $this.$blockID; - if (!$par1World.$isRemote) { - var$8 = nms_World_getBlockId($par1World, var$6, $par3, $par4); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8]; - if (var$9 !== null) { - $ptr = 5; - continue main; - } - } - var$7 = $this.$blockID; - var$8 = 5; - $ptr = 2; - continue main; - } - if ($var5 == 2) { - var$6 = $par4 + 1 | 0; - var$7 = $this.$blockID; - if (!$par1World.$isRemote) { - var$8 = nms_World_getBlockId($par1World, $par2, $par3, var$6); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8]; - if (var$9 !== null) { - $ptr = 7; - continue main; - } - } - var$7 = $this.$blockID; - var$8 = 2; - $ptr = 4; - continue main; - } - if ($var5) - return; - $par4 = $par4 - 1 | 0; - var$6 = $this.$blockID; - if (!$par1World.$isRemote) { - var$7 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$7]; - if (var$9 !== null) { - $ptr = 8; - continue main; - } - } - var$6 = $this.$blockID; - var$7 = 3; - $ptr = 6; - continue main; - case 1: - nms_World_notifyBlocksOfNeighborChange0($par1World, var$6, $par3, $par4, var$7, var$8); - if ($rt_suspending()) { - break main; - } - if ($var5 == 3) { - var$6 = $par2 - 1 | 0; - var$7 = $this.$blockID; - if (!$par1World.$isRemote) { - var$8 = nms_World_getBlockId($par1World, var$6, $par3, $par4); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8]; - if (var$9 !== null) { - $ptr = 5; - continue main; - } - } - var$7 = $this.$blockID; - var$8 = 5; - $ptr = 2; - continue main; - } - if ($var5 == 2) { - var$6 = $par4 + 1 | 0; - var$7 = $this.$blockID; - if (!$par1World.$isRemote) { - var$8 = nms_World_getBlockId($par1World, $par2, $par3, var$6); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8]; - if (var$9 !== null) { - $ptr = 7; - continue main; - } - } - var$7 = $this.$blockID; - var$8 = 2; - $ptr = 4; - continue main; - } - if ($var5) - return; - $par4 = $par4 - 1 | 0; - var$6 = $this.$blockID; - if (!$par1World.$isRemote) { - var$7 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$7]; - if (var$9 !== null) { - $ptr = 8; - continue main; - } - } - var$6 = $this.$blockID; - var$7 = 3; - $ptr = 6; - continue main; - case 2: - nms_World_notifyBlocksOfNeighborChange0($par1World, var$6, $par3, $par4, var$7, var$8); - if ($rt_suspending()) { - break main; - } - if ($var5 == 2) { - var$6 = $par4 + 1 | 0; - var$7 = $this.$blockID; - if (!$par1World.$isRemote) { - var$8 = nms_World_getBlockId($par1World, $par2, $par3, var$6); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8]; - if (var$9 !== null) { - $ptr = 7; - continue main; - } - } - var$7 = $this.$blockID; - var$8 = 2; - $ptr = 4; - continue main; - } - if ($var5) - return; - $par4 = $par4 - 1 | 0; - var$6 = $this.$blockID; - if (!$par1World.$isRemote) { - var$7 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$7]; - if (var$9 !== null) { - $ptr = 8; - continue main; - } - } - var$6 = $this.$blockID; - var$7 = 3; - $ptr = 6; - continue main; - case 3: - var$9.$onNeighborBlockChange($par1World, var$6, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - var$7 = $this.$blockID; - var$8 = 4; - $ptr = 1; - continue main; - case 4: - nms_World_notifyBlocksOfNeighborChange0($par1World, $par2, $par3, var$6, var$7, var$8); - if ($rt_suspending()) { - break main; - } - if ($var5) - return; - $par4 = $par4 - 1 | 0; - var$6 = $this.$blockID; - if (!$par1World.$isRemote) { - var$7 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$7]; - if (var$9 !== null) { - $ptr = 8; - continue main; - } - } - var$6 = $this.$blockID; - var$7 = 3; - $ptr = 6; - continue main; - case 5: - var$9.$onNeighborBlockChange($par1World, var$6, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - var$7 = $this.$blockID; - var$8 = 5; - $ptr = 2; - continue main; - case 6: - nms_World_notifyBlocksOfNeighborChange0($par1World, $par2, $par3, $par4, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - case 7: - var$9.$onNeighborBlockChange($par1World, $par2, $par3, var$6, var$7); - if ($rt_suspending()) { - break main; - } - var$7 = $this.$blockID; - var$8 = 2; - $ptr = 4; - continue main; - case 8: - var$9.$onNeighborBlockChange($par1World, $par2, $par3, $par4, var$6); - if ($rt_suspending()) { - break main; - } - var$6 = $this.$blockID; - var$7 = 3; - $ptr = 6; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, var$6, var$7, var$8, var$9, $ptr); -} -function nms_BlockRedstoneLogic_onBlockDestroyedByPlayer($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$isRepeaterPowered) - return; - var$6 = $par2 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, var$6, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $par5 = $par2 - 1 | 0; - var$6 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par5, $par3, $par4, var$6); - if ($rt_suspending()) { - break main; - } - $par5 = $par4 + 1 | 0; - var$6 = $this.$blockID; - $ptr = 3; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par5, var$6); - if ($rt_suspending()) { - break main; - } - $par5 = $par4 - 1 | 0; - var$6 = $this.$blockID; - $ptr = 4; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par5, var$6); - if ($rt_suspending()) { - break main; - } - $par5 = $par3 - 1 | 0; - var$6 = $this.$blockID; - $ptr = 5; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par5, $par4, var$6); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 6; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, $ptr); -} -function nms_BlockRedstoneLogic_isOpaqueCube($this) { - return 0; -} -function nms_BlockRedstoneLogic_func_94477_d($this, $par1) { - var $var2; - nms_Block_$callClinit(); - $var2 = nms_Block_blocksList.data[$par1]; - return $var2 !== null && $var2.$canProvidePower() ? 1 : 0; -} -function nms_BlockRedstoneLogic_func_94480_d($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 15; -} -function nms_BlockRedstoneLogic_func_94487_f($this, $par1) { - return $par1 != $this.$func_94485_e().$blockID && $par1 != $this.$func_94484_i().$blockID ? 0 : 1; -} -function nms_BlockRedstoneLogic_func_83011_d($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $var6 = $par5 & 3; - $var7 = nms_World_getBlockId($par1World, $par2 - nms_Direction_offsetX.data[$var6] | 0, $par3, $par4 - nms_Direction_offsetZ.data[$var6] | 0); - nms_Block_$callClinit(); - $par5 = $var7 != nms_Block_redstoneRepeaterActive.$blockID && $var7 != nms_Block_redstoneRepeaterIdle.$blockID ? 0 : 1; - if (!(!$par5 && !($var7 != nms_Block_redstoneComparatorActive.$blockID && $var7 != nms_Block_redstoneComparatorIdle.$blockID ? 0 : 1) ? 0 : 1)) - return 0; - return (nms_World_getBlockMetadata($par1World, $par2 - nms_Direction_offsetX.data[$var6] | 0, $par3, $par4 - nms_Direction_offsetZ.data[$var6] | 0) & 3) == $var6 ? 0 : 1; -} -function nms_BlockRedstoneRepeater() { - nms_BlockRedstoneLogic.call(this); -} -var nms_BlockRedstoneRepeater_repeaterTorchOffset = null; -var nms_BlockRedstoneRepeater_repeaterState = null; -function nms_BlockRedstoneRepeater__init_(var_0, var_1) { - var var_2 = new nms_BlockRedstoneRepeater(); - nms_BlockRedstoneRepeater__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockRedstoneRepeater__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$isRepeaterPowered = $par2; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.125; - $this.$maxZ0 = 1.0; -} -function nms_BlockRedstoneRepeater_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var10 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $par6 = ((($var10 & 12) >> 2) + 1 | 0) << 2 & 12 | $var10 & 3; - $var10 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var10); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $ptr); -} -function nms_BlockRedstoneRepeater_func_94481_j_($this, $par1) { - return nms_BlockRedstoneRepeater_repeaterState.data[($par1 & 12) >> 2] * 2 | 0; -} -function nms_BlockRedstoneRepeater_func_94485_e($this) { - nms_Block_$callClinit(); - return nms_Block_redstoneRepeaterActive; -} -function nms_BlockRedstoneRepeater_func_94484_i($this) { - nms_Block_$callClinit(); - return nms_Block_redstoneRepeaterIdle; -} -function nms_BlockRedstoneRepeater_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_redstoneRepeater.$itemID; -} -function nms_BlockRedstoneRepeater_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_redstoneRepeater.$itemID; -} -function nms_BlockRedstoneRepeater_getRenderType($this) { - return 15; -} -function nms_BlockRedstoneRepeater_func_94476_e($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return nms_BlockRedstoneLogic_func_94482_f($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) <= 0 ? 0 : 1; -} -function nms_BlockRedstoneRepeater_func_94477_d($this, $par1) { - var var$2; - nms_Block_$callClinit(); - var$2 = $par1 != nms_Block_redstoneRepeaterActive.$blockID && $par1 != nms_Block_redstoneRepeaterIdle.$blockID ? 0 : 1; - return !var$2 && !($par1 != nms_Block_redstoneComparatorActive.$blockID && $par1 != nms_Block_redstoneComparatorIdle.$blockID ? 0 : 1) ? 0 : 1; -} -function nms_BlockRedstoneRepeater_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $var6, $var7, $var8, $var10, $var12, $var14, $var16, $var18, var$14, var$15, var$16, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();$var18 = $thread.pop();$var16 = $thread.pop();$var14 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$isRepeaterPowered) { - a: { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = $var6 & 3; - $var8 = $par2 + 0.5 + (Math.random() - 0.5) * 0.2; - $var10 = $par3 + 0.4000000059604645 + (Math.random() - 0.5) * 0.2; - $var12 = $par4 + 0.5 + (Math.random() - 0.5) * 0.2; - $var14 = 0.0; - $var16 = 0.0; - if (!(Math.random() * 2.0 | 0)) - b: { - switch ($var7) { - case 0: - $var16 = (-0.3125); - break b; - case 1: - $var14 = 0.3125; - break b; - case 2: - $var16 = 0.3125; - break b; - case 3: - $var14 = (-0.3125); - break b; - default: - } - } - else { - $var18 = ($var6 & 12) >> 2; - switch ($var7) { - case 0: - $var16 = nms_BlockRedstoneRepeater_repeaterTorchOffset.data[$var18]; - break a; - case 1: - $var14 = -nms_BlockRedstoneRepeater_repeaterTorchOffset.data[$var18]; - break a; - case 2: - $var16 = -nms_BlockRedstoneRepeater_repeaterTorchOffset.data[$var18]; - break a; - case 3: - $var14 = nms_BlockRedstoneRepeater_repeaterTorchOffset.data[$var18]; - break a; - default: - } - } - } - $par5Random = $rt_s(862); - var$14 = $var8 + $var14; - $var16 = $var12 + $var16; - var$15 = 0.0; - $var12 = 0.0; - $var14 = 0.0; - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - var$16 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$16.$size0) { - var$16 = var$16.$array1.data[$par2]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$16, $par5Random, var$14, $var10, $var16, var$15, $var12, $var14); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$16 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$16.$size0) { - var$16 = var$16.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $var6, $var7, $var8, $var10, $var12, $var14, $var16, $var18, var$14, var$15, var$16, $ptr); -} -function nms_BlockRedstoneRepeater_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockRedstoneLogic_func_94483_i_($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $ptr); -} -function nms_BlockRedstoneRepeater__clinit_() { - var var$1, var$2; - var$1 = $rt_createDoubleArray(4); - var$2 = var$1.data; - var$2[0] = (-0.0625); - var$2[1] = 0.0625; - var$2[2] = 0.1875; - var$2[3] = 0.3125; - nms_BlockRedstoneRepeater_repeaterTorchOffset = var$1; - var$1 = $rt_createIntArray(4); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 2; - var$2[2] = 3; - var$2[3] = 4; - nms_BlockRedstoneRepeater_repeaterState = var$1; -} -function nms_BlockLockedChest() { - nms_Block.call(this); -} -function nms_BlockLockedChest__init_(var_0) { - var var_1 = new nms_BlockLockedChest(); - nms_BlockLockedChest__init_0(var_1, var_0); - return var_1; -} -function nms_BlockLockedChest__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); -} -function nms_BlockLockedChest_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - return 1; -} -function nms_BlockLockedChest_registerIcons($this, $par1IconRegister) { - return; -} -function nms_BlockTrapDoor() { - nms_Block.call(this); -} -function nms_BlockTrapDoor__init_(var_0, var_1) { - var var_2 = new nms_BlockTrapDoor(); - nms_BlockTrapDoor__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockTrapDoor__init_0($this, $par1, $par2Material) { - nms_Block__init_0($this, $par1, $par2Material); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockTrapDoor_isOpaqueCube($this) { - return 0; -} -function nms_BlockTrapDoor_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockTrapDoor_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - return (!(nms_World_getBlockMetadata($par1IBlockAccess, $par2, $par3, $par4) & 4) ? 0 : 1) ? 0 : 1; -} -function nms_BlockTrapDoor_getRenderType($this) { - return 0; -} -function nms_BlockTrapDoor_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockTrapDoor_setBlockBoundsForBlockRender($this, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); - return nms_Block_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockTrapDoor_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockTrapDoor_setBlockBoundsForBlockRender($this, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); - return nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockTrapDoor_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - nms_BlockTrapDoor_setBlockBoundsForBlockRender($this, $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4)); -} -function nms_BlockTrapDoor_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.40625; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.59375; - $this.$maxZ0 = 1.0; -} -function nms_BlockTrapDoor_setBlockBoundsForBlockRender($this, $par1) { - if (!($par1 & 8)) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.1875; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.8125; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } - if (!($par1 & 4) ? 0 : 1) { - $par1 = $par1 & 3; - if (!$par1) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.8125; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } - if ($par1 == 1) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.1875; - } - if ($par1 == 2) { - $this.$minX0 = 0.8125; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } - if ($par1 == 3) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.1875; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } - } -} -function nms_BlockTrapDoor_onBlockClicked($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - return; -} -function nms_BlockTrapDoor_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var var$10, $var10, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();$var10 = $thread.pop();var$10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$10 = $this.$blockMaterial; - nms_Material_$callClinit(); - if (var$10 === nms_Material_iron) - return 1; - $par6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) ^ 4; - $var10 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var10); - if ($rt_suspending()) { - break main; - } - $par6 = 1003; - var$12 = 0; - $var10 = 0; - if ($var10 >= $par1World.$worldAccesses.$size0) - return 1; - var$10 = $par1World.$worldAccesses; - if ($var10 >= 0 && $var10 < var$10.$size0) { - var$10 = var$10.$array1.data[$var10]; - $ptr = 2; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 2: - nms_RenderGlobal_playAuxSFX(var$10, $par5EntityPlayer, $par6, $par2, $par3, $par4, var$12); - if ($rt_suspending()) { - break main; - } - $var10 = $var10 + 1 | 0; - if ($var10 >= $par1World.$worldAccesses.$size0) - return 1; - var$10 = $par1World.$worldAccesses; - if ($var10 >= 0 && $var10 < var$10.$size0) { - var$10 = var$10.$array1.data[$var10]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, var$10, $var10, var$12, $ptr); -} -function nms_BlockTrapDoor_onPoweredBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, 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();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if ((($var6 & 4) <= 0 ? 0 : 1) == $par5) - return; - $par5 = $var6 ^ 4; - $var6 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $var6); - if ($rt_suspending()) { - break main; - } - var$7 = null; - $par5 = 1003; - var$8 = 0; - $var6 = 0; - if ($var6 >= $par1World.$worldAccesses.$size0) - return; - var$9 = $par1World.$worldAccesses; - if ($var6 >= 0 && $var6 < var$9.$size0) { - var$9 = var$9.$array1.data[$var6]; - $ptr = 2; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 2: - nms_RenderGlobal_playAuxSFX(var$9, var$7, $par5, $par2, $par3, $par4, var$8); - if ($rt_suspending()) { - break main; - } - $var6 = $var6 + 1 | 0; - if ($var6 >= $par1World.$worldAccesses.$size0) - return; - var$9 = $par1World.$worldAccesses; - if ($var6 >= 0 && $var6 < var$9.$size0) { - var$9 = var$9.$array1.data[$var6]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, var$7, var$8, var$9, $ptr); -} -function nms_BlockTrapDoor_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var9, 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();$var9 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if (!$par1World.$isRemote) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var9 = $var6 & 3; - var$8 = $var9 ? $par4 : $par4 + 1 | 0; - if ($var9 == 1) - var$8 = var$8 + (-1) | 0; - var$9 = $var9 != 2 ? $par2 : $par2 + 1 | 0; - if ($var9 == 3) - var$9 = var$9 + (-1) | 0; - if (!nms_BlockTrapDoor_isValidSupportBlock(nms_World_getBlockId($par1World, var$9, $par3, var$8))) { - $var9 = 0; - var$8 = 0; - var$9 = 3; - $ptr = 1; - continue main; - } - $var9 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4); - if ($var9) - break a; - if ($par5 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$par5].$canProvidePower()) - break a; - } - } - return; - } - $ptr = 2; - continue main; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $var9, var$8, var$9); - if ($rt_suspending()) { - break main; - } - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - a: { - $var9 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4); - if (!$var9) { - if ($par5 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$par5].$canProvidePower()) - break a; - } - return; - } - } - $ptr = 2; - case 2: - nms_BlockTrapDoor_onPoweredBlockChange($this, $par1World, $par2, $par3, $par4, $var9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var9, var$8, var$9, $ptr); -} -function nms_BlockTrapDoor_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3) { - nms_BlockTrapDoor_setBlockBoundsForBlockRender($this, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); - return nms_Block_collisionRayTrace($this, $par1World, $par2, $par3, $par4, $par5Vec3, $par6Vec3); -} -function nms_BlockTrapDoor_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var $var10; - $var10 = 0; - if ($par5 == 2) - $var10 = 0; - if ($par5 == 3) - $var10 = 1; - if ($par5 == 4) - $var10 = 2; - if ($par5 == 5) - $var10 = 3; - if ($par5 != 1 && $par5 && $par7 > 0.5) - $var10 = $var10 | 8; - return $var10; -} -function nms_BlockTrapDoor_canPlaceBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5) { - if (!$par5) - return 0; - if ($par5 == 1) - return 0; - if ($par5 == 2) - $par4 = $par4 + 1 | 0; - if ($par5 == 3) - $par4 = $par4 + (-1) | 0; - if ($par5 == 4) - $par2 = $par2 + 1 | 0; - if ($par5 == 5) - $par2 = $par2 + (-1) | 0; - return nms_BlockTrapDoor_isValidSupportBlock(nms_World_getBlockId($par1World, $par2, $par3, $par4)); -} -function nms_BlockTrapDoor_isValidSupportBlock($par0) { - var $var1, var$3; - if ($par0 <= 0) - return 0; - a: { - b: { - nms_Block_$callClinit(); - $var1 = nms_Block_blocksList.data[$par0]; - if ($var1 !== null) { - var$3 = $var1.$blockMaterial; - if ((!var$3.$isTranslucent ? var$3.$blocksMovement() : 0) && $var1.$renderAsNormalBlock()) - break b; - } - if ($var1 !== nms_Block_glowStone && !($var1 instanceof nms_BlockHalfSlab) && !($var1 instanceof nms_BlockStairs)) { - $par0 = 0; - break a; - } - } - $par0 = 1; - } - return $par0; -} -function nms_BlockSilverfish() { - nms_Block.call(this); -} -var nms_BlockSilverfish_silverfishStoneTypes = null; -function nms_BlockSilverfish__init_(var_0) { - var var_1 = new nms_BlockSilverfish(); - nms_BlockSilverfish__init_0(var_1, var_0); - return var_1; -} -function nms_BlockSilverfish__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_clay); - $this.$blockHardness = 0.0; - if ($this.$blockResistance < 0.0) - $this.$blockResistance = 0.0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockSilverfish_getIcon($this, $par1, $par2) { - var var$3; - if ($par2 == 1) { - nms_Block_$callClinit(); - var$3 = nms_Block_cobblestone.$getIcon($par1, 0); - } else if ($par2 != 2) { - nms_Block_$callClinit(); - var$3 = nms_Block_stone.$getIcon($par1, 0); - } else { - nms_Block_$callClinit(); - var$3 = nms_Block_stoneBrick.$getIcon($par1, 0); - } - return var$3; -} -function nms_BlockSilverfish_registerIcons($this, $par1IconRegister) { - return; -} -function nms_BlockSilverfish_onBlockDestroyedByPlayer($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - $var6 = new nms_EntitySilverfish; - nms_EntityLiving__init_0($var6); - $var6.$hasAttacked = 0; - $var6.$fleeingTick = 0; - $var6.$experienceValue = 5; - nms_Entity_setSize($var6, 0.30000001192092896, 0.699999988079071); - $var6.$moveSpeed = 0.6000000238418579; - $var6.$worldObj = $par1World; - $var6.$dimension = $par1World.$provider.$dimensionId; - nms_Entity_setLocationAndAngles($var6, $par2 + 0.5, $par3, $par4 + 0.5, 0.0, 0.0); - $par2 = nms_World_spawnEntityInWorld($par1World, $var6); - var$7 = $par1World.$entityList; - ju_HashMap_putImpl(var$7.$backingMap, $var6, var$7); - if (!$par2) { - $par1World = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl($par1World.$backingMap, $var6, $par1World); - } - $ptr = 1; - case 1: - nms_EntityLiving_spawnExplosionParticle($var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, var$7, $ptr); -} -function nms_BlockSilverfish_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockSilverfish_getPosingIdByMetadata($par0) { - nms_Block_$callClinit(); - return $par0 != nms_Block_stone.$blockID && $par0 != nms_Block_cobblestone.$blockID && $par0 != nms_Block_stoneBrick.$blockID ? 0 : 1; -} -function nms_BlockSilverfish_getMetadataForBlockType($par0) { - nms_Block_$callClinit(); - return $par0 == nms_Block_cobblestone.$blockID ? 1 : $par0 != nms_Block_stoneBrick.$blockID ? 0 : 2; -} -function nms_BlockSilverfish_getDamageValue($this, $par1World, $par2, $par3, $par4) { - return nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); -} -function nms_BlockSilverfish_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - var $var4; - $var4 = 0; - while ($var4 < 3) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = $var4; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $var4 = $var4 + 1 | 0; - } -} -function nms_BlockSilverfish__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(1591); - var$2[1] = $rt_s(2064); - var$2[2] = $rt_s(1428); - nms_BlockSilverfish_silverfishStoneTypes = var$1; -} -function nms_BlockStoneBrick() { - nms_Block.call(this); - this.$field_94408_c = null; -} -var nms_BlockStoneBrick_STONE_BRICK_TYPES = null; -var nms_BlockStoneBrick_field_94407_b = null; -function nms_BlockStoneBrick__init_(var_0) { - var var_1 = new nms_BlockStoneBrick(); - nms_BlockStoneBrick__init_0(var_1, var_0); - return var_1; -} -function nms_BlockStoneBrick__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockStoneBrick_getIcon($this, $par1, $par2) { - if (!($par2 >= 0 && $par2 < nms_BlockStoneBrick_field_94407_b.data.length)) - $par2 = 0; - return $this.$field_94408_c.data[$par2]; -} -function nms_BlockStoneBrick_damageDropped($this, $par1) { - return $par1; -} -function nms_BlockStoneBrick_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - var $var4; - $var4 = 0; - while ($var4 < 4) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = $var4; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $var4 = $var4 + 1 | 0; - } -} -function nms_BlockStoneBrick_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$field_94408_c = $rt_createArray(nms_Icon, nms_BlockStoneBrick_field_94407_b.data.length); - $var2 = 0; - while ($var2 < $this.$field_94408_c.data.length) { - $this.$field_94408_c.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockStoneBrick_field_94407_b.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockStoneBrick__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(1759); - var$2[1] = $rt_s(2132); - var$2[2] = $rt_s(2133); - var$2[3] = $rt_s(2033); - nms_BlockStoneBrick_STONE_BRICK_TYPES = var$1; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(1666); - var$2[1] = $rt_s(2134); - var$2[2] = $rt_s(2135); - var$2[3] = $rt_s(2136); - nms_BlockStoneBrick_field_94407_b = var$1; -} -function nms_BlockMushroomCap() { - var a = this; nms_Block.call(a); - a.$mushroomType = 0; - a.$iconArray9 = null; - a.$field_94426_cO = null; - a.$field_94427_cP = null; -} -var nms_BlockMushroomCap_field_94429_a = null; -function nms_BlockMushroomCap__init_(var_0, var_1, var_2) { - var var_3 = new nms_BlockMushroomCap(); - nms_BlockMushroomCap__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_BlockMushroomCap__init_0($this, $par1, $par2Material, $par3) { - nms_Block__init_0($this, $par1, $par2Material); - $this.$mushroomType = $par3; -} -function nms_BlockMushroomCap_getIcon($this, $par1, $par2) { - var var$3, var$4, var$5; - a: { - if ($par2 == 10 && $par1 > 1) { - var$3 = $this.$field_94426_cO; - break a; - } - var$4 = $rt_compare($par2, 1); - if (var$4 >= 0 && $par2 <= 9 && $par1 == 1) { - var$3 = $this.$iconArray9.data[$this.$mushroomType]; - break a; - } - if (var$4 >= 0 && $par2 <= 3 && $par1 == 2) { - var$3 = $this.$iconArray9.data[$this.$mushroomType]; - break a; - } - var$5 = $rt_compare($par2, 7); - if (var$5 >= 0 && $par2 <= 9 && $par1 == 3) { - var$3 = $this.$iconArray9.data[$this.$mushroomType]; - break a; - } - if (!(var$4 && $par2 != 4 && var$5) && $par1 == 4) { - var$3 = $this.$iconArray9.data[$this.$mushroomType]; - break a; - } - if (!($par2 != 3 && $par2 != 6 && $par2 != 9) && $par1 == 5) { - var$3 = $this.$iconArray9.data[$this.$mushroomType]; - break a; - } - if ($par2 == 14) { - var$3 = $this.$iconArray9.data[$this.$mushroomType]; - break a; - } - if ($par2 != 15) { - var$3 = $this.$field_94427_cP; - break a; - } - var$3 = $this.$field_94426_cO; - } - return var$3; -} -function nms_BlockMushroomCap_quantityDropped($this, $par1Random) { - var $var2; - $var2 = (Math.random() * 10.0 | 0) - 7 | 0; - if ($var2 < 0) - $var2 = 0; - return $var2; -} -function nms_BlockMushroomCap_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_mushroomBrown.$blockID + $this.$mushroomType | 0; -} -function nms_BlockMushroomCap_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Block_$callClinit(); - return nms_Block_mushroomBrown.$blockID + $this.$mushroomType | 0; -} -function nms_BlockMushroomCap_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$iconArray9 = $rt_createArray(nms_Icon, nms_BlockMushroomCap_field_94429_a.data.length); - $var2 = 0; - while ($var2 < $this.$iconArray9.data.length) { - $this.$iconArray9.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockMushroomCap_field_94429_a.data[$var2]); - $var2 = $var2 + 1 | 0; - } - $this.$field_94427_cP = $par1IconRegister.$registerIcon($rt_s(2137)); - $this.$field_94426_cO = $par1IconRegister.$registerIcon($rt_s(2138)); -} -function nms_BlockMushroomCap__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 2); - var$2 = var$1.data; - var$2[0] = $rt_s(2139); - var$2[1] = $rt_s(2140); - nms_BlockMushroomCap_field_94429_a = var$1; -} -function nms_BlockPane() { - var a = this; nms_Block.call(a); - a.$sideTextureIndex = null; - a.$canDropItself = 0; - a.$field_94402_c = null; - a.$theIcon10 = null; -} -function nms_BlockPane__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_BlockPane(); - nms_BlockPane__init_0(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_BlockPane__init_0($this, $par1, $par2Str, $par3Str, $par4Material, $par5) { - nms_Block__init_0($this, $par1, $par4Material); - $this.$sideTextureIndex = $par3Str; - $this.$canDropItself = $par5; - $this.$field_94402_c = $par2Str; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockPane_idDropped($this, $par1, $par2Random, $par3) { - return !$this.$canDropItself ? 0 : $this.$blockID; -} -function nms_BlockPane_isOpaqueCube($this) { - return 0; -} -function nms_BlockPane_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockPane_getRenderType($this) { - return 18; -} -function nms_BlockPane_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $par1IBlockAccess.$getBlockId($par2, $par3, $par4) != $this.$blockID ? nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) : 0; -} -function nms_BlockPane_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - var $var8, $var9, $var10, $var11; - a: { - b: { - $var8 = nms_BlockPane_canThisPaneConnectToThisBlockID($this, nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)); - $var9 = nms_BlockPane_canThisPaneConnectToThisBlockID($this, nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)); - $var10 = nms_BlockPane_canThisPaneConnectToThisBlockID($this, nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)); - $var11 = nms_BlockPane_canThisPaneConnectToThisBlockID($this, nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)); - if (!($var10 && $var11)) { - if ($var10) - break b; - if ($var11) - break b; - if ($var8) - break b; - if ($var9) - break b; - } - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.4375; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.5625; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - break a; - } - if ($var10 && !$var11) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.4375; - $this.$maxX0 = 0.5; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.5625; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - } else if (!$var10 && $var11) { - $this.$minX0 = 0.5; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.4375; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.5625; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - } - } - c: { - d: { - if (!($var8 && $var9)) { - if ($var10) - break d; - if ($var11) - break d; - if ($var8) - break d; - if ($var9) - break d; - } - $this.$minX0 = 0.4375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.5625; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - break c; - } - if ($var8 && !$var9) { - $this.$minX0 = 0.4375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.5625; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.5; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - } else if (!$var8 && $var9) { - $this.$minX0 = 0.4375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.5; - $this.$maxX0 = 0.5625; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - } - } -} -function nms_BlockPane_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; -} -function nms_BlockPane_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var12; - a: { - b: { - $var5 = 0.4375; - $var6 = 0.5625; - $var7 = 0.4375; - $var8 = 0.5625; - $var9 = nms_BlockPane_canThisPaneConnectToThisBlockID($this, $par1IBlockAccess.$getBlockId($par2, $par3, $par4 - 1 | 0)); - $var10 = nms_BlockPane_canThisPaneConnectToThisBlockID($this, $par1IBlockAccess.$getBlockId($par2, $par3, $par4 + 1 | 0)); - $var11 = nms_BlockPane_canThisPaneConnectToThisBlockID($this, $par1IBlockAccess.$getBlockId($par2 - 1 | 0, $par3, $par4)); - $var12 = nms_BlockPane_canThisPaneConnectToThisBlockID($this, $par1IBlockAccess.$getBlockId($par2 + 1 | 0, $par3, $par4)); - if (!($var11 && $var12)) { - if ($var11) - break b; - if ($var12) - break b; - if ($var9) - break b; - if ($var10) - break b; - } - $var5 = 0.0; - $var6 = 1.0; - break a; - } - if ($var11 && !$var12) - $var5 = 0.0; - else if (!$var11 && $var12) - $var6 = 1.0; - } - c: { - d: { - if (!($var9 && $var10)) { - if ($var11) - break d; - if ($var12) - break d; - if ($var9) - break d; - if ($var10) - break d; - } - $var7 = 0.0; - $var8 = 1.0; - break c; - } - if ($var9 && !$var10) - $var7 = 0.0; - else if (!$var9 && $var10) - $var8 = 1.0; - } - $this.$minX0 = $var5; - $this.$minY0 = 0.0; - $this.$minZ0 = $var7; - $this.$maxX0 = $var6; - $this.$maxY0 = 1.0; - $this.$maxZ0 = $var8; -} -function nms_BlockPane_getSideTextureIndex($this) { - return $this.$theIcon10; -} -function nms_BlockPane_canThisPaneConnectToThisBlockID($this, $par1) { - nms_Block_$callClinit(); - return !nms_Block_opaqueCubeLookup.data[$par1] && $par1 != $this.$blockID && $par1 != nms_Block_glass.$blockID ? 0 : 1; -} -function nms_BlockPane_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$field_94402_c); - $this.$theIcon10 = $par1IconRegister.$registerIcon($this.$sideTextureIndex); -} -function nms_BlockMelon() { - nms_Block.call(this); - this.$theIcon11 = null; -} -function nms_BlockMelon__init_(var_0) { - var var_1 = new nms_BlockMelon(); - nms_BlockMelon__init_0(var_1, var_0); - return var_1; -} -function nms_BlockMelon__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_pumpkin); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockMelon_getIcon($this, $par1, $par2) { - return $par1 != 1 && $par1 ? $this.$blockIcon : $this.$theIcon11; -} -function nms_BlockMelon_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_melon.$itemID; -} -function nms_BlockMelon_quantityDropped($this, $par1Random) { - return 3 + (Math.random() * 5.0 | 0) | 0; -} -function nms_BlockMelon_quantityDroppedWithBonus($this, $par1, $par2Random) { - var var$3, $var3; - var$3 = 3 + (Math.random() * 5.0 | 0) | 0; - $par1 = 1 + $par1 | 0; - $var3 = var$3 + (Math.random() * $par1 | 0) | 0; - if ($var3 > 9) - $var3 = 9; - return $var3; -} -function nms_BlockMelon_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2141)); - $this.$theIcon11 = $par1IconRegister.$registerIcon($rt_s(2142)); -} -function nms_BlockStem() { - var a = this; nms_BlockFlower.call(a); - a.$fruitType = null; - a.$theIcon0 = null; -} -function nms_BlockStem__init_(var_0, var_1) { - var var_2 = new nms_BlockStem(); - nms_BlockStem__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockStem__init_0($this, $par1, $par2Block) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_plants); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.699999988079071; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$fruitType = $par2Block; - $this.$needsRandomTick = 1; - $this.$minX0 = 0.375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.375; - $this.$maxX0 = 0.625; - $this.$maxY0 = 0.25; - $this.$maxZ0 = 0.625; - $this.$displayOnCreativeTab = null; -} -function nms_BlockStem_canThisPlantGrowOnThisBlockID($this, $par1) { - nms_Block_$callClinit(); - return $par1 != nms_Block_tilledField.$blockID ? 0 : 1; -} -function nms_BlockStem_fertilizeStem($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) + ((Math.random() * 4.0 | 0) + 2 | 0) | 0; - if ($var5 > 7) - $var5 = 7; - var$6 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var5, var$6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, var$6, $ptr); -} -function nms_BlockStem_getRenderColor($this, $par1) { - return ($par1 * 32 | 0) << 16 | (255 - ($par1 * 8 | 0) | 0) << 8 | ($par1 * 4 | 0); -} -function nms_BlockStem_colorMultiplier($this, $par1IBlockAccess, $par2, $par3, $par4) { - $par2 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - return ($par2 * 32 | 0) << 16 | (255 - ($par2 * 8 | 0) | 0) << 8 | ($par2 * 4 | 0); -} -function nms_BlockStem_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.375; - $this.$maxX0 = 0.625; - $this.$maxY0 = 0.25; - $this.$maxZ0 = 0.625; -} -function nms_BlockStem_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var var$5; - $this.$maxY0 = (($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) * 2 | 0) + 2 | 0) / 16.0; - var$5 = $this.$maxY0; - $this.$minX0 = 0.375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.375; - $this.$maxX0 = 0.625; - $this.$maxY0 = var$5; - $this.$maxZ0 = 0.625; -} -function nms_BlockStem_getRenderType($this) { - return 19; -} -function nms_BlockStem_getState($this, $par1IBlockAccess, $par2, $par3, $par4) { - return $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) < 7 ? (-1) : $par1IBlockAccess.$getBlockId($par2 - 1 | 0, $par3, $par4) == $this.$fruitType.$blockID ? 0 : $par1IBlockAccess.$getBlockId($par2 + 1 | 0, $par3, $par4) == $this.$fruitType.$blockID ? 1 : $par1IBlockAccess.$getBlockId($par2, $par3, $par4 - 1 | 0) == $this.$fruitType.$blockID ? 2 : $par1IBlockAccess.$getBlockId($par2, $par3, $par4 + 1 | 0) != $this.$fruitType.$blockID ? (-1) : 3; -} -function nms_BlockStem_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, var$10, var$11; - a: { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7); - if (!$par1World.$isRemote) { - $var8 = null; - if ($this.$fruitType === nms_Block_pumpkin) { - nms_Item_$callClinit(); - $var8 = nms_Item_pumpkinSeeds; - } - if ($this.$fruitType === nms_Block_melon) { - nms_Item_$callClinit(); - $var8 = nms_Item_melonSeeds; - } - $var9 = 0; - while (true) { - if ($var9 >= 3) - break a; - if ((Math.random() * 15.0 | 0) <= $par5) { - var$10 = new nms_ItemStack; - var$11 = $var8.$itemID; - var$10.$stackSize = 0; - var$10.$itemFrame = null; - var$10.$itemID0 = var$11; - var$10.$stackSize = 1; - var$10.$itemDamage = 0; - if (var$10.$itemDamage < 0) - var$10.$itemDamage = 0; - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, var$10); - } - $var9 = $var9 + 1 | 0; - } - } - } -} -function nms_BlockStem_idDropped($this, $par1, $par2Random, $par3) { - return (-1); -} -function nms_BlockStem_quantityDropped($this, $par1Random) { - return 1; -} -function nms_BlockStem_idPicked($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = $this.$fruitType; - nms_Block_$callClinit(); - if (var$5 === nms_Block_pumpkin) { - nms_Item_$callClinit(); - $par2 = nms_Item_pumpkinSeeds.$itemID; - } else if ($this.$fruitType !== nms_Block_melon) - $par2 = 0; - else { - nms_Item_$callClinit(); - $par2 = nms_Item_melonSeeds.$itemID; - } - return $par2; -} -function nms_BlockStem_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2143)); - $this.$theIcon0 = $par1IconRegister.$registerIcon($rt_s(2144)); -} -function nms_BlockStem_func_94368_p($this) { - return $this.$theIcon0; -} -function nms_BlockVine() { - nms_Block.call(this); -} -function nms_BlockVine__init_(var_0) { - var var_1 = new nms_BlockVine(); - nms_BlockVine__init_0(var_1, var_0); - return var_1; -} -function nms_BlockVine__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_vine); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockVine_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; -} -function nms_BlockVine_getRenderType($this) { - return 20; -} -function nms_BlockVine_isOpaqueCube($this) { - return 0; -} -function nms_BlockVine_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockVine_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var6, $var7, $var8, $var9, $var10, $var11, $var12, $var13, var$13; - $var6 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - $var7 = 1.0; - $var8 = 1.0; - $var9 = 1.0; - $var10 = 0.0; - $var11 = 0.0; - $var12 = 0.0; - $var13 = $var6 <= 0 ? 0 : 1; - if ($var6 & 2) { - $var10 = 0.0625; - $var7 = 0.0; - $var8 = 0.0; - $var11 = 1.0; - $var9 = 0.0; - $var12 = 1.0; - $var13 = 1; - } - if (!($var6 & 8)) - var$13 = $var7; - else { - var$13 = 0.9375; - if ($var7 < var$13) - var$13 = $var7; - $var10 = 1.0; - $var8 = 0.0; - $var11 = 1.0; - $var9 = 0.0; - $var12 = 1.0; - $var13 = 1; - } - if (!($var6 & 4)) - $var7 = $var12; - else { - $var7 = 0.0625; - if ($var12 > $var7) - $var7 = $var12; - $var9 = 0.0; - var$13 = 0.0; - $var10 = 1.0; - $var8 = 0.0; - $var11 = 1.0; - $var13 = 1; - } - if (!($var6 & 1)) - $var12 = $var9; - else { - $var12 = 0.9375; - if ($var9 < $var12) - $var12 = $var9; - $var7 = 1.0; - var$13 = 0.0; - $var10 = 1.0; - $var8 = 0.0; - $var11 = 1.0; - $var13 = 1; - } - if ($var13) - $var9 = $var8; - else if (!nms_BlockVine_canBePlacedOn($this, $par1IBlockAccess.$getBlockId($par2, $par3 + 1 | 0, $par4))) - $var9 = $var8; - else { - $var9 = 0.9375; - if ($var8 < $var9) - $var9 = $var8; - $var11 = 1.0; - var$13 = 0.0; - $var10 = 1.0; - $var12 = 0.0; - $var7 = 1.0; - } - $this.$minX0 = var$13; - $this.$minY0 = $var9; - $this.$minZ0 = $var12; - $this.$maxX0 = $var10; - $this.$maxY0 = $var11; - $this.$maxZ0 = $var7; -} -function nms_BlockVine_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockVine_canPlaceBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5) { - switch ($par5) { - case 1: - return nms_BlockVine_canBePlacedOn($this, nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4)); - case 2: - return nms_BlockVine_canBePlacedOn($this, nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)); - case 3: - return nms_BlockVine_canBePlacedOn($this, nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)); - case 4: - return nms_BlockVine_canBePlacedOn($this, nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)); - case 5: - return nms_BlockVine_canBePlacedOn($this, nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)); - default: - } - return 0; -} -function nms_BlockVine_canBePlacedOn($this, $par1) { - var $var2; - if (!$par1) - return 0; - nms_Block_$callClinit(); - $var2 = nms_Block_blocksList.data[$par1]; - return $var2.$renderAsNormalBlock() && $var2.$blockMaterial.$blocksMovement() ? 1 : 0; -} -function nms_BlockVine_canVineStay($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6, $var7, var$8, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if ($var5 <= 0) - var$6 = $var5; - else { - $var7 = 0; - var$8 = $par3 + 1 | 0; - var$6 = $var5; - while ($var7 <= 3) { - $var8 = 1 << $var7; - if ($var5 & $var8 && !nms_BlockVine_canBePlacedOn($this, nms_World_getBlockId($par1World, $par2 + nms_Direction_offsetX.data[$var7] | 0, $par3, $par4 + nms_Direction_offsetZ.data[$var7] | 0)) && !(nms_World_getBlockId($par1World, $par2, var$8, $par4) == $this.$blockID && nms_World_getBlockMetadata($par1World, $par2, var$8, $par4) & $var8)) - var$6 = var$6 & ($var8 ^ (-1)); - $var7 = $var7 + 1 | 0; - } - } - if (!var$6 && !nms_BlockVine_canBePlacedOn($this, nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4))) - return 0; - if (var$6 == $var5) - return 1; - $var8 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$6, $var8); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, var$6, $var7, var$8, $var8, $ptr); -} -function nms_BlockVine_getBlockColor($this) { - return 4764952; -} -function nms_BlockVine_getRenderColor($this, $par1) { - return 4764952; -} -function nms_BlockVine_colorMultiplier($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = nms_BiomeGenBase_getBiomeFoliageColor($par1IBlockAccess.$getBiomeGenForCoords($par2, $par4)); - $par3 = $par2 >> 4; - $var6 = $par4 >> 4; - nms_Block_$callClinit(); - if (!(nms_Block_noiseChunkX == $par3 && nms_Block_noiseChunkZ == $var6)) { - nms_Block_noiseChunkX = $par3; - nms_Block_noiseChunkZ = $var6; - nms_Block_initNoiseField0($par3, $var6); - } - $var6 = ($var5 >> 8 & 255) * (nms_Block_grassNoiseArray.data[($par4 & 15) + (($par2 & 15) * 16 | 0) | 0] * 0.25 + 1.0) | 0; - if ($var6 > 255) - $var6 = 255; - if ($var6 < 0) - $var6 = 0; - return $var5 & 16711935 | $var6 << 8; -} -function nms_BlockVine_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return; - $ptr = 1; - case 1: - $tmp = nms_BlockVine_canVineStay($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - $par5 = $tmp; - if ($par5) - return; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - var$6 = 0; - $par5 = 0; - var$7 = 3; - $ptr = 2; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$6, $par5, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockVine_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var $var10; - a: { - $var10 = 0; - switch ($par5) { - case 2: - $var10 = 1; - break a; - case 3: - $var10 = 4; - break a; - case 4: - $var10 = 8; - break a; - case 5: - $var10 = 2; - break a; - default: - } - } - if ($var10) - $par9 = $var10; - return $par9; -} -function nms_BlockVine_idDropped($this, $par1, $par2Random, $par3) { - return 0; -} -function nms_BlockVine_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockFenceGate() { - nms_BlockDirectional.call(this); -} -function nms_BlockFenceGate__init_(var_0) { - var var_1 = new nms_BlockFenceGate(); - nms_BlockFenceGate__init_0(var_1, var_0); - return var_1; -} -function nms_BlockFenceGate__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockFenceGate_getIcon($this, $par1, $par2) { - nms_Block_$callClinit(); - return nms_Block_planks.$getIcon($par1, 0); -} -function nms_BlockFenceGate_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6; - var$5 = nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4); - if (!var$5) { - nms_Material_$callClinit(); - var$6 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$6 = nms_Block_blocksList.data[var$5].$blockMaterial; - } - if (!var$6.$isSolid()) - $par2 = 0; - else { - $par2 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - $par2 = $par2 && !nms_Block_blocksList.data[$par2].$blockMaterial.$replaceable ? 0 : 1; - } - return $par2; -} -function nms_BlockFenceGate_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var $var5, var$6, var$7, var$8, var$9, var$10, var$11; - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if (!($var5 & 4) ? 0 : 1) - $par1World = null; - else if ($var5 != 2 && $var5) { - $par1World = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1World.$initialized) { - var$6 = new nms_AABBPool; - var$7 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$7); - var$7.$array1 = $rt_createArray(jl_Object, 10); - var$6.$listAABB = var$7; - var$6.$nextPoolIndex = 0; - var$6.$maxPoolIndex = 0; - var$6.$numCleans = 0; - var$6.$maxNumCleans = 300; - var$6.$numEntriesToRemove = 2000; - $par1World.$value7 = var$6; - $par1World.$initialized = 1; - } - $par1World = $par1World.$value7; - var$8 = $par2; - $par1World = nms_AABBPool_getAABB($par1World, var$8 + 0.375, $par3, $par4, var$8 + 0.625, $par3 + 1.5, $par4 + 1 | 0); - } else { - $par1World = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1World.$initialized) { - var$6 = new nms_AABBPool; - var$7 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$7); - var$7.$array1 = $rt_createArray(jl_Object, 10); - var$6.$listAABB = var$7; - var$6.$nextPoolIndex = 0; - var$6.$maxPoolIndex = 0; - var$6.$numCleans = 0; - var$6.$maxNumCleans = 300; - var$6.$numEntriesToRemove = 2000; - $par1World.$value7 = var$6; - $par1World.$initialized = 1; - } - $par1World = $par1World.$value7; - var$9 = $par2; - var$10 = $par3; - var$11 = $par4; - $par1World = nms_AABBPool_getAABB($par1World, var$9, var$10, var$11 + 0.375, $par2 + 1 | 0, $par3 + 1.5, var$11 + 0.625); - } - return $par1World; -} -function nms_BlockFenceGate_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 3; - if ($var5 != 2 && $var5) { - $this.$minX0 = 0.375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.625; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.375; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.625; - } -} -function nms_BlockFenceGate_isOpaqueCube($this) { - return 0; -} -function nms_BlockFenceGate_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockFenceGate_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - return !(nms_World_getBlockMetadata($par1IBlockAccess, $par2, $par3, $par4) & 4) ? 0 : 1; -} -function nms_BlockFenceGate_getRenderType($this) { - return 21; -} -function nms_BlockFenceGate_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, $var7, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - $var7 = var$7 | 0; - if (var$7 < $var7) - $var7 = $var7 - 1 | 0; - $var7 = ($var7 & 3) % 4 | 0; - var$9 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, $var7, var$9, $ptr); -} -function nms_BlockFenceGate_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $var11, 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();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var10 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if (!($var10 & 4) ? 0 : 1) { - $par6 = $var10 & (-5); - $var11 = 2; - $ptr = 1; - continue main; - } - var$12 = $par5EntityPlayer.$rotationYaw * 4.0 / 360.0 + 0.5; - $var11 = var$12 | 0; - if (var$12 < $var11) - $var11 = $var11 - 1 | 0; - $var11 = ($var11 & 3) % 4 | 0; - if (($var10 & 3) != (($var11 + 2 | 0) % 4 | 0)) - $var11 = $var10; - $par6 = $var11 | 4; - $var11 = 2; - $ptr = 2; - continue main; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var11); - if ($rt_suspending()) { - break main; - } - $par6 = 1003; - $var10 = 0; - $var11 = 0; - if ($var11 >= $par1World.$worldAccesses.$size0) - return 1; - var$13 = $par1World.$worldAccesses; - if ($var11 >= 0 && $var11 < var$13.$size0) { - var$13 = var$13.$array1.data[$var11]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var11); - if ($rt_suspending()) { - break main; - } - $par6 = 1003; - $var10 = 0; - $var11 = 0; - if ($var11 >= $par1World.$worldAccesses.$size0) - return 1; - var$13 = $par1World.$worldAccesses; - if ($var11 >= 0 && $var11 < var$13.$size0) { - var$13 = var$13.$array1.data[$var11]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 3: - nms_RenderGlobal_playAuxSFX(var$13, $par5EntityPlayer, $par6, $par2, $par3, $par4, $var10); - if ($rt_suspending()) { - break main; - } - $var11 = $var11 + 1 | 0; - if ($var11 >= $par1World.$worldAccesses.$size0) - return 1; - var$13 = $par1World.$worldAccesses; - if ($var11 >= 0 && $var11 < var$13.$size0) { - var$13 = var$13.$array1.data[$var11]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $var11, var$12, var$13, $ptr); -} -function nms_BlockFenceGate_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if (!$par1World.$isRemote) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4); - if (!$var7) { - if ($par5 <= 0) - break a; - nms_Block_$callClinit(); - if (!nms_Block_blocksList.data[$par5].$canProvidePower()) - break a; - } - if ($var7 && !(!($var6 & 4) ? 0 : 1)) { - $par5 = $var6 | 4; - $var6 = 2; - $ptr = 1; - continue main; - } - if (!$var7 && (!($var6 & 4) ? 0 : 1)) { - $par5 = $var6 & (-5); - $var6 = 2; - $ptr = 2; - continue main; - } - } - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $var6); - if ($rt_suspending()) { - break main; - } - var$8 = null; - $par5 = 1003; - $var6 = 0; - $var7 = 0; - if ($var7 >= $par1World.$worldAccesses.$size0) - return; - var$9 = $par1World.$worldAccesses; - if ($var7 >= 0 && $var7 < var$9.$size0) { - var$9 = var$9.$array1.data[$var7]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $var6); - if ($rt_suspending()) { - break main; - } - var$9 = null; - var$10 = 1003; - $var7 = 0; - $par5 = 0; - if ($par5 >= $par1World.$worldAccesses.$size0) - return; - var$8 = $par1World.$worldAccesses; - if ($par5 >= 0 && $par5 < var$8.$size0) { - var$8 = var$8.$array1.data[$par5]; - $ptr = 4; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 3: - nms_RenderGlobal_playAuxSFX(var$9, var$8, $par5, $par2, $par3, $par4, $var6); - if ($rt_suspending()) { - break main; - } - $var7 = $var7 + 1 | 0; - if ($var7 >= $par1World.$worldAccesses.$size0) - return; - var$9 = $par1World.$worldAccesses; - if ($var7 >= 0 && $var7 < var$9.$size0) { - var$9 = var$9.$array1.data[$var7]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 4: - nms_RenderGlobal_playAuxSFX(var$8, var$9, var$10, $par2, $par3, $par4, $var7); - if ($rt_suspending()) { - break main; - } - $par5 = $par5 + 1 | 0; - if ($par5 >= $par1World.$worldAccesses.$size0) - return; - var$8 = $par1World.$worldAccesses; - if ($par5 >= 0 && $par5 < var$8.$size0) { - var$8 = var$8.$array1.data[$par5]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, var$8, var$9, var$10, $ptr); -} -function nms_BlockFenceGate_isFenceGateOpen($par0) { - return !($par0 & 4) ? 0 : 1; -} -function nms_BlockFenceGate_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 1; -} -function nms_BlockFenceGate_registerIcons($this, $par1IconRegister) { - return; -} -function nms_BlockMycelium() { - var a = this; nms_Block.call(a); - a.$field_94422_a = null; - a.$field_94421_b = null; -} -function nms_BlockMycelium__init_(var_0) { - var var_1 = new nms_BlockMycelium(); - nms_BlockMycelium__init_0(var_1, var_0); - return var_1; -} -function nms_BlockMycelium__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_grass); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockMycelium_getIcon($this, $par1, $par2) { - var var$3; - if ($par1 == 1) - var$3 = $this.$field_94422_a; - else if ($par1) - var$3 = $this.$blockIcon; - else { - nms_Block_$callClinit(); - var$3 = nms_Block_dirt.$getIcon($par1, 0); - } - return var$3; -} -function nms_BlockMycelium_getBlockTexture($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6; - if ($par5 == 1) - return $this.$field_94422_a; - if (!$par5) { - nms_Block_$callClinit(); - return nms_Block_dirt.$getIcon($par5, 0); - } - $var6 = $par1IBlockAccess.$getBlockMaterial($par2, $par3 + 1 | 0, $par4); - nms_Material_$callClinit(); - return $var6 !== nms_Material_snow && $var6 !== nms_Material_craftedSnow ? $this.$blockIcon : $this.$field_94421_b; -} -function nms_BlockMycelium_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2145)); - $this.$field_94422_a = $par1IconRegister.$registerIcon($rt_s(2146)); - $this.$field_94421_b = $par1IconRegister.$registerIcon($rt_s(2005)); -} -function nms_BlockMycelium_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $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();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!(Math.random() * 10.0 | 0)) { - $par5Random = $rt_s(849); - var$6 = $par2 + Math.random(); - var$7 = $par3 + 1.100000023841858; - var$8 = $par4 + Math.random(); - var$9 = 0.0; - var$10 = 0.0; - var$11 = 0.0; - $par3 = 0; - if ($par3 < $par1World.$worldAccesses.$size0) { - var$12 = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < var$12.$size0) { - var$12 = var$12.$array1.data[$par3]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$12, $par5Random, var$6, var$7, var$8, var$9, var$10, var$11); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 + 1 | 0; - if ($par3 >= $par1World.$worldAccesses.$size0) - return; - var$12 = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < var$12.$size0) { - var$12 = var$12.$array1.data[$par3]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr); -} -function nms_BlockMycelium_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_dirt.$idDropped(0, $par2Random, $par3); -} -function nms_BlockLilyPad() { - nms_BlockFlower.call(this); -} -function nms_BlockLilyPad__init_(var_0) { - var var_1 = new nms_BlockLilyPad(); - nms_BlockLilyPad__init_0(var_1, var_0); - return var_1; -} -function nms_BlockLilyPad__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_plants); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.699999988079071; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.015625; - $this.$maxZ0 = 1.0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockLilyPad_getRenderType($this) { - return 23; -} -function nms_BlockLilyPad_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - if (!($par7Entity !== null && $par7Entity instanceof nms_EntityBoat)) { - $par1World = nms_BlockLilyPad_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - } -} -function nms_BlockLilyPad_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, var$8, var$9, var$10, var$11; - $par1World = nms_AxisAlignedBB_theAABBLocalPool; - if (!$par1World.$initialized) { - var$5 = new nms_AABBPool; - var$6 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$6); - var$6.$array1 = $rt_createArray(jl_Object, 10); - var$5.$listAABB = var$6; - var$5.$nextPoolIndex = 0; - var$5.$maxPoolIndex = 0; - var$5.$numCleans = 0; - var$5.$maxNumCleans = 300; - var$5.$numEntriesToRemove = 2000; - $par1World.$value7 = var$5; - $par1World.$initialized = 1; - } - $par1World = $par1World.$value7; - var$7 = $par2; - var$8 = var$7 + $this.$minX0; - var$9 = $par3; - var$10 = var$9 + $this.$minY0; - var$11 = $par4; - return nms_AABBPool_getAABB($par1World, var$8, var$10, var$11 + $this.$minZ0, var$7 + $this.$maxX0, var$9 + $this.$maxY0, var$11 + $this.$maxZ0); -} -function nms_BlockLilyPad_getBlockColor($this) { - return 2129968; -} -function nms_BlockLilyPad_getRenderColor($this, $par1) { - return 2129968; -} -function nms_BlockLilyPad_colorMultiplier($this, $par1IBlockAccess, $par2, $par3, $par4) { - return 2129968; -} -function nms_BlockLilyPad_canThisPlantGrowOnThisBlockID($this, $par1) { - nms_Block_$callClinit(); - return $par1 != nms_Block_waterStill.$blockID ? 0 : 1; -} -function nms_BlockLilyPad_canBlockStay($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6; - if ($par3 >= 0 && $par3 < 256) { - var$5 = $par3 - 1 | 0; - $par3 = nms_World_getBlockId($par1World, $par2, var$5, $par4); - if (!$par3) { - nms_Material_$callClinit(); - var$6 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$6 = nms_Block_blocksList.data[$par3].$blockMaterial; - } - nms_Material_$callClinit(); - $par2 = var$6 === nms_Material_water && !nms_World_getBlockMetadata($par1World, $par2, var$5, $par4) ? 1 : 0; - } else - $par2 = 0; - return $par2; -} -function nms_BlockNetherStalk() { - nms_BlockFlower.call(this); - this.$iconArray10 = null; -} -var nms_BlockNetherStalk_field_94373_a = null; -function nms_BlockNetherStalk__init_(var_0) { - var var_1 = new nms_BlockNetherStalk(); - nms_BlockNetherStalk__init_0(var_1, var_0); - return var_1; -} -function nms_BlockNetherStalk__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_plants); - $this.$needsRandomTick = 1; - $this.$minX0 = 0.30000001192092896; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.30000001192092896; - $this.$maxX0 = 0.699999988079071; - $this.$maxY0 = 0.6000000238418579; - $this.$maxZ0 = 0.699999988079071; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$needsRandomTick = 1; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.25; - $this.$maxZ0 = 1.0; - $this.$displayOnCreativeTab = null; -} -function nms_BlockNetherStalk_canThisPlantGrowOnThisBlockID($this, $par1) { - nms_Block_$callClinit(); - return $par1 != nms_Block_slowSand.$blockID ? 0 : 1; -} -function nms_BlockNetherStalk_canBlockStay($this, $par1World, $par2, $par3, $par4) { - $par2 = nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4); - nms_Block_$callClinit(); - return $par2 != nms_Block_slowSand.$blockID ? 0 : 1; -} -function nms_BlockNetherStalk_getIcon($this, $par1, $par2) { - return $par2 >= 3 ? $this.$iconArray10.data[2] : $par2 <= 0 ? $this.$iconArray10.data[0] : $this.$iconArray10.data[1]; -} -function nms_BlockNetherStalk_getRenderType($this) { - return 6; -} -function nms_BlockNetherStalk_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, var$10, var$11; - a: { - if (!$par1World.$isRemote) { - $var8 = 1; - if ($par5 >= 3) { - $var8 = 2 + (Math.random() * 3.0 | 0) | 0; - if ($par7 > 0) { - $par5 = $par7 + 1 | 0; - $var8 = $var8 + (Math.random() * $par5 | 0) | 0; - } - } - $var9 = 0; - while (true) { - if ($var9 >= $var8) - break a; - var$10 = new nms_ItemStack; - nms_Item_$callClinit(); - var$11 = nms_Item_netherStalkSeeds.$itemID; - var$10.$stackSize = 0; - var$10.$itemFrame = null; - var$10.$itemID0 = var$11; - var$10.$stackSize = 1; - var$10.$itemDamage = 0; - if (var$10.$itemDamage < 0) - var$10.$itemDamage = 0; - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, var$10); - $var9 = $var9 + 1 | 0; - } - } - } -} -function nms_BlockNetherStalk_idDropped($this, $par1, $par2Random, $par3) { - return 0; -} -function nms_BlockNetherStalk_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockNetherStalk_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_netherStalkSeeds.$itemID; -} -function nms_BlockNetherStalk_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$iconArray10 = $rt_createArray(nms_Icon, nms_BlockNetherStalk_field_94373_a.data.length); - $var2 = 0; - while ($var2 < $this.$iconArray10.data.length) { - $this.$iconArray10.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockNetherStalk_field_94373_a.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockNetherStalk__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(2147); - var$2[1] = $rt_s(2148); - var$2[2] = $rt_s(2149); - nms_BlockNetherStalk_field_94373_a = var$1; -} -function nms_BlockEnchantmentTable() { - var a = this; nms_BlockContainer.call(a); - a.$field_94461_a = null; - a.$field_94460_b = null; -} -function nms_BlockEnchantmentTable__init_(var_0) { - var var_1 = new nms_BlockEnchantmentTable(); - nms_BlockEnchantmentTable__init_0(var_1, var_0); - return var_1; -} -function nms_BlockEnchantmentTable__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$isBlockContainer = 1; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.75; - $this.$maxZ0 = 1.0; - nms_Block_lightOpacity.data[$this.$blockID] = 0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockEnchantmentTable_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockEnchantmentTable_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $var6, var$17, $var7, $var8, var$20, var$21, var$22, var$23, var$24, var$25, var$26, var$27, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$27 = $thread.pop();var$26 = $thread.pop();var$25 = $thread.pop();var$24 = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();var$17 = $thread.pop();$var6 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $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();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $par2 - 2 | 0; - var$7 = $par2 + 2 | 0; - var$8 = $par4 - 2 | 0; - var$9 = $par4 + 2 | 0; - var$10 = $par4 - 1 | 0; - var$11 = 16.0; - var$12 = $par3 + 1 | 0; - var$13 = $par2 + 0.5; - var$14 = $par3 + 2.0; - var$15 = $par4 + 0.5; - $var6 = var$6; - while (true) { - var$17 = $rt_compare($var6, var$7); - if (var$17 > 0) - break; - $var7 = var$8; - while ($var7 <= var$9) { - if ($var6 > var$6 && var$17 < 0 && $var7 == var$10) - $var7 = var$9; - a: { - if (!(Math.random() * var$11 | 0)) { - $var8 = $par3; - while (true) { - if ($var8 > var$12) - break a; - var$20 = nms_World_getBlockId($par1World, $var6, $var8, $var7); - nms_Block_$callClinit(); - if (var$20 == nms_Block_bookShelf.$blockID) { - var$21 = $var6 - $par2 | 0; - var$22 = (var$21 / 2 | 0) + $par2 | 0; - var$23 = $var7 - $par4 | 0; - if (!(nms_World_getBlockId($par1World, var$22, $var8, (var$23 / 2 | 0) + $par4 | 0) ? 0 : 1)) - break; - $par5Random = $rt_s(857); - var$24 = var$21 + Math.random() - 0.5; - var$25 = ($var8 - $par3 | 0) - Math.random() - 1.0; - var$26 = var$23 + Math.random() - 0.5; - var$20 = 0; - if (var$20 < $par1World.$worldAccesses.$size0) { - var$27 = $par1World.$worldAccesses; - if (var$20 >= 0 && var$20 < var$27.$size0) { - var$27 = var$27.$array1.data[var$20]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - } - $var8 = $var8 + 1 | 0; - } - } - } - $var7 = $var7 + 1 | 0; - } - $var6 = $var6 + 1 | 0; - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$27, $par5Random, var$13, var$14, var$15, var$24, var$25, var$26); - if ($rt_suspending()) { - break main; - } - var$20 = var$20 + 1 | 0; - b: while (true) { - if (var$20 < $par1World.$worldAccesses.$size0) { - var$27 = $par1World.$worldAccesses; - if (var$20 >= 0 && var$20 < var$27.$size0) { - var$27 = var$27.$array1.data[var$20]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - c: while (true) { - $var8 = $var8 + 1 | 0; - while (true) { - if ($var8 <= var$12) { - var$20 = nms_World_getBlockId($par1World, $var6, $var8, $var7); - nms_Block_$callClinit(); - if (var$20 != nms_Block_bookShelf.$blockID) - continue c; - var$21 = $var6 - $par2 | 0; - var$22 = (var$21 / 2 | 0) + $par2 | 0; - var$23 = $var7 - $par4 | 0; - if (nms_World_getBlockId($par1World, var$22, $var8, (var$23 / 2 | 0) + $par4 | 0) ? 0 : 1) - break c; - } - while (true) { - $var7 = $var7 + 1 | 0; - while ($var7 > var$9) { - $var6 = $var6 + 1 | 0; - var$17 = $rt_compare($var6, var$7); - if (var$17 > 0) - break b; - $var7 = var$8; - } - if ($var6 > var$6 && var$17 < 0 && $var7 == var$10) - $var7 = var$9; - if (Math.random() * var$11 | 0) - continue; - else - break; - } - $var8 = $par3; - } - } - $par5Random = $rt_s(857); - var$24 = var$21 + Math.random() - 0.5; - var$25 = ($var8 - $par3 | 0) - Math.random() - 1.0; - var$26 = var$23 + Math.random() - 0.5; - var$20 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $var6, var$17, $var7, $var8, var$20, var$21, var$22, var$23, var$24, var$25, var$26, var$27, $ptr); -} -function nms_BlockEnchantmentTable_isOpaqueCube($this) { - return 0; -} -function nms_BlockEnchantmentTable_getIcon($this, $par1, $par2) { - return !$par1 ? $this.$field_94460_b : $par1 != 1 ? $this.$blockIcon : $this.$field_94461_a; -} -function nms_BlockEnchantmentTable_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityEnchantmentTable; - $par1World.$blockMetadata = (-1); - return $par1World; -} -function nms_BlockEnchantmentTable_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - $par1World = !($var10.$field_94136_s !== null && $var10.$field_94136_s.$characters.data.length > 0 ? 1 : 0) ? null : nms_TileEntityEnchantmentTable_func_94133_a($var10); - var$11 = $par5EntityPlayer.$mc3; - $var10 = new nms_GuiEnchantment; - nms_GuiContainer__init_($var10, nms_ContainerEnchantment__init_($par5EntityPlayer.$inventory, $par5EntityPlayer.$worldObj, $par2, $par3, $par4)); - $var10.$rand3 = new ju_Random; - $var10.$containerEnchantment = $var10.$inventorySlots0; - $var10.$field_94079_C = $par1World; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$11, $var10); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, var$11, $ptr); -} -function nms_BlockEnchantmentTable_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94136_s = nms_ItemStack_getDisplayName($par6ItemStack); -} -function nms_BlockEnchantmentTable_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2150)); - $this.$field_94461_a = $par1IconRegister.$registerIcon($rt_s(2151)); - $this.$field_94460_b = $par1IconRegister.$registerIcon($rt_s(2152)); -} -function nms_BlockBrewingStand() { - var a = this; nms_BlockContainer.call(a); - a.$rand4 = null; - a.$theIcon = null; -} -function nms_BlockBrewingStand__init_(var_0) { - var var_1 = new nms_BlockBrewingStand(); - nms_BlockBrewingStand__init_0(var_1, var_0); - return var_1; -} -function nms_BlockBrewingStand__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_iron); - $this.$isBlockContainer = 1; - $this.$rand4 = new ju_Random; -} -function nms_BlockBrewingStand_isOpaqueCube($this) { - return 0; -} -function nms_BlockBrewingStand_getRenderType($this) { - return 25; -} -function nms_BlockBrewingStand_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityBrewingStand; - $par1World.$blockMetadata = (-1); - $par1World.$brewingItemStacks = $rt_createArray(nms_ItemStack, 4); - return $par1World; -} -function nms_BlockBrewingStand_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockBrewingStand_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - $this.$minX0 = 0.4375; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.4375; - $this.$maxX0 = 0.5625; - $this.$maxY0 = 0.875; - $this.$maxZ0 = 0.5625; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - nms_BlockBrewingStand_setBlockBoundsForItemRender($this); - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); -} -function nms_BlockBrewingStand_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.125; - $this.$maxZ0 = 1.0; -} -function nms_BlockBrewingStand_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var10 === null) - return 1; - var$11 = $par5EntityPlayer.$mc3; - $par1World = new nms_GuiBrewingStand; - nms_GuiContainer__init_($par1World, nms_ContainerBrewingStand__init_($par5EntityPlayer.$inventory, $var10)); - $par1World.$brewingStand = $var10; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$11, $par1World); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, var$11, $ptr); -} -function nms_BlockBrewingStand_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94132_e = nms_ItemStack_getDisplayName($par6ItemStack); -} -function nms_BlockBrewingStand_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $var6, $var8, $var10, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = $par2 + 0.4000000059604645 + Math.random() * 0.20000000298023224; - $var8 = $par3 + 0.699999988079071 + Math.random() * 0.30000001192092896; - $var10 = $par4 + 0.4000000059604645 + Math.random() * 0.20000000298023224; - var$9 = $rt_s(852); - var$10 = 0.0; - var$11 = 0.0; - var$12 = 0.0; - $par3 = 0; - if ($par3 >= $par1World.$worldAccesses.$size0) - return; - $par5Random = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par3]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 1: - nms_RenderGlobal_doSpawnParticle($par5Random, var$9, $var6, $var8, $var10, var$10, var$11, var$12); - if ($rt_suspending()) { - break main; - } - $par3 = $par3 + 1 | 0; - if ($par3 >= $par1World.$worldAccesses.$size0) - return; - $par5Random = $par1World.$worldAccesses; - if ($par3 >= 0 && $par3 < $par5Random.$size0) { - $par5Random = $par5Random.$array1.data[$par3]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $var6, $var8, $var10, var$9, var$10, var$11, var$12, $ptr); -} -function nms_BlockBrewingStand_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, $var9, var$10, var$11, var$12, $var10, $var11, $var12, $var13, var$17, var$18, var$19, $var14, $var15, var$22, var$23; - a: { - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var7 instanceof nms_TileEntityBrewingStand) { - $var8 = $var7; - $var9 = 0; - var$10 = $par2; - var$11 = $par3; - var$12 = $par4; - while (true) { - if ($var9 >= $var8.$brewingItemStacks.data.length) - break a; - $var10 = $var9 >= 0 && $var9 < $var8.$brewingItemStacks.data.length ? $var8.$brewingItemStacks.data[$var9] : null; - b: { - if ($var10 !== null) { - $var11 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var12 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var13 = Math.random() * 0.800000011920929 + 0.10000000149011612; - var$17 = var$10 + $var11; - var$18 = var$11 + $var12; - var$19 = var$12 + $var13; - while (true) { - if ($var10.$stackSize <= 0) - break b; - $var14 = (Math.random() * 21.0 | 0) + 10 | 0; - if ($var14 > $var10.$stackSize) - $var14 = $var10.$stackSize; - $var10.$stackSize = $var10.$stackSize - $var14 | 0; - $var15 = new nms_EntityItem; - var$22 = new nms_ItemStack; - var$23 = $var10.$itemID0; - $par6 = $var10.$itemDamage; - var$22.$stackSize = 0; - var$22.$itemFrame = null; - var$22.$itemID0 = var$23; - var$22.$stackSize = $var14; - var$22.$itemDamage = $par6; - if (var$22.$itemDamage < 0) - var$22.$itemDamage = 0; - nms_EntityItem__init_2($var15, $par1World, var$17, var$18, var$19); - nms_DataWatcher_updateObject($var15.$dataWatcher, 10, var$22); - nms_DataWatcher_setObjectWatched($var15.$dataWatcher, 10); - $var15.$motionX = ju_Random_nextGaussian($this.$rand4) * 0.05000000074505806; - $var15.$motionY = ju_Random_nextGaussian($this.$rand4) * 0.05000000074505806 + 0.20000000298023224; - $var15.$motionZ = ju_Random_nextGaussian($this.$rand4) * 0.05000000074505806; - $par5 = nms_World_spawnEntityInWorld($par1World, $var15); - var$22 = $par1World.$entityList; - ju_HashMap_putImpl(var$22.$backingMap, $var15, var$22); - if (!$par5) { - $var7 = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl($var7.$backingMap, $var15, $var7); - } - } - } - } - $var9 = $var9 + 1 | 0; - } - } - } - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); -} -function nms_BlockBrewingStand_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_brewingStand.$itemID; -} -function nms_BlockBrewingStand_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_brewingStand.$itemID; -} -function nms_BlockBrewingStand_hasComparatorInputOverride($this) { - return 1; -} -function nms_BlockBrewingStand_getComparatorInputOverride($this, $par1World, $par2, $par3, $par4, $par5) { - return nms_Container_calcRedstoneFromInventory(nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4)); -} -function nms_BlockBrewingStand_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$unlocalizedName0); - $this.$theIcon = $par1IconRegister.$registerIcon($rt_s(2153)); -} -function nms_BlockBrewingStand_getBrewingStandIcon($this) { - return $this.$theIcon; -} -function nms_BlockCauldron() { - var a = this; nms_Block.call(a); - a.$field_94378_a = null; - a.$cauldronTopIcon = null; - a.$cauldronBottomIcon = null; -} -function nms_BlockCauldron__init_(var_0) { - var var_1 = new nms_BlockCauldron(); - nms_BlockCauldron__init_0(var_1, var_0); - return var_1; -} -function nms_BlockCauldron__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_iron); -} -function nms_BlockCauldron_getIcon($this, $par1, $par2) { - return $par1 == 1 ? $this.$cauldronTopIcon : $par1 ? $this.$blockIcon : $this.$cauldronBottomIcon; -} -function nms_BlockCauldron_registerIcons($this, $par1IconRegister) { - $this.$field_94378_a = $par1IconRegister.$registerIcon($rt_s(612)); - $this.$cauldronTopIcon = $par1IconRegister.$registerIcon($rt_s(2154)); - $this.$cauldronBottomIcon = $par1IconRegister.$registerIcon($rt_s(2155)); - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2156)); -} -function nms_BlockCauldron_func_94375_b($par0Str) { - if ($par0Str === $rt_s(612)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_cauldron.$field_94378_a; - } else if ($par0Str !== $rt_s(2155)) - $par0Str = null; - else { - nms_Block_$callClinit(); - $par0Str = nms_Block_cauldron.$cauldronBottomIcon; - } - return $par0Str; -} -function nms_BlockCauldron_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.3125; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.125; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.125; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.875; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.875; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - nms_BlockCauldron_setBlockBoundsForItemRender($this); -} -function nms_BlockCauldron_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; -} -function nms_BlockCauldron_isOpaqueCube($this) { - return 0; -} -function nms_BlockCauldron_getRenderType($this) { - return 24; -} -function nms_BlockCauldron_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockCauldron_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $var11, $var13, var$13, var$14, $var12, var$16, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$16 = $thread.pop();$var12 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_InventoryPlayer_getCurrentItem($par5EntityPlayer.$inventory); - if ($var10 === null) - return 1; - $var11 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $par6 = $var10.$itemID0; - nms_Item_$callClinit(); - if ($par6 == nms_Item_bucketWater.$itemID) { - if ($var11 >= 3) - return 1; - if (!$par5EntityPlayer.$capabilities.$isCreativeMode) { - $var13 = $par5EntityPlayer.$inventory; - $par6 = $par5EntityPlayer.$inventory.$currentItem; - $par5EntityPlayer = new nms_ItemStack; - var$13 = nms_Item_bucketEmpty.$itemID; - $par5EntityPlayer.$stackSize = 0; - $par5EntityPlayer.$itemFrame = null; - $par5EntityPlayer.$itemID0 = var$13; - $par5EntityPlayer.$stackSize = 1; - $par5EntityPlayer.$itemDamage = 0; - if ($par5EntityPlayer.$itemDamage < 0) - $par5EntityPlayer.$itemDamage = 0; - var$14 = $var13.$mainInventory; - $var11 = var$14.data.length; - if ($par6 >= $var11) { - $par6 = $par6 - $var11 | 0; - var$14 = $var13.$armorInventory; - } - var$14.data[$par6] = $par5EntityPlayer; - } - $par6 = 3; - $var11 = 2; - $ptr = 1; - continue main; - } - a: { - if ($var10.$itemID0 != nms_Item_glassBottle.$itemID) { - if ($var11 <= 0) - break a; - if (!(nms_Item_itemsList.data[$var10.$itemID0] instanceof nms_ItemArmor)) - break a; - if (nms_Item_itemsList.data[$var10.$itemID0].$material !== nms_EnumArmorMaterial_CLOTH) - break a; - nms_ItemArmor_removeColor(nms_Item_itemsList.data[$var10.$itemID0], $var10); - $par6 = $var11 - 1 | 0; - $var11 = 2; - $ptr = 2; - continue main; - } - if ($var11 > 0) { - $var12 = new nms_ItemStack; - var$13 = nms_Item_potion.$itemID; - $var12.$stackSize = 0; - $var12.$itemFrame = null; - $var12.$itemID0 = var$13; - $var12.$stackSize = 1; - $var12.$itemDamage = 0; - if ($var12.$itemDamage < 0) - $var12.$itemDamage = 0; - $var13 = nms_EntityItem__init_0($par1World, $par2 + 0.5, $par3 + 1.5, $par4 + 0.5); - nms_DataWatcher_updateObject($var13.$dataWatcher, 10, $var12); - nms_DataWatcher_setObjectWatched($var13.$dataWatcher, 10); - $par6 = nms_World_spawnEntityInWorld($par1World, $var13); - $var12 = $par1World.$entityList; - ju_HashMap_putImpl($var12.$backingMap, $var13, $var12); - if (!$par6) { - $var12 = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl($var12.$backingMap, $var13, $var12); - } - $var10.$stackSize = $var10.$stackSize - 1 | 0; - if ($var10.$stackSize <= 0) { - $var13 = $par5EntityPlayer.$inventory; - $par6 = $par5EntityPlayer.$inventory.$currentItem; - $par5EntityPlayer = null; - var$14 = $var13.$mainInventory; - var$16 = var$14.data.length; - if ($par6 >= var$16) { - $par6 = $par6 - var$16 | 0; - var$14 = $var13.$armorInventory; - } - var$14.data[$par6] = $par5EntityPlayer; - } - $par6 = $var11 - 1 | 0; - $var11 = 2; - $ptr = 3; - continue main; - } - } - return 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var11); - if ($rt_suspending()) { - break main; - } - return 1; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var11); - if ($rt_suspending()) { - break main; - } - return 1; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var11); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $var11, $var13, var$13, var$14, $var12, var$16, $ptr); -} -function nms_BlockCauldron_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_cauldron.$itemID; -} -function nms_BlockCauldron_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_cauldron.$itemID; -} -function nms_BlockEndPortal() { - nms_BlockContainer.call(this); -} -var nms_BlockEndPortal_bossDefeated = 0; -function nms_BlockEndPortal__init_(var_0, var_1) { - var var_2 = new nms_BlockEndPortal(); - nms_BlockEndPortal__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockEndPortal__init_0($this, $par1, $par2Material) { - nms_Block__init_0($this, $par1, $par2Material); - $this.$isBlockContainer = 1; - nms_Block_lightValue.data[$this.$blockID] = 15; -} -function nms_BlockEndPortal_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityEndPortal; - $par1World.$blockMetadata = (-1); - return $par1World; -} -function nms_BlockEndPortal_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.0625; - $this.$maxZ0 = 1.0; -} -function nms_BlockEndPortal_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return !$par5 ? nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) : 0; -} -function nms_BlockEndPortal_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - return; -} -function nms_BlockEndPortal_isOpaqueCube($this) { - return 0; -} -function nms_BlockEndPortal_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockEndPortal_quantityDropped($this, $par1Random) { - return 0; -} -function nms_BlockEndPortal_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - if ($par5Entity.$ridingEntity === null && $par5Entity.$riddenByEntity === null && !$par1World.$isRemote) - $par5Entity.$travelToDimension(1); -} -function nms_BlockEndPortal_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $var6, $var8, $var10, $var12, $var14, $var16, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();$var16 = $thread.pop();$var14 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = $par2 + Math.random(); - $var8 = $par3 + 0.800000011920929; - $var10 = $par4 + Math.random(); - $var12 = 0.0; - $var14 = 0.0; - $var16 = 0.0; - $par5Random = $rt_s(852); - $par2 = 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$12 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$12.$size0) { - var$12 = var$12.$array1.data[$par2]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - case 1: - nms_RenderGlobal_doSpawnParticle(var$12, $par5Random, $var6, $var8, $var10, $var12, $var14, $var16); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - if ($par2 >= $par1World.$worldAccesses.$size0) - return; - var$12 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$12.$size0) { - var$12 = var$12.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $var6, $var8, $var10, $var12, $var14, $var16, var$12, $ptr); -} -function nms_BlockEndPortal_getRenderType($this) { - return (-1); -} -function nms_BlockEndPortal_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!nms_BlockEndPortal_bossDefeated && $par1World.$provider.$dimensionId) { - var$5 = 0; - var$6 = 0; - var$7 = 3; - $ptr = 1; - continue main; - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, $ptr); -} -function nms_BlockEndPortal_idPicked($this, $par1World, $par2, $par3, $par4) { - return 0; -} -function nms_BlockEndPortal_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(716)); -} -function nms_BlockEndPortal__clinit_() { - nms_BlockEndPortal_bossDefeated = 0; -} -function nms_BlockEndPortalFrame() { - var a = this; nms_Block.call(a); - a.$field_94400_a = null; - a.$field_94399_b = null; -} -function nms_BlockEndPortalFrame__init_(var_0) { - var var_1 = new nms_BlockEndPortalFrame(); - nms_BlockEndPortalFrame__init_0(var_1, var_0); - return var_1; -} -function nms_BlockEndPortalFrame__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); -} -function nms_BlockEndPortalFrame_getIcon($this, $par1, $par2) { - var var$3; - if ($par1 == 1) - var$3 = $this.$field_94400_a; - else if ($par1) - var$3 = $this.$blockIcon; - else { - nms_Block_$callClinit(); - var$3 = nms_Block_whiteStone.$getIcon($par1, 0); - } - return var$3; -} -function nms_BlockEndPortalFrame_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2157)); - $this.$field_94400_a = $par1IconRegister.$registerIcon($rt_s(2158)); - $this.$field_94399_b = $par1IconRegister.$registerIcon($rt_s(2159)); -} -function nms_BlockEndPortalFrame_func_94398_p($this) { - return $this.$field_94399_b; -} -function nms_BlockEndPortalFrame_isOpaqueCube($this) { - return 0; -} -function nms_BlockEndPortalFrame_getRenderType($this) { - return 26; -} -function nms_BlockEndPortalFrame_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.8125; - $this.$maxZ0 = 1.0; -} -function nms_BlockEndPortalFrame_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.8125; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - if (!(nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 4) ? 0 : 1) { - $this.$minX0 = 0.3125; - $this.$minY0 = 0.8125; - $this.$minZ0 = 0.3125; - $this.$maxX0 = 0.6875; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.6875; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - } - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.8125; - $this.$maxZ0 = 1.0; -} -function nms_BlockEndPortalFrame_isEnderEyeInserted($par0) { - return !($par0 & 4) ? 0 : 1; -} -function nms_BlockEndPortalFrame_idDropped($this, $par1, $par2Random, $par3) { - return 0; -} -function nms_BlockEndPortalFrame_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, $var7, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - $var7 = var$7 | 0; - if (var$7 < $var7) - $var7 = $var7 - 1 | 0; - $var7 = (($var7 & 3) + 2 | 0) % 4 | 0; - var$9 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, $var7, var$9, $ptr); -} -function nms_BlockDragonEgg() { - nms_Block.call(this); -} -function nms_BlockDragonEgg__init_(var_0) { - var var_1 = new nms_BlockDragonEgg(); - nms_BlockDragonEgg__init_0(var_1, var_0); - return var_1; -} -function nms_BlockDragonEgg__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_dragonEgg); - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.9375; -} -function nms_BlockDragonEgg_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - return; -} -function nms_BlockDragonEgg_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - return; -} -function nms_BlockDragonEgg_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockDragonEgg_teleportNearby($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $ptr); -} -function nms_BlockDragonEgg_onBlockClicked($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockDragonEgg_teleportNearby($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $ptr); -} -function nms_BlockDragonEgg_teleportNearby($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var20, $var13, $var14, $var15, $var16, $var18, var$17, var$18, var$19, var$20, var$21, var$22, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();$var18 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var20 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) == $this.$blockID) { - $var5 = 0; - while (true) { - if ($var5 >= 1000) - break a; - $var6 = ($par2 + (Math.random() * 16.0 | 0) | 0) - (Math.random() * 16.0 | 0) | 0; - $var7 = ($par3 + (Math.random() * 8.0 | 0) | 0) - (Math.random() * 8.0 | 0) | 0; - $var8 = ($par4 + (Math.random() * 16.0 | 0) | 0) - (Math.random() * 16.0 | 0) | 0; - if (!nms_World_getBlockId($par1World, $var6, $var7, $var8)) { - if (!$par1World.$isRemote) { - $var9 = $this.$blockID; - $var10 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var5 = 2; - $ptr = 1; - continue main; - } - $var9 = 128; - $var10 = 0; - while ($var10 < $var9) { - $var20 = Math.random(); - $var13 = (Math.random() - 0.5) * 0.20000000298023224; - $var14 = (Math.random() - 0.5) * 0.20000000298023224; - $var15 = (Math.random() - 0.5) * 0.20000000298023224; - $var16 = $var6 + ($par2 - $var6 | 0) * $var20 + (Math.random() - 0.5) * 1.0 + 0.5; - $var18 = $var7 + ($par3 - $var7 | 0) * $var20 + Math.random() * 1.0 - 0.5; - $var20 = $var8 + ($par4 - $var8 | 0) * $var20 + (Math.random() - 0.5) * 1.0 + 0.5; - var$17 = $rt_s(716); - var$18 = $var13; - var$19 = $var14; - var$20 = $var15; - var$21 = 0; - if (var$21 < $par1World.$worldAccesses.$size0) { - var$22 = $par1World.$worldAccesses; - if (var$21 >= 0 && var$21 < var$22.$size0) { - var$22 = var$22.$array1.data[var$21]; - $ptr = 3; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var10 = $var10 + 1 | 0; - } - return; - } - $var5 = $var5 + 1 | 0; - } - } - } - return; - case 1: - nms_World_setBlock($par1World, $var6, $var7, $var8, $var9, $var10, $var5); - if ($rt_suspending()) { - break main; - } - $var9 = 0; - $var10 = 0; - $var5 = 3; - $ptr = 2; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $var9, $var10, $var5); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_RenderGlobal_doSpawnParticle(var$22, var$17, $var16, $var18, $var20, var$18, var$19, var$20); - if ($rt_suspending()) { - break main; - } - var$21 = var$21 + 1 | 0; - while (true) { - if (var$21 < $par1World.$worldAccesses.$size0) { - var$22 = $par1World.$worldAccesses; - if (var$21 >= 0 && var$21 < var$22.$size0) { - var$22 = var$22.$array1.data[var$21]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var10 = $var10 + 1 | 0; - if ($var10 >= $var9) - break; - $var20 = Math.random(); - $var13 = (Math.random() - 0.5) * 0.20000000298023224; - $var14 = (Math.random() - 0.5) * 0.20000000298023224; - $var15 = (Math.random() - 0.5) * 0.20000000298023224; - $var16 = $var6 + ($par2 - $var6 | 0) * $var20 + (Math.random() - 0.5) * 1.0 + 0.5; - $var18 = $var7 + ($par3 - $var7 | 0) * $var20 + Math.random() * 1.0 - 0.5; - $var20 = $var8 + ($par4 - $var8 | 0) * $var20 + (Math.random() - 0.5) * 1.0 + 0.5; - var$17 = $rt_s(716); - var$18 = $var13; - var$19 = $var14; - var$20 = $var15; - var$21 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, $var7, $var8, $var9, $var10, $var20, $var13, $var14, $var15, $var16, $var18, var$17, var$18, var$19, var$20, var$21, var$22, $ptr); -} -function nms_BlockDragonEgg_tickRate($this, $par1World) { - return 5; -} -function nms_BlockDragonEgg_isOpaqueCube($this) { - return 0; -} -function nms_BlockDragonEgg_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockDragonEgg_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 1; -} -function nms_BlockDragonEgg_getRenderType($this) { - return 27; -} -function nms_BlockDragonEgg_idPicked($this, $par1World, $par2, $par3, $par4) { - return 0; -} -function nms_BlockRedstoneLight() { - nms_Block.call(this); - this.$powered = 0; -} -function nms_BlockRedstoneLight__init_(var_0, var_1) { - var var_2 = new nms_BlockRedstoneLight(); - nms_BlockRedstoneLight__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockRedstoneLight__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_redstoneLight); - $this.$powered = $par2; - if ($par2) - nms_Block_lightValue.data[$this.$blockID] = 15; -} -function nms_BlockRedstoneLight_registerIcons($this, $par1IconRegister) { - if (!$this.$powered) - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(1685)); - else - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2160)); -} -function nms_BlockRedstoneLight_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote && !($this.$powered && !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4)) && !$this.$powered && nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4)) { - nms_Block_$callClinit(); - var$5 = nms_Block_redstoneLampActive.$blockID; - var$6 = 0; - var$7 = 2; - $ptr = 1; - continue main; - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, var$7, $ptr); -} -function nms_BlockRedstoneLight_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote && !($this.$powered && !nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4)) && !$this.$powered && nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4)) { - nms_Block_$callClinit(); - var$6 = nms_Block_redstoneLampActive.$blockID; - $par5 = 0; - var$7 = 2; - $ptr = 1; - continue main; - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$6, $par5, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockRedstoneLight_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_redstoneLampIdle.$blockID; -} -function nms_BlockRedstoneLight_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Block_$callClinit(); - return nms_Block_redstoneLampIdle.$blockID; -} -function nms_BlockWoodSlab() { - nms_BlockHalfSlab.call(this); -} -var nms_BlockWoodSlab_woodType = null; -function nms_BlockWoodSlab__init_(var_0, var_1) { - var var_2 = new nms_BlockWoodSlab(); - nms_BlockWoodSlab__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockWoodSlab__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_BlockHalfSlab__init_0($this, $par1, $par2, nms_Material_wood); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockWoodSlab_getIcon($this, $par1, $par2) { - nms_Block_$callClinit(); - return nms_Block_planks.$getIcon($par1, $par2 & 7); -} -function nms_BlockWoodSlab_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_woodSingleSlab.$blockID; -} -function nms_BlockWoodSlab_getFullSlabName($this, $par1) { - var var$2, var$3, var$4; - if (!($par1 >= 0 && $par1 < nms_BlockWoodSlab_woodType.data.length)) - $par1 = 0; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(1590)); - var$4 = $this.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$4); - var$4 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$4); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(303)); - var$3 = nms_BlockWoodSlab_woodType.data[$par1]; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$3); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -} -function nms_BlockWoodSlab_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - var $var4; - a: { - nms_Block_$callClinit(); - if ($par1 != nms_Block_woodDoubleSlab.$blockID) { - $var4 = 0; - while (true) { - if ($var4 >= 4) - break a; - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = $var4; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $var4 = $var4 + 1 | 0; - } - } - } -} -function nms_BlockWoodSlab_registerIcons($this, $par1IconRegister) { - return; -} -function nms_BlockWoodSlab__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(2007); - var$2[1] = $rt_s(2008); - var$2[2] = $rt_s(2009); - var$2[3] = $rt_s(2010); - nms_BlockWoodSlab_woodType = var$1; -} -function nms_BlockCocoa() { - nms_BlockDirectional.call(this); - this.$iconArray11 = null; -} -var nms_BlockCocoa_cocoaIcons = null; -function nms_BlockCocoa__init_(var_0) { - var var_1 = new nms_BlockCocoa(); - nms_BlockCocoa__init_0(var_1, var_0); - return var_1; -} -function nms_BlockCocoa__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_plants); - $this.$needsRandomTick = 1; -} -function nms_BlockCocoa_getIcon($this, $par1, $par2) { - return $this.$iconArray11.data[2]; -} -function nms_BlockCocoa_func_94468_i_($this, $par1) { - if (!($par1 >= 0 && $par1 < $this.$iconArray11.data.length)) - $par1 = $this.$iconArray11.data.length - 1 | 0; - return $this.$iconArray11.data[$par1]; -} -function nms_BlockCocoa_canBlockStay($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 3; - $par2 = $par2 + nms_Direction_offsetX.data[$var5] | 0; - $var5 = $par4 + nms_Direction_offsetZ.data[$var5] | 0; - $var6 = nms_World_getBlockId($par1World, $par2, $par3, $var5); - nms_Block_$callClinit(); - return $var6 == nms_Block_wood.$blockID && (nms_World_getBlockMetadata($par1World, $par2, $par3, $var5) & 3) == 3 ? 1 : 0; -} -function nms_BlockCocoa_getRenderType($this) { - return 28; -} -function nms_BlockCocoa_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockCocoa_isOpaqueCube($this) { - return 0; -} -function nms_BlockCocoa_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockCocoa_setBlockBoundsBasedOnState($this, $par1World, $par2, $par3, $par4); - return nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockCocoa_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockCocoa_setBlockBoundsBasedOnState($this, $par1World, $par2, $par3, $par4); - return nms_Block_getSelectedBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockCocoa_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var8, $var9, var$9, $var10, var$11, var$12, var$13; - a: { - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - $var6 = $var5 & 3; - $par3 = (($var5 & 12) >> 2) * 2 | 0; - $var8 = 4 + $par3 | 0; - $var9 = 5 + $par3 | 0; - var$9 = $var8; - $var10 = var$9 / 2.0; - switch ($var6) { - case 0: - break; - case 1: - var$11 = (12.0 - $var9) / 16.0; - var$12 = (8.0 - $var10) / 16.0; - var$9 = (1.0 + var$9) / 16.0; - $var10 = (8.0 + $var10) / 16.0; - $this.$minX0 = 0.0625; - $this.$minY0 = var$11; - $this.$minZ0 = var$12; - $this.$maxX0 = var$9; - $this.$maxY0 = 0.75; - $this.$maxZ0 = $var10; - break a; - case 2: - var$12 = (8.0 - $var10) / 16.0; - var$11 = (12.0 - $var9) / 16.0; - $var10 = (8.0 + $var10) / 16.0; - var$9 = (1.0 + var$9) / 16.0; - $this.$minX0 = var$12; - $this.$minY0 = var$11; - $this.$minZ0 = 0.0625; - $this.$maxX0 = $var10; - $this.$maxY0 = 0.75; - $this.$maxZ0 = var$9; - break a; - case 3: - var$12 = (15.0 - var$9) / 16.0; - var$13 = (12.0 - $var9) / 16.0; - var$9 = (8.0 - $var10) / 16.0; - $var10 = (8.0 + $var10) / 16.0; - $this.$minX0 = var$12; - $this.$minY0 = var$13; - $this.$minZ0 = var$9; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.75; - $this.$maxZ0 = $var10; - break a; - default: - break a; - } - var$11 = (8.0 - $var10) / 16.0; - var$12 = (12.0 - $var9) / 16.0; - var$9 = (15.0 - var$9) / 16.0; - $var10 = (8.0 + $var10) / 16.0; - $this.$minX0 = var$11; - $this.$minY0 = var$12; - $this.$minZ0 = var$9; - $this.$maxX0 = $var10; - $this.$maxY0 = 0.75; - $this.$maxZ0 = 0.9375; - } -} -function nms_BlockCocoa_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, $var7, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - $var7 = var$7 | 0; - if (var$7 < $var7) - $var7 = $var7 - 1 | 0; - $var7 = (($var7 & 3) + 0 | 0) % 4 | 0; - var$9 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, $var7, var$9, $ptr); -} -function nms_BlockCocoa_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - if (!($par5 != 1 && $par5)) - $par5 = 2; - return nms_Direction_rotateOpposite.data[nms_Direction_facingToDirection.data[$par5]]; -} -function nms_BlockCocoa_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_BlockCocoa_canBlockStay($this, $par1World, $par2, $par3, $par4)) - return; - nms_BlockCocoa_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - var$6 = 0; - var$7 = 0; - $par5 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$6, var$7, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, $ptr); -} -function nms_BlockCocoa_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var10, var$11; - $var8 = ($par5 & 12) >> 2; - $var9 = 1; - if ($var8 >= 2) - $var9 = 3; - $var10 = 0; - while ($var10 < $var9) { - var$11 = new nms_ItemStack; - nms_Item_$callClinit(); - $var8 = nms_Item_dyePowder.$itemID; - var$11.$stackSize = 0; - var$11.$itemFrame = null; - var$11.$itemID0 = $var8; - var$11.$stackSize = 1; - var$11.$itemDamage = 3; - if (var$11.$itemDamage < 0) - var$11.$itemDamage = 0; - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, var$11); - $var10 = $var10 + 1 | 0; - } -} -function nms_BlockCocoa_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_dyePowder.$itemID; -} -function nms_BlockCocoa_getDamageValue($this, $par1World, $par2, $par3, $par4) { - return 3; -} -function nms_BlockCocoa_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$iconArray11 = $rt_createArray(nms_Icon, nms_BlockCocoa_cocoaIcons.data.length); - $var2 = 0; - while ($var2 < $this.$iconArray11.data.length) { - $this.$iconArray11.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockCocoa_cocoaIcons.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockCocoa__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(2161); - var$2[1] = $rt_s(2162); - var$2[2] = $rt_s(2163); - nms_BlockCocoa_cocoaIcons = var$1; -} -function nms_BlockEnderChest() { - nms_BlockContainer.call(this); -} -function nms_BlockEnderChest__init_(var_0) { - var var_1 = new nms_BlockEnderChest(); - nms_BlockEnderChest__init_0(var_1, var_0); - return var_1; -} -function nms_BlockEnderChest__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$isBlockContainer = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; - $this.$minX0 = 0.0625; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0625; - $this.$maxX0 = 0.9375; - $this.$maxY0 = 0.875; - $this.$maxZ0 = 0.9375; -} -function nms_BlockEnderChest_isOpaqueCube($this) { - return 0; -} -function nms_BlockEnderChest_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockEnderChest_getRenderType($this) { - return 22; -} -function nms_BlockEnderChest_idDropped($this, $par1, $par2Random, $par3) { - nms_Block_$callClinit(); - return nms_Block_obsidian.$blockID; -} -function nms_BlockEnderChest_quantityDropped($this, $par1Random) { - return 8; -} -function nms_BlockEnderChest_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var $var7, var$8, var$9, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = 0; - var$8 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - var$9 = var$8 | 0; - if (var$8 < var$9) - var$9 = var$9 - 1 | 0; - $var8 = var$9 & 3; - if (!$var8) - $var7 = 2; - if ($var8 == 1) - $var7 = 5; - if ($var8 == 2) - $var7 = 3; - if ($var8 == 3) - $var7 = 4; - $var8 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, $var8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, $var7, var$8, var$9, $var8, $ptr); -} -function nms_BlockEnderChest_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $var11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var10 = $par5EntityPlayer.$theInventoryEnderChest; - $var11 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var10 !== null && $var11 !== null) { - if (nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4))) - return 1; - if ($par1World.$isRemote) - return 1; - $var10.$associatedChest = $var11; - $var11 = $par5EntityPlayer.$mc3; - $par1World = new nms_GuiChest; - $par5EntityPlayer = $par5EntityPlayer.$inventory; - $ptr = 1; - continue main; - } - return 1; - case 1: - nms_GuiChest__init_($par1World, $par5EntityPlayer, $var10); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen($var11, $par1World); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $var11, $ptr); -} -function nms_BlockEnderChest_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityEnderChest; - $par1World.$blockMetadata = (-1); - return $par1World; -} -function nms_BlockEnderChest_randomDisplayTick($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $var6, var$7, var$8, var$9, var$10, $var9, $var19, $var20, var$14, $var11, var$16, $var7, var$18, var$19, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();$var7 = $thread.pop();var$16 = $thread.pop();$var11 = $thread.pop();var$14 = $thread.pop();$var20 = $thread.pop();$var19 = $thread.pop();$var9 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = 0; - var$7 = $par3; - var$8 = 2.0; - var$9 = $par4 + 0.5; - var$10 = $par2 + 0.5; - while ($var6 < 3) { - Math.random(); - $var9 = var$7 + Math.random(); - Math.random(); - $var19 = ((Math.random() * var$8 | 0) * 2 | 0) - 1 | 0; - $var20 = ((Math.random() * var$8 | 0) * 2 | 0) - 1 | 0; - Math.random(); - var$14 = (Math.random() - 0.5) * 0.125; - Math.random(); - $var11 = var$9 + 0.25 * $var20; - var$16 = Math.random() * 1.0 * $var20; - $var7 = var$10 + 0.25 * $var19; - var$18 = Math.random() * 1.0 * $var19; - $par5Random = $rt_s(716); - $par2 = 0; - if ($par2 < $par1World.$worldAccesses.$size0) { - var$19 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$19.$size0) { - var$19 = var$19.$array1.data[$par2]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var6 = $var6 + 1 | 0; - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$19, $par5Random, $var7, $var9, $var11, var$18, var$14, var$16); - if ($rt_suspending()) { - break main; - } - $par2 = $par2 + 1 | 0; - while (true) { - if ($par2 < $par1World.$worldAccesses.$size0) { - var$19 = $par1World.$worldAccesses; - if ($par2 >= 0 && $par2 < var$19.$size0) { - var$19 = var$19.$array1.data[$par2]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); - } - $var6 = $var6 + 1 | 0; - if ($var6 >= 3) - break; - Math.random(); - $var9 = var$7 + Math.random(); - Math.random(); - $var19 = ((Math.random() * var$8 | 0) * 2 | 0) - 1 | 0; - $var20 = ((Math.random() * var$8 | 0) * 2 | 0) - 1 | 0; - Math.random(); - var$14 = (Math.random() - 0.5) * 0.125; - Math.random(); - $var11 = var$9 + 0.25 * $var20; - var$16 = Math.random() * 1.0 * $var20; - $var7 = var$10 + 0.25 * $var19; - var$18 = Math.random() * 1.0 * $var19; - $par5Random = $rt_s(716); - $par2 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $var6, var$7, var$8, var$9, var$10, $var9, $var19, $var20, var$14, $var11, var$16, $var7, var$18, var$19, $ptr); -} -function nms_BlockEnderChest_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(1634)); -} -function nms_BlockTripWireSource() { - nms_Block.call(this); -} -function nms_BlockTripWireSource__init_(var_0) { - var var_1 = new nms_BlockTripWireSource(); - nms_BlockTripWireSource__init_0(var_1, var_0); - return var_1; -} -function nms_BlockTripWireSource__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; - $this.$needsRandomTick = 1; -} -function nms_BlockTripWireSource_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockTripWireSource_isOpaqueCube($this) { - return 0; -} -function nms_BlockTripWireSource_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockTripWireSource_getRenderType($this) { - return 29; -} -function nms_BlockTripWireSource_tickRate($this, $par1World) { - return 10; -} -function nms_BlockTripWireSource_canPlaceBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5) { - return $par5 == 2 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) ? 1 : $par5 == 3 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) ? 1 : $par5 == 4 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) ? 1 : $par5 == 5 && nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) ? 1 : 0; -} -function nms_BlockTripWireSource_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - return nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) ? 1 : nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)); -} -function nms_BlockTripWireSource_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var $var10; - $var10 = 0; - if ($par5 == 2 && nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 + 1 | 0, 1)) - $var10 = 2; - if ($par5 == 3 && nms_World_isBlockNormalCubeDefault($par1World, $par2, $par3, $par4 - 1 | 0, 1)) - $var10 = 0; - if ($par5 == 4 && nms_World_isBlockNormalCubeDefault($par1World, $par2 + 1 | 0, $par3, $par4, 1)) - $var10 = 1; - if ($par5 == 5 && nms_World_isBlockNormalCubeDefault($par1World, $par2 - 1 | 0, $par3, $par4, 1)) - $var10 = 3; - return $var10; -} -function nms_BlockTripWireSource_onPostBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, 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();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $this.$blockID; - var$7 = 0; - var$8 = (-1); - var$9 = 0; - $ptr = 1; - case 1: - nms_BlockTripWireSource_func_72143_a($this, $par1World, $par2, $par3, $par4, var$6, $par5, var$7, var$8, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, var$8, var$9, $ptr); -} -function nms_BlockTripWireSource_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var7, $var8, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par5 != $this.$blockID) { - if (!nms_BlockTripWireSource_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4)) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, nms_World_getBlockMetadata($par1World, $par2, $par3, $par4), 1.0, 0); - $par5 = 0; - $var7 = 0; - $var8 = 3; - $ptr = 1; - continue main; - } - if (1) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = $var6 & 3; - $var8 = 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) && $var7 == 3) - $var8 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) && $var7 == 1) - $var8 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) && !$var7) - $var8 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) && $var7 == 2) - $var8 = 1; - if ($var8) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - $par5 = 0; - $var7 = 0; - $var8 = 3; - $ptr = 2; - continue main; - } - } - } - return; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var7, $var8); - if ($rt_suspending()) { - break main; - } - if (0) { - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = $var6 & 3; - $var8 = 0; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 - 1 | 0, $par3, $par4)) && $var7 == 3) - $var8 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2 + 1 | 0, $par3, $par4)) && $var7 == 1) - $var8 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 - 1 | 0)) && !$var7) - $var8 = 1; - if (!nms_Block_isNormalCube(nms_World_getBlockId($par1World, $par2, $par3, $par4 + 1 | 0)) && $var7 == 2) - $var8 = 1; - if ($var8) { - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - $par5 = 0; - $var7 = 0; - $var8 = 3; - $ptr = 2; - continue main; - } - } - return; - case 2: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var7, $var8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var7, $var8, $var6, $ptr); -} -function nms_BlockTripWireSource_func_72143_a($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var $var10, $var11, $var12, $var13, $var14, $var21, $var15, $var16, $var17, $var19, $var20, $var22, $var23, $var24, $var25, $var26, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var26 = $thread.pop();$var25 = $thread.pop();$var24 = $thread.pop();$var23 = $thread.pop();$var22 = $thread.pop();$var20 = $thread.pop();$var19 = $thread.pop();$var17 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var21 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 - = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var10 = $par6 & 3; - $var11 = ($par6 & 4) != 4 ? 0 : 1; - $var12 = ($par6 & 8) != 8 ? 0 : 1; - nms_Block_$callClinit(); - $var13 = $par5 != nms_Block_tripWireSource.$blockID ? 0 : 1; - $var14 = 0; - $var21 = $par3 - 1 | 0; - $var15 = nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $var21, $par4)], nms_World_getBlockMetadata($par1World, $par2, $var21, $par4)) ? 0 : 1; - $var16 = nms_Direction_offsetX.data[$var10]; - $var17 = nms_Direction_offsetZ.data[$var10]; - $var19 = $rt_createIntArray(42).data; - $var20 = 1; - a: { - while ($var20 < 42) { - $var21 = $par2 + $rt_imul($var16, $var20) | 0; - $var22 = $par4 + $rt_imul($var17, $var20) | 0; - $var23 = nms_World_getBlockId($par1World, $var21, $par3, $var22); - if ($var23 == nms_Block_tripWireSource.$blockID) { - if ((nms_World_getBlockMetadata($par1World, $var21, $par3, $var22) & 3) == nms_Direction_rotateOpposite.data[$var10]) - break a; - $var20 = 0; - break a; - } - if ($var23 != nms_Block_tripWire.$blockID && $var20 != $par8) { - $var19[$var20] = (-1); - $var13 = 0; - } else { - $var23 = $rt_compare($var20, $par8); - $var24 = $var23 ? nms_World_getBlockMetadata($par1World, $var21, $par3, $var22) : $par9; - $var25 = ($var24 & 8) == 8 ? 0 : 1; - $var26 = ($var24 & 1) != 1 ? 0 : 1; - $var13 = $var13 & ((($var24 & 2) != 2 ? 0 : 1) != $var15 ? 0 : 1); - $var14 = $var14 | ($var25 && $var26 ? 1 : 0); - $var19[$var20] = $var24; - if (!$var23) - $var13 = $var13 & $var25; - } - $var20 = $var20 + 1 | 0; - } - $var20 = 0; - } - $par6 = $var13 & ($var20 <= 1 ? 0 : 1); - $par8 = $var14 & $par6; - $par9 = (!$par6 ? 0 : 4) | (!$par8 ? 0 : 8); - $var13 = $var10 | $par9; - if ($var20 > 0) { - $var21 = $par2 + $rt_imul($var16, $var20) | 0; - $var22 = $par4 + $rt_imul($var17, $var20) | 0; - $var23 = nms_Direction_rotateOpposite.data[$var10]; - $par9 = $var23 | $par9; - $var25 = 3; - $ptr = 1; - continue main; - } - nms_BlockTripWireSource_playSoundEffect($this, $par1World, $par2, $par3, $par4, $par6, $par8, $var11, $var12); - if ($par5 > 0) { - $par5 = 3; - $ptr = 3; - continue main; - } - b: { - if ($var11 != $par6) { - $var21 = 1; - while (true) { - if ($var21 >= $var20) - break b; - $var22 = $par2 + $rt_imul($var16, $var21) | 0; - $var23 = $par4 + $rt_imul($var17, $var21) | 0; - $var24 = $var19[$var21]; - if ($var24 >= 0) { - $par5 = !$par6 ? $var24 & (-5) : $var24 | 4; - $par7 = 3; - $ptr = 5; - continue main; - } - $var21 = $var21 + 1 | 0; - } - } - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $var21, $par3, $var22, $par9, $var25); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nms_BlockTripWireSource_notifyNeighborOfChange($this, $par1World, $var21, $par3, $var22, $var23); - if ($rt_suspending()) { - break main; - } - nms_BlockTripWireSource_playSoundEffect($this, $par1World, $var21, $par3, $var22, $par6, $par8, $var11, $var12); - nms_BlockTripWireSource_playSoundEffect($this, $par1World, $par2, $par3, $par4, $par6, $par8, $var11, $var12); - if ($par5 > 0) { - $par5 = 3; - $ptr = 3; - continue main; - } - c: { - if ($var11 != $par6) { - $var21 = 1; - while (true) { - if ($var21 >= $var20) - break c; - $var22 = $par2 + $rt_imul($var16, $var21) | 0; - $var23 = $par4 + $rt_imul($var17, $var21) | 0; - $var24 = $var19[$var21]; - if ($var24 >= 0) { - $par5 = !$par6 ? $var24 & (-5) : $var24 | 4; - $par7 = 3; - $ptr = 5; - continue main; - } - $var21 = $var21 + 1 | 0; - } - } - } - return; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var13, $par5); - if ($rt_suspending()) { - break main; - } - if ($par7) { - $ptr = 4; - continue main; - } - c: { - if ($var11 != $par6) { - $var21 = 1; - while (true) { - if ($var21 >= $var20) - break c; - $var22 = $par2 + $rt_imul($var16, $var21) | 0; - $var23 = $par4 + $rt_imul($var17, $var21) | 0; - $var24 = $var19[$var21]; - if ($var24 >= 0) { - $par5 = !$par6 ? $var24 & (-5) : $var24 | 4; - $par7 = 3; - $ptr = 5; - continue main; - } - $var21 = $var21 + 1 | 0; - } - } - } - return; - case 4: - nms_BlockTripWireSource_notifyNeighborOfChange($this, $par1World, $par2, $par3, $par4, $var10); - if ($rt_suspending()) { - break main; - } - d: { - if ($var11 != $par6) { - $var21 = 1; - while (true) { - if ($var21 >= $var20) - break d; - $var22 = $par2 + $rt_imul($var16, $var21) | 0; - $var23 = $par4 + $rt_imul($var17, $var21) | 0; - $var24 = $var19[$var21]; - if ($var24 >= 0) { - $par5 = !$par6 ? $var24 & (-5) : $var24 | 4; - $par7 = 3; - $ptr = 5; - continue main; - } - $var21 = $var21 + 1 | 0; - } - } - } - return; - case 5: - nms_World_setBlockMetadataWithNotify($par1World, $var22, $par3, $var23, $par5, $par7); - if ($rt_suspending()) { - break main; - } - while (true) { - $var21 = $var21 + 1 | 0; - if ($var21 >= $var20) - break; - $var22 = $par2 + $rt_imul($var16, $var21) | 0; - $var23 = $par4 + $rt_imul($var17, $var21) | 0; - $var24 = $var19[$var21]; - if ($var24 < 0) - continue; - else { - $par5 = !$par6 ? $var24 & (-5) : $var24 | 4; - $par7 = 3; - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9, $var10, $var11, $var12, $var13, $var14, $var21, $var15, $var16, $var17, $var19, $var20, $var22, $var23, $var24, $var25, $var26, $ptr); -} -function nms_BlockTripWireSource_playSoundEffect($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8) { - if ($par6 && !$par8) - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.1, $par4 + 0.5, $rt_s(432), 0.4000000059604645, 0.6000000238418579); - else if (!$par6 && $par8) - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.1, $par4 + 0.5, $rt_s(432), 0.4000000059604645, 0.5); - else if ($par5 && !$par7) - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.1, $par4 + 0.5, $rt_s(432), 0.4000000059604645, 0.699999988079071); - else if (!$par5 && $par7) - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.1, $par4 + 0.5, $rt_s(1341), 0.4000000059604645, 1.2000000476837158 / (Math.random() * 0.20000000298023224 + 0.8999999761581421)); -} -function nms_BlockTripWireSource_notifyNeighborOfChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $this.$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, var$6); - if ($rt_suspending()) { - break main; - } - if ($par5 == 3) { - $par2 = $par2 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 2; - continue main; - } - if ($par5 == 1) { - $par2 = $par2 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 3; - continue main; - } - if (!$par5) { - $par4 = $par4 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 4; - continue main; - } - if ($par5 != 2) - return; - $par4 = $par4 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 5; - continue main; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, $ptr); -} -function nms_BlockTripWireSource_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 3; - if ($var5 == 3) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.3125; - $this.$maxX0 = 0.375; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.6875; - } else if ($var5 == 1) { - $this.$minX0 = 0.625; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.3125; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.6875; - } else if (!$var5) { - $this.$minX0 = 0.3125; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.6875; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 0.375; - } else if ($var5 == 2) { - $this.$minX0 = 0.3125; - $this.$minY0 = 0.20000000298023224; - $this.$minZ0 = 0.625; - $this.$maxX0 = 0.6875; - $this.$maxY0 = 0.800000011920929; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockTripWireSource_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, $var9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = ($par6 & 4) != 4 ? 0 : 1; - $var8 = ($par6 & 8) != 8 ? 0 : 1; - if (!$var7 && !$var8) { - if (!$var8) - return; - $par5 = $this.$blockID; - $ptr = 2; - continue main; - } - $par5 = 0; - $var7 = 0; - $var9 = (-1); - var$10 = 0; - $ptr = 1; - case 1: - nms_BlockTripWireSource_func_72143_a($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var9, var$10); - if ($rt_suspending()) { - break main; - } - if (!$var8) - return; - $par5 = $this.$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - $var9 = $par6 & 3; - if ($var9 == 3) { - $par2 = $par2 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 3; - continue main; - } - if ($var9 == 1) { - $par2 = $par2 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 4; - continue main; - } - if (!$var9) { - $par4 = $par4 - 1 | 0; - $par5 = $this.$blockID; - $ptr = 5; - continue main; - } - if ($var9 != 2) - return; - $par4 = $par4 + 1 | 0; - $par5 = $this.$blockID; - $ptr = 6; - continue main; - case 3: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 5: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - case 6: - nms_World_notifyBlocksOfNeighborChange($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var8, $var9, var$10, $ptr); -} -function nms_BlockTripWireSource_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return (nms_World_getBlockMetadata($par1IBlockAccess, $par2, $par3, $par4) & 8) != 8 ? 0 : 15; -} -function nms_BlockTripWireSource_isProvidingStrongPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $var6 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - if (($var6 & 8) != 8) - return 0; - $var7 = $var6 & 3; - return $var7 == 2 && $par5 == 2 ? 15 : !$var7 && $par5 == 3 ? 15 : $var7 == 1 && $par5 == 4 ? 15 : $var7 == 3 && $par5 == 5 ? 15 : 0; -} -function nms_BlockTripWireSource_canProvidePower($this) { - return 1; -} -function nms_BlockTripWire() { - nms_Block.call(this); -} -function nms_BlockTripWire__init_(var_0) { - var var_1 = new nms_BlockTripWire(); - nms_BlockTripWire__init_0(var_1, var_0); - return var_1; -} -function nms_BlockTripWire__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.15625; - $this.$maxZ0 = 1.0; - $this.$needsRandomTick = 1; -} -function nms_BlockTripWire_tickRate($this, $par1World) { - return 10; -} -function nms_BlockTripWire_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - return null; -} -function nms_BlockTripWire_isOpaqueCube($this) { - return 0; -} -function nms_BlockTripWire_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockTripWire_getRenderBlockPass($this) { - return 1; -} -function nms_BlockTripWire_getRenderType($this) { - return 30; -} -function nms_BlockTripWire_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_silk.$itemID; -} -function nms_BlockTripWire_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_silk.$itemID; -} -function nms_BlockTripWire_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7 = ($var6 & 2) != 2 ? 0 : 1; - $par5 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if ($var7 == (nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par5, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par5, $par4)) ? 0 : 1)) - return; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $var6, 1.0, 0); - $par5 = 0; - $var7 = 0; - $var8 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, $par5, $var7, $var8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $var8, $ptr); -} -function nms_BlockTripWire_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4); - $var6 = ($var5 & 4) != 4 ? 0 : 1; - if (!(($var5 & 2) != 2 ? 0 : 1)) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.09375; - $this.$maxZ0 = 1.0; - } else if (!$var6) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.5; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0625; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.15625; - $this.$maxZ0 = 1.0; - } -} -function nms_BlockTripWire_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, $var5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var5 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$5 = $par3 - 1 | 0; - nms_Block_$callClinit(); - $var5 = !nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$5, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$5, $par4)) ? 2 : 0; - var$5 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var5, var$5); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nms_BlockTripWire_func_72149_e($this, $par1World, $par2, $par3, $par4, $var5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, $var5, $ptr); -} -function nms_BlockTripWire_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par5 = $par6 | 1; - $ptr = 1; - case 1: - nms_BlockTripWire_func_72149_e($this, $par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $ptr); -} -function nms_BlockTripWire_func_72149_e($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $var9, $var10, var$11, $var11, var$13, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$13 = $thread.pop();$var11 = $thread.pop();var$11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = 0; - while ($var6 < 2) { - $var7 = 1; - a: { - while (true) { - if ($var7 >= 42) - break a; - $var8 = $par2 + $rt_imul(nms_Direction_offsetX.data[$var6], $var7) | 0; - $var9 = $par4 + $rt_imul(nms_Direction_offsetZ.data[$var6], $var7) | 0; - $var10 = nms_World_getBlockId($par1World, $var8, $par3, $var9); - nms_Block_$callClinit(); - if ($var10 == nms_Block_tripWireSource.$blockID) - break; - if ($var10 != nms_Block_tripWire.$blockID) - break a; - $var7 = $var7 + 1 | 0; - } - if ((nms_World_getBlockMetadata($par1World, $var8, $par3, $var9) & 3) == nms_Direction_rotateOpposite.data[$var6]) { - var$11 = nms_Block_tripWireSource; - $var11 = nms_World_getBlockMetadata($par1World, $var8, $par3, $var9); - var$13 = 1; - $ptr = 1; - continue main; - } - } - $var6 = $var6 + 1 | 0; - } - return; - case 1: - nms_BlockTripWireSource_func_72143_a(var$11, $par1World, $var8, $par3, $var9, $var10, $var11, var$13, $var7, $par5); - if ($rt_suspending()) { - break main; - } - b: while (true) { - c: while (true) { - $var6 = $var6 + 1 | 0; - if ($var6 >= 2) - break b; - $var7 = 1; - while (true) { - if ($var7 >= 42) - continue c; - $var8 = $par2 + $rt_imul(nms_Direction_offsetX.data[$var6], $var7) | 0; - $var9 = $par4 + $rt_imul(nms_Direction_offsetZ.data[$var6], $var7) | 0; - $var10 = nms_World_getBlockId($par1World, $var8, $par3, $var9); - nms_Block_$callClinit(); - if ($var10 == nms_Block_tripWireSource.$blockID) - break c; - if ($var10 != nms_Block_tripWire.$blockID) - continue c; - $var7 = $var7 + 1 | 0; - } - } - if ((nms_World_getBlockMetadata($par1World, $var8, $par3, $var9) & 3) != nms_Direction_rotateOpposite.data[$var6]) - continue; - else { - var$11 = nms_Block_tripWireSource; - $var11 = nms_World_getBlockMetadata($par1World, $var8, $par3, $var9); - var$13 = 1; - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $var8, $var9, $var10, var$11, $var11, var$13, $ptr); -} -function nms_BlockTripWire_onEntityCollidedWithBlock($this, $par1World, $par2, $par3, $par4, $par5Entity) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5Entity = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote && (nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) & 1) != 1) { - $ptr = 1; - continue main; - } - return; - case 1: - nms_BlockTripWire_updateTripWireState($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Entity, $ptr); -} -function nms_BlockTripWire_updateTripWireState($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var9, $var10, $var8, var$11, var$12, var$13, var$14, var$15, var$16, var$17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var8 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var6 = ($var5 & 1) != 1 ? 0 : 1; - $var7 = 0; - $var9 = null; - $var10 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var10.$initialized) { - $var8 = new nms_AABBPool; - var$11 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$11); - var$11.$array1 = $rt_createArray(jl_Object, 10); - $var8.$listAABB = var$11; - $var8.$nextPoolIndex = 0; - $var8.$maxPoolIndex = 0; - $var8.$numCleans = 0; - $var8.$maxNumCleans = 300; - $var8.$numEntriesToRemove = 2000; - $var10.$value7 = $var8; - $var10.$initialized = 1; - } - $var10 = $var10.$value7; - var$12 = $par2; - var$13 = var$12 + $this.$minX0; - var$14 = $par3; - var$15 = var$14 + $this.$minY0; - var$16 = $par4; - $var8 = nms_World_getEntitiesWithinAABBExcludingEntity($par1World, $var9, nms_AABBPool_getAABB($var10, var$13, var$15, var$16 + $this.$minZ0, var$12 + $this.$maxX0, var$14 + $this.$maxY0, var$16 + $this.$maxZ0), null); - var$17 = $var8.$size0 ? 0 : 1; - a: { - if (!var$17) { - $var9 = new ju_AbstractList$1; - $var9.$this$0 = $var8; - $var9.$modCount = $var9.$this$0.$modCount0; - $var9.$size1 = $var9.$this$0.$size2(); - $var9.$removeIndex = (-1); - while ($var9.$index >= $var9.$size1 ? 0 : 1) { - if (!ju_AbstractList$1_next($var9).$doesEntityNotTriggerPressurePlate()) { - $var7 = 1; - break a; - } - } - } - } - if ($var7 && !$var6) - $var5 = $var5 | 1; - if (!$var7 && $var6) - $var5 = $var5 & (-2); - if ($var7 == $var6) - return; - $var6 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var5, $var6); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nms_BlockTripWire_func_72149_e($this, $par1World, $par2, $par3, $par4, $var5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, $var7, $var9, $var10, $var8, var$11, var$12, var$13, var$14, var$15, var$16, var$17, $ptr); -} -function nms_BlockTripWire_func_72148_a($par0IBlockAccess, $par1, $par2, $par3, $par4, $par5) { - var $var6, $var8, $var9, $var10; - $var6 = $par1 + nms_Direction_offsetX.data[$par5] | 0; - $var8 = $par3 + nms_Direction_offsetZ.data[$par5] | 0; - $var9 = $par0IBlockAccess.$getBlockId($var6, $par2, $var8); - $var10 = ($par4 & 2) != 2 ? 0 : 1; - nms_Block_$callClinit(); - if ($var9 == nms_Block_tripWireSource.$blockID) - return ($par0IBlockAccess.$getBlockMetadata($var6, $par2, $var8) & 3) != nms_Direction_rotateOpposite.data[$par5] ? 0 : 1; - if ($var9 != nms_Block_tripWire.$blockID) - return 0; - return $var10 != (($par0IBlockAccess.$getBlockMetadata($var6, $par2, $var8) & 2) != 2 ? 0 : 1) ? 0 : 1; -} -function nms_BlockCommandBlock() { - nms_BlockContainer.call(this); -} -function nms_BlockCommandBlock__init_(var_0) { - var var_1 = new nms_BlockCommandBlock(); - nms_BlockCommandBlock__init_0(var_1, var_0); - return var_1; -} -function nms_BlockCommandBlock__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_iron); - $this.$isBlockContainer = 1; -} -function nms_BlockCommandBlock_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityCommandBlock; - $par1World.$blockMetadata = (-1); - $par1World.$succesCount = 0; - $par1World.$command = $rt_s(44); - $par1World.$commandSenderName = $rt_s(1); - return $par1World; -} -function nms_BlockCommandBlock_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$isRemote) { - $var6 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4); - $var7 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var8 = !($var7 & 1) ? 0 : 1; - if ($var6 && !$var8) { - $par5 = $var7 | 1; - $var6 = 4; - $ptr = 1; - continue main; - } - if (!$var6 && $var8) { - $par5 = $var7 & (-2); - $var6 = 4; - $ptr = 2; - continue main; - } - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $var6); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par5, $var6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $var6, $var7, $var8, $ptr); -} -function nms_BlockCommandBlock_tickRate($this, $par1World) { - return 1; -} -function nms_BlockCommandBlock_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var10 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var10 === null) - return 1; - $ptr = 1; - case 1: - nms_EntityPlayerSP_displayGUIEditSign($par5EntityPlayer, $var10); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $ptr); -} -function nms_BlockCommandBlock_hasComparatorInputOverride($this) { - return 1; -} -function nms_BlockCommandBlock_getComparatorInputOverride($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6; - $var6 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - return $var6 !== null && $var6 instanceof nms_TileEntityCommandBlock ? $var6.$succesCount : 0; -} -function nms_BlockCommandBlock_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var $var7; - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - $var7.$commandSenderName = nms_ItemStack_getDisplayName($par6ItemStack); -} -function nms_BlockBeacon() { - nms_BlockContainer.call(this); - this.$theIcon1 = null; -} -function nms_BlockBeacon__init_(var_0) { - var var_1 = new nms_BlockBeacon(); - nms_BlockBeacon__init_0(var_1, var_0); - return var_1; -} -function nms_BlockBeacon__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_glass); - $this.$isBlockContainer = 1; - $this.$blockHardness = 3.0; - if ($this.$blockResistance < 15.0) - $this.$blockResistance = 15.0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabMisc; -} -function nms_BlockBeacon_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityBeacon; - nms_TileEntityBeacon_$callClinit(); - $par1World.$blockMetadata = (-1); - $par1World.$levels = (-1); - return $par1World; -} -function nms_BlockBeacon_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var10 === null) - return 1; - var$11 = $par5EntityPlayer.$mc3; - $par1World = new nms_GuiBeacon; - nms_GuiContainer__init_($par1World, nms_ContainerBeacon__init_($par5EntityPlayer.$inventory, $var10)); - $par1World.$beacon = $var10; - $par1World.$xSize = 230; - $par1World.$ySize0 = 219; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$11, $par1World); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, var$11, $ptr); -} -function nms_BlockBeacon_isOpaqueCube($this) { - return 0; -} -function nms_BlockBeacon_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockBeacon_getRenderType($this) { - return 34; -} -function nms_BlockBeacon_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($this.$unlocalizedName0); - $this.$theIcon1 = $par1IconRegister.$registerIcon($rt_s(1698)); -} -function nms_BlockBeacon_getBeaconIcon($this) { - return $this.$theIcon1; -} -function nms_BlockBeacon_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_94048_i = nms_ItemStack_getDisplayName($par6ItemStack); -} -function nms_BlockWall() { - nms_Block.call(this); -} -var nms_BlockWall_types = null; -function nms_BlockWall__init_(var_0, var_1) { - var var_2 = new nms_BlockWall(); - nms_BlockWall__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockWall__init_0($this, $par1, $par2Block) { - var var$3, var$4; - nms_Block__init_0($this, $par1, $par2Block.$blockMaterial); - var$3 = $par2Block.$blockHardness; - $this.$blockHardness = var$3; - var$4 = $this.$blockResistance; - var$3 = var$3 * 5.0; - if (var$4 < var$3) - $this.$blockResistance = var$3; - $this.$blockResistance = $par2Block.$blockResistance / 3.0 * 3.0; - $this.$stepSound = $par2Block.$stepSound; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockWall_getIcon($this, $par1, $par2) { - var var$3; - if ($par2 != 1) { - nms_Block_$callClinit(); - var$3 = nms_Block_cobblestone.$getIcon($par1, 0); - } else { - nms_Block_$callClinit(); - var$3 = nms_Block_cobblestoneMossy.$getIcon($par1, 0); - } - return var$3; -} -function nms_BlockWall_getRenderType($this) { - return 32; -} -function nms_BlockWall_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockWall_getBlocksMovement($this, $par1IBlockAccess, $par2, $par3, $par4) { - return 0; -} -function nms_BlockWall_isOpaqueCube($this) { - return 0; -} -function nms_BlockWall_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var12, $var13; - $var5 = nms_BlockWall_canConnectWallTo($this, $par1IBlockAccess, $par2, $par3, $par4 - 1 | 0); - $var6 = nms_BlockWall_canConnectWallTo($this, $par1IBlockAccess, $par2, $par3, $par4 + 1 | 0); - $var7 = nms_BlockWall_canConnectWallTo($this, $par1IBlockAccess, $par2 - 1 | 0, $par3, $par4); - $var8 = nms_BlockWall_canConnectWallTo($this, $par1IBlockAccess, $par2 + 1 | 0, $par3, $par4); - $var9 = 0.25; - $var10 = 0.75; - $var11 = 0.25; - $var12 = 0.75; - $var13 = 1.0; - if ($var5) - $var11 = 0.0; - if ($var6) - $var12 = 1.0; - if ($var7) - $var9 = 0.0; - if ($var8) - $var10 = 1.0; - if ($var5 && $var6 && !$var7 && !$var8) { - $var13 = 0.8125; - $var9 = 0.3125; - $var10 = 0.6875; - } else if (!$var5 && !$var6 && $var7 && $var8) { - $var13 = 0.8125; - $var11 = 0.3125; - $var12 = 0.6875; - } - $this.$minX0 = $var9; - $this.$minY0 = 0.0; - $this.$minZ0 = $var11; - $this.$maxX0 = $var10; - $this.$maxY0 = $var13; - $this.$maxZ0 = $var12; -} -function nms_BlockWall_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockWall_setBlockBoundsBasedOnState($this, $par1World, $par2, $par3, $par4); - $this.$maxY0 = 1.5; - return nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockWall_canConnectWallTo($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = $par1IBlockAccess.$getBlockId($par2, $par3, $par4); - if ($var5 != $this.$blockID) { - nms_Block_$callClinit(); - if ($var5 != nms_Block_fenceGate.$blockID) { - a: { - $var6 = nms_Block_blocksList.data[$var5]; - if ($var6 !== null) { - $par1IBlockAccess = $var6.$blockMaterial; - if ((!$par1IBlockAccess.$isTranslucent ? $par1IBlockAccess.$blocksMovement() : 0) && $var6.$renderAsNormalBlock()) { - $par1IBlockAccess = $var6.$blockMaterial; - nms_Material_$callClinit(); - if ($par1IBlockAccess === nms_Material_pumpkin) { - $par2 = 0; - break a; - } - $par2 = 1; - break a; - } - } - $par2 = 0; - } - return $par2; - } - } - return 1; -} -function nms_BlockWall_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_BlockWall_damageDropped($this, $par1) { - return $par1; -} -function nms_BlockWall_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $par5 ? 1 : nms_Block_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5); -} -function nms_BlockWall_registerIcons($this, $par1IconRegister) { - return; -} -function nms_BlockWall__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 2); - var$2 = var$1.data; - var$2[0] = $rt_s(2164); - var$2[1] = $rt_s(2132); - nms_BlockWall_types = var$1; -} -function nms_BlockFlowerPot() { - nms_Block.call(this); -} -function nms_BlockFlowerPot__init_(var_0) { - var var_1 = new nms_BlockFlowerPot(); - nms_BlockFlowerPot__init_0(var_1, var_0); - return var_1; -} -function nms_BlockFlowerPot__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - nms_BlockFlowerPot_setBlockBoundsForItemRender($this); -} -function nms_BlockFlowerPot_setBlockBoundsForItemRender($this) { - $this.$minX0 = 0.3125; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.3125; - $this.$maxX0 = 0.6875; - $this.$maxY0 = 0.375; - $this.$maxZ0 = 0.6875; -} -function nms_BlockFlowerPot_isOpaqueCube($this) { - return 0; -} -function nms_BlockFlowerPot_getRenderType($this) { - return 33; -} -function nms_BlockFlowerPot_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockFlowerPot_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $var11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var10 = nms_InventoryPlayer_getCurrentItem($par5EntityPlayer.$inventory); - if ($var10 === null) - return 0; - if (nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)) - return 0; - $var11 = nms_BlockFlowerPot_getMetaForPlant($var10); - if ($var11 <= 0) - return 0; - $par6 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var11, $par6); - if ($rt_suspending()) { - break main; - } - if (!$par5EntityPlayer.$capabilities.$isCreativeMode) { - $par2 = $var10.$stackSize - 1 | 0; - $var10.$stackSize = $par2; - if ($par2 <= 0) { - $par1World = $par5EntityPlayer.$inventory; - $par2 = $par5EntityPlayer.$inventory.$currentItem; - $par5EntityPlayer = null; - var$12 = $par1World.$mainInventory; - $par3 = var$12.data.length; - if ($par2 >= $par3) { - $par2 = $par2 - $par3 | 0; - var$12 = $par1World.$armorInventory; - } - var$12.data[$par2] = $par5EntityPlayer; - } - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $var11, var$12, $ptr); -} -function nms_BlockFlowerPot_idPicked($this, $par1World, $par2, $par3, $par4) { - var $var5; - $var5 = nms_BlockFlowerPot_getPlantForMeta(nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); - if ($var5 !== null) - $par2 = $var5.$itemID0; - else { - nms_Item_$callClinit(); - $par2 = nms_Item_flowerPot.$itemID; - } - return $par2; -} -function nms_BlockFlowerPot_getDamageValue($this, $par1World, $par2, $par3, $par4) { - var $var5; - $var5 = nms_BlockFlowerPot_getPlantForMeta(nms_World_getBlockMetadata($par1World, $par2, $par3, $par4)); - if ($var5 !== null) - $par2 = $var5.$itemDamage; - else { - nms_Item_$callClinit(); - $par2 = nms_Item_flowerPot.$itemID; - } - return $par2; -} -function nms_BlockFlowerPot_isFlowerPot($this) { - return 1; -} -function nms_BlockFlowerPot_canPlaceBlockAt($this, $par1World, $par2, $par3, $par4) { - var var$5; - var$5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - var$5 = var$5 && !nms_Block_blocksList.data[var$5].$blockMaterial.$replaceable ? 0 : 1; - a: { - if (var$5) { - $par3 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, $par3, $par4)], nms_World_getBlockMetadata($par1World, $par2, $par3, $par4))) { - $par2 = 1; - break a; - } - } - $par2 = 0; - } - return $par2; -} -function nms_BlockFlowerPot_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = $par3 - 1 | 0; - nms_Block_$callClinit(); - if (nms_World_isBlockTopFacingSurfaceSolid($par1World, nms_Block_blocksList.data[nms_World_getBlockId($par1World, $par2, var$6, $par4)], nms_World_getBlockMetadata($par1World, $par2, var$6, $par4))) - return; - $par5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, 1.0, 0); - if ($par5 > 0) { - var$7 = nms_BlockFlowerPot_getPlantForMeta($par5); - if (var$7 !== null) - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, var$7); - } - var$8 = 0; - $par5 = 0; - var$6 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1World, $par2, $par3, $par4, var$8, $par5, var$6); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, var$8, $ptr); -} -function nms_BlockFlowerPot_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - nms_Block_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7); - if ($par5 > 0) { - $var8 = nms_BlockFlowerPot_getPlantForMeta($par5); - if ($var8 !== null) - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, $var8); - } -} -function nms_BlockFlowerPot_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_flowerPot.$itemID; -} -function nms_BlockFlowerPot_getPlantForMeta($par0) { - var var$2, var$3, var$4; - switch ($par0) { - case 1: - var$2 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_plantRed.$blockID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - return var$2; - case 2: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_plantYellow.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - case 3: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_sapling.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - case 4: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_sapling.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 1; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - case 5: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_sapling.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 2; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - case 6: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_sapling.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 3; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - case 7: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_mushroomRed.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - case 8: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_mushroomBrown.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - case 9: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_cactus.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - case 10: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_deadBush.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - case 11: - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_tallGrass.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 2; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - return var$4; - default: - } - return null; -} -function nms_BlockFlowerPot_getMetaForPlant($par0ItemStack) { - var $var1; - nms_Item_$callClinit(); - $var1 = nms_Item_itemsList.data[$par0ItemStack.$itemID0].$itemID; - nms_Block_$callClinit(); - if ($var1 == nms_Block_plantRed.$blockID) - return 1; - if ($var1 == nms_Block_plantYellow.$blockID) - return 2; - if ($var1 == nms_Block_cactus.$blockID) - return 9; - if ($var1 == nms_Block_mushroomBrown.$blockID) - return 8; - if ($var1 == nms_Block_mushroomRed.$blockID) - return 7; - if ($var1 == nms_Block_deadBush.$blockID) - return 10; - a: { - if ($var1 == nms_Block_sapling.$blockID) { - switch ($par0ItemStack.$itemDamage) { - case 0: - break; - case 1: - return 4; - case 2: - return 5; - case 3: - return 6; - default: - break a; - } - return 3; - } - } - b: { - if ($var1 == nms_Block_tallGrass.$blockID) - switch ($par0ItemStack.$itemDamage) { - case 2: - return 11; - default: - break b; - } - } - return 0; -} -function nms_BlockCarrot() { - nms_BlockCrops.call(this); - this.$iconArray12 = null; -} -function nms_BlockCarrot__init_(var_0) { - var var_1 = new nms_BlockCarrot(); - nms_BlockCarrot__init_0(var_1, var_0); - return var_1; -} -function nms_BlockCarrot__init_0($this, $par1) { - nms_BlockCrops__init_0($this, $par1); -} -function nms_BlockCarrot_getIcon($this, $par1, $par2) { - if ($par2 >= 7) - return $this.$iconArray12.data[3]; - if ($par2 == 6) - $par2 = 5; - return $this.$iconArray12.data[$par2 >> 1]; -} -function nms_BlockCarrot_getSeedItem($this) { - nms_Item_$callClinit(); - return nms_Item_carrot.$itemID; -} -function nms_BlockCarrot_getCropItem($this) { - nms_Item_$callClinit(); - return nms_Item_carrot.$itemID; -} -function nms_BlockCarrot_registerIcons($this, $par1IconRegister) { - var $var2, var$3, var$4; - $this.$iconArray12 = $rt_createArray(nms_Icon, 4); - $var2 = 0; - while ($var2 < $this.$iconArray12.data.length) { - var$3 = $this.$iconArray12.data; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2165)); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var2, 10); - var$3[$var2] = $par1IconRegister.$registerIcon(jl_String__init_0(var$4.$buffer, 0, var$4.$length)); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockPotato() { - nms_BlockCrops.call(this); - this.$iconArray13 = null; -} -function nms_BlockPotato__init_(var_0) { - var var_1 = new nms_BlockPotato(); - nms_BlockPotato__init_0(var_1, var_0); - return var_1; -} -function nms_BlockPotato__init_0($this, $par1) { - nms_BlockCrops__init_0($this, $par1); -} -function nms_BlockPotato_getIcon($this, $par1, $par2) { - if ($par2 >= 7) - return $this.$iconArray13.data[3]; - if ($par2 == 6) - $par2 = 5; - return $this.$iconArray13.data[$par2 >> 1]; -} -function nms_BlockPotato_getSeedItem($this) { - nms_Item_$callClinit(); - return nms_Item_potato.$itemID; -} -function nms_BlockPotato_getCropItem($this) { - nms_Item_$callClinit(); - return nms_Item_potato.$itemID; -} -function nms_BlockPotato_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, var$9; - nms_BlockCrops_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7); - if (!$par1World.$isRemote && $par5 >= 7 && !(Math.random() * 50.0 | 0)) { - var$8 = new nms_ItemStack; - nms_Item_$callClinit(); - var$9 = nms_Item_poisonousPotato.$itemID; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = var$9; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, var$8); - } -} -function nms_BlockPotato_registerIcons($this, $par1IconRegister) { - var $var2, var$3, var$4; - $this.$iconArray13 = $rt_createArray(nms_Icon, 4); - $var2 = 0; - while ($var2 < $this.$iconArray13.data.length) { - var$3 = $this.$iconArray13.data; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2166)); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var2, 10); - var$3[$var2] = $par1IconRegister.$registerIcon(jl_String__init_0(var$4.$buffer, 0, var$4.$length)); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockButtonWood() { - nms_BlockButton.call(this); -} -function nms_BlockButtonWood__init_(var_0) { - var var_1 = new nms_BlockButtonWood(); - nms_BlockButtonWood__init_0(var_1, var_0); - return var_1; -} -function nms_BlockButtonWood__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$needsRandomTick = 1; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; - $this.$sensible = 1; -} -function nms_BlockButtonWood_getIcon($this, $par1, $par2) { - nms_Block_$callClinit(); - return nms_Block_planks.$getIcon(1, 0); -} -function nms_BlockSkull() { - nms_BlockContainer.call(this); -} -function nms_BlockSkull__init_(var_0) { - var var_1 = new nms_BlockSkull(); - nms_BlockSkull__init_0(var_1, var_0); - return var_1; -} -function nms_BlockSkull__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$isBlockContainer = 1; - $this.$minX0 = 0.25; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.25; - $this.$maxX0 = 0.75; - $this.$maxY0 = 0.5; - $this.$maxZ0 = 0.75; -} -function nms_BlockSkull_getRenderType($this) { - return (-1); -} -function nms_BlockSkull_isOpaqueCube($this) { - return 0; -} -function nms_BlockSkull_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockSkull_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - a: { - switch ($par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 7) { - case 1: - break; - case 2: - $this.$minX0 = 0.25; - $this.$minY0 = 0.25; - $this.$minZ0 = 0.5; - $this.$maxX0 = 0.75; - $this.$maxY0 = 0.75; - $this.$maxZ0 = 1.0; - break a; - case 3: - $this.$minX0 = 0.25; - $this.$minY0 = 0.25; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.75; - $this.$maxY0 = 0.75; - $this.$maxZ0 = 0.5; - break a; - case 4: - $this.$minX0 = 0.5; - $this.$minY0 = 0.25; - $this.$minZ0 = 0.25; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.75; - $this.$maxZ0 = 0.75; - break a; - case 5: - $this.$minX0 = 0.0; - $this.$minY0 = 0.25; - $this.$minZ0 = 0.25; - $this.$maxX0 = 0.5; - $this.$maxY0 = 0.75; - $this.$maxZ0 = 0.75; - break a; - default: - } - $this.$minX0 = 0.25; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.25; - $this.$maxX0 = 0.75; - $this.$maxY0 = 0.5; - $this.$maxZ0 = 0.75; - } -} -function nms_BlockSkull_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4) { - nms_BlockSkull_setBlockBoundsBasedOnState($this, $par1World, $par2, $par3, $par4); - return nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); -} -function nms_BlockSkull_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, $var7, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 2.5; - $var7 = var$7 | 0; - if (var$7 < $var7) - $var7 = $var7 - 1 | 0; - $var7 = $var7 & 3; - var$9 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, $var7, var$9, $ptr); -} -function nms_BlockSkull_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntitySkull; - $par1World.$blockMetadata = (-1); - $par1World.$extraType = $rt_s(44); - return $par1World; -} -function nms_BlockSkull_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_skull.$itemID; -} -function nms_BlockSkull_getDamageValue($this, $par1World, $par2, $par3, $par4) { - var $var5; - $var5 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - return $var5 !== null && $var5 instanceof nms_TileEntitySkull ? $var5.$skullType : nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); -} -function nms_BlockSkull_damageDropped($this, $par1) { - return $par1; -} -function nms_BlockSkull_dropBlockAsItemWithChance($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7) { - return; -} -function nms_BlockSkull_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, var$8, var$9, $var8, var$11, var$12; - if (!$par1World.$isRemote) { - if (!($par6 & 8)) { - $var7 = new nms_ItemStack; - nms_Item_$callClinit(); - $par5 = nms_Item_skull.$itemID; - var$8 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - var$9 = var$8 !== null && var$8 instanceof nms_TileEntitySkull ? var$8.$skullType : nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var7.$stackSize = 0; - $var7.$itemFrame = null; - $var7.$itemID0 = $par5; - $var7.$stackSize = 1; - $var7.$itemDamage = var$9; - if ($var7.$itemDamage < 0) - $var7.$itemDamage = 0; - $var8 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var8.$skullType == 3 && $var8.$extraType !== null && $var8.$extraType.$characters.data.length > 0) { - var$8 = new nms_NBTTagCompound; - var$8.$name0 = $rt_s(44); - var$8.$tagMap = ju_HashMap__init_1(16, 0.75); - $var7.$stackTagCompound = var$8; - var$11 = $var7.$stackTagCompound; - var$12 = $var8.$extraType; - $var8 = var$11.$tagMap; - var$11 = new nms_NBTTagString; - var$11.$name0 = $rt_s(1264); - var$11.$data4 = var$12; - if (var$12 === null) { - var$8 = new jl_IllegalArgumentException; - var$8.$suppressionEnabled = 1; - var$8.$writableStackTrace = 1; - var$8.$message = $rt_s(264); - $rt_throw(var$8); - } - ju_HashMap_putImpl($var8, $rt_s(1264), var$11); - } - nms_Block_dropBlockAsItem_do($this, $par1World, $par2, $par3, $par4, $var7); - } - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - } -} -function nms_BlockSkull_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_skull.$itemID; -} -function nms_BlockSkull_makeWither($this, $par1World, $par2, $par3, $par4, $par5TileEntitySkull) { - var $var6, $var7, var$8, var$9, var$10, var$11, $var9, $var9_0, $var8, var$15, var$16, var$17, var$18, var$19, var$20, var$21, var$22, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();$var8 = $thread.pop();$var9_0 = $thread.pop();$var9 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5TileEntitySkull = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if (nms_TileEntitySkull_getSkullType($par5TileEntitySkull) == 1 && $par3 >= 2 && $par1World.$difficultySetting > 0 && !$par1World.$isRemote) { - nms_Block_$callClinit(); - $var6 = nms_Block_slowSand.$blockID; - $var7 = (-2); - var$8 = $par3 - 1 | 0; - var$9 = $par3 - 2 | 0; - b: { - while (true) { - if ($var7 > 0) - break b; - var$10 = $par4 + $var7 | 0; - if (nms_World_getBlockId($par1World, $par2, var$8, var$10) == $var6) { - var$11 = var$10 + 1 | 0; - if (nms_World_getBlockId($par1World, $par2, var$8, var$11) == $var6 && nms_World_getBlockId($par1World, $par2, var$9, var$11) == $var6) { - $var9 = var$10 + 2 | 0; - if (nms_World_getBlockId($par1World, $par2, var$8, $var9) == $var6 && nms_BlockSkull_func_82528_d($this, $par1World, $par2, $par3, var$10, 1) && nms_BlockSkull_func_82528_d($this, $par1World, $par2, $par3, var$11, 1) && nms_BlockSkull_func_82528_d($this, $par1World, $par2, $par3, $var9, 1)) - break; - } - } - $var7 = $var7 + 1 | 0; - } - $par4 = 8; - $var7 = 2; - $ptr = 1; - continue main; - } - $var7 = (-2); - while (true) { - if ($var7 > 0) - break a; - var$10 = $par2 + $var7 | 0; - if (nms_World_getBlockId($par1World, var$10, var$8, $par4) == $var6) { - var$11 = var$10 + 1 | 0; - if (nms_World_getBlockId($par1World, var$11, var$8, $par4) == $var6 && nms_World_getBlockId($par1World, var$11, var$9, $par4) == $var6) { - $var9_0 = var$10 + 2 | 0; - if (nms_World_getBlockId($par1World, $var9_0, var$8, $par4) == $var6 && nms_BlockSkull_func_82528_d($this, $par1World, var$10, $par3, $par4, 1) && nms_BlockSkull_func_82528_d($this, $par1World, var$11, $par3, $par4, 1) && nms_BlockSkull_func_82528_d($this, $par1World, $var9_0, $par3, $par4, 1)) { - $par2 = 8; - $var7 = 2; - $ptr = 11; - continue main; - } - } - } - $var7 = $var7 + 1 | 0; - } - } - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, var$10, $par4, $var7); - if ($rt_suspending()) { - break main; - } - $par4 = 8; - $var7 = 2; - $ptr = 2; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, var$11, $par4, $var7); - if ($rt_suspending()) { - break main; - } - $par4 = 8; - $var7 = 2; - $ptr = 3; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $var9, $par4, $var7); - if ($rt_suspending()) { - break main; - } - $par4 = 0; - $var7 = 0; - $var9_0 = 2; - $ptr = 4; - case 4: - nms_World_setBlock($par1World, $par2, $par3, var$10, $par4, $var7, $var9_0); - if ($rt_suspending()) { - break main; - } - $par4 = 0; - $var7 = 0; - $var9_0 = 2; - $ptr = 5; - case 5: - nms_World_setBlock($par1World, $par2, $par3, var$11, $par4, $var7, $var9_0); - if ($rt_suspending()) { - break main; - } - $par4 = 0; - $var7 = 0; - $var9_0 = 2; - $ptr = 6; - case 6: - nms_World_setBlock($par1World, $par2, $par3, $var9, $par4, $var7, $var9_0); - if ($rt_suspending()) { - break main; - } - $par4 = 0; - $var7 = 0; - $var9_0 = 2; - $ptr = 7; - case 7: - nms_World_setBlock($par1World, $par2, var$8, var$10, $par4, $var7, $var9_0); - if ($rt_suspending()) { - break main; - } - $par4 = 0; - $var7 = 0; - $var9_0 = 2; - $ptr = 8; - case 8: - nms_World_setBlock($par1World, $par2, var$8, var$11, $par4, $var7, $var9_0); - if ($rt_suspending()) { - break main; - } - $par4 = 0; - $var7 = 0; - $var9_0 = 2; - $ptr = 9; - case 9: - nms_World_setBlock($par1World, $par2, var$8, $var9, $par4, $var7, $var9_0); - if ($rt_suspending()) { - break main; - } - $par4 = 0; - $var7 = 0; - $var9_0 = 2; - $ptr = 10; - case 10: - nms_World_setBlock($par1World, $par2, var$9, var$11, $par4, $var7, $var9_0); - if ($rt_suspending()) { - break main; - } - if (!$par1World.$isRemote) { - $var8 = nms_EntityWither__init_0(); - nms_Entity_setWorld($var8, $par1World); - nms_Entity_setLocationAndAngles($var8, $par2 + 0.5, $par3 - 1.45, var$10 + 1.5, 90.0, 0.0); - $var8.$renderYawOffset = 90.0; - nms_EntityWither_func_82206_m($var8); - nms_WorldClient_spawnEntityInWorld($par1World, $var8); - } - $var9_0 = 0; - var$15 = $par2; - var$16 = var$9; - if ($var9_0 >= 120) { - $par4 = 0; - $ptr = 21; - continue main; - } - $var8 = $rt_s(863); - var$17 = var$15 + ju_Random_nextDouble($par1World.$rand); - var$18 = var$16 + ju_Random_nextDouble($par1World.$rand) * 3.9; - var$19 = var$11 + ju_Random_nextDouble($par1World.$rand); - var$20 = 0.0; - var$21 = 0.0; - var$22 = 0.0; - $ptr = 28; - continue main; - case 11: - nms_World_setBlockMetadataWithNotify($par1World, var$10, $par3, $par4, $par2, $var7); - if ($rt_suspending()) { - break main; - } - $par2 = 8; - $var7 = 2; - $ptr = 12; - case 12: - nms_World_setBlockMetadataWithNotify($par1World, var$11, $par3, $par4, $par2, $var7); - if ($rt_suspending()) { - break main; - } - $par2 = 8; - $var7 = 2; - $ptr = 13; - case 13: - nms_World_setBlockMetadataWithNotify($par1World, $var9_0, $par3, $par4, $par2, $var7); - if ($rt_suspending()) { - break main; - } - $var7 = 0; - $var9 = 0; - $par2 = 2; - $ptr = 14; - case 14: - nms_World_setBlock($par1World, var$10, $par3, $par4, $var7, $var9, $par2); - if ($rt_suspending()) { - break main; - } - $var9 = 0; - $par2 = 0; - $var7 = 2; - $ptr = 15; - case 15: - nms_World_setBlock($par1World, var$11, $par3, $par4, $var9, $par2, $var7); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $var7 = 0; - $var9 = 2; - $ptr = 16; - case 16: - nms_World_setBlock($par1World, $var9_0, $par3, $par4, $par2, $var7, $var9); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $var7 = 0; - $var9 = 2; - $ptr = 17; - case 17: - nms_World_setBlock($par1World, var$10, var$8, $par4, $par2, $var7, $var9); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $var7 = 0; - $var9 = 2; - $ptr = 18; - case 18: - nms_World_setBlock($par1World, var$11, var$8, $par4, $par2, $var7, $var9); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $var7 = 0; - $var9 = 2; - $ptr = 19; - case 19: - nms_World_setBlock($par1World, $var9_0, var$8, $par4, $par2, $var7, $var9); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $var7 = 0; - $var9 = 2; - $ptr = 20; - case 20: - nms_World_setBlock($par1World, var$11, var$9, $par4, $par2, $var7, $var9); - if ($rt_suspending()) { - break main; - } - if (!$par1World.$isRemote) { - $var8 = nms_EntityWither__init_0(); - nms_Entity_setWorld($var8, $par1World); - nms_Entity_setLocationAndAngles($var8, var$10 + 1.5, $par3 - 1.45, $par4 + 0.5, 0.0, 0.0); - nms_EntityWither_func_82206_m($var8); - nms_WorldClient_spawnEntityInWorld($par1World, $var8); - } - $var9 = 0; - if ($var9 >= 120) { - $par2 = 0; - $ptr = 29; - continue main; - } - $par5TileEntitySkull = $rt_s(863); - var$15 = var$11 + ju_Random_nextDouble($par1World.$rand); - var$17 = var$9 + ju_Random_nextDouble($par1World.$rand) * 3.9; - var$16 = $par4 + ju_Random_nextDouble($par1World.$rand); - var$18 = 0.0; - var$19 = 0.0; - var$20 = 0.0; - $ptr = 36; - continue main; - case 21: - nms_World_notifyBlockChange($par1World, $par2, $par3, var$10, $par4); - if ($rt_suspending()) { - break main; - } - $par4 = 0; - $ptr = 22; - case 22: - nms_World_notifyBlockChange($par1World, $par2, $par3, var$11, $par4); - if ($rt_suspending()) { - break main; - } - $par4 = 0; - $ptr = 23; - case 23: - nms_World_notifyBlockChange($par1World, $par2, $par3, $var9, $par4); - if ($rt_suspending()) { - break main; - } - $par3 = 0; - $ptr = 24; - case 24: - nms_World_notifyBlockChange($par1World, $par2, var$8, var$10, $par3); - if ($rt_suspending()) { - break main; - } - $par3 = 0; - $ptr = 25; - case 25: - nms_World_notifyBlockChange($par1World, $par2, var$8, var$11, $par3); - if ($rt_suspending()) { - break main; - } - $par3 = 0; - $ptr = 26; - case 26: - nms_World_notifyBlockChange($par1World, $par2, var$8, $var9, $par3); - if ($rt_suspending()) { - break main; - } - $par3 = 0; - $ptr = 27; - case 27: - nms_World_notifyBlockChange($par1World, $par2, var$9, var$11, $par3); - if ($rt_suspending()) { - break main; - } - return; - case 28: - nms_World_spawnParticle($par1World, $var8, var$17, var$18, var$19, var$20, var$21, var$22); - if ($rt_suspending()) { - break main; - } - $var9_0 = $var9_0 + 1 | 0; - if ($var9_0 >= 120) { - $par4 = 0; - $ptr = 21; - continue main; - } - $var8 = $rt_s(863); - var$17 = var$15 + ju_Random_nextDouble($par1World.$rand); - var$18 = var$16 + ju_Random_nextDouble($par1World.$rand) * 3.9; - var$19 = var$11 + ju_Random_nextDouble($par1World.$rand); - var$20 = 0.0; - var$21 = 0.0; - var$22 = 0.0; - continue main; - case 29: - nms_World_notifyBlockChange($par1World, var$10, $par3, $par4, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $ptr = 30; - case 30: - nms_World_notifyBlockChange($par1World, var$11, $par3, $par4, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $ptr = 31; - case 31: - nms_World_notifyBlockChange($par1World, $var9_0, $par3, $par4, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $ptr = 32; - case 32: - nms_World_notifyBlockChange($par1World, var$10, var$8, $par4, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $ptr = 33; - case 33: - nms_World_notifyBlockChange($par1World, var$11, var$8, $par4, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $ptr = 34; - case 34: - nms_World_notifyBlockChange($par1World, $var9_0, var$8, $par4, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = 0; - $ptr = 35; - case 35: - nms_World_notifyBlockChange($par1World, var$11, var$9, $par4, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 36: - nms_World_spawnParticle($par1World, $par5TileEntitySkull, var$15, var$17, var$16, var$18, var$19, var$20); - if ($rt_suspending()) { - break main; - } - $var9 = $var9 + 1 | 0; - if ($var9 >= 120) { - $par2 = 0; - $ptr = 29; - continue main; - } - $par5TileEntitySkull = $rt_s(863); - var$15 = var$11 + ju_Random_nextDouble($par1World.$rand); - var$17 = var$9 + ju_Random_nextDouble($par1World.$rand) * 3.9; - var$16 = $par4 + ju_Random_nextDouble($par1World.$rand); - var$18 = 0.0; - var$19 = 0.0; - var$20 = 0.0; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5TileEntitySkull, $var6, $var7, var$8, var$9, var$10, var$11, $var9, $var9_0, $var8, var$15, var$16, var$17, var$18, var$19, var$20, var$21, var$22, $ptr); -} -function nms_BlockSkull_func_82528_d($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6; - if (nms_World_getBlockId($par1World, $par2, $par3, $par4) != $this.$blockID) - return 0; - $var6 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - return $var6 !== null && $var6 instanceof nms_TileEntitySkull ? ($var6.$skullType != $par5 ? 0 : 1) : 0; -} -function nms_BlockSkull_registerIcons($this, $par1IconRegister) { - return; -} -function nms_BlockSkull_getIcon($this, $par1, $par2) { - nms_Block_$callClinit(); - return nms_Block_slowSand.$getIcon($par1, 0); -} -function nms_BlockSkull_getItemIconName($this) { - return nms_ItemSkull_field_94587_a.data[0]; -} -function nms_BlockAnvil() { - var a = this; nms_BlockSand.call(a); - a.$field_82521_b = 0; - a.$iconArray14 = null; -} -var nms_BlockAnvil_statuses = null; -var nms_BlockAnvil_anvilIconNames = null; -function nms_BlockAnvil__init_(var_0) { - var var_1 = new nms_BlockAnvil(); - nms_BlockAnvil__init_0(var_1, var_0); - return var_1; -} -function nms_BlockAnvil__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_anvil); - $this.$field_82521_b = 0; - nms_Block_lightOpacity.data[$this.$blockID] = 0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabDecorations; -} -function nms_BlockAnvil_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockAnvil_isOpaqueCube($this) { - return 0; -} -function nms_BlockAnvil_getIcon($this, $par1, $par2) { - var $var3; - if ($this.$field_82521_b == 3 && $par1 == 1) { - $var3 = ($par2 >> 2) % $this.$iconArray14.data.length | 0; - return $this.$iconArray14.data[$var3]; - } - return $this.$blockIcon; -} -function nms_BlockAnvil_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2167)); - $this.$iconArray14 = $rt_createArray(nms_Icon, nms_BlockAnvil_anvilIconNames.data.length); - $var2 = 0; - while ($var2 < $this.$iconArray14.data.length) { - $this.$iconArray14.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockAnvil_anvilIconNames.data[$var2]); - $var2 = $var2 + 1 | 0; - } -} -function nms_BlockAnvil_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - var var$7, var$8, $var7, $var8, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$par6ItemStack = $thread.pop();$par5EntityLiving = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$7 = $par5EntityLiving.$rotationYaw * 4.0 / 360.0 + 0.5; - var$8 = var$7 | 0; - if (var$7 < var$8) - var$8 = var$8 - 1 | 0; - $var7 = var$8 & 3; - $var8 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4) >> 2; - $var7 = ($var7 + 1 | 0) % 4 | 0; - if (!$var7) { - var$8 = 2 | $var8 << 2; - var$11 = 2; - $ptr = 1; - continue main; - } - if ($var7 == 1) { - var$8 = 3 | $var8 << 2; - var$11 = 2; - $ptr = 2; - continue main; - } - if ($var7 == 2) { - var$8 = 0 | $var8 << 2; - var$11 = 2; - $ptr = 3; - continue main; - } - if ($var7 != 3) - return; - $var7 = 1 | $var8 << 2; - var$8 = 2; - $ptr = 4; - continue main; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$8, var$11); - if ($rt_suspending()) { - break main; - } - if ($var7 == 1) { - var$8 = 3 | $var8 << 2; - var$11 = 2; - $ptr = 2; - continue main; - } - if ($var7 == 2) { - var$8 = 0 | $var8 << 2; - var$11 = 2; - $ptr = 3; - continue main; - } - if ($var7 != 3) - return; - $var7 = 1 | $var8 << 2; - var$8 = 2; - $ptr = 4; - continue main; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$8, var$11); - if ($rt_suspending()) { - break main; - } - if ($var7 == 2) { - var$8 = 0 | $var8 << 2; - var$11 = 2; - $ptr = 3; - continue main; - } - if ($var7 != 3) - return; - $var7 = 1 | $var8 << 2; - var$8 = 2; - $ptr = 4; - continue main; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, var$8, var$11); - if ($rt_suspending()) { - break main; - } - if ($var7 != 3) - return; - $var7 = 1 | $var8 << 2; - var$8 = 2; - $ptr = 4; - case 4: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var7, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack, var$7, var$8, $var7, $var8, var$11, $ptr); -} -function nms_BlockAnvil_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var 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();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - var$10 = $par5EntityPlayer.$mc3; - $par1World = new nms_GuiRepair; - var$11 = $par5EntityPlayer.$inventory; - nms_GuiContainer__init_($par1World, nms_ContainerRepair__init_(var$11, $par5EntityPlayer.$worldObj, $par2, $par3, $par4, nmc_Minecraft_theMinecraft.$thePlayer)); - $par1World.$field_82325_q = var$11; - $par1World.$repairContainer = $par1World.$inventorySlots0; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$10, $par1World); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, var$10, var$11, $ptr); -} -function nms_BlockAnvil_getRenderType($this) { - return 35; -} -function nms_BlockAnvil_damageDropped($this, $par1) { - return $par1 >> 2; -} -function nms_BlockAnvil_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - var $var5; - $var5 = $par1IBlockAccess.$getBlockMetadata($par2, $par3, $par4) & 3; - if ($var5 != 3 && $var5 != 1) { - $this.$minX0 = 0.125; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.875; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - } else { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.125; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.875; - } -} -function nms_BlockAnvil_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 2; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_BlockAnvil_onFinishFalling($this, $par1World, $par2, $par3, $par4, $par5) { - var var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$6 = 1022; - var$7 = 0; - var$8 = null; - var$9 = 0; - if (var$9 >= $par1World.$worldAccesses.$size0) - return; - var$10 = $par1World.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - $ptr = 1; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1World); - $rt_throw($par1World); - case 1: - nms_RenderGlobal_playAuxSFX(var$10, var$8, var$6, $par2, $par3, $par4, var$7); - if ($rt_suspending()) { - break main; - } - var$9 = var$9 + 1 | 0; - if (var$9 >= $par1World.$worldAccesses.$size0) - return; - var$10 = $par1World.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - continue main; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1World); - $rt_throw($par1World); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, var$6, var$7, var$8, var$9, var$10, $ptr); -} -function nms_BlockAnvil_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 1; -} -function nms_BlockAnvil__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(2168); - var$2[1] = $rt_s(2169); - var$2[2] = $rt_s(2170); - nms_BlockAnvil_statuses = var$1; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(2171); - var$2[1] = $rt_s(2172); - var$2[2] = $rt_s(2173); - nms_BlockAnvil_anvilIconNames = var$1; -} -function nms_BlockPressurePlateWeighted() { - nms_BlockBasePressurePlate.call(this); - this.$maxItemsWeighted = 0; -} -function nms_BlockPressurePlateWeighted__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_BlockPressurePlateWeighted(); - nms_BlockPressurePlateWeighted__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_BlockPressurePlateWeighted__init_0($this, $par1, $par2Str, $par3Material, $par4) { - nms_Block__init_0($this, $par1, $par3Material); - $this.$pressurePlateIconName = $par2Str; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; - $this.$needsRandomTick = 1; - nms_BlockBasePressurePlate_func_94353_c_($this, 15); - $this.$maxItemsWeighted = $par4; -} -function nms_BlockPressurePlateWeighted_getPlateState($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var8; - $var5 = 0; - $par1World = nms_World_selectEntitiesWithinAABB($par1World, $rt_cls(nms_EntityItem), nms_BlockBasePressurePlate_getSensitiveAABB($this, $par2, $par3, $par4), null); - $var6 = new ju_AbstractList$1; - $var6.$this$0 = $par1World; - $var6.$modCount = $var6.$this$0.$modCount0; - $var6.$size1 = $var6.$this$0.$size2(); - $var6.$removeIndex = (-1); - a: { - while (true) { - if (!($var6.$index >= $var6.$size1 ? 0 : 1)) - break a; - $var5 = $var5 + nms_EntityItem_getEntityItem(ju_AbstractList$1_next($var6)).$stackSize | 0; - if ($var5 >= $this.$maxItemsWeighted) - break; - } - } - if ($var5 <= 0) - return 0; - $par2 = $this.$maxItemsWeighted; - if ($par2 < $var5) - $var5 = $par2; - $var8 = $var5 / $this.$maxItemsWeighted * 15.0; - $par2 = $var8 | 0; - if ($var8 > $par2) - $par2 = $par2 + 1 | 0; - return $par2; -} -function nms_BlockPressurePlateWeighted_getPowerSupply($this, $par1) { - return $par1; -} -function nms_BlockPressurePlateWeighted_getMetaFromWeight($this, $par1) { - return $par1; -} -function nms_BlockPressurePlateWeighted_tickRate($this, $par1World) { - return 10; -} -function nms_BlockComparator() { - nms_BlockRedstoneLogic.call(this); -} -function nms_BlockComparator__init_(var_0, var_1) { - var var_2 = new nms_BlockComparator(); - nms_BlockComparator__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_BlockComparator__init_0($this, $par1, $par2) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_circuits); - $this.$isRepeaterPowered = $par2; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.125; - $this.$maxZ0 = 1.0; - $this.$isBlockContainer = 1; -} -function nms_BlockComparator_idDropped($this, $par1, $par2Random, $par3) { - nms_Item_$callClinit(); - return nms_Item_comparator.$itemID; -} -function nms_BlockComparator_idPicked($this, $par1World, $par2, $par3, $par4) { - nms_Item_$callClinit(); - return nms_Item_comparator.$itemID; -} -function nms_BlockComparator_func_94481_j_($this, $par1) { - return 2; -} -function nms_BlockComparator_func_94485_e($this) { - nms_Block_$callClinit(); - return nms_Block_redstoneComparatorActive; -} -function nms_BlockComparator_func_94484_i($this) { - nms_Block_$callClinit(); - return nms_Block_redstoneComparatorIdle; -} -function nms_BlockComparator_getRenderType($this) { - return 37; -} -function nms_BlockComparator_getIcon($this, $par1, $par2) { - var $var3, var$4; - $var3 = !$this.$isRepeaterPowered && !($par2 & 8) ? 0 : 1; - if (!$par1) { - if (!$var3) { - nms_Block_$callClinit(); - var$4 = nms_Block_torchRedstoneIdle.$getIcon($par1, 0); - } else { - nms_Block_$callClinit(); - var$4 = nms_Block_torchRedstoneActive.$getIcon($par1, 0); - } - } else if ($par1 != 1) { - nms_Block_$callClinit(); - var$4 = nms_Block_stoneDoubleSlab.$getIcon(1, 0); - } else if (!$var3) - var$4 = $this.$blockIcon; - else { - nms_Block_$callClinit(); - var$4 = nms_Block_redstoneComparatorActive.$blockIcon; - } - return var$4; -} -function nms_BlockComparator_func_96470_c($this, $par1) { - return !$this.$isRepeaterPowered && !($par1 & 8) ? 0 : 1; -} -function nms_BlockComparator_func_94480_d($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return $par1IBlockAccess.$getBlockTileEntity($par2, $par3, $par4).$field_96101_a; -} -function nms_BlockComparator_func_94490_c($this, $par1) { - return ($par1 & 4) != 4 ? 0 : 1; -} -function nms_BlockComparator_func_94478_d($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $var6 = nms_BlockComparator_getInputStrength($this, $par1World, $par2, $par3, $par4, $par5); - if ($var6 >= 15) - return 1; - if (!$var6) - return 0; - $var7 = nms_BlockRedstoneLogic_func_94482_f($this, $par1World, $par2, $par3, $par4, $par5); - return !$var7 ? 1 : $var6 < $var7 ? 0 : 1; -} -function nms_BlockComparator_getInputStrength($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $var9, $var10; - $var6 = nms_BlockRedstoneLogic_getInputStrength($this, $par1World, $par2, $par3, $par4, $par5); - $var7 = $par5 & 3; - $var8 = $par2 + nms_Direction_offsetX.data[$var7] | 0; - $var9 = $par4 + nms_Direction_offsetZ.data[$var7] | 0; - $var10 = nms_World_getBlockId($par1World, $var8, $par3, $var9); - if ($var10 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var10].$hasComparatorInputOverride()) - $var6 = nms_Block_blocksList.data[$var10].$getComparatorInputOverride($par1World, $var8, $par3, $var9, nms_Direction_rotateOpposite.data[$var7]); - else if ($var6 < 15 && nms_Block_isNormalCube($var10)) { - $par2 = $var8 + nms_Direction_offsetX.data[$var7] | 0; - $par4 = $var9 + nms_Direction_offsetZ.data[$var7] | 0; - $par5 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - if ($par5 > 0 && nms_Block_blocksList.data[$par5].$hasComparatorInputOverride()) - $var6 = nms_Block_blocksList.data[$par5].$getComparatorInputOverride($par1World, $par2, $par3, $par4, nms_Direction_rotateOpposite.data[$var7]); - } - } - return $var6; -} -function nms_BlockComparator_getTileEntityComparator($this, $par1IBlockAccess, $par2, $par3, $par4) { - return $par1IBlockAccess.$getBlockTileEntity($par2, $par3, $par4); -} -function nms_BlockComparator_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, $var11, $var12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var10 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var11 = $this.$isRepeaterPowered | (!($var10 & 8) ? 0 : 1); - $var12 = (($var10 & 4) != 4 ? 0 : 1) ? 0 : 1; - $var11 = (!$var12 ? 0 : 4) | (!$var11 ? 0 : 8); - nms_World_playSoundEffect($par1World, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $rt_s(432), 0.30000001192092896, !$var12 ? 0.5 : 0.550000011920929); - $par6 = $var11 | $var10 & 3; - $var10 = 2; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $par6, $var10); - if ($rt_suspending()) { - break main; - } - $par5EntityPlayer = $par1World.$rand; - $ptr = 2; - case 2: - nms_BlockComparator_func_96476_c($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, $var11, $var12, $ptr); -} -function nms_BlockComparator_func_94479_f($this, $par1World, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - if (!(($var6 & 4) != 4 ? 0 : 1)) - $var7 = nms_BlockComparator_getInputStrength($this, $par1World, $par2, $par3, $par4, $var6); - else { - $par5 = nms_BlockComparator_getInputStrength($this, $par1World, $par2, $par3, $par4, $var6) - nms_BlockRedstoneLogic_func_94482_f($this, $par1World, $par2, $par3, $par4, $var6) | 0; - $var7 = 0; - if ($par5 > $var7) - $var7 = $par5; - } - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - nms_BlockComparator_func_94478_d($this, $par1World, $par2, $par3, $par4, $var6); - nms_BlockRedstoneLogic_func_83011_d($this, $par1World, $par2, $par3, $par4, $var6); -} -function nms_BlockComparator_func_96476_c($this, $par1World, $par2, $par3, $par4, $par5Random) { - var $var6, var$7, $var7, $var9, $var8, $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();var$7 = $thread.pop();$var6 = $thread.pop();$par5Random = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - var$7 = $rt_compare($var6 & 4, 4); - if (!(var$7 ? 0 : 1)) - $var7 = nms_BlockComparator_getInputStrength($this, $par1World, $par2, $par3, $par4, $var6); - else { - $var9 = nms_BlockComparator_getInputStrength($this, $par1World, $par2, $par3, $par4, $var6) - nms_BlockRedstoneLogic_func_94482_f($this, $par1World, $par2, $par3, $par4, $var6) | 0; - $var7 = 0; - if ($var9 > $var7) - $var7 = $var9; - } - $var8 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_96101_a; - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$field_96101_a = $var7; - if ($var8 == $var7 && (var$7 ? 0 : 1)) - return; - $var9 = nms_BlockComparator_func_94478_d($this, $par1World, $par2, $par3, $par4, $var6); - $var10 = !$this.$isRepeaterPowered && !($var6 & 8) ? 0 : 1; - if ($var10 && !$var9) { - $var9 = $var6 & (-9); - $var10 = 2; - $ptr = 2; - continue main; - } - if (!$var10 && $var9) { - $var9 = $var6 | 8; - $var10 = 2; - $ptr = 3; - continue main; - } - $ptr = 1; - case 1: - nms_BlockRedstoneLogic_func_94483_i_($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var9, $var10); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - case 3: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var9, $var10); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5Random, $var6, var$7, $var7, $var9, $var8, $var10, $ptr); -} -function nms_BlockComparator_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var var$5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockRedstoneLogic_func_94483_i_($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - var$5 = new nms_TileEntityComparator; - var$5.$blockMetadata = (-1); - var$5.$field_96101_a = 0; - nms_World_setBlockTileEntity($par1World, $par2, $par3, $par4, var$5); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, $ptr); -} -function nms_BlockComparator_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - $ptr = 1; - case 1: - nms_BlockRedstoneLogic_func_94483_i_($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $ptr); -} -function nms_BlockComparator_onBlockEventReceived($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7; - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - return $var7 === null ? 0 : $var7.$receiveClientEvent($par5, $par6); -} -function nms_BlockComparator_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon(!$this.$isRepeaterPowered ? $rt_s(1495) : $rt_s(2174)); -} -function nms_BlockComparator_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityComparator; - $par1World.$blockMetadata = (-1); - $par1World.$field_96101_a = 0; - return $par1World; -} -function nms_BlockDaylightDetector() { - nms_BlockContainer.call(this); - this.$iconArray15 = null; -} -function nms_BlockDaylightDetector__init_(var_0) { - var var_1 = new nms_BlockDaylightDetector(); - nms_BlockDaylightDetector__init_0(var_1, var_0); - return var_1; -} -function nms_BlockDaylightDetector__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_wood); - $this.$isBlockContainer = 1; - $this.$iconArray15 = $rt_createArray(nms_Icon, 2); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.375; - $this.$maxZ0 = 1.0; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockDaylightDetector_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.375; - $this.$maxZ0 = 1.0; -} -function nms_BlockDaylightDetector_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return nms_World_getBlockMetadata($par1IBlockAccess, $par2, $par3, $par4); -} -function nms_BlockDaylightDetector_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - return; -} -function nms_BlockDaylightDetector_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - return; -} -function nms_BlockDaylightDetector_updateLightLevel($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1World.$provider.$hasNoSky) { - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var6 = nms_World_getSavedLightValue($par1World, nms_EnumSkyBlock_Sky, $par2, $par3, $par4) - $par1World.$skylightSubtracted | 0; - $var7 = $par1World.$provider.$calculateCelestialAngle($par1World.$worldInfo.$worldTime, 1.0) * 3.1415927410125732 * 2.0; - var$8 = $var7 >= 3.1415927410125732 ? $var7 + (6.2831854820251465 - $var7) * 0.20000000298023224 : $var7 + (0.0 - $var7) * 0.20000000298023224; - var$8 = $var6 * nms_MathHelper_SIN_TABLE.data[(var$8 * 10430.3779296875 + 16384.0 | 0) & 65535]; - $var6 = $rt_compare(var$8, 0.0); - $var6 = var$8 + ($var6 > 0 ? 1.0 : $var6 >= 0 ? var$8 : (-1.0)) * 0.5 | 0; - if ($var6 < 0) - $var6 = 0; - if ($var6 > 15) - $var6 = 15; - if ($var5 != $var6) { - $var5 = 3; - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var6, $var5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, $var7, var$8, $ptr); -} -function nms_BlockDaylightDetector_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockDaylightDetector_isOpaqueCube($this) { - return 0; -} -function nms_BlockDaylightDetector_canProvidePower($this) { - return 1; -} -function nms_BlockDaylightDetector_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityDaylightDetector; - $par1World.$blockMetadata = (-1); - return $par1World; -} -function nms_BlockDaylightDetector_getIcon($this, $par1, $par2) { - return $par1 != 1 ? $this.$iconArray15.data[1] : $this.$iconArray15.data[0]; -} -function nms_BlockDaylightDetector_registerIcons($this, $par1IconRegister) { - $this.$iconArray15.data[0] = $par1IconRegister.$registerIcon($rt_s(2175)); - $this.$iconArray15.data[1] = $par1IconRegister.$registerIcon($rt_s(2176)); -} -function nms_BlockPoweredOre() { - nms_BlockOreStorage.call(this); -} -function nms_BlockPoweredOre__init_(var_0) { - var var_1 = new nms_BlockPoweredOre(); - nms_BlockPoweredOre__init_0(var_1, var_0); - return var_1; -} -function nms_BlockPoweredOre__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_iron); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockPoweredOre_canProvidePower($this) { - return 1; -} -function nms_BlockPoweredOre_isProvidingWeakPower($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 15; -} -function nms_BlockHopper() { - var a = this; nms_BlockContainer.call(a); - a.$field_94457_a = null; - a.$hopperIcon = null; - a.$hopperTopIcon = null; - a.$hopperInsideIcon = null; -} -function nms_BlockHopper__init_(var_0) { - var var_1 = new nms_BlockHopper(); - nms_BlockHopper__init_0(var_1, var_0); - return var_1; -} -function nms_BlockHopper__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_iron); - $this.$isBlockContainer = 1; - $this.$field_94457_a = new ju_Random; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; -} -function nms_BlockHopper_setBlockBoundsBasedOnState($this, $par1IBlockAccess, $par2, $par3, $par4) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; -} -function nms_BlockHopper_addCollisionBoxesToList($this, $par1World, $par2, $par3, $par4, $par5AxisAlignedBB, $par6List, $par7Entity) { - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 0.625; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 0.125; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 0.125; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.875; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par7Entity = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par7Entity !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par7Entity)) - ju_ArrayList_add($par6List, $par7Entity); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.875; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; - $par1World = nms_Block_getCollisionBoundingBoxFromPool($this, $par1World, $par2, $par3, $par4); - if ($par1World !== null && nms_AxisAlignedBB_intersectsWith($par5AxisAlignedBB, $par1World)) - ju_ArrayList_add($par6List, $par1World); - $this.$minX0 = 0.0; - $this.$minY0 = 0.0; - $this.$minZ0 = 0.0; - $this.$maxX0 = 1.0; - $this.$maxY0 = 1.0; - $this.$maxZ0 = 1.0; -} -function nms_BlockHopper_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var $var10; - $var10 = nms_Facing_oppositeSide.data[$par5]; - if ($var10 == 1) - $var10 = 0; - return $var10; -} -function nms_BlockHopper_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityHopper; - $par1World.$blockMetadata = (-1); - $par1World.$hopperItemStacks = $rt_createArray(nms_ItemStack, 5); - $par1World.$transferCooldown = (-1); - return $par1World; -} -function nms_BlockHopper_onBlockPlacedBy($this, $par1World, $par2, $par3, $par4, $par5EntityLiving, $par6ItemStack) { - if (nms_ItemStack_hasDisplayName($par6ItemStack)) - nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4).$inventoryName = nms_ItemStack_getDisplayName($par6ItemStack); -} -function nms_BlockHopper_onBlockAdded($this, $par1World, $par2, $par3, $par4) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockHopper_updateMetadata($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $ptr); -} -function nms_BlockHopper_onBlockActivated($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9) { - var $var10, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5EntityPlayer = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1World.$isRemote) - return 1; - $var10 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var10 === null) - return 1; - var$11 = $par5EntityPlayer.$mc3; - $par1World = new nms_GuiHopper; - $par5EntityPlayer = $par5EntityPlayer.$inventory; - nms_GuiContainer__init_($par1World, nms_ContainerHopper__init_($par5EntityPlayer, $var10)); - $par1World.$field_94081_r = $par5EntityPlayer; - $par1World.$field_94080_s = $var10; - $par1World.$allowUserInput = 0; - $par1World.$ySize0 = 133; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$11, $par1World); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5EntityPlayer, $par6, $par7, $par8, $par9, $var10, var$11, $ptr); -} -function nms_BlockHopper_onNeighborBlockChange($this, $par1World, $par2, $par3, $par4, $par5) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_BlockHopper_updateMetadata($this, $par1World, $par2, $par3, $par4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $ptr); -} -function nms_BlockHopper_updateMetadata($this, $par1World, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var5 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var6 = $var5 & 7; - $var7 = nms_World_isBlockIndirectlyGettingPowered($par1World, $par2, $par3, $par4) ? 0 : 1; - if ($var7 == (($var5 & 8) == 8 ? 0 : 1)) - return; - $var8 = $var6 | (!$var7 ? 8 : 0); - $var5 = 4; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1World, $par2, $par3, $par4, $var8, $var5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $var5, $var6, $var7, $var8, $ptr); -} -function nms_BlockHopper_breakBlock($this, $par1World, $par2, $par3, $par4, $par5, $par6) { - var $var7, $var8, var$9, var$10, var$11, $var9, $var10, $var11, $var12, var$16, var$17, var$18, $var13, $var14, var$21, var$22, var$23, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var7 = nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4); - if ($var7 === null) { - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - } - $var8 = 0; - var$9 = $par2; - var$10 = $par3; - var$11 = $par4; - while ($var8 < $var7.$hopperItemStacks.data.length) { - a: { - $var9 = $var7.$hopperItemStacks.data[$var8]; - if ($var9 !== null) { - $var10 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var11 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var12 = Math.random() * 0.800000011920929 + 0.10000000149011612; - var$16 = var$9 + $var10; - var$17 = var$10 + $var11; - var$18 = var$11 + $var12; - while (true) { - if ($var9.$stackSize <= 0) - break a; - $var13 = (Math.random() * 21.0 | 0) + 10 | 0; - if ($var13 > $var9.$stackSize) - $var13 = $var9.$stackSize; - $var9.$stackSize = $var9.$stackSize - $var13 | 0; - $var14 = new nms_EntityItem; - var$21 = new nms_ItemStack; - var$22 = $var9.$itemID0; - var$23 = $var9.$itemDamage; - var$21.$stackSize = 0; - var$21.$itemFrame = null; - var$21.$itemID0 = var$22; - var$21.$stackSize = $var13; - var$21.$itemDamage = var$23; - if (var$21.$itemDamage < 0) - var$21.$itemDamage = 0; - nms_EntityItem__init_2($var14, $par1World, var$16, var$17, var$18); - nms_DataWatcher_updateObject($var14.$dataWatcher, 10, var$21); - nms_DataWatcher_setObjectWatched($var14.$dataWatcher, 10); - if ($var9.$stackTagCompound === null ? 0 : 1) - nms_EntityItem_getEntityItem($var14).$stackTagCompound = nms_NBTTagCompound_copy($var9.$stackTagCompound); - $var14.$motionX = ju_Random_nextGaussian($this.$field_94457_a) * 0.05000000074505806; - $var14.$motionY = ju_Random_nextGaussian($this.$field_94457_a) * 0.05000000074505806 + 0.20000000298023224; - $var14.$motionZ = ju_Random_nextGaussian($this.$field_94457_a) * 0.05000000074505806; - $par6 = nms_World_spawnEntityInWorld($par1World, $var14); - var$21 = $par1World.$entityList; - ju_HashMap_putImpl(var$21.$backingMap, $var14, var$21); - if (!$par6) { - var$21 = $par1World.$entitySpawnQueue; - ju_HashMap_putImpl(var$21.$backingMap, $var14, var$21); - } - } - } - } - $var8 = $var8 + 1 | 0; - } - $ptr = 1; - case 1: - nms_World_func_96440_m($par1World, $par2, $par3, $par4, $par5); - if ($rt_suspending()) { - break main; - } - nms_World_removeBlockTileEntity($par1World, $par2, $par3, $par4); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, $par5, $par6, $var7, $var8, var$9, var$10, var$11, $var9, $var10, $var11, $var12, var$16, var$17, var$18, $var13, $var14, var$21, var$22, var$23, $ptr); -} -function nms_BlockHopper_getRenderType($this) { - return 38; -} -function nms_BlockHopper_renderAsNormalBlock($this) { - return 0; -} -function nms_BlockHopper_isOpaqueCube($this) { - return 0; -} -function nms_BlockHopper_shouldSideBeRendered($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - return 1; -} -function nms_BlockHopper_getIcon($this, $par1, $par2) { - return $par1 != 1 ? $this.$hopperIcon : $this.$hopperTopIcon; -} -function nms_BlockHopper_getDirectionFromMetadata($par0) { - return $par0 & 7; -} -function nms_BlockHopper_hasComparatorInputOverride($this) { - return 1; -} -function nms_BlockHopper_getComparatorInputOverride($this, $par1World, $par2, $par3, $par4, $par5) { - return nms_Container_calcRedstoneFromInventory(nms_World_getBlockTileEntity($par1World, $par2, $par3, $par4)); -} -function nms_BlockHopper_registerIcons($this, $par1IconRegister) { - $this.$hopperIcon = $par1IconRegister.$registerIcon($rt_s(621)); - $this.$hopperTopIcon = $par1IconRegister.$registerIcon($rt_s(2177)); - $this.$hopperInsideIcon = $par1IconRegister.$registerIcon($rt_s(622)); -} -function nms_BlockHopper_getHopperIcon($par0Str) { - if ($par0Str === $rt_s(621)) { - nms_Block_$callClinit(); - $par0Str = nms_Block_hopperBlock.$hopperIcon; - } else if ($par0Str !== $rt_s(622)) - $par0Str = null; - else { - nms_Block_$callClinit(); - $par0Str = nms_Block_hopperBlock.$hopperInsideIcon; - } - return $par0Str; -} -function nms_BlockHopper_getItemIconName($this) { - return $rt_s(621); -} -function nms_BlockQuartz() { - var a = this; nms_Block.call(a); - a.$quartzblockIcons = null; - a.$quartzblock_chiseled_top = null; - a.$quartzblock_lines_top = null; - a.$quartzblock_top = null; - a.$quartzblock_bottom = null; -} -var nms_BlockQuartz_quartzBlockTypes = null; -var nms_BlockQuartz_quartzBlockTextureTypes = null; -function nms_BlockQuartz__init_(var_0) { - var var_1 = new nms_BlockQuartz(); - nms_BlockQuartz__init_0(var_1, var_0); - return var_1; -} -function nms_BlockQuartz__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$displayOnCreativeTab = nms_CreativeTabs_tabBlock; -} -function nms_BlockQuartz_getIcon($this, $par1, $par2) { - var var$3; - var$3 = $rt_compare($par2, 2); - if (var$3 && $par2 != 3 && $par2 != 4) { - a: { - if ($par1 != 1) { - if ($par1) - break a; - if ($par2 != 1) - break a; - } - return $par2 != 1 ? $this.$quartzblock_top : $this.$quartzblock_chiseled_top; - } - if (!$par1) - return $this.$quartzblock_bottom; - if (!($par2 >= 0 && $par2 < $this.$quartzblockIcons.data.length)) - $par2 = 0; - return $this.$quartzblockIcons.data[$par2]; - } - return !var$3 && !($par1 != 1 && $par1) ? $this.$quartzblock_lines_top : $par2 == 3 && !($par1 != 5 && $par1 != 4) ? $this.$quartzblock_lines_top : $par2 == 4 && !($par1 != 2 && $par1 != 3) ? $this.$quartzblock_lines_top : $this.$quartzblockIcons.data[$par2]; -} -function nms_BlockQuartz_onBlockPlaced($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - a: { - if ($par9 == 2) - switch ($par5) { - case 0: - case 1: - $par9 = 2; - break a; - case 2: - case 3: - $par9 = 4; - break a; - case 4: - case 5: - $par9 = 3; - break a; - default: - } - } - return $par9; -} -function nms_BlockQuartz_damageDropped($this, $par1) { - if (!($par1 != 3 && $par1 != 4)) - $par1 = 2; - return $par1; -} -function nms_BlockQuartz_getRenderType($this) { - return 39; -} -function nms_BlockQuartz_getSubBlocks($this, $par1, $par2CreativeTabs, $par3List) { - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 0; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 1; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); - $par2CreativeTabs = new nms_ItemStack; - $par2CreativeTabs.$stackSize = 0; - $par2CreativeTabs.$itemFrame = null; - $par2CreativeTabs.$itemID0 = $par1; - $par2CreativeTabs.$stackSize = 1; - $par2CreativeTabs.$itemDamage = 2; - if ($par2CreativeTabs.$itemDamage < 0) - $par2CreativeTabs.$itemDamage = 0; - ju_ArrayList_add($par3List, $par2CreativeTabs); -} -function nms_BlockQuartz_registerIcons($this, $par1IconRegister) { - var $var2; - $this.$quartzblockIcons = $rt_createArray(nms_Icon, nms_BlockQuartz_quartzBlockTextureTypes.data.length); - $var2 = 0; - while ($var2 < $this.$quartzblockIcons.data.length) { - if (nms_BlockQuartz_quartzBlockTextureTypes.data[$var2] !== null) - $this.$quartzblockIcons.data[$var2] = $par1IconRegister.$registerIcon(nms_BlockQuartz_quartzBlockTextureTypes.data[$var2]); - else - $this.$quartzblockIcons.data[$var2] = $this.$quartzblockIcons.data[$var2 - 1 | 0]; - $var2 = $var2 + 1 | 0; - } - $this.$quartzblock_top = $par1IconRegister.$registerIcon($rt_s(2178)); - $this.$quartzblock_chiseled_top = $par1IconRegister.$registerIcon($rt_s(2179)); - $this.$quartzblock_lines_top = $par1IconRegister.$registerIcon($rt_s(2180)); - $this.$quartzblock_bottom = $par1IconRegister.$registerIcon($rt_s(2181)); -} -function nms_BlockQuartz__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(1759); - var$2[1] = $rt_s(2033); - var$2[2] = $rt_s(2182); - nms_BlockQuartz_quartzBlockTypes = var$1; - var$1 = $rt_createArray(jl_String, 5); - var$2 = var$1.data; - var$2[0] = $rt_s(2183); - var$2[1] = $rt_s(2184); - var$2[2] = $rt_s(2185); - var$2[3] = null; - var$2[4] = null; - nms_BlockQuartz_quartzBlockTextureTypes = var$1; -} -function nms_BlockDropper() { - nms_BlockDispenser.call(this); -} -function nms_BlockDropper__init_(var_0) { - var var_1 = new nms_BlockDropper(); - nms_BlockDropper__init_0(var_1, var_0); - return var_1; -} -function nms_BlockDropper__init_0($this, $par1) { - nms_Material_$callClinit(); - nms_Block__init_0($this, $par1, nms_Material_rock); - $this.$isBlockContainer = 1; - $this.$random2 = new ju_Random; - $this.$displayOnCreativeTab = nms_CreativeTabs_tabRedstone; -} -function nms_BlockDropper_registerIcons($this, $par1IconRegister) { - $this.$blockIcon = $par1IconRegister.$registerIcon($rt_s(2027)); - $this.$furnaceTopIcon = $par1IconRegister.$registerIcon($rt_s(2028)); - $this.$furnaceFrontIcon = $par1IconRegister.$registerIcon($rt_s(2186)); - $this.$field_96473_e = $par1IconRegister.$registerIcon($rt_s(2187)); -} -function nms_BlockDropper_createNewTileEntity($this, $par1World) { - $par1World = new nms_TileEntityDropper; - $par1World.$blockMetadata = (-1); - $par1World.$dispenserContents = $rt_createArray(nms_ItemStack, 9); - $par1World.$dispenserRandom = new ju_Random; - return $par1World; -} -function nms_ItemBlock() { - var a = this; nms_Item.call(a); - a.$blockID1 = 0; - a.$field_94588_b = null; -} -function nms_ItemBlock__init_(var_0) { - var var_1 = new nms_ItemBlock(); - nms_ItemBlock__init_0(var_1, var_0); - return var_1; -} -function nms_ItemBlock__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$blockID1 = $par1 + 256 | 0; -} -function nms_ItemBlock_getBlockID($this) { - return $this.$blockID1; -} -function nms_ItemBlock_getSpriteNumber($this) { - nms_Block_$callClinit(); - return nms_Block_blocksList.data[$this.$blockID1].$getItemIconName() === null ? 0 : 1; -} -function nms_ItemBlock_getIconFromDamage($this, $par1) { - var var$2; - if ($this.$field_94588_b !== null) - var$2 = $this.$field_94588_b; - else { - nms_Block_$callClinit(); - var$2 = nms_Block_blocksList.data[$this.$blockID1].$getIcon(1, 0); - } - return var$2; -} -function nms_ItemBlock_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, $var13, $var12, $var14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();$var14 = $thread.pop();$var12 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - nms_Block_$callClinit(); - if ($var11 == nms_Block_snow.$blockID && (nms_World_getBlockMetadata($par3World, $par4, $par5, $par6) & 7) < 1) - $par7 = 1; - else if ($var11 != nms_Block_vine.$blockID && $var11 != nms_Block_tallGrass.$blockID && $var11 != nms_Block_deadBush.$blockID) { - if (!$par7) - $par5 = $par5 + (-1) | 0; - if ($par7 == 1) - $par5 = $par5 + 1 | 0; - if ($par7 == 2) - $par6 = $par6 + (-1) | 0; - if ($par7 == 3) - $par6 = $par6 + 1 | 0; - if ($par7 == 4) - $par4 = $par4 + (-1) | 0; - if ($par7 == 5) - $par4 = $par4 + 1 | 0; - } - if (!$par1ItemStack.$stackSize) - return 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $var13 = 1; - else { - nms_Item_$callClinit(); - $var13 = 1; - } - if (!$var13) - return 0; - if ($par5 == 255 && nms_Block_blocksList.data[$this.$blockID1].$blockMaterial.$isSolid()) - return 0; - if (!nms_World_canPlaceEntityOnSide($par3World, $this.$blockID1, $par4, $par5, $par6, 0, $par7, $par2EntityPlayer, $par1ItemStack)) - return 0; - $var12 = nms_Block_blocksList.data[$this.$blockID1]; - $var13 = $this.$getMetadata($par1ItemStack.$itemDamage); - $var14 = nms_Block_blocksList.data[$this.$blockID1].$onBlockPlaced($par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var13); - $par7 = $this.$blockID1; - $var13 = 3; - $ptr = 1; - case 1: - $tmp = nms_World_setBlock($par3World, $par4, $par5, $par6, $par7, $var14, $var13); - if ($rt_suspending()) { - break main; - } - $par7 = $tmp; - if ($par7) { - if (nms_World_getBlockId($par3World, $par4, $par5, $par6) == $this.$blockID1) { - var$15 = nms_Block_blocksList.data[$this.$blockID1]; - $ptr = 2; - continue main; - } - nms_World_playSoundEffect($par3World, $par4 + 0.5, $par5 + 0.5, $par6 + 0.5, $var12.$stepSound.$getPlaceSound(), ($var12.$stepSound.$stepSoundVolume + 1.0) / 2.0, $var12.$stepSound.$stepSoundPitch * 0.800000011920929); - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - } - return 1; - case 2: - var$15.$onBlockPlacedBy($par3World, $par4, $par5, $par6, $par2EntityPlayer, $par1ItemStack); - if ($rt_suspending()) { - break main; - } - $par2EntityPlayer = nms_Block_blocksList.data[$this.$blockID1]; - $ptr = 3; - case 3: - $par2EntityPlayer.$onPostBlockPlaced($par3World, $par4, $par5, $par6, $var14); - if ($rt_suspending()) { - break main; - } - nms_World_playSoundEffect($par3World, $par4 + 0.5, $par5 + 0.5, $par6 + 0.5, $var12.$stepSound.$getPlaceSound(), ($var12.$stepSound.$stepSoundVolume + 1.0) / 2.0, $var12.$stepSound.$stepSoundPitch * 0.800000011920929); - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, $var13, $var12, $var14, var$15, $ptr); -} -function nms_ItemBlock_canPlaceItemBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5, $par6EntityPlayer, $par7ItemStack) { - var $var8; - $var8 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - nms_Block_$callClinit(); - if ($var8 == nms_Block_snow.$blockID) - $par5 = 1; - else if ($var8 != nms_Block_vine.$blockID && $var8 != nms_Block_tallGrass.$blockID && $var8 != nms_Block_deadBush.$blockID) { - if (!$par5) - $par3 = $par3 + (-1) | 0; - if ($par5 == 1) - $par3 = $par3 + 1 | 0; - if ($par5 == 2) - $par4 = $par4 + (-1) | 0; - if ($par5 == 3) - $par4 = $par4 + 1 | 0; - if ($par5 == 4) - $par2 = $par2 + (-1) | 0; - if ($par5 == 5) - $par2 = $par2 + 1 | 0; - } - return nms_World_canPlaceEntityOnSide($par1World, $this.$blockID1, $par2, $par3, $par4, 0, $par5, null, $par7ItemStack); -} -function nms_ItemBlock_getUnlocalizedName($this, $par1ItemStack) { - var var$2; - nms_Block_$callClinit(); - $par1ItemStack = nms_Block_blocksList.data[$this.$blockID1]; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(1590)); - $par1ItemStack = $par1ItemStack.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $par1ItemStack); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -} -function nms_ItemBlock_getUnlocalizedName0($this) { - var var$1, var$2; - nms_Block_$callClinit(); - var$1 = nms_Block_blocksList.data[$this.$blockID1]; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(1590)); - var$1 = var$1.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$1); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -} -function nms_ItemBlock_getCreativeTab($this) { - nms_Block_$callClinit(); - return nms_Block_blocksList.data[$this.$blockID1].$displayOnCreativeTab; -} -function nms_ItemBlock_getSubItems($this, $par1, $par2CreativeTabs, $par3List) { - nms_Block_$callClinit(); - nms_Block_blocksList.data[$this.$blockID1].$getSubBlocks($par1, $par2CreativeTabs, $par3List); -} -function nms_ItemBlock_registerIcons($this, $par1IconRegister) { - var $var2; - nms_Block_$callClinit(); - $var2 = nms_Block_blocksList.data[$this.$blockID1].$getItemIconName(); - if ($var2 !== null) - $this.$field_94588_b = nms_TextureMap_registerIcon($par1IconRegister, $var2); -} -function nms_ItemCloth() { - nms_ItemBlock.call(this); -} -function nms_ItemCloth__init_(var_0) { - var var_1 = new nms_ItemCloth(); - nms_ItemCloth__init_0(var_1, var_0); - return var_1; -} -function nms_ItemCloth__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$blockID1 = $par1 + 256 | 0; - $this.$maxDamage = 0; - $this.$hasSubtypes = 1; -} -function nms_ItemCloth_getIconFromDamage($this, $par1) { - nms_Block_$callClinit(); - return nms_Block_cloth.$getIcon(2, ($par1 ^ (-1)) & 15); -} -function nms_ItemCloth_getMetadata($this, $par1) { - return $par1; -} -function nms_ItemCloth_getUnlocalizedName($this, $par1ItemStack) { - var var$2, var$3; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - var$3 = nms_ItemBlock_getUnlocalizedName0($this); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$3); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(303)); - $par1ItemStack = nms_ItemDye_dyeColorNames.data[($par1ItemStack.$itemDamage ^ (-1)) & 15]; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $par1ItemStack); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -} -function nms_ItemMultiTextureTile() { - var a = this; nms_ItemBlock.call(a); - a.$theBlock = null; - a.$field_82804_b = null; -} -function nms_ItemMultiTextureTile__init_(var_0, var_1, var_2) { - var var_3 = new nms_ItemMultiTextureTile(); - nms_ItemMultiTextureTile__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ItemMultiTextureTile__init_0($this, $par1, $par2Block, $par3ArrayOfStr) { - nms_Item__init_0($this, $par1); - $this.$blockID1 = $par1 + 256 | 0; - $this.$theBlock = $par2Block; - $this.$field_82804_b = $par3ArrayOfStr; - $this.$maxDamage = 0; - $this.$hasSubtypes = 1; -} -function nms_ItemMultiTextureTile_getIconFromDamage($this, $par1) { - return $this.$theBlock.$getIcon(2, $par1); -} -function nms_ItemMultiTextureTile_getMetadata($this, $par1) { - return $par1; -} -function nms_ItemMultiTextureTile_getUnlocalizedName($this, $par1ItemStack) { - var $var2, var$3, var$4; - $var2 = $par1ItemStack.$itemDamage; - if (!($var2 >= 0 && $var2 < $this.$field_82804_b.data.length)) - $var2 = 0; - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - nms_Block_$callClinit(); - var$3 = nms_Block_blocksList.data[$this.$blockID1]; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1590)); - var$3 = var$3.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$3); - var$3 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$3); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(303)); - var$3 = $this.$field_82804_b.data[$var2]; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$3); - return jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); -} -function nms_ItemSlab() { - var a = this; nms_ItemBlock.call(a); - a.$isFullBlock = 0; - a.$theHalfSlab = null; - a.$doubleSlab = null; -} -function nms_ItemSlab__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_ItemSlab(); - nms_ItemSlab__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -function nms_ItemSlab__init_0($this, $par1, $par2BlockHalfSlab, $par3BlockHalfSlab, $par4) { - nms_Item__init_0($this, $par1); - $this.$blockID1 = $par1 + 256 | 0; - $this.$theHalfSlab = $par2BlockHalfSlab; - $this.$doubleSlab = $par3BlockHalfSlab; - $this.$isFullBlock = $par4; - $this.$maxDamage = 0; - $this.$hasSubtypes = 1; -} -function nms_ItemSlab_getIconFromDamage($this, $par1) { - nms_Block_$callClinit(); - return nms_Block_blocksList.data[$this.$itemID].$getIcon(2, $par1); -} -function nms_ItemSlab_getMetadata($this, $par1) { - return $par1; -} -function nms_ItemSlab_getUnlocalizedName($this, $par1ItemStack) { - return $this.$theHalfSlab.$getFullSlabName($par1ItemStack.$itemDamage); -} -function nms_ItemSlab_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var14, $var11, $var12, $var13, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var14 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$isFullBlock) { - $ptr = 1; - continue main; - } - if (!$par1ItemStack.$stackSize) - return 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $var14 = 1; - else { - nms_Item_$callClinit(); - $var14 = 1; - } - if (!$var14) - return 0; - $var11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - $var12 = nms_World_getBlockMetadata($par3World, $par4, $par5, $par6); - $var13 = $var12 & 7; - $var14 = !($var12 & 8) ? 0 : 1; - a: { - if (!($par7 == 1 && !$var14)) { - if ($par7) - break a; - if (!$var14) - break a; - } - if ($var11 == $this.$theHalfSlab.$blockID && $var13 == $par1ItemStack.$itemDamage) { - if (!nms_World_checkNoEntityCollision0($par3World, nms_Block_getCollisionBoundingBoxFromPool($this.$doubleSlab, $par3World, $par4, $par5, $par6), null)) - return 1; - $par7 = $this.$doubleSlab.$blockID; - $var14 = 3; - $ptr = 4; - continue main; - } - } - $ptr = 2; - continue main; - case 1: - $tmp = nms_ItemBlock_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10); - if ($rt_suspending()) { - break main; - } - $par4 = $tmp; - return $par4; - case 2: - $tmp = nms_ItemSlab_func_77888_a($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7); - if ($rt_suspending()) { - break main; - } - $var14 = $tmp; - if ($var14) - return 1; - $ptr = 3; - case 3: - $tmp = nms_ItemBlock_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10); - if ($rt_suspending()) { - break main; - } - $par4 = $tmp; - return $par4; - case 4: - $tmp = nms_World_setBlock($par3World, $par4, $par5, $par6, $par7, $var13, $var14); - if ($rt_suspending()) { - break main; - } - $par7 = $tmp; - if ($par7) { - nms_World_playSoundEffect($par3World, $par4 + 0.5, $par5 + 0.5, $par6 + 0.5, $this.$doubleSlab.$stepSound.$getPlaceSound(), ($this.$doubleSlab.$stepSound.$stepSoundVolume + 1.0) / 2.0, $this.$doubleSlab.$stepSound.$stepSoundPitch * 0.800000011920929); - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var14, $var11, $var12, $var13, $ptr); -} -function nms_ItemSlab_canPlaceItemBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5, $par6EntityPlayer, $par7ItemStack) { - var $var11, $var12, $var13, $var14; - $var11 = nms_World_getBlockId($par1World, $par2, $par3, $par4); - $var12 = nms_World_getBlockMetadata($par1World, $par2, $par3, $par4); - $var13 = $var12 & 7; - $var14 = !($var12 & 8) ? 0 : 1; - a: { - $var12 = $rt_compare($par5, 1); - if (!(!$var12 && !$var14)) { - if ($par5) - break a; - if (!$var14) - break a; - } - if ($var11 == $this.$theHalfSlab.$blockID && $var13 == $par7ItemStack.$itemDamage) - return 1; - } - $var14 = $par5 ? $par3 : $par3 + (-1) | 0; - if (!$var12) - $var14 = $var14 + 1 | 0; - $var12 = $par5 != 2 ? $par4 : $par4 + (-1) | 0; - if ($par5 == 3) - $var12 = $var12 + 1 | 0; - $var13 = $par5 != 4 ? $par2 : $par2 + (-1) | 0; - if ($par5 == 5) - $var13 = $var13 + 1 | 0; - $var11 = nms_World_getBlockId($par1World, $var13, $var14, $var12); - $var14 = nms_World_getBlockMetadata($par1World, $var13, $var14, $var12); - $var12 = $var14 & 7; - return $var11 == $this.$theHalfSlab.$blockID && $var12 == $par7ItemStack.$itemDamage ? 1 : nms_ItemBlock_canPlaceItemBlockOnSide($this, $par1World, $par2, $par3, $par4, $par5, $par6EntityPlayer, $par7ItemStack); -} -function nms_ItemSlab_func_77888_a($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7) { - var $var8, $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par7) - $par5 = $par5 + (-1) | 0; - if ($par7 == 1) - $par5 = $par5 + 1 | 0; - if ($par7 == 2) - $par6 = $par6 + (-1) | 0; - if ($par7 == 3) - $par6 = $par6 + 1 | 0; - if ($par7 == 4) - $par4 = $par4 + (-1) | 0; - if ($par7 == 5) - $par4 = $par4 + 1 | 0; - $var8 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - $var10 = nms_World_getBlockMetadata($par3World, $par4, $par5, $par6) & 7; - if ($var8 == $this.$theHalfSlab.$blockID && $var10 == $par1ItemStack.$itemDamage) { - if (!nms_World_checkNoEntityCollision0($par3World, nms_Block_getCollisionBoundingBoxFromPool($this.$doubleSlab, $par3World, $par4, $par5, $par6), null)) - return 1; - $par7 = $this.$doubleSlab.$blockID; - $var8 = 3; - $ptr = 1; - continue main; - } - return 0; - case 1: - $tmp = nms_World_setBlock($par3World, $par4, $par5, $par6, $par7, $var10, $var8); - if ($rt_suspending()) { - break main; - } - $par7 = $tmp; - if ($par7) { - nms_World_playSoundEffect($par3World, $par4 + 0.5, $par5 + 0.5, $par6 + 0.5, $this.$doubleSlab.$stepSound.$getPlaceSound(), ($this.$doubleSlab.$stepSound.$stepSoundVolume + 1.0) / 2.0, $this.$doubleSlab.$stepSound.$stepSoundPitch * 0.800000011920929); - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $var8, $var10, $ptr); -} -function nms_ItemLeaves() { - nms_ItemBlock.call(this); -} -function nms_ItemLeaves__init_(var_0) { - var var_1 = new nms_ItemLeaves(); - nms_ItemLeaves__init_0(var_1, var_0); - return var_1; -} -function nms_ItemLeaves__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$blockID1 = $par1 + 256 | 0; - $this.$maxDamage = 0; - $this.$hasSubtypes = 1; -} -function nms_ItemLeaves_getMetadata($this, $par1) { - return $par1 | 4; -} -function nms_ItemLeaves_getIconFromDamage($this, $par1) { - nms_Block_$callClinit(); - return nms_BlockLeaves_getIcon(nms_Block_leaves, 0, $par1); -} -function nms_ItemLeaves_getColorFromItemStack($this, $par1ItemStack, $par2) { - var $var3; - $var3 = $par1ItemStack.$itemDamage; - return ($var3 & 1) == 1 ? 6396257 : ($var3 & 2) != 2 ? 4764952 : 8431445; -} -function nms_ItemLeaves_getUnlocalizedName($this, $par1ItemStack) { - var $var2, var$3, var$4; - $var2 = $par1ItemStack.$itemDamage; - if (!($var2 >= 0 && $var2 < nms_BlockLeaves_LEAF_TYPES.data.length)) - $var2 = 0; - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - nms_Block_$callClinit(); - var$3 = nms_Block_blocksList.data[$this.$blockID1]; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1590)); - var$3 = var$3.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$3); - var$3 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$3); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(303)); - var$3 = nms_BlockLeaves_LEAF_TYPES.data[$var2]; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$3); - return jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); -} -function nms_ItemColored() { - var a = this; nms_ItemBlock.call(a); - a.$blockRef = null; - a.$blockNames = null; -} -function nms_ItemColored__init_(var_0, var_1) { - var var_2 = new nms_ItemColored(); - nms_ItemColored__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemColored__init_0($this, $par1, $par2) { - nms_Item__init_0($this, $par1); - $this.$blockID1 = $par1 + 256 | 0; - nms_Block_$callClinit(); - $this.$blockRef = nms_Block_blocksList.data[$this.$blockID1]; - if ($par2) { - $this.$maxDamage = 0; - $this.$hasSubtypes = 1; - } -} -function nms_ItemColored_getColorFromItemStack($this, $par1ItemStack, $par2) { - return $this.$blockRef.$getRenderColor($par1ItemStack.$itemDamage); -} -function nms_ItemColored_getIconFromDamage($this, $par1) { - return $this.$blockRef.$getIcon(0, $par1); -} -function nms_ItemColored_getMetadata($this, $par1) { - return $par1; -} -function nms_ItemColored_setBlockNames($this, $par1ArrayOfStr) { - $this.$blockNames = $par1ArrayOfStr; - return $this; -} -function nms_ItemColored_getUnlocalizedName($this, $par1ItemStack) { - var var$2, $var2, var$4; - if ($this.$blockNames === null) { - nms_Block_$callClinit(); - $par1ItemStack = nms_Block_blocksList.data[$this.$blockID1]; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(1590)); - $par1ItemStack = $par1ItemStack.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $par1ItemStack); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); - } - $var2 = $par1ItemStack.$itemDamage; - if ($var2 >= 0 && $var2 < $this.$blockNames.data.length) { - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - nms_Block_$callClinit(); - var$2 = nms_Block_blocksList.data[$this.$blockID1]; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1590)); - var$2 = var$2.$unlocalizedName0; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$2); - var$2 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$2); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(303)); - var$2 = $this.$blockNames.data[$var2]; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$2); - var$2 = jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); - } else { - nms_Block_$callClinit(); - var$2 = nms_Block_blocksList.data[$this.$blockID1]; - $par1ItemStack = new jl_StringBuilder; - $par1ItemStack.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, $rt_s(1590)); - var$2 = var$2.$unlocalizedName0; - jl_AbstractStringBuilder_insert($par1ItemStack, $par1ItemStack.$length, var$2); - var$2 = jl_String__init_0($par1ItemStack.$buffer, 0, $par1ItemStack.$length); - } - return var$2; -} -function nms_ItemBlockWithMetadata() { - nms_ItemBlock.call(this); - this.$theBlock0 = null; -} -function nms_ItemBlockWithMetadata_getIconFromDamage($this, $par1) { - return $this.$theBlock0.$getIcon(2, $par1); -} -function nms_ItemBlockWithMetadata_getMetadata($this, $par1) { - return $par1; -} -function nms_ItemSnow() { - nms_ItemBlockWithMetadata.call(this); -} -function nms_ItemSnow__init_(var_0, var_1) { - var var_2 = new nms_ItemSnow(); - nms_ItemSnow__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_ItemSnow__init_0($this, $par1, $par2Block) { - nms_Item__init_0($this, $par1); - $this.$blockID1 = $par1 + 256 | 0; - $this.$theBlock0 = $par2Block; - $this.$maxDamage = 0; - $this.$hasSubtypes = 1; -} -function nms_ItemSnow_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var $var11, $var12, $var13, $var14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$par10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3World = $thread.pop();$par2EntityPlayer = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1ItemStack.$stackSize) - return 0; - if ($par2EntityPlayer.$capabilities.$allowEdit) - $var11 = 1; - else { - nms_Item_$callClinit(); - $var11 = 1; - } - if (!$var11) - return 0; - $var11 = nms_World_getBlockId($par3World, $par4, $par5, $par6); - nms_Block_$callClinit(); - if ($var11 == nms_Block_snow.$blockID) { - $var12 = nms_Block_blocksList.data[$this.$blockID1]; - $var13 = nms_World_getBlockMetadata($par3World, $par4, $par5, $par6); - $var14 = $var13 & 7; - if ($var14 <= 6 && nms_World_checkNoEntityCollision0($par3World, $var12.$getCollisionBoundingBoxFromPool($par3World, $par4, $par5, $par6), null)) { - $var11 = ($var14 + 1 | 0) | $var13 & (-8); - $var14 = 2; - $ptr = 2; - continue main; - } - } - $ptr = 1; - case 1: - $tmp = nms_ItemBlock_onItemUse($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10); - if ($rt_suspending()) { - break main; - } - $par4 = $tmp; - return $par4; - case 2: - $tmp = nms_World_setBlockMetadataWithNotify($par3World, $par4, $par5, $par6, $var11, $var14); - if ($rt_suspending()) { - break main; - } - $var11 = $tmp; - if ($var11) { - nms_World_playSoundEffect($par3World, $par4 + 0.5, $par5 + 0.5, $par6 + 0.5, $var12.$stepSound.$getPlaceSound(), ($var12.$stepSound.$stepSoundVolume + 1.0) / 2.0, $var12.$stepSound.$stepSoundPitch * 0.800000011920929); - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return 1; - } - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2EntityPlayer, $par3World, $par4, $par5, $par6, $par7, $par8, $par9, $par10, $var11, $var12, $var13, $var14, $ptr); -} -function nms_ItemLilyPad() { - nms_ItemColored.call(this); -} -function nms_ItemLilyPad__init_(var_0) { - var var_1 = new nms_ItemLilyPad(); - nms_ItemLilyPad__init_0(var_1, var_0); - return var_1; -} -function nms_ItemLilyPad__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$blockID1 = $par1 + 256 | 0; - nms_Block_$callClinit(); - $this.$blockRef = nms_Block_blocksList.data[$this.$blockID1]; -} -function nms_ItemLilyPad_onItemRightClick($this, $par1ItemStack, $par2World, $par3EntityPlayer) { - var $var4, $var5, $var6, $var7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3EntityPlayer = $thread.pop();$par2World = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var4 = nms_Item_getMovingObjectPositionFromPlayer($this, $par2World, $par3EntityPlayer, 1); - if ($var4 === null) - return $par1ItemStack; - if ($var4.$typeOfHit === nms_EnumMovingObjectType_TILE) { - $var5 = $var4.$blockX; - $var6 = $var4.$blockY; - $var7 = $var4.$blockZ; - if (!($par3EntityPlayer.$capabilities.$allowEdit ? 1 : $par1ItemStack === null ? 0 : 1)) - return $par1ItemStack; - var$8 = nms_World_getBlockId($par2World, $var5, $var6, $var7); - if (!var$8) { - nms_Material_$callClinit(); - $var4 = nms_Material_air; - } else { - nms_Block_$callClinit(); - $var4 = nms_Block_blocksList.data[var$8].$blockMaterial; - } - nms_Material_$callClinit(); - if ($var4 === nms_Material_water && !nms_World_getBlockMetadata($par2World, $var5, $var6, $var7)) { - var$8 = $var6 + 1 | 0; - if (nms_World_getBlockId($par2World, $var5, var$8, $var7) ? 0 : 1) { - nms_Block_$callClinit(); - $var6 = nms_Block_waterlily.$blockID; - var$9 = 0; - var$10 = 3; - $ptr = 1; - continue main; - } - } - } - return $par1ItemStack; - case 1: - nms_World_setBlock($par2World, $var5, var$8, $var7, $var6, var$9, var$10); - if ($rt_suspending()) { - break main; - } - if (!$par3EntityPlayer.$capabilities.$isCreativeMode) - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - 1 | 0; - return $par1ItemStack; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $par2World, $par3EntityPlayer, $var4, $var5, $var6, $var7, var$8, var$9, var$10, $ptr); -} -function nms_ItemLilyPad_getColorFromItemStack($this, $par1ItemStack, $par2) { - nms_Block_$callClinit(); - return nms_Block_waterlily.$getRenderColor($par1ItemStack.$itemDamage); -} -function nms_ItemPiston() { - nms_ItemBlock.call(this); -} -function nms_ItemPiston__init_(var_0) { - var var_1 = new nms_ItemPiston(); - nms_ItemPiston__init_0(var_1, var_0); - return var_1; -} -function nms_ItemPiston__init_0($this, $par1) { - nms_Item__init_0($this, $par1); - $this.$blockID1 = $par1 + 256 | 0; -} -function nms_ItemPiston_getMetadata($this, $par1) { - return 7; -} -function nms_ItemAnvilBlock() { - nms_ItemMultiTextureTile.call(this); -} -function nms_ItemAnvilBlock__init_(var_0) { - var var_1 = new nms_ItemAnvilBlock(); - nms_ItemAnvilBlock__init_0(var_1, var_0); - return var_1; -} -function nms_ItemAnvilBlock__init_0($this, $par1Block) { - var var$2, var$3; - var$2 = $par1Block.$blockID - 256 | 0; - var$3 = nms_BlockAnvil_statuses; - nms_Item__init_0($this, var$2); - $this.$blockID1 = var$2 + 256 | 0; - $this.$theBlock = $par1Block; - $this.$field_82804_b = var$3; - $this.$maxDamage = 0; - $this.$hasSubtypes = 1; -} -function nms_ItemAnvilBlock_getMetadata($this, $par1) { - return $par1 << 2; -} -function ju_LinkedHashMap() { - var a = this; ju_HashMap.call(a); - a.$accessOrder = 0; - a.$head4 = null; - a.$tail = null; -} -function ju_LinkedHashMap__init_0() { - var var_0 = new ju_LinkedHashMap(); - ju_LinkedHashMap__init_(var_0); - return var_0; -} -function ju_LinkedHashMap__init_($this) { - ju_HashMap__init_2($this, 16, 0.75); - $this.$accessOrder = 0; - $this.$head4 = null; -} -function ju_LinkedHashMap_newElementArray($this, $s) { - return $rt_createArray(ju_LinkedHashMap$LinkedHashMapEntry, $s); -} -function ju_LinkedHashMap_get($this, $key) { - var $hash, $m, $p, $n; - if ($key !== null) { - $hash = jl_Integer_hashCode($key); - $m = ju_HashMap_findNonNullKeyEntry($this, $key, ($hash & 2147483647) % $this.$elementData.data.length | 0, $hash); - } else { - $key = $this.$elementData.data[0]; - while ($key !== null && $key.$key !== null) { - $key = $key.$next1; - } - $m = $key; - } - if ($m === null) - return null; - if ($this.$accessOrder && $this.$tail !== $m) { - $p = $m.$chainBackward; - $n = $m.$chainForward; - $n.$chainBackward = $p; - if ($p === null) - $this.$head4 = $n; - else - $p.$chainForward = $n; - $m.$chainForward = null; - $m.$chainBackward = $this.$tail; - $this.$tail.$chainForward = $m; - $this.$tail = $m; - } - return $m.$value0; -} -function ju_LinkedHashMap_createHashedEntry($this, $key, $index, $hash) { - var $m, var$5; - $m = new ju_LinkedHashMap$LinkedHashMapEntry; - var$5 = null; - $m.$key = $key; - $m.$value0 = var$5; - $m.$origKeyHash = $hash; - $m.$chainForward = null; - $m.$chainBackward = null; - $m.$next1 = $this.$elementData.data[$index]; - $this.$elementData.data[$index] = $m; - ju_LinkedHashMap_linkEntry($this, $m); - return $m; -} -function ju_LinkedHashMap_put($this, $key, $value) { - return ju_LinkedHashMap_putImpl($this, $key, $value); -} -function ju_LinkedHashMap_putImpl($this, $key, $value) { - var $hash, var$4, $index, $m, var$7, $result; - if (!$this.$elementCount) { - $this.$head4 = null; - $this.$tail = null; - } - if ($key !== null) { - $hash = $key.$hashCode0(); - var$4 = $hash & 2147483647; - $index = var$4 % $this.$elementData.data.length | 0; - $m = ju_HashMap_findNonNullKeyEntry($this, $key, $index, $hash); - if ($m !== null) - ju_LinkedHashMap_linkEntry($this, $m); - else { - $this.$modCount1 = $this.$modCount1 + 1 | 0; - var$7 = $this.$elementCount + 1 | 0; - $this.$elementCount = var$7; - if (var$7 > $this.$threshold) { - ju_HashMap_rehash($this, $this.$elementData.data.length); - $index = var$4 % $this.$elementData.data.length | 0; - } - $result = new ju_LinkedHashMap$LinkedHashMapEntry; - $m = null; - $result.$key = $key; - $result.$value0 = $m; - $result.$origKeyHash = $hash; - $result.$chainForward = null; - $result.$chainBackward = null; - $result.$next1 = $this.$elementData.data[$index]; - $this.$elementData.data[$index] = $result; - ju_LinkedHashMap_linkEntry($this, $result); - $m = $result; - } - } else { - $key = $this.$elementData.data[0]; - while ($key !== null && $key.$key !== null) { - $key = $key.$next1; - } - $m = $key; - if ($m !== null) - ju_LinkedHashMap_linkEntry($this, $m); - else { - $this.$modCount1 = $this.$modCount1 + 1 | 0; - $index = $this.$elementCount + 1 | 0; - $this.$elementCount = $index; - if ($index > $this.$threshold) - ju_HashMap_rehash($this, $this.$elementData.data.length); - $result = null; - $key = new ju_LinkedHashMap$LinkedHashMapEntry; - $m = null; - $key.$key = $result; - $key.$value0 = $m; - $key.$origKeyHash = 0; - $key.$chainForward = null; - $key.$chainBackward = null; - $key.$next1 = $this.$elementData.data[0]; - $this.$elementData.data[0] = $key; - ju_LinkedHashMap_linkEntry($this, $key); - $m = $key; - } - } - $result = $m.$value0; - $m.$value0 = $value; - return $result; -} -function ju_LinkedHashMap_linkEntry($this, $m) { - var $p, $n; - if ($this.$tail === $m) - return; - if ($this.$head4 === null) { - $this.$head4 = $m; - $this.$tail = $m; - return; - } - $p = $m.$chainBackward; - $n = $m.$chainForward; - if ($p !== null) { - if ($n === null) - return; - if ($this.$accessOrder) { - $p.$chainForward = $n; - $n.$chainBackward = $p; - $m.$chainForward = null; - $m.$chainBackward = $this.$tail; - $this.$tail.$chainForward = $m; - $this.$tail = $m; - } - return; - } - if ($n === null) { - $m.$chainBackward = $this.$tail; - $m.$chainForward = null; - $this.$tail.$chainForward = $m; - $this.$tail = $m; - } else if ($this.$accessOrder) { - $this.$head4 = $n; - $n.$chainBackward = null; - $m.$chainBackward = $this.$tail; - $m.$chainForward = null; - $this.$tail.$chainForward = $m; - $this.$tail = $m; - } -} -function ju_LinkedHashMap_keySet($this) { - var var$1; - if ($this.$cachedKeySet === null) { - var$1 = new ju_LinkedHashMap$1; - var$1.$this$07 = $this; - $this.$cachedKeySet = var$1; - } - return $this.$cachedKeySet; -} -function ju_LinkedHashMap_values($this) { - var var$1; - if ($this.$cachedValues === null) { - var$1 = new ju_LinkedHashMap$2; - var$1.$this$06 = $this; - $this.$cachedValues = var$1; - } - return $this.$cachedValues; -} -function ju_LinkedHashMap_remove($this, $key) { - var $m, $p, $n; - $m = ju_HashMap_removeEntry($this, $key); - if ($m === null) - return null; - $p = $m.$chainBackward; - $n = $m.$chainForward; - if ($p === null) - $this.$head4 = $n; - else - $p.$chainForward = $n; - if ($n === null) - $this.$tail = $p; - else - $n.$chainBackward = $p; - return $m.$value0; -} -function ju_LinkedHashMap_removeEldestEntry($this, $eldest) { - return 0; -} -function ju_LinkedHashMap_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; - } - $this.$head4 = null; - $this.$tail = null; -} -function nms_EntityMinecartEmpty() { - nms_EntityMinecart.call(this); -} -function nms_EntityMinecartEmpty_interact($this, $par1EntityPlayer) { - if ($this.$riddenByEntity !== null && $this.$riddenByEntity instanceof nms_EntityPlayer && $this.$riddenByEntity !== $par1EntityPlayer) - return 1; - if ($this.$riddenByEntity !== null && $this.$riddenByEntity !== $par1EntityPlayer) - return 0; - if (!$this.$worldObj.$isRemote) - nms_EntityPlayer_mountEntity($par1EntityPlayer, $this); - return 1; -} -function nms_EntityMinecartEmpty_getMinecartType($this) { - return 0; -} -function nms_EntityMinecartContainer() { - var a = this; nms_EntityMinecart.call(a); - a.$minecartContainerItems = null; - a.$dropContentsWhenDead = 0; -} -function nms_EntityMinecartContainer_killMinecart($this, $par1DamageSource) { - var $var3, var$3, $var2, $var8, $var4, $var5, $var6, var$9, var$10, var$11, $var7, var$13, var$14, var$15, var$16, var$17, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();$var7 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var8 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();$var3 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityMinecartContainer_setDead($this); - if ($rt_suspending()) { - break main; - } - $var3 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_minecartEmpty.$itemID; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$3; - $var3.$stackSize = 1; - $var3.$itemDamage = 0; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($this.$entityName !== null) - nms_ItemStack_setItemName($var3, $this.$entityName); - $par1DamageSource = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject($par1DamageSource.$dataWatcher, 10, $var3); - nms_DataWatcher_setObjectWatched($par1DamageSource.$dataWatcher, 10); - $par1DamageSource.$delayBeforeCanPickup = 10; - $var3 = $this.$worldObj; - $var2 = nms_World_spawnEntityInWorld($var3, $par1DamageSource); - $var8 = $var3.$entityList; - ju_HashMap_putImpl($var8.$backingMap, $par1DamageSource, $var8); - if (!$var2) { - $var3 = $var3.$entitySpawnQueue; - ju_HashMap_putImpl($var3.$backingMap, $par1DamageSource, $var3); - } - $var2 = 0; - while ($var2 < $this.$getSizeInventory()) { - a: { - $var3 = $this.$minecartContainerItems.data[$var2]; - if ($var3 !== null) { - $var4 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var5 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var6 = Math.random() * 0.800000011920929 + 0.10000000149011612; - var$9 = $var4; - var$10 = $var5; - var$11 = $var6; - while (true) { - if ($var3.$stackSize <= 0) - break a; - $var7 = (Math.random() * 21.0 | 0) + 10 | 0; - if ($var7 > $var3.$stackSize) - $var7 = $var3.$stackSize; - $var3.$stackSize = $var3.$stackSize - $var7 | 0; - $var8 = new nms_EntityItem; - $par1DamageSource = $this.$worldObj; - var$13 = $this.$posX + var$9; - var$14 = $this.$posY + var$10; - var$15 = $this.$posZ + var$11; - var$16 = new nms_ItemStack; - var$3 = $var3.$itemID0; - var$17 = $var3.$itemDamage; - var$16.$stackSize = 0; - var$16.$itemFrame = null; - var$16.$itemID0 = var$3; - var$16.$stackSize = $var7; - var$16.$itemDamage = var$17; - if (var$16.$itemDamage < 0) - var$16.$itemDamage = 0; - nms_EntityItem__init_2($var8, $par1DamageSource, var$13, var$14, var$15); - nms_DataWatcher_updateObject($var8.$dataWatcher, 10, var$16); - nms_DataWatcher_setObjectWatched($var8.$dataWatcher, 10); - $var8.$motionX = ju_Random_nextGaussian($this.$rand0) * 0.05000000074505806; - $var8.$motionY = ju_Random_nextGaussian($this.$rand0) * 0.05000000074505806 + 0.20000000298023224; - $var8.$motionZ = ju_Random_nextGaussian($this.$rand0) * 0.05000000074505806; - $par1DamageSource = $this.$worldObj; - $var7 = nms_World_spawnEntityInWorld($par1DamageSource, $var8); - var$16 = $par1DamageSource.$entityList; - ju_HashMap_putImpl(var$16.$backingMap, $var8, var$16); - if (!$var7) { - $par1DamageSource = $par1DamageSource.$entitySpawnQueue; - ju_HashMap_putImpl($par1DamageSource.$backingMap, $var8, $par1DamageSource); - } - } - } - } - $var2 = $var2 + 1 | 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $var3, var$3, $var2, $var8, $var4, $var5, $var6, var$9, var$10, var$11, $var7, var$13, var$14, var$15, var$16, var$17, $ptr); -} -function nms_EntityMinecartContainer_getStackInSlot($this, $par1) { - return $this.$minecartContainerItems.data[$par1]; -} -function nms_EntityMinecartContainer_decrStackSize($this, $par1, $par2) { - var $var3; - if ($this.$minecartContainerItems.data[$par1] === null) - return null; - if ($this.$minecartContainerItems.data[$par1].$stackSize <= $par2) { - $var3 = $this.$minecartContainerItems.data[$par1]; - $this.$minecartContainerItems.data[$par1] = null; - return $var3; - } - $var3 = nms_ItemStack_splitStack($this.$minecartContainerItems.data[$par1], $par2); - if (!$this.$minecartContainerItems.data[$par1].$stackSize) - $this.$minecartContainerItems.data[$par1] = null; - return $var3; -} -function nms_EntityMinecartContainer_setInventorySlotContents($this, $par1, $par2ItemStack) { - $this.$minecartContainerItems.data[$par1] = $par2ItemStack; - if ($par2ItemStack !== null && $par2ItemStack.$stackSize > 64) - $par2ItemStack.$stackSize = 64; -} -function nms_EntityMinecartContainer_onInventoryChanged($this) { - return; -} -function nms_EntityMinecartContainer_isUseableByPlayer($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - if ($this.$isDead) - var$2 = 0; - else { - var$3 = $par1EntityPlayer.$posX - $this.$posX; - var$4 = $par1EntityPlayer.$posY - $this.$posY; - var$5 = $par1EntityPlayer.$posZ - $this.$posZ; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -} -function nms_EntityMinecartContainer_openChest($this) { - return; -} -function nms_EntityMinecartContainer_closeChest($this) { - return; -} -$java.nms_EntityMinecartContainer_isStackValidForSlot = function($this, $par1, $par2ItemStack) { - return 1; -}; -$java.nms_EntityMinecartContainer_getInvName = function($this) { - return !($this.$entityName === null ? 0 : 1) ? $rt_s(2188) : $this.$entityName; -}; -$java.nms_EntityMinecartContainer_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_EntityMinecartContainer_travelToDimension = function($this, $par1) { - $this.$dropContentsWhenDead = 0; -}; -function nms_EntityMinecartContainer_setDead($this) { - var $var1, $var2, $var3, $var4, $var5, var$6, var$7, var$8, $var6, $var7, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, var$19, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($this.$dropContentsWhenDead) { - $var1 = 0; - while (true) { - if ($var1 >= $this.$getSizeInventory()) - break a; - b: { - $var2 = $this.$minecartContainerItems.data[$var1]; - if ($var2 !== null) { - $var3 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var4 = Math.random() * 0.800000011920929 + 0.10000000149011612; - $var5 = Math.random() * 0.800000011920929 + 0.10000000149011612; - var$6 = $var3; - var$7 = $var4; - var$8 = $var5; - while (true) { - if ($var2.$stackSize <= 0) - break b; - $var6 = (Math.random() * 21.0 | 0) + 10 | 0; - if ($var6 > $var2.$stackSize) - $var6 = $var2.$stackSize; - $var2.$stackSize = $var2.$stackSize - $var6 | 0; - $var7 = new nms_EntityItem; - var$11 = $this.$worldObj; - var$12 = $this.$posX + var$6; - var$13 = $this.$posY + var$7; - var$14 = $this.$posZ + var$8; - var$15 = new nms_ItemStack; - var$16 = $var2.$itemID0; - var$17 = $var2.$itemDamage; - var$15.$stackSize = 0; - var$15.$itemFrame = null; - var$15.$itemID0 = var$16; - var$15.$stackSize = $var6; - var$15.$itemDamage = var$17; - if (var$15.$itemDamage < 0) - var$15.$itemDamage = 0; - nms_EntityItem__init_2($var7, var$11, var$12, var$13, var$14); - nms_DataWatcher_updateObject($var7.$dataWatcher, 10, var$15); - nms_DataWatcher_setObjectWatched($var7.$dataWatcher, 10); - if ($var2.$stackTagCompound === null ? 0 : 1) - nms_EntityItem_getEntityItem($var7).$stackTagCompound = nms_NBTTagCompound_copy($var2.$stackTagCompound); - $var7.$motionX = ju_Random_nextGaussian($this.$rand0) * 0.05000000074505806; - $var7.$motionY = ju_Random_nextGaussian($this.$rand0) * 0.05000000074505806 + 0.20000000298023224; - $var7.$motionZ = ju_Random_nextGaussian($this.$rand0) * 0.05000000074505806; - var$18 = $this.$worldObj; - var$19 = nms_World_spawnEntityInWorld(var$18, $var7); - var$11 = var$18.$entityList; - ju_HashMap_putImpl(var$11.$backingMap, $var7, var$11); - if (!var$19) { - var$18 = var$18.$entitySpawnQueue; - ju_HashMap_putImpl(var$18.$backingMap, $var7, var$18); - } - } - } - } - $var1 = $var1 + 1 | 0; - } - } - } - $this.$isDead = 1; - if ($this.$field_82344_g === null) - return; - var$18 = $this.$field_82344_g; - $ptr = 1; - case 1: - nms_SoundUpdaterMinecart_update(var$18); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var3, $var4, $var5, var$6, var$7, var$8, $var6, $var7, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18, var$19, $ptr); -} -$java.nms_EntityMinecartContainer_interact = function($this, $par1EntityPlayer) { - 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();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$worldObj.$isRemote) - return 1; - var$2 = $par1EntityPlayer.$mc3; - var$3 = new nms_GuiChest; - $par1EntityPlayer = $par1EntityPlayer.$inventory; - $ptr = 1; - case 1: - nms_GuiChest__init_(var$3, $par1EntityPlayer, $this); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, var$2, var$3, $ptr); -}; -$java.nms_EntityMinecartContainer_applyDrag = function($this) { - var $var2, var$2, var$3; - $var2 = 0.9800000190734863 + (15 - nms_Container_calcRedstoneFromInventory($this) | 0) * 0.0010000000474974513; - var$2 = $this.$motionX; - var$3 = $var2; - $this.$motionX = var$2 * var$3; - $this.$motionY = $this.$motionY * 0.0; - $this.$motionZ = $this.$motionZ * var$3; -}; -function nms_EntityMinecartChest() { - nms_EntityMinecartContainer.call(this); -} -$java.nms_EntityMinecartChest_killMinecart = function($this, $par1DamageSource) { - var var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityMinecartContainer_killMinecart($this, $par1DamageSource); - if ($rt_suspending()) { - break main; - } - nms_Block_$callClinit(); - var$2 = nms_Block_chest.$blockID; - $par1DamageSource = new nms_ItemStack; - $par1DamageSource.$stackSize = 0; - $par1DamageSource.$itemFrame = null; - $par1DamageSource.$itemID0 = var$2; - $par1DamageSource.$stackSize = 1; - $par1DamageSource.$itemDamage = 0; - if ($par1DamageSource.$itemDamage < 0) - $par1DamageSource.$itemDamage = 0; - var$3 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$3.$dataWatcher, 10, $par1DamageSource); - nms_DataWatcher_setObjectWatched(var$3.$dataWatcher, 10); - var$3.$delayBeforeCanPickup = 10; - $par1DamageSource = $this.$worldObj; - var$4 = nms_World_spawnEntityInWorld($par1DamageSource, var$3); - var$5 = $par1DamageSource.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$3, var$5); - if (!var$4) { - $par1DamageSource = $par1DamageSource.$entitySpawnQueue; - ju_HashMap_putImpl($par1DamageSource.$backingMap, var$3, $par1DamageSource); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, var$2, var$3, var$4, var$5, $ptr); -}; -$java.nms_EntityMinecartChest_getSizeInventory = function($this) { - return 27; -}; -$java.nms_EntityMinecartChest_getMinecartType = function($this) { - return 1; -}; -$java.nms_EntityMinecartChest_getDefaultDisplayTile = function($this) { - nms_Block_$callClinit(); - return nms_Block_chest; -}; -$java.nms_EntityMinecartChest_getDefaultDisplayTileOffset = function($this) { - return 8; -}; -function nms_EntityMinecartFurnace() { - var a = this; nms_EntityMinecart.call(a); - a.$fuel = 0; - a.$pushX = 0.0; - a.$pushZ = 0.0; -} -$java.nms_EntityMinecartFurnace_getMinecartType = function($this) { - return 2; -}; -$java.nms_EntityMinecartFurnace_entityInit = function($this) { - var var$1, var$2; - nms_EntityMinecart_entityInit($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_addObject(var$1, 16, var$2); -}; -$java.nms_EntityMinecartFurnace_onUpdate = function($this) { - var var$1, var$2, var$3, var$4, var$5, 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();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: - $ptr = 1; - case 1: - nms_EntityMinecart_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if ($this.$fuel > 0) - $this.$fuel = $this.$fuel - 1 | 0; - if ($this.$fuel <= 0) { - $this.$pushZ = 0.0; - $this.$pushX = 0.0; - } - $java.nms_EntityMinecartFurnace_setMinecartPowered($this, $this.$fuel <= 0 ? 0 : 1); - var$1 = !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; - if (var$1 && !(Math.random() * 4.0 | 0)) { - var$2 = $this.$worldObj; - var$3 = $rt_s(715); - var$4 = $this.$posX; - var$5 = $this.$posY + 0.8; - var$6 = $this.$posZ; - var$7 = 0.0; - var$8 = 0.0; - var$9 = 0.0; - var$10 = 0; - if (var$10 < var$2.$worldAccesses.$size0) { - var$11 = var$2.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - $ptr = 2; - continue main; - } - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$11, var$3, var$4, var$5, var$6, var$7, var$8, var$9); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - if (var$10 >= var$2.$worldAccesses.$size0) - return; - var$11 = var$2.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - continue main; - } - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -}; -$java.nms_EntityMinecartFurnace_killMinecart = function($this, $par1DamageSource) { - var 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();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$isDead = 1; - if ($this.$field_82344_g === null) { - var$2 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_minecartEmpty.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - if ($this.$entityName !== null) - nms_ItemStack_setItemName(var$2, $this.$entityName); - var$4 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$4.$dataWatcher, 10, var$2); - nms_DataWatcher_setObjectWatched(var$4.$dataWatcher, 10); - var$4.$delayBeforeCanPickup = 10; - var$2 = $this.$worldObj; - var$5 = nms_World_spawnEntityInWorld(var$2, var$4); - var$6 = var$2.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, var$4, var$6); - if (!var$5) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, var$4, var$2); - } - if (!$par1DamageSource.$explosion) { - var$2 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_furnaceIdle.$blockID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - $par1DamageSource = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject($par1DamageSource.$dataWatcher, 10, var$2); - nms_DataWatcher_setObjectWatched($par1DamageSource.$dataWatcher, 10); - $par1DamageSource.$delayBeforeCanPickup = 10; - var$2 = $this.$worldObj; - var$5 = nms_World_spawnEntityInWorld(var$2, $par1DamageSource); - var$4 = var$2.$entityList; - ju_HashMap_putImpl(var$4.$backingMap, $par1DamageSource, var$4); - if (!var$5) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, $par1DamageSource, var$2); - } - } - return; - } - var$2 = $this.$field_82344_g; - $ptr = 1; - case 1: - nms_SoundUpdaterMinecart_update(var$2); - if ($rt_suspending()) { - break main; - } - var$2 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_minecartEmpty.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - if ($this.$entityName !== null) - nms_ItemStack_setItemName(var$2, $this.$entityName); - var$4 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$4.$dataWatcher, 10, var$2); - nms_DataWatcher_setObjectWatched(var$4.$dataWatcher, 10); - var$4.$delayBeforeCanPickup = 10; - var$2 = $this.$worldObj; - var$5 = nms_World_spawnEntityInWorld(var$2, var$4); - var$6 = var$2.$entityList; - ju_HashMap_putImpl(var$6.$backingMap, var$4, var$6); - if (!var$5) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, var$4, var$2); - } - if (!$par1DamageSource.$explosion) { - var$2 = new nms_ItemStack; - nms_Block_$callClinit(); - var$3 = nms_Block_furnaceIdle.$blockID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - $par1DamageSource = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject($par1DamageSource.$dataWatcher, 10, var$2); - nms_DataWatcher_setObjectWatched($par1DamageSource.$dataWatcher, 10); - $par1DamageSource.$delayBeforeCanPickup = 10; - var$2 = $this.$worldObj; - var$5 = nms_World_spawnEntityInWorld(var$2, $par1DamageSource); - var$4 = var$2.$entityList; - ju_HashMap_putImpl(var$4.$backingMap, $par1DamageSource, var$4); - if (!var$5) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, $par1DamageSource, var$2); - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, var$2, var$3, var$4, var$5, var$6, $ptr); -}; -$java.nms_EntityMinecartFurnace_updateOnTrack = function($this, $par1, $par2, $par3, $par4, $par6, $par8, $par9) { - var $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$par9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $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: - nms_EntityMinecart_updateOnTrack($this, $par1, $par2, $par3, $par4, $par6, $par8, $par9); - if ($rt_suspending()) { - break main; - } - $var10 = $this.$pushX * $this.$pushX + $this.$pushZ * $this.$pushZ; - if ($var10 > 1.0E-4 && $this.$motionX * $this.$motionX + $this.$motionZ * $this.$motionZ > 0.001) { - $par4 = jl_Math_sqrt($var10); - $this.$pushX = $this.$pushX / $par4; - $this.$pushZ = $this.$pushZ / $par4; - if ($this.$pushX * $this.$motionX + $this.$pushZ * $this.$motionZ >= 0.0) { - $this.$pushX = $this.$motionX; - $this.$pushZ = $this.$motionZ; - } else { - $this.$pushX = 0.0; - $this.$pushZ = 0.0; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par6, $par8, $par9, $var10, $ptr); -}; -$java.nms_EntityMinecartFurnace_applyDrag = function($this) { - var $var1; - $var1 = $this.$pushX * $this.$pushX + $this.$pushZ * $this.$pushZ; - if ($var1 <= 1.0E-4) { - $this.$motionX = $this.$motionX * 0.9800000190734863; - $this.$motionY = $this.$motionY * 0.0; - $this.$motionZ = $this.$motionZ * 0.9800000190734863; - } else { - $var1 = jl_Math_sqrt($var1); - $this.$pushX = $this.$pushX / $var1; - $this.$pushZ = $this.$pushZ / $var1; - $this.$motionX = $this.$motionX * 0.800000011920929; - $this.$motionY = $this.$motionY * 0.0; - $this.$motionZ = $this.$motionZ * 0.800000011920929; - $this.$motionX = $this.$motionX + $this.$pushX * 0.05; - $this.$motionZ = $this.$motionZ + $this.$pushZ * 0.05; - } - nms_EntityMinecart_applyDrag($this); -}; -$java.nms_EntityMinecartFurnace_interact = function($this, $par1EntityPlayer) { - var $var2, var$3, var$4, var$5, var$6; - $var2 = nms_InventoryPlayer_getCurrentItem($par1EntityPlayer.$inventory); - if ($var2 !== null) { - var$3 = $var2.$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_coal.$itemID) { - var$3 = $var2.$stackSize - 1 | 0; - $var2.$stackSize = var$3; - if (!var$3) { - $var2 = $par1EntityPlayer.$inventory; - var$3 = $par1EntityPlayer.$inventory.$currentItem; - var$4 = null; - var$5 = $var2.$mainInventory; - var$6 = var$5.data.length; - if (var$3 >= var$6) { - var$3 = var$3 - var$6 | 0; - var$5 = $var2.$armorInventory; - } - var$5.data[var$3] = var$4; - } - $this.$fuel = $this.$fuel + 3600 | 0; - } - } - $this.$pushX = $this.$posX - $par1EntityPlayer.$posX; - $this.$pushZ = $this.$posZ - $par1EntityPlayer.$posZ; - return 1; -}; -$java.nms_EntityMinecartFurnace_isMinecartPowered = function($this) { - return !(nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & 1) ? 0 : 1; -}; -$java.nms_EntityMinecartFurnace_setMinecartPowered = function($this, $par1) { - var var$2, var$3, var$4; - if (!$par1) { - var$2 = $this.$dataWatcher; - var$3 = (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) & (-2)) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = var$3; - nms_DataWatcher_updateObject(var$2, 16, var$4); - } else { - var$2 = $this.$dataWatcher; - var$3 = (nms_DataWatcher_getWatchableObjectByte($this.$dataWatcher, 16) | 1) << 24 >> 24; - var$4 = new jl_Byte; - var$4.$value4 = var$3; - nms_DataWatcher_updateObject(var$2, 16, var$4); - } -}; -$java.nms_EntityMinecartFurnace_getDefaultDisplayTile = function($this) { - nms_Block_$callClinit(); - return nms_Block_furnaceBurning; -}; -$java.nms_EntityMinecartFurnace_getDefaultDisplayTileData = function($this) { - return 2; -}; -$java.nms_Hopper = function() { -}; -function nms_EntityMinecartHopper() { - var a = this; nms_EntityMinecartContainer.call(a); - a.$isBlocked = 0; - a.$transferTicker = 0; -} -$java.nms_EntityMinecartHopper_getMinecartType = function($this) { - return 5; -}; -$java.nms_EntityMinecartHopper_getDefaultDisplayTile = function($this) { - nms_Block_$callClinit(); - return nms_Block_hopperBlock; -}; -$java.nms_EntityMinecartHopper_getDefaultDisplayTileOffset = function($this) { - return 1; -}; -$java.nms_EntityMinecartHopper_getSizeInventory = function($this) { - return 5; -}; -$java.nms_EntityMinecartHopper_interact = function($this, $par1EntityPlayer) { - 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();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$worldObj.$isRemote) - return 1; - var$2 = $par1EntityPlayer.$mc3; - var$3 = new nms_GuiHopper; - $par1EntityPlayer = $par1EntityPlayer.$inventory; - nms_GuiContainer__init_(var$3, nms_ContainerHopper__init_($par1EntityPlayer, $this)); - var$3.$field_94081_r = $par1EntityPlayer; - var$3.$field_94080_s = $this; - var$3.$allowUserInput = 0; - var$3.$ySize0 = 133; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, var$2, var$3, $ptr); -}; -$java.nms_EntityMinecartHopper_onActivatorRailPass = function($this, $par1, $par2, $par3, $par4) { - var $var5; - $var5 = $par4 ? 0 : 1; - if ($var5 != $this.$isBlocked) - $this.$isBlocked = $var5; -}; -$java.nms_EntityMinecartHopper_getBlocked = function($this) { - return $this.$isBlocked; -}; -$java.nms_EntityMinecartHopper_setBlocked = function($this, $par1) { - $this.$isBlocked = $par1; -}; -$java.nms_EntityMinecartHopper_getWorldObj = function($this) { - return $this.$worldObj; -}; -$java.nms_EntityMinecartHopper_getXPos = function($this) { - return $this.$posX; -}; -$java.nms_EntityMinecartHopper_getYPos = function($this) { - return $this.$posY; -}; -$java.nms_EntityMinecartHopper_getZPos = function($this) { - return $this.$posZ; -}; -$java.nms_EntityMinecartHopper_onUpdate = function($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: - $ptr = 1; - case 1: - nms_EntityMinecart_onUpdate($this); - if ($rt_suspending()) { - break main; - } - if (!$this.$worldObj.$isRemote && ($this.$isDead ? 0 : 1) && $this.$isBlocked) { - $this.$transferTicker = $this.$transferTicker - 1 | 0; - if (!($this.$transferTicker <= 0 ? 0 : 1)) { - $this.$transferTicker = 0; - $ptr = 2; - continue main; - } - } - return; - case 2: - $tmp = $java.nms_EntityMinecartHopper_func_96112_aD($this); - if ($rt_suspending()) { - break main; - } - var$1 = $tmp; - if (var$1) - $this.$transferTicker = 4; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -}; -$java.nms_EntityMinecartHopper_func_96112_aD = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $var1, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var1 = $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();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: - $ptr = 1; - case 1: - $tmp = $java.nms_TileEntityHopper_suckItemsIntoHopper($this); - if ($rt_suspending()) { - break main; - } - var$1 = $tmp; - if (var$1) - return 1; - var$2 = $this.$worldObj; - var$3 = $this.$boundingBox; - var$4 = var$3.$minX - 0.25; - var$5 = var$3.$minY - 0.0; - var$6 = var$3.$minZ - 0.25; - var$7 = var$3.$maxX + 0.25; - var$8 = var$3.$maxY + 0.0; - var$9 = var$3.$maxZ + 0.25; - var$3 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$3.$initialized) { - var$10 = new nms_AABBPool; - var$11 = new ju_ArrayList; - ju_AbstractList__init_0(var$11); - var$11.$array1 = $rt_createArray(jl_Object, 10); - var$10.$listAABB = var$11; - var$10.$nextPoolIndex = 0; - var$10.$maxPoolIndex = 0; - var$10.$numCleans = 0; - var$10.$maxNumCleans = 300; - var$10.$numEntriesToRemove = 2000; - var$3.$value7 = var$10; - var$3.$initialized = 1; - } - $var1 = nms_World_selectEntitiesWithinAABB(var$2, $rt_cls(nms_EntityItem), nms_AABBPool_getAABB(var$3.$value7, var$4, var$5, var$6, var$7, var$8, var$9), $java.nms_IEntitySelector_selectAnything); - if ($var1.$size0 <= 0) - return 0; - if (0 >= $var1.$size0) { - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - } - $var1 = $var1.$array1.data[0]; - $ptr = 2; - case 2: - $java.nms_TileEntityHopper_func_96114_a($this, $var1); - if ($rt_suspending()) { - break main; - } - return 0; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $var1, $ptr); -}; -$java.nms_EntityMinecartHopper_killMinecart = function($this, $par1DamageSource) { - var var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_EntityMinecartContainer_killMinecart($this, $par1DamageSource); - if ($rt_suspending()) { - break main; - } - nms_Block_$callClinit(); - var$2 = nms_Block_hopperBlock.$blockID; - $par1DamageSource = new nms_ItemStack; - $par1DamageSource.$stackSize = 0; - $par1DamageSource.$itemFrame = null; - $par1DamageSource.$itemID0 = var$2; - $par1DamageSource.$stackSize = 1; - $par1DamageSource.$itemDamage = 0; - if ($par1DamageSource.$itemDamage < 0) - $par1DamageSource.$itemDamage = 0; - var$3 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$3.$dataWatcher, 10, $par1DamageSource); - nms_DataWatcher_setObjectWatched(var$3.$dataWatcher, 10); - var$3.$delayBeforeCanPickup = 10; - $par1DamageSource = $this.$worldObj; - var$4 = nms_World_spawnEntityInWorld($par1DamageSource, var$3); - var$5 = $par1DamageSource.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$3, var$5); - if (!var$4) { - $par1DamageSource = $par1DamageSource.$entitySpawnQueue; - ju_HashMap_putImpl($par1DamageSource.$backingMap, var$3, $par1DamageSource); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, var$2, var$3, var$4, var$5, $ptr); -}; -$java.nms_EntityMinecartHopper_setTransferTicker = function($this, $par1) { - $this.$transferTicker = $par1; -}; -$java.nms_EntityMinecartHopper_canTransfer = function($this) { - return $this.$transferTicker <= 0 ? 0 : 1; -}; -function nms_EntityPigZombie() { - var a = this; nms_EntityZombie.call(a); - a.$angerLevel = 0; - a.$randomSoundDelay = 0; -} -$java.nms_EntityPigZombie__init_ = function() { - var var_0 = new nms_EntityPigZombie(); - nms_EntityPigZombie__init_(var_0); - return var_0; -}; -function nms_EntityPigZombie__init_($this) { - nms_EntityLiving__init_0($this); - $this.$hasAttacked = 0; - $this.$fleeingTick = 0; - $this.$experienceValue = 5; - $this.$conversionTime = 0; - $this.$moveSpeed = 0.23000000417232513; - $this.$angerLevel = 0; - $this.$randomSoundDelay = 0; - $this.$moveSpeed = 0.5; - $this.$isImmuneToFire = 1; -} -$java.nms_EntityPigZombie_isAIEnabled = function($this) { - return 0; -}; -$java.nms_EntityPigZombie_onUpdate = function($this) { - var var$1, var$2, $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.$moveSpeed = $this.$entityToAttack === null ? 0.5 : 0.949999988079071; - if ($this.$randomSoundDelay > 0) { - var$1 = $this.$randomSoundDelay - 1 | 0; - $this.$randomSoundDelay = var$1; - if (!var$1) { - var$2 = ((Math.random() - Math.random()) * 0.20000000298023224 + 1.0) * 1.7999999523162842; - nms_World_playSoundAtEntity($this.$worldObj, $this, $rt_s(2189), 2.0, var$2); - } - } - $ptr = 1; - case 1: - nms_EntityZombie_onUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, $ptr); -}; -$java.nms_EntityPigZombie_findPlayerToAttack = function($this) { - var var$1; - if (!$this.$angerLevel) - var$1 = null; - else { - var$1 = nms_World_getClosestVulnerablePlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 16.0); - if (!(var$1 !== null && nms_EntityLiving_canEntityBeSeen($this, var$1))) - var$1 = null; - } - return var$1; -}; -$java.nms_EntityPigZombie_attackEntityFrom = function($this, $par1DamageSource, $par2) { - var $var3, $var4, $var6, var$6, var$7, var$8, var$9, var$10, var$11, $var7, var$13, $var5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var5 = $thread.pop();var$13 = $thread.pop();$var7 = $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();$var6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - a: { - $var3 = $par1DamageSource.$getEntity(); - if ($var3 instanceof nms_EntityPlayer) { - $var4 = $this.$worldObj; - $var6 = $this.$boundingBox; - var$6 = $var6.$minX - 32.0; - var$7 = $var6.$minY - 32.0; - var$8 = $var6.$minZ - 32.0; - var$9 = $var6.$maxX + 32.0; - var$10 = $var6.$maxY + 32.0; - var$11 = $var6.$maxZ + 32.0; - $var6 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var6.$initialized) { - $var7 = new nms_AABBPool; - var$13 = new ju_ArrayList; - ju_AbstractList__init_0(var$13); - var$13.$array1 = $rt_createArray(jl_Object, 10); - $var7.$listAABB = var$13; - $var7.$nextPoolIndex = 0; - $var7.$maxPoolIndex = 0; - $var7.$numCleans = 0; - $var7.$maxNumCleans = 300; - $var7.$numEntriesToRemove = 2000; - $var6.$value7 = $var7; - $var6.$initialized = 1; - } - $var4 = nms_World_getEntitiesWithinAABBExcludingEntity($var4, $this, nms_AABBPool_getAABB($var6.$value7, var$6, var$7, var$8, var$9, var$10, var$11), null); - $var5 = 0; - while (true) { - if ($var5 >= $var4.$size0) { - $this.$entityToAttack = $var3; - $this.$angerLevel = 400 + (Math.random() * 400.0 | 0) | 0; - $this.$randomSoundDelay = Math.random() * 40.0 | 0; - break a; - } - if ($var5 < 0) - break; - if ($var5 >= $var4.$size0) - break; - $var6 = $var4.$array1.data[$var5]; - if ($var6 instanceof nms_EntityPigZombie) { - $var7 = $var6; - $var7.$entityToAttack = $var3; - $var7.$angerLevel = 400 + (Math.random() * 400.0 | 0) | 0; - $var7.$randomSoundDelay = Math.random() * 40.0 | 0; - } - $var5 = $var5 + 1 | 0; - } - $par1DamageSource = new jl_IndexOutOfBoundsException; - $par1DamageSource.$suppressionEnabled = 1; - $par1DamageSource.$writableStackTrace = 1; - $rt_throw($par1DamageSource); - } - } - $ptr = 1; - case 1: - $tmp = nms_EntityMob_attackEntityFrom($this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, $var3, $var4, $var6, var$6, var$7, var$8, var$9, var$10, var$11, $var7, var$13, $var5, $ptr); -}; -$java.nms_EntityPigZombie_getLivingSound = function($this) { - return $rt_s(2190); -}; -$java.nms_EntityPigZombie_getHurtSound = function($this) { - return $rt_s(2191); -}; -$java.nms_EntityPigZombie_getDeathSound = function($this) { - return $rt_s(2192); -}; -$java.nms_EntityPigZombie_dropFewItems = function($this, $par1, $par2) { - var var$3, var$4, $var3, $var4, var$7, var$8, var$9, var$10; - $par1 = 2 + $par2 | 0; - var$3 = Math.random(); - var$4 = $par1; - $var3 = var$3 * var$4 | 0; - $var4 = 0; - while ($var4 < $var3) { - nms_Item_$callClinit(); - $par1 = nms_Item_rottenFlesh.$itemID; - var$7 = new nms_ItemStack; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = $par1; - var$7.$stackSize = 1; - var$7.$itemDamage = 0; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - var$8 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$8.$dataWatcher, 10, var$7); - nms_DataWatcher_setObjectWatched(var$8.$dataWatcher, 10); - var$8.$delayBeforeCanPickup = 10; - var$7 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$7, var$8); - var$9 = var$7.$entityList; - ju_HashMap_putImpl(var$9.$backingMap, var$8, var$9); - if (!$par1) { - var$7 = var$7.$entitySpawnQueue; - ju_HashMap_putImpl(var$7.$backingMap, var$8, var$7); - } - $var4 = $var4 + 1 | 0; - } - var$10 = Math.random() * var$4 | 0; - $par1 = 0; - while ($par1 < var$10) { - nms_Item_$callClinit(); - $par2 = nms_Item_goldNugget.$itemID; - var$7 = new nms_ItemStack; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = $par2; - var$7.$stackSize = 1; - var$7.$itemDamage = 0; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - var$8 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$8.$dataWatcher, 10, var$7); - nms_DataWatcher_setObjectWatched(var$8.$dataWatcher, 10); - var$8.$delayBeforeCanPickup = 10; - var$7 = $this.$worldObj; - $par2 = nms_World_spawnEntityInWorld(var$7, var$8); - var$9 = var$7.$entityList; - ju_HashMap_putImpl(var$9.$backingMap, var$8, var$9); - if (!$par2) { - var$7 = var$7.$entitySpawnQueue; - ju_HashMap_putImpl(var$7.$backingMap, var$8, var$7); - } - $par1 = $par1 + 1 | 0; - } -}; -$java.nms_EntityPigZombie_interact = function($this, $par1EntityPlayer) { - return 0; -}; -$java.nms_EntityPigZombie_dropRareDrop = function($this, $par1) { - var var$2, var$3, var$4, var$5; - nms_Item_$callClinit(); - var$2 = nms_Item_ingotGold.$itemID; - var$3 = new nms_ItemStack; - var$3.$stackSize = 0; - var$3.$itemFrame = null; - var$3.$itemID0 = var$2; - var$3.$stackSize = 1; - var$3.$itemDamage = 0; - if (var$3.$itemDamage < 0) - var$3.$itemDamage = 0; - var$4 = nms_EntityItem__init_0($this.$worldObj, $this.$posX, $this.$posY + 0.0, $this.$posZ); - nms_DataWatcher_updateObject(var$4.$dataWatcher, 10, var$3); - nms_DataWatcher_setObjectWatched(var$4.$dataWatcher, 10); - var$4.$delayBeforeCanPickup = 10; - var$3 = $this.$worldObj; - $par1 = nms_World_spawnEntityInWorld(var$3, var$4); - var$5 = var$3.$entityList; - ju_HashMap_putImpl(var$5.$backingMap, var$4, var$5); - if (!$par1) { - var$3 = var$3.$entitySpawnQueue; - ju_HashMap_putImpl(var$3.$backingMap, var$4, var$3); - } -}; -$java.nms_EntityPigZombie_getDropItemId = function($this) { - nms_Item_$callClinit(); - return nms_Item_rottenFlesh.$itemID; -}; -$java.nms_EntityPigZombie_addRandomArmor = function($this) { - var var$1, var$2; - var$1 = new nms_ItemStack; - nms_Item_$callClinit(); - var$2 = nms_Item_swordGold.$itemID; - var$1.$stackSize = 0; - var$1.$itemFrame = null; - var$1.$itemID0 = var$2; - var$1.$stackSize = 1; - var$1.$itemDamage = 0; - if (var$1.$itemDamage < 0) - var$1.$itemDamage = 0; - $this.$equipment.data[0] = var$1; -}; -$java.nms_EntityPigZombie_initCreature = function($this) { - var var$1, var$2; - nms_EntityZombie_initCreature($this); - var$1 = $this.$dataWatcher; - var$2 = new jl_Byte; - var$2.$value4 = 0; - nms_DataWatcher_updateObject(var$1, 13, var$2); -}; -$java.nms_EntityPigZombie_getAttackStrength = function($this, $par1Entity) { - var $var2, $var3; - $var2 = $this.$equipment.data[0]; - $var3 = 5; - if ($var2 !== null) { - nms_Item_$callClinit(); - $var3 = $var3 + nms_Item_itemsList.data[$var2.$itemID0].$getDamageVsEntity($this) | 0; - } - return $var3; -}; -function ju_Collections$5() { - ju_AbstractSet.call(this); -} -$java.ju_Collections$5__init_ = function() { - var var_0 = new ju_Collections$5(); - ju_Collections$5__init_(var_0); - return var_0; -}; -function ju_Collections$5__init_($this) { - return; -} -function ju_Collections$6() { - ju_AbstractMap.call(this); -} -$java.ju_Collections$6__init_ = function() { - var var_0 = new ju_Collections$6(); - ju_Collections$6__init_(var_0); - return var_0; -}; -function ju_Collections$6__init_($this) { - return; -} -function ju_Collections$3() { - ju_AbstractList.call(this); -} -$java.ju_Collections$3__init_ = function() { - var var_0 = new ju_Collections$3(); - ju_Collections$3__init_(var_0); - return var_0; -}; -function ju_Collections$3__init_($this) { - return; -} -$java.ju_Collections$3_size = function($this) { - return 0; -}; -function jnc_CharsetDecoder() { - var a = this; jl_Object.call(a); - a.$charset1 = null; - a.$averageCharsPerByte = 0.0; - a.$maxCharsPerByte = 0.0; - a.$replacement0 = null; - a.$malformedAction0 = null; - a.$unmappableAction0 = null; - a.$state0 = 0; -} -$java.jnc_CharsetDecoder__init_ = function(var_0, var_1, var_2) { - var var_3 = new jnc_CharsetDecoder(); - jnc_CharsetDecoder__init_(var_3, var_0, var_1, var_2); - return var_3; -}; -function jnc_CharsetDecoder__init_($this, $cs, $averageCharsPerByte, $maxCharsPerByte) { - var var$4, var$5; - $this.$replacement0 = $rt_s(2193); - $this.$malformedAction0 = jnc_CodingErrorAction_REPORT; - $this.$unmappableAction0 = jnc_CodingErrorAction_REPORT; - if ($averageCharsPerByte <= 0.0) { - $cs = new jl_IllegalArgumentException; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2194)); - jl_AbstractStringBuilder_insert2(var$4, var$4.$length, $averageCharsPerByte); - var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - $cs.$suppressionEnabled = 1; - $cs.$writableStackTrace = 1; - $cs.$message = var$5; - $rt_throw($cs); - } - if ($maxCharsPerByte > 0.0) { - $this.$charset1 = $cs; - $this.$averageCharsPerByte = $averageCharsPerByte; - $this.$maxCharsPerByte = $maxCharsPerByte; - return; - } - var$4 = new jl_IllegalArgumentException; - $cs = new jl_StringBuilder; - $cs.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($cs, $cs.$length, $rt_s(2195)); - jl_AbstractStringBuilder_insert2($cs, $cs.$length, $maxCharsPerByte); - var$5 = jl_String__init_0($cs.$buffer, 0, $cs.$length); - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - var$4.$message = var$5; - $rt_throw(var$4); -} -function jnc_CharsetDecoder_onMalformedInput($this, $newAction) { - var var$2; - if ($newAction !== null) { - $this.$malformedAction0 = $newAction; - return $this; - } - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(970); - $rt_throw(var$2); -} -$java.jnc_CharsetDecoder_implOnMalformedInput = function($this, $newAction) { - return; -}; -function jnc_CharsetDecoder_onUnmappableCharacter($this, $newAction) { - var var$2; - if ($newAction !== null) { - $this.$unmappableAction0 = $newAction; - return $this; - } - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(970); - $rt_throw(var$2); -} -$java.jnc_CharsetDecoder_implOnUnmappableCharacter = function($this, $newAction) { - return; -}; -function jnc_CharsetDecoder_decode0($this, $in, $out, $endOfInput) { - var $result, $e, var$6, var$7, $$je; - if (!($this.$state0 == 2 && !$endOfInput) && $this.$state0 != 3) { - $this.$state0 = $endOfInput ? 2 : 1; - while (true) { - try { - $result = $java.jnci_BufferedDecoder_decodeLoop($this, $in, $out); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_RuntimeException) { - $e = $$je; - $in = new jnc_CoderMalfunctionError; - jl_Error__init_2($in, $e); - $rt_throw($in); - } else { - throw $$e; - } - } - if ($result.$kind != 1 ? 0 : 1) - break; - if ($result.$kind ? 0 : 1) { - if ($endOfInput && ($in.$position >= $in.$limit ? 0 : 1)) { - if ($this.$malformedAction0 === jnc_CodingErrorAction_REPORT) { - var$6 = $in.$limit - $in.$position | 0; - $in = new jnc_CoderResult; - $in.$kind = 2; - $in.$length2 = var$6; - return $in; - } - if (($out.$limit - $out.$position | 0) <= $this.$replacement0.$characters.data.length) - return jnc_CoderResult_OVERFLOW; - jn_Buffer_position0($in, $in.$position + ($in.$limit - $in.$position | 0) | 0); - if ($this.$malformedAction0 === jnc_CodingErrorAction_REPLACE) { - $in = $this.$replacement0; - jn_CharBuffer_put0($out, $in, 0, $in.$characters.data.length); - } - } - return $result; - } - if ($result.$kind != 2 ? 0 : 1) { - if ($this.$malformedAction0 === jnc_CodingErrorAction_REPORT) - return $result; - if ($this.$malformedAction0 === jnc_CodingErrorAction_REPLACE) { - if (($out.$limit - $out.$position | 0) < $this.$replacement0.$characters.data.length) - return jnc_CoderResult_OVERFLOW; - $e = $this.$replacement0; - jn_CharBuffer_put0($out, $e, 0, $e.$characters.data.length); - } - var$7 = $in.$position; - var$6 = $result.$kind != 2 ? 0 : 1; - if (!(!var$6 && !($result.$kind != 3 ? 0 : 1) ? 0 : 1)) { - $in = new jl_UnsupportedOperationException; - $in.$suppressionEnabled = 1; - $in.$writableStackTrace = 1; - $rt_throw($in); - } - jn_Buffer_position0($in, var$7 + $result.$length2 | 0); - } else if ($result.$kind != 3 ? 0 : 1) { - if ($this.$unmappableAction0 === jnc_CodingErrorAction_REPORT) - return $result; - if ($this.$unmappableAction0 === jnc_CodingErrorAction_REPLACE) { - if (jn_Buffer_remaining($out) < jl_String_length($this.$replacement0)) - return jnc_CoderResult_OVERFLOW; - jn_CharBuffer_put1($out, $this.$replacement0); - } - var$7 = $in.$position; - var$6 = $result.$kind != 2 ? 0 : 1; - if (!(!var$6 && !($result.$kind != 3 ? 0 : 1) ? 0 : 1)) { - $in = new jl_UnsupportedOperationException; - $in.$suppressionEnabled = 1; - $in.$writableStackTrace = 1; - $rt_throw($in); - } - jn_Buffer_position0($in, var$7 + $result.$length2 | 0); - } - } - return $result; - } - $in = new jl_IllegalStateException; - $in.$suppressionEnabled = 1; - $in.$writableStackTrace = 1; - $rt_throw($in); -} -function jnc_CharsetDecoder_flush($this, $out) { - if ($this.$state0 != 3 && $this.$state0 != 2) { - $out = new jl_IllegalStateException; - $out.$suppressionEnabled = 1; - $out.$writableStackTrace = 1; - $rt_throw($out); - } - $this.$state0 = 3; - return jnc_CoderResult_UNDERFLOW; -} -$java.jnc_CharsetDecoder_reset = function($this) { - $this.$state0 = 0; - return $this; -}; -function jnc_CharsetDecoder_decode($this, $in) { - var var$2, var$3, $out, $result, var$6, var$7, var$8; - if ($this.$state0 && $this.$state0 != 3) { - $in = new jl_IllegalStateException; - $in.$suppressionEnabled = 1; - $in.$writableStackTrace = 1; - $rt_throw($in); - } - if (!($in.$limit - $in.$position | 0)) { - $in = new jn_CharBufferOverArray; - var$2 = $rt_createCharArray(0); - $in.$mark = (-1); - $in.$capacity = 0; - $in.$limit = 0; - $in.$position = 0; - $in.$limit = 0; - $in.$start0 = 0; - $in.$readOnly0 = 0; - $in.$array0 = var$2; - return $in; - } - if ($this.$state0) - $this.$state0 = 0; - var$3 = ($in.$limit - $in.$position | 0) * $this.$averageCharsPerByte | 0; - if (8 > var$3) - var$3 = 8; - if (var$3 < 0) { - $in = new jl_IllegalArgumentException; - $out = new jl_StringBuilder; - $out.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($out, $out.$length, $rt_s(421)); - jl_AbstractStringBuilder_insert0($out, $out.$length, var$3, 10); - $result = jl_String__init_0($out.$buffer, 0, $out.$length); - $in.$suppressionEnabled = 1; - $in.$writableStackTrace = 1; - $in.$message = $result; - $rt_throw($in); - } - $out = new jn_CharBufferOverArray; - var$2 = $rt_createCharArray(var$3); - $out.$mark = (-1); - $out.$capacity = var$3; - $out.$limit = var$3; - $out.$position = 0; - $out.$limit = var$3; - $out.$start0 = 0; - $out.$readOnly0 = 0; - $out.$array0 = var$2; - while (true) { - $result = jnc_CharsetDecoder_decode0($this, $in, $out, 0); - if (jnc_CoderResult_isUnderflow($result)) - break; - if ($result.$kind != 1 ? 0 : 1) - $out = $java.jnc_CharsetDecoder_expand($this, $out); - if (!jnc_CoderResult_isError($result)) - continue; - jnc_CoderResult_throwException($result); - } - $in = jnc_CharsetDecoder_decode0($this, $in, $out, 1); - var$6 = $in.$kind != 2 ? 0 : 1; - if (!var$6 && !($in.$kind != 3 ? 0 : 1) ? 0 : 1) - jnc_CoderResult_throwException($in); - while (!(jnc_CharsetDecoder_flush($this, $out).$kind ? 0 : 1)) { - var$7 = $out.$array0; - var$3 = var$7.data.length * 2 | 0; - if (8 > var$3) - var$3 = 8; - var$2 = ju_Arrays_copyOf(var$7, var$3); - var$3 = var$2.data.length; - $in = new jn_CharBufferOverArray; - var$8 = 0 + var$3 | 0; - $in.$mark = (-1); - $in.$capacity = var$3; - $in.$limit = var$3; - $in.$position = 0; - $in.$limit = var$8; - $in.$start0 = 0; - $in.$readOnly0 = 0; - $in.$array0 = var$2; - jn_Buffer_position0($in, $out.$position); - $out = $in; - } - $out.$limit = $out.$position; - $out.$position = 0; - $out.$mark = (-1); - return $out; -} -$java.jnc_CharsetDecoder_expand = function($this, $buffer) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $buffer.$array0; - var$3 = var$2.data.length * 2 | 0; - if (8 > var$3) - var$3 = 8; - var$4 = ju_Arrays_copyOf(var$2, var$3); - var$3 = var$4.data.length; - var$5 = new jn_CharBufferOverArray; - var$6 = 0 + var$3 | 0; - var$5.$mark = (-1); - var$5.$capacity = var$3; - var$5.$limit = var$3; - var$5.$position = 0; - var$5.$limit = var$6; - var$5.$start0 = 0; - var$5.$readOnly0 = 0; - var$5.$array0 = var$4; - jn_Buffer_position0(var$5, $buffer.$position); - return var$5; -}; -$java.jnc_CharsetDecoder_implFlush = function($this, $out) { - return jnc_CoderResult_UNDERFLOW; -}; -$java.jnc_CharsetDecoder_implReset = function($this) { - return; -}; -function jn_FloatBufferImpl() { - jn_FloatBuffer.call(this); -} -function jn_FloatBufferImpl_get($this) { - var var$1, var$2; - if ($this.$position < $this.$limit) { - var$1 = $this.$position; - $this.$position = var$1 + 1 | 0; - return $this.$getElement0(var$1); - } - var$2 = new jn_BufferUnderflowException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); -} -function jn_FloatBufferImpl_put($this, $b) { - var var$2, var$3; - if ($this.$readOnly2()) { - var$2 = new jn_ReadOnlyBufferException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - if ($this.$position < $this.$limit) { - var$3 = $this.$position; - $this.$position = var$3 + 1 | 0; - $this.$putElement0(var$3, $b); - return $this; - } - var$2 = new jn_BufferOverflowException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); -} -$java.jn_FloatBufferImpl_get = function($this, $index) { - var var$2, var$3, var$4, var$5; - if ($index >= 0 && $index < $this.$limit) - return $this.$getElement0($index); - var$2 = new jl_IndexOutOfBoundsException; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(480)); - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $index, 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(64)); - 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); -}; -$java.jn_FloatBufferImpl_isReadOnly = function($this) { - return $this.$readOnly2(); -}; -function jn_FloatBufferOverArray() { - var a = this; jn_FloatBufferImpl.call(a); - a.$readOnly5 = 0; - a.$start5 = 0; - a.$array4 = null; -} -$java.jn_FloatBufferOverArray_getElement = function($this, $index) { - return $this.$array4.data[$index + $this.$start5 | 0]; -}; -$java.jn_FloatBufferOverArray_putElement = function($this, $index, $value) { - $this.$array4.data[$index + $this.$start5 | 0] = $value; -}; -$java.jn_FloatBufferOverArray_readOnly = function($this) { - return $this.$readOnly5; -}; -function nms_EntityEggInfo() { - var a = this; jl_Object.call(a); - a.$spawnedID = 0; - a.$primaryColor = 0; - a.$secondaryColor = 0; -} -function nms_CreativeTabBlock() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabBlock_getTabIconItemIndex = function($this) { - nms_Block_$callClinit(); - return nms_Block_brick.$blockID; -}; -function nms_CreativeTabDeco() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabDeco_getTabIconItemIndex = function($this) { - nms_Block_$callClinit(); - return nms_Block_plantRed.$blockID; -}; -function nms_CreativeTabRedstone() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabRedstone_getTabIconItemIndex = function($this) { - nms_Item_$callClinit(); - return nms_Item_redstone.$itemID; -}; -function nms_CreativeTabTransport() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabTransport_getTabIconItemIndex = function($this) { - nms_Block_$callClinit(); - return nms_Block_railPowered.$blockID; -}; -function nms_CreativeTabMisc() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabMisc_getTabIconItemIndex = function($this) { - nms_Item_$callClinit(); - return nms_Item_bucketLava.$itemID; -}; -$java.nms_CreativeTabMisc_displayAllReleventItems = function($this, $par1List) { - var var$2; - nms_CreativeTabs_displayAllReleventItems($this, $par1List); - var$2 = $rt_createArray(nms_EnumEnchantmentType, 1); - var$2.data[0] = $java.nms_EnumEnchantmentType_all; - nms_CreativeTabs_func_92116_a($this, $par1List, var$2); -}; -function nms_CreativeTabSearch() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabSearch_getTabIconItemIndex = function($this) { - nms_Item_$callClinit(); - return nms_Item_compass.$itemID; -}; -function nms_CreativeTabFood() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabFood_getTabIconItemIndex = function($this) { - nms_Item_$callClinit(); - return nms_Item_appleRed.$itemID; -}; -function nms_CreativeTabTools() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabTools_getTabIconItemIndex = function($this) { - nms_Item_$callClinit(); - return nms_Item_axeIron.$itemID; -}; -$java.nms_CreativeTabTools_displayAllReleventItems = function($this, $par1List) { - var var$2; - nms_CreativeTabs_displayAllReleventItems($this, $par1List); - var$2 = $rt_createArray(nms_EnumEnchantmentType, 1); - var$2.data[0] = $java.nms_EnumEnchantmentType_digger; - nms_CreativeTabs_func_92116_a($this, $par1List, var$2); -}; -function nms_CreativeTabCombat() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabCombat_getTabIconItemIndex = function($this) { - nms_Item_$callClinit(); - return nms_Item_swordGold.$itemID; -}; -$java.nms_CreativeTabCombat_displayAllReleventItems = function($this, $par1List) { - var var$2, var$3; - nms_CreativeTabs_displayAllReleventItems($this, $par1List); - var$2 = $rt_createArray(nms_EnumEnchantmentType, 7); - var$3 = var$2.data; - var$3[0] = $java.nms_EnumEnchantmentType_armor; - var$3[1] = $java.nms_EnumEnchantmentType_armor_feet; - var$3[2] = $java.nms_EnumEnchantmentType_armor_head; - var$3[3] = $java.nms_EnumEnchantmentType_armor_legs; - var$3[4] = $java.nms_EnumEnchantmentType_armor_torso; - var$3[5] = $java.nms_EnumEnchantmentType_bow; - var$3[6] = $java.nms_EnumEnchantmentType_weapon; - nms_CreativeTabs_func_92116_a($this, $par1List, var$2); -}; -function nms_CreativeTabBrewing() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabBrewing_getTabIconItemIndex = function($this) { - nms_Item_$callClinit(); - return nms_Item_potion.$itemID; -}; -function nms_CreativeTabMaterial() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabMaterial_getTabIconItemIndex = function($this) { - nms_Item_$callClinit(); - return nms_Item_stick.$itemID; -}; -function nms_CreativeTabInventory() { - nms_CreativeTabs.call(this); -} -$java.nms_CreativeTabInventory_getTabIconItemIndex = function($this) { - nms_Block_$callClinit(); - return nms_Block_chest.$blockID; -}; -function nms_PotionHealth() { - nms_Potion.call(this); -} -$java.nms_PotionHealth_isInstant = function($this) { - return 1; -}; -$java.nms_PotionHealth_isReady = function($this, $par1, $par2) { - return $par1 < 1 ? 0 : 1; -}; -function nms_MaterialTransparent() { - nms_Material.call(this); -} -$java.nms_MaterialTransparent_isSolid = function($this) { - return 0; -}; -$java.nms_MaterialTransparent_getCanBlockGrass = function($this) { - return 0; -}; -$java.nms_MaterialTransparent_blocksMovement = function($this) { - return 0; -}; -function nms_MapColor() { - var a = this; jl_Object.call(a); - a.$colorValue = 0; - a.$colorIndex = 0; -} -var nms_MapColor_mapColorArray = null; -var nms_MapColor_airColor = null; -var nms_MapColor_grassColor = null; -var nms_MapColor_sandColor = null; -var nms_MapColor_clothColor = null; -var nms_MapColor_tntColor = null; -var nms_MapColor_iceColor = null; -var nms_MapColor_ironColor = null; -var nms_MapColor_foliageColor = null; -var nms_MapColor_snowColor = null; -var nms_MapColor_clayColor = null; -var nms_MapColor_dirtColor = null; -var nms_MapColor_stoneColor = null; -var nms_MapColor_waterColor = null; -var nms_MapColor_woodColor = null; -function nms_MapColor__clinit_() { - var var$1; - nms_MapColor_mapColorArray = $rt_createArray(nms_MapColor, 16); - var$1 = new nms_MapColor; - var$1.$colorIndex = 0; - var$1.$colorValue = 0; - nms_MapColor_mapColorArray.data[0] = var$1; - nms_MapColor_airColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 1; - var$1.$colorValue = 8368696; - nms_MapColor_mapColorArray.data[1] = var$1; - nms_MapColor_grassColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 2; - var$1.$colorValue = 16247203; - nms_MapColor_mapColorArray.data[2] = var$1; - nms_MapColor_sandColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 3; - var$1.$colorValue = 10987431; - nms_MapColor_mapColorArray.data[3] = var$1; - nms_MapColor_clothColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 4; - var$1.$colorValue = 16711680; - nms_MapColor_mapColorArray.data[4] = var$1; - nms_MapColor_tntColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 5; - var$1.$colorValue = 10526975; - nms_MapColor_mapColorArray.data[5] = var$1; - nms_MapColor_iceColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 6; - var$1.$colorValue = 10987431; - nms_MapColor_mapColorArray.data[6] = var$1; - nms_MapColor_ironColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 7; - var$1.$colorValue = 31744; - nms_MapColor_mapColorArray.data[7] = var$1; - nms_MapColor_foliageColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 8; - var$1.$colorValue = 16777215; - nms_MapColor_mapColorArray.data[8] = var$1; - nms_MapColor_snowColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 9; - var$1.$colorValue = 10791096; - nms_MapColor_mapColorArray.data[9] = var$1; - nms_MapColor_clayColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 10; - var$1.$colorValue = 12020271; - nms_MapColor_mapColorArray.data[10] = var$1; - nms_MapColor_dirtColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 11; - var$1.$colorValue = 7368816; - nms_MapColor_mapColorArray.data[11] = var$1; - nms_MapColor_stoneColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 12; - var$1.$colorValue = 4210943; - nms_MapColor_mapColorArray.data[12] = var$1; - nms_MapColor_waterColor = var$1; - var$1 = new nms_MapColor; - var$1.$colorIndex = 13; - var$1.$colorValue = 6837042; - nms_MapColor_mapColorArray.data[13] = var$1; - nms_MapColor_woodColor = var$1; -} -function nms_MaterialLiquid() { - nms_Material.call(this); -} -$java.nms_MaterialLiquid_isLiquid = function($this) { - return 1; -}; -$java.nms_MaterialLiquid_blocksMovement = function($this) { - return 0; -}; -$java.nms_MaterialLiquid_isSolid = function($this) { - return 0; -}; -function nms_MaterialLogic() { - nms_Material.call(this); -} -function nms_MaterialLogic__init_(var_0) { - var var_1 = new nms_MaterialLogic(); - $java.nms_MaterialLogic__init_(var_1, var_0); - return var_1; -} -$java.nms_MaterialLogic__init_ = function($this, $par1MapColor) { - nms_Material_$callClinit(); - $this.$requiresNoTool = 1; - $this.$materialMapColor = $par1MapColor; - $this.$field_85159_M = 1; -}; -$java.nms_MaterialLogic_isSolid = function($this) { - return 0; -}; -$java.nms_MaterialLogic_getCanBlockGrass = function($this) { - return 0; -}; -$java.nms_MaterialLogic_blocksMovement = function($this) { - return 0; -}; -function nms_MaterialPortal() { - nms_Material.call(this); -} -function nms_MaterialPortal__init_(var_0) { - var var_1 = new nms_MaterialPortal(); - $java.nms_MaterialPortal__init_(var_1, var_0); - return var_1; -} -$java.nms_MaterialPortal__init_ = function($this, $par1MapColor) { - nms_Material_$callClinit(); - $this.$requiresNoTool = 1; - $this.$materialMapColor = $par1MapColor; -}; -$java.nms_MaterialPortal_isSolid = function($this) { - return 0; -}; -$java.nms_MaterialPortal_getCanBlockGrass = function($this) { - return 0; -}; -$java.nms_MaterialPortal_blocksMovement = function($this) { - return 0; -}; -function nms_MaterialWeb() { - nms_Material.call(this); -} -function nms_MaterialWeb__init_(var_0) { - var var_1 = new nms_MaterialWeb(); - $java.nms_MaterialWeb__init_(var_1, var_0); - return var_1; -} -$java.nms_MaterialWeb__init_ = function($this, $par1MapColor) { - nms_Material_$callClinit(); - $this.$requiresNoTool = 1; - $this.$materialMapColor = $par1MapColor; -}; -$java.nms_MaterialWeb_blocksMovement = function($this) { - return 0; -}; -function jur_AbstractSet() { - var a = this; jl_Object.call(a); - a.$next5 = null; - a.$isSecondPassVisited = 0; - a.$index5 = null; - a.$type2 = 0; -} -var jur_AbstractSet_counter = 0; -$java.jur_AbstractSet__init_ = function() { - var var_0 = new jur_AbstractSet(); - jur_AbstractSet__init_(var_0); - return var_0; -}; -function jur_AbstractSet__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); -} -$java.jur_AbstractSet_find = function($this, $stringIndex, $testString, $matchResult) { - var $length; - $length = $matchResult.$rightBound; - while (true) { - if ($stringIndex > $length) - return (-1); - if ($this.$matches($stringIndex, $testString, $matchResult) >= 0) - break; - $stringIndex = $stringIndex + 1 | 0; - } - return $stringIndex; -}; -$java.jur_AbstractSet_findBack = function($this, $stringIndex, $startSearch, $testString, $matchResult) { - while (true) { - if ($startSearch < $stringIndex) - return (-1); - if ($this.$matches($startSearch, $testString, $matchResult) >= 0) - break; - $startSearch = $startSearch + (-1) | 0; - } - return $startSearch; -}; -$java.jur_AbstractSet_setType = function($this, $type) { - $this.$type2 = $type; -}; -$java.jur_AbstractSet_getType = function($this) { - return $this.$type2; -}; -$java.jur_AbstractSet_getQualifiedName = function($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(2196)); - var$2 = $this.$index5; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(266)); - var$2 = $this.$getName(); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2197)); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_AbstractSet_toString = function($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(2196)); - var$2 = $this.$index5; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(266)); - var$2 = $this.$getName(); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2197)); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_AbstractSet_getNext = function($this) { - return $this.$next5; -}; -function jur_AbstractSet_setNext($this, $next) { - $this.$next5 = $next; -} -$java.jur_AbstractSet_first = function($this, $set) { - return 1; -}; -$java.jur_AbstractSet_processBackRefReplacement = function($this) { - return null; -}; -$java.jur_AbstractSet_processSecondPass = function($this) { - var $set; - $this.$isSecondPassVisited = 1; - if ($this.$next5 !== null) { - if (!$this.$next5.$isSecondPassVisited) { - $set = $this.$next5.$processBackRefReplacement(); - if ($set !== null) { - $this.$next5.$isSecondPassVisited = 1; - $this.$next5 = $set; - } - $this.$next5.$processSecondPass(); - } else if ($this.$next5 instanceof jur_SingleSet && $this.$next5.$fSet.$isBackReferenced) - $this.$next5 = $this.$next5.$next5; - } -}; -function jur_AbstractSet__clinit_() { - jur_AbstractSet_counter = 1; -} -function ju_TreeMap$1() { - jl_Object.call(this); - this.$this$05 = null; -} -$java.ju_TreeMap$1_compare = function($this, $o1, $o2) { - return $o1 !== null ? $o1.$compareTo4($o2) : jl_String_compareTo($o2, $o1); -}; -$java.nms_IStatType = function() { -}; -function nms_StatTypeSimple() { - jl_Object.call(this); -} -$java.nms_StatTypeSimple__init_ = function() { - var var_0 = new nms_StatTypeSimple(); - nms_StatTypeSimple__init_(var_0); - return var_0; -}; -function nms_StatTypeSimple__init_($this) { - return; -} -function nms_StatTypeTime() { - jl_Object.call(this); -} -$java.nms_StatTypeTime__init_ = function() { - var var_0 = new nms_StatTypeTime(); - nms_StatTypeTime__init_(var_0); - return var_0; -}; -function nms_StatTypeTime__init_($this) { - return; -} -function nms_StatTypeDistance() { - jl_Object.call(this); -} -$java.nms_StatTypeDistance__init_ = function() { - var var_0 = new nms_StatTypeDistance(); - nms_StatTypeDistance__init_(var_0); - return var_0; -}; -function nms_StatTypeDistance__init_($this) { - return; -} -function jur_FSet() { - var a = this; jur_AbstractSet.call(a); - a.$isBackReferenced = 0; - a.$groupIndex = 0; -} -var jur_FSet_posFSet = null; -$java.jur_FSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var var$4, $end, $shift; - var$4 = $this.$groupIndex; - $end = $matchResult.$groupBounds.data[(var$4 * 2 | 0) + 1 | 0]; - var$4 = $this.$groupIndex; - $matchResult.$groupBounds.data[(var$4 * 2 | 0) + 1 | 0] = $stringIndex; - $shift = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if ($shift < 0) { - $stringIndex = $this.$groupIndex; - $matchResult.$groupBounds.data[($stringIndex * 2 | 0) + 1 | 0] = $end; - } - return $shift; -}; -$java.jur_FSet_getGroupIndex = function($this) { - return $this.$groupIndex; -}; -$java.jur_FSet_getName = function($this) { - return $rt_s(2198); -}; -$java.jur_FSet_hasConsumed = function($this, $mr) { - return 0; -}; -function jur_FSet__clinit_() { - var var$1, var$2; - var$1 = new jur_FSet$PossessiveFSet; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - var$1.$index5 = jl_Integer_toString(var$2, 10); - jur_FSet_posFSet = var$1; -} -function jur_Lexer() { - var a = this; jl_Object.call(a); - a.$pattern2 = null; - a.$flags1 = 0; - a.$mode2 = 0; - a.$savedMode = 0; - a.$lookBack = 0; - a.$ch = 0; - a.$lookAhead = 0; - a.$patternFullLength = 0; - a.$curST = null; - a.$lookAheadST = null; - a.$index6 = 0; - a.$prevNW = 0; - a.$curToc = 0; - a.$lookAheadToc = 0; - a.$orig = null; -} -$java.jur_Lexer_decompTable = null; -$java.jur_Lexer_singleDecompTable = null; -$java.jur_Lexer_singleDecompTableSize = 0; -function jur_Lexer__init_(var_0, var_1) { - var var_2 = new jur_Lexer(); - $java.jur_Lexer__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_Lexer__init_ = function($this, $pattern, $flags) { - $this.$mode2 = 1; - $this.$orig = $pattern; - if (($flags & 16) > 0) - $pattern = jur_Pattern_quote($pattern); - $this.$pattern2 = $rt_createCharArray($pattern.$characters.data.length + 2 | 0); - jl_System_arraycopy(jl_String_toCharArray($pattern), 0, $this.$pattern2, 0, $pattern.$characters.data.length); - $this.$pattern2.data[$this.$pattern2.data.length - 1 | 0] = 0; - $this.$pattern2.data[$this.$pattern2.data.length - 2 | 0] = 0; - $this.$patternFullLength = $this.$pattern2.data.length; - $this.$flags1 = $flags; - jur_Lexer_movePointer($this); - jur_Lexer_movePointer($this); -}; -function jur_Lexer_peek($this) { - return $this.$ch; -} -function jur_Lexer_setMode($this, $mode) { - if ($mode > 0 && $mode < 3) - $this.$mode2 = $mode; - if ($mode == 1) { - $this.$lookAhead = $this.$ch; - $this.$lookAheadST = $this.$curST; - $this.$index6 = $this.$lookAheadToc; - $this.$lookAheadToc = $this.$curToc; - jur_Lexer_movePointer($this); - } -} -function jur_Lexer_restoreFlags($this, $flags) { - $this.$flags1 = $flags; - $this.$lookAhead = $this.$ch; - $this.$lookAheadST = $this.$curST; - $this.$index6 = $this.$curToc + 1 | 0; - $this.$lookAheadToc = $this.$curToc; - jur_Lexer_movePointer($this); -} -function jur_Lexer_peekSpecial($this) { - return $this.$curST; -} -function jur_Lexer_isSpecial($this) { - return $this.$curST === null ? 0 : 1; -} -$java.jur_Lexer_isNextSpecial = function($this) { - return $this.$lookAheadST === null ? 0 : 1; -}; -function jur_Lexer_next($this) { - jur_Lexer_movePointer($this); - return $this.$lookBack; -} -function jur_Lexer_nextSpecial($this) { - var $res; - $res = $this.$curST; - jur_Lexer_movePointer($this); - return $res; -} -function jur_Lexer_lookAhead($this) { - return $this.$lookAhead; -} -$java.jur_Lexer_back = function($this) { - return $this.$lookBack; -}; -function jur_Lexer_movePointer($this) { - var $reread, $nonCap, $behind, $cs, $negative, $$je; - $this.$lookBack = $this.$ch; - $this.$ch = $this.$lookAhead; - $this.$curST = $this.$lookAheadST; - $this.$curToc = $this.$lookAheadToc; - $this.$lookAheadToc = $this.$index6; - while (true) { - $reread = 0; - $this.$lookAhead = $this.$index6 >= $this.$pattern2.data.length ? 0 : $java.jur_Lexer_nextCodePoint($this); - $this.$lookAheadST = null; - if ($this.$mode2 == 4) { - if ($this.$lookAhead != 92) - return; - $this.$lookAhead = $this.$index6 >= $this.$pattern2.data.length ? 0 : $this.$pattern2.data[$java.jur_Lexer_nextIndex($this)]; - switch ($this.$lookAhead) { - case 69: - break; - default: - $this.$lookAhead = 92; - $this.$index6 = $this.$prevNW; - return; - } - $this.$mode2 = $this.$savedMode; - $this.$lookAhead = $this.$index6 > ($this.$pattern2.data.length - 2 | 0) ? 0 : $java.jur_Lexer_nextCodePoint($this); - } - a: { - if ($this.$lookAhead != 92) { - if ($this.$mode2 == 1) - switch ($this.$lookAhead) { - case 36: - $this.$lookAhead = (-536870876); - break a; - case 40: - if ($this.$pattern2.data[$this.$index6] != 63) { - $this.$lookAhead = (-2147483608); - break a; - } - $java.jur_Lexer_nextIndex($this); - $nonCap = $this.$pattern2.data[$this.$index6]; - $behind = 0; - while (true) { - b: { - if ($behind) { - $behind = 0; - switch ($nonCap) { - case 33: - break; - case 61: - $this.$lookAhead = (-134217688); - $java.jur_Lexer_nextIndex($this); - break b; - default: - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Lexer_toString($this), $this.$index6)); - } - $this.$lookAhead = (-67108824); - $java.jur_Lexer_nextIndex($this); - } else { - switch ($nonCap) { - case 33: - break; - case 60: - $java.jur_Lexer_nextIndex($this); - $nonCap = $this.$pattern2.data[$this.$index6]; - $behind = 1; - break b; - case 61: - $this.$lookAhead = (-536870872); - $java.jur_Lexer_nextIndex($this); - break b; - case 62: - $this.$lookAhead = (-33554392); - $java.jur_Lexer_nextIndex($this); - break b; - default: - $this.$lookAhead = $java.jur_Lexer_readFlags($this); - if ($this.$lookAhead < 256) { - $this.$flags1 = $this.$lookAhead; - $this.$lookAhead = $this.$lookAhead << 16; - $this.$lookAhead = (-1073741784) | $this.$lookAhead; - break b; - } - $this.$lookAhead = $this.$lookAhead & 255; - $this.$flags1 = $this.$lookAhead; - $this.$lookAhead = $this.$lookAhead << 16; - $this.$lookAhead = (-16777176) | $this.$lookAhead; - break b; - } - $this.$lookAhead = (-268435416); - $java.jur_Lexer_nextIndex($this); - } - } - if (!$behind) - break; - } - break a; - case 41: - $this.$lookAhead = (-536870871); - break a; - case 42: - case 43: - case 63: - switch ($this.$index6 >= $this.$pattern2.data.length ? 42 : $this.$pattern2.data[$this.$index6]) { - case 43: - $this.$lookAhead = $this.$lookAhead | (-2147483648); - $java.jur_Lexer_nextIndex($this); - break a; - case 63: - $this.$lookAhead = $this.$lookAhead | (-1073741824); - $java.jur_Lexer_nextIndex($this); - break a; - default: - } - $this.$lookAhead = $this.$lookAhead | (-536870912); - break a; - case 46: - $this.$lookAhead = (-536870866); - break a; - case 91: - $this.$lookAhead = (-536870821); - jur_Lexer_setMode($this, 2); - break a; - case 93: - if ($this.$mode2 != 2) - break a; - $this.$lookAhead = (-536870819); - break a; - case 94: - $this.$lookAhead = (-536870818); - break a; - case 123: - $this.$lookAheadST = $java.jur_Lexer_processQuantifier($this, $this.$lookAhead); - break a; - case 124: - $this.$lookAhead = (-536870788); - break a; - default: - } - else if ($this.$mode2 == 2) - switch ($this.$lookAhead) { - case 38: - $this.$lookAhead = (-536870874); - break a; - case 45: - $this.$lookAhead = (-536870867); - break a; - case 91: - $this.$lookAhead = (-536870821); - break a; - case 93: - $this.$lookAhead = (-536870819); - break a; - case 94: - $this.$lookAhead = (-536870818); - break a; - default: - } - } else { - $nonCap = $this.$index6 >= ($this.$pattern2.data.length - 2 | 0) ? (-1) : $java.jur_Lexer_nextCodePoint($this); - c: { - $this.$lookAhead = $nonCap; - switch ($this.$lookAhead) { - case -1: - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Lexer_toString($this), $this.$index6)); - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 23: - case 24: - case 25: - case 26: - case 27: - case 28: - case 29: - case 30: - case 31: - case 32: - case 33: - case 34: - case 35: - case 36: - case 37: - case 38: - case 39: - case 40: - case 41: - case 42: - case 43: - case 44: - case 45: - case 46: - case 47: - case 58: - case 59: - case 60: - case 61: - case 62: - case 63: - case 64: - case 91: - case 92: - case 93: - case 94: - case 95: - case 96: - case 118: - break; - case 48: - $this.$lookAhead = $java.jur_Lexer_readOctals($this); - break a; - case 49: - case 50: - case 51: - case 52: - case 53: - case 54: - case 55: - case 56: - case 57: - if ($this.$mode2 != 1) - break a; - $this.$lookAhead = (-2147483648) | $this.$lookAhead; - break a; - case 65: - $this.$lookAhead = (-2147483583); - break a; - case 66: - $this.$lookAhead = (-2147483582); - break a; - case 67: - case 69: - case 70: - case 72: - case 73: - case 74: - case 75: - case 76: - case 77: - case 78: - case 79: - case 82: - case 84: - case 85: - case 86: - case 88: - case 89: - case 103: - case 104: - case 105: - case 106: - case 107: - case 108: - case 109: - case 111: - case 113: - case 121: - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Lexer_toString($this), $this.$index6)); - case 68: - case 83: - case 87: - case 100: - case 115: - case 119: - $this.$lookAheadST = $java.jur_AbstractCharClass_getPredefinedClass(jl_String__init_0($this.$pattern2, $this.$prevNW, 1), 0); - $this.$lookAhead = 0; - break a; - case 71: - $this.$lookAhead = (-2147483577); - break a; - case 80: - case 112: - break c; - case 81: - $this.$savedMode = $this.$mode2; - $this.$mode2 = 4; - $reread = 1; - break a; - case 90: - $this.$lookAhead = (-2147483558); - break a; - case 97: - $this.$lookAhead = 7; - break a; - case 98: - $this.$lookAhead = (-2147483550); - break a; - case 99: - if ($this.$index6 >= ($this.$pattern2.data.length - 2 | 0)) - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Lexer_toString($this), $this.$index6)); - $this.$lookAhead = $this.$pattern2.data[$java.jur_Lexer_nextIndex($this)] & 31; - break a; - case 101: - $this.$lookAhead = 27; - break a; - case 102: - $this.$lookAhead = 12; - break a; - case 110: - $this.$lookAhead = 10; - break a; - case 114: - $this.$lookAhead = 13; - break a; - case 116: - $this.$lookAhead = 9; - break a; - case 117: - $this.$lookAhead = $java.jur_Lexer_readHex($this, 4); - break a; - case 120: - $this.$lookAhead = $java.jur_Lexer_readHex($this, 2); - break a; - case 122: - $this.$lookAhead = (-2147483526); - break a; - default: - } - break a; - } - $cs = $java.jur_Lexer_parseCharClassName($this); - $negative = 0; - if ($this.$lookAhead == 80) - $negative = 1; - try { - $this.$lookAheadST = $java.jur_AbstractCharClass_getPredefinedClass($cs, $negative); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof $java.ju_MissingResourceException) { - $rt_throw(jur_PatternSyntaxException__init_($rt_s(44), jur_Lexer_toString($this), $this.$index6)); - } else { - throw $$e; - } - } - $this.$lookAhead = 0; - } - } - if ($reread) - continue; - else - break; - } -} -$java.jur_Lexer_parseCharClassName = function($this) { - var $sb, var$2, var$3, $ch, var$5, var$6, var$7; - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(10); - if ($this.$index6 < ($this.$pattern2.data.length - 2 | 0)) { - if ($this.$pattern2.data[$this.$index6] != 123) { - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(2199)); - var$2 = new jl_String; - var$3 = $this.$pattern2; - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - jl_String__init_4(var$2, var$3, $this.$prevNW, 1); - jl_AbstractStringBuilder_insert($sb, $sb.$length, var$2); - return jl_String__init_0($sb.$buffer, 0, $sb.$length); - } - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - $ch = 0; - a: { - while ($this.$index6 < ($this.$pattern2.data.length - 2 | 0)) { - var$3 = $this.$pattern2; - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - $ch = var$3.data[$this.$prevNW]; - if ($ch == 125) - break a; - var$5 = $sb.$length; - jl_AbstractStringBuilder_insertSpace($sb, var$5, var$5 + 1 | 0); - $sb.$buffer.data[var$5] = $ch; - } - } - if ($ch != 125) { - $sb = new jur_PatternSyntaxException; - var$6 = $this.$orig; - $ch = $this.$index6; - $sb.$suppressionEnabled = 1; - $sb.$writableStackTrace = 1; - $sb.$index4 = (-1); - $sb.$desc = $rt_s(44); - $sb.$pattern0 = var$6; - $sb.$index4 = $ch; - $rt_throw($sb); - } - } - if (!$sb.$length) { - $sb = new jur_PatternSyntaxException; - var$6 = $this.$orig; - $ch = $this.$index6; - $sb.$suppressionEnabled = 1; - $sb.$writableStackTrace = 1; - $sb.$index4 = (-1); - $sb.$desc = $rt_s(44); - $sb.$pattern0 = var$6; - $sb.$index4 = $ch; - $rt_throw($sb); - } - var$2 = jl_String__init_0($sb.$buffer, 0, $sb.$length); - if (var$2.$characters.data.length == 1) { - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(2199)); - jl_AbstractStringBuilder_insert($sb, $sb.$length, var$2); - return jl_String__init_0($sb.$buffer, 0, $sb.$length); - } - b: { - c: { - if (var$2.$characters.data.length > 3) { - if (var$2 === $rt_s(2199) ? 1 : jl_String_startsWith(var$2, $rt_s(2199), 0)) - break c; - if (var$2 === $rt_s(2200) ? 1 : jl_String_startsWith(var$2, $rt_s(2200), 0)) - break c; - } - break b; - } - var$7 = var$2.$characters.data.length; - if (2 > var$7) { - $sb = new jl_IndexOutOfBoundsException; - $sb.$suppressionEnabled = 1; - $sb.$writableStackTrace = 1; - $rt_throw($sb); - } - var$2 = jl_String__init_0(var$2.$characters, 2, var$7 - 2 | 0); - } - return var$2; -}; -$java.jur_Lexer_processQuantifier = function($this, $ch) { - var $sb, $min, $max, var$5, $mod, var$7, var$8, $$je; - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(4); - $min = (-1); - $max = 2147483647; - a: { - while (true) { - if ($this.$index6 >= $this.$pattern2.data.length) - break a; - var$5 = $this.$pattern2; - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - $ch = var$5.data[$this.$prevNW]; - if ($ch == 125) - break a; - if ($ch == 44 && $min < 0) - try { - $min = jl_Integer_parseInt(jl_StringBuilder_toString($sb), 10); - jl_StringBuilder_delete($sb, 0, jl_StringBuilder_length($sb)); - continue; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NumberFormatException) { - break; - } else { - throw $$e; - } - } - $mod = $ch & 65535; - var$7 = $sb.$length; - jl_AbstractStringBuilder_insertSpace($sb, var$7, var$7 + 1 | 0); - $sb.$buffer.data[var$7] = $mod; - } - $sb = new jur_PatternSyntaxException; - var$8 = $this.$orig; - $ch = $this.$index6; - $sb.$suppressionEnabled = 1; - $sb.$writableStackTrace = 1; - $sb.$index4 = (-1); - $sb.$desc = $rt_s(44); - $sb.$pattern0 = var$8; - $sb.$index4 = $ch; - $rt_throw($sb); - } - if ($ch != 125) { - $sb = new jur_PatternSyntaxException; - var$8 = $this.$orig; - $ch = $this.$index6; - $sb.$suppressionEnabled = 1; - $sb.$writableStackTrace = 1; - $sb.$index4 = (-1); - $sb.$desc = $rt_s(44); - $sb.$pattern0 = var$8; - $sb.$index4 = $ch; - $rt_throw($sb); - } - if ($sb.$length > 0) - b: { - try { - $max = jl_Integer_parseInt(jl_StringBuilder_toString($sb), 10); - if ($min >= 0) - break b; - $min = $max; - break b; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NumberFormatException) { - } else { - throw $$e; - } - } - $sb = new jur_PatternSyntaxException; - var$8 = $this.$orig; - $ch = $this.$index6; - $sb.$suppressionEnabled = 1; - $sb.$writableStackTrace = 1; - $sb.$index4 = (-1); - $sb.$desc = $rt_s(44); - $sb.$pattern0 = var$8; - $sb.$index4 = $ch; - $rt_throw($sb); - } - else if ($min < 0) { - $sb = new jur_PatternSyntaxException; - var$8 = $this.$orig; - $ch = $this.$index6; - $sb.$suppressionEnabled = 1; - $sb.$writableStackTrace = 1; - $sb.$index4 = (-1); - $sb.$desc = $rt_s(44); - $sb.$pattern0 = var$8; - $sb.$index4 = $ch; - $rt_throw($sb); - } - if (($min | $max | ($max - $min | 0)) < 0) { - $sb = new jur_PatternSyntaxException; - var$8 = $this.$orig; - $ch = $this.$index6; - $sb.$suppressionEnabled = 1; - $sb.$writableStackTrace = 1; - $sb.$index4 = (-1); - $sb.$desc = $rt_s(44); - $sb.$pattern0 = var$8; - $sb.$index4 = $ch; - $rt_throw($sb); - } - $mod = $this.$index6 >= $this.$pattern2.data.length ? 42 : $this.$pattern2.data[$this.$index6]; - c: { - switch ($mod) { - case 43: - $this.$lookAhead = (-2147483525); - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - break c; - case 63: - $this.$lookAhead = (-1073741701); - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - break c; - default: - } - $this.$lookAhead = (-536870789); - } - $sb = new $java.jur_Quantifier; - $sb.$min1 = $min; - $sb.$max0 = $max; - return $sb; -}; -function jur_Lexer_toString($this) { - return $this.$orig; -} -function jur_Lexer_isEmpty($this) { - return !$this.$ch && !$this.$lookAhead && $this.$index6 == $this.$patternFullLength && !($this.$curST === null ? 0 : 1) ? 1 : 0; -} -function jur_Lexer_isLetter0($ch) { - return $ch < 0 ? 0 : 1; -} -function jur_Lexer_isLetter($this) { - return !jur_Lexer_isEmpty($this) && !($this.$curST === null ? 0 : 1) && ($this.$ch < 0 ? 0 : 1) ? 1 : 0; -} -$java.jur_Lexer_isHighSurrogate = function($this) { - return $this.$ch <= 56319 && $this.$ch >= 55296 ? 1 : 0; -}; -$java.jur_Lexer_isLowSurrogate = function($this) { - return $this.$ch <= 57343 && $this.$ch >= 56320 ? 1 : 0; -}; -function jur_Lexer_isHighSurrogate($ch) { - return $ch <= 56319 && $ch >= 55296 ? 1 : 0; -} -function jur_Lexer_isLowSurrogate($ch) { - return $ch <= 57343 && $ch >= 56320 ? 1 : 0; -} -$java.jur_Lexer_readHex = function($this, $max) { - var $st, $length, $i, var$5, var$6, var$7, var$8, $$je; - $st = new jl_StringBuilder; - $st.$buffer = $rt_createCharArray($max); - $length = $this.$pattern2.data.length - 2 | 0; - $i = 0; - while (true) { - var$5 = $rt_compare($i, $max); - if (var$5 >= 0) - break; - if ($this.$index6 >= $length) - break; - var$6 = $this.$pattern2; - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - var$5 = var$6.data[$this.$prevNW]; - var$7 = $st.$length; - jl_AbstractStringBuilder_insertSpace($st, var$7, var$7 + 1 | 0); - $st.$buffer.data[var$7] = var$5; - $i = $i + 1 | 0; - } - if (!var$5) - a: { - try { - $max = jl_Integer_parseInt(jl_StringBuilder_toString($st), 16); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NumberFormatException) { - break a; - } else { - throw $$e; - } - } - return $max; - } - $st = new jur_PatternSyntaxException; - var$8 = $this.$orig; - $max = $this.$index6; - $st.$suppressionEnabled = 1; - $st.$writableStackTrace = 1; - $st.$index4 = (-1); - $st.$desc = $rt_s(44); - $st.$pattern0 = var$8; - $st.$index4 = $max; - $rt_throw($st); -}; -$java.jur_Lexer_readOctals = function($this) { - var $max, $i, $length, $res, var$5, var$6, var$7; - $max = 3; - $i = 1; - $length = $this.$pattern2.data.length - 2 | 0; - $res = jl_Character_digit($this.$pattern2.data[$this.$index6], 8); - switch ($res) { - case -1: - break; - default: - if ($res > 3) - $max = 2; - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - a: { - while (true) { - if ($i >= $max) - break a; - if ($this.$index6 >= $length) - break a; - var$5 = jl_Character_digit($this.$pattern2.data[$this.$index6], 8); - if (var$5 < 0) - break; - $res = ($res * 8 | 0) + var$5 | 0; - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - $i = $i + 1 | 0; - } - } - return $res; - } - var$6 = new jur_PatternSyntaxException; - var$7 = $this.$orig; - $max = $this.$index6; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - var$6.$index4 = (-1); - var$6.$desc = $rt_s(44); - var$6.$pattern0 = var$7; - var$6.$index4 = $max; - $rt_throw(var$6); -}; -$java.jur_Lexer_readFlags = function($this) { - var $pos, $res, var$3, var$4, var$5; - $pos = 1; - $res = $this.$flags1; - a: while (true) { - if ($this.$index6 >= $this.$pattern2.data.length) { - var$3 = new jur_PatternSyntaxException; - var$4 = $this.$orig; - $pos = $this.$index6; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$index4 = (-1); - var$3.$desc = $rt_s(44); - var$3.$pattern0 = var$4; - var$3.$index4 = $pos; - $rt_throw(var$3); - } - b: { - c: { - switch ($this.$pattern2.data[$this.$index6]) { - case 41: - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - return $res | 256; - case 45: - if (!$pos) { - var$5 = new jur_PatternSyntaxException; - var$4 = $this.$orig; - $pos = $this.$index6; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - var$5.$index4 = (-1); - var$5.$desc = $rt_s(44); - var$5.$pattern0 = var$4; - var$5.$index4 = $pos; - $rt_throw(var$5); - } - $pos = 0; - break b; - case 58: - break a; - case 100: - break c; - case 105: - $res = $pos ? $res | 2 : ($res ^ 2) & $res; - break b; - case 109: - $res = $pos ? $res | 8 : ($res ^ 8) & $res; - break b; - case 115: - $res = $pos ? $res | 32 : ($res ^ 32) & $res; - break b; - case 117: - $res = $pos ? $res | 64 : ($res ^ 64) & $res; - break b; - case 120: - $res = $pos ? $res | 4 : ($res ^ 4) & $res; - break b; - default: - } - break b; - } - $res = $pos ? $res | 1 : ($res ^ 1) & $res; - } - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - } - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - return $res; -}; -$java.jur_Lexer_nextIndex = function($this) { - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - return $this.$prevNW; -}; -$java.jur_Lexer_skipComments = function($this) { - var $length, var$2; - $length = $this.$pattern2.data.length - 2 | 0; - $this.$index6 = $this.$index6 + 1 | 0; - a: while (true) { - if ($this.$index6 < $length) { - b: { - var$2 = $this.$pattern2.data[$this.$index6]; - switch (var$2) { - case 9: - case 10: - case 11: - case 12: - case 13: - case 28: - case 29: - case 30: - case 31: - break; - case 160: - case 8199: - case 8239: - var$2 = 0; - break b; - default: - c: { - switch (jl_Character_getType(var$2)) { - case 12: - case 13: - case 14: - break; - default: - var$2 = 0; - break c; - } - var$2 = 1; - } - break b; - } - var$2 = 1; - } - if (var$2) { - $this.$index6 = $this.$index6 + 1 | 0; - continue; - } - } - if ($this.$index6 >= $length) - break; - if ($this.$pattern2.data[$this.$index6] != 35) - break; - $this.$index6 = $this.$index6 + 1 | 0; - while (true) { - if ($this.$index6 >= $length) - continue a; - if ($java.jur_Lexer_isLineSeparator($this, $this.$pattern2.data[$this.$index6])) - continue a; - $this.$index6 = $this.$index6 + 1 | 0; - } - } - return $this.$index6; -}; -$java.jur_Lexer_isLineSeparator = function($this, $ch) { - return $ch != 10 && $ch != 13 && $ch != 133 && ($ch | 1) != 8233 ? 0 : 1; -}; -$java.jur_Lexer_getHangulDecomposition = function($ch) { - var $sIndex, $l, $v, $t, $decomp, var$7; - $sIndex = $ch - 44032 | 0; - if ($sIndex >= 0 && $sIndex < 11172) { - $l = 4352 + ($sIndex / 588 | 0) | 0; - $v = 4449 + (($sIndex % 588 | 0) / 28 | 0) | 0; - $t = $sIndex % 28 | 0; - if (!$t) { - $decomp = $rt_createIntArray(2); - var$7 = $decomp.data; - var$7[0] = $l; - var$7[1] = $v; - } else { - $ch = 4519 + $t | 0; - $decomp = $rt_createIntArray(3); - var$7 = $decomp.data; - var$7[0] = $l; - var$7[1] = $v; - var$7[2] = $ch; - } - return $decomp; - } - return null; -}; -function jur_Lexer_hasSingleCodepointDecomposition($ch) { - return $java.jur_Lexer_singleDecompTable.$get8($ch) == $java.jur_Lexer_singleDecompTableSize ? 0 : 1; -} -$java.jur_Lexer_hasDecompositionNonNullCanClass = function($ch) { - return ($ch != 832 ? 0 : 1) | ($ch != 833 ? 0 : 1) | ($ch != 835 ? 0 : 1) | ($ch != 836 ? 0 : 1); -}; -$java.jur_Lexer_nextCodePoint = function($this) { - var var$1, $high, $lowExpectedIndex, $low; - var$1 = $this.$pattern2; - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - $high = var$1.data[$this.$prevNW]; - if (($high & 64512) != 55296 ? 0 : 1) { - $lowExpectedIndex = $this.$prevNW + 1 | 0; - if ($lowExpectedIndex < $this.$pattern2.data.length) { - $low = $this.$pattern2.data[$lowExpectedIndex]; - if (($low & 64512) != 56320 ? 0 : 1) { - $this.$prevNW = $this.$index6; - if ($this.$flags1 & 4) - $java.jur_Lexer_skipComments($this); - else - $this.$index6 = $this.$index6 + 1 | 0; - return (($high & 1023) << 10 | $low & 1023) + 65536 | 0; - } - } - } - return $high; -}; -function jur_Lexer_getIndex($this) { - return $this.$curToc; -} -function jur_PatternSyntaxException() { - var a = this; jl_IllegalArgumentException.call(a); - a.$desc = null; - a.$pattern0 = null; - a.$index4 = 0; -} -function jur_PatternSyntaxException__init_(var_0, var_1, var_2) { - var var_3 = new jur_PatternSyntaxException(); - $java.jur_PatternSyntaxException__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_PatternSyntaxException__init_ = function($this, $description, $pattern, $index) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; - $this.$index4 = (-1); - $this.$desc = $description; - $this.$pattern0 = $pattern; - $this.$index4 = $index; -}; -$java.jur_PatternSyntaxException_getMessage = function($this) { - var $filler, $temp, var$3, var$4, var$5, var$6; - $filler = $rt_s(44); - if ($this.$index4 >= 1) { - $temp = $rt_createCharArray($this.$index4); - ju_Arrays_fill1($temp, 0, $temp.data.length, 32); - $filler = jl_String__init_($temp); - } - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - var$4 = $this.$desc; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$4); - if ($this.$pattern0 !== null && $this.$pattern0.$characters.data.length) { - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - var$5 = $this.$index4; - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, var$5, 10); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(344)); - var$6 = $this.$pattern0; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$6); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(344)); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $filler); - $filler = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - } else - $filler = $rt_s(44); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $filler); - return jl_String__init_0(var$3.$buffer, 0, var$3.$length); -}; -function jur_NonCapFSet() { - jur_FSet.call(this); -} -$java.jur_NonCapFSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $gr, var$5; - $gr = $this.$groupIndex; - var$5 = $stringIndex - $matchResult.$consumers.data[$gr] | 0; - $matchResult.$consumers.data[$gr] = var$5; - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -$java.jur_NonCapFSet_getName = function($this) { - return $rt_s(2201); -}; -$java.jur_NonCapFSet_hasConsumed = function($this, $mr) { - return 0; -}; -function jur_AheadFSet() { - jur_FSet.call(this); -} -$java.jur_AheadFSet__init_ = function() { - var var_0 = new jur_AheadFSet(); - jur_AheadFSet__init_(var_0); - return var_0; -}; -function jur_AheadFSet__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); - $this.$groupIndex = (-1); -} -$java.jur_AheadFSet_matches = function($this, $stringIndex, $testString, $matchResult) { - return $stringIndex; -}; -$java.jur_AheadFSet_getName = function($this) { - return $rt_s(2202); -}; -function jur_BehindFSet() { - jur_FSet.call(this); -} -$java.jur_BehindFSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $gr; - $gr = $this.$groupIndex; - if ($matchResult.$consumers.data[$gr] != $stringIndex) - $stringIndex = (-1); - return $stringIndex; -}; -$java.jur_BehindFSet_getName = function($this) { - return $rt_s(2203); -}; -function jur_AtomicFSet() { - jur_FSet.call(this); - this.$index7 = 0; -} -$java.jur_AtomicFSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $gr, var$5; - $gr = $this.$groupIndex; - var$5 = $stringIndex - $matchResult.$consumers.data[$gr] | 0; - $matchResult.$consumers.data[$gr] = var$5; - $this.$index7 = $stringIndex; - return $stringIndex; -}; -$java.jur_AtomicFSet_getIndex = function($this) { - return $this.$index7; -}; -$java.jur_AtomicFSet_getName = function($this) { - return $rt_s(2204); -}; -$java.jur_AtomicFSet_hasConsumed = function($this, $mr) { - return 0; -}; -function jur_FinalSet() { - jur_FSet.call(this); -} -$java.jur_FinalSet__init_ = function() { - var var_0 = new jur_FinalSet(); - jur_FinalSet__init_(var_0); - return var_0; -}; -function jur_FinalSet__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); - $this.$groupIndex = 0; -} -$java.jur_FinalSet_matches = function($this, $stringIndex, $testString, $matchResult) { - if ($matchResult.$mode3 != 1 && $stringIndex != $matchResult.$rightBound) - return (-1); - $matchResult.$valid = 1; - $matchResult.$groupBounds.data[1] = $stringIndex; - return $stringIndex; -}; -$java.jur_FinalSet_getName = function($this) { - return $rt_s(2205); -}; -function jur_LeafSet() { - jur_AbstractSet.call(this); - this.$charCount = 0; -} -$java.jur_LeafSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $shift; - if (($stringIndex + $this.$charCount0() | 0) > $matchResult.$rightBound) { - $matchResult.$hitEnd = 1; - return (-1); - } - $shift = $this.$accepts($stringIndex, $testString); - if ($shift < 0) - return (-1); - return $this.$next5.$matches($stringIndex + $shift | 0, $testString, $matchResult); -}; -$java.jur_LeafSet_charCount = function($this) { - return $this.$charCount; -}; -$java.jur_LeafSet_hasConsumed = function($this, $mr) { - return 1; -}; -function jur_EmptySet() { - jur_LeafSet.call(this); -} -function jur_EmptySet__init_(var_0) { - var var_1 = new jur_EmptySet(); - $java.jur_EmptySet__init_(var_1, var_0); - return var_1; -} -$java.jur_EmptySet__init_ = function($this, $next) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$next5 = $next; - $this.$charCount = 1; - $this.$type2 = 1; - $this.$charCount = 0; -}; -$java.jur_EmptySet_accepts = function($this, $stringIndex, $testString) { - return 0; -}; -$java.jur_EmptySet_find = function($this, $stringIndex, $testString, $matchResult) { - var $strLength, $startStr, $high; - $strLength = $matchResult.$rightBound; - $startStr = $matchResult.$leftBound; - while (true) { - $high = $rt_compare($stringIndex, $strLength); - if ($high > 0) - return (-1); - if ($high < 0 && ((jl_String_charAt($testString, $stringIndex) & 64512) != 56320 ? 0 : 1) && $stringIndex > $startStr && ((jl_String_charAt($testString, $stringIndex - 1 | 0) & 64512) != 55296 ? 0 : 1)) { - $stringIndex = $stringIndex + 1 | 0; - continue; - } - if ($this.$next5.$matches($stringIndex, $testString, $matchResult) >= 0) - break; - $stringIndex = $stringIndex + 1 | 0; - } - return $stringIndex; -}; -$java.jur_EmptySet_findBack = function($this, $stringIndex, $startSearch, $testString, $matchResult) { - var $strLength, $startStr; - $strLength = $matchResult.$rightBound; - $startStr = $matchResult.$leftBound; - while (true) { - if ($startSearch < $stringIndex) - return (-1); - if ($startSearch < $strLength && ((jl_String_charAt($testString, $startSearch) & 64512) != 56320 ? 0 : 1) && $startSearch > $startStr && ((jl_String_charAt($testString, $startSearch - 1 | 0) & 64512) != 55296 ? 0 : 1)) { - $startSearch = $startSearch + (-1) | 0; - continue; - } - if ($this.$next5.$matches($startSearch, $testString, $matchResult) >= 0) - break; - $startSearch = $startSearch + (-1) | 0; - } - return $startSearch; -}; -$java.jur_EmptySet_getName = function($this) { - return $rt_s(2206); -}; -$java.jur_EmptySet_hasConsumed = function($this, $mr) { - return 0; -}; -function jur_JointSet() { - var a = this; jur_AbstractSet.call(a); - a.$children = null; - a.$fSet = null; - a.$groupIndex0 = 0; -} -$java.jur_JointSet__init_ = function() { - var var_0 = new jur_JointSet(); - jur_JointSet__init_(var_0); - return var_0; -}; -function jur_JointSet__init_1(var_0, var_1) { - var var_2 = new jur_JointSet(); - jur_JointSet__init_0(var_2, var_0, var_1); - return var_2; -} -function jur_JointSet__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); -} -function jur_JointSet__init_0($this, $children, $fSet) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$children = $children; - $this.$fSet = $fSet; - $this.$groupIndex0 = $fSet.$groupIndex; -} -$java.jur_JointSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $i, $start, $size, $e, $shift; - if ($this.$children === null) - return (-1); - $i = $this.$groupIndex0; - $start = $matchResult.$groupBounds.data[$i * 2 | 0]; - $i = $this.$groupIndex0; - $matchResult.$groupBounds.data[$i * 2 | 0] = $stringIndex; - $size = $this.$children.$size0; - $i = 0; - a: { - while (true) { - if ($i >= $size) { - $stringIndex = $this.$groupIndex0; - $matchResult.$groupBounds.data[$stringIndex * 2 | 0] = $start; - return (-1); - } - $e = $this.$children; - if ($i < 0) - break a; - if ($i >= $e.$size0) - break a; - $shift = $e.$array1.data[$i].$matches($stringIndex, $testString, $matchResult); - if ($shift >= 0) - break; - $i = $i + 1 | 0; - } - return $shift; - } - $testString = new jl_IndexOutOfBoundsException; - $testString.$suppressionEnabled = 1; - $testString.$writableStackTrace = 1; - $rt_throw($testString); -}; -$java.jur_JointSet_setNext = function($this, $next) { - $this.$fSet.$next5 = $next; -}; -$java.jur_JointSet_getName = function($this) { - return $rt_s(2207); -}; -$java.jur_JointSet_first = function($this, $set) { - var var$2, $i; - a: { - if ($this.$children !== null) { - var$2 = $this.$children; - $i = new ju_AbstractList$1; - $i.$this$0 = var$2; - $i.$modCount = $i.$this$0.$modCount0; - $i.$size1 = $i.$this$0.$size2(); - $i.$removeIndex = (-1); - while (true) { - if (!($i.$index >= $i.$size1 ? 0 : 1)) - break a; - if (!ju_AbstractList$1_next($i).$first0($set)) - continue; - else - break; - } - return 1; - } - } - return 0; -}; -$java.jur_JointSet_hasConsumed = function($this, $matchResult) { - var var$2, var$3; - a: { - var$2 = $this.$groupIndex0; - if ($matchResult.$groupBounds.data[(var$2 * 2 | 0) + 1 | 0] >= 0) { - var$2 = $this.$groupIndex0; - var$2 = $matchResult.$groupBounds.data[var$2 * 2 | 0]; - var$3 = $this.$groupIndex0; - if (var$2 == $matchResult.$groupBounds.data[(var$3 * 2 | 0) + 1 | 0]) { - var$2 = 0; - break a; - } - } - var$2 = 1; - } - return var$2; -}; -$java.jur_JointSet_processSecondPass = function($this) { - var $childrenSize, $i, $child, $set; - $this.$isSecondPassVisited = 1; - if ($this.$fSet !== null && !$this.$fSet.$isSecondPassVisited) - $java.jur_AbstractSet_processSecondPass($this.$fSet); - a: { - b: { - if ($this.$children !== null) { - $childrenSize = $this.$children.$size0; - $i = 0; - while (true) { - if ($i >= $childrenSize) - break b; - $child = $this.$children; - if ($i < 0) - break a; - if ($i >= $child.$size0) - break a; - $child = $child.$array1.data[$i]; - $set = $child.$processBackRefReplacement(); - if ($set === null) - $set = $child; - else { - $child.$isSecondPassVisited = 1; - ju_ArrayList_remove($this.$children, $i); - ju_ArrayList_add0($this.$children, $i, $set); - } - if (!$set.$isSecondPassVisited) - $set.$processSecondPass(); - $i = $i + 1 | 0; - } - } - } - if ($this.$next5 !== null) - $java.jur_AbstractSet_processSecondPass($this); - return; - } - $child = new jl_IndexOutOfBoundsException; - $child.$suppressionEnabled = 1; - $child.$writableStackTrace = 1; - $rt_throw($child); -}; -function jur_NonCapJointSet() { - jur_JointSet.call(this); -} -$java.jur_NonCapJointSet__init_ = function() { - var var_0 = new jur_NonCapJointSet(); - jur_NonCapJointSet__init_(var_0); - return var_0; -}; -function jur_NonCapJointSet__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); -} -$java.jur_NonCapJointSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $start, $i, $size, $e, $shift; - $start = $this.$groupIndex0; - $start = $matchResult.$consumers.data[$start]; - $i = $this.$groupIndex0; - $matchResult.$consumers.data[$i] = $stringIndex; - $size = $this.$children.$size0; - $i = 0; - a: { - while (true) { - if ($i >= $size) { - $stringIndex = $this.$groupIndex0; - $matchResult.$consumers.data[$stringIndex] = $start; - return (-1); - } - $e = $this.$children; - if ($i < 0) - break a; - if ($i >= $e.$size0) - break a; - $shift = $e.$array1.data[$i].$matches($stringIndex, $testString, $matchResult); - if ($shift >= 0) - break; - $i = $i + 1 | 0; - } - return $shift; - } - $testString = new jl_IndexOutOfBoundsException; - $testString.$suppressionEnabled = 1; - $testString.$writableStackTrace = 1; - $rt_throw($testString); -}; -$java.jur_NonCapJointSet_getName = function($this) { - return $rt_s(2208); -}; -$java.jur_NonCapJointSet_hasConsumed = function($this, $matchResult) { - var $cons; - $cons = $this.$groupIndex0; - return !$matchResult.$consumers.data[$cons] ? 0 : 1; -}; -function jur_AtomicJointSet() { - jur_NonCapJointSet.call(this); -} -function jur_AtomicJointSet__init_0(var_0, var_1) { - var var_2 = new jur_AtomicJointSet(); - jur_AtomicJointSet__init_(var_2, var_0, var_1); - return var_2; -} -function jur_AtomicJointSet__init_($this, $children, $fSet) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$children = $children; - $this.$fSet = $fSet; - $this.$groupIndex0 = $fSet.$groupIndex; -} -$java.jur_AtomicJointSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $shift, $start, $size, $i, $e; - $shift = $this.$groupIndex0; - $start = $matchResult.$consumers.data[$shift]; - $shift = $this.$groupIndex0; - $matchResult.$consumers.data[$shift] = $stringIndex; - $size = $this.$children.$size0; - $i = 0; - a: { - while ($i < $size) { - $e = $this.$children; - if ($i < 0) - break a; - if ($i >= $e.$size0) - break a; - if ($e.$array1.data[$i].$matches($stringIndex, $testString, $matchResult) >= 0) - return $this.$next5.$matches($this.$fSet.$index7, $testString, $matchResult); - $i = $i + 1 | 0; - } - $stringIndex = $this.$groupIndex0; - $matchResult.$consumers.data[$stringIndex] = $start; - return (-1); - } - $testString = new jl_IndexOutOfBoundsException; - $testString.$suppressionEnabled = 1; - $testString.$writableStackTrace = 1; - $rt_throw($testString); -}; -$java.jur_AtomicJointSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_AtomicJointSet_getName = function($this) { - return $rt_s(2208); -}; -function jur_PositiveLookAhead() { - jur_AtomicJointSet.call(this); -} -$java.jur_PositiveLookAhead_matches = function($this, $stringIndex, $testString, $matchResult) { - var $size, $i, $e; - $size = $this.$children.$size0; - $i = 0; - a: { - while ($i < $size) { - $e = $this.$children; - if ($i < 0) - break a; - if ($i >= $e.$size0) - break a; - if ($e.$array1.data[$i].$matches($stringIndex, $testString, $matchResult) >= 0) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - $i = $i + 1 | 0; - } - return (-1); - } - $testString = new jl_IndexOutOfBoundsException; - $testString.$suppressionEnabled = 1; - $testString.$writableStackTrace = 1; - $rt_throw($testString); -}; -$java.jur_PositiveLookAhead_hasConsumed = function($this, $matchResult) { - return 0; -}; -$java.jur_PositiveLookAhead_getName = function($this) { - return $rt_s(2209); -}; -function jur_NegativeLookAhead() { - jur_AtomicJointSet.call(this); -} -function jur_NegativeLookAhead__init_(var_0, var_1) { - var var_2 = new jur_NegativeLookAhead(); - $java.jur_NegativeLookAhead__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_NegativeLookAhead__init_ = function($this, $children, $fSet) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$children = $children; - $this.$fSet = $fSet; - $this.$groupIndex0 = $fSet.$groupIndex; -}; -$java.jur_NegativeLookAhead_matches = function($this, $stringIndex, $testString, $matchResult) { - var $size, $i, $e; - $size = $this.$children.$size0; - $i = 0; - a: { - while (true) { - if ($i >= $size) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - $e = $this.$children; - if ($i < 0) - break a; - if ($i >= $e.$size0) - break a; - if ($e.$array1.data[$i].$matches($stringIndex, $testString, $matchResult) >= 0) - break; - $i = $i + 1 | 0; - } - return (-1); - } - $testString = new jl_IndexOutOfBoundsException; - $testString.$suppressionEnabled = 1; - $testString.$writableStackTrace = 1; - $rt_throw($testString); -}; -$java.jur_NegativeLookAhead_hasConsumed = function($this, $matchResult) { - return 0; -}; -$java.jur_NegativeLookAhead_getName = function($this) { - return $rt_s(2210); -}; -function jur_PositiveLookBehind() { - jur_AtomicJointSet.call(this); -} -function jur_PositiveLookBehind__init_(var_0, var_1) { - var var_2 = new jur_PositiveLookBehind(); - $java.jur_PositiveLookBehind__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_PositiveLookBehind__init_ = function($this, $children, $fSet) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$children = $children; - $this.$fSet = $fSet; - $this.$groupIndex0 = $fSet.$groupIndex; -}; -$java.jur_PositiveLookBehind_matches = function($this, $stringIndex, $testString, $matchResult) { - var $size, $leftBound, $shift, $i, $e; - $size = $this.$children.$size0; - $leftBound = $matchResult.$transparentBounds ? 0 : $matchResult.$leftBound; - a: { - b: { - $shift = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if ($shift >= 0) { - $i = $this.$groupIndex0; - $matchResult.$consumers.data[$i] = $stringIndex; - $i = 0; - while (true) { - if ($i >= $size) - break b; - $e = $this.$children; - if ($i < 0) - break a; - if ($i >= $e.$size0) - break a; - if ($e.$array1.data[$i].$findBack($leftBound, $stringIndex, $testString, $matchResult) >= 0) { - $stringIndex = $this.$groupIndex0; - $matchResult.$consumers.data[$stringIndex] = (-1); - return $shift; - } - $i = $i + 1 | 0; - } - } - } - return (-1); - } - $testString = new jl_IndexOutOfBoundsException; - $testString.$suppressionEnabled = 1; - $testString.$writableStackTrace = 1; - $rt_throw($testString); -}; -$java.jur_PositiveLookBehind_hasConsumed = function($this, $matchResult) { - return 0; -}; -$java.jur_PositiveLookBehind_getName = function($this) { - return $rt_s(2211); -}; -function jur_NegativeLookBehind() { - jur_AtomicJointSet.call(this); -} -function jur_NegativeLookBehind__init_(var_0, var_1) { - var var_2 = new jur_NegativeLookBehind(); - $java.jur_NegativeLookBehind__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_NegativeLookBehind__init_ = function($this, $children, $fSet) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$children = $children; - $this.$fSet = $fSet; - $this.$groupIndex0 = $fSet.$groupIndex; -}; -$java.jur_NegativeLookBehind_matches = function($this, $stringIndex, $testString, $matchResult) { - var $size, $i, $e; - $size = $this.$children.$size0; - $i = $this.$groupIndex0; - $matchResult.$consumers.data[$i] = $stringIndex; - $i = 0; - a: { - while (true) { - if ($i >= $size) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - $e = $this.$children; - if ($i < 0) - break a; - if ($i >= $e.$size0) - break a; - if ($e.$array1.data[$i].$findBack(0, $stringIndex, $testString, $matchResult) >= 0) - break; - $i = $i + 1 | 0; - } - return (-1); - } - $testString = new jl_IndexOutOfBoundsException; - $testString.$suppressionEnabled = 1; - $testString.$writableStackTrace = 1; - $rt_throw($testString); -}; -$java.jur_NegativeLookBehind_hasConsumed = function($this, $matchResult) { - return 0; -}; -$java.jur_NegativeLookBehind_getName = function($this) { - return $rt_s(2212); -}; -function jur_SingleSet() { - jur_JointSet.call(this); - this.$kid = null; -} -function jur_SingleSet__init_(var_0, var_1) { - var var_2 = new jur_SingleSet(); - $java.jur_SingleSet__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_SingleSet__init_ = function($this, $child, $fSet) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$kid = $child; - $this.$fSet = $fSet; - $this.$groupIndex0 = $fSet.$groupIndex; -}; -$java.jur_SingleSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $start, $shift; - $start = $this.$groupIndex0; - $start = $matchResult.$groupBounds.data[$start * 2 | 0]; - $shift = $this.$groupIndex0; - $matchResult.$groupBounds.data[$shift * 2 | 0] = $stringIndex; - $shift = $this.$kid.$matches($stringIndex, $testString, $matchResult); - if ($shift >= 0) - return $shift; - $stringIndex = $this.$groupIndex0; - $matchResult.$groupBounds.data[$stringIndex * 2 | 0] = $start; - return (-1); -}; -$java.jur_SingleSet_find = function($this, $stringIndex, $testString, $matchResult) { - var $res; - $res = $this.$kid.$find0($stringIndex, $testString, $matchResult); - if ($res >= 0) { - $stringIndex = $this.$groupIndex0; - $matchResult.$groupBounds.data[$stringIndex * 2 | 0] = $res; - } - return $res; -}; -$java.jur_SingleSet_findBack = function($this, $stringIndex, $lastIndex, $testString, $matchResult) { - var $res; - $res = $this.$kid.$findBack($stringIndex, $lastIndex, $testString, $matchResult); - if ($res >= 0) { - $stringIndex = $this.$groupIndex0; - $matchResult.$groupBounds.data[$stringIndex * 2 | 0] = $res; - } - return $res; -}; -$java.jur_SingleSet_first = function($this, $set) { - return $this.$kid.$first0($set); -}; -$java.jur_SingleSet_processBackRefReplacement = function($this) { - var $set, var$2, var$3, var$4; - $set = new $java.jur_BackReferencedSingleSet; - var$2 = $this.$kid; - var$3 = $this.$fSet; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $set.$index5 = jl_Integer_toString(var$4, 10); - $set.$kid = var$2; - $set.$fSet = var$3; - $set.$groupIndex0 = var$3.$groupIndex; - $this.$next5 = $set; - return $set; -}; -$java.jur_SingleSet_processSecondPass = function($this) { - var $set; - $this.$isSecondPassVisited = 1; - if ($this.$fSet !== null && !$this.$fSet.$isSecondPassVisited) - $java.jur_AbstractSet_processSecondPass($this.$fSet); - if ($this.$kid !== null && !$this.$kid.$isSecondPassVisited) { - $set = $this.$kid.$processBackRefReplacement(); - if ($set !== null) { - $this.$kid.$isSecondPassVisited = 1; - $this.$kid = $set; - } - $this.$kid.$processSecondPass(); - } -}; -$java.jur_SpecialToken = function() { - jl_Object.call(this); -}; -function jur_AbstractCharClass() { - var a = this; $java.jur_SpecialToken.call(a); - a.$alt0 = 0; - a.$altSurrogates = 0; - a.$lowHighSurrogates = null; - a.$charClassWithoutSurrogates = null; - a.$charClassWithSurrogates = null; - a.$mayContainSupplCodepoints = 0; -} -$java.jur_AbstractCharClass_charClasses = null; -$java.jur_AbstractCharClass_getBits = function($this) { - return null; -}; -$java.jur_AbstractCharClass_getLowHighSurrogates = function($this) { - return $this.$lowHighSurrogates; -}; -function jur_AbstractCharClass_hasLowHighSurrogates($this) { - return !$this.$altSurrogates ? ($java.ju_BitSet_nextSetBit($this.$lowHighSurrogates, 0) >= 2048 ? 0 : 1) : $java.ju_BitSet_nextClearBit($this.$lowHighSurrogates, 0) >= 2048 ? 0 : 1; -} -$java.jur_AbstractCharClass_mayContainSupplCodepoints = function($this) { - return $this.$mayContainSupplCodepoints; -}; -$java.jur_AbstractCharClass_getInstance = function($this) { - return $this; -}; -function jur_AbstractCharClass_getSurrogates($this) { - var $lHS, var$2; - if ($this.$charClassWithSurrogates === null) { - $lHS = $this.$getLowHighSurrogates(); - var$2 = new $java.jur_AbstractCharClass$1; - var$2.$this$08 = $this; - var$2.$val$lHS = $lHS; - $lHS = new ju_BitSet; - $lHS.$data9 = $rt_createIntArray(64); - var$2.$lowHighSurrogates = $lHS; - $this.$charClassWithSurrogates = var$2; - jur_AbstractCharClass_setNegative($this.$charClassWithSurrogates, $this.$altSurrogates); - } - return $this.$charClassWithSurrogates; -} -function jur_AbstractCharClass_getWithoutSurrogates($this) { - var $lHS, var$2; - if ($this.$charClassWithoutSurrogates === null) { - $lHS = $this.$getLowHighSurrogates(); - var$2 = new $java.jur_AbstractCharClass$2; - var$2.$this$09 = $this; - var$2.$val$lHS0 = $lHS; - var$2.$val$thisClass = $this; - $lHS = new ju_BitSet; - $lHS.$data9 = $rt_createIntArray(64); - var$2.$lowHighSurrogates = $lHS; - $this.$charClassWithoutSurrogates = var$2; - jur_AbstractCharClass_setNegative($this.$charClassWithoutSurrogates, $this.$alt0); - $this.$charClassWithoutSurrogates.$mayContainSupplCodepoints = $this.$mayContainSupplCodepoints; - } - return $this.$charClassWithoutSurrogates; -} -$java.jur_AbstractCharClass_hasUCI = function($this) { - return 0; -}; -function jur_AbstractCharClass_setNegative($this, $value) { - if ($this.$alt0 ^ $value) { - $this.$alt0 = $this.$alt0 ? 0 : 1; - $this.$altSurrogates = $this.$altSurrogates ? 0 : 1; - } - if (!$this.$mayContainSupplCodepoints) - $this.$mayContainSupplCodepoints = 1; - return $this; -} -$java.jur_AbstractCharClass_isNegative = function($this) { - return $this.$alt0; -}; -$java.jur_AbstractCharClass_getPredefinedClass = function($name, $negative) { - return $java.jur_AbstractCharClass$LazyCharClass_getValue($java.jur_AbstractCharClass$PredefinedCharacterClasses_getObject($java.jur_AbstractCharClass_charClasses, $name), $negative); -}; -function jur_AbstractCharClass__clinit_() { - $java.jur_AbstractCharClass_charClasses = new jur_AbstractCharClass$PredefinedCharacterClasses; -} -function jur_CharClass() { - var a = this; jur_AbstractCharClass.call(a); - a.$ci = 0; - a.$uci = 0; - a.$hasUCI0 = 0; - a.$invertedSurrogates = 0; - a.$inverted = 0; - a.$hideBits = 0; - a.$bits = null; - a.$nonBitSet = null; -} -$java.jur_CharClass__init_ = function() { - var var_0 = new jur_CharClass(); - jur_CharClass__init_(var_0); - return var_0; -}; -function jur_CharClass__init_($this) { - var var$1; - var$1 = new ju_BitSet; - var$1.$data9 = $rt_createIntArray(64); - $this.$lowHighSurrogates = var$1; - var$1 = new ju_BitSet; - var$1.$data9 = $rt_createIntArray(0); - $this.$bits = var$1; -} -function jur_CharClass_add($this, $ch) { - var var$2; - a: { - if ($this.$ci) { - b: { - if (!($ch >= 97 && $ch <= 122)) { - if ($ch < 65) - break b; - if ($ch > 90) - break b; - } - if ($this.$inverted) { - $java.ju_BitSet_clear($this.$bits, jur_Pattern_getSupplement($ch & 65535)); - break a; - } - $java.ju_BitSet_set($this.$bits, jur_Pattern_getSupplement($ch & 65535)); - break a; - } - if ($this.$uci && $ch > 128) { - $this.$hasUCI0 = 1; - $ch = (String.fromCharCode((String.fromCharCode($ch)).toUpperCase().charCodeAt(0))).toLowerCase().charCodeAt(0); - } - } - } - var$2 = $ch <= 56319 && $ch >= 55296 ? 1 : 0; - if (!(!var$2 && !($ch <= 57343 && $ch >= 56320 ? 1 : 0))) { - if ($this.$invertedSurrogates) - $java.ju_BitSet_clear($this.$lowHighSurrogates, $ch - 55296 | 0); - else - $java.ju_BitSet_set($this.$lowHighSurrogates, $ch - 55296 | 0); - } - if ($this.$inverted) - $java.ju_BitSet_clear($this.$bits, $ch); - else - $java.ju_BitSet_set($this.$bits, $ch); - if (!$this.$mayContainSupplCodepoints && ($ch >= 65536 && $ch <= 1114111 ? 1 : 0)) - $this.$mayContainSupplCodepoints = 1; - return $this; -} -function jur_CharClass_add1($this, $cc) { - var $curAlt, $nb, var$4; - if (!$this.$mayContainSupplCodepoints && $cc.$mayContainSupplCodepoints) - $this.$mayContainSupplCodepoints = 1; - if ($this.$invertedSurrogates) { - if (!$cc.$altSurrogates) - $java.ju_BitSet_andNot($this.$lowHighSurrogates, $cc.$getLowHighSurrogates()); - else - $java.ju_BitSet_and($this.$lowHighSurrogates, $cc.$getLowHighSurrogates()); - } else if (!$cc.$altSurrogates) - $java.ju_BitSet_or($this.$lowHighSurrogates, $cc.$getLowHighSurrogates()); - else { - $java.ju_BitSet_xor($this.$lowHighSurrogates, $cc.$getLowHighSurrogates()); - $java.ju_BitSet_and($this.$lowHighSurrogates, $cc.$getLowHighSurrogates()); - $this.$altSurrogates = $this.$altSurrogates ? 0 : 1; - $this.$invertedSurrogates = 1; - } - if (!$this.$hideBits && $cc.$getBits() !== null) { - if ($this.$inverted) { - if (!$cc.$alt0) - $java.ju_BitSet_andNot($this.$bits, $cc.$getBits()); - else - $java.ju_BitSet_and($this.$bits, $cc.$getBits()); - } else if (!$cc.$alt0) - $java.ju_BitSet_or($this.$bits, $cc.$getBits()); - else { - $java.ju_BitSet_xor($this.$bits, $cc.$getBits()); - $java.ju_BitSet_and($this.$bits, $cc.$getBits()); - $this.$alt0 = $this.$alt0 ? 0 : 1; - $this.$inverted = 1; - } - } else { - $curAlt = $this.$alt0; - if ($this.$nonBitSet !== null) { - $nb = $this.$nonBitSet; - if (!$curAlt) { - var$4 = new $java.jur_CharClass$5; - var$4.$this$010 = $this; - var$4.$val$curAlt = $curAlt; - var$4.$val$nb = $nb; - var$4.$val$cc = $cc; - $cc = new ju_BitSet; - $cc.$data9 = $rt_createIntArray(64); - var$4.$lowHighSurrogates = $cc; - $this.$nonBitSet = var$4; - } else { - var$4 = new $java.jur_CharClass$4; - var$4.$this$011 = $this; - var$4.$val$curAlt0 = $curAlt; - var$4.$val$nb0 = $nb; - var$4.$val$cc0 = $cc; - $cc = new ju_BitSet; - $cc.$data9 = $rt_createIntArray(64); - var$4.$lowHighSurrogates = $cc; - $this.$nonBitSet = var$4; - } - } else { - if ($curAlt && !$this.$inverted && ($this.$bits.$length5 ? 0 : 1)) { - $nb = new $java.jur_CharClass$1; - $nb.$this$012 = $this; - $nb.$val$cc1 = $cc; - $cc = new ju_BitSet; - $cc.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $cc; - $this.$nonBitSet = $nb; - } else if (!$curAlt) { - $nb = new $java.jur_CharClass$3; - $nb.$this$013 = $this; - $nb.$val$curAlt1 = $curAlt; - $nb.$val$cc2 = $cc; - $cc = new ju_BitSet; - $cc.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $cc; - $this.$nonBitSet = $nb; - } else { - $nb = new $java.jur_CharClass$2; - $nb.$this$014 = $this; - $nb.$val$curAlt2 = $curAlt; - $nb.$val$cc3 = $cc; - $cc = new ju_BitSet; - $cc.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $cc; - $this.$nonBitSet = $nb; - } - $this.$hideBits = 1; - } - } - return $this; -} -function jur_CharClass_add0($this, $i, $end) { - var var$3; - if ($i > $end) { - var$3 = new jl_IllegalArgumentException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - a: { - b: { - if (!$this.$ci) { - if ($end < 55296) - break b; - if ($i > 57343) - break b; - } - $end = $end + 1 | 0; - while (true) { - if ($i >= $end) - break a; - jur_CharClass_add($this, $i); - $i = $i + 1 | 0; - } - } - if ($this.$inverted) - $java.ju_BitSet_clear0($this.$bits, $i, $end + 1 | 0); - else - $java.ju_BitSet_set0($this.$bits, $i, $end + 1 | 0); - } - return $this; -} -function jur_CharClass_union($this, $clazz) { - var $curAlt, $nb, var$4; - if (!$this.$mayContainSupplCodepoints && $clazz.$mayContainSupplCodepoints) - $this.$mayContainSupplCodepoints = 1; - if ($clazz.$hasUCI0) - $this.$hasUCI0 = 1; - if (!($this.$altSurrogates ^ $clazz.$altSurrogates)) { - if (!$this.$altSurrogates) - $java.ju_BitSet_or($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - else - $java.ju_BitSet_and($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - } else if ($this.$altSurrogates) - $java.ju_BitSet_andNot($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - else { - $java.ju_BitSet_xor($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - $java.ju_BitSet_and($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - $this.$altSurrogates = 1; - } - if (!$this.$hideBits && (!$clazz.$hideBits ? $clazz.$bits : null) !== null) { - if (!($this.$alt0 ^ $clazz.$alt0)) { - if (!$this.$alt0) - $java.ju_BitSet_or($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - else - $java.ju_BitSet_and($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - } else if ($this.$alt0) - $java.ju_BitSet_andNot($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - else { - $java.ju_BitSet_xor($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - $java.ju_BitSet_and($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - $this.$alt0 = 1; - } - } else { - $curAlt = $this.$alt0; - if ($this.$nonBitSet !== null) { - $nb = $this.$nonBitSet; - if (!$curAlt) { - var$4 = new $java.jur_CharClass$11; - var$4.$this$015 = $this; - var$4.$val$curAlt3 = $curAlt; - var$4.$val$nb1 = $nb; - var$4.$val$clazz = $clazz; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - var$4.$lowHighSurrogates = $clazz; - $this.$nonBitSet = var$4; - } else { - var$4 = new $java.jur_CharClass$10; - var$4.$this$016 = $this; - var$4.$val$curAlt4 = $curAlt; - var$4.$val$nb2 = $nb; - var$4.$val$clazz0 = $clazz; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - var$4.$lowHighSurrogates = $clazz; - $this.$nonBitSet = var$4; - } - } else { - if (!$this.$inverted && ($this.$bits.$length5 ? 0 : 1)) { - if (!$curAlt) { - $nb = new $java.jur_CharClass$7; - $nb.$this$017 = $this; - $nb.$val$clazz1 = $clazz; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $clazz; - $this.$nonBitSet = $nb; - } else { - $nb = new $java.jur_CharClass$6; - $nb.$this$018 = $this; - $nb.$val$clazz2 = $clazz; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $clazz; - $this.$nonBitSet = $nb; - } - } else if (!$curAlt) { - $nb = new $java.jur_CharClass$9; - $nb.$this$019 = $this; - $nb.$val$clazz3 = $clazz; - $nb.$val$curAlt5 = $curAlt; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $clazz; - $this.$nonBitSet = $nb; - } else { - $nb = new $java.jur_CharClass$8; - $nb.$this$020 = $this; - $nb.$val$clazz4 = $clazz; - $nb.$val$curAlt6 = $curAlt; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $clazz; - $this.$nonBitSet = $nb; - } - $this.$hideBits = 1; - } - } -} -function jur_CharClass_intersection($this, $clazz) { - var $curAlt, $nb, var$4; - if (!$this.$mayContainSupplCodepoints && $clazz.$mayContainSupplCodepoints) - $this.$mayContainSupplCodepoints = 1; - if ($clazz.$hasUCI0) - $this.$hasUCI0 = 1; - if (!($this.$altSurrogates ^ $clazz.$altSurrogates)) { - if (!$this.$altSurrogates) - $java.ju_BitSet_and($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - else - $java.ju_BitSet_or($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - } else if (!$this.$altSurrogates) - $java.ju_BitSet_andNot($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - else { - $java.ju_BitSet_xor($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - $java.ju_BitSet_and($this.$lowHighSurrogates, $clazz.$lowHighSurrogates); - $this.$altSurrogates = 0; - } - if (!$this.$hideBits && (!$clazz.$hideBits ? $clazz.$bits : null) !== null) { - if (!($this.$alt0 ^ $clazz.$alt0)) { - if (!$this.$alt0) - $java.ju_BitSet_and($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - else - $java.ju_BitSet_or($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - } else if (!$this.$alt0) - $java.ju_BitSet_andNot($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - else { - $java.ju_BitSet_xor($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - $java.ju_BitSet_and($this.$bits, !$clazz.$hideBits ? $clazz.$bits : null); - $this.$alt0 = 0; - } - } else { - $curAlt = $this.$alt0; - if ($this.$nonBitSet !== null) { - $nb = $this.$nonBitSet; - if (!$curAlt) { - var$4 = new $java.jur_CharClass$17; - var$4.$this$021 = $this; - var$4.$val$curAlt7 = $curAlt; - var$4.$val$nb3 = $nb; - var$4.$val$clazz5 = $clazz; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - var$4.$lowHighSurrogates = $clazz; - $this.$nonBitSet = var$4; - } else { - var$4 = new $java.jur_CharClass$16; - var$4.$this$022 = $this; - var$4.$val$curAlt8 = $curAlt; - var$4.$val$nb4 = $nb; - var$4.$val$clazz6 = $clazz; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - var$4.$lowHighSurrogates = $clazz; - $this.$nonBitSet = var$4; - } - } else { - if (!$this.$inverted && ($this.$bits.$length5 ? 0 : 1)) { - if (!$curAlt) { - $nb = new $java.jur_CharClass$13; - $nb.$this$023 = $this; - $nb.$val$clazz7 = $clazz; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $clazz; - $this.$nonBitSet = $nb; - } else { - $nb = new $java.jur_CharClass$12; - $nb.$this$024 = $this; - $nb.$val$clazz8 = $clazz; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $clazz; - $this.$nonBitSet = $nb; - } - } else if (!$curAlt) { - $nb = new $java.jur_CharClass$15; - $nb.$this$025 = $this; - $nb.$val$clazz9 = $clazz; - $nb.$val$curAlt9 = $curAlt; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $clazz; - $this.$nonBitSet = $nb; - } else { - $nb = new $java.jur_CharClass$14; - $nb.$this$026 = $this; - $nb.$val$clazz10 = $clazz; - $nb.$val$curAlt10 = $curAlt; - $clazz = new ju_BitSet; - $clazz.$data9 = $rt_createIntArray(64); - $nb.$lowHighSurrogates = $clazz; - $this.$nonBitSet = $nb; - } - $this.$hideBits = 1; - } - } -} -$java.jur_CharClass_contains = function($this, $ch) { - if ($this.$nonBitSet !== null) - return $this.$alt0 ^ $this.$nonBitSet.$contains1($ch); - return $this.$alt0 ^ $java.ju_BitSet_get($this.$bits, $ch); -}; -$java.jur_CharClass_getBits = function($this) { - if (!$this.$hideBits) - return $this.$bits; - return null; -}; -$java.jur_CharClass_getLowHighSurrogates = function($this) { - return $this.$lowHighSurrogates; -}; -$java.jur_CharClass_getInstance = function($this) { - var $bs, $res; - if ($this.$nonBitSet !== null) - return $this; - $bs = !$this.$hideBits ? $this.$bits : null; - $res = new $java.jur_CharClass$18; - $res.$this$027 = $this; - $res.$val$bs = $bs; - $bs = new ju_BitSet; - $bs.$data9 = $rt_createIntArray(64); - $res.$lowHighSurrogates = $bs; - return jur_AbstractCharClass_setNegative($res, $this.$alt0); -}; -$java.jur_CharClass_toString = function($this) { - var $temp, $i, var$3, var$4, var$5; - $temp = new jl_StringBuilder; - $temp.$buffer = $rt_createCharArray(16); - $i = $java.ju_BitSet_nextSetBit($this.$bits, 0); - while ($i >= 0) { - var$3 = jl_Character_toChars($i); - var$4 = var$3.data.length; - jl_AbstractStringBuilder_insert6($temp, $temp.$length, var$3, 0, var$4); - var$5 = $temp.$length; - jl_AbstractStringBuilder_insertSpace($temp, var$5, var$5 + 1 | 0); - $temp.$buffer.data[var$5] = 124; - $i = $java.ju_BitSet_nextSetBit($this.$bits, $i + 1 | 0); - } - if ($temp.$length > 0) - jl_AbstractStringBuilder_deleteCharAt($temp, $temp.$length - 1 | 0); - return jl_String__init_0($temp.$buffer, 0, $temp.$length); -}; -$java.jur_CharClass_hasUCI = function($this) { - return $this.$hasUCI0; -}; -$java.ju_MissingResourceException = function() { - var a = this; jl_RuntimeException.call(a); - a.$className = null; - a.$key1 = null; -}; -function jur_QuantifierSet() { - jur_AbstractSet.call(this); - this.$innerSet = null; -} -$java.jur_QuantifierSet__init_ = function(var_0, var_1, var_2) { - var var_3 = new jur_QuantifierSet(); - jur_QuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -}; -function jur_QuantifierSet__init_($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; -} -$java.jur_QuantifierSet_getInnerSet = function($this) { - return $this.$innerSet; -}; -$java.jur_QuantifierSet_first = function($this, $set) { - return !$this.$innerSet.$first0($set) && !$this.$next5.$first0($set) ? 0 : 1; -}; -$java.jur_QuantifierSet_hasConsumed = function($this, $mr) { - return 1; -}; -$java.jur_QuantifierSet_processSecondPass = function($this) { - var $set; - $this.$isSecondPassVisited = 1; - if ($this.$next5 !== null && !$this.$next5.$isSecondPassVisited) { - $set = $this.$next5.$processBackRefReplacement(); - if ($set !== null) { - $this.$next5.$isSecondPassVisited = 1; - $this.$next5 = $set; - } - $this.$next5.$processSecondPass(); - } - if ($this.$innerSet !== null) { - if (!$this.$innerSet.$isSecondPassVisited) { - $set = $this.$innerSet.$processBackRefReplacement(); - if ($set !== null) { - $this.$innerSet.$isSecondPassVisited = 1; - $this.$innerSet = $set; - } - $this.$innerSet.$processSecondPass(); - } else if ($this.$innerSet instanceof jur_SingleSet && $this.$innerSet.$fSet.$isBackReferenced) - $this.$innerSet = $this.$innerSet.$next5; - } -}; -function jur_LeafQuantifierSet() { - jur_QuantifierSet.call(this); - this.$leaf = null; -} -function jur_LeafQuantifierSet__init_(var_0, var_1, var_2) { - var var_3 = new jur_LeafQuantifierSet(); - $java.jur_LeafQuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_LeafQuantifierSet__init_ = function($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$leaf = $innerSet; -}; -$java.jur_LeafQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $i, var$5; - $i = 0; - a: { - while (($stringIndex + $this.$leaf.$charCount0() | 0) <= $matchResult.$rightBound) { - var$5 = $this.$leaf.$accepts($stringIndex, $testString); - if (var$5 <= 0) - break a; - $stringIndex = $stringIndex + var$5 | 0; - $i = $i + 1 | 0; - } - } - while (true) { - if ($i < 0) - return (-1); - var$5 = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if (var$5 >= 0) - break; - $stringIndex = $stringIndex - $this.$leaf.$charCount0() | 0; - $i = $i + (-1) | 0; - } - return var$5; -}; -$java.jur_LeafQuantifierSet_getName = function($this) { - return $rt_s(2213); -}; -function jur_CompositeQuantifierSet() { - jur_LeafQuantifierSet.call(this); - this.$quantifier0 = null; -} -function jur_CompositeQuantifierSet__init_(var_0, var_1, var_2, var_3) { - var var_4 = new jur_CompositeQuantifierSet(); - $java.jur_CompositeQuantifierSet__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.jur_CompositeQuantifierSet__init_ = function($this, $quant, $innerSet, $next, $type) { - var var$5; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$5, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$leaf = $innerSet; - $this.$quantifier0 = $quant; -}; -$java.jur_CompositeQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $min, $max, $i, $shift; - $min = $this.$quantifier0.$min1; - $max = $this.$quantifier0.$max0; - $i = 0; - while (true) { - if ($i >= $min) { - a: { - while ($i < $max) { - if (($stringIndex + $this.$leaf.$charCount0() | 0) > $matchResult.$rightBound) - break a; - $shift = $this.$leaf.$accepts($stringIndex, $testString); - if ($shift < 1) - break a; - $stringIndex = $stringIndex + $shift | 0; - $i = $i + 1 | 0; - } - } - while (true) { - if ($i < $min) - return (-1); - $shift = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if ($shift >= 0) - break; - $stringIndex = $stringIndex - $this.$leaf.$charCount0() | 0; - $i = $i + (-1) | 0; - } - return $shift; - } - if (($stringIndex + $this.$leaf.$charCount0() | 0) > $matchResult.$rightBound) { - $matchResult.$hitEnd = 1; - return (-1); - } - $shift = $this.$leaf.$accepts($stringIndex, $testString); - if ($shift < 1) - break; - $stringIndex = $stringIndex + $shift | 0; - $i = $i + 1 | 0; - } - return (-1); -}; -$java.jur_CompositeQuantifierSet_getName = function($this) { - return $java.jur_Quantifier_toString($this.$quantifier0); -}; -function jur_GroupQuantifierSet() { - jur_QuantifierSet.call(this); -} -function jur_GroupQuantifierSet__init_(var_0, var_1, var_2) { - var var_3 = new jur_GroupQuantifierSet(); - $java.jur_GroupQuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_GroupQuantifierSet__init_ = function($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; -}; -$java.jur_GroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $nextIndex; - if (!$this.$innerSet.$hasConsumed($matchResult)) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - $nextIndex = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - if ($nextIndex >= 0) - return $nextIndex; - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -$java.jur_GroupQuantifierSet_getName = function($this) { - return $rt_s(2214); -}; -function jur_AltQuantifierSet() { - jur_LeafQuantifierSet.call(this); -} -function jur_AltQuantifierSet__init_(var_0, var_1, var_2) { - var var_3 = new jur_AltQuantifierSet(); - $java.jur_AltQuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_AltQuantifierSet__init_ = function($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$leaf = $innerSet; -}; -$java.jur_AltQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $shift; - $shift = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - if ($shift < 0) - $shift = $this.$next5.$matches($stringIndex, $testString, $matchResult); - return $shift; -}; -$java.jur_AltQuantifierSet_setNext = function($this, $next) { - $this.$next5 = $next; - $this.$innerSet.$setNext($next); -}; -function jur_UnifiedQuantifierSet() { - jur_LeafQuantifierSet.call(this); -} -$java.jur_UnifiedQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - while (($stringIndex + $this.$leaf.$charCount0() | 0) <= $matchResult.$rightBound && $this.$leaf.$accepts($stringIndex, $testString) > 0) { - $stringIndex = $stringIndex + $this.$leaf.$charCount0() | 0; - } - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -$java.jur_UnifiedQuantifierSet_find = function($this, $stringIndex, $testString, $matchResult) { - var $startSearch, $newSearch, $newSearch_0; - $startSearch = $this.$next5.$find0($stringIndex, $testString, $matchResult); - if ($startSearch < 0) - return (-1); - $newSearch = $startSearch - $this.$leaf.$charCount0() | 0; - while ($newSearch >= $stringIndex && $this.$leaf.$accepts($newSearch, $testString) > 0) { - $newSearch_0 = $newSearch - $this.$leaf.$charCount0() | 0; - $startSearch = $newSearch; - $newSearch = $newSearch_0; - } - return $startSearch; -}; -function jl_NumberFormatException() { - jl_IllegalArgumentException.call(this); -} -function jl_NumberFormatException__init_0() { - var var_0 = new jl_NumberFormatException(); - jl_NumberFormatException__init_(var_0); - return var_0; -} -function jl_NumberFormatException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -$java.jur_Quantifier = function() { - var a = this; $java.jur_SpecialToken.call(a); - a.$min1 = 0; - a.$max0 = 0; -}; -$java.jur_Quantifier_min = function($this) { - return $this.$min1; -}; -$java.jur_Quantifier_max = function($this) { - return $this.$max0; -}; -$java.jur_Quantifier_toString = function($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(2215)); - var$2 = $this.$min1; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(267)); - var$3 = $this.$max0 == 2147483647 ? $rt_s(44) : jl_Integer_toString($this.$max0, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$3); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2216)); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_FSet$PossessiveFSet() { - jur_AbstractSet.call(this); -} -$java.jur_FSet$PossessiveFSet__init_ = function() { - var var_0 = new jur_FSet$PossessiveFSet(); - jur_FSet$PossessiveFSet__init_(var_0); - return var_0; -}; -function jur_FSet$PossessiveFSet__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); -} -$java.jur_FSet$PossessiveFSet_matches = function($this, $stringIndex, $testString, $matchResult) { - return $stringIndex; -}; -$java.jur_FSet$PossessiveFSet_getName = function($this) { - return $rt_s(2217); -}; -$java.jur_FSet$PossessiveFSet_hasConsumed = function($this, $mr) { - return 0; -}; -function ju_BitSet() { - var a = this; jl_Object.call(a); - a.$data9 = null; - a.$length5 = 0; -} -$java.ju_BitSet__init_ = function() { - var var_0 = new ju_BitSet(); - ju_BitSet__init_(var_0); - return var_0; -}; -function ju_BitSet__init_($this) { - $this.$data9 = $rt_createIntArray(0); -} -$java.ju_BitSet_set = function($this, $bitIndex) { - var $index, var$3; - $index = $bitIndex / 32 | 0; - if ($bitIndex >= $this.$length5) { - $java.ju_BitSet_ensureCapacity($this, $index + 1 | 0); - $this.$length5 = $bitIndex + 1 | 0; - } - var$3 = $this.$data9.data; - var$3[$index] = var$3[$index] | 1 << ($bitIndex % 32 | 0); -}; -$java.ju_BitSet_set0 = function($this, $fromIndex, $toIndex) { - var var$3, $fromDataIndex, $toDataIndex, var$6, var$7, $i; - if ($fromIndex > $toIndex) { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - $fromDataIndex = $fromIndex / 32 | 0; - $toDataIndex = $toIndex / 32 | 0; - if ($toIndex > $this.$length5) { - $java.ju_BitSet_ensureCapacity($this, $toDataIndex + 1 | 0); - $this.$length5 = $toIndex; - } - if ($fromDataIndex == $toDataIndex) { - var$6 = $this.$data9.data; - $toDataIndex = var$6[$fromDataIndex]; - var$7 = (-1) << ($fromIndex % 32 | 0); - $fromIndex = $toIndex % 32 | 0; - var$6[$fromDataIndex] = $toDataIndex | var$7 & (!$fromIndex ? 0 : (-1) >>> (32 - $fromIndex | 0)); - } else { - var$6 = $this.$data9.data; - var$6[$fromDataIndex] = var$6[$fromDataIndex] | (-1) << ($fromIndex % 32 | 0); - $i = $fromDataIndex + 1 | 0; - while ($i < $toDataIndex) { - $this.$data9.data[$i] = (-1); - $i = $i + 1 | 0; - } - var$6 = $this.$data9.data; - $fromIndex = var$6[$toDataIndex]; - $toIndex = $toIndex % 32 | 0; - var$6[$toDataIndex] = $fromIndex | (!$toIndex ? 0 : (-1) >>> (32 - $toIndex | 0)); - } -}; -$java.ju_BitSet_clear = function($this, $bitIndex) { - var $index, var$3, var$4, var$5; - $index = $bitIndex / 32 | 0; - if ($index < $this.$data9.data.length) { - var$3 = $this.$data9.data; - var$4 = var$3[$index]; - var$5 = ($bitIndex % 32 | 0) & 31; - var$3[$index] = var$4 & ((-2) << var$5 | (-2) >>> (32 - var$5 | 0)); - if ($bitIndex == ($this.$length5 - 1 | 0)) - $java.ju_BitSet_recalculateLength($this); - } -}; -$java.ju_BitSet_clear0 = function($this, $fromIndex, $toIndex) { - var var$3, $fromDataIndex, $toDataIndex, var$6, $i, var$8; - if ($fromIndex > $toIndex) { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - if ($fromIndex >= $this.$length5) - return; - $fromDataIndex = $this.$length5; - if ($fromDataIndex < $toIndex) - $toIndex = $fromDataIndex; - $fromDataIndex = $fromIndex / 32 | 0; - $toDataIndex = $toIndex / 32 | 0; - if ($fromDataIndex == $toDataIndex) { - var$6 = $this.$data9.data; - $i = var$6[$fromDataIndex]; - $fromIndex = $fromIndex % 32 | 0; - var$6[$fromDataIndex] = $i & ((!$fromIndex ? 0 : (-1) >>> (32 - $fromIndex | 0)) | (-1) << ($toIndex % 32 | 0)); - } else { - var$6 = $this.$data9.data; - var$8 = var$6[$fromDataIndex]; - $fromIndex = $fromIndex % 32 | 0; - var$6[$fromDataIndex] = var$8 & (!$fromIndex ? 0 : (-1) >>> (32 - $fromIndex | 0)); - $i = $fromDataIndex + 1 | 0; - while ($i < $toDataIndex) { - $this.$data9.data[$i] = 0; - $i = $i + 1 | 0; - } - var$6 = $this.$data9.data; - var$6[$toDataIndex] = var$6[$toDataIndex] & (-1) << ($toIndex % 32 | 0); - } - $java.ju_BitSet_recalculateLength($this); -}; -$java.ju_BitSet_get = function($this, $bitIndex) { - var $index; - $index = $bitIndex / 32 | 0; - return $index < $this.$data9.data.length && $this.$data9.data[$index] & 1 << ($bitIndex % 32 | 0) ? 1 : 0; -}; -$java.ju_BitSet_nextSetBit = function($this, $fromIndex) { - var $index, $top, $i; - if ($fromIndex >= $this.$length5) - return (-1); - $index = $fromIndex / 32 | 0; - $top = $this.$data9.data[$index] >>> ($fromIndex % 32 | 0); - if ($top) - return jl_Integer_numberOfTrailingZeros($top) + $fromIndex | 0; - $top = ($this.$length5 + 31 | 0) / 32 | 0; - $i = $index + 1 | 0; - while ($i < $top) { - if ($this.$data9.data[$i]) - return ($i * 32 | 0) + jl_Integer_numberOfTrailingZeros($this.$data9.data[$i]) | 0; - $i = $i + 1 | 0; - } - return (-1); -}; -$java.ju_BitSet_nextClearBit = function($this, $fromIndex) { - var $index, $top, $i; - if ($fromIndex >= $this.$length5) - return $fromIndex; - $index = $fromIndex / 32 | 0; - $top = ($this.$data9.data[$index] ^ (-1)) >>> ($fromIndex % 32 | 0); - if ($top) - return jl_Integer_numberOfTrailingZeros($top) + $fromIndex | 0; - $top = ($this.$length5 + 31 | 0) / 32 | 0; - $i = $index + 1 | 0; - while ($i < $top) { - if ($this.$data9.data[$i] != (-1)) - return ($i * 32 | 0) + jl_Integer_numberOfTrailingZeros($this.$data9.data[$i] ^ (-1)) | 0; - $i = $i + 1 | 0; - } - return $this.$length5; -}; -$java.ju_BitSet_ensureCapacity = function($this, $capacity) { - var $newArrayLength, $newArrayLength_0, var$4, var$5, var$6; - if ($this.$data9.data.length >= $capacity) - return; - $newArrayLength = ($capacity * 3 | 0) / 2 | 0; - $newArrayLength_0 = ($this.$data9.data.length * 2 | 0) + 1 | 0; - if ($newArrayLength > $newArrayLength_0) - $newArrayLength_0 = $newArrayLength; - var$4 = $this.$data9.data; - var$5 = $rt_createIntArray($newArrayLength_0); - $capacity = var$4.length; - if ($newArrayLength_0 < $capacity) - $capacity = $newArrayLength_0; - var$6 = var$5.data; - $newArrayLength = 0; - while ($newArrayLength < $capacity) { - var$6[$newArrayLength] = var$4[$newArrayLength]; - $newArrayLength = $newArrayLength + 1 | 0; - } - $this.$data9 = var$5; -}; -$java.ju_BitSet_recalculateLength = function($this) { - var $top, $i, $sz; - $top = ($this.$length5 + 31 | 0) / 32 | 0; - $this.$length5 = $top * 32 | 0; - $i = $top - 1 | 0; - a: { - while (true) { - if ($i < 0) - break a; - $sz = jl_Integer_numberOfLeadingZeros($this.$data9.data[$i]); - if ($sz < 32) - break; - $i = $i + (-1) | 0; - $this.$length5 = $this.$length5 - 32 | 0; - } - $this.$length5 = $this.$length5 - $sz | 0; - } -}; -$java.ju_BitSet_intersects = function($this, $set) { - var $sz, $sz_0, $i; - $sz = $this.$data9.data.length; - $sz_0 = $set.$data9.data.length; - if ($sz < $sz_0) - $sz_0 = $sz; - $i = 0; - while ($i < $sz_0) { - if ($this.$data9.data[$i] & $set.$data9.data[$i]) - return 1; - $i = $i + 1 | 0; - } - return 0; -}; -$java.ju_BitSet_and = function($this, $set) { - var $sz, $sz_0, $i, var$5; - $sz = $this.$data9.data.length; - $sz_0 = $set.$data9.data.length; - if ($sz < $sz_0) - $sz_0 = $sz; - $i = 0; - while ($i < $sz_0) { - var$5 = $this.$data9.data; - var$5[$i] = var$5[$i] & $set.$data9.data[$i]; - $i = $i + 1 | 0; - } - while ($sz_0 < $this.$data9.data.length) { - $this.$data9.data[$sz_0] = 0; - $sz_0 = $sz_0 + 1 | 0; - } - $sz = $this.$length5; - $sz_0 = $set.$length5; - if ($sz < $sz_0) - $sz_0 = $sz; - $this.$length5 = $sz_0; - $java.ju_BitSet_recalculateLength($this); -}; -$java.ju_BitSet_andNot = function($this, $set) { - var $sz, $sz_0, $i, var$5; - $sz = $this.$data9.data.length; - $sz_0 = $set.$data9.data.length; - if ($sz < $sz_0) - $sz_0 = $sz; - $i = 0; - while ($i < $sz_0) { - var$5 = $this.$data9.data; - var$5[$i] = var$5[$i] & ($set.$data9.data[$i] ^ (-1)); - $i = $i + 1 | 0; - } - $java.ju_BitSet_recalculateLength($this); -}; -$java.ju_BitSet_or = function($this, $set) { - var $sz, $sz_0, $i, var$5; - $sz = $this.$length5; - $sz_0 = $set.$length5; - if ($sz > $sz_0) - $sz_0 = $sz; - $this.$length5 = $sz_0; - $java.ju_BitSet_ensureCapacity($this, ($this.$length5 + 31 | 0) / 32 | 0); - $sz = $this.$data9.data.length; - $sz_0 = $set.$length5; - if ($sz < $sz_0) - $sz_0 = $sz; - $i = 0; - while ($i < $sz_0) { - var$5 = $this.$data9.data; - var$5[$i] = var$5[$i] | $set.$data9.data[$i]; - $i = $i + 1 | 0; - } -}; -$java.ju_BitSet_xor = function($this, $set) { - var $sz, $sz_0, $i, var$5; - $sz = $this.$length5; - $sz_0 = $set.$length5; - if ($sz > $sz_0) - $sz_0 = $sz; - $this.$length5 = $sz_0; - $java.ju_BitSet_ensureCapacity($this, ($this.$length5 + 31 | 0) / 32 | 0); - $sz = $this.$data9.data.length; - $sz_0 = $set.$length5; - if ($sz < $sz_0) - $sz_0 = $sz; - $i = 0; - while ($i < $sz_0) { - var$5 = $this.$data9.data; - var$5[$i] = var$5[$i] ^ $set.$data9.data[$i]; - $i = $i + 1 | 0; - } - $java.ju_BitSet_recalculateLength($this); -}; -$java.ju_BitSet_isEmpty = function($this) { - return $this.$length5 ? 0 : 1; -}; -function jur_LowHighSurrogateRangeSet() { - var a = this; jur_JointSet.call(a); - a.$surrChars = null; - a.$alt3 = 0; -} -$java.jur_LowHighSurrogateRangeSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_LowHighSurrogateRangeSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $startStr, $strLength, var$6, $high, $ch, $low; - $startStr = $matchResult.$leftBound; - $strLength = $matchResult.$rightBound; - var$6 = $stringIndex + 1 | 0; - $high = $rt_compare(var$6, $strLength); - if ($high > 0) { - $matchResult.$hitEnd = 1; - return (-1); - } - $ch = jl_String_charAt($testString, $stringIndex); - if (!$this.$surrChars.$contains1($ch)) - return (-1); - $low = $ch & 64512; - if ($low != 55296 ? 0 : 1) { - if ($high < 0 && ((jl_String_charAt($testString, var$6) & 64512) != 56320 ? 0 : 1)) - return (-1); - } else if (($low != 56320 ? 0 : 1) && $stringIndex > $startStr && ((jl_String_charAt($testString, $stringIndex - 1 | 0) & 64512) != 55296 ? 0 : 1)) - return (-1); - return $this.$next5.$matches(var$6, $testString, $matchResult); -}; -$java.jur_LowHighSurrogateRangeSet_getName = function($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(2218)); - var$2 = !$this.$alt3 ? $rt_s(307) : $rt_s(2219); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - var$2 = $this.$surrChars.$toString(); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_CompositeRangeSet() { - var a = this; jur_JointSet.call(a); - a.$withoutSurrogates = null; - a.$withSurrogates = null; -} -$java.jur_CompositeRangeSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $shift; - $shift = $this.$withoutSurrogates.$matches($stringIndex, $testString, $matchResult); - if ($shift < 0) - $shift = $java.jur_LowHighSurrogateRangeSet_matches($this.$withSurrogates, $stringIndex, $testString, $matchResult); - if ($shift >= 0) - return $shift; - return (-1); -}; -$java.jur_CompositeRangeSet_setNext = function($this, $next) { - $this.$next5 = $next; - $this.$withSurrogates.$next5 = $next; - $this.$withoutSurrogates.$setNext($next); -}; -$java.jur_CompositeRangeSet_getName = function($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(2220)); - var$2 = $this.$withoutSurrogates; - var$3 = var$1.$length; - if (var$2 === null) - var$2 = $rt_s(47); - else { - var$4 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_(var$4); - jl_AbstractStringBuilder_append(var$4, $rt_s(2196)); - jl_AbstractStringBuilder_append(var$4, var$2.$index5); - jl_AbstractStringBuilder_append(var$4, $rt_s(266)); - jl_AbstractStringBuilder_append(var$4, var$2.$getName()); - jl_AbstractStringBuilder_append(var$4, $rt_s(2197)); - var$2 = jl_AbstractStringBuilder_toString(var$4); - } - jl_AbstractStringBuilder_insert(var$1, var$3, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2221)); - var$2 = $this.$withSurrogates; - var$3 = var$1.$length; - if (var$2 === null) - var$2 = $rt_s(47); - else { - var$4 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_(var$4); - jl_AbstractStringBuilder_append(var$4, $rt_s(2196)); - jl_AbstractStringBuilder_append(var$4, var$2.$index5); - jl_AbstractStringBuilder_append(var$4, $rt_s(266)); - jl_AbstractStringBuilder_append(var$4, $java.jur_LowHighSurrogateRangeSet_getName(var$2)); - jl_AbstractStringBuilder_append(var$4, $rt_s(2197)); - var$2 = jl_AbstractStringBuilder_toString(var$4); - } - jl_AbstractStringBuilder_insert(var$1, var$3, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_CompositeRangeSet_hasConsumed = function($this, $matchResult) { - return 1; -}; -$java.jur_CompositeRangeSet_first = function($this, $set) { - return 1; -}; -function jur_SupplRangeSet() { - var a = this; jur_JointSet.call(a); - a.$chars = null; - a.$alt = 0; -} -$java.jur_SupplRangeSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $strLength, $low, $high; - $strLength = $matchResult.$rightBound; - if ($stringIndex < $strLength) { - $low = $stringIndex + 1 | 0; - $high = jl_String_charAt($testString, $stringIndex); - if ($this.$contains1($high)) { - $stringIndex = $this.$next5.$matches($low, $testString, $matchResult); - if ($stringIndex > 0) - return $stringIndex; - } - if ($low < $strLength) { - $stringIndex = $low + 1 | 0; - $low = jl_String_charAt($testString, $low); - $strLength = ($high & 64512) != 55296 ? 0 : 1; - if (($strLength && (($low & 64512) != 56320 ? 0 : 1) ? 1 : 0) && $this.$contains1((($high & 1023) << 10 | $low & 1023) + 65536 | 0)) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - } - } - return (-1); -}; -$java.jur_SupplRangeSet_getName = function($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(2218)); - var$2 = !$this.$alt ? $rt_s(307) : $rt_s(2219); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - var$2 = $this.$chars.$toString(); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_SupplRangeSet_contains = function($this, $ch) { - return $this.$chars.$contains1($ch); -}; -$java.jur_SupplRangeSet_first = function($this, $set) { - var var$2, var$3; - if ($set instanceof jur_SupplCharSet) - return $this.$chars.$contains1($set.$ch4); - if ($set instanceof jur_CharSet) - return $this.$chars.$contains1($set.$ch0); - if ($set instanceof jur_SupplRangeSet) { - var$2 = $this.$chars; - $set = $set.$chars; - return var$2.$getBits() !== null && $set.$getBits() !== null ? $java.ju_BitSet_intersects(var$2.$getBits(), $set.$getBits()) : 1; - } - if (!($set instanceof jur_RangeSet)) - return 1; - var$2 = $this.$chars; - var$3 = $set.$chars0; - return var$2.$getBits() !== null && var$3.$getBits() !== null ? $java.ju_BitSet_intersects(var$2.$getBits(), var$3.$getBits()) : 1; -}; -$java.jur_SupplRangeSet_getChars = function($this) { - return $this.$chars; -}; -$java.jur_SupplRangeSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_SupplRangeSet_hasConsumed = function($this, $mr) { - return 1; -}; -function jur_UCISupplRangeSet() { - jur_SupplRangeSet.call(this); -} -$java.jur_UCISupplRangeSet_contains = function($this, $ch) { - return $this.$chars.$contains1((String.fromCharCode((String.fromCharCode($ch)).toUpperCase().charCodeAt(0))).toLowerCase().charCodeAt(0)); -}; -$java.jur_UCISupplRangeSet_getName = function($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(2222)); - var$2 = !$this.$alt ? $rt_s(307) : $rt_s(2219); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - var$2 = $this.$chars.$toString(); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_UCIRangeSet() { - var a = this; jur_LeafSet.call(a); - a.$chars1 = null; - a.$alt2 = 0; -} -$java.jur_UCIRangeSet_accepts = function($this, $strIndex, $testString) { - return !$this.$chars1.$contains1((String.fromCharCode((String.fromCharCode(jl_String_charAt($testString, $strIndex))).toUpperCase().charCodeAt(0) & 65535)).toLowerCase().charCodeAt(0) & 65535) ? (-1) : 1; -}; -$java.jur_UCIRangeSet_getName = function($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(2222)); - var$2 = !$this.$alt2 ? $rt_s(307) : $rt_s(2219); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - var$2 = $this.$chars1.$toString(); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_RangeSet() { - var a = this; jur_LeafSet.call(a); - a.$chars0 = null; - a.$alt1 = 0; -} -$java.jur_RangeSet_accepts = function($this, $strIndex, $testString) { - return !$this.$chars0.$contains1(jl_String_charAt($testString, $strIndex)) ? (-1) : 1; -}; -$java.jur_RangeSet_getName = function($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(2218)); - var$2 = !$this.$alt1 ? $rt_s(307) : $rt_s(2219); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - var$2 = $this.$chars0.$toString(); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_RangeSet_first = function($this, $set) { - var var$2, var$3; - if ($set instanceof jur_CharSet) - return $this.$chars0.$contains1($set.$ch0); - if ($set instanceof jur_RangeSet) { - var$2 = $this.$chars0; - $set = $set.$chars0; - return var$2.$getBits() !== null && $set.$getBits() !== null ? $java.ju_BitSet_intersects(var$2.$getBits(), $set.$getBits()) : 1; - } - if (!($set instanceof jur_SupplRangeSet)) { - if (!($set instanceof jur_SupplCharSet)) - return 1; - return 0; - } - var$2 = $this.$chars0; - var$3 = $set.$chars; - return var$2.$getBits() !== null && var$3.$getBits() !== null ? $java.ju_BitSet_intersects(var$2.$getBits(), var$3.$getBits()) : 1; -}; -$java.jur_RangeSet_getChars = function($this) { - return $this.$chars0; -}; -function jur_HangulDecomposedCharSet() { - var a = this; jur_JointSet.call(a); - a.$decomposedChar = null; - a.$decomposedCharUTF16 = null; - a.$decomposedCharLength = 0; -} -$java.jur_HangulDecomposedCharSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_HangulDecomposedCharSet_getName = function($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(2223)); - if ($this.$decomposedCharUTF16 === null) - $this.$decomposedCharUTF16 = jl_String__init_($this.$decomposedChar); - var$2 = $this.$decomposedCharUTF16; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_HangulDecomposedCharSet_matches = function($this, $strIndex, $testString, $matchResult) { - var $rightBound, $decompSyllable, $vIndex, $tIndex, var$8, $curSymb, $decompCurSymb, $i, $lIndex; - $rightBound = $matchResult.$rightBound; - $decompSyllable = $rt_createIntArray(3); - $vIndex = (-1); - $tIndex = (-1); - if ($strIndex >= $rightBound) - return (-1); - var$8 = $strIndex + 1 | 0; - $curSymb = jl_String_charAt($testString, $strIndex); - $decompCurSymb = $java.jur_Lexer_getHangulDecomposition($curSymb); - if ($decompCurSymb !== null) { - $decompCurSymb = $decompCurSymb.data; - $i = 0; - if ($decompCurSymb.length != $this.$decomposedCharLength) - return (-1); - while (true) { - if ($i >= $this.$decomposedCharLength) - return $this.$next5.$matches(var$8, $testString, $matchResult); - if ($decompCurSymb[$i] != $this.$decomposedChar.data[$i]) - break; - $i = $i + 1 | 0; - } - return (-1); - } - $decompSyllable = $decompSyllable.data; - $decompSyllable[0] = $curSymb; - $lIndex = $curSymb - 4352 | 0; - if ($lIndex >= 0 && $lIndex < 19) { - if (var$8 < $rightBound) { - $curSymb = jl_String_charAt($testString, var$8); - $vIndex = $curSymb - 4449 | 0; - } - if ($vIndex >= 0 && $vIndex < 21) { - $lIndex = var$8 + 1 | 0; - $decompSyllable[1] = $curSymb; - if ($lIndex < $rightBound) { - $curSymb = jl_String_charAt($testString, $lIndex); - $tIndex = $curSymb - 4519 | 0; - } - if ($tIndex >= 0 && $tIndex < 28) { - $strIndex = $lIndex + 1 | 0; - $decompSyllable[2] = $curSymb; - return $this.$decomposedCharLength == 3 && $decompSyllable[0] == $this.$decomposedChar.data[0] && $decompSyllable[1] == $this.$decomposedChar.data[1] && $decompSyllable[2] == $this.$decomposedChar.data[2] ? $this.$next5.$matches($strIndex, $testString, $matchResult) : (-1); - } - return $this.$decomposedCharLength == 2 && $decompSyllable[0] == $this.$decomposedChar.data[0] && $decompSyllable[1] == $this.$decomposedChar.data[1] ? $this.$next5.$matches($lIndex, $testString, $matchResult) : (-1); - } - return (-1); - } - return (-1); -}; -$java.jur_HangulDecomposedCharSet_first = function($this, $set) { - var var$2, var$3; - a: { - if ($set instanceof jur_HangulDecomposedCharSet) { - $set = $set; - if ($set.$decomposedCharUTF16 === null) - $set.$decomposedCharUTF16 = jl_String__init_($set.$decomposedChar); - var$2 = $set.$decomposedCharUTF16; - if ($this.$decomposedCharUTF16 === null) - $this.$decomposedCharUTF16 = jl_String__init_($this.$decomposedChar); - if (!jl_String_equals(var$2, $this.$decomposedCharUTF16)) { - var$3 = 0; - break a; - } - } - var$3 = 1; - } - return var$3; -}; -$java.jur_HangulDecomposedCharSet_hasConsumed = function($this, $matchResult) { - return 1; -}; -function jur_CharSet() { - jur_LeafSet.call(this); - this.$ch0 = 0; -} -function jur_CharSet__init_(var_0) { - var var_1 = new jur_CharSet(); - $java.jur_CharSet__init_(var_1, var_0); - return var_1; -} -$java.jur_CharSet__init_ = function($this, $ch) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$charCount = 1; - $this.$ch0 = $ch; -}; -$java.jur_CharSet_charCount = function($this) { - return 1; -}; -$java.jur_CharSet_accepts = function($this, $strIndex, $testString) { - return $this.$ch0 != jl_String_charAt($testString, $strIndex) ? (-1) : 1; -}; -$java.jur_CharSet_find = function($this, $strIndex, $testString, $matchResult) { - var var$4, $testStr, $strLength, var$7, var$8; - if (!($testString instanceof jl_String)) { - var$4 = $matchResult.$rightBound; - a: { - while (true) { - if ($strIndex > var$4) { - $strIndex = (-1); - break a; - } - if ($java.jur_LeafSet_matches($this, $strIndex, $testString, $matchResult) >= 0) - break; - $strIndex = $strIndex + 1 | 0; - } - } - return $strIndex; - } - $testStr = $testString; - $strLength = $matchResult.$rightBound; - while (true) { - if ($strIndex >= $strLength) - return (-1); - var$7 = jl_String_indexOf($testStr, $this.$ch0, $strIndex); - if (var$7 < 0) - return (-1); - var$8 = $this.$next5; - $strIndex = var$7 + 1 | 0; - if (var$8.$matches($strIndex, $testString, $matchResult) >= 0) - break; - } - return var$7; -}; -$java.jur_CharSet_findBack = function($this, $strIndex, $lastIndex, $testString, $matchResult) { - var $testStr; - if (!($testString instanceof jl_String)) { - a: { - while (true) { - if ($lastIndex < $strIndex) { - $lastIndex = (-1); - break a; - } - if ($java.jur_LeafSet_matches($this, $lastIndex, $testString, $matchResult) >= 0) - break; - $lastIndex = $lastIndex + (-1) | 0; - } - } - return $lastIndex; - } - $testStr = $testString; - b: { - while (true) { - if ($lastIndex < $strIndex) - return (-1); - $lastIndex = jl_String_lastIndexOf($testStr, $this.$ch0, $lastIndex); - if ($lastIndex < 0) - break b; - if ($lastIndex < $strIndex) - break b; - if ($this.$next5.$matches($lastIndex + 1 | 0, $testString, $matchResult) >= 0) - break; - $lastIndex = $lastIndex + (-1) | 0; - } - return $lastIndex; - } - return (-1); -}; -$java.jur_CharSet_getName = function($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.$ch0; - var$3 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$3, var$3 + 1 | 0); - var$1.$buffer.data[var$3] = var$2; - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_CharSet_getChar = function($this) { - return $this.$ch0; -}; -$java.jur_CharSet_first = function($this, $set) { - var var$2, var$3, var$4; - if ($set instanceof jur_CharSet) - return $set.$ch0 != $this.$ch0 ? 0 : 1; - if (!($set instanceof jur_RangeSet)) { - if ($set instanceof jur_SupplRangeSet) - return $set.$contains1($this.$ch0); - if (!($set instanceof jur_SupplCharSet)) - return 1; - return 0; - } - $set = $set; - var$2 = $this.$ch0; - var$3 = new jl_String; - var$4 = $rt_createCharArray(1); - var$4.data[0] = var$2; - jl_String__init_3(var$3, var$4); - return (!$set.$chars0.$contains1(jl_String_charAt(var$3, 0)) ? (-1) : 1) <= 0 ? 0 : 1; -}; -function jur_UCICharSet() { - jur_LeafSet.call(this); - this.$ch2 = 0; -} -$java.jur_UCICharSet_accepts = function($this, $strIndex, $testString) { - return $this.$ch2 != ((String.fromCharCode((String.fromCharCode(jl_String_charAt($testString, $strIndex))).toUpperCase().charCodeAt(0) & 65535)).toLowerCase().charCodeAt(0) & 65535) ? (-1) : 1; -}; -$java.jur_UCICharSet_getName = function($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(2224)); - var$2 = $this.$ch2; - var$3 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$3, var$3 + 1 | 0); - var$1.$buffer.data[var$3] = var$2; - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_CICharSet() { - var a = this; jur_LeafSet.call(a); - a.$ch1 = 0; - a.$supplement = 0; -} -$java.jur_CICharSet_accepts = function($this, $strIndex, $testString) { - return $this.$ch1 != jl_String_charAt($testString, $strIndex) && $this.$supplement != jl_String_charAt($testString, $strIndex) ? (-1) : 1; -}; -$java.jur_CICharSet_getName = function($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(2225)); - var$2 = $this.$ch1; - var$3 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$3, var$3 + 1 | 0); - var$1.$buffer.data[var$3] = var$2; - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_DecomposedCharSet() { - var a = this; jur_JointSet.call(a); - a.$readCharsForCodePoint = 0; - a.$decomposedCharUTF160 = null; - a.$decomposedChar0 = null; - a.$decomposedCharLength0 = 0; -} -function jur_DecomposedCharSet__init_(var_0, var_1) { - var var_2 = new jur_DecomposedCharSet(); - jur_DecomposedCharSet__init_0(var_2, var_0, var_1); - return var_2; -} -function jur_DecomposedCharSet__init_0($this, $decomposedChar, $decomposedCharLength) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$readCharsForCodePoint = 1; - $this.$decomposedChar0 = $decomposedChar; - $this.$decomposedCharLength0 = $decomposedCharLength; -} -$java.jur_DecomposedCharSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_DecomposedCharSet_matches = function($this, $strIndex, $testString, $matchResult) { - var $decCodePoint, $rightBound, $curChar, var$7, $decCurCodePoint, var$9, var$10; - $decCodePoint = $rt_createIntArray(4); - $rightBound = $matchResult.$rightBound; - if ($strIndex >= $rightBound) - return (-1); - $curChar = $java.jur_DecomposedCharSet_codePointAt($this, $strIndex, $testString, $rightBound); - var$7 = $strIndex + $this.$readCharsForCodePoint | 0; - $decCurCodePoint = $java.jur_Lexer_decompTable.$get12($curChar); - if ($decCurCodePoint === null) { - var$9 = $decCodePoint.data; - $strIndex = 1; - var$9[0] = $curChar; - } else { - $strIndex = $decCurCodePoint.data.length; - jl_System_arraycopy($decCurCodePoint, 0, $decCodePoint, 0, $strIndex); - $strIndex = 0 + $strIndex | 0; - } - a: { - if (var$7 < $rightBound) { - $decCurCodePoint = $decCodePoint.data; - $curChar = $java.jur_DecomposedCharSet_codePointAt($this, var$7, $testString, $rightBound); - while ($strIndex < 4) { - if (!$java.jur_Lexer_hasDecompositionNonNullCanClass($curChar)) { - var$10 = $strIndex + 1 | 0; - $decCurCodePoint[$strIndex] = $curChar; - } else { - var$9 = $java.jur_Lexer_decompTable.$get12($curChar).data; - if (var$9.length != 2) { - var$10 = $strIndex + 1 | 0; - $decCurCodePoint[$strIndex] = var$9[0]; - } else { - $curChar = $strIndex + 1 | 0; - $decCurCodePoint[$strIndex] = var$9[0]; - var$10 = $curChar + 1 | 0; - $decCurCodePoint[$curChar] = var$9[1]; - } - } - var$7 = var$7 + $this.$readCharsForCodePoint | 0; - if (var$7 >= $rightBound) { - $strIndex = var$10; - break a; - } - $curChar = $java.jur_DecomposedCharSet_codePointAt($this, var$7, $testString, $rightBound); - $strIndex = var$10; - } - } - } - if ($strIndex != $this.$decomposedCharLength0) - return (-1); - var$9 = $decCodePoint.data; - $curChar = 0; - while (true) { - if ($curChar >= $strIndex) - return $this.$next5.$matches(var$7, $testString, $matchResult); - if (var$9[$curChar] != $this.$decomposedChar0.data[$curChar]) - break; - $curChar = $curChar + 1 | 0; - } - return (-1); -}; -$java.jur_DecomposedCharSet_getDecomposedChar = function($this) { - var $strBuff, $i, var$3, var$4; - if ($this.$decomposedCharUTF160 === null) { - $strBuff = new jl_StringBuilder; - $strBuff.$buffer = $rt_createCharArray(16); - $i = 0; - while ($i < $this.$decomposedCharLength0) { - var$3 = jl_Character_toChars($this.$decomposedChar0.data[$i]); - var$4 = var$3.data.length; - jl_AbstractStringBuilder_insert6($strBuff, $strBuff.$length, var$3, 0, var$4); - $i = $i + 1 | 0; - } - $this.$decomposedCharUTF160 = jl_String__init_0($strBuff.$buffer, 0, $strBuff.$length); - } - return $this.$decomposedCharUTF160; -}; -$java.jur_DecomposedCharSet_getName = function($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(2226)); - var$2 = $java.jur_DecomposedCharSet_getDecomposedChar($this); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_DecomposedCharSet_codePointAt = function($this, $strIndex, $testString, $rightBound) { - var $curChar, $low, $curCodePointUTF16, var$7; - $this.$readCharsForCodePoint = 1; - if ($strIndex >= ($rightBound - 1 | 0)) - $curChar = jl_String_charAt($testString, $strIndex); - else { - $rightBound = $strIndex + 1 | 0; - $curChar = jl_String_charAt($testString, $strIndex); - $low = jl_String_charAt($testString, $rightBound); - $strIndex = ($curChar & 64512) != 55296 ? 0 : 1; - if ($strIndex && (($low & 64512) != 56320 ? 0 : 1) ? 1 : 0) { - $curCodePointUTF16 = $rt_createCharArray(2); - var$7 = $curCodePointUTF16.data; - var$7[0] = $curChar; - var$7[1] = $low; - $curChar = jl_Character_codePointAt($curCodePointUTF16, 0, var$7.length); - $this.$readCharsForCodePoint = 2; - } - } - return $curChar; -}; -$java.jur_DecomposedCharSet_first = function($this, $set) { - return $set instanceof jur_DecomposedCharSet && !jl_String_equals($java.jur_DecomposedCharSet_getDecomposedChar($set), $java.jur_DecomposedCharSet_getDecomposedChar($this)) ? 0 : 1; -}; -$java.jur_DecomposedCharSet_hasConsumed = function($this, $matchResult) { - return 1; -}; -function jur_UCIDecomposedCharSet() { - jur_DecomposedCharSet.call(this); -} -function jur_CIDecomposedCharSet() { - jur_DecomposedCharSet.call(this); -} -function jur_CIDecomposedCharSet__init_(var_0, var_1) { - var var_2 = new jur_CIDecomposedCharSet(); - $java.jur_CIDecomposedCharSet__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_CIDecomposedCharSet__init_ = function($this, $decomp, $decomposedCharLength) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$readCharsForCodePoint = 1; - $this.$decomposedChar0 = $decomp; - $this.$decomposedCharLength0 = $decomposedCharLength; -}; -function jur_PossessiveGroupQuantifierSet() { - jur_GroupQuantifierSet.call(this); -} -$java.jur_PossessiveGroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $stringIndex_0; - while (true) { - $stringIndex_0 = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - if ($stringIndex_0 <= 0) - break; - $stringIndex = $stringIndex_0; - } - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -function jur_PosPlusGroupQuantifierSet() { - jur_GroupQuantifierSet.call(this); -} -$java.jur_PosPlusGroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $nextIndex; - $nextIndex = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - if ($nextIndex < 0) - return (-1); - if ($nextIndex > $stringIndex) { - while (true) { - $stringIndex = $this.$innerSet.$matches($nextIndex, $testString, $matchResult); - if ($stringIndex <= $nextIndex) - break; - $nextIndex = $stringIndex; - } - $stringIndex = $nextIndex; - } - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -function jur_AltGroupQuantifierSet() { - jur_GroupQuantifierSet.call(this); -} -function jur_AltGroupQuantifierSet__init_(var_0, var_1, var_2) { - var var_3 = new jur_AltGroupQuantifierSet(); - $java.jur_AltGroupQuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_AltGroupQuantifierSet__init_ = function($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; -}; -$java.jur_AltGroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $nextIndex; - if (!$this.$innerSet.$hasConsumed($matchResult)) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - $nextIndex = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - if ($nextIndex >= 0) - return $nextIndex; - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -$java.jur_AltGroupQuantifierSet_setNext = function($this, $next) { - $this.$next5 = $next; - $this.$innerSet.$setNext($next); -}; -function jur_PosAltGroupQuantifierSet() { - jur_AltGroupQuantifierSet.call(this); -} -$java.jur_PosAltGroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $nextIndex; - $nextIndex = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - if ($nextIndex <= 0) - $nextIndex = $stringIndex; - return $this.$next5.$matches($nextIndex, $testString, $matchResult); -}; -$java.jur_PosAltGroupQuantifierSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -function jur_CompositeGroupQuantifierSet() { - var a = this; jur_GroupQuantifierSet.call(a); - a.$quantifier = null; - a.$setCounter = 0; -} -$java.jur_CompositeGroupQuantifierSet__init_ = function(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new jur_CompositeGroupQuantifierSet(); - jur_CompositeGroupQuantifierSet__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -}; -function jur_CompositeGroupQuantifierSet__init_($this, $quant, $innerSet, $next, $type, $setCounter) { - var var$6; - var$6 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$6 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$6, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$quantifier = $quant; - $this.$setCounter = $setCounter; -} -$java.jur_CompositeGroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $nextIndex, $enterCounter; - $nextIndex = $this.$setCounter; - $enterCounter = $matchResult.$compQuantCounters.data[$nextIndex]; - if (!$this.$innerSet.$hasConsumed($matchResult)) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - if ($enterCounter >= $this.$quantifier.$max0) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - $nextIndex = $this.$setCounter; - $enterCounter = $enterCounter + 1 | 0; - $matchResult.$compQuantCounters.data[$nextIndex] = $enterCounter; - $nextIndex = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - if ($nextIndex >= 0) { - $stringIndex = $this.$setCounter; - $matchResult.$compQuantCounters.data[$stringIndex] = 0; - return $nextIndex; - } - $nextIndex = $this.$setCounter; - $enterCounter = $enterCounter + (-1) | 0; - $matchResult.$compQuantCounters.data[$nextIndex] = $enterCounter; - if ($enterCounter >= $this.$quantifier.$min1) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - $stringIndex = $this.$setCounter; - $matchResult.$compQuantCounters.data[$stringIndex] = 0; - return (-1); -}; -$java.jur_CompositeGroupQuantifierSet_getName = function($this) { - return $java.jur_Quantifier_toString($this.$quantifier); -}; -function jur_PosCompositeGroupQuantifierSet() { - jur_CompositeGroupQuantifierSet.call(this); -} -$java.jur_PosCompositeGroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $counter, $max, $nextIndex; - $counter = 0; - $max = $this.$quantifier.$max0; - a: { - while (true) { - $nextIndex = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - if ($nextIndex <= $stringIndex) - break a; - if ($counter >= $max) - break; - $counter = $counter + 1 | 0; - $stringIndex = $nextIndex; - } - } - if ($nextIndex < 0 && $counter < $this.$quantifier.$min1) - return (-1); - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -function jur_ReluctantGroupQuantifierSet() { - jur_GroupQuantifierSet.call(this); -} -$java.jur_ReluctantGroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $res; - if (!$this.$innerSet.$hasConsumed($matchResult)) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - $res = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if ($res >= 0) - return $res; - return $this.$innerSet.$matches($stringIndex, $testString, $matchResult); -}; -function jur_RelAltGroupQuantifierSet() { - jur_AltGroupQuantifierSet.call(this); -} -$java.jur_RelAltGroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $nextIndex; - if (!$this.$innerSet.$hasConsumed($matchResult)) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - $nextIndex = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if ($nextIndex < 0) - $nextIndex = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - return $nextIndex; -}; -function jur_RelCompositeGroupQuantifierSet() { - jur_CompositeGroupQuantifierSet.call(this); -} -$java.jur_RelCompositeGroupQuantifierSet__init_ = function(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new jur_RelCompositeGroupQuantifierSet(); - jur_RelCompositeGroupQuantifierSet__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -}; -function jur_RelCompositeGroupQuantifierSet__init_($this, $quant, $innerSet, $next, $type, $setCounter) { - var var$6; - var$6 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$6 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$6, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$quantifier = $quant; - $this.$setCounter = $setCounter; -} -$java.jur_RelCompositeGroupQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $nextIndex, $enterCounter; - $nextIndex = $this.$setCounter; - $enterCounter = $matchResult.$compQuantCounters.data[$nextIndex]; - if (!$this.$innerSet.$hasConsumed($matchResult)) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - if ($enterCounter >= $this.$quantifier.$max0) { - $nextIndex = $this.$setCounter; - $matchResult.$compQuantCounters.data[$nextIndex] = 0; - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - } - if ($enterCounter < $this.$quantifier.$min1) { - $nextIndex = $this.$setCounter; - $matchResult.$compQuantCounters.data[$nextIndex] = $enterCounter + 1 | 0; - $nextIndex = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - } else { - $nextIndex = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if ($nextIndex >= 0) { - $stringIndex = $this.$setCounter; - $matchResult.$compQuantCounters.data[$stringIndex] = 0; - return $nextIndex; - } - $nextIndex = $this.$setCounter; - $matchResult.$compQuantCounters.data[$nextIndex] = $enterCounter + 1 | 0; - $nextIndex = $this.$innerSet.$matches($stringIndex, $testString, $matchResult); - } - return $nextIndex; -}; -function jur_DotAllQuantifierSet() { - jur_QuantifierSet.call(this); -} -function jur_DotAllQuantifierSet__init_(var_0, var_1, var_2) { - var var_3 = new jur_DotAllQuantifierSet(); - $java.jur_DotAllQuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_DotAllQuantifierSet__init_ = function($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; -}; -$java.jur_DotAllQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $strLength; - $strLength = $matchResult.$rightBound; - if ($strLength > $stringIndex) - return $this.$next5.$findBack($stringIndex, $strLength, $testString, $matchResult); - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -$java.jur_DotAllQuantifierSet_find = function($this, $stringIndex, $testString, $matchResult) { - var $strLength; - $strLength = $matchResult.$rightBound; - if ($this.$next5.$findBack($stringIndex, $strLength, $testString, $matchResult) >= 0) - return $stringIndex; - return (-1); -}; -$java.jur_DotAllQuantifierSet_getName = function($this) { - return $rt_s(2227); -}; -function jur_DotQuantifierSet() { - jur_QuantifierSet.call(this); - this.$lt = null; -} -function jur_DotQuantifierSet__init_(var_0, var_1, var_2, var_3) { - var var_4 = new jur_DotQuantifierSet(); - $java.jur_DotQuantifierSet__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.jur_DotQuantifierSet__init_ = function($this, $innerSet, $next, $type, $lt) { - var var$5; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$5, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$lt = $lt; -}; -$java.jur_DotQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $strLength, $startSearch; - $strLength = $matchResult.$rightBound; - $startSearch = $stringIndex; - a: { - while (true) { - if ($startSearch >= $strLength) { - $startSearch = (-1); - break a; - } - if ($this.$lt.$isLineTerminator(jl_String_charAt($testString, $startSearch))) - break; - $startSearch = $startSearch + 1 | 0; - } - } - if ($startSearch >= 0) - $strLength = $startSearch; - if ($strLength > $stringIndex) - return $this.$next5.$findBack($stringIndex, $strLength, $testString, $matchResult); - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -$java.jur_DotQuantifierSet_find = function($this, $stringIndex, $testString, $matchResult) { - var $strLength, $res, $nextSearch, var$7, $leftBound; - $strLength = $matchResult.$rightBound; - $res = $this.$next5.$find0($stringIndex, $testString, $matchResult); - if ($res < 0) - return (-1); - $nextSearch = $res; - a: { - while (true) { - if ($nextSearch >= $strLength) { - $nextSearch = (-1); - break a; - } - if ($this.$lt.$isLineTerminator(jl_String_charAt($testString, $nextSearch))) - break; - $nextSearch = $nextSearch + 1 | 0; - } - } - if ($nextSearch >= 0) - $strLength = $nextSearch; - var$7 = $this.$next5.$findBack($res, $strLength, $testString, $matchResult); - if ($res < var$7) - $res = var$7; - if ($res <= 0) - $leftBound = $res ? (-1) : 0; - else { - $leftBound = $res - 1 | 0; - b: { - while (true) { - if ($leftBound < $stringIndex) { - $leftBound = (-1); - break b; - } - if ($this.$lt.$isLineTerminator(jl_String_charAt($testString, $leftBound))) - break; - $leftBound = $leftBound + (-1) | 0; - } - } - } - if ($leftBound >= $stringIndex) - $stringIndex = $leftBound >= $res ? $leftBound : $leftBound + 1 | 0; - return $stringIndex; -}; -$java.jur_DotQuantifierSet_getName = function($this) { - return $rt_s(2228); -}; -function jur_AbstractLineTerminator() { - jl_Object.call(this); -} -$java.jur_AbstractLineTerminator_unixLT = null; -$java.jur_AbstractLineTerminator_unicodeLT = null; -function jur_AbstractLineTerminator_getInstance($flag) { - if (!($flag & 1)) { - if ($java.jur_AbstractLineTerminator_unicodeLT !== null) - return $java.jur_AbstractLineTerminator_unicodeLT; - $java.jur_AbstractLineTerminator_unicodeLT = new jur_AbstractLineTerminator$2; - return $java.jur_AbstractLineTerminator_unicodeLT; - } - if ($java.jur_AbstractLineTerminator_unixLT !== null) - return $java.jur_AbstractLineTerminator_unixLT; - $java.jur_AbstractLineTerminator_unixLT = new jur_AbstractLineTerminator$1; - return $java.jur_AbstractLineTerminator_unixLT; -} -function jur_PossessiveQuantifierSet() { - jur_LeafQuantifierSet.call(this); -} -function jur_PossessiveQuantifierSet__init_(var_0, var_1, var_2) { - var var_3 = new jur_PossessiveQuantifierSet(); - $java.jur_PossessiveQuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_PossessiveQuantifierSet__init_ = function($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$leaf = $innerSet; -}; -$java.jur_PossessiveQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var var$4; - a: { - while (true) { - if (($stringIndex + $this.$leaf.$charCount0() | 0) > $matchResult.$rightBound) - break a; - var$4 = $this.$leaf.$accepts($stringIndex, $testString); - if (var$4 < 1) - break; - $stringIndex = $stringIndex + var$4 | 0; - } - } - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -function jur_PossessiveAltQuantifierSet() { - jur_AltQuantifierSet.call(this); -} -function jur_PossessiveAltQuantifierSet__init_(var_0, var_1, var_2) { - var var_3 = new jur_PossessiveAltQuantifierSet(); - $java.jur_PossessiveAltQuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_PossessiveAltQuantifierSet__init_ = function($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$leaf = $innerSet; -}; -$java.jur_PossessiveAltQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var var$4; - if (($stringIndex + $this.$leaf.$charCount0() | 0) <= $matchResult.$rightBound) { - var$4 = $this.$leaf.$accepts($stringIndex, $testString); - if (var$4 >= 1) - $stringIndex = $stringIndex + var$4 | 0; - } - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -function jur_PossessiveCompositeQuantifierSet() { - jur_CompositeQuantifierSet.call(this); -} -function jur_PossessiveCompositeQuantifierSet__init_(var_0, var_1, var_2, var_3) { - var var_4 = new jur_PossessiveCompositeQuantifierSet(); - $java.jur_PossessiveCompositeQuantifierSet__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.jur_PossessiveCompositeQuantifierSet__init_ = function($this, $quant, $innerSet, $next, $type) { - var var$5; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$5, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$leaf = $innerSet; - $this.$quantifier0 = $quant; -}; -$java.jur_PossessiveCompositeQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $min, $max, $i, $shift, $shift_0; - $min = $this.$quantifier0.$min1; - $max = $this.$quantifier0.$max0; - $i = 0; - while (true) { - if ($i >= $min) { - a: { - while (true) { - if ($i >= $max) - break a; - if (($stringIndex + $this.$leaf.$charCount0() | 0) > $matchResult.$rightBound) - break a; - $shift = $this.$leaf.$accepts($stringIndex, $testString); - if ($shift < 1) - break; - $stringIndex = $stringIndex + $shift | 0; - $i = $i + 1 | 0; - } - } - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - } - if (($stringIndex + $this.$leaf.$charCount0() | 0) > $matchResult.$rightBound) { - $matchResult.$hitEnd = 1; - return (-1); - } - $shift_0 = $this.$leaf.$accepts($stringIndex, $testString); - if ($shift_0 < 1) - break; - $stringIndex = $stringIndex + $shift_0 | 0; - $i = $i + 1 | 0; - } - return (-1); -}; -function jur_ReluctantQuantifierSet() { - jur_LeafQuantifierSet.call(this); -} -function jur_ReluctantQuantifierSet__init_(var_0, var_1, var_2) { - var var_3 = new jur_ReluctantQuantifierSet(); - $java.jur_ReluctantQuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_ReluctantQuantifierSet__init_ = function($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$leaf = $innerSet; -}; -$java.jur_ReluctantQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var var$4; - while (true) { - var$4 = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if (var$4 >= 0) - break; - if (($stringIndex + $this.$leaf.$charCount0() | 0) <= $matchResult.$rightBound) { - var$4 = $this.$leaf.$accepts($stringIndex, $testString); - $stringIndex = $stringIndex + var$4 | 0; - } - if (var$4 < 1) - return (-1); - } - return var$4; -}; -function jur_ReluctantAltQuantifierSet() { - jur_AltQuantifierSet.call(this); -} -function jur_ReluctantAltQuantifierSet__init_(var_0, var_1, var_2) { - var var_3 = new jur_ReluctantAltQuantifierSet(); - $java.jur_ReluctantAltQuantifierSet__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.jur_ReluctantAltQuantifierSet__init_ = function($this, $innerSet, $next, $type) { - var var$4; - var$4 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$4 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$4, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$leaf = $innerSet; -}; -$java.jur_ReluctantAltQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $shift; - $shift = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if ($shift >= 0) - return $shift; - return $this.$innerSet.$matches($stringIndex, $testString, $matchResult); -}; -function jur_ReluctantCompositeQuantifierSet() { - jur_CompositeQuantifierSet.call(this); -} -function jur_ReluctantCompositeQuantifierSet__init_(var_0, var_1, var_2, var_3) { - var var_4 = new jur_ReluctantCompositeQuantifierSet(); - $java.jur_ReluctantCompositeQuantifierSet__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.jur_ReluctantCompositeQuantifierSet__init_ = function($this, $quant, $innerSet, $next, $type) { - var var$5; - var$5 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$5 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$5, 10); - $this.$next5 = $next; - $this.$innerSet = $innerSet; - $this.$type2 = $type; - $this.$leaf = $innerSet; - $this.$quantifier0 = $quant; -}; -$java.jur_ReluctantCompositeQuantifierSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $min, $max, $i, var$7, var$8; - $min = $this.$quantifier0.$min1; - $max = $this.$quantifier0.$max0; - $i = 0; - while (true) { - if ($i >= $min) { - a: { - while (true) { - var$7 = $this.$next5.$matches($stringIndex, $testString, $matchResult); - if (var$7 >= 0) - break; - if (($stringIndex + $this.$leaf.$charCount0() | 0) <= $matchResult.$rightBound) { - var$7 = $this.$leaf.$accepts($stringIndex, $testString); - $stringIndex = $stringIndex + var$7 | 0; - $i = $i + 1 | 0; - } - if (var$7 < 1) - break a; - if ($i > $max) - break a; - } - return var$7; - } - return (-1); - } - if (($stringIndex + $this.$leaf.$charCount0() | 0) > $matchResult.$rightBound) { - $matchResult.$hitEnd = 1; - return (-1); - } - var$8 = $this.$leaf.$accepts($stringIndex, $testString); - if (var$8 < 1) - break; - $stringIndex = $stringIndex + var$8 | 0; - $i = $i + 1 | 0; - } - return (-1); -}; -function jur_SOLSet() { - jur_AbstractSet.call(this); -} -function jur_SOLSet__init_0() { - var var_0 = new jur_SOLSet(); - jur_SOLSet__init_(var_0); - return var_0; -} -function jur_SOLSet__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); -} -$java.jur_SOLSet_matches = function($this, $strIndex, $testString, $matchResult) { - if ($strIndex && !($matchResult.$anchoringBounds && $strIndex == $matchResult.$leftBound)) - return (-1); - return $this.$next5.$matches($strIndex, $testString, $matchResult); -}; -$java.jur_SOLSet_hasConsumed = function($this, $matchResult) { - return 0; -}; -$java.jur_SOLSet_getName = function($this) { - return $rt_s(2229); -}; -function jur_WordBoundary() { - jur_AbstractSet.call(this); - this.$positive = 0; -} -function jur_WordBoundary__init_(var_0) { - var var_1 = new jur_WordBoundary(); - $java.jur_WordBoundary__init_(var_1, var_0); - return var_1; -} -$java.jur_WordBoundary__init_ = function($this, $positive) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$positive = $positive; -}; -$java.jur_WordBoundary_matches = function($this, $stringIndex, $testString, $matchResult) { - var $ch1, $ch2, $leftBound; - $ch1 = $stringIndex < $matchResult.$rightBound ? jl_String_charAt($testString, $stringIndex) : 32; - $ch2 = !$stringIndex ? 32 : jl_String_charAt($testString, $stringIndex - 1 | 0); - $leftBound = $matchResult.$transparentBounds ? 0 : $matchResult.$leftBound; - return ($ch1 != 32 && !$java.jur_WordBoundary_isSpace($this, $ch1, $stringIndex, $leftBound, $testString) ? 0 : 1) ^ ($ch2 != 32 && !$java.jur_WordBoundary_isSpace($this, $ch2, $stringIndex - 1 | 0, $leftBound, $testString) ? 0 : 1) ^ $this.$positive ? (-1) : $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -$java.jur_WordBoundary_hasConsumed = function($this, $matchResult) { - return 0; -}; -$java.jur_WordBoundary_getName = function($this) { - return $rt_s(2230); -}; -$java.jur_WordBoundary_isSpace = function($this, $ch, $index, $leftBound, $testString) { - var var$5; - a: { - b: { - switch (jl_Character_getType($ch)) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 9: - break; - case 6: - case 7: - case 8: - break b; - default: - break b; - } - var$5 = 1; - break a; - } - var$5 = 0; - } - if (!var$5 && $ch != 95) { - c: { - if (jl_Character_getType($ch) == 6) - while (true) { - $index = $index + (-1) | 0; - if ($index < $leftBound) - break c; - d: { - e: { - var$5 = jl_String_charAt($testString, $index); - switch (jl_Character_getType(var$5)) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 9: - break; - case 6: - case 7: - case 8: - break e; - default: - break e; - } - $ch = 1; - break d; - } - $ch = 0; - } - if ($ch) - return 0; - if (jl_Character_getType(var$5) != 6) - return 1; - } - } - return 1; - } - return 0; -}; -function jur_PreviousMatch() { - jur_AbstractSet.call(this); -} -function jur_PreviousMatch__init_0() { - var var_0 = new jur_PreviousMatch(); - jur_PreviousMatch__init_(var_0); - return var_0; -} -function jur_PreviousMatch__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); -} -$java.jur_PreviousMatch_matches = function($this, $stringIndex, $testString, $matchResult) { - if ($stringIndex != $matchResult.$previousMatch) - return (-1); - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -$java.jur_PreviousMatch_hasConsumed = function($this, $matchResult) { - return 0; -}; -$java.jur_PreviousMatch_getName = function($this) { - return $rt_s(2231); -}; -function jur_EOLSet() { - jur_AbstractSet.call(this); - this.$consCounter = 0; -} -function jur_EOLSet__init_0(var_0) { - var var_1 = new jur_EOLSet(); - jur_EOLSet__init_(var_1, var_0); - return var_1; -} -function jur_EOLSet__init_($this, $counter) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$consCounter = $counter; -} -$java.jur_EOLSet_matches = function($this, $strIndex, $testString, $matchResult) { - var $rightBound, var$5, $ch; - $rightBound = $matchResult.$anchoringBounds ? $matchResult.$rightBound : $testString.$characters.data.length; - if ($strIndex >= $rightBound) { - $rightBound = $this.$consCounter; - $matchResult.$consumers.data[$rightBound] = 0; - return $this.$next5.$matches($strIndex, $testString, $matchResult); - } - var$5 = $rightBound - $strIndex | 0; - if (var$5 == 2 && jl_String_charAt($testString, $strIndex) == 13 && jl_String_charAt($testString, $strIndex + 1 | 0) == 10) { - $rightBound = $this.$consCounter; - $matchResult.$consumers.data[$rightBound] = 0; - return $this.$next5.$matches($strIndex, $testString, $matchResult); - } - a: { - if (var$5 == 1) { - $ch = jl_String_charAt($testString, $strIndex); - if ($ch == 10) - break a; - if ($ch == 13) - break a; - if ($ch == 133) - break a; - if (($ch | 1) == 8233) - break a; - } - return (-1); - } - $ch = $this.$consCounter; - $matchResult.$consumers.data[$ch] = 0; - return $this.$next5.$matches($strIndex, $testString, $matchResult); -}; -$java.jur_EOLSet_hasConsumed = function($this, $matchResult) { - var $res, var$3; - $res = $this.$consCounter; - $res = !$matchResult.$consumers.data[$res] ? 0 : 1; - var$3 = $this.$consCounter; - $matchResult.$consumers.data[var$3] = (-1); - return $res; -}; -$java.jur_EOLSet_getName = function($this) { - return $rt_s(2232); -}; -function jur_EOISet() { - jur_AbstractSet.call(this); -} -function jur_EOISet__init_0() { - var var_0 = new jur_EOISet(); - jur_EOISet__init_(var_0); - return var_0; -} -function jur_EOISet__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); -} -$java.jur_EOISet_matches = function($this, $stringIndex, $testString, $matchResult) { - if ($stringIndex < (!$matchResult.$transparentBounds ? $matchResult.$rightBound : $testString.$characters.data.length)) - return (-1); - $matchResult.$hitEnd = 1; - $matchResult.$requireEnd = 1; - return $this.$next5.$matches($stringIndex, $testString, $matchResult); -}; -$java.jur_EOISet_hasConsumed = function($this, $matchResult) { - return 0; -}; -$java.jur_EOISet_getName = function($this) { - return $rt_s(2233); -}; -function jur_MultiLineSOLSet() { - jur_AbstractSet.call(this); - this.$lt0 = null; -} -function jur_MultiLineSOLSet__init_(var_0) { - var var_1 = new jur_MultiLineSOLSet(); - $java.jur_MultiLineSOLSet__init_(var_1, var_0); - return var_1; -} -$java.jur_MultiLineSOLSet__init_ = function($this, $lt) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$lt0 = $lt; -}; -$java.jur_MultiLineSOLSet_matches = function($this, $strIndex, $testString, $matchResult) { - a: { - if ($strIndex != $matchResult.$rightBound) { - if (!$strIndex) - break a; - if ($matchResult.$anchoringBounds && $strIndex == $matchResult.$leftBound) - break a; - if ($this.$lt0.$isAfterLineTerminator(jl_String_charAt($testString, $strIndex - 1 | 0), jl_String_charAt($testString, $strIndex))) - break a; - } - return (-1); - } - return $this.$next5.$matches($strIndex, $testString, $matchResult); -}; -$java.jur_MultiLineSOLSet_hasConsumed = function($this, $matchResult) { - return 0; -}; -$java.jur_MultiLineSOLSet_getName = function($this) { - return $rt_s(2234); -}; -function jur_DotAllSet() { - jur_JointSet.call(this); -} -function jur_DotAllSet__init_0() { - var var_0 = new jur_DotAllSet(); - jur_DotAllSet__init_(var_0); - return var_0; -} -function jur_DotAllSet__init_($this) { - var var$1; - var$1 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$1 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$1, 10); -} -$java.jur_DotAllSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $strLength, var$5, $high, $low; - $strLength = $matchResult.$rightBound; - var$5 = $stringIndex + 1 | 0; - if (var$5 > $strLength) { - $matchResult.$hitEnd = 1; - return (-1); - } - $high = $rt_compare(jl_String_charAt($testString, $stringIndex) & 64512, 55296); - if ($high ? 0 : 1) { - $stringIndex = $stringIndex + 2 | 0; - if ($stringIndex <= $strLength) { - $low = jl_String_charAt($testString, var$5); - $high = $high ? 0 : 1; - if ($high && (($low & 64512) != 56320 ? 0 : 1) ? 1 : 0) - return $this.$next5.$matches($stringIndex, $testString, $matchResult); - } - } - return $this.$next5.$matches(var$5, $testString, $matchResult); -}; -$java.jur_DotAllSet_getName = function($this) { - return $rt_s(2235); -}; -$java.jur_DotAllSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_DotAllSet_getType = function($this) { - return (-2147483602); -}; -$java.jur_DotAllSet_hasConsumed = function($this, $matchResult) { - return 1; -}; -function jur_DotSet() { - jur_JointSet.call(this); - this.$lt1 = null; -} -function jur_DotSet__init_(var_0) { - var var_1 = new jur_DotSet(); - $java.jur_DotSet__init_(var_1, var_0); - return var_1; -} -$java.jur_DotSet__init_ = function($this, $lt) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$lt1 = $lt; -}; -$java.jur_DotSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $strLength, var$5, $high, var$7, $low; - $strLength = $matchResult.$rightBound; - var$5 = $stringIndex + 1 | 0; - if (var$5 > $strLength) { - $matchResult.$hitEnd = 1; - return (-1); - } - $high = jl_String_charAt($testString, $stringIndex); - var$7 = $rt_compare($high & 64512, 55296); - if (var$7 ? 0 : 1) { - $stringIndex = $stringIndex + 2 | 0; - if ($stringIndex <= $strLength) { - $low = jl_String_charAt($testString, var$5); - $strLength = var$7 ? 0 : 1; - if ($strLength && (($low & 64512) != 56320 ? 0 : 1) ? 1 : 0) - return $this.$lt1.$isLineTerminator((($high & 1023) << 10 | $low & 1023) + 65536 | 0) ? (-1) : $this.$next5.$matches($stringIndex, $testString, $matchResult); - } - } - return $this.$lt1.$isLineTerminator($high) ? (-1) : $this.$next5.$matches(var$5, $testString, $matchResult); -}; -$java.jur_DotSet_getName = function($this) { - return $rt_s(303); -}; -$java.jur_DotSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_DotSet_getType = function($this) { - return (-2147483602); -}; -$java.jur_DotSet_hasConsumed = function($this, $matchResult) { - return 1; -}; -function jur_UEOLSet() { - jur_AbstractSet.call(this); - this.$consCounter0 = 0; -} -function jur_UEOLSet__init_(var_0) { - var var_1 = new jur_UEOLSet(); - $java.jur_UEOLSet__init_(var_1, var_0); - return var_1; -} -$java.jur_UEOLSet__init_ = function($this, $counter) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$consCounter0 = $counter; -}; -$java.jur_UEOLSet_matches = function($this, $strIndex, $testString, $matchResult) { - var $rightBound, var$5; - $rightBound = $matchResult.$anchoringBounds ? $matchResult.$rightBound : $testString.$characters.data.length; - if ($strIndex >= $rightBound) { - $rightBound = $this.$consCounter0; - $matchResult.$consumers.data[$rightBound] = 0; - return $this.$next5.$matches($strIndex, $testString, $matchResult); - } - if (($rightBound - $strIndex | 0) == 1 && jl_String_charAt($testString, $strIndex) == 10) { - var$5 = $this.$consCounter0; - $matchResult.$consumers.data[var$5] = 1; - return $this.$next5.$matches($strIndex + 1 | 0, $testString, $matchResult); - } - return (-1); -}; -$java.jur_UEOLSet_hasConsumed = function($this, $matchResult) { - var $res, var$3; - $res = $this.$consCounter0; - $res = !$matchResult.$consumers.data[$res] ? 0 : 1; - var$3 = $this.$consCounter0; - $matchResult.$consumers.data[var$3] = (-1); - return $res; -}; -$java.jur_UEOLSet_getName = function($this) { - return $rt_s(2232); -}; -function jur_UMultiLineEOLSet() { - jur_AbstractSet.call(this); - this.$consCounter1 = 0; -} -function jur_UMultiLineEOLSet__init_(var_0) { - var var_1 = new jur_UMultiLineEOLSet(); - $java.jur_UMultiLineEOLSet__init_(var_1, var_0); - return var_1; -} -$java.jur_UMultiLineEOLSet__init_ = function($this, $counter) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$consCounter1 = $counter; -}; -$java.jur_UMultiLineEOLSet_matches = function($this, $strIndex, $testString, $matchResult) { - var $strDif, var$5; - if (($matchResult.$anchoringBounds ? $matchResult.$rightBound - $strIndex | 0 : $testString.$characters.data.length - $strIndex | 0) <= 0) { - $strDif = $this.$consCounter1; - $matchResult.$consumers.data[$strDif] = 0; - return $this.$next5.$matches($strIndex, $testString, $matchResult); - } - if (jl_String_charAt($testString, $strIndex) != 10) - return (-1); - var$5 = $this.$consCounter1; - $matchResult.$consumers.data[var$5] = 1; - return $this.$next5.$matches($strIndex + 1 | 0, $testString, $matchResult); -}; -$java.jur_UMultiLineEOLSet_hasConsumed = function($this, $matchResult) { - var $res, var$3; - $res = $this.$consCounter1; - $res = !$matchResult.$consumers.data[$res] ? 0 : 1; - var$3 = $this.$consCounter1; - $matchResult.$consumers.data[var$3] = (-1); - return $res; -}; -$java.jur_UMultiLineEOLSet_getName = function($this) { - return $rt_s(2236); -}; -function jur_MultiLineEOLSet() { - jur_AbstractSet.call(this); - this.$consCounter2 = 0; -} -function jur_MultiLineEOLSet__init_(var_0) { - var var_1 = new jur_MultiLineEOLSet(); - $java.jur_MultiLineEOLSet__init_(var_1, var_0); - return var_1; -} -$java.jur_MultiLineEOLSet__init_ = function($this, $counter) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$consCounter2 = $counter; -}; -$java.jur_MultiLineEOLSet_matches = function($this, $strIndex, $testString, $matchResult) { - var $strDif, $ch1, $ch2; - $strDif = $matchResult.$anchoringBounds ? $matchResult.$leftBound - $strIndex | 0 : $testString.$characters.data.length - $strIndex | 0; - if (!$strDif) { - $strDif = $this.$consCounter2; - $matchResult.$consumers.data[$strDif] = 0; - return $this.$next5.$matches($strIndex, $testString, $matchResult); - } - if ($strDif < 2) { - $ch1 = jl_String_charAt($testString, $strIndex); - $ch2 = 97; - } else { - $ch1 = jl_String_charAt($testString, $strIndex); - $ch2 = jl_String_charAt($testString, $strIndex + 1 | 0); - } - switch ($ch1) { - case 10: - case 133: - case 8232: - case 8233: - $strDif = $this.$consCounter2; - $matchResult.$consumers.data[$strDif] = 0; - return $this.$next5.$matches($strIndex, $testString, $matchResult); - case 13: - if ($ch2 != 10) { - $strDif = $this.$consCounter2; - $matchResult.$consumers.data[$strDif] = 0; - return $this.$next5.$matches($strIndex, $testString, $matchResult); - } - $strDif = $this.$consCounter2; - $matchResult.$consumers.data[$strDif] = 0; - return $this.$next5.$matches($strIndex, $testString, $matchResult); - default: - } - return (-1); -}; -$java.jur_MultiLineEOLSet_hasConsumed = function($this, $matchResult) { - var $res, var$3; - $res = $this.$consCounter2; - $res = !$matchResult.$consumers.data[$res] ? 0 : 1; - var$3 = $this.$consCounter2; - $matchResult.$consumers.data[var$3] = (-1); - return $res; -}; -$java.jur_MultiLineEOLSet_getName = function($this) { - return $rt_s(2237); -}; -function jur_CIBackReferenceSet() { - var a = this; jur_JointSet.call(a); - a.$referencedGroup = 0; - a.$consCounter3 = 0; -} -function jur_CIBackReferenceSet__init_(var_0, var_1) { - var var_2 = new jur_CIBackReferenceSet(); - $java.jur_CIBackReferenceSet__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_CIBackReferenceSet__init_ = function($this, $groupIndex, $consCounter) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$referencedGroup = $groupIndex; - $this.$consCounter3 = $consCounter; -}; -$java.jur_CIBackReferenceSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $group, $i, var$6, var$7; - $group = $java.jur_MatchResultImpl_getGroupNoCheck($matchResult, $this.$referencedGroup); - if ($group !== null && ($stringIndex + $group.$characters.data.length | 0) <= $matchResult.$rightBound) { - $i = 0; - while (true) { - if ($i >= $group.$characters.data.length) { - $i = $this.$consCounter3; - $matchResult.$consumers.data[$i] = $group.$characters.data.length; - return $this.$next5.$matches($stringIndex + $group.$characters.data.length | 0, $testString, $matchResult); - } - var$6 = jl_String_charAt($group, $i); - var$7 = $stringIndex + $i | 0; - if (var$6 != jl_String_charAt($testString, var$7) && jur_Pattern_getSupplement(jl_String_charAt($group, $i)) != jl_String_charAt($testString, var$7)) - break; - $i = $i + 1 | 0; - } - return (-1); - } - return (-1); -}; -$java.jur_CIBackReferenceSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_CIBackReferenceSet_getString = function($this, $matchResult) { - return $java.jur_MatchResultImpl_getGroupNoCheck($matchResult, $this.$referencedGroup); -}; -$java.jur_CIBackReferenceSet_getName = function($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(2238)); - var$2 = $this.$groupIndex0; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_CIBackReferenceSet_hasConsumed = function($this, $matchResult) { - var $res, var$3; - $res = $this.$consCounter3; - $res = !$matchResult.$consumers.data[$res] ? 0 : 1; - var$3 = $this.$consCounter3; - $matchResult.$consumers.data[var$3] = (-1); - return $res; -}; -function jur_BackReferenceSet() { - jur_CIBackReferenceSet.call(this); -} -function jur_BackReferenceSet__init_(var_0, var_1) { - var var_2 = new jur_BackReferenceSet(); - $java.jur_BackReferenceSet__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_BackReferenceSet__init_ = function($this, $groupIndex, $consCounter) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$referencedGroup = $groupIndex; - $this.$consCounter3 = $consCounter; -}; -$java.jur_BackReferenceSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $group, $shift, var$6; - $group = $java.jur_MatchResultImpl_getGroupNoCheck($matchResult, $this.$referencedGroup); - if ($group !== null && ($stringIndex + $group.$characters.data.length | 0) <= $matchResult.$rightBound) { - $shift = !jl_String_startsWith($testString, $group, $stringIndex) ? (-1) : $group.$characters.data.length; - if ($shift < 0) - return (-1); - var$6 = $this.$consCounter3; - $matchResult.$consumers.data[var$6] = $shift; - return $this.$next5.$matches($stringIndex + $shift | 0, $testString, $matchResult); - } - return (-1); -}; -$java.jur_BackReferenceSet_find = function($this, $strIndex, $testString, $matchResult) { - var $group, $strLength, $testStr; - $group = $java.jur_MatchResultImpl_getGroupNoCheck($matchResult, $this.$referencedGroup); - $strLength = $matchResult.$leftBound; - if ($group !== null && ($strIndex + $group.$characters.data.length | 0) <= $strLength) { - $testStr = $testString; - while (true) { - if ($strIndex > $strLength) - return (-1); - $strIndex = jl_String_indexOf1($testStr, $group, $strIndex); - if ($strIndex < 0) - return (-1); - if ($this.$next5.$matches($strIndex + $group.$characters.data.length | 0, $testString, $matchResult) >= 0) - break; - $strIndex = $strIndex + 1 | 0; - } - return $strIndex; - } - return (-1); -}; -$java.jur_BackReferenceSet_findBack = function($this, $strIndex, $lastIndex, $testString, $matchResult) { - var $group, $testStr, var$7; - $group = $java.jur_MatchResultImpl_getGroupNoCheck($matchResult, $this.$referencedGroup); - if ($group === null) - return (-1); - $testStr = $testString; - a: { - while (true) { - if ($lastIndex < $strIndex) - return (-1); - var$7 = jl_String_lastIndexOf1($testStr, $group, $lastIndex); - if (var$7 < 0) - break a; - if (var$7 < $strIndex) - break a; - if ($this.$next5.$matches(var$7 + $group.$characters.data.length | 0, $testString, $matchResult) >= 0) - break; - $lastIndex = var$7 + (-1) | 0; - } - return var$7; - } - return (-1); -}; -$java.jur_BackReferenceSet_first = function($this, $set) { - return 1; -}; -$java.jur_BackReferenceSet_getName = function($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(2239)); - var$2 = $this.$groupIndex0; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_UCIBackReferenceSet() { - jur_CIBackReferenceSet.call(this); - this.$groupIndex1 = 0; -} -function jur_UCIBackReferenceSet__init_(var_0, var_1) { - var var_2 = new jur_UCIBackReferenceSet(); - $java.jur_UCIBackReferenceSet__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_UCIBackReferenceSet__init_ = function($this, $groupIndex, $consCounter) { - var var$3; - var$3 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$3 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$3, 10); - $this.$referencedGroup = $groupIndex; - $this.$consCounter3 = $consCounter; -}; -$java.jur_UCIBackReferenceSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $group, $i, var$6; - $group = $java.jur_MatchResultImpl_getGroupNoCheck($matchResult, $this.$referencedGroup); - if ($group !== null && ($stringIndex + $group.$characters.data.length | 0) <= $matchResult.$rightBound) { - $i = 0; - while (true) { - if ($i >= $group.$characters.data.length) { - var$6 = $this.$consCounter3; - $matchResult.$consumers.data[var$6] = $group.$characters.data.length; - return $this.$next5.$matches($stringIndex + $group.$characters.data.length | 0, $testString, $matchResult); - } - if (((String.fromCharCode((String.fromCharCode(jl_String_charAt($group, $i))).toUpperCase().charCodeAt(0) & 65535)).toLowerCase().charCodeAt(0) & 65535) != ((String.fromCharCode((String.fromCharCode(jl_String_charAt($testString, $stringIndex + $i | 0))).toUpperCase().charCodeAt(0) & 65535)).toLowerCase().charCodeAt(0) & 65535)) - break; - $i = $i + 1 | 0; - } - return (-1); - } - return (-1); -}; -$java.jur_UCIBackReferenceSet_getName = function($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(2240)); - var$2 = $this.$groupIndex1; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_SequenceSet() { - var a = this; jur_LeafSet.call(a); - a.$string1 = null; - a.$leftToRight = null; - a.$rightToLeft = null; -} -function jur_SequenceSet__init_(var_0) { - var var_1 = new jur_SequenceSet(); - $java.jur_SequenceSet__init_(var_1, var_0); - return var_1; -} -$java.jur_SequenceSet__init_ = function($this, $substring) { - var $j; - $j = jur_AbstractSet_counter; - jur_AbstractSet_counter = $j + 1 | 0; - $this.$index5 = jl_Integer_toString($j, 10); - $this.$charCount = 1; - $this.$string1 = jl_String__init_0($substring.$buffer, 0, $substring.$length); - $this.$charCount = $substring.$length; - $this.$leftToRight = $java.jur_SequenceSet$IntHash__init_($this.$charCount); - $this.$rightToLeft = $java.jur_SequenceSet$IntHash__init_($this.$charCount); - $j = 0; - while ($j < ($this.$charCount - 1 | 0)) { - $java.jur_SequenceSet$IntHash_put($this.$leftToRight, jl_String_charAt($this.$string1, $j), ($this.$charCount - $j | 0) - 1 | 0); - $java.jur_SequenceSet$IntHash_put($this.$rightToLeft, jl_String_charAt($this.$string1, ($this.$charCount - $j | 0) - 1 | 0), ($this.$charCount - $j | 0) - 1 | 0); - $j = $j + 1 | 0; - } -}; -$java.jur_SequenceSet_accepts = function($this, $strIndex, $testString) { - return !$java.jur_SequenceSet_startsWith($this, $testString, $strIndex) ? (-1) : $this.$charCount; -}; -$java.jur_SequenceSet_find = function($this, $strIndex, $testString, $matchResult) { - var $strLength, var$5; - $strLength = $matchResult.$rightBound; - while (true) { - if ($strIndex > $strLength) - return (-1); - var$5 = $java.jur_SequenceSet_indexOf($this, $testString, $strIndex, $strLength); - if (var$5 < 0) - return (-1); - if ($this.$next5.$matches(var$5 + $this.$charCount | 0, $testString, $matchResult) >= 0) - break; - $strIndex = var$5 + 1 | 0; - } - return var$5; -}; -$java.jur_SequenceSet_findBack = function($this, $strIndex, $lastIndex, $testString, $matchResult) { - while (true) { - if ($lastIndex < $strIndex) - return (-1); - $lastIndex = $java.jur_SequenceSet_lastIndexOf($this, $testString, $strIndex, $lastIndex); - if ($lastIndex < 0) - return (-1); - if ($this.$next5.$matches($lastIndex + $this.$charCount | 0, $testString, $matchResult) >= 0) - break; - $lastIndex = $lastIndex + (-1) | 0; - } - return $lastIndex; -}; -$java.jur_SequenceSet_getName = function($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(2241)); - var$2 = $this.$string1; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_SequenceSet_first = function($this, $set) { - var var$2, var$3, var$4; - if ($set instanceof jur_CharSet) - return $set.$ch0 != jl_String_charAt($this.$string1, 0) ? 0 : 1; - if ($set instanceof jur_RangeSet) { - $set = $set; - var$2 = $this.$string1; - var$3 = jl_String__init_0(var$2.$characters, 0, 1); - return (!$set.$chars0.$contains1(jl_String_charAt(var$3, 0)) ? (-1) : 1) <= 0 ? 0 : 1; - } - if (!($set instanceof jur_SupplRangeSet)) { - if (!($set instanceof jur_SupplCharSet)) - return 1; - return $this.$string1.$characters.data.length > 1 && $set.$ch4 == (((jl_String_charAt($this.$string1, 0) & 1023) << 10 | jl_String_charAt($this.$string1, 1) & 1023) + 65536 | 0) ? 1 : 0; - } - a: { - b: { - $set = $set; - if (!$set.$contains1(jl_String_charAt($this.$string1, 0))) { - if ($this.$string1.$characters.data.length <= 1) - break b; - if (!$set.$contains1(((jl_String_charAt($this.$string1, 0) & 1023) << 10 | jl_String_charAt($this.$string1, 1) & 1023) + 65536 | 0)) - break b; - } - var$4 = 1; - break a; - } - var$4 = 0; - } - return var$4; -}; -$java.jur_SequenceSet_indexOf = function($this, $str, $i, $to) { - var $last, $ch; - $last = jl_String_charAt($this.$string1, $this.$charCount - 1 | 0); - while (true) { - if ($i > ($to - $this.$charCount | 0)) - return (-1); - $ch = jl_String_charAt($str, ($i + $this.$charCount | 0) - 1 | 0); - if ($ch == $last && $java.jur_SequenceSet_startsWith($this, $str, $i)) - break; - $i = $i + $java.jur_SequenceSet$IntHash_get($this.$leftToRight, $ch) | 0; - } - return $i; -}; -$java.jur_SequenceSet_lastIndexOf = function($this, $str, $to, $i) { - var $first, $delta, $ch; - $first = jl_String_charAt($this.$string1, 0); - $delta = ($str.$characters.data.length - $i | 0) - $this.$charCount | 0; - if ($delta <= 0) - $i = $i + $delta | 0; - while (true) { - if ($i < $to) - return (-1); - $ch = jl_String_charAt($str, $i); - if ($ch == $first && $java.jur_SequenceSet_startsWith($this, $str, $i)) - break; - $i = $i - $java.jur_SequenceSet$IntHash_get($this.$rightToLeft, $ch) | 0; - } - return $i; -}; -$java.jur_SequenceSet_startsWith = function($this, $str, $from) { - var $i; - $i = 0; - while ($i < $this.$charCount) { - if (jl_String_charAt($str, $i + $from | 0) != jl_String_charAt($this.$string1, $i)) - return 0; - $i = $i + 1 | 0; - } - return 1; -}; -function jur_UCISequenceSet() { - jur_LeafSet.call(this); - this.$string2 = null; -} -function jur_UCISequenceSet__init_(var_0) { - var var_1 = new jur_UCISequenceSet(); - $java.jur_UCISequenceSet__init_(var_1, var_0); - return var_1; -} -$java.jur_UCISequenceSet__init_ = function($this, $substring) { - var var$2, $res, $i, var$5; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$charCount = 1; - $res = new jl_StringBuilder; - $res.$buffer = $rt_createCharArray(16); - $i = 0; - while ($i < $substring.$length) { - var$5 = (String.fromCharCode((String.fromCharCode(jl_AbstractStringBuilder_charAt($substring, $i))).toUpperCase().charCodeAt(0) & 65535)).toLowerCase().charCodeAt(0) & 65535; - var$2 = $res.$length; - jl_AbstractStringBuilder_insertSpace($res, var$2, var$2 + 1 | 0); - $res.$buffer.data[var$2] = var$5; - $i = $i + 1 | 0; - } - $this.$string2 = jl_String__init_0($res.$buffer, 0, $res.$length); - $this.$charCount = $res.$length; -}; -$java.jur_UCISequenceSet_accepts = function($this, $strIndex, $testString) { - var $i; - $i = 0; - while (true) { - if ($i >= $this.$string2.$characters.data.length) - return $this.$string2.$characters.data.length; - if (jl_String_charAt($this.$string2, $i) != ((String.fromCharCode((String.fromCharCode(jl_String_charAt($testString, $strIndex + $i | 0))).toUpperCase().charCodeAt(0) & 65535)).toLowerCase().charCodeAt(0) & 65535)) - break; - $i = $i + 1 | 0; - } - return (-1); -}; -$java.jur_UCISequenceSet_getName = function($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(2242)); - var$2 = $this.$string2; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_CISequenceSet() { - jur_LeafSet.call(this); - this.$string0 = null; -} -$java.jur_CISequenceSet_accepts = function($this, $strIndex, $testString) { - var $i, var$4, var$5; - $i = 0; - while (true) { - if ($i >= $this.$string0.$characters.data.length) - return $this.$string0.$characters.data.length; - var$4 = jl_String_charAt($this.$string0, $i); - var$5 = $strIndex + $i | 0; - if (var$4 != jl_String_charAt($testString, var$5) && jur_Pattern_getSupplement(jl_String_charAt($this.$string0, $i)) != jl_String_charAt($testString, var$5)) - break; - $i = $i + 1 | 0; - } - return (-1); -}; -$java.jur_CISequenceSet_getName = function($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(2243)); - var$2 = $this.$string0; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_AbstractCharClass$PredefinedCharacterClasses() { - jl_Object.call(this); -} -$java.jur_AbstractCharClass$PredefinedCharacterClasses_space = null; -$java.jur_AbstractCharClass$PredefinedCharacterClasses_digit = null; -$java.jur_AbstractCharClass$PredefinedCharacterClasses_contents = null; -$java.jur_AbstractCharClass$PredefinedCharacterClasses__init_ = function() { - var var_0 = new jur_AbstractCharClass$PredefinedCharacterClasses(); - jur_AbstractCharClass$PredefinedCharacterClasses__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$PredefinedCharacterClasses__init_($this) { - return; -} -$java.jur_AbstractCharClass$PredefinedCharacterClasses_getObject = function($this, $name) { - var $i, var$3, $row; - $i = 0; - while (true) { - if ($i >= $java.jur_AbstractCharClass$PredefinedCharacterClasses_contents.data.length) { - var$3 = new $java.ju_MissingResourceException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(44); - var$3.$className = $rt_s(44); - var$3.$key1 = $name; - $rt_throw(var$3); - } - $row = $java.jur_AbstractCharClass$PredefinedCharacterClasses_contents.data[$i].data; - if (jl_String_equals($name, $row[0])) - break; - $i = $i + 1 | 0; - } - return $row[1]; -}; -function jur_AbstractCharClass$PredefinedCharacterClasses__clinit_() { - var var$1, var$2, var$3, var$4; - $java.jur_AbstractCharClass$PredefinedCharacterClasses_space = $java.jur_AbstractCharClass$LazySpace__init_(); - $java.jur_AbstractCharClass$PredefinedCharacterClasses_digit = $java.jur_AbstractCharClass$LazyDigit__init_(); - var$1 = $rt_createArray($rt_arraycls(jl_Object), 194); - var$2 = var$1.data; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2244); - var$4[1] = $java.jur_AbstractCharClass$LazyLower__init_(); - var$2[0] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2245); - var$4[1] = $java.jur_AbstractCharClass$LazyUpper__init_(); - var$2[1] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2246); - var$4[1] = $java.jur_AbstractCharClass$LazyASCII__init_(); - var$2[2] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2247); - var$4[1] = $java.jur_AbstractCharClass$LazyAlpha__init_(); - var$2[3] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2248); - var$4[1] = $java.jur_AbstractCharClass$PredefinedCharacterClasses_digit; - var$2[4] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2249); - var$4[1] = $java.jur_AbstractCharClass$LazyAlnum__init_(); - var$2[5] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2250); - var$4[1] = $java.jur_AbstractCharClass$LazyPunct__init_(); - var$2[6] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2251); - var$4[1] = $java.jur_AbstractCharClass$LazyGraph__init_(); - var$2[7] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2252); - var$4[1] = $java.jur_AbstractCharClass$LazyPrint__init_(); - var$2[8] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2253); - var$4[1] = $java.jur_AbstractCharClass$LazyBlank__init_(); - var$2[9] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2254); - var$4[1] = $java.jur_AbstractCharClass$LazyCntrl__init_(); - var$2[10] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2255); - var$4[1] = $java.jur_AbstractCharClass$LazyXDigit__init_(); - var$2[11] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2256); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaLowerCase__init_(); - var$2[12] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2257); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaUpperCase__init_(); - var$2[13] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2258); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaWhitespace__init_(); - var$2[14] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2259); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaMirrored__init_(); - var$2[15] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2260); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaDefined__init_(); - var$2[16] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2261); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaDigit__init_(); - var$2[17] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2262); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaIdentifierIgnorable__init_(); - var$2[18] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2263); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaISOControl__init_(); - var$2[19] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2264); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaJavaIdentifierPart__init_(); - var$2[20] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2265); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaJavaIdentifierStart__init_(); - var$2[21] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2266); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaLetter__init_(); - var$2[22] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2267); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaLetterOrDigit__init_(); - var$2[23] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2268); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaSpaceChar__init_(); - var$2[24] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2269); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaTitleCase__init_(); - var$2[25] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2270); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart__init_(); - var$2[26] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2271); - var$4[1] = $java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart__init_(); - var$2[27] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2272); - var$4[1] = $java.jur_AbstractCharClass$PredefinedCharacterClasses_space; - var$2[28] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2273); - var$4[1] = $java.jur_AbstractCharClass$LazyWord__init_(); - var$2[29] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(87); - var$4[1] = $java.jur_AbstractCharClass$LazyNonWord__init_(); - var$2[30] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2274); - var$4[1] = $java.jur_AbstractCharClass$PredefinedCharacterClasses_space; - var$2[31] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(101); - var$4[1] = $java.jur_AbstractCharClass$LazyNonSpace__init_(); - var$2[32] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2275); - var$4[1] = $java.jur_AbstractCharClass$PredefinedCharacterClasses_digit; - var$2[33] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(102); - var$4[1] = $java.jur_AbstractCharClass$LazyNonDigit__init_(); - var$2[34] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2276); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(0, 127); - var$2[35] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2277); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(128, 255); - var$2[36] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2278); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(256, 383); - var$2[37] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2279); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(384, 591); - var$2[38] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2280); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(592, 687); - var$2[39] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2281); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(688, 767); - var$2[40] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2282); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(768, 879); - var$2[41] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2283); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(880, 1023); - var$2[42] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2284); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(1024, 1279); - var$2[43] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2285); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(1280, 1327); - var$2[44] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2286); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(1328, 1423); - var$2[45] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2287); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(1424, 1535); - var$2[46] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2288); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(1536, 1791); - var$2[47] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2289); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(1792, 1871); - var$2[48] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2290); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(1872, 1919); - var$2[49] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2291); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(1920, 1983); - var$2[50] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2292); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(2304, 2431); - var$2[51] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2293); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(2432, 2559); - var$2[52] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2294); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(2560, 2687); - var$2[53] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2295); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(2688, 2815); - var$2[54] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2296); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(2816, 2943); - var$2[55] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2297); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(2944, 3071); - var$2[56] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2298); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(3072, 3199); - var$2[57] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2299); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(3200, 3327); - var$2[58] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2300); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(3328, 3455); - var$2[59] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2301); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(3456, 3583); - var$2[60] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2302); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(3584, 3711); - var$2[61] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2303); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(3712, 3839); - var$2[62] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2304); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(3840, 4095); - var$2[63] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2305); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(4096, 4255); - var$2[64] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2306); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(4256, 4351); - var$2[65] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2307); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(4352, 4607); - var$2[66] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2308); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(4608, 4991); - var$2[67] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2309); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(4992, 5023); - var$2[68] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2310); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(5024, 5119); - var$2[69] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2311); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(5120, 5759); - var$2[70] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2312); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(5760, 5791); - var$2[71] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2313); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(5792, 5887); - var$2[72] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2314); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(5888, 5919); - var$2[73] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2315); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(5920, 5951); - var$2[74] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2316); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(5952, 5983); - var$2[75] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2317); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(5984, 6015); - var$2[76] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2318); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(6016, 6143); - var$2[77] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2319); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(6144, 6319); - var$2[78] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2320); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(6400, 6479); - var$2[79] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2321); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(6480, 6527); - var$2[80] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2322); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(6528, 6623); - var$2[81] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2323); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(6624, 6655); - var$2[82] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2324); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(6656, 6687); - var$2[83] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2325); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(7424, 7551); - var$2[84] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2326); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(7552, 7615); - var$2[85] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2327); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(7616, 7679); - var$2[86] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2328); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(7680, 7935); - var$2[87] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2329); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(7936, 8191); - var$2[88] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2330); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(8192, 8303); - var$2[89] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2331); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(8304, 8351); - var$2[90] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2332); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(8352, 8399); - var$2[91] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2333); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(8400, 8447); - var$2[92] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2334); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(8448, 8527); - var$2[93] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2335); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(8528, 8591); - var$2[94] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2336); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(8592, 8703); - var$2[95] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2337); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(8704, 8959); - var$2[96] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2338); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(8960, 9215); - var$2[97] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2339); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(9216, 9279); - var$2[98] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2340); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(9280, 9311); - var$2[99] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2341); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(9312, 9471); - var$2[100] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2342); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(9472, 9599); - var$2[101] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2343); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(9600, 9631); - var$2[102] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2344); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(9632, 9727); - var$2[103] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2345); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(9728, 9983); - var$2[104] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2346); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(9984, 10175); - var$2[105] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2347); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(10176, 10223); - var$2[106] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2348); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(10224, 10239); - var$2[107] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2349); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(10240, 10495); - var$2[108] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2350); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(10496, 10623); - var$2[109] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2351); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(10624, 10751); - var$2[110] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2352); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(10752, 11007); - var$2[111] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2353); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(11008, 11263); - var$2[112] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2354); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(11264, 11359); - var$2[113] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2355); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(11392, 11519); - var$2[114] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2356); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(11520, 11567); - var$2[115] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2357); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(11568, 11647); - var$2[116] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2358); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(11648, 11743); - var$2[117] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2359); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(11776, 11903); - var$2[118] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2360); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(11904, 12031); - var$2[119] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2361); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12032, 12255); - var$2[120] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2362); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12272, 12287); - var$2[121] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2363); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12288, 12351); - var$2[122] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2364); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12352, 12447); - var$2[123] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2365); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12448, 12543); - var$2[124] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2366); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12544, 12591); - var$2[125] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2367); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12592, 12687); - var$2[126] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2368); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12688, 12703); - var$2[127] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2369); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12704, 12735); - var$2[128] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2370); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12736, 12783); - var$2[129] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2371); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12784, 12799); - var$2[130] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2372); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(12800, 13055); - var$2[131] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2373); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(13056, 13311); - var$2[132] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2374); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(13312, 19893); - var$2[133] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2375); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(19904, 19967); - var$2[134] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2376); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(19968, 40959); - var$2[135] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2377); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(40960, 42127); - var$2[136] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2378); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(42128, 42191); - var$2[137] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2379); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(42752, 42783); - var$2[138] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2380); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(43008, 43055); - var$2[139] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2381); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(44032, 55203); - var$2[140] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2382); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(55296, 56191); - var$2[141] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2383); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(56192, 56319); - var$2[142] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2384); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(56320, 57343); - var$2[143] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2385); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(57344, 63743); - var$2[144] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2386); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(63744, 64255); - var$2[145] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2387); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(64256, 64335); - var$2[146] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2388); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(64336, 65023); - var$2[147] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2389); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(65024, 65039); - var$2[148] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2390); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(65040, 65055); - var$2[149] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2391); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(65056, 65071); - var$2[150] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2392); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(65072, 65103); - var$2[151] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2393); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(65104, 65135); - var$2[152] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2394); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(65136, 65279); - var$2[153] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2395); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(65280, 65519); - var$2[154] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2396); - var$4[1] = $java.jur_AbstractCharClass$LazyRange__init_(0, 1114111); - var$2[155] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2397); - var$4[1] = $java.jur_AbstractCharClass$LazySpecialsBlock__init_(); - var$2[156] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2398); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(0, 1); - var$2[157] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2399); - var$4[1] = $java.jur_AbstractCharClass$LazyCategoryScope__init_(62, 1); - var$2[158] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2400); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(1, 1); - var$2[159] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2401); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(2, 1); - var$2[160] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2402); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(3, 0); - var$2[161] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2403); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(4, 0); - var$2[162] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2404); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(5, 1); - var$2[163] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2405); - var$4[1] = $java.jur_AbstractCharClass$LazyCategoryScope__init_(448, 1); - var$2[164] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2406); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(6, 1); - var$2[165] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2407); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(7, 0); - var$2[166] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2408); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(8, 1); - var$2[167] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(119); - var$4[1] = $java.jur_AbstractCharClass$LazyCategoryScope__init_(3584, 1); - var$2[168] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2409); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(9, 1); - var$2[169] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2410); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(10, 1); - var$2[170] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2411); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(11, 1); - var$2[171] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2412); - var$4[1] = $java.jur_AbstractCharClass$LazyCategoryScope__init_(28672, 0); - var$2[172] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2413); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(12, 0); - var$2[173] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2414); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(13, 0); - var$2[174] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2415); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(14, 0); - var$2[175] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2416); - var$4[1] = $java.jur_AbstractCharClass$LazyCategoryScope__init_0(983040, 1, 1); - var$2[176] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2417); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(15, 0); - var$2[177] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2418); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(16, 1); - var$2[178] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2419); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(18, 1); - var$2[179] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2420); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_0(19, 0, 1); - var$2[180] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2421); - var$4[1] = $java.jur_AbstractCharClass$LazyCategoryScope__init_(1643118592, 1); - var$2[181] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2422); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(20, 0); - var$2[182] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2423); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(21, 0); - var$2[183] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2424); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(22, 0); - var$2[184] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2425); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(23, 0); - var$2[185] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2426); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(24, 1); - var$2[186] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2427); - var$4[1] = $java.jur_AbstractCharClass$LazyCategoryScope__init_(2113929216, 1); - var$2[187] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2428); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(25, 1); - var$2[188] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2429); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(26, 0); - var$2[189] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2430); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(27, 0); - var$2[190] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2431); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(28, 1); - var$2[191] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2432); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(29, 0); - var$2[192] = var$3; - var$3 = $rt_createArray(jl_Object, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2433); - var$4[1] = $java.jur_AbstractCharClass$LazyCategory__init_(30, 0); - var$2[193] = var$3; - $java.jur_AbstractCharClass$PredefinedCharacterClasses_contents = var$1; -} -$java.jur_AbstractCharClass$LazyCharClass = function() { - var a = this; jl_Object.call(a); - a.$posValue = null; - a.$negValue = null; -}; -$java.jur_AbstractCharClass$LazyCharClass_getValue = function($this, $negative) { - if (!$negative && $this.$posValue === null) - $this.$posValue = $this.$computeValue(); - else if ($negative && $this.$negValue === null) - $this.$negValue = jur_AbstractCharClass_setNegative($this.$computeValue(), 1); - if ($negative) - return $this.$negValue; - return $this.$posValue; -}; -function jur_UCISupplCharSet() { - jur_LeafSet.call(this); - this.$ch3 = 0; -} -$java.jur_UCISupplCharSet_accepts = function($this, $strIndex, $testString) { - var $low, $high; - $low = $strIndex + 1 | 0; - $high = jl_String_charAt($testString, $strIndex); - $low = jl_String_charAt($testString, $low); - return $this.$ch3 != (String.fromCharCode((String.fromCharCode((($high & 1023) << 10 | $low & 1023) + 65536 | 0)).toUpperCase().charCodeAt(0))).toLowerCase().charCodeAt(0) ? (-1) : 2; -}; -$java.jur_UCISupplCharSet_getName = function($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(2224)); - var$2 = jl_String__init_(jl_Character_toChars($this.$ch3)); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jur_LowSurrogateCharSet() { - jur_JointSet.call(this); - this.$low = 0; -} -function jur_LowSurrogateCharSet__init_(var_0) { - var var_1 = new jur_LowSurrogateCharSet(); - $java.jur_LowSurrogateCharSet__init_(var_1, var_0); - return var_1; -} -$java.jur_LowSurrogateCharSet__init_ = function($this, $low) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$low = $low; -}; -$java.jur_LowSurrogateCharSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_LowSurrogateCharSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var var$4, $low; - var$4 = $stringIndex + 1 | 0; - if (var$4 > $matchResult.$rightBound) { - $matchResult.$hitEnd = 1; - return (-1); - } - $low = jl_String_charAt($testString, $stringIndex); - if ($stringIndex > $matchResult.$leftBound && ((jl_String_charAt($testString, $stringIndex - 1 | 0) & 64512) != 55296 ? 0 : 1)) - return (-1); - if ($this.$low != $low) - return (-1); - return $this.$next5.$matches(var$4, $testString, $matchResult); -}; -$java.jur_LowSurrogateCharSet_find = function($this, $strIndex, $testString, $matchResult) { - var var$4, $testStr, $startStr, $strLength, var$8; - if (!($testString instanceof jl_String)) { - var$4 = $matchResult.$rightBound; - a: { - while (true) { - if ($strIndex > var$4) { - $strIndex = (-1); - break a; - } - if ($java.jur_LowSurrogateCharSet_matches($this, $strIndex, $testString, $matchResult) >= 0) - break; - $strIndex = $strIndex + 1 | 0; - } - } - return $strIndex; - } - $testStr = $testString; - $startStr = $matchResult.$leftBound; - $strLength = $matchResult.$rightBound; - while (true) { - if ($strIndex >= $strLength) - return (-1); - var$4 = jl_String_indexOf($testStr, $this.$low, $strIndex); - if (var$4 < 0) - return (-1); - if (var$4 > $startStr && ((jl_String_charAt($testStr, var$4 - 1 | 0) & 64512) != 55296 ? 0 : 1)) { - $strIndex = var$4 + 1 | 0; - continue; - } - var$8 = $this.$next5; - $strIndex = var$4 + 1 | 0; - if (var$8.$matches($strIndex, $testString, $matchResult) >= 0) - break; - } - return var$4; -}; -$java.jur_LowSurrogateCharSet_findBack = function($this, $strIndex, $lastIndex, $testString, $matchResult) { - var $startStr, $testStr, var$7; - if (!($testString instanceof jl_String)) { - a: { - while (true) { - if ($lastIndex < $strIndex) { - $lastIndex = (-1); - break a; - } - if ($java.jur_LowSurrogateCharSet_matches($this, $lastIndex, $testString, $matchResult) >= 0) - break; - $lastIndex = $lastIndex + (-1) | 0; - } - } - return $lastIndex; - } - $startStr = $matchResult.$leftBound; - $testStr = $testString; - b: { - while (true) { - if ($lastIndex < $strIndex) - return (-1); - var$7 = jl_String_lastIndexOf($testStr, $this.$low, $lastIndex); - if (var$7 < 0) - break b; - if (var$7 < $strIndex) - break b; - if (var$7 > $startStr && ((jl_String_charAt($testStr, var$7 - 1 | 0) & 64512) != 55296 ? 0 : 1)) { - $lastIndex = var$7 + (-2) | 0; - continue; - } - if ($this.$next5.$matches(var$7 + 1 | 0, $testString, $matchResult) >= 0) - break; - $lastIndex = var$7 + (-1) | 0; - } - return var$7; - } - return (-1); -}; -$java.jur_LowSurrogateCharSet_getName = function($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.$low; - var$3 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$3, var$3 + 1 | 0); - var$1.$buffer.data[var$3] = var$2; - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_LowSurrogateCharSet_first = function($this, $set) { - if ($set instanceof jur_CharSet) - return 0; - if ($set instanceof jur_RangeSet) - return 0; - if ($set instanceof jur_SupplRangeSet) - return 0; - if ($set instanceof jur_SupplCharSet) - return 0; - if ($set instanceof jur_HighSurrogateCharSet) - return 0; - if (!($set instanceof jur_LowSurrogateCharSet)) - return 1; - return $set.$low != $this.$low ? 0 : 1; -}; -$java.jur_LowSurrogateCharSet_hasConsumed = function($this, $matchResult) { - return 1; -}; -function jur_HighSurrogateCharSet() { - jur_JointSet.call(this); - this.$high = 0; -} -function jur_HighSurrogateCharSet__init_(var_0) { - var var_1 = new jur_HighSurrogateCharSet(); - $java.jur_HighSurrogateCharSet__init_(var_1, var_0); - return var_1; -} -$java.jur_HighSurrogateCharSet__init_ = function($this, $high) { - var var$2; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$high = $high; -}; -$java.jur_HighSurrogateCharSet_setNext = function($this, $next) { - $this.$next5 = $next; -}; -$java.jur_HighSurrogateCharSet_matches = function($this, $stringIndex, $testString, $matchResult) { - var $strLength, var$5, $high; - $strLength = $matchResult.$rightBound; - var$5 = $stringIndex + 1 | 0; - $strLength = $rt_compare(var$5, $strLength); - if ($strLength > 0) { - $matchResult.$hitEnd = 1; - return (-1); - } - $high = jl_String_charAt($testString, $stringIndex); - if ($strLength < 0 && ((jl_String_charAt($testString, var$5) & 64512) != 56320 ? 0 : 1)) - return (-1); - if ($this.$high != $high) - return (-1); - return $this.$next5.$matches(var$5, $testString, $matchResult); -}; -$java.jur_HighSurrogateCharSet_find = function($this, $strIndex, $testString, $matchResult) { - var var$4, $testStr, $strLength, var$7; - if (!($testString instanceof jl_String)) { - var$4 = $matchResult.$rightBound; - a: { - while (true) { - if ($strIndex > var$4) { - $strIndex = (-1); - break a; - } - if ($java.jur_HighSurrogateCharSet_matches($this, $strIndex, $testString, $matchResult) >= 0) - break; - $strIndex = $strIndex + 1 | 0; - } - } - return $strIndex; - } - $testStr = $testString; - $strLength = $matchResult.$rightBound; - while (true) { - if ($strIndex >= $strLength) - return (-1); - var$7 = jl_String_indexOf($testStr, $this.$high, $strIndex); - if (var$7 < 0) - return (-1); - $strIndex = var$7 + 1 | 0; - if ($strIndex < $strLength && ((jl_String_charAt($testStr, $strIndex) & 64512) != 56320 ? 0 : 1)) { - $strIndex = var$7 + 2 | 0; - continue; - } - if ($this.$next5.$matches($strIndex, $testString, $matchResult) >= 0) - break; - } - return var$7; -}; -$java.jur_HighSurrogateCharSet_findBack = function($this, $strIndex, $lastIndex, $testString, $matchResult) { - var $testStr, $strLength, var$7, var$8; - if (!($testString instanceof jl_String)) { - a: { - while (true) { - if ($lastIndex < $strIndex) { - $lastIndex = (-1); - break a; - } - if ($java.jur_HighSurrogateCharSet_matches($this, $lastIndex, $testString, $matchResult) >= 0) - break; - $lastIndex = $lastIndex + (-1) | 0; - } - } - return $lastIndex; - } - $testStr = $testString; - $strLength = $matchResult.$rightBound; - b: { - while (true) { - if ($lastIndex < $strIndex) - return (-1); - var$7 = jl_String_lastIndexOf($testStr, $this.$high, $lastIndex); - if (var$7 < 0) - break b; - if (var$7 < $strIndex) - break b; - var$8 = var$7 + 1 | 0; - if (var$8 < $strLength && ((jl_String_charAt($testStr, var$8) & 64512) != 56320 ? 0 : 1)) { - $lastIndex = var$7 + (-1) | 0; - continue; - } - if ($this.$next5.$matches(var$8, $testString, $matchResult) >= 0) - break; - $lastIndex = var$7 + (-1) | 0; - } - return var$7; - } - return (-1); -}; -$java.jur_HighSurrogateCharSet_getName = function($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.$high; - var$3 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$3, var$3 + 1 | 0); - var$1.$buffer.data[var$3] = var$2; - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_HighSurrogateCharSet_first = function($this, $set) { - if ($set instanceof jur_CharSet) - return 0; - if ($set instanceof jur_RangeSet) - return 0; - if ($set instanceof jur_SupplRangeSet) - return 0; - if ($set instanceof jur_SupplCharSet) - return 0; - if ($set instanceof jur_LowSurrogateCharSet) - return 0; - if (!($set instanceof jur_HighSurrogateCharSet)) - return 1; - return $set.$high != $this.$high ? 0 : 1; -}; -$java.jur_HighSurrogateCharSet_hasConsumed = function($this, $matchResult) { - return 1; -}; -function jur_SupplCharSet() { - var a = this; jur_LeafSet.call(a); - a.$high0 = 0; - a.$low0 = 0; - a.$ch4 = 0; -} -function jur_SupplCharSet__init_(var_0) { - var var_1 = new jur_SupplCharSet(); - $java.jur_SupplCharSet__init_(var_1, var_0); - return var_1; -} -$java.jur_SupplCharSet__init_ = function($this, $ch) { - var var$2, $chUTF16; - var$2 = jur_AbstractSet_counter; - jur_AbstractSet_counter = var$2 + 1 | 0; - $this.$index5 = jl_Integer_toString(var$2, 10); - $this.$charCount = 1; - $this.$charCount = 2; - $this.$ch4 = $ch; - $chUTF16 = jl_Character_toChars($ch).data; - $this.$high0 = $chUTF16[0]; - $this.$low0 = $chUTF16[1]; -}; -$java.jur_SupplCharSet_accepts = function($this, $strIndex, $testString) { - var $low, $high; - $low = $strIndex + 1 | 0; - $high = jl_String_charAt($testString, $strIndex); - $low = jl_String_charAt($testString, $low); - return $this.$high0 == $high && $this.$low0 == $low ? 2 : (-1); -}; -$java.jur_SupplCharSet_find = function($this, $strIndex, $testString, $matchResult) { - var $strLength, $testStr, $ch; - if (!($testString instanceof jl_String)) { - $strLength = $matchResult.$rightBound; - a: { - while (true) { - if ($strIndex > $strLength) { - $strIndex = (-1); - break a; - } - if ($java.jur_LeafSet_matches($this, $strIndex, $testString, $matchResult) >= 0) - break; - $strIndex = $strIndex + 1 | 0; - } - } - return $strIndex; - } - $testStr = $testString; - $strLength = $matchResult.$rightBound; - while ($strIndex < $strLength) { - $strIndex = jl_String_indexOf($testStr, $this.$high0, $strIndex); - if ($strIndex < 0) - return (-1); - $strIndex = $strIndex + 1 | 0; - if ($strIndex >= $strLength) - continue; - $ch = jl_String_charAt($testStr, $strIndex); - if ($this.$low0 == $ch && $this.$next5.$matches($strIndex + 1 | 0, $testString, $matchResult) >= 0) - return $strIndex + (-1) | 0; - $strIndex = $strIndex + 1 | 0; - } - return (-1); -}; -$java.jur_SupplCharSet_findBack = function($this, $strIndex, $lastIndex, $testString, $matchResult) { - var $testStr; - if (!($testString instanceof jl_String)) { - a: { - while (true) { - if ($lastIndex < $strIndex) { - $lastIndex = (-1); - break a; - } - if ($java.jur_LeafSet_matches($this, $lastIndex, $testString, $matchResult) >= 0) - break; - $lastIndex = $lastIndex + (-1) | 0; - } - } - return $lastIndex; - } - $testStr = $testString; - b: { - while (true) { - if ($lastIndex < $strIndex) - return (-1); - $lastIndex = jl_String_lastIndexOf($testStr, $this.$low0, $lastIndex) + (-1) | 0; - if ($lastIndex < 0) - break b; - if ($lastIndex < $strIndex) - break b; - if ($this.$high0 == jl_String_charAt($testStr, $lastIndex) && $this.$next5.$matches($lastIndex + 2 | 0, $testString, $matchResult) >= 0) - break; - $lastIndex = $lastIndex + (-1) | 0; - } - return $lastIndex; - } - return (-1); -}; -$java.jur_SupplCharSet_getName = function($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.$high0; - var$3 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$3, var$3 + 1 | 0); - var$1.$buffer.data[var$3] = var$2; - var$2 = $this.$low0; - var$3 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$3, var$3 + 1 | 0); - var$1.$buffer.data[var$3] = var$2; - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.jur_SupplCharSet_getCodePoint = function($this) { - return $this.$ch4; -}; -$java.jur_SupplCharSet_first = function($this, $set) { - if ($set instanceof jur_SupplCharSet) - return $set.$ch4 != $this.$ch4 ? 0 : 1; - if ($set instanceof jur_SupplRangeSet) - return $set.$contains1($this.$ch4); - if ($set instanceof jur_CharSet) - return 0; - if (!($set instanceof jur_RangeSet)) - return 1; - return 0; -}; -function jur_AbstractLineTerminator$1() { - jur_AbstractLineTerminator.call(this); -} -$java.jur_AbstractLineTerminator$1__init_ = function() { - var var_0 = new jur_AbstractLineTerminator$1(); - jur_AbstractLineTerminator$1__init_(var_0); - return var_0; -}; -function jur_AbstractLineTerminator$1__init_($this) { - return; -} -$java.jur_AbstractLineTerminator$1_isLineTerminator = function($this, $ch) { - return $ch != 10 ? 0 : 1; -}; -$java.jur_AbstractLineTerminator$1_isAfterLineTerminator = function($this, $ch, $ch2) { - return $ch != 10 ? 0 : 1; -}; -function jur_AbstractLineTerminator$2() { - jur_AbstractLineTerminator.call(this); -} -$java.jur_AbstractLineTerminator$2__init_ = function() { - var var_0 = new jur_AbstractLineTerminator$2(); - jur_AbstractLineTerminator$2__init_(var_0); - return var_0; -}; -function jur_AbstractLineTerminator$2__init_($this) { - return; -} -$java.jur_AbstractLineTerminator$2_isLineTerminator = function($this, $ch) { - return $ch != 10 && $ch != 13 && $ch != 133 && ($ch | 1) != 8233 ? 0 : 1; -}; -$java.jur_AbstractLineTerminator$2_isAfterLineTerminator = function($this, $ch, $ch2) { - a: { - b: { - if ($ch != 10 && $ch != 133 && ($ch | 1) != 8233) { - if ($ch != 13) - break b; - if ($ch2 == 10) - break b; - } - $ch = 1; - break a; - } - $ch = 0; - } - return $ch; -}; -$java.jur_SequenceSet$IntHash = function() { - var a = this; jl_Object.call(a); - a.$table0 = null; - a.$values2 = null; - a.$mask = 0; - a.$size5 = 0; -}; -$java.jur_SequenceSet$IntHash__init_ = function(var_0) { - var var_1 = new $java.jur_SequenceSet$IntHash(); - $java.jur_SequenceSet$IntHash__init_0(var_1, var_0); - return var_1; -}; -$java.jur_SequenceSet$IntHash__init_0 = function($this, $size) { - while ($size >= $this.$mask) { - $this.$mask = $this.$mask << 1 | 1; - } - $this.$mask = $this.$mask << 1 | 1; - $this.$table0 = $rt_createIntArray($this.$mask + 1 | 0); - $this.$values2 = $rt_createIntArray($this.$mask + 1 | 0); - $this.$size5 = $size; -}; -$java.jur_SequenceSet$IntHash_put = function($this, $key, $value) { - var $i, $hashCode; - $i = 0; - $hashCode = $key & $this.$mask; - while ($this.$table0.data[$hashCode] && $this.$table0.data[$hashCode] != $key) { - $i = ($i + 1 | 0) & $this.$mask; - $hashCode = ($hashCode + $i | 0) & $this.$mask; - } - $this.$table0.data[$hashCode] = $key; - $this.$values2.data[$hashCode] = $value; -}; -$java.jur_SequenceSet$IntHash_get = function($this, $key) { - var $hashCode, $i, $storedKey; - $hashCode = $key & $this.$mask; - $i = 0; - while (true) { - $storedKey = $this.$table0.data[$hashCode]; - if (!$storedKey) - break; - if ($storedKey == $key) - return $this.$values2.data[$hashCode]; - $i = ($i + 1 | 0) & $this.$mask; - $hashCode = ($hashCode + $i | 0) & $this.$mask; - } - return $this.$size5; -}; -$java.jur_IntHash = function() { - jl_Object.call(this); -}; -function jur_AbstractCharClass$LazySpace() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazySpace__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazySpace(); - jur_AbstractCharClass$LazySpace__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazySpace__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazySpace_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add(jur_CharClass_add0(var$1, 9, 13), 32); -}; -function jur_AbstractCharClass$LazyDigit() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyDigit__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyDigit(); - jur_AbstractCharClass$LazyDigit__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyDigit__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyDigit_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(var$1, 48, 57); -}; -function jur_AbstractCharClass$LazyLower() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyLower__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyLower(); - jur_AbstractCharClass$LazyLower__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyLower__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyLower_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(var$1, 97, 122); -}; -function jur_AbstractCharClass$LazyUpper() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyUpper__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyUpper(); - jur_AbstractCharClass$LazyUpper__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyUpper__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyUpper_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(var$1, 65, 90); -}; -function jur_AbstractCharClass$LazyASCII() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyASCII__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyASCII(); - jur_AbstractCharClass$LazyASCII__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyASCII__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyASCII_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(var$1, 0, 127); -}; -function jur_AbstractCharClass$LazyAlpha() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyAlpha__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyAlpha(); - jur_AbstractCharClass$LazyAlpha__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyAlpha__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyAlpha_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(jur_CharClass_add0(var$1, 97, 122), 65, 90); -}; -function jur_AbstractCharClass$LazyAlnum() { - jur_AbstractCharClass$LazyAlpha.call(this); -} -$java.jur_AbstractCharClass$LazyAlnum__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyAlnum(); - jur_AbstractCharClass$LazyAlnum__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyAlnum__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyAlnum_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(var$1, 97, 122), 65, 90), 48, 57); -}; -function jur_AbstractCharClass$LazyPunct() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyPunct__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyPunct(); - jur_AbstractCharClass$LazyPunct__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyPunct__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyPunct_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(var$1, 33, 64), 91, 96), 123, 126); -}; -function jur_AbstractCharClass$LazyGraph() { - jur_AbstractCharClass$LazyAlnum.call(this); -} -$java.jur_AbstractCharClass$LazyGraph__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyGraph(); - jur_AbstractCharClass$LazyGraph__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyGraph__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyGraph_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(var$1, 97, 122), 65, 90), 48, 57), 33, 64), 91, 96), 123, 126); -}; -function jur_AbstractCharClass$LazyPrint() { - jur_AbstractCharClass$LazyGraph.call(this); -} -$java.jur_AbstractCharClass$LazyPrint__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyPrint(); - jur_AbstractCharClass$LazyPrint__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyPrint__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyPrint_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add(jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(var$1, 97, 122), 65, 90), 48, 57), 33, 64), 91, 96), 123, 126), 32); -}; -function jur_AbstractCharClass$LazyBlank() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyBlank__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyBlank(); - jur_AbstractCharClass$LazyBlank__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyBlank__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyBlank_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add(jur_CharClass_add(var$1, 32), 9); -}; -function jur_AbstractCharClass$LazyCntrl() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyCntrl__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyCntrl(); - jur_AbstractCharClass$LazyCntrl__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyCntrl__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyCntrl_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add(jur_CharClass_add0(var$1, 0, 31), 127); -}; -function jur_AbstractCharClass$LazyXDigit() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyXDigit__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyXDigit(); - jur_AbstractCharClass$LazyXDigit__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyXDigit__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyXDigit_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(var$1, 48, 57), 97, 102), 65, 70); -}; -function jur_AbstractCharClass$LazyJavaLowerCase() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaLowerCase__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaLowerCase(); - jur_AbstractCharClass$LazyJavaLowerCase__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaLowerCase__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaLowerCase_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaLowerCase$1; - $chCl.$this$028 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaUpperCase() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaUpperCase__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaUpperCase(); - jur_AbstractCharClass$LazyJavaUpperCase__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaUpperCase__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaUpperCase_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaUpperCase$1; - $chCl.$this$029 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaWhitespace() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaWhitespace__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaWhitespace(); - jur_AbstractCharClass$LazyJavaWhitespace__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaWhitespace__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaWhitespace_computeValue = function($this) { - var var$1, var$2; - var$1 = new $java.jur_AbstractCharClass$LazyJavaWhitespace$1; - var$1.$this$030 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - return var$1; -}; -function jur_AbstractCharClass$LazyJavaMirrored() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaMirrored__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaMirrored(); - jur_AbstractCharClass$LazyJavaMirrored__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaMirrored__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaMirrored_computeValue = function($this) { - var var$1, var$2; - var$1 = new $java.jur_AbstractCharClass$LazyJavaMirrored$1; - var$1.$this$031 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - return var$1; -}; -function jur_AbstractCharClass$LazyJavaDefined() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaDefined__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaDefined(); - jur_AbstractCharClass$LazyJavaDefined__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaDefined__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaDefined_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaDefined$1; - $chCl.$this$032 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $java.ju_BitSet_set0($chCl.$lowHighSurrogates, 0, 2048); - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaDigit() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaDigit__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaDigit(); - jur_AbstractCharClass$LazyJavaDigit__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaDigit__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaDigit_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaDigit$1; - $chCl.$this$033 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaIdentifierIgnorable() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaIdentifierIgnorable__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaIdentifierIgnorable(); - jur_AbstractCharClass$LazyJavaIdentifierIgnorable__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaIdentifierIgnorable__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaIdentifierIgnorable_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaIdentifierIgnorable$1; - $chCl.$this$034 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaISOControl() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaISOControl__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaISOControl(); - jur_AbstractCharClass$LazyJavaISOControl__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaISOControl__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaISOControl_computeValue = function($this) { - var var$1, var$2; - var$1 = new $java.jur_AbstractCharClass$LazyJavaISOControl$1; - var$1.$this$035 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - return var$1; -}; -function jur_AbstractCharClass$LazyJavaJavaIdentifierPart() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierPart__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaJavaIdentifierPart(); - jur_AbstractCharClass$LazyJavaJavaIdentifierPart__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaJavaIdentifierPart__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierPart_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaJavaIdentifierPart$1; - $chCl.$this$036 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaJavaIdentifierStart() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierStart__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaJavaIdentifierStart(); - jur_AbstractCharClass$LazyJavaJavaIdentifierStart__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaJavaIdentifierStart__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierStart_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaJavaIdentifierStart$1; - $chCl.$this$037 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaLetter() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaLetter__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaLetter(); - jur_AbstractCharClass$LazyJavaLetter__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaLetter__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaLetter_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaLetter$1; - $chCl.$this$038 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaLetterOrDigit() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaLetterOrDigit__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaLetterOrDigit(); - jur_AbstractCharClass$LazyJavaLetterOrDigit__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaLetterOrDigit__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaLetterOrDigit_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaLetterOrDigit$1; - $chCl.$this$039 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaSpaceChar() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaSpaceChar__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaSpaceChar(); - jur_AbstractCharClass$LazyJavaSpaceChar__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaSpaceChar__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaSpaceChar_computeValue = function($this) { - var var$1, var$2; - var$1 = new $java.jur_AbstractCharClass$LazyJavaSpaceChar$1; - var$1.$this$040 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - return var$1; -}; -function jur_AbstractCharClass$LazyJavaTitleCase() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaTitleCase__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaTitleCase(); - jur_AbstractCharClass$LazyJavaTitleCase__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaTitleCase__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaTitleCase_computeValue = function($this) { - var var$1, var$2; - var$1 = new $java.jur_AbstractCharClass$LazyJavaTitleCase$1; - var$1.$this$041 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - return var$1; -}; -function jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart(); - jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart$1; - $chCl.$this$042 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart(); - jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart_computeValue = function($this) { - var $chCl, var$2; - $chCl = new $java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart$1; - $chCl.$this$043 = $this; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyWord() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazyWord__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyWord(); - jur_AbstractCharClass$LazyWord__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyWord__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyWord_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add(jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0(var$1, 97, 122), 65, 90), 48, 57), 95); -}; -function jur_AbstractCharClass$LazyNonWord() { - jur_AbstractCharClass$LazyWord.call(this); -} -$java.jur_AbstractCharClass$LazyNonWord__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyNonWord(); - jur_AbstractCharClass$LazyNonWord__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyNonWord__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyNonWord_computeValue = function($this) { - var $chCl, var$2; - $chCl = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - $chCl.$bits = var$2; - $chCl = jur_AbstractCharClass_setNegative(jur_CharClass_add(jur_CharClass_add0(jur_CharClass_add0(jur_CharClass_add0($chCl, 97, 122), 65, 90), 48, 57), 95), 1); - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyNonSpace() { - jur_AbstractCharClass$LazySpace.call(this); -} -$java.jur_AbstractCharClass$LazyNonSpace__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyNonSpace(); - jur_AbstractCharClass$LazyNonSpace__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyNonSpace__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyNonSpace_computeValue = function($this) { - var $chCl, var$2; - $chCl = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - $chCl.$bits = var$2; - $chCl = jur_AbstractCharClass_setNegative(jur_CharClass_add(jur_CharClass_add0($chCl, 9, 13), 32), 1); - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -function jur_AbstractCharClass$LazyNonDigit() { - jur_AbstractCharClass$LazyDigit.call(this); -} -$java.jur_AbstractCharClass$LazyNonDigit__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazyNonDigit(); - jur_AbstractCharClass$LazyNonDigit__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazyNonDigit__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazyNonDigit_computeValue = function($this) { - var $chCl, var$2; - $chCl = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - $chCl.$bits = var$2; - $chCl = jur_AbstractCharClass_setNegative(jur_CharClass_add0($chCl, 48, 57), 1); - $chCl.$mayContainSupplCodepoints = 1; - return $chCl; -}; -$java.jur_AbstractCharClass$LazyRange = function() { - var a = this; $java.jur_AbstractCharClass$LazyCharClass.call(a); - a.$start8 = 0; - a.$end2 = 0; -}; -$java.jur_AbstractCharClass$LazyRange__init_ = function(var_0, var_1) { - var var_2 = new $java.jur_AbstractCharClass$LazyRange(); - $java.jur_AbstractCharClass$LazyRange__init_0(var_2, var_0, var_1); - return var_2; -}; -$java.jur_AbstractCharClass$LazyRange__init_0 = function($this, $start, $end) { - $this.$start8 = $start; - $this.$end2 = $end; -}; -$java.jur_AbstractCharClass$LazyRange_computeValue = function($this) { - var $chCl, var$2; - $chCl = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - $chCl.$bits = var$2; - return jur_CharClass_add0($chCl, $this.$start8, $this.$end2); -}; -function jur_AbstractCharClass$LazySpecialsBlock() { - $java.jur_AbstractCharClass$LazyCharClass.call(this); -} -$java.jur_AbstractCharClass$LazySpecialsBlock__init_ = function() { - var var_0 = new jur_AbstractCharClass$LazySpecialsBlock(); - jur_AbstractCharClass$LazySpecialsBlock__init_(var_0); - return var_0; -}; -function jur_AbstractCharClass$LazySpecialsBlock__init_($this) { - return; -} -$java.jur_AbstractCharClass$LazySpecialsBlock_computeValue = function($this) { - var var$1, var$2; - var$1 = new jur_CharClass; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(64); - var$1.$lowHighSurrogates = var$2; - var$2 = new ju_BitSet; - var$2.$data9 = $rt_createIntArray(0); - var$1.$bits = var$2; - return jur_CharClass_add0(jur_CharClass_add0(var$1, 65279, 65279), 65520, 65533); -}; -$java.jur_AbstractCharClass$LazyCategory = function() { - var a = this; $java.jur_AbstractCharClass$LazyCharClass.call(a); - a.$category = 0; - a.$mayContainSupplCodepoints0 = 0; - a.$containsAllSurrogates = 0; -}; -$java.jur_AbstractCharClass$LazyCategory__init_ = function(var_0, var_1) { - var var_2 = new $java.jur_AbstractCharClass$LazyCategory(); - $java.jur_AbstractCharClass$LazyCategory__init_1(var_2, var_0, var_1); - return var_2; -}; -$java.jur_AbstractCharClass$LazyCategory__init_0 = function(var_0, var_1, var_2) { - var var_3 = new $java.jur_AbstractCharClass$LazyCategory(); - $java.jur_AbstractCharClass$LazyCategory__init_2(var_3, var_0, var_1, var_2); - return var_3; -}; -$java.jur_AbstractCharClass$LazyCategory__init_1 = function($this, $cat, $mayContainSupplCodepoints) { - $this.$mayContainSupplCodepoints0 = $mayContainSupplCodepoints; - $this.$category = $cat; -}; -$java.jur_AbstractCharClass$LazyCategory__init_2 = function($this, $cat, $mayContainSupplCodepoints, $containsAllSurrogates) { - $this.$containsAllSurrogates = $containsAllSurrogates; - $this.$mayContainSupplCodepoints0 = $mayContainSupplCodepoints; - $this.$category = $cat; -}; -$java.jur_AbstractCharClass$LazyCategory_computeValue = function($this) { - var $chCl, var$2, var$3; - $chCl = new $java.jur_UnicodeCategory; - var$2 = $this.$category; - var$3 = new ju_BitSet; - var$3.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$3; - $chCl.$category0 = var$2; - if ($this.$containsAllSurrogates) - $java.ju_BitSet_set0($chCl.$lowHighSurrogates, 0, 2048); - $chCl.$mayContainSupplCodepoints = $this.$mayContainSupplCodepoints0; - return $chCl; -}; -$java.jur_AbstractCharClass$LazyCategoryScope = function() { - var a = this; $java.jur_AbstractCharClass$LazyCharClass.call(a); - a.$category1 = 0; - a.$mayContainSupplCodepoints1 = 0; - a.$containsAllSurrogates0 = 0; -}; -$java.jur_AbstractCharClass$LazyCategoryScope__init_ = function(var_0, var_1) { - var var_2 = new $java.jur_AbstractCharClass$LazyCategoryScope(); - $java.jur_AbstractCharClass$LazyCategoryScope__init_1(var_2, var_0, var_1); - return var_2; -}; -$java.jur_AbstractCharClass$LazyCategoryScope__init_0 = function(var_0, var_1, var_2) { - var var_3 = new $java.jur_AbstractCharClass$LazyCategoryScope(); - $java.jur_AbstractCharClass$LazyCategoryScope__init_2(var_3, var_0, var_1, var_2); - return var_3; -}; -$java.jur_AbstractCharClass$LazyCategoryScope__init_1 = function($this, $cat, $mayContainSupplCodepoints) { - $this.$mayContainSupplCodepoints1 = $mayContainSupplCodepoints; - $this.$category1 = $cat; -}; -$java.jur_AbstractCharClass$LazyCategoryScope__init_2 = function($this, $cat, $mayContainSupplCodepoints, $containsAllSurrogates) { - $this.$containsAllSurrogates0 = $containsAllSurrogates; - $this.$mayContainSupplCodepoints1 = $mayContainSupplCodepoints; - $this.$category1 = $cat; -}; -$java.jur_AbstractCharClass$LazyCategoryScope_computeValue = function($this) { - var $chCl, var$2, var$3; - $chCl = new $java.jur_UnicodeCategoryScope; - var$2 = $this.$category1; - var$3 = new ju_BitSet; - var$3.$data9 = $rt_createIntArray(64); - $chCl.$lowHighSurrogates = var$3; - $chCl.$category0 = var$2; - if ($this.$containsAllSurrogates0) - $java.ju_BitSet_set0($chCl.$lowHighSurrogates, 0, 2048); - $chCl.$mayContainSupplCodepoints = $this.$mayContainSupplCodepoints1; - return $chCl; -}; -function otciu_UnicodeHelper() { - jl_Object.call(this); -} -$java.otciu_UnicodeHelper__init_ = function() { - var var_0 = new otciu_UnicodeHelper(); - otciu_UnicodeHelper__init_(var_0); - return var_0; -}; -function otciu_UnicodeHelper__init_($this) { - return; -} -function otciu_UnicodeHelper_decodeIntByte($text) { - var $flow, $i, $sz, $data, var$6, var$7, var$8; - $flow = new $java.otci_CharFlow; - $flow.$characters0 = jl_String_toCharArray($text); - $i = $java.otci_Base46_decodeUnsigned($flow); - $sz = $i / 2 | 0; - if ($i % 2 | 0) - $sz = -$sz; - $data = $rt_createIntArray($sz); - var$6 = $data.data; - $i = 0; - while ($i < $sz) { - var$7 = $java.otci_Base46_decodeUnsigned($flow); - var$8 = var$7 / 2 | 0; - if (var$7 % 2 | 0) - var$8 = -var$8; - var$6[$i] = var$8; - $i = $i + 1 | 0; - } - return $data; -} -$java.otciu_UnicodeHelper_decodeByte = function($c) { - if ($c > 92) - return (($c - 32 | 0) - 2 | 0) << 24 >> 24; - if ($c <= 34) - return ($c - 32 | 0) << 24 >> 24; - return (($c - 32 | 0) - 1 | 0) << 24 >> 24; -}; -function otciu_UnicodeHelper_extractRle($encoded) { - var $ranges, var$3, $buffer, var$5, $index, $rangeIndex, $codePoint, $i, $b, $count, $pos, $j, var$14, var$15, $digit; - $ranges = $rt_createArray($java.otciu_UnicodeHelper$Range, 16384); - var$3 = $ranges.data; - $buffer = $rt_createByteArray(16384); - var$5 = $buffer.data; - $index = 0; - $rangeIndex = 0; - $codePoint = 0; - $i = 0; - while ($i < $encoded.$characters.data.length) { - $b = $java.otciu_UnicodeHelper_decodeByte(jl_String_charAt($encoded, $i)); - if ($b == 64) { - $i = $i + 1 | 0; - $b = $java.otciu_UnicodeHelper_decodeByte(jl_String_charAt($encoded, $i)); - $count = 0; - $pos = 1; - $j = 0; - while ($j < 3) { - $i = $i + 1 | 0; - $count = $count | $rt_imul($pos, $java.otciu_UnicodeHelper_decodeByte(jl_String_charAt($encoded, $i))); - $pos = $pos * 64 | 0; - $j = $j + 1 | 0; - } - } else if ($b < 32) - $count = 1; - else { - $b = ($b - 32 | 0) << 24 >> 24; - $i = $i + 1 | 0; - $count = $java.otciu_UnicodeHelper_decodeByte(jl_String_charAt($encoded, $i)); - } - if (!$b && $count >= 128) { - if ($index > 0) { - $pos = $rangeIndex + 1 | 0; - var$14 = new $java.otciu_UnicodeHelper$Range; - $j = $codePoint + $index | 0; - var$15 = ju_Arrays_copyOf0($buffer, $index); - var$14.$start2 = $codePoint; - var$14.$end = $j; - var$14.$data5 = var$15; - var$3[$rangeIndex] = var$14; - $rangeIndex = $pos; - } - $codePoint = $codePoint + ($index + $count | 0) | 0; - $index = 0; - } else { - $digit = $index + $count | 0; - if ($digit < var$5.length) - $pos = $rangeIndex; - else { - $pos = $rangeIndex + 1 | 0; - var$14 = new $java.otciu_UnicodeHelper$Range; - $j = $codePoint + $index | 0; - var$15 = ju_Arrays_copyOf0($buffer, $index); - var$14.$start2 = $codePoint; - var$14.$end = $j; - var$14.$data5 = var$15; - var$3[$rangeIndex] = var$14; - $codePoint = $codePoint + $digit | 0; - $index = 0; - } - while (true) { - $j = $count + (-1) | 0; - if ($count <= 0) - break; - $digit = $index + 1 | 0; - var$5[$index] = $b; - $index = $digit; - $count = $j; - } - $rangeIndex = $pos; - } - $i = $i + 1 | 0; - } - return ju_Arrays_copyOf1($ranges, $rangeIndex); -} -$java.otciu_UnicodeHelper$Range = function() { - var a = this; jl_Object.call(a); - a.$start2 = 0; - a.$end = 0; - a.$data5 = null; -}; -$java.otci_CharFlow = function() { - var a = this; jl_Object.call(a); - a.$characters0 = null; - a.$pointer = 0; -}; -function otci_Base46() { - jl_Object.call(this); -} -$java.otci_Base46__init_ = function() { - var var_0 = new otci_Base46(); - otci_Base46__init_(var_0); - return var_0; -}; -function otci_Base46__init_($this) { - return; -} -$java.otci_Base46_decodeUnsigned = function($seq) { - var $number, $pos, var$4, $hasMore, $digit; - $number = 0; - $pos = 1; - while (true) { - var$4 = $seq.$characters0.data; - $hasMore = $seq.$pointer; - $seq.$pointer = $hasMore + 1 | 0; - $digit = $java.otci_Base46_decodeDigit(var$4[$hasMore]); - $hasMore = ($digit % 2 | 0) != 1 ? 0 : 1; - $number = $number + $rt_imul($pos, $digit / 2 | 0) | 0; - $pos = $pos * 46 | 0; - if (!$hasMore) - break; - } - return $number; -}; -$java.otci_Base46_decodeUnsignedLong = function($seq) { - var $number, $pos, var$4, $digit, $hasMore; - $number = Long_ZERO; - $pos = Long_fromInt(1); - while (true) { - var$4 = $seq.$characters0.data; - $digit = $seq.$pointer; - $seq.$pointer = $digit + 1 | 0; - $digit = $java.otci_Base46_decodeDigit(var$4[$digit]); - $hasMore = ($digit % 2 | 0) != 1 ? 0 : 1; - $number = Long_add($number, Long_mul($pos, Long_fromInt($digit / 2 | 0))); - $pos = Long_mul($pos, Long_fromInt(46)); - if (!$hasMore) - break; - } - return $number; -}; -$java.otci_Base46_decodeDigit = function($c) { - if ($c < 34) - return $c - 32 | 0; - if ($c >= 92) - return ($c - 32 | 0) - 2 | 0; - return ($c - 32 | 0) - 1 | 0; -}; -function jnc_CharacterCodingException() { - ji_IOException.call(this); -} -$java.jnc_CharacterCodingException__init_ = function() { - var var_0 = new jnc_CharacterCodingException(); - jnc_CharacterCodingException__init_(var_0); - return var_0; -}; -function jnc_CharacterCodingException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -$java.jnci_BufferedDecoder = function() { - jnc_CharsetDecoder.call(this); -}; -$java.jnci_BufferedDecoder_decodeLoop = function($this, $in, $out) { - var $outSize, $i, $inArray, $inPos, $inSize, $outSize_0, var$9, $outArray, var$11, var$12, $controller; - $outSize = $in.$limit - $in.$position | 0; - $i = 512; - if ($outSize < $i) - $i = $outSize; - $inArray = $rt_createByteArray($i); - $inPos = 0; - $inSize = 0; - $outSize_0 = $out.$limit - $out.$position | 0; - $outSize = 512; - if ($outSize_0 < $outSize) - $outSize = $outSize_0; - var$9 = $inArray.data; - $outArray = $rt_createCharArray($outSize); - var$11 = $outArray.data; - a: { - while (true) { - if (($inPos + 32 | 0) > $inSize && ($in.$position >= $in.$limit ? 0 : 1)) { - $i = $inPos; - while ($i < $inSize) { - var$9[$i - $inPos | 0] = var$9[$i]; - $i = $i + 1 | 0; - } - $i = $inSize - $inPos | 0; - $outSize_0 = ($in.$limit - $in.$position | 0) + $i | 0; - $inSize = var$9.length; - if ($outSize_0 < $inSize) - $inSize = $outSize_0; - jn_ByteBuffer_get($in, $inArray, $i, $inSize - $i | 0); - $inPos = 0; - } - if (!($out.$position >= $out.$limit ? 0 : 1)) { - $i = $in.$position >= $in.$limit ? 0 : 1; - var$12 = !$i && $inPos >= $inSize ? jnc_CoderResult_UNDERFLOW : jnc_CoderResult_OVERFLOW; - break a; - } - $outSize = $out.$limit - $out.$position | 0; - $outSize_0 = var$11.length; - if ($outSize < $outSize_0) - $outSize_0 = $outSize; - $controller = new $java.jnci_BufferedDecoder$Controller; - $controller.$in2 = $in; - $controller.$out3 = $out; - var$12 = $java.jnci_UTF8Decoder_arrayDecode($this, $inArray, $inPos, $inSize, $outArray, 0, $outSize_0, $controller); - $inPos = $controller.$inPosition0; - if (var$12 === null && 0 == $controller.$outPosition0) - var$12 = jnc_CoderResult_UNDERFLOW; - jn_CharBuffer_put($out, $outArray, 0, $controller.$outPosition0); - if (var$12 !== null) - break; - } - } - jn_Buffer_position0($in, $in.$position - ($inSize - $inPos | 0) | 0); - return var$12; -}; -function jnci_UTF8Decoder() { - $java.jnci_BufferedDecoder.call(this); -} -$java.jnci_UTF8Decoder_arrayDecode = function($this, $inArray, $inPos, $inSize, $outArray, $outPos, $outSize, $controller) { - var $result, var$9, var$10, $b, $b4, var$13, $b3, $b2, $b2_0, $code, $c; - $result = null; - a: { - b: { - c: { - while ($inPos < $inSize) { - if ($outPos >= $outSize) - break a; - var$9 = $inArray.data; - var$10 = $inPos + 1 | 0; - $b = var$9[$inPos] & 255; - if (!($b & 128)) { - var$9 = $outArray.data; - $b4 = $outPos + 1 | 0; - var$9[$outPos] = $b & 65535; - } else if (($b & 224) == 192) { - if (var$10 >= $inSize) { - $inPos = var$10 + (-1) | 0; - var$13 = $controller.$in2; - if (var$13.$position >= var$13.$limit ? 0 : 1) - break a; - $result = jnc_CoderResult_UNDERFLOW; - break a; - } - $b3 = var$10 + 1 | 0; - $b2 = var$9[var$10]; - if (!(($b2 & 192) != 128 ? 0 : 1)) { - $inPos = $b3 + (-2) | 0; - $result = new jnc_CoderResult; - $result.$kind = 2; - $result.$length2 = 1; - break a; - } - var$9 = $outArray.data; - $b4 = $outPos + 1 | 0; - var$9[$outPos] = (($b & 31) << 6 | $b2 & 63) & 65535; - var$10 = $b3; - } else if (($b & 240) != 224) { - if (($b & 248) != 240) { - $inPos = var$10 + (-1) | 0; - $result = jnc_CoderResult_malformedForLength(1); - break a; - } - if ((var$10 + 3 | 0) > $inSize) { - $inPos = var$10 + (-1) | 0; - if ($java.jnci_BufferedDecoder$Controller_hasMoreInput($controller)) - break a; - $result = jnc_CoderResult_UNDERFLOW; - break a; - } - if (($outPos + 2 | 0) > $outSize) { - $inPos = var$10 + (-1) | 0; - if ($java.jnci_BufferedDecoder$Controller_hasMoreOutput($controller, 2)) - break a; - $result = jnc_CoderResult_OVERFLOW; - break a; - } - $inPos = var$10 + 1 | 0; - $b2_0 = var$9[var$10]; - $b4 = $inPos + 1 | 0; - $b3 = var$9[$inPos]; - var$10 = $b4 + 1 | 0; - $b4 = var$9[$b4]; - if (!$java.jnci_UTF8Decoder_checkMidByte($this, $b2_0)) - break c; - if (!$java.jnci_UTF8Decoder_checkMidByte($this, $b3)) - break c; - if (!$java.jnci_UTF8Decoder_checkMidByte($this, $b4)) - break c; - var$9 = $outArray.data; - $code = ($b & 7) << 18 | ($b2_0 & 63) << 12 | ($b3 & 63) << 6 | $b4 & 63; - $inPos = $outPos + 1 | 0; - var$9[$outPos] = jl_Character_highSurrogate($code); - $b4 = $inPos + 1 | 0; - var$9[$inPos] = jl_Character_lowSurrogate($code); - } else { - if ((var$10 + 2 | 0) > $inSize) { - $inPos = var$10 + (-1) | 0; - var$13 = $controller.$in2; - if (var$13.$position >= var$13.$limit ? 0 : 1) - break a; - $result = jnc_CoderResult_UNDERFLOW; - break a; - } - $inPos = var$10 + 1 | 0; - $b2 = var$9[var$10]; - var$10 = $inPos + 1 | 0; - $b3 = var$9[$inPos]; - if (!(($b2 & 192) != 128 ? 0 : 1)) - break b; - if (!(($b3 & 192) != 128 ? 0 : 1)) - break b; - $c = (($b & 15) << 12 | ($b2 & 63) << 6 | $b3 & 63) & 65535; - if (!jl_Character_isHighSurrogate($c) && !jl_Character_isLowSurrogate($c) ? 0 : 1) { - $inPos = var$10 + (-3) | 0; - $result = jnc_CoderResult_malformedForLength(3); - break a; - } - var$9 = $outArray.data; - $b4 = $outPos + 1 | 0; - var$9[$outPos] = $c; - } - $inPos = var$10; - $outPos = $b4; - } - break a; - } - $inPos = var$10 + (-3) | 0; - $result = jnc_CoderResult_malformedForLength(1); - break a; - } - $inPos = var$10 + (-3) | 0; - $result = new jnc_CoderResult; - $result.$kind = 2; - $result.$length2 = 1; - } - $controller.$inPosition0 = $inPos; - $controller.$outPosition0 = $outPos; - return $result; -}; -$java.jnci_UTF8Decoder_checkMidByte = function($this, $b) { - return ($b & 192) != 128 ? 0 : 1; -}; -function nms_RenderHelper() { - jl_Object.call(this); -} -$java.nms_RenderHelper__init_ = function() { - var var_0 = new nms_RenderHelper(); - nms_RenderHelper__init_(var_0); - return var_0; -}; -function nms_RenderHelper__init_($this) { - return; -} -function nms_RenderHelper_disableStandardItemLighting() { - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(15); -} -function nms_RenderHelper_enableStandardItemLighting() { - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); -} -function nms_RenderHelper_enableGUIStandardItemLighting() { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef((-30.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(165.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_GuiButton() { - var a = this; nms_Gui.call(a); - a.$width3 = 0; - a.$height4 = 0; - a.$xPosition3 = 0; - a.$yPosition = 0; - a.$displayString = null; - a.$id2 = 0; - a.$enabled = 0; - a.$drawButton0 = 0; - a.$field_82253_i = 0; -} -$java.nms_GuiButton_tex_gui = null; -function nms_GuiButton__init_(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_GuiButton(); - nms_GuiButton__init_0(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -} -function nms_GuiButton__init_0($this, $par1, $par2, $par3, $par4, $par5, $par6Str) { - $this.$zLevel = 0.0; - $this.$width3 = 200; - $this.$height4 = 20; - $this.$enabled = 1; - $this.$drawButton0 = 1; - $this.$id2 = $par1; - $this.$xPosition3 = $par2; - $this.$yPosition = $par3; - $this.$width3 = $par4; - $this.$height4 = $par5; - $this.$displayString = $par6Str; -} -$java.nms_GuiButton_getHoverState = function($this, $par1) { - var $var2; - $var2 = 1; - if (!$this.$enabled) - $var2 = 0; - else if ($par1) - $var2 = 2; - return $var2; -}; -$java.nms_GuiButton_drawButton = function($this, $par1Minecraft, $par2, $par3) { - var $var4, $var5, $var6, var$7; - if ($this.$drawButton0) { - $var4 = $par1Minecraft.$fontRenderer; - nle_TextureLocation_bindTexture($java.nms_GuiButton_tex_gui); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $this.$field_82253_i = $par2 >= $this.$xPosition3 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition3 + $this.$width3 | 0) && $par3 < ($this.$yPosition + $this.$height4 | 0) ? 1 : 0; - $var5 = $this.$getHoverState($this.$field_82253_i); - $var6 = $this.$xPosition3; - var$7 = $this.$yPosition; - $var5 = 46 + ($var5 * 20 | 0) | 0; - nms_Gui_drawTexturedModalRect($this, $var6, var$7, 0, $var5, $this.$width3 / 2 | 0, $this.$height4); - nms_Gui_drawTexturedModalRect($this, $this.$xPosition3 + ($this.$width3 / 2 | 0) | 0, $this.$yPosition, 200 - ($this.$width3 / 2 | 0) | 0, $var5, $this.$width3 / 2 | 0, $this.$height4); - $this.$mouseDragged($par1Minecraft, $par2, $par3); - $var6 = 14737632; - if (!$this.$enabled) - $var6 = (-6250336); - else if ($this.$field_82253_i) - $var6 = 16777120; - $par1Minecraft = $this.$displayString; - var$7 = $this.$xPosition3 + ($this.$width3 / 2 | 0) | 0; - $par2 = $this.$yPosition + (($this.$height4 - 8 | 0) / 2 | 0) | 0; - nms_FontRenderer_drawString($var4, $par1Minecraft, var$7 - (nms_FontRenderer_getStringWidth($var4, $par1Minecraft) / 2 | 0) | 0, $par2, $var6, 1); - } -}; -$java.nms_GuiButton_mouseDragged = function($this, $par1Minecraft, $par2, $par3) { - return; -}; -$java.nms_GuiButton_mouseReleased = function($this, $par1, $par2) { - return; -}; -$java.nms_GuiButton_mousePressed = function($this, $par1Minecraft, $par2, $par3) { - return $this.$enabled && $this.$drawButton0 && $par2 >= $this.$xPosition3 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition3 + $this.$width3 | 0) && $par3 < ($this.$yPosition + $this.$height4 | 0) ? 1 : 0; -}; -$java.nms_GuiButton_func_82252_a = function($this) { - return $this.$field_82253_i; -}; -$java.nms_GuiButton_func_82251_b = function($this, $par1, $par2) { - return; -}; -function nms_GuiButton__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(442); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiButton_tex_gui = var$1; -} -function ju_HashMap$AbstractMapIterator() { - var a = this; jl_Object.call(a); - a.$position1 = 0; - a.$expectedModCount = 0; - a.$futureEntry = null; - a.$currentEntry = null; - a.$prevEntry0 = null; - a.$associatedMap0 = null; -} -function ju_HashMap$AbstractMapIterator_hasNext($this) { - if ($this.$futureEntry !== null) - return 1; - while ($this.$position1 < $this.$associatedMap0.$elementData.data.length) { - if ($this.$associatedMap0.$elementData.data[$this.$position1] !== null) - return 1; - $this.$position1 = $this.$position1 + 1 | 0; - } - return 0; -} -$java.ju_HashMap$AbstractMapIterator_checkConcurrentMod = function($this) { - var var$1; - if ($this.$expectedModCount == $this.$associatedMap0.$modCount1) - return; - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); -}; -function ju_HashMap$AbstractMapIterator_makeNext($this) { - var var$1, var$2, var$3; - if ($this.$expectedModCount != $this.$associatedMap0.$modCount1) { - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - if (!ju_HashMap$AbstractMapIterator_hasNext($this)) { - var$1 = new ju_NoSuchElementException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - if ($this.$futureEntry === null) { - var$2 = $this.$associatedMap0.$elementData.data; - var$3 = $this.$position1; - $this.$position1 = var$3 + 1 | 0; - $this.$currentEntry = var$2[var$3]; - $this.$futureEntry = $this.$currentEntry.$next1; - $this.$prevEntry0 = null; - } else { - if ($this.$currentEntry !== null) - $this.$prevEntry0 = $this.$currentEntry; - $this.$currentEntry = $this.$futureEntry; - $this.$futureEntry = $this.$futureEntry.$next1; - } -} -function ju_HashMap$AbstractMapIterator_remove($this) { - var var$1, $index; - if ($this.$expectedModCount != $this.$associatedMap0.$modCount1) { - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - if ($this.$currentEntry === null) { - var$1 = new jl_IllegalStateException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - if ($this.$prevEntry0 !== null) - $this.$prevEntry0.$next1 = $this.$currentEntry.$next1; - else { - $index = $this.$currentEntry.$origKeyHash & ($this.$associatedMap0.$elementData.data.length - 1 | 0); - $this.$associatedMap0.$elementData.data[$index] = $this.$associatedMap0.$elementData.data[$index].$next1; - } - $this.$currentEntry = null; - $this.$expectedModCount = $this.$expectedModCount + 1 | 0; - var$1 = $this.$associatedMap0; - var$1.$modCount1 = var$1.$modCount1 + 1 | 0; - var$1 = $this.$associatedMap0; - var$1.$elementCount = var$1.$elementCount - 1 | 0; -} -function ju_HashMap$ValueIterator() { - ju_HashMap$AbstractMapIterator.call(this); -} -$java.ju_HashMap$ValueIterator_next = function($this) { - ju_HashMap$AbstractMapIterator_makeNext($this); - return $this.$currentEntry.$value0; -}; -function ju_HashMap$1() { - ju_AbstractSet.call(this); - this.$this$01 = null; -} -$java.ju_HashMap$1_size = function($this) { - return $this.$this$01.$elementCount; -}; -$java.ju_HashMap$1_iterator = function($this) { - var var$1, var$2; - var$1 = new $java.ju_HashMap$KeyIterator; - var$2 = $this.$this$01; - var$1.$associatedMap0 = var$2; - var$1.$expectedModCount = var$2.$modCount1; - var$1.$futureEntry = null; - return var$1; -}; -function ju_HashMap$HashMapEntrySet() { - ju_AbstractSet.call(this); - this.$associatedMap = null; -} -$java.ju_HashMap$HashMapEntrySet_size = function($this) { - return $this.$associatedMap.$elementCount; -}; -$java.ju_HashMap$HashMapEntrySet_contains = function($this, $object) { - var $oEntry, $entry, var$4; - if (!$rt_isInstance($object, ju_Map$Entry)) - return 0; - $oEntry = $object; - $object = $this.$associatedMap; - $entry = $oEntry.$getKey(); - if ($entry !== null) { - var$4 = $entry.$hashCode0(); - $entry = ju_HashMap_findNonNullKeyEntry($object, $entry, var$4 & ($object.$elementData.data.length - 1 | 0), var$4); - } else { - $entry = $object.$elementData.data[0]; - while ($entry !== null && $entry.$key !== null) { - $entry = $entry.$next1; - } - } - return $java.ju_HashMap$HashMapEntrySet_valuesEq($entry, $oEntry); -}; -$java.ju_HashMap$HashMapEntrySet_valuesEq = function($entry, $oEntry) { - var var$3; - a: { - b: { - c: { - if ($entry !== null) { - if ($entry.$value0 === null) { - if ($oEntry.$getValue() !== null) - break c; - break b; - } - $entry = $entry.$value0; - $oEntry = $oEntry.$getValue(); - if ($entry !== $oEntry && !$entry.$equals($oEntry) ? 0 : 1) - break b; - } - } - var$3 = 0; - break a; - } - var$3 = 1; - } - return var$3; -}; -$java.ju_HashMap$HashMapEntrySet_iterator = function($this) { - var var$1, var$2; - var$1 = new ju_HashMap$EntryIterator; - var$2 = $this.$associatedMap; - var$1.$associatedMap0 = var$2; - var$1.$expectedModCount = var$2.$modCount1; - var$1.$futureEntry = null; - return var$1; -}; -function ju_LinkedHashMap$LinkedHashMapEntry() { - var a = this; ju_HashMap$HashEntry.call(a); - a.$chainForward = null; - a.$chainBackward = null; -} -function nms_TileEntitySkull() { - var a = this; nms_TileEntity.call(a); - a.$skullType = 0; - a.$skullRotation = 0; - a.$extraType = null; -} -$java.nms_TileEntitySkull__init_ = function() { - var var_0 = new nms_TileEntitySkull(); - nms_TileEntitySkull__init_(var_0); - return var_0; -}; -function nms_TileEntitySkull__init_($this) { - $this.$blockMetadata = (-1); - $this.$extraType = $rt_s(44); -} -$java.nms_TileEntitySkull_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - var$2 = ($this.$skullType & 255) << 24 >> 24; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagByte; - var$4.$name0 = $rt_s(2434); - var$4.$data0 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2434), var$4); - var$2 = ($this.$skullRotation & 255) << 24 >> 24; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagByte; - var$4.$name0 = $rt_s(2435); - var$4.$data0 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2435), var$4); - var$4 = $this.$extraType; - var$3 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagString; - $par1NBTTagCompound.$name0 = $rt_s(2436); - $par1NBTTagCompound.$data4 = var$4; - if (var$4 !== null) { - ju_HashMap_putImpl(var$3, $rt_s(2436), $par1NBTTagCompound); - return; - } - var$5 = new jl_IllegalArgumentException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - var$5.$message = $rt_s(264); - $rt_throw(var$5); -}; -$java.nms_TileEntitySkull_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$zCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(2434)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2434), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$6 = jl_String_hashCode($rt_s(2434)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2434), var$6 & (var$2.$elementData.data.length - 1 | 0), var$6); - var$4 = (var$5 === null ? null : var$5.$value0).$data0; - } - $this.$skullType = var$4; - $this.$skullRotation = nms_NBTTagCompound_getByte($par1NBTTagCompound, $rt_s(2435)); - if (nms_NBTTagCompound_hasKey($par1NBTTagCompound, $rt_s(2436))) - $this.$extraType = nms_NBTTagCompound_getString($par1NBTTagCompound, $rt_s(2436)); -}; -$java.nms_TileEntitySkull_setSkullType = function($this, $par1, $par2Str) { - $this.$skullType = $par1; - $this.$extraType = $par2Str; -}; -function nms_TileEntitySkull_getSkullType($this) { - return $this.$skullType; -} -$java.nms_TileEntitySkull_func_82119_b = function($this) { - return $this.$skullRotation; -}; -$java.nms_TileEntitySkull_setSkullRotation = function($this, $par1) { - $this.$skullRotation = $par1; -}; -$java.nms_TileEntitySkull_getExtraType = function($this) { - return $this.$extraType; -}; -function nms_Vec3() { - var a = this; jl_Object.call(a); - a.$myVec3LocalPool = null; - a.$xCoord = 0.0; - a.$yCoord = 0.0; - a.$zCoord = 0.0; -} -$java.nms_Vec3_fakePool = null; -function nms_Vec3__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_Vec3(); - $java.nms_Vec3__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.nms_Vec3__init_ = function($this, $par1Vec3Pool, $par2, $par4, $par6) { - if ($par2 === -0.0) - $par2 = 0.0; - if ($par4 === -0.0) - $par4 = 0.0; - if ($par6 === -0.0) - $par6 = 0.0; - $this.$xCoord = $par2; - $this.$yCoord = $par4; - $this.$zCoord = $par6; - $this.$myVec3LocalPool = $par1Vec3Pool; -}; -$java.nms_Vec3_setComponents = function($this, $par1, $par3, $par5) { - $this.$xCoord = $par1; - $this.$yCoord = $par3; - $this.$zCoord = $par5; - return $this; -}; -$java.nms_Vec3_subtract = function($this, $par1Vec3) { - return nms_Vec3Pool_getVecFromPool($this.$myVec3LocalPool, $par1Vec3.$xCoord - $this.$xCoord, $par1Vec3.$yCoord - $this.$yCoord, $par1Vec3.$zCoord - $this.$zCoord); -}; -function nms_Vec3_normalize($this) { - var $var1; - $var1 = jl_Math_sqrt($this.$xCoord * $this.$xCoord + $this.$yCoord * $this.$yCoord + $this.$zCoord * $this.$zCoord); - return $var1 < 1.0E-4 ? nms_Vec3Pool_getVecFromPool($this.$myVec3LocalPool, 0.0, 0.0, 0.0) : nms_Vec3Pool_getVecFromPool($this.$myVec3LocalPool, $this.$xCoord / $var1, $this.$yCoord / $var1, $this.$zCoord / $var1); -} -function nms_Vec3_dotProduct($this, $par1Vec3) { - return $this.$xCoord * $par1Vec3.$xCoord + $this.$yCoord * $par1Vec3.$yCoord + $this.$zCoord * $par1Vec3.$zCoord; -} -$java.nms_Vec3_crossProduct = function($this, $par1Vec3) { - return nms_Vec3Pool_getVecFromPool($this.$myVec3LocalPool, $this.$yCoord * $par1Vec3.$zCoord - $this.$zCoord * $par1Vec3.$yCoord, $this.$zCoord * $par1Vec3.$xCoord - $this.$xCoord * $par1Vec3.$zCoord, $this.$xCoord * $par1Vec3.$yCoord - $this.$yCoord * $par1Vec3.$xCoord); -}; -function nms_Vec3_addVector($this, $par1, $par3, $par5) { - return nms_Vec3Pool_getVecFromPool($this.$myVec3LocalPool, $this.$xCoord + $par1, $this.$yCoord + $par3, $this.$zCoord + $par5); -} -function nms_Vec3_distanceTo($this, $par1Vec3) { - var $var2, $var4, $var6; - $var2 = $par1Vec3.$xCoord - $this.$xCoord; - $var4 = $par1Vec3.$yCoord - $this.$yCoord; - $var6 = $par1Vec3.$zCoord - $this.$zCoord; - return jl_Math_sqrt($var2 * $var2 + $var4 * $var4 + $var6 * $var6); -} -function nms_Vec3_squareDistanceTo($this, $par1Vec3) { - var $var2, $var4, $var6; - $var2 = $par1Vec3.$xCoord - $this.$xCoord; - $var4 = $par1Vec3.$yCoord - $this.$yCoord; - $var6 = $par1Vec3.$zCoord - $this.$zCoord; - return $var2 * $var2 + $var4 * $var4 + $var6 * $var6; -} -function nms_Vec3_squareDistanceTo0($this, $par1, $par3, $par5) { - var $var7, $var9, $var11; - $var7 = $par1 - $this.$xCoord; - $var9 = $par3 - $this.$yCoord; - $var11 = $par5 - $this.$zCoord; - return $var7 * $var7 + $var9 * $var9 + $var11 * $var11; -} -function nms_Vec3_lengthVector($this) { - return jl_Math_sqrt($this.$xCoord * $this.$xCoord + $this.$yCoord * $this.$yCoord + $this.$zCoord * $this.$zCoord); -} -function nms_Vec3_getIntermediateWithXValue($this, $par1Vec3, $par2) { - var $var4, $var6, $var8, $var10; - $var4 = $par1Vec3.$xCoord - $this.$xCoord; - $var6 = $par1Vec3.$yCoord - $this.$yCoord; - $var8 = $par1Vec3.$zCoord - $this.$zCoord; - if ($var4 * $var4 < 1.0000000116860974E-7) - return null; - $var10 = ($par2 - $this.$xCoord) / $var4; - return $var10 >= 0.0 && $var10 <= 1.0 ? nms_Vec3Pool_getVecFromPool($this.$myVec3LocalPool, $this.$xCoord + $var4 * $var10, $this.$yCoord + $var6 * $var10, $this.$zCoord + $var8 * $var10) : null; -} -function nms_Vec3_getIntermediateWithYValue($this, $par1Vec3, $par2) { - var $var4, $var6, $var8, $var10; - $var4 = $par1Vec3.$xCoord - $this.$xCoord; - $var6 = $par1Vec3.$yCoord - $this.$yCoord; - $var8 = $par1Vec3.$zCoord - $this.$zCoord; - if ($var6 * $var6 < 1.0000000116860974E-7) - return null; - $var10 = ($par2 - $this.$yCoord) / $var6; - return $var10 >= 0.0 && $var10 <= 1.0 ? nms_Vec3Pool_getVecFromPool($this.$myVec3LocalPool, $this.$xCoord + $var4 * $var10, $this.$yCoord + $var6 * $var10, $this.$zCoord + $var8 * $var10) : null; -} -function nms_Vec3_getIntermediateWithZValue($this, $par1Vec3, $par2) { - var $var4, $var6, $var8, $var10; - $var4 = $par1Vec3.$xCoord - $this.$xCoord; - $var6 = $par1Vec3.$yCoord - $this.$yCoord; - $var8 = $par1Vec3.$zCoord - $this.$zCoord; - if ($var8 * $var8 < 1.0000000116860974E-7) - return null; - $var10 = ($par2 - $this.$zCoord) / $var8; - return $var10 >= 0.0 && $var10 <= 1.0 ? nms_Vec3Pool_getVecFromPool($this.$myVec3LocalPool, $this.$xCoord + $var4 * $var10, $this.$yCoord + $var6 * $var10, $this.$zCoord + $var8 * $var10) : null; -} -$java.nms_Vec3_toString = function($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(2437)); - var$2 = $this.$xCoord; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(344)); - var$2 = $this.$yCoord; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(344)); - var$2 = $this.$zCoord; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(64)); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function nms_Vec3_rotateAroundX($this, $par1) { - var var$2, $var2, $var3, $var4, $var6, $var8, var$8, var$9; - var$2 = nms_MathHelper_SIN_TABLE.data; - $par1 = $par1 * 10430.3779296875; - $var2 = var$2[($par1 + 16384.0 | 0) & 65535]; - $var3 = nms_MathHelper_SIN_TABLE.data[($par1 | 0) & 65535]; - $var4 = $this.$xCoord; - $var6 = $this.$yCoord; - $var8 = $var2; - $var6 = $var6 * $var8; - var$8 = $this.$zCoord; - var$9 = $var3; - $var6 = $var6 + var$8 * var$9; - $var8 = $this.$zCoord * $var8 - $this.$yCoord * var$9; - $this.$xCoord = $var4; - $this.$yCoord = $var6; - $this.$zCoord = $var8; -} -function nms_Vec3_rotateAroundY($this, $par1) { - var var$2, $var2, $var3, $var4, $var8, $var6, var$8; - var$2 = nms_MathHelper_SIN_TABLE.data; - $par1 = $par1 * 10430.3779296875; - $var2 = var$2[($par1 + 16384.0 | 0) & 65535]; - $var3 = nms_MathHelper_SIN_TABLE.data[($par1 | 0) & 65535]; - $var4 = $this.$xCoord; - $var8 = $var2; - $var4 = $var4 * $var8; - $var6 = $this.$zCoord; - var$8 = $var3; - $var4 = $var4 + $var6 * var$8; - $var6 = $this.$yCoord; - $var8 = $this.$zCoord * $var8 - $this.$xCoord * var$8; - $this.$xCoord = $var4; - $this.$yCoord = $var6; - $this.$zCoord = $var8; -} -function nms_Vec3_rotateAroundZ($this, $par1) { - var var$2, $var2, $var3, $var4, $var6, $var8, var$8; - var$2 = nms_MathHelper_SIN_TABLE.data; - $par1 = $par1 * 10430.3779296875; - $var2 = var$2[($par1 + 16384.0 | 0) & 65535]; - $var3 = nms_MathHelper_SIN_TABLE.data[($par1 | 0) & 65535]; - $var4 = $this.$xCoord; - $var6 = $var2; - $var4 = $var4 * $var6; - $var8 = $this.$yCoord; - var$8 = $var3; - $var4 = $var4 + $var8 * var$8; - $var6 = $this.$yCoord * $var6 - $this.$xCoord * var$8; - $var8 = $this.$zCoord; - $this.$xCoord = $var4; - $this.$yCoord = $var6; - $this.$zCoord = $var8; -} -function nms_Vec3__clinit_() { - var var$1, var$2; - var$1 = new nms_Vec3Pool; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - var$1.$vec3Cache = var$2; - var$1.$nextFreeSpace = 0; - var$1.$maximumSizeSinceLastTruncation = 0; - var$1.$resetCount = 0; - var$1.$truncateArrayResetThreshold = (-1); - var$1.$minimumSize = (-1); - $java.nms_Vec3_fakePool = var$1; -} -function nms_GuiIngameMenu() { - var a = this; nms_GuiScreen.call(a); - a.$updateCounter2 = 0; - a.$updateCounter = 0; -} -$java.nms_GuiIngameMenu__init_ = function() { - var var_0 = new nms_GuiIngameMenu(); - nms_GuiIngameMenu__init_(var_0); - return var_0; -}; -function nms_GuiIngameMenu__init_($this) { - nms_GuiScreen__init_($this); - $this.$updateCounter2 = 0; - $this.$updateCounter = 0; -} -$java.nms_GuiIngameMenu_initGui = function($this) { - var var$1, var$2; - $this.$updateCounter2 = 0; - var$1 = $this.$buttonList; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 120 | 0) + (-16) | 0, 200, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2438)))); - if (!$this.$mc4.$integratedServerIsRunning) { - var$1 = $this.$buttonList; - if (0 >= var$1.$size0) { - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - var$1.$array1.data[0].$displayString = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2439)); - } - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(4, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 24 | 0) + (-16) | 0, 200, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2440)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(5, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 48 | 0) + (-16) | 0, 200, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(733)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(0, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 96 | 0) + (-16) | 0, 98, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(734)))); - var$1 = $this.$buttonList; - var$2 = nms_GuiButton__init_(7, ($this.$width0 / 2 | 0) + 2 | 0, (($this.$height0 / 4 | 0) + 96 | 0) + (-16) | 0, 98, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2441))); - ju_ArrayList_add(var$1, var$2); - var$2.$enabled = 0; -}; -$java.nms_GuiIngameMenu_actionPerformed = function($this, $par1GuiButton) { - 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();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - switch ($par1GuiButton.$id2) { - case 0: - var$2 = $this.$mc4; - $par1GuiButton = new nms_GuiOptions; - var$3 = $this.$mc4.$gameSettings; - nms_GuiOptions_$callClinit(); - nms_GuiScreen__init_($par1GuiButton); - $par1GuiButton.$screenTitle0 = $rt_s(741); - $par1GuiButton.$parentScreen = $this; - $par1GuiButton.$options1 = var$3; - $ptr = 1; - continue main; - case 1: - $par1GuiButton.$enabled = 0; - var$3 = $this.$mc4.$theWorld.$sendQueue0; - $par1GuiButton = new nms_Packet255KickDisconnect; - nms_Packet_$callClinit(); - $par1GuiButton.$creationTimeMillis = jl_System_currentTimeMillis(); - $par1GuiButton.$isChunkDataPacket = 0; - $par1GuiButton.$reason = $rt_s(1156); - if (!var$3.$disconnected) { - nle_WebsocketNetworkManager_addToSendQueue(var$3.$netManager, $par1GuiButton); - nle_WebsocketNetworkManager_serverShutdown(var$3.$netManager); - } - $par1GuiButton = $this.$mc4; - var$2 = null; - var$3 = $rt_s(44); - $ptr = 4; - continue main; - case 2: - case 3: - break; - case 4: - $par1GuiButton = $this.$mc4; - var$2 = null; - $ptr = 2; - continue main; - case 5: - $par1GuiButton = $this.$mc4; - var$2 = new nle_GuiScreenVoiceChannel; - nms_GuiScreen__init_(var$2); - var$2.$screenTitle1 = $rt_s(742); - var$2.$parent0 = $this; - $ptr = 3; - continue main; - default: - } - return; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, $par1GuiButton); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - $par1GuiButton = $this.$mc4; - if ($par1GuiButton.$inGameHasFocus) - return; - $par1GuiButton.$inGameHasFocus = 1; - var$2 = $par1GuiButton.$mouseHelper; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_canvas.requestPointerLock(); - var$2.$deltaX = 0; - var$2.$deltaY = 0; - var$2 = null; - $ptr = 6; - continue main; - case 3: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - case 4: - nmc_Minecraft_loadWorld0($par1GuiButton, var$2, var$3); - if ($rt_suspending()) { - break main; - } - $par1GuiButton = $this.$mc4; - var$2 = nms_GuiMainMenu__init_0(); - $ptr = 5; - case 5: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - case 6: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - $par1GuiButton.$leftClickCounter = 10000; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, var$3, $ptr); -}; -$java.nms_GuiIngameMenu_updateScreen = function($this) { - $this.$updateCounter = $this.$updateCounter + 1 | 0; -}; -$java.nms_GuiIngameMenu_drawScreen = function($this, $par1, $par2, $par3) { - var var$4, var$5, var$6; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$4 = $this.$fontRenderer0; - nms_FontRenderer_drawString(var$4, $rt_s(2442), ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$4, $rt_s(2442)) / 2 | 0) | 0, 40, 16777215, 1); - var$5 = 0; - a: { - while (var$5 < $this.$buttonList.$size0) { - var$6 = $this.$buttonList; - if (var$5 < 0) - break a; - if (var$5 >= var$6.$size0) - break a; - var$6.$array1.data[var$5].$drawButton($this.$mc4, $par1, $par2); - var$5 = var$5 + 1 | 0; - } - return; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); -}; -function nms_WorldRenderer() { - var a = this; jl_Object.call(a); - a.$worldObj2 = null; - a.$glRenderList = 0; - a.$posX3 = 0; - a.$posY3 = 0; - a.$posZ2 = 0; - a.$chunkX = 0; - a.$chunkY = 0; - a.$chunkZ = 0; - a.$posXMinus = 0; - a.$posYMinus = 0; - a.$posZMinus = 0; - a.$posXClip = 0; - a.$posYClip = 0; - a.$posZClip = 0; - a.$isInFrustum = 0; - a.$skipRenderPass = null; - a.$posXPlus = 0; - a.$posYPlus = 0; - a.$posZPlus = 0; - a.$needsUpdate = 0; - a.$rendererBoundingBox = null; - a.$chunkIndex = 0; - a.$isVisible = 0; - a.$isWaitingOnOcclusionQuery = 0; - a.$isChunkLit = 0; - a.$isInitialized = 0; - a.$tileEntityRenderers = null; - a.$tileEntities0 = null; - a.$bytesDrawn = 0; -} -$java.nms_WorldRenderer_tessellator = null; -$java.nms_WorldRenderer_chunksUpdated = 0; -$java.nms_WorldRenderer_$callClinit = function() { - $java.nms_WorldRenderer_$callClinit = $rt_eraseClinit(nms_WorldRenderer); - $java.nms_WorldRenderer__clinit_(); -}; -function nms_WorldRenderer__init_(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_WorldRenderer(); - $java.nms_WorldRenderer__init_(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -} -$java.nms_WorldRenderer__init_ = function($this, $par1World, $par2List, $par3, $par4, $par5, $par6) { - var var$7; - $java.nms_WorldRenderer_$callClinit(); - $this.$glRenderList = (-1); - $this.$isInFrustum = 0; - $this.$skipRenderPass = $rt_createBooleanArray(2); - $this.$isVisible = 1; - $this.$isInitialized = 0; - var$7 = new ju_ArrayList; - var$7.$array1 = $rt_createArray(jl_Object, 10); - $this.$tileEntityRenderers = var$7; - $this.$worldObj2 = $par1World; - $this.$tileEntities0 = $par2List; - $this.$glRenderList = $par6; - $this.$posX3 = (-999); - nms_WorldRenderer_setPosition($this, $par3, $par4, $par5); - $this.$needsUpdate = 0; -}; -function nms_WorldRenderer_setPosition($this, $par1, $par2, $par3) { - var var$4, var$5, var$6, var$7, var$8, var$9, var$10; - if (!($par1 == $this.$posX3 && $par2 == $this.$posY3 && $par3 == $this.$posZ2)) { - nms_WorldRenderer_setDontDraw($this); - $this.$posX3 = $par1; - $this.$posY3 = $par2; - $this.$posZ2 = $par3; - $this.$chunkX = $par1 >> 4; - $this.$chunkY = $par2 >> 4; - $this.$chunkZ = $par3 >> 4; - $this.$posXPlus = $par1 + 8 | 0; - $this.$posYPlus = $par2 + 8 | 0; - $this.$posZPlus = $par3 + 8 | 0; - $this.$posXClip = $par1 & 1023; - $this.$posYClip = $par2; - $this.$posZClip = $par3 & 1023; - $this.$posXMinus = $par1 - $this.$posXClip | 0; - $this.$posYMinus = $par2 - $this.$posYClip | 0; - $this.$posZMinus = $par3 - $this.$posZClip | 0; - var$4 = $par1 - 0.0; - var$5 = $par2 - 0.0; - var$6 = $par3 - 0.0; - var$7 = ($par1 + 16 | 0) + 0.0; - var$8 = ($par2 + 16 | 0) + 0.0; - var$9 = ($par3 + 16 | 0) + 0.0; - var$10 = new nms_AxisAlignedBB; - var$10.$minX = var$4; - var$10.$minY = var$5; - var$10.$minZ = var$6; - var$10.$maxX = var$7; - var$10.$maxY = var$8; - var$10.$maxZ = var$9; - $this.$rendererBoundingBox = var$10; - $this.$needsUpdate = 1; - } -} -function nms_WorldRenderer_updateRenderer($this) { - var $var1, $var2, $var3, $var4, $var5, $var6, $var7, $var21, $var9, $p, $var10, $var11, $var12, $var13, $var14, $var15, $var16, $var17, $var18, $var23, $var20, $var22; - if ($this.$needsUpdate) { - $this.$needsUpdate = 0; - $var1 = $this.$posX3; - $var2 = $this.$posY3; - $var3 = $this.$posZ2; - $var4 = $this.$posX3 + 16 | 0; - $var5 = $this.$posY3 + 16 | 0; - $var6 = $this.$posZ2 + 16 | 0; - $var7 = 0; - while ($var7 < 2) { - $this.$skipRenderPass.data[$var7] = 1; - $var7 = $var7 + 1 | 0; - } - $java.nms_Chunk_isLit = 0; - $var21 = new ju_HashSet; - $var21.$backingMap = ju_HashMap__init_1(16, 0.75); - $var9 = ju_AbstractList_iterator($this.$tileEntityRenderers); - while (ju_AbstractList$1_hasNext($var9)) { - if (!ju_HashSet_add($var21, ju_AbstractList$1_next($var9))) - continue; - } - a: { - $var9 = $this.$tileEntityRenderers; - ju_Arrays_fill($var9.$array1, 0, $var9.$size0, null); - $var9.$size0 = 0; - $var9 = nms_ChunkCache__init_($this.$worldObj2, $var1 - 1 | 0, $var2 - 1 | 0, $var3 - 1 | 0, $var4 + 1 | 0, $var5 + 1 | 0, $var6 + 1 | 0, 1); - $p = nmc_Minecraft_theMinecraft.$mcProfiler; - if (!$var9.$hasExtendedLevels) { - $java.nms_WorldRenderer_chunksUpdated = $java.nms_WorldRenderer_chunksUpdated + 1 | 0; - $var10 = nms_RenderBlocks__init_0($var9); - $this.$bytesDrawn = 0; - $var11 = 0; - while (true) { - if ($var11 >= 2) - break a; - nms_Profiler_startSection($p, $rt_s(2443)); - $var12 = 0; - $var13 = 0; - $var14 = 0; - $var15 = $var2; - while ($var15 < $var5) { - $var16 = $var3; - while ($var16 < $var6) { - $var17 = $var1; - while ($var17 < $var4) { - $var18 = $java.nms_ChunkCache_getBlockId($var9, $var17, $var15, $var16); - if ($var18 > 0) { - if (!$var14) { - $var14 = 1; - nleg_EaglerAdapterGL30_glNewList($this.$glRenderList + $var11 | 0, 56); - nlea_Tessellator_startDrawing($java.nms_WorldRenderer_tessellator, 98); - nlea_Tessellator_setTranslation($java.nms_WorldRenderer_tessellator, $this.$posXClip - $this.$posX3 | 0, $this.$posYClip - $this.$posY3 | 0, $this.$posZClip - $this.$posZ2 | 0); - } - nms_Block_$callClinit(); - $var23 = nms_Block_blocksList.data[$var18]; - if ($var23 !== null) { - if (!$var11 && nms_Block_hasTileEntity($var23)) { - $var20 = $java.nms_ChunkCache_getBlockTileEntity($var9, $var17, $var15, $var16); - nms_TileEntityRenderer_$callClinit(); - if ($java.nms_TileEntityRenderer_hasSpecialRenderer(nms_TileEntityRenderer_instance, $var20)) - ju_ArrayList_add($this.$tileEntityRenderers, $var20); - } - $var18 = $rt_compare($var23.$getRenderBlockPass(), $var11); - if ($var18) - $var12 = 1; - else if (!$var18) - $var13 = $var13 | nms_RenderBlocks_renderBlockByRenderType($var10, $var23, $var17, $var15, $var16); - } - } - $var17 = $var17 + 1 | 0; - } - $var16 = $var16 + 1 | 0; - } - $var15 = $var15 + 1 | 0; - } - if (!$var14) - $var13 = 0; - else { - nms_Profiler_endStartSection($p, $rt_s(2444)); - $this.$bytesDrawn = $this.$bytesDrawn + nlea_Tessellator_draw($java.nms_WorldRenderer_tessellator) | 0; - nleg_EaglerAdapterGL30_glEndList(); - nlea_Tessellator_setTranslation($java.nms_WorldRenderer_tessellator, 0.0, 0.0, 0.0); - } - nms_Profiler_endSection($p); - if ($var13) - $this.$skipRenderPass.data[$var11] = 0; - if (!$var12) - break; - $var11 = $var11 + 1 | 0; - } - } - } - $var22 = new ju_HashSet; - $var22.$backingMap = ju_HashMap__init_1(16, 0.75); - $var9 = ju_AbstractList_iterator($this.$tileEntityRenderers); - while (ju_AbstractList$1_hasNext($var9)) { - if (!ju_HashSet_add($var22, ju_AbstractList$1_next($var9))) - continue; - } - ju_AbstractSet_removeAll($var22, $var21); - $var9 = $this.$tileEntities0; - $p = ju_HashSet_iterator($var22); - while ($p.$hasNext()) { - if (!ju_ArrayList_add($var9, $p.$next())) - continue; - } - ju_AbstractSet_removeAll($var21, $this.$tileEntityRenderers); - $var9 = $this.$tileEntities0; - $p = new ju_AbstractList$1; - $p.$this$0 = $var9; - $p.$modCount = $p.$this$0.$modCount0; - $p.$size1 = $p.$this$0.$size2(); - $p.$removeIndex = (-1); - while ($p.$index >= $p.$size1 ? 0 : 1) { - $var9 = ju_AbstractList$1_next($p); - $var10 = $var21.$backingMap; - if ($var9 === null) - $var9 = ju_HashMap_findNullKeyEntry($var10); - else { - $var16 = $var9.$hashCode0(); - $var9 = ju_HashMap_findNonNullKeyEntry($var10, $var9, $var16 & ($var10.$elementData.data.length - 1 | 0), $var16); - } - if ($var9 === null ? 0 : 1) - ju_AbstractList$1_remove($p); - } - $this.$isChunkLit = $java.nms_Chunk_isLit; - $this.$isInitialized = 1; - } -} -function nms_WorldRenderer_distanceToEntitySquared($this, $par1Entity) { - var $var2, $var3, $var4; - $var2 = $par1Entity.$posX - $this.$posXPlus; - $var3 = $par1Entity.$posY - $this.$posYPlus; - $var4 = $par1Entity.$posZ - $this.$posZPlus; - return $var2 * $var2 + $var3 * $var3 + $var4 * $var4; -} -function nms_WorldRenderer_setDontDraw($this) { - var $var1; - $var1 = 0; - while ($var1 < 2) { - $this.$skipRenderPass.data[$var1] = 1; - $var1 = $var1 + 1 | 0; - } - $this.$isInFrustum = 0; - $this.$isInitialized = 0; -} -$java.nms_WorldRenderer_stopRendering = function($this) { - nms_WorldRenderer_setDontDraw($this); - $this.$worldObj2 = null; -}; -function nms_WorldRenderer_getGLCallListForPass($this, $par1) { - return !$this.$isInFrustum ? (-1) : $this.$skipRenderPass.data[$par1] ? (-1) : $this.$glRenderList + $par1 | 0; -} -$java.nms_WorldRenderer_updateInFrustum = function($this, $par1ICamera) { - $this.$isInFrustum = nms_Frustrum_isBoundingBoxInFrustum($par1ICamera, $this.$rendererBoundingBox); -}; -function nms_WorldRenderer_skipAllRenderPasses($this) { - return !$this.$isInitialized ? 0 : $this.$skipRenderPass.data[0] && $this.$skipRenderPass.data[1] ? 1 : 0; -} -$java.nms_WorldRenderer_markDirty = function($this) { - $this.$needsUpdate = 1; -}; -$java.nms_WorldRenderer__clinit_ = function() { - nlea_Tessellator_$callClinit(); - $java.nms_WorldRenderer_tessellator = nlea_Tessellator_instance; - $java.nms_WorldRenderer_chunksUpdated = 0; -}; -function nms_EntitySorter() { - var a = this; jl_Object.call(a); - a.$entityPosX = 0.0; - a.$entityPosY = 0.0; - a.$entityPosZ = 0.0; - a.$reverse = 0; -} -function nms_EntitySorter__init_(var_0) { - var var_1 = new nms_EntitySorter(); - $java.nms_EntitySorter__init_(var_1, var_0); - return var_1; -} -$java.nms_EntitySorter__init_ = function($this, $par1Entity) { - $this.$entityPosX = -$par1Entity.$posX; - $this.$entityPosY = -$par1Entity.$posY; - $this.$entityPosZ = -$par1Entity.$posZ; - $this.$reverse = 0; -}; -$java.nms_EntitySorter_sortByDistanceToEntity = function($this, $par1WorldRenderer, $par2WorldRenderer) { - var $var3, $var5, $var7, $var9, $var11, $var13; - $var3 = $par1WorldRenderer.$posXPlus + $this.$entityPosX; - $var5 = $par1WorldRenderer.$posYPlus + $this.$entityPosY; - $var7 = $par1WorldRenderer.$posZPlus + $this.$entityPosZ; - $var9 = $par2WorldRenderer.$posXPlus + $this.$entityPosX; - $var11 = $par2WorldRenderer.$posYPlus + $this.$entityPosY; - $var13 = $par2WorldRenderer.$posZPlus + $this.$entityPosZ; - return ($var3 * $var3 + $var5 * $var5 + $var7 * $var7 - ($var9 * $var9 + $var11 * $var11 + $var13 * $var13)) * 1024.0 | 0; -}; -$java.nms_EntitySorter_compare = function($this, $par1Obj, $par2Obj) { - return $rt_imul(!$this.$reverse ? 1 : (-1), $java.nms_EntitySorter_sortByDistanceToEntity($this, $par1Obj, $par2Obj)); -}; -function nms_GuiContainerCreative() { - var a = this; nms_InventoryEffectRenderer.call(a); - a.$currentScroll = 0.0; - a.$isScrolling = 0; - a.$wasClicking = 0; - a.$searchField = null; - a.$backupContainerSlots = null; - a.$field_74235_v = null; - a.$field_74234_w = 0; - a.$field_82324_x = null; -} -$java.nms_GuiContainerCreative_inventory = null; -$java.nms_GuiContainerCreative_selectedTabIndex = 0; -$java.nms_GuiContainerCreative_tex = null; -$java.nms_GuiContainerCreative_$callClinit = function() { - $java.nms_GuiContainerCreative_$callClinit = $rt_eraseClinit(nms_GuiContainerCreative); - $java.nms_GuiContainerCreative__clinit_(); -}; -function nms_GuiContainerCreative__init_(var_0) { - var var_1 = new nms_GuiContainerCreative(); - $java.nms_GuiContainerCreative__init_(var_1, var_0); - return var_1; -} -$java.nms_GuiContainerCreative__init_ = function($this, $par1EntityPlayer) { - var var$2; - $java.nms_GuiContainerCreative_$callClinit(); - nms_GuiContainer__init_($this, $java.nms_ContainerCreative__init_($par1EntityPlayer)); - $this.$currentScroll = 0.0; - $this.$isScrolling = 0; - $this.$field_74235_v = null; - $this.$field_74234_w = 0; - $par1EntityPlayer.$openContainer = $this.$inventorySlots0; - $this.$allowUserInput = 1; - nms_AchievementList_$callClinit(); - var$2 = nms_AchievementList_openInventory; - if (var$2 !== null && var$2.$isIndependent) - nms_EntityPlayerSP_addStat($par1EntityPlayer, var$2, 1); - $this.$ySize0 = 136; - $this.$xSize = 195; -}; -$java.nms_GuiContainerCreative_updateScreen = function($this) { - 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();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$mc4.$playerController.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) - return; - var$1 = $this.$mc4; - var$2 = new nms_GuiInventory; - var$3 = $this.$mc4.$thePlayer; - nms_GuiContainer__init_(var$2, var$3.$inventoryContainer); - var$2.$allowUserInput = 1; - nms_AchievementList_$callClinit(); - var$4 = nms_AchievementList_openInventory; - if (var$4 !== null && var$4.$isIndependent) - nms_EntityPlayerSP_addStat(var$3, var$4, 1); - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$1, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $ptr); -}; -$java.nms_GuiContainerCreative_handleMouseClick = function($this, $par1Slot, $par2, $par3, $par4) { - var $var5, $var11, $var7, $var10, $var6, $var8, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var10 = $thread.pop();$var7 = $thread.pop();$var11 = $thread.pop();$var5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Slot = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$field_74234_w = 1; - $var5 = $par4 != 1 ? 0 : 1; - if ($par2 == (-999) && !$par4) - $par4 = 4; - a: { - if ($par1Slot === null && $java.nms_GuiContainerCreative_selectedTabIndex != nms_CreativeTabs_getTabIndex(nms_CreativeTabs_tabInventory) && $par4 != 5) { - $var11 = $this.$mc4.$thePlayer.$inventory; - if (nms_InventoryPlayer_getItemStack($var11) !== null) { - if (!$par3) { - nms_EntityPlayer_dropPlayerItem($this.$mc4.$thePlayer, nms_InventoryPlayer_getItemStack($var11)); - nms_PlayerControllerMP_func_78752_a($this.$mc4.$playerController, nms_InventoryPlayer_getItemStack($var11)); - nms_InventoryPlayer_setItemStack($var11, null); - } - if ($par3 == 1) { - $var7 = nms_ItemStack_splitStack(nms_InventoryPlayer_getItemStack($var11), 1); - nms_EntityPlayer_dropPlayerItem($this.$mc4.$thePlayer, $var7); - nms_PlayerControllerMP_func_78752_a($this.$mc4.$playerController, $var7); - if (!nms_InventoryPlayer_getItemStack($var11).$stackSize) - nms_InventoryPlayer_setItemStack($var11, null); - } - } - } else { - if ($par1Slot === $this.$field_74235_v && $var5) { - $var10 = 0; - $var6 = null; - while (true) { - if ($var10 >= ju_ArrayList_size(nms_Container_getInventory($this.$mc4.$thePlayer.$inventoryContainer))) - break a; - nms_PlayerControllerMP_sendSlotPacket($this.$mc4.$playerController, $var6, $var10); - $var10 = $var10 + 1 | 0; - } - } - if ($java.nms_GuiContainerCreative_selectedTabIndex == nms_CreativeTabs_getTabIndex(nms_CreativeTabs_tabInventory)) { - if ($par1Slot === $this.$field_74235_v) { - nms_InventoryPlayer_setItemStack($this.$mc4.$thePlayer.$inventory, null); - break a; - } - $var5 = $rt_compare($par4, 4); - if (!$var5 && $par1Slot !== null && $par1Slot.$getHasStack()) { - $par2 = !$par3 ? 1 : nms_ItemStack_getMaxStackSize($par1Slot.$getStack()); - $ptr = 4; - continue main; - } - if (!$var5 && nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory) !== null) { - nms_EntityPlayer_dropPlayerItem($this.$mc4.$thePlayer, nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory)); - nms_PlayerControllerMP_func_78752_a($this.$mc4.$playerController, nms_InventoryPlayer_getItemStack($this.$mc4.$thePlayer.$inventory)); - nms_InventoryPlayer_setItemStack($this.$mc4.$thePlayer.$inventory, null); - break a; - } - $var6 = $this.$mc4.$thePlayer.$inventoryContainer; - if ($par1Slot !== null) - $par2 = $java.nms_SlotCreativeInventory_func_75240_a($par1Slot).$slotNumber; - $par1Slot = $this.$mc4.$thePlayer; - $ptr = 2; - continue main; - } - if ($par4 != 5 && $par1Slot.$inventory0 === $java.nms_GuiContainerCreative_inventory) { - $var11 = $this.$mc4.$thePlayer.$inventory; - $var7 = nms_InventoryPlayer_getItemStack($var11); - $var8 = $par1Slot.$getStack(); - if ($par4 == 2) { - if ($var8 !== null && $par3 >= 0 && $par3 < 9) { - $var9 = nms_ItemStack_copy($var8); - $var9.$stackSize = nms_ItemStack_getMaxStackSize($var9); - $par1Slot = $this.$mc4.$thePlayer.$inventory; - $ptr = 3; - continue main; - } - return; - } - if ($par4 == 3) { - if (nms_InventoryPlayer_getItemStack($var11) === null && $par1Slot.$getHasStack()) { - $var9 = nms_ItemStack_copy($par1Slot.$getStack()); - $var9.$stackSize = nms_ItemStack_getMaxStackSize($var9); - nms_InventoryPlayer_setItemStack($var11, $var9); - } - return; - } - if ($par4 == 4) { - if ($var8 !== null) { - $var9 = nms_ItemStack_copy($var8); - $var9.$stackSize = $par3 ? nms_ItemStack_getMaxStackSize($var9) : 1; - nms_EntityPlayer_dropPlayerItem($this.$mc4.$thePlayer, $var9); - nms_PlayerControllerMP_func_78752_a($this.$mc4.$playerController, $var9); - } - return; - } - if (!($var7 !== null && $var8 !== null && nms_ItemStack_isItemEqual($var7, $var8))) { - if ($var8 !== null && $var7 === null) { - nms_InventoryPlayer_setItemStack($var11, nms_ItemStack_copyItemStack($var8)); - $par1Slot = nms_InventoryPlayer_getItemStack($var11); - if ($var5) - $par1Slot.$stackSize = nms_ItemStack_getMaxStackSize($par1Slot); - } else - nms_InventoryPlayer_setItemStack($var11, null); - } else if ($par3) { - if ($var7.$stackSize <= 1) - nms_InventoryPlayer_setItemStack($var11, null); - else - $var7.$stackSize = $var7.$stackSize - 1 | 0; - } else if ($var5) - $var7.$stackSize = nms_ItemStack_getMaxStackSize($var7); - else if ($var7.$stackSize < nms_ItemStack_getMaxStackSize($var7)) - $var7.$stackSize = $var7.$stackSize + 1 | 0; - } else { - $var6 = $this.$inventorySlots0; - if ($par1Slot !== null) - $par2 = $par1Slot.$slotNumber; - $var11 = $this.$mc4.$thePlayer; - $ptr = 1; - continue main; - } - } - } - return; - case 1: - b: { - nms_Container_slotClick($var6, $par2, $par3, $par4, $var11); - if ($rt_suspending()) { - break main; - } - if (nms_Container_func_94532_c($par3) == 2) { - $var10 = 0; - while (true) { - if ($var10 >= 9) - break b; - nms_PlayerControllerMP_sendSlotPacket($this.$mc4.$playerController, nms_Container_getSlot($this.$inventorySlots0, 45 + $var10 | 0).$getStack(), 36 + $var10 | 0); - $var10 = $var10 + 1 | 0; - } - } else if ($par1Slot !== null) { - $var6 = nms_Container_getSlot($this.$inventorySlots0, $par1Slot.$slotNumber).$getStack(); - nms_PlayerControllerMP_sendSlotPacket($this.$mc4.$playerController, $var6, (($par1Slot.$slotNumber - ju_ArrayList_size($this.$inventorySlots0.$inventorySlots) | 0) + 9 | 0) + 36 | 0); - } - } - return; - case 2: - nms_Container_slotClick($var6, $par2, $par3, $par4, $par1Slot); - if ($rt_suspending()) { - break main; - } - nms_Container_detectAndSendChanges($this.$mc4.$thePlayer.$inventoryContainer); - return; - case 3: - nms_InventoryPlayer_setInventorySlotContents($par1Slot, $par3, $var9); - if ($rt_suspending()) { - break main; - } - nms_Container_detectAndSendChanges($this.$mc4.$thePlayer.$inventoryContainer); - return; - case 4: - $tmp = $par1Slot.$decrStackSize0($par2); - if ($rt_suspending()) { - break main; - } - $var6 = $tmp; - nms_EntityPlayer_dropPlayerItem($this.$mc4.$thePlayer, $var6); - nms_PlayerControllerMP_func_78752_a($this.$mc4.$playerController, $var6); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Slot, $par2, $par3, $par4, $var5, $var11, $var7, $var10, $var6, $var8, $var9, $ptr); -}; -$java.nms_GuiContainerCreative_initGui = function($this) { - var var$1, var$2, var$3, var$4, $var1, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var1 = $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.$mc4.$playerController.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) { - $ptr = 1; - continue main; - } - var$1 = $this.$mc4; - var$2 = new nms_GuiInventory; - var$3 = $this.$mc4.$thePlayer; - nms_GuiContainer__init_(var$2, var$3.$inventoryContainer); - var$2.$allowUserInput = 1; - nms_AchievementList_$callClinit(); - var$4 = nms_AchievementList_openInventory; - if (var$4 !== null && var$4.$isIndependent) - nms_EntityPlayerSP_addStat(var$3, var$4, 1); - $ptr = 2; - continue main; - case 1: - nms_InventoryEffectRenderer_initGui($this); - if ($rt_suspending()) { - break main; - } - var$2 = $this.$buttonList; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - $this.$searchField = nms_GuiTextField__init_($this.$fontRenderer0, $this.$guiLeft + 82 | 0, $this.$guiTop + 6 | 0, 89, $this.$fontRenderer0.$FONT_HEIGHT); - nms_GuiTextField_setMaxStringLength($this.$searchField, 15); - $this.$searchField.$enableBackgroundDrawing = 0; - $this.$searchField.$visible = 0; - $this.$searchField.$enabledColor = 16777215; - $var1 = $java.nms_GuiContainerCreative_selectedTabIndex; - $java.nms_GuiContainerCreative_selectedTabIndex = (-1); - $java.nms_GuiContainerCreative_setCurrentCreativeTab($this, nms_CreativeTabs_creativeTabArray.data[$var1]); - var$2 = new $java.nms_CreativeCrafting; - var$2.$mc14 = $this.$mc4; - $this.$field_82324_x = var$2; - var$2 = $this.$mc4.$thePlayer.$inventoryContainer; - var$1 = $this.$field_82324_x; - if (!ju_AbstractCollection_contains(var$2.$crafters, var$1)) { - ju_ArrayList_add(var$2.$crafters, var$1); - nms_Container_getInventory(var$2); - nms_Container_detectAndSendChanges(var$2); - return; - } - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(1712); - $rt_throw(var$2); - case 2: - nmc_Minecraft_displayGuiScreen(var$1, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $var1, $ptr); -}; -$java.nms_GuiContainerCreative_onGuiClosed = function($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: - if ($this.$mc4.$thePlayer === null) { - if ($this.$mc4.$thePlayer !== null && $this.$mc4.$thePlayer.$inventory !== null) { - var$1 = $this.$mc4.$thePlayer.$inventoryContainer; - var$2 = $this.$field_82324_x; - var$1 = var$1.$crafters; - var$3 = ju_AbstractList_indexOf(var$1, var$2); - if (var$3 >= 0) - ju_ArrayList_remove(var$1, var$3); - } - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; - return; - } - var$1 = $this.$inventorySlots0; - var$2 = $this.$mc4.$thePlayer; - $ptr = 1; - case 1: - var$1.$onCraftGuiClosed(var$2); - if ($rt_suspending()) { - break main; - } - if ($this.$mc4.$thePlayer !== null && $this.$mc4.$thePlayer.$inventory !== null) { - var$1 = $this.$mc4.$thePlayer.$inventoryContainer; - var$2 = $this.$field_82324_x; - var$1 = var$1.$crafters; - var$3 = ju_AbstractList_indexOf(var$1, var$2); - if (var$3 >= 0) - ju_ArrayList_remove(var$1, var$3); - } - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $ptr); -}; -$java.nms_GuiContainerCreative_keyTyped = function($this, $par1, $par2) { - var 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();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($java.nms_GuiContainerCreative_selectedTabIndex == nms_CreativeTabs_tabAllSearch.$tabIndex) { - if ($this.$field_74234_w) { - $this.$field_74234_w = 0; - nms_GuiTextField_setText($this.$searchField, $rt_s(44)); - } - $ptr = 1; - continue main; - } - var$3 = $this.$mc4.$gameSettings.$keyBindChat; - if (var$3.$keyCode >= 0) { - var$4 = var$3.$keyCode; - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = nlea_EaglerAdapterImpl2_keyStates.data[var$4]; - } else { - var$4 = var$3.$keyCode + 100 | 0; - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = nlea_EaglerAdapterImpl2_buttonStates.data[var$4]; - } - if (var$4) { - $java.nms_GuiContainerCreative_setCurrentCreativeTab($this, nms_CreativeTabs_tabAllSearch); - return; - } - $ptr = 3; - continue main; - case 1: - $tmp = nms_GuiContainer_checkHotbarKeys($this, $par2); - if ($rt_suspending()) { - break main; - } - var$4 = $tmp; - if (!var$4) { - if (!nms_GuiTextField_textboxKeyTyped($this.$searchField, $par1, $par2)) { - $ptr = 2; - continue main; - } - $java.nms_GuiContainerCreative_updateCreativeSearch($this); - } - return; - case 2: - nms_GuiContainer_keyTyped($this, $par1, $par2); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_GuiContainer_keyTyped($this, $par1, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, $ptr); -}; -$java.nms_GuiContainerCreative_updateCreativeSearch = function($this) { - var $var1, $var11, $var2, $var3, $var4, $var10, $var5, $var13, $var12, $var7, var$11, $var9, $var6; - $var1 = $this.$inventorySlots0; - $var11 = $var1.$itemList; - ju_Arrays_fill($var11.$array1, 0, $var11.$size0, null); - $var11.$size0 = 0; - nms_Item_$callClinit(); - $var2 = nms_Item_itemsList.data; - $var3 = $var2.length; - $var4 = 0; - $var10 = null; - while ($var4 < $var3) { - $var5 = $var2[$var4]; - if ($var5 !== null && $var5.$getCreativeTab() !== null) - $var5.$getSubItems($var5.$itemID, $var10, $var1.$itemList); - $var4 = $var4 + 1 | 0; - } - nms_Enchantment_$callClinit(); - $var2 = nms_Enchantment_enchantmentsList.data; - $var13 = $var2.length; - $var3 = 0; - while ($var3 < $var13) { - $var11 = $var2[$var3]; - if ($var11 !== null && $var11.$type1 !== null) { - $var10 = nms_Item_enchantedBook; - $var5 = $var1.$itemList; - $var4 = 1; - while ($var4 <= $var11.$getMaxLevel()) { - $var12 = new nms_EnchantmentData; - $var12.$enchantmentobj = $var11; - $var12.$enchantmentLevel = $var4; - $var7 = new nms_ItemStack; - var$11 = $var10.$itemID; - $var7.$stackSize = 0; - $var7.$itemFrame = null; - $var7.$itemID0 = var$11; - $var7.$stackSize = 1; - $var7.$itemDamage = 0; - if ($var7.$itemDamage < 0) - $var7.$itemDamage = 0; - nms_ItemEnchantedBook_func_92115_a($var10, $var7, $var12); - ju_ArrayList_add($var5, $var7); - $var4 = $var4 + 1 | 0; - } - } - $var3 = $var3 + 1 | 0; - } - $var11 = $var1.$itemList; - $var9 = new ju_AbstractList$1; - $var9.$this$0 = $var11; - $var9.$modCount = $var9.$this$0.$modCount0; - $var9.$size1 = $var9.$this$0.$size2(); - $var9.$removeIndex = (-1); - $var10 = jl_String_toLowerCase($this.$searchField.$text); - while ($var9.$index >= $var9.$size1 ? 0 : 1) { - $var12 = ju_AbstractList$1_next($var9); - $var13 = 0; - $var11 = nms_ItemStack_getTooltip($var12, $this.$mc4.$thePlayer, $this.$mc4.$gameSettings.$advancedItemTooltips); - $var6 = new ju_AbstractList$1; - $var6.$this$0 = $var11; - $var6.$modCount = $var6.$this$0.$modCount0; - $var6.$size1 = $var6.$this$0.$size2(); - $var6.$removeIndex = (-1); - a: { - while ($var6.$index >= $var6.$size1 ? 0 : 1) { - if (jl_String_contains(jl_String_toLowerCase(ju_AbstractList$1_next($var6)), $var10)) { - $var13 = 1; - break a; - } - } - } - if (!$var13) - ju_AbstractList$1_remove($var9); - } - $this.$currentScroll = 0.0; - $java.nms_ContainerCreative_scrollTo($var1, 0.0); -}; -$java.nms_GuiContainerCreative_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - var $var3, var$4, var$5, var$6; - $var3 = nms_CreativeTabs_creativeTabArray.data[$java.nms_GuiContainerCreative_selectedTabIndex]; - if ($var3.$drawTitle) { - var$4 = $this.$fontRenderer0; - var$5 = nms_StringTranslate_instance; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(1806)); - $var3 = $var3.$tabLabel; - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $var3); - nms_FontRenderer_drawString(var$4, nms_StringTranslate_translateKey(var$5, jl_String__init_0(var$6.$buffer, 0, var$6.$length)), 8, 6, 4210752, 0); - } -}; -$java.nms_GuiContainerCreative_mouseClicked = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $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: { - if (!$par3) { - $var4 = $par1 - $this.$guiLeft | 0; - $var5 = $par2 - $this.$guiTop | 0; - $var6 = nms_CreativeTabs_creativeTabArray.data; - $var7 = $var6.length; - $var8 = 0; - while (true) { - if ($var8 >= $var7) - break a; - if ($java.nms_GuiContainerCreative_func_74232_a($this, $var6[$var8], $var4, $var5)) - break; - $var8 = $var8 + 1 | 0; - } - return; - } - } - $ptr = 1; - case 1: - nms_GuiContainer_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var6, $var7, $var8, $ptr); -}; -$java.nms_GuiContainerCreative_mouseMovedOrUp = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var8, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $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: { - if (!$par3) { - $var4 = $par1 - $this.$guiLeft | 0; - $var5 = $par2 - $this.$guiTop | 0; - $var6 = nms_CreativeTabs_creativeTabArray.data; - $var7 = $var6.length; - $var8 = 0; - while (true) { - if ($var8 >= $var7) - break a; - $var9 = $var6[$var8]; - if ($java.nms_GuiContainerCreative_func_74232_a($this, $var9, $var4, $var5)) - break; - $var8 = $var8 + 1 | 0; - } - $java.nms_GuiContainerCreative_setCurrentCreativeTab($this, $var9); - return; - } - } - $ptr = 1; - case 1: - nms_GuiContainer_mouseMovedOrUp($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var6, $var7, $var8, $var9, $ptr); -}; -$java.nms_GuiContainerCreative_needsScrollBars = function($this) { - return $java.nms_GuiContainerCreative_selectedTabIndex != nms_CreativeTabs_tabInventory.$tabIndex && nms_CreativeTabs_creativeTabArray.data[$java.nms_GuiContainerCreative_selectedTabIndex].$hasScrollbar && ($this.$inventorySlots0.$itemList.$size0 <= 45 ? 0 : 1) ? 1 : 0; -}; -$java.nms_GuiContainerCreative_setCurrentCreativeTab = function($this, $par1CreativeTabs) { - var $var2, $var3, $var4, var$5, $var6, $var5, var$8, var$9, $var7, $var8, $var9; - $var2 = $java.nms_GuiContainerCreative_selectedTabIndex; - $java.nms_GuiContainerCreative_selectedTabIndex = $par1CreativeTabs.$tabIndex; - $var3 = $this.$inventorySlots0; - $var4 = $this.$field_94077_p.$backingMap; - if ($var4.$elementCount > 0) { - $var4.$elementCount = 0; - var$5 = $var4.$elementData; - ju_Arrays_fill(var$5, 0, var$5.data.length, null); - $var4.$modCount1 = $var4.$modCount1 + 1 | 0; - } - a: { - $var4 = $var3.$itemList; - ju_Arrays_fill($var4.$array1, 0, $var4.$size0, null); - $var4.$size0 = 0; - $par1CreativeTabs.$displayAllReleventItems($var3.$itemList); - if ($par1CreativeTabs === nms_CreativeTabs_tabInventory) { - $var4 = $this.$mc4.$thePlayer.$inventoryContainer; - if ($this.$backupContainerSlots === null) - $this.$backupContainerSlots = $var3.$inventorySlots; - $var6 = new ju_ArrayList; - $var6.$array1 = $rt_createArray(jl_Object, 10); - $var3.$inventorySlots = $var6; - $var5 = 0; - while (true) { - if ($var5 >= $var4.$inventorySlots.$size0) { - $var6 = new $java.nms_Slot; - $var6.$inventory0 = $java.nms_GuiContainerCreative_inventory; - $var6.$slotIndex = 0; - $var6.$xDisplayPosition = 173; - $var6.$yDisplayPosition = 112; - $this.$field_74235_v = $var6; - ju_ArrayList_add($var3.$inventorySlots, $this.$field_74235_v); - break a; - } - $var6 = new $java.nms_SlotCreativeInventory; - var$8 = $var4.$inventorySlots; - if ($var5 < 0) - break; - if ($var5 >= var$8.$size0) - break; - var$9 = var$8.$array1.data[$var5]; - $var6.$inventory0 = var$9.$inventory0; - $var6.$slotIndex = $var5; - $var6.$xDisplayPosition = 0; - $var6.$yDisplayPosition = 0; - $var6.$theCreativeInventory = $this; - $var6.$theSlot0 = var$9; - ju_ArrayList_add($var3.$inventorySlots, $var6); - $var2 = $rt_compare($var5, 5); - if ($var2 >= 0 && $var5 < 9) { - $var7 = $var5 - 5 | 0; - $var8 = $var7 / 2 | 0; - $var9 = $var7 % 2 | 0; - $var6.$xDisplayPosition = 9 + ($var8 * 54 | 0) | 0; - $var6.$yDisplayPosition = 6 + ($var9 * 27 | 0) | 0; - } else if ($var5 >= 0 && $var2 < 0) { - $var6.$yDisplayPosition = (-2000); - $var6.$xDisplayPosition = (-2000); - } else if ($var5 < $var4.$inventorySlots.$size0) { - $var7 = $var5 - 9 | 0; - $var8 = $var7 % 9 | 0; - $var9 = $var7 / 9 | 0; - $var6.$xDisplayPosition = 9 + ($var8 * 18 | 0) | 0; - if ($var5 >= 36) - $var6.$yDisplayPosition = 112; - else - $var6.$yDisplayPosition = 54 + ($var9 * 18 | 0) | 0; - } - $var5 = $var5 + 1 | 0; - } - $par1CreativeTabs = new jl_IndexOutOfBoundsException; - $par1CreativeTabs.$suppressionEnabled = 1; - $par1CreativeTabs.$writableStackTrace = 1; - $rt_throw($par1CreativeTabs); - } else if ($var2 == nms_CreativeTabs_tabInventory.$tabIndex) { - $var3.$inventorySlots = $this.$backupContainerSlots; - $this.$backupContainerSlots = null; - } - } - if ($this.$searchField !== null) { - if ($par1CreativeTabs !== nms_CreativeTabs_tabAllSearch) { - $this.$searchField.$visible = 0; - $this.$searchField.$canLoseFocus = 1; - $this.$searchField.$isFocused = 0; - } else { - $this.$searchField.$visible = 1; - $this.$searchField.$canLoseFocus = 0; - $par1CreativeTabs = $this.$searchField; - if (!$par1CreativeTabs.$isFocused) - $par1CreativeTabs.$cursorCounter = 0; - $par1CreativeTabs.$isFocused = 1; - nms_GuiTextField_setText($this.$searchField, $rt_s(44)); - $java.nms_GuiContainerCreative_updateCreativeSearch($this); - } - } - $this.$currentScroll = 0.0; - $java.nms_ContainerCreative_scrollTo($var3, 0.0); -}; -$java.nms_GuiContainerCreative_handleMouseInput = function($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: - $ptr = 1; - case 1: - nms_GuiScreen_handleMouseInput($this); - if ($rt_suspending()) { - break main; - } - $var1 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel(); - if ($var1 && $java.nms_GuiContainerCreative_needsScrollBars($this)) { - $var2 = (($this.$inventorySlots0.$itemList.$size0 / 9 | 0) - 5 | 0) + 1 | 0; - if ($var1 > 0) - $var1 = 1; - if ($var1 < 0) - $var1 = (-1); - $this.$currentScroll = $this.$currentScroll - $var1 / $var2; - if ($this.$currentScroll < 0.0) - $this.$currentScroll = 0.0; - if ($this.$currentScroll > 1.0) - $this.$currentScroll = 1.0; - $java.nms_ContainerCreative_scrollTo($this.$inventorySlots0, $this.$currentScroll); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $ptr); -}; -$java.nms_GuiContainerCreative_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var12, $var13, $var14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nlea_EaglerAdapterImpl2_$callClinit(); - $var4 = nlea_EaglerAdapterImpl2_buttonStates.data[0]; - $var5 = $this.$guiLeft; - $var6 = $this.$guiTop; - $var7 = $var5 + 175 | 0; - $var8 = $var6 + 18 | 0; - $var9 = $var7 + 14 | 0; - $var10 = $var8 + 112 | 0; - if (!$this.$wasClicking && $var4 && $par1 >= $var7 && $par2 >= $var8 && $par1 < $var9 && $par2 < $var10) - $this.$isScrolling = $java.nms_GuiContainerCreative_needsScrollBars($this); - if (!$var4) - $this.$isScrolling = 0; - $this.$wasClicking = $var4; - if ($this.$isScrolling) { - $this.$currentScroll = (($par2 - $var8 | 0) - 7.5) / (($var10 - $var8 | 0) - 15.0); - if ($this.$currentScroll < 0.0) - $this.$currentScroll = 0.0; - if ($this.$currentScroll > 1.0) - $this.$currentScroll = 1.0; - $java.nms_ContainerCreative_scrollTo($this.$inventorySlots0, $this.$currentScroll); - } - $ptr = 1; - case 1: - nms_GuiContainer_drawScreen($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - if ($this.$field_74222_o) - nms_InventoryEffectRenderer_displayDebuffEffects($this); - $var11 = nms_CreativeTabs_creativeTabArray.data; - $var12 = $var11.length; - $var13 = 0; - a: { - while (true) { - if ($var13 >= $var12) - break a; - if ($java.nms_GuiContainerCreative_renderCreativeInventoryHoveringText($this, $var11[$var13], $par1, $par2)) - break; - $var13 = $var13 + 1 | 0; - } - } - if ($this.$field_74235_v !== null && $java.nms_GuiContainerCreative_selectedTabIndex == nms_CreativeTabs_tabInventory.$tabIndex && nms_GuiContainer_isPointInRegion($this, $this.$field_74235_v.$xDisplayPosition, $this.$field_74235_v.$yDisplayPosition, 16, 16, $par1, $par2)) { - $var14 = nms_StringTranslate_translateKey(nms_StringTranslate_instance, $rt_s(2445)); - $var11 = $rt_createArray(jl_String, 1); - $var11.data[0] = $var14; - $var14 = new ju_Arrays$ArrayAsList; - $var14.$array3 = $var11; - nms_GuiContainer_func_102021_a($this, $var14, $par1, $par2); - } - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(13); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var12, $var13, $var14, $ptr); -}; -$java.nms_GuiContainerCreative_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var8, var$9, var$10, $var9, 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();$var9 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef((-30.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(165.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var4 = nms_CreativeTabs_creativeTabArray.data[$java.nms_GuiContainerCreative_selectedTabIndex]; - $var5 = nms_CreativeTabs_creativeTabArray.data; - $var6 = $var5.length; - $var7 = 0; - while (true) { - if ($var7 >= $var6) { - $var8 = $this.$mc4.$renderEngine; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$9, var$9.$length, $rt_s(2446)); - var$10 = $var4.$backgroundImageName; - jl_AbstractStringBuilder_insert(var$9, var$9.$length, var$10); - $var9 = nms_RenderEngine_getTexture($var8, jl_String__init_0(var$9.$buffer, 0, var$9.$length)); - if ($var9 != $var8.$boundTexture) { - var$9 = nleg_EaglerAdapterGL30_texObjects; - var$9 = $var9 < var$9.$size3 && $var9 >= 0 ? var$9.$values.data[$var9] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$10 = nlea_EaglerAdapterImpl2_webgl; - var$9 = var$9 !== null ? var$9.$obj : null; - var$10.bindTexture(3553, var$9); - $var8.$boundTexture = $var9; - } - nms_Gui_drawTexturedModalRect($this, $this.$guiLeft, $this.$guiTop, 0, 0, $this.$xSize, $this.$ySize0); - nms_GuiTextField_drawTextBox($this.$searchField); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var9 = $this.$guiLeft + 175 | 0; - var$12 = $this.$guiTop + 18 | 0; - $var6 = var$12 + 112 | 0; - nle_TextureLocation_bindTexture($java.nms_GuiContainerCreative_tex); - if ($var4.$hasScrollbar) - nms_Gui_drawTexturedModalRect($this, $var9, var$12 + ((($var6 - var$12 | 0) - 17 | 0) * $this.$currentScroll | 0) | 0, 232 + (!$java.nms_GuiContainerCreative_needsScrollBars($this) ? 12 : 0) | 0, 0, 12, 15); - $ptr = 2; - continue main; - } - $var8 = $var5[$var7]; - nle_TextureLocation_bindTexture($java.nms_GuiContainerCreative_tex); - if ($var8.$tabIndex != $java.nms_GuiContainerCreative_selectedTabIndex) - break; - $var7 = $var7 + 1 | 0; - } - $ptr = 1; - case 1: - $java.nms_GuiContainerCreative_renderCreativeTab($this, $var8); - if ($rt_suspending()) { - break main; - } - while (true) { - $var7 = $var7 + 1 | 0; - if ($var7 >= $var6) { - $var8 = $this.$mc4.$renderEngine; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$9, var$9.$length, $rt_s(2446)); - var$10 = $var4.$backgroundImageName; - jl_AbstractStringBuilder_insert(var$9, var$9.$length, var$10); - $var9 = nms_RenderEngine_getTexture($var8, jl_String__init_0(var$9.$buffer, 0, var$9.$length)); - if ($var9 != $var8.$boundTexture) { - var$9 = nleg_EaglerAdapterGL30_texObjects; - var$9 = $var9 < var$9.$size3 && $var9 >= 0 ? var$9.$values.data[$var9] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$10 = nlea_EaglerAdapterImpl2_webgl; - var$9 = var$9 !== null ? var$9.$obj : null; - var$10.bindTexture(3553, var$9); - $var8.$boundTexture = $var9; - } - nms_Gui_drawTexturedModalRect($this, $this.$guiLeft, $this.$guiTop, 0, 0, $this.$xSize, $this.$ySize0); - nms_GuiTextField_drawTextBox($this.$searchField); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var9 = $this.$guiLeft + 175 | 0; - var$12 = $this.$guiTop + 18 | 0; - $var6 = var$12 + 112 | 0; - nle_TextureLocation_bindTexture($java.nms_GuiContainerCreative_tex); - if ($var4.$hasScrollbar) - nms_Gui_drawTexturedModalRect($this, $var9, var$12 + ((($var6 - var$12 | 0) - 17 | 0) * $this.$currentScroll | 0) | 0, 232 + (!$java.nms_GuiContainerCreative_needsScrollBars($this) ? 12 : 0) | 0, 0, 12, 15); - $ptr = 2; - continue main; - } - $var8 = $var5[$var7]; - nle_TextureLocation_bindTexture($java.nms_GuiContainerCreative_tex); - if ($var8.$tabIndex == $java.nms_GuiContainerCreative_selectedTabIndex) - continue; - else - break; - } - continue main; - case 2: - $java.nms_GuiContainerCreative_renderCreativeTab($this, $var4); - if ($rt_suspending()) { - break main; - } - if ($var4 !== nms_CreativeTabs_tabInventory) - return; - $var8 = $this.$mc4; - $var9 = $this.$guiLeft + 43 | 0; - var$12 = $this.$guiTop + 45 | 0; - $var6 = 20; - $par1 = ($this.$guiLeft + 43 | 0) - $par2 | 0; - var$13 = (($this.$guiTop + 45 | 0) - 30 | 0) - $par3 | 0; - $ptr = 3; - case 3: - nms_GuiInventory_drawPlayerOnGui($var8, $var9, var$12, $var6, $par1, var$13); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var6, $var7, $var8, var$9, var$10, $var9, var$12, var$13, $ptr); -}; -$java.nms_GuiContainerCreative_func_74232_a = function($this, $par1CreativeTabs, $par2, $par3) { - var $var4, $var5, $var7; - $var4 = $par1CreativeTabs.$tabIndex % 6 | 0; - $var5 = 28 * $var4 | 0; - if ($var4 == 5) - $var5 = ($this.$xSize - 28 | 0) + 2 | 0; - else if ($var4 > 0) - $var5 = $var5 + $var4 | 0; - $var7 = !($par1CreativeTabs.$tabIndex >= 6 ? 0 : 1) ? 0 + $this.$ySize0 | 0 : (-32); - return $par2 >= $var5 && $par2 <= ($var5 + 28 | 0) && $par3 >= $var7 && $par3 <= ($var7 + 32 | 0) ? 1 : 0; -}; -$java.nms_GuiContainerCreative_renderCreativeInventoryHoveringText = function($this, $par1CreativeTabs, $par2, $par3) { - var $var4, $var5, var$6, var$7, var$8; - $var4 = $par1CreativeTabs.$tabIndex % 6 | 0; - $var5 = 28 * $var4 | 0; - if ($var4 == 5) - $var5 = ($this.$xSize - 28 | 0) + 2 | 0; - else if ($var4 > 0) - $var5 = $var5 + $var4 | 0; - if (!nms_GuiContainer_isPointInRegion($this, $var5 + 3 | 0, (!($par1CreativeTabs.$tabIndex >= 6 ? 0 : 1) ? 0 + $this.$ySize0 | 0 : (-32)) + 3 | 0, 23, 27, $par2, $par3)) - return 0; - var$6 = nms_StringTranslate_instance; - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(1806)); - $par1CreativeTabs = $par1CreativeTabs.$tabLabel; - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $par1CreativeTabs); - $par1CreativeTabs = nms_StringTranslate_translateKey(var$6, jl_String__init_0(var$7.$buffer, 0, var$7.$length)); - var$8 = $rt_createArray(jl_String, 1); - var$8.data[0] = $par1CreativeTabs; - $par1CreativeTabs = new ju_Arrays$ArrayAsList; - $par1CreativeTabs.$array3 = var$8; - nms_GuiContainer_func_102021_a($this, $par1CreativeTabs, $par2, $par3); - return 1; -}; -$java.nms_GuiContainerCreative_renderCreativeTab = function($this, $par1CreativeTabs) { - var $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var10, 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();$var10 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1CreativeTabs = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $par1CreativeTabs.$tabIndex != $java.nms_GuiContainerCreative_selectedTabIndex ? 0 : 1; - $var3 = $par1CreativeTabs.$tabIndex >= 6 ? 0 : 1; - $var4 = $par1CreativeTabs.$tabIndex % 6 | 0; - $var5 = $var4 * 28 | 0; - $var6 = 0; - $var7 = $this.$guiLeft + $var5 | 0; - $var8 = $this.$guiTop; - if ($var2) - $var6 = 32; - if ($var4 == 5) - $var7 = ($this.$guiLeft + $this.$xSize | 0) - 28 | 0; - else if ($var4 > 0) - $var7 = $var7 + $var4 | 0; - if ($var3) - $var4 = $var8 + (-28) | 0; - else { - $var6 = $var6 + 64 | 0; - $var4 = $var8 + ($this.$ySize0 - 4 | 0) | 0; - } - nleg_EaglerAdapterGL30_glDisable(13); - nms_Gui_drawTexturedModalRect($this, $var7, $var4, $var5, $var6, 28, 32); - $this.$zLevel = 100.0; - nms_GuiContainer_itemRenderer.$zLevel0 = 100.0; - $var2 = $var7 + 6 | 0; - $var5 = $var4 + (8 + (!$var3 ? (-1) : 1) | 0) | 0; - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(41); - $var10 = new nms_ItemStack; - nms_Item_$callClinit(); - $var6 = nms_Item_itemsList.data[$par1CreativeTabs.$getTabIconItemIndex()].$itemID; - $var10.$stackSize = 0; - $var10.$itemFrame = null; - $var10.$itemID0 = $var6; - $var10.$stackSize = 1; - $var10.$itemDamage = 0; - if ($var10.$itemDamage < 0) - $var10.$itemDamage = 0; - $par1CreativeTabs = nms_GuiContainer_itemRenderer; - var$10 = $this.$fontRenderer0; - var$11 = $this.$mc4.$renderEngine; - $ptr = 1; - case 1: - nms_RenderItem_renderItemAndEffectIntoGUI($par1CreativeTabs, var$10, var$11, $var10, $var2, $var5); - if ($rt_suspending()) { - break main; - } - nms_RenderItem_renderItemOverlayIntoGUI(nms_GuiContainer_itemRenderer, $this.$fontRenderer0, $this.$mc4.$renderEngine, $var10, $var2, $var5, null); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glDisable(13); - nms_GuiContainer_itemRenderer.$zLevel0 = 0.0; - $this.$zLevel = 0.0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1CreativeTabs, $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var10, var$10, var$11, $ptr); -}; -$java.nms_GuiContainerCreative_actionPerformed = function($this, $par1GuiButton) { - return; -}; -$java.nms_GuiContainerCreative_func_74230_h = function($this) { - return $java.nms_GuiContainerCreative_selectedTabIndex; -}; -$java.nms_GuiContainerCreative__clinit_ = function() { - var var$1; - var$1 = new $java.nms_InventoryBasic; - var$1.$inventoryTitle = $rt_s(2447); - var$1.$field_94051_e = 1; - var$1.$slotsCount = 45; - var$1.$inventoryContents = $rt_createArray(nms_ItemStack, 45); - $java.nms_GuiContainerCreative_inventory = var$1; - $java.nms_GuiContainerCreative_selectedTabIndex = nms_CreativeTabs_tabBlock.$tabIndex; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2448); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiContainerCreative_tex = var$1; -}; -function nms_BossStatus() { - jl_Object.call(this); -} -var nms_BossStatus_healthScale = 0.0; -var nms_BossStatus_statusBarLength = 0; -var nms_BossStatus_bossName = null; -var nms_BossStatus_field_82825_d = 0; -$java.nms_BossStatus__init_ = function() { - var var_0 = new nms_BossStatus(); - nms_BossStatus__init_(var_0); - return var_0; -}; -function nms_BossStatus__init_($this) { - return; -} -function nms_EntityFX() { - var a = this; nms_Entity.call(a); - a.$particleTextureIndexX = 0; - a.$particleTextureIndexY = 0; - a.$particleTextureJitterX = 0.0; - a.$particleTextureJitterY = 0.0; - a.$particleAge = 0; - a.$particleMaxAge = 0; - a.$particleScale = 0.0; - a.$particleGravity = 0.0; - a.$particleRed = 0.0; - a.$particleGreen = 0.0; - a.$particleBlue = 0.0; - a.$particleAlpha = 0.0; - a.$particleIcon = null; -} -var nms_EntityFX_interpPosX = 0.0; -var nms_EntityFX_interpPosY = 0.0; -var nms_EntityFX_interpPosZ = 0.0; -$java.nms_EntityFX__init_ = function(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityFX(); - $java.nms_EntityFX__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -}; -$java.nms_EntityFX__init_1 = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityFX(); - $java.nms_EntityFX__init_2(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -}; -$java.nms_EntityFX__init_0 = function($this, $par1World, $par2, $par4, $par6) { - nms_Entity__init_0($this); - $this.$worldObj = $par1World; - $this.$dimension = $par1World.$provider.$dimensionId; - $this.$particleAge = 0; - $this.$particleMaxAge = 0; - $this.$particleAlpha = 1.0; - $this.$particleIcon = null; - nms_Entity_setSize($this, 0.20000000298023224, 0.20000000298023224); - $this.$yOffset0 = $this.$height1 / 2.0; - nms_Entity_setPosition($this, $par2, $par4, $par6); - $this.$lastTickPosX = $par2; - $this.$lastTickPosY = $par4; - $this.$lastTickPosZ = $par6; - $this.$particleBlue = 1.0; - $this.$particleGreen = 1.0; - $this.$particleRed = 1.0; - $this.$particleTextureJitterX = Math.random() * 3.0; - $this.$particleTextureJitterY = Math.random() * 3.0; - $this.$particleScale = (Math.random() * 0.5 + 0.5) * 2.0; - $this.$particleMaxAge = 4.0 / (Math.random() * 0.8999999761581421 + 0.10000000149011612) | 0; - $this.$particleAge = 0; -}; -$java.nms_EntityFX__init_2 = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - var $var14, $var15; - $java.nms_EntityFX__init_0($this, $par1World, $par2, $par4, $par6); - $this.$motionX = $par8 + (jl_Math_randomImpl() * 2.0 - 1.0) * 0.4000000059604645; - $this.$motionY = $par10 + (jl_Math_randomImpl() * 2.0 - 1.0) * 0.4000000059604645; - $this.$motionZ = $par12 + (jl_Math_randomImpl() * 2.0 - 1.0) * 0.4000000059604645; - $var14 = (jl_Math_randomImpl() + jl_Math_randomImpl() + 1.0) * 0.15000000596046448; - $var15 = jl_Math_sqrt($this.$motionX * $this.$motionX + $this.$motionY * $this.$motionY + $this.$motionZ * $this.$motionZ); - $par2 = $this.$motionX; - $par4 = $var15; - $par2 = $par2 / $par4; - $par6 = $var14; - $this.$motionX = $par2 * $par6 * 0.4000000059604645; - $this.$motionY = $this.$motionY / $par4 * $par6 * 0.4000000059604645 + 0.10000000149011612; - $this.$motionZ = $this.$motionZ / $par4 * $par6 * 0.4000000059604645; -}; -function nms_EntityFX_multiplyVelocity($this, $par1) { - var var$2, var$3; - var$2 = $this.$motionX; - var$3 = $par1; - $this.$motionX = var$2 * var$3; - $this.$motionY = ($this.$motionY - 0.10000000149011612) * var$3 + 0.10000000149011612; - $this.$motionZ = $this.$motionZ * var$3; - return $this; -} -$java.nms_EntityFX_multipleParticleScaleBy = function($this, $par1) { - var var$2; - var$2 = 0.20000000298023224 * $par1; - nms_Entity_setSize($this, var$2, var$2); - $this.$particleScale = $this.$particleScale * $par1; - return $this; -}; -function nms_EntityFX_setRBGColorF($this, $par1, $par2, $par3) { - $this.$particleRed = $par1; - $this.$particleGreen = $par2; - $this.$particleBlue = $par3; -} -function nms_EntityFX_setAlphaF($this, $par1) { - $this.$particleAlpha = $par1; -} -function nms_EntityFX_getRedColorF($this) { - return $this.$particleRed; -} -function nms_EntityFX_getGreenColorF($this) { - return $this.$particleGreen; -} -function nms_EntityFX_getBlueColorF($this) { - return $this.$particleBlue; -} -$java.nms_EntityFX_canTriggerWalking = function($this) { - return 0; -}; -$java.nms_EntityFX_entityInit = function($this) { - return; -}; -$java.nms_EntityFX_onUpdate = function($this) { - 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();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - $this.$motionY = $this.$motionY - 0.04 * $this.$particleGravity; - var$2 = $this.$motionX; - var$3 = $this.$motionY; - var$4 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9800000190734863; - $this.$motionY = $this.$motionY * 0.9800000190734863; - $this.$motionZ = $this.$motionZ * 0.9800000190734863; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $ptr); -}; -$java.nms_EntityFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var10, $var11, $var12, var$13, var$14, var$15, $var13, $var14, $var15, var$19, var$20, $var16, var$22, var$23, var$24; - $var8 = $this.$particleTextureIndexX / 16.0; - $var9 = $var8 + 0.062437500804662704; - $var10 = $this.$particleTextureIndexY / 16.0; - $var11 = $var10 + 0.062437500804662704; - $var12 = 0.10000000149011612 * $this.$particleScale; - if ($this.$particleIcon !== null) { - $var8 = $this.$particleIcon.$getMinU(); - $var9 = $this.$particleIcon.$getMaxU(); - $var10 = $this.$particleIcon.$getMinV(); - $var11 = $this.$particleIcon.$getMaxV(); - } - var$13 = $this.$prevPosX; - var$14 = $this.$posX - $this.$prevPosX; - var$15 = $par2; - $var13 = var$13 + var$14 * var$15 - nms_EntityFX_interpPosX; - $var14 = $this.$prevPosY + ($this.$posY - $this.$prevPosY) * var$15 - nms_EntityFX_interpPosY; - $var15 = $this.$prevPosZ + ($this.$posZ - $this.$prevPosZ) * var$15 - nms_EntityFX_interpPosZ; - var$19 = $this.$particleRed * 1.0; - var$20 = $this.$particleGreen * 1.0; - $var16 = $this.$particleBlue * 1.0; - var$22 = $this.$particleAlpha; - nlea_Tessellator_setColorRGBA($par1Tessellator, var$19 * 255.0 | 0, var$20 * 255.0 | 0, $var16 * 255.0 | 0, var$22 * 255.0 | 0); - $par2 = $par3 * $var12; - $par3 = $var13 - $par2; - $var16 = $par6 * $var12; - var$23 = $par3 - $var16; - var$19 = $par4 * $var12; - var$24 = $var14 - var$19; - var$20 = $par5 * $var12; - $par5 = $var15 - var$20; - $par7 = $par7 * $var12; - var$15 = $par5 - $par7; - var$14 = $var9; - var$13 = $var11; - $par1Tessellator.$hasTexture = 1; - $par4 = var$14; - $par1Tessellator.$textureU = $par4; - $par6 = var$13; - $par1Tessellator.$textureV = $par6; - nlea_Tessellator_addVertex($par1Tessellator, var$23, var$24, var$15); - var$14 = $par3 + $var16; - var$13 = $var14 + var$19; - var$23 = $par5 + $par7; - var$15 = $var10; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = $par4; - $par5 = var$15; - $par1Tessellator.$textureV = $par5; - nlea_Tessellator_addVertex($par1Tessellator, var$14, var$13, var$23); - $par2 = $var13 + $par2; - var$14 = $par2 + $var16; - $par3 = $var15 + var$20; - var$23 = $par3 + $par7; - var$15 = $var8; - $par1Tessellator.$hasTexture = 1; - $par4 = var$15; - $par1Tessellator.$textureU = $par4; - $par1Tessellator.$textureV = $par5; - nlea_Tessellator_addVertex($par1Tessellator, var$14, var$13, var$23); - var$14 = $par2 - $var16; - var$13 = $par3 - $par7; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = $par4; - $par1Tessellator.$textureV = $par6; - nlea_Tessellator_addVertex($par1Tessellator, var$14, var$24, var$13); -}; -$java.nms_EntityFX_getFXLayer = function($this) { - return 0; -}; -$java.nms_EntityFX_setParticleIcon = function($this, $par1RenderEngine, $par2Icon) { - if ($this.$getFXLayer() == 1) - $this.$particleIcon = $par2Icon; - else { - if ($this.$getFXLayer() != 2) { - $par2Icon = new jl_RuntimeException; - $par2Icon.$suppressionEnabled = 1; - $par2Icon.$writableStackTrace = 1; - $par2Icon.$message = $rt_s(2449); - $rt_throw($par2Icon); - } - $this.$particleIcon = $par2Icon; - } -}; -function nms_EntityFX_setParticleTextureIndex($this, $par1) { - $this.$particleTextureIndexX = $par1 % 16 | 0; - $this.$particleTextureIndexY = $par1 / 16 | 0; -} -function nms_EntityFX_nextTextureIndexX($this) { - $this.$particleTextureIndexX = $this.$particleTextureIndexX + 1 | 0; -} -$java.nms_EntityFX_canAttackWithItem = function($this) { - return 0; -}; -$java.nms_EntityFX_toString = function($this) { - var var$1, var$2, var$3, var$4, var$5; - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - var$2 = jl_Class_getSimpleName(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(2450)); - var$3 = $this.$posX; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$3); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(267)); - var$3 = $this.$posY; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$3); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(267)); - var$3 = $this.$posZ; - jl_AbstractStringBuilder_insert3(var$1, var$1.$length, var$3); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2451)); - var$4 = $this.$particleRed; - jl_AbstractStringBuilder_insert2(var$1, var$1.$length, var$4); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(267)); - var$4 = $this.$particleGreen; - jl_AbstractStringBuilder_insert2(var$1, var$1.$length, var$4); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(267)); - var$4 = $this.$particleBlue; - jl_AbstractStringBuilder_insert2(var$1, var$1.$length, var$4); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(267)); - var$4 = $this.$particleAlpha; - jl_AbstractStringBuilder_insert2(var$1, var$1.$length, var$4); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2452)); - var$5 = $this.$particleAge; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$5, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function ju_AbstractList$1() { - var a = this; jl_Object.call(a); - a.$index = 0; - a.$modCount = 0; - a.$size1 = 0; - a.$removeIndex = 0; - a.$this$0 = null; -} -function ju_AbstractList$1__init_(var_0) { - var var_1 = new ju_AbstractList$1(); - $java.ju_AbstractList$1__init_(var_1, var_0); - return var_1; -} -$java.ju_AbstractList$1__init_ = function($this, $this$0) { - $this.$this$0 = $this$0; - $this.$modCount = $this.$this$0.$modCount0; - $this.$size1 = $this.$this$0.$size2(); - $this.$removeIndex = (-1); -}; -function ju_AbstractList$1_hasNext($this) { - return $this.$index >= $this.$size1 ? 0 : 1; -} -function ju_AbstractList$1_next($this) { - var var$1, var$2; - if ($this.$modCount >= $this.$this$0.$modCount0) { - $this.$removeIndex = $this.$index; - var$1 = $this.$this$0; - var$2 = $this.$index; - $this.$index = var$2 + 1 | 0; - return var$1.$get4(var$2); - } - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); -} -function ju_AbstractList$1_remove($this) { - var var$1; - if ($this.$removeIndex < 0) { - var$1 = new jl_IllegalStateException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - if ($this.$modCount < $this.$this$0.$modCount0) { - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - $this.$this$0.$remove0($this.$removeIndex); - $this.$modCount = $this.$this$0.$modCount0; - if ($this.$removeIndex < $this.$index) - $this.$index = $this.$index - 1 | 0; - $this.$size1 = $this.$size1 - 1 | 0; - $this.$removeIndex = (-1); -} -$java.ju_AbstractList$1_checkConcurrentModification = function($this) { - var var$1; - if ($this.$modCount >= $this.$this$0.$modCount0) - return; - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); -}; -function jt_DecimalFormat$MantissaAndExponent() { - var a = this; jl_Object.call(a); - a.$mantissa1 = Long_ZERO; - a.$exponent1 = 0; -} -function jt_DecimalFormat$MinusField() { - jl_Object.call(this); -} -$java.jt_DecimalFormat$MinusField__init_ = function() { - var var_0 = new jt_DecimalFormat$MinusField(); - jt_DecimalFormat$MinusField__init_(var_0); - return var_0; -}; -function jt_DecimalFormat$MinusField__init_($this) { - return; -} -$java.jt_DecimalFormat$MinusField_render = function($this, $format, $buffer) { - var var$3, var$4; - var$3 = $format.$symbols.$minusSign; - var$4 = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, var$4, var$4 + 1 | 0); - $buffer.$buffer.data[var$4] = var$3; -}; -$java.jt_DecimalFormat$MinusField_equals = function($this, $obj) { - return $obj instanceof jt_DecimalFormat$MinusField; -}; -$java.jt_DecimalFormat$MinusField_hashCode = function($this) { - return 3; -}; -function nms_EntityDiggingFX() { - nms_EntityFX.call(this); - this.$blockInstance = null; -} -function nms_EntityDiggingFX__init_0(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { - var var_11 = new nms_EntityDiggingFX(); - nms_EntityDiggingFX__init_(var_11, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); - return var_11; -} -function nms_EntityDiggingFX__init_($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14Block, $par15, $par16, $par17RenderEngine) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $this.$blockInstance = $par14Block; - $java.nms_EntityFX_setParticleIcon($this, $par17RenderEngine, $par14Block.$getIcon(0, $par16)); - $this.$particleGravity = $par14Block.$blockParticleGravity; - $this.$particleBlue = 0.6000000238418579; - $this.$particleGreen = 0.6000000238418579; - $this.$particleRed = 0.6000000238418579; - $this.$particleScale = $this.$particleScale / 2.0; -} -function nms_EntityDiggingFX_func_70596_a($this, $par1, $par2, $par3) { - var var$4, $var4; - var$4 = $this.$blockInstance; - nms_Block_$callClinit(); - if (var$4 === nms_Block_grass) - return $this; - $var4 = $this.$blockInstance.$colorMultiplier($this.$worldObj, $par1, $par2, $par3); - $this.$particleRed = $this.$particleRed * ($var4 >> 16 & 255) / 255.0; - $this.$particleGreen = $this.$particleGreen * ($var4 >> 8 & 255) / 255.0; - $this.$particleBlue = $this.$particleBlue * ($var4 & 255) / 255.0; - return $this; -} -function nms_EntityDiggingFX_applyRenderColor($this, $par1) { - var var$2, $var2; - var$2 = $this.$blockInstance; - nms_Block_$callClinit(); - if (var$2 === nms_Block_grass) - return $this; - $var2 = $this.$blockInstance.$getRenderColor($par1); - $this.$particleRed = $this.$particleRed * ($var2 >> 16 & 255) / 255.0; - $this.$particleGreen = $this.$particleGreen * ($var2 >> 8 & 255) / 255.0; - $this.$particleBlue = $this.$particleBlue * ($var2 & 255) / 255.0; - return $this; -} -$java.nms_EntityDiggingFX_getFXLayer = function($this) { - return 1; -}; -$java.nms_EntityDiggingFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var10, $var11, $var12, var$13, var$14, var$15, $var13, $var14, $var15, var$19, var$20, $var16, var$22, var$23; - $var8 = ($this.$particleTextureIndexX + $this.$particleTextureJitterX / 4.0) / 16.0; - $var9 = $var8 + 0.015609375201165676; - $var10 = ($this.$particleTextureIndexY + $this.$particleTextureJitterY / 4.0) / 16.0; - $var11 = $var10 + 0.015609375201165676; - $var12 = 0.10000000149011612 * $this.$particleScale; - if ($this.$particleIcon !== null) { - $var8 = $this.$particleIcon.$getInterpolatedU($this.$particleTextureJitterX / 4.0 * 16.0); - $var9 = $this.$particleIcon.$getInterpolatedU(($this.$particleTextureJitterX + 1.0) / 4.0 * 16.0); - $var10 = $this.$particleIcon.$getInterpolatedV($this.$particleTextureJitterY / 4.0 * 16.0); - $var11 = $this.$particleIcon.$getInterpolatedV(($this.$particleTextureJitterY + 1.0) / 4.0 * 16.0); - } - var$13 = $this.$prevPosX; - var$14 = $this.$posX - $this.$prevPosX; - var$15 = $par2; - $var13 = var$13 + var$14 * var$15 - nms_EntityFX_interpPosX; - $var14 = $this.$prevPosY + ($this.$posY - $this.$prevPosY) * var$15 - nms_EntityFX_interpPosY; - $var15 = $this.$prevPosZ + ($this.$posZ - $this.$prevPosZ) * var$15 - nms_EntityFX_interpPosZ; - var$19 = 1.0 * $this.$particleRed; - var$20 = 1.0 * $this.$particleGreen; - $var16 = 1.0 * $this.$particleBlue; - nlea_Tessellator_setColorRGBA($par1Tessellator, var$19 * 255.0 | 0, var$20 * 255.0 | 0, $var16 * 255.0 | 0, 255); - $var16 = $par3 * $var12; - var$19 = $var13 - $var16; - $par6 = $par6 * $var12; - var$15 = var$19 - $par6; - $par2 = $par4 * $var12; - var$22 = $var14 - $par2; - $par5 = $par5 * $var12; - var$20 = $var15 - $par5; - $var12 = $par7 * $var12; - var$14 = var$20 - $var12; - var$13 = $var8; - var$23 = $var11; - $par1Tessellator.$hasTexture = 1; - $par3 = var$13; - $par1Tessellator.$textureU = $par3; - $par4 = var$23; - $par1Tessellator.$textureV = $par4; - nlea_Tessellator_addVertex($par1Tessellator, var$15, var$22, var$14); - var$15 = var$19 + $par6; - var$14 = $var14 + $par2; - var$13 = var$20 + $var12; - var$23 = $var10; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = $par3; - $par7 = var$23; - $par1Tessellator.$textureV = $par7; - nlea_Tessellator_addVertex($par1Tessellator, var$15, var$14, var$13); - $var13 = $var13 + $var16; - var$15 = $var13 + $par6; - $par2 = $var15 + $par5; - var$13 = $par2 + $var12; - var$23 = $var9; - $par1Tessellator.$hasTexture = 1; - $par5 = var$23; - $par1Tessellator.$textureU = $par5; - $par1Tessellator.$textureV = $par7; - nlea_Tessellator_addVertex($par1Tessellator, var$15, var$14, var$13); - var$15 = $var13 - $par6; - var$14 = $par2 - $var12; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = $par5; - $par1Tessellator.$textureV = $par4; - nlea_Tessellator_addVertex($par1Tessellator, var$15, var$22, var$14); -}; -$java.jn_FloatBufferOverByteBuffer = function() { - var a = this; jn_FloatBufferImpl.call(a); - a.$byteByffer0 = null; - a.$readOnly4 = 0; - a.$start4 = 0; -}; -$java.jn_FloatBufferOverByteBuffer_readOnly = function($this) { - return $this.$readOnly4; -}; -function jn_FloatBufferOverByteBufferLittleEndian() { - $java.jn_FloatBufferOverByteBuffer.call(this); -} -$java.jn_FloatBufferOverByteBufferLittleEndian_getElement = function($this, $index) { - var var$2, var$3; - var$2 = $this.$byteByffer0.$array.data; - var$3 = $this.$start4; - $index = $index * 4 | 0; - return $rt_intBitsToFloat((var$2[var$3 + $index | 0] & 255) << 24 | ($this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 1 | 0] & 255) << 16 | ($this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 2 | 0] & 255) << 8 | $this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 3 | 0] & 255); -}; -$java.jn_FloatBufferOverByteBufferLittleEndian_putElement = function($this, $index, $f) { - var $value, var$4, var$5; - $value = $rt_floatToIntBits($f); - var$4 = $this.$byteByffer0.$array.data; - var$5 = $this.$start4; - $index = $index * 4 | 0; - var$4[var$5 + $index | 0] = $value >> 24 << 24 >> 24; - $this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 1 | 0] = $value >> 16 << 24 >> 24; - $this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 2 | 0] = $value >> 8 << 24 >> 24; - $this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 3 | 0] = $value << 24 >> 24; -}; -function jn_FloatBufferOverByteBufferBigEndian() { - $java.jn_FloatBufferOverByteBuffer.call(this); -} -$java.jn_FloatBufferOverByteBufferBigEndian_getElement = function($this, $index) { - var var$2, var$3; - var$2 = $this.$byteByffer0.$array.data; - var$3 = $this.$start4; - $index = $index * 4 | 0; - return $rt_intBitsToFloat(var$2[var$3 + $index | 0] & 255 | ($this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 1 | 0] & 255) << 8 | ($this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 2 | 0] & 255) << 16 | ($this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 3 | 0] & 255) << 24); -}; -$java.jn_FloatBufferOverByteBufferBigEndian_putElement = function($this, $index, $f) { - var $value, var$4, var$5; - $value = $rt_floatToIntBits($f); - var$4 = $this.$byteByffer0.$array.data; - var$5 = $this.$start4; - $index = $index * 4 | 0; - var$4[var$5 + $index | 0] = $value << 24 >> 24; - $this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 1 | 0] = $value >> 8 << 24 >> 24; - $this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 2 | 0] = $value >> 16 << 24 >> 24; - $this.$byteByffer0.$array.data[($this.$start4 + $index | 0) + 3 | 0] = $value >> 24 << 24 >> 24; -}; -function nms_ModelBox() { - var a = this; jl_Object.call(a); - a.$vertexPositions = null; - a.$quadList = null; - a.$posX10 = 0.0; - a.$posY10 = 0.0; - a.$posZ10 = 0.0; - a.$posX20 = 0.0; - a.$posY20 = 0.0; - a.$posZ20 = 0.0; - a.$field_78247_g = null; -} -function nms_ModelBox__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { - var var_10 = new nms_ModelBox(); - $java.nms_ModelBox__init_(var_10, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); - return var_10; -} -$java.nms_ModelBox__init_ = function($this, $par1ModelRenderer, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9, $par10) { - var var$11, var$12, var$13, $var23, var$15, var$16, var$17, $var15, var$19, $var16, var$21, $var17, $var18, $var19, $var20, $var21, var$27, var$28, var$29, var$30, $var22, var$32, var$33, var$34; - $this.$posX10 = $par4; - $this.$posY10 = $par5; - $this.$posZ10 = $par6; - var$11 = $par4 + $par7; - $this.$posX20 = var$11; - var$12 = $par5 + $par8; - $this.$posY20 = var$12; - var$13 = $par6 + $par9; - $this.$posZ20 = var$13; - $this.$vertexPositions = $rt_createArray($java.nms_PositionTextureVertex, 8); - $this.$quadList = $rt_createArray(nms_TexturedQuad, 6); - $par4 = $par4 - $par10; - $par5 = $par5 - $par10; - $par6 = $par6 - $par10; - var$11 = var$11 + $par10; - var$12 = var$12 + $par10; - $par10 = var$13 + $par10; - if (!$par1ModelRenderer.$mirror) { - var$13 = $par4; - $par4 = var$11; - var$11 = var$13; - } - a: { - $var23 = new $java.nms_PositionTextureVertex; - var$15 = var$11; - var$16 = $par5; - var$17 = $par6; - $var23.$vector3D = nms_Vec3__init_($java.nms_Vec3_fakePool, var$15, var$16, var$17); - $var23.$texturePositionX = 0.0; - $var23.$texturePositionY = 0.0; - $var15 = new $java.nms_PositionTextureVertex; - var$19 = $par4; - $var15.$vector3D = nms_Vec3__init_($java.nms_Vec3_fakePool, var$19, var$16, var$17); - $var15.$texturePositionX = 0.0; - $var15.$texturePositionY = 8.0; - $var16 = new $java.nms_PositionTextureVertex; - var$21 = var$12; - $var16.$vector3D = nms_Vec3__init_($java.nms_Vec3_fakePool, var$19, var$21, var$17); - $var16.$texturePositionX = 8.0; - $var16.$texturePositionY = 8.0; - $var17 = new $java.nms_PositionTextureVertex; - $var17.$vector3D = nms_Vec3__init_($java.nms_Vec3_fakePool, var$15, var$21, var$17); - $var17.$texturePositionX = 8.0; - $var17.$texturePositionY = 0.0; - $var18 = new $java.nms_PositionTextureVertex; - var$21 = $par10; - $var18.$vector3D = nms_Vec3__init_($java.nms_Vec3_fakePool, var$15, var$16, var$21); - $var18.$texturePositionX = 0.0; - $var18.$texturePositionY = 0.0; - $var19 = $java.nms_PositionTextureVertex__init_(nms_Vec3__init_($java.nms_Vec3_fakePool, var$19, var$16, var$21), 0.0, 8.0); - $var20 = $java.nms_PositionTextureVertex__init_0($par4, var$12, $par10, 8.0, 8.0); - $var21 = $java.nms_PositionTextureVertex__init_0(var$11, var$12, $par10, 8.0, 0.0); - $this.$vertexPositions.data[0] = $var23; - $this.$vertexPositions.data[1] = $var15; - $this.$vertexPositions.data[2] = $var16; - $this.$vertexPositions.data[3] = $var17; - $this.$vertexPositions.data[4] = $var18; - $this.$vertexPositions.data[5] = $var19; - $this.$vertexPositions.data[6] = $var20; - $this.$vertexPositions.data[7] = $var21; - var$27 = $this.$quadList.data; - var$28 = new nms_TexturedQuad; - var$29 = $rt_createArray($java.nms_PositionTextureVertex, 4); - var$30 = var$29.data; - var$30[0] = $var19; - var$30[1] = $var15; - var$30[2] = $var16; - var$30[3] = $var20; - $var22 = $par2 + $par9 | 0; - var$32 = $var22 + $par7 | 0; - var$33 = $par3 + $par9 | 0; - $par9 = var$32 + $par9 | 0; - var$34 = var$33 + $par8 | 0; - $java.nms_TexturedQuad__init_(var$28, var$29, var$32, var$33, $par9, var$34, $par1ModelRenderer.$textureWidth0, $par1ModelRenderer.$textureHeight0); - var$27[0] = var$28; - var$30 = $this.$quadList.data; - var$28 = new nms_TexturedQuad; - var$29 = $rt_createArray($java.nms_PositionTextureVertex, 4); - var$27 = var$29.data; - var$27[0] = $var23; - var$27[1] = $var18; - var$27[2] = $var21; - var$27[3] = $var17; - $java.nms_TexturedQuad__init_(var$28, var$29, $par2, var$33, $var22, var$34, $par1ModelRenderer.$textureWidth0, $par1ModelRenderer.$textureHeight0); - var$30[1] = var$28; - var$30 = $this.$quadList.data; - var$28 = new nms_TexturedQuad; - var$29 = $rt_createArray($java.nms_PositionTextureVertex, 4); - var$27 = var$29.data; - var$27[0] = $var19; - var$27[1] = $var18; - var$27[2] = $var23; - var$27[3] = $var15; - $java.nms_TexturedQuad__init_(var$28, var$29, $var22, $par3, var$32, var$33, $par1ModelRenderer.$textureWidth0, $par1ModelRenderer.$textureHeight0); - var$30[2] = var$28; - var$30 = $this.$quadList.data; - var$28 = new nms_TexturedQuad; - var$29 = $rt_createArray($java.nms_PositionTextureVertex, 4); - var$27 = var$29.data; - var$27[0] = $var16; - var$27[1] = $var17; - var$27[2] = $var21; - var$27[3] = $var20; - $java.nms_TexturedQuad__init_(var$28, var$29, var$32, var$33, var$32 + $par7 | 0, $par3, $par1ModelRenderer.$textureWidth0, $par1ModelRenderer.$textureHeight0); - var$30[3] = var$28; - var$30 = $this.$quadList.data; - var$28 = new nms_TexturedQuad; - var$29 = $rt_createArray($java.nms_PositionTextureVertex, 4); - var$27 = var$29.data; - var$27[0] = $var15; - var$27[1] = $var23; - var$27[2] = $var17; - var$27[3] = $var16; - $java.nms_TexturedQuad__init_(var$28, var$29, $var22, var$33, var$32, var$34, $par1ModelRenderer.$textureWidth0, $par1ModelRenderer.$textureHeight0); - var$30[4] = var$28; - var$30 = $this.$quadList.data; - $var23 = new nms_TexturedQuad; - var$29 = $rt_createArray($java.nms_PositionTextureVertex, 4); - var$27 = var$29.data; - var$27[0] = $var18; - var$27[1] = $var19; - var$27[2] = $var20; - var$27[3] = $var21; - $java.nms_TexturedQuad__init_($var23, var$29, $par9, var$33, $par9 + $par7 | 0, var$34, $par1ModelRenderer.$textureWidth0, $par1ModelRenderer.$textureHeight0); - var$30[5] = $var23; - if ($par1ModelRenderer.$mirror) { - $var22 = 0; - while (true) { - if ($var22 >= $this.$quadList.data.length) - break a; - $java.nms_TexturedQuad_flipFace($this.$quadList.data[$var22]); - $var22 = $var22 + 1 | 0; - } - } - } -}; -$java.nms_ModelBox_render = function($this, $par1Tessellator, $par2) { - var $var3; - $var3 = 0; - while ($var3 < $this.$quadList.data.length) { - nms_TexturedQuad_draw($this.$quadList.data[$var3], $par1Tessellator, $par2); - $var3 = $var3 + 1 | 0; - } -}; -$java.nms_ModelBox_func_78244_a = function($this, $par1Str) { - $this.$field_78247_g = $par1Str; - return $this; -}; -function nms_TextureOffset() { - var a = this; jl_Object.call(a); - a.$textureOffsetX = 0; - a.$textureOffsetY = 0; -} -$java.jur_AbstractCharClass$1 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$lHS = null; - a.$this$08 = null; -}; -$java.jur_AbstractCharClass$1_contains = function($this, $ch) { - var $index; - $index = $ch - 55296 | 0; - return $index >= 0 && $index < 2048 ? $this.$altSurrogates ^ $java.ju_BitSet_get($this.$val$lHS, $index) : 0; -}; -$java.jur_AbstractCharClass$2 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$lHS0 = null; - a.$val$thisClass = null; - a.$this$09 = null; -}; -$java.jur_AbstractCharClass$2_contains = function($this, $ch) { - var $index, $containslHS; - $index = $ch - 55296 | 0; - $containslHS = $index >= 0 && $index < 2048 ? $this.$altSurrogates ^ $java.ju_BitSet_get($this.$val$lHS0, $index) : 0; - return $this.$val$thisClass.$contains1($ch) && !$containslHS ? 1 : 0; -}; -$java.jur_CharClass$18 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$bs = null; - a.$this$027 = null; -}; -$java.jur_CharClass$18_contains = function($this, $ch) { - return $this.$alt0 ^ $java.ju_BitSet_get($this.$val$bs, $ch); -}; -$java.jur_CharClass$18_toString = function($this) { - var $temp, $i, var$3, var$4, var$5; - $temp = new jl_StringBuilder; - $temp.$buffer = $rt_createCharArray(16); - $i = $java.ju_BitSet_nextSetBit($this.$val$bs, 0); - while ($i >= 0) { - var$3 = jl_Character_toChars($i); - var$4 = var$3.data.length; - jl_AbstractStringBuilder_insert6($temp, $temp.$length, var$3, 0, var$4); - var$5 = $temp.$length; - jl_AbstractStringBuilder_insertSpace($temp, var$5, var$5 + 1 | 0); - $temp.$buffer.data[var$5] = 124; - $i = $java.ju_BitSet_nextSetBit($this.$val$bs, $i + 1 | 0); - } - if ($temp.$length > 0) - jl_AbstractStringBuilder_deleteCharAt($temp, $temp.$length - 1 | 0); - return jl_String__init_0($temp.$buffer, 0, $temp.$length); -}; -$java.jur_CharClass$1 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$cc1 = null; - a.$this$012 = null; -}; -$java.jur_CharClass$1_contains = function($this, $ch) { - return $this.$val$cc1.$contains1($ch); -}; -$java.jur_CharClass$3 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$curAlt1 = 0; - a.$val$cc2 = null; - a.$this$013 = null; -}; -$java.jur_CharClass$3_contains = function($this, $ch) { - return !($this.$val$curAlt1 ^ $java.ju_BitSet_get($this.$this$013.$bits, $ch)) && !($this.$val$curAlt1 ^ $this.$this$013.$inverted ^ $this.$val$cc2.$contains1($ch)) ? 0 : 1; -}; -$java.jur_CharClass$2 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$curAlt2 = 0; - a.$val$cc3 = null; - a.$this$014 = null; -}; -$java.jur_CharClass$2_contains = function($this, $ch) { - return !($this.$val$curAlt2 ^ $java.ju_BitSet_get($this.$this$014.$bits, $ch)) && !($this.$val$curAlt2 ^ $this.$this$014.$inverted ^ $this.$val$cc3.$contains1($ch)) ? 1 : 0; -}; -$java.jur_CharClass$5 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$curAlt = 0; - a.$val$nb = null; - a.$val$cc = null; - a.$this$010 = null; -}; -$java.jur_CharClass$5_contains = function($this, $ch) { - return $this.$val$curAlt ^ (!$this.$val$nb.$contains1($ch) && !$this.$val$cc.$contains1($ch) ? 0 : 1); -}; -$java.jur_CharClass$4 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$curAlt0 = 0; - a.$val$nb0 = null; - a.$val$cc0 = null; - a.$this$011 = null; -}; -$java.jur_CharClass$4_contains = function($this, $ch) { - return $this.$val$curAlt0 ^ (!$this.$val$nb0.$contains1($ch) && !$this.$val$cc0.$contains1($ch) ? 0 : 1) ? 0 : 1; -}; -$java.jur_CharClass$7 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$clazz1 = null; - a.$this$017 = null; -}; -$java.jur_CharClass$7_contains = function($this, $ch) { - var var$2; - var$2 = $this.$val$clazz1; - return var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch); -}; -$java.jur_CharClass$6 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$clazz2 = null; - a.$this$018 = null; -}; -$java.jur_CharClass$6_contains = function($this, $ch) { - var var$2; - var$2 = $this.$val$clazz2; - return (var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch)) ? 0 : 1; -}; -$java.jur_CharClass$9 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$clazz3 = null; - a.$val$curAlt5 = 0; - a.$this$019 = null; -}; -$java.jur_CharClass$9_contains = function($this, $ch) { - var var$2, var$3; - var$2 = $this.$val$clazz3; - var$3 = var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch); - return !var$3 && !($this.$val$curAlt5 ^ $java.ju_BitSet_get($this.$this$019.$bits, $ch)) ? 0 : 1; -}; -$java.jur_CharClass$8 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$clazz4 = null; - a.$val$curAlt6 = 0; - a.$this$020 = null; -}; -$java.jur_CharClass$8_contains = function($this, $ch) { - var var$2, var$3; - var$2 = $this.$val$clazz4; - var$3 = var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch); - return !var$3 && !($this.$val$curAlt6 ^ $java.ju_BitSet_get($this.$this$020.$bits, $ch)) ? 1 : 0; -}; -$java.jur_CharClass$11 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$curAlt3 = 0; - a.$val$nb1 = null; - a.$val$clazz = null; - a.$this$015 = null; -}; -$java.jur_CharClass$11_contains = function($this, $ch) { - var var$2; - a: { - if (!($this.$val$curAlt3 ^ $this.$val$nb1.$contains1($ch))) { - var$2 = $this.$val$clazz; - if (!(var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch))) { - $ch = 0; - break a; - } - } - $ch = 1; - } - return $ch; -}; -$java.jur_CharClass$10 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$curAlt4 = 0; - a.$val$nb2 = null; - a.$val$clazz0 = null; - a.$this$016 = null; -}; -$java.jur_CharClass$10_contains = function($this, $ch) { - var var$2; - a: { - if (!($this.$val$curAlt4 ^ $this.$val$nb2.$contains1($ch))) { - var$2 = $this.$val$clazz0; - if (!(var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch))) { - $ch = 1; - break a; - } - } - $ch = 0; - } - return $ch; -}; -$java.jur_CharClass$13 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$clazz7 = null; - a.$this$023 = null; -}; -$java.jur_CharClass$13_contains = function($this, $ch) { - var var$2; - var$2 = $this.$val$clazz7; - return var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch); -}; -$java.jur_CharClass$12 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$clazz8 = null; - a.$this$024 = null; -}; -$java.jur_CharClass$12_contains = function($this, $ch) { - var var$2; - var$2 = $this.$val$clazz8; - return (var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch)) ? 0 : 1; -}; -$java.jur_CharClass$15 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$clazz9 = null; - a.$val$curAlt9 = 0; - a.$this$025 = null; -}; -$java.jur_CharClass$15_contains = function($this, $ch) { - var var$2, var$3; - var$2 = $this.$val$clazz9; - var$3 = var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch); - return var$3 && $this.$val$curAlt9 ^ $java.ju_BitSet_get($this.$this$025.$bits, $ch) ? 1 : 0; -}; -$java.jur_CharClass$14 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$clazz10 = null; - a.$val$curAlt10 = 0; - a.$this$026 = null; -}; -$java.jur_CharClass$14_contains = function($this, $ch) { - var var$2, var$3; - var$2 = $this.$val$clazz10; - var$3 = var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch); - return var$3 && $this.$val$curAlt10 ^ $java.ju_BitSet_get($this.$this$026.$bits, $ch) ? 0 : 1; -}; -$java.jur_CharClass$17 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$curAlt7 = 0; - a.$val$nb3 = null; - a.$val$clazz5 = null; - a.$this$021 = null; -}; -$java.jur_CharClass$17_contains = function($this, $ch) { - var var$2; - a: { - if ($this.$val$curAlt7 ^ $this.$val$nb3.$contains1($ch)) { - var$2 = $this.$val$clazz5; - if (var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch)) { - $ch = 1; - break a; - } - } - $ch = 0; - } - return $ch; -}; -$java.jur_CharClass$16 = function() { - var a = this; jur_AbstractCharClass.call(a); - a.$val$curAlt8 = 0; - a.$val$nb4 = null; - a.$val$clazz6 = null; - a.$this$022 = null; -}; -$java.jur_CharClass$16_contains = function($this, $ch) { - var var$2; - a: { - if ($this.$val$curAlt8 ^ $this.$val$nb4.$contains1($ch)) { - var$2 = $this.$val$clazz6; - if (var$2.$nonBitSet !== null ? var$2.$alt0 ^ var$2.$nonBitSet.$contains1($ch) : var$2.$alt0 ^ $java.ju_BitSet_get(var$2.$bits, $ch)) { - $ch = 0; - break a; - } - } - $ch = 1; - } - return $ch; -}; -function nms_WorldProvider() { - var a = this; jl_Object.call(a); - a.$worldObj0 = null; - a.$terrainType = null; - a.$field_82913_c = null; - a.$isHellWorld = 0; - a.$hasNoSky = 0; - a.$lightBrightnessTable = null; - a.$dimensionId = 0; - a.$colorsSunriseSunset = null; -} -$java.nms_WorldProvider_registerWorld = function($this, $par1World) { - $this.$worldObj0 = $par1World; - $this.$terrainType = $par1World.$worldInfo.$terrainType0; - $this.$field_82913_c = $par1World.$worldInfo.$generatorOptions; - $this.$registerWorldChunkManager(); - $this.$generateLightBrightnessTable(); -}; -$java.nms_WorldProvider_generateLightBrightnessTable = function($this) { - var $var2, $var3; - $var2 = 0; - while ($var2 <= 15) { - $var3 = 1.0 - $var2 / 15.0; - $this.$lightBrightnessTable.data[$var2] = (1.0 - $var3) / ($var3 * 3.0 + 1.0) * 1.0 + 0.0; - $var2 = $var2 + 1 | 0; - } -}; -$java.nms_WorldProvider_registerWorldChunkManager = function($this) { - return; -}; -$java.nms_WorldProvider_calculateCelestialAngle = function($this, $par1, $par3) { - var $var5; - $var5 = (Long_rem($par1, Long_fromInt(24000)).lo + $par3) / 24000.0 - 0.25; - if ($var5 < 0.0) - $var5 = $var5 + 1.0; - if ($var5 > 1.0) - $var5 = $var5 - 1.0; - return $var5 + (1.0 - (jl_Math_cos($var5 * 3.141592653589793) + 1.0) / 2.0 - $var5) / 3.0; -}; -$java.nms_WorldProvider_getMoonPhase = function($this, $par1) { - return Long_div($par1, Long_fromInt(24000)).lo % 8 | 0; -}; -$java.nms_WorldProvider_isSurfaceWorld = function($this) { - return 1; -}; -$java.nms_WorldProvider_calcSunriseSunsetColors = function($this, $par1, $par2) { - var $var4, $var6, $var7, var$6; - $par1 = $par1 * 3.1415927410125732 * 2.0; - $var4 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] + 0.0; - if ($var4 >= (-0.4000000059604645) && $var4 <= 0.4000000059604645) { - $var6 = ($var4 - 0.0) / 0.4000000059604645 * 0.5 + 0.5; - $par1 = $var6 * 3.1415927410125732; - $var7 = 1.0 - (1.0 - nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535]) * 0.9900000095367432; - $par1 = $var7 * $var7; - $this.$colorsSunriseSunset.data[0] = $var6 * 0.30000001192092896 + 0.699999988079071; - var$6 = $this.$colorsSunriseSunset.data; - $var4 = $var6 * $var6; - var$6[1] = $var4 * 0.699999988079071 + 0.20000000298023224; - $this.$colorsSunriseSunset.data[2] = $var4 * 0.0 + 0.20000000298023224; - $this.$colorsSunriseSunset.data[3] = $par1; - return $this.$colorsSunriseSunset; - } - return null; -}; -$java.nms_WorldProvider_getFogColor = function($this, $par1, $par2) { - var $var3; - $par1 = $par1 * 3.1415927410125732 * 2.0; - $var3 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.0 + 0.5; - if ($var3 < 0.0) - $var3 = 0.0; - if ($var3 > 1.0) - $var3 = 1.0; - $par1 = $var3 * 0.9399999976158142 + 0.05999999865889549; - $par2 = 0.7529411911964417 * $par1; - $par1 = 0.8470588326454163 * $par1; - $var3 = 1.0 * ($var3 * 0.9100000262260437 + 0.09000000357627869); - return nms_Vec3Pool_getVecFromPool($this.$worldObj0.$vecPool, $par2, $par1, $var3); -}; -$java.nms_WorldProvider_canRespawnHere = function($this) { - return 1; -}; -function nms_WorldProvider_getProviderForDimension($par0) { - var var$2; - if ($par0 == (-1)) { - var$2 = new nms_WorldProviderHell; - var$2.$isHellWorld = 0; - var$2.$hasNoSky = 0; - var$2.$lightBrightnessTable = $rt_createFloatArray(16); - var$2.$dimensionId = 0; - var$2.$colorsSunriseSunset = $rt_createFloatArray(4); - } else if (!$par0) { - var$2 = new nms_WorldProviderSurface; - var$2.$isHellWorld = 0; - var$2.$hasNoSky = 0; - var$2.$lightBrightnessTable = $rt_createFloatArray(16); - var$2.$dimensionId = 0; - var$2.$colorsSunriseSunset = $rt_createFloatArray(4); - } else if ($par0 != 1) - var$2 = null; - else { - var$2 = new nms_WorldProviderEnd; - var$2.$isHellWorld = 0; - var$2.$hasNoSky = 0; - var$2.$lightBrightnessTable = $rt_createFloatArray(16); - var$2.$dimensionId = 0; - var$2.$colorsSunriseSunset = $rt_createFloatArray(4); - } - return var$2; -} -$java.nms_WorldProvider_getCloudHeight = function($this) { - return 128.0; -}; -$java.nms_WorldProvider_isSkyColored = function($this) { - return 1; -}; -function nms_WorldProvider_getWorldHasVoidParticles($this) { - return $this.$terrainType !== nms_WorldType_FLAT && !$this.$hasNoSky ? 1 : 0; -} -function nms_WorldProvider_getVoidFogYFactor($this) { - return $this.$terrainType !== nms_WorldType_FLAT ? 0.03125 : 1.0; -} -$java.nms_WorldProvider_doesXZShowFog = function($this, $par1, $par2) { - return 0; -}; -function nlea_EaglerAdapterImpl2$AudioBufferSourceNodeX() { - var a = this; jl_Object.call(a); - a.$source = null; - a.$panner = null; - a.$gain = null; -} -function nlea_EaglerAdapterImpl2$18() { - jl_Object.call(this); - this.$val$theId0 = 0; -} -$java.nlea_EaglerAdapterImpl2$18_handleEvent = function($this, $evt) { - nlea_EaglerAdapterImpl2_$callClinit(); - ju_HashMap_removeEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf($this.$val$theId0)); -}; -$java.nlea_EaglerAdapterImpl2$18_handleEvent0 = function($this, var$1) { - nlea_EaglerAdapterImpl2_$callClinit(); - ju_HashMap_removeEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf($this.$val$theId0)); -}; -$java.nlea_EaglerAdapterImpl2$18_handleEvent$exported$0 = function(var$0, var$1) { - nlea_EaglerAdapterImpl2_$callClinit(); - ju_HashMap_removeEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf(var$0.$val$theId0)); -}; -function nms_GuiTextField() { - var a = this; nms_Gui.call(a); - a.$fontRenderer3 = null; - a.$xPos = 0; - a.$yPos = 0; - a.$width4 = 0; - a.$height5 = 0; - a.$text = null; - a.$maxStringLength = 0; - a.$cursorCounter = 0; - a.$enableBackgroundDrawing = 0; - a.$canLoseFocus = 0; - a.$isFocused = 0; - a.$isEnabled = 0; - a.$lineScrollOffset = 0; - a.$cursorPosition = 0; - a.$selectionEnd = 0; - a.$enabledColor = 0; - a.$disabledColor = 0; - a.$visible = 0; -} -function nms_GuiTextField__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_GuiTextField(); - $java.nms_GuiTextField__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -$java.nms_GuiTextField__init_ = function($this, $par1FontRenderer, $par2, $par3, $par4, $par5) { - $this.$zLevel = 0.0; - $this.$text = $rt_s(44); - $this.$maxStringLength = 32; - $this.$enableBackgroundDrawing = 1; - $this.$canLoseFocus = 1; - $this.$isFocused = 0; - $this.$isEnabled = 1; - $this.$lineScrollOffset = 0; - $this.$cursorPosition = 0; - $this.$selectionEnd = 0; - $this.$enabledColor = 14737632; - $this.$disabledColor = 7368816; - $this.$visible = 1; - $this.$fontRenderer3 = $par1FontRenderer; - $this.$xPos = $par2; - $this.$yPos = $par3; - $this.$width4 = $par4; - $this.$height5 = $par5; -}; -$java.nms_GuiTextField_updateCursorCounter = function($this) { - $this.$cursorCounter = $this.$cursorCounter + 1 | 0; -}; -function nms_GuiTextField_setText($this, $par1Str) { - var var$2; - if ($par1Str.$characters.data.length <= $this.$maxStringLength) - $this.$text = $par1Str; - else { - var$2 = $this.$maxStringLength; - if (0 > var$2) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $this.$text = jl_String__init_0($par1Str.$characters, 0, var$2 - 0 | 0); - } - $java.nms_GuiTextField_setCursorPosition($this, $this.$text.$characters.data.length); -} -$java.nms_GuiTextField_getText = function($this) { - return $this.$text; -}; -$java.nms_GuiTextField_getSelectedtext = function($this) { - var $var1, $var2, var$3; - $var1 = $this.$cursorPosition >= $this.$selectionEnd ? $this.$selectionEnd : $this.$cursorPosition; - $var2 = $this.$cursorPosition >= $this.$selectionEnd ? $this.$cursorPosition : $this.$selectionEnd; - var$3 = $this.$text; - if ($var1 <= $var2) - return jl_String__init_0(var$3.$characters, $var1, $var2 - $var1 | 0); - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); -}; -function nms_GuiTextField_writeText($this, $par1Str) { - var $var2, $var3, $var4, $var5, $var8, var$7, var$8; - $var2 = $rt_s(44); - $var3 = nms_ChatAllowedCharacters_filerAllowedCharacters($par1Str); - $var4 = $this.$cursorPosition >= $this.$selectionEnd ? $this.$selectionEnd : $this.$cursorPosition; - $var5 = $this.$cursorPosition >= $this.$selectionEnd ? $this.$cursorPosition : $this.$selectionEnd; - $var8 = ($this.$maxStringLength - $this.$text.$characters.data.length | 0) - ($var4 - $this.$selectionEnd | 0) | 0; - if ($this.$text.$characters.data.length > 0) { - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $var2); - $var2 = $this.$text; - if (0 > $var4) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $par1Str = jl_String__init_0($var2.$characters, 0, $var4 - 0 | 0); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $par1Str); - $var2 = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - } - if ($var8 >= $var3.$characters.data.length) { - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $var2); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $var3); - $par1Str = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - $var8 = $var3.$characters.data.length; - } else { - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $var2); - if (0 > $var8) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $par1Str = jl_String__init_0($var3.$characters, 0, $var8 - 0 | 0); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $par1Str); - $par1Str = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - } - if ($this.$text.$characters.data.length > 0 && $var5 < $this.$text.$characters.data.length) { - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $par1Str); - $var3 = $this.$text; - var$8 = $var3.$characters.data.length; - if ($var5 > var$8) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - $par1Str = jl_String__init_0($var3.$characters, $var5, var$8 - $var5 | 0); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $par1Str); - $par1Str = jl_String__init_0($var2.$buffer, 0, $var2.$length); - } - $this.$text = $par1Str; - $var4 = ($var4 - $this.$selectionEnd | 0) + $var8 | 0; - $java.nms_GuiTextField_setCursorPosition($this, $this.$selectionEnd + $var4 | 0); -} -$java.nms_GuiTextField_deleteWords = function($this, $par1) { - if ($this.$text.$characters.data.length) { - if ($this.$selectionEnd != $this.$cursorPosition) - nms_GuiTextField_writeText($this, $rt_s(44)); - else - nms_GuiTextField_deleteFromCursor($this, nms_GuiTextField_func_73798_a($this, $par1, $this.$cursorPosition, 1) - $this.$cursorPosition | 0); - } -}; -function nms_GuiTextField_deleteFromCursor($this, $par1) { - var $var2, $var3, $var4, $var5, var$6, var$7; - if ($this.$text.$characters.data.length) { - if ($this.$selectionEnd != $this.$cursorPosition) - nms_GuiTextField_writeText($this, $rt_s(44)); - else { - $var2 = $par1 >= 0 ? 0 : 1; - $var3 = !$var2 ? $this.$cursorPosition : $this.$cursorPosition + $par1 | 0; - $var4 = $var2 ? $this.$cursorPosition : $this.$cursorPosition + $par1 | 0; - $var5 = $rt_s(44); - if ($var3 >= 0) { - var$6 = $this.$text; - if (0 > $var3) { - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); - } - $var5 = jl_String__init_0(var$6.$characters, 0, $var3 - 0 | 0); - } - if ($var4 < $this.$text.$characters.data.length) { - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $var5); - $var5 = $this.$text; - $var3 = $var5.$characters.data.length; - if ($var4 > $var3) { - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); - } - var$7 = jl_String__init_0($var5.$characters, $var4, $var3 - $var4 | 0); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$7); - $var5 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - } - $this.$text = $var5; - if ($var2) - $java.nms_GuiTextField_setCursorPosition($this, $this.$selectionEnd + $par1 | 0); - } - } -} -$java.nms_GuiTextField_getNthWordFromCursor = function($this, $par1) { - return nms_GuiTextField_func_73798_a($this, $par1, $this.$cursorPosition, 1); -}; -$java.nms_GuiTextField_getNthWordFromPos = function($this, $par1, $par2) { - return nms_GuiTextField_func_73798_a($this, $par1, $this.$cursorPosition, 1); -}; -function nms_GuiTextField_func_73798_a($this, $var6, $par2, $par3) { - var $var5, $var7, $var8; - $var5 = $var6 >= 0 ? 0 : 1; - if ($var6 <= 0) - $var6 = -$var6; - $var7 = 0; - while ($var7 < $var6) { - a: { - if (!$var5) { - $var8 = $this.$text.$characters.data.length; - $par2 = jl_String_indexOf($this.$text, 32, $par2); - if ($par2 == (-1)) - $par2 = $var8; - else - while ($par3) { - if ($par2 >= $var8) - break a; - if (jl_String_charAt($this.$text, $par2) != 32) - break a; - $par2 = $par2 + 1 | 0; - } - } else { - b: { - while ($par3) { - if ($par2 <= 0) - break b; - if (jl_String_charAt($this.$text, $par2 - 1 | 0) != 32) - break b; - $par2 = $par2 + (-1) | 0; - } - } - while ($par2 > 0) { - if (jl_String_charAt($this.$text, $par2 - 1 | 0) == 32) - break a; - $par2 = $par2 + (-1) | 0; - } - } - } - $var7 = $var7 + 1 | 0; - } - return $par2; -} -$java.nms_GuiTextField_moveCursorBy = function($this, $par1) { - $java.nms_GuiTextField_setCursorPosition($this, $this.$selectionEnd + $par1 | 0); -}; -$java.nms_GuiTextField_setCursorPosition = function($this, $par1) { - var $var2; - $this.$cursorPosition = $par1; - $var2 = $this.$text.$characters.data.length; - if ($this.$cursorPosition < 0) - $this.$cursorPosition = 0; - if ($this.$cursorPosition > $var2) - $this.$cursorPosition = $var2; - $java.nms_GuiTextField_setSelectionPos($this, $this.$cursorPosition); -}; -$java.nms_GuiTextField_setCursorPositionZero = function($this) { - $java.nms_GuiTextField_setCursorPosition($this, 0); -}; -$java.nms_GuiTextField_setCursorPositionEnd = function($this) { - $java.nms_GuiTextField_setCursorPosition($this, $this.$text.$characters.data.length); -}; -function nms_GuiTextField_textboxKeyTyped($this, $par1, $par2) { - var var$3, var$4; - if ($this.$isEnabled && $this.$isFocused) { - switch ($par1) { - case 1: - $java.nms_GuiTextField_setCursorPosition($this, $this.$text.$characters.data.length); - $java.nms_GuiTextField_setSelectionPos($this, 0); - return 1; - case 3: - break; - case 22: - nms_GuiScreen_$callClinit(); - nms_GuiTextField_writeText($this, $rt_s(44)); - return 1; - case 24: - $java.nms_GuiTextField_getSelectedtext($this); - nms_GuiScreen_$callClinit(); - nms_GuiTextField_writeText($this, $rt_s(44)); - return 1; - default: - switch ($par2) { - case 14: - break; - case 199: - nms_GuiScreen_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - if (!nlea_EaglerAdapterImpl2_keyStates.data[42] && !nlea_EaglerAdapterImpl2_keyStates.data[54] ? 0 : 1) - $java.nms_GuiTextField_setSelectionPos($this, 0); - else - $java.nms_GuiTextField_setCursorPosition($this, 0); - return 1; - case 203: - nms_GuiScreen_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - if (!nlea_EaglerAdapterImpl2_keyStates.data[42] && !nlea_EaglerAdapterImpl2_keyStates.data[54] ? 0 : 1) { - if (!nms_GuiScreen_isCtrlKeyDown()) - $java.nms_GuiTextField_setSelectionPos($this, $this.$selectionEnd - 1 | 0); - else - $java.nms_GuiTextField_setSelectionPos($this, nms_GuiTextField_func_73798_a($this, (-1), $this.$cursorPosition, 1)); - } else if (!nms_GuiScreen_isCtrlKeyDown()) - $java.nms_GuiTextField_setCursorPosition($this, $this.$selectionEnd + (-1) | 0); - else - $java.nms_GuiTextField_setCursorPosition($this, nms_GuiTextField_func_73798_a($this, (-1), $this.$cursorPosition, 1)); - return 1; - case 205: - nms_GuiScreen_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - if (!nlea_EaglerAdapterImpl2_keyStates.data[42] && !nlea_EaglerAdapterImpl2_keyStates.data[54] ? 0 : 1) { - if (!nms_GuiScreen_isCtrlKeyDown()) - $java.nms_GuiTextField_setSelectionPos($this, $this.$selectionEnd + 1 | 0); - else - $java.nms_GuiTextField_setSelectionPos($this, nms_GuiTextField_func_73798_a($this, 1, $this.$cursorPosition, 1)); - } else if (!nms_GuiScreen_isCtrlKeyDown()) - $java.nms_GuiTextField_setCursorPosition($this, $this.$selectionEnd + 1 | 0); - else - $java.nms_GuiTextField_setCursorPosition($this, nms_GuiTextField_func_73798_a($this, 1, $this.$cursorPosition, 1)); - return 1; - case 207: - nms_GuiScreen_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - if (!nlea_EaglerAdapterImpl2_keyStates.data[42] && !nlea_EaglerAdapterImpl2_keyStates.data[54] ? 0 : 1) - $java.nms_GuiTextField_setSelectionPos($this, $this.$text.$characters.data.length); - else - $java.nms_GuiTextField_setCursorPosition($this, $this.$text.$characters.data.length); - return 1; - case 211: - if (!nms_GuiScreen_isCtrlKeyDown()) - nms_GuiTextField_deleteFromCursor($this, 1); - else - $java.nms_GuiTextField_deleteWords($this, 1); - return 1; - default: - if (!nms_ChatAllowedCharacters_isAllowedCharacter($par1)) - return 0; - var$3 = new jl_String; - var$4 = $rt_createCharArray(1); - var$4.data[0] = $par1; - jl_String__init_3(var$3, var$4); - nms_GuiTextField_writeText($this, var$3); - return 1; - } - if (!nms_GuiScreen_isCtrlKeyDown()) - nms_GuiTextField_deleteFromCursor($this, (-1)); - else - $java.nms_GuiTextField_deleteWords($this, (-1)); - return 1; - } - $java.nms_GuiTextField_getSelectedtext($this); - nms_GuiScreen_$callClinit(); - return 1; - } - return 0; -} -function nms_GuiTextField_mouseClicked($this, $par1, $par2, $par3) { - var $var4, $var5, var$6, var$7, $var6; - $var4 = $par1 >= $this.$xPos && $par1 < ($this.$xPos + $this.$width4 | 0) && $par2 >= $this.$yPos && $par2 < ($this.$yPos + $this.$height5 | 0) ? 1 : 0; - if ($this.$canLoseFocus) { - $par2 = $this.$isEnabled && $var4 ? 1 : 0; - if ($par2 && !$this.$isFocused) - $this.$cursorCounter = 0; - $this.$isFocused = $par2; - } - if ($this.$isFocused && !$par3) { - $var5 = $par1 - $this.$xPos | 0; - if ($this.$enableBackgroundDrawing) - $var5 = $var5 + (-4) | 0; - var$6 = $this.$fontRenderer3; - var$7 = $this.$text; - $par3 = $this.$lineScrollOffset; - $par2 = var$7.$characters.data.length; - if ($par3 > $par2) { - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - } - $var6 = nms_FontRenderer_trimStringToWidth0(var$6, jl_String__init_0(var$7.$characters, $par3, $par2 - $par3 | 0), !$this.$enableBackgroundDrawing ? $this.$width4 : $this.$width4 - 8 | 0, 0); - $java.nms_GuiTextField_setCursorPosition($this, nms_FontRenderer_trimStringToWidth0($this.$fontRenderer3, $var6, $var5, 0).$characters.data.length + $this.$lineScrollOffset | 0); - } -} -function nms_GuiTextField_drawTextBox($this) { - var $var1, $var2, $var3, $var10, var$5, $var7, $var13, $var4, $var5, $var6, $var8, var$12, var$13; - if ($this.$visible) { - if ($this.$enableBackgroundDrawing) { - nms_Gui_drawRect($this.$xPos - 1 | 0, $this.$yPos - 1 | 0, ($this.$xPos + $this.$width4 | 0) + 1 | 0, ($this.$yPos + $this.$height5 | 0) + 1 | 0, (-6250336)); - nms_Gui_drawRect($this.$xPos, $this.$yPos, $this.$xPos + $this.$width4 | 0, $this.$yPos + $this.$height5 | 0, (-16777216)); - } - $var1 = !$this.$isEnabled ? $this.$disabledColor : $this.$enabledColor; - $var2 = $this.$cursorPosition - $this.$lineScrollOffset | 0; - $var3 = $this.$selectionEnd - $this.$lineScrollOffset | 0; - $var10 = $this.$fontRenderer3; - var$5 = $this.$text; - $var7 = $this.$lineScrollOffset; - $var13 = var$5.$characters.data.length; - if ($var7 > $var13) { - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); - } - $var4 = nms_FontRenderer_trimStringToWidth0($var10, jl_String__init_0(var$5.$characters, $var7, $var13 - $var7 | 0), !$this.$enableBackgroundDrawing ? $this.$width4 : $this.$width4 - 8 | 0, 0); - $var5 = $var2 >= 0 && $var2 <= $var4.$characters.data.length ? 1 : 0; - $var6 = $this.$isFocused && !(($this.$cursorCounter / 6 | 0) % 2 | 0) && $var5 ? 1 : 0; - $var7 = !$this.$enableBackgroundDrawing ? $this.$xPos : $this.$xPos + 4 | 0; - $var8 = !$this.$enableBackgroundDrawing ? $this.$yPos : $this.$yPos + (($this.$height5 - 8 | 0) / 2 | 0) | 0; - if ($var3 > $var4.$characters.data.length) - $var3 = $var4.$characters.data.length; - if ($var4.$characters.data.length <= 0) - var$12 = $var7; - else { - if (!$var5) - $var10 = $var4; - else { - if (0 > $var2) { - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); - } - $var10 = jl_String__init_0($var4.$characters, 0, $var2 - 0 | 0); - } - var$12 = nms_FontRenderer_drawString($this.$fontRenderer3, $var10, $var7, $var8, $var1, 1); - } - $var13 = $this.$cursorPosition >= $this.$text.$characters.data.length && $this.$text.$characters.data.length < $this.$maxStringLength ? 0 : 1; - if ($var5) { - if (!$var13) - var$13 = var$12; - else { - var$13 = var$12 - 1 | 0; - var$12 = var$12 + (-1) | 0; - } - } else - var$13 = $var2 <= 0 ? $var7 : $var7 + $this.$width4 | 0; - if ($var4.$characters.data.length > 0 && $var5 && $var2 < $var4.$characters.data.length) - nms_FontRenderer_drawString($this.$fontRenderer3, jl_String_substring0($var4, $var2, $var4.$characters.data.length), var$12, $var8, $var1, 1); - if ($var6) { - if (!$var13) - nms_FontRenderer_drawString($this.$fontRenderer3, $rt_s(381), var$13, $var8, $var1, 1); - else - nms_Gui_drawRect(var$13, $var8 - 1 | 0, var$13 + 1 | 0, ($var8 + 1 | 0) + $this.$fontRenderer3.$FONT_HEIGHT | 0, (-3092272)); - } - if ($var3 != $var2) - $java.nms_GuiTextField_drawCursorVertical($this, var$13, $var8 - 1 | 0, ($var7 + nms_FontRenderer_getStringWidth($this.$fontRenderer3, jl_String_substring0($var4, 0, $var3)) | 0) - 1 | 0, ($var8 + 1 | 0) + $this.$fontRenderer3.$FONT_HEIGHT | 0); - } -} -$java.nms_GuiTextField_drawCursorVertical = function($this, $par1, $par2, $par3, $par4) { - var var$5, $var6, var$7, var$8, var$9; - if ($par1 >= $par3) { - var$5 = $par3; - $par3 = $par1; - $par1 = var$5; - } - if ($par2 >= $par4) { - var$5 = $par4; - $par4 = $par2; - $par2 = var$5; - } - nlea_Tessellator_$callClinit(); - $var6 = nlea_Tessellator_instance; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 0.0; - nleg_EaglerAdapterGL30_colorG = 0.0; - nleg_EaglerAdapterGL30_colorB = 255.0; - nleg_EaglerAdapterGL30_colorA = 255.0; - nleg_EaglerAdapterGL30_glDisable(2); - nleg_EaglerAdapterGL30_glEnable(50); - nlea_Tessellator_startDrawing($var6, 98); - var$7 = $par3; - var$8 = $par2; - nlea_Tessellator_addVertex($var6, var$7, var$8, 0.0); - var$9 = $par1; - nlea_Tessellator_addVertex($var6, var$9, var$8, 0.0); - var$8 = $par4; - nlea_Tessellator_addVertex($var6, var$9, var$8, 0.0); - nlea_Tessellator_addVertex($var6, var$7, var$8, 0.0); - nlea_Tessellator_draw($var6); - nleg_EaglerAdapterGL30_glDisable(50); - nleg_EaglerAdapterGL30_glEnable(2); -}; -function nms_GuiTextField_setMaxStringLength($this, $par1) { - var var$2; - $this.$maxStringLength = $par1; - if ($this.$text.$characters.data.length > $par1) { - var$2 = $this.$text; - if (0 > $par1) { - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - $this.$text = jl_String__init_0(var$2.$characters, 0, $par1 - 0 | 0); - } -} -$java.nms_GuiTextField_getMaxStringLength = function($this) { - return $this.$maxStringLength; -}; -$java.nms_GuiTextField_getCursorPosition = function($this) { - return $this.$cursorPosition; -}; -$java.nms_GuiTextField_getEnableBackgroundDrawing = function($this) { - return $this.$enableBackgroundDrawing; -}; -$java.nms_GuiTextField_setEnableBackgroundDrawing = function($this, $par1) { - $this.$enableBackgroundDrawing = $par1; -}; -$java.nms_GuiTextField_setTextColor = function($this, $par1) { - $this.$enabledColor = $par1; -}; -$java.nms_GuiTextField_setDisabledTextColour = function($this, $par1) { - $this.$disabledColor = $par1; -}; -$java.nms_GuiTextField_setFocused = function($this, $par1) { - if ($par1 && !$this.$isFocused) - $this.$cursorCounter = 0; - $this.$isFocused = $par1; -}; -$java.nms_GuiTextField_isFocused = function($this) { - return $this.$isFocused; -}; -$java.nms_GuiTextField_setEnabled = function($this, $par1) { - $this.$isEnabled = $par1; -}; -$java.nms_GuiTextField_getSelectionEnd = function($this) { - return $this.$selectionEnd; -}; -$java.nms_GuiTextField_getWidth = function($this) { - return !$this.$enableBackgroundDrawing ? $this.$width4 : $this.$width4 - 8 | 0; -}; -$java.nms_GuiTextField_setSelectionPos = function($this, $par1) { - var $var2, $var3, $var4, var$5, $var5, var$7; - $var2 = $this.$text.$characters.data.length; - if ($par1 > $var2) - $par1 = $var2; - if ($par1 < 0) - $par1 = 0; - $this.$selectionEnd = $par1; - if ($this.$fontRenderer3 !== null) { - if ($this.$lineScrollOffset > $var2) - $this.$lineScrollOffset = $var2; - $var3 = !$this.$enableBackgroundDrawing ? $this.$width4 : $this.$width4 - 8 | 0; - $var4 = $this.$fontRenderer3; - var$5 = $this.$text; - $var5 = $this.$lineScrollOffset; - var$7 = var$5.$characters.data.length; - if ($var5 > var$7) { - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); - } - $var5 = nms_FontRenderer_trimStringToWidth0($var4, jl_String__init_0(var$5.$characters, $var5, var$7 - $var5 | 0), $var3, 0).$characters.data.length + $this.$lineScrollOffset | 0; - if ($par1 == $this.$lineScrollOffset) - $this.$lineScrollOffset = $this.$lineScrollOffset - nms_FontRenderer_trimStringToWidth0($this.$fontRenderer3, $this.$text, $var3, 1).$characters.data.length | 0; - if ($par1 > $var5) - $this.$lineScrollOffset = $this.$lineScrollOffset + ($par1 - $var5 | 0) | 0; - else if ($par1 <= $this.$lineScrollOffset) - $this.$lineScrollOffset = $this.$lineScrollOffset - ($this.$lineScrollOffset - $par1 | 0) | 0; - if ($this.$lineScrollOffset < 0) - $this.$lineScrollOffset = 0; - if ($this.$lineScrollOffset > $var2) - $this.$lineScrollOffset = $var2; - } -}; -$java.nms_GuiTextField_setCanLoseFocus = function($this, $par1) { - $this.$canLoseFocus = $par1; -}; -$java.nms_GuiTextField_getVisible = function($this) { - return $this.$visible; -}; -$java.nms_GuiTextField_setVisible = function($this, $par1) { - $this.$visible = $par1; -}; -$java.nms_ContainerCreative = function() { - nms_Container.call(this); - this.$itemList = null; -}; -$java.nms_ContainerCreative__init_ = function(var_0) { - var var_1 = new $java.nms_ContainerCreative(); - $java.nms_ContainerCreative__init_0(var_1, var_0); - return var_1; -}; -$java.nms_ContainerCreative__init_0 = function($this, $par1EntityPlayer) { - var $var2, $var3, $var4, var$5, var$6, var$7, var$8; - nms_Container__init_($this); - $var2 = new ju_ArrayList; - $var2.$array1 = $rt_createArray(jl_Object, 10); - $this.$itemList = $var2; - $var2 = $par1EntityPlayer.$inventory; - $var3 = 0; - while ($var3 < 5) { - $var4 = 0; - while ($var4 < 9) { - var$5 = new $java.nms_Slot; - $java.nms_GuiContainerCreative_$callClinit(); - $par1EntityPlayer = $java.nms_GuiContainerCreative_inventory; - var$6 = ($var3 * 9 | 0) + $var4 | 0; - var$7 = 9 + ($var4 * 18 | 0) | 0; - var$8 = 18 + ($var3 * 18 | 0) | 0; - var$5.$inventory0 = $par1EntityPlayer; - var$5.$slotIndex = var$6; - var$5.$xDisplayPosition = var$7; - var$5.$yDisplayPosition = var$8; - var$5.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$5); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = $var4 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - $var4 = 0; - while ($var4 < 9) { - $par1EntityPlayer = new $java.nms_Slot; - var$8 = 9 + ($var4 * 18 | 0) | 0; - $par1EntityPlayer.$inventory0 = $var2; - $par1EntityPlayer.$slotIndex = $var4; - $par1EntityPlayer.$xDisplayPosition = var$8; - $par1EntityPlayer.$yDisplayPosition = 112; - $par1EntityPlayer.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par1EntityPlayer); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = $var4 + 1 | 0; - } - $java.nms_ContainerCreative_scrollTo($this, 0.0); -}; -$java.nms_ContainerCreative_canInteractWith = function($this, $par1EntityPlayer) { - return 1; -}; -$java.nms_ContainerCreative_scrollTo = function($this, $par1) { - var $var3, $var4, var$4, $var5, $var6, var$7, var$8, var$9; - $var3 = $par1 * ((($this.$itemList.$size0 / 9 | 0) - 5 | 0) + 1 | 0) + 0.5 | 0; - if ($var3 < 0) - $var3 = 0; - $var4 = 0; - var$4 = null; - a: { - while ($var4 < 5) { - $var5 = 0; - while ($var5 < 9) { - $var6 = $var5 + (($var4 + $var3 | 0) * 9 | 0) | 0; - if ($var6 >= 0 && $var6 < $this.$itemList.$size0) { - $java.nms_GuiContainerCreative_$callClinit(); - var$7 = $java.nms_GuiContainerCreative_inventory; - var$8 = $var5 + ($var4 * 9 | 0) | 0; - var$9 = $this.$itemList; - if ($var6 < 0) - break a; - if ($var6 >= var$9.$size0) - break a; - $java.nms_InventoryBasic_setInventorySlotContents(var$7, var$8, var$9.$array1.data[$var6]); - } else { - $java.nms_GuiContainerCreative_$callClinit(); - $java.nms_InventoryBasic_setInventorySlotContents($java.nms_GuiContainerCreative_inventory, $var5 + ($var4 * 9 | 0) | 0, var$4); - } - $var5 = $var5 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - return; - } - var$9 = new jl_IndexOutOfBoundsException; - var$9.$suppressionEnabled = 1; - var$9.$writableStackTrace = 1; - $rt_throw(var$9); -}; -$java.nms_ContainerCreative_hasMoreThan1PageOfItemsInList = function($this) { - return $this.$itemList.$size0 <= 45 ? 0 : 1; -}; -$java.nms_ContainerCreative_retrySlotClick = function($this, $par1, $par2, $par3, $par4EntityPlayer) { - return; -}; -$java.nms_ContainerCreative_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($par2 >= ($this.$inventorySlots.$size0 - 9 | 0) && $par2 < $this.$inventorySlots.$size0) { - $par1EntityPlayer = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < $par1EntityPlayer.$size0) { - $var3 = $par1EntityPlayer.$array1.data[$par2]; - if ($var3 === null) - break a; - if (!$var3.$getHasStack()) - break a; - else { - $par1EntityPlayer = null; - $ptr = 1; - continue main; - } - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - } - } - return null; - case 1: - $var3.$putStack($par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - return null; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, $ptr); -}; -$java.nms_ContainerCreative_func_94530_a = function($this, $par1ItemStack, $par2Slot) { - return $par2Slot.$yDisplayPosition <= 90 ? 0 : 1; -}; -$java.nms_ContainerCreative_func_94531_b = function($this, $par1Slot) { - var var$2; - a: { - b: { - if (!($par1Slot.$inventory0 instanceof nms_InventoryPlayer)) { - if ($par1Slot.$yDisplayPosition <= 90) - break b; - if ($par1Slot.$xDisplayPosition > 162) - break b; - } - var$2 = 1; - break a; - } - var$2 = 0; - } - return var$2; -}; -function nms_EntitySmokeFX() { - nms_EntityFX.call(this); - this.$smokeParticleScale = 0.0; -} -function nms_EntitySmokeFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntitySmokeFX(); - $java.nms_EntitySmokeFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -function nms_EntitySmokeFX__init_0(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7) { - var var_8 = new nms_EntitySmokeFX(); - $java.nms_EntitySmokeFX__init_0(var_8, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7); - return var_8; -} -$java.nms_EntitySmokeFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntitySmokeFX__init_0($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, 1.0); -}; -$java.nms_EntitySmokeFX__init_0 = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14) { - var var$9; - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$motionX = $this.$motionX * 0.10000000149011612; - $this.$motionY = $this.$motionY * 0.10000000149011612; - $this.$motionZ = $this.$motionZ * 0.10000000149011612; - $this.$motionX = $this.$motionX + $par8; - $this.$motionY = $this.$motionY + $par10; - $this.$motionZ = $this.$motionZ + $par12; - var$9 = jl_Math_randomImpl() * 0.30000001192092896; - $this.$particleBlue = var$9; - $this.$particleGreen = var$9; - $this.$particleRed = var$9; - $this.$particleScale = $this.$particleScale * 0.75; - $this.$particleScale = $this.$particleScale * $par14; - $this.$smokeParticleScale = $this.$particleScale; - $this.$particleMaxAge = 8.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; - $this.$particleMaxAge = $this.$particleMaxAge * $par14 | 0; - $this.$noClip = 0; -}; -$java.nms_EntitySmokeFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge * 32.0; - if ($var8 < 0.0) - $var8 = 0.0; - if ($var8 > 1.0) - $var8 = 1.0; - $this.$particleScale = $this.$smokeParticleScale * $var8; - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntitySmokeFX_onUpdate = function($this) { - var var$1, var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = 7 - (($this.$particleAge * 8 | 0) / $this.$particleMaxAge | 0) | 0; - $this.$particleTextureIndexX = var$2 % 16 | 0; - $this.$particleTextureIndexY = var$2 / 16 | 0; - $this.$motionY = $this.$motionY + 0.004; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - if ($this.$posY === $this.$prevPosY) { - $this.$motionX = $this.$motionX * 1.1; - $this.$motionZ = $this.$motionZ * 1.1; - } - $this.$motionX = $this.$motionX * 0.9599999785423279; - $this.$motionY = $this.$motionY * 0.9599999785423279; - $this.$motionZ = $this.$motionZ * 0.9599999785423279; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $ptr); -}; -function nms_EntityRainFX() { - nms_EntityFX.call(this); -} -function nms_EntityRainFX__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityRainFX(); - $java.nms_EntityRainFX__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.nms_EntityRainFX__init_ = function($this, $par1World, $par2, $par4, $par6) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$motionX = $this.$motionX * 0.30000001192092896; - $this.$motionY = jl_Math_randomImpl() * 0.20000000298023224 + 0.10000000149011612; - $this.$motionZ = $this.$motionZ * 0.30000001192092896; - $this.$particleRed = 1.0; - $this.$particleGreen = 1.0; - $this.$particleBlue = 1.0; - $this.$particleAlpha = 0.4000000059604645; - nms_EntityFX_setParticleTextureIndex($this, 19 + (Math.random() * 4.0 | 0) | 0); - nms_Entity_setSize($this, 0.009999999776482582, 0.009999999776482582); - $this.$particleGravity = 0.05999999865889549; - $this.$particleMaxAge = 8.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; -}; -$java.nms_EntityRainFX_onUpdate = function($this) { - var $var2, var$2, var$3, var$4, $var1, var$6, 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();var$6 = $thread.pop();$var1 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$var2 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$motionY = $this.$motionY - $this.$particleGravity; - $var2 = $this.$motionX; - var$2 = $this.$motionY; - var$3 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, $var2, var$2, var$3); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9800000190734863; - $this.$motionY = $this.$motionY * 0.9800000190734863; - $this.$motionZ = $this.$motionZ * 0.9800000190734863; - var$4 = $this.$particleMaxAge; - $this.$particleMaxAge = var$4 - 1 | 0; - if (var$4 <= 0) - $this.$isDead = 1; - if ($this.$onGround) { - if (jl_Math_randomImpl() < 0.5) - $this.$isDead = 1; - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - $var1 = $this.$worldObj; - $var2 = $this.$posX; - var$6 = $var2 | 0; - if ($var2 < var$6) - var$6 = var$6 - 1 | 0; - $var2 = $this.$posY; - var$7 = $var2 | 0; - if ($var2 < var$7) - var$7 = var$7 - 1 | 0; - $var2 = $this.$posZ; - var$8 = $var2 | 0; - if ($var2 < var$8) - var$8 = var$8 - 1 | 0; - var$4 = nms_World_getBlockId($var1, var$6, var$7, var$8); - if (!var$4) { - nms_Material_$callClinit(); - $var1 = nms_Material_air; - } else { - nms_Block_$callClinit(); - $var1 = nms_Block_blocksList.data[var$4].$blockMaterial; - } - if (!(!$var1.$isLiquid() && !$var1.$isSolid())) { - $var2 = $this.$posY; - var$8 = $var2 | 0; - if ($var2 < var$8) - var$8 = var$8 - 1 | 0; - var$9 = var$8 + 1 | 0; - $var1 = $this.$worldObj; - $var2 = $this.$posX; - var$6 = $var2 | 0; - if ($var2 < var$6) - var$6 = var$6 - 1 | 0; - $var2 = $this.$posY; - var$7 = $var2 | 0; - if ($var2 < var$7) - var$7 = var$7 - 1 | 0; - $var2 = $this.$posZ; - var$8 = $var2 | 0; - if ($var2 < var$8) - var$8 = var$8 - 1 | 0; - var$4 = nms_World_getBlockMetadata($var1, var$6, var$7, var$8); - if (var$4 >= 8) - var$4 = 0; - $var2 = var$9 - (var$4 + 1 | 0) / 9.0; - if ($this.$posY < $var2) - $this.$isDead = 1; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var2, var$2, var$3, var$4, $var1, var$6, var$7, var$8, var$9, $ptr); -}; -function nms_DestroyBlockProgress() { - var a = this; jl_Object.call(a); - a.$miningPlayerEntId = 0; - a.$partialBlockX = 0; - a.$partialBlockY = 0; - a.$partialBlockZ = 0; - a.$partialBlockProgress = 0; - a.$createdAtCloudUpdateTick = 0; -} -$java.nms_DestroyBlockProgress_getPartialBlockX = function($this) { - return $this.$partialBlockX; -}; -$java.nms_DestroyBlockProgress_getPartialBlockY = function($this) { - return $this.$partialBlockY; -}; -$java.nms_DestroyBlockProgress_getPartialBlockZ = function($this) { - return $this.$partialBlockZ; -}; -$java.nms_DestroyBlockProgress_setPartialBlockDamage = function($this, $par1) { - if ($par1 > 10) - $par1 = 10; - $this.$partialBlockProgress = $par1; -}; -$java.nms_DestroyBlockProgress_getPartialBlockDamage = function($this) { - return $this.$partialBlockProgress; -}; -$java.nms_DestroyBlockProgress_setCloudUpdateTick = function($this, $par1) { - $this.$createdAtCloudUpdateTick = $par1; -}; -$java.nms_DestroyBlockProgress_getCreationCloudUpdateTick = function($this) { - return $this.$createdAtCloudUpdateTick; -}; -function nlea_EaglerAdapterImpl2$17() { - jl_Object.call(this); - this.$val$theId = 0; -} -$java.nlea_EaglerAdapterImpl2$17_handleEvent = function($this, $evt) { - nlea_EaglerAdapterImpl2_$callClinit(); - ju_HashMap_removeEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf($this.$val$theId)); -}; -$java.nlea_EaglerAdapterImpl2$17_handleEvent0 = function($this, var$1) { - nlea_EaglerAdapterImpl2_$callClinit(); - ju_HashMap_removeEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf($this.$val$theId)); -}; -$java.nlea_EaglerAdapterImpl2$17_handleEvent$exported$0 = function(var$0, var$1) { - nlea_EaglerAdapterImpl2_$callClinit(); - ju_HashMap_removeEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf(var$0.$val$theId)); -}; -function jm_BigDecimal() { - var a = this; jl_Number.call(a); - a.$intVal = null; - a.$bitLength = 0; - a.$smallValue = Long_ZERO; - a.$scale1 = 0; - a.$precision0 = 0; -} -var jm_BigDecimal_ZERO = null; -$java.jm_BigDecimal_ONE = null; -$java.jm_BigDecimal_TEN = null; -$java.jm_BigDecimal_FIVE_POW = null; -$java.jm_BigDecimal_TEN_POW = null; -$java.jm_BigDecimal_LONG_TEN_POW = null; -$java.jm_BigDecimal_LONG_FIVE_POW = null; -$java.jm_BigDecimal_LONG_FIVE_POW_BIT_LENGTH = null; -$java.jm_BigDecimal_LONG_TEN_POW_BIT_LENGTH = null; -$java.jm_BigDecimal_BI_SCALED_BY_ZERO = null; -$java.jm_BigDecimal_ZERO_SCALED_BY = null; -$java.jm_BigDecimal_CH_ZEROS = null; -function jm_BigDecimal_$callClinit() { - jm_BigDecimal_$callClinit = $rt_eraseClinit(jm_BigDecimal); - $java.jm_BigDecimal__clinit_(); -} -$java.jm_BigDecimal__init_ = function(var_0, var_1) { - var var_2 = new jm_BigDecimal(); - $java.jm_BigDecimal__init_0(var_2, var_0, var_1); - return var_2; -}; -function jm_BigDecimal__init_(var_0, var_1) { - var var_2 = new jm_BigDecimal(); - $java.jm_BigDecimal__init_1(var_2, var_0, var_1); - return var_2; -} -$java.jm_BigDecimal__init_0 = function($this, $smallValue, $scale) { - jm_BigDecimal_$callClinit(); - $this.$smallValue = Long_fromInt($smallValue); - $this.$scale1 = $scale; - if ($smallValue < 0) - $smallValue = $smallValue ^ (-1); - $this.$bitLength = 32 - jl_Integer_numberOfLeadingZeros($smallValue) | 0; -}; -$java.jm_BigDecimal__init_1 = function($this, $unscaledVal, $scale) { - jm_BigDecimal_$callClinit(); - if ($unscaledVal === null) { - $unscaledVal = new jl_NullPointerException; - $unscaledVal.$suppressionEnabled = 1; - $unscaledVal.$writableStackTrace = 1; - $rt_throw($unscaledVal); - } - $this.$scale1 = $scale; - $this.$intVal = $unscaledVal; - $this.$bitLength = $java.jm_BitLevel_bitLength($unscaledVal); - if ($this.$bitLength < 64) - $this.$smallValue = $java.jm_BigInteger_longValue($unscaledVal); -}; -$java.jm_BigDecimal_valueOf = function($unscaledVal, $scale) { - var var$3, var$4; - jm_BigDecimal_$callClinit(); - if (!$scale) - return jm_BigDecimal_valueOf($unscaledVal); - var$3 = Long_compare($unscaledVal, Long_ZERO); - if (!var$3 && $scale >= 0 && $scale < $java.jm_BigDecimal_ZERO_SCALED_BY.data.length) - return $java.jm_BigDecimal_ZERO_SCALED_BY.data[$scale]; - var$4 = new jm_BigDecimal; - var$4.$smallValue = $unscaledVal; - var$4.$scale1 = $scale; - if (var$3 < 0) - $unscaledVal = Long_xor($unscaledVal, Long_fromInt(-1)); - var$4.$bitLength = 64 - jl_Long_numberOfLeadingZeros($unscaledVal) | 0; - return var$4; -}; -function jm_BigDecimal_valueOf($unscaledVal) { - var var$2, var$3; - jm_BigDecimal_$callClinit(); - var$2 = Long_compare($unscaledVal, Long_ZERO); - if (var$2 >= 0 && Long_lt($unscaledVal, Long_fromInt(11))) - return $java.jm_BigDecimal_BI_SCALED_BY_ZERO.data[$unscaledVal.lo]; - var$3 = new jm_BigDecimal; - var$3.$smallValue = $unscaledVal; - var$3.$scale1 = 0; - if (var$2 < 0) - $unscaledVal = Long_xor($unscaledVal, Long_fromInt(-1)); - var$3.$bitLength = 64 - jl_Long_numberOfLeadingZeros($unscaledVal) | 0; - return var$3; -} -function jm_BigDecimal_multiply($this, $multiplicand) { - var $newScale, var$3, var$4, var$5; - $newScale = Long_add(Long_fromInt($this.$scale1), Long_fromInt($multiplicand.$scale1)); - var$3 = !$this.$bitLength && Long_ne($this.$smallValue, Long_fromInt(-1)) ? 1 : 0; - if (!var$3 && !(!$multiplicand.$bitLength && Long_ne($multiplicand.$smallValue, Long_fromInt(-1)) ? 1 : 0)) { - if (($this.$bitLength + $multiplicand.$bitLength | 0) < 64) - return $java.jm_BigDecimal_valueOf(Long_mul($this.$smallValue, $multiplicand.$smallValue), $java.jm_BigDecimal_toIntScale($newScale)); - var$4 = new jm_BigDecimal; - if ($this.$intVal === null) - $this.$intVal = jm_BigInteger_valueOf($this.$smallValue); - var$5 = $this.$intVal; - if ($multiplicand.$intVal === null) - $multiplicand.$intVal = jm_BigInteger_valueOf($multiplicand.$smallValue); - $multiplicand = $multiplicand.$intVal; - if (!$multiplicand.$sign1) - $multiplicand = jm_BigInteger_ZERO; - else if (!var$5.$sign1) - $multiplicand = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - $multiplicand = jm_Multiplication_karatsuba(var$5, $multiplicand); - } - var$3 = $java.jm_BigDecimal_toIntScale($newScale); - if ($multiplicand === null) { - $multiplicand = new jl_NullPointerException; - $multiplicand.$suppressionEnabled = 1; - $multiplicand.$writableStackTrace = 1; - $rt_throw($multiplicand); - } - var$4.$scale1 = var$3; - var$4.$intVal = $multiplicand; - var$4.$bitLength = $java.jm_BitLevel_bitLength($multiplicand); - if (var$4.$bitLength < 64) - var$4.$smallValue = $java.jm_BigInteger_longValue($multiplicand); - return var$4; - } - return $java.jm_BigDecimal_zeroScaledBy($newScale); -} -$java.jm_BigDecimal_signum = function($this) { - var var$1; - if ($this.$bitLength < 64) { - var$1 = $this.$smallValue; - return Long_or(Long_shr(var$1, 63), Long_shru(Long_neg(var$1), 63)).lo; - } - if ($this.$intVal === null) - $this.$intVal = jm_BigInteger_valueOf($this.$smallValue); - return $this.$intVal.$sign1; -}; -$java.jm_BigDecimal_scale = function($this) { - return $this.$scale1; -}; -function jm_BigDecimal_precision($this) { - var $bitLength, $doubleUnsc, var$3; - if ($this.$precision0 > 0) - return $this.$precision0; - $bitLength = $this.$bitLength; - $doubleUnsc = 1.0; - if ($bitLength >= 1024) { - var$3 = 1.0 + ($bitLength - 1 | 0) * 0.3010299956639812 | 0; - if ($this.$intVal === null) - $this.$intVal = jm_BigInteger_valueOf($this.$smallValue); - if (jm_BigInteger_divide($this.$intVal, $java.jm_Multiplication_powerOf10(Long_fromInt(var$3))).$sign1) - var$3 = var$3 + 1 | 0; - } else { - if ($bitLength >= 64) { - if ($this.$intVal === null) - $this.$intVal = jm_BigInteger_valueOf($this.$smallValue); - $doubleUnsc = $java.jm_Conversion_bigInteger2Double($this.$intVal); - } else if ($bitLength >= 1) - $doubleUnsc = Long_toNumber($this.$smallValue); - if ($doubleUnsc <= 0.0) - $doubleUnsc = -$doubleUnsc; - var$3 = 1.0 + jl_Math_log($doubleUnsc) / 2.302585092994046 | 0; - } - $this.$precision0 = var$3; - return $this.$precision0; -} -$java.jm_BigDecimal_unscaledValue = function($this) { - if ($this.$intVal === null) - $this.$intVal = jm_BigInteger_valueOf($this.$smallValue); - return $this.$intVal; -}; -function jm_BigDecimal_compareTo($this, $val) { - var var$2, $thisSign, $valueSign, $diffPrecision, $diffScale, var$7, $thisUnscaled, $valUnscaled; - if ($this.$bitLength < 64) { - var$2 = $this.$smallValue; - $thisSign = Long_or(Long_shr(var$2, 63), Long_shru(Long_neg(var$2), 63)).lo; - } else { - if ($this.$intVal === null) - $this.$intVal = jm_BigInteger_valueOf($this.$smallValue); - $thisSign = $this.$intVal.$sign1; - } - if ($val.$bitLength < 64) { - var$2 = $val.$smallValue; - $valueSign = Long_or(Long_shr(var$2, 63), Long_shru(Long_neg(var$2), 63)).lo; - } else { - if ($val.$intVal === null) - $val.$intVal = jm_BigInteger_valueOf($val.$smallValue); - $valueSign = $val.$intVal.$sign1; - } - $diffPrecision = $rt_compare($thisSign, $valueSign); - if ($diffPrecision) { - if ($diffPrecision >= 0) - return 1; - return (-1); - } - if ($this.$scale1 == $val.$scale1 && $this.$bitLength < 64 && $val.$bitLength < 64) - return Long_lt($this.$smallValue, $val.$smallValue) ? (-1) : Long_le($this.$smallValue, $val.$smallValue) ? 0 : 1; - $diffScale = Long_sub(Long_fromInt($this.$scale1), Long_fromInt($val.$scale1)); - var$7 = Long_fromInt(($this.$precision0 > 0 ? $this.$precision0 : (($this.$bitLength - 1 | 0) * 0.3010299956639812 | 0) + 1 | 0) - ($val.$precision0 > 0 ? $val.$precision0 : (($val.$bitLength - 1 | 0) * 0.3010299956639812 | 0) + 1 | 0) | 0); - if (Long_gt(var$7, Long_add($diffScale, Long_fromInt(1)))) - return $thisSign; - if (Long_lt(var$7, Long_sub($diffScale, Long_fromInt(1)))) - return -$thisSign; - if ($this.$intVal === null) - $this.$intVal = jm_BigInteger_valueOf($this.$smallValue); - $thisUnscaled = $this.$intVal; - if ($val.$intVal === null) - $val.$intVal = jm_BigInteger_valueOf($val.$smallValue); - $valUnscaled = $val.$intVal; - $thisSign = Long_compare($diffScale, Long_ZERO); - if ($thisSign < 0) { - $val = $java.jm_Multiplication_powerOf10(Long_neg($diffScale)); - $thisUnscaled = !$val.$sign1 ? jm_BigInteger_ZERO : !$thisUnscaled.$sign1 ? jm_BigInteger_ZERO : jm_Multiplication_karatsuba($thisUnscaled, $val); - } else if ($thisSign > 0) { - $val = $java.jm_Multiplication_powerOf10($diffScale); - $valUnscaled = !$val.$sign1 ? jm_BigInteger_ZERO : !$valUnscaled.$sign1 ? jm_BigInteger_ZERO : jm_Multiplication_karatsuba($valUnscaled, $val); - } - return jm_BigInteger_compareTo($thisUnscaled, $valUnscaled); -} -$java.jm_BigDecimal_toIntScale = function($longScale) { - var var$2; - jm_BigDecimal_$callClinit(); - if (Long_lt($longScale, Long_fromInt(-2147483648))) { - var$2 = new jl_ArithmeticException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(2453); - $rt_throw(var$2); - } - if (Long_le($longScale, Long_fromInt(2147483647))) - return $longScale.lo; - var$2 = new jl_ArithmeticException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(2454); - $rt_throw(var$2); -}; -$java.jm_BigDecimal_zeroScaledBy = function($longScale) { - var var$2, var$3; - jm_BigDecimal_$callClinit(); - var$2 = $longScale.lo; - if (Long_eq($longScale, Long_fromInt(var$2))) - return $java.jm_BigDecimal_valueOf(Long_ZERO, var$2); - if (Long_lt($longScale, Long_ZERO)) { - var$3 = new jm_BigDecimal; - var$3.$smallValue = Long_ZERO; - var$3.$scale1 = (-2147483648); - var$3.$bitLength = 32 - jl_Integer_numberOfLeadingZeros(0) | 0; - return var$3; - } - var$3 = new jm_BigDecimal; - var$3.$smallValue = Long_ZERO; - var$3.$scale1 = 2147483647; - var$3.$bitLength = 32 - jl_Integer_numberOfLeadingZeros(0) | 0; - return var$3; -}; -$java.jm_BigDecimal_bitLength = function($smallValue) { - jm_BigDecimal_$callClinit(); - if (Long_lt($smallValue, Long_ZERO)) - $smallValue = Long_xor($smallValue, Long_fromInt(-1)); - return 64 - jl_Long_numberOfLeadingZeros($smallValue) | 0; -}; -$java.jm_BigDecimal__clinit_ = function() { - var var$1, var$2, var$3, $i, $j; - var$1 = new jm_BigDecimal; - jm_BigDecimal_$callClinit(); - var$1.$smallValue = Long_ZERO; - var$1.$scale1 = 0; - var$1.$bitLength = 32 - jl_Integer_numberOfLeadingZeros(0) | 0; - jm_BigDecimal_ZERO = var$1; - var$1 = new jm_BigDecimal; - var$1.$smallValue = Long_fromInt(1); - var$1.$scale1 = 0; - var$1.$bitLength = 32 - jl_Integer_numberOfLeadingZeros(1) | 0; - $java.jm_BigDecimal_ONE = var$1; - $java.jm_BigDecimal_TEN = $java.jm_BigDecimal__init_(10, 0); - var$2 = $rt_createLongArray(19); - var$3 = var$2.data; - var$3[0] = Long_fromInt(1); - var$3[1] = Long_fromInt(10); - var$3[2] = Long_fromInt(100); - var$3[3] = Long_fromInt(1000); - var$3[4] = Long_fromInt(10000); - var$3[5] = Long_fromInt(100000); - var$3[6] = Long_fromInt(1000000); - var$3[7] = Long_fromInt(10000000); - var$3[8] = Long_fromInt(100000000); - var$3[9] = Long_fromInt(1000000000); - var$3[10] = new Long(1410065408, 2); - var$3[11] = new Long(1215752192, 23); - var$3[12] = new Long(3567587328, 232); - var$3[13] = new Long(1316134912, 2328); - var$3[14] = new Long(276447232, 23283); - var$3[15] = new Long(2764472320, 232830); - var$3[16] = new Long(1874919424, 2328306); - var$3[17] = new Long(1569325056, 23283064); - var$3[18] = new Long(2808348672, 232830643); - $java.jm_BigDecimal_LONG_TEN_POW = var$2; - var$2 = $rt_createLongArray(28); - var$3 = var$2.data; - var$3[0] = Long_fromInt(1); - var$3[1] = Long_fromInt(5); - var$3[2] = Long_fromInt(25); - var$3[3] = Long_fromInt(125); - var$3[4] = Long_fromInt(625); - var$3[5] = Long_fromInt(3125); - var$3[6] = Long_fromInt(15625); - var$3[7] = Long_fromInt(78125); - var$3[8] = Long_fromInt(390625); - var$3[9] = Long_fromInt(1953125); - var$3[10] = Long_fromInt(9765625); - var$3[11] = Long_fromInt(48828125); - var$3[12] = Long_fromInt(244140625); - var$3[13] = Long_fromInt(1220703125); - var$3[14] = new Long(1808548329, 1); - var$3[15] = new Long(452807053, 7); - var$3[16] = new Long(2264035265, 35); - var$3[17] = new Long(2730241733, 177); - var$3[18] = new Long(766306777, 888); - var$3[19] = new Long(3831533885, 4440); - var$3[20] = new Long(1977800241, 22204); - var$3[21] = new Long(1299066613, 111022); - var$3[22] = new Long(2200365769, 555111); - var$3[23] = new Long(2411894253, 2775557); - var$3[24] = new Long(3469536673, 13877787); - var$3[25] = new Long(167814181, 69388939); - var$3[26] = new Long(839070905, 346944695); - var$3[27] = new Long(4195354525, 1734723475); - $java.jm_BigDecimal_LONG_FIVE_POW = var$2; - $java.jm_BigDecimal_LONG_FIVE_POW_BIT_LENGTH = $rt_createIntArray($java.jm_BigDecimal_LONG_FIVE_POW.data.length); - $java.jm_BigDecimal_LONG_TEN_POW_BIT_LENGTH = $rt_createIntArray($java.jm_BigDecimal_LONG_TEN_POW.data.length); - $java.jm_BigDecimal_BI_SCALED_BY_ZERO = $rt_createArray(jm_BigDecimal, 11); - $java.jm_BigDecimal_ZERO_SCALED_BY = $rt_createArray(jm_BigDecimal, 11); - $java.jm_BigDecimal_CH_ZEROS = $rt_createCharArray(100); - $i = 0; - while ($i < $java.jm_BigDecimal_ZERO_SCALED_BY.data.length) { - $java.jm_BigDecimal_BI_SCALED_BY_ZERO.data[$i] = $java.jm_BigDecimal__init_($i, 0); - $java.jm_BigDecimal_ZERO_SCALED_BY.data[$i] = $java.jm_BigDecimal__init_(0, $i); - $java.jm_BigDecimal_CH_ZEROS.data[$i] = 48; - $i = $i + 1 | 0; - } - while ($i < $java.jm_BigDecimal_CH_ZEROS.data.length) { - $java.jm_BigDecimal_CH_ZEROS.data[$i] = 48; - $i = $i + 1 | 0; - } - $j = 0; - while ($j < $java.jm_BigDecimal_LONG_FIVE_POW_BIT_LENGTH.data.length) { - $java.jm_BigDecimal_LONG_FIVE_POW_BIT_LENGTH.data[$j] = $java.jm_BigDecimal_bitLength($java.jm_BigDecimal_LONG_FIVE_POW.data[$j]); - $j = $j + 1 | 0; - } - $j = 0; - while ($j < $java.jm_BigDecimal_LONG_TEN_POW_BIT_LENGTH.data.length) { - $java.jm_BigDecimal_LONG_TEN_POW_BIT_LENGTH.data[$j] = $java.jm_BigDecimal_bitLength($java.jm_BigDecimal_LONG_TEN_POW.data[$j]); - $j = $j + 1 | 0; - } - jm_Multiplication_$callClinit(); - $java.jm_BigDecimal_TEN_POW = $java.jm_Multiplication_bigTenPows; - $java.jm_BigDecimal_FIVE_POW = $java.jm_Multiplication_bigFivePows; -}; -function jm_BigInteger() { - var a = this; jl_Number.call(a); - a.$digits = null; - a.$numberLength = 0; - a.$sign1 = 0; - a.$firstNonzeroDigit = 0; -} -var jm_BigInteger_ZERO = null; -var jm_BigInteger_ONE = null; -var jm_BigInteger_TEN = null; -$java.jm_BigInteger_MINUS_ONE = null; -$java.jm_BigInteger_SMALL_VALUES = null; -$java.jm_BigInteger_TWO_POWS = null; -$java.jm_BigInteger__init_ = function(var_0, var_1) { - var var_2 = new jm_BigInteger(); - $java.jm_BigInteger__init_0(var_2, var_0, var_1); - return var_2; -}; -$java.jm_BigInteger__init_1 = function(var_0, var_1) { - var var_2 = new jm_BigInteger(); - $java.jm_BigInteger__init_2(var_2, var_0, var_1); - return var_2; -}; -$java.jm_BigInteger__init_0 = function($this, $sign, $val) { - var var$3, var$4; - $this.$firstNonzeroDigit = (-2); - $this.$sign1 = $sign; - if (Long_eq(Long_and($val, new Long(0, 4294967295)), Long_ZERO)) { - $this.$numberLength = 1; - var$3 = $rt_createIntArray(1); - var$3.data[0] = $val.lo; - $this.$digits = var$3; - } else { - $this.$numberLength = 2; - var$3 = $rt_createIntArray(2); - var$4 = var$3.data; - var$4[0] = $val.lo; - var$4[1] = $val.hi; - $this.$digits = var$3; - } -}; -$java.jm_BigInteger__init_2 = function($this, $signum, $digits) { - var var$3, var$4; - var$3 = $digits.data; - $this.$firstNonzeroDigit = (-2); - var$4 = var$3.length; - if (var$4) { - $this.$sign1 = $signum; - $this.$numberLength = var$4; - $this.$digits = $digits; - $java.jm_BigInteger_cutOffLeadingZeroes($this); - } else { - $this.$sign1 = 0; - $this.$numberLength = 1; - $digits = $rt_createIntArray(1); - $digits.data[0] = 0; - $this.$digits = $digits; - } -}; -function jm_BigInteger_valueOf($val) { - if (Long_lt($val, Long_ZERO)) { - if (Long_eq($val, Long_fromInt(-1))) - return $java.jm_BigInteger_MINUS_ONE; - return $java.jm_BigInteger__init_((-1), Long_neg($val)); - } - if (Long_gt($val, Long_fromInt(10))) - return $java.jm_BigInteger__init_(1, $val); - return $java.jm_BigInteger_SMALL_VALUES.data[$val.lo]; -} -$java.jm_BigInteger_abs = function($this) { - var var$1, var$2, var$3; - if ($this.$sign1 < 0) { - var$1 = new jm_BigInteger; - var$2 = $this.$numberLength; - var$3 = $this.$digits; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = var$2; - var$1.$digits = var$3; - $this = var$1; - } - return $this; -}; -$java.jm_BigInteger_negate = function($this) { - var var$1, var$2, var$3, var$4; - if (!$this.$sign1) - var$1 = $this; - else { - var$1 = new jm_BigInteger; - var$2 = -$this.$sign1; - var$3 = $this.$numberLength; - var$4 = $this.$digits; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = var$2; - var$1.$numberLength = var$3; - var$1.$digits = var$4; - } - return var$1; -}; -function jm_BigInteger_add($this, $val) { - return jm_Elementary_add($this, $val); -} -function jm_BigInteger_subtract($this, $val) { - return $java.jm_Elementary_subtract($this, $val); -} -$java.jm_BigInteger_signum = function($this) { - return $this.$sign1; -}; -$java.jm_BigInteger_shiftRight = function($this, $n) { - if ($n && $this.$sign1) - return $n > 0 ? $java.jm_BitLevel_shiftRight($this, $n) : $java.jm_BitLevel_shiftLeft($this, -$n); - return $this; -}; -$java.jm_BigInteger_shiftLeft = function($this, $n) { - if ($n && $this.$sign1) - return $n > 0 ? $java.jm_BitLevel_shiftLeft($this, $n) : $java.jm_BitLevel_shiftRight($this, -$n); - return $this; -}; -$java.jm_BigInteger_bitLength = function($this) { - return $java.jm_BitLevel_bitLength($this); -}; -$java.jm_BigInteger_testBit = function($this, $n) { - var var$2, $intCount, $digit, $firstNonZeroDigit; - if (!$n) - return !($this.$digits.data[0] & 1) ? 0 : 1; - if ($n < 0) { - var$2 = new jl_ArithmeticException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(2455); - $rt_throw(var$2); - } - $intCount = $n >> 5; - if ($intCount >= $this.$numberLength) - return $this.$sign1 >= 0 ? 0 : 1; - $digit = $this.$digits.data[$intCount]; - $n = 1 << ($n & 31); - if ($this.$sign1 < 0) { - $firstNonZeroDigit = $java.jm_BigInteger_getFirstNonzeroDigit($this); - if ($intCount < $firstNonZeroDigit) - return 0; - $digit = $firstNonZeroDigit == $intCount ? -$digit : $digit ^ (-1); - } - return !($digit & $n) ? 0 : 1; -}; -function jm_BigInteger_intValue($this) { - return $rt_imul($this.$sign1, $this.$digits.data[0]); -} -$java.jm_BigInteger_longValue = function($this) { - var $value; - $value = $this.$numberLength <= 1 ? Long_and(Long_fromInt($this.$digits.data[0]), new Long(4294967295, 0)) : Long_or(Long_shl(Long_fromInt($this.$digits.data[1]), 32), Long_and(Long_fromInt($this.$digits.data[0]), new Long(4294967295, 0))); - return Long_mul(Long_fromInt($this.$sign1), $value); -}; -$java.jm_BigInteger_doubleValue = function($this) { - return $java.jm_Conversion_bigInteger2Double($this); -}; -function jm_BigInteger_compareTo($this, $val) { - if ($this.$sign1 > $val.$sign1) - return 1; - if ($this.$sign1 < $val.$sign1) - return (-1); - if ($this.$numberLength > $val.$numberLength) - return $this.$sign1; - if ($this.$numberLength < $val.$numberLength) - return -$val.$sign1; - return $rt_imul($this.$sign1, $java.jm_Elementary_compareArrays($this.$digits, $val.$digits, $this.$numberLength)); -} -function jm_BigInteger_equals($this, $x) { - var $x1; - if ($this === $x) - return 1; - if (!($x instanceof jm_BigInteger)) - return 0; - $x1 = $x; - return $this.$sign1 == $x1.$sign1 && $this.$numberLength == $x1.$numberLength && $java.jm_BigInteger_equalsArrays($this, $x1.$digits) ? 1 : 0; -} -$java.jm_BigInteger_equalsArrays = function($this, $b) { - var $i, var$3; - $i = $this.$numberLength - 1 | 0; - while ($i >= 0) { - var$3 = $b.data; - if ($this.$digits.data[$i] != var$3[$i]) - break; - $i = $i + (-1) | 0; - } - return $i >= 0 ? 0 : 1; -}; -function jm_BigInteger_multiply($this, $val) { - if (!$val.$sign1) - return jm_BigInteger_ZERO; - if (!$this.$sign1) - return jm_BigInteger_ZERO; - jm_Multiplication_$callClinit(); - return jm_Multiplication_karatsuba($this, $val); -} -$java.jm_BigInteger_pow = function($this, $exp) { - var var$2, $x, var$4; - if ($exp < 0) { - var$2 = new jl_ArithmeticException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(2456); - $rt_throw(var$2); - } - if (!$exp) - return jm_BigInteger_ONE; - if ($exp != 1 && !jm_BigInteger_equals($this, jm_BigInteger_ONE) && !jm_BigInteger_equals($this, jm_BigInteger_ZERO)) { - if ($java.jm_BigInteger_testBit($this, 0)) - return $java.jm_Multiplication_pow($this, $exp); - $x = 1; - while (!$java.jm_BigInteger_testBit($this, $x)) { - $x = $x + 1 | 0; - } - var$2 = $java.jm_BigInteger_getPowerOfTwo($rt_imul($x, $exp)); - if ($x && $this.$sign1) - $this = $x > 0 ? $java.jm_BitLevel_shiftRight($this, $x) : $java.jm_BitLevel_shiftLeft($this, -$x); - var$4 = $java.jm_BigInteger_pow($this, $exp); - if (!var$4.$sign1) - var$2 = jm_BigInteger_ZERO; - else if (!var$2.$sign1) - var$2 = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - var$2 = jm_Multiplication_karatsuba(var$2, var$4); - } - return var$2; - } - return $this; -}; -function jm_BigInteger_divideAndRemainder($this, $divisor) { - var $divisorSign, $divisorLen, $divisorDigits, $thisDigits, $thisLen, $cmp, $thisSign, $quotientLength, $quotientSign, $quotientDigits, $remainderDigits, $result0, $result1; - $divisorSign = $divisor.$sign1; - if (!$divisorSign) { - $divisor = new jl_ArithmeticException; - $divisor.$suppressionEnabled = 1; - $divisor.$writableStackTrace = 1; - $divisor.$message = $rt_s(2457); - $rt_throw($divisor); - } - $divisorLen = $divisor.$numberLength; - $divisorDigits = $divisor.$digits; - if ($divisorLen == 1) - return $java.jm_Division_divideAndRemainderByInteger($this, $divisorDigits.data[0], $divisorSign); - $thisDigits = $this.$digits; - $thisLen = $this.$numberLength; - $cmp = $rt_compare($thisLen, $divisorLen); - if ((!$cmp ? $java.jm_Elementary_compareArrays($thisDigits, $divisorDigits, $thisLen) : $cmp <= 0 ? (-1) : 1) < 0) { - $divisorDigits = $rt_createArray(jm_BigInteger, 2); - $thisDigits = $divisorDigits.data; - $thisDigits[0] = jm_BigInteger_ZERO; - $thisDigits[1] = $this; - return $divisorDigits; - } - $thisSign = $this.$sign1; - $quotientLength = ($thisLen - $divisorLen | 0) + 1 | 0; - $quotientSign = $thisSign != $divisorSign ? (-1) : 1; - $quotientDigits = $rt_createIntArray($quotientLength); - $remainderDigits = $java.jm_Division_divide($quotientDigits, $quotientLength, $thisDigits, $thisLen, $divisorDigits, $divisorLen); - $result0 = new jm_BigInteger; - $result0.$firstNonzeroDigit = (-2); - $result0.$sign1 = $quotientSign; - $result0.$numberLength = $quotientLength; - $result0.$digits = $quotientDigits; - $result1 = new jm_BigInteger; - $result1.$firstNonzeroDigit = (-2); - $result1.$sign1 = $thisSign; - $result1.$numberLength = $divisorLen; - $result1.$digits = $remainderDigits; - $java.jm_BigInteger_cutOffLeadingZeroes($result0); - $java.jm_BigInteger_cutOffLeadingZeroes($result1); - $divisorDigits = $rt_createArray(jm_BigInteger, 2); - $thisDigits = $divisorDigits.data; - $thisDigits[0] = $result0; - $thisDigits[1] = $result1; - return $divisorDigits; -} -function jm_BigInteger_divide($this, $divisor) { - var $divisorSign, $thisSign, var$4, $thisLen, $divisorLen, $val, $resSign, $cmp, $resLength, $resDigits, $result; - if (!$divisor.$sign1) { - $divisor = new jl_ArithmeticException; - $divisor.$suppressionEnabled = 1; - $divisor.$writableStackTrace = 1; - $divisor.$message = $rt_s(2457); - $rt_throw($divisor); - } - $divisorSign = $divisor.$sign1; - if ($java.jm_BigInteger_isOne($divisor)) { - if ($divisor.$sign1 <= 0) { - if (!$this.$sign1) - $divisor = $this; - else { - $divisor = new jm_BigInteger; - $divisorSign = -$this.$sign1; - $thisSign = $this.$numberLength; - var$4 = $this.$digits; - $divisor.$firstNonzeroDigit = (-2); - $divisor.$sign1 = $divisorSign; - $divisor.$numberLength = $thisSign; - $divisor.$digits = var$4; - } - $this = $divisor; - } - return $this; - } - $thisSign = $this.$sign1; - $thisLen = $this.$numberLength; - $divisorLen = $divisor.$numberLength; - if (($thisLen + $divisorLen | 0) == 2) { - $val = Long_div(Long_and(Long_fromInt($this.$digits.data[0]), new Long(4294967295, 0)), Long_and(Long_fromInt($divisor.$digits.data[0]), new Long(4294967295, 0))); - if ($thisSign != $divisorSign) - $val = Long_neg($val); - return jm_BigInteger_valueOf($val); - } - $resSign = $rt_compare($thisLen, $divisorLen); - $cmp = !$resSign ? $java.jm_Elementary_compareArrays($this.$digits, $divisor.$digits, $thisLen) : $resSign <= 0 ? (-1) : 1; - if (!$cmp) - return $thisSign != $divisorSign ? $java.jm_BigInteger_MINUS_ONE : jm_BigInteger_ONE; - if ($cmp == (-1)) - return jm_BigInteger_ZERO; - $resLength = ($thisLen - $divisorLen | 0) + 1 | 0; - $resDigits = $rt_createIntArray($resLength); - $resSign = $thisSign != $divisorSign ? (-1) : 1; - if ($divisorLen != 1) - $java.jm_Division_divide($resDigits, $resLength, $this.$digits, $thisLen, $divisor.$digits, $divisorLen); - else - $java.jm_Division_divideArrayByInt($resDigits, $this.$digits, $thisLen, $divisor.$digits.data[0]); - $result = new jm_BigInteger; - $result.$firstNonzeroDigit = (-2); - $result.$sign1 = $resSign; - $result.$numberLength = $resLength; - $result.$digits = $resDigits; - $java.jm_BigInteger_cutOffLeadingZeroes($result); - return $result; -} -function jm_BigInteger_remainder($this, $divisor) { - var $thisLen, $divisorLen, $qLen, $resDigits, $result; - if (!$divisor.$sign1) { - $divisor = new jl_ArithmeticException; - $divisor.$suppressionEnabled = 1; - $divisor.$writableStackTrace = 1; - $divisor.$message = $rt_s(2457); - $rt_throw($divisor); - } - $thisLen = $this.$numberLength; - $divisorLen = $divisor.$numberLength; - $qLen = $rt_compare($thisLen, $divisorLen); - if ((!$qLen ? $java.jm_Elementary_compareArrays($this.$digits, $divisor.$digits, $thisLen) : $qLen <= 0 ? (-1) : 1) == (-1)) - return $this; - $resDigits = $rt_createIntArray($divisorLen); - if ($divisorLen != 1) - $resDigits = $java.jm_Division_divide(null, ($thisLen - $divisorLen | 0) + 1 | 0, $this.$digits, $thisLen, $divisor.$digits, $divisorLen); - else - $resDigits.data[0] = $java.jm_Division_remainderArrayByInt($this.$digits, $thisLen, $divisor.$digits.data[0]); - $result = new jm_BigInteger; - $thisLen = $this.$sign1; - $result.$firstNonzeroDigit = (-2); - $result.$sign1 = $thisLen; - $result.$numberLength = $divisorLen; - $result.$digits = $resDigits; - $java.jm_BigInteger_cutOffLeadingZeroes($result); - return $result; -} -$java.jm_BigInteger_cutOffLeadingZeroes = function($this) { - var var$1, var$2, var$3; - while ($this.$numberLength > 0) { - var$1 = $this.$digits.data; - var$2 = $this.$numberLength - 1 | 0; - $this.$numberLength = var$2; - if (var$1[var$2]) - break; - } - var$1 = $this.$digits.data; - var$3 = $this.$numberLength; - $this.$numberLength = var$3 + 1 | 0; - if (!var$1[var$3]) - $this.$sign1 = 0; -}; -$java.jm_BigInteger_isOne = function($this) { - return $this.$numberLength == 1 && $this.$digits.data[0] == 1 ? 1 : 0; -}; -$java.jm_BigInteger_getFirstNonzeroDigit = function($this) { - var $i; - if ($this.$firstNonzeroDigit == (-2)) { - if (!$this.$sign1) - $i = (-1); - else { - $i = 0; - while (!$this.$digits.data[$i]) { - $i = $i + 1 | 0; - } - } - $this.$firstNonzeroDigit = $i; - } - return $this.$firstNonzeroDigit; -}; -$java.jm_BigInteger_getPowerOfTwo = function($exp) { - var $intCount, $bitN, var$4, $resDigits, var$6; - if ($exp < $java.jm_BigInteger_TWO_POWS.data.length) - return $java.jm_BigInteger_TWO_POWS.data[$exp]; - $intCount = $exp >> 5; - $bitN = $exp & 31; - var$4 = $intCount + 1 | 0; - $resDigits = $rt_createIntArray(var$4); - $resDigits.data[$intCount] = 1 << $bitN; - var$6 = new jm_BigInteger; - var$6.$firstNonzeroDigit = (-2); - var$6.$sign1 = 1; - var$6.$numberLength = var$4; - var$6.$digits = $resDigits; - return var$6; -}; -function jm_BigInteger__clinit_() { - var var$1, var$2, var$3, var$4, var$5, $i; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 0; - var$1.$numberLength = 1; - var$2 = $rt_createIntArray(1); - var$2.data[0] = 0; - var$1.$digits = var$2; - jm_BigInteger_ZERO = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$2 = $rt_createIntArray(1); - var$2.data[0] = 1; - var$1.$digits = var$2; - jm_BigInteger_ONE = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$2 = $rt_createIntArray(1); - var$2.data[0] = 10; - var$1.$digits = var$2; - jm_BigInteger_TEN = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = (-1); - var$1.$numberLength = 1; - var$2 = $rt_createIntArray(1); - var$2.data[0] = 1; - var$1.$digits = var$2; - $java.jm_BigInteger_MINUS_ONE = var$1; - var$2 = $rt_createArray(jm_BigInteger, 11); - var$3 = var$2.data; - var$3[0] = jm_BigInteger_ZERO; - var$3[1] = jm_BigInteger_ONE; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$4 = $rt_createIntArray(1); - var$4.data[0] = 2; - var$1.$digits = var$4; - var$3[2] = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$4 = $rt_createIntArray(1); - var$4.data[0] = 3; - var$1.$digits = var$4; - var$3[3] = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$4 = $rt_createIntArray(1); - var$4.data[0] = 4; - var$1.$digits = var$4; - var$3[4] = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$5 = $rt_createIntArray(1); - var$5.data[0] = 5; - var$1.$digits = var$5; - var$3[5] = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$4 = $rt_createIntArray(1); - var$4.data[0] = 6; - var$1.$digits = var$4; - var$3[6] = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$4 = $rt_createIntArray(1); - var$4.data[0] = 7; - var$1.$digits = var$4; - var$3[7] = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$4 = $rt_createIntArray(1); - var$4.data[0] = 8; - var$1.$digits = var$4; - var$3[8] = var$1; - var$1 = new jm_BigInteger; - var$1.$firstNonzeroDigit = (-2); - var$1.$sign1 = 1; - var$1.$numberLength = 1; - var$4 = $rt_createIntArray(1); - var$4.data[0] = 9; - var$1.$digits = var$4; - var$3[9] = var$1; - var$3[10] = jm_BigInteger_TEN; - $java.jm_BigInteger_SMALL_VALUES = var$2; - $java.jm_BigInteger_TWO_POWS = $rt_createArray(jm_BigInteger, 32); - $i = 0; - while ($i < $java.jm_BigInteger_TWO_POWS.data.length) { - $java.jm_BigInteger_TWO_POWS.data[$i] = jm_BigInteger_valueOf(Long_shl(Long_fromInt(1), $i)); - $i = $i + 1 | 0; - } -} -$java.nms_PositionTextureVertex = function() { - var a = this; jl_Object.call(a); - a.$vector3D = null; - a.$texturePositionX = 0.0; - a.$texturePositionY = 0.0; -}; -$java.nms_PositionTextureVertex__init_0 = function(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new $java.nms_PositionTextureVertex(); - $java.nms_PositionTextureVertex__init_1(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -}; -$java.nms_PositionTextureVertex__init_ = function(var_0, var_1, var_2) { - var var_3 = new $java.nms_PositionTextureVertex(); - $java.nms_PositionTextureVertex__init_2(var_3, var_0, var_1, var_2); - return var_3; -}; -$java.nms_PositionTextureVertex__init_1 = function($this, $par1, $par2, $par3, $par4, $par5) { - var var$6, var$7, var$8; - var$6 = $par1; - var$7 = $par2; - var$8 = $par3; - $this.$vector3D = nms_Vec3__init_($java.nms_Vec3_fakePool, var$6, var$7, var$8); - $this.$texturePositionX = $par4; - $this.$texturePositionY = $par5; -}; -$java.nms_PositionTextureVertex_setTexturePosition = function($this, $par1, $par2) { - var var$3; - var$3 = new $java.nms_PositionTextureVertex; - var$3.$vector3D = $this.$vector3D; - var$3.$texturePositionX = $par1; - var$3.$texturePositionY = $par2; - return var$3; -}; -$java.nms_PositionTextureVertex__init_2 = function($this, $par1Vec3, $par2, $par3) { - $this.$vector3D = $par1Vec3; - $this.$texturePositionX = $par2; - $this.$texturePositionY = $par3; -}; -function nms_TexturedQuad() { - var a = this; jl_Object.call(a); - a.$vertexPositions0 = null; - a.$nVertices = 0; - a.$invertNormal = 0; -} -$java.nms_TexturedQuad__init_0 = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_TexturedQuad(); - $java.nms_TexturedQuad__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -}; -$java.nms_TexturedQuad__init_ = function($this, $par1ArrayOfPositionTextureVertex, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, $var8, $var9, var$11, var$12, var$13, var$14; - var$8 = $par1ArrayOfPositionTextureVertex.data; - $this.$nVertices = 0; - $this.$invertNormal = 0; - $this.$vertexPositions0 = $par1ArrayOfPositionTextureVertex; - $this.$nVertices = var$8.length; - $var8 = 0.0 / $par6; - $var9 = 0.0 / $par7; - var$11 = var$8[0]; - var$12 = $par4 / $par6 - $var8; - var$13 = $par3 / $par7 + $var9; - var$14 = new $java.nms_PositionTextureVertex; - var$14.$vector3D = var$11.$vector3D; - var$14.$texturePositionX = var$12; - var$14.$texturePositionY = var$13; - var$8[0] = var$14; - var$11 = var$8[1]; - $par6 = $par2 / $par6 + $var8; - var$14 = new $java.nms_PositionTextureVertex; - var$14.$vector3D = var$11.$vector3D; - var$14.$texturePositionX = $par6; - var$14.$texturePositionY = var$13; - var$8[1] = var$14; - var$14 = var$8[2]; - $par7 = $par5 / $par7 - $var9; - var$11 = new $java.nms_PositionTextureVertex; - var$11.$vector3D = var$14.$vector3D; - var$11.$texturePositionX = $par6; - var$11.$texturePositionY = $par7; - var$8[2] = var$11; - var$14 = var$8[3]; - var$11 = new $java.nms_PositionTextureVertex; - var$11.$vector3D = var$14.$vector3D; - var$11.$texturePositionX = var$12; - var$11.$texturePositionY = $par7; - var$8[3] = var$11; -}; -$java.nms_TexturedQuad_flipFace = function($this) { - var $var1, var$2, $var2; - $var1 = $rt_createArray($java.nms_PositionTextureVertex, $this.$vertexPositions0.data.length); - var$2 = $var1.data; - $var2 = 0; - while ($var2 < $this.$vertexPositions0.data.length) { - var$2[$var2] = $this.$vertexPositions0.data[($this.$vertexPositions0.data.length - $var2 | 0) - 1 | 0]; - $var2 = $var2 + 1 | 0; - } - $this.$vertexPositions0 = $var1; -}; -function nms_TexturedQuad_draw($this, $par1Tessellator, $par2) { - var $var5, $var7, $var3, $var6, var$7, var$8, var$9, var$10, var$11; - $var5 = $this.$vertexPositions0.data[1].$vector3D; - $var7 = $this.$vertexPositions0.data[0].$vector3D; - $var3 = nms_Vec3Pool_getVecFromPool($var5.$myVec3LocalPool, $var7.$xCoord - $var5.$xCoord, $var7.$yCoord - $var5.$yCoord, $var7.$zCoord - $var5.$zCoord); - $var5 = $this.$vertexPositions0.data[1].$vector3D; - $var7 = $this.$vertexPositions0.data[2].$vector3D; - $var5 = nms_Vec3_normalize($java.nms_Vec3_crossProduct(nms_Vec3Pool_getVecFromPool($var5.$myVec3LocalPool, $var7.$xCoord - $var5.$xCoord, $var7.$yCoord - $var5.$yCoord, $var7.$zCoord - $var5.$zCoord), $var3)); - nlea_Tessellator_startDrawing($par1Tessellator, 98); - if (!$this.$invertNormal) - nlea_Tessellator_setNormal($par1Tessellator, $var5.$xCoord, $var5.$yCoord, $var5.$zCoord); - else - nlea_Tessellator_setNormal($par1Tessellator, -$var5.$xCoord, -$var5.$yCoord, -$var5.$zCoord); - $var6 = 0; - while ($var6 < 4) { - $var7 = $this.$vertexPositions0.data[$var6]; - var$7 = $var7.$vector3D.$xCoord * $par2; - var$8 = $var7.$vector3D.$yCoord * $par2; - var$9 = $var7.$vector3D.$zCoord * $par2; - var$10 = $var7.$texturePositionX; - var$11 = $var7.$texturePositionY; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = var$10; - $par1Tessellator.$textureV = var$11; - nlea_Tessellator_addVertex($par1Tessellator, var$7, var$8, var$9); - $var6 = $var6 + 1 | 0; - } - nlea_Tessellator_draw($par1Tessellator); -} -function nms_AchievementMap() { - jl_Object.call(this); - this.$guidMap = null; -} -var nms_AchievementMap_instance = null; -function nms_AchievementMap_$callClinit() { - nms_AchievementMap_$callClinit = $rt_eraseClinit(nms_AchievementMap); - $java.nms_AchievementMap__clinit_(); -} -$java.nms_AchievementMap__init_ = function() { - var var_0 = new nms_AchievementMap(); - nms_AchievementMap__init_(var_0); - return var_0; -}; -function nms_AchievementMap__init_($this) { - var var$1, var$2, var$3, $var3, $var4, $var5, var$7, $str, $$je; - nms_AchievementMap_$callClinit(); - $this.$guidMap = ju_HashMap__init_1(16, 0.75); - a: { - try { - var$1 = nlea_EaglerAdapterImpl2_fileContentsLines($rt_s(2458)).data; - var$2 = var$1.length; - var$3 = 0; - while (var$3 < var$2) { - $var3 = jl_String_split(var$1[var$3], $rt_s(267)).data; - $var4 = jl_Integer_parseInt0($var3[0]); - ju_HashMap_put($this.$guidMap, jl_Integer_valueOf($var4), $var3[1]); - var$3 = var$3 + 1 | 0; - } - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var5 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$7 = new ji_PrintStream; - var$7.$out = new jl_ConsoleOutputStreamStderr; - $str = new jl_StringBuilder; - $str.$buffer = $rt_createCharArray(16); - var$7.$sb = $str; - var$7.$buffer0 = $rt_createCharArray(32); - var$7.$autoFlush = 0; - $str = new jnci_UTF8Charset; - jnc_Charset__init_($str, $rt_s(2), $rt_createArray(jl_String, 0)); - var$7.$charset = $str; - jl_System_errCache = var$7; - } - jl_Throwable_printStackTrace0($var5, jl_System_errCache); - } -} -$java.nms_AchievementMap__clinit_ = function() { - nms_AchievementMap_instance = $java.nms_AchievementMap__init_(); -}; -$java.ju_AbstractMap$SimpleEntry = function() { - var a = this; jl_Object.call(a); - a.$key0 = null; - a.$value8 = null; -}; -$java.ju_AbstractMap$SimpleEntry_getValue = function($this) { - return $this.$value8; -}; -$java.ju_AbstractMap$SimpleEntry_setValue = function($this, $value) { - var $old; - $old = $this.$value8; - $this.$value8 = $value; - return $old; -}; -$java.ju_AbstractMap$SimpleEntry_getKey = function($this) { - return $this.$key0; -}; -$java.ju_AbstractMap$SimpleEntry_equals = function($this, $obj) { - var $other; - if (!$rt_isInstance($obj, ju_Map$Entry)) - return 0; - a: { - $other = $obj; - if ($this.$key0 === null) { - if ($other.$getKey() === null) - break a; - } else if (jl_String_equals($this.$key0, $other.$getKey())) - break a; - return 0; - } - return $this.$value8 !== null ? $this.$value8.$equals($other.$getValue()) : $other.$getValue() !== null ? 0 : 1; -}; -$java.ju_AbstractMap$SimpleEntry_hashCode = function($this) { - return ($this.$key0 === null ? 0 : jl_String_hashCode($this.$key0)) ^ ($this.$value8 === null ? 0 : $this.$value8.$hashCode0()); -}; -$java.ju_AbstractMap$SimpleEntry_toString = function($this) { - var var$1, var$2; - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - var$2 = $this.$key0; - var$2 = var$2 === null ? $rt_s(47) : var$2; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(492)); - var$2 = $this.$value8; - var$2 = var$2 === null ? $rt_s(47) : var$2.$toString(); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function ju_TreeMap$TreeNode() { - var a = this; $java.ju_AbstractMap$SimpleEntry.call(a); - a.$left0 = null; - a.$right = null; - a.$height3 = 0; - a.$size4 = 0; -} -function ju_TreeMap$TreeNode_balance($this) { - var $factor, var$2, var$3; - $factor = $java.ju_TreeMap$TreeNode_factor($this); - if ($factor == 2) { - if ($java.ju_TreeMap$TreeNode_factor($this.$right) < 0) { - var$2 = $this.$right; - var$3 = var$2.$left0; - var$2.$left0 = var$3.$right; - var$3.$right = var$2; - ju_TreeMap$TreeNode_fix(var$2); - ju_TreeMap$TreeNode_fix(var$3); - $this.$right = var$3; - } - var$2 = $this.$right; - $this.$right = var$2.$left0; - var$2.$left0 = $this; - ju_TreeMap$TreeNode_fix($this); - ju_TreeMap$TreeNode_fix(var$2); - return var$2; - } - if ($factor != (-2)) - return $this; - if ($java.ju_TreeMap$TreeNode_factor($this.$left0) > 0) { - var$2 = $this.$left0; - var$3 = var$2.$right; - var$2.$right = var$3.$left0; - var$3.$left0 = var$2; - ju_TreeMap$TreeNode_fix(var$2); - ju_TreeMap$TreeNode_fix(var$3); - $this.$left0 = var$3; - } - var$2 = $this.$left0; - $this.$left0 = var$2.$right; - var$2.$right = $this; - ju_TreeMap$TreeNode_fix($this); - ju_TreeMap$TreeNode_fix(var$2); - return var$2; -} -$java.ju_TreeMap$TreeNode_factor = function($this) { - return ($this.$right === null ? 0 : $this.$right.$height3) - ($this.$left0 === null ? 0 : $this.$left0.$height3) | 0; -}; -$java.ju_TreeMap$TreeNode_rotateRight = function($this) { - var $left; - $left = $this.$left0; - $this.$left0 = $left.$right; - $left.$right = $this; - ju_TreeMap$TreeNode_fix($this); - ju_TreeMap$TreeNode_fix($left); - return $left; -}; -$java.ju_TreeMap$TreeNode_rotateLeft = function($this) { - var $right; - $right = $this.$right; - $this.$right = $right.$left0; - $right.$left0 = $this; - ju_TreeMap$TreeNode_fix($this); - ju_TreeMap$TreeNode_fix($right); - return $right; -}; -function ju_TreeMap$TreeNode_fix($this) { - var var$1, var$2; - var$1 = $this.$right === null ? 0 : $this.$right.$height3; - var$2 = $this.$left0 === null ? 0 : $this.$left0.$height3; - if (var$1 > var$2) - var$2 = var$1; - $this.$height3 = var$2 + 1 | 0; - $this.$size4 = 1; - if ($this.$left0 !== null) - $this.$size4 = $this.$size4 + $this.$left0.$size4 | 0; - if ($this.$right !== null) - $this.$size4 = $this.$size4 + $this.$right.$size4 | 0; -} -$java.ju_TreeMap$TreeNode_forward = function($this, $reverse) { - return $reverse ? $this.$right : $this.$left0; -}; -$java.ju_TreeMap$TreeNode_down = function($this, $reverse) { - return $reverse ? $this.$left0 : $this.$right; -}; -function ju_Objects() { - jl_Object.call(this); -} -$java.ju_Objects__init_ = function() { - var var_0 = new ju_Objects(); - ju_Objects__init_(var_0); - return var_0; -}; -function ju_Objects__init_($this) { - return; -} -function nlea_EaglerAdapterImpl2$AudioBufferX() { - jl_Object.call(this); - this.$buffer1 = null; -} -$java.nms_Slot = function() { - var a = this; jl_Object.call(a); - a.$slotIndex = 0; - a.$inventory0 = null; - a.$slotNumber = 0; - a.$xDisplayPosition = 0; - a.$yDisplayPosition = 0; -}; -$java.nms_Slot_onSlotChange = function($this, $par1ItemStack, $par2ItemStack) { - var $var3; - if ($par1ItemStack !== null && $par2ItemStack !== null && $par1ItemStack.$itemID0 == $par2ItemStack.$itemID0) { - $var3 = $par2ItemStack.$stackSize - $par1ItemStack.$stackSize | 0; - if ($var3 > 0) - $this.$onCrafting($par1ItemStack, $var3); - } -}; -$java.nms_Slot_onCrafting = function($this, $par1ItemStack, $par2) { - return; -}; -$java.nms_Slot_onPickupFromSlot = function($this, $par1EntityPlayer, $par2ItemStack) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2ItemStack = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $this.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2ItemStack, $ptr); -}; -$java.nms_Slot_isItemValid = function($this, $par1ItemStack) { - return 1; -}; -$java.nms_Slot_getStack = function($this) { - return $this.$inventory0.$getStackInSlot($this.$slotIndex); -}; -$java.nms_Slot_getHasStack = function($this) { - return $this.$getStack() === null ? 0 : 1; -}; -$java.nms_Slot_putStack = function($this, $par1ItemStack) { - 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();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$inventory0; - var$3 = $this.$slotIndex; - $ptr = 1; - case 1: - var$2.$setInventorySlotContents(var$3, $par1ItemStack); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - $this.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, var$2, var$3, $ptr); -}; -$java.nms_Slot_onSlotChanged = function($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: - var$1 = $this.$inventory0; - $ptr = 1; - case 1: - var$1.$onInventoryChanged(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -}; -$java.nms_Slot_getSlotStackLimit = function($this) { - return $this.$inventory0.$getInventoryStackLimit(); -}; -$java.nms_Slot_getBackgroundIconIndex = function($this) { - return null; -}; -$java.nms_Slot_decrStackSize = function($this, $par1) { - 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();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$inventory0; - var$3 = $this.$slotIndex; - $ptr = 1; - case 1: - $tmp = var$2.$decrStackSize(var$3, $par1); - if ($rt_suspending()) { - break main; - } - var$2 = $tmp; - return var$2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, var$3, $ptr); -}; -$java.nms_Slot_canTakeStack = function($this, $par1EntityPlayer) { - return 1; -}; -$java.nms_InventoryBasic = function() { - var a = this; jl_Object.call(a); - a.$inventoryTitle = null; - a.$slotsCount = 0; - a.$inventoryContents = null; - a.$field_70480_d = null; - a.$field_94051_e = 0; -}; -$java.nms_InventoryBasic_getStackInSlot = function($this, $par1) { - return $this.$inventoryContents.data[$par1]; -}; -$java.nms_InventoryBasic_decrStackSize = function($this, $par1, $par2) { - var $var3, $var3_0; - if ($this.$inventoryContents.data[$par1] === null) - return null; - if ($this.$inventoryContents.data[$par1].$stackSize <= $par2) { - $var3 = $this.$inventoryContents.data[$par1]; - $this.$inventoryContents.data[$par1] = null; - $this.$onInventoryChanged(); - return $var3; - } - $var3_0 = nms_ItemStack_splitStack($this.$inventoryContents.data[$par1], $par2); - if (!$this.$inventoryContents.data[$par1].$stackSize) - $this.$inventoryContents.data[$par1] = null; - $this.$onInventoryChanged(); - return $var3_0; -}; -$java.nms_InventoryBasic_getStackInSlotOnClosing = function($this, $par1) { - var $var2; - if ($this.$inventoryContents.data[$par1] === null) - return null; - $var2 = $this.$inventoryContents.data[$par1]; - $this.$inventoryContents.data[$par1] = null; - return $var2; -}; -$java.nms_InventoryBasic_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - $this.$inventoryContents.data[$par1] = $par2ItemStack; - if ($par2ItemStack !== null && $par2ItemStack.$stackSize > $this.$getInventoryStackLimit()) - $par2ItemStack.$stackSize = $this.$getInventoryStackLimit(); - $this.$onInventoryChanged(); -}; -$java.nms_InventoryBasic_getSizeInventory = function($this) { - return $this.$slotsCount; -}; -$java.nms_InventoryBasic_getInvName = function($this) { - return $this.$inventoryTitle; -}; -$java.nms_InventoryBasic_isInvNameLocalized = function($this) { - return $this.$field_94051_e; -}; -$java.nms_InventoryBasic_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_InventoryBasic_onInventoryChanged = function($this) { - var $var1; - a: { - if ($this.$field_70480_d !== null) { - $var1 = 0; - while (true) { - if ($var1 >= $this.$field_70480_d.$size2()) - break a; - $this.$field_70480_d.$get4($var1).$onInventoryChanged0($this); - $var1 = $var1 + 1 | 0; - } - } - } -}; -$java.nms_InventoryBasic_isUseableByPlayer = function($this, $par1EntityPlayer) { - return 1; -}; -$java.nms_InventoryBasic_openChest = function($this) { - return; -}; -$java.nms_InventoryBasic_closeChest = function($this) { - return; -}; -function nms_BiomeGenBase() { - var a = this; jl_Object.call(a); - a.$biomeName = null; - a.$color1 = 0; - a.$topBlock = 0; - a.$fillerBlock = 0; - a.$field_76754_C = 0; - a.$minHeight = 0.0; - a.$maxHeight = 0.0; - a.$temperature = 0.0; - a.$rainfall = 0.0; - a.$waterColorMultiplier = 0; - a.$spawnableMonsterList = null; - a.$spawnableCreatureList = null; - a.$spawnableWaterCreatureList = null; - a.$spawnableCaveCreatureList = null; - a.$enableSnow = 0; - a.$enableRain = 0; - a.$biomeID = 0; -} -$java.nms_BiomeGenBase_biomeList = null; -$java.nms_BiomeGenBase_ocean = null; -$java.nms_BiomeGenBase_plains = null; -$java.nms_BiomeGenBase_desert = null; -$java.nms_BiomeGenBase_extremeHills = null; -$java.nms_BiomeGenBase_forest = null; -$java.nms_BiomeGenBase_taiga = null; -$java.nms_BiomeGenBase_swampland = null; -$java.nms_BiomeGenBase_river = null; -var nms_BiomeGenBase_hell = null; -$java.nms_BiomeGenBase_sky = null; -$java.nms_BiomeGenBase_frozenOcean = null; -$java.nms_BiomeGenBase_frozenRiver = null; -$java.nms_BiomeGenBase_icePlains = null; -$java.nms_BiomeGenBase_iceMountains = null; -$java.nms_BiomeGenBase_mushroomIsland = null; -$java.nms_BiomeGenBase_mushroomIslandShore = null; -$java.nms_BiomeGenBase_beach = null; -$java.nms_BiomeGenBase_desertHills = null; -$java.nms_BiomeGenBase_forestHills = null; -$java.nms_BiomeGenBase_taigaHills = null; -$java.nms_BiomeGenBase_extremeHillsEdge = null; -$java.nms_BiomeGenBase_jungle = null; -$java.nms_BiomeGenBase_jungleHills = null; -$java.nms_BiomeGenBase__init_ = function(var_0) { - var var_1 = new nms_BiomeGenBase(); - $java.nms_BiomeGenBase__init_0(var_1, var_0); - return var_1; -}; -$java.nms_BiomeGenBase__init_0 = function($this, $par1) { - var var$2; - nms_Block_$callClinit(); - $this.$topBlock = nms_Block_grass.$blockID << 24 >> 24; - $this.$fillerBlock = nms_Block_dirt.$blockID << 24 >> 24; - $this.$field_76754_C = 5169201; - $this.$minHeight = 0.10000000149011612; - $this.$maxHeight = 0.30000001192092896; - $this.$temperature = 0.5; - $this.$rainfall = 0.5; - $this.$waterColorMultiplier = 16777215; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $this.$spawnableMonsterList = var$2; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $this.$spawnableCreatureList = var$2; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $this.$spawnableWaterCreatureList = var$2; - var$2 = new ju_ArrayList; - var$2.$array1 = $rt_createArray(jl_Object, 10); - $this.$spawnableCaveCreatureList = var$2; - $this.$enableRain = 1; - $this.$biomeID = $par1; - $java.nms_BiomeGenBase_biomeList.data[$par1] = $this; -}; -$java.nms_BiomeGenBase_setTemperatureRainfall = function($this, $par1, $par2) { - var var$3; - if ($par1 > 0.10000000149011612 && $par1 < 0.20000000298023224) { - var$3 = new jl_IllegalArgumentException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(2459); - $rt_throw(var$3); - } - $this.$temperature = $par1; - $this.$rainfall = $par2; - return $this; -}; -$java.nms_BiomeGenBase_setMinMaxHeight = function($this, $par1, $par2) { - $this.$minHeight = $par1; - $this.$maxHeight = $par2; - return $this; -}; -$java.nms_BiomeGenBase_setDisableRain = function($this) { - $this.$enableRain = 0; - return $this; -}; -$java.nms_BiomeGenBase_setEnableSnow = function($this) { - $this.$enableSnow = 1; - return $this; -}; -$java.nms_BiomeGenBase_setBiomeName = function($this, $par1Str) { - $this.$biomeName = $par1Str; - return $this; -}; -$java.nms_BiomeGenBase_func_76733_a = function($this, $par1) { - $this.$field_76754_C = $par1; - return $this; -}; -$java.nms_BiomeGenBase_setColor = function($this, $par1) { - $this.$color1 = $par1; - return $this; -}; -function nms_BiomeGenBase_getSkyColorByTemp($this, $par1) { - var var$2; - var$2 = $par1 / 3.0; - if (var$2 < (-1.0)) - var$2 = (-1.0); - if (var$2 > 1.0) - var$2 = 1.0; - return nms_BiomeGenBase_HSBtoRGB(0.6222222447395325 - var$2 * 0.05000000074505806, 0.5 + var$2 * 0.10000000149011612, 1.0); -} -function nms_BiomeGenBase_HSBtoRGB($hue, $saturation, $brightness) { - var $r, $g, $b, $h, $f, $p, $q, $t; - a: { - $r = 0; - $g = 0; - $b = 0; - if ($saturation === 0.0) { - $r = $brightness * 255.0 + 0.5 | 0; - $b = $r; - $g = $r; - } else { - $h = ($hue - jl_Math_floor($hue)) * 6.0; - $f = $h - jl_Math_floor($h); - $p = $brightness * (1.0 - $saturation); - $q = $brightness * (1.0 - $saturation * $f); - $t = $brightness * (1.0 - $saturation * (1.0 - $f)); - switch ($h | 0) { - case 0: - $r = $brightness * 255.0 + 0.5 | 0; - $g = $t * 255.0 + 0.5 | 0; - $b = $p * 255.0 + 0.5 | 0; - break a; - case 1: - $r = $q * 255.0 + 0.5 | 0; - $g = $brightness * 255.0 + 0.5 | 0; - $b = $p * 255.0 + 0.5 | 0; - break a; - case 2: - $r = $p * 255.0 + 0.5 | 0; - $g = $brightness * 255.0 + 0.5 | 0; - $b = $t * 255.0 + 0.5 | 0; - break a; - case 3: - $r = $p * 255.0 + 0.5 | 0; - $g = $q * 255.0 + 0.5 | 0; - $b = $brightness * 255.0 + 0.5 | 0; - break a; - case 4: - $r = $t * 255.0 + 0.5 | 0; - $g = $p * 255.0 + 0.5 | 0; - $b = $brightness * 255.0 + 0.5 | 0; - break a; - case 5: - $r = $brightness * 255.0 + 0.5 | 0; - $g = $p * 255.0 + 0.5 | 0; - $b = $q * 255.0 + 0.5 | 0; - break a; - default: - } - } - } - return (-16777216) | $r << 16 | $g << 8 | $b << 0; -} -function nms_BiomeGenBase_getEnableSnow($this) { - return $this.$enableSnow; -} -function nms_BiomeGenBase_canSpawnLightningBolt($this) { - return !$this.$enableSnow ? $this.$enableRain : 0; -} -$java.nms_BiomeGenBase_getFloatRainfall = function($this) { - return $this.$rainfall; -}; -function nms_BiomeGenBase_getFloatTemperature($this) { - return $this.$temperature; -} -function nms_BiomeGenBase_getBiomeGrassColor($this) { - var var$1, var$2, $var1, var$4; - if ($this.$biomeID == 6) - return 6975545; - var$1 = $this.$temperature; - var$2 = 0.0; - if (var$1 >= var$2) - var$2 = var$1 <= 1.0 ? var$1 : 1.0; - $var1 = var$2; - var$1 = $this.$rainfall; - var$4 = 0.0; - if (var$1 >= var$4) - var$4 = var$1 <= 1.0 ? var$1 : 1.0; - return nms_ColorizerGrass_getGrassColor($var1, var$4); -} -function nms_BiomeGenBase_getBiomeFoliageColor($this) { - var var$1, var$2, $var1, var$4; - if ($this.$biomeID == 6) - return 6975545; - var$1 = $this.$temperature; - var$2 = 0.0; - if (var$1 >= var$2) - var$2 = var$1 <= 1.0 ? var$1 : 1.0; - $var1 = var$2; - var$1 = $this.$rainfall; - var$4 = 0.0; - if (var$1 >= var$4) - var$4 = var$1 <= 1.0 ? var$1 : 1.0; - return nms_ColorizerFoliage_getFoliageColor($var1, var$4); -} -function nms_BiomeGenBase__clinit_() { - $java.nms_BiomeGenBase_biomeList = $rt_createArray(nms_BiomeGenBase, 256); - $java.nms_BiomeGenBase_ocean = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(0), 112), $rt_s(2460)), (-1.0), 0.4000000059604645); - $java.nms_BiomeGenBase_plains = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(1), 9286496), $rt_s(2461)), 0.800000011920929, 0.4000000059604645); - $java.nms_BiomeGenBase_desert = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setDisableRain($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(2), 16421912), $rt_s(2462))), 2.0, 0.0), 0.10000000149011612, 0.20000000298023224); - $java.nms_BiomeGenBase_extremeHills = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(3), 6316128), $rt_s(2463)), 0.30000001192092896, 1.5), 0.20000000298023224, 0.30000001192092896); - $java.nms_BiomeGenBase_forest = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_func_76733_a($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(4), 353825), $rt_s(2464)), 5159473), 0.699999988079071, 0.800000011920929); - $java.nms_BiomeGenBase_taiga = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setEnableSnow($java.nms_BiomeGenBase_func_76733_a($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(5), 747097), $rt_s(2465)), 5159473)), 0.05000000074505806, 0.800000011920929), 0.10000000149011612, 0.4000000059604645); - $java.nms_BiomeGenBase_swampland = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_func_76733_a($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(6), 522674), $rt_s(2466)), 9154376), (-0.20000000298023224), 0.10000000149011612), 0.800000011920929, 0.8999999761581421); - $java.nms_BiomeGenBase_river = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(7), 255), $rt_s(2467)), (-0.5), 0.0); - nms_BiomeGenBase_hell = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setDisableRain($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(8), 16711680), $rt_s(2468))), 2.0, 0.0); - $java.nms_BiomeGenBase_sky = $java.nms_BiomeGenBase_setDisableRain($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(9), 8421631), $rt_s(2469))); - $java.nms_BiomeGenBase_frozenOcean = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setEnableSnow($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(10), 9474208), $rt_s(2470))), (-1.0), 0.5), 0.0, 0.5); - $java.nms_BiomeGenBase_frozenRiver = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setEnableSnow($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(11), 10526975), $rt_s(2471))), (-0.5), 0.0), 0.0, 0.5); - $java.nms_BiomeGenBase_icePlains = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setEnableSnow($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(12), 16777215), $rt_s(2472))), 0.0, 0.5); - $java.nms_BiomeGenBase_iceMountains = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setEnableSnow($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(13), 10526880), $rt_s(2473))), 0.30000001192092896, 1.2999999523162842), 0.0, 0.5); - $java.nms_BiomeGenBase_mushroomIsland = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(14), 16711935), $rt_s(2474)), 0.8999999761581421, 1.0), 0.20000000298023224, 1.0); - $java.nms_BiomeGenBase_mushroomIslandShore = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(15), 10486015), $rt_s(2475)), 0.8999999761581421, 1.0), (-1.0), 0.10000000149011612); - $java.nms_BiomeGenBase_beach = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(16), 16440917), $rt_s(2476)), 0.800000011920929, 0.4000000059604645), 0.0, 0.10000000149011612); - $java.nms_BiomeGenBase_desertHills = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setDisableRain($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(17), 13786898), $rt_s(2477))), 2.0, 0.0), 0.30000001192092896, 0.800000011920929); - $java.nms_BiomeGenBase_forestHills = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_func_76733_a($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(18), 2250012), $rt_s(2478)), 5159473), 0.699999988079071, 0.800000011920929), 0.30000001192092896, 0.699999988079071); - $java.nms_BiomeGenBase_taigaHills = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_func_76733_a($java.nms_BiomeGenBase_setEnableSnow($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(19), 1456435), $rt_s(2479))), 5159473), 0.05000000074505806, 0.800000011920929), 0.30000001192092896, 0.800000011920929); - $java.nms_BiomeGenBase_extremeHillsEdge = $java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(20), 7501978), $rt_s(2480)), 0.20000000298023224, 0.800000011920929), 0.20000000298023224, 0.30000001192092896); - $java.nms_BiomeGenBase_jungle = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_func_76733_a($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(21), 5470985), $rt_s(2481)), 5470985), 1.2000000476837158, 0.8999999761581421), 0.20000000298023224, 0.4000000059604645); - $java.nms_BiomeGenBase_jungleHills = $java.nms_BiomeGenBase_setMinMaxHeight($java.nms_BiomeGenBase_setTemperatureRainfall($java.nms_BiomeGenBase_func_76733_a($java.nms_BiomeGenBase_setBiomeName($java.nms_BiomeGenBase_setColor($java.nms_BiomeGenBase__init_(22), 2900485), $rt_s(2482)), 5470985), 1.2000000476837158, 0.8999999761581421), 1.7999999523162842, 0.5); -} -function jt_DecimalFormat$1() { - jl_Object.call(this); -} -var jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode = null; -function jt_DecimalFormat$1_$callClinit() { - jt_DecimalFormat$1_$callClinit = $rt_eraseClinit(jt_DecimalFormat$1); - $java.jt_DecimalFormat$1__clinit_(); -} -$java.jt_DecimalFormat$1__clinit_ = function() { - var $$je; - jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode = $rt_createIntArray(jm_RoundingMode_$VALUES.$clone().data.length); - a: { - try { - jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[jl_Enum_ordinal(jm_RoundingMode_CEILING)] = 1; - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - b: { - try { - jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[jl_Enum_ordinal(jm_RoundingMode_FLOOR)] = 2; - break b; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - c: { - try { - jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[jl_Enum_ordinal(jm_RoundingMode_UP)] = 3; - break c; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - d: { - try { - jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[jl_Enum_ordinal(jm_RoundingMode_DOWN)] = 4; - break d; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - e: { - try { - jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[jl_Enum_ordinal(jm_RoundingMode_UNNECESSARY)] = 5; - break e; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - f: { - try { - jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[jl_Enum_ordinal(jm_RoundingMode_HALF_DOWN)] = 6; - break f; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - g: { - try { - jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[jl_Enum_ordinal(jm_RoundingMode_HALF_UP)] = 7; - break g; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - h: { - try { - jt_DecimalFormat$1_$SwitchMap$org$teavm$classlib$java$math$TRoundingMode.data[jl_Enum_ordinal(jm_RoundingMode_HALF_EVEN)] = 8; - break h; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } -}; -function jl_ArithmeticException() { - jl_RuntimeException.call(this); -} -$java.jl_ArithmeticException__init_ = function() { - var var_0 = new jl_ArithmeticException(); - jl_ArithmeticException__init_(var_0); - return var_0; -}; -function jl_ArithmeticException__init_0(var_0) { - var var_1 = new jl_ArithmeticException(); - $java.jl_ArithmeticException__init_0(var_1, var_0); - return var_1; -} -function jl_ArithmeticException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -$java.jl_ArithmeticException__init_0 = function($this, $message) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; - $this.$message = $message; -}; -function nms_PotionEffect() { - var a = this; jl_Object.call(a); - a.$potionID = 0; - a.$duration = 0; - a.$amplifier = 0; - a.$isSplashPotion = 0; - a.$isAmbient = 0; - a.$isPotionDurationMax = 0; -} -function nms_PotionEffect__init_(var_0, var_1, var_2) { - var var_3 = new nms_PotionEffect(); - $java.nms_PotionEffect__init_(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_PotionEffect__init_0(var_0, var_1, var_2, var_3) { - var var_4 = new nms_PotionEffect(); - $java.nms_PotionEffect__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.nms_PotionEffect__init_ = function($this, $par1, $par2, $par3) { - $this.$potionID = $par1; - $this.$duration = $par2; - $this.$amplifier = $par3; - $this.$isAmbient = 0; -}; -$java.nms_PotionEffect__init_0 = function($this, $par1, $par2, $par3, $par4) { - $this.$potionID = $par1; - $this.$duration = $par2; - $this.$amplifier = $par3; - $this.$isAmbient = $par4; -}; -function nms_PotionEffect_combine($this, $par1PotionEffect) { - var var$2, var$3, var$4, var$5; - if ($this.$potionID != $par1PotionEffect.$potionID) { - 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(2483)); - 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); - } - if ($par1PotionEffect.$amplifier > $this.$amplifier) { - $this.$amplifier = $par1PotionEffect.$amplifier; - $this.$duration = $par1PotionEffect.$duration; - } else if ($par1PotionEffect.$amplifier == $this.$amplifier && $this.$duration < $par1PotionEffect.$duration) - $this.$duration = $par1PotionEffect.$duration; - else if (!$par1PotionEffect.$isAmbient && $this.$isAmbient) - $this.$isAmbient = $par1PotionEffect.$isAmbient; -} -$java.nms_PotionEffect_getPotionID = function($this) { - return $this.$potionID; -}; -function nms_PotionEffect_getDuration($this) { - return $this.$duration; -} -function nms_PotionEffect_getAmplifier($this) { - return $this.$amplifier; -} -$java.nms_PotionEffect_setSplashPotion = function($this, $par1) { - $this.$isSplashPotion = $par1; -}; -$java.nms_PotionEffect_getIsAmbient = function($this) { - return $this.$isAmbient; -}; -function nms_PotionEffect_onUpdate($this, $par1EntityLiving) { - 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();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$duration > 0) { - if (nms_Potion_potionTypes.data[$this.$potionID].$isReady($this.$duration, $this.$amplifier) && $this.$duration > 0) { - var$2 = nms_Potion_potionTypes.data[$this.$potionID]; - var$3 = $this.$amplifier; - $ptr = 1; - continue main; - } - $this.$duration = $this.$duration - 1 | 0; - } - return $this.$duration <= 0 ? 0 : 1; - case 1: - nms_Potion_performEffect(var$2, $par1EntityLiving, var$3); - if ($rt_suspending()) { - break main; - } - $this.$duration = $this.$duration - 1 | 0; - return $this.$duration <= 0 ? 0 : 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, var$2, var$3, $ptr); -} -$java.nms_PotionEffect_performEffect = function($this, $par1EntityLiving) { - 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();$par1EntityLiving = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$duration <= 0) - return; - var$2 = nms_Potion_potionTypes.data[$this.$potionID]; - var$3 = $this.$amplifier; - $ptr = 1; - case 1: - nms_Potion_performEffect(var$2, $par1EntityLiving, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityLiving, var$2, var$3, $ptr); -}; -$java.nms_PotionEffect_getEffectName = function($this) { - return nms_Potion_potionTypes.data[$this.$potionID].$name7; -}; -$java.nms_PotionEffect_hashCode = function($this) { - return $this.$potionID; -}; -$java.nms_PotionEffect_toString = function($this) { - var var$1, var$2, var$3, var$4; - if ($this.$amplifier <= 0) { - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - var$2 = nms_Potion_potionTypes.data[$this.$potionID].$name7; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2484)); - var$3 = $this.$duration; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$3, 10); - var$2 = jl_String__init_0(var$1.$buffer, 0, var$1.$length); - } else { - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - var$2 = nms_Potion_potionTypes.data[$this.$potionID].$name7; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2485)); - var$4 = $this.$amplifier + 1 | 0; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$4, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2484)); - var$3 = $this.$duration; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$3, 10); - var$2 = jl_String__init_0(var$1.$buffer, 0, var$1.$length); - } - if ($this.$isSplashPotion) { - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2486)); - var$2 = jl_String__init_0(var$1.$buffer, 0, var$1.$length); - } - if (nms_Potion_potionTypes.data[$this.$potionID].$usable) { - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2437)); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(64)); - var$2 = jl_String__init_0(var$1.$buffer, 0, var$1.$length); - } - return var$2; -}; -$java.nms_PotionEffect_equals = function($this, $par1Obj) { - var $var2; - if (!($par1Obj instanceof nms_PotionEffect)) - return 0; - $var2 = $par1Obj; - return $this.$potionID == $var2.$potionID && $this.$amplifier == $var2.$amplifier && $this.$duration == $var2.$duration && $this.$isSplashPotion == $var2.$isSplashPotion && $this.$isAmbient == $var2.$isAmbient ? 1 : 0; -}; -$java.nms_PotionEffect_setPotionDurationMax = function($this, $par1) { - $this.$isPotionDurationMax = $par1; -}; -$java.nms_PotionEffect_getIsPotionDurationMax = function($this) { - return $this.$isPotionDurationMax; -}; -$java.otjw_DecodeSuccessCallback = function() { -}; -function nlea_EaglerAdapterImpl2$15() { - jl_Object.call(this); - this.$val$cb2 = null; -} -$java.nlea_EaglerAdapterImpl2$15_onSuccess = function($this, $decodedData) { - $this.$val$cb2.$realAsyncCallback.$complete($decodedData); -}; -$java.nlea_EaglerAdapterImpl2$15_onSuccess$exported$0 = function(var$0, var$1) { - var$1 = var$1; - var$0.$val$cb2.$realAsyncCallback.$complete(var$1); -}; -$java.otjw_DecodeErrorCallback = function() { -}; -function nlea_EaglerAdapterImpl2$16() { - jl_Object.call(this); - this.$val$cb3 = null; -} -$java.nlea_EaglerAdapterImpl2$16_onError = function($this, $error) { - var var$2; - var$2 = $this.$val$cb3; - $error = null; - var$2.$realAsyncCallback.$complete($error); -}; -$java.nlea_EaglerAdapterImpl2$16_onError$exported$0 = function(var$0, var$1) { - var var$2; - var$2 = var$0.$val$cb3; - var$1 = null; - var$2.$realAsyncCallback.$complete(var$1); -}; -function jm_Multiplication() { - jl_Object.call(this); -} -$java.jm_Multiplication_tenPows = null; -$java.jm_Multiplication_fivePows = null; -$java.jm_Multiplication_bigTenPows = null; -$java.jm_Multiplication_bigFivePows = null; -function jm_Multiplication_$callClinit() { - jm_Multiplication_$callClinit = $rt_eraseClinit(jm_Multiplication); - $java.jm_Multiplication__clinit_(); -} -$java.jm_Multiplication__init_ = function() { - var var_0 = new jm_Multiplication(); - jm_Multiplication__init_(var_0); - return var_0; -}; -function jm_Multiplication__init_($this) { - jm_Multiplication_$callClinit(); -} -function jm_Multiplication_karatsuba($op1, $op2) { - var $upperOp1, $ndiv2, $upperOp2, $lowerOp1, $lowerOp2, $upper, $lower; - jm_Multiplication_$callClinit(); - if ($op2.$numberLength <= $op1.$numberLength) { - $upperOp1 = $op2; - $op2 = $op1; - $op1 = $upperOp1; - } - if ($op1.$numberLength < 63) - return $java.jm_Multiplication_multiplyPAP($op2, $op1); - $ndiv2 = ($op2.$numberLength & (-2)) << 4; - $upperOp1 = $ndiv2 && $op2.$sign1 ? ($ndiv2 > 0 ? $java.jm_BitLevel_shiftRight($op2, $ndiv2) : $java.jm_BitLevel_shiftLeft($op2, -$ndiv2)) : $op2; - $upperOp2 = $ndiv2 && $op1.$sign1 ? ($ndiv2 > 0 ? $java.jm_BitLevel_shiftRight($op1, $ndiv2) : $java.jm_BitLevel_shiftLeft($op1, -$ndiv2)) : $op1; - $lowerOp1 = $java.jm_Elementary_subtract($op2, $ndiv2 && $upperOp1.$sign1 ? ($ndiv2 > 0 ? $java.jm_BitLevel_shiftLeft($upperOp1, $ndiv2) : $java.jm_BitLevel_shiftRight($upperOp1, -$ndiv2)) : $upperOp1); - $lowerOp2 = $java.jm_Elementary_subtract($op1, $ndiv2 && $upperOp2.$sign1 ? ($ndiv2 > 0 ? $java.jm_BitLevel_shiftLeft($upperOp2, $ndiv2) : $java.jm_BitLevel_shiftRight($upperOp2, -$ndiv2)) : $upperOp2); - $upper = jm_Multiplication_karatsuba($upperOp1, $upperOp2); - $lower = jm_Multiplication_karatsuba($lowerOp1, $lowerOp2); - $op1 = jm_Elementary_add(jm_Elementary_add(jm_Multiplication_karatsuba($java.jm_Elementary_subtract($upperOp1, $lowerOp1), $java.jm_Elementary_subtract($lowerOp2, $upperOp2)), $upper), $lower); - if ($ndiv2 && $op1.$sign1) - $op1 = $ndiv2 > 0 ? $java.jm_BitLevel_shiftLeft($op1, $ndiv2) : $java.jm_BitLevel_shiftRight($op1, -$ndiv2); - $ndiv2 = $ndiv2 << 1; - if ($ndiv2 && $upper.$sign1) - $upper = $ndiv2 > 0 ? $java.jm_BitLevel_shiftLeft($upper, $ndiv2) : $java.jm_BitLevel_shiftRight($upper, -$ndiv2); - return jm_Elementary_add(jm_Elementary_add($upper, $op1), $lower); -} -$java.jm_Multiplication_multiplyPAP = function($a, $b) { - var $aLen, $bLen, $resLength, $resSign, $aDigits, $bDigits, $resDigits, $result, $val, $valueLo, $valueHi; - jm_Multiplication_$callClinit(); - $aLen = $a.$numberLength; - $bLen = $b.$numberLength; - $resLength = $aLen + $bLen | 0; - $resSign = $a.$sign1 == $b.$sign1 ? 1 : (-1); - if ($resLength != 2) { - $aDigits = $a.$digits; - $bDigits = $b.$digits; - $resDigits = $rt_createIntArray($resLength); - $java.jm_Multiplication_multArraysPAP($aDigits, $aLen, $bDigits, $bLen, $resDigits); - $result = new jm_BigInteger; - $result.$firstNonzeroDigit = (-2); - $result.$sign1 = $resSign; - $result.$numberLength = $resLength; - $result.$digits = $resDigits; - $java.jm_BigInteger_cutOffLeadingZeroes($result); - return $result; - } - $val = $java.jm_Multiplication_unsignedMultAddAdd($a.$digits.data[0], $b.$digits.data[0], 0, 0); - $valueLo = $val.lo; - $valueHi = $val.hi; - if (!$valueHi) { - $a = new jm_BigInteger; - $a.$firstNonzeroDigit = (-2); - $a.$sign1 = $resSign; - $a.$numberLength = 1; - $aDigits = $rt_createIntArray(1); - $aDigits.data[0] = $valueLo; - $a.$digits = $aDigits; - } else { - $a = new jm_BigInteger; - $aDigits = $rt_createIntArray(2); - $bDigits = $aDigits.data; - $bDigits[0] = $valueLo; - $bDigits[1] = $valueHi; - $a.$firstNonzeroDigit = (-2); - $a.$sign1 = $resSign; - $a.$numberLength = 2; - $a.$digits = $aDigits; - } - return $a; -}; -$java.jm_Multiplication_multArraysPAP = function($aDigits, $aLen, $bDigits, $bLen, $resDigits) { - jm_Multiplication_$callClinit(); - if ($aLen && $bLen) { - if ($aLen == 1) - $resDigits.data[$bLen] = $java.jm_Multiplication_multiplyByInt($resDigits, $bDigits, $bLen, $aDigits.data[0]); - else if ($bLen != 1) - $java.jm_Multiplication_multPAP($aDigits, $bDigits, $resDigits, $aLen, $bLen); - else - $resDigits.data[$aLen] = $java.jm_Multiplication_multiplyByInt($resDigits, $aDigits, $aLen, $bDigits.data[0]); - return; - } -}; -$java.jm_Multiplication_multPAP = function($a, $b, $t, $aLen, $bLen) { - var $i, var$7, $carry, $aI, $j, var$11, var$12, var$13; - jm_Multiplication_$callClinit(); - if ($a === $b && $aLen == $bLen) { - $java.jm_Multiplication_square($a, $aLen, $t); - return; - } - $i = 0; - while ($i < $aLen) { - var$7 = $a.data; - $carry = Long_ZERO; - $aI = var$7[$i]; - $j = 0; - while ($j < $bLen) { - var$11 = $t.data; - var$12 = $b.data[$j]; - var$13 = $i + $j | 0; - $carry = $java.jm_Multiplication_unsignedMultAddAdd($aI, var$12, var$11[var$13], $carry.lo); - var$11[var$13] = $carry.lo; - $carry = Long_shru($carry, 32); - $j = $j + 1 | 0; - } - $t.data[$i + $bLen | 0] = $carry.lo; - $i = $i + 1 | 0; - } -}; -$java.jm_Multiplication_multiplyByInt = function($res, $a, $aSize, $factor) { - var $carry, $i, var$7; - jm_Multiplication_$callClinit(); - $carry = Long_ZERO; - $i = 0; - while ($i < $aSize) { - var$7 = $res.data; - $carry = $java.jm_Multiplication_unsignedMultAddAdd($a.data[$i], $factor, $carry.lo, 0); - var$7[$i] = $carry.lo; - $carry = Long_shru($carry, 32); - $i = $i + 1 | 0; - } - return $carry.lo; -}; -$java.jm_Multiplication_pow = function($acc, $exponent) { - var $res, $acc_0; - jm_Multiplication_$callClinit(); - $res = jm_BigInteger_ONE; - while ($exponent > 1) { - if ($exponent & 1) - $res = !$acc.$sign1 ? jm_BigInteger_ZERO : !$res.$sign1 ? jm_BigInteger_ZERO : jm_Multiplication_karatsuba($res, $acc); - $acc_0 = $acc.$numberLength != 1 ? $java.jm_BigInteger__init_1(1, $java.jm_Multiplication_square($acc.$digits, $acc.$numberLength, $rt_createIntArray($acc.$numberLength << 1))) : !$acc.$sign1 ? jm_BigInteger_ZERO : !$acc.$sign1 ? jm_BigInteger_ZERO : jm_Multiplication_karatsuba($acc, $acc); - $exponent = $exponent >> 1; - $acc = $acc_0; - } - return !$acc.$sign1 ? jm_BigInteger_ZERO : !$res.$sign1 ? jm_BigInteger_ZERO : jm_Multiplication_karatsuba($res, $acc); -}; -$java.jm_Multiplication_square = function($a, $aLen, $res) { - var $i, $carry, $i_0, $j, var$8, var$9, $index, var$11, var$12; - jm_Multiplication_$callClinit(); - $i = 0; - while ($i < $aLen) { - $carry = Long_ZERO; - $i_0 = $i + 1 | 0; - $j = $i_0; - while ($j < $aLen) { - var$8 = $res.data; - var$9 = $a.data; - $index = var$9[$i]; - var$11 = var$9[$j]; - var$12 = $i + $j | 0; - $carry = $java.jm_Multiplication_unsignedMultAddAdd($index, var$11, var$8[var$12], $carry.lo); - var$8[var$12] = $carry.lo; - $carry = Long_shru($carry, 32); - $j = $j + 1 | 0; - } - $res.data[$i + $aLen | 0] = $carry.lo; - $i = $i_0; - } - $java.jm_BitLevel_shiftLeftOneBit($res, $res, $aLen << 1); - $carry = Long_ZERO; - $i = 0; - $index = 0; - while ($i < $aLen) { - var$8 = $res.data; - var$9 = $a.data; - $carry = $java.jm_Multiplication_unsignedMultAddAdd(var$9[$i], var$9[$i], var$8[$index], $carry.lo); - var$8[$index] = $carry.lo; - $carry = Long_shru($carry, 32); - $i_0 = $index + 1 | 0; - $carry = Long_add($carry, Long_and(Long_fromInt(var$8[$i_0]), new Long(4294967295, 0))); - var$8[$i_0] = $carry.lo; - $carry = Long_shru($carry, 32); - $i = $i + 1 | 0; - $index = $i_0 + 1 | 0; - } - return $res; -}; -$java.jm_Multiplication_powerOf10 = function($exp) { - var $intExp, $powerOfFive, $longExp, var$5; - jm_Multiplication_$callClinit(); - $intExp = $exp.lo; - if (Long_lt($exp, Long_fromInt($java.jm_Multiplication_bigTenPows.data.length))) - return $java.jm_Multiplication_bigTenPows.data[$intExp]; - if (Long_le($exp, Long_fromInt(50))) - return $java.jm_BigInteger_pow(jm_BigInteger_TEN, $intExp); - if (Long_le($exp, Long_fromInt(1000))) { - $powerOfFive = $java.jm_BigInteger_pow($java.jm_Multiplication_bigFivePows.data[1], $intExp); - if ($intExp && $powerOfFive.$sign1) - $powerOfFive = $intExp > 0 ? $java.jm_BitLevel_shiftLeft($powerOfFive, $intExp) : $java.jm_BitLevel_shiftRight($powerOfFive, -$intExp); - return $powerOfFive; - } - if (Long_gt(Long_add(Long_fromInt(1), Long_fromNumber(Long_toNumber($exp) / 2.4082399653118496)), Long_fromInt(1000000))) { - $powerOfFive = new jl_ArithmeticException; - $powerOfFive.$suppressionEnabled = 1; - $powerOfFive.$writableStackTrace = 1; - $powerOfFive.$message = $rt_s(2487); - $rt_throw($powerOfFive); - } - if (Long_le($exp, Long_fromInt(2147483647))) { - $powerOfFive = $java.jm_BigInteger_pow($java.jm_Multiplication_bigFivePows.data[1], $intExp); - if ($intExp && $powerOfFive.$sign1) - $powerOfFive = $intExp > 0 ? $java.jm_BitLevel_shiftLeft($powerOfFive, $intExp) : $java.jm_BitLevel_shiftRight($powerOfFive, -$intExp); - return $powerOfFive; - } - $powerOfFive = $java.jm_BigInteger_pow($java.jm_Multiplication_bigFivePows.data[1], 2147483647); - $longExp = Long_sub($exp, Long_fromInt(2147483647)); - $intExp = Long_rem($exp, Long_fromInt(2147483647)).lo; - var$5 = $powerOfFive; - $exp = $longExp; - while (Long_gt($exp, Long_fromInt(2147483647))) { - var$5 = !$powerOfFive.$sign1 ? jm_BigInteger_ZERO : !var$5.$sign1 ? jm_BigInteger_ZERO : jm_Multiplication_karatsuba(var$5, $powerOfFive); - $exp = Long_sub($exp, Long_fromInt(2147483647)); - } - $powerOfFive = $java.jm_BigInteger_pow($java.jm_Multiplication_bigFivePows.data[1], $intExp); - $powerOfFive = !$powerOfFive.$sign1 ? jm_BigInteger_ZERO : !var$5.$sign1 ? jm_BigInteger_ZERO : jm_Multiplication_karatsuba(var$5, $powerOfFive); - if ($powerOfFive.$sign1) - $powerOfFive = $java.jm_BitLevel_shiftLeft($powerOfFive, 2147483647); - while (Long_gt($longExp, Long_fromInt(2147483647))) { - if ($powerOfFive.$sign1) - $powerOfFive = $java.jm_BitLevel_shiftLeft($powerOfFive, 2147483647); - $longExp = Long_sub($longExp, Long_fromInt(2147483647)); - } - if ($intExp && $powerOfFive.$sign1) - $powerOfFive = $intExp > 0 ? $java.jm_BitLevel_shiftLeft($powerOfFive, $intExp) : $java.jm_BitLevel_shiftRight($powerOfFive, -$intExp); - return $powerOfFive; -}; -$java.jm_Multiplication_unsignedMultAddAdd = function($a, $b, $c, $d) { - jm_Multiplication_$callClinit(); - return Long_add(Long_add(Long_mul(Long_and(Long_fromInt($a), new Long(4294967295, 0)), Long_and(Long_fromInt($b), new Long(4294967295, 0))), Long_and(Long_fromInt($c), new Long(4294967295, 0))), Long_and(Long_fromInt($d), new Long(4294967295, 0))); -}; -$java.jm_Multiplication__clinit_ = function() { - var var$1, var$2, $fivePow, $i, var$5, var$6, var$7; - var$1 = $rt_createIntArray(10); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 10; - var$2[2] = 100; - var$2[3] = 1000; - var$2[4] = 10000; - var$2[5] = 100000; - var$2[6] = 1000000; - var$2[7] = 10000000; - var$2[8] = 100000000; - var$2[9] = 1000000000; - $java.jm_Multiplication_tenPows = var$1; - var$1 = $rt_createIntArray(14); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 5; - var$2[2] = 25; - var$2[3] = 125; - var$2[4] = 625; - var$2[5] = 3125; - var$2[6] = 15625; - var$2[7] = 78125; - var$2[8] = 390625; - var$2[9] = 1953125; - var$2[10] = 9765625; - var$2[11] = 48828125; - var$2[12] = 244140625; - var$2[13] = 1220703125; - $java.jm_Multiplication_fivePows = var$1; - $java.jm_Multiplication_bigTenPows = $rt_createArray(jm_BigInteger, 32); - $java.jm_Multiplication_bigFivePows = $rt_createArray(jm_BigInteger, 32); - $fivePow = Long_fromInt(1); - $i = 0; - while ($i <= 18) { - $java.jm_Multiplication_bigFivePows.data[$i] = jm_BigInteger_valueOf($fivePow); - $java.jm_Multiplication_bigTenPows.data[$i] = jm_BigInteger_valueOf(Long_shl($fivePow, $i)); - $fivePow = Long_mul($fivePow, Long_fromInt(5)); - $i = $i + 1 | 0; - } - while ($i < $java.jm_Multiplication_bigTenPows.data.length) { - var$1 = $java.jm_Multiplication_bigFivePows; - var$2 = $java.jm_Multiplication_bigFivePows.data; - var$5 = $i - 1 | 0; - var$6 = var$2[var$5]; - var$7 = $java.jm_Multiplication_bigFivePows.data[1]; - if (!var$7.$sign1) - var$6 = jm_BigInteger_ZERO; - else if (!var$6.$sign1) - var$6 = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - var$6 = jm_Multiplication_karatsuba(var$6, var$7); - } - var$1.data[$i] = var$6; - var$1 = $java.jm_Multiplication_bigTenPows; - var$6 = $java.jm_Multiplication_bigTenPows.data[var$5]; - var$7 = jm_BigInteger_TEN; - if (!var$7.$sign1) - var$6 = jm_BigInteger_ZERO; - else if (!var$6.$sign1) - var$6 = jm_BigInteger_ZERO; - else { - jm_Multiplication_$callClinit(); - var$6 = jm_Multiplication_karatsuba(var$6, var$7); - } - var$1.data[$i] = var$6; - $i = $i + 1 | 0; - } -}; -function nms_DataWatcher() { - var a = this; jl_Object.call(a); - a.$isBlank = 0; - a.$watchedObjects = null; - a.$objectChanged = 0; -} -$java.nms_DataWatcher_dataTypes = null; -$java.nms_DataWatcher__init_ = function() { - var var_0 = new nms_DataWatcher(); - nms_DataWatcher__init_(var_0); - return var_0; -}; -function nms_DataWatcher__init_($this) { - $this.$isBlank = 1; - $this.$watchedObjects = ju_HashMap__init_1(16, 0.75); -} -function nms_DataWatcher_addObject($this, $par1, $par2Obj) { - var $var3, $var4, var$5, var$6, var$7, var$8; - $var3 = $java.nms_DataWatcher_dataTypes; - $var4 = jl_Class_getClass($par2Obj.constructor); - if ($var4 !== null) { - var$5 = jl_Object_identity($var4); - $var3 = ju_HashMap_findNonNullKeyEntry($var3, $var4, var$5 & ($var3.$elementData.data.length - 1 | 0), var$5); - } else { - $var3 = $var3.$elementData.data[0]; - while ($var3 !== null && $var3.$key !== null) { - $var3 = $var3.$next1; - } - } - $var3 = $var3 === null ? null : $var3.$value0; - if ($var3 === null) { - $var3 = new jl_IllegalArgumentException; - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(2488)); - var$6 = jl_Class_getClass($par2Obj.constructor); - var$7 = $var4.$length; - if (var$6 === null) - $par2Obj = $rt_s(47); - else { - var$8 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$8, 16); - $par2Obj = jl_Class_getClass(var$6.constructor); - if ($par2Obj.$name === null) - $par2Obj.$name = $rt_str($par2Obj.$platformClass.$meta.name); - $par2Obj = $par2Obj.$name; - jl_StringBuilder_insert14(var$8, var$8.$length, $par2Obj); - jl_StringBuilder_insert14(var$8, var$8.$length, $rt_s(1)); - $par2Obj = otci_IntegerUtil_toUnsignedLogRadixString(jl_Object_identity(var$6), 4); - jl_StringBuilder_insert14(var$8, var$8.$length, $par2Obj); - $par2Obj = jl_String__init_0(var$8.$buffer, 0, var$8.$length); - } - jl_AbstractStringBuilder_insert($var4, var$7, $par2Obj); - $par2Obj = jl_String__init_0($var4.$buffer, 0, $var4.$length); - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $var3.$message = $par2Obj; - $rt_throw($var3); - } - if ($par1 > 31) { - $par2Obj = new jl_IllegalArgumentException; - $var3 = new jl_StringBuilder; - $var3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(2489)); - jl_AbstractStringBuilder_insert0($var3, $var3.$length, $par1, 10); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(2490)); - jl_AbstractStringBuilder_insert0($var3, $var3.$length, 31, 10); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(64)); - $var4 = jl_String__init_0($var3.$buffer, 0, $var3.$length); - $par2Obj.$suppressionEnabled = 1; - $par2Obj.$writableStackTrace = 1; - $par2Obj.$message = $var4; - $rt_throw($par2Obj); - } - $var4 = $this.$watchedObjects; - var$6 = jl_Integer_valueOf($par1); - if (var$6 !== null) { - var$5 = jl_Integer_hashCode(var$6); - $var4 = ju_HashMap_findNonNullKeyEntry($var4, var$6, var$5 & ($var4.$elementData.data.length - 1 | 0), var$5); - } else { - $var4 = $var4.$elementData.data[0]; - while ($var4 !== null && $var4.$key !== null) { - $var4 = $var4.$next1; - } - } - if (!($var4 === null ? 0 : 1)) { - $var4 = new nms_WatchableObject; - var$7 = $var3.$value; - $var4.$dataValueId = $par1; - $var4.$watchedObject = $par2Obj; - $var4.$objectType = var$7; - $var4.$watched = 1; - ju_HashMap_putImpl($this.$watchedObjects, jl_Integer_valueOf($par1), $var4); - $this.$isBlank = 0; - return; - } - $par2Obj = new jl_IllegalArgumentException; - $var3 = new jl_StringBuilder; - $var3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(2491)); - jl_AbstractStringBuilder_insert0($var3, $var3.$length, $par1, 10); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(2492)); - $var4 = jl_String__init_0($var3.$buffer, 0, $var3.$length); - $par2Obj.$suppressionEnabled = 1; - $par2Obj.$writableStackTrace = 1; - $par2Obj.$message = $var4; - $rt_throw($par2Obj); -} -$java.nms_DataWatcher_addObjectByDataType = function($this, $par1, $par2) { - var $var3, var$4; - $var3 = new nms_WatchableObject; - var$4 = null; - $var3.$dataValueId = $par1; - $var3.$watchedObject = var$4; - $var3.$objectType = $par2; - $var3.$watched = 1; - ju_HashMap_putImpl($this.$watchedObjects, jl_Integer_valueOf($par1), $var3); - $this.$isBlank = 0; -}; -function nms_DataWatcher_getWatchableObjectByte($this, $par1) { - var var$2, var$3, var$4; - var$2 = $this.$watchedObjects; - var$3 = jl_Integer_valueOf($par1); - 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; - } - } - return (var$2 === null ? null : var$2.$value0).$watchedObject.$value4; -} -function nms_DataWatcher_getWatchableObjectShort($this, $par1) { - var var$2, var$3, var$4; - var$2 = $this.$watchedObjects; - var$3 = jl_Integer_valueOf($par1); - 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; - } - } - return (var$2 === null ? null : var$2.$value0).$watchedObject.$value5; -} -function nms_DataWatcher_getWatchableObjectInt($this, $par1) { - var var$2, var$3, var$4; - var$2 = $this.$watchedObjects; - var$3 = jl_Integer_valueOf($par1); - 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; - } - } - return (var$2 === null ? null : var$2.$value0).$watchedObject.$value; -} -function nms_DataWatcher_getWatchableObjectString($this, $par1) { - var var$2, var$3, var$4; - var$2 = $this.$watchedObjects; - var$3 = jl_Integer_valueOf($par1); - 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; - } - } - return (var$2 === null ? null : var$2.$value0).$watchedObject; -} -function nms_DataWatcher_getWatchableObjectItemStack($this, $par1) { - var var$2, var$3, var$4; - var$2 = $this.$watchedObjects; - var$3 = jl_Integer_valueOf($par1); - 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; - } - } - return (var$2 === null ? null : var$2.$value0).$watchedObject; -} -function nms_DataWatcher_updateObject($this, $par1, $par2Obj) { - var var$3, $var3, var$5; - var$3 = $this.$watchedObjects; - $var3 = jl_Integer_valueOf($par1); - if ($var3 !== null) { - var$5 = jl_Integer_hashCode($var3); - var$3 = ju_HashMap_findNonNullKeyEntry(var$3, $var3, 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; - } - } - $var3 = var$3 === null ? null : var$3.$value0; - if (!$par2Obj.$equals($var3.$watchedObject)) { - $var3.$watchedObject = $par2Obj; - $var3.$watched = 1; - $this.$objectChanged = 1; - } -} -function nms_DataWatcher_setObjectWatched($this, $par1) { - var var$2, var$3, var$4; - var$2 = $this.$watchedObjects; - var$3 = jl_Integer_valueOf($par1); - 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; - } - } - (var$2 === null ? null : var$2.$value0).$watched = 1; - $this.$objectChanged = 1; -} -$java.nms_DataWatcher_readWatchableObjects = function($par0DataInputStream) { - var $var1, $var6, $var2, $var3, $var4, $var5, var$8, var$9, $var7, $var8, var$12, var$13, var$14, var$15, var$16, var$17, $$je; - $var1 = null; - $var6 = $par0DataInputStream.$in.$read1(); - if ($var6 < 0) { - $par0DataInputStream = new ji_EOFException; - $par0DataInputStream.$suppressionEnabled = 1; - $par0DataInputStream.$writableStackTrace = 1; - $rt_throw($par0DataInputStream); - } - $var2 = $var6 << 24 >> 24; - while ($var2 != 127) { - if ($var1 === null) { - $var1 = new ju_ArrayList; - $var1.$array1 = $rt_createArray(jl_Object, 10); - } - a: { - b: { - $var3 = ($var2 & 224) >> 5; - $var4 = $var2 & 31; - $var5 = null; - switch ($var3) { - case 0: - $var5 = new nms_WatchableObject; - $var6 = $par0DataInputStream.$in.$read1(); - if ($var6 < 0) { - $par0DataInputStream = new ji_EOFException; - $par0DataInputStream.$suppressionEnabled = 1; - $par0DataInputStream.$writableStackTrace = 1; - $rt_throw($par0DataInputStream); - } - $var6 = $var6 << 24 >> 24; - var$8 = new jl_Byte; - var$8.$value4 = $var6; - $var5.$dataValueId = $var4; - $var5.$watchedObject = var$8; - $var5.$objectType = $var3; - $var5.$watched = 1; - break a; - case 1: - $var5 = new nms_WatchableObject; - $var6 = ji_DataInputStream_readShort($par0DataInputStream); - var$8 = new jl_Short; - var$8.$value5 = $var6; - $var5.$dataValueId = $var4; - $var5.$watchedObject = var$8; - $var5.$objectType = $var3; - $var5.$watched = 1; - break a; - case 2: - $var5 = new nms_WatchableObject; - var$8 = jl_Integer_valueOf(ji_DataInputStream_readInt($par0DataInputStream)); - $var5.$dataValueId = $var4; - $var5.$watchedObject = var$8; - $var5.$objectType = $var3; - $var5.$watched = 1; - break a; - case 3: - $var5 = new nms_WatchableObject; - var$9 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par0DataInputStream)); - var$8 = new jl_Float; - var$8.$value3 = var$9; - $var5.$dataValueId = $var4; - $var5.$watchedObject = var$8; - $var5.$objectType = $var3; - $var5.$watched = 1; - break a; - case 4: - $var5 = new nms_WatchableObject; - var$8 = nms_Packet_readString($par0DataInputStream, 64); - $var5.$dataValueId = $var4; - $var5.$watchedObject = var$8; - $var5.$objectType = $var3; - $var5.$watched = 1; - break a; - case 5: - break b; - case 6: - $var6 = ji_DataInputStream_readInt($par0DataInputStream); - $var7 = ji_DataInputStream_readInt($par0DataInputStream); - $var8 = ji_DataInputStream_readInt($par0DataInputStream); - $var5 = new nms_WatchableObject; - var$8 = new nms_ChunkCoordinates; - var$8.$posX0 = $var6; - var$8.$posY0 = $var7; - var$8.$posZ0 = $var8; - $var5.$dataValueId = $var4; - $var5.$watchedObject = var$8; - $var5.$objectType = $var3; - $var5.$watched = 1; - break a; - default: - } - break a; - } - $var5 = new nms_WatchableObject; - nms_Packet_$callClinit(); - var$12 = null; - $var7 = ji_DataInputStream_readShort($par0DataInputStream); - if ($var7 >= 0) { - $var6 = $par0DataInputStream.$in.$read1(); - if ($var6 < 0) { - $par0DataInputStream = new ji_EOFException; - $par0DataInputStream.$suppressionEnabled = 1; - $par0DataInputStream.$writableStackTrace = 1; - $rt_throw($par0DataInputStream); - } - $var2 = $var6 << 24 >> 24; - $var8 = ji_DataInputStream_readShort($par0DataInputStream); - var$12 = new nms_ItemStack; - var$12.$stackSize = 0; - var$12.$itemFrame = null; - var$12.$itemID0 = $var7; - var$12.$stackSize = $var2; - var$12.$itemDamage = $var8; - if (var$12.$itemDamage < 0) - var$12.$itemDamage = 0; - $var6 = ji_DataInputStream_readShort($par0DataInputStream); - if ($var6 < 0) - var$13 = null; - else { - var$14 = $rt_createByteArray($var6); - $var2 = var$14.data.length; - ji_DataInputStream_readFully($par0DataInputStream, var$14, 0, $var2); - var$15 = new ji_DataInputStream; - var$13 = new ji_BufferedInputStream; - var$16 = new cjj_GZIPInputStream; - var$17 = new ji_ByteArrayInputStream; - var$17.$buf = var$14; - var$17.$pos = 0; - var$17.$mark0 = 0; - var$17.$count0 = 0 + $var2 | 0; - cjj_InflaterInputStream__init_0(var$16, var$17, cjj_Inflater__init_0(31, 0), 512, 1); - var$16.$myinflater = 1; - var$13.$in = var$16; - var$13.$markpos = (-1); - var$13.$buf0 = $rt_createByteArray(8192); - var$15.$in = var$13; - var$15.$buff = $rt_createByteArray(8); - try { - var$13 = nms_CompressedStreamTools_read(var$15); - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par0DataInputStream = $$je; - var$15.$in.$close(); - $rt_throw($par0DataInputStream); - - } - var$15.$in.$close(); - } - var$12.$stackTagCompound = var$13; - } - $var5.$dataValueId = $var4; - $var5.$watchedObject = var$12; - $var5.$objectType = $var3; - $var5.$watched = 1; - } - ju_ArrayList_add($var1, $var5); - $var6 = $par0DataInputStream.$in.$read1(); - if ($var6 < 0) { - $par0DataInputStream = new ji_EOFException; - $par0DataInputStream.$suppressionEnabled = 1; - $par0DataInputStream.$writableStackTrace = 1; - $rt_throw($par0DataInputStream); - } - $var2 = $var6 << 24 >> 24; - } - return $var1; -}; -$java.nms_DataWatcher_updateWatchedObjectsFromList = function($this, $par1List) { - var $var2$index, var$3, var$4, $var2$index_0, $var3, $var4, var$8, var$9; - $var2$index = 0; - var$3 = $par1List.$modCount0; - var$4 = $par1List.$size2(); - while ($var2$index >= var$4 ? 0 : 1) { - if (var$3 < $par1List.$modCount0) { - $par1List = new ju_ConcurrentModificationException; - $par1List.$suppressionEnabled = 1; - $par1List.$writableStackTrace = 1; - $rt_throw($par1List); - } - $var2$index_0 = $var2$index + 1 | 0; - $var3 = $par1List.$get4($var2$index); - $var4 = $this.$watchedObjects; - var$8 = jl_Integer_valueOf($var3.$dataValueId); - if (var$8 !== null) { - var$9 = jl_Integer_hashCode(var$8); - var$8 = ju_HashMap_findNonNullKeyEntry($var4, var$8, var$9 & ($var4.$elementData.data.length - 1 | 0), var$9); - } else { - var$8 = $var4.$elementData.data[0]; - while (var$8 !== null && var$8.$key !== null) { - var$8 = var$8.$next1; - } - } - $var4 = var$8 === null ? null : var$8.$value0; - if ($var4 !== null) - $var4.$watchedObject = $var3.$watchedObject; - $var2$index = $var2$index_0; - } -}; -function nms_DataWatcher__clinit_() { - $java.nms_DataWatcher_dataTypes = ju_HashMap__init_1(16, 0.75); - ju_HashMap_putImpl($java.nms_DataWatcher_dataTypes, $rt_cls(jl_Byte), jl_Integer_valueOf(0)); - ju_HashMap_putImpl($java.nms_DataWatcher_dataTypes, $rt_cls(jl_Short), jl_Integer_valueOf(1)); - ju_HashMap_putImpl($java.nms_DataWatcher_dataTypes, $rt_cls(jl_Integer), jl_Integer_valueOf(2)); - ju_HashMap_putImpl($java.nms_DataWatcher_dataTypes, $rt_cls(jl_Float), jl_Integer_valueOf(3)); - ju_HashMap_putImpl($java.nms_DataWatcher_dataTypes, $rt_cls(jl_String), jl_Integer_valueOf(4)); - ju_HashMap_putImpl($java.nms_DataWatcher_dataTypes, $rt_cls(nms_ItemStack), jl_Integer_valueOf(5)); - ju_HashMap_putImpl($java.nms_DataWatcher_dataTypes, $rt_cls(nms_ChunkCoordinates), jl_Integer_valueOf(6)); -} -function nms_EnumEntitySize() { - jl_Enum.call(this); -} -var nms_EnumEntitySize_SIZE_1 = null; -var nms_EnumEntitySize_SIZE_2 = null; -var nms_EnumEntitySize_SIZE_3 = null; -var nms_EnumEntitySize_SIZE_4 = null; -var nms_EnumEntitySize_SIZE_5 = null; -var nms_EnumEntitySize_SIZE_6 = null; -$java.nms_EnumEntitySize_$VALUES = null; -function nms_EnumEntitySize__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumEntitySize; - var$1.$name2 = $rt_s(2493); - var$1.$ordinal = 0; - nms_EnumEntitySize_SIZE_1 = var$1; - var$1 = new nms_EnumEntitySize; - var$1.$name2 = $rt_s(2494); - var$1.$ordinal = 1; - nms_EnumEntitySize_SIZE_2 = var$1; - var$1 = new nms_EnumEntitySize; - var$1.$name2 = $rt_s(2495); - var$1.$ordinal = 2; - nms_EnumEntitySize_SIZE_3 = var$1; - var$1 = new nms_EnumEntitySize; - var$1.$name2 = $rt_s(2496); - var$1.$ordinal = 3; - nms_EnumEntitySize_SIZE_4 = var$1; - var$1 = new nms_EnumEntitySize; - var$1.$name2 = $rt_s(2497); - var$1.$ordinal = 4; - nms_EnumEntitySize_SIZE_5 = var$1; - var$1 = new nms_EnumEntitySize; - var$1.$name2 = $rt_s(2498); - var$1.$ordinal = 5; - nms_EnumEntitySize_SIZE_6 = var$1; - var$2 = $rt_createArray(nms_EnumEntitySize, 6); - var$3 = var$2.data; - var$3[0] = nms_EnumEntitySize_SIZE_1; - var$3[1] = nms_EnumEntitySize_SIZE_2; - var$3[2] = nms_EnumEntitySize_SIZE_3; - var$3[3] = nms_EnumEntitySize_SIZE_4; - var$3[4] = nms_EnumEntitySize_SIZE_5; - var$3[5] = nms_EnumEntitySize_SIZE_6; - $java.nms_EnumEntitySize_$VALUES = var$2; -} -function jl_Byte() { - jl_Number.call(this); - this.$value4 = 0; -} -$java.jl_Byte_TYPE = null; -$java.jl_Byte_byteValue = function($this) { - return $this.$value4; -}; -function jl_Byte_valueOf($value) { - var var$2; - var$2 = new jl_Byte; - var$2.$value4 = $value; - return var$2; -} -$java.jl_Byte_equals = function($this, $other) { - return $other instanceof jl_Byte && $other.$value4 == $this.$value4 ? 1 : 0; -}; -function jl_Byte__clinit_() { - $java.jl_Byte_TYPE = $rt_cls($rt_bytecls()); -} -function jl_Short() { - jl_Number.call(this); - this.$value5 = 0; -} -$java.jl_Short_TYPE = null; -$java.jl_Short_shortValue = function($this) { - return $this.$value5; -}; -$java.jl_Short_toString = function($this) { - var var$1, var$2; - var$1 = $this.$value5; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert0(var$2, var$2.$length, var$1, 10); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -}; -$java.jl_Short_equals = function($this, $other) { - return $other instanceof jl_Short && $other.$value5 == $this.$value5 ? 1 : 0; -}; -$java.jl_Short_hashCode = function($this) { - return $this.$value5; -}; -function jl_Short__clinit_() { - $java.jl_Short_TYPE = $rt_cls($rt_shortcls()); -} -function nms_ChunkCoordinates() { - var a = this; jl_Object.call(a); - a.$posX0 = 0; - a.$posY0 = 0; - a.$posZ0 = 0; -} -$java.nms_ChunkCoordinates__init_ = function() { - var var_0 = new nms_ChunkCoordinates(); - nms_ChunkCoordinates__init_(var_0); - return var_0; -}; -function nms_ChunkCoordinates__init_0(var_0, var_1, var_2) { - var var_3 = new nms_ChunkCoordinates(); - $java.nms_ChunkCoordinates__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_ChunkCoordinates__init_($this) { - return; -} -$java.nms_ChunkCoordinates__init_0 = function($this, $par1, $par2, $par3) { - $this.$posX0 = $par1; - $this.$posY0 = $par2; - $this.$posZ0 = $par3; -}; -function nms_ChunkCoordinates_getDistanceSquared($this, $par1, $par2, $par3) { - var $var4, $var5, $var6; - $var4 = $this.$posX0 - $par1 | 0; - $var5 = $this.$posY0 - $par2 | 0; - $var6 = $this.$posZ0 - $par3 | 0; - return ($rt_imul($var4, $var4) + $rt_imul($var5, $var5) | 0) + $rt_imul($var6, $var6) | 0; -} -function nms_Particle() { - var a = this; jl_Object.call(a); - a.$posX4 = 0.0; - a.$posY4 = 0.0; - a.$prevPosX0 = 0.0; - a.$prevPosY0 = 0.0; - a.$isDead0 = 0; - a.$tintRed = 0.0; - a.$tintGreen = 0.0; - a.$tintBlue = 0.0; - a.$tintAlpha = 0.0; - a.$prevTintRed = 0.0; - a.$prevTintGreen = 0.0; - a.$prevTintBlue = 0.0; - a.$prevTintAlpha = 0.0; -} -$java.nms_Particle_rand = null; -$java.nms_Particle__init_ = function() { - var var_0 = new nms_Particle(); - nms_Particle__init_(var_0); - return var_0; -}; -function nms_Particle__init_($this) { - return; -} -function nms_Particle__clinit_() { - $java.nms_Particle_rand = new ju_Random; -} -$java.jur_BackReferencedSingleSet = function() { - jur_SingleSet.call(this); -}; -$java.jur_BackReferencedSingleSet_find = function($this, $startSearch, $testString, $matchResult) { - var $res, $lastIndex, var$6, $saveStart, var$8; - $res = 0; - $lastIndex = $matchResult.$rightBound; - a: { - while (true) { - if ($startSearch > $lastIndex) { - $startSearch = $res; - break a; - } - var$6 = $this.$groupIndex0; - $saveStart = $matchResult.$groupBounds.data[var$6 * 2 | 0]; - var$8 = $this.$groupIndex0; - $matchResult.$groupBounds.data[var$8 * 2 | 0] = $startSearch; - $res = $this.$kid.$matches($startSearch, $testString, $matchResult); - if ($res >= 0) - break; - var$6 = $this.$groupIndex0; - $matchResult.$groupBounds.data[var$6 * 2 | 0] = $saveStart; - $startSearch = $startSearch + 1 | 0; - } - } - return $startSearch; -}; -$java.jur_BackReferencedSingleSet_findBack = function($this, $stringIndex, $startSearch, $testString, $matchResult) { - var $res, var$6, $saveStart; - $res = 0; - a: { - while (true) { - if ($startSearch < $stringIndex) { - $startSearch = $res; - break a; - } - var$6 = $this.$groupIndex0; - $saveStart = $matchResult.$groupBounds.data[var$6 * 2 | 0]; - var$6 = $this.$groupIndex0; - $matchResult.$groupBounds.data[var$6 * 2 | 0] = $startSearch; - $res = $this.$kid.$matches($startSearch, $testString, $matchResult); - if ($res >= 0) - break; - var$6 = $this.$groupIndex0; - $matchResult.$groupBounds.data[var$6 * 2 | 0] = $saveStart; - $startSearch = $startSearch + (-1) | 0; - } - } - return $startSearch; -}; -$java.jur_BackReferencedSingleSet_processBackRefReplacement = function($this) { - return null; -}; -$java.ju_HashMap$KeyIterator = function() { - ju_HashMap$AbstractMapIterator.call(this); -}; -$java.ju_HashMap$KeyIterator_next = function($this) { - ju_HashMap$AbstractMapIterator_makeNext($this); - return $this.$currentEntry.$key; -}; -function ju_HashMap$EntryIterator() { - ju_HashMap$AbstractMapIterator.call(this); -} -$java.ju_HashMap$EntryIterator_next = function($this) { - ju_HashMap$AbstractMapIterator_makeNext($this); - return $this.$currentEntry; -}; -$java.ju_HashMap$EntryIterator_next0 = function($this) { - ju_HashMap$AbstractMapIterator_makeNext($this); - return $this.$currentEntry; -}; -function jm_BitLevel() { - jl_Object.call(this); -} -$java.jm_BitLevel__init_ = function() { - var var_0 = new jm_BitLevel(); - jm_BitLevel__init_(var_0); - return var_0; -}; -function jm_BitLevel__init_($this) { - return; -} -$java.jm_BitLevel_bitLength = function($val) { - var $bLength, $highDigit; - if (!$val.$sign1) - return 0; - $bLength = $val.$numberLength << 5; - $highDigit = $val.$digits.data[$val.$numberLength - 1 | 0]; - if ($val.$sign1 < 0 && $java.jm_BigInteger_getFirstNonzeroDigit($val) == ($val.$numberLength - 1 | 0)) - $highDigit = $highDigit + (-1) | 0; - return $bLength - jl_Integer_numberOfLeadingZeros($highDigit) | 0; -}; -$java.jm_BitLevel_nonZeroDroppedBits = function($numberOfBits, $digits) { - var $intCount, $bitCount, $i; - $intCount = $numberOfBits >> 5; - $bitCount = $numberOfBits & 31; - $i = 0; - while (true) { - $numberOfBits = $rt_compare($i, $intCount); - if ($numberOfBits >= 0) - break; - if ($digits.data[$i]) - break; - $i = $i + 1 | 0; - } - return !$numberOfBits && !($digits.data[$i] << (32 - $bitCount | 0)) ? 0 : 1; -}; -$java.jm_BitLevel_shiftLeft = function($source, $count) { - var $intCount, $resLength, $resDigits, $result; - $intCount = $count >> 5; - $count = $count & 31; - $resLength = ($source.$numberLength + $intCount | 0) + ($count ? 1 : 0) | 0; - $resDigits = $rt_createIntArray($resLength); - $java.jm_BitLevel_shiftLeft0($resDigits, $source.$digits, $intCount, $count); - $result = new jm_BigInteger; - $count = $source.$sign1; - $result.$firstNonzeroDigit = (-2); - $result.$sign1 = $count; - $result.$numberLength = $resLength; - $result.$digits = $resDigits; - $java.jm_BigInteger_cutOffLeadingZeroes($result); - return $result; -}; -$java.jm_BitLevel_shiftLeft0 = function($result, $source, $intCount, $count) { - var var$5, $rightShiftCount, $i, var$8, $i_0, var$10; - a: { - if (!$count) - jl_System_arraycopy($source, 0, $result, $intCount, $result.data.length - $intCount | 0); - else { - var$5 = $result.data; - $rightShiftCount = 32 - $count | 0; - $i = var$5.length - 1 | 0; - var$5[$i] = 0; - while (true) { - if ($i <= $intCount) - break a; - var$8 = $source.data; - $i_0 = var$5[$i]; - var$10 = ($i - $intCount | 0) - 1 | 0; - var$5[$i] = $i_0 | var$8[var$10] >>> $rightShiftCount; - var$5[$i - 1 | 0] = var$8[var$10] << $count; - $i = $i + (-1) | 0; - } - } - } - $i_0 = 0; - while ($i_0 < $intCount) { - $result.data[$i_0] = 0; - $i_0 = $i_0 + 1 | 0; - } -}; -$java.jm_BitLevel_shiftLeftOneBit = function($result, $source, $srcLen) { - var $carry, $i, var$6, $val; - $carry = 0; - $i = 0; - while ($i < $srcLen) { - var$6 = $result.data; - $val = $source.data[$i]; - var$6[$i] = $val << 1 | $carry; - $carry = $val >>> 31; - $i = $i + 1 | 0; - } - if ($carry) - $result.data[$srcLen] = $carry; -}; -$java.jm_BitLevel_shiftRight = function($source, $count) { - var $intCount, $resLength, var$5, $resDigits, $i, var$8, var$9, $result; - $intCount = $count >> 5; - $count = $count & 31; - if ($intCount >= $source.$numberLength) - return $source.$sign1 >= 0 ? jm_BigInteger_ZERO : $java.jm_BigInteger_MINUS_ONE; - a: { - $resLength = $source.$numberLength - $intCount | 0; - var$5 = $resLength + 1 | 0; - $resDigits = $rt_createIntArray(var$5); - $java.jm_BitLevel_shiftRight0($resDigits, $resLength, $source.$digits, $intCount, $count); - if ($source.$sign1 >= 0) - var$5 = $resLength; - else { - $i = 0; - while (true) { - var$8 = $rt_compare($i, $intCount); - if (var$8 >= 0) - break; - if ($source.$digits.data[$i]) - break; - $i = $i + 1 | 0; - } - if (var$8 >= 0) { - if ($count <= 0) { - var$5 = $resLength; - break a; - } - if (!($source.$digits.data[$i] << (32 - $count | 0))) { - var$5 = $resLength; - break a; - } - } - var$9 = $resDigits.data; - $count = 0; - while (true) { - $intCount = $rt_compare($count, $resLength); - if ($intCount >= 0) - break; - if (var$9[$count] != (-1)) - break; - var$9[$count] = 0; - $count = $count + 1 | 0; - } - if ($intCount) - var$5 = $resLength; - var$9[$count] = var$9[$count] + 1 | 0; - } - } - $result = new jm_BigInteger; - $count = $source.$sign1; - $result.$firstNonzeroDigit = (-2); - $result.$sign1 = $count; - $result.$numberLength = var$5; - $result.$digits = $resDigits; - $java.jm_BigInteger_cutOffLeadingZeroes($result); - return $result; -}; -$java.jm_BitLevel_shiftRight0 = function($result, $resultLen, $source, $intCount, $count) { - var $allZero, $i, var$8, $leftShiftCount, var$10, var$11; - $allZero = 1; - $i = 0; - while ($i < $intCount) { - $allZero = $allZero & ($source.data[$i] ? 0 : 1); - $i = $i + 1 | 0; - } - if (!$count) - jl_System_arraycopy($source, $intCount, $result, 0, $resultLen); - else { - var$8 = $source.data; - $leftShiftCount = 32 - $count | 0; - $allZero = $allZero & (var$8[$i] << $leftShiftCount ? 0 : 1); - var$10 = 0; - var$11 = $resultLen - 1 | 0; - while (var$10 < var$11) { - $source = $result.data; - $resultLen = var$10 + $intCount | 0; - $source[var$10] = var$8[$resultLen] >>> $count | var$8[$resultLen + 1 | 0] << $leftShiftCount; - var$10 = var$10 + 1 | 0; - } - $result.data[var$10] = var$8[var$10 + $intCount | 0] >>> $count; - } - return $allZero; -}; -function jm_Division() { - jl_Object.call(this); -} -$java.jm_Division__init_ = function() { - var var_0 = new jm_Division(); - jm_Division__init_(var_0); - return var_0; -}; -function jm_Division__init_($this) { - return; -} -$java.jm_Division_divide = function($quot, $quotLength, $a, $j, $b, $bLength) { - var var$7, $normA, $normB, $borrow, $divisorShift, $firstDivisorDigit, $i, var$14, var$15, var$16, $res, $rem, $rOverflowed, $product, $carry, $longR, $k; - var$7 = $b.data; - $normA = $rt_createIntArray($j + 1 | 0); - $normB = $rt_createIntArray($bLength + 1 | 0); - $borrow = $bLength - 1 | 0; - $divisorShift = jl_Integer_numberOfLeadingZeros(var$7[$borrow]); - if ($divisorShift) { - $java.jm_BitLevel_shiftLeft0($normB, $b, 0, $divisorShift); - $java.jm_BitLevel_shiftLeft0($normA, $a, 0, $divisorShift); - } else { - jl_System_arraycopy($a, 0, $normA, 0, $j); - jl_System_arraycopy($b, 0, $normB, 0, $bLength); - } - var$7 = $normB.data; - $b = $normA.data; - $firstDivisorDigit = var$7[$borrow]; - $i = $quotLength - 1 | 0; - var$14 = $bLength - 2 | 0; - var$15 = Long_and(Long_fromInt($firstDivisorDigit), new Long(4294967295, 0)); - while ($i >= 0) { - a: { - if ($b[$j] == $firstDivisorDigit) - var$16 = (-1); - else { - $res = $java.jm_Division_divideLongByInt(Long_add(Long_shl(Long_and(Long_fromInt($b[$j]), new Long(4294967295, 0)), 32), Long_and(Long_fromInt($b[$j - 1 | 0]), new Long(4294967295, 0))), $firstDivisorDigit); - var$16 = $res.lo; - $rem = $res.hi; - if (var$16) { - $rOverflowed = 0; - var$16 = var$16 + 1 | 0; - while (true) { - var$16 = var$16 + (-1) | 0; - if ($rOverflowed) - break; - $product = Long_mul(Long_and(Long_fromInt(var$16), new Long(4294967295, 0)), Long_and(Long_fromInt(var$7[var$14]), new Long(4294967295, 0))); - $carry = Long_fromInt($rem); - $res = Long_add(Long_shl($carry, 32), Long_and(Long_fromInt($b[$j - 2 | 0]), new Long(4294967295, 0))); - $longR = Long_add(Long_and($carry, new Long(4294967295, 0)), var$15); - if (jl_Integer_numberOfLeadingZeros($longR.hi) >= 32) - $rem = $longR.lo; - else - $rOverflowed = 1; - if (Long_le(Long_xor($product, new Long(0, 2147483648)), Long_xor($res, new Long(0, 2147483648)))) - break a; - } - } - } - } - if (var$16) { - $quotLength = $j - $bLength | 0; - if ($java.jm_Division_multiplyAndSubtract($normA, $quotLength, $normB, $bLength, var$16)) { - var$16 = var$16 + (-1) | 0; - $carry = Long_ZERO; - $k = 0; - while ($k < $bLength) { - $borrow = $quotLength + $k | 0; - $carry = Long_add($carry, Long_add(Long_and(Long_fromInt($b[$borrow]), new Long(4294967295, 0)), Long_and(Long_fromInt(var$7[$k]), new Long(4294967295, 0)))); - $b[$borrow] = $carry.lo; - $carry = Long_shru($carry, 32); - $k = $k + 1 | 0; - } - } - } - if ($quot !== null) - $quot.data[$i] = var$16; - $j = $j + (-1) | 0; - $i = $i + (-1) | 0; - } - if ($divisorShift) { - $java.jm_BitLevel_shiftRight0($normB, $bLength, $normA, 0, $divisorShift); - return $normB; - } - jl_System_arraycopy($normA, 0, $normB, 0, $bLength); - return $normA; -}; -$java.jm_Division_divideArrayByInt = function($dest, $src, $srcLength, $divisor) { - var $rem, $bLong, $i, $bPos, var$9, var$10, $temp, $quot, $aPos; - $rem = Long_ZERO; - $bLong = Long_and(Long_fromInt($divisor), new Long(4294967295, 0)); - $i = $srcLength - 1 | 0; - $bPos = Long_fromInt($divisor >>> 1); - $divisor = $divisor & 1; - var$9 = Long_shl($bLong, 1); - while ($i >= 0) { - var$10 = $src.data; - $temp = Long_or(Long_shl($rem, 32), Long_and(Long_fromInt(var$10[$i]), new Long(4294967295, 0))); - if (Long_ge($temp, Long_ZERO)) { - $quot = Long_div($temp, $bLong); - $rem = Long_rem($temp, $bLong); - } else { - $aPos = Long_shru($temp, 1); - $quot = Long_div($aPos, $bPos); - $rem = Long_add(Long_shl(Long_rem($aPos, $bPos), 1), Long_and($temp, Long_fromInt(1))); - if ($divisor) { - if (Long_le($quot, $rem)) - $rem = Long_sub($rem, $quot); - else if (Long_gt(Long_sub($quot, $rem), $bLong)) { - $rem = Long_add($rem, Long_sub(var$9, $quot)); - $quot = Long_sub($quot, Long_fromInt(2)); - } else { - $rem = Long_add($rem, Long_sub($bLong, $quot)); - $quot = Long_sub($quot, Long_fromInt(1)); - } - } - } - $dest.data[$i] = Long_and($quot, new Long(4294967295, 0)).lo; - $i = $i + (-1) | 0; - } - return $rem.lo; -}; -$java.jm_Division_remainderArrayByInt = function($src, $srcLength, $divisor) { - var $result, $i, var$6; - $result = Long_ZERO; - $i = $srcLength - 1 | 0; - while ($i >= 0) { - var$6 = $src.data; - $result = Long_fromInt($java.jm_Division_divideLongByInt(Long_add(Long_shl($result, 32), Long_and(Long_fromInt(var$6[$i]), new Long(4294967295, 0))), $divisor).hi); - $i = $i + (-1) | 0; - } - return $result.lo; -}; -$java.jm_Division_divideLongByInt = function($a, $b) { - var $bLong, $quot, $rem, $aPos, $bPos; - $bLong = Long_and(Long_fromInt($b), new Long(4294967295, 0)); - if (Long_ge($a, Long_ZERO)) { - $quot = Long_div($a, $bLong); - $rem = Long_rem($a, $bLong); - } else { - $aPos = Long_shru($a, 1); - $bPos = Long_fromInt($b >>> 1); - $quot = Long_div($aPos, $bPos); - $rem = Long_add(Long_shl(Long_rem($aPos, $bPos), 1), Long_and($a, Long_fromInt(1))); - if ($b & 1) { - if (Long_le($quot, $rem)) - $rem = Long_sub($rem, $quot); - else if (Long_le(Long_sub($quot, $rem), $bLong)) { - $rem = Long_add($rem, Long_sub($bLong, $quot)); - $quot = Long_sub($quot, Long_fromInt(1)); - } else { - $rem = Long_add($rem, Long_sub(Long_shl($bLong, 1), $quot)); - $quot = Long_sub($quot, Long_fromInt(2)); - } - } - } - return Long_or(Long_shl($rem, 32), Long_and($quot, new Long(4294967295, 0))); -}; -$java.jm_Division_divideAndRemainderByInteger = function($val, $divisor, $divisorSign) { - var $valDigits, $valLen, $valSign, $a, $b, $quo, $rem, $quotientDigits, $quotientSign, $remainderDigits, $result0, $result1; - $valDigits = $val.$digits; - $valLen = $val.$numberLength; - $valSign = $val.$sign1; - if ($valLen == 1) { - $a = Long_and(Long_fromInt($valDigits.data[0]), new Long(4294967295, 0)); - $b = Long_and(Long_fromInt($divisor), new Long(4294967295, 0)); - $quo = Long_div($a, $b); - $rem = Long_rem($a, $b); - if ($valSign != $divisorSign) - $quo = Long_neg($quo); - if ($valSign < 0) - $rem = Long_neg($rem); - $valDigits = $rt_createArray(jm_BigInteger, 2); - $quotientDigits = $valDigits.data; - $quotientDigits[0] = jm_BigInteger_valueOf($quo); - $quotientDigits[1] = jm_BigInteger_valueOf($rem); - return $valDigits; - } - $quotientSign = $valSign != $divisorSign ? (-1) : 1; - $quotientDigits = $rt_createIntArray($valLen); - $remainderDigits = $rt_createIntArray(1); - $remainderDigits.data[0] = $java.jm_Division_divideArrayByInt($quotientDigits, $valDigits, $valLen, $divisor); - $result0 = new jm_BigInteger; - $result0.$firstNonzeroDigit = (-2); - $result0.$sign1 = $quotientSign; - $result0.$numberLength = $valLen; - $result0.$digits = $quotientDigits; - $result1 = new jm_BigInteger; - $result1.$firstNonzeroDigit = (-2); - $result1.$sign1 = $valSign; - $result1.$numberLength = 1; - $result1.$digits = $remainderDigits; - $java.jm_BigInteger_cutOffLeadingZeroes($result0); - $java.jm_BigInteger_cutOffLeadingZeroes($result1); - $valDigits = $rt_createArray(jm_BigInteger, 2); - $quotientDigits = $valDigits.data; - $quotientDigits[0] = $result0; - $quotientDigits[1] = $result1; - return $valDigits; -}; -$java.jm_Division_multiplyAndSubtract = function($a, $start, $b, $bLen, $c) { - var $carry0, $carry1, $i, var$9, var$10, var$11; - $carry0 = Long_ZERO; - $carry1 = Long_ZERO; - $i = 0; - while ($i < $bLen) { - var$9 = $a.data; - $carry0 = $java.jm_Multiplication_unsignedMultAddAdd($b.data[$i], $c, $carry0.lo, 0); - var$10 = $start + $i | 0; - var$11 = Long_add(Long_sub(Long_and(Long_fromInt(var$9[var$10]), new Long(4294967295, 0)), Long_and($carry0, new Long(4294967295, 0))), $carry1); - var$9[var$10] = var$11.lo; - $carry1 = Long_shr(var$11, 32); - $carry0 = Long_shru($carry0, 32); - $i = $i + 1 | 0; - } - $a = $a.data; - $bLen = $start + $bLen | 0; - var$11 = Long_add(Long_sub(Long_and(Long_fromInt($a[$bLen]), new Long(4294967295, 0)), $carry0), $carry1); - $a[$bLen] = var$11.lo; - return var$11.hi; -}; -function jm_Elementary() { - jl_Object.call(this); -} -$java.jm_Elementary__init_ = function() { - var var_0 = new jm_Elementary(); - jm_Elementary__init_(var_0); - return var_0; -}; -function jm_Elementary__init_($this) { - return; -} -$java.jm_Elementary_compareArrays = function($a, $b, $size) { - var $i, var$5; - $i = $size - 1 | 0; - while ($i >= 0) { - var$5 = $b.data; - if ($a.data[$i] != var$5[$i]) - break; - $i = $i + (-1) | 0; - } - if ($i < 0) - $size = 0; - else { - $b = $b.data; - $size = Long_ge(Long_and(Long_fromInt($a.data[$i]), new Long(4294967295, 0)), Long_and(Long_fromInt($b[$i]), new Long(4294967295, 0))) ? 1 : (-1); - } - return $size; -}; -function jm_Elementary_add($op1, $op2) { - var $op1Sign, $op2Sign, $op1Len, $op2Len, $a, $b, $res, $valueLo, $valueHi, var$12, $resDigits, var$14, $cmp, $res_0; - $op1Sign = $op1.$sign1; - $op2Sign = $op2.$sign1; - if (!$op1Sign) - return $op2; - if (!$op2Sign) - return $op1; - $op1Len = $op1.$numberLength; - $op2Len = $op2.$numberLength; - if (($op1Len + $op2Len | 0) == 2) { - $a = Long_and(Long_fromInt($op1.$digits.data[0]), new Long(4294967295, 0)); - $b = Long_and(Long_fromInt($op2.$digits.data[0]), new Long(4294967295, 0)); - if ($op1Sign != $op2Sign) - return jm_BigInteger_valueOf($op1Sign >= 0 ? Long_sub($a, $b) : Long_sub($b, $a)); - $res = Long_add($a, $b); - $valueLo = $res.lo; - $valueHi = $res.hi; - if (!$valueHi) { - $op1 = new jm_BigInteger; - $op1.$firstNonzeroDigit = (-2); - $op1.$sign1 = $op1Sign; - $op1.$numberLength = 1; - var$12 = $rt_createIntArray(1); - var$12.data[0] = $valueLo; - $op1.$digits = var$12; - } else { - $op1 = new jm_BigInteger; - var$12 = $rt_createIntArray(2); - $resDigits = var$12.data; - $resDigits[0] = $valueLo; - $resDigits[1] = $valueHi; - $op1.$firstNonzeroDigit = (-2); - $op1.$sign1 = $op1Sign; - $op1.$numberLength = 2; - $op1.$digits = var$12; - } - return $op1; - } - if ($op1Sign == $op2Sign) { - if ($op1Len < $op2Len) { - var$12 = $op2.$digits; - var$14 = $op1.$digits; - $resDigits = $rt_createIntArray($op2Len + 1 | 0); - $java.jm_Elementary_add($resDigits, var$12, $op2Len, var$14, $op1Len); - } else { - var$14 = $op1.$digits; - var$12 = $op2.$digits; - $resDigits = $rt_createIntArray($op1Len + 1 | 0); - $java.jm_Elementary_add($resDigits, var$14, $op1Len, var$12, $op2Len); - } - } else { - $cmp = $rt_compare($op1Len, $op2Len); - $cmp = !$cmp ? $java.jm_Elementary_compareArrays($op1.$digits, $op2.$digits, $op1Len) : $cmp <= 0 ? (-1) : 1; - if (!$cmp) - return jm_BigInteger_ZERO; - if ($cmp != 1) { - var$12 = $op2.$digits; - var$14 = $op1.$digits; - $resDigits = $rt_createIntArray($op2Len); - $java.jm_Elementary_subtract0($resDigits, var$12, $op2Len, var$14, $op1Len); - $op1Sign = $op2Sign; - } else { - var$12 = $op1.$digits; - var$14 = $op2.$digits; - $resDigits = $rt_createIntArray($op1Len); - $java.jm_Elementary_subtract0($resDigits, var$12, $op1Len, var$14, $op2Len); - } - } - var$12 = $resDigits.data; - $res_0 = new jm_BigInteger; - $op2Sign = var$12.length; - $res_0.$firstNonzeroDigit = (-2); - $res_0.$sign1 = $op1Sign; - $res_0.$numberLength = $op2Sign; - $res_0.$digits = $resDigits; - $java.jm_BigInteger_cutOffLeadingZeroes($res_0); - return $res_0; -} -$java.jm_Elementary_add = function($res, $a, $aSize, $b, $bSize) { - var var$6, $carry, var$8, $i; - var$6 = $res.data; - $res = $b.data; - $a = $a.data; - $carry = Long_add(Long_and(Long_fromInt($a[0]), new Long(4294967295, 0)), Long_and(Long_fromInt($res[0]), new Long(4294967295, 0))); - var$6[0] = $carry.lo; - var$8 = Long_shr($carry, 32); - if ($aSize < $bSize) { - $i = 1; - while ($i < $aSize) { - $carry = Long_add(var$8, Long_add(Long_and(Long_fromInt($a[$i]), new Long(4294967295, 0)), Long_and(Long_fromInt($res[$i]), new Long(4294967295, 0)))); - var$6[$i] = $carry.lo; - var$8 = Long_shr($carry, 32); - $i = $i + 1 | 0; - } - while ($i < $bSize) { - $carry = Long_add(var$8, Long_and(Long_fromInt($res[$i]), new Long(4294967295, 0))); - var$6[$i] = $carry.lo; - var$8 = Long_shr($carry, 32); - $i = $i + 1 | 0; - } - } else { - $i = 1; - while ($i < $bSize) { - $carry = Long_add(var$8, Long_add(Long_and(Long_fromInt($a[$i]), new Long(4294967295, 0)), Long_and(Long_fromInt($res[$i]), new Long(4294967295, 0)))); - var$6[$i] = $carry.lo; - var$8 = Long_shr($carry, 32); - $i = $i + 1 | 0; - } - while ($i < $aSize) { - $carry = Long_add(var$8, Long_and(Long_fromInt($a[$i]), new Long(4294967295, 0))); - var$6[$i] = $carry.lo; - var$8 = Long_shr($carry, 32); - $i = $i + 1 | 0; - } - } - if (Long_ne(var$8, Long_ZERO)) - var$6[$i] = var$8.lo; -}; -$java.jm_Elementary_subtract = function($op1, $op2) { - var $op1Sign, $op2Sign, var$5, $op1Len, $op2Len, $a, $b, $resSign, $cmp, var$12, $resDigits, $res; - $op1Sign = $op1.$sign1; - $op2Sign = $op2.$sign1; - if (!$op2Sign) - return $op1; - if (!$op1Sign) { - if (!$op2.$sign1) - $op1 = $op2; - else { - $op1 = new jm_BigInteger; - $op1Sign = -$op2.$sign1; - $op2Sign = $op2.$numberLength; - var$5 = $op2.$digits; - $op1.$firstNonzeroDigit = (-2); - $op1.$sign1 = $op1Sign; - $op1.$numberLength = $op2Sign; - $op1.$digits = var$5; - } - return $op1; - } - $op1Len = $op1.$numberLength; - $op2Len = $op2.$numberLength; - if (($op1Len + $op2Len | 0) == 2) { - $a = Long_and(Long_fromInt($op1.$digits.data[0]), new Long(4294967295, 0)); - $b = Long_and(Long_fromInt($op2.$digits.data[0]), new Long(4294967295, 0)); - if ($op1Sign < 0) - $a = Long_neg($a); - if ($op2Sign < 0) - $b = Long_neg($b); - return jm_BigInteger_valueOf(Long_sub($a, $b)); - } - $resSign = $rt_compare($op1Len, $op2Len); - $cmp = !$resSign ? $java.jm_Elementary_compareArrays($op1.$digits, $op2.$digits, $op1Len) : $resSign <= 0 ? (-1) : 1; - if ($cmp == (-1)) { - $resSign = -$op2Sign; - if ($op1Sign == $op2Sign) { - var$5 = $op2.$digits; - var$12 = $op1.$digits; - $resDigits = $rt_createIntArray($op2Len); - $java.jm_Elementary_subtract0($resDigits, var$5, $op2Len, var$12, $op1Len); - } else { - var$5 = $op2.$digits; - var$12 = $op1.$digits; - $resDigits = $rt_createIntArray($op2Len + 1 | 0); - $java.jm_Elementary_add($resDigits, var$5, $op2Len, var$12, $op1Len); - } - } else if ($op1Sign != $op2Sign) { - var$5 = $op1.$digits; - var$12 = $op2.$digits; - $resDigits = $rt_createIntArray($op1Len + 1 | 0); - $java.jm_Elementary_add($resDigits, var$5, $op1Len, var$12, $op2Len); - $resSign = $op1Sign; - } else { - if (!$cmp) - return jm_BigInteger_ZERO; - var$12 = $op1.$digits; - var$5 = $op2.$digits; - $resDigits = $rt_createIntArray($op1Len); - $java.jm_Elementary_subtract0($resDigits, var$12, $op1Len, var$5, $op2Len); - $resSign = $op1Sign; - } - var$5 = $resDigits.data; - $res = new jm_BigInteger; - $op1Sign = var$5.length; - $res.$firstNonzeroDigit = (-2); - $res.$sign1 = $resSign; - $res.$numberLength = $op1Sign; - $res.$digits = $resDigits; - $java.jm_BigInteger_cutOffLeadingZeroes($res); - return $res; -}; -$java.jm_Elementary_subtract0 = function($res, $a, $aSize, $b, $bSize) { - var $borrow, $i, var$8, var$9, var$10, var$11; - $borrow = Long_ZERO; - $i = 0; - while ($i < $bSize) { - var$8 = $res.data; - var$9 = $b.data; - var$10 = Long_add($borrow, Long_sub(Long_and(Long_fromInt($a.data[$i]), new Long(4294967295, 0)), Long_and(Long_fromInt(var$9[$i]), new Long(4294967295, 0)))); - var$8[$i] = var$10.lo; - $borrow = Long_shr(var$10, 32); - $i = $i + 1 | 0; - } - while ($i < $aSize) { - var$11 = $res.data; - var$10 = Long_add($borrow, Long_and(Long_fromInt($a.data[$i]), new Long(4294967295, 0))); - var$11[$i] = var$10.lo; - $borrow = Long_shr(var$10, 32); - $i = $i + 1 | 0; - } -}; -function nleg_EffectPipelineFXAA() { - jl_Object.call(this); -} -$java.nleg_EffectPipelineFXAA_isUsingFXAA = 0; -$java.nleg_EffectPipelineFXAA_framebuffer = null; -$java.nleg_EffectPipelineFXAA_framebuffer_color = null; -$java.nleg_EffectPipelineFXAA_framebuffer_depth = null; -$java.nleg_EffectPipelineFXAA_fxaaProgram = null; -$java.nleg_EffectPipelineFXAA_fxaaSourceTexture = null; -$java.nleg_EffectPipelineFXAA_fxaaScreenSize = null; -$java.nleg_EffectPipelineFXAA_renderQuadArray = null; -$java.nleg_EffectPipelineFXAA_renderQuadBuffer = null; -$java.nleg_EffectPipelineFXAA_width = 0; -$java.nleg_EffectPipelineFXAA_height = 0; -$java.nleg_EffectPipelineFXAA_originalViewport = null; -$java.nleg_EffectPipelineFXAA_state = 0; -$java.nleg_EffectPipelineFXAA_newState = 0; -$java.nleg_EffectPipelineFXAA_msaaInit = 0; -$java.nleg_EffectPipelineFXAA__init_ = function() { - var var_0 = new nleg_EffectPipelineFXAA(); - nleg_EffectPipelineFXAA__init_(var_0); - return var_0; -}; -function nleg_EffectPipelineFXAA__init_($this) { - return; -} -$java.nleg_EffectPipelineFXAA_initFXAA = function() { - var $upload, $pvert_shader, $fxaa_shader, $c; - if ($java.nleg_EffectPipelineFXAA_fxaaProgram === null) { - $java.nleg_EffectPipelineFXAA_renderQuadArray = nlea_EaglerAdapterImpl2__wglCreateVertexArray(); - $java.nleg_EffectPipelineFXAA_renderQuadBuffer = nlea_EaglerAdapterImpl2__wglCreateBuffer(); - nleg_EaglerAdapterGL30_$callClinit(); - $upload = nleg_EaglerAdapterGL30_isWebGL ? jn_IntBuffer_wrap($rt_createIntArray(12)) : jn_ByteBufferImpl_asIntBuffer(jn_ByteBuffer_order(jn_ByteBuffer_allocateDirect(48), jn_ByteOrder_nativeOrder())); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(1.0)); - jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits(0.0)); - jn_IntBuffer_flip($upload); - nlea_EaglerAdapterImpl2__wglBindVertexArray($java.nleg_EffectPipelineFXAA_renderQuadArray); - nlea_EaglerAdapterImpl2__wglBindBuffer(34962, $java.nleg_EffectPipelineFXAA_renderQuadBuffer); - nlea_EaglerAdapterImpl2__wglBufferData0(34962, $upload, 35044); - nlea_EaglerAdapterImpl2__wglEnableVertexAttribArray(0); - nlea_EaglerAdapterImpl2__wglVertexAttribPointer(0, 2, 5126, 0, 8, 0); - $pvert_shader = nlea_EaglerAdapterImpl2__wglCreateShader(35633); - nlea_EaglerAdapterImpl2__wglShaderSource($pvert_shader, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(60)), nlea_EaglerAdapterImpl2_fileContents($rt_s(895))))); - nlea_EaglerAdapterImpl2__wglCompileShader($pvert_shader); - if (!nlea_EaglerAdapterImpl2__wglGetShaderCompiled($pvert_shader)) - 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($pvert_shader))), $rt_s(60), $rt_s(896))), $rt_s(60)))); - $fxaa_shader = nlea_EaglerAdapterImpl2__wglCreateShader(35632); - nlea_EaglerAdapterImpl2__wglShaderSource($fxaa_shader, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(60)), nlea_EaglerAdapterImpl2_fileContents($rt_s(2499))))); - nlea_EaglerAdapterImpl2__wglCompileShader($fxaa_shader); - if (!nlea_EaglerAdapterImpl2__wglGetShaderCompiled($fxaa_shader)) - 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($fxaa_shader))), $rt_s(60), $rt_s(2500))), $rt_s(60)))); - $java.nleg_EffectPipelineFXAA_fxaaProgram = nlea_EaglerAdapterImpl2__wglCreateProgram(); - nlea_EaglerAdapterImpl2__wglAttachShader($java.nleg_EffectPipelineFXAA_fxaaProgram, $pvert_shader); - nlea_EaglerAdapterImpl2__wglAttachShader($java.nleg_EffectPipelineFXAA_fxaaProgram, $fxaa_shader); - nlea_EaglerAdapterImpl2__wglLinkProgram($java.nleg_EffectPipelineFXAA_fxaaProgram); - nlea_EaglerAdapterImpl2__wglDetachShader($java.nleg_EffectPipelineFXAA_fxaaProgram, $pvert_shader); - nlea_EaglerAdapterImpl2__wglDetachShader($java.nleg_EffectPipelineFXAA_fxaaProgram, $fxaa_shader); - nlea_EaglerAdapterImpl2__wglDeleteShader($pvert_shader); - nlea_EaglerAdapterImpl2__wglDeleteShader($fxaa_shader); - if (!nlea_EaglerAdapterImpl2__wglGetProgramLinked($java.nleg_EffectPipelineFXAA_fxaaProgram)) { - 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__wglGetProgramInfoLog($java.nleg_EffectPipelineFXAA_fxaaProgram))), $rt_s(60), $rt_s(2501))), $rt_s(60)))); - $java.nleg_EffectPipelineFXAA_fxaaProgram = null; - $rt_throw(jl_RuntimeException__init_($rt_s(2502))); - } - nlea_EaglerAdapterImpl2__wglUseProgram($java.nleg_EffectPipelineFXAA_fxaaProgram); - $c = nlea_EaglerAdapterImpl2__wglGetUniformLocation($java.nleg_EffectPipelineFXAA_fxaaProgram, $rt_s(902)); - if ($c !== null) - nlea_EaglerAdapterImpl2__wglUniform1i($c, 0); - $java.nleg_EffectPipelineFXAA_fxaaScreenSize = nlea_EaglerAdapterImpl2__wglGetUniformLocation($java.nleg_EffectPipelineFXAA_fxaaProgram, $rt_s(907)); - } - $java.nleg_EffectPipelineFXAA_isUsingFXAA = 1; - $java.nleg_EffectPipelineFXAA_destroy(); - nlea_EaglerAdapterImpl2_$callClinit(); - $upload = new nlea_EaglerAdapterImpl2$FramebufferGL; - $upload.$obj4 = nlea_EaglerAdapterImpl2_webgl.createFramebuffer(); - $java.nleg_EffectPipelineFXAA_framebuffer = $upload; - $upload = new nlea_EaglerAdapterImpl2$TextureGL; - $upload.$obj = nlea_EaglerAdapterImpl2_webgl.createTexture(); - $java.nleg_EffectPipelineFXAA_fxaaSourceTexture = $upload; - $upload = $java.nleg_EffectPipelineFXAA_fxaaSourceTexture; - $pvert_shader = nlea_EaglerAdapterImpl2_webgl; - $upload = $upload !== null ? $upload.$obj : null; - $pvert_shader.bindTexture(3553, $upload); - nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10240, 9728); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10241, 9728); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10242, 33071); - nlea_EaglerAdapterImpl2__wglTexParameteri(3553, 10243, 33071); - nlea_EaglerAdapterImpl2__wglTexImage2D(3553, 0, 32849, $java.nleg_EffectPipelineFXAA_width, $java.nleg_EffectPipelineFXAA_height, 0, 6407, 5121, null); - $java.nleg_EffectPipelineFXAA_framebuffer_depth = nlea_EaglerAdapterImpl2__wglCreateRenderBuffer(); - nlea_EaglerAdapterImpl2__wglBindRenderbuffer($java.nleg_EffectPipelineFXAA_framebuffer_depth); - nlea_EaglerAdapterImpl2__wglRenderbufferStorage(36012, $java.nleg_EffectPipelineFXAA_width, $java.nleg_EffectPipelineFXAA_height); - nlea_EaglerAdapterImpl2__wglBindFramebuffer(36160, $java.nleg_EffectPipelineFXAA_framebuffer); - nlea_EaglerAdapterImpl2__wglFramebufferTexture2D(36064, $java.nleg_EffectPipelineFXAA_fxaaSourceTexture); - nlea_EaglerAdapterImpl2__wglFramebufferRenderbuffer(36096, $java.nleg_EffectPipelineFXAA_framebuffer_depth); -}; -$java.nleg_EffectPipelineFXAA_initMSAA = function() { - var var$1, var$2, var$3, var$4, var$5, var$6; - $java.nleg_EffectPipelineFXAA_msaaInit = 1; - $java.nleg_EffectPipelineFXAA_isUsingFXAA = 0; - $java.nleg_EffectPipelineFXAA_destroy(); - nlea_EaglerAdapterImpl2_$callClinit(); - var$1 = new nlea_EaglerAdapterImpl2$FramebufferGL; - var$1.$obj4 = nlea_EaglerAdapterImpl2_webgl.createFramebuffer(); - $java.nleg_EffectPipelineFXAA_framebuffer = var$1; - var$1 = new nlea_EaglerAdapterImpl2$RenderbufferGL; - var$1.$obj6 = nlea_EaglerAdapterImpl2_webgl.createRenderbuffer(); - $java.nleg_EffectPipelineFXAA_framebuffer_color = var$1; - var$1 = new nlea_EaglerAdapterImpl2$RenderbufferGL; - var$1.$obj6 = nlea_EaglerAdapterImpl2_webgl.createRenderbuffer(); - $java.nleg_EffectPipelineFXAA_framebuffer_depth = var$1; - var$1 = $java.nleg_EffectPipelineFXAA_framebuffer; - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1 !== null ? var$1.$obj4 : null; - var$2.bindFramebuffer(36160, var$1); - var$1 = $java.nleg_EffectPipelineFXAA_framebuffer_color; - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1 !== null ? var$1.$obj6 : null; - var$2.bindRenderbuffer(36161, var$1); - var$3 = $java.nleg_EffectPipelineFXAA_state != 2 ? 8 : 4; - var$4 = $java.nleg_EffectPipelineFXAA_width; - var$5 = $java.nleg_EffectPipelineFXAA_height; - nlea_EaglerAdapterImpl2_webgl.renderbufferStorageMultisample(36161, var$3, 32849, var$4, var$5); - var$1 = $java.nleg_EffectPipelineFXAA_framebuffer_depth; - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1 !== null ? var$1.$obj6 : null; - var$2.bindRenderbuffer(36161, var$1); - var$4 = $java.nleg_EffectPipelineFXAA_state != 2 ? 8 : 4; - var$3 = $java.nleg_EffectPipelineFXAA_width; - var$6 = $java.nleg_EffectPipelineFXAA_height; - nlea_EaglerAdapterImpl2_webgl.renderbufferStorageMultisample(36161, var$4, 36012, var$3, var$6); - nlea_EaglerAdapterImpl2__wglFramebufferRenderbuffer(36064, $java.nleg_EffectPipelineFXAA_framebuffer_color); - nlea_EaglerAdapterImpl2__wglFramebufferRenderbuffer(36096, $java.nleg_EffectPipelineFXAA_framebuffer_depth); - var$1 = nlea_EaglerAdapterImpl2_webgl; - var$2 = null; - var$1.bindFramebuffer(36160, var$2); -}; -$java.nleg_EffectPipelineFXAA_destroy = function() { - var var$1, var$2; - if ($java.nleg_EffectPipelineFXAA_framebuffer !== null) { - var$1 = $java.nleg_EffectPipelineFXAA_framebuffer; - nlea_EaglerAdapterImpl2_$callClinit(); - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1.$obj4; - var$2.deleteFramebuffer(var$1); - } - if ($java.nleg_EffectPipelineFXAA_framebuffer_color !== null) { - var$1 = $java.nleg_EffectPipelineFXAA_framebuffer_color; - nlea_EaglerAdapterImpl2_$callClinit(); - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1.$obj6; - var$2.deleteRenderbuffer(var$1); - } - if ($java.nleg_EffectPipelineFXAA_framebuffer_depth !== null) { - var$1 = $java.nleg_EffectPipelineFXAA_framebuffer_depth; - nlea_EaglerAdapterImpl2_$callClinit(); - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1.$obj6; - var$2.deleteRenderbuffer(var$1); - } - if ($java.nleg_EffectPipelineFXAA_fxaaSourceTexture !== null) { - var$1 = $java.nleg_EffectPipelineFXAA_fxaaSourceTexture; - nlea_EaglerAdapterImpl2_$callClinit(); - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1.$obj; - var$2.deleteTexture(var$1); - } - $java.nleg_EffectPipelineFXAA_framebuffer = null; - $java.nleg_EffectPipelineFXAA_framebuffer_color = null; - $java.nleg_EffectPipelineFXAA_framebuffer_depth = null; - $java.nleg_EffectPipelineFXAA_fxaaSourceTexture = null; -}; -function nleg_EffectPipelineFXAA_beginPipelineRender() { - var $mode, var$2, var$3, var$4, var$5, var$6; - $mode = nmc_Minecraft_theMinecraft.$gameSettings.$antialiasMode; - if (!$mode) - $java.nleg_EffectPipelineFXAA_newState = 0; - if ($mode == 1) - $java.nleg_EffectPipelineFXAA_newState = !nmc_Minecraft_theMinecraft.$gameSettings.$fancyGraphics ? 0 : 1; - if ($mode == 2) - $java.nleg_EffectPipelineFXAA_newState = 1; - if ($mode == 3) - $java.nleg_EffectPipelineFXAA_newState = 2; - if ($mode == 4) - $java.nleg_EffectPipelineFXAA_newState = 3; - if ($java.nleg_EffectPipelineFXAA_state != $java.nleg_EffectPipelineFXAA_newState) { - $java.nleg_EffectPipelineFXAA_state = $java.nleg_EffectPipelineFXAA_newState; - if (!$java.nleg_EffectPipelineFXAA_state) - $java.nleg_EffectPipelineFXAA_destroy(); - $java.nleg_EffectPipelineFXAA_width = (-1); - $java.nleg_EffectPipelineFXAA_height = (-1); - } - if (!$java.nleg_EffectPipelineFXAA_state) - return; - nlea_EaglerAdapterImpl2__wglGetParameter(2978, 4, $java.nleg_EffectPipelineFXAA_originalViewport); - if (!($java.nleg_EffectPipelineFXAA_width == $java.nleg_EffectPipelineFXAA_originalViewport.data[2] && $java.nleg_EffectPipelineFXAA_height == $java.nleg_EffectPipelineFXAA_originalViewport.data[3])) { - $java.nleg_EffectPipelineFXAA_width = $java.nleg_EffectPipelineFXAA_originalViewport.data[2]; - $java.nleg_EffectPipelineFXAA_height = $java.nleg_EffectPipelineFXAA_originalViewport.data[3]; - if ($java.nleg_EffectPipelineFXAA_state == 1) { - if ($java.nleg_EffectPipelineFXAA_isUsingFXAA && $java.nleg_EffectPipelineFXAA_fxaaProgram !== null) { - var$2 = $java.nleg_EffectPipelineFXAA_fxaaSourceTexture; - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2 !== null ? var$2.$obj : null; - var$3.bindTexture(3553, var$2); - nlea_EaglerAdapterImpl2__wglTexImage2D(3553, 0, 32849, $java.nleg_EffectPipelineFXAA_width, $java.nleg_EffectPipelineFXAA_height, 0, 6407, 5121, null); - var$2 = $java.nleg_EffectPipelineFXAA_framebuffer_depth; - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2 !== null ? var$2.$obj6 : null; - var$3.bindRenderbuffer(36161, var$2); - $mode = $java.nleg_EffectPipelineFXAA_width; - var$4 = $java.nleg_EffectPipelineFXAA_height; - nlea_EaglerAdapterImpl2_webgl.renderbufferStorage(36161, 36012, $mode, var$4); - } else - $java.nleg_EffectPipelineFXAA_initFXAA(); - } else if (!($java.nleg_EffectPipelineFXAA_state != 2 && $java.nleg_EffectPipelineFXAA_state != 3)) { - if ($java.nleg_EffectPipelineFXAA_isUsingFXAA != 1 && $java.nleg_EffectPipelineFXAA_msaaInit) { - var$2 = $java.nleg_EffectPipelineFXAA_framebuffer_color; - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2 !== null ? var$2.$obj6 : null; - var$3.bindRenderbuffer(36161, var$2); - $mode = $java.nleg_EffectPipelineFXAA_state != 2 ? 8 : 4; - var$5 = $java.nleg_EffectPipelineFXAA_width; - var$6 = $java.nleg_EffectPipelineFXAA_height; - nlea_EaglerAdapterImpl2_webgl.renderbufferStorageMultisample(36161, $mode, 32849, var$5, var$6); - nlea_EaglerAdapterImpl2__wglBindRenderbuffer($java.nleg_EffectPipelineFXAA_framebuffer_depth); - nlea_EaglerAdapterImpl2__wglRenderbufferStorageMultisample($java.nleg_EffectPipelineFXAA_state != 2 ? 8 : 4, 36012, $java.nleg_EffectPipelineFXAA_width, $java.nleg_EffectPipelineFXAA_height); - } else - $java.nleg_EffectPipelineFXAA_initMSAA(); - } - } - var$2 = $java.nleg_EffectPipelineFXAA_framebuffer; - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2 !== null ? var$2.$obj4 : null; - var$3.bindFramebuffer(36160, var$2); - nlea_EaglerAdapterImpl2__wglViewport(0, 0, $java.nleg_EffectPipelineFXAA_width, $java.nleg_EffectPipelineFXAA_height); - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL && !($java.nleg_EffectPipelineFXAA_state != 2 && $java.nleg_EffectPipelineFXAA_state != 3)) { - nlea_EaglerAdapterImpl2_webgl.enable((-1)); - nlea_EaglerAdapterImpl2_webgl.enable((-1)); - } -} -function nleg_EffectPipelineFXAA_endPipelineRender() { - var var$1, var$2, var$3, var$4, var$5; - if (!$java.nleg_EffectPipelineFXAA_state) - return; - nlea_EaglerAdapterImpl2_$callClinit(); - var$1 = nlea_EaglerAdapterImpl2_webgl; - var$2 = null; - var$1.bindFramebuffer(36160, var$2); - nlea_EaglerAdapterImpl2_webgl.clear(16640); - if ($java.nleg_EffectPipelineFXAA_state == 1) { - nlea_EaglerAdapterImpl2__wglViewport($java.nleg_EffectPipelineFXAA_originalViewport.data[0], $java.nleg_EffectPipelineFXAA_originalViewport.data[1], $java.nleg_EffectPipelineFXAA_originalViewport.data[2], $java.nleg_EffectPipelineFXAA_originalViewport.data[3]); - nlea_EaglerAdapterImpl2_webgl.activeTexture(33984); - var$1 = $java.nleg_EffectPipelineFXAA_fxaaSourceTexture; - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1 !== null ? var$1.$obj : null; - var$2.bindTexture(3553, var$1); - nlea_EaglerAdapterImpl2_webgl.disable(2929); - nlea_EaglerAdapterImpl2_webgl.disable(2884); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!0); - nlea_EaglerAdapterImpl2__wglUseProgram($java.nleg_EffectPipelineFXAA_fxaaProgram); - var$1 = $java.nleg_EffectPipelineFXAA_fxaaScreenSize; - var$3 = $java.nleg_EffectPipelineFXAA_width; - var$4 = $java.nleg_EffectPipelineFXAA_height; - if (var$1 !== null) { - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1.$obj3; - var$2.uniform2f(var$1, var$3, var$4); - } - var$1 = $java.nleg_EffectPipelineFXAA_renderQuadArray; - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1 !== null ? var$1.$obj5 : null; - var$2.bindVertexArray(var$1); - nlea_EaglerAdapterImpl2_webgl.drawArrays(4, 0, 6); - nlea_EaglerAdapterImpl2_webgl.enable(2929); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - } else if (!($java.nleg_EffectPipelineFXAA_state != 2 && $java.nleg_EffectPipelineFXAA_state != 3)) { - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL) { - nlea_EaglerAdapterImpl2_webgl.disable((-1)); - nlea_EaglerAdapterImpl2_webgl.disable((-1)); - } - nlea_EaglerAdapterImpl2__wglViewport($java.nleg_EffectPipelineFXAA_originalViewport.data[0], $java.nleg_EffectPipelineFXAA_originalViewport.data[1], $java.nleg_EffectPipelineFXAA_originalViewport.data[2], $java.nleg_EffectPipelineFXAA_originalViewport.data[3]); - var$1 = $java.nleg_EffectPipelineFXAA_framebuffer; - var$2 = nlea_EaglerAdapterImpl2_webgl; - var$1 = var$1 !== null ? var$1.$obj4 : null; - var$2.bindFramebuffer(36008, var$1); - var$1 = nlea_EaglerAdapterImpl2_webgl; - var$2 = null; - var$1.bindFramebuffer(36009, var$2); - var$1 = nlea_EaglerAdapterImpl2_webgl; - var$5 = $rt_createIntArray(1); - var$5.data[0] = 1029; - var$1.drawBuffers(otji_JS_wrap(var$5)); - nlea_EaglerAdapterImpl2__wglBlitFramebuffer(0, 0, $java.nleg_EffectPipelineFXAA_width, $java.nleg_EffectPipelineFXAA_height, 0, 0, $java.nleg_EffectPipelineFXAA_width, $java.nleg_EffectPipelineFXAA_height, 16384, 9728); - var$1 = nlea_EaglerAdapterImpl2_webgl; - var$2 = null; - var$1.bindFramebuffer(36008, var$2); - } -} -function nleg_EffectPipelineFXAA__clinit_() { - $java.nleg_EffectPipelineFXAA_isUsingFXAA = 0; - $java.nleg_EffectPipelineFXAA_framebuffer = null; - $java.nleg_EffectPipelineFXAA_framebuffer_color = null; - $java.nleg_EffectPipelineFXAA_framebuffer_depth = null; - $java.nleg_EffectPipelineFXAA_fxaaProgram = null; - $java.nleg_EffectPipelineFXAA_fxaaSourceTexture = null; - $java.nleg_EffectPipelineFXAA_fxaaScreenSize = null; - $java.nleg_EffectPipelineFXAA_renderQuadArray = null; - $java.nleg_EffectPipelineFXAA_width = (-1); - $java.nleg_EffectPipelineFXAA_height = (-1); - $java.nleg_EffectPipelineFXAA_originalViewport = $rt_createIntArray(4); - $java.nleg_EffectPipelineFXAA_state = 1; - $java.nleg_EffectPipelineFXAA_newState = (-1); - $java.nleg_EffectPipelineFXAA_msaaInit = 0; -} -function nms_ActiveRenderInfo() { - jl_Object.call(this); -} -$java.nms_ActiveRenderInfo_objectX = 0.0; -$java.nms_ActiveRenderInfo_objectY = 0.0; -$java.nms_ActiveRenderInfo_objectZ = 0.0; -$java.nms_ActiveRenderInfo_viewport = null; -$java.nms_ActiveRenderInfo_modelview = null; -$java.nms_ActiveRenderInfo_projection = null; -$java.nms_ActiveRenderInfo_objectCoords = null; -var nms_ActiveRenderInfo_rotationX = 0.0; -var nms_ActiveRenderInfo_rotationXZ = 0.0; -var nms_ActiveRenderInfo_rotationZ = 0.0; -var nms_ActiveRenderInfo_rotationYZ = 0.0; -var nms_ActiveRenderInfo_rotationXY = 0.0; -$java.nms_ActiveRenderInfo__init_ = function() { - var var_0 = new nms_ActiveRenderInfo(); - nms_ActiveRenderInfo__init_(var_0); - return var_0; -}; -function nms_ActiveRenderInfo__init_($this) { - return; -} -function nms_ActiveRenderInfo_updateRenderInfo($par0EntityPlayer, $par1) { - var var$3, $var4, $var5, $var2, var$7, $var3, $var6; - var$3 = $java.nms_ActiveRenderInfo_modelview; - var$3.$position = 0; - var$3.$limit = var$3.$capacity; - var$3.$mark = (-1); - var$3 = $java.nms_ActiveRenderInfo_projection; - var$3.$position = 0; - var$3.$limit = var$3.$capacity; - var$3.$mark = (-1); - nleg_EaglerAdapterGL30_glGetFloat(38, $java.nms_ActiveRenderInfo_modelview); - nleg_EaglerAdapterGL30_glGetFloat(39, $java.nms_ActiveRenderInfo_projection); - nlea_EaglerAdapterImpl2__wglGetParameter(2978, 4, $java.nms_ActiveRenderInfo_viewport); - jn_Buffer_position0($java.nms_ActiveRenderInfo_modelview, 0); - jn_Buffer_position0($java.nms_ActiveRenderInfo_projection, 0); - jn_Buffer_position0($java.nms_ActiveRenderInfo_objectCoords, 0); - nleg_EaglerAdapterGL30_gluUnProject(($java.nms_ActiveRenderInfo_viewport.data[0] + $java.nms_ActiveRenderInfo_viewport.data[2] | 0) / 2 | 0, ($java.nms_ActiveRenderInfo_viewport.data[1] + $java.nms_ActiveRenderInfo_viewport.data[3] | 0) / 2 | 0, 0.0, $java.nms_ActiveRenderInfo_modelview, $java.nms_ActiveRenderInfo_projection, $java.nms_ActiveRenderInfo_viewport, $java.nms_ActiveRenderInfo_objectCoords); - $java.nms_ActiveRenderInfo_objectX = $java.jn_FloatBufferImpl_get($java.nms_ActiveRenderInfo_objectCoords, 0); - $java.nms_ActiveRenderInfo_objectY = $java.jn_FloatBufferImpl_get($java.nms_ActiveRenderInfo_objectCoords, 1); - $java.nms_ActiveRenderInfo_objectZ = $java.jn_FloatBufferImpl_get($java.nms_ActiveRenderInfo_objectCoords, 2); - $var4 = !$par1 ? 0 : 1; - $var5 = $par0EntityPlayer.$rotationPitch; - $var2 = $par0EntityPlayer.$rotationYaw * 3.1415927410125732 / 180.0; - var$7 = nms_MathHelper_SIN_TABLE.data; - $var2 = $var2 * 10430.3779296875; - $var3 = var$7[($var2 + 16384.0 | 0) & 65535]; - $var6 = 1 - ($var4 * 2 | 0) | 0; - nms_ActiveRenderInfo_rotationX = $var3 * $var6; - nms_ActiveRenderInfo_rotationZ = nms_MathHelper_SIN_TABLE.data[($var2 | 0) & 65535] * $var6; - $var2 = -nms_ActiveRenderInfo_rotationZ; - $var3 = $var5 * 3.1415927410125732 / 180.0; - var$7 = nms_MathHelper_SIN_TABLE.data; - $var5 = $var3 * 10430.3779296875; - $par1 = ($var5 | 0) & 65535; - nms_ActiveRenderInfo_rotationYZ = $var2 * var$7[$par1] * $var6; - nms_ActiveRenderInfo_rotationXY = nms_ActiveRenderInfo_rotationX * nms_MathHelper_SIN_TABLE.data[$par1] * $var6; - nms_ActiveRenderInfo_rotationXZ = nms_MathHelper_SIN_TABLE.data[($var5 + 16384.0 | 0) & 65535]; -} -$java.nms_ActiveRenderInfo_projectViewFromEntity = function($par0EntityLiving, $par1) { - var $var3, $var5, $var7, $var9, $var11, $var13; - $var3 = $par0EntityLiving.$prevPosX + ($par0EntityLiving.$posX - $par0EntityLiving.$prevPosX) * $par1; - $var5 = $par0EntityLiving.$prevPosY + ($par0EntityLiving.$posY - $par0EntityLiving.$prevPosY) * $par1 + 0.11999999731779099; - $var7 = $par0EntityLiving.$prevPosZ + ($par0EntityLiving.$posZ - $par0EntityLiving.$prevPosZ) * $par1; - $var9 = $var3 + $java.nms_ActiveRenderInfo_objectX * 1.0; - $var11 = $var5 + $java.nms_ActiveRenderInfo_objectY * 1.0; - $var13 = $var7 + $java.nms_ActiveRenderInfo_objectZ * 1.0; - return nms_Vec3Pool_getVecFromPool($par0EntityLiving.$worldObj.$vecPool, $var9, $var11, $var13); -}; -function nms_ActiveRenderInfo_getBlockIdAtEntityViewpoint($par0World, $par1EntityLiving, $par2) { - var $var3, var$5, var$6, var$7, var$8, var$9, $var5, var$11, $var6, $var7; - $var3 = $java.nms_ActiveRenderInfo_projectViewFromEntity($par1EntityLiving, $par2); - var$5 = $var3.$xCoord; - var$6 = var$5 | 0; - if (var$5 < var$6) - var$6 = var$6 - 1 | 0; - var$5 = $var3.$yCoord; - var$7 = var$5 | 0; - if (var$5 < var$7) - var$7 = var$7 - 1 | 0; - var$8 = $var3.$zCoord; - var$9 = var$8 | 0; - if (var$8 < var$9) - var$9 = var$9 - 1 | 0; - $var5 = nms_World_getBlockId($par0World, var$6, var$7, var$9); - if ($var5) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var5].$blockMaterial.$isLiquid()) { - var$11 = nms_World_getBlockMetadata($par0World, var$6, var$7, var$9); - if (var$11 >= 8) - var$11 = 0; - $var6 = (var$11 + 1 | 0) / 9.0 - 0.1111111119389534; - var$7 = var$7 + 1 | 0; - $var7 = var$7 - $var6; - if ($var3.$yCoord >= $var7) - $var5 = nms_World_getBlockId($par0World, var$6, var$7, var$9); - } - } - return $var5; -} -function nms_ActiveRenderInfo__clinit_() { - var var$1, var$2, var$3, var$4; - $java.nms_ActiveRenderInfo_objectX = 0.0; - $java.nms_ActiveRenderInfo_objectY = 0.0; - $java.nms_ActiveRenderInfo_objectZ = 0.0; - $java.nms_ActiveRenderInfo_viewport = $rt_createIntArray(4); - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL) - var$1 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$2 = $rt_createFloatArray(16); - var$3 = var$2.data.length; - var$1 = new jn_FloatBufferOverArray; - var$4 = 0 + var$3 | 0; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$position = 0; - var$1.$limit = var$4; - var$1.$start5 = 0; - var$1.$readOnly5 = 0; - var$1.$array4 = var$2; - } - $java.nms_ActiveRenderInfo_modelview = var$1; - if (!nleg_EaglerAdapterGL30_isWebGL) - var$1 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$2 = $rt_createFloatArray(16); - var$3 = var$2.data.length; - var$1 = new jn_FloatBufferOverArray; - var$4 = 0 + var$3 | 0; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$position = 0; - var$1.$limit = var$4; - var$1.$start5 = 0; - var$1.$readOnly5 = 0; - var$1.$array4 = var$2; - } - $java.nms_ActiveRenderInfo_projection = var$1; - if (!nleg_EaglerAdapterGL30_isWebGL) - var$1 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(12)); - else { - var$2 = $rt_createFloatArray(3); - var$3 = var$2.data.length; - var$1 = new jn_FloatBufferOverArray; - var$4 = 0 + var$3 | 0; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$position = 0; - var$1.$limit = var$4; - var$1.$start5 = 0; - var$1.$readOnly5 = 0; - var$1.$array4 = var$2; - } - $java.nms_ActiveRenderInfo_objectCoords = var$1; -} -function nms_ClippingHelper() { - var a = this; jl_Object.call(a); - a.$frustum = null; - a.$projectionMatrix0 = null; - a.$modelviewMatrix = null; - a.$clippingMatrix = null; -} -$java.nms_ClippingHelper__init_ = function() { - var var_0 = new nms_ClippingHelper(); - nms_ClippingHelper__init_(var_0); - return var_0; -}; -function nms_ClippingHelper__init_($this) { - $this.$frustum = $rt_createFloatMultiArray([16, 16]); - $this.$projectionMatrix0 = $rt_createFloatArray(16); - $this.$modelviewMatrix = $rt_createFloatArray(16); - $this.$clippingMatrix = $rt_createFloatArray(16); -} -$java.nms_ClippingHelper_isBoxInFrustum = function($this, $par1, $par3, $par5, $par7, $par9, $par11) { - var $var13; - $var13 = 0; - while ($var13 < 6) { - if ($this.$frustum.data[$var13].data[0] * $par1 + $this.$frustum.data[$var13].data[1] * $par3 + $this.$frustum.data[$var13].data[2] * $par5 + $this.$frustum.data[$var13].data[3] <= 0.0 && $this.$frustum.data[$var13].data[0] * $par7 + $this.$frustum.data[$var13].data[1] * $par3 + $this.$frustum.data[$var13].data[2] * $par5 + $this.$frustum.data[$var13].data[3] <= 0.0 && $this.$frustum.data[$var13].data[0] * $par1 + $this.$frustum.data[$var13].data[1] * $par9 + $this.$frustum.data[$var13].data[2] * $par5 - + $this.$frustum.data[$var13].data[3] <= 0.0 && $this.$frustum.data[$var13].data[0] * $par7 + $this.$frustum.data[$var13].data[1] * $par9 + $this.$frustum.data[$var13].data[2] * $par5 + $this.$frustum.data[$var13].data[3] <= 0.0 && $this.$frustum.data[$var13].data[0] * $par1 + $this.$frustum.data[$var13].data[1] * $par3 + $this.$frustum.data[$var13].data[2] * $par11 + $this.$frustum.data[$var13].data[3] <= 0.0 && $this.$frustum.data[$var13].data[0] * $par7 + $this.$frustum.data[$var13].data[1] * $par3 - + $this.$frustum.data[$var13].data[2] * $par11 + $this.$frustum.data[$var13].data[3] <= 0.0 && $this.$frustum.data[$var13].data[0] * $par1 + $this.$frustum.data[$var13].data[1] * $par9 + $this.$frustum.data[$var13].data[2] * $par11 + $this.$frustum.data[$var13].data[3] <= 0.0 && $this.$frustum.data[$var13].data[0] * $par7 + $this.$frustum.data[$var13].data[1] * $par9 + $this.$frustum.data[$var13].data[2] * $par11 + $this.$frustum.data[$var13].data[3] <= 0.0) - return 0; - $var13 = $var13 + 1 | 0; - } - return 1; -}; -function nms_ClippingHelperImpl() { - var a = this; nms_ClippingHelper.call(a); - a.$projectionMatrixBuffer = null; - a.$modelviewMatrixBuffer = null; - a.$field_78564_h = null; -} -$java.nms_ClippingHelperImpl_instance = null; -$java.nms_ClippingHelperImpl__init_ = function() { - var var_0 = new nms_ClippingHelperImpl(); - nms_ClippingHelperImpl__init_(var_0); - return var_0; -}; -function nms_ClippingHelperImpl__init_($this) { - var var$1, var$2, var$3, var$4, var$5; - $this.$frustum = $rt_createFloatMultiArray([16, 16]); - $this.$projectionMatrix0 = $rt_createFloatArray(16); - $this.$modelviewMatrix = $rt_createFloatArray(16); - $this.$clippingMatrix = $rt_createFloatArray(16); - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL) - var$1 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$2 = $rt_createFloatArray(16); - var$3 = var$2.data.length; - var$1 = new jn_FloatBufferOverArray; - var$4 = 0 + var$3 | 0; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$position = 0; - var$1.$limit = var$4; - var$1.$start5 = 0; - var$1.$readOnly5 = 0; - var$1.$array4 = var$2; - } - $this.$projectionMatrixBuffer = var$1; - if (!nleg_EaglerAdapterGL30_isWebGL) - var$1 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$2 = $rt_createFloatArray(16); - var$3 = var$2.data.length; - var$1 = new jn_FloatBufferOverArray; - var$5 = 0 + var$3 | 0; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$position = 0; - var$1.$limit = var$5; - var$1.$start5 = 0; - var$1.$readOnly5 = 0; - var$1.$array4 = var$2; - } - $this.$modelviewMatrixBuffer = var$1; - if (!nleg_EaglerAdapterGL30_isWebGL) - var$1 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$2 = $rt_createFloatArray(16); - var$3 = var$2.data.length; - var$1 = new jn_FloatBufferOverArray; - var$5 = 0 + var$3 | 0; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$position = 0; - var$1.$limit = var$5; - var$1.$start5 = 0; - var$1.$readOnly5 = 0; - var$1.$array4 = var$2; - } - $this.$field_78564_h = var$1; -} -function nms_ClippingHelperImpl_getInstance() { - $java.nms_ClippingHelperImpl_init($java.nms_ClippingHelperImpl_instance); - return $java.nms_ClippingHelperImpl_instance; -} -$java.nms_ClippingHelperImpl_normalize = function($this, $par1ArrayOfFloat, $par2) { - var $var3, var$4; - $par1ArrayOfFloat = $par1ArrayOfFloat.data; - $var3 = jl_Math_sqrt($par1ArrayOfFloat[$par2].data[0] * $par1ArrayOfFloat[$par2].data[0] + $par1ArrayOfFloat[$par2].data[1] * $par1ArrayOfFloat[$par2].data[1] + $par1ArrayOfFloat[$par2].data[2] * $par1ArrayOfFloat[$par2].data[2]); - var$4 = $par1ArrayOfFloat[$par2].data; - var$4[0] = var$4[0] / $var3; - var$4 = $par1ArrayOfFloat[$par2].data; - var$4[1] = var$4[1] / $var3; - var$4 = $par1ArrayOfFloat[$par2].data; - var$4[2] = var$4[2] / $var3; - $par1ArrayOfFloat = $par1ArrayOfFloat[$par2].data; - $par1ArrayOfFloat[3] = $par1ArrayOfFloat[3] / $var3; -}; -$java.nms_ClippingHelperImpl_init = function($this) { - jn_FloatBuffer_clear($this.$projectionMatrixBuffer); - jn_FloatBuffer_clear($this.$modelviewMatrixBuffer); - jn_FloatBuffer_clear($this.$field_78564_h); - nleg_EaglerAdapterGL30_glGetFloat(39, $this.$projectionMatrixBuffer); - nleg_EaglerAdapterGL30_glGetFloat(38, $this.$modelviewMatrixBuffer); - jn_FloatBuffer_limit(jn_FloatBuffer_flip($this.$projectionMatrixBuffer), 16); - jn_FloatBuffer_get0($this.$projectionMatrixBuffer, $this.$projectionMatrix0); - jn_FloatBuffer_limit(jn_FloatBuffer_flip($this.$modelviewMatrixBuffer), 16); - jn_FloatBuffer_get0($this.$modelviewMatrixBuffer, $this.$modelviewMatrix); - $this.$clippingMatrix.data[0] = $this.$modelviewMatrix.data[0] * $this.$projectionMatrix0.data[0] + $this.$modelviewMatrix.data[1] * $this.$projectionMatrix0.data[4] + $this.$modelviewMatrix.data[2] * $this.$projectionMatrix0.data[8] + $this.$modelviewMatrix.data[3] * $this.$projectionMatrix0.data[12]; - $this.$clippingMatrix.data[1] = $this.$modelviewMatrix.data[0] * $this.$projectionMatrix0.data[1] + $this.$modelviewMatrix.data[1] * $this.$projectionMatrix0.data[5] + $this.$modelviewMatrix.data[2] * $this.$projectionMatrix0.data[9] + $this.$modelviewMatrix.data[3] * $this.$projectionMatrix0.data[13]; - $this.$clippingMatrix.data[2] = $this.$modelviewMatrix.data[0] * $this.$projectionMatrix0.data[2] + $this.$modelviewMatrix.data[1] * $this.$projectionMatrix0.data[6] + $this.$modelviewMatrix.data[2] * $this.$projectionMatrix0.data[10] + $this.$modelviewMatrix.data[3] * $this.$projectionMatrix0.data[14]; - $this.$clippingMatrix.data[3] = $this.$modelviewMatrix.data[0] * $this.$projectionMatrix0.data[3] + $this.$modelviewMatrix.data[1] * $this.$projectionMatrix0.data[7] + $this.$modelviewMatrix.data[2] * $this.$projectionMatrix0.data[11] + $this.$modelviewMatrix.data[3] * $this.$projectionMatrix0.data[15]; - $this.$clippingMatrix.data[4] = $this.$modelviewMatrix.data[4] * $this.$projectionMatrix0.data[0] + $this.$modelviewMatrix.data[5] * $this.$projectionMatrix0.data[4] + $this.$modelviewMatrix.data[6] * $this.$projectionMatrix0.data[8] + $this.$modelviewMatrix.data[7] * $this.$projectionMatrix0.data[12]; - $this.$clippingMatrix.data[5] = $this.$modelviewMatrix.data[4] * $this.$projectionMatrix0.data[1] + $this.$modelviewMatrix.data[5] * $this.$projectionMatrix0.data[5] + $this.$modelviewMatrix.data[6] * $this.$projectionMatrix0.data[9] + $this.$modelviewMatrix.data[7] * $this.$projectionMatrix0.data[13]; - $this.$clippingMatrix.data[6] = $this.$modelviewMatrix.data[4] * $this.$projectionMatrix0.data[2] + $this.$modelviewMatrix.data[5] * $this.$projectionMatrix0.data[6] + $this.$modelviewMatrix.data[6] * $this.$projectionMatrix0.data[10] + $this.$modelviewMatrix.data[7] * $this.$projectionMatrix0.data[14]; - $this.$clippingMatrix.data[7] = $this.$modelviewMatrix.data[4] * $this.$projectionMatrix0.data[3] + $this.$modelviewMatrix.data[5] * $this.$projectionMatrix0.data[7] + $this.$modelviewMatrix.data[6] * $this.$projectionMatrix0.data[11] + $this.$modelviewMatrix.data[7] * $this.$projectionMatrix0.data[15]; - $this.$clippingMatrix.data[8] = $this.$modelviewMatrix.data[8] * $this.$projectionMatrix0.data[0] + $this.$modelviewMatrix.data[9] * $this.$projectionMatrix0.data[4] + $this.$modelviewMatrix.data[10] * $this.$projectionMatrix0.data[8] + $this.$modelviewMatrix.data[11] * $this.$projectionMatrix0.data[12]; - $this.$clippingMatrix.data[9] = $this.$modelviewMatrix.data[8] * $this.$projectionMatrix0.data[1] + $this.$modelviewMatrix.data[9] * $this.$projectionMatrix0.data[5] + $this.$modelviewMatrix.data[10] * $this.$projectionMatrix0.data[9] + $this.$modelviewMatrix.data[11] * $this.$projectionMatrix0.data[13]; - $this.$clippingMatrix.data[10] = $this.$modelviewMatrix.data[8] * $this.$projectionMatrix0.data[2] + $this.$modelviewMatrix.data[9] * $this.$projectionMatrix0.data[6] + $this.$modelviewMatrix.data[10] * $this.$projectionMatrix0.data[10] + $this.$modelviewMatrix.data[11] * $this.$projectionMatrix0.data[14]; - $this.$clippingMatrix.data[11] = $this.$modelviewMatrix.data[8] * $this.$projectionMatrix0.data[3] + $this.$modelviewMatrix.data[9] * $this.$projectionMatrix0.data[7] + $this.$modelviewMatrix.data[10] * $this.$projectionMatrix0.data[11] + $this.$modelviewMatrix.data[11] * $this.$projectionMatrix0.data[15]; - $this.$clippingMatrix.data[12] = $this.$modelviewMatrix.data[12] * $this.$projectionMatrix0.data[0] + $this.$modelviewMatrix.data[13] * $this.$projectionMatrix0.data[4] + $this.$modelviewMatrix.data[14] * $this.$projectionMatrix0.data[8] + $this.$modelviewMatrix.data[15] * $this.$projectionMatrix0.data[12]; - $this.$clippingMatrix.data[13] = $this.$modelviewMatrix.data[12] * $this.$projectionMatrix0.data[1] + $this.$modelviewMatrix.data[13] * $this.$projectionMatrix0.data[5] + $this.$modelviewMatrix.data[14] * $this.$projectionMatrix0.data[9] + $this.$modelviewMatrix.data[15] * $this.$projectionMatrix0.data[13]; - $this.$clippingMatrix.data[14] = $this.$modelviewMatrix.data[12] * $this.$projectionMatrix0.data[2] + $this.$modelviewMatrix.data[13] * $this.$projectionMatrix0.data[6] + $this.$modelviewMatrix.data[14] * $this.$projectionMatrix0.data[10] + $this.$modelviewMatrix.data[15] * $this.$projectionMatrix0.data[14]; - $this.$clippingMatrix.data[15] = $this.$modelviewMatrix.data[12] * $this.$projectionMatrix0.data[3] + $this.$modelviewMatrix.data[13] * $this.$projectionMatrix0.data[7] + $this.$modelviewMatrix.data[14] * $this.$projectionMatrix0.data[11] + $this.$modelviewMatrix.data[15] * $this.$projectionMatrix0.data[15]; - $this.$frustum.data[0].data[0] = $this.$clippingMatrix.data[3] - $this.$clippingMatrix.data[0]; - $this.$frustum.data[0].data[1] = $this.$clippingMatrix.data[7] - $this.$clippingMatrix.data[4]; - $this.$frustum.data[0].data[2] = $this.$clippingMatrix.data[11] - $this.$clippingMatrix.data[8]; - $this.$frustum.data[0].data[3] = $this.$clippingMatrix.data[15] - $this.$clippingMatrix.data[12]; - $java.nms_ClippingHelperImpl_normalize($this, $this.$frustum, 0); - $this.$frustum.data[1].data[0] = $this.$clippingMatrix.data[3] + $this.$clippingMatrix.data[0]; - $this.$frustum.data[1].data[1] = $this.$clippingMatrix.data[7] + $this.$clippingMatrix.data[4]; - $this.$frustum.data[1].data[2] = $this.$clippingMatrix.data[11] + $this.$clippingMatrix.data[8]; - $this.$frustum.data[1].data[3] = $this.$clippingMatrix.data[15] + $this.$clippingMatrix.data[12]; - $java.nms_ClippingHelperImpl_normalize($this, $this.$frustum, 1); - $this.$frustum.data[2].data[0] = $this.$clippingMatrix.data[3] + $this.$clippingMatrix.data[1]; - $this.$frustum.data[2].data[1] = $this.$clippingMatrix.data[7] + $this.$clippingMatrix.data[5]; - $this.$frustum.data[2].data[2] = $this.$clippingMatrix.data[11] + $this.$clippingMatrix.data[9]; - $this.$frustum.data[2].data[3] = $this.$clippingMatrix.data[15] + $this.$clippingMatrix.data[13]; - $java.nms_ClippingHelperImpl_normalize($this, $this.$frustum, 2); - $this.$frustum.data[3].data[0] = $this.$clippingMatrix.data[3] - $this.$clippingMatrix.data[1]; - $this.$frustum.data[3].data[1] = $this.$clippingMatrix.data[7] - $this.$clippingMatrix.data[5]; - $this.$frustum.data[3].data[2] = $this.$clippingMatrix.data[11] - $this.$clippingMatrix.data[9]; - $this.$frustum.data[3].data[3] = $this.$clippingMatrix.data[15] - $this.$clippingMatrix.data[13]; - $java.nms_ClippingHelperImpl_normalize($this, $this.$frustum, 3); - $this.$frustum.data[4].data[0] = $this.$clippingMatrix.data[3] - $this.$clippingMatrix.data[2]; - $this.$frustum.data[4].data[1] = $this.$clippingMatrix.data[7] - $this.$clippingMatrix.data[6]; - $this.$frustum.data[4].data[2] = $this.$clippingMatrix.data[11] - $this.$clippingMatrix.data[10]; - $this.$frustum.data[4].data[3] = $this.$clippingMatrix.data[15] - $this.$clippingMatrix.data[14]; - $java.nms_ClippingHelperImpl_normalize($this, $this.$frustum, 4); - $this.$frustum.data[5].data[0] = $this.$clippingMatrix.data[3] + $this.$clippingMatrix.data[2]; - $this.$frustum.data[5].data[1] = $this.$clippingMatrix.data[7] + $this.$clippingMatrix.data[6]; - $this.$frustum.data[5].data[2] = $this.$clippingMatrix.data[11] + $this.$clippingMatrix.data[10]; - $this.$frustum.data[5].data[3] = $this.$clippingMatrix.data[15] + $this.$clippingMatrix.data[14]; - $java.nms_ClippingHelperImpl_normalize($this, $this.$frustum, 5); -}; -function nms_ClippingHelperImpl__clinit_() { - var var$1, var$2, var$3, var$4, var$5; - var$1 = new nms_ClippingHelperImpl; - var$1.$frustum = $rt_createFloatMultiArray([16, 16]); - var$1.$projectionMatrix0 = $rt_createFloatArray(16); - var$1.$modelviewMatrix = $rt_createFloatArray(16); - var$1.$clippingMatrix = $rt_createFloatArray(16); - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL) - var$2 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$3 = $rt_createFloatArray(16); - var$4 = var$3.data.length; - var$2 = new jn_FloatBufferOverArray; - var$5 = 0 + var$4 | 0; - jl_Object__init_0(var$2); - 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.$start5 = 0; - var$2.$readOnly5 = 0; - var$2.$array4 = var$3; - } - var$1.$projectionMatrixBuffer = var$2; - if (!nleg_EaglerAdapterGL30_isWebGL) - var$2 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$3 = $rt_createFloatArray(16); - var$4 = var$3.data.length; - var$2 = new jn_FloatBufferOverArray; - var$5 = 0 + var$4 | 0; - jl_Object__init_0(var$2); - 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.$start5 = 0; - var$2.$readOnly5 = 0; - var$2.$array4 = var$3; - } - var$1.$modelviewMatrixBuffer = var$2; - if (!nleg_EaglerAdapterGL30_isWebGL) - var$2 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$3 = $rt_createFloatArray(16); - var$4 = var$3.data.length; - var$2 = new jn_FloatBufferOverArray; - var$5 = 0 + var$4 | 0; - jl_Object__init_0(var$2); - 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.$start5 = 0; - var$2.$readOnly5 = 0; - var$2.$array4 = var$3; - } - var$1.$field_78564_h = var$2; - $java.nms_ClippingHelperImpl_instance = var$1; -} -$java.nms_ICamera = function() { -}; -function nms_Frustrum() { - var a = this; jl_Object.call(a); - a.$clippingHelper = null; - a.$xPosition4 = 0.0; - a.$yPosition4 = 0.0; - a.$zPosition3 = 0.0; -} -function nms_Frustrum__init_0() { - var var_0 = new nms_Frustrum(); - nms_Frustrum__init_(var_0); - return var_0; -} -function nms_Frustrum__init_($this) { - $java.nms_ClippingHelperImpl_init($java.nms_ClippingHelperImpl_instance); - $this.$clippingHelper = $java.nms_ClippingHelperImpl_instance; -} -function nms_Frustrum_setPosition($this, $par1, $par3, $par5) { - $this.$xPosition4 = $par1; - $this.$yPosition4 = $par3; - $this.$zPosition3 = $par5; -} -$java.nms_Frustrum_isBoxInFrustum = function($this, $par1, $par3, $par5, $par7, $par9, $par11) { - return $java.nms_ClippingHelper_isBoxInFrustum($this.$clippingHelper, $par1 - $this.$xPosition4, $par3 - $this.$yPosition4, $par5 - $this.$zPosition3, $par7 - $this.$xPosition4, $par9 - $this.$yPosition4, $par11 - $this.$zPosition3); -}; -function nms_Frustrum_isBoundingBoxInFrustum($this, $par1AxisAlignedBB) { - var var$2, var$3, var$4, var$5, var$6, var$7; - var$2 = $par1AxisAlignedBB.$minX; - var$3 = $par1AxisAlignedBB.$minY; - var$4 = $par1AxisAlignedBB.$minZ; - var$5 = $par1AxisAlignedBB.$maxX; - var$6 = $par1AxisAlignedBB.$maxY; - var$7 = $par1AxisAlignedBB.$maxZ; - return $java.nms_ClippingHelper_isBoxInFrustum($this.$clippingHelper, var$2 - $this.$xPosition4, var$3 - $this.$yPosition4, var$4 - $this.$zPosition3, var$5 - $this.$xPosition4, var$6 - $this.$yPosition4, var$7 - $this.$zPosition3); -} -function nms_StatCollector() { - jl_Object.call(this); -} -var nms_StatCollector_localizedName = null; -$java.nms_StatCollector__init_ = function() { - var var_0 = new nms_StatCollector(); - nms_StatCollector__init_(var_0); - return var_0; -}; -function nms_StatCollector__init_($this) { - return; -} -function nms_StatCollector_translateToLocal($par0Str) { - return nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $par0Str); -} -function nms_StatCollector__clinit_() { - nms_StatCollector_localizedName = nms_StringTranslate_instance; -} -function nms_StringUtils() { - jl_Object.call(this); -} -$java.nms_StringUtils_patternControlCode = null; -$java.nms_StringUtils__init_ = function() { - var var_0 = new nms_StringUtils(); - nms_StringUtils__init_(var_0); - return var_0; -}; -function nms_StringUtils__init_($this) { - return; -} -function nms_StringUtils_ticksToElapsedTime($par0) { - var $var1, $var2, var$4, var$5; - $var1 = $par0 / 20 | 0; - $var2 = $var1 / 60 | 0; - $par0 = $var1 % 60 | 0; - if ($par0 >= 10) { - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var2, 10); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(266)); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $par0, 10); - var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - } else { - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var2, 10); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2503)); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $par0, 10); - var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - } - return var$5; -} -function nms_StringUtils_stripControlCodes($par0Str) { - return jur_Matcher_replaceAll(jur_Matcher__init_($java.nms_StringUtils_patternControlCode, $par0Str), $rt_s(44)); -} -function nms_StringUtils__clinit_() { - $java.nms_StringUtils_patternControlCode = jur_Pattern_compile($rt_s(2504), 0); -} -function nms_Direction() { - jl_Object.call(this); -} -var nms_Direction_offsetX = null; -var nms_Direction_offsetZ = null; -var nms_Direction_directions = null; -var nms_Direction_directionToFacing = null; -var nms_Direction_facingToDirection = null; -var nms_Direction_rotateOpposite = null; -var nms_Direction_rotateRight = null; -$java.nms_Direction_rotateLeft = null; -var nms_Direction_bedDirection = null; -$java.nms_Direction__init_ = function() { - var var_0 = new nms_Direction(); - nms_Direction__init_(var_0); - return var_0; -}; -function nms_Direction__init_($this) { - return; -} -function nms_Direction_getMovementDirection($par0, $par2) { - var var$3, var$4; - var$3 = $par0; - if (var$3 < 0.0) - var$3 = -var$3; - var$4 = $par2; - if (var$4 < 0.0) - var$4 = -var$4; - return var$3 <= var$4 ? ($par2 <= 0.0 ? 0 : 2) : $par0 <= 0.0 ? 3 : 1; -} -function nms_Direction__clinit_() { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createIntArray(4); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = (-1); - var$2[2] = 0; - var$2[3] = 1; - nms_Direction_offsetX = var$1; - var$1 = $rt_createIntArray(4); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 0; - var$2[2] = (-1); - var$2[3] = 0; - nms_Direction_offsetZ = var$1; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(2505); - var$2[1] = $rt_s(2506); - var$2[2] = $rt_s(2507); - var$2[3] = $rt_s(2508); - nms_Direction_directions = var$1; - var$1 = $rt_createIntArray(4); - var$2 = var$1.data; - var$2[0] = 3; - var$2[1] = 4; - var$2[2] = 2; - var$2[3] = 5; - nms_Direction_directionToFacing = var$1; - var$1 = $rt_createIntArray(6); - var$2 = var$1.data; - var$2[0] = (-1); - var$2[1] = (-1); - var$2[2] = 2; - var$2[3] = 0; - var$2[4] = 1; - var$2[5] = 3; - nms_Direction_facingToDirection = var$1; - var$1 = $rt_createIntArray(4); - var$2 = var$1.data; - var$2[0] = 2; - var$2[1] = 3; - var$2[2] = 0; - var$2[3] = 1; - nms_Direction_rotateOpposite = var$1; - var$1 = $rt_createIntArray(4); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 2; - var$2[2] = 3; - var$2[3] = 0; - nms_Direction_rotateRight = var$1; - var$1 = $rt_createIntArray(4); - var$2 = var$1.data; - var$2[0] = 3; - var$2[1] = 0; - var$2[2] = 1; - var$2[3] = 2; - $java.nms_Direction_rotateLeft = var$1; - var$1 = $rt_createArray($rt_arraycls($rt_intcls()), 4); - var$3 = var$1.data; - var$2 = $rt_createIntArray(6); - var$4 = var$2.data; - var$4[0] = 1; - var$4[1] = 0; - var$4[2] = 3; - var$4[3] = 2; - var$4[4] = 5; - var$4[5] = 4; - var$3[0] = var$2; - var$2 = $rt_createIntArray(6); - var$4 = var$2.data; - var$4[0] = 1; - var$4[1] = 0; - var$4[2] = 5; - var$4[3] = 4; - var$4[4] = 2; - var$4[5] = 3; - var$3[1] = var$2; - var$2 = $rt_createIntArray(6); - var$4 = var$2.data; - var$4[0] = 1; - var$4[1] = 0; - var$4[2] = 2; - var$4[3] = 3; - var$4[4] = 4; - var$4[5] = 5; - var$3[2] = var$2; - var$2 = $rt_createIntArray(6); - var$4 = var$2.data; - var$4[0] = 1; - var$4[1] = 0; - var$4[2] = 4; - var$4[3] = 5; - var$4[4] = 3; - var$4[5] = 2; - var$3[3] = var$2; - nms_Direction_bedDirection = var$1; -} -$java.nms_NetHandler = function() { - jl_Object.call(this); -}; -$java.nms_NetHandler_unexpectedPacket = function($this, $par1Packet) { - return; -}; -$java.nms_NetHandler_handleBlockDig = function($this, $par1Packet14BlockDig) { - return; -}; -$java.nms_NetHandler_handlePlace = function($this, $par1Packet15Place) { - return; -}; -$java.nms_NetHandler_handleEntityAction = function($this, $par1Packet19EntityAction) { - return; -}; -$java.nms_NetHandler_handleClientProtocol = function($this, $par1Packet2ClientProtocol) { - return; -}; -$java.nms_NetHandler_handleUseEntity = function($this, $par1Packet7UseEntity) { - return; -}; -$java.nms_NetHandler_handleWindowClick = function($this, $par1Packet102WindowClick) { - return; -}; -$java.nms_NetHandler_handleServerPing = function($this, $par1Packet254ServerPing) { - return; -}; -$java.nms_NetHandler_handleCreativeSetSlot = function($this, $par1Packet107CreativeSetSlot) { - return; -}; -$java.nms_NetHandler_handleEnchantItem = function($this, $par1Packet108EnchantItem) { - return; -}; -$java.nms_NetHandler_handleClientInfo = function($this, $par1Packet204ClientInfo) { - return; -}; -$java.nms_NetHandler_handleClientCommand = function($this, $par1Packet205ClientCommand) { - return; -}; -function nms_NetClientHandler() { - var a = this; $java.nms_NetHandler.call(a); - a.$disconnected = 0; - a.$netManager = null; - a.$field_72560_a = null; - a.$mc15 = null; - a.$worldClient = null; - a.$doneLoadingTerrain = 0; - a.$mapStorage0 = null; - a.$playerInfoMap = null; - a.$playerInfoList = null; - a.$currentServerMaxPlayers = 0; - a.$field_98183_l = null; - a.$rand5 = null; -} -$java.nms_NetClientHandler__init_ = function(var_0, var_1, var_2) { - var var_3 = new nms_NetClientHandler(); - $java.nms_NetClientHandler__init_0(var_3, var_0, var_1, var_2); - return var_3; -}; -$java.nms_NetClientHandler__init_0 = function($this, $par1Minecraft, $par2Str, $par3) { - var var$4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$4 = $thread.pop();$par3 = $thread.pop();$par2Str = $thread.pop();$par1Minecraft = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$disconnected = 0; - $this.$doneLoadingTerrain = 0; - $this.$mapStorage0 = nms_MapStorage__init_0(); - $this.$playerInfoMap = ju_HashMap__init_1(16, 0.75); - var$4 = new ju_ArrayList; - var$4.$array1 = $rt_createArray(jl_Object, 10); - $this.$playerInfoList = var$4; - $this.$currentServerMaxPlayers = 20; - $this.$field_98183_l = null; - $this.$rand5 = new ju_Random; - $this.$mc15 = $par1Minecraft; - $par1Minecraft = new nle_WebsocketNetworkManager; - var$4 = null; - $ptr = 1; - case 1: - $java.nle_WebsocketNetworkManager__init_($par1Minecraft, $par2Str, var$4, $this); - if ($rt_suspending()) { - break main; - } - $this.$netManager = $par1Minecraft; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Minecraft, $par2Str, $par3, var$4, $ptr); -}; -$java.nms_NetClientHandler_cleanup = function($this) { - $this.$netManager = null; - $this.$worldClient = null; -}; -$java.nms_NetClientHandler_processReadPackets = function($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.$disconnected && $this.$netManager !== null) { - var$1 = $this.$netManager; - $ptr = 1; - continue main; - } - return; - case 1: - nle_WebsocketNetworkManager_processReadPackets(var$1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -}; -$java.nms_NetClientHandler_handleServerAuthData = function($this, $par1Packet253ServerAuthData) { - $par1Packet253ServerAuthData = new nms_Packet252SharedKey; - nms_Packet_$callClinit(); - $par1Packet253ServerAuthData.$creationTimeMillis = jl_System_currentTimeMillis(); - $par1Packet253ServerAuthData.$isChunkDataPacket = 0; - if (!$this.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($this.$netManager, $par1Packet253ServerAuthData); -}; -$java.nms_NetClientHandler_handleSharedKey = function($this, $par1Packet252SharedKey) { - $par1Packet252SharedKey = new nms_Packet205ClientCommand; - nms_Packet_$callClinit(); - $par1Packet252SharedKey.$creationTimeMillis = jl_System_currentTimeMillis(); - $par1Packet252SharedKey.$isChunkDataPacket = 0; - $par1Packet252SharedKey.$forceRespawn = 0; - if (!$this.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($this.$netManager, $par1Packet252SharedKey); -}; -$java.nms_NetClientHandler_handleLogin = function($this, $par1Packet1Login) { - var var$2, var$3, var$4, var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1Packet1Login = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$mc15.$playerController = nms_PlayerControllerMP__init_($this.$mc15, $this); - var$2 = new nms_WorldClient; - var$3 = new $java.nms_WorldSettings; - var$4 = $par1Packet1Login.$gameType; - var$5 = $par1Packet1Login.$hardcoreMode; - var$6 = $par1Packet1Login.$terrainType1; - var$3.$field_82751_h = $rt_s(44); - var$3.$seed = Long_ZERO; - var$3.$theGameType = var$4; - var$3.$mapFeaturesEnabled = 0; - var$3.$hardcoreEnabled = var$5; - var$3.$terrainType2 = var$6; - nms_WorldClient__init_0(var$2, $this, var$3, $par1Packet1Login.$dimension1, $par1Packet1Login.$difficultySetting0, $this.$mc15.$mcProfiler); - $this.$worldClient = var$2; - $this.$worldClient.$isRemote = 1; - var$2 = $this.$mc15; - var$6 = $this.$worldClient; - var$7 = $rt_s(44); - $ptr = 1; - case 1: - nmc_Minecraft_loadWorld0(var$2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $this.$mc15.$thePlayer.$dimension = $par1Packet1Login.$dimension1; - var$2 = $this.$mc15; - var$6 = new $java.nms_GuiDownloadTerrain; - nms_GuiScreen__init_(var$6); - var$6.$updateCounter1 = 0; - var$6.$netHandler = $this; - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen(var$2, var$6); - if ($rt_suspending()) { - break main; - } - $this.$mc15.$thePlayer.$entityId = $par1Packet1Login.$clientEntityId; - $this.$currentServerMaxPlayers = $par1Packet1Login.$maxPlayers; - var$2 = $this.$mc15.$playerController; - var$2.$currentGameType = $par1Packet1Login.$gameType; - nms_EnumGameType_configurePlayerCapabilities(var$2.$currentGameType, var$2.$mc13.$thePlayer.$capabilities); - nms_GameSettings_sendSettingsToServer($this.$mc15.$gameSettings); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet1Login, var$2, var$3, var$4, var$5, var$6, var$7, $ptr); -}; -$java.nms_NetClientHandler_handleVehicleSpawn = function($this, $par1Packet23VehicleSpawn) { - var $var2, $var4, $var6, $var8, $var9, $var12, $var10, $var11, var$10, $var13, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var13 = $thread.pop();var$10 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var12 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$par1Packet23VehicleSpawn = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var2 = $par1Packet23VehicleSpawn.$xPosition5 / 32.0; - $var4 = $par1Packet23VehicleSpawn.$yPosition5 / 32.0; - $var6 = $par1Packet23VehicleSpawn.$zPosition4 / 32.0; - $var8 = null; - if ($par1Packet23VehicleSpawn.$type3 == 10) { - $var8 = nms_EntityMinecart_createMinecart($this.$worldClient, $var2, $var4, $var6, $par1Packet23VehicleSpawn.$throwerEntityId); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 90) { - $var9 = $java.nms_NetClientHandler_getEntityByID($this, $par1Packet23VehicleSpawn.$throwerEntityId); - if ($var9 instanceof nms_EntityPlayer) - $var8 = nms_EntityFishHook__init_1($this.$worldClient, $var2, $var4, $var6, $var9); - $par1Packet23VehicleSpawn.$throwerEntityId = 0; - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 60) { - $var8 = nms_EntityArrow__init_0($this.$worldClient, $var2, $var4, $var6); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 61) { - $var8 = nms_EntitySnowball__init_1($this.$worldClient, $var2, $var4, $var6); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 71) { - $var8 = nms_EntityItemFrame__init_1($this.$worldClient, $var2 | 0, $var4 | 0, $var6 | 0, $par1Packet23VehicleSpawn.$throwerEntityId); - $par1Packet23VehicleSpawn.$throwerEntityId = 0; - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 65) { - $var8 = nms_EntityEnderPearl__init_1($this.$worldClient, $var2, $var4, $var6); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 72) { - $var8 = nms_EntityEnderEye__init_1($this.$worldClient, $var2, $var4, $var6); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 76) { - $var8 = nms_EntityFireworkRocket__init_1($this.$worldClient, $var2, $var4, $var6, null); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 63) { - $var8 = nms_EntityLargeFireball__init_2($this.$worldClient, $var2, $var4, $var6, $par1Packet23VehicleSpawn.$speedX / 8000.0, $par1Packet23VehicleSpawn.$speedY / 8000.0, $par1Packet23VehicleSpawn.$speedZ / 8000.0); - $par1Packet23VehicleSpawn.$throwerEntityId = 0; - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 64) { - $var8 = nms_EntitySmallFireball__init_1($this.$worldClient, $var2, $var4, $var6, $par1Packet23VehicleSpawn.$speedX / 8000.0, $par1Packet23VehicleSpawn.$speedY / 8000.0, $par1Packet23VehicleSpawn.$speedZ / 8000.0); - $par1Packet23VehicleSpawn.$throwerEntityId = 0; - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 66) { - $var8 = nms_EntityWitherSkull__init_1($this.$worldClient, $var2, $var4, $var6, $par1Packet23VehicleSpawn.$speedX / 8000.0, $par1Packet23VehicleSpawn.$speedY / 8000.0, $par1Packet23VehicleSpawn.$speedZ / 8000.0); - $par1Packet23VehicleSpawn.$throwerEntityId = 0; - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 62) { - $var8 = nms_EntityEgg__init_1($this.$worldClient, $var2, $var4, $var6); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 73) { - $var8 = nms_EntityPotion__init_1($this.$worldClient, $var2, $var4, $var6, $par1Packet23VehicleSpawn.$throwerEntityId); - $par1Packet23VehicleSpawn.$throwerEntityId = 0; - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 75) { - $var8 = nms_EntityExpBottle__init_1($this.$worldClient, $var2, $var4, $var6); - $par1Packet23VehicleSpawn.$throwerEntityId = 0; - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 1) { - $var8 = nms_EntityBoat__init_1($this.$worldClient, $var2, $var4, $var6); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 50) { - $var8 = nms_EntityTNTPrimed__init_1($this.$worldClient, $var2, $var4, $var6, null); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 51) { - $var8 = nms_EntityEnderCrystal__init_1($this.$worldClient, $var2, $var4, $var6); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 == 2) { - $var8 = nms_EntityItem__init_0($this.$worldClient, $var2, $var4, $var6); - break a; - } - if ($par1Packet23VehicleSpawn.$type3 != 70) - break a; - $var8 = nms_EntityFallingSand__init_1($this.$worldClient, $var2, $var4, $var6, $par1Packet23VehicleSpawn.$throwerEntityId & 65535, $par1Packet23VehicleSpawn.$throwerEntityId >> 16); - $par1Packet23VehicleSpawn.$throwerEntityId = 0; - } - if ($var8 === null) - return; - $var9 = $var8; - if ($var9.$worldObj === null) - $var9.$setWorld($this.$worldClient); - b: { - $var9.$serverPosX = $par1Packet23VehicleSpawn.$xPosition5; - $var9.$serverPosY = $par1Packet23VehicleSpawn.$yPosition5; - $var9.$serverPosZ = $par1Packet23VehicleSpawn.$zPosition4; - $var9.$rotationPitch = ($par1Packet23VehicleSpawn.$pitch1 * 360 | 0) / 256.0; - $var9.$rotationYaw = ($par1Packet23VehicleSpawn.$yaw0 * 360 | 0) / 256.0; - $var12 = nms_Entity_getParts($var9); - if ($var12 !== null) { - $var10 = $par1Packet23VehicleSpawn.$entityId2 - $var9.$entityId | 0; - $var11 = 0; - while (true) { - var$10 = $var12.data; - if ($var11 >= var$10.length) - break b; - $var13 = var$10[$var11]; - $var13.$entityId = $var13.$entityId + $var10 | 0; - $var11 = $var11 + 1 | 0; - } - } - } - $var9.$entityId = $par1Packet23VehicleSpawn.$entityId2; - $var13 = $this.$worldClient; - $var10 = $par1Packet23VehicleSpawn.$entityId2; - $ptr = 1; - case 1: - nms_WorldClient_addEntityToWorld($var13, $var10, $var9); - if ($rt_suspending()) { - break main; - } - if ($par1Packet23VehicleSpawn.$throwerEntityId > 0) { - if ($par1Packet23VehicleSpawn.$type3 == 60) { - $var13 = $java.nms_NetClientHandler_getEntityByID($this, $par1Packet23VehicleSpawn.$throwerEntityId); - if ($var13 instanceof nms_EntityLiving) - $var8.$shootingEntity = $var13; - } - $var9.$setVelocity($par1Packet23VehicleSpawn.$speedX / 8000.0, $par1Packet23VehicleSpawn.$speedY / 8000.0, $par1Packet23VehicleSpawn.$speedZ / 8000.0); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet23VehicleSpawn, $var2, $var4, $var6, $var8, $var9, $var12, $var10, $var11, var$10, $var13, $ptr); -}; -$java.nms_NetClientHandler_handleEntityExpOrb = function($this, $par1Packet26EntityExpOrb) { - var $var2, 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();$var2 = $thread.pop();$par1Packet26EntityExpOrb = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_EntityXPOrb__init_0($this.$worldClient, $par1Packet26EntityExpOrb.$posX5, $par1Packet26EntityExpOrb.$posY5, $par1Packet26EntityExpOrb.$posZ3, $par1Packet26EntityExpOrb.$xpValue0); - $var2.$serverPosX = $par1Packet26EntityExpOrb.$posX5; - $var2.$serverPosY = $par1Packet26EntityExpOrb.$posY5; - $var2.$serverPosZ = $par1Packet26EntityExpOrb.$posZ3; - $var2.$rotationYaw = 0.0; - $var2.$rotationPitch = 0.0; - $var2.$entityId = $par1Packet26EntityExpOrb.$entityId3; - var$3 = $this.$worldClient; - var$4 = $par1Packet26EntityExpOrb.$entityId3; - $ptr = 1; - case 1: - nms_WorldClient_addEntityToWorld(var$3, var$4, $var2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet26EntityExpOrb, $var2, var$3, var$4, $ptr); -}; -$java.nms_NetClientHandler_handleWeather = function($this, $par1Packet71Weather) { - var $var2, $var4, $var6, $var8, var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$par1Packet71Weather = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $par1Packet71Weather.$posX6 / 32.0; - $var4 = $par1Packet71Weather.$posY6 / 32.0; - $var6 = $par1Packet71Weather.$posZ4 / 32.0; - $var8 = null; - if ($par1Packet71Weather.$isLightningBolt != 1) { - if ($var8 !== null) { - $var8.$serverPosX = $par1Packet71Weather.$posX6; - $var8.$serverPosY = $par1Packet71Weather.$posY6; - $var8.$serverPosZ = $par1Packet71Weather.$posZ4; - $var8.$rotationYaw = 0.0; - $var8.$rotationPitch = 0.0; - $var8.$entityId = $par1Packet71Weather.$entityID; - ju_ArrayList_add($this.$worldClient.$weatherEffects, $var8); - } - return; - } - $var8 = new nms_EntityLightningBolt; - var$6 = $this.$worldClient; - $ptr = 1; - case 1: - nms_EntityLightningBolt__init_0($var8, var$6, $var2, $var4, $var6); - if ($rt_suspending()) { - break main; - } - if ($var8 !== null) { - $var8.$serverPosX = $par1Packet71Weather.$posX6; - $var8.$serverPosY = $par1Packet71Weather.$posY6; - $var8.$serverPosZ = $par1Packet71Weather.$posZ4; - $var8.$rotationYaw = 0.0; - $var8.$rotationPitch = 0.0; - $var8.$entityId = $par1Packet71Weather.$entityID; - ju_ArrayList_add($this.$worldClient.$weatherEffects, $var8); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet71Weather, $var2, $var4, $var6, $var8, var$6, $ptr); -}; -$java.nms_NetClientHandler_handleEntityPainting = function($this, $par1Packet25EntityPainting) { - var $var2, 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();$var2 = $thread.pop();$par1Packet25EntityPainting = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_EntityPainting__init_1($this.$worldClient, $par1Packet25EntityPainting.$xPosition6, $par1Packet25EntityPainting.$yPosition6, $par1Packet25EntityPainting.$zPosition5, $par1Packet25EntityPainting.$direction0, $par1Packet25EntityPainting.$title0); - var$3 = $this.$worldClient; - var$4 = $par1Packet25EntityPainting.$entityId4; - $ptr = 1; - case 1: - nms_WorldClient_addEntityToWorld(var$3, var$4, $var2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet25EntityPainting, $var2, var$3, var$4, $ptr); -}; -$java.nms_NetClientHandler_handleEntityVelocity = function($this, $par1Packet28EntityVelocity) { - var var$2, $var2; - var$2 = $par1Packet28EntityVelocity.$entityId5; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var2 = $this.$worldClient; - $var2 = var$2 == $var2.$mc11.$thePlayer.$entityId ? $var2.$mc11.$thePlayer : nms_IntHashMap_lookup($var2.$entityHashSet, var$2); - } - if ($var2 !== null) - $var2.$setVelocity($par1Packet28EntityVelocity.$motionX0 / 8000.0, $par1Packet28EntityVelocity.$motionY0 / 8000.0, $par1Packet28EntityVelocity.$motionZ0 / 8000.0); -}; -$java.nms_NetClientHandler_handleEntityMetadata = function($this, $par1Packet40EntityMetadata) { - var var$2, $var2, var$4; - var$2 = $par1Packet40EntityMetadata.$entityId6; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - var$4 = $this.$worldClient; - $var2 = var$2 == var$4.$mc11.$thePlayer.$entityId ? var$4.$mc11.$thePlayer : nms_IntHashMap_lookup(var$4.$entityHashSet, var$2); - } - if ($var2 !== null && $par1Packet40EntityMetadata.$metadata0 !== null) - $java.nms_DataWatcher_updateWatchedObjectsFromList($var2.$dataWatcher, $par1Packet40EntityMetadata.$metadata0); -}; -$java.nms_NetClientHandler_handleNamedEntitySpawn = function($this, $par1Packet20NamedEntitySpawn) { - var $var2, $var4, $var6, $var8, $var9, $var10, var$8, var$9, $var11, var$11, var$12, var$13, $var12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();$var11 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$par1Packet20NamedEntitySpawn = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $par1Packet20NamedEntitySpawn.$xPosition7 / 32.0; - $var4 = $par1Packet20NamedEntitySpawn.$yPosition7 / 32.0; - $var6 = $par1Packet20NamedEntitySpawn.$zPosition6 / 32.0; - $var8 = ($par1Packet20NamedEntitySpawn.$rotation * 360 | 0) / 256.0; - $var9 = ($par1Packet20NamedEntitySpawn.$pitch2 * 360 | 0) / 256.0; - $var10 = nms_EntityOtherPlayerMP__init_($this.$mc15.$theWorld, $par1Packet20NamedEntitySpawn.$name11); - var$8 = $par1Packet20NamedEntitySpawn.$xPosition7; - $var10.$serverPosX = var$8; - var$9 = var$8; - $var10.$lastTickPosX = var$9; - $var10.$prevPosX = var$9; - var$8 = $par1Packet20NamedEntitySpawn.$yPosition7; - $var10.$serverPosY = var$8; - var$9 = var$8; - $var10.$lastTickPosY = var$9; - $var10.$prevPosY = var$9; - var$8 = $par1Packet20NamedEntitySpawn.$zPosition6; - $var10.$serverPosZ = var$8; - var$9 = var$8; - $var10.$lastTickPosZ = var$9; - $var10.$prevPosZ = var$9; - $var11 = $par1Packet20NamedEntitySpawn.$currentItem0; - if (!$var11) - $var10.$inventory.$mainInventory.data[$var10.$inventory.$currentItem] = null; - else { - var$11 = $var10.$inventory.$mainInventory; - var$12 = $var10.$inventory.$currentItem; - var$13 = new nms_ItemStack; - var$13.$stackSize = 0; - var$13.$itemFrame = null; - var$13.$itemID0 = $var11; - var$13.$stackSize = 1; - var$13.$itemDamage = 0; - if (var$13.$itemDamage < 0) - var$13.$itemDamage = 0; - var$11.data[var$12] = var$13; - } - nms_Entity_setPositionAndRotation($var10, $var2, $var4, $var6, $var8, $var9); - $var12 = $this.$worldClient; - var$8 = $par1Packet20NamedEntitySpawn.$entityId7; - $ptr = 1; - case 1: - nms_WorldClient_addEntityToWorld($var12, var$8, $var10); - if ($rt_suspending()) { - break main; - } - if ($par1Packet20NamedEntitySpawn.$metadataWatchableObjects === null) - $par1Packet20NamedEntitySpawn.$metadataWatchableObjects = $par1Packet20NamedEntitySpawn.$metadata1.$getAllWatched(); - $var12 = $par1Packet20NamedEntitySpawn.$metadataWatchableObjects; - if ($var12 !== null) - $java.nms_DataWatcher_updateWatchedObjectsFromList($var10.$dataWatcher, $var12); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet20NamedEntitySpawn, $var2, $var4, $var6, $var8, $var9, $var10, var$8, var$9, $var11, var$11, var$12, var$13, $var12, $ptr); -}; -$java.nms_NetClientHandler_handleEntityTeleport = function($this, $par1Packet34EntityTeleport) { - var var$2, $var2; - var$2 = $par1Packet34EntityTeleport.$entityId8; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var2 = $this.$worldClient; - $var2 = var$2 == $var2.$mc11.$thePlayer.$entityId ? $var2.$mc11.$thePlayer : nms_IntHashMap_lookup($var2.$entityHashSet, var$2); - } - if ($var2 !== null) { - $var2.$serverPosX = $par1Packet34EntityTeleport.$xPosition8; - $var2.$serverPosY = $par1Packet34EntityTeleport.$yPosition8; - $var2.$serverPosZ = $par1Packet34EntityTeleport.$zPosition7; - $var2.$setPositionAndRotation2($var2.$serverPosX / 32.0, $var2.$serverPosY / 32.0 + 0.015625, $var2.$serverPosZ / 32.0, ($par1Packet34EntityTeleport.$yaw1 * 360 | 0) / 256.0, ($par1Packet34EntityTeleport.$pitch3 * 360 | 0) / 256.0, 3); - } -}; -$java.nms_NetClientHandler_handleBlockItemSwitch = function($this, $par1Packet16BlockItemSwitch) { - if ($par1Packet16BlockItemSwitch.$id4 >= 0 && $par1Packet16BlockItemSwitch.$id4 < 9) - $this.$mc15.$thePlayer.$inventory.$currentItem = $par1Packet16BlockItemSwitch.$id4; -}; -$java.nms_NetClientHandler_handleEntity = function($this, $par1Packet30Entity) { - var var$2, $var2; - var$2 = $par1Packet30Entity.$entityId9; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var2 = $this.$worldClient; - $var2 = var$2 == $var2.$mc11.$thePlayer.$entityId ? $var2.$mc11.$thePlayer : nms_IntHashMap_lookup($var2.$entityHashSet, var$2); - } - if ($var2 !== null) { - $var2.$serverPosX = $var2.$serverPosX + $par1Packet30Entity.$xPosition9 | 0; - $var2.$serverPosY = $var2.$serverPosY + $par1Packet30Entity.$yPosition9 | 0; - $var2.$serverPosZ = $var2.$serverPosZ + $par1Packet30Entity.$zPosition8 | 0; - $var2.$setPositionAndRotation2($var2.$serverPosX / 32.0, $var2.$serverPosY / 32.0, $var2.$serverPosZ / 32.0, !$par1Packet30Entity.$rotating0 ? $var2.$rotationYaw : ($par1Packet30Entity.$yaw2 * 360 | 0) / 256.0, !$par1Packet30Entity.$rotating0 ? $var2.$rotationPitch : ($par1Packet30Entity.$pitch4 * 360 | 0) / 256.0, 3); - } -}; -$java.nms_NetClientHandler_handleEntityHeadRotation = function($this, $par1Packet35EntityHeadRotation) { - var var$2, $var2; - var$2 = $par1Packet35EntityHeadRotation.$entityId10; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var2 = $this.$worldClient; - $var2 = var$2 == $var2.$mc11.$thePlayer.$entityId ? $var2.$mc11.$thePlayer : nms_IntHashMap_lookup($var2.$entityHashSet, var$2); - } - if ($var2 !== null) - $var2.$setRotationYawHead(($par1Packet35EntityHeadRotation.$headRotationYaw * 360 | 0) / 256.0); -}; -$java.nms_NetClientHandler_handleDestroyEntity = function($this, $par1Packet29DestroyEntity) { - var $var2, var$3, var$4, var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1Packet29DestroyEntity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = 0; - while ($var2 < $par1Packet29DestroyEntity.$entityId11.data.length) { - var$3 = $this.$worldClient; - var$4 = $par1Packet29DestroyEntity.$entityId11.data[$var2]; - var$5 = var$3.$entityHashSet; - var$6 = var$5.$keySet0; - var$7 = jl_Integer_valueOf(var$4); - var$6 = ju_HashMap_removeEntry(var$6.$backingMap, var$7); - var$5 = nms_IntHashMap_removeEntry(var$5, var$4); - var$5 = var$5 !== null ? var$5.$valueEntry : null; - if (var$5 !== null) { - var$6 = ju_HashMap_removeEntry(var$3.$entityList.$backingMap, var$5); - $ptr = 1; - continue main; - } - $var2 = $var2 + 1 | 0; - } - return; - case 1: - nms_World_removeEntity(var$3, var$5); - if ($rt_suspending()) { - break main; - } - var$5 = ju_HashMap_removeEntry(var$3.$entityList.$backingMap, var$5); - while (true) { - $var2 = $var2 + 1 | 0; - if ($var2 >= $par1Packet29DestroyEntity.$entityId11.data.length) - break; - var$3 = $this.$worldClient; - var$4 = $par1Packet29DestroyEntity.$entityId11.data[$var2]; - var$5 = var$3.$entityHashSet; - var$6 = var$5.$keySet0; - var$7 = jl_Integer_valueOf(var$4); - var$6 = ju_HashMap_removeEntry(var$6.$backingMap, var$7); - var$5 = nms_IntHashMap_removeEntry(var$5, var$4); - var$5 = var$5 !== null ? var$5.$valueEntry : null; - if (var$5 === null) - continue; - else { - var$6 = ju_HashMap_removeEntry(var$3.$entityList.$backingMap, var$5); - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet29DestroyEntity, $var2, var$3, var$4, var$5, var$6, var$7, $ptr); -}; -$java.nms_NetClientHandler_handleFlying = function($this, $par1Packet10Flying) { - var $var2, $var3, $var5, $var7, $var9, $var10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1Packet10Flying = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$mc15.$thePlayer; - $var3 = $var2.$posX; - $var5 = $var2.$posY; - $var7 = $var2.$posZ; - $var9 = $var2.$rotationYaw; - $var10 = $var2.$rotationPitch; - if ($par1Packet10Flying.$moving) { - $var3 = $par1Packet10Flying.$xPosition; - $var5 = $par1Packet10Flying.$yPosition0; - $var7 = $par1Packet10Flying.$zPosition; - } - if ($par1Packet10Flying.$rotating) { - $var9 = $par1Packet10Flying.$yaw; - $var10 = $par1Packet10Flying.$pitch0; - } - $var2.$ySize = 0.0; - $var2.$motionZ = 0.0; - $var2.$motionY = 0.0; - $var2.$motionX = 0.0; - nms_Entity_setPositionAndRotation($var2, $var3, $var5, $var7, $var9, $var10); - $par1Packet10Flying.$xPosition = $var2.$posX; - $par1Packet10Flying.$yPosition0 = $var2.$boundingBox.$minY; - $par1Packet10Flying.$zPosition = $var2.$posZ; - $par1Packet10Flying.$stance = $var2.$posY; - nle_WebsocketNetworkManager_addToSendQueue($this.$netManager, $par1Packet10Flying); - if ($this.$doneLoadingTerrain) - return; - $this.$mc15.$thePlayer.$prevPosX = $this.$mc15.$thePlayer.$posX; - $this.$mc15.$thePlayer.$prevPosY = $this.$mc15.$thePlayer.$posY; - $this.$mc15.$thePlayer.$prevPosZ = $this.$mc15.$thePlayer.$posZ; - $this.$doneLoadingTerrain = 1; - $par1Packet10Flying = $this.$mc15; - $var2 = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen($par1Packet10Flying, $var2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet10Flying, $var2, $var3, $var5, $var7, $var9, $var10, $ptr); -}; -$java.nms_NetClientHandler_handleMultiBlockChange = function($this, $par1Packet52MultiBlockChange) { - var $var2, $var3, $var4, var$5, var$6, $var9, $var5, $var6, $var7, $var8, $var10, $var11, $var12, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var9 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1Packet52MultiBlockChange = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var2 = $par1Packet52MultiBlockChange.$xPosition10 * 16 | 0; - $var3 = $par1Packet52MultiBlockChange.$zPosition9 * 16 | 0; - if ($par1Packet52MultiBlockChange.$metadataArray !== null) { - $var4 = new ji_DataInputStream; - var$5 = new ji_ByteArrayInputStream; - var$6 = $par1Packet52MultiBlockChange.$metadataArray; - $var9 = var$6.data.length; - var$5.$buf = var$6; - var$5.$pos = 0; - var$5.$mark0 = 0; - var$5.$count0 = 0 + $var9 | 0; - $var4.$in = var$5; - $var4.$buff = $rt_createByteArray(8); - try { - $var5 = 0; - if ($var5 >= $par1Packet52MultiBlockChange.$size6) - break a; - $var6 = ji_DataInputStream_readShort($var4); - $var7 = ji_DataInputStream_readShort($var4); - $var8 = $var7 >> 4 & 4095; - $var9 = $var7 & 15; - $var10 = $var6 >> 12 & 15; - $var11 = $var6 >> 8 & 15; - $var12 = $var6 & 255; - var$5 = $this.$worldClient; - $var10 = $var10 + $var2 | 0; - $var11 = $var11 + $var3 | 0; - $ptr = 1; - continue main; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - } else { - throw $$e; - } - } - } - } - return; - case 1: - a: { - try { - nms_WorldClient_setBlockAndMetadataAndInvalidate(var$5, $var10, $var12, $var11, $var8, $var9); - if ($rt_suspending()) { - break main; - } - $var5 = $var5 + 1 | 0; - if ($var5 >= $par1Packet52MultiBlockChange.$size6) - break a; - $var6 = ji_DataInputStream_readShort($var4); - $var7 = ji_DataInputStream_readShort($var4); - $var8 = $var7 >> 4 & 4095; - $var9 = $var7 & 15; - $var10 = $var6 >> 12 & 15; - $var11 = $var6 >> 8 & 15; - $var12 = $var6 & 255; - var$5 = $this.$worldClient; - $var10 = $var10 + $var2 | 0; - $var11 = $var11 + $var3 | 0; - continue main; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - } else { - throw $$e; - } - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet52MultiBlockChange, $var2, $var3, $var4, var$5, var$6, $var9, $var5, $var6, $var7, $var8, $var10, $var11, $var12, $ptr); -}; -$java.nms_NetClientHandler_handleMapChunk = function($this, $par1Packet51MapChunk) { - var $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10; - if ($par1Packet51MapChunk.$includeInitialize) { - if (!$par1Packet51MapChunk.$yChMin) { - nms_WorldClient_doPreChunk($this.$worldClient, $par1Packet51MapChunk.$xCh, $par1Packet51MapChunk.$zCh, 0); - return; - } - nms_WorldClient_doPreChunk($this.$worldClient, $par1Packet51MapChunk.$xCh, $par1Packet51MapChunk.$zCh, 1); - } - $var2 = $this.$worldClient; - var$3 = $par1Packet51MapChunk.$xCh; - var$4 = $par1Packet51MapChunk.$zCh; - $var2 = nms_ChunkProviderClient_provideChunk($var2.$chunkProvider, var$3, var$4); - if ($par1Packet51MapChunk.$includeInitialize && $var2 === null) { - nms_WorldClient_doPreChunk($this.$worldClient, $par1Packet51MapChunk.$xCh, $par1Packet51MapChunk.$zCh, 1); - $var2 = $this.$worldClient; - var$3 = $par1Packet51MapChunk.$xCh; - var$4 = $par1Packet51MapChunk.$zCh; - $var2 = nms_ChunkProviderClient_provideChunk($var2.$chunkProvider, var$3, var$4); - } - a: { - if ($var2 !== null) { - $java.nms_Chunk_fillChunk($var2, $par1Packet51MapChunk.$compressedChunkData, $par1Packet51MapChunk.$yChMin, $par1Packet51MapChunk.$yChMax, $par1Packet51MapChunk.$includeInitialize); - var$5 = $this.$worldClient; - var$6 = $par1Packet51MapChunk.$xCh << 4; - var$7 = $par1Packet51MapChunk.$zCh << 4; - var$8 = ($par1Packet51MapChunk.$xCh << 4) + 15 | 0; - var$9 = ($par1Packet51MapChunk.$zCh << 4) + 15 | 0; - var$3 = 0; - var$6 = var$6 - 1 | 0; - var$7 = var$7 - 1 | 0; - var$8 = var$8 + 1 | 0; - var$9 = var$9 + 1 | 0; - while (true) { - if (var$3 >= var$5.$worldAccesses.$size0) { - if ($par1Packet51MapChunk.$includeInitialize && $this.$worldClient.$provider instanceof nms_WorldProviderSurface) - break a; - $var2.$queuedLightChecks = 0; - break a; - } - var$10 = var$5.$worldAccesses; - if (var$3 < 0) - break; - if (var$3 >= var$10.$size0) - break; - nms_RenderGlobal_markBlocksForUpdate(var$10.$array1.data[var$3], var$6, (-1), var$7, var$8, 257, var$9); - var$3 = var$3 + 1 | 0; - } - $par1Packet51MapChunk = new jl_IndexOutOfBoundsException; - $par1Packet51MapChunk.$suppressionEnabled = 1; - $par1Packet51MapChunk.$writableStackTrace = 1; - $rt_throw($par1Packet51MapChunk); - } - } -}; -$java.nms_NetClientHandler_handleBlockChange = function($this, $par1Packet53BlockChange) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1Packet53BlockChange = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$worldClient; - var$3 = $par1Packet53BlockChange.$xPosition11; - var$4 = $par1Packet53BlockChange.$yPosition10; - var$5 = $par1Packet53BlockChange.$zPosition10; - var$6 = $par1Packet53BlockChange.$type4; - var$7 = $par1Packet53BlockChange.$metadata2; - var$8 = 3; - $ptr = 1; - case 1: - nms_World_setBlock(var$2, var$3, var$4, var$5, var$6, var$7, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet53BlockChange, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_NetClientHandler_handleKickDisconnect = function($this, $par1Packet255KickDisconnect) { - var 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();$par1Packet255KickDisconnect = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $java.nle_WebsocketNetworkManager_networkShutdown($this.$netManager, $rt_s(2509), $rt_createArray(jl_Object, 0)); - $this.$disconnected = 1; - var$2 = $this.$mc15; - var$3 = null; - var$4 = $rt_s(44); - $ptr = 1; - case 1: - nmc_Minecraft_loadWorld0(var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - var$4 = $this.$mc15; - var$5 = new $java.nms_GuiDisconnected; - var$2 = nms_GuiMultiplayer__init_(nms_GuiMainMenu__init_0()); - var$6 = $rt_createArray(jl_Object, 1); - var$6.data[0] = $par1Packet255KickDisconnect.$reason; - nms_GuiScreen__init_(var$5); - $par1Packet255KickDisconnect = nms_StringTranslate_instance; - var$5.$field_98095_n = var$2; - var$5.$errorMessage = nms_StringTranslate_translateKey($par1Packet255KickDisconnect, $rt_s(2510)); - var$5.$errorDetail = $rt_s(2511); - var$5.$field_74247_c = var$6; - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen(var$4, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet255KickDisconnect, var$2, var$3, var$4, var$5, var$6, $ptr); -}; -$java.nms_NetClientHandler_quitWithPacket = function($this, $par1Packet) { - if (!$this.$disconnected) { - nle_WebsocketNetworkManager_addToSendQueue($this.$netManager, $par1Packet); - nle_WebsocketNetworkManager_serverShutdown($this.$netManager); - } -}; -function nms_NetClientHandler_addToSendQueue($this, $par1Packet) { - if (!$this.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($this.$netManager, $par1Packet); -} -$java.nms_NetClientHandler_handleCollect = function($this, $par1Packet22Collect) { - var var$2, $var2, var$4, $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();var$4 = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$par1Packet22Collect = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $par1Packet22Collect.$collectedEntityId; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - var$4 = $this.$worldClient; - $var2 = var$2 == var$4.$mc11.$thePlayer.$entityId ? var$4.$mc11.$thePlayer : nms_IntHashMap_lookup(var$4.$entityHashSet, var$2); - } - var$2 = $par1Packet22Collect.$collectorEntityId; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - var$4 = $this.$mc15.$thePlayer; - else { - var$4 = $this.$worldClient; - var$4 = var$2 == var$4.$mc11.$thePlayer.$entityId ? var$4.$mc11.$thePlayer : nms_IntHashMap_lookup(var$4.$entityHashSet, var$2); - } - $var3 = var$4; - if ($var3 === null) - $var3 = $this.$mc15.$thePlayer; - if ($var2 !== null) { - if (!($var2 instanceof nms_EntityXPOrb)) - nms_World_playSoundAtEntity($this.$worldClient, $var2, $rt_s(1342), 0.20000000298023224, ((Math.random() - Math.random()) * 0.699999988079071 + 1.0) * 2.0); - else - nms_World_playSoundAtEntity($this.$worldClient, $var2, $rt_s(1519), 0.20000000298023224, ((Math.random() - Math.random()) * 0.699999988079071 + 1.0) * 2.0); - nms_EffectRenderer_addEffect($this.$mc15.$effectRenderer, nms_EntityPickupFX__init_($this.$mc15.$theWorld, $var2, $var3, (-0.5))); - var$4 = $this.$worldClient; - var$2 = $par1Packet22Collect.$collectedEntityId; - $par1Packet22Collect = var$4.$entityHashSet; - $var3 = $par1Packet22Collect.$keySet0; - $var2 = jl_Integer_valueOf(var$2); - $var3 = ju_HashMap_removeEntry($var3.$backingMap, $var2); - $par1Packet22Collect = nms_IntHashMap_removeEntry($par1Packet22Collect, var$2); - $par1Packet22Collect = $par1Packet22Collect !== null ? $par1Packet22Collect.$valueEntry : null; - if ($par1Packet22Collect !== null) { - $var3 = ju_HashMap_removeEntry(var$4.$entityList.$backingMap, $par1Packet22Collect); - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_World_removeEntity(var$4, $par1Packet22Collect); - if ($rt_suspending()) { - break main; - } - $par1Packet22Collect = ju_HashMap_removeEntry(var$4.$entityList.$backingMap, $par1Packet22Collect); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet22Collect, var$2, $var2, var$4, $var3, $ptr); -}; -function nms_NetClientHandler_handleChat($this, $par1Packet3Chat) { - var var$2, var$3, var$4, var$5; - var$2 = $this.$mc15.$ingameGUI.$persistantChatGUI; - $par1Packet3Chat = $par1Packet3Chat.$message0; - nms_GuiNewChat_func_96129_a(var$2, $par1Packet3Chat, 0, var$2.$mc12.$ingameGUI.$updateCounter0, 0); - if (jl_System_outCache === null) { - var$2 = new ji_PrintStream; - var$2.$out = new jl_ConsoleOutputStreamStdout; - 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_outCache = var$2; - } - var$4 = jl_System_outCache; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(1533)); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $par1Packet3Chat); - $par1Packet3Chat = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - var$3 = var$4.$sb; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $par1Packet3Chat); - var$5 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$5, var$5 + 1 | 0); - var$3.$buffer.data[var$5] = 10; - ji_PrintStream_printSB(var$4); -} -$java.nms_NetClientHandler_handleAnimation = function($this, $par1Packet18Animation) { - var var$2, $var2, $var5, $var4, var$6, var$7, $var3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var4 = $thread.pop();$var5 = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$par1Packet18Animation = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $par1Packet18Animation.$entityId1; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var5 = $this.$worldClient; - $var2 = var$2 == $var5.$mc11.$thePlayer.$entityId ? $var5.$mc11.$thePlayer : nms_IntHashMap_lookup($var5.$entityHashSet, var$2); - } - if ($var2 !== null) { - if ($par1Packet18Animation.$animate == 1) - $var2.$swingItem(); - else if ($par1Packet18Animation.$animate == 2) - $var2.$performHurtAnimation(); - else { - if ($par1Packet18Animation.$animate == 3) { - $var4 = $var2; - var$2 = 0; - var$6 = 0; - var$7 = 0; - $ptr = 1; - continue main; - } - if ($par1Packet18Animation.$animate != 4) { - if ($par1Packet18Animation.$animate == 6) { - $par1Packet18Animation = $this.$mc15.$effectRenderer; - $var5 = new nms_EntityCrit2FX; - $var4 = $this.$mc15.$theWorld; - $var3 = $rt_s(850); - $ptr = 2; - continue main; - } - if ($par1Packet18Animation.$animate == 7) { - $var5 = new nms_EntityCrit2FX; - $var4 = $this.$mc15.$theWorld; - $par1Packet18Animation = $rt_s(851); - $ptr = 3; - continue main; - } - } - } - } - return; - case 1: - nms_EntityPlayer_wakeUpPlayer($var4, var$2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_EntityCrit2FX__init_($var5, $var4, $var2, $var3); - if ($rt_suspending()) { - break main; - } - nms_EffectRenderer_addEffect($par1Packet18Animation, $var5); - return; - case 3: - nms_EntityCrit2FX__init_($var5, $var4, $var2, $par1Packet18Animation); - if ($rt_suspending()) { - break main; - } - nms_EffectRenderer_addEffect($this.$mc15.$effectRenderer, $var5); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet18Animation, var$2, $var2, $var5, $var4, var$6, var$7, $var3, $ptr); -}; -$java.nms_NetClientHandler_handleSleep = function($this, $par1Packet17Sleep) { - var var$2, $var2, $var3; - var$2 = $par1Packet17Sleep.$entityID0; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var3 = $this.$worldClient; - $var2 = var$2 == $var3.$mc11.$thePlayer.$entityId ? $var3.$mc11.$thePlayer : nms_IntHashMap_lookup($var3.$entityHashSet, var$2); - } - if ($var2 !== null && !$par1Packet17Sleep.$field_73622_e) - nms_EntityPlayer_sleepInBedAt($var2, $par1Packet17Sleep.$bedX, $par1Packet17Sleep.$bedY, $par1Packet17Sleep.$bedZ); -}; -$java.nms_NetClientHandler_disconnect = function($this) { - $this.$disconnected = 1; - $java.nle_WebsocketNetworkManager_networkShutdown($this.$netManager, $rt_s(2512), $rt_createArray(jl_Object, 0)); -}; -$java.nms_NetClientHandler_handleMobSpawn = function($this, $par1Packet24MobSpawn) { - var $var2, $var4, $var6, $var8, $var9, $var10, $var11, $var12, $var13, var$11, $var14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var14 = $thread.pop();var$11 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$par1Packet24MobSpawn = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var2 = $par1Packet24MobSpawn.$xPosition12 / 32.0; - $var4 = $par1Packet24MobSpawn.$yPosition11 / 32.0; - $var6 = $par1Packet24MobSpawn.$zPosition11 / 32.0; - $var8 = ($par1Packet24MobSpawn.$yaw3 * 360 | 0) / 256.0; - $var9 = ($par1Packet24MobSpawn.$pitch5 * 360 | 0) / 256.0; - $var10 = nms_EntityList_createEntityByID($par1Packet24MobSpawn.$type5, $this.$mc15.$theWorld); - $var10.$serverPosX = $par1Packet24MobSpawn.$xPosition12; - $var10.$serverPosY = $par1Packet24MobSpawn.$yPosition11; - $var10.$serverPosZ = $par1Packet24MobSpawn.$zPosition11; - $var10.$rotationYawHead = ($par1Packet24MobSpawn.$headYaw * 360 | 0) / 256.0; - $var11 = $var10.$getParts(); - if ($var11 !== null) { - $var12 = $par1Packet24MobSpawn.$entityId12 - $var10.$entityId | 0; - $var13 = 0; - while (true) { - var$11 = $var11.data; - if ($var13 >= var$11.length) - break a; - $var14 = var$11[$var13]; - $var14.$entityId = $var14.$entityId + $var12 | 0; - $var13 = $var13 + 1 | 0; - } - } - } - $var10.$entityId = $par1Packet24MobSpawn.$entityId12; - nms_Entity_setPositionAndRotation($var10, $var2, $var4, $var6, $var8, $var9); - $var10.$motionX = $par1Packet24MobSpawn.$velocityX2 / 8000.0; - $var10.$motionY = $par1Packet24MobSpawn.$velocityY2 / 8000.0; - $var10.$motionZ = $par1Packet24MobSpawn.$velocityZ2 / 8000.0; - $var14 = $this.$worldClient; - $var12 = $par1Packet24MobSpawn.$entityId12; - $ptr = 1; - case 1: - nms_WorldClient_addEntityToWorld($var14, $var12, $var10); - if ($rt_suspending()) { - break main; - } - if ($par1Packet24MobSpawn.$metadata3 === null) - $par1Packet24MobSpawn.$metadata3 = $par1Packet24MobSpawn.$metaData.$getAllWatched(); - $var14 = $par1Packet24MobSpawn.$metadata3; - if ($var14 !== null) - $java.nms_DataWatcher_updateWatchedObjectsFromList($var10.$dataWatcher, $var14); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet24MobSpawn, $var2, $var4, $var6, $var8, $var9, $var10, $var11, $var12, $var13, var$11, $var14, $ptr); -}; -$java.nms_NetClientHandler_handleUpdateTime = function($this, $par1Packet4UpdateTime) { - var var$2, var$3; - var$2 = $this.$mc15.$theWorld; - var$3 = $par1Packet4UpdateTime.$worldAge; - var$2.$worldInfo.$totalTime = var$3; - var$2 = $this.$mc15.$theWorld; - var$3 = $par1Packet4UpdateTime.$time0; - var$2.$worldInfo.$worldTime = var$3; -}; -$java.nms_NetClientHandler_handleSpawnPosition = function($this, $par1Packet6SpawnPosition) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $this.$mc15.$thePlayer; - var$3 = $par1Packet6SpawnPosition.$xPosition13; - var$4 = $par1Packet6SpawnPosition.$yPosition12; - var$5 = $par1Packet6SpawnPosition.$zPosition12; - var$6 = new nms_ChunkCoordinates; - var$6.$posX0 = var$3; - var$6.$posY0 = var$4; - var$6.$posZ0 = var$5; - var$2.$spawnChunk = var$6; - var$2.$spawnForced = 1; - var$2 = $this.$mc15.$theWorld.$worldInfo; - var$3 = $par1Packet6SpawnPosition.$xPosition13; - var$4 = $par1Packet6SpawnPosition.$yPosition12; - var$5 = $par1Packet6SpawnPosition.$zPosition12; - var$2.$spawnX = var$3; - var$2.$spawnY = var$4; - var$2.$spawnZ = var$5; -}; -$java.nms_NetClientHandler_handleAttachEntity = function($this, $par1Packet39AttachEntity) { - var var$2, $var2, $var3; - var$2 = $par1Packet39AttachEntity.$entityId13; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var2 = $this.$worldClient; - $var2 = var$2 == $var2.$mc11.$thePlayer.$entityId ? $var2.$mc11.$thePlayer : nms_IntHashMap_lookup($var2.$entityHashSet, var$2); - } - var$2 = $par1Packet39AttachEntity.$vehicleEntityId; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var3 = $this.$mc15.$thePlayer; - else { - $var3 = $this.$worldClient; - $var3 = var$2 == $var3.$mc11.$thePlayer.$entityId ? $var3.$mc11.$thePlayer : nms_IntHashMap_lookup($var3.$entityHashSet, var$2); - } - if ($par1Packet39AttachEntity.$entityId13 == $this.$mc15.$thePlayer.$entityId) { - $var2 = $this.$mc15.$thePlayer; - if ($var3 instanceof nms_EntityBoat) - $var3.$field_70279_a = 0; - } else if ($var3 instanceof nms_EntityBoat) - $var3.$field_70279_a = 1; - if ($var2 !== null) - $var2.$mountEntity($var3); -}; -$java.nms_NetClientHandler_handleEntityStatus = function($this, $par1Packet38EntityStatus) { - var var$2, $var2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$par1Packet38EntityStatus = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $par1Packet38EntityStatus.$entityId14; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var2 = $this.$worldClient; - $var2 = var$2 == $var2.$mc11.$thePlayer.$entityId ? $var2.$mc11.$thePlayer : nms_IntHashMap_lookup($var2.$entityHashSet, var$2); - } - if ($var2 === null) - return; - var$2 = $par1Packet38EntityStatus.$entityStatus; - $ptr = 1; - case 1: - $var2.$handleHealthUpdate(var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet38EntityStatus, var$2, $var2, $ptr); -}; -$java.nms_NetClientHandler_getEntityByID = function($this, $par1) { - var var$2; - if ($par1 == $this.$mc15.$thePlayer.$entityId) - var$2 = $this.$mc15.$thePlayer; - else { - var$2 = $this.$worldClient; - var$2 = $par1 == var$2.$mc11.$thePlayer.$entityId ? var$2.$mc11.$thePlayer : nms_IntHashMap_lookup(var$2.$entityHashSet, $par1); - } - return var$2; -}; -$java.nms_NetClientHandler_handleUpdateHealth = function($this, $par1Packet8UpdateHealth) { - 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();$par1Packet8UpdateHealth = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc15.$thePlayer; - var$3 = $par1Packet8UpdateHealth.$healthMP; - if (!var$2.$hasSetHealth) { - var$2.$health = var$3; - var$2.$hasSetHealth = 1; - $this.$mc15.$thePlayer.$foodStats.$foodLevel = $par1Packet8UpdateHealth.$food; - $this.$mc15.$thePlayer.$foodStats.$foodSaturationLevel = $par1Packet8UpdateHealth.$foodSaturation; - return; - } - $ptr = 1; - case 1: - nms_EntityPlayerSP_setHealth(var$2, var$3); - if ($rt_suspending()) { - break main; - } - $this.$mc15.$thePlayer.$foodStats.$foodLevel = $par1Packet8UpdateHealth.$food; - $this.$mc15.$thePlayer.$foodStats.$foodSaturationLevel = $par1Packet8UpdateHealth.$foodSaturation; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet8UpdateHealth, var$2, var$3, $ptr); -}; -$java.nms_NetClientHandler_handleExperience = function($this, $par1Packet43Experience) { - var var$2, var$3, var$4, var$5; - var$2 = $this.$mc15.$thePlayer; - var$3 = $par1Packet43Experience.$experience0; - var$4 = $par1Packet43Experience.$experienceTotal0; - var$5 = $par1Packet43Experience.$experienceLevel0; - var$2.$experience = var$3; - var$2.$experienceTotal = var$4; - var$2.$experienceLevel = var$5; -}; -$java.nms_NetClientHandler_handleRespawn = function($this, $par1Packet9Respawn) { - var var$2, var$3, $var2, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1Packet9Respawn = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1Packet9Respawn.$respawnDimension == $this.$mc15.$thePlayer.$dimension) { - var$2 = $this.$mc15; - var$3 = $par1Packet9Respawn.$respawnDimension; - $ptr = 1; - continue main; - } - $this.$doneLoadingTerrain = 0; - $var2 = $this.$worldClient.$worldScoreboard; - var$5 = new nms_WorldClient; - var$2 = new $java.nms_WorldSettings; - var$6 = $par1Packet9Respawn.$gameType0; - var$3 = $this.$mc15.$theWorld.$worldInfo.$hardcore; - var$7 = $par1Packet9Respawn.$terrainType3; - var$2.$field_82751_h = $rt_s(44); - var$2.$seed = Long_ZERO; - var$2.$theGameType = var$6; - var$2.$mapFeaturesEnabled = 0; - var$2.$hardcoreEnabled = var$3; - var$2.$terrainType2 = var$7; - nms_WorldClient__init_0(var$5, $this, var$2, $par1Packet9Respawn.$respawnDimension, $par1Packet9Respawn.$difficulty0, $this.$mc15.$mcProfiler); - $this.$worldClient = var$5; - $this.$worldClient.$worldScoreboard = $var2; - $this.$worldClient.$isRemote = 1; - var$2 = $this.$mc15; - var$7 = $this.$worldClient; - var$8 = $rt_s(44); - $ptr = 2; - continue main; - case 1: - nmc_Minecraft_setDimensionAndSpawnPlayer(var$2, var$3); - if ($rt_suspending()) { - break main; - } - var$2 = $this.$mc15.$playerController; - var$2.$currentGameType = $par1Packet9Respawn.$gameType0; - nms_EnumGameType_configurePlayerCapabilities(var$2.$currentGameType, var$2.$mc13.$thePlayer.$capabilities); - return; - case 2: - nmc_Minecraft_loadWorld0(var$2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $this.$mc15.$thePlayer.$dimension = $par1Packet9Respawn.$respawnDimension; - var$2 = $this.$mc15; - var$7 = new $java.nms_GuiDownloadTerrain; - nms_GuiScreen__init_(var$7); - var$7.$updateCounter1 = 0; - var$7.$netHandler = $this; - $ptr = 3; - case 3: - nmc_Minecraft_displayGuiScreen(var$2, var$7); - if ($rt_suspending()) { - break main; - } - var$2 = $this.$mc15; - var$3 = $par1Packet9Respawn.$respawnDimension; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet9Respawn, var$2, var$3, $var2, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_NetClientHandler_handleExplosion = function($this, $par1Packet60Explosion) { - var $var2, var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1Packet60Explosion = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = nms_Explosion__init_($this.$mc15.$theWorld, null, $par1Packet60Explosion.$explosionX, $par1Packet60Explosion.$explosionY, $par1Packet60Explosion.$explosionZ, $par1Packet60Explosion.$explosionSize); - $var2.$affectedBlockPositions = $par1Packet60Explosion.$chunkPositionRecords; - var$3 = 1; - $ptr = 1; - case 1: - nms_Explosion_doExplosionB($var2, var$3); - if ($rt_suspending()) { - break main; - } - $var2 = $this.$mc15.$thePlayer; - $var2.$motionX = $var2.$motionX + $par1Packet60Explosion.$playerVelocityX; - $var2 = $this.$mc15.$thePlayer; - $var2.$motionY = $var2.$motionY + $par1Packet60Explosion.$playerVelocityY; - $var2 = $this.$mc15.$thePlayer; - $var2.$motionZ = $var2.$motionZ + $par1Packet60Explosion.$playerVelocityZ; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet60Explosion, $var2, var$3, $ptr); -}; -$java.nms_NetClientHandler_handleOpenWindow = function($this, $par1Packet100OpenWindow) { - var $var2, $var4, $var7, var$5, var$6, $var5, $var8, var$9, var$10, var$11, $var3, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$var3 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var5 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var7 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$par1Packet100OpenWindow = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$mc15.$thePlayer; - switch ($par1Packet100OpenWindow.$inventoryType) { - case 0: - $var4 = new $java.nms_InventoryBasic; - $var7 = $par1Packet100OpenWindow.$windowTitle; - var$5 = $par1Packet100OpenWindow.$useProvidedWindowTitle; - var$6 = $par1Packet100OpenWindow.$slotsCount0; - $var4.$inventoryTitle = $var7; - $var4.$field_94051_e = var$5; - $var4.$slotsCount = var$6; - $var4.$inventoryContents = $rt_createArray(nms_ItemStack, var$6); - $var5 = $var2.$mc3; - $var7 = new nms_GuiChest; - $var8 = $var2.$inventory; - $ptr = 1; - continue main; - case 1: - var$9 = $var2.$posX; - var$10 = var$9 | 0; - if (var$9 < var$10) - var$10 = var$10 - 1 | 0; - var$9 = $var2.$posY; - var$6 = var$9 | 0; - if (var$9 < var$6) - var$6 = var$6 - 1 | 0; - var$9 = $var2.$posZ; - var$5 = var$9 | 0; - if (var$9 < var$5) - var$5 = var$5 - 1 | 0; - $var7 = $var2.$mc3; - $var4 = new nms_GuiCrafting; - nms_GuiContainer__init_($var4, nms_ContainerWorkbench__init_($var2.$inventory, $var2.$worldObj, var$10, var$6, var$5)); - $ptr = 10; - continue main; - case 2: - $var4 = new nms_TileEntityFurnace; - $var4.$blockMetadata = (-1); - $var4.$furnaceItemStacks = $rt_createArray(nms_ItemStack, 3); - $var4.$furnaceBurnTime = 0; - $var4.$currentItemBurnTime = 0; - $var4.$furnaceCookTime = 0; - if ($par1Packet100OpenWindow.$useProvidedWindowTitle) - $java.nms_TileEntityFurnace_func_94129_a($var4, $par1Packet100OpenWindow.$windowTitle); - $ptr = 4; - continue main; - case 3: - $var7 = new nms_TileEntityDispenser; - $var7.$blockMetadata = (-1); - $var7.$dispenserContents = $rt_createArray(nms_ItemStack, 9); - $var7.$dispenserRandom = new ju_Random; - if ($par1Packet100OpenWindow.$useProvidedWindowTitle) - $java.nms_TileEntityDispenser_setCustomName($var7, $par1Packet100OpenWindow.$windowTitle); - $ptr = 5; - continue main; - case 4: - var$9 = $var2.$posX; - var$11 = var$9 | 0; - if (var$9 < var$11) - var$11 = var$11 - 1 | 0; - var$9 = $var2.$posY; - var$10 = var$9 | 0; - if (var$9 < var$10) - var$10 = var$10 - 1 | 0; - var$9 = $var2.$posZ; - var$6 = var$9 | 0; - if (var$9 < var$6) - var$6 = var$6 - 1 | 0; - $var4 = !$par1Packet100OpenWindow.$useProvidedWindowTitle ? null : $par1Packet100OpenWindow.$windowTitle; - $ptr = 12; - continue main; - case 5: - $var5 = new nms_TileEntityBrewingStand; - $var5.$blockMetadata = (-1); - $var5.$brewingItemStacks = $rt_createArray(nms_ItemStack, 4); - if ($par1Packet100OpenWindow.$useProvidedWindowTitle) - $var5.$field_94132_e = $par1Packet100OpenWindow.$windowTitle; - $ptr = 6; - continue main; - case 6: - $var4 = new $java.nms_NpcMerchant; - $var4.$customer = $var2; - $var7 = new $java.nms_InventoryMerchant; - $var7.$theInventory = $rt_createArray(nms_ItemStack, 3); - $var7.$thePlayer0 = $var2; - $var7.$theMerchant = $var4; - $var4.$theMerchantInventory = $var7; - $var7 = !$par1Packet100OpenWindow.$useProvidedWindowTitle ? null : $par1Packet100OpenWindow.$windowTitle; - $ptr = 9; - continue main; - case 7: - $var8 = new nms_TileEntityBeacon; - nms_TileEntityBeacon_$callClinit(); - $var8.$blockMetadata = (-1); - $var8.$levels = (-1); - $var7 = $var2.$mc3; - $var4 = new nms_GuiBeacon; - nms_GuiContainer__init_($var4, nms_ContainerBeacon__init_($var2.$inventory, $var8)); - $var4.$beacon = $var8; - $var4.$xSize = 230; - $var4.$ySize0 = 219; - $ptr = 3; - continue main; - case 8: - var$9 = $var2.$posX; - var$5 = var$9 | 0; - if (var$9 < var$5) - var$5 = var$5 - 1 | 0; - var$9 = $var2.$posY; - var$11 = var$9 | 0; - if (var$9 < var$11) - var$11 = var$11 - 1 | 0; - var$9 = $var2.$posZ; - var$10 = var$9 | 0; - if (var$9 < var$10) - var$10 = var$10 - 1 | 0; - $var7 = $var2.$mc3; - $var4 = new nms_GuiRepair; - $var5 = $var2.$inventory; - nms_GuiContainer__init_($var4, nms_ContainerRepair__init_($var5, $var2.$worldObj, var$5, var$11, var$10, nmc_Minecraft_theMinecraft.$thePlayer)); - $var4.$field_82325_q = $var5; - $var4.$repairContainer = $var4.$inventorySlots0; - $ptr = 11; - continue main; - case 9: - $var3 = $java.nms_TileEntityHopper__init_(); - if ($par1Packet100OpenWindow.$useProvidedWindowTitle) - $var3.$inventoryName = $par1Packet100OpenWindow.$windowTitle; - $ptr = 7; - continue main; - case 10: - $var6 = $java.nms_TileEntityDropper__init_(); - if ($par1Packet100OpenWindow.$useProvidedWindowTitle) - $var6.$customName = $par1Packet100OpenWindow.$windowTitle; - $ptr = 8; - continue main; - default: - } - return; - case 1: - nms_GuiChest__init_($var7, $var8, $var4); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen($var5, $var7); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 3: - nmc_Minecraft_displayGuiScreen($var7, $var4); - if ($rt_suspending()) { - break main; - } - if ($par1Packet100OpenWindow.$useProvidedWindowTitle) - $var8.$field_94048_i = $par1Packet100OpenWindow.$windowTitle; - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 4: - nms_EntityPlayerSP_displayGUIFurnace($var2, $var4); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 5: - nms_EntityPlayerSP_displayGUIDispenser($var2, $var7); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 6: - nms_EntityPlayerSP_displayGUIBrewingStand($var2, $var5); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 7: - nms_EntityPlayerSP_displayGUIHopper($var2, $var3); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 8: - nms_EntityPlayerSP_displayGUIDispenser($var2, $var6); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 9: - nms_EntityPlayerSP_displayGUIMerchant($var2, $var4, $var7); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 10: - nmc_Minecraft_displayGuiScreen($var7, $var4); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 11: - nmc_Minecraft_displayGuiScreen($var7, $var4); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - case 12: - nms_EntityPlayerSP_displayGUIEnchantment($var2, var$11, var$10, var$6, $var4); - if ($rt_suspending()) { - break main; - } - $var2.$openContainer.$windowId = $par1Packet100OpenWindow.$windowId2; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet100OpenWindow, $var2, $var4, $var7, var$5, var$6, $var5, $var8, var$9, var$10, var$11, $var3, $var6, $ptr); -}; -$java.nms_NetClientHandler_handleSetSlot = function($this, $par1Packet103SetSlot) { - var $var2, $var3, $var5, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1Packet103SetSlot = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var2 = $this.$mc15.$thePlayer; - if ($par1Packet103SetSlot.$windowId3 == (-1)) - $var2.$inventory.$itemStack = $par1Packet103SetSlot.$myItemStack; - else { - $var3 = 0; - if ($this.$mc15.$currentScreen instanceof nms_GuiContainerCreative) - $var3 = $java.nms_GuiContainerCreative_selectedTabIndex == nms_CreativeTabs_tabInventory.$tabIndex ? 0 : 1; - if (!$par1Packet103SetSlot.$windowId3 && $par1Packet103SetSlot.$itemSlot >= 36 && $par1Packet103SetSlot.$itemSlot < 45) { - $var5 = $var2.$inventoryContainer; - $var3 = $par1Packet103SetSlot.$itemSlot; - $var5 = $var5.$inventorySlots; - if ($var3 >= 0 && $var3 < $var5.$size0) { - $var5 = $var5.$array1.data[$var3].$getStack(); - if ($par1Packet103SetSlot.$myItemStack !== null && !($var5 !== null && $var5.$stackSize >= $par1Packet103SetSlot.$myItemStack.$stackSize)) - $par1Packet103SetSlot.$myItemStack.$animationsToGo = 5; - $var2 = $var2.$inventoryContainer; - $var3 = $par1Packet103SetSlot.$itemSlot; - $par1Packet103SetSlot = $par1Packet103SetSlot.$myItemStack; - $var2 = $var2.$inventorySlots; - if ($var3 >= 0 && $var3 < $var2.$size0) { - $var2 = $var2.$array1.data[$var3]; - $ptr = 2; - continue main; - } - $par1Packet103SetSlot = new jl_IndexOutOfBoundsException; - $par1Packet103SetSlot.$suppressionEnabled = 1; - $par1Packet103SetSlot.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Packet103SetSlot); - $rt_throw($par1Packet103SetSlot); - } - $par1Packet103SetSlot = new jl_IndexOutOfBoundsException; - $par1Packet103SetSlot.$suppressionEnabled = 1; - $par1Packet103SetSlot.$writableStackTrace = 1; - $rt_throw($par1Packet103SetSlot); - } - if ($par1Packet103SetSlot.$windowId3 == $var2.$openContainer.$windowId) { - if ($par1Packet103SetSlot.$windowId3) - break a; - if (!$var3) - break a; - } - } - return; - } - $var2 = $var2.$openContainer; - $var3 = $par1Packet103SetSlot.$itemSlot; - $par1Packet103SetSlot = $par1Packet103SetSlot.$myItemStack; - $var2 = $var2.$inventorySlots; - if ($var3 >= 0 && $var3 < $var2.$size0) { - $var2 = $var2.$array1.data[$var3]; - $ptr = 1; - continue main; - } - $par1Packet103SetSlot = new jl_IndexOutOfBoundsException; - $par1Packet103SetSlot.$suppressionEnabled = 1; - $par1Packet103SetSlot.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Packet103SetSlot); - $rt_throw($par1Packet103SetSlot); - case 1: - $var2.$putStack($par1Packet103SetSlot); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $var2.$putStack($par1Packet103SetSlot); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet103SetSlot, $var2, $var3, $var5, $ptr); -}; -$java.nms_NetClientHandler_handleTransaction = function($this, $par1Packet106Transaction) { - var $var2, $var3, var$4, var$5; - $var2 = null; - $var3 = $this.$mc15.$thePlayer; - if (!$par1Packet106Transaction.$windowId4) - $var2 = $var3.$inventoryContainer; - else if ($par1Packet106Transaction.$windowId4 == $var3.$openContainer.$windowId) - $var2 = $var3.$openContainer; - if ($var2 !== null && !$par1Packet106Transaction.$accepted) { - $var2 = new nms_Packet106Transaction; - var$4 = $par1Packet106Transaction.$windowId4; - var$5 = $par1Packet106Transaction.$shortWindowId; - nms_Packet_$callClinit(); - $var2.$creationTimeMillis = jl_System_currentTimeMillis(); - $var2.$isChunkDataPacket = 0; - $var2.$windowId4 = var$4; - $var2.$shortWindowId = var$5; - $var2.$accepted = 1; - if (!$this.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($this.$netManager, $var2); - } -}; -$java.nms_NetClientHandler_handleWindowItems = function($this, $par1Packet104WindowItems) { - var $var2, 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();$var2 = $thread.pop();$par1Packet104WindowItems = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var2 = $this.$mc15.$thePlayer; - if (!$par1Packet104WindowItems.$windowId5) { - $var2 = $var2.$inventoryContainer; - var$3 = $par1Packet104WindowItems.$itemStack3; - var$4 = 0; - var$5 = var$3.data; - if (var$4 >= var$5.length) - break a; - $par1Packet104WindowItems = $var2.$inventorySlots; - if (var$4 >= 0 && var$4 < $par1Packet104WindowItems.$size0) { - var$6 = $par1Packet104WindowItems.$array1.data[var$4]; - $par1Packet104WindowItems = var$5[var$4]; - $ptr = 1; - continue main; - } - $par1Packet104WindowItems = new jl_IndexOutOfBoundsException; - $par1Packet104WindowItems.$suppressionEnabled = 1; - $par1Packet104WindowItems.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Packet104WindowItems); - $rt_throw($par1Packet104WindowItems); - } - if ($par1Packet104WindowItems.$windowId5 == $var2.$openContainer.$windowId) { - $var2 = $var2.$openContainer; - var$3 = $par1Packet104WindowItems.$itemStack3; - var$4 = 0; - var$5 = var$3.data; - if (var$4 < var$5.length) { - $par1Packet104WindowItems = $var2.$inventorySlots; - if (var$4 >= 0 && var$4 < $par1Packet104WindowItems.$size0) { - var$6 = $par1Packet104WindowItems.$array1.data[var$4]; - $par1Packet104WindowItems = var$5[var$4]; - $ptr = 2; - continue main; - } - $par1Packet104WindowItems = new jl_IndexOutOfBoundsException; - $par1Packet104WindowItems.$suppressionEnabled = 1; - $par1Packet104WindowItems.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Packet104WindowItems); - $rt_throw($par1Packet104WindowItems); - } - } - } - return; - case 1: - var$6.$putStack($par1Packet104WindowItems); - if ($rt_suspending()) { - break main; - } - var$4 = var$4 + 1 | 0; - var$5 = var$3.data; - if (var$4 >= var$5.length) - return; - $par1Packet104WindowItems = $var2.$inventorySlots; - if (var$4 >= 0 && var$4 < $par1Packet104WindowItems.$size0) { - var$6 = $par1Packet104WindowItems.$array1.data[var$4]; - $par1Packet104WindowItems = var$5[var$4]; - continue main; - } - $par1Packet104WindowItems = new jl_IndexOutOfBoundsException; - $par1Packet104WindowItems.$suppressionEnabled = 1; - $par1Packet104WindowItems.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Packet104WindowItems); - $rt_throw($par1Packet104WindowItems); - case 2: - var$6.$putStack($par1Packet104WindowItems); - if ($rt_suspending()) { - break main; - } - var$4 = var$4 + 1 | 0; - var$5 = var$3.data; - if (var$4 >= var$5.length) - return; - $par1Packet104WindowItems = $var2.$inventorySlots; - if (var$4 >= 0 && var$4 < $par1Packet104WindowItems.$size0) { - var$6 = $par1Packet104WindowItems.$array1.data[var$4]; - $par1Packet104WindowItems = var$5[var$4]; - continue main; - } - $par1Packet104WindowItems = new jl_IndexOutOfBoundsException; - $par1Packet104WindowItems.$suppressionEnabled = 1; - $par1Packet104WindowItems.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Packet104WindowItems); - $rt_throw($par1Packet104WindowItems); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet104WindowItems, $var2, var$3, var$4, var$5, var$6, $ptr); -}; -$java.nms_NetClientHandler_handleUpdateSign = function($this, $par1Packet130UpdateSign) { - var $var2, $var5, $var3, $var4, var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var5 = $thread.pop();$var2 = $thread.pop();$par1Packet130UpdateSign = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = 0; - $var5 = $par1Packet130UpdateSign.$yPosition13; - if ($var5 >= 0 && $var5 < 256 ? 1 : 0) { - $var3 = nms_World_getBlockTileEntity($this.$mc15.$theWorld, $par1Packet130UpdateSign.$xPosition14, $par1Packet130UpdateSign.$yPosition13, $par1Packet130UpdateSign.$zPosition13); - if ($var3 instanceof nms_TileEntitySign) { - $var4 = $var3; - if ($var4.$isEditable) { - $var5 = 0; - while ($var5 < 4) { - $var4.$signText.data[$var5] = $par1Packet130UpdateSign.$signLines.data[$var5]; - $var5 = $var5 + 1 | 0; - } - $ptr = 1; - continue main; - } - $var2 = 1; - } - } - if (!$var2 && $this.$mc15.$thePlayer !== null) { - $var3 = $this.$mc15.$thePlayer; - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(2513)); - $var2 = $par1Packet130UpdateSign.$xPosition14; - jl_AbstractStringBuilder_insert0($var4, $var4.$length, $var2, 10); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(344)); - $var2 = $par1Packet130UpdateSign.$yPosition13; - jl_AbstractStringBuilder_insert0($var4, $var4.$length, $var2, 10); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(344)); - $var2 = $par1Packet130UpdateSign.$zPosition13; - jl_AbstractStringBuilder_insert0($var4, $var4.$length, $var2, 10); - $par1Packet130UpdateSign = jl_String__init_0($var4.$buffer, 0, $var4.$length); - $var4 = $var3.$mc3.$ingameGUI.$persistantChatGUI; - nms_GuiNewChat_func_96129_a($var4, $par1Packet130UpdateSign, 0, $var4.$mc12.$ingameGUI.$updateCounter0, 0); - if (jl_System_outCache === null) { - $var4 = new ji_PrintStream; - $var4.$out = new jl_ConsoleOutputStreamStdout; - $var3 = new jl_StringBuilder; - jl_Object__init_0($var3); - $var3.$buffer = $rt_createCharArray(16); - $var4.$sb = $var3; - $var4.$buffer0 = $rt_createCharArray(32); - $var4.$autoFlush = 0; - $var3 = new jnci_UTF8Charset; - jnc_Charset__init_($var3, $rt_s(2), $rt_createArray(jl_String, 0)); - $var4.$charset = $var3; - jl_System_outCache = $var4; - } - var$6 = jl_System_outCache; - $var3 = new jl_StringBuilder; - $var3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(1533)); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $par1Packet130UpdateSign); - $par1Packet130UpdateSign = jl_String__init_0($var3.$buffer, 0, $var3.$length); - $var3 = var$6.$sb; - jl_AbstractStringBuilder_insert($var3, $var3.$length, $par1Packet130UpdateSign); - jl_AbstractStringBuilder_insert4($var3, $var3.$length, 10); - ji_PrintStream_printSB(var$6); - } - return; - case 1: - nms_TileEntity_onInventoryChanged($var4); - if ($rt_suspending()) { - break main; - } - if (!1 && $this.$mc15.$thePlayer !== null) { - $var3 = $this.$mc15.$thePlayer; - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(2513)); - $var2 = $par1Packet130UpdateSign.$xPosition14; - jl_AbstractStringBuilder_insert0($var4, $var4.$length, $var2, 10); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(344)); - $var2 = $par1Packet130UpdateSign.$yPosition13; - jl_AbstractStringBuilder_insert0($var4, $var4.$length, $var2, 10); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(344)); - $var2 = $par1Packet130UpdateSign.$zPosition13; - jl_AbstractStringBuilder_insert0($var4, $var4.$length, $var2, 10); - $par1Packet130UpdateSign = jl_String__init_0($var4.$buffer, 0, $var4.$length); - $var4 = $var3.$mc3.$ingameGUI.$persistantChatGUI; - nms_GuiNewChat_func_96129_a($var4, $par1Packet130UpdateSign, 0, $var4.$mc12.$ingameGUI.$updateCounter0, 0); - if (jl_System_outCache === null) { - $var4 = new ji_PrintStream; - $var4.$out = new jl_ConsoleOutputStreamStdout; - $var3 = new jl_StringBuilder; - jl_Object__init_0($var3); - $var3.$buffer = $rt_createCharArray(16); - $var4.$sb = $var3; - $var4.$buffer0 = $rt_createCharArray(32); - $var4.$autoFlush = 0; - $var3 = new jnci_UTF8Charset; - jnc_Charset__init_($var3, $rt_s(2), $rt_createArray(jl_String, 0)); - $var4.$charset = $var3; - jl_System_outCache = $var4; - } - var$6 = jl_System_outCache; - $var3 = new jl_StringBuilder; - $var3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(1533)); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $par1Packet130UpdateSign); - $par1Packet130UpdateSign = jl_String__init_0($var3.$buffer, 0, $var3.$length); - $var3 = var$6.$sb; - jl_AbstractStringBuilder_insert($var3, $var3.$length, $par1Packet130UpdateSign); - jl_AbstractStringBuilder_insert4($var3, $var3.$length, 10); - ji_PrintStream_printSB(var$6); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet130UpdateSign, $var2, $var5, $var3, $var4, var$6, $ptr); -}; -$java.nms_NetClientHandler_handleTileEntityData = function($this, $par1Packet132TileEntityData) { - var var$2, $var2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$par1Packet132TileEntityData = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $par1Packet132TileEntityData.$yPosition14; - if (var$2 >= 0 && var$2 < 256 ? 1 : 0) { - $var2 = nms_World_getBlockTileEntity($this.$mc15.$theWorld, $par1Packet132TileEntityData.$xPosition15, $par1Packet132TileEntityData.$yPosition14, $par1Packet132TileEntityData.$zPosition14); - if ($var2 !== null) { - if ($par1Packet132TileEntityData.$actionType == 1 && $var2 instanceof nms_TileEntityMobSpawner) { - $par1Packet132TileEntityData = $par1Packet132TileEntityData.$customParam1; - $ptr = 1; - continue main; - } - if ($par1Packet132TileEntityData.$actionType == 2 && $var2 instanceof nms_TileEntityCommandBlock) { - $par1Packet132TileEntityData = $par1Packet132TileEntityData.$customParam1; - $ptr = 2; - continue main; - } - if ($par1Packet132TileEntityData.$actionType == 3 && $var2 instanceof nms_TileEntityBeacon) { - $par1Packet132TileEntityData = $par1Packet132TileEntityData.$customParam1; - $ptr = 3; - continue main; - } - if ($par1Packet132TileEntityData.$actionType == 4 && $var2 instanceof nms_TileEntitySkull) { - $par1Packet132TileEntityData = $par1Packet132TileEntityData.$customParam1; - $ptr = 4; - continue main; - } - } - } - return; - case 1: - $var2.$readFromNBT($par1Packet132TileEntityData); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $var2.$readFromNBT($par1Packet132TileEntityData); - if ($rt_suspending()) { - break main; - } - return; - case 3: - $var2.$readFromNBT($par1Packet132TileEntityData); - if ($rt_suspending()) { - break main; - } - return; - case 4: - $var2.$readFromNBT($par1Packet132TileEntityData); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet132TileEntityData, var$2, $var2, $ptr); -}; -$java.nms_NetClientHandler_handleUpdateProgressbar = function($this, $par1Packet105UpdateProgressbar) { - var $var2; - $var2 = $this.$mc15.$thePlayer; - if ($var2.$openContainer !== null && $var2.$openContainer.$windowId == $par1Packet105UpdateProgressbar.$windowId6) - $var2.$openContainer.$updateProgressBar($par1Packet105UpdateProgressbar.$progressBar, $par1Packet105UpdateProgressbar.$progressBarValue); -}; -$java.nms_NetClientHandler_handlePlayerInventory = function($this, $par1Packet5PlayerInventory) { - var var$2, $var2; - var$2 = $par1Packet5PlayerInventory.$entityID1; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var2 = $this.$worldClient; - $var2 = var$2 == $var2.$mc11.$thePlayer.$entityId ? $var2.$mc11.$thePlayer : nms_IntHashMap_lookup($var2.$entityHashSet, var$2); - } - if ($var2 !== null) - $var2.$setCurrentItemOrArmor($par1Packet5PlayerInventory.$slot0, $par1Packet5PlayerInventory.$itemSlot0); -}; -$java.nms_NetClientHandler_handleCloseWindow = function($this, $par1Packet101CloseWindow) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1Packet101CloseWindow = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1Packet101CloseWindow = $this.$mc15.$thePlayer; - $par1Packet101CloseWindow.$inventory.$itemStack = null; - $par1Packet101CloseWindow.$openContainer = $par1Packet101CloseWindow.$inventoryContainer; - var$2 = $par1Packet101CloseWindow.$mc3; - $par1Packet101CloseWindow = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, $par1Packet101CloseWindow); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet101CloseWindow, var$2, $ptr); -}; -$java.nms_NetClientHandler_handleBlockEvent = function($this, $par1Packet54PlayNoteBlock) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1Packet54PlayNoteBlock = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc15.$theWorld; - var$3 = $par1Packet54PlayNoteBlock.$xLocation; - var$4 = $par1Packet54PlayNoteBlock.$yLocation; - var$5 = $par1Packet54PlayNoteBlock.$zLocation; - var$6 = $par1Packet54PlayNoteBlock.$blockId; - var$7 = $par1Packet54PlayNoteBlock.$instrumentType; - var$8 = $par1Packet54PlayNoteBlock.$pitch6; - if (var$6 <= 0) - return; - nms_Block_$callClinit(); - $par1Packet54PlayNoteBlock = nms_Block_blocksList.data[var$6]; - $ptr = 1; - case 1: - $par1Packet54PlayNoteBlock.$onBlockEventReceived(var$2, var$3, var$4, var$5, var$7, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet54PlayNoteBlock, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_NetClientHandler_handleBlockDestroy = function($this, $par1Packet55BlockDestroy) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8; - var$2 = $this.$mc15.$theWorld; - var$3 = $par1Packet55BlockDestroy.$entityId15; - var$4 = $par1Packet55BlockDestroy.$posX7; - var$5 = $par1Packet55BlockDestroy.$posY7; - var$6 = $par1Packet55BlockDestroy.$posZ5; - var$7 = $par1Packet55BlockDestroy.$destroyedStage; - var$8 = 0; - a: { - while (var$8 < var$2.$worldAccesses.$size0) { - $par1Packet55BlockDestroy = var$2.$worldAccesses; - if (var$8 < 0) - break a; - if (var$8 >= $par1Packet55BlockDestroy.$size0) - break a; - nms_RenderGlobal_destroyBlockPartially($par1Packet55BlockDestroy.$array1.data[var$8], var$3, var$4, var$5, var$6, var$7); - var$8 = var$8 + 1 | 0; - } - return; - } - $par1Packet55BlockDestroy = new jl_IndexOutOfBoundsException; - $par1Packet55BlockDestroy.$suppressionEnabled = 1; - $par1Packet55BlockDestroy.$writableStackTrace = 1; - $rt_throw($par1Packet55BlockDestroy); -}; -$java.nms_NetClientHandler_handleMapChunks = function($this, $par1Packet56MapChunks) { - var $var2, $var3, $var4, var$5, var$6, var$7, var$8, $var5, var$10, var$11, var$12; - $var2 = 0; - a: { - while ($var2 < $par1Packet56MapChunks.$chunkPostX.data.length) { - $var3 = $par1Packet56MapChunks.$chunkPostX.data[$var2]; - $var4 = $par1Packet56MapChunks.$chunkPosZ.data[$var2]; - nms_WorldClient_doPreChunk($this.$worldClient, $var3, $var4, 1); - var$5 = $var3 << 4; - var$6 = $var4 << 4; - var$7 = var$5 + 15 | 0; - var$8 = var$6 + 15 | 0; - $var5 = nms_ChunkProviderClient_provideChunk($this.$worldClient.$chunkProvider, $var3, $var4); - if ($var5 === null) { - nms_WorldClient_doPreChunk($this.$worldClient, $var3, $var4, 1); - $var5 = nms_ChunkProviderClient_provideChunk($this.$worldClient.$chunkProvider, $var3, $var4); - } - if ($var5 !== null) { - $java.nms_Chunk_fillChunk($var5, $par1Packet56MapChunks.$field_73584_f.data[$var2], $par1Packet56MapChunks.$field_73590_a.data[$var2], $par1Packet56MapChunks.$field_73588_b.data[$var2], 1); - var$10 = $this.$worldClient; - var$11 = 0; - $var4 = var$5 - 1 | 0; - var$6 = var$6 - 1 | 0; - $var3 = var$7 + 1 | 0; - var$7 = var$8 + 1 | 0; - while (var$11 < var$10.$worldAccesses.$size0) { - var$12 = var$10.$worldAccesses; - if (var$11 < 0) - break a; - if (var$11 >= var$12.$size0) - break a; - nms_RenderGlobal_markBlocksForUpdate(var$12.$array1.data[var$11], $var4, (-1), var$6, $var3, 257, var$7); - var$11 = var$11 + 1 | 0; - } - if (!($this.$worldClient.$provider instanceof nms_WorldProviderSurface)) - $var5.$queuedLightChecks = 0; - } - $var2 = $var2 + 1 | 0; - } - return; - } - $par1Packet56MapChunks = new jl_IndexOutOfBoundsException; - $par1Packet56MapChunks.$suppressionEnabled = 1; - $par1Packet56MapChunks.$writableStackTrace = 1; - $rt_throw($par1Packet56MapChunks); -}; -$java.nms_NetClientHandler_handleGameEvent = function($this, $par1Packet70GameEvent) { - var $var2, $var3, $var4, var$5, var$6, $var5, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var5 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1Packet70GameEvent = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $this.$mc15.$thePlayer; - $var3 = $par1Packet70GameEvent.$eventType; - $var4 = $par1Packet70GameEvent.$gameMode; - if ($var3 >= 0 && $var3 < $java.nms_Packet70GameEvent_clientMessage.data.length && $java.nms_Packet70GameEvent_clientMessage.data[$var3] !== null) { - $par1Packet70GameEvent = $java.nms_Packet70GameEvent_clientMessage.data[$var3]; - var$5 = $var2.$mc3.$ingameGUI.$persistantChatGUI; - var$6 = $rt_createArray(jl_Object, 0); - $par1Packet70GameEvent = nms_StringTranslate_translateKeyFormat(nms_StringTranslate_instance, $par1Packet70GameEvent, var$6); - nms_GuiNewChat_func_96129_a(var$5, $par1Packet70GameEvent, 0, var$5.$mc12.$ingameGUI.$updateCounter0, 0); - if (jl_System_outCache === null) { - var$5 = new ji_PrintStream; - $var5 = new jl_ConsoleOutputStreamStdout; - jl_Object__init_0(var$5); - var$5.$out = $var5; - $var5 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2($var5, 16); - var$5.$sb = $var5; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - $var5 = new jnci_UTF8Charset; - jnc_Charset__init_($var5, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = $var5; - jl_System_outCache = var$5; - } - var$8 = jl_System_outCache; - $var5 = new jl_StringBuilder; - $var5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var5, $var5.$length, $rt_s(1533)); - jl_AbstractStringBuilder_insert($var5, $var5.$length, $par1Packet70GameEvent); - $par1Packet70GameEvent = jl_String__init_0($var5.$buffer, 0, $var5.$length); - $var5 = var$8.$sb; - jl_StringBuilder_insert6($var5, $var5.$length, $par1Packet70GameEvent); - jl_StringBuilder_insert5($var5, $var5.$length, 10); - ji_PrintStream_printSB(var$8); - } - if ($var3 == 1) { - $this.$worldClient.$worldInfo.$raining = 1; - $par1Packet70GameEvent = $this.$worldClient; - $par1Packet70GameEvent.$prevRainingStrength = 0.0; - $par1Packet70GameEvent.$rainingStrength = 0.0; - } else if ($var3 == 2) { - $this.$worldClient.$worldInfo.$raining = 0; - $par1Packet70GameEvent = $this.$worldClient; - $par1Packet70GameEvent.$prevRainingStrength = 1.0; - $par1Packet70GameEvent.$rainingStrength = 1.0; - } else if ($var3 == 3) { - $par1Packet70GameEvent = $this.$mc15.$playerController; - $par1Packet70GameEvent.$currentGameType = $java.nms_EnumGameType_getByID($var4); - nms_EnumGameType_configurePlayerCapabilities($par1Packet70GameEvent.$currentGameType, $par1Packet70GameEvent.$mc13.$thePlayer.$capabilities); - } else { - if ($var3 == 4) { - $par1Packet70GameEvent = $this.$mc15; - $var2 = new nms_GuiWinGame; - nms_GuiScreen__init_($var2); - $var2.$updateCounter3 = 0; - $var2.$field_73989_c = 0; - $var2.$field_73987_d = 0.5; - $ptr = 1; - continue main; - } - if ($var3 == 5) { - $var5 = $this.$mc15.$gameSettings; - if (!$var4) - return; - if ($var4 != 101) { - if ($var4 == 102) { - $par1Packet70GameEvent = nms_GuiIngame_getChatGUI($this.$mc15.$ingameGUI); - var$6 = $rt_createArray(jl_Object, 1); - var$6.data[0] = nlea_EaglerAdapterImpl2_getKeyName($var5.$keyBindJump.$keyCode); - nms_GuiNewChat_addTranslatedMessage($par1Packet70GameEvent, $rt_s(2514), var$6); - } else if ($var4 == 103) { - $par1Packet70GameEvent = nms_GuiIngame_getChatGUI($this.$mc15.$ingameGUI); - var$6 = $rt_createArray(jl_Object, 1); - var$6.data[0] = nlea_EaglerAdapterImpl2_getKeyName($var5.$keyBindInventory.$keyCode); - nms_GuiNewChat_addTranslatedMessage($par1Packet70GameEvent, $rt_s(2515), var$6); - } - } else { - var$5 = $this.$mc15.$ingameGUI.$persistantChatGUI; - var$6 = $rt_createArray(jl_Object, 4); - $var3 = $var5.$keyBindForward.$keyCode; - nlea_EaglerAdapterImpl2_$callClinit(); - $par1Packet70GameEvent = $var3 >= 0 && $var3 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[$var3] : $rt_s(47); - var$9 = var$6.data; - var$9[0] = $par1Packet70GameEvent; - $var3 = $var5.$keyBindLeft.$keyCode; - var$9[1] = $var3 >= 0 && $var3 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[$var3] : $rt_s(47); - var$9[2] = nlea_EaglerAdapterImpl2_getKeyName($var5.$keyBindBack.$keyCode); - var$9[3] = nlea_EaglerAdapterImpl2_getKeyName($var5.$keyBindRight.$keyCode); - nms_GuiNewChat_addTranslatedMessage(var$5, $rt_s(2516), var$6); - } - } else if ($var3 == 6) { - $var5 = $this.$worldClient; - var$10 = $var2.$posX; - var$11 = $var2.$posY + nms_EntityPlayer_getEyeHeight($var2); - var$12 = $var2.$posZ; - $par1Packet70GameEvent = $rt_s(2517); - var$13 = 0.18000000715255737; - var$14 = 0.44999998807907104; - var$15 = 0; - $ptr = 2; - continue main; - } - } - return; - case 1: - nmc_Minecraft_displayGuiScreen($par1Packet70GameEvent, $var2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_WorldClient_playSound($var5, var$10, var$11, var$12, $par1Packet70GameEvent, var$13, var$14, var$15); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet70GameEvent, $var2, $var3, $var4, var$5, var$6, $var5, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr); -}; -$java.nms_NetClientHandler_handleMapData = function($this, $par1Packet131MapData) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $par1Packet131MapData.$itemID1; - nms_Item_$callClinit(); - if (var$2 == nms_Item_map.$itemID) - $java.nms_MapData_updateMPMapData(nms_ItemMap_getMPMapData($par1Packet131MapData.$uniqueID, $this.$mc15.$theWorld), $par1Packet131MapData.$itemData); - else { - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - var$3.$sb = var$4; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - var$4 = new jnci_UTF8Charset; - jnc_Charset__init_(var$4, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = var$4; - jl_System_errCache = var$3; - } - var$5 = jl_System_errCache; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2518)); - var$2 = $par1Packet131MapData.$uniqueID; - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, var$2, 10); - $par1Packet131MapData = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - var$4 = var$5.$sb; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $par1Packet131MapData); - var$6 = var$4.$length; - jl_AbstractStringBuilder_insertSpace(var$4, var$6, var$6 + 1 | 0); - var$4.$buffer.data[var$6] = 10; - ji_PrintStream_printSB(var$5); - } -}; -$java.nms_NetClientHandler_handleDoorChange = function($this, $par1Packet61DoorChange) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1Packet61DoorChange = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($par1Packet61DoorChange.$disableRelativeVolume) { - var$2 = $this.$mc15.$theWorld; - var$3 = $par1Packet61DoorChange.$sfxID; - var$4 = $par1Packet61DoorChange.$posX8; - var$5 = $par1Packet61DoorChange.$posY8; - var$6 = $par1Packet61DoorChange.$posZ6; - var$7 = $par1Packet61DoorChange.$auxData; - var$8 = 0; - if (var$8 >= var$2.$worldAccesses.$size0) - break a; - $par1Packet61DoorChange = var$2.$worldAccesses; - if (var$8 >= 0 && var$8 < $par1Packet61DoorChange.$size0) { - $par1Packet61DoorChange = $par1Packet61DoorChange.$array1.data[var$8]; - $ptr = 2; - continue main; - } - $par1Packet61DoorChange = new jl_IndexOutOfBoundsException; - $par1Packet61DoorChange.$suppressionEnabled = 1; - $par1Packet61DoorChange.$writableStackTrace = 1; - $rt_throw($par1Packet61DoorChange); - } - var$2 = $this.$mc15.$theWorld; - var$9 = $par1Packet61DoorChange.$sfxID; - var$3 = $par1Packet61DoorChange.$posX8; - var$4 = $par1Packet61DoorChange.$posY8; - var$5 = $par1Packet61DoorChange.$posZ6; - var$6 = $par1Packet61DoorChange.$auxData; - $par1Packet61DoorChange = null; - var$7 = 0; - if (var$7 < var$2.$worldAccesses.$size0) { - var$10 = var$2.$worldAccesses; - if (var$7 >= 0 && var$7 < var$10.$size0) { - var$10 = var$10.$array1.data[var$7]; - $ptr = 1; - continue main; - } - $par1Packet61DoorChange = new jl_IndexOutOfBoundsException; - $par1Packet61DoorChange.$suppressionEnabled = 1; - $par1Packet61DoorChange.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Packet61DoorChange); - $rt_throw($par1Packet61DoorChange); - } - } - return; - case 1: - nms_RenderGlobal_playAuxSFX(var$10, $par1Packet61DoorChange, var$9, var$3, var$4, var$5, var$6); - if ($rt_suspending()) { - break main; - } - var$7 = var$7 + 1 | 0; - if (var$7 >= var$2.$worldAccesses.$size0) - return; - var$10 = var$2.$worldAccesses; - if (var$7 >= 0 && var$7 < var$10.$size0) { - var$10 = var$10.$array1.data[var$7]; - continue main; - } - $par1Packet61DoorChange = new jl_IndexOutOfBoundsException; - $par1Packet61DoorChange.$suppressionEnabled = 1; - $par1Packet61DoorChange.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1Packet61DoorChange); - $rt_throw($par1Packet61DoorChange); - case 2: - nms_RenderGlobal_broadcastSound($par1Packet61DoorChange, var$3, var$4, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - var$8 = var$8 + 1 | 0; - if (var$8 >= var$2.$worldAccesses.$size0) - return; - $par1Packet61DoorChange = var$2.$worldAccesses; - if (var$8 >= 0 && var$8 < $par1Packet61DoorChange.$size0) { - $par1Packet61DoorChange = $par1Packet61DoorChange.$array1.data[var$8]; - continue main; - } - $par1Packet61DoorChange = new jl_IndexOutOfBoundsException; - $par1Packet61DoorChange.$suppressionEnabled = 1; - $par1Packet61DoorChange.$writableStackTrace = 1; - $rt_throw($par1Packet61DoorChange); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet61DoorChange, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -}; -$java.nms_NetClientHandler_handleStatistic = function($this, $par1Packet200Statistic) { - var var$2, var$3, var$4, var$5, var$6, $m; - a: { - if ($par1Packet200Statistic.$statisticId >= 5242880) { - nms_AchievementList_$callClinit(); - var$2 = nms_AchievementList_achievementList; - var$3 = 0; - var$4 = var$2.$modCount0; - var$5 = var$2.$size2(); - while (true) { - if (!(var$3 >= var$5 ? 0 : 1)) - break a; - if (var$4 < var$2.$modCount0) - break; - var$6 = var$3 + 1 | 0; - $m = var$2.$get4(var$3); - if ($m.$statId == $par1Packet200Statistic.$statisticId) { - $par1Packet200Statistic = $this.$mc15.$thePlayer; - if (!$m.$isIndependent) - nms_EntityPlayerSP_addStat($par1Packet200Statistic, $m, 1); - break a; - } - var$3 = var$6; - } - $par1Packet200Statistic = new ju_ConcurrentModificationException; - $par1Packet200Statistic.$suppressionEnabled = 1; - $par1Packet200Statistic.$writableStackTrace = 1; - $rt_throw($par1Packet200Statistic); - } - } -}; -$java.nms_NetClientHandler_handleEntityEffect = function($this, $par1Packet41EntityEffect) { - var var$2, $var2, $var3, var$5, var$6; - var$2 = $par1Packet41EntityEffect.$entityId16; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var3 = $this.$worldClient; - $var2 = var$2 == $var3.$mc11.$thePlayer.$entityId ? $var3.$mc11.$thePlayer : nms_IntHashMap_lookup($var3.$entityHashSet, var$2); - } - if ($var2 instanceof nms_EntityLiving) { - $var3 = new nms_PotionEffect; - var$2 = $par1Packet41EntityEffect.$effectId0; - var$5 = $par1Packet41EntityEffect.$duration0; - var$6 = $par1Packet41EntityEffect.$effectAmplifier; - $var3.$potionID = var$2; - $var3.$duration = var$5; - $var3.$amplifier = var$6; - $var3.$isAmbient = 0; - $var3.$isPotionDurationMax = $par1Packet41EntityEffect.$duration0 != 32767 ? 0 : 1; - $var2.$addPotionEffect($var3); - } -}; -$java.nms_NetClientHandler_handleRemoveEntityEffect = function($this, $par1Packet42RemoveEntityEffect) { - var var$2, $var2; - var$2 = $par1Packet42RemoveEntityEffect.$entityId17; - if (var$2 == $this.$mc15.$thePlayer.$entityId) - $var2 = $this.$mc15.$thePlayer; - else { - $var2 = $this.$worldClient; - $var2 = var$2 == $var2.$mc11.$thePlayer.$entityId ? $var2.$mc11.$thePlayer : nms_IntHashMap_lookup($var2.$entityHashSet, var$2); - } - if ($var2 instanceof nms_EntityLiving) { - $var2 = $var2; - var$2 = $par1Packet42RemoveEntityEffect.$effectId1; - ju_HashMap_removeEntry($var2.$activePotionsMap, jl_Integer_valueOf(var$2)); - } -}; -$java.nms_NetClientHandler_handlePlayerInfo = function($this, $par1Packet201PlayerInfo) { - var $var2, var$3, var$4, var$5; - $var2 = $this.$playerInfoMap; - var$3 = $par1Packet201PlayerInfo.$playerName; - if (var$3 !== null) { - var$4 = jl_String_hashCode(var$3); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$3, var$4 & ($var2.$elementData.data.length - 1 | 0), var$4); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && $par1Packet201PlayerInfo.$isConnected) { - $var2 = new $java.nms_GuiPlayerInfo; - var$3 = $par1Packet201PlayerInfo.$playerName; - $var2.$name6 = var$3; - $var2.$nameinLowerCase = jl_String_toLowerCase(var$3); - ju_HashMap_putImpl($this.$playerInfoMap, $par1Packet201PlayerInfo.$playerName, $var2); - ju_ArrayList_add($this.$playerInfoList, $var2); - } - if ($var2 !== null && !$par1Packet201PlayerInfo.$isConnected) { - ju_HashMap_removeEntry($this.$playerInfoMap, $par1Packet201PlayerInfo.$playerName); - var$3 = $this.$playerInfoList; - var$5 = ju_AbstractList_indexOf(var$3, $var2); - if (var$5 >= 0) - ju_ArrayList_remove(var$3, var$5); - } - if ($par1Packet201PlayerInfo.$isConnected && $var2 !== null) - $var2.$responseTime = $par1Packet201PlayerInfo.$ping; -}; -$java.nms_NetClientHandler_handleKeepAlive = function($this, $par1Packet0KeepAlive) { - var var$2, var$3; - var$2 = new nms_Packet0KeepAlive; - var$3 = $par1Packet0KeepAlive.$randomId; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - var$2.$randomId = var$3; - if (!$this.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($this.$netManager, var$2); -}; -$java.nms_NetClientHandler_handlePlayerAbilities = function($this, $par1Packet202PlayerAbilities) { - var $var2; - $var2 = $this.$mc15.$thePlayer; - $var2.$capabilities.$isFlying = $par1Packet202PlayerAbilities.$isFlying0; - $var2.$capabilities.$isCreativeMode = $par1Packet202PlayerAbilities.$isCreativeMode0; - $var2.$capabilities.$disableDamage = $par1Packet202PlayerAbilities.$disableDamage0; - $var2.$capabilities.$allowFlying = $par1Packet202PlayerAbilities.$allowFlying0; - $var2.$capabilities.$flySpeed = $par1Packet202PlayerAbilities.$flySpeed0; - $var2.$capabilities.$walkSpeed = $par1Packet202PlayerAbilities.$walkSpeed0; -}; -$java.nms_NetClientHandler_handleAutoComplete = function($this, $par1Packet203AutoComplete) { - var var$2, var$3; - var$2 = $par1Packet203AutoComplete.$text1; - var$3 = jur_Pattern_split(jur_Pattern_compile($rt_s(2519), 0), var$2, 0); - if ($this.$mc15.$currentScreen instanceof nms_GuiChat) - nms_GuiChat_func_73894_a($this.$mc15.$currentScreen, var$3); -}; -$java.nms_NetClientHandler_handleLevelSound = function($this, $par1Packet62LevelSound) { - var var$2, var$3, var$4, var$5, var$6, 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();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1Packet62LevelSound = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$mc15.$theWorld; - var$3 = $par1Packet62LevelSound.$effectX / 8.0; - var$4 = $par1Packet62LevelSound.$effectY / 8.0; - var$5 = $par1Packet62LevelSound.$effectZ / 8.0; - var$6 = $par1Packet62LevelSound.$soundName; - var$7 = $par1Packet62LevelSound.$volume0; - var$8 = $par1Packet62LevelSound.$pitch7 / 63.0; - var$9 = 0; - $ptr = 1; - case 1: - nms_WorldClient_playSound(var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet62LevelSound, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $ptr); -}; -$java.nms_NetClientHandler_handleCustomPayload = function($this, $par1Packet250CustomPayload) { - var $var8, $var4, var$4, var$5, $var9, $var7, $$je; - if (jl_String_equals($rt_s(2520), $par1Packet250CustomPayload.$channel0)) { - $var8 = new ji_DataInputStream; - $var4 = new ji_ByteArrayInputStream; - var$4 = $par1Packet250CustomPayload.$data10; - var$5 = var$4.data.length; - $var4.$buf = var$4; - $var4.$pos = 0; - $var4.$mark0 = 0; - $var4.$count0 = 0 + var$5 | 0; - $var8.$in = $var4; - $var8.$buff = $rt_createByteArray(8); - a: { - try { - $var9 = ji_DataInputStream_readInt($var8); - $var4 = $this.$mc15.$currentScreen; - if ($var4 !== null && $var4 instanceof nms_GuiMerchant && $var9 == $this.$mc15.$thePlayer.$openContainer.$windowId) - $java.nms_GuiMerchant_getIMerchant($var4).$setRecipes($java.nms_MerchantRecipeList_readRecipiesFromStream($var8)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $var7 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var4 = new ji_PrintStream; - $var4.$out = new jl_ConsoleOutputStreamStderr; - $par1Packet250CustomPayload = new jl_StringBuilder; - $par1Packet250CustomPayload.$buffer = $rt_createCharArray(16); - $var4.$sb = $par1Packet250CustomPayload; - $var4.$buffer0 = $rt_createCharArray(32); - $var4.$autoFlush = 0; - $par1Packet250CustomPayload = new jnci_UTF8Charset; - jnc_Charset__init_($par1Packet250CustomPayload, $rt_s(2), $rt_createArray(jl_String, 0)); - $var4.$charset = $par1Packet250CustomPayload; - jl_System_errCache = $var4; - } - jl_Throwable_printStackTrace0($var7, jl_System_errCache); - } - } else if (jl_String_equals($rt_s(2521), $par1Packet250CustomPayload.$channel0)) - nle_DefaultSkinRenderer_skinResponse($par1Packet250CustomPayload.$data10); -}; -$java.nms_NetClientHandler_handleSetObjective = function($this, $par1Packet206SetObjective) { - var $var2, $var3; - $var2 = $this.$worldClient.$worldScoreboard; - if (!$par1Packet206SetObjective.$change) - $java.nms_Scoreboard_func_96535_a($var2, $par1Packet206SetObjective.$objectiveName, $java.nms_ScoreObjectiveCriteria_field_96641_b).$displayName = $par1Packet206SetObjective.$objectiveDisplayName; - else { - $var3 = $java.nms_Scoreboard_getObjective($var2, $par1Packet206SetObjective.$objectiveName); - if ($par1Packet206SetObjective.$change == 1) - $java.nms_Scoreboard_func_96519_k($var2, $var3); - else if ($par1Packet206SetObjective.$change == 2) - $var3.$displayName = $par1Packet206SetObjective.$objectiveDisplayName; - } -}; -$java.nms_NetClientHandler_handleSetScore = function($this, $par1Packet207SetScore) { - var $var2, $var3, $var4, var$5, var$6; - $var2 = $this.$worldClient.$worldScoreboard; - $var3 = $java.nms_Scoreboard_getObjective($var2, $par1Packet207SetScore.$scoreName); - if (!$par1Packet207SetScore.$updateOrRemove) { - $var4 = nms_Scoreboard_func_96529_a($var2, $par1Packet207SetScore.$itemName, $var3); - var$5 = $par1Packet207SetScore.$value9; - var$6 = $var4.$field_96655_e; - $var4.$field_96655_e = var$5; - } else if ($par1Packet207SetScore.$updateOrRemove == 1) { - $par1Packet207SetScore = $par1Packet207SetScore.$itemName; - $par1Packet207SetScore = ju_HashMap_removeEntry($var2.$field_96544_c, $par1Packet207SetScore); - } -}; -$java.nms_NetClientHandler_handleSetDisplayObjective = function($this, $par1Packet208SetDisplayObjective) { - var $var2, var$3, $var3; - $var2 = $this.$worldClient.$worldScoreboard; - if (!$par1Packet208SetDisplayObjective.$scoreName0.$characters.data.length) { - var$3 = $par1Packet208SetDisplayObjective.$scoreboardPosition; - $var2.$field_96541_d.data[var$3] = null; - } else { - $var3 = $java.nms_Scoreboard_getObjective($var2, $par1Packet208SetDisplayObjective.$scoreName0); - var$3 = $par1Packet208SetDisplayObjective.$scoreboardPosition; - $var2.$field_96541_d.data[var$3] = $var3; - } -}; -$java.nms_NetClientHandler_handleSetPlayerTeam = function($this, $par1Packet209SetPlayerTeam) { - var $var2, $var3, var$4, $var4$index, $var4$index_0, var$7, $var4$index_1; - $var2 = $this.$worldClient.$worldScoreboard; - $var3 = $par1Packet209SetPlayerTeam.$mode4 ? $java.nms_Scoreboard_func_96508_e($var2, $par1Packet209SetPlayerTeam.$teamName) : $java.nms_Scoreboard_func_96527_f($var2, $par1Packet209SetPlayerTeam.$teamName); - if (!($par1Packet209SetPlayerTeam.$mode4 && $par1Packet209SetPlayerTeam.$mode4 != 2)) { - var$4 = $par1Packet209SetPlayerTeam.$teamDisplayName; - if (var$4 === null) { - $var3 = new jl_IllegalArgumentException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $var3.$message = $rt_s(2522); - $rt_throw($var3); - } - $var3.$field_96673_d = var$4; - var$4 = $par1Packet209SetPlayerTeam.$teamPrefix; - if (var$4 === null) { - $var3 = new jl_IllegalArgumentException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $var3.$message = $rt_s(2523); - $rt_throw($var3); - } - $var3.$field_96674_e = var$4; - var$4 = $par1Packet209SetPlayerTeam.$teamSuffix; - if (var$4 === null) { - $var3 = new jl_IllegalArgumentException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $var3.$message = $rt_s(2524); - $rt_throw($var3); - } - $var3.$field_96671_f = var$4; - $java.nms_ScorePlayerTeam_func_98298_a($var3, $par1Packet209SetPlayerTeam.$friendlyFire); - } - a: { - if (!($par1Packet209SetPlayerTeam.$mode4 && $par1Packet209SetPlayerTeam.$mode4 != 3)) { - var$4 = $par1Packet209SetPlayerTeam.$playerNames; - $var4$index = 0; - $var4$index_0 = var$4.$modCount0; - var$7 = var$4.$size2(); - while (true) { - if (!($var4$index >= var$7 ? 0 : 1)) - break a; - if ($var4$index_0 < var$4.$modCount0) - break; - $var4$index_1 = $var4$index + 1 | 0; - $java.nms_Scoreboard_func_96521_a($var2, var$4.$get4($var4$index), $var3); - $var4$index = $var4$index_1; - } - $par1Packet209SetPlayerTeam = new ju_ConcurrentModificationException; - $par1Packet209SetPlayerTeam.$suppressionEnabled = 1; - $par1Packet209SetPlayerTeam.$writableStackTrace = 1; - $rt_throw($par1Packet209SetPlayerTeam); - } - } - b: { - if ($par1Packet209SetPlayerTeam.$mode4 == 4) { - var$4 = $par1Packet209SetPlayerTeam.$playerNames; - $var4$index_0 = 0; - var$7 = var$4.$modCount0; - $var4$index = var$4.$size2(); - while (true) { - if (!($var4$index_0 >= $var4$index ? 0 : 1)) - break b; - if (var$7 < var$4.$modCount0) { - $par1Packet209SetPlayerTeam = new ju_ConcurrentModificationException; - $par1Packet209SetPlayerTeam.$suppressionEnabled = 1; - $par1Packet209SetPlayerTeam.$writableStackTrace = 1; - $rt_throw($par1Packet209SetPlayerTeam); - } - $var4$index_1 = $var4$index_0 + 1 | 0; - $java.nms_Scoreboard_removePlayerFromTeam($var2, var$4.$get4($var4$index_0), $var3); - $var4$index_0 = $var4$index_1; - } - } - } - if ($par1Packet209SetPlayerTeam.$mode4 == 1) - $java.nms_Scoreboard_func_96511_d($var2, $var3); -}; -$java.nms_NetClientHandler_handleWorldParticles = function($this, $par1Packet63WorldParticles) { - var $var2, $var3, $var5, $var7, $var9, $var11, $var13, var$9, var$10, var$11, var$12, var$13, var$14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1Packet63WorldParticles = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = 0; - while ($var2 < $par1Packet63WorldParticles.$quantity) { - $var3 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$offsetX0; - $var5 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$offsetY0; - $var7 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$offsetZ; - $var9 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$speed0; - $var11 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$speed0; - $var13 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$speed0; - var$9 = $this.$worldClient; - var$10 = $par1Packet63WorldParticles.$particleName; - var$11 = $par1Packet63WorldParticles.$posX9 + $var3; - var$12 = $par1Packet63WorldParticles.$posY9 + $var5; - $var7 = $par1Packet63WorldParticles.$posZ7 + $var7; - var$13 = 0; - if (var$13 < var$9.$worldAccesses.$size0) { - var$14 = var$9.$worldAccesses; - if (var$13 >= 0 && var$13 < var$14.$size0) { - var$14 = var$14.$array1.data[var$13]; - $ptr = 1; - continue main; - } - $par1Packet63WorldParticles = new jl_IndexOutOfBoundsException; - $par1Packet63WorldParticles.$suppressionEnabled = 1; - $par1Packet63WorldParticles.$writableStackTrace = 1; - $rt_throw($par1Packet63WorldParticles); - } - $var2 = $var2 + 1 | 0; - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$14, var$10, var$11, var$12, $var7, $var9, $var11, $var13); - if ($rt_suspending()) { - break main; - } - var$13 = var$13 + 1 | 0; - while (true) { - if (var$13 < var$9.$worldAccesses.$size0) { - var$14 = var$9.$worldAccesses; - if (var$13 >= 0 && var$13 < var$14.$size0) { - var$14 = var$14.$array1.data[var$13]; - continue main; - } - $par1Packet63WorldParticles = new jl_IndexOutOfBoundsException; - $par1Packet63WorldParticles.$suppressionEnabled = 1; - $par1Packet63WorldParticles.$writableStackTrace = 1; - $rt_throw($par1Packet63WorldParticles); - } - $var2 = $var2 + 1 | 0; - if ($var2 >= $par1Packet63WorldParticles.$quantity) - break; - $var3 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$offsetX0; - $var5 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$offsetY0; - $var7 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$offsetZ; - $var9 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$speed0; - $var11 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$speed0; - $var13 = ju_Random_nextGaussian($this.$rand5) * $par1Packet63WorldParticles.$speed0; - var$9 = $this.$worldClient; - var$10 = $par1Packet63WorldParticles.$particleName; - var$11 = $par1Packet63WorldParticles.$posX9 + $var3; - var$12 = $par1Packet63WorldParticles.$posY9 + $var5; - $var7 = $par1Packet63WorldParticles.$posZ7 + $var7; - var$13 = 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Packet63WorldParticles, $var2, $var3, $var5, $var7, $var9, $var11, $var13, var$9, var$10, var$11, var$12, var$13, var$14, $ptr); -}; -$java.nms_GuiPlayerInfo = function() { - var a = this; jl_Object.call(a); - a.$name6 = null; - a.$nameinLowerCase = null; - a.$responseTime = 0; -}; -function nms_ScorePlayerTeam() { - var a = this; jl_Object.call(a); - a.$theScoreboard0 = null; - a.$field_96675_b = null; - a.$membershipSet = null; - a.$field_96673_d = null; - a.$field_96674_e = null; - a.$field_96671_f = null; - a.$field_96672_g = 0; - a.$field_98301_h = 0; -} -$java.nms_ScorePlayerTeam__init_ = function(var_0, var_1) { - var var_2 = new nms_ScorePlayerTeam(); - $java.nms_ScorePlayerTeam__init_0(var_2, var_0, var_1); - return var_2; -}; -$java.nms_ScorePlayerTeam__init_0 = function($this, $par1Scoreboard, $par2Str) { - var var$3; - var$3 = new ju_HashSet; - var$3.$backingMap = ju_HashMap__init_1(16, 0.75); - $this.$membershipSet = var$3; - $this.$field_96674_e = $rt_s(44); - $this.$field_96671_f = $rt_s(44); - $this.$field_96672_g = 1; - $this.$field_98301_h = 1; - $this.$theScoreboard0 = $par1Scoreboard; - $this.$field_96675_b = $par2Str; - $this.$field_96673_d = $par2Str; -}; -$java.nms_ScorePlayerTeam_func_96661_b = function($this) { - return $this.$field_96675_b; -}; -$java.nms_ScorePlayerTeam_func_96664_a = function($this, $par1Str) { - var var$2; - if ($par1Str !== null) { - $this.$field_96673_d = $par1Str; - return; - } - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(2522); - $rt_throw(var$2); -}; -$java.nms_ScorePlayerTeam_getMembershipCollection = function($this) { - return $this.$membershipSet; -}; -$java.nms_ScorePlayerTeam_func_96668_e = function($this) { - return $this.$field_96674_e; -}; -$java.nms_ScorePlayerTeam_func_96666_b = function($this, $par1Str) { - var var$2; - if ($par1Str !== null) { - $this.$field_96674_e = $par1Str; - return; - } - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(2523); - $rt_throw(var$2); -}; -$java.nms_ScorePlayerTeam_func_96663_f = function($this) { - return $this.$field_96671_f; -}; -$java.nms_ScorePlayerTeam_func_96662_c = function($this, $par1Str) { - var var$2; - if ($par1Str !== null) { - $this.$field_96671_f = $par1Str; - return; - } - var$2 = new jl_IllegalArgumentException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(2524); - $rt_throw(var$2); -}; -function nms_ScorePlayerTeam_func_96667_a($par0ScorePlayerTeam, $par1Str) { - var var$3, var$4; - if ($par0ScorePlayerTeam !== null) { - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - var$4 = $par0ScorePlayerTeam.$field_96674_e; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$4); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $par1Str); - $par0ScorePlayerTeam = $par0ScorePlayerTeam.$field_96671_f; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $par0ScorePlayerTeam); - $par1Str = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - } - return $par1Str; -} -$java.nms_ScorePlayerTeam_func_96665_g = function($this) { - return $this.$field_96672_g; -}; -$java.nms_ScorePlayerTeam_func_96660_a = function($this, $par1) { - $this.$field_96672_g = $par1; -}; -$java.nms_ScorePlayerTeam_func_98297_h = function($this) { - return $this.$field_98301_h; -}; -$java.nms_ScorePlayerTeam_func_98300_b = function($this, $par1) { - $this.$field_98301_h = $par1; -}; -$java.nms_ScorePlayerTeam_func_98298_a = function($this, $par1) { - $this.$field_96672_g = ($par1 & 1) <= 0 ? 0 : 1; - $this.$field_98301_h = ($par1 & 2) <= 0 ? 0 : 1; -}; -function nms_GuiSmallButton() { - nms_GuiButton.call(this); - this.$enumOptions = null; -} -$java.nms_GuiSmallButton_returnEnumOptions = function($this) { - return $this.$enumOptions; -}; -function ju_Calendar() { - var a = this; jl_Object.call(a); - a.$areFieldsSet = 0; - a.$fields = null; - a.$isSet = null; - a.$isTimeSet = 0; - a.$time1 = Long_ZERO; - a.$lastTimeFieldSet = 0; - a.$lastDateFieldSet = 0; - a.$lenient = 0; - a.$firstDayOfWeek = 0; - a.$minimalDaysInFirstWeek = 0; - a.$zone = null; -} -$java.ju_Calendar_fieldNames = null; -$java.ju_Calendar_firstDayOfWeekCache = 0; -$java.ju_Calendar_minimalDaysInFirstWeekCache = 0; -$java.ju_Calendar_cacheFor = null; -$java.ju_Calendar__init_ = function(var_0, var_1) { - var var_2 = new ju_Calendar(); - $java.ju_Calendar__init_0(var_2, var_0, var_1); - return var_2; -}; -$java.ju_Calendar__init_0 = function($this, $timezone, $locale) { - $this.$fields = $rt_createIntArray(17); - $this.$isSet = $rt_createBooleanArray(17); - $this.$areFieldsSet = 0; - $this.$isTimeSet = 0; - $this.$lenient = 1; - $this.$zone = $timezone; - $this.$areFieldsSet = 0; - $this.$fields = $rt_createIntArray(17); - $this.$isSet = $rt_createBooleanArray(17); - $this.$areFieldsSet = 0; - $this.$isTimeSet = 0; - $this.$lenient = 1; - $this.$firstDayOfWeek = $java.ju_Calendar_resolveFirstDayOfWeek($locale); - $this.$isCached = 0; - $this.$minimalDaysInFirstWeek = $java.ju_Calendar_resolveMinimalDaysInFirstWeek($locale); - $this.$isCached = 0; - $java.ju_Calendar_cacheFor = $locale; -}; -$java.ju_Calendar_resolveFirstDayOfWeek = function($locale) { - var $dayMap, $country, var$4, var$5; - if ($locale === $java.ju_Calendar_cacheFor && $java.ju_Calendar_firstDayOfWeekCache >= 0) - return $java.ju_Calendar_firstDayOfWeekCache; - $dayMap = $locale.$languageCode; - $country = $locale.$countryCode; - if ($country.$characters.data.length ? 0 : 1) { - if (otciu_CLDRHelper_$$metadata$$0 === null) - otciu_CLDRHelper_$$metadata$$0 = otciu_CLDRHelper_getLikelySubtagsMap$$create(); - $locale = otciu_CLDRHelper_$$metadata$$0; - if ($locale.hasOwnProperty($rt_ustr($dayMap))) - $dayMap = ($locale[$rt_ustr($dayMap)].value !== null ? $rt_str($locale[$rt_ustr($dayMap)].value) : null); - var$4 = jl_String_lastIndexOf($dayMap, 95, $dayMap.$characters.data.length - 1 | 0); - if (var$4 <= 0) - $country = $rt_s(44); - else { - var$5 = var$4 + 1 | 0; - var$4 = $dayMap.$characters.data.length; - if (var$5 > var$4) { - $locale = new jl_IndexOutOfBoundsException; - $locale.$suppressionEnabled = 1; - $locale.$writableStackTrace = 1; - $rt_throw($locale); - } - $country = jl_String__init_0($dayMap.$characters, var$5, var$4 - var$5 | 0); - } - } - if (otciu_CLDRHelper_$$metadata$$13 === null) - otciu_CLDRHelper_$$metadata$$13 = otciu_CLDRHelper_getFirstDayOfWeek$$create(); - $dayMap = otciu_CLDRHelper_$$metadata$$13; - $java.ju_Calendar_firstDayOfWeekCache = $dayMap.hasOwnProperty($rt_ustr($country)) ? $dayMap[$rt_ustr($country)].value : $dayMap[$rt_ustr($rt_s(2525))].value; - return $java.ju_Calendar_firstDayOfWeekCache; -}; -$java.ju_Calendar_resolveMinimalDaysInFirstWeek = function($locale) { - var $dayMap, $country, var$4, var$5; - if ($locale === $java.ju_Calendar_cacheFor && $java.ju_Calendar_minimalDaysInFirstWeekCache >= 0) - return $java.ju_Calendar_minimalDaysInFirstWeekCache; - $dayMap = $locale.$languageCode; - $country = $locale.$countryCode; - if ($country.$characters.data.length ? 0 : 1) { - if (otciu_CLDRHelper_$$metadata$$0 === null) - otciu_CLDRHelper_$$metadata$$0 = otciu_CLDRHelper_getLikelySubtagsMap$$create(); - $locale = otciu_CLDRHelper_$$metadata$$0; - if ($locale.hasOwnProperty($rt_ustr($dayMap))) - $dayMap = ($locale[$rt_ustr($dayMap)].value !== null ? $rt_str($locale[$rt_ustr($dayMap)].value) : null); - var$4 = jl_String_lastIndexOf($dayMap, 95, $dayMap.$characters.data.length - 1 | 0); - if (var$4 <= 0) - $country = $rt_s(44); - else { - var$5 = var$4 + 1 | 0; - var$4 = $dayMap.$characters.data.length; - if (var$5 > var$4) { - $locale = new jl_IndexOutOfBoundsException; - $locale.$suppressionEnabled = 1; - $locale.$writableStackTrace = 1; - $rt_throw($locale); - } - $country = jl_String__init_0($dayMap.$characters, var$5, var$4 - var$5 | 0); - } - } - if (otciu_CLDRHelper_$$metadata$$12 === null) - otciu_CLDRHelper_$$metadata$$12 = otciu_CLDRHelper_getMinimalDaysInFirstWeek$$create(); - $dayMap = otciu_CLDRHelper_$$metadata$$12; - $java.ju_Calendar_minimalDaysInFirstWeekCache = $dayMap.hasOwnProperty($rt_ustr($country)) ? $dayMap[$rt_ustr($country)].value : $dayMap[$rt_ustr($rt_s(2525))].value; - return $java.ju_Calendar_minimalDaysInFirstWeekCache; -}; -$java.ju_Calendar_complete = function($this) { - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - if (!$this.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($this); - $this.$areFieldsSet = 1; - } -}; -function ju_Calendar_get($this, $field) { - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - if (!$this.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($this); - $this.$areFieldsSet = 1; - } - return $this.$fields.data[$field]; -} -$java.ju_Calendar_getFirstDayOfWeek = function($this) { - return $this.$firstDayOfWeek; -}; -$java.ju_Calendar_getMinimalDaysInFirstWeek = function($this) { - return $this.$minimalDaysInFirstWeek; -}; -$java.ju_Calendar_getTimeInMillis = function($this) { - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - return $this.$time1; -}; -$java.ju_Calendar_getTimeZone = function($this) { - return $this.$zone; -}; -$java.ju_Calendar_setTimeZone = function($this, $timezone) { - $this.$zone = $timezone; - $this.$areFieldsSet = 0; -}; -$java.ju_Calendar_isLenient = function($this) { - return $this.$lenient; -}; -$java.ju_Calendar_set = function($this, $field, $value) { - $this.$fields.data[$field] = $value; - $this.$isSet.data[$field] = 1; - $this.$areFieldsSet = 0; - $this.$isTimeSet = 0; - if ($field > 2 && $field < 9) - $this.$lastDateFieldSet = $field; - if (!($field != 10 && $field != 11)) - $this.$lastTimeFieldSet = $field; - if ($field == 9) - $this.$lastTimeFieldSet = 10; -}; -$java.ju_Calendar_setLenient = function($this, $value) { - $this.$lenient = $value; -}; -$java.ju_Calendar_setTime = function($this, $date) { - ju_Calendar_setTimeInMillis($this, $date.$value10); -}; -function ju_Calendar_setTimeInMillis($this, $milliseconds) { - if (!($this.$isTimeSet && $this.$areFieldsSet && Long_eq($this.$time1, $milliseconds))) { - $this.$time1 = $milliseconds; - $this.$isTimeSet = 1; - $this.$areFieldsSet = 0; - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - if (!$this.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($this); - $this.$areFieldsSet = 1; - } - } -} -function ju_Calendar__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 17); - var$2 = var$1.data; - var$2[0] = $rt_s(2526); - var$2[1] = $rt_s(2527); - var$2[2] = $rt_s(2528); - var$2[3] = $rt_s(2529); - var$2[4] = $rt_s(2530); - var$2[5] = $rt_s(2531); - var$2[6] = $rt_s(2532); - var$2[7] = $rt_s(2533); - var$2[8] = $rt_s(2534); - var$2[9] = $rt_s(2535); - var$2[10] = $rt_s(2536); - var$2[11] = $rt_s(2537); - var$2[12] = $rt_s(2538); - var$2[13] = $rt_s(2539); - var$2[14] = $rt_s(2540); - var$2[15] = $rt_s(2541); - var$2[16] = $rt_s(2542); - $java.ju_Calendar_fieldNames = var$1; - $java.ju_Calendar_firstDayOfWeekCache = (-1); - $java.ju_Calendar_minimalDaysInFirstWeekCache = (-1); -} -function ju_Date() { - jl_Object.call(this); - this.$value10 = Long_ZERO; -} -$java.ju_Date__init_ = function() { - var var_0 = new ju_Date(); - ju_Date__init_(var_0); - return var_0; -}; -function ju_Date__init_($this) { - $this.$value10 = jl_System_currentTimeMillis(); -} -$java.ju_Date_getTime = function($this) { - return $this.$value10; -}; -$java.ju_Date__clinit_ = function() { - return; -}; -function nms_GuiButtonLanguage() { - nms_GuiButton.call(this); -} -$java.nms_GuiButtonLanguage_tex_gui = null; -$java.nms_GuiButtonLanguage_drawButton = function($this, $par1Minecraft, $par2, $par3) { - var $var4, $var5; - if ($this.$drawButton0) { - nle_TextureLocation_bindTexture($java.nms_GuiButtonLanguage_tex_gui); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var4 = $par2 >= $this.$xPosition3 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition3 + $this.$width3 | 0) && $par3 < ($this.$yPosition + $this.$height4 | 0) ? 1 : 0; - $var5 = 106; - if ($var4) - $var5 = $var5 + $this.$height4 | 0; - nms_Gui_drawTexturedModalRect($this, $this.$xPosition3, $this.$yPosition, 0, $var5, $this.$width3, $this.$height4); - } -}; -function nms_GuiButtonLanguage__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(442); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiButtonLanguage_tex_gui = var$1; -} -$java.nms_GuiYesNo = function() { - var a = this; nms_GuiScreen.call(a); - a.$parentScreen0 = null; - a.$message1 = null; - a.$message2 = null; - a.$buttonText1 = null; - a.$buttonText2 = null; - a.$worldNumber = 0; -}; -$java.nms_GuiYesNo_initGui = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6; - var$1 = $this.$buttonList; - var$2 = new nms_GuiSmallButton; - var$3 = ($this.$width0 / 2 | 0) - 155 | 0; - var$4 = ($this.$height0 / 6 | 0) + 96 | 0; - var$5 = $this.$buttonText1; - var$6 = null; - nms_GuiButton__init_0(var$2, 0, var$3, var$4, 150, 20, var$5); - var$2.$enumOptions = var$6; - ju_ArrayList_add(var$1, var$2); - var$2 = $this.$buttonList; - var$1 = new nms_GuiSmallButton; - var$4 = (($this.$width0 / 2 | 0) - 155 | 0) + 160 | 0; - var$3 = ($this.$height0 / 6 | 0) + 96 | 0; - var$5 = $this.$buttonText2; - var$6 = null; - nms_GuiButton__init_0(var$1, 1, var$4, var$3, 150, 20, var$5); - var$1.$enumOptions = var$6; - ju_ArrayList_add(var$2, var$1); -}; -$java.nms_GuiYesNo_actionPerformed = function($this, $par1GuiButton) { - var 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();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$parentScreen0; - var$3 = $par1GuiButton.$id2 ? 0 : 1; - var$4 = $this.$worldNumber; - $ptr = 1; - case 1: - var$2.$confirmClicked(var$3, var$4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, var$3, var$4, $ptr); -}; -$java.nms_GuiYesNo_drawScreen = function($this, $par1, $par2, $par3) { - var var$4, var$5, var$6; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$4 = $this.$fontRenderer0; - var$5 = $this.$message1; - nms_FontRenderer_drawString(var$4, var$5, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, 70, 16777215, 1); - var$4 = $this.$fontRenderer0; - var$5 = $this.$message2; - nms_FontRenderer_drawString(var$4, var$5, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, 90, 16777215, 1); - var$6 = 0; - a: { - while (var$6 < $this.$buttonList.$size0) { - var$4 = $this.$buttonList; - if (var$6 < 0) - break a; - if (var$6 >= var$4.$size0) - break a; - var$4.$array1.data[var$6].$drawButton($this.$mc4, $par1, $par2); - var$6 = var$6 + 1 | 0; - } - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -}; -function nms_GuiConfirmOpenLink() { - var a = this; $java.nms_GuiYesNo.call(a); - a.$openLinkWarning = null; - a.$copyLinkButtonText = null; - a.$field_92028_p = null; - a.$field_92027_q = 0; -} -function nms_GuiConfirmOpenLink__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_GuiConfirmOpenLink(); - $java.nms_GuiConfirmOpenLink__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.nms_GuiConfirmOpenLink__init_ = function($this, $par1GuiScreen, $par2Str, $par3, $par4) { - var $var5; - $var5 = nms_StringTranslate_translateKey(nms_StringTranslate_instance, !$par4 ? $rt_s(2543) : $rt_s(2544)); - nms_GuiScreen__init_($this); - $this.$parentScreen0 = $par1GuiScreen; - $this.$message1 = $var5; - $this.$message2 = $par2Str; - $this.$worldNumber = $par3; - $var5 = nms_StringTranslate_instance; - $this.$buttonText1 = nms_StringTranslate_translateKey($var5, $rt_s(2545)); - $this.$buttonText2 = nms_StringTranslate_translateKey($var5, $rt_s(2546)); - $this.$field_92027_q = 1; - $var5 = nms_StringTranslate_instance; - $this.$buttonText1 = nms_StringTranslate_translateKey($var5, !$par4 ? $rt_s(2545) : $rt_s(2547)); - $this.$buttonText2 = nms_StringTranslate_translateKey($var5, !$par4 ? $rt_s(2546) : $rt_s(2548)); - $this.$copyLinkButtonText = nms_StringTranslate_translateKey($var5, $rt_s(2549)); - $this.$openLinkWarning = nms_StringTranslate_translateKey($var5, $rt_s(2550)); - $this.$field_92028_p = $par2Str; -}; -$java.nms_GuiConfirmOpenLink_initGui = function($this) { - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(0, (($this.$width0 / 3 | 0) - 83 | 0) + 0 | 0, ($this.$height0 / 6 | 0) + 96 | 0, 100, 20, $this.$buttonText1)); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(2, (($this.$width0 / 3 | 0) - 83 | 0) + 105 | 0, ($this.$height0 / 6 | 0) + 96 | 0, 100, 20, $this.$copyLinkButtonText)); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(1, (($this.$width0 / 3 | 0) - 83 | 0) + 210 | 0, ($this.$height0 / 6 | 0) + 96 | 0, 100, 20, $this.$buttonText2)); -}; -$java.nms_GuiConfirmOpenLink_actionPerformed = function($this, $par1GuiButton) { - var 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();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$id2 == 2) - nms_GuiScreen_$callClinit(); - var$2 = $this.$parentScreen0; - var$3 = $par1GuiButton.$id2 ? 0 : 1; - var$4 = $this.$worldNumber; - $ptr = 1; - case 1: - var$2.$confirmClicked(var$3, var$4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, var$3, var$4, $ptr); -}; -$java.nms_GuiConfirmOpenLink_copyLinkToClipboard = function($this) { - nms_GuiScreen_$callClinit(); -}; -$java.nms_GuiConfirmOpenLink_drawScreen = function($this, $par1, $par2, $par3) { - var var$4, var$5; - $java.nms_GuiYesNo_drawScreen($this, $par1, $par2, $par3); - if ($this.$field_92027_q) { - var$4 = $this.$fontRenderer0; - var$5 = $this.$openLinkWarning; - nms_FontRenderer_drawString(var$4, var$5, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, 110, 16764108, 1); - } -}; -function cjj_Inflate$Return() { - var a = this; jl_Exception.call(a); - a.$r = 0; - a.$this$04 = null; -} -function cjj_GZIPHeader() { - var a = this; jl_Object.call(a); - a.$text2 = 0; - a.$fhcrc = 0; - a.$time = Long_ZERO; - a.$xflags = 0; - a.$os = 0; - a.$extra = null; - a.$name4 = null; - a.$comment = null; - a.$hcrc = 0; - a.$crc0 = Long_ZERO; - a.$done0 = 0; - a.$mtime = Long_ZERO; -} -function cjj_GZIPHeader__init_0() { - var var_0 = new cjj_GZIPHeader(); - cjj_GZIPHeader__init_(var_0); - return var_0; -} -function cjj_GZIPHeader__init_($this) { - $this.$text2 = 0; - $this.$fhcrc = 0; - $this.$os = 255; - $this.$done0 = 0; - $this.$mtime = Long_ZERO; -} -$java.cjj_GZIPHeader_setCRC = function($this, $crc) { - $this.$crc0 = $crc; -}; -$java.cjj_GZIPHeader_put = function($this, $d) { - var $flag, $xfl, var$4, var$5, var$6; - $flag = 0; - if ($this.$text2) - $flag = 1; - if ($this.$fhcrc) - $flag = $flag | 2; - if ($this.$extra !== null) - $flag = $flag | 4; - if ($this.$name4 !== null) - $flag = $flag | 8; - if ($this.$comment !== null) - $flag = $flag | 16; - $xfl = 0; - if ($d.$level == 1) - $xfl = 4; - else if ($d.$level == 9) - $xfl = 2; - $java.cjj_Deflate_put_short($d, (-29921)); - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = 8; - $flag = $flag << 24 >> 24; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = $flag; - $flag = $this.$mtime.lo << 24 >> 24; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = $flag; - $flag = Long_shr($this.$mtime, 8).lo << 24 >> 24; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = $flag; - $flag = Long_shr($this.$mtime, 16).lo << 24 >> 24; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = $flag; - $flag = Long_shr($this.$mtime, 24).lo << 24 >> 24; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = $flag; - $flag = $xfl << 24 >> 24; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = $flag; - $flag = $this.$os << 24 >> 24; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = $flag; - if ($this.$extra !== null) { - $flag = $this.$extra.data.length << 24 >> 24; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = $flag; - $flag = $this.$extra.data.length >> 8 << 24 >> 24; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = $flag; - var$4 = $this.$extra; - var$6 = $this.$extra.data.length; - jl_System_arraycopy(var$4, 0, $d.$pending_buf, $d.$pending, var$6); - $d.$pending = $d.$pending + var$6 | 0; - } - if ($this.$name4 !== null) { - var$4 = $this.$name4; - var$6 = $this.$name4.data.length; - jl_System_arraycopy(var$4, 0, $d.$pending_buf, $d.$pending, var$6); - $d.$pending = $d.$pending + var$6 | 0; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = 0; - } - if ($this.$comment !== null) { - var$4 = $this.$comment; - var$6 = $this.$comment.data.length; - jl_System_arraycopy(var$4, 0, $d.$pending_buf, $d.$pending, var$6); - $d.$pending = $d.$pending + var$6 | 0; - var$4 = $d.$pending_buf.data; - var$5 = $d.$pending; - $d.$pending = var$5 + 1 | 0; - var$4[var$5] = 0; - } -}; -function cjj_CRC32() { - jl_Object.call(this); - this.$v0 = 0; -} -$java.cjj_CRC32_crc_table = null; -function cjj_CRC32__init_0() { - var var_0 = new cjj_CRC32(); - cjj_CRC32__init_(var_0); - return var_0; -} -function cjj_CRC32__init_($this) { - $this.$v0 = 0; -} -$java.cjj_CRC32_update = function($this, $buf, $index, $len) { - var $c, var$5, var$6, var$7; - $c = $this.$v0 ^ (-1); - while (true) { - $len = $len + (-1) | 0; - if ($len < 0) - break; - var$5 = $buf.data; - var$6 = $java.cjj_CRC32_crc_table.data; - var$7 = $index + 1 | 0; - $c = var$6[($c ^ var$5[$index]) & 255] ^ $c >>> 8; - $index = var$7; - } - $this.$v0 = $c ^ (-1); -}; -$java.cjj_CRC32_reset = function($this) { - $this.$v0 = 0; -}; -$java.cjj_CRC32_reset0 = function($this, $vv) { - $this.$v0 = Long_and($vv, new Long(4294967295, 0)).lo; -}; -$java.cjj_CRC32_getValue = function($this) { - return Long_and(Long_fromInt($this.$v0), new Long(4294967295, 0)); -}; -function cjj_CRC32__clinit_() { - var $n, $k, var$3; - $java.cjj_CRC32_crc_table = null; - $java.cjj_CRC32_crc_table = $rt_createIntArray(256); - $n = 0; - while ($n < 256) { - $k = 8; - var$3 = $n; - while (true) { - $k = $k + (-1) | 0; - if ($k < 0) - break; - if (!(var$3 & 1)) { - var$3 = var$3 >>> 1; - continue; - } - var$3 = (-306674912) ^ var$3 >>> 1; - } - $java.cjj_CRC32_crc_table.data[$n] = var$3; - $n = $n + 1 | 0; - } -} -function nms_StitchHolder() { - var a = this; jl_Object.call(a); - a.$theTexture = null; - a.$width5 = 0; - a.$height6 = 0; - a.$rotated = 0; - a.$scaleFactor0 = 0.0; -} -function nms_StitchHolder__init_(var_0) { - var var_1 = new nms_StitchHolder(); - $java.nms_StitchHolder__init_(var_1, var_0); - return var_1; -} -$java.nms_StitchHolder__init_ = function($this, $par1Texture) { - var var$2, var$3; - $this.$scaleFactor0 = 1.0; - $this.$theTexture = $par1Texture; - $this.$width5 = $par1Texture.$width6; - $this.$height6 = $par1Texture.$height7; - var$2 = $this.$height6; - var$3 = ((var$2 >> 0) + (var$2 & 0 ? 1 : 0) | 0) << 0; - var$2 = $this.$width5; - $this.$rotated = var$3 <= ((var$2 >> 0) + (var$2 & 0 ? 1 : 0) | 0) << 0 ? 0 : 1; -}; -function nms_StitchHolder_func_98150_a($this) { - return $this.$theTexture; -} -$java.nms_StitchHolder_getWidth = function($this) { - var var$1; - if (!$this.$rotated) { - var$1 = $this.$width5 * $this.$scaleFactor0 | 0; - var$1 = ((var$1 >> 0) + (var$1 & 0 ? 1 : 0) | 0) << 0; - } else { - var$1 = $this.$height6 * $this.$scaleFactor0 | 0; - var$1 = ((var$1 >> 0) + (var$1 & 0 ? 1 : 0) | 0) << 0; - } - return var$1; -}; -$java.nms_StitchHolder_getHeight = function($this) { - var var$1; - if (!$this.$rotated) { - var$1 = $this.$height6 * $this.$scaleFactor0 | 0; - var$1 = ((var$1 >> 0) + (var$1 & 0 ? 1 : 0) | 0) << 0; - } else { - var$1 = $this.$width5 * $this.$scaleFactor0 | 0; - var$1 = ((var$1 >> 0) + (var$1 & 0 ? 1 : 0) | 0) << 0; - } - return var$1; -}; -$java.nms_StitchHolder_rotate = function($this) { - $this.$rotated = $this.$rotated ? 0 : 1; -}; -function nms_StitchHolder_isRotated($this) { - return $this.$rotated; -} -$java.nms_StitchHolder_setNewDimension = function($this, $par1) { - var var$2, var$3; - if ($this.$width5 > $par1 && $this.$height6 > $par1) { - var$2 = $par1; - $par1 = $this.$width5; - var$3 = $this.$height6; - if ($par1 < var$3) - var$3 = $par1; - $this.$scaleFactor0 = var$2 / var$3; - } -}; -$java.nms_StitchHolder_toString = function($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(2551)); - var$2 = $this.$width5; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2552)); - var$2 = $this.$height6; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - var$3 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$3, var$3 + 1 | 0); - var$1.$buffer.data[var$3] = 125; - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.nms_StitchHolder_compareToStitchHolder = function($this, $par1StitchHolder) { - var $var2; - if ($java.nms_StitchHolder_getHeight($this) != $java.nms_StitchHolder_getHeight($par1StitchHolder)) - $var2 = $java.nms_StitchHolder_getHeight($this) >= $java.nms_StitchHolder_getHeight($par1StitchHolder) ? (-1) : 1; - else { - if ($java.nms_StitchHolder_getWidth($this) == $java.nms_StitchHolder_getWidth($par1StitchHolder)) { - if ($this.$theTexture.$textureName0 !== null) - return jl_String_compareTo($this.$theTexture.$textureName0, $par1StitchHolder.$theTexture.$textureName0); - return $par1StitchHolder.$theTexture.$textureName0 !== null ? (-1) : 0; - } - $var2 = $java.nms_StitchHolder_getWidth($this) >= $java.nms_StitchHolder_getWidth($par1StitchHolder) ? (-1) : 1; - } - return $var2; -}; -$java.nms_StitchHolder_compareTo = function($this, $par1Obj) { - return $java.nms_StitchHolder_compareToStitchHolder($this, $par1Obj); -}; -function nms_Texture() { - var a = this; jl_Object.call(a); - a.$glTextureId = 0; - a.$textureId = 0; - a.$textureType0 = 0; - a.$width6 = 0; - a.$height7 = 0; - a.$textureDepth = 0; - a.$textureFormat = 0; - a.$textureTarget = 0; - a.$textureMinFilter = 0; - a.$textureMagFilter = 0; - a.$textureWrap = 0; - a.$mipmapActive = 0; - a.$textureName0 = null; - a.$textureRect = null; - a.$transferred = 0; - a.$autoCreate = 0; - a.$textureNotModified = 0; - a.$textureData = null; -} -$java.nms_Texture__init_ = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8) { - var var_9 = new nms_Texture(); - $java.nms_Texture__init_0(var_9, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8); - return var_9; -}; -function nms_Texture__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { - var var_10 = new nms_Texture(); - $java.nms_Texture__init_1(var_10, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); - return var_10; -} -$java.nms_Texture__init_0 = function($this, $par1Str, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9) { - var var$10; - $this.$textureName0 = $par1Str; - $this.$textureType0 = $par2; - $this.$width6 = $par3; - $this.$height7 = $par4; - $this.$textureDepth = $par5; - $this.$textureFormat = $par7; - $this.$textureMinFilter = $par8; - $this.$textureMagFilter = $par9; - $this.$textureWrap = $par6; - $par1Str = new $java.nms_Rect2i; - $par1Str.$rectX = 0; - $par1Str.$rectY = 0; - $par1Str.$rectWidth = $par3; - $par1Str.$rectHeight = $par4; - $this.$textureRect = $par1Str; - $this.$textureTarget = 2; - $this.$mipmapActive = 0; - if ($par2 == 2) - $this.$glTextureId = (-1); - else { - nleg_EaglerAdapterGL30_$callClinit(); - $par1Str = nleg_EaglerAdapterGL30_texObjects; - nlea_EaglerAdapterImpl2_$callClinit(); - var$10 = new nlea_EaglerAdapterImpl2$TextureGL; - var$10.$obj = nlea_EaglerAdapterImpl2_webgl.createTexture(); - $this.$glTextureId = nleg_GLObjectMap_register($par1Str, var$10); - $par4 = $this.$glTextureId; - $par1Str = nleg_EaglerAdapterGL30_texObjects; - $par1Str = $par4 < $par1Str.$size3 && $par4 >= 0 ? $par1Str.$values.data[$par4] : null; - var$10 = nlea_EaglerAdapterImpl2_webgl; - $par1Str = $par1Str !== null ? $par1Str.$obj : null; - var$10.bindTexture(3553, $par1Str); - nleg_EaglerAdapterGL30_glTexParameteri($this.$textureTarget, 47, $par8); - nleg_EaglerAdapterGL30_glTexParameteri($this.$textureTarget, 48, $par9); - nleg_EaglerAdapterGL30_glTexParameteri($this.$textureTarget, 72, $par6); - nleg_EaglerAdapterGL30_glTexParameteri($this.$textureTarget, 73, $par6); - } - $par1Str = nms_TextureManager_instance; - $par3 = $par1Str.$nextTextureID; - $par1Str.$nextTextureID = $par3 + 1 | 0; - $this.$textureId = $par3; -}; -$java.nms_Texture__init_1 = function($this, $par1Str, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9, $par10BufferedImage) { - var $var11, var$12, $var12; - $java.nms_Texture__init_0($this, $par1Str, $par2, $par3, $par4, $par5, $par6, $par7, $par8, $par9); - if ($par10BufferedImage !== null) { - $this.$transferred = 1; - $java.nms_Texture_transferFromImage($this, $par10BufferedImage); - if ($par2 != 2) { - nms_Texture_uploadTexture($this); - $this.$autoCreate = 0; - } - } else if ($par3 != (-1) && $par4 != (-1)) { - $var11 = $rt_createByteArray($rt_imul($rt_imul($par3, $par4), $par5) * 4 | 0); - var$12 = $var11.data; - $var12 = 0; - $par2 = var$12.length; - while ($var12 < $par2) { - var$12[$var12] = 0; - $var12 = $var12 + 1 | 0; - } - $this.$textureData = nms_GLAllocation_createDirectByteBuffer($par2); - $par1Str = $this.$textureData; - $par1Str.$position = 0; - $par1Str.$limit = $par1Str.$capacity; - $par1Str.$mark = (-1); - jn_ByteBuffer_put0($this.$textureData, $var11, 0, $par2); - $par1Str = $this.$textureData; - jn_Buffer_position0($par1Str, 0); - jn_Buffer_limit0($par1Str, $par2); - if ($this.$autoCreate) - nms_Texture_uploadTexture($this); - else - $this.$textureNotModified = 0; - } else - $this.$transferred = 0; -}; -$java.nms_Texture_getTextureRect = function($this) { - return $this.$textureRect; -}; -$java.nms_Texture_fillRect = function($this, $par1Rect2i, $par2) { - var $var3, $var6, var$5, $var4, var$7, var$8, var$9, $var5, var$11; - if ($this.$textureTarget != 32879) { - $var3 = new $java.nms_Rect2i; - $var6 = $this.$width6; - var$5 = $this.$height7; - $var3.$rectX = 0; - $var3.$rectY = 0; - $var3.$rectWidth = $var6; - $var3.$rectHeight = var$5; - $java.nms_Rect2i_intersection($var3, $par1Rect2i); - jn_Buffer_position0($this.$textureData, 0); - $var4 = $var3.$rectY; - var$5 = ($par2 >> 24 & 255) << 24 >> 24; - var$7 = ($par2 >> 16 & 255) << 24 >> 24; - var$8 = ($par2 >> 8 & 255) << 24 >> 24; - var$9 = ($par2 >> 0 & 255) << 24 >> 24; - while ($var4 < ($var3.$rectY + $var3.$rectHeight | 0)) { - $var5 = $rt_imul($var4, $this.$width6) * 4 | 0; - $var6 = $var3.$rectX; - while ($var6 < ($var3.$rectX + $var3.$rectWidth | 0)) { - $par1Rect2i = $this.$textureData; - var$11 = $var5 + ($var6 * 4 | 0) | 0; - jn_ByteBufferImpl_put($par1Rect2i, var$11 + 0 | 0, var$5); - jn_ByteBufferImpl_put($this.$textureData, var$11 + 1 | 0, var$7); - jn_ByteBufferImpl_put($this.$textureData, var$11 + 2 | 0, var$8); - jn_ByteBufferImpl_put($this.$textureData, var$11 + 3 | 0, var$9); - $var6 = $var6 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - if ($this.$autoCreate) - nms_Texture_uploadTexture($this); - else - $this.$textureNotModified = 0; - } -}; -$java.nms_Texture_writeImage = function($this, $par1Str) { - return; -}; -$java.nms_Texture_copyFrom = function($this, $par1, $par2, $par3Texture, $par4) { - var var$5, $var5, var$7, $var6, $var7, $var8, $var9, $var10, $var11, $var12; - if ($this.$textureTarget != 32879) { - var$5 = $this.$glTextureId; - nleg_EaglerAdapterGL30_$callClinit(); - $var5 = nleg_EaglerAdapterGL30_texObjects; - $var5 = var$5 < $var5.$size3 && var$5 >= 0 ? $var5.$values.data[var$5] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$7 = nlea_EaglerAdapterImpl2_webgl; - $var5 = $var5 !== null ? $var5.$obj : null; - var$7.bindTexture(3553, $var5); - $var5 = $par3Texture.$textureData; - jn_Buffer_position0($this.$textureData, 0); - jn_Buffer_position0($var5, 0); - $var6 = 0; - while ($var6 < $par3Texture.$height7) { - $var7 = $par2 + $var6 | 0; - $var8 = $rt_imul($var6, $par3Texture.$width6) * 4 | 0; - $var9 = $rt_imul($var7, $this.$width6) * 4 | 0; - if ($par4) - $var7 = $par2 + ($par3Texture.$height7 - $var6 | 0) | 0; - $var10 = 0; - while ($var10 < $par3Texture.$width6) { - $var11 = $var9 + (($var10 + $par1 | 0) * 4 | 0) | 0; - $var12 = $var8 + ($var10 * 4 | 0) | 0; - if ($par4) - $var11 = ($par1 + ($rt_imul($var10, $this.$width6) * 4 | 0) | 0) + ($var7 * 4 | 0) | 0; - jn_ByteBufferImpl_put($this.$textureData, $var11 + 0 | 0, jn_ByteBufferImpl_get0($var5, $var12 + 0 | 0)); - jn_ByteBufferImpl_put($this.$textureData, $var11 + 1 | 0, jn_ByteBufferImpl_get0($var5, $var12 + 1 | 0)); - jn_ByteBufferImpl_put($this.$textureData, $var11 + 2 | 0, jn_ByteBufferImpl_get0($var5, $var12 + 2 | 0)); - jn_ByteBufferImpl_put($this.$textureData, $var11 + 3 | 0, jn_ByteBufferImpl_get0($var5, $var12 + 3 | 0)); - $var10 = $var10 + 1 | 0; - } - $var6 = $var6 + 1 | 0; - } - jn_Buffer_position0($this.$textureData, $rt_imul($this.$width6, $this.$height7) * 4 | 0); - if ($this.$autoCreate) - nms_Texture_uploadTexture($this); - else - $this.$textureNotModified = 0; - } -}; -$java.nms_Texture_func_104062_b = function($this, $par1, $par2, $par3Texture) { - var var$4, var$5, var$6, var$7, var$8, var$9; - var$4 = $this.$glTextureId; - nleg_EaglerAdapterGL30_$callClinit(); - var$5 = nleg_EaglerAdapterGL30_texObjects; - var$5 = var$4 < var$5.$size3 && var$4 >= 0 ? var$5.$values.data[var$4] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$6 = nlea_EaglerAdapterImpl2_webgl; - var$5 = var$5 !== null ? var$5.$obj : null; - var$6.bindTexture(3553, var$5); - var$7 = $this.$textureTarget; - var$8 = $par3Texture.$width6; - var$9 = $par3Texture.$height7; - $par3Texture = $par3Texture.$textureData; - jn_Buffer_position0($par3Texture, 0); - switch (var$7) { - case 2: - break; - default: - } - nleg_EaglerAdapterGL30_bytesUploaded = nleg_EaglerAdapterGL30_bytesUploaded + ($par3Texture.$limit - $par3Texture.$position | 0) | 0; - nlea_EaglerAdapterImpl2__wglTexSubImage2D0(3553, 0, $par1, $par2, var$8, var$9, 6408, 5121, $par3Texture); - $this.$textureNotModified = 1; -}; -$java.nms_Texture_transferFromImage = function($this, $par1BufferedImage) { - var $var2, $var3, $var4, $var9, $var5, $var10, $var11, $var12, $var13, var$11, var$12; - $var2 = $par1BufferedImage.$w0; - $var3 = $par1BufferedImage.$h; - if ($var2 <= $this.$width6 && $var3 <= $this.$height7) { - $var4 = $rt_createIntArray(4).data; - $var4[0] = 3; - $var4[1] = 0; - $var4[2] = 1; - $var4[3] = 2; - $var4 = $rt_createIntArray(4).data; - $var4[0] = 3; - $var4[1] = 2; - $var4[2] = 1; - $var4[3] = 0; - $var9 = $rt_createByteArray($rt_imul($this.$width6, $this.$height7) * 4 | 0); - $var5 = $var9.data; - $var10 = 0; - while ($var10 < $this.$height7) { - $var11 = 0; - while ($var11 < $this.$width6) { - $var12 = $rt_imul($var10, $this.$width6) + $var11 | 0; - $var13 = $var12 * 4 | 0; - $var5[$var13 + $var4[0] | 0] = ($par1BufferedImage.$data.data[$var12] >> 24 & 255) << 24 >> 24; - $var5[$var13 + $var4[1] | 0] = ($par1BufferedImage.$data.data[$var12] >> 16 & 255) << 24 >> 24; - $var5[$var13 + $var4[2] | 0] = ($par1BufferedImage.$data.data[$var12] >> 8 & 255) << 24 >> 24; - $var5[$var13 + $var4[3] | 0] = ($par1BufferedImage.$data.data[$var12] >> 0 & 255) << 24 >> 24; - $var11 = $var11 + 1 | 0; - } - $var10 = $var10 + 1 | 0; - } - $var2 = $var5.length; - $par1BufferedImage = nms_GLAllocation_createDirectByteBuffer($var2); - $par1BufferedImage.$order = jn_ByteOrder_BIG_ENDIAN; - $this.$textureData = $par1BufferedImage; - $par1BufferedImage = $this.$textureData; - $par1BufferedImage.$position = 0; - $par1BufferedImage.$limit = $par1BufferedImage.$capacity; - $par1BufferedImage.$mark = (-1); - jn_ByteBuffer_put0($this.$textureData, $var9, 0, $var2); - jn_Buffer_limit0($this.$textureData, $var2); - if ($this.$autoCreate) - nms_Texture_uploadTexture($this); - else - $this.$textureNotModified = 0; - } else { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - $par1BufferedImage = new jl_StringBuilder; - $par1BufferedImage.$buffer = $rt_createCharArray(16); - var$11.$sb = $par1BufferedImage; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - $par1BufferedImage = new jnci_UTF8Charset; - jnc_Charset__init_($par1BufferedImage, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = $par1BufferedImage; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - $par1BufferedImage = new jl_StringBuilder; - $par1BufferedImage.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1BufferedImage, $par1BufferedImage.$length, $rt_s(2553)); - jl_AbstractStringBuilder_insert0($par1BufferedImage, $par1BufferedImage.$length, $var2, 10); - jl_AbstractStringBuilder_insert($par1BufferedImage, $par1BufferedImage.$length, $rt_s(344)); - jl_AbstractStringBuilder_insert0($par1BufferedImage, $par1BufferedImage.$length, $var3, 10); - jl_AbstractStringBuilder_insert($par1BufferedImage, $par1BufferedImage.$length, $rt_s(2554)); - $var2 = $this.$width6; - jl_AbstractStringBuilder_insert0($par1BufferedImage, $par1BufferedImage.$length, $var2, 10); - jl_AbstractStringBuilder_insert($par1BufferedImage, $par1BufferedImage.$length, $rt_s(344)); - $var2 = $this.$height7; - jl_AbstractStringBuilder_insert0($par1BufferedImage, $par1BufferedImage.$length, $var2, 10); - jl_AbstractStringBuilder_insert($par1BufferedImage, $par1BufferedImage.$length, $rt_s(2555)); - var$11 = jl_String__init_0($par1BufferedImage.$buffer, 0, $par1BufferedImage.$length); - $par1BufferedImage = var$12.$sb; - jl_AbstractStringBuilder_insert($par1BufferedImage, $par1BufferedImage.$length, var$11); - $var3 = $par1BufferedImage.$length; - jl_AbstractStringBuilder_insertSpace($par1BufferedImage, $var3, $var3 + 1 | 0); - $par1BufferedImage.$buffer.data[$var3] = 10; - ji_PrintStream_printSB(var$12); - } -}; -$java.nms_Texture_getTextureId = function($this) { - return $this.$textureId; -}; -$java.nms_Texture_getGlTextureId = function($this) { - return $this.$glTextureId; -}; -function nms_Texture_getWidth($this) { - return $this.$width6; -} -function nms_Texture_getHeight($this) { - return $this.$height7; -} -function nms_Texture_getTextureName($this) { - return $this.$textureName0; -} -function nms_Texture_bindTexture($this, $par1) { - var var$2, var$3; - if ($this.$textureDepth == 1) - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glActiveTexture(nms_OpenGlHelper_defaultTexUnit + $par1 | 0); - $par1 = $this.$glTextureId; - var$2 = nleg_EaglerAdapterGL30_texObjects; - var$2 = $par1 < var$2.$size3 && $par1 >= 0 ? var$2.$values.data[$par1] : null; - nlea_EaglerAdapterImpl2_$callClinit(); - var$3 = nlea_EaglerAdapterImpl2_webgl; - var$2 = var$2 !== null ? var$2.$obj : null; - var$3.bindTexture(3553, var$2); - if (!$this.$textureNotModified) - nms_Texture_uploadTexture($this); -} -function nms_Texture_uploadTexture($this) { - var var$1, var$2, var$3; - var$1 = $this.$textureData; - var$1.$limit = var$1.$position; - var$1.$position = 0; - var$1.$mark = (-1); - if (!($this.$height7 != 1 && $this.$textureDepth != 1)) { - var$2 = $this.$width6; - var$3 = $this.$height7; - var$1 = $this.$textureData; - nleg_EaglerAdapterGL30_$callClinit(); - nlea_EaglerAdapterImpl2__wglTexImage2D(3553, 0, 32856, var$2, var$3, 0, 6408, 5121, var$1); - } - $this.$textureNotModified = 1; -} -$java.nms_Texture_getTextureData = function($this) { - return $this.$textureData; -}; -function nms_StitcherException() { - jl_RuntimeException.call(this); - this.$field_98149_a = null; -} -function nms_TextureStitched() { - var a = this; jl_Object.call(a); - a.$textureName1 = null; - a.$textureSheet = null; - a.$textureList = null; - a.$listAnimationTuples = null; - a.$rotated0 = 0; - a.$originX0 = 0; - a.$originY0 = 0; - a.$width7 = 0; - a.$height8 = 0; - a.$minU = 0.0; - a.$maxU = 0.0; - a.$minV = 0.0; - a.$maxV = 0.0; - a.$widthNorm = 0.0; - a.$heightNorm = 0.0; - a.$frameCounter0 = 0; - a.$tickCounter = 0; -} -function nms_TextureStitched_makeTextureStitched($par0Str) { - var var$2; - if (jl_String_equals($rt_s(1439), $par0Str)) { - var$2 = new nms_TextureClock; - var$2.$frameCounter0 = 0; - var$2.$tickCounter = 0; - var$2.$textureName1 = $rt_s(1437); - $java.nms_TextureClock_instance = var$2; - } else if (!jl_String_equals($rt_s(1437), $par0Str)) { - var$2 = new nms_TextureStitched; - var$2.$frameCounter0 = 0; - var$2.$tickCounter = 0; - var$2.$textureName1 = $par0Str; - } else { - var$2 = new nms_TextureCompass; - var$2.$frameCounter0 = 0; - var$2.$tickCounter = 0; - var$2.$textureName1 = $rt_s(1437); - nms_TextureCompass_compassTexture = var$2; - } - return var$2; -} -function nms_TextureStitched_init($this, $par1Texture, $par2List, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9; - $this.$textureSheet = $par1Texture; - $this.$textureList = $par2List; - $this.$originX0 = $par3; - $this.$originY0 = $par4; - $this.$width7 = $par5; - $this.$height8 = $par6; - $this.$rotated0 = $par7; - $var8 = 0.009999999776482582 / $par1Texture.$width6; - $var9 = 0.009999999776482582 / $par1Texture.$height7; - $this.$minU = $par3 / $par1Texture.$width6 + $var8; - $this.$maxU = ($par3 + $par5 | 0) / $par1Texture.$width6 - $var8; - $this.$minV = $par4 / $par1Texture.$height7 + $var9; - $this.$maxV = ($par4 + $par6 | 0) / $par1Texture.$height7 - $var9; - $this.$widthNorm = $par5 / 16.0; - $this.$heightNorm = $par6 / 16.0; -} -function nms_TextureStitched_copyFrom($this, $par1TextureStitched) { - nms_TextureStitched_init($this, $par1TextureStitched.$textureSheet, $par1TextureStitched.$textureList, $par1TextureStitched.$originX0, $par1TextureStitched.$originY0, $par1TextureStitched.$width7, $par1TextureStitched.$height8, $par1TextureStitched.$rotated0); -} -$java.nms_TextureStitched_getOriginX = function($this) { - return $this.$originX0; -}; -$java.nms_TextureStitched_getOriginY = function($this) { - return $this.$originY0; -}; -$java.nms_TextureStitched_getMinU = function($this) { - return $this.$minU; -}; -$java.nms_TextureStitched_getMaxU = function($this) { - return $this.$maxU; -}; -$java.nms_TextureStitched_getInterpolatedU = function($this, $par1) { - var $var3; - $var3 = $this.$maxU - $this.$minU; - return $this.$minU + $var3 * $par1 / 16.0; -}; -$java.nms_TextureStitched_getMinV = function($this) { - return $this.$minV; -}; -$java.nms_TextureStitched_getMaxV = function($this) { - return $this.$maxV; -}; -$java.nms_TextureStitched_getInterpolatedV = function($this, $par1) { - var $var3; - $var3 = $this.$maxV - $this.$minV; - return $this.$minV + $var3 * $par1 / 16.0; -}; -$java.nms_TextureStitched_getIconName = function($this) { - return $this.$textureName1; -}; -$java.nms_TextureStitched_getSheetWidth = function($this) { - return $this.$textureSheet.$width6; -}; -$java.nms_TextureStitched_getSheetHeight = function($this) { - return $this.$textureSheet.$height7; -}; -$java.nms_TextureStitched_updateAnimation = function($this) { - var $var4, $var1, var$3, $var2, $var3; - if ($this.$listAnimationTuples === null) { - $var4 = $this.$frameCounter0; - $this.$frameCounter0 = ($this.$frameCounter0 + 1 | 0) % $this.$textureList.$size2() | 0; - if ($var4 != $this.$frameCounter0) - $java.nms_Texture_func_104062_b($this.$textureSheet, $this.$originX0, $this.$originY0, $this.$textureList.$get4($this.$frameCounter0)); - } else { - $var1 = $this.$listAnimationTuples; - var$3 = $this.$frameCounter0; - if (var$3 >= 0 && var$3 < $var1.$size0) { - $var1 = $var1.$array1.data[var$3]; - $this.$tickCounter = $this.$tickCounter + 1 | 0; - if ($this.$tickCounter >= $var1.$second.$value) { - $var2 = $var1.$first.$value; - $this.$frameCounter0 = ($this.$frameCounter0 + 1 | 0) % $this.$listAnimationTuples.$size0 | 0; - $this.$tickCounter = 0; - $var1 = $this.$listAnimationTuples; - var$3 = $this.$frameCounter0; - if (var$3 >= 0 && var$3 < $var1.$size0) { - $var3 = $var1.$array1.data[var$3].$first.$value; - if ($var2 != $var3 && $var3 >= 0 && $var3 < $this.$textureList.$size2()) - $java.nms_Texture_func_104062_b($this.$textureSheet, $this.$originX0, $this.$originY0, $this.$textureList.$get4($var3)); - } else { - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - } - } - } else { - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - } - } -}; -function nms_TextureStitched_readAnimationInfo($this, $path) { - var $var2, $var3, $var4, $var6, $var7, $var8, $var9, $var12, $var10, $$je; - $var2 = new ju_ArrayList; - $var2.$array1 = $rt_createArray(jl_Object, 10); - a: { - try { - b: { - $var3 = jl_String_trim(nlea_EaglerAdapterImpl2_fileContents($path)); - if (jl_String_length($var3) > 0) { - $var4 = jl_String_split($var3, $rt_s(267)).data; - $var6 = $var4.length; - $var7 = 0; - while (true) { - if ($var7 >= $var6) - break b; - $var8 = $var4[$var7]; - $var9 = jl_String_indexOf0($var8, 42); - if ($var9 <= 0) - ju_ArrayList_add($var2, nms_Tuple__init_(jl_Integer__init_($var8), jl_Integer_valueOf(1))); - else - ju_ArrayList_add($var2, nms_Tuple__init_(jl_Integer__init_(jl_String_substring0($var8, 0, $var9)), jl_Integer__init_(jl_String_substring($var8, $var9 + 1 | 0)))); - $var7 = $var7 + 1 | 0; - } - } - } - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var12 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var8 = new ji_PrintStream; - $var8.$out = new jl_ConsoleOutputStreamStderr; - $path = new jl_StringBuilder; - $path.$buffer = $rt_createCharArray(16); - $var8.$sb = $path; - $var8.$buffer0 = $rt_createCharArray(32); - $var8.$autoFlush = 0; - $path = new jnci_UTF8Charset; - jnc_Charset__init_($path, $rt_s(2), $rt_createArray(jl_String, 0)); - $var8.$charset = $path; - jl_System_errCache = $var8; - } - $path = jl_System_errCache; - $var8 = new jl_StringBuilder; - $var8.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var8, $var8.$length, $rt_s(2556)); - $var10 = $this.$textureName1; - jl_AbstractStringBuilder_insert($var8, $var8.$length, $var10); - jl_AbstractStringBuilder_insert($var8, $var8.$length, $rt_s(48)); - $var10 = $var12.$getMessage(); - jl_AbstractStringBuilder_insert($var8, $var8.$length, $var10); - $var10 = jl_String__init_0($var8.$buffer, 0, $var8.$length); - $var8 = $path.$sb; - jl_AbstractStringBuilder_insert($var8, $var8.$length, $var10); - $var6 = $var8.$length; - jl_AbstractStringBuilder_insertSpace($var8, $var6, $var6 + 1 | 0); - $var8.$buffer.data[$var6] = 10; - ji_PrintStream_printSB($path); - } - $var9 = $var2.$size0 ? 0 : 1; - if (!$var9 && $var2.$size0 < 600) - $this.$listAnimationTuples = $var2; -} -function nms_MovementInput() { - var a = this; jl_Object.call(a); - a.$moveStrafe = 0.0; - a.$moveForward = 0.0; - a.$jump = 0; - a.$sneak = 0; -} -$java.nms_MovementInput__init_ = function() { - var var_0 = new nms_MovementInput(); - nms_MovementInput__init_(var_0); - return var_0; -}; -function nms_MovementInput__init_($this) { - $this.$moveStrafe = 0.0; - $this.$moveForward = 0.0; - $this.$jump = 0; - $this.$sneak = 0; -} -function nms_MovementInputFromOptions() { - nms_MovementInput.call(this); - this.$gameSettings0 = null; -} -function nms_MovementInputFromOptions_updatePlayerMoveState($this) { - $this.$moveStrafe = 0.0; - $this.$moveForward = 0.0; - if ($this.$gameSettings0.$keyBindForward.$pressed) - $this.$moveForward = $this.$moveForward + 1.0; - if ($this.$gameSettings0.$keyBindBack.$pressed) - $this.$moveForward = $this.$moveForward - 1.0; - if ($this.$gameSettings0.$keyBindLeft.$pressed) - $this.$moveStrafe = $this.$moveStrafe + 1.0; - if ($this.$gameSettings0.$keyBindRight.$pressed) - $this.$moveStrafe = $this.$moveStrafe - 1.0; - $this.$jump = $this.$gameSettings0.$keyBindJump.$pressed; - $this.$sneak = $this.$gameSettings0.$keyBindSneak.$pressed; - if ($this.$sneak) { - $this.$moveStrafe = $this.$moveStrafe * 0.3; - $this.$moveForward = $this.$moveForward * 0.3; - } -} -function nms_Packet204ClientInfo() { - var a = this; nms_Packet.call(a); - a.$language0 = null; - a.$renderDistance0 = 0; - a.$chatVisisble = 0; - a.$chatColours0 = 0; - a.$gameDifficulty = 0; - a.$showCape0 = 0; -} -$java.nms_Packet204ClientInfo__init_ = function() { - var var_0 = new nms_Packet204ClientInfo(); - nms_Packet204ClientInfo__init_(var_0); - return var_0; -}; -function nms_Packet204ClientInfo__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet204ClientInfo_readPacketData = function($this, $par1DataInputStream) { - var var$2, $var2; - $this.$language0 = nms_Packet_readString($par1DataInputStream, 7); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$renderDistance0 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $var2 = var$2 << 24 >> 24; - $this.$chatVisisble = $var2 & 7; - $this.$chatColours0 = ($var2 & 8) != 8 ? 0 : 1; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$gameDifficulty = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$showCape0 = !var$2 ? 0 : 1; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet204ClientInfo_writePacketData = function($this, $par1DataOutputStream) { - var var$2, var$3; - var$2 = $this.$language0; - nms_Packet_$callClinit(); - if (var$2.$characters.data.length > 32767) { - var$2 = new ji_IOException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(374); - $rt_throw(var$2); - } - ji_DataOutputStream_writeShort($par1DataOutputStream, var$2.$characters.data.length); - ji_DataOutputStream_writeChars($par1DataOutputStream, var$2); - var$3 = $this.$renderDistance0; - $par1DataOutputStream.$out.$write0(var$3); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - var$3 = $this.$chatVisisble | (!$this.$chatColours0 ? 0 : 1) << 3; - $par1DataOutputStream.$out.$write0(var$3); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - var$3 = $this.$gameDifficulty; - $par1DataOutputStream.$out.$write0(var$3); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - var$3 = $this.$showCape0; - $par1DataOutputStream.$out.$write0(!var$3 ? 0 : 1); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet204ClientInfo_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet204ClientInfo_getPacketSize = function($this) { - return 7; -}; -$java.nms_ICrafting = function() { -}; -$java.nms_CreativeCrafting = function() { - jl_Object.call(this); - this.$mc14 = null; -}; -$java.nms_CreativeCrafting_sendContainerAndContentsToPlayer = function($this, $par1Container, $par2List) { - return; -}; -$java.nms_CreativeCrafting_sendSlotContents = function($this, $par1Container, $par2, $par3ItemStack) { - var var$4, var$5, var$6, var$7; - $par1Container = $this.$mc14.$playerController; - if ($par1Container.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) { - var$4 = $par1Container.$netClientHandler; - $par1Container = new nms_Packet107CreativeSetSlot; - nms_Packet_$callClinit(); - $par1Container.$creationTimeMillis = jl_System_currentTimeMillis(); - $par1Container.$isChunkDataPacket = 0; - $par1Container.$slot = $par2; - if ($par3ItemStack === null) - var$5 = null; - else { - var$5 = new nms_ItemStack; - $par2 = $par3ItemStack.$itemID0; - var$6 = $par3ItemStack.$stackSize; - var$7 = $par3ItemStack.$itemDamage; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = $par2; - var$5.$stackSize = var$6; - var$5.$itemDamage = var$7; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - if ($par3ItemStack.$stackTagCompound !== null) - var$5.$stackTagCompound = nms_NBTTagCompound_copy($par3ItemStack.$stackTagCompound); - } - $par1Container.$itemStack2 = var$5; - if (!var$4.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue(var$4.$netManager, $par1Container); - } -}; -$java.nms_CreativeCrafting_sendProgressBarUpdate = function($this, $par1Container, $par2, $par3) { - return; -}; -function jt_DecimalFormat$PerMillField() { - jl_Object.call(this); -} -$java.jt_DecimalFormat$PerMillField__init_ = function() { - var var_0 = new jt_DecimalFormat$PerMillField(); - jt_DecimalFormat$PerMillField__init_(var_0); - return var_0; -}; -function jt_DecimalFormat$PerMillField__init_($this) { - return; -} -$java.jt_DecimalFormat$PerMillField_render = function($this, $format, $buffer) { - var var$3, var$4; - var$3 = $format.$symbols.$perMill; - var$4 = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, var$4, var$4 + 1 | 0); - $buffer.$buffer.data[var$4] = var$3; -}; -$java.jt_DecimalFormat$PerMillField_equals = function($this, $obj) { - return $obj instanceof jt_DecimalFormat$PerMillField; -}; -$java.jt_DecimalFormat$PerMillField_hashCode = function($this) { - return 2; -}; -function jt_DecimalFormat$CurrencyField() { - jl_Object.call(this); -} -$java.jt_DecimalFormat$CurrencyField__init_ = function() { - var var_0 = new jt_DecimalFormat$CurrencyField(); - jt_DecimalFormat$CurrencyField__init_(var_0); - return var_0; -}; -function jt_DecimalFormat$CurrencyField__init_($this) { - return; -} -$java.jt_DecimalFormat$CurrencyField_render = function($this, $format, $buffer) { - var var$3; - if ($format.$currency !== null) { - $format = ju_Currency_getSymbol($format.$currency, $format.$symbols.$locale0); - jl_AbstractStringBuilder_insert($buffer, $buffer.$length, $format); - } else { - var$3 = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, var$3, var$3 + 1 | 0); - $buffer.$buffer.data[var$3] = 164; - } -}; -$java.jt_DecimalFormat$CurrencyField_equals = function($this, $obj) { - return $obj instanceof jt_DecimalFormat$CurrencyField; -}; -$java.jt_DecimalFormat$CurrencyField_hashCode = function($this) { - return 0; -}; -function jt_DecimalFormat$PercentField() { - jl_Object.call(this); -} -$java.jt_DecimalFormat$PercentField__init_ = function() { - var var_0 = new jt_DecimalFormat$PercentField(); - jt_DecimalFormat$PercentField__init_(var_0); - return var_0; -}; -function jt_DecimalFormat$PercentField__init_($this) { - return; -} -$java.jt_DecimalFormat$PercentField_render = function($this, $format, $buffer) { - var var$3, var$4; - var$3 = $format.$symbols.$percent; - var$4 = $buffer.$length; - jl_AbstractStringBuilder_insertSpace($buffer, var$4, var$4 + 1 | 0); - $buffer.$buffer.data[var$4] = var$3; -}; -$java.jt_DecimalFormat$PercentField_equals = function($this, $obj) { - return $obj instanceof jt_DecimalFormat$PercentField; -}; -$java.jt_DecimalFormat$PercentField_hashCode = function($this) { - return 1; -}; -$java.ju_ListIterator = function() { -}; -function ju_LinkedList$SequentialListIterator() { - var a = this; jl_Object.call(a); - a.$nextEntry = null; - a.$prevEntry = null; - a.$currentEntry0 = null; - a.$index0 = 0; - a.$version = 0; - a.$this$02 = null; -} -$java.ju_LinkedList$SequentialListIterator_hasNext = function($this) { - return $this.$nextEntry === null ? 0 : 1; -}; -function ju_LinkedList$SequentialListIterator_next($this) { - var $result; - if ($this.$version < $this.$this$02.$modCount0) { - $result = new ju_ConcurrentModificationException; - $result.$suppressionEnabled = 1; - $result.$writableStackTrace = 1; - $rt_throw($result); - } - if ($this.$nextEntry === null) { - $result = new ju_NoSuchElementException; - $result.$suppressionEnabled = 1; - $result.$writableStackTrace = 1; - $rt_throw($result); - } - $result = $this.$nextEntry.$item; - $this.$currentEntry0 = $this.$nextEntry; - $this.$prevEntry = $this.$nextEntry; - $this.$nextEntry = $this.$nextEntry.$next0; - $this.$index0 = $this.$index0 + 1 | 0; - return $result; -} -function ju_LinkedList$SequentialListIterator_remove($this) { - var var$1; - if ($this.$currentEntry0 === null) { - var$1 = new jl_IllegalStateException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - ju_LinkedList_removeEntry($this.$this$02, $this.$currentEntry0); - if ($this.$currentEntry0 === $this.$prevEntry) { - $this.$prevEntry = !($this.$nextEntry === null ? 0 : 1) ? null : $this.$nextEntry.$previous; - $this.$index0 = $this.$index0 - 1 | 0; - } else if ($this.$currentEntry0 === $this.$nextEntry) - $this.$nextEntry = !($this.$prevEntry === null ? 0 : 1) ? null : $this.$prevEntry.$next0; - $this.$version = $this.$this$02.$modCount0; - $this.$currentEntry0 = null; -} -$java.ju_LinkedList$SequentialListIterator_hasPrevious = function($this) { - return $this.$prevEntry === null ? 0 : 1; -}; -function ju_LinkedList$SequentialListIterator_add($this, $e) { - var $newEntry; - if ($this.$version < $this.$this$02.$modCount0) { - $e = new ju_ConcurrentModificationException; - $e.$suppressionEnabled = 1; - $e.$writableStackTrace = 1; - $rt_throw($e); - } - $newEntry = new ju_LinkedList$Entry; - $newEntry.$item = $e; - $newEntry.$previous = $this.$prevEntry; - $newEntry.$next0 = $this.$nextEntry; - if ($this.$prevEntry !== null) - $this.$prevEntry.$next0 = $newEntry; - else - $this.$this$02.$firstEntry = $newEntry; - if ($this.$nextEntry !== null) - $this.$nextEntry.$previous = $newEntry; - else - $this.$this$02.$lastEntry = $newEntry; - $this.$prevEntry = $newEntry; - $e = $this.$this$02; - $e.$size = $e.$size + 1 | 0; - $e = $this.$this$02; - $e.$modCount0 = $e.$modCount0 + 1 | 0; - $this.$version = $this.$this$02.$modCount0; - $this.$currentEntry0 = null; -} -function ju_LinkedList$Entry() { - var a = this; jl_Object.call(a); - a.$item = null; - a.$next0 = null; - a.$previous = null; -} -$java.ju_LinkedList$Entry__init_ = function() { - var var_0 = new ju_LinkedList$Entry(); - ju_LinkedList$Entry__init_(var_0); - return var_0; -}; -function ju_LinkedList$Entry__init_($this) { - return; -} -function nms_Facing() { - jl_Object.call(this); -} -var nms_Facing_oppositeSide = null; -var nms_Facing_offsetsXForSide = null; -var nms_Facing_offsetsYForSide = null; -var nms_Facing_offsetsZForSide = null; -$java.nms_Facing_facings = null; -$java.nms_Facing__init_ = function() { - var var_0 = new nms_Facing(); - nms_Facing__init_(var_0); - return var_0; -}; -function nms_Facing__init_($this) { - return; -} -function nms_Facing__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(6); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 0; - var$2[2] = 3; - var$2[3] = 2; - var$2[4] = 5; - var$2[5] = 4; - nms_Facing_oppositeSide = var$1; - var$1 = $rt_createIntArray(6); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 0; - var$2[2] = 0; - var$2[3] = 0; - var$2[4] = (-1); - var$2[5] = 1; - nms_Facing_offsetsXForSide = var$1; - var$1 = $rt_createIntArray(6); - var$2 = var$1.data; - var$2[0] = (-1); - var$2[1] = 1; - var$2[2] = 0; - var$2[3] = 0; - var$2[4] = 0; - var$2[5] = 0; - nms_Facing_offsetsYForSide = var$1; - var$1 = $rt_createIntArray(6); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 0; - var$2[2] = (-1); - var$2[3] = 1; - var$2[4] = 0; - var$2[5] = 0; - nms_Facing_offsetsZForSide = var$1; - var$1 = $rt_createArray(jl_String, 6); - var$2 = var$1.data; - var$2[0] = $rt_s(191); - var$2[1] = $rt_s(186); - var$2[2] = $rt_s(2507); - var$2[3] = $rt_s(2505); - var$2[4] = $rt_s(2506); - var$2[5] = $rt_s(2508); - $java.nms_Facing_facings = var$1; -} -function nms_WatchableObject() { - var a = this; jl_Object.call(a); - a.$objectType = 0; - a.$dataValueId = 0; - a.$watchedObject = null; - a.$watched = 0; -} -$java.nms_WatchableObject_getDataValueId = function($this) { - return $this.$dataValueId; -}; -$java.nms_WatchableObject_setObject = function($this, $par1Obj) { - $this.$watchedObject = $par1Obj; -}; -$java.nms_WatchableObject_getObject = function($this) { - return $this.$watchedObject; -}; -$java.nms_WatchableObject_setWatched = function($this, $par1) { - $this.$watched = $par1; -}; -function ju_ConcurrentModificationException() { - jl_RuntimeException.call(this); -} -$java.ju_ConcurrentModificationException__init_ = function() { - var var_0 = new ju_ConcurrentModificationException(); - ju_ConcurrentModificationException__init_(var_0); - return var_0; -}; -function ju_ConcurrentModificationException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function nms_FoodStats() { - var a = this; jl_Object.call(a); - a.$foodLevel = 0; - a.$foodSaturationLevel = 0.0; - a.$foodExhaustionLevel = 0.0; - a.$foodTimer = 0; - a.$prevFoodLevel = 0; -} -$java.nms_FoodStats__init_ = function() { - var var_0 = new nms_FoodStats(); - nms_FoodStats__init_(var_0); - return var_0; -}; -function nms_FoodStats__init_($this) { - $this.$foodLevel = 20; - $this.$foodSaturationLevel = 5.0; - $this.$foodTimer = 0; - $this.$prevFoodLevel = 20; -} -function nms_FoodStats_addStats($this, $par1, $par2) { - var var$3, var$4, var$5; - var$3 = $par1 + $this.$foodLevel | 0; - var$4 = 20; - if (var$3 < var$4) - var$4 = var$3; - $this.$foodLevel = var$4; - $par2 = $this.$foodSaturationLevel + $par1 * $par2 * 2.0; - var$5 = $this.$foodLevel; - if ($par2 < var$5) - var$5 = $par2; - $this.$foodSaturationLevel = var$5; -} -$java.nms_FoodStats_addStats = function($this, $par1ItemFood) { - nms_FoodStats_addStats($this, $par1ItemFood.$healAmount, $par1ItemFood.$saturationModifier); -}; -function nms_FoodStats_onUpdate($this, $par1EntityPlayer) { - var $var2, var$3, var$4, var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = $par1EntityPlayer.$worldObj.$difficultySetting; - $this.$prevFoodLevel = $this.$foodLevel; - if ($this.$foodExhaustionLevel > 4.0) { - $this.$foodExhaustionLevel = $this.$foodExhaustionLevel - 4.0; - if ($this.$foodSaturationLevel > 0.0) { - var$3 = $this.$foodSaturationLevel - 1.0; - var$4 = 0.0; - if (var$3 > var$4) - var$4 = var$3; - $this.$foodSaturationLevel = var$4; - } else if ($var2 > 0) { - var$5 = $this.$foodLevel - 1 | 0; - var$6 = 0; - if (var$5 > var$6) - var$6 = var$5; - $this.$foodLevel = var$6; - } - } - a: { - if ($this.$foodLevel >= 18 && ($par1EntityPlayer.$health > 0 && $par1EntityPlayer.$health < 20 ? 1 : 0)) { - $this.$foodTimer = $this.$foodTimer + 1 | 0; - if ($this.$foodTimer >= 80) { - $par1EntityPlayer.$heal(1); - $this.$foodTimer = 0; - } - } else if ($this.$foodLevel > 0) - $this.$foodTimer = 0; - else { - $this.$foodTimer = $this.$foodTimer + 1 | 0; - if ($this.$foodTimer >= 80) { - if ($par1EntityPlayer.$health > 10) - break a; - if ($var2 >= 3) - break a; - if ($par1EntityPlayer.$health > 1 && $var2 >= 2) - break a; - $this.$foodTimer = 0; - } - } - return; - } - var$7 = $java.nms_DamageSource_starve; - var$5 = 1; - $ptr = 1; - case 1: - $par1EntityPlayer.$attackEntityFrom(var$7, var$5); - if ($rt_suspending()) { - break main; - } - $this.$foodTimer = 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $var2, var$3, var$4, var$5, var$6, var$7, $ptr); -} -function nms_FoodStats_getFoodLevel($this) { - return $this.$foodLevel; -} -function nms_FoodStats_getPrevFoodLevel($this) { - return $this.$prevFoodLevel; -} -$java.nms_FoodStats_needFood = function($this) { - return $this.$foodLevel >= 20 ? 0 : 1; -}; -$java.nms_FoodStats_addExhaustion = function($this, $par1) { - var var$2; - $par1 = $this.$foodExhaustionLevel + $par1; - var$2 = 40.0; - if ($par1 < var$2) - var$2 = $par1; - $this.$foodExhaustionLevel = var$2; -}; -function nms_FoodStats_getSaturationLevel($this) { - return $this.$foodSaturationLevel; -} -$java.nms_FoodStats_setFoodLevel = function($this, $par1) { - $this.$foodLevel = $par1; -}; -$java.nms_FoodStats_setFoodSaturationLevel = function($this, $par1) { - $this.$foodSaturationLevel = $par1; -}; -function nms_WorldInfo() { - var a = this; jl_Object.call(a); - a.$randomSeed = Long_ZERO; - a.$terrainType0 = null; - a.$generatorOptions = null; - a.$spawnX = 0; - a.$spawnY = 0; - a.$spawnZ = 0; - a.$totalTime = Long_ZERO; - a.$worldTime = Long_ZERO; - a.$levelName = null; - a.$raining = 0; - a.$thundering = 0; - a.$theGameType0 = null; - a.$mapFeaturesEnabled0 = 0; - a.$hardcore = 0; - a.$allowCommands = 0; - a.$initialized0 = 0; - a.$theGameRules = null; -} -$java.nms_WorldInfo__init_ = function() { - var var_0 = new nms_WorldInfo(); - nms_WorldInfo__init_(var_0); - return var_0; -}; -function nms_WorldInfo__init_0(var_0, var_1) { - var var_2 = new nms_WorldInfo(); - $java.nms_WorldInfo__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_WorldInfo__init_($this) { - $this.$terrainType0 = $java.nms_WorldType_DEFAULT; - $this.$generatorOptions = $rt_s(44); - $this.$theGameRules = $java.nms_GameRules__init_(); -} -$java.nms_WorldInfo__init_0 = function($this, $par1WorldSettings, $par2Str) { - $this.$terrainType0 = $java.nms_WorldType_DEFAULT; - $this.$generatorOptions = $rt_s(44); - $this.$theGameRules = $java.nms_GameRules__init_(); - $this.$randomSeed = $par1WorldSettings.$seed; - $this.$theGameType0 = $par1WorldSettings.$theGameType; - $this.$mapFeaturesEnabled0 = $par1WorldSettings.$mapFeaturesEnabled; - $this.$levelName = $par2Str; - $this.$hardcore = $par1WorldSettings.$hardcoreEnabled; - $this.$terrainType0 = $par1WorldSettings.$terrainType2; - $this.$generatorOptions = $par1WorldSettings.$field_82751_h; - $this.$allowCommands = $par1WorldSettings.$commandsAllowed; - $this.$initialized0 = 0; -}; -$java.nms_WorldInfo_getSpawnX = function($this) { - return $this.$spawnX; -}; -$java.nms_WorldInfo_getSpawnY = function($this) { - return $this.$spawnY; -}; -$java.nms_WorldInfo_getSpawnZ = function($this) { - return $this.$spawnZ; -}; -$java.nms_WorldInfo_getWorldTotalTime = function($this) { - return $this.$totalTime; -}; -$java.nms_WorldInfo_getWorldTime = function($this) { - return $this.$worldTime; -}; -$java.nms_WorldInfo_incrementTotalWorldTime = function($this, $par1) { - $this.$totalTime = $par1; -}; -$java.nms_WorldInfo_setWorldTime = function($this, $par1) { - $this.$worldTime = $par1; -}; -$java.nms_WorldInfo_setSpawnPosition = function($this, $par1, $par2, $par3) { - $this.$spawnX = $par1; - $this.$spawnY = $par2; - $this.$spawnZ = $par3; -}; -$java.nms_WorldInfo_getWorldName = function($this) { - return $this.$levelName; -}; -$java.nms_WorldInfo_isThundering = function($this) { - return $this.$thundering; -}; -$java.nms_WorldInfo_isRaining = function($this) { - return $this.$raining; -}; -$java.nms_WorldInfo_setRaining = function($this, $par1) { - $this.$raining = $par1; -}; -function nms_WorldInfo_isHardcoreModeEnabled($this) { - return $this.$hardcore; -} -$java.nms_WorldInfo_getTerrainType = function($this) { - return $this.$terrainType0; -}; -$java.nms_WorldInfo_getGeneratorOptions = function($this) { - return $this.$generatorOptions; -}; -$java.nms_WorldInfo_getGameRulesInstance = function($this) { - return $this.$theGameRules; -}; -function ju_Formatter() { - var a = this; jl_Object.call(a); - a.$locale = null; - a.$out0 = null; - a.$ioException = null; -} -$java.ju_Formatter__init_ = function() { - var var_0 = new ju_Formatter(); - ju_Formatter__init_(var_0); - return var_0; -}; -function ju_Formatter__init_($this) { - var var$1, var$2; - var$1 = ju_Locale_defaultLocale; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - $this.$out0 = var$2; - $this.$locale = var$1; -} -function ju_Formatter_toString($this) { - var var$1; - if ($this.$out0 !== null) { - var$1 = $this.$out0; - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); - } - var$1 = new ju_FormatterClosedException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); -} -$java.ju_Formatter_format = function($this, $format, $args) { - return ju_Formatter_format($this, $this.$locale, $format, $args); -}; -function ju_Formatter_format($this, $l, $format, $args) { - var $e, $$je; - if ($this.$out0 === null) { - $l = new ju_FormatterClosedException; - $l.$suppressionEnabled = 1; - $l.$writableStackTrace = 1; - $rt_throw($l); - } - a: { - try { - if ($args === null) - $args = $rt_createArray(jl_Object, 1); - $java.ju_Formatter$FormatWriter_write($java.ju_Formatter$FormatWriter__init_($this, $this.$out0, $l, $format, $args)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $e = $$je; - } else { - throw $$e; - } - } - $this.$ioException = $e; - } - return $this; -} -function nms_Scoreboard() { - var a = this; jl_Object.call(a); - a.$scoreObjectives = null; - a.$field_96543_b = null; - a.$field_96544_c = null; - a.$field_96541_d = null; - a.$field_96542_e = null; - a.$teamMemberships = null; -} -function nms_Scoreboard__init_0() { - var var_0 = new nms_Scoreboard(); - nms_Scoreboard__init_(var_0); - return var_0; -} -function nms_Scoreboard__init_($this) { - $this.$scoreObjectives = ju_HashMap__init_1(16, 0.75); - $this.$field_96543_b = ju_HashMap__init_1(16, 0.75); - $this.$field_96544_c = ju_HashMap__init_1(16, 0.75); - $this.$field_96541_d = $rt_createArray(nms_ScoreObjective, 3); - $this.$field_96542_e = ju_HashMap__init_1(16, 0.75); - $this.$teamMemberships = ju_HashMap__init_1(16, 0.75); -} -$java.nms_Scoreboard_getObjective = function($this, $par1Str) { - var var$2, var$3; - var$2 = $this.$scoreObjectives; - if ($par1Str !== null) { - var$3 = jl_String_hashCode($par1Str); - $par1Str = ju_HashMap_findNonNullKeyEntry(var$2, $par1Str, var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Str = var$2.$elementData.data[0]; - while ($par1Str !== null && $par1Str.$key !== null) { - $par1Str = $par1Str.$next1; - } - } - return $par1Str === null ? null : $par1Str.$value0; -}; -$java.nms_Scoreboard_func_96535_a = function($this, $par1Str, $par2ScoreObjectiveCriteria) { - var $var3, var$4, $var4; - $var3 = $this.$scoreObjectives; - if ($par1Str !== null) { - var$4 = jl_String_hashCode($par1Str); - $var4 = ju_HashMap_findNonNullKeyEntry($var3, $par1Str, var$4 & ($var3.$elementData.data.length - 1 | 0), var$4); - } else { - $var4 = $var3.$elementData.data[0]; - while ($var4 !== null && $var4.$key !== null) { - $var4 = $var4.$next1; - } - } - if (($var4 === null ? null : $var4.$value0) !== null) { - $par2ScoreObjectiveCriteria = new jl_IllegalArgumentException; - $var3 = new jl_StringBuilder; - $var3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(2557)); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $par1Str); - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(2558)); - $par1Str = jl_String__init_0($var3.$buffer, 0, $var3.$length); - $par2ScoreObjectiveCriteria.$suppressionEnabled = 1; - $par2ScoreObjectiveCriteria.$writableStackTrace = 1; - $par2ScoreObjectiveCriteria.$message = $par1Str; - $rt_throw($par2ScoreObjectiveCriteria); - } - $var3 = new nms_ScoreObjective; - $var3.$theScoreboard = $this; - $var3.$name12 = $par1Str; - $var3.$objectiveCriteria = $par2ScoreObjectiveCriteria; - $var3.$displayName = $par1Str; - $var4 = $this.$field_96543_b; - if ($par2ScoreObjectiveCriteria !== null) { - var$4 = jl_Object_identity($par2ScoreObjectiveCriteria); - $var4 = ju_HashMap_findNonNullKeyEntry($var4, $par2ScoreObjectiveCriteria, var$4 & ($var4.$elementData.data.length - 1 | 0), var$4); - } else { - $var4 = $var4.$elementData.data[0]; - while ($var4 !== null && $var4.$key !== null) { - $var4 = $var4.$next1; - } - } - $var4 = $var4 === null ? null : $var4.$value0; - if ($var4 === null) { - $var4 = new ju_ArrayList; - $var4.$array1 = $rt_createArray(jl_Object, 10); - ju_HashMap_putImpl($this.$field_96543_b, $par2ScoreObjectiveCriteria, $var4); - } - $var4.$add($var3); - ju_HashMap_putImpl($this.$scoreObjectives, $par1Str, $var3); - return $var3; -}; -function nms_Scoreboard_func_96520_a($this, $par1ScoreObjectiveCriteria) { - var $var2, var$3; - $var2 = $this.$field_96543_b; - if ($par1ScoreObjectiveCriteria !== null) { - var$3 = jl_Object_identity($par1ScoreObjectiveCriteria); - $par1ScoreObjectiveCriteria = ju_HashMap_findNonNullKeyEntry($var2, $par1ScoreObjectiveCriteria, var$3 & ($var2.$elementData.data.length - 1 | 0), var$3); - } else { - $par1ScoreObjectiveCriteria = $var2.$elementData.data[0]; - while ($par1ScoreObjectiveCriteria !== null && $par1ScoreObjectiveCriteria.$key !== null) { - $par1ScoreObjectiveCriteria = $par1ScoreObjectiveCriteria.$next1; - } - } - $var2 = $par1ScoreObjectiveCriteria === null ? null : $par1ScoreObjectiveCriteria.$value0; - if ($var2 !== null) - $par1ScoreObjectiveCriteria = ju_ArrayList__init_3($var2); - else { - $par1ScoreObjectiveCriteria = new ju_ArrayList; - $par1ScoreObjectiveCriteria.$array1 = $rt_createArray(jl_Object, 10); - } - return $par1ScoreObjectiveCriteria; -} -function nms_Scoreboard_func_96529_a($this, $par1Str, $par2ScoreObjective) { - var $var4, var$4, $var3, var$6; - $var4 = $this.$field_96544_c; - if ($par1Str !== null) { - var$4 = jl_String_hashCode($par1Str); - $var4 = ju_HashMap_findNonNullKeyEntry($var4, $par1Str, var$4 & ($var4.$elementData.data.length - 1 | 0), var$4); - } else { - $var4 = $var4.$elementData.data[0]; - while ($var4 !== null && $var4.$key !== null) { - $var4 = $var4.$next1; - } - } - $var3 = $var4 === null ? null : $var4.$value0; - if ($var3 === null) { - $var3 = ju_HashMap__init_1(16, 0.75); - ju_HashMap_putImpl($this.$field_96544_c, $par1Str, $var3); - } - var$6 = $var3; - if ($par2ScoreObjective !== null) { - var$4 = jl_Object_identity($par2ScoreObjective); - $var4 = ju_HashMap_findNonNullKeyEntry(var$6, $par2ScoreObjective, var$4 & (var$6.$elementData.data.length - 1 | 0), var$4); - } else { - $var4 = var$6.$elementData.data[0]; - while ($var4 !== null && $var4.$key !== null) { - $var4 = $var4.$next1; - } - } - $var4 = $var4 === null ? null : $var4.$value0; - if ($var4 === null) { - $var4 = new nms_Score; - $var4.$theScoreboard1 = $this; - $var4.$field_96657_c = $par2ScoreObjective; - $var4.$field_96654_d = $par1Str; - ju_HashMap_putImpl(var$6, $par2ScoreObjective, $var4); - } - return $var4; -} -function nms_Scoreboard_func_96534_i($this, $par1ScoreObjective) { - var $var2, $var3, $var4, var$5, $var5; - $var2 = new ju_ArrayList; - $var2.$array1 = $rt_createArray(jl_Object, 10); - $var3 = $this.$field_96544_c; - if ($var3.$cachedValues === null) { - $var4 = new ju_HashMap$2; - $var4.$this$00 = $var3; - $var3.$cachedValues = $var4; - } - $var3 = $var3.$cachedValues.$iterator(); - while ($var3.$hasNext()) { - $var4 = $var3.$next(); - if ($par1ScoreObjective !== null) { - var$5 = jl_Object_identity($par1ScoreObjective); - $var4 = ju_HashMap_findNonNullKeyEntry($var4, $par1ScoreObjective, var$5 & ($var4.$elementData.data.length - 1 | 0), var$5); - } else { - $var4 = $var4.$elementData.data[0]; - while ($var4 !== null && $var4.$key !== null) { - $var4 = $var4.$next1; - } - } - $var5 = $var4 === null ? null : $var4.$value0; - if ($var5 !== null) - ju_ArrayList_add($var2, $var5); - } - ju_Collections_sort0($var2, $java.nms_Score_field_96658_a); - return $var2; -} -$java.nms_Scoreboard_func_96515_c = function($this, $par1Str) { - $par1Str = ju_HashMap_removeEntry($this.$field_96544_c, $par1Str); -}; -$java.nms_Scoreboard_func_96519_k = function($this, $par1ScoreObjective) { - var $var2, $var5, $var3, var$5; - ju_HashMap_removeEntry($this.$scoreObjectives, $par1ScoreObjective.$name12); - $var2 = 0; - $var5 = null; - while ($var2 < 3) { - if ($this.$field_96541_d.data[$var2] === $par1ScoreObjective) - $this.$field_96541_d.data[$var2] = $var5; - $var2 = $var2 + 1 | 0; - } - $var5 = $this.$field_96543_b; - $var3 = $par1ScoreObjective.$objectiveCriteria; - if ($var3 !== null) { - var$5 = jl_Object_identity($var3); - $var5 = ju_HashMap_findNonNullKeyEntry($var5, $var3, var$5 & ($var5.$elementData.data.length - 1 | 0), var$5); - } else { - $var5 = $var5.$elementData.data[0]; - while ($var5 !== null && $var5.$key !== null) { - $var5 = $var5.$next1; - } - } - $var5 = $var5 === null ? null : $var5.$value0; - if ($var5 !== null) - $var5.$remove2($par1ScoreObjective); - $var5 = $this.$field_96544_c; - if ($var5.$cachedValues === null) { - $var3 = new ju_HashMap$2; - $var3.$this$00 = $var5; - $var5.$cachedValues = $var3; - } - $var3 = $var5.$cachedValues.$iterator(); - while ($var3.$hasNext()) { - ju_HashMap_removeEntry($var3.$next(), $par1ScoreObjective); - } -}; -$java.nms_Scoreboard_func_96530_a = function($this, $par1, $par2ScoreObjective) { - $this.$field_96541_d.data[$par1] = $par2ScoreObjective; -}; -function nms_Scoreboard_func_96539_a($this, $par1) { - return $this.$field_96541_d.data[$par1]; -} -$java.nms_Scoreboard_func_96508_e = function($this, $par1Str) { - var var$2, var$3; - var$2 = $this.$field_96542_e; - if ($par1Str !== null) { - var$3 = jl_String_hashCode($par1Str); - $par1Str = ju_HashMap_findNonNullKeyEntry(var$2, $par1Str, var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Str = var$2.$elementData.data[0]; - while ($par1Str !== null && $par1Str.$key !== null) { - $par1Str = $par1Str.$next1; - } - } - return $par1Str === null ? null : $par1Str.$value0; -}; -$java.nms_Scoreboard_func_96527_f = function($this, $par1Str) { - var $var2, var$3, var$4; - $var2 = $this.$field_96542_e; - if ($par1Str !== null) { - var$3 = jl_String_hashCode($par1Str); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, $par1Str, var$3 & ($var2.$elementData.data.length - 1 | 0), var$3); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - if (($var2 === null ? null : $var2.$value0) === null) { - $var2 = $java.nms_ScorePlayerTeam__init_($this, $par1Str); - ju_HashMap_putImpl($this.$field_96542_e, $par1Str, $var2); - return $var2; - } - $var2 = new jl_IllegalArgumentException; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2557)); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $par1Str); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(2558)); - $par1Str = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $var2.$message = $par1Str; - $rt_throw($var2); -}; -$java.nms_Scoreboard_func_96511_d = function($this, $par1ScorePlayerTeam) { - var $var3, $var2; - ju_HashMap_removeEntry($this.$field_96542_e, $par1ScorePlayerTeam.$field_96675_b); - $par1ScorePlayerTeam = $par1ScorePlayerTeam.$membershipSet.$backingMap; - if ($par1ScorePlayerTeam.$cachedKeySet === null) { - $var3 = new ju_HashMap$1; - $var3.$this$01 = $par1ScorePlayerTeam; - $par1ScorePlayerTeam.$cachedKeySet = $var3; - } - $var2 = $par1ScorePlayerTeam.$cachedKeySet.$iterator(); - while ($var2.$hasNext()) { - $var3 = $var2.$next(); - ju_HashMap_removeEntry($this.$teamMemberships, $var3); - } -}; -$java.nms_Scoreboard_func_96521_a = function($this, $par1Str, $par2ScorePlayerTeam) { - var var$3; - if (nms_Scoreboard_getPlayersTeam($this, $par1Str) !== null) { - var$3 = nms_Scoreboard_getPlayersTeam($this, $par1Str); - if (var$3 !== null) - $java.nms_Scoreboard_removePlayerFromTeam($this, $par1Str, var$3); - } - ju_HashMap_putImpl($this.$teamMemberships, $par1Str, $par2ScorePlayerTeam); - var$3 = $par2ScorePlayerTeam.$membershipSet; - ju_HashMap_putImpl(var$3.$backingMap, $par1Str, var$3); -}; -$java.nms_Scoreboard_func_96524_g = function($this, $par1Str) { - var $var2; - $var2 = nms_Scoreboard_getPlayersTeam($this, $par1Str); - if ($var2 === null) - return 0; - $java.nms_Scoreboard_removePlayerFromTeam($this, $par1Str, $var2); - return 1; -}; -$java.nms_Scoreboard_removePlayerFromTeam = function($this, $par1Str, $par2ScorePlayerTeam) { - var var$3; - if (nms_Scoreboard_getPlayersTeam($this, $par1Str) !== $par2ScorePlayerTeam) { - var$3 = new jl_IllegalStateException; - $par1Str = new jl_StringBuilder; - $par1Str.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1Str, $par1Str.$length, $rt_s(2559)); - $par2ScorePlayerTeam = $par2ScorePlayerTeam.$field_96675_b; - jl_AbstractStringBuilder_insert($par1Str, $par1Str.$length, $par2ScorePlayerTeam); - jl_AbstractStringBuilder_insert($par1Str, $par1Str.$length, $rt_s(2560)); - $par2ScorePlayerTeam = jl_String__init_0($par1Str.$buffer, 0, $par1Str.$length); - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $par2ScorePlayerTeam; - $rt_throw(var$3); - } - ju_HashMap_removeEntry($this.$teamMemberships, $par1Str); - $par1Str = ju_HashMap_removeEntry($par2ScorePlayerTeam.$membershipSet.$backingMap, $par1Str); -}; -function nms_Scoreboard_getPlayersTeam($this, $par1Str) { - var var$2, var$3; - var$2 = $this.$teamMemberships; - if ($par1Str !== null) { - var$3 = jl_String_hashCode($par1Str); - $par1Str = ju_HashMap_findNonNullKeyEntry(var$2, $par1Str, var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Str = var$2.$elementData.data[0]; - while ($par1Str !== null && $par1Str.$key !== null) { - $par1Str = $par1Str.$next1; - } - } - return $par1Str === null ? null : $par1Str.$value0; -} -$java.nms_Scoreboard_func_96522_a = function($this, $par1ScoreObjective) { - return; -}; -$java.nms_Scoreboard_func_96532_b = function($this, $par1ScoreObjective) { - return; -}; -$java.nms_Scoreboard_func_96533_c = function($this, $par1ScoreObjective) { - return; -}; -$java.nms_Scoreboard_func_96536_a = function($this, $par1Score) { - return; -}; -$java.nms_Scoreboard_func_96516_a = function($this, $par1Str) { - return; -}; -$java.nms_Scoreboard_func_96523_a = function($this, $par1ScorePlayerTeam) { - return; -}; -$java.nms_Scoreboard_func_96538_b = function($this, $par1ScorePlayerTeam) { - return; -}; -$java.nms_Scoreboard_func_96513_c = function($this, $par1ScorePlayerTeam) { - return; -}; -function nms_ScoreObjective() { - var a = this; jl_Object.call(a); - a.$theScoreboard = null; - a.$name12 = null; - a.$objectiveCriteria = null; - a.$displayName = null; -} -function nms_ScoreObjective_getScoreboard($this) { - return $this.$theScoreboard; -} -$java.nms_ScoreObjective_getName = function($this) { - return $this.$name12; -}; -$java.nms_ScoreObjective_getCriteria = function($this) { - return $this.$objectiveCriteria; -}; -function nms_ScoreObjective_getDisplayName($this) { - return $this.$displayName; -} -$java.nms_ScoreObjective_setDisplayName = function($this, $par1Str) { - $this.$displayName = $par1Str; -}; -function nms_Score() { - var a = this; jl_Object.call(a); - a.$theScoreboard1 = null; - a.$field_96657_c = null; - a.$field_96654_d = null; - a.$field_96655_e = 0; -} -$java.nms_Score_field_96658_a = null; -$java.nms_Score_func_96649_a = function($this, $par1) { - var var$2; - $par1 = $this.$field_96655_e + $par1 | 0; - var$2 = $this.$field_96655_e; - $this.$field_96655_e = $par1; -}; -function nms_Score_func_96648_a($this) { - var var$1, var$2; - var$1 = $this.$field_96655_e + 1 | 0; - var$2 = $this.$field_96655_e; - $this.$field_96655_e = var$1; -} -function nms_Score_func_96652_c($this) { - return $this.$field_96655_e; -} -$java.nms_Score_func_96647_c = function($this, $par1) { - var $var2; - $var2 = $this.$field_96655_e; - $this.$field_96655_e = $par1; -}; -$java.nms_Score_func_96653_e = function($this) { - return $this.$field_96654_d; -}; -$java.nms_Score_func_96650_f = function($this) { - return $this.$theScoreboard1; -}; -function nms_Score__clinit_() { - $java.nms_Score_field_96658_a = new nms_ScoreComparator; -} -function nms_Packet19EntityAction() { - var a = this; nms_Packet.call(a); - a.$entityId0 = 0; - a.$state = 0; -} -$java.nms_Packet19EntityAction__init_ = function() { - var var_0 = new nms_Packet19EntityAction(); - nms_Packet19EntityAction__init_(var_0); - return var_0; -}; -function nms_Packet19EntityAction__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet19EntityAction_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId0 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$state = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet19EntityAction_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$entityId0); - var$2 = $this.$state; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet19EntityAction_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet19EntityAction_getPacketSize = function($this) { - return 5; -}; -function ju_GregorianCalendar() { - var a = this; ju_Calendar.call(a); - a.$gregorianCutover = Long_ZERO; - a.$changeYear = 0; - a.$julianSkew = 0; - a.$isCached = 0; - a.$cachedFields = null; - a.$nextMidnightMillis = Long_ZERO; - a.$lastMidnightMillis = Long_ZERO; - a.$currentYearSkew = 0; - a.$lastYearSkew = 0; -} -$java.ju_GregorianCalendar_daysInMonth = null; -$java.ju_GregorianCalendar_daysInYear = null; -$java.ju_GregorianCalendar_maximums = null; -$java.ju_GregorianCalendar_minimums = null; -$java.ju_GregorianCalendar_leastMaximums = null; -$java.ju_GregorianCalendar__init_ = function() { - var var_0 = new ju_GregorianCalendar(); - ju_GregorianCalendar__init_(var_0); - return var_0; -}; -$java.ju_GregorianCalendar__init_0 = function(var_0, var_1) { - var var_2 = new ju_GregorianCalendar(); - ju_GregorianCalendar__init_0(var_2, var_0, var_1); - return var_2; -}; -function ju_GregorianCalendar__init_($this) { - var var$1; - var$1 = ju_Locale_defaultLocale; - ju_GregorianCalendar__init_0($this, ju_TimeZone_getDefault(), var$1); -} -function ju_GregorianCalendar__init_0($this, $timezone, $locale) { - var var$3, var$4; - $java.ju_Calendar__init_0($this, $timezone, $locale); - $this.$gregorianCutover = new Long(4184124416, 4294964450); - $this.$changeYear = 1582; - $this.$julianSkew = ((($this.$changeYear - 2000 | 0) / 400 | 0) + ((($this.$changeYear / 100 | 0) - ($this.$changeYear / 400 | 0) | 0) - 2 | 0) | 0) - (($this.$changeYear - 2000 | 0) / 100 | 0) | 0; - var$3 = $rt_createIntArray(10); - var$4 = var$3.data; - var$4[0] = 0; - var$4[1] = 0; - var$4[2] = 0; - var$4[3] = 0; - var$4[4] = 0; - var$4[5] = 0; - var$4[6] = 0; - var$4[7] = 0; - var$4[8] = 0; - var$4[9] = 0; - $this.$cachedFields = var$3; - $this.$currentYearSkew = 10; - ju_Calendar_setTimeInMillis($this, jl_System_currentTimeMillis()); -} -$java.ju_GregorianCalendar_add = function($this, $field, $value) { - var $multiplier, var$4, var$5, $days, $month; - if (!$value) - return; - if ($field >= 0 && $field < 15) { - $this.$isCached = 0; - if (!$field) { - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - if (!$this.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($this); - $this.$areFieldsSet = 1; - } - if ($this.$fields.data[0] != 1) { - if ($value <= 0) - return; - $java.ju_Calendar_set($this, 0, 1); - } else { - if ($value >= 0) - return; - $java.ju_Calendar_set($this, 0, 0); - } - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - if (!$this.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($this); - $this.$areFieldsSet = 1; - } - return; - } - if ($field != 1 && $field != 2) { - $multiplier = Long_ZERO; - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - a: { - switch ($field) { - case 3: - case 4: - case 8: - $multiplier = Long_fromInt(604800000); - break a; - case 5: - case 6: - case 7: - $multiplier = Long_fromInt(86400000); - break a; - case 9: - $multiplier = Long_fromInt(43200000); - break a; - case 10: - case 11: - $this.$time1 = Long_add($this.$time1, Long_mul(Long_fromInt($value), Long_fromInt(3600000))); - break a; - case 12: - $this.$time1 = Long_add($this.$time1, Long_mul(Long_fromInt($value), Long_fromInt(60000))); - break a; - case 13: - $this.$time1 = Long_add($this.$time1, Long_mul(Long_fromInt($value), Long_fromInt(1000))); - break a; - case 14: - $this.$time1 = Long_add($this.$time1, Long_fromInt($value)); - break a; - default: - } - } - if (Long_gt($multiplier, Long_ZERO)) { - var$4 = $this.$time1; - var$5 = $this.$zone; - $days = (var$5.$rawOffset + var$5.$diff | 0) + var$5.$underlyingZone.$getOffset(var$4) | 0; - $this.$time1 = Long_add($this.$time1, Long_mul(Long_fromInt($value), $multiplier)); - var$4 = $this.$time1; - var$5 = $this.$zone; - $value = (var$5.$rawOffset + var$5.$diff | 0) + var$5.$underlyingZone.$getOffset(var$4) | 0; - if ($value != $days) - $this.$time1 = Long_add($this.$time1, Long_fromInt($days - $value | 0)); - } - $this.$areFieldsSet = 0; - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - if (!$this.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($this); - $this.$areFieldsSet = 1; - } - return; - } - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - if (!$this.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($this); - $this.$areFieldsSet = 1; - } - if ($field == 2) { - $month = $this.$fields.data[2] + $value | 0; - if ($month >= 0) - $value = $month / 12 | 0; - else { - $value = ($month - 11 | 0) / 12 | 0; - $month = 12 + ($month % 12 | 0) | 0; - } - $java.ju_Calendar_set($this, 2, $month % 12 | 0); - } - $java.ju_Calendar_set($this, 1, $this.$fields.data[1] + $value | 0); - $days = $java.ju_GregorianCalendar_daysInMonth0($this, $java.ju_GregorianCalendar_isLeapYear($this, $this.$fields.data[1]), $this.$fields.data[2]); - if ($this.$fields.data[5] > $days) - $java.ju_Calendar_set($this, 5, $days); - if (!$this.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($this); - $this.$isTimeSet = 1; - } - if (!$this.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($this); - $this.$areFieldsSet = 1; - } - return; - } - var$5 = new jl_IllegalArgumentException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); -}; -$java.ju_GregorianCalendar_fullFieldsCalc = function($this, $timeVal, $millis, $zoneOffset) { - var $days, var$5, var$6, $dayOfYear, $month, $leapYear, $date, $dstOffset, var$12, $daysFromStart, $week; - $days = Long_div($timeVal, Long_fromInt(86400000)); - if ($millis < 0) { - $millis = $millis + 86400000 | 0; - $days = Long_sub($days, Long_fromInt(1)); - } - $millis = $millis + $zoneOffset | 0; - while ($millis < 0) { - $millis = $millis + 86400000 | 0; - $days = Long_sub($days, Long_fromInt(1)); - } - while ($millis >= 86400000) { - $millis = $millis - 86400000 | 0; - $days = Long_add($days, Long_fromInt(1)); - } - var$5 = Long_fromInt($zoneOffset); - var$6 = Long_add($timeVal, var$5); - $dayOfYear = $java.ju_GregorianCalendar_computeYearAndDay($this, $days, var$6); - $this.$fields.data[6] = $dayOfYear; - if ($this.$fields.data[1] == $this.$changeYear && Long_le($this.$gregorianCutover, var$6)) - $dayOfYear = $dayOfYear + $this.$currentYearSkew | 0; - $month = $dayOfYear / 32 | 0; - $leapYear = $java.ju_GregorianCalendar_isLeapYear($this, $this.$fields.data[1]); - $date = $dayOfYear - $java.ju_GregorianCalendar_daysInYear0($this, $leapYear, $month) | 0; - if ($date > $java.ju_GregorianCalendar_daysInMonth0($this, $leapYear, $month)) { - $date = $date - $java.ju_GregorianCalendar_daysInMonth0($this, $leapYear, $month) | 0; - $month = $month + 1 | 0; - } - $this.$fields.data[7] = $java.ju_GregorianCalendar_mod7($this, Long_sub($days, Long_fromInt(3))) + 1 | 0; - $dstOffset = $java.ju_GregorianCalendar_getTimeZoneOffset($this, $timeVal); - if ($this.$fields.data[1] > 0) - $dstOffset = $dstOffset - $zoneOffset | 0; - $this.$fields.data[16] = $dstOffset; - if (!$dstOffset) - var$6 = $days; - else { - $millis = $millis + $dstOffset | 0; - if ($millis < 0) { - $millis = $millis + 86400000 | 0; - var$6 = Long_sub($days, Long_fromInt(1)); - } else if ($millis < 86400000) - var$6 = $days; - else { - $millis = $millis - 86400000 | 0; - var$6 = Long_add($days, Long_fromInt(1)); - } - if (Long_ne($days, var$6)) { - $timeVal = Long_add(Long_sub($timeVal, var$5), Long_fromInt($dstOffset)); - $zoneOffset = $java.ju_GregorianCalendar_computeYearAndDay($this, var$6, $timeVal); - $this.$fields.data[6] = $zoneOffset; - if ($this.$fields.data[1] == $this.$changeYear && Long_le($this.$gregorianCutover, $timeVal)) - $zoneOffset = $zoneOffset + $this.$currentYearSkew | 0; - $month = $zoneOffset / 32 | 0; - $leapYear = $java.ju_GregorianCalendar_isLeapYear($this, $this.$fields.data[1]); - $date = $zoneOffset - $java.ju_GregorianCalendar_daysInYear0($this, $leapYear, $month) | 0; - if ($date > $java.ju_GregorianCalendar_daysInMonth0($this, $leapYear, $month)) { - $date = $date - $java.ju_GregorianCalendar_daysInMonth0($this, $leapYear, $month) | 0; - $month = $month + 1 | 0; - } - $this.$fields.data[7] = $java.ju_GregorianCalendar_mod7($this, Long_sub(var$6, Long_fromInt(3))) + 1 | 0; - } - } - $this.$fields.data[14] = $millis % 1000 | 0; - $millis = $millis / 1000 | 0; - $this.$fields.data[13] = $millis % 60 | 0; - $millis = $millis / 60 | 0; - $this.$fields.data[12] = $millis % 60 | 0; - $this.$fields.data[11] = ($millis / 60 | 0) % 24 | 0; - var$12 = $this.$fields; - var$12.data[9] = $this.$fields.data[11] <= 11 ? 0 : 1; - $this.$fields.data[10] = $this.$fields.data[11] % 12 | 0; - if ($this.$fields.data[1] > 0) - $this.$fields.data[0] = 1; - else { - $this.$fields.data[0] = 0; - $this.$fields.data[1] = -$this.$fields.data[1] + 1 | 0; - } - $this.$fields.data[2] = $month; - $this.$fields.data[5] = $date; - var$12 = $this.$fields.data; - $zoneOffset = $date - 1 | 0; - var$12[8] = ($zoneOffset / 7 | 0) + 1 | 0; - $this.$fields.data[4] = (($zoneOffset + $java.ju_GregorianCalendar_mod7($this, Long_sub(Long_sub(Long_sub(var$6, Long_fromInt($date)), Long_fromInt(2)), Long_fromInt($java.ju_Calendar_getFirstDayOfWeek($this) - 1 | 0))) | 0) / 7 | 0) + 1 | 0; - $daysFromStart = $java.ju_GregorianCalendar_mod7($this, Long_sub(Long_sub(Long_sub(var$6, Long_fromInt(3)), Long_fromInt($this.$fields.data[6] - 1 | 0)), Long_fromInt($java.ju_Calendar_getFirstDayOfWeek($this) - 1 | 0))); - $week = ((($this.$fields.data[6] - 1 | 0) + $daysFromStart | 0) / 7 | 0) + ((7 - $daysFromStart | 0) < $java.ju_Calendar_getMinimalDaysInFirstWeek($this) ? 0 : 1) | 0; - if (!$week) { - var$12 = $this.$fields; - $month = !$java.ju_GregorianCalendar_isLeapYear($this, $this.$fields.data[1] - 1 | 0) ? 1 : 2; - var$12.data[3] = (7 - $java.ju_GregorianCalendar_mod7($this, Long_fromInt($daysFromStart - $month | 0)) | 0) < $java.ju_Calendar_getMinimalDaysInFirstWeek($this) ? 52 : 53; - } else { - $millis = $this.$fields.data[6]; - $zoneOffset = !$leapYear ? 366 : 367; - $month = !$leapYear ? 1 : 2; - if ($millis < ($zoneOffset - $java.ju_GregorianCalendar_mod7($this, Long_fromInt($daysFromStart + $month | 0)) | 0)) - $this.$fields.data[3] = $week; - else { - var$12 = $this.$fields; - $month = !$leapYear ? 1 : 2; - if ((7 - $java.ju_GregorianCalendar_mod7($this, Long_fromInt($daysFromStart + $month | 0)) | 0) >= $java.ju_Calendar_getMinimalDaysInFirstWeek($this)) - $week = 1; - var$12.data[3] = $week; - } - } -}; -$java.ju_GregorianCalendar_cachedFieldsCheckAndGet = function($this, $timeVal, $newTimeMillis, $newTimeMillisAdjusted, $millis, $zoneOffset) { - var $dstOffset; - a: { - b: { - $dstOffset = $this.$fields.data[16]; - if ($this.$isCached && Long_lt($newTimeMillis, $this.$nextMidnightMillis) && Long_gt($newTimeMillis, $this.$lastMidnightMillis) && $this.$cachedFields.data[4] == $zoneOffset && !(!$dstOffset && Long_ge($newTimeMillisAdjusted, $this.$nextMidnightMillis))) { - if (!$dstOffset) - break b; - if (Long_gt($newTimeMillisAdjusted, $this.$lastMidnightMillis)) - break b; - } - $java.ju_GregorianCalendar_fullFieldsCalc($this, $timeVal, $millis, $zoneOffset); - $this.$isCached = 0; - break a; - } - $this.$fields.data[1] = $this.$cachedFields.data[0]; - $this.$fields.data[2] = $this.$cachedFields.data[1]; - $this.$fields.data[5] = $this.$cachedFields.data[2]; - $this.$fields.data[7] = $this.$cachedFields.data[3]; - $this.$fields.data[0] = $this.$cachedFields.data[5]; - $this.$fields.data[3] = $this.$cachedFields.data[6]; - $this.$fields.data[4] = $this.$cachedFields.data[7]; - $this.$fields.data[6] = $this.$cachedFields.data[8]; - $this.$fields.data[8] = $this.$cachedFields.data[9]; - } -}; -$java.ju_GregorianCalendar_getTimeZoneOffset = function($this, $localTime) { - var var$2; - var$2 = $this.$zone; - return (var$2.$rawOffset + var$2.$diff | 0) + var$2.$underlyingZone.$getOffset($localTime) | 0; -}; -$java.ju_GregorianCalendar_computeFields = function($this) { - var $zoneOffset, $millis, $dstOffset, $offset, $newTime, $i, var$7, var$8; - $zoneOffset = $java.ju_GregorianCalendar_getTimeZoneOffset($this, $this.$time1); - if (!$this.$isSet.data[15]) - $this.$fields.data[15] = $zoneOffset; - $millis = Long_rem($this.$time1, Long_fromInt(86400000)).lo; - $dstOffset = $this.$fields.data[16]; - $offset = $zoneOffset + $dstOffset | 0; - $newTime = Long_add($this.$time1, Long_fromInt($offset)); - if (Long_gt($this.$time1, Long_ZERO) && Long_lt($newTime, Long_ZERO) && $offset > 0) - $newTime = new Long(4294967295, 2147483647); - else if (Long_lt($this.$time1, Long_ZERO) && Long_gt($newTime, Long_ZERO) && $offset < 0) - $newTime = new Long(0, 2147483648); - if (!$this.$isCached) - $java.ju_GregorianCalendar_fullFieldsCalc($this, $this.$time1, $millis, $zoneOffset); - else { - $offset = (($millis >= 0 ? $millis : $millis + 86400000 | 0) + $zoneOffset | 0) + $dstOffset | 0; - if ($offset < 0) - $offset = $offset + 86400000 | 0; - else if ($offset >= 86400000) - $offset = $offset - 86400000 | 0; - $this.$fields.data[14] = $offset % 1000 | 0; - $offset = $offset / 1000 | 0; - $this.$fields.data[13] = $offset % 60 | 0; - $i = $offset / 60 | 0; - $this.$fields.data[12] = $i % 60 | 0; - $this.$fields.data[11] = ($i / 60 | 0) % 24 | 0; - var$7 = $this.$fields; - var$7.data[9] = $this.$fields.data[11] <= 11 ? 0 : 1; - $this.$fields.data[10] = $this.$fields.data[11] % 12 | 0; - $offset = Long_compare($newTime, Long_ZERO); - var$8 = $offset > 0 && $offset < 0 && !$dstOffset ? new Long(4294967295, 2147483647) : $offset >= 0 ? $newTime : $offset <= 0 ? $newTime : $dstOffset ? new Long(0, 2147483648) : $newTime; - $java.ju_GregorianCalendar_cachedFieldsCheckAndGet($this, $this.$time1, $newTime, var$8, $millis, $zoneOffset); - } - $i = 0; - while ($i < 17) { - $this.$isSet.data[$i] = 1; - $i = $i + 1 | 0; - } - if (!$this.$isCached && Long_ne($newTime, new Long(4294967295, 2147483647)) && Long_ne($newTime, new Long(0, 2147483648))) { - $this.$cachedFields.data[0] = $this.$fields.data[1]; - $this.$cachedFields.data[1] = $this.$fields.data[2]; - $this.$cachedFields.data[2] = $this.$fields.data[5]; - $this.$cachedFields.data[3] = $this.$fields.data[7]; - $this.$cachedFields.data[4] = $zoneOffset; - $this.$cachedFields.data[5] = $this.$fields.data[0]; - $this.$cachedFields.data[6] = $this.$fields.data[3]; - $this.$cachedFields.data[7] = $this.$fields.data[4]; - $this.$cachedFields.data[8] = $this.$fields.data[6]; - $this.$cachedFields.data[9] = $this.$fields.data[8]; - $this.$nextMidnightMillis = Long_add($newTime, Long_fromInt(((0 + ((((23 - $this.$fields.data[11] | 0) * 60 | 0) * 60 | 0) * 1000 | 0) | 0) + (((59 - $this.$fields.data[12] | 0) * 60 | 0) * 1000 | 0) | 0) + ((59 - $this.$fields.data[13] | 0) * 1000 | 0) | 0)); - $this.$lastMidnightMillis = Long_sub($newTime, Long_fromInt((((($this.$fields.data[11] * 60 | 0) * 60 | 0) * 1000 | 0) + (($this.$fields.data[12] * 60 | 0) * 1000 | 0) | 0) + ($this.$fields.data[13] * 1000 | 0) | 0)); - $this.$isCached = 1; - } -}; -$java.ju_GregorianCalendar_computeTime = function($this) { - var $hour, $timeVal, $year, $weekMonthSet, $useMonth, $useWeekYear, $days, $dayOfWeek, $skew, $month, $leapYear, $useDate; - a: { - b: { - c: { - d: { - e: { - if (!$java.ju_Calendar_isLenient($this)) { - f: { - if ($this.$isSet.data[11]) { - if ($this.$fields.data[11] >= 0 && $this.$fields.data[11] <= 23) - break f; - $rt_throw(jl_IllegalArgumentException__init_0()); - } - if ($this.$isSet.data[10]) { - if ($this.$fields.data[10] < 0) - break a; - if ($this.$fields.data[10] > 11) - break a; - } - } - if ($this.$isSet.data[12] && !($this.$fields.data[12] >= 0 && $this.$fields.data[12] <= 59)) - $rt_throw(jl_IllegalArgumentException__init_0()); - if ($this.$isSet.data[13]) { - if ($this.$fields.data[13] < 0) - break b; - if ($this.$fields.data[13] > 59) - break b; - } - if ($this.$isSet.data[14]) { - if ($this.$fields.data[14] < 0) - break c; - if ($this.$fields.data[14] > 999) - break c; - } - if ($this.$isSet.data[3] && !($this.$fields.data[3] >= 1 && $this.$fields.data[3] <= 53)) - $rt_throw(jl_IllegalArgumentException__init_0()); - if ($this.$isSet.data[7] && !($this.$fields.data[7] >= 1 && $this.$fields.data[7] <= 7)) - $rt_throw(jl_IllegalArgumentException__init_0()); - if ($this.$isSet.data[8] && !($this.$fields.data[8] >= 1 && $this.$fields.data[8] <= 6)) - $rt_throw(jl_IllegalArgumentException__init_0()); - if ($this.$isSet.data[4]) { - if ($this.$fields.data[4] < 1) - break d; - if ($this.$fields.data[4] > 6) - break d; - } - if ($this.$isSet.data[9] && $this.$fields.data[9] && $this.$fields.data[9] != 1) - $rt_throw(jl_IllegalArgumentException__init_0()); - if ($this.$isSet.data[10] && !($this.$fields.data[10] >= 0 && $this.$fields.data[10] <= 11)) - $rt_throw(jl_IllegalArgumentException__init_0()); - if ($this.$isSet.data[1]) { - if ($this.$isSet.data[0] && !$this.$fields.data[0] && !($this.$fields.data[1] >= 1 && $this.$fields.data[1] <= 292269054)) - $rt_throw(jl_IllegalArgumentException__init_0()); - if (!($this.$fields.data[1] >= 1 && $this.$fields.data[1] <= 292278994)) - $rt_throw(jl_IllegalArgumentException__init_0()); - } - if ($this.$isSet.data[2]) { - if ($this.$fields.data[2] < 0) - break e; - if ($this.$fields.data[2] > 11) - break e; - } - } - $hour = Long_ZERO; - if ($this.$isSet.data[11] && $this.$lastTimeFieldSet != 10) - $hour = Long_fromInt($this.$fields.data[11]); - else if ($this.$isSet.data[10]) - $hour = Long_fromInt(($this.$fields.data[9] * 12 | 0) + $this.$fields.data[10] | 0); - $timeVal = Long_mul($hour, Long_fromInt(3600000)); - if ($this.$isSet.data[12]) - $timeVal = Long_add($timeVal, Long_mul(Long_fromInt($this.$fields.data[12]), Long_fromInt(60000))); - if ($this.$isSet.data[13]) - $timeVal = Long_add($timeVal, Long_mul(Long_fromInt($this.$fields.data[13]), Long_fromInt(1000))); - if ($this.$isSet.data[14]) - $timeVal = Long_add($timeVal, Long_fromInt($this.$fields.data[14])); - $year = !$this.$isSet.data[1] ? 1970 : $this.$fields.data[1]; - if ($this.$isSet.data[0]) { - if ($this.$fields.data[0] && $this.$fields.data[0] != 1) - $rt_throw(jl_IllegalArgumentException__init_0()); - if (!$this.$fields.data[0]) - $year = 1 - $year | 0; - } - $weekMonthSet = !$this.$isSet.data[4] && !$this.$isSet.data[8] ? 0 : 1; - $useMonth = !(!$this.$isSet.data[5] && !$this.$isSet.data[2] && !$weekMonthSet) && $this.$lastDateFieldSet != 6 ? 1 : 0; - if ($useMonth && !($this.$lastDateFieldSet != 7 && $this.$lastDateFieldSet != 3)) { - if ($this.$isSet.data[3] && $this.$isSet.data[7]) - $useMonth = $this.$lastDateFieldSet != 3 && $weekMonthSet && $this.$isSet.data[7] ? 1 : 0; - else if ($this.$isSet.data[6]) - $useMonth = $this.$isSet.data[5] && $this.$isSet.data[2] ? 1 : 0; - } - if (!$useMonth) { - $useWeekYear = $this.$isSet.data[3] && $this.$lastDateFieldSet != 6 ? 1 : 0; - if ($useWeekYear && $this.$isSet.data[6]) - $useWeekYear = $this.$isSet.data[7]; - $days = $java.ju_GregorianCalendar_daysFromBaseYear($this, $year); - if ($useWeekYear) { - $dayOfWeek = !$this.$isSet.data[7] ? $java.ju_Calendar_getFirstDayOfWeek($this) - 1 | 0 : $this.$fields.data[7] - 1 | 0; - $hour = Long_sub($days, Long_fromInt(3)); - $skew = $java.ju_GregorianCalendar_mod7($this, Long_sub($hour, Long_fromInt($java.ju_Calendar_getFirstDayOfWeek($this) - 1 | 0))); - $days = Long_add($days, Long_fromInt(((($this.$fields.data[3] - 1 | 0) * 7 | 0) + $java.ju_GregorianCalendar_mod7($this, Long_sub(Long_fromInt($skew + $dayOfWeek | 0), $hour)) | 0) - $skew | 0)); - if ((7 - $skew | 0) < $java.ju_Calendar_getMinimalDaysInFirstWeek($this)) - $days = Long_add($days, Long_fromInt(7)); - } else if ($this.$isSet.data[6]) { - if (!$java.ju_Calendar_isLenient($this) && !($this.$fields.data[6] >= 1 && $this.$fields.data[6] <= (365 + (!$java.ju_GregorianCalendar_isLeapYear($this, $year) ? 0 : 1) | 0))) - $rt_throw(jl_IllegalArgumentException__init_0()); - $days = Long_add($days, Long_fromInt($this.$fields.data[6] - 1 | 0)); - } else if ($this.$isSet.data[7]) - $days = Long_add($days, Long_fromInt($java.ju_GregorianCalendar_mod7($this, Long_sub(Long_fromInt($this.$fields.data[7] - 1 | 0), Long_sub($days, Long_fromInt(3)))))); - } else { - $month = $this.$fields.data[2]; - $year = $year + ($month / 12 | 0) | 0; - $month = $month % 12 | 0; - if ($month < 0) { - $year = $year + (-1) | 0; - $month = $month + 12 | 0; - } - $leapYear = $java.ju_GregorianCalendar_isLeapYear($this, $year); - $days = Long_add($java.ju_GregorianCalendar_daysFromBaseYear($this, $year), Long_fromInt($java.ju_GregorianCalendar_daysInYear0($this, $leapYear, $month))); - $useDate = $this.$isSet.data[5]; - if ($useDate && !($this.$lastDateFieldSet != 7 && $this.$lastDateFieldSet != 4 && $this.$lastDateFieldSet != 8)) - $useDate = $this.$isSet.data[7] && $weekMonthSet ? 0 : 1; - if ($useDate) { - if (!$java.ju_Calendar_isLenient($this) && !($this.$fields.data[5] >= 1 && $this.$fields.data[5] <= $java.ju_GregorianCalendar_daysInMonth0($this, $leapYear, $month))) - $rt_throw(jl_IllegalArgumentException__init_0()); - $days = Long_add($days, Long_fromInt($this.$fields.data[5] - 1 | 0)); - } else { - $dayOfWeek = !$this.$isSet.data[7] ? $java.ju_Calendar_getFirstDayOfWeek($this) - 1 | 0 : $this.$fields.data[7] - 1 | 0; - if ($this.$isSet.data[4] && $this.$lastDateFieldSet != 8) { - $skew = $java.ju_GregorianCalendar_mod7($this, Long_sub(Long_sub($days, Long_fromInt(3)), Long_fromInt($java.ju_Calendar_getFirstDayOfWeek($this) - 1 | 0))); - $days = Long_add($days, Long_fromInt(((($this.$fields.data[4] - 1 | 0) * 7 | 0) + $java.ju_GregorianCalendar_mod7($this, Long_sub(Long_fromInt($skew + $dayOfWeek | 0), Long_sub($days, Long_fromInt(2)))) | 0) - $skew | 0)); - } else if ($this.$isSet.data[8]) - $days = $this.$fields.data[8] >= 0 ? Long_add($days, Long_fromInt($java.ju_GregorianCalendar_mod7($this, Long_sub(Long_fromInt($dayOfWeek), Long_sub($days, Long_fromInt(3)))) + (($this.$fields.data[8] - 1 | 0) * 7 | 0) | 0)) : Long_add($days, Long_fromInt(($java.ju_GregorianCalendar_daysInMonth0($this, $leapYear, $month) + $java.ju_GregorianCalendar_mod7($this, Long_sub(Long_fromInt($dayOfWeek), Long_sub(Long_add($days, Long_fromInt($java.ju_GregorianCalendar_daysInMonth0($this, - $leapYear, $month))), Long_fromInt(3)))) | 0) + ($this.$fields.data[8] * 7 | 0) | 0)); - else if ($this.$isSet.data[7]) { - $hour = Long_sub($days, Long_fromInt(3)); - $skew = $java.ju_GregorianCalendar_mod7($this, Long_sub($hour, Long_fromInt($java.ju_Calendar_getFirstDayOfWeek($this) - 1 | 0))); - $days = Long_add($days, Long_fromInt($java.ju_GregorianCalendar_mod7($this, Long_fromInt($java.ju_GregorianCalendar_mod7($this, Long_sub(Long_fromInt($skew + $dayOfWeek | 0), $hour)) - $skew | 0)))); - } - } - } - $this.$lastDateFieldSet = 0; - $hour = Long_add($timeVal, Long_mul($days, Long_fromInt(86400000))); - if ($year == $this.$changeYear && Long_ge($hour, Long_add($this.$gregorianCutover, Long_mul(Long_fromInt($java.ju_GregorianCalendar_julianError($this)), Long_fromInt(86400000))))) - $hour = Long_sub($hour, Long_mul(Long_fromInt($java.ju_GregorianCalendar_julianError($this)), Long_fromInt(86400000))); - $this.$time1 = Long_sub($hour, Long_fromInt($java.ju_GregorianCalendar_getTimeZoneOffset($this, $hour))); - return; - } - $rt_throw(jl_IllegalArgumentException__init_0()); - } - $rt_throw(jl_IllegalArgumentException__init_0()); - } - $rt_throw(jl_IllegalArgumentException__init_0()); - } - $rt_throw(jl_IllegalArgumentException__init_0()); - } - $rt_throw(jl_IllegalArgumentException__init_0()); -}; -$java.ju_GregorianCalendar_computeYearAndDay = function($this, $dayCount, $localTime) { - var $year, var$4; - $year = 1970; - $localTime = Long_ge($localTime, $this.$gregorianCutover) ? $dayCount : Long_sub($dayCount, Long_fromInt($this.$julianSkew)); - while (true) { - var$4 = Long_div($localTime, Long_fromInt(365)).lo; - if (!var$4) - break; - $year = $year + var$4 | 0; - $localTime = Long_sub($dayCount, $java.ju_GregorianCalendar_daysFromBaseYear($this, $year)); - } - if (Long_lt($localTime, Long_ZERO)) { - $year = $year - 1 | 0; - $localTime = Long_add($localTime, Long_fromInt($java.ju_GregorianCalendar_daysInYear1($this, $year))); - } - $this.$fields.data[1] = $year; - return $localTime.lo + 1 | 0; -}; -$java.ju_GregorianCalendar_daysFromBaseYear = function($this, $iyear) { - var $year, $days; - $year = Long_fromInt($iyear); - if (Long_lt($year, Long_fromInt(1970))) { - if (Long_le($year, Long_fromInt($this.$changeYear))) - return Long_add(Long_add(Long_mul(Long_sub($year, Long_fromInt(1970)), Long_fromInt(365)), Long_div(Long_sub($year, Long_fromInt(1972)), Long_fromInt(4))), Long_fromInt($this.$julianSkew)); - $days = Long_add(Long_mul(Long_sub($year, Long_fromInt(1970)), Long_fromInt(365)), Long_div(Long_sub($year, Long_fromInt(1972)), Long_fromInt(4))); - $year = Long_sub($year, Long_fromInt(2000)); - return Long_add(Long_sub($days, Long_div($year, Long_fromInt(100))), Long_div($year, Long_fromInt(400))); - } - $days = Long_add(Long_mul(Long_sub($year, Long_fromInt(1970)), Long_fromInt(365)), Long_div(Long_sub($year, Long_fromInt(1969)), Long_fromInt(4))); - return Long_gt($year, Long_fromInt($this.$changeYear)) ? Long_sub($days, Long_sub(Long_div(Long_sub($year, Long_fromInt(1901)), Long_fromInt(100)), Long_div(Long_sub($year, Long_fromInt(1601)), Long_fromInt(400)))) : Long_eq($year, Long_fromInt($this.$changeYear)) ? Long_add($days, Long_fromInt($this.$currentYearSkew)) : Long_ne($year, Long_fromInt($this.$changeYear - 1 | 0)) ? Long_add($days, Long_fromInt($this.$julianSkew)) : Long_add($days, Long_fromInt($this.$lastYearSkew)); -}; -$java.ju_GregorianCalendar_daysInMonth0 = function($this, $leapYear, $month) { - if ($leapYear && $month == 1) - return $java.ju_GregorianCalendar_daysInMonth.data[$month] + 1 | 0; - return $java.ju_GregorianCalendar_daysInMonth.data[$month]; -}; -$java.ju_GregorianCalendar_daysInYear1 = function($this, $year) { - var $daysInYear; - $daysInYear = !$java.ju_GregorianCalendar_isLeapYear($this, $year) ? 365 : 366; - if ($year == $this.$changeYear) - $daysInYear = $daysInYear - $this.$currentYearSkew | 0; - if ($year == ($this.$changeYear - 1 | 0)) - $daysInYear = $daysInYear - $this.$lastYearSkew | 0; - return $daysInYear; -}; -$java.ju_GregorianCalendar_daysInYear0 = function($this, $leapYear, $month) { - if ($leapYear && $month > 1) - return $java.ju_GregorianCalendar_daysInYear.data[$month] + 1 | 0; - return $java.ju_GregorianCalendar_daysInYear.data[$month]; -}; -$java.ju_GregorianCalendar_isLeapYear = function($this, $year) { - if ($year <= $this.$changeYear) - return $year % 4 | 0 ? 0 : 1; - a: { - b: { - if (!($year % 4 | 0)) { - if ($year % 100 | 0) - break b; - if (!($year % 400 | 0)) - break b; - } - $year = 0; - break a; - } - $year = 1; - } - return $year; -}; -$java.ju_GregorianCalendar_julianError = function($this) { - return (($this.$changeYear / 100 | 0) - ($this.$changeYear / 400 | 0) | 0) - 2 | 0; -}; -$java.ju_GregorianCalendar_mod7 = function($this, $num1) { - var $rem; - $rem = Long_rem($num1, Long_fromInt(7)).lo; - if (Long_lt($num1, Long_ZERO) && $rem < 0) - return $rem + 7 | 0; - return $rem; -}; -$java.ju_GregorianCalendar_setFirstDayOfWeek = function($this, $value) { - $this.$firstDayOfWeek = $value; - $this.$isCached = 0; -}; -$java.ju_GregorianCalendar_setMinimalDaysInFirstWeek = function($this, $value) { - $this.$minimalDaysInFirstWeek = $value; - $this.$isCached = 0; -}; -function ju_GregorianCalendar__clinit_() { - var var$1, var$2; - var$1 = $rt_createByteArray(12); - var$2 = var$1.data; - var$2[0] = 31; - var$2[1] = 28; - var$2[2] = 31; - var$2[3] = 30; - var$2[4] = 31; - var$2[5] = 30; - var$2[6] = 31; - var$2[7] = 31; - var$2[8] = 30; - var$2[9] = 31; - var$2[10] = 30; - var$2[11] = 31; - $java.ju_GregorianCalendar_daysInMonth = var$1; - var$1 = $rt_createIntArray(12); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 31; - var$2[2] = 59; - var$2[3] = 90; - var$2[4] = 120; - var$2[5] = 151; - var$2[6] = 181; - var$2[7] = 212; - var$2[8] = 243; - var$2[9] = 273; - var$2[10] = 304; - var$2[11] = 334; - $java.ju_GregorianCalendar_daysInYear = var$1; - var$1 = $rt_createIntArray(17); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 292278994; - var$2[2] = 11; - var$2[3] = 53; - var$2[4] = 6; - var$2[5] = 31; - var$2[6] = 366; - var$2[7] = 7; - var$2[8] = 6; - var$2[9] = 1; - var$2[10] = 11; - var$2[11] = 23; - var$2[12] = 59; - var$2[13] = 59; - var$2[14] = 999; - var$2[15] = 50400000; - var$2[16] = 7200000; - $java.ju_GregorianCalendar_maximums = var$1; - var$1 = $rt_createIntArray(17); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 1; - var$2[2] = 0; - var$2[3] = 1; - var$2[4] = 0; - var$2[5] = 1; - var$2[6] = 1; - var$2[7] = 1; - var$2[8] = 1; - var$2[9] = 0; - var$2[10] = 0; - var$2[11] = 0; - var$2[12] = 0; - var$2[13] = 0; - var$2[14] = 0; - var$2[15] = (-46800000); - var$2[16] = 0; - $java.ju_GregorianCalendar_minimums = var$1; - var$1 = $rt_createIntArray(17); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 292269054; - var$2[2] = 11; - var$2[3] = 50; - var$2[4] = 3; - var$2[5] = 28; - var$2[6] = 355; - var$2[7] = 7; - var$2[8] = 3; - var$2[9] = 1; - var$2[10] = 11; - var$2[11] = 23; - var$2[12] = 59; - var$2[13] = 59; - var$2[14] = 999; - var$2[15] = 50400000; - var$2[16] = 1200000; - $java.ju_GregorianCalendar_leastMaximums = var$1; -} -function nms_ChatClickData() { - var a = this; jl_Object.call(a); - a.$fontR = null; - a.$line = null; - a.$field_78310_f = null; - a.$clickedUrl = null; -} -$java.nms_ChatClickData_pattern = null; -$java.nms_ChatClickData_getClickedUrl = function($this) { - return $this.$clickedUrl; -}; -function nms_ChatClickData_findClickedUrl($this) { - var $var1, $var2, var$3, var$4; - $var1 = jl_String_lastIndexOf1($this.$field_78310_f, $rt_s(307), $this.$field_78310_f.$characters.data.length) + 1 | 0; - if ($var1 < 0) - $var1 = 0; - $var2 = jl_String_indexOf1($this.$line.$lineString, $rt_s(307), $var1); - if ($var2 < 0) - $var2 = $this.$line.$lineString.$characters.data.length; - var$3 = $this.$line.$lineString; - if ($var1 > $var2) { - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - var$4 = jl_String__init_0(var$3.$characters, $var1, $var2 - $var1 | 0); - return jur_Matcher_replaceAll(jur_Matcher__init_($java.nms_StringUtils_patternControlCode, var$4), $rt_s(44)); -} -function nms_ChatClickData__clinit_() { - $java.nms_ChatClickData_pattern = jur_Pattern_compile($rt_s(2561), 0); -} -function nms_Stitcher() { - var a = this; jl_Object.call(a); - a.$setStitchHolders = null; - a.$stitchSlots = null; - a.$currentWidth = 0; - a.$currentHeight = 0; - a.$maxWidth = 0; - a.$maxHeight0 = 0; - a.$forcePowerOf2 = 0; - a.$maxTileDimension = 0; - a.$atlasTexture0 = null; - a.$textureName2 = null; -} -function nms_Stitcher__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_Stitcher(); - $java.nms_Stitcher__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -$java.nms_Stitcher__init_ = function($this, $par1, $par2, $par3, $par4, $par5) { - var var$6, var$7; - var$6 = new ju_HashSet; - var$6.$backingMap = ju_HashMap__init_1(256, 0.75); - $this.$setStitchHolders = var$6; - var$7 = new ju_ArrayList; - var$7.$array1 = $rt_createArray(jl_Object, 256); - $this.$stitchSlots = var$7; - $this.$currentWidth = 0; - $this.$currentHeight = 0; - $this.$textureName2 = $par1; - $this.$maxWidth = $par2; - $this.$maxHeight0 = $par3; - $this.$forcePowerOf2 = $par4; - $this.$maxTileDimension = $par5; -}; -function nms_Stitcher_addStitchHolder($this, $par1StitchHolder) { - var var$2; - if ($this.$maxTileDimension > 0) - $java.nms_StitchHolder_setNewDimension($par1StitchHolder, $this.$maxTileDimension); - var$2 = $this.$setStitchHolders; - ju_HashMap_putImpl(var$2.$backingMap, $par1StitchHolder, var$2); -} -function nms_Stitcher_getTexture($this) { - var $var4, var$2, $var3, $var1, $var2; - if ($this.$forcePowerOf2) { - $this.$currentWidth = $java.nms_Stitcher_getCeilPowerOf2($this, $this.$currentWidth); - $this.$currentHeight = $java.nms_Stitcher_getCeilPowerOf2($this, $this.$currentHeight); - } - $var4 = nms_TextureManager_instance; - var$2 = nms_Texture__init_($this.$textureName2, 1, $this.$currentWidth, $this.$currentHeight, 1, 71, 71, 70, 70, null); - if (!ju_HashMap_containsValue($var4.$texturesMap, var$2)) - ju_HashMap_putImpl($var4.$texturesMap, jl_Integer_valueOf(var$2.$textureId), var$2); - else { - if (jl_System_outCache === null) { - $var3 = new ji_PrintStream; - $var3.$out = new jl_ConsoleOutputStreamStdout; - $var1 = new jl_StringBuilder; - jl_Object__init_0($var1); - $var1.$buffer = $rt_createCharArray(16); - $var3.$sb = $var1; - $var3.$buffer0 = $rt_createCharArray(32); - $var3.$autoFlush = 0; - $var1 = new jnci_UTF8Charset; - jnc_Charset__init_($var1, $rt_s(2), $rt_createArray(jl_String, 0)); - $var3.$charset = $var1; - jl_System_outCache = $var3; - } - $var4 = jl_System_outCache; - $var3 = $var4.$sb; - jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(790)); - jl_AbstractStringBuilder_insert4($var3, $var3.$length, 10); - ji_PrintStream_printSB($var4); - } - $this.$atlasTexture0 = var$2; - $java.nms_Texture_fillRect($this.$atlasTexture0, $this.$atlasTexture0.$textureRect, (-65536)); - $var1 = nms_Stitcher_getStichSlots($this); - $var2 = 0; - a: { - while ($var2 < $var1.$size0) { - if ($var2 < 0) - break a; - if ($var2 >= $var1.$size0) - break a; - $var3 = $var1.$array1.data[$var2]; - $var4 = $var3.$holder; - $java.nms_Texture_copyFrom($this.$atlasTexture0, $var3.$originX1, $var3.$originY1, $var4.$theTexture, $var4.$rotated); - $var2 = $var2 + 1 | 0; - } - nms_TextureManager_registerTexture(nms_TextureManager_instance, $this.$textureName2, $this.$atlasTexture0); - return $this.$atlasTexture0; - } - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); -} -function nms_Stitcher_doStitch($this) { - var $var1, $var2, var$3, $var3, var$5; - $var1 = ju_AbstractCollection_toArray0($this.$setStitchHolders, $rt_createArray(nms_StitchHolder, $this.$setStitchHolders.$backingMap.$elementCount)); - ju_Arrays_sort($var1, new ju_Arrays$NaturalOrder); - $this.$atlasTexture0 = null; - $var2 = 0; - while (true) { - var$3 = $var1.data; - if ($var2 >= var$3.length) - break; - $var3 = var$3[$var2]; - if (!$java.nms_Stitcher_allocateSlot($this, $var3)) { - var$5 = new nms_StitcherException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - var$5.$field_98149_a = $var3; - $rt_throw(var$5); - } - $var2 = $var2 + 1 | 0; - } -} -function nms_Stitcher_getStichSlots($this) { - var $var1, var$2, $var2$index, var$4, var$5, $var2$index_0; - $var1 = new ju_ArrayList; - $var1.$array1 = $rt_createArray(jl_Object, 10); - var$2 = $this.$stitchSlots; - $var2$index = 0; - var$4 = var$2.$modCount0; - var$5 = var$2.$size2(); - while ($var2$index >= var$5 ? 0 : 1) { - if (var$4 < var$2.$modCount0) { - $var1 = new ju_ConcurrentModificationException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - } - $var2$index_0 = $var2$index + 1 | 0; - $java.nms_StitchSlot_getAllStitchSlots(var$2.$get4($var2$index), $var1); - $var2$index = $var2$index_0; - } - return $var1; -} -$java.nms_Stitcher_getCeilPowerOf2 = function($this, $par1) { - var $var2; - $var2 = $par1 - 1 | 0; - $par1 = $var2 | $var2 >> 1; - $par1 = $par1 | $par1 >> 2; - $par1 = $par1 | $par1 >> 4; - $par1 = $par1 | $par1 >> 8; - return ($par1 | $par1 >> 16) + 1 | 0; -}; -$java.nms_Stitcher_allocateSlot = function($this, $par1StitchHolder) { - var $var2, var$3; - $var2 = 0; - a: { - b: { - while ($var2 < $this.$stitchSlots.$size0) { - var$3 = $this.$stitchSlots; - if ($var2 < 0) - break a; - if ($var2 >= var$3.$size0) - break a; - if ($java.nms_StitchSlot_func_94182_a(var$3.$array1.data[$var2], $par1StitchHolder)) - return 1; - $par1StitchHolder.$rotated = $par1StitchHolder.$rotated ? 0 : 1; - var$3 = $this.$stitchSlots; - if ($var2 < 0) - break b; - if ($var2 >= var$3.$size0) - break b; - if ($java.nms_StitchSlot_func_94182_a(var$3.$array1.data[$var2], $par1StitchHolder)) - return 1; - $par1StitchHolder.$rotated = $par1StitchHolder.$rotated ? 0 : 1; - $var2 = $var2 + 1 | 0; - } - return $java.nms_Stitcher_expandAndAllocateSlot($this, $par1StitchHolder); - } - $par1StitchHolder = new jl_IndexOutOfBoundsException; - $par1StitchHolder.$suppressionEnabled = 1; - $par1StitchHolder.$writableStackTrace = 1; - $rt_throw($par1StitchHolder); - } - $par1StitchHolder = new jl_IndexOutOfBoundsException; - $par1StitchHolder.$suppressionEnabled = 1; - $par1StitchHolder.$writableStackTrace = 1; - $rt_throw($par1StitchHolder); -}; -$java.nms_Stitcher_expandAndAllocateSlot = function($this, $par1StitchHolder) { - var $var2, $var2_0, $var3, $var14, $var16, $var4, $var5, $var6, $var7, $var8, $var9, $var10, $var11, $var11_0, $var12, $var15; - $var2 = $java.nms_StitchHolder_getHeight($par1StitchHolder); - $var2_0 = $java.nms_StitchHolder_getWidth($par1StitchHolder); - if ($var2 < $var2_0) - $var2_0 = $var2; - $var3 = !$this.$currentWidth && !$this.$currentHeight ? 1 : 0; - if (!$this.$forcePowerOf2) { - $var14 = ($this.$currentWidth + $var2_0 | 0) > $this.$maxWidth ? 0 : 1; - $var16 = ($this.$currentHeight + $var2_0 | 0) > $this.$maxHeight0 ? 0 : 1; - if (!$var14 && !$var16) - return 0; - $var4 = !(!$var3 && $this.$currentWidth > $this.$currentHeight) && $var14 ? 1 : 0; - } else { - $var5 = $java.nms_Stitcher_getCeilPowerOf2($this, $this.$currentWidth); - $var6 = $java.nms_Stitcher_getCeilPowerOf2($this, $this.$currentHeight); - $var7 = $java.nms_Stitcher_getCeilPowerOf2($this, $this.$currentWidth + $var2_0 | 0); - $var8 = $java.nms_Stitcher_getCeilPowerOf2($this, $this.$currentHeight + $var2_0 | 0); - $var9 = $var7 > $this.$maxWidth ? 0 : 1; - $var10 = $var8 > $this.$maxHeight0 ? 0 : 1; - if (!$var9 && !$var10) - return 0; - $var11 = $java.nms_StitchHolder_getHeight($par1StitchHolder); - $var11_0 = $java.nms_StitchHolder_getWidth($par1StitchHolder); - if ($var11 > $var11_0) - $var11_0 = $var11; - if ($var3 && !$var9 && $java.nms_Stitcher_getCeilPowerOf2($this, $this.$currentHeight + $var11_0 | 0) > $this.$maxHeight0) - return 0; - $var12 = $var5 == $var7 ? 0 : 1; - $var4 = !($var12 ^ ($var6 == $var8 ? 0 : 1)) ? ($var9 && $var5 <= $var6 ? 1 : 0) : $var12 && $var9 ? 1 : 0; - } - if (!$var4) { - $var15 = new nms_StitchSlot; - $var2_0 = $this.$currentHeight; - $var7 = $this.$currentWidth; - $var3 = $java.nms_StitchHolder_getHeight($par1StitchHolder); - $var15.$originX1 = 0; - $var15.$originY1 = $var2_0; - $var15.$width8 = $var7; - $var15.$height9 = $var3; - $this.$currentHeight = $this.$currentHeight + $java.nms_StitchHolder_getHeight($par1StitchHolder) | 0; - } else { - if ($java.nms_StitchHolder_getWidth($par1StitchHolder) > $java.nms_StitchHolder_getHeight($par1StitchHolder)) - $par1StitchHolder.$rotated = $par1StitchHolder.$rotated ? 0 : 1; - if (!$this.$currentHeight) - $this.$currentHeight = $java.nms_StitchHolder_getHeight($par1StitchHolder); - $var15 = new nms_StitchSlot; - $var2 = $this.$currentWidth; - $var7 = $java.nms_StitchHolder_getWidth($par1StitchHolder); - $var3 = $this.$currentHeight; - $var15.$originX1 = $var2; - $var15.$originY1 = 0; - $var15.$width8 = $var7; - $var15.$height9 = $var3; - $this.$currentWidth = $this.$currentWidth + $java.nms_StitchHolder_getWidth($par1StitchHolder) | 0; - } - $java.nms_StitchSlot_func_94182_a($var15, $par1StitchHolder); - ju_ArrayList_add($this.$stitchSlots, $var15); - return 1; -}; -function ju_Arrays$ArrayAsList() { - ju_AbstractList.call(this); - this.$array3 = null; -} -$java.ju_Arrays$ArrayAsList_get = function($this, $index) { - return $this.$array3.data[$index]; -}; -$java.ju_Arrays$ArrayAsList_size = function($this) { - return $this.$array3.data.length; -}; -function nms_StitchSlot() { - var a = this; jl_Object.call(a); - a.$originX1 = 0; - a.$originY1 = 0; - a.$width8 = 0; - a.$height9 = 0; - a.$subSlots = null; - a.$holder = null; -} -function nms_StitchSlot_getStitchHolder($this) { - return $this.$holder; -} -function nms_StitchSlot_getOriginX($this) { - return $this.$originX1; -} -function nms_StitchSlot_getOriginY($this) { - return $this.$originY1; -} -$java.nms_StitchSlot_func_94182_a = function($this, $par1StitchHolder) { - var $var2, $var3, var$4, $var9, var$6, $var6, $var4, $var5, $var7, $var8$index, $var8$index_0; - if ($this.$holder !== null) - return 0; - $var2 = $java.nms_StitchHolder_getWidth($par1StitchHolder); - $var3 = $java.nms_StitchHolder_getHeight($par1StitchHolder); - if ($var2 <= $this.$width8 && $var3 <= $this.$height9) { - if ($var2 == $this.$width8 && $var3 == $this.$height9) { - $this.$holder = $par1StitchHolder; - return 1; - } - if ($this.$subSlots === null) { - var$4 = new ju_ArrayList; - var$4.$array1 = $rt_createArray(jl_Object, 1); - $this.$subSlots = var$4; - var$4 = $this.$subSlots; - $var9 = new nms_StitchSlot; - var$6 = $this.$originX1; - $var6 = $this.$originY1; - $var9.$originX1 = var$6; - $var9.$originY1 = $var6; - $var9.$width8 = $var2; - $var9.$height9 = $var3; - ju_ArrayList_add(var$4, $var9); - $var4 = $this.$width8 - $var2 | 0; - $var5 = $this.$height9 - $var3 | 0; - if (!($var5 > 0 && $var4 > 0)) { - if (!$var4) { - var$4 = $this.$subSlots; - $var9 = new nms_StitchSlot; - var$6 = $this.$originX1; - $var6 = $this.$originY1 + $var3 | 0; - $var9.$originX1 = var$6; - $var9.$originY1 = $var6; - $var9.$width8 = $var2; - $var9.$height9 = $var5; - ju_ArrayList_add(var$4, $var9); - } else if (!$var5) { - var$4 = $this.$subSlots; - $var9 = new nms_StitchSlot; - var$6 = $this.$originX1 + $var2 | 0; - $var2 = $this.$originY1; - $var9.$originX1 = var$6; - $var9.$originY1 = $var2; - $var9.$width8 = $var4; - $var9.$height9 = $var3; - ju_ArrayList_add(var$4, $var9); - } - } else { - $var6 = $this.$height9; - if ($var6 <= $var4) - $var6 = $var4; - $var7 = $this.$width8; - if ($var7 <= $var5) - $var7 = $var5; - if ($var6 < $var7) { - var$4 = $this.$subSlots; - $var9 = new nms_StitchSlot; - var$6 = $this.$originX1 + $var2 | 0; - $var2 = $this.$originY1; - $var9.$originX1 = var$6; - $var9.$originY1 = $var2; - $var9.$width8 = $var4; - $var9.$height9 = $var3; - ju_ArrayList_add(var$4, $var9); - var$4 = $this.$subSlots; - $var9 = new nms_StitchSlot; - var$6 = $this.$originX1; - $var2 = $this.$originY1 + $var3 | 0; - $var6 = $this.$width8; - $var9.$originX1 = var$6; - $var9.$originY1 = $var2; - $var9.$width8 = $var6; - $var9.$height9 = $var5; - ju_ArrayList_add(var$4, $var9); - } else { - var$4 = $this.$subSlots; - $var9 = new nms_StitchSlot; - var$6 = $this.$originX1; - $var6 = $this.$originY1 + $var3 | 0; - $var9.$originX1 = var$6; - $var9.$originY1 = $var6; - $var9.$width8 = $var2; - $var9.$height9 = $var5; - ju_ArrayList_add(var$4, $var9); - var$4 = $this.$subSlots; - $var9 = new nms_StitchSlot; - var$6 = $this.$originX1 + $var2 | 0; - $var2 = $this.$originY1; - $var6 = $this.$height9; - $var9.$originX1 = var$6; - $var9.$originY1 = $var2; - $var9.$width8 = $var4; - $var9.$height9 = $var6; - ju_ArrayList_add(var$4, $var9); - } - } - } - var$4 = $this.$subSlots; - $var8$index = 0; - $var2 = var$4.$modCount0; - $var6 = var$4.$size2(); - while (true) { - if (!($var8$index >= $var6 ? 0 : 1)) - return 0; - if ($var2 < var$4.$modCount0) { - $par1StitchHolder = new ju_ConcurrentModificationException; - $par1StitchHolder.$suppressionEnabled = 1; - $par1StitchHolder.$writableStackTrace = 1; - $rt_throw($par1StitchHolder); - } - $var8$index_0 = $var8$index + 1 | 0; - if ($java.nms_StitchSlot_func_94182_a(var$4.$get4($var8$index), $par1StitchHolder)) - break; - $var8$index = $var8$index_0; - } - return 1; - } - return 0; -}; -$java.nms_StitchSlot_getAllStitchSlots = function($this, $par1List) { - var var$2, $var2$index, var$4, var$5, $var2$index_0; - a: { - if ($this.$holder !== null) - ju_ArrayList_add($par1List, $this); - else if ($this.$subSlots !== null) { - var$2 = $this.$subSlots; - $var2$index = 0; - var$4 = var$2.$modCount0; - var$5 = var$2.$size2(); - while (true) { - if (!($var2$index >= var$5 ? 0 : 1)) - break a; - if (var$4 < var$2.$modCount0) { - $par1List = new ju_ConcurrentModificationException; - $par1List.$suppressionEnabled = 1; - $par1List.$writableStackTrace = 1; - $rt_throw($par1List); - } - $var2$index_0 = $var2$index + 1 | 0; - $java.nms_StitchSlot_getAllStitchSlots(var$2.$get4($var2$index), $par1List); - $var2$index = $var2$index_0; - } - } - } -}; -$java.nms_StitchSlot_toString = function($this) { - var var$1, var$2, var$3, var$4, var$5; - var$1 = new jl_StringBuilder; - var$1.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2562)); - var$2 = $this.$originX1; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2563)); - var$2 = $this.$originY1; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2564)); - var$2 = $this.$width8; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2552)); - var$2 = $this.$height9; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2565)); - var$3 = $this.$holder; - var$2 = var$1.$length; - if (var$3 === null) - var$3 = $rt_s(47); - else { - var$4 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$4, 16); - jl_StringBuilder_insert14(var$4, var$4.$length, $rt_s(2551)); - jl_AbstractStringBuilder_append1(var$4, var$3.$width5, 10); - jl_StringBuilder_insert14(var$4, var$4.$length, $rt_s(2552)); - jl_AbstractStringBuilder_append1(var$4, var$3.$height6, 10); - jl_StringBuilder_insert10(var$4, var$4.$length, 125); - var$3 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - } - jl_AbstractStringBuilder_insert(var$1, var$2, var$3); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(2566)); - var$3 = $this.$subSlots; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$3 === null ? $rt_s(47) : ju_AbstractCollection_toString(var$3)); - var$5 = var$1.$length; - jl_AbstractStringBuilder_insertSpace(var$1, var$5, var$5 + 1 | 0); - var$1.$buffer.data[var$5] = 125; - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function nms_TextureClock() { - var a = this; nms_TextureStitched.call(a); - a.$field_94239_h = 0.0; - a.$field_94240_i = 0.0; -} -$java.nms_TextureClock_instance = null; -$java.nms_TextureClock__init_ = function() { - var var_0 = new nms_TextureClock(); - nms_TextureClock__init_(var_0); - return var_0; -}; -function nms_TextureClock__init_($this) { - $this.$frameCounter0 = 0; - $this.$tickCounter = 0; - $this.$textureName1 = $rt_s(1437); - $java.nms_TextureClock_instance = $this; -} -$java.nms_TextureClock_updateAnimation = function($this) { - var $var1, $var2, var$3, $var7, $var6; - $var1 = nmc_Minecraft_theMinecraft; - $var2 = 0.0; - if ($var1.$theWorld !== null && $var1.$thePlayer !== null) { - var$3 = $var1.$theWorld; - $var2 = var$3.$provider.$calculateCelestialAngle(var$3.$worldInfo.$worldTime, 1.0); - if (!$var1.$theWorld.$provider.$isSurfaceWorld()) - $var2 = jl_Math_randomImpl(); - } - $var7 = $var2 - $this.$field_94239_h; - while ($var7 < (-0.5)) { - $var7 = $var7 + 1.0; - } - while ($var7 >= 0.5) { - $var7 = $var7 - 1.0; - } - if ($var7 < (-1.0)) - $var7 = (-1.0); - if ($var7 > 1.0) - $var7 = 1.0; - $this.$field_94240_i = $this.$field_94240_i + $var7 * 0.1; - $this.$field_94240_i = $this.$field_94240_i * 0.8; - $this.$field_94239_h = $this.$field_94239_h + $this.$field_94240_i; - $var6 = (($this.$field_94239_h + 1.0) * $this.$textureList.$size2() | 0) % $this.$textureList.$size2() | 0; - while ($var6 < 0) { - $var6 = ($var6 + $this.$textureList.$size2() | 0) % $this.$textureList.$size2() | 0; - } - if ($var6 != $this.$frameCounter0) { - $this.$frameCounter0 = $var6; - $java.nms_Texture_func_104062_b($this.$textureSheet, $this.$originX0, $this.$originY0, $this.$textureList.$get4($this.$frameCounter0)); - } -}; -function nms_TextureClock__clinit_() { - $java.nms_TextureClock_instance = null; -} -function nms_TextureCompass() { - var a = this; nms_TextureStitched.call(a); - a.$currentAngle = 0.0; - a.$angleDelta = 0.0; -} -var nms_TextureCompass_compassTexture = null; -$java.nms_TextureCompass__init_ = function() { - var var_0 = new nms_TextureCompass(); - nms_TextureCompass__init_(var_0); - return var_0; -}; -function nms_TextureCompass__init_($this) { - $this.$frameCounter0 = 0; - $this.$tickCounter = 0; - $this.$textureName1 = $rt_s(1437); - nms_TextureCompass_compassTexture = $this; -} -function nms_TextureCompass_updateAnimation($this) { - var $var1; - $var1 = nmc_Minecraft_theMinecraft; - if ($var1.$theWorld !== null && $var1.$thePlayer !== null) - nms_TextureCompass_updateCompass($this, $var1.$theWorld, $var1.$thePlayer.$posX, $var1.$thePlayer.$posZ, $var1.$thePlayer.$rotationYaw, 0, 0); - else - nms_TextureCompass_updateCompass($this, null, 0.0, 0.0, 0.0, 1, 0); -} -function nms_TextureCompass_updateCompass($this, $par1World, $par2, $par4, $par6, $par8, $par9) { - var $var10, $var18, $var13, $var15, $var17; - $var10 = 0.0; - if ($par1World !== null && !$par8) { - $var18 = $par1World.$worldInfo.$spawnX; - $par8 = $par1World.$worldInfo.$spawnZ; - $var13 = $var18 - $par2; - $var15 = $par8 - $par4; - $var10 = -(($par6 % 360.0 - 90.0) * 3.141592653589793 / 180.0 - jl_Math_atan2($var15, $var13)); - if (!$par1World.$provider.$isSurfaceWorld()) - $var10 = jl_Math_randomImpl() * 3.141592653589793 * 2.0; - } - if ($par9) - $this.$currentAngle = $var10; - else { - $var17 = $var10 - $this.$currentAngle; - while ($var17 < (-3.141592653589793)) { - $var17 = $var17 + 6.283185307179586; - } - while ($var17 >= 3.141592653589793) { - $var17 = $var17 - 6.283185307179586; - } - if ($var17 < (-1.0)) - $var17 = (-1.0); - if ($var17 > 1.0) - $var17 = 1.0; - $this.$angleDelta = $this.$angleDelta + $var17 * 0.1; - $this.$angleDelta = $this.$angleDelta * 0.8; - $this.$currentAngle = $this.$currentAngle + $this.$angleDelta; - } - $var18 = (($this.$currentAngle / 6.283185307179586 + 1.0) * $this.$textureList.$size2() | 0) % $this.$textureList.$size2() | 0; - while ($var18 < 0) { - $var18 = ($var18 + $this.$textureList.$size2() | 0) % $this.$textureList.$size2() | 0; - } - if ($var18 != $this.$frameCounter0) { - $this.$frameCounter0 = $var18; - $java.nms_Texture_func_104062_b($this.$textureSheet, $this.$originX0, $this.$originY0, $this.$textureList.$get4($this.$frameCounter0)); - } -} -$java.nms_SlotCreativeInventory = function() { - var a = this; $java.nms_Slot.call(a); - a.$theSlot0 = null; - a.$theCreativeInventory = null; -}; -$java.nms_SlotCreativeInventory_onPickupFromSlot = function($this, $par1EntityPlayer, $par2ItemStack) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2ItemStack = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$3 = $this.$theSlot0; - $ptr = 1; - case 1: - var$3.$onPickupFromSlot($par1EntityPlayer, $par2ItemStack); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2ItemStack, var$3, $ptr); -}; -$java.nms_SlotCreativeInventory_isItemValid = function($this, $par1ItemStack) { - return $this.$theSlot0.$isItemValid($par1ItemStack); -}; -$java.nms_SlotCreativeInventory_getStack = function($this) { - return $this.$theSlot0.$getStack(); -}; -$java.nms_SlotCreativeInventory_getHasStack = function($this) { - return $this.$theSlot0.$getHasStack(); -}; -$java.nms_SlotCreativeInventory_putStack = function($this, $par1ItemStack) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$theSlot0; - $ptr = 1; - case 1: - var$2.$putStack($par1ItemStack); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, var$2, $ptr); -}; -$java.nms_SlotCreativeInventory_onSlotChanged = function($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: - var$1 = $this.$theSlot0; - $ptr = 1; - case 1: - var$1.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -}; -$java.nms_SlotCreativeInventory_getSlotStackLimit = function($this) { - return $this.$theSlot0.$getSlotStackLimit(); -}; -$java.nms_SlotCreativeInventory_getBackgroundIconIndex = function($this) { - return $this.$theSlot0.$getBackgroundIconIndex(); -}; -$java.nms_SlotCreativeInventory_decrStackSize = function($this, $par1) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$theSlot0; - $ptr = 1; - case 1: - $tmp = var$2.$decrStackSize0($par1); - if ($rt_suspending()) { - break main; - } - var$2 = $tmp; - return var$2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, $ptr); -}; -$java.nms_SlotCreativeInventory_func_75240_a = function($par0SlotCreativeInventory) { - return $par0SlotCreativeInventory.$theSlot0; -}; -function nms_Enchantment() { - var a = this; jl_Object.call(a); - a.$effectId = 0; - a.$weight = 0; - a.$type1 = null; - a.$name13 = null; -} -var nms_Enchantment_enchantmentsList = null; -var nms_Enchantment_field_92090_c = null; -$java.nms_Enchantment_protection = null; -$java.nms_Enchantment_fireProtection = null; -$java.nms_Enchantment_featherFalling = null; -$java.nms_Enchantment_blastProtection = null; -$java.nms_Enchantment_projectileProtection = null; -var nms_Enchantment_respiration = null; -var nms_Enchantment_aquaAffinity = null; -$java.nms_Enchantment_thorns = null; -$java.nms_Enchantment_sharpness = null; -$java.nms_Enchantment_smite = null; -$java.nms_Enchantment_baneOfArthropods = null; -var nms_Enchantment_knockback = null; -var nms_Enchantment_fireAspect = null; -var nms_Enchantment_looting = null; -var nms_Enchantment_efficiency = null; -$java.nms_Enchantment_silkTouch = null; -var nms_Enchantment_unbreaking = null; -$java.nms_Enchantment_fortune = null; -var nms_Enchantment_power = null; -var nms_Enchantment_punch = null; -var nms_Enchantment_flame = null; -var nms_Enchantment_infinity = null; -function nms_Enchantment_$callClinit() { - nms_Enchantment_$callClinit = $rt_eraseClinit(nms_Enchantment); - $java.nms_Enchantment__clinit_(); -} -$java.nms_Enchantment__init_ = function(var_0, var_1, var_2) { - var var_3 = new nms_Enchantment(); - $java.nms_Enchantment__init_0(var_3, var_0, var_1, var_2); - return var_3; -}; -$java.nms_Enchantment__init_0 = function($this, $par1, $par2, $par3EnumEnchantmentType) { - nms_Enchantment_$callClinit(); - $this.$effectId = $par1; - $this.$weight = $par2; - $this.$type1 = $par3EnumEnchantmentType; - if (nms_Enchantment_enchantmentsList.data[$par1] === null) { - nms_Enchantment_enchantmentsList.data[$par1] = $this; - return; - } - $par3EnumEnchantmentType = new jl_IllegalArgumentException; - $par3EnumEnchantmentType.$suppressionEnabled = 1; - $par3EnumEnchantmentType.$writableStackTrace = 1; - $par3EnumEnchantmentType.$message = $rt_s(2567); - $rt_throw($par3EnumEnchantmentType); -}; -$java.nms_Enchantment_getWeight = function($this) { - return $this.$weight; -}; -function nms_Enchantment_getMinLevel($this) { - return 1; -} -$java.nms_Enchantment_calcModifierDamage = function($this, $par1, $par2DamageSource) { - return 0; -}; -$java.nms_Enchantment_calcModifierLiving = function($this, $par1, $par2EntityLiving) { - return 0; -}; -$java.nms_Enchantment_canApplyTogether = function($this, $par1Enchantment) { - return $this === $par1Enchantment ? 0 : 1; -}; -$java.nms_Enchantment_setName = function($this, $par1Str) { - $this.$name13 = $par1Str; - return $this; -}; -$java.nms_Enchantment_getName = function($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(2568)); - var$2 = $this.$name13; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function nms_Enchantment_getTranslatedName($this, $par1) { - var var$2, $var2, var$4; - var$2 = $this.$getName(); - $var2 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$2); - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $var2); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(307)); - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(2569)); - jl_AbstractStringBuilder_insert0($var2, $var2.$length, $par1, 10); - var$4 = jl_String__init_0($var2.$buffer, 0, $var2.$length); - $var2 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$4); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $var2); - return jl_String__init_0(var$2.$buffer, 0, var$2.$length); -} -$java.nms_Enchantment_canApply = function($this, $par1ItemStack) { - var var$2; - var$2 = $this.$type1; - nms_Item_$callClinit(); - return $java.nms_EnumEnchantmentType_canEnchantItem(var$2, nms_Item_itemsList.data[$par1ItemStack.$itemID0]); -}; -$java.nms_Enchantment__clinit_ = function() { - var $var0, $var4, $var1, $var2, $var3; - nms_Enchantment_enchantmentsList = $rt_createArray(nms_Enchantment, 256); - $var0 = new nms_EnchantmentProtection; - $java.nms_Enchantment__init_0($var0, 0, 10, $java.nms_EnumEnchantmentType_armor); - $var0.$protectionType = 0; - $java.nms_Enchantment_protection = $var0; - $var0 = new nms_EnchantmentProtection; - $java.nms_Enchantment__init_0($var0, 1, 5, $java.nms_EnumEnchantmentType_armor); - $var0.$protectionType = 1; - $java.nms_Enchantment_fireProtection = $var0; - $var0 = new nms_EnchantmentProtection; - $java.nms_Enchantment__init_0($var0, 2, 5, $java.nms_EnumEnchantmentType_armor); - $var0.$protectionType = 2; - $var0.$type1 = $java.nms_EnumEnchantmentType_armor_feet; - $java.nms_Enchantment_featherFalling = $var0; - $var0 = new nms_EnchantmentProtection; - $java.nms_Enchantment__init_0($var0, 3, 2, $java.nms_EnumEnchantmentType_armor); - $var0.$protectionType = 3; - $java.nms_Enchantment_blastProtection = $var0; - $var0 = new nms_EnchantmentProtection; - $java.nms_Enchantment__init_0($var0, 4, 5, $java.nms_EnumEnchantmentType_armor); - $var0.$protectionType = 4; - $java.nms_Enchantment_projectileProtection = $var0; - $var0 = new $java.nms_EnchantmentOxygen; - $java.nms_Enchantment__init_0($var0, 5, 2, $java.nms_EnumEnchantmentType_armor_head); - $var0.$name13 = $rt_s(2570); - nms_Enchantment_respiration = $var0; - $var0 = new $java.nms_EnchantmentWaterWorker; - $java.nms_Enchantment__init_0($var0, 6, 2, $java.nms_EnumEnchantmentType_armor_head); - $var0.$name13 = $rt_s(2571); - nms_Enchantment_aquaAffinity = $var0; - $var0 = new nms_EnchantmentThorns; - $java.nms_Enchantment__init_0($var0, 7, 1, $java.nms_EnumEnchantmentType_armor_torso); - $var0.$name13 = $rt_s(2572); - $java.nms_Enchantment_thorns = $var0; - $var0 = new nms_EnchantmentDamage; - $java.nms_Enchantment__init_0($var0, 16, 10, $java.nms_EnumEnchantmentType_weapon); - $var0.$damageType0 = 0; - $java.nms_Enchantment_sharpness = $var0; - $var0 = new nms_EnchantmentDamage; - $java.nms_Enchantment__init_0($var0, 17, 5, $java.nms_EnumEnchantmentType_weapon); - $var0.$damageType0 = 1; - $java.nms_Enchantment_smite = $var0; - $var0 = new nms_EnchantmentDamage; - $java.nms_Enchantment__init_0($var0, 18, 5, $java.nms_EnumEnchantmentType_weapon); - $var0.$damageType0 = 2; - $java.nms_Enchantment_baneOfArthropods = $var0; - $var0 = new $java.nms_EnchantmentKnockback; - $java.nms_Enchantment__init_0($var0, 19, 5, $java.nms_EnumEnchantmentType_weapon); - $var0.$name13 = $rt_s(2573); - nms_Enchantment_knockback = $var0; - $var0 = new $java.nms_EnchantmentFireAspect; - $java.nms_Enchantment__init_0($var0, 20, 2, $java.nms_EnumEnchantmentType_weapon); - $var0.$name13 = $rt_s(1636); - nms_Enchantment_fireAspect = $var0; - $var0 = new $java.nms_EnchantmentLootBonus; - $var4 = $java.nms_EnumEnchantmentType_weapon; - $java.nms_Enchantment__init_0($var0, 21, 2, $var4); - $var0.$name13 = $rt_s(2574); - if ($var4 === $java.nms_EnumEnchantmentType_digger) - $var0.$name13 = $rt_s(2575); - nms_Enchantment_looting = $var0; - $var0 = new $java.nms_EnchantmentDigging; - $java.nms_Enchantment__init_0($var0, 32, 10, $java.nms_EnumEnchantmentType_digger); - $var0.$name13 = $rt_s(2576); - nms_Enchantment_efficiency = $var0; - $var0 = new $java.nms_EnchantmentUntouching; - $java.nms_Enchantment__init_0($var0, 33, 1, $java.nms_EnumEnchantmentType_digger); - $var0.$name13 = $rt_s(2577); - $java.nms_Enchantment_silkTouch = $var0; - $var0 = new nms_EnchantmentDurability; - $java.nms_Enchantment__init_0($var0, 34, 5, $java.nms_EnumEnchantmentType_digger); - $var0.$name13 = $rt_s(2578); - nms_Enchantment_unbreaking = $var0; - $var0 = new $java.nms_EnchantmentLootBonus; - $var4 = $java.nms_EnumEnchantmentType_digger; - $java.nms_Enchantment__init_0($var0, 35, 2, $var4); - $var0.$name13 = $rt_s(2574); - if ($var4 === $java.nms_EnumEnchantmentType_digger) - $var0.$name13 = $rt_s(2575); - $java.nms_Enchantment_fortune = $var0; - $var0 = new $java.nms_EnchantmentArrowDamage; - $java.nms_Enchantment__init_0($var0, 48, 10, $java.nms_EnumEnchantmentType_bow); - $var0.$name13 = $rt_s(2579); - nms_Enchantment_power = $var0; - $var0 = new $java.nms_EnchantmentArrowKnockback; - $java.nms_Enchantment__init_0($var0, 49, 2, $java.nms_EnumEnchantmentType_bow); - $var0.$name13 = $rt_s(2580); - nms_Enchantment_punch = $var0; - $var0 = new $java.nms_EnchantmentArrowFire; - $java.nms_Enchantment__init_0($var0, 50, 2, $java.nms_EnumEnchantmentType_bow); - $var0.$name13 = $rt_s(2581); - nms_Enchantment_flame = $var0; - $var0 = new $java.nms_EnchantmentArrowInfinite; - $java.nms_Enchantment__init_0($var0, 51, 1, $java.nms_EnumEnchantmentType_bow); - $var0.$name13 = $rt_s(2582); - nms_Enchantment_infinity = $var0; - $var0 = new ju_ArrayList; - $var0.$array1 = $rt_createArray(jl_Object, 10); - $var1 = nms_Enchantment_enchantmentsList.data; - $var2 = $var1.length; - $var3 = 0; - while ($var3 < $var2) { - $var4 = $var1[$var3]; - if ($var4 !== null) - ju_ArrayList_add($var0, $var4); - $var3 = $var3 + 1 | 0; - } - nms_Enchantment_field_92090_c = ju_AbstractCollection_toArray0($var0, $rt_createArray(nms_Enchantment, 0)); -}; -function nlea_EaglerAdapterImpl2$RenderbufferGL() { - jl_Object.call(this); - this.$obj6 = null; -} -function nms_ChunkPosition() { - var a = this; jl_Object.call(a); - a.$x3 = 0; - a.$y2 = 0; - a.$z5 = 0; -} -$java.nms_ChunkPosition__init_ = function(var_0, var_1, var_2) { - var var_3 = new nms_ChunkPosition(); - $java.nms_ChunkPosition__init_0(var_3, var_0, var_1, var_2); - return var_3; -}; -$java.nms_ChunkPosition__init_0 = function($this, $par1, $par2, $par3) { - $this.$x3 = $par1; - $this.$y2 = $par2; - $this.$z5 = $par3; -}; -$java.nms_ChunkPosition_equals = function($this, $par1Obj) { - var $var2; - if (!($par1Obj instanceof nms_ChunkPosition)) - return 0; - $var2 = $par1Obj; - return $var2.$x3 == $this.$x3 && $var2.$y2 == $this.$y2 && $var2.$z5 == $this.$z5 ? 1 : 0; -}; -$java.nms_ChunkPosition_hashCode = function($this) { - return ($rt_imul($this.$x3, 8976890) + $rt_imul($this.$y2, 981131) | 0) + $this.$z5 | 0; -}; -$java.otjc_JSArray = function() { - jl_Object.call(this); -}; -$java.otjc_JSArray_get$exported$0 = function(var$0, var$1) { - return var$0.$get1(var$1); -}; -$java.otjc_JSArray_getLength$exported$1 = function(var$0) { - return var$0.$getLength(); -}; -$java.otjc_JSNumber = function() { - jl_Object.call(this); -}; -function nms_ScoreComparator() { - jl_Object.call(this); -} -$java.nms_ScoreComparator__init_ = function() { - var var_0 = new nms_ScoreComparator(); - nms_ScoreComparator__init_(var_0); - return var_0; -}; -function nms_ScoreComparator__init_($this) { - return; -} -$java.nms_ScoreComparator_func_96659_a = function($this, $par1Score, $par2Score) { - return $par1Score.$field_96655_e > $par2Score.$field_96655_e ? 1 : $par1Score.$field_96655_e >= $par2Score.$field_96655_e ? 0 : (-1); -}; -$java.nms_ScoreComparator_compare = function($this, $par1Obj, $par2Obj) { - return $java.nms_ScoreComparator_func_96659_a($this, $par1Obj, $par2Obj); -}; -function ju_TimeZone() { - jl_Object.call(this); - this.$id6 = null; -} -$java.ju_TimeZone_defaultTz = null; -$java.ju_TimeZone_GMT = null; -function ju_TimeZone_getDefault() { - var $innerTz, var$2, $$je; - if ($java.ju_TimeZone_defaultTz === null) { - $innerTz = $java.otcit_DateTimeZoneProvider_detectTimezone(); - if ($innerTz === null) - $java.ju_TimeZone_defaultTz = $java.ju_TimeZone_getTimeZone($rt_s(2583)); - else { - var$2 = new $java.ju_IANATimeZone; - var$2.$id6 = $innerTz.$iID; - var$2.$underlyingZone = $innerTz; - var$2.$rawOffset = $innerTz.$getStandardOffset(jl_System_currentTimeMillis()); - var$2.$diff = -var$2.$rawOffset; - $java.ju_TimeZone_defaultTz = var$2; - } - } - $innerTz = $java.ju_TimeZone_defaultTz; - a: { - try { - var$2 = jl_Object_clone($innerTz); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_CloneNotSupportedException) { - } else { - throw $$e; - } - } - var$2 = null; - } - var$2 = var$2; - var$2.$rawOffset = $innerTz.$rawOffset; - var$2.$underlyingZone = $innerTz.$underlyingZone; - return var$2; -} -$java.ju_TimeZone_getTimeZone = function($name) { - var $jodaZone, $index, $sign, $position, $formattedName, $hour, var$8, $raw, $minute, $$je; - $jodaZone = $java.otcit_DateTimeZoneProvider_cache; - if ($name !== null) { - $index = jl_String_hashCode($name); - $jodaZone = ju_HashMap_findNonNullKeyEntry($jodaZone, $name, $index & ($jodaZone.$elementData.data.length - 1 | 0), $index); - } else { - $jodaZone = $jodaZone.$elementData.data[0]; - while ($jodaZone !== null && $jodaZone.$key !== null) { - $jodaZone = $jodaZone.$next1; - } - } - if (!($jodaZone === null ? 0 : 1)) - ju_HashMap_putImpl($java.otcit_DateTimeZoneProvider_cache, $name, $java.otcit_DateTimeZoneProvider_createTimeZone($name)); - $jodaZone = $java.otcit_DateTimeZoneProvider_cache; - if ($name !== null) { - $index = jl_String_hashCode($name); - $jodaZone = ju_HashMap_findNonNullKeyEntry($jodaZone, $name, $index & ($jodaZone.$elementData.data.length - 1 | 0), $index); - } else { - $jodaZone = $jodaZone.$elementData.data[0]; - while ($jodaZone !== null && $jodaZone.$key !== null) { - $jodaZone = $jodaZone.$next1; - } - } - $jodaZone = $jodaZone === null ? null : $jodaZone.$value0; - if ($jodaZone !== null) { - $name = new $java.ju_IANATimeZone; - $name.$id6 = $jodaZone.$iID; - $name.$underlyingZone = $jodaZone; - $name.$rawOffset = $jodaZone.$getStandardOffset(jl_System_currentTimeMillis()); - $name.$diff = -$name.$rawOffset; - return $name; - } - $sign = $name === $rt_s(2584) ? 1 : jl_String_startsWith($name, $rt_s(2584), 0); - a: { - if ($sign && $name.$characters.data.length > 3) { - $sign = jl_String_charAt($name, 3); - if (!($sign != 43 && $sign != 45)) { - $position = $rt_createIntArray(1); - $formattedName = $java.ju_TimeZone_formatTimeZoneName($name, 4); - $hour = $java.ju_TimeZone_parseNumber($formattedName, 4, $position); - if ($hour >= 0 && $hour <= 23) { - var$8 = $position.data; - $index = var$8[0]; - if ($index == (-1)) - break a; - else { - b: { - $raw = $rt_imul($hour, 3600000); - if ($index < $formattedName.$characters.data.length && jl_String_charAt($formattedName, $index) == 58) { - $minute = $java.ju_TimeZone_parseNumber($formattedName, $index + 1 | 0, $position); - if (var$8[0] != (-1) && $minute >= 0 && $minute <= 59) { - $raw = $raw + ($minute * 60000 | 0) | 0; - break b; - } - $name = $java.ju_TimeZone_GMT; - c: { - try { - $jodaZone = jl_Object_clone($name); - break c; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_CloneNotSupportedException) { - } else { - throw $$e; - } - } - $jodaZone = null; - } - $jodaZone = $jodaZone; - $jodaZone.$rawOffset = $name.$rawOffset; - $jodaZone.$underlyingZone = $name.$underlyingZone; - return $jodaZone; - } - if (!($hour < 30 && $index <= 6)) - $raw = $rt_imul($hour / 100 | 0, 3600000) + (($hour % 100 | 0) * 60000 | 0) | 0; - } - if ($sign == 45) - $raw = -$raw; - $name = new $java.ju_IANATimeZone; - $jodaZone = new $java.otcit_FixedDateTimeZone; - $jodaZone.$iID = $formattedName; - $jodaZone.$iWallOffset = $raw; - $jodaZone.$iStandardOffset = $raw; - $name.$id6 = $jodaZone.$iID; - $name.$underlyingZone = $jodaZone; - jl_System_currentTimeMillis(); - $name.$rawOffset = $jodaZone.$iStandardOffset; - $name.$diff = -$name.$rawOffset; - return $name; - } - } - $name = $java.ju_TimeZone_GMT; - d: { - try { - $jodaZone = jl_Object_clone($name); - break d; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_CloneNotSupportedException) { - } else { - throw $$e; - } - } - $jodaZone = null; - } - $jodaZone = $jodaZone; - $jodaZone.$rawOffset = $name.$rawOffset; - $jodaZone.$underlyingZone = $name.$underlyingZone; - return $jodaZone; - } - } - } - $name = $java.ju_TimeZone_GMT; - e: { - try { - $jodaZone = jl_Object_clone($name); - break e; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_CloneNotSupportedException) { - } else { - throw $$e; - } - } - $jodaZone = null; - } - $jodaZone = $jodaZone; - $jodaZone.$rawOffset = $name.$rawOffset; - $jodaZone.$underlyingZone = $name.$underlyingZone; - return $jodaZone; -}; -$java.ju_TimeZone_formatTimeZoneName = function($name, $offset) { - var $buf, $length, var$5, var$6, var$7; - $buf = new jl_StringBuilder; - $buf.$buffer = $rt_createCharArray(16); - $length = $name.$characters.data.length; - if (0 > $offset) { - $name = new jl_IndexOutOfBoundsException; - $name.$suppressionEnabled = 1; - $name.$writableStackTrace = 1; - $rt_throw($name); - } - var$5 = jl_String__init_0($name.$characters, 0, $offset - 0 | 0); - jl_AbstractStringBuilder_insert($buf, $buf.$length, var$5); - while ($offset < $length) { - if (jl_Character_digit(jl_String_charAt($name, $offset), 10) != (-1)) { - var$6 = jl_String_charAt($name, $offset); - var$7 = $buf.$length; - jl_AbstractStringBuilder_insertSpace($buf, var$7, var$7 + 1 | 0); - $buf.$buffer.data[var$7] = var$6; - if (($length - ($offset + 1 | 0) | 0) == 2) { - var$7 = $buf.$length; - jl_AbstractStringBuilder_insertSpace($buf, var$7, var$7 + 1 | 0); - $buf.$buffer.data[var$7] = 58; - } - } else if (jl_String_charAt($name, $offset) == 58) { - var$7 = $buf.$length; - jl_AbstractStringBuilder_insertSpace($buf, var$7, var$7 + 1 | 0); - $buf.$buffer.data[var$7] = 58; - } - $offset = $offset + 1 | 0; - } - if (jl_String_indexOf1(jl_String__init_0($buf.$buffer, 0, $buf.$length), $rt_s(266), 0) == (-1)) { - var$6 = $buf.$length; - jl_AbstractStringBuilder_insertSpace($buf, var$6, var$6 + 1 | 0); - $buf.$buffer.data[var$6] = 58; - jl_AbstractStringBuilder_insert($buf, $buf.$length, $rt_s(2585)); - } - if (jl_String_indexOf1(jl_String__init_0($buf.$buffer, 0, $buf.$length), $rt_s(266), 0) == 5) { - jl_AbstractStringBuilder_insertSpace($buf, 4, 5); - $buf.$buffer.data[4] = 48; - } - return jl_String__init_0($buf.$buffer, 0, $buf.$length); -}; -$java.ju_TimeZone_parseNumber = function($string, $offset, $position) { - var $length, $result, var$6, $digit; - $length = $string.$characters.data.length; - $result = 0; - var$6 = $offset; - a: { - while (true) { - if (var$6 >= $length) - break a; - $digit = jl_Character_digit(jl_String_charAt($string, var$6), 10); - if ($digit == (-1)) - break; - var$6 = var$6 + 1 | 0; - $result = ($result * 10 | 0) + $digit | 0; - } - } - if (var$6 == $offset) - var$6 = (-1); - $position.data[0] = var$6; - return $result; -}; -function ju_TimeZone__clinit_() { - var var$1, var$2; - var$1 = new $java.ju_IANATimeZone; - var$2 = new $java.otcit_FixedDateTimeZone; - var$2.$iID = $rt_s(2584); - var$2.$iWallOffset = 0; - var$2.$iStandardOffset = 0; - var$1.$id6 = var$2.$iID; - var$1.$underlyingZone = var$2; - jl_System_currentTimeMillis(); - var$1.$rawOffset = var$2.$iStandardOffset; - var$1.$diff = -var$1.$rawOffset; - $java.ju_TimeZone_GMT = var$1; -} -function nms_Packet0KeepAlive() { - nms_Packet.call(this); - this.$randomId = 0; -} -$java.nms_Packet0KeepAlive__init_ = function() { - var var_0 = new nms_Packet0KeepAlive(); - nms_Packet0KeepAlive__init_(var_0); - return var_0; -}; -function nms_Packet0KeepAlive__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet0KeepAlive_processPacket = function($this, $par1NetHandler) { - var var$2, var$3; - var$2 = new nms_Packet0KeepAlive; - var$3 = $this.$randomId; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - var$2.$randomId = var$3; - if (!$par1NetHandler.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($par1NetHandler.$netManager, var$2); -}; -$java.nms_Packet0KeepAlive_readPacketData = function($this, $par1DataInputStream) { - $this.$randomId = ji_DataInputStream_readInt($par1DataInputStream); -}; -$java.nms_Packet0KeepAlive_writePacketData = function($this, $par1DataOutputStream) { - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$randomId); -}; -$java.nms_Packet0KeepAlive_getPacketSize = function($this) { - return 4; -}; -function nms_Packet1Login() { - var a = this; nms_Packet.call(a); - a.$clientEntityId = 0; - a.$terrainType1 = null; - a.$hardcoreMode = 0; - a.$gameType = null; - a.$dimension1 = 0; - a.$difficultySetting0 = 0; - a.$worldHeight = 0; - a.$maxPlayers = 0; -} -$java.nms_Packet1Login__init_ = function() { - var var_0 = new nms_Packet1Login(); - nms_Packet1Login__init_(var_0); - return var_0; -}; -function nms_Packet1Login__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$clientEntityId = 0; -} -$java.nms_Packet1Login_readPacketData = function($this, $par1DataInputStream) { - var $var4, $var3; - $this.$clientEntityId = ji_DataInputStream_readInt($par1DataInputStream); - $this.$terrainType1 = $java.nms_WorldType_parseWorldType(nms_Packet_readString($par1DataInputStream, 16)); - if ($this.$terrainType1 === null) - $this.$terrainType1 = $java.nms_WorldType_DEFAULT; - $var4 = $par1DataInputStream.$in.$read1(); - if ($var4 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $var3 = $var4 << 24 >> 24; - $this.$hardcoreMode = ($var3 & 8) != 8 ? 0 : 1; - $this.$gameType = $java.nms_EnumGameType_getByID($var3 & (-9)); - $var4 = $par1DataInputStream.$in.$read1(); - if ($var4 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$dimension1 = $var4 << 24 >> 24; - $var4 = $par1DataInputStream.$in.$read1(); - if ($var4 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$difficultySetting0 = $var4 << 24 >> 24; - $var4 = $par1DataInputStream.$in.$read1(); - if ($var4 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$worldHeight = $var4 << 24 >> 24; - $var4 = $par1DataInputStream.$in.$read1(); - if ($var4 >= 0) { - $this.$maxPlayers = $var4 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet1Login_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleLogin($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet1Login_getPacketSize = function($this) { - var $var1; - $var1 = 0; - if ($this.$terrainType1 !== null) - $var1 = $this.$terrainType1.$worldType.$characters.data.length; - return (((((6 + (2 * $var1 | 0) | 0) + 4 | 0) + 4 | 0) + 1 | 0) + 1 | 0) + 1 | 0; -}; -function nms_Packet2ClientProtocol() { - var a = this; nms_Packet.call(a); - a.$protocolVersion = 0; - a.$username1 = null; - a.$serverHost = null; - a.$serverPort = 0; -} -$java.nms_Packet2ClientProtocol__init_ = function() { - var var_0 = new nms_Packet2ClientProtocol(); - nms_Packet2ClientProtocol__init_(var_0); - return var_0; -}; -$java.nms_Packet2ClientProtocol__init_0 = function(var_0, var_1, var_2, var_3) { - var var_4 = new nms_Packet2ClientProtocol(); - $java.nms_Packet2ClientProtocol__init_1(var_4, var_0, var_1, var_2, var_3); - return var_4; -}; -function nms_Packet2ClientProtocol__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet2ClientProtocol__init_1 = function($this, $par1, $par2Str, $par3Str, $par4) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$protocolVersion = $par1; - $this.$username1 = $par2Str; - $this.$serverHost = $par3Str; - $this.$serverPort = $par4; -}; -$java.nms_Packet2ClientProtocol_readPacketData = function($this, $par1DataInputStream) { - var var$2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$protocolVersion = var$2 << 24 >> 24; - $this.$username1 = nms_Packet_readString($par1DataInputStream, 16); - $this.$serverHost = nms_Packet_readString($par1DataInputStream, 255); - $this.$serverPort = ji_DataInputStream_readInt($par1DataInputStream); - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet2ClientProtocol_writePacketData = function($this, $par1DataOutputStream) { - var var$2, var$3; - var$2 = $this.$protocolVersion; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - var$3 = $this.$username1; - nms_Packet_$callClinit(); - if (var$3.$characters.data.length > 32767) { - var$3 = new ji_IOException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(374); - $rt_throw(var$3); - } - ji_DataOutputStream_writeShort($par1DataOutputStream, var$3.$characters.data.length); - ji_DataOutputStream_writeChars($par1DataOutputStream, var$3); - var$3 = $this.$serverHost; - if (var$3.$characters.data.length <= 32767) { - ji_DataOutputStream_writeShort($par1DataOutputStream, var$3.$characters.data.length); - ji_DataOutputStream_writeChars($par1DataOutputStream, var$3); - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$serverPort); - return; - } - var$3 = new ji_IOException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(374); - $rt_throw(var$3); -}; -$java.nms_Packet2ClientProtocol_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet2ClientProtocol_getPacketSize = function($this) { - return 3 + (2 * $this.$username1.$characters.data.length | 0) | 0; -}; -function nms_Packet4UpdateTime() { - var a = this; nms_Packet.call(a); - a.$worldAge = Long_ZERO; - a.$time0 = Long_ZERO; -} -$java.nms_Packet4UpdateTime__init_ = function() { - var var_0 = new nms_Packet4UpdateTime(); - nms_Packet4UpdateTime__init_(var_0); - return var_0; -}; -function nms_Packet4UpdateTime__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet4UpdateTime_readPacketData = function($this, $par1DataInputStream) { - $this.$worldAge = ji_DataInputStream_readLong($par1DataInputStream); - $this.$time0 = ji_DataInputStream_readLong($par1DataInputStream); -}; -$java.nms_Packet4UpdateTime_processPacket = function($this, $par1NetHandler) { - var var$2, var$3; - var$2 = $par1NetHandler.$mc15.$theWorld; - var$3 = $this.$worldAge; - var$2.$worldInfo.$totalTime = var$3; - $par1NetHandler = $par1NetHandler.$mc15.$theWorld; - var$3 = $this.$time0; - $par1NetHandler.$worldInfo.$worldTime = var$3; -}; -$java.nms_Packet4UpdateTime_getPacketSize = function($this) { - return 16; -}; -function nms_Packet5PlayerInventory() { - var a = this; nms_Packet.call(a); - a.$entityID1 = 0; - a.$slot0 = 0; - a.$itemSlot0 = null; -} -$java.nms_Packet5PlayerInventory__init_ = function() { - var var_0 = new nms_Packet5PlayerInventory(); - nms_Packet5PlayerInventory__init_(var_0); - return var_0; -}; -function nms_Packet5PlayerInventory__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet5PlayerInventory_readPacketData = function($this, $par1DataInputStream) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $$je; - $this.$entityID1 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$slot0 = ji_DataInputStream_readShort($par1DataInputStream); - nms_Packet_$callClinit(); - var$2 = null; - var$3 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$3 >= 0) { - var$4 = $par1DataInputStream.$in.$read1(); - if (var$4 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - var$5 = var$4 << 24 >> 24; - var$4 = ji_DataInputStream_readShort($par1DataInputStream); - var$2 = new nms_ItemStack; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = var$5; - var$2.$itemDamage = var$4; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$3 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$3 < 0) - $par1DataInputStream = null; - else { - var$6 = $rt_createByteArray(var$3); - var$4 = var$6.data.length; - ji_DataInputStream_readFully($par1DataInputStream, var$6, 0, var$4); - var$7 = new ji_DataInputStream; - $par1DataInputStream = 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 + var$4 | 0; - cjj_InflaterInputStream__init_0(var$8, var$9, cjj_Inflater__init_0(31, 0), 512, 1); - var$8.$myinflater = 1; - $par1DataInputStream.$in = var$8; - $par1DataInputStream.$markpos = (-1); - $par1DataInputStream.$buf0 = $rt_createByteArray(8192); - var$7.$in = $par1DataInputStream; - var$7.$buff = $rt_createByteArray(8); - a: { - try { - $par1DataInputStream = nms_CompressedStreamTools_read(var$7); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par1DataInputStream = $$je; - - } - var$7.$in.$close(); - $rt_throw($par1DataInputStream); - } - var$7.$in.$close(); - } - var$2.$stackTagCompound = $par1DataInputStream; - } - $this.$itemSlot0 = var$2; -}; -$java.nms_Packet5PlayerInventory_processPacket = function($this, $par1NetHandler) { - var var$2; - var$2 = $this.$entityID1; - if (var$2 == $par1NetHandler.$mc15.$thePlayer.$entityId) - $par1NetHandler = $par1NetHandler.$mc15.$thePlayer; - else { - $par1NetHandler = $par1NetHandler.$worldClient; - $par1NetHandler = var$2 == $par1NetHandler.$mc11.$thePlayer.$entityId ? $par1NetHandler.$mc11.$thePlayer : nms_IntHashMap_lookup($par1NetHandler.$entityHashSet, var$2); - } - if ($par1NetHandler !== null) - $par1NetHandler.$setCurrentItemOrArmor($this.$slot0, $this.$itemSlot0); -}; -$java.nms_Packet5PlayerInventory_getPacketSize = function($this) { - return 8; -}; -$java.nms_Packet5PlayerInventory_getItemSlot = function($this) { - return $this.$itemSlot0; -}; -function nms_Packet6SpawnPosition() { - var a = this; nms_Packet.call(a); - a.$xPosition13 = 0; - a.$yPosition12 = 0; - a.$zPosition12 = 0; -} -$java.nms_Packet6SpawnPosition__init_ = function() { - var var_0 = new nms_Packet6SpawnPosition(); - nms_Packet6SpawnPosition__init_(var_0); - return var_0; -}; -function nms_Packet6SpawnPosition__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet6SpawnPosition_readPacketData = function($this, $par1DataInputStream) { - $this.$xPosition13 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition12 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$zPosition12 = ji_DataInputStream_readInt($par1DataInputStream); -}; -$java.nms_Packet6SpawnPosition_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleSpawnPosition($par1NetHandler, $this); -}; -$java.nms_Packet6SpawnPosition_getPacketSize = function($this) { - return 12; -}; -function nms_Packet7UseEntity() { - var a = this; nms_Packet.call(a); - a.$playerEntityId = 0; - a.$targetEntity = 0; - a.$isLeftClick = 0; -} -$java.nms_Packet7UseEntity__init_ = function() { - var var_0 = new nms_Packet7UseEntity(); - nms_Packet7UseEntity__init_(var_0); - return var_0; -}; -function nms_Packet7UseEntity__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet7UseEntity_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$playerEntityId = ji_DataInputStream_readInt($par1DataInputStream); - $this.$targetEntity = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$isLeftClick = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet7UseEntity_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$playerEntityId); - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$targetEntity); - var$2 = $this.$isLeftClick; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet7UseEntity_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet7UseEntity_getPacketSize = function($this) { - return 9; -}; -function nms_Packet8UpdateHealth() { - var a = this; nms_Packet.call(a); - a.$healthMP = 0; - a.$food = 0; - a.$foodSaturation = 0.0; -} -$java.nms_Packet8UpdateHealth__init_ = function() { - var var_0 = new nms_Packet8UpdateHealth(); - nms_Packet8UpdateHealth__init_(var_0); - return var_0; -}; -function nms_Packet8UpdateHealth__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet8UpdateHealth_readPacketData = function($this, $par1DataInputStream) { - $this.$healthMP = ji_DataInputStream_readShort($par1DataInputStream); - $this.$food = ji_DataInputStream_readShort($par1DataInputStream); - $this.$foodSaturation = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); -}; -$java.nms_Packet8UpdateHealth_processPacket = function($this, $par1NetHandler) { - 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();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $par1NetHandler.$mc15.$thePlayer; - var$3 = $this.$healthMP; - if (!var$2.$hasSetHealth) { - var$2.$health = var$3; - var$2.$hasSetHealth = 1; - $par1NetHandler.$mc15.$thePlayer.$foodStats.$foodLevel = $this.$food; - $par1NetHandler.$mc15.$thePlayer.$foodStats.$foodSaturationLevel = $this.$foodSaturation; - return; - } - $ptr = 1; - case 1: - nms_EntityPlayerSP_setHealth(var$2, var$3); - if ($rt_suspending()) { - break main; - } - $par1NetHandler.$mc15.$thePlayer.$foodStats.$foodLevel = $this.$food; - $par1NetHandler.$mc15.$thePlayer.$foodStats.$foodSaturationLevel = $this.$foodSaturation; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, var$2, var$3, $ptr); -}; -$java.nms_Packet8UpdateHealth_getPacketSize = function($this) { - return 8; -}; -function nms_Packet9Respawn() { - var a = this; nms_Packet.call(a); - a.$respawnDimension = 0; - a.$difficulty0 = 0; - a.$worldHeight0 = 0; - a.$gameType0 = null; - a.$terrainType3 = null; -} -$java.nms_Packet9Respawn__init_ = function() { - var var_0 = new nms_Packet9Respawn(); - nms_Packet9Respawn__init_(var_0); - return var_0; -}; -function nms_Packet9Respawn__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet9Respawn_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleRespawn($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet9Respawn_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$respawnDimension = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$difficulty0 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$gameType0 = $java.nms_EnumGameType_getByID(var$2 << 24 >> 24); - $this.$worldHeight0 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$terrainType3 = $java.nms_WorldType_parseWorldType(nms_Packet_readString($par1DataInputStream, 16)); - if ($this.$terrainType3 === null) - $this.$terrainType3 = $java.nms_WorldType_DEFAULT; -}; -$java.nms_Packet9Respawn_getPacketSize = function($this) { - return 8 + ($this.$terrainType3 === null ? 0 : $this.$terrainType3.$worldType.$characters.data.length) | 0; -}; -function nms_Packet10Flying() { - var a = this; nms_Packet.call(a); - a.$xPosition = 0.0; - a.$yPosition0 = 0.0; - a.$zPosition = 0.0; - a.$stance = 0.0; - a.$yaw = 0.0; - a.$pitch0 = 0.0; - a.$onGround0 = 0; - a.$moving = 0; - a.$rotating = 0; -} -$java.nms_Packet10Flying__init_ = function() { - var var_0 = new nms_Packet10Flying(); - nms_Packet10Flying__init_(var_0); - return var_0; -}; -function nms_Packet10Flying__init_0(var_0) { - var var_1 = new nms_Packet10Flying(); - $java.nms_Packet10Flying__init_0(var_1, var_0); - return var_1; -} -function nms_Packet10Flying__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet10Flying__init_0 = function($this, $par1) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$onGround0 = $par1; -}; -$java.nms_Packet10Flying_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleFlying($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet10Flying_readPacketData = function($this, $par1DataInputStream) { - $this.$onGround0 = !$par1DataInputStream.$in.$read1() ? 0 : 1; -}; -$java.nms_Packet10Flying_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - var$2 = !$this.$onGround0 ? 0 : 1; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet10Flying_getPacketSize = function($this) { - return 1; -}; -function nms_Packet11PlayerPosition() { - nms_Packet10Flying.call(this); -} -$java.nms_Packet11PlayerPosition__init_ = function() { - var var_0 = new nms_Packet11PlayerPosition(); - nms_Packet11PlayerPosition__init_(var_0); - return var_0; -}; -function nms_Packet11PlayerPosition__init_0(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_Packet11PlayerPosition(); - $java.nms_Packet11PlayerPosition__init_0(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -function nms_Packet11PlayerPosition__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$moving = 1; -} -$java.nms_Packet11PlayerPosition__init_0 = function($this, $par1, $par3, $par5, $par7, $par9) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$xPosition = $par1; - $this.$yPosition0 = $par3; - $this.$stance = $par5; - $this.$zPosition = $par7; - $this.$onGround0 = $par9; - $this.$moving = 1; -}; -$java.nms_Packet11PlayerPosition_readPacketData = function($this, $par1DataInputStream) { - $this.$xPosition = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$yPosition0 = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$stance = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$zPosition = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$onGround0 = !$par1DataInputStream.$in.$read1() ? 0 : 1; -}; -$java.nms_Packet11PlayerPosition_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - ji_DataOutputStream_writeLong($par1DataOutputStream, $rt_doubleToLongBits($this.$xPosition)); - ji_DataOutputStream_writeLong($par1DataOutputStream, $rt_doubleToLongBits($this.$yPosition0)); - ji_DataOutputStream_writeLong($par1DataOutputStream, $rt_doubleToLongBits($this.$stance)); - ji_DataOutputStream_writeLong($par1DataOutputStream, $rt_doubleToLongBits($this.$zPosition)); - var$2 = !$this.$onGround0 ? 0 : 1; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet11PlayerPosition_getPacketSize = function($this) { - return 33; -}; -function nms_Packet12PlayerLook() { - nms_Packet10Flying.call(this); -} -$java.nms_Packet12PlayerLook__init_ = function() { - var var_0 = new nms_Packet12PlayerLook(); - nms_Packet12PlayerLook__init_(var_0); - return var_0; -}; -function nms_Packet12PlayerLook__init_0(var_0, var_1, var_2) { - var var_3 = new nms_Packet12PlayerLook(); - $java.nms_Packet12PlayerLook__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function nms_Packet12PlayerLook__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$rotating = 1; -} -$java.nms_Packet12PlayerLook__init_0 = function($this, $par1, $par2, $par3) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$yaw = $par1; - $this.$pitch0 = $par2; - $this.$onGround0 = $par3; - $this.$rotating = 1; -}; -$java.nms_Packet12PlayerLook_readPacketData = function($this, $par1DataInputStream) { - $this.$yaw = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$pitch0 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$onGround0 = !$par1DataInputStream.$in.$read1() ? 0 : 1; -}; -$java.nms_Packet12PlayerLook_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - ji_DataOutputStream_writeInt($par1DataOutputStream, $rt_floatToIntBits($this.$yaw)); - ji_DataOutputStream_writeInt($par1DataOutputStream, $rt_floatToIntBits($this.$pitch0)); - var$2 = !$this.$onGround0 ? 0 : 1; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet12PlayerLook_getPacketSize = function($this) { - return 9; -}; -function nms_Packet13PlayerLookMove() { - nms_Packet10Flying.call(this); -} -$java.nms_Packet13PlayerLookMove__init_ = function() { - var var_0 = new nms_Packet13PlayerLookMove(); - nms_Packet13PlayerLookMove__init_(var_0); - return var_0; -}; -function nms_Packet13PlayerLookMove__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$rotating = 1; - $this.$moving = 1; -} -$java.nms_Packet13PlayerLookMove_readPacketData = function($this, $par1DataInputStream) { - $this.$xPosition = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$yPosition0 = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$stance = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$zPosition = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$yaw = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$pitch0 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$onGround0 = !$par1DataInputStream.$in.$read1() ? 0 : 1; -}; -$java.nms_Packet13PlayerLookMove_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - ji_DataOutputStream_writeLong($par1DataOutputStream, $rt_doubleToLongBits($this.$xPosition)); - ji_DataOutputStream_writeLong($par1DataOutputStream, $rt_doubleToLongBits($this.$yPosition0)); - ji_DataOutputStream_writeLong($par1DataOutputStream, $rt_doubleToLongBits($this.$stance)); - ji_DataOutputStream_writeLong($par1DataOutputStream, $rt_doubleToLongBits($this.$zPosition)); - ji_DataOutputStream_writeInt($par1DataOutputStream, $rt_floatToIntBits($this.$yaw)); - ji_DataOutputStream_writeInt($par1DataOutputStream, $rt_floatToIntBits($this.$pitch0)); - var$2 = !$this.$onGround0 ? 0 : 1; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet13PlayerLookMove_getPacketSize = function($this) { - return 41; -}; -function nms_Packet14BlockDig() { - var a = this; nms_Packet.call(a); - a.$xPosition0 = 0; - a.$yPosition1 = 0; - a.$zPosition0 = 0; - a.$face = 0; - a.$status0 = 0; -} -$java.nms_Packet14BlockDig__init_ = function() { - var var_0 = new nms_Packet14BlockDig(); - nms_Packet14BlockDig__init_(var_0); - return var_0; -}; -function nms_Packet14BlockDig__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet14BlockDig_readPacketData = function($this, $par1DataInputStream) { - $this.$status0 = $par1DataInputStream.$in.$read1(); - $this.$xPosition0 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition1 = $par1DataInputStream.$in.$read1(); - $this.$zPosition0 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$face = $par1DataInputStream.$in.$read1(); -}; -$java.nms_Packet14BlockDig_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - var$2 = $this.$status0; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$xPosition0); - var$2 = $this.$yPosition1; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$zPosition0); - var$2 = $this.$face; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet14BlockDig_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet14BlockDig_getPacketSize = function($this) { - return 11; -}; -function nms_Packet15Place() { - var a = this; nms_Packet.call(a); - a.$xPosition2 = 0; - a.$yPosition3 = 0; - a.$zPosition2 = 0; - a.$direction = 0; - a.$itemStack0 = null; - a.$xOffset0 = 0.0; - a.$yOffset1 = 0.0; - a.$zOffset0 = 0.0; -} -$java.nms_Packet15Place__init_ = function() { - var var_0 = new nms_Packet15Place(); - nms_Packet15Place__init_(var_0); - return var_0; -}; -function nms_Packet15Place__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet15Place_readPacketData = function($this, $par1DataInputStream) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $$je; - $this.$xPosition2 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition3 = $par1DataInputStream.$in.$read1(); - $this.$zPosition2 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$direction = $par1DataInputStream.$in.$read1(); - nms_Packet_$callClinit(); - var$2 = null; - var$3 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$3 >= 0) { - var$4 = $par1DataInputStream.$in.$read1(); - if (var$4 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - var$5 = var$4 << 24 >> 24; - var$4 = ji_DataInputStream_readShort($par1DataInputStream); - var$2 = new nms_ItemStack; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = var$5; - var$2.$itemDamage = var$4; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$3 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$3 < 0) - var$6 = null; - else { - var$7 = $rt_createByteArray(var$3); - var$4 = var$7.data.length; - ji_DataInputStream_readFully($par1DataInputStream, var$7, 0, var$4); - var$8 = new ji_DataInputStream; - var$6 = new ji_BufferedInputStream; - var$9 = new cjj_GZIPInputStream; - var$10 = new ji_ByteArrayInputStream; - var$10.$buf = var$7; - var$10.$pos = 0; - var$10.$mark0 = 0; - var$10.$count0 = 0 + var$4 | 0; - cjj_InflaterInputStream__init_0(var$9, var$10, cjj_Inflater__init_0(31, 0), 512, 1); - var$9.$myinflater = 1; - var$6.$in = var$9; - var$6.$markpos = (-1); - var$6.$buf0 = $rt_createByteArray(8192); - var$8.$in = var$6; - var$8.$buff = $rt_createByteArray(8); - a: { - try { - var$6 = nms_CompressedStreamTools_read(var$8); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par1DataInputStream = $$je; - - } - var$8.$in.$close(); - $rt_throw($par1DataInputStream); - } - var$8.$in.$close(); - } - var$2.$stackTagCompound = var$6; - } - $this.$itemStack0 = var$2; - $this.$xOffset0 = $par1DataInputStream.$in.$read1() / 16.0; - $this.$yOffset1 = $par1DataInputStream.$in.$read1() / 16.0; - $this.$zOffset0 = $par1DataInputStream.$in.$read1() / 16.0; -}; -$java.nms_Packet15Place_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$xPosition2); - var$2 = $this.$yPosition3; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$zPosition2); - var$2 = $this.$direction; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - nms_Packet_writeItemStack($this.$itemStack0, $par1DataOutputStream); - var$2 = $this.$xOffset0 * 16.0 | 0; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - var$2 = $this.$yOffset1 * 16.0 | 0; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - var$2 = $this.$zOffset0 * 16.0 | 0; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet15Place_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet15Place_getPacketSize = function($this) { - return 19; -}; -function nms_Packet16BlockItemSwitch() { - nms_Packet.call(this); - this.$id4 = 0; -} -$java.nms_Packet16BlockItemSwitch__init_ = function() { - var var_0 = new nms_Packet16BlockItemSwitch(); - nms_Packet16BlockItemSwitch__init_(var_0); - return var_0; -}; -function nms_Packet16BlockItemSwitch__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet16BlockItemSwitch_readPacketData = function($this, $par1DataInputStream) { - $this.$id4 = ji_DataInputStream_readShort($par1DataInputStream); -}; -$java.nms_Packet16BlockItemSwitch_writePacketData = function($this, $par1DataOutputStream) { - ji_DataOutputStream_writeShort($par1DataOutputStream, $this.$id4); -}; -$java.nms_Packet16BlockItemSwitch_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleBlockItemSwitch($par1NetHandler, $this); -}; -$java.nms_Packet16BlockItemSwitch_getPacketSize = function($this) { - return 2; -}; -function nms_Packet17Sleep() { - var a = this; nms_Packet.call(a); - a.$entityID0 = 0; - a.$bedX = 0; - a.$bedY = 0; - a.$bedZ = 0; - a.$field_73622_e = 0; -} -$java.nms_Packet17Sleep__init_ = function() { - var var_0 = new nms_Packet17Sleep(); - nms_Packet17Sleep__init_(var_0); - return var_0; -}; -function nms_Packet17Sleep__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet17Sleep_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityID0 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$field_73622_e = var$2 << 24 >> 24; - $this.$bedX = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$bedY = var$2 << 24 >> 24; - $this.$bedZ = ji_DataInputStream_readInt($par1DataInputStream); - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet17Sleep_processPacket = function($this, $par1NetHandler) { - var var$2; - var$2 = $this.$entityID0; - if (var$2 == $par1NetHandler.$mc15.$thePlayer.$entityId) - $par1NetHandler = $par1NetHandler.$mc15.$thePlayer; - else { - $par1NetHandler = $par1NetHandler.$worldClient; - $par1NetHandler = var$2 == $par1NetHandler.$mc11.$thePlayer.$entityId ? $par1NetHandler.$mc11.$thePlayer : nms_IntHashMap_lookup($par1NetHandler.$entityHashSet, var$2); - } - if ($par1NetHandler !== null && !$this.$field_73622_e) - nms_EntityPlayer_sleepInBedAt($par1NetHandler, $this.$bedX, $this.$bedY, $this.$bedZ); -}; -$java.nms_Packet17Sleep_getPacketSize = function($this) { - return 14; -}; -function nms_Packet18Animation() { - var a = this; nms_Packet.call(a); - a.$entityId1 = 0; - a.$animate = 0; -} -$java.nms_Packet18Animation__init_ = function() { - var var_0 = new nms_Packet18Animation(); - nms_Packet18Animation__init_(var_0); - return var_0; -}; -function nms_Packet18Animation__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet18Animation_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId1 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$animate = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet18Animation_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$entityId1); - var$2 = $this.$animate; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet18Animation_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleAnimation($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet18Animation_getPacketSize = function($this) { - return 5; -}; -function nms_Packet20NamedEntitySpawn() { - var a = this; nms_Packet.call(a); - a.$entityId7 = 0; - a.$name11 = null; - a.$xPosition7 = 0; - a.$yPosition7 = 0; - a.$zPosition6 = 0; - a.$rotation = 0; - a.$pitch2 = 0; - a.$currentItem0 = 0; - a.$metadata1 = null; - a.$metadataWatchableObjects = null; -} -$java.nms_Packet20NamedEntitySpawn__init_ = function() { - var var_0 = new nms_Packet20NamedEntitySpawn(); - nms_Packet20NamedEntitySpawn__init_(var_0); - return var_0; -}; -function nms_Packet20NamedEntitySpawn__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet20NamedEntitySpawn_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId7 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$name11 = nms_Packet_readString($par1DataInputStream, 16); - $this.$xPosition7 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition7 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$zPosition6 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$rotation = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$pitch2 = var$2 << 24 >> 24; - $this.$currentItem0 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$metadataWatchableObjects = $java.nms_DataWatcher_readWatchableObjects($par1DataInputStream); - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet20NamedEntitySpawn_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleNamedEntitySpawn($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet20NamedEntitySpawn_getPacketSize = function($this) { - return 28; -}; -$java.nms_Packet20NamedEntitySpawn_getWatchedMetadata = function($this) { - if ($this.$metadataWatchableObjects === null) - $this.$metadataWatchableObjects = $this.$metadata1.$getAllWatched(); - return $this.$metadataWatchableObjects; -}; -function nms_Packet22Collect() { - var a = this; nms_Packet.call(a); - a.$collectedEntityId = 0; - a.$collectorEntityId = 0; -} -$java.nms_Packet22Collect__init_ = function() { - var var_0 = new nms_Packet22Collect(); - nms_Packet22Collect__init_(var_0); - return var_0; -}; -function nms_Packet22Collect__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet22Collect_readPacketData = function($this, $par1DataInputStream) { - $this.$collectedEntityId = ji_DataInputStream_readInt($par1DataInputStream); - $this.$collectorEntityId = ji_DataInputStream_readInt($par1DataInputStream); -}; -$java.nms_Packet22Collect_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleCollect($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet22Collect_getPacketSize = function($this) { - return 8; -}; -function nms_Packet23VehicleSpawn() { - var a = this; nms_Packet.call(a); - a.$entityId2 = 0; - a.$xPosition5 = 0; - a.$yPosition5 = 0; - a.$zPosition4 = 0; - a.$speedX = 0; - a.$speedY = 0; - a.$speedZ = 0; - a.$pitch1 = 0; - a.$yaw0 = 0; - a.$type3 = 0; - a.$throwerEntityId = 0; -} -$java.nms_Packet23VehicleSpawn__init_ = function() { - var var_0 = new nms_Packet23VehicleSpawn(); - nms_Packet23VehicleSpawn__init_(var_0); - return var_0; -}; -function nms_Packet23VehicleSpawn__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet23VehicleSpawn_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId2 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$type3 = var$2 << 24 >> 24; - $this.$xPosition5 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition5 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$zPosition4 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$pitch1 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$yaw0 = var$2 << 24 >> 24; - $this.$throwerEntityId = ji_DataInputStream_readInt($par1DataInputStream); - if ($this.$throwerEntityId > 0) { - $this.$speedX = ji_DataInputStream_readShort($par1DataInputStream); - $this.$speedY = ji_DataInputStream_readShort($par1DataInputStream); - $this.$speedZ = ji_DataInputStream_readShort($par1DataInputStream); - } -}; -$java.nms_Packet23VehicleSpawn_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleVehicleSpawn($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet23VehicleSpawn_getPacketSize = function($this) { - return (21 + $this.$throwerEntityId | 0) <= 0 ? 0 : 6; -}; -function nms_Packet24MobSpawn() { - var a = this; nms_Packet.call(a); - a.$entityId12 = 0; - a.$type5 = 0; - a.$xPosition12 = 0; - a.$yPosition11 = 0; - a.$zPosition11 = 0; - a.$velocityX2 = 0; - a.$velocityY2 = 0; - a.$velocityZ2 = 0; - a.$yaw3 = 0; - a.$pitch5 = 0; - a.$headYaw = 0; - a.$metaData = null; - a.$metadata3 = null; -} -$java.nms_Packet24MobSpawn__init_ = function() { - var var_0 = new nms_Packet24MobSpawn(); - nms_Packet24MobSpawn__init_(var_0); - return var_0; -}; -function nms_Packet24MobSpawn__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet24MobSpawn_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId12 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$type5 = var$2 << 24 >> 24 & 255; - $this.$xPosition12 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition11 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$zPosition11 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$yaw3 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$pitch5 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$headYaw = var$2 << 24 >> 24; - $this.$velocityX2 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$velocityY2 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$velocityZ2 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$metadata3 = $java.nms_DataWatcher_readWatchableObjects($par1DataInputStream); - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet24MobSpawn_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleMobSpawn($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet24MobSpawn_getPacketSize = function($this) { - return 26; -}; -$java.nms_Packet24MobSpawn_getMetadata = function($this) { - if ($this.$metadata3 === null) - $this.$metadata3 = $this.$metaData.$getAllWatched(); - return $this.$metadata3; -}; -function nms_Packet25EntityPainting() { - var a = this; nms_Packet.call(a); - a.$entityId4 = 0; - a.$xPosition6 = 0; - a.$yPosition6 = 0; - a.$zPosition5 = 0; - a.$direction0 = 0; - a.$title0 = null; -} -$java.nms_Packet25EntityPainting__init_ = function() { - var var_0 = new nms_Packet25EntityPainting(); - nms_Packet25EntityPainting__init_(var_0); - return var_0; -}; -function nms_Packet25EntityPainting__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet25EntityPainting_readPacketData = function($this, $par1DataInputStream) { - $this.$entityId4 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$title0 = nms_Packet_readString($par1DataInputStream, $java.nms_EnumArt_maxArtTitleLength); - $this.$xPosition6 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition6 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$zPosition5 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$direction0 = ji_DataInputStream_readInt($par1DataInputStream); -}; -$java.nms_Packet25EntityPainting_processPacket = function($this, $par1NetHandler) { - 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();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = nms_EntityPainting__init_1($par1NetHandler.$worldClient, $this.$xPosition6, $this.$yPosition6, $this.$zPosition5, $this.$direction0, $this.$title0); - $par1NetHandler = $par1NetHandler.$worldClient; - var$3 = $this.$entityId4; - $ptr = 1; - case 1: - nms_WorldClient_addEntityToWorld($par1NetHandler, var$3, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, var$2, var$3, $ptr); -}; -$java.nms_Packet25EntityPainting_getPacketSize = function($this) { - return 24; -}; -function nms_Packet26EntityExpOrb() { - var a = this; nms_Packet.call(a); - a.$entityId3 = 0; - a.$posX5 = 0; - a.$posY5 = 0; - a.$posZ3 = 0; - a.$xpValue0 = 0; -} -$java.nms_Packet26EntityExpOrb__init_ = function() { - var var_0 = new nms_Packet26EntityExpOrb(); - nms_Packet26EntityExpOrb__init_(var_0); - return var_0; -}; -function nms_Packet26EntityExpOrb__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet26EntityExpOrb_readPacketData = function($this, $par1DataInputStream) { - $this.$entityId3 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$posX5 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$posY5 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$posZ3 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$xpValue0 = ji_DataInputStream_readShort($par1DataInputStream); -}; -$java.nms_Packet26EntityExpOrb_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleEntityExpOrb($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet26EntityExpOrb_getPacketSize = function($this) { - return 18; -}; -function nms_Packet28EntityVelocity() { - var a = this; nms_Packet.call(a); - a.$entityId5 = 0; - a.$motionX0 = 0; - a.$motionY0 = 0; - a.$motionZ0 = 0; -} -$java.nms_Packet28EntityVelocity__init_ = function() { - var var_0 = new nms_Packet28EntityVelocity(); - nms_Packet28EntityVelocity__init_(var_0); - return var_0; -}; -function nms_Packet28EntityVelocity__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet28EntityVelocity_readPacketData = function($this, $par1DataInputStream) { - $this.$entityId5 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$motionX0 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$motionY0 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$motionZ0 = ji_DataInputStream_readShort($par1DataInputStream); -}; -$java.nms_Packet28EntityVelocity_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleEntityVelocity($par1NetHandler, $this); -}; -$java.nms_Packet28EntityVelocity_getPacketSize = function($this) { - return 10; -}; -function nms_Packet29DestroyEntity() { - nms_Packet.call(this); - this.$entityId11 = null; -} -$java.nms_Packet29DestroyEntity__init_ = function() { - var var_0 = new nms_Packet29DestroyEntity(); - nms_Packet29DestroyEntity__init_(var_0); - return var_0; -}; -function nms_Packet29DestroyEntity__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet29DestroyEntity_readPacketData = function($this, $par1DataInputStream) { - var $var2; - $var2 = $par1DataInputStream.$in.$read1(); - if ($var2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$entityId11 = $rt_createIntArray($var2 << 24 >> 24); - $var2 = 0; - while ($var2 < $this.$entityId11.data.length) { - $this.$entityId11.data[$var2] = ji_DataInputStream_readInt($par1DataInputStream); - $var2 = $var2 + 1 | 0; - } -}; -$java.nms_Packet29DestroyEntity_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleDestroyEntity($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet29DestroyEntity_getPacketSize = function($this) { - return 1 + ($this.$entityId11.data.length * 4 | 0) | 0; -}; -function nms_Packet30Entity() { - var a = this; nms_Packet.call(a); - a.$entityId9 = 0; - a.$xPosition9 = 0; - a.$yPosition9 = 0; - a.$zPosition8 = 0; - a.$yaw2 = 0; - a.$pitch4 = 0; - a.$rotating0 = 0; -} -$java.nms_Packet30Entity__init_ = function() { - var var_0 = new nms_Packet30Entity(); - nms_Packet30Entity__init_(var_0); - return var_0; -}; -function nms_Packet30Entity__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$rotating0 = 0; -} -$java.nms_Packet30Entity_readPacketData = function($this, $par1DataInputStream) { - $this.$entityId9 = ji_DataInputStream_readInt($par1DataInputStream); -}; -$java.nms_Packet30Entity_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleEntity($par1NetHandler, $this); -}; -$java.nms_Packet30Entity_getPacketSize = function($this) { - return 4; -}; -function nms_Packet31RelEntityMove() { - nms_Packet30Entity.call(this); -} -$java.nms_Packet31RelEntityMove__init_ = function() { - var var_0 = new nms_Packet31RelEntityMove(); - nms_Packet31RelEntityMove__init_(var_0); - return var_0; -}; -function nms_Packet31RelEntityMove__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$rotating0 = 0; -} -$java.nms_Packet31RelEntityMove_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId9 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$xPosition9 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$yPosition9 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$zPosition8 = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet31RelEntityMove_getPacketSize = function($this) { - return 7; -}; -function nms_Packet32EntityLook() { - nms_Packet30Entity.call(this); -} -$java.nms_Packet32EntityLook__init_ = function() { - var var_0 = new nms_Packet32EntityLook(); - nms_Packet32EntityLook__init_(var_0); - return var_0; -}; -function nms_Packet32EntityLook__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$rotating0 = 0; - $this.$rotating0 = 1; -} -$java.nms_Packet32EntityLook_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId9 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$yaw2 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$pitch4 = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet32EntityLook_getPacketSize = function($this) { - return 6; -}; -function nms_Packet33RelEntityMoveLook() { - nms_Packet30Entity.call(this); -} -$java.nms_Packet33RelEntityMoveLook__init_ = function() { - var var_0 = new nms_Packet33RelEntityMoveLook(); - nms_Packet33RelEntityMoveLook__init_(var_0); - return var_0; -}; -function nms_Packet33RelEntityMoveLook__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$rotating0 = 0; - $this.$rotating0 = 1; -} -$java.nms_Packet33RelEntityMoveLook_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId9 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$xPosition9 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$yPosition9 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$zPosition8 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$yaw2 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$pitch4 = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet33RelEntityMoveLook_getPacketSize = function($this) { - return 9; -}; -function nms_Packet34EntityTeleport() { - var a = this; nms_Packet.call(a); - a.$entityId8 = 0; - a.$xPosition8 = 0; - a.$yPosition8 = 0; - a.$zPosition7 = 0; - a.$yaw1 = 0; - a.$pitch3 = 0; -} -$java.nms_Packet34EntityTeleport__init_ = function() { - var var_0 = new nms_Packet34EntityTeleport(); - nms_Packet34EntityTeleport__init_(var_0); - return var_0; -}; -function nms_Packet34EntityTeleport__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet34EntityTeleport_readPacketData = function($this, $par1DataInputStream) { - $this.$entityId8 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$xPosition8 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition8 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$zPosition7 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yaw1 = $par1DataInputStream.$in.$read1() << 24 >> 24; - $this.$pitch3 = $par1DataInputStream.$in.$read1() << 24 >> 24; -}; -$java.nms_Packet34EntityTeleport_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleEntityTeleport($par1NetHandler, $this); -}; -$java.nms_Packet34EntityTeleport_getPacketSize = function($this) { - return 34; -}; -function nms_Packet35EntityHeadRotation() { - var a = this; nms_Packet.call(a); - a.$entityId10 = 0; - a.$headRotationYaw = 0; -} -$java.nms_Packet35EntityHeadRotation__init_ = function() { - var var_0 = new nms_Packet35EntityHeadRotation(); - nms_Packet35EntityHeadRotation__init_(var_0); - return var_0; -}; -function nms_Packet35EntityHeadRotation__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet35EntityHeadRotation_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId10 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$headRotationYaw = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet35EntityHeadRotation_processPacket = function($this, $par1NetHandler) { - var var$2; - var$2 = $this.$entityId10; - if (var$2 == $par1NetHandler.$mc15.$thePlayer.$entityId) - $par1NetHandler = $par1NetHandler.$mc15.$thePlayer; - else { - $par1NetHandler = $par1NetHandler.$worldClient; - $par1NetHandler = var$2 == $par1NetHandler.$mc11.$thePlayer.$entityId ? $par1NetHandler.$mc11.$thePlayer : nms_IntHashMap_lookup($par1NetHandler.$entityHashSet, var$2); - } - if ($par1NetHandler !== null) - $par1NetHandler.$setRotationYawHead(($this.$headRotationYaw * 360 | 0) / 256.0); -}; -$java.nms_Packet35EntityHeadRotation_getPacketSize = function($this) { - return 5; -}; -function nms_Packet38EntityStatus() { - var a = this; nms_Packet.call(a); - a.$entityId14 = 0; - a.$entityStatus = 0; -} -$java.nms_Packet38EntityStatus__init_ = function() { - var var_0 = new nms_Packet38EntityStatus(); - nms_Packet38EntityStatus__init_(var_0); - return var_0; -}; -function nms_Packet38EntityStatus__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet38EntityStatus_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId14 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$entityStatus = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet38EntityStatus_processPacket = function($this, $par1NetHandler) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$entityId14; - if (var$2 == $par1NetHandler.$mc15.$thePlayer.$entityId) - $par1NetHandler = $par1NetHandler.$mc15.$thePlayer; - else { - $par1NetHandler = $par1NetHandler.$worldClient; - $par1NetHandler = var$2 == $par1NetHandler.$mc11.$thePlayer.$entityId ? $par1NetHandler.$mc11.$thePlayer : nms_IntHashMap_lookup($par1NetHandler.$entityHashSet, var$2); - } - if ($par1NetHandler === null) - return; - var$2 = $this.$entityStatus; - $ptr = 1; - case 1: - $par1NetHandler.$handleHealthUpdate(var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, var$2, $ptr); -}; -$java.nms_Packet38EntityStatus_getPacketSize = function($this) { - return 5; -}; -function nms_Packet39AttachEntity() { - var a = this; nms_Packet.call(a); - a.$entityId13 = 0; - a.$vehicleEntityId = 0; -} -$java.nms_Packet39AttachEntity__init_ = function() { - var var_0 = new nms_Packet39AttachEntity(); - nms_Packet39AttachEntity__init_(var_0); - return var_0; -}; -function nms_Packet39AttachEntity__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet39AttachEntity_getPacketSize = function($this) { - return 8; -}; -$java.nms_Packet39AttachEntity_readPacketData = function($this, $par1DataInputStream) { - $this.$entityId13 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$vehicleEntityId = ji_DataInputStream_readInt($par1DataInputStream); -}; -$java.nms_Packet39AttachEntity_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleAttachEntity($par1NetHandler, $this); -}; -function nms_Packet40EntityMetadata() { - var a = this; nms_Packet.call(a); - a.$entityId6 = 0; - a.$metadata0 = null; -} -$java.nms_Packet40EntityMetadata__init_ = function() { - var var_0 = new nms_Packet40EntityMetadata(); - nms_Packet40EntityMetadata__init_(var_0); - return var_0; -}; -function nms_Packet40EntityMetadata__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet40EntityMetadata_readPacketData = function($this, $par1DataInputStream) { - $this.$entityId6 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$metadata0 = $java.nms_DataWatcher_readWatchableObjects($par1DataInputStream); -}; -$java.nms_Packet40EntityMetadata_processPacket = function($this, $par1NetHandler) { - var var$2, var$3; - var$2 = $this.$entityId6; - if (var$2 == $par1NetHandler.$mc15.$thePlayer.$entityId) - var$3 = $par1NetHandler.$mc15.$thePlayer; - else { - $par1NetHandler = $par1NetHandler.$worldClient; - var$3 = var$2 == $par1NetHandler.$mc11.$thePlayer.$entityId ? $par1NetHandler.$mc11.$thePlayer : nms_IntHashMap_lookup($par1NetHandler.$entityHashSet, var$2); - } - if (var$3 !== null && $this.$metadata0 !== null) - $java.nms_DataWatcher_updateWatchedObjectsFromList(var$3.$dataWatcher, $this.$metadata0); -}; -$java.nms_Packet40EntityMetadata_getPacketSize = function($this) { - return 5; -}; -$java.nms_Packet40EntityMetadata_getMetadata = function($this) { - return $this.$metadata0; -}; -function nms_Packet41EntityEffect() { - var a = this; nms_Packet.call(a); - a.$entityId16 = 0; - a.$effectId0 = 0; - a.$effectAmplifier = 0; - a.$duration0 = 0; -} -$java.nms_Packet41EntityEffect__init_ = function() { - var var_0 = new nms_Packet41EntityEffect(); - nms_Packet41EntityEffect__init_(var_0); - return var_0; -}; -function nms_Packet41EntityEffect__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet41EntityEffect_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId16 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$effectId0 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$effectAmplifier = var$2 << 24 >> 24; - $this.$duration0 = ji_DataInputStream_readShort($par1DataInputStream); - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet41EntityEffect_isDurationMax = function($this) { - return $this.$duration0 != 32767 ? 0 : 1; -}; -$java.nms_Packet41EntityEffect_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleEntityEffect($par1NetHandler, $this); -}; -$java.nms_Packet41EntityEffect_getPacketSize = function($this) { - return 8; -}; -function nms_Packet42RemoveEntityEffect() { - var a = this; nms_Packet.call(a); - a.$entityId17 = 0; - a.$effectId1 = 0; -} -$java.nms_Packet42RemoveEntityEffect__init_ = function() { - var var_0 = new nms_Packet42RemoveEntityEffect(); - nms_Packet42RemoveEntityEffect__init_(var_0); - return var_0; -}; -function nms_Packet42RemoveEntityEffect__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet42RemoveEntityEffect_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityId17 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$effectId1 = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet42RemoveEntityEffect_processPacket = function($this, $par1NetHandler) { - var var$2; - var$2 = $this.$entityId17; - if (var$2 == $par1NetHandler.$mc15.$thePlayer.$entityId) - $par1NetHandler = $par1NetHandler.$mc15.$thePlayer; - else { - $par1NetHandler = $par1NetHandler.$worldClient; - $par1NetHandler = var$2 == $par1NetHandler.$mc11.$thePlayer.$entityId ? $par1NetHandler.$mc11.$thePlayer : nms_IntHashMap_lookup($par1NetHandler.$entityHashSet, var$2); - } - if ($par1NetHandler instanceof nms_EntityLiving) { - $par1NetHandler = $par1NetHandler; - var$2 = $this.$effectId1; - ju_HashMap_removeEntry($par1NetHandler.$activePotionsMap, jl_Integer_valueOf(var$2)); - } -}; -$java.nms_Packet42RemoveEntityEffect_getPacketSize = function($this) { - return 5; -}; -function nms_Packet43Experience() { - var a = this; nms_Packet.call(a); - a.$experience0 = 0.0; - a.$experienceTotal0 = 0; - a.$experienceLevel0 = 0; -} -$java.nms_Packet43Experience__init_ = function() { - var var_0 = new nms_Packet43Experience(); - nms_Packet43Experience__init_(var_0); - return var_0; -}; -function nms_Packet43Experience__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet43Experience_readPacketData = function($this, $par1DataInputStream) { - $this.$experience0 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$experienceLevel0 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$experienceTotal0 = ji_DataInputStream_readShort($par1DataInputStream); -}; -$java.nms_Packet43Experience_processPacket = function($this, $par1NetHandler) { - var var$2, var$3, var$4; - $par1NetHandler = $par1NetHandler.$mc15.$thePlayer; - var$2 = $this.$experience0; - var$3 = $this.$experienceTotal0; - var$4 = $this.$experienceLevel0; - $par1NetHandler.$experience = var$2; - $par1NetHandler.$experienceTotal = var$3; - $par1NetHandler.$experienceLevel = var$4; -}; -$java.nms_Packet43Experience_getPacketSize = function($this) { - return 4; -}; -function nms_Packet51MapChunk() { - var a = this; nms_Packet.call(a); - a.$xCh = 0; - a.$zCh = 0; - a.$yChMin = 0; - a.$yChMax = 0; - a.$compressedChunkData = null; - a.$includeInitialize = 0; - a.$tempLength = 0; -} -$java.nms_Packet51MapChunk_temp = null; -$java.nms_Packet51MapChunk__init_ = function() { - var var_0 = new nms_Packet51MapChunk(); - nms_Packet51MapChunk__init_(var_0); - return var_0; -}; -function nms_Packet51MapChunk__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$isChunkDataPacket = 1; -} -$java.nms_Packet51MapChunk_readPacketData = function($this, $par1DataInputStream) { - var $var3, var$3, var$4, var$5, var$6, var$7; - $this.$xCh = ji_DataInputStream_readInt($par1DataInputStream); - $this.$zCh = ji_DataInputStream_readInt($par1DataInputStream); - $var3 = $par1DataInputStream.$in.$read1(); - if ($var3 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$includeInitialize = !$var3 ? 0 : 1; - $this.$yChMin = ji_DataInputStream_readShort($par1DataInputStream); - $this.$yChMax = ji_DataInputStream_readShort($par1DataInputStream); - $this.$tempLength = ji_DataInputStream_readInt($par1DataInputStream); - if ($java.nms_Packet51MapChunk_temp.data.length < $this.$tempLength) - $java.nms_Packet51MapChunk_temp = $rt_createByteArray($this.$tempLength); - ji_DataInputStream_readFully($par1DataInputStream, $java.nms_Packet51MapChunk_temp, 0, $this.$tempLength); - $var3 = 0; - while ($var3 < 16) { - $var3 = $var3 + 1 | 0; - } - var$3 = $java.nms_Packet51MapChunk_temp; - var$4 = var$3.data; - $par1DataInputStream = new cjj_InflaterInputStream; - var$5 = new ji_ByteArrayInputStream; - var$6 = var$4.length; - var$5.$buf = var$3; - var$5.$pos = 0; - var$5.$mark0 = 0; - var$5.$count0 = 0 + var$6 | 0; - cjj_InflaterInputStream__init_0($par1DataInputStream, var$5, cjj_Inflater__init_0(15, 0), 512, 1); - $par1DataInputStream.$myinflater = 1; - var$5 = new ji_ByteArrayOutputStream; - var$5.$buf1 = $rt_createByteArray(32); - var$3 = $rt_createByteArray(65535); - var$7 = var$3.data.length; - var$6 = cjj_InflaterInputStream_read0($par1DataInputStream, var$3, 0, var$7); - while (var$6 != (-1)) { - ji_ByteArrayOutputStream_write0(var$5, var$3, 0, var$6); - var$6 = cjj_InflaterInputStream_read0($par1DataInputStream, var$3, 0, var$7); - } - $this.$compressedChunkData = ju_Arrays_copyOf0(var$5.$buf1, var$5.$count1); -}; -$java.nms_Packet51MapChunk_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleMapChunk($par1NetHandler, $this); -}; -$java.nms_Packet51MapChunk_getPacketSize = function($this) { - return 17 + $this.$tempLength | 0; -}; -$java.nms_Packet51MapChunk_getCompressedChunkData = function($this) { - return $this.$compressedChunkData; -}; -function nms_Packet51MapChunk__clinit_() { - $java.nms_Packet51MapChunk_temp = $rt_createByteArray(196864); -} -function nms_Packet52MultiBlockChange() { - var a = this; nms_Packet.call(a); - a.$xPosition10 = 0; - a.$zPosition9 = 0; - a.$metadataArray = null; - a.$size6 = 0; -} -$java.nms_Packet52MultiBlockChange_field_73449_e = null; -$java.nms_Packet52MultiBlockChange__init_ = function() { - var var_0 = new nms_Packet52MultiBlockChange(); - nms_Packet52MultiBlockChange__init_(var_0); - return var_0; -}; -function nms_Packet52MultiBlockChange__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$isChunkDataPacket = 1; -} -$java.nms_Packet52MultiBlockChange_readPacketData = function($this, $par1DataInputStream) { - var $var2, var$3; - $this.$xPosition10 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$zPosition9 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$size6 = ji_DataInputStream_readShort($par1DataInputStream) & 65535; - $var2 = ji_DataInputStream_readInt($par1DataInputStream); - if ($var2 > 0) { - $this.$metadataArray = $rt_createByteArray($var2); - var$3 = $this.$metadataArray; - ji_DataInputStream_readFully($par1DataInputStream, var$3, 0, var$3.data.length); - } -}; -$java.nms_Packet52MultiBlockChange_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleMultiBlockChange($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet52MultiBlockChange_getPacketSize = function($this) { - return 10 + ($this.$size6 * 4 | 0) | 0; -}; -function nms_Packet52MultiBlockChange__clinit_() { - $java.nms_Packet52MultiBlockChange_field_73449_e = $rt_createByteArray(0); -} -function nms_Packet53BlockChange() { - var a = this; nms_Packet.call(a); - a.$xPosition11 = 0; - a.$yPosition10 = 0; - a.$zPosition10 = 0; - a.$type4 = 0; - a.$metadata2 = 0; -} -$java.nms_Packet53BlockChange__init_ = function() { - var var_0 = new nms_Packet53BlockChange(); - nms_Packet53BlockChange__init_(var_0); - return var_0; -}; -function nms_Packet53BlockChange__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$isChunkDataPacket = 1; -} -$java.nms_Packet53BlockChange_readPacketData = function($this, $par1DataInputStream) { - $this.$xPosition11 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition10 = $par1DataInputStream.$in.$read1(); - $this.$zPosition10 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$type4 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$metadata2 = $par1DataInputStream.$in.$read1(); -}; -$java.nms_Packet53BlockChange_processPacket = function($this, $par1NetHandler) { - var var$2, var$3, var$4, var$5, var$6, var$7, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1NetHandler = $par1NetHandler.$worldClient; - var$2 = $this.$xPosition11; - var$3 = $this.$yPosition10; - var$4 = $this.$zPosition10; - var$5 = $this.$type4; - var$6 = $this.$metadata2; - var$7 = 3; - $ptr = 1; - case 1: - nms_World_setBlock($par1NetHandler, var$2, var$3, var$4, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, var$2, var$3, var$4, var$5, var$6, var$7, $ptr); -}; -$java.nms_Packet53BlockChange_getPacketSize = function($this) { - return 11; -}; -function nms_Packet54PlayNoteBlock() { - var a = this; nms_Packet.call(a); - a.$xLocation = 0; - a.$yLocation = 0; - a.$zLocation = 0; - a.$instrumentType = 0; - a.$pitch6 = 0; - a.$blockId = 0; -} -$java.nms_Packet54PlayNoteBlock__init_ = function() { - var var_0 = new nms_Packet54PlayNoteBlock(); - nms_Packet54PlayNoteBlock__init_(var_0); - return var_0; -}; -function nms_Packet54PlayNoteBlock__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet54PlayNoteBlock_readPacketData = function($this, $par1DataInputStream) { - $this.$xLocation = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yLocation = ji_DataInputStream_readShort($par1DataInputStream); - $this.$zLocation = ji_DataInputStream_readInt($par1DataInputStream); - $this.$instrumentType = $par1DataInputStream.$in.$read1(); - $this.$pitch6 = $par1DataInputStream.$in.$read1(); - $this.$blockId = ji_DataInputStream_readShort($par1DataInputStream) & 4095; -}; -$java.nms_Packet54PlayNoteBlock_processPacket = function($this, $par1NetHandler) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1NetHandler = $par1NetHandler.$mc15.$theWorld; - var$2 = $this.$xLocation; - var$3 = $this.$yLocation; - var$4 = $this.$zLocation; - var$5 = $this.$blockId; - var$6 = $this.$instrumentType; - var$7 = $this.$pitch6; - if (var$5 <= 0) - return; - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$5]; - $ptr = 1; - case 1: - var$8.$onBlockEventReceived($par1NetHandler, var$2, var$3, var$4, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_Packet54PlayNoteBlock_getPacketSize = function($this) { - return 14; -}; -function nms_Packet55BlockDestroy() { - var a = this; nms_Packet.call(a); - a.$entityId15 = 0; - a.$posX7 = 0; - a.$posY7 = 0; - a.$posZ5 = 0; - a.$destroyedStage = 0; -} -$java.nms_Packet55BlockDestroy__init_ = function() { - var var_0 = new nms_Packet55BlockDestroy(); - nms_Packet55BlockDestroy__init_(var_0); - return var_0; -}; -function nms_Packet55BlockDestroy__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet55BlockDestroy_readPacketData = function($this, $par1DataInputStream) { - $this.$entityId15 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$posX7 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$posY7 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$posZ5 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$destroyedStage = $par1DataInputStream.$in.$read1(); -}; -$java.nms_Packet55BlockDestroy_processPacket = function($this, $par1NetHandler) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8; - $par1NetHandler = $par1NetHandler.$mc15.$theWorld; - var$2 = $this.$entityId15; - var$3 = $this.$posX7; - var$4 = $this.$posY7; - var$5 = $this.$posZ5; - var$6 = $this.$destroyedStage; - var$7 = 0; - a: { - while (var$7 < $par1NetHandler.$worldAccesses.$size0) { - var$8 = $par1NetHandler.$worldAccesses; - if (var$7 < 0) - break a; - if (var$7 >= var$8.$size0) - break a; - nms_RenderGlobal_destroyBlockPartially(var$8.$array1.data[var$7], var$2, var$3, var$4, var$5, var$6); - var$7 = var$7 + 1 | 0; - } - return; - } - $par1NetHandler = new jl_IndexOutOfBoundsException; - $par1NetHandler.$suppressionEnabled = 1; - $par1NetHandler.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1NetHandler); - $rt_throw($par1NetHandler); -}; -$java.nms_Packet55BlockDestroy_getPacketSize = function($this) { - return 13; -}; -$java.nms_Packet55BlockDestroy_getEntityId = function($this) { - return $this.$entityId15; -}; -$java.nms_Packet55BlockDestroy_getPosX = function($this) { - return $this.$posX7; -}; -$java.nms_Packet55BlockDestroy_getPosY = function($this) { - return $this.$posY7; -}; -$java.nms_Packet55BlockDestroy_getPosZ = function($this) { - return $this.$posZ5; -}; -$java.nms_Packet55BlockDestroy_getDestroyedStage = function($this) { - return $this.$destroyedStage; -}; -function nms_Packet56MapChunks() { - var a = this; nms_Packet.call(a); - a.$chunkPostX = null; - a.$chunkPosZ = null; - a.$field_73590_a = null; - a.$field_73588_b = null; - a.$field_73584_f = null; - a.$dataLength = 0; - a.$skyLightSent = 0; -} -$java.nms_Packet56MapChunks_chunkDataNotCompressed = null; -$java.nms_Packet56MapChunks__init_ = function() { - var var_0 = new nms_Packet56MapChunks(); - nms_Packet56MapChunks__init_(var_0); - return var_0; -}; -function nms_Packet56MapChunks__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet56MapChunks_readPacketData = function($this, $par1DataInputStream) { - var $var2, $var5, var$4, var$5, var$6, var$7, $var6, $var7, $var8, $var9, var$12; - $var2 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$dataLength = ji_DataInputStream_readInt($par1DataInputStream); - $var5 = $par1DataInputStream.$in.$read1(); - if ($var5 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$skyLightSent = !$var5 ? 0 : 1; - $this.$chunkPostX = $rt_createIntArray($var2); - $this.$chunkPosZ = $rt_createIntArray($var2); - $this.$field_73590_a = $rt_createIntArray($var2); - $this.$field_73588_b = $rt_createIntArray($var2); - $this.$field_73584_f = $rt_createArray($rt_arraycls($rt_bytecls()), $var2); - if ($java.nms_Packet56MapChunks_chunkDataNotCompressed.data.length < $this.$dataLength) - $java.nms_Packet56MapChunks_chunkDataNotCompressed = $rt_createByteArray($this.$dataLength); - ji_DataInputStream_readFully($par1DataInputStream, $java.nms_Packet56MapChunks_chunkDataNotCompressed, 0, $this.$dataLength); - var$4 = $java.nms_Packet56MapChunks_chunkDataNotCompressed; - var$5 = var$4.data; - var$6 = new cjj_InflaterInputStream; - var$7 = new ji_ByteArrayInputStream; - $var6 = var$5.length; - var$7.$buf = var$4; - var$7.$pos = 0; - var$7.$mark0 = 0; - var$7.$count0 = 0 + $var6 | 0; - cjj_InflaterInputStream__init_0(var$6, var$7, cjj_Inflater__init_0(15, 0), 512, 1); - var$6.$myinflater = 1; - var$7 = new ji_ByteArrayOutputStream; - var$7.$buf1 = $rt_createByteArray(32); - var$4 = $rt_createByteArray(65535); - $var7 = var$4.data.length; - $var6 = cjj_InflaterInputStream_read0(var$6, var$4, 0, $var7); - while ($var6 != (-1)) { - ji_ByteArrayOutputStream_write0(var$7, var$4, 0, $var6); - $var6 = cjj_InflaterInputStream_read0(var$6, var$4, 0, $var7); - } - var$5 = ju_Arrays_copyOf0(var$7.$buf1, var$7.$count1); - $var5 = 0; - $var6 = 0; - while ($var6 < $var2) { - $this.$chunkPostX.data[$var6] = ji_DataInputStream_readInt($par1DataInputStream); - $this.$chunkPosZ.data[$var6] = ji_DataInputStream_readInt($par1DataInputStream); - $this.$field_73590_a.data[$var6] = ji_DataInputStream_readShort($par1DataInputStream); - $this.$field_73588_b.data[$var6] = ji_DataInputStream_readShort($par1DataInputStream); - $var7 = 0; - $var8 = 0; - $var9 = 0; - while ($var9 < 16) { - $var7 = $var7 + ($this.$field_73590_a.data[$var6] >> $var9 & 1) | 0; - $var8 = $var8 + ($this.$field_73588_b.data[$var6] >> $var9 & 1) | 0; - $var9 = $var9 + 1 | 0; - } - var$12 = ((8192 * $var7 | 0) + 256 | 0) + (2048 * $var8 | 0) | 0; - if ($this.$skyLightSent) - var$12 = var$12 + (2048 * $var7 | 0) | 0; - $this.$field_73584_f.data[$var6] = $rt_createByteArray(var$12); - jl_System_arraycopy(var$5, $var5, $this.$field_73584_f.data[$var6], 0, var$12); - $var5 = $var5 + var$12 | 0; - $var6 = $var6 + 1 | 0; - } -}; -$java.nms_Packet56MapChunks_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleMapChunks($par1NetHandler, $this); -}; -$java.nms_Packet56MapChunks_getPacketSize = function($this) { - return (6 + $this.$dataLength | 0) + (12 * $this.$chunkPostX.data.length | 0) | 0; -}; -$java.nms_Packet56MapChunks_getChunkPosX = function($this, $par1) { - return $this.$chunkPostX.data[$par1]; -}; -$java.nms_Packet56MapChunks_getChunkPosZ = function($this, $par1) { - return $this.$chunkPosZ.data[$par1]; -}; -$java.nms_Packet56MapChunks_getNumberOfChunkInPacket = function($this) { - return $this.$chunkPostX.data.length; -}; -$java.nms_Packet56MapChunks_getChunkCompressedData = function($this, $par1) { - return $this.$field_73584_f.data[$par1]; -}; -function nms_Packet56MapChunks__clinit_() { - $java.nms_Packet56MapChunks_chunkDataNotCompressed = $rt_createByteArray(0); -} -function nms_Packet60Explosion() { - var a = this; nms_Packet.call(a); - a.$explosionX = 0.0; - a.$explosionY = 0.0; - a.$explosionZ = 0.0; - a.$explosionSize = 0.0; - a.$chunkPositionRecords = null; - a.$playerVelocityX = 0.0; - a.$playerVelocityY = 0.0; - a.$playerVelocityZ = 0.0; -} -$java.nms_Packet60Explosion__init_ = function() { - var var_0 = new nms_Packet60Explosion(); - nms_Packet60Explosion__init_(var_0); - return var_0; -}; -function nms_Packet60Explosion__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet60Explosion_readPacketData = function($this, $par1DataInputStream) { - var $var2, var$3, $var3, $var4, $var5, $var6, $var7, $var8, $var9, var$11; - $this.$explosionX = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$explosionY = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$explosionZ = $rt_longBitsToDouble(ji_DataInputStream_readLong($par1DataInputStream)); - $this.$explosionSize = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $var2 = ji_DataInputStream_readInt($par1DataInputStream); - var$3 = new ju_ArrayList; - var$3.$array1 = $rt_createArray(jl_Object, $var2); - $this.$chunkPositionRecords = var$3; - $var3 = $this.$explosionX | 0; - $var4 = $this.$explosionY | 0; - $var5 = $this.$explosionZ | 0; - $var6 = 0; - while (true) { - if ($var6 >= $var2) { - $this.$playerVelocityX = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$playerVelocityY = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$playerVelocityZ = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - return; - } - $var7 = $par1DataInputStream.$in.$read1(); - if ($var7 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $var7 = ($var7 << 24 >> 24) + $var3 | 0; - $var8 = $par1DataInputStream.$in.$read1(); - if ($var8 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $var8 = ($var8 << 24 >> 24) + $var4 | 0; - $var9 = $par1DataInputStream.$in.$read1(); - if ($var9 < 0) - break; - $var9 = ($var9 << 24 >> 24) + $var5 | 0; - var$3 = $this.$chunkPositionRecords; - var$11 = new nms_ChunkPosition; - var$11.$x3 = $var7; - var$11.$y2 = $var8; - var$11.$z5 = $var9; - ju_ArrayList_add(var$3, var$11); - $var6 = $var6 + 1 | 0; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet60Explosion_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleExplosion($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet60Explosion_getPacketSize = function($this) { - return (32 + ($this.$chunkPositionRecords.$size0 * 3 | 0) | 0) + 3 | 0; -}; -$java.nms_Packet60Explosion_getPlayerVelocityX = function($this) { - return $this.$playerVelocityX; -}; -$java.nms_Packet60Explosion_getPlayerVelocityY = function($this) { - return $this.$playerVelocityY; -}; -$java.nms_Packet60Explosion_getPlayerVelocityZ = function($this) { - return $this.$playerVelocityZ; -}; -function nms_Packet61DoorChange() { - var a = this; nms_Packet.call(a); - a.$sfxID = 0; - a.$auxData = 0; - a.$posX8 = 0; - a.$posY8 = 0; - a.$posZ6 = 0; - a.$disableRelativeVolume = 0; -} -$java.nms_Packet61DoorChange__init_ = function() { - var var_0 = new nms_Packet61DoorChange(); - nms_Packet61DoorChange__init_(var_0); - return var_0; -}; -function nms_Packet61DoorChange__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet61DoorChange_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$sfxID = ji_DataInputStream_readInt($par1DataInputStream); - $this.$posX8 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$posY8 = var$2 << 24 >> 24 & 255; - $this.$posZ6 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$auxData = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$disableRelativeVolume = !var$2 ? 0 : 1; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet61DoorChange_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleDoorChange($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet61DoorChange_getPacketSize = function($this) { - return 21; -}; -$java.nms_Packet61DoorChange_getRelativeVolumeDisabled = function($this) { - return $this.$disableRelativeVolume; -}; -function nms_Packet62LevelSound() { - var a = this; nms_Packet.call(a); - a.$soundName = null; - a.$effectX = 0; - a.$effectY = 0; - a.$effectZ = 0; - a.$volume0 = 0.0; - a.$pitch7 = 0; -} -$java.nms_Packet62LevelSound__init_ = function() { - var var_0 = new nms_Packet62LevelSound(); - nms_Packet62LevelSound__init_(var_0); - return var_0; -}; -function nms_Packet62LevelSound__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$effectY = 2147483647; -} -$java.nms_Packet62LevelSound_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$soundName = nms_Packet_readString($par1DataInputStream, 32); - $this.$effectX = ji_DataInputStream_readInt($par1DataInputStream); - $this.$effectY = ji_DataInputStream_readInt($par1DataInputStream); - $this.$effectZ = ji_DataInputStream_readInt($par1DataInputStream); - $this.$volume0 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$pitch7 = var$2 & 255; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet62LevelSound_getSoundName = function($this) { - return $this.$soundName; -}; -$java.nms_Packet62LevelSound_getEffectX = function($this) { - return $this.$effectX / 8.0; -}; -$java.nms_Packet62LevelSound_getEffectY = function($this) { - return $this.$effectY / 8.0; -}; -$java.nms_Packet62LevelSound_getEffectZ = function($this) { - return $this.$effectZ / 8.0; -}; -$java.nms_Packet62LevelSound_getVolume = function($this) { - return $this.$volume0; -}; -$java.nms_Packet62LevelSound_getPitch = function($this) { - return $this.$pitch7 / 63.0; -}; -$java.nms_Packet62LevelSound_processPacket = function($this, $par1NetHandler) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1NetHandler = $par1NetHandler.$mc15.$theWorld; - var$2 = $this.$effectX / 8.0; - var$3 = $this.$effectY / 8.0; - var$4 = $this.$effectZ / 8.0; - var$5 = $this.$soundName; - var$6 = $this.$volume0; - var$7 = $this.$pitch7 / 63.0; - var$8 = 0; - $ptr = 1; - case 1: - nms_WorldClient_playSound($par1NetHandler, var$2, var$3, var$4, var$5, var$6, var$7, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_Packet62LevelSound_getPacketSize = function($this) { - return 24; -}; -function nms_Packet63WorldParticles() { - var a = this; nms_Packet.call(a); - a.$particleName = null; - a.$posX9 = 0.0; - a.$posY9 = 0.0; - a.$posZ7 = 0.0; - a.$offsetX0 = 0.0; - a.$offsetY0 = 0.0; - a.$offsetZ = 0.0; - a.$speed0 = 0.0; - a.$quantity = 0; -} -$java.nms_Packet63WorldParticles__init_ = function() { - var var_0 = new nms_Packet63WorldParticles(); - nms_Packet63WorldParticles__init_(var_0); - return var_0; -}; -function nms_Packet63WorldParticles__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet63WorldParticles_readPacketData = function($this, $par1DataInputStream) { - $this.$particleName = nms_Packet_readString($par1DataInputStream, 64); - $this.$posX9 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$posY9 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$posZ7 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$offsetX0 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$offsetY0 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$offsetZ = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$speed0 = $rt_intBitsToFloat(ji_DataInputStream_readInt($par1DataInputStream)); - $this.$quantity = ji_DataInputStream_readInt($par1DataInputStream); -}; -$java.nms_Packet63WorldParticles_getParticleName = function($this) { - return $this.$particleName; -}; -$java.nms_Packet63WorldParticles_getPositionX = function($this) { - return $this.$posX9; -}; -$java.nms_Packet63WorldParticles_getPositionY = function($this) { - return $this.$posY9; -}; -$java.nms_Packet63WorldParticles_getPositionZ = function($this) { - return $this.$posZ7; -}; -$java.nms_Packet63WorldParticles_getOffsetX = function($this) { - return $this.$offsetX0; -}; -$java.nms_Packet63WorldParticles_getOffsetY = function($this) { - return $this.$offsetY0; -}; -$java.nms_Packet63WorldParticles_getOffsetZ = function($this) { - return $this.$offsetZ; -}; -$java.nms_Packet63WorldParticles_getSpeed = function($this) { - return $this.$speed0; -}; -$java.nms_Packet63WorldParticles_getQuantity = function($this) { - return $this.$quantity; -}; -$java.nms_Packet63WorldParticles_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleWorldParticles($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet63WorldParticles_getPacketSize = function($this) { - return 64; -}; -function nms_Packet70GameEvent() { - var a = this; nms_Packet.call(a); - a.$eventType = 0; - a.$gameMode = 0; -} -$java.nms_Packet70GameEvent_clientMessage = null; -$java.nms_Packet70GameEvent__init_ = function() { - var var_0 = new nms_Packet70GameEvent(); - nms_Packet70GameEvent__init_(var_0); - return var_0; -}; -function nms_Packet70GameEvent__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet70GameEvent_readPacketData = function($this, $par1DataInputStream) { - var var$2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$eventType = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$gameMode = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet70GameEvent_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleGameEvent($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet70GameEvent_getPacketSize = function($this) { - return 2; -}; -function nms_Packet70GameEvent__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 4); - var$2 = var$1.data; - var$2[0] = $rt_s(2586); - var$2[1] = null; - var$2[2] = null; - var$2[3] = $rt_s(2587); - $java.nms_Packet70GameEvent_clientMessage = var$1; -} -function nms_Packet71Weather() { - var a = this; nms_Packet.call(a); - a.$entityID = 0; - a.$posX6 = 0; - a.$posY6 = 0; - a.$posZ4 = 0; - a.$isLightningBolt = 0; -} -$java.nms_Packet71Weather__init_ = function() { - var var_0 = new nms_Packet71Weather(); - nms_Packet71Weather__init_(var_0); - return var_0; -}; -function nms_Packet71Weather__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet71Weather_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$entityID = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$isLightningBolt = var$2 << 24 >> 24; - $this.$posX6 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$posY6 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$posZ4 = ji_DataInputStream_readInt($par1DataInputStream); - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet71Weather_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleWeather($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet71Weather_getPacketSize = function($this) { - return 17; -}; -function nms_Packet100OpenWindow() { - var a = this; nms_Packet.call(a); - a.$windowId2 = 0; - a.$inventoryType = 0; - a.$windowTitle = null; - a.$slotsCount0 = 0; - a.$useProvidedWindowTitle = 0; -} -$java.nms_Packet100OpenWindow__init_ = function() { - var var_0 = new nms_Packet100OpenWindow(); - nms_Packet100OpenWindow__init_(var_0); - return var_0; -}; -function nms_Packet100OpenWindow__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet100OpenWindow_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleOpenWindow($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet100OpenWindow_readPacketData = function($this, $par1DataInputStream) { - var var$2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$windowId2 = var$2 << 24 >> 24 & 255; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$inventoryType = var$2 << 24 >> 24 & 255; - $this.$windowTitle = nms_Packet_readString($par1DataInputStream, 32); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$slotsCount0 = var$2 << 24 >> 24 & 255; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$useProvidedWindowTitle = !var$2 ? 0 : 1; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet100OpenWindow_getPacketSize = function($this) { - return 4 + $this.$windowTitle.$characters.data.length | 0; -}; -function nms_Packet101CloseWindow() { - nms_Packet.call(this); - this.$windowId0 = 0; -} -$java.nms_Packet101CloseWindow__init_ = function() { - var var_0 = new nms_Packet101CloseWindow(); - nms_Packet101CloseWindow__init_(var_0); - return var_0; -}; -function nms_Packet101CloseWindow__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet101CloseWindow_processPacket = function($this, $par1NetHandler) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1NetHandler = $par1NetHandler.$mc15.$thePlayer; - $par1NetHandler.$inventory.$itemStack = null; - $par1NetHandler.$openContainer = $par1NetHandler.$inventoryContainer; - var$2 = $par1NetHandler.$mc3; - $par1NetHandler = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, $par1NetHandler); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, var$2, $ptr); -}; -$java.nms_Packet101CloseWindow_readPacketData = function($this, $par1DataInputStream) { - var var$2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$windowId0 = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet101CloseWindow_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - var$2 = $this.$windowId0; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet101CloseWindow_getPacketSize = function($this) { - return 1; -}; -function nms_Packet102WindowClick() { - var a = this; nms_Packet.call(a); - a.$window_Id = 0; - a.$inventorySlot = 0; - a.$mouseClick = 0; - a.$action = 0; - a.$itemStack1 = null; - a.$holdingShift = 0; -} -$java.nms_Packet102WindowClick__init_ = function() { - var var_0 = new nms_Packet102WindowClick(); - nms_Packet102WindowClick__init_(var_0); - return var_0; -}; -function nms_Packet102WindowClick__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet102WindowClick_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet102WindowClick_readPacketData = function($this, $par1DataInputStream) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $$je; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$window_Id = var$2 << 24 >> 24; - $this.$inventorySlot = ji_DataInputStream_readShort($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$mouseClick = var$2 << 24 >> 24; - $this.$action = ji_DataInputStream_readShort($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$holdingShift = var$2 << 24 >> 24; - nms_Packet_$callClinit(); - var$3 = null; - var$2 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$2 >= 0) { - var$4 = $par1DataInputStream.$in.$read1(); - if (var$4 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - var$5 = var$4 << 24 >> 24; - var$4 = ji_DataInputStream_readShort($par1DataInputStream); - var$3 = new nms_ItemStack; - var$3.$stackSize = 0; - var$3.$itemFrame = null; - var$3.$itemID0 = var$2; - var$3.$stackSize = var$5; - var$3.$itemDamage = var$4; - if (var$3.$itemDamage < 0) - var$3.$itemDamage = 0; - var$2 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$2 < 0) - $par1DataInputStream = null; - else { - var$6 = $rt_createByteArray(var$2); - var$4 = var$6.data.length; - ji_DataInputStream_readFully($par1DataInputStream, var$6, 0, var$4); - var$7 = new ji_DataInputStream; - var$8 = new ji_BufferedInputStream; - var$9 = new cjj_GZIPInputStream; - var$10 = new ji_ByteArrayInputStream; - var$10.$buf = var$6; - var$10.$pos = 0; - var$10.$mark0 = 0; - var$10.$count0 = 0 + var$4 | 0; - cjj_InflaterInputStream__init_0(var$9, var$10, cjj_Inflater__init_0(31, 0), 512, 1); - var$9.$myinflater = 1; - var$8.$in = var$9; - var$8.$markpos = (-1); - var$8.$buf0 = $rt_createByteArray(8192); - var$7.$in = var$8; - var$7.$buff = $rt_createByteArray(8); - a: { - try { - $par1DataInputStream = nms_CompressedStreamTools_read(var$7); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par1DataInputStream = $$je; - - } - var$7.$in.$close(); - $rt_throw($par1DataInputStream); - } - var$7.$in.$close(); - } - var$3.$stackTagCompound = $par1DataInputStream; - } - $this.$itemStack1 = var$3; -}; -$java.nms_Packet102WindowClick_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - var$2 = $this.$window_Id; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - ji_DataOutputStream_writeShort($par1DataOutputStream, $this.$inventorySlot); - var$2 = $this.$mouseClick; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - ji_DataOutputStream_writeShort($par1DataOutputStream, $this.$action); - var$2 = $this.$holdingShift; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - nms_Packet_writeItemStack($this.$itemStack1, $par1DataOutputStream); -}; -$java.nms_Packet102WindowClick_getPacketSize = function($this) { - return 11; -}; -function nms_Packet103SetSlot() { - var a = this; nms_Packet.call(a); - a.$windowId3 = 0; - a.$itemSlot = 0; - a.$myItemStack = null; -} -$java.nms_Packet103SetSlot__init_ = function() { - var var_0 = new nms_Packet103SetSlot(); - nms_Packet103SetSlot__init_(var_0); - return var_0; -}; -function nms_Packet103SetSlot__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet103SetSlot_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleSetSlot($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet103SetSlot_readPacketData = function($this, $par1DataInputStream) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $$je; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$windowId3 = var$2 << 24 >> 24; - $this.$itemSlot = ji_DataInputStream_readShort($par1DataInputStream); - nms_Packet_$callClinit(); - var$3 = null; - var$2 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$2 >= 0) { - var$4 = $par1DataInputStream.$in.$read1(); - if (var$4 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - var$5 = var$4 << 24 >> 24; - var$4 = ji_DataInputStream_readShort($par1DataInputStream); - var$3 = new nms_ItemStack; - var$3.$stackSize = 0; - var$3.$itemFrame = null; - var$3.$itemID0 = var$2; - var$3.$stackSize = var$5; - var$3.$itemDamage = var$4; - if (var$3.$itemDamage < 0) - var$3.$itemDamage = 0; - var$2 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$2 < 0) - $par1DataInputStream = null; - else { - var$6 = $rt_createByteArray(var$2); - var$4 = var$6.data.length; - ji_DataInputStream_readFully($par1DataInputStream, var$6, 0, var$4); - var$7 = new ji_DataInputStream; - $par1DataInputStream = 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 + var$4 | 0; - cjj_InflaterInputStream__init_0(var$8, var$9, cjj_Inflater__init_0(31, 0), 512, 1); - var$8.$myinflater = 1; - $par1DataInputStream.$in = var$8; - $par1DataInputStream.$markpos = (-1); - $par1DataInputStream.$buf0 = $rt_createByteArray(8192); - var$7.$in = $par1DataInputStream; - var$7.$buff = $rt_createByteArray(8); - a: { - try { - $par1DataInputStream = nms_CompressedStreamTools_read(var$7); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par1DataInputStream = $$je; - - } - var$7.$in.$close(); - $rt_throw($par1DataInputStream); - } - var$7.$in.$close(); - } - var$3.$stackTagCompound = $par1DataInputStream; - } - $this.$myItemStack = var$3; -}; -$java.nms_Packet103SetSlot_getPacketSize = function($this) { - return 8; -}; -function nms_Packet104WindowItems() { - var a = this; nms_Packet.call(a); - a.$windowId5 = 0; - a.$itemStack3 = null; -} -$java.nms_Packet104WindowItems__init_ = function() { - var var_0 = new nms_Packet104WindowItems(); - nms_Packet104WindowItems__init_(var_0); - return var_0; -}; -function nms_Packet104WindowItems__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet104WindowItems_readPacketData = function($this, $par1DataInputStream) { - var $var2, $var3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $$je; - $var2 = $par1DataInputStream.$in.$read1(); - if ($var2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$windowId5 = $var2 << 24 >> 24; - $var2 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$itemStack3 = $rt_createArray(nms_ItemStack, $var2); - $var3 = 0; - while ($var3 < $var2) { - var$4 = $this.$itemStack3; - nms_Packet_$callClinit(); - var$5 = null; - var$6 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$6 >= 0) { - var$7 = $par1DataInputStream.$in.$read1(); - if (var$7 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - var$8 = var$7 << 24 >> 24; - var$9 = ji_DataInputStream_readShort($par1DataInputStream); - var$5 = new nms_ItemStack; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = var$6; - var$5.$stackSize = var$8; - var$5.$itemDamage = var$9; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$7 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$7 < 0) - var$10 = null; - else { - var$11 = $rt_createByteArray(var$7); - var$6 = var$11.data.length; - ji_DataInputStream_readFully($par1DataInputStream, var$11, 0, var$6); - var$12 = new ji_DataInputStream; - var$13 = new ji_BufferedInputStream; - var$14 = new cjj_GZIPInputStream; - var$15 = new ji_ByteArrayInputStream; - var$15.$buf = var$11; - var$15.$pos = 0; - var$15.$mark0 = 0; - var$15.$count0 = 0 + var$6 | 0; - cjj_InflaterInputStream__init_0(var$14, var$15, cjj_Inflater__init_0(31, 0), 512, 1); - var$14.$myinflater = 1; - var$13.$in = var$14; - var$13.$markpos = (-1); - var$13.$buf0 = $rt_createByteArray(8192); - var$12.$in = var$13; - var$12.$buff = $rt_createByteArray(8); - try { - var$10 = nms_CompressedStreamTools_read(var$12); - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par1DataInputStream = $$je; - var$12.$in.$close(); - $rt_throw($par1DataInputStream); - - } - var$12.$in.$close(); - } - var$5.$stackTagCompound = var$10; - } - var$4.data[$var3] = var$5; - $var3 = $var3 + 1 | 0; - } -}; -$java.nms_Packet104WindowItems_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleWindowItems($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet104WindowItems_getPacketSize = function($this) { - return 3 + ($this.$itemStack3.data.length * 5 | 0) | 0; -}; -function nms_Packet105UpdateProgressbar() { - var a = this; nms_Packet.call(a); - a.$windowId6 = 0; - a.$progressBar = 0; - a.$progressBarValue = 0; -} -$java.nms_Packet105UpdateProgressbar__init_ = function() { - var var_0 = new nms_Packet105UpdateProgressbar(); - nms_Packet105UpdateProgressbar__init_(var_0); - return var_0; -}; -function nms_Packet105UpdateProgressbar__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet105UpdateProgressbar_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleUpdateProgressbar($par1NetHandler, $this); -}; -$java.nms_Packet105UpdateProgressbar_readPacketData = function($this, $par1DataInputStream) { - var var$2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$windowId6 = var$2 << 24 >> 24; - $this.$progressBar = ji_DataInputStream_readShort($par1DataInputStream); - $this.$progressBarValue = ji_DataInputStream_readShort($par1DataInputStream); - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet105UpdateProgressbar_getPacketSize = function($this) { - return 5; -}; -function nms_Packet106Transaction() { - var a = this; nms_Packet.call(a); - a.$windowId4 = 0; - a.$shortWindowId = 0; - a.$accepted = 0; -} -$java.nms_Packet106Transaction__init_ = function() { - var var_0 = new nms_Packet106Transaction(); - nms_Packet106Transaction__init_(var_0); - return var_0; -}; -function nms_Packet106Transaction__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet106Transaction_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleTransaction($par1NetHandler, $this); -}; -$java.nms_Packet106Transaction_readPacketData = function($this, $par1DataInputStream) { - var var$2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$windowId4 = var$2 << 24 >> 24; - $this.$shortWindowId = ji_DataInputStream_readShort($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$accepted = !(var$2 << 24 >> 24) ? 0 : 1; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet106Transaction_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - var$2 = $this.$windowId4; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - ji_DataOutputStream_writeShort($par1DataOutputStream, $this.$shortWindowId); - var$2 = !$this.$accepted ? 0 : 1; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet106Transaction_getPacketSize = function($this) { - return 4; -}; -function nms_Packet107CreativeSetSlot() { - var a = this; nms_Packet.call(a); - a.$slot = 0; - a.$itemStack2 = null; -} -$java.nms_Packet107CreativeSetSlot__init_ = function() { - var var_0 = new nms_Packet107CreativeSetSlot(); - nms_Packet107CreativeSetSlot__init_(var_0); - return var_0; -}; -function nms_Packet107CreativeSetSlot__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet107CreativeSetSlot_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet107CreativeSetSlot_readPacketData = function($this, $par1DataInputStream) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $$je; - $this.$slot = ji_DataInputStream_readShort($par1DataInputStream); - nms_Packet_$callClinit(); - var$2 = null; - var$3 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$3 >= 0) { - var$4 = $par1DataInputStream.$in.$read1(); - if (var$4 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - var$5 = var$4 << 24 >> 24; - var$4 = ji_DataInputStream_readShort($par1DataInputStream); - var$2 = new nms_ItemStack; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = var$5; - var$2.$itemDamage = var$4; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$3 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$3 < 0) - $par1DataInputStream = null; - else { - var$6 = $rt_createByteArray(var$3); - var$4 = var$6.data.length; - ji_DataInputStream_readFully($par1DataInputStream, var$6, 0, var$4); - var$7 = new ji_DataInputStream; - $par1DataInputStream = 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 + var$4 | 0; - cjj_InflaterInputStream__init_0(var$8, var$9, cjj_Inflater__init_0(31, 0), 512, 1); - var$8.$myinflater = 1; - $par1DataInputStream.$in = var$8; - $par1DataInputStream.$markpos = (-1); - $par1DataInputStream.$buf0 = $rt_createByteArray(8192); - var$7.$in = $par1DataInputStream; - var$7.$buff = $rt_createByteArray(8); - a: { - try { - $par1DataInputStream = nms_CompressedStreamTools_read(var$7); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par1DataInputStream = $$je; - - } - var$7.$in.$close(); - $rt_throw($par1DataInputStream); - } - var$7.$in.$close(); - } - var$2.$stackTagCompound = $par1DataInputStream; - } - $this.$itemStack2 = var$2; -}; -$java.nms_Packet107CreativeSetSlot_writePacketData = function($this, $par1DataOutputStream) { - ji_DataOutputStream_writeShort($par1DataOutputStream, $this.$slot); - nms_Packet_writeItemStack($this.$itemStack2, $par1DataOutputStream); -}; -$java.nms_Packet107CreativeSetSlot_getPacketSize = function($this) { - return 8; -}; -function nms_Packet108EnchantItem() { - var a = this; nms_Packet.call(a); - a.$windowId1 = 0; - a.$enchantment = 0; -} -$java.nms_Packet108EnchantItem__init_ = function() { - var var_0 = new nms_Packet108EnchantItem(); - nms_Packet108EnchantItem__init_(var_0); - return var_0; -}; -function nms_Packet108EnchantItem__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet108EnchantItem_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet108EnchantItem_readPacketData = function($this, $par1DataInputStream) { - var var$2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$windowId1 = var$2 << 24 >> 24; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$enchantment = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet108EnchantItem_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - var$2 = $this.$windowId1; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - var$2 = $this.$enchantment; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet108EnchantItem_getPacketSize = function($this) { - return 2; -}; -function nms_Packet130UpdateSign() { - var a = this; nms_Packet.call(a); - a.$xPosition14 = 0; - a.$yPosition13 = 0; - a.$zPosition13 = 0; - a.$signLines = null; -} -$java.nms_Packet130UpdateSign__init_ = function() { - var var_0 = new nms_Packet130UpdateSign(); - nms_Packet130UpdateSign__init_(var_0); - return var_0; -}; -$java.nms_Packet130UpdateSign__init_0 = function(var_0, var_1, var_2, var_3) { - var var_4 = new nms_Packet130UpdateSign(); - $java.nms_Packet130UpdateSign__init_1(var_4, var_0, var_1, var_2, var_3); - return var_4; -}; -function nms_Packet130UpdateSign__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$isChunkDataPacket = 1; -} -$java.nms_Packet130UpdateSign__init_1 = function($this, $par1, $par2, $par3, $par4ArrayOfStr) { - var var$5, var$6; - var$5 = $par4ArrayOfStr.data; - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$isChunkDataPacket = 1; - $this.$xPosition14 = $par1; - $this.$yPosition13 = $par2; - $this.$zPosition13 = $par3; - $par4ArrayOfStr = $rt_createArray(jl_String, 4); - var$6 = $par4ArrayOfStr.data; - var$6[0] = var$5[0]; - var$6[1] = var$5[1]; - var$6[2] = var$5[2]; - var$6[3] = var$5[3]; - $this.$signLines = $par4ArrayOfStr; -}; -$java.nms_Packet130UpdateSign_readPacketData = function($this, $par1DataInputStream) { - var $var2; - $this.$xPosition14 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition13 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$zPosition13 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$signLines = $rt_createArray(jl_String, 4); - $var2 = 0; - while ($var2 < 4) { - $this.$signLines.data[$var2] = nms_Packet_readString($par1DataInputStream, 15); - $var2 = $var2 + 1 | 0; - } -}; -$java.nms_Packet130UpdateSign_writePacketData = function($this, $par1DataOutputStream) { - var $var2, var$3; - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$xPosition14); - ji_DataOutputStream_writeShort($par1DataOutputStream, $this.$yPosition13); - ji_DataOutputStream_writeInt($par1DataOutputStream, $this.$zPosition13); - $var2 = 0; - while ($var2 < 4) { - var$3 = $this.$signLines.data[$var2]; - nms_Packet_$callClinit(); - if (var$3.$characters.data.length > 32767) { - var$3 = new ji_IOException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(374); - $rt_throw(var$3); - } - ji_DataOutputStream_writeShort($par1DataOutputStream, var$3.$characters.data.length); - ji_DataOutputStream_writeChars($par1DataOutputStream, var$3); - $var2 = $var2 + 1 | 0; - } -}; -$java.nms_Packet130UpdateSign_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleUpdateSign($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet130UpdateSign_getPacketSize = function($this) { - var $var1, $var2; - $var1 = 0; - $var2 = 0; - while ($var2 < 4) { - $var1 = $var1 + $this.$signLines.data[$var2].$characters.data.length | 0; - $var2 = $var2 + 1 | 0; - } - return $var1; -}; -function nms_Packet131MapData() { - var a = this; nms_Packet.call(a); - a.$itemID1 = 0; - a.$uniqueID = 0; - a.$itemData = null; -} -$java.nms_Packet131MapData__init_ = function() { - var var_0 = new nms_Packet131MapData(); - nms_Packet131MapData__init_(var_0); - return var_0; -}; -function nms_Packet131MapData__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$isChunkDataPacket = 1; -} -$java.nms_Packet131MapData_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$itemID1 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$uniqueID = ji_DataInputStream_readShort($par1DataInputStream); - $this.$itemData = $rt_createByteArray(ji_DataInputStream_readUnsignedShort($par1DataInputStream)); - var$2 = $this.$itemData; - ji_DataInputStream_readFully($par1DataInputStream, var$2, 0, var$2.data.length); -}; -$java.nms_Packet131MapData_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleMapData($par1NetHandler, $this); -}; -$java.nms_Packet131MapData_getPacketSize = function($this) { - return 4 + $this.$itemData.data.length | 0; -}; -function nms_Packet132TileEntityData() { - var a = this; nms_Packet.call(a); - a.$xPosition15 = 0; - a.$yPosition14 = 0; - a.$zPosition14 = 0; - a.$actionType = 0; - a.$customParam1 = null; -} -$java.nms_Packet132TileEntityData__init_ = function() { - var var_0 = new nms_Packet132TileEntityData(); - nms_Packet132TileEntityData__init_(var_0); - return var_0; -}; -function nms_Packet132TileEntityData__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$isChunkDataPacket = 1; -} -$java.nms_Packet132TileEntityData_readPacketData = function($this, $par1DataInputStream) { - var var$2, var$3, var$4, var$5, var$6, var$7, $$je; - $this.$xPosition15 = ji_DataInputStream_readInt($par1DataInputStream); - $this.$yPosition14 = ji_DataInputStream_readShort($par1DataInputStream); - $this.$zPosition14 = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$actionType = var$2 << 24 >> 24; - nms_Packet_$callClinit(); - var$2 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$2 < 0) - $par1DataInputStream = null; - else { - var$3 = $rt_createByteArray(var$2); - var$4 = var$3.data.length; - ji_DataInputStream_readFully($par1DataInputStream, var$3, 0, var$4); - var$5 = new ji_DataInputStream; - $par1DataInputStream = new ji_BufferedInputStream; - var$6 = new cjj_GZIPInputStream; - var$7 = new ji_ByteArrayInputStream; - var$7.$buf = var$3; - var$7.$pos = 0; - var$7.$mark0 = 0; - var$7.$count0 = 0 + var$4 | 0; - cjj_InflaterInputStream__init_0(var$6, var$7, cjj_Inflater__init_0(31, 0), 512, 1); - var$6.$myinflater = 1; - $par1DataInputStream.$in = var$6; - $par1DataInputStream.$markpos = (-1); - $par1DataInputStream.$buf0 = $rt_createByteArray(8192); - var$5.$in = $par1DataInputStream; - var$5.$buff = $rt_createByteArray(8); - a: { - try { - $par1DataInputStream = nms_CompressedStreamTools_read(var$5); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par1DataInputStream = $$je; - - } - var$5.$in.$close(); - $rt_throw($par1DataInputStream); - } - var$5.$in.$close(); - } - $this.$customParam1 = $par1DataInputStream; -}; -$java.nms_Packet132TileEntityData_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleTileEntityData($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet132TileEntityData_getPacketSize = function($this) { - return 25; -}; -function nms_Packet200Statistic() { - var a = this; nms_Packet.call(a); - a.$statisticId = 0; - a.$amount = 0; -} -$java.nms_Packet200Statistic__init_ = function() { - var var_0 = new nms_Packet200Statistic(); - nms_Packet200Statistic__init_(var_0); - return var_0; -}; -function nms_Packet200Statistic__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet200Statistic_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleStatistic($par1NetHandler, $this); -}; -$java.nms_Packet200Statistic_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$statisticId = ji_DataInputStream_readInt($par1DataInputStream); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$amount = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet200Statistic_getPacketSize = function($this) { - return 6; -}; -function nms_Packet201PlayerInfo() { - var a = this; nms_Packet.call(a); - a.$playerName = null; - a.$isConnected = 0; - a.$ping = 0; -} -$java.nms_Packet201PlayerInfo__init_ = function() { - var var_0 = new nms_Packet201PlayerInfo(); - nms_Packet201PlayerInfo__init_(var_0); - return var_0; -}; -function nms_Packet201PlayerInfo__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet201PlayerInfo_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$playerName = nms_Packet_readString($par1DataInputStream, 16); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$isConnected = !(var$2 << 24 >> 24) ? 0 : 1; - $this.$ping = ji_DataInputStream_readShort($par1DataInputStream); -}; -$java.nms_Packet201PlayerInfo_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handlePlayerInfo($par1NetHandler, $this); -}; -$java.nms_Packet201PlayerInfo_getPacketSize = function($this) { - return (($this.$playerName.$characters.data.length + 2 | 0) + 1 | 0) + 2 | 0; -}; -function nms_Packet202PlayerAbilities() { - var a = this; nms_Packet.call(a); - a.$disableDamage0 = 0; - a.$isFlying0 = 0; - a.$allowFlying0 = 0; - a.$isCreativeMode0 = 0; - a.$flySpeed0 = 0.0; - a.$walkSpeed0 = 0.0; -} -$java.nms_Packet202PlayerAbilities__init_ = function() { - var var_0 = new nms_Packet202PlayerAbilities(); - nms_Packet202PlayerAbilities__init_(var_0); - return var_0; -}; -function nms_Packet202PlayerAbilities__init_0(var_0) { - var var_1 = new nms_Packet202PlayerAbilities(); - $java.nms_Packet202PlayerAbilities__init_0(var_1, var_0); - return var_1; -} -function nms_Packet202PlayerAbilities__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$disableDamage0 = 0; - $this.$isFlying0 = 0; - $this.$allowFlying0 = 0; - $this.$isCreativeMode0 = 0; -} -$java.nms_Packet202PlayerAbilities__init_0 = function($this, $par1PlayerCapabilities) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$disableDamage0 = 0; - $this.$isFlying0 = 0; - $this.$allowFlying0 = 0; - $this.$isCreativeMode0 = 0; - $this.$disableDamage0 = $par1PlayerCapabilities.$disableDamage; - $this.$isFlying0 = $par1PlayerCapabilities.$isFlying; - $this.$allowFlying0 = $par1PlayerCapabilities.$allowFlying; - $this.$isCreativeMode0 = $par1PlayerCapabilities.$isCreativeMode; - $this.$flySpeed0 = $par1PlayerCapabilities.$flySpeed; - $this.$walkSpeed0 = $par1PlayerCapabilities.$walkSpeed; -}; -$java.nms_Packet202PlayerAbilities_readPacketData = function($this, $par1DataInputStream) { - var var$2, $var2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $var2 = var$2 << 24 >> 24; - $this.$disableDamage0 = ($var2 & 1) <= 0 ? 0 : 1; - $this.$isFlying0 = ($var2 & 2) <= 0 ? 0 : 1; - $this.$allowFlying0 = ($var2 & 4) <= 0 ? 0 : 1; - $this.$isCreativeMode0 = ($var2 & 8) <= 0 ? 0 : 1; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$flySpeed0 = (var$2 << 24 >> 24) / 255.0; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$walkSpeed0 = (var$2 << 24 >> 24) / 255.0; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet202PlayerAbilities_writePacketData = function($this, $par1DataOutputStream) { - var $var2; - $var2 = 0; - if ($this.$disableDamage0) - $var2 = 1; - if ($this.$isFlying0) - $var2 = ($var2 | 2) << 24 >> 24; - if ($this.$allowFlying0) - $var2 = ($var2 | 4) << 24 >> 24; - if ($this.$isCreativeMode0) - $var2 = ($var2 | 8) << 24 >> 24; - $par1DataOutputStream.$out.$write0($var2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - $var2 = $this.$flySpeed0 * 255.0 | 0; - $par1DataOutputStream.$out.$write0($var2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; - $var2 = $this.$walkSpeed0 * 255.0 | 0; - $par1DataOutputStream.$out.$write0($var2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet202PlayerAbilities_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handlePlayerAbilities($par1NetHandler, $this); -}; -$java.nms_Packet202PlayerAbilities_getPacketSize = function($this) { - return 2; -}; -$java.nms_Packet202PlayerAbilities_getDisableDamage = function($this) { - return $this.$disableDamage0; -}; -$java.nms_Packet202PlayerAbilities_setDisableDamage = function($this, $par1) { - $this.$disableDamage0 = $par1; -}; -$java.nms_Packet202PlayerAbilities_getFlying = function($this) { - return $this.$isFlying0; -}; -$java.nms_Packet202PlayerAbilities_setFlying = function($this, $par1) { - $this.$isFlying0 = $par1; -}; -$java.nms_Packet202PlayerAbilities_getAllowFlying = function($this) { - return $this.$allowFlying0; -}; -$java.nms_Packet202PlayerAbilities_setAllowFlying = function($this, $par1) { - $this.$allowFlying0 = $par1; -}; -$java.nms_Packet202PlayerAbilities_isCreativeMode = function($this) { - return $this.$isCreativeMode0; -}; -$java.nms_Packet202PlayerAbilities_setCreativeMode = function($this, $par1) { - $this.$isCreativeMode0 = $par1; -}; -$java.nms_Packet202PlayerAbilities_getFlySpeed = function($this) { - return $this.$flySpeed0; -}; -$java.nms_Packet202PlayerAbilities_setFlySpeed = function($this, $par1) { - $this.$flySpeed0 = $par1; -}; -$java.nms_Packet202PlayerAbilities_getWalkSpeed = function($this) { - return $this.$walkSpeed0; -}; -$java.nms_Packet202PlayerAbilities_setWalkSpeed = function($this, $par1) { - $this.$walkSpeed0 = $par1; -}; -function nms_Packet203AutoComplete() { - nms_Packet.call(this); - this.$text1 = null; -} -$java.nms_Packet203AutoComplete__init_ = function() { - var var_0 = new nms_Packet203AutoComplete(); - nms_Packet203AutoComplete__init_(var_0); - return var_0; -}; -function nms_Packet203AutoComplete__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet203AutoComplete_readPacketData = function($this, $par1DataInputStream) { - $this.$text1 = nms_Packet_readString($par1DataInputStream, nms_Packet3Chat_maxChatLength); -}; -$java.nms_Packet203AutoComplete_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - var$2 = $this.$text1; - 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); -}; -$java.nms_Packet203AutoComplete_processPacket = function($this, $par1NetHandler) { - var var$2, var$3; - var$2 = $this.$text1; - var$3 = jur_Pattern_split(jur_Pattern_compile($rt_s(2519), 0), var$2, 0); - if ($par1NetHandler.$mc15.$currentScreen instanceof nms_GuiChat) - nms_GuiChat_func_73894_a($par1NetHandler.$mc15.$currentScreen, var$3); -}; -$java.nms_Packet203AutoComplete_getPacketSize = function($this) { - return 2 + ($this.$text1.$characters.data.length * 2 | 0) | 0; -}; -$java.nms_Packet203AutoComplete_getText = function($this) { - return $this.$text1; -}; -function nms_Packet205ClientCommand() { - nms_Packet.call(this); - this.$forceRespawn = 0; -} -$java.nms_Packet205ClientCommand__init_ = function() { - var var_0 = new nms_Packet205ClientCommand(); - nms_Packet205ClientCommand__init_(var_0); - return var_0; -}; -function nms_Packet205ClientCommand__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet205ClientCommand_readPacketData = function($this, $par1DataInputStream) { - var var$2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$forceRespawn = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet205ClientCommand_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - var$2 = $this.$forceRespawn & 255; - $par1DataOutputStream.$out.$write0(var$2); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0; -}; -$java.nms_Packet205ClientCommand_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet205ClientCommand_getPacketSize = function($this) { - return 1; -}; -function nms_Packet206SetObjective() { - var a = this; nms_Packet.call(a); - a.$objectiveName = null; - a.$objectiveDisplayName = null; - a.$change = 0; -} -$java.nms_Packet206SetObjective__init_ = function() { - var var_0 = new nms_Packet206SetObjective(); - nms_Packet206SetObjective__init_(var_0); - return var_0; -}; -function nms_Packet206SetObjective__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet206SetObjective_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$objectiveName = nms_Packet_readString($par1DataInputStream, 16); - $this.$objectiveDisplayName = nms_Packet_readString($par1DataInputStream, 32); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$change = var$2 << 24 >> 24; - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet206SetObjective_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleSetObjective($par1NetHandler, $this); -}; -$java.nms_Packet206SetObjective_getPacketSize = function($this) { - return (((2 + $this.$objectiveName.$characters.data.length | 0) + 2 | 0) + $this.$objectiveDisplayName.$characters.data.length | 0) + 1 | 0; -}; -function nms_Packet207SetScore() { - var a = this; nms_Packet.call(a); - a.$itemName = null; - a.$scoreName = null; - a.$value9 = 0; - a.$updateOrRemove = 0; -} -$java.nms_Packet207SetScore__init_ = function() { - var var_0 = new nms_Packet207SetScore(); - nms_Packet207SetScore__init_(var_0); - return var_0; -}; -function nms_Packet207SetScore__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$itemName = $rt_s(44); - $this.$scoreName = $rt_s(44); - $this.$value9 = 0; - $this.$updateOrRemove = 0; -} -$java.nms_Packet207SetScore_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$itemName = nms_Packet_readString($par1DataInputStream, 16); - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$updateOrRemove = var$2 << 24 >> 24; - if ($this.$updateOrRemove != 1) { - $this.$scoreName = nms_Packet_readString($par1DataInputStream, 16); - $this.$value9 = ji_DataInputStream_readInt($par1DataInputStream); - } -}; -$java.nms_Packet207SetScore_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleSetScore($par1NetHandler, $this); -}; -$java.nms_Packet207SetScore_getPacketSize = function($this) { - return ((((2 + $this.$itemName.$characters.data.length | 0) + 2 | 0) + $this.$scoreName.$characters.data.length | 0) + 4 | 0) + 1 | 0; -}; -function nms_Packet208SetDisplayObjective() { - var a = this; nms_Packet.call(a); - a.$scoreboardPosition = 0; - a.$scoreName0 = null; -} -$java.nms_Packet208SetDisplayObjective__init_ = function() { - var var_0 = new nms_Packet208SetDisplayObjective(); - nms_Packet208SetDisplayObjective__init_(var_0); - return var_0; -}; -function nms_Packet208SetDisplayObjective__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet208SetDisplayObjective_readPacketData = function($this, $par1DataInputStream) { - var var$2; - var$2 = $par1DataInputStream.$in.$read1(); - if (var$2 >= 0) { - $this.$scoreboardPosition = var$2 << 24 >> 24; - $this.$scoreName0 = nms_Packet_readString($par1DataInputStream, 16); - return; - } - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); -}; -$java.nms_Packet208SetDisplayObjective_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleSetDisplayObjective($par1NetHandler, $this); -}; -$java.nms_Packet208SetDisplayObjective_getPacketSize = function($this) { - return 3 + $this.$scoreName0.$characters.data.length | 0; -}; -function nms_Packet209SetPlayerTeam() { - var a = this; nms_Packet.call(a); - a.$teamName = null; - a.$teamDisplayName = null; - a.$teamPrefix = null; - a.$teamSuffix = null; - a.$playerNames = null; - a.$mode4 = 0; - a.$friendlyFire = 0; -} -$java.nms_Packet209SetPlayerTeam__init_ = function() { - var var_0 = new nms_Packet209SetPlayerTeam(); - nms_Packet209SetPlayerTeam__init_(var_0); - return var_0; -}; -function nms_Packet209SetPlayerTeam__init_($this) { - var var$1; - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$teamName = $rt_s(44); - $this.$teamDisplayName = $rt_s(44); - $this.$teamPrefix = $rt_s(44); - $this.$teamSuffix = $rt_s(44); - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$playerNames = var$1; - $this.$mode4 = 0; -} -$java.nms_Packet209SetPlayerTeam_readPacketData = function($this, $par1DataInputStream) { - var $var2, $var3; - $this.$teamName = nms_Packet_readString($par1DataInputStream, 16); - $var2 = $par1DataInputStream.$in.$read1(); - if ($var2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$mode4 = $var2 << 24 >> 24; - if (!($this.$mode4 && $this.$mode4 != 2)) { - $this.$teamDisplayName = nms_Packet_readString($par1DataInputStream, 32); - $this.$teamPrefix = nms_Packet_readString($par1DataInputStream, 16); - $this.$teamSuffix = nms_Packet_readString($par1DataInputStream, 16); - $var2 = $par1DataInputStream.$in.$read1(); - if ($var2 < 0) { - $par1DataInputStream = new ji_EOFException; - $par1DataInputStream.$suppressionEnabled = 1; - $par1DataInputStream.$writableStackTrace = 1; - $rt_throw($par1DataInputStream); - } - $this.$friendlyFire = $var2 << 24 >> 24; - } - a: { - if (!($this.$mode4 && $this.$mode4 != 3 && $this.$mode4 != 4)) { - $var2 = ji_DataInputStream_readShort($par1DataInputStream); - $var3 = 0; - while (true) { - if ($var3 >= $var2) - break a; - ju_ArrayList_add($this.$playerNames, nms_Packet_readString($par1DataInputStream, 16)); - $var3 = $var3 + 1 | 0; - } - } - } -}; -$java.nms_Packet209SetPlayerTeam_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleSetPlayerTeam($par1NetHandler, $this); -}; -$java.nms_Packet209SetPlayerTeam_getPacketSize = function($this) { - return 3 + $this.$teamName.$characters.data.length | 0; -}; -function nms_Packet250CustomPayload() { - var a = this; nms_Packet.call(a); - a.$channel0 = null; - a.$length6 = 0; - a.$data10 = null; -} -$java.nms_Packet250CustomPayload__init_ = function() { - var var_0 = new nms_Packet250CustomPayload(); - nms_Packet250CustomPayload__init_(var_0); - return var_0; -}; -function nms_Packet250CustomPayload__init_0(var_0, var_1) { - var var_2 = new nms_Packet250CustomPayload(); - $java.nms_Packet250CustomPayload__init_0(var_2, var_0, var_1); - return var_2; -} -function nms_Packet250CustomPayload__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet250CustomPayload__init_0 = function($this, $par1Str, $par2ArrayOfByte) { - var var$3; - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$channel0 = $par1Str; - $this.$data10 = $par2ArrayOfByte; - if ($par2ArrayOfByte !== null) { - $this.$length6 = $par2ArrayOfByte.data.length; - if ($this.$length6 > 32767) { - var$3 = new jl_IllegalArgumentException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(2588); - $rt_throw(var$3); - } - } -}; -$java.nms_Packet250CustomPayload_readPacketData = function($this, $par1DataInputStream) { - var var$2; - $this.$channel0 = nms_Packet_readString($par1DataInputStream, 20); - $this.$length6 = ji_DataInputStream_readShort($par1DataInputStream); - if ($this.$length6 > 0 && $this.$length6 < 32767) { - $this.$data10 = $rt_createByteArray($this.$length6); - var$2 = $this.$data10; - ji_DataInputStream_readFully($par1DataInputStream, var$2, 0, var$2.data.length); - } -}; -$java.nms_Packet250CustomPayload_writePacketData = function($this, $par1DataOutputStream) { - var var$2, var$3, var$4; - var$2 = $this.$channel0; - nms_Packet_$callClinit(); - if (var$2.$characters.data.length > 32767) { - var$2 = new ji_IOException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(374); - $rt_throw(var$2); - } - ji_DataOutputStream_writeShort($par1DataOutputStream, var$2.$characters.data.length); - ji_DataOutputStream_writeChars($par1DataOutputStream, var$2); - ji_DataOutputStream_writeShort($par1DataOutputStream, $this.$length6 << 16 >> 16); - if ($this.$data10 !== null) { - var$3 = $this.$data10; - var$4 = var$3.data.length; - $par1DataOutputStream.$out.$write2(var$3, 0, var$4); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + var$4 | 0; - } -}; -$java.nms_Packet250CustomPayload_processPacket = function($this, $par1NetHandler) { - $java.nms_NetClientHandler_handleCustomPayload($par1NetHandler, $this); -}; -$java.nms_Packet250CustomPayload_getPacketSize = function($this) { - return ((2 + ($this.$channel0.$characters.data.length * 2 | 0) | 0) + 2 | 0) + $this.$length6 | 0; -}; -function nms_Packet252SharedKey() { - nms_Packet.call(this); -} -$java.nms_Packet252SharedKey__init_ = function() { - var var_0 = new nms_Packet252SharedKey(); - nms_Packet252SharedKey__init_(var_0); - return var_0; -}; -function nms_Packet252SharedKey__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet252SharedKey_readPacketData = function($this, $par1DataInputStream) { - var var$2, var$3, var$4; - nms_Packet_$callClinit(); - var$2 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$2 < 0) { - var$3 = new ji_IOException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(2589); - $rt_throw(var$3); - } - var$4 = $rt_createByteArray(var$2); - ji_DataInputStream_readFully($par1DataInputStream, var$4, 0, var$4.data.length); - var$2 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$2 >= 0) { - var$4 = $rt_createByteArray(var$2); - ji_DataInputStream_readFully($par1DataInputStream, var$4, 0, var$4.data.length); - return; - } - var$3 = new ji_IOException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(2589); - $rt_throw(var$3); -}; -$java.nms_Packet252SharedKey_writePacketData = function($this, $par1DataOutputStream) { - var var$2, var$3, var$4; - var$2 = $rt_createByteArray(162); - var$3 = var$2.data; - nms_Packet_$callClinit(); - var$4 = var$3.length; - ji_DataOutputStream_writeShort($par1DataOutputStream, var$4); - $par1DataOutputStream.$out.$write2(var$2, 0, var$4); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + var$4 | 0; - var$2 = $rt_createByteArray(4); - var$4 = var$2.data.length; - ji_DataOutputStream_writeShort($par1DataOutputStream, var$4); - $par1DataOutputStream.$out.$write2(var$2, 0, var$4); - $par1DataOutputStream.$written = $par1DataOutputStream.$written + var$4 | 0; -}; -$java.nms_Packet252SharedKey_processPacket = function($this, $par1NetHandler) { - var var$2; - var$2 = new nms_Packet205ClientCommand; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - var$2.$forceRespawn = 0; - if (!$par1NetHandler.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($par1NetHandler.$netManager, var$2); -}; -$java.nms_Packet252SharedKey_getPacketSize = function($this) { - return 170; -}; -function nms_Packet253ServerAuthData() { - var a = this; nms_Packet.call(a); - a.$serverId = null; - a.$verifyToken = null; -} -$java.nms_Packet253ServerAuthData__init_ = function() { - var var_0 = new nms_Packet253ServerAuthData(); - nms_Packet253ServerAuthData__init_(var_0); - return var_0; -}; -function nms_Packet253ServerAuthData__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$verifyToken = $rt_createByteArray(0); -} -$java.nms_Packet253ServerAuthData_readPacketData = function($this, $par1DataInputStream) { - var var$2, var$3, var$4; - $this.$serverId = nms_Packet_readString($par1DataInputStream, 20); - var$2 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$2 < 0) { - var$3 = new ji_IOException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(2589); - $rt_throw(var$3); - } - var$4 = $rt_createByteArray(var$2); - ji_DataInputStream_readFully($par1DataInputStream, var$4, 0, var$4.data.length); - var$2 = ji_DataInputStream_readShort($par1DataInputStream); - if (var$2 >= 0) { - var$4 = $rt_createByteArray(var$2); - ji_DataInputStream_readFully($par1DataInputStream, var$4, 0, var$4.data.length); - $this.$verifyToken = var$4; - return; - } - var$3 = new ji_IOException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = $rt_s(2589); - $rt_throw(var$3); -}; -$java.nms_Packet253ServerAuthData_processPacket = function($this, $par1NetHandler) { - var var$2; - var$2 = new nms_Packet252SharedKey; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - if (!$par1NetHandler.$disconnected) - nle_WebsocketNetworkManager_addToSendQueue($par1NetHandler.$netManager, var$2); -}; -$java.nms_Packet253ServerAuthData_getPacketSize = function($this) { - return ((((2 + ($this.$serverId.$characters.data.length * 2 | 0) | 0) + 2 | 0) + 0 | 0) + 2 | 0) + $this.$verifyToken.data.length | 0; -}; -function nms_Packet254ServerPing() { - nms_Packet.call(this); - this.$readSuccessfully = 0; -} -$java.nms_Packet254ServerPing__init_ = function() { - var var_0 = new nms_Packet254ServerPing(); - nms_Packet254ServerPing__init_(var_0); - return var_0; -}; -function nms_Packet254ServerPing__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; - $this.$readSuccessfully = 0; -} -$java.nms_Packet254ServerPing_readPacketData = function($this, $par1DataInputStream) { - var $$je; - a: { - try { - $this.$readSuccessfully = ji_DataInputStream_readByte($par1DataInputStream); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Throwable) { - } else { - throw $$e; - } - } - $this.$readSuccessfully = 0; - } -}; -$java.nms_Packet254ServerPing_processPacket = function($this, $par1NetHandler) { - return; -}; -$java.nms_Packet254ServerPing_getPacketSize = function($this) { - return 0; -}; -function nms_Packet255KickDisconnect() { - nms_Packet.call(this); - this.$reason = null; -} -$java.nms_Packet255KickDisconnect__init_ = function() { - var var_0 = new nms_Packet255KickDisconnect(); - nms_Packet255KickDisconnect__init_(var_0); - return var_0; -}; -function nms_Packet255KickDisconnect__init_($this) { - nms_Packet_$callClinit(); - $this.$creationTimeMillis = jl_System_currentTimeMillis(); - $this.$isChunkDataPacket = 0; -} -$java.nms_Packet255KickDisconnect_readPacketData = function($this, $par1DataInputStream) { - $this.$reason = nms_Packet_readString($par1DataInputStream, 256); -}; -$java.nms_Packet255KickDisconnect_writePacketData = function($this, $par1DataOutputStream) { - var var$2; - var$2 = $this.$reason; - 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); -}; -$java.nms_Packet255KickDisconnect_processPacket = function($this, $par1NetHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1NetHandler = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - $java.nms_NetClientHandler_handleKickDisconnect($par1NetHandler, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NetHandler, $ptr); -}; -$java.nms_Packet255KickDisconnect_getPacketSize = function($this) { - return $this.$reason.$characters.data.length; -}; -function nms_EnchantmentProtection() { - nms_Enchantment.call(this); - this.$protectionType = 0; -} -$java.nms_EnchantmentProtection_protectionName = null; -$java.nms_EnchantmentProtection_baseEnchantability = null; -$java.nms_EnchantmentProtection_levelEnchantability = null; -$java.nms_EnchantmentProtection_thresholdEnchantability = null; -$java.nms_EnchantmentProtection_getMaxLevel = function($this) { - return 4; -}; -$java.nms_EnchantmentProtection_calcModifierDamage = function($this, $par1, $par2DamageSource) { - var $var3; - if ($par2DamageSource.$isDamageAllowedInCreativeMode) - return 0; - $var3 = (6 + $rt_imul($par1, $par1) | 0) / 3.0; - if (!$this.$protectionType) { - $var3 = $var3 * 0.75; - $par1 = $var3 | 0; - if ($var3 < $par1) - $par1 = $par1 - 1 | 0; - } else if ($this.$protectionType == 1 && $par2DamageSource.$fireDamage) { - $var3 = $var3 * 1.25; - $par1 = $var3 | 0; - if ($var3 < $par1) - $par1 = $par1 - 1 | 0; - } else if ($this.$protectionType == 2 && $par2DamageSource === nms_DamageSource_fall) { - $var3 = $var3 * 2.5; - $par1 = $var3 | 0; - if ($var3 < $par1) - $par1 = $par1 - 1 | 0; - } else if ($this.$protectionType == 3 && $par2DamageSource.$explosion) { - $var3 = $var3 * 1.5; - $par1 = $var3 | 0; - if ($var3 < $par1) - $par1 = $par1 - 1 | 0; - } else if ($this.$protectionType == 4 && $par2DamageSource.$projectile) { - $var3 = $var3 * 1.5; - $par1 = $var3 | 0; - if ($var3 < $par1) - $par1 = $par1 - 1 | 0; - } else - $par1 = 0; - return $par1; -}; -$java.nms_EnchantmentProtection_getName = function($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(2590)); - var$2 = $java.nms_EnchantmentProtection_protectionName.data[$this.$protectionType]; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.nms_EnchantmentProtection_canApplyTogether = function($this, $par1Enchantment) { - var $var2; - if (!($par1Enchantment instanceof nms_EnchantmentProtection)) - return $this === $par1Enchantment ? 0 : 1; - $var2 = $par1Enchantment; - return $var2.$protectionType == $this.$protectionType ? 0 : $this.$protectionType != 2 && $var2.$protectionType != 2 ? 0 : 1; -}; -function nms_EnchantmentProtection_func_92093_a($par0Entity, $par1) { - var $var2, var$4; - nms_Enchantment_$callClinit(); - $var2 = nms_EnchantmentHelper_getMaxEnchantmentLevel($java.nms_Enchantment_fireProtection.$effectId, $par0Entity.$getLastActiveItems()); - if ($var2 > 0) { - var$4 = $par1 * $var2 * 0.15000000596046448; - $var2 = var$4 | 0; - if (var$4 < $var2) - $var2 = $var2 - 1 | 0; - $par1 = $par1 - $var2 | 0; - } - return $par1; -} -$java.nms_EnchantmentProtection_func_92092_a = function($par0Entity, $par1) { - var $var3, var$4, var$5; - nms_Enchantment_$callClinit(); - $var3 = nms_EnchantmentHelper_getMaxEnchantmentLevel($java.nms_Enchantment_blastProtection.$effectId, $par0Entity.$getLastActiveItems()); - if ($var3 > 0) { - var$4 = $par1 * $var3 * 0.15000000596046448; - var$5 = var$4 | 0; - if (var$4 < var$5) - var$5 = var$5 - 1 | 0; - $par1 = $par1 - var$5; - } - return $par1; -}; -function nms_EnchantmentProtection__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 5); - var$2 = var$1.data; - var$2[0] = $rt_s(2396); - var$2[1] = $rt_s(1636); - var$2[2] = $rt_s(2591); - var$2[3] = $rt_s(2592); - var$2[4] = $rt_s(2593); - $java.nms_EnchantmentProtection_protectionName = var$1; - var$1 = $rt_createIntArray(5); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 10; - var$2[2] = 5; - var$2[3] = 5; - var$2[4] = 3; - $java.nms_EnchantmentProtection_baseEnchantability = var$1; - var$1 = $rt_createIntArray(5); - var$2 = var$1.data; - var$2[0] = 11; - var$2[1] = 8; - var$2[2] = 6; - var$2[3] = 8; - var$2[4] = 6; - $java.nms_EnchantmentProtection_levelEnchantability = var$1; - var$1 = $rt_createIntArray(5); - var$2 = var$1.data; - var$2[0] = 20; - var$2[1] = 12; - var$2[2] = 10; - var$2[3] = 12; - var$2[4] = 15; - $java.nms_EnchantmentProtection_thresholdEnchantability = var$1; -} -$java.nms_EnchantmentOxygen = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentOxygen_getMaxLevel = function($this) { - return 3; -}; -$java.nms_EnchantmentWaterWorker = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentWaterWorker_getMaxLevel = function($this) { - return 1; -}; -function nms_EnchantmentThorns() { - nms_Enchantment.call(this); -} -$java.nms_EnchantmentThorns_getMaxLevel = function($this) { - return 3; -}; -$java.nms_EnchantmentThorns_canApply = function($this, $par1ItemStack) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$par1ItemStack.$itemID0] instanceof nms_ItemArmor ? 1 : $java.nms_EnumEnchantmentType_canEnchantItem($this.$type1, nms_Item_itemsList.data[$par1ItemStack.$itemID0]); -}; -function nms_EnchantmentThorns_func_92096_a($par0Entity, $par1EntityLiving, $par2Random) { - var $var3, $var4, var$6, 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();var$6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2Random = $thread.pop();$par1EntityLiving = $thread.pop();$par0Entity = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Enchantment_$callClinit(); - $var3 = nms_EnchantmentHelper_getMaxEnchantmentLevel($java.nms_Enchantment_thorns.$effectId, $par1EntityLiving.$getLastActiveItems()); - $var4 = $java.nms_EnchantmentHelper_func_92099_a($java.nms_Enchantment_thorns, $par1EntityLiving); - if (!($var3 <= 0 ? 0 : Math.random() >= 0.15000000596046448 * $var3 ? 0 : 1)) { - if ($var4 === null) - return; - var$6 = 1; - $ptr = 1; - continue main; - } - var$7 = new nms_EntityDamageSource; - var$7.$isUnblockable = 0; - var$7.$isDamageAllowedInCreativeMode = 0; - var$7.$hungerDamage = 0.30000001192092896; - var$7.$magicDamage = 0; - var$7.$explosion = 0; - var$7.$damageType = $rt_s(2572); - var$7.$damageSourceEntity = $par1EntityLiving; - var$7.$magicDamage = 1; - var$6 = $var3 > 10 ? $var3 - 10 | 0 : 1 + (Math.random() * 4.0 | 0) | 0; - $ptr = 2; - continue main; - case 1: - nms_ItemStack_damageItem($var4, var$6, $par1EntityLiving); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $par0Entity.$attackEntityFrom(var$7, var$6); - if ($rt_suspending()) { - break main; - } - $par2Random = $rt_s(2594); - var$8 = 0.5; - var$9 = 1.0; - $ptr = 3; - case 3: - $par0Entity.$playSound1($par2Random, var$8, var$9); - if ($rt_suspending()) { - break main; - } - if ($var4 === null) - return; - var$6 = 3; - $ptr = 4; - case 4: - nms_ItemStack_damageItem($var4, var$6, $par1EntityLiving); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0Entity, $par1EntityLiving, $par2Random, $var3, $var4, var$6, var$7, var$8, var$9, $ptr); -} -function nms_EnchantmentDamage() { - nms_Enchantment.call(this); - this.$damageType0 = 0; -} -$java.nms_EnchantmentDamage_protectionName = null; -$java.nms_EnchantmentDamage_baseEnchantability = null; -$java.nms_EnchantmentDamage_levelEnchantability = null; -$java.nms_EnchantmentDamage_thresholdEnchantability = null; -$java.nms_EnchantmentDamage_getMaxLevel = function($this) { - return 5; -}; -$java.nms_EnchantmentDamage_calcModifierLiving = function($this, $par1, $par2EntityLiving) { - var var$3; - if (!$this.$damageType0) { - var$3 = $par1 * 2.75; - $par1 = var$3 | 0; - if (var$3 < $par1) - $par1 = $par1 - 1 | 0; - } else if ($this.$damageType0 == 1 && $par2EntityLiving.$getCreatureAttribute() === nms_EnumCreatureAttribute_UNDEAD) { - var$3 = $par1 * 4.5; - $par1 = var$3 | 0; - if (var$3 < $par1) - $par1 = $par1 - 1 | 0; - } else if ($this.$damageType0 == 2 && $par2EntityLiving.$getCreatureAttribute() === nms_EnumCreatureAttribute_ARTHROPOD) { - var$3 = $par1 * 4.5; - $par1 = var$3 | 0; - if (var$3 < $par1) - $par1 = $par1 - 1 | 0; - } else - $par1 = 0; - return $par1; -}; -$java.nms_EnchantmentDamage_getName = function($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(2595)); - var$2 = $java.nms_EnchantmentDamage_protectionName.data[$this.$damageType0]; - jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.nms_EnchantmentDamage_canApplyTogether = function($this, $par1Enchantment) { - return $par1Enchantment instanceof nms_EnchantmentDamage ? 0 : 1; -}; -$java.nms_EnchantmentDamage_canApply = function($this, $par1ItemStack) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$par1ItemStack.$itemID0] instanceof nms_ItemAxe ? 1 : $java.nms_EnumEnchantmentType_canEnchantItem($this.$type1, nms_Item_itemsList.data[$par1ItemStack.$itemID0]); -}; -function nms_EnchantmentDamage__clinit_() { - var var$1, var$2; - var$1 = $rt_createArray(jl_String, 3); - var$2 = var$1.data; - var$2[0] = $rt_s(2396); - var$2[1] = $rt_s(2596); - var$2[2] = $rt_s(2597); - $java.nms_EnchantmentDamage_protectionName = var$1; - var$1 = $rt_createIntArray(3); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 5; - var$2[2] = 5; - $java.nms_EnchantmentDamage_baseEnchantability = var$1; - var$1 = $rt_createIntArray(3); - var$2 = var$1.data; - var$2[0] = 11; - var$2[1] = 8; - var$2[2] = 8; - $java.nms_EnchantmentDamage_levelEnchantability = var$1; - var$1 = $rt_createIntArray(3); - var$2 = var$1.data; - var$2[0] = 20; - var$2[1] = 20; - var$2[2] = 20; - $java.nms_EnchantmentDamage_thresholdEnchantability = var$1; -} -$java.nms_EnchantmentKnockback = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentKnockback_getMaxLevel = function($this) { - return 2; -}; -$java.nms_EnchantmentFireAspect = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentFireAspect_getMaxLevel = function($this) { - return 2; -}; -$java.nms_EnchantmentLootBonus = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentLootBonus_getMaxLevel = function($this) { - return 3; -}; -$java.nms_EnchantmentLootBonus_canApplyTogether = function($this, $par1Enchantment) { - var var$2; - var$2 = $this === $par1Enchantment ? 0 : 1; - a: { - if (var$2) { - var$2 = $par1Enchantment.$effectId; - nms_Enchantment_$callClinit(); - if (var$2 != $java.nms_Enchantment_silkTouch.$effectId) { - var$2 = 1; - break a; - } - } - var$2 = 0; - } - return var$2; -}; -function nms_EnumEnchantmentType() { - jl_Enum.call(this); -} -$java.nms_EnumEnchantmentType_all = null; -$java.nms_EnumEnchantmentType_armor = null; -$java.nms_EnumEnchantmentType_armor_feet = null; -$java.nms_EnumEnchantmentType_armor_legs = null; -$java.nms_EnumEnchantmentType_armor_torso = null; -$java.nms_EnumEnchantmentType_armor_head = null; -$java.nms_EnumEnchantmentType_weapon = null; -$java.nms_EnumEnchantmentType_digger = null; -$java.nms_EnumEnchantmentType_bow = null; -$java.nms_EnumEnchantmentType_$VALUES = null; -$java.nms_EnumEnchantmentType_canEnchantItem = function($this, $par1Item) { - var $var2; - if ($this === $java.nms_EnumEnchantmentType_all) - return 1; - if (!($par1Item instanceof nms_ItemArmor)) - return $par1Item instanceof nms_ItemSword ? ($this !== $java.nms_EnumEnchantmentType_weapon ? 0 : 1) : $par1Item instanceof nms_ItemTool ? ($this !== $java.nms_EnumEnchantmentType_digger ? 0 : 1) : !($par1Item instanceof nms_ItemBow) ? 0 : $this !== $java.nms_EnumEnchantmentType_bow ? 0 : 1; - if ($this === $java.nms_EnumEnchantmentType_armor) - return 1; - $var2 = $par1Item; - return !$var2.$armorType ? ($this !== $java.nms_EnumEnchantmentType_armor_head ? 0 : 1) : $var2.$armorType == 2 ? ($this !== $java.nms_EnumEnchantmentType_armor_legs ? 0 : 1) : $var2.$armorType == 1 ? ($this !== $java.nms_EnumEnchantmentType_armor_torso ? 0 : 1) : $var2.$armorType != 3 ? 0 : $this !== $java.nms_EnumEnchantmentType_armor_feet ? 0 : 1; -}; -function nms_EnumEnchantmentType__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumEnchantmentType; - var$1.$name2 = $rt_s(2396); - var$1.$ordinal = 0; - $java.nms_EnumEnchantmentType_all = var$1; - var$1 = new nms_EnumEnchantmentType; - var$1.$name2 = $rt_s(2598); - var$1.$ordinal = 1; - $java.nms_EnumEnchantmentType_armor = var$1; - var$1 = new nms_EnumEnchantmentType; - var$1.$name2 = $rt_s(2599); - var$1.$ordinal = 2; - $java.nms_EnumEnchantmentType_armor_feet = var$1; - var$1 = new nms_EnumEnchantmentType; - var$1.$name2 = $rt_s(2600); - var$1.$ordinal = 3; - $java.nms_EnumEnchantmentType_armor_legs = var$1; - var$1 = new nms_EnumEnchantmentType; - var$1.$name2 = $rt_s(2601); - var$1.$ordinal = 4; - $java.nms_EnumEnchantmentType_armor_torso = var$1; - var$1 = new nms_EnumEnchantmentType; - var$1.$name2 = $rt_s(2602); - var$1.$ordinal = 5; - $java.nms_EnumEnchantmentType_armor_head = var$1; - var$1 = new nms_EnumEnchantmentType; - var$1.$name2 = $rt_s(2603); - var$1.$ordinal = 6; - $java.nms_EnumEnchantmentType_weapon = var$1; - var$1 = new nms_EnumEnchantmentType; - var$1.$name2 = $rt_s(2604); - var$1.$ordinal = 7; - $java.nms_EnumEnchantmentType_digger = var$1; - var$1 = new nms_EnumEnchantmentType; - var$1.$name2 = $rt_s(1354); - var$1.$ordinal = 8; - $java.nms_EnumEnchantmentType_bow = var$1; - var$2 = $rt_createArray(nms_EnumEnchantmentType, 9); - var$3 = var$2.data; - var$3[0] = $java.nms_EnumEnchantmentType_all; - var$3[1] = $java.nms_EnumEnchantmentType_armor; - var$3[2] = $java.nms_EnumEnchantmentType_armor_feet; - var$3[3] = $java.nms_EnumEnchantmentType_armor_legs; - var$3[4] = $java.nms_EnumEnchantmentType_armor_torso; - var$3[5] = $java.nms_EnumEnchantmentType_armor_head; - var$3[6] = $java.nms_EnumEnchantmentType_weapon; - var$3[7] = $java.nms_EnumEnchantmentType_digger; - var$3[8] = $java.nms_EnumEnchantmentType_bow; - $java.nms_EnumEnchantmentType_$VALUES = var$2; -} -$java.nms_EnchantmentDigging = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentDigging_getMaxLevel = function($this) { - return 5; -}; -$java.nms_EnchantmentDigging_canApply = function($this, $par1ItemStack) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$par1ItemStack.$itemID0].$itemID == nms_Item_shears.$itemID ? 1 : $java.nms_EnumEnchantmentType_canEnchantItem($this.$type1, nms_Item_itemsList.data[$par1ItemStack.$itemID0]); -}; -$java.nms_EnchantmentUntouching = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentUntouching_getMaxLevel = function($this) { - return 1; -}; -$java.nms_EnchantmentUntouching_canApplyTogether = function($this, $par1Enchantment) { - var var$2; - var$2 = $this === $par1Enchantment ? 0 : 1; - a: { - if (var$2) { - var$2 = $par1Enchantment.$effectId; - nms_Enchantment_$callClinit(); - if (var$2 != $java.nms_Enchantment_fortune.$effectId) { - var$2 = 1; - break a; - } - } - var$2 = 0; - } - return var$2; -}; -$java.nms_EnchantmentUntouching_canApply = function($this, $par1ItemStack) { - nms_Item_$callClinit(); - return nms_Item_itemsList.data[$par1ItemStack.$itemID0].$itemID == nms_Item_shears.$itemID ? 1 : $java.nms_EnumEnchantmentType_canEnchantItem($this.$type1, nms_Item_itemsList.data[$par1ItemStack.$itemID0]); -}; -function nms_EnchantmentDurability() { - nms_Enchantment.call(this); -} -$java.nms_EnchantmentDurability_getMaxLevel = function($this) { - return 3; -}; -$java.nms_EnchantmentDurability_canApply = function($this, $par1ItemStack) { - nms_Item_$callClinit(); - return (nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxDamage <= 0 ? 0 : 1) ? 1 : $java.nms_EnumEnchantmentType_canEnchantItem($this.$type1, nms_Item_itemsList.data[$par1ItemStack.$itemID0]); -}; -function nms_EnchantmentDurability_negateDamage($par0ItemStack, $par1, $par2Random) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par0ItemStack.$itemID0] instanceof nms_ItemArmor && Math.random() < 0.6000000238418579) - $par1 = 0; - else { - $par1 = $par1 + 1 | 0; - $par1 = (Math.random() * $par1 | 0) <= 0 ? 0 : 1; - } - return $par1; -} -$java.nms_EnchantmentArrowDamage = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentArrowDamage_getMaxLevel = function($this) { - return 5; -}; -$java.nms_EnchantmentArrowKnockback = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentArrowKnockback_getMaxLevel = function($this) { - return 2; -}; -$java.nms_EnchantmentArrowFire = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentArrowFire_getMaxLevel = function($this) { - return 1; -}; -$java.nms_EnchantmentArrowInfinite = function() { - nms_Enchantment.call(this); -}; -$java.nms_EnchantmentArrowInfinite_getMaxLevel = function($this) { - return 1; -}; -function otcit_DateTimeZoneProvider() { - jl_Object.call(this); -} -$java.otcit_DateTimeZoneProvider_cache = null; -$java.otcit_DateTimeZoneProvider_$$metadata$$0 = null; -$java.otcit_DateTimeZoneProvider__init_ = function() { - var var_0 = new otcit_DateTimeZoneProvider(); - otcit_DateTimeZoneProvider__init_(var_0); - return var_0; -}; -function otcit_DateTimeZoneProvider__init_($this) { - return; -} -$java.otcit_DateTimeZoneProvider_getTimeZone = function($id) { - var var$2, var$3; - var$2 = $java.otcit_DateTimeZoneProvider_cache; - if ($id !== null) { - var$3 = jl_String_hashCode($id); - var$2 = ju_HashMap_findNonNullKeyEntry(var$2, $id, var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - } 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)) - ju_HashMap_putImpl($java.otcit_DateTimeZoneProvider_cache, $id, $java.otcit_DateTimeZoneProvider_createTimeZone($id)); - var$2 = $java.otcit_DateTimeZoneProvider_cache; - if ($id !== null) { - var$3 = jl_String_hashCode($id); - $id = ju_HashMap_findNonNullKeyEntry(var$2, $id, var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - } else { - $id = var$2.$elementData.data[0]; - while ($id !== null && $id.$key !== null) { - $id = $id.$next1; - } - } - return $id === null ? null : $id.$value0; -}; -$java.otcit_DateTimeZoneProvider_createTimeZone = function($id) { - var $res, $data, $flow, var$5, var$6; - $res = $java.otcit_DateTimeZoneProvider_getTimeZoneResource($id); - if ($res === null) - return null; - $data = ($res.data !== null ? $rt_str($res.data) : null); - $flow = new $java.otci_CharFlow; - $flow.$characters0 = jl_String_toCharArray($data); - if ($java.otci_Base46_decodeUnsigned($flow) != 4) - return $java.otcit_StorableDateTimeZone_read($id, $data); - var$5 = $flow.$pointer; - var$6 = $data.$characters.data.length; - if (var$5 > var$6) { - $id = new jl_IndexOutOfBoundsException; - $id.$suppressionEnabled = 1; - $id.$writableStackTrace = 1; - $rt_throw($id); - } - $flow = jl_String__init_0($data.$characters, var$5, var$6 - var$5 | 0); - $res = new $java.otcit_AliasDateTimeZone; - $data = $java.otcit_DateTimeZoneProvider_getTimeZone($flow); - if ($id !== null) { - $res.$iID = $id; - $res.$innerZone = $data; - return $res; - } - $res = new jl_IllegalArgumentException; - $res.$suppressionEnabled = 1; - $res.$writableStackTrace = 1; - $res.$message = $rt_s(2605); - $rt_throw($res); -}; -$java.otcit_DateTimeZoneProvider_getIds = function() { - var $ids, $area, var$3, var$4, var$5, $areaName, var$7, var$8, var$9, var$10, var$11, $id; - $ids = new ju_ArrayList; - $ids.$array1 = $rt_createArray(jl_Object, 10); - if ($java.otcit_DateTimeZoneProvider_$$metadata$$0 === null) - $java.otcit_DateTimeZoneProvider_$$metadata$$0 = $java.otcit_DateTimeZoneProvider_getResource$$create(); - $area = otpp_ResourceAccessor_keys($java.otcit_DateTimeZoneProvider_$$metadata$$0); - var$3 = $area.length; - var$4 = $rt_createArray(jl_String, var$3).data; - var$5 = 0; - while (var$5 < var$3) { - var$4[var$5] = ($area[var$5] !== null ? $rt_str($area[var$5]) : null); - var$5 = var$5 + 1 | 0; - } - var$3 = var$4.length; - var$5 = 0; - while (var$5 < var$3) { - $areaName = var$4[var$5]; - if ($java.otcit_DateTimeZoneProvider_$$metadata$$0 === null) - $java.otcit_DateTimeZoneProvider_$$metadata$$0 = $java.otcit_DateTimeZoneProvider_getResource$$create(); - var$7 = otpp_ResourceAccessor_keys($java.otcit_DateTimeZoneProvider_$$metadata$$0[$rt_ustr($areaName)]); - var$8 = var$7.length; - var$9 = $rt_createArray(jl_String, var$8).data; - var$10 = 0; - while (var$10 < var$8) { - var$9[var$10] = (var$7[var$10] !== null ? $rt_str(var$7[var$10]) : null); - var$10 = var$10 + 1 | 0; - } - var$11 = var$9.length; - var$8 = 0; - while (var$8 < var$11) { - $id = var$9[var$8]; - if (!($areaName.$characters.data.length ? 0 : 1)) { - $area = new jl_StringBuilder; - $area.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($area, $area.$length, $areaName); - jl_AbstractStringBuilder_insert($area, $area.$length, $rt_s(58)); - jl_AbstractStringBuilder_insert($area, $area.$length, $id); - $id = jl_String__init_0($area.$buffer, 0, $area.$length); - } - ju_ArrayList_add($ids, $id); - var$8 = var$8 + 1 | 0; - } - var$5 = var$5 + 1 | 0; - } - return ju_AbstractCollection_toArray0($ids, $rt_createArray(jl_String, $ids.$size0)); -}; -$java.otcit_DateTimeZoneProvider_timeZoneDetectionEnabled = function() { - return false;}; -$java.otcit_DateTimeZoneProvider_detectTimezone = function() { - var $zones, $time, $offset, var$4, $i, $tzOffset, $tz, $scoreTable, $zoneMap, $id, $queue, $timeInQueue, var$13, $score, $prev, $tzOffset_0, $j; - if (!$java.otcit_DateTimeZoneProvider_timeZoneDetectionEnabled()) - return null; - $zones = new ju_ArrayList; - $zones.$array1 = $rt_createArray(jl_Object, 10); - $time = jl_System_currentTimeMillis(); - $offset = -(new Date(Long_toNumber(jl_System_currentTimeMillis()))).getTimezoneOffset(); - var$4 = $java.otcit_DateTimeZoneProvider_getIds().data; - $i = var$4.length; - $tzOffset = 0; - while ($tzOffset < $i) { - $tz = $java.otcit_DateTimeZoneProvider_getTimeZone(var$4[$tzOffset]); - if (!($tz instanceof $java.otcit_AliasDateTimeZone) && jl_Math_abs(($tz.$getOffset($time) / 60000 | 0) - $offset | 0) <= 120 && Long_ne($tz.$previousTransition($time), $time)) - ju_ArrayList_add($zones, $java.otcit_DateTimeZoneProvider$Score__init_($tz)); - $tzOffset = $tzOffset + 1 | 0; - } - $scoreTable = new ju_ArrayList; - $scoreTable.$array1 = $rt_createArray(jl_Object, 10); - $zoneMap = new ju_AbstractList$1; - $zoneMap.$this$0 = $zones; - $zoneMap.$modCount = $zoneMap.$this$0.$modCount0; - $zoneMap.$size1 = $zoneMap.$this$0.$size2(); - $zoneMap.$removeIndex = (-1); - while (ju_AbstractList$1_hasNext($zoneMap)) { - $java.ju_AbstractList$1_checkConcurrentModification($zoneMap); - $zoneMap.$removeIndex = $zoneMap.$index; - $id = $zoneMap.$this$0; - $i = $zoneMap.$index; - $zoneMap.$index = $i + 1 | 0; - if (!ju_ArrayList_add($scoreTable, $id.$get4($i))) - continue; - } - $zoneMap = ju_HashMap__init_1(16, 0.75); - $queue = new ju_PriorityQueue; - $i = $zones.$size0; - $id = new otcit_DateTimeZoneProvider$1; - if ($i < 1) { - $id = new jl_IllegalArgumentException; - jl_Throwable__init_($id); - $rt_throw($id); - } - $queue.$data11 = $rt_createArray(jl_Object, $i); - $queue.$originalComparator0 = $id; - $queue.$comparator0 = $id; - $timeInQueue = ju_HashSet__init_1(ju_HashMap__init_0()); - $java.ju_AbstractQueue_add($queue, jl_Long_valueOf($time)); - ju_HashMap_put($zoneMap, jl_Long_valueOf($time), ju_ArrayList__init_3($zones)); - a: { - b: { - c: while (true) { - if (ju_AbstractCollection_isEmpty($queue)) - break b; - if (ju_ArrayList_size($scoreTable) <= 1) - break b; - var$13 = jl_Long_longValue($java.ju_AbstractQueue_remove($queue)); - ju_HashSet_remove($timeInQueue, jl_Long_valueOf(var$13)); - $id = ju_HashMap_remove($zoneMap, jl_Long_valueOf(var$13)); - $offset = -(new Date(Long_toNumber(var$13))).getTimezoneOffset(); - $id = ju_AbstractList_iterator($id); - while (ju_AbstractList$1_hasNext($id)) { - $score = ju_AbstractList$1_next($id); - $prev = $score.$tz.$previousTransition(var$13); - if (Long_eq($prev, var$13)) { - if (ju_ArrayList_get($scoreTable, 0) === $score) - break c; - ju_ArrayList_remove0($scoreTable, $score); - } else { - if (jl_Math_abs(($score.$tz.$getOffset(var$13) / 60000 | 0) - $offset | 0) > 120) { - ju_ArrayList_remove0($scoreTable, $score); - continue; - } - ju_Map_computeIfAbsent($zoneMap, jl_Long_valueOf($prev), new otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0).$add($score); - if (ju_HashSet_add($timeInQueue, jl_Long_valueOf($prev))) - $java.ju_AbstractQueue_add($queue, jl_Long_valueOf($prev)); - } - } - if (ju_ArrayList_size($scoreTable) == 1) - break a; - if (Long_eq(ju_ArrayList_get($scoreTable, 0).$tz.$previousTransition(var$13), var$13)) - break a; - if (ju_ArrayList_size($scoreTable) > 1 && (ju_ArrayList_get($scoreTable, 0).$value11 + 2880 | 0) < ju_ArrayList_get($scoreTable, 1).$value11) - return ju_ArrayList_get($scoreTable, 0).$tz; - $i = ju_ArrayList_size($scoreTable) - 1 | 0; - while ($i >= 0) { - $score = ju_ArrayList_get($scoreTable, $i); - $tzOffset_0 = $score.$tz.$getOffset(var$13) / 60000 | 0; - if ($tzOffset_0 != $offset) - $score.$value11 = $score.$value11 + ($rt_imul(Long_div(Long_sub($time, var$13), Long_fromInt(60000)).lo, jl_Math_abs($tzOffset_0 - $offset | 0)) / 30 | 0) | 0; - $j = $i + 1 | 0; - while ($j < ju_ArrayList_size($scoreTable) && $score.$value11 > ju_ArrayList_get($scoreTable, $j).$value11) { - ju_ArrayList_set($scoreTable, $j - 1 | 0, ju_ArrayList_get($scoreTable, $j)); - $j = $j + 1 | 0; - } - ju_ArrayList_set($scoreTable, $j - 1 | 0, $score); - $i = $i + (-1) | 0; - } - $time = var$13; - } - return $score.$tz; - } - return ju_ArrayList_get($scoreTable, 0).$tz; - } - return ju_ArrayList_get($scoreTable, 0).$tz; -}; -$java.otcit_DateTimeZoneProvider_getTimeZoneResource = function($locationName) { - var $sepIndex, $areaName, var$4, $area; - $sepIndex = jl_String_indexOf($locationName, 47, 0); - if ($sepIndex < 0) - $areaName = $rt_s(44); - else { - if (0 > $sepIndex) { - $locationName = new jl_IndexOutOfBoundsException; - $locationName.$suppressionEnabled = 1; - $locationName.$writableStackTrace = 1; - $rt_throw($locationName); - } - $areaName = jl_String__init_0($locationName.$characters, 0, $sepIndex - 0 | 0); - var$4 = $sepIndex + 1 | 0; - $sepIndex = $locationName.$characters.data.length; - if (var$4 > $sepIndex) { - $locationName = new jl_IndexOutOfBoundsException; - $locationName.$suppressionEnabled = 1; - $locationName.$writableStackTrace = 1; - $rt_throw($locationName); - } - $locationName = jl_String__init_0($locationName.$characters, var$4, $sepIndex - var$4 | 0); - } - if ($java.otcit_DateTimeZoneProvider_$$metadata$$0 === null) - $java.otcit_DateTimeZoneProvider_$$metadata$$0 = $java.otcit_DateTimeZoneProvider_getResource$$create(); - if (!$java.otcit_DateTimeZoneProvider_$$metadata$$0.hasOwnProperty($rt_ustr($areaName))) - return null; - if ($java.otcit_DateTimeZoneProvider_$$metadata$$0 === null) - $java.otcit_DateTimeZoneProvider_$$metadata$$0 = $java.otcit_DateTimeZoneProvider_getResource$$create(); - $area = $java.otcit_DateTimeZoneProvider_$$metadata$$0[$rt_ustr($areaName)]; - return !$area.hasOwnProperty($rt_ustr($locationName)) ? null : $area[$rt_ustr($locationName)]; -}; -function otcit_DateTimeZoneProvider__clinit_() { - $java.otcit_DateTimeZoneProvider_cache = ju_HashMap__init_1(16, 0.75); -} -$java.otcit_DateTimeZoneProvider_getResource$$create = function() { - return {"": {"CET": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1s\'\u001e=n11s5\u001e=n1 "}, "EET": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEdAQAQAQAQAQAQAQA+AYAy\'Au\'\u001e=n)1u5\u001e=n) "}, "PST8PDT": {"data" : " ls&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#+H#V#H#y\'H#w\'1=y11w7#=y1 "}, "EST": {"data" - : "#tt"}, "WET": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd 1 1 1 1 1 1 1 + Y y\' u\'\u001e=n)1u5\u001e=n) "}, "HST": {"data" : "#i#i#"}, "CST6CDT": {"data" : " lR&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#+(#V#(#y\'(#w\'1=y11w7#=y1 "}, "MET": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1s\'\u001e=n11s5\u001e=n1 "}, "EST5EDT": - {"data" : " lB&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdt+tV#ty\'tw\'1=y11w7#=y1 "}, "MST7MDT": {"data" : " lc&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#+8#V#8#y\'8#w\'1=y11w7#=y1 "}, "MST": {"data" : "#8#8#"}}, "Asia": {"Gaza": {"data" : " >#&y0=geCs:;{BE*w;{BE*w;Z2E6L;Z2E!o9omE6L;>TE>L=c:C>L=c:C>L=.TEwu?:w?wu?*o?wu?*o?wu?*o?wu?:w?NT=R2C2o=6T?B*?_]AJw;R:CFT;Z2E:w;g&g7B,_/o_@;*eEc!;>eEc!;>eER!;a%AQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQ+AV%Ay\'Aw5\u001e9n) w\'\u001e5n 1"} - , "Makassar": {"data" : " #PPNC+F#+F#n"}, "Ulaanbaatar": {"data" : " h_m4=*o?{JA*o?gm?*o?gm?*o?gm?*o?gm?*o?gm?>LAgm?*o?gm?*o?gm?:Zo#c2;*o?wu?*o?wu?:w?wu?*o?wu?*o?wu?:{*-Vu?Zw?Vu?X#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#V#F#+F#N#F#n"}, "Vladivostok": {"data" : " |om4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%$%g#w#g#V#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#7g#g#g#V#c#g#/w#g#n"} - , "Tashkent": {"data" : " )Ro4=wm?.LAg@b7#&#r7&#&#&#rn"}, "Beirut": {"data" : " KRo8=c2C>T=c2C>T=s:C6L;s2?gm?*o?gm?*o?gm?>LAgm?*o?gm?*o?gm?*o?o}E|AQAQAQAQAQAQAQAQAQAQA+ArAy\'Aw\'\u001e=n 1w5\u001e=n "}, "Qyzylorda": {"data" : " [co4=wm?.LA&Pv*2Mwm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;VTX5@#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r7rrr&#*#rn"}, "Phnom_Penh": {"data" : " #D(DDO+6#+6#n"}, "Hong_Kong": {"data" : " #_m&/+F#+F#n"}, "Kabul": {"data" : " #eR!E+j+jn"}, "Riyadh": - {"data" : " #mqsc5+Q+Qn"}, "Ashgabat": {"data" : " +co4=wm?.LAg@bgL3;r&#rbr;rrrbrn"}, "Chita": {"data" : " !#!o4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%c>!#(%V#g#V#F#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#F#V#7V#V#V#F#c#V#3g#F#V#n"}, "Aqtau": {"data" : " ^co4=wm?.LAg@bgL3:_+wm?wm?wm?wm?*o?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;D#r&#rbr&#r&#r&#brbrbrbrbrbrbrbrbrbr7rrrb9r+bnbn"} - , "Tokyo": {"data" : " #u{2;+V#+V#n"}, "Baku": {"data" : " |so4=wm?.LAg@bwm?&(s%kBEs:;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;kBE$%brbQbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrb;bbbQQg#bn"}, "Kathmandu": {"data" : " #F8R7+&^+&^n"}, "Novosibirsk": {"data" : " $#Bo4=wm?.LAg@bgL3:_+wm?wm?ND)sg5wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%6,8#,%6#F#6##F#6#F#6####################76#6#6##+&#R#$##n"} - , "Aqtobe": {"data" : " `co4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!GH#r&#rbr&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r7rrrb2#rn"}, "Kamchatka": {"data" : " xNm4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE{{bo]9y#*%:%*%w#*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%w#*%7*%*%*%w#Z#*%/w#*%n"}, "Istanbul": {"data" : " 2#&q4=wm?.LAwm?wm?wm?wm?wm?wm?c2?.LAwm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G2_9!!G&<;kBE&<;kBE&<;!!G!g9ouEo]9!!G&<;kBE6D;Z:E&<;6]GZ!9H%AQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQ+A>%An"} - , "Nicosia": {"data" : " Ico4=*o?{JA*o?gm?*o?gm?*o?gm?*o?gm?*o?gm?>LAgm?*o?gm?*o?>DE&<;xAQAQAQAQAQAQAQAQAQAQ+AnAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Pontianak": {"data" : " #wL{9+6#+6#n"}, "Qostanay": {"data" : " ^co4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;D#r&#rbr&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#rrrrb.#rn"}, "Jerusalem": {"data" : " (#&y0=geCs:;{BE*w;{BE*w;Z2E6L;Z2E!o9omE6L;2wA:*Ak2AsB?{:A_e={2Es:;F]GB2?Z*A>T=k2ANeABw={JA{:A>T=k*AB2C_T={JA&!#,%6#F#6##F#6#F#6#F#6#F#6##################76#6#6#&#A6#+&#B#$##n"}, "Kuala_Lumpur": {"data" : " #{_]1+F#+F#n"}, "Kolkata": {"data" : " #8PJC+z+zn"}, "Hanoi": {"data" : " #LAgm?*o?gm?*o?gm?:Zo#c2;*o?wu?*o?wu?:w?wu?*o?wu?*o?wu?:{*-Vu?Zw?Vu?X#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#+6#N#6#n"}, "Baghdad": {"data" : " lso4=wm?.LAJw?*w?*w?*w?wm?*w?wm?*w?wm?*w?*w?*w?wm?*w?wm?*w?wm?*w?*w?*w?wm?*w?wm?*w?wm?*w?*w?*w?wm?*w?wm?*w?wm?*w?a#QbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQ+QV#Qn"} - , "Samarkand": {"data" : " +co4=wm?.LAwm?wm?;r&#r&#r+r1rn"}, "Thimphu": {"data" : " #B.k9+&#+&#n"}, "Dhaka": {"data" : " \'m&0;k>Vt2,*73#&#&#&#n"}, "Yerevan": {"data" : " tso4=wm?.LAg@bwm?wm?wm?wm?wm?wm?wm?w}H#kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Gq#brbQbQbQbQbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrb3bbbAQ+b:#bn"}, "Muscat": {"data" : " #HJgNO+b+bn"}, "Dili": {"data" : " %swT)k.TC/F#V#/F#V#n"}, "Singapore": {"data" : " #{_]1+F#+F#n"}, "Damascus": {"data" : " !#:N6=*o?gm?wu?wu?NTAc:?&eE*g;w}C*g;w}Cs*;(%AQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQ+A{#Ay\'Aw\'\u001e5n 1w5\u001e5n "} - , "Taipei": {"data" : " #V}!/+F#+F#n"}, "Macau": {"data" : " #_m&/+F#+F#n"}, "Choibalsan": {"data" : " jNm4=*o?{JA*o?gm?*o?gm?*o?gm?*o?gm?*o?gm?>LAgm?*o?gm?*o?gm?:Zo#c2;*o?wu?*o?wu?:w?wu?*o?wu?*o?wu?JV(#:c!+Vu?Zw?Vu?]#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#F#V#F#V#F#+V#>#V#+F#1F#n"}, "Amman": {"data" : " (#*V6=J*EV];c2CJ*=R*CR2?*o?wu?*o?.L=s:C>L=sBC>L=c:C>L=c:C>L=BJS&$/*w?*w?wm?*w?*w?wm?*w?.TE&<;VeCJ!=wm?*w?>]Ec*;>]Es2;>]Ec*;>]Ec*;>]Ec*;>]Es2;Bo6#.$1>]E4%AQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQA+A*%Ay\'Aw)#5n 1s5\u001e5n "} - , "Jayapura": {"data" : " #uw>)+V#+V#n"}, "Oral": {"data" : " ^so4=wm?.LAwm?wm?gL3*2Mwm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;D#brbrbrbrbrbrbrbrbrbrbrbrbrbrbr+b1b+r&#bn"}, "Manila": {"data" : " #B{:-+F#+F#n"}, "Dubai": {"data" : " #HJgNO+b+bn"}, "Yakutsk": {"data" : " |!o4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%$%V#g#V#F#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#7V#V#V#F#c#V#/g#V#n"} - , "Seoul": {"data" : " #.(R;+V#+V#n"}, "Qatar": {"data" : " #c!g#+Q+Qn"}, "Hebron": {"data" : " B#&y0=geCs:;{BE*w;{BE*w;Z2E6L;Z2E!o9omE6L;>TE>L=c:C>L=c:C>L=.TEwu?:w?wu?*o?wu?*o?wu?*o?wu?:w?NT=R2C2o=6T?B*?_]AJw;R:Cwm;*wC:w;wuC*o7o_@;*eEc!;>eEc!;>eER!;i%AQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQ+A_%Ay\'Aw5\u001e9n) w\'\u001e5n 1"}, "Bishkek": {"data" : " `Ro4=wm?.LARc[6eG>T=R*C>T=R*C>T=R*C>T=R*CR2?Ro?ZBE6<;ZBE6<;o}E!_9o}E!_9o}E6<;ZBE6<;ZBE6<;o}E!_9H##&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#&##rn"} - , "Tomsk": {"data" : " $#Bo4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;_,%VT?&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%N$.#,%6#F#6##F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6###########76#6#6#&#z6#+&#f$##n"}, "Yekaterinburg": {"data" : " |co4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%$%r&#rbr&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r&#r7rrrbc#r/&#rn"} - , "Colombo": {"data" : " )eFJCcNJj{:;g(m-7z.#&#z7z.#&#zn"}, "Khandyga": {"data" : " $#!o4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBEVD+V4/!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9>e=s_6%,%V#g#V#F#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#V#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#V#7V#V#V#F#*#V#+g#Yg#3w#g#V#n"}, "Dushanbe": {"data" : " )Ro4=wm?.LA:R^7#&#r7&#&#&#rn"}, "Famagusta": {"data" : " 8#co4=*o?{JA*o?gm?*o?gm?*o?gm?*o?gm?*o?gm?>LAgm?*o?gm?*o?>DE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;kBE&<;>$.#o]9!!GT%AQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQA+AJ%Ay\'Au\'\u001e=n)1u5\u001e=n) "} - , "Kuwait": {"data" : " #mqsc5+Q+Qn"}, "Pyongyang": {"data" : " \'q!#$%w#*%w#g#w#*%w#*%w#*%w#*%w#*%w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#7w#w#w#g#Mw#+g#.#g#3w#g#w#n"} - , "Urumqi": {"data" : " #H_oeG+&#+&#n"}, "Shanghai": {"data" : " +k24={BEs:;{BEs:;;F#V#F#V#F#+F#1F#n"}, "Atyrau": {"data" : " [co4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE{{bo]9!!Go]9!!G&<;kBE&<;kBE&<;@#r&#rbr&#r&#r&#r&#r&#r&#r&#rbrbrbrbrbr7rrrb^r+bEbn"}, "Yangon": {"data" : " #DNiC+.#+.#n"}, "Almaty": {"data" : " `Ro4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!GH##&#r#############&#&#&#r2#&#n"}, "Tbilisi": - {"data" : " [so4=wm?.LAg@bVm?gm?*o?gm?*o?F@bgm?>LAwD,#6<;ZBE6<;o}E!_9o}E!_9o}E6<;ZBE6<;ZBE6<;wT/sg5o]9@#brbQbQbQbrbrbrbrbrbrbrbrbrbQb3bbb9Q+bbb3QQbn"}, "Anadyr": {"data" : " xNm4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE{{bo]9y#*%:%*%w#*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%w#*%7*%*%*%w#Z#*%/w#*%n"}, "Vientiane": {"data" : " #D(DDO+6#+6#n"}, "Krasnoyarsk": {"data" : " |Bo4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%$%6#F#6##F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#F#6#76#6#6#&#c#6#/F#6#n"} - , "Brunei": {"data" : " #X8_U+F#+F#n"}, "Omsk": {"data" : " |Ro4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%$%#&#r####################&#&#&#rc#&#/6#&#n"}, "Jakarta": {"data" : " #Tw>)+6#+6#n"}, "Ho_Chi_Minh": {"data" : " #RJw\'+6#+6#n"}, "Ust-Nera": {"data" : " !#_m4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9>e=s_6%(%w#*%w#g#w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#*%w#g#7w#w#w#g#c#w#3*%w#g#n"} - }, "Etc": {"UTC": {"data" : "# "}, "GMT+9": {"data" : "#X#X#"}, "GMT-10": {"data" : "#g#g#"}, "GMT-11": {"data" : "#w#w#"}, "GMT-7": {"data" : "#6#6#"}, "GMT+5": {"data" : "#tt"}, "GMT-8": {"data" : "#F#F#"}, "GMT+6": {"data" : "#(#(#"}, "GMT+12": {"data" : "#,%,%"}, "GMT-9": {"data" : "#V#V#"}, "GMT+7": {"data" : "#8#8#"}, "GMT+11": {"data" : "#y#y#"}, "GMT+8": {"data" : "#H#H#"}, "GMT+10": {"data" : "#i#i#"}, "GMT-3": {"data" : "#QQ"}, "GMT+1": {"data" : "#33"}, "GMT-4": {"data" : "#bb"}, "GMT+2": {"data" - : "#CC"}, "GMT-5": {"data" : "#rr"}, "GMT+3": {"data" : "#SS"}, "GMT-6": {"data" : "#&#&#"}, "GMT+4": {"data" : "#dd"}, "GMT-1": {"data" : "#11"}, "GMT-2": {"data" : "#AA"}, "GMT-12": {"data" : "#*%*%"}, "GMT-13": {"data" : "#:%:%"}, "GMT-14": {"data" : "#J%J%"}, "GMT": {"data" : "# "}}, "Pacific": {"Easter": {"data" : " <#Vi8=_]9>LAR2?2!Gs:;{BEs:;{BEs:;{BEs:;2!G_]92!G>T=R*Cs:;R*C{JA>LAs:;2!G_]92!G_]92!G_]92!Gs:;{BEs:;{BEs:;2!G_]92!G>T=R*Cs:;{BER2?>LAZBEco1w0MBg5NuIVD7::IVD7644#:V/V(Q:V/V(Q:V/NuI6<;]%t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t+(#R%(#y\'(#u)%=y9 u3%=yA1"} - , "Fiji": {"data" : " CTi2LSZTu}n{*5*2MgL3wX!/{*5kBEFD7J:I*V/g(Q*V/{cQcw-BBS_<-l*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%+*%b*%y\'*%w7#=y11w#;=y9 "}, "Port_Moresby": {"data" : " #,(&8h+g#+g#n"}, "Kiritimati": {"data" : " %ZyaV):H00//i#J%/i#J%n"}, "Pohnpei": {"data" : " #e>XC+w#+w#n"}, "Chuuk": {"data" : " #e>XC+g#+g#n"}, "Kwajalein": {"data" : " %yD1_(4C/,%*%/,%*%n"}, "Kosrae": {"data" : " %yD12g&K/*%w#/*%w#n"}, "Auckland": {"data" : " nw(8=:w;VeC:w;VeC:w;VeCNT=B*CNT=B*CNT=B*CNT=VeC:w;VeC:w;VeCNT=B*CNT=B*CNT=VeC:w;VeC:w;VeCNT=B*CNT=B*CNT=B*CNT=B*C.LAe#:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%+*%Z#*%y\'*%s3\u001e=n11s)#=y1 "} - , "Efate": {"data" : " 1>m4=gm?*o?gm?>LAk*5w(QwT/G*%w#*%w#*%w#*%w#+w#=w#n"}, "Niue": {"data" : " #_y<-+y#+y#n"}, "Majuro": {"data" : " #yD1+*%+*%n"}, "Guadalcanal": {"data" : " #HFLuU+w#+w#n"}, "Honolulu": {"data" : " #Hu8A+i#+i#n"}, "Guam": {"data" : " #c_P++g#+g#n"}, "Chatham": {"data" : " nw(8=:w;VeC:w;VeC:w;VeCNT=B*CNT=B*CNT=B*CNT=VeC:w;VeC:w;VeCNT=B*CNT=B*CNT=VeC:w;VeC:w;VeCNT=B*CNT=B*CNT=B*CNT=B*C.LAe#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#kT#VJ#+VJ#Z#VJ#y\'VJ#s3\u001e=n4/1s)#=y4/ "} - , "Midway": {"data" : " #D@6eW+y#+y#n"}, "Tahiti": {"data" : " #i&HuU+i#+i#n"}, "Pago_Pago": {"data" : " #D@6eW+y#+y#n"}, "Galapagos": {"data" : " \'6LAZBEg<;kBElAQAQAQAQAQAQAQAQA+AbAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Dublin": {"data" : " ?N$<=o]9!!G&<;kBE&<;kBE&<;kBE&<;kBE&<;kBE:w;kBEd 1 1 1 1 1 1 1 +1Y1y\'1u\'\u001e=n) u5\u001e=n)3"}, "Zaporozhye": {"data" : " =&q4=wm?.LA6@b*o?gm?*o?gm?*o?gm?Zo?wm?.LAkBE`QbQAQAQAQAQAQA3QQQMAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Kiev": {"data" : " =&q4=wm?.41gXrVm?gm?*o?gm?*o?gm?Zo?wm?.LAkBE`QbQAQAQAQAQAQA/QQQAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Zurich": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "} - , "Copenhagen": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Rome": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Zagreb": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Monaco": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Luxembourg": {"data" - : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Jersey": {"data" : " ?N$<=o]9!!G&<;kBE&<;kBE&<;kBE&<;kBE&<;kBE:w;kBEd 1 1 1 1 1 1 1 + Y y\' u\'\u001e=n)1u5\u001e=n) "}, "Istanbul": {"data" : " 2#&q4=wm?.LAwm?wm?wm?wm?wm?wm?c2?.LAwm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G2_9!!G&<;kBE&<;kBE&<;!!G!g9ouEo]9!!G&<;kBE6D;Z:E&<;6]GZ!9H%AQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQ+A>%An"}, "Ulyanovsk": {"data" : " !#&q4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%R>!#(%QbQAQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQb7QQQAc#Q3bQbn"} - , "Samara": {"data" : " v&q4=wm?.LAF8fwu;wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE{{bo]9u#QbQbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbrbQb3QQQZ#b/Qbn"}, "Sarajevo": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Nicosia": {"data" : " Ico4=*o?{JA*o?gm?*o?gm?*o?gm?*o?gm?*o?gm?>LAgm?*o?gm?*o?>DE&<;xAQAQAQAQAQAQAQAQAQAQ+AnAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Chisinau": {"data" : " E&q4=wm?F,\'2_9wm?wm?Vm?gm?*o?gm?*o?gm?*o?gm?>LAZBEV<;kBEpQbQAQAQAQAQAQAQAQA/QQbAy\'Aw\'\u001e=n11w5\u001e=n9 "} - , "Vatican": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Brussels": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Oslo": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Warsaw": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Lisbon": {"data" - : " =Fq4=wm?.LAwm?wm?wm?V@bwm?wm?wm?wm?wm?_Ph&<;` 1 1 1A1A1A1 1+ 5 +151/ y\' u\'\u001e=n)1u5\u001e=n) "}, "Berlin": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Simferopol": {"data" : " &#&q4={cQs*8#gm?*o?gm?*o?2N%_]9*o?gm?>LA>DEg@b&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBEs:;JBE0%QAQAQAQbQbQbQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAbQ+Q9A+Q5Q+AF#A/bQn"}, "San_Marino": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "} - , "Podgorica": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Athens": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEdAQAQAQAQAQAQAQA+AYAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Bratislava": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Stockholm": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Prague": - {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Uzhgorod": {"data" : " ;&q4={cQ:*Qs>bgm?*o?gm?*o?gm?Zo?wm?.LAkBE[Q1AQAQAQAQAQA/Q1MAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Budapest": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Astrakhan": {"data" : " z&q4=wm?.LAwm?6q&#wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%R>!#}#QbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQb7QQQbZ#Q3bQbn"} - , "Madrid": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Vaduz": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "London": {"data" : " ?N$<=o]9!!G&<;kBE&<;kBE&<;kBE&<;kBE&<;kBE:w;kBEd 1 1 1 1 1 1 1 + Y y\' u\'\u001e=n)1u5\u001e=n) "}, "Vilnius": {"data" : " K6q4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBEg@b&<;c&s%kBE|AQAQAQAQAQAQAQAQA1AQA+AbA711AAy\'Au\'\u001e=n)1u5\u001e=n) "} - , "Isle_of_Man": {"data" : " ?N$<=o]9!!G&<;kBE&<;kBE&<;kBE&<;kBE&<;kBE:w;kBEd 1 1 1 1 1 1 1 + Y y\' u\'\u001e=n)1u5\u001e=n) "}, "Sofia": {"data" : " C6q4=wm?.LAVm?gm?*o?gm?*o?gm?*o?gm?*o?gm?>LAZBEg<;kBElAQAQAQAQAQAQAQAQA+AbAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Kirov": {"data" : " x&q4=wm?.LAwm?6q&#wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%y#QbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQ7QQQbZ#Q/bQn"}, "Tallinn": {"data" : " O6q4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;{BE&<;!!G_@e#kBE(#AQAQAQAQAQAQAQAQAQAQAQA+AzAy\'Au\'\u001e=n)1u5\u001e=n) "} - , "Moscow": {"data" : " |&q4=wm?.LAg@bgL3:_+wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%$%QbQAQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQ7QQQAc#Q/bQn"}, "Malta": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Busingen": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Amsterdam": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "} - , "Andorra": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Riga": {"data" : " O6q4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAwm?*o?kBE&<;kBE&<;!!G.a|!!G(#AQAQAQAQAQAQAQAQAQAQAQA+AzAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Vienna": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Helsinki": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEdAQAQAQAQAQAQAQA+AYAy\'Au\'\u001e=n)1u5\u001e=n) "} - , "Minsk": {"data" : " t&q4=:!J#wm?wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9q#QAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQ+Qc#A+Qn"}, "Kaliningrad": {"data" : " |6q4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%$%AQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQA+Ao#A/QAn"}, "Skopje": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "} - , "Mariehamn": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEdAQAQAQAQAQAQAQA+AYAy\'Au\'\u001e=n)1u5\u001e=n) "}, "Ljubljana": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Tirane": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Guernsey": {"data" : " ?N$<=o]9!!G&<;kBE&<;kBE&<;kBE&<;kBE&<;kBE:w;kBEd 1 1 1 1 1 1 1 + Y y\' u\'\u001e=n)1u5\u001e=n) "}, "Volgograd": - {"data" : " z&q4=wm?.LAwm?6q&#wm?wm?wm?wm?wm?wm?.LAkBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9g(V%s&s%}#QbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQbQb7QQQbZ#Q3bQbn"}, "Paris": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}}, "America": {"Belem": {"data" : " #*s$;+S+Sn"}, "Guayaquil": {"data" : " \'H{y>E>k]([*V+3tdt3tttn"}, "Argentina/Buenos_Aires": {"data" : " 9Fi8=J!9Z:I6D7Z:I6D7Z:IJ!9N<_5N<-2!G_]9WCSCSCSCSCSCS+SMSn"} - , "Costa_Rica": {"data" : " +J2P/FL]/{B=&DCB_);(#t(#t(#+(#1(#n"}, "Hermosillo": {"data" : " /F#kguEFeCJw;FeCJw;FeCC8#(#8#(#8#(#8#+8#98#n"}, "Punta_Arenas": {"data" : " 0#Vi8=_]9>LAR2?2!Gs:;{BEs:;{BEs:;{BEs:;2!G_]92!G>T=R*Cs:;R*C{JA>LAs:;2!G_]92!G_]92!G_]92!Gs:;{BEs:;{BEs:;2!G_]92!G>T=R*Cs:;{BER2?>LAZBEco1w0MBg5NuIVD7::IVD7644#:V/D%SdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdS+d:%dn"}, "Iqaluit": {"data" : " jB&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;kBE6<;F@bZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuI]#tdtdtdtdtdtdtdtdtdtd(#tdtdtdtdtdtdtdt+tnt/(#(#Yty\'tw\'1=y11w7#=y1 "} - , "Godthab": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEdSCSCSCSCSCSCSCS+SYSy\'Su\'\u001e=n)1u5\u001e=n) "}, "El_Salvador": {"data" : " #koN;+(#+(#n"}, "Monterrey": {"data" : " ?6$V;kg@+FeCJw;FeCJw;FeCJw;ZBE6<;ZBE>LA_]9>LAFeCd(#t(#t(#t(#t(#t(#t(#t(#+(#Y(#y\'(#w)#=y11w5\u001e=n1 "}, "Sao_Paulo": {"data" : " >#Fi8=k*5:2Mk*5&TKVL3NmM.41NmM!g5ouI!g5ouIk*5ouI6D7kBINT9F]G6D7F]G_]9F]G6D7ouI!g5NmMBo1&TKk*5o}M6<3ouI!g5NmMVL3Z:I!g5&TKk*5&TK!g5ouI!g5ouI6D7ouIk*5&TKk*5&TK!g5ouI!g5ouI!g5ouI!g5NmMBo1a%CSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCS+SV%Sn"} - , "Bahia": {"data" : " ^Fi8=k*5:2Mk*5&TKVL3NmM.41NmM!g5ouI!g5ouIk*5ouI6D7kBINT9F]G6D7F]G_]9F]G6D7ouI!g5NmMBo1cF6-6D7D#CSCSCSCSCSCSCSCSCSCSCSCSCSCSCS+S:#Sn"}, "Indiana/Winamac": {"data" : " +c{UwiwSVD7>uIBg5;t(#dtd/t(#-ty\'tw\'1=y11w7#=y1 "}, "Grenada": {"data" : " #aR$2W+d+dn"}, "Grand_Turk": {"data" : " 2#B&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIBg5NuIBg5NuIVD7NuIBg5NuIBg5NuIBg5NuIBg5NuIBg5ZZZ%Bg5H%tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtd+t>%ty\'tw\'1=y11w7#=y1 "} - , "Montserrat": {"data" : " #aR$2W+d+dn"}, "Panama": {"data" : " #qVL}Y+t+tn"}, "Guadeloupe": {"data" : " #aR$2W+d+dn"}, "Guatemala": {"data" : " +Rks3koD+>T=c_R5s:;;(#t(#t(#+(#1(#n"}, "Guyana": {"data" : " %JDTZ%Rus6//Sd/Sdn"}, "Swift_Current": {"data" : " #F0a#+(#+(#n"}, "Puerto_Rico": {"data" : " #qmLC+d+dn"}, "Moncton": {"data" : " l2&<=6<;ZBEJw;FeCJw;FeCgJ(3ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEBaH/NuIa#dSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSd+dV#dy\'dw\'1=y11w7#=y1 "} - , "Danmarkshavn": {"data" : " =Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?o<1`SCSCSCSCSCSCS +SQS+ n"}, "Nome": {"data" : " l&(<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#+X#V#X#y\'X#w\'1=y11w7#=y1 "}, "Porto_Velho": {"data" : " #:s$;+d+dn"}, "Cuiaba": {"data" : " :#Vi8=k*5:2Mk*5&TKVL3NmM.41NmM!g5ouI!g5ouIk*5ouI6D7kBINT9F]G6D7F]G_]9F]G6D7ouI!g5NmMBo1.$6#6<3ouI!g5NmMVL3Z:I!g5&TKk*5&TK!g5ouI!g5ouI6D7ouIk*5&TKk*5&TK!g5ouI!g5ouI!g5ouI!g5NmMBo1X%SdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSd+dN%dn"} - , "Pangnirtung": {"data" : " h2&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBEg@bJw;FeCJw;FeCJw;FeCJw;kBE6<;F@bZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIX#dSdSdSdSdSdtdtdtdtd(#tdtdtdtdtdtdtdt+dId+t=t/(#(#Yty\'tw\'1=y11w7#=y1 "}, "Kralendijk": {"data" : " #m_X\'+d+dn"}, "Indiana/Vincennes": {"data" : " +c{UwiwSVD7F@bNuI;t(#tdt;t(#(#tty\'tw\'1=y11w7#=y1 "}, "Indiana/Indianapolis": {"data" : " +c{UFePSZBEVD7NuI;tdtdt+t1ty\'tw\'1=y11w7#=y1 "}, "Belize": {"data" : " #w]J3+(#+(#n"}, "Indiana/Marengo": {"data" : " +Jg2)_yuKZBEVD7NuI;tdtdt+t1ty\'tw\'1=y11w7#=y1 "} - , "Anguilla": {"data" : " #aR$2W+d+dn"}, "Argentina/Ushuaia": {"data" : " 9Fi8=J!9Z:I6D7Z:I6D7Z:IJ!9oP(1*6#*2R%N<-WCSCSCSCSdSCS+S=S+d-Sn"}, "Santiago": {"data" : " <#Vi8=_]9>LAR2?2!Gs:;{BEs:;{BEs:;{BEs:;2!G_]92!G>T=R*Cs:;R*C{JA>LAs:;2!G_]92!G_]92!G_]92!Gs:;{BEs:;{BEs:;2!G_]92!G>T=R*Cs:;{BER2?>LAZBEco1w0MBg5NuIVD7::IVD7644#:V/V(Q:V/V(Q:V/NuI6<;]%SdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdS+dR%dy\'du)%=y9 u3%=yA1"}, "Argentina/Catamarca": {"data" : " 9Fi8=J!9Z:I6D7k:I&D7Z:IJ!92c(1g$#*2R%N<-WCSCdCSCSdSCS7SSSd1S+d-Sn"} - , "Boise": {"data" : " lc&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#+8#V#8#y\'8#w\'1=y11w7#=y1 "}, "Creston": {"data" : " #@T0l+8#+8#n"}, "Miquelon": {"data" : " l!&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#SCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCSCS+SV#Sy\'Sw\'1=y11w7#=y1 "}, "Jamaica": {"data" : " #>8{3+t+tn"} - , "Rankin_Inlet": {"data" : " hR&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;wD,#Jw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIX#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#+(#N#(#y\'(#w\'1=y11w7#=y1 "}, "Toronto": {"data" : " lB&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdt+tV#ty\'tw\'1=y11w7#=y1 "}, "Eirunepe": {"data" : " +Js$;!{()!g5FX>5oXq\';tdtdt;tttdtn"}, "Dawson": {"data" : - " ls&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#+H#V#H#y\'H#w\'1=y11w7#=y1 "}, "Argentina/Mendoza": {"data" : " 9Fi8=J!9geGwe7*!I*o7Z:I:!9Zs&1Bg5&<@%N<-WCdSdSdCSdSCS+S5d3SSd-Sn"}, "Nassau": {"data" : " lB&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdt+tV#ty\'tw\'1=y11w7#=y1 "} - , "Vancouver": {"data" : " ls&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#+H#V#H#y\'H#w\'1=y11w7#=y1 "}, "Noronha": {"data" : " 16i8=k*5kkw-_]9F]Ge%g@b!g5G3C3C3C3C+C=Cn"}, "Argentina/Cordoba": {"data" : " 9Fi8=J!9Z:I6D7k:I&D7Z:IJ!9N<_5N<-2!G_]9WCSCdCSCSCSCS7SSSdASn"}, "Argentina/La_Rioja": {"data" : " ;Fi8=J!9Z:Is27:F+{B=6D7Z:IJ!92c(1g$#*2R%N<-[CSCdSCSCSdSCS7SSSd5S+d-Sn"} - , "Regina": {"data" : " #y(}-+(#+(#n"}, "St_Vincent": {"data" : " #aR$2W+d+dn"}, "Scoresbysund": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd3 3 3 3 3 3 3 3+3Y3y\'3u\'\u001e=n)1u5\u001e=n) "}, "Aruba": {"data" : " #m_X\'+d+dn"}, "North_Dakota/Center": {"data" : " jc&<=6<;ZBEJw;FeCJw;F@bZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuI]#8#(#8#(#8#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#+8#58#+(#:#(#y\'(#w\'1=y11w7#=y1 "}, "Thule": {"data" : " hDXm*S>NR(hgm?*o?gm?>LAZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIX#dSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSd+dN#dy\'dw\'1=y11w7#=y1 "} - , "Argentina/San_Juan": {"data" : " ;Fi8=J!9Z:Is27:F+{B=6D7Z:IJ!9!Z(1!>)!!L%N<-[CSCdSCSCSdSCS7SSSd5S+d-Sn"}, "Rio_Branco": {"data" : " \'Js$;s__=oXq\'3tdt3tdtn"}, "Los_Angeles": {"data" : " ls&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#+H#V#H#y\'H#w\'1=y11w7#=y1 "}, "St_Thomas": {"data" : " #aR$2W+d+dn"}, "Cancun": {"data" : " tguZ1*s:5FeCJw;FeCJw;k*5&y-Jw;ZBE6<;ZBE>LA_]9>LAFeCJw;FeCJw;ZBE6<;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCN41q#tdtdtdt(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t+t5t+(#J#(#+tn"} - , "Maceio": {"data" : " 5Fi8=k*5k>()k*5g}X%_]9F]GRURc`!g5OCSCSCSCSCS+SESn"}, "Sitka": {"data" : " l&(<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#+X#V#X#y\'X#w\'1=y11w7#=y1 "}, "Denver": {"data" : " lc&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#+8#V#8#y\'8#w\'1=y11w7#=y1 "} - , "Cayman": {"data" : " #qVL}Y+t+tn"}, "Thunder_Bay": {"data" : " lB&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdt+tV#ty\'tw\'1=y11w7#=y1 "}, "Nipigon": {"data" : " lB&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdt+tV#ty\'tw\'1=y11w7#=y1 "}, "Havana": {"data" : " zB.8=s2?2*Cs2?.LAc2?.LAc2?.LAc2?.LAc2?.LAwm?wm?wm?.LANT=kBE&<;!!G&<;kBE&<;kBE:w;VeC:w;VeC&<;Z&q#FD7J:IZ!96]GFD7J:IZ!9J:IZ!9_uIZ!9!!G2g5}#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtd+ts#ty\'ts7#=y s\'1=y 1"} - , "Campo_Grande": {"data" : " >#Vi8=k*5:2Mk*5&TKVL3NmM.41NmM!g5ouI!g5ouIk*5ouI6D7kBINT9F]G6D7F]G_]9F]G6D7ouI!g5NmMBo1&TKk*5o}M6<3ouI!g5NmMVL3Z:I!g5&TKk*5&TK!g5ouI!g5ouI6D7ouIk*5&TKk*5&TK!g5ouI!g5ouI!g5ouI!g5NmMBo1a%SdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSd+dV%dn"}, "Cambridge_Bay": {"data" : " hc&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;F@bN}Esc`Jw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIX#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#t(#8#(#8#(#8#(#8#(#8#(#8#(#8#+8#n8#/(#(#U8#y\'8#w\'1=y11w7#=y1 "} - , "Fortaleza": {"data" : " 1Fi8=k*5kkw-_]9F]GRURc`!g5GCSCSCSCS+S=Sn"}, "Managua": {"data" : " 3J:T/{.<1oPO_<12sq%oHy+R2?>DEc:;K(#t(#t(#t(#t(#7(#t(#t5(#n"}, "Menominee": {"data" : " lR&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#+(#V#(#y\'(#w\'1=y11w7#=y1 "}, "Halifax": {"data" : " l2&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#dSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSd+dV#dy\'dw\'1=y11w7#=y1 "} - , "Ojinaga": {"data" : " ^u.4Wsw*!#FeCJw;FeCg@bJw;ZBE6<;ZBE>LA_]9>LAFeCJw;FeCJw;ZBE6<;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCk!9NuID#(#t(#t(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#+(#1(#+8##y\'8#w\'1=y11w7#=y1 "}, "Glace_Bay": {"data" : " l2&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#dSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSd+dV#dy\'dw\'1=y11w7#=y1 "}, "Lower_Princes": {"data" : " #m_X\'+d+dn"}, "Argentina/Tucuman": {"data" : " =Fi8=J!9Z:I6D7k:I&D7Z:IJ!92c(1RE>mR%N<-2!G_]9`CSCdCSCSdSCSCS7SSSd1S+d5Sn"} - , "Indiana/Petersburg": {"data" : " +g<:+sJ8KVD7F@bNuI;t(#tdt;(#(#(#tty\'tw\'1=y11w7#=y1 "}, "Yakutat": {"data" : " l&(<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#+X#V#X#y\'X#w\'1=y11w7#=y1 "}, "Detroit": {"data" : " lB&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdt+tV#ty\'tw\'1=y11w7#=y1 "} - , "Merida": {"data" : " ?F,>3Z_X3FeCJw;FeCJw;FeCJw;ZBE6<;ZBE>LA_]9>LAFeCd(#t(#t(#t(#t(#t(#t(#t(#+(#Y(#y\'(#w)#=y11w5\u001e=n1 "}, "Bahia_Banderas": {"data" : " bF#kguEFeCJw;FeCJw;FeCJw;ZBE6<;ZBE>LA_]9>LAFeCJw;FeCJw;ZBE6<;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;JBE6<;L#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#t(#t+8#6#8#3(#(#(#y\'(#w)#=y11w5\u001e=n1 "}, "Matamoros": {"data" : " `6$V;kg@+FeCJw;FeCJw;FeCJw;ZBE6<;ZBE>LA_]9>LAFeCJw;FeCJw;ZBE6<;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCk!9NuIH#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#+(#>#(#y\'(#w\'1=y11w7#=y1 "} - , "Indiana/Vevay": {"data" : " +R_$%V$(QZBEVD7NuI;tdtdt+t1ty\'tw\'1=y11w7#=y1 "}, "St_Barthelemy": {"data" : " #aR$2W+d+dn"}, "Argentina/San_Luis": {"data" : " ;Fi8=2w9!oEwe7J_/o,B3!>)!!L%w<#k_\'2!G_]92!G[CdSdSdSCSdSdS+S-d7SdSS1d+Sn"}, "Indiana/Tell_City": {"data" : " )c{UwiwSVD7NuI7t(#t(#+t-(#y\'(#w\'1=y11w7#=y1 "}, "Boa_Vista": {"data" : " +:s$;ZND1_]9F]Ge%;dSdSd+d1dn"}, "Metlakatla": {"data" : " 5o8{3N$&OVD7NuIBg5NuIBg5ssW{g\'NuIOH#X#H#X#H#X#H#X#H#X#+H#EX#y\'X#w\'1=y11w7#=y1 "}, "Tortola": {"data" : " #aR$2W+d+dn"} - , "Argentina/Jujuy": {"data" : " 5Fi8=J!9!wIJ!9geCN]9Z:IJ!9N<_5N<-OCdSdCSCSCS+S-d+S5Sn"}, "North_Dakota/New_Salem": {"data" : " jc&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;F@bZBE6<;ZBE6<;ZBEVD7NuI]#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#t(#t(#t(#t(#+8#2#8#+(#=(#y\'(#w\'1=y11w7#=y1 "}, "Inuvik": {"data" : " lc&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#+8#V#8#y\'8#w\'1=y11w7#=y1 "} - , "Port_of_Spain": {"data" : " #aR$2W+d+dn"}, "Paramaribo": {"data" : " #NmZ5+S+Sn"}, "New_York": {"data" : " lB&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdt+tV#ty\'tw\'1=y11w7#=y1 "}, "Manaus": {"data" : " \':s$;!{()!g53dSd3dddn"}, "Resolute": {"data" : " fR&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;wD,#Jw;FeCJw;FeCJw;ZBE6<;ZBE6<;.$.#Bg5T#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t+(#J#(#y\'(#w\'1=y11w7#=y1 "} - , "Curacao": {"data" : " #m_X\'+d+dn"}, "North_Dakota/Beulah": {"data" : " zc&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIBg5NuIBg5NuIVD7F@bNuI}#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#t(#+8#k#8#/(#(#y\'(#w\'1=y11w7#=y1 "}, "Bogota": {"data" : " \'m4*uS:,HDjRk[3tdt3tttn"}, "Adak": {"data" : " l6(<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#X#i#+i#V#i#y\'i#w\'1=y11w7#=y1 "} - , "Mazatlan": {"data" : " ?F#kguEFeCJw;FeCJw;FeCJw;ZBE6<;ZBE>LA_]9>LAFeCd8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#+8#Y8#y\'8#w)#=y11w5\u001e=n1 "}, "Caracas": {"data" : " \'m_X\'!:w^NP$-3dld3dldn"}, "St_Kitts": {"data" : " #aR$2W+d+dn"}, "Argentina/Salta": {"data" : " 5Fi8=J!9Z:I6D7k:I&D7Z:IJ!9N<_5N<-OCSCdCSCSCS7SSSd9Sn"}, "Mexico_City": {"data" : " ?(i};&TubFeCJw;FeCJw;FeCJw;ZBE6<;ZBE>LA_]9>LAFeCd(#t(#t(#t(#t(#t(#t(#t(#+(#Y(#y\'(#w)#=y11w5\u001e=n1 "}, "Edmonton": {"data" : " lc&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#+8#V#8#y\'8#w\'1=y11w7#=y1 "} - , "Kentucky/Louisville": {"data" : " lB&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdtdt+tV#ty\'tw\'1=y11w7#=y1 "}, "Araguaina": {"data" : " IFi8=k*5k>()k*5ouI6D7kBINT9F]G6D7F]G_]9F]G6D7ouI!g5NmMBo16({-k*5xCSCSCSCSCSCSCSCSCSCS+SnSn"}, "Santo_Domingo": {"data" : " \'{cL\'J6eEBN%3dtd3dtdn"}, "Indiana/Knox": {"data" : " /R&<=6<;ZBEJw;Z&47VD7NuIC(#t(#t(#t(#+(#9(#y\'(#w\'1=y11w7#=y1 "}, "Whitehorse": {"data" : - " ls&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#+H#V#H#y\'H#w\'1=y11w7#=y1 "}, "Yellowknife": {"data" : " lc&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#(#8#+8#V#8#y\'8#w\'1=y11w7#=y1 "}, "Kentucky/Monticello": {"data" : " jR&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;F@bZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuI]#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#tdtdtdtdtdtdtdt+(#v(#+tUty\'tw\'1=y11w7#=y1 "} - , "Asuncion": {"data" : " &#kF:=*w;:w?gm?.DA_]9B*GsB?J!A!o9!wEoe92!GR*;R2GJ!9F]G_]92!Gs:;{BEs:;{BEs:;2!Ggm?!_9o}E6<;ZBER*C_]92!G_]92!G_]9F]GJ!9F]GJ!9F]GR2?s2?{JAs2?{JA*o?>T=0%SdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSd+d&%dy\'dw5#=y 1w\'M=y "}, "Santarem": {"data" : " %:s$;s__=/dS/dSn"}, "Antigua": {"data" : " #aR$2W+d+dn"}, "Winnipeg": {"data" : " lc&<=&<;kBE:w;VeC:w;VeC:w;kBE&<;kBE&<;kBE:w;VeC:w;VeC:w;VeC:w;kBE&<;kBE&<;kBE:w;VeC:w;VeC:w;kBE&<;kBE&<;ZBEVD7NuIa#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#+(#V#(#y\'(#w\'1=y11w7#=y1 "} - , "Recife": {"data" : " 1Fi8=k*5kkw-_]9F]Ge%g@b!g5GCSCSCSCS+S=Sn"}, "Lima": {"data" : " +2VH9FX{#gL/sca%gL/;tdtdt+t1tn"}, "Phoenix": {"data" : " #u*V#+8#+8#n"}, "Martinique": {"data" : " #k{e/+d+dn"}, "St_Johns": {"data" : " !#>.P>36<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIBg5NuIBg5NuIVD7NuIBg5g:];Bg5(%[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K+[{#[y\'[w\'1=y11w7#=y1 "}, "Goose_Bay": {"data" : " !#w2P>36<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIBg5NuIBg5NuIVD7NuIBg5g:];Bg5(%dSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdS+d{#dy\'dw\'1=y11w7#=y1 "} - , "Montevideo": {"data" : " ^o$<=k*5ouI6D7ouI!g5Z:I6D7R>>1>LAR*Cs:;geC*w;{BEs:;{BEs:;{BE*w;geC*w;geC*w;{BEs:;{BEs:;{BEs:;D#CSCSCSCSCSCSCSCSCSCSCSCSCSCSCS+S:#Sn"}, "St_Lucia": {"data" : " #aR$2W+d+dn"}, "Chicago": {"data" : " lR&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#+(#V#(#y\'(#w\'1=y11w7#=y1 "}, "Chihuahua": {"data" : " =u.4Wsw*!#FeCJw;FeCg@bJw;ZBE6<;ZBE>LA_]9>LAFeC`(#t(#t(#8#(#8#(#8#(#8#(#8#+(#1(#+8#A8#y\'8#w)#=y11w5\u001e=n1 "} - , "La_Paz": {"data" : " #LmZgC+d+dn"}, "Blanc-Sablon": {"data" : " #qmLC+d+dn"}, "Tijuana": {"data" : " xs&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCk!9NuIy#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#+H#o#H#y\'H#w\'1=y11w7#=y1 "}, "Barbados": {"data" : " #Zce/+d+dn"}, "Anchorage": {"data" : " l&(<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#+X#V#X#y\'X#w\'1=y11w7#=y1 "} - , "Rainy_River": {"data" : " lR&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#t(#+(#V#(#y\'(#w\'1=y11w7#=y1 "}, "Port-au-Prince": {"data" : " `B&<=&<;kBE:w;VeC:w;VeC:w;kBE&<;kBE&<;kBE:w;VeC:w;VeCJg@+ZBE6<;ZBE_0q\'NuIBg5NuIBg5NuIBg5NuIsFzNuIH#tdtdtdtdtdtdtdtdtdtdtdtdtdtdtdt+t>#ty\'tw\'1=y11w7#=y1 "}, "Tegucigalpa": {"data" : " \'koN;6$a964/3(#t(#3(#(#(#n"}, "Cayenne": {"data" : " #L_Z#+S+Sn"} - , "Marigot": {"data" : " #aR$2W+d+dn"}, "Juneau": {"data" : " l&(<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#H#X#+X#V#X#y\'X#w\'1=y11w7#=y1 "}, "Atikokan": {"data" : " #HX(K+t+(#n"}, "Argentina/Rio_Gallegos": {"data" : " 9Fi8=J!9Z:I6D7Z:I6D7Z:IJ!92c(1g$#*2R%N<-WCSCSCSCSdSCS+S=S+d-Sn"}, "Dawson_Creek": {"data" : " #V0a#+8#+H#n"}, "Dominica": {"data" : " #aR$2W+d+dn"}, "Fort_Nelson": - {"data" : " .#s&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIBg5NuIBg5NuIVD7NuIBg5NuIBg5NuIBg5NuIBg5NuIBg5@%H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#H#8#+H#2%H#+8#n"}}, "Africa": {"Tunis": {"data" : " 7&q4=B2Gc*;c_N5s*;6D?!!Go]9!!G&<;kBES1A1A1A1A1A1+1I1n"}, "Maputo": {"data" : " #L41&<;J_+BN%gL3o]9!F)V,\'{*5o]9kg\'BN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RY" - + "BN%&uWV,\'&uWBN%:RYBN%&uWBN%m/ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1+ R# +1.-1n"}, "Johannesburg": {"data" : " #<_VE+A+An"}, "Addis_Ababa": {"data" : " #L42c)+Q+Qn"}, "Lagos": {"data" : " #q.{]O+1+1n"}, "Accra": {"data" : " #q:_a9+ + n"}, "Nairobi": {"data" : " #L42c)+Q+Qn"}, "Brazzaville": {"data" : " #q.{]O+1+1n"}, "Lubumbashi": {"data" : " #L41&<;J_+BN%gL3o]9!F)V,\'{*5o]9kg\'BN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWV,\'&uWBN%:RYBN%&uWBN%:RYBN%&uWV,\'&uWBN%:RY" - + "BN%&uWV,\'&uWBN%:RYBN%&uWBN%m/ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1+ R# +1.-1n"}, "Sao_Tome": {"data" : " \'D:ktoDB_#gHb3 1 3 1 n"}, "Ceuta": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}, "Khartoum": {"data" : " \':2D7g]85J&m93AQA3AQAn"}, "Algiers": {"data" : " #_L01+1+1n"}, "Bujumbura": {"data" : - " #LTEs:;.LEs:;.LEs:;.LEs:;>TEs:;.LEs:;.LEs:;.LEs:;>TEs:;.LEs:;.LEB!;_eE&<7.TI_T5B2Kk*56]K&43_$%c^VuX%F,\'RN%_<)4%AQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQAQA+A*%An"}, "Blantyre": {"data" : " #LLAR2?2!Gs:;{BEs:;{BEs:;{BEs:;2!G_]92!G>T=R*Cs:;R*C{JA>LAs:;2!G_]92!G_]92!G_]92!Gs:;{BEs:;{BEs:;2!G_]92!G>T=R*Cs:;{BER2?>LAZBEco1w0MBg5NuIVD7::IVD7644#:V/D%SdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdS+d:%dn"}, "Troll": {"data" : " \'ZeR4o12(]g23!!G3 A 3 y\' u\'\u001e=n)Au5\u001e=n) "}, "Casey": {"data" : " /P,dR:D[gm7Ny0#Jw3Jw@\':.|CF#w#F#w#F#w#F#CF#w#F#w#F#w#F#n"}, "Vostok": {"data" : " #(0a1+&#+&#n"}, "Syowa": {"data" : " #u:>3+Q+Qn"}, "DumontDUrville": {"data" - : " #DBN3+g#+g#n"}, "McMurdo": {"data" : " nw(8=:w;VeC:w;VeC:w;VeCNT=B*CNT=B*CNT=B*CNT=VeC:w;VeC:w;VeCNT=B*CNT=B*CNT=VeC:w;VeC:w;VeCNT=B*CNT=B*CNT=B*CNT=B*C.LAe#:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%:%*%+*%Z#*%y\'*%s3\u001e=n11s)#=y1 "}, "Mawson": {"data" : " %uBJ7:R*r/&#r/&#rn"}, "Davis": {"data" : " +,>^>L>[ND9gD0#kw3;6#r6#r6#;6#r6#r6#n"}, "Rothera": {"data" : " #>4})+S+Sn"}}, "Australia": {"Broken_Hill": {"data" : " p!!<=2g5_uI2g5_uI2g5_uIFD7_uI2g5_uI2g5_uI&<;kBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!G&<;kBEo]9!!G:w;wm?i#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#+_#_#_#y\'_#s)#=y1 s5#=y11"} - , "Darwin": {"data" : " #D&VE+_#+_#n"}, "Brisbane": {"data" : " -w}:=2g5_uI2g5_uI2g5?w#g#w#g#w#g#+g#5g#n"}, "Currie": {"data" : " nw}:=Z!96]G&<;.LAc2?.LAc2?.LAc2?.LAc2?.LAwm?.LAc2?.LAc2?.LAc2?.LAc2?&<;kBEB*Cc2?.LAc2?.LAc2?.LAc2?.LAwm?wm?c2?B*Cwm?e#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#+g#Z#g#y\'g#s5#=y11s)#=y1 "}, "Lord_Howe": {"data" : " po}:=*g5guI*g5guI*g5guI>D7guI*g5guI*g5guI{:;sBE{:;sBE{:;sBE{:;*!Gg]9.<;cBE*!G{:;sBE{:;sBE{:;*!Gg]9*!G{:;sBEg]9*!G2w;!o?i#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#o#w#+o#_#o#y\'o#w)#=y1 w5#=y1)"} - , "Lindeman": {"data" : " 5w}:=2g5_uI2g5_uI2g5_uIFD7_uI2g5Ow#g#w#g#w#g#w#g#w#g#+g#Eg#n"}, "Perth": {"data" : " 3.]45_]R+Ro1_DZ5gL3!!G&<;kBE&<;KF#V#F#V#F#V#F#V#F#+F#AF#n"}, "Adelaide": {"data" : " p!!<=Z!96]G2g5_uIo]9!!GFD7_uIZ!96]Go]9!!G&<;kBE&<;kBE&<;kBE&<;!!Go]9!!Go]9!!G&<;kBE&<;kBE&<;!!Go]9!!G&<;kBEo]9!!G:w;wm?i#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#_#o#+_#_#_#y\'_#s)#=y1 s5#=y11"}, "Eucla": {"data" : " 3&w:_-_]R+Ro1_DZ5gL3!!G&<;kBE&<;Kc|w*#c|w*#c|w*#c|w*#c|+c|Ac|n"} - , "Sydney": {"data" : " pw}:=2g5_uI2g5_uI2g5_uIFD7_uI2g5_uI2g5_uI&<;kBE&<;kBE&<;kBE&<;!!Go]9&<;kBE!!G&<;kBE&<;kBE&<;!!Go]9!!G&<;kBEo]9!!G:w;wm?i#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#+g#_#g#y\'g#s)#=y1 s5#=y11"}, "Melbourne": {"data" : " pw}:=Z!96]G2g5_uI2g5_uIFD7_uI2g5_uIo]9!!G&<;kBE&<;kBE&<;kBE&<;!!Go]9&<;kBE!!G&<;kBE&<;kBE&<;!!Go]9!!G&<;kBEo]9!!G:w;wm?i#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#+g#_#g#y\'g#s)#=y1 s5#=y11"}, "Hobart": - {"data" : " nw}:=Z!96]G&<;.LAc2?.LAc2?.LAc2?.LAc2?.LAwm?.LAc2?.LAc2?.LAc2?.LAc2?&<;kBEB*Cc2?.LAc2?.LAc2?.LAc2?.LAwm?wm?c2?B*Cwm?e#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#w#g#+g#Z#g#y\'g#s5#=y11s)#=y1 "}}, "Arctic": {"Longyearbyen": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd1A1A1A1A1A1A1A1+1Y1y\'1u\'\u001e=n)1u5\u001e=n) "}}, "Atlantic": {"St_Helena": {"data" : " #y!_8W+ + n"}, "Reykjavik": {"data" : " #yP8#+ + n"}, "Stanley": {"data" : " xNX2=&]Gk!9&]G!_9o}E!_9o}E!_9o}E!_9o}E!_9&]G!_9o}E!_9o}E!_9o}E!_9o}E!_92!Gk!9::IVD7::Ik!9&]Gk!9&]Gk!9&]Gk!9&]Gk!9::Ik!9&]Gk!9&]Gk!9y#SdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdS+dk#d+Sn"} - , "Faroe": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd 1 1 1 1 1 1 1 + Y y\' u\'\u001e=n)1u5\u001e=n) "}, "Madeira": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd 1 1 1 1 1 1 1 + Y y\' u\'\u001e=n)1u5\u001e=n) "}, "Canary": {"data" : " ?Fq4=wm?.LAwm?wm?wm?wm?wm?wm?wm?wm?wm?wm?.LAkBEd 1 1 1 1 1 1 1 + Y y\' u\'\u001e=n)1u5\u001e=n) "}, "Bermuda": {"data" : " l2&<=6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEJw;FeCJw;FeCJw;ZBE6<;ZBE6<;ZBEVD7NuIa#dSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSdSd+dV#dy\'dw\'1=y11w7#=y1 "} - , "Azores": {"data" : " ;Vq4=wm?.LAwm?wm?wm?&q&#wm?wm?wm?wm?.LAkBE[3 3 3 3 3 3 3+3Q3y\'3u\'\u001e=n)1u5\u001e=n) "}, "South_Georgia": {"data" : " #0:(Xl+C+Cn"}, "Cape_Verde": {"data" : " #>L8)+3+3n"}}}; -}; -$java.ju_IANATimeZone = function() { - var a = this; ju_TimeZone.call(a); - a.$underlyingZone = null; - a.$rawOffset = 0; - a.$diff = 0; -}; -$java.ju_IANATimeZone_getOffset = function($this, $time) { - return ($this.$rawOffset + $this.$diff | 0) + $this.$underlyingZone.$getOffset($time) | 0; -}; -$java.ju_IANATimeZone_clone = function($this) { - var $copy, $$je; - a: { - try { - $copy = jl_Object_clone($this); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_CloneNotSupportedException) { - } else { - throw $$e; - } - } - $copy = null; - } - $copy = $copy; - $copy.$rawOffset = $this.$rawOffset; - $copy.$underlyingZone = $this.$underlyingZone; - return $copy; -}; -$java.ju_IANATimeZone_clone0 = function($this) { - var var$1, $$je; - a: { - try { - var$1 = jl_Object_clone($this); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_CloneNotSupportedException) { - } else { - throw $$e; - } - } - var$1 = null; - } - var$1 = var$1; - var$1.$rawOffset = $this.$rawOffset; - var$1.$underlyingZone = $this.$underlyingZone; - return var$1; -}; -$java.otcit_DateTimeZone = function() { - jl_Object.call(this); - this.$iID = null; -}; -$java.otcit_DateTimeZone_getID = function($this) { - return $this.$iID; -}; -$java.otcit_StorableDateTimeZone = function() { - $java.otcit_DateTimeZone.call(this); -}; -$java.otcit_StorableDateTimeZone_readTime = function($flow) { - var var$2, $value; - var$2 = Long_fromInt($java.otci_Base46_decodeUnsigned($flow)); - $value = Long_div(var$2, Long_fromInt(2)); - if (Long_ne(Long_rem(var$2, Long_fromInt(2)), Long_ZERO)) - $value = Long_neg($value); - if (Long_ne(Long_and($value, Long_fromInt(1)), Long_ZERO)) - return Long_mul(Long_shr($value, 1), Long_fromInt(60000)); - return Long_mul(Long_shr($value, 1), Long_fromInt(1800000)); -}; -$java.otcit_StorableDateTimeZone_readUnsignedTime = function($flow) { - var $value; - $value = $java.otci_Base46_decodeUnsignedLong($flow); - if (Long_ne(Long_and($value, Long_fromInt(1)), Long_ZERO)) - return Long_mul(Long_shru($value, 1), Long_fromInt(60000)); - return Long_mul(Long_shru($value, 1), Long_fromInt(1800000)); -}; -$java.otcit_StorableDateTimeZone_readTimeArray = function($flow, $array) { - var $index, var$4, var$5, $count, $t, var$8; - $index = 0; - while (true) { - var$4 = $array.data; - if ($index >= var$4.length) - break; - var$5 = $java.otci_Base46_decodeUnsigned($flow); - $count = var$5 / 2 | 0; - if (var$5 % 2 | 0) - $count = -$count; - if ($count < 0) { - var$5 = $count ^ (-1); - while (true) { - $t = var$5 + (-1) | 0; - if (var$5 <= 0) - break; - $count = $index + 1 | 0; - var$4[$index] = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - var$5 = $t; - $index = $count; - } - } else { - $t = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - while (true) { - var$5 = $count + (-1) | 0; - if ($count <= 0) - break; - var$8 = $index + 1 | 0; - var$4[$index] = $t; - $count = var$5; - $index = var$8; - } - } - } -}; -$java.otcit_StorableDateTimeZone_read = function($id, $text) { - var $flow, $type, var$5, var$6; - a: { - $flow = new $java.otci_CharFlow; - $flow.$characters0 = jl_String_toCharArray($text); - $type = $java.otci_Base46_decodeUnsigned($flow); - switch ($type) { - case 0: - break; - case 1: - $type = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - var$5 = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - $text = new $java.otcit_FixedDateTimeZone; - if ($id !== null) { - $text.$iID = $id; - $text.$iWallOffset = $type; - $text.$iStandardOffset = var$5; - return $text; - } - $text = new jl_IllegalArgumentException; - $text.$suppressionEnabled = 1; - $text.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($text); - $text.$message = $rt_s(2605); - $rt_throw($text); - case 2: - break a; - case 3: - $type = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - $text = $java.otcit_DateTimeZoneBuilder$OfYear_read($flow); - var$5 = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - var$6 = new $java.otcit_DateTimeZoneBuilder$Recurrence; - var$6.$iOfYear = $text; - var$6.$iSaveMillis = var$5; - $text = $java.otcit_DateTimeZoneBuilder$OfYear_read($flow); - var$5 = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - $flow = new $java.otcit_DateTimeZoneBuilder$Recurrence; - $flow.$iOfYear = $text; - $flow.$iSaveMillis = var$5; - $text = new $java.otcit_DateTimeZoneBuilder$DSTZone; - if ($id !== null) { - $text.$iID = $id; - $text.$iStandardOffset0 = $type; - $text.$iStartRecurrence = var$6; - $text.$iEndRecurrence = $flow; - return $text; - } - $text = new jl_IllegalArgumentException; - $text.$suppressionEnabled = 1; - $text.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($text); - $text.$message = $rt_s(2605); - $rt_throw($text); - default: - break a; - } - return $java.otcit_DateTimeZoneBuilder$PrecalculatedZone_readZone($id, $flow); - } - $id = new jl_IllegalArgumentException; - $text = new jl_StringBuilder; - $text.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($text, $text.$length, $rt_s(2606)); - jl_AbstractStringBuilder_insert0($text, $text.$length, $type, 10); - $flow = jl_String__init_0($text.$buffer, 0, $text.$length); - $id.$suppressionEnabled = 1; - $id.$writableStackTrace = 1; - $id.$message = $flow; - $rt_throw($id); -}; -$java.otcit_FixedDateTimeZone = function() { - var a = this; $java.otcit_StorableDateTimeZone.call(a); - a.$iWallOffset = 0; - a.$iStandardOffset = 0; -}; -$java.otcit_FixedDateTimeZone_getOffset = function($this, $instant) { - return $this.$iWallOffset; -}; -$java.otcit_FixedDateTimeZone_getStandardOffset = function($this, $instant) { - return $this.$iStandardOffset; -}; -$java.otcit_FixedDateTimeZone_previousTransition = function($this, $instant) { - return $instant; -}; -$java.ju_AbstractQueue = function() { - ju_AbstractCollection.call(this); -}; -$java.ju_AbstractQueue_add = function($this, $e) { - if ($java.ju_PriorityQueue_offer($this, $e)) - return 1; - $e = new jl_IllegalStateException; - $e.$suppressionEnabled = 1; - $e.$writableStackTrace = 1; - $rt_throw($e); -}; -$java.ju_AbstractQueue_remove = function($this) { - var var$1; - if ($this.$size7 ? 0 : 1) { - var$1 = new ju_NoSuchElementException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - if (!$this.$size7) - var$1 = null; - else { - var$1 = $this.$data11.data[0]; - $java.ju_PriorityQueue_removeAt($this, 0); - } - return var$1; -}; -function ju_PriorityQueue() { - var a = this; $java.ju_AbstractQueue.call(a); - a.$data11 = null; - a.$comparator0 = null; - a.$originalComparator0 = null; - a.$size7 = 0; - a.$version0 = 0; -} -$java.ju_PriorityQueue__init_ = function() { - var var_0 = new ju_PriorityQueue(); - ju_PriorityQueue__init_(var_0); - return var_0; -}; -function ju_PriorityQueue__init_($this) { - var var$1; - var$1 = null; - $this.$data11 = $rt_createArray(jl_Object, 1); - $this.$originalComparator0 = var$1; - var$1 = new $java.ju_PriorityQueue$1; - var$1.$this$044 = $this; - $this.$comparator0 = var$1; -} -$java.ju_PriorityQueue_offer = function($this, $e) { - var $current, $current_0; - if ($e === null) { - $e = new jl_NullPointerException; - $e.$suppressionEnabled = 1; - $e.$writableStackTrace = 1; - $rt_throw($e); - } - $java.ju_PriorityQueue_ensureCapacity($this, $this.$size7 + 1 | 0); - $current = $this.$size7; - while ($current > 0) { - $current_0 = ($current - 1 | 0) / 2 | 0; - if ($this.$comparator0.$compare($e, $this.$data11.data[$current_0]) >= 0) - break; - $this.$data11.data[$current] = $this.$data11.data[$current_0]; - $current = $current_0; - } - $this.$data11.data[$current] = $e; - $this.$size7 = $this.$size7 + 1 | 0; - $this.$version0 = $this.$version0 + 1 | 0; - return 1; -}; -$java.ju_PriorityQueue_poll = function($this) { - var $elem; - if (!$this.$size7) - return null; - $elem = $this.$data11.data[0]; - $java.ju_PriorityQueue_removeAt($this, 0); - return $elem; -}; -$java.ju_PriorityQueue_size = function($this) { - return $this.$size7; -}; -$java.ju_PriorityQueue_removeAt = function($this, $index) { - var $item, $next, $next_0, var$5; - $this.$version0 = $this.$version0 + 1 | 0; - $item = $this.$data11.data[$this.$size7 - 1 | 0]; - a: { - while (true) { - $next = ($index * 2 | 0) + 1 | 0; - $next_0 = $next + 1 | 0; - if ($next >= $this.$size7) - break; - if ($next_0 < $this.$size7 && $this.$comparator0.$compare($this.$data11.data[$next], $this.$data11.data[$next_0]) >= 0) - $next = $next_0; - if ($this.$comparator0.$compare($item, $this.$data11.data[$next]) <= 0) - break a; - $this.$data11.data[$index] = $this.$data11.data[$next]; - $index = $next; - } - } - $this.$data11.data[$index] = $item; - var$5 = $this.$data11.data; - $index = $this.$size7 - 1 | 0; - $this.$size7 = $index; - var$5[$index] = null; -}; -$java.ju_PriorityQueue_ensureCapacity = function($this, $capacity) { - var var$2; - if ($this.$data11.data.length >= $capacity) - return; - var$2 = ($this.$data11.data.length * 3 | 0) / 2 | 0; - if ($capacity > var$2) - var$2 = $capacity; - $this.$data11 = ju_Arrays_copyOf1($this.$data11, var$2); -}; -function otcit_DateTimeZoneProvider$1() { - jl_Object.call(this); -} -$java.otcit_DateTimeZoneProvider$1__init_ = function() { - var var_0 = new otcit_DateTimeZoneProvider$1(); - otcit_DateTimeZoneProvider$1__init_(var_0); - return var_0; -}; -function otcit_DateTimeZoneProvider$1__init_($this) { - return; -} -$java.otcit_DateTimeZoneProvider$1_compare = function($this, $o1, $o2) { - return Long_compare($o2.$value2, $o1.$value2); -}; -$java.otcit_DateTimeZoneProvider$1_compare0 = function($this, var$1, var$2) { - var$1 = var$1; - return Long_compare(var$2.$value2, var$1.$value2); -}; -$java.otcit_AliasDateTimeZone = function() { - $java.otcit_StorableDateTimeZone.call(this); - this.$innerZone = null; -}; -$java.otcit_AliasDateTimeZone_getOffset = function($this, $instant) { - return $this.$innerZone.$getOffset($instant); -}; -$java.otcit_AliasDateTimeZone_getStandardOffset = function($this, $instant) { - return $this.$innerZone.$getStandardOffset($instant); -}; -$java.otcit_AliasDateTimeZone_previousTransition = function($this, $instant) { - return $this.$innerZone.$previousTransition($instant); -}; -$java.otcit_DateTimeZoneProvider$Score = function() { - var a = this; jl_Object.call(a); - a.$tz = null; - a.$value11 = 0; -}; -$java.otcit_DateTimeZoneProvider$Score__init_ = function(var_0) { - var var_1 = new $java.otcit_DateTimeZoneProvider$Score(); - $java.otcit_DateTimeZoneProvider$Score__init_0(var_1, var_0); - return var_1; -}; -$java.otcit_DateTimeZoneProvider$Score__init_0 = function($this, $tz) { - $this.$tz = $tz; -}; -$java.juf_Function = function() { -}; -function otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0() { - jl_Object.call(this); -} -$java.otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0__init_ = function() { - var var_0 = new otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0(); - otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0__init_(var_0); - return var_0; -}; -function otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0__init_(var$0) { - return; -} -$java.otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0_apply = function(var$0, var$1) { - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - return var$1; -}; -$java.ju_PriorityQueue$1 = function() { - jl_Object.call(this); - this.$this$044 = null; -}; -$java.ju_PriorityQueue$1_compare = function($this, $o1, $o2) { - if ($rt_isInstance($o1, jl_Comparable)) - return $o1.$compareTo4($o2); - return -$o2.$compareTo4($o1); -}; -$java.otcit_DateTimeZoneBuilder$PrecalculatedZone = function() { - var a = this; $java.otcit_StorableDateTimeZone.call(a); - a.$iTransitions = null; - a.$iWallOffsets = null; - a.$iStandardOffsets = null; - a.$iTailZone = null; -}; -$java.otcit_DateTimeZoneBuilder$PrecalculatedZone_readZone = function($id, $flow) { - var $length, $transitions, var$5, $wallOffsets, $standardOffsets, $i, $tailZone, $result; - $length = $java.otci_Base46_decodeUnsigned($flow); - $transitions = $rt_createLongArray($length); - var$5 = $transitions.data; - $wallOffsets = $rt_createIntArray($length); - $standardOffsets = $rt_createIntArray($length); - var$5[0] = $java.otcit_StorableDateTimeZone_readTime($flow); - $i = 1; - while ($i < $length) { - var$5[$i] = Long_add(Long_add(var$5[$i - 1 | 0], $java.otcit_StorableDateTimeZone_readTime($flow)), Long_fromInt(657000000)); - $i = $i + 1 | 0; - } - $java.otcit_StorableDateTimeZone_readTimeArray($flow, $wallOffsets); - $java.otcit_StorableDateTimeZone_readTimeArray($flow, $standardOffsets); - var$5 = $flow.$characters0.data; - $length = $flow.$pointer; - $flow.$pointer = $length + 1 | 0; - if (var$5[$length] != 121) - $tailZone = null; - else { - $flow.$pointer = $flow.$pointer + 1 | 0; - $length = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - $tailZone = $java.otcit_DateTimeZoneBuilder$OfYear_read($flow); - $i = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - $result = new $java.otcit_DateTimeZoneBuilder$Recurrence; - $result.$iOfYear = $tailZone; - $result.$iSaveMillis = $i; - $tailZone = $java.otcit_DateTimeZoneBuilder$OfYear_read($flow); - $i = $java.otcit_StorableDateTimeZone_readTime($flow).lo; - $flow = new $java.otcit_DateTimeZoneBuilder$Recurrence; - $flow.$iOfYear = $tailZone; - $flow.$iSaveMillis = $i; - $tailZone = new $java.otcit_DateTimeZoneBuilder$DSTZone; - if ($id === null) { - $flow = new jl_IllegalArgumentException; - $flow.$suppressionEnabled = 1; - $flow.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($flow); - $flow.$message = $rt_s(2605); - $rt_throw($flow); - } - $tailZone.$iID = $id; - $tailZone.$iStandardOffset0 = $length; - $tailZone.$iStartRecurrence = $result; - $tailZone.$iEndRecurrence = $flow; - } - $result = new $java.otcit_DateTimeZoneBuilder$PrecalculatedZone; - if ($id === null) { - $flow = new jl_IllegalArgumentException; - $flow.$suppressionEnabled = 1; - $flow.$writableStackTrace = 1; - $flow.$message = $rt_s(2605); - $rt_throw($flow); - } - $result.$iID = $id; - $result.$iTransitions = $transitions; - $result.$iWallOffsets = $wallOffsets; - $result.$iStandardOffsets = $standardOffsets; - $result.$iTailZone = $tailZone; - if ($java.otcit_DateTimeZoneBuilder$PrecalculatedZone_isCachable($result)) { - if ($result instanceof otcit_CachedDateTimeZone) - $result = $result; - else { - $id = new otcit_CachedDateTimeZone; - $flow = $result.$iID; - if ($flow === null) { - $flow = new jl_IllegalArgumentException; - $flow.$suppressionEnabled = 1; - $flow.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($flow); - $flow.$message = $rt_s(2605); - $rt_throw($flow); - } - $id.$iID = $flow; - $id.$iInfoCache = $rt_createArray($java.otcit_CachedDateTimeZone$Info, $java.otcit_CachedDateTimeZone_cInfoCacheMask + 1 | 0); - $id.$iZone = $result; - $result = $id; - } - } - return $result; -}; -$java.otcit_DateTimeZoneBuilder$PrecalculatedZone_getOffset = function($this, $instant) { - var $transitions, var$3, $i, var$5; - $transitions = $this.$iTransitions; - var$3 = $transitions.data.length; - $i = ju_Arrays_binarySearch0($transitions, 0, var$3, $instant); - if ($i >= 0) - return $this.$iWallOffsets.data[$i]; - var$5 = $i ^ (-1); - if (var$5 < var$3) { - if (var$5 <= 0) - return 0; - return $this.$iWallOffsets.data[var$5 - 1 | 0]; - } - if ($this.$iTailZone !== null) - return $java.otcit_DateTimeZoneBuilder$DSTZone_getOffset($this.$iTailZone, $instant); - return $this.$iWallOffsets.data[var$5 - 1 | 0]; -}; -$java.otcit_DateTimeZoneBuilder$PrecalculatedZone_getStandardOffset = function($this, $instant) { - var $transitions, var$3, $i, var$5; - $transitions = $this.$iTransitions; - var$3 = $transitions.data.length; - $i = ju_Arrays_binarySearch0($transitions, 0, var$3, $instant); - if ($i >= 0) - return $this.$iStandardOffsets.data[$i]; - var$5 = $i ^ (-1); - if (var$5 < var$3) { - if (var$5 <= 0) - return 0; - return $this.$iStandardOffsets.data[var$5 - 1 | 0]; - } - if ($this.$iTailZone !== null) - return $this.$iTailZone.$iStandardOffset0; - return $this.$iStandardOffsets.data[var$5 - 1 | 0]; -}; -$java.otcit_DateTimeZoneBuilder$PrecalculatedZone_nextTransition = function($this, $instant) { - var $transitions, var$3, var$4, $i, var$6, $end; - $transitions = $this.$iTransitions; - var$3 = $transitions.data; - var$4 = var$3.length; - $i = ju_Arrays_binarySearch0($transitions, 0, var$4, $instant); - var$6 = $i < 0 ? $i ^ (-1) : $i + 1 | 0; - if (var$6 < var$4) - return var$3[var$6]; - if ($this.$iTailZone === null) - return $instant; - $end = var$3[var$4 - 1 | 0]; - if (Long_ge($instant, $end)) - $end = $instant; - return $java.otcit_DateTimeZoneBuilder$DSTZone_nextTransition($this.$iTailZone, $end); -}; -$java.otcit_DateTimeZoneBuilder$PrecalculatedZone_previousTransition = function($this, $instant) { - var $transitions, var$3, var$4, $i, var$6, $prev; - $transitions = $this.$iTransitions; - var$3 = $transitions.data; - var$4 = var$3.length; - $i = ju_Arrays_binarySearch0($transitions, 0, var$4, $instant); - if ($i >= 0) { - if (Long_le($instant, new Long(0, 2147483648))) - return $instant; - return Long_sub($instant, Long_fromInt(1)); - } - var$6 = $i ^ (-1); - if (var$6 < var$4) { - if (var$6 > 0) { - $prev = var$3[var$6 - 1 | 0]; - if (Long_gt($prev, new Long(0, 2147483648))) - return Long_sub($prev, Long_fromInt(1)); - } - return $instant; - } - if ($this.$iTailZone !== null) { - $prev = $java.otcit_DateTimeZoneBuilder$DSTZone_previousTransition($this.$iTailZone, $instant); - if (Long_lt($prev, $instant)) - return $prev; - } - $prev = var$3[var$6 - 1 | 0]; - if (Long_le($prev, new Long(0, 2147483648))) - return $instant; - return Long_sub($prev, Long_fromInt(1)); -}; -$java.otcit_DateTimeZoneBuilder$PrecalculatedZone_isCachable = function($this) { - var $transitions, var$2, $distances, $count, $i, $diff; - if ($this.$iTailZone !== null) - return 1; - $transitions = $this.$iTransitions.data; - var$2 = $transitions.length; - if (var$2 <= 1) - return 0; - $distances = 0.0; - $count = 0; - $i = 1; - while ($i < var$2) { - $diff = Long_sub($transitions[$i], $transitions[$i - 1 | 0]); - if (Long_lt($diff, new Long(3028857856, 14))) { - $distances = $distances + Long_toNumber($diff); - $count = $count + 1 | 0; - } - $i = $i + 1 | 0; - } - if ($count > 0 && $distances / $count / 8.64E7 >= 25.0) - return 1; - return 0; -}; -$java.otcit_DateTimeZoneBuilder$DSTZone = function() { - var a = this; $java.otcit_StorableDateTimeZone.call(a); - a.$iStandardOffset0 = 0; - a.$iStartRecurrence = null; - a.$iEndRecurrence = null; -}; -$java.otcit_DateTimeZoneBuilder$DSTZone_getOffset = function($this, $instant) { - var var$2, var$3, var$4, var$5, var$6, var$7, $$je; - var$2 = $this.$iStandardOffset0; - var$3 = $this.$iStandardOffset0; - var$4 = $this.$iStartRecurrence; - var$5 = $this.$iEndRecurrence; - a: { - b: { - try { - var$6 = $java.otcit_DateTimeZoneBuilder$Recurrence_next(var$4, $instant, var$3, $java.otcit_DateTimeZoneBuilder$Recurrence_getSaveMillis(var$5)); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_IllegalArgumentException) { - break b; - } else if ($$je instanceof jl_ArithmeticException) { - break b; - } else { - throw $$e; - } - } - break a; - } - var$6 = $instant; - } - c: { - d: { - try { - var$7 = $java.otcit_DateTimeZoneBuilder$Recurrence_next(var$5, $instant, var$3, $java.otcit_DateTimeZoneBuilder$Recurrence_getSaveMillis(var$4)); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_IllegalArgumentException) { - break d; - } else if ($$je instanceof jl_ArithmeticException) { - break d; - } else { - throw $$e; - } - } - break c; - } - var$7 = $instant; - } - if (Long_gt(var$6, var$7)) - var$5 = var$4; - return var$2 + var$5.$iSaveMillis | 0; -}; -$java.otcit_DateTimeZoneBuilder$DSTZone_getStandardOffset = function($this, $instant) { - return $this.$iStandardOffset0; -}; -$java.otcit_DateTimeZoneBuilder$DSTZone_nextTransition = function($this, $end) { - var $standardOffset, $startRecurrence, $endRecurrence, $start, var$6, $end_0, $$je; - $standardOffset = $this.$iStandardOffset0; - $startRecurrence = $this.$iStartRecurrence; - $endRecurrence = $this.$iEndRecurrence; - a: { - b: { - try { - c: { - try { - $start = $java.otcit_DateTimeZoneBuilder$Recurrence_next($startRecurrence, $end, $standardOffset, $java.otcit_DateTimeZoneBuilder$Recurrence_getSaveMillis($endRecurrence)); - var$6 = Long_compare($end, Long_ZERO); - if (var$6 <= 0) - break c; - if (Long_ge($start, Long_ZERO)) - break c; - $start = $end; - break c; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_IllegalArgumentException) { - break b; - } else { - throw $$e; - } - } - } - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_ArithmeticException) { - } else { - throw $$e; - } - } - } - $start = $end; - } - d: { - e: { - try { - f: { - try { - $end_0 = $java.otcit_DateTimeZoneBuilder$Recurrence_next($endRecurrence, $end, $standardOffset, $java.otcit_DateTimeZoneBuilder$Recurrence_getSaveMillis($startRecurrence)); - if (var$6 <= 0) - break f; - if (Long_ge($end_0, Long_ZERO)) - break f; - $end_0 = $end; - break f; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_IllegalArgumentException) { - break e; - } else { - throw $$e; - } - } - } - break d; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_ArithmeticException) { - } else { - throw $$e; - } - } - } - $end_0 = $end; - } - if (Long_gt($start, $end_0)) - $start = $end_0; - return $start; -}; -$java.otcit_DateTimeZoneBuilder$DSTZone_previousTransition = function($this, $instant) { - var $end, $standardOffset, $startRecurrence, $endRecurrence, $start, var$7, $end_0, $$je; - $end = Long_add($instant, Long_fromInt(1)); - $standardOffset = $this.$iStandardOffset0; - $startRecurrence = $this.$iStartRecurrence; - $endRecurrence = $this.$iEndRecurrence; - a: { - b: { - try { - c: { - try { - $start = $java.otcit_DateTimeZoneBuilder$Recurrence_previous($startRecurrence, $end, $standardOffset, $java.otcit_DateTimeZoneBuilder$Recurrence_getSaveMillis($endRecurrence)); - var$7 = Long_compare($end, Long_ZERO); - if (var$7 >= 0) - break c; - if (Long_le($start, Long_ZERO)) - break c; - $start = $end; - break c; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_IllegalArgumentException) { - break b; - } else { - throw $$e; - } - } - } - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_ArithmeticException) { - } else { - throw $$e; - } - } - } - $start = $end; - } - d: { - e: { - try { - f: { - try { - $end_0 = $java.otcit_DateTimeZoneBuilder$Recurrence_previous($endRecurrence, $end, $standardOffset, $java.otcit_DateTimeZoneBuilder$Recurrence_getSaveMillis($startRecurrence)); - if (var$7 >= 0) - break f; - if (Long_le($end_0, Long_ZERO)) - break f; - $end_0 = $end; - break f; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_IllegalArgumentException) { - break e; - } else { - throw $$e; - } - } - } - break d; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_ArithmeticException) { - } else { - throw $$e; - } - } - } - $end_0 = $end; - } - if (Long_gt($start, $end_0)) - $end_0 = $start; - return Long_sub($end_0, Long_fromInt(1)); -}; -function otcit_CachedDateTimeZone() { - var a = this; $java.otcit_StorableDateTimeZone.call(a); - a.$iZone = null; - a.$iInfoCache = null; -} -$java.otcit_CachedDateTimeZone_cInfoCacheMask = 0; -$java.otcit_CachedDateTimeZone_getOffset = function($this, $instant) { - return $java.otcit_CachedDateTimeZone$Info_getOffset($java.otcit_CachedDateTimeZone_getInfo($this, $instant), $instant); -}; -$java.otcit_CachedDateTimeZone_getStandardOffset = function($this, $instant) { - return $java.otcit_CachedDateTimeZone$Info_getStandardOffset($java.otcit_CachedDateTimeZone_getInfo($this, $instant), $instant); -}; -$java.otcit_CachedDateTimeZone_previousTransition = function($this, $instant) { - return $java.otcit_DateTimeZoneBuilder$PrecalculatedZone_previousTransition($this.$iZone, $instant); -}; -$java.otcit_CachedDateTimeZone_getInfo = function($this, $millis) { - var $period, $cache, $index, $info; - $period = $millis.hi; - $cache = $this.$iInfoCache.data; - $index = $period & $java.otcit_CachedDateTimeZone_cInfoCacheMask; - $info = $cache[$index]; - if (!($info !== null && $info.$iPeriodStart.hi == $period)) { - $info = $java.otcit_CachedDateTimeZone_createInfo($this, $millis); - $cache[$index] = $info; - } - return $info; -}; -$java.otcit_CachedDateTimeZone_createInfo = function($this, $millis) { - var $periodStart, $info, var$4, $end, $chain, $next, var$8; - $periodStart = Long_and($millis, new Long(0, 4294967295)); - $info = new $java.otcit_CachedDateTimeZone$Info; - var$4 = $this.$iZone; - $info.$iOffset = (-2147483648); - $info.$iStandardOffset1 = (-2147483648); - $info.$iPeriodStart = $periodStart; - $info.$iZoneRef = var$4; - $end = Long_or($periodStart, new Long(4294967295, 0)); - $chain = $info; - a: { - while (true) { - $next = $java.otcit_DateTimeZoneBuilder$PrecalculatedZone_nextTransition($this.$iZone, $periodStart); - if (Long_eq($next, $periodStart)) - break a; - if (Long_gt($next, $end)) - break; - var$8 = new $java.otcit_CachedDateTimeZone$Info; - var$4 = $this.$iZone; - var$8.$iOffset = (-2147483648); - var$8.$iStandardOffset1 = (-2147483648); - var$8.$iPeriodStart = $next; - var$8.$iZoneRef = var$4; - $chain.$iNextInfo = var$8; - $chain = $chain.$iNextInfo; - $periodStart = $next; - } - } - return $info; -}; -function otcit_CachedDateTimeZone__clinit_() { - $java.otcit_CachedDateTimeZone_cInfoCacheMask = 511; -} -$java.otcit_DateTimeZoneBuilder$Recurrence = function() { - var a = this; jl_Object.call(a); - a.$iOfYear = null; - a.$iSaveMillis = 0; -}; -$java.otcit_DateTimeZoneBuilder$Recurrence_next = function($this, $instant, $standardOffset, $saveMillis) { - return $java.otcit_DateTimeZoneBuilder$OfYear_next($this.$iOfYear, $instant, $standardOffset, $saveMillis); -}; -$java.otcit_DateTimeZoneBuilder$Recurrence_previous = function($this, $instant, $standardOffset, $saveMillis) { - return $java.otcit_DateTimeZoneBuilder$OfYear_previous($this.$iOfYear, $instant, $standardOffset, $saveMillis); -}; -$java.otcit_DateTimeZoneBuilder$Recurrence_getSaveMillis = function($this) { - return $this.$iSaveMillis; -}; -$java.otcit_DateTimeZoneBuilder$OfYear = function() { - var a = this; jl_Object.call(a); - a.$iMode = 0; - a.$iMonthOfYear = 0; - a.$iDayOfMonth = 0; - a.$iDayOfWeek = 0; - a.$iAdvance = 0; - a.$iMillisOfDay = 0; -}; -$java.otcit_DateTimeZoneBuilder$OfYear__init_ = function(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new $java.otcit_DateTimeZoneBuilder$OfYear(); - $java.otcit_DateTimeZoneBuilder$OfYear__init_0(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -}; -$java.otcit_DateTimeZoneBuilder$OfYear__init_0 = function($this, $mode, $monthOfYear, $dayOfMonth, $dayOfWeek, $advanceDayOfWeek, $millisOfDay) { - var var$7, var$8, var$9; - if ($mode != 117 && $mode != 119 && $mode != 115) { - var$7 = new jl_IllegalArgumentException; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(2607)); - $monthOfYear = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, $monthOfYear, $monthOfYear + 1 | 0); - var$8.$buffer.data[$monthOfYear] = $mode; - 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); - } - $this.$iMode = $mode; - $this.$iMonthOfYear = $monthOfYear; - $this.$iDayOfMonth = $dayOfMonth; - $this.$iDayOfWeek = $dayOfWeek; - $this.$iAdvance = $advanceDayOfWeek; - $this.$iMillisOfDay = $millisOfDay; -}; -$java.otcit_DateTimeZoneBuilder$OfYear_read = function($flow) { - var var$2, $monthOfYear, $mode, $dayOfMonth, $millisOfDay, $dayOfWeek, $advance; - var$2 = $flow.$characters0.data; - $monthOfYear = $flow.$pointer; - $flow.$pointer = $monthOfYear + 1 | 0; - $mode = var$2[$monthOfYear]; - $monthOfYear = $java.otci_Base46_decodeUnsigned($flow); - $dayOfMonth = $java.otci_Base46_decodeUnsigned($flow); - $millisOfDay = $java.otci_Base46_decodeUnsigned($flow); - $dayOfWeek = $millisOfDay / 2 | 0; - if ($millisOfDay % 2 | 0) - $dayOfWeek = -$dayOfWeek; - var$2 = $flow.$characters0.data; - $advance = $flow.$pointer; - $flow.$pointer = $advance + 1 | 0; - return $java.otcit_DateTimeZoneBuilder$OfYear__init_($mode, $monthOfYear, $dayOfMonth, $dayOfWeek, var$2[$advance] != 121 ? 0 : 1, $java.otcit_StorableDateTimeZone_readUnsignedTime($flow).lo); -}; -$java.otcit_DateTimeZoneBuilder$OfYear_next = function($this, $instant, $offset, $saveMillis) { - var var$4, $calendar; - if ($this.$iMode == 119) - $offset = $offset + $saveMillis | 0; - else if ($this.$iMode != 115) - $offset = 0; - var$4 = Long_fromInt($offset); - $instant = Long_add($instant, var$4); - $calendar = new ju_GregorianCalendar; - if ($java.otcit_DateTimeZoneBuilder_gmtCache === null) - $java.otcit_DateTimeZoneBuilder_gmtCache = $java.ju_TimeZone_getTimeZone($rt_s(2608)); - ju_GregorianCalendar__init_0($calendar, $java.otcit_DateTimeZoneBuilder_gmtCache, ju_Locale_defaultLocale); - ju_Calendar_setTimeInMillis($calendar, $instant); - $java.ju_Calendar_set($calendar, 2, $this.$iMonthOfYear - 1 | 0); - $java.ju_Calendar_set($calendar, 5, 1); - $java.ju_Calendar_set($calendar, 11, 0); - $java.ju_Calendar_set($calendar, 12, 0); - $java.ju_Calendar_set($calendar, 13, 0); - $java.ju_Calendar_set($calendar, 14, 0); - $java.ju_GregorianCalendar_add($calendar, 14, $this.$iMillisOfDay); - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonthNext($this, $calendar); - if (!$this.$iDayOfWeek) { - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (Long_le($calendar.$time1, $instant)) { - $java.ju_GregorianCalendar_add($calendar, 1, 1); - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonthNext($this, $calendar); - } - } else { - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfWeek($this, $calendar); - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (Long_le($calendar.$time1, $instant)) { - $java.ju_GregorianCalendar_add($calendar, 1, 1); - $java.ju_Calendar_set($calendar, 2, $this.$iMonthOfYear - 1 | 0); - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonthNext($this, $calendar); - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfWeek($this, $calendar); - } - } - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - return Long_sub($calendar.$time1, var$4); -}; -$java.otcit_DateTimeZoneBuilder$OfYear_previous = function($this, $instant, $offset, $saveMillis) { - var var$4, $calendar; - if ($this.$iMode == 119) - $offset = $offset + $saveMillis | 0; - else if ($this.$iMode != 115) - $offset = 0; - var$4 = Long_fromInt($offset); - $instant = Long_add($instant, var$4); - $calendar = new ju_GregorianCalendar; - if ($java.otcit_DateTimeZoneBuilder_gmtCache === null) - $java.otcit_DateTimeZoneBuilder_gmtCache = $java.ju_TimeZone_getTimeZone($rt_s(2608)); - ju_GregorianCalendar__init_0($calendar, $java.otcit_DateTimeZoneBuilder_gmtCache, ju_Locale_defaultLocale); - ju_Calendar_setTimeInMillis($calendar, $instant); - $java.ju_Calendar_set($calendar, 2, $this.$iMonthOfYear - 1 | 0); - $java.ju_Calendar_set($calendar, 5, 1); - $java.ju_Calendar_set($calendar, 11, 0); - $java.ju_Calendar_set($calendar, 12, 0); - $java.ju_Calendar_set($calendar, 13, 0); - $java.ju_Calendar_set($calendar, 14, 0); - $java.ju_GregorianCalendar_add($calendar, 14, $this.$iMillisOfDay); - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonthPrevious($this, $calendar); - if (!$this.$iDayOfWeek) { - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (Long_ge($calendar.$time1, $instant)) { - $java.ju_GregorianCalendar_add($calendar, 1, (-1)); - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonthPrevious($this, $calendar); - } - } else { - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfWeek($this, $calendar); - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (Long_ge($calendar.$time1, $instant)) { - $java.ju_GregorianCalendar_add($calendar, 1, (-1)); - $java.ju_Calendar_set($calendar, 2, $this.$iMonthOfYear - 1 | 0); - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonthPrevious($this, $calendar); - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfWeek($this, $calendar); - } - } - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - return Long_sub($calendar.$time1, var$4); -}; -$java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonthNext = function($this, $calendar) { - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (!$calendar.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($calendar); - $calendar.$areFieldsSet = 1; - } - a: { - if ($calendar.$fields.data[2] == 1) { - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (!$calendar.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($calendar); - $calendar.$areFieldsSet = 1; - } - if ($calendar.$fields.data[5] == 29) - while (true) { - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (!$calendar.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($calendar); - $calendar.$areFieldsSet = 1; - } - if ($java.ju_GregorianCalendar_isLeapYear($calendar, $calendar.$fields.data[1])) - break a; - $java.ju_GregorianCalendar_add($calendar, 1, 1); - } - } - } - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonth($this, $calendar); -}; -$java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonthPrevious = function($this, $calendar) { - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (!$calendar.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($calendar); - $calendar.$areFieldsSet = 1; - } - a: { - if ($calendar.$fields.data[2] == 1) { - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (!$calendar.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($calendar); - $calendar.$areFieldsSet = 1; - } - if ($calendar.$fields.data[5] == 29) - while (true) { - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (!$calendar.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($calendar); - $calendar.$areFieldsSet = 1; - } - if ($java.ju_GregorianCalendar_isLeapYear($calendar, $calendar.$fields.data[1])) - break a; - $java.ju_GregorianCalendar_add($calendar, 1, (-1)); - } - } - } - $java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonth($this, $calendar); -}; -$java.otcit_DateTimeZoneBuilder$OfYear_setDayOfMonth = function($this, $calendar) { - if ($this.$iDayOfMonth >= 0) - $java.ju_Calendar_set($calendar, 5, $this.$iDayOfMonth); - else { - $java.ju_Calendar_set($calendar, 5, 1); - $java.ju_GregorianCalendar_add($calendar, 2, 1); - $java.ju_GregorianCalendar_add($calendar, 5, $this.$iDayOfMonth); - } -}; -$java.otcit_DateTimeZoneBuilder$OfYear_setDayOfWeek = function($this, $calendar) { - var $dayOfWeek, $daysToAdd; - if (!$calendar.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($calendar); - $calendar.$isTimeSet = 1; - } - if (!$calendar.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($calendar); - $calendar.$areFieldsSet = 1; - } - $dayOfWeek = $calendar.$fields.data[7]; - $daysToAdd = ($this.$iDayOfWeek == 7 ? 1 : $dayOfWeek + 1 | 0) - $dayOfWeek | 0; - if ($daysToAdd) { - if (!$this.$iAdvance) { - if ($daysToAdd > 0) - $daysToAdd = $daysToAdd + (-7) | 0; - } else if ($daysToAdd < 0) - $daysToAdd = $daysToAdd + 7 | 0; - $java.ju_GregorianCalendar_add($calendar, 5, $daysToAdd); - } -}; -$java.otcit_CachedDateTimeZone$Info = function() { - var a = this; jl_Object.call(a); - a.$iPeriodStart = Long_ZERO; - a.$iZoneRef = null; - a.$iNextInfo = null; - a.$iOffset = 0; - a.$iStandardOffset1 = 0; -}; -$java.otcit_CachedDateTimeZone$Info_getOffset = function($this, $millis) { - if ($this.$iNextInfo !== null && Long_ge($millis, $this.$iNextInfo.$iPeriodStart)) - return $java.otcit_CachedDateTimeZone$Info_getOffset($this.$iNextInfo, $millis); - if ($this.$iOffset == (-2147483648)) - $this.$iOffset = $java.otcit_DateTimeZoneBuilder$PrecalculatedZone_getOffset($this.$iZoneRef, $this.$iPeriodStart); - return $this.$iOffset; -}; -$java.otcit_CachedDateTimeZone$Info_getStandardOffset = function($this, $millis) { - if ($this.$iNextInfo !== null && Long_ge($millis, $this.$iNextInfo.$iPeriodStart)) - return $java.otcit_CachedDateTimeZone$Info_getStandardOffset($this.$iNextInfo, $millis); - if ($this.$iStandardOffset1 == (-2147483648)) - $this.$iStandardOffset1 = $java.otcit_DateTimeZoneBuilder$PrecalculatedZone_getStandardOffset($this.$iZoneRef, $this.$iPeriodStart); - return $this.$iStandardOffset1; -}; -function jnc_CoderMalfunctionError() { - jl_Error.call(this); -} -function nms_EnumRarity() { - var a = this; jl_Enum.call(a); - a.$rarityColor = 0; - a.$rarityName = null; -} -var nms_EnumRarity_common = null; -var nms_EnumRarity_uncommon = null; -var nms_EnumRarity_rare = null; -var nms_EnumRarity_epic = null; -$java.nms_EnumRarity_$VALUES = null; -function nms_EnumRarity__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumRarity; - var$1.$name2 = $rt_s(2609); - var$1.$ordinal = 0; - var$1.$rarityColor = 15; - var$1.$rarityName = $rt_s(2610); - nms_EnumRarity_common = var$1; - var$1 = new nms_EnumRarity; - var$1.$name2 = $rt_s(2611); - var$1.$ordinal = 1; - var$1.$rarityColor = 14; - var$1.$rarityName = $rt_s(2612); - nms_EnumRarity_uncommon = var$1; - var$1 = new nms_EnumRarity; - var$1.$name2 = $rt_s(2613); - var$1.$ordinal = 2; - var$1.$rarityColor = 11; - var$1.$rarityName = $rt_s(2614); - nms_EnumRarity_rare = var$1; - var$1 = new nms_EnumRarity; - var$1.$name2 = $rt_s(2615); - var$1.$ordinal = 3; - var$1.$rarityColor = 13; - var$1.$rarityName = $rt_s(2616); - nms_EnumRarity_epic = var$1; - var$2 = $rt_createArray(nms_EnumRarity, 4); - var$3 = var$2.data; - var$3[0] = nms_EnumRarity_common; - var$3[1] = nms_EnumRarity_uncommon; - var$3[2] = nms_EnumRarity_rare; - var$3[3] = nms_EnumRarity_epic; - $java.nms_EnumRarity_$VALUES = var$2; -} -function ju_NoSuchElementException() { - jl_RuntimeException.call(this); -} -$java.ju_NoSuchElementException__init_ = function() { - var var_0 = new ju_NoSuchElementException(); - ju_NoSuchElementException__init_(var_0); - return var_0; -}; -function ju_NoSuchElementException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function nms_Tuple() { - var a = this; jl_Object.call(a); - a.$first = null; - a.$second = null; -} -function nms_Tuple__init_(var_0, var_1) { - var var_2 = new nms_Tuple(); - $java.nms_Tuple__init_(var_2, var_0, var_1); - return var_2; -} -$java.nms_Tuple__init_ = function($this, $par1Obj, $par2Obj) { - $this.$first = $par1Obj; - $this.$second = $par2Obj; -}; -$java.nms_Tuple_getFirst = function($this) { - return $this.$first; -}; -$java.nms_Tuple_getSecond = function($this) { - return $this.$second; -}; -function jm_Conversion() { - jl_Object.call(this); -} -$java.jm_Conversion_digitFitInInt = null; -$java.jm_Conversion_bigRadices = null; -$java.jm_Conversion__init_ = function() { - var var_0 = new jm_Conversion(); - jm_Conversion__init_(var_0); - return var_0; -}; -function jm_Conversion__init_($this) { - return; -} -$java.jm_Conversion_bigInteger2Double = function($val) { - var var$2, $bitLen, var$4, $exponent, $delta, var$7, $mantissa; - a: { - if ($val.$numberLength >= 2) { - if ($val.$numberLength != 2) - break a; - if ($val.$digits.data[1] <= 0) - break a; - } - return Long_toNumber($java.jm_BigInteger_longValue($val)); - } - if ($val.$numberLength > 32) - return $val.$sign1 <= 0 ? (-Infinity) : Infinity; - if ($val.$sign1 >= 0) - var$2 = $val; - else { - var$2 = new jm_BigInteger; - $bitLen = $val.$numberLength; - var$4 = $val.$digits; - var$2.$firstNonzeroDigit = (-2); - var$2.$sign1 = 1; - var$2.$numberLength = $bitLen; - var$2.$digits = var$4; - } - $bitLen = $java.jm_BitLevel_bitLength(var$2); - $exponent = Long_fromInt($bitLen - 1 | 0); - $delta = $bitLen - 54 | 0; - if ($val.$sign1 >= 0) - var$2 = $val; - else { - var$2 = new jm_BigInteger; - var$7 = $val.$numberLength; - var$4 = $val.$digits; - var$2.$firstNonzeroDigit = (-2); - var$2.$sign1 = 1; - var$2.$numberLength = var$7; - var$2.$digits = var$4; - } - if ($delta && var$2.$sign1) - var$2 = $delta > 0 ? $java.jm_BitLevel_shiftRight(var$2, $delta) : $java.jm_BitLevel_shiftLeft(var$2, -$delta); - $mantissa = Long_and($java.jm_BigInteger_longValue(var$2), new Long(4294967295, 2097151)); - if (Long_eq($exponent, Long_fromInt(1023))) { - if (Long_eq($mantissa, new Long(4294967295, 2097151))) - return $val.$sign1 <= 0 ? (-Infinity) : Infinity; - if (Long_eq($mantissa, new Long(4294967294, 2097151))) - return $val.$sign1 <= 0 ? (-1.7976931348623157E308) : 1.7976931348623157E308; - } - if (!(!(Long_eq(Long_and($mantissa, Long_fromInt(1)), Long_fromInt(1)) && Long_eq(Long_and($mantissa, Long_fromInt(2)), Long_fromInt(2))) && !$java.jm_BitLevel_nonZeroDroppedBits($delta, $val.$digits))) - $mantissa = Long_add($mantissa, Long_fromInt(2)); - $mantissa = Long_shr($mantissa, 1); - return $rt_longBitsToDouble(Long_or(Long_or($val.$sign1 >= 0 ? Long_ZERO : new Long(0, 2147483648), Long_and(Long_shl(Long_add(Long_fromInt(1023), $exponent), 52), new Long(0, 2146435072))), $mantissa)); -}; -function jm_Conversion__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(37); - var$2 = var$1.data; - var$2[0] = (-1); - var$2[1] = (-1); - var$2[2] = 31; - var$2[3] = 19; - var$2[4] = 15; - var$2[5] = 13; - var$2[6] = 11; - var$2[7] = 11; - var$2[8] = 10; - var$2[9] = 9; - var$2[10] = 9; - var$2[11] = 8; - var$2[12] = 8; - var$2[13] = 8; - var$2[14] = 8; - var$2[15] = 7; - var$2[16] = 7; - var$2[17] = 7; - var$2[18] = 7; - var$2[19] = 7; - var$2[20] = 7; - var$2[21] = 7; - var$2[22] = 6; - var$2[23] = 6; - var$2[24] = 6; - var$2[25] = 6; - var$2[26] = 6; - var$2[27] = 6; - var$2[28] = 6; - var$2[29] = 6; - var$2[30] = 6; - var$2[31] = 6; - var$2[32] = 6; - var$2[33] = 6; - var$2[34] = 6; - var$2[35] = 6; - var$2[36] = 5; - $java.jm_Conversion_digitFitInInt = var$1; - var$1 = $rt_createIntArray(35); - var$2 = var$1.data; - var$2[0] = (-2147483648); - var$2[1] = 1162261467; - var$2[2] = 1073741824; - var$2[3] = 1220703125; - var$2[4] = 362797056; - var$2[5] = 1977326743; - var$2[6] = 1073741824; - var$2[7] = 387420489; - var$2[8] = 1000000000; - var$2[9] = 214358881; - var$2[10] = 429981696; - var$2[11] = 815730721; - var$2[12] = 1475789056; - var$2[13] = 170859375; - var$2[14] = 268435456; - var$2[15] = 410338673; - var$2[16] = 612220032; - var$2[17] = 893871739; - var$2[18] = 1280000000; - var$2[19] = 1801088541; - var$2[20] = 113379904; - var$2[21] = 148035889; - var$2[22] = 191102976; - var$2[23] = 244140625; - var$2[24] = 308915776; - var$2[25] = 387420489; - var$2[26] = 481890304; - var$2[27] = 594823321; - var$2[28] = 729000000; - var$2[29] = 887503681; - var$2[30] = 1073741824; - var$2[31] = 1291467969; - var$2[32] = 1544804416; - var$2[33] = 1838265625; - var$2[34] = 60466176; - $java.jm_Conversion_bigRadices = var$1; -} -$java.jur_AbstractCharClass$LazyJavaLowerCase$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$028 = null; -}; -$java.jur_AbstractCharClass$LazyJavaLowerCase$1_contains = function($this, $ch) { - return jl_Character_getType($ch) != 2 ? 0 : 1; -}; -$java.jur_AbstractCharClass$LazyJavaUpperCase$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$029 = null; -}; -$java.jur_AbstractCharClass$LazyJavaUpperCase$1_contains = function($this, $ch) { - return jl_Character_getType($ch) != 1 ? 0 : 1; -}; -$java.jur_AbstractCharClass$LazyJavaWhitespace$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$030 = null; -}; -$java.jur_AbstractCharClass$LazyJavaWhitespace$1_contains = function($this, $ch) { - a: { - switch ($ch) { - case 9: - case 10: - case 11: - case 12: - case 13: - case 28: - case 29: - case 30: - case 31: - break; - case 160: - case 8199: - case 8239: - $ch = 0; - break a; - default: - b: { - switch (jl_Character_getType($ch)) { - case 12: - case 13: - case 14: - break; - default: - $ch = 0; - break b; - } - $ch = 1; - } - break a; - } - $ch = 1; - } - return $ch; -}; -$java.jur_AbstractCharClass$LazyJavaMirrored$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$031 = null; -}; -$java.jur_AbstractCharClass$LazyJavaMirrored$1_contains = function($this, $ch) { - return 0; -}; -$java.jur_AbstractCharClass$LazyJavaDefined$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$032 = null; -}; -$java.jur_AbstractCharClass$LazyJavaDefined$1_contains = function($this, $ch) { - return !jl_Character_getType($ch) ? 0 : 1; -}; -$java.jur_AbstractCharClass$LazyJavaDigit$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$033 = null; -}; -$java.jur_AbstractCharClass$LazyJavaDigit$1_contains = function($this, $ch) { - return jl_Character_getType($ch) != 9 ? 0 : 1; -}; -$java.jur_AbstractCharClass$LazyJavaIdentifierIgnorable$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$034 = null; -}; -$java.jur_AbstractCharClass$LazyJavaIdentifierIgnorable$1_contains = function($this, $ch) { - return jl_Character_isIdentifierIgnorable($ch); -}; -$java.jur_AbstractCharClass$LazyJavaISOControl$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$035 = null; -}; -$java.jur_AbstractCharClass$LazyJavaISOControl$1_contains = function($this, $ch) { - return jl_Character_isISOControl($ch); -}; -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierPart$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$036 = null; -}; -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierPart$1_contains = function($this, $ch) { - a: { - b: { - switch (jl_Character_getType($ch)) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 8: - case 9: - case 10: - case 23: - case 26: - break; - case 7: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 24: - case 25: - break b; - default: - break b; - } - $ch = 1; - break a; - } - $ch = jl_Character_isIdentifierIgnorable($ch); - } - return $ch; -}; -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierStart$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$037 = null; -}; -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierStart$1_contains = function($this, $ch) { - a: { - b: { - switch (jl_Character_getType($ch)) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 10: - case 23: - case 26: - break; - case 6: - case 7: - case 8: - case 9: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - case 24: - case 25: - break b; - default: - break b; - } - $ch = 1; - break a; - } - $ch = jl_Character_isIdentifierIgnorable($ch); - } - return $ch; -}; -$java.jur_AbstractCharClass$LazyJavaLetter$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$038 = null; -}; -$java.jur_AbstractCharClass$LazyJavaLetter$1_contains = function($this, $ch) { - a: { - switch (jl_Character_getType($ch)) { - case 1: - case 2: - case 3: - case 4: - case 5: - break; - default: - $ch = 0; - break a; - } - $ch = 1; - } - return $ch; -}; -$java.jur_AbstractCharClass$LazyJavaLetterOrDigit$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$039 = null; -}; -$java.jur_AbstractCharClass$LazyJavaLetterOrDigit$1_contains = function($this, $ch) { - a: { - b: { - switch (jl_Character_getType($ch)) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 9: - break; - case 6: - case 7: - case 8: - break b; - default: - break b; - } - $ch = 1; - break a; - } - $ch = 0; - } - return $ch; -}; -$java.jur_AbstractCharClass$LazyJavaSpaceChar$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$040 = null; -}; -$java.jur_AbstractCharClass$LazyJavaSpaceChar$1_contains = function($this, $ch) { - a: { - switch (jl_Character_getType($ch)) { - case 12: - case 13: - case 14: - break; - default: - $ch = 0; - break a; - } - $ch = 1; - } - return $ch; -}; -$java.jur_AbstractCharClass$LazyJavaTitleCase$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$041 = null; -}; -$java.jur_AbstractCharClass$LazyJavaTitleCase$1_contains = function($this, $ch) { - return jl_Character_getType($ch) != 3 ? 0 : 1; -}; -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$042 = null; -}; -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart$1_contains = function($this, $ch) { - a: { - b: { - switch (jl_Character_getType($ch)) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 8: - case 9: - case 10: - case 23: - break; - case 7: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - break b; - default: - break b; - } - $ch = 1; - break a; - } - $ch = jl_Character_isIdentifierIgnorable($ch); - } - return $ch; -}; -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart$1 = function() { - jur_AbstractCharClass.call(this); - this.$this$043 = null; -}; -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart$1_contains = function($this, $ch) { - a: { - b: { - switch (jl_Character_getType($ch)) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 10: - break; - case 6: - case 7: - case 8: - case 9: - break b; - default: - break b; - } - $ch = 1; - break a; - } - $ch = jl_Character_isIdentifierIgnorable($ch); - } - return $ch; -}; -$java.jur_UnicodeCategory = function() { - jur_AbstractCharClass.call(this); - this.$category0 = 0; -}; -$java.jur_UnicodeCategory_contains = function($this, $ch) { - return $this.$alt0 ^ ($this.$category0 != jl_Character_getType($ch & 65535) ? 0 : 1); -}; -$java.jur_UnicodeCategoryScope = function() { - $java.jur_UnicodeCategory.call(this); -}; -$java.jur_UnicodeCategoryScope_contains = function($this, $ch) { - return $this.$alt0 ^ (!($this.$category0 >> jl_Character_getType($ch & 65535) & 1) ? 0 : 1); -}; -function nms_TileEntityRenderer() { - var a = this; jl_Object.call(a); - a.$specialRendererMap = null; - a.$fontRenderer4 = null; - a.$renderEngine3 = null; - a.$worldObj6 = null; - a.$entityLivingPlayer = null; - a.$playerYaw = 0.0; - a.$playerPitch = 0.0; - a.$playerX = 0.0; - a.$playerY = 0.0; - a.$playerZ = 0.0; -} -var nms_TileEntityRenderer_instance = null; -var nms_TileEntityRenderer_staticPlayerX = 0.0; -var nms_TileEntityRenderer_staticPlayerY = 0.0; -var nms_TileEntityRenderer_staticPlayerZ = 0.0; -function nms_TileEntityRenderer_$callClinit() { - nms_TileEntityRenderer_$callClinit = $rt_eraseClinit(nms_TileEntityRenderer); - $java.nms_TileEntityRenderer__clinit_(); -} -$java.nms_TileEntityRenderer__init_ = function() { - var var_0 = new nms_TileEntityRenderer(); - nms_TileEntityRenderer__init_(var_0); - return var_0; -}; -function nms_TileEntityRenderer__init_($this) { - var $var1, var$2, $var2; - nms_TileEntityRenderer_$callClinit(); - $this.$specialRendererMap = ju_HashMap__init_1(16, 0.75); - $var1 = $this.$specialRendererMap; - var$2 = new nms_TileEntitySignRenderer; - var$2.$modelSign = $java.nms_ModelSign__init_(); - ju_HashMap_putImpl($var1, $rt_cls(nms_TileEntitySign), var$2); - ju_HashMap_putImpl($this.$specialRendererMap, $rt_cls(nms_TileEntityPiston), new nms_TileEntityRendererPiston); - ju_HashMap_putImpl($this.$specialRendererMap, $rt_cls(nms_TileEntityChest), $java.nms_TileEntityChestRenderer__init_()); - $var1 = $this.$specialRendererMap; - var$2 = new nms_TileEntityEnderChestRenderer; - var$2.$theEnderChestModel = $java.nms_ModelChest__init_(); - ju_HashMap_putImpl($var1, $rt_cls(nms_TileEntityEnderChest), var$2); - $var1 = $this.$specialRendererMap; - var$2 = new nms_RenderEnchantmentTable; - var$2.$enchantmentBook = $java.nms_ModelBook__init_(); - ju_HashMap_putImpl($var1, $rt_cls(nms_TileEntityEnchantmentTable), var$2); - ju_HashMap_putImpl($this.$specialRendererMap, $rt_cls(nms_TileEntityEndPortal), $java.nms_RenderEndPortal__init_()); - ju_HashMap_putImpl($this.$specialRendererMap, $rt_cls(nms_TileEntityBeacon), new nms_TileEntityBeaconRenderer); - $var1 = $this.$specialRendererMap; - var$2 = new nms_TileEntitySkullRenderer; - var$2.$field_82396_c = nms_ModelSkeletonHead__init_0(0, 0, 64, 32); - var$2.$field_82395_d = nms_ModelSkeletonHead__init_0(0, 0, 64, 64); - ju_HashMap_putImpl($var1, $rt_cls(nms_TileEntitySkull), var$2); - $var1 = $this.$specialRendererMap; - if ($var1.$cachedValues === null) { - $var2 = new ju_HashMap$2; - $var2.$this$00 = $var1; - $var1.$cachedValues = $var2; - } - $var1 = $var1.$cachedValues.$iterator(); - while ($var1.$hasNext()) { - $var1.$next().$setTileEntityRenderer($this); - } -} -$java.nms_TileEntityRenderer_getSpecialRendererForClass = function($this, $par1Class) { - var $var2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10; - $var2 = $this.$specialRendererMap; - if ($par1Class !== null) { - var$3 = jl_Object_identity($par1Class); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, $par1Class, var$3 & ($var2.$elementData.data.length - 1 | 0), var$3); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && $par1Class !== $rt_cls(nms_TileEntity)) { - var$4 = jl_Class_getClass($par1Class.$platformClass.$meta.superclass); - $var2 = $this.$specialRendererMap; - if (var$4 !== null) { - var$5 = jl_Object_identity(var$4); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$4, var$5 & ($var2.$elementData.data.length - 1 | 0), var$5); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && var$4 !== $rt_cls(nms_TileEntity)) { - var$6 = jl_Class_getClass(var$4.$platformClass.$meta.superclass); - $var2 = $this.$specialRendererMap; - if (var$6 !== null) { - var$7 = jl_Object_identity(var$6); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$6, var$7 & ($var2.$elementData.data.length - 1 | 0), var$7); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && var$6 !== $rt_cls(nms_TileEntity)) { - var$8 = jl_Class_getClass(var$6.$platformClass.$meta.superclass); - $var2 = $this.$specialRendererMap; - if (var$8 !== null) { - var$7 = jl_Object_identity(var$8); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$8, var$7 & ($var2.$elementData.data.length - 1 | 0), var$7); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && var$8 !== $rt_cls(nms_TileEntity)) { - var$9 = jl_Class_getClass(var$8.$platformClass.$meta.superclass); - $var2 = $this.$specialRendererMap; - if (var$9 !== null) { - var$7 = jl_Object_identity(var$9); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, var$9, var$7 & ($var2.$elementData.data.length - 1 | 0), var$7); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null && var$9 !== $rt_cls(nms_TileEntity)) { - var$10 = jl_Class_getClass(var$9.$platformClass.$meta.superclass); - $var2 = ju_HashMap_get($this.$specialRendererMap, var$10); - if ($var2 === null && var$10 !== $rt_cls(nms_TileEntity)) { - $var2 = $java.nms_TileEntityRenderer_getSpecialRendererForClass($this, jl_Class_getSuperclass(var$10)); - ju_HashMap_putImpl($this.$specialRendererMap, var$10, $var2); - } - ju_HashMap_put($this.$specialRendererMap, var$9, $var2); - } - ju_HashMap_put($this.$specialRendererMap, var$8, $var2); - } - ju_HashMap_put($this.$specialRendererMap, var$6, $var2); - } - ju_HashMap_put($this.$specialRendererMap, var$4, $var2); - } - ju_HashMap_put($this.$specialRendererMap, $par1Class, $var2); - } - return $var2; -}; -$java.nms_TileEntityRenderer_hasSpecialRenderer = function($this, $par1TileEntity) { - return $java.nms_TileEntityRenderer_getSpecialRendererForEntity($this, $par1TileEntity) === null ? 0 : 1; -}; -$java.nms_TileEntityRenderer_getSpecialRendererForEntity = function($this, $par1TileEntity) { - var var$2, var$3, var$4, var$5, var$6, var$7; - if ($par1TileEntity === null) - $par1TileEntity = null; - else { - var$2 = jl_Class_getClass($par1TileEntity.constructor); - $par1TileEntity = $this.$specialRendererMap; - if (var$2 !== null) { - var$3 = jl_Object_identity(var$2); - $par1TileEntity = ju_HashMap_findNonNullKeyEntry($par1TileEntity, var$2, var$3 & ($par1TileEntity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1TileEntity = $par1TileEntity.$elementData.data[0]; - while ($par1TileEntity !== null && $par1TileEntity.$key !== null) { - $par1TileEntity = $par1TileEntity.$next1; - } - } - $par1TileEntity = $par1TileEntity === null ? null : $par1TileEntity.$value0; - if ($par1TileEntity === null && var$2 !== $rt_cls(nms_TileEntity)) { - var$4 = jl_Class_getClass(var$2.$platformClass.$meta.superclass); - $par1TileEntity = $this.$specialRendererMap; - if (var$4 !== null) { - var$3 = jl_Object_identity(var$4); - $par1TileEntity = ju_HashMap_findNonNullKeyEntry($par1TileEntity, var$4, var$3 & ($par1TileEntity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1TileEntity = $par1TileEntity.$elementData.data[0]; - while ($par1TileEntity !== null && $par1TileEntity.$key !== null) { - $par1TileEntity = $par1TileEntity.$next1; - } - } - $par1TileEntity = $par1TileEntity === null ? null : $par1TileEntity.$value0; - if ($par1TileEntity === null && var$4 !== $rt_cls(nms_TileEntity)) { - var$5 = jl_Class_getClass(var$4.$platformClass.$meta.superclass); - $par1TileEntity = $this.$specialRendererMap; - if (var$5 !== null) { - var$3 = jl_Object_identity(var$5); - $par1TileEntity = ju_HashMap_findNonNullKeyEntry($par1TileEntity, var$5, var$3 & ($par1TileEntity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1TileEntity = $par1TileEntity.$elementData.data[0]; - while ($par1TileEntity !== null && $par1TileEntity.$key !== null) { - $par1TileEntity = $par1TileEntity.$next1; - } - } - $par1TileEntity = $par1TileEntity === null ? null : $par1TileEntity.$value0; - if ($par1TileEntity === null && var$5 !== $rt_cls(nms_TileEntity)) { - var$6 = jl_Class_getClass(var$5.$platformClass.$meta.superclass); - $par1TileEntity = $this.$specialRendererMap; - if (var$6 !== null) { - var$3 = jl_Object_identity(var$6); - $par1TileEntity = ju_HashMap_findNonNullKeyEntry($par1TileEntity, var$6, var$3 & ($par1TileEntity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1TileEntity = $par1TileEntity.$elementData.data[0]; - while ($par1TileEntity !== null && $par1TileEntity.$key !== null) { - $par1TileEntity = $par1TileEntity.$next1; - } - } - $par1TileEntity = $par1TileEntity === null ? null : $par1TileEntity.$value0; - if ($par1TileEntity === null && var$6 !== $rt_cls(nms_TileEntity)) { - var$7 = jl_Class_getClass(var$6.$platformClass.$meta.superclass); - $par1TileEntity = $this.$specialRendererMap; - if (var$7 !== null) { - var$3 = jl_Object_hashCode(var$7); - $par1TileEntity = ju_HashMap_findNonNullKeyEntry($par1TileEntity, var$7, var$3 & ($par1TileEntity.$elementData.data.length - 1 | 0), var$3); - } else { - $par1TileEntity = $par1TileEntity.$elementData.data[0]; - while ($par1TileEntity !== null && $par1TileEntity.$key !== null) { - $par1TileEntity = $par1TileEntity.$next1; - } - } - $par1TileEntity = $par1TileEntity === null ? null : $par1TileEntity.$value0; - if ($par1TileEntity === null && var$7 !== $rt_cls(nms_TileEntity)) { - $par1TileEntity = $java.nms_TileEntityRenderer_getSpecialRendererForClass($this, jl_Class_getClass(var$7.$platformClass.$meta.superclass)); - ju_HashMap_putImpl($this.$specialRendererMap, var$7, $par1TileEntity); - } - ju_HashMap_putImpl($this.$specialRendererMap, var$6, $par1TileEntity); - } - ju_HashMap_put($this.$specialRendererMap, var$5, $par1TileEntity); - } - ju_HashMap_put($this.$specialRendererMap, var$4, $par1TileEntity); - } - ju_HashMap_put($this.$specialRendererMap, var$2, $par1TileEntity); - } - } - return $par1TileEntity; -}; -function nms_TileEntityRenderer_cacheActiveRenderInfo($this, $par1World, $par2RenderEngine, $par3FontRenderer, $par4EntityLiving, $par5) { - var var$6, var$7, var$8; - if ($this.$worldObj6 !== $par1World) - $java.nms_TileEntityRenderer_setWorld($this, $par1World); - $this.$renderEngine3 = $par2RenderEngine; - $this.$entityLivingPlayer = $par4EntityLiving; - $this.$fontRenderer4 = $par3FontRenderer; - $this.$playerYaw = $par4EntityLiving.$prevRotationYaw + ($par4EntityLiving.$rotationYaw - $par4EntityLiving.$prevRotationYaw) * $par5; - $this.$playerPitch = $par4EntityLiving.$prevRotationPitch + ($par4EntityLiving.$rotationPitch - $par4EntityLiving.$prevRotationPitch) * $par5; - var$6 = $par4EntityLiving.$lastTickPosX; - var$7 = $par4EntityLiving.$posX - $par4EntityLiving.$lastTickPosX; - var$8 = $par5; - $this.$playerX = var$6 + var$7 * var$8; - $this.$playerY = $par4EntityLiving.$lastTickPosY + ($par4EntityLiving.$posY - $par4EntityLiving.$lastTickPosY) * var$8; - $this.$playerZ = $par4EntityLiving.$lastTickPosZ + ($par4EntityLiving.$posZ - $par4EntityLiving.$lastTickPosZ) * var$8; -} -function nms_TileEntityRenderer_renderTileEntity($this, $par1TileEntity, $par2) { - var var$3, $var4, $var5, $var3, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var3 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1TileEntity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_TileEntity_getDistanceFrom($par1TileEntity, $this.$playerX, $this.$playerY, $this.$playerZ) >= $par1TileEntity.$getMaxRenderDistanceSquared()) - return; - var$3 = $this.$worldObj6; - $var4 = $par1TileEntity.$xCoord0; - $var5 = $par1TileEntity.$yCoord0; - $var3 = $par1TileEntity.$zCoord0; - var$7 = 0; - var$8 = nms_World_getSkyBlockTypeBrightness(var$3, nms_EnumSkyBlock_Sky, $var4, $var5, $var3); - $var4 = nms_World_getSkyBlockTypeBrightness(var$3, nms_EnumSkyBlock_Block, $var4, $var5, $var3); - if ($var4 >= var$7) - var$7 = $var4; - a: { - $var3 = var$8 << 20 | var$7 << 4; - $var4 = $var3 % 65536 | 0; - $var5 = $var3 / 65536 | 0; - $var3 = nms_OpenGlHelper_lightmapTexUnit; - var$9 = $var4 / 1.0; - var$10 = $var5 / 1.0; - nleg_EaglerAdapterGL30_$callClinit(); - switch ($var3) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = var$9; - nleg_EaglerAdapterGL30_tex1Y = var$10; - break a; - default: - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - var$11.$sb = var$3; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$3 = new jnci_UTF8Charset; - jnc_Charset__init_(var$3, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$3; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(238)); - $var5 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, $var5, $var5 + 1 | 0); - var$11.$buffer.data[$var5] = 10; - ji_PrintStream_printSB(var$12); - break a; - } - nleg_EaglerAdapterGL30_tex0X = var$9; - nleg_EaglerAdapterGL30_tex0Y = var$10; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - var$13 = $par1TileEntity.$xCoord0 - nms_TileEntityRenderer_staticPlayerX; - var$14 = $par1TileEntity.$yCoord0 - nms_TileEntityRenderer_staticPlayerY; - var$15 = $par1TileEntity.$zCoord0 - nms_TileEntityRenderer_staticPlayerZ; - $ptr = 1; - case 1: - $java.nms_TileEntityRenderer_renderTileEntityAt($this, $par1TileEntity, var$13, var$14, var$15, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntity, $par2, var$3, $var4, $var5, $var3, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr); -} -$java.nms_TileEntityRenderer_renderTileEntityAt = function($this, $par1TileEntity, $par2, $par4, $par6, $par8) { - var $var9, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1TileEntity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1TileEntity === null) - $var9 = null; - else { - var$7 = jl_Class_getClass($par1TileEntity.constructor); - var$8 = $this.$specialRendererMap; - if (var$7 !== null) { - var$9 = jl_Object_identity(var$7); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$7, var$9 & (var$8.$elementData.data.length - 1 | 0), var$9); - } else { - var$8 = var$8.$elementData.data[0]; - while (var$8 !== null && var$8.$key !== null) { - var$8 = var$8.$next1; - } - } - $var9 = var$8 === null ? null : var$8.$value0; - if ($var9 === null && var$7 !== $rt_cls(nms_TileEntity)) { - var$10 = jl_Class_getClass(var$7.$platformClass.$meta.superclass); - var$8 = $this.$specialRendererMap; - if (var$10 !== null) { - var$9 = jl_Object_identity(var$10); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$10, var$9 & (var$8.$elementData.data.length - 1 | 0), var$9); - } else { - var$8 = var$8.$elementData.data[0]; - while (var$8 !== null && var$8.$key !== null) { - var$8 = var$8.$next1; - } - } - $var9 = var$8 === null ? null : var$8.$value0; - if ($var9 === null && var$10 !== $rt_cls(nms_TileEntity)) { - var$11 = jl_Class_getClass(var$10.$platformClass.$meta.superclass); - var$8 = $this.$specialRendererMap; - if (var$11 !== null) { - var$9 = jl_Object_identity(var$11); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$11, var$9 & (var$8.$elementData.data.length - 1 | 0), var$9); - } else { - var$8 = var$8.$elementData.data[0]; - while (var$8 !== null && var$8.$key !== null) { - var$8 = var$8.$next1; - } - } - $var9 = var$8 === null ? null : var$8.$value0; - if ($var9 === null && var$11 !== $rt_cls(nms_TileEntity)) { - var$12 = jl_Class_getClass(var$11.$platformClass.$meta.superclass); - var$8 = $this.$specialRendererMap; - if (var$12 !== null) { - var$13 = jl_Object_hashCode(var$12); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$12, var$13 & (var$8.$elementData.data.length - 1 | 0), var$13); - } else { - var$8 = var$8.$elementData.data[0]; - while (var$8 !== null && var$8.$key !== null) { - var$8 = var$8.$next1; - } - } - $var9 = var$8 === null ? null : var$8.$value0; - if ($var9 === null && var$12 !== $rt_cls(nms_TileEntity)) { - var$14 = jl_Class_getClass(var$12.$platformClass.$meta.superclass); - var$8 = $this.$specialRendererMap; - if (var$14 === null) - var$8 = ju_HashMap_findNullKeyEntry(var$8); - else { - var$9 = ju_HashMap_computeHashCode(var$14); - var$8 = ju_HashMap_findNonNullKeyEntry(var$8, var$14, var$9 & (var$8.$elementData.data.length - 1 | 0), var$9); - } - $var9 = var$8 === null ? null : var$8.$value0; - if ($var9 === null && var$14 !== $rt_cls(nms_TileEntity)) { - $var9 = $java.nms_TileEntityRenderer_getSpecialRendererForClass($this, jl_Class_getClass(var$14.$platformClass.$meta.superclass)); - ju_HashMap_putImpl($this.$specialRendererMap, var$14, $var9); - } - ju_HashMap_putImpl($this.$specialRendererMap, var$12, $var9); - } - ju_HashMap_putImpl($this.$specialRendererMap, var$11, $var9); - } - ju_HashMap_putImpl($this.$specialRendererMap, var$10, $var9); - } - ju_HashMap_putImpl($this.$specialRendererMap, var$7, $var9); - } - } - if ($var9 === null) - return; - $ptr = 1; - case 1: - $var9.$renderTileEntityAt($par1TileEntity, $par2, $par4, $par6, $par8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntity, $par2, $par4, $par6, $par8, $var9, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, $ptr); -}; -$java.nms_TileEntityRenderer_setWorld = function($this, $par1World) { - var $var2, $var3; - $this.$worldObj6 = $par1World; - $var2 = $this.$specialRendererMap; - 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(); - if ($var3 !== null) - $var3.$onWorldChange($par1World); - } -}; -$java.nms_TileEntityRenderer_getFontRenderer = function($this) { - return $this.$fontRenderer4; -}; -$java.nms_TileEntityRenderer__clinit_ = function() { - nms_TileEntityRenderer_instance = $java.nms_TileEntityRenderer__init_(); -}; -function nms_RenderSorter() { - jl_Object.call(this); - this.$baseEntity = null; -} -function nms_RenderSorter_doCompare($this, $par1WorldRenderer, $par2WorldRenderer) { - var var$3; - if ($par1WorldRenderer.$isInFrustum && !$par2WorldRenderer.$isInFrustum) - return 1; - if ($par2WorldRenderer.$isInFrustum && !$par1WorldRenderer.$isInFrustum) - return (-1); - var$3 = $rt_compare(nms_WorldRenderer_distanceToEntitySquared($par1WorldRenderer, $this.$baseEntity), nms_WorldRenderer_distanceToEntitySquared($par2WorldRenderer, $this.$baseEntity)); - return var$3 < 0 ? 1 : var$3 > 0 ? (-1) : $par1WorldRenderer.$chunkIndex >= $par2WorldRenderer.$chunkIndex ? (-1) : 1; -} -$java.nms_RenderSorter_compare = function($this, $par1Obj, $par2Obj) { - return nms_RenderSorter_doCompare($this, $par1Obj, $par2Obj); -}; -function nms_GuiOptions() { - var a = this; nms_GuiScreen.call(a); - a.$parentScreen = null; - a.$options1 = null; - a.$screenTitle0 = null; -} -$java.nms_GuiOptions_relevantOptions = null; -function nms_GuiOptions_$callClinit() { - nms_GuiOptions_$callClinit = $rt_eraseClinit(nms_GuiOptions); - $java.nms_GuiOptions__clinit_(); -} -$java.nms_GuiOptions_initGui = function($this) { - var $var1, $var2, $var3, $var4, $var5, $var6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, $var7; - $var1 = nms_StringTranslate_instance; - $var2 = 0; - $this.$screenTitle0 = nms_StringTranslate_translateKey($var1, $rt_s(2617)); - $var3 = $java.nms_GuiOptions_relevantOptions.data; - $var4 = $var3.length; - $var5 = 0; - while ($var5 < $var4) { - $var6 = $var3[$var5]; - if ($var6.$enumFloat) { - var$7 = $this.$buttonList; - var$8 = new $java.nms_GuiSlider; - var$9 = $var6.$ordinal; - var$10 = (($this.$width0 / 2 | 0) - 155 | 0) + (($var2 % 2 | 0) * 160 | 0) | 0; - var$11 = (($this.$height0 / 6 | 0) - 12 | 0) + (24 * ($var2 >> 1) | 0) | 0; - var$12 = nms_GameSettings_getKeyBinding($this.$options1, $var6); - var$13 = nms_GameSettings_getOptionFloatValue($this.$options1, $var6); - nms_GuiButton__init_0(var$8, var$9, var$10, var$11, 150, 20, var$12); - var$8.$sliderValue = 1.0; - var$8.$dragging0 = 0; - var$8.$idFloat = null; - var$8.$idFloat = $var6; - var$8.$sliderValue = var$13; - ju_ArrayList_add(var$7, var$8); - } else { - $var7 = new nms_GuiSmallButton; - nms_GuiButton__init_0($var7, $var6.$ordinal, (($this.$width0 / 2 | 0) - 155 | 0) + (($var2 % 2 | 0) * 160 | 0) | 0, (($this.$height0 / 6 | 0) - 12 | 0) + (24 * ($var2 >> 1) | 0) | 0, 150, 20, nms_GameSettings_getKeyBinding($this.$options1, $var6)); - $var7.$enumOptions = $var6; - if ($var6 === nms_EnumOptions_DIFFICULTY && $this.$mc4.$theWorld !== null && $this.$mc4.$theWorld.$worldInfo.$hardcore) { - $var7.$enabled = 0; - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - var$8 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1101)); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, var$8); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(48)); - var$8 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2618)); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, var$8); - $var7.$displayString = jl_StringBuilder_toString(var$7); - } - ju_ArrayList_add($this.$buttonList, $var7); - } - $var2 = $var2 + 1 | 0; - $var5 = $var5 + 1 | 0; - } - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(101, ($this.$width0 / 2 | 0) - 152 | 0, (($this.$height0 / 6 | 0) + 96 | 0) - 6 | 0, 150, 20, nms_StringTranslate_translateKey($var1, $rt_s(2619)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(100, ($this.$width0 / 2 | 0) + 2 | 0, (($this.$height0 / 6 | 0) + 96 | 0) - 6 | 0, 150, 20, nms_StringTranslate_translateKey($var1, $rt_s(2620)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(102, ($this.$width0 / 2 | 0) - 152 | 0, (($this.$height0 / 6 | 0) + 120 | 0) - 6 | 0, 150, 20, nms_StringTranslate_translateKey($var1, $rt_s(2621)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(103, ($this.$width0 / 2 | 0) + 2 | 0, (($this.$height0 / 6 | 0) + 120 | 0) - 6 | 0, 150, 20, nms_StringTranslate_translateKey($var1, $rt_s(2622)))); - var$8 = $this.$buttonList; - $var6 = nms_GuiButton__init_(105, ($this.$width0 / 2 | 0) - 152 | 0, (($this.$height0 / 6 | 0) + 144 | 0) - 6 | 0, 150, 20, nms_StringTranslate_translateKey($var1, $rt_s(2623))); - ju_ArrayList_add(var$8, $var6); - var$7 = $this.$buttonList; - var$8 = nms_GuiButton__init_(104, ($this.$width0 / 2 | 0) + 2 | 0, (($this.$height0 / 6 | 0) + 144 | 0) - 6 | 0, 150, 20, nms_StringTranslate_translateKey($var1, $rt_s(2624))); - ju_ArrayList_add(var$7, var$8); - ju_ArrayList_add($this.$buttonList, 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)))); - $var6.$enabled = 0; - var$8.$enabled = 0; -}; -$java.nms_GuiOptions_actionPerformed = function($this, $par1GuiButton) { - var 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();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$enabled) { - if ($par1GuiButton.$id2 < 100 && $par1GuiButton instanceof nms_GuiSmallButton) { - nms_GameSettings_setOptionValue($this.$options1, $par1GuiButton.$enumOptions, 1); - $par1GuiButton.$displayString = nms_GameSettings_getKeyBinding($this.$options1, nms_EnumOptions_getEnumOptions($par1GuiButton.$id2)); - } - if ($par1GuiButton.$id2 == 101) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new $java.nms_GuiVideoSettings; - var$4 = $this.$options1; - $java.nms_GuiVideoSettings_$callClinit(); - nms_GuiScreen__init_(var$3); - var$3.$screenTitle3 = $rt_s(2625); - var$3.$is64bit = 0; - var$3.$parentGuiScreen = $this; - var$3.$guiGameSettings = var$4; - $ptr = 1; - continue main; - } - if ($par1GuiButton.$id2 == 100) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new $java.nms_GuiControls; - var$4 = $this.$options1; - nms_GuiScreen__init_(var$3); - var$3.$screenTitle4 = $rt_s(2626); - var$3.$buttonId = (-1); - var$3.$parentScreen1 = $this; - var$3.$options3 = var$4; - $ptr = 2; - continue main; - } - if ($par1GuiButton.$id2 == 102) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new nms_GuiLanguage; - var$4 = $this.$options1; - nms_GuiScreen__init_(var$3); - var$3.$updateTimer0 = (-1); - var$3.$parentGui = $this; - var$3.$theGameSettings = var$4; - $ptr = 3; - continue main; - } - if ($par1GuiButton.$id2 == 103) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new $java.nms_GuiScreenChatOptions; - var$4 = $this.$options1; - $java.nms_GuiScreenChatOptions_$callClinit(); - nms_GuiScreen__init_(var$3); - var$3.$field_82269_o = 0; - var$3.$theGuiScreen = $this; - var$3.$theSettings = var$4; - $ptr = 4; - continue main; - } - if ($par1GuiButton.$id2 == 200) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - $par1GuiButton = $this.$mc4; - var$2 = $this.$parentScreen; - $ptr = 5; - continue main; - } - } - return; - case 1: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - if ($par1GuiButton.$id2 == 100) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new $java.nms_GuiControls; - var$4 = $this.$options1; - nms_GuiScreen__init_(var$3); - var$3.$screenTitle4 = $rt_s(2626); - var$3.$buttonId = (-1); - var$3.$parentScreen1 = $this; - var$3.$options3 = var$4; - $ptr = 2; - continue main; - } - if ($par1GuiButton.$id2 == 102) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new nms_GuiLanguage; - var$4 = $this.$options1; - nms_GuiScreen__init_(var$3); - var$3.$updateTimer0 = (-1); - var$3.$parentGui = $this; - var$3.$theGameSettings = var$4; - $ptr = 3; - continue main; - } - if ($par1GuiButton.$id2 != 103) { - if ($par1GuiButton.$id2 != 200) - return; - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - $par1GuiButton = $this.$mc4; - var$2 = $this.$parentScreen; - $ptr = 5; - continue main; - } - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new $java.nms_GuiScreenChatOptions; - var$4 = $this.$options1; - $java.nms_GuiScreenChatOptions_$callClinit(); - nms_GuiScreen__init_(var$3); - var$3.$field_82269_o = 0; - var$3.$theGuiScreen = $this; - var$3.$theSettings = var$4; - $ptr = 4; - continue main; - case 2: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - if ($par1GuiButton.$id2 == 102) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new nms_GuiLanguage; - var$4 = $this.$options1; - nms_GuiScreen__init_(var$3); - var$3.$updateTimer0 = (-1); - var$3.$parentGui = $this; - var$3.$theGameSettings = var$4; - $ptr = 3; - continue main; - } - if ($par1GuiButton.$id2 != 103) { - if ($par1GuiButton.$id2 != 200) - return; - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - $par1GuiButton = $this.$mc4; - var$2 = $this.$parentScreen; - $ptr = 5; - continue main; - } - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new $java.nms_GuiScreenChatOptions; - var$4 = $this.$options1; - $java.nms_GuiScreenChatOptions_$callClinit(); - nms_GuiScreen__init_(var$3); - var$3.$field_82269_o = 0; - var$3.$theGuiScreen = $this; - var$3.$theSettings = var$4; - $ptr = 4; - continue main; - case 3: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - if ($par1GuiButton.$id2 != 103) { - if ($par1GuiButton.$id2 != 200) - return; - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - $par1GuiButton = $this.$mc4; - var$2 = $this.$parentScreen; - $ptr = 5; - continue main; - } - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - var$2 = $this.$mc4; - var$3 = new $java.nms_GuiScreenChatOptions; - var$4 = $this.$options1; - $java.nms_GuiScreenChatOptions_$callClinit(); - nms_GuiScreen__init_(var$3); - var$3.$field_82269_o = 0; - var$3.$theGuiScreen = $this; - var$3.$theSettings = var$4; - $ptr = 4; - case 4: - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - if ($par1GuiButton.$id2 != 200) - return; - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - $par1GuiButton = $this.$mc4; - var$2 = $this.$parentScreen; - $ptr = 5; - case 5: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, var$3, var$4, $ptr); -}; -$java.nms_GuiOptions_drawScreen = function($this, $par1, $par2, $par3) { - var var$4, var$5, var$6; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$4 = $this.$fontRenderer0; - var$5 = $this.$screenTitle0; - nms_FontRenderer_drawString(var$4, var$5, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, 15, 16777215, 1); - var$6 = 0; - a: { - while (var$6 < $this.$buttonList.$size0) { - var$4 = $this.$buttonList; - if (var$6 < 0) - break a; - if (var$6 >= var$4.$size0) - break a; - var$4.$array1.data[var$6].$drawButton($this.$mc4, $par1, $par2); - var$6 = var$6 + 1 | 0; - } - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -}; -$java.nms_GuiOptions__clinit_ = function() { - var var$1, var$2; - var$1 = $rt_createArray(nms_EnumOptions, 7); - var$2 = var$1.data; - var$2[0] = nms_EnumOptions_MUSIC; - var$2[1] = nms_EnumOptions_SOUND; - var$2[2] = nms_EnumOptions_INVERT_MOUSE; - var$2[3] = nms_EnumOptions_SENSITIVITY; - var$2[4] = nms_EnumOptions_FOV; - var$2[5] = nms_EnumOptions_DIFFICULTY; - var$2[6] = nms_EnumOptions_ANTIALIASING; - $java.nms_GuiOptions_relevantOptions = var$1; -}; -function nms_GuiLanguage() { - var a = this; nms_GuiScreen.call(a); - a.$parentGui = null; - a.$updateTimer0 = 0; - a.$languageList0 = null; - a.$theGameSettings = null; - a.$doneButton = null; -} -$java.nms_GuiLanguage_initGui = function($this) { - var $var1, var$2, var$3, var$4, var$5, var$6; - $var1 = nms_StringTranslate_instance; - var$2 = $this.$buttonList; - var$3 = new nms_GuiSmallButton; - var$4 = ($this.$width0 / 2 | 0) - 75 | 0; - var$5 = $this.$height0 - 38 | 0; - var$6 = nms_StringTranslate_translateKey($var1, $rt_s(436)); - $var1 = null; - nms_GuiButton__init_0(var$3, 6, var$4, var$5, 150, 20, var$6); - var$3.$enumOptions = $var1; - $this.$doneButton = var$3; - ju_ArrayList_add(var$2, var$3); - $this.$languageList0 = $java.nms_GuiSlotLanguage__init_($this); - var$3 = $this.$languageList0; - var$3.$scrollUpButtonID = 7; - var$3.$scrollDownButtonID = 8; -}; -$java.nms_GuiLanguage_actionPerformed = function($this, $par1GuiButton) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($par1GuiButton.$enabled) - switch ($par1GuiButton.$id2) { - case 5: - break; - case 6: - $par1GuiButton = $this.$mc4; - var$2 = $this.$parentGui; - $ptr = 1; - continue main; - default: - $java.nms_GuiSlot_actionPerformed($this.$languageList0, $par1GuiButton); - break a; - } - } - return; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, $ptr); -}; -$java.nms_GuiLanguage_drawScreen = function($this, $par1, $par2, $par3) { - var var$4, var$5, $var4, 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();$var4 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$4 = $this.$languageList0; - $ptr = 1; - case 1: - $java.nms_GuiSlot_drawScreen(var$4, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - if ($this.$updateTimer0 <= 0) { - var$4 = $this.$mc4.$texturePackList; - var$5 = new ju_ArrayList; - var$5.$array1 = $rt_createArray(jl_Object, 10); - var$4.$selectedTexturePack = nms_TexturePackList_defaultTexturePack; - ju_ArrayList_add(var$5, nms_TexturePackList_defaultTexturePack); - var$4.$availableTexturePacks = var$5; - $this.$updateTimer0 = $this.$updateTimer0 + 20 | 0; - } - $var4 = nms_StringTranslate_instance; - var$5 = $this.$fontRenderer0; - var$4 = nms_StringTranslate_translateKey($var4, $rt_s(2621)); - nms_FontRenderer_drawString(var$5, var$4, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$5, var$4) / 2 | 0) | 0, 16, 16777215, 1); - var$4 = $this.$fontRenderer0; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(2437)); - var$7 = nms_StringTranslate_translateKey($var4, $rt_s(2627)); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$7); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(64)); - var$7 = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - var$8 = $this.$width0 / 2 | 0; - var$9 = $this.$height0 - 56 | 0; - nms_FontRenderer_drawString(var$4, var$7, var$8 - (nms_FontRenderer_getStringWidth(var$4, var$7) / 2 | 0) | 0, var$9, 8421504, 1); - var$8 = 0; - a: { - while (var$8 < $this.$buttonList.$size0) { - var$4 = $this.$buttonList; - if (var$8 < 0) - break a; - if (var$8 >= var$4.$size0) - break a; - var$4.$array1.data[var$8].$drawButton($this.$mc4, $par1, $par2); - var$8 = var$8 + 1 | 0; - } - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, var$4, var$5, $var4, var$7, var$8, var$9, $ptr); -}; -$java.nms_GuiLanguage_updateScreen = function($this) { - $this.$updateTimer0 = $this.$updateTimer0 - 1 | 0; -}; -function nms_GuiMultiplayer() { - var a = this; nms_GuiScreen.call(a); - a.$parentScreen2 = null; - a.$serverSlotContainer = null; - a.$internetServerList = null; - a.$selectedServer = 0; - a.$field_96289_p = null; - a.$buttonSelect = null; - a.$buttonDelete = null; - a.$deleteClicked = 0; - a.$addClicked = 0; - a.$editClicked = 0; - a.$directClicked = 0; - a.$lagTooltip = null; - a.$theServerData = null; - a.$ticksOpened = 0; - a.$field_74024_A = 0; - a.$listofLanServers = null; -} -$java.nms_GuiMultiplayer_threadsPending = 0; -$java.nms_GuiMultiplayer_lock = null; -function nms_GuiMultiplayer__init_(var_0) { - var var_1 = new nms_GuiMultiplayer(); - $java.nms_GuiMultiplayer__init_(var_1, var_0); - return var_1; -} -$java.nms_GuiMultiplayer__init_ = function($this, $par1GuiScreen) { - nms_GuiScreen__init_($this); - $this.$selectedServer = (-1); - $this.$deleteClicked = 0; - $this.$addClicked = 0; - $this.$editClicked = 0; - $this.$directClicked = 0; - $this.$lagTooltip = null; - $this.$theServerData = null; - $this.$listofLanServers = new ju_Collections$3; - $this.$parentScreen2 = $par1GuiScreen; -}; -$java.nms_GuiMultiplayer_initGui = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - var$1 = $this.$buttonList; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; - if ($this.$field_74024_A) { - var$1 = $this.$serverSlotContainer; - var$2 = $this.$width0; - var$3 = $this.$height0; - var$4 = $this.$height0 - 64 | 0; - var$1.$width9 = var$2; - var$1.$height10 = var$3; - var$1.$top = 32; - var$1.$bottom = var$4; - var$1.$left1 = 0; - var$1.$right0 = var$2; - } else { - $this.$field_74024_A = 1; - var$1 = new nms_ServerList; - var$5 = $this.$mc4; - var$6 = new ju_ArrayList; - var$6.$array1 = $rt_createArray(jl_Object, 10); - var$1.$servers = var$6; - var$1.$mc = var$5; - nms_ServerList_loadServerList(var$1); - $this.$internetServerList = var$1; - nms_ServerList_loadServerList($this.$internetServerList); - var$1 = new nms_GuiSlotServer; - $java.nms_GuiSlot__init_(var$1, $this.$mc4, $this.$width0, $this.$height0, 32, $this.$height0 - 64 | 0, 36); - var$1.$parentGui0 = $this; - $this.$serverSlotContainer = var$1; - } - $java.nms_GuiMultiplayer_initGuiControls($this); -}; -$java.nms_GuiMultiplayer_initGuiControls = function($this) { - var $var1, var$2, var$3, var$4, $var2; - $var1 = nms_StringTranslate_instance; - var$2 = $this.$buttonList; - var$3 = nms_GuiButton__init_(7, ($this.$width0 / 2 | 0) - 154 | 0, $this.$height0 - 28 | 0, 70, 20, nms_StringTranslate_translateKey($var1, $rt_s(2628))); - $this.$field_96289_p = var$3; - ju_ArrayList_add(var$2, var$3); - var$3 = $this.$buttonList; - var$4 = nms_GuiButton__init_(2, ($this.$width0 / 2 | 0) - 74 | 0, $this.$height0 - 28 | 0, 70, 20, nms_StringTranslate_translateKey($var1, $rt_s(2629))); - $this.$buttonDelete = var$4; - ju_ArrayList_add(var$3, var$4); - var$3 = $this.$buttonList; - var$4 = nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 154 | 0, $this.$height0 - 52 | 0, 100, 20, nms_StringTranslate_translateKey($var1, $rt_s(2630))); - $this.$buttonSelect = var$4; - ju_ArrayList_add(var$3, var$4); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(4, ($this.$width0 / 2 | 0) - 50 | 0, $this.$height0 - 52 | 0, 100, 20, nms_StringTranslate_translateKey($var1, $rt_s(2631)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(3, (($this.$width0 / 2 | 0) + 4 | 0) + 50 | 0, $this.$height0 - 52 | 0, 100, 20, nms_StringTranslate_translateKey($var1, $rt_s(2632)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(8, ($this.$width0 / 2 | 0) + 4 | 0, $this.$height0 - 28 | 0, 70, 20, nms_StringTranslate_translateKey($var1, $rt_s(2633)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(0, (($this.$width0 / 2 | 0) + 4 | 0) + 76 | 0, $this.$height0 - 28 | 0, 75, 20, nms_StringTranslate_translateKey($var1, $rt_s(2548)))); - $var2 = $this.$selectedServer >= 0 && $this.$selectedServer < (($this.$serverSlotContainer.$parentGui0.$internetServerList.$servers.$size0 + 0 | 0) + 1 | 0) ? 1 : 0; - $this.$buttonSelect.$enabled = $var2; - $this.$field_96289_p.$enabled = $var2; - $this.$buttonDelete.$enabled = $var2; -}; -$java.nms_GuiMultiplayer_updateScreen = function($this) { - $this.$ticksOpened = $this.$ticksOpened + 1 | 0; -}; -$java.nms_GuiMultiplayer_onGuiClosed = function($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; -}; -$java.nms_GuiMultiplayer_actionPerformed = function($this, $par1GuiButton) { - var var$2, $var2, $var3, $var4, $var6, $var7, $var8, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - if ($par1GuiButton.$enabled) { - if ($par1GuiButton.$id2 == 2) { - $par1GuiButton = $this.$internetServerList; - var$2 = $this.$selectedServer; - $par1GuiButton = $par1GuiButton.$servers; - if (var$2 >= 0 && var$2 < $par1GuiButton.$size0) { - $var2 = $par1GuiButton.$array1.data[var$2].$serverName; - if ($var2 === null) - break a; - $this.$deleteClicked = 1; - $var3 = nms_StringTranslate_instance; - $var4 = nms_StringTranslate_translateKey($var3, $rt_s(2634)); - $par1GuiButton = new jl_StringBuilder; - $par1GuiButton.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($par1GuiButton, $par1GuiButton.$length, $rt_s(2635)); - jl_AbstractStringBuilder_insert($par1GuiButton, $par1GuiButton.$length, $var2); - jl_AbstractStringBuilder_insert($par1GuiButton, $par1GuiButton.$length, $rt_s(2636)); - $var2 = nms_StringTranslate_translateKey($var3, $rt_s(2637)); - jl_AbstractStringBuilder_insert($par1GuiButton, $par1GuiButton.$length, $var2); - $var2 = jl_String__init_0($par1GuiButton.$buffer, 0, $par1GuiButton.$length); - $var6 = nms_StringTranslate_translateKey($var3, $rt_s(2638)); - $var7 = nms_StringTranslate_translateKey($var3, $rt_s(2548)); - $var8 = new $java.nms_GuiYesNo; - var$2 = $this.$selectedServer; - nms_GuiScreen__init_($var8); - $var8.$parentScreen0 = $this; - $var8.$message1 = $var4; - $var8.$message2 = $var2; - $var8.$buttonText1 = $var6; - $var8.$buttonText2 = $var7; - $var8.$worldNumber = var$2; - $par1GuiButton = $this.$mc4; - $ptr = 5; - continue main; - } - $par1GuiButton = new jl_IndexOutOfBoundsException; - $par1GuiButton.$suppressionEnabled = 1; - $par1GuiButton.$writableStackTrace = 1; - $rt_throw($par1GuiButton); - } - if ($par1GuiButton.$id2 == 1) { - var$2 = $this.$selectedServer; - $par1GuiButton = $this.$internetServerList.$servers; - if (var$2 >= 0 && var$2 < $par1GuiButton.$size0) { - $var6 = $par1GuiButton.$array1.data[var$2]; - $var2 = $this.$mc4; - $par1GuiButton = new $java.nms_GuiConnecting; - $var4 = $this.$mc4; - $ptr = 3; - continue main; - } - $par1GuiButton = new jl_IndexOutOfBoundsException; - $par1GuiButton.$suppressionEnabled = 1; - $par1GuiButton.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1GuiButton); - $rt_throw($par1GuiButton); - } - if ($par1GuiButton.$id2 == 4) { - $this.$directClicked = 1; - $par1GuiButton = $this.$mc4; - $var2 = new $java.nms_GuiScreenServerList; - $var4 = nms_ServerData__init_(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2639)), $rt_s(44)); - $this.$theServerData = $var4; - nms_GuiScreen__init_($var2); - $var2.$guiScreen = $this; - $var2.$theServerData0 = $var4; - $ptr = 1; - continue main; - } - if ($par1GuiButton.$id2 == 3) { - $this.$addClicked = 1; - $var4 = $this.$mc4; - $var6 = new $java.nms_GuiScreenAddServer; - $par1GuiButton = nms_ServerData__init_(nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2639)), $rt_s(44)); - $this.$theServerData = $par1GuiButton; - nms_GuiScreen__init_($var6); - $var6.$parentGui1 = $this; - $var6.$newServerData = $par1GuiButton; - $ptr = 2; - continue main; - } - if ($par1GuiButton.$id2 == 7) { - $this.$editClicked = 1; - $par1GuiButton = $this.$internetServerList; - var$2 = $this.$selectedServer; - $par1GuiButton = $par1GuiButton.$servers; - if (var$2 >= 0 && var$2 < $par1GuiButton.$size0) { - $var9 = $par1GuiButton.$array1.data[var$2]; - $this.$theServerData = nms_ServerData__init_($var9.$serverName, $var9.$serverIP); - $this.$theServerData.$hideAddress = $var9.$hideAddress; - $par1GuiButton = $this.$mc4; - $var2 = new $java.nms_GuiScreenAddServer; - $var4 = $this.$theServerData; - nms_GuiScreen__init_($var2); - $var2.$parentGui1 = $this; - $var2.$newServerData = $var4; - $ptr = 8; - continue main; - } - $par1GuiButton = new jl_IndexOutOfBoundsException; - $par1GuiButton.$suppressionEnabled = 1; - $par1GuiButton.$writableStackTrace = 1; - $rt_throw($par1GuiButton); - } - if (!$par1GuiButton.$id2) { - $par1GuiButton = $this.$mc4; - $var2 = $this.$parentScreen2; - $ptr = 6; - continue main; - } - if ($par1GuiButton.$id2 == 8) { - $par1GuiButton = $this.$mc4; - $var2 = nms_GuiMultiplayer__init_($this.$parentScreen2); - $ptr = 7; - continue main; - } - $java.nms_GuiSlot_actionPerformed($this.$serverSlotContainer, $par1GuiButton); - } - } - return; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen($var4, $var6); - if ($rt_suspending()) { - break main; - } - return; - case 3: - $java.nms_GuiConnecting__init_($par1GuiButton, $this, $var4, $var6); - if ($rt_suspending()) { - break main; - } - $ptr = 4; - case 4: - nmc_Minecraft_displayGuiScreen($var2, $par1GuiButton); - if ($rt_suspending()) { - break main; - } - return; - case 5: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var8); - if ($rt_suspending()) { - break main; - } - return; - case 6: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var2); - if ($rt_suspending()) { - break main; - } - return; - case 7: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var2); - if ($rt_suspending()) { - break main; - } - return; - case 8: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, $var2, $var3, $var4, $var6, $var7, $var8, $var9, $ptr); -}; -$java.nms_GuiMultiplayer_confirmClicked = function($this, $par1, $par2) { - var var$3, var$4, $var3, var$6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$6 = $thread.pop();$var3 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$deleteClicked) { - $this.$deleteClicked = 0; - if ($par1) { - ju_ArrayList_remove($this.$internetServerList.$servers, $par2); - nms_ServerList_saveServerList($this.$internetServerList); - $this.$selectedServer = (-1); - } - var$3 = $this.$mc4; - $ptr = 1; - continue main; - } - if ($this.$directClicked) { - $this.$directClicked = 0; - if (!$par1) { - var$3 = $this.$mc4; - $ptr = 2; - continue main; - } - var$3 = $this.$theServerData; - var$4 = $this.$mc4; - $var3 = new $java.nms_GuiConnecting; - var$6 = $this.$mc4; - $ptr = 3; - continue main; - } - if ($this.$addClicked) { - $this.$addClicked = 0; - if ($par1) { - var$3 = $this.$internetServerList; - $var3 = $this.$theServerData; - ju_ArrayList_add(var$3.$servers, $var3); - nms_ServerList_saveServerList($this.$internetServerList); - $this.$selectedServer = (-1); - } - var$3 = $this.$mc4; - $ptr = 5; - continue main; - } - if (!$this.$editClicked) - return; - $this.$editClicked = 0; - if ($par1) { - var$3 = $this.$internetServerList; - $par1 = $this.$selectedServer; - var$3 = var$3.$servers; - if ($par1 >= 0 && $par1 < var$3.$size0) { - $var3 = var$3.$array1.data[$par1]; - $var3.$serverName = $this.$theServerData.$serverName; - $var3.$serverIP = $this.$theServerData.$serverIP; - $var3.$hideAddress = $this.$theServerData.$hideAddress; - nms_ServerList_saveServerList($this.$internetServerList); - } else { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - } - var$3 = $this.$mc4; - $ptr = 6; - continue main; - case 1: - nmc_Minecraft_displayGuiScreen(var$3, $this); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen(var$3, $this); - if ($rt_suspending()) { - break main; - } - return; - case 3: - $java.nms_GuiConnecting__init_($var3, $this, var$6, var$3); - if ($rt_suspending()) { - break main; - } - $ptr = 4; - case 4: - nmc_Minecraft_displayGuiScreen(var$4, $var3); - if ($rt_suspending()) { - break main; - } - return; - case 5: - nmc_Minecraft_displayGuiScreen(var$3, $this); - if ($rt_suspending()) { - break main; - } - return; - case 6: - nmc_Minecraft_displayGuiScreen(var$3, $this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, $var3, var$6, $ptr); -}; -$java.nms_GuiMultiplayer_keyTyped = function($this, $par1, $par2) { - var $var3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var3 = $this.$selectedServer; - if ($par2 == 59) { - $this.$mc4.$gameSettings.$hideServerAddress = $this.$mc4.$gameSettings.$hideServerAddress ? 0 : 1; - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - } else { - nms_GuiScreen_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = !nlea_EaglerAdapterImpl2_keyStates.data[42] && !nlea_EaglerAdapterImpl2_keyStates.data[54] ? 0 : 1; - if (var$4 && $par2 == 200) { - if ($var3 <= 0) - break a; - if ($var3 >= $this.$internetServerList.$servers.$size0) - break a; - var$5 = $this.$internetServerList; - $par1 = $var3 - 1 | 0; - var$6 = var$5.$servers; - if ($var3 >= 0 && $var3 < var$6.$size0) { - var$7 = var$6.$array1.data[$var3]; - var$6 = var$5.$servers; - var$8 = var$5.$servers; - if ($par1 >= 0 && $par1 < var$8.$size0) { - var$8 = var$8.$array1.data[$par1]; - if ($var3 >= 0 && $var3 < var$6.$size0) { - var$6.$array1.data[$var3] = var$8; - var$6 = var$5.$servers; - if ($par1 >= 0 && $par1 < var$6.$size0) { - var$6.$array1.data[$par1] = var$7; - nms_ServerList_saveServerList(var$5); - $this.$selectedServer = $this.$selectedServer - 1 | 0; - if ($var3 >= ($this.$internetServerList.$servers.$size0 - 1 | 0)) - break a; - var$5 = $this.$serverSlotContainer; - $par1 = -$this.$serverSlotContainer.$slotHeight; - var$5.$amountScrolled = var$5.$amountScrolled + $par1; - $java.nms_GuiSlot_bindAmountScrolled(var$5); - var$5.$initialClickY = (-2.0); - break a; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace(var$5); - $rt_throw(var$5); - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace(var$5); - $rt_throw(var$5); - } - var$4 = !nlea_EaglerAdapterImpl2_keyStates.data[42] && !nlea_EaglerAdapterImpl2_keyStates.data[54] ? 0 : 1; - if (var$4 && $par2 == 208) { - if ($var3 < ($this.$internetServerList.$servers.$size0 - 1 | 0)) { - var$5 = $this.$internetServerList; - $par1 = $var3 + 1 | 0; - var$6 = var$5.$servers; - ju_ArrayList_checkIndex(var$6, $var3); - var$7 = var$6.$array1.data[$var3]; - var$8 = var$5.$servers; - var$6 = var$5.$servers; - ju_ArrayList_checkIndex(var$6, $par1); - ju_ArrayList_set(var$8, $var3, var$6.$array1.data[$par1]); - ju_ArrayList_set(var$5.$servers, $par1, var$7); - nms_ServerList_saveServerList(var$5); - $this.$selectedServer = $this.$selectedServer + 1 | 0; - if ($var3 > 0) - $java.nms_GuiSlot_func_77208_b($this.$serverSlotContainer, $this.$serverSlotContainer.$slotHeight); - } - } else if ($par1 == 13) { - var$5 = ju_ArrayList_get($this.$buttonList, 2); - $ptr = 1; - continue main; - } - } - } - return; - case 1: - $java.nms_GuiMultiplayer_actionPerformed($this, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_GuiMultiplayer_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, 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();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$lagTooltip = null; - $var4 = nms_StringTranslate_instance; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$5 = $this.$serverSlotContainer; - $ptr = 1; - case 1: - $java.nms_GuiSlot_drawScreen(var$5, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - var$5 = $this.$fontRenderer0; - $var4 = nms_StringTranslate_translateKey($var4, $rt_s(2640)); - nms_FontRenderer_drawString(var$5, $var4, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$5, $var4) / 2 | 0) | 0, 20, 16777215, 1); - var$6 = 0; - a: { - while (var$6 < $this.$buttonList.$size0) { - var$5 = $this.$buttonList; - if (var$6 < 0) - break a; - if (var$6 >= var$5.$size0) - break a; - var$5.$array1.data[var$6].$drawButton($this.$mc4, $par1, $par2); - var$6 = var$6 + 1 | 0; - } - if ($this.$lagTooltip !== null) - $java.nms_GuiMultiplayer_func_74007_a($this, $this.$lagTooltip, $par1, $par2); - 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, var$6, $ptr); -}; -$java.nms_GuiMultiplayer_func_74007_a = function($this, $par1Str, $par2, $par3) { - var $var4, $var5; - if ($par1Str !== null) { - $var4 = $par2 + 12 | 0; - $var5 = $par3 - 12 | 0; - nms_Gui_drawGradientRect($this, $var4 - 3 | 0, $var5 - 3 | 0, ($var4 + nms_FontRenderer_getStringWidth($this.$fontRenderer0, $par1Str) | 0) + 3 | 0, ($var5 + 8 | 0) + 3 | 0, (-1073741824), (-1073741824)); - nms_FontRenderer_drawString($this.$fontRenderer0, $par1Str, $var4, $var5, (-1), 1); - } -}; -$java.nms_GuiMultiplayer_getAndSetLagTooltip = function($par0GuiMultiplayer, $par1Str) { - $par0GuiMultiplayer.$lagTooltip = $par1Str; - return $par1Str; -}; -function nms_GuiMultiplayer__clinit_() { - $java.nms_GuiMultiplayer_threadsPending = 0; - $java.nms_GuiMultiplayer_lock = new jl_Object; -} -function nms_IconFlipped() { - var a = this; jl_Object.call(a); - a.$baseIcon = null; - a.$flipU = 0; - a.$flipV = 0; -} -$java.nms_IconFlipped_getOriginX = function($this) { - return $this.$baseIcon.$getOriginX(); -}; -$java.nms_IconFlipped_getOriginY = function($this) { - return $this.$baseIcon.$getOriginY(); -}; -$java.nms_IconFlipped_getMinU = function($this) { - return !$this.$flipU ? $this.$baseIcon.$getMinU() : $this.$baseIcon.$getMaxU(); -}; -$java.nms_IconFlipped_getMaxU = function($this) { - return !$this.$flipU ? $this.$baseIcon.$getMaxU() : $this.$baseIcon.$getMinU(); -}; -$java.nms_IconFlipped_getInterpolatedU = function($this, $par1) { - var $var3; - $var3 = (!$this.$flipU ? $this.$baseIcon.$getMaxU() : $this.$baseIcon.$getMinU()) - (!$this.$flipU ? $this.$baseIcon.$getMinU() : $this.$baseIcon.$getMaxU()); - return (!$this.$flipU ? $this.$baseIcon.$getMinU() : $this.$baseIcon.$getMaxU()) + $var3 * $par1 / 16.0; -}; -$java.nms_IconFlipped_getMinV = function($this) { - return !$this.$flipV ? $this.$baseIcon.$getMinV() : $this.$baseIcon.$getMinV(); -}; -$java.nms_IconFlipped_getMaxV = function($this) { - return !$this.$flipV ? $this.$baseIcon.$getMaxV() : $this.$baseIcon.$getMinV(); -}; -$java.nms_IconFlipped_getInterpolatedV = function($this, $par1) { - var $var3; - $var3 = (!$this.$flipV ? $this.$baseIcon.$getMaxV() : $this.$baseIcon.$getMinV()) - (!$this.$flipV ? $this.$baseIcon.$getMinV() : $this.$baseIcon.$getMinV()); - return (!$this.$flipV ? $this.$baseIcon.$getMinV() : $this.$baseIcon.$getMinV()) + $var3 * $par1 / 16.0; -}; -$java.nms_IconFlipped_getIconName = function($this) { - return $this.$baseIcon.$getIconName(); -}; -$java.nms_IconFlipped_getSheetWidth = function($this) { - return $this.$baseIcon.$getSheetWidth(); -}; -$java.nms_IconFlipped_getSheetHeight = function($this) { - return $this.$baseIcon.$getSheetHeight(); -}; -function nms_MinecraftError() { - jl_Error.call(this); -} -$java.nms_MinecraftError__init_ = function() { - var var_0 = new nms_MinecraftError(); - nms_MinecraftError__init_(var_0); - return var_0; -}; -function nms_MinecraftError__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function nms_EnumAction() { - jl_Enum.call(this); -} -var nms_EnumAction_none = null; -var nms_EnumAction_eat = null; -var nms_EnumAction_drink = null; -var nms_EnumAction_block = null; -var nms_EnumAction_bow = null; -$java.nms_EnumAction_$VALUES = null; -function nms_EnumAction__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumAction; - var$1.$name2 = $rt_s(1256); - var$1.$ordinal = 0; - nms_EnumAction_none = var$1; - var$1 = new nms_EnumAction; - var$1.$name2 = $rt_s(2641); - var$1.$ordinal = 1; - nms_EnumAction_eat = var$1; - var$1 = new nms_EnumAction; - var$1.$name2 = $rt_s(2642); - var$1.$ordinal = 2; - nms_EnumAction_drink = var$1; - var$1 = new nms_EnumAction; - var$1.$name2 = $rt_s(2643); - var$1.$ordinal = 3; - nms_EnumAction_block = var$1; - var$1 = new nms_EnumAction; - var$1.$name2 = $rt_s(1354); - var$1.$ordinal = 4; - nms_EnumAction_bow = var$1; - var$2 = $rt_createArray(nms_EnumAction, 5); - var$3 = var$2.data; - var$3[0] = nms_EnumAction_none; - var$3[1] = nms_EnumAction_eat; - var$3[2] = nms_EnumAction_drink; - var$3[3] = nms_EnumAction_block; - var$3[4] = nms_EnumAction_bow; - $java.nms_EnumAction_$VALUES = var$2; -} -function nms_EnchantmentData() { - var a = this; jl_Object.call(a); - a.$enchantmentobj = null; - a.$enchantmentLevel = 0; -} -function nms_EnchantmentData__init_(var_0, var_1) { - var var_2 = new nms_EnchantmentData(); - $java.nms_EnchantmentData__init_(var_2, var_0, var_1); - return var_2; -} -$java.nms_EnchantmentData__init_ = function($this, $par1Enchantment, $par2) { - $this.$enchantmentobj = $par1Enchantment; - $this.$enchantmentLevel = $par2; -}; -function nms_ChatLine() { - var a = this; jl_Object.call(a); - a.$updateCounterCreated = 0; - a.$lineString = null; - a.$chatLineID = 0; -} -function nms_ChatLine_getChatLineString($this) { - return $this.$lineString; -} -function nms_ChatLine_getUpdatedCounter($this) { - return $this.$updateCounterCreated; -} -$java.nms_ChatLine_getChatLineID = function($this) { - return $this.$chatLineID; -}; -function jl_AbstractStringBuilder$Constants() { - jl_Object.call(this); -} -var jl_AbstractStringBuilder$Constants_intPowersOfTen = null; -var jl_AbstractStringBuilder$Constants_longPowersOfTen = null; -var jl_AbstractStringBuilder$Constants_longLogPowersOfTen = null; -var jl_AbstractStringBuilder$Constants_doubleAnalysisResult = null; -var jl_AbstractStringBuilder$Constants_floatAnalysisResult = null; -$java.jl_AbstractStringBuilder$Constants__init_ = function() { - var var_0 = new jl_AbstractStringBuilder$Constants(); - jl_AbstractStringBuilder$Constants__init_(var_0); - return var_0; -}; -function jl_AbstractStringBuilder$Constants__init_($this) { - return; -} -function jl_AbstractStringBuilder$Constants__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(10); - var$2 = var$1.data; - var$2[0] = 1; - var$2[1] = 10; - var$2[2] = 100; - var$2[3] = 1000; - var$2[4] = 10000; - var$2[5] = 100000; - var$2[6] = 1000000; - var$2[7] = 10000000; - var$2[8] = 100000000; - var$2[9] = 1000000000; - jl_AbstractStringBuilder$Constants_intPowersOfTen = var$1; - var$1 = $rt_createLongArray(19); - var$2 = var$1.data; - var$2[0] = Long_fromInt(1); - var$2[1] = Long_fromInt(10); - var$2[2] = Long_fromInt(100); - var$2[3] = Long_fromInt(1000); - var$2[4] = Long_fromInt(10000); - var$2[5] = Long_fromInt(100000); - var$2[6] = Long_fromInt(1000000); - var$2[7] = Long_fromInt(10000000); - var$2[8] = Long_fromInt(100000000); - var$2[9] = Long_fromInt(1000000000); - var$2[10] = new Long(1410065408, 2); - var$2[11] = new Long(1215752192, 23); - var$2[12] = new Long(3567587328, 232); - var$2[13] = new Long(1316134912, 2328); - var$2[14] = new Long(276447232, 23283); - var$2[15] = new Long(2764472320, 232830); - var$2[16] = new Long(1874919424, 2328306); - var$2[17] = new Long(1569325056, 23283064); - var$2[18] = new Long(2808348672, 232830643); - jl_AbstractStringBuilder$Constants_longPowersOfTen = var$1; - var$1 = $rt_createLongArray(6); - var$2 = var$1.data; - var$2[0] = Long_fromInt(1); - var$2[1] = Long_fromInt(10); - var$2[2] = Long_fromInt(100); - var$2[3] = Long_fromInt(10000); - var$2[4] = Long_fromInt(100000000); - var$2[5] = new Long(1874919424, 2328306); - jl_AbstractStringBuilder$Constants_longLogPowersOfTen = var$1; - jl_AbstractStringBuilder$Constants_doubleAnalysisResult = new otcit_DoubleAnalyzer$Result; - jl_AbstractStringBuilder$Constants_floatAnalysisResult = new otcit_FloatAnalyzer$Result; -} -function otcit_DoubleAnalyzer() { - jl_Object.call(this); -} -$java.otcit_DoubleAnalyzer_mantissa10Table = null; -$java.otcit_DoubleAnalyzer_exp10Table = null; -$java.otcit_DoubleAnalyzer__init_ = function() { - var var_0 = new otcit_DoubleAnalyzer(); - otcit_DoubleAnalyzer__init_(var_0); - return var_0; -}; -function otcit_DoubleAnalyzer__init_($this) { - return; -} -function otcit_DoubleAnalyzer_analyze($d, $result) { - var $bits, $mantissa, $exponent, $errorShift, var$7, $decExponent, $mantissaShift, $decMantissa, $error, $upError, $downError, $lowerPos, $upperPos; - $bits = $rt_doubleToLongBits($d); - $result.$sign0 = Long_eq(Long_and($bits, new Long(0, 2147483648)), Long_ZERO) ? 0 : 1; - $mantissa = Long_and($bits, new Long(4294967295, 1048575)); - $exponent = Long_shr($bits, 52).lo & 2047; - if (Long_eq($mantissa, Long_ZERO) && !$exponent) { - $result.$mantissa0 = Long_ZERO; - $result.$exponent0 = 0; - return; - } - $errorShift = 0; - if ($exponent) - $mantissa = Long_or($mantissa, new Long(0, 1048576)); - else { - $mantissa = Long_shl($mantissa, 1); - while (Long_eq(Long_and($mantissa, new Long(0, 1048576)), Long_ZERO)) { - $mantissa = Long_shl($mantissa, 1); - $exponent = $exponent + (-1) | 0; - $errorShift = $errorShift + 1 | 0; - } - } - var$7 = $java.otcit_DoubleAnalyzer_exp10Table; - $decExponent = ju_Arrays_binarySearch(var$7, 0, var$7.data.length, $exponent); - if ($decExponent < 0) - $decExponent = -$decExponent - 2 | 0; - $mantissaShift = 12 + ($exponent - $java.otcit_DoubleAnalyzer_exp10Table.data[$decExponent] | 0) | 0; - $decMantissa = $java.otcit_DoubleAnalyzer_mulAndShiftRight($mantissa, $java.otcit_DoubleAnalyzer_mantissa10Table.data[$decExponent], $mantissaShift); - if (Long_ge($decMantissa, new Long(2808348672, 232830643))) { - $decExponent = $decExponent + 1 | 0; - $mantissaShift = 12 + ($exponent - $java.otcit_DoubleAnalyzer_exp10Table.data[$decExponent] | 0) | 0; - $decMantissa = $java.otcit_DoubleAnalyzer_mulAndShiftRight($mantissa, $java.otcit_DoubleAnalyzer_mantissa10Table.data[$decExponent], $mantissaShift); - } - $error = Long_shru($java.otcit_DoubleAnalyzer_mantissa10Table.data[$decExponent], (63 - $mantissaShift | 0) - $errorShift | 0); - $upError = Long_shr(Long_add($error, Long_fromInt(1)), 1); - $downError = Long_shr($error, 1); - if (Long_eq($mantissa, new Long(0, 1048576))) - $downError = Long_shr($downError, 2); - $lowerPos = $java.otcit_DoubleAnalyzer_findLowerDistanceToZero($decMantissa, $downError); - $upperPos = $java.otcit_DoubleAnalyzer_findUpperDistanceToZero($decMantissa, $upError); - $exponent = Long_compare($lowerPos, $upperPos); - $mantissa = $exponent > 0 ? Long_mul(Long_div($decMantissa, $lowerPos), $lowerPos) : $exponent < 0 ? Long_add(Long_mul(Long_div($decMantissa, $upperPos), $upperPos), $upperPos) : Long_mul(Long_div(Long_add($decMantissa, Long_div($upperPos, Long_fromInt(2))), $upperPos), $upperPos); - if (Long_ge($mantissa, new Long(2808348672, 232830643))) { - $decExponent = $decExponent + 1 | 0; - $mantissa = Long_div($mantissa, Long_fromInt(10)); - } else if (Long_lt($mantissa, new Long(1569325056, 23283064))) { - $decExponent = $decExponent + (-1) | 0; - $mantissa = Long_mul($mantissa, Long_fromInt(10)); - } - $result.$mantissa0 = $mantissa; - $result.$exponent0 = $decExponent - 330 | 0; -} -$java.otcit_DoubleAnalyzer_findLowerDistanceToZero = function($mantissa, $error) { - var $pos; - $pos = Long_fromInt(10); - while (Long_le($pos, $error)) { - $pos = Long_mul($pos, Long_fromInt(10)); - } - if (Long_ge(Long_rem($mantissa, $pos), Long_div($error, Long_fromInt(2)))) - $pos = Long_div($pos, Long_fromInt(10)); - return $pos; -}; -$java.otcit_DoubleAnalyzer_findUpperDistanceToZero = function($mantissa, $error) { - var $pos; - $pos = Long_fromInt(1); - while (Long_le($pos, $error)) { - $pos = Long_mul($pos, Long_fromInt(10)); - } - if (Long_gt(Long_sub($pos, Long_rem($mantissa, $pos)), Long_div($error, Long_fromInt(2)))) - $pos = Long_div($pos, Long_fromInt(10)); - return $pos; -}; -$java.otcit_DoubleAnalyzer_mulAndShiftRight = function($a, $b, $shift) { - var $a1, $a2, $a3, $a4, $b1, $b2, $b3, $b4, $cm, $c0, $c; - $a1 = Long_and($a, Long_fromInt(65535)); - $a2 = Long_and(Long_shru($a, 16), Long_fromInt(65535)); - $a3 = Long_and(Long_shru($a, 32), Long_fromInt(65535)); - $a4 = Long_and(Long_shru($a, 48), Long_fromInt(65535)); - $b1 = Long_and($b, Long_fromInt(65535)); - $b2 = Long_and(Long_shru($b, 16), Long_fromInt(65535)); - $b3 = Long_and(Long_shru($b, 32), Long_fromInt(65535)); - $b4 = Long_and(Long_shru($b, 48), Long_fromInt(65535)); - $cm = Long_add(Long_add(Long_mul($b3, $a1), Long_mul($b2, $a2)), Long_mul($b1, $a3)); - $c0 = Long_add(Long_add(Long_add(Long_mul($b4, $a1), Long_mul($b3, $a2)), Long_mul($b2, $a3)), Long_mul($b1, $a4)); - $c = Long_add(Long_add(Long_shl(Long_mul($b4, $a4), 32 + $shift | 0), Long_shl(Long_add(Long_mul($b4, $a3), Long_mul($b3, $a4)), 16 + $shift | 0)), Long_shl(Long_add(Long_add(Long_mul($b4, $a2), Long_mul($b3, $a3)), Long_mul($b2, $a4)), $shift)); - return Long_add($shift > 16 ? Long_add($c, Long_shl($c0, $shift - 16 | 0)) : Long_add($c, Long_shru($c0, 16 - $shift | 0)), Long_shru($cm, 32 - $shift | 0)); -}; -function otcit_DoubleAnalyzer__clinit_() { - var $decimalMantissaOne, $exponent, $i, $shiftedOffPart, var$5, var$6, $maxMantissa, $i_0, $shift, var$10; - $java.otcit_DoubleAnalyzer_mantissa10Table = $rt_createLongArray(660); - $java.otcit_DoubleAnalyzer_exp10Table = $rt_createIntArray(660); - $decimalMantissaOne = new Long(991952896, 1862645149); - $exponent = 1023; - $i = 0; - $shiftedOffPart = $decimalMantissaOne; - while ($i < 330) { - var$5 = $java.otcit_DoubleAnalyzer_mantissa10Table.data; - var$6 = $i + 330 | 0; - var$5[var$6] = jl_Long_divideUnsigned($shiftedOffPart, Long_fromInt(80)); - $java.otcit_DoubleAnalyzer_exp10Table.data[var$6] = $exponent; - $shiftedOffPart = jl_Long_divideUnsigned($shiftedOffPart, Long_fromInt(10)); - $maxMantissa = jl_Long_remainderUnsigned($shiftedOffPart, Long_fromInt(10)); - while (Long_le($shiftedOffPart, $decimalMantissaOne) && Long_eq(Long_and($shiftedOffPart, new Long(0, 2147483648)), Long_ZERO)) { - $shiftedOffPart = Long_shl($shiftedOffPart, 1); - $exponent = $exponent + 1 | 0; - $maxMantissa = Long_shl($maxMantissa, 1); - } - $shiftedOffPart = Long_add($shiftedOffPart, Long_div($maxMantissa, Long_fromInt(10))); - $i = $i + 1 | 0; - } - $i = 1023; - $i_0 = 0; - while ($i_0 < 330) { - $shift = 0; - $shiftedOffPart = $decimalMantissaOne; - while (Long_gt($shiftedOffPart, new Long(3435973836, 214748364))) { - $shiftedOffPart = Long_shr($shiftedOffPart, 1); - $shift = $shift + 1 | 0; - $i = $i + (-1) | 0; - } - var$10 = Long_mul($shiftedOffPart, Long_fromInt(10)); - $decimalMantissaOne = $shift <= 0 ? var$10 : Long_add(var$10, Long_shr(Long_mul(Long_and($decimalMantissaOne, Long_fromInt((1 << $shift) - 1 | 0)), Long_fromInt(10)), $shift)); - var$5 = $java.otcit_DoubleAnalyzer_mantissa10Table.data; - var$6 = (330 - $i_0 | 0) - 1 | 0; - var$5[var$6] = jl_Long_divideUnsigned($decimalMantissaOne, Long_fromInt(80)); - $java.otcit_DoubleAnalyzer_exp10Table.data[var$6] = $i; - $i_0 = $i_0 + 1 | 0; - } -} -function otcit_DoubleAnalyzer$Result() { - var a = this; jl_Object.call(a); - a.$mantissa0 = Long_ZERO; - a.$exponent0 = 0; - a.$sign0 = 0; -} -$java.otcit_DoubleAnalyzer$Result__init_ = function() { - var var_0 = new otcit_DoubleAnalyzer$Result(); - otcit_DoubleAnalyzer$Result__init_(var_0); - return var_0; -}; -function otcit_DoubleAnalyzer$Result__init_($this) { - return; -} -function nlea_EaglerAdapterImpl2$QueryGL() { - jl_Object.call(this); - this.$obj7 = null; -} -$java.jur_MatchResult = function() { -}; -function jur_Matcher() { - var a = this; jl_Object.call(a); - a.$pat = null; - a.$start9 = null; - a.$string3 = null; - a.$matchResult = null; - a.$leftBound0 = 0; - a.$rightBound0 = 0; - a.$appendPos = 0; - a.$replacement1 = null; - a.$processedRepl = null; - a.$replacementParts = null; -} -function jur_Matcher__init_(var_0, var_1) { - var var_2 = new jur_Matcher(); - $java.jur_Matcher__init_(var_2, var_0, var_1); - return var_2; -} -$java.jur_Matcher_appendReplacement = function($this, $buffer, $replacement) { - var var$3, var$4, var$5; - $this.$processedRepl = $java.jur_Matcher_processReplacement($this, $replacement); - $replacement = $this.$string3; - var$3 = $this.$appendPos; - var$4 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$4, 0); - var$5 = var$4.$groupBounds.data[0]; - if (var$3 > var$5) { - $buffer = new jl_IndexOutOfBoundsException; - $buffer.$suppressionEnabled = 1; - $buffer.$writableStackTrace = 1; - $rt_throw($buffer); - } - var$4 = jl_String__init_0($replacement.$characters, var$3, var$5 - var$3 | 0); - var$5 = var$4.$characters.data.length; - jl_AbstractStringBuilder_insert5($buffer, $buffer.$length, var$4, 0, var$5); - $replacement = $this.$processedRepl; - jl_AbstractStringBuilder_insert($buffer, $buffer.$length, $replacement); - $buffer = $this.$matchResult; - jur_MatchResultImpl_checkGroup($buffer, 0); - $this.$appendPos = $buffer.$groupBounds.data[1]; - return $this; -}; -$java.jur_Matcher_processReplacement = function($this, $replacement) { - var $sb, $i, $repl, $res, $index, $replacementPos, $nextBackSlashed, var$9, $gr, $group, $$je; - if ($this.$replacement1 !== null && jl_String_equals($this.$replacement1, $replacement)) { - if ($this.$replacementParts === null) - return $this.$processedRepl; - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(16); - $i = 0; - a: { - while ($i < $this.$replacementParts.$size0) { - $replacement = $this.$replacementParts; - if ($i < 0) - break a; - if ($i >= $replacement.$size0) - break a; - $replacement = $replacement.$array1.data[$i]; - jl_AbstractStringBuilder_insert($sb, $sb.$length, $replacement === null ? $rt_s(47) : $replacement.$toString()); - $i = $i + 1 | 0; - } - return jl_String__init_0($sb.$buffer, 0, $sb.$length); - } - $replacement = new jl_IndexOutOfBoundsException; - $replacement.$suppressionEnabled = 1; - $replacement.$writableStackTrace = 1; - $rt_throw($replacement); - } - $this.$replacement1 = $replacement; - $repl = jl_String_toCharArray($replacement); - $res = new jl_StringBuilder; - $res.$buffer = $rt_createCharArray(16); - $this.$replacementParts = null; - $index = 0; - $replacementPos = 0; - $nextBackSlashed = 0; - b: { - c: while (true) { - var$9 = $repl.data; - $i = var$9.length; - if ($index >= $i) { - if ($this.$replacementParts !== null && $replacementPos != $res.$length) - ju_ArrayList_add($this.$replacementParts, jl_AbstractStringBuilder_substring($res, $replacementPos, $res.$length)); - return jl_String__init_0($res.$buffer, 0, $res.$length); - } - if (var$9[$index] == 92 && !$nextBackSlashed) { - $nextBackSlashed = 1; - $index = $index + 1 | 0; - } - d: { - if ($nextBackSlashed) { - if ($index >= $i) - break c; - $gr = var$9[$index]; - $i = $res.$length; - jl_AbstractStringBuilder_insertSpace($res, $i, $i + 1 | 0); - $res.$buffer.data[$i] = $gr; - $nextBackSlashed = 0; - } else if (var$9[$index] != 36) { - $gr = var$9[$index]; - $i = $res.$length; - jl_AbstractStringBuilder_insertSpace($res, $i, $i + 1 | 0); - $res.$buffer.data[$i] = $gr; - } else { - if ($this.$replacementParts === null) { - $replacement = new ju_ArrayList; - $replacement.$array1 = $rt_createArray(jl_Object, 10); - $this.$replacementParts = $replacement; - } - e: { - try { - $replacement = new jl_String; - $index = $index + 1 | 0; - jl_String__init_4($replacement, $repl, $index, 1); - $gr = jl_Integer_parseInt0($replacement); - if ($replacementPos == jl_StringBuilder_length($res)) - break e; - ju_ArrayList_add($this.$replacementParts, jl_StringBuilder_subSequence($res, $replacementPos, jl_StringBuilder_length($res))); - $replacementPos = jl_StringBuilder_length($res); - break e; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - break b; - } else { - throw $$e; - } - } - } - try { - ju_ArrayList_add($this.$replacementParts, $java.jur_Matcher$1__init_($this, $gr)); - $group = $java.jur_Matcher_group($this, $gr); - $replacementPos = $replacementPos + jl_String_length($group) | 0; - jl_StringBuilder_append0($res, $group); - break d; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - break b; - } else { - throw $$e; - } - } - } - } - $index = $index + 1 | 0; - } - $replacement = new jl_IndexOutOfBoundsException; - $replacement.$suppressionEnabled = 1; - $replacement.$writableStackTrace = 1; - $rt_throw($replacement); - } - $replacement = new jl_IllegalArgumentException; - $replacement.$suppressionEnabled = 1; - $replacement.$writableStackTrace = 1; - $replacement.$message = $rt_s(44); - $rt_throw($replacement); -}; -$java.jur_Matcher_reset = function($this) { - $this.$leftBound0 = 0; - $this.$rightBound0 = $this.$string3.$characters.data.length; - $java.jur_MatchResultImpl_reset($this.$matchResult, $this.$string3, $this.$leftBound0, $this.$rightBound0); - $this.$appendPos = 0; - $this.$replacement1 = null; - $this.$matchResult.$previousMatch = (-1); - return $this; -}; -$java.jur_Matcher_appendTail = function($this, $buffer) { - var var$2, var$3, var$4, var$5; - var$2 = $this.$string3; - var$3 = $this.$appendPos; - var$4 = $this.$string3.$characters.data.length; - if (var$3 > var$4) { - $buffer = new jl_IndexOutOfBoundsException; - $buffer.$suppressionEnabled = 1; - $buffer.$writableStackTrace = 1; - $rt_throw($buffer); - } - var$5 = jl_String__init_0(var$2.$characters, var$3, var$4 - var$3 | 0); - var$4 = var$5.$characters.data.length; - jl_AbstractStringBuilder_insert5($buffer, $buffer.$length, var$5, 0, var$4); - return $buffer; -}; -function jur_Matcher_replaceAll($this, $replacement) { - var $sb, var$3, var$4, var$5, var$6, var$7; - $sb = new jl_StringBuffer; - $sb.$buffer = $rt_createCharArray(16); - $java.jur_Matcher_reset($this); - while (true) { - if (!jur_Matcher_find($this)) { - $replacement = $this.$string3; - var$3 = $this.$appendPos; - var$4 = $this.$string3.$characters.data.length; - if (var$3 > var$4) { - $replacement = new jl_IndexOutOfBoundsException; - $replacement.$suppressionEnabled = 1; - $replacement.$writableStackTrace = 1; - $rt_throw($replacement); - } - var$5 = jl_String__init_0($replacement.$characters, var$3, var$4 - var$3 | 0); - var$4 = var$5.$characters.data.length; - jl_AbstractStringBuilder_insert5($sb, $sb.$length, var$5, 0, var$4); - return jl_String__init_0($sb.$buffer, 0, $sb.$length); - } - $this.$processedRepl = $java.jur_Matcher_processReplacement($this, $replacement); - var$5 = $this.$string3; - var$4 = $this.$appendPos; - var$6 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$6, 0); - var$3 = var$6.$groupBounds.data[0]; - if (var$4 > var$3) - break; - var$6 = jl_String__init_0(var$5.$characters, var$4, var$3 - var$4 | 0); - var$7 = var$6.$characters.data.length; - jl_AbstractStringBuilder_insert5($sb, $sb.$length, var$6, 0, var$7); - var$5 = $this.$processedRepl; - jl_AbstractStringBuilder_insert($sb, $sb.$length, var$5); - var$5 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$5, 0); - $this.$appendPos = var$5.$groupBounds.data[1]; - } - $replacement = new jl_IndexOutOfBoundsException; - $replacement.$suppressionEnabled = 1; - $replacement.$writableStackTrace = 1; - $rt_throw($replacement); -} -$java.jur_Matcher_group = function($this, $group) { - return $java.jur_MatchResultImpl_group($this.$matchResult, $group); -}; -$java.jur_Matcher_find = function($this, $start) { - var $stringLength, var$3, var$4, var$5; - $stringLength = $this.$string3.$characters.data.length; - if ($start >= 0 && $start <= $stringLength) { - if ($java.jur_Matcher_findAt($this, $start) >= 0 && $this.$matchResult.$valid) { - $java.jur_MatchResultImpl_finalizeMatch($this.$matchResult); - return 1; - } - $this.$matchResult.$startIndex = (-1); - return 0; - } - var$3 = new jl_IndexOutOfBoundsException; - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $start, 10); - var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = var$5; - $rt_throw(var$3); -}; -$java.jur_Matcher_findAt = function($this, $startIndex) { - var var$2, $foundIndex; - $java.jur_MatchResultImpl_reset($this.$matchResult, null, (-1), (-1)); - $this.$matchResult.$mode3 = 1; - var$2 = $this.$matchResult; - var$2.$startIndex = $startIndex; - var$2.$previousMatch = var$2.$previousMatch < 0 ? $startIndex : var$2.$previousMatch; - $foundIndex = $this.$start9.$find0($startIndex, $this.$string3, $this.$matchResult); - if ($foundIndex == (-1)) - $this.$matchResult.$hitEnd = 1; - return $foundIndex; -}; -function jur_Matcher_find($this) { - var $length, var$2, var$3, var$4; - $length = $this.$string3.$characters.data.length; - if (!$this.$matchResult.$transparentBounds) - $length = $this.$rightBound0; - if ($this.$matchResult.$startIndex >= 0 && $this.$matchResult.$mode3 == 1) { - var$2 = $this.$matchResult; - var$3 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$3, 0); - var$2.$startIndex = var$3.$groupBounds.data[1]; - var$2 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$2, 0); - var$4 = var$2.$groupBounds.data[1]; - var$2 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$2, 0); - if (var$4 == var$2.$groupBounds.data[0]) { - var$2 = $this.$matchResult; - var$2.$startIndex = var$2.$startIndex + 1 | 0; - } - return $this.$matchResult.$startIndex <= $length && $java.jur_Matcher_find($this, $this.$matchResult.$startIndex) ? 1 : 0; - } - return $java.jur_Matcher_find($this, $this.$leftBound0); -} -$java.jur_Matcher_start = function($this, $group) { - var var$2; - var$2 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$2, $group); - return var$2.$groupBounds.data[$group * 2 | 0]; -}; -$java.jur_Matcher_end = function($this, $group) { - var var$2; - var$2 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$2, $group); - return var$2.$groupBounds.data[($group * 2 | 0) + 1 | 0]; -}; -$java.jur_Matcher_start0 = function($this) { - var var$1; - var$1 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$1, 0); - return var$1.$groupBounds.data[0]; -}; -$java.jur_Matcher_end0 = function($this) { - var var$1; - var$1 = $this.$matchResult; - jur_MatchResultImpl_checkGroup(var$1, 0); - return var$1.$groupBounds.data[1]; -}; -$java.jur_Matcher_hasTransparentBounds = function($this) { - return $this.$matchResult.$transparentBounds; -}; -$java.jur_Matcher__init_ = function($this, $pat, $cs) { - $this.$leftBound0 = (-1); - $this.$rightBound0 = (-1); - $this.$pat = $pat; - $this.$start9 = $pat.$start7; - $this.$string3 = $cs; - $this.$leftBound0 = 0; - $this.$rightBound0 = $this.$string3.$characters.data.length; - $this.$matchResult = $java.jur_MatchResultImpl__init_($cs, $this.$leftBound0, $this.$rightBound0, $pat.$globalGroupIndex, $pat.$compCount + 1 | 0, $pat.$consCount + 1 | 0); -}; -$java.nms_Rect2i = function() { - var a = this; jl_Object.call(a); - a.$rectX = 0; - a.$rectY = 0; - a.$rectWidth = 0; - a.$rectHeight = 0; -}; -$java.nms_Rect2i_intersection = function($this, $par1Rect2i) { - var $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var9; - $var2 = $this.$rectX; - $var3 = $this.$rectY; - $var4 = $this.$rectX + $this.$rectWidth | 0; - $var5 = $this.$rectY + $this.$rectHeight | 0; - $var6 = $par1Rect2i.$rectX; - $var7 = $par1Rect2i.$rectY; - $var8 = $var6 + $par1Rect2i.$rectWidth | 0; - $var9 = $var7 + $par1Rect2i.$rectHeight | 0; - if ($var2 > $var6) - $var6 = $var2; - $this.$rectX = $var6; - if ($var3 > $var7) - $var7 = $var3; - $this.$rectY = $var7; - if ($var4 < $var8) - $var8 = $var4; - $var3 = $var8 - $this.$rectX | 0; - if (0 > $var3) - $var3 = 0; - $this.$rectWidth = $var3; - if ($var5 < $var9) - $var9 = $var5; - $var3 = $var9 - $this.$rectY | 0; - if (0 > $var3) - $var3 = 0; - $this.$rectHeight = $var3; - return $this; -}; -$java.nms_Rect2i_getRectX = function($this) { - return $this.$rectX; -}; -$java.nms_Rect2i_getRectY = function($this) { - return $this.$rectY; -}; -$java.nms_Rect2i_getRectWidth = function($this) { - return $this.$rectWidth; -}; -$java.nms_Rect2i_getRectHeight = function($this) { - return $this.$rectHeight; -}; -$java.nms_TileEntitySpecialRenderer = function() { - jl_Object.call(this); - this.$tileEntityRenderer = null; -}; -$java.nms_TileEntitySpecialRenderer_setTileEntityRenderer = function($this, $par1TileEntityRenderer) { - $this.$tileEntityRenderer = $par1TileEntityRenderer; -}; -$java.nms_TileEntitySpecialRenderer_onWorldChange = function($this, $par1World) { - return; -}; -$java.nms_TileEntitySpecialRenderer_getFontRenderer = function($this) { - return $this.$tileEntityRenderer.$fontRenderer4; -}; -function nms_TileEntitySignRenderer() { - $java.nms_TileEntitySpecialRenderer.call(this); - this.$modelSign = null; -} -$java.nms_TileEntitySignRenderer_tex_sign = null; -$java.nms_TileEntitySignRenderer__init_ = function() { - var var_0 = new nms_TileEntitySignRenderer(); - nms_TileEntitySignRenderer__init_(var_0); - return var_0; -}; -function nms_TileEntitySignRenderer__init_($this) { - $this.$modelSign = $java.nms_ModelSign__init_(); -} -$java.nms_TileEntitySignRenderer_renderTileEntitySignAt = function($this, $par1TileEntitySign, $par2, $par4, $par6, $par8) { - var $var9, $var12, $var11, $var17, $var15, $var13, $var16, $var14; - $var9 = nms_TileEntity_getBlockType($par1TileEntitySign); - nleg_EaglerAdapterGL30_glPushMatrix(); - nms_Block_$callClinit(); - if ($var9 === nms_Block_signPost) { - $var12 = $par2 + 0.5; - $par8 = $par4 + 0.5; - $var11 = $par6 + 0.5; - $var17 = nleg_EaglerAdapterGL30_deevis; - $var17.$x = $var12; - $var17.$y = $par8; - $var17.$z = $var11; - $var17 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var17, $var17); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var9 = new ji_PrintStream; - $var9.$out = new jl_ConsoleOutputStreamStderr; - $var17 = new jl_StringBuilder; - $var17.$buffer = $rt_createCharArray(16); - $var9.$sb = $var17; - $var9.$buffer0 = $rt_createCharArray(32); - $var9.$autoFlush = 0; - $var17 = new jnci_UTF8Charset; - jnc_Charset__init_($var17, $rt_s(2), $rt_createArray(jl_String, 0)); - $var9.$charset = $var17; - jl_System_errCache = $var9; - } - $var15 = jl_System_errCache; - $var9 = $var15.$sb; - jl_AbstractStringBuilder_insert($var9, $var9.$length, $rt_s(220)); - $var13 = $var9.$length; - jl_AbstractStringBuilder_insertSpace($var9, $var13, $var13 + 1 | 0); - $var9.$buffer.data[$var13] = 10; - ji_PrintStream_printSB($var15); - } - if ($par1TileEntitySign.$blockMetadata == (-1)) - $par1TileEntitySign.$blockMetadata = nms_World_getBlockMetadata($par1TileEntitySign.$worldObj5, $par1TileEntitySign.$xCoord0, $par1TileEntitySign.$yCoord0, $par1TileEntitySign.$zCoord0); - nleg_EaglerAdapterGL30_glRotatef( -(($par1TileEntitySign.$blockMetadata * 360 | 0) / 16.0), 0.0, 1.0, 0.0); - $this.$modelSign.$signStick.$showModel = 1; - } else { - if ($par1TileEntitySign.$blockMetadata == (-1)) - $par1TileEntitySign.$blockMetadata = nms_World_getBlockMetadata($par1TileEntitySign.$worldObj5, $par1TileEntitySign.$xCoord0, $par1TileEntitySign.$yCoord0, $par1TileEntitySign.$zCoord0); - $var16 = $par1TileEntitySign.$blockMetadata; - $var12 = 0.0; - if ($var16 == 2) - $var12 = 180.0; - if ($var16 == 4) - $var12 = 90.0; - if ($var16 == 5) - $var12 = (-90.0); - nleg_EaglerAdapterGL30_glTranslatef($par2 + 0.5, $par4 + 0.5, $par6 + 0.5); - nleg_EaglerAdapterGL30_glRotatef( -$var12, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-0.3125), (-0.4375)); - $this.$modelSign.$signStick.$showModel = 0; - } - nle_TextureLocation_bindTexture($java.nms_TileEntitySignRenderer_tex_sign); - nleg_EaglerAdapterGL30_glPushMatrix(); - $var17 = nleg_EaglerAdapterGL30_deevis; - $var17.$x = 0.6666666865348816; - $var17.$y = (-0.6666666865348816); - $var17.$z = (-0.6666666865348816); - $var17 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $var17, $var17); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var9 = new ji_PrintStream; - $var9.$out = new jl_ConsoleOutputStreamStderr; - $var17 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2($var17, 16); - $var9.$sb = $var17; - $var9.$buffer0 = $rt_createCharArray(32); - $var9.$autoFlush = 0; - $var9.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = $var9; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - $java.nms_ModelSign_renderSign($this.$modelSign); - nleg_EaglerAdapterGL30_glPopMatrix(); - $var17 = $java.nms_TileEntitySpecialRenderer_getFontRenderer($this); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.3333333432674408, 0.046666666865348816); - nleg_EaglerAdapterGL30_glScalef(0.01111111231148243, (-0.01111111231148243), 0.01111111231148243); - nleg_EaglerAdapterGL30_glNormal3f(0.0, 0.0, (-0.01111111231148243)); - nlea_EaglerAdapterImpl2__wglDepthMask(0); - $var14 = 0; - while ($var14 < $par1TileEntitySign.$signText.data.length) { - $var15 = $par1TileEntitySign.$signText.data[$var14]; - if ($var14 != $par1TileEntitySign.$lineBeingEdited) - nms_FontRenderer_drawString0($var17, $var15, -nms_FontRenderer_getStringWidth($var17, $var15) / 2 | 0, ($var14 * 10 | 0) - ($par1TileEntitySign.$signText.data.length * 5 | 0) | 0, 0); - else { - $var9 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(2644)), $var15), $rt_s(2645))); - nms_FontRenderer_drawString0($var17, $var9, -nms_FontRenderer_getStringWidth($var17, $var9) / 2 | 0, ($var14 * 10 | 0) - ($par1TileEntitySign.$signText.data.length * 5 | 0) | 0, 0); - } - $var14 = $var14 + 1 | 0; - } - nleg_EaglerAdapterGL30_glDepthMask(1); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glPopMatrix(); -}; -$java.nms_TileEntitySignRenderer_renderTileEntityAt = function($this, $par1TileEntity, $par2, $par4, $par6, $par8) { - $java.nms_TileEntitySignRenderer_renderTileEntitySignAt($this, $par1TileEntity, $par2, $par4, $par6, $par8); -}; -function nms_TileEntitySignRenderer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2646); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntitySignRenderer_tex_sign = var$1; -} -function nms_TileEntityPiston() { - var a = this; nms_TileEntity.call(a); - a.$storedBlockID = 0; - a.$storedMetadata = 0; - a.$storedOrientation = 0; - a.$extending = 0; - a.$shouldHeadBeRendered = 0; - a.$progress = 0.0; - a.$lastProgress = 0.0; - a.$pushedObjects = null; -} -$java.nms_TileEntityPiston__init_ = function() { - var var_0 = new nms_TileEntityPiston(); - nms_TileEntityPiston__init_(var_0); - return var_0; -}; -function nms_TileEntityPiston__init_($this) { - var var$1; - $this.$blockMetadata = (-1); - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$pushedObjects = var$1; -} -$java.nms_TileEntityPiston_getStoredBlockID = function($this) { - return $this.$storedBlockID; -}; -$java.nms_TileEntityPiston_getBlockMetadata = function($this) { - return $this.$storedMetadata; -}; -$java.nms_TileEntityPiston_isExtending = function($this) { - return $this.$extending; -}; -$java.nms_TileEntityPiston_getPistonOrientation = function($this) { - return $this.$storedOrientation; -}; -$java.nms_TileEntityPiston_shouldRenderHead = function($this) { - return $this.$shouldHeadBeRendered; -}; -$java.nms_TileEntityPiston_getProgress = function($this, $par1) { - if ($par1 > 1.0) - $par1 = 1.0; - return $this.$lastProgress + ($this.$progress - $this.$lastProgress) * $par1; -}; -$java.nms_TileEntityPiston_getOffsetX = function($this, $par1) { - if (!$this.$extending) { - if ($par1 > 1.0) - $par1 = 1.0; - $par1 = (1.0 - ($this.$lastProgress + ($this.$progress - $this.$lastProgress) * $par1)) * nms_Facing_offsetsXForSide.data[$this.$storedOrientation]; - } else { - if ($par1 > 1.0) - $par1 = 1.0; - $par1 = ($this.$lastProgress + ($this.$progress - $this.$lastProgress) * $par1 - 1.0) * nms_Facing_offsetsXForSide.data[$this.$storedOrientation]; - } - return $par1; -}; -$java.nms_TileEntityPiston_getOffsetY = function($this, $par1) { - if (!$this.$extending) { - if ($par1 > 1.0) - $par1 = 1.0; - $par1 = (1.0 - ($this.$lastProgress + ($this.$progress - $this.$lastProgress) * $par1)) * nms_Facing_offsetsYForSide.data[$this.$storedOrientation]; - } else { - if ($par1 > 1.0) - $par1 = 1.0; - $par1 = ($this.$lastProgress + ($this.$progress - $this.$lastProgress) * $par1 - 1.0) * nms_Facing_offsetsYForSide.data[$this.$storedOrientation]; - } - return $par1; -}; -$java.nms_TileEntityPiston_getOffsetZ = function($this, $par1) { - if (!$this.$extending) { - if ($par1 > 1.0) - $par1 = 1.0; - $par1 = (1.0 - ($this.$lastProgress + ($this.$progress - $this.$lastProgress) * $par1)) * nms_Facing_offsetsZForSide.data[$this.$storedOrientation]; - } else { - if ($par1 > 1.0) - $par1 = 1.0; - $par1 = ($this.$lastProgress + ($this.$progress - $this.$lastProgress) * $par1 - 1.0) * nms_Facing_offsetsZForSide.data[$this.$storedOrientation]; - } - return $par1; -}; -$java.nms_TileEntityPiston_updatePushedObjects = function($this, $par1, $par2) { - var $var3, $var4, var$5, $var5$index, var$7, $var6, var$9, var$10, var$11, var$12, $var5$index_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var5$index_0 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var6 = $thread.pop();var$7 = $thread.pop();$var5$index = $thread.pop();var$5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1 = !$this.$extending ? $par1 - 1.0 : 1.0 - $par1; - a: { - nms_Block_$callClinit(); - $var3 = nms_BlockPistonMoving_getAxisAlignedBB(nms_Block_pistonMoving, $this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0, $this.$storedBlockID, $par1, $this.$storedOrientation); - if ($var3 !== null) { - $var4 = nms_World_getEntitiesWithinAABBExcludingEntity($this.$worldObj5, null, $var3, null); - if (!($var4.$size0 ? 0 : 1)) { - $var3 = $this.$pushedObjects; - var$5 = 0; - $var5$index = $var4.$modCount0; - var$7 = $var4.$size2(); - while (true) { - if (!(var$5 >= var$7 ? 0 : 1)) { - $var3 = $this.$pushedObjects; - var$7 = $var3.$modCount0; - var$5 = $var3.$size2(); - if (0 >= var$5 ? 0 : 1) { - if (var$7 < $var3.$modCount0) { - $var3 = new ju_ConcurrentModificationException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $rt_throw($var3); - } - $var5$index = 0 + 1 | 0; - $var6 = $var3.$get4(0); - var$9 = $par2 * nms_Facing_offsetsXForSide.data[$this.$storedOrientation]; - var$10 = $par2 * nms_Facing_offsetsYForSide.data[$this.$storedOrientation]; - var$11 = $par2 * nms_Facing_offsetsZForSide.data[$this.$storedOrientation]; - $ptr = 1; - continue main; - } - $var3 = $this.$pushedObjects; - ju_Arrays_fill($var3.$array1, 0, $var3.$size0, null); - $var3.$size0 = 0; - break a; - } - if ($var5$index < $var4.$modCount0) - break; - var$12 = var$5 + 1 | 0; - if (ju_ArrayList_add($var3, $var4.$get4(var$5))) { - var$5 = var$12; - continue; - } - var$5 = var$12; - } - $var3 = new ju_ConcurrentModificationException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $rt_throw($var3); - } - } - } - return; - case 1: - $var6.$moveEntity(var$9, var$10, var$11); - if ($rt_suspending()) { - break main; - } - $var5$index_0 = $var5$index; - if (!($var5$index_0 >= var$5 ? 0 : 1)) { - $var3 = $this.$pushedObjects; - ju_Arrays_fill($var3.$array1, 0, $var3.$size0, null); - $var3.$size0 = 0; - return; - } - if (var$7 < $var3.$modCount0) { - $var3 = new ju_ConcurrentModificationException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $rt_throw($var3); - } - $var5$index = $var5$index_0 + 1 | 0; - $var6 = $var3.$get4($var5$index_0); - var$9 = $par2 * nms_Facing_offsetsXForSide.data[$this.$storedOrientation]; - var$10 = $par2 * nms_Facing_offsetsYForSide.data[$this.$storedOrientation]; - var$11 = $par2 * nms_Facing_offsetsZForSide.data[$this.$storedOrientation]; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, $var4, var$5, $var5$index, var$7, $var6, var$9, var$10, var$11, var$12, $var5$index_0, $ptr); -}; -function nms_TileEntityPiston_clearPistonTileEntity($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $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.$lastProgress < 1.0 && $this.$worldObj5 !== null) { - $this.$progress = 1.0; - $this.$lastProgress = 1.0; - nms_World_removeBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0); - $this.$tileEntityInvalid = 1; - var$1 = nms_World_getBlockId($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0); - nms_Block_$callClinit(); - if (var$1 == nms_Block_pistonMoving.$blockID) { - var$2 = $this.$worldObj5; - var$3 = $this.$xCoord0; - var$4 = $this.$yCoord0; - var$5 = $this.$zCoord0; - var$6 = $this.$storedBlockID; - var$7 = $this.$storedMetadata; - var$1 = 3; - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_World_setBlock(var$2, var$3, var$4, var$5, var$6, var$7, var$1); - if ($rt_suspending()) { - break main; - } - var$2 = $this.$worldObj5; - var$1 = $this.$xCoord0; - var$3 = $this.$yCoord0; - var$4 = $this.$zCoord0; - var$5 = $this.$storedBlockID; - if (!var$2.$isRemote) { - var$6 = nms_World_getBlockId(var$2, var$1, var$3, var$4); - var$8 = nms_Block_blocksList.data[var$6]; - if (var$8 !== null) { - $ptr = 2; - continue main; - } - } - return; - case 2: - var$8.$onNeighborBlockChange(var$2, var$1, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -} -$java.nms_TileEntityPiston_updateEntity = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $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: - $this.$lastProgress = $this.$progress; - if ($this.$lastProgress >= 1.0) { - var$1 = 1.0; - var$2 = 0.25; - $ptr = 1; - continue main; - } - $this.$progress = $this.$progress + 0.5; - if ($this.$progress >= 1.0) - $this.$progress = 1.0; - if (!$this.$extending) - return; - var$1 = $this.$progress; - var$2 = $this.$progress - $this.$lastProgress + 0.0625; - $ptr = 3; - continue main; - case 1: - $java.nms_TileEntityPiston_updatePushedObjects($this, var$1, var$2); - if ($rt_suspending()) { - break main; - } - nms_World_removeBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0); - $this.$tileEntityInvalid = 1; - var$3 = nms_World_getBlockId($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0); - nms_Block_$callClinit(); - if (var$3 != nms_Block_pistonMoving.$blockID) - return; - var$4 = $this.$worldObj5; - var$5 = $this.$xCoord0; - var$6 = $this.$yCoord0; - var$7 = $this.$zCoord0; - var$8 = $this.$storedBlockID; - var$9 = $this.$storedMetadata; - var$3 = 3; - $ptr = 2; - case 2: - nms_World_setBlock(var$4, var$5, var$6, var$7, var$8, var$9, var$3); - if ($rt_suspending()) { - break main; - } - var$4 = $this.$worldObj5; - var$3 = $this.$xCoord0; - var$5 = $this.$yCoord0; - var$6 = $this.$zCoord0; - var$7 = $this.$storedBlockID; - if (!var$4.$isRemote) { - var$8 = nms_World_getBlockId(var$4, var$3, var$5, var$6); - var$10 = nms_Block_blocksList.data[var$8]; - if (var$10 !== null) { - $ptr = 4; - continue main; - } - } - return; - case 3: - $java.nms_TileEntityPiston_updatePushedObjects($this, var$1, var$2); - if ($rt_suspending()) { - break main; - } - return; - case 4: - var$10.$onNeighborBlockChange(var$4, var$3, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -}; -$java.nms_TileEntityPiston_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6, var$7; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$zCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$6 = jl_String_hashCode($rt_s(2647)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2647), var$6 & (var$2.$elementData.data.length - 1 | 0), var$6) === null ? 0 : 1)) - var$4 = 0; - else { - var$5 = ju_HashMap_getEntry($par1NBTTagCompound.$tagMap, $rt_s(2647)); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$storedBlockID = var$4; - $this.$storedMetadata = !ju_HashMap_containsKey($par1NBTTagCompound.$tagMap, $rt_s(2648)) ? 0 : ju_HashMap_get($par1NBTTagCompound.$tagMap, $rt_s(2648)).$data2; - $this.$storedOrientation = nms_NBTTagCompound_getInteger($par1NBTTagCompound, $rt_s(2649)); - var$7 = nms_NBTTagCompound_getFloat($par1NBTTagCompound, $rt_s(2650)); - $this.$progress = var$7; - $this.$lastProgress = var$7; - $this.$extending = nms_NBTTagCompound_getBoolean($par1NBTTagCompound, $rt_s(2651)); -}; -$java.nms_TileEntityPiston_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - var$2 = $this.$storedBlockID; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagInt; - var$4.$name0 = $rt_s(2647); - var$4.$data2 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2647), var$4); - var$2 = $this.$storedMetadata; - var$4 = $par1NBTTagCompound.$tagMap; - var$3 = new nms_NBTTagInt; - var$3.$name0 = $rt_s(2648); - var$3.$data2 = var$2; - ju_HashMap_putImpl(var$4, $rt_s(2648), var$3); - var$2 = $this.$storedOrientation; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagInt; - var$4.$name0 = $rt_s(2649); - var$4.$data2 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2649), var$4); - var$5 = $this.$lastProgress; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagFloat; - var$4.$name0 = $rt_s(2650); - var$4.$data3 = var$5; - ju_HashMap_putImpl(var$3, $rt_s(2650), var$4); - var$2 = (!$this.$extending ? 0 : 1) << 24 >> 24; - var$4 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagByte; - $par1NBTTagCompound.$name0 = $rt_s(2651); - $par1NBTTagCompound.$data0 = var$2; - ju_HashMap_putImpl(var$4, $rt_s(2651), $par1NBTTagCompound); -}; -function nms_TileEntityRendererPiston() { - $java.nms_TileEntitySpecialRenderer.call(this); - this.$blockRenderer0 = null; -} -$java.nms_TileEntityRendererPiston_tex_terrain = null; -$java.nms_TileEntityRendererPiston__init_ = function() { - var var_0 = new nms_TileEntityRendererPiston(); - nms_TileEntityRendererPiston__init_(var_0); - return var_0; -}; -function nms_TileEntityRendererPiston__init_($this) { - return; -} -$java.nms_TileEntityRendererPiston_renderPiston = function($this, $par1TileEntityPiston, $par2, $par4, $par6, $par8) { - var $var9, var$7, var$8, $var10, var$10, var$11, var$12, var$13, var$14, var$15, var$16, var$17, var$18; - nms_Block_$callClinit(); - $var9 = nms_Block_blocksList.data[$par1TileEntityPiston.$storedBlockID]; - if ($var9 !== null) { - var$7 = $rt_compare($par8, 1.0); - var$8 = var$7 > 0 ? 1.0 : $par8; - if ($par1TileEntityPiston.$lastProgress + ($par1TileEntityPiston.$progress - $par1TileEntityPiston.$lastProgress) * var$8 < 1.0) { - nlea_Tessellator_$callClinit(); - $var10 = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture($java.nms_TileEntityRendererPiston_tex_terrain); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(15); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glDisable(46); - a: { - nlea_Tessellator_startDrawing($var10, 98); - var$10 = $par2; - $par2 = var$10 - $par1TileEntityPiston.$xCoord0 + $java.nms_TileEntityPiston_getOffsetX($par1TileEntityPiston, $par8); - var$8 = $par4; - $par4 = var$8 - $par1TileEntityPiston.$yCoord0 + $java.nms_TileEntityPiston_getOffsetY($par1TileEntityPiston, $par8); - var$11 = $par6; - $par6 = var$11 - $par1TileEntityPiston.$zCoord0 + $java.nms_TileEntityPiston_getOffsetZ($par1TileEntityPiston, $par8); - $var10.$xOffset = $par2; - $var10.$yOffset = $par4; - $var10.$zOffset = $par6; - nlea_Tessellator_setColorRGBA($var10, 1, 1, 1, 255); - if ($var9 === nms_Block_pistonExtension) { - var$12 = var$7 > 0 ? 1.0 : $par8; - if ($par1TileEntityPiston.$lastProgress + ($par1TileEntityPiston.$progress - $par1TileEntityPiston.$lastProgress) * var$12 < 0.5) { - var$13 = $this.$blockRenderer0; - var$14 = $par1TileEntityPiston.$xCoord0; - var$7 = $par1TileEntityPiston.$yCoord0; - var$15 = $par1TileEntityPiston.$zCoord0; - var$13.$renderAllFaces = 1; - nms_RenderBlocks_renderPistonExtension(var$13, $var9, var$14, var$7, var$15, 0); - var$13.$renderAllFaces = 0; - break a; - } - } - if ($par1TileEntityPiston.$shouldHeadBeRendered && !$par1TileEntityPiston.$extending) { - nms_Block_pistonExtension.$headTexture = $var9.$topIcon; - var$13 = $this.$blockRenderer0; - var$16 = nms_Block_pistonExtension; - var$15 = $par1TileEntityPiston.$xCoord0; - var$17 = $par1TileEntityPiston.$yCoord0; - var$18 = $par1TileEntityPiston.$zCoord0; - if (var$7 > 0) - $par8 = 1.0; - var$14 = $par1TileEntityPiston.$lastProgress + ($par1TileEntityPiston.$progress - $par1TileEntityPiston.$lastProgress) * $par8 >= 0.5 ? 0 : 1; - var$13.$renderAllFaces = 1; - nms_RenderBlocks_renderPistonExtension(var$13, var$16, var$15, var$17, var$18, var$14); - var$13.$renderAllFaces = 0; - nms_Block_pistonExtension.$headTexture = null; - $par2 = var$10 - $par1TileEntityPiston.$xCoord0; - $par4 = var$8 - $par1TileEntityPiston.$yCoord0; - $par6 = var$11 - $par1TileEntityPiston.$zCoord0; - $var10.$xOffset = $par2; - $var10.$yOffset = $par4; - $var10.$zOffset = $par6; - var$13 = $this.$blockRenderer0; - var$14 = $par1TileEntityPiston.$xCoord0; - var$7 = $par1TileEntityPiston.$yCoord0; - var$15 = $par1TileEntityPiston.$zCoord0; - var$13.$renderAllFaces = 1; - nms_RenderBlocks_renderPistonBase(var$13, $var9, var$14, var$7, var$15, 1); - var$13.$renderAllFaces = 0; - } else { - var$13 = $this.$blockRenderer0; - var$14 = $par1TileEntityPiston.$xCoord0; - var$7 = $par1TileEntityPiston.$yCoord0; - var$15 = $par1TileEntityPiston.$zCoord0; - var$13.$renderAllFaces = 1; - nms_RenderBlocks_renderBlockByRenderType(var$13, $var9, var$14, var$7, var$15); - var$13.$renderAllFaces = 0; - } - } - $var10.$xOffset = 0.0; - $var10.$yOffset = 0.0; - $var10.$zOffset = 0.0; - nlea_Tessellator_draw($var10); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - } - } -}; -$java.nms_TileEntityRendererPiston_onWorldChange = function($this, $par1World) { - $this.$blockRenderer0 = nms_RenderBlocks__init_0($par1World); -}; -$java.nms_TileEntityRendererPiston_renderTileEntityAt = function($this, $par1TileEntity, $par2, $par4, $par6, $par8) { - $java.nms_TileEntityRendererPiston_renderPiston($this, $par1TileEntity, $par2, $par4, $par6, $par8); -}; -function nms_TileEntityRendererPiston__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(641); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntityRendererPiston_tex_terrain = var$1; -} -function nms_TileEntityChest() { - var a = this; nms_TileEntity.call(a); - a.$chestContents = null; - a.$adjacentChestChecked = 0; - a.$adjacentChestZNeg = null; - a.$adjacentChestXPos = null; - a.$adjacentChestXNeg = null; - a.$adjacentChestZPosition = null; - a.$lidAngle = 0.0; - a.$prevLidAngle = 0.0; - a.$numUsingPlayers = 0; - a.$ticksSinceSync = 0; - a.$field_94046_i = 0; - a.$field_94045_s = null; -} -$java.nms_TileEntityChest__init_ = function() { - var var_0 = new nms_TileEntityChest(); - nms_TileEntityChest__init_(var_0); - return var_0; -}; -function nms_TileEntityChest__init_($this) { - $this.$blockMetadata = (-1); - $this.$chestContents = $rt_createArray(nms_ItemStack, 36); - $this.$adjacentChestChecked = 0; - $this.$field_94046_i = (-1); -} -$java.nms_TileEntityChest_getSizeInventory = function($this) { - return 27; -}; -$java.nms_TileEntityChest_getStackInSlot = function($this, $par1) { - return $this.$chestContents.data[$par1]; -}; -$java.nms_TileEntityChest_decrStackSize = function($this, $par1, $par2) { - var $var3, $var3_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3_0 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$chestContents.data[$par1] === null) - return null; - if ($this.$chestContents.data[$par1].$stackSize <= $par2) { - $var3 = $this.$chestContents.data[$par1]; - $this.$chestContents.data[$par1] = null; - $ptr = 1; - continue main; - } - $var3_0 = nms_ItemStack_splitStack($this.$chestContents.data[$par1], $par2); - if (!$this.$chestContents.data[$par1].$stackSize) - $this.$chestContents.data[$par1] = null; - $ptr = 2; - continue main; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return $var3; - case 2: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return $var3_0; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, $var3_0, $ptr); -}; -$java.nms_TileEntityChest_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2ItemStack = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$chestContents.data[$par1] = $par2ItemStack; - if ($par2ItemStack !== null && $par2ItemStack.$stackSize > 64) - $par2ItemStack.$stackSize = 64; - $ptr = 1; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2ItemStack, $ptr); -}; -$java.nms_TileEntityChest_getInvName = function($this) { - return !($this.$field_94045_s !== null && $this.$field_94045_s.$characters.data.length > 0 ? 1 : 0) ? $rt_s(2652) : $this.$field_94045_s; -}; -$java.nms_TileEntityChest_isInvNameLocalized = function($this) { - return $this.$field_94045_s !== null && $this.$field_94045_s.$characters.data.length > 0 ? 1 : 0; -}; -$java.nms_TileEntityChest_func_94043_a = function($this, $par1Str) { - $this.$field_94045_s = $par1Str; -}; -$java.nms_TileEntityChest_readFromNBT = function($this, $par1NBTTagCompound) { - var $var2, $var5, $var3, $var4; - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1521), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1)) - $var3 = 0; - else { - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1521)); - $var4 = ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1521), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$xCoord0 = $var3; - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1522), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1)) - $var3 = 0; - else { - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1522)); - $var4 = ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1522), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$yCoord0 = $var3; - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1523), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1)) - $var3 = 0; - else { - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1523)); - $var4 = ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1523), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$zCoord0 = $var3; - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(2653)); - if (ju_HashMap_findNonNullKeyEntry($var2, $rt_s(2653), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1) - $var2 = ju_HashMap_get($par1NBTTagCompound.$tagMap, $rt_s(2653)); - else { - $var2 = new nms_NBTTagList; - nms_NBTBase__init_0($var2, $rt_s(2653)); - $var2.$tagList = ju_ArrayList__init_0(); - } - $this.$chestContents = $rt_createArray(nms_ItemStack, $java.nms_TileEntityChest_getSizeInventory($this)); - if (nms_NBTTagCompound_hasKey($par1NBTTagCompound, $rt_s(2654))) - $this.$field_94045_s = nms_NBTTagCompound_getString($par1NBTTagCompound, $rt_s(2654)); - $var3 = 0; - while ($var3 < nms_NBTTagList_tagCount($var2)) { - $var4 = nms_NBTTagList_tagAt($var2, $var3); - $var5 = nms_NBTTagCompound_getByte($var4, $rt_s(2655)) & 255; - if ($var5 >= 0 && $var5 < $this.$chestContents.data.length) - $this.$chestContents.data[$var5] = nms_ItemStack_loadItemStackFromNBT($var4); - $var3 = $var3 + 1 | 0; - } -}; -$java.nms_TileEntityChest_writeToNBT = function($this, $par1NBTTagCompound) { - var $var2, var$3, $var3, $var4, var$6, var$7; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - $var2 = new nms_NBTTagList; - $var2.$name0 = $rt_s(44); - var$3 = new ju_ArrayList; - var$3.$array1 = $rt_createArray(jl_Object, 10); - $var2.$tagList = var$3; - $var3 = 0; - while ($var3 < $this.$chestContents.data.length) { - if ($this.$chestContents.data[$var3] !== null) { - $var4 = new nms_NBTTagCompound; - $var4.$name0 = $rt_s(44); - $var4.$tagMap = ju_HashMap__init_1(16, 0.75); - var$6 = $var3 << 24 >> 24; - var$3 = $var4.$tagMap; - var$7 = new nms_NBTTagByte; - var$7.$name0 = $rt_s(2655); - var$7.$data0 = var$6; - ju_HashMap_putImpl(var$3, $rt_s(2655), var$7); - nms_ItemStack_writeToNBT($this.$chestContents.data[$var3], $var4); - $var2.$tagType = 10; - ju_ArrayList_add($var2.$tagList, $var4); - } - $var3 = $var3 + 1 | 0; - } - var$3 = $par1NBTTagCompound.$tagMap; - $var2.$name0 = $rt_s(2653); - ju_HashMap_putImpl(var$3, $rt_s(2653), $var2); - if ($this.$field_94045_s !== null && $this.$field_94045_s.$characters.data.length > 0 ? 1 : 0) { - var$3 = $this.$field_94045_s; - $var4 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagString; - $par1NBTTagCompound.$name0 = $rt_s(2654); - $par1NBTTagCompound.$data4 = var$3; - if (var$3 === null) { - $var2 = new jl_IllegalArgumentException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $var2.$message = $rt_s(264); - $rt_throw($var2); - } - ju_HashMap_putImpl($var4, $rt_s(2654), $par1NBTTagCompound); - } -}; -$java.nms_TileEntityChest_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_TileEntityChest_isUseableByPlayer = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - if (nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0) !== $this) - var$2 = 0; - else { - var$3 = $this.$xCoord0 + 0.5; - var$4 = $this.$yCoord0 + 0.5; - var$5 = $this.$zCoord0 + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -$java.nms_TileEntityChest_updateContainingBlockInfo = function($this) { - $this.$blockType0 = null; - $this.$blockMetadata = (-1); - $this.$adjacentChestChecked = 0; -}; -$java.nms_TileEntityChest_func_90009_a = function($this, $par1TileEntityChest, $par2) { - a: { - if ($par1TileEntityChest.$tileEntityInvalid) - $this.$adjacentChestChecked = 0; - else if ($this.$adjacentChestChecked) { - b: { - c: { - d: { - switch ($par2) { - case 0: - break; - case 1: - break d; - case 2: - break c; - case 3: - break b; - default: - break a; - } - if ($this.$adjacentChestZPosition === $par1TileEntityChest) - break a; - $this.$adjacentChestChecked = 0; - break a; - } - if ($this.$adjacentChestXNeg === $par1TileEntityChest) - break a; - $this.$adjacentChestChecked = 0; - break a; - } - if ($this.$adjacentChestZNeg === $par1TileEntityChest) - break a; - $this.$adjacentChestChecked = 0; - break a; - } - if ($this.$adjacentChestXPos !== $par1TileEntityChest) - $this.$adjacentChestChecked = 0; - } - } -}; -$java.nms_TileEntityChest_checkForAdjacentChests = function($this) { - if (!$this.$adjacentChestChecked) { - $this.$adjacentChestChecked = 1; - $this.$adjacentChestZNeg = null; - $this.$adjacentChestXPos = null; - $this.$adjacentChestXNeg = null; - $this.$adjacentChestZPosition = null; - if ($java.nms_TileEntityChest_func_94044_a($this, $this.$xCoord0 - 1 | 0, $this.$yCoord0, $this.$zCoord0)) - $this.$adjacentChestXNeg = nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0 - 1 | 0, $this.$yCoord0, $this.$zCoord0); - if ($java.nms_TileEntityChest_func_94044_a($this, $this.$xCoord0 + 1 | 0, $this.$yCoord0, $this.$zCoord0)) - $this.$adjacentChestXPos = nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0 + 1 | 0, $this.$yCoord0, $this.$zCoord0); - if ($java.nms_TileEntityChest_func_94044_a($this, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0 - 1 | 0)) - $this.$adjacentChestZNeg = nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0 - 1 | 0); - if ($java.nms_TileEntityChest_func_94044_a($this, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0 + 1 | 0)) - $this.$adjacentChestZPosition = nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0 + 1 | 0); - if ($this.$adjacentChestZNeg !== null) - $java.nms_TileEntityChest_func_90009_a($this.$adjacentChestZNeg, $this, 0); - if ($this.$adjacentChestZPosition !== null) - $java.nms_TileEntityChest_func_90009_a($this.$adjacentChestZPosition, $this, 2); - if ($this.$adjacentChestXPos !== null) - $java.nms_TileEntityChest_func_90009_a($this.$adjacentChestXPos, $this, 1); - if ($this.$adjacentChestXNeg !== null) - $java.nms_TileEntityChest_func_90009_a($this.$adjacentChestXNeg, $this, 3); - } -}; -$java.nms_TileEntityChest_func_94044_a = function($this, $par1, $par2, $par3) { - var $var4; - nms_Block_$callClinit(); - $var4 = nms_Block_blocksList.data[nms_World_getBlockId($this.$worldObj5, $par1, $par2, $par3)]; - return $var4 !== null && $var4 instanceof nms_BlockChest ? ($var4.$isTrapped != $java.nms_TileEntityChest_func_98041_l($this) ? 0 : 1) : 0; -}; -$java.nms_TileEntityChest_updateEntity = function($this) { - var $var2, $var4, $var5, $var3, $var8, $var11, $var9, $var6; - a: { - $java.nms_TileEntityChest_checkForAdjacentChests($this); - $this.$ticksSinceSync = $this.$ticksSinceSync + 1 | 0; - if (!$this.$worldObj5.$isRemote && $this.$numUsingPlayers && !(((($this.$ticksSinceSync + $this.$xCoord0 | 0) + $this.$yCoord0 | 0) + $this.$zCoord0 | 0) % 200 | 0)) { - $this.$numUsingPlayers = 0; - $var2 = $this.$worldObj5; - $var4 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var4.$initialized) { - $var5 = new nms_AABBPool; - $var3 = new ju_ArrayList; - ju_AbstractCollection__init_0($var3); - $var3.$array1 = $rt_createArray(jl_Object, 10); - $var5.$listAABB = $var3; - $var5.$nextPoolIndex = 0; - $var5.$maxPoolIndex = 0; - $var5.$numCleans = 0; - $var5.$maxNumCleans = 300; - $var5.$numEntriesToRemove = 2000; - $var4.$value7 = $var5; - $var4.$initialized = 1; - } - $var2 = nms_World_selectEntitiesWithinAABB($var2, $rt_cls(nms_EntityPlayer), nms_AABBPool_getAABB($var4.$value7, $this.$xCoord0 - 5.0, $this.$yCoord0 - 5.0, $this.$zCoord0 - 5.0, ($this.$xCoord0 + 1 | 0) + 5.0, ($this.$yCoord0 + 1 | 0) + 5.0, ($this.$zCoord0 + 1 | 0) + 5.0), null); - $var3 = ju_AbstractList$1__init_($var2); - while (true) { - if (!ju_AbstractList$1_hasNext($var3)) - break a; - b: { - $var4 = ju_AbstractList$1_next($var3); - if ($var4.$openContainer instanceof $java.nms_ContainerChest) { - $var5 = $var4.$openContainer.$lowerChestInventory; - if ($var5 !== $this) { - if (!($var5 instanceof nms_InventoryLargeChest)) - break b; - if (!$java.nms_InventoryLargeChest_isPartOfLargeChest($var5, $this)) - break b; - } - $this.$numUsingPlayers = $this.$numUsingPlayers + 1 | 0; - } - } - } - } - } - $this.$prevLidAngle = $this.$lidAngle; - if ($this.$numUsingPlayers > 0 && $this.$lidAngle === 0.0 && $this.$adjacentChestZNeg === null && $this.$adjacentChestXNeg === null) { - $var8 = $this.$xCoord0 + 0.5; - $var11 = $this.$zCoord0 + 0.5; - if ($this.$adjacentChestZPosition !== null) - $var11 = $var11 + 0.5; - if ($this.$adjacentChestXPos !== null) - $var8 = $var8 + 0.5; - nms_World_playSoundEffect($this.$worldObj5, $var8, $this.$yCoord0 + 0.5, $var11, $rt_s(2656), 0.5, Math.random() * 0.10000000149011612 + 0.8999999761581421); - } - c: { - if (!(!$this.$numUsingPlayers && $this.$lidAngle > 0.0)) { - if ($this.$numUsingPlayers <= 0) - break c; - if ($this.$lidAngle >= 1.0) - break c; - } - $var9 = $this.$lidAngle; - if ($this.$numUsingPlayers <= 0) - $this.$lidAngle = $this.$lidAngle - 0.10000000149011612; - else - $this.$lidAngle = $this.$lidAngle + 0.10000000149011612; - if ($this.$lidAngle > 1.0) - $this.$lidAngle = 1.0; - if ($this.$lidAngle < 0.5 && $var9 >= 0.5 && $this.$adjacentChestZNeg === null && $this.$adjacentChestXNeg === null) { - $var11 = $this.$xCoord0 + 0.5; - $var6 = $this.$zCoord0 + 0.5; - if ($this.$adjacentChestZPosition !== null) - $var6 = $var6 + 0.5; - if ($this.$adjacentChestXPos !== null) - $var11 = $var11 + 0.5; - nms_World_playSoundEffect($this.$worldObj5, $var11, $this.$yCoord0 + 0.5, $var6, $rt_s(2657), 0.5, ju_Random_nextFloat($this.$worldObj5.$rand) * 0.10000000149011612 + 0.8999999761581421); - } - if ($this.$lidAngle < 0.0) - $this.$lidAngle = 0.0; - } -}; -$java.nms_TileEntityChest_receiveClientEvent = function($this, $par1, $par2) { - if ($par1 != 1) - return 0; - $this.$numUsingPlayers = $par2; - return 1; -}; -$java.nms_TileEntityChest_openChest = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $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.$numUsingPlayers < 0) - $this.$numUsingPlayers = 0; - $this.$numUsingPlayers = $this.$numUsingPlayers + 1 | 0; - var$1 = $this.$worldObj5; - var$2 = $this.$xCoord0; - var$3 = $this.$yCoord0; - var$4 = $this.$zCoord0; - var$5 = nms_TileEntity_getBlockType($this).$blockID; - var$6 = 1; - var$7 = $this.$numUsingPlayers; - if (var$5 > 0) { - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$5]; - $ptr = 3; - continue main; - } - var$1 = $this.$worldObj5; - var$4 = $this.$xCoord0; - var$6 = $this.$yCoord0; - var$2 = $this.$zCoord0; - var$3 = nms_TileEntity_getBlockType($this).$blockID; - $ptr = 1; - case 1: - nms_World_notifyBlocksOfNeighborChange(var$1, var$4, var$6, var$2, var$3); - if ($rt_suspending()) { - break main; - } - var$1 = $this.$worldObj5; - var$6 = $this.$xCoord0; - var$2 = $this.$yCoord0 - 1 | 0; - var$3 = $this.$zCoord0; - var$4 = nms_TileEntity_getBlockType($this).$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange(var$1, var$6, var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - return; - case 3: - var$8.$onBlockEventReceived(var$1, var$2, var$3, var$4, var$6, var$7); - if ($rt_suspending()) { - break main; - } - var$1 = $this.$worldObj5; - var$4 = $this.$xCoord0; - var$6 = $this.$yCoord0; - var$2 = $this.$zCoord0; - var$3 = nms_TileEntity_getBlockType($this).$blockID; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_TileEntityChest_closeChest = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $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 (nms_TileEntity_getBlockType($this) !== null && nms_TileEntity_getBlockType($this) instanceof nms_BlockChest) { - $this.$numUsingPlayers = $this.$numUsingPlayers - 1 | 0; - var$1 = $this.$worldObj5; - var$2 = $this.$xCoord0; - var$3 = $this.$yCoord0; - var$4 = $this.$zCoord0; - var$5 = nms_TileEntity_getBlockType($this).$blockID; - var$6 = 1; - var$7 = $this.$numUsingPlayers; - if (var$5 > 0) { - nms_Block_$callClinit(); - var$8 = nms_Block_blocksList.data[var$5]; - $ptr = 3; - continue main; - } - var$1 = $this.$worldObj5; - var$6 = $this.$xCoord0; - var$2 = $this.$yCoord0; - var$3 = $this.$zCoord0; - var$4 = nms_TileEntity_getBlockType($this).$blockID; - $ptr = 1; - continue main; - } - return; - case 1: - nms_World_notifyBlocksOfNeighborChange(var$1, var$6, var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - var$1 = $this.$worldObj5; - var$6 = $this.$xCoord0; - var$2 = $this.$yCoord0 - 1 | 0; - var$3 = $this.$zCoord0; - var$4 = nms_TileEntity_getBlockType($this).$blockID; - $ptr = 2; - case 2: - nms_World_notifyBlocksOfNeighborChange(var$1, var$6, var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - return; - case 3: - var$8.$onBlockEventReceived(var$1, var$2, var$3, var$4, var$6, var$7); - if ($rt_suspending()) { - break main; - } - var$1 = $this.$worldObj5; - var$6 = $this.$xCoord0; - var$2 = $this.$yCoord0; - var$3 = $this.$zCoord0; - var$4 = nms_TileEntity_getBlockType($this).$blockID; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_TileEntityChest_isStackValidForSlot = function($this, $par1, $par2ItemStack) { - return 1; -}; -$java.nms_TileEntityChest_invalidate = function($this) { - $this.$tileEntityInvalid = 1; - $this.$blockType0 = null; - $this.$blockMetadata = (-1); - $this.$adjacentChestChecked = 0; - $java.nms_TileEntityChest_checkForAdjacentChests($this); -}; -$java.nms_TileEntityChest_func_98041_l = function($this) { - if ($this.$field_94046_i == (-1)) { - if ($this.$worldObj5 !== null && nms_TileEntity_getBlockType($this) instanceof nms_BlockChest) - $this.$field_94046_i = nms_TileEntity_getBlockType($this).$isTrapped; - else - return 0; - } - return $this.$field_94046_i; -}; -function nms_TileEntityChestRenderer() { - var a = this; $java.nms_TileEntitySpecialRenderer.call(a); - a.$chestModel = null; - a.$largeChestModel = null; - a.$isChristmas = 0; -} -$java.nms_TileEntityChestRenderer_tex_trap_small = null; -$java.nms_TileEntityChestRenderer_tex_xmaschest = null; -$java.nms_TileEntityChestRenderer_tex_chest = null; -$java.nms_TileEntityChestRenderer_tex_trap_large = null; -$java.nms_TileEntityChestRenderer_tex_largexmaschest = null; -$java.nms_TileEntityChestRenderer_tex_largechest = null; -$java.nms_TileEntityChestRenderer__init_ = function() { - var var_0 = new nms_TileEntityChestRenderer(); - nms_TileEntityChestRenderer__init_(var_0); - return var_0; -}; -function nms_TileEntityChestRenderer__init_($this) { - var $var1, var$2; - $this.$chestModel = $java.nms_ModelChest__init_(); - $this.$largeChestModel = $java.nms_ModelLargeChest__init_(); - $var1 = new ju_GregorianCalendar; - var$2 = ju_Locale_defaultLocale; - ju_GregorianCalendar__init_0($var1, ju_TimeZone_getDefault(), var$2); - if (!$var1.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($var1); - $var1.$isTimeSet = 1; - } - if (!$var1.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($var1); - $var1.$areFieldsSet = 1; - } - if (($var1.$fields.data[2] + 1 | 0) == 12) { - if (!$var1.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($var1); - $var1.$isTimeSet = 1; - } - if (!$var1.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($var1); - $var1.$areFieldsSet = 1; - } - if ($var1.$fields.data[5] >= 24) { - if (!$var1.$isTimeSet) { - $java.ju_GregorianCalendar_computeTime($var1); - $var1.$isTimeSet = 1; - } - if (!$var1.$areFieldsSet) { - $java.ju_GregorianCalendar_computeFields($var1); - $var1.$areFieldsSet = 1; - } - if ($var1.$fields.data[5] <= 26) - $this.$isChristmas = 1; - } - } -} -$java.nms_TileEntityChestRenderer_renderTileEntityChestAt = function($this, $par1TileEntityChest, $par2, $par4, $par6, $par8) { - var $var9, $var10, var$8, $var11, var$10, var$11, $var14, $var12, $var13, $var13_0, var$16, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$16 = $thread.pop();$var13_0 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var14 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();$var11 = $thread.pop();var$8 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1TileEntityChest = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!($par1TileEntityChest.$worldObj5 === null ? 0 : 1)) - $var9 = 0; - else { - $var10 = nms_TileEntity_getBlockType($par1TileEntityChest); - if ($par1TileEntityChest.$blockMetadata == (-1)) - $par1TileEntityChest.$blockMetadata = nms_World_getBlockMetadata($par1TileEntityChest.$worldObj5, $par1TileEntityChest.$xCoord0, $par1TileEntityChest.$yCoord0, $par1TileEntityChest.$zCoord0); - $var9 = $par1TileEntityChest.$blockMetadata; - if ($var10 instanceof nms_BlockChest && !$var9) { - $var10 = $var10; - var$8 = nms_TileEntity_getWorldObj($par1TileEntityChest); - $var11 = $par1TileEntityChest.$xCoord0; - var$10 = $par1TileEntityChest.$yCoord0; - var$11 = $par1TileEntityChest.$zCoord0; - $ptr = 1; - continue main; - } - $java.nms_TileEntityChest_checkForAdjacentChests($par1TileEntityChest); - } - if ($par1TileEntityChest.$adjacentChestZNeg === null && $par1TileEntityChest.$adjacentChestXNeg === null) { - if ($par1TileEntityChest.$adjacentChestXPos === null && $par1TileEntityChest.$adjacentChestZPosition === null) { - $var14 = $this.$chestModel; - if ($java.nms_TileEntityChest_func_98041_l($par1TileEntityChest) == 1) - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_trap_small); - else if (!$this.$isChristmas) - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_chest); - else - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_xmaschest); - } else { - $var14 = $this.$largeChestModel; - if ($java.nms_TileEntityChest_func_98041_l($par1TileEntityChest) == 1) - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_trap_large); - else if (!$this.$isChristmas) - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_largechest); - else - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_largexmaschest); - } - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var12 = $par2; - $var13 = $par4 + 1.0; - $var13_0 = $par6 + 1.0; - $var10 = nleg_EaglerAdapterGL30_deevis; - $var10.$x = $var12; - $var10.$y = $var13; - $var10.$z = $var13_0; - $var10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var10, $var10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $var10 = new jl_StringBuilder; - $var10.$buffer = $rt_createCharArray(16); - var$8.$sb = $var10; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $var10 = new jnci_UTF8Charset; - jnc_Charset__init_($var10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $var10; - jl_System_errCache = var$8; - } - var$16 = jl_System_errCache; - var$8 = var$16.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - jl_StringBuilder_append(var$8, 10); - ji_PrintStream_printSB(var$16); - } - nleg_EaglerAdapterGL30_glRotatef(180.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - $var11 = 0; - var$10 = $rt_compare($var9, 2); - if (!var$10) - $var11 = 180; - if ($var9 == 3) - $var11 = 0; - if ($var9 == 4) - $var11 = 90; - var$11 = $rt_compare($var9, 5); - if (!var$11) - $var11 = (-90); - if (!var$10 && $par1TileEntityChest.$adjacentChestXPos !== null) - nleg_EaglerAdapterGL30_glTranslatef(1.0, 0.0, 0.0); - if (!var$11 && $par1TileEntityChest.$adjacentChestZPosition !== null) - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, (-1.0)); - nleg_EaglerAdapterGL30_glRotatef($var11, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - $var12 = $par1TileEntityChest.$prevLidAngle + ($par1TileEntityChest.$lidAngle - $par1TileEntityChest.$prevLidAngle) * $par8; - if ($par1TileEntityChest.$adjacentChestZNeg === null) - $var13 = $var12; - else { - $var13 = $par1TileEntityChest.$adjacentChestZNeg.$prevLidAngle + ($par1TileEntityChest.$adjacentChestZNeg.$lidAngle - $par1TileEntityChest.$adjacentChestZNeg.$prevLidAngle) * $par8; - if ($var13 <= $var12) - $var13 = $var12; - } - if ($par1TileEntityChest.$adjacentChestXNeg === null) - $var13_0 = $var13; - else { - $var13_0 = $par1TileEntityChest.$adjacentChestXNeg.$prevLidAngle + ($par1TileEntityChest.$adjacentChestXNeg.$lidAngle - $par1TileEntityChest.$adjacentChestXNeg.$prevLidAngle) * $par8; - if ($var13_0 <= $var13) - $var13_0 = $var13; - } - $par8 = 1.0 - $var13_0; - $var14.$chestLid.$rotateAngleX = -((1.0 - $par8 * $par8 * $par8) * 3.1415927410125732 / 2.0); - $java.nms_ModelChest_renderAll($var14); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - } - return; - case 1: - nms_BlockChest_unifyAdjacentChests($var10, var$8, $var11, var$10, var$11); - if ($rt_suspending()) { - break main; - } - $var9 = nms_TileEntity_getBlockMetadata($par1TileEntityChest); - $java.nms_TileEntityChest_checkForAdjacentChests($par1TileEntityChest); - if ($par1TileEntityChest.$adjacentChestZNeg === null && $par1TileEntityChest.$adjacentChestXNeg === null) { - if ($par1TileEntityChest.$adjacentChestXPos === null && $par1TileEntityChest.$adjacentChestZPosition === null) { - $var14 = $this.$chestModel; - if ($java.nms_TileEntityChest_func_98041_l($par1TileEntityChest) == 1) - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_trap_small); - else if (!$this.$isChristmas) - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_chest); - else - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_xmaschest); - } else { - $var14 = $this.$largeChestModel; - if ($java.nms_TileEntityChest_func_98041_l($par1TileEntityChest) == 1) - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_trap_large); - else if (!$this.$isChristmas) - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_largechest); - else - nle_TextureLocation_bindTexture($java.nms_TileEntityChestRenderer_tex_largexmaschest); - } - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var12 = $par2; - $var13 = $par4 + 1.0; - $var13_0 = $par6 + 1.0; - $var10 = nleg_EaglerAdapterGL30_deevis; - $var10.$x = $var12; - $var10.$y = $var13; - $var10.$z = $var13_0; - $var10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var10, $var10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $var10 = new jl_StringBuilder; - $var10.$buffer = $rt_createCharArray(16); - var$8.$sb = $var10; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $var10 = new jnci_UTF8Charset; - jnc_Charset__init_($var10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $var10; - jl_System_errCache = var$8; - } - var$16 = jl_System_errCache; - var$8 = var$16.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - jl_StringBuilder_append(var$8, 10); - ji_PrintStream_printSB(var$16); - } - nleg_EaglerAdapterGL30_glRotatef(180.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.5); - $var11 = 0; - var$10 = $rt_compare($var9, 2); - if (!var$10) - $var11 = 180; - if ($var9 == 3) - $var11 = 0; - if ($var9 == 4) - $var11 = 90; - var$11 = $rt_compare($var9, 5); - if (!var$11) - $var11 = (-90); - if (!var$10 && $par1TileEntityChest.$adjacentChestXPos !== null) - nleg_EaglerAdapterGL30_glTranslatef(1.0, 0.0, 0.0); - if (!var$11 && $par1TileEntityChest.$adjacentChestZPosition !== null) - nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, (-1.0)); - nleg_EaglerAdapterGL30_glRotatef($var11, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - $var12 = $par1TileEntityChest.$prevLidAngle + ($par1TileEntityChest.$lidAngle - $par1TileEntityChest.$prevLidAngle) * $par8; - if ($par1TileEntityChest.$adjacentChestZNeg === null) - $var13 = $var12; - else { - $var13 = $par1TileEntityChest.$adjacentChestZNeg.$prevLidAngle + ($par1TileEntityChest.$adjacentChestZNeg.$lidAngle - $par1TileEntityChest.$adjacentChestZNeg.$prevLidAngle) * $par8; - if ($var13 <= $var12) - $var13 = $var12; - } - if ($par1TileEntityChest.$adjacentChestXNeg === null) - $var13_0 = $var13; - else { - $var13_0 = $par1TileEntityChest.$adjacentChestXNeg.$prevLidAngle + ($par1TileEntityChest.$adjacentChestXNeg.$lidAngle - $par1TileEntityChest.$adjacentChestXNeg.$prevLidAngle) * $par8; - if ($var13_0 <= $var13) - $var13_0 = $var13; - } - $par8 = 1.0 - $var13_0; - $var14.$chestLid.$rotateAngleX = -((1.0 - $par8 * $par8 * $par8) * 3.1415927410125732 / 2.0); - $java.nms_ModelChest_renderAll($var14); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntityChest, $par2, $par4, $par6, $par8, $var9, $var10, var$8, $var11, var$10, var$11, $var14, $var12, $var13, $var13_0, var$16, $ptr); -}; -$java.nms_TileEntityChestRenderer_renderTileEntityAt = function($this, $par1TileEntity, $par2, $par4, $par6, $par8) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1TileEntity = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $par1TileEntity = $par1TileEntity; - $ptr = 1; - case 1: - $java.nms_TileEntityChestRenderer_renderTileEntityChestAt($this, $par1TileEntity, $par2, $par4, $par6, $par8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1TileEntity, $par2, $par4, $par6, $par8, $ptr); -}; -function nms_TileEntityChestRenderer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2658); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntityChestRenderer_tex_trap_small = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2659); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntityChestRenderer_tex_xmaschest = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2660); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntityChestRenderer_tex_chest = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2661); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntityChestRenderer_tex_trap_large = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2662); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntityChestRenderer_tex_largexmaschest = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2663); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntityChestRenderer_tex_largechest = var$1; -} -function nms_TileEntityEnderChest() { - var a = this; nms_TileEntity.call(a); - a.$lidAngle0 = 0.0; - a.$prevLidAngle0 = 0.0; - a.$numUsingPlayers0 = 0; - a.$ticksSinceSync0 = 0; -} -$java.nms_TileEntityEnderChest__init_ = function() { - var var_0 = new nms_TileEntityEnderChest(); - nms_TileEntityEnderChest__init_(var_0); - return var_0; -}; -function nms_TileEntityEnderChest__init_($this) { - $this.$blockMetadata = (-1); -} -$java.nms_TileEntityEnderChest_updateEntity = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $var2, $var4, $var8, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$var8 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();var$8 = $thread.pop();var$7 = $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: - var$1 = $this.$ticksSinceSync0 + 1 | 0; - $this.$ticksSinceSync0 = var$1; - if (!((var$1 % 20 | 0) * 4 | 0)) { - var$2 = $this.$worldObj5; - var$1 = $this.$xCoord0; - var$3 = $this.$yCoord0; - var$4 = $this.$zCoord0; - nms_Block_$callClinit(); - var$5 = nms_Block_enderChest.$blockID; - var$6 = 1; - var$7 = $this.$numUsingPlayers0; - if (var$5 > 0) { - var$8 = nms_Block_blocksList.data[var$5]; - $ptr = 1; - continue main; - } - } - $this.$prevLidAngle0 = $this.$lidAngle0; - if ($this.$numUsingPlayers0 > 0 && $this.$lidAngle0 === 0.0) { - $var2 = $this.$xCoord0 + 0.5; - $var4 = $this.$zCoord0 + 0.5; - nms_World_playSoundEffect($this.$worldObj5, $var2, $this.$yCoord0 + 0.5, $var4, $rt_s(2656), 0.5, Math.random() * 0.10000000149011612 + 0.8999999761581421); - } - a: { - if (!(!$this.$numUsingPlayers0 && $this.$lidAngle0 > 0.0)) { - if ($this.$numUsingPlayers0 <= 0) - break a; - if ($this.$lidAngle0 >= 1.0) - break a; - } - $var8 = $this.$lidAngle0; - if ($this.$numUsingPlayers0 <= 0) - $this.$lidAngle0 = $this.$lidAngle0 - 0.10000000149011612; - else - $this.$lidAngle0 = $this.$lidAngle0 + 0.10000000149011612; - if ($this.$lidAngle0 > 1.0) - $this.$lidAngle0 = 1.0; - if ($this.$lidAngle0 < 0.5 && $var8 >= 0.5) { - $var4 = $this.$xCoord0 + 0.5; - $var6 = $this.$zCoord0 + 0.5; - nms_World_playSoundEffect($this.$worldObj5, $var4, $this.$yCoord0 + 0.5, $var6, $rt_s(2657), 0.5, Math.random() * 0.10000000149011612 + 0.8999999761581421); - } - if ($this.$lidAngle0 < 0.0) - $this.$lidAngle0 = 0.0; - } - return; - case 1: - var$8.$onBlockEventReceived(var$2, var$1, var$3, var$4, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $this.$prevLidAngle0 = $this.$lidAngle0; - if ($this.$numUsingPlayers0 > 0 && $this.$lidAngle0 === 0.0) { - $var2 = $this.$xCoord0 + 0.5; - $var4 = $this.$zCoord0 + 0.5; - nms_World_playSoundEffect($this.$worldObj5, $var2, $this.$yCoord0 + 0.5, $var4, $rt_s(2656), 0.5, Math.random() * 0.10000000149011612 + 0.8999999761581421); - } - b: { - if (!(!$this.$numUsingPlayers0 && $this.$lidAngle0 > 0.0)) { - if ($this.$numUsingPlayers0 <= 0) - break b; - if ($this.$lidAngle0 >= 1.0) - break b; - } - $var8 = $this.$lidAngle0; - if ($this.$numUsingPlayers0 <= 0) - $this.$lidAngle0 = $this.$lidAngle0 - 0.10000000149011612; - else - $this.$lidAngle0 = $this.$lidAngle0 + 0.10000000149011612; - if ($this.$lidAngle0 > 1.0) - $this.$lidAngle0 = 1.0; - if ($this.$lidAngle0 < 0.5 && $var8 >= 0.5) { - $var4 = $this.$xCoord0 + 0.5; - $var6 = $this.$zCoord0 + 0.5; - nms_World_playSoundEffect($this.$worldObj5, $var4, $this.$yCoord0 + 0.5, $var6, $rt_s(2657), 0.5, Math.random() * 0.10000000149011612 + 0.8999999761581421); - } - if ($this.$lidAngle0 < 0.0) - $this.$lidAngle0 = 0.0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $var2, $var4, $var8, $var6, $ptr); -}; -$java.nms_TileEntityEnderChest_receiveClientEvent = function($this, $par1, $par2) { - if ($par1 != 1) - return 0; - $this.$numUsingPlayers0 = $par2; - return 1; -}; -$java.nms_TileEntityEnderChest_invalidate = function($this) { - $this.$blockType0 = null; - $this.$blockMetadata = (-1); - $this.$tileEntityInvalid = 1; -}; -$java.nms_TileEntityEnderChest_openChest = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $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: - $this.$numUsingPlayers0 = $this.$numUsingPlayers0 + 1 | 0; - var$1 = $this.$worldObj5; - var$2 = $this.$xCoord0; - var$3 = $this.$yCoord0; - var$4 = $this.$zCoord0; - nms_Block_$callClinit(); - var$5 = nms_Block_enderChest.$blockID; - var$6 = 1; - var$7 = $this.$numUsingPlayers0; - if (var$5 <= 0) - return; - var$8 = nms_Block_blocksList.data[var$5]; - $ptr = 1; - case 1: - var$8.$onBlockEventReceived(var$1, var$2, var$3, var$4, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_TileEntityEnderChest_closeChest = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $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: - $this.$numUsingPlayers0 = $this.$numUsingPlayers0 - 1 | 0; - var$1 = $this.$worldObj5; - var$2 = $this.$xCoord0; - var$3 = $this.$yCoord0; - var$4 = $this.$zCoord0; - nms_Block_$callClinit(); - var$5 = nms_Block_enderChest.$blockID; - var$6 = 1; - var$7 = $this.$numUsingPlayers0; - if (var$5 <= 0) - return; - var$8 = nms_Block_blocksList.data[var$5]; - $ptr = 1; - case 1: - var$8.$onBlockEventReceived(var$1, var$2, var$3, var$4, var$6, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_TileEntityEnderChest_isUseableByPlayer = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - if (nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0) !== $this) - var$2 = 0; - else { - var$3 = $this.$xCoord0 + 0.5; - var$4 = $this.$yCoord0 + 0.5; - var$5 = $this.$zCoord0 + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -function nms_TileEntityEnderChestRenderer() { - $java.nms_TileEntitySpecialRenderer.call(this); - this.$theEnderChestModel = null; -} -$java.nms_TileEntityEnderChestRenderer_tex_enderchest = null; -$java.nms_TileEntityEnderChestRenderer__init_ = function() { - var var_0 = new nms_TileEntityEnderChestRenderer(); - nms_TileEntityEnderChestRenderer__init_(var_0); - return var_0; -}; -function nms_TileEntityEnderChestRenderer__init_($this) { - $this.$theEnderChestModel = $java.nms_ModelChest__init_(); -} -$java.nms_TileEntityEnderChestRenderer_renderEnderChest = function($this, $par1TileEntityEnderChest, $par2, $par4, $par6, $par8) { - var $var9, $var11, var$8, var$9, var$10, var$11, var$12, var$13, $var10; - $var9 = 0; - if ($par1TileEntityEnderChest.$worldObj5 === null ? 0 : 1) - $var9 = nms_TileEntity_getBlockMetadata($par1TileEntityEnderChest); - nle_TextureLocation_bindTexture($java.nms_TileEntityEnderChestRenderer_tex_enderchest); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var11 = $par2; - var$8 = $par4 + 1.0; - var$9 = $par6 + 1.0; - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = $var11; - var$10.$y = var$8; - var$10.$z = var$9; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$13 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$13, var$13 + 1 | 0); - var$11.$buffer.data[var$13] = 10; - ji_PrintStream_printSB(var$12); - } - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = 1.0; - var$10.$y = (-1.0); - var$10.$z = (-1.0); - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(220)); - var$13 = var$11.$length; - jl_AbstractStringBuilder_insertSpace(var$11, var$13, var$13 + 1 | 0); - var$11.$buffer.data[var$13] = 10; - ji_PrintStream_printSB(var$12); - } - var$10 = nleg_EaglerAdapterGL30_deevis; - var$10.$x = 0.5; - var$10.$y = 0.5; - var$10.$z = 0.5; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - var$12 = jl_System_errCache; - var$11 = var$12.$sb; - jl_AbstractStringBuilder_append(var$11, $rt_s(220)); - jl_AbstractStringBuilder_append2(var$11, 10); - ji_PrintStream_printSB(var$12); - } - $var10 = 0; - if ($var9 == 2) - $var10 = 180; - if ($var9 == 3) - $var10 = 0; - if ($var9 == 4) - $var10 = 90; - if ($var9 == 5) - $var10 = (-90); - nleg_EaglerAdapterGL30_glRotatef($var10, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), (-0.5)); - $par8 = 1.0 - ($par1TileEntityEnderChest.$prevLidAngle0 + ($par1TileEntityEnderChest.$lidAngle0 - $par1TileEntityEnderChest.$prevLidAngle0) * $par8); - $par8 = 1.0 - $par8 * $par8 * $par8; - $this.$theEnderChestModel.$chestLid.$rotateAngleX = -($par8 * 3.1415927410125732 / 2.0); - $java.nms_ModelChest_renderAll($this.$theEnderChestModel); - nleg_EaglerAdapterGL30_glDisable(41); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); -}; -$java.nms_TileEntityEnderChestRenderer_renderTileEntityAt = function($this, $par1TileEntity, $par2, $par4, $par6, $par8) { - $java.nms_TileEntityEnderChestRenderer_renderEnderChest($this, $par1TileEntity, $par2, $par4, $par6, $par8); -}; -function nms_TileEntityEnderChestRenderer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2664); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntityEnderChestRenderer_tex_enderchest = var$1; -} -function nms_TileEntityEnchantmentTable() { - var a = this; nms_TileEntity.call(a); - a.$tickCount = 0; - a.$pageFlip = 0.0; - a.$pageFlipPrev = 0.0; - a.$field_70373_d = 0.0; - a.$field_70374_e = 0.0; - a.$bookSpread = 0.0; - a.$bookSpreadPrev = 0.0; - a.$bookRotation2 = 0.0; - a.$bookRotationPrev = 0.0; - a.$bookRotation = 0.0; - a.$field_94136_s = null; -} -$java.nms_TileEntityEnchantmentTable_rand = null; -$java.nms_TileEntityEnchantmentTable__init_ = function() { - var var_0 = new nms_TileEntityEnchantmentTable(); - nms_TileEntityEnchantmentTable__init_(var_0); - return var_0; -}; -function nms_TileEntityEnchantmentTable__init_($this) { - $this.$blockMetadata = (-1); -} -$java.nms_TileEntityEnchantmentTable_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - if ($this.$field_94136_s !== null && $this.$field_94136_s.$characters.data.length > 0 ? 1 : 0) { - var$2 = $this.$field_94136_s; - var$3 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagString; - $par1NBTTagCompound.$name0 = $rt_s(2654); - $par1NBTTagCompound.$data4 = var$2; - if (var$2 === null) { - var$4 = new jl_IllegalArgumentException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - var$4.$message = $rt_s(264); - $rt_throw(var$4); - } - ju_HashMap_putImpl(var$3, $rt_s(2654), $par1NBTTagCompound); - } -}; -$java.nms_TileEntityEnchantmentTable_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$zCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(2654)); - if (ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2654), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(2654)); - $this.$field_94136_s = !(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2654), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1) ? $rt_s(44) : ju_HashMap_get($par1NBTTagCompound.$tagMap, $rt_s(2654)).$data4; - } -}; -$java.nms_TileEntityEnchantmentTable_updateEntity = function($this) { - var $var1, $var2, $var6, $var7, $var3, $var8; - $this.$bookSpreadPrev = $this.$bookSpread; - $this.$bookRotationPrev = $this.$bookRotation2; - $var1 = nms_World_getClosestPlayer($this.$worldObj5, $this.$xCoord0 + 0.5, $this.$yCoord0 + 0.5, $this.$zCoord0 + 0.5, 3.0); - if ($var1 === null) { - $this.$bookRotation = $this.$bookRotation + 0.019999999552965164; - $this.$bookSpread = $this.$bookSpread - 0.10000000149011612; - } else - a: { - $var2 = $var1.$posX - ($this.$xCoord0 + 0.5); - $this.$bookRotation = jl_Math_atan2($var1.$posZ - ($this.$zCoord0 + 0.5), $var2); - $this.$bookSpread = $this.$bookSpread + 0.10000000149011612; - if (!($this.$bookSpread >= 0.5 && Math.random() * 40.0 | 0)) { - $var6 = $this.$field_70373_d; - while (true) { - $this.$field_70373_d = $this.$field_70373_d + ((Math.random() * 4.0 | 0) - (Math.random() * 4.0 | 0) | 0); - if ($var6 === $this.$field_70373_d) - continue; - else - break a; - } - } - } - while ($this.$bookRotation2 >= 3.1415927410125732) { - $this.$bookRotation2 = $this.$bookRotation2 - 6.2831854820251465; - } - while ($this.$bookRotation2 < (-3.1415927410125732)) { - $this.$bookRotation2 = $this.$bookRotation2 + 6.2831854820251465; - } - while ($this.$bookRotation >= 3.1415927410125732) { - $this.$bookRotation = $this.$bookRotation - 6.2831854820251465; - } - while ($this.$bookRotation < (-3.1415927410125732)) { - $this.$bookRotation = $this.$bookRotation + 6.2831854820251465; - } - $var7 = $this.$bookRotation - $this.$bookRotation2; - while ($var7 >= 3.1415927410125732) { - $var7 = $var7 - 6.2831854820251465; - } - while ($var7 < (-3.1415927410125732)) { - $var7 = $var7 + 6.2831854820251465; - } - $this.$bookRotation2 = $this.$bookRotation2 + $var7 * 0.4000000059604645; - if ($this.$bookSpread < 0.0) - $this.$bookSpread = 0.0; - if ($this.$bookSpread > 1.0) - $this.$bookSpread = 1.0; - $this.$tickCount = $this.$tickCount + 1 | 0; - $this.$pageFlipPrev = $this.$pageFlip; - $var3 = ($this.$field_70373_d - $this.$pageFlip) * 0.4000000059604645; - $var8 = 0.20000000298023224; - $var6 = (-0.20000000298023224); - if ($var3 >= $var6) - $var6 = $var3; - if ($var6 <= $var8) - $var8 = $var6; - $this.$field_70374_e = $this.$field_70374_e + ($var8 - $this.$field_70374_e) * 0.8999999761581421; - $this.$pageFlip = $this.$pageFlip + $this.$field_70374_e; -}; -function nms_TileEntityEnchantmentTable_func_94133_a($this) { - return !($this.$field_94136_s !== null && $this.$field_94136_s.$characters.data.length > 0 ? 1 : 0) ? $rt_s(2665) : $this.$field_94136_s; -} -$java.nms_TileEntityEnchantmentTable_func_94135_b = function($this) { - return $this.$field_94136_s !== null && $this.$field_94136_s.$characters.data.length > 0 ? 1 : 0; -}; -$java.nms_TileEntityEnchantmentTable_func_94134_a = function($this, $par1Str) { - $this.$field_94136_s = $par1Str; -}; -function nms_TileEntityEnchantmentTable__clinit_() { - $java.nms_TileEntityEnchantmentTable_rand = new ju_Random; -} -function nms_RenderEnchantmentTable() { - $java.nms_TileEntitySpecialRenderer.call(this); - this.$enchantmentBook = null; -} -$java.nms_RenderEnchantmentTable_tex_book = null; -$java.nms_RenderEnchantmentTable__init_ = function() { - var var_0 = new nms_RenderEnchantmentTable(); - nms_RenderEnchantmentTable__init_(var_0); - return var_0; -}; -function nms_RenderEnchantmentTable__init_($this) { - $this.$enchantmentBook = $java.nms_ModelBook__init_(); -} -$java.nms_RenderEnchantmentTable_renderTileEntityEnchantmentTableAt = function($this, $par1TileEntityEnchantmentTable, $par2, $par4, $par6, $par8) { - var $var10, $var11, $var9, var$9, var$10, var$11, var$12, $var12, $var13, var$15, $var14; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var10 = $par2 + 0.5; - $var11 = $par4 + 0.75; - $var9 = $par6 + 0.5; - var$9 = nleg_EaglerAdapterGL30_deevis; - var$9.$x = $var10; - var$9.$y = $var11; - var$9.$z = $var9; - var$9 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$9, var$9); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - var$10.$sb = var$9; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - var$9 = new jnci_UTF8Charset; - jnc_Charset__init_(var$9, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = var$9; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - $var9 = $par1TileEntityEnchantmentTable.$tickCount + $par8; - $var12 = $var9 * 0.10000000149011612; - $var11 = 0.10000000149011612 + nms_MathHelper_SIN_TABLE.data[($var12 * 10430.3779296875 | 0) & 65535] * 0.009999999776482582; - var$9 = nleg_EaglerAdapterGL30_deevis; - var$9.$x = 0.0; - var$9.$y = $var11; - var$9.$z = 0.0; - var$9 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$9, var$9); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - var$9 = new jl_StringBuilder; - var$9.$buffer = $rt_createCharArray(16); - var$10.$sb = var$9; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - var$9 = new jnci_UTF8Charset; - jnc_Charset__init_(var$9, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = var$9; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - var$12 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, var$12, var$12 + 1 | 0); - var$10.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$11); - } - $var10 = $par1TileEntityEnchantmentTable.$bookRotation2 - $par1TileEntityEnchantmentTable.$bookRotationPrev; - while ($var10 >= 3.1415927410125732) { - $var10 = $var10 - 6.2831854820251465; - } - while ($var10 < (-3.1415927410125732)) { - $var10 = $var10 + 6.2831854820251465; - } - nleg_EaglerAdapterGL30_glRotatef( -($par1TileEntityEnchantmentTable.$bookRotationPrev + $var10 * $par8) * 180.0 / 3.1415927410125732, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(80.0, 0.0, 0.0, 1.0); - nle_TextureLocation_bindTexture($java.nms_RenderEnchantmentTable_tex_book); - $var12 = $par1TileEntityEnchantmentTable.$pageFlipPrev + ($par1TileEntityEnchantmentTable.$pageFlip - $par1TileEntityEnchantmentTable.$pageFlipPrev) * $par8 + 0.25; - $var13 = $par1TileEntityEnchantmentTable.$pageFlipPrev + ($par1TileEntityEnchantmentTable.$pageFlip - $par1TileEntityEnchantmentTable.$pageFlipPrev) * $par8 + 0.75; - $var10 = ($var12 - (($var12 + 1024.0 | 0) - 1024 | 0)) * 1.600000023841858 - 0.30000001192092896; - var$15 = ($var13 - (($var13 + 1024.0 | 0) - 1024 | 0)) * 1.600000023841858 - 0.30000001192092896; - if ($var10 < 0.0) - $var10 = 0.0; - if (var$15 < 0.0) - var$15 = 0.0; - if ($var10 > 1.0) - $var10 = 1.0; - if (var$15 > 1.0) - var$15 = 1.0; - $var14 = $par1TileEntityEnchantmentTable.$bookSpreadPrev + ($par1TileEntityEnchantmentTable.$bookSpread - $par1TileEntityEnchantmentTable.$bookSpreadPrev) * $par8; - nleg_EaglerAdapterGL30_glEnable(46); - $java.nms_ModelBook_render($this.$enchantmentBook, null, $var9, $var10, var$15, $var14, 0.0, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); -}; -$java.nms_RenderEnchantmentTable_renderTileEntityAt = function($this, $par1TileEntity, $par2, $par4, $par6, $par8) { - $java.nms_RenderEnchantmentTable_renderTileEntityEnchantmentTableAt($this, $par1TileEntity, $par2, $par4, $par6, $par8); -}; -function nms_RenderEnchantmentTable__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2666); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_RenderEnchantmentTable_tex_book = var$1; -} -function nms_TileEntityEndPortal() { - nms_TileEntity.call(this); -} -$java.nms_TileEntityEndPortal__init_ = function() { - var var_0 = new nms_TileEntityEndPortal(); - nms_TileEntityEndPortal__init_(var_0); - return var_0; -}; -function nms_TileEntityEndPortal__init_($this) { - $this.$blockMetadata = (-1); -} -function nms_RenderEndPortal() { - $java.nms_TileEntitySpecialRenderer.call(this); - this.$field_76908_a = null; -} -$java.nms_RenderEndPortal_tex_tunnel = null; -$java.nms_RenderEndPortal_tex_particlefield = null; -$java.nms_RenderEndPortal__init_ = function() { - var var_0 = new nms_RenderEndPortal(); - nms_RenderEndPortal__init_(var_0); - return var_0; -}; -function nms_RenderEndPortal__init_($this) { - var var$1, var$2, var$3, var$4; - nleg_EaglerAdapterGL30_$callClinit(); - if (!nleg_EaglerAdapterGL30_isWebGL) - var$1 = jn_ByteBufferImpl_asFloatBuffer(nms_GLAllocation_createDirectByteBuffer(64)); - else { - var$2 = $rt_createFloatArray(16); - var$3 = var$2.data.length; - var$1 = new jn_FloatBufferOverArray; - var$4 = 0 + var$3 | 0; - var$1.$mark = (-1); - var$1.$capacity = var$3; - var$1.$limit = var$3; - var$1.$position = 0; - var$1.$limit = var$4; - var$1.$start5 = 0; - var$1.$readOnly5 = 0; - var$1.$array4 = var$2; - } - $this.$field_76908_a = var$1; -} -$java.nms_RenderEndPortal_renderEndPortalTileEntity = function($this, $par1TileEntityEndPortal, $par2, $par4, $par6, $par8) { - var $var9, $var10, $var11, $var12, $var14, var$11, $var18, var$13, var$14, var$15, $var15, $var16, $var17, $var24, var$20, var$21, $var22, $var23; - $var9 = $this.$tileEntityRenderer.$playerX; - $var10 = $this.$tileEntityRenderer.$playerY; - $var11 = $this.$tileEntityRenderer.$playerZ; - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(6); - $var12 = new ju_Random; - $var14 = 0; - var$11 = $par4 + 0.75; - $var18 = -var$11; - var$13 = var$11; - var$14 = -$var10; - $par4 = $par6 + 1.0; - var$15 = $par2 + 1.0; - while ($var14 < 16) { - nleg_EaglerAdapterGL30_glPushMatrix(); - $var15 = 16 - $var14 | 0; - $var16 = 0.0625; - $var17 = 1.0 / ($var15 + 1.0); - if (!$var14) { - nle_TextureLocation_bindTexture($java.nms_RenderEndPortal_tex_tunnel); - $var17 = 0.10000000149011612; - $var15 = 65.0; - $var16 = 0.125; - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - } - if ($var14 == 1) { - nle_TextureLocation_bindTexture($java.nms_RenderEndPortal_tex_particlefield); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(1, 1); - $var16 = 0.5; - } - $var10 = $var16 * 3.0; - $par8 = ($var18 + $java.nms_ActiveRenderInfo_objectY) / ($var18 + $var15 + $java.nms_ActiveRenderInfo_objectY) + var$13; - $par1TileEntityEndPortal = nleg_EaglerAdapterGL30_deevis; - $par1TileEntityEndPortal.$x = $var9; - $par1TileEntityEndPortal.$y = $par8; - $par1TileEntityEndPortal.$z = $var11; - $par1TileEntityEndPortal = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1TileEntityEndPortal, $par1TileEntityEndPortal); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $var24 = new ji_PrintStream; - $var24.$out = new jl_ConsoleOutputStreamStderr; - $par1TileEntityEndPortal = new jl_StringBuilder; - $par1TileEntityEndPortal.$buffer = $rt_createCharArray(16); - $var24.$sb = $par1TileEntityEndPortal; - $var24.$buffer0 = $rt_createCharArray(32); - $var24.$autoFlush = 0; - $par1TileEntityEndPortal = new jnci_UTF8Charset; - jnc_Charset__init_($par1TileEntityEndPortal, $rt_s(2), $rt_createArray(jl_String, 0)); - $var24.$charset = $par1TileEntityEndPortal; - jl_System_errCache = $var24; - } - var$20 = jl_System_errCache; - $var24 = var$20.$sb; - jl_AbstractStringBuilder_insert($var24, $var24.$length, $rt_s(220)); - var$21 = $var24.$length; - jl_AbstractStringBuilder_insertSpace($var24, var$21, var$21 + 1 | 0); - $var24.$buffer.data[var$21] = 10; - ji_PrintStream_printSB(var$20); - } - nleg_EaglerAdapterGL30_glTexGeni(59, 65, 68); - nleg_EaglerAdapterGL30_glTexGeni(60, 65, 69); - nleg_EaglerAdapterGL30_glTexGen(57, 66, $java.nms_RenderEndPortal_func_76907_a($this, 1.0, 0.0, 0.0, 0.0)); - nleg_EaglerAdapterGL30_glTexGen(58, 66, $java.nms_RenderEndPortal_func_76907_a($this, 0.0, 0.0, 1.0, 0.0)); - nleg_EaglerAdapterGL30_glTexGen(59, 66, $java.nms_RenderEndPortal_func_76907_a($this, 0.0, 0.0, 0.0, 1.0)); - nleg_EaglerAdapterGL30_glTexGen(60, 67, $java.nms_RenderEndPortal_func_76907_a($this, 0.0, 1.0, 0.0, 0.0)); - nleg_EaglerAdapterGL30_glEnable(61); - nleg_EaglerAdapterGL30_glEnable(62); - nleg_EaglerAdapterGL30_glEnable(63); - nleg_EaglerAdapterGL30_glEnable(64); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glMatrixMode(54); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glLoadIdentity(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, Long_toNumber(Long_rem(nmc_Minecraft_getSystemTime(), Long_fromInt(400000))) / 400000.0, 0.0); - nleg_EaglerAdapterGL30_glScalef($var10, $var10, $var10); - nleg_EaglerAdapterGL30_glTranslatef(0.5, 0.5, 0.0); - nleg_EaglerAdapterGL30_glRotatef((($rt_imul($var14, $var14) * 4321 | 0) + ($var14 * 9 | 0) | 0) * 2.0, 0.0, 0.0, 1.0); - nleg_EaglerAdapterGL30_glTranslatef((-0.5), (-0.5), 0.0); - $par8 = $var18 + $java.nms_ActiveRenderInfo_objectY; - nleg_EaglerAdapterGL30_glTranslatef($java.nms_ActiveRenderInfo_objectX * $var15 / $par8, $java.nms_ActiveRenderInfo_objectZ * $var15 / $par8, var$14); - nlea_Tessellator_$callClinit(); - $var24 = nlea_Tessellator_instance; - nlea_Tessellator_startDrawingQuads($var24); - $par8 = ju_Random_nextFloat($var12) * 0.5 + 0.10000000149011612; - $var22 = ju_Random_nextFloat($var12) * 0.5 + 0.4000000059604645; - $var23 = ju_Random_nextFloat($var12) * 0.5 + 0.5; - if (!$var14) { - $var23 = 1.0; - $var22 = 1.0; - $par8 = 1.0; - } - nlea_Tessellator_setColorRGBA_F($var24, $par8 * $var17, $var22 * $var17, $var23 * $var17, 1.0); - nlea_Tessellator_addVertex($var24, $par2, var$11, $par6); - nlea_Tessellator_addVertex($var24, $par2, var$11, $par4); - nlea_Tessellator_addVertex($var24, var$15, var$11, $par4); - nlea_Tessellator_addVertex($var24, var$15, var$11, $par6); - nlea_Tessellator_draw($var24); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glMatrixMode(10); - $var14 = $var14 + 1 | 0; - } - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glDisable(61); - nleg_EaglerAdapterGL30_glDisable(62); - nleg_EaglerAdapterGL30_glDisable(63); - nleg_EaglerAdapterGL30_glDisable(64); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(6); -}; -$java.nms_RenderEndPortal_func_76907_a = function($this, $par1, $par2, $par3, $par4) { - var var$5; - var$5 = $this.$field_76908_a; - var$5.$position = 0; - var$5.$limit = var$5.$capacity; - var$5.$mark = (-1); - jn_FloatBufferImpl_put(jn_FloatBufferImpl_put(jn_FloatBufferImpl_put(jn_FloatBufferImpl_put($this.$field_76908_a, $par1), $par2), $par3), $par4); - var$5 = $this.$field_76908_a; - var$5.$limit = var$5.$position; - var$5.$position = 0; - var$5.$mark = (-1); - return $this.$field_76908_a; -}; -$java.nms_RenderEndPortal_renderTileEntityAt = function($this, $par1TileEntity, $par2, $par4, $par6, $par8) { - $java.nms_RenderEndPortal_renderEndPortalTileEntity($this, $par1TileEntity, $par2, $par4, $par6, $par8); -}; -function nms_RenderEndPortal__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(890); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_RenderEndPortal_tex_tunnel = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2667); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_RenderEndPortal_tex_particlefield = var$1; -} -function nms_TileEntityBeacon() { - var a = this; nms_TileEntity.call(a); - a.$field_82137_b = Long_ZERO; - a.$field_82138_c = 0.0; - a.$isBeaconActive = 0; - a.$levels = 0; - a.$primaryEffect = 0; - a.$secondaryEffect = 0; - a.$payment = null; - a.$field_94048_i = null; -} -$java.nms_TileEntityBeacon_effectsList = null; -function nms_TileEntityBeacon_$callClinit() { - nms_TileEntityBeacon_$callClinit = $rt_eraseClinit(nms_TileEntityBeacon); - $java.nms_TileEntityBeacon__clinit_(); -} -$java.nms_TileEntityBeacon__init_ = function() { - var var_0 = new nms_TileEntityBeacon(); - nms_TileEntityBeacon__init_(var_0); - return var_0; -}; -function nms_TileEntityBeacon__init_($this) { - nms_TileEntityBeacon_$callClinit(); - $this.$blockMetadata = (-1); - $this.$levels = (-1); -} -$java.nms_TileEntityBeacon_updateEntity = function($this) { - if (Long_eq(Long_rem($this.$worldObj5.$worldInfo.$totalTime, Long_fromInt(80)), Long_ZERO)) { - $java.nms_TileEntityBeacon_updateState($this); - $java.nms_TileEntityBeacon_addEffectsToPlayers($this); - } -}; -$java.nms_TileEntityBeacon_addEffectsToPlayers = function($this) { - var $var1, $var3, $var7, $var7_0, $var5, var$6, var$7, var$8, var$9, var$10, $var4, $var6$index, var$13, var$14, $var6$index_0; - a: { - if ($this.$isBeaconActive && $this.$levels > 0 && !$this.$worldObj5.$isRemote && $this.$primaryEffect > 0) { - $var1 = ($this.$levels * 10 | 0) + 10 | 0; - $var3 = 0; - if ($this.$levels >= 4 && $this.$primaryEffect == $this.$secondaryEffect) - $var3 = 1; - $var7 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var7.$initialized) { - $var7_0 = new nms_AABBPool; - $var5 = new ju_ArrayList; - ju_AbstractCollection__init_0($var5); - $var5.$array1 = $rt_createArray(jl_Object, 10); - $var7_0.$listAABB = $var5; - $var7_0.$nextPoolIndex = 0; - $var7_0.$maxPoolIndex = 0; - $var7_0.$numCleans = 0; - $var7_0.$maxNumCleans = 300; - $var7_0.$numEntriesToRemove = 2000; - $var7.$value7 = $var7_0; - $var7.$initialized = 1; - } - $var5 = nms_AABBPool_getAABB($var7.$value7, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0, $this.$xCoord0 + 1 | 0, $this.$yCoord0 + 1 | 0, $this.$zCoord0 + 1 | 0); - var$6 = $var5.$minX - $var1; - var$7 = $var5.$minY - $var1; - var$8 = $var5.$minZ - $var1; - var$9 = $var5.$maxX + $var1; - var$10 = $var5.$maxY + $var1; - $var1 = $var5.$maxZ + $var1; - $var5 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var5.$initialized) { - $var7 = new nms_AABBPool; - $var7_0 = new ju_ArrayList; - ju_AbstractList__init_0($var7_0); - $var7_0.$array1 = $rt_createArray(jl_Object, 10); - $var7.$listAABB = $var7_0; - $var7.$nextPoolIndex = 0; - $var7.$maxPoolIndex = 0; - $var7.$numCleans = 0; - $var7.$maxNumCleans = 300; - $var7.$numEntriesToRemove = 2000; - $var5.$value7 = $var7; - $var5.$initialized = 1; - } - $var4 = nms_AABBPool_getAABB($var5.$value7, var$6, var$7, var$8, var$9, var$10, $var1); - $var4.$maxY = 256.0; - $var5 = nms_World_selectEntitiesWithinAABB($this.$worldObj5, $rt_cls(nms_EntityPlayer), $var4, null); - $var6$index = 0; - var$13 = $var5.$modCount0; - var$14 = $var5.$size2(); - b: { - while (true) { - if (!($var6$index >= var$14 ? 0 : 1)) - break b; - if (var$13 < $var5.$modCount0) - break; - $var6$index_0 = $var6$index + 1 | 0; - $var7 = $var5.$get4($var6$index); - $var7_0 = new nms_PotionEffect; - $var7_0.$potionID = $this.$primaryEffect; - $var7_0.$duration = 180; - $var7_0.$amplifier = $var3; - $var7_0.$isAmbient = 1; - nms_EntityLiving_addPotionEffect($var7, $var7_0); - $var6$index = $var6$index_0; - } - $var5 = new ju_ConcurrentModificationException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); - } - if ($this.$levels >= 4 && $this.$primaryEffect != $this.$secondaryEffect && $this.$secondaryEffect > 0) { - $var7 = new ju_AbstractList$1; - $var7.$this$0 = $var5; - $var7.$modCount = $var7.$this$0.$modCount0; - $var7.$size1 = $var7.$this$0.$size2(); - $var7.$removeIndex = (-1); - while (true) { - if (!ju_AbstractList$1_hasNext($var7)) - break a; - if ($var7.$modCount < $var7.$this$0.$modCount0) { - $var5 = new ju_ConcurrentModificationException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); - } - $var7.$removeIndex = $var7.$index; - $var5 = $var7.$this$0; - $var3 = $var7.$index; - $var7.$index = $var3 + 1 | 0; - $var7_0 = $var5.$get4($var3); - $var5 = new nms_PotionEffect; - $var5.$potionID = $this.$secondaryEffect; - $var5.$duration = 180; - $var5.$amplifier = 0; - $var5.$isAmbient = 1; - nms_EntityLiving_addPotionEffect($var7_0, $var5); - } - } - } - } -}; -$java.nms_TileEntityBeacon_updateState = function($this) { - var var$1, $var1, $var1_0, $var2, $var4, $var3, $var5, $var6; - var$1 = $this.$worldObj5; - $var1 = $this.$xCoord0; - $var1_0 = $this.$yCoord0 + 1 | 0; - $var2 = $this.$zCoord0; - $var4 = $var1 >> 4; - $var3 = $var2 >> 4; - if (!nms_ChunkProviderClient_provideChunk(var$1.$chunkProvider, $var4, $var3).$canBlockSeeTheSky($var1 & 15, $var1_0, $var2 & 15)) { - $this.$isBeaconActive = 0; - $this.$levels = 0; - } else { - $this.$isBeaconActive = 1; - $this.$levels = 0; - $var1_0 = 1; - a: { - while (true) { - if ($var1_0 > 4) - break a; - $var2 = $this.$yCoord0 - $var1_0 | 0; - if ($var2 < 0) - break a; - $var3 = 1; - $var4 = $this.$xCoord0 - $var1_0 | 0; - while ($var4 <= ($this.$xCoord0 + $var1_0 | 0) && $var3) { - $var5 = $this.$zCoord0 - $var1_0 | 0; - b: { - while ($var5 <= ($this.$zCoord0 + $var1_0 | 0)) { - $var6 = nms_World_getBlockId($this.$worldObj5, $var4, $var2, $var5); - nms_Block_$callClinit(); - if ($var6 != nms_Block_blockEmerald.$blockID && $var6 != nms_Block_blockGold.$blockID && $var6 != nms_Block_blockDiamond.$blockID && $var6 != nms_Block_blockIron.$blockID) { - $var3 = 0; - break b; - } - $var5 = $var5 + 1 | 0; - } - } - $var4 = $var4 + 1 | 0; - } - if (!$var3) - break; - $var1 = $var1_0 + 1 | 0; - $this.$levels = $var1_0; - $var1_0 = $var1; - } - } - if (!$this.$levels) - $this.$isBeaconActive = 0; - } -}; -$java.nms_TileEntityBeacon_func_82125_v_ = function($this) { - var $var1; - if (!$this.$isBeaconActive) - return 0.0; - $var1 = Long_sub($this.$worldObj5.$worldInfo.$totalTime, $this.$field_82137_b).lo; - $this.$field_82137_b = $this.$worldObj5.$worldInfo.$totalTime; - if ($var1 > 1) { - $this.$field_82138_c = $this.$field_82138_c - $var1 / 40.0; - if ($this.$field_82138_c < 0.0) - $this.$field_82138_c = 0.0; - } - $this.$field_82138_c = $this.$field_82138_c + 0.02500000037252903; - if ($this.$field_82138_c > 1.0) - $this.$field_82138_c = 1.0; - return $this.$field_82138_c; -}; -$java.nms_TileEntityBeacon_getPrimaryEffect = function($this) { - return $this.$primaryEffect; -}; -$java.nms_TileEntityBeacon_getSecondaryEffect = function($this) { - return $this.$secondaryEffect; -}; -$java.nms_TileEntityBeacon_getLevels = function($this) { - return $this.$levels; -}; -$java.nms_TileEntityBeacon_setLevels = function($this, $par1) { - $this.$levels = $par1; -}; -$java.nms_TileEntityBeacon_setPrimaryEffect = function($this, $par1) { - var $var2, $var3, $var4, $var5; - $this.$primaryEffect = 0; - $var2 = 0; - while ($var2 < $this.$levels && $var2 < 3) { - $var3 = $java.nms_TileEntityBeacon_effectsList.data[$var2].data; - $var4 = $var3.length; - $var5 = 0; - while ($var5 < $var4) { - if ($var3[$var5].$id3 == $par1) { - $this.$primaryEffect = $par1; - return; - } - $var5 = $var5 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } -}; -$java.nms_TileEntityBeacon_setSecondaryEffect = function($this, $par1) { - var $var2, $var3, $var4, $var5; - a: { - $this.$secondaryEffect = 0; - if ($this.$levels >= 4) { - $var2 = 0; - while (true) { - if ($var2 >= 4) - break a; - $var3 = $java.nms_TileEntityBeacon_effectsList.data[$var2].data; - $var4 = $var3.length; - $var5 = 0; - while ($var5 < $var4) { - if ($var3[$var5].$id3 == $par1) { - $this.$secondaryEffect = $par1; - return; - } - $var5 = $var5 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } - } - } -}; -$java.nms_TileEntityBeacon_getMaxRenderDistanceSquared = function($this) { - return 65536.0; -}; -$java.nms_TileEntityBeacon_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$zCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(2668)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2668), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$6 = jl_String_hashCode($rt_s(2668)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2668), var$6 & (var$2.$elementData.data.length - 1 | 0), var$6); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$primaryEffect = var$4; - $this.$secondaryEffect = nms_NBTTagCompound_getInteger($par1NBTTagCompound, $rt_s(2669)); - $this.$levels = nms_NBTTagCompound_getInteger($par1NBTTagCompound, $rt_s(2670)); -}; -$java.nms_TileEntityBeacon_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - var$2 = $this.$primaryEffect; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagInt; - var$4.$name0 = $rt_s(2668); - var$4.$data2 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2668), var$4); - var$2 = $this.$secondaryEffect; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagInt; - var$4.$name0 = $rt_s(2669); - var$4.$data2 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2669), var$4); - var$2 = $this.$levels; - var$4 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagInt; - $par1NBTTagCompound.$name0 = $rt_s(2670); - $par1NBTTagCompound.$data2 = var$2; - ju_HashMap_putImpl(var$4, $rt_s(2670), $par1NBTTagCompound); -}; -$java.nms_TileEntityBeacon_getSizeInventory = function($this) { - return 1; -}; -$java.nms_TileEntityBeacon_getStackInSlot = function($this, $par1) { - return $par1 ? null : $this.$payment; -}; -$java.nms_TileEntityBeacon_decrStackSize = function($this, $par1, $par2) { - var $var3, var$4; - if (!$par1 && $this.$payment !== null) { - if ($par2 >= $this.$payment.$stackSize) { - $var3 = $this.$payment; - $this.$payment = null; - return $var3; - } - $var3 = $this.$payment; - $var3.$stackSize = $var3.$stackSize - $par2 | 0; - $var3 = new nms_ItemStack; - $par1 = $this.$payment.$itemID0; - var$4 = $this.$payment.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = $par1; - $var3.$stackSize = $par2; - $var3.$itemDamage = var$4; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - return $var3; - } - return null; -}; -$java.nms_TileEntityBeacon_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - if (!$par1) - $this.$payment = $par2ItemStack; -}; -$java.nms_TileEntityBeacon_func_94047_a = function($this, $par1Str) { - $this.$field_94048_i = $par1Str; -}; -$java.nms_TileEntityBeacon_getInventoryStackLimit = function($this) { - return 1; -}; -$java.nms_TileEntityBeacon_isUseableByPlayer = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - if (nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0) !== $this) - var$2 = 0; - else { - var$3 = $this.$xCoord0 + 0.5; - var$4 = $this.$yCoord0 + 0.5; - var$5 = $this.$zCoord0 + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -$java.nms_TileEntityBeacon_isStackValidForSlot = function($this, $par1, $par2ItemStack) { - $par1 = $par2ItemStack.$itemID0; - nms_Item_$callClinit(); - return $par1 != nms_Item_emerald.$itemID && $par2ItemStack.$itemID0 != nms_Item_diamond.$itemID && $par2ItemStack.$itemID0 != nms_Item_ingotGold.$itemID && $par2ItemStack.$itemID0 != nms_Item_ingotIron.$itemID ? 0 : 1; -}; -$java.nms_TileEntityBeacon__clinit_ = function() { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createArray($rt_arraycls(nms_Potion), 4); - var$2 = var$1.data; - var$3 = $rt_createArray(nms_Potion, 2); - var$4 = var$3.data; - var$4[0] = nms_Potion_moveSpeed; - var$4[1] = nms_Potion_digSpeed; - var$2[0] = var$3; - var$3 = $rt_createArray(nms_Potion, 2); - var$4 = var$3.data; - var$4[0] = nms_Potion_resistance; - var$4[1] = nms_Potion_jump; - var$2[1] = var$3; - var$3 = $rt_createArray(nms_Potion, 1); - var$3.data[0] = nms_Potion_damageBoost; - var$2[2] = var$3; - var$4 = $rt_createArray(nms_Potion, 1); - var$4.data[0] = nms_Potion_regeneration; - var$2[3] = var$4; - $java.nms_TileEntityBeacon_effectsList = var$1; -}; -function nms_TileEntityBeaconRenderer() { - $java.nms_TileEntitySpecialRenderer.call(this); -} -$java.nms_TileEntityBeaconRenderer_tex_beam = null; -$java.nms_TileEntityBeaconRenderer__init_ = function() { - var var_0 = new nms_TileEntityBeaconRenderer(); - nms_TileEntityBeaconRenderer__init_(var_0); - return var_0; -}; -function nms_TileEntityBeaconRenderer__init_($this) { - return; -} -$java.nms_TileEntityBeaconRenderer_renderTileEntityBeaconAt = function($this, $par1TileEntityBeacon, $par2, $par4, $par6, $par8) { - var $var9, $var10, $var11, $var12, var$10, var$11, $var14, $var20, $var18, $var24, $var22, $var32, $var26, $var28, $var34, $var30, $var40, $var42, $var15, $var17, $var44, $var37; - $var9 = $java.nms_TileEntityBeacon_func_82125_v_($par1TileEntityBeacon); - if ($var9 > 0.0) { - nlea_Tessellator_$callClinit(); - $var10 = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture($java.nms_TileEntityBeaconRenderer_tex_beam); - nleg_EaglerAdapterGL30_glTexParameteri(2, 72, 74); - nleg_EaglerAdapterGL30_glTexParameteri(2, 73, 74); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(46); - nleg_EaglerAdapterGL30_glDisable(16); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.depthMask(!!1); - nleg_EaglerAdapterGL30_glBlendFunc(42, 1); - $var11 = Long_toNumber($par1TileEntityBeacon.$worldObj5.$worldInfo.$totalTime) + $par8; - $par8 = -$var11; - $var12 = $par8 * 0.20000000298023224; - var$10 = $par8 * 0.10000000149011612; - var$11 = var$10 | 0; - if (var$10 < var$11) - var$11 = var$11 - 1 | 0; - $var12 = $var12 - var$11; - $var14 = $var11 * 0.025 * (-1.5); - nlea_Tessellator_startDrawing($var10, 98); - nlea_Tessellator_setColorRGBA($var10, 255, 255, 255, 32); - $var20 = $var14 + 2.356194490192345; - $var18 = 0.5 + jl_Math_cos($var20) * 0.2; - $var20 = 0.5 + jl_Math_sin($var20) * 0.2; - $var24 = $var14 + 0.7853981633974483; - $var22 = 0.5 + jl_Math_cos($var24) * 0.2; - $var24 = 0.5 + jl_Math_sin($var24) * 0.2; - $var32 = $var14 + 3.9269908169872414; - $var26 = 0.5 + jl_Math_cos($var32) * 0.2; - $var28 = 0.5 + jl_Math_sin($var32) * 0.2; - $var34 = $var14 + 5.497787143782138; - $var30 = 0.5 + jl_Math_cos($var34) * 0.2; - $var32 = 0.5 + jl_Math_sin($var34) * 0.2; - $var34 = 256.0 * $var9; - $var40 = (-1.0) + $var12; - $var42 = $var34 * 2.5 + $var40; - $var18 = $par2 + $var18; - $var14 = $par4 + $var34; - $var20 = $par6 + $var20; - $var10.$hasTexture = 1; - $var10.$textureU = 1.0; - $var11 = $var42; - $var10.$textureV = $var11; - nlea_Tessellator_addVertex($var10, $var18, $var14, $var20); - $var10.$hasTexture = 1; - $var10.$textureU = 1.0; - $var9 = $var40; - $var10.$textureV = $var9; - nlea_Tessellator_addVertex($var10, $var18, $par4, $var20); - $var15 = $par2 + $var22; - $var17 = $par6 + $var24; - $var10.$hasTexture = 1; - $var10.$textureU = 0.0; - $var10.$textureV = $var9; - nlea_Tessellator_addVertex($var10, $var15, $par4, $var17); - $var10.$hasTexture = 1; - $var10.$textureU = 0.0; - $var10.$textureV = $var11; - nlea_Tessellator_addVertex($var10, $var15, $var14, $var17); - $var22 = $par2 + $var30; - $var24 = $par6 + $var32; - $var10.$hasTexture = 1; - $var10.$textureU = 1.0; - $var10.$textureV = $var11; - nlea_Tessellator_addVertex($var10, $var22, $var14, $var24); - $var10.$hasTexture = 1; - $var10.$textureU = 1.0; - $var10.$textureV = $var9; - nlea_Tessellator_addVertex($var10, $var22, $par4, $var24); - $var32 = $par2 + $var26; - $var44 = $par6 + $var28; - $var10.$hasTexture = 1; - $var10.$textureU = 0.0; - $var10.$textureV = $var9; - nlea_Tessellator_addVertex($var10, $var32, $par4, $var44); - $var10.$hasTexture = 1; - $var10.$textureU = 0.0; - $var10.$textureV = $var11; - nlea_Tessellator_addVertex($var10, $var32, $var14, $var44); - $var10.$hasTexture = 1; - $var10.$textureU = 1.0; - $var10.$textureV = $var11; - nlea_Tessellator_addVertex($var10, $var15, $var14, $var17); - $var10.$hasTexture = 1; - $var10.$textureU = 1.0; - $var10.$textureV = $var9; - nlea_Tessellator_addVertex($var10, $var15, $par4, $var17); - $var10.$hasTexture = 1; - $var10.$textureU = 0.0; - $var10.$textureV = $var9; - nlea_Tessellator_addVertex($var10, $var22, $par4, $var24); - nlea_Tessellator_setTextureUV($var10, 0.0, $var42); - nlea_Tessellator_addVertex($var10, $var22, $var14, $var24); - nlea_Tessellator_setTextureUV($var10, 1.0, $var42); - nlea_Tessellator_addVertex($var10, $var32, $var14, $var44); - nlea_Tessellator_setTextureUV($var10, 1.0, $var40); - nlea_Tessellator_addVertex($var10, $var32, $par4, $var44); - nlea_Tessellator_addVertexWithUV($var10, $var18, $par4, $var20, 0.0, $var40); - nlea_Tessellator_addVertexWithUV($var10, $var18, $var14, $var20, 0.0, $var42); - nlea_Tessellator_draw($var10); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glDepthMask(0); - nlea_Tessellator_startDrawingQuads($var10); - nlea_Tessellator_setColorRGBA($var10, 255, 255, 255, 32); - $var37 = $var34 + $var40; - $var18 = $par2 + 0.2; - $var20 = $par6 + 0.2; - nlea_Tessellator_addVertexWithUV($var10, $var18, $var14, $var20, 1.0, $var37); - nlea_Tessellator_addVertexWithUV($var10, $var18, $par4, $var20, 1.0, $var40); - $par2 = $par2 + 0.8; - nlea_Tessellator_addVertexWithUV($var10, $par2, $par4, $var20, 0.0, $var40); - nlea_Tessellator_addVertexWithUV($var10, $par2, $var14, $var20, 0.0, $var37); - $par6 = $par6 + 0.8; - nlea_Tessellator_addVertexWithUV($var10, $par2, $var14, $par6, 1.0, $var37); - nlea_Tessellator_addVertexWithUV($var10, $par2, $par4, $par6, 1.0, $var40); - nlea_Tessellator_addVertexWithUV($var10, $var18, $par4, $par6, 0.0, $var40); - nlea_Tessellator_addVertexWithUV($var10, $var18, $var14, $par6, 0.0, $var37); - nlea_Tessellator_addVertexWithUV($var10, $par2, $var14, $var20, 1.0, $var37); - nlea_Tessellator_addVertexWithUV($var10, $par2, $par4, $var20, 1.0, $var40); - nlea_Tessellator_addVertexWithUV($var10, $par2, $par4, $par6, 0.0, $var40); - nlea_Tessellator_addVertexWithUV($var10, $par2, $var14, $par6, 0.0, $var37); - nlea_Tessellator_addVertexWithUV($var10, $var18, $var14, $par6, 1.0, $var37); - nlea_Tessellator_addVertexWithUV($var10, $var18, $par4, $par6, 1.0, $var40); - nlea_Tessellator_addVertexWithUV($var10, $var18, $par4, $var20, 0.0, $var40); - nlea_Tessellator_addVertexWithUV($var10, $var18, $var14, $var20, 0.0, $var37); - nlea_Tessellator_draw($var10); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glDepthMask(1); - } -}; -$java.nms_TileEntityBeaconRenderer_renderTileEntityAt = function($this, $par1TileEntity, $par2, $par4, $par6, $par8) { - $java.nms_TileEntityBeaconRenderer_renderTileEntityBeaconAt($this, $par1TileEntity, $par2, $par4, $par6, $par8); -}; -function nms_TileEntityBeaconRenderer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2671); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntityBeaconRenderer_tex_beam = var$1; -} -function nms_TileEntitySkullRenderer() { - var a = this; $java.nms_TileEntitySpecialRenderer.call(a); - a.$field_82396_c = null; - a.$field_82395_d = null; -} -var nms_TileEntitySkullRenderer_skullRenderer = null; -$java.nms_TileEntitySkullRenderer_tex_skeleton = null; -$java.nms_TileEntitySkullRenderer_tex_skeleton_wither = null; -$java.nms_TileEntitySkullRenderer_tex_zombie = null; -$java.nms_TileEntitySkullRenderer_tex_character = null; -$java.nms_TileEntitySkullRenderer_tex_creeper = null; -$java.nms_TileEntitySkullRenderer__init_ = function() { - var var_0 = new nms_TileEntitySkullRenderer(); - nms_TileEntitySkullRenderer__init_(var_0); - return var_0; -}; -function nms_TileEntitySkullRenderer__init_($this) { - $this.$field_82396_c = nms_ModelSkeletonHead__init_0(0, 0, 64, 32); - $this.$field_82395_d = nms_ModelSkeletonHead__init_0(0, 0, 64, 64); -} -$java.nms_TileEntitySkullRenderer_renderTileEntitySkullAt = function($this, $par1TileEntitySkull, $par2, $par4, $par6, $par8) { - var var$6, var$7; - $par8 = $par2; - var$6 = $par4; - var$7 = $par6; - if ($par1TileEntitySkull.$blockMetadata == (-1)) - $par1TileEntitySkull.$blockMetadata = nms_World_getBlockMetadata($par1TileEntitySkull.$worldObj5, $par1TileEntitySkull.$xCoord0, $par1TileEntitySkull.$yCoord0, $par1TileEntitySkull.$zCoord0); - nms_TileEntitySkullRenderer_func_82393_a($this, $par8, var$6, var$7, $par1TileEntitySkull.$blockMetadata & 7, ($par1TileEntitySkull.$skullRotation * 360 | 0) / 16.0, $par1TileEntitySkull.$skullType, $par1TileEntitySkull.$extraType); -}; -$java.nms_TileEntitySkullRenderer_setTileEntityRenderer = function($this, $par1TileEntityRenderer) { - $this.$tileEntityRenderer = $par1TileEntityRenderer; - nms_TileEntitySkullRenderer_skullRenderer = $this; -}; -function nms_TileEntitySkullRenderer_func_82393_a($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Str) { - var $var8, $var10, var$10, var$11, var$12; - a: { - $var8 = $this.$field_82396_c; - switch ($par6) { - case 0: - break; - case 1: - nle_TextureLocation_bindTexture($java.nms_TileEntitySkullRenderer_tex_skeleton_wither); - break a; - case 2: - nle_TextureLocation_bindTexture($java.nms_TileEntitySkullRenderer_tex_zombie); - $var8 = $this.$field_82395_d; - break a; - case 3: - nle_TextureLocation_bindTexture($java.nms_TileEntitySkullRenderer_tex_character); - break a; - case 4: - nle_TextureLocation_bindTexture($java.nms_TileEntitySkullRenderer_tex_creeper); - break a; - default: - } - nle_TextureLocation_bindTexture($java.nms_TileEntitySkullRenderer_tex_skeleton); - } - b: { - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glDisable(46); - if ($par4 == 1) { - $var10 = $par1 + 0.5; - $par1 = $par3 + 0.5; - $par7Str = nleg_EaglerAdapterGL30_deevis; - $par7Str.$x = $var10; - $par7Str.$y = $par2; - $par7Str.$z = $par1; - var$10 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$10, var$10); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - $par7Str = new jl_StringBuilder; - $par7Str.$buffer = $rt_createCharArray(16); - var$10.$sb = $par7Str; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - $par7Str = new jnci_UTF8Charset; - jnc_Charset__init_($par7Str, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = $par7Str; - jl_System_errCache = var$10; - } - var$11 = jl_System_errCache; - var$10 = var$11.$sb; - jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(220)); - $par6 = var$10.$length; - jl_AbstractStringBuilder_insertSpace(var$10, $par6, $par6 + 1 | 0); - var$10.$buffer.data[$par6] = 10; - ji_PrintStream_printSB(var$11); - } - } else { - switch ($par4) { - case 2: - $par1 = $par1 + 0.5; - $par2 = $par2 + 0.25; - $par3 = $par3 + 0.7400000095367432; - $par7Str = nleg_EaglerAdapterGL30_deevis; - $par7Str.$x = $par1; - $par7Str.$y = $par2; - $par7Str.$z = $par3; - $par7Str = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par7Str, $par7Str); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - $par7Str = new ji_PrintStream; - $par7Str.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - $par7Str.$sb = var$10; - $par7Str.$buffer0 = $rt_createCharArray(32); - $par7Str.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - $par7Str.$charset = var$10; - jl_System_errCache = $par7Str; - } - var$10 = jl_System_errCache; - $par7Str = var$10.$sb; - jl_AbstractStringBuilder_insert($par7Str, $par7Str.$length, $rt_s(220)); - var$12 = $par7Str.$length; - jl_AbstractStringBuilder_insertSpace($par7Str, var$12, var$12 + 1 | 0); - $par7Str.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$10); - } - break b; - case 3: - $par1 = $par1 + 0.5; - $par2 = $par2 + 0.25; - $par3 = $par3 + 0.25999999046325684; - $par7Str = nleg_EaglerAdapterGL30_deevis; - $par7Str.$x = $par1; - $par7Str.$y = $par2; - $par7Str.$z = $par3; - $par7Str = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par7Str, $par7Str); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$10 = new ji_PrintStream; - var$10.$out = new jl_ConsoleOutputStreamStderr; - $par7Str = new jl_StringBuilder; - $par7Str.$buffer = $rt_createCharArray(16); - var$10.$sb = $par7Str; - var$10.$buffer0 = $rt_createCharArray(32); - var$10.$autoFlush = 0; - $par7Str = new jnci_UTF8Charset; - jnc_Charset__init_($par7Str, $rt_s(2), $rt_createArray(jl_String, 0)); - var$10.$charset = $par7Str; - jl_System_errCache = var$10; - } - var$10 = jl_System_errCache; - $par7Str = var$10.$sb; - jl_AbstractStringBuilder_insert($par7Str, $par7Str.$length, $rt_s(220)); - var$12 = $par7Str.$length; - jl_AbstractStringBuilder_insertSpace($par7Str, var$12, var$12 + 1 | 0); - $par7Str.$buffer.data[var$12] = 10; - ji_PrintStream_printSB(var$10); - } - $par5 = 180.0; - break b; - case 4: - $par1 = $par1 + 0.7400000095367432; - $par2 = $par2 + 0.25; - $par3 = $par3 + 0.5; - $par7Str = nleg_EaglerAdapterGL30_deevis; - $par7Str.$x = $par1; - $par7Str.$y = $par2; - $par7Str.$z = $par3; - $par7Str = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par7Str, $par7Str); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - $par5 = 270.0; - break b; - case 5: - break; - default: - } - nleg_EaglerAdapterGL30_glTranslatef($par1 + 0.25999999046325684, $par2 + 0.25, $par3 + 0.5); - $par5 = 90.0; - } - } - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glScalef((-1.0), (-1.0), 1.0); - nleg_EaglerAdapterGL30_glEnable(6); - nms_ModelSkeletonHead_setRotationAngles($var8, 0.0, 0.0, 0.0, $par5, 0.0, 0.0625, null); - nms_ModelRenderer_render($var8.$skeletonHead, 0.0625); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -$java.nms_TileEntitySkullRenderer_renderTileEntityAt = function($this, $par1TileEntity, $par2, $par4, $par6, $par8) { - $java.nms_TileEntitySkullRenderer_renderTileEntitySkullAt($this, $par1TileEntity, $par2, $par4, $par6, $par8); -}; -function nms_TileEntitySkullRenderer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1006); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntitySkullRenderer_tex_skeleton = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1270); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntitySkullRenderer_tex_skeleton_wither = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1284); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntitySkullRenderer_tex_zombie = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1297); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntitySkullRenderer_tex_character = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(1248); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_TileEntitySkullRenderer_tex_creeper = var$1; -} -function otcit_FloatAnalyzer$Result() { - var a = this; jl_Object.call(a); - a.$mantissa = 0; - a.$exponent = 0; - a.$sign = 0; -} -$java.otcit_FloatAnalyzer$Result__init_ = function() { - var var_0 = new otcit_FloatAnalyzer$Result(); - otcit_FloatAnalyzer$Result__init_(var_0); - return var_0; -}; -function otcit_FloatAnalyzer$Result__init_($this) { - return; -} -function nms_ModelSign() { - var a = this; nms_ModelBase.call(a); - a.$signBoard = null; - a.$signStick = null; -} -$java.nms_ModelSign__init_ = function() { - var var_0 = new nms_ModelSign(); - nms_ModelSign__init_(var_0); - return var_0; -}; -function nms_ModelSign__init_($this) { - var var$1; - nms_ModelBase__init_0($this); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - $this.$signBoard = var$1; - var$1 = $this.$signBoard; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-12.0), (-14.0), (-1.0), 24, 12, 2, 0.0)); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 14; - $this.$signStick = var$1; - var$1 = $this.$signStick; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), (-2.0), (-1.0), 2, 14, 2, 0.0)); -} -$java.nms_ModelSign_renderSign = function($this) { - nms_ModelRenderer_render($this.$signBoard, 0.0625); - nms_ModelRenderer_render($this.$signStick, 0.0625); -}; -function nms_ModelChest() { - var a = this; nms_ModelBase.call(a); - a.$chestLid = null; - a.$chestBelow = null; - a.$chestKnob = null; -} -$java.nms_ModelChest__init_ = function() { - var var_0 = new nms_ModelChest(); - nms_ModelChest__init_(var_0); - return var_0; -}; -function nms_ModelChest__init_($this) { - var var$1; - nms_ModelBase__init_0($this); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - var$1.$textureWidth0 = 64.0; - var$1.$textureHeight0 = 64.0; - $this.$chestLid = var$1; - var$1 = $this.$chestLid; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, (-5.0), (-14.0), 14, 5, 14, 0.0)); - $this.$chestLid.$rotationPointX = 1.0; - $this.$chestLid.$rotationPointY = 7.0; - $this.$chestLid.$rotationPointZ = 15.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - var$1.$textureWidth0 = 64.0; - var$1.$textureHeight0 = 64.0; - $this.$chestKnob = var$1; - var$1 = $this.$chestKnob; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), (-2.0), (-15.0), 2, 4, 1, 0.0)); - $this.$chestKnob.$rotationPointX = 8.0; - $this.$chestKnob.$rotationPointY = 7.0; - $this.$chestKnob.$rotationPointZ = 15.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 19; - var$1.$textureWidth0 = 64.0; - var$1.$textureHeight0 = 64.0; - $this.$chestBelow = var$1; - var$1 = $this.$chestBelow; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, 0.0, 0.0, 14, 10, 14, 0.0)); - $this.$chestBelow.$rotationPointX = 1.0; - $this.$chestBelow.$rotationPointY = 6.0; - $this.$chestBelow.$rotationPointZ = 1.0; -} -$java.nms_ModelChest_renderAll = function($this) { - $this.$chestKnob.$rotateAngleX = $this.$chestLid.$rotateAngleX; - nms_ModelRenderer_render($this.$chestLid, 0.0625); - nms_ModelRenderer_render($this.$chestKnob, 0.0625); - nms_ModelRenderer_render($this.$chestBelow, 0.0625); -}; -function nms_ModelLargeChest() { - nms_ModelChest.call(this); -} -$java.nms_ModelLargeChest__init_ = function() { - var var_0 = new nms_ModelLargeChest(); - nms_ModelLargeChest__init_(var_0); - return var_0; -}; -function nms_ModelLargeChest__init_($this) { - var var$1; - nms_ModelChest__init_($this); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - var$1.$textureWidth0 = 128.0; - var$1.$textureHeight0 = 64.0; - $this.$chestLid = var$1; - var$1 = $this.$chestLid; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, (-5.0), (-14.0), 30, 5, 14, 0.0)); - $this.$chestLid.$rotationPointX = 1.0; - $this.$chestLid.$rotationPointY = 7.0; - $this.$chestLid.$rotationPointZ = 15.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - var$1.$textureWidth0 = 128.0; - var$1.$textureHeight0 = 64.0; - $this.$chestKnob = var$1; - var$1 = $this.$chestKnob; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), (-2.0), (-15.0), 2, 4, 1, 0.0)); - $this.$chestKnob.$rotationPointX = 16.0; - $this.$chestKnob.$rotationPointY = 7.0; - $this.$chestKnob.$rotationPointZ = 15.0; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 19; - var$1.$textureWidth0 = 128.0; - var$1.$textureHeight0 = 64.0; - $this.$chestBelow = var$1; - var$1 = $this.$chestBelow; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, 0.0, 0.0, 30, 10, 14, 0.0)); - $this.$chestBelow.$rotationPointX = 1.0; - $this.$chestBelow.$rotationPointY = 6.0; - $this.$chestBelow.$rotationPointZ = 1.0; -} -function nms_ModelBook() { - var a = this; nms_ModelBase.call(a); - a.$coverRight = null; - a.$coverLeft = null; - a.$pagesRight = null; - a.$pagesLeft = null; - a.$flippingPageRight = null; - a.$flippingPageLeft = null; - a.$bookSpine = null; -} -$java.nms_ModelBook__init_ = function() { - var var_0 = new nms_ModelBook(); - nms_ModelBook__init_(var_0); - return var_0; -}; -function nms_ModelBook__init_($this) { - var var$1; - nms_ModelBase__init_0($this); - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 0; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-6.0), (-5.0), 0.0, 6, 10, 0, 0.0)); - $this.$coverRight = var$1; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 16; - var$1.$textureOffsetY0 = 0; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, (-5.0), 0.0, 6, 10, 0, 0.0)); - $this.$coverLeft = var$1; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 0; - var$1.$textureOffsetY0 = 10; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, (-4.0), (-0.9900000095367432), 5, 8, 1, 0.0)); - $this.$pagesRight = var$1; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 12; - var$1.$textureOffsetY0 = 10; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, (-4.0), (-0.009999999776482582), 5, 8, 1, 0.0)); - $this.$pagesLeft = var$1; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 24; - var$1.$textureOffsetY0 = 10; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, (-4.0), 0.0, 5, 8, 0, 0.0)); - $this.$flippingPageRight = var$1; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 24; - var$1.$textureOffsetY0 = 10; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, 0.0, (-4.0), 0.0, 5, 8, 0, 0.0)); - $this.$flippingPageLeft = var$1; - var$1 = nms_ModelRenderer__init_($this, null); - var$1.$textureOffsetX0 = 12; - var$1.$textureOffsetY0 = 0; - ju_ArrayList_add(var$1.$cubeList, nms_ModelBox__init_(var$1, var$1.$textureOffsetX0, var$1.$textureOffsetY0, (-1.0), (-5.0), 0.0, 2, 10, 0, 0.0)); - $this.$bookSpine = var$1; - var$1 = $this.$coverRight; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 0.0; - var$1.$rotationPointZ = (-1.0); - var$1 = $this.$coverLeft; - var$1.$rotationPointX = 0.0; - var$1.$rotationPointY = 0.0; - var$1.$rotationPointZ = 1.0; - $this.$bookSpine.$rotateAngleY = 1.5707963705062866; -} -$java.nms_ModelBook_render = function($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - $java.nms_ModelBook_setRotationAngles($this, $par2, $par3, $par4, $par5, $par6, $par7, $par1Entity); - nms_ModelRenderer_render($this.$coverRight, $par7); - nms_ModelRenderer_render($this.$coverLeft, $par7); - nms_ModelRenderer_render($this.$bookSpine, $par7); - nms_ModelRenderer_render($this.$pagesRight, $par7); - nms_ModelRenderer_render($this.$pagesLeft, $par7); - nms_ModelRenderer_render($this.$flippingPageRight, $par7); - nms_ModelRenderer_render($this.$flippingPageLeft, $par7); -}; -$java.nms_ModelBook_setRotationAngles = function($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7Entity) { - var $var8, var$9, var$10; - $par1 = $par1 * 0.019999999552965164; - $var8 = (nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 | 0) & 65535] * 0.10000000149011612 + 1.25) * $par4; - $this.$coverRight.$rotateAngleY = 3.1415927410125732 + $var8; - $par7Entity = $this.$coverLeft; - $par1 = -$var8; - $par7Entity.$rotateAngleY = $par1; - $this.$pagesRight.$rotateAngleY = $var8; - $this.$pagesLeft.$rotateAngleY = $par1; - $par7Entity = $this.$flippingPageRight; - $par1 = $var8 * 2.0; - $par7Entity.$rotateAngleY = $var8 - $par1 * $par2; - $this.$flippingPageLeft.$rotateAngleY = $var8 - $par1 * $par3; - $par7Entity = $this.$pagesRight; - var$9 = nms_MathHelper_SIN_TABLE.data; - var$10 = ($var8 * 10430.3779296875 | 0) & 65535; - $par7Entity.$rotationPointX = var$9[var$10]; - $this.$pagesLeft.$rotationPointX = nms_MathHelper_SIN_TABLE.data[var$10]; - $this.$flippingPageRight.$rotationPointX = nms_MathHelper_SIN_TABLE.data[var$10]; - $this.$flippingPageLeft.$rotationPointX = nms_MathHelper_SIN_TABLE.data[var$10]; -}; -function jnci_BufferedEncoder$Controller() { - var a = this; jl_Object.call(a); - a.$in1 = null; - a.$out2 = null; - a.$inPosition = 0; - a.$outPosition = 0; -} -$java.jnci_BufferedEncoder$Controller_hasMoreInput = function($this) { - var var$1; - var$1 = $this.$in1; - return var$1.$position >= var$1.$limit ? 0 : 1; -}; -$java.jnci_BufferedEncoder$Controller_hasMoreOutput = function($this, $sz) { - var var$2; - var$2 = $this.$out2; - return (var$2.$limit - var$2.$position | 0) < $sz ? 0 : 1; -}; -$java.jnci_BufferedEncoder$Controller_setInPosition = function($this, $inPosition) { - $this.$inPosition = $inPosition; -}; -$java.jnci_BufferedEncoder$Controller_setOutPosition = function($this, $outPosition) { - $this.$outPosition = $outPosition; -}; -function jnc_BufferUnderflowException() { - jl_RuntimeException.call(this); -} -$java.jnc_BufferUnderflowException__init_ = function() { - var var_0 = new jnc_BufferUnderflowException(); - jnc_BufferUnderflowException__init_(var_0); - return var_0; -}; -function jnc_BufferUnderflowException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jnc_BufferOverflowException() { - jl_RuntimeException.call(this); -} -$java.jnc_BufferOverflowException__init_ = function() { - var var_0 = new jnc_BufferOverflowException(); - jnc_BufferOverflowException__init_(var_0); - return var_0; -}; -function jnc_BufferOverflowException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jnc_MalformedInputException() { - jnc_CharacterCodingException.call(this); - this.$length3 = 0; -} -$java.jnc_MalformedInputException_getMessage = function($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(2672)); - var$2 = $this.$length3; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jnc_UnmappableCharacterException() { - jnc_CharacterCodingException.call(this); - this.$length4 = 0; -} -$java.jnc_UnmappableCharacterException_getMessage = function($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(2673)); - var$2 = $this.$length4; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -function jl_StrictMath() { - jl_Object.call(this); -} -$java.jl_StrictMath__init_ = function() { - var var_0 = new jl_StrictMath(); - jl_StrictMath__init_(var_0); - return var_0; -}; -function jl_StrictMath__init_($this) { - return; -} -function nms_Chunk() { - var a = this; jl_Object.call(a); - a.$storageArrays = null; - a.$blockBiomeArray = null; - a.$precipitationHeightMap = null; - a.$updateSkylightColumns = null; - a.$isChunkLoaded = 0; - a.$worldObj7 = null; - a.$heightMap = null; - a.$xPosition16 = 0; - a.$zPosition15 = 0; - a.$isGapLightingUpdated = 0; - a.$chunkTileEntityMap = null; - a.$entityLists = null; - a.$isTerrainPopulated = 0; - a.$isModified = 0; - a.$hasEntities = 0; - a.$lastSaveTime = Long_ZERO; - a.$sendUpdates = 0; - a.$heightMapMinimum = 0; - a.$queuedLightChecks = 0; - a.$field_76653_p = 0; -} -$java.nms_Chunk_isLit = 0; -$java.nms_Chunk__init_ = function(var_0, var_1, var_2) { - var var_3 = new nms_Chunk(); - nms_Chunk__init_(var_3, var_0, var_1, var_2); - return var_3; -}; -function nms_Chunk__init_($this, $par1World, $par2, $par3) { - var $var4, var$5; - $this.$storageArrays = $rt_createArray($java.nms_ExtendedBlockStorage, 16); - $this.$blockBiomeArray = $rt_createByteArray(256); - $this.$precipitationHeightMap = $rt_createIntArray(256); - $this.$updateSkylightColumns = $rt_createBooleanArray(256); - $this.$isGapLightingUpdated = 0; - $this.$chunkTileEntityMap = ju_HashMap__init_1(16, 0.75); - $this.$isTerrainPopulated = 0; - $this.$isModified = 0; - $this.$hasEntities = 0; - $this.$lastSaveTime = Long_ZERO; - $this.$sendUpdates = 0; - $this.$heightMapMinimum = 0; - $this.$queuedLightChecks = 4096; - $this.$field_76653_p = 0; - $this.$entityLists = $rt_createArray(ju_List, 16); - $this.$worldObj7 = $par1World; - $this.$xPosition16 = $par2; - $this.$zPosition15 = $par3; - $this.$heightMap = $rt_createIntArray(256); - $var4 = 0; - while ($var4 < $this.$entityLists.data.length) { - var$5 = $this.$entityLists.data; - $par1World = new ju_ArrayList; - $par1World.$array1 = $rt_createArray(jl_Object, 10); - var$5[$var4] = $par1World; - $var4 = $var4 + 1 | 0; - } - var$5 = $this.$precipitationHeightMap; - ju_Arrays_fill0(var$5, 0, var$5.data.length, (-999)); - var$5 = $this.$blockBiomeArray; - ju_Arrays_fill2(var$5, 0, var$5.data.length, (-1)); -} -$java.nms_Chunk_getHeightValue = function($this, $par1, $par2) { - return $this.$heightMap.data[$par2 << 4 | $par1]; -}; -$java.nms_Chunk_getTopFilledSegment = function($this) { - var $var1; - $var1 = $this.$storageArrays.data.length - 1 | 0; - while ($var1 >= 0) { - if ($this.$storageArrays.data[$var1] !== null) - return $this.$storageArrays.data[$var1].$yBase; - $var1 = $var1 + (-1) | 0; - } - return 0; -}; -$java.nms_Chunk_generateHeightMap = function($this) { - var $var1, $var2, var$3, $var3, var$5, var$6, $var4, $var5; - $var1 = $java.nms_Chunk_getTopFilledSegment($this); - $var2 = 0; - var$3 = ($var1 + 16 | 0) - 1 | 0; - while ($var2 < 16) { - $var3 = 0; - while ($var3 < 16) { - var$5 = $this.$precipitationHeightMap.data; - var$6 = $var3 << 4; - var$5[$var2 + var$6 | 0] = (-999); - $var4 = var$3; - a: { - while (true) { - if ($var4 <= 0) - break a; - $var5 = $this.$getBlockID($var2, $var4 - 1 | 0, $var3); - nms_Block_$callClinit(); - if (nms_Block_lightOpacity.data[$var5]) - break; - $var4 = $var4 + (-1) | 0; - } - $this.$heightMap.data[var$6 | $var2] = $var4; - } - $var3 = $var3 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } - $this.$isModified = 1; -}; -$java.nms_Chunk_generateSkylightMap = function($this) { - var $var1, $var2, var$3, var$4, $var3, var$6, $var4, $var5, $var6, var$10, var$11, var$12, var$13, var$14, var$15; - $var1 = $java.nms_Chunk_getTopFilledSegment($this); - $this.$heightMapMinimum = 2147483647; - $var2 = 0; - var$3 = ($var1 + 16 | 0) - 1 | 0; - a: while (true) { - if ($var2 >= 16) { - $this.$isModified = 1; - var$4 = 0; - while (var$4 < 16) { - $var3 = 0; - while ($var3 < 16) { - $this.$updateSkylightColumns.data[var$4 + ($var3 * 16 | 0) | 0] = 1; - $this.$isGapLightingUpdated = 1; - $var3 = $var3 + 1 | 0; - } - var$4 = var$4 + 1 | 0; - } - return; - } - $var3 = 0; - while ($var3 < 16) { - var$6 = $this.$precipitationHeightMap.data; - var$4 = $var3 << 4; - var$6[$var2 + var$4 | 0] = (-999); - $var4 = var$3; - b: { - while (true) { - if ($var4 <= 0) - break b; - if ($this.$getBlockLightOpacity($var2, $var4 - 1 | 0, $var3)) - break; - $var4 = $var4 + (-1) | 0; - } - $this.$heightMap.data[var$4 | $var2] = $var4; - if ($var4 < $this.$heightMapMinimum) - $this.$heightMapMinimum = $var4; - } - c: { - if (!$this.$worldObj7.$provider.$hasNoSky) { - var$4 = 15; - $var5 = var$3; - while (true) { - var$4 = var$4 - $this.$getBlockLightOpacity($var2, $var5, $var3) | 0; - if (var$4 > 0) { - $var6 = $this.$storageArrays.data[$var5 >> 4]; - if ($var6 !== null) { - $var1 = $var5 & 15; - $java.nms_NibbleArray_set($var6.$skylightArray, $var2, $var1, $var3, var$4); - $var6 = $this.$worldObj7; - $var1 = ($this.$xPosition16 << 4) + $var2 | 0; - $var4 = ($this.$zPosition15 << 4) + $var3 | 0; - var$10 = 0; - var$11 = $var1 - 1 | 0; - var$12 = $var4 - 1 | 0; - var$13 = $var1 + 1 | 0; - var$14 = $var4 + 1 | 0; - while (var$10 < $var6.$worldAccesses.$size0) { - var$15 = $var6.$worldAccesses; - if (var$10 < 0) - break a; - if (var$10 >= var$15.$size0) - break a; - nms_RenderGlobal_markBlocksForUpdate(var$15.$array1.data[var$10], var$11, $var5 - 1 | 0, var$12, var$13, $var5 + 1 | 0, var$14); - var$10 = var$10 + 1 | 0; - } - } - } - $var5 = $var5 + (-1) | 0; - if ($var5 <= 0) - break c; - if (var$4 <= 0) - break c; - } - } - } - $var3 = $var3 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } - $var6 = new jl_IndexOutOfBoundsException; - $var6.$suppressionEnabled = 1; - $var6.$writableStackTrace = 1; - $rt_throw($var6); -}; -$java.nms_Chunk_updateSkylightNeighborHeight = function($this, $par1, $par2, $var5, $par4) { - if ($par4 > $var5 && nms_World_checkChunksExist($this.$worldObj7, $par1 - 16 | 0, (-16), $par2 - 16 | 0, $par1 + 16 | 0, 16, $par2 + 16 | 0)) { - while ($var5 < $par4) { - nms_World_updateLightByType($this.$worldObj7, nms_EnumSkyBlock_Sky, $par1, $var5, $par2); - $var5 = $var5 + 1 | 0; - } - $this.$isModified = 1; - } -}; -$java.nms_Chunk_relightBlock = function($this, $par1, $par2, $par3) { - var var$4, var$5, $var4, $var12, $var6, $var7, $var8, $var9, $var8_0, var$13, var$14, var$15, var$16, var$17, $var10; - var$4 = $this.$heightMap.data; - var$5 = $par3 << 4 | $par1; - $var4 = var$4[var$5] & 255; - if ($par2 <= $var4) - $par2 = $var4; - while ($par2 > 0 && !$this.$getBlockLightOpacity($par1, $par2 - 1 | 0, $par3)) { - $par2 = $par2 + (-1) | 0; - } - $var12 = $rt_compare($par2, $var4); - if ($var12) { - a: { - nms_World_markBlocksDirtyVertical($this.$worldObj7, $par1 + ($this.$xPosition16 * 16 | 0) | 0, $par3 + ($this.$zPosition15 * 16 | 0) | 0, $par2, $var4); - $this.$heightMap.data[var$5] = $par2; - $var6 = ($this.$xPosition16 * 16 | 0) + $par1 | 0; - $var7 = ($this.$zPosition15 * 16 | 0) + $par3 | 0; - if (!$this.$worldObj7.$provider.$hasNoSky) { - b: { - if ($var12 >= 0) { - $var8 = $var4; - c: while (true) { - if ($var8 >= $par2) - break b; - $var9 = $this.$storageArrays.data[$var8 >> 4]; - if ($var9 !== null) { - $var8_0 = $var8 & 15; - $java.nms_NibbleArray_set($var9.$skylightArray, $par1, $var8_0, $par3, 0); - $var9 = $this.$worldObj7; - $var8_0 = ($this.$xPosition16 << 4) + $par1 | 0; - $var12 = ($this.$zPosition15 << 4) + $par3 | 0; - var$13 = 0; - var$14 = $var8_0 - 1 | 0; - var$15 = $var12 - 1 | 0; - var$16 = $var8_0 + 1 | 0; - var$17 = $var12 + 1 | 0; - while (var$13 < $var9.$worldAccesses.$size0) { - $var10 = $var9.$worldAccesses; - if (var$13 < 0) - break c; - if (var$13 >= $var10.$size0) - break c; - nms_RenderGlobal_markBlocksForUpdate($var10.$array1.data[var$13], var$14, $var8 - 1 | 0, var$15, var$16, $var8 + 1 | 0, var$17); - var$13 = var$13 + 1 | 0; - } - } - $var8 = $var8 + 1 | 0; - } - $var9 = new jl_IndexOutOfBoundsException; - $var9.$suppressionEnabled = 1; - $var9.$writableStackTrace = 1; - $rt_throw($var9); - } - $var8_0 = $par2; - d: while (true) { - if ($var8_0 >= $var4) - break b; - $var9 = $this.$storageArrays.data[$var8_0 >> 4]; - if ($var9 !== null) { - $var12 = $var8_0 & 15; - $java.nms_NibbleArray_set($var9.$skylightArray, $par1, $var12, $par3, 15); - $var9 = $this.$worldObj7; - $var12 = ($this.$xPosition16 << 4) + $par1 | 0; - var$13 = ($this.$zPosition15 << 4) + $par3 | 0; - $var8 = 0; - var$14 = $var12 - 1 | 0; - var$15 = var$13 - 1 | 0; - var$16 = $var12 + 1 | 0; - var$13 = var$13 + 1 | 0; - while ($var8 < $var9.$worldAccesses.$size0) { - $var10 = $var9.$worldAccesses; - if ($var8 < 0) - break d; - if ($var8 >= $var10.$size0) - break d; - nms_RenderGlobal_markBlocksForUpdate($var10.$array1.data[$var8], var$14, $var8_0 - 1 | 0, var$15, var$16, $var8_0 + 1 | 0, var$13); - $var8 = $var8 + 1 | 0; - } - } - $var8_0 = $var8_0 + 1 | 0; - } - $var9 = new jl_IndexOutOfBoundsException; - $var9.$suppressionEnabled = 1; - $var9.$writableStackTrace = 1; - $rt_throw($var9); - } - $var8_0 = 15; - while (true) { - if ($par2 <= 0) - break a; - if ($var8_0 <= 0) - break a; - $par2 = $par2 + (-1) | 0; - $var12 = $this.$getBlockLightOpacity($par1, $par2, $par3); - if (!$var12) - $var12 = 1; - $var8_0 = $var8_0 - $var12 | 0; - if ($var8_0 < 0) - $var8_0 = 0; - $var10 = $this.$storageArrays.data[$par2 >> 4]; - if ($var10 !== null) { - $var12 = $par2 & 15; - $java.nms_NibbleArray_set($var10.$skylightArray, $par1, $var12, $par3, $var8_0); - } - } - } - } - $var8_0 = $this.$heightMap.data[var$5]; - if ($var8_0 < $var4) - $par1 = $var8_0; - else { - $par2 = $var8_0; - $par1 = $var4; - $var4 = $par2; - } - if ($var8_0 < $this.$heightMapMinimum) - $this.$heightMapMinimum = $var8_0; - if (!$this.$worldObj7.$provider.$hasNoSky) { - $java.nms_Chunk_updateSkylightNeighborHeight($this, $var6 - 1 | 0, $var7, $par1, $var4); - $java.nms_Chunk_updateSkylightNeighborHeight($this, $var6 + 1 | 0, $var7, $par1, $var4); - $java.nms_Chunk_updateSkylightNeighborHeight($this, $var6, $var7 - 1 | 0, $par1, $var4); - $java.nms_Chunk_updateSkylightNeighborHeight($this, $var6, $var7 + 1 | 0, $par1, $var4); - $java.nms_Chunk_updateSkylightNeighborHeight($this, $var6, $var7, $par1, $var4); - } - $this.$isModified = 1; - } -}; -$java.nms_Chunk_getBlockLightOpacity = function($this, $par1, $par2, $par3) { - nms_Block_$callClinit(); - return nms_Block_lightOpacity.data[$this.$getBlockID($par1, $par2, $par3)]; -}; -$java.nms_Chunk_getBlockID = function($this, $par1, $par2, $par3) { - var var$4, $var4; - var$4 = $par2 >> 4; - if (var$4 >= $this.$storageArrays.data.length) - return 0; - $var4 = $this.$storageArrays.data[var$4]; - return $var4 === null ? 0 : $java.nms_ExtendedBlockStorage_getExtBlockID($var4, $par1, $par2 & 15, $par3); -}; -$java.nms_Chunk_getBlockMetadata = function($this, $par1, $par2, $par3) { - var var$4, $var4; - var$4 = $par2 >> 4; - if (var$4 >= $this.$storageArrays.data.length) - return 0; - $var4 = $this.$storageArrays.data[var$4]; - if ($var4 === null) - $par1 = 0; - else { - $par2 = $par2 & 15; - $par1 = $java.nms_NibbleArray_get($var4.$blockMetadataArray, $par1, $par2, $par3); - } - return $par1; -}; -$java.nms_Chunk_setBlockIDWithMetadata = function($this, $par1, $par2, $par3, $par4, $par5) { - var $var6, $var7, $var8, $var9, var$10, var$11, $var10, $var11, $var12, $var13, var$16, $var14, var$18, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$18 = $thread.pop();$var14 = $thread.pop();var$16 = $thread.pop();$var13 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var6 = $par3 << 4 | $par1; - if ($par2 >= ($this.$precipitationHeightMap.data[$var6] - 1 | 0)) - $this.$precipitationHeightMap.data[$var6] = (-999); - $var7 = $this.$heightMap.data[$var6]; - $var8 = $this.$getBlockID($par1, $par2, $par3); - $var9 = $this.$getBlockMetadata($par1, $par2, $par3); - var$10 = $rt_compare($var8, $par4); - if (!var$10 && $var9 == $par5) - return 0; - var$11 = $this.$storageArrays.data; - $var6 = $par2 >> 4; - $var10 = var$11[$var6]; - $var11 = 0; - if ($var10 === null) { - if (!$par4) - return 0; - var$11 = $this.$storageArrays; - $var10 = new $java.nms_ExtendedBlockStorage; - $var11 = $var6 << 4; - $var12 = $this.$worldObj7.$provider.$hasNoSky ? 0 : 1; - var$11 = var$11.data; - $java.nms_ExtendedBlockStorage__init_($var10, $var11, $var12); - var$11[$var6] = $var10; - $var11 = $par2 < $var7 ? 0 : 1; - } - $var12 = ($this.$xPosition16 * 16 | 0) + $par1 | 0; - $var13 = ($this.$zPosition15 * 16 | 0) + $par3 | 0; - if ($var8 && !$this.$worldObj7.$isRemote) - nms_Block_$callClinit(); - var$16 = $par2 & 15; - $java.nms_ExtendedBlockStorage_setExtBlockID($var10, $par1, var$16, $par3, $par4); - if ($var8) { - if (!$this.$worldObj7.$isRemote) { - nms_Block_$callClinit(); - $var14 = nms_Block_blocksList.data[$var8]; - var$18 = $this.$worldObj7; - $ptr = 1; - continue main; - } - nms_Block_$callClinit(); - if ($rt_isInstance(nms_Block_blocksList.data[$var8], nms_ITileEntityProvider) && var$10) - nms_World_removeBlockTileEntity($this.$worldObj7, $var12, $par2, $var13); - } - if ($java.nms_ExtendedBlockStorage_getExtBlockID($var10, $par1, var$16, $par3) != $par4) - return 0; - $java.nms_NibbleArray_set($var10.$blockMetadataArray, $par1, var$16, $par3, $par5); - if ($var11) - $this.$generateSkylightMap(); - else { - nms_Block_$callClinit(); - if (nms_Block_lightOpacity.data[$par4 & 4095] <= 0) { - if ($par2 == ($var7 - 1 | 0)) - $java.nms_Chunk_relightBlock($this, $par1, $par2, $par3); - } else if ($par2 >= $var7) - $java.nms_Chunk_relightBlock($this, $par1, $par2 + 1 | 0, $par3); - $this.$updateSkylightColumns.data[$par1 + ($par3 * 16 | 0) | 0] = 1; - $this.$isGapLightingUpdated = 1; - } - if ($par4) { - if (!$this.$worldObj7.$isRemote) { - nms_Block_$callClinit(); - $var10 = nms_Block_blocksList.data[$par4]; - $var14 = $this.$worldObj7; - $ptr = 2; - continue main; - } - nms_Block_$callClinit(); - if ($rt_isInstance(nms_Block_blocksList.data[$par4], nms_ITileEntityProvider)) { - $var14 = $this.$getChunkBlockTileEntity($par1, $par2, $par3); - if ($var14 === null) { - $var14 = nms_Block_blocksList.data[$par4].$createNewTileEntity($this.$worldObj7); - nms_World_setBlockTileEntity($this.$worldObj7, $var12, $par2, $var13, $var14); - } - if ($var14 !== null) - $var14.$updateContainingBlockInfo(); - } - } else if ($var8 > 0) { - nms_Block_$callClinit(); - if ($rt_isInstance(nms_Block_blocksList.data[$var8], nms_ITileEntityProvider)) { - $var14 = $this.$getChunkBlockTileEntity($par1, $par2, $par3); - if ($var14 !== null) - $var14.$updateContainingBlockInfo(); - } - } - $this.$isModified = 1; - return 1; - case 1: - $var14.$breakBlock(var$18, $var12, $par2, $var13, $var8, $var9); - if ($rt_suspending()) { - break main; - } - if ($java.nms_ExtendedBlockStorage_getExtBlockID($var10, $par1, var$16, $par3) != $par4) - return 0; - $java.nms_NibbleArray_set($var10.$blockMetadataArray, $par1, var$16, $par3, $par5); - if ($var11) - $this.$generateSkylightMap(); - else { - nms_Block_$callClinit(); - if (nms_Block_lightOpacity.data[$par4 & 4095] <= 0) { - if ($par2 == ($var7 - 1 | 0)) - $java.nms_Chunk_relightBlock($this, $par1, $par2, $par3); - } else if ($par2 >= $var7) - $java.nms_Chunk_relightBlock($this, $par1, $par2 + 1 | 0, $par3); - $this.$updateSkylightColumns.data[$par1 + ($par3 * 16 | 0) | 0] = 1; - $this.$isGapLightingUpdated = 1; - } - if ($par4) { - if (!$this.$worldObj7.$isRemote) { - nms_Block_$callClinit(); - $var10 = nms_Block_blocksList.data[$par4]; - $var14 = $this.$worldObj7; - $ptr = 2; - continue main; - } - nms_Block_$callClinit(); - if ($rt_isInstance(nms_Block_blocksList.data[$par4], nms_ITileEntityProvider)) { - $var14 = $this.$getChunkBlockTileEntity($par1, $par2, $par3); - if ($var14 === null) { - $var14 = nms_Block_blocksList.data[$par4].$createNewTileEntity($this.$worldObj7); - nms_World_setBlockTileEntity($this.$worldObj7, $var12, $par2, $var13, $var14); - } - if ($var14 !== null) - $var14.$updateContainingBlockInfo(); - } - } else if ($var8 > 0) { - nms_Block_$callClinit(); - if ($rt_isInstance(nms_Block_blocksList.data[$var8], nms_ITileEntityProvider)) { - $var14 = $this.$getChunkBlockTileEntity($par1, $par2, $par3); - if ($var14 !== null) - $var14.$updateContainingBlockInfo(); - } - } - $this.$isModified = 1; - return 1; - case 2: - $var10.$onBlockAdded($var14, $var12, $par2, $var13); - if ($rt_suspending()) { - break main; - } - nms_Block_$callClinit(); - if ($rt_isInstance(nms_Block_blocksList.data[$par4], nms_ITileEntityProvider)) { - $var14 = $this.$getChunkBlockTileEntity($par1, $par2, $par3); - if ($var14 === null) { - $var14 = nms_Block_blocksList.data[$par4].$createNewTileEntity($this.$worldObj7); - nms_World_setBlockTileEntity($this.$worldObj7, $var12, $par2, $var13, $var14); - } - if ($var14 !== null) - $var14.$updateContainingBlockInfo(); - } - $this.$isModified = 1; - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $par4, $par5, $var6, $var7, $var8, $var9, var$10, var$11, $var10, $var11, $var12, $var13, var$16, $var14, var$18, $ptr); -}; -$java.nms_Chunk_setBlockMetadata = function($this, $par1, $par2, $par3, $par4) { - var $var5, $var7, $var8; - $var5 = $this.$storageArrays.data[$par2 >> 4]; - if ($var5 === null) - return 0; - $var7 = $par2 & 15; - if ($java.nms_NibbleArray_get($var5.$blockMetadataArray, $par1, $var7, $par3) == $par4) - return 0; - $this.$isModified = 1; - $java.nms_NibbleArray_set($var5.$blockMetadataArray, $par1, $var7, $par3, $par4); - $var7 = $java.nms_ExtendedBlockStorage_getExtBlockID($var5, $par1, $var7, $par3); - if ($var7 > 0) { - nms_Block_$callClinit(); - if ($rt_isInstance(nms_Block_blocksList.data[$var7], nms_ITileEntityProvider)) { - $var8 = $this.$getChunkBlockTileEntity($par1, $par2, $par3); - if ($var8 !== null) { - $var8.$updateContainingBlockInfo(); - $var8.$blockMetadata = $par4; - } - } - } - return 1; -}; -$java.nms_Chunk_getSavedLightValue = function($this, $par1EnumSkyBlock, $par2, $par3, $par4) { - var $var5; - $var5 = $this.$storageArrays.data[$par3 >> 4]; - if ($var5 === null) - $par2 = !$this.$canBlockSeeTheSky($par2, $par3, $par4) ? 0 : $par1EnumSkyBlock.$defaultLightValue; - else if ($par1EnumSkyBlock !== nms_EnumSkyBlock_Sky) { - if ($par1EnumSkyBlock !== nms_EnumSkyBlock_Block) - $par2 = $par1EnumSkyBlock.$defaultLightValue; - else { - $par3 = $par3 & 15; - $par2 = $java.nms_NibbleArray_get($var5.$blocklightArray, $par2, $par3, $par4); - } - } else if ($this.$worldObj7.$provider.$hasNoSky) - $par2 = 0; - else { - $par3 = $par3 & 15; - $par2 = $java.nms_NibbleArray_get($var5.$skylightArray, $par2, $par3, $par4); - } - return $par2; -}; -$java.nms_Chunk_setLightValue = function($this, $par1EnumSkyBlock, $par2, $par3, $par4, $par5) { - var var$6, var$7, $var6, var$9, var$10; - var$6 = $this.$storageArrays.data; - var$7 = $par3 >> 4; - $var6 = var$6[var$7]; - if ($var6 === null) { - var$6 = $this.$storageArrays; - $var6 = new $java.nms_ExtendedBlockStorage; - var$9 = var$7 << 4; - var$10 = $this.$worldObj7.$provider.$hasNoSky ? 0 : 1; - var$6 = var$6.data; - $java.nms_ExtendedBlockStorage__init_($var6, var$9, var$10); - var$6[var$7] = $var6; - $this.$generateSkylightMap(); - } - $this.$isModified = 1; - if ($par1EnumSkyBlock !== nms_EnumSkyBlock_Sky) { - if ($par1EnumSkyBlock === nms_EnumSkyBlock_Block) { - $par3 = $par3 & 15; - $java.nms_NibbleArray_set($var6.$blocklightArray, $par2, $par3, $par4, $par5); - } - } else if (!$this.$worldObj7.$provider.$hasNoSky) { - $par3 = $par3 & 15; - $java.nms_NibbleArray_set($var6.$skylightArray, $par2, $par3, $par4, $par5); - } -}; -$java.nms_Chunk_getBlockLightValue = function($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, $var7; - $var5 = $this.$storageArrays.data[$par2 >> 4]; - if ($var5 === null) - return !$this.$worldObj7.$provider.$hasNoSky && $par4 < nms_EnumSkyBlock_Sky.$defaultLightValue ? nms_EnumSkyBlock_Sky.$defaultLightValue - $par4 | 0 : 0; - if ($this.$worldObj7.$provider.$hasNoSky) - $var6 = 0; - else { - $var6 = $par2 & 15; - $var6 = $java.nms_NibbleArray_get($var5.$skylightArray, $par1, $var6, $par3); - } - if ($var6 > 0) - $java.nms_Chunk_isLit = 1; - $par4 = $var6 - $par4 | 0; - $par2 = $par2 & 15; - $var7 = $java.nms_NibbleArray_get($var5.$blocklightArray, $par1, $par2, $par3); - if ($var7 <= $par4) - $var7 = $par4; - return $var7; -}; -$java.nms_Chunk_addEntity = function($this, $par1Entity) { - var var$2, $var2, $var3, var$5, var$6, var$7, $var4; - $this.$hasEntities = 1; - var$2 = $par1Entity.$posX / 16.0; - $var2 = var$2 | 0; - if (var$2 < $var2) - $var2 = $var2 - 1 | 0; - var$2 = $par1Entity.$posZ / 16.0; - $var3 = var$2 | 0; - if (var$2 < $var3) - $var3 = $var3 - 1 | 0; - if (!($var2 == $this.$xPosition16 && $var3 == $this.$zPosition15)) { - if (jl_System_errCache === null) { - var$5 = new ji_PrintStream; - var$5.$out = new jl_ConsoleOutputStreamStderr; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - var$5.$sb = var$6; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - var$6 = new jnci_UTF8Charset; - jnc_Charset__init_(var$6, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = var$6; - jl_System_errCache = var$5; - } - var$7 = jl_System_errCache; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2674)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $par1Entity.$toString()); - var$5 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - var$6 = var$7.$sb; - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$5); - $var2 = var$6.$length; - jl_AbstractStringBuilder_insertSpace(var$6, $var2, $var2 + 1 | 0); - var$6.$buffer.data[$var2] = 10; - ji_PrintStream_printSB(var$7); - } - var$2 = $par1Entity.$posY / 16.0; - $var4 = var$2 | 0; - if (var$2 < $var4) - $var4 = $var4 - 1 | 0; - if ($var4 < 0) - $var4 = 0; - if ($var4 >= $this.$entityLists.data.length) - $var4 = $this.$entityLists.data.length - 1 | 0; - $par1Entity.$addedToChunk = 1; - $par1Entity.$chunkCoordX = $this.$xPosition16; - $par1Entity.$chunkCoordY = $var4; - $par1Entity.$chunkCoordZ = $this.$zPosition15; - ju_ArrayList_add($this.$entityLists.data[$var4], $par1Entity); -}; -$java.nms_Chunk_removeEntity = function($this, $par1Entity) { - $this.$removeEntityAtIndex($par1Entity, $par1Entity.$chunkCoordY); -}; -$java.nms_Chunk_removeEntityAtIndex = function($this, $par1Entity, $par2) { - var var$3; - if ($par2 < 0) - $par2 = 0; - if ($par2 >= $this.$entityLists.data.length) - $par2 = $this.$entityLists.data.length - 1 | 0; - var$3 = $this.$entityLists.data[$par2]; - $par2 = ju_AbstractList_indexOf(var$3, $par1Entity); - if ($par2 >= 0) - ju_ArrayList_remove(var$3, $par2); -}; -$java.nms_Chunk_canBlockSeeTheSky = function($this, $par1, $par2, $par3) { - return $par2 < $this.$heightMap.data[$par3 << 4 | $par1] ? 0 : 1; -}; -$java.nms_Chunk_getChunkBlockTileEntity = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6; - $var4 = new nms_ChunkPosition; - $var4.$x3 = $par1; - $var4.$y2 = $par2; - $var4.$z5 = $par3; - $var5 = $this.$chunkTileEntityMap; - $var6 = ($rt_imul($var4.$x3, 8976890) + $rt_imul($var4.$y2, 981131) | 0) + $var4.$z5 | 0; - $var5 = ju_HashMap_findNonNullKeyEntry($var5, $var4, $var6 & ($var5.$elementData.data.length - 1 | 0), $var6); - $var5 = $var5 === null ? null : $var5.$value0; - a: { - $var5 = $var5; - if ($var5 === null) { - $var6 = $this.$getBlockID($par1, $par2, $par3); - if ($var6 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var6].$isBlockContainer) { - $var5 = nms_Block_blocksList.data[$var6].$createNewTileEntity($this.$worldObj7); - nms_World_setBlockTileEntity($this.$worldObj7, ($this.$xPosition16 * 16 | 0) + $par1 | 0, $par2, ($this.$zPosition15 * 16 | 0) + $par3 | 0, $var5); - $var5 = $this.$chunkTileEntityMap; - $par3 = ($rt_imul($var4.$x3, 8976890) + $rt_imul($var4.$y2, 981131) | 0) + $var4.$z5 | 0; - $var5 = ju_HashMap_findNonNullKeyEntry($var5, $var4, $par3 & ($var5.$elementData.data.length - 1 | 0), $par3); - $var5 = $var5 === null ? null : $var5.$value0; - break a; - } - } - return null; - } - } - if ($var5 !== null && $var5.$tileEntityInvalid) { - ju_HashMap_removeEntry($this.$chunkTileEntityMap, $var4); - return null; - } - return $var5; -}; -$java.nms_Chunk_setChunkBlockTileEntity = function($this, $par1, $par2, $par3, $par4TileEntity) { - var $var5, var$6; - $var5 = new nms_ChunkPosition; - $var5.$x3 = $par1; - $var5.$y2 = $par2; - $var5.$z5 = $par3; - $par4TileEntity.$worldObj5 = $this.$worldObj7; - $par4TileEntity.$xCoord0 = ($this.$xPosition16 * 16 | 0) + $par1 | 0; - $par4TileEntity.$yCoord0 = $par2; - $par4TileEntity.$zCoord0 = ($this.$zPosition15 * 16 | 0) + $par3 | 0; - if ($this.$getBlockID($par1, $par2, $par3)) { - nms_Block_$callClinit(); - if ($rt_isInstance(nms_Block_blocksList.data[$this.$getBlockID($par1, $par2, $par3)], nms_ITileEntityProvider)) { - var$6 = $this.$chunkTileEntityMap; - $par3 = ($rt_imul($var5.$x3, 8976890) + $rt_imul($var5.$y2, 981131) | 0) + $var5.$z5 | 0; - if (ju_HashMap_findNonNullKeyEntry(var$6, $var5, $par3 & (var$6.$elementData.data.length - 1 | 0), $par3) === null ? 0 : 1) { - var$6 = $this.$chunkTileEntityMap; - $par3 = ($rt_imul($var5.$x3, 8976890) + $rt_imul($var5.$y2, 981131) | 0) + $var5.$z5 | 0; - var$6 = ju_HashMap_findNonNullKeyEntry(var$6, $var5, $par3 & (var$6.$elementData.data.length - 1 | 0), $par3); - (var$6 === null ? null : var$6.$value0).$invalidate(); - } - $par4TileEntity.$tileEntityInvalid = 0; - ju_HashMap_putImpl($this.$chunkTileEntityMap, $var5, $par4TileEntity); - } - } -}; -$java.nms_Chunk_removeChunkBlockTileEntity = function($this, $par1, $par2, $par3) { - var $var4, $var5; - $var4 = new nms_ChunkPosition; - $var4.$x3 = $par1; - $var4.$y2 = $par2; - $var4.$z5 = $par3; - if ($this.$isChunkLoaded) { - $var4 = ju_HashMap_removeEntry($this.$chunkTileEntityMap, $var4); - $var5 = $var4 === null ? null : $var4.$value0; - if ($var5 !== null) - $var5.$invalidate(); - } -}; -$java.nms_Chunk_onChunkUnload = function($this) { - var $var1, $var2, $var3, var$4, var$5, var$6, var$7; - $this.$isChunkLoaded = 0; - $var1 = $this.$chunkTileEntityMap; - if ($var1.$cachedValues === null) { - $var2 = new ju_HashMap$2; - $var2.$this$00 = $var1; - $var1.$cachedValues = $var2; - } - $var1 = $var1.$cachedValues.$iterator(); - while ($var1.$hasNext()) { - $var2 = $var1.$next(); - ju_ArrayList_add($this.$worldObj7.$entityRemoval, $var2); - } - $var3 = 0; - while ($var3 < $this.$entityLists.data.length) { - $var1 = $this.$worldObj7; - $var2 = $this.$entityLists.data[$var3]; - $var1 = $var1.$unloadedEntityList; - var$4 = $var2.$modCount0; - var$5 = $var2.$size2(); - var$6 = 0; - while (var$6 >= var$5 ? 0 : 1) { - if (var$4 < $var2.$modCount0) { - $var1 = new ju_ConcurrentModificationException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($var1); - $rt_throw($var1); - } - var$7 = var$6 + 1 | 0; - if (ju_ArrayList_add($var1, $var2.$get4(var$6))) { - var$6 = var$7; - continue; - } - var$6 = var$7; - } - $var3 = $var3 + 1 | 0; - } -}; -$java.nms_Chunk_setChunkModified = function($this) { - $this.$isModified = 1; -}; -$java.nms_Chunk_getEntitiesWithinAABBForEntity = function($this, $par1Entity, $par2AxisAlignedBB, $par3List, $par4IEntitySelector) { - var var$5, $var5, var$7, $var6, $var8, $var9, $var10, $var11, $var12, var$14; - var$5 = ($par2AxisAlignedBB.$minY - 2.0) / 16.0; - $var5 = var$5 | 0; - if (var$5 < $var5) - $var5 = $var5 - 1 | 0; - var$7 = ($par2AxisAlignedBB.$maxY + 2.0) / 16.0; - $var6 = var$7 | 0; - if (var$7 < $var6) - $var6 = $var6 - 1 | 0; - if ($var5 < 0) { - $var5 = 0; - if ($var5 > $var6) - $var6 = $var5; - } - if ($var6 >= $this.$entityLists.data.length) { - $var6 = $this.$entityLists.data.length - 1 | 0; - if ($var5 >= $var6) - $var5 = $var6; - } - a: { - while ($var5 <= $var6) { - $var8 = $this.$entityLists.data[$var5]; - $var9 = 0; - while ($var9 < $var8.$size0) { - if ($var9 < 0) - break a; - if ($var9 >= $var8.$size0) - break a; - b: { - $var10 = $var8.$array1.data[$var9]; - if ($var10 !== $par1Entity && nms_AxisAlignedBB_intersectsWith($var10.$boundingBox, $par2AxisAlignedBB) && !($par4IEntitySelector !== null && !($rt_isInstance($var10, nms_IInventory) && $var10.$isEntityAlive() ? 1 : 0))) { - ju_ArrayList_add($par3List, $var10); - $var11 = $var10.$getParts(); - if ($var11 !== null) { - $var12 = 0; - while (true) { - var$14 = $var11.data; - if ($var12 >= var$14.length) - break b; - $var10 = var$14[$var12]; - if ($var10 !== $par1Entity && nms_AxisAlignedBB_intersectsWith($var10.$boundingBox, $par2AxisAlignedBB) && !($par4IEntitySelector !== null && !($rt_isInstance($var10, nms_IInventory) && ($var10.$isDead ? 0 : 1) ? 1 : 0))) - ju_ArrayList_add($par3List, $var10); - $var12 = $var12 + 1 | 0; - } - } - } - } - $var9 = $var9 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - return; - } - $par1Entity = new jl_IndexOutOfBoundsException; - $par1Entity.$suppressionEnabled = 1; - $par1Entity.$writableStackTrace = 1; - $rt_throw($par1Entity); -}; -$java.nms_Chunk_getEntitiesOfTypeWithinAAAB = function($this, $par1Class, $par2AxisAlignedBB, $par3List, $par4IEntitySelector) { - var var$5, $var5, var$7, $var6, $var8, $var9, $var10; - var$5 = ($par2AxisAlignedBB.$minY - 2.0) / 16.0; - $var5 = var$5 | 0; - if (var$5 < $var5) - $var5 = $var5 - 1 | 0; - var$7 = ($par2AxisAlignedBB.$maxY + 2.0) / 16.0; - $var6 = var$7 | 0; - if (var$7 < $var6) - $var6 = $var6 - 1 | 0; - if ($var5 < 0) - $var5 = 0; - else if ($var5 >= $this.$entityLists.data.length) - $var5 = $this.$entityLists.data.length - 1 | 0; - if ($var6 >= $this.$entityLists.data.length) - $var6 = $this.$entityLists.data.length - 1 | 0; - else if ($var6 < 0) - $var6 = 0; - a: { - while ($var5 <= $var6) { - $var8 = $this.$entityLists.data[$var5]; - $var9 = 0; - while ($var9 < $var8.$size0) { - if ($var9 < 0) - break a; - if ($var9 >= $var8.$size0) - break a; - $var10 = $var8.$array1.data[$var9]; - if (otp_Platform_isAssignable(jl_Class_getClass($var10.constructor).$platformClass, $par1Class.$platformClass) && nms_AxisAlignedBB_intersectsWith($var10.$boundingBox, $par2AxisAlignedBB) && !($par4IEntitySelector !== null && !$par4IEntitySelector.$isEntityApplicable($var10))) - ju_ArrayList_add($par3List, $var10); - $var9 = $var9 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - return; - } - $par1Class = new jl_IndexOutOfBoundsException; - $par1Class.$suppressionEnabled = 1; - $par1Class.$writableStackTrace = 1; - $rt_throw($par1Class); -}; -$java.nms_Chunk_isEmpty = function($this) { - return 0; -}; -function nms_Chunk_getPrecipitationHeight($this, $par1, $par2) { - var $var3, $var4, $var5, $var6, $var7; - $var3 = $par1 | $par2 << 4; - $var4 = $this.$precipitationHeightMap.data[$var3]; - if ($var4 == (-999)) { - $var5 = $java.nms_Chunk_getTopFilledSegment($this) + 15 | 0; - $var4 = (-1); - while ($var5 > 0 && $var4 == (-1)) { - $var6 = $this.$getBlockID($par1, $var5, $par2); - if (!$var6) { - nms_Material_$callClinit(); - $var7 = nms_Material_air; - } else { - nms_Block_$callClinit(); - $var7 = nms_Block_blocksList.data[$var6].$blockMaterial; - } - if (!$var7.$blocksMovement() && !$var7.$isLiquid()) - $var5 = $var5 + (-1) | 0; - else - $var4 = $var5 + 1 | 0; - } - $this.$precipitationHeightMap.data[$var3] = $var4; - } - return $var4; -} -$java.nms_Chunk_getAreLevelsEmpty = function($this, $var3, $par2) { - var $var4; - if ($var3 < 0) - $var3 = 0; - if ($par2 >= 256) - $par2 = 255; - while ($var3 <= $par2) { - $var4 = $this.$storageArrays.data[$var3 >> 4]; - if ($var4 !== null && !($var4.$blockRefCount ? 0 : 1)) - return 0; - $var3 = $var3 + 16 | 0; - } - return 1; -}; -$java.nms_Chunk_fillChunk = function($this, $par1ArrayOfByte, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, var$9, var$10, $var9, $var11; - $var5 = 0; - $var6 = $this.$worldObj7.$provider.$hasNoSky ? 0 : 1; - $var7 = 0; - while ($var7 < $this.$storageArrays.data.length) { - if ($par2 & 1 << $var7) { - if ($this.$storageArrays.data[$var7] === null) - $this.$storageArrays.data[$var7] = $java.nms_ExtendedBlockStorage__init_0($var7 << 4, $var6); - $var8 = $this.$storageArrays.data[$var7].$blockLSBArray; - var$9 = $var8.data.length; - jl_System_arraycopy($par1ArrayOfByte, $var5, $var8, 0, var$9); - $var5 = $var5 + var$9 | 0; - } else if ($par4 && $this.$storageArrays.data[$var7] !== null) - $this.$storageArrays.data[$var7] = null; - $var7 = $var7 + 1 | 0; - } - var$10 = 0; - while (var$10 < $this.$storageArrays.data.length) { - if ($par2 & 1 << var$10 && $this.$storageArrays.data[var$10] !== null) { - $var9 = $this.$storageArrays.data[var$10].$blockMetadataArray; - jl_System_arraycopy($par1ArrayOfByte, $var5, $var9.$data12, 0, $var9.$data12.data.length); - $var5 = $var5 + $var9.$data12.data.length | 0; - } - var$10 = var$10 + 1 | 0; - } - $var7 = 0; - while ($var7 < $this.$storageArrays.data.length) { - if ($par2 & 1 << $var7 && $this.$storageArrays.data[$var7] !== null) { - $var9 = $this.$storageArrays.data[$var7].$blocklightArray; - jl_System_arraycopy($par1ArrayOfByte, $var5, $var9.$data12, 0, $var9.$data12.data.length); - $var5 = $var5 + $var9.$data12.data.length | 0; - } - $var7 = $var7 + 1 | 0; - } - if ($var6) { - var$10 = 0; - while (var$10 < $this.$storageArrays.data.length) { - if ($par2 & 1 << var$10 && $this.$storageArrays.data[var$10] !== null) { - $var9 = $this.$storageArrays.data[var$10].$skylightArray; - jl_System_arraycopy($par1ArrayOfByte, $var5, $var9.$data12, 0, $var9.$data12.data.length); - $var5 = $var5 + $var9.$data12.data.length | 0; - } - var$10 = var$10 + 1 | 0; - } - } - $var7 = 0; - while ($var7 < $this.$storageArrays.data.length) { - if (!($par3 & 1 << $var7)) { - if ($par4 && $this.$storageArrays.data[$var7] !== null && $this.$storageArrays.data[$var7].$blockMSBArray !== null) - $this.$storageArrays.data[$var7].$blockMSBArray = null; - } else if ($this.$storageArrays.data[$var7] === null) - $var5 = $var5 + 2048 | 0; - else { - $var9 = $this.$storageArrays.data[$var7].$blockMSBArray; - if ($var9 === null) - $var9 = $java.nms_ExtendedBlockStorage_createBlockMSBArray($this.$storageArrays.data[$var7]); - jl_System_arraycopy($par1ArrayOfByte, $var5, $var9.$data12, 0, $var9.$data12.data.length); - $var5 = $var5 + $var9.$data12.data.length | 0; - } - $var7 = $var7 + 1 | 0; - } - if ($par4) - jl_System_arraycopy($par1ArrayOfByte, $var5, $this.$blockBiomeArray, 0, $this.$blockBiomeArray.data.length); - $par4 = 0; - while ($par4 < $this.$storageArrays.data.length) { - if ($this.$storageArrays.data[$par4] !== null && $par2 & 1 << $par4) - $java.nms_ExtendedBlockStorage_removeInvalidBlocks($this.$storageArrays.data[$par4]); - $par4 = $par4 + 1 | 0; - } - $this.$generateHeightMap(); - $var9 = $this.$chunkTileEntityMap; - if ($var9.$cachedValues === null) { - $var11 = new ju_HashMap$2; - $var11.$this$00 = $var9; - ju_AbstractCollection__init_0($var11); - $var9.$cachedValues = $var11; - } - $var11 = $var9.$cachedValues.$iterator(); - while ($var11.$hasNext()) { - $var11.$next().$updateContainingBlockInfo(); - } -}; -function nms_Chunk_getBiomeGenForWorldCoords($this, $par1, $par2) { - var $var4; - $var4 = $this.$blockBiomeArray.data[$par2 << 4 | $par1] & 255; - if ($var4 == 255) - $var4 = 0; - return $java.nms_BiomeGenBase_biomeList.data[$var4] === null ? $java.nms_BiomeGenBase_plains : $java.nms_BiomeGenBase_biomeList.data[$var4]; -} -$java.nms_Chunk_resetRelightChecks = function($this) { - $this.$queuedLightChecks = 0; -}; -function nms_Chunk_enqueueRelightChecks($this) { - var $var1, $var2, $var3, $var4, $var5, $var6, $var7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, $var8, var$16, var$17, var$18, var$19, var$20; - $var1 = 0; - while ($var1 < 8) { - if ($this.$queuedLightChecks >= 4096) - return; - $var2 = $this.$queuedLightChecks % 16 | 0; - $var3 = ($this.$queuedLightChecks / 16 | 0) % 16 | 0; - $var4 = $this.$queuedLightChecks / 256 | 0; - $this.$queuedLightChecks = $this.$queuedLightChecks + 1 | 0; - $var5 = ($this.$xPosition16 << 4) + $var3 | 0; - $var6 = ($this.$zPosition15 << 4) + $var4 | 0; - $var7 = 0; - var$8 = $var2 << 4; - var$9 = $var5 - 1 | 0; - var$10 = $var5 + 1 | 0; - var$11 = $var6 - 1 | 0; - var$12 = $var6 + 1 | 0; - var$13 = $rt_compare($var3, 15); - var$14 = $rt_compare($var4, 15); - while ($var7 < 16) { - a: { - b: { - $var8 = var$8 + $var7 | 0; - if ($this.$storageArrays.data[$var2] === null) { - if (!$var7) - break b; - if ($var7 == 15) - break b; - if (!$var3) - break b; - if (!var$13) - break b; - if (!$var4) - break b; - if (!var$14) - break b; - } - if ($this.$storageArrays.data[$var2] === null) - break a; - if ($java.nms_ExtendedBlockStorage_getExtBlockID($this.$storageArrays.data[$var2], $var3, $var7, $var4)) - break a; - } - nms_Block_$callClinit(); - var$16 = nms_Block_lightValue.data; - var$17 = $this.$worldObj7; - var$18 = $var8 - 1 | 0; - if (var$16[nms_World_getBlockId(var$17, $var5, var$18, $var6)] > 0) { - var$19 = $this.$worldObj7; - if (!var$19.$provider.$hasNoSky) - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Sky, $var5, var$18, $var6); - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Block, $var5, var$18, $var6); - } - var$16 = nms_Block_lightValue.data; - var$17 = $this.$worldObj7; - var$20 = $var8 + 1 | 0; - if (var$16[nms_World_getBlockId(var$17, $var5, var$20, $var6)] > 0) { - var$19 = $this.$worldObj7; - if (!var$19.$provider.$hasNoSky) - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Sky, $var5, var$20, $var6); - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Block, $var5, var$20, $var6); - } - if (nms_Block_lightValue.data[nms_World_getBlockId($this.$worldObj7, var$9, $var8, $var6)] > 0) { - var$19 = $this.$worldObj7; - if (!var$19.$provider.$hasNoSky) - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Sky, var$9, $var8, $var6); - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Block, var$9, $var8, $var6); - } - if (nms_Block_lightValue.data[nms_World_getBlockId($this.$worldObj7, var$10, $var8, $var6)] > 0) { - var$19 = $this.$worldObj7; - if (!var$19.$provider.$hasNoSky) - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Sky, var$10, $var8, $var6); - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Block, var$10, $var8, $var6); - } - if (nms_Block_lightValue.data[nms_World_getBlockId($this.$worldObj7, $var5, $var8, var$11)] > 0) { - var$19 = $this.$worldObj7; - if (!var$19.$provider.$hasNoSky) - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Sky, $var5, $var8, var$11); - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Block, $var5, $var8, var$11); - } - if (nms_Block_lightValue.data[nms_World_getBlockId($this.$worldObj7, $var5, $var8, var$12)] > 0) { - var$19 = $this.$worldObj7; - if (!var$19.$provider.$hasNoSky) - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Sky, $var5, $var8, var$12); - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Block, $var5, $var8, var$12); - } - var$19 = $this.$worldObj7; - if (!var$19.$provider.$hasNoSky) - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Sky, $var5, $var8, $var6); - nms_World_updateLightByType(var$19, nms_EnumSkyBlock_Block, $var5, $var8, $var6); - } - $var7 = $var7 + 1 | 0; - } - $var1 = $var1 + 1 | 0; - } -} -function nms_ChunkCache() { - var a = this; jl_Object.call(a); - a.$chunkX0 = 0; - a.$chunkZ0 = 0; - a.$chunkArray = null; - a.$hasExtendedLevels = 0; - a.$worldObj8 = null; -} -function nms_ChunkCache__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7) { - var var_8 = new nms_ChunkCache(); - $java.nms_ChunkCache__init_(var_8, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7); - return var_8; -} -$java.nms_ChunkCache__init_ = function($this, $par1World, $par2, $par3, $par4, $par5, $par6, $par7, $par8) { - var $var9, $var10, $var11, $var12, $var13; - $this.$worldObj8 = $par1World; - $this.$chunkX0 = ($par2 - $par8 | 0) >> 4; - $this.$chunkZ0 = ($par4 - $par8 | 0) >> 4; - $var9 = ($par5 + $par8 | 0) >> 4; - $var10 = ($par7 + $par8 | 0) >> 4; - $this.$chunkArray = $rt_createMultiArray($rt_arraycls($rt_arraycls(nms_Chunk)), [($var10 - $this.$chunkZ0 | 0) + 1 | 0, ($var9 - $this.$chunkX0 | 0) + 1 | 0]); - $this.$hasExtendedLevels = 1; - $var11 = $this.$chunkX0; - while ($var11 <= $var9) { - $var12 = $this.$chunkZ0; - while ($var12 <= $var10) { - $var13 = nms_ChunkProviderClient_provideChunk($par1World.$chunkProvider, $var11, $var12); - if ($var13 !== null) - $this.$chunkArray.data[$var11 - $this.$chunkX0 | 0].data[$var12 - $this.$chunkZ0 | 0] = $var13; - $var12 = $var12 + 1 | 0; - } - $var11 = $var11 + 1 | 0; - } - $par8 = $par2 >> 4; - $par5 = $par5 >> 4; - $par4 = $par4 >> 4; - $par7 = $par7 >> 4; - while ($par8 <= $par5) { - $var12 = $par4; - while ($var12 <= $par7) { - $var13 = $this.$chunkArray.data[$par8 - $this.$chunkX0 | 0].data[$var12 - $this.$chunkZ0 | 0]; - if ($var13 !== null && !$var13.$getAreLevelsEmpty($par3, $par6)) - $this.$hasExtendedLevels = 0; - $var12 = $var12 + 1 | 0; - } - $par8 = $par8 + 1 | 0; - } -}; -$java.nms_ChunkCache_extendedLevelsInChunkCache = function($this) { - return $this.$hasExtendedLevels; -}; -$java.nms_ChunkCache_getBlockId = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6; - if ($par2 < 0) - return 0; - if ($par2 >= 256) - return 0; - $var4 = ($par1 >> 4) - $this.$chunkX0 | 0; - $var5 = ($par3 >> 4) - $this.$chunkZ0 | 0; - if ($var4 >= 0 && $var4 < $this.$chunkArray.data.length && $var5 >= 0 && $var5 < $this.$chunkArray.data[$var4].data.length) { - $var6 = $this.$chunkArray.data[$var4].data[$var5]; - return $var6 === null ? 0 : $var6.$getBlockID($par1 & 15, $par2, $par3 & 15); - } - return 0; -}; -$java.nms_ChunkCache_getBlockTileEntity = function($this, $par1, $par2, $par3) { - var $var4, $var5; - $var4 = ($par1 >> 4) - $this.$chunkX0 | 0; - $var5 = ($par3 >> 4) - $this.$chunkZ0 | 0; - return $this.$chunkArray.data[$var4].data[$var5].$getChunkBlockTileEntity($par1 & 15, $par2, $par3 & 15); -}; -$java.nms_ChunkCache_getBrightness = function($this, $par1, $par2, $par3, $par4) { - var $var5; - $var5 = $java.nms_ChunkCache_getLightValueExt($this, $par1, $par2, $par3, 1); - if ($var5 >= $par4) - $par4 = $var5; - return $this.$worldObj8.$provider.$lightBrightnessTable.data[$par4]; -}; -$java.nms_ChunkCache_getLightBrightnessForSkyBlocks = function($this, $par1, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = $java.nms_ChunkCache_getSkyBlockTypeBrightness($this, nms_EnumSkyBlock_Sky, $par1, $par2, $par3); - $var6 = $java.nms_ChunkCache_getSkyBlockTypeBrightness($this, nms_EnumSkyBlock_Block, $par1, $par2, $par3); - if ($var6 >= $par4) - $par4 = $var6; - return $var5 << 20 | $par4 << 4; -}; -$java.nms_ChunkCache_getLightBrightness = function($this, $par1, $par2, $par3) { - return $this.$worldObj8.$provider.$lightBrightnessTable.data[$java.nms_ChunkCache_getLightValueExt($this, $par1, $par2, $par3, 1)]; -}; -$java.nms_ChunkCache_getLightValue = function($this, $par1, $par2, $par3) { - return $java.nms_ChunkCache_getLightValueExt($this, $par1, $par2, $par3, 1); -}; -$java.nms_ChunkCache_getLightValueExt = function($this, $par1, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, $var10; - if ($par1 >= (-30000000) && $par3 >= (-30000000) && $par1 < 30000000 && $par3 <= 30000000) { - a: { - if ($par4) { - $var5 = $java.nms_ChunkCache_getBlockId($this, $par1, $par2, $par3); - nms_Block_$callClinit(); - if ($var5 == nms_Block_stoneSingleSlab.$blockID) - break a; - if ($var5 == nms_Block_woodSingleSlab.$blockID) - break a; - if ($var5 == nms_Block_tilledField.$blockID) - break a; - if ($var5 == nms_Block_stairsWoodOak.$blockID) - break a; - if ($var5 == nms_Block_stairsCobblestone.$blockID) - break a; - } - if ($par2 < 0) - return 0; - if ($par2 >= 256) { - $var5 = 15 - $this.$worldObj8.$skylightSubtracted | 0; - if ($var5 < 0) - $var5 = 0; - return $var5; - } - $var5 = ($par1 >> 4) - $this.$chunkX0 | 0; - $var6 = ($par3 >> 4) - $this.$chunkZ0 | 0; - return $this.$chunkArray.data[$var5].data[$var6].$getBlockLightValue($par1 & 15, $par2, $par3 & 15, $this.$worldObj8.$skylightSubtracted); - } - $var6 = $java.nms_ChunkCache_getLightValueExt($this, $par1, $par2 + 1 | 0, $par3, 0); - $var7 = $java.nms_ChunkCache_getLightValueExt($this, $par1 + 1 | 0, $par2, $par3, 0); - $var8 = $java.nms_ChunkCache_getLightValueExt($this, $par1 - 1 | 0, $par2, $par3, 0); - $var9 = $java.nms_ChunkCache_getLightValueExt($this, $par1, $par2, $par3 + 1 | 0, 0); - $var10 = $java.nms_ChunkCache_getLightValueExt($this, $par1, $par2, $par3 - 1 | 0, 0); - if ($var7 <= $var6) - $var7 = $var6; - if ($var8 <= $var7) - $var8 = $var7; - if ($var9 <= $var8) - $var9 = $var8; - if ($var10 <= $var9) - $var10 = $var9; - return $var10; - } - return 15; -}; -$java.nms_ChunkCache_getBlockMetadata = function($this, $par1, $par2, $par3) { - var $var4, $var5; - if ($par2 < 0) - return 0; - if ($par2 >= 256) - return 0; - $var4 = ($par1 >> 4) - $this.$chunkX0 | 0; - $var5 = ($par3 >> 4) - $this.$chunkZ0 | 0; - return $this.$chunkArray.data[$var4].data[$var5].$getBlockMetadata($par1 & 15, $par2, $par3 & 15); -}; -$java.nms_ChunkCache_getBlockMaterial = function($this, $par1, $par2, $par3) { - var $var4, var$5; - $var4 = $java.nms_ChunkCache_getBlockId($this, $par1, $par2, $par3); - if (!$var4) { - nms_Material_$callClinit(); - var$5 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$5 = nms_Block_blocksList.data[$var4].$blockMaterial; - } - return var$5; -}; -$java.nms_ChunkCache_getBiomeGenForCoords = function($this, $par1, $par2) { - var var$3, var$4, var$5; - var$3 = $this.$worldObj8; - var$4 = $par1 >> 4; - var$5 = $par2 >> 4; - return nms_Chunk_getBiomeGenForWorldCoords(nms_ChunkProviderClient_provideChunk(var$3.$chunkProvider, var$4, var$5), $par1 & 15, $par2 & 15); -}; -$java.nms_ChunkCache_isBlockOpaqueCube = function($this, $par1, $par2, $par3) { - var $var4; - nms_Block_$callClinit(); - $var4 = nms_Block_blocksList.data[$java.nms_ChunkCache_getBlockId($this, $par1, $par2, $par3)]; - return $var4 !== null ? $var4.$isOpaqueCube() : 0; -}; -$java.nms_ChunkCache_isBlockNormalCube = function($this, $par1, $par2, $par3) { - var $var4; - nms_Block_$callClinit(); - $var4 = nms_Block_blocksList.data[$java.nms_ChunkCache_getBlockId($this, $par1, $par2, $par3)]; - return $var4 === null ? 0 : $var4.$blockMaterial.$blocksMovement() && $var4.$renderAsNormalBlock() ? 1 : 0; -}; -$java.nms_ChunkCache_doesBlockHaveSolidTopSurface = function($this, $par1, $par2, $par3) { - var $var4; - nms_Block_$callClinit(); - $var4 = nms_Block_blocksList.data[$java.nms_ChunkCache_getBlockId($this, $par1, $par2, $par3)]; - return nms_World_isBlockTopFacingSurfaceSolid($this.$worldObj8, $var4, $java.nms_ChunkCache_getBlockMetadata($this, $par1, $par2, $par3)); -}; -$java.nms_ChunkCache_getWorldVec3Pool = function($this) { - return $this.$worldObj8.$vecPool; -}; -$java.nms_ChunkCache_isAirBlock = function($this, $par1, $par2, $par3) { - nms_Block_$callClinit(); - return nms_Block_blocksList.data[$java.nms_ChunkCache_getBlockId($this, $par1, $par2, $par3)] !== null ? 0 : 1; -}; -$java.nms_ChunkCache_getSkyBlockTypeBrightness = function($this, $par1EnumSkyBlock, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9; - if ($par3 < 0) - $par3 = 0; - if ($par3 >= 256) - $par3 = 255; - if ($par3 >= 0 && $par3 < 256 && $par2 >= (-30000000) && $par4 >= (-30000000) && $par2 < 30000000 && $par4 <= 30000000) { - if ($par1EnumSkyBlock === nms_EnumSkyBlock_Sky && $this.$worldObj8.$provider.$hasNoSky) - return 0; - nms_Block_$callClinit(); - if (!nms_Block_useNeighborBrightness.data[$java.nms_ChunkCache_getBlockId($this, $par2, $par3, $par4)]) { - $var5 = ($par2 >> 4) - $this.$chunkX0 | 0; - $var6 = ($par4 >> 4) - $this.$chunkZ0 | 0; - return $this.$chunkArray.data[$var5].data[$var6].$getSavedLightValue($par1EnumSkyBlock, $par2 & 15, $par3, $par4 & 15); - } - $var5 = $java.nms_ChunkCache_getSpecialBlockBrightness($this, $par1EnumSkyBlock, $par2, $par3 + 1 | 0, $par4); - $var6 = $java.nms_ChunkCache_getSpecialBlockBrightness($this, $par1EnumSkyBlock, $par2 + 1 | 0, $par3, $par4); - $var7 = $java.nms_ChunkCache_getSpecialBlockBrightness($this, $par1EnumSkyBlock, $par2 - 1 | 0, $par3, $par4); - $var8 = $java.nms_ChunkCache_getSpecialBlockBrightness($this, $par1EnumSkyBlock, $par2, $par3, $par4 + 1 | 0); - $var9 = $java.nms_ChunkCache_getSpecialBlockBrightness($this, $par1EnumSkyBlock, $par2, $par3, $par4 - 1 | 0); - if ($var6 <= $var5) - $var6 = $var5; - if ($var7 <= $var6) - $var7 = $var6; - if ($var8 <= $var7) - $var8 = $var7; - if ($var9 <= $var8) - $var9 = $var8; - return $var9; - } - return $par1EnumSkyBlock.$defaultLightValue; -}; -$java.nms_ChunkCache_getSpecialBlockBrightness = function($this, $par1EnumSkyBlock, $par2, $par3, $par4) { - var $var5, $var6; - if ($par3 < 0) - $par3 = 0; - if ($par3 >= 256) - $par3 = 255; - if ($par3 >= 0 && $par3 < 256 && $par2 >= (-30000000) && $par4 >= (-30000000) && $par2 < 30000000 && $par4 <= 30000000) { - $var5 = ($par2 >> 4) - $this.$chunkX0 | 0; - $var6 = ($par4 >> 4) - $this.$chunkZ0 | 0; - return $this.$chunkArray.data[$var5].data[$var6].$getSavedLightValue($par1EnumSkyBlock, $par2 & 15, $par3, $par4 & 15); - } - return $par1EnumSkyBlock.$defaultLightValue; -}; -$java.nms_ChunkCache_getHeight = function($this) { - return 256; -}; -$java.nms_ChunkCache_isBlockProvidingPowerTo = function($this, $par1, $par2, $par3, $par4) { - var $var5; - $var5 = $java.nms_ChunkCache_getBlockId($this, $par1, $par2, $par3); - if (!$var5) - $par1 = 0; - else { - nms_Block_$callClinit(); - $par1 = nms_Block_blocksList.data[$var5].$isProvidingStrongPower($this, $par1, $par2, $par3, $par4); - } - return $par1; -}; -function nms_ChestItemRenderHelper() { - var a = this; jl_Object.call(a); - a.$theChest = null; - a.$theEnderChest = null; -} -var nms_ChestItemRenderHelper_instance = null; -$java.nms_ChestItemRenderHelper__init_ = function() { - var var_0 = new nms_ChestItemRenderHelper(); - nms_ChestItemRenderHelper__init_(var_0); - return var_0; -}; -function nms_ChestItemRenderHelper__init_($this) { - var var$1; - var$1 = new nms_TileEntityChest; - var$1.$blockMetadata = (-1); - var$1.$chestContents = $rt_createArray(nms_ItemStack, 36); - var$1.$adjacentChestChecked = 0; - var$1.$field_94046_i = (-1); - $this.$theChest = var$1; - var$1 = new nms_TileEntityEnderChest; - var$1.$blockMetadata = (-1); - $this.$theEnderChest = var$1; -} -function nms_ChestItemRenderHelper_renderChest($this, $par1Block, $par2, $par3) { - var var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$15 = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $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();var$5 = $thread.pop();var$4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Block = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $par2 = $par1Block.$blockID; - nms_Block_$callClinit(); - if ($par2 == nms_Block_enderChest.$blockID) { - nms_TileEntityRenderer_$callClinit(); - $par1Block = nms_TileEntityRenderer_instance; - var$4 = $this.$theEnderChest; - var$5 = 0.0; - var$6 = 0.0; - var$7 = 0.0; - $par3 = 0.0; - $par1Block = $java.nms_TileEntityRenderer_getSpecialRendererForEntity($par1Block, var$4); - if ($par1Block === null) - break a; - $ptr = 1; - continue main; - } - nms_TileEntityRenderer_$callClinit(); - $par1Block = nms_TileEntityRenderer_instance; - var$8 = $this.$theChest; - var$5 = 0.0; - var$6 = 0.0; - var$7 = 0.0; - $par3 = 0.0; - if (var$8 === null) - var$4 = null; - else { - var$9 = jl_Class_getClass(var$8.constructor); - var$4 = $par1Block.$specialRendererMap; - if (var$9 !== null) { - var$10 = jl_Object_identity(var$9); - var$4 = ju_HashMap_findNonNullKeyEntry(var$4, var$9, var$10 & (var$4.$elementData.data.length - 1 | 0), var$10); - } else { - var$4 = var$4.$elementData.data[0]; - while (var$4 !== null && var$4.$key !== null) { - var$4 = var$4.$next1; - } - } - var$4 = var$4 === null ? null : var$4.$value0; - if (var$4 === null && var$9 !== $rt_cls(nms_TileEntity)) { - var$11 = jl_Class_getClass(var$9.$platformClass.$meta.superclass); - var$4 = $par1Block.$specialRendererMap; - if (var$11 !== null) { - $par2 = jl_Object_identity(var$11); - var$4 = ju_HashMap_findNonNullKeyEntry(var$4, var$11, $par2 & (var$4.$elementData.data.length - 1 | 0), $par2); - } else { - var$4 = var$4.$elementData.data[0]; - while (var$4 !== null && var$4.$key !== null) { - var$4 = var$4.$next1; - } - } - var$4 = var$4 === null ? null : var$4.$value0; - if (var$4 === null && var$11 !== $rt_cls(nms_TileEntity)) { - var$12 = jl_Class_getClass(var$11.$platformClass.$meta.superclass); - var$4 = $par1Block.$specialRendererMap; - if (var$12 !== null) { - var$10 = jl_Object_hashCode(var$12); - var$4 = ju_HashMap_findNonNullKeyEntry(var$4, var$12, var$10 & (var$4.$elementData.data.length - 1 | 0), var$10); - } else { - var$4 = var$4.$elementData.data[0]; - while (var$4 !== null && var$4.$key !== null) { - var$4 = var$4.$next1; - } - } - var$4 = var$4 === null ? null : var$4.$value0; - if (var$4 === null && var$12 !== $rt_cls(nms_TileEntity)) { - var$13 = jl_Class_getClass(var$12.$platformClass.$meta.superclass); - var$4 = $par1Block.$specialRendererMap; - if (var$13 === null) - var$4 = ju_HashMap_findNullKeyEntry(var$4); - else { - var$14 = ju_HashMap_computeHashCode(var$13); - var$4 = ju_HashMap_findNonNullKeyEntry(var$4, var$13, var$14 & (var$4.$elementData.data.length - 1 | 0), var$14); - } - var$4 = var$4 === null ? null : var$4.$value0; - if (var$4 === null && var$13 !== $rt_cls(nms_TileEntity)) { - var$15 = jl_Class_getClass(var$13.$platformClass.$meta.superclass); - var$4 = ju_HashMap_getEntry($par1Block.$specialRendererMap, var$15); - var$4 = var$4 === null ? null : var$4.$value0; - if (var$4 === null && var$15 !== $rt_cls(nms_TileEntity)) { - var$4 = $java.nms_TileEntityRenderer_getSpecialRendererForClass($par1Block, jl_Class_getClass(var$15.$platformClass.$meta.superclass)); - ju_HashMap_putImpl($par1Block.$specialRendererMap, var$15, var$4); - } - ju_HashMap_putImpl($par1Block.$specialRendererMap, var$13, var$4); - } - ju_HashMap_putImpl($par1Block.$specialRendererMap, var$12, var$4); - } - ju_HashMap_putImpl($par1Block.$specialRendererMap, var$11, var$4); - } - ju_HashMap_putImpl($par1Block.$specialRendererMap, var$9, var$4); - } - } - if (var$4 !== null) { - $ptr = 2; - continue main; - } - } - return; - case 1: - $par1Block.$renderTileEntityAt(var$4, var$5, var$6, var$7, $par3); - if ($rt_suspending()) { - break main; - } - return; - case 2: - var$4.$renderTileEntityAt(var$8, var$5, var$6, var$7, $par3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Block, $par2, $par3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $ptr); -} -function nms_ChestItemRenderHelper__clinit_() { - var var$1, var$2; - var$1 = new nms_ChestItemRenderHelper; - var$2 = new nms_TileEntityChest; - var$2.$blockMetadata = (-1); - var$2.$chestContents = $rt_createArray(nms_ItemStack, 36); - var$2.$adjacentChestChecked = 0; - var$2.$field_94046_i = (-1); - var$1.$theChest = var$2; - var$2 = new nms_TileEntityEnderChest; - var$2.$blockMetadata = (-1); - var$1.$theEnderChest = var$2; - nms_ChestItemRenderHelper_instance = var$1; -} -$java.nms_GuiSlider = function() { - var a = this; nms_GuiButton.call(a); - a.$sliderValue = 0.0; - a.$dragging0 = 0; - a.$idFloat = null; -}; -$java.nms_GuiSlider_getHoverState = function($this, $par1) { - return 0; -}; -$java.nms_GuiSlider_mouseDragged = function($this, $par1Minecraft, $par2, $par3) { - if ($this.$drawButton0) { - if ($this.$dragging0) { - $this.$sliderValue = ($par2 - ($this.$xPosition3 + 4 | 0) | 0) / ($this.$width3 - 8 | 0); - if ($this.$sliderValue < 0.0) - $this.$sliderValue = 0.0; - if ($this.$sliderValue > 1.0) - $this.$sliderValue = 1.0; - nms_GameSettings_setOptionFloatValue($par1Minecraft.$gameSettings, $this.$idFloat, $this.$sliderValue); - $this.$displayString = nms_GameSettings_getKeyBinding($par1Minecraft.$gameSettings, $this.$idFloat); - } - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nms_Gui_drawTexturedModalRect($this, $this.$xPosition3 + ($this.$sliderValue * ($this.$width3 - 8 | 0) | 0) | 0, $this.$yPosition, 0, 66, 4, 20); - nms_Gui_drawTexturedModalRect($this, ($this.$xPosition3 + ($this.$sliderValue * ($this.$width3 - 8 | 0) | 0) | 0) + 4 | 0, $this.$yPosition, 196, 66, 4, 20); - } -}; -$java.nms_GuiSlider_mousePressed = function($this, $par1Minecraft, $par2, $par3) { - if (!$java.nms_GuiButton_mousePressed($this, $par1Minecraft, $par2, $par3)) - return 0; - $this.$sliderValue = ($par2 - ($this.$xPosition3 + 4 | 0) | 0) / ($this.$width3 - 8 | 0); - if ($this.$sliderValue < 0.0) - $this.$sliderValue = 0.0; - if ($this.$sliderValue > 1.0) - $this.$sliderValue = 1.0; - nms_GameSettings_setOptionFloatValue($par1Minecraft.$gameSettings, $this.$idFloat, $this.$sliderValue); - $this.$displayString = nms_GameSettings_getKeyBinding($par1Minecraft.$gameSettings, $this.$idFloat); - $this.$dragging0 = 1; - return 1; -}; -$java.nms_GuiSlider_mouseReleased = function($this, $par1, $par2) { - $this.$dragging0 = 0; -}; -$java.nms_GuiVideoSettings = function() { - var a = this; nms_GuiScreen.call(a); - a.$parentGuiScreen = null; - a.$screenTitle3 = null; - a.$guiGameSettings = null; - a.$is64bit = 0; -}; -$java.nms_GuiVideoSettings_videoOptions = null; -$java.nms_GuiVideoSettings_$callClinit = function() { - $java.nms_GuiVideoSettings_$callClinit = $rt_eraseClinit($java.nms_GuiVideoSettings); - $java.nms_GuiVideoSettings__clinit_(); -}; -$java.nms_GuiVideoSettings_initGui = function($this) { - var $var1, var$2, $var9, $var10, $var11, $var12, $var8, var$8, var$9, var$10, var$11, var$12; - $var1 = nms_StringTranslate_instance; - $this.$screenTitle3 = nms_StringTranslate_translateKey($var1, $rt_s(2675)); - var$2 = $this.$buttonList; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - ju_ArrayList_add($this.$buttonList, 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.$is64bit = 1; - $var9 = 0; - $var10 = $java.nms_GuiVideoSettings_videoOptions.data; - $var11 = $var10.length; - $var12 = 0; - while ($var12 < $var11) { - $var8 = $var10[$var12]; - if (!$var8.$enumFloat) { - var$8 = $this.$buttonList; - $var1 = new nms_GuiSmallButton; - nms_GuiButton__init_0($var1, $var8.$ordinal, (($this.$width0 / 2 | 0) - 155 | 0) + (($var9 % 2 | 0) * 160 | 0) | 0, ($this.$height0 / 7 | 0) + (24 * ($var9 >> 1) | 0) | 0, 150, 20, nms_GameSettings_getKeyBinding($this.$guiGameSettings, $var8)); - $var1.$enumOptions = $var8; - ju_ArrayList_add(var$8, $var1); - } else { - var$2 = $this.$buttonList; - var$8 = new $java.nms_GuiSlider; - var$9 = $var8.$ordinal; - var$10 = (($this.$width0 / 2 | 0) - 155 | 0) + (($var9 % 2 | 0) * 160 | 0) | 0; - var$11 = ($this.$height0 / 7 | 0) + (24 * ($var9 >> 1) | 0) | 0; - $var1 = nms_GameSettings_getKeyBinding($this.$guiGameSettings, $var8); - var$12 = nms_GameSettings_getOptionFloatValue($this.$guiGameSettings, $var8); - nms_GuiButton__init_0(var$8, var$9, var$10, var$11, 150, 20, $var1); - var$8.$sliderValue = 1.0; - var$8.$dragging0 = 0; - var$8.$idFloat = null; - var$8.$idFloat = $var8; - var$8.$sliderValue = var$12; - ju_ArrayList_add(var$2, var$8); - } - $var9 = $var9 + 1 | 0; - $var12 = $var12 + 1 | 0; - } -}; -$java.nms_GuiVideoSettings_actionPerformed = function($this, $par1GuiButton) { - var $var2, $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();$var2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$enabled) { - $var2 = $this.$guiGameSettings.$guiScale; - if ($par1GuiButton.$id2 < 100 && $par1GuiButton instanceof nms_GuiSmallButton) { - nms_GameSettings_setOptionValue($this.$guiGameSettings, $par1GuiButton.$enumOptions, 1); - $par1GuiButton.$displayString = nms_GameSettings_getKeyBinding($this.$guiGameSettings, nms_EnumOptions_getEnumOptions($par1GuiButton.$id2)); - } - if ($par1GuiButton.$id2 == 200) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - $par1GuiButton = $this.$mc4; - $var3 = $this.$parentGuiScreen; - $ptr = 1; - continue main; - } - if ($this.$guiGameSettings.$guiScale != $var2) { - $var3 = nms_ScaledResolution__init_($this.$mc4.$gameSettings, $this.$mc4.$displayWidth, $this.$mc4.$displayHeight); - $var4 = $var3.$scaledWidth; - $var5 = $var3.$scaledHeight; - $par1GuiButton = $this.$mc4; - $var3 = new nms_GuiParticle; - $var3.$zLevel = 0.0; - var$6 = new ju_ArrayList; - var$6.$array1 = $rt_createArray(jl_Object, 10); - $var3.$particles = var$6; - $var3.$mc5 = $par1GuiButton; - $this.$guiParticles = $var3; - $this.$mc4 = $par1GuiButton; - $this.$fontRenderer0 = $par1GuiButton.$fontRenderer; - $this.$width0 = $var4; - $this.$height0 = $var5; - $par1GuiButton = $this.$buttonList; - ju_Arrays_fill($par1GuiButton.$array1, 0, $par1GuiButton.$size0, null); - $par1GuiButton.$size0 = 0; - $ptr = 2; - continue main; - } - } - return; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var3); - if ($rt_suspending()) { - break main; - } - if ($this.$guiGameSettings.$guiScale == $var2) - return; - $var3 = nms_ScaledResolution__init_($this.$mc4.$gameSettings, $this.$mc4.$displayWidth, $this.$mc4.$displayHeight); - $var4 = $var3.$scaledWidth; - $var5 = $var3.$scaledHeight; - $par1GuiButton = $this.$mc4; - $var3 = new nms_GuiParticle; - $var3.$zLevel = 0.0; - var$6 = new ju_ArrayList; - var$6.$array1 = $rt_createArray(jl_Object, 10); - $var3.$particles = var$6; - $var3.$mc5 = $par1GuiButton; - $this.$guiParticles = $var3; - $this.$mc4 = $par1GuiButton; - $this.$fontRenderer0 = $par1GuiButton.$fontRenderer; - $this.$width0 = $var4; - $this.$height0 = $var5; - $par1GuiButton = $this.$buttonList; - ju_Arrays_fill($par1GuiButton.$array1, 0, $par1GuiButton.$size0, null); - $par1GuiButton.$size0 = 0; - $ptr = 2; - case 2: - $java.nms_GuiVideoSettings_initGui($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, $var2, $var3, $var4, $var5, var$6, $ptr); -}; -$java.nms_GuiVideoSettings_drawScreen = function($this, $par1, $par2, $par3) { - var var$4, var$5, var$6, var$7, var$8, var$9; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$4 = $this.$fontRenderer0; - var$5 = $this.$screenTitle3; - var$6 = $this.$width0 / 2 | 0; - var$7 = !$this.$is64bit ? 5 : 20; - nms_FontRenderer_drawString(var$4, var$5, var$6 - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, var$7, 16777215, 1); - if (!$this.$is64bit && !$this.$guiGameSettings.$renderDistance) { - var$4 = $this.$fontRenderer0; - var$5 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2676)); - var$8 = $this.$width0 / 2 | 0; - var$9 = (($this.$height0 / 6 | 0) + 144 | 0) + 1 | 0; - nms_FontRenderer_drawString(var$4, var$5, var$8 - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, var$9, 11468800, 1); - var$4 = $this.$fontRenderer0; - var$5 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2677)); - var$8 = $this.$width0 / 2 | 0; - var$9 = (($this.$height0 / 6 | 0) + 144 | 0) + 13 | 0; - nms_FontRenderer_drawString(var$4, var$5, var$8 - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, var$9, 11468800, 1); - } - var$8 = 0; - a: { - while (var$8 < $this.$buttonList.$size0) { - var$4 = $this.$buttonList; - if (var$8 < 0) - break a; - if (var$8 >= var$4.$size0) - break a; - var$4.$array1.data[var$8].$drawButton($this.$mc4, $par1, $par2); - var$8 = var$8 + 1 | 0; - } - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -}; -$java.nms_GuiVideoSettings__clinit_ = function() { - var var$1, var$2; - var$1 = $rt_createArray(nms_EnumOptions, 12); - var$2 = var$1.data; - var$2[0] = nms_EnumOptions_GRAPHICS; - var$2[1] = nms_EnumOptions_RENDER_DISTANCE; - var$2[2] = nms_EnumOptions_AMBIENT_OCCLUSION; - var$2[3] = nms_EnumOptions_FRAMERATE_LIMIT; - var$2[4] = nms_EnumOptions_ANAGLYPH; - var$2[5] = nms_EnumOptions_VIEW_BOBBING; - var$2[6] = nms_EnumOptions_GUI_SCALE; - var$2[7] = nms_EnumOptions_GAMMA; - var$2[8] = nms_EnumOptions_RENDER_CLOUDS; - var$2[9] = nms_EnumOptions_ENABLE_FOG; - var$2[10] = nms_EnumOptions_PARTICLES; - var$2[11] = nms_EnumOptions_ENABLE_VSYNC; - $java.nms_GuiVideoSettings_videoOptions = var$1; -}; -$java.nms_GuiControls = function() { - var a = this; nms_GuiScreen.call(a); - a.$parentScreen1 = null; - a.$screenTitle4 = null; - a.$options3 = null; - a.$buttonId = 0; -}; -$java.nms_GuiControls_initGui = function($this) { - var $var1, $var2, $var3, var$4, var$5, var$6, var$7, var$8, var$9, var$10; - $var1 = nms_StringTranslate_instance; - $var2 = ($this.$width0 / 2 | 0) - 155 | 0; - $var3 = 0; - while ($var3 < $this.$options3.$keyBindings.data.length) { - var$4 = $this.$buttonList; - var$5 = new nms_GuiSmallButton; - var$6 = $var2 + (($var3 % 2 | 0) * 160 | 0) | 0; - var$7 = ($this.$height0 / 6 | 0) + (20 * ($var3 >> 1) | 0) | 0; - var$8 = $this.$options3.$keyBindings.data[$var3].$keyCode; - if (var$8 < 0) { - var$9 = $rt_createArray(jl_Object, 1); - var$9.data[0] = jl_Integer_valueOf(var$8 + 101 | 0); - var$10 = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(534), var$9); - } else { - nlea_EaglerAdapterImpl2_$callClinit(); - var$10 = var$8 >= 0 && var$8 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[var$8] : $rt_s(47); - } - nms_GuiButton__init_0(var$5, $var3, var$6, var$7, 70, 20, var$10); - var$5.$enumOptions = null; - ju_ArrayList_add(var$4, var$5); - $var3 = $var3 + 1 | 0; - } - ju_ArrayList_add($this.$buttonList, 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.$screenTitle4 = nms_StringTranslate_translateKey($var1, $rt_s(2678)); -}; -$java.nms_GuiControls_actionPerformed = function($this, $par1GuiButton) { - var $var2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = 0; - while (true) { - if ($var2 >= $this.$options3.$keyBindings.data.length) { - if ($par1GuiButton.$id2 != 200) { - $this.$buttonId = $par1GuiButton.$id2; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(2644)); - var$4 = $this.$options3; - $var2 = $par1GuiButton.$id2; - var$5 = var$4.$keyBindings.data[$var2].$keyCode; - if (var$5 < 0) { - var$6 = $rt_createArray(jl_Object, 1); - var$6.data[0] = jl_Integer_valueOf(var$5 + 101 | 0); - var$4 = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(534), var$6); - } else { - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = var$5 >= 0 && var$5 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[var$5] : $rt_s(47); - } - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$4); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(2645)); - $par1GuiButton.$displayString = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - return; - } - $par1GuiButton = $this.$mc4; - var$3 = $this.$parentScreen1; - $ptr = 1; - continue main; - } - var$3 = $this.$buttonList; - if ($var2 < 0) - break; - if ($var2 >= var$3.$size0) - break; - var$3 = var$3.$array1.data[$var2]; - var$7 = $this.$options3.$keyBindings.data[$var2].$keyCode; - if (var$7 < 0) { - var$8 = $rt_createArray(jl_Object, 1); - var$8.data[0] = jl_Integer_valueOf(var$7 + 101 | 0); - var$4 = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(534), var$8); - } else { - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = var$7 >= 0 && var$7 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[var$7] : $rt_s(47); - } - var$3.$displayString = var$4; - $var2 = $var2 + 1 | 0; - } - $par1GuiButton = new jl_IndexOutOfBoundsException; - $par1GuiButton.$suppressionEnabled = 1; - $par1GuiButton.$writableStackTrace = 1; - $rt_throw($par1GuiButton); - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, $var2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_GuiControls_mouseClicked = function($this, $par1, $par2, $par3) { - var var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$buttonId >= 0) { - var$4 = $this.$options3; - $par1 = $this.$buttonId; - var$4.$keyBindings.data[$par1].$keyCode = (-100) + $par3 | 0; - nms_GameSettings_saveOptions(var$4); - var$4 = $this.$buttonList; - $par1 = $this.$buttonId; - if ($par1 >= 0 && $par1 < var$4.$size0) { - var$4 = var$4.$array1.data[$par1]; - var$5 = $this.$options3; - $par1 = $this.$buttonId; - $par1 = var$5.$keyBindings.data[$par1].$keyCode; - if ($par1 < 0) { - var$6 = $rt_createArray(jl_Object, 1); - var$6.data[0] = jl_Integer_valueOf($par1 + 101 | 0); - var$5 = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(534), var$6); - } else { - nlea_EaglerAdapterImpl2_$callClinit(); - var$5 = $par1 >= 0 && $par1 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[$par1] : $rt_s(47); - } - var$4.$displayString = var$5; - $this.$buttonId = (-1); - nms_IntHashMap_clearMap(nms_KeyBinding_hash); - var$4 = nms_KeyBinding_keybindArray; - var$7 = 0; - $par3 = var$4.$modCount0; - var$8 = var$4.$size2(); - while (var$7 >= var$8 ? 0 : 1) { - if ($par3 < var$4.$modCount0) { - var$4 = new ju_ConcurrentModificationException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - $par2 = var$7 + 1 | 0; - var$5 = var$4.$get4(var$7); - nms_IntHashMap_addKey(nms_KeyBinding_hash, var$5.$keyCode, var$5); - var$7 = $par2; - } - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - $ptr = 1; - case 1: - nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_GuiControls_keyTyped = function($this, $par1, $par2) { - var var$3, var$4, var$5, var$6, var$7, var$8; - if ($this.$buttonId >= 0) { - var$3 = $this.$options3; - $par1 = $this.$buttonId; - var$3.$keyBindings.data[$par1].$keyCode = $par2; - nms_GameSettings_saveOptions(var$3); - var$3 = $this.$buttonList; - $par1 = $this.$buttonId; - if ($par1 >= 0 && $par1 < var$3.$size0) { - var$3 = var$3.$array1.data[$par1]; - var$4 = $this.$options3; - $par1 = $this.$buttonId; - $par1 = var$4.$keyBindings.data[$par1].$keyCode; - if ($par1 < 0) { - var$5 = $rt_createArray(jl_Object, 1); - var$5.data[0] = jl_Integer_valueOf($par1 + 101 | 0); - var$4 = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(534), var$5); - } else { - nlea_EaglerAdapterImpl2_$callClinit(); - var$4 = $par1 >= 0 && $par1 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[$par1] : $rt_s(47); - } - var$3.$displayString = var$4; - $this.$buttonId = (-1); - nms_IntHashMap_clearMap(nms_KeyBinding_hash); - var$3 = nms_KeyBinding_keybindArray; - var$6 = 0; - var$7 = var$3.$modCount0; - var$8 = var$3.$size2(); - while (var$6 >= var$8 ? 0 : 1) { - if (var$7 < var$3.$modCount0) { - var$3 = new ju_ConcurrentModificationException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - $par2 = var$6 + 1 | 0; - var$4 = var$3.$get4(var$6); - nms_IntHashMap_addKey(nms_KeyBinding_hash, var$4.$keyCode, var$4); - var$6 = $par2; - } - } else { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - } -}; -$java.nms_GuiControls_drawScreen = function($this, $par1, $par2, $par3) { - var var$4, var$5, $var4, $var5, var$8, $var6, $var7, var$11; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$4 = $this.$fontRenderer0; - var$5 = $this.$screenTitle4; - nms_FontRenderer_drawString(var$4, var$5, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, 20, 16777215, 1); - $var4 = ($this.$width0 / 2 | 0) - 155 | 0; - $var5 = 0; - while (true) { - if ($var5 >= $this.$options3.$keyBindings.data.length) { - var$8 = 0; - a: { - while (var$8 < $this.$buttonList.$size0) { - var$4 = $this.$buttonList; - if (var$8 < 0) - break a; - if (var$8 >= var$4.$size0) - break a; - var$4.$array1.data[var$8].$drawButton($this.$mc4, $par1, $par2); - var$8 = var$8 + 1 | 0; - } - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - $var6 = 0; - $var7 = 0; - b: { - while ($var7 < $this.$options3.$keyBindings.data.length) { - if ($var7 != $var5 && $this.$options3.$keyBindings.data[$var5].$keyCode == $this.$options3.$keyBindings.data[$var7].$keyCode) { - $var6 = 1; - break b; - } - $var7 = $var7 + 1 | 0; - } - } - if ($this.$buttonId != $var5) { - if (!$var6) { - var$4 = $this.$buttonList; - ju_ArrayList_checkIndex(var$4, $var5); - var$4.$array1.data[$var5].$displayString = nms_GameSettings_getKeyDisplayString($this.$options3.$keyBindings.data[$var5].$keyCode); - } else { - var$4 = $this.$buttonList; - ju_ArrayList_checkIndex(var$4, $var5); - var$4.$array1.data[$var5].$displayString = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder__init_(), nms_EnumChatFormatting_RED), nms_GameSettings_getOptionDisplayString($this.$options3, $var5))); - } - } else { - var$4 = $this.$buttonList; - if ($var5 < 0) - break; - if ($var5 >= var$4.$size0) - break; - var$4 = var$4.$array1.data[$var5]; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(44)); - var$11 = nms_EnumChatFormatting_WHITE; - jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$11 === null ? $rt_s(47) : var$11.$field_96304_B); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(2644)); - var$11 = nms_EnumChatFormatting_YELLOW; - jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$11 === null ? $rt_s(47) : var$11.$field_96304_B); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(2679)); - var$11 = nms_EnumChatFormatting_WHITE; - jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$11 === null ? $rt_s(47) : var$11.$field_96304_B); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(2196)); - var$4.$displayString = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - } - var$4 = $this.$fontRenderer0; - var$5 = $this.$options3; - nms_FontRenderer_drawString(var$4, nms_StringTranslate_translateKey(nms_StringTranslate_instance, var$5.$keyBindings.data[$var5].$keyDescription), (($var4 + (($var5 % 2 | 0) * 160 | 0) | 0) + 70 | 0) + 6 | 0, (($this.$height0 / 6 | 0) + (20 * ($var5 >> 1) | 0) | 0) + 7 | 0, (-1), 1); - $var5 = $var5 + 1 | 0; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -}; -$java.nms_GuiScreenChatOptions = function() { - var a = this; nms_GuiScreen.call(a); - a.$theGuiScreen = null; - a.$theSettings = null; - a.$theChatOptions = null; - a.$field_82268_n = null; - a.$field_82269_o = 0; -}; -$java.nms_GuiScreenChatOptions_allScreenChatOptions = null; -$java.nms_GuiScreenChatOptions_allMultiplayerOptions = null; -$java.nms_GuiScreenChatOptions_$callClinit = function() { - $java.nms_GuiScreenChatOptions_$callClinit = $rt_eraseClinit($java.nms_GuiScreenChatOptions); - $java.nms_GuiScreenChatOptions__clinit_(); -}; -$java.nms_GuiScreenChatOptions_initGui = function($this) { - var $var1, $var2, $var3, $var4, $var5, $var6, var$7, var$8, $var6_0, var$10, var$11, var$12, var$13, var$14, var$15, var$16; - $var1 = nms_StringTranslate_instance; - $var2 = 0; - $this.$theChatOptions = nms_StringTranslate_translateKey($var1, $rt_s(2680)); - $this.$field_82268_n = nms_StringTranslate_translateKey($var1, $rt_s(2622)); - $var3 = $java.nms_GuiScreenChatOptions_allScreenChatOptions.data; - $var4 = $var3.length; - $var5 = 0; - while ($var5 < $var4) { - $var6 = $var3[$var5]; - if (!$var6.$enumFloat) { - var$7 = $this.$buttonList; - var$8 = new nms_GuiSmallButton; - nms_GuiButton__init_0(var$8, $var6.$ordinal, (($this.$width0 / 2 | 0) - 155 | 0) + (($var2 % 2 | 0) * 160 | 0) | 0, ($this.$height0 / 6 | 0) + (24 * ($var2 >> 1) | 0) | 0, 150, 20, nms_GameSettings_getKeyBinding($this.$theSettings, $var6)); - var$8.$enumOptions = $var6; - ju_ArrayList_add(var$7, var$8); - } else { - $var6_0 = $this.$buttonList; - var$7 = new $java.nms_GuiSlider; - var$10 = $var6.$ordinal; - var$11 = (($this.$width0 / 2 | 0) - 155 | 0) + (($var2 % 2 | 0) * 160 | 0) | 0; - var$12 = ($this.$height0 / 6 | 0) + (24 * ($var2 >> 1) | 0) | 0; - var$8 = nms_GameSettings_getKeyBinding($this.$theSettings, $var6); - var$13 = nms_GameSettings_getOptionFloatValue($this.$theSettings, $var6); - nms_GuiButton__init_0(var$7, var$10, var$11, var$12, 150, 20, var$8); - var$7.$sliderValue = 1.0; - var$7.$dragging0 = 0; - var$7.$idFloat = null; - var$7.$idFloat = $var6; - var$7.$sliderValue = var$13; - ju_ArrayList_add($var6_0, var$7); - } - $var2 = $var2 + 1 | 0; - $var5 = $var5 + 1 | 0; - } - if (($var2 % 2 | 0) == 1) - $var2 = $var2 + 1 | 0; - $this.$field_82269_o = ($this.$height0 / 6 | 0) + (24 * ($var2 >> 1) | 0) | 0; - $var2 = $var2 + 2 | 0; - $var3 = $java.nms_GuiScreenChatOptions_allMultiplayerOptions.data; - var$11 = $var3.length; - var$12 = 0; - while (var$12 < var$11) { - $var6_0 = $var3[var$12]; - if (!$var6_0.$enumFloat) { - var$7 = $this.$buttonList; - var$8 = new nms_GuiSmallButton; - nms_GuiButton__init_0(var$8, $var6_0.$ordinal, (($this.$width0 / 2 | 0) - 155 | 0) + (($var2 % 2 | 0) * 160 | 0) | 0, ($this.$height0 / 6 | 0) + (24 * ($var2 >> 1) | 0) | 0, 150, 20, nms_GameSettings_getKeyBinding($this.$theSettings, $var6_0)); - var$8.$enumOptions = $var6_0; - ju_ArrayList_add(var$7, var$8); - } else { - var$7 = $this.$buttonList; - var$8 = new $java.nms_GuiSlider; - $var4 = $var6_0.$ordinal; - var$14 = (($this.$width0 / 2 | 0) - 155 | 0) + (($var2 % 2 | 0) * 160 | 0) | 0; - var$15 = ($this.$height0 / 6 | 0) + (24 * ($var2 >> 1) | 0) | 0; - var$16 = nms_GameSettings_getKeyBinding($this.$theSettings, $var6_0); - var$13 = nms_GameSettings_getOptionFloatValue($this.$theSettings, $var6_0); - nms_GuiButton__init_0(var$8, $var4, var$14, var$15, 150, 20, var$16); - var$8.$sliderValue = 1.0; - var$8.$dragging0 = 0; - var$8.$idFloat = null; - var$8.$idFloat = $var6_0; - var$8.$sliderValue = var$13; - ju_ArrayList_add(var$7, var$8); - } - $var2 = $var2 + 1 | 0; - var$12 = var$12 + 1 | 0; - } - ju_ArrayList_add($this.$buttonList, 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)))); -}; -$java.nms_GuiScreenChatOptions_actionPerformed = function($this, $par1GuiButton) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$enabled) { - if ($par1GuiButton.$id2 < 100 && $par1GuiButton instanceof nms_GuiSmallButton) { - nms_GameSettings_setOptionValue($this.$theSettings, $par1GuiButton.$enumOptions, 1); - $par1GuiButton.$displayString = nms_GameSettings_getKeyBinding($this.$theSettings, nms_EnumOptions_getEnumOptions($par1GuiButton.$id2)); - } - if ($par1GuiButton.$id2 == 200) { - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); - $par1GuiButton = $this.$mc4; - var$2 = $this.$theGuiScreen; - $ptr = 1; - continue main; - } - } - return; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, $ptr); -}; -$java.nms_GuiScreenChatOptions_drawScreen = function($this, $par1, $par2, $par3) { - var var$4, var$5, var$6, var$7; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$4 = $this.$fontRenderer0; - var$5 = $this.$theChatOptions; - nms_FontRenderer_drawString(var$4, var$5, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, 20, 16777215, 1); - var$4 = $this.$fontRenderer0; - var$5 = $this.$field_82268_n; - var$6 = $this.$width0 / 2 | 0; - var$7 = $this.$field_82269_o + 7 | 0; - nms_FontRenderer_drawString(var$4, var$5, var$6 - (nms_FontRenderer_getStringWidth(var$4, var$5) / 2 | 0) | 0, var$7, 16777215, 1); - var$6 = 0; - a: { - while (var$6 < $this.$buttonList.$size0) { - var$4 = $this.$buttonList; - if (var$6 < 0) - break a; - if (var$6 >= var$4.$size0) - break a; - var$4.$array1.data[var$6].$drawButton($this.$mc4, $par1, $par2); - var$6 = var$6 + 1 | 0; - } - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -}; -$java.nms_GuiScreenChatOptions__clinit_ = function() { - var var$1, var$2; - var$1 = $rt_createArray(nms_EnumOptions, 9); - var$2 = var$1.data; - var$2[0] = nms_EnumOptions_CHAT_VISIBILITY; - var$2[1] = nms_EnumOptions_CHAT_COLOR; - var$2[2] = nms_EnumOptions_CHAT_LINKS; - var$2[3] = nms_EnumOptions_CHAT_OPACITY; - var$2[4] = nms_EnumOptions_CHAT_LINKS_PROMPT; - var$2[5] = nms_EnumOptions_CHAT_SCALE; - var$2[6] = nms_EnumOptions_CHAT_HEIGHT_FOCUSED; - var$2[7] = nms_EnumOptions_CHAT_HEIGHT_UNFOCUSED; - var$2[8] = nms_EnumOptions_CHAT_WIDTH; - $java.nms_GuiScreenChatOptions_allScreenChatOptions = var$1; - var$1 = $rt_createArray(nms_EnumOptions, 1); - var$1.data[0] = nms_EnumOptions_SHOW_CAPE; - $java.nms_GuiScreenChatOptions_allMultiplayerOptions = var$1; -}; -function nms_GuiSlot() { - var a = this; jl_Object.call(a); - a.$mc16 = null; - a.$width9 = 0; - a.$height10 = 0; - a.$top = 0; - a.$bottom = 0; - a.$right0 = 0; - a.$left1 = 0; - a.$slotHeight = 0; - a.$scrollUpButtonID = 0; - a.$scrollDownButtonID = 0; - a.$mouseX = 0; - a.$mouseY = 0; - a.$initialClickY = 0.0; - a.$scrollMultiplier = 0.0; - a.$amountScrolled = 0.0; - a.$selectedElement = 0; - a.$lastClicked = Long_ZERO; - a.$showSelectionBox = 0; - a.$field_77243_s = 0; - a.$field_77242_t = 0; -} -$java.nms_GuiSlot_tex = null; -$java.nms_GuiSlot__init_0 = function(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_GuiSlot(); - $java.nms_GuiSlot__init_(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -}; -$java.nms_GuiSlot__init_ = function($this, $par1Minecraft, $par2, $par3, $par4, $par5, $par6) { - $this.$initialClickY = (-2.0); - $this.$selectedElement = (-1); - $this.$lastClicked = Long_ZERO; - $this.$showSelectionBox = 1; - $this.$mc16 = $par1Minecraft; - $this.$width9 = $par2; - $this.$height10 = $par3; - $this.$top = $par4; - $this.$bottom = $par5; - $this.$slotHeight = $par6; - $this.$left1 = 0; - $this.$right0 = $par2; -}; -$java.nms_GuiSlot_func_77207_a = function($this, $par1, $par2, $par3, $par4) { - $this.$width9 = $par1; - $this.$height10 = $par2; - $this.$top = $par3; - $this.$bottom = $par4; - $this.$left1 = 0; - $this.$right0 = $par1; -}; -$java.nms_GuiSlot_func_77222_a = function($this, $par1, $par2, $par3Tessellator) { - return; -}; -$java.nms_GuiSlot_func_77224_a = function($this, $par1, $par2) { - return; -}; -$java.nms_GuiSlot_func_77215_b = function($this, $par1, $par2) { - return; -}; -$java.nms_GuiSlot_registerScrollButtons = function($this, $par1List, $par2, $par3) { - $this.$scrollUpButtonID = $par2; - $this.$scrollDownButtonID = $par3; -}; -$java.nms_GuiSlot_bindAmountScrolled = function($this) { - var $var1, var$2, var$3; - $var1 = $this.$getContentHeight() - (($this.$bottom - $this.$top | 0) - 4 | 0) | 0; - if ($var1 < 0) - $var1 = $var1 / 2 | 0; - if ($this.$amountScrolled < 0.0) - $this.$amountScrolled = 0.0; - var$2 = $this.$amountScrolled; - var$3 = $var1; - if (var$2 > var$3) - $this.$amountScrolled = var$3; -}; -$java.nms_GuiSlot_func_77209_d = function($this) { - return $this.$getContentHeight() - (($this.$bottom - $this.$top | 0) - 4 | 0) | 0; -}; -$java.nms_GuiSlot_func_77208_b = function($this, $par1) { - $this.$amountScrolled = $this.$amountScrolled + $par1; - $java.nms_GuiSlot_bindAmountScrolled($this); - $this.$initialClickY = (-2.0); -}; -$java.nms_GuiSlot_actionPerformed = function($this, $par1GuiButton) { - if ($par1GuiButton.$enabled) { - if ($par1GuiButton.$id2 == $this.$scrollUpButtonID) { - $this.$amountScrolled = $this.$amountScrolled - (($this.$slotHeight * 2 | 0) / 3 | 0); - $this.$initialClickY = (-2.0); - $java.nms_GuiSlot_bindAmountScrolled($this); - } else if ($par1GuiButton.$id2 == $this.$scrollDownButtonID) { - $this.$amountScrolled = $this.$amountScrolled + (($this.$slotHeight * 2 | 0) / 3 | 0); - $this.$initialClickY = (-2.0); - $java.nms_GuiSlot_bindAmountScrolled($this); - } - } -}; -$java.nms_GuiSlot_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var16, $var7, $var8, $var9, $var10, $var11, $var12, $var20, $var13, $var17, $var18, $var14, $var15, var$20, var$21, var$22, var$23, var$24, var$25, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$25 = $thread.pop();var$24 = $thread.pop();var$23 = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var13 = $thread.pop();$var20 = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var16 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 - = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$mouseX = $par1; - $this.$mouseY = $par2; - $this.$drawBackground0(); - $var4 = $this.$getSize(); - $var5 = $java.nms_GuiSlot_getScrollBarX($this); - $var6 = $var5 + 6 | 0; - if (!nlea_EaglerAdapterImpl2_mouseIsButtonDown(0)) { - while (!$this.$mc16.$gameSettings.$touchscreen && nlea_EaglerAdapterImpl2_mouseNext()) { - $var16 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel(); - if ($var16) { - if ($var16 > 0) - $var16 = (-1); - else if ($var16 < 0) - $var16 = 1; - $this.$amountScrolled = $this.$amountScrolled + ($rt_imul($var16, $this.$slotHeight) / 2 | 0); - } - } - $this.$initialClickY = (-1.0); - } else if ($this.$initialClickY === (-1.0)) { - $var7 = 1; - if ($par2 >= $this.$top && $par2 <= $this.$bottom) { - $var8 = ($this.$width9 / 2 | 0) - 110 | 0; - $var9 = ($this.$width9 / 2 | 0) + 110 | 0; - $var10 = ((($par2 - $this.$top | 0) - $this.$field_77242_t | 0) + ($this.$amountScrolled | 0) | 0) - 4 | 0; - $var11 = $var10 / $this.$slotHeight | 0; - $var16 = $rt_compare($par1, $var8); - if ($var16 >= 0 && $par1 <= $var9 && $var11 >= 0 && $var10 >= 0 && $var11 < $var4) { - $var12 = $var11 == $this.$selectedElement && Long_lt(Long_sub(nmc_Minecraft_getSystemTime(), $this.$lastClicked), Long_fromInt(250)) ? 1 : 0; - $ptr = 1; - continue main; - } - if ($var16 >= 0 && $par1 <= $var9 && $var10 < 0) { - $java.nms_GuiSlot_func_77224_a($this, $par1 - $var8 | 0, (($par2 - $this.$top | 0) + ($this.$amountScrolled | 0) | 0) - 4 | 0); - $var7 = 0; - } - if ($par1 >= $var5 && $par1 <= $var6) { - $this.$scrollMultiplier = (-1.0); - $var20 = $java.nms_GuiSlot_func_77209_d($this); - if ($var20 < 1) - $var20 = 1; - $var13 = $rt_imul($this.$bottom - $this.$top | 0, $this.$bottom - $this.$top | 0) / $this.$getContentHeight() | 0; - if ($var13 < 32) - $var13 = 32; - if ($var13 > (($this.$bottom - $this.$top | 0) - 8 | 0)) - $var13 = ($this.$bottom - $this.$top | 0) - 8 | 0; - $this.$scrollMultiplier = $this.$scrollMultiplier / ((($this.$bottom - $this.$top | 0) - $var13 | 0) / $var20); - } else - $this.$scrollMultiplier = 1.0; - if (!$var7) - $this.$initialClickY = (-2.0); - else - $this.$initialClickY = $par2; - } else - $this.$initialClickY = (-2.0); - } else if ($this.$initialClickY >= 0.0) { - $par3 = $this.$amountScrolled; - $var17 = $par2; - $this.$amountScrolled = $par3 - ($var17 - $this.$initialClickY) * $this.$scrollMultiplier; - $this.$initialClickY = $var17; - } - $java.nms_GuiSlot_bindAmountScrolled($this); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(14); - nlea_Tessellator_$callClinit(); - $var18 = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture($java.nms_GuiSlot_tex); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorOpaque_I($var18, 2105376); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$bottom, 0.0, $this.$left1 / 32.0, ($this.$bottom + ($this.$amountScrolled | 0) | 0) / 32.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$bottom, 0.0, $this.$right0 / 32.0, ($this.$bottom + ($this.$amountScrolled | 0) | 0) / 32.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$top, 0.0, $this.$right0 / 32.0, ($this.$top + ($this.$amountScrolled | 0) | 0) / 32.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$top, 0.0, $this.$left1 / 32.0, ($this.$top + ($this.$amountScrolled | 0) | 0) / 32.0); - nlea_Tessellator_draw($var18); - $var9 = (($this.$width9 / 2 | 0) - 92 | 0) - 16 | 0; - $var10 = ($this.$top + 4 | 0) - ($this.$amountScrolled | 0) | 0; - if ($this.$field_77243_s) - $java.nms_GuiSlot_func_77222_a($this, $var9, $var10, $var18); - $var11 = 0; - while ($var11 < $var4) { - $var20 = ($var10 + $rt_imul($var11, $this.$slotHeight) | 0) + $this.$field_77242_t | 0; - $var13 = $this.$slotHeight - 4 | 0; - if ($var20 <= $this.$bottom) { - $var7 = $var20 + $var13 | 0; - if ($var7 >= $this.$top) { - if ($this.$showSelectionBox && $this.$isSelected($var11)) { - $var14 = ($this.$width9 / 2 | 0) - 110 | 0; - $var15 = ($this.$width9 / 2 | 0) + 110 | 0; - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorOpaque_I($var18, 8421504); - var$20 = $var14; - var$21 = $var7 + 2 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$20, var$21, 0.0, 0.0, 1.0); - var$22 = $var15; - nlea_Tessellator_addVertexWithUV($var18, var$22, var$21, 0.0, 1.0, 1.0); - var$21 = $var20 - 2 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$22, var$21, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$20, var$21, 0.0, 0.0, 0.0); - nlea_Tessellator_setColorOpaque_I($var18, 0); - var$21 = $var14 + 1 | 0; - var$23 = $var7 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$21, var$23, 0.0, 0.0, 1.0); - var$24 = $var15 - 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$24, var$23, 0.0, 1.0, 1.0); - var$23 = $var20 - 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$24, var$23, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$21, var$23, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - nleg_EaglerAdapterGL30_glEnable(2); - } - $this.$drawSlot($var11, $var9, $var20, $var13, $var18); - } - } - $var11 = $var11 + 1 | 0; - } - nleg_EaglerAdapterGL30_glDisable(4); - $java.nms_GuiSlot_overlayBackground($this, 0, $this.$top, 255, 255); - $java.nms_GuiSlot_overlayBackground($this, $this.$bottom, $this.$height10, 255, 255); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glShadeModel(3); - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 0, 0); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$top + 4 | 0, 0.0, 0.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$top + 4 | 0, 0.0, 1.0, 1.0); - nlea_Tessellator_setColorRGBA_I($var18, 0, 255); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$top, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$top, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 0, 255); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$bottom, 0.0, 0.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$bottom, 0.0, 1.0, 1.0); - nlea_Tessellator_setColorRGBA_I($var18, 0, 0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$bottom - 4 | 0, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$bottom - 4 | 0, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - $var20 = $java.nms_GuiSlot_func_77209_d($this); - if ($var20 > 0) { - $var13 = $rt_imul($this.$bottom - $this.$top | 0, $this.$bottom - $this.$top | 0) / $this.$getContentHeight() | 0; - if ($var13 < 32) - $var13 = 32; - if ($var13 > (($this.$bottom - $this.$top | 0) - 8 | 0)) - $var13 = ($this.$bottom - $this.$top | 0) - 8 | 0; - $var14 = ($rt_imul($this.$amountScrolled | 0, ($this.$bottom - $this.$top | 0) - $var13 | 0) / $var20 | 0) + $this.$top | 0; - if ($var14 < $this.$top) - $var14 = $this.$top; - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 0, 255); - var$21 = $var5; - nlea_Tessellator_addVertexWithUV($var18, var$21, $this.$bottom, 0.0, 0.0, 1.0); - var$23 = $var6; - nlea_Tessellator_addVertexWithUV($var18, var$23, $this.$bottom, 0.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, var$23, $this.$top, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$21, $this.$top, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 8421504, 255); - $var16 = $var14 + $var13 | 0; - var$24 = $var16; - nlea_Tessellator_addVertexWithUV($var18, var$21, var$24, 0.0, 0.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, var$23, var$24, 0.0, 1.0, 1.0); - var$24 = $var14; - nlea_Tessellator_addVertexWithUV($var18, var$23, var$24, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$21, var$24, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 12632256, 255); - var$23 = $var16 - 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$21, var$23, 0.0, 0.0, 1.0); - var$25 = $var6 - 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$25, var$23, 0.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, var$25, var$24, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$21, var$24, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - } - $java.nms_GuiSlot_func_77215_b($this, $par1, $par2); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glShadeModel(34); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glDisable(16); - return; - case 1: - $this.$elementClicked($var11, $var12); - if ($rt_suspending()) { - break main; - } - $this.$selectedElement = $var11; - $this.$lastClicked = nmc_Minecraft_getSystemTime(); - if ($par1 >= $var5 && $par1 <= $var6) { - $this.$scrollMultiplier = (-1.0); - $var20 = $java.nms_GuiSlot_func_77209_d($this); - if ($var20 < 1) - $var20 = 1; - $var13 = $rt_imul($this.$bottom - $this.$top | 0, $this.$bottom - $this.$top | 0) / $this.$getContentHeight() | 0; - if ($var13 < 32) - $var13 = 32; - if ($var13 > (($this.$bottom - $this.$top | 0) - 8 | 0)) - $var13 = ($this.$bottom - $this.$top | 0) - 8 | 0; - $this.$scrollMultiplier = $this.$scrollMultiplier / ((($this.$bottom - $this.$top | 0) - $var13 | 0) / $var20); - } else - $this.$scrollMultiplier = 1.0; - if (!$var7) - $this.$initialClickY = (-2.0); - else - $this.$initialClickY = $par2; - $java.nms_GuiSlot_bindAmountScrolled($this); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(14); - nlea_Tessellator_$callClinit(); - $var18 = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture($java.nms_GuiSlot_tex); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorOpaque_I($var18, 2105376); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$bottom, 0.0, $this.$left1 / 32.0, ($this.$bottom + ($this.$amountScrolled | 0) | 0) / 32.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$bottom, 0.0, $this.$right0 / 32.0, ($this.$bottom + ($this.$amountScrolled | 0) | 0) / 32.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$top, 0.0, $this.$right0 / 32.0, ($this.$top + ($this.$amountScrolled | 0) | 0) / 32.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$top, 0.0, $this.$left1 / 32.0, ($this.$top + ($this.$amountScrolled | 0) | 0) / 32.0); - nlea_Tessellator_draw($var18); - $var9 = (($this.$width9 / 2 | 0) - 92 | 0) - 16 | 0; - $var10 = ($this.$top + 4 | 0) - ($this.$amountScrolled | 0) | 0; - if ($this.$field_77243_s) - $java.nms_GuiSlot_func_77222_a($this, $var9, $var10, $var18); - $var11 = 0; - while ($var11 < $var4) { - $var20 = ($var10 + $rt_imul($var11, $this.$slotHeight) | 0) + $this.$field_77242_t | 0; - $var13 = $this.$slotHeight - 4 | 0; - if ($var20 <= $this.$bottom) { - $var7 = $var20 + $var13 | 0; - if ($var7 >= $this.$top) { - if ($this.$showSelectionBox && $this.$isSelected($var11)) { - $var14 = ($this.$width9 / 2 | 0) - 110 | 0; - $var15 = ($this.$width9 / 2 | 0) + 110 | 0; - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorOpaque_I($var18, 8421504); - var$20 = $var14; - var$21 = $var7 + 2 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$20, var$21, 0.0, 0.0, 1.0); - var$22 = $var15; - nlea_Tessellator_addVertexWithUV($var18, var$22, var$21, 0.0, 1.0, 1.0); - var$21 = $var20 - 2 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$22, var$21, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$20, var$21, 0.0, 0.0, 0.0); - nlea_Tessellator_setColorOpaque_I($var18, 0); - var$21 = $var14 + 1 | 0; - var$23 = $var7 + 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$21, var$23, 0.0, 0.0, 1.0); - var$24 = $var15 - 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$24, var$23, 0.0, 1.0, 1.0); - var$23 = $var20 - 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$24, var$23, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$21, var$23, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - nleg_EaglerAdapterGL30_glEnable(2); - } - $this.$drawSlot($var11, $var9, $var20, $var13, $var18); - } - } - $var11 = $var11 + 1 | 0; - } - nleg_EaglerAdapterGL30_glDisable(4); - $java.nms_GuiSlot_overlayBackground($this, 0, $this.$top, 255, 255); - $java.nms_GuiSlot_overlayBackground($this, $this.$bottom, $this.$height10, 255, 255); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nleg_EaglerAdapterGL30_glDisable(6); - nleg_EaglerAdapterGL30_glShadeModel(3); - nleg_EaglerAdapterGL30_glDisable(2); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 0, 0); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$top + 4 | 0, 0.0, 0.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$top + 4 | 0, 0.0, 1.0, 1.0); - nlea_Tessellator_setColorRGBA_I($var18, 0, 255); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$top, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$top, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 0, 255); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$bottom, 0.0, 0.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$bottom, 0.0, 1.0, 1.0); - nlea_Tessellator_setColorRGBA_I($var18, 0, 0); - nlea_Tessellator_addVertexWithUV($var18, $this.$right0, $this.$bottom - 4 | 0, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, $this.$left1, $this.$bottom - 4 | 0, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - $var20 = $java.nms_GuiSlot_func_77209_d($this); - if ($var20 > 0) { - $var13 = $rt_imul($this.$bottom - $this.$top | 0, $this.$bottom - $this.$top | 0) / $this.$getContentHeight() | 0; - if ($var13 < 32) - $var13 = 32; - if ($var13 > (($this.$bottom - $this.$top | 0) - 8 | 0)) - $var13 = ($this.$bottom - $this.$top | 0) - 8 | 0; - $var14 = ($rt_imul($this.$amountScrolled | 0, ($this.$bottom - $this.$top | 0) - $var13 | 0) / $var20 | 0) + $this.$top | 0; - if ($var14 < $this.$top) - $var14 = $this.$top; - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 0, 255); - var$21 = $var5; - nlea_Tessellator_addVertexWithUV($var18, var$21, $this.$bottom, 0.0, 0.0, 1.0); - var$23 = $var6; - nlea_Tessellator_addVertexWithUV($var18, var$23, $this.$bottom, 0.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, var$23, $this.$top, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$21, $this.$top, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 8421504, 255); - $var16 = $var14 + $var13 | 0; - var$24 = $var16; - nlea_Tessellator_addVertexWithUV($var18, var$21, var$24, 0.0, 0.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, var$23, var$24, 0.0, 1.0, 1.0); - var$24 = $var14; - nlea_Tessellator_addVertexWithUV($var18, var$23, var$24, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$21, var$24, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - nlea_Tessellator_startDrawingQuads($var18); - nlea_Tessellator_setColorRGBA_I($var18, 12632256, 255); - var$23 = $var16 - 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$21, var$23, 0.0, 0.0, 1.0); - var$25 = $var6 - 1 | 0; - nlea_Tessellator_addVertexWithUV($var18, var$25, var$23, 0.0, 1.0, 1.0); - nlea_Tessellator_addVertexWithUV($var18, var$25, var$24, 0.0, 1.0, 0.0); - nlea_Tessellator_addVertexWithUV($var18, var$21, var$24, 0.0, 0.0, 0.0); - nlea_Tessellator_draw($var18); - } - $java.nms_GuiSlot_func_77215_b($this, $par1, $par2); - nleg_EaglerAdapterGL30_glEnable(2); - nleg_EaglerAdapterGL30_glShadeModel(34); - nleg_EaglerAdapterGL30_glEnable(6); - nleg_EaglerAdapterGL30_glDisable(16); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var6, $var16, $var7, $var8, $var9, $var10, $var11, $var12, $var20, $var13, $var17, $var18, $var14, $var15, var$20, var$21, var$22, var$23, var$24, var$25, $ptr); -}; -$java.nms_GuiSlot_getScrollBarX = function($this) { - return ($this.$width9 / 2 | 0) + 124 | 0; -}; -$java.nms_GuiSlot_overlayBackground = function($this, $par1, $par2, $par3, $par4) { - var $var5, var$6, var$7, var$8, var$9, var$10, var$11; - nlea_Tessellator_$callClinit(); - $var5 = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture($java.nms_GuiSlot_tex); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nlea_Tessellator_startDrawing($var5, 98); - nlea_Tessellator_setColorRGBA($var5, 64, 64, 64, $par4); - var$6 = $par2; - var$7 = $par2 / 32.0; - $var5.$hasTexture = 1; - $var5.$textureU = 0.0; - var$8 = var$7; - $var5.$textureV = var$8; - nlea_Tessellator_addVertex($var5, 0.0, var$6, 0.0); - var$7 = $this.$width9; - var$9 = $this.$width9 / 32.0; - $var5.$hasTexture = 1; - $var5.$textureU = var$9; - $var5.$textureV = var$8; - nlea_Tessellator_addVertex($var5, var$7, var$6, 0.0); - nlea_Tessellator_setColorRGBA($var5, 64, 64, 64, $par3); - var$10 = $this.$width9; - var$7 = $par1; - var$9 = $this.$width9 / 32.0; - var$6 = $par1 / 32.0; - $var5.$hasTexture = 1; - $var5.$textureU = var$9; - var$11 = var$6; - $var5.$textureV = var$11; - nlea_Tessellator_addVertex($var5, var$10, var$7, 0.0); - $var5.$hasTexture = 1; - $var5.$textureU = 0.0; - $var5.$textureV = var$11; - nlea_Tessellator_addVertex($var5, 0.0, var$7, 0.0); - nlea_Tessellator_draw($var5); -}; -function nms_GuiSlot__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(433); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiSlot_tex = var$1; -} -$java.nms_GuiSlotLanguage = function() { - var a = this; nms_GuiSlot.call(a); - a.$field_77251_g = null; - a.$field_77253_h = null; - a.$languageGui = null; -}; -$java.nms_GuiSlotLanguage__init_ = function(var_0) { - var var_1 = new $java.nms_GuiSlotLanguage(); - $java.nms_GuiSlotLanguage__init_0(var_1, var_0); - return var_1; -}; -$java.nms_GuiSlotLanguage__init_0 = function($this, $par1GuiLanguage) { - var $var2, $var3; - $java.nms_GuiSlot__init_($this, $par1GuiLanguage.$mc4, $par1GuiLanguage.$width0, $par1GuiLanguage.$height0, 32, ($par1GuiLanguage.$height0 - 65 | 0) + 4 | 0, 18); - $this.$languageGui = $par1GuiLanguage; - $this.$field_77253_h = nms_StringTranslate_instance.$languageList; - $par1GuiLanguage = new ju_ArrayList; - $par1GuiLanguage.$array1 = $rt_createArray(jl_Object, 10); - $this.$field_77251_g = $par1GuiLanguage; - $par1GuiLanguage = $this.$field_77253_h; - if ($par1GuiLanguage.$cachedKeySet === null) { - $var2 = new ju_AbstractMap$KeySet; - $var2.$this$03 = $par1GuiLanguage; - $par1GuiLanguage.$cachedKeySet = $var2; - } - $var2 = $par1GuiLanguage.$cachedKeySet.$iterator(); - while ($var2.$hasNext()) { - $var3 = $var2.$next(); - ju_ArrayList_add($this.$field_77251_g, $var3); - } -}; -$java.nms_GuiSlotLanguage_getSize = function($this) { - return $this.$field_77251_g.$size0; -}; -$java.nms_GuiSlotLanguage_elementClicked = function($this, $par1, $par2) { - var var$3, var$4; - var$3 = nms_StringTranslate_instance; - var$4 = $this.$field_77251_g; - if ($par1 >= 0 && $par1 < var$4.$size0) { - nms_StringTranslate_setLanguage(var$3, var$4.$array1.data[$par1], 0); - $this.$languageGui.$mc4.$fontRenderer.$unicodeFlag = nms_StringTranslate_instance.$isUnicode; - var$3 = $this.$languageGui.$theGameSettings; - var$4 = $this.$field_77251_g; - if ($par1 >= 0 && $par1 < var$4.$size0) { - var$3.$language = var$4.$array1.data[$par1]; - var$4 = $this.$languageGui.$fontRenderer0; - var$3 = $this.$languageGui.$theGameSettings.$language; - var$4.$bidiFlag = !jl_String_equals($rt_s(2681), var$3) && !jl_String_equals($rt_s(2682), var$3) ? 0 : 1; - $this.$languageGui.$doneButton.$displayString = nms_StringTranslate_translateKey(nms_StringTranslate_instance, $rt_s(436)); - nms_GameSettings_saveOptions($this.$languageGui.$theGameSettings); - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -}; -$java.nms_GuiSlotLanguage_isSelected = function($this, $par1) { - var var$2; - var$2 = $this.$field_77251_g; - if ($par1 >= 0 && $par1 < var$2.$size0) - return jl_String_equals(var$2.$array1.data[$par1], nms_StringTranslate_instance.$currentLanguage); - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); -}; -$java.nms_GuiSlotLanguage_getContentHeight = function($this) { - return $this.$field_77251_g.$size0 * 18 | 0; -}; -$java.nms_GuiSlotLanguage_drawBackground = function($this) { - var var$1; - var$1 = $this.$languageGui; - if (var$1.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground(var$1, 0); - else - nms_Gui_drawGradientRect(var$1, 0, 0, var$1.$width0, var$1.$height0, (-1072689136), (-804253680)); -}; -$java.nms_GuiSlotLanguage_drawSlot = function($this, $par1, $par2, $par3, $par4, $par5Tessellator) { - var var$6, var$7; - $this.$languageGui.$fontRenderer0.$bidiFlag = 1; - $par5Tessellator = $this.$languageGui.$fontRenderer0; - var$6 = $this.$field_77253_h; - var$7 = $this.$field_77251_g; - if ($par1 >= 0 && $par1 < var$7.$size0) { - var$6 = ju_TreeMap_findExact(var$6, var$7.$array1.data[$par1]); - var$6 = var$6 === null ? null : var$6.$value8; - $par2 = $this.$languageGui.$width0 / 2 | 0; - $par1 = $par3 + 1 | 0; - nms_FontRenderer_drawString($par5Tessellator, var$6, $par2 - (nms_FontRenderer_getStringWidth($par5Tessellator, var$6) / 2 | 0) | 0, $par1, 16777215, 1); - $par5Tessellator = $this.$languageGui.$fontRenderer0; - var$6 = $this.$languageGui.$theGameSettings.$language; - $par5Tessellator.$bidiFlag = !jl_String_equals($rt_s(2681), var$6) && !jl_String_equals($rt_s(2682), var$6) ? 0 : 1; - return; - } - $par5Tessellator = new jl_IndexOutOfBoundsException; - $par5Tessellator.$suppressionEnabled = 1; - $par5Tessellator.$writableStackTrace = 1; - $rt_throw($par5Tessellator); -}; -function nms_GuiSlotServer() { - nms_GuiSlot.call(this); - this.$parentGui0 = null; -} -$java.nms_GuiSlotServer_icons = null; -$java.nms_GuiSlotServer_getSize = function($this) { - return ($this.$parentGui0.$internetServerList.$servers.$size0 + 0 | 0) + 1 | 0; -}; -$java.nms_GuiSlotServer_elementClicked = function($this, $par1, $par2) { - var $var3, $var4, $var5, $var6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var6 = $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: - a: { - if ($par1 < ($this.$parentGui0.$internetServerList.$servers.$size0 + 0 | 0)) { - $var3 = $this.$parentGui0.$selectedServer; - $this.$parentGui0.$selectedServer = $par1; - if ($this.$parentGui0.$internetServerList.$servers.$size0 <= $par1) - $var4 = null; - else { - $var4 = $this.$parentGui0.$internetServerList.$servers; - if ($par1 >= 0 && $par1 < $var4.$size0) - $var4 = $var4.$array1.data[$par1]; - else { - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); - } - } - b: { - c: { - if ($this.$parentGui0.$selectedServer >= 0 && $this.$parentGui0.$selectedServer < (($this.$parentGui0.$internetServerList.$servers.$size0 + 0 | 0) + 1 | 0)) { - if ($var4 === null) - break c; - if ($var4.$field_82821_f == 61) - break c; - } - $var5 = 0; - break b; - } - $var5 = 1; - } - $var6 = $this.$parentGui0.$selectedServer >= $this.$parentGui0.$internetServerList.$servers.$size0 ? 0 : 1; - $this.$parentGui0.$buttonSelect.$enabled = $var5; - $this.$parentGui0.$field_96289_p.$enabled = $var6; - $this.$parentGui0.$buttonDelete.$enabled = $var6; - if ($par2 && $var5) { - $var4 = $this.$parentGui0; - var$7 = $var4.$internetServerList.$servers; - if ($par1 >= 0 && $par1 < var$7.$size0) { - var$8 = var$7.$array1.data[$par1]; - var$9 = $var4.$mc4; - var$7 = new $java.nms_GuiConnecting; - var$10 = $var4.$mc4; - $ptr = 1; - continue main; - } - $var4 = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($var4); - $rt_throw($var4); - } - if ($var6) { - nms_GuiScreen_$callClinit(); - nlea_EaglerAdapterImpl2_$callClinit(); - if ((!nlea_EaglerAdapterImpl2_keyStates.data[42] && !nlea_EaglerAdapterImpl2_keyStates.data[54] ? 0 : 1) && $var3 >= 0 && $var3 < $this.$parentGui0.$internetServerList.$servers.$size0) { - $var4 = $this.$parentGui0.$internetServerList; - $par1 = $this.$parentGui0.$selectedServer; - var$7 = $var4.$servers; - if ($var3 >= 0 && $var3 < var$7.$size0) { - var$10 = var$7.$array1.data[$var3]; - var$7 = $var4.$servers; - var$9 = $var4.$servers; - if ($par1 >= 0 && $par1 < var$9.$size0) { - var$9 = var$9.$array1.data[$par1]; - if ($var3 >= 0 && $var3 < var$7.$size0) { - var$7.$array1.data[$var3] = var$9; - ju_ArrayList_set($var4.$servers, $par1, var$10); - nms_ServerList_saveServerList($var4); - break a; - } - $rt_throw(jl_IndexOutOfBoundsException__init_0()); - } - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($var4); - $rt_throw($var4); - } - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($var4); - $rt_throw($var4); - } - } - } - } - return; - case 1: - $java.nms_GuiConnecting__init_(var$7, $var4, var$10, var$8); - if ($rt_suspending()) { - break main; - } - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen(var$9, var$7); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, $var4, $var5, $var6, var$7, var$8, var$9, var$10, $ptr); -}; -$java.nms_GuiSlotServer_isSelected = function($this, $par1) { - return $par1 != $this.$parentGui0.$selectedServer ? 0 : 1; -}; -$java.nms_GuiSlotServer_getContentHeight = function($this) { - return (($this.$parentGui0.$internetServerList.$servers.$size0 + 0 | 0) + 1 | 0) * 36 | 0; -}; -$java.nms_GuiSlotServer_drawBackground = function($this) { - var var$1; - var$1 = $this.$parentGui0; - if (var$1.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground(var$1, 0); - else - nms_Gui_drawGradientRect(var$1, 0, 0, var$1.$width0, var$1.$height0, (-1072689136), (-804253680)); -}; -$java.nms_GuiSlotServer_drawSlot = function($this, $par1, $par2, $par3, $par4, $par5Tessellator) { - if ($par1 < $this.$parentGui0.$internetServerList.$servers.$size0) - $java.nms_GuiSlotServer_func_77247_d($this, $par1, $par2, $par3, $par4, $par5Tessellator); -}; -$java.nms_GuiSlotServer_func_77247_d = function($this, $par1, $par2, $par3, $par4, $par5Tessellator) { - var $var6, $var7, $var8, $var9, var$10, $var15, $var13, $var10, $var16; - $par5Tessellator = $this.$parentGui0.$internetServerList.$servers; - if ($par1 >= 0 && $par1 < $par5Tessellator.$size0) { - $var6 = $par5Tessellator.$array1.data[$par1]; - $var7 = $var6.$field_82821_f <= 61 ? 0 : 1; - $var8 = $var6.$field_82821_f >= 61 ? 0 : 1; - $var9 = !$var7 && !$var8 ? 0 : 1; - $par5Tessellator = $this.$parentGui0.$fontRenderer0; - var$10 = $var6.$serverName; - $var8 = $par2 + 2 | 0; - $var15 = $par3 + 1 | 0; - nms_FontRenderer_drawString($par5Tessellator, var$10, $var8, $var15, 16777215, 1); - $par5Tessellator = $this.$parentGui0.$fontRenderer0; - var$10 = $var6.$serverMOTD; - $var13 = $par3 + 12 | 0; - nms_FontRenderer_drawString($par5Tessellator, var$10, $var8, $var13, 8421504, 1); - nms_FontRenderer_drawString($this.$parentGui0.$fontRenderer0, $var6.$populationInfo, ($par2 + 215 | 0) - nms_FontRenderer_getStringWidth($this.$parentGui0.$fontRenderer0, $var6.$populationInfo) | 0, $var13, 8421504, 1); - if ($var9) { - $par5Tessellator = new jl_StringBuilder; - $par5Tessellator.$buffer = $rt_createCharArray(16); - var$10 = nms_EnumChatFormatting_DARK_RED; - jl_AbstractStringBuilder_insert($par5Tessellator, $par5Tessellator.$length, var$10 === null ? $rt_s(47) : var$10.$field_96304_B); - jl_AbstractStringBuilder_append($par5Tessellator, $var6.$gameVersion); - $var10 = jl_AbstractStringBuilder_toString($par5Tessellator); - nms_Gui_drawString($this.$parentGui0, $this.$parentGui0.$fontRenderer0, $var10, ($par2 + 200 | 0) - nms_FontRenderer_getStringWidth($this.$parentGui0.$fontRenderer0, $var10) | 0, $var15, 8421504); - } - if (!$this.$parentGui0.$mc4.$gameSettings.$hideServerAddress && !nms_ServerData_isHidingAddress($var6)) - nms_Gui_drawString($this.$parentGui0, $this.$parentGui0.$fontRenderer0, $var6.$serverIP, $var8, $var13 + 11 | 0, 3158064); - else - nms_Gui_drawString($this.$parentGui0, $this.$parentGui0.$fontRenderer0, nms_StatCollector_translateToLocal($rt_s(2683)), $var8, $var13 + 11 | 0, 3158064); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture($java.nms_GuiSlotServer_icons); - $var15 = 0; - if ($var9) { - $par5Tessellator = !$var7 ? $rt_s(2684) : $rt_s(2685); - $var16 = 5; - } else if ($var6.$field_78841_f && Long_ne($var6.$pingToServer, Long_fromInt(-2))) { - $var16 = Long_lt($var6.$pingToServer, Long_ZERO) ? 5 : Long_lt($var6.$pingToServer, Long_fromInt(150)) ? 0 : Long_lt($var6.$pingToServer, Long_fromInt(300)) ? 1 : Long_lt($var6.$pingToServer, Long_fromInt(600)) ? 2 : Long_ge($var6.$pingToServer, Long_fromInt(1000)) ? 4 : 3; - $par5Tessellator = Long_ge($var6.$pingToServer, Long_ZERO) ? $rt_s(1759) : $rt_s(2686); - } else { - $var15 = 1; - $var16 = Long_and(Long_add(Long_div(nmc_Minecraft_getSystemTime(), Long_fromInt(100)), Long_fromInt($par1 * 2 | 0)), Long_fromInt(7)).lo; - if ($var16 > 4) - $var16 = 8 - $var16 | 0; - $par5Tessellator = $rt_s(2687); - } - var$10 = $this.$parentGui0; - $par2 = $par2 + 205 | 0; - nms_Gui_drawTexturedModalRect(var$10, $par2, $par3, 0 + ($var15 * 10 | 0) | 0, 176 + ($var16 * 8 | 0) | 0, 10, 8); - if ($this.$mouseX >= ($par2 - 4 | 0) && $this.$mouseY >= ($par3 - 4 | 0) && $this.$mouseX <= (($par2 + 10 | 0) + 4 | 0) && $this.$mouseY <= (($par3 + 8 | 0) + 4 | 0)) - $java.nms_GuiMultiplayer_getAndSetLagTooltip($this.$parentGui0, $par5Tessellator); - return; - } - $par5Tessellator = new jl_IndexOutOfBoundsException; - $par5Tessellator.$suppressionEnabled = 1; - $par5Tessellator.$writableStackTrace = 1; - $rt_throw($par5Tessellator); -}; -function nms_GuiSlotServer__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(964); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiSlotServer_icons = var$1; -} -$java.nms_GuiScreenServerList = function() { - var a = this; nms_GuiScreen.call(a); - a.$guiScreen = null; - a.$theServerData0 = null; - a.$serverTextField = null; -}; -$java.nms_GuiScreenServerList_updateScreen = function($this) { - var var$1; - var$1 = $this.$serverTextField; - var$1.$cursorCounter = var$1.$cursorCounter + 1 | 0; -}; -$java.nms_GuiScreenServerList_initGui = function($this) { - var $var1, var$2, var$3, var$4, var$5; - $var1 = nms_StringTranslate_instance; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - var$2 = $this.$buttonList; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(0, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 96 | 0) + 12 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(2630)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 120 | 0) + 12 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(2548)))); - $this.$serverTextField = nms_GuiTextField__init_($this.$fontRenderer0, ($this.$width0 / 2 | 0) - 100 | 0, 116, 200, 20); - var$2 = $this.$serverTextField; - var$2.$maxStringLength = 128; - if (var$2.$text.$characters.data.length > 128) { - var$3 = var$2.$text; - var$2.$text = jl_String__init_0(var$3.$characters, 0, 128); - } - var$2 = $this.$serverTextField; - if (!var$2.$isFocused) - var$2.$cursorCounter = 0; - var$2.$isFocused = 1; - var$2 = $this.$serverTextField; - var$3 = $this.$mc4.$gameSettings.$lastServer; - if (var$3.$characters.data.length <= var$2.$maxStringLength) - var$2.$text = var$3; - else { - var$4 = var$2.$maxStringLength; - if (0 > var$4) { - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - var$2.$text = jl_String__init_0(var$3.$characters, 0, var$4 - 0 | 0); - } - $java.nms_GuiTextField_setCursorPosition(var$2, var$2.$text.$characters.data.length); - var$2 = $this.$buttonList; - if (0 >= var$2.$size0) { - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - a: { - var$2 = var$2.$array1.data[0]; - if ($this.$serverTextField.$text.$characters.data.length > 0) { - $var1 = $this.$serverTextField.$text; - if (jur_Pattern_split(jur_Pattern_compile($rt_s(266), 0), $var1, 0).data.length > 0) { - var$5 = 1; - break a; - } - } - var$5 = 0; - } - var$2.$enabled = var$5; -}; -$java.nms_GuiScreenServerList_onGuiClosed = function($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; - $this.$mc4.$gameSettings.$lastServer = $this.$serverTextField.$text; - nms_GameSettings_saveOptions($this.$mc4.$gameSettings); -}; -$java.nms_GuiScreenServerList_actionPerformed = function($this, $par1GuiButton) { - 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();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$enabled) { - if ($par1GuiButton.$id2 == 1) { - $par1GuiButton = $this.$guiScreen; - var$2 = 0; - var$3 = 0; - $ptr = 1; - continue main; - } - if (!$par1GuiButton.$id2) { - $this.$theServerData0.$serverIP = $this.$serverTextField.$text; - $par1GuiButton = $this.$guiScreen; - var$3 = 1; - var$2 = 0; - $ptr = 2; - continue main; - } - } - return; - case 1: - $java.nms_GuiMultiplayer_confirmClicked($par1GuiButton, var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $java.nms_GuiMultiplayer_confirmClicked($par1GuiButton, var$3, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, var$3, $ptr); -}; -$java.nms_GuiScreenServerList_keyTyped = function($this, $par1, $par2) { - var 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();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_GuiTextField_textboxKeyTyped($this.$serverTextField, $par1, $par2)) { - var$3 = $this.$buttonList; - if (0 >= var$3.$size0) { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - a: { - var$3 = var$3.$array1.data[0]; - if ($this.$serverTextField.$text.$characters.data.length > 0) { - var$4 = $this.$serverTextField.$text; - if (jur_Pattern_split(jur_Pattern_compile($rt_s(266), 0), var$4, 0).data.length > 0) { - $par1 = 1; - break a; - } - } - $par1 = 0; - } - var$3.$enabled = $par1; - } else if ($par2 == 28) { - var$3 = $this.$buttonList; - if (0 >= var$3.$size0) { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - var$3 = var$3.$array1.data[0]; - $ptr = 1; - continue main; - } - return; - case 1: - $java.nms_GuiScreenServerList_actionPerformed($this, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, $ptr); -}; -$java.nms_GuiScreenServerList_mouseClicked = function($this, $par1, $par2, $par3) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $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: - nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - nms_GuiTextField_mouseClicked($this.$serverTextField, $par1, $par2, $par3); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $ptr); -}; -$java.nms_GuiScreenServerList_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7, var$8; - $var4 = nms_StringTranslate_instance; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$5 = $this.$fontRenderer0; - var$6 = nms_StringTranslate_translateKey($var4, $rt_s(2631)); - var$7 = $this.$width0 / 2 | 0; - var$8 = (($this.$height0 / 4 | 0) - 60 | 0) + 20 | 0; - nms_FontRenderer_drawString(var$5, var$6, var$7 - (nms_FontRenderer_getStringWidth(var$5, var$6) / 2 | 0) | 0, var$8, 16777215, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var4, $rt_s(2688)), ($this.$width0 / 2 | 0) - 100 | 0, 100, 10526880, 1); - nms_GuiTextField_drawTextBox($this.$serverTextField); - var$8 = 0; - a: { - while (var$8 < $this.$buttonList.$size0) { - var$5 = $this.$buttonList; - if (var$8 < 0) - break a; - if (var$8 >= var$5.$size0) - break a; - var$5.$array1.data[var$8].$drawButton($this.$mc4, $par1, $par2); - var$8 = var$8 + 1 | 0; - } - return; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); -}; -$java.nms_GuiScreenAddServer = function() { - var a = this; nms_GuiScreen.call(a); - a.$parentGui1 = null; - a.$serverAddress = null; - a.$serverName0 = null; - a.$newServerData = null; -}; -$java.nms_GuiScreenAddServer_updateScreen = function($this) { - var var$1; - var$1 = $this.$serverName0; - var$1.$cursorCounter = var$1.$cursorCounter + 1 | 0; - var$1 = $this.$serverAddress; - var$1.$cursorCounter = var$1.$cursorCounter + 1 | 0; -}; -$java.nms_GuiScreenAddServer_initGui = function($this) { - var $var1, var$2, var$3, var$4, var$5, var$6, var$7; - $var1 = nms_StringTranslate_instance; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - var$2 = $this.$buttonList; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(0, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 96 | 0) + 12 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(2689)))); - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 120 | 0) + 12 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(2548)))); - var$3 = $this.$buttonList; - var$4 = new nms_GuiButton; - var$5 = ($this.$width0 / 2 | 0) - 100 | 0; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - var$2 = nms_StringTranslate_translateKey($var1, $rt_s(2690)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$2); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(48)); - var$2 = !$this.$newServerData.$hideAddress ? nms_StringTranslate_translateKey($var1, $rt_s(2546)) : nms_StringTranslate_translateKey($var1, $rt_s(2545)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$2); - nms_GuiButton__init_0(var$4, 2, var$5, 142, 200, 20, jl_String__init_0(var$6.$buffer, 0, var$6.$length)); - ju_ArrayList_add(var$3, var$4); - $this.$serverName0 = nms_GuiTextField__init_($this.$fontRenderer0, ($this.$width0 / 2 | 0) - 100 | 0, 66, 200, 20); - var$2 = $this.$serverName0; - if (!var$2.$isFocused) - var$2.$cursorCounter = 0; - var$2.$isFocused = 1; - var$2 = $this.$serverName0; - var$3 = $this.$newServerData.$serverName; - if (var$3.$characters.data.length <= var$2.$maxStringLength) - var$2.$text = var$3; - else { - var$7 = var$2.$maxStringLength; - if (0 > var$7) { - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - var$2.$text = jl_String__init_0(var$3.$characters, 0, var$7 - 0 | 0); - } - $java.nms_GuiTextField_setCursorPosition(var$2, var$2.$text.$characters.data.length); - $this.$serverAddress = nms_GuiTextField__init_($this.$fontRenderer0, ($this.$width0 / 2 | 0) - 100 | 0, 106, 200, 20); - var$2 = $this.$serverAddress; - var$2.$maxStringLength = 128; - if (var$2.$text.$characters.data.length > 128) { - var$3 = var$2.$text; - var$2.$text = jl_String__init_0(var$3.$characters, 0, 128); - } - var$2 = $this.$serverAddress; - var$3 = $this.$newServerData.$serverIP; - if (var$3.$characters.data.length <= var$2.$maxStringLength) - var$2.$text = var$3; - else { - var$7 = var$2.$maxStringLength; - if (0 > var$7) { - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - var$2.$text = jl_String__init_0(var$3.$characters, 0, var$7 - 0 | 0); - } - $java.nms_GuiTextField_setCursorPositionEnd(var$2); - ju_ArrayList_get($this.$buttonList, 0).$enabled = jl_String_length($this.$serverAddress.$text) > 0 && jl_String_split($java.nms_GuiTextField_getText($this.$serverAddress), $rt_s(266)).data.length > 0 && jl_String_length($java.nms_GuiTextField_getText($this.$serverName0)) > 0 ? 1 : 0; -}; -$java.nms_GuiScreenAddServer_onGuiClosed = function($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; -}; -$java.nms_GuiScreenAddServer_actionPerformed = function($this, $par1GuiButton) { - var var$2, var$3, $var2, 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();$var2 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$enabled) { - if ($par1GuiButton.$id2 == 1) { - $par1GuiButton = $this.$parentGui1; - var$2 = 0; - var$3 = 0; - $ptr = 1; - continue main; - } - if (!$par1GuiButton.$id2) { - $this.$newServerData.$serverName = $this.$serverName0.$text; - $this.$newServerData.$serverIP = $this.$serverAddress.$text; - $par1GuiButton = $this.$parentGui1; - var$2 = 1; - var$3 = 0; - $ptr = 2; - continue main; - } - if ($par1GuiButton.$id2 == 2) { - $var2 = nms_StringTranslate_instance; - $this.$newServerData.$hideAddress = $this.$newServerData.$hideAddress ? 0 : 1; - $par1GuiButton = $this.$buttonList; - if (2 >= $par1GuiButton.$size0) { - $par1GuiButton = new jl_IndexOutOfBoundsException; - $par1GuiButton.$suppressionEnabled = 1; - $par1GuiButton.$writableStackTrace = 1; - $rt_throw($par1GuiButton); - } - var$5 = $par1GuiButton.$array1.data[2]; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - $par1GuiButton = nms_StringTranslate_translateKey($var2, $rt_s(2690)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $par1GuiButton); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(48)); - $par1GuiButton = !$this.$newServerData.$hideAddress ? nms_StringTranslate_translateKey($var2, $rt_s(2546)) : nms_StringTranslate_translateKey($var2, $rt_s(2545)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $par1GuiButton); - var$5.$displayString = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - } - } - return; - case 1: - $java.nms_GuiMultiplayer_confirmClicked($par1GuiButton, var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $java.nms_GuiMultiplayer_confirmClicked($par1GuiButton, var$2, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, var$3, $var2, var$5, var$6, $ptr); -}; -$java.nms_GuiScreenAddServer_keyTyped = function($this, $par1, $par2) { - var 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();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_GuiTextField_textboxKeyTyped($this.$serverName0, $par1, $par2); - nms_GuiTextField_textboxKeyTyped($this.$serverAddress, $par1, $par2); - if ($par1 == 9) { - if ($this.$serverName0.$isFocused) { - $this.$serverName0.$isFocused = 0; - var$3 = $this.$serverAddress; - if (!var$3.$isFocused) - var$3.$cursorCounter = 0; - var$3.$isFocused = 1; - } else { - var$3 = $this.$serverName0; - if (!var$3.$isFocused) - var$3.$cursorCounter = 0; - var$3.$isFocused = 1; - $this.$serverAddress.$isFocused = 0; - } - } - if ($par1 != 13) { - var$3 = $this.$buttonList; - if (0 >= var$3.$size0) { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - a: { - var$3 = var$3.$array1.data[0]; - if ($this.$serverAddress.$text.$characters.data.length > 0) { - var$4 = $this.$serverAddress.$text; - if (jur_Pattern_split(jur_Pattern_compile($rt_s(266), 0), var$4, 0).data.length > 0 && $this.$serverName0.$text.$characters.data.length > 0) { - $par1 = 1; - break a; - } - } - $par1 = 0; - } - var$3.$enabled = $par1; - return; - } - var$3 = $this.$buttonList; - if (0 >= var$3.$size0) { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - var$3 = var$3.$array1.data[0]; - $ptr = 1; - case 1: - $java.nms_GuiScreenAddServer_actionPerformed($this, var$3); - if ($rt_suspending()) { - break main; - } - var$3 = $this.$buttonList; - if (0 >= var$3.$size0) { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - b: { - var$3 = var$3.$array1.data[0]; - if ($this.$serverAddress.$text.$characters.data.length > 0) { - var$4 = $this.$serverAddress.$text; - if (jur_Pattern_split(jur_Pattern_compile($rt_s(266), 0), var$4, 0).data.length > 0 && $this.$serverName0.$text.$characters.data.length > 0) { - $par1 = 1; - break b; - } - } - $par1 = 0; - } - var$3.$enabled = $par1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, $ptr); -}; -$java.nms_GuiScreenAddServer_mouseClicked = function($this, $par1, $par2, $par3) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $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: - nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - nms_GuiTextField_mouseClicked($this.$serverAddress, $par1, $par2, $par3); - nms_GuiTextField_mouseClicked($this.$serverName0, $par1, $par2, $par3); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $ptr); -}; -$java.nms_GuiScreenAddServer_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7; - $var4 = nms_StringTranslate_instance; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$5 = $this.$fontRenderer0; - var$6 = nms_StringTranslate_translateKey($var4, $rt_s(2691)); - nms_FontRenderer_drawString(var$5, var$6, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$5, var$6) / 2 | 0) | 0, 17, 16777215, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var4, $rt_s(2692)), ($this.$width0 / 2 | 0) - 100 | 0, 53, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var4, $rt_s(2688)), ($this.$width0 / 2 | 0) - 100 | 0, 94, 10526880, 1); - nms_GuiTextField_drawTextBox($this.$serverName0); - nms_GuiTextField_drawTextBox($this.$serverAddress); - var$7 = 0; - a: { - while (var$7 < $this.$buttonList.$size0) { - var$5 = $this.$buttonList; - if (var$7 < 0) - break a; - if (var$7 >= var$5.$size0) - break a; - var$5.$array1.data[var$7].$drawButton($this.$mc4, $par1, $par2); - var$7 = var$7 + 1 | 0; - } - return; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); -}; -function nms_GuiSlider2() { - var a = this; nms_GuiButton.call(a); - a.$sliderValue0 = 0.0; - a.$sliderMax = 0.0; - a.$dragging1 = 0; -} -function nms_GuiSlider2__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_GuiSlider2(); - $java.nms_GuiSlider2__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_GuiSlider2__init_ = function($this, $par1, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, var$9; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - var$9 = $par6 * $par7 * 100.0 | 0; - jl_AbstractStringBuilder_insert0(var$8, var$8.$length, var$9, 10); - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(308)); - nms_GuiButton__init_0($this, $par1, $par2, $par3, $par4, $par5, jl_String__init_0(var$8.$buffer, 0, var$8.$length)); - $this.$sliderValue0 = 1.0; - $this.$sliderMax = 1.0; - $this.$dragging1 = 0; - $this.$sliderValue0 = $par6; - $this.$sliderMax = $par7; -}; -$java.nms_GuiSlider2_getHoverState = function($this, $par1) { - return 0; -}; -$java.nms_GuiSlider2_mouseDragged = function($this, $par1Minecraft, $par2, $par3) { - if ($this.$drawButton0) { - if ($this.$dragging1) { - $this.$sliderValue0 = ($par2 - ($this.$xPosition3 + 4 | 0) | 0) / ($this.$width3 - 8 | 0); - if ($this.$sliderValue0 < 0.0) - $this.$sliderValue0 = 0.0; - if ($this.$sliderValue0 > 1.0) - $this.$sliderValue0 = 1.0; - $par1Minecraft = new jl_StringBuilder; - $par1Minecraft.$buffer = $rt_createCharArray(16); - $par2 = $this.$sliderValue0 * $this.$sliderMax * 100.0 | 0; - jl_AbstractStringBuilder_insert0($par1Minecraft, $par1Minecraft.$length, $par2, 10); - jl_AbstractStringBuilder_insert($par1Minecraft, $par1Minecraft.$length, $rt_s(308)); - $this.$displayString = jl_String__init_0($par1Minecraft.$buffer, 0, $par1Minecraft.$length); - } - if ($this.$enabled) { - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nms_Gui_drawTexturedModalRect($this, $this.$xPosition3 + ($this.$sliderValue0 * ($this.$width3 - 8 | 0) | 0) | 0, $this.$yPosition, 0, 66, 4, 20); - nms_Gui_drawTexturedModalRect($this, ($this.$xPosition3 + ($this.$sliderValue0 * ($this.$width3 - 8 | 0) | 0) | 0) + 4 | 0, $this.$yPosition, 196, 66, 4, 20); - } - } -}; -$java.nms_GuiSlider2_mousePressed = function($this, $par1Minecraft, $par2, $par3) { - if (!$java.nms_GuiButton_mousePressed($this, $par1Minecraft, $par2, $par3)) - return 0; - $this.$sliderValue0 = ($par2 - ($this.$xPosition3 + 4 | 0) | 0) / ($this.$width3 - 8 | 0); - if ($this.$sliderValue0 < 0.0) - $this.$sliderValue0 = 0.0; - if ($this.$sliderValue0 > 1.0) - $this.$sliderValue0 = 1.0; - $par1Minecraft = new jl_StringBuilder; - $par1Minecraft.$buffer = $rt_createCharArray(16); - $par2 = $this.$sliderValue0 * $this.$sliderMax * 100.0 | 0; - jl_AbstractStringBuilder_insert0($par1Minecraft, $par1Minecraft.$length, $par2, 10); - jl_AbstractStringBuilder_insert($par1Minecraft, $par1Minecraft.$length, $rt_s(308)); - $this.$displayString = jl_String__init_0($par1Minecraft.$buffer, 0, $par1Minecraft.$length); - $this.$dragging1 = 1; - return 1; -}; -$java.nms_GuiSlider2_mouseReleased = function($this, $par1, $par2) { - $this.$dragging1 = 0; -}; -$java.nms_WorldSavedData = function() { - var a = this; jl_Object.call(a); - a.$mapName = null; - a.$dirty = 0; -}; -$java.nms_WorldSavedData_markDirty = function($this) { - $this.$dirty = 1; -}; -$java.nms_WorldSavedData_setDirty = function($this, $par1) { - $this.$dirty = $par1; -}; -function nms_MapData() { - var a = this; $java.nms_WorldSavedData.call(a); - a.$xCenter = 0; - a.$zCenter = 0; - a.$dimension0 = 0; - a.$scale2 = 0; - a.$colors = null; - a.$playersArrayList = null; - a.$playersHashMap = null; - a.$playersVisibleOnMap = null; -} -function nms_MapData_updateVisiblePlayers($this, $par1EntityPlayer, $par2ItemStack) { - var $var3, var$4, $var5, var$6, $var4, var$8, var$9; - $var3 = $this.$playersHashMap; - if ($par1EntityPlayer !== null) { - var$4 = $par1EntityPlayer.$entityId; - $var3 = ju_HashMap_findNonNullKeyEntry($var3, $par1EntityPlayer, var$4 & ($var3.$elementData.data.length - 1 | 0), var$4); - } else { - $var3 = $var3.$elementData.data[0]; - while ($var3 !== null && $var3.$key !== null) { - $var3 = $var3.$next1; - } - } - if (!($var3 === null ? 0 : 1)) { - $var3 = $java.nms_MapInfo__init_($this, $par1EntityPlayer); - ju_HashMap_putImpl($this.$playersHashMap, $par1EntityPlayer, $var3); - ju_ArrayList_add($this.$playersArrayList, $var3); - } - if (!nms_InventoryPlayer_hasItemStack($par1EntityPlayer.$inventory, $par2ItemStack)) - ju_LinkedHashMap_remove($this.$playersVisibleOnMap, $par1EntityPlayer.$username0); - $var5 = 0; - while (true) { - if ($var5 >= $this.$playersArrayList.$size0) { - if ($par2ItemStack.$itemFrame === null ? 0 : 1) { - var$6 = $par1EntityPlayer.$worldObj; - $var4 = new jl_StringBuilder; - $var4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var4, $var4.$length, $rt_s(2693)); - var$8 = $par2ItemStack.$itemFrame.$entityId; - jl_AbstractStringBuilder_insert0($var4, $var4.$length, var$8, 10); - $java.nms_MapData_func_82567_a($this, 1, var$6, jl_String__init_0($var4.$buffer, 0, $var4.$length), $par2ItemStack.$itemFrame.$xPosition1, $par2ItemStack.$itemFrame.$zPosition1, $par2ItemStack.$itemFrame.$hangingDirection * 90 | 0); - } - return; - } - $var3 = $this.$playersArrayList; - if ($var5 < 0) - break; - if ($var5 >= $var3.$size0) - break; - a: { - b: { - $var4 = $var3.$array1.data[$var5]; - if (!$var4.$entityplayerObj.$isDead) { - if (nms_InventoryPlayer_hasItemStack($var4.$entityplayerObj.$inventory, $par2ItemStack)) - break b; - if ($par2ItemStack.$itemFrame === null ? 0 : 1) - break b; - } - ju_HashMap_removeEntry($this.$playersHashMap, $var4.$entityplayerObj); - $var3 = $this.$playersArrayList; - var$9 = ju_AbstractList_indexOf($var3, $var4); - if (var$9 >= 0) - ju_ArrayList_remove($var3, var$9); - break a; - } - if (!($par2ItemStack.$itemFrame === null ? 0 : 1) && $var4.$entityplayerObj.$dimension == $this.$dimension0) - $java.nms_MapData_func_82567_a($this, 0, $var4.$entityplayerObj.$worldObj, $var4.$entityplayerObj.$username0, $var4.$entityplayerObj.$posX, $var4.$entityplayerObj.$posZ, $var4.$entityplayerObj.$rotationYaw); - } - $var5 = $var5 + 1 | 0; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); -} -$java.nms_MapData_func_82567_a = function($this, $par1, $par2World, $par3Str, $par4, $par6, $par8) { - var $var10, $var12, var$9, $var11, $var13, $var14, $var17, $var15, var$15; - $var10 = 1 << $this.$scale2; - $var12 = $par4 - $this.$xCenter; - var$9 = $var10; - $var11 = $var12 / var$9; - $var12 = ($par6 - $this.$zCenter) / var$9; - $var13 = ($var11 * 2.0 + 0.5 | 0) << 24 >> 24; - $var14 = ($var12 * 2.0 + 0.5 | 0) << 24 >> 24; - $var17 = $rt_compare($var11, (-63.0)); - if ($var17 >= 0 && $var12 >= (-63.0) && $var11 <= 63.0 && $var12 <= 63.0) { - $var15 = (($par8 + ($par8 >= 0.0 ? 8.0 : (-8.0))) * 16.0 / 360.0 | 0) << 24 >> 24; - if ($this.$dimension0 < 0) { - $var17 = Long_div($par2World.$worldInfo.$worldTime, Long_fromInt(10)).lo; - $var15 = (($rt_imul($rt_imul($var17, $var17), 34187121) + ($var17 * 121 | 0) | 0) >> 15 & 15) << 24 >> 24; - } - } else { - var$9 = $var11 <= 0.0 ? -$var11 : $var11; - if (var$9 < 320.0 && ($var12 <= 0.0 ? -$var12 : $var12) < 320.0) { - $par1 = 6; - $var15 = 0; - if ($var17 <= 0) - $var13 = (-128); - if ($var12 <= (-63.0)) - $var14 = (-128); - if ($var11 >= 63.0) - $var13 = 127; - if ($var12 >= 63.0) - $var14 = 127; - } else { - ju_LinkedHashMap_remove($this.$playersVisibleOnMap, $par3Str); - return; - } - } - $par2World = $this.$playersVisibleOnMap; - var$15 = new $java.nms_MapCoord; - $par1 = $par1 << 24 >> 24; - var$15.$data13 = $this; - var$15.$iconSize = $par1; - var$15.$centerX = $var13; - var$15.$centerZ = $var14; - var$15.$iconRotation = $var15; - ju_LinkedHashMap_putImpl($par2World, $par3Str, var$15); -}; -function nms_MapData_setColumnDirty($this, $par1, $par2, $par3) { - var $var4, $var5; - $this.$dirty = 1; - $var4 = 0; - a: { - while ($var4 < $this.$playersArrayList.$size0) { - $var5 = $this.$playersArrayList; - if ($var4 < 0) - break a; - if ($var4 >= $var5.$size0) - break a; - $var5 = $var5.$array1.data[$var4]; - if (!($var5.$field_76209_b.data[$par1] >= 0 && $var5.$field_76209_b.data[$par1] <= $par2)) - $var5.$field_76209_b.data[$par1] = $par2; - if (!($var5.$field_76210_c.data[$par1] >= 0 && $var5.$field_76210_c.data[$par1] >= $par3)) - $var5.$field_76210_c.data[$par1] = $par3; - $var4 = $var4 + 1 | 0; - } - return; - } - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); -} -$java.nms_MapData_updateMPMapData = function($this, $par1ArrayOfByte) { - var $var2, $var3, $var4, var$5, var$6, $var6, $var7, $var8, $var5, var$11, var$12; - a: { - $par1ArrayOfByte = $par1ArrayOfByte.data; - if (!$par1ArrayOfByte[0]) { - $var2 = $par1ArrayOfByte[1] & 255; - $var3 = $par1ArrayOfByte[2] & 255; - $var4 = 0; - while ($var4 < ($par1ArrayOfByte.length - 3 | 0)) { - $this.$colors.data[(($var4 + $var3 | 0) * 128 | 0) + $var2 | 0] = $par1ArrayOfByte[$var4 + 3 | 0]; - $var4 = $var4 + 1 | 0; - } - $this.$dirty = 1; - } else if ($par1ArrayOfByte[0] == 1) { - var$5 = $this.$playersVisibleOnMap; - if (var$5.$elementCount > 0) { - var$5.$elementCount = 0; - var$6 = var$5.$elementData; - ju_Arrays_fill(var$6, 0, var$6.data.length, null); - var$5.$modCount1 = var$5.$modCount1 + 1 | 0; - } - var$5.$head4 = null; - var$5.$tail = null; - $var2 = 0; - while (true) { - if ($var2 >= (($par1ArrayOfByte.length - 1 | 0) / 3 | 0)) - break a; - $var6 = $var2 * 3 | 0; - $var3 = $var6 + 1 | 0; - $var7 = $par1ArrayOfByte[$var3] >> 4 << 24 >> 24; - $var8 = $par1ArrayOfByte[$var6 + 2 | 0]; - $var5 = $par1ArrayOfByte[$var6 + 3 | 0]; - $var6 = ($par1ArrayOfByte[$var3] & 15) << 24 >> 24; - var$5 = $this.$playersVisibleOnMap; - var$11 = new jl_StringBuilder; - var$11.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$11, var$11.$length, $rt_s(2694)); - jl_AbstractStringBuilder_insert0(var$11, var$11.$length, $var2, 10); - var$12 = jl_String__init_0(var$11.$buffer, 0, var$11.$length); - var$11 = new $java.nms_MapCoord; - var$11.$data13 = $this; - var$11.$iconSize = $var7; - var$11.$centerX = $var8; - var$11.$centerZ = $var5; - var$11.$iconRotation = $var6; - ju_LinkedHashMap_putImpl(var$5, var$12, var$11); - $var2 = $var2 + 1 | 0; - } - } else if ($par1ArrayOfByte[0] == 2) - $this.$scale2 = $par1ArrayOfByte[1]; - } -}; -function nms_MapData_func_82568_a($this, $par1EntityPlayer) { - var $var2, var$3; - $var2 = $this.$playersHashMap; - if ($par1EntityPlayer !== null) { - var$3 = $par1EntityPlayer.$entityId; - $var2 = ju_HashMap_findNonNullKeyEntry($var2, $par1EntityPlayer, var$3 & ($var2.$elementData.data.length - 1 | 0), var$3); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null) { - $var2 = $java.nms_MapInfo__init_($this, $par1EntityPlayer); - ju_HashMap_putImpl($this.$playersHashMap, $par1EntityPlayer, $var2); - ju_ArrayList_add($this.$playersArrayList, $var2); - } - return $var2; -} -$java.nms_MapCoord = function() { - var a = this; jl_Object.call(a); - a.$iconSize = 0; - a.$centerX = 0; - a.$centerZ = 0; - a.$iconRotation = 0; - a.$data13 = null; -}; -$java.ju_Formatter$FormatWriter = function() { - var a = this; jl_Object.call(a); - a.$formatter = null; - a.$out4 = null; - a.$locale1 = null; - a.$format3 = null; - a.$args = null; - a.$index8 = 0; - a.$formatSpecifierStart = 0; - a.$defaultArgumentIndex = 0; - a.$argumentIndex = 0; - a.$previousArgumentIndex = 0; - a.$width10 = 0; - a.$precision1 = 0; - a.$flags2 = 0; -}; -$java.ju_Formatter$FormatWriter__init_ = function(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new $java.ju_Formatter$FormatWriter(); - $java.ju_Formatter$FormatWriter__init_0(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -}; -$java.ju_Formatter$FormatWriter__init_0 = function($this, $formatter, $out, $locale, $format, $args) { - $this.$formatter = $formatter; - $this.$out4 = $out; - $this.$locale1 = $locale; - $this.$format3 = $format; - $this.$args = $args; -}; -$java.ju_Formatter$FormatWriter_write = function($this) { - var $next, var$2, var$3, var$4, var$5, $specifier, var$7; - while (true) { - $next = jl_String_indexOf($this.$format3, 37, $this.$index8); - if ($next < 0) { - var$2 = $this.$out4; - var$3 = $this.$format3; - $next = $this.$index8; - var$4 = var$3.$characters.data.length; - if ($next > var$4) { - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - var$5 = jl_String__init_0(var$3.$characters, $next, var$4 - $next | 0); - var$4 = var$5.$characters.data.length; - jl_AbstractStringBuilder_insert5(var$2, var$2.$length, var$5, 0, var$4); - return; - } - var$2 = $this.$out4; - var$3 = $this.$format3; - $specifier = $this.$index8; - if ($specifier > $next) - break; - var$5 = jl_String__init_0(var$3.$characters, $specifier, $next - $specifier | 0); - var$7 = var$5.$characters.data.length; - jl_AbstractStringBuilder_insert5(var$2, var$2.$length, var$5, 0, var$7); - $this.$index8 = $next + 1 | 0; - $this.$formatSpecifierStart = $this.$index8; - $specifier = $java.ju_Formatter$FormatWriter_parseFormatSpecifier($this); - $java.ju_Formatter$FormatWriter_configureFormat($this); - $java.ju_Formatter$FormatWriter_formatValue($this, $specifier); - } - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); -}; -$java.ju_Formatter$FormatWriter_formatValue = function($this, $specifier) { - var var$2, var$3, var$4, var$5, var$6, var$7; - a: { - b: { - switch ($specifier) { - case 66: - break; - case 67: - $java.ju_Formatter$FormatWriter_formatChar($this, $specifier, 1); - break a; - case 68: - $java.ju_Formatter$FormatWriter_formatDecimalInt($this, $specifier, 1); - break a; - case 69: - case 70: - case 71: - case 73: - case 74: - case 75: - case 76: - case 77: - case 78: - case 80: - case 81: - case 82: - case 84: - case 85: - case 86: - case 87: - case 89: - case 90: - case 91: - case 92: - case 93: - case 94: - case 95: - case 96: - case 97: - case 101: - case 102: - case 103: - case 105: - case 106: - case 107: - case 108: - case 109: - case 110: - case 112: - case 113: - case 114: - case 116: - case 117: - case 118: - case 119: - break b; - case 72: - if (($this.$flags2 | 263) == 263) { - var$2 = $this.$args.data[$this.$argumentIndex]; - $java.ju_Formatter$FormatWriter_formatGivenString($this, 1, var$2 === null ? $rt_s(47) : otci_IntegerUtil_toUnsignedLogRadixString(var$2.$hashCode0(), 4)); - break a; - } - var$2 = new $java.ju_FormatFlagsConversionMismatchException; - var$3 = jl_String_charAt($rt_s(2695), jl_Integer_numberOfTrailingZeros($this.$flags2 & (-264))); - var$4 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = var$3; - jl_String__init_3(var$4, var$5); - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2696)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$4); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2697)); - jl_AbstractStringBuilder_insert4(var$6, var$6.$length, $specifier); - jl_Throwable__init_2(var$2, jl_String__init_0(var$6.$buffer, 0, var$6.$length)); - var$2.$flags3 = var$4; - var$2.$conversion = $specifier; - $rt_throw(var$2); - case 79: - $java.ju_Formatter$FormatWriter_formatRadixInt($this, $specifier, 3, 1); - break a; - case 83: - $java.ju_Formatter$FormatWriter_formatString($this, $specifier, 1); - break a; - case 88: - $java.ju_Formatter$FormatWriter_formatRadixInt($this, $specifier, 4, 1); - break a; - case 98: - $java.ju_Formatter$FormatWriter_formatBoolean($this, $specifier, 0); - break a; - case 99: - $java.ju_Formatter$FormatWriter_formatChar($this, $specifier, 0); - break a; - case 100: - $java.ju_Formatter$FormatWriter_formatDecimalInt($this, $specifier, 0); - break a; - case 104: - if (($this.$flags2 | 263) != 263) { - var$2 = new $java.ju_FormatFlagsConversionMismatchException; - var$3 = jl_String_charAt($rt_s(2695), jl_Integer_numberOfTrailingZeros($this.$flags2 & (-264))); - var$4 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = var$3; - jl_String__init_3(var$4, var$5); - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2696)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$4); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2697)); - jl_AbstractStringBuilder_insert4(var$6, var$6.$length, $specifier); - jl_Throwable__init_2(var$2, jl_String__init_0(var$6.$buffer, 0, var$6.$length)); - var$2.$flags3 = var$4; - var$2.$conversion = $specifier; - $rt_throw(var$2); - } - var$2 = $this.$args.data[$this.$argumentIndex]; - $java.ju_Formatter$FormatWriter_formatGivenString($this, 0, var$2 === null ? $rt_s(47) : otci_IntegerUtil_toUnsignedLogRadixString(var$2.$hashCode0(), 4)); - break a; - case 111: - $java.ju_Formatter$FormatWriter_formatRadixInt($this, $specifier, 3, 0); - break a; - case 115: - $java.ju_Formatter$FormatWriter_formatString($this, $specifier, 0); - break a; - case 120: - $java.ju_Formatter$FormatWriter_formatRadixInt($this, $specifier, 4, 0); - break a; - default: - break b; - } - $java.ju_Formatter$FormatWriter_formatBoolean($this, $specifier, 1); - break a; - } - var$2 = new $java.ju_UnknownFormatConversionException; - var$6 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = $specifier; - jl_String__init_3(var$6, var$5); - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(2698)); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, var$6); - var$4 = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = var$4; - var$2.$conversion0 = var$6; - $rt_throw(var$2); - } -}; -$java.ju_Formatter$FormatWriter_formatBoolean = function($this, $specifier, $upperCase) { - var $arg, var$4, var$5, $s, var$7; - if (($this.$flags2 | 263) == 263) { - $arg = $this.$args.data[$this.$argumentIndex]; - $java.ju_Formatter$FormatWriter_formatGivenString($this, $upperCase, !($arg instanceof jl_Boolean ? $arg.$booleanValue() : $arg === null ? 0 : 1) ? $rt_s(2699) : $rt_s(2700)); - return; - } - $arg = new $java.ju_FormatFlagsConversionMismatchException; - $upperCase = jl_String_charAt($rt_s(2695), jl_Integer_numberOfTrailingZeros($this.$flags2 & (-264))); - var$4 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = $upperCase; - jl_String__init_3(var$4, var$5); - $s = new jl_StringBuilder; - $s.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($s, $s.$length, $rt_s(2696)); - jl_AbstractStringBuilder_insert($s, $s.$length, var$4); - jl_AbstractStringBuilder_insert($s, $s.$length, $rt_s(2697)); - $upperCase = $s.$length; - jl_AbstractStringBuilder_insertSpace($s, $upperCase, $upperCase + 1 | 0); - $s.$buffer.data[$upperCase] = $specifier; - var$7 = jl_String__init_0($s.$buffer, 0, $s.$length); - $arg.$suppressionEnabled = 1; - $arg.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($arg); - $arg.$message = var$7; - $arg.$flags3 = var$4; - $arg.$conversion = $specifier; - $rt_throw($arg); -}; -$java.ju_Formatter$FormatWriter_formatString = function($this, $specifier, $upperCase) { - var $arg, $flagsToPass, var$5, var$6, var$7, var$8; - if (($this.$flags2 | 263) == 263) { - $arg = $this.$args.data[$this.$argumentIndex]; - if (!$rt_isInstance($arg, $java.ju_Formattable)) - $java.ju_Formatter$FormatWriter_formatGivenString($this, $upperCase, $arg === null ? $rt_s(47) : $arg.$toString()); - else { - $flagsToPass = $this.$flags2 & 7; - if ($upperCase) - $flagsToPass = $flagsToPass | 2; - $arg.$formatTo($this.$formatter, $flagsToPass, $this.$width10, $this.$precision1); - } - return; - } - $arg = new $java.ju_FormatFlagsConversionMismatchException; - $upperCase = jl_String_charAt($rt_s(2695), jl_Integer_numberOfTrailingZeros($this.$flags2 & (-264))); - var$5 = new jl_String; - var$6 = $rt_createCharArray(1); - var$6.data[0] = $upperCase; - jl_String__init_3(var$5, var$6); - var$7 = new jl_StringBuilder; - var$7.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(2696)); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, var$5); - jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(2697)); - $upperCase = var$7.$length; - jl_AbstractStringBuilder_insertSpace(var$7, $upperCase, $upperCase + 1 | 0); - var$7.$buffer.data[$upperCase] = $specifier; - var$8 = jl_String__init_0(var$7.$buffer, 0, var$7.$length); - $arg.$suppressionEnabled = 1; - $arg.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($arg); - $arg.$message = var$8; - $arg.$flags3 = var$5; - $arg.$conversion = $specifier; - $rt_throw($arg); -}; -$java.ju_Formatter$FormatWriter_formatChar = function($this, $specifier, $upperCase) { - var $arg, var$4, var$5, var$6, var$7, $c, var$9, var$10; - if (($this.$flags2 | 259) != 259) { - $arg = new $java.ju_FormatFlagsConversionMismatchException; - $upperCase = jl_String_charAt($rt_s(2695), jl_Integer_numberOfTrailingZeros($this.$flags2 & (-260))); - var$4 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = $upperCase; - jl_String__init_3(var$4, var$5); - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_StringBuilder_insert6(var$6, var$6.$length, $rt_s(2696)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$4); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2697)); - jl_AbstractStringBuilder_insert4(var$6, var$6.$length, $specifier); - var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - $arg.$suppressionEnabled = 1; - $arg.$writableStackTrace = 1; - $arg.$message = var$7; - $arg.$flags3 = var$4; - $arg.$conversion = $specifier; - $rt_throw($arg); - } - $arg = $this.$args.data[$this.$argumentIndex]; - if ($this.$precision1 >= 0) { - $arg = new $java.ju_IllegalFormatPrecisionException; - $specifier = $this.$precision1; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2701)); - jl_AbstractStringBuilder_insert0(var$6, var$6.$length, $specifier, 10); - var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - $arg.$suppressionEnabled = 1; - $arg.$writableStackTrace = 1; - $arg.$message = var$7; - $arg.$precision2 = $specifier; - $rt_throw($arg); - } - if ($arg instanceof jl_Character) - $c = $arg.$charValue(); - else if ($arg instanceof jl_Byte) - $c = $arg.$byteValue() & 65535; - else if ($arg instanceof jl_Short) - $c = $arg.$shortValue() & 65535; - else { - if (!($arg instanceof jl_Integer)) { - if ($arg === null) { - $java.ju_Formatter$FormatWriter_formatGivenString($this, $upperCase, $rt_s(47)); - return; - } - var$6 = new $java.ju_IllegalFormatConversionException; - var$9 = jl_Class_getClass($arg.constructor); - $arg = new jl_StringBuilder; - $arg.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($arg, $arg.$length, $rt_s(2702)); - $upperCase = $arg.$length; - if (var$9 === null) - var$7 = $rt_s(47); - else { - var$10 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_(var$10); - var$4 = jl_Class_getClass(var$9.constructor); - if (var$4.$name === null) - var$4.$name = otp_Platform_getName(var$4.$platformClass); - jl_AbstractStringBuilder_append(var$10, var$4.$name); - jl_AbstractStringBuilder_append(var$10, $rt_s(1)); - jl_AbstractStringBuilder_append(var$10, otci_IntegerUtil_toUnsignedLogRadixString(jl_Object_identity(var$9), 4)); - var$7 = jl_AbstractStringBuilder_toString(var$10); - } - jl_AbstractStringBuilder_insert($arg, $upperCase, var$7); - jl_AbstractStringBuilder_insert($arg, $arg.$length, $rt_s(2703)); - $upperCase = $arg.$length; - jl_AbstractStringBuilder_insertSpace($arg, $upperCase, $upperCase + 1 | 0); - $arg.$buffer.data[$upperCase] = $specifier; - jl_AbstractStringBuilder_insert($arg, $arg.$length, $rt_s(2704)); - var$7 = jl_String__init_0($arg.$buffer, 0, $arg.$length); - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - var$6.$message = var$7; - var$6.$conversion1 = $specifier; - var$6.$argumentClass = var$9; - $rt_throw(var$6); - } - $c = $arg.$value; - if (!($c >= 0 && $c <= 1114111 ? 1 : 0)) { - $arg = new $java.ju_IllegalFormatCodePointException; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2705)); - jl_AbstractStringBuilder_insert0(var$6, var$6.$length, $c, 10); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2706)); - var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - $arg.$suppressionEnabled = 1; - $arg.$writableStackTrace = 1; - $arg.$message = var$7; - $arg.$codePoint = $c; - $rt_throw($arg); - } - } - $java.ju_Formatter$FormatWriter_formatGivenString($this, $upperCase, jl_String__init_(jl_Character_toChars($c))); -}; -$java.ju_Formatter$FormatWriter_formatDecimalInt = function($this, $specifier, $upperCase) { - var $arg, var$4, var$5, $str, var$7, $value, $prev, $negative, $value_0, $additionalSymbols, $sb, $valueSb, $separator, var$16, var$17, $size, $i, $i_0; - if (($this.$flags2 | 507) != 507) { - $arg = new $java.ju_FormatFlagsConversionMismatchException; - $upperCase = jl_String_charAt($rt_s(2695), jl_Integer_numberOfTrailingZeros($this.$flags2 & (-508))); - var$4 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = $upperCase; - jl_String__init_3(var$4, var$5); - $str = new jl_StringBuilder; - $str.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(2696)); - jl_AbstractStringBuilder_insert($str, $str.$length, var$4); - jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(2697)); - $upperCase = $str.$length; - jl_AbstractStringBuilder_insertSpace($str, $upperCase, $upperCase + 1 | 0); - $str.$buffer.data[$upperCase] = $specifier; - var$7 = jl_String__init_0($str.$buffer, 0, $str.$length); - $arg.$suppressionEnabled = 1; - $arg.$writableStackTrace = 1; - $arg.$message = var$7; - $arg.$flags3 = var$4; - $arg.$conversion = $specifier; - $rt_throw($arg); - } - $java.ju_Formatter$FormatWriter_verifyIntFlags($this); - $arg = $this.$args.data[$this.$argumentIndex]; - if ($arg instanceof jl_Long) { - $value = $arg.$longValue(); - $prev = Long_compare($value, Long_ZERO); - if ($prev <= 0) - $value = Long_neg($value); - $arg = new jl_StringBuilder; - $arg.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert1($arg, $arg.$length, $value, 10); - $str = jl_String__init_0($arg.$buffer, 0, $arg.$length); - $negative = $prev >= 0 ? 0 : 1; - } else { - if (!($arg instanceof jl_Integer) && !($arg instanceof jl_Byte) && !($arg instanceof jl_Short)) - $rt_throw($java.ju_IllegalFormatConversionException__init_($specifier, $arg === null ? null : jl_Object_getClass($arg))); - $value_0 = $arg.$intValue(); - $str = jl_Integer_toString0(jl_Math_abs($value_0)); - $negative = $value_0 >= 0 ? 0 : 1; - } - $additionalSymbols = 0; - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(16); - if ($negative) { - if (!($this.$flags2 & 128)) { - $specifier = $sb.$length; - jl_AbstractStringBuilder_insertSpace($sb, $specifier, $specifier + 1 | 0); - $sb.$buffer.data[$specifier] = 45; - $additionalSymbols = 1; - } else { - $specifier = $sb.$length; - jl_AbstractStringBuilder_insertSpace($sb, $specifier, $specifier + 1 | 0); - $sb.$buffer.data[$specifier] = 40; - $additionalSymbols = 2; - } - } else if ($this.$flags2 & 8) { - jl_StringBuilder_append($sb, 43); - $additionalSymbols = 1; - } else if ($this.$flags2 & 16) { - jl_StringBuilder_append($sb, 32); - $additionalSymbols = 1; - } - $valueSb = new jl_StringBuilder; - $valueSb.$buffer = $rt_createCharArray(16); - if (!($this.$flags2 & 64)) - jl_AbstractStringBuilder_insert($valueSb, $valueSb.$length, $str); - else { - $arg = new jt_DecimalFormatSymbols; - $arg.$locale0 = $this.$locale1; - jt_DecimalFormatSymbols_initData($arg); - $separator = $arg.$groupingSeparator; - var$16 = $this.$locale1; - var$17 = var$16.$languageCode; - var$4 = var$16.$countryCode; - if (otciu_CLDRHelper_$$metadata$$17 === null) - otciu_CLDRHelper_$$metadata$$17 = otciu_CLDRHelper_getNumberFormatMap$$create(); - $size = jt_DecimalFormat__init_4(otciu_CLDRHelper_resolveFormatSymbols(otciu_CLDRHelper_$$metadata$$17, var$17, var$4), jt_DecimalFormatSymbols__init_1(var$16)).$groupingSize; - $i = jl_String_length($str) % $size | 0; - if (!$i) - $i = $size; - $prev = 0; - while ($i < jl_String_length($str)) { - jl_StringBuilder_append0($valueSb, jl_String_substring0($str, $prev, $i)); - jl_StringBuilder_append($valueSb, $separator); - $i_0 = $i + $size | 0; - $prev = $i; - $i = $i_0; - } - jl_StringBuilder_append0($valueSb, jl_String_substring($str, $prev)); - } - a: { - if ($this.$flags2 & 32) { - $i_0 = jl_StringBuilder_length($valueSb) + $additionalSymbols | 0; - while (true) { - if ($i_0 >= $this.$width10) - break a; - jl_StringBuilder_append($sb, jl_Character_forDigit(0, 10)); - $i_0 = $i_0 + 1 | 0; - } - } - } - jl_StringBuilder_append8($sb, $valueSb); - if ($negative && $this.$flags2 & 128) - jl_StringBuilder_append($sb, 41); - $java.ju_Formatter$FormatWriter_formatGivenString($this, $upperCase, jl_StringBuilder_toString($sb)); -}; -$java.ju_Formatter$FormatWriter_formatRadixInt = function($this, $specifier, $radixLog2, $upperCase) { - var $arg, $prefix, var$6, $str, $sb, var$9, $i, var$11; - if (($this.$flags2 | 423) != 423) { - $arg = new $java.ju_FormatFlagsConversionMismatchException; - $radixLog2 = jl_String_charAt($rt_s(2695), jl_Integer_numberOfTrailingZeros($this.$flags2 & (-424))); - $prefix = new jl_String; - var$6 = $rt_createCharArray(1); - var$6.data[0] = $radixLog2; - jl_String__init_3($prefix, var$6); - $str = new jl_StringBuilder; - $str.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(2696)); - jl_AbstractStringBuilder_insert($str, $str.$length, $prefix); - jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(2697)); - $radixLog2 = $str.$length; - jl_AbstractStringBuilder_insertSpace($str, $radixLog2, $radixLog2 + 1 | 0); - $str.$buffer.data[$radixLog2] = $specifier; - $sb = jl_String__init_0($str.$buffer, 0, $str.$length); - $arg.$suppressionEnabled = 1; - $arg.$writableStackTrace = 1; - $arg.$message = $sb; - $arg.$flags3 = $prefix; - $arg.$conversion = $specifier; - $rt_throw($arg); - } - $java.ju_Formatter$FormatWriter_verifyIntFlags($this); - $arg = $this.$args.data[$this.$argumentIndex]; - if ($arg instanceof jl_Long) - $str = otci_IntegerUtil_toUnsignedLogRadixString0($arg.$longValue(), $radixLog2); - else if ($arg instanceof jl_Integer) - $str = otci_IntegerUtil_toUnsignedLogRadixString($arg.$value, $radixLog2); - else if ($arg instanceof jl_Short) - $str = otci_IntegerUtil_toUnsignedLogRadixString($arg.$shortValue() & 65535, $radixLog2); - else { - if (!($arg instanceof jl_Byte)) { - $str = new $java.ju_IllegalFormatConversionException; - $arg = $arg === null ? null : jl_Class_getClass($arg.constructor); - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(2702)); - $radixLog2 = $sb.$length; - if ($arg === null) - $prefix = $rt_s(47); - else { - $prefix = new jl_StringBuilder; - jl_AbstractStringBuilder__init_($prefix); - var$9 = jl_Class_getClass($arg.constructor); - if (var$9.$name === null) - var$9.$name = otp_Platform_getName(var$9.$platformClass); - jl_AbstractStringBuilder_append($prefix, var$9.$name); - jl_AbstractStringBuilder_append($prefix, $rt_s(1)); - jl_AbstractStringBuilder_append($prefix, otci_IntegerUtil_toUnsignedLogRadixString(jl_Object_identity($arg), 4)); - $prefix = jl_AbstractStringBuilder_toString($prefix); - } - jl_AbstractStringBuilder_insert($sb, $radixLog2, $prefix); - jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(2703)); - $radixLog2 = $sb.$length; - jl_AbstractStringBuilder_insertSpace($sb, $radixLog2, $radixLog2 + 1 | 0); - $sb.$buffer.data[$radixLog2] = $specifier; - jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(2704)); - $prefix = jl_String__init_0($sb.$buffer, 0, $sb.$length); - $str.$suppressionEnabled = 1; - $str.$writableStackTrace = 1; - $str.$message = $prefix; - $str.$conversion1 = $specifier; - $str.$argumentClass = $arg; - $rt_throw($str); - } - $str = otci_IntegerUtil_toUnsignedLogRadixString($arg.$byteValue() & 255, $radixLog2); - } - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray(16); - if ($this.$flags2 & 4) { - $prefix = $radixLog2 != 4 ? $rt_s(81) : $rt_s(2707); - $arg = new jl_StringBuilder; - $arg.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($arg, $arg.$length, $prefix); - jl_AbstractStringBuilder_insert($arg, $arg.$length, $str); - $str = jl_String__init_0($arg.$buffer, 0, $arg.$length); - } - a: { - if ($this.$flags2 & 32) { - $i = $str.$characters.data.length; - while (true) { - if ($i >= $this.$width10) - break a; - var$11 = jl_Character_forDigit(0, 10); - $specifier = $sb.$length; - jl_AbstractStringBuilder_insertSpace($sb, $specifier, $specifier + 1 | 0); - $sb.$buffer.data[$specifier] = var$11; - $i = $i + 1 | 0; - } - } - } - jl_AbstractStringBuilder_insert($sb, $sb.$length, $str); - $java.ju_Formatter$FormatWriter_formatGivenString($this, $upperCase, jl_String__init_0($sb.$buffer, 0, $sb.$length)); -}; -$java.ju_Formatter$FormatWriter_verifyIntFlags = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6; - if ($this.$flags2 & 8 && $this.$flags2 & 16) { - var$1 = new $java.ju_IllegalFormatFlagsException; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(2708)); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(2709)); - var$3 = jl_String__init_0(var$2.$buffer, 0, var$2.$length); - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - var$1.$message = var$3; - var$1.$flags4 = $rt_s(2709); - $rt_throw(var$1); - } - if ($this.$flags2 & 32 && $this.$flags2 & 1) { - var$1 = new $java.ju_IllegalFormatFlagsException; - var$2 = new jl_StringBuilder; - var$2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(2708)); - jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(2710)); - var$3 = jl_String__init_0(var$2.$buffer, 0, var$2.$length); - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - var$1.$message = var$3; - var$1.$flags4 = $rt_s(2710); - $rt_throw(var$1); - } - if ($this.$precision1 >= 0) { - var$1 = new $java.ju_IllegalFormatPrecisionException; - var$4 = $this.$precision1; - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(2701)); - jl_AbstractStringBuilder_insert0(var$5, var$5.$length, var$4, 10); - var$2 = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - var$1.$message = var$2; - var$1.$precision2 = var$4; - $rt_throw(var$1); - } - if ($this.$flags2 & 1 && $this.$width10 < 0) { - var$1 = new $java.ju_MissingFormatWidthException; - var$5 = $this.$format3; - var$4 = $this.$formatSpecifierStart; - var$6 = $this.$index8; - if (var$4 > var$6) { - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - var$3 = jl_String__init_0(var$5.$characters, var$4, var$6 - var$4 | 0); - var$5 = new jl_StringBuilder; - var$5.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(2711)); - jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$3); - var$2 = jl_String__init_0(var$5.$buffer, 0, var$5.$length); - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - var$1.$message = var$2; - var$1.$formatSpecifier = var$3; - $rt_throw(var$1); - } -}; -$java.ju_Formatter$FormatWriter_formatGivenString = function($this, $upperCase, $str) { - var var$3, var$4; - if ($this.$precision1 <= 0) - var$3 = $str; - else { - var$4 = $this.$precision1; - if (0 > var$4) { - $str = new jl_IndexOutOfBoundsException; - $str.$suppressionEnabled = 1; - $str.$writableStackTrace = 1; - $rt_throw($str); - } - var$3 = jl_String__init_0($str.$characters, 0, var$4 - 0 | 0); - } - if ($upperCase) - var$3 = jl_String_toUpperCase(var$3); - if (!($this.$flags2 & 1)) { - $java.ju_Formatter$FormatWriter_mayBeAppendSpaces($this, var$3); - $str = $this.$out4; - var$4 = var$3.$characters.data.length; - jl_AbstractStringBuilder_insert5($str, $str.$length, var$3, 0, var$4); - } else { - $str = $this.$out4; - var$4 = var$3.$characters.data.length; - jl_AbstractStringBuilder_insert5($str, $str.$length, var$3, 0, var$4); - $java.ju_Formatter$FormatWriter_mayBeAppendSpaces($this, var$3); - } -}; -$java.ju_Formatter$FormatWriter_mayBeAppendSpaces = function($this, $str) { - var $diff, $sb, $i, var$5; - if ($this.$width10 > $str.$characters.data.length) { - $diff = $this.$width10 - $str.$characters.data.length | 0; - $sb = new jl_StringBuilder; - $sb.$buffer = $rt_createCharArray($diff); - $i = 0; - while ($i < $diff) { - var$5 = $sb.$length; - jl_AbstractStringBuilder_insertSpace($sb, var$5, var$5 + 1 | 0); - $sb.$buffer.data[var$5] = 32; - $i = $i + 1 | 0; - } - $str = $this.$out4; - var$5 = $sb.$length; - jl_AbstractStringBuilder_insert5($str, $str.$length, $sb, 0, var$5); - } -}; -$java.ju_Formatter$FormatWriter_configureFormat = function($this) { - var var$1; - if ($this.$flags2 & 256) { - var$1 = $this.$previousArgumentIndex; - if (0 > var$1) - var$1 = 0; - $this.$argumentIndex = var$1; - } - if ($this.$argumentIndex == (-1)) { - var$1 = $this.$defaultArgumentIndex; - $this.$defaultArgumentIndex = var$1 + 1 | 0; - $this.$argumentIndex = var$1; - } - $this.$previousArgumentIndex = $this.$argumentIndex; -}; -$java.ju_Formatter$FormatWriter_parseFormatSpecifier = function($this) { - var $c, $n, var$3, var$4, var$5, var$6, var$7; - $this.$flags2 = 0; - $this.$argumentIndex = (-1); - $this.$width10 = (-1); - $this.$precision1 = (-1); - $c = jl_String_charAt($this.$format3, $this.$index8); - $n = $rt_compare($c, 48); - if ($n && ($n >= 0 && $c <= 57 ? 1 : 0)) { - $n = $java.ju_Formatter$FormatWriter_readInt($this); - if ($this.$index8 < $this.$format3.$characters.data.length && jl_String_charAt($this.$format3, $this.$index8) == 36) { - $this.$index8 = $this.$index8 + 1 | 0; - $this.$argumentIndex = $n - 1 | 0; - } else - $this.$width10 = $n; - } - $java.ju_Formatter$FormatWriter_parseFlags($this); - if ($this.$width10 < 0 && $this.$index8 < $this.$format3.$characters.data.length) { - $c = jl_String_charAt($this.$format3, $this.$index8); - if ($c >= 48 && $c <= 57 ? 1 : 0) - $this.$width10 = $java.ju_Formatter$FormatWriter_readInt($this); - } - a: { - if ($this.$index8 < $this.$format3.$characters.data.length && jl_String_charAt($this.$format3, $this.$index8) == 46) { - $this.$index8 = $this.$index8 + 1 | 0; - if ($this.$index8 < $this.$format3.$characters.data.length) { - $c = jl_String_charAt($this.$format3, $this.$index8); - if ($c >= 48 && $c <= 57 ? 1 : 0) { - $this.$precision1 = $java.ju_Formatter$FormatWriter_readInt($this); - break a; - } - } - var$3 = new $java.ju_UnknownFormatConversionException; - $c = jl_String_charAt($this.$format3, $this.$index8 - 1 | 0); - var$4 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = $c; - jl_String__init_3(var$4, var$5); - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2698)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$4); - var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = var$7; - var$3.$conversion0 = var$4; - $rt_throw(var$3); - } - } - if ($this.$index8 < $this.$format3.$characters.data.length) { - var$3 = $this.$format3; - $n = $this.$index8; - $this.$index8 = $n + 1 | 0; - return jl_String_charAt(var$3, $n); - } - var$3 = new $java.ju_UnknownFormatConversionException; - $c = jl_String_charAt($this.$format3, $this.$format3.$characters.data.length - 1 | 0); - var$4 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = $c; - jl_String__init_3(var$4, var$5); - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2698)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$4); - var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = var$7; - var$3.$conversion0 = var$4; - $rt_throw(var$3); -}; -$java.ju_Formatter$FormatWriter_parseFlags = function($this) { - var $c, $flag, var$3, var$4, var$5, var$6, var$7; - a: { - while ($this.$index8 < $this.$format3.$characters.data.length) { - b: { - $c = jl_String_charAt($this.$format3, $this.$index8); - switch ($c) { - case 32: - break; - case 33: - case 34: - case 36: - case 37: - case 38: - case 39: - case 41: - case 42: - case 46: - case 47: - case 49: - case 50: - case 51: - case 52: - case 53: - case 54: - case 55: - case 56: - case 57: - case 58: - case 59: - break a; - case 35: - $flag = 4; - break b; - case 40: - $flag = 128; - break b; - case 43: - $flag = 8; - break b; - case 44: - $flag = 64; - break b; - case 45: - $flag = 1; - break b; - case 48: - $flag = 32; - break b; - case 60: - $flag = 256; - break b; - default: - break a; - } - $flag = 16; - } - if ($this.$flags2 & $flag) { - var$3 = new $java.ju_DuplicateFormatFlagsException; - var$4 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = $c; - jl_String__init_3(var$4, var$5); - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(2712)); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$4); - var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - var$3.$message = var$7; - var$3.$flags5 = var$4; - $rt_throw(var$3); - } - $this.$flags2 = $this.$flags2 | $flag; - $this.$index8 = $this.$index8 + 1 | 0; - } - return; - } -}; -$java.ju_Formatter$FormatWriter_readInt = function($this) { - var $result, var$2, var$3, var$4; - $result = 0; - while ($this.$index8 < $this.$format3.$characters.data.length) { - var$2 = jl_String_charAt($this.$format3, $this.$index8); - if (!(var$2 >= 48 && var$2 <= 57 ? 1 : 0)) - break; - var$2 = $result * 10 | 0; - var$3 = $this.$format3; - var$4 = $this.$index8; - $this.$index8 = var$4 + 1 | 0; - $result = var$2 + (jl_String_charAt(var$3, var$4) - 48 | 0) | 0; - } - return $result; -}; -function ju_LinkedHashMap$2() { - ju_AbstractCollection.call(this); - this.$this$06 = null; -} -$java.ju_LinkedHashMap$2_size = function($this) { - return $this.$this$06.$elementCount; -}; -$java.ju_LinkedHashMap$2_iterator = function($this) { - var var$1, var$2; - var$1 = new $java.ju_LinkedHashMap$ValueIterator; - var$2 = $this.$this$06; - var$1.$expectedModCount0 = var$2.$modCount1; - var$1.$futureEntry0 = var$2.$head4; - var$1.$associatedMap1 = var$2; - return var$1; -}; -function ju_FormatterClosedException() { - jl_IllegalStateException.call(this); -} -$java.ju_FormatterClosedException__init_ = function() { - var var_0 = new ju_FormatterClosedException(); - ju_FormatterClosedException__init_(var_0); - return var_0; -}; -function ju_FormatterClosedException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function otcit_FloatAnalyzer() { - jl_Object.call(this); -} -$java.otcit_FloatAnalyzer_mantissa10Table = null; -$java.otcit_FloatAnalyzer_exp10Table = null; -$java.otcit_FloatAnalyzer__init_ = function() { - var var_0 = new otcit_FloatAnalyzer(); - otcit_FloatAnalyzer__init_(var_0); - return var_0; -}; -function otcit_FloatAnalyzer__init_($this) { - return; -} -function otcit_FloatAnalyzer_analyze($d, $result) { - var $bits, $mantissa, $exponent, $errorShift, var$7, $decExponent, $mantissaShift, var$10, $decMantissa, $error, $upError, $downError, $lowerPos, $upperPos; - $bits = $rt_floatToIntBits($d); - $result.$sign = !($bits & (-2147483648)) ? 0 : 1; - $mantissa = $bits & 8388607; - $exponent = $bits >> 23 & 255; - if (!$mantissa && !$exponent) { - $result.$mantissa = 0; - $result.$exponent = 0; - return; - } - $errorShift = 0; - if ($exponent) - $mantissa = $mantissa | 8388608; - else { - $mantissa = $mantissa << 1; - while (Long_eq(Long_and(Long_fromInt($mantissa), Long_fromInt(8388608)), Long_ZERO)) { - $mantissa = $mantissa << 1; - $exponent = $exponent + (-1) | 0; - $errorShift = $errorShift + 1 | 0; - } - } - var$7 = $java.otcit_FloatAnalyzer_exp10Table; - $decExponent = ju_Arrays_binarySearch(var$7, 0, var$7.data.length, $exponent); - if ($decExponent < 0) - $decExponent = -$decExponent - 2 | 0; - $mantissaShift = 9 + ($exponent - $java.otcit_FloatAnalyzer_exp10Table.data[$decExponent] | 0) | 0; - var$10 = Long_fromInt($mantissa); - $decMantissa = Long_shru(Long_mul(var$10, Long_fromInt($java.otcit_FloatAnalyzer_mantissa10Table.data[$decExponent])), 32 - $mantissaShift | 0).lo; - if ($decMantissa >= 1000000000) { - $decExponent = $decExponent + 1 | 0; - $mantissaShift = 9 + ($exponent - $java.otcit_FloatAnalyzer_exp10Table.data[$decExponent] | 0) | 0; - $decMantissa = Long_shru(Long_mul(var$10, Long_fromInt($java.otcit_FloatAnalyzer_mantissa10Table.data[$decExponent])), 32 - $mantissaShift | 0).lo; - } - $exponent = (31 - $mantissaShift | 0) - $errorShift | 0; - $error = $exponent >= 0 ? $java.otcit_FloatAnalyzer_mantissa10Table.data[$decExponent] >>> $exponent : $java.otcit_FloatAnalyzer_mantissa10Table.data[$decExponent] << -$exponent; - $upError = ($error + 1 | 0) >> 1; - $downError = $error >> 1; - if ($mantissa == 4194304) - $downError = $downError >> 2; - $lowerPos = $java.otcit_FloatAnalyzer_findLowerDistanceToZero($decMantissa, $downError); - $upperPos = $java.otcit_FloatAnalyzer_findUpperDistanceToZero($decMantissa, $upError); - $mantissa = $rt_compare($lowerPos, $upperPos); - $mantissa = $mantissa > 0 ? $rt_imul($decMantissa / $lowerPos | 0, $lowerPos) : $mantissa < 0 ? $rt_imul($decMantissa / $upperPos | 0, $upperPos) + $upperPos | 0 : $rt_imul(($decMantissa + ($upperPos / 2 | 0) | 0) / $upperPos | 0, $upperPos); - if ($mantissa >= 1000000000) { - $decExponent = $decExponent + 1 | 0; - $mantissa = $mantissa / 10 | 0; - } else if ($mantissa < 100000000) { - $decExponent = $decExponent + (-1) | 0; - $mantissa = $mantissa * 10 | 0; - } - $result.$mantissa = $mantissa; - $result.$exponent = $decExponent - 50 | 0; -} -$java.otcit_FloatAnalyzer_findLowerDistanceToZero = function($mantissa, $error) { - var $pos; - $pos = 10; - while ($pos <= $error) { - $pos = $pos * 10 | 0; - } - if (($mantissa % $pos | 0) >= ($error / 2 | 0)) - $pos = $pos / 10 | 0; - return $pos; -}; -$java.otcit_FloatAnalyzer_findUpperDistanceToZero = function($mantissa, $error) { - var $pos; - $pos = 10; - while ($pos <= $error) { - $pos = $pos * 10 | 0; - } - if (($pos - ($mantissa % $pos | 0) | 0) > ($error / 2 | 0)) - $pos = $pos / 10 | 0; - return $pos; -}; -function otcit_FloatAnalyzer__clinit_() { - var $decMantissaOne, $exponent, $i, $maxMantissa, var$5, var$6, $remainder, $shift; - $java.otcit_FloatAnalyzer_mantissa10Table = $rt_createIntArray(100); - $java.otcit_FloatAnalyzer_exp10Table = $rt_createIntArray(100); - $decMantissaOne = 2000000000; - $exponent = 127; - $i = 0; - $maxMantissa = $decMantissaOne; - while ($i < 50) { - var$5 = $java.otcit_FloatAnalyzer_mantissa10Table.data; - var$6 = $i + 50 | 0; - var$5[var$6] = $rt_udiv($maxMantissa, 20); - $java.otcit_FloatAnalyzer_exp10Table.data[var$6] = $exponent; - var$6 = $rt_udiv($maxMantissa, 10); - $remainder = $rt_umod(var$6, 10); - while (var$6 <= $decMantissaOne && !(var$6 & (-2147483648))) { - var$6 = var$6 << 1; - $exponent = $exponent + 1 | 0; - $remainder = $remainder << 1; - } - $maxMantissa = var$6 + ($remainder / 10 | 0) | 0; - $i = $i + 1 | 0; - } - $exponent = 127; - $i = 0; - while ($i < 50) { - $shift = 0; - $remainder = $decMantissaOne; - while ($remainder > 214748364) { - $remainder = $remainder >> 1; - $shift = $shift + 1 | 0; - $exponent = $exponent + (-1) | 0; - } - $remainder = $remainder * 10 | 0; - $decMantissaOne = $shift <= 0 ? $remainder : Long_add(Long_fromInt($remainder), Long_shr(Long_mul(Long_fromInt($decMantissaOne & ((1 << $shift) - 1 | 0)), Long_fromInt(10)), $shift)).lo; - var$5 = $java.otcit_FloatAnalyzer_mantissa10Table.data; - $shift = (50 - $i | 0) - 1 | 0; - var$5[$shift] = $rt_udiv($decMantissaOne, 20); - $java.otcit_FloatAnalyzer_exp10Table.data[$shift] = $exponent; - $i = $i + 1 | 0; - } -} -function jur_MatchResultImpl() { - var a = this; jl_Object.call(a); - a.$groupBounds = null; - a.$consumers = null; - a.$compQuantCounters = null; - a.$string4 = null; - a.$groupCount = 0; - a.$valid = 0; - a.$leftBound = 0; - a.$rightBound = 0; - a.$startIndex = 0; - a.$transparentBounds = 0; - a.$anchoringBounds = 0; - a.$hitEnd = 0; - a.$requireEnd = 0; - a.$previousMatch = 0; - a.$mode3 = 0; -} -$java.jur_MatchResultImpl__init_ = function(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new jur_MatchResultImpl(); - $java.jur_MatchResultImpl__init_0(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -}; -$java.jur_MatchResultImpl__init_0 = function($this, $string, $leftBound, $rightBound, $groupCount, $compQuantCount, $consumersCount) { - var var$7, var$8; - $this.$previousMatch = (-1); - var$7 = $groupCount + 1 | 0; - $this.$groupCount = var$7; - $this.$groupBounds = $rt_createIntArray(var$7 * 2 | 0); - $this.$consumers = $rt_createIntArray($consumersCount); - var$8 = $this.$consumers; - ju_Arrays_fill0(var$8, 0, var$8.data.length, (-1)); - if ($compQuantCount > 0) - $this.$compQuantCounters = $rt_createIntArray($compQuantCount); - var$8 = $this.$groupBounds; - ju_Arrays_fill0(var$8, 0, var$8.data.length, (-1)); - $java.jur_MatchResultImpl_reset($this, $string, $leftBound, $rightBound); -}; -$java.jur_MatchResultImpl_setConsumed = function($this, $counter, $value) { - $this.$consumers.data[$counter] = $value; -}; -$java.jur_MatchResultImpl_getConsumed = function($this, $counter) { - return $this.$consumers.data[$counter]; -}; -$java.jur_MatchResultImpl_end = function($this) { - jur_MatchResultImpl_checkGroup($this, 0); - return $this.$groupBounds.data[1]; -}; -$java.jur_MatchResultImpl_end0 = function($this, $group) { - jur_MatchResultImpl_checkGroup($this, $group); - return $this.$groupBounds.data[($group * 2 | 0) + 1 | 0]; -}; -$java.jur_MatchResultImpl_setStart = function($this, $group, $offset) { - $this.$groupBounds.data[$group * 2 | 0] = $offset; -}; -$java.jur_MatchResultImpl_setEnd = function($this, $group, $offset) { - $this.$groupBounds.data[($group * 2 | 0) + 1 | 0] = $offset; -}; -$java.jur_MatchResultImpl_getStart = function($this, $group) { - return $this.$groupBounds.data[$group * 2 | 0]; -}; -$java.jur_MatchResultImpl_getEnd = function($this, $group) { - return $this.$groupBounds.data[($group * 2 | 0) + 1 | 0]; -}; -$java.jur_MatchResultImpl_group = function($this, $group) { - var var$2, var$3, var$4, var$5; - jur_MatchResultImpl_checkGroup($this, $group); - var$2 = $this.$groupBounds.data; - var$3 = $group * 2 | 0; - if (var$2[var$3] < 0) - return null; - var$4 = $this.$string4; - jur_MatchResultImpl_checkGroup($this, $group); - var$5 = $this.$groupBounds.data[var$3]; - jur_MatchResultImpl_checkGroup($this, $group); - var$3 = $this.$groupBounds.data[var$3 + 1 | 0]; - if (var$5 <= var$3) - return jl_String__init_0(var$4.$characters, var$5, var$3 - var$5 | 0); - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -}; -$java.jur_MatchResultImpl_getGroupNoCheck = function($this, $group) { - var var$2, var$3, $st, $end, var$6; - var$2 = $this.$groupBounds.data; - var$3 = $group * 2 | 0; - $st = var$2[var$3]; - $end = $this.$groupBounds.data[var$3 + 1 | 0]; - $group = $end | $st; - var$3 = $end - $st | 0; - if (($group | var$3) >= 0 && $end <= $this.$string4.$characters.data.length) { - var$6 = $this.$string4; - if ($st <= $end) - return jl_String__init_0(var$6.$characters, $st, var$3); - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); - } - return null; -}; -$java.jur_MatchResultImpl_start = function($this) { - jur_MatchResultImpl_checkGroup($this, 0); - return $this.$groupBounds.data[0]; -}; -$java.jur_MatchResultImpl_start0 = function($this, $group) { - jur_MatchResultImpl_checkGroup($this, $group); - return $this.$groupBounds.data[$group * 2 | 0]; -}; -$java.jur_MatchResultImpl_finalizeMatch = function($this) { - if ($this.$groupBounds.data[0] == (-1)) { - $this.$groupBounds.data[0] = $this.$startIndex; - $this.$groupBounds.data[1] = $this.$startIndex; - } - jur_MatchResultImpl_checkGroup($this, 0); - $this.$previousMatch = $this.$groupBounds.data[1]; -}; -$java.jur_MatchResultImpl_getEnterCounter = function($this, $setCounter) { - return $this.$compQuantCounters.data[$setCounter]; -}; -$java.jur_MatchResultImpl_setEnterCounter = function($this, $setCounter, $value) { - $this.$compQuantCounters.data[$setCounter] = $value; -}; -function jur_MatchResultImpl_checkGroup($this, $group) { - var var$2, var$3, var$4; - if (!$this.$valid) { - var$2 = new jl_IllegalStateException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - if ($group >= 0 && $group < $this.$groupCount) - return; - var$2 = new jl_IndexOutOfBoundsException; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $group, 10); - 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); -} -$java.jur_MatchResultImpl_setValid = function($this) { - $this.$valid = 1; -}; -$java.jur_MatchResultImpl_isValid = function($this) { - return $this.$valid; -}; -$java.jur_MatchResultImpl_reset = function($this, $newSequence, $leftBound, $rightBound) { - var var$4; - $this.$valid = 0; - $this.$mode3 = 2; - var$4 = $this.$groupBounds; - ju_Arrays_fill0(var$4, 0, var$4.data.length, (-1)); - var$4 = $this.$consumers; - ju_Arrays_fill0(var$4, 0, var$4.data.length, (-1)); - if ($newSequence !== null) - $this.$string4 = $newSequence; - if ($leftBound >= 0) { - $this.$leftBound = $leftBound; - $this.$rightBound = $rightBound; - } - $this.$startIndex = $this.$leftBound; -}; -$java.jur_MatchResultImpl_reset0 = function($this) { - $java.jur_MatchResultImpl_reset($this, null, (-1), (-1)); -}; -$java.jur_MatchResultImpl_setStartIndex = function($this, $startIndex) { - $this.$startIndex = $startIndex; - if ($this.$previousMatch >= 0) - $startIndex = $this.$previousMatch; - $this.$previousMatch = $startIndex; -}; -$java.jur_MatchResultImpl_getLeftBound = function($this) { - return $this.$leftBound; -}; -$java.jur_MatchResultImpl_getRightBound = function($this) { - return $this.$rightBound; -}; -$java.jur_MatchResultImpl_setMode = function($this, $mode) { - $this.$mode3 = $mode; -}; -$java.jur_MatchResultImpl_mode = function($this) { - return $this.$mode3; -}; -$java.jur_MatchResultImpl_hasAnchoringBounds = function($this) { - return $this.$anchoringBounds; -}; -$java.jur_MatchResultImpl_hasTransparentBounds = function($this) { - return $this.$transparentBounds; -}; -$java.jur_MatchResultImpl_getPreviousMatchEnd = function($this) { - return $this.$previousMatch; -}; -$java.nms_GuiConnecting = function() { - var a = this; nms_GuiScreen.call(a); - a.$clientHandler = null; - a.$networkConnection = null; - a.$uri = null; - a.$cancelled = 0; - a.$field_98098_c = null; - a.$timer1 = 0; -}; -$java.nms_GuiConnecting__init_0 = function(var_0, var_1, var_2) { - var var_3 = new $java.nms_GuiConnecting(); - $java.nms_GuiConnecting__init_(var_3, var_0, var_1, var_2); - return var_3; -}; -$java.nms_GuiConnecting__init_ = function($this, $par1GuiScreen, $par2Minecraft, $par3ServerData) { - var var$4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$4 = $thread.pop();$par3ServerData = $thread.pop();$par2Minecraft = $thread.pop();$par1GuiScreen = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_GuiScreen__init_($this); - $this.$cancelled = 0; - $this.$mc4 = $par2Minecraft; - $this.$field_98098_c = $par1GuiScreen; - $this.$clientHandler = null; - $this.$networkConnection = null; - $this.$uri = $par3ServerData.$serverIP; - $par1GuiScreen = null; - var$4 = $rt_s(44); - $ptr = 1; - case 1: - nmc_Minecraft_loadWorld0($par2Minecraft, $par1GuiScreen, var$4); - if ($rt_suspending()) { - break main; - } - $par2Minecraft.$currentServerData = $par3ServerData; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiScreen, $par2Minecraft, $par3ServerData, var$4, $ptr); -}; -$java.nms_GuiConnecting_updateScreen = function($this) { - var $e, var$2, var$3, var$4, var$5, var$6, $i, $port, $i2, var$10, var$11, var$12, var$13, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();$i2 = $thread.pop();$port = $thread.pop();$i = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$e = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$timer1 > 2 && $this.$clientHandler === null) { - try { - if (jl_String_startsWith0($this.$uri, $rt_s(2713))) - $e = jl_String_substring($this.$uri, 5); - else if (jl_String_startsWith0($this.$uri, $rt_s(2714))) - $e = jl_String_substring($this.$uri, 6); - else { - if (jl_String_contains($this.$uri, $rt_s(2715))) { - var$2 = $this.$mc4; - var$3 = new $java.nms_GuiDisconnected; - var$4 = $this.$field_98098_c; - var$5 = $rt_createArray(jl_Object, 2); - var$6 = var$5.data; - var$6[0] = $rt_s(2716); - var$6[1] = $rt_s(44); - $java.nms_GuiDisconnected__init_(var$3, var$4, $rt_s(2717), $rt_s(2511), var$5); - $ptr = 3; - continue main; - } - $e = $this.$uri; - $this.$uri = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(2713)), $this.$uri)); - } - $i = jl_String_indexOf0($e, 58); - $port = (-1); - if ($i == (-1)) - $port = !jl_String_startsWith0($this.$uri, $rt_s(2718)) ? 80 : 443; - if (jl_String_endsWith($e, $rt_s(58))) - $e = jl_String_substring0($e, 0, jl_String_length($e) - 1 | 0); - a: { - b: { - if ($port == (-1)) { - c: { - try { - $i2 = jl_String_indexOf0($e, 47); - $i = $i + 1 | 0; - if ($i2 == (-1)) { - $port = jl_String_length($e); - break c; - } - $port = $i2 - 1 | 0; - break c; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Throwable) { - break a; - } else { - throw $$e; - } - } - } - try { - $port = jl_Integer_parseInt0(jl_String_substring0($e, $i, $port)); - break b; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Throwable) { - break a; - } else { - throw $$e; - } - } - } - } - var$10 = new nms_NetClientHandler; - var$11 = $this.$mc4; - var$2 = $this.$uri; - $i = 0; - $ptr = 4; - continue main; - } - $e = $this.$mc4; - var$10 = new $java.nms_GuiDisconnected; - var$11 = $this.$field_98098_c; - var$6 = $rt_createArray(jl_Object, 2); - var$5 = var$6.data; - var$5[0] = $rt_s(2719); - var$5[1] = $rt_s(44); - $java.nms_GuiDisconnected__init_(var$10, var$11, $rt_s(2717), $rt_s(2511), var$6); - $ptr = 5; - continue main; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $e = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - jl_Throwable_printStackTrace0($e, jl_System_errCache); - var$10 = $this.$mc4; - var$11 = new $java.nms_GuiDisconnected; - var$2 = $this.$field_98098_c; - var$5 = $rt_createArray(jl_Object, 2); - var$6 = var$5.data; - var$12 = new jl_StringBuilder; - var$12.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(2720)); - var$13 = $this.$uri; - jl_AbstractStringBuilder_insert(var$12, var$12.$length, var$13); - var$6[0] = jl_String__init_0(var$12.$buffer, 0, var$12.$length); - var$6[1] = jl_Throwable_toString($e); - nms_GuiScreen__init_(var$11); - $e = nms_StringTranslate_instance; - var$11.$field_98095_n = var$2; - var$11.$errorMessage = nms_StringTranslate_translateKey($e, $rt_s(2717)); - var$11.$errorDetail = $rt_s(2511); - var$11.$field_74247_c = var$5; - $ptr = 2; - continue main; - } - if ($this.$clientHandler === null) { - $this.$timer1 = $this.$timer1 + 1 | 0; - return; - } - $e = $this.$clientHandler; - $ptr = 1; - case 1: - $java.nms_NetClientHandler_processReadPackets($e); - if ($rt_suspending()) { - break main; - } - $this.$timer1 = $this.$timer1 + 1 | 0; - return; - case 2: - nmc_Minecraft_displayGuiScreen(var$10, var$11); - if ($rt_suspending()) { - break main; - } - if ($this.$clientHandler === null) { - $this.$timer1 = $this.$timer1 + 1 | 0; - return; - } - $e = $this.$clientHandler; - $ptr = 1; - continue main; - case 3: - d: { - try { - nmc_Minecraft_displayGuiScreen(var$2, var$3); - if ($rt_suspending()) { - break main; - } - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $e = $$je; - break d; - } else { - throw $$e; - } - } - return; - } - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - jl_Throwable_printStackTrace0($e, jl_System_errCache); - var$10 = $this.$mc4; - var$11 = new $java.nms_GuiDisconnected; - var$2 = $this.$field_98098_c; - var$5 = $rt_createArray(jl_Object, 2); - var$6 = var$5.data; - var$12 = new jl_StringBuilder; - var$12.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(2720)); - var$13 = $this.$uri; - jl_AbstractStringBuilder_insert(var$12, var$12.$length, var$13); - var$6[0] = jl_String__init_0(var$12.$buffer, 0, var$12.$length); - var$6[1] = jl_Throwable_toString($e); - nms_GuiScreen__init_(var$11); - $e = nms_StringTranslate_instance; - var$11.$field_98095_n = var$2; - var$11.$errorMessage = nms_StringTranslate_translateKey($e, $rt_s(2717)); - var$11.$errorDetail = $rt_s(2511); - var$11.$field_74247_c = var$5; - $ptr = 2; - continue main; - case 4: - d: { - try { - $java.nms_NetClientHandler__init_0(var$10, var$11, var$2, $i); - if ($rt_suspending()) { - break main; - } - $this.$clientHandler = var$10; - var$10 = $this.$clientHandler; - var$11 = new nms_Packet2ClientProtocol; - nle_EaglerProfile_$callClinit(); - $java.nms_Packet2ClientProtocol__init_1(var$11, 69, nle_EaglerProfile_username, $e, $port); - nms_NetClientHandler_addToSendQueue(var$10, var$11); - nms_NetClientHandler_addToSendQueue($this.$clientHandler, nms_Packet250CustomPayload__init_0($rt_s(2721), nle_EaglerProfile_getSkinPacket())); - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $e = $$je; - break d; - } else { - throw $$e; - } - } - if ($this.$clientHandler === null) { - $this.$timer1 = $this.$timer1 + 1 | 0; - return; - } - $e = $this.$clientHandler; - $ptr = 1; - continue main; - } - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - jl_Throwable_printStackTrace0($e, jl_System_errCache); - var$10 = $this.$mc4; - var$11 = new $java.nms_GuiDisconnected; - var$2 = $this.$field_98098_c; - var$5 = $rt_createArray(jl_Object, 2); - var$6 = var$5.data; - var$12 = new jl_StringBuilder; - var$12.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(2720)); - var$13 = $this.$uri; - jl_AbstractStringBuilder_insert(var$12, var$12.$length, var$13); - var$6[0] = jl_String__init_0(var$12.$buffer, 0, var$12.$length); - var$6[1] = jl_Throwable_toString($e); - nms_GuiScreen__init_(var$11); - $e = nms_StringTranslate_instance; - var$11.$field_98095_n = var$2; - var$11.$errorMessage = nms_StringTranslate_translateKey($e, $rt_s(2717)); - var$11.$errorDetail = $rt_s(2511); - var$11.$field_74247_c = var$5; - $ptr = 2; - continue main; - case 5: - d: { - try { - nmc_Minecraft_displayGuiScreen($e, var$10); - if ($rt_suspending()) { - break main; - } - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $e = $$je; - break d; - } else { - throw $$e; - } - } - return; - } - if (jl_System_errCache === null) { - var$11 = new ji_PrintStream; - var$11.$out = new jl_ConsoleOutputStreamStderr; - var$10 = new jl_StringBuilder; - var$10.$buffer = $rt_createCharArray(16); - var$11.$sb = var$10; - var$11.$buffer0 = $rt_createCharArray(32); - var$11.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$11.$charset = var$10; - jl_System_errCache = var$11; - } - jl_Throwable_printStackTrace0($e, jl_System_errCache); - var$10 = $this.$mc4; - var$11 = new $java.nms_GuiDisconnected; - var$2 = $this.$field_98098_c; - var$5 = $rt_createArray(jl_Object, 2); - var$6 = var$5.data; - var$12 = new jl_StringBuilder; - var$12.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(2720)); - var$13 = $this.$uri; - jl_AbstractStringBuilder_insert(var$12, var$12.$length, var$13); - var$6[0] = jl_String__init_0(var$12.$buffer, 0, var$12.$length); - var$6[1] = jl_Throwable_toString($e); - nms_GuiScreen__init_(var$11); - $e = nms_StringTranslate_instance; - var$11.$field_98095_n = var$2; - var$11.$errorMessage = nms_StringTranslate_translateKey($e, $rt_s(2717)); - var$11.$errorDetail = $rt_s(2511); - var$11.$field_74247_c = var$5; - $ptr = 2; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $e, var$2, var$3, var$4, var$5, var$6, $i, $port, $i2, var$10, var$11, var$12, var$13, $ptr); -}; -$java.nms_GuiConnecting_keyTyped = function($this, $par1, $par2) { - return; -}; -$java.nms_GuiConnecting_initGui = function($this) { - var $var1, var$2; - $var1 = nms_StringTranslate_instance; - var$2 = $this.$buttonList; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(0, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 120 | 0) + 12 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(2548)))); -}; -$java.nms_GuiConnecting_actionPerformed = function($this, $par1GuiButton) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$id2) - return; - $this.$cancelled = 1; - if ($this.$clientHandler !== null) { - $par1GuiButton = $this.$clientHandler; - $par1GuiButton.$disconnected = 1; - $java.nle_WebsocketNetworkManager_networkShutdown($par1GuiButton.$netManager, $rt_s(2512), $rt_createArray(jl_Object, 0)); - } - $par1GuiButton = $this.$mc4; - var$2 = $this.$field_98098_c; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, $ptr); -}; -$java.nms_GuiConnecting_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7, var$8, var$9; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - $var4 = nms_StringTranslate_instance; - if ($this.$clientHandler === null) { - var$5 = $this.$fontRenderer0; - var$6 = nms_StringTranslate_translateKey($var4, $rt_s(2722)); - var$7 = $this.$width0 / 2 | 0; - var$8 = ($this.$height0 / 2 | 0) - 50 | 0; - nms_FontRenderer_drawString(var$5, var$6, var$7 - (nms_FontRenderer_getStringWidth(var$5, var$6) / 2 | 0) | 0, var$8, 16777215, 1); - var$5 = $this.$fontRenderer0; - var$7 = $this.$width0 / 2 | 0; - var$8 = ($this.$height0 / 2 | 0) - 10 | 0; - nms_FontRenderer_drawString(var$5, $rt_s(44), var$7 - (nms_FontRenderer_getStringWidth(var$5, $rt_s(44)) / 2 | 0) | 0, var$8, 16777215, 1); - } else { - var$6 = $this.$fontRenderer0; - var$5 = nms_StringTranslate_translateKey($var4, $rt_s(2723)); - var$9 = $this.$width0 / 2 | 0; - var$7 = ($this.$height0 / 2 | 0) - 50 | 0; - nms_FontRenderer_drawString(var$6, var$5, var$9 - (nms_FontRenderer_getStringWidth(var$6, var$5) / 2 | 0) | 0, var$7, 16777215, 1); - var$5 = $this.$fontRenderer0; - var$6 = $this.$clientHandler.$field_72560_a; - var$7 = $this.$width0 / 2 | 0; - var$8 = ($this.$height0 / 2 | 0) - 10 | 0; - nms_FontRenderer_drawString(var$5, var$6, var$7 - (nms_FontRenderer_getStringWidth(var$5, var$6) / 2 | 0) | 0, var$8, 16777215, 1); - } - var$7 = 0; - a: { - while (var$7 < $this.$buttonList.$size0) { - var$5 = $this.$buttonList; - if (var$7 < 0) - break a; - if (var$7 >= var$5.$size0) - break a; - var$5.$array1.data[var$7].$drawButton($this.$mc4, $par1, $par2); - var$7 = var$7 + 1 | 0; - } - return; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); -}; -$java.nms_ISidedInventory = function() { -}; -function nms_TileEntityFurnace() { - var a = this; nms_TileEntity.call(a); - a.$furnaceItemStacks = null; - a.$furnaceBurnTime = 0; - a.$currentItemBurnTime = 0; - a.$furnaceCookTime = 0; - a.$field_94130_e = null; -} -$java.nms_TileEntityFurnace_field_102010_d = null; -$java.nms_TileEntityFurnace_field_102011_e = null; -$java.nms_TileEntityFurnace_field_102009_f = null; -$java.nms_TileEntityFurnace__init_ = function() { - var var_0 = new nms_TileEntityFurnace(); - nms_TileEntityFurnace__init_(var_0); - return var_0; -}; -function nms_TileEntityFurnace__init_($this) { - $this.$blockMetadata = (-1); - $this.$furnaceItemStacks = $rt_createArray(nms_ItemStack, 3); - $this.$furnaceBurnTime = 0; - $this.$currentItemBurnTime = 0; - $this.$furnaceCookTime = 0; -} -$java.nms_TileEntityFurnace_getSizeInventory = function($this) { - return $this.$furnaceItemStacks.data.length; -}; -$java.nms_TileEntityFurnace_getStackInSlot = function($this, $par1) { - return $this.$furnaceItemStacks.data[$par1]; -}; -$java.nms_TileEntityFurnace_decrStackSize = function($this, $par1, $par2) { - var $var3; - if ($this.$furnaceItemStacks.data[$par1] === null) - return null; - if ($this.$furnaceItemStacks.data[$par1].$stackSize <= $par2) { - $var3 = $this.$furnaceItemStacks.data[$par1]; - $this.$furnaceItemStacks.data[$par1] = null; - return $var3; - } - $var3 = nms_ItemStack_splitStack($this.$furnaceItemStacks.data[$par1], $par2); - if (!$this.$furnaceItemStacks.data[$par1].$stackSize) - $this.$furnaceItemStacks.data[$par1] = null; - return $var3; -}; -$java.nms_TileEntityFurnace_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - $this.$furnaceItemStacks.data[$par1] = $par2ItemStack; - if ($par2ItemStack !== null && $par2ItemStack.$stackSize > 64) - $par2ItemStack.$stackSize = 64; -}; -$java.nms_TileEntityFurnace_getInvName = function($this) { - return !($this.$field_94130_e !== null && $this.$field_94130_e.$characters.data.length > 0 ? 1 : 0) ? $rt_s(2724) : $this.$field_94130_e; -}; -$java.nms_TileEntityFurnace_isInvNameLocalized = function($this) { - return $this.$field_94130_e !== null && $this.$field_94130_e.$characters.data.length > 0 ? 1 : 0; -}; -$java.nms_TileEntityFurnace_func_94129_a = function($this, $par1Str) { - $this.$field_94130_e = $par1Str; -}; -$java.nms_TileEntityFurnace_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, $var3, $var4, $var2, $var5; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var3 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - $var4 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$xCoord0 = $var3; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var3 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - $var4 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$yCoord0 = $var3; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var3 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - $var4 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$zCoord0 = $var3; - if (!(ju_HashMap_getEntry($par1NBTTagCompound.$tagMap, $rt_s(2653)) === null ? 0 : 1)) - $var2 = nms_NBTTagList__init_1($rt_s(2653)); - else { - $var4 = ju_HashMap_getEntry($par1NBTTagCompound.$tagMap, $rt_s(2653)); - $var2 = $var4 === null ? null : $var4.$value0; - } - $this.$furnaceItemStacks = $rt_createArray(nms_ItemStack, $java.nms_TileEntityFurnace_getSizeInventory($this)); - $var3 = 0; - while ($var3 < nms_NBTTagList_tagCount($var2)) { - $var4 = nms_NBTTagList_tagAt($var2, $var3); - $var5 = nms_NBTTagCompound_getByte($var4, $rt_s(2655)); - if ($var5 >= 0 && $var5 < $this.$furnaceItemStacks.data.length) - $this.$furnaceItemStacks.data[$var5] = nms_ItemStack_loadItemStackFromNBT($var4); - $var3 = $var3 + 1 | 0; - } - $this.$furnaceBurnTime = nms_NBTTagCompound_getShort($par1NBTTagCompound, $rt_s(2725)); - $this.$furnaceCookTime = nms_NBTTagCompound_getShort($par1NBTTagCompound, $rt_s(2726)); - $this.$currentItemBurnTime = $java.nms_TileEntityFurnace_getItemBurnTime($this.$furnaceItemStacks.data[1]); - if (nms_NBTTagCompound_hasKey($par1NBTTagCompound, $rt_s(2654))) - $this.$field_94130_e = nms_NBTTagCompound_getString($par1NBTTagCompound, $rt_s(2654)); -}; -$java.nms_TileEntityFurnace_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, $var2, $var3, $var4; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - var$2 = $this.$furnaceBurnTime << 16 >> 16; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagShort; - var$4.$name0 = $rt_s(2725); - var$4.$data1 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2725), var$4); - var$2 = $this.$furnaceCookTime << 16 >> 16; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagShort; - var$4.$name0 = $rt_s(2726); - var$4.$data1 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2726), var$4); - $var2 = new nms_NBTTagList; - $var2.$name0 = $rt_s(44); - var$4 = new ju_ArrayList; - var$4.$array1 = $rt_createArray(jl_Object, 10); - $var2.$tagList = var$4; - $var3 = 0; - while ($var3 < $this.$furnaceItemStacks.data.length) { - if ($this.$furnaceItemStacks.data[$var3] !== null) { - $var4 = new nms_NBTTagCompound; - $var4.$name0 = $rt_s(44); - $var4.$tagMap = ju_HashMap__init_1(16, 0.75); - var$2 = $var3 << 24 >> 24; - var$3 = $var4.$tagMap; - var$4 = new nms_NBTTagByte; - var$4.$name0 = $rt_s(2655); - var$4.$data0 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2655), var$4); - nms_ItemStack_writeToNBT($this.$furnaceItemStacks.data[$var3], $var4); - $var2.$tagType = 10; - ju_ArrayList_add($var2.$tagList, $var4); - } - $var3 = $var3 + 1 | 0; - } - var$4 = $par1NBTTagCompound.$tagMap; - $var2.$name0 = $rt_s(2653); - ju_HashMap_putImpl(var$4, $rt_s(2653), $var2); - if ($this.$field_94130_e !== null && $this.$field_94130_e.$characters.data.length > 0 ? 1 : 0) { - var$4 = $this.$field_94130_e; - var$3 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagString; - $par1NBTTagCompound.$name0 = $rt_s(2654); - $par1NBTTagCompound.$data4 = var$4; - if (var$4 === null) { - $var2 = new jl_IllegalArgumentException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $var2.$message = $rt_s(264); - $rt_throw($var2); - } - ju_HashMap_putImpl(var$3, $rt_s(2654), $par1NBTTagCompound); - } -}; -$java.nms_TileEntityFurnace_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_TileEntityFurnace_getCookProgressScaled = function($this, $par1) { - return $rt_imul($this.$furnaceCookTime, $par1) / 200 | 0; -}; -$java.nms_TileEntityFurnace_getBurnTimeRemainingScaled = function($this, $par1) { - if (!$this.$currentItemBurnTime) - $this.$currentItemBurnTime = 200; - return $rt_imul($this.$furnaceBurnTime, $par1) / $this.$currentItemBurnTime | 0; -}; -$java.nms_TileEntityFurnace_isBurning = function($this) { - return $this.$furnaceBurnTime <= 0 ? 0 : 1; -}; -$java.nms_TileEntityFurnace_updateEntity = function($this) { - var $var1, $var2, var$3, var$4, $var3, var$6, 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();var$6 = $thread.pop();$var3 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = $this.$furnaceBurnTime <= 0 ? 0 : 1; - $var2 = 0; - if ($this.$furnaceBurnTime > 0) - $this.$furnaceBurnTime = $this.$furnaceBurnTime - 1 | 0; - if (!$this.$worldObj5.$isRemote) { - if (!$this.$furnaceBurnTime && $java.nms_TileEntityFurnace_canSmelt($this)) { - var$3 = $java.nms_TileEntityFurnace_getItemBurnTime($this.$furnaceItemStacks.data[1]); - $this.$furnaceBurnTime = var$3; - $this.$currentItemBurnTime = var$3; - if ($this.$furnaceBurnTime > 0) { - $var2 = 1; - if ($this.$furnaceItemStacks.data[1] !== null) { - var$4 = $this.$furnaceItemStacks.data[1]; - var$4.$stackSize = var$4.$stackSize - 1 | 0; - if (!$this.$furnaceItemStacks.data[1].$stackSize) { - var$4 = $this.$furnaceItemStacks.data[1]; - nms_Item_$callClinit(); - $var3 = nms_Item_itemsList.data[var$4.$itemID0].$containerItem; - var$6 = $this.$furnaceItemStacks; - if ($var3 === null) - var$4 = null; - else { - var$4 = new nms_ItemStack; - var$7 = $var3.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$7; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - } - var$6.data[1] = var$4; - } - } - } - } - var$3 = $this.$furnaceBurnTime <= 0 ? 0 : 1; - if (var$3 && $java.nms_TileEntityFurnace_canSmelt($this)) { - $this.$furnaceCookTime = $this.$furnaceCookTime + 1 | 0; - if ($this.$furnaceCookTime == 200) { - $this.$furnaceCookTime = 0; - $java.nms_TileEntityFurnace_smeltItem($this); - $var2 = 1; - } - } else - $this.$furnaceCookTime = 0; - if ($var1 != ($this.$furnaceBurnTime <= 0 ? 0 : 1)) { - $var2 = 1; - var$3 = $this.$furnaceBurnTime <= 0 ? 0 : 1; - var$4 = $this.$worldObj5; - $var1 = $this.$xCoord0; - var$8 = $this.$yCoord0; - var$9 = $this.$zCoord0; - $ptr = 2; - continue main; - } - } - if (!$var2) - return; - $ptr = 1; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_BlockFurnace_updateFurnaceBlockState(var$3, var$4, $var1, var$8, var$9); - if ($rt_suspending()) { - break main; - } - if (!$var2) - return; - $ptr = 1; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, var$3, var$4, $var3, var$6, var$7, var$8, var$9, $ptr); -}; -$java.nms_TileEntityFurnace_canSmelt = function($this) { - var var$1, $var1, var$3; - if ($this.$furnaceItemStacks.data[0] === null) - return 0; - a: { - var$1 = $java.nms_FurnaceRecipes_smeltingBase; - $var1 = $this.$furnaceItemStacks.data[0]; - nms_Item_$callClinit(); - $var1 = $java.nms_FurnaceRecipes_getSmeltingResult(var$1, nms_Item_itemsList.data[$var1.$itemID0].$itemID); - if ($var1 === null) - var$3 = 0; - else if ($this.$furnaceItemStacks.data[2] === null) - var$3 = 1; - else { - var$1 = $this.$furnaceItemStacks.data[2]; - if (!(var$1.$itemID0 == $var1.$itemID0 && var$1.$itemDamage == $var1.$itemDamage ? 1 : 0)) - var$3 = 0; - else { - if ($this.$furnaceItemStacks.data[2].$stackSize < 64) { - var$3 = $this.$furnaceItemStacks.data[2].$stackSize; - var$1 = $this.$furnaceItemStacks.data[2]; - if (var$3 < nms_Item_itemsList.data[var$1.$itemID0].$maxStackSize) { - var$3 = 1; - break a; - } - } - if ($this.$furnaceItemStacks.data[2].$stackSize >= nms_Item_itemsList.data[$var1.$itemID0].$maxStackSize) - var$3 = 0; - else - var$3 = 1; - } - } - } - return var$3; -}; -$java.nms_TileEntityFurnace_smeltItem = function($this) { - var var$1, $var1, var$3, var$4, var$5, var$6; - if ($java.nms_TileEntityFurnace_canSmelt($this)) { - var$1 = $java.nms_FurnaceRecipes_smeltingBase; - $var1 = $this.$furnaceItemStacks.data[0]; - nms_Item_$callClinit(); - $var1 = $java.nms_FurnaceRecipes_getSmeltingResult(var$1, nms_Item_itemsList.data[$var1.$itemID0].$itemID); - if ($this.$furnaceItemStacks.data[2] === null) { - var$3 = $this.$furnaceItemStacks; - var$1 = new nms_ItemStack; - var$4 = $var1.$itemID0; - var$5 = $var1.$stackSize; - var$6 = $var1.$itemDamage; - var$1.$stackSize = 0; - var$1.$itemFrame = null; - var$1.$itemID0 = var$4; - var$1.$stackSize = var$5; - var$1.$itemDamage = var$6; - if (var$1.$itemDamage < 0) - var$1.$itemDamage = 0; - if ($var1.$stackTagCompound !== null) - var$1.$stackTagCompound = nms_NBTTagCompound_copy($var1.$stackTagCompound); - var$3.data[2] = var$1; - } else if ($this.$furnaceItemStacks.data[2].$itemID0 == $var1.$itemID0) { - $var1 = $this.$furnaceItemStacks.data[2]; - $var1.$stackSize = $var1.$stackSize + 1 | 0; - } - $var1 = $this.$furnaceItemStacks.data[0]; - $var1.$stackSize = $var1.$stackSize - 1 | 0; - if ($this.$furnaceItemStacks.data[0].$stackSize <= 0) - $this.$furnaceItemStacks.data[0] = null; - } -}; -$java.nms_TileEntityFurnace_getItemBurnTime = function($par0ItemStack) { - var $var1, $var2, $var3; - if ($par0ItemStack === null) - return 0; - nms_Item_$callClinit(); - $var1 = nms_Item_itemsList.data[$par0ItemStack.$itemID0].$itemID; - $var2 = nms_Item_itemsList.data[$par0ItemStack.$itemID0]; - if ($var1 < 256) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var1] !== null) { - $var3 = nms_Block_blocksList.data[$var1]; - if ($var3 === nms_Block_woodSingleSlab) - return 150; - $par0ItemStack = $var3.$blockMaterial; - nms_Material_$callClinit(); - if ($par0ItemStack === nms_Material_wood) - return 300; - } - } - a: { - if ($var2 instanceof nms_ItemTool && jl_String_equals($var2.$toolMaterial.$name2, $rt_s(1797))) { - $var1 = 200; - break a; - } - if ($var2 instanceof nms_ItemSword && jl_String_equals($var2.$toolMaterial0.$name2, $rt_s(1797))) { - $var1 = 200; - break a; - } - if ($var2 instanceof nms_ItemHoe && jl_String_equals($var2.$theToolMaterial.$name2, $rt_s(1797))) { - $var1 = 200; - break a; - } - if ($var1 == nms_Item_stick.$itemID) { - $var1 = 100; - break a; - } - if ($var1 == nms_Item_coal.$itemID) { - $var1 = 1600; - break a; - } - if ($var1 == nms_Item_bucketLava.$itemID) { - $var1 = 20000; - break a; - } - nms_Block_$callClinit(); - if ($var1 == nms_Block_sapling.$blockID) { - $var1 = 100; - break a; - } - if ($var1 != nms_Item_blazeRod.$itemID) { - $var1 = 0; - break a; - } - $var1 = 2400; - } - return $var1; -}; -$java.nms_TileEntityFurnace_isUseableByPlayer = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - if (nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0) !== $this) - var$2 = 0; - else { - var$3 = $this.$xCoord0 + 0.5; - var$4 = $this.$yCoord0 + 0.5; - var$5 = $this.$zCoord0 + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -$java.nms_TileEntityFurnace_isStackValidForSlot = function($this, $par1, $par2ItemStack) { - return $par1 == 2 ? 0 : $par1 != 1 ? 1 : $java.nms_TileEntityFurnace_getItemBurnTime($par2ItemStack) <= 0 ? 0 : 1; -}; -$java.nms_TileEntityFurnace_getAccessibleSlotsFromSide = function($this, $par1) { - return !$par1 ? $java.nms_TileEntityFurnace_field_102011_e : $par1 != 1 ? $java.nms_TileEntityFurnace_field_102009_f : $java.nms_TileEntityFurnace_field_102010_d; -}; -$java.nms_TileEntityFurnace_canInsertItem = function($this, $par1, $par2ItemStack, $par3) { - return $par1 == 2 ? 0 : $par1 != 1 ? 1 : $java.nms_TileEntityFurnace_getItemBurnTime($par2ItemStack) <= 0 ? 0 : 1; -}; -$java.nms_TileEntityFurnace_canExtractItem = function($this, $par1, $par2ItemStack, $par3) { - a: { - if (!$par3 && $par1 == 1) { - $par1 = $par2ItemStack.$itemID0; - nms_Item_$callClinit(); - if ($par1 != nms_Item_bucketEmpty.$itemID) { - $par1 = 0; - break a; - } - } - $par1 = 1; - } - return $par1; -}; -function nms_TileEntityFurnace__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(1); - var$1.data[0] = 0; - $java.nms_TileEntityFurnace_field_102010_d = var$1; - var$1 = $rt_createIntArray(2); - var$2 = var$1.data; - var$2[0] = 2; - var$2[1] = 1; - $java.nms_TileEntityFurnace_field_102011_e = var$1; - var$1 = $rt_createIntArray(1); - var$1.data[0] = 1; - $java.nms_TileEntityFurnace_field_102009_f = var$1; -} -function nms_TileEntityRecordPlayer() { - nms_TileEntity.call(this); - this.$record = null; -} -$java.nms_TileEntityRecordPlayer__init_ = function() { - var var_0 = new nms_TileEntityRecordPlayer(); - nms_TileEntityRecordPlayer__init_(var_0); - return var_0; -}; -function nms_TileEntityRecordPlayer__init_($this) { - $this.$blockMetadata = (-1); -} -$java.nms_TileEntityRecordPlayer_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();$par1NBTTagCompound = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$zCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$4 = jl_String_hashCode($rt_s(2727)); - if (ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2727), var$4 & (var$2.$elementData.data.length - 1 | 0), var$4) === null ? 0 : 1) { - $this.$record = nms_ItemStack_loadItemStackFromNBT(nms_NBTTagCompound_getCompoundTag($par1NBTTagCompound, $rt_s(2727))); - $ptr = 1; - continue main; - } - if ((!(ju_HashMap_getEntry($par1NBTTagCompound.$tagMap, $rt_s(2728)) === null ? 0 : 1) ? 0 : ju_HashMap_get($par1NBTTagCompound.$tagMap, $rt_s(2728)).$data2) <= 0) - return; - $this.$record = nms_ItemStack__init_4(nms_NBTTagCompound_getInteger($par1NBTTagCompound, $rt_s(2728)), 1, 0); - $ptr = 2; - continue main; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1NBTTagCompound, var$2, var$3, var$4, var$5, $ptr); -}; -$java.nms_TileEntityRecordPlayer_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - if ($this.$record !== null) { - var$2 = $this.$record; - var$3 = new nms_NBTTagCompound; - var$3.$name0 = $rt_s(44); - var$3.$tagMap = ju_HashMap__init_1(16, 0.75); - var$3 = nms_ItemStack_writeToNBT(var$2, var$3); - var$4 = $par1NBTTagCompound.$tagMap; - var$3.$name0 = $rt_s(2727); - ju_HashMap_putImpl(var$4, $rt_s(2727), var$3); - var$5 = $this.$record.$itemID0; - var$6 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagInt; - $par1NBTTagCompound.$name0 = $rt_s(2728); - $par1NBTTagCompound.$data2 = var$5; - ju_HashMap_putImpl(var$6, $rt_s(2728), $par1NBTTagCompound); - } -}; -$java.nms_TileEntityRecordPlayer_func_96097_a = function($this) { - return $this.$record; -}; -$java.nms_TileEntityRecordPlayer_func_96098_a = function($this, $par1ItemStack) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par1ItemStack = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$record = $par1ItemStack; - $ptr = 1; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1ItemStack, $ptr); -}; -function nms_TileEntityDispenser() { - var a = this; nms_TileEntity.call(a); - a.$dispenserContents = null; - a.$dispenserRandom = null; - a.$customName = null; -} -$java.nms_TileEntityDispenser__init_ = function() { - var var_0 = new nms_TileEntityDispenser(); - nms_TileEntityDispenser__init_(var_0); - return var_0; -}; -function nms_TileEntityDispenser__init_($this) { - $this.$blockMetadata = (-1); - $this.$dispenserContents = $rt_createArray(nms_ItemStack, 9); - $this.$dispenserRandom = new ju_Random; -} -$java.nms_TileEntityDispenser_getSizeInventory = function($this) { - return 9; -}; -$java.nms_TileEntityDispenser_getStackInSlot = function($this, $par1) { - return $this.$dispenserContents.data[$par1]; -}; -$java.nms_TileEntityDispenser_decrStackSize = function($this, $par1, $par2) { - var $var3, $var3_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var3_0 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$dispenserContents.data[$par1] === null) - return null; - if ($this.$dispenserContents.data[$par1].$stackSize <= $par2) { - $var3 = $this.$dispenserContents.data[$par1]; - $this.$dispenserContents.data[$par1] = null; - $ptr = 1; - continue main; - } - $var3_0 = nms_ItemStack_splitStack($this.$dispenserContents.data[$par1], $par2); - if (!$this.$dispenserContents.data[$par1].$stackSize) - $this.$dispenserContents.data[$par1] = null; - $ptr = 2; - continue main; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return $var3; - case 2: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return $var3_0; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, $var3_0, $ptr); -}; -$java.nms_TileEntityDispenser_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2ItemStack = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$dispenserContents.data[$par1] = $par2ItemStack; - if ($par2ItemStack !== null && $par2ItemStack.$stackSize > 64) - $par2ItemStack.$stackSize = 64; - $ptr = 1; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2ItemStack, $ptr); -}; -$java.nms_TileEntityDispenser_getInvName = function($this) { - return !($this.$customName === null ? 0 : 1) ? $rt_s(2729) : $this.$customName; -}; -$java.nms_TileEntityDispenser_setCustomName = function($this, $par1Str) { - $this.$customName = $par1Str; -}; -$java.nms_TileEntityDispenser_isInvNameLocalized = function($this) { - return $this.$customName === null ? 0 : 1; -}; -$java.nms_TileEntityDispenser_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, $var3, $var4, $var5, $var2; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var3 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - $var4 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$xCoord0 = $var3; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var3 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - $var4 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$yCoord0 = $var3; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var3 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - $var4 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$zCoord0 = $var3; - var$2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(2653)); - if (ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2653), $var5 & (var$2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1) - $var2 = ju_HashMap_get($par1NBTTagCompound.$tagMap, $rt_s(2653)); - else { - $var2 = new nms_NBTTagList; - nms_NBTBase__init_0($var2, $rt_s(2653)); - $var2.$tagList = ju_ArrayList__init_0(); - } - $this.$dispenserContents = $rt_createArray(nms_ItemStack, $java.nms_TileEntityDispenser_getSizeInventory($this)); - $var3 = 0; - while ($var3 < nms_NBTTagList_tagCount($var2)) { - $var4 = nms_NBTTagList_tagAt($var2, $var3); - $var5 = nms_NBTTagCompound_getByte($var4, $rt_s(2655)) & 255; - if ($var5 >= 0 && $var5 < $this.$dispenserContents.data.length) - $this.$dispenserContents.data[$var5] = nms_ItemStack_loadItemStackFromNBT($var4); - $var3 = $var3 + 1 | 0; - } - if (nms_NBTTagCompound_hasKey($par1NBTTagCompound, $rt_s(2654))) - $this.$customName = nms_NBTTagCompound_getString($par1NBTTagCompound, $rt_s(2654)); -}; -$java.nms_TileEntityDispenser_writeToNBT = function($this, $par1NBTTagCompound) { - var $var2, var$3, $var3, $var4, var$6, var$7; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - $var2 = new nms_NBTTagList; - $var2.$name0 = $rt_s(44); - var$3 = new ju_ArrayList; - var$3.$array1 = $rt_createArray(jl_Object, 10); - $var2.$tagList = var$3; - $var3 = 0; - while ($var3 < $this.$dispenserContents.data.length) { - if ($this.$dispenserContents.data[$var3] !== null) { - $var4 = new nms_NBTTagCompound; - $var4.$name0 = $rt_s(44); - $var4.$tagMap = ju_HashMap__init_1(16, 0.75); - var$6 = $var3 << 24 >> 24; - var$3 = $var4.$tagMap; - var$7 = new nms_NBTTagByte; - var$7.$name0 = $rt_s(2655); - var$7.$data0 = var$6; - ju_HashMap_putImpl(var$3, $rt_s(2655), var$7); - nms_ItemStack_writeToNBT($this.$dispenserContents.data[$var3], $var4); - $var2.$tagType = 10; - ju_ArrayList_add($var2.$tagList, $var4); - } - $var3 = $var3 + 1 | 0; - } - var$3 = $par1NBTTagCompound.$tagMap; - $var2.$name0 = $rt_s(2653); - ju_HashMap_putImpl(var$3, $rt_s(2653), $var2); - if ($this.$customName === null ? 0 : 1) { - var$3 = $this.$customName; - $var4 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagString; - $par1NBTTagCompound.$name0 = $rt_s(2654); - $par1NBTTagCompound.$data4 = var$3; - if (var$3 === null) { - $var2 = new jl_IllegalArgumentException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $var2.$message = $rt_s(264); - $rt_throw($var2); - } - ju_HashMap_putImpl($var4, $rt_s(2654), $par1NBTTagCompound); - } -}; -$java.nms_TileEntityDispenser_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_TileEntityDispenser_isUseableByPlayer = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - if (nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0) !== $this) - var$2 = 0; - else { - var$3 = $this.$xCoord0 + 0.5; - var$4 = $this.$yCoord0 + 0.5; - var$5 = $this.$zCoord0 + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -$java.nms_TileEntityDispenser_isStackValidForSlot = function($this, $par1, $par2ItemStack) { - return 1; -}; -function nms_TileEntityDropper() { - nms_TileEntityDispenser.call(this); -} -$java.nms_TileEntityDropper__init_ = function() { - var var_0 = new nms_TileEntityDropper(); - nms_TileEntityDropper__init_(var_0); - return var_0; -}; -function nms_TileEntityDropper__init_($this) { - $this.$blockMetadata = (-1); - $this.$dispenserContents = $rt_createArray(nms_ItemStack, 9); - $this.$dispenserRandom = new ju_Random; -} -$java.nms_TileEntityDropper_getInvName = function($this) { - return !($this.$customName === null ? 0 : 1) ? $rt_s(2730) : $this.$customName; -}; -function nms_TileEntityMobSpawner() { - nms_TileEntity.call(this); -} -$java.nms_TileEntityMobSpawner__init_ = function() { - var var_0 = new nms_TileEntityMobSpawner(); - nms_TileEntityMobSpawner__init_(var_0); - return var_0; -}; -function nms_TileEntityMobSpawner__init_($this) { - $this.$blockMetadata = (-1); -} -$java.nms_TileEntityMobSpawner_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1521)); - var$6 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5); - var$4 = (var$6 === null ? null : var$6.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1522)); - var$6 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5); - var$4 = (var$6 === null ? null : var$6.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) - var$4 = 0; - else { - $par1NBTTagCompound = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1523)); - $par1NBTTagCompound = ju_HashMap_findNonNullKeyEntry($par1NBTTagCompound, $rt_s(1523), var$5 & ($par1NBTTagCompound.$elementData.data.length - 1 | 0), var$5); - var$4 = ($par1NBTTagCompound === null ? null : $par1NBTTagCompound.$value0).$data2; - } - $this.$zCoord0 = var$4; -}; -$java.nms_TileEntityMobSpawner_updateEntity = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $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.$worldObj5.$isRemote && Math.random() < 0.20000000298023224) { - var$1 = $this.$worldObj5; - var$2 = $rt_s(858); - var$3 = $this.$xCoord0 + Math.random(); - var$4 = $this.$yCoord0 + Math.random(); - var$5 = $this.$zCoord0 + Math.random(); - var$6 = 0.0; - var$7 = 0.0; - var$8 = 0.0; - var$9 = 0; - if (var$9 < var$1.$worldAccesses.$size0) { - var$10 = var$1.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - $ptr = 1; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - var$1 = $this.$worldObj5; - var$2 = $rt_s(858); - var$6 = $this.$xCoord0 + Math.random(); - var$7 = $this.$yCoord0 + Math.random(); - var$8 = $this.$zCoord0 + Math.random(); - var$3 = 0.0; - var$5 = 0.0; - var$4 = 0.0; - var$9 = 0; - if (var$9 < var$1.$worldAccesses.$size0) { - var$10 = var$1.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - $ptr = 2; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$10, var$2, var$3, var$4, var$5, var$6, var$7, var$8); - if ($rt_suspending()) { - break main; - } - var$9 = var$9 + 1 | 0; - if (var$9 < var$1.$worldAccesses.$size0) { - var$10 = var$1.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - var$1 = $this.$worldObj5; - var$2 = $rt_s(858); - var$6 = $this.$xCoord0 + Math.random(); - var$7 = $this.$yCoord0 + Math.random(); - var$8 = $this.$zCoord0 + Math.random(); - var$3 = 0.0; - var$5 = 0.0; - var$4 = 0.0; - var$9 = 0; - if (var$9 >= var$1.$worldAccesses.$size0) - return; - var$10 = var$1.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - $ptr = 2; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - case 2: - nms_RenderGlobal_doSpawnParticle(var$10, var$2, var$6, var$7, var$8, var$3, var$5, var$4); - if ($rt_suspending()) { - break main; - } - var$9 = var$9 + 1 | 0; - if (var$9 >= var$1.$worldAccesses.$size0) - return; - var$10 = var$1.$worldAccesses; - if (var$9 >= 0 && var$9 < var$10.$size0) { - var$10 = var$10.$array1.data[var$9]; - continue main; - } - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, $ptr); -}; -function nms_TileEntityNote() { - var a = this; nms_TileEntity.call(a); - a.$note = 0; - a.$previousRedstoneState = 0; -} -$java.nms_TileEntityNote__init_ = function() { - var var_0 = new nms_TileEntityNote(); - nms_TileEntityNote__init_(var_0); - return var_0; -}; -function nms_TileEntityNote__init_($this) { - $this.$blockMetadata = (-1); - $this.$note = 0; - $this.$previousRedstoneState = 0; -} -$java.nms_TileEntityNote_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - var$2 = $this.$note; - var$3 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagByte; - $par1NBTTagCompound.$name0 = $rt_s(856); - $par1NBTTagCompound.$data0 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(856), $par1NBTTagCompound); -}; -$java.nms_TileEntityNote_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1521)); - var$6 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5); - var$4 = (var$6 === null ? null : var$6.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1522)); - var$6 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5); - var$4 = (var$6 === null ? null : var$6.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1523)); - var$6 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5); - var$4 = (var$6 === null ? null : var$6.$value0).$data2; - } - $this.$zCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(856)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(856), var$5 & (var$2.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) - var$4 = 0; - else { - $par1NBTTagCompound = ju_HashMap_getEntry($par1NBTTagCompound.$tagMap, $rt_s(856)); - var$4 = ($par1NBTTagCompound === null ? null : $par1NBTTagCompound.$value0).$data0; - } - $this.$note = var$4; - if ($this.$note < 0) - $this.$note = 0; - if ($this.$note > 24) - $this.$note = 24; -}; -$java.nms_TileEntityNote_changePitch = function($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: - $this.$note = (($this.$note + 1 | 0) % 25 | 0) << 24 >> 24; - $ptr = 1; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -}; -function nms_TileEntityNote_triggerNote($this, $par1World, $par2, $par3, $par4) { - var var$5, var$6, $var5, $var6, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$5 = nms_World_getBlockId($par1World, $par2, $par3 + 1 | 0, $par4); - if (!var$5) { - nms_Material_$callClinit(); - var$6 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$6 = nms_Block_blocksList.data[var$5].$blockMaterial; - } - nms_Material_$callClinit(); - if (var$6 === nms_Material_air) { - var$5 = nms_World_getBlockId($par1World, $par2, $par3 - 1 | 0, $par4); - if (!var$5) - $var5 = nms_Material_air; - else { - nms_Block_$callClinit(); - $var5 = nms_Block_blocksList.data[var$5].$blockMaterial; - } - $var6 = 0; - if ($var5 === nms_Material_rock) - $var6 = 1; - if ($var5 === nms_Material_sand) - $var6 = 2; - if ($var5 === nms_Material_glass) - $var6 = 3; - if ($var5 === nms_Material_wood) - $var6 = 4; - nms_Block_$callClinit(); - var$5 = nms_Block_music.$blockID; - var$9 = $this.$note; - if (var$5 > 0) { - var$6 = nms_Block_blocksList.data[var$5]; - $ptr = 1; - continue main; - } - } - return; - case 1: - var$6.$onBlockEventReceived($par1World, $par2, $par3, $par4, $var6, var$9); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par3, $par4, var$5, var$6, $var5, $var6, var$9, $ptr); -} -function nms_TileEntityBrewingStand() { - var a = this; nms_TileEntity.call(a); - a.$brewingItemStacks = null; - a.$brewTime = 0; - a.$filledSlots = 0; - a.$ingredientID = 0; - a.$field_94132_e = null; -} -$java.nms_TileEntityBrewingStand_field_102017_a = null; -$java.nms_TileEntityBrewingStand_field_102016_b = null; -$java.nms_TileEntityBrewingStand__init_ = function() { - var var_0 = new nms_TileEntityBrewingStand(); - nms_TileEntityBrewingStand__init_(var_0); - return var_0; -}; -function nms_TileEntityBrewingStand__init_($this) { - $this.$blockMetadata = (-1); - $this.$brewingItemStacks = $rt_createArray(nms_ItemStack, 4); -} -$java.nms_TileEntityBrewingStand_getInvName = function($this) { - return !($this.$field_94132_e !== null && $this.$field_94132_e.$characters.data.length > 0 ? 1 : 0) ? $rt_s(2731) : $this.$field_94132_e; -}; -$java.nms_TileEntityBrewingStand_isInvNameLocalized = function($this) { - return $this.$field_94132_e !== null && $this.$field_94132_e.$characters.data.length > 0 ? 1 : 0; -}; -$java.nms_TileEntityBrewingStand_func_94131_a = function($this, $par1Str) { - $this.$field_94132_e = $par1Str; -}; -$java.nms_TileEntityBrewingStand_getSizeInventory = function($this) { - return $this.$brewingItemStacks.data.length; -}; -$java.nms_TileEntityBrewingStand_updateEntity = function($this) { - var $var1, 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();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$brewTime > 0) { - $this.$brewTime = $this.$brewTime - 1 | 0; - if (!$this.$brewTime) { - $java.nms_TileEntityBrewingStand_brewPotions($this); - $ptr = 1; - continue main; - } - if (!$java.nms_TileEntityBrewingStand_canBrew($this)) { - $this.$brewTime = 0; - $ptr = 3; - continue main; - } - if ($this.$ingredientID != $this.$brewingItemStacks.data[3].$itemID0) { - $this.$brewTime = 0; - $ptr = 4; - continue main; - } - } else if ($java.nms_TileEntityBrewingStand_canBrew($this)) { - $this.$brewTime = 400; - $this.$ingredientID = $this.$brewingItemStacks.data[3].$itemID0; - } - $var1 = $java.nms_TileEntityBrewingStand_getFilledSlots($this); - if ($var1 == $this.$filledSlots) - return; - $this.$filledSlots = $var1; - var$2 = $this.$worldObj5; - var$3 = $this.$xCoord0; - var$4 = $this.$yCoord0; - var$5 = $this.$zCoord0; - var$6 = 2; - $ptr = 2; - continue main; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - $var1 = $java.nms_TileEntityBrewingStand_getFilledSlots($this); - if ($var1 == $this.$filledSlots) - return; - $this.$filledSlots = $var1; - var$2 = $this.$worldObj5; - var$3 = $this.$xCoord0; - var$4 = $this.$yCoord0; - var$5 = $this.$zCoord0; - var$6 = 2; - $ptr = 2; - case 2: - nms_World_setBlockMetadataWithNotify(var$2, var$3, var$4, var$5, $var1, var$6); - if ($rt_suspending()) { - break main; - } - return; - case 3: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - $var1 = $java.nms_TileEntityBrewingStand_getFilledSlots($this); - if ($var1 == $this.$filledSlots) - return; - $this.$filledSlots = $var1; - var$2 = $this.$worldObj5; - var$3 = $this.$xCoord0; - var$4 = $this.$yCoord0; - var$5 = $this.$zCoord0; - var$6 = 2; - $ptr = 2; - continue main; - case 4: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - $var1 = $java.nms_TileEntityBrewingStand_getFilledSlots($this); - if ($var1 == $this.$filledSlots) - return; - $this.$filledSlots = $var1; - var$2 = $this.$worldObj5; - var$3 = $this.$xCoord0; - var$4 = $this.$yCoord0; - var$5 = $this.$zCoord0; - var$6 = 2; - $ptr = 2; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, var$4, var$5, var$6, $ptr); -}; -$java.nms_TileEntityBrewingStand_getBrewTime = function($this) { - return $this.$brewTime; -}; -$java.nms_TileEntityBrewingStand_canBrew = function($this) { - var $var1, $var2, $var3, $var4, $var5, var$6, var$7, $var7, var$9, var$10, $var6, var$12; - if ($this.$brewingItemStacks.data[3] !== null && $this.$brewingItemStacks.data[3].$stackSize > 0) { - $var1 = $this.$brewingItemStacks.data[3]; - nms_Item_$callClinit(); - if (!(nms_Item_itemsList.data[$var1.$itemID0].$potionEffect === null ? 0 : 1)) - return 0; - $var2 = 0; - $var3 = 0; - a: { - while ($var3 < 3) { - b: { - if ($this.$brewingItemStacks.data[$var3] !== null && $this.$brewingItemStacks.data[$var3].$itemID0 == nms_Item_potion.$itemID) { - $var4 = $this.$brewingItemStacks.data[$var3].$itemDamage; - $var5 = $java.nms_TileEntityBrewingStand_getPotionResult($this, $var4, $var1); - var$6 = !($var4 & 16384) ? 0 : 1; - if (!var$6 && (!($var5 & 16384) ? 0 : 1)) { - $var2 = 1; - break a; - } - var$7 = nms_Item_potion; - $var7 = var$7.$effectCache; - var$9 = jl_Integer_valueOf($var4); - if (var$9 !== null) { - var$10 = jl_Integer_hashCode(var$9); - $var7 = ju_HashMap_findNonNullKeyEntry($var7, var$9, var$10 & ($var7.$elementData.data.length - 1 | 0), var$10); - } else { - $var7 = $var7.$elementData.data[0]; - while ($var7 !== null && $var7.$key !== null) { - $var7 = $var7.$next1; - } - } - $var6 = $var7 === null ? null : $var7.$value0; - if ($var6 === null) { - $var6 = nms_PotionHelper_getPotionEffects($var4, 0); - ju_HashMap_putImpl(var$7.$effectCache, jl_Integer_valueOf($var4), $var6); - } - var$7 = nms_Item_potion; - $var7 = var$7.$effectCache; - var$9 = jl_Integer_valueOf($var5); - if (var$9 !== null) { - var$12 = jl_Integer_hashCode(var$9); - $var7 = ju_HashMap_findNonNullKeyEntry($var7, var$9, var$12 & ($var7.$elementData.data.length - 1 | 0), var$12); - } else { - $var7 = $var7.$elementData.data[0]; - while ($var7 !== null && $var7.$key !== null) { - $var7 = $var7.$next1; - } - } - $var7 = $var7 === null ? null : $var7.$value0; - if ($var7 === null) { - $var7 = nms_PotionHelper_getPotionEffects($var5, 0); - ju_HashMap_putImpl(var$7.$effectCache, jl_Integer_valueOf($var5), $var7); - } - if (!($var4 > 0 && $var6 === $var7)) { - if ($var6 !== null) { - if (ju_AbstractList_equals($var6, $var7)) - break b; - if ($var7 === null) - break b; - } - if ($var4 != $var5) { - $var2 = 1; - break a; - } - } - } - } - $var3 = $var3 + 1 | 0; - } - } - return $var2; - } - return 0; -}; -$java.nms_TileEntityBrewingStand_brewPotions = function($this) { - var $var1, $var2, var$3, $var3, $var4, $var6, $var5, var$8, var$9, var$10, var$11; - if ($java.nms_TileEntityBrewingStand_canBrew($this)) { - $var1 = $this.$brewingItemStacks.data[3]; - $var2 = 0; - while ($var2 < 3) { - a: { - if ($this.$brewingItemStacks.data[$var2] !== null) { - var$3 = $this.$brewingItemStacks.data[$var2].$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_potion.$itemID) { - $var3 = $this.$brewingItemStacks.data[$var2].$itemDamage; - $var4 = $java.nms_TileEntityBrewingStand_getPotionResult($this, $var3, $var1); - $var6 = nms_Item_potion; - $var5 = $var6.$effectCache; - var$8 = jl_Integer_valueOf($var3); - if (var$8 !== null) { - var$9 = jl_Integer_hashCode(var$8); - $var5 = ju_HashMap_findNonNullKeyEntry($var5, var$8, var$9 & ($var5.$elementData.data.length - 1 | 0), var$9); - } else { - $var5 = $var5.$elementData.data[0]; - while ($var5 !== null && $var5.$key !== null) { - $var5 = $var5.$next1; - } - } - $var5 = $var5 === null ? null : $var5.$value0; - if ($var5 === null) { - $var5 = nms_PotionHelper_getPotionEffects($var3, 0); - ju_HashMap_putImpl($var6.$effectCache, jl_Integer_valueOf($var3), $var5); - } - var$8 = nms_Item_potion; - $var6 = var$8.$effectCache; - var$10 = jl_Integer_valueOf($var4); - if (var$10 !== null) { - var$9 = jl_Integer_hashCode(var$10); - $var6 = ju_HashMap_findNonNullKeyEntry($var6, var$10, var$9 & ($var6.$elementData.data.length - 1 | 0), var$9); - } else { - $var6 = $var6.$elementData.data[0]; - while ($var6 !== null && $var6.$key !== null) { - $var6 = $var6.$next1; - } - } - $var6 = $var6 === null ? null : $var6.$value0; - if ($var6 === null) { - $var6 = nms_PotionHelper_getPotionEffects($var4, 0); - ju_HashMap_putImpl(var$8.$effectCache, jl_Integer_valueOf($var4), $var6); - } - b: { - if (!($var3 > 0 && $var5 === $var6)) { - if ($var5 !== null) { - if (ju_AbstractList_equals($var5, $var6)) - break b; - if ($var6 === null) - break b; - } - if ($var3 == $var4) - break a; - $var5 = $this.$brewingItemStacks.data[$var2]; - $var5.$itemDamage = $var4; - if ($var5.$itemDamage < 0) - $var5.$itemDamage = 0; - break a; - } - } - if (!(!($var3 & 16384) ? 0 : 1) && (!($var4 & 16384) ? 0 : 1)) { - $var5 = $this.$brewingItemStacks.data[$var2]; - $var5.$itemDamage = $var4; - if ($var5.$itemDamage < 0) - $var5.$itemDamage = 0; - } - } - } - } - $var2 = $var2 + 1 | 0; - } - nms_Item_$callClinit(); - if (!(nms_Item_itemsList.data[$var1.$itemID0].$containerItem === null ? 0 : 1)) { - $var1 = $this.$brewingItemStacks.data[3]; - $var1.$stackSize = $var1.$stackSize - 1 | 0; - if ($this.$brewingItemStacks.data[3].$stackSize <= 0) - $this.$brewingItemStacks.data[3] = null; - } else { - var$11 = $this.$brewingItemStacks; - $var5 = new nms_ItemStack; - var$9 = nms_Item_itemsList.data[$var1.$itemID0].$containerItem.$itemID; - $var5.$stackSize = 0; - $var5.$itemFrame = null; - $var5.$itemID0 = var$9; - $var5.$stackSize = 1; - $var5.$itemDamage = 0; - if ($var5.$itemDamage < 0) - $var5.$itemDamage = 0; - var$11.data[3] = $var5; - } - } -}; -$java.nms_TileEntityBrewingStand_getPotionResult = function($this, $par1, $par2ItemStack) { - if ($par2ItemStack !== null) { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par2ItemStack.$itemID0].$potionEffect === null ? 0 : 1) - $par1 = nms_PotionHelper_applyIngredient($par1, nms_Item_itemsList.data[$par2ItemStack.$itemID0].$potionEffect); - } - return $par1; -}; -$java.nms_TileEntityBrewingStand_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, $var3, $var4, $var5, $var2; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var3 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - $var4 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$xCoord0 = $var3; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var3 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - $var4 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$yCoord0 = $var3; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - $var3 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - $var4 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$zCoord0 = $var3; - var$2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(2653)); - $var2 = !(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2653), $var5 & (var$2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1) ? nms_NBTTagList__init_1($rt_s(2653)) : ju_HashMap_get($par1NBTTagCompound.$tagMap, $rt_s(2653)); - $this.$brewingItemStacks = $rt_createArray(nms_ItemStack, $this.$brewingItemStacks.data.length); - $var3 = 0; - while ($var3 < nms_NBTTagList_tagCount($var2)) { - $var4 = nms_NBTTagList_tagAt($var2, $var3); - $var5 = nms_NBTTagCompound_getByte($var4, $rt_s(2655)); - if ($var5 >= 0 && $var5 < $this.$brewingItemStacks.data.length) - $this.$brewingItemStacks.data[$var5] = nms_ItemStack_loadItemStackFromNBT($var4); - $var3 = $var3 + 1 | 0; - } - $this.$brewTime = nms_NBTTagCompound_getShort($par1NBTTagCompound, $rt_s(2732)); - if (nms_NBTTagCompound_hasKey($par1NBTTagCompound, $rt_s(2654))) - $this.$field_94132_e = nms_NBTTagCompound_getString($par1NBTTagCompound, $rt_s(2654)); -}; -$java.nms_TileEntityBrewingStand_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, $var2, $var3, $var4; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - var$2 = $this.$brewTime << 16 >> 16; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagShort; - var$4.$name0 = $rt_s(2732); - var$4.$data1 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2732), var$4); - $var2 = new nms_NBTTagList; - $var2.$name0 = $rt_s(44); - var$4 = new ju_ArrayList; - var$4.$array1 = $rt_createArray(jl_Object, 10); - $var2.$tagList = var$4; - $var3 = 0; - while ($var3 < $this.$brewingItemStacks.data.length) { - if ($this.$brewingItemStacks.data[$var3] !== null) { - $var4 = new nms_NBTTagCompound; - $var4.$name0 = $rt_s(44); - $var4.$tagMap = ju_HashMap__init_1(16, 0.75); - var$2 = $var3 << 24 >> 24; - var$3 = $var4.$tagMap; - var$4 = new nms_NBTTagByte; - var$4.$name0 = $rt_s(2655); - var$4.$data0 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2655), var$4); - nms_ItemStack_writeToNBT($this.$brewingItemStacks.data[$var3], $var4); - $var2.$tagType = 10; - ju_ArrayList_add($var2.$tagList, $var4); - } - $var3 = $var3 + 1 | 0; - } - var$4 = $par1NBTTagCompound.$tagMap; - $var2.$name0 = $rt_s(2653); - ju_HashMap_putImpl(var$4, $rt_s(2653), $var2); - if ($this.$field_94132_e !== null && $this.$field_94132_e.$characters.data.length > 0 ? 1 : 0) { - var$4 = $this.$field_94132_e; - var$3 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagString; - $par1NBTTagCompound.$name0 = $rt_s(2654); - $par1NBTTagCompound.$data4 = var$4; - if (var$4 === null) { - $var2 = new jl_IllegalArgumentException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $var2.$message = $rt_s(264); - $rt_throw($var2); - } - ju_HashMap_putImpl(var$3, $rt_s(2654), $par1NBTTagCompound); - } -}; -$java.nms_TileEntityBrewingStand_getStackInSlot = function($this, $par1) { - return $par1 >= 0 && $par1 < $this.$brewingItemStacks.data.length ? $this.$brewingItemStacks.data[$par1] : null; -}; -$java.nms_TileEntityBrewingStand_decrStackSize = function($this, $par1, $par2) { - var $var3; - if ($par1 >= 0 && $par1 < $this.$brewingItemStacks.data.length) { - $var3 = $this.$brewingItemStacks.data[$par1]; - $this.$brewingItemStacks.data[$par1] = null; - return $var3; - } - return null; -}; -$java.nms_TileEntityBrewingStand_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - if ($par1 >= 0 && $par1 < $this.$brewingItemStacks.data.length) - $this.$brewingItemStacks.data[$par1] = $par2ItemStack; -}; -$java.nms_TileEntityBrewingStand_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_TileEntityBrewingStand_isUseableByPlayer = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - if (nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0) !== $this) - var$2 = 0; - else { - var$3 = $this.$xCoord0 + 0.5; - var$4 = $this.$yCoord0 + 0.5; - var$5 = $this.$zCoord0 + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -$java.nms_TileEntityBrewingStand_isStackValidForSlot = function($this, $par1, $par2ItemStack) { - if ($par1 == 3) { - nms_Item_$callClinit(); - $par1 = nms_Item_itemsList.data[$par2ItemStack.$itemID0].$potionEffect === null ? 0 : 1; - } else { - $par1 = $par2ItemStack.$itemID0; - nms_Item_$callClinit(); - $par1 = $par1 != nms_Item_potion.$itemID && $par2ItemStack.$itemID0 != nms_Item_glassBottle.$itemID ? 0 : 1; - } - return $par1; -}; -$java.nms_TileEntityBrewingStand_setBrewTime = function($this, $par1) { - $this.$brewTime = $par1; -}; -$java.nms_TileEntityBrewingStand_getFilledSlots = function($this) { - var $var1, $var2; - $var1 = 0; - $var2 = 0; - while ($var2 < 3) { - if ($this.$brewingItemStacks.data[$var2] !== null) - $var1 = $var1 | 1 << $var2; - $var2 = $var2 + 1 | 0; - } - return $var1; -}; -$java.nms_TileEntityBrewingStand_getAccessibleSlotsFromSide = function($this, $par1) { - return $par1 != 1 ? $java.nms_TileEntityBrewingStand_field_102016_b : $java.nms_TileEntityBrewingStand_field_102017_a; -}; -$java.nms_TileEntityBrewingStand_canInsertItem = function($this, $par1, $par2ItemStack, $par3) { - return $java.nms_TileEntityBrewingStand_isStackValidForSlot($this, $par1, $par2ItemStack); -}; -$java.nms_TileEntityBrewingStand_canExtractItem = function($this, $par1, $par2ItemStack, $par3) { - return 1; -}; -function nms_TileEntityBrewingStand__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(1); - var$1.data[0] = 3; - $java.nms_TileEntityBrewingStand_field_102017_a = var$1; - var$1 = $rt_createIntArray(3); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 1; - var$2[2] = 2; - $java.nms_TileEntityBrewingStand_field_102016_b = var$1; -} -function nms_TileEntityCommandBlock() { - var a = this; nms_TileEntity.call(a); - a.$succesCount = 0; - a.$command = null; - a.$commandSenderName = null; -} -$java.nms_TileEntityCommandBlock__init_ = function() { - var var_0 = new nms_TileEntityCommandBlock(); - nms_TileEntityCommandBlock__init_(var_0); - return var_0; -}; -function nms_TileEntityCommandBlock__init_($this) { - $this.$blockMetadata = (-1); - $this.$succesCount = 0; - $this.$command = $rt_s(44); - $this.$commandSenderName = $rt_s(1); -} -$java.nms_TileEntityCommandBlock_getCommand = function($this) { - return $this.$command; -}; -$java.nms_TileEntityCommandBlock_setCommandSenderName = function($this, $par1Str) { - $this.$commandSenderName = $par1Str; -}; -$java.nms_TileEntityCommandBlock_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - var$2 = $this.$command; - var$3 = $par1NBTTagCompound.$tagMap; - var$4 = new nms_NBTTagString; - var$4.$name0 = $rt_s(2733); - 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(2733), var$4); - var$6 = $this.$succesCount; - var$4 = $par1NBTTagCompound.$tagMap; - var$2 = new nms_NBTTagInt; - var$2.$name0 = $rt_s(2734); - var$2.$data2 = var$6; - ju_HashMap_putImpl(var$4, $rt_s(2734), var$2); - var$2 = $this.$commandSenderName; - var$4 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagString; - $par1NBTTagCompound.$name0 = $rt_s(2654); - $par1NBTTagCompound.$data4 = var$2; - if (var$2 !== null) { - ju_HashMap_putImpl(var$4, $rt_s(2654), $par1NBTTagCompound); - return; - } - var$5 = new jl_IllegalArgumentException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - var$5.$message = $rt_s(264); - $rt_throw(var$5); -}; -$java.nms_TileEntityCommandBlock_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$zCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(2733)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2733), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$5 = $rt_s(44); - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$6 = jl_String_hashCode($rt_s(2733)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2733), var$6 & (var$2.$elementData.data.length - 1 | 0), var$6); - var$5 = (var$5 === null ? null : var$5.$value0).$data4; - } - $this.$command = var$5; - $this.$succesCount = nms_NBTTagCompound_getInteger($par1NBTTagCompound, $rt_s(2734)); - if (nms_NBTTagCompound_hasKey($par1NBTTagCompound, $rt_s(2654))) - $this.$commandSenderName = nms_NBTTagCompound_getString($par1NBTTagCompound, $rt_s(2654)); -}; -$java.nms_TileEntityCommandBlock_func_96103_d = function($this) { - return $this.$succesCount; -}; -function nms_TileEntityDaylightDetector() { - nms_TileEntity.call(this); -} -$java.nms_TileEntityDaylightDetector__init_ = function() { - var var_0 = new nms_TileEntityDaylightDetector(); - nms_TileEntityDaylightDetector__init_(var_0); - return var_0; -}; -function nms_TileEntityDaylightDetector__init_($this) { - $this.$blockMetadata = (-1); -} -$java.nms_TileEntityDaylightDetector_updateEntity = function($this) { - var var$1, var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$worldObj5 !== null && !$this.$worldObj5.$isRemote && Long_eq(Long_rem($this.$worldObj5.$worldInfo.$totalTime, Long_fromInt(20)), Long_ZERO)) { - $this.$blockType0 = nms_TileEntity_getBlockType($this); - if ($this.$blockType0 !== null && $this.$blockType0 instanceof nms_BlockDaylightDetector) { - var$1 = $this.$blockType0; - var$2 = $this.$worldObj5; - var$3 = $this.$xCoord0; - var$4 = $this.$yCoord0; - var$5 = $this.$zCoord0; - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_BlockDaylightDetector_updateLightLevel(var$1, var$2, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $ptr); -}; -function nms_TileEntityHopper() { - var a = this; nms_TileEntity.call(a); - a.$hopperItemStacks = null; - a.$inventoryName = null; - a.$transferCooldown = 0; -} -$java.nms_TileEntityHopper__init_ = function() { - var var_0 = new nms_TileEntityHopper(); - nms_TileEntityHopper__init_(var_0); - return var_0; -}; -function nms_TileEntityHopper__init_($this) { - $this.$blockMetadata = (-1); - $this.$hopperItemStacks = $rt_createArray(nms_ItemStack, 5); - $this.$transferCooldown = (-1); -} -$java.nms_TileEntityHopper_readFromNBT = function($this, $par1NBTTagCompound) { - var $var2, $var5, $var3, $var4; - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1521), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1)) - $var3 = 0; - else { - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1521)); - $var4 = ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1521), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$xCoord0 = $var3; - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1522), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1)) - $var3 = 0; - else { - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1522)); - $var4 = ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1522), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$yCoord0 = $var3; - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1523), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1)) - $var3 = 0; - else { - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(1523)); - $var4 = ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1523), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5); - $var3 = ($var4 === null ? null : $var4.$value0).$data2; - } - $this.$zCoord0 = $var3; - $var2 = $par1NBTTagCompound.$tagMap; - $var5 = jl_String_hashCode($rt_s(2653)); - $var2 = !(ju_HashMap_findNonNullKeyEntry($var2, $rt_s(2653), $var5 & ($var2.$elementData.data.length - 1 | 0), $var5) === null ? 0 : 1) ? nms_NBTTagList__init_1($rt_s(2653)) : ju_HashMap_get($par1NBTTagCompound.$tagMap, $rt_s(2653)); - $this.$hopperItemStacks = $rt_createArray(nms_ItemStack, $this.$hopperItemStacks.data.length); - if (nms_NBTTagCompound_hasKey($par1NBTTagCompound, $rt_s(2654))) - $this.$inventoryName = nms_NBTTagCompound_getString($par1NBTTagCompound, $rt_s(2654)); - $this.$transferCooldown = nms_NBTTagCompound_getInteger($par1NBTTagCompound, $rt_s(2735)); - $var3 = 0; - while ($var3 < nms_NBTTagList_tagCount($var2)) { - $var4 = nms_NBTTagList_tagAt($var2, $var3); - $var5 = nms_NBTTagCompound_getByte($var4, $rt_s(2655)); - if ($var5 >= 0 && $var5 < $this.$hopperItemStacks.data.length) - $this.$hopperItemStacks.data[$var5] = nms_ItemStack_loadItemStackFromNBT($var4); - $var3 = $var3 + 1 | 0; - } -}; -$java.nms_TileEntityHopper_writeToNBT = function($this, $par1NBTTagCompound) { - var $var2, var$3, $var3, $var4, var$6, var$7; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - $var2 = new nms_NBTTagList; - $var2.$name0 = $rt_s(44); - var$3 = new ju_ArrayList; - var$3.$array1 = $rt_createArray(jl_Object, 10); - $var2.$tagList = var$3; - $var3 = 0; - while ($var3 < $this.$hopperItemStacks.data.length) { - if ($this.$hopperItemStacks.data[$var3] !== null) { - $var4 = new nms_NBTTagCompound; - $var4.$name0 = $rt_s(44); - $var4.$tagMap = ju_HashMap__init_1(16, 0.75); - var$6 = $var3 << 24 >> 24; - var$3 = $var4.$tagMap; - var$7 = new nms_NBTTagByte; - var$7.$name0 = $rt_s(2655); - var$7.$data0 = var$6; - ju_HashMap_putImpl(var$3, $rt_s(2655), var$7); - nms_ItemStack_writeToNBT($this.$hopperItemStacks.data[$var3], $var4); - $var2.$tagType = 10; - ju_ArrayList_add($var2.$tagList, $var4); - } - $var3 = $var3 + 1 | 0; - } - var$3 = $par1NBTTagCompound.$tagMap; - $var2.$name0 = $rt_s(2653); - ju_HashMap_putImpl(var$3, $rt_s(2653), $var2); - var$6 = $this.$transferCooldown; - $var4 = $par1NBTTagCompound.$tagMap; - var$3 = new nms_NBTTagInt; - var$3.$name0 = $rt_s(2735); - var$3.$data2 = var$6; - ju_HashMap_putImpl($var4, $rt_s(2735), var$3); - if ($this.$inventoryName !== null && $this.$inventoryName.$characters.data.length > 0 ? 1 : 0) { - var$3 = $this.$inventoryName; - $var4 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagString; - $par1NBTTagCompound.$name0 = $rt_s(2654); - $par1NBTTagCompound.$data4 = var$3; - if (var$3 === null) { - $var2 = new jl_IllegalArgumentException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $var2.$message = $rt_s(264); - $rt_throw($var2); - } - ju_HashMap_putImpl($var4, $rt_s(2654), $par1NBTTagCompound); - } -}; -$java.nms_TileEntityHopper_onInventoryChanged = function($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: - $ptr = 1; - case 1: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -}; -$java.nms_TileEntityHopper_getSizeInventory = function($this) { - return $this.$hopperItemStacks.data.length; -}; -$java.nms_TileEntityHopper_getStackInSlot = function($this, $par1) { - return $this.$hopperItemStacks.data[$par1]; -}; -$java.nms_TileEntityHopper_decrStackSize = function($this, $par1, $par2) { - var $var3; - if ($this.$hopperItemStacks.data[$par1] === null) - return null; - if ($this.$hopperItemStacks.data[$par1].$stackSize <= $par2) { - $var3 = $this.$hopperItemStacks.data[$par1]; - $this.$hopperItemStacks.data[$par1] = null; - return $var3; - } - $var3 = nms_ItemStack_splitStack($this.$hopperItemStacks.data[$par1], $par2); - if (!$this.$hopperItemStacks.data[$par1].$stackSize) - $this.$hopperItemStacks.data[$par1] = null; - return $var3; -}; -$java.nms_TileEntityHopper_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - $this.$hopperItemStacks.data[$par1] = $par2ItemStack; - if ($par2ItemStack !== null && $par2ItemStack.$stackSize > 64) - $par2ItemStack.$stackSize = 64; -}; -$java.nms_TileEntityHopper_getInvName = function($this) { - return !($this.$inventoryName !== null && $this.$inventoryName.$characters.data.length > 0 ? 1 : 0) ? $rt_s(2736) : $this.$inventoryName; -}; -$java.nms_TileEntityHopper_isInvNameLocalized = function($this) { - return $this.$inventoryName !== null && $this.$inventoryName.$characters.data.length > 0 ? 1 : 0; -}; -$java.nms_TileEntityHopper_setInventoryName = function($this, $par1Str) { - $this.$inventoryName = $par1Str; -}; -$java.nms_TileEntityHopper_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_TileEntityHopper_isUseableByPlayer = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - if (nms_World_getBlockTileEntity($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0) !== $this) - var$2 = 0; - else { - var$3 = $this.$xCoord0 + 0.5; - var$4 = $this.$yCoord0 + 0.5; - var$5 = $this.$zCoord0 + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -$java.nms_TileEntityHopper_openChest = function($this) { - return; -}; -$java.nms_TileEntityHopper_closeChest = function($this) { - return; -}; -$java.nms_TileEntityHopper_isStackValidForSlot = function($this, $par1, $par2ItemStack) { - return 1; -}; -$java.nms_TileEntityHopper_updateEntity = function($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 ($this.$worldObj5 !== null && !$this.$worldObj5.$isRemote) { - $this.$transferCooldown = $this.$transferCooldown - 1 | 0; - if (!($this.$transferCooldown <= 0 ? 0 : 1)) { - $this.$transferCooldown = 0; - $ptr = 1; - continue main; - } - } - return; - case 1: - $java.nms_TileEntityHopper_func_98045_j($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -}; -$java.nms_TileEntityHopper_func_98045_j = function($this) { - var $var1, var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$worldObj5 !== null && !$this.$worldObj5.$isRemote) { - if (!($this.$transferCooldown <= 0 ? 0 : 1)) { - if ($this.$blockMetadata == (-1)) - $this.$blockMetadata = nms_World_getBlockMetadata($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0); - if (($this.$blockMetadata & 8) == 8 ? 0 : 1) { - $ptr = 1; - continue main; - } - } - return 0; - } - return 0; - case 1: - $tmp = $java.nms_TileEntityHopper_insertItemToInventory($this); - if ($rt_suspending()) { - break main; - } - $var1 = $tmp; - $ptr = 2; - case 2: - $tmp = $java.nms_TileEntityHopper_suckItemsIntoHopper($this); - if ($rt_suspending()) { - break main; - } - var$2 = $tmp; - if (!($var1 | var$2)) - return 0; - $this.$transferCooldown = 8; - $ptr = 3; - case 3: - nms_TileEntity_onInventoryChanged($this); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, $ptr); -}; -$java.nms_TileEntityHopper_insertItemToInventory = function($this) { - var $var1, $var2, var$3, var$4, var$5, $var3, var$7, var$8, var$9, var$10, $var4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var4 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var3 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = $java.nms_TileEntityHopper_getOutputInventory($this); - if ($var1 === null) - return 0; - $var2 = 0; - var$3 = 64; - var$4 = 64; - while ($var2 < $this.$hopperItemStacks.data.length) { - if ($this.$hopperItemStacks.data[$var2] !== null) { - var$5 = $this.$hopperItemStacks.data[$var2]; - $var3 = new nms_ItemStack; - var$7 = var$5.$itemID0; - var$8 = var$5.$stackSize; - var$9 = var$5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$7; - $var3.$stackSize = var$8; - $var3.$itemDamage = var$9; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if (var$5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy(var$5.$stackTagCompound); - var$7 = 1; - $ptr = 1; - continue main; - } - $var2 = $var2 + 1 | 0; - } - return 0; - case 1: - $tmp = $java.nms_TileEntityHopper_decrStackSize($this, $var2, var$7); - if ($rt_suspending()) { - break main; - } - var$5 = $tmp; - var$10 = nms_Facing_oppositeSide; - if ($this.$blockMetadata == (-1)) - $this.$blockMetadata = nms_World_getBlockMetadata($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0); - var$7 = var$10.data[$this.$blockMetadata & 7]; - $ptr = 2; - case 2: - $tmp = $java.nms_TileEntityHopper_insertStack($var1, var$5, var$7); - if ($rt_suspending()) { - break main; - } - $var4 = $tmp; - if ($var4 !== null && $var4.$stackSize) { - $this.$hopperItemStacks.data[$var2] = $var3; - if ($var3.$stackSize > var$3) - $var3.$stackSize = var$4; - while (true) { - $var2 = $var2 + 1 | 0; - if ($var2 >= $this.$hopperItemStacks.data.length) - break; - if ($this.$hopperItemStacks.data[$var2] === null) - continue; - else { - var$5 = $this.$hopperItemStacks.data[$var2]; - $var3 = new nms_ItemStack; - var$7 = var$5.$itemID0; - var$8 = var$5.$stackSize; - var$9 = var$5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$7; - $var3.$stackSize = var$8; - $var3.$itemDamage = var$9; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if (var$5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy(var$5.$stackTagCompound); - var$7 = 1; - $ptr = 1; - continue main; - } - } - return 0; - } - $ptr = 3; - case 3: - $var1.$onInventoryChanged(); - if ($rt_suspending()) { - break main; - } - return 1; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, var$3, var$4, var$5, $var3, var$7, var$8, var$9, var$10, $var4, $ptr); -}; -$java.nms_TileEntityHopper_suckItemsIntoHopper = function($par0Hopper) { - var $var1, $var6, $var2, $var3, $var4, $var8, $var5, var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$var5 = $thread.pop();$var8 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var6 = $thread.pop();$var1 = $thread.pop();$par0Hopper = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var1 = $java.nms_TileEntityHopper_getInventoryAtLocation($par0Hopper.$getWorldObj(), $par0Hopper.$getXPos(), $par0Hopper.$getYPos() + 1.0, $par0Hopper.$getZPos()); - if ($var1 === null) { - $var6 = $java.nms_TileEntityHopper_func_96119_a($par0Hopper.$getWorldObj(), $par0Hopper.$getXPos(), $par0Hopper.$getYPos() + 1.0, $par0Hopper.$getZPos()); - if ($var6 === null) - break a; - $ptr = 1; - continue main; - } - b: { - $var2 = 0; - if (!$rt_isInstance($var1, $java.nms_ISidedInventory)) { - $var3 = $var1.$getSizeInventory(); - $var4 = 0; - if ($var4 >= $var3) - break b; - $ptr = 2; - continue main; - } - $var8 = $var1.$getAccessibleSlotsFromSide($var2); - $var5 = 0; - var$9 = $var8.data; - if ($var5 < var$9.length) { - $var3 = var$9[$var5]; - $ptr = 3; - continue main; - } - } - } - return 0; - case 1: - $tmp = $java.nms_TileEntityHopper_func_96114_a($par0Hopper, $var6); - if ($rt_suspending()) { - break main; - } - $var2 = $tmp; - return $var2; - case 2: - $tmp = $java.nms_TileEntityHopper_func_102012_a($par0Hopper, $var1, $var4, $var2); - if ($rt_suspending()) { - break main; - } - $var5 = $tmp; - if ($var5) - return 1; - $var4 = $var4 + 1 | 0; - if ($var4 >= $var3) - return 0; - continue main; - case 3: - $tmp = $java.nms_TileEntityHopper_func_102012_a($par0Hopper, $var1, $var3, $var2); - if ($rt_suspending()) { - break main; - } - $var3 = $tmp; - if ($var3) - return 1; - $var5 = $var5 + 1 | 0; - var$9 = $var8.data; - if ($var5 >= var$9.length) - return 0; - $var3 = var$9[$var5]; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0Hopper, $var1, $var6, $var2, $var3, $var4, $var8, $var5, var$9, $ptr); -}; -$java.nms_TileEntityHopper_func_102012_a = function($par0Hopper, $par1IInventory, $par2, $par3) { - var $var4, $var5, var$7, var$8, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1IInventory = $thread.pop();$par0Hopper = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var4 = $par1IInventory.$getStackInSlot($par2); - if ($var4 !== null && ($rt_isInstance($par1IInventory, $java.nms_ISidedInventory) && !$par1IInventory.$canExtractItem($par2, $var4, $par3) ? 0 : 1)) { - $var5 = new nms_ItemStack; - var$7 = $var4.$itemID0; - var$8 = $var4.$stackSize; - $par3 = $var4.$itemDamage; - $var5.$stackSize = 0; - $var5.$itemFrame = null; - $var5.$itemID0 = var$7; - $var5.$stackSize = var$8; - $var5.$itemDamage = $par3; - if ($var5.$itemDamage < 0) - $var5.$itemDamage = 0; - if ($var4.$stackTagCompound !== null) - $var5.$stackTagCompound = nms_NBTTagCompound_copy($var4.$stackTagCompound); - $par3 = 1; - $ptr = 1; - continue main; - } - return 0; - case 1: - $tmp = $par1IInventory.$decrStackSize($par2, $par3); - if ($rt_suspending()) { - break main; - } - $var6 = $tmp; - $par3 = (-1); - $ptr = 2; - case 2: - $tmp = $java.nms_TileEntityHopper_insertStack($par0Hopper, $var6, $par3); - if ($rt_suspending()) { - break main; - } - $var6 = $tmp; - if ($var6 !== null && $var6.$stackSize) { - $ptr = 4; - continue main; - } - $ptr = 3; - case 3: - $par1IInventory.$onInventoryChanged(); - if ($rt_suspending()) { - break main; - } - return 1; - case 4: - $par1IInventory.$setInventorySlotContents($par2, $var5); - if ($rt_suspending()) { - break main; - } - return 0; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0Hopper, $par1IInventory, $par2, $par3, $var4, $var5, var$7, var$8, $var6, $ptr); -}; -$java.nms_TileEntityHopper_func_96114_a = function($par0IInventory, $par1EntityItem) { - var $var2, var$4, $var3, var$6, var$7, var$8, $var4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var4 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var3 = $thread.pop();var$4 = $thread.pop();$var2 = $thread.pop();$par1EntityItem = $thread.pop();$par0IInventory = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var2 = 0; - if ($par1EntityItem === null) - return 0; - var$4 = nms_EntityItem_getEntityItem($par1EntityItem); - $var3 = new nms_ItemStack; - var$6 = var$4.$itemID0; - var$7 = var$4.$stackSize; - var$8 = var$4.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$6; - $var3.$stackSize = var$7; - $var3.$itemDamage = var$8; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if (var$4.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy(var$4.$stackTagCompound); - var$6 = (-1); - $ptr = 1; - case 1: - $tmp = $java.nms_TileEntityHopper_insertStack($par0IInventory, $var3, var$6); - if ($rt_suspending()) { - break main; - } - $var4 = $tmp; - if ($var4 !== null && $var4.$stackSize) { - nms_DataWatcher_updateObject($par1EntityItem.$dataWatcher, 10, $var4); - nms_DataWatcher_setObjectWatched($par1EntityItem.$dataWatcher, 10); - } else { - $var2 = 1; - $par1EntityItem.$isDead = 1; - } - return $var2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0IInventory, $par1EntityItem, $var2, var$4, $var3, var$6, var$7, var$8, $var4, $ptr); -}; -$java.nms_TileEntityHopper_insertStack = function($par1IInventory, $par2ItemStack, $par3) { - var $var7, $var5, var$6, $var3, $var4, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var7 = $thread.pop();$par3 = $thread.pop();$par2ItemStack = $thread.pop();$par1IInventory = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($rt_isInstance($par1IInventory, $java.nms_ISidedInventory) && $par3 > (-1)) { - $var7 = $par1IInventory.$getAccessibleSlotsFromSide($par3); - $var5 = 0; - var$6 = $var7.data; - if ($var5 < var$6.length && $par2ItemStack !== null && $par2ItemStack.$stackSize > 0) { - $var3 = var$6[$var5]; - $ptr = 2; - continue main; - } - } else { - $var3 = $par1IInventory.$getSizeInventory(); - $var4 = 0; - if ($var4 < $var3 && $par2ItemStack !== null && $par2ItemStack.$stackSize > 0) { - $ptr = 1; - continue main; - } - } - if ($par2ItemStack !== null && !$par2ItemStack.$stackSize) - $par2ItemStack = null; - return $par2ItemStack; - case 1: - $tmp = $java.nms_TileEntityHopper_func_102014_c($par1IInventory, $par2ItemStack, $var4, $par3); - if ($rt_suspending()) { - break main; - } - $par2ItemStack = $tmp; - $var4 = $var4 + 1 | 0; - if ($var4 < $var3 && $par2ItemStack !== null && $par2ItemStack.$stackSize > 0) { - continue main; - } - if ($par2ItemStack !== null && !$par2ItemStack.$stackSize) - $par2ItemStack = null; - return $par2ItemStack; - case 2: - $tmp = $java.nms_TileEntityHopper_func_102014_c($par1IInventory, $par2ItemStack, $var3, $par3); - if ($rt_suspending()) { - break main; - } - $par2ItemStack = $tmp; - $var5 = $var5 + 1 | 0; - var$6 = $var7.data; - if ($var5 < var$6.length && $par2ItemStack !== null && $par2ItemStack.$stackSize > 0) { - $var3 = var$6[$var5]; - continue main; - } - if ($par2ItemStack !== null && !$par2ItemStack.$stackSize) - $par2ItemStack = null; - return $par2ItemStack; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par1IInventory, $par2ItemStack, $par3, $var7, $var5, var$6, $var3, $var4, $ptr); -}; -$java.nms_TileEntityHopper_func_102015_a = function($par0IInventory, $par1ItemStack, $par2, $par3) { - return !$par0IInventory.$isStackValidForSlot($par2, $par1ItemStack) ? 0 : $rt_isInstance($par0IInventory, $java.nms_ISidedInventory) && !$par0IInventory.$canInsertItem($par2, $par1ItemStack, $par3) ? 0 : 1; -}; -$java.nms_TileEntityHopper_func_102014_c = function($par0IInventory, $par1ItemStack, $par2, $par3) { - var $var4, $var5, $var7, $var7_0, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var7_0 = $thread.pop();$var7 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1ItemStack = $thread.pop();$par0IInventory = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var4 = $par0IInventory.$getStackInSlot($par2); - if ($java.nms_TileEntityHopper_func_102015_a($par0IInventory, $par1ItemStack, $par2, $par3)) { - $var5 = 0; - if ($var4 === null) { - $ptr = 1; - continue main; - } - if ($java.nms_TileEntityHopper_areItemStacksEqualItem($var4, $par1ItemStack)) { - nms_Item_$callClinit(); - $var7 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize - $var4.$stackSize | 0; - $var7_0 = $par1ItemStack.$stackSize; - if ($var7_0 < $var7) - $var7 = $var7_0; - $par1ItemStack.$stackSize = $par1ItemStack.$stackSize - $var7 | 0; - $var4.$stackSize = $var4.$stackSize + $var7 | 0; - $var5 = $var7 <= 0 ? 0 : 1; - } - if ($var5) { - if ($par0IInventory instanceof nms_TileEntityHopper) - $par0IInventory.$transferCooldown = 8; - $ptr = 2; - continue main; - } - } - return $par1ItemStack; - case 1: - $par0IInventory.$setInventorySlotContents($par2, $par1ItemStack); - if ($rt_suspending()) { - break main; - } - $par1ItemStack = null; - if (!1) - return $par1ItemStack; - if ($par0IInventory instanceof nms_TileEntityHopper) - $par0IInventory.$transferCooldown = 8; - $ptr = 2; - case 2: - $par0IInventory.$onInventoryChanged(); - if ($rt_suspending()) { - break main; - } - return $par1ItemStack; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($par0IInventory, $par1ItemStack, $par2, $par3, $var4, $var5, $var7, $var7_0, $ptr); -}; -$java.nms_TileEntityHopper_getOutputInventory = function($this) { - var $var1; - if ($this.$blockMetadata == (-1)) - $this.$blockMetadata = nms_World_getBlockMetadata($this.$worldObj5, $this.$xCoord0, $this.$yCoord0, $this.$zCoord0); - $var1 = $this.$blockMetadata & 7; - return $java.nms_TileEntityHopper_getInventoryAtLocation($this.$worldObj5, $this.$xCoord0 + nms_Facing_offsetsXForSide.data[$var1] | 0, $this.$yCoord0 + nms_Facing_offsetsYForSide.data[$var1] | 0, $this.$zCoord0 + nms_Facing_offsetsZForSide.data[$var1] | 0); -}; -$java.nms_TileEntityHopper_func_96119_a = function($par0World, $par1, $par3, $par5) { - var var$5, $var7, var$7; - var$5 = nms_AxisAlignedBB_theAABBLocalPool; - if (!var$5.$initialized) { - $var7 = new nms_AABBPool; - var$7 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$7); - var$7.$array1 = $rt_createArray(jl_Object, 10); - $var7.$listAABB = var$7; - $var7.$nextPoolIndex = 0; - $var7.$maxPoolIndex = 0; - $var7.$numCleans = 0; - $var7.$maxNumCleans = 300; - $var7.$numEntriesToRemove = 2000; - var$5.$value7 = $var7; - var$5.$initialized = 1; - } - $var7 = nms_World_selectEntitiesWithinAABB($par0World, $rt_cls(nms_EntityItem), nms_AABBPool_getAABB(var$5.$value7, $par1, $par3, $par5, $par1 + 1.0, $par3 + 1.0, $par5 + 1.0), $java.nms_IEntitySelector_selectAnything); - if ($var7.$size0 <= 0) - $par0World = null; - else { - if (0 >= $var7.$size0) { - $par0World = new jl_IndexOutOfBoundsException; - $par0World.$suppressionEnabled = 1; - $par0World.$writableStackTrace = 1; - $rt_throw($par0World); - } - $par0World = $var7.$array1.data[0]; - } - return $par0World; -}; -$java.nms_TileEntityHopper_getInventoryAtLocation = function($par0World, $par1, $par3, $par5) { - var $var7, $var8, $var9, $var10, $var11, $var12, $var13, $var14, var$13; - $var7 = null; - $var8 = $par1 | 0; - if ($par1 < $var8) - $var8 = $var8 - 1 | 0; - $var9 = $par3 | 0; - if ($par3 < $var9) - $var9 = $var9 - 1 | 0; - $var10 = $par5 | 0; - if ($par5 < $var10) - $var10 = $var10 - 1 | 0; - $var11 = nms_World_getBlockTileEntity($par0World, $var8, $var9, $var10); - if ($var11 !== null && $rt_isInstance($var11, nms_IInventory)) { - $var7 = $var11; - if ($var7 instanceof nms_TileEntityChest) { - $var12 = nms_World_getBlockId($par0World, $var8, $var9, $var10); - nms_Block_$callClinit(); - $var13 = nms_Block_blocksList.data[$var12]; - if ($var13 instanceof nms_BlockChest) - $var7 = nms_BlockChest_getInventory($var13, $par0World, $var8, $var9, $var10); - } - } - a: { - if ($var7 === null) { - $var11 = null; - $var13 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var13.$initialized) { - $var14 = new nms_AABBPool; - var$13 = new ju_ArrayList; - ju_AbstractCollection__init_0(var$13); - var$13.$array1 = $rt_createArray(jl_Object, 10); - $var14.$listAABB = var$13; - $var14.$nextPoolIndex = 0; - $var14.$maxPoolIndex = 0; - $var14.$numCleans = 0; - $var14.$maxNumCleans = 300; - $var14.$numEntriesToRemove = 2000; - $var13.$value7 = $var14; - $var13.$initialized = 1; - } - $var14 = nms_World_getEntitiesWithinAABBExcludingEntity($par0World, $var11, nms_AABBPool_getAABB($var13.$value7, $par1, $par3, $par5, $par1 + 1.0, $par3 + 1.0, $par5 + 1.0), nms_IEntitySelector_selectInventories); - if ($var14 !== null && $var14.$size0 > 0) { - $var12 = $var14.$size0; - $var9 = Math.random() * $var12 | 0; - if ($var9 < 0) - break a; - if ($var9 >= $var14.$size0) - break a; - $var7 = $var14.$array1.data[$var9]; - } - } - return $var7; - } - $par0World = new jl_IndexOutOfBoundsException; - $par0World.$suppressionEnabled = 1; - $par0World.$writableStackTrace = 1; - $rt_throw($par0World); -}; -$java.nms_TileEntityHopper_areItemStacksEqualItem = function($par1ItemStack, $par2ItemStack) { - var var$3; - if ($par1ItemStack.$itemID0 != $par2ItemStack.$itemID0) - var$3 = 0; - else if ($par1ItemStack.$itemDamage != $par2ItemStack.$itemDamage) - var$3 = 0; - else { - var$3 = $par1ItemStack.$stackSize; - nms_Item_$callClinit(); - var$3 = var$3 <= nms_Item_itemsList.data[$par1ItemStack.$itemID0].$maxStackSize ? nms_ItemStack_areItemStackTagsEqual($par1ItemStack, $par2ItemStack) : 0; - } - return var$3; -}; -$java.nms_TileEntityHopper_getXPos = function($this) { - return $this.$xCoord0; -}; -$java.nms_TileEntityHopper_getYPos = function($this) { - return $this.$yCoord0; -}; -$java.nms_TileEntityHopper_getZPos = function($this) { - return $this.$zCoord0; -}; -$java.nms_TileEntityHopper_setTransferCooldown = function($this, $par1) { - $this.$transferCooldown = $par1; -}; -$java.nms_TileEntityHopper_isCoolingDown = function($this) { - return $this.$transferCooldown <= 0 ? 0 : 1; -}; -function nms_TileEntityComparator() { - nms_TileEntity.call(this); - this.$field_96101_a = 0; -} -$java.nms_TileEntityComparator__init_ = function() { - var var_0 = new nms_TileEntityComparator(); - nms_TileEntityComparator__init_(var_0); - return var_0; -}; -function nms_TileEntityComparator__init_($this) { - $this.$blockMetadata = (-1); - $this.$field_96101_a = 0; -} -$java.nms_TileEntityComparator_writeToNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3; - nms_TileEntity_writeToNBT($this, $par1NBTTagCompound); - var$2 = $this.$field_96101_a; - var$3 = $par1NBTTagCompound.$tagMap; - $par1NBTTagCompound = new nms_NBTTagInt; - $par1NBTTagCompound.$name0 = $rt_s(2737); - $par1NBTTagCompound.$data2 = var$2; - ju_HashMap_putImpl(var$3, $rt_s(2737), $par1NBTTagCompound); -}; -$java.nms_TileEntityComparator_readFromNBT = function($this, $par1NBTTagCompound) { - var var$2, var$3, var$4, var$5; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1521)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1521), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$xCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1522)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1522), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$yCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(1523)); - var$5 = ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(1523), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3); - var$4 = (var$5 === null ? null : var$5.$value0).$data2; - } - $this.$zCoord0 = var$4; - var$2 = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(2737)); - if (!(ju_HashMap_findNonNullKeyEntry(var$2, $rt_s(2737), var$3 & (var$2.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1)) - var$4 = 0; - else { - $par1NBTTagCompound = $par1NBTTagCompound.$tagMap; - var$3 = jl_String_hashCode($rt_s(2737)); - $par1NBTTagCompound = ju_HashMap_findNonNullKeyEntry($par1NBTTagCompound, $rt_s(2737), var$3 & ($par1NBTTagCompound.$elementData.data.length - 1 | 0), var$3); - var$4 = ($par1NBTTagCompound === null ? null : $par1NBTTagCompound.$value0).$data2; - } - $this.$field_96101_a = var$4; -}; -$java.nms_TileEntityComparator_func_96100_a = function($this) { - return $this.$field_96101_a; -}; -$java.nms_TileEntityComparator_func_96099_a = function($this, $par1) { - $this.$field_96101_a = $par1; -}; -$java.ju_LinkedHashMap$AbstractMapIterator = function() { - var a = this; jl_Object.call(a); - a.$expectedModCount0 = 0; - a.$futureEntry0 = null; - a.$currentEntry1 = null; - a.$associatedMap1 = null; -}; -$java.ju_LinkedHashMap$AbstractMapIterator_hasNext = function($this) { - return $this.$futureEntry0 === null ? 0 : 1; -}; -$java.ju_LinkedHashMap$AbstractMapIterator_checkConcurrentMod = function($this) { - var var$1; - if ($this.$expectedModCount0 == $this.$associatedMap1.$modCount1) - return; - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); -}; -$java.ju_LinkedHashMap$AbstractMapIterator_makeNext = function($this) { - var var$1; - if ($this.$expectedModCount0 != $this.$associatedMap1.$modCount1) { - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - if ($this.$futureEntry0 === null ? 0 : 1) { - $this.$currentEntry1 = $this.$futureEntry0; - $this.$futureEntry0 = $this.$futureEntry0.$chainForward; - return; - } - var$1 = new ju_NoSuchElementException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); -}; -$java.ju_LinkedHashMap$AbstractMapIterator_remove = function($this) { - var $lhme, $p, $n, $lhm; - if ($this.$expectedModCount0 != $this.$associatedMap1.$modCount1) { - $lhme = new ju_ConcurrentModificationException; - $lhme.$suppressionEnabled = 1; - $lhme.$writableStackTrace = 1; - $rt_throw($lhme); - } - if ($this.$currentEntry1 === null) { - $lhme = new jl_IllegalStateException; - $lhme.$suppressionEnabled = 1; - $lhme.$writableStackTrace = 1; - $rt_throw($lhme); - } - ju_HashMap_removeEntry0($this.$associatedMap1, $this.$currentEntry1); - $lhme = $this.$currentEntry1; - $p = $lhme.$chainBackward; - $n = $lhme.$chainForward; - $lhm = $this.$associatedMap1; - if ($p !== null) { - $p.$chainForward = $n; - if ($n !== null) - $n.$chainBackward = $p; - else - $lhm.$tail = $p; - } else { - $lhm.$head4 = $n; - if ($n !== null) - $n.$chainBackward = null; - else - $lhm.$tail = null; - } - $this.$currentEntry1 = null; - $this.$expectedModCount0 = $this.$expectedModCount0 + 1 | 0; -}; -$java.ju_LinkedHashMap$ValueIterator = function() { - $java.ju_LinkedHashMap$AbstractMapIterator.call(this); -}; -$java.ju_LinkedHashMap$ValueIterator_next = function($this) { - $java.ju_LinkedHashMap$AbstractMapIterator_makeNext($this); - return $this.$currentEntry1.$value0; -}; -$java.jnci_BufferedDecoder$Controller = function() { - var a = this; jl_Object.call(a); - a.$in2 = null; - a.$out3 = null; - a.$inPosition0 = 0; - a.$outPosition0 = 0; -}; -$java.jnci_BufferedDecoder$Controller_hasMoreInput = function($this) { - var var$1; - var$1 = $this.$in2; - return var$1.$position >= var$1.$limit ? 0 : 1; -}; -$java.jnci_BufferedDecoder$Controller_hasMoreOutput = function($this, $sz) { - var var$2; - var$2 = $this.$out3; - return (var$2.$limit - var$2.$position | 0) < $sz ? 0 : 1; -}; -$java.jnci_BufferedDecoder$Controller_setInPosition = function($this, $inPosition) { - $this.$inPosition0 = $inPosition; -}; -$java.jnci_BufferedDecoder$Controller_setOutPosition = function($this, $outPosition) { - $this.$outPosition0 = $outPosition; -}; -function otcit_DateTimeZoneBuilder() { - jl_Object.call(this); - this.$iRuleSets = null; -} -$java.otcit_DateTimeZoneBuilder_gmtCache = null; -$java.otcit_DateTimeZoneBuilder__init_ = function() { - var var_0 = new otcit_DateTimeZoneBuilder(); - otcit_DateTimeZoneBuilder__init_(var_0); - return var_0; -}; -function otcit_DateTimeZoneBuilder__init_($this) { - var var$1; - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$iRuleSets = var$1; -} -function nms_DamageSource() { - var a = this; jl_Object.call(a); - a.$isUnblockable = 0; - a.$isDamageAllowedInCreativeMode = 0; - a.$hungerDamage = 0.0; - a.$fireDamage = 0; - a.$projectile = 0; - a.$difficultyScaled = 0; - a.$magicDamage = 0; - a.$explosion = 0; - a.$damageType = null; -} -var nms_DamageSource_inFire = null; -var nms_DamageSource_onFire = null; -var nms_DamageSource_lava = null; -var nms_DamageSource_inWall = null; -var nms_DamageSource_drown = null; -$java.nms_DamageSource_starve = null; -var nms_DamageSource_cactus = null; -var nms_DamageSource_fall = null; -var nms_DamageSource_outOfWorld = null; -var nms_DamageSource_generic = null; -var nms_DamageSource_magic = null; -var nms_DamageSource_wither = null; -var nms_DamageSource_anvil = null; -var nms_DamageSource_fallingBlock = null; -function nms_DamageSource_causeArrowDamage($par0EntityArrow, $par1Entity) { - var var$3; - var$3 = new nms_EntityDamageSourceIndirect; - var$3.$isUnblockable = 0; - var$3.$isDamageAllowedInCreativeMode = 0; - var$3.$hungerDamage = 0.30000001192092896; - var$3.$magicDamage = 0; - var$3.$explosion = 0; - var$3.$damageType = $rt_s(1355); - var$3.$damageSourceEntity = $par0EntityArrow; - var$3.$indirectEntity = $par1Entity; - var$3.$projectile = 1; - return var$3; -} -function nms_DamageSource_causeThrownDamage($par0Entity, $par1Entity) { - var var$3; - var$3 = new nms_EntityDamageSourceIndirect; - var$3.$isUnblockable = 0; - var$3.$isDamageAllowedInCreativeMode = 0; - var$3.$hungerDamage = 0.30000001192092896; - var$3.$magicDamage = 0; - var$3.$explosion = 0; - var$3.$damageType = $rt_s(1344); - var$3.$damageSourceEntity = $par0Entity; - var$3.$indirectEntity = $par1Entity; - var$3.$projectile = 1; - return var$3; -} -function nms_DamageSource_setExplosionSource($par0Explosion) { - var var$2; - if ($par0Explosion !== null && nms_Explosion_func_94613_c($par0Explosion) !== null) { - var$2 = new nms_EntityDamageSource; - $par0Explosion = nms_Explosion_func_94613_c($par0Explosion); - var$2.$isUnblockable = 0; - var$2.$isDamageAllowedInCreativeMode = 0; - var$2.$hungerDamage = 0.30000001192092896; - var$2.$magicDamage = 0; - var$2.$explosion = 0; - var$2.$damageType = $rt_s(2738); - var$2.$damageSourceEntity = $par0Explosion; - var$2.$difficultyScaled = 1; - var$2.$explosion = 1; - } else { - var$2 = new nms_DamageSource; - var$2.$isUnblockable = 0; - var$2.$isDamageAllowedInCreativeMode = 0; - var$2.$hungerDamage = 0.30000001192092896; - var$2.$magicDamage = 0; - var$2.$explosion = 0; - var$2.$damageType = $rt_s(2592); - var$2.$difficultyScaled = 1; - var$2.$explosion = 1; - } - return var$2; -} -$java.nms_DamageSource_isProjectile = function($this) { - return $this.$projectile; -}; -$java.nms_DamageSource_setProjectile = function($this) { - $this.$projectile = 1; - return $this; -}; -$java.nms_DamageSource_isExplosion = function($this) { - return $this.$explosion; -}; -$java.nms_DamageSource_setExplosion = function($this) { - $this.$explosion = 1; - return $this; -}; -$java.nms_DamageSource_isUnblockable = function($this) { - return $this.$isUnblockable; -}; -$java.nms_DamageSource_getHungerDamage = function($this) { - return $this.$hungerDamage; -}; -$java.nms_DamageSource_canHarmInCreative = function($this) { - return $this.$isDamageAllowedInCreativeMode; -}; -$java.nms_DamageSource_getSourceOfDamage = function($this) { - return $this.$getEntity(); -}; -$java.nms_DamageSource_getEntity = function($this) { - return null; -}; -$java.nms_DamageSource_setDamageBypassesArmor = function($this) { - $this.$isUnblockable = 1; - $this.$hungerDamage = 0.0; - return $this; -}; -$java.nms_DamageSource_setDamageAllowedInCreativeMode = function($this) { - $this.$isDamageAllowedInCreativeMode = 1; - return $this; -}; -$java.nms_DamageSource_setFireDamage = function($this) { - $this.$fireDamage = 1; - return $this; -}; -$java.nms_DamageSource_isFireDamage = function($this) { - return $this.$fireDamage; -}; -$java.nms_DamageSource_getDamageType = function($this) { - return $this.$damageType; -}; -$java.nms_DamageSource_setDifficultyScaled = function($this) { - $this.$difficultyScaled = 1; - return $this; -}; -$java.nms_DamageSource_isMagicDamage = function($this) { - return $this.$magicDamage; -}; -$java.nms_DamageSource_setMagicDamage = function($this) { - $this.$magicDamage = 1; - return $this; -}; -function nms_DamageSource__clinit_() { - var var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(2739); - var$1.$fireDamage = 1; - nms_DamageSource_inFire = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(1516); - var$1.$isUnblockable = 1; - var$1.$hungerDamage = 0.0; - var$1.$fireDamage = 1; - nms_DamageSource_onFire = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(859); - var$1.$fireDamage = 1; - nms_DamageSource_lava = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(2740); - var$1.$isUnblockable = 1; - var$1.$hungerDamage = 0.0; - nms_DamageSource_inWall = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(2741); - var$1.$isUnblockable = 1; - var$1.$hungerDamage = 0.0; - nms_DamageSource_drown = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(2742); - var$1.$isUnblockable = 1; - var$1.$hungerDamage = 0.0; - $java.nms_DamageSource_starve = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(1655); - nms_DamageSource_cactus = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(2591); - var$1.$isUnblockable = 1; - var$1.$hungerDamage = 0.0; - nms_DamageSource_fall = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(2743); - var$1.$isUnblockable = 1; - var$1.$hungerDamage = 0.0; - var$1.$isDamageAllowedInCreativeMode = 1; - nms_DamageSource_outOfWorld = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(681); - var$1.$isUnblockable = 1; - var$1.$hungerDamage = 0.0; - nms_DamageSource_generic = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(2744); - var$1.$isUnblockable = 1; - var$1.$hungerDamage = 0.0; - var$1.$magicDamage = 1; - nms_DamageSource_magic = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(1967); - var$1.$isUnblockable = 1; - var$1.$hungerDamage = 0.0; - nms_DamageSource_wither = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(1598); - nms_DamageSource_anvil = var$1; - var$1 = new nms_DamageSource; - var$1.$isUnblockable = 0; - var$1.$isDamageAllowedInCreativeMode = 0; - var$1.$hungerDamage = 0.30000001192092896; - var$1.$magicDamage = 0; - var$1.$explosion = 0; - var$1.$damageType = $rt_s(2745); - nms_DamageSource_fallingBlock = var$1; -} -$java.nms_GuiDisconnected = function() { - var a = this; nms_GuiScreen.call(a); - a.$errorMessage = null; - a.$errorDetail = null; - a.$field_74247_c = null; - a.$field_74245_d = null; - a.$field_98095_n = null; -}; -$java.nms_GuiDisconnected__init_0 = function(var_0, var_1, var_2, var_3) { - var var_4 = new $java.nms_GuiDisconnected(); - $java.nms_GuiDisconnected__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -}; -$java.nms_GuiDisconnected__init_ = function($this, $par1GuiScreen, $par2Str, $par3Str, $par4ArrayOfObj) { - var $var5; - nms_GuiScreen__init_($this); - $var5 = nms_StringTranslate_instance; - $this.$field_98095_n = $par1GuiScreen; - $this.$errorMessage = nms_StringTranslate_translateKey($var5, $par2Str); - $this.$errorDetail = $par3Str; - $this.$field_74247_c = $par4ArrayOfObj; -}; -$java.nms_GuiDisconnected_keyTyped = function($this, $par1, $par2) { - return; -}; -$java.nms_GuiDisconnected_initGui = function($this) { - var $var1, var$2, var$3; - $var1 = nms_StringTranslate_instance; - var$2 = $this.$buttonList; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - ju_ArrayList_add($this.$buttonList, nms_GuiButton__init_(0, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 120 | 0) + 12 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(493)))); - if ($this.$field_74247_c === null) { - var$2 = nms_FontRenderer_wrapFormattedStringToWidth($this.$fontRenderer0, nms_StringTranslate_translateKey($var1, $this.$errorDetail), $this.$width0 - 50 | 0); - var$3 = jur_Pattern_split(jur_Pattern_compile($rt_s(60), 0), var$2, 0); - var$2 = new ju_Arrays$ArrayAsList; - var$2.$array3 = var$3; - $this.$field_74245_d = var$2; - } else { - var$2 = nms_FontRenderer_wrapFormattedStringToWidth($this.$fontRenderer0, nms_StringTranslate_translateKeyFormat($var1, $this.$errorDetail, $this.$field_74247_c), $this.$width0 - 50 | 0); - var$3 = jur_Pattern_split(jur_Pattern_compile($rt_s(60), 0), var$2, 0); - var$2 = new ju_Arrays$ArrayAsList; - var$2.$array3 = var$3; - $this.$field_74245_d = var$2; - } -}; -$java.nms_GuiDisconnected_actionPerformed = function($this, $par1GuiButton) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$id2) - return; - $par1GuiButton = $this.$mc4; - var$2 = $this.$field_98095_n; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, $ptr); -}; -$java.nms_GuiDisconnected_drawScreen = function($this, $par1, $par2, $par3) { - var var$4, $var6, $var5$index, var$7, $var4, var$9, var$10, $var5$index_0, var$12; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - a: { - var$4 = $this.$fontRenderer0; - $var6 = $this.$errorMessage; - $var5$index = $this.$width0 / 2 | 0; - var$7 = ($this.$height0 / 2 | 0) - 50 | 0; - nms_FontRenderer_drawString(var$4, $var6, $var5$index - (nms_FontRenderer_getStringWidth(var$4, $var6) / 2 | 0) | 0, var$7, 11184810, 1); - $var4 = ($this.$height0 / 2 | 0) - 30 | 0; - if ($this.$field_74245_d !== null) { - var$4 = $this.$field_74245_d; - $var5$index = 0; - var$9 = var$4.$modCount0; - var$10 = var$4.$size2(); - while (true) { - if (!($var5$index >= var$10 ? 0 : 1)) - break a; - if (var$9 < var$4.$modCount0) - break; - $var5$index_0 = $var5$index + 1 | 0; - $var6 = var$4.$get4($var5$index); - var$12 = $this.$fontRenderer0; - nms_FontRenderer_drawString(var$12, $var6, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth(var$12, $var6) / 2 | 0) | 0, $var4, 16777215, 1); - $var4 = $var4 + $this.$fontRenderer0.$FONT_HEIGHT | 0; - $var5$index = $var5$index_0; - } - var$4 = new ju_ConcurrentModificationException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - } - var$7 = 0; - b: { - while (var$7 < $this.$buttonList.$size0) { - var$4 = $this.$buttonList; - if (var$7 < 0) - break b; - if (var$7 >= var$4.$size0) - break b; - var$4.$array1.data[var$7].$drawButton($this.$mc4, $par1, $par2); - var$7 = var$7 + 1 | 0; - } - return; - } - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); -}; -function ju_IllegalFormatException() { - jl_IllegalArgumentException.call(this); -} -$java.ju_IllegalFormatException__init_ = function() { - var var_0 = new ju_IllegalFormatException(); - ju_IllegalFormatException__init_(var_0); - return var_0; -}; -function ju_IllegalFormatException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -$java.ju_UnknownFormatConversionException = function() { - ju_IllegalFormatException.call(this); - this.$conversion0 = null; -}; -function nms_EnchantmentHelper() { - jl_Object.call(this); -} -$java.nms_EnchantmentHelper_enchantmentRand = null; -$java.nms_EnchantmentHelper_enchantmentModifierDamage = null; -$java.nms_EnchantmentHelper_enchantmentModifierLiving = null; -$java.nms_EnchantmentHelper__init_ = function() { - var var_0 = new nms_EnchantmentHelper(); - nms_EnchantmentHelper__init_(var_0); - return var_0; -}; -function nms_EnchantmentHelper__init_($this) { - return; -} -function nms_EnchantmentHelper_getEnchantmentLevel($par0, $par1ItemStack) { - var $var2, $var3, var$5, $var4, var$7, $var5, var$9; - if ($par1ItemStack === null) - return 0; - $var2 = nms_ItemStack_getEnchantmentTagList($par1ItemStack); - if ($var2 === null) - return 0; - $var3 = 0; - a: { - b: { - while (true) { - if ($var3 >= $var2.$tagList.$size0) - return 0; - $par1ItemStack = $var2.$tagList; - if ($var3 < 0) - break a; - if ($var3 >= $par1ItemStack.$size0) - break a; - var$5 = $par1ItemStack.$array1.data[$var3]; - $par1ItemStack = var$5.$tagMap; - $var4 = jl_String_hashCode($rt_s(1569)); - if (!(ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1569), $var4 & ($par1ItemStack.$elementData.data.length - 1 | 0), $var4) === null ? 0 : 1)) - $var4 = 0; - else { - $par1ItemStack = var$5.$tagMap; - $var4 = jl_String_hashCode($rt_s(1569)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1569), $var4 & ($par1ItemStack.$elementData.data.length - 1 | 0), $var4); - $var4 = ($par1ItemStack === null ? null : $par1ItemStack.$value0).$data1; - } - $par1ItemStack = $var2.$tagList; - if ($var3 < 0) - break b; - if ($var3 >= $par1ItemStack.$size0) - break b; - var$5 = $par1ItemStack.$array1.data[$var3]; - $par1ItemStack = var$5.$tagMap; - var$7 = jl_String_hashCode($rt_s(1578)); - if (!(ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1578), var$7 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$7) === null ? 0 : 1)) - $var5 = 0; - else { - $par1ItemStack = var$5.$tagMap; - var$9 = jl_String_hashCode($rt_s(1578)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1578), var$9 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$9); - $var5 = ($par1ItemStack === null ? null : $par1ItemStack.$value0).$data1; - } - if ($var4 == $par0) - break; - $var3 = $var3 + 1 | 0; - } - return $var5; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); -} -$java.nms_EnchantmentHelper_getEnchantments = function($par0ItemStack) { - var $var1, $var3, $var2, var$5, var$6, var$7, $var4, $var5; - $var1 = new ju_LinkedHashMap; - ju_HashMap__init_2($var1, 16, 0.75); - $var1.$accessOrder = 0; - $var1.$head4 = null; - $var3 = $par0ItemStack.$itemID0; - nms_Item_$callClinit(); - if ($var3 == nms_Item_enchantedBook.$itemID) - $var2 = nms_ItemEnchantedBook_func_92110_g(nms_Item_enchantedBook, $par0ItemStack); - else if ($par0ItemStack.$stackTagCompound === null) - $var2 = null; - else { - $var2 = $par0ItemStack.$stackTagCompound.$tagMap; - var$5 = jl_String_hashCode($rt_s(1573)); - $par0ItemStack = ju_HashMap_findNonNullKeyEntry($var2, $rt_s(1573), var$5 & ($var2.$elementData.data.length - 1 | 0), var$5); - $var2 = $par0ItemStack === null ? null : $par0ItemStack.$value0; - } - a: { - b: { - c: { - if ($var2 !== null) { - $var3 = 0; - while (true) { - if ($var3 >= $var2.$tagList.$size0) - break c; - $par0ItemStack = $var2.$tagList; - if ($var3 < 0) - break a; - if ($var3 >= $par0ItemStack.$size0) - break a; - var$6 = $par0ItemStack.$array1.data[$var3]; - $par0ItemStack = var$6.$tagMap; - var$7 = jl_String_hashCode($rt_s(1569)); - if (!(ju_HashMap_findNonNullKeyEntry($par0ItemStack, $rt_s(1569), var$7 & ($par0ItemStack.$elementData.data.length - 1 | 0), var$7) === null ? 0 : 1)) - $var4 = 0; - else { - $par0ItemStack = var$6.$tagMap; - var$5 = jl_String_hashCode($rt_s(1569)); - $par0ItemStack = ju_HashMap_findNonNullKeyEntry($par0ItemStack, $rt_s(1569), var$5 & ($par0ItemStack.$elementData.data.length - 1 | 0), var$5); - $var4 = ($par0ItemStack === null ? null : $par0ItemStack.$value0).$data1; - } - $par0ItemStack = $var2.$tagList; - if ($var3 < 0) - break b; - if ($var3 >= $par0ItemStack.$size0) - break b; - $par0ItemStack = $par0ItemStack.$array1.data[$var3]; - var$6 = $par0ItemStack.$tagMap; - var$7 = jl_String_hashCode($rt_s(1578)); - if (!(ju_HashMap_findNonNullKeyEntry(var$6, $rt_s(1578), var$7 & (var$6.$elementData.data.length - 1 | 0), var$7) === null ? 0 : 1)) - $var5 = 0; - else { - $par0ItemStack = $par0ItemStack.$tagMap; - var$7 = jl_String_hashCode($rt_s(1578)); - $par0ItemStack = ju_HashMap_findNonNullKeyEntry($par0ItemStack, $rt_s(1578), var$7 & ($par0ItemStack.$elementData.data.length - 1 | 0), var$7); - $var5 = ($par0ItemStack === null ? null : $par0ItemStack.$value0).$data1; - } - ju_LinkedHashMap_putImpl($var1, jl_Integer_valueOf($var4), jl_Integer_valueOf($var5)); - $var3 = $var3 + 1 | 0; - } - } - } - return $var1; - } - $par0ItemStack = new jl_IndexOutOfBoundsException; - $par0ItemStack.$suppressionEnabled = 1; - $par0ItemStack.$writableStackTrace = 1; - $rt_throw($par0ItemStack); - } - $par0ItemStack = new jl_IndexOutOfBoundsException; - $par0ItemStack.$suppressionEnabled = 1; - $par0ItemStack.$writableStackTrace = 1; - $rt_throw($par0ItemStack); -}; -$java.nms_EnchantmentHelper_setEnchantments = function($par0Map, $par1ItemStack) { - var $var2, var$4, $var3, $var4, $var5, var$8, var$9; - $var2 = new nms_NBTTagList; - $var2.$name0 = $rt_s(44); - var$4 = new ju_ArrayList; - var$4.$array1 = $rt_createArray(jl_Object, 10); - $var2.$tagList = var$4; - if ($par0Map.$cachedKeySet === null) { - var$4 = new ju_LinkedHashMap$1; - var$4.$this$07 = $par0Map; - $par0Map.$cachedKeySet = var$4; - } - $var3 = $par0Map.$cachedKeySet.$iterator(); - while ($var3.$hasNext()) { - $var4 = $var3.$next().$value; - $var5 = new nms_NBTTagCompound; - $var5.$name0 = $rt_s(44); - $var5.$tagMap = ju_HashMap__init_1(16, 0.75); - var$8 = $var4 << 16 >> 16; - var$9 = $var5.$tagMap; - var$4 = new nms_NBTTagShort; - var$4.$name0 = $rt_s(1569); - var$4.$data1 = var$8; - ju_HashMap_putImpl(var$9, $rt_s(1569), var$4); - var$8 = ju_LinkedHashMap_get($par0Map, jl_Integer_valueOf($var4)).$value << 16 >> 16; - var$9 = $var5.$tagMap; - var$4 = new nms_NBTTagShort; - var$4.$name0 = $rt_s(1578); - var$4.$data1 = var$8; - ju_HashMap_putImpl(var$9, $rt_s(1578), var$4); - $var2.$tagType = 10; - ju_ArrayList_add($var2.$tagList, $var5); - var$8 = $par1ItemStack.$itemID0; - nms_Item_$callClinit(); - if (var$8 == nms_Item_enchantedBook.$itemID) { - var$9 = nms_Item_enchantedBook; - $var5 = new nms_EnchantmentData; - var$8 = ju_LinkedHashMap_get($par0Map, jl_Integer_valueOf($var4)).$value; - nms_Enchantment_$callClinit(); - $var5.$enchantmentobj = nms_Enchantment_enchantmentsList.data[$var4]; - $var5.$enchantmentLevel = var$8; - nms_ItemEnchantedBook_func_92115_a(var$9, $par1ItemStack, $var5); - } - } - if ($var2.$tagList.$size0 > 0) { - var$8 = $par1ItemStack.$itemID0; - nms_Item_$callClinit(); - if (var$8 != nms_Item_enchantedBook.$itemID) { - if ($par1ItemStack.$stackTagCompound === null) { - var$4 = new nms_NBTTagCompound; - var$4.$name0 = $rt_s(44); - var$4.$tagMap = ju_HashMap__init_1(16, 0.75); - $par1ItemStack.$stackTagCompound = var$4; - } - $par1ItemStack = $par1ItemStack.$stackTagCompound.$tagMap; - $var2.$name0 = $rt_s(1573); - ju_HashMap_putImpl($par1ItemStack, $rt_s(1573), $var2); - } - } else if ($par1ItemStack.$stackTagCompound === null ? 0 : 1) - ju_HashMap_removeEntry($par1ItemStack.$stackTagCompound.$tagMap, $rt_s(1573)); -}; -function nms_EnchantmentHelper_getMaxEnchantmentLevel($par0, $par1ArrayOfItemStack) { - var $var2, $var4, $var5, $var7; - if ($par1ArrayOfItemStack === null) - return 0; - $par1ArrayOfItemStack = $par1ArrayOfItemStack.data; - $var2 = 0; - $var4 = $par1ArrayOfItemStack.length; - $var5 = 0; - while ($var5 < $var4) { - $var7 = nms_EnchantmentHelper_getEnchantmentLevel($par0, $par1ArrayOfItemStack[$var5]); - if ($var7 > $var2) - $var2 = $var7; - $var5 = $var5 + 1 | 0; - } - return $var2; -} -$java.nms_EnchantmentHelper_applyEnchantmentModifier = function($par0IEnchantmentModifier, $par1ItemStack) { - var $var2, $var3, var$5, var$6, $var4, var$8, $var5, var$10; - a: { - b: { - c: { - if ($par1ItemStack !== null) { - $var2 = nms_ItemStack_getEnchantmentTagList($par1ItemStack); - if ($var2 !== null) { - $var3 = 0; - while (true) { - if ($var3 >= $var2.$tagList.$size0) - break c; - $par1ItemStack = $var2.$tagList; - if ($var3 < 0) - break a; - if ($var3 >= $par1ItemStack.$size0) - break a; - var$5 = $par1ItemStack.$array1.data[$var3]; - $par1ItemStack = var$5.$tagMap; - var$6 = jl_String_hashCode($rt_s(1569)); - if (!(ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1569), var$6 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$6) === null ? 0 : 1)) - $var4 = 0; - else { - $par1ItemStack = var$5.$tagMap; - var$6 = jl_String_hashCode($rt_s(1569)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1569), var$6 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$6); - $var4 = ($par1ItemStack === null ? null : $par1ItemStack.$value0).$data1; - } - $par1ItemStack = $var2.$tagList; - if ($var3 < 0) - break b; - if ($var3 >= $par1ItemStack.$size0) - break b; - var$8 = $par1ItemStack.$array1.data[$var3]; - $par1ItemStack = var$8.$tagMap; - var$6 = jl_String_hashCode($rt_s(1578)); - if (!(ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1578), var$6 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$6) === null ? 0 : 1)) - $var5 = 0; - else { - $par1ItemStack = var$8.$tagMap; - var$10 = jl_String_hashCode($rt_s(1578)); - $par1ItemStack = ju_HashMap_findNonNullKeyEntry($par1ItemStack, $rt_s(1578), var$10 & ($par1ItemStack.$elementData.data.length - 1 | 0), var$10); - $var5 = ($par1ItemStack === null ? null : $par1ItemStack.$value0).$data1; - } - nms_Enchantment_$callClinit(); - if (nms_Enchantment_enchantmentsList.data[$var4] !== null) - $par0IEnchantmentModifier.$calculateModifier(nms_Enchantment_enchantmentsList.data[$var4], $var5); - $var3 = $var3 + 1 | 0; - } - } - } - } - return; - } - $par0IEnchantmentModifier = new jl_IndexOutOfBoundsException; - $par0IEnchantmentModifier.$suppressionEnabled = 1; - $par0IEnchantmentModifier.$writableStackTrace = 1; - $rt_throw($par0IEnchantmentModifier); - } - $par0IEnchantmentModifier = new jl_IndexOutOfBoundsException; - $par0IEnchantmentModifier.$suppressionEnabled = 1; - $par0IEnchantmentModifier.$writableStackTrace = 1; - $rt_throw($par0IEnchantmentModifier); -}; -function nms_EnchantmentHelper_getEnchantmentModifierDamage($par0ArrayOfItemStack, $par1DamageSource) { - var var$3, var$4; - $par0ArrayOfItemStack = $par0ArrayOfItemStack.data; - $java.nms_EnchantmentHelper_enchantmentModifierDamage.$damageModifier = 0; - $java.nms_EnchantmentHelper_enchantmentModifierDamage.$source0 = $par1DamageSource; - $par1DamageSource = $java.nms_EnchantmentHelper_enchantmentModifierDamage; - var$3 = $par0ArrayOfItemStack.length; - var$4 = 0; - while (var$4 < var$3) { - $java.nms_EnchantmentHelper_applyEnchantmentModifier($par1DamageSource, $par0ArrayOfItemStack[var$4]); - var$4 = var$4 + 1 | 0; - } - if ($java.nms_EnchantmentHelper_enchantmentModifierDamage.$damageModifier > 25) - $java.nms_EnchantmentHelper_enchantmentModifierDamage.$damageModifier = 25; - var$4 = ($java.nms_EnchantmentHelper_enchantmentModifierDamage.$damageModifier + 1 | 0) >> 1; - var$3 = ($java.nms_EnchantmentHelper_enchantmentModifierDamage.$damageModifier >> 1) + 1 | 0; - return var$4 + (Math.random() * var$3 | 0) | 0; -} -function nms_EnchantmentHelper_getEnchantmentModifierLiving($par0EntityLiving, $par1EntityLiving) { - var var$3, var$4; - $java.nms_EnchantmentHelper_enchantmentModifierLiving.$livingModifier = 0; - $java.nms_EnchantmentHelper_enchantmentModifierLiving.$entityLiving = $par1EntityLiving; - $java.nms_EnchantmentHelper_applyEnchantmentModifier($java.nms_EnchantmentHelper_enchantmentModifierLiving, $par0EntityLiving.$getHeldItem()); - if ($java.nms_EnchantmentHelper_enchantmentModifierLiving.$livingModifier <= 0) - var$3 = 0; - else { - var$4 = $java.nms_EnchantmentHelper_enchantmentModifierLiving.$livingModifier; - var$3 = 1 + (Math.random() * var$4 | 0) | 0; - } - return var$3; -} -$java.nms_EnchantmentHelper_func_92099_a = function($par0Enchantment, $par1EntityLiving) { - var $var2, $var3, $var4, $var5; - $var2 = $par1EntityLiving.$getLastActiveItems().data; - $var3 = $var2.length; - $var4 = 0; - while (true) { - if ($var4 >= $var3) - return null; - $var5 = $var2[$var4]; - if ($var5 !== null && nms_EnchantmentHelper_getEnchantmentLevel($par0Enchantment.$effectId, $var5) > 0) - break; - $var4 = $var4 + 1 | 0; - } - return $var5; -}; -$java.nms_EnchantmentHelper_calcItemStackEnchantability = function($par0Random, $par1, $par2, $par3ItemStack) { - var $var6, $var5; - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par3ItemStack.$itemID0].$getItemEnchantability() <= 0) - return 0; - if ($par2 > 15) - $par2 = 15; - $var6 = ((Math.random() * 8.0 | 0) + 1 | 0) + ($par2 >> 1) | 0; - $var5 = $par2 + 1 | 0; - $var6 = $var6 + (Math.random() * $var5 | 0) | 0; - if (!$par1) { - $par2 = $var6 / 3 | 0; - $par1 = 1; - if ($par2 > $par1) - $par1 = $par2; - } else if ($par1 == 1) - $par1 = (($var6 * 2 | 0) / 3 | 0) + 1 | 0; - else { - $par1 = $par2 * 2 | 0; - if ($var6 > $par1) - $par1 = $var6; - } - return $par1; -}; -function nms_EnchantmentHelper_addRandomEnchantment($par0Random, $par1ItemStack, $par2) { - var $var3, $var4, $var5, $var6; - $var3 = new ju_ArrayList; - $var3.$array1 = $rt_createArray(jl_Object, 10); - $par2 = $par1ItemStack.$itemID0; - nms_Item_$callClinit(); - $var4 = $par2 != nms_Item_book.$itemID ? 0 : 1; - if ($var4) - $par1ItemStack.$itemID0 = nms_Item_enchantedBook.$itemID; - $var5 = new ju_AbstractList$1; - $var5.$this$0 = $var3; - $var5.$modCount = $var5.$this$0.$modCount0; - $var5.$size1 = $var5.$this$0.$size2(); - $var5.$removeIndex = (-1); - while ($var5.$index >= $var5.$size1 ? 0 : 1) { - $var6 = ju_AbstractList$1_next($var5); - if ($var4) - nms_ItemEnchantedBook_func_92115_a(nms_Item_enchantedBook, $par1ItemStack, $var6); - else - nms_ItemStack_addEnchantment($par1ItemStack, $var6.$enchantmentobj, $var6.$enchantmentLevel); - } - return $par1ItemStack; -} -function nms_EnchantmentHelper__clinit_() { - $java.nms_EnchantmentHelper_enchantmentRand = new ju_Random; - $java.nms_EnchantmentHelper_enchantmentModifierDamage = new nms_EnchantmentModifierDamage; - $java.nms_EnchantmentHelper_enchantmentModifierLiving = new nms_EnchantmentModifierLiving; -} -function nms_MapStorage() { - var a = this; jl_Object.call(a); - a.$loadedDataMap = null; - a.$loadedDataList = null; - a.$idCounts = null; -} -function nms_MapStorage__init_0() { - var var_0 = new nms_MapStorage(); - nms_MapStorage__init_(var_0); - return var_0; -} -function nms_MapStorage__init_($this) { - var var$1, var$2, var$3, $$je; - $this.$loadedDataMap = ju_HashMap__init_1(16, 0.75); - var$1 = new ju_ArrayList; - var$1.$array1 = $rt_createArray(jl_Object, 10); - $this.$loadedDataList = var$1; - $this.$idCounts = ju_HashMap__init_1(16, 0.75); - a: { - try { - ju_HashMap_clear($this.$idCounts); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - var$1 = $$je; - } else { - throw $$e; - } - } - 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; - } - jl_Throwable_printStackTrace0(var$1, jl_System_errCache); - } -} -function nms_MapStorage_loadData($this, $par1Class, $par2Str) { - var var$3; - $par1Class = $this.$loadedDataMap; - if ($par2Str !== null) { - var$3 = jl_String_hashCode($par2Str); - $par1Class = ju_HashMap_findNonNullKeyEntry($par1Class, $par2Str, var$3 & ($par1Class.$elementData.data.length - 1 | 0), var$3); - } else { - $par1Class = $par1Class.$elementData.data[0]; - while ($par1Class !== null && $par1Class.$key !== null) { - $par1Class = $par1Class.$next1; - } - } - return $par1Class === null ? null : $par1Class.$value0; -} -function nms_MapStorage_setData($this, $par1Str, $par2WorldSavedData) { - var var$3, var$4, var$5; - if ($par2WorldSavedData === null) { - $par1Str = new jl_RuntimeException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $par1Str.$message = $rt_s(2746); - $rt_throw($par1Str); - } - var$3 = $this.$loadedDataMap; - if ($par1Str !== null) { - var$4 = jl_String_hashCode($par1Str); - var$3 = ju_HashMap_findNonNullKeyEntry(var$3, $par1Str, var$4 & (var$3.$elementData.data.length - 1 | 0), var$4); - } else { - var$3 = var$3.$elementData.data[0]; - while (var$3 !== null && var$3.$key !== null) { - var$3 = var$3.$next1; - } - } - if (var$3 === null ? 0 : 1) { - var$3 = $this.$loadedDataList; - var$5 = ju_HashMap_removeEntry($this.$loadedDataMap, $par1Str); - var$4 = ju_AbstractList_indexOf(var$3, var$5 === null ? null : var$5.$value0); - if (var$4 >= 0) - ju_ArrayList_remove(var$3, var$4); - } - ju_HashMap_putImpl($this.$loadedDataMap, $par1Str, $par2WorldSavedData); - ju_ArrayList_add($this.$loadedDataList, $par2WorldSavedData); -} -function nms_MapStorage_getUniqueDataId($this, $par1Str) { - var $var2, var$3, var$4; - $var2 = $this.$idCounts; - if ($par1Str !== null) { - var$3 = jl_String_hashCode($par1Str); - $var2 = ju_HashMap_findNonNullKeyEntry($var2, $par1Str, var$3 & ($var2.$elementData.data.length - 1 | 0), var$3); - } else { - $var2 = $var2.$elementData.data[0]; - while ($var2 !== null && $var2.$key !== null) { - $var2 = $var2.$next1; - } - } - $var2 = $var2 === null ? null : $var2.$value0; - if ($var2 === null) { - $var2 = new jl_Short; - $var2.$value5 = 0; - } else { - var$4 = ($var2.$value5 + 1 | 0) << 16 >> 16; - $var2 = new jl_Short; - $var2.$value5 = var$4; - } - ju_HashMap_putImpl($this.$idCounts, $par1Str, $var2); - return $var2.$value5; -} -$java.nms_INetworkManager = function() { -}; -function nle_WebsocketNetworkManager() { - var a = this; jl_Object.call(a); - a.$netHandler0 = null; - a.$sendBuffer = null; - a.$oldChunkBuffer = null; - a.$readChunks = null; -} -$java.nle_WebsocketNetworkManager__init_0 = function(var_0, var_1, var_2) { - var var_3 = new nle_WebsocketNetworkManager(); - $java.nle_WebsocketNetworkManager__init_(var_3, var_0, var_1, var_2); - return var_3; -}; -$java.nle_WebsocketNetworkManager__init_ = function($this, $uri, $eagler, $netHandler) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$netHandler = $thread.pop();$eagler = $thread.pop();$uri = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $eagler = new ji_ByteArrayOutputStream; - $eagler.$buf1 = $rt_createByteArray(32); - $this.$sendBuffer = $eagler; - $this.$oldChunkBuffer = null; - $this.$readChunks = new ju_LinkedList; - $this.$netHandler0 = $netHandler; - nlea_EaglerAdapterImpl2_$callClinit(); - $ptr = 1; - case 1: - $tmp = nlea_EaglerAdapterImpl2_connectWebSocket($uri); - if ($rt_suspending()) { - break main; - } - $eagler = $tmp; - if (!jl_String_equals($rt_s(2747), $eagler) ? 1 : 0) { - window["minecraftServer"] = $rt_ustr($uri); - return; - } - $eagler = new ji_IOException; - $netHandler = new jl_StringBuilder; - $netHandler.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($netHandler, $netHandler.$length, $rt_s(2748)); - jl_AbstractStringBuilder_insert($netHandler, $netHandler.$length, $uri); - jl_AbstractStringBuilder_insert($netHandler, $netHandler.$length, $rt_s(2749)); - $uri = jl_String__init_0($netHandler.$buffer, 0, $netHandler.$length); - $eagler.$suppressionEnabled = 1; - $eagler.$writableStackTrace = 1; - $eagler.$message = $uri; - $rt_throw($eagler); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $uri, $eagler, $netHandler, $ptr); -}; -function nle_WebsocketNetworkManager_addToSendQueue($this, $var1) { - var $e, $yee, $$je; - a: { - try { - ji_ByteArrayOutputStream_reset($this.$sendBuffer); - nms_Packet_writePacket($var1, ji_DataOutputStream__init_($this.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray($this.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $e = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $yee = new ji_PrintStream; - $yee.$out = new jl_ConsoleOutputStreamStderr; - $var1 = new jl_StringBuilder; - $var1.$buffer = $rt_createCharArray(16); - $yee.$sb = $var1; - $yee.$buffer0 = $rt_createCharArray(32); - $yee.$autoFlush = 0; - $var1 = new jnci_UTF8Charset; - jnc_Charset__init_($var1, $rt_s(2), $rt_createArray(jl_String, 0)); - $yee.$charset = $var1; - jl_System_errCache = $yee; - } - jl_Throwable_printStackTrace0($e, jl_System_errCache); - } -} -$java.nle_WebsocketNetworkManager_wakeThreads = function($this) { - return; -}; -function nle_WebsocketNetworkManager_processReadPackets($this) { - var $pkt, $stream, $cap, var$4, $e2, $packetStream, $b, var$8, var$9, var$10, var$11, var$12, var$13, var$14, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$14 = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$b = $thread.pop();$packetStream = $thread.pop();$e2 = $thread.pop();var$4 = $thread.pop();$cap = $thread.pop();$stream = $thread.pop();$pkt = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $pkt = $this.$readChunks; - $pkt.$firstEntry = null; - $pkt.$lastEntry = null; - $pkt.$size = 0; - $pkt.$modCount0 = $pkt.$modCount0 + 1 | 0; - if ($this.$oldChunkBuffer !== null) { - $pkt = $this.$readChunks; - $stream = $this.$oldChunkBuffer; - $cap = $pkt.$size; - if ($cap < 0) { - $pkt = new jl_IndexOutOfBoundsException; - $pkt.$suppressionEnabled = 1; - $pkt.$writableStackTrace = 1; - $rt_throw($pkt); - } - ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator($pkt, $cap), $stream); - } - while (true) { - nlea_EaglerAdapterImpl2_$callClinit(); - if (nlea_EaglerAdapterImpl2_readPackets.$size ? 0 : 1) - var$4 = null; - else { - $pkt = ju_LinkedList_listIterator(nlea_EaglerAdapterImpl2_readPackets, 0); - $stream = ju_LinkedList$SequentialListIterator_next($pkt); - ju_LinkedList$SequentialListIterator_remove($pkt); - var$4 = $stream; - } - if (var$4 === null) { - if (!($this.$readChunks.$size ? 0 : 1)) { - $cap = 0; - $pkt = $this.$readChunks; - $stream = new ju_LinkedList$SequentialListIterator; - $e2 = $pkt.$firstEntry; - $packetStream = null; - $stream.$this$02 = $pkt; - $stream.$version = $stream.$this$02.$modCount0; - $stream.$nextEntry = $e2; - $stream.$prevEntry = $packetStream; - $stream.$index0 = 0; - while ($stream.$nextEntry === null ? 0 : 1) { - $cap = $cap + ju_LinkedList$SequentialListIterator_next($stream).$limit | 0; - } - $stream = jn_ByteBuffer_allocate($cap); - $pkt = $this.$readChunks; - $packetStream = new ju_LinkedList$SequentialListIterator; - $b = $pkt.$firstEntry; - $e2 = null; - $packetStream.$this$02 = $pkt; - $packetStream.$version = $packetStream.$this$02.$modCount0; - $packetStream.$nextEntry = $b; - $packetStream.$prevEntry = $e2; - $packetStream.$index0 = 0; - while ($packetStream.$nextEntry === null ? 0 : 1) { - $b = ju_LinkedList$SequentialListIterator_next($packetStream); - jn_ByteBuffer_put0($stream, $b.$array, $b.$start + $b.$position | 0, $b.$limit - $b.$position | 0); - } - $stream.$limit = $stream.$position; - $stream.$position = 0; - $stream.$mark = (-1); - $packetStream = new ji_DataInputStream; - $pkt = new $java.nle_WebsocketNetworkManager$ByteBufferDirectInputStream; - $pkt.$buf3 = $stream; - $packetStream.$in = $pkt; - $packetStream.$buff = $rt_createByteArray(8); - a: { - b: while (true) { - if (!($stream.$position >= $stream.$limit ? 0 : 1)) - break a; - $stream.$mark = $stream.$position; - c: { - try { - $pkt = nms_Packet_readPacket($packetStream, 0); - $e2 = $this.$netHandler0; - $ptr = 1; - continue main; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_EOFException) { - break b; - } else if ($$je instanceof ji_IOException) { - } else if ($$je instanceof jl_Throwable) { - $e2 = $$je; - break c; - } else { - throw $$e; - } - } - continue b; - } - if (jl_System_errCache === null) - jl_System_errCache = ji_PrintStream__init_(new jl_ConsoleOutputStreamStderr, 0); - jl_Throwable_printStackTrace0($e2, jl_System_errCache); - } - if ($stream.$mark < 0) { - $pkt = new jn_InvalidMarkException; - $pkt.$suppressionEnabled = 1; - $pkt.$writableStackTrace = 1; - $rt_throw($pkt); - } - $stream.$position = $stream.$mark; - } - if (!($stream.$position >= $stream.$limit ? 0 : 1)) - $this.$oldChunkBuffer = null; - else { - $pkt = new jn_ByteBufferImpl; - var$8 = $stream.$position; - var$9 = $stream.$limit - $stream.$position | 0; - var$4 = $stream.$array; - var$10 = $stream.$limit - $stream.$position | 0; - var$11 = $stream.$direct; - var$12 = $stream.$readOnly; - $pkt.$mark = (-1); - $pkt.$capacity = var$9; - $pkt.$limit = var$9; - $pkt.$order = jn_ByteOrder_BIG_ENDIAN; - $pkt.$start = var$8; - $pkt.$array = var$4; - $pkt.$position = 0; - $pkt.$limit = var$10; - $pkt.$direct = var$11; - $pkt.$readOnly = var$12; - $this.$oldChunkBuffer = $pkt; - } - } - return; - } - var$13 = var$4.data; - $pkt = $this.$readChunks; - var$11 = var$13.length; - $stream = new jn_ByteBufferImpl; - var$14 = 0 + var$11 | 0; - $stream.$mark = (-1); - $stream.$capacity = var$11; - $stream.$limit = var$11; - $stream.$order = jn_ByteOrder_BIG_ENDIAN; - $stream.$start = 0; - $stream.$array = var$4; - $stream.$position = 0; - $stream.$limit = var$14; - $stream.$direct = 0; - $stream.$readOnly = 0; - $cap = $pkt.$size; - if ($cap < 0) - break; - ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator($pkt, $cap), $stream); - } - $pkt = new jl_IndexOutOfBoundsException; - $pkt.$suppressionEnabled = 1; - $pkt.$writableStackTrace = 1; - $rt_throw($pkt); - case 1: - d: { - e: { - f: { - g: { - try { - $pkt.$processPacket($e2); - if ($rt_suspending()) { - break main; - } - break f; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_EOFException) { - break e; - } else if ($$je instanceof ji_IOException) { - } else if ($$je instanceof jl_Throwable) { - $e2 = $$je; - break g; - } else { - throw $$e; - } - } - break f; - } - $pkt = jl_System_errCache; - if ($pkt === null) { - $b = new ji_PrintStream; - $pkt = new jl_ConsoleOutputStreamStderr; - $cap = 0; - ji_PrintStream__init_0($b, $pkt, $cap); - jl_System_errCache = $b; - } - $pkt = jl_System_errCache; - jl_Throwable_printStackTrace0($e2, $pkt); - } - h: while (true) { - if (!($stream.$position >= $stream.$limit ? 0 : 1)) - break d; - $stream.$mark = $stream.$position; - i: { - try { - $pkt = nms_Packet_readPacket($packetStream, 0); - $e2 = $this.$netHandler0; - continue main; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_EOFException) { - break e; - } else if ($$je instanceof ji_IOException) { - } else if ($$je instanceof jl_Throwable) { - $e2 = $$je; - break i; - } else { - throw $$e; - } - } - continue h; - } - $pkt = jl_System_errCache; - if ($pkt === null) { - $b = new ji_PrintStream; - $pkt = new jl_ConsoleOutputStreamStderr; - $cap = 0; - ji_PrintStream__init_0($b, $pkt, $cap); - jl_System_errCache = $b; - } - $pkt = jl_System_errCache; - jl_Throwable_printStackTrace0($e2, $pkt); - } - } - if ($stream.$mark < 0) { - $pkt = new jn_InvalidMarkException; - $pkt.$suppressionEnabled = 1; - $pkt.$writableStackTrace = 1; - $rt_throw($pkt); - } - $stream.$position = $stream.$mark; - } - if (!($stream.$position >= $stream.$limit ? 0 : 1)) - $this.$oldChunkBuffer = null; - else { - $pkt = new jn_ByteBufferImpl; - var$8 = $stream.$position; - var$9 = $stream.$limit - $stream.$position | 0; - var$4 = $stream.$array; - var$10 = $stream.$limit - $stream.$position | 0; - var$11 = $stream.$direct; - var$12 = $stream.$readOnly; - $pkt.$mark = (-1); - $pkt.$capacity = var$9; - $pkt.$limit = var$9; - $pkt.$order = jn_ByteOrder_BIG_ENDIAN; - $pkt.$start = var$8; - $pkt.$array = var$4; - $pkt.$position = 0; - $pkt.$limit = var$10; - $pkt.$direct = var$11; - $pkt.$readOnly = var$12; - $this.$oldChunkBuffer = $pkt; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $pkt, $stream, $cap, var$4, $e2, $packetStream, $b, var$8, var$9, var$10, var$11, var$12, var$13, var$14, $ptr); -} -function nle_WebsocketNetworkManager_serverShutdown($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - if (nlea_EaglerAdapterImpl2_sock !== null && !nlea_EaglerAdapterImpl2_sockIsConnecting ? 1 : 0) { - if (nlea_EaglerAdapterImpl2_sock !== null && !nlea_EaglerAdapterImpl2_sockIsConnecting) - nlea_EaglerAdapterImpl2_sock.close(); - window["minecraftServer"] = "null"; - } -} -$java.nle_WebsocketNetworkManager_networkShutdown = function($this, $var1, $var2) { - nlea_EaglerAdapterImpl2_$callClinit(); - if (nlea_EaglerAdapterImpl2_sock !== null && !nlea_EaglerAdapterImpl2_sockIsConnecting ? 1 : 0) { - if (nlea_EaglerAdapterImpl2_sock !== null && !nlea_EaglerAdapterImpl2_sockIsConnecting) - nlea_EaglerAdapterImpl2_sock.close(); - window["minecraftServer"] = "null"; - } -}; -$java.ju_DuplicateFormatFlagsException = function() { - ju_IllegalFormatException.call(this); - this.$flags5 = null; -}; -function jl_Boolean() { - jl_Object.call(this); - this.$value12 = 0; -} -$java.jl_Boolean_TRUE = null; -$java.jl_Boolean_FALSE = null; -$java.jl_Boolean_TYPE = null; -function jl_Boolean__clinit_() { - var var$1; - var$1 = new jl_Boolean; - var$1.$value12 = 1; - $java.jl_Boolean_TRUE = var$1; - var$1 = new jl_Boolean; - var$1.$value12 = 0; - $java.jl_Boolean_FALSE = var$1; - $java.jl_Boolean_TYPE = $rt_cls($rt_booleancls()); -} -$java.ju_IllegalFormatPrecisionException = function() { - ju_IllegalFormatException.call(this); - this.$precision2 = 0; -}; -$java.ju_IllegalFormatCodePointException = function() { - ju_IllegalFormatException.call(this); - this.$codePoint = 0; -}; -$java.ju_IllegalFormatConversionException = function() { - var a = this; ju_IllegalFormatException.call(a); - a.$conversion1 = 0; - a.$argumentClass = null; -}; -$java.ju_IllegalFormatConversionException__init_ = function(var_0, var_1) { - var var_2 = new $java.ju_IllegalFormatConversionException(); - $java.ju_IllegalFormatConversionException__init_0(var_2, var_0, var_1); - return var_2; -}; -$java.ju_IllegalFormatConversionException__init_0 = function($this, $conversion, $argumentClass) { - var var$3, var$4, var$5, var$6, var$7; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(2702)); - var$4 = var$3.$length; - if ($argumentClass === null) - var$5 = $rt_s(47); - else { - var$6 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$6, 16); - var$7 = jl_Class_getClass($argumentClass.constructor); - if (var$7.$name === null) - var$7.$name = $rt_str(var$7.$platformClass.$meta.name); - var$5 = var$7.$name; - jl_StringBuilder_insert14(var$6, var$6.$length, var$5); - jl_StringBuilder_insert14(var$6, var$6.$length, $rt_s(1)); - var$5 = otci_IntegerUtil_toUnsignedLogRadixString(jl_Object_identity($argumentClass), 4); - jl_StringBuilder_insert14(var$6, var$6.$length, var$5); - var$5 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - } - jl_AbstractStringBuilder_insert(var$3, var$4, var$5); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(2703)); - var$4 = var$3.$length; - jl_AbstractStringBuilder_insertSpace(var$3, var$4, var$4 + 1 | 0); - var$3.$buffer.data[var$4] = $conversion; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(2704)); - var$5 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; - $this.$message = var$5; - $this.$conversion1 = $conversion; - $this.$argumentClass = $argumentClass; -}; -$java.ju_Formattable = function() { -}; -$java.ju_FormatFlagsConversionMismatchException = function() { - var a = this; ju_IllegalFormatException.call(a); - a.$flags3 = null; - a.$conversion = 0; -}; -$java.ju_IllegalFormatFlagsException = function() { - ju_IllegalFormatException.call(this); - this.$flags4 = null; -}; -$java.ju_MissingFormatWidthException = function() { - ju_IllegalFormatException.call(this); - this.$formatSpecifier = null; -}; -$java.nms_IEnchantmentModifier = function() { -}; -function nms_EnchantmentModifierDamage() { - var a = this; jl_Object.call(a); - a.$damageModifier = 0; - a.$source0 = null; -} -$java.nms_EnchantmentModifierDamage__init_ = function() { - var var_0 = new nms_EnchantmentModifierDamage(); - nms_EnchantmentModifierDamage__init_(var_0); - return var_0; -}; -function nms_EnchantmentModifierDamage__init_($this) { - return; -} -$java.nms_EnchantmentModifierDamage_calculateModifier = function($this, $par1Enchantment, $par2) { - $this.$damageModifier = $this.$damageModifier + $par1Enchantment.$calcModifierDamage($par2, $this.$source0) | 0; -}; -function nms_EnchantmentModifierLiving() { - var a = this; jl_Object.call(a); - a.$livingModifier = 0; - a.$entityLiving = null; -} -$java.nms_EnchantmentModifierLiving__init_ = function() { - var var_0 = new nms_EnchantmentModifierLiving(); - nms_EnchantmentModifierLiving__init_(var_0); - return var_0; -}; -function nms_EnchantmentModifierLiving__init_($this) { - return; -} -$java.nms_EnchantmentModifierLiving_calculateModifier = function($this, $par1Enchantment, $par2) { - $this.$livingModifier = $this.$livingModifier + $par1Enchantment.$calcModifierLiving($par2, $this.$entityLiving) | 0; -}; -$java.otjw_WebSocket = function() { - jl_Object.call(this); -}; -function nlea_EaglerAdapterImpl2$12() { - jl_Object.call(this); - this.$val$cb0 = null; -} -$java.nlea_EaglerAdapterImpl2$12_handleEvent = function($this, $evt) { - var var$2; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_sockIsConnecting = 0; - var$2 = nlea_EaglerAdapterImpl2_readPackets; - var$2.$firstEntry = null; - var$2.$lastEntry = null; - var$2.$size = 0; - var$2.$modCount0 = var$2.$modCount0 + 1 | 0; - $this.$val$cb0.$realAsyncCallback.$complete($rt_s(2750)); -}; -$java.nlea_EaglerAdapterImpl2$12_handleEvent0 = function($this, var$1) { - var var$2; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_sockIsConnecting = 0; - var$2 = nlea_EaglerAdapterImpl2_readPackets; - var$2.$firstEntry = null; - var$2.$lastEntry = null; - var$2.$size = 0; - var$2.$modCount0 = var$2.$modCount0 + 1 | 0; - $this.$val$cb0.$realAsyncCallback.$complete($rt_s(2750)); -}; -$java.nlea_EaglerAdapterImpl2$12_handleEvent$exported$0 = function(var$0, var$1) { - var var$2; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_sockIsConnecting = 0; - var$2 = nlea_EaglerAdapterImpl2_readPackets; - var$2.$firstEntry = null; - var$2.$lastEntry = null; - var$2.$size = 0; - var$2.$modCount0 = var$2.$modCount0 + 1 | 0; - var$0.$val$cb0.$realAsyncCallback.$complete($rt_s(2750)); -}; -function nlea_EaglerAdapterImpl2$13() { - jl_Object.call(this); - this.$val$cb1 = null; -} -$java.nlea_EaglerAdapterImpl2$13_handleEvent = function($this, $evt) { - var var$2, $b; - $evt = null; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_sock = $evt; - var$2 = nlea_EaglerAdapterImpl2_readPackets; - var$2.$firstEntry = null; - var$2.$lastEntry = null; - var$2.$size = 0; - var$2.$modCount0 = var$2.$modCount0 + 1 | 0; - $b = nlea_EaglerAdapterImpl2_sockIsConnecting; - nlea_EaglerAdapterImpl2_sockIsConnecting = 0; - if ($b) - $this.$val$cb1.$realAsyncCallback.$complete($rt_s(2747)); -}; -$java.nlea_EaglerAdapterImpl2$13_handleEvent0 = function($this, var$1) { - var var$2, var$3; - var$1 = null; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_sock = var$1; - var$2 = nlea_EaglerAdapterImpl2_readPackets; - var$2.$firstEntry = null; - var$2.$lastEntry = null; - var$2.$size = 0; - var$2.$modCount0 = var$2.$modCount0 + 1 | 0; - var$3 = nlea_EaglerAdapterImpl2_sockIsConnecting; - nlea_EaglerAdapterImpl2_sockIsConnecting = 0; - if (var$3) - $this.$val$cb1.$realAsyncCallback.$complete($rt_s(2747)); -}; -$java.nlea_EaglerAdapterImpl2$13_handleEvent$exported$0 = function(var$0, var$1) { - var var$2, var$3; - var$1 = null; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_sock = var$1; - var$2 = nlea_EaglerAdapterImpl2_readPackets; - var$2.$firstEntry = null; - var$2.$lastEntry = null; - var$2.$size = 0; - var$2.$modCount0 = var$2.$modCount0 + 1 | 0; - var$3 = nlea_EaglerAdapterImpl2_sockIsConnecting; - nlea_EaglerAdapterImpl2_sockIsConnecting = 0; - if (var$3) - var$0.$val$cb1.$realAsyncCallback.$complete($rt_s(2747)); -}; -function nlea_EaglerAdapterImpl2$14() { - jl_Object.call(this); -} -$java.nlea_EaglerAdapterImpl2$14__init_ = function() { - var var_0 = new nlea_EaglerAdapterImpl2$14(); - nlea_EaglerAdapterImpl2$14__init_(var_0); - return var_0; -}; -function nlea_EaglerAdapterImpl2$14__init_($this) { - return; -} -$java.nlea_EaglerAdapterImpl2$14_handleEvent = function($this, $evt) { - var $a, $b, var$4, $i, var$6; - $a = new Uint8Array($evt.data); - $b = $rt_createByteArray($a.byteLength); - var$4 = $b.data; - $i = 0; - var$6 = var$4.length; - while ($i < var$6) { - var$4[$i] = ($a[$i] & 255) << 24 >> 24; - $i = $i + 1 | 0; - } - nlea_EaglerAdapterImpl2_$callClinit(); - $evt = nlea_EaglerAdapterImpl2_readPackets; - $i = $evt.$size; - if ($i >= 0) { - ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator($evt, $i), $b); - return; - } - $evt = new jl_IndexOutOfBoundsException; - $evt.$suppressionEnabled = 1; - $evt.$writableStackTrace = 1; - $rt_throw($evt); -}; -$java.nlea_EaglerAdapterImpl2$14_handleEvent0 = function($this, var$1) { - $java.nlea_EaglerAdapterImpl2$14_handleEvent($this, var$1); -}; -$java.nlea_EaglerAdapterImpl2$14_handleEvent$exported$0 = function(var$0, var$1) { - $java.nlea_EaglerAdapterImpl2$14_handleEvent(var$0, var$1); -}; -function ju_AbstractMap$KeySet() { - ju_AbstractSet.call(this); - this.$this$03 = null; -} -$java.ju_AbstractMap$KeySet_iterator = function($this) { - var var$1, $iter; - var$1 = ju_TreeMap_entrySet($this.$this$03); - $iter = var$1.$reverse0 ? $java.ju_TreeMap$EntrySet_descendingIterator(var$1) : $java.ju_TreeMap$EntrySet_ascendingIterator(var$1); - var$1 = new $java.ju_AbstractMap$KeySet$1; - var$1.$this$1 = $this; - var$1.$val$iter = $iter; - return var$1; -}; -$java.ju_AbstractMap$KeySet_size = function($this) { - var var$1; - var$1 = $this.$this$03; - return var$1.$root === null ? 0 : var$1.$root.$size4; -}; -function nms_EnumOptionsHelper() { - jl_Object.call(this); -} -var nms_EnumOptionsHelper_enumOptionsMappingHelperArray = null; -function nms_EnumOptionsHelper_$callClinit() { - nms_EnumOptionsHelper_$callClinit = $rt_eraseClinit(nms_EnumOptionsHelper); - $java.nms_EnumOptionsHelper__clinit_(); -} -$java.nms_EnumOptionsHelper__init_ = function() { - var var_0 = new nms_EnumOptionsHelper(); - nms_EnumOptionsHelper__init_(var_0); - return var_0; -}; -function nms_EnumOptionsHelper__init_($this) { - nms_EnumOptionsHelper_$callClinit(); -} -$java.nms_EnumOptionsHelper__clinit_ = function() { - var $$je; - nms_EnumOptionsHelper_enumOptionsMappingHelperArray = $rt_createIntArray(nms_EnumOptions_$VALUES.$clone().data.length); - a: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_INVERT_MOUSE)] = 1; - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - b: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_VIEW_BOBBING)] = 2; - break b; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - c: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_ANAGLYPH)] = 3; - break c; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - d: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_RENDER_CLOUDS)] = 5; - break d; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - e: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_CHAT_COLOR)] = 6; - break e; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - f: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_CHAT_LINKS)] = 7; - break f; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - g: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_CHAT_LINKS_PROMPT)] = 8; - break g; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - h: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_USE_SERVER_TEXTURES)] = 9; - break h; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - i: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_SNOOPER_ENABLED)] = 10; - break i; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - j: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_USE_FULLSCREEN)] = 11; - break j; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - k: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_ENABLE_VSYNC)] = 12; - break k; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - l: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_SHOW_CAPE)] = 13; - break l; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - m: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_ANTIALIASING)] = 14; - break m; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } - n: { - try { - nms_EnumOptionsHelper_enumOptionsMappingHelperArray.data[jl_Enum_ordinal(nms_EnumOptions_ENABLE_FOG)] = 15; - break n; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NoSuchFieldError) { - } else { - throw $$e; - } - } - } -}; -function nms_EnumSkyBlock() { - jl_Enum.call(this); - this.$defaultLightValue = 0; -} -var nms_EnumSkyBlock_Sky = null; -var nms_EnumSkyBlock_Block = null; -$java.nms_EnumSkyBlock_$VALUES = null; -function nms_EnumSkyBlock__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumSkyBlock; - var$1.$name2 = $rt_s(2469); - var$1.$ordinal = 0; - var$1.$defaultLightValue = 15; - nms_EnumSkyBlock_Sky = var$1; - var$1 = new nms_EnumSkyBlock; - var$1.$name2 = $rt_s(2751); - var$1.$ordinal = 1; - var$1.$defaultLightValue = 0; - nms_EnumSkyBlock_Block = var$1; - var$2 = $rt_createArray(nms_EnumSkyBlock, 2); - var$3 = var$2.data; - var$3[0] = nms_EnumSkyBlock_Sky; - var$3[1] = nms_EnumSkyBlock_Block; - $java.nms_EnumSkyBlock_$VALUES = var$2; -} -$java.jur_Matcher$1 = function() { - var a = this; jl_Object.call(a); - a.$grN = 0; - a.$val$gr = 0; - a.$this$045 = null; -}; -$java.jur_Matcher$1__init_ = function(var_0, var_1) { - var var_2 = new $java.jur_Matcher$1(); - $java.jur_Matcher$1__init_0(var_2, var_0, var_1); - return var_2; -}; -$java.jur_Matcher$1__init_0 = function($this, $this$0, var$2) { - $this.$this$045 = $this$0; - $this.$val$gr = var$2; - $this.$grN = $this.$val$gr; -}; -$java.jur_Matcher$1_toString = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6; - var$1 = $this.$this$045; - var$2 = $this.$grN; - var$1 = var$1.$matchResult; - jur_MatchResultImpl_checkGroup(var$1, var$2); - var$3 = var$1.$groupBounds.data; - var$4 = var$2 * 2 | 0; - if (var$3[var$4] < 0) - var$1 = null; - else { - var$5 = var$1.$string4; - jur_MatchResultImpl_checkGroup(var$1, var$2); - var$6 = var$1.$groupBounds.data[var$4]; - jur_MatchResultImpl_checkGroup(var$1, var$2); - var$4 = var$1.$groupBounds.data[var$4 + 1 | 0]; - if (var$6 > var$4) { - var$1 = new jl_IndexOutOfBoundsException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace(var$1); - $rt_throw(var$1); - } - var$1 = jl_String__init_0(var$5.$characters, var$6, var$4 - var$6 | 0); - } - return var$1; -}; -$java.ju_AbstractMap$KeySet$1 = function() { - var a = this; jl_Object.call(a); - a.$val$iter = null; - a.$this$1 = null; -}; -$java.ju_AbstractMap$KeySet$1_hasNext = function($this) { - return $this.$val$iter.$depth <= 0 ? 0 : 1; -}; -$java.ju_AbstractMap$KeySet$1_next = function($this) { - return $java.ju_TreeMap$EntryIterator_next($this.$val$iter).$key0; -}; -$java.ju_AbstractMap$KeySet$1_remove = function($this) { - $java.ju_TreeMap$EntryIterator_remove($this.$val$iter); -}; -function nms_ModelEnderCrystal() { - var a = this; nms_ModelBase.call(a); - a.$cube = null; - a.$glass = null; - a.$base = null; -} -function nms_ModelEnderCrystal__init_(var_0, var_1) { - var var_2 = new nms_ModelEnderCrystal(); - $java.nms_ModelEnderCrystal__init_(var_2, var_0, var_1); - return var_2; -} -$java.nms_ModelEnderCrystal__init_ = function($this, $par1, $par2) { - var var$3; - nms_ModelBase__init_0($this); - $this.$glass = nms_ModelRenderer__init_($this, $rt_s(1610)); - var$3 = $this.$glass; - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 0; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-4.0), (-4.0), (-4.0), 8, 8, 8, 0.0)); - $this.$cube = nms_ModelRenderer__init_($this, $rt_s(2752)); - var$3 = $this.$cube; - var$3.$textureOffsetX0 = 32; - var$3.$textureOffsetY0 = 0; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-4.0), (-4.0), (-4.0), 8, 8, 8, 0.0)); - if ($par2) { - $this.$base = nms_ModelRenderer__init_($this, $rt_s(2753)); - var$3 = $this.$base; - var$3.$textureOffsetX0 = 0; - var$3.$textureOffsetY0 = 16; - ju_ArrayList_add(var$3.$cubeList, nms_ModelBox__init_(var$3, var$3.$textureOffsetX0, var$3.$textureOffsetY0, (-6.0), 0.0, (-6.0), 12, 4, 12, 0.0)); - } -}; -function nms_ModelEnderCrystal_render($this, $par1Entity, $par2, $par3, $par4, $par5, $par6, $par7) { - var var$8, var$9, var$10; - nleg_EaglerAdapterGL30_glPushMatrix(); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 2.0; - $par1Entity.$y = 2.0; - $par1Entity.$z = 2.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$9 = jl_System_errCache; - var$8 = var$9.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$10 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$10, var$10 + 1 | 0); - var$8.$buffer.data[var$10] = 10; - ji_PrintStream_printSB(var$9); - } - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = (-0.5); - $par1Entity.$z = 0.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$9 = jl_System_errCache; - var$8 = var$9.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$10 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$10, var$10 + 1 | 0); - var$8.$buffer.data[var$10] = 10; - ji_PrintStream_printSB(var$9); - } - if ($this.$base !== null) - nms_ModelRenderer_render($this.$base, $par7); - nleg_EaglerAdapterGL30_glRotatef($par3, 0.0, 1.0, 0.0); - $par4 = 0.800000011920929 + $par4; - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.0; - $par1Entity.$y = $par4; - $par1Entity.$z = 0.0; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - $par1Entity.$buffer = $rt_createCharArray(16); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - $par1Entity = new jnci_UTF8Charset; - jnc_Charset__init_($par1Entity, $rt_s(2), $rt_createArray(jl_String, 0)); - var$8.$charset = $par1Entity; - jl_System_errCache = var$8; - } - var$9 = jl_System_errCache; - var$8 = var$9.$sb; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(220)); - var$10 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$10, var$10 + 1 | 0); - var$8.$buffer.data[var$10] = 10; - ji_PrintStream_printSB(var$9); - } - nleg_EaglerAdapterGL30_glRotatef(60.0, 0.707099974155426, 0.0, 0.707099974155426); - nms_ModelRenderer_render($this.$glass, $par7); - $par1Entity = nleg_EaglerAdapterGL30_deevis; - $par1Entity.$x = 0.875; - $par1Entity.$y = 0.875; - $par1Entity.$z = 0.875; - $par1Entity = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $par1Entity, $par1Entity); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$8 = new ji_PrintStream; - var$8.$out = new jl_ConsoleOutputStreamStderr; - $par1Entity = new jl_StringBuilder; - jl_AbstractStringBuilder__init_($par1Entity); - var$8.$sb = $par1Entity; - var$8.$buffer0 = $rt_createCharArray(32); - var$8.$autoFlush = 0; - var$8.$charset = jnci_UTF8Charset__init_0(); - jl_System_errCache = var$8; - } - ji_PrintStream_println0(jl_System_errCache, $rt_s(220)); - } - nleg_EaglerAdapterGL30_glRotatef(60.0, 0.707099974155426, 0.0, 0.707099974155426); - nleg_EaglerAdapterGL30_glRotatef($par3, 0.0, 1.0, 0.0); - nms_ModelRenderer_render($this.$glass, $par7); - nleg_EaglerAdapterGL30_glScalef(0.875, 0.875, 0.875); - nleg_EaglerAdapterGL30_glRotatef(60.0, 0.707099974155426, 0.0, 0.707099974155426); - nleg_EaglerAdapterGL30_glRotatef($par3, 0.0, 1.0, 0.0); - nms_ModelRenderer_render($this.$cube, $par7); - nleg_EaglerAdapterGL30_glPopMatrix(); -} -function nms_EnumArt() { - var a = this; jl_Enum.call(a); - a.$title = null; - a.$sizeX = 0; - a.$sizeY = 0; - a.$offsetX = 0; - a.$offsetY = 0; -} -$java.nms_EnumArt_Kebab = null; -$java.nms_EnumArt_Aztec = null; -$java.nms_EnumArt_Alban = null; -$java.nms_EnumArt_Aztec2 = null; -$java.nms_EnumArt_Bomb = null; -$java.nms_EnumArt_Plant = null; -$java.nms_EnumArt_Wasteland = null; -$java.nms_EnumArt_Pool = null; -$java.nms_EnumArt_Courbet = null; -$java.nms_EnumArt_Sea = null; -$java.nms_EnumArt_Sunset = null; -$java.nms_EnumArt_Creebet = null; -$java.nms_EnumArt_Wanderer = null; -$java.nms_EnumArt_Graham = null; -$java.nms_EnumArt_Match = null; -$java.nms_EnumArt_Bust = null; -$java.nms_EnumArt_Stage = null; -$java.nms_EnumArt_Void = null; -$java.nms_EnumArt_SkullAndRoses = null; -$java.nms_EnumArt_Wither = null; -$java.nms_EnumArt_Fighters = null; -$java.nms_EnumArt_Pointer = null; -$java.nms_EnumArt_Pigscene = null; -$java.nms_EnumArt_BurningSkull = null; -$java.nms_EnumArt_Skeleton = null; -$java.nms_EnumArt_DonkeyKong = null; -$java.nms_EnumArt_maxArtTitleLength = 0; -var nms_EnumArt_$VALUES = null; -$java.nms_EnumArt__init_ = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EnumArt(); - $java.nms_EnumArt__init_0(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -}; -$java.nms_EnumArt__init_0 = function($this, var$1, var$2, $par3Str, $par4, $par5, $par6, $par7) { - $this.$name2 = var$1; - $this.$ordinal = var$2; - $this.$title = $par3Str; - $this.$sizeX = $par4; - $this.$sizeY = $par5; - $this.$offsetX = $par6; - $this.$offsetY = $par7; -}; -function nms_EnumArt__clinit_() { - var var$1, var$2; - $java.nms_EnumArt_Kebab = $java.nms_EnumArt__init_($rt_s(2754), 0, $rt_s(2754), 16, 16, 0, 0); - $java.nms_EnumArt_Aztec = $java.nms_EnumArt__init_($rt_s(2755), 1, $rt_s(2755), 16, 16, 16, 0); - $java.nms_EnumArt_Alban = $java.nms_EnumArt__init_($rt_s(2756), 2, $rt_s(2756), 16, 16, 32, 0); - $java.nms_EnumArt_Aztec2 = $java.nms_EnumArt__init_($rt_s(2757), 3, $rt_s(2757), 16, 16, 48, 0); - $java.nms_EnumArt_Bomb = $java.nms_EnumArt__init_($rt_s(2758), 4, $rt_s(2758), 16, 16, 64, 0); - $java.nms_EnumArt_Plant = $java.nms_EnumArt__init_($rt_s(2759), 5, $rt_s(2759), 16, 16, 80, 0); - $java.nms_EnumArt_Wasteland = $java.nms_EnumArt__init_($rt_s(2760), 6, $rt_s(2760), 16, 16, 96, 0); - $java.nms_EnumArt_Pool = $java.nms_EnumArt__init_($rt_s(2761), 7, $rt_s(2761), 32, 16, 0, 32); - $java.nms_EnumArt_Courbet = $java.nms_EnumArt__init_($rt_s(2762), 8, $rt_s(2762), 32, 16, 32, 32); - $java.nms_EnumArt_Sea = $java.nms_EnumArt__init_($rt_s(2763), 9, $rt_s(2763), 32, 16, 64, 32); - $java.nms_EnumArt_Sunset = $java.nms_EnumArt__init_($rt_s(2764), 10, $rt_s(2764), 32, 16, 96, 32); - $java.nms_EnumArt_Creebet = $java.nms_EnumArt__init_($rt_s(2765), 11, $rt_s(2765), 32, 16, 128, 32); - $java.nms_EnumArt_Wanderer = $java.nms_EnumArt__init_($rt_s(2766), 12, $rt_s(2766), 16, 32, 0, 64); - $java.nms_EnumArt_Graham = $java.nms_EnumArt__init_($rt_s(2767), 13, $rt_s(2767), 16, 32, 16, 64); - $java.nms_EnumArt_Match = $java.nms_EnumArt__init_($rt_s(2768), 14, $rt_s(2768), 32, 32, 0, 128); - $java.nms_EnumArt_Bust = $java.nms_EnumArt__init_($rt_s(2769), 15, $rt_s(2769), 32, 32, 32, 128); - $java.nms_EnumArt_Stage = $java.nms_EnumArt__init_($rt_s(2770), 16, $rt_s(2770), 32, 32, 64, 128); - $java.nms_EnumArt_Void = $java.nms_EnumArt__init_($rt_s(2771), 17, $rt_s(2771), 32, 32, 96, 128); - $java.nms_EnumArt_SkullAndRoses = $java.nms_EnumArt__init_($rt_s(2772), 18, $rt_s(2772), 32, 32, 128, 128); - $java.nms_EnumArt_Wither = $java.nms_EnumArt__init_($rt_s(2773), 19, $rt_s(2773), 32, 32, 160, 128); - $java.nms_EnumArt_Fighters = $java.nms_EnumArt__init_($rt_s(2774), 20, $rt_s(2774), 64, 32, 0, 96); - $java.nms_EnumArt_Pointer = $java.nms_EnumArt__init_($rt_s(2775), 21, $rt_s(2775), 64, 64, 0, 192); - $java.nms_EnumArt_Pigscene = $java.nms_EnumArt__init_($rt_s(2776), 22, $rt_s(2776), 64, 64, 64, 192); - $java.nms_EnumArt_BurningSkull = $java.nms_EnumArt__init_($rt_s(2777), 23, $rt_s(2777), 64, 64, 128, 192); - $java.nms_EnumArt_Skeleton = $java.nms_EnumArt__init_($rt_s(463), 24, $rt_s(463), 64, 48, 192, 64); - $java.nms_EnumArt_DonkeyKong = $java.nms_EnumArt__init_($rt_s(2778), 25, $rt_s(2778), 64, 48, 192, 112); - var$1 = $rt_createArray(nms_EnumArt, 26); - var$2 = var$1.data; - var$2[0] = $java.nms_EnumArt_Kebab; - var$2[1] = $java.nms_EnumArt_Aztec; - var$2[2] = $java.nms_EnumArt_Alban; - var$2[3] = $java.nms_EnumArt_Aztec2; - var$2[4] = $java.nms_EnumArt_Bomb; - var$2[5] = $java.nms_EnumArt_Plant; - var$2[6] = $java.nms_EnumArt_Wasteland; - var$2[7] = $java.nms_EnumArt_Pool; - var$2[8] = $java.nms_EnumArt_Courbet; - var$2[9] = $java.nms_EnumArt_Sea; - var$2[10] = $java.nms_EnumArt_Sunset; - var$2[11] = $java.nms_EnumArt_Creebet; - var$2[12] = $java.nms_EnumArt_Wanderer; - var$2[13] = $java.nms_EnumArt_Graham; - var$2[14] = $java.nms_EnumArt_Match; - var$2[15] = $java.nms_EnumArt_Bust; - var$2[16] = $java.nms_EnumArt_Stage; - var$2[17] = $java.nms_EnumArt_Void; - var$2[18] = $java.nms_EnumArt_SkullAndRoses; - var$2[19] = $java.nms_EnumArt_Wither; - var$2[20] = $java.nms_EnumArt_Fighters; - var$2[21] = $java.nms_EnumArt_Pointer; - var$2[22] = $java.nms_EnumArt_Pigscene; - var$2[23] = $java.nms_EnumArt_BurningSkull; - var$2[24] = $java.nms_EnumArt_Skeleton; - var$2[25] = $java.nms_EnumArt_DonkeyKong; - nms_EnumArt_$VALUES = var$1; - $java.nms_EnumArt_maxArtTitleLength = jl_String_length($rt_s(2772)); -} -$java.nle_WebsocketNetworkManager$ByteBufferDirectInputStream = function() { - ji_InputStream.call(this); - this.$buf3 = null; -}; -$java.nle_WebsocketNetworkManager$ByteBufferDirectInputStream_read = function($this) { - var var$1; - var$1 = $this.$buf3; - return (var$1.$limit - var$1.$position | 0) <= 0 ? (-1) : jn_ByteBufferImpl_get($this.$buf3) & 255; -}; -$java.nle_WebsocketNetworkManager$ByteBufferDirectInputStream_available = function($this) { - var var$1; - var$1 = $this.$buf3; - return var$1.$limit - var$1.$position | 0; -}; -function nms_PacketCount() { - jl_Object.call(this); -} -$java.nms_PacketCount_allowCounting = 0; -$java.nms_PacketCount_packetCountForID = null; -$java.nms_PacketCount_sizeCountForID = null; -$java.nms_PacketCount_lock = null; -$java.nms_PacketCount__init_ = function() { - var var_0 = new nms_PacketCount(); - nms_PacketCount__init_(var_0); - return var_0; -}; -function nms_PacketCount__init_($this) { - return; -} -function nms_PacketCount_countPacket($par0, $par1) { - var var$3, var$4, $$je; - a: { - b: { - if ($java.nms_PacketCount_allowCounting) { - var$3 = $java.nms_PacketCount_lock; - jl_Object_monitorEnterSync(var$3); - c: { - try { - if (!ju_HashMap_containsKey($java.nms_PacketCount_packetCountForID, jl_Integer_valueOf($par0))) { - ju_HashMap_put($java.nms_PacketCount_packetCountForID, jl_Integer_valueOf($par0), jl_Long_valueOf(Long_fromInt(1))); - ju_HashMap_put($java.nms_PacketCount_sizeCountForID, jl_Integer_valueOf($par0), jl_Long_valueOf($par1)); - break c; - } - ju_HashMap_put($java.nms_PacketCount_packetCountForID, jl_Integer_valueOf($par0), jl_Long_valueOf(Long_add(jl_Long_longValue(ju_HashMap_get($java.nms_PacketCount_packetCountForID, jl_Integer_valueOf($par0))), Long_fromInt(1)))); - ju_HashMap_put($java.nms_PacketCount_sizeCountForID, jl_Integer_valueOf($par0), jl_Long_valueOf(Long_add(jl_Long_longValue(ju_HashMap_get($java.nms_PacketCount_sizeCountForID, jl_Integer_valueOf($par0))), $par1))); - break c; - } catch ($$e) { - $$je = $rt_wrapException($$e); - var$4 = $$je; - break a; - - } - } - try { - jl_Object_monitorExitSync(var$3); - break b; - } catch ($$e) { - $$je = $rt_wrapException($$e); - var$4 = $$je; - break a; - - } - } - } - return; - } - jl_Object_monitorExitSync(var$3); - $rt_throw(var$4); -} -function nms_PacketCount__clinit_() { - $java.nms_PacketCount_allowCounting = 1; - $java.nms_PacketCount_packetCountForID = ju_HashMap__init_1(16, 0.75); - $java.nms_PacketCount_sizeCountForID = ju_HashMap__init_1(16, 0.75); - $java.nms_PacketCount_lock = new jl_Object; -} -function ju_TreeMap$EntrySet() { - var a = this; ju_AbstractSet.call(a); - a.$modCount4 = 0; - a.$owner0 = null; - a.$from = null; - a.$fromIncluded = 0; - a.$fromChecked = 0; - a.$to = null; - a.$toIncluded = 0; - a.$toChecked = 0; - a.$reverse0 = 0; -} -$java.ju_TreeMap$EntrySet_iterator = function($this) { - return $this.$reverse0 ? $java.ju_TreeMap$EntrySet_descendingIterator($this) : $java.ju_TreeMap$EntrySet_ascendingIterator($this); -}; -$java.ju_TreeMap$EntrySet_ascendingIterator = function($this) { - var $fromPath, var$2, $toEntry, var$4; - $fromPath = !$this.$fromChecked ? ju_TreeMap_pathToFirst($this.$owner0, 0) : !$this.$fromIncluded ? ju_TreeMap_pathToNext($this.$owner0, $this.$from, 0) : ju_TreeMap_pathToExactOrNext($this.$owner0, $this.$from, 0); - if (!$this.$toChecked) { - var$2 = $this.$owner0.$root; - $toEntry = null; - while (var$2 !== null) { - var$4 = var$2.$right; - $toEntry = var$2; - var$2 = var$4; - } - } else - $toEntry = !$this.$toIncluded ? ju_TreeMap_findNext($this.$owner0, $this.$to, 1) : ju_TreeMap_findExactOrNext($this.$owner0, $this.$to, 1); - return $java.ju_TreeMap$EntryIterator__init_($this.$owner0, $fromPath, $toEntry, 0); -}; -$java.ju_TreeMap$EntrySet_descendingIterator = function($this) { - var $toPath, var$2, $fromEntry, var$4; - $toPath = !$this.$toChecked ? ju_TreeMap_pathToFirst($this.$owner0, 1) : !$this.$toIncluded ? ju_TreeMap_pathToNext($this.$owner0, $this.$to, 1) : ju_TreeMap_pathToExactOrNext($this.$owner0, $this.$to, 1); - if (!$this.$fromChecked) { - var$2 = $this.$owner0.$root; - $fromEntry = null; - while (var$2 !== null) { - var$4 = var$2.$left0; - $fromEntry = var$2; - var$2 = var$4; - } - } else - $fromEntry = !$this.$fromIncluded ? ju_TreeMap_findNext($this.$owner0, $this.$to, 0) : ju_TreeMap_findExactOrNext($this.$owner0, $this.$to, 0); - return $java.ju_TreeMap$EntryIterator__init_($this.$owner0, $toPath, $fromEntry, 1); -}; -function jl_ReflectiveOperationException() { - jl_Exception.call(this); -} -$java.jl_ReflectiveOperationException__init_ = function() { - var var_0 = new jl_ReflectiveOperationException(); - jl_ReflectiveOperationException__init_(var_0); - return var_0; -}; -function jl_ReflectiveOperationException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jl_InstantiationException() { - jl_ReflectiveOperationException.call(this); -} -$java.jl_InstantiationException__init_ = function() { - var var_0 = new jl_InstantiationException(); - jl_InstantiationException__init_(var_0); - return var_0; -}; -function jl_InstantiationException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -function jn_InvalidMarkException() { - jl_IllegalStateException.call(this); -} -$java.jn_InvalidMarkException__init_ = function() { - var var_0 = new jn_InvalidMarkException(); - jn_InvalidMarkException__init_(var_0); - return var_0; -}; -function jn_InvalidMarkException__init_($this) { - $this.$suppressionEnabled = 1; - $this.$writableStackTrace = 1; -} -$java.jur_IntArrHash = function() { - jl_Object.call(this); -}; -function nms_IEntitySelector() { -} -$java.nms_IEntitySelector_selectAnything = null; -var nms_IEntitySelector_selectInventories = null; -function nms_IEntitySelector__clinit_() { - $java.nms_IEntitySelector_selectAnything = new nms_EntitySelectorAlive; - nms_IEntitySelector_selectInventories = new nms_EntitySelectorInventory; -} -function nms_EntityWitherAttackFilter() { - jl_Object.call(this); -} -$java.nms_EntityWitherAttackFilter__init_ = function() { - var var_0 = new nms_EntityWitherAttackFilter(); - nms_EntityWitherAttackFilter__init_(var_0); - return var_0; -}; -function nms_EntityWitherAttackFilter__init_($this) { - return; -} -$java.nms_EntityWitherAttackFilter_isEntityApplicable = function($this, $par1Entity) { - return $par1Entity instanceof nms_EntityLiving && $par1Entity.$getCreatureAttribute() !== nms_EnumCreatureAttribute_UNDEAD ? 1 : 0; -}; -function nms_WorldType() { - var a = this; jl_Object.call(a); - a.$worldTypeId = 0; - a.$worldType = null; - a.$generatorVersion = 0; - a.$canBeCreated = 0; - a.$isWorldTypeVersioned = 0; -} -$java.nms_WorldType_worldTypes = null; -$java.nms_WorldType_DEFAULT = null; -var nms_WorldType_FLAT = null; -$java.nms_WorldType_LARGE_BIOMES = null; -$java.nms_WorldType_DEFAULT_1_1 = null; -$java.nms_WorldType_getWorldTypeName = function($this) { - return $this.$worldType; -}; -$java.nms_WorldType_parseWorldType = function($par0Str) { - var $var1; - $var1 = 0; - while ($var1 < $java.nms_WorldType_worldTypes.data.length) { - if ($java.nms_WorldType_worldTypes.data[$var1] !== null && jl_String_equalsIgnoreCase($java.nms_WorldType_worldTypes.data[$var1].$worldType, $par0Str)) - return $java.nms_WorldType_worldTypes.data[$var1]; - $var1 = $var1 + 1 | 0; - } - return null; -}; -function nms_WorldType__clinit_() { - var var$1, var$2; - $java.nms_WorldType_worldTypes = $rt_createArray(nms_WorldType, 16); - var$1 = new nms_WorldType; - var$1.$worldType = $rt_s(1759); - var$1.$generatorVersion = 1; - var$1.$canBeCreated = 1; - var$1.$worldTypeId = 0; - $java.nms_WorldType_worldTypes.data[0] = var$1; - var$1.$isWorldTypeVersioned = 1; - $java.nms_WorldType_DEFAULT = var$1; - var$2 = new nms_WorldType; - var$2.$worldType = $rt_s(2779); - var$2.$generatorVersion = 0; - var$2.$canBeCreated = 1; - var$2.$worldTypeId = 1; - $java.nms_WorldType_worldTypes.data[1] = var$2; - nms_WorldType_FLAT = var$2; - var$2 = new nms_WorldType; - var$2.$worldType = $rt_s(2780); - var$2.$generatorVersion = 0; - var$2.$canBeCreated = 1; - var$2.$worldTypeId = 2; - $java.nms_WorldType_worldTypes.data[2] = var$2; - $java.nms_WorldType_LARGE_BIOMES = var$2; - var$2 = new nms_WorldType; - var$2.$worldType = $rt_s(2781); - var$2.$generatorVersion = 0; - var$2.$canBeCreated = 1; - var$2.$worldTypeId = 8; - $java.nms_WorldType_worldTypes.data[8] = var$2; - var$2.$canBeCreated = 0; - $java.nms_WorldType_DEFAULT_1_1 = var$2; -} -function nms_EnumGameType() { - var a = this; jl_Enum.call(a); - a.$id7 = 0; - a.$name14 = null; -} -$java.nms_EnumGameType_NOT_SET = null; -var nms_EnumGameType_SURVIVAL = null; -var nms_EnumGameType_CREATIVE = null; -var nms_EnumGameType_ADVENTURE = null; -$java.nms_EnumGameType_$VALUES = null; -function nms_EnumGameType_configurePlayerCapabilities($this, $par1PlayerCapabilities) { - if ($this === nms_EnumGameType_CREATIVE) { - $par1PlayerCapabilities.$allowFlying = 1; - $par1PlayerCapabilities.$isCreativeMode = 1; - $par1PlayerCapabilities.$disableDamage = 1; - } else { - $par1PlayerCapabilities.$allowFlying = 0; - $par1PlayerCapabilities.$isCreativeMode = 0; - $par1PlayerCapabilities.$disableDamage = 0; - $par1PlayerCapabilities.$isFlying = 0; - } - $par1PlayerCapabilities.$allowEdit = ($this !== nms_EnumGameType_ADVENTURE ? 0 : 1) ? 0 : 1; -} -$java.nms_EnumGameType_isAdventure = function($this) { - return $this !== nms_EnumGameType_ADVENTURE ? 0 : 1; -}; -$java.nms_EnumGameType_isCreative = function($this) { - return $this !== nms_EnumGameType_CREATIVE ? 0 : 1; -}; -$java.nms_EnumGameType_isSurvivalOrAdventure = function($this) { - return $this !== nms_EnumGameType_SURVIVAL && $this !== nms_EnumGameType_ADVENTURE ? 0 : 1; -}; -$java.nms_EnumGameType_getByID = function($par0) { - var $var1, $var2, $var3, $var4; - $var1 = $java.nms_EnumGameType_$VALUES.$clone().data; - $var2 = $var1.length; - $var3 = 0; - while (true) { - if ($var3 >= $var2) - return nms_EnumGameType_SURVIVAL; - $var4 = $var1[$var3]; - if ($var4.$id7 == $par0) - break; - $var3 = $var3 + 1 | 0; - } - return $var4; -}; -function nms_EnumGameType__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumGameType; - var$1.$name2 = $rt_s(2782); - var$1.$ordinal = 0; - var$1.$id7 = (-1); - var$1.$name14 = $rt_s(44); - $java.nms_EnumGameType_NOT_SET = var$1; - var$1 = new nms_EnumGameType; - var$1.$name2 = $rt_s(2783); - var$1.$ordinal = 1; - var$1.$id7 = 0; - var$1.$name14 = $rt_s(2784); - nms_EnumGameType_SURVIVAL = var$1; - var$1 = new nms_EnumGameType; - var$1.$name2 = $rt_s(2785); - var$1.$ordinal = 2; - var$1.$id7 = 1; - var$1.$name14 = $rt_s(2786); - nms_EnumGameType_CREATIVE = var$1; - var$1 = new nms_EnumGameType; - var$1.$name2 = $rt_s(2787); - var$1.$ordinal = 3; - var$1.$id7 = 2; - var$1.$name14 = $rt_s(2788); - nms_EnumGameType_ADVENTURE = var$1; - var$2 = $rt_createArray(nms_EnumGameType, 4); - var$3 = var$2.data; - var$3[0] = $java.nms_EnumGameType_NOT_SET; - var$3[1] = nms_EnumGameType_SURVIVAL; - var$3[2] = nms_EnumGameType_CREATIVE; - var$3[3] = nms_EnumGameType_ADVENTURE; - $java.nms_EnumGameType_$VALUES = var$2; -} -function nms_InventoryCrafting() { - var a = this; jl_Object.call(a); - a.$stackList = null; - a.$inventoryWidth = 0; - a.$eventHandler = null; -} -$java.nms_InventoryCrafting_getSizeInventory = function($this) { - return $this.$stackList.data.length; -}; -$java.nms_InventoryCrafting_getStackInSlot = function($this, $par1) { - return $par1 >= $this.$stackList.data.length ? null : $this.$stackList.data[$par1]; -}; -$java.nms_InventoryCrafting_getStackInRowAndColumn = function($this, $par1, $par2) { - var $var3; - if ($par1 >= 0 && $par1 < $this.$inventoryWidth) { - $var3 = $par1 + $rt_imul($par2, $this.$inventoryWidth) | 0; - return $var3 >= $this.$stackList.data.length ? null : $this.$stackList.data[$var3]; - } - return null; -}; -$java.nms_InventoryCrafting_getStackInSlotOnClosing = function($this, $par1) { - var $var2; - if ($this.$stackList.data[$par1] === null) - return null; - $var2 = $this.$stackList.data[$par1]; - $this.$stackList.data[$par1] = null; - return $var2; -}; -$java.nms_InventoryCrafting_decrStackSize = function($this, $par1, $par2) { - var $var3, $var3_0; - if ($this.$stackList.data[$par1] === null) - return null; - if ($this.$stackList.data[$par1].$stackSize <= $par2) { - $var3 = $this.$stackList.data[$par1]; - $this.$stackList.data[$par1] = null; - $this.$eventHandler.$onCraftMatrixChanged($this); - return $var3; - } - $var3_0 = nms_ItemStack_splitStack($this.$stackList.data[$par1], $par2); - if (!$this.$stackList.data[$par1].$stackSize) - $this.$stackList.data[$par1] = null; - $this.$eventHandler.$onCraftMatrixChanged($this); - return $var3_0; -}; -$java.nms_InventoryCrafting_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - $this.$stackList.data[$par1] = $par2ItemStack; - $this.$eventHandler.$onCraftMatrixChanged($this); -}; -$java.nms_InventoryCrafting_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_InventoryCrafting_onInventoryChanged = function($this) { - return; -}; -function nms_ContainerSheep() { - nms_Container.call(this); - this.$field_90034_a = null; -} -function nms_EntityDragonPart() { - var a = this; nms_Entity.call(a); - a.$entityDragonObj = null; - a.$name9 = null; -} -$java.nms_EntityDragonPart_entityInit = function($this) { - return; -}; -$java.nms_EntityDragonPart_canBeCollidedWith = function($this) { - return 1; -}; -$java.nms_EntityDragonPart_attackEntityFrom = function($this, $par1DamageSource, $par2) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1DamageSource = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$invulnerable) - return 0; - var$3 = $this.$entityDragonObj; - $ptr = 1; - case 1: - $tmp = nms_EntityDragon_attackEntityFromPart(var$3, $this, $par1DamageSource, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - return $par2; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1DamageSource, $par2, var$3, $ptr); -}; -$java.nms_EntityDragonPart_isEntityEqual = function($this, $par1Entity) { - return $this !== $par1Entity && $this.$entityDragonObj !== $par1Entity ? 0 : 1; -}; -function nms_GameRules() { - jl_Object.call(this); - this.$theGameRules0 = null; -} -$java.nms_GameRules__init_ = function() { - var var_0 = new nms_GameRules(); - nms_GameRules__init_(var_0); - return var_0; -}; -function nms_GameRules__init_($this) { - var var$1, var$2, var$3, var$4; - var$1 = new ju_TreeMap; - var$2 = null; - var$1.$originalComparator = var$2; - if (var$2 === null) { - var$2 = new ju_TreeMap$1; - var$2.$this$05 = var$1; - } - var$1.$comparator = var$2; - $this.$theGameRules0 = var$1; - var$3 = $this.$theGameRules0; - var$4 = new $java.nms_GameRuleValue; - $java.nms_GameRuleValue_setValue(var$4, $rt_s(2700)); - var$3.$root = ju_TreeMap_getOrCreateNode(var$3, var$3.$root, $rt_s(2789)); - var$1 = ju_TreeMap_findExact(var$3, $rt_s(2789)); - var$1.$value8 = var$4; - var$1.$value8 = var$4; - var$3.$modCount3 = var$3.$modCount3 + 1 | 0; - var$3 = $this.$theGameRules0; - var$4 = new $java.nms_GameRuleValue; - $java.nms_GameRuleValue_setValue(var$4, $rt_s(2700)); - var$3.$root = ju_TreeMap_getOrCreateNode(var$3, var$3.$root, $rt_s(701)); - var$1 = ju_TreeMap_findExact(var$3, $rt_s(701)); - var$1.$value8 = var$4; - var$1.$value8 = var$4; - var$3.$modCount3 = var$3.$modCount3 + 1 | 0; - var$3 = $this.$theGameRules0; - var$4 = new $java.nms_GameRuleValue; - $java.nms_GameRuleValue_setValue(var$4, $rt_s(2699)); - var$3.$root = ju_TreeMap_getOrCreateNode(var$3, var$3.$root, $rt_s(719)); - var$1 = ju_TreeMap_findExact(var$3, $rt_s(719)); - var$1.$value8 = var$4; - var$1.$value8 = var$4; - var$3.$modCount3 = var$3.$modCount3 + 1 | 0; - var$3 = $this.$theGameRules0; - var$4 = new $java.nms_GameRuleValue; - $java.nms_GameRuleValue_setValue(var$4, $rt_s(2700)); - var$3.$root = ju_TreeMap_getOrCreateNode(var$3, var$3.$root, $rt_s(2790)); - var$1 = ju_TreeMap_findExact(var$3, $rt_s(2790)); - var$1.$value8 = var$4; - var$1.$value8 = var$4; - var$3.$modCount3 = var$3.$modCount3 + 1 | 0; - var$3 = $this.$theGameRules0; - var$4 = new $java.nms_GameRuleValue; - $java.nms_GameRuleValue_setValue(var$4, $rt_s(2700)); - var$3.$root = ju_TreeMap_getOrCreateNode(var$3, var$3.$root, $rt_s(687)); - var$1 = ju_TreeMap_findExact(var$3, $rt_s(687)); - var$1.$value8 = var$4; - var$1.$value8 = var$4; - var$3.$modCount3 = var$3.$modCount3 + 1 | 0; - var$3 = $this.$theGameRules0; - var$4 = new $java.nms_GameRuleValue; - $java.nms_GameRuleValue_setValue(var$4, $rt_s(2700)); - var$3.$root = ju_TreeMap_getOrCreateNode(var$3, var$3.$root, $rt_s(1589)); - var$1 = ju_TreeMap_findExact(var$3, $rt_s(1589)); - var$1.$value8 = var$4; - var$1.$value8 = var$4; - var$3.$modCount3 = var$3.$modCount3 + 1 | 0; - var$3 = $this.$theGameRules0; - var$4 = new $java.nms_GameRuleValue; - $java.nms_GameRuleValue_setValue(var$4, $rt_s(2700)); - var$3.$root = ju_TreeMap_getOrCreateNode(var$3, var$3.$root, $rt_s(2791)); - var$1 = ju_TreeMap_findExact(var$3, $rt_s(2791)); - var$1.$value8 = var$4; - var$1.$value8 = var$4; - var$3.$modCount3 = var$3.$modCount3 + 1 | 0; -} -$java.nms_GameRules_addGameRule = function($this, $par1Str, $par2Str) { - var var$3, var$4; - var$3 = $this.$theGameRules0; - var$4 = new $java.nms_GameRuleValue; - $java.nms_GameRuleValue_setValue(var$4, $par2Str); - var$3.$root = ju_TreeMap_getOrCreateNode(var$3, var$3.$root, $par1Str); - $par1Str = ju_TreeMap_findExact(var$3, $par1Str); - $par1Str.$value8 = var$4; - $par1Str.$value8 = var$4; - var$3.$modCount3 = var$3.$modCount3 + 1 | 0; -}; -function nms_GameRules_getGameRuleBooleanValue($this, $par1Str) { - var $var2; - $par1Str = ju_TreeMap_findExact($this.$theGameRules0, $par1Str); - $var2 = $par1Str === null ? null : $par1Str.$value8; - return $var2 === null ? 0 : $var2.$valueBoolean; -} -$java.ju_TreeMap$EntryIterator = function() { - var a = this; jl_Object.call(a); - a.$modCount5 = 0; - a.$owner1 = null; - a.$path0 = null; - a.$last0 = null; - a.$to0 = null; - a.$depth = 0; - a.$reverse1 = 0; -}; -$java.ju_TreeMap$EntryIterator__init_ = function(var_0, var_1, var_2, var_3) { - var var_4 = new $java.ju_TreeMap$EntryIterator(); - $java.ju_TreeMap$EntryIterator__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -}; -$java.ju_TreeMap$EntryIterator__init_0 = function($this, $owner, $path, $to, $reverse) { - var var$5, var$6; - $this.$owner1 = $owner; - $this.$modCount5 = $owner.$modCount3; - var$5 = $owner.$root === null ? 0 : $owner.$root.$height3; - var$6 = $path.data; - $this.$path0 = ju_Arrays_copyOf1($path, var$5); - $this.$depth = var$6.length; - $this.$to0 = $to; - $this.$reverse1 = $reverse; -}; -$java.ju_TreeMap$EntryIterator_hasNext = function($this) { - return $this.$depth <= 0 ? 0 : 1; -}; -$java.ju_TreeMap$EntryIterator_next = function($this) { - var $node, var$2, var$3, $down, var$5; - if ($this.$modCount5 != $this.$owner1.$modCount3) { - $node = new ju_ConcurrentModificationException; - $node.$suppressionEnabled = 1; - $node.$writableStackTrace = 1; - $rt_throw($node); - } - if (!$this.$depth) { - $node = new ju_NoSuchElementException; - $node.$suppressionEnabled = 1; - $node.$writableStackTrace = 1; - $rt_throw($node); - } - var$2 = $this.$path0.data; - var$3 = $this.$depth - 1 | 0; - $this.$depth = var$3; - $node = var$2[var$3]; - $this.$last0 = $node; - $down = $this.$reverse1 ? $node.$left0 : $node.$right; - a: { - if ($down !== null) - while (true) { - if ($down === null) - break a; - var$2 = $this.$path0.data; - var$5 = $this.$depth; - $this.$depth = var$5 + 1 | 0; - var$2[var$5] = $down; - $down = $this.$reverse1 ? $down.$right : $down.$left0; - } - } - if ($this.$last0 === $this.$to0) - $this.$depth = 0; - return $this.$last0; -}; -$java.ju_TreeMap$EntryIterator_remove = function($this) { - var var$1, var$2; - if ($this.$modCount5 != $this.$owner1.$modCount3) { - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - if ($this.$last0 === null) { - var$1 = new ju_NoSuchElementException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - $this.$owner1.$root = ju_TreeMap_deleteNode($this.$owner1, $this.$owner1.$root, $this.$last0.$key0); - var$1 = $this.$owner1; - var$2 = var$1.$modCount3 + 1 | 0; - var$1.$modCount3 = var$2; - $this.$modCount5 = var$2; - $this.$last0 = null; -}; -$java.ju_TreeMap$EntryIterator_next0 = function($this) { - return $java.ju_TreeMap$EntryIterator_next($this); -}; -function nms_CombatTracker() { - var a = this; jl_Object.call(a); - a.$field_94556_a = null; - a.$field_94554_b = null; - a.$field_94555_c = 0; - a.$field_94552_d = 0; - a.$field_94553_e = 0; - a.$field_94551_f = null; -} -$java.nms_CombatTracker_func_94545_a = function($this) { - var var$1, var$2, var$3, var$4, var$5, $var1; - $this.$field_94551_f = null; - if ($this.$field_94554_b.$isOnLadder()) { - var$1 = $this.$field_94554_b.$worldObj; - var$2 = $this.$field_94554_b.$posX; - var$3 = var$2 | 0; - if (var$2 < var$3) - var$3 = var$3 - 1 | 0; - var$2 = $this.$field_94554_b.$boundingBox.$minY; - var$4 = var$2 | 0; - if (var$2 < var$4) - var$4 = var$4 - 1 | 0; - var$2 = $this.$field_94554_b.$posZ; - var$5 = var$2 | 0; - if (var$2 < var$5) - var$5 = var$5 - 1 | 0; - $var1 = nms_World_getBlockId(var$1, var$3, var$4, var$5); - nms_Block_$callClinit(); - if ($var1 == nms_Block_ladder.$blockID) - $this.$field_94551_f = $rt_s(1597); - else if ($var1 == nms_Block_vine.$blockID) - $this.$field_94551_f = $rt_s(2792); - } else if ($this.$field_94554_b.$isInWater()) - $this.$field_94551_f = $rt_s(613); -}; -function nms_CombatTracker_func_94547_a($this, $par1DamageSource, $par2, $par3) { - var $var4, var$5, var$6, var$7; - $java.nms_CombatTracker_func_94549_h($this); - $java.nms_CombatTracker_func_94545_a($this); - $var4 = new $java.nms_CombatEntry; - var$5 = $this.$field_94554_b.$ticksExisted; - var$6 = $this.$field_94551_f; - var$7 = $this.$field_94554_b.$fallDistance; - $var4.$field_94569_a = $par1DamageSource; - $var4.$field_94567_b = var$5; - $var4.$field_94568_c = $par3; - $var4.$field_94565_d = $par2; - $var4.$field_94566_e = var$6; - $var4.$field_94564_f = var$7; - ju_ArrayList_add($this.$field_94556_a, $var4); - $this.$field_94555_c = $this.$field_94554_b.$ticksExisted; - $this.$field_94553_e = 1; - $this.$field_94552_d = $this.$field_94552_d | $var4.$field_94569_a.$getEntity() instanceof nms_EntityLiving; -} -function nms_CombatTracker_func_94550_c($this) { - var $var1, $var2, $var3, $var4, var$5, $var5$index, var$7, var$8, $var5$index_0, $var6; - $var1 = null; - $var2 = null; - $var3 = 0; - $var4 = 0; - var$5 = $this.$field_94556_a; - $var5$index = 0; - var$7 = var$5.$modCount0; - var$8 = var$5.$size2(); - while ($var5$index >= var$8 ? 0 : 1) { - if (var$7 < var$5.$modCount0) { - $var1 = new ju_ConcurrentModificationException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - } - $var5$index_0 = $var5$index + 1 | 0; - $var6 = var$5.$get4($var5$index); - if ($var6.$field_94569_a.$getEntity() instanceof nms_EntityPlayer && !($var2 !== null && $var6.$field_94568_c <= $var4)) { - $var4 = $var6.$field_94568_c; - $var2 = $var6.$field_94569_a.$getEntity(); - } - if ($var6.$field_94569_a.$getEntity() instanceof nms_EntityLiving && !($var1 !== null && $var6.$field_94568_c <= $var3)) { - $var3 = $var6.$field_94568_c; - $var1 = $var6.$field_94569_a.$getEntity(); - } - $var5$index = $var5$index_0; - } - if ($var2 !== null && $var4 >= ($var3 / 3 | 0)) - return $var2; - return $var1; -} -$java.nms_CombatTracker_func_94549_h = function($this) { - var $var1, var$2; - $var1 = !$this.$field_94552_d ? 100 : 300; - if ($this.$field_94553_e && ($this.$field_94554_b.$ticksExisted - $this.$field_94555_c | 0) > $var1) { - var$2 = $this.$field_94556_a; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - $this.$field_94553_e = 0; - $this.$field_94552_d = 0; - } -}; -function nms_EntityLookHelper() { - var a = this; jl_Object.call(a); - a.$entity = null; - a.$deltaLookYaw = 0.0; - a.$deltaLookPitch = 0.0; - a.$isLooking = 0; - a.$posX11 = 0.0; - a.$posY11 = 0.0; - a.$posZ8 = 0.0; -} -function nms_EntityLookHelper_onUpdateLook($this) { - var var$1, $var10, var$3, $var9, $var1, $var3, $var5, $var7, var$9; - $this.$entity.$rotationPitch = 0.0; - if (!$this.$isLooking) { - var$1 = $this.$entity; - $var10 = $this.$entity.$rotationYawHead; - var$3 = $this.$entity.$renderYawOffset; - $var9 = 10.0; - var$3 = nms_MathHelper_wrapAngleTo180_float(var$3 - $var10); - if (var$3 <= $var9) - $var9 = var$3; - var$3 = (-10.0); - if ($var9 >= var$3) - var$3 = $var9; - var$1.$rotationYawHead = $var10 + var$3; - } else { - $this.$isLooking = 0; - $var1 = $this.$posX11 - $this.$entity.$posX; - $var3 = $this.$posY11 - ($this.$entity.$posY + $this.$entity.$getEyeHeight()); - $var5 = $this.$posZ8 - $this.$entity.$posZ; - $var7 = jl_Math_sqrt($var1 * $var1 + $var5 * $var5); - $var9 = jl_Math_atan2($var5, $var1) * 180.0 / 3.141592653589793 - 90.0; - $var10 = -(jl_Math_atan2($var3, $var7) * 180.0 / 3.141592653589793); - var$1 = $this.$entity; - var$3 = $this.$entity.$rotationPitch; - var$9 = $this.$deltaLookPitch; - $var10 = nms_MathHelper_wrapAngleTo180_float($var10 - var$3); - if ($var10 > var$9) - $var10 = var$9; - var$9 = -var$9; - if ($var10 >= var$9) - var$9 = $var10; - var$1.$rotationPitch = var$3 + var$9; - var$1 = $this.$entity; - $var10 = $this.$entity.$rotationYawHead; - var$3 = $this.$deltaLookYaw; - $var9 = nms_MathHelper_wrapAngleTo180_float($var9 - $var10); - if ($var9 > var$3) - $var9 = var$3; - var$3 = -var$3; - if ($var9 >= var$3) - var$3 = $var9; - var$1.$rotationYawHead = $var10 + var$3; - } - nms_MathHelper_wrapAngleTo180_float($this.$entity.$rotationYawHead - $this.$entity.$renderYawOffset); -} -function nms_EntityMoveHelper() { - var a = this; jl_Object.call(a); - a.$entity0 = null; - a.$posX1 = 0.0; - a.$posY1 = 0.0; - a.$posZ1 = 0.0; - a.$speed = 0.0; - a.$update2 = 0; -} -$java.nms_EntityMoveHelper_isUpdating = function($this) { - return $this.$update2; -}; -$java.nms_EntityMoveHelper_getSpeed = function($this) { - return $this.$speed; -}; -function nms_EntityMoveHelper_onUpdateMoveHelper($this) { - var $var2, $var1, $var4, $var6, var$5, $var8, var$7, $var10, var$9, var$10, var$11, var$12; - $this.$entity0.$moveForward0 = 0.0; - if ($this.$update2) { - $this.$update2 = 0; - $var2 = $this.$entity0.$boundingBox.$minY + 0.5; - $var1 = $var2 | 0; - if ($var2 < $var1) - $var1 = $var1 - 1 | 0; - $var2 = $this.$posX1 - $this.$entity0.$posX; - $var4 = $this.$posZ1 - $this.$entity0.$posZ; - $var6 = $this.$posY1 - $var1; - var$5 = $var2 * $var2; - $var8 = var$5 + $var6 * $var6; - var$7 = $var4 * $var4; - if ($var8 + var$7 >= 2.500000277905201E-7) { - $var10 = jl_Math_atan2($var4, $var2) * 180.0 / 3.141592653589793 - 90.0; - var$9 = $this.$entity0; - var$10 = $this.$entity0.$rotationYaw; - var$11 = 30.0; - $var10 = nms_MathHelper_wrapAngleTo180_float($var10 - var$10); - if ($var10 <= var$11) - var$11 = $var10; - $var10 = (-30.0); - if (var$11 >= $var10) - $var10 = var$11; - var$9.$rotationYaw = var$10 + $var10; - var$12 = $this.$entity0; - var$10 = $this.$speed * $this.$entity0.$getSpeedModifier(); - var$12.$AIMoveSpeed = var$10; - var$12.$moveForward0 = var$10; - if ($var6 > 0.0 && var$5 + var$7 < 1.0) - $this.$entity0.$jumpHelper.$isJumping0 = 1; - } - } -} -function nms_EntityJumpHelper() { - var a = this; jl_Object.call(a); - a.$entity1 = null; - a.$isJumping0 = 0; -} -$java.nms_EntityJumpHelper_setJumping = function($this) { - $this.$isJumping0 = 1; -}; -$java.nms_EntityJumpHelper_doJump = function($this) { - $this.$entity1.$isJumping = $this.$isJumping0; - $this.$isJumping0 = 0; -}; -function nms_EntityBodyHelper() { - var a = this; jl_Object.call(a); - a.$theLiving = null; - a.$field_75666_b = 0; - a.$field_75667_c = 0.0; -} -function nms_EntityBodyHelper_func_75664_a($this) { - var $var1, $var3, var$3, $var5, var$5, var$6, var$7; - $var1 = $this.$theLiving.$posX - $this.$theLiving.$prevPosX; - $var3 = $this.$theLiving.$posZ - $this.$theLiving.$prevPosZ; - if ($var1 * $var1 + $var3 * $var3 > 2.500000277905201E-7) { - $this.$theLiving.$renderYawOffset = $this.$theLiving.$rotationYaw; - var$3 = $this.$theLiving; - $var5 = $this.$theLiving.$renderYawOffset; - var$5 = $this.$theLiving.$rotationYawHead; - var$6 = 75.0; - var$5 = nms_MathHelper_wrapAngleTo180_float($var5 - var$5); - var$7 = (-75.0); - if (var$5 >= var$7) - var$7 = var$5; - if (var$7 < var$6) - var$6 = var$7; - var$3.$rotationYawHead = $var5 - var$6; - $this.$field_75667_c = $this.$theLiving.$rotationYawHead; - $this.$field_75666_b = 0; - } else { - $var5 = 75.0; - var$5 = $this.$theLiving.$rotationYawHead - $this.$field_75667_c; - if (var$5 <= 0.0) - var$5 = -var$5; - if (var$5 > 15.0) { - $this.$field_75666_b = 0; - $this.$field_75667_c = $this.$theLiving.$rotationYawHead; - } else { - $this.$field_75666_b = $this.$field_75666_b + 1 | 0; - if ($this.$field_75666_b > 10) { - $var5 = 1.0 - ($this.$field_75666_b - 10 | 0) / 10.0; - var$5 = 0.0; - if ($var5 > var$5) - var$5 = $var5; - $var5 = var$5 * 75.0; - } - } - var$3 = $this.$theLiving; - var$5 = $this.$theLiving.$rotationYawHead; - var$6 = nms_MathHelper_wrapAngleTo180_float(var$5 - $this.$theLiving.$renderYawOffset); - var$7 = -$var5; - if (var$6 >= var$7) - var$7 = var$6; - if (var$7 < $var5) - $var5 = var$7; - var$3.$renderYawOffset = var$5 - $var5; - } -} -function nms_EntitySenses() { - var a = this; jl_Object.call(a); - a.$entityObj = null; - a.$seenEntities = null; - a.$unseenEntities = null; -} -function nms_EntitySenses_clearSensingCache($this) { - var var$1; - var$1 = $this.$seenEntities; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; - var$1 = $this.$unseenEntities; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; -} -function cjj_GZIPInputStream() { - cjj_InflaterInputStream.call(this); -} -function nms_GuiWinGame() { - var a = this; nms_GuiScreen.call(a); - a.$updateCounter3 = 0; - a.$lines = null; - a.$field_73989_c = 0; - a.$field_73987_d = 0.0; -} -$java.nms_GuiWinGame_bk = null; -$java.nms_GuiWinGame_mclogo = null; -$java.nms_GuiWinGame_vigg = null; -$java.nms_GuiWinGame__init_ = function() { - var var_0 = new nms_GuiWinGame(); - nms_GuiWinGame__init_(var_0); - return var_0; -}; -function nms_GuiWinGame__init_($this) { - nms_GuiScreen__init_($this); - $this.$updateCounter3 = 0; - $this.$field_73989_c = 0; - $this.$field_73987_d = 0.5; -} -$java.nms_GuiWinGame_updateScreen = function($this) { - var $var1, var$2, var$3, var$4, $$je, $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();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$updateCounter3 = $this.$updateCounter3 + 1 | 0; - $var1 = ((($this.$field_73989_c + $this.$height0 | 0) + $this.$height0 | 0) + 24 | 0) / $this.$field_73987_d; - if ($this.$updateCounter3 <= $var1) - return; - var$2 = $this.$mc4.$thePlayer.$sendQueue; - var$3 = new nms_Packet205ClientCommand; - nms_Packet_$callClinit(); - var$3.$creationTimeMillis = jl_System_currentTimeMillis(); - var$3.$isChunkDataPacket = 0; - var$3.$forceRespawn = 1; - if (!var$2.$disconnected) { - var$2 = var$2.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset(var$2.$sendBuffer); - nms_Packet_writePacket(var$3, ji_DataOutputStream__init_(var$2.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$2.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - var$3 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$2 = new jl_ConsoleOutputStreamStderr; - jl_Object__init_0(var$4); - var$4.$out = var$2; - var$2 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$2, 16); - var$4.$sb = var$2; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - var$2 = new jnci_UTF8Charset; - jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = var$2; - jl_System_errCache = var$4; - } - jl_Throwable_printStackTrace0(var$3, jl_System_errCache); - } - } - var$3 = $this.$mc4; - var$2 = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$3, var$2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, var$3, var$4, $ptr); -}; -$java.nms_GuiWinGame_keyTyped = function($this, $par1, $par2) { - var var$3, var$4, var$5, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par2 != 1) - return; - var$3 = $this.$mc4.$thePlayer.$sendQueue; - var$4 = new nms_Packet205ClientCommand; - nms_Packet_$callClinit(); - var$4.$creationTimeMillis = jl_System_currentTimeMillis(); - var$4.$isChunkDataPacket = 0; - var$4.$forceRespawn = 1; - if (!var$3.$disconnected) { - var$3 = var$3.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset(var$3.$sendBuffer); - nms_Packet_writePacket(var$4, ji_DataOutputStream__init_(var$3.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$3.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - var$4 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$5 = new ji_PrintStream; - var$3 = new jl_ConsoleOutputStreamStderr; - jl_Object__init_0(var$5); - var$5.$out = var$3; - var$3 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$3, 16); - var$5.$sb = var$3; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - var$3 = new jnci_UTF8Charset; - jnc_Charset__init_(var$3, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = var$3; - jl_System_errCache = var$5; - } - jl_Throwable_printStackTrace0(var$4, jl_System_errCache); - } - } - var$4 = $this.$mc4; - var$3 = null; - $ptr = 1; - case 1: - nmc_Minecraft_displayGuiScreen(var$4, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, $ptr); -}; -$java.nms_GuiWinGame_initGui = function($this) { - var $var1, $var2, $var5, var$4, var$5, $var6, $var7, $var8, $var6_0, var$10, $var9, $$je; - a: { - if ($this.$lines === null) { - $var1 = new ju_ArrayList; - $var1.$array1 = $rt_createArray(jl_Object, 10); - $this.$lines = $var1; - try { - $var1 = $rt_s(44); - $var2 = jl_StringBuilder_toString(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), nms_EnumChatFormatting_WHITE), nms_EnumChatFormatting_OBFUSCATED), nms_EnumChatFormatting_GREEN), nms_EnumChatFormatting_AQUA)); - $var5 = ju_Random__init_1(Long_fromInt(8124371)); - var$4 = nlea_EaglerAdapterImpl2_fileContentsLines($rt_s(2793)).data.length; - var$5 = 0; - while (var$5 < var$4) { - nle_EaglerProfile_$callClinit(); - $var1 = jl_String_replaceAll($var1, $rt_s(2794), nle_EaglerProfile_username); - while (jl_String_contains($var1, $var2)) { - $var6 = jl_String_indexOf2($var1, $var2); - $var7 = jl_String_substring0($var1, 0, $var6); - $var8 = jl_String_substring($var1, $var6 + jl_String_length($var2) | 0); - $var1 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var7), nms_EnumChatFormatting_WHITE), nms_EnumChatFormatting_OBFUSCATED), jl_String_substring0($rt_s(2795), 0, ju_Random_nextInt0($var5, 4) + 3 | 0)), $var8)); - } - ju_AbstractCollection_addAll($this.$lines, nms_FontRenderer_listFormattedStringToWidth($this.$mc4.$fontRenderer, $var1, 274)); - ju_ArrayList_add($this.$lines, $rt_s(44)); - var$5 = var$5 + 1 | 0; - } - $var6_0 = 0; - while ($var6_0 < 8) { - ju_ArrayList_add($this.$lines, $rt_s(44)); - $var6_0 = $var6_0 + 1 | 0; - } - $var6_0 = nlea_EaglerAdapterImpl2_fileContentsLines($rt_s(2796)).data.length; - var$10 = 0; - while (var$10 < $var6_0) { - nle_EaglerProfile_$callClinit(); - $var1 = jl_String_replaceAll(jl_String_replaceAll($var1, $rt_s(2794), nle_EaglerProfile_username), $rt_s(2797), $rt_s(2798)); - ju_AbstractCollection_addAll($this.$lines, nms_FontRenderer_listFormattedStringToWidth($this.$mc4.$fontRenderer, $var1, 274)); - ju_ArrayList_add($this.$lines, $rt_s(44)); - var$10 = var$10 + 1 | 0; - } - $this.$field_73989_c = ju_ArrayList_size($this.$lines) * 12 | 0; - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var9 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var2 = new ji_PrintStream; - $var2.$out = new jl_ConsoleOutputStreamStderr; - $var1 = new jl_StringBuilder; - $var1.$buffer = $rt_createCharArray(16); - $var2.$sb = $var1; - $var2.$buffer0 = $rt_createCharArray(32); - $var2.$autoFlush = 0; - $var1 = new jnci_UTF8Charset; - jnc_Charset__init_($var1, $rt_s(2), $rt_createArray(jl_String, 0)); - $var2.$charset = $var1; - jl_System_errCache = $var2; - } - jl_Throwable_printStackTrace0($var9, jl_System_errCache); - } - } -}; -$java.nms_GuiWinGame_func_73986_b = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var9, $var11, var$10, var$11, var$12, var$13; - nlea_Tessellator_$callClinit(); - $var4 = nlea_Tessellator_instance; - nle_TextureLocation_bindTexture($java.nms_GuiWinGame_bk); - nlea_Tessellator_startDrawing($var4, 98); - nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); - $var5 = $this.$width0; - $var6 = 0.0 - ($this.$updateCounter3 + $par3) * 0.5 * $this.$field_73987_d; - $var7 = $this.$height0 - ($this.$updateCounter3 + $par3) * 0.5 * $this.$field_73987_d; - $var9 = ($this.$updateCounter3 + $par3 - 0.0) * 0.019999999552965164; - $var11 = (((($this.$field_73989_c + $this.$height0 | 0) + $this.$height0 | 0) + 24 | 0) / $this.$field_73987_d - 20.0 - ($this.$updateCounter3 + $par3)) * 0.004999999888241291; - if ($var11 >= $var9) - $var11 = $var9; - if ($var11 > 1.0) - $var11 = 1.0; - $par1 = $var11 * $var11 * 96.0 / 255.0 * 255.0 | 0; - nlea_Tessellator_setColorRGBA($var4, $par1, $par1, $par1, 255); - var$10 = $this.$height0; - var$11 = $this.$zLevel; - var$12 = $var6 * 0.015625; - $var4.$hasTexture = 1; - $var4.$textureU = 0.0; - $var11 = var$12; - $var4.$textureV = $var11; - nlea_Tessellator_addVertex($var4, 0.0, var$10, var$11); - var$11 = $var5; - var$12 = $this.$height0; - var$13 = $this.$zLevel; - var$10 = $var5 * 0.015625; - $var4.$hasTexture = 1; - $var9 = var$10; - $var4.$textureU = $var9; - $var4.$textureV = $var11; - nlea_Tessellator_addVertex($var4, var$11, var$12, var$13); - var$13 = $this.$zLevel; - var$10 = $var7 * 0.015625; - $var4.$hasTexture = 1; - $var4.$textureU = $var9; - $var9 = var$10; - $var4.$textureV = $var9; - nlea_Tessellator_addVertex($var4, var$11, 0.0, var$13); - var$13 = $this.$zLevel; - $var4.$hasTexture = 1; - $var4.$textureU = 0.0; - $var4.$textureV = $var9; - nlea_Tessellator_addVertex($var4, 0.0, 0.0, var$13); - nlea_Tessellator_draw($var4); -}; -$java.nms_GuiWinGame_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, $var6, $var7, $var8, $var12, var$9, var$10, $var9, $var10, $var11, $var5, var$15, var$16, var$17; - $java.nms_GuiWinGame_func_73986_b($this, $par1, $par2, $par3); - nlea_Tessellator_$callClinit(); - $var4 = nlea_Tessellator_instance; - $var6 = ($this.$width0 / 2 | 0) - 137 | 0; - $var7 = $this.$height0 + 50 | 0; - $var8 = -($this.$updateCounter3 + $par3) * $this.$field_73987_d; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var12 = nleg_EaglerAdapterGL30_deevis; - $var12.$x = 0.0; - $var12.$y = $var8; - $var12.$z = 0.0; - $var12 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var12, $var12); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$9 = new ji_PrintStream; - var$9.$out = new jl_ConsoleOutputStreamStderr; - $var12 = new jl_StringBuilder; - $var12.$buffer = $rt_createCharArray(16); - var$9.$sb = $var12; - var$9.$buffer0 = $rt_createCharArray(32); - var$9.$autoFlush = 0; - $var12 = new jnci_UTF8Charset; - jnc_Charset__init_($var12, $rt_s(2), $rt_createArray(jl_String, 0)); - var$9.$charset = $var12; - jl_System_errCache = var$9; - } - var$9 = jl_System_errCache; - $var12 = var$9.$sb; - jl_AbstractStringBuilder_insert($var12, $var12.$length, $rt_s(220)); - var$10 = $var12.$length; - jl_AbstractStringBuilder_insertSpace($var12, var$10, var$10 + 1 | 0); - $var12.$buffer.data[var$10] = 10; - ji_PrintStream_printSB(var$9); - } - nle_TextureLocation_bindTexture($java.nms_GuiWinGame_mclogo); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nms_Gui_drawTexturedModalRect($this, $var6, $var7, 0, 0, 155, 44); - nms_Gui_drawTexturedModalRect($this, $var6 + 155 | 0, $var7, 0, 45, 155, 44); - nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); - $var9 = $var7 + 200 | 0; - $var10 = 0; - while ($var10 < ju_ArrayList_size($this.$lines)) { - if ($var10 == ($this.$lines.$size0 - 1 | 0)) { - $var11 = $var9 + $var8 - (($this.$height0 / 2 | 0) - 6 | 0); - if ($var11 < 0.0) - nleg_EaglerAdapterGL30_glTranslatef(0.0, -$var11, 0.0); - } - $var11 = $var9 + $var8; - if ($var11 + 12.0 + 8.0 > 0.0 && $var11 < $this.$height0) { - $var12 = ju_ArrayList_get($this.$lines, $var10); - if (!jl_String_startsWith0($var12, $rt_s(2799))) - nms_FontRenderer_drawStringWithShadow($this.$fontRenderer0, $var12, $var6, $var9, 16777215); - else - nms_FontRenderer_drawStringWithShadow($this.$fontRenderer0, jl_String_substring($var12, 3), $var6 + ((274 - nms_FontRenderer_getStringWidth($this.$fontRenderer0, jl_String_substring($var12, 3)) | 0) / 2 | 0) | 0, $var9, 16777215); - } - $var9 = $var9 + 12 | 0; - $var10 = $var10 + 1 | 0; - } - nleg_EaglerAdapterGL30_glPopMatrix(); - nle_TextureLocation_bindTexture($java.nms_GuiWinGame_vigg); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(0, 45); - nlea_Tessellator_startDrawing($var4, 98); - nlea_Tessellator_setColorRGBA($var4, 255, 255, 255, 255); - $var5 = $this.$width0; - var$15 = $this.$height0; - var$16 = $this.$zLevel; - $var4.$hasTexture = 1; - $var4.$textureU = 0.0; - $var4.$textureV = 1.0; - nlea_Tessellator_addVertex($var4, 0.0, var$15, var$16); - var$17 = $var5; - var$16 = $this.$zLevel; - $var4.$hasTexture = 1; - $var4.$textureU = 1.0; - $var4.$textureV = 1.0; - nlea_Tessellator_addVertex($var4, var$17, var$15, var$16); - var$16 = $this.$zLevel; - nlea_Tessellator_setTextureUV($var4, 1.0, 0.0); - nlea_Tessellator_addVertex($var4, var$17, 0.0, var$16); - var$16 = $this.$zLevel; - nlea_Tessellator_setTextureUV($var4, 0.0, 0.0); - nlea_Tessellator_addVertex($var4, 0.0, 0.0, var$16); - nlea_Tessellator_draw($var4); - nleg_EaglerAdapterGL30_glDisable(16); - nms_GuiScreen_drawScreen($this, $par1, $par2, $par3); -}; -function nms_GuiWinGame__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2800); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiWinGame_bk = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(753); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiWinGame_mclogo = var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(967); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiWinGame_vigg = var$1; -} -$java.nms_NpcMerchant = function() { - var a = this; jl_Object.call(a); - a.$theMerchantInventory = null; - a.$customer = null; - a.$recipeList = null; -}; -$java.nms_NpcMerchant_getCustomer = function($this) { - return $this.$customer; -}; -$java.nms_NpcMerchant_setCustomer = function($this, $par1EntityPlayer) { - return; -}; -$java.nms_NpcMerchant_getRecipes = function($this, $par1EntityPlayer) { - return $this.$recipeList; -}; -$java.nms_NpcMerchant_setRecipes = function($this, $par1MerchantRecipeList) { - $this.$recipeList = $par1MerchantRecipeList; -}; -$java.nms_NpcMerchant_useRecipe = function($this, $par1MerchantRecipe) { - return; -}; -function nms_EntityPickupFX() { - var a = this; nms_EntityFX.call(a); - a.$entityToPickUp = null; - a.$entityPickingUp = null; - a.$age0 = 0; - a.$maxAge = 0; - a.$yOffs = 0.0; -} -function nms_EntityPickupFX__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityPickupFX(); - $java.nms_EntityPickupFX__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.nms_EntityPickupFX__init_ = function($this, $par1World, $par2Entity, $par3Entity, $par4) { - $java.nms_EntityFX__init_2($this, $par1World, $par2Entity.$posX, $par2Entity.$posY, $par2Entity.$posZ, $par2Entity.$motionX, $par2Entity.$motionY, $par2Entity.$motionZ); - $this.$age0 = 0; - $this.$maxAge = 0; - $this.$entityToPickUp = $par2Entity; - $this.$entityPickingUp = $par3Entity; - $this.$maxAge = 3; - $this.$yOffs = $par4; -}; -$java.nms_EntityPickupFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var11, $var13, $var17, $var15, $var23, $var19, $var25, $var21, $var30, $var31, $var32, var$21, var$22, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$22 = $thread.pop();var$21 = $thread.pop();$var32 = $thread.pop();$var31 = $thread.pop();$var30 = $thread.pop();$var21 = $thread.pop();$var25 = $thread.pop();$var19 = $thread.pop();$var23 = $thread.pop();$var15 = $thread.pop();$var17 = $thread.pop();$var13 = $thread.pop();$var11 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$par7 = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Tessellator - = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var8 = ($this.$age0 + $par2) / $this.$maxAge; - $par3 = $var8 * $var8; - $var9 = $this.$entityToPickUp.$posX; - $var11 = $this.$entityToPickUp.$posY; - $var13 = $this.$entityToPickUp.$posZ; - $var17 = $this.$entityPickingUp.$lastTickPosX; - $var15 = $this.$entityPickingUp.$posX - $this.$entityPickingUp.$lastTickPosX; - $var23 = $par2; - $var15 = $var17 + $var15 * $var23; - $var17 = $this.$entityPickingUp.$lastTickPosY + ($this.$entityPickingUp.$posY - $this.$entityPickingUp.$lastTickPosY) * $var23 + $this.$yOffs; - $var19 = $this.$entityPickingUp.$lastTickPosZ + ($this.$entityPickingUp.$posZ - $this.$entityPickingUp.$lastTickPosZ) * $var23; - $var15 = $var15 - $var9; - $var25 = $par3; - $var21 = $var9 + $var15 * $var25; - $var23 = $var11 + ($var17 - $var11) * $var25; - $var25 = $var13 + ($var19 - $var13) * $var25; - $var15 = $var23 + $this.$yOffset0 / 2.0; - a: { - $var30 = nms_Entity_getBrightnessForRender($this, $par2); - $var31 = $var30 % 65536 | 0; - $var32 = $var30 / 65536 | 0; - $var30 = nms_OpenGlHelper_lightmapTexUnit; - $par3 = $var31 / 1.0; - $par4 = $var32 / 1.0; - nleg_EaglerAdapterGL30_$callClinit(); - switch ($var30) { - case 99: - break; - case 100: - nleg_EaglerAdapterGL30_tex1X = $par3; - nleg_EaglerAdapterGL30_tex1Y = $par4; - break a; - default: - if (jl_System_errCache === null) { - var$21 = new ji_PrintStream; - var$21.$out = new jl_ConsoleOutputStreamStderr; - $par1Tessellator = new jl_StringBuilder; - $par1Tessellator.$buffer = $rt_createCharArray(16); - var$21.$sb = $par1Tessellator; - var$21.$buffer0 = $rt_createCharArray(32); - var$21.$autoFlush = 0; - $par1Tessellator = new jnci_UTF8Charset; - jnc_Charset__init_($par1Tessellator, $rt_s(2), $rt_createArray(jl_String, 0)); - var$21.$charset = $par1Tessellator; - jl_System_errCache = var$21; - } - var$22 = jl_System_errCache; - var$21 = var$22.$sb; - jl_AbstractStringBuilder_insert(var$21, var$21.$length, $rt_s(238)); - $var31 = var$21.$length; - jl_AbstractStringBuilder_insertSpace(var$21, $var31, $var31 + 1 | 0); - var$21.$buffer.data[$var31] = 10; - ji_PrintStream_printSB(var$22); - break a; - } - nleg_EaglerAdapterGL30_tex0X = $par3; - nleg_EaglerAdapterGL30_tex0Y = $par4; - } - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var15 = $var21 - nms_EntityFX_interpPosX; - $var17 = $var23 - nms_EntityFX_interpPosY; - $var19 = $var25 - nms_EntityFX_interpPosZ; - $par1Tessellator = nms_RenderManager_instance; - var$21 = $this.$entityToPickUp; - $var15 = $var15; - $var17 = $var17; - $var19 = $var19; - $par3 = $this.$entityToPickUp.$rotationYaw; - $ptr = 1; - case 1: - nms_RenderManager_renderEntityWithPosYaw($par1Tessellator, var$21, $var15, $var17, $var19, $par3, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7, $var8, $var9, $var11, $var13, $var17, $var15, $var23, $var19, $var25, $var21, $var30, $var31, $var32, var$21, var$22, $ptr); -}; -$java.nms_EntityPickupFX_onUpdate = function($this) { - $this.$age0 = $this.$age0 + 1 | 0; - if ($this.$age0 == $this.$maxAge) - $this.$isDead = 1; -}; -$java.nms_EntityPickupFX_getFXLayer = function($this) { - return 3; -}; -$java.nms_WorldSettings = function() { - var a = this; jl_Object.call(a); - a.$seed = Long_ZERO; - a.$theGameType = null; - a.$mapFeaturesEnabled = 0; - a.$hardcoreEnabled = 0; - a.$terrainType2 = null; - a.$commandsAllowed = 0; - a.$field_82751_h = null; -}; -$java.nms_WorldSettings_getSeed = function($this) { - return $this.$seed; -}; -$java.nms_WorldSettings_getGameType = function($this) { - return $this.$theGameType; -}; -$java.nms_WorldSettings_getHardcoreEnabled = function($this) { - return $this.$hardcoreEnabled; -}; -$java.nms_WorldSettings_isMapFeaturesEnabled = function($this) { - return $this.$mapFeaturesEnabled; -}; -$java.nms_WorldSettings_getTerrainType = function($this) { - return $this.$terrainType2; -}; -$java.nms_WorldSettings_areCommandsAllowed = function($this) { - return $this.$commandsAllowed; -}; -$java.nms_WorldSettings_func_82749_j = function($this) { - return $this.$field_82751_h; -}; -$java.nms_GuiDownloadTerrain = function() { - var a = this; nms_GuiScreen.call(a); - a.$netHandler = null; - a.$updateCounter1 = 0; -}; -$java.nms_GuiDownloadTerrain_keyTyped = function($this, $par1, $par2) { - return; -}; -$java.nms_GuiDownloadTerrain_initGui = function($this) { - var var$1; - var$1 = $this.$buttonList; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; -}; -$java.nms_GuiDownloadTerrain_updateScreen = function($this) { - var var$1, var$2, var$3, $$je, $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: - $this.$updateCounter1 = $this.$updateCounter1 + 1 | 0; - if (!($this.$updateCounter1 % 20 | 0)) { - var$1 = $this.$netHandler; - var$2 = new nms_Packet0KeepAlive; - nms_Packet_$callClinit(); - var$2.$creationTimeMillis = jl_System_currentTimeMillis(); - var$2.$isChunkDataPacket = 0; - if (!var$1.$disconnected) { - var$1 = var$1.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset(var$1.$sendBuffer); - nms_Packet_writePacket(var$2, ji_DataOutputStream__init_(var$1.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$1.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - var$1 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$3 = new ji_PrintStream; - var$3.$out = new jl_ConsoleOutputStreamStderr; - var$2 = new jl_StringBuilder; - jl_Object__init_0(var$2); - var$2.$buffer = $rt_createCharArray(16); - var$3.$sb = var$2; - var$3.$buffer0 = $rt_createCharArray(32); - var$3.$autoFlush = 0; - var$2 = new jnci_UTF8Charset; - jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0)); - var$3.$charset = var$2; - jl_System_errCache = var$3; - } - jl_Throwable_printStackTrace0(var$1, jl_System_errCache); - } - } - } - if ($this.$netHandler === null) - return; - var$1 = $this.$netHandler; - $ptr = 1; - case 1: - $java.nms_NetClientHandler_processReadPackets(var$1); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $ptr); -}; -$java.nms_GuiDownloadTerrain_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7; - nms_GuiScreen_drawBackground($this, 0); - $var4 = nms_StringTranslate_instance; - var$5 = $this.$fontRenderer0; - $var4 = nms_StringTranslate_translateKey($var4, $rt_s(2801)); - var$6 = $this.$width0 / 2 | 0; - var$7 = ($this.$height0 / 2 | 0) - 50 | 0; - nms_FontRenderer_drawString(var$5, $var4, var$6 - (nms_FontRenderer_getStringWidth(var$5, $var4) / 2 | 0) | 0, var$7, 16777215, 1); - var$7 = 0; - a: { - while (var$7 < $this.$buttonList.$size0) { - $var4 = $this.$buttonList; - if (var$7 < 0) - break a; - if (var$7 >= $var4.$size0) - break a; - $var4.$array1.data[var$7].$drawButton($this.$mc4, $par1, $par2); - var$7 = var$7 + 1 | 0; - } - return; - } - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); -}; -function nms_GuiMerchant() { - var a = this; nms_GuiContainer.call(a); - a.$theIMerchant = null; - a.$nextRecipeButtonIndex = null; - a.$previousRecipeButtonIndex = null; - a.$currentRecipeIndex = 0; - a.$field_94082_v = null; -} -$java.nms_GuiMerchant_tex = null; -function nms_GuiMerchant__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_GuiMerchant(); - $java.nms_GuiMerchant__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.nms_GuiMerchant__init_ = function($this, $par1, $par2, $par3World, $par4) { - nms_GuiContainer__init_($this, $java.nms_ContainerMerchant__init_($par1, $par2, $par3World)); - $this.$currentRecipeIndex = 0; - $this.$theIMerchant = $par2; - if (!($par4 !== null && $par4.$characters.data.length >= 1)) - $par4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2802)); - $this.$field_94082_v = $par4; -}; -$java.nms_GuiMerchant_initGui = function($this) { - var $var1, $var2, var$3, var$4, var$5, var$6, var$7; - nms_GuiContainer_initGui($this); - $var1 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var2 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - var$3 = $this.$buttonList; - var$4 = new nms_GuiButtonMerchant; - var$5 = ($var1 + 120 | 0) + 27 | 0; - var$6 = ($var2 + 24 | 0) - 1 | 0; - nms_GuiButton__init_0(var$4, 1, var$5, var$6, 12, 19, $rt_s(44)); - var$4.$mirrored = 1; - $this.$nextRecipeButtonIndex = var$4; - ju_ArrayList_add(var$3, var$4); - var$4 = $this.$buttonList; - var$7 = new nms_GuiButtonMerchant; - nms_GuiButton__init_0(var$7, 2, ($var1 + 36 | 0) - 19 | 0, var$6, 12, 19, $rt_s(44)); - var$7.$mirrored = 0; - $this.$previousRecipeButtonIndex = var$7; - ju_ArrayList_add(var$4, var$7); - $this.$nextRecipeButtonIndex.$enabled = 0; - $this.$previousRecipeButtonIndex.$enabled = 0; -}; -$java.nms_GuiMerchant_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - nms_FontRenderer_drawString($this.$fontRenderer0, $this.$field_94082_v, ($this.$xSize / 2 | 0) - (nms_FontRenderer_getStringWidth($this.$fontRenderer0, $this.$field_94082_v) / 2 | 0) | 0, 6, 4210752, 0); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1033)), 8, ($this.$ySize0 - 96 | 0) + 2 | 0, 4210752, 0); -}; -$java.nms_GuiMerchant_updateScreen = function($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_GuiContainer_updateScreen($this); - if ($rt_suspending()) { - break main; - } - $var1 = $this.$theIMerchant.$getRecipes($this.$mc4.$thePlayer); - if ($var1 !== null) { - $this.$nextRecipeButtonIndex.$enabled = $this.$currentRecipeIndex >= ($var1.$size0 - 1 | 0) ? 0 : 1; - $this.$previousRecipeButtonIndex.$enabled = $this.$currentRecipeIndex <= 0 ? 0 : 1; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $ptr); -}; -$java.nms_GuiMerchant_actionPerformed = function($this, $par1GuiButton) { - var $var2, $var3, $var4, $var6, $$je; - $var2 = 0; - if ($par1GuiButton === $this.$nextRecipeButtonIndex) { - $this.$currentRecipeIndex = $this.$currentRecipeIndex + 1 | 0; - $var2 = 1; - } else if ($par1GuiButton === $this.$previousRecipeButtonIndex) { - $this.$currentRecipeIndex = $this.$currentRecipeIndex - 1 | 0; - $var2 = 1; - } - a: { - if ($var2) { - $par1GuiButton = $this.$inventorySlots0; - $var2 = $this.$currentRecipeIndex; - $par1GuiButton = $par1GuiButton.$merchantInventory; - $par1GuiButton.$currentRecipeIndex0 = $var2; - $java.nms_InventoryMerchant_resetRecipeAndSlots($par1GuiButton); - $var3 = new ji_ByteArrayOutputStream; - $var3.$buf1 = $rt_createByteArray(32); - $var4 = new ji_DataOutputStream; - $var4.$out = $var3; - $var4.$buff0 = $rt_createByteArray(8); - try { - ji_DataOutputStream_writeInt($var4, $this.$currentRecipeIndex); - nms_NetClientHandler_addToSendQueue(nmc_Minecraft_getNetHandler($this.$mc4), nms_Packet250CustomPayload__init_0($rt_s(2803), ji_ByteArrayOutputStream_toByteArray($var3))); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var6 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var3 = new ji_PrintStream; - $var3.$out = new jl_ConsoleOutputStreamStderr; - $par1GuiButton = new jl_StringBuilder; - $par1GuiButton.$buffer = $rt_createCharArray(16); - $var3.$sb = $par1GuiButton; - $var3.$buffer0 = $rt_createCharArray(32); - $var3.$autoFlush = 0; - $par1GuiButton = new jnci_UTF8Charset; - jnc_Charset__init_($par1GuiButton, $rt_s(2), $rt_createArray(jl_String, 0)); - $var3.$charset = $par1GuiButton; - jl_System_errCache = $var3; - } - jl_Throwable_printStackTrace0($var6, jl_System_errCache); - } - } -}; -$java.nms_GuiMerchant_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - var $var6, $var7, $var8; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiMerchant_tex); - nms_Gui_drawTexturedModalRect($this, ($this.$width0 - $this.$xSize | 0) / 2 | 0, ($this.$height0 - $this.$ySize0 | 0) / 2 | 0, 0, 0, $this.$xSize, $this.$ySize0); - $var6 = $this.$theIMerchant.$getRecipes($this.$mc4.$thePlayer); - if ($var6 !== null && !($var6.$size0 ? 0 : 1)) { - $var7 = $this.$currentRecipeIndex; - if ($var7 >= 0 && $var7 < $var6.$size0) { - $var8 = $var6.$array1.data[$var7]; - if ($var8.$toolUses < $var8.$maxTradeUses ? 0 : 1) { - nle_TextureLocation_bindTexture($java.nms_GuiMerchant_tex); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(13); - nms_Gui_drawTexturedModalRect($this, $this.$guiLeft + 83 | 0, $this.$guiTop + 21 | 0, 212, 0, 28, 21); - nms_Gui_drawTexturedModalRect($this, $this.$guiLeft + 83 | 0, $this.$guiTop + 51 | 0, 212, 0, 28, 21); - } - } else { - $var6 = new jl_IndexOutOfBoundsException; - $var6.$suppressionEnabled = 1; - $var6.$writableStackTrace = 1; - $rt_throw($var6); - } - } -}; -$java.nms_GuiMerchant_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var8, $var9, $var10, $var11, 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();$var11 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $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: - nms_GuiContainer_drawScreen($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - $var4 = $this.$theIMerchant.$getRecipes($this.$mc4.$thePlayer); - if ($var4 !== null && !($var4.$size0 ? 0 : 1)) { - $var5 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var6 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - $var7 = $this.$currentRecipeIndex; - if ($var7 >= 0 && $var7 < $var4.$size0) { - $var8 = $var4.$array1.data[$var7]; - nleg_EaglerAdapterGL30_glPushMatrix(); - $var9 = $var8.$itemToBuy; - $var10 = $var8.$secondItemToBuy; - $var11 = $var8.$itemToSell; - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef((-30.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(165.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glEnable(41); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_glEnable(13); - nms_GuiContainer_itemRenderer.$zLevel0 = 100.0; - $var4 = nms_GuiContainer_itemRenderer; - $var8 = $this.$fontRenderer0; - var$12 = $this.$mc4.$renderEngine; - $var7 = $var5 + 36 | 0; - var$13 = $var6 + 24 | 0; - $ptr = 2; - continue main; - } - $var4 = new jl_IndexOutOfBoundsException; - $var4.$suppressionEnabled = 1; - $var4.$writableStackTrace = 1; - $rt_throw($var4); - } - return; - case 2: - nms_RenderItem_renderItemAndEffectIntoGUI($var4, $var8, var$12, $var9, $var7, var$13); - if ($rt_suspending()) { - break main; - } - nms_RenderItem_renderItemOverlayIntoGUI(nms_GuiContainer_itemRenderer, $this.$fontRenderer0, $this.$mc4.$renderEngine, $var9, $var7, var$13, null); - if ($var10 === null) { - $var4 = nms_GuiContainer_itemRenderer; - $var8 = $this.$fontRenderer0; - var$12 = $this.$mc4.$renderEngine; - $var7 = $var5 + 120 | 0; - $ptr = 3; - continue main; - } - $var4 = nms_GuiContainer_itemRenderer; - $var8 = $this.$fontRenderer0; - var$12 = $this.$mc4.$renderEngine; - $var7 = $var5 + 62 | 0; - $ptr = 4; - continue main; - case 3: - nms_RenderItem_renderItemAndEffectIntoGUI($var4, $var8, var$12, $var11, $var7, var$13); - if ($rt_suspending()) { - break main; - } - nms_RenderItem_renderItemOverlayIntoGUI(nms_GuiContainer_itemRenderer, $this.$fontRenderer0, $this.$mc4.$renderEngine, $var11, $var7, var$13, null); - nms_GuiContainer_itemRenderer.$zLevel0 = 0.0; - nleg_EaglerAdapterGL30_glDisable(13); - if (nms_GuiContainer_isPointInRegion($this, 36, 24, 16, 16, $par1, $par2)) - nms_GuiContainer_drawItemStackTooltip($this, $var9, $par1, $par2); - else if ($var10 !== null && nms_GuiContainer_isPointInRegion($this, 62, 24, 16, 16, $par1, $par2)) - nms_GuiContainer_drawItemStackTooltip($this, $var10, $par1, $par2); - else if (nms_GuiContainer_isPointInRegion($this, 120, 24, 16, 16, $par1, $par2)) - nms_GuiContainer_drawItemStackTooltip($this, $var11, $par1, $par2); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(4); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - return; - case 4: - nms_RenderItem_renderItemAndEffectIntoGUI($var4, $var8, var$12, $var10, $var7, var$13); - if ($rt_suspending()) { - break main; - } - nms_RenderItem_renderItemOverlayIntoGUI(nms_GuiContainer_itemRenderer, $this.$fontRenderer0, $this.$mc4.$renderEngine, $var10, $var7, var$13, null); - $var4 = nms_GuiContainer_itemRenderer; - $var8 = $this.$fontRenderer0; - var$12 = $this.$mc4.$renderEngine; - $var7 = $var5 + 120 | 0; - $ptr = 3; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var6, $var7, $var8, $var9, $var10, $var11, var$12, var$13, $ptr); -}; -$java.nms_GuiMerchant_getIMerchant = function($this) { - return $this.$theIMerchant; -}; -function nms_GuiMerchant__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2804); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiMerchant_tex = var$1; -} -function nms_MerchantRecipeList() { - ju_ArrayList.call(this); -} -function nms_MerchantRecipeList__init_0() { - var var_0 = new nms_MerchantRecipeList(); - nms_MerchantRecipeList__init_(var_0); - return var_0; -} -function nms_MerchantRecipeList__init_($this) { - $this.$array1 = $rt_createArray(jl_Object, 10); -} -$java.nms_MerchantRecipeList_canRecipeBeUsed = function($this, $par1ItemStack, $par2ItemStack, $par3) { - var $var6, $var4, $var5; - if ($par3 > 0 && $par3 < $this.$size0) { - if ($par3 >= 0 && $par3 < $this.$size0) { - a: { - b: { - $var6 = $this.$array1.data[$par3]; - if ($par1ItemStack.$itemID0 == $var6.$itemToBuy.$itemID0) { - if (!($par2ItemStack === null && !($var6.$secondItemToBuy === null ? 0 : 1))) { - if (!($var6.$secondItemToBuy === null ? 0 : 1)) - break b; - if ($par2ItemStack === null) - break b; - if ($var6.$secondItemToBuy.$itemID0 != $par2ItemStack.$itemID0) - break b; - } - if ($par1ItemStack.$stackSize >= $var6.$itemToBuy.$stackSize) { - $par3 = $var6.$secondItemToBuy === null ? 0 : 1; - if (!($par3 && $par2ItemStack.$stackSize < $var6.$secondItemToBuy.$stackSize)) - break a; - } - } - } - $var6 = null; - } - return $var6; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); - } - $var4 = 0; - c: { - while (true) { - if ($var4 >= $this.$size0) - return null; - if ($var4 < 0) - break c; - if ($var4 >= $this.$size0) - break c; - $var5 = $this.$array1.data[$var4]; - if ($par1ItemStack.$itemID0 == $var5.$itemToBuy.$itemID0 && $par1ItemStack.$stackSize >= $var5.$itemToBuy.$stackSize) { - $par3 = $var5.$secondItemToBuy === null ? 0 : 1; - if (!$par3 && $par2ItemStack === null) - break; - if (($var5.$secondItemToBuy === null ? 0 : 1) && $par2ItemStack !== null && $var5.$secondItemToBuy.$itemID0 == $par2ItemStack.$itemID0 && $par2ItemStack.$stackSize >= $var5.$secondItemToBuy.$stackSize) - break; - } - $var4 = $var4 + 1 | 0; - } - return $var5; - } - $par1ItemStack = new jl_IndexOutOfBoundsException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $rt_throw($par1ItemStack); -}; -function nms_MerchantRecipeList_addToListWithCheck($this, $par1MerchantRecipe) { - var $var2, $var3; - $var2 = 0; - a: { - while ($var2 < $this.$size0) { - if ($var2 < 0) - break a; - if ($var2 >= $this.$size0) - break a; - $var3 = $this.$array1.data[$var2]; - if (nms_MerchantRecipe_hasSameIDsAs($par1MerchantRecipe, $var3)) { - b: { - if ($java.nms_MerchantRecipe_hasSameItemsAs($par1MerchantRecipe, $var3)) { - if ($var2 < 0) - break b; - if ($var2 >= $this.$size0) - break b; - $this.$array1.data[$var2] = $par1MerchantRecipe; - } - return; - } - $par1MerchantRecipe = new jl_IndexOutOfBoundsException; - $par1MerchantRecipe.$suppressionEnabled = 1; - $par1MerchantRecipe.$writableStackTrace = 1; - $rt_throw($par1MerchantRecipe); - } - $var2 = $var2 + 1 | 0; - } - ju_ArrayList_add($this, $par1MerchantRecipe); - return; - } - $par1MerchantRecipe = new jl_IndexOutOfBoundsException; - $par1MerchantRecipe.$suppressionEnabled = 1; - $par1MerchantRecipe.$writableStackTrace = 1; - $rt_throw($par1MerchantRecipe); -} -$java.nms_MerchantRecipeList_readRecipiesFromStream = function($par0DataInputStream) { - var $var1, $var2, $var3, $var4, $var7, var$7, var$8, $var5, var$10, $var6, $var8, var$13, var$14, var$15, $$je; - $var1 = new nms_MerchantRecipeList; - $var1.$array1 = $rt_createArray(jl_Object, 10); - $var2 = $par0DataInputStream.$in.$read1(); - if ($var2 < 0) { - $par0DataInputStream = new ji_EOFException; - $par0DataInputStream.$suppressionEnabled = 1; - $par0DataInputStream.$writableStackTrace = 1; - $rt_throw($par0DataInputStream); - } - $var2 = $var2 << 24 >> 24 & 255; - $var3 = 0; - while ($var3 < $var2) { - nms_Packet_$callClinit(); - $var4 = null; - $var7 = ji_DataInputStream_readShort($par0DataInputStream); - if ($var7 >= 0) { - var$7 = $par0DataInputStream.$in.$read1(); - if (var$7 < 0) { - $par0DataInputStream = new ji_EOFException; - $par0DataInputStream.$suppressionEnabled = 1; - $par0DataInputStream.$writableStackTrace = 1; - $rt_throw($par0DataInputStream); - } - var$8 = var$7 << 24 >> 24; - var$7 = ji_DataInputStream_readShort($par0DataInputStream); - $var4 = new nms_ItemStack; - $var4.$stackSize = 0; - $var4.$itemFrame = null; - $var4.$itemID0 = $var7; - $var4.$stackSize = var$8; - $var4.$itemDamage = var$7; - if ($var4.$itemDamage < 0) - $var4.$itemDamage = 0; - $var7 = ji_DataInputStream_readShort($par0DataInputStream); - if ($var7 < 0) - $var5 = null; - else { - var$10 = $rt_createByteArray($var7); - var$7 = var$10.data.length; - ji_DataInputStream_readFully($par0DataInputStream, var$10, 0, var$7); - $var6 = new ji_DataInputStream; - $var5 = new ji_BufferedInputStream; - $var8 = new cjj_GZIPInputStream; - var$13 = new ji_ByteArrayInputStream; - var$13.$buf = var$10; - var$13.$pos = 0; - var$13.$mark0 = 0; - var$13.$count0 = 0 + var$7 | 0; - cjj_InflaterInputStream__init_0($var8, var$13, cjj_Inflater__init_0(31, 0), 512, 1); - $var8.$myinflater = 1; - $var5.$in = $var8; - $var5.$markpos = (-1); - $var5.$buf0 = $rt_createByteArray(8192); - $var6.$in = $var5; - $var6.$buff = $rt_createByteArray(8); - try { - $var5 = nms_CompressedStreamTools_read($var6); - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par0DataInputStream = $$je; - $var6.$in.$close(); - $rt_throw($par0DataInputStream); - - } - $var6.$in.$close(); - } - $var4.$stackTagCompound = $var5; - } - $var5 = null; - var$7 = ji_DataInputStream_readShort($par0DataInputStream); - if (var$7 >= 0) { - $var7 = $par0DataInputStream.$in.$read1(); - if ($var7 < 0) { - $par0DataInputStream = new ji_EOFException; - $par0DataInputStream.$suppressionEnabled = 1; - $par0DataInputStream.$writableStackTrace = 1; - $rt_throw($par0DataInputStream); - } - $var7 = $var7 << 24 >> 24; - var$14 = ji_DataInputStream_readShort($par0DataInputStream); - $var5 = new nms_ItemStack; - $var5.$stackSize = 0; - $var5.$itemFrame = null; - $var5.$itemID0 = var$7; - $var5.$stackSize = $var7; - $var5.$itemDamage = var$14; - if ($var5.$itemDamage < 0) - $var5.$itemDamage = 0; - $var7 = ji_DataInputStream_readShort($par0DataInputStream); - if ($var7 < 0) - $var6 = null; - else { - var$10 = $rt_createByteArray($var7); - var$7 = var$10.data.length; - ji_DataInputStream_readFully($par0DataInputStream, var$10, 0, var$7); - $var8 = new ji_DataInputStream; - $var6 = new ji_BufferedInputStream; - var$13 = new cjj_GZIPInputStream; - var$15 = new ji_ByteArrayInputStream; - var$15.$buf = var$10; - var$15.$pos = 0; - var$15.$mark0 = 0; - var$15.$count0 = 0 + var$7 | 0; - cjj_InflaterInputStream__init_0(var$13, var$15, cjj_Inflater__init_0(31, 0), 512, 1); - var$13.$myinflater = 1; - $var6.$in = var$13; - $var6.$markpos = (-1); - $var6.$buf0 = $rt_createByteArray(8192); - $var8.$in = $var6; - $var8.$buff = $rt_createByteArray(8); - try { - $var6 = nms_CompressedStreamTools_read($var8); - } catch ($$e) { - $$je = $rt_wrapException($$e); - $par0DataInputStream = $$je; - $var8.$in.$close(); - $rt_throw($par0DataInputStream); - - } - $var8.$in.$close(); - } - $var5.$stackTagCompound = $var6; - } - $var6 = null; - $var7 = $par0DataInputStream.$in.$read1(); - if ($var7 < 0) { - $par0DataInputStream = new ji_EOFException; - $par0DataInputStream.$suppressionEnabled = 1; - $par0DataInputStream.$writableStackTrace = 1; - $rt_throw($par0DataInputStream); - } - if (!$var7 ? 0 : 1) - $var6 = nms_Packet_readItemStack($par0DataInputStream); - $var7 = ji_DataInputStream_readBoolean($par0DataInputStream); - $var8 = nms_MerchantRecipe__init_($var4, $var6, $var5); - if ($var7) - $var8.$toolUses = $var8.$maxTradeUses; - ju_ArrayList_add($var1, $var8); - $var3 = $var3 + 1 | 0; - } - return $var1; -}; -function nms_WorldProviderSurface() { - nms_WorldProvider.call(this); -} -$java.nms_WorldProviderSurface__init_ = function() { - var var_0 = new nms_WorldProviderSurface(); - nms_WorldProviderSurface__init_(var_0); - return var_0; -}; -function nms_WorldProviderSurface__init_($this) { - $this.$isHellWorld = 0; - $this.$hasNoSky = 0; - $this.$lightBrightnessTable = $rt_createFloatArray(16); - $this.$dimensionId = 0; - $this.$colorsSunriseSunset = $rt_createFloatArray(4); -} -function nms_EntityCrit2FX() { - var a = this; nms_EntityFX.call(a); - a.$theEntity = null; - a.$currentLife = 0; - a.$maximumLife = 0; - a.$particleName0 = null; -} -$java.nms_EntityCrit2FX__init_ = function(var_0, var_1, var_2) { - var var_3 = new nms_EntityCrit2FX(); - nms_EntityCrit2FX__init_(var_3, var_0, var_1, var_2); - return var_3; -}; -function nms_EntityCrit2FX__init_($this, $par1World, $par2Entity, $par3Str) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par3Str = $thread.pop();$par2Entity = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $java.nms_EntityFX__init_2($this, $par1World, $par2Entity.$posX, $par2Entity.$boundingBox.$minY + $par2Entity.$height1 / 2.0, $par2Entity.$posZ, $par2Entity.$motionX, $par2Entity.$motionY, $par2Entity.$motionZ); - $this.$currentLife = 0; - $this.$maximumLife = 0; - $this.$theEntity = $par2Entity; - $this.$maximumLife = 3; - $this.$particleName0 = $par3Str; - $ptr = 1; - case 1: - $java.nms_EntityCrit2FX_onUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2Entity, $par3Str, $ptr); -} -$java.nms_EntityCrit2FX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - return; -}; -$java.nms_EntityCrit2FX_onUpdate = function($this) { - var $var1, $var2, $var4, $var6, $var8, $var10, $var12, var$8, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = 0; - while ($var1 < 16) { - $var2 = Math.random() * 2.0 - 1.0; - $var4 = Math.random() * 2.0 - 1.0; - $var6 = Math.random() * 2.0 - 1.0; - if ($var2 * $var2 + $var4 * $var4 + $var6 * $var6 <= 1.0) { - $var8 = $this.$theEntity.$posX + $var2 * $this.$theEntity.$width1 / 4.0; - $var10 = $this.$theEntity.$boundingBox.$minY + $this.$theEntity.$height1 / 2.0 + $var4 * $this.$theEntity.$height1 / 4.0; - $var12 = $this.$theEntity.$posZ + $var6 * $this.$theEntity.$width1 / 4.0; - var$8 = $this.$worldObj; - var$9 = $this.$particleName0; - var$10 = $var4 + 0.2; - var$11 = 0; - if (var$11 < var$8.$worldAccesses.$size0) { - var$12 = var$8.$worldAccesses; - if (var$11 >= 0 && var$11 < var$12.$size0) { - var$12 = var$12.$array1.data[var$11]; - $ptr = 1; - continue main; - } - var$12 = new jl_IndexOutOfBoundsException; - var$12.$suppressionEnabled = 1; - var$12.$writableStackTrace = 1; - $rt_throw(var$12); - } - } - $var1 = $var1 + 1 | 0; - } - $this.$currentLife = $this.$currentLife + 1 | 0; - if ($this.$currentLife >= $this.$maximumLife) - $this.$isDead = 1; - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$12, var$9, $var8, $var10, $var12, $var2, var$10, $var6); - if ($rt_suspending()) { - break main; - } - var$11 = var$11 + 1 | 0; - a: while (true) { - if (var$11 < var$8.$worldAccesses.$size0) { - var$12 = var$8.$worldAccesses; - if (var$11 >= 0 && var$11 < var$12.$size0) { - var$12 = var$12.$array1.data[var$11]; - continue main; - } - var$12 = new jl_IndexOutOfBoundsException; - var$12.$suppressionEnabled = 1; - var$12.$writableStackTrace = 1; - $rt_throw(var$12); - } - while (true) { - $var1 = $var1 + 1 | 0; - if ($var1 >= 16) - break a; - $var2 = Math.random() * 2.0 - 1.0; - $var4 = Math.random() * 2.0 - 1.0; - $var6 = Math.random() * 2.0 - 1.0; - if ($var2 * $var2 + $var4 * $var4 + $var6 * $var6 > 1.0) - continue; - else - break; - } - $var8 = $this.$theEntity.$posX + $var2 * $this.$theEntity.$width1 / 4.0; - $var10 = $this.$theEntity.$boundingBox.$minY + $this.$theEntity.$height1 / 2.0 + $var4 * $this.$theEntity.$height1 / 4.0; - $var12 = $this.$theEntity.$posZ + $var6 * $this.$theEntity.$width1 / 4.0; - var$8 = $this.$worldObj; - var$9 = $this.$particleName0; - var$10 = $var4 + 0.2; - var$11 = 0; - } - $this.$currentLife = $this.$currentLife + 1 | 0; - if ($this.$currentLife >= $this.$maximumLife) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var4, $var6, $var8, $var10, $var12, var$8, var$9, var$10, var$11, var$12, $ptr); -}; -$java.nms_EntityCrit2FX_getFXLayer = function($this) { - return 3; -}; -function nms_ScoreObjectiveCriteria() { -} -$java.nms_ScoreObjectiveCriteria_field_96643_a = null; -$java.nms_ScoreObjectiveCriteria_field_96641_b = null; -$java.nms_ScoreObjectiveCriteria_field_96642_c = null; -var nms_ScoreObjectiveCriteria_field_96639_d = null; -var nms_ScoreObjectiveCriteria_field_96640_e = null; -$java.nms_ScoreObjectiveCriteria_field_96638_f = null; -function nms_ScoreObjectiveCriteria__clinit_() { - var var$1, var$2; - $java.nms_ScoreObjectiveCriteria_field_96643_a = ju_HashMap__init_1(16, 0.75); - var$1 = new $java.nms_ScoreDummyCriteria; - var$1.$field_96644_g = $rt_s(2805); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2805), var$1); - $java.nms_ScoreObjectiveCriteria_field_96641_b = var$1; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2806); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2806), var$2); - $java.nms_ScoreObjectiveCriteria_field_96642_c = var$2; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2807); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2807), var$2); - nms_ScoreObjectiveCriteria_field_96639_d = var$2; - var$2 = new $java.nms_ScoreDummyCriteria; - var$2.$field_96644_g = $rt_s(2808); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2808), var$2); - nms_ScoreObjectiveCriteria_field_96640_e = var$2; - var$2 = new $java.nms_ScoreHealthCriteria; - var$2.$field_96644_g = $rt_s(2809); - ju_HashMap_putImpl($java.nms_ScoreObjectiveCriteria_field_96643_a, $rt_s(2809), var$2); - $java.nms_ScoreObjectiveCriteria_field_96638_f = var$2; -} -function nms_Explosion() { - var a = this; jl_Object.call(a); - a.$isFlaming = 0; - a.$isSmoking = 0; - a.$field_77289_h = 0; - a.$explosionRNG = null; - a.$worldObj9 = null; - a.$explosionX0 = 0.0; - a.$explosionY0 = 0.0; - a.$explosionZ0 = 0.0; - a.$exploder = null; - a.$explosionSize0 = 0.0; - a.$affectedBlockPositions = null; - a.$field_77288_k = null; -} -function nms_Explosion__init_(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_Explosion(); - $java.nms_Explosion__init_(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -} -$java.nms_Explosion__init_ = function($this, $par1World, $par2Entity, $par3, $par5, $par7, $par9) { - var var$7; - $this.$isFlaming = 0; - $this.$isSmoking = 1; - $this.$field_77289_h = 16; - $this.$explosionRNG = new ju_Random; - var$7 = new ju_ArrayList; - var$7.$array1 = $rt_createArray(jl_Object, 10); - $this.$affectedBlockPositions = var$7; - $this.$field_77288_k = ju_HashMap__init_1(16, 0.75); - $this.$worldObj9 = $par1World; - $this.$exploder = $par2Entity; - $this.$explosionSize0 = $par9; - $this.$explosionX0 = $par3; - $this.$explosionY0 = $par5; - $this.$explosionZ0 = $par7; -}; -function nms_Explosion_doExplosionA($this) { - var $var1, $var2, $var3, $var4, $var5, $var6, $var8, $var10, $var12, $var14, $var15, $var17, $var19, $var22, $var23, $var24, $var25, $var26, $var5_0, $var29, $var7, $var30, $var9, $var31, $var11, $var32, $var13, $var33, $var35, $var36, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var36 = $thread.pop();$var35 = $thread.pop();$var33 = $thread.pop();$var13 = $thread.pop();$var32 = $thread.pop();$var11 = $thread.pop();$var31 = $thread.pop();$var9 = $thread.pop();$var30 = $thread.pop();$var7 = $thread.pop();$var29 = $thread.pop();$var5_0 = $thread.pop();$var26 = $thread.pop();$var25 = $thread.pop();$var24 = $thread.pop();$var23 = $thread.pop();$var22 = $thread.pop();$var19 = $thread.pop();$var17 = $thread.pop();$var15 = $thread.pop();$var14 = $thread.pop();$var12 - = $thread.pop();$var10 = $thread.pop();$var8 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = $this.$explosionSize0; - $var2 = ju_HashSet__init_0(); - $var3 = 0; - while ($var3 < $this.$field_77289_h) { - $var4 = 0; - while ($var4 < $this.$field_77289_h) { - $var5 = 0; - while ($var5 < $this.$field_77289_h) { - a: { - if (!($var3 && $var3 != ($this.$field_77289_h - 1 | 0) && $var4 && $var4 != ($this.$field_77289_h - 1 | 0) && $var5 && $var5 != ($this.$field_77289_h - 1 | 0))) { - $var6 = $var3 / ($this.$field_77289_h - 1.0) * 2.0 - 1.0; - $var8 = $var4 / ($this.$field_77289_h - 1.0) * 2.0 - 1.0; - $var10 = $var5 / ($this.$field_77289_h - 1.0) * 2.0 - 1.0; - $var12 = jl_Math_sqrt($var6 * $var6 + $var8 * $var8 + $var10 * $var10); - $var6 = $var6 / $var12; - $var8 = $var8 / $var12; - $var10 = $var10 / $var12; - $var14 = $this.$explosionSize0 * (0.699999988079071 + ju_Random_nextFloat($this.$worldObj9.$rand) * 0.6000000238418579); - $var15 = $this.$explosionX0; - $var17 = $this.$explosionY0; - $var19 = $this.$explosionZ0; - $var12 = $var6 * 0.30000001192092896; - $var8 = $var8 * 0.30000001192092896; - $var6 = $var10 * 0.30000001192092896; - while (true) { - if ($var14 <= 0.0) - break a; - $var22 = nms_MathHelper_floor_double($var15); - $var23 = nms_MathHelper_floor_double($var17); - $var24 = nms_MathHelper_floor_double($var19); - $var25 = nms_World_getBlockId($this.$worldObj9, $var22, $var23, $var24); - if ($var25 > 0) { - nms_Block_$callClinit(); - $var26 = nms_Block_blocksList.data[$var25]; - $var14 = $var14 - (($this.$exploder === null ? $var26.$getExplosionResistance($this.$exploder) : $this.$exploder.$func_82146_a($this, $this.$worldObj9, $var22, $var23, $var24, $var26)) + 0.30000001192092896) * 0.30000001192092896; - } - if ($var14 > 0.0 && !($this.$exploder !== null && !$this.$exploder.$func_96091_a($this, $this.$worldObj9, $var22, $var23, $var24, $var25, $var14))) - ju_HashSet_add($var2, $java.nms_ChunkPosition__init_($var22, $var23, $var24)); - $var15 = $var15 + $var12; - $var17 = $var17 + $var8; - $var19 = $var19 + $var6; - $var14 = $var14 - 0.22500000894069672; - } - } - } - $var5 = $var5 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - ju_AbstractCollection_addAll($this.$affectedBlockPositions, $var2); - $this.$explosionSize0 = $this.$explosionSize0 * 2.0; - $var5 = nms_MathHelper_floor_double($this.$explosionX0 - $this.$explosionSize0 - 1.0); - $var4 = nms_MathHelper_floor_double($this.$explosionX0 + $this.$explosionSize0 + 1.0); - $var5_0 = nms_MathHelper_floor_double($this.$explosionY0 - $this.$explosionSize0 - 1.0); - $var29 = nms_MathHelper_floor_double($this.$explosionY0 + $this.$explosionSize0 + 1.0); - $var7 = nms_MathHelper_floor_double($this.$explosionZ0 - $this.$explosionSize0 - 1.0); - $var30 = nms_MathHelper_floor_double($this.$explosionZ0 + $this.$explosionSize0 + 1.0); - $var9 = nms_World_getEntitiesWithinAABBExcludingEntity0($this.$worldObj9, $this.$exploder, nms_AABBPool_getAABB(nms_AxisAlignedBB_getAABBPool(), $var5, $var5_0, $var7, $var4, $var29, $var30)); - $var31 = nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj9), $this.$explosionX0, $this.$explosionY0, $this.$explosionZ0); - $var11 = 0; - while ($var11 < ju_ArrayList_size($var9)) { - $var32 = ju_ArrayList_get($var9, $var11); - $var13 = nms_Entity_getDistance($var32, $this.$explosionX0, $this.$explosionY0, $this.$explosionZ0) / $this.$explosionSize0; - if ($var13 <= 1.0) { - $var15 = $var32.$posX - $this.$explosionX0; - $var17 = $var32.$posY + $var32.$getEyeHeight() - $this.$explosionY0; - $var19 = $var32.$posZ - $this.$explosionZ0; - $var33 = nms_MathHelper_sqrt_double($var15 * $var15 + $var17 * $var17 + $var19 * $var19); - if ($var33 !== 0.0) { - $var6 = $var15 / $var33; - $var8 = $var17 / $var33; - $var10 = $var19 / $var33; - $var35 = (1.0 - $var13) * nms_World_getBlockDensity($this.$worldObj9, $var31, $var32.$boundingBox); - $var2 = nms_DamageSource_setExplosionSource($this); - $var5 = ($var35 * $var35 + $var35) / 2.0 * 8.0 * $this.$explosionSize0 + 1.0 | 0; - $ptr = 1; - continue main; - } - } - $var11 = $var11 + 1 | 0; - } - $this.$explosionSize0 = $var1; - return; - case 1: - $var32.$attackEntityFrom($var2, $var5); - if ($rt_suspending()) { - break main; - } - $var36 = $java.nms_EnchantmentProtection_func_92092_a($var32, $var35); - $var32.$motionX = $var32.$motionX + $var6 * $var36; - $var32.$motionY = $var32.$motionY + $var8 * $var36; - $var32.$motionZ = $var32.$motionZ + $var10 * $var36; - if ($var32 instanceof nms_EntityPlayer) - ju_HashMap_put($this.$field_77288_k, $var32, nms_Vec3Pool_getVecFromPool(nms_World_getWorldVec3Pool($this.$worldObj9), $var6 * $var35, $var8 * $var35, $var10 * $var35)); - while (true) { - $var11 = $var11 + 1 | 0; - if ($var11 >= ju_ArrayList_size($var9)) - break; - $var32 = ju_ArrayList_get($var9, $var11); - $var13 = nms_Entity_getDistance($var32, $this.$explosionX0, $this.$explosionY0, $this.$explosionZ0) / $this.$explosionSize0; - if ($var13 > 1.0) - continue; - $var15 = $var32.$posX - $this.$explosionX0; - $var17 = $var32.$posY + $var32.$getEyeHeight() - $this.$explosionY0; - $var19 = $var32.$posZ - $this.$explosionZ0; - $var33 = nms_MathHelper_sqrt_double($var15 * $var15 + $var17 * $var17 + $var19 * $var19); - if ($var33 === 0.0) - continue; - else { - $var6 = $var15 / $var33; - $var8 = $var17 / $var33; - $var10 = $var19 / $var33; - $var35 = (1.0 - $var13) * nms_World_getBlockDensity($this.$worldObj9, $var31, $var32.$boundingBox); - $var2 = nms_DamageSource_setExplosionSource($this); - $var5 = ($var35 * $var35 + $var35) / 2.0 * 8.0 * $this.$explosionSize0 + 1.0 | 0; - continue main; - } - } - $this.$explosionSize0 = $var1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var3, $var4, $var5, $var6, $var8, $var10, $var12, $var14, $var15, $var17, $var19, $var22, $var23, $var24, $var25, $var26, $var5_0, $var29, $var7, $var30, $var9, $var31, $var11, $var32, $var13, $var33, $var35, $var36, $ptr); -} -function nms_Explosion_doExplosionB($this, $par1) { - var $var2, $var3, $var10, $var12, $var14, $var16, $var18, $var20, $var4, $var24, $var5, $var6, $var7, $var8, var$16, var$17, $var25, var$19, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$19 = $thread.pop();$var25 = $thread.pop();var$17 = $thread.pop();var$16 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var24 = $thread.pop();$var4 = $thread.pop();$var20 = $thread.pop();$var18 = $thread.pop();$var16 = $thread.pop();$var14 = $thread.pop();$var12 = $thread.pop();$var10 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - nms_World_playSoundEffect($this.$worldObj9, $this.$explosionX0, $this.$explosionY0, $this.$explosionZ0, $rt_s(1528), 4.0, (1.0 + (Math.random() - Math.random()) * 0.20000000298023224) * 0.699999988079071); - if ($this.$explosionSize0 >= 2.0 && $this.$isSmoking) { - $var2 = $this.$worldObj9; - $var3 = $rt_s(844); - $var10 = $this.$explosionX0; - $var12 = $this.$explosionY0; - $var14 = $this.$explosionZ0; - $var16 = 1.0; - $var18 = 0.0; - $var20 = 0.0; - $var4 = 0; - if ($var4 >= $var2.$worldAccesses.$size0) - break a; - $var24 = $var2.$worldAccesses; - if ($var4 >= 0 && $var4 < $var24.$size0) { - $var24 = $var24.$array1.data[$var4]; - $ptr = 2; - continue main; - } - $var2 = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($var2); - $rt_throw($var2); - } - $var2 = $this.$worldObj9; - $var3 = $rt_s(845); - $var12 = $this.$explosionX0; - $var14 = $this.$explosionY0; - $var16 = $this.$explosionZ0; - $var18 = 1.0; - $var20 = 0.0; - $var10 = 0.0; - $var4 = 0; - if ($var4 < $var2.$worldAccesses.$size0) { - $var24 = $var2.$worldAccesses; - if ($var4 >= 0 && $var4 < $var24.$size0) { - $var24 = $var24.$array1.data[$var4]; - $ptr = 1; - continue main; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - } - b: { - if ($this.$isSmoking) { - $var2 = ju_AbstractList_iterator($this.$affectedBlockPositions); - while (true) { - if (!ju_AbstractList$1_hasNext($var2)) - break b; - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - if ($par1) { - $var8 = $var4 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var10 = $var5 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var12 = $var6 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var14 = $var8 - $this.$explosionX0; - $var16 = $var10 - $this.$explosionY0; - $var18 = $var12 - $this.$explosionZ0; - $var20 = nms_MathHelper_sqrt_double($var14 * $var14 + $var16 * $var16 + $var18 * $var18); - $var14 = $var14 / $var20; - $var16 = $var16 / $var20; - $var18 = $var18 / $var20; - $var20 = 0.5 / ($var20 / $this.$explosionSize0 + 0.1) * (ju_Random_nextFloat($this.$worldObj9.$rand) * ju_Random_nextFloat($this.$worldObj9.$rand) + 0.30000001192092896); - $var14 = $var14 * $var20; - $var16 = $var16 * $var20; - $var18 = $var18 * $var20; - $var3 = $this.$worldObj9; - $var24 = $rt_s(688); - var$16 = ($var8 + $this.$explosionX0 * 1.0) / 2.0; - var$17 = ($var10 + $this.$explosionY0 * 1.0) / 2.0; - $var20 = ($var12 + $this.$explosionZ0 * 1.0) / 2.0; - $ptr = 3; - continue main; - } - if ($var7 <= 0) - continue; - else - break; - } - nms_Block_$callClinit(); - $var24 = nms_Block_blocksList.data[$var7]; - if ($var24.$canDropFromExplosion($this)) - $var24.$dropBlockAsItemWithChance($this.$worldObj9, $var4, $var5, $var6, nms_World_getBlockMetadata($this.$worldObj9, $var4, $var5, $var6), 1.0 / $this.$explosionSize0, 0); - $var3 = $this.$worldObj9; - $var7 = 0; - $var25 = 0; - var$19 = 3; - $ptr = 5; - continue main; - } - } - c: { - if ($this.$isFlaming) { - $var2 = ju_AbstractList_iterator($this.$affectedBlockPositions); - while (true) { - if (!ju_AbstractList$1_hasNext($var2)) - break c; - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - $var25 = nms_World_getBlockId($this.$worldObj9, $var4, $var5 - 1 | 0, $var6); - if (!$var7) { - nms_Block_$callClinit(); - if (nms_Block_opaqueCubeLookup.data[$var25] && !ju_Random_nextInt0($this.$explosionRNG, 3)) { - $var3 = $this.$worldObj9; - $par1 = nms_Block_fire.$blockID; - $ptr = 6; - continue main; - } - } - } - } - } - return; - case 1: - nms_RenderGlobal_doSpawnParticle($var24, $var3, $var12, $var14, $var16, $var18, $var20, $var10); - if ($rt_suspending()) { - break main; - } - $var4 = $var4 + 1 | 0; - if ($var4 < $var2.$worldAccesses.$size0) { - $var24 = $var2.$worldAccesses; - if ($var4 >= 0 && $var4 < $var24.$size0) { - $var24 = $var24.$array1.data[$var4]; - continue main; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - d: { - if ($this.$isSmoking) { - $var2 = ju_AbstractList_iterator($this.$affectedBlockPositions); - while (true) { - if (!ju_AbstractList$1_hasNext($var2)) - break d; - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - if ($par1) { - $var8 = $var4 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var10 = $var5 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var12 = $var6 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var14 = $var8 - $this.$explosionX0; - $var16 = $var10 - $this.$explosionY0; - $var18 = $var12 - $this.$explosionZ0; - $var20 = nms_MathHelper_sqrt_double($var14 * $var14 + $var16 * $var16 + $var18 * $var18); - $var14 = $var14 / $var20; - $var16 = $var16 / $var20; - $var18 = $var18 / $var20; - $var20 = 0.5 / ($var20 / $this.$explosionSize0 + 0.1) * (ju_Random_nextFloat($this.$worldObj9.$rand) * ju_Random_nextFloat($this.$worldObj9.$rand) + 0.30000001192092896); - $var14 = $var14 * $var20; - $var16 = $var16 * $var20; - $var18 = $var18 * $var20; - $var3 = $this.$worldObj9; - $var24 = $rt_s(688); - var$16 = ($var8 + $this.$explosionX0 * 1.0) / 2.0; - var$17 = ($var10 + $this.$explosionY0 * 1.0) / 2.0; - $var20 = ($var12 + $this.$explosionZ0 * 1.0) / 2.0; - $ptr = 3; - continue main; - } - if ($var7 <= 0) - continue; - else - break; - } - nms_Block_$callClinit(); - $var24 = nms_Block_blocksList.data[$var7]; - if ($var24.$canDropFromExplosion($this)) - $var24.$dropBlockAsItemWithChance($this.$worldObj9, $var4, $var5, $var6, nms_World_getBlockMetadata($this.$worldObj9, $var4, $var5, $var6), 1.0 / $this.$explosionSize0, 0); - $var3 = $this.$worldObj9; - $var7 = 0; - $var25 = 0; - var$19 = 3; - $ptr = 5; - continue main; - } - } - e: { - if ($this.$isFlaming) { - $var2 = ju_AbstractList_iterator($this.$affectedBlockPositions); - while (true) { - if (!ju_AbstractList$1_hasNext($var2)) - break e; - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - $var25 = nms_World_getBlockId($this.$worldObj9, $var4, $var5 - 1 | 0, $var6); - if (!$var7) { - nms_Block_$callClinit(); - if (nms_Block_opaqueCubeLookup.data[$var25] && !ju_Random_nextInt0($this.$explosionRNG, 3)) { - $var3 = $this.$worldObj9; - $par1 = nms_Block_fire.$blockID; - $ptr = 6; - continue main; - } - } - } - } - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle($var24, $var3, $var10, $var12, $var14, $var16, $var18, $var20); - if ($rt_suspending()) { - break main; - } - $var4 = $var4 + 1 | 0; - if ($var4 < $var2.$worldAccesses.$size0) { - $var24 = $var2.$worldAccesses; - if ($var4 >= 0 && $var4 < $var24.$size0) { - $var24 = $var24.$array1.data[$var4]; - continue main; - } - $var2 = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($var2); - $rt_throw($var2); - } - d: { - if ($this.$isSmoking) { - $var2 = ju_AbstractList_iterator($this.$affectedBlockPositions); - while (true) { - if (!ju_AbstractList$1_hasNext($var2)) - break d; - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - if ($par1) { - $var8 = $var4 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var10 = $var5 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var12 = $var6 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var14 = $var8 - $this.$explosionX0; - $var16 = $var10 - $this.$explosionY0; - $var18 = $var12 - $this.$explosionZ0; - $var20 = nms_MathHelper_sqrt_double($var14 * $var14 + $var16 * $var16 + $var18 * $var18); - $var14 = $var14 / $var20; - $var16 = $var16 / $var20; - $var18 = $var18 / $var20; - $var20 = 0.5 / ($var20 / $this.$explosionSize0 + 0.1) * (ju_Random_nextFloat($this.$worldObj9.$rand) * ju_Random_nextFloat($this.$worldObj9.$rand) + 0.30000001192092896); - $var14 = $var14 * $var20; - $var16 = $var16 * $var20; - $var18 = $var18 * $var20; - $var3 = $this.$worldObj9; - $var24 = $rt_s(688); - var$16 = ($var8 + $this.$explosionX0 * 1.0) / 2.0; - var$17 = ($var10 + $this.$explosionY0 * 1.0) / 2.0; - $var20 = ($var12 + $this.$explosionZ0 * 1.0) / 2.0; - $ptr = 3; - continue main; - } - if ($var7 <= 0) - continue; - else - break; - } - nms_Block_$callClinit(); - $var24 = nms_Block_blocksList.data[$var7]; - if ($var24.$canDropFromExplosion($this)) - $var24.$dropBlockAsItemWithChance($this.$worldObj9, $var4, $var5, $var6, nms_World_getBlockMetadata($this.$worldObj9, $var4, $var5, $var6), 1.0 / $this.$explosionSize0, 0); - $var3 = $this.$worldObj9; - $var7 = 0; - $var25 = 0; - var$19 = 3; - $ptr = 5; - continue main; - } - } - e: { - if ($this.$isFlaming) { - $var2 = ju_AbstractList_iterator($this.$affectedBlockPositions); - while (true) { - if (!ju_AbstractList$1_hasNext($var2)) - break e; - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - $var25 = nms_World_getBlockId($this.$worldObj9, $var4, $var5 - 1 | 0, $var6); - if (!$var7) { - nms_Block_$callClinit(); - if (nms_Block_opaqueCubeLookup.data[$var25] && !ju_Random_nextInt0($this.$explosionRNG, 3)) { - $var3 = $this.$worldObj9; - $par1 = nms_Block_fire.$blockID; - $ptr = 6; - continue main; - } - } - } - } - } - return; - case 3: - nms_World_spawnParticle($var3, $var24, var$16, var$17, $var20, $var14, $var16, $var18); - if ($rt_suspending()) { - break main; - } - $var3 = $this.$worldObj9; - $var24 = $rt_s(852); - $ptr = 4; - case 4: - nms_World_spawnParticle($var3, $var24, $var8, $var10, $var12, $var14, $var16, $var18); - if ($rt_suspending()) { - break main; - } - while ($var7 <= 0) { - if (!ju_AbstractList$1_hasNext($var2)) { - f: { - if ($this.$isFlaming) { - $var2 = ju_AbstractList_iterator($this.$affectedBlockPositions); - while (true) { - if (!ju_AbstractList$1_hasNext($var2)) - break f; - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - $var25 = nms_World_getBlockId($this.$worldObj9, $var4, $var5 - 1 | 0, $var6); - if (!$var7) { - nms_Block_$callClinit(); - if (nms_Block_opaqueCubeLookup.data[$var25] && !ju_Random_nextInt0($this.$explosionRNG, 3)) { - $var3 = $this.$worldObj9; - $par1 = nms_Block_fire.$blockID; - $ptr = 6; - continue main; - } - } - } - } - } - return; - } - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - if (!$par1) - continue; - else { - $var8 = $var4 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var10 = $var5 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var12 = $var6 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var14 = $var8 - $this.$explosionX0; - $var16 = $var10 - $this.$explosionY0; - $var18 = $var12 - $this.$explosionZ0; - $var20 = nms_MathHelper_sqrt_double($var14 * $var14 + $var16 * $var16 + $var18 * $var18); - $var14 = $var14 / $var20; - $var16 = $var16 / $var20; - $var18 = $var18 / $var20; - $var20 = 0.5 / ($var20 / $this.$explosionSize0 + 0.1) * (ju_Random_nextFloat($this.$worldObj9.$rand) * ju_Random_nextFloat($this.$worldObj9.$rand) + 0.30000001192092896); - $var14 = $var14 * $var20; - $var16 = $var16 * $var20; - $var18 = $var18 * $var20; - $var3 = $this.$worldObj9; - $var24 = $rt_s(688); - var$16 = ($var8 + $this.$explosionX0 * 1.0) / 2.0; - var$17 = ($var10 + $this.$explosionY0 * 1.0) / 2.0; - $var20 = ($var12 + $this.$explosionZ0 * 1.0) / 2.0; - $ptr = 3; - continue main; - } - } - nms_Block_$callClinit(); - $var24 = nms_Block_blocksList.data[$var7]; - if ($var24.$canDropFromExplosion($this)) - $var24.$dropBlockAsItemWithChance($this.$worldObj9, $var4, $var5, $var6, nms_World_getBlockMetadata($this.$worldObj9, $var4, $var5, $var6), 1.0 / $this.$explosionSize0, 0); - $var3 = $this.$worldObj9; - $var7 = 0; - $var25 = 0; - var$19 = 3; - $ptr = 5; - case 5: - nms_World_setBlock($var3, $var4, $var5, $var6, $var7, $var25, var$19); - if ($rt_suspending()) { - break main; - } - $var24.$onBlockDestroyedByExplosion($this.$worldObj9, $var4, $var5, $var6, $this); - while (true) { - if (!ju_AbstractList$1_hasNext($var2)) { - f: { - if ($this.$isFlaming) { - $var2 = ju_AbstractList_iterator($this.$affectedBlockPositions); - while (true) { - if (!ju_AbstractList$1_hasNext($var2)) - break f; - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - $var25 = nms_World_getBlockId($this.$worldObj9, $var4, $var5 - 1 | 0, $var6); - if (!$var7) { - nms_Block_$callClinit(); - if (nms_Block_opaqueCubeLookup.data[$var25] && !ju_Random_nextInt0($this.$explosionRNG, 3)) { - $var3 = $this.$worldObj9; - $par1 = nms_Block_fire.$blockID; - $ptr = 6; - continue main; - } - } - } - } - } - return; - } - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - if ($par1) { - $var8 = $var4 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var10 = $var5 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var12 = $var6 + ju_Random_nextFloat($this.$worldObj9.$rand); - $var14 = $var8 - $this.$explosionX0; - $var16 = $var10 - $this.$explosionY0; - $var18 = $var12 - $this.$explosionZ0; - $var20 = nms_MathHelper_sqrt_double($var14 * $var14 + $var16 * $var16 + $var18 * $var18); - $var14 = $var14 / $var20; - $var16 = $var16 / $var20; - $var18 = $var18 / $var20; - $var20 = 0.5 / ($var20 / $this.$explosionSize0 + 0.1) * (ju_Random_nextFloat($this.$worldObj9.$rand) * ju_Random_nextFloat($this.$worldObj9.$rand) + 0.30000001192092896); - $var14 = $var14 * $var20; - $var16 = $var16 * $var20; - $var18 = $var18 * $var20; - $var3 = $this.$worldObj9; - $var24 = $rt_s(688); - var$16 = ($var8 + $this.$explosionX0 * 1.0) / 2.0; - var$17 = ($var10 + $this.$explosionY0 * 1.0) / 2.0; - $var20 = ($var12 + $this.$explosionZ0 * 1.0) / 2.0; - $ptr = 3; - continue main; - } - if ($var7 <= 0) - continue; - else - break; - } - nms_Block_$callClinit(); - $var24 = nms_Block_blocksList.data[$var7]; - if ($var24.$canDropFromExplosion($this)) - $var24.$dropBlockAsItemWithChance($this.$worldObj9, $var4, $var5, $var6, nms_World_getBlockMetadata($this.$worldObj9, $var4, $var5, $var6), 1.0 / $this.$explosionSize0, 0); - $var3 = $this.$worldObj9; - $var7 = 0; - $var25 = 0; - var$19 = 3; - continue main; - case 6: - nms_World_setBlock0($var3, $var4, $var5, $var6, $par1); - if ($rt_suspending()) { - break main; - } - while (ju_AbstractList$1_hasNext($var2)) { - $var3 = ju_AbstractList$1_next($var2); - $var4 = $var3.$x3; - $var5 = $var3.$y2; - $var6 = $var3.$z5; - $var7 = nms_World_getBlockId($this.$worldObj9, $var4, $var5, $var6); - $var25 = nms_World_getBlockId($this.$worldObj9, $var4, $var5 - 1 | 0, $var6); - if ($var7) - continue; - nms_Block_$callClinit(); - if (!nms_Block_opaqueCubeLookup.data[$var25]) - continue; - if (ju_Random_nextInt0($this.$explosionRNG, 3)) - continue; - else { - $var3 = $this.$worldObj9; - $par1 = nms_Block_fire.$blockID; - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $var2, $var3, $var10, $var12, $var14, $var16, $var18, $var20, $var4, $var24, $var5, $var6, $var7, $var8, var$16, var$17, $var25, var$19, $ptr); -} -function nms_Explosion_func_94613_c($this) { - return $this.$exploder === null ? null : $this.$exploder instanceof nms_EntityTNTPrimed ? $this.$exploder.$tntPlacedBy : !($this.$exploder instanceof nms_EntityLiving) ? null : $this.$exploder; -} -$java.nms_GameRuleValue = function() { - var a = this; jl_Object.call(a); - a.$valueString = null; - a.$valueBoolean = 0; - a.$valueInteger = 0; - a.$valueDouble = 0.0; -}; -$java.nms_GameRuleValue_setValue = function($this, $par1Str) { - var $$je; - $this.$valueString = $par1Str; - $this.$valueBoolean = $par1Str !== null && jl_String_equals(jl_String_toLowerCase($par1Str), $rt_s(2700)) ? 1 : 0; - a: { - try { - $this.$valueInteger = jl_Integer_parseInt0($par1Str); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NumberFormatException) { - } else { - throw $$e; - } - } - } - b: { - try { - $this.$valueDouble = jl_Double_parseDouble($par1Str); - break b; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_NumberFormatException) { - } else { - throw $$e; - } - } - } -}; -$java.nms_GameRuleValue_getGameRuleBooleanValue = function($this) { - return $this.$valueBoolean; -}; -$java.nms_InventoryMerchant = function() { - var a = this; jl_Object.call(a); - a.$theMerchant = null; - a.$theInventory = null; - a.$thePlayer0 = null; - a.$currentRecipe = null; - a.$currentRecipeIndex0 = 0; -}; -$java.nms_InventoryMerchant_getStackInSlot = function($this, $par1) { - return $this.$theInventory.data[$par1]; -}; -$java.nms_InventoryMerchant_decrStackSize = function($this, $par1, $par2) { - var $var3, $var3_0; - if ($this.$theInventory.data[$par1] === null) - return null; - if ($par1 == 2) { - $var3 = $this.$theInventory.data[$par1]; - $this.$theInventory.data[$par1] = null; - return $var3; - } - if ($this.$theInventory.data[$par1].$stackSize <= $par2) { - $var3 = $this.$theInventory.data[$par1]; - $this.$theInventory.data[$par1] = null; - if ($par1 && $par1 != 1 ? 0 : 1) - $java.nms_InventoryMerchant_resetRecipeAndSlots($this); - return $var3; - } - $var3_0 = nms_ItemStack_splitStack($this.$theInventory.data[$par1], $par2); - if (!$this.$theInventory.data[$par1].$stackSize) - $this.$theInventory.data[$par1] = null; - if ($par1 && $par1 != 1 ? 0 : 1) - $java.nms_InventoryMerchant_resetRecipeAndSlots($this); - return $var3_0; -}; -$java.nms_InventoryMerchant_getStackInSlotOnClosing = function($this, $par1) { - var $var2; - if ($this.$theInventory.data[$par1] === null) - return null; - $var2 = $this.$theInventory.data[$par1]; - $this.$theInventory.data[$par1] = null; - return $var2; -}; -$java.nms_InventoryMerchant_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - $this.$theInventory.data[$par1] = $par2ItemStack; - if ($par2ItemStack !== null && $par2ItemStack.$stackSize > 64) - $par2ItemStack.$stackSize = 64; - if ($par1 && $par1 != 1 ? 0 : 1) - $java.nms_InventoryMerchant_resetRecipeAndSlots($this); -}; -$java.nms_InventoryMerchant_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_InventoryMerchant_onInventoryChanged = function($this) { - $java.nms_InventoryMerchant_resetRecipeAndSlots($this); -}; -$java.nms_InventoryMerchant_resetRecipeAndSlots = function($this) { - var $var1, $var2, var$3, $var3, $var4, var$6, var$7, var$8; - $this.$currentRecipe = null; - $var1 = $this.$theInventory.data[0]; - $var2 = $this.$theInventory.data[1]; - if ($var1 === null) - var$3 = null; - else { - var$3 = $var2; - $var2 = $var1; - } - if ($var2 === null) - $java.nms_InventoryMerchant_setInventorySlotContents($this, 2, null); - else { - $var3 = $this.$theMerchant.$getRecipes($this.$thePlayer0); - if ($var3 !== null) { - $var4 = $java.nms_MerchantRecipeList_canRecipeBeUsed($var3, $var2, var$3, $this.$currentRecipeIndex0); - if ($var4 !== null && !($var4.$toolUses < $var4.$maxTradeUses ? 0 : 1)) { - $this.$currentRecipe = $var4; - var$3 = $var4.$itemToSell; - $var1 = new nms_ItemStack; - var$6 = var$3.$itemID0; - var$7 = var$3.$stackSize; - var$8 = var$3.$itemDamage; - $var1.$stackSize = 0; - $var1.$itemFrame = null; - $var1.$itemID0 = var$6; - $var1.$stackSize = var$7; - $var1.$itemDamage = var$8; - if ($var1.$itemDamage < 0) - $var1.$itemDamage = 0; - if (var$3.$stackTagCompound !== null) - $var1.$stackTagCompound = nms_NBTTagCompound_copy(var$3.$stackTagCompound); - $java.nms_InventoryMerchant_setInventorySlotContents($this, 2, $var1); - } else if (var$3 === null) - $java.nms_InventoryMerchant_setInventorySlotContents($this, 2, null); - else { - $var1 = $java.nms_MerchantRecipeList_canRecipeBeUsed($var3, var$3, $var2, $this.$currentRecipeIndex0); - if ($var1 !== null && !($var1.$toolUses < $var1.$maxTradeUses ? 0 : 1)) { - $this.$currentRecipe = $var1; - var$3 = $var1.$itemToSell; - $var1 = new nms_ItemStack; - var$6 = var$3.$itemID0; - var$7 = var$3.$stackSize; - var$8 = var$3.$itemDamage; - $var1.$stackSize = 0; - $var1.$itemFrame = null; - $var1.$itemID0 = var$6; - $var1.$stackSize = var$7; - $var1.$itemDamage = var$8; - if ($var1.$itemDamage < 0) - $var1.$itemDamage = 0; - if (var$3.$stackTagCompound !== null) - $var1.$stackTagCompound = nms_NBTTagCompound_copy(var$3.$stackTagCompound); - $java.nms_InventoryMerchant_setInventorySlotContents($this, 2, $var1); - } else - $java.nms_InventoryMerchant_setInventorySlotContents($this, 2, null); - } - } - } -}; -$java.nms_InventoryMerchant_getCurrentRecipe = function($this) { - return $this.$currentRecipe; -}; -$java.nms_InventoryMerchant_setCurrentRecipeIndex = function($this, $par1) { - $this.$currentRecipeIndex0 = $par1; - $java.nms_InventoryMerchant_resetRecipeAndSlots($this); -}; -function nms_MerchantRecipe() { - var a = this; jl_Object.call(a); - a.$itemToBuy = null; - a.$secondItemToBuy = null; - a.$itemToSell = null; - a.$toolUses = 0; - a.$maxTradeUses = 0; -} -function nms_MerchantRecipe__init_(var_0, var_1, var_2) { - var var_3 = new nms_MerchantRecipe(); - $java.nms_MerchantRecipe__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.nms_MerchantRecipe__init_ = function($this, $par1ItemStack, $par2ItemStack, $par3ItemStack) { - $this.$itemToBuy = $par1ItemStack; - $this.$secondItemToBuy = $par2ItemStack; - $this.$itemToSell = $par3ItemStack; - $this.$maxTradeUses = 7; -}; -$java.nms_MerchantRecipe_getItemToBuy = function($this) { - return $this.$itemToBuy; -}; -$java.nms_MerchantRecipe_getSecondItemToBuy = function($this) { - return $this.$secondItemToBuy; -}; -$java.nms_MerchantRecipe_hasSecondItemToBuy = function($this) { - return $this.$secondItemToBuy === null ? 0 : 1; -}; -$java.nms_MerchantRecipe_getItemToSell = function($this) { - return $this.$itemToSell; -}; -function nms_MerchantRecipe_hasSameIDsAs($this, $par1MerchantRecipe) { - var var$2; - a: { - if ($this.$itemToBuy.$itemID0 == $par1MerchantRecipe.$itemToBuy.$itemID0 && $this.$itemToSell.$itemID0 == $par1MerchantRecipe.$itemToSell.$itemID0) { - b: { - if (!($this.$secondItemToBuy === null && $par1MerchantRecipe.$secondItemToBuy === null)) { - if ($this.$secondItemToBuy === null) - break b; - if ($par1MerchantRecipe.$secondItemToBuy === null) - break b; - if ($this.$secondItemToBuy.$itemID0 != $par1MerchantRecipe.$secondItemToBuy.$itemID0) - break b; - } - var$2 = 1; - break a; - } - var$2 = 0; - } else - var$2 = 0; - } - return var$2; -} -$java.nms_MerchantRecipe_hasSameItemsAs = function($this, $par1MerchantRecipe) { - var var$2; - a: { - b: { - if (nms_MerchantRecipe_hasSameIDsAs($this, $par1MerchantRecipe)) { - if ($this.$itemToBuy.$stackSize < $par1MerchantRecipe.$itemToBuy.$stackSize) - break b; - if ($this.$secondItemToBuy !== null && $this.$secondItemToBuy.$stackSize < $par1MerchantRecipe.$secondItemToBuy.$stackSize) - break b; - } - var$2 = 0; - break a; - } - var$2 = 1; - } - return var$2; -}; -$java.nms_MerchantRecipe_incrementToolUses = function($this) { - $this.$toolUses = $this.$toolUses + 1 | 0; -}; -$java.nms_MerchantRecipe_func_82783_a = function($this, $par1) { - $this.$maxTradeUses = $this.$maxTradeUses + $par1 | 0; -}; -$java.nms_MerchantRecipe_func_82784_g = function($this) { - return $this.$toolUses < $this.$maxTradeUses ? 0 : 1; -}; -$java.nms_MerchantRecipe_func_82785_h = function($this) { - $this.$toolUses = $this.$maxTradeUses; -}; -function nms_WorldProviderHell() { - nms_WorldProvider.call(this); -} -$java.nms_WorldProviderHell__init_ = function() { - var var_0 = new nms_WorldProviderHell(); - nms_WorldProviderHell__init_(var_0); - return var_0; -}; -function nms_WorldProviderHell__init_($this) { - $this.$isHellWorld = 0; - $this.$hasNoSky = 0; - $this.$lightBrightnessTable = $rt_createFloatArray(16); - $this.$dimensionId = 0; - $this.$colorsSunriseSunset = $rt_createFloatArray(4); -} -$java.nms_WorldProviderHell_registerWorldChunkManager = function($this) { - $this.$isHellWorld = 1; - $this.$hasNoSky = 1; - $this.$dimensionId = (-1); -}; -$java.nms_WorldProviderHell_getFogColor = function($this, $par1, $par2) { - return nms_Vec3Pool_getVecFromPool($this.$worldObj0.$vecPool, 0.20000000298023224, 0.029999999329447746, 0.029999999329447746); -}; -$java.nms_WorldProviderHell_generateLightBrightnessTable = function($this) { - var $var2, $var3; - $var2 = 0; - while ($var2 <= 15) { - $var3 = 1.0 - $var2 / 15.0; - $this.$lightBrightnessTable.data[$var2] = (1.0 - $var3) / ($var3 * 3.0 + 1.0) * 0.8999999761581421 + 0.10000000149011612; - $var2 = $var2 + 1 | 0; - } -}; -$java.nms_WorldProviderHell_isSurfaceWorld = function($this) { - return 0; -}; -$java.nms_WorldProviderHell_calculateCelestialAngle = function($this, $par1, $par3) { - return 0.5; -}; -$java.nms_WorldProviderHell_canRespawnHere = function($this) { - return 0; -}; -$java.nms_WorldProviderHell_doesXZShowFog = function($this, $par1, $par2) { - return 1; -}; -function nms_WorldProviderEnd() { - nms_WorldProvider.call(this); -} -$java.nms_WorldProviderEnd__init_ = function() { - var var_0 = new nms_WorldProviderEnd(); - nms_WorldProviderEnd__init_(var_0); - return var_0; -}; -function nms_WorldProviderEnd__init_($this) { - $this.$isHellWorld = 0; - $this.$hasNoSky = 0; - $this.$lightBrightnessTable = $rt_createFloatArray(16); - $this.$dimensionId = 0; - $this.$colorsSunriseSunset = $rt_createFloatArray(4); -} -$java.nms_WorldProviderEnd_registerWorldChunkManager = function($this) { - $this.$dimensionId = 1; - $this.$hasNoSky = 1; -}; -$java.nms_WorldProviderEnd_calculateCelestialAngle = function($this, $par1, $par3) { - return 0.0; -}; -$java.nms_WorldProviderEnd_calcSunriseSunsetColors = function($this, $par1, $par2) { - return null; -}; -$java.nms_WorldProviderEnd_getFogColor = function($this, $par1, $par2) { - var $var4, var$4, var$5; - $par1 = $par1 * 3.1415927410125732 * 2.0; - $var4 = nms_MathHelper_SIN_TABLE.data[($par1 * 10430.3779296875 + 16384.0 | 0) & 65535] * 2.0 + 0.5; - if ($var4 < 0.0) - $var4 = 0.0; - if ($var4 > 1.0) - $var4 = 1.0; - $par1 = $var4 * 0.0 + 0.15000000596046448; - $par2 = 0.6274510025978088 * $par1; - $par1 = 0.501960813999176 * $par1; - var$4 = $this.$worldObj0.$vecPool; - var$5 = $par2; - return nms_Vec3Pool_getVecFromPool(var$4, var$5, $par1, var$5); -}; -$java.nms_WorldProviderEnd_isSkyColored = function($this) { - return 0; -}; -$java.nms_WorldProviderEnd_canRespawnHere = function($this) { - return 0; -}; -$java.nms_WorldProviderEnd_isSurfaceWorld = function($this) { - return 0; -}; -$java.nms_WorldProviderEnd_getCloudHeight = function($this) { - return 8.0; -}; -$java.nms_WorldProviderEnd_doesXZShowFog = function($this, $par1, $par2) { - return 1; -}; -$java.nms_ScoreDummyCriteria = function() { - jl_Object.call(this); - this.$field_96644_g = null; -}; -$java.nms_ScoreDummyCriteria_isReadOnly = function($this) { - return 0; -}; -$java.nms_ScoreHealthCriteria = function() { - $java.nms_ScoreDummyCriteria.call(this); -}; -function nms_InventoryEnderChest() { - $java.nms_InventoryBasic.call(this); - this.$associatedChest = null; -} -$java.nms_InventoryEnderChest__init_ = function() { - var var_0 = new nms_InventoryEnderChest(); - nms_InventoryEnderChest__init_(var_0); - return var_0; -}; -function nms_InventoryEnderChest__init_($this) { - $this.$inventoryTitle = $rt_s(713); - $this.$field_94051_e = 0; - $this.$slotsCount = 27; - $this.$inventoryContents = $rt_createArray(nms_ItemStack, 27); -} -$java.nms_InventoryEnderChest_setAssociatedChest = function($this, $par1TileEntityEnderChest) { - $this.$associatedChest = $par1TileEntityEnderChest; -}; -$java.nms_InventoryEnderChest_isUseableByPlayer = function($this, $par1EntityPlayer) { - return $this.$associatedChest !== null && !$java.nms_TileEntityEnderChest_isUseableByPlayer($this.$associatedChest, $par1EntityPlayer) ? 0 : 1; -}; -$java.nms_InventoryEnderChest_openChest = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $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.$associatedChest !== null) { - var$1 = $this.$associatedChest; - var$1.$numUsingPlayers0 = var$1.$numUsingPlayers0 + 1 | 0; - var$2 = var$1.$worldObj5; - var$3 = var$1.$xCoord0; - var$4 = var$1.$yCoord0; - var$5 = var$1.$zCoord0; - nms_Block_$callClinit(); - var$6 = nms_Block_enderChest.$blockID; - var$7 = 1; - var$8 = var$1.$numUsingPlayers0; - if (var$6 > 0) { - var$1 = nms_Block_blocksList.data[var$6]; - $ptr = 1; - continue main; - } - } - return; - case 1: - var$1.$onBlockEventReceived(var$2, var$3, var$4, var$5, var$7, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_InventoryEnderChest_closeChest = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $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.$associatedChest !== null) { - var$1 = $this.$associatedChest; - var$1.$numUsingPlayers0 = var$1.$numUsingPlayers0 - 1 | 0; - var$2 = var$1.$worldObj5; - var$3 = var$1.$xCoord0; - var$4 = var$1.$yCoord0; - var$5 = var$1.$zCoord0; - nms_Block_$callClinit(); - var$6 = nms_Block_enderChest.$blockID; - var$7 = 1; - var$8 = var$1.$numUsingPlayers0; - if (var$6 > 0) { - var$1 = nms_Block_blocksList.data[var$6]; - $ptr = 1; - continue main; - } - } - $this.$associatedChest = null; - return; - case 1: - var$1.$onBlockEventReceived(var$2, var$3, var$4, var$5, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $this.$associatedChest = null; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -function nms_ContainerPlayer() { - var a = this; nms_Container.call(a); - a.$craftMatrix = null; - a.$craftResult = null; - a.$isLocalWorld = 0; - a.$thePlayer1 = null; -} -function nms_ContainerPlayer__init_(var_0, var_1, var_2) { - var var_3 = new nms_ContainerPlayer(); - $java.nms_ContainerPlayer__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.nms_ContainerPlayer__init_ = function($this, $par1InventoryPlayer, $par2, $par3EntityPlayer) { - var var$4, var$5, $var4, $var5, var$8, var$9; - nms_Container__init_($this); - var$4 = new nms_InventoryCrafting; - var$4.$stackList = $rt_createArray(nms_ItemStack, 4); - var$4.$eventHandler = $this; - var$4.$inventoryWidth = 2; - $this.$craftMatrix = var$4; - var$4 = new nms_InventoryCraftResult; - var$4.$stackResult = $rt_createArray(nms_ItemStack, 1); - $this.$craftResult = var$4; - $this.$isLocalWorld = 0; - $this.$isLocalWorld = $par2; - $this.$thePlayer1 = $par3EntityPlayer; - $par3EntityPlayer = new $java.nms_SlotCrafting; - var$4 = $par1InventoryPlayer.$player; - var$5 = $this.$craftMatrix; - $par3EntityPlayer.$inventory0 = $this.$craftResult; - $par3EntityPlayer.$slotIndex = 0; - $par3EntityPlayer.$xDisplayPosition = 144; - $par3EntityPlayer.$yDisplayPosition = 36; - $par3EntityPlayer.$thePlayer2 = var$4; - $par3EntityPlayer.$craftMatrix0 = var$5; - $par3EntityPlayer.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par3EntityPlayer); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = 0; - while ($var4 < 2) { - $var5 = 0; - while ($var5 < 2) { - $par3EntityPlayer = new $java.nms_Slot; - var$4 = $this.$craftMatrix; - $par2 = $var5 + ($var4 * 2 | 0) | 0; - var$8 = 88 + ($var5 * 18 | 0) | 0; - var$9 = 26 + ($var4 * 18 | 0) | 0; - $par3EntityPlayer.$inventory0 = var$4; - $par3EntityPlayer.$slotIndex = $par2; - $par3EntityPlayer.$xDisplayPosition = var$8; - $par3EntityPlayer.$yDisplayPosition = var$9; - $par3EntityPlayer.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par3EntityPlayer); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var5 = $var5 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - $var4 = 0; - while ($var4 < 4) { - $par3EntityPlayer = new $java.nms_SlotArmor; - $var5 = (($par1InventoryPlayer.$mainInventory.data.length + 4 | 0) - 1 | 0) - $var4 | 0; - $par2 = 8 + ($var4 * 18 | 0) | 0; - $par3EntityPlayer.$inventory0 = $par1InventoryPlayer; - $par3EntityPlayer.$slotIndex = $var5; - $par3EntityPlayer.$xDisplayPosition = 8; - $par3EntityPlayer.$yDisplayPosition = $par2; - $par3EntityPlayer.$parent1 = $this; - $par3EntityPlayer.$armorType0 = $var4; - $par3EntityPlayer.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par3EntityPlayer); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = $var4 + 1 | 0; - } - $par2 = 0; - while ($par2 < 3) { - $var5 = 0; - while ($var5 < 9) { - $par3EntityPlayer = new $java.nms_Slot; - $var4 = $var5 + (($par2 + 1 | 0) * 9 | 0) | 0; - var$8 = 8 + ($var5 * 18 | 0) | 0; - var$9 = 84 + ($par2 * 18 | 0) | 0; - $par3EntityPlayer.$inventory0 = $par1InventoryPlayer; - $par3EntityPlayer.$slotIndex = $var4; - $par3EntityPlayer.$xDisplayPosition = var$8; - $par3EntityPlayer.$yDisplayPosition = var$9; - $par3EntityPlayer.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par3EntityPlayer); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var5 = $var5 + 1 | 0; - } - $par2 = $par2 + 1 | 0; - } - $par2 = 0; - while ($par2 < 9) { - $par3EntityPlayer = new $java.nms_Slot; - $var4 = 8 + ($par2 * 18 | 0) | 0; - $par3EntityPlayer.$inventory0 = $par1InventoryPlayer; - $par3EntityPlayer.$slotIndex = $par2; - $par3EntityPlayer.$xDisplayPosition = $var4; - $par3EntityPlayer.$yDisplayPosition = 142; - $par3EntityPlayer.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par3EntityPlayer); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $par2 = $par2 + 1 | 0; - } - $par1InventoryPlayer = $this.$craftResult; - nms_CraftingManager_$callClinit(); - $par3EntityPlayer = nms_CraftingManager_findMatchingRecipe(nms_CraftingManager_instance, $this.$craftMatrix, $this.$thePlayer1.$worldObj); - $par1InventoryPlayer.$stackResult.data[0] = $par3EntityPlayer; -}; -$java.nms_ContainerPlayer_onCraftMatrixChanged = function($this, $par1IInventory) { - var var$2; - $par1IInventory = $this.$craftResult; - nms_CraftingManager_$callClinit(); - var$2 = nms_CraftingManager_findMatchingRecipe(nms_CraftingManager_instance, $this.$craftMatrix, $this.$thePlayer1.$worldObj); - $par1IInventory.$stackResult.data[0] = var$2; -}; -function nms_ContainerPlayer_onCraftGuiClosed($this, $par1EntityPlayer) { - var var$2, $var2, $var3; - var$2 = $par1EntityPlayer.$inventory; - if (var$2.$itemStack !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, var$2.$itemStack, 0); - var$2.$itemStack = null; - } - $var2 = 0; - while ($var2 < 4) { - var$2 = $this.$craftMatrix; - if (var$2.$stackList.data[$var2] === null) - $var3 = null; - else { - $var3 = var$2.$stackList.data[$var2]; - var$2.$stackList.data[$var2] = null; - } - if ($var3 !== null) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, $var3, 0); - $var2 = $var2 + 1 | 0; - } - var$2 = $this.$craftResult; - $par1EntityPlayer = null; - var$2.$stackResult.data[0] = $par1EntityPlayer; -} -$java.nms_ContainerPlayer_canInteractWith = function($this, $par1EntityPlayer) { - return 1; -}; -$java.nms_ContainerPlayer_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, var$4, $var4, $var5, var$7, var$8, var$9, $var6, var$11, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$11 = $thread.pop();$var6 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - var$4 = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < var$4.$size0) { - $var4 = var$4.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$7 = $var5.$itemID0; - var$8 = $var5.$stackSize; - var$9 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$7; - $var3.$stackSize = var$8; - $var3.$itemDamage = var$9; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if (!$par2) { - $par2 = 9; - $var6 = 45; - var$7 = 1; - $ptr = 1; - continue main; - } - if ($par2 >= 1 && $par2 < 5) { - $par2 = 9; - $var6 = 45; - var$7 = 0; - $ptr = 2; - continue main; - } - if ($par2 >= 5 && $par2 < 9) { - $par2 = 9; - $var6 = 45; - var$7 = 0; - $ptr = 3; - continue main; - } - a: { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var3.$itemID0] instanceof nms_ItemArmor) { - var$11 = $this.$inventorySlots; - var$7 = 5 + nms_Item_itemsList.data[$var3.$itemID0].$armorType | 0; - if (var$7 >= 0 && var$7 < var$11.$size0) { - if (var$11.$array1.data[var$7].$getHasStack()) - break a; - $var6 = 5 + nms_Item_itemsList.data[$var3.$itemID0].$armorType | 0; - $par2 = $var6 + 1 | 0; - var$7 = 0; - $ptr = 10; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - } - } - if ($par2 >= 9 && $par2 < 36) { - $par2 = 36; - $var6 = 45; - var$7 = 0; - $ptr = 7; - continue main; - } - if ($par2 >= 36 && $par2 < 45) { - $par2 = 9; - $var6 = 36; - var$7 = 0; - $ptr = 9; - continue main; - } - $par2 = 9; - $var6 = 45; - var$7 = 0; - $ptr = 6; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, $var6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - $java.nms_Slot_onSlotChange($var4, $var5, $var3); - if ($var5.$stackSize) { - $ptr = 4; - continue main; - } - var$4 = null; - $ptr = 5; - continue main; - case 2: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, $var6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 4; - continue main; - } - var$4 = null; - $ptr = 5; - continue main; - case 3: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, $var6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 4; - continue main; - } - var$4 = null; - $ptr = 5; - continue main; - case 4: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 8; - continue main; - case 5: - $var4.$putStack(var$4); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 8; - continue main; - case 6: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, $var6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 4; - continue main; - } - var$4 = null; - $ptr = 5; - continue main; - case 7: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, $var6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 4; - continue main; - } - var$4 = null; - $ptr = 5; - continue main; - case 8: - $var4.$onPickupFromSlot($par1EntityPlayer, $var5); - if ($rt_suspending()) { - break main; - } - return $var3; - case 9: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, $var6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 4; - continue main; - } - var$4 = null; - $ptr = 5; - continue main; - case 10: - $tmp = nms_Container_mergeItemStack($this, $var5, $var6, $par2, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 4; - continue main; - } - var$4 = null; - $ptr = 5; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, var$4, $var4, $var5, var$7, var$8, var$9, $var6, var$11, $ptr); -}; -$java.nms_ContainerPlayer_func_94530_a = function($this, $par1ItemStack, $par2Slot) { - return $par2Slot.$inventory0 === $this.$craftResult ? 0 : 1; -}; -function nms_InventoryCraftResult() { - jl_Object.call(this); - this.$stackResult = null; -} -$java.nms_InventoryCraftResult__init_ = function() { - var var_0 = new nms_InventoryCraftResult(); - nms_InventoryCraftResult__init_(var_0); - return var_0; -}; -function nms_InventoryCraftResult__init_($this) { - $this.$stackResult = $rt_createArray(nms_ItemStack, 1); -} -$java.nms_InventoryCraftResult_getStackInSlot = function($this, $par1) { - return $this.$stackResult.data[0]; -}; -$java.nms_InventoryCraftResult_decrStackSize = function($this, $par1, $par2) { - var $var3; - if ($this.$stackResult.data[0] === null) - return null; - $var3 = $this.$stackResult.data[0]; - $this.$stackResult.data[0] = null; - return $var3; -}; -$java.nms_InventoryCraftResult_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - $this.$stackResult.data[0] = $par2ItemStack; -}; -$java.nms_InventoryCraftResult_getInventoryStackLimit = function($this) { - return 64; -}; -$java.nms_InventoryCraftResult_onInventoryChanged = function($this) { - return; -}; -$java.nms_SlotCrafting = function() { - var a = this; $java.nms_Slot.call(a); - a.$craftMatrix0 = null; - a.$thePlayer2 = null; - a.$amountCrafted = 0; -}; -$java.nms_SlotCrafting_isItemValid = function($this, $par1ItemStack) { - return 0; -}; -$java.nms_SlotCrafting_decrStackSize = function($this, $par1) { - var 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();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$inventory0.$getStackInSlot($this.$slotIndex) === null ? 0 : 1) { - var$2 = $this.$amountCrafted; - var$3 = $this.$inventory0.$getStackInSlot($this.$slotIndex).$stackSize; - if ($par1 < var$3) - var$3 = $par1; - $this.$amountCrafted = var$2 + var$3 | 0; - } - var$4 = $this.$inventory0; - var$2 = $this.$slotIndex; - $ptr = 1; - case 1: - $tmp = var$4.$decrStackSize(var$2, $par1); - if ($rt_suspending()) { - break main; - } - var$4 = $tmp; - return var$4; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, var$3, var$4, $ptr); -}; -$java.nms_SlotCrafting_onCrafting = function($this, $par1ItemStack, $par2) { - $this.$amountCrafted = $this.$amountCrafted + $par2 | 0; - $java.nms_SlotCrafting_onCrafting0($this, $par1ItemStack); -}; -$java.nms_SlotCrafting_onCrafting0 = function($this, $par1ItemStack) { - var var$2, var$3, var$4; - a: { - var$2 = $this.$thePlayer2.$worldObj; - var$3 = $this.$thePlayer2; - nms_Item_$callClinit(); - nms_Item_itemsList.data[$par1ItemStack.$itemID0].$onCreated($par1ItemStack, var$2, var$3); - $this.$amountCrafted = 0; - var$4 = $par1ItemStack.$itemID0; - nms_Block_$callClinit(); - if (var$4 == nms_Block_workbench.$blockID) { - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_buildWorkBench, 1); - break a; - } - if ($par1ItemStack.$itemID0 == nms_Item_pickaxeWood.$itemID) { - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_buildPickaxe, 1); - break a; - } - if ($par1ItemStack.$itemID0 == nms_Block_furnaceIdle.$blockID) { - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_buildFurnace, 1); - break a; - } - if ($par1ItemStack.$itemID0 == nms_Item_hoeWood.$itemID) { - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_buildHoe, 1); - break a; - } - if ($par1ItemStack.$itemID0 == nms_Item_bread.$itemID) { - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_makeBread, 1); - break a; - } - if ($par1ItemStack.$itemID0 == nms_Item_cake.$itemID) { - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_bakeCake, 1); - break a; - } - if ($par1ItemStack.$itemID0 == nms_Item_pickaxeStone.$itemID) { - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_buildBetterPickaxe, 1); - break a; - } - if ($par1ItemStack.$itemID0 == nms_Item_swordWood.$itemID) { - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_buildSword, 1); - break a; - } - if ($par1ItemStack.$itemID0 == nms_Block_enchantmentTable.$blockID) { - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_enchantments, 1); - break a; - } - if ($par1ItemStack.$itemID0 != nms_Block_bookShelf.$blockID) - break a; - $par1ItemStack = $this.$thePlayer2; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_bookcase, 1); - } -}; -$java.nms_SlotCrafting_onPickupFromSlot = function($this, $par1EntityPlayer, $par2ItemStack) { - var $var3, $var4, $var5, var$6; - $java.nms_SlotCrafting_onCrafting0($this, $par2ItemStack); - $var3 = 0; - while ($var3 < $this.$craftMatrix0.$stackList.data.length) { - $par1EntityPlayer = $this.$craftMatrix0; - $var4 = $var3 >= $par1EntityPlayer.$stackList.data.length ? null : $par1EntityPlayer.$stackList.data[$var3]; - if ($var4 !== null) { - $java.nms_InventoryCrafting_decrStackSize($this.$craftMatrix0, $var3, 1); - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$var4.$itemID0].$containerItem === null ? 0 : 1) { - $var5 = new nms_ItemStack; - var$6 = nms_Item_itemsList.data[$var4.$itemID0].$containerItem.$itemID; - $var5.$stackSize = 0; - $var5.$itemFrame = null; - $var5.$itemID0 = var$6; - $var5.$stackSize = 1; - $var5.$itemDamage = 0; - if ($var5.$itemDamage < 0) - $var5.$itemDamage = 0; - if (!nms_InventoryPlayer_addItemStackToInventory($this.$thePlayer2.$inventory, $var5)) { - $par1EntityPlayer = $this.$craftMatrix0; - if (($var3 >= $par1EntityPlayer.$stackList.data.length ? null : $par1EntityPlayer.$stackList.data[$var3]) !== null) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($this.$thePlayer2, $var5, 0); - else { - $par1EntityPlayer = $this.$craftMatrix0; - $par1EntityPlayer.$stackList.data[$var3] = $var5; - $par1EntityPlayer.$eventHandler.$onCraftMatrixChanged($par1EntityPlayer); - } - } - } - } - $var3 = $var3 + 1 | 0; - } -}; -$java.nms_SlotArmor = function() { - var a = this; $java.nms_Slot.call(a); - a.$armorType0 = 0; - a.$parent1 = null; -}; -$java.nms_SlotArmor_getSlotStackLimit = function($this) { - return 1; -}; -$java.nms_SlotArmor_isItemValid = function($this, $par1ItemStack) { - var var$2; - if ($par1ItemStack === null) - var$2 = 0; - else { - nms_Item_$callClinit(); - if (nms_Item_itemsList.data[$par1ItemStack.$itemID0] instanceof nms_ItemArmor) - var$2 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$armorType != $this.$armorType0 ? 0 : 1; - else { - var$2 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$itemID; - nms_Block_$callClinit(); - var$2 = var$2 != nms_Block_pumpkin.$blockID && nms_Item_itemsList.data[$par1ItemStack.$itemID0].$itemID != nms_Item_skull.$itemID ? 0 : $this.$armorType0 ? 0 : 1; - } - } - return var$2; -}; -$java.nms_SlotArmor_getBackgroundIconIndex = function($this) { - return nms_ItemArmor_func_94602_b($this.$armorType0); -}; -function nms_CraftingManager() { - jl_Object.call(this); - this.$recipes = null; -} -var nms_CraftingManager_instance = null; -function nms_CraftingManager_$callClinit() { - nms_CraftingManager_$callClinit = $rt_eraseClinit(nms_CraftingManager); - $java.nms_CraftingManager__clinit_(); -} -$java.nms_CraftingManager__init_ = function() { - var var_0 = new nms_CraftingManager(); - nms_CraftingManager__init_(var_0); - return var_0; -}; -function nms_CraftingManager__init_($this) { - var var$1, var$2, var$3, var$4; - nms_CraftingManager_$callClinit(); - jl_Object__init_0($this); - $this.$recipes = ju_ArrayList__init_0(); - $java.nms_RecipesTools_addRecipes($java.nms_RecipesTools__init_(), $this); - $java.nms_RecipesWeapons_addRecipes($java.nms_RecipesWeapons__init_(), $this); - $java.nms_RecipesIngots_addRecipes($java.nms_RecipesIngots__init_(), $this); - $java.nms_RecipesFood_addRecipes($java.nms_RecipesFood__init_(), $this); - $java.nms_RecipesCrafting_addRecipes($java.nms_RecipesCrafting__init_(), $this); - $java.nms_RecipesArmor_addRecipes($java.nms_RecipesArmor__init_(), $this); - $java.nms_RecipesDyes_addRecipes($java.nms_RecipesDyes__init_(), $this); - ju_ArrayList_add($this.$recipes, $java.nms_RecipesArmorDyes__init_()); - ju_ArrayList_add($this.$recipes, $java.nms_RecipesMapCloning__init_()); - ju_ArrayList_add($this.$recipes, $java.nms_RecipesMapExtending__init_()); - ju_ArrayList_add($this.$recipes, $java.nms_RecipeFireworks__init_()); - var$1 = new nms_ItemStack; - nms_Item_$callClinit(); - nms_ItemStack__init_12(var$1, nms_Item_paper, 3); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Item_reed; - $java.nms_CraftingManager_addRecipe($this, var$1, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_book, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = nms_Item_paper; - var$3[1] = nms_Item_paper; - var$3[2] = nms_Item_paper; - var$3[3] = nms_Item_leather; - $java.nms_CraftingManager_addShapelessRecipe($this, var$4, var$2); - var$1 = nms_ItemStack__init_3(nms_Item_writableBook, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = nms_Item_book; - var$3[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 0); - var$3[2] = nms_Item_feather; - $java.nms_CraftingManager_addShapelessRecipe($this, var$1, var$2); - var$4 = new nms_ItemStack; - nms_Block_$callClinit(); - nms_ItemStack__init_9(var$4, nms_Block_fence, 2); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2810); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_cobblestoneWall, 6, 0); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2810); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_cobblestone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_cobblestoneWall, 6, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2810); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_cobblestoneMossy; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_netherFence, 6); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2810); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_netherBrick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_fenceGate, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(2811); - var$3[1] = $rt_s(2811); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_stick; - var$3[4] = jl_Character_valueOf(87); - var$3[5] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_jukebox, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_planks; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_diamond; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_music, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_planks; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_redstone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_bookShelf, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2813); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_planks; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_book; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_blockSnow, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = $rt_s(2814); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_snowball; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_snow, 6); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_blockSnow; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_blockClay, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = $rt_s(2814); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_clay; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_brick, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = $rt_s(2814); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_brick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_glowStone, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = $rt_s(2814); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_lightStoneDust; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_blockNetherQuartz, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = $rt_s(2814); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_netherQuartz; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_cloth, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = $rt_s(2814); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_silk; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_tnt, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2815); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2815); - var$3[3] = jl_Character_valueOf(88); - var$3[4] = nms_Item_gunpowder; - var$3[5] = jl_Character_valueOf(35); - var$3[6] = nms_Block_sand; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_stoneSingleSlab, 6, 3); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_cobblestone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_stoneSingleSlab, 6, 0); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_stone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_stoneSingleSlab, 6, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_sandStone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_stoneSingleSlab, 6, 4); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_brick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_stoneSingleSlab, 6, 5); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_stoneBrick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_stoneSingleSlab, 6, 6); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_netherBrick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_stoneSingleSlab, 6, 7); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_blockNetherQuartz; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_woodSingleSlab, 6, 0); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_ItemStack__init_10(nms_Block_planks, 1, 0); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_woodSingleSlab, 6, 2); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_ItemStack__init_10(nms_Block_planks, 1, 2); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_woodSingleSlab, 6, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_ItemStack__init_10(nms_Block_planks, 1, 1); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_woodSingleSlab, 6, 3); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_ItemStack__init_10(nms_Block_planks, 1, 3); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_ladder, 3); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2816); - var$3[1] = $rt_s(2810); - var$3[2] = $rt_s(2816); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_doorWood, 1); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = $rt_s(2814); - var$3[2] = $rt_s(2814); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_trapdoor, 2); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2810); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_doorIron, 1); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = $rt_s(2814); - var$3[2] = $rt_s(2814); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_ingotIron; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_sign, 3); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2810); - var$3[2] = $rt_s(2817); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_planks; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_cake, 1); - var$2 = $rt_createArray(jl_Object, 11); - var$3 = var$2.data; - var$3[0] = $rt_s(2818); - var$3[1] = $rt_s(2819); - var$3[2] = $rt_s(2820); - var$3[3] = jl_Character_valueOf(65); - var$3[4] = nms_Item_bucketMilk; - var$3[5] = jl_Character_valueOf(66); - var$3[6] = nms_Item_sugar; - var$3[7] = jl_Character_valueOf(67); - var$3[8] = nms_Item_wheat; - var$3[9] = jl_Character_valueOf(69); - var$3[10] = nms_Item_egg; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_sugar, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(795); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Item_reed; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_planks, 4, 0); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(795); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_ItemStack__init_10(nms_Block_wood, 1, 0); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_planks, 4, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(795); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_ItemStack__init_10(nms_Block_wood, 1, 1); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_planks, 4, 2); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(795); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_ItemStack__init_10(nms_Block_wood, 1, 2); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_10(nms_Block_planks, 4, 3); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(795); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_ItemStack__init_10(nms_Block_wood, 1, 3); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_stick, 4); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(795); - var$3[1] = $rt_s(795); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_torchWood, 4); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(115); - var$3[1] = $rt_s(795); - var$3[2] = jl_Character_valueOf(88); - var$3[3] = nms_Item_coal; - var$3[4] = jl_Character_valueOf(35); - var$3[5] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_torchWood, 4); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(115); - var$3[1] = $rt_s(795); - var$3[2] = jl_Character_valueOf(88); - var$3[3] = nms_ItemStack__init_5(nms_Item_coal, 1, 1); - var$3[4] = jl_Character_valueOf(35); - var$3[5] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_bowlEmpty, 4); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2816); - var$3[1] = $rt_s(2821); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_glassBottle, 3); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2816); - var$3[1] = $rt_s(2821); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_glass; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_rail, 16); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2822); - var$3[1] = $rt_s(2815); - var$3[2] = $rt_s(2822); - var$3[3] = jl_Character_valueOf(88); - var$3[4] = nms_Item_ingotIron; - var$3[5] = jl_Character_valueOf(35); - var$3[6] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_railPowered, 6); - var$2 = $rt_createArray(jl_Object, 9); - var$3 = var$2.data; - var$3[0] = $rt_s(2822); - var$3[1] = $rt_s(2815); - var$3[2] = $rt_s(2823); - var$3[3] = jl_Character_valueOf(88); - var$3[4] = nms_Item_ingotGold; - var$3[5] = jl_Character_valueOf(82); - var$3[6] = nms_Item_redstone; - var$3[7] = jl_Character_valueOf(35); - var$3[8] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_railActivator, 6); - var$2 = $rt_createArray(jl_Object, 9); - var$3 = var$2.data; - var$3[0] = $rt_s(2824); - var$3[1] = $rt_s(2815); - var$3[2] = $rt_s(2824); - var$3[3] = jl_Character_valueOf(88); - var$3[4] = nms_Item_ingotIron; - var$3[5] = jl_Character_valueOf(35); - var$3[6] = nms_Block_torchRedstoneActive; - var$3[7] = jl_Character_valueOf(83); - var$3[8] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_railDetector, 6); - var$2 = $rt_createArray(jl_Object, 9); - var$3 = var$2.data; - var$3[0] = $rt_s(2822); - var$3[1] = $rt_s(2815); - var$3[2] = $rt_s(2823); - var$3[3] = jl_Character_valueOf(88); - var$3[4] = nms_Item_ingotIron; - var$3[5] = jl_Character_valueOf(82); - var$3[6] = nms_Item_redstone; - var$3[7] = jl_Character_valueOf(35); - var$3[8] = nms_Block_pressurePlateStone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_minecartEmpty, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2816); - var$3[1] = $rt_s(2810); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_ingotIron; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_cauldron, 1); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2816); - var$3[1] = $rt_s(2816); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_ingotIron; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_brewingStand, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(2825); - var$3[1] = $rt_s(2810); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_cobblestone; - var$3[4] = jl_Character_valueOf(66); - var$3[5] = nms_Item_blazeRod; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_pumpkinLantern, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(100); - var$3[1] = $rt_s(118); - var$3[2] = jl_Character_valueOf(65); - var$3[3] = nms_Block_pumpkin; - var$3[4] = jl_Character_valueOf(66); - var$3[5] = nms_Block_torchWood; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_minecartCrate, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(100); - var$3[1] = $rt_s(118); - var$3[2] = jl_Character_valueOf(65); - var$3[3] = nms_Block_chest; - var$3[4] = jl_Character_valueOf(66); - var$3[5] = nms_Item_minecartEmpty; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_minecartPowered, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(100); - var$3[1] = $rt_s(118); - var$3[2] = jl_Character_valueOf(65); - var$3[3] = nms_Block_furnaceIdle; - var$3[4] = jl_Character_valueOf(66); - var$3[5] = nms_Item_minecartEmpty; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_minecartTnt, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(100); - var$3[1] = $rt_s(118); - var$3[2] = jl_Character_valueOf(65); - var$3[3] = nms_Block_tnt; - var$3[4] = jl_Character_valueOf(66); - var$3[5] = nms_Item_minecartEmpty; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_minecartHopper, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(100); - var$3[1] = $rt_s(118); - var$3[2] = jl_Character_valueOf(65); - var$3[3] = nms_Block_hopperBlock; - var$3[4] = jl_Character_valueOf(66); - var$3[5] = nms_Item_minecartEmpty; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_boat, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2816); - var$3[1] = $rt_s(2810); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_bucketEmpty, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2816); - var$3[1] = $rt_s(2821); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_ingotIron; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_flowerPot, 1); - var$2 = $rt_createArray(jl_Object, 4); - var$3 = var$2.data; - var$3[0] = $rt_s(2816); - var$3[1] = $rt_s(2821); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_brick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_flintAndSteel, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(2826); - var$3[1] = $rt_s(2827); - var$3[2] = jl_Character_valueOf(65); - var$3[3] = nms_Item_ingotIron; - var$3[4] = jl_Character_valueOf(66); - var$3[5] = nms_Item_flint; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_bread, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Item_wheat; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stairsWoodOak, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_ItemStack__init_10(nms_Block_planks, 1, 0); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stairsWoodBirch, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_ItemStack__init_10(nms_Block_planks, 1, 2); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stairsWoodSpruce, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_ItemStack__init_10(nms_Block_planks, 1, 1); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stairsWoodJungle, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_ItemStack__init_10(nms_Block_planks, 1, 3); - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_fishingRod, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2830); - var$3[1] = $rt_s(2831); - var$3[2] = $rt_s(2832); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_stick; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_silk; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_carrotOnAStick, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(2833); - var$3[1] = $rt_s(2834); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_fishingRod; - var$3[4] = jl_Character_valueOf(88); - var$3[5] = nms_Item_carrot; - $java.nms_ShapedRecipes_func_92100_c($java.nms_CraftingManager_addRecipe($this, var$4, var$2)); - var$4 = nms_ItemStack__init_6(nms_Block_stairsCobblestone, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_cobblestone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stairsBrick, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_brick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stairsStoneBrick, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_stoneBrick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stairsNetherBrick, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_netherBrick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stairsSandStone, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_sandStone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stairsNetherQuartz, 4); - var$2 = $rt_createArray(jl_Object, 5); - var$3 = var$2.data; - var$3[0] = $rt_s(2828); - var$3[1] = $rt_s(2829); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_blockNetherQuartz; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_painting, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_stick; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Block_cloth; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_itemFrame, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_stick; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_leather; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_5(nms_Item_appleGold, 1, 0); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_goldNugget; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_appleRed; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_5(nms_Item_appleGold, 1, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_blockGold; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_appleRed; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_5(nms_Item_goldenCarrot, 1, 0); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_goldNugget; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_carrot; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_lever, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(115); - var$3[1] = $rt_s(795); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_cobblestone; - var$3[4] = jl_Character_valueOf(88); - var$3[5] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_tripWireSource, 2); - var$2 = $rt_createArray(jl_Object, 9); - var$3 = var$2.data; - var$3[0] = $rt_s(93); - var$3[1] = $rt_s(101); - var$3[2] = $rt_s(795); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_planks; - var$3[5] = jl_Character_valueOf(83); - var$3[6] = nms_Item_stick; - var$3[7] = jl_Character_valueOf(73); - var$3[8] = nms_Item_ingotIron; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_torchRedstoneActive, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(115); - var$3[1] = $rt_s(795); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Item_stick; - var$3[4] = jl_Character_valueOf(88); - var$3[5] = nms_Item_redstone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_redstoneRepeater, 1); - var$2 = $rt_createArray(jl_Object, 8); - var$3 = var$2.data; - var$3[0] = $rt_s(2812); - var$3[1] = $rt_s(2835); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_torchRedstoneActive; - var$3[4] = jl_Character_valueOf(88); - var$3[5] = nms_Item_redstone; - var$3[6] = jl_Character_valueOf(73); - var$3[7] = nms_Block_stone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_comparator, 1); - var$2 = $rt_createArray(jl_Object, 9); - var$3 = var$2.data; - var$3[0] = $rt_s(2821); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2835); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_torchRedstoneActive; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_netherQuartz; - var$3[7] = jl_Character_valueOf(73); - var$3[8] = nms_Block_stone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_pocketSundial, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2821); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2821); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_ingotGold; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_redstone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_compass, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2821); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2821); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_ingotIron; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_redstone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_emptyMap, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Item_paper; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_compass; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_stoneButton, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(795); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_stone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_woodenButton, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(795); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_pressurePlateStone, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_stone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_pressurePlatePlanks, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_pressurePlateIron, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Item_ingotIron; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_pressurePlateGold, 1); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = $rt_s(2814); - var$3[1] = jl_Character_valueOf(35); - var$3[2] = nms_Item_ingotGold; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_dispenser, 1); - var$2 = $rt_createArray(jl_Object, 9); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2836); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_cobblestone; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_bow; - var$3[7] = jl_Character_valueOf(82); - var$3[8] = nms_Item_redstone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_dropper, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2816); - var$3[2] = $rt_s(2836); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_cobblestone; - var$3[5] = jl_Character_valueOf(82); - var$3[6] = nms_Item_redstone; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_pistonBase, 1); - var$2 = $rt_createArray(jl_Object, 11); - var$3 = var$2.data; - var$3[0] = $rt_s(2837); - var$3[1] = $rt_s(2812); - var$3[2] = $rt_s(2836); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_cobblestone; - var$3[5] = jl_Character_valueOf(88); - var$3[6] = nms_Item_ingotIron; - var$3[7] = jl_Character_valueOf(82); - var$3[8] = nms_Item_redstone; - var$3[9] = jl_Character_valueOf(84); - var$3[10] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_pistonStickyBase, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(101); - var$3[1] = $rt_s(95); - var$3[2] = jl_Character_valueOf(83); - var$3[3] = nms_Item_slimeBall; - var$3[4] = jl_Character_valueOf(80); - var$3[5] = nms_Block_pistonBase; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_bed, 1); - var$2 = $rt_createArray(jl_Object, 6); - var$3 = var$2.data; - var$3[0] = $rt_s(2810); - var$3[1] = $rt_s(2813); - var$3[2] = jl_Character_valueOf(35); - var$3[3] = nms_Block_cloth; - var$3[4] = jl_Character_valueOf(88); - var$3[5] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_enchantmentTable, 1); - var$2 = $rt_createArray(jl_Object, 9); - var$3 = var$2.data; - var$3[0] = $rt_s(2825); - var$3[1] = $rt_s(2838); - var$3[2] = $rt_s(2810); - var$3[3] = jl_Character_valueOf(35); - var$3[4] = nms_Block_obsidian; - var$3[5] = jl_Character_valueOf(66); - var$3[6] = nms_Item_book; - var$3[7] = jl_Character_valueOf(68); - var$3[8] = nms_Item_diamond; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_6(nms_Block_anvil, 1); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2835); - var$3[1] = $rt_s(2839); - var$3[2] = $rt_s(2840); - var$3[3] = jl_Character_valueOf(73); - var$3[4] = nms_Block_blockIron; - var$3[5] = jl_Character_valueOf(105); - var$3[6] = nms_Item_ingotIron; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_eyeOfEnder, 1); - var$2 = $rt_createArray(jl_Object, 2); - var$3 = var$2.data; - var$3[0] = nms_Item_enderPearl; - var$3[1] = nms_Item_blazePowder; - $java.nms_CraftingManager_addShapelessRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_fireballCharge, 3); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = nms_Item_gunpowder; - var$3[1] = nms_Item_blazePowder; - var$3[2] = nms_Item_coal; - $java.nms_CraftingManager_addShapelessRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_3(nms_Item_fireballCharge, 3); - var$2 = $rt_createArray(jl_Object, 3); - var$3 = var$2.data; - var$3[0] = nms_Item_gunpowder; - var$3[1] = nms_Item_blazePowder; - var$3[2] = nms_ItemStack__init_5(nms_Item_coal, 1, 1); - $java.nms_CraftingManager_addShapelessRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_7(nms_Block_daylightSensor); - var$2 = $rt_createArray(jl_Object, 9); - var$3 = var$2.data; - var$3[0] = $rt_s(2841); - var$3[1] = $rt_s(2842); - var$3[2] = $rt_s(2843); - var$3[3] = jl_Character_valueOf(71); - var$3[4] = nms_Block_glass; - var$3[5] = jl_Character_valueOf(81); - var$3[6] = nms_Item_netherQuartz; - var$3[7] = jl_Character_valueOf(87); - var$3[8] = nms_Block_woodSingleSlab; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - var$4 = nms_ItemStack__init_7(nms_Block_hopperBlock); - var$2 = $rt_createArray(jl_Object, 7); - var$3 = var$2.data; - var$3[0] = $rt_s(2844); - var$3[1] = $rt_s(2845); - var$3[2] = $rt_s(2846); - var$3[3] = jl_Character_valueOf(73); - var$3[4] = nms_Item_ingotIron; - var$3[5] = jl_Character_valueOf(67); - var$3[6] = nms_Block_chest; - $java.nms_CraftingManager_addRecipe($this, var$4, var$2); - ju_Collections_sort0($this.$recipes, $java.nms_RecipeSorter__init_($this)); - ji_PrintStream_println0(jl_System_out(), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder__init_(), ju_ArrayList_size($this.$recipes)), $rt_s(2847)))); -} -$java.nms_CraftingManager_addRecipe = function($this, $par1ItemStack, $par2ArrayOfObj) { - var $var14, $var3, $var4, $var5, $var6, var$8, $var11, $var9, $var7, $var8, $var12, $var13, $var15, $var16, $var10, var$18, $var17; - $var14 = $par2ArrayOfObj.data; - $var3 = $rt_s(44); - $var4 = 0; - $var5 = 0; - $var6 = 0; - if (!$rt_isInstance($var14[$var4], $rt_arraycls(jl_String))) { - while ($var14[$var4] instanceof jl_String) { - var$8 = $var4 + 1 | 0; - $var11 = $var14[$var4]; - $var6 = $var6 + 1 | 0; - $var5 = $var11.$characters.data.length; - $var9 = new jl_StringBuilder; - $var9.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var9, $var9.$length, $var3); - jl_AbstractStringBuilder_insert($var9, $var9.$length, $var11); - $var3 = jl_String__init_0($var9.$buffer, 0, $var9.$length); - $var4 = var$8; - } - var$8 = $var4; - } else { - var$8 = 1; - $var7 = $var14[$var4]; - $var8 = 0; - while (true) { - $par2ArrayOfObj = $var7.data; - if ($var8 >= $par2ArrayOfObj.length) - break; - $var9 = $par2ArrayOfObj[$var8]; - $var6 = $var6 + 1 | 0; - $var5 = $var9.$characters.data.length; - $var11 = new jl_StringBuilder; - $var11.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var11, $var11.$length, $var3); - jl_AbstractStringBuilder_insert($var11, $var11.$length, $var9); - $var3 = jl_String__init_0($var11.$buffer, 0, $var11.$length); - $var8 = $var8 + 1 | 0; - } - } - $var12 = ju_HashMap__init_1(16, 0.75); - while (var$8 < $var14.length) { - $var13 = $var14[var$8]; - $var15 = null; - $var8 = var$8 + 1 | 0; - if ($var14[$var8] instanceof nms_Item) { - $var15 = new nms_ItemStack; - $var16 = $var14[$var8].$itemID; - $var15.$stackSize = 0; - $var15.$itemFrame = null; - $var15.$itemID0 = $var16; - $var15.$stackSize = 1; - $var15.$itemDamage = 0; - if ($var15.$itemDamage < 0) - $var15.$itemDamage = 0; - } else if ($var14[$var8] instanceof nms_Block) { - $var15 = new nms_ItemStack; - $var16 = $var14[$var8].$blockID; - $var15.$stackSize = 0; - $var15.$itemFrame = null; - $var15.$itemID0 = $var16; - $var15.$stackSize = 1; - $var15.$itemDamage = 32767; - if ($var15.$itemDamage < 0) - $var15.$itemDamage = 0; - } else if ($var14[$var8] instanceof nms_ItemStack) - $var15 = $var14[$var8]; - ju_HashMap_putImpl($var12, $var13, $var15); - var$8 = var$8 + 2 | 0; - } - $var8 = $rt_imul($var5, $var6); - $var14 = $rt_createArray(nms_ItemStack, $var8); - $var7 = $var14.data; - $var16 = 0; - while ($var16 < $var8) { - $var10 = jl_String_charAt($var3, $var16); - $var11 = jl_Character_valueOf($var10); - if ($var11 !== null) { - var$8 = $var11.$value1; - $var11 = ju_HashMap_findNonNullKeyEntry($var12, $var11, var$8 & ($var12.$elementData.data.length - 1 | 0), var$8); - } else { - $var11 = $var12.$elementData.data[0]; - while ($var11 !== null && $var11.$key !== null) { - $var11 = $var11.$next1; - } - } - if (!($var11 === null ? 0 : 1)) - $var7[$var16] = null; - else { - $var11 = jl_Character_valueOf($var10); - if ($var11 !== null) { - var$8 = $var11.$value1; - $var9 = ju_HashMap_findNonNullKeyEntry($var12, $var11, var$8 & ($var12.$elementData.data.length - 1 | 0), var$8); - } else { - $var9 = $var12.$elementData.data[0]; - while ($var9 !== null && $var9.$key !== null) { - $var9 = $var9.$next1; - } - } - $var11 = $var9 === null ? null : $var9.$value0; - $var9 = new nms_ItemStack; - var$8 = $var11.$itemID0; - $var4 = $var11.$stackSize; - var$18 = $var11.$itemDamage; - $var9.$stackSize = 0; - $var9.$itemFrame = null; - $var9.$itemID0 = var$8; - $var9.$stackSize = $var4; - $var9.$itemDamage = var$18; - if ($var9.$itemDamage < 0) - $var9.$itemDamage = 0; - if ($var11.$stackTagCompound !== null) - $var9.$stackTagCompound = nms_NBTTagCompound_copy($var11.$stackTagCompound); - $var7[$var16] = $var9; - } - $var16 = $var16 + 1 | 0; - } - $var17 = new $java.nms_ShapedRecipes; - $var17.$field_92101_f = 0; - $var17.$recipeOutputItemID = $par1ItemStack.$itemID0; - $var17.$recipeWidth = $var5; - $var17.$recipeHeight = $var6; - $var17.$recipeItems = $var14; - $var17.$recipeOutput = $par1ItemStack; - ju_ArrayList_add($this.$recipes, $var17); - return $var17; -}; -$java.nms_CraftingManager_addShapelessRecipe = function($this, $par1ItemStack, $par2ArrayOfObj) { - var $var3, $var5, $var6, $var7, var$7, var$8, var$9, var$10; - $par2ArrayOfObj = $par2ArrayOfObj.data; - $var3 = new ju_ArrayList; - $var3.$array1 = $rt_createArray(jl_Object, 10); - $var5 = $par2ArrayOfObj.length; - $var6 = 0; - while ($var6 < $var5) { - $var7 = $par2ArrayOfObj[$var6]; - if ($var7 instanceof nms_ItemStack) { - var$7 = $var7; - $var7 = new nms_ItemStack; - var$8 = var$7.$itemID0; - var$9 = var$7.$stackSize; - var$10 = var$7.$itemDamage; - $var7.$stackSize = 0; - $var7.$itemFrame = null; - $var7.$itemID0 = var$8; - $var7.$stackSize = var$9; - $var7.$itemDamage = var$10; - if ($var7.$itemDamage < 0) - $var7.$itemDamage = 0; - if (var$7.$stackTagCompound !== null) - $var7.$stackTagCompound = nms_NBTTagCompound_copy(var$7.$stackTagCompound); - ju_ArrayList_add($var3, $var7); - } else if ($var7 instanceof nms_Item) { - var$7 = new nms_ItemStack; - var$10 = $var7.$itemID; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = var$10; - var$7.$stackSize = 1; - var$7.$itemDamage = 0; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - ju_ArrayList_add($var3, var$7); - } else { - if (!($var7 instanceof nms_Block)) { - $par1ItemStack = new jl_RuntimeException; - $par1ItemStack.$suppressionEnabled = 1; - $par1ItemStack.$writableStackTrace = 1; - $par1ItemStack.$message = $rt_s(2848); - $rt_throw($par1ItemStack); - } - var$7 = new nms_ItemStack; - var$10 = $var7.$blockID; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = var$10; - var$7.$stackSize = 1; - var$7.$itemDamage = 0; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - ju_ArrayList_add($var3, var$7); - } - $var6 = $var6 + 1 | 0; - } - $var7 = $this.$recipes; - var$7 = new $java.nms_ShapelessRecipes; - var$7.$recipeOutput0 = $par1ItemStack; - var$7.$recipeItems0 = $var3; - ju_ArrayList_add($var7, var$7); -}; -function nms_CraftingManager_findMatchingRecipe($this, $par1InventoryCrafting, $par2World) { - var $var3, $var4, $var5, $var6, $var7, $var11, $var9, $var10, $var12; - $var3 = 0; - $var4 = null; - $var5 = null; - $var6 = 0; - while ($var6 < $par1InventoryCrafting.$stackList.data.length) { - $var7 = $var6 >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[$var6]; - if ($var7 !== null) { - if (!$var3) - $var4 = $var7; - if ($var3 == 1) - $var5 = $var7; - $var3 = $var3 + 1 | 0; - } - $var6 = $var6 + 1 | 0; - } - if ($var3 == 2 && $var4.$itemID0 == $var5.$itemID0 && $var4.$stackSize == 1 && $var5.$stackSize == 1) { - nms_Item_$callClinit(); - $var11 = nms_Item_itemsList.data[$var4.$itemID0]; - if ($var11.$maxDamage > 0 && !$var11.$hasSubtypes ? 1 : 0) { - $var11 = nms_Item_itemsList.data[$var4.$itemID0]; - $var9 = (($var11.$maxDamage - $var4.$itemDamage | 0) + ($var11.$maxDamage - $var5.$itemDamage | 0) | 0) + (($var11.$maxDamage * 5 | 0) / 100 | 0) | 0; - $var10 = $var11.$maxDamage - $var9 | 0; - if ($var10 < 0) - $var10 = 0; - $par1InventoryCrafting = new nms_ItemStack; - $var6 = $var4.$itemID0; - $par1InventoryCrafting.$stackSize = 0; - $par1InventoryCrafting.$itemFrame = null; - $par1InventoryCrafting.$itemID0 = $var6; - $par1InventoryCrafting.$stackSize = 1; - $par1InventoryCrafting.$itemDamage = $var10; - if ($par1InventoryCrafting.$itemDamage < 0) - $par1InventoryCrafting.$itemDamage = 0; - return $par1InventoryCrafting; - } - } - $var3 = 0; - a: { - while ($var3 < $this.$recipes.$size0) { - $var4 = $this.$recipes; - if ($var3 < 0) - break a; - if ($var3 >= $var4.$size0) - break a; - $var12 = $var4.$array1.data[$var3]; - if ($var12.$matches0($par1InventoryCrafting, $par2World)) - return $var12.$getCraftingResult($par1InventoryCrafting); - $var3 = $var3 + 1 | 0; - } - return null; - } - $par1InventoryCrafting = new jl_IndexOutOfBoundsException; - $par1InventoryCrafting.$suppressionEnabled = 1; - $par1InventoryCrafting.$writableStackTrace = 1; - $rt_throw($par1InventoryCrafting); -} -$java.nms_CraftingManager__clinit_ = function() { - nms_CraftingManager_instance = $java.nms_CraftingManager__init_(); -}; -$java.nms_IChunkProvider = function() { -}; -function nms_ChunkProviderClient() { - var a = this; jl_Object.call(a); - a.$blankChunk = null; - a.$chunkMapping = null; - a.$chunkListing = null; - a.$worldObj4 = null; -} -$java.nms_ChunkProviderClient_chunkExists = function($this, $par1, $par2) { - return 1; -}; -function nms_ChunkProviderClient_unloadChunk($this, $par1, $par2) { - var $var3, var$4; - $var3 = nms_ChunkProviderClient_provideChunk($this, $par1, $par2); - if (!$var3.$isEmpty()) - $var3.$onChunkUnload(); - $java.nms_LongHashMap_removeKey($this.$chunkMapping, Long_or(Long_and(Long_fromInt($par1), new Long(4294967295, 0)), Long_shl(Long_and(Long_fromInt($par2), new Long(4294967295, 0)), 32))); - var$4 = $this.$chunkListing; - $par1 = ju_AbstractList_indexOf(var$4, $var3); - if ($par1 >= 0) - ju_ArrayList_remove(var$4, $par1); -} -function nms_ChunkProviderClient_loadChunk($this, $par1, $par2) { - var $var3; - $var3 = $java.nms_Chunk__init_($this.$worldObj4, $par1, $par2); - $java.nms_LongHashMap_add($this.$chunkMapping, Long_or(Long_and(Long_fromInt($par1), new Long(4294967295, 0)), Long_shl(Long_and(Long_fromInt($par2), new Long(4294967295, 0)), 32)), $var3); - $var3.$isChunkLoaded = 1; - return $var3; -} -function nms_ChunkProviderClient_provideChunk($this, $par1, $par2) { - var $var3; - $var3 = $java.nms_LongHashMap_getValueByKey($this.$chunkMapping, Long_or(Long_and(Long_fromInt($par1), new Long(4294967295, 0)), Long_shl(Long_and(Long_fromInt($par2), new Long(4294967295, 0)), 32))); - if ($var3 === null) - $var3 = $this.$blankChunk; - return $var3; -} -$java.nms_ChunkProviderClient_unloadQueuedChunks = function($this) { - return 0; -}; -function nms_ChunkProviderClient_makeString($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(2849)); - var$2 = $this.$chunkMapping.$numHashElements; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -} -$java.nms_ChunkProviderClient_findClosestStructure = function($this, $par1World, $par2Str, $par3, $par4, $par5) { - return null; -}; -function nms_LongHashMap() { - var a = this; jl_Object.call(a); - a.$hashArray = null; - a.$numHashElements = 0; - a.$capacity0 = 0; - a.$percentUseable = 0.75; - a.$modCount6 = 0; -} -$java.nms_LongHashMap__init_ = function() { - var var_0 = new nms_LongHashMap(); - nms_LongHashMap__init_(var_0); - return var_0; -}; -function nms_LongHashMap__init_($this) { - $this.$hashArray = $rt_createArray(nms_LongHashMapEntry, 16); - $this.$capacity0 = 12; - $this.$percentUseable = 0.75; -} -$java.nms_LongHashMap_getNumHashElements = function($this) { - return $this.$numHashElements; -}; -$java.nms_LongHashMap_getValueByKey = function($this, $par1) { - var var$2, $var4; - var$2 = Long_xor($par1, Long_shru($par1, 32)).lo; - var$2 = var$2 ^ var$2 >>> 20 ^ var$2 >>> 12; - var$2 = var$2 ^ var$2 >>> 7 ^ var$2 >>> 4; - $var4 = $this.$hashArray.data[var$2 & ($this.$hashArray.data.length - 1 | 0)]; - while ($var4 !== null) { - if (Long_eq($var4.$key2, $par1)) - return $var4.$value13; - $var4 = $var4.$nextEntry1; - } - return null; -}; -$java.nms_LongHashMap_add = function($this, $par1, $par3Obj) { - var var$3, var$4, $var5, $var6; - var$3 = Long_xor($par1, Long_shru($par1, 32)).lo; - var$3 = var$3 ^ var$3 >>> 20 ^ var$3 >>> 12; - var$4 = var$3 ^ var$3 >>> 7 ^ var$3 >>> 4; - $var5 = var$4 & ($this.$hashArray.data.length - 1 | 0); - $var6 = $this.$hashArray.data[$var5]; - while (true) { - if ($var6 === null) { - $this.$modCount6 = $this.$modCount6 + 1 | 0; - $java.nms_LongHashMap_createKey($this, var$4, $par1, $par3Obj, $var5); - return; - } - if (Long_eq($var6.$key2, $par1)) - break; - $var6 = $var6.$nextEntry1; - } - $var6.$value13 = $par3Obj; -}; -$java.nms_LongHashMap_resizeTable = function($this, $par1) { - var $var4; - if ($this.$hashArray.data.length == 1073741824) - $this.$capacity0 = 2147483647; - else { - $var4 = $rt_createArray(nms_LongHashMapEntry, $par1); - $java.nms_LongHashMap_copyHashTableTo($this, $var4); - $this.$hashArray = $var4; - $this.$capacity0 = $par1 * 0.75 | 0; - } -}; -$java.nms_LongHashMap_copyHashTableTo = function($this, $par1ArrayOfLongHashMapEntry) { - var $var2, $var3, $var4, var$5, $var5, $var6, $var7; - $par1ArrayOfLongHashMapEntry = $par1ArrayOfLongHashMapEntry.data; - $var2 = $this.$hashArray; - $var3 = $par1ArrayOfLongHashMapEntry.length; - $var4 = 0; - $var3 = $var3 - 1 | 0; - while (true) { - var$5 = $var2.data; - if ($var4 >= var$5.length) - break; - a: { - $var5 = var$5[$var4]; - if ($var5 !== null) { - var$5[$var4] = null; - while (true) { - $var6 = $var5.$nextEntry1; - $var7 = $var5.$hash & $var3; - $var5.$nextEntry1 = $par1ArrayOfLongHashMapEntry[$var7]; - $par1ArrayOfLongHashMapEntry[$var7] = $var5; - if ($var6 === null) - break a; - $var5 = $var6; - } - } - } - $var4 = $var4 + 1 | 0; - } -}; -$java.nms_LongHashMap_remove = function($this, $par1) { - var $var3; - $var3 = $java.nms_LongHashMap_removeKey($this, $par1); - return $var3 !== null ? $var3.$value13 : null; -}; -$java.nms_LongHashMap_removeKey = function($this, $par1) { - var var$2, $var4, $var6, var$5, $var6_0; - var$2 = Long_xor($par1, Long_shru($par1, 32)).lo; - var$2 = var$2 ^ var$2 >>> 20 ^ var$2 >>> 12; - $var4 = (var$2 ^ var$2 >>> 7 ^ var$2 >>> 4) & ($this.$hashArray.data.length - 1 | 0); - $var6 = $this.$hashArray.data[$var4]; - var$5 = $var6; - while ($var6 !== null) { - $var6_0 = $var6.$nextEntry1; - if (Long_eq($var6.$key2, $par1)) { - $this.$modCount6 = $this.$modCount6 + 1 | 0; - $this.$numHashElements = $this.$numHashElements - 1 | 0; - if (var$5 !== $var6) - var$5.$nextEntry1 = $var6_0; - else - $this.$hashArray.data[$var4] = $var6_0; - return $var6; - } - var$5 = $var6; - $var6 = $var6_0; - } - return $var6; -}; -$java.nms_LongHashMap_createKey = function($this, $par1, $par2, $par4Obj, $par5) { - var $var6, var$6, var$7; - $var6 = $this.$hashArray.data[$par5]; - var$6 = $this.$hashArray.data; - var$7 = new nms_LongHashMapEntry; - var$7.$value13 = $par4Obj; - var$7.$nextEntry1 = $var6; - var$7.$key2 = $par2; - var$7.$hash = $par1; - var$6[$par5] = var$7; - $par1 = $this.$numHashElements; - $this.$numHashElements = $par1 + 1 | 0; - if ($par1 >= $this.$capacity0) - $java.nms_LongHashMap_resizeTable($this, 2 * $this.$hashArray.data.length | 0); -}; -function nms_EmptyChunk() { - nms_Chunk.call(this); -} -$java.nms_EmptyChunk_getHeightValue = function($this, $par1, $par2) { - return 0; -}; -$java.nms_EmptyChunk_generateHeightMap = function($this) { - return; -}; -$java.nms_EmptyChunk_generateSkylightMap = function($this) { - return; -}; -$java.nms_EmptyChunk_getBlockID = function($this, $par1, $par2, $par3) { - return 0; -}; -$java.nms_EmptyChunk_getBlockLightOpacity = function($this, $par1, $par2, $par3) { - return 255; -}; -$java.nms_EmptyChunk_setBlockIDWithMetadata = function($this, $par1, $par2, $par3, $par4, $par5) { - return 1; -}; -$java.nms_EmptyChunk_getBlockMetadata = function($this, $par1, $par2, $par3) { - return 0; -}; -$java.nms_EmptyChunk_setBlockMetadata = function($this, $par1, $par2, $par3, $par4) { - return 0; -}; -$java.nms_EmptyChunk_getSavedLightValue = function($this, $par1EnumSkyBlock, $par2, $par3, $par4) { - return 0; -}; -$java.nms_EmptyChunk_setLightValue = function($this, $par1EnumSkyBlock, $par2, $par3, $par4, $par5) { - return; -}; -$java.nms_EmptyChunk_getBlockLightValue = function($this, $par1, $par2, $par3, $par4) { - return 0; -}; -$java.nms_EmptyChunk_addEntity = function($this, $par1Entity) { - return; -}; -$java.nms_EmptyChunk_removeEntity = function($this, $par1Entity) { - return; -}; -$java.nms_EmptyChunk_removeEntityAtIndex = function($this, $par1Entity, $par2) { - return; -}; -$java.nms_EmptyChunk_canBlockSeeTheSky = function($this, $par1, $par2, $par3) { - return 0; -}; -$java.nms_EmptyChunk_getChunkBlockTileEntity = function($this, $par1, $par2, $par3) { - return null; -}; -$java.nms_EmptyChunk_setChunkBlockTileEntity = function($this, $par1, $par2, $par3, $par4TileEntity) { - return; -}; -$java.nms_EmptyChunk_removeChunkBlockTileEntity = function($this, $par1, $par2, $par3) { - return; -}; -$java.nms_EmptyChunk_onChunkUnload = function($this) { - return; -}; -$java.nms_EmptyChunk_setChunkModified = function($this) { - return; -}; -$java.nms_EmptyChunk_getEntitiesWithinAABBForEntity = function($this, $par1Entity, $par2AxisAlignedBB, $par3List, $par4IEntitySelector) { - return; -}; -$java.nms_EmptyChunk_getEntitiesOfTypeWithinAAAB = function($this, $par1Class, $par2AxisAlignedBB, $par3List, $par4IEntitySelector) { - return; -}; -$java.nms_EmptyChunk_isEmpty = function($this) { - return 1; -}; -$java.nms_EmptyChunk_getAreLevelsEmpty = function($this, $par1, $par2) { - return 1; -}; -function nms_LongHashMapEntry() { - var a = this; jl_Object.call(a); - a.$key2 = Long_ZERO; - a.$value13 = null; - a.$nextEntry1 = null; - a.$hash = 0; -} -function nms_RecipesTools() { - var a = this; jl_Object.call(a); - a.$recipePatterns = null; - a.$recipeItems1 = null; -} -$java.nms_RecipesTools__init_ = function() { - var var_0 = new nms_RecipesTools(); - nms_RecipesTools__init_(var_0); - return var_0; -}; -function nms_RecipesTools__init_($this) { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createArray($rt_arraycls(jl_String), 4); - var$2 = var$1.data; - var$3 = $rt_createArray(jl_String, 3); - var$4 = var$3.data; - var$4[0] = $rt_s(2813); - var$4[1] = $rt_s(2821); - var$4[2] = $rt_s(2821); - var$2[0] = var$3; - var$3 = $rt_createArray(jl_String, 3); - var$4 = var$3.data; - var$4[0] = $rt_s(115); - var$4[1] = $rt_s(795); - var$4[2] = $rt_s(795); - var$2[1] = var$3; - var$3 = $rt_createArray(jl_String, 3); - var$4 = var$3.data; - var$4[0] = $rt_s(2850); - var$4[1] = $rt_s(2851); - var$4[2] = $rt_s(1577); - var$2[2] = var$3; - var$3 = $rt_createArray(jl_String, 3); - var$4 = var$3.data; - var$4[0] = $rt_s(2850); - var$4[1] = $rt_s(1577); - var$4[2] = $rt_s(1577); - var$2[3] = var$3; - $this.$recipePatterns = var$1; - var$1 = $rt_createArray($rt_arraycls(jl_Object), 5); - var$2 = var$1.data; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - nms_Block_$callClinit(); - var$4[0] = nms_Block_planks; - var$4[1] = nms_Block_cobblestone; - nms_Item_$callClinit(); - var$4[2] = nms_Item_ingotIron; - var$4[3] = nms_Item_diamond; - var$4[4] = nms_Item_ingotGold; - var$2[0] = var$3; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = nms_Item_pickaxeWood; - var$4[1] = nms_Item_pickaxeStone; - var$4[2] = nms_Item_pickaxeIron; - var$4[3] = nms_Item_pickaxeDiamond; - var$4[4] = nms_Item_pickaxeGold; - var$2[1] = var$3; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = nms_Item_shovelWood; - var$4[1] = nms_Item_shovelStone; - var$4[2] = nms_Item_shovelIron; - var$4[3] = nms_Item_shovelDiamond; - var$4[4] = nms_Item_shovelGold; - var$2[2] = var$3; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = nms_Item_axeWood; - var$4[1] = nms_Item_axeStone; - var$4[2] = nms_Item_axeIron; - var$4[3] = nms_Item_axeDiamond; - var$4[4] = nms_Item_axeGold; - var$2[3] = var$3; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = nms_Item_hoeWood; - var$4[1] = nms_Item_hoeStone; - var$4[2] = nms_Item_hoeIron; - var$4[3] = nms_Item_hoeDiamond; - var$4[4] = nms_Item_hoeGold; - var$2[4] = var$3; - $this.$recipeItems1 = var$1; -} -$java.nms_RecipesTools_addRecipes = function($this, $par1CraftingManager) { - var $var2, $var3, $var4, var$5, $var4_0, $var5, var$8, var$9, var$10, var$11, var$12; - $var2 = 0; - while ($var2 < $this.$recipeItems1.data[0].data.length) { - $var3 = $this.$recipeItems1.data[0].data[$var2]; - $var4 = 0; - while ($var4 < ($this.$recipeItems1.data.length - 1 | 0)) { - var$5 = $this.$recipeItems1.data; - $var4_0 = $var4 + 1 | 0; - $var5 = var$5[$var4_0].data[$var2]; - var$8 = new nms_ItemStack; - var$9 = $var5.$itemID; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = var$9; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - var$5 = $rt_createArray(jl_Object, 5); - var$10 = var$5.data; - var$10[0] = $this.$recipePatterns.data[$var4]; - var$10[1] = jl_Character_valueOf(35); - nms_Item_$callClinit(); - var$10[2] = nms_Item_stick; - var$10[3] = jl_Character_valueOf(88); - var$10[4] = $var3; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$8, var$5); - $var4 = $var4_0; - } - $var2 = $var2 + 1 | 0; - } - var$8 = new nms_ItemStack; - nms_Item_$callClinit(); - var$11 = nms_Item_shears.$itemID; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = var$11; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - var$5 = $rt_createArray(jl_Object, 4); - var$12 = var$5.data; - var$12[0] = $rt_s(1577); - var$12[1] = $rt_s(2833); - var$12[2] = jl_Character_valueOf(35); - var$12[3] = nms_Item_ingotIron; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$8, var$5); -}; -function nms_RecipesWeapons() { - var a = this; jl_Object.call(a); - a.$recipePatterns0 = null; - a.$recipeItems2 = null; -} -$java.nms_RecipesWeapons__init_ = function() { - var var_0 = new nms_RecipesWeapons(); - nms_RecipesWeapons__init_(var_0); - return var_0; -}; -function nms_RecipesWeapons__init_($this) { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createArray($rt_arraycls(jl_String), 1); - var$2 = var$1.data; - var$3 = $rt_createArray(jl_String, 3); - var$4 = var$3.data; - var$4[0] = $rt_s(115); - var$4[1] = $rt_s(115); - var$4[2] = $rt_s(795); - var$2[0] = var$3; - $this.$recipePatterns0 = var$1; - var$1 = $rt_createArray($rt_arraycls(jl_Object), 2); - var$2 = var$1.data; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - nms_Block_$callClinit(); - var$4[0] = nms_Block_planks; - var$4[1] = nms_Block_cobblestone; - nms_Item_$callClinit(); - var$4[2] = nms_Item_ingotIron; - var$4[3] = nms_Item_diamond; - var$4[4] = nms_Item_ingotGold; - var$2[0] = var$3; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = nms_Item_swordWood; - var$4[1] = nms_Item_swordStone; - var$4[2] = nms_Item_swordIron; - var$4[3] = nms_Item_swordDiamond; - var$4[4] = nms_Item_swordGold; - var$2[1] = var$3; - $this.$recipeItems2 = var$1; -} -$java.nms_RecipesWeapons_addRecipes = function($this, $par1CraftingManager) { - var $var2, $var3, $var4, var$5, $var4_0, $var5, var$8, var$9, var$10, var$11; - $var2 = 0; - while ($var2 < $this.$recipeItems2.data[0].data.length) { - $var3 = $this.$recipeItems2.data[0].data[$var2]; - $var4 = 0; - while ($var4 < ($this.$recipeItems2.data.length - 1 | 0)) { - var$5 = $this.$recipeItems2.data; - $var4_0 = $var4 + 1 | 0; - $var5 = var$5[$var4_0].data[$var2]; - var$8 = new nms_ItemStack; - var$9 = $var5.$itemID; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = var$9; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - var$5 = $rt_createArray(jl_Object, 5); - var$10 = var$5.data; - var$10[0] = $this.$recipePatterns0.data[$var4]; - var$10[1] = jl_Character_valueOf(35); - nms_Item_$callClinit(); - var$10[2] = nms_Item_stick; - var$10[3] = jl_Character_valueOf(88); - var$10[4] = $var3; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$8, var$5); - $var4 = $var4_0; - } - $var2 = $var2 + 1 | 0; - } - $var5 = new nms_ItemStack; - nms_Item_$callClinit(); - var$11 = nms_Item_bow.$itemID; - $var5.$stackSize = 0; - $var5.$itemFrame = null; - $var5.$itemID0 = var$11; - $var5.$stackSize = 1; - $var5.$itemDamage = 0; - if ($var5.$itemDamage < 0) - $var5.$itemDamage = 0; - var$5 = $rt_createArray(jl_Object, 7); - var$10 = var$5.data; - var$10[0] = $rt_s(2831); - var$10[1] = $rt_s(2832); - var$10[2] = $rt_s(2831); - var$10[3] = jl_Character_valueOf(88); - var$10[4] = nms_Item_silk; - var$10[5] = jl_Character_valueOf(35); - var$10[6] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, $var5, var$5); - $var3 = new nms_ItemStack; - var$11 = nms_Item_arrow.$itemID; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$11; - $var3.$stackSize = 4; - $var3.$itemDamage = 0; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - var$5 = $rt_createArray(jl_Object, 9); - var$10 = var$5.data; - var$10[0] = $rt_s(115); - var$10[1] = $rt_s(795); - var$10[2] = $rt_s(91); - var$10[3] = jl_Character_valueOf(89); - var$10[4] = nms_Item_feather; - var$10[5] = jl_Character_valueOf(88); - var$10[6] = nms_Item_flint; - var$10[7] = jl_Character_valueOf(35); - var$10[8] = nms_Item_stick; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, $var3, var$5); -}; -function nms_RecipesIngots() { - jl_Object.call(this); - this.$recipeItems3 = null; -} -$java.nms_RecipesIngots__init_ = function() { - var var_0 = new nms_RecipesIngots(); - nms_RecipesIngots__init_(var_0); - return var_0; -}; -function nms_RecipesIngots__init_($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8; - var$1 = $rt_createArray($rt_arraycls(jl_Object), 6); - var$2 = $rt_createArray(jl_Object, 2); - var$3 = var$2.data; - nms_Block_$callClinit(); - var$3[0] = nms_Block_blockGold; - var$4 = new nms_ItemStack; - nms_Item_$callClinit(); - var$5 = nms_Item_ingotGold.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$5; - var$4.$stackSize = 9; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - var$6 = var$1.data; - var$3[1] = var$4; - var$6[0] = var$2; - var$2 = $rt_createArray(jl_Object, 2); - var$3 = var$2.data; - var$3[0] = nms_Block_blockIron; - var$4 = new nms_ItemStack; - var$7 = nms_Item_ingotIron.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$7; - var$4.$stackSize = 9; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - var$3[1] = var$4; - var$6[1] = var$2; - var$2 = $rt_createArray(jl_Object, 2); - var$3 = var$2.data; - var$3[0] = nms_Block_blockDiamond; - var$4 = new nms_ItemStack; - var$7 = nms_Item_diamond.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$7; - var$4.$stackSize = 9; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - var$3[1] = var$4; - var$6[2] = var$2; - var$2 = $rt_createArray(jl_Object, 2); - var$3 = var$2.data; - var$3[0] = nms_Block_blockEmerald; - var$4 = new nms_ItemStack; - var$7 = nms_Item_emerald.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$7; - var$4.$stackSize = 9; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - var$3[1] = var$4; - var$6[3] = var$2; - var$2 = $rt_createArray(jl_Object, 2); - var$3 = var$2.data; - var$3[0] = nms_Block_blockLapis; - var$4 = new nms_ItemStack; - var$7 = nms_Item_dyePowder.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$7; - var$4.$stackSize = 9; - var$4.$itemDamage = 4; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - var$3[1] = var$4; - var$6[4] = var$2; - var$2 = $rt_createArray(jl_Object, 2); - var$3 = var$2.data; - var$3[0] = nms_Block_blockRedstone; - var$4 = new nms_ItemStack; - var$8 = nms_Item_redstone.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$8; - var$4.$stackSize = 9; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - var$3[1] = var$4; - var$6[5] = var$2; - $this.$recipeItems3 = var$1; -} -$java.nms_RecipesIngots_addRecipes = function($this, $par1CraftingManager) { - var $var2, $var3, $var4, var$5, var$6, var$7, var$8, var$9; - $var2 = 0; - while ($var2 < $this.$recipeItems3.data.length) { - $var3 = $this.$recipeItems3.data[$var2].data[0]; - $var4 = $this.$recipeItems3.data[$var2].data[1]; - var$5 = new nms_ItemStack; - var$6 = $var3.$blockID; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = var$6; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$7 = $rt_createArray(jl_Object, 5); - var$8 = var$7.data; - var$8[0] = $rt_s(2810); - var$8[1] = $rt_s(2810); - var$8[2] = $rt_s(2810); - var$8[3] = jl_Character_valueOf(35); - var$8[4] = $var4; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$5, var$7); - var$7 = $rt_createArray(jl_Object, 3); - var$8 = var$7.data; - var$8[0] = $rt_s(795); - var$8[1] = jl_Character_valueOf(35); - var$8[2] = $var3; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, $var4, var$7); - $var2 = $var2 + 1 | 0; - } - $var4 = new nms_ItemStack; - nms_Item_$callClinit(); - var$9 = nms_Item_ingotGold.$itemID; - $var4.$stackSize = 0; - $var4.$itemFrame = null; - $var4.$itemID0 = var$9; - $var4.$stackSize = 1; - $var4.$itemDamage = 0; - if ($var4.$itemDamage < 0) - $var4.$itemDamage = 0; - var$7 = $rt_createArray(jl_Object, 5); - var$8 = var$7.data; - var$8[0] = $rt_s(2810); - var$8[1] = $rt_s(2810); - var$8[2] = $rt_s(2810); - var$8[3] = jl_Character_valueOf(35); - var$8[4] = nms_Item_goldNugget; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, $var4, var$7); - $var3 = new nms_ItemStack; - var$9 = nms_Item_goldNugget.$itemID; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$9; - $var3.$stackSize = 9; - $var3.$itemDamage = 0; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - var$7 = $rt_createArray(jl_Object, 3); - var$8 = var$7.data; - var$8[0] = $rt_s(795); - var$8[1] = jl_Character_valueOf(35); - var$8[2] = nms_Item_ingotGold; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, $var3, var$7); -}; -function nms_RecipesFood() { - jl_Object.call(this); -} -$java.nms_RecipesFood__init_ = function() { - var var_0 = new nms_RecipesFood(); - nms_RecipesFood__init_(var_0); - return var_0; -}; -function nms_RecipesFood__init_($this) { - return; -} -$java.nms_RecipesFood_addRecipes = function($this, $par1CraftingManager) { - var var$2, var$3, var$4, var$5, var$6, var$7, var$8; - var$2 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_bowlSoup.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4 = $rt_createArray(jl_Object, 3); - var$5 = var$4.data; - nms_Block_$callClinit(); - var$5[0] = nms_Block_mushroomBrown; - var$5[1] = nms_Block_mushroomRed; - var$5[2] = nms_Item_bowlEmpty; - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$2, var$4); - var$6 = new nms_ItemStack; - var$3 = nms_Item_cookie.$itemID; - var$6.$stackSize = 0; - var$6.$itemFrame = null; - var$6.$itemID0 = var$3; - var$6.$stackSize = 8; - var$6.$itemDamage = 0; - if (var$6.$itemDamage < 0) - var$6.$itemDamage = 0; - var$4 = $rt_createArray(jl_Object, 5); - var$5 = var$4.data; - var$5[0] = $rt_s(2812); - var$5[1] = jl_Character_valueOf(88); - var$7 = new nms_ItemStack; - var$8 = nms_Item_dyePowder.$itemID; - var$7.$stackSize = 0; - var$7.$itemFrame = null; - var$7.$itemID0 = var$8; - var$7.$stackSize = 1; - var$7.$itemDamage = 3; - if (var$7.$itemDamage < 0) - var$7.$itemDamage = 0; - var$5[2] = var$7; - var$5[3] = jl_Character_valueOf(35); - var$5[4] = nms_Item_wheat; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$6, var$4); - var$2 = new nms_ItemStack; - var$3 = nms_Block_melon.$blockID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4 = $rt_createArray(jl_Object, 5); - var$5 = var$4.data; - var$5[0] = $rt_s(2852); - var$5[1] = $rt_s(2852); - var$5[2] = $rt_s(2852); - var$5[3] = jl_Character_valueOf(77); - var$5[4] = nms_Item_melon; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$4); - var$2 = new nms_ItemStack; - var$3 = nms_Item_melonSeeds.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4 = $rt_createArray(jl_Object, 3); - var$5 = var$4.data; - var$5[0] = $rt_s(120); - var$5[1] = jl_Character_valueOf(77); - var$5[2] = nms_Item_melon; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$4); - var$2 = nms_ItemStack__init_4(nms_Item_pumpkinSeeds.$itemID, 4, 0); - var$4 = $rt_createArray(jl_Object, 3); - var$5 = var$4.data; - var$5[0] = $rt_s(120); - var$5[1] = jl_Character_valueOf(77); - var$5[2] = nms_Block_pumpkin; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$4); - var$2 = nms_ItemStack__init_4(nms_Item_pumpkinPie.$itemID, 1, 0); - var$4 = $rt_createArray(jl_Object, 3); - var$5 = var$4.data; - var$5[0] = nms_Block_pumpkin; - var$5[1] = nms_Item_sugar; - var$5[2] = nms_Item_egg; - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$2, var$4); - var$2 = nms_ItemStack__init_4(nms_Item_fermentedSpiderEye.$itemID, 1, 0); - var$4 = $rt_createArray(jl_Object, 3); - var$5 = var$4.data; - var$5[0] = nms_Item_spiderEye; - var$5[1] = nms_Block_mushroomBrown; - var$5[2] = nms_Item_sugar; - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$2, var$4); - var$2 = nms_ItemStack__init_2(nms_Item_speckledMelon); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_Item_melon; - var$5[1] = nms_Item_goldNugget; - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$2, var$4); - var$2 = nms_ItemStack__init_3(nms_Item_blazePowder, 2); - var$4 = $rt_createArray(jl_Object, 1); - var$4.data[0] = nms_Item_blazeRod; - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$2, var$4); - var$2 = nms_ItemStack__init_2(nms_Item_magmaCream); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_Item_blazePowder; - var$5[1] = nms_Item_slimeBall; - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$2, var$4); -}; -function nms_RecipesCrafting() { - jl_Object.call(this); -} -$java.nms_RecipesCrafting__init_ = function() { - var var_0 = new nms_RecipesCrafting(); - nms_RecipesCrafting__init_(var_0); - return var_0; -}; -function nms_RecipesCrafting__init_($this) { - return; -} -$java.nms_RecipesCrafting_addRecipes = function($this, $par1CraftingManager) { - var var$2, var$3, var$4, var$5; - var$2 = new nms_ItemStack; - nms_Block_$callClinit(); - nms_ItemStack__init_8(var$2, nms_Block_chest); - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = $rt_s(2810); - var$4[1] = $rt_s(2816); - var$4[2] = $rt_s(2810); - var$4[3] = jl_Character_valueOf(35); - var$4[4] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_7(nms_Block_chestTrapped); - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = $rt_s(2853); - var$4[1] = jl_Character_valueOf(35); - var$4[2] = nms_Block_chest; - var$4[3] = jl_Character_valueOf(45); - var$4[4] = nms_Block_tripWireSource; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_7(nms_Block_enderChest); - var$3 = $rt_createArray(jl_Object, 7); - var$4 = var$3.data; - var$4[0] = $rt_s(2810); - var$4[1] = $rt_s(2854); - var$4[2] = $rt_s(2810); - var$4[3] = jl_Character_valueOf(35); - var$4[4] = nms_Block_obsidian; - var$4[5] = jl_Character_valueOf(69); - nms_Item_$callClinit(); - var$4[6] = nms_Item_eyeOfEnder; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_7(nms_Block_furnaceIdle); - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = $rt_s(2810); - var$4[1] = $rt_s(2816); - var$4[2] = $rt_s(2810); - var$4[3] = jl_Character_valueOf(35); - var$4[4] = nms_Block_cobblestone; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_7(nms_Block_workbench); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(2814); - var$4[1] = $rt_s(2814); - var$4[2] = jl_Character_valueOf(35); - var$4[3] = nms_Block_planks; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_7(nms_Block_sandStone); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(2814); - var$4[1] = $rt_s(2814); - var$4[2] = jl_Character_valueOf(35); - var$4[3] = nms_Block_sand; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_10(nms_Block_sandStone, 4, 2); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(2814); - var$4[1] = $rt_s(2814); - var$4[2] = jl_Character_valueOf(35); - var$4[3] = nms_Block_sandStone; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$5 = nms_ItemStack__init_10(nms_Block_sandStone, 1, 1); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(795); - var$4[1] = $rt_s(795); - var$4[2] = jl_Character_valueOf(35); - var$4[3] = nms_ItemStack__init_10(nms_Block_stoneSingleSlab, 1, 1); - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$5, var$3); - var$2 = nms_ItemStack__init_10(nms_Block_blockNetherQuartz, 1, 1); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(795); - var$4[1] = $rt_s(795); - var$4[2] = jl_Character_valueOf(35); - var$4[3] = nms_ItemStack__init_10(nms_Block_stoneSingleSlab, 1, 7); - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_10(nms_Block_blockNetherQuartz, 2, 2); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(795); - var$4[1] = $rt_s(795); - var$4[2] = jl_Character_valueOf(35); - var$4[3] = nms_ItemStack__init_10(nms_Block_blockNetherQuartz, 1, 0); - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_6(nms_Block_stoneBrick, 4); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(2814); - var$4[1] = $rt_s(2814); - var$4[2] = jl_Character_valueOf(35); - var$4[3] = nms_Block_stone; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_6(nms_Block_fenceIron, 16); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(2810); - var$4[1] = $rt_s(2810); - var$4[2] = jl_Character_valueOf(35); - var$4[3] = nms_Item_ingotIron; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_6(nms_Block_thinGlass, 16); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(2810); - var$4[1] = $rt_s(2810); - var$4[2] = jl_Character_valueOf(35); - var$4[3] = nms_Block_glass; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_6(nms_Block_redstoneLampIdle, 1); - var$3 = $rt_createArray(jl_Object, 7); - var$4 = var$3.data; - var$4[0] = $rt_s(2855); - var$4[1] = $rt_s(2856); - var$4[2] = $rt_s(2855); - var$4[3] = jl_Character_valueOf(82); - var$4[4] = nms_Item_redstone; - var$4[5] = jl_Character_valueOf(71); - var$4[6] = nms_Block_glowStone; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_6(nms_Block_beacon, 1); - var$3 = $rt_createArray(jl_Object, 9); - var$4 = var$3.data; - var$4[0] = $rt_s(2841); - var$4[1] = $rt_s(2857); - var$4[2] = $rt_s(2858); - var$4[3] = jl_Character_valueOf(71); - var$4[4] = nms_Block_glass; - var$4[5] = jl_Character_valueOf(83); - var$4[6] = nms_Item_netherStar; - var$4[7] = jl_Character_valueOf(79); - var$4[8] = nms_Block_obsidian; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); - var$2 = nms_ItemStack__init_6(nms_Block_netherBrick, 1); - var$3 = $rt_createArray(jl_Object, 4); - var$4 = var$3.data; - var$4[0] = $rt_s(2859); - var$4[1] = $rt_s(2859); - var$4[2] = jl_Character_valueOf(78); - var$4[3] = nms_Item_netherrackBrick; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$2, var$3); -}; -function nms_RecipesArmor() { - var a = this; jl_Object.call(a); - a.$recipePatterns1 = null; - a.$recipeItems4 = null; -} -$java.nms_RecipesArmor__init_ = function() { - var var_0 = new nms_RecipesArmor(); - nms_RecipesArmor__init_(var_0); - return var_0; -}; -function nms_RecipesArmor__init_($this) { - var var$1, var$2, var$3, var$4; - var$1 = $rt_createArray($rt_arraycls(jl_String), 4); - var$2 = var$1.data; - var$3 = $rt_createArray(jl_String, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2813); - var$4[1] = $rt_s(2822); - var$2[0] = var$3; - var$3 = $rt_createArray(jl_String, 3); - var$4 = var$3.data; - var$4[0] = $rt_s(2822); - var$4[1] = $rt_s(2813); - var$4[2] = $rt_s(2813); - var$2[1] = var$3; - var$3 = $rt_createArray(jl_String, 3); - var$4 = var$3.data; - var$4[0] = $rt_s(2813); - var$4[1] = $rt_s(2822); - var$4[2] = $rt_s(2822); - var$2[2] = var$3; - var$3 = $rt_createArray(jl_String, 2); - var$4 = var$3.data; - var$4[0] = $rt_s(2822); - var$4[1] = $rt_s(2822); - var$2[3] = var$3; - $this.$recipePatterns1 = var$1; - var$1 = $rt_createArray($rt_arraycls(jl_Object), 5); - var$2 = var$1.data; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - nms_Item_$callClinit(); - var$4[0] = nms_Item_leather; - nms_Block_$callClinit(); - var$4[1] = nms_Block_fire; - var$4[2] = nms_Item_ingotIron; - var$4[3] = nms_Item_diamond; - var$4[4] = nms_Item_ingotGold; - var$2[0] = var$3; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = nms_Item_helmetLeather; - var$4[1] = nms_Item_helmetChain; - var$4[2] = nms_Item_helmetIron; - var$4[3] = nms_Item_helmetDiamond; - var$4[4] = nms_Item_helmetGold; - var$2[1] = var$3; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = nms_Item_plateLeather; - var$4[1] = nms_Item_plateChain; - var$4[2] = nms_Item_plateIron; - var$4[3] = nms_Item_plateDiamond; - var$4[4] = nms_Item_plateGold; - var$2[2] = var$3; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = nms_Item_legsLeather; - var$4[1] = nms_Item_legsChain; - var$4[2] = nms_Item_legsIron; - var$4[3] = nms_Item_legsDiamond; - var$4[4] = nms_Item_legsGold; - var$2[3] = var$3; - var$3 = $rt_createArray(jl_Object, 5); - var$4 = var$3.data; - var$4[0] = nms_Item_bootsLeather; - var$4[1] = nms_Item_bootsChain; - var$4[2] = nms_Item_bootsIron; - var$4[3] = nms_Item_bootsDiamond; - var$4[4] = nms_Item_bootsGold; - var$2[4] = var$3; - $this.$recipeItems4 = var$1; -} -$java.nms_RecipesArmor_addRecipes = function($this, $par1CraftingManager) { - var $var2, $var3, $var4, var$5, $var4_0, $var5, var$8, var$9, var$10; - $var2 = 0; - while ($var2 < $this.$recipeItems4.data[0].data.length) { - $var3 = $this.$recipeItems4.data[0].data[$var2]; - $var4 = 0; - while ($var4 < ($this.$recipeItems4.data.length - 1 | 0)) { - var$5 = $this.$recipeItems4.data; - $var4_0 = $var4 + 1 | 0; - $var5 = var$5[$var4_0].data[$var2]; - var$8 = new nms_ItemStack; - var$9 = $var5.$itemID; - var$8.$stackSize = 0; - var$8.$itemFrame = null; - var$8.$itemID0 = var$9; - var$8.$stackSize = 1; - var$8.$itemDamage = 0; - if (var$8.$itemDamage < 0) - var$8.$itemDamage = 0; - var$5 = $rt_createArray(jl_Object, 3); - var$10 = var$5.data; - var$10[0] = $this.$recipePatterns1.data[$var4]; - var$10[1] = jl_Character_valueOf(88); - var$10[2] = $var3; - $java.nms_CraftingManager_addRecipe($par1CraftingManager, var$8, var$5); - $var4 = $var4_0; - } - $var2 = $var2 + 1 | 0; - } -}; -function nms_RecipesDyes() { - jl_Object.call(this); -} -$java.nms_RecipesDyes__init_ = function() { - var var_0 = new nms_RecipesDyes(); - nms_RecipesDyes__init_(var_0); - return var_0; -}; -function nms_RecipesDyes__init_($this) { - return; -} -$java.nms_RecipesDyes_addRecipes = function($this, $par1CraftingManager) { - var $var2, var$3, var$4, var$5, var$6; - $var2 = 0; - while ($var2 < 16) { - var$3 = new nms_ItemStack; - nms_Block_$callClinit(); - nms_ItemStack__init_11(var$3, nms_Block_cloth, 1, nms_BlockCloth_getDyeFromBlock($var2)); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$6 = new nms_ItemStack; - nms_Item_$callClinit(); - nms_ItemStack__init_13(var$6, nms_Item_dyePowder, 1, $var2); - var$5[0] = var$6; - var$5[1] = nms_ItemStack__init_5(nms_Item_itemsList.data[nms_Block_cloth.$blockID], 1, 0); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - $var2 = $var2 + 1 | 0; - } - var$6 = new nms_ItemStack; - nms_Item_$callClinit(); - nms_ItemStack__init_13(var$6, nms_Item_dyePowder, 2, 11); - var$4 = $rt_createArray(jl_Object, 1); - var$5 = var$4.data; - nms_Block_$callClinit(); - var$5[0] = nms_Block_plantYellow; - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$6, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 1); - var$4 = $rt_createArray(jl_Object, 1); - var$4.data[0] = nms_Block_plantRed; - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 3, 15); - var$4 = $rt_createArray(jl_Object, 1); - var$4.data[0] = nms_Item_bone; - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$6 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 9); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 1); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 15); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$6, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 14); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 1); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 11); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 10); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 2); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 15); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 8); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 0); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 15); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 7); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 8); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 15); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 3, 7); - var$4 = $rt_createArray(jl_Object, 3); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 0); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 15); - var$5[2] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 15); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 12); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 4); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 15); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 6); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 4); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 2); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 5); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 4); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 1); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 2, 13); - var$4 = $rt_createArray(jl_Object, 2); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 5); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 9); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 3, 13); - var$4 = $rt_createArray(jl_Object, 3); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 4); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 1); - var$5[2] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 9); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); - var$3 = nms_ItemStack__init_5(nms_Item_dyePowder, 4, 13); - var$4 = $rt_createArray(jl_Object, 4); - var$5 = var$4.data; - var$5[0] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 4); - var$5[1] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 1); - var$5[2] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 1); - var$5[3] = nms_ItemStack__init_5(nms_Item_dyePowder, 1, 15); - $java.nms_CraftingManager_addShapelessRecipe($par1CraftingManager, var$3, var$4); -}; -$java.nms_IRecipe = function() { -}; -function nms_RecipesArmorDyes() { - jl_Object.call(this); -} -$java.nms_RecipesArmorDyes__init_ = function() { - var var_0 = new nms_RecipesArmorDyes(); - nms_RecipesArmorDyes__init_(var_0); - return var_0; -}; -function nms_RecipesArmorDyes__init_($this) { - return; -} -$java.nms_RecipesArmorDyes_matches = function($this, $par1InventoryCrafting, $par2World) { - var $var3, $var4, $var5, $var6; - $var3 = null; - $var4 = new ju_ArrayList; - $var4.$array1 = $rt_createArray(jl_Object, 10); - $var5 = 0; - a: { - while (true) { - if ($var5 >= $par1InventoryCrafting.$stackList.data.length) - return $var3 !== null && !($var4.$size0 ? 0 : 1) ? 1 : 0; - $var6 = $var5 >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[$var5]; - if ($var6 !== null) { - nms_Item_$callClinit(); - if (!(nms_Item_itemsList.data[$var6.$itemID0] instanceof nms_ItemArmor)) { - if ($var6.$itemID0 != nms_Item_dyePowder.$itemID) - break; - ju_ArrayList_add($var4, $var6); - } else { - if (nms_Item_itemsList.data[$var6.$itemID0].$material !== nms_EnumArmorMaterial_CLOTH) - break a; - if ($var3 !== null) - break a; - $var3 = $var6; - } - } - $var5 = $var5 + 1 | 0; - } - return 0; - } - return 0; -}; -$java.nms_RecipesArmorDyes_getCraftingResult = function($this, $par1InventoryCrafting) { - var $var2, $var3, $var4, $var5, $var6, $var7, var$8, $var13, $var9, $var10, $var9_0, $var11, $var8, $var14, $var15, $var16, $var17, $var10_0, $var12, var$21; - $var2 = null; - $var3 = $rt_createIntArray(3).data; - $var4 = 0; - $var5 = 0; - $var6 = null; - $var7 = 0; - while (true) { - if ($var7 >= $par1InventoryCrafting.$stackList.data.length) { - if ($var6 === null) - return null; - var$8 = $var3[0] / $var5 | 0; - $var13 = $var3[1] / $var5 | 0; - $var9 = $var3[2] / $var5 | 0; - $var10 = $var4 / $var5; - $var9_0 = $var13 <= $var9 ? $var9 : $var13; - if (var$8 > $var9_0) - $var9_0 = var$8; - $var11 = $var9_0; - nms_ItemArmor_func_82813_b($var6, $var2, ((((var$8 * $var10 / $var11 | 0) << 8) + ($var13 * $var10 / $var11 | 0) | 0) << 8) + ($var9 * $var10 / $var11 | 0) | 0); - return $var2; - } - $var8 = $var7 >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[$var7]; - if ($var8 !== null) { - nms_Item_$callClinit(); - if (!(nms_Item_itemsList.data[$var8.$itemID0] instanceof nms_ItemArmor)) { - if ($var8.$itemID0 != nms_Item_dyePowder.$itemID) - return null; - $var14 = nms_EntitySheep_fleeceColorTable.data[($var8.$itemDamage ^ (-1)) & 15].data; - $var15 = $var14[0] * 255.0 | 0; - $var16 = $var14[1] * 255.0 | 0; - $var17 = $var14[2] * 255.0 | 0; - var$8 = $var16 <= $var17 ? $var17 : $var16; - if ($var15 > var$8) - var$8 = $var15; - $var4 = $var4 + var$8 | 0; - $var3[0] = $var3[0] + $var15 | 0; - $var3[1] = $var3[1] + $var16 | 0; - $var3[2] = $var3[2] + $var17 | 0; - $var5 = $var5 + 1 | 0; - } else { - $var6 = nms_Item_itemsList.data[$var8.$itemID0]; - if ($var6.$material !== nms_EnumArmorMaterial_CLOTH) - break; - if ($var2 !== null) - break; - $var2 = new nms_ItemStack; - $var9_0 = $var8.$itemID0; - var$8 = $var8.$stackSize; - $var16 = $var8.$itemDamage; - $var2.$stackSize = 0; - $var2.$itemFrame = null; - $var2.$itemID0 = $var9_0; - $var2.$stackSize = var$8; - $var2.$itemDamage = $var16; - if ($var2.$itemDamage < 0) - $var2.$itemDamage = 0; - if ($var8.$stackTagCompound !== null) - $var2.$stackTagCompound = nms_NBTTagCompound_copy($var8.$stackTagCompound); - $var2.$stackSize = 1; - if (nms_ItemArmor_hasColor($var6, $var8)) { - $var9_0 = nms_ItemArmor_getColor($var6, $var2); - $var10_0 = ($var9_0 >> 16 & 255) / 255.0; - $var11 = ($var9_0 >> 8 & 255) / 255.0; - $var12 = ($var9_0 & 255) / 255.0; - var$21 = $var4; - $var10 = $var11 <= $var12 ? $var12 : $var11; - if ($var10_0 > $var10) - $var10 = $var10_0; - $var4 = var$21 + $var10 * 255.0 | 0; - $var3[0] = $var3[0] + $var10_0 * 255.0 | 0; - $var3[1] = $var3[1] + $var11 * 255.0 | 0; - $var3[2] = $var3[2] + $var12 * 255.0 | 0; - $var5 = $var5 + 1 | 0; - } - } - } - $var7 = $var7 + 1 | 0; - } - return null; -}; -$java.nms_RecipesArmorDyes_getRecipeSize = function($this) { - return 10; -}; -function nms_RecipesMapCloning() { - jl_Object.call(this); -} -$java.nms_RecipesMapCloning__init_ = function() { - var var_0 = new nms_RecipesMapCloning(); - nms_RecipesMapCloning__init_(var_0); - return var_0; -}; -function nms_RecipesMapCloning__init_($this) { - return; -} -$java.nms_RecipesMapCloning_matches = function($this, $par1InventoryCrafting, $par2World) { - var $var3, $var4, $var5, $var6, var$7; - $var3 = 0; - $var4 = null; - $var5 = 0; - while (true) { - if ($var5 >= $par1InventoryCrafting.$stackList.data.length) - return $var4 !== null && $var3 > 0 ? 1 : 0; - $var6 = $var5 >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[$var5]; - if ($var6 !== null) { - var$7 = $var6.$itemID0; - nms_Item_$callClinit(); - if (var$7 == nms_Item_map.$itemID) { - if ($var4 !== null) - return 0; - $var4 = $var6; - } else { - if ($var6.$itemID0 != nms_Item_emptyMap.$itemID) - break; - $var3 = $var3 + 1 | 0; - } - } - $var5 = $var5 + 1 | 0; - } - return 0; -}; -$java.nms_RecipesMapCloning_getCraftingResult = function($this, $par1InventoryCrafting) { - var $var2, $var3, $var4, $var6, var$6, $var5; - $var2 = 0; - $var3 = null; - $var4 = 0; - while (true) { - if ($var4 >= $par1InventoryCrafting.$stackList.data.length) { - if ($var3 !== null && $var2 >= 1) { - $var6 = new nms_ItemStack; - nms_Item_$callClinit(); - $par1InventoryCrafting = nms_Item_map; - $var2 = $var2 + 1 | 0; - $var4 = $var3.$itemDamage; - var$6 = $par1InventoryCrafting.$itemID; - $var6.$stackSize = 0; - $var6.$itemFrame = null; - $var6.$itemID0 = var$6; - $var6.$stackSize = $var2; - $var6.$itemDamage = $var4; - if ($var6.$itemDamage < 0) - $var6.$itemDamage = 0; - if (nms_ItemStack_hasDisplayName($var3)) - nms_ItemStack_setItemName($var6, nms_ItemStack_getDisplayName($var3)); - return $var6; - } - return null; - } - $var5 = $var4 >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[$var4]; - if ($var5 !== null) { - var$6 = $var5.$itemID0; - nms_Item_$callClinit(); - if (var$6 == nms_Item_map.$itemID) { - if ($var3 !== null) - return null; - $var3 = $var5; - } else { - if ($var5.$itemID0 != nms_Item_emptyMap.$itemID) - break; - $var2 = $var2 + 1 | 0; - } - } - $var4 = $var4 + 1 | 0; - } - return null; -}; -$java.nms_RecipesMapCloning_getRecipeSize = function($this) { - return 9; -}; -$java.nms_ShapedRecipes = function() { - var a = this; jl_Object.call(a); - a.$recipeWidth = 0; - a.$recipeHeight = 0; - a.$recipeItems = null; - a.$recipeOutput = null; - a.$recipeOutputItemID = 0; - a.$field_92101_f = 0; -}; -$java.nms_ShapedRecipes_getRecipeOutput = function($this) { - return $this.$recipeOutput; -}; -$java.nms_ShapedRecipes_matches = function($this, $par1InventoryCrafting, $par2World) { - var $var3, $var4; - $var3 = 0; - while ($var3 <= (3 - $this.$recipeWidth | 0)) { - $var4 = 0; - while ($var4 <= (3 - $this.$recipeHeight | 0)) { - if ($java.nms_ShapedRecipes_checkMatch($this, $par1InventoryCrafting, $var3, $var4, 1)) - return 1; - if ($java.nms_ShapedRecipes_checkMatch($this, $par1InventoryCrafting, $var3, $var4, 0)) - return 1; - $var4 = $var4 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - return 0; -}; -$java.nms_ShapedRecipes_checkMatch = function($this, $par1InventoryCrafting, $par2, $par3, $par4) { - var $var5, $var6, $var7, $var8, $var9, var$10, $var10; - $var5 = 0; - a: { - while ($var5 < 3) { - $var6 = 0; - while ($var6 < 3) { - $var7 = $var5 - $par2 | 0; - $var8 = $var6 - $par3 | 0; - $var9 = null; - if ($var7 >= 0 && $var8 >= 0 && $var7 < $this.$recipeWidth && $var8 < $this.$recipeHeight) - $var9 = !$par4 ? $this.$recipeItems.data[$var7 + $rt_imul($var8, $this.$recipeWidth) | 0] : $this.$recipeItems.data[(($this.$recipeWidth - $var7 | 0) - 1 | 0) + $rt_imul($var8, $this.$recipeWidth) | 0]; - if ($var5 >= 0 && $var5 < $par1InventoryCrafting.$inventoryWidth) { - var$10 = $var5 + $rt_imul($var6, $par1InventoryCrafting.$inventoryWidth) | 0; - $var10 = var$10 >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[var$10]; - } else - $var10 = null; - if (!($var10 === null && $var9 === null)) { - if ($var10 === null && $var9 !== null) - break a; - if ($var10 !== null && $var9 === null) - break a; - if ($var9.$itemID0 != $var10.$itemID0) - return 0; - if ($var9.$itemDamage != 32767 && $var9.$itemDamage != $var10.$itemDamage) - return 0; - } - $var6 = $var6 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - return 1; - } - return 0; -}; -$java.nms_ShapedRecipes_getCraftingResult = function($this, $par1InventoryCrafting) { - var $var4, $var2, var$4, var$5, var$6, $var3; - $var4 = $this.$recipeOutput; - $var2 = new nms_ItemStack; - var$4 = $var4.$itemID0; - var$5 = $var4.$stackSize; - var$6 = $var4.$itemDamage; - $var2.$stackSize = 0; - $var2.$itemFrame = null; - $var2.$itemID0 = var$4; - $var2.$stackSize = var$5; - $var2.$itemDamage = var$6; - if ($var2.$itemDamage < 0) - $var2.$itemDamage = 0; - if ($var4.$stackTagCompound !== null) - $var2.$stackTagCompound = nms_NBTTagCompound_copy($var4.$stackTagCompound); - a: { - if ($this.$field_92101_f) { - $var3 = 0; - while (true) { - if ($var3 >= $par1InventoryCrafting.$stackList.data.length) - break a; - $var4 = $var3 >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[$var3]; - if ($var4 !== null && ($var4.$stackTagCompound === null ? 0 : 1)) - $var2.$stackTagCompound = nms_NBTTagCompound_copy($var4.$stackTagCompound); - $var3 = $var3 + 1 | 0; - } - } - } - return $var2; -}; -$java.nms_ShapedRecipes_getRecipeSize = function($this) { - return $rt_imul($this.$recipeWidth, $this.$recipeHeight); -}; -$java.nms_ShapedRecipes_func_92100_c = function($this) { - $this.$field_92101_f = 1; - return $this; -}; -function nms_RecipesMapExtending() { - $java.nms_ShapedRecipes.call(this); -} -$java.nms_RecipesMapExtending__init_ = function() { - var var_0 = new nms_RecipesMapExtending(); - nms_RecipesMapExtending__init_(var_0); - return var_0; -}; -function nms_RecipesMapExtending__init_($this) { - var var$1, var$2, var$3, var$4, var$5, var$6; - var$1 = $rt_createArray(nms_ItemStack, 9); - var$2 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_paper.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4 = var$1.data; - var$4[0] = var$2; - var$5 = new nms_ItemStack; - var$6 = nms_Item_paper.$itemID; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = var$6; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$4[1] = var$5; - var$5 = new nms_ItemStack; - var$6 = nms_Item_paper.$itemID; - var$5.$stackSize = 0; - var$5.$itemFrame = null; - var$5.$itemID0 = var$6; - var$5.$stackSize = 1; - var$5.$itemDamage = 0; - if (var$5.$itemDamage < 0) - var$5.$itemDamage = 0; - var$4[2] = var$5; - var$2 = new nms_ItemStack; - var$3 = nms_Item_paper.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4[3] = var$2; - var$2 = new nms_ItemStack; - var$6 = nms_Item_map.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$6; - var$2.$stackSize = 0; - var$2.$itemDamage = 32767; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4[4] = var$2; - var$2 = new nms_ItemStack; - var$3 = nms_Item_paper.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4[5] = var$2; - var$2 = new nms_ItemStack; - var$3 = nms_Item_paper.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4[6] = var$2; - var$2 = new nms_ItemStack; - var$3 = nms_Item_paper.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4[7] = var$2; - var$2 = new nms_ItemStack; - var$3 = nms_Item_paper.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - var$4[8] = var$2; - var$2 = new nms_ItemStack; - var$6 = nms_Item_emptyMap.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$6; - var$2.$stackSize = 0; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - $this.$field_92101_f = 0; - $this.$recipeOutputItemID = var$2.$itemID0; - $this.$recipeWidth = 3; - $this.$recipeHeight = 3; - $this.$recipeItems = var$1; - $this.$recipeOutput = var$2; -} -$java.nms_RecipesMapExtending_matches = function($this, $par1InventoryCrafting, $par2World) { - var $var3, $var4, $var5, var$6, $var6; - if (!$java.nms_ShapedRecipes_matches($this, $par1InventoryCrafting, $par2World)) - return 0; - $var3 = null; - $var4 = 0; - while ($var4 < $par1InventoryCrafting.$stackList.data.length && $var3 === null) { - $var5 = $var4 >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[$var4]; - if ($var5 !== null) { - var$6 = $var5.$itemID0; - nms_Item_$callClinit(); - if (var$6 == nms_Item_map.$itemID) - $var3 = $var5; - } - $var4 = $var4 + 1 | 0; - } - if ($var3 === null) - return 0; - nms_Item_$callClinit(); - $var6 = nms_ItemMap_getMapData(nms_Item_map, $var3, $par2World); - return $var6 === null ? 0 : $var6.$scale2 >= 4 ? 0 : 1; -}; -$java.nms_RecipesMapExtending_getCraftingResult = function($this, $par1InventoryCrafting) { - var $var2, $var3, $var4, var$5, var$6, var$7; - $var2 = null; - $var3 = 0; - while ($var3 < $par1InventoryCrafting.$stackList.data.length && $var2 === null) { - $var4 = $var3 >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[$var3]; - if ($var4 !== null) { - var$5 = $var4.$itemID0; - nms_Item_$callClinit(); - if (var$5 == nms_Item_map.$itemID) - $var2 = $var4; - } - $var3 = $var3 + 1 | 0; - } - $par1InventoryCrafting = new nms_ItemStack; - $var3 = $var2.$itemID0; - var$5 = $var2.$stackSize; - var$6 = $var2.$itemDamage; - $par1InventoryCrafting.$stackSize = 0; - $par1InventoryCrafting.$itemFrame = null; - $par1InventoryCrafting.$itemID0 = $var3; - $par1InventoryCrafting.$stackSize = var$5; - $par1InventoryCrafting.$itemDamage = var$6; - if ($par1InventoryCrafting.$itemDamage < 0) - $par1InventoryCrafting.$itemDamage = 0; - if ($var2.$stackTagCompound !== null) - $par1InventoryCrafting.$stackTagCompound = nms_NBTTagCompound_copy($var2.$stackTagCompound); - $par1InventoryCrafting.$stackSize = 1; - if ($par1InventoryCrafting.$stackTagCompound === null) { - $var2 = new nms_NBTTagCompound; - $var2.$name0 = $rt_s(44); - $var2.$tagMap = ju_HashMap__init_1(16, 0.75); - $par1InventoryCrafting.$stackTagCompound = $var2; - } - $var4 = $par1InventoryCrafting.$stackTagCompound.$tagMap; - var$7 = new nms_NBTTagByte; - var$7.$name0 = $rt_s(1947); - var$7.$data0 = 1; - ju_HashMap_putImpl($var4, $rt_s(1947), var$7); - return $par1InventoryCrafting; -}; -function nms_RecipeFireworks() { - jl_Object.call(this); - this.$field_92102_a = null; -} -$java.nms_RecipeFireworks__init_ = function() { - var var_0 = new nms_RecipeFireworks(); - nms_RecipeFireworks__init_(var_0); - return var_0; -}; -function nms_RecipeFireworks__init_($this) { - return; -} -$java.nms_RecipeFireworks_matches = function($this, $par1InventoryCrafting, $par2World) { - var $var3, $var4, $var5, $var6, $var7, $var8, $var9, $var17, $var16, $var19, $var25, $var22, $var26, $var23, $var12, $var13, $var14, $var24, $var18, $var27, $var15, $var11, $var20, $var21, $var10; - $this.$field_92102_a = null; - $var3 = 0; - $var4 = 0; - $var5 = 0; - $var6 = 0; - $var7 = 0; - $var8 = 0; - $var9 = 0; - a: while (true) { - if ($var9 >= $java.nms_InventoryCrafting_getSizeInventory($par1InventoryCrafting)) { - $var17 = $var7 + ($var5 + $var8 | 0) | 0; - if ($var4 <= 3) { - $var7 = $rt_compare($var3, 1); - if ($var7 <= 0) { - $var9 = $rt_compare($var4, 1); - if ($var9 >= 0 && !$var7 && !$var17) { - $par2World = new nms_ItemStack; - nms_Item_$callClinit(); - nms_ItemStack__init_1($par2World, nms_Item_firework); - $this.$field_92102_a = $par2World; - if ($var6 > 0) { - $var16 = nms_NBTTagCompound__init_0(); - $var19 = nms_NBTTagCompound__init_1($rt_s(1513)); - $var25 = nms_NBTTagList__init_1($rt_s(1977)); - $var22 = 0; - while ($var22 < $java.nms_InventoryCrafting_getSizeInventory($par1InventoryCrafting)) { - $var26 = $java.nms_InventoryCrafting_getStackInSlot($par1InventoryCrafting, $var22); - if ($var26 !== null && $var26.$itemID0 == nms_Item_fireworkCharge.$itemID && nms_ItemStack_hasTagCompound($var26) && nms_NBTTagCompound_hasKey(nms_ItemStack_getTagCompound($var26), $rt_s(1979))) - nms_NBTTagList_appendTag($var25, nms_NBTTagCompound_getCompoundTag(nms_ItemStack_getTagCompound($var26), $rt_s(1979))); - $var22 = $var22 + 1 | 0; - } - nms_NBTTagCompound_setTag($var19, $rt_s(1977), $var25); - nms_NBTTagCompound_setByte($var19, $rt_s(1514), $var4 << 24 >> 24); - nms_NBTTagCompound_setTag($var16, $rt_s(1513), $var19); - nms_ItemStack_setTagCompound($this.$field_92102_a, $var16); - } - return 1; - } - if (!$var9 && !$var3 && !$var6 && $var5 > 0 && $var8 <= 1) { - $par2World = new nms_ItemStack; - nms_Item_$callClinit(); - nms_ItemStack__init_1($par2World, nms_Item_fireworkCharge); - $this.$field_92102_a = $par2World; - $var16 = nms_NBTTagCompound__init_0(); - $var19 = nms_NBTTagCompound__init_1($rt_s(1979)); - $var23 = 0; - $var12 = ju_ArrayList__init_0(); - $var13 = 0; - while ($var13 < $java.nms_InventoryCrafting_getSizeInventory($par1InventoryCrafting)) { - b: { - $var14 = $java.nms_InventoryCrafting_getStackInSlot($par1InventoryCrafting, $var13); - if ($var14 === null) - break b; - if ($var14.$itemID0 == nms_Item_dyePowder.$itemID) { - ju_ArrayList_add($var12, jl_Integer_valueOf(nms_ItemDye_dyeColors.data[nms_ItemStack_getItemDamage($var14)])); - break b; - } - if ($var14.$itemID0 == nms_Item_lightStoneDust.$itemID) { - nms_NBTTagCompound_setBoolean($var19, $rt_s(1990), 1); - break b; - } - if ($var14.$itemID0 == nms_Item_diamond.$itemID) { - nms_NBTTagCompound_setBoolean($var19, $rt_s(1988), 1); - break b; - } - if ($var14.$itemID0 == nms_Item_fireballCharge.$itemID) { - $var23 = 1; - break b; - } - if ($var14.$itemID0 == nms_Item_feather.$itemID) { - $var23 = 4; - break b; - } - if ($var14.$itemID0 == nms_Item_goldNugget.$itemID) { - $var23 = 2; - break b; - } - if ($var14.$itemID0 != nms_Item_skull.$itemID) - break b; - $var23 = 3; - } - $var13 = $var13 + 1 | 0; - } - $var24 = $rt_createIntArray(ju_ArrayList_size($var12)); - $var18 = $var24.data; - $var27 = 0; - $var3 = $var18.length; - while ($var27 < $var3) { - $var18[$var27] = jl_Integer_intValue(ju_ArrayList_get($var12, $var27)); - $var27 = $var27 + 1 | 0; - } - nms_NBTTagCompound_setIntArray($var19, $rt_s(1980), $var24); - nms_NBTTagCompound_setByte($var19, $rt_s(1981), $var23); - nms_NBTTagCompound_setTag($var16, $rt_s(1979), $var19); - nms_ItemStack_setTagCompound($this.$field_92102_a, $var16); - return 1; - } - if (!$var4 && !$var3 && $var6 == 1 && $var5 > 0 && $var5 == $var17) { - $var15 = ju_ArrayList__init_0(); - $var17 = 0; - while ($var17 < $java.nms_InventoryCrafting_getSizeInventory($par1InventoryCrafting)) { - $var11 = $java.nms_InventoryCrafting_getStackInSlot($par1InventoryCrafting, $var17); - if ($var11 !== null) { - $var3 = $var11.$itemID0; - nms_Item_$callClinit(); - if ($var3 == nms_Item_dyePowder.$itemID) - ju_ArrayList_add($var15, jl_Integer_valueOf(nms_ItemDye_dyeColors.data[nms_ItemStack_getItemDamage($var11)])); - else if ($var11.$itemID0 == nms_Item_fireworkCharge.$itemID) { - $this.$field_92102_a = nms_ItemStack_copy($var11); - $this.$field_92102_a.$stackSize = 1; - } - } - $var17 = $var17 + 1 | 0; - } - $var18 = $rt_createIntArray(ju_ArrayList_size($var15)); - $var24 = $var18.data; - $var20 = 0; - $var3 = $var24.length; - while ($var20 < $var3) { - $var24[$var20] = jl_Integer_intValue(ju_ArrayList_get($var15, $var20)); - $var20 = $var20 + 1 | 0; - } - if ($this.$field_92102_a !== null && nms_ItemStack_hasTagCompound($this.$field_92102_a)) { - $var21 = nms_NBTTagCompound_getCompoundTag(nms_ItemStack_getTagCompound($this.$field_92102_a), $rt_s(1979)); - if ($var21 === null) - return 0; - nms_NBTTagCompound_setIntArray($var21, $rt_s(1986), $var18); - return 1; - } - return 0; - } - return 0; - } - } - return 0; - } - c: { - $var10 = $java.nms_InventoryCrafting_getStackInSlot($par1InventoryCrafting, $var9); - if ($var10 === null) - break c; - $var17 = $var10.$itemID0; - nms_Item_$callClinit(); - if ($var17 == nms_Item_gunpowder.$itemID) { - $var4 = $var4 + 1 | 0; - break c; - } - if ($var10.$itemID0 == nms_Item_fireworkCharge.$itemID) { - $var6 = $var6 + 1 | 0; - break c; - } - if ($var10.$itemID0 == nms_Item_dyePowder.$itemID) { - $var5 = $var5 + 1 | 0; - break c; - } - if ($var10.$itemID0 == nms_Item_paper.$itemID) { - $var3 = $var3 + 1 | 0; - break c; - } - if ($var10.$itemID0 == nms_Item_lightStoneDust.$itemID) { - $var7 = $var7 + 1 | 0; - break c; - } - if ($var10.$itemID0 == nms_Item_diamond.$itemID) { - $var7 = $var7 + 1 | 0; - break c; - } - if ($var10.$itemID0 == nms_Item_fireballCharge.$itemID) { - $var8 = $var8 + 1 | 0; - break c; - } - if ($var10.$itemID0 == nms_Item_feather.$itemID) { - $var8 = $var8 + 1 | 0; - break c; - } - if ($var10.$itemID0 == nms_Item_goldNugget.$itemID) { - $var8 = $var8 + 1 | 0; - break c; - } - if ($var10.$itemID0 != nms_Item_skull.$itemID) - break a; - $var8 = $var8 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - return 0; -}; -$java.nms_RecipeFireworks_getCraftingResult = function($this, $par1InventoryCrafting) { - var var$2, var$3, var$4, var$5; - $par1InventoryCrafting = $this.$field_92102_a; - var$2 = new nms_ItemStack; - var$3 = $par1InventoryCrafting.$itemID0; - var$4 = $par1InventoryCrafting.$stackSize; - var$5 = $par1InventoryCrafting.$itemDamage; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = var$4; - var$2.$itemDamage = var$5; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - if ($par1InventoryCrafting.$stackTagCompound !== null) - var$2.$stackTagCompound = nms_NBTTagCompound_copy($par1InventoryCrafting.$stackTagCompound); - return var$2; -}; -$java.nms_RecipeFireworks_getRecipeSize = function($this) { - return 10; -}; -$java.nms_RecipeSorter = function() { - jl_Object.call(this); - this.$craftingManager = null; -}; -$java.nms_RecipeSorter__init_ = function(var_0) { - var var_1 = new $java.nms_RecipeSorter(); - $java.nms_RecipeSorter__init_0(var_1, var_0); - return var_1; -}; -$java.nms_RecipeSorter__init_0 = function($this, $par1CraftingManager) { - $this.$craftingManager = $par1CraftingManager; -}; -$java.nms_RecipeSorter_compareRecipes = function($this, $par1IRecipe, $par2IRecipe) { - return $par1IRecipe instanceof $java.nms_ShapelessRecipes && $par2IRecipe instanceof $java.nms_ShapedRecipes ? 1 : $par2IRecipe instanceof $java.nms_ShapelessRecipes && $par1IRecipe instanceof $java.nms_ShapedRecipes ? (-1) : $par2IRecipe.$getRecipeSize() < $par1IRecipe.$getRecipeSize() ? (-1) : $par2IRecipe.$getRecipeSize() <= $par1IRecipe.$getRecipeSize() ? 0 : 1; -}; -$java.nms_RecipeSorter_compare = function($this, $par1Obj, $par2Obj) { - return $java.nms_RecipeSorter_compareRecipes($this, $par1Obj, $par2Obj); -}; -$java.nms_ExtendedBlockStorage = function() { - var a = this; jl_Object.call(a); - a.$yBase = 0; - a.$blockRefCount = 0; - a.$tickRefCount = 0; - a.$blockLSBArray = null; - a.$blockMSBArray = null; - a.$blockMetadataArray = null; - a.$blocklightArray = null; - a.$skylightArray = null; -}; -$java.nms_ExtendedBlockStorage__init_0 = function(var_0, var_1) { - var var_2 = new $java.nms_ExtendedBlockStorage(); - $java.nms_ExtendedBlockStorage__init_(var_2, var_0, var_1); - return var_2; -}; -$java.nms_ExtendedBlockStorage__init_ = function($this, $par1, $par2) { - var var$3; - $this.$yBase = $par1; - $this.$blockLSBArray = $rt_createByteArray(4096); - var$3 = new $java.nms_NibbleArray; - var$3.$data12 = $rt_createByteArray($this.$blockLSBArray.data.length >> 1); - var$3.$depthBits = 4; - var$3.$depthBitsPlusFour = 8; - $this.$blockMetadataArray = var$3; - var$3 = new $java.nms_NibbleArray; - var$3.$data12 = $rt_createByteArray($this.$blockLSBArray.data.length >> 1); - var$3.$depthBits = 4; - var$3.$depthBitsPlusFour = 8; - $this.$blocklightArray = var$3; - if ($par2) { - var$3 = new $java.nms_NibbleArray; - var$3.$data12 = $rt_createByteArray($this.$blockLSBArray.data.length >> 1); - var$3.$depthBits = 4; - var$3.$depthBitsPlusFour = 8; - $this.$skylightArray = var$3; - } -}; -$java.nms_ExtendedBlockStorage_getExtBlockID = function($this, $par1, $par2, $par3) { - var $var4; - $var4 = $this.$blockLSBArray.data[$par2 << 8 | $par3 << 4 | $par1] & 255; - if ($this.$blockMSBArray !== null) - $var4 = $java.nms_NibbleArray_get($this.$blockMSBArray, $par1, $par2, $par3) << 8 | $var4; - return $var4; -}; -$java.nms_ExtendedBlockStorage_setExtBlockID = function($this, $par1, $par2, $par3, $par4) { - var var$5, var$6, $var5, var$8; - var$5 = $this.$blockLSBArray.data; - var$6 = $par2 << 8 | $par3 << 4 | $par1; - $var5 = var$5[var$6] & 255; - if ($this.$blockMSBArray !== null) - $var5 = $var5 | $java.nms_NibbleArray_get($this.$blockMSBArray, $par1, $par2, $par3) << 8; - if (!$var5 && $par4) { - $this.$blockRefCount = $this.$blockRefCount + 1 | 0; - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$par4] !== null && nms_Block_blocksList.data[$par4].$needsRandomTick) - $this.$tickRefCount = $this.$tickRefCount + 1 | 0; - } else if ($var5 && !$par4) { - $this.$blockRefCount = $this.$blockRefCount - 1 | 0; - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var5] !== null && nms_Block_blocksList.data[$var5].$needsRandomTick) - $this.$tickRefCount = $this.$tickRefCount - 1 | 0; - } else { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var5] !== null && nms_Block_blocksList.data[$var5].$needsRandomTick && !(nms_Block_blocksList.data[$par4] !== null && nms_Block_blocksList.data[$par4].$needsRandomTick)) - $this.$tickRefCount = $this.$tickRefCount - 1 | 0; - else if (!(nms_Block_blocksList.data[$var5] !== null && nms_Block_blocksList.data[$var5].$needsRandomTick) && nms_Block_blocksList.data[$par4] !== null && nms_Block_blocksList.data[$par4].$needsRandomTick) - $this.$tickRefCount = $this.$tickRefCount + 1 | 0; - } - $this.$blockLSBArray.data[var$6] = ($par4 & 255) << 24 >> 24; - if ($par4 > 255) { - if ($this.$blockMSBArray === null) { - var$8 = new $java.nms_NibbleArray; - var$8.$data12 = $rt_createByteArray($this.$blockLSBArray.data.length >> 1); - var$8.$depthBits = 4; - var$8.$depthBitsPlusFour = 8; - $this.$blockMSBArray = var$8; - } - $java.nms_NibbleArray_set($this.$blockMSBArray, $par1, $par2, $par3, ($par4 & 3840) >> 8); - } else if ($this.$blockMSBArray !== null) - $java.nms_NibbleArray_set($this.$blockMSBArray, $par1, $par2, $par3, 0); -}; -$java.nms_ExtendedBlockStorage_getExtBlockMetadata = function($this, $par1, $par2, $par3) { - return $java.nms_NibbleArray_get($this.$blockMetadataArray, $par1, $par2, $par3); -}; -$java.nms_ExtendedBlockStorage_setExtBlockMetadata = function($this, $par1, $par2, $par3, $par4) { - $java.nms_NibbleArray_set($this.$blockMetadataArray, $par1, $par2, $par3, $par4); -}; -$java.nms_ExtendedBlockStorage_isEmpty = function($this) { - return $this.$blockRefCount ? 0 : 1; -}; -$java.nms_ExtendedBlockStorage_getYLocation = function($this) { - return $this.$yBase; -}; -$java.nms_ExtendedBlockStorage_setExtSkylightValue = function($this, $par1, $par2, $par3, $par4) { - $java.nms_NibbleArray_set($this.$skylightArray, $par1, $par2, $par3, $par4); -}; -$java.nms_ExtendedBlockStorage_getExtSkylightValue = function($this, $par1, $par2, $par3) { - return $java.nms_NibbleArray_get($this.$skylightArray, $par1, $par2, $par3); -}; -$java.nms_ExtendedBlockStorage_setExtBlocklightValue = function($this, $par1, $par2, $par3, $par4) { - $java.nms_NibbleArray_set($this.$blocklightArray, $par1, $par2, $par3, $par4); -}; -$java.nms_ExtendedBlockStorage_getExtBlocklightValue = function($this, $par1, $par2, $par3) { - return $java.nms_NibbleArray_get($this.$blocklightArray, $par1, $par2, $par3); -}; -$java.nms_ExtendedBlockStorage_removeInvalidBlocks = function($this) { - var $var1, $var2, $var3, $var4; - $this.$blockRefCount = 0; - $this.$tickRefCount = 0; - $var1 = 0; - while ($var1 < 16) { - $var2 = 0; - while ($var2 < 16) { - $var3 = 0; - while ($var3 < 16) { - $var4 = $java.nms_ExtendedBlockStorage_getExtBlockID($this, $var1, $var2, $var3); - if ($var4 > 0) { - nms_Block_$callClinit(); - if (nms_Block_blocksList.data[$var4] !== null) { - $this.$blockRefCount = $this.$blockRefCount + 1 | 0; - if (nms_Block_blocksList.data[$var4].$needsRandomTick) - $this.$tickRefCount = $this.$tickRefCount + 1 | 0; - } else { - $this.$blockLSBArray.data[$var2 << 8 | $var3 << 4 | $var1] = 0; - if ($this.$blockMSBArray !== null) - $java.nms_NibbleArray_set($this.$blockMSBArray, $var1, $var2, $var3, 0); - } - } - $var3 = $var3 + 1 | 0; - } - $var2 = $var2 + 1 | 0; - } - $var1 = $var1 + 1 | 0; - } -}; -$java.nms_ExtendedBlockStorage_getBlockLSBArray = function($this) { - return $this.$blockLSBArray; -}; -$java.nms_ExtendedBlockStorage_clearMSBArray = function($this) { - $this.$blockMSBArray = null; -}; -$java.nms_ExtendedBlockStorage_getBlockMSBArray = function($this) { - return $this.$blockMSBArray; -}; -$java.nms_ExtendedBlockStorage_getMetadataArray = function($this) { - return $this.$blockMetadataArray; -}; -$java.nms_ExtendedBlockStorage_getBlocklightArray = function($this) { - return $this.$blocklightArray; -}; -$java.nms_ExtendedBlockStorage_getSkylightArray = function($this) { - return $this.$skylightArray; -}; -$java.nms_ExtendedBlockStorage_createBlockMSBArray = function($this) { - var var$1; - var$1 = new $java.nms_NibbleArray; - var$1.$data12 = $rt_createByteArray($this.$blockLSBArray.data.length >> 1); - var$1.$depthBits = 4; - var$1.$depthBitsPlusFour = 8; - $this.$blockMSBArray = var$1; - return $this.$blockMSBArray; -}; -function nms_GuiChest() { - var a = this; nms_GuiContainer.call(a); - a.$upperChestInventory = null; - a.$lowerChestInventory0 = null; - a.$inventoryRows = 0; -} -$java.nms_GuiChest_tex = null; -$java.nms_GuiChest__init_ = function(var_0, var_1) { - var var_2 = new nms_GuiChest(); - nms_GuiChest__init_(var_2, var_0, var_1); - return var_2; -}; -function nms_GuiChest__init_($this, $par1IInventory, $par2IInventory) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2IInventory = $thread.pop();$par1IInventory = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$3 = new $java.nms_ContainerChest; - $ptr = 1; - case 1: - $java.nms_ContainerChest__init_(var$3, $par1IInventory, $par2IInventory); - if ($rt_suspending()) { - break main; - } - nms_GuiContainer__init_($this, var$3); - $this.$inventoryRows = 0; - $this.$upperChestInventory = $par1IInventory; - $this.$lowerChestInventory0 = $par2IInventory; - $this.$allowUserInput = 0; - $this.$inventoryRows = $par2IInventory.$getSizeInventory() / 9 | 0; - $this.$ySize0 = 114 + ($this.$inventoryRows * 18 | 0) | 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1IInventory, $par2IInventory, var$3, $ptr); -} -$java.nms_GuiChest_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - var var$3, var$4; - var$3 = $this.$fontRenderer0; - if ($this.$lowerChestInventory0.$isInvNameLocalized()) - var$4 = $this.$lowerChestInventory0.$getInvName(); - else { - var$4 = $this.$lowerChestInventory0.$getInvName(); - var$4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$4); - } - nms_FontRenderer_drawString(var$3, var$4, 8, 6, 4210752, 0); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1033)), 8, ($this.$ySize0 - 96 | 0) + 2 | 0, 4210752, 0); -}; -$java.nms_GuiChest_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - var $var4, $var5; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiChest_tex); - $var4 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var5 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - nms_Gui_drawTexturedModalRect($this, $var4, $var5, 0, 0, $this.$xSize, ($this.$inventoryRows * 18 | 0) + 17 | 0); - nms_Gui_drawTexturedModalRect($this, $var4, ($var5 + ($this.$inventoryRows * 18 | 0) | 0) + 17 | 0, 0, 126, $this.$xSize, 96); -}; -function nms_GuiChest__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2860); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiChest_tex = var$1; -} -function nms_GuiCrafting() { - nms_GuiContainer.call(this); -} -$java.nms_GuiCrafting_tex = null; -$java.nms_GuiCrafting_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1149)), 28, 6, 4210752, 0); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1033)), 8, ($this.$ySize0 - 96 | 0) + 2 | 0, 4210752, 0); -}; -$java.nms_GuiCrafting_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiCrafting_tex); - nms_Gui_drawTexturedModalRect($this, ($this.$width0 - $this.$xSize | 0) / 2 | 0, ($this.$height0 - $this.$ySize0 | 0) / 2 | 0, 0, 0, $this.$xSize, $this.$ySize0); -}; -function nms_GuiCrafting__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2861); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiCrafting_tex = var$1; -} -function nms_GuiBeacon() { - var a = this; nms_GuiContainer.call(a); - a.$beacon = null; - a.$beaconConfirmButton = null; - a.$buttonsNotDrawn = 0; -} -$java.nms_GuiBeacon_tex = null; -$java.nms_GuiBeacon_initGui = function($this) { - var var$1, var$2, var$3; - nms_GuiContainer_initGui($this); - var$1 = $this.$buttonList; - var$2 = new $java.nms_GuiBeaconButtonConfirm; - nms_GuiButton__init_0(var$2, (-1), $this.$guiLeft + 164 | 0, $this.$guiTop + 107 | 0, 22, 22, $rt_s(44)); - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(755); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$2.$buttonTexture = var$3; - var$2.$field_82257_l = 90; - var$2.$field_82258_m = 220; - var$2.$beaconGui = $this; - $this.$beaconConfirmButton = var$2; - ju_ArrayList_add(var$1, var$2); - var$2 = $this.$buttonList; - var$1 = new $java.nms_GuiBeaconButtonCancel; - nms_GuiButton__init_0(var$1, (-2), $this.$guiLeft + 190 | 0, $this.$guiTop + 107 | 0, 22, 22, $rt_s(44)); - var$3 = new nle_TextureLocation; - var$3.$path = $rt_s(755); - var$3.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$3); - var$1.$buttonTexture = var$3; - var$1.$field_82257_l = 112; - var$1.$field_82258_m = 220; - var$1.$beaconGui0 = $this; - ju_ArrayList_add(var$2, var$1); - $this.$buttonsNotDrawn = 1; - $this.$beaconConfirmButton.$enabled = 0; -}; -$java.nms_GuiBeacon_updateScreen = function($this) { - var $var1, $var2, $var3, $var4, $var5, $var6, $var3_0, $var4_0, $var8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var8 = $thread.pop();$var4_0 = $thread.pop();$var3_0 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $ptr = 1; - case 1: - nms_GuiContainer_updateScreen($this); - if ($rt_suspending()) { - break main; - } - if ($this.$buttonsNotDrawn && $this.$beacon.$levels >= 0) { - $this.$buttonsNotDrawn = 0; - $var1 = 0; - while ($var1 <= 2) { - nms_TileEntityBeacon_$callClinit(); - $var2 = $java.nms_TileEntityBeacon_effectsList.data[$var1].data.length; - $var3 = ($var2 * 22 | 0) + (($var2 - 1 | 0) * 2 | 0) | 0; - $var4 = 0; - while ($var4 < $var2) { - $var5 = $java.nms_TileEntityBeacon_effectsList.data[$var1].data[$var4].$id3; - $var6 = $java.nms_GuiBeaconButtonPower__init_($this, $var1 << 8 | $var5, (($this.$guiLeft + 76 | 0) + ($var4 * 24 | 0) | 0) - ($var3 / 2 | 0) | 0, ($this.$guiTop + 22 | 0) + ($var1 * 25 | 0) | 0, $var5, $var1); - ju_ArrayList_add($this.$buttonList, $var6); - if ($var1 >= $this.$beacon.$levels) - $var6.$enabled = 0; - else if ($var5 == $this.$beacon.$primaryEffect) - $var6.$field_82256_n = 1; - $var4 = $var4 + 1 | 0; - } - $var1 = $var1 + 1 | 0; - } - nms_TileEntityBeacon_$callClinit(); - $var2 = $java.nms_TileEntityBeacon_effectsList.data[3].data.length + 1 | 0; - $var1 = $var2 * 22 | 0; - $var2 = $var2 - 1 | 0; - $var3_0 = $var1 + ($var2 * 2 | 0) | 0; - $var4_0 = 0; - while ($var4_0 < $var2) { - $var5 = $java.nms_TileEntityBeacon_effectsList.data[3].data[$var4_0].$id3; - $var6 = $java.nms_GuiBeaconButtonPower__init_($this, 768 | $var5, (($this.$guiLeft + 167 | 0) + ($var4_0 * 24 | 0) | 0) - ($var3_0 / 2 | 0) | 0, $this.$guiTop + 47 | 0, $var5, 3); - ju_ArrayList_add($this.$buttonList, $var6); - if (3 >= $this.$beacon.$levels) - $var6.$enabled = 0; - else if ($var5 == $this.$beacon.$secondaryEffect) - $var6.$field_82256_n = 1; - $var4_0 = $var4_0 + 1 | 0; - } - if ($this.$beacon.$primaryEffect > 0) { - $var8 = $java.nms_GuiBeaconButtonPower__init_($this, 768 | $this.$beacon.$primaryEffect, (($this.$guiLeft + 167 | 0) + ($var2 * 24 | 0) | 0) - ($var3_0 / 2 | 0) | 0, $this.$guiTop + 47 | 0, $this.$beacon.$primaryEffect, 3); - ju_ArrayList_add($this.$buttonList, $var8); - if (3 >= $this.$beacon.$levels) - $var8.$enabled = 0; - else if ($this.$beacon.$primaryEffect == $this.$beacon.$secondaryEffect) - $var8.$field_82256_n = 1; - } - } - $this.$beaconConfirmButton.$enabled = $this.$beacon.$payment !== null && $this.$beacon.$primaryEffect > 0 ? 1 : 0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var3, $var4, $var5, $var6, $var3_0, $var4_0, $var8, $ptr); -}; -$java.nms_GuiBeacon_actionPerformed = function($this, $par1GuiButton) { - var $var2, $var7, $var8, $var3, $var4, $var6, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$id2 == (-2)) { - $par1GuiButton = $this.$mc4; - $var2 = null; - $ptr = 1; - continue main; - } - if ($par1GuiButton.$id2 != (-1)) { - if (!($par1GuiButton instanceof $java.nms_GuiBeaconButtonPower)) - return; - if ($par1GuiButton.$field_82256_n) - return; - $var7 = $par1GuiButton.$id2; - $var8 = $var7 & 255; - if ($var7 >> 8 >= 3) - $java.nms_TileEntityBeacon_setSecondaryEffect($this.$beacon, $var8); - else - $java.nms_TileEntityBeacon_setPrimaryEffect($this.$beacon, $var8); - $par1GuiButton = $this.$buttonList; - ju_Arrays_fill($par1GuiButton.$array1, 0, $par1GuiButton.$size0, null); - $par1GuiButton.$size0 = 0; - $ptr = 3; - continue main; - } - $var3 = new ji_ByteArrayOutputStream; - $var3.$buf1 = $rt_createByteArray(32); - $var4 = new ji_DataOutputStream; - $var4.$out = $var3; - $var4.$buff0 = $rt_createByteArray(8); - a: { - try { - ji_DataOutputStream_writeInt($var4, $java.nms_TileEntityBeacon_getPrimaryEffect($this.$beacon)); - ji_DataOutputStream_writeInt($var4, $java.nms_TileEntityBeacon_getSecondaryEffect($this.$beacon)); - nms_NetClientHandler_addToSendQueue(nmc_Minecraft_getNetHandler($this.$mc4), nms_Packet250CustomPayload__init_0($rt_s(2862), ji_ByteArrayOutputStream_toByteArray($var3))); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var6 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var2 = new ji_PrintStream; - $var2.$out = new jl_ConsoleOutputStreamStderr; - $par1GuiButton = new jl_StringBuilder; - $par1GuiButton.$buffer = $rt_createCharArray(16); - $var2.$sb = $par1GuiButton; - $var2.$buffer0 = $rt_createCharArray(32); - $var2.$autoFlush = 0; - $par1GuiButton = new jnci_UTF8Charset; - jnc_Charset__init_($par1GuiButton, $rt_s(2), $rt_createArray(jl_String, 0)); - $var2.$charset = $par1GuiButton; - jl_System_errCache = $var2; - } - jl_Throwable_printStackTrace0($var6, jl_System_errCache); - } - $par1GuiButton = $this.$mc4; - $var2 = null; - $ptr = 2; - continue main; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var2); - if ($rt_suspending()) { - break main; - } - return; - case 3: - $java.nms_GuiBeacon_initGui($this); - if ($rt_suspending()) { - break main; - } - $ptr = 4; - case 4: - $java.nms_GuiBeacon_updateScreen($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, $var2, $var7, $var8, $var3, $var4, $var6, $ptr); -}; -$java.nms_GuiBeacon_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - var $var4, var$4, $var3$index, var$6, var$7, $var3$index_0; - nleg_EaglerAdapterGL30_glDisable(13); - nleg_EaglerAdapterGL30_glDisable(15); - $var4 = $this.$fontRenderer0; - var$4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2863)); - nms_FontRenderer_drawString($var4, var$4, 62 - (nms_FontRenderer_getStringWidth($var4, var$4) / 2 | 0) | 0, 10, 14737632, 1); - var$4 = $this.$fontRenderer0; - $var4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2864)); - nms_FontRenderer_drawString(var$4, $var4, 169 - (nms_FontRenderer_getStringWidth(var$4, $var4) / 2 | 0) | 0, 10, 14737632, 1); - var$4 = $this.$buttonList; - $var3$index = 0; - var$6 = var$4.$modCount0; - var$7 = var$4.$size2(); - a: { - while (true) { - if (!($var3$index >= var$7 ? 0 : 1)) - break a; - if (var$6 < var$4.$modCount0) - break; - $var3$index_0 = $var3$index + 1 | 0; - $var4 = var$4.$get4($var3$index); - if ($var4.$field_82253_i) { - $var4.$func_82251_b($par1 - $this.$guiLeft | 0, $par2 - $this.$guiTop | 0); - break a; - } - $var3$index = $var3$index_0; - } - var$4 = new ju_ConcurrentModificationException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glRotatef((-30.0), 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(165.0, 1.0, 0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(13); - nleg_EaglerAdapterGL30_glEnable(15); - nleg_EaglerAdapterGL30_copyModelToLightMatrix(); - nleg_EaglerAdapterGL30_glPopMatrix(); -}; -$java.nms_GuiBeacon_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - var $var4, $var5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $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();$var5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiBeacon_tex); - $var4 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var5 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - nms_Gui_drawTexturedModalRect($this, $var4, $var5, 0, 0, $this.$xSize, $this.$ySize0); - nms_GuiContainer_itemRenderer.$zLevel0 = 100.0; - var$6 = nms_GuiContainer_itemRenderer; - var$7 = $this.$fontRenderer0; - var$8 = $this.$mc4.$renderEngine; - var$9 = new nms_ItemStack; - nms_Item_$callClinit(); - var$10 = nms_Item_emerald.$itemID; - var$9.$stackSize = 0; - var$9.$itemFrame = null; - var$9.$itemID0 = var$10; - var$9.$stackSize = 1; - var$9.$itemDamage = 0; - if (var$9.$itemDamage < 0) - var$9.$itemDamage = 0; - $par2 = $var4 + 42 | 0; - var$11 = $var5 + 109 | 0; - $ptr = 1; - case 1: - nms_RenderItem_renderItemAndEffectIntoGUI(var$6, var$7, var$8, var$9, $par2, var$11); - if ($rt_suspending()) { - break main; - } - var$7 = nms_GuiContainer_itemRenderer; - var$8 = $this.$fontRenderer0; - var$9 = $this.$mc4.$renderEngine; - var$12 = new nms_ItemStack; - $var5 = nms_Item_diamond.$itemID; - var$12.$stackSize = 0; - var$12.$itemFrame = null; - var$12.$itemID0 = $var5; - var$12.$stackSize = 1; - var$12.$itemDamage = 0; - if (var$12.$itemDamage < 0) - var$12.$itemDamage = 0; - $par3 = $par2 + 22 | 0; - $ptr = 2; - case 2: - nms_RenderItem_renderItemAndEffectIntoGUI(var$7, var$8, var$9, var$12, $par3, var$11); - if ($rt_suspending()) { - break main; - } - var$7 = nms_GuiContainer_itemRenderer; - var$8 = $this.$fontRenderer0; - var$9 = $this.$mc4.$renderEngine; - var$12 = new nms_ItemStack; - $var5 = nms_Item_ingotGold.$itemID; - var$12.$stackSize = 0; - var$12.$itemFrame = null; - var$12.$itemID0 = $var5; - var$12.$stackSize = 1; - var$12.$itemDamage = 0; - if (var$12.$itemDamage < 0) - var$12.$itemDamage = 0; - $par3 = $par2 + 44 | 0; - $ptr = 3; - case 3: - nms_RenderItem_renderItemAndEffectIntoGUI(var$7, var$8, var$9, var$12, $par3, var$11); - if ($rt_suspending()) { - break main; - } - var$6 = nms_GuiContainer_itemRenderer; - var$7 = $this.$fontRenderer0; - var$8 = $this.$mc4.$renderEngine; - var$9 = new nms_ItemStack; - $var5 = nms_Item_ingotIron.$itemID; - var$9.$stackSize = 0; - var$9.$itemFrame = null; - var$9.$itemID0 = $var5; - var$9.$stackSize = 1; - var$9.$itemDamage = 0; - if (var$9.$itemDamage < 0) - var$9.$itemDamage = 0; - $par2 = $par2 + 66 | 0; - $ptr = 4; - case 4: - nms_RenderItem_renderItemAndEffectIntoGUI(var$6, var$7, var$8, var$9, $par2, var$11); - if ($rt_suspending()) { - break main; - } - nms_GuiContainer_itemRenderer.$zLevel0 = 0.0; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, $ptr); -}; -function nms_GuiBeacon__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(755); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiBeacon_tex = var$1; -} -function nms_GuiRepair() { - var a = this; nms_GuiContainer.call(a); - a.$repairContainer = null; - a.$itemNameField = null; - a.$field_82325_q = null; -} -$java.nms_GuiRepair_tex = null; -$java.nms_GuiRepair_initGui = function($this) { - var $var1, $var2, var$3, var$4, var$5; - nms_GuiContainer_initGui($this); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - $var1 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var2 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - $this.$itemNameField = nms_GuiTextField__init_($this.$fontRenderer0, $var1 + 62 | 0, $var2 + 24 | 0, 103, 12); - $this.$itemNameField.$enabledColor = (-1); - $this.$itemNameField.$disabledColor = (-1); - $this.$itemNameField.$enableBackgroundDrawing = 0; - var$3 = $this.$itemNameField; - var$3.$maxStringLength = 30; - if (var$3.$text.$characters.data.length > 30) { - var$4 = var$3.$text; - var$3.$text = jl_String__init_0(var$4.$characters, 0, 30); - } - var$3 = $this.$inventorySlots0.$crafters; - var$5 = ju_AbstractList_indexOf(var$3, $this); - if (var$5 >= 0) - ju_ArrayList_remove(var$3, var$5); - $this.$inventorySlots0.$addCraftingToCrafters($this); -}; -$java.nms_GuiRepair_onGuiClosed = function($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: - if ($this.$mc4.$thePlayer === null) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; - var$1 = $this.$inventorySlots0.$crafters; - var$2 = ju_AbstractList_indexOf(var$1, $this); - if (var$2 >= 0) - ju_ArrayList_remove(var$1, var$2); - return; - } - var$1 = $this.$inventorySlots0; - var$3 = $this.$mc4.$thePlayer; - $ptr = 1; - case 1: - var$1.$onCraftGuiClosed(var$3); - if ($rt_suspending()) { - break main; - } - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; - var$1 = $this.$inventorySlots0.$crafters; - var$2 = ju_AbstractList_indexOf(var$1, $this); - if (var$2 >= 0) - ju_ArrayList_remove(var$1, var$2); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, $ptr); -}; -$java.nms_GuiRepair_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - var $var3, $var4, var$5, $var5, var$7, $var6, $var7; - nleg_EaglerAdapterGL30_glDisable(13); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2865)), 60, 6, 4210752, 0); - if ($this.$repairContainer.$maximumCost > 0) { - $var3 = 8453920; - $var4 = 1; - var$5 = $rt_createArray(jl_Object, 1); - var$5.data[0] = jl_Integer_valueOf($this.$repairContainer.$maximumCost); - $var5 = nms_StringTranslate_translateKeyFormat(nms_StatCollector_localizedName, $rt_s(2866), var$5); - if ($this.$repairContainer.$maximumCost >= 40 && !$this.$mc4.$thePlayer.$capabilities.$isCreativeMode) { - $var5 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2867)); - $var3 = 16736352; - } else { - var$7 = $this.$repairContainer.$inventorySlots; - if (2 >= var$7.$size0) { - var$7 = new jl_IndexOutOfBoundsException; - var$7.$suppressionEnabled = 1; - var$7.$writableStackTrace = 1; - $rt_throw(var$7); - } - if (!var$7.$array1.data[2].$getHasStack()) - $var4 = 0; - else { - var$7 = $this.$repairContainer.$inventorySlots; - if (2 >= var$7.$size0) { - var$7 = new jl_IndexOutOfBoundsException; - var$7.$suppressionEnabled = 1; - var$7.$writableStackTrace = 1; - $rt_throw(var$7); - } - if (!var$7.$array1.data[2].$canTakeStack($this.$field_82325_q.$player)) - $var3 = 16736352; - } - } - if ($var4) { - $var6 = (-16777216) | ($var3 & 16579836) >> 2 | $var3 & (-16777216); - $var7 = ($this.$xSize - 8 | 0) - nms_FontRenderer_getStringWidth($this.$fontRenderer0, $var5) | 0; - if (!$this.$fontRenderer0.$unicodeFlag) { - nms_FontRenderer_drawString($this.$fontRenderer0, $var5, $var7, 68, $var6, 0); - var$7 = $this.$fontRenderer0; - $par2 = $var7 + 1 | 0; - nms_FontRenderer_drawString(var$7, $var5, $par2, 67, $var6, 0); - nms_FontRenderer_drawString($this.$fontRenderer0, $var5, $par2, 68, $var6, 0); - } else { - nms_Gui_drawRect($var7 - 3 | 0, 65, $this.$xSize - 7 | 0, 77, (-16777216)); - nms_Gui_drawRect($var7 - 2 | 0, 66, $this.$xSize - 8 | 0, 76, (-12895429)); - } - nms_FontRenderer_drawString($this.$fontRenderer0, $var5, $var7, 67, $var3, 0); - } - } - nleg_EaglerAdapterGL30_glEnable(13); -}; -$java.nms_GuiRepair_keyTyped = function($this, $par1, $par2) { - var var$3, var$4, var$5, 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();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (nms_GuiTextField_textboxKeyTyped($this.$itemNameField, $par1, $par2)) { - $java.nms_ContainerRepair_updateItemName($this.$repairContainer, $this.$itemNameField.$text); - var$3 = $this.$mc4.$thePlayer.$sendQueue; - var$4 = new nms_Packet250CustomPayload; - var$5 = $this.$itemNameField.$text; - var$6 = new jnci_UTF8Charset; - jnc_Charset__init_(var$6, $rt_s(2), $rt_createArray(jl_String, 0)); - $java.nms_Packet250CustomPayload__init_0(var$4, $rt_s(2868), jl_String_getBytes0(var$5, var$6)); - if (!var$3.$disconnected) { - var$7 = var$3.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset(var$7.$sendBuffer); - nms_Packet_writePacket(var$4, ji_DataOutputStream__init_(var$7.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$7.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - var$7 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - var$3 = new jl_StringBuilder; - jl_Object__init_0(var$3); - 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; - } - jl_Throwable_printStackTrace0(var$7, jl_System_errCache); - } - } - return; - } - $ptr = 1; - case 1: - nms_GuiContainer_keyTyped($this, $par1, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, var$6, var$7, $ptr); -}; -$java.nms_GuiRepair_mouseClicked = function($this, $par1, $par2, $par3) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $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: - nms_GuiContainer_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - nms_GuiTextField_mouseClicked($this.$itemNameField, $par1, $par2, $par3); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $ptr); -}; -$java.nms_GuiRepair_drawScreen = function($this, $par1, $par2, $par3) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $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: - nms_GuiContainer_drawScreen($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - nleg_EaglerAdapterGL30_glDisable(13); - nms_GuiTextField_drawTextBox($this.$itemNameField); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $ptr); -}; -$java.nms_GuiRepair_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - var $var4, $var5, var$6, var$7, var$8; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiRepair_tex); - $var4 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var5 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - nms_Gui_drawTexturedModalRect($this, $var4, $var5, 0, 0, $this.$xSize, $this.$ySize0); - $par3 = $var4 + 59 | 0; - var$6 = $var5 + 20 | 0; - var$7 = $this.$ySize0; - var$8 = $this.$repairContainer.$inventorySlots; - if (0 >= var$8.$size0) { - var$8 = new jl_IndexOutOfBoundsException; - var$8.$suppressionEnabled = 1; - var$8.$writableStackTrace = 1; - $rt_throw(var$8); - } - nms_Gui_drawTexturedModalRect($this, $par3, var$6, 0, var$7 + (!var$8.$array1.data[0].$getHasStack() ? 16 : 0) | 0, 110, 16); - var$8 = $this.$repairContainer.$inventorySlots; - if (0 >= var$8.$size0) { - var$8 = new jl_IndexOutOfBoundsException; - var$8.$suppressionEnabled = 1; - var$8.$writableStackTrace = 1; - $rt_throw(var$8); - } - a: { - if (!var$8.$array1.data[0].$getHasStack()) { - var$8 = $this.$repairContainer.$inventorySlots; - if (1 >= var$8.$size0) { - var$8 = new jl_IndexOutOfBoundsException; - var$8.$suppressionEnabled = 1; - var$8.$writableStackTrace = 1; - $rt_throw(var$8); - } - if (!var$8.$array1.data[1].$getHasStack()) - break a; - } - var$8 = $this.$repairContainer.$inventorySlots; - if (2 >= var$8.$size0) { - var$8 = new jl_IndexOutOfBoundsException; - var$8.$suppressionEnabled = 1; - var$8.$writableStackTrace = 1; - $rt_throw(var$8); - } - if (!var$8.$array1.data[2].$getHasStack()) - nms_Gui_drawTexturedModalRect($this, $var4 + 99 | 0, $var5 + 45 | 0, $this.$xSize, 0, 28, 21); - } -}; -$java.nms_GuiRepair_sendContainerAndContentsToPlayer = function($this, $par1Container, $par2List) { - $par2List = $par1Container.$inventorySlots; - if (0 < $par2List.$size0) { - $java.nms_GuiRepair_sendSlotContents($this, $par1Container, 0, $par2List.$array1.data[0].$getStack()); - return; - } - $par1Container = new jl_IndexOutOfBoundsException; - $par1Container.$suppressionEnabled = 1; - $par1Container.$writableStackTrace = 1; - $rt_throw($par1Container); -}; -$java.nms_GuiRepair_sendSlotContents = function($this, $par1Container, $par2, $par3ItemStack) { - var var$4, var$5, var$6, var$7, $$je; - if (!$par2) { - $par1Container = $this.$itemNameField; - var$4 = $par3ItemStack !== null ? nms_ItemStack_getDisplayName($par3ItemStack) : $rt_s(44); - if (var$4.$characters.data.length <= $par1Container.$maxStringLength) - $par1Container.$text = var$4; - else { - var$5 = $par1Container.$maxStringLength; - if (0 > var$5) { - $par1Container = new jl_IndexOutOfBoundsException; - $par1Container.$suppressionEnabled = 1; - $par1Container.$writableStackTrace = 1; - $rt_throw($par1Container); - } - $par1Container.$text = jl_String__init_0(var$4.$characters, 0, var$5 - 0 | 0); - } - $java.nms_GuiTextField_setCursorPosition($par1Container, $par1Container.$text.$characters.data.length); - $this.$itemNameField.$isEnabled = $par3ItemStack === null ? 0 : 1; - if ($par3ItemStack !== null) { - $java.nms_ContainerRepair_updateItemName($this.$repairContainer, $this.$itemNameField.$text); - $par3ItemStack = $this.$mc4.$thePlayer.$sendQueue; - var$4 = new nms_Packet250CustomPayload; - var$6 = $this.$itemNameField.$text; - var$7 = new jnci_UTF8Charset; - jnc_Charset__init_(var$7, $rt_s(2), $rt_createArray(jl_String, 0)); - $java.nms_Packet250CustomPayload__init_0(var$4, $rt_s(2868), jl_String_getBytes0(var$6, var$7)); - if (!$par3ItemStack.$disconnected) { - $par1Container = $par3ItemStack.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset($par1Container.$sendBuffer); - nms_Packet_writePacket(var$4, ji_DataOutputStream__init_($par1Container.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray($par1Container.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $par1Container = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$4 = new ji_PrintStream; - var$4.$out = new jl_ConsoleOutputStreamStderr; - $par3ItemStack = new jl_StringBuilder; - jl_Object__init_0($par3ItemStack); - $par3ItemStack.$buffer = $rt_createCharArray(16); - var$4.$sb = $par3ItemStack; - var$4.$buffer0 = $rt_createCharArray(32); - var$4.$autoFlush = 0; - $par3ItemStack = new jnci_UTF8Charset; - jnc_Charset__init_($par3ItemStack, $rt_s(2), $rt_createArray(jl_String, 0)); - var$4.$charset = $par3ItemStack; - jl_System_errCache = var$4; - } - jl_Throwable_printStackTrace0($par1Container, jl_System_errCache); - } - } - } - } -}; -$java.nms_GuiRepair_sendProgressBarUpdate = function($this, $par1Container, $par2, $par3) { - return; -}; -function nms_GuiRepair__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2869); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiRepair_tex = var$1; -} -function nms_GuiDispenser() { - nms_GuiContainer.call(this); - this.$field_94078_r = null; -} -$java.nms_GuiDispenser_tex = null; -$java.nms_GuiDispenser_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - var $var3; - if ($this.$field_94078_r.$customName === null ? 0 : 1) - $var3 = $this.$field_94078_r.$getInvName(); - else { - $var3 = $this.$field_94078_r.$getInvName(); - $var3 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var3); - } - nms_FontRenderer_drawString($this.$fontRenderer0, $var3, ($this.$xSize / 2 | 0) - (nms_FontRenderer_getStringWidth($this.$fontRenderer0, $var3) / 2 | 0) | 0, 6, 4210752, 0); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1033)), 8, ($this.$ySize0 - 96 | 0) + 2 | 0, 4210752, 0); -}; -$java.nms_GuiDispenser_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiDispenser_tex); - nms_Gui_drawTexturedModalRect($this, ($this.$width0 - $this.$xSize | 0) / 2 | 0, ($this.$height0 - $this.$ySize0 | 0) / 2 | 0, 0, 0, $this.$xSize, $this.$ySize0); -}; -function nms_GuiDispenser__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2870); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiDispenser_tex = var$1; -} -function nms_GuiHopper() { - var a = this; nms_GuiContainer.call(a); - a.$field_94081_r = null; - a.$field_94080_s = null; -} -$java.nms_GuiHopper_tex = null; -$java.nms_GuiHopper_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - var var$3, var$4; - var$3 = $this.$fontRenderer0; - if ($this.$field_94080_s.$isInvNameLocalized()) - var$4 = $this.$field_94080_s.$getInvName(); - else { - var$4 = $this.$field_94080_s.$getInvName(); - var$4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$4); - } - nms_FontRenderer_drawString(var$3, var$4, 8, 6, 4210752, 0); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1033)), 8, ($this.$ySize0 - 96 | 0) + 2 | 0, 4210752, 0); -}; -$java.nms_GuiHopper_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiHopper_tex); - nms_Gui_drawTexturedModalRect($this, ($this.$width0 - $this.$xSize | 0) / 2 | 0, ($this.$height0 - $this.$ySize0 | 0) / 2 | 0, 0, 0, $this.$xSize, $this.$ySize0); -}; -function nms_GuiHopper__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2871); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiHopper_tex = var$1; -} -function nms_GuiBrewingStand() { - nms_GuiContainer.call(this); - this.$brewingStand = null; -} -$java.nms_GuiBrewingStand_tex = null; -$java.nms_GuiBrewingStand_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - var $var3, var$4; - $var3 = $this.$brewingStand; - if ($var3.$field_94132_e !== null && $var3.$field_94132_e.$characters.data.length > 0 ? 1 : 0) { - $var3 = $this.$brewingStand; - $var3 = !($var3.$field_94132_e !== null && $var3.$field_94132_e.$characters.data.length > 0 ? 1 : 0) ? $rt_s(2731) : $var3.$field_94132_e; - } else { - $var3 = $this.$brewingStand; - var$4 = !($var3.$field_94132_e !== null && $var3.$field_94132_e.$characters.data.length > 0 ? 1 : 0) ? $rt_s(2731) : $var3.$field_94132_e; - $var3 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$4); - } - nms_FontRenderer_drawString($this.$fontRenderer0, $var3, ($this.$xSize / 2 | 0) - (nms_FontRenderer_getStringWidth($this.$fontRenderer0, $var3) / 2 | 0) | 0, 6, 4210752, 0); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1033)), 8, ($this.$ySize0 - 96 | 0) + 2 | 0, 4210752, 0); -}; -$java.nms_GuiBrewingStand_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiBrewingStand_tex); - $var4 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var5 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - nms_Gui_drawTexturedModalRect($this, $var4, $var5, 0, 0, $this.$xSize, $this.$ySize0); - $var6 = $this.$brewingStand.$brewTime; - if ($var6 > 0) { - $var7 = 28.0 * (1.0 - $var6 / 400.0) | 0; - if ($var7 > 0) - nms_Gui_drawTexturedModalRect($this, $var4 + 97 | 0, $var5 + 16 | 0, 176, 0, 9, $var7); - a: { - switch (($var6 / 2 | 0) % 7 | 0) { - case 0: - $var7 = 29; - break a; - case 1: - $var7 = 24; - break a; - case 2: - $var7 = 20; - break a; - case 3: - $var7 = 16; - break a; - case 4: - $var7 = 11; - break a; - case 5: - $var7 = 6; - break a; - case 6: - $var7 = 0; - break a; - default: - } - } - if ($var7 > 0) - nms_Gui_drawTexturedModalRect($this, $var4 + 65 | 0, (($var5 + 14 | 0) + 29 | 0) - $var7 | 0, 185, 29 - $var7 | 0, 12, $var7); - } -}; -function nms_GuiBrewingStand__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2872); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiBrewingStand_tex = var$1; -} -function nms_GuiEnchantment() { - var a = this; nms_GuiContainer.call(a); - a.$rand3 = null; - a.$containerEnchantment = null; - a.$field_74214_o = 0; - a.$field_74213_p = 0.0; - a.$field_74212_q = 0.0; - a.$field_74211_r = 0.0; - a.$field_74210_s = 0.0; - a.$field_74209_t = 0.0; - a.$field_74208_u = 0.0; - a.$theItemStack0 = null; - a.$field_94079_C = null; -} -$java.nms_GuiEnchantment_bookModel = null; -$java.nms_GuiEnchantment_tex_enchant = null; -$java.nms_GuiEnchantment_tex_book = null; -$java.nms_GuiEnchantment_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - nms_FontRenderer_drawString($this.$fontRenderer0, $this.$field_94079_C !== null ? $this.$field_94079_C : nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2665)), 12, 5, 4210752, 0); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1033)), 8, ($this.$ySize0 - 96 | 0) + 2 | 0, 4210752, 0); -}; -$java.nms_GuiEnchantment_updateScreen = function($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: - $ptr = 1; - case 1: - nms_GuiContainer_updateScreen($this); - if ($rt_suspending()) { - break main; - } - $java.nms_GuiEnchantment_func_74205_h($this); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $ptr); -}; -$java.nms_GuiEnchantment_mouseClicked = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var7, $var8, var$9, var$10, var$11, var$12, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $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: - nms_GuiContainer_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - $var4 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var5 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - $var6 = 0; - $var7 = $par1 - ($var4 + 60 | 0) | 0; - $var4 = $var5 + 14 | 0; - $var5 = $rt_compare($var7, 108); - while ($var6 < 3) { - $var8 = $par2 - ($var4 + (19 * $var6 | 0) | 0) | 0; - if ($var7 >= 0 && $var8 >= 0 && $var5 < 0 && $var8 < 19 && $java.nms_ContainerEnchantment_enchantItem($this.$containerEnchantment, $this.$mc4.$thePlayer, $var6)) { - var$9 = $this.$mc4.$playerController; - $par3 = $this.$containerEnchantment.$windowId; - var$10 = var$9.$netClientHandler; - var$9 = new nms_Packet108EnchantItem; - nms_Packet_$callClinit(); - var$9.$creationTimeMillis = jl_System_currentTimeMillis(); - var$9.$isChunkDataPacket = 0; - var$9.$windowId1 = $par3; - var$9.$enchantment = $var6; - if (!var$10.$disconnected) { - var$10 = var$10.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset(var$10.$sendBuffer); - nms_Packet_writePacket(var$9, ji_DataOutputStream__init_(var$10.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$10.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - var$11 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - var$12 = new ji_PrintStream; - var$9 = new jl_ConsoleOutputStreamStderr; - jl_Object__init_0(var$12); - var$12.$out = var$9; - var$9 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_2(var$9, 16); - var$12.$sb = var$9; - var$12.$buffer0 = $rt_createCharArray(32); - var$12.$autoFlush = 0; - var$10 = new jnci_UTF8Charset; - jnc_Charset__init_(var$10, $rt_s(2), $rt_createArray(jl_String, 0)); - var$12.$charset = var$10; - jl_System_errCache = var$12; - } - jl_Throwable_printStackTrace0(var$11, jl_System_errCache); - } - } - } - $var6 = $var6 + 1 | 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, $var5, $var6, $var7, $var8, var$9, var$10, var$11, var$12, $ptr); -}; -$java.nms_GuiEnchantment_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - var $var4, $var5, $var6, $var9, $var7, $var10, $var11, $var8, $var12, var$13, var$14, var$15, var$16, $var18, var$18, $var13, $var14, $var15, $var16, $var17, $var19; - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture($java.nms_GuiEnchantment_tex_enchant); - $var4 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var5 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - nms_Gui_drawTexturedModalRect($this, $var4, $var5, 0, 0, $this.$xSize, $this.$ySize0); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glMatrixMode(9); - nleg_EaglerAdapterGL30_glPushMatrix(); - nleg_EaglerAdapterGL30_glLoadIdentity(); - $var6 = nms_ScaledResolution__init_($this.$mc4.$gameSettings, $this.$mc4.$displayWidth, $this.$mc4.$displayHeight); - nleg_EaglerAdapterGL30_glViewport($rt_imul((nms_ScaledResolution_getScaledWidth($var6) - 320 | 0) / 2 | 0, nms_ScaledResolution_getScaleFactor($var6)), $rt_imul((nms_ScaledResolution_getScaledHeight($var6) - 240 | 0) / 2 | 0, nms_ScaledResolution_getScaleFactor($var6)), 320 * nms_ScaledResolution_getScaleFactor($var6) | 0, 240 * nms_ScaledResolution_getScaleFactor($var6) | 0); - nleg_EaglerAdapterGL30_glTranslatef((-0.3400000035762787), 0.23000000417232513, 0.0); - nleg_EaglerAdapterGL30_gluPerspective(90.0, 1.3333333730697632, 9.0, 80.0); - nleg_EaglerAdapterGL30_glMatrixMode(10); - nleg_EaglerAdapterGL30_glLoadIdentity(); - nms_RenderHelper_enableStandardItemLighting(); - nleg_EaglerAdapterGL30_glTranslatef(0.0, 3.299999952316284, (-16.0)); - nleg_EaglerAdapterGL30_glScalef(1.0, 1.0, 1.0); - nleg_EaglerAdapterGL30_glScalef(5.0, 5.0, 5.0); - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 0.0, 1.0); - nle_TextureLocation_bindTexture($java.nms_GuiEnchantment_tex_book); - nleg_EaglerAdapterGL30_glRotatef(20.0, 1.0, 0.0, 0.0); - $var9 = $this.$field_74208_u + ($this.$field_74209_t - $this.$field_74208_u) * $par1; - $var7 = 1.0 - $var9; - nleg_EaglerAdapterGL30_glTranslatef($var7 * 0.20000000298023224, $var7 * 0.10000000149011612, $var7 * 0.25); - nleg_EaglerAdapterGL30_glRotatef( -$var7 * 90.0 - 90.0, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glRotatef(180.0, 1.0, 0.0, 0.0); - $var10 = $this.$field_74212_q + ($this.$field_74213_p - $this.$field_74212_q) * $par1 + 0.25; - $var11 = $this.$field_74212_q + ($this.$field_74213_p - $this.$field_74212_q) * $par1 + 0.75; - $var7 = ($var10 - nms_MathHelper_truncateDoubleToInt($var10)) * 1.600000023841858 - 0.30000001192092896; - $var8 = ($var11 - nms_MathHelper_truncateDoubleToInt($var11)) * 1.600000023841858 - 0.30000001192092896; - if ($var7 < 0.0) - $var7 = 0.0; - if ($var8 < 0.0) - $var8 = 0.0; - if ($var7 > 1.0) - $var7 = 1.0; - if ($var8 > 1.0) - $var8 = 1.0; - nleg_EaglerAdapterGL30_glEnable(41); - $java.nms_ModelBook_render($java.nms_GuiEnchantment_bookModel, null, 0.0, $var7, $var8, $var9, 0.0, 0.0625); - nleg_EaglerAdapterGL30_glDisable(41); - nms_RenderHelper_disableStandardItemLighting(); - nleg_EaglerAdapterGL30_glMatrixMode(9); - nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$mc4.$displayWidth, $this.$mc4.$displayHeight); - nleg_EaglerAdapterGL30_glPopMatrix(); - nleg_EaglerAdapterGL30_glMatrixMode(10); - nleg_EaglerAdapterGL30_glPopMatrix(); - nms_RenderHelper_disableStandardItemLighting(); - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - nle_TextureLocation_bindTexture($java.nms_GuiEnchantment_tex_enchant); - $java.nms_EnchantmentNameParts_setRandSeed($java.nms_EnchantmentNameParts_instance, $this.$containerEnchantment.$nameSeed); - $var12 = 0; - var$13 = $var4 + 60 | 0; - var$14 = $var5 + 14 | 0; - var$15 = $var4 + 62 | 0; - var$16 = $var5 + 16 | 0; - $var5 = var$15 + 104 | 0; - $var18 = $par2 - var$13 | 0; - var$18 = $rt_compare($var18, 108); - while ($var12 < 3) { - $var13 = $java.nms_EnchantmentNameParts_generateRandomEnchantName($java.nms_EnchantmentNameParts_instance); - $this.$zLevel = 0.0; - nle_TextureLocation_bindTexture($java.nms_GuiEnchantment_tex_enchant); - $var14 = $this.$containerEnchantment.$enchantLevels.data[$var12]; - nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0); - if (!$var14) - nms_Gui_drawTexturedModalRect($this, var$13, var$14 + (19 * $var12 | 0) | 0, 0, 185, 108, 19); - else { - $var15 = jl_StringBuilder_toString(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), $var14)); - $var16 = $this.$mc4.$standardGalacticFontRenderer; - $var17 = 6839882; - if ($this.$mc4.$thePlayer.$experienceLevel < $var14 && !$this.$mc4.$thePlayer.$capabilities.$isCreativeMode) { - $par2 = 19 * $var12 | 0; - nms_Gui_drawTexturedModalRect($this, var$13, var$14 + $par2 | 0, 0, 185, 108, 19); - $par2 = var$16 + $par2 | 0; - nms_FontRenderer_drawSplitString($var16, $var13, var$15, $par2, 104, 3419941); - $var16 = $this.$mc4.$fontRenderer; - nms_FontRenderer_drawStringWithShadow($var16, $var15, $var5 - nms_FontRenderer_getStringWidth($var16, $var15) | 0, $par2 + 7 | 0, 4226832); - } else { - $par2 = 19 * $var12 | 0; - $var4 = var$14 + $par2 | 0; - $var19 = $par3 - $var4 | 0; - if ($var18 >= 0 && $var19 >= 0 && var$18 < 0 && $var19 < 19) { - nms_Gui_drawTexturedModalRect($this, var$13, $var4, 0, 204, 108, 19); - $var17 = 16777088; - } else - nms_Gui_drawTexturedModalRect($this, var$13, $var4, 0, 166, 108, 19); - $par2 = var$16 + $par2 | 0; - nms_FontRenderer_drawSplitString($var16, $var13, var$15, $par2, 104, $var17); - $var16 = $this.$mc4.$fontRenderer; - nms_FontRenderer_drawStringWithShadow($var16, $var15, $var5 - nms_FontRenderer_getStringWidth($var16, $var15) | 0, $par2 + 7 | 0, 8453920); - } - } - $var12 = $var12 + 1 | 0; - } -}; -$java.nms_GuiEnchantment_func_74205_h = function($this) { - var $var1, $var2, $var3, $var5, $var4, var$6; - $var1 = $this.$inventorySlots0.$inventorySlots; - if (0 >= $var1.$size0) { - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - } - a: { - $var1 = $var1.$array1.data[0].$getStack(); - if (!nms_ItemStack_areItemStacksEqual($var1, $this.$theItemStack0)) { - $this.$theItemStack0 = $var1; - while (true) { - $this.$field_74211_r = $this.$field_74211_r + ((Math.random() * 4.0 | 0) - (Math.random() * 4.0 | 0) | 0); - if ($this.$field_74213_p > $this.$field_74211_r + 1.0) - break a; - if ($this.$field_74213_p >= $this.$field_74211_r - 1.0) - continue; - else - break a; - } - } - } - $this.$field_74214_o = $this.$field_74214_o + 1 | 0; - $this.$field_74212_q = $this.$field_74213_p; - $this.$field_74208_u = $this.$field_74209_t; - $var2 = 0; - $var3 = 0; - while ($var3 < 3) { - if ($this.$containerEnchantment.$enchantLevels.data[$var3]) - $var2 = 1; - $var3 = $var3 + 1 | 0; - } - if (!$var2) - $this.$field_74209_t = $this.$field_74209_t - 0.20000000298023224; - else - $this.$field_74209_t = $this.$field_74209_t + 0.20000000298023224; - if ($this.$field_74209_t < 0.0) - $this.$field_74209_t = 0.0; - if ($this.$field_74209_t > 1.0) - $this.$field_74209_t = 1.0; - $var5 = ($this.$field_74211_r - $this.$field_74213_p) * 0.4000000059604645; - $var4 = 0.20000000298023224; - var$6 = (-0.20000000298023224); - if ($var5 >= var$6) - var$6 = $var5; - if (var$6 <= $var4) - $var4 = var$6; - $this.$field_74210_s = $this.$field_74210_s + ($var4 - $this.$field_74210_s) * 0.8999999761581421; - $this.$field_74213_p = $this.$field_74213_p + $this.$field_74210_s; -}; -function nms_GuiEnchantment__clinit_() { - var var$1, var$2; - $java.nms_GuiEnchantment_bookModel = $java.nms_ModelBook__init_(); - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2873); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiEnchantment_tex_enchant = var$1; - var$2 = new nle_TextureLocation; - var$2.$path = $rt_s(2666); - var$2.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$2); - $java.nms_GuiEnchantment_tex_book = var$2; -} -function nms_GuiFurnace() { - nms_GuiContainer.call(this); - this.$furnaceInventory = null; -} -$java.nms_GuiFurnace_tex = null; -$java.nms_GuiFurnace_drawGuiContainerForegroundLayer = function($this, $par1, $par2) { - var $var3, var$4; - $var3 = $this.$furnaceInventory; - if ($var3.$field_94130_e !== null && $var3.$field_94130_e.$characters.data.length > 0 ? 1 : 0) { - $var3 = $this.$furnaceInventory; - $var3 = !($var3.$field_94130_e !== null && $var3.$field_94130_e.$characters.data.length > 0 ? 1 : 0) ? $rt_s(2724) : $var3.$field_94130_e; - } else { - $var3 = $this.$furnaceInventory; - var$4 = !($var3.$field_94130_e !== null && $var3.$field_94130_e.$characters.data.length > 0 ? 1 : 0) ? $rt_s(2724) : $var3.$field_94130_e; - $var3 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, var$4); - } - nms_FontRenderer_drawString($this.$fontRenderer0, $var3, ($this.$xSize / 2 | 0) - (nms_FontRenderer_getStringWidth($this.$fontRenderer0, $var3) / 2 | 0) | 0, 6, 4210752, 0); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(1033)), 8, ($this.$ySize0 - 96 | 0) + 2 | 0, 4210752, 0); -}; -$java.nms_GuiFurnace_drawGuiContainerBackgroundLayer = function($this, $par1, $par2, $par3) { - var $var4, $var5, var$6, $var6; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiFurnace_tex); - $var4 = ($this.$width0 - $this.$xSize | 0) / 2 | 0; - $var5 = ($this.$height0 - $this.$ySize0 | 0) / 2 | 0; - nms_Gui_drawTexturedModalRect($this, $var4, $var5, 0, 0, $this.$xSize, $this.$ySize0); - if ($this.$furnaceInventory.$furnaceBurnTime <= 0 ? 0 : 1) { - var$6 = $this.$furnaceInventory; - if (!var$6.$currentItemBurnTime) - var$6.$currentItemBurnTime = 200; - $var6 = (var$6.$furnaceBurnTime * 12 | 0) / var$6.$currentItemBurnTime | 0; - nms_Gui_drawTexturedModalRect($this, $var4 + 56 | 0, (($var5 + 36 | 0) + 12 | 0) - $var6 | 0, 176, 12 - $var6 | 0, 14, $var6 + 2 | 0); - } - $var6 = ($this.$furnaceInventory.$furnaceCookTime * 24 | 0) / 200 | 0; - nms_Gui_drawTexturedModalRect($this, $var4 + 79 | 0, $var5 + 34 | 0, 176, 14, $var6 + 1 | 0, 16); -}; -function nms_GuiFurnace__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2874); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiFurnace_tex = var$1; -} -function nms_EnumStatus() { - jl_Enum.call(this); -} -var nms_EnumStatus_OK = null; -var nms_EnumStatus_NOT_POSSIBLE_HERE = null; -var nms_EnumStatus_NOT_POSSIBLE_NOW = null; -var nms_EnumStatus_TOO_FAR_AWAY = null; -var nms_EnumStatus_OTHER_PROBLEM = null; -var nms_EnumStatus_NOT_SAFE = null; -$java.nms_EnumStatus_$VALUES = null; -function nms_EnumStatus__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumStatus; - var$1.$name2 = $rt_s(2875); - var$1.$ordinal = 0; - nms_EnumStatus_OK = var$1; - var$1 = new nms_EnumStatus; - var$1.$name2 = $rt_s(2876); - var$1.$ordinal = 1; - nms_EnumStatus_NOT_POSSIBLE_HERE = var$1; - var$1 = new nms_EnumStatus; - var$1.$name2 = $rt_s(2877); - var$1.$ordinal = 2; - nms_EnumStatus_NOT_POSSIBLE_NOW = var$1; - var$1 = new nms_EnumStatus; - var$1.$name2 = $rt_s(2878); - var$1.$ordinal = 3; - nms_EnumStatus_TOO_FAR_AWAY = var$1; - var$1 = new nms_EnumStatus; - var$1.$name2 = $rt_s(2879); - var$1.$ordinal = 4; - nms_EnumStatus_OTHER_PROBLEM = var$1; - var$1 = new nms_EnumStatus; - var$1.$name2 = $rt_s(2880); - var$1.$ordinal = 5; - nms_EnumStatus_NOT_SAFE = var$1; - var$2 = $rt_createArray(nms_EnumStatus, 6); - var$3 = var$2.data; - var$3[0] = nms_EnumStatus_OK; - var$3[1] = nms_EnumStatus_NOT_POSSIBLE_HERE; - var$3[2] = nms_EnumStatus_NOT_POSSIBLE_NOW; - var$3[3] = nms_EnumStatus_TOO_FAR_AWAY; - var$3[4] = nms_EnumStatus_OTHER_PROBLEM; - var$3[5] = nms_EnumStatus_NOT_SAFE; - $java.nms_EnumStatus_$VALUES = var$2; -} -function nms_ChunkCoordIntPair() { - var a = this; jl_Object.call(a); - a.$chunkXPos = 0; - a.$chunkZPos = 0; -} -function nms_ChunkCoordIntPair_hashCode($this) { - var $var4, $var3, $var1; - $var4 = $this.$chunkXPos; - $var3 = $this.$chunkZPos; - $var1 = Long_or(Long_and(Long_fromInt($var4), new Long(4294967295, 0)), Long_shl(Long_and(Long_fromInt($var3), new Long(4294967295, 0)), 32)); - return $var1.lo ^ $var1.hi; -} -$java.nms_ChunkCoordIntPair_equals = function($this, $par1Obj) { - var $var2; - $var2 = $par1Obj; - return $var2.$chunkXPos == $this.$chunkXPos && $var2.$chunkZPos == $this.$chunkZPos ? 1 : 0; -}; -$java.nms_ChunkCoordIntPair_toString = function($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(310)); - var$2 = $this.$chunkXPos; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(344)); - var$2 = $this.$chunkZPos; - jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10); - jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(268)); - return jl_String__init_0(var$1.$buffer, 0, var$1.$length); -}; -$java.nms_IUpdatePlayerListBox = function() { -}; -function nms_SoundUpdaterMinecart() { - var a = this; jl_Object.call(a); - a.$theSoundManager = null; - a.$theMinecart = null; - a.$thePlayer3 = null; - a.$playerSPRidingMinecart = 0; - a.$minecartIsDead = 0; - a.$minecartIsMoving = 0; - a.$silent = 0; - a.$minecartSoundPitch = 0.0; - a.$minecartMoveSoundVolume = 0.0; - a.$minecartRideSoundVolume = 0.0; - a.$minecartSpeed = 0.0; -} -function nms_SoundUpdaterMinecart__init_(var_0, var_1, var_2) { - var var_3 = new nms_SoundUpdaterMinecart(); - $java.nms_SoundUpdaterMinecart__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.nms_SoundUpdaterMinecart__init_ = function($this, $par1SoundManager, $par2EntityMinecart, $par3EntityPlayerSP) { - $this.$playerSPRidingMinecart = 0; - $this.$minecartIsDead = 0; - $this.$minecartIsMoving = 0; - $this.$silent = 0; - $this.$minecartSoundPitch = 0.0; - $this.$minecartMoveSoundVolume = 0.0; - $this.$minecartRideSoundVolume = 0.0; - $this.$minecartSpeed = 0.0; - $this.$theSoundManager = $par1SoundManager; - $this.$theMinecart = $par2EntityMinecart; - $this.$thePlayer3 = $par3EntityPlayerSP; -}; -function nms_SoundUpdaterMinecart_update($this) { - var $var2, $var3, $var4, $var5, $var6, $var7, var$7, var$8, var$9, var$10, $var10, var$12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$12 = $thread.pop();$var10 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - a: { - $var2 = $this.$playerSPRidingMinecart; - $var3 = $this.$minecartIsDead; - $var4 = $this.$minecartIsMoving; - $var5 = $this.$minecartMoveSoundVolume; - $var6 = $this.$minecartSoundPitch; - $var7 = $this.$minecartRideSoundVolume; - if ($this.$thePlayer3 !== null) { - var$7 = $this.$thePlayer3; - var$8 = $this.$theMinecart.$riddenByEntity; - if (!(var$8 instanceof nms_Entity) ? 0 : var$8.$entityId != var$7.$entityId ? 0 : 1) { - var$9 = 1; - break a; - } - } - var$9 = 0; - } - $this.$playerSPRidingMinecart = var$9; - $this.$minecartIsDead = $this.$theMinecart.$isDead; - $this.$minecartSpeed = jl_Math_sqrt($this.$theMinecart.$motionX * $this.$theMinecart.$motionX + $this.$theMinecart.$motionZ * $this.$theMinecart.$motionZ); - $this.$minecartIsMoving = $this.$minecartSpeed < 0.01 ? 0 : 1; - if ($var2 && !$this.$playerSPRidingMinecart) - nms_SoundManager_stopEntitySound($this.$theSoundManager, $this.$thePlayer3); - b: { - if (!$this.$minecartIsDead) { - if ($this.$silent) - break b; - if ($this.$minecartMoveSoundVolume !== 0.0) - break b; - if ($this.$minecartRideSoundVolume !== 0.0) - break b; - } - if (!$var3) { - nms_SoundManager_stopEntitySound($this.$theSoundManager, $this.$theMinecart); - if (!(!$var2 && !$this.$playerSPRidingMinecart)) - nms_SoundManager_stopEntitySound($this.$theSoundManager, $this.$thePlayer3); - } - $this.$silent = 1; - if ($this.$minecartIsDead) - return; - } - if (!nms_SoundManager_isEntitySoundPlaying($this.$theSoundManager, $this.$theMinecart) && $this.$minecartMoveSoundVolume > 0.0) { - var$8 = $this.$theSoundManager; - var$7 = $rt_s(2881); - var$10 = $this.$theMinecart; - $var10 = $this.$minecartMoveSoundVolume; - var$12 = $this.$minecartSoundPitch; - $var2 = 0; - $ptr = 1; - continue main; - } - if ($this.$playerSPRidingMinecart && !nms_SoundManager_isEntitySoundPlaying($this.$theSoundManager, $this.$thePlayer3) && $this.$minecartRideSoundVolume > 0.0) { - var$8 = $this.$theSoundManager; - var$7 = $rt_s(2882); - var$10 = $this.$thePlayer3; - var$12 = $this.$minecartRideSoundVolume; - $var10 = 1.0; - $var2 = 1; - $ptr = 2; - continue main; - } - if ($this.$minecartIsMoving) { - if ($this.$minecartSoundPitch < 1.0) - $this.$minecartSoundPitch = $this.$minecartSoundPitch + 0.0024999999441206455; - if ($this.$minecartSoundPitch > 1.0) - $this.$minecartSoundPitch = 1.0; - $var10 = $this.$minecartSpeed; - var$12 = 0.0; - if ($var10 >= var$12) - var$12 = $var10 <= 4.0 ? $var10 : 4.0; - $var10 = var$12 / 4.0; - $this.$minecartRideSoundVolume = 0.0 + $var10 * 0.75; - $this.$minecartMoveSoundVolume = 0.0 + nms_MathHelper_clamp_float($var10 * 2.0, 0.0, 1.0) * 0.699999988079071; - } else if ($var4) { - $this.$minecartMoveSoundVolume = 0.0; - $this.$minecartSoundPitch = 0.0; - $this.$minecartRideSoundVolume = 0.0; - } - if (!$this.$silent) { - if ($this.$minecartSoundPitch !== $var6) - nms_SoundManager_setEntitySoundPitch($this.$theSoundManager, $this.$theMinecart, $this.$minecartSoundPitch); - if ($this.$minecartMoveSoundVolume !== $var5) - nms_SoundManager_setEntitySoundVolume($this.$theSoundManager, $this.$theMinecart, $this.$minecartMoveSoundVolume); - if ($this.$minecartRideSoundVolume !== $var7) - nms_SoundManager_setEntitySoundVolume($this.$theSoundManager, $this.$thePlayer3, $this.$minecartRideSoundVolume); - } - if (!($this.$minecartMoveSoundVolume <= 0.0 && $this.$minecartRideSoundVolume <= 0.0)) { - nms_SoundManager_updateSoundLocation($this.$theSoundManager, $this.$theMinecart); - if ($this.$playerSPRidingMinecart) - nms_SoundManager_updateSoundLocation0($this.$theSoundManager, $this.$thePlayer3, $this.$theMinecart); - } else { - if (nms_SoundManager_isEntitySoundPlaying($this.$theSoundManager, $this.$theMinecart)) - nms_SoundManager_stopEntitySound($this.$theSoundManager, $this.$theMinecart); - if ($this.$playerSPRidingMinecart && nms_SoundManager_isEntitySoundPlaying($this.$theSoundManager, $this.$thePlayer3)) - nms_SoundManager_stopEntitySound($this.$theSoundManager, $this.$thePlayer3); - } - return; - case 1: - nms_SoundManager_playEntitySound(var$8, var$7, var$10, $var10, var$12, $var2); - if ($rt_suspending()) { - break main; - } - $this.$silent = 0; - if ($this.$playerSPRidingMinecart && !nms_SoundManager_isEntitySoundPlaying($this.$theSoundManager, $this.$thePlayer3) && $this.$minecartRideSoundVolume > 0.0) { - var$8 = $this.$theSoundManager; - var$7 = $rt_s(2882); - var$10 = $this.$thePlayer3; - var$12 = $this.$minecartRideSoundVolume; - $var10 = 1.0; - $var2 = 1; - $ptr = 2; - continue main; - } - if ($this.$minecartIsMoving) { - if ($this.$minecartSoundPitch < 1.0) - $this.$minecartSoundPitch = $this.$minecartSoundPitch + 0.0024999999441206455; - if ($this.$minecartSoundPitch > 1.0) - $this.$minecartSoundPitch = 1.0; - $var10 = $this.$minecartSpeed; - var$12 = 0.0; - if ($var10 >= var$12) - var$12 = $var10 <= 4.0 ? $var10 : 4.0; - $var10 = var$12 / 4.0; - $this.$minecartRideSoundVolume = 0.0 + $var10 * 0.75; - $this.$minecartMoveSoundVolume = 0.0 + nms_MathHelper_clamp_float($var10 * 2.0, 0.0, 1.0) * 0.699999988079071; - } else if ($var4) { - $this.$minecartMoveSoundVolume = 0.0; - $this.$minecartSoundPitch = 0.0; - $this.$minecartRideSoundVolume = 0.0; - } - if (!$this.$silent) { - if ($this.$minecartSoundPitch !== $var6) - nms_SoundManager_setEntitySoundPitch($this.$theSoundManager, $this.$theMinecart, $this.$minecartSoundPitch); - if ($this.$minecartMoveSoundVolume !== $var5) - nms_SoundManager_setEntitySoundVolume($this.$theSoundManager, $this.$theMinecart, $this.$minecartMoveSoundVolume); - if ($this.$minecartRideSoundVolume !== $var7) - nms_SoundManager_setEntitySoundVolume($this.$theSoundManager, $this.$thePlayer3, $this.$minecartRideSoundVolume); - } - if (!($this.$minecartMoveSoundVolume <= 0.0 && $this.$minecartRideSoundVolume <= 0.0)) { - nms_SoundManager_updateSoundLocation($this.$theSoundManager, $this.$theMinecart); - if ($this.$playerSPRidingMinecart) - nms_SoundManager_updateSoundLocation0($this.$theSoundManager, $this.$thePlayer3, $this.$theMinecart); - } else { - if (nms_SoundManager_isEntitySoundPlaying($this.$theSoundManager, $this.$theMinecart)) - nms_SoundManager_stopEntitySound($this.$theSoundManager, $this.$theMinecart); - if ($this.$playerSPRidingMinecart && nms_SoundManager_isEntitySoundPlaying($this.$theSoundManager, $this.$thePlayer3)) - nms_SoundManager_stopEntitySound($this.$theSoundManager, $this.$thePlayer3); - } - return; - case 2: - nms_SoundManager_playEntitySound(var$8, var$7, var$10, var$12, $var10, $var2); - if ($rt_suspending()) { - break main; - } - $this.$silent = 0; - if ($this.$minecartIsMoving) { - if ($this.$minecartSoundPitch < 1.0) - $this.$minecartSoundPitch = $this.$minecartSoundPitch + 0.0024999999441206455; - if ($this.$minecartSoundPitch > 1.0) - $this.$minecartSoundPitch = 1.0; - $var10 = $this.$minecartSpeed; - var$12 = 0.0; - if ($var10 >= var$12) - var$12 = $var10 <= 4.0 ? $var10 : 4.0; - $var10 = var$12 / 4.0; - $this.$minecartRideSoundVolume = 0.0 + $var10 * 0.75; - $this.$minecartMoveSoundVolume = 0.0 + nms_MathHelper_clamp_float($var10 * 2.0, 0.0, 1.0) * 0.699999988079071; - } else if ($var4) { - $this.$minecartMoveSoundVolume = 0.0; - $this.$minecartSoundPitch = 0.0; - $this.$minecartRideSoundVolume = 0.0; - } - if (!$this.$silent) { - if ($this.$minecartSoundPitch !== $var6) - nms_SoundManager_setEntitySoundPitch($this.$theSoundManager, $this.$theMinecart, $this.$minecartSoundPitch); - if ($this.$minecartMoveSoundVolume !== $var5) - nms_SoundManager_setEntitySoundVolume($this.$theSoundManager, $this.$theMinecart, $this.$minecartMoveSoundVolume); - if ($this.$minecartRideSoundVolume !== $var7) - nms_SoundManager_setEntitySoundVolume($this.$theSoundManager, $this.$thePlayer3, $this.$minecartRideSoundVolume); - } - if (!($this.$minecartMoveSoundVolume <= 0.0 && $this.$minecartRideSoundVolume <= 0.0)) { - nms_SoundManager_updateSoundLocation($this.$theSoundManager, $this.$theMinecart); - if ($this.$playerSPRidingMinecart) - nms_SoundManager_updateSoundLocation0($this.$theSoundManager, $this.$thePlayer3, $this.$theMinecart); - } else { - if (nms_SoundManager_isEntitySoundPlaying($this.$theSoundManager, $this.$theMinecart)) - nms_SoundManager_stopEntitySound($this.$theSoundManager, $this.$theMinecart); - if ($this.$playerSPRidingMinecart && nms_SoundManager_isEntitySoundPlaying($this.$theSoundManager, $this.$thePlayer3)) - nms_SoundManager_stopEntitySound($this.$theSoundManager, $this.$thePlayer3); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var2, $var3, $var4, $var5, $var6, $var7, var$7, var$8, var$9, var$10, $var10, var$12, $ptr); -} -$java.nms_ShapelessRecipes = function() { - var a = this; jl_Object.call(a); - a.$recipeOutput0 = null; - a.$recipeItems0 = null; -}; -$java.nms_ShapelessRecipes_matches = function($this, $par1InventoryCrafting, $par2World) { - var $var3, $var4, $var5, $var8$index, $var6, $var7, $var8$index_0, var$10, var$11, $var9; - $var3 = ju_ArrayList__init_3($this.$recipeItems0); - $var4 = 0; - a: while (true) { - if ($var4 >= 3) - return $var3.$size0 ? 0 : 1; - $var5 = 0; - while ($var5 < 3) { - if ($var5 >= 0 && $var5 < $par1InventoryCrafting.$inventoryWidth) { - $var8$index = $var5 + $rt_imul($var4, $par1InventoryCrafting.$inventoryWidth) | 0; - $var6 = $var8$index >= $par1InventoryCrafting.$stackList.data.length ? null : $par1InventoryCrafting.$stackList.data[$var8$index]; - } else - $var6 = null; - if ($var6 !== null) { - $var7 = 0; - $var8$index_0 = 0; - var$10 = $var3.$modCount0; - var$11 = $var3.$size2(); - b: { - c: { - while ($var8$index_0 >= var$11 ? 0 : 1) { - if (var$10 < $var3.$modCount0) { - $par1InventoryCrafting = new ju_ConcurrentModificationException; - $par1InventoryCrafting.$suppressionEnabled = 1; - $par1InventoryCrafting.$writableStackTrace = 1; - $rt_throw($par1InventoryCrafting); - } - $var8$index = $var8$index_0 + 1 | 0; - $var9 = $var3.$get4($var8$index_0); - if ($var6.$itemID0 == $var9.$itemID0) { - if ($var9.$itemDamage == 32767) - break c; - if ($var6.$itemDamage == $var9.$itemDamage) - break c; - } - $var8$index_0 = $var8$index; - } - break b; - } - $var7 = 1; - $var8$index = ju_AbstractList_indexOf($var3, $var9); - if ($var8$index >= 0) - ju_ArrayList_remove($var3, $var8$index); - } - if (!$var7) - break a; - } - $var5 = $var5 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - return 0; -}; -$java.nms_ShapelessRecipes_getCraftingResult = function($this, $par1InventoryCrafting) { - var var$2, var$3, var$4, var$5; - $par1InventoryCrafting = $this.$recipeOutput0; - var$2 = new nms_ItemStack; - var$3 = $par1InventoryCrafting.$itemID0; - var$4 = $par1InventoryCrafting.$stackSize; - var$5 = $par1InventoryCrafting.$itemDamage; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = var$4; - var$2.$itemDamage = var$5; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - if ($par1InventoryCrafting.$stackTagCompound !== null) - var$2.$stackTagCompound = nms_NBTTagCompound_copy($par1InventoryCrafting.$stackTagCompound); - return var$2; -}; -$java.nms_ShapelessRecipes_getRecipeSize = function($this) { - return $this.$recipeItems0.$size0; -}; -function nms_EntityDamageSource() { - nms_DamageSource.call(this); - this.$damageSourceEntity = null; -} -$java.nms_EntityDamageSource_getEntity = function($this) { - return $this.$damageSourceEntity; -}; -$java.nms_ContainerChest = function() { - var a = this; nms_Container.call(a); - a.$lowerChestInventory = null; - a.$numRows = 0; -}; -$java.nms_ContainerChest__init_0 = function(var_0, var_1) { - var var_2 = new $java.nms_ContainerChest(); - $java.nms_ContainerChest__init_(var_2, var_0, var_1); - return var_2; -}; -$java.nms_ContainerChest__init_ = function($this, $par1IInventory, $par2IInventory) { - var $var3, $var4, $var5, var$6, $var5_0, 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();$var5_0 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2IInventory = $thread.pop();$par1IInventory = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_Container__init_($this); - $this.$lowerChestInventory = $par2IInventory; - $this.$numRows = $par2IInventory.$getSizeInventory() / 9 | 0; - $ptr = 1; - case 1: - $par2IInventory.$openChest(); - if ($rt_suspending()) { - break main; - } - $var3 = ($this.$numRows - 4 | 0) * 18 | 0; - $var4 = 0; - while ($var4 < $this.$numRows) { - $var5 = 0; - while ($var5 < 9) { - var$6 = new $java.nms_Slot; - $var5_0 = $var5 + ($var4 * 9 | 0) | 0; - var$8 = 8 + ($var5 * 18 | 0) | 0; - var$9 = 18 + ($var4 * 18 | 0) | 0; - var$6.$inventory0 = $par2IInventory; - var$6.$slotIndex = $var5_0; - var$6.$xDisplayPosition = var$8; - var$6.$yDisplayPosition = var$9; - var$6.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$6); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var5 = $var5 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - $var5 = 0; - while ($var5 < 3) { - $var5_0 = 0; - while ($var5_0 < 9) { - $par2IInventory = new $java.nms_Slot; - var$8 = ($var5_0 + ($var5 * 9 | 0) | 0) + 9 | 0; - var$9 = 8 + ($var5_0 * 18 | 0) | 0; - $var4 = (103 + ($var5 * 18 | 0) | 0) + $var3 | 0; - $par2IInventory.$inventory0 = $par1IInventory; - $par2IInventory.$slotIndex = var$8; - $par2IInventory.$xDisplayPosition = var$9; - $par2IInventory.$yDisplayPosition = $var4; - $par2IInventory.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2IInventory); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var5_0 = $var5_0 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - $var4 = 0; - $var5 = 161 + $var3 | 0; - while ($var4 < 9) { - var$6 = new $java.nms_Slot; - $var3 = 8 + ($var4 * 18 | 0) | 0; - var$6.$inventory0 = $par1IInventory; - var$6.$slotIndex = $var4; - var$6.$xDisplayPosition = $var3; - var$6.$yDisplayPosition = $var5; - var$6.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$6); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = $var4 + 1 | 0; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1IInventory, $par2IInventory, $var3, $var4, $var5, var$6, $var5_0, var$8, var$9, $ptr); -}; -$java.nms_ContainerChest_canInteractWith = function($this, $par1EntityPlayer) { - return $this.$lowerChestInventory.$isUseableByPlayer($par1EntityPlayer); -}; -$java.nms_ContainerChest_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, $var4, $var5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - $par1EntityPlayer = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < $par1EntityPlayer.$size0) { - $var4 = $par1EntityPlayer.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$6 = $var5.$itemID0; - var$7 = $var5.$stackSize; - var$8 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$6; - $var3.$stackSize = var$7; - $var3.$itemDamage = var$8; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if ($par2 >= ($this.$numRows * 9 | 0)) { - var$6 = 0; - $par2 = $this.$numRows * 9 | 0; - var$7 = 0; - $ptr = 1; - continue main; - } - $par2 = $this.$numRows * 9 | 0; - var$7 = $this.$inventorySlots.$size0; - var$6 = 1; - $ptr = 2; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, var$6, $par2, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - $par1EntityPlayer = null; - $ptr = 4; - continue main; - case 2: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$6); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - $par1EntityPlayer = null; - $ptr = 4; - continue main; - case 3: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - return $var3; - case 4: - $var4.$putStack($par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - return $var3; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, $var4, $var5, var$6, var$7, var$8, $ptr); -}; -$java.nms_ContainerChest_onCraftGuiClosed = function($this, $par1EntityPlayer) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $par1EntityPlayer.$inventory; - if (var$2.$itemStack !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, var$2.$itemStack, 0); - var$2.$itemStack = null; - } - $par1EntityPlayer = $this.$lowerChestInventory; - $ptr = 1; - case 1: - $par1EntityPlayer.$closeChest(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, var$2, $ptr); -}; -$java.nms_ContainerChest_getLowerChestInventory = function($this) { - return $this.$lowerChestInventory; -}; -function nms_ContainerWorkbench() { - var a = this; nms_Container.call(a); - a.$craftMatrix1 = null; - a.$craftResult0 = null; - a.$worldObj10 = null; - a.$posX12 = 0; - a.$posY12 = 0; - a.$posZ9 = 0; -} -function nms_ContainerWorkbench__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_ContainerWorkbench(); - $java.nms_ContainerWorkbench__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -$java.nms_ContainerWorkbench__init_ = function($this, $par1InventoryPlayer, $par2World, $par3, $par4, $par5) { - var var$6, var$7, $var6, $var7; - nms_Container__init_($this); - var$6 = new nms_InventoryCrafting; - var$6.$stackList = $rt_createArray(nms_ItemStack, 9); - var$6.$eventHandler = $this; - var$6.$inventoryWidth = 3; - $this.$craftMatrix1 = var$6; - var$6 = new nms_InventoryCraftResult; - var$6.$stackResult = $rt_createArray(nms_ItemStack, 1); - $this.$craftResult0 = var$6; - $this.$worldObj10 = $par2World; - $this.$posX12 = $par3; - $this.$posY12 = $par4; - $this.$posZ9 = $par5; - $par2World = new $java.nms_SlotCrafting; - var$6 = $par1InventoryPlayer.$player; - var$7 = $this.$craftMatrix1; - $par2World.$inventory0 = $this.$craftResult0; - $par2World.$slotIndex = 0; - $par2World.$xDisplayPosition = 124; - $par2World.$yDisplayPosition = 35; - $par2World.$thePlayer2 = var$6; - $par2World.$craftMatrix0 = var$7; - $par2World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var6 = 0; - while ($var6 < 3) { - $var7 = 0; - while ($var7 < 3) { - $par2World = new $java.nms_Slot; - var$6 = $this.$craftMatrix1; - $par3 = $var7 + ($var6 * 3 | 0) | 0; - $par4 = 30 + ($var7 * 18 | 0) | 0; - $par5 = 17 + ($var6 * 18 | 0) | 0; - $par2World.$inventory0 = var$6; - $par2World.$slotIndex = $par3; - $par2World.$xDisplayPosition = $par4; - $par2World.$yDisplayPosition = $par5; - $par2World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var7 = $var7 + 1 | 0; - } - $var6 = $var6 + 1 | 0; - } - $par3 = 0; - while ($par3 < 3) { - $var7 = 0; - while ($var7 < 9) { - $par2World = new $java.nms_Slot; - $par4 = ($var7 + ($par3 * 9 | 0) | 0) + 9 | 0; - $par5 = 8 + ($var7 * 18 | 0) | 0; - $var6 = 84 + ($par3 * 18 | 0) | 0; - $par2World.$inventory0 = $par1InventoryPlayer; - $par2World.$slotIndex = $par4; - $par2World.$xDisplayPosition = $par5; - $par2World.$yDisplayPosition = $var6; - $par2World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var7 = $var7 + 1 | 0; - } - $par3 = $par3 + 1 | 0; - } - $par3 = 0; - while ($par3 < 9) { - $par2World = new $java.nms_Slot; - $par4 = 8 + ($par3 * 18 | 0) | 0; - $par2World.$inventory0 = $par1InventoryPlayer; - $par2World.$slotIndex = $par3; - $par2World.$xDisplayPosition = $par4; - $par2World.$yDisplayPosition = 142; - $par2World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $par3 = $par3 + 1 | 0; - } - $par1InventoryPlayer = $this.$craftResult0; - nms_CraftingManager_$callClinit(); - $par2World = nms_CraftingManager_findMatchingRecipe(nms_CraftingManager_instance, $this.$craftMatrix1, $this.$worldObj10); - $par1InventoryPlayer.$stackResult.data[0] = $par2World; -}; -$java.nms_ContainerWorkbench_onCraftMatrixChanged = function($this, $par1IInventory) { - var var$2; - $par1IInventory = $this.$craftResult0; - nms_CraftingManager_$callClinit(); - var$2 = nms_CraftingManager_findMatchingRecipe(nms_CraftingManager_instance, $this.$craftMatrix1, $this.$worldObj10); - $par1IInventory.$stackResult.data[0] = var$2; -}; -$java.nms_ContainerWorkbench_onCraftGuiClosed = function($this, $par1EntityPlayer) { - var $var3, $var2, var$4; - $var3 = $par1EntityPlayer.$inventory; - if ($var3.$itemStack !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, $var3.$itemStack, 0); - $var3.$itemStack = null; - } - a: { - if (!$this.$worldObj10.$isRemote) { - $var2 = 0; - while (true) { - if ($var2 >= 9) - break a; - var$4 = $this.$craftMatrix1; - if (var$4.$stackList.data[$var2] === null) - $var3 = null; - else { - $var3 = var$4.$stackList.data[$var2]; - var$4.$stackList.data[$var2] = null; - } - if ($var3 !== null) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, $var3, 0); - $var2 = $var2 + 1 | 0; - } - } - } -}; -$java.nms_ContainerWorkbench_canInteractWith = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - var$2 = nms_World_getBlockId($this.$worldObj10, $this.$posX12, $this.$posY12, $this.$posZ9); - nms_Block_$callClinit(); - if (var$2 != nms_Block_workbench.$blockID) - var$2 = 0; - else { - var$3 = $this.$posX12 + 0.5; - var$4 = $this.$posY12 + 0.5; - var$5 = $this.$posZ9 + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -$java.nms_ContainerWorkbench_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, $var4, $var5, var$6, 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();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - $var4 = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < $var4.$size0) { - $var4 = $var4.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$6 = $var5.$itemID0; - var$7 = $var5.$stackSize; - var$8 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$6; - $var3.$stackSize = var$7; - $var3.$itemDamage = var$8; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if (!$par2) { - $par2 = 10; - var$6 = 46; - var$7 = 1; - $ptr = 1; - continue main; - } - if ($par2 >= 10 && $par2 < 37) { - $par2 = 37; - var$6 = 46; - var$7 = 0; - $ptr = 3; - continue main; - } - if ($par2 >= 37 && $par2 < 46) { - $par2 = 10; - var$6 = 37; - var$7 = 0; - $ptr = 4; - continue main; - } - $par2 = 10; - var$6 = 46; - var$7 = 0; - $ptr = 2; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - $java.nms_Slot_onSlotChange($var4, $var5, $var3); - if ($var5.$stackSize) { - $ptr = 5; - continue main; - } - var$9 = null; - $ptr = 6; - continue main; - case 2: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 5; - continue main; - } - var$9 = null; - $ptr = 6; - continue main; - case 3: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 5; - continue main; - } - var$9 = null; - $ptr = 6; - continue main; - case 4: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 5; - continue main; - } - var$9 = null; - $ptr = 6; - continue main; - case 5: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 7; - continue main; - case 6: - $var4.$putStack(var$9); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 7; - case 7: - $var4.$onPickupFromSlot($par1EntityPlayer, $var5); - if ($rt_suspending()) { - break main; - } - return $var3; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, $var4, $var5, var$6, var$7, var$8, var$9, $ptr); -}; -$java.nms_ContainerWorkbench_func_94530_a = function($this, $par1ItemStack, $par2Slot) { - return $par2Slot.$inventory0 === $this.$craftResult0 ? 0 : 1; -}; -function nms_ContainerBeacon() { - var a = this; nms_Container.call(a); - a.$theBeacon = null; - a.$beaconSlot = null; - a.$field_82865_g = 0; - a.$field_82867_h = 0; - a.$field_82868_i = 0; -} -function nms_ContainerBeacon__init_(var_0, var_1) { - var var_2 = new nms_ContainerBeacon(); - $java.nms_ContainerBeacon__init_(var_2, var_0, var_1); - return var_2; -} -$java.nms_ContainerBeacon__init_ = function($this, $par1InventoryPlayer, $par2TileEntityBeacon) { - var var$3, $var5, $var6, var$6, var$7, var$8; - nms_Container__init_($this); - $this.$theBeacon = $par2TileEntityBeacon; - var$3 = new $java.nms_SlotBeacon; - var$3.$inventory0 = $par2TileEntityBeacon; - var$3.$slotIndex = 0; - var$3.$xDisplayPosition = 136; - var$3.$yDisplayPosition = 110; - var$3.$beacon0 = $this; - $this.$beaconSlot = var$3; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var5 = 0; - while ($var5 < 3) { - $var6 = 0; - while ($var6 < 9) { - var$3 = new $java.nms_Slot; - var$6 = ($var6 + ($var5 * 9 | 0) | 0) + 9 | 0; - var$7 = 36 + ($var6 * 18 | 0) | 0; - var$8 = 137 + ($var5 * 18 | 0) | 0; - var$3.$inventory0 = $par1InventoryPlayer; - var$3.$slotIndex = var$6; - var$3.$xDisplayPosition = var$7; - var$3.$yDisplayPosition = var$8; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var6 = $var6 + 1 | 0; - } - $var5 = $var5 + 1 | 0; - } - $var6 = 0; - while ($var6 < 9) { - var$3 = new $java.nms_Slot; - var$6 = 36 + ($var6 * 18 | 0) | 0; - var$3.$inventory0 = $par1InventoryPlayer; - var$3.$slotIndex = $var6; - var$3.$xDisplayPosition = var$6; - var$3.$yDisplayPosition = 195; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var6 = $var6 + 1 | 0; - } - $this.$field_82865_g = $par2TileEntityBeacon.$levels; - $this.$field_82867_h = $par2TileEntityBeacon.$primaryEffect; - $this.$field_82868_i = $par2TileEntityBeacon.$secondaryEffect; -}; -$java.nms_ContainerBeacon_addCraftingToCrafters = function($this, $par1ICrafting) { - var var$2; - if (ju_AbstractCollection_contains($this.$crafters, $par1ICrafting)) { - $par1ICrafting = new jl_IllegalArgumentException; - $par1ICrafting.$suppressionEnabled = 1; - $par1ICrafting.$writableStackTrace = 1; - $par1ICrafting.$message = $rt_s(1712); - $rt_throw($par1ICrafting); - } - ju_ArrayList_add($this.$crafters, $par1ICrafting); - nms_Container_getInventory($this); - var$2 = $this.$inventorySlots; - if (0 >= var$2.$size0) { - $par1ICrafting = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1ICrafting); - $rt_throw($par1ICrafting); - } - $java.nms_GuiRepair_sendSlotContents($par1ICrafting, $this, 0, var$2.$array1.data[0].$getStack()); - nms_Container_detectAndSendChanges($this); -}; -$java.nms_ContainerBeacon_detectAndSendChanges = function($this) { - nms_Container_detectAndSendChanges($this); -}; -$java.nms_ContainerBeacon_updateProgressBar = function($this, $par1, $par2) { - if (!$par1) - $this.$theBeacon.$levels = $par2; - if ($par1 == 1) - $java.nms_TileEntityBeacon_setPrimaryEffect($this.$theBeacon, $par2); - if ($par1 == 2) - $java.nms_TileEntityBeacon_setSecondaryEffect($this.$theBeacon, $par2); -}; -$java.nms_ContainerBeacon_canInteractWith = function($this, $par1EntityPlayer) { - return $java.nms_TileEntityBeacon_isUseableByPlayer($this.$theBeacon, $par1EntityPlayer); -}; -$java.nms_ContainerBeacon_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, var$4, $var4, $var5, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - var$4 = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < var$4.$size0) { - $var4 = var$4.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$7 = $var5.$itemID0; - var$8 = $var5.$stackSize; - var$9 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$7; - $var3.$stackSize = var$8; - $var3.$itemDamage = var$9; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if (!$par2) { - var$8 = 1; - $par2 = 37; - var$7 = 1; - $ptr = 1; - continue main; - } - var$10 = $this.$beaconSlot; - var$7 = var$10.$inventory0.$getStackInSlot(var$10.$slotIndex) === null ? 0 : 1; - if (!var$7 && $java.nms_SlotBeacon_isItemValid($this.$beaconSlot, $var5) && $var5.$stackSize == 1) { - $par2 = 0; - var$7 = 1; - var$8 = 0; - $ptr = 6; - continue main; - } - if ($par2 >= 1 && $par2 < 28) { - var$7 = 28; - var$8 = 37; - $par2 = 0; - $ptr = 5; - continue main; - } - if ($par2 >= 28 && $par2 < 37) { - $par2 = 1; - var$7 = 28; - var$8 = 0; - $ptr = 8; - continue main; - } - $par2 = 1; - var$7 = 37; - var$8 = 0; - $ptr = 4; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, var$8, $par2, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - $java.nms_Slot_onSlotChange($var4, $var5, $var3); - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 2: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 7; - continue main; - case 3: - $var4.$putStack(var$4); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 7; - continue main; - case 4: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 5: - $tmp = nms_Container_mergeItemStack($this, $var5, var$7, var$8, $par2); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 6: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 7: - $var4.$onPickupFromSlot($par1EntityPlayer, $var5); - if ($rt_suspending()) { - break main; - } - return $var3; - case 8: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, var$4, $var4, $var5, var$7, var$8, var$9, var$10, $ptr); -}; -function nms_ContainerRepair() { - var a = this; nms_Container.call(a); - a.$outputSlot = null; - a.$inputSlots = null; - a.$theWorld1 = null; - a.$field_82861_i = 0; - a.$field_82858_j = 0; - a.$field_82859_k = 0; - a.$maximumCost = 0; - a.$stackSizeToBeUsedInRepair = 0; - a.$repairedItemName = null; - a.$thePlayer4 = null; -} -function nms_ContainerRepair__init_(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_ContainerRepair(); - $java.nms_ContainerRepair__init_(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -} -$java.nms_ContainerRepair__init_ = function($this, $par1InventoryPlayer, $par2World, $par3, $par4, $par5, $par6EntityPlayer) { - var var$7, var$8, $var7, $var8; - nms_Container__init_($this); - var$7 = new nms_InventoryCraftResult; - var$7.$stackResult = $rt_createArray(nms_ItemStack, 1); - $this.$outputSlot = var$7; - var$8 = new $java.nms_InventoryRepair; - var$8.$inventoryTitle = $rt_s(2883); - var$8.$field_94051_e = 1; - var$8.$slotsCount = 2; - var$8.$inventoryContents = $rt_createArray(nms_ItemStack, 2); - var$8.$theContainer = $this; - $this.$inputSlots = var$8; - $this.$maximumCost = 0; - $this.$stackSizeToBeUsedInRepair = 0; - $this.$theWorld1 = $par2World; - $this.$field_82861_i = $par3; - $this.$field_82858_j = $par4; - $this.$field_82859_k = $par5; - $this.$thePlayer4 = $par6EntityPlayer; - $par6EntityPlayer = new $java.nms_Slot; - $par6EntityPlayer.$inventory0 = $this.$inputSlots; - $par6EntityPlayer.$slotIndex = 0; - $par6EntityPlayer.$xDisplayPosition = 27; - $par6EntityPlayer.$yDisplayPosition = 47; - $par6EntityPlayer.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par6EntityPlayer); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $par6EntityPlayer = new $java.nms_Slot; - $par6EntityPlayer.$inventory0 = $this.$inputSlots; - $par6EntityPlayer.$slotIndex = 1; - $par6EntityPlayer.$xDisplayPosition = 76; - $par6EntityPlayer.$yDisplayPosition = 47; - $par6EntityPlayer.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par6EntityPlayer); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $par6EntityPlayer = new $java.nms_SlotRepair; - $par6EntityPlayer.$inventory0 = $this.$outputSlot; - $par6EntityPlayer.$slotIndex = 2; - $par6EntityPlayer.$xDisplayPosition = 134; - $par6EntityPlayer.$yDisplayPosition = 47; - $par6EntityPlayer.$anvil = $this; - $par6EntityPlayer.$theWorld2 = $par2World; - $par6EntityPlayer.$blockPosX = $par3; - $par6EntityPlayer.$blockPosY = $par4; - $par6EntityPlayer.$blockPosZ = $par5; - $par6EntityPlayer.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par6EntityPlayer); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var7 = 0; - while ($var7 < 3) { - $var8 = 0; - while ($var8 < 9) { - $par2World = new $java.nms_Slot; - $par3 = ($var8 + ($var7 * 9 | 0) | 0) + 9 | 0; - $par4 = 8 + ($var8 * 18 | 0) | 0; - $par5 = 84 + ($var7 * 18 | 0) | 0; - $par2World.$inventory0 = $par1InventoryPlayer; - $par2World.$slotIndex = $par3; - $par2World.$xDisplayPosition = $par4; - $par2World.$yDisplayPosition = $par5; - $par2World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var8 = $var8 + 1 | 0; - } - $var7 = $var7 + 1 | 0; - } - $par3 = 0; - while ($par3 < 9) { - $par2World = new $java.nms_Slot; - $par4 = 8 + ($par3 * 18 | 0) | 0; - $par2World.$inventory0 = $par1InventoryPlayer; - $par2World.$slotIndex = $par3; - $par2World.$xDisplayPosition = $par4; - $par2World.$yDisplayPosition = 142; - $par2World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $par3 = $par3 + 1 | 0; - } -}; -$java.nms_ContainerRepair_onCraftMatrixChanged = function($this, $par1IInventory) { - nms_Container_detectAndSendChanges($this); - if ($par1IInventory === $this.$inputSlots) - $java.nms_ContainerRepair_updateRepairOutput($this); -}; -$java.nms_ContainerRepair_updateRepairOutput = function($this) { - var $var1, $var2, $var4, $var5, $var6, $var7, $var8, $var19, $var13, $var9, $var10, $var11, $var12, $var20, $var21, $var22, $var14, $var10000, $var15, $var16, $var17, $var18, $var23, $var13_0, $var14_0; - $var1 = $java.nms_InventoryBasic_getStackInSlot($this.$inputSlots, 0); - $this.$maximumCost = 0; - $var2 = 0; - $var4 = 0; - if ($var1 === null) { - $java.nms_InventoryCraftResult_setInventorySlotContents($this.$outputSlot, 0, null); - $this.$maximumCost = 0; - } else { - $var5 = nms_ItemStack_copy($var1); - $var6 = $java.nms_InventoryBasic_getStackInSlot($this.$inputSlots, 1); - $var7 = $java.nms_EnchantmentHelper_getEnchantments($var5); - $var8 = 0; - $var19 = (0 + nms_ItemStack_getRepairCost($var1) | 0) + ($var6 !== null ? nms_ItemStack_getRepairCost($var6) : 0) | 0; - $this.$stackSizeToBeUsedInRepair = 0; - if ($var6 !== null) { - $var13 = $var6.$itemID0; - nms_Item_$callClinit(); - $var8 = $var13 == nms_Item_enchantedBook.$itemID && nms_NBTTagList_tagCount(nms_ItemEnchantedBook_func_92110_g(nms_Item_enchantedBook, $var6)) > 0 ? 1 : 0; - if (nms_ItemStack_isItemStackDamageable($var5) && nms_Item_itemsList.data[$var5.$itemID0].$getIsRepairable($var1, $var6)) { - $var9 = jl_Math_min0(nms_ItemStack_getItemDamageForDisplay($var5), nms_ItemStack_getMaxDamage($var5) / 4 | 0); - if ($var9 <= 0) { - $java.nms_InventoryCraftResult_setInventorySlotContents($this.$outputSlot, 0, null); - $this.$maximumCost = 0; - return; - } - $var10 = 0; - while ($var9 > 0 && $var10 < $var6.$stackSize) { - nms_ItemStack_setItemDamage($var5, nms_ItemStack_getItemDamageForDisplay($var5) - $var9 | 0); - $var2 = $var2 + (jl_Math_max(1, $var9 / 100 | 0) + ju_HashMap_size($var7) | 0) | 0; - $var9 = jl_Math_min0(nms_ItemStack_getItemDamageForDisplay($var5), nms_ItemStack_getMaxDamage($var5) / 4 | 0); - $var10 = $var10 + 1 | 0; - } - $this.$stackSizeToBeUsedInRepair = $var10; - } else { - if (!$var8 && !($var5.$itemID0 == $var6.$itemID0 && nms_ItemStack_isItemStackDamageable($var5))) { - $java.nms_InventoryCraftResult_setInventorySlotContents($this.$outputSlot, 0, null); - $this.$maximumCost = 0; - return; - } - if (nms_ItemStack_isItemStackDamageable($var5) && !$var8) { - $var9 = nms_ItemStack_getMaxDamage($var1) - nms_ItemStack_getItemDamageForDisplay($var1) | 0; - $var11 = (nms_ItemStack_getMaxDamage($var6) - nms_ItemStack_getItemDamageForDisplay($var6) | 0) + ((nms_ItemStack_getMaxDamage($var5) * 12 | 0) / 100 | 0) | 0; - $var12 = $var9 + $var11 | 0; - $var13 = nms_ItemStack_getMaxDamage($var5) - $var12 | 0; - if ($var13 < 0) - $var13 = 0; - if ($var13 < nms_ItemStack_getItemDamage($var5)) { - nms_ItemStack_setItemDamage($var5, $var13); - $var2 = $var2 + jl_Math_max(1, $var11 / 100 | 0) | 0; - } - } - $var20 = $java.nms_EnchantmentHelper_getEnchantments($var6); - $var21 = ju_LinkedHashMap_keySet($var20).$iterator(); - while ($var21.$hasNext()) { - $var11 = jl_Integer_intValue($var21.$next()); - nms_Enchantment_$callClinit(); - $var22 = nms_Enchantment_enchantmentsList.data[$var11]; - $var13 = !ju_HashMap_containsKey($var7, jl_Integer_valueOf($var11)) ? 0 : jl_Integer_intValue(ju_LinkedHashMap_get($var7, jl_Integer_valueOf($var11))); - $var14 = jl_Integer_intValue(ju_LinkedHashMap_get($var20, jl_Integer_valueOf($var11))); - $var10000 = $var13 != $var14 ? jl_Math_max($var14, $var13) : $var14 + 1 | 0; - $var15 = $var10000 - $var13 | 0; - $var16 = $var22.$canApply($var1); - if (!(!$this.$thePlayer4.$capabilities.$isCreativeMode && $var1.$itemID0 != nms_Item_enchantedBook.$itemID)) - $var16 = 1; - $var17 = ju_LinkedHashMap_keySet($var7).$iterator(); - while ($var17.$hasNext()) { - $var18 = jl_Integer_intValue($var17.$next()); - if ($var18 != $var11 && !$var22.$canApplyTogether(nms_Enchantment_enchantmentsList.data[$var18])) { - $var16 = 0; - $var2 = $var2 + $var15 | 0; - } - } - if ($var16) { - if ($var10000 > $var22.$getMaxLevel()) - $var10000 = $var22.$getMaxLevel(); - a: { - b: { - c: { - ju_LinkedHashMap_put($var7, jl_Integer_valueOf($var11), jl_Integer_valueOf($var10000)); - $var23 = 0; - switch ($java.nms_Enchantment_getWeight($var22)) { - case 1: - break; - case 2: - $var23 = 4; - break b; - case 5: - $var23 = 2; - break a; - case 10: - $var23 = 1; - break a; - case 3: - case 4: - case 6: - case 7: - case 8: - case 9: - break c; - default: - break c; - } - $var23 = 8; - break a; - } - } - } - if ($var8) - $var23 = jl_Math_max(1, $var23 / 2 | 0); - $var2 = $var2 + $rt_imul($var23, $var15) | 0; - } - } - } - } - if ($this.$repairedItemName !== null && jl_String_length($this.$repairedItemName) > 0 && !jl_String_equalsIgnoreCase($this.$repairedItemName, nms_StringTranslate_translateNamedKey(nms_EntityPlayer_getTranslator($this.$thePlayer4), nms_ItemStack_getItemName($var1))) && !jl_String_equals($this.$repairedItemName, nms_ItemStack_getDisplayName($var1))) { - $var4 = nms_ItemStack_isItemStackDamageable($var1) ? 7 : $var1.$stackSize * 5 | 0; - $var2 = $var2 + $var4 | 0; - if (nms_ItemStack_hasDisplayName($var1)) - $var19 = $var19 + ($var4 / 2 | 0) | 0; - nms_ItemStack_setItemName($var5, $this.$repairedItemName); - } - $var9 = 0; - $var21 = ju_LinkedHashMap_keySet($var7).$iterator(); - while ($var21.$hasNext()) { - d: { - e: { - f: { - $var11 = jl_Integer_intValue($var21.$next()); - nms_Enchantment_$callClinit(); - $var22 = nms_Enchantment_enchantmentsList.data[$var11]; - $var13_0 = jl_Integer_intValue(ju_LinkedHashMap_get($var7, jl_Integer_valueOf($var11))); - $var14_0 = 0; - $var9 = $var9 + 1 | 0; - switch ($java.nms_Enchantment_getWeight($var22)) { - case 1: - break; - case 2: - $var14_0 = 4; - break e; - case 5: - $var14_0 = 2; - break d; - case 10: - $var14_0 = 1; - break d; - case 3: - case 4: - case 6: - case 7: - case 8: - case 9: - break f; - default: - break f; - } - $var14_0 = 8; - break d; - } - } - } - if ($var8) - $var14_0 = jl_Math_max(1, $var14_0 / 2 | 0); - $var19 = $var19 + ($var9 + $rt_imul($var13_0, $var14_0) | 0) | 0; - } - if ($var8) - $var19 = jl_Math_max(1, $var19 / 2 | 0); - $this.$maximumCost = $var19 + $var2 | 0; - if ($var2 <= 0) - $var5 = null; - if ($var4 == $var2 && $var4 > 0 && $this.$maximumCost >= 40) { - ji_PrintStream_println0(jl_System_out(), $rt_s(2884)); - $this.$maximumCost = 39; - } - if ($this.$maximumCost >= 40 && !$this.$thePlayer4.$capabilities.$isCreativeMode) - $var5 = null; - if ($var5 !== null) { - $var10 = nms_ItemStack_getRepairCost($var5); - if ($var6 !== null && $var10 < nms_ItemStack_getRepairCost($var6)) - $var10 = nms_ItemStack_getRepairCost($var6); - if (nms_ItemStack_hasDisplayName($var5)) - $var10 = $var10 + (-9) | 0; - if ($var10 < 0) - $var10 = 0; - nms_ItemStack_setRepairCost($var5, $var10 + 2 | 0); - $java.nms_EnchantmentHelper_setEnchantments($var7, $var5); - } - $java.nms_InventoryCraftResult_setInventorySlotContents($this.$outputSlot, 0, $var5); - nms_Container_detectAndSendChanges($this); - } -}; -$java.nms_ContainerRepair_addCraftingToCrafters = function($this, $par1ICrafting) { - var var$2; - if (ju_AbstractCollection_contains($this.$crafters, $par1ICrafting)) { - $par1ICrafting = new jl_IllegalArgumentException; - $par1ICrafting.$suppressionEnabled = 1; - $par1ICrafting.$writableStackTrace = 1; - $par1ICrafting.$message = $rt_s(1712); - $rt_throw($par1ICrafting); - } - ju_ArrayList_add($this.$crafters, $par1ICrafting); - nms_Container_getInventory($this); - var$2 = $this.$inventorySlots; - if (0 >= var$2.$size0) { - $par1ICrafting = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1ICrafting); - $rt_throw($par1ICrafting); - } - $java.nms_GuiRepair_sendSlotContents($par1ICrafting, $this, 0, var$2.$array1.data[0].$getStack()); - nms_Container_detectAndSendChanges($this); -}; -$java.nms_ContainerRepair_updateProgressBar = function($this, $par1, $par2) { - if (!$par1) - $this.$maximumCost = $par2; -}; -$java.nms_ContainerRepair_onCraftGuiClosed = function($this, $par1EntityPlayer) { - var var$2, $var2, var$4, $var3; - var$2 = $par1EntityPlayer.$inventory; - if (var$2.$itemStack !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, var$2.$itemStack, 0); - var$2.$itemStack = null; - } - a: { - if (!$this.$theWorld1.$isRemote) { - $var2 = 0; - while (true) { - if ($var2 >= $this.$inputSlots.$slotsCount) - break a; - var$4 = $this.$inputSlots; - if (var$4.$inventoryContents.data[$var2] === null) - $var3 = null; - else { - $var3 = var$4.$inventoryContents.data[$var2]; - var$4.$inventoryContents.data[$var2] = null; - } - if ($var3 !== null) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, $var3, 0); - $var2 = $var2 + 1 | 0; - } - } - } -}; -$java.nms_ContainerRepair_canInteractWith = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - var$2 = nms_World_getBlockId($this.$theWorld1, $this.$field_82861_i, $this.$field_82858_j, $this.$field_82859_k); - nms_Block_$callClinit(); - if (var$2 != nms_Block_anvil.$blockID) - var$2 = 0; - else { - var$3 = $this.$field_82861_i + 0.5; - var$4 = $this.$field_82858_j + 0.5; - var$5 = $this.$field_82859_k + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -$java.nms_ContainerRepair_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, $var4, $var5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - $var4 = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < $var4.$size0) { - $var4 = $var4.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$6 = $var5.$itemID0; - var$7 = $var5.$stackSize; - var$8 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$6; - $var3.$stackSize = var$7; - $var3.$itemDamage = var$8; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if ($par2 == 2) { - $par2 = 3; - var$9 = 39; - var$6 = 1; - $ptr = 1; - continue main; - } - if ($par2 && $par2 != 1) { - if ($par2 >= 3 && $par2 < 39) { - $par2 = 0; - var$9 = 2; - var$6 = 0; - $ptr = 5; - continue main; - } - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - } - var$6 = 3; - $par2 = 39; - var$9 = 0; - $ptr = 2; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$9, var$6); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - $java.nms_Slot_onSlotChange($var4, $var5, $var3); - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - case 2: - $tmp = nms_Container_mergeItemStack($this, $var5, var$6, $par2, var$9); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - case 3: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 6; - continue main; - case 4: - $var4.$putStack(var$10); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 6; - continue main; - case 5: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$9, var$6); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - case 6: - $var4.$onPickupFromSlot($par1EntityPlayer, $var5); - if ($rt_suspending()) { - break main; - } - return $var3; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, $var4, $var5, var$6, var$7, var$8, var$9, var$10, $ptr); -}; -$java.nms_ContainerRepair_updateItemName = function($this, $par1Str) { - $this.$repairedItemName = $par1Str; - $par1Str = $this.$inventorySlots; - if (2 >= $par1Str.$size0) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - if ($par1Str.$array1.data[2].$getHasStack()) { - $par1Str = $this.$inventorySlots; - if (2 >= $par1Str.$size0) { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - nms_ItemStack_setItemName($par1Str.$array1.data[2].$getStack(), $this.$repairedItemName); - } - $java.nms_ContainerRepair_updateRepairOutput($this); -}; -function nms_ContainerDispenser() { - nms_Container.call(this); - this.$tileEntityDispenser = null; -} -function nms_ContainerDispenser__init_(var_0, var_1) { - var var_2 = new nms_ContainerDispenser(); - $java.nms_ContainerDispenser__init_(var_2, var_0, var_1); - return var_2; -} -$java.nms_ContainerDispenser__init_ = function($this, $par1IInventory, $par2TileEntityDispenser) { - var $var3, $var4, var$5, var$6, var$7, $var4_0, var$9; - nms_Container__init_($this); - $this.$tileEntityDispenser = $par2TileEntityDispenser; - $var3 = 0; - while ($var3 < 3) { - $var4 = 0; - while ($var4 < 3) { - var$5 = new $java.nms_Slot; - var$6 = $var4 + ($var3 * 3 | 0) | 0; - var$7 = 62 + ($var4 * 18 | 0) | 0; - $var4_0 = 17 + ($var3 * 18 | 0) | 0; - var$5.$inventory0 = $par2TileEntityDispenser; - var$5.$slotIndex = var$6; - var$5.$xDisplayPosition = var$7; - var$5.$yDisplayPosition = $var4_0; - var$5.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$5); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = $var4 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - var$7 = 0; - while (var$7 < 3) { - $var4_0 = 0; - while ($var4_0 < 9) { - $par2TileEntityDispenser = new $java.nms_Slot; - var$9 = ($var4_0 + (var$7 * 9 | 0) | 0) + 9 | 0; - $var3 = 8 + ($var4_0 * 18 | 0) | 0; - var$6 = 84 + (var$7 * 18 | 0) | 0; - $par2TileEntityDispenser.$inventory0 = $par1IInventory; - $par2TileEntityDispenser.$slotIndex = var$9; - $par2TileEntityDispenser.$xDisplayPosition = $var3; - $par2TileEntityDispenser.$yDisplayPosition = var$6; - $par2TileEntityDispenser.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2TileEntityDispenser); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4_0 = $var4_0 + 1 | 0; - } - var$7 = var$7 + 1 | 0; - } - $var4_0 = 0; - while ($var4_0 < 9) { - $par2TileEntityDispenser = new $java.nms_Slot; - var$6 = 8 + ($var4_0 * 18 | 0) | 0; - $par2TileEntityDispenser.$inventory0 = $par1IInventory; - $par2TileEntityDispenser.$slotIndex = $var4_0; - $par2TileEntityDispenser.$xDisplayPosition = var$6; - $par2TileEntityDispenser.$yDisplayPosition = 142; - $par2TileEntityDispenser.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2TileEntityDispenser); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4_0 = $var4_0 + 1 | 0; - } -}; -$java.nms_ContainerDispenser_canInteractWith = function($this, $par1EntityPlayer) { - return $java.nms_TileEntityDispenser_isUseableByPlayer($this.$tileEntityDispenser, $par1EntityPlayer); -}; -$java.nms_ContainerDispenser_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, $var4, $var5, var$6, 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();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - $var4 = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < $var4.$size0) { - $var4 = $var4.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$6 = $var5.$itemID0; - var$7 = $var5.$stackSize; - var$8 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$6; - $var3.$stackSize = var$7; - $var3.$itemDamage = var$8; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if ($par2 >= 9) { - $par2 = 0; - var$6 = 9; - var$7 = 0; - $ptr = 1; - continue main; - } - $par2 = 9; - var$6 = 45; - var$7 = 1; - $ptr = 2; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$9 = null; - $ptr = 4; - continue main; - case 2: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$9 = null; - $ptr = 4; - continue main; - case 3: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 5; - continue main; - case 4: - $var4.$putStack(var$9); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 5; - case 5: - $var4.$onPickupFromSlot($par1EntityPlayer, $var5); - if ($rt_suspending()) { - break main; - } - return $var3; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, $var4, $var5, var$6, var$7, var$8, var$9, $ptr); -}; -function nms_ContainerHopper() { - nms_Container.call(this); - this.$field_94538_a = null; -} -function nms_ContainerHopper__init_(var_0, var_1) { - var var_2 = new nms_ContainerHopper(); - $java.nms_ContainerHopper__init_(var_2, var_0, var_1); - return var_2; -} -$java.nms_ContainerHopper__init_ = function($this, $par1InventoryPlayer, $par2IInventory) { - var $var4, var$4, var$5, $var5, var$7, var$8, $var3; - nms_Container__init_($this); - $this.$field_94538_a = $par2IInventory; - $par2IInventory.$openChest(); - $var4 = 0; - while ($var4 < $par2IInventory.$getSizeInventory()) { - var$4 = new $java.nms_Slot; - var$5 = 44 + ($var4 * 18 | 0) | 0; - var$4.$inventory0 = $par2IInventory; - var$4.$slotIndex = $var4; - var$4.$xDisplayPosition = var$5; - var$4.$yDisplayPosition = 20; - var$4.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$4); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = $var4 + 1 | 0; - } - var$5 = 0; - while (var$5 < 3) { - $var5 = 0; - while ($var5 < 9) { - $par2IInventory = new $java.nms_Slot; - $var4 = ($var5 + (var$5 * 9 | 0) | 0) + 9 | 0; - var$7 = 8 + ($var5 * 18 | 0) | 0; - var$8 = (var$5 * 18 | 0) + 51 | 0; - $par2IInventory.$inventory0 = $par1InventoryPlayer; - $par2IInventory.$slotIndex = $var4; - $par2IInventory.$xDisplayPosition = var$7; - $par2IInventory.$yDisplayPosition = var$8; - $par2IInventory.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2IInventory); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var5 = $var5 + 1 | 0; - } - var$5 = var$5 + 1 | 0; - } - $var3 = 0; - while ($var3 < 9) { - $par2IInventory = new $java.nms_Slot; - var$5 = 8 + ($var3 * 18 | 0) | 0; - $par2IInventory.$inventory0 = $par1InventoryPlayer; - $par2IInventory.$slotIndex = $var3; - $par2IInventory.$xDisplayPosition = var$5; - $par2IInventory.$yDisplayPosition = 109; - $par2IInventory.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2IInventory); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var3 = $var3 + 1 | 0; - } -}; -$java.nms_ContainerHopper_canInteractWith = function($this, $par1EntityPlayer) { - return $this.$field_94538_a.$isUseableByPlayer($par1EntityPlayer); -}; -$java.nms_ContainerHopper_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, $var4, $var5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - $par1EntityPlayer = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < $par1EntityPlayer.$size0) { - $var4 = $par1EntityPlayer.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$6 = $var5.$itemID0; - var$7 = $var5.$stackSize; - var$8 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$6; - $var3.$stackSize = var$7; - $var3.$itemDamage = var$8; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if ($par2 >= $this.$field_94538_a.$getSizeInventory()) { - $par2 = 0; - var$7 = $this.$field_94538_a.$getSizeInventory(); - var$6 = 0; - $ptr = 1; - continue main; - } - $par2 = $this.$field_94538_a.$getSizeInventory(); - var$7 = $this.$inventorySlots.$size0; - var$6 = 1; - $ptr = 2; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$6); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - $par1EntityPlayer = null; - $ptr = 4; - continue main; - case 2: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$6); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - $par1EntityPlayer = null; - $ptr = 4; - continue main; - case 3: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - return $var3; - case 4: - $var4.$putStack($par1EntityPlayer); - if ($rt_suspending()) { - break main; - } - return $var3; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, $var4, $var5, var$6, var$7, var$8, $ptr); -}; -$java.nms_ContainerHopper_onCraftGuiClosed = function($this, $par1EntityPlayer) { - var var$2; - var$2 = $par1EntityPlayer.$inventory; - if (var$2.$itemStack !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, var$2.$itemStack, 0); - var$2.$itemStack = null; - } - $this.$field_94538_a.$closeChest(); -}; -$java.nms_ContainerMerchant = function() { - var a = this; nms_Container.call(a); - a.$theMerchant0 = null; - a.$merchantInventory = null; - a.$theWorld3 = null; -}; -$java.nms_ContainerMerchant__init_ = function(var_0, var_1, var_2) { - var var_3 = new $java.nms_ContainerMerchant(); - $java.nms_ContainerMerchant__init_0(var_3, var_0, var_1, var_2); - return var_3; -}; -$java.nms_ContainerMerchant__init_0 = function($this, $par1InventoryPlayer, $par2IMerchant, $par3World) { - var var$4, var$5, $var4, $var5, var$8, var$9, var$10; - nms_Container__init_($this); - $this.$theMerchant0 = $par2IMerchant; - $this.$theWorld3 = $par3World; - $par3World = new $java.nms_InventoryMerchant; - var$4 = $par1InventoryPlayer.$player; - $par3World.$theInventory = $rt_createArray(nms_ItemStack, 3); - $par3World.$thePlayer0 = var$4; - $par3World.$theMerchant = $par2IMerchant; - $this.$merchantInventory = $par3World; - $par3World = new $java.nms_Slot; - $par3World.$inventory0 = $this.$merchantInventory; - $par3World.$slotIndex = 0; - $par3World.$xDisplayPosition = 36; - $par3World.$yDisplayPosition = 53; - $par3World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par3World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $par3World = new $java.nms_Slot; - $par3World.$inventory0 = $this.$merchantInventory; - $par3World.$slotIndex = 1; - $par3World.$xDisplayPosition = 62; - $par3World.$yDisplayPosition = 53; - $par3World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par3World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $par3World = new $java.nms_SlotMerchantResult; - var$4 = $par1InventoryPlayer.$player; - var$5 = $this.$merchantInventory; - $par3World.$inventory0 = var$5; - $par3World.$slotIndex = 2; - $par3World.$xDisplayPosition = 120; - $par3World.$yDisplayPosition = 53; - $par3World.$thePlayer5 = var$4; - $par3World.$theMerchant1 = $par2IMerchant; - $par3World.$theMerchantInventory0 = var$5; - $par3World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par3World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = 0; - while ($var4 < 3) { - $var5 = 0; - while ($var5 < 9) { - $par2IMerchant = new $java.nms_Slot; - var$8 = ($var5 + ($var4 * 9 | 0) | 0) + 9 | 0; - var$9 = 8 + ($var5 * 18 | 0) | 0; - var$10 = 84 + ($var4 * 18 | 0) | 0; - $par2IMerchant.$inventory0 = $par1InventoryPlayer; - $par2IMerchant.$slotIndex = var$8; - $par2IMerchant.$xDisplayPosition = var$9; - $par2IMerchant.$yDisplayPosition = var$10; - $par2IMerchant.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2IMerchant); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var5 = $var5 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - $var4 = 0; - while ($var4 < 9) { - $par2IMerchant = new $java.nms_Slot; - $var5 = 8 + ($var4 * 18 | 0) | 0; - $par2IMerchant.$inventory0 = $par1InventoryPlayer; - $par2IMerchant.$slotIndex = $var4; - $par2IMerchant.$xDisplayPosition = $var5; - $par2IMerchant.$yDisplayPosition = 142; - $par2IMerchant.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2IMerchant); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = $var4 + 1 | 0; - } -}; -$java.nms_ContainerMerchant_addCraftingToCrafters = function($this, $par1ICrafting) { - var var$2; - if (ju_AbstractCollection_contains($this.$crafters, $par1ICrafting)) { - $par1ICrafting = new jl_IllegalArgumentException; - $par1ICrafting.$suppressionEnabled = 1; - $par1ICrafting.$writableStackTrace = 1; - $par1ICrafting.$message = $rt_s(1712); - $rt_throw($par1ICrafting); - } - ju_ArrayList_add($this.$crafters, $par1ICrafting); - nms_Container_getInventory($this); - var$2 = $this.$inventorySlots; - if (0 >= var$2.$size0) { - $par1ICrafting = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1ICrafting); - $rt_throw($par1ICrafting); - } - $java.nms_GuiRepair_sendSlotContents($par1ICrafting, $this, 0, var$2.$array1.data[0].$getStack()); - nms_Container_detectAndSendChanges($this); -}; -$java.nms_ContainerMerchant_detectAndSendChanges = function($this) { - nms_Container_detectAndSendChanges($this); -}; -$java.nms_ContainerMerchant_setCurrentRecipeIndex = function($this, $par1) { - var var$2; - var$2 = $this.$merchantInventory; - var$2.$currentRecipeIndex0 = $par1; - $java.nms_InventoryMerchant_resetRecipeAndSlots(var$2); -}; -$java.nms_ContainerMerchant_updateProgressBar = function($this, $par1, $par2) { - return; -}; -$java.nms_ContainerMerchant_canInteractWith = function($this, $par1EntityPlayer) { - return $this.$theMerchant0.$getCustomer() !== $par1EntityPlayer ? 0 : 1; -}; -$java.nms_ContainerMerchant_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, $var4, $var5, var$6, 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();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - $var4 = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < $var4.$size0) { - $var4 = $var4.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$6 = $var5.$itemID0; - var$7 = $var5.$stackSize; - var$8 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$6; - $var3.$stackSize = var$7; - $var3.$itemDamage = var$8; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if ($par2 == 2) { - var$6 = 3; - $par2 = 39; - var$7 = 1; - $ptr = 1; - continue main; - } - if ($par2 && $par2 != 1) { - if ($par2 >= 3 && $par2 < 30) { - $par2 = 30; - var$6 = 39; - var$7 = 0; - $ptr = 5; - continue main; - } - if ($par2 >= 30 && $par2 < 39) { - $par2 = 3; - var$6 = 30; - var$7 = 0; - $ptr = 7; - continue main; - } - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$9 = null; - $ptr = 4; - continue main; - } - $par2 = 3; - var$6 = 39; - var$7 = 0; - $ptr = 2; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, var$6, $par2, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - $java.nms_Slot_onSlotChange($var4, $var5, $var3); - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$9 = null; - $ptr = 4; - continue main; - case 2: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$9 = null; - $ptr = 4; - continue main; - case 3: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 6; - continue main; - case 4: - $var4.$putStack(var$9); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 6; - continue main; - case 5: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$9 = null; - $ptr = 4; - continue main; - case 6: - $var4.$onPickupFromSlot($par1EntityPlayer, $var5); - if ($rt_suspending()) { - break main; - } - return $var3; - case 7: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$9 = null; - $ptr = 4; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, $var4, $var5, var$6, var$7, var$8, var$9, $ptr); -}; -$java.nms_ContainerMerchant_onCraftGuiClosed = function($this, $par1EntityPlayer) { - var var$2, $var2; - var$2 = $par1EntityPlayer.$inventory; - if (var$2.$itemStack !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, var$2.$itemStack, 0); - var$2.$itemStack = null; - } - $this.$theMerchant0.$setCustomer(null); - var$2 = $par1EntityPlayer.$inventory; - if (var$2.$itemStack !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, var$2.$itemStack, 0); - var$2.$itemStack = null; - } - if (!$this.$theWorld3.$isRemote) { - var$2 = $this.$merchantInventory; - if (var$2.$theInventory.data[0] === null) - $var2 = null; - else { - $var2 = var$2.$theInventory.data[0]; - var$2.$theInventory.data[0] = null; - } - if ($var2 !== null) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, $var2, 0); - var$2 = $this.$merchantInventory; - if (var$2.$theInventory.data[1] === null) - $var2 = null; - else { - $var2 = var$2.$theInventory.data[1]; - var$2.$theInventory.data[1] = null; - } - if ($var2 !== null) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, $var2, 0); - } -}; -function nms_ContainerBrewingStand() { - var a = this; nms_Container.call(a); - a.$tileBrewingStand = null; - a.$theSlot1 = null; - a.$brewTime0 = 0; -} -function nms_ContainerBrewingStand__init_(var_0, var_1) { - var var_2 = new nms_ContainerBrewingStand(); - $java.nms_ContainerBrewingStand__init_(var_2, var_0, var_1); - return var_2; -} -$java.nms_ContainerBrewingStand__init_ = function($this, $par1InventoryPlayer, $par2TileEntityBrewingStand) { - var var$3, var$4, $var3, $var4, var$7, var$8, var$9; - nms_Container__init_($this); - $this.$brewTime0 = 0; - $this.$tileBrewingStand = $par2TileEntityBrewingStand; - var$3 = new $java.nms_SlotBrewingStandPotion; - var$4 = $par1InventoryPlayer.$player; - var$3.$inventory0 = $par2TileEntityBrewingStand; - var$3.$slotIndex = 0; - var$3.$xDisplayPosition = 56; - var$3.$yDisplayPosition = 46; - var$3.$player0 = var$4; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - var$3 = new $java.nms_SlotBrewingStandPotion; - var$4 = $par1InventoryPlayer.$player; - var$3.$inventory0 = $par2TileEntityBrewingStand; - var$3.$slotIndex = 1; - var$3.$xDisplayPosition = 79; - var$3.$yDisplayPosition = 53; - var$3.$player0 = var$4; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - var$3 = new $java.nms_SlotBrewingStandPotion; - var$4 = $par1InventoryPlayer.$player; - var$3.$inventory0 = $par2TileEntityBrewingStand; - var$3.$slotIndex = 2; - var$3.$xDisplayPosition = 102; - var$3.$yDisplayPosition = 46; - var$3.$player0 = var$4; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - var$3 = new $java.nms_SlotBrewingStandIngredient; - var$3.$inventory0 = $par2TileEntityBrewingStand; - var$3.$slotIndex = 3; - var$3.$xDisplayPosition = 79; - var$3.$yDisplayPosition = 17; - var$3.$brewingStand0 = $this; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $this.$theSlot1 = var$3; - $var3 = 0; - while ($var3 < 3) { - $var4 = 0; - while ($var4 < 9) { - $par2TileEntityBrewingStand = new $java.nms_Slot; - var$7 = ($var4 + ($var3 * 9 | 0) | 0) + 9 | 0; - var$8 = 8 + ($var4 * 18 | 0) | 0; - var$9 = 84 + ($var3 * 18 | 0) | 0; - $par2TileEntityBrewingStand.$inventory0 = $par1InventoryPlayer; - $par2TileEntityBrewingStand.$slotIndex = var$7; - $par2TileEntityBrewingStand.$xDisplayPosition = var$8; - $par2TileEntityBrewingStand.$yDisplayPosition = var$9; - $par2TileEntityBrewingStand.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2TileEntityBrewingStand); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = $var4 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - $var3 = 0; - while ($var3 < 9) { - $par2TileEntityBrewingStand = new $java.nms_Slot; - $var4 = 8 + ($var3 * 18 | 0) | 0; - $par2TileEntityBrewingStand.$inventory0 = $par1InventoryPlayer; - $par2TileEntityBrewingStand.$slotIndex = $var3; - $par2TileEntityBrewingStand.$xDisplayPosition = $var4; - $par2TileEntityBrewingStand.$yDisplayPosition = 142; - $par2TileEntityBrewingStand.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2TileEntityBrewingStand); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var3 = $var3 + 1 | 0; - } -}; -$java.nms_ContainerBrewingStand_addCraftingToCrafters = function($this, $par1ICrafting) { - var var$2; - if (ju_AbstractCollection_contains($this.$crafters, $par1ICrafting)) { - $par1ICrafting = new jl_IllegalArgumentException; - $par1ICrafting.$suppressionEnabled = 1; - $par1ICrafting.$writableStackTrace = 1; - $par1ICrafting.$message = $rt_s(1712); - $rt_throw($par1ICrafting); - } - ju_ArrayList_add($this.$crafters, $par1ICrafting); - nms_Container_getInventory($this); - var$2 = $this.$inventorySlots; - if (0 >= var$2.$size0) { - $par1ICrafting = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1ICrafting); - $rt_throw($par1ICrafting); - } - $java.nms_GuiRepair_sendSlotContents($par1ICrafting, $this, 0, var$2.$array1.data[0].$getStack()); - $java.nms_ContainerBrewingStand_detectAndSendChanges($this); -}; -$java.nms_ContainerBrewingStand_detectAndSendChanges = function($this) { - var $var1, $var2; - nms_Container_detectAndSendChanges($this); - $var1 = 0; - a: { - while ($var1 < $this.$crafters.$size0) { - $var2 = $this.$crafters; - if ($var1 < 0) - break a; - if ($var1 >= $var2.$size0) - break a; - $var2 = $var2.$array1.data[$var1]; - if ($this.$brewTime0 != $this.$tileBrewingStand.$brewTime) - $var2.$sendProgressBarUpdate($this, 0, $this.$tileBrewingStand.$brewTime); - $var1 = $var1 + 1 | 0; - } - $this.$brewTime0 = $this.$tileBrewingStand.$brewTime; - return; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -}; -$java.nms_ContainerBrewingStand_updateProgressBar = function($this, $par1, $par2) { - if (!$par1) - $this.$tileBrewingStand.$brewTime = $par2; -}; -$java.nms_ContainerBrewingStand_canInteractWith = function($this, $par1EntityPlayer) { - return $java.nms_TileEntityBrewingStand_isUseableByPlayer($this.$tileBrewingStand, $par1EntityPlayer); -}; -$java.nms_ContainerBrewingStand_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, var$4, $var4, $var5, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - var$4 = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < var$4.$size0) { - $var4 = var$4.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$7 = $var5.$itemID0; - var$8 = $var5.$stackSize; - var$9 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$7; - $var3.$stackSize = var$8; - $var3.$itemDamage = var$9; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if (!($par2 >= 0 && $par2 <= 2) && $par2 != 3) { - var$10 = $this.$theSlot1; - var$7 = var$10.$inventory0.$getStackInSlot(var$10.$slotIndex) === null ? 0 : 1; - if (!var$7 && $this.$theSlot1.$isItemValid($var5)) { - $par2 = 3; - var$7 = 4; - var$8 = 0; - $ptr = 5; - continue main; - } - if ($java.nms_SlotBrewingStandPotion_canHoldPotion($var3)) { - $par2 = 0; - var$7 = 3; - var$8 = 0; - $ptr = 4; - continue main; - } - if ($par2 >= 4 && $par2 < 31) { - $par2 = 31; - var$7 = 40; - var$8 = 0; - $ptr = 8; - continue main; - } - if ($par2 >= 31 && $par2 < 40) { - $par2 = 4; - var$7 = 31; - var$8 = 0; - $ptr = 9; - continue main; - } - $par2 = 4; - var$7 = 40; - var$8 = 0; - $ptr = 7; - continue main; - } - $par2 = 4; - var$7 = 40; - var$8 = 1; - $ptr = 1; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - $java.nms_Slot_onSlotChange($var4, $var5, $var3); - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 2: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 6; - continue main; - case 3: - $var4.$putStack(var$4); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 6; - continue main; - case 4: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 5: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 6: - $var4.$onPickupFromSlot($par1EntityPlayer, $var5); - if ($rt_suspending()) { - break main; - } - return $var3; - case 7: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 8: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 9: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, var$4, $var4, $var5, var$7, var$8, var$9, var$10, $ptr); -}; -function nms_ContainerEnchantment() { - var a = this; nms_Container.call(a); - a.$tableInventory = null; - a.$worldPointer = null; - a.$posX13 = 0; - a.$posY13 = 0; - a.$posZ11 = 0; - a.$rand6 = null; - a.$nameSeed = Long_ZERO; - a.$enchantLevels = null; -} -function nms_ContainerEnchantment__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_ContainerEnchantment(); - $java.nms_ContainerEnchantment__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -$java.nms_ContainerEnchantment__init_ = function($this, $par1InventoryPlayer, $par2World, $par3, $par4, $par5) { - var var$6, $var6, $var7; - nms_Container__init_($this); - var$6 = new $java.nms_SlotEnchantmentTable; - var$6.$inventoryTitle = $rt_s(2885); - var$6.$field_94051_e = 1; - var$6.$slotsCount = 1; - var$6.$inventoryContents = $rt_createArray(nms_ItemStack, 1); - var$6.$container = $this; - $this.$tableInventory = var$6; - $this.$rand6 = new ju_Random; - $this.$enchantLevels = $rt_createIntArray(3); - $this.$worldPointer = $par2World; - $this.$posX13 = $par3; - $this.$posY13 = $par4; - $this.$posZ11 = $par5; - $par2World = new $java.nms_SlotEnchantment; - $par2World.$inventory0 = $this.$tableInventory; - $par2World.$slotIndex = 0; - $par2World.$xDisplayPosition = 25; - $par2World.$yDisplayPosition = 47; - $par2World.$container0 = $this; - $par2World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var6 = 0; - while ($var6 < 3) { - $var7 = 0; - while ($var7 < 9) { - $par2World = new $java.nms_Slot; - $par4 = ($var7 + ($var6 * 9 | 0) | 0) + 9 | 0; - $par5 = 8 + ($var7 * 18 | 0) | 0; - $par3 = 84 + ($var6 * 18 | 0) | 0; - $par2World.$inventory0 = $par1InventoryPlayer; - $par2World.$slotIndex = $par4; - $par2World.$xDisplayPosition = $par5; - $par2World.$yDisplayPosition = $par3; - $par2World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var7 = $var7 + 1 | 0; - } - $var6 = $var6 + 1 | 0; - } - $par3 = 0; - while ($par3 < 9) { - $par2World = new $java.nms_Slot; - $par4 = 8 + ($par3 * 18 | 0) | 0; - $par2World.$inventory0 = $par1InventoryPlayer; - $par2World.$slotIndex = $par3; - $par2World.$xDisplayPosition = $par4; - $par2World.$yDisplayPosition = 142; - $par2World.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2World); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $par3 = $par3 + 1 | 0; - } -}; -$java.nms_ContainerEnchantment_addCraftingToCrafters = function($this, $par1ICrafting) { - var var$2; - if (ju_AbstractCollection_contains($this.$crafters, $par1ICrafting)) { - $par1ICrafting = new jl_IllegalArgumentException; - $par1ICrafting.$suppressionEnabled = 1; - $par1ICrafting.$writableStackTrace = 1; - $par1ICrafting.$message = $rt_s(1712); - $rt_throw($par1ICrafting); - } - ju_ArrayList_add($this.$crafters, $par1ICrafting); - nms_Container_getInventory($this); - var$2 = $this.$inventorySlots; - if (0 >= var$2.$size0) { - $par1ICrafting = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1ICrafting); - $rt_throw($par1ICrafting); - } - $java.nms_GuiRepair_sendSlotContents($par1ICrafting, $this, 0, var$2.$array1.data[0].$getStack()); - $java.nms_ContainerEnchantment_detectAndSendChanges($this); -}; -$java.nms_ContainerEnchantment_detectAndSendChanges = function($this) { - var $var1, $var2; - nms_Container_detectAndSendChanges($this); - $var1 = 0; - a: { - while ($var1 < $this.$crafters.$size0) { - $var2 = $this.$crafters; - if ($var1 < 0) - break a; - if ($var1 >= $var2.$size0) - break a; - $var2 = $var2.$array1.data[$var1]; - $var2.$sendProgressBarUpdate($this, 0, $this.$enchantLevels.data[0]); - $var2.$sendProgressBarUpdate($this, 1, $this.$enchantLevels.data[1]); - $var2.$sendProgressBarUpdate($this, 2, $this.$enchantLevels.data[2]); - $var1 = $var1 + 1 | 0; - } - return; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -}; -$java.nms_ContainerEnchantment_updateProgressBar = function($this, $par1, $par2) { - if ($par1 >= 0 && $par1 <= 2) - $this.$enchantLevels.data[$par1] = $par2; -}; -$java.nms_ContainerEnchantment_onCraftMatrixChanged = function($this, $par1IInventory) { - var $var2, $var3, var$4, $var3_0, $var4, $var5, var$8, var$9, var$10, var$11; - a: { - if ($par1IInventory === $this.$tableInventory) { - b: { - $var2 = $par1IInventory.$inventoryContents.data[0]; - if ($var2 !== null) { - nms_Item_$callClinit(); - if (!nms_Item_itemsList.data[$var2.$itemID0].$isItemTool($var2)) - $var3 = 0; - else { - c: { - if ($var2.$stackTagCompound !== null) { - var$4 = $var2.$stackTagCompound.$tagMap; - $var3_0 = jl_String_hashCode($rt_s(1573)); - if (ju_HashMap_findNonNullKeyEntry(var$4, $rt_s(1573), $var3_0 & (var$4.$elementData.data.length - 1 | 0), $var3_0) === null ? 0 : 1) { - $var3 = 1; - break c; - } - } - $var3 = 0; - } - $var3 = $var3 ? 0 : 1; - } - if ($var3) - break b; - } - $var3_0 = 0; - while (true) { - if ($var3_0 >= 3) - break a; - $this.$enchantLevels.data[$var3_0] = 0; - $var3_0 = $var3_0 + 1 | 0; - } - } - $par1IInventory = $this.$rand6; - $this.$nameSeed = Long_or(Long_shl(Long_fromInt(ju_Random_next($par1IInventory, 32)), 32), Long_fromInt(ju_Random_next($par1IInventory, 32))); - if (!$this.$worldPointer.$isRemote) { - $var3 = 0; - $var4 = (-1); - while ($var4 <= 1) { - $var5 = (-1); - while ($var5 <= 1) { - if (!(!$var4 && !$var5) && (nms_World_getBlockId($this.$worldPointer, $this.$posX13 + $var5 | 0, $this.$posY13, $this.$posZ11 + $var4 | 0) ? 0 : 1) && (nms_World_getBlockId($this.$worldPointer, $this.$posX13 + $var5 | 0, $this.$posY13 + 1 | 0, $this.$posZ11 + $var4 | 0) ? 0 : 1)) { - $par1IInventory = $this.$worldPointer; - $var3_0 = $this.$posX13; - var$8 = $var5 * 2 | 0; - $var3_0 = $var3_0 + var$8 | 0; - var$9 = $this.$posY13; - var$10 = $this.$posZ11; - var$11 = $var4 * 2 | 0; - $var3_0 = nms_World_getBlockId($par1IInventory, $var3_0, var$9, var$10 + var$11 | 0); - nms_Block_$callClinit(); - if ($var3_0 == nms_Block_bookShelf.$blockID) - $var3 = $var3 + 1 | 0; - if (nms_World_getBlockId($this.$worldPointer, $this.$posX13 + var$8 | 0, $this.$posY13 + 1 | 0, $this.$posZ11 + var$11 | 0) == nms_Block_bookShelf.$blockID) - $var3 = $var3 + 1 | 0; - if ($var5 && $var4) { - if (nms_World_getBlockId($this.$worldPointer, $this.$posX13 + var$8 | 0, $this.$posY13, $this.$posZ11 + $var4 | 0) == nms_Block_bookShelf.$blockID) - $var3 = $var3 + 1 | 0; - if (nms_World_getBlockId($this.$worldPointer, $this.$posX13 + var$8 | 0, $this.$posY13 + 1 | 0, $this.$posZ11 + $var4 | 0) == nms_Block_bookShelf.$blockID) - $var3 = $var3 + 1 | 0; - if (nms_World_getBlockId($this.$worldPointer, $this.$posX13 + $var5 | 0, $this.$posY13, $this.$posZ11 + var$11 | 0) == nms_Block_bookShelf.$blockID) - $var3 = $var3 + 1 | 0; - if (nms_World_getBlockId($this.$worldPointer, $this.$posX13 + $var5 | 0, $this.$posY13 + 1 | 0, $this.$posZ11 + var$11 | 0) == nms_Block_bookShelf.$blockID) - $var3 = $var3 + 1 | 0; - } - } - $var5 = $var5 + 1 | 0; - } - $var4 = $var4 + 1 | 0; - } - $var3_0 = 0; - while ($var3_0 < 3) { - $this.$enchantLevels.data[$var3_0] = $java.nms_EnchantmentHelper_calcItemStackEnchantability($this.$rand6, $var3_0, $var3, $var2); - $var3_0 = $var3_0 + 1 | 0; - } - $java.nms_ContainerEnchantment_detectAndSendChanges($this); - } - } - } -}; -$java.nms_ContainerEnchantment_enchantItem = function($this, $par1EntityPlayer, $par2) { - var $var3, $var4$array, $var5, $var6, $var7, $var8; - a: { - $var3 = $this.$tableInventory.$inventoryContents.data[0]; - if ($this.$enchantLevels.data[$par2] > 0 && $var3 !== null) { - if ($par1EntityPlayer.$experienceLevel >= $this.$enchantLevels.data[$par2]) - break a; - if ($par1EntityPlayer.$capabilities.$isCreativeMode) - break a; - } - return 0; - } - b: { - if (!$this.$worldPointer.$isRemote) { - $var4$array = $rt_createArray(jl_Object, 10); - $var5 = $var3.$itemID0; - nms_Item_$callClinit(); - $var5 = $var5 != nms_Item_book.$itemID ? 0 : 1; - nms_EntityPlayer_addExperienceLevel($par1EntityPlayer, -$this.$enchantLevels.data[$par2]); - if ($var5) - $var3.$itemID0 = nms_Item_enchantedBook.$itemID; - $var6 = !$var5 ? (-1) : Math.random() * 0.0 | 0; - $var7 = 0; - while (true) { - $par2 = $rt_compare($var7, 0); - if ($par2 >= 0) - break; - if ($var7 < 0) - break b; - if ($par2 >= 0) - break b; - $var8 = $var4$array.data[$var7]; - if (!($var5 && $var7 != $var6)) { - if ($var5) - nms_ItemEnchantedBook_func_92115_a(nms_Item_enchantedBook, $var3, $var8); - else - nms_ItemStack_addEnchantment($var3, $var8.$enchantmentobj, $var8.$enchantmentLevel); - } - $var7 = $var7 + 1 | 0; - } - $java.nms_ContainerEnchantment_onCraftMatrixChanged($this, $this.$tableInventory); - } - return 1; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); -}; -$java.nms_ContainerEnchantment_onCraftGuiClosed = function($this, $par1EntityPlayer) { - var var$2, $var2; - var$2 = $par1EntityPlayer.$inventory; - if (var$2.$itemStack !== null) { - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, var$2.$itemStack, 0); - var$2.$itemStack = null; - } - if (!$this.$worldPointer.$isRemote) { - var$2 = $this.$tableInventory; - if (var$2.$inventoryContents.data[0] === null) - $var2 = null; - else { - $var2 = var$2.$inventoryContents.data[0]; - var$2.$inventoryContents.data[0] = null; - } - if ($var2 !== null) - nms_EntityPlayer_dropPlayerItemWithRandomChoice($par1EntityPlayer, $var2, 0); - } -}; -$java.nms_ContainerEnchantment_canInteractWith = function($this, $par1EntityPlayer) { - var var$2, var$3, var$4, var$5; - var$2 = nms_World_getBlockId($this.$worldPointer, $this.$posX13, $this.$posY13, $this.$posZ11); - nms_Block_$callClinit(); - if (var$2 != nms_Block_enchantmentTable.$blockID) - var$2 = 0; - else { - var$3 = $this.$posX13 + 0.5; - var$4 = $this.$posY13 + 0.5; - var$5 = $this.$posZ11 + 0.5; - var$3 = $par1EntityPlayer.$posX - var$3; - var$4 = $par1EntityPlayer.$posY - var$4; - var$5 = $par1EntityPlayer.$posZ - var$5; - var$2 = var$3 * var$3 + var$4 * var$4 + var$5 * var$5 > 64.0 ? 0 : 1; - } - return var$2; -}; -$java.nms_ContainerEnchantment_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, var$4, $var4, $var5, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - var$4 = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < var$4.$size0) { - $var4 = var$4.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$7 = $var5.$itemID0; - var$8 = $var5.$stackSize; - var$9 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$7; - $var3.$stackSize = var$8; - $var3.$itemDamage = var$9; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if (!$par2) { - $par2 = 1; - var$7 = 37; - var$8 = 1; - $ptr = 1; - continue main; - } - var$4 = $this.$inventorySlots; - if (0 >= var$4.$size0) { - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - } - if (!var$4.$array1.data[0].$getHasStack()) { - var$4 = $this.$inventorySlots; - if (0 >= var$4.$size0) { - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - } - if (var$4.$array1.data[0].$isItemValid($var5)) { - $par2 = $var5.$stackTagCompound === null ? 0 : 1; - if ($par2 && $var5.$stackSize == 1) { - var$4 = $this.$inventorySlots; - if (0 >= var$4.$size0) { - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - } - var$4 = var$4.$array1.data[0]; - var$10 = new nms_ItemStack; - $par2 = $var5.$itemID0; - var$7 = $var5.$stackSize; - var$8 = $var5.$itemDamage; - var$10.$stackSize = 0; - var$10.$itemFrame = null; - var$10.$itemID0 = $par2; - var$10.$stackSize = var$7; - var$10.$itemDamage = var$8; - if (var$10.$itemDamage < 0) - var$10.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - var$10.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - $ptr = 6; - continue main; - } - if ($var5.$stackSize < 1) { - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - } - var$4 = $this.$inventorySlots; - if (0 >= var$4.$size0) { - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - } - var$4 = var$4.$array1.data[0]; - var$10 = new nms_ItemStack; - var$7 = $var5.$itemID0; - var$9 = $var5.$itemDamage; - var$10.$stackSize = 0; - var$10.$itemFrame = null; - var$10.$itemID0 = var$7; - var$10.$stackSize = 1; - var$10.$itemDamage = var$9; - if (var$10.$itemDamage < 0) - var$10.$itemDamage = 0; - $ptr = 5; - continue main; - } - } - return null; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$7, var$8); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 2: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 4; - continue main; - case 3: - $var4.$putStack(var$4); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 4; - case 4: - $var4.$onPickupFromSlot($par1EntityPlayer, $var5); - if ($rt_suspending()) { - break main; - } - return $var3; - case 5: - var$4.$putStack(var$10); - if ($rt_suspending()) { - break main; - } - $var5.$stackSize = $var5.$stackSize - 1 | 0; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - case 6: - var$4.$putStack(var$10); - if ($rt_suspending()) { - break main; - } - $var5.$stackSize = 0; - if ($var5.$stackSize) { - $ptr = 2; - continue main; - } - var$4 = null; - $ptr = 3; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, var$4, $var4, $var5, var$7, var$8, var$9, var$10, $ptr); -}; -function nms_ContainerFurnace() { - var a = this; nms_Container.call(a); - a.$furnace = null; - a.$lastCookTime = 0; - a.$lastBurnTime = 0; - a.$lastItemBurnTime = 0; -} -function nms_ContainerFurnace__init_(var_0, var_1) { - var var_2 = new nms_ContainerFurnace(); - $java.nms_ContainerFurnace__init_(var_2, var_0, var_1); - return var_2; -} -$java.nms_ContainerFurnace__init_ = function($this, $par1InventoryPlayer, $par2TileEntityFurnace) { - var var$3, var$4, $var3, $var4, var$7, var$8, var$9; - nms_Container__init_($this); - $this.$lastCookTime = 0; - $this.$lastBurnTime = 0; - $this.$lastItemBurnTime = 0; - $this.$furnace = $par2TileEntityFurnace; - var$3 = new $java.nms_Slot; - var$3.$inventory0 = $par2TileEntityFurnace; - var$3.$slotIndex = 0; - var$3.$xDisplayPosition = 56; - var$3.$yDisplayPosition = 17; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - var$3 = new $java.nms_Slot; - var$3.$inventory0 = $par2TileEntityFurnace; - var$3.$slotIndex = 1; - var$3.$xDisplayPosition = 56; - var$3.$yDisplayPosition = 53; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - var$3 = new $java.nms_SlotFurnace; - var$4 = $par1InventoryPlayer.$player; - var$3.$inventory0 = $par2TileEntityFurnace; - var$3.$slotIndex = 2; - var$3.$xDisplayPosition = 116; - var$3.$yDisplayPosition = 35; - var$3.$thePlayer6 = var$4; - var$3.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, var$3); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var3 = 0; - while ($var3 < 3) { - $var4 = 0; - while ($var4 < 9) { - $par2TileEntityFurnace = new $java.nms_Slot; - var$7 = ($var4 + ($var3 * 9 | 0) | 0) + 9 | 0; - var$8 = 8 + ($var4 * 18 | 0) | 0; - var$9 = 84 + ($var3 * 18 | 0) | 0; - $par2TileEntityFurnace.$inventory0 = $par1InventoryPlayer; - $par2TileEntityFurnace.$slotIndex = var$7; - $par2TileEntityFurnace.$xDisplayPosition = var$8; - $par2TileEntityFurnace.$yDisplayPosition = var$9; - $par2TileEntityFurnace.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2TileEntityFurnace); - ju_ArrayList_add($this.$inventoryItemStacks, null); - $var4 = $var4 + 1 | 0; - } - $var3 = $var3 + 1 | 0; - } - var$9 = 0; - while (var$9 < 9) { - $par2TileEntityFurnace = new $java.nms_Slot; - $var3 = 8 + (var$9 * 18 | 0) | 0; - $par2TileEntityFurnace.$inventory0 = $par1InventoryPlayer; - $par2TileEntityFurnace.$slotIndex = var$9; - $par2TileEntityFurnace.$xDisplayPosition = $var3; - $par2TileEntityFurnace.$yDisplayPosition = 142; - $par2TileEntityFurnace.$slotNumber = $this.$inventorySlots.$size0; - ju_ArrayList_add($this.$inventorySlots, $par2TileEntityFurnace); - ju_ArrayList_add($this.$inventoryItemStacks, null); - var$9 = var$9 + 1 | 0; - } -}; -$java.nms_ContainerFurnace_addCraftingToCrafters = function($this, $par1ICrafting) { - var var$2; - if (ju_AbstractCollection_contains($this.$crafters, $par1ICrafting)) { - $par1ICrafting = new jl_IllegalArgumentException; - $par1ICrafting.$suppressionEnabled = 1; - $par1ICrafting.$writableStackTrace = 1; - $par1ICrafting.$message = $rt_s(1712); - $rt_throw($par1ICrafting); - } - ju_ArrayList_add($this.$crafters, $par1ICrafting); - nms_Container_getInventory($this); - var$2 = $this.$inventorySlots; - if (0 >= var$2.$size0) { - $par1ICrafting = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($par1ICrafting); - $rt_throw($par1ICrafting); - } - $java.nms_GuiRepair_sendSlotContents($par1ICrafting, $this, 0, var$2.$array1.data[0].$getStack()); - $java.nms_ContainerFurnace_detectAndSendChanges($this); -}; -$java.nms_ContainerFurnace_detectAndSendChanges = function($this) { - var $var1, $var2; - nms_Container_detectAndSendChanges($this); - $var1 = 0; - a: { - while ($var1 < $this.$crafters.$size0) { - $var2 = $this.$crafters; - if ($var1 < 0) - break a; - if ($var1 >= $var2.$size0) - break a; - $var2 = $var2.$array1.data[$var1]; - if ($this.$lastCookTime != $this.$furnace.$furnaceCookTime) - $var2.$sendProgressBarUpdate($this, 0, $this.$furnace.$furnaceCookTime); - if ($this.$lastBurnTime != $this.$furnace.$furnaceBurnTime) - $var2.$sendProgressBarUpdate($this, 1, $this.$furnace.$furnaceBurnTime); - if ($this.$lastItemBurnTime != $this.$furnace.$currentItemBurnTime) - $var2.$sendProgressBarUpdate($this, 2, $this.$furnace.$currentItemBurnTime); - $var1 = $var1 + 1 | 0; - } - $this.$lastCookTime = $this.$furnace.$furnaceCookTime; - $this.$lastBurnTime = $this.$furnace.$furnaceBurnTime; - $this.$lastItemBurnTime = $this.$furnace.$currentItemBurnTime; - return; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -}; -$java.nms_ContainerFurnace_updateProgressBar = function($this, $par1, $par2) { - if (!$par1) - $this.$furnace.$furnaceCookTime = $par2; - if ($par1 == 1) - $this.$furnace.$furnaceBurnTime = $par2; - if ($par1 == 2) - $this.$furnace.$currentItemBurnTime = $par2; -}; -$java.nms_ContainerFurnace_canInteractWith = function($this, $par1EntityPlayer) { - return $java.nms_TileEntityFurnace_isUseableByPlayer($this.$furnace, $par1EntityPlayer); -}; -$java.nms_ContainerFurnace_transferStackInSlot = function($this, $par1EntityPlayer, $par2) { - var $var3, $var4, $var5, var$6, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var3 = null; - $var4 = $this.$inventorySlots; - if ($par2 >= 0 && $par2 < $var4.$size0) { - $var4 = $var4.$array1.data[$par2]; - if ($var4 !== null && $var4.$getHasStack()) { - $var5 = $var4.$getStack(); - $var3 = new nms_ItemStack; - var$6 = $var5.$itemID0; - var$7 = $var5.$stackSize; - var$8 = $var5.$itemDamage; - $var3.$stackSize = 0; - $var3.$itemFrame = null; - $var3.$itemID0 = var$6; - $var3.$stackSize = var$7; - $var3.$itemDamage = var$8; - if ($var3.$itemDamage < 0) - $var3.$itemDamage = 0; - if ($var5.$stackTagCompound !== null) - $var3.$stackTagCompound = nms_NBTTagCompound_copy($var5.$stackTagCompound); - if ($par2 == 2) { - $par2 = 3; - var$6 = 39; - var$7 = 1; - $ptr = 1; - continue main; - } - if ($par2 != 1 && $par2) { - var$9 = $java.nms_FurnaceRecipes_smeltingBase; - nms_Item_$callClinit(); - if ($java.nms_FurnaceRecipes_getSmeltingResult(var$9, nms_Item_itemsList.data[$var5.$itemID0].$itemID) !== null) { - $par2 = 0; - var$6 = 1; - var$7 = 0; - $ptr = 5; - continue main; - } - if ($java.nms_TileEntityFurnace_getItemBurnTime($var5) <= 0 ? 0 : 1) { - $par2 = 1; - var$6 = 2; - var$7 = 0; - $ptr = 7; - continue main; - } - if ($par2 >= 3 && $par2 < 30) { - var$6 = 30; - $par2 = 39; - var$7 = 0; - $ptr = 8; - continue main; - } - if ($par2 >= 30 && $par2 < 39) { - $par2 = 3; - var$6 = 30; - var$7 = 0; - $ptr = 9; - continue main; - } - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - } - $par2 = 3; - var$6 = 39; - var$7 = 0; - $ptr = 2; - continue main; - } - return $var3; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - $rt_throw($par1EntityPlayer); - case 1: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - $java.nms_Slot_onSlotChange($var4, $var5, $var3); - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - case 2: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - case 3: - $var4.$onSlotChanged(); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 6; - continue main; - case 4: - $var4.$putStack(var$10); - if ($rt_suspending()) { - break main; - } - if ($var5.$stackSize == $var3.$stackSize) - return null; - $ptr = 6; - continue main; - case 5: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - case 6: - $var4.$onPickupFromSlot($par1EntityPlayer, $var5); - if ($rt_suspending()) { - break main; - } - return $var3; - case 7: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - case 8: - $tmp = nms_Container_mergeItemStack($this, $var5, var$6, $par2, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - case 9: - $tmp = nms_Container_mergeItemStack($this, $var5, $par2, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $par2 = $tmp; - if (!$par2) - return null; - if ($var5.$stackSize) { - $ptr = 3; - continue main; - } - var$10 = null; - $ptr = 4; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2, $var3, $var4, $var5, var$6, var$7, var$8, var$9, var$10, $ptr); -}; -function nms_EntityDamageSourceIndirect() { - nms_EntityDamageSource.call(this); - this.$indirectEntity = null; -} -$java.nms_EntityDamageSourceIndirect_getSourceOfDamage = function($this) { - return $this.$damageSourceEntity; -}; -$java.nms_EntityDamageSourceIndirect_getEntity = function($this) { - return $this.$indirectEntity; -}; -$java.nms_SlotBeacon = function() { - $java.nms_Slot.call(this); - this.$beacon0 = null; -}; -$java.nms_SlotBeacon_isItemValid = function($this, $par1ItemStack) { - var var$2; - if ($par1ItemStack === null) - var$2 = 0; - else { - var$2 = $par1ItemStack.$itemID0; - nms_Item_$callClinit(); - var$2 = var$2 != nms_Item_emerald.$itemID && $par1ItemStack.$itemID0 != nms_Item_diamond.$itemID && $par1ItemStack.$itemID0 != nms_Item_ingotGold.$itemID && $par1ItemStack.$itemID0 != nms_Item_ingotIron.$itemID ? 0 : 1; - } - return var$2; -}; -$java.nms_SlotBeacon_getSlotStackLimit = function($this) { - return 1; -}; -$java.nms_InventoryRepair = function() { - $java.nms_InventoryBasic.call(this); - this.$theContainer = null; -}; -$java.nms_InventoryRepair_onInventoryChanged = function($this) { - var var$1; - $java.nms_InventoryBasic_onInventoryChanged($this); - var$1 = $this.$theContainer; - nms_Container_detectAndSendChanges(var$1); - if ($this === var$1.$inputSlots) - $java.nms_ContainerRepair_updateRepairOutput(var$1); -}; -$java.nms_SlotRepair = function() { - var a = this; $java.nms_Slot.call(a); - a.$theWorld2 = null; - a.$blockPosX = 0; - a.$blockPosY = 0; - a.$blockPosZ = 0; - a.$anvil = null; -}; -$java.nms_SlotRepair_isItemValid = function($this, $par1ItemStack) { - return 0; -}; -$java.nms_SlotRepair_canTakeStack = function($this, $par1EntityPlayer) { - return !(!$par1EntityPlayer.$capabilities.$isCreativeMode && $par1EntityPlayer.$experienceLevel < $this.$anvil.$maximumCost) && $this.$anvil.$maximumCost > 0 && ($this.$inventory0.$getStackInSlot($this.$slotIndex) === null ? 0 : 1) ? 1 : 0; -}; -$java.nms_SlotRepair_onPickupFromSlot = function($this, $par1EntityPlayer, $par2ItemStack) { - var $var3, $var6, $var4, $var5, var$7, var$8, var$9, var$10, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var6 = $thread.pop();$var3 = $thread.pop();$par2ItemStack = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$par1EntityPlayer.$capabilities.$isCreativeMode) - nms_EntityPlayer_addExperienceLevel($par1EntityPlayer, -$this.$anvil.$maximumCost); - $var3 = $this.$anvil.$inputSlots; - $var6 = 0; - $par2ItemStack = null; - $ptr = 1; - case 1: - $java.nms_InventoryBasic_setInventorySlotContents($var3, $var6, $par2ItemStack); - if ($rt_suspending()) { - break main; - } - if ($this.$anvil.$stackSizeToBeUsedInRepair <= 0) { - $var3 = $this.$anvil.$inputSlots; - $var6 = 1; - $par2ItemStack = null; - $ptr = 2; - continue main; - } - $var3 = $this.$anvil.$inputSlots.$inventoryContents.data[1]; - if ($var3 !== null && $var3.$stackSize > $this.$anvil.$stackSizeToBeUsedInRepair) { - $var3.$stackSize = $var3.$stackSize - $this.$anvil.$stackSizeToBeUsedInRepair | 0; - $par2ItemStack = $this.$anvil.$inputSlots; - $var6 = 1; - $ptr = 4; - continue main; - } - $var3 = $this.$anvil.$inputSlots; - $var6 = 1; - $par2ItemStack = null; - $ptr = 3; - continue main; - case 2: - $java.nms_InventoryBasic_setInventorySlotContents($var3, $var6, $par2ItemStack); - if ($rt_suspending()) { - break main; - } - $this.$anvil.$maximumCost = 0; - if (!$par1EntityPlayer.$capabilities.$isCreativeMode && !$this.$theWorld2.$isRemote) { - $var6 = nms_World_getBlockId($this.$theWorld2, $this.$blockPosX, $this.$blockPosY, $this.$blockPosZ); - nms_Block_$callClinit(); - if ($var6 == nms_Block_anvil.$blockID && Math.random() < 0.11999999731779099) { - $var6 = nms_World_getBlockMetadata($this.$theWorld2, $this.$blockPosX, $this.$blockPosY, $this.$blockPosZ); - $var4 = $var6 & 3; - $var5 = ($var6 >> 2) + 1 | 0; - if ($var5 <= 2) { - $par1EntityPlayer = $this.$theWorld2; - var$7 = $this.$blockPosX; - var$8 = $this.$blockPosY; - var$9 = $this.$blockPosZ; - $var6 = $var4 | $var5 << 2; - $var4 = 2; - $ptr = 5; - continue main; - } - $par1EntityPlayer = $this.$theWorld2; - $var6 = $this.$blockPosX; - $var4 = $this.$blockPosY; - $var5 = $this.$blockPosZ; - var$7 = 0; - var$8 = 0; - var$9 = 3; - $ptr = 6; - continue main; - } - } - if (!$this.$theWorld2.$isRemote) { - $par1EntityPlayer = $this.$theWorld2; - $var6 = 1021; - $var4 = $this.$blockPosX; - $var5 = $this.$blockPosY; - var$8 = $this.$blockPosZ; - var$7 = 0; - $par2ItemStack = null; - var$9 = 0; - if (var$9 < $par1EntityPlayer.$worldAccesses.$size0) { - $var3 = $par1EntityPlayer.$worldAccesses; - if (var$9 >= 0 && var$9 < $var3.$size0) { - $var3 = $var3.$array1.data[var$9]; - $ptr = 7; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1EntityPlayer); - $rt_throw($par1EntityPlayer); - } - } - return; - case 3: - $java.nms_InventoryBasic_setInventorySlotContents($var3, $var6, $par2ItemStack); - if ($rt_suspending()) { - break main; - } - $this.$anvil.$maximumCost = 0; - if (!$par1EntityPlayer.$capabilities.$isCreativeMode && !$this.$theWorld2.$isRemote) { - $var6 = nms_World_getBlockId($this.$theWorld2, $this.$blockPosX, $this.$blockPosY, $this.$blockPosZ); - nms_Block_$callClinit(); - if ($var6 == nms_Block_anvil.$blockID && Math.random() < 0.11999999731779099) { - $var6 = nms_World_getBlockMetadata($this.$theWorld2, $this.$blockPosX, $this.$blockPosY, $this.$blockPosZ); - $var4 = $var6 & 3; - $var5 = ($var6 >> 2) + 1 | 0; - if ($var5 <= 2) { - $par1EntityPlayer = $this.$theWorld2; - var$7 = $this.$blockPosX; - var$8 = $this.$blockPosY; - var$9 = $this.$blockPosZ; - $var6 = $var4 | $var5 << 2; - $var4 = 2; - $ptr = 5; - continue main; - } - $par1EntityPlayer = $this.$theWorld2; - $var6 = $this.$blockPosX; - $var4 = $this.$blockPosY; - $var5 = $this.$blockPosZ; - var$7 = 0; - var$8 = 0; - var$9 = 3; - $ptr = 6; - continue main; - } - } - if (!$this.$theWorld2.$isRemote) { - $par1EntityPlayer = $this.$theWorld2; - $var6 = 1021; - $var4 = $this.$blockPosX; - $var5 = $this.$blockPosY; - var$8 = $this.$blockPosZ; - var$7 = 0; - $par2ItemStack = null; - var$9 = 0; - if (var$9 < $par1EntityPlayer.$worldAccesses.$size0) { - $var3 = $par1EntityPlayer.$worldAccesses; - if (var$9 >= 0 && var$9 < $var3.$size0) { - $var3 = $var3.$array1.data[var$9]; - $ptr = 7; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1EntityPlayer); - $rt_throw($par1EntityPlayer); - } - } - return; - case 4: - $java.nms_InventoryBasic_setInventorySlotContents($par2ItemStack, $var6, $var3); - if ($rt_suspending()) { - break main; - } - $this.$anvil.$maximumCost = 0; - if (!$par1EntityPlayer.$capabilities.$isCreativeMode && !$this.$theWorld2.$isRemote) { - $var6 = nms_World_getBlockId($this.$theWorld2, $this.$blockPosX, $this.$blockPosY, $this.$blockPosZ); - nms_Block_$callClinit(); - if ($var6 == nms_Block_anvil.$blockID && Math.random() < 0.11999999731779099) { - $var6 = nms_World_getBlockMetadata($this.$theWorld2, $this.$blockPosX, $this.$blockPosY, $this.$blockPosZ); - $var4 = $var6 & 3; - $var5 = ($var6 >> 2) + 1 | 0; - if ($var5 <= 2) { - $par1EntityPlayer = $this.$theWorld2; - var$7 = $this.$blockPosX; - var$8 = $this.$blockPosY; - var$9 = $this.$blockPosZ; - $var6 = $var4 | $var5 << 2; - $var4 = 2; - $ptr = 5; - continue main; - } - $par1EntityPlayer = $this.$theWorld2; - $var6 = $this.$blockPosX; - $var4 = $this.$blockPosY; - $var5 = $this.$blockPosZ; - var$7 = 0; - var$8 = 0; - var$9 = 3; - $ptr = 6; - continue main; - } - } - if (!$this.$theWorld2.$isRemote) { - $par1EntityPlayer = $this.$theWorld2; - $var6 = 1021; - $var4 = $this.$blockPosX; - $var5 = $this.$blockPosY; - var$8 = $this.$blockPosZ; - var$7 = 0; - $par2ItemStack = null; - var$9 = 0; - if (var$9 < $par1EntityPlayer.$worldAccesses.$size0) { - $var3 = $par1EntityPlayer.$worldAccesses; - if (var$9 >= 0 && var$9 < $var3.$size0) { - $var3 = $var3.$array1.data[var$9]; - $ptr = 7; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1EntityPlayer); - $rt_throw($par1EntityPlayer); - } - } - return; - case 5: - nms_World_setBlockMetadataWithNotify($par1EntityPlayer, var$7, var$8, var$9, $var6, $var4); - if ($rt_suspending()) { - break main; - } - $par1EntityPlayer = $this.$theWorld2; - $var6 = 1021; - $var4 = $this.$blockPosX; - $var5 = $this.$blockPosY; - var$8 = $this.$blockPosZ; - var$9 = 0; - $par2ItemStack = null; - var$10 = 0; - if (var$10 >= $par1EntityPlayer.$worldAccesses.$size0) - return; - $var3 = $par1EntityPlayer.$worldAccesses; - if (var$10 >= 0 && var$10 < $var3.$size0) { - $var3 = $var3.$array1.data[var$10]; - $ptr = 8; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1EntityPlayer); - $rt_throw($par1EntityPlayer); - case 6: - nms_World_setBlock($par1EntityPlayer, $var6, $var4, $var5, var$7, var$8, var$9); - if ($rt_suspending()) { - break main; - } - $par1EntityPlayer = $this.$theWorld2; - var$7 = 1020; - var$8 = $this.$blockPosX; - var$9 = $this.$blockPosY; - var$10 = $this.$blockPosZ; - $var6 = 0; - $par2ItemStack = null; - $var4 = 0; - if ($var4 >= $par1EntityPlayer.$worldAccesses.$size0) - return; - $var3 = $par1EntityPlayer.$worldAccesses; - if ($var4 >= 0 && $var4 < $var3.$size0) { - $var3 = $var3.$array1.data[$var4]; - $ptr = 9; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1EntityPlayer); - $rt_throw($par1EntityPlayer); - case 7: - nms_RenderGlobal_playAuxSFX($var3, $par2ItemStack, $var6, $var4, $var5, var$8, var$7); - if ($rt_suspending()) { - break main; - } - var$9 = var$9 + 1 | 0; - if (var$9 >= $par1EntityPlayer.$worldAccesses.$size0) - return; - $var3 = $par1EntityPlayer.$worldAccesses; - if (var$9 >= 0 && var$9 < $var3.$size0) { - $var3 = $var3.$array1.data[var$9]; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1EntityPlayer); - $rt_throw($par1EntityPlayer); - case 8: - nms_RenderGlobal_playAuxSFX($var3, $par2ItemStack, $var6, $var4, $var5, var$8, var$9); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - if (var$10 >= $par1EntityPlayer.$worldAccesses.$size0) - return; - $var3 = $par1EntityPlayer.$worldAccesses; - if (var$10 >= 0 && var$10 < $var3.$size0) { - $var3 = $var3.$array1.data[var$10]; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1EntityPlayer); - $rt_throw($par1EntityPlayer); - case 9: - nms_RenderGlobal_playAuxSFX($var3, $par2ItemStack, var$7, var$8, var$9, var$10, $var6); - if ($rt_suspending()) { - break main; - } - $var4 = $var4 + 1 | 0; - if ($var4 >= $par1EntityPlayer.$worldAccesses.$size0) - return; - $var3 = $par1EntityPlayer.$worldAccesses; - if ($var4 >= 0 && $var4 < $var3.$size0) { - $var3 = $var3.$array1.data[$var4]; - continue main; - } - $par1EntityPlayer = new jl_IndexOutOfBoundsException; - $par1EntityPlayer.$suppressionEnabled = 1; - $par1EntityPlayer.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($par1EntityPlayer); - $rt_throw($par1EntityPlayer); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2ItemStack, $var3, $var6, $var4, $var5, var$7, var$8, var$9, var$10, $ptr); -}; -$java.nms_SlotMerchantResult = function() { - var a = this; $java.nms_Slot.call(a); - a.$theMerchantInventory0 = null; - a.$thePlayer5 = null; - a.$field_75231_g = 0; - a.$theMerchant1 = null; -}; -$java.nms_SlotMerchantResult_isItemValid = function($this, $par1ItemStack) { - return 0; -}; -$java.nms_SlotMerchantResult_decrStackSize = function($this, $par1) { - var 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();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$inventory0.$getStackInSlot($this.$slotIndex) === null ? 0 : 1) { - var$2 = $this.$field_75231_g; - var$3 = $this.$inventory0.$getStackInSlot($this.$slotIndex).$stackSize; - if ($par1 < var$3) - var$3 = $par1; - $this.$field_75231_g = var$2 + var$3 | 0; - } - var$4 = $this.$inventory0; - var$2 = $this.$slotIndex; - $ptr = 1; - case 1: - $tmp = var$4.$decrStackSize(var$2, $par1); - if ($rt_suspending()) { - break main; - } - var$4 = $tmp; - return var$4; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, var$3, var$4, $ptr); -}; -$java.nms_SlotMerchantResult_onCrafting = function($this, $par1ItemStack, $par2) { - var var$3, var$4; - $this.$field_75231_g = $this.$field_75231_g + $par2 | 0; - var$3 = $this.$thePlayer5.$worldObj; - var$4 = $this.$thePlayer5; - nms_Item_$callClinit(); - nms_Item_itemsList.data[$par1ItemStack.$itemID0].$onCreated($par1ItemStack, var$3, var$4); - $this.$field_75231_g = 0; -}; -$java.nms_SlotMerchantResult_onCrafting0 = function($this, $par1ItemStack) { - var var$2, var$3; - var$2 = $this.$thePlayer5.$worldObj; - var$3 = $this.$thePlayer5; - nms_Item_$callClinit(); - nms_Item_itemsList.data[$par1ItemStack.$itemID0].$onCreated($par1ItemStack, var$2, var$3); - $this.$field_75231_g = 0; -}; -$java.nms_SlotMerchantResult_onPickupFromSlot = function($this, $par1EntityPlayer, $par2ItemStack) { - var $var4, $var3, $var5; - $par1EntityPlayer = $this.$thePlayer5.$worldObj; - $var4 = $this.$thePlayer5; - nms_Item_$callClinit(); - nms_Item_itemsList.data[$par2ItemStack.$itemID0].$onCreated($par2ItemStack, $par1EntityPlayer, $var4); - $this.$field_75231_g = 0; - $var3 = $this.$theMerchantInventory0.$currentRecipe; - if ($var3 !== null) { - $var4 = $this.$theMerchantInventory0.$theInventory.data[0]; - $var5 = $this.$theMerchantInventory0.$theInventory.data[1]; - if (!(!$java.nms_SlotMerchantResult_func_75230_a($this, $var3, $var4, $var5) && !$java.nms_SlotMerchantResult_func_75230_a($this, $var3, $var5, $var4))) { - if ($var4 !== null && $var4.$stackSize <= 0) - $var4 = null; - if ($var5 !== null && $var5.$stackSize <= 0) - $var5 = null; - $java.nms_InventoryMerchant_setInventorySlotContents($this.$theMerchantInventory0, 0, $var4); - $java.nms_InventoryMerchant_setInventorySlotContents($this.$theMerchantInventory0, 1, $var5); - $this.$theMerchant1.$useRecipe($var3); - } - } -}; -$java.nms_SlotMerchantResult_func_75230_a = function($this, $par1MerchantRecipe, $par2ItemStack, $par3ItemStack) { - var $var4, $var5; - $var4 = $par1MerchantRecipe.$itemToBuy; - $var5 = $par1MerchantRecipe.$secondItemToBuy; - if ($par2ItemStack !== null && $par2ItemStack.$itemID0 == $var4.$itemID0) { - if ($var5 !== null && $par3ItemStack !== null && $var5.$itemID0 == $par3ItemStack.$itemID0) { - $par2ItemStack.$stackSize = $par2ItemStack.$stackSize - $var4.$stackSize | 0; - $par3ItemStack.$stackSize = $par3ItemStack.$stackSize - $var5.$stackSize | 0; - return 1; - } - if ($var5 === null && $par3ItemStack === null) { - $par2ItemStack.$stackSize = $par2ItemStack.$stackSize - $var4.$stackSize | 0; - return 1; - } - } - return 0; -}; -$java.nms_SlotBrewingStandPotion = function() { - $java.nms_Slot.call(this); - this.$player0 = null; -}; -$java.nms_SlotBrewingStandPotion_isItemValid = function($this, $par1ItemStack) { - return $java.nms_SlotBrewingStandPotion_canHoldPotion($par1ItemStack); -}; -$java.nms_SlotBrewingStandPotion_getSlotStackLimit = function($this) { - return 1; -}; -$java.nms_SlotBrewingStandPotion_onPickupFromSlot = function($this, $par1EntityPlayer, $par2ItemStack) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2ItemStack = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$3 = $par2ItemStack.$itemID0; - nms_Item_$callClinit(); - if (var$3 == nms_Item_potion.$itemID && $par2ItemStack.$itemDamage > 0) { - $par1EntityPlayer = $this.$player0; - nms_AchievementList_$callClinit(); - $par1EntityPlayer.$addStat(nms_AchievementList_potion, 1); - } - $par1EntityPlayer = $this.$inventory0; - $ptr = 1; - case 1: - $par1EntityPlayer.$onInventoryChanged(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2ItemStack, var$3, $ptr); -}; -$java.nms_SlotBrewingStandPotion_canHoldPotion = function($par0ItemStack) { - var var$2; - a: { - b: { - if ($par0ItemStack !== null) { - var$2 = $par0ItemStack.$itemID0; - nms_Item_$callClinit(); - if (var$2 == nms_Item_potion.$itemID) - break b; - if ($par0ItemStack.$itemID0 == nms_Item_glassBottle.$itemID) - break b; - } - var$2 = 0; - break a; - } - var$2 = 1; - } - return var$2; -}; -$java.nms_SlotBrewingStandIngredient = function() { - $java.nms_Slot.call(this); - this.$brewingStand0 = null; -}; -$java.nms_SlotBrewingStandIngredient_isItemValid = function($this, $par1ItemStack) { - var var$2; - if ($par1ItemStack === null) - var$2 = 0; - else { - nms_Item_$callClinit(); - var$2 = nms_Item_itemsList.data[$par1ItemStack.$itemID0].$potionEffect === null ? 0 : 1; - } - return var$2; -}; -$java.nms_SlotBrewingStandIngredient_getSlotStackLimit = function($this) { - return 64; -}; -$java.nms_SlotEnchantmentTable = function() { - $java.nms_InventoryBasic.call(this); - this.$container = null; -}; -$java.nms_SlotEnchantmentTable_getInventoryStackLimit = function($this) { - return 1; -}; -$java.nms_SlotEnchantmentTable_onInventoryChanged = function($this) { - $java.nms_InventoryBasic_onInventoryChanged($this); - $java.nms_ContainerEnchantment_onCraftMatrixChanged($this.$container, $this); -}; -$java.nms_SlotEnchantment = function() { - $java.nms_Slot.call(this); - this.$container0 = null; -}; -$java.nms_SlotEnchantment_isItemValid = function($this, $par1ItemStack) { - return 1; -}; -$java.nms_SlotFurnace = function() { - var a = this; $java.nms_Slot.call(a); - a.$thePlayer6 = null; - a.$field_75228_b = 0; -}; -$java.nms_SlotFurnace_isItemValid = function($this, $par1ItemStack) { - return 0; -}; -$java.nms_SlotFurnace_decrStackSize = function($this, $par1) { - var 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();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$inventory0.$getStackInSlot($this.$slotIndex) === null ? 0 : 1) { - var$2 = $this.$field_75228_b; - var$3 = $this.$inventory0.$getStackInSlot($this.$slotIndex).$stackSize; - if ($par1 < var$3) - var$3 = $par1; - $this.$field_75228_b = var$2 + var$3 | 0; - } - var$4 = $this.$inventory0; - var$2 = $this.$slotIndex; - $ptr = 1; - case 1: - $tmp = var$4.$decrStackSize(var$2, $par1); - if ($rt_suspending()) { - break main; - } - var$4 = $tmp; - return var$4; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, var$2, var$3, var$4, $ptr); -}; -$java.nms_SlotFurnace_onPickupFromSlot = function($this, $par1EntityPlayer, $par2ItemStack) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2ItemStack = $thread.pop();$par1EntityPlayer = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $java.nms_SlotFurnace_onCrafting($this, $par2ItemStack); - $par1EntityPlayer = $this.$inventory0; - $ptr = 1; - case 1: - $par1EntityPlayer.$onInventoryChanged(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1EntityPlayer, $par2ItemStack, $ptr); -}; -$java.nms_SlotFurnace_onCrafting0 = function($this, $par1ItemStack, $par2) { - $this.$field_75228_b = $this.$field_75228_b + $par2 | 0; - $java.nms_SlotFurnace_onCrafting($this, $par1ItemStack); -}; -$java.nms_SlotFurnace_onCrafting = function($this, $par1ItemStack) { - var var$2, var$3, $var4, $var3, var$6, $var4_0, var$8; - a: { - var$2 = $this.$thePlayer6.$worldObj; - var$3 = $this.$thePlayer6; - nms_Item_$callClinit(); - nms_Item_itemsList.data[$par1ItemStack.$itemID0].$onCreated($par1ItemStack, var$2, var$3); - if (!$this.$thePlayer6.$worldObj.$isRemote) { - $var4 = $this.$field_75228_b; - $var3 = $java.nms_FurnaceRecipes_getExperience($java.nms_FurnaceRecipes_smeltingBase, $par1ItemStack.$itemID0); - if ($var3 === 0.0) - $var4 = 0; - else if ($var3 < 1.0) { - $var3 = $var4 * $var3; - var$6 = $var3 | 0; - $var4_0 = $rt_compare($var3, var$6); - $var4 = $var4_0 >= 0 ? var$6 : var$6 - 1 | 0; - if ($var4_0 > 0) - var$6 = var$6 + 1 | 0; - if ($var4 < var$6 && jl_Math_randomImpl() < $var3 - $var4) - $var4 = $var4 + 1 | 0; - } - while (true) { - if ($var4 <= 0) - break a; - $var4_0 = nms_EntityXPOrb_getXPSplit($var4); - $var4 = $var4 - $var4_0 | 0; - var$2 = $this.$thePlayer6.$worldObj; - var$8 = nms_EntityXPOrb__init_0($this.$thePlayer6.$worldObj, $this.$thePlayer6.$posX, $this.$thePlayer6.$posY + 0.5, $this.$thePlayer6.$posZ + 0.5, $var4_0); - $var4_0 = nms_World_spawnEntityInWorld(var$2, var$8); - var$3 = var$2.$entityList; - ju_HashMap_putImpl(var$3.$backingMap, var$8, var$3); - if (!$var4_0) { - var$2 = var$2.$entitySpawnQueue; - ju_HashMap_putImpl(var$2.$backingMap, var$8, var$2); - } - } - } - } - $this.$field_75228_b = 0; - if ($par1ItemStack.$itemID0 == nms_Item_ingotIron.$itemID) { - var$2 = $this.$thePlayer6; - nms_AchievementList_$callClinit(); - var$2.$addStat(nms_AchievementList_acquireIron, 1); - } - if ($par1ItemStack.$itemID0 == nms_Item_fishCooked.$itemID) { - $par1ItemStack = $this.$thePlayer6; - nms_AchievementList_$callClinit(); - $par1ItemStack.$addStat(nms_AchievementList_cookFish, 1); - } -}; -function cjj_DeflaterOutputStream() { - var a = this; ji_FilterOutputStream.call(a); - a.$deflater = null; - a.$buffer4 = null; - a.$closed0 = 0; - a.$syncFlush = 0; - a.$buf10 = null; - a.$mydeflater = 0; - a.$close_out = 0; -} -$java.cjj_DeflaterOutputStream__init_ = function(var_0, var_1, var_2, var_3) { - var var_4 = new cjj_DeflaterOutputStream(); - cjj_DeflaterOutputStream__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -}; -function cjj_DeflaterOutputStream__init_($this, $out, $deflater, $size, $close_out) { - $this.$out = $out; - $this.$closed0 = 0; - $this.$syncFlush = 0; - $this.$buf10 = $rt_createByteArray(1); - $this.$mydeflater = 0; - $this.$close_out = 1; - if ($out !== null && $deflater !== null) { - if ($size > 0) { - $this.$deflater = $deflater; - $this.$buffer4 = $rt_createByteArray($size); - $this.$close_out = $close_out; - return; - } - $deflater = new jl_IllegalArgumentException; - $deflater.$suppressionEnabled = 1; - $deflater.$writableStackTrace = 1; - $deflater.$message = $rt_s(351); - $rt_throw($deflater); - } - $out = new jl_NullPointerException; - $out.$suppressionEnabled = 1; - $out.$writableStackTrace = 1; - $rt_throw($out); -} -$java.cjj_DeflaterOutputStream_write = function($this, $b) { - $this.$buf10.data[0] = ($b & 255) << 24 >> 24; - $java.cjj_DeflaterOutputStream_write0($this, $this.$buf10, 0, 1); -}; -$java.cjj_DeflaterOutputStream_write0 = function($this, $b, $off, $len) { - var var$4, $flush, $err, var$7; - if ($this.$deflater.$finished0) { - var$4 = new ji_IOException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - var$4.$message = $rt_s(2886); - $rt_throw(var$4); - } - $flush = $off >= 0 ? 0 : 1; - $err = $len >= 0 ? 0 : 1; - var$7 = $b.data; - if ($flush | $err | (($off + $len | 0) <= var$7.length ? 0 : 1)) { - var$4 = new jl_IndexOutOfBoundsException; - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - $rt_throw(var$4); - } - if (!$len) - return; - $flush = !$this.$syncFlush ? 0 : 2; - cjj_ZStream_setInput($this.$deflater, $b, $off, $len, 1); - a: { - while (true) { - if ($this.$deflater.$avail_in <= 0) - break a; - if ($java.cjj_DeflaterOutputStream_deflate($this, $flush) == 1) - break; - } - } -}; -$java.cjj_DeflaterOutputStream_finish = function($this) { - while (!$this.$deflater.$finished0) { - $java.cjj_DeflaterOutputStream_deflate($this, 4); - } -}; -$java.cjj_DeflaterOutputStream_close = function($this) { - if (!$this.$closed0) { - while (!$this.$deflater.$finished0) { - $java.cjj_DeflaterOutputStream_deflate($this, 4); - } - if ($this.$mydeflater) - $java.cjj_Deflater_end($this.$deflater); - if ($this.$close_out) - $this.$out.$close(); - $this.$closed0 = 1; - } -}; -$java.cjj_DeflaterOutputStream_deflate = function($this, $flush) { - var var$2, var$3, $len, $err; - var$2 = $this.$deflater; - var$3 = $this.$buffer4; - $len = $this.$buffer4.data.length; - var$2.$next_out = var$3; - var$2.$next_out_index = 0; - var$2.$avail_out = $len; - var$2 = $this.$deflater; - if (var$2.$dstate === null) - $err = (-2); - else { - $err = $java.cjj_Deflate_deflate(var$2.$dstate, $flush); - if ($err == 1) - var$2.$finished0 = 1; - } - a: { - b: { - switch ($err) { - case -5: - if ($this.$deflater.$avail_in > 0) - break b; - if ($flush == 4) - break b; - else - break a; - case 0: - case 1: - break; - default: - break b; - } - break a; - } - var$2 = new ji_IOException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - var$2.$message = $rt_s(2887); - $rt_throw(var$2); - } - $len = $this.$deflater.$next_out_index; - if ($len > 0) - $this.$out.$write2($this.$buffer4, 0, $len); - return $err; -}; -$java.cjj_DeflaterOutputStream_flush = function($this) { - var $err; - a: { - if ($this.$syncFlush && !$this.$deflater.$finished0) - while (true) { - $err = $java.cjj_DeflaterOutputStream_deflate($this, 2); - if ($this.$deflater.$next_out_index < $this.$buffer4.data.length) - break; - if ($err == 1) - break a; - } - } - $this.$out.$flush(); -}; -function cjj_GZIPOutputStream() { - cjj_DeflaterOutputStream.call(this); -} -function cjj_Deflater() { - cjj_ZStream.call(this); - this.$finished0 = 0; -} -$java.cjj_Deflater__init_ = function() { - var var_0 = new cjj_Deflater(); - cjj_Deflater__init_(var_0); - return var_0; -}; -function cjj_Deflater__init_0(var_0, var_1, var_2) { - var var_3 = new cjj_Deflater(); - $java.cjj_Deflater__init_0(var_3, var_0, var_1, var_2); - return var_3; -} -function cjj_Deflater__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.$finished0 = 0; -} -$java.cjj_Deflater__init_0 = function($this, $level, $bits, $nowrap) { - var var$4, $ret, var$6, var$7; - var$4 = new cjj_Adler32; - var$4.$s1 = Long_fromInt(1); - var$4.$s2 = Long_ZERO; - $this.$adler = var$4; - $this.$finished0 = 0; - $ret = $java.cjj_Deflater_init($this, $level, $bits, $nowrap); - if (!$ret) - return; - var$4 = new cjj_GZIPException; - var$6 = new jl_StringBuilder; - var$6.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert0(var$6, var$6.$length, $ret, 10); - jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(48)); - var$7 = $this.$msg; - jl_AbstractStringBuilder_insert(var$6, var$6.$length, var$7); - var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length); - var$4.$suppressionEnabled = 1; - var$4.$writableStackTrace = 1; - var$4.$message = var$7; - $rt_throw(var$4); -}; -$java.cjj_Deflater_init = function($this, $level, $bits, $nowrap) { - var var$4; - $this.$finished0 = 0; - $this.$dstate = $java.cjj_Deflate__init_($this); - var$4 = $this.$dstate; - if ($nowrap) - $bits = -$bits; - return $java.cjj_Deflate_deflateInit(var$4, $level, 8, $bits, 8, 0); -}; -$java.cjj_Deflater_deflate = function($this, $flush) { - var $ret; - if ($this.$dstate === null) - return (-2); - $ret = $java.cjj_Deflate_deflate($this.$dstate, $flush); - if ($ret == 1) - $this.$finished0 = 1; - return $ret; -}; -$java.cjj_Deflater_end = function($this) { - var $ret; - $this.$finished0 = 1; - if ($this.$dstate === null) - return (-2); - $ret = $java.cjj_Deflate_deflateEnd($this.$dstate); - $this.$dstate = null; - $this.$next_in = null; - $this.$next_out = null; - $this.$msg = null; - return $ret; -}; -$java.cjj_Deflater_finished = function($this) { - return $this.$finished0; -}; -$java.nms_NibbleArray = function() { - var a = this; jl_Object.call(a); - a.$data12 = null; - a.$depthBits = 0; - a.$depthBitsPlusFour = 0; -}; -$java.nms_NibbleArray_get = function($this, $par1, $par2, $par3) { - var $var4, $var5; - $var4 = $par2 << $this.$depthBitsPlusFour | $par3 << $this.$depthBits | $par1; - $var5 = $var4 >> 1; - return !($var4 & 1) ? $this.$data12.data[$var5] & 15 : $this.$data12.data[$var5] >> 4 & 15; -}; -$java.nms_NibbleArray_set = function($this, $par1, $par2, $par3, $par4) { - var $var5, $var6; - $var5 = $par2 << $this.$depthBitsPlusFour | $par3 << $this.$depthBits | $par1; - $var6 = $var5 >> 1; - if (!($var5 & 1)) - $this.$data12.data[$var6] = ($this.$data12.data[$var6] & 240 | $par4 & 15) << 24 >> 24; - else - $this.$data12.data[$var6] = ($this.$data12.data[$var6] & 15 | ($par4 & 15) << 4) << 24 >> 24; -}; -function nms_FurnaceRecipes() { - var a = this; jl_Object.call(a); - a.$smeltingList = null; - a.$experienceList = null; -} -$java.nms_FurnaceRecipes_smeltingBase = null; -$java.nms_FurnaceRecipes__init_ = function() { - var var_0 = new nms_FurnaceRecipes(); - nms_FurnaceRecipes__init_(var_0); - return var_0; -}; -function nms_FurnaceRecipes__init_($this) { - var var$1, var$2, var$3, var$4, var$5; - $this.$smeltingList = ju_HashMap__init_1(16, 0.75); - $this.$experienceList = ju_HashMap__init_1(16, 0.75); - nms_Block_$callClinit(); - var$1 = nms_Block_oreIron.$blockID; - var$2 = new nms_ItemStack; - nms_Item_$callClinit(); - var$3 = nms_Item_ingotIron.$itemID; - var$2.$stackSize = 0; - var$2.$itemFrame = null; - var$2.$itemID0 = var$3; - var$2.$stackSize = 1; - var$2.$itemDamage = 0; - if (var$2.$itemDamage < 0) - var$2.$itemDamage = 0; - ju_HashMap_putImpl($this.$smeltingList, jl_Integer_valueOf(var$1), var$2); - var$4 = $this.$experienceList; - var$2 = jl_Integer_valueOf(var$2.$itemID0); - var$5 = new jl_Float; - var$5.$value3 = 0.699999988079071; - ju_HashMap_putImpl(var$4, var$2, var$5); - var$1 = nms_Block_oreGold.$blockID; - var$4 = new nms_ItemStack; - var$3 = nms_Item_ingotGold.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - ju_HashMap_putImpl($this.$smeltingList, jl_Integer_valueOf(var$1), var$4); - var$2 = $this.$experienceList; - var$4 = jl_Integer_valueOf(var$4.$itemID0); - var$5 = new jl_Float; - var$5.$value3 = 1.0; - ju_HashMap_putImpl(var$2, var$4, var$5); - var$1 = nms_Block_oreDiamond.$blockID; - var$4 = new nms_ItemStack; - var$3 = nms_Item_diamond.$itemID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - ju_HashMap_putImpl($this.$smeltingList, jl_Integer_valueOf(var$1), var$4); - var$2 = $this.$experienceList; - var$4 = jl_Integer_valueOf(var$4.$itemID0); - var$5 = new jl_Float; - var$5.$value3 = 1.0; - ju_HashMap_putImpl(var$2, var$4, var$5); - var$1 = nms_Block_sand.$blockID; - var$4 = new nms_ItemStack; - var$3 = nms_Block_glass.$blockID; - var$4.$stackSize = 0; - var$4.$itemFrame = null; - var$4.$itemID0 = var$3; - var$4.$stackSize = 1; - var$4.$itemDamage = 0; - if (var$4.$itemDamage < 0) - var$4.$itemDamage = 0; - $java.nms_FurnaceRecipes_addSmelting($this, var$1, var$4, 0.10000000149011612); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Item_porkRaw.$itemID, nms_ItemStack__init_4(nms_Item_porkCooked.$itemID, 1, 0), 0.3499999940395355); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Item_beefRaw.$itemID, nms_ItemStack__init_2(nms_Item_beefCooked), 0.3499999940395355); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Item_chickenRaw.$itemID, nms_ItemStack__init_2(nms_Item_chickenCooked), 0.3499999940395355); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Item_fishRaw.$itemID, nms_ItemStack__init_2(nms_Item_fishCooked), 0.3499999940395355); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Block_cobblestone.$blockID, nms_ItemStack__init_7(nms_Block_stone), 0.10000000149011612); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Item_clay.$itemID, nms_ItemStack__init_2(nms_Item_brick), 0.30000001192092896); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Block_cactus.$blockID, nms_ItemStack__init_5(nms_Item_dyePowder, 1, 2), 0.20000000298023224); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Block_wood.$blockID, nms_ItemStack__init_5(nms_Item_coal, 1, 1), 0.15000000596046448); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Block_oreEmerald.$blockID, nms_ItemStack__init_2(nms_Item_emerald), 1.0); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Item_potato.$itemID, nms_ItemStack__init_2(nms_Item_bakedPotato), 0.3499999940395355); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Block_netherrack.$blockID, nms_ItemStack__init_2(nms_Item_netherrackBrick), 0.10000000149011612); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Block_oreCoal.$blockID, nms_ItemStack__init_2(nms_Item_coal), 0.10000000149011612); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Block_oreRedstone.$blockID, nms_ItemStack__init_2(nms_Item_redstone), 0.699999988079071); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Block_oreLapis.$blockID, nms_ItemStack__init_5(nms_Item_dyePowder, 1, 4), 0.20000000298023224); - $java.nms_FurnaceRecipes_addSmelting($this, nms_Block_oreNetherQuartz.$blockID, nms_ItemStack__init_2(nms_Item_netherQuartz), 0.20000000298023224); -} -$java.nms_FurnaceRecipes_addSmelting = function($this, $par1, $par2ItemStack, $par3) { - var var$4, var$5; - ju_HashMap_putImpl($this.$smeltingList, jl_Integer_valueOf($par1), $par2ItemStack); - var$4 = $this.$experienceList; - $par2ItemStack = jl_Integer_valueOf($par2ItemStack.$itemID0); - var$5 = new jl_Float; - var$5.$value3 = $par3; - ju_HashMap_putImpl(var$4, $par2ItemStack, var$5); -}; -$java.nms_FurnaceRecipes_getSmeltingResult = function($this, $par1) { - var var$2, var$3, var$4; - var$2 = $this.$smeltingList; - var$3 = jl_Integer_valueOf($par1); - 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; - } - } - return var$2 === null ? null : var$2.$value0; -}; -$java.nms_FurnaceRecipes_getExperience = function($this, $par1) { - var var$2, var$3, var$4, var$5, var$6; - var$2 = $this.$experienceList; - var$3 = jl_Integer_valueOf($par1); - 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)) - var$5 = 0.0; - else { - var$2 = $this.$experienceList; - var$3 = jl_Integer_valueOf($par1); - if (var$3 !== null) { - var$6 = jl_Integer_hashCode(var$3); - var$2 = ju_HashMap_findNonNullKeyEntry(var$2, var$3, var$6 & (var$2.$elementData.data.length - 1 | 0), var$6); - } else { - var$2 = var$2.$elementData.data[0]; - while (var$2 !== null && var$2.$key !== null) { - var$2 = var$2.$next1; - } - } - var$5 = (var$2 === null ? null : var$2.$value0).$value3; - } - return var$5; -}; -function nms_FurnaceRecipes__clinit_() { - $java.nms_FurnaceRecipes_smeltingBase = $java.nms_FurnaceRecipes__init_(); -} -function nms_EnumCreatureAttribute() { - jl_Enum.call(this); -} -var nms_EnumCreatureAttribute_UNDEFINED = null; -var nms_EnumCreatureAttribute_UNDEAD = null; -var nms_EnumCreatureAttribute_ARTHROPOD = null; -$java.nms_EnumCreatureAttribute_$VALUES = null; -function nms_EnumCreatureAttribute__clinit_() { - var var$1, var$2, var$3; - var$1 = new nms_EnumCreatureAttribute; - var$1.$name2 = $rt_s(2888); - var$1.$ordinal = 0; - nms_EnumCreatureAttribute_UNDEFINED = var$1; - var$1 = new nms_EnumCreatureAttribute; - var$1.$name2 = $rt_s(2889); - var$1.$ordinal = 1; - nms_EnumCreatureAttribute_UNDEAD = var$1; - var$1 = new nms_EnumCreatureAttribute; - var$1.$name2 = $rt_s(2890); - var$1.$ordinal = 2; - nms_EnumCreatureAttribute_ARTHROPOD = var$1; - var$2 = $rt_createArray(nms_EnumCreatureAttribute, 3); - var$3 = var$2.data; - var$3[0] = nms_EnumCreatureAttribute_UNDEFINED; - var$3[1] = nms_EnumCreatureAttribute_UNDEAD; - var$3[2] = nms_EnumCreatureAttribute_ARTHROPOD; - $java.nms_EnumCreatureAttribute_$VALUES = var$2; -} -function nms_InventoryLargeChest() { - var a = this; jl_Object.call(a); - a.$name10 = null; - a.$upperChest = null; - a.$lowerChest = null; -} -$java.nms_InventoryLargeChest_getSizeInventory = function($this) { - return $this.$upperChest.$getSizeInventory() + $this.$lowerChest.$getSizeInventory() | 0; -}; -$java.nms_InventoryLargeChest_isPartOfLargeChest = function($this, $par1IInventory) { - return $this.$upperChest !== $par1IInventory && $this.$lowerChest !== $par1IInventory ? 0 : 1; -}; -$java.nms_InventoryLargeChest_getInvName = function($this) { - return $this.$upperChest.$isInvNameLocalized() ? $this.$upperChest.$getInvName() : !$this.$lowerChest.$isInvNameLocalized() ? $this.$name10 : $this.$lowerChest.$getInvName(); -}; -$java.nms_InventoryLargeChest_isInvNameLocalized = function($this) { - return !$this.$upperChest.$isInvNameLocalized() && !$this.$lowerChest.$isInvNameLocalized() ? 0 : 1; -}; -$java.nms_InventoryLargeChest_getStackInSlot = function($this, $par1) { - return $par1 < $this.$upperChest.$getSizeInventory() ? $this.$upperChest.$getStackInSlot($par1) : $this.$lowerChest.$getStackInSlot($par1 - $this.$upperChest.$getSizeInventory() | 0); -}; -$java.nms_InventoryLargeChest_decrStackSize = function($this, $par1, $par2) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 < $this.$upperChest.$getSizeInventory()) { - var$3 = $this.$upperChest; - $ptr = 1; - continue main; - } - var$3 = $this.$lowerChest; - $par1 = $par1 - $this.$upperChest.$getSizeInventory() | 0; - $ptr = 2; - continue main; - case 1: - $tmp = var$3.$decrStackSize($par1, $par2); - if ($rt_suspending()) { - break main; - } - var$3 = $tmp; - return var$3; - case 2: - $tmp = var$3.$decrStackSize($par1, $par2); - if ($rt_suspending()) { - break main; - } - var$3 = $tmp; - return var$3; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, $ptr); -}; -$java.nms_InventoryLargeChest_setInventorySlotContents = function($this, $par1, $par2ItemStack) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2ItemStack = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1 < $this.$upperChest.$getSizeInventory()) { - var$3 = $this.$upperChest; - $ptr = 1; - continue main; - } - var$3 = $this.$lowerChest; - $par1 = $par1 - $this.$upperChest.$getSizeInventory() | 0; - $ptr = 2; - continue main; - case 1: - var$3.$setInventorySlotContents($par1, $par2ItemStack); - if ($rt_suspending()) { - break main; - } - return; - case 2: - var$3.$setInventorySlotContents($par1, $par2ItemStack); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2ItemStack, var$3, $ptr); -}; -$java.nms_InventoryLargeChest_getInventoryStackLimit = function($this) { - return $this.$upperChest.$getInventoryStackLimit(); -}; -$java.nms_InventoryLargeChest_onInventoryChanged = function($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: - var$1 = $this.$upperChest; - $ptr = 1; - case 1: - var$1.$onInventoryChanged(); - if ($rt_suspending()) { - break main; - } - var$1 = $this.$lowerChest; - $ptr = 2; - case 2: - var$1.$onInventoryChanged(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -}; -$java.nms_InventoryLargeChest_isUseableByPlayer = function($this, $par1EntityPlayer) { - return $this.$upperChest.$isUseableByPlayer($par1EntityPlayer) && $this.$lowerChest.$isUseableByPlayer($par1EntityPlayer) ? 1 : 0; -}; -$java.nms_InventoryLargeChest_openChest = function($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: - var$1 = $this.$upperChest; - $ptr = 1; - case 1: - var$1.$openChest(); - if ($rt_suspending()) { - break main; - } - var$1 = $this.$lowerChest; - $ptr = 2; - case 2: - var$1.$openChest(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -}; -$java.nms_InventoryLargeChest_closeChest = function($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: - var$1 = $this.$upperChest; - $ptr = 1; - case 1: - var$1.$closeChest(); - if ($rt_suspending()) { - break main; - } - var$1 = $this.$lowerChest; - $ptr = 2; - case 2: - var$1.$closeChest(); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $ptr); -}; -$java.nms_InventoryLargeChest_isStackValidForSlot = function($this, $par1, $par2ItemStack) { - return 1; -}; -function nms_GuiEditSign() { - var a = this; nms_GuiScreen.call(a); - a.$screenTitle2 = null; - a.$entitySign = null; - a.$updateCounter4 = 0; - a.$editLine = 0; - a.$doneBtn = null; -} -$java.nms_GuiEditSign_allowedCharacters = null; -function nms_GuiEditSign_$callClinit() { - nms_GuiEditSign_$callClinit = $rt_eraseClinit(nms_GuiEditSign); - $java.nms_GuiEditSign__clinit_(); -} -$java.nms_GuiEditSign_initGui = function($this) { - var var$1, var$2; - var$1 = $this.$buttonList; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - var$2 = $this.$buttonList; - var$1 = nms_GuiButton__init_(0, ($this.$width0 / 2 | 0) - 100 | 0, ($this.$height0 / 4 | 0) + 120 | 0, 200, 20, $rt_s(2891)); - $this.$doneBtn = var$1; - ju_ArrayList_add(var$2, var$1); - $this.$entitySign.$isEditable = 0; -}; -$java.nms_GuiEditSign_onGuiClosed = function($this) { - var var$1, $var1, var$3, $$je; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; - var$1 = $this.$mc4; - $var1 = var$1.$thePlayer === null ? null : var$1.$thePlayer.$sendQueue; - if ($var1 !== null) { - var$1 = $java.nms_Packet130UpdateSign__init_0($this.$entitySign.$xCoord0, $this.$entitySign.$yCoord0, $this.$entitySign.$zCoord0, $this.$entitySign.$signText); - if (!$var1.$disconnected) { - var$3 = $var1.$netManager; - a: { - try { - ji_ByteArrayOutputStream_reset(var$3.$sendBuffer); - nms_Packet_writePacket(var$1, ji_DataOutputStream__init_(var$3.$sendBuffer)); - nlea_EaglerAdapterImpl2_writePacket(ji_ByteArrayOutputStream_toByteArray(var$3.$sendBuffer)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - var$1 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var1 = new ji_PrintStream; - $var1.$out = new jl_ConsoleOutputStreamStderr; - var$3 = new jl_StringBuilder; - jl_Object__init_0(var$3); - var$3.$buffer = $rt_createCharArray(16); - $var1.$sb = var$3; - $var1.$buffer0 = $rt_createCharArray(32); - $var1.$autoFlush = 0; - var$3 = new jnci_UTF8Charset; - jnc_Charset__init_(var$3, $rt_s(2), $rt_createArray(jl_String, 0)); - $var1.$charset = var$3; - jl_System_errCache = $var1; - } - jl_Throwable_printStackTrace0(var$1, jl_System_errCache); - } - } - } - $this.$entitySign.$isEditable = 1; -}; -$java.nms_GuiEditSign_updateScreen = function($this) { - $this.$updateCounter4 = $this.$updateCounter4 + 1 | 0; -}; -$java.nms_GuiEditSign_actionPerformed = function($this, $par1GuiButton) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$enabled && !$par1GuiButton.$id2) { - $par1GuiButton = $this.$entitySign; - $ptr = 1; - continue main; - } - return; - case 1: - nms_TileEntity_onInventoryChanged($par1GuiButton); - if ($rt_suspending()) { - break main; - } - var$2 = $this.$mc4; - $par1GuiButton = null; - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen(var$2, $par1GuiButton); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, $ptr); -}; -$java.nms_GuiEditSign_keyTyped = function($this, $par1, $par2) { - var var$3, var$4, var$5, var$6, var$7, var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par2 == 200) - $this.$editLine = ($this.$editLine - 1 | 0) & 3; - if (!($par2 != 208 && $par2 != 28)) - $this.$editLine = ($this.$editLine + 1 | 0) & 3; - if ($par2 == 14 && $this.$entitySign.$signText.data[$this.$editLine].$characters.data.length > 0) { - var$3 = $this.$entitySign.$signText; - var$4 = $this.$editLine; - var$5 = $this.$entitySign.$signText.data[$this.$editLine]; - var$6 = $this.$entitySign.$signText.data[$this.$editLine].$characters.data.length - 1 | 0; - if (0 > var$6) { - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - } - var$3.data[var$4] = jl_String__init_0(var$5.$characters, 0, var$6 - 0 | 0); - } - if (jl_String_indexOf($java.nms_GuiEditSign_allowedCharacters, $par1, 0) >= 0 && $this.$entitySign.$signText.data[$this.$editLine].$characters.data.length < 15) { - var$7 = $this.$entitySign.$signText.data; - var$6 = $this.$editLine; - var$8 = new jl_StringBuilder; - var$8.$buffer = $rt_createCharArray(16); - var$5 = $this.$entitySign.$signText.data[$this.$editLine]; - jl_AbstractStringBuilder_insert(var$8, var$8.$length, var$5); - var$4 = var$8.$length; - jl_AbstractStringBuilder_insertSpace(var$8, var$4, var$4 + 1 | 0); - var$8.$buffer.data[var$4] = $par1; - var$7[var$6] = jl_String__init_0(var$8.$buffer, 0, var$8.$length); - } - if ($par2 == 1) { - var$5 = $this.$doneBtn; - if (var$5.$enabled && !var$5.$id2) { - var$5 = $this.$entitySign; - $ptr = 1; - continue main; - } - } - return; - case 1: - nms_TileEntity_onInventoryChanged(var$5); - if ($rt_suspending()) { - break main; - } - var$8 = $this.$mc4; - var$5 = null; - $ptr = 2; - case 2: - nmc_Minecraft_displayGuiScreen(var$8, var$5); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, var$6, var$7, var$8, $ptr); -}; -$java.nms_GuiEditSign_drawScreen = function($this, $par1, $par2, $par3) { - var $var5, var$5, $var7, var$7, $var8, 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();$var8 = $thread.pop();var$7 = $thread.pop();$var7 = $thread.pop();var$5 = $thread.pop();$var5 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - $var5 = $this.$fontRenderer0; - var$5 = $this.$screenTitle2; - nms_FontRenderer_drawString($var5, var$5, ($this.$width0 / 2 | 0) - (nms_FontRenderer_getStringWidth($var5, var$5) / 2 | 0) | 0, 40, 16777215, 1); - nleg_EaglerAdapterGL30_glPushMatrix(); - $var7 = $this.$width0 / 2 | 0; - $var5 = nleg_EaglerAdapterGL30_deevis; - $var5.$x = $var7; - $var5.$y = 0.0; - $var5.$z = 50.0; - $var5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var5, $var5); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$5 = new ji_PrintStream; - var$5.$out = new jl_ConsoleOutputStreamStderr; - $var5 = new jl_StringBuilder; - $var5.$buffer = $rt_createCharArray(16); - var$5.$sb = $var5; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - $var5 = new jnci_UTF8Charset; - jnc_Charset__init_($var5, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = $var5; - jl_System_errCache = var$5; - } - var$7 = jl_System_errCache; - var$5 = var$7.$sb; - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(220)); - $var8 = var$5.$length; - jl_AbstractStringBuilder_insertSpace(var$5, $var8, $var8 + 1 | 0); - var$5.$buffer.data[$var8] = 10; - ji_PrintStream_printSB(var$7); - } - $var5 = nleg_EaglerAdapterGL30_deevis; - $var5.$x = (-93.75); - $var5.$y = (-93.75); - $var5.$z = (-93.75); - $var5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, $var5, $var5); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) { - if (jl_System_errCache === null) { - var$5 = new ji_PrintStream; - var$5.$out = new jl_ConsoleOutputStreamStderr; - $var5 = new jl_StringBuilder; - $var5.$buffer = $rt_createCharArray(16); - var$5.$sb = $var5; - var$5.$buffer0 = $rt_createCharArray(32); - var$5.$autoFlush = 0; - var$7 = new jnci_UTF8Charset; - jnc_Charset__init_(var$7, $rt_s(2), $rt_createArray(jl_String, 0)); - var$5.$charset = var$7; - jl_System_errCache = var$5; - } - var$7 = jl_System_errCache; - var$5 = var$7.$sb; - jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(220)); - $var8 = var$5.$length; - jl_AbstractStringBuilder_insertSpace(var$5, $var8, $var8 + 1 | 0); - var$5.$buffer.data[$var8] = 10; - ji_PrintStream_printSB(var$7); - } - nleg_EaglerAdapterGL30_glRotatef(180.0, 0.0, 1.0, 0.0); - $var5 = nms_TileEntity_getBlockType($this.$entitySign); - nms_Block_$callClinit(); - if ($var5 === nms_Block_signPost) { - $var5 = $this.$entitySign; - if ($var5.$blockMetadata == (-1)) - $var5.$blockMetadata = nms_World_getBlockMetadata($var5.$worldObj5, $var5.$xCoord0, $var5.$yCoord0, $var5.$zCoord0); - nleg_EaglerAdapterGL30_glRotatef(($var5.$blockMetadata * 360 | 0) / 16.0, 0.0, 1.0, 0.0); - $var5 = nleg_EaglerAdapterGL30_deevis; - $var5.$x = 0.0; - $var5.$y = (-1.0625); - $var5.$z = 0.0; - $var5 = nleg_EaglerAdapterGL30_getMatrix(); - nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, $var5, $var5); - if (nleg_EaglerAdapterGL30_isCompilingDisplayList) - ji_PrintStream_println0(jl_System_err(), $rt_s(220)); - } else { - $var5 = $this.$entitySign; - if ($var5.$blockMetadata == (-1)) - $var5.$blockMetadata = nms_World_getBlockMetadata($var5.$worldObj5, $var5.$xCoord0, $var5.$yCoord0, $var5.$zCoord0); - $var8 = $var5.$blockMetadata; - $var7 = 0.0; - if ($var8 == 2) - $var7 = 180.0; - if ($var8 == 4) - $var7 = 90.0; - if ($var8 == 5) - $var7 = (-90.0); - nleg_EaglerAdapterGL30_glRotatef($var7, 0.0, 1.0, 0.0); - nleg_EaglerAdapterGL30_glTranslatef(0.0, (-1.0625), 0.0); - } - if (!(($this.$updateCounter4 / 6 | 0) % 2 | 0)) - $this.$entitySign.$lineBeingEdited = $this.$editLine; - nms_TileEntityRenderer_$callClinit(); - $var5 = nms_TileEntityRenderer_instance; - var$5 = $this.$entitySign; - var$9 = (-0.5); - var$10 = (-0.75); - var$11 = (-0.5); - $var7 = 0.0; - $ptr = 1; - case 1: - $java.nms_TileEntityRenderer_renderTileEntityAt($var5, var$5, var$9, var$10, var$11, $var7); - if ($rt_suspending()) { - break main; - } - $this.$entitySign.$lineBeingEdited = (-1); - nleg_EaglerAdapterGL30_glPopMatrix(); - $ptr = 2; - case 2: - nms_GuiScreen_drawScreen($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $var5, var$5, $var7, var$7, $var8, var$9, var$10, var$11, $ptr); -}; -$java.nms_GuiEditSign__clinit_ = function() { - $java.nms_GuiEditSign_allowedCharacters = nms_ChatAllowedCharacters_allowedCharacters; -}; -function nms_GuiCommandBlock() { - var a = this; nms_GuiScreen.call(a); - a.$commandTextField = null; - a.$commandBlock = null; - a.$doneBtn0 = null; - a.$cancelBtn = null; -} -$java.nms_GuiCommandBlock_updateScreen = function($this) { - var var$1; - var$1 = $this.$commandTextField; - var$1.$cursorCounter = var$1.$cursorCounter + 1 | 0; -}; -$java.nms_GuiCommandBlock_initGui = function($this) { - var $var1, var$2, var$3, var$4, var$5; - $var1 = nms_StringTranslate_instance; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - var$2 = $this.$buttonList; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - var$3 = $this.$buttonList; - var$2 = nms_GuiButton__init_(0, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 96 | 0) + 12 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(436))); - $this.$doneBtn0 = var$2; - ju_ArrayList_add(var$3, var$2); - var$2 = $this.$buttonList; - var$4 = nms_GuiButton__init_(1, ($this.$width0 / 2 | 0) - 100 | 0, (($this.$height0 / 4 | 0) + 120 | 0) + 12 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(2548))); - $this.$cancelBtn = var$4; - ju_ArrayList_add(var$2, var$4); - $this.$commandTextField = nms_GuiTextField__init_($this.$fontRenderer0, ($this.$width0 / 2 | 0) - 150 | 0, 60, 300, 20); - var$2 = $this.$commandTextField; - var$2.$maxStringLength = 32767; - if (var$2.$text.$characters.data.length > 32767) { - var$4 = var$2.$text; - var$2.$text = jl_String__init_0(var$4.$characters, 0, 32767); - } - var$2 = $this.$commandTextField; - if (!var$2.$isFocused) - var$2.$cursorCounter = 0; - var$2.$isFocused = 1; - var$2 = $this.$commandTextField; - var$3 = $this.$commandBlock.$command; - if (var$3.$characters.data.length <= var$2.$maxStringLength) - var$2.$text = var$3; - else { - var$5 = var$2.$maxStringLength; - if (0 > var$5) { - var$2 = new jl_IndexOutOfBoundsException; - var$2.$suppressionEnabled = 1; - var$2.$writableStackTrace = 1; - $rt_throw(var$2); - } - var$2.$text = jl_String__init_0(var$3.$characters, 0, var$5 - 0 | 0); - } - $java.nms_GuiTextField_setCursorPosition(var$2, var$2.$text.$characters.data.length); - $this.$doneBtn0.$enabled = jl_String_trim($this.$commandTextField.$text).$characters.data.length <= 0 ? 0 : 1; -}; -$java.nms_GuiCommandBlock_onGuiClosed = function($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; -}; -$java.nms_GuiCommandBlock_actionPerformed = function($this, $par1GuiButton) { - var $var2, $var3, $var4, $var6, $$je, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$enabled) { - if ($par1GuiButton.$id2 == 1) { - $par1GuiButton = $this.$mc4; - $var2 = null; - $ptr = 1; - continue main; - } - if (!$par1GuiButton.$id2) { - $var3 = new ji_ByteArrayOutputStream; - $var3.$buf1 = $rt_createByteArray(32); - $var4 = new ji_DataOutputStream; - $var4.$out = $var3; - $var4.$buff0 = $rt_createByteArray(8); - a: { - try { - ji_DataOutputStream_writeInt($var4, $this.$commandBlock.$xCoord0); - ji_DataOutputStream_writeInt($var4, $this.$commandBlock.$yCoord0); - ji_DataOutputStream_writeInt($var4, $this.$commandBlock.$zCoord0); - nms_Packet_writeString($java.nms_GuiTextField_getText($this.$commandTextField), $var4); - nms_NetClientHandler_addToSendQueue(nmc_Minecraft_getNetHandler($this.$mc4), nms_Packet250CustomPayload__init_0($rt_s(2892), ji_ByteArrayOutputStream_toByteArray($var3))); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var6 = $$je; - } else { - throw $$e; - } - } - if (jl_System_errCache === null) { - $var2 = new ji_PrintStream; - $var2.$out = new jl_ConsoleOutputStreamStderr; - $par1GuiButton = new jl_StringBuilder; - $par1GuiButton.$buffer = $rt_createCharArray(16); - $var2.$sb = $par1GuiButton; - $var2.$buffer0 = $rt_createCharArray(32); - $var2.$autoFlush = 0; - $par1GuiButton = new jnci_UTF8Charset; - jnc_Charset__init_($par1GuiButton, $rt_s(2), $rt_createArray(jl_String, 0)); - $var2.$charset = $par1GuiButton; - jl_System_errCache = $var2; - } - jl_Throwable_printStackTrace0($var6, jl_System_errCache); - } - $par1GuiButton = $this.$mc4; - $var2 = null; - $ptr = 2; - continue main; - } - } - return; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var2); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nmc_Minecraft_displayGuiScreen($par1GuiButton, $var2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, $var2, $var3, $var4, $var6, $ptr); -}; -$java.nms_GuiCommandBlock_keyTyped = function($this, $par1, $par2) { - var var$3, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - nms_GuiTextField_textboxKeyTyped($this.$commandTextField, $par1, $par2); - $this.$doneBtn0.$enabled = jl_String_trim($this.$commandTextField.$text).$characters.data.length <= 0 ? 0 : 1; - if ($par2 != 28 && $par1 != 13) { - if ($par2 != 1) - return; - var$3 = $this.$cancelBtn; - $ptr = 2; - continue main; - } - var$3 = $this.$doneBtn0; - $ptr = 1; - case 1: - $java.nms_GuiCommandBlock_actionPerformed($this, var$3); - if ($rt_suspending()) { - break main; - } - return; - case 2: - $java.nms_GuiCommandBlock_actionPerformed($this, var$3); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, $ptr); -}; -$java.nms_GuiCommandBlock_mouseClicked = function($this, $par1, $par2, $par3) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $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: - nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3); - if ($rt_suspending()) { - break main; - } - nms_GuiTextField_mouseClicked($this.$commandTextField, $par1, $par2, $par3); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $par3, $ptr); -}; -$java.nms_GuiCommandBlock_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, var$5, var$6, var$7, var$8; - $var4 = nms_StringTranslate_instance; - if ($this.$mc4.$theWorld === null) - nms_GuiScreen_drawBackground($this, 0); - else - nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680)); - var$5 = $this.$fontRenderer0; - var$6 = nms_StringTranslate_translateKey($var4, $rt_s(2893)); - var$7 = $this.$width0 / 2 | 0; - var$8 = (($this.$height0 / 4 | 0) - 60 | 0) + 20 | 0; - nms_FontRenderer_drawString(var$5, var$6, var$7 - (nms_FontRenderer_getStringWidth(var$5, var$6) / 2 | 0) | 0, var$8, 16777215, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var4, $rt_s(2894)), ($this.$width0 / 2 | 0) - 150 | 0, 47, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var4, $rt_s(2895)), ($this.$width0 / 2 | 0) - 150 | 0, 97, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var4, $rt_s(2896)), ($this.$width0 / 2 | 0) - 150 | 0, 108, 10526880, 1); - nms_FontRenderer_drawString($this.$fontRenderer0, nms_StringTranslate_translateKey($var4, $rt_s(2897)), ($this.$width0 / 2 | 0) - 150 | 0, 119, 10526880, 1); - nms_GuiTextField_drawTextBox($this.$commandTextField); - var$8 = 0; - a: { - while (var$8 < $this.$buttonList.$size0) { - var$6 = $this.$buttonList; - if (var$8 < 0) - break a; - if (var$8 >= var$6.$size0) - break a; - var$6.$array1.data[var$8].$drawButton($this.$mc4, $par1, $par2); - var$8 = var$8 + 1 | 0; - } - return; - } - var$6 = new jl_IndexOutOfBoundsException; - var$6.$suppressionEnabled = 1; - var$6.$writableStackTrace = 1; - $rt_throw(var$6); -}; -function nms_BlockBaseRailLogic() { - var a = this; jl_Object.call(a); - a.$logicWorld = null; - a.$railX = 0; - a.$railY = 0; - a.$railZ = 0; - a.$isStraightRail = 0; - a.$railChunkPosition = null; - a.$theRail = null; -} -function nms_BlockBaseRailLogic__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_BlockBaseRailLogic(); - $java.nms_BlockBaseRailLogic__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -$java.nms_BlockBaseRailLogic__init_ = function($this, $par1, $par2, $par3, $par4, $par5) { - var $var6, $var7; - $this.$theRail = $par1; - $par1 = new ju_ArrayList; - $par1.$array1 = $rt_createArray(jl_Object, 10); - $this.$railChunkPosition = $par1; - $this.$logicWorld = $par2; - $this.$railX = $par3; - $this.$railY = $par4; - $this.$railZ = $par5; - $var6 = nms_World_getBlockId($par2, $par3, $par4, $par5); - $var7 = nms_World_getBlockMetadata($par2, $par3, $par4, $par5); - nms_Block_$callClinit(); - if (!nms_Block_blocksList.data[$var6].$isPowered) - $this.$isStraightRail = 0; - else { - $this.$isStraightRail = 1; - $var7 = $var7 & (-9); - } - $java.nms_BlockBaseRailLogic_setBasicRail($this, $var7); -}; -$java.nms_BlockBaseRailLogic_setBasicRail = function($this, $par1) { - var var$2, var$3, var$4, var$5; - a: { - var$2 = $this.$railChunkPosition; - ju_Arrays_fill(var$2.$array1, 0, var$2.$size0, null); - var$2.$size0 = 0; - if (!$par1) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY; - var$5 = $this.$railZ - 1 | 0; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY; - var$5 = $this.$railZ + 1 | 0; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 1) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX - 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX + 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 2) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX - 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - var$5 = $this.$railX + 1 | 0; - $par1 = $this.$railY + 1 | 0; - var$4 = $this.$railZ; - var$3.$x3 = var$5; - var$3.$y2 = $par1; - var$3.$z5 = var$4; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 3) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX - 1 | 0; - var$4 = $this.$railY + 1 | 0; - var$5 = $this.$railZ; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX + 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 4) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY + 1 | 0; - var$5 = $this.$railZ - 1 | 0; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY; - var$5 = $this.$railZ + 1 | 0; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 5) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY; - var$5 = $this.$railZ - 1 | 0; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX; - var$4 = $this.$railY + 1 | 0; - var$5 = $this.$railZ + 1 | 0; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - break a; - } - if ($par1 == 6) { - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $par1 = $this.$railX + 1 | 0; - var$4 = $this.$railY; - var$5 = $this.$railZ; - var$3.$x3 = $par1; - var$3.$y2 = var$4; - var$3.$z5 = var$5; - ju_ArrayList_add(var$2, var$3); - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ + 1 | 0)); - break a; - } - if ($par1 == 7) { - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX - 1 | 0, $this.$railY, $this.$railZ)); - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ + 1 | 0)); - break a; - } - if ($par1 == 8) { - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX - 1 | 0, $this.$railY, $this.$railZ)); - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ - 1 | 0)); - break a; - } - if ($par1 != 9) - break a; - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX + 1 | 0, $this.$railY, $this.$railZ)); - ju_ArrayList_add($this.$railChunkPosition, $java.nms_ChunkPosition__init_($this.$railX, $this.$railY, $this.$railZ - 1 | 0)); - } -}; -$java.nms_BlockBaseRailLogic_refreshConnectedTracks = function($this) { - var $var1, $var2, var$3, var$4, var$5, var$6, var$7; - $var1 = 0; - a: { - b: { - while ($var1 < $this.$railChunkPosition.$size0) { - $var2 = $this.$railChunkPosition; - if ($var1 < 0) - break a; - if ($var1 >= $var2.$size0) - break a; - $var2 = $java.nms_BlockBaseRailLogic_getRailLogic($this, $var2.$array1.data[$var1]); - if ($var2 !== null && $java.nms_BlockBaseRailLogic_isRailChunkPositionCorrect($var2, $this)) { - var$3 = $this.$railChunkPosition; - var$4 = new nms_ChunkPosition; - var$5 = $var2.$railX; - var$6 = $var2.$railY; - var$7 = $var2.$railZ; - var$4.$x3 = var$5; - var$4.$y2 = var$6; - var$4.$z5 = var$7; - if ($var1 < 0) - break b; - if ($var1 >= var$3.$size0) - break b; - var$3.$array1.data[$var1] = var$4; - var$5 = $var1; - } else { - $var2 = $this.$railChunkPosition; - var$5 = $var1 + (-1) | 0; - ju_ArrayList_remove($var2, $var1); - } - $var1 = var$5 + 1 | 0; - } - return; - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); - } - $var2 = new jl_IndexOutOfBoundsException; - $var2.$suppressionEnabled = 1; - $var2.$writableStackTrace = 1; - $rt_throw($var2); -}; -$java.nms_BlockBaseRailLogic_isMinecartTrack = function($this, $par1, $par2, $par3) { - return nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1, $par2, $par3)) ? 1 : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1, $par2 + 1 | 0, $par3)) ? 1 : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1, $par2 - 1 | 0, $par3)); -}; -$java.nms_BlockBaseRailLogic_getRailLogic = function($this, $par1ChunkPosition) { - return nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x3, $par1ChunkPosition.$y2, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x3, $par1ChunkPosition.$y2, $par1ChunkPosition.$z5) : nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x3, $par1ChunkPosition.$y2 + 1 | 0, $par1ChunkPosition.$z5)) ? nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, - $par1ChunkPosition.$x3, $par1ChunkPosition.$y2 + 1 | 0, $par1ChunkPosition.$z5) : !nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $par1ChunkPosition.$x3, $par1ChunkPosition.$y2 - 1 | 0, $par1ChunkPosition.$z5)) ? null : nms_BlockBaseRailLogic__init_($this.$theRail, $this.$logicWorld, $par1ChunkPosition.$x3, $par1ChunkPosition.$y2 - 1 | 0, $par1ChunkPosition.$z5); -}; -$java.nms_BlockBaseRailLogic_isRailChunkPositionCorrect = function($this, $par1BlockBaseRailLogic) { - var $var2, $var3; - $var2 = 0; - a: { - while ($var2 < $this.$railChunkPosition.$size0) { - $var3 = $this.$railChunkPosition; - if ($var2 < 0) - break a; - if ($var2 >= $var3.$size0) - break a; - $var3 = $var3.$array1.data[$var2]; - if ($var3.$x3 == $par1BlockBaseRailLogic.$railX && $var3.$z5 == $par1BlockBaseRailLogic.$railZ) - return 1; - $var2 = $var2 + 1 | 0; - } - return 0; - } - $par1BlockBaseRailLogic = new jl_IndexOutOfBoundsException; - $par1BlockBaseRailLogic.$suppressionEnabled = 1; - $par1BlockBaseRailLogic.$writableStackTrace = 1; - $rt_throw($par1BlockBaseRailLogic); -}; -$java.nms_BlockBaseRailLogic_isPartOfTrack = function($this, $par1, $par2, $par3) { - var $var4, $var5; - $var4 = 0; - a: { - while ($var4 < $this.$railChunkPosition.$size0) { - $var5 = $this.$railChunkPosition; - if ($var4 < 0) - break a; - if ($var4 >= $var5.$size0) - break a; - $var5 = $var5.$array1.data[$var4]; - if ($var5.$x3 == $par1 && $var5.$z5 == $par3) - return 1; - $var4 = $var4 + 1 | 0; - } - return 0; - } - $var5 = new jl_IndexOutOfBoundsException; - $var5.$suppressionEnabled = 1; - $var5.$writableStackTrace = 1; - $rt_throw($var5); -}; -function nms_BlockBaseRailLogic_getNumberOfAdjacentTracks($this) { - var $var1; - $var1 = 0; - if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX, $this.$railY, $this.$railZ - 1 | 0)) - $var1 = 1; - if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX, $this.$railY, $this.$railZ + 1 | 0)) - $var1 = $var1 + 1 | 0; - if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX - 1 | 0, $this.$railY, $this.$railZ)) - $var1 = $var1 + 1 | 0; - if ($java.nms_BlockBaseRailLogic_isMinecartTrack($this, $this.$railX + 1 | 0, $this.$railY, $this.$railZ)) - $var1 = $var1 + 1 | 0; - return $var1; -} -$java.nms_BlockBaseRailLogic_canConnectTo = function($this, $par1BlockBaseRailLogic) { - return $java.nms_BlockBaseRailLogic_isRailChunkPositionCorrect($this, $par1BlockBaseRailLogic) ? 1 : $this.$railChunkPosition.$size0 == 2 ? 0 : !($this.$railChunkPosition.$size0 ? 0 : 1) ? 1 : 1; -}; -$java.nms_BlockBaseRailLogic_connectToNeighbor = function($this, $par1BlockBaseRailLogic) { - var var$2, var$3, $var2, $var3, $var4, $var5, $var6, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$par1BlockBaseRailLogic = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$2 = $this.$railChunkPosition; - var$3 = new nms_ChunkPosition; - $var2 = $par1BlockBaseRailLogic.$railX; - $var3 = $par1BlockBaseRailLogic.$railY; - $var4 = $par1BlockBaseRailLogic.$railZ; - var$3.$x3 = $var2; - var$3.$y2 = $var3; - var$3.$z5 = $var4; - ju_ArrayList_add(var$2, var$3); - $var2 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX, $this.$railY, $this.$railZ - 1 | 0); - $var3 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX, $this.$railY, $this.$railZ + 1 | 0); - $var4 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX - 1 | 0, $this.$railY, $this.$railZ); - $var5 = $java.nms_BlockBaseRailLogic_isPartOfTrack($this, $this.$railX + 1 | 0, $this.$railY, $this.$railZ); - $var6 = (-1); - if (!(!$var2 && !$var3)) - $var6 = 0; - if (!(!$var4 && !$var5)) - $var6 = 1; - if (!$this.$isStraightRail) { - if ($var3 && $var5 && !$var2 && !$var4) - $var6 = 6; - if ($var3 && $var4 && !$var2 && !$var5) - $var6 = 7; - if ($var2 && $var4 && !$var3 && !$var5) - $var6 = 8; - if ($var2 && $var5 && !$var3 && !$var4) - $var6 = 9; - } - if (!$var6) { - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ - 1 | 0))) - $var6 = 4; - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ + 1 | 0))) - $var6 = 5; - } - if ($var6 == 1) { - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX + 1 | 0, $this.$railY + 1 | 0, $this.$railZ))) - $var6 = 2; - if (nms_BlockRailBase_isRailBlock(nms_World_getBlockId($this.$logicWorld, $this.$railX - 1 | 0, $this.$railY + 1 | 0, $this.$railZ))) - $var6 = 3; - } - if ($var6 < 0) - $var6 = 0; - if ($this.$isStraightRail) - $var6 = nms_World_getBlockMetadata($this.$logicWorld, $this.$railX, $this.$railY, $this.$railZ) & 8 | $var6; - $par1BlockBaseRailLogic = $this.$logicWorld; - $var3 = $this.$railX; - $var4 = $this.$railY; - $var5 = $this.$railZ; - $var2 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($par1BlockBaseRailLogic, $var3, $var4, $var5, $var6, $var2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1BlockBaseRailLogic, var$2, var$3, $var2, $var3, $var4, $var5, $var6, $ptr); -}; -$java.nms_BlockBaseRailLogic_canConnectFrom = function($this, $par1, $par2, $par3) { - var $var4; - $var4 = new nms_ChunkPosition; - $var4.$x3 = $par1; - $var4.$y2 = $par2; - $var4.$z5 = $par3; - $var4 = $java.nms_BlockBaseRailLogic_getRailLogic($this, $var4); - if ($var4 === null) - return 0; - $java.nms_BlockBaseRailLogic_refreshConnectedTracks($var4); - return $java.nms_BlockBaseRailLogic_canConnectTo($var4, $this); -}; -function nms_BlockBaseRailLogic_func_94511_a($this, $par1, $par2) { - var $var3, $var4, $var5, $var6, $var7, $var10, $var9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var9 = $thread.pop();$var10 = $thread.pop();$var7 = $thread.pop();$var6 = $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: - $var3 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX, $this.$railY, $this.$railZ - 1 | 0); - $var4 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX, $this.$railY, $this.$railZ + 1 | 0); - $var5 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX - 1 | 0, $this.$railY, $this.$railZ); - $var6 = $java.nms_BlockBaseRailLogic_canConnectFrom($this, $this.$railX + 1 | 0, $this.$railY, $this.$railZ); - $var7 = (-1); - if (!(!$var3 && !$var4) && !$var5 && !$var6) - $var7 = 0; - if (!(!$var5 && !$var6) && !$var3 && !$var4) - $var7 = 1; - if (!$this.$isStraightRail) { - if ($var4 && $var6 && !$var3 && !$var5) - $var7 = 6; - if ($var4 && $var5 && !$var3 && !$var6) - $var7 = 7; - if ($var3 && $var5 && !$var4 && !$var6) - $var7 = 8; - if ($var3 && $var6 && !$var4 && !$var5) - $var7 = 9; - } - if ($var7 == (-1)) { - if (!(!$var3 && !$var4)) - $var7 = 0; - if (!(!$var5 && !$var6)) - $var7 = 1; - if (!$this.$isStraightRail) { - if (!$par1) { - if ($var3 && $var5) - $var7 = 8; - if ($var6 && $var3) - $var7 = 9; - if ($var5 && $var4) - $var7 = 7; - if ($var4 && $var6) - $var7 = 6; - } else { - if ($var4 && $var6) - $var7 = 6; - if ($var5 && $var4) - $var7 = 7; - if ($var6 && $var3) - $var7 = 9; - if ($var3 && $var5) - $var7 = 8; - } - } - } - if (!$var7) { - if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ - 1 | 0)) - $var7 = 4; - if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX, $this.$railY + 1 | 0, $this.$railZ + 1 | 0)) - $var7 = 5; - } - if ($var7 == 1) { - if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX + 1 | 0, $this.$railY + 1 | 0, $this.$railZ)) - $var7 = 2; - if (nms_BlockRailBase_isRailBlockAt($this.$logicWorld, $this.$railX - 1 | 0, $this.$railY + 1 | 0, $this.$railZ)) - $var7 = 3; - } - if ($var7 < 0) - $var7 = 0; - $java.nms_BlockBaseRailLogic_setBasicRail($this, $var7); - if ($this.$isStraightRail) - $var7 = nms_World_getBlockMetadata($this.$logicWorld, $this.$railX, $this.$railY, $this.$railZ) & 8 | $var7; - if (!$par2 && nms_World_getBlockMetadata($this.$logicWorld, $this.$railX, $this.$railY, $this.$railZ) == $var7) - return; - $var10 = $this.$logicWorld; - $par2 = $this.$railX; - $var9 = $this.$railY; - $var3 = $this.$railZ; - $par1 = 3; - $ptr = 1; - case 1: - nms_World_setBlockMetadataWithNotify($var10, $par2, $var9, $var3, $var7, $par1); - if ($rt_suspending()) { - break main; - } - $var9 = 0; - while ($var9 < ju_ArrayList_size($this.$railChunkPosition)) { - $var10 = $java.nms_BlockBaseRailLogic_getRailLogic($this, ju_ArrayList_get($this.$railChunkPosition, $var9)); - if ($var10 !== null) { - $java.nms_BlockBaseRailLogic_refreshConnectedTracks($var10); - if ($java.nms_BlockBaseRailLogic_canConnectTo($var10, $this)) { - $ptr = 2; - continue main; - } - } - $var9 = $var9 + 1 | 0; - } - return; - case 2: - $java.nms_BlockBaseRailLogic_connectToNeighbor($var10, $this); - if ($rt_suspending()) { - break main; - } - while (true) { - $var9 = $var9 + 1 | 0; - if ($var9 >= ju_ArrayList_size($this.$railChunkPosition)) - break; - $var10 = $java.nms_BlockBaseRailLogic_getRailLogic($this, ju_ArrayList_get($this.$railChunkPosition, $var9)); - if ($var10 === null) - continue; - $java.nms_BlockBaseRailLogic_refreshConnectedTracks($var10); - if (!$java.nms_BlockBaseRailLogic_canConnectTo($var10, $this)) - continue; - else { - continue main; - } - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $var3, $var4, $var5, $var6, $var7, $var10, $var9, $ptr); -} -function nms_EntityHugeExplodeFX() { - var a = this; nms_EntityFX.call(a); - a.$timeSinceStart = 0; - a.$maximumTime = 0; -} -function nms_EntityHugeExplodeFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityHugeExplodeFX(); - $java.nms_EntityHugeExplodeFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityHugeExplodeFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$timeSinceStart = 0; - $this.$maximumTime = 0; - $this.$maximumTime = 8; -}; -$java.nms_EntityHugeExplodeFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - return; -}; -$java.nms_EntityHugeExplodeFX_onUpdate = function($this) { - var $var1, $var2, $var4, $var6, var$5, 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();var$5 = $thread.pop();$var6 = $thread.pop();$var4 = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $var1 = 0; - while ($var1 < 6) { - $var2 = $this.$posX + (Math.random() - Math.random()) * 4.0; - $var4 = $this.$posY + (Math.random() - Math.random()) * 4.0; - $var6 = $this.$posZ + (Math.random() - Math.random()) * 4.0; - var$5 = $this.$worldObj; - var$6 = $rt_s(845); - var$7 = $this.$timeSinceStart / $this.$maximumTime; - var$8 = 0.0; - var$9 = 0.0; - var$10 = 0; - if (var$10 < var$5.$worldAccesses.$size0) { - var$11 = var$5.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - $ptr = 1; - continue main; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - } - $var1 = $var1 + 1 | 0; - } - $this.$timeSinceStart = $this.$timeSinceStart + 1 | 0; - if ($this.$timeSinceStart == $this.$maximumTime) - $this.$isDead = 1; - return; - case 1: - nms_RenderGlobal_doSpawnParticle(var$11, var$6, $var2, $var4, $var6, var$7, var$8, var$9); - if ($rt_suspending()) { - break main; - } - var$10 = var$10 + 1 | 0; - while (true) { - if (var$10 < var$5.$worldAccesses.$size0) { - var$11 = var$5.$worldAccesses; - if (var$10 >= 0 && var$10 < var$11.$size0) { - var$11 = var$11.$array1.data[var$10]; - continue main; - } - var$5 = new jl_IndexOutOfBoundsException; - var$5.$suppressionEnabled = 1; - var$5.$writableStackTrace = 1; - $rt_throw(var$5); - } - $var1 = $var1 + 1 | 0; - if ($var1 >= 6) - break; - $var2 = $this.$posX + (Math.random() - Math.random()) * 4.0; - $var4 = $this.$posY + (Math.random() - Math.random()) * 4.0; - $var6 = $this.$posZ + (Math.random() - Math.random()) * 4.0; - var$5 = $this.$worldObj; - var$6 = $rt_s(845); - var$7 = $this.$timeSinceStart / $this.$maximumTime; - var$8 = 0.0; - var$9 = 0.0; - var$10 = 0; - } - $this.$timeSinceStart = $this.$timeSinceStart + 1 | 0; - if ($this.$timeSinceStart == $this.$maximumTime) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var4, $var6, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -}; -$java.nms_EntityHugeExplodeFX_getFXLayer = function($this) { - return 1; -}; -function nms_EntityBubbleFX() { - nms_EntityFX.call(this); -} -function nms_EntityBubbleFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityBubbleFX(); - $java.nms_EntityBubbleFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityBubbleFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $this.$particleRed = 1.0; - $this.$particleGreen = 1.0; - $this.$particleBlue = 1.0; - nms_EntityFX_setParticleTextureIndex($this, 32); - nms_Entity_setSize($this, 0.019999999552965164, 0.019999999552965164); - $this.$particleScale = $this.$particleScale * (Math.random() * 0.6000000238418579 + 0.20000000298023224); - $this.$motionX = $par8 * 0.20000000298023224 + (jl_Math_randomImpl() * 2.0 - 1.0) * 0.019999999552965164; - $this.$motionY = $par10 * 0.20000000298023224 + (jl_Math_randomImpl() * 2.0 - 1.0) * 0.019999999552965164; - $this.$motionZ = $par12 * 0.20000000298023224 + (jl_Math_randomImpl() * 2.0 - 1.0) * 0.019999999552965164; - $this.$particleMaxAge = 8.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; -}; -$java.nms_EntityBubbleFX_onUpdate = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, 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();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: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$motionY = $this.$motionY + 0.002; - var$1 = $this.$motionX; - var$2 = $this.$motionY; - var$3 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$1, var$2, var$3); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.8500000238418579; - $this.$motionY = $this.$motionY * 0.8500000238418579; - $this.$motionZ = $this.$motionZ * 0.8500000238418579; - var$4 = $this.$worldObj; - var$1 = $this.$posX; - var$5 = var$1 | 0; - if (var$1 < var$5) - var$5 = var$5 - 1 | 0; - var$1 = $this.$posY; - var$6 = var$1 | 0; - if (var$1 < var$6) - var$6 = var$6 - 1 | 0; - var$1 = $this.$posZ; - var$7 = var$1 | 0; - if (var$1 < var$7) - var$7 = var$7 - 1 | 0; - var$8 = nms_World_getBlockId(var$4, var$5, var$6, var$7); - if (!var$8) { - nms_Material_$callClinit(); - var$9 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8].$blockMaterial; - } - nms_Material_$callClinit(); - if (var$9 !== nms_Material_water) - $this.$isDead = 1; - var$8 = $this.$particleMaxAge; - $this.$particleMaxAge = var$8 - 1 | 0; - if (var$8 <= 0) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $ptr); -}; -function nms_EntitySuspendFX() { - nms_EntityFX.call(this); -} -function nms_EntitySuspendFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntitySuspendFX(); - $java.nms_EntitySuspendFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntitySuspendFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4 - 0.125, $par6, $par8, $par10, $par12); - $this.$particleRed = 0.4000000059604645; - $this.$particleGreen = 0.4000000059604645; - $this.$particleBlue = 0.699999988079071; - nms_EntityFX_setParticleTextureIndex($this, 0); - nms_Entity_setSize($this, 0.009999999776482582, 0.009999999776482582); - $this.$particleScale = $this.$particleScale * (Math.random() * 0.6000000238418579 + 0.20000000298023224); - $this.$motionX = $par8 * 0.0; - $this.$motionY = $par10 * 0.0; - $this.$motionZ = $par12 * 0.0; - $this.$particleMaxAge = 16.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; -}; -$java.nms_EntitySuspendFX_onUpdate = function($this) { - var var$1, var$2, var$3, var$4, var$5, var$6, 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();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: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$motionX; - var$2 = $this.$motionY; - var$3 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$1, var$2, var$3); - if ($rt_suspending()) { - break main; - } - var$4 = $this.$worldObj; - var$1 = $this.$posX; - var$5 = var$1 | 0; - if (var$1 < var$5) - var$5 = var$5 - 1 | 0; - var$1 = $this.$posY; - var$6 = var$1 | 0; - if (var$1 < var$6) - var$6 = var$6 - 1 | 0; - var$1 = $this.$posZ; - var$7 = var$1 | 0; - if (var$1 < var$7) - var$7 = var$7 - 1 | 0; - var$8 = nms_World_getBlockId(var$4, var$5, var$6, var$7); - if (!var$8) { - nms_Material_$callClinit(); - var$9 = nms_Material_air; - } else { - nms_Block_$callClinit(); - var$9 = nms_Block_blocksList.data[var$8].$blockMaterial; - } - nms_Material_$callClinit(); - if (var$9 !== nms_Material_water) - $this.$isDead = 1; - var$8 = $this.$particleMaxAge; - $this.$particleMaxAge = var$8 - 1 | 0; - if (var$8 <= 0) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, var$7, var$8, var$9, $ptr); -}; -function nms_EntityAuraFX() { - nms_EntityFX.call(this); -} -function nms_EntityAuraFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityAuraFX(); - $java.nms_EntityAuraFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityAuraFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - var $var14; - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $var14 = Math.random() * 0.10000000149011612 + 0.20000000298023224; - $this.$particleRed = $var14; - $this.$particleGreen = $var14; - $this.$particleBlue = $var14; - nms_EntityFX_setParticleTextureIndex($this, 0); - nms_Entity_setSize($this, 0.019999999552965164, 0.019999999552965164); - $this.$particleScale = $this.$particleScale * (Math.random() * 0.6000000238418579 + 0.5); - $this.$motionX = $this.$motionX * 0.019999999552965164; - $this.$motionY = $this.$motionY * 0.019999999552965164; - $this.$motionZ = $this.$motionZ * 0.019999999552965164; - $this.$particleMaxAge = 20.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; - $this.$noClip = 1; -}; -$java.nms_EntityAuraFX_onUpdate = function($this) { - 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();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$motionX; - var$2 = $this.$motionY; - var$3 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$1, var$2, var$3); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.99; - $this.$motionY = $this.$motionY * 0.99; - $this.$motionZ = $this.$motionZ * 0.99; - var$4 = $this.$particleMaxAge; - $this.$particleMaxAge = var$4 - 1 | 0; - if (var$4 <= 0) - $this.$isDead = 1; - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $ptr); -}; -function nms_EntityCritFX() { - nms_EntityFX.call(this); - this.$field_70561_a = 0.0; -} -$java.nms_EntityCritFX__init_ = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityCritFX(); - nms_EntityCritFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -}; -$java.nms_EntityCritFX__init_0 = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7) { - var var_8 = new nms_EntityCritFX(); - $java.nms_EntityCritFX__init_1(var_8, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7); - return var_8; -}; -function nms_EntityCritFX__init_($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - var var$8, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$8 = $thread.pop();$par12 = $thread.pop();$par10 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - var$8 = 1.0; - $ptr = 1; - case 1: - $java.nms_EntityCritFX__init_1($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, var$8); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, var$8, $ptr); -} -$java.nms_EntityCritFX__init_1 = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14) { - var var$9, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$9 = $thread.pop();$par14 = $thread.pop();$par12 = $thread.pop();$par10 = $thread.pop();$par8 = $thread.pop();$par6 = $thread.pop();$par4 = $thread.pop();$par2 = $thread.pop();$par1World = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$motionX = $this.$motionX * 0.10000000149011612; - $this.$motionY = $this.$motionY * 0.10000000149011612; - $this.$motionZ = $this.$motionZ * 0.10000000149011612; - $this.$motionX = $this.$motionX + $par8 * 0.4; - $this.$motionY = $this.$motionY + $par10 * 0.4; - $this.$motionZ = $this.$motionZ + $par12 * 0.4; - var$9 = jl_Math_randomImpl() * 0.30000001192092896 + 0.6000000238418579; - $this.$particleBlue = var$9; - $this.$particleGreen = var$9; - $this.$particleRed = var$9; - $this.$particleScale = $this.$particleScale * 0.75; - $this.$particleScale = $this.$particleScale * $par14; - $this.$field_70561_a = $this.$particleScale; - $this.$particleMaxAge = 6.0 / (jl_Math_randomImpl() * 0.8 + 0.6) | 0; - $this.$particleMaxAge = $this.$particleMaxAge * $par14 | 0; - $this.$noClip = 0; - nms_EntityFX_setParticleTextureIndex($this, 65); - $ptr = 1; - case 1: - $java.nms_EntityCritFX_onUpdate($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14, var$9, $ptr); -}; -$java.nms_EntityCritFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge * 32.0; - if ($var8 < 0.0) - $var8 = 0.0; - if ($var8 > 1.0) - $var8 = 1.0; - $this.$particleScale = $this.$field_70561_a * $var8; - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntityCritFX_onUpdate = function($this) { - 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();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = $this.$motionX; - var$3 = $this.$motionY; - var$4 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - $this.$particleGreen = $this.$particleGreen * 0.96; - $this.$particleBlue = $this.$particleBlue * 0.9; - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionY = $this.$motionY * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - $this.$motionY = $this.$motionY - 0.019999999552965164; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $ptr); -}; -function nms_EntitySpellParticleFX() { - nms_EntityFX.call(this); - this.$baseSpellTextureIndex = 0; -} -function nms_EntitySpellParticleFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntitySpellParticleFX(); - $java.nms_EntitySpellParticleFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntitySpellParticleFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $this.$baseSpellTextureIndex = 128; - $this.$motionY = $this.$motionY * 0.20000000298023224; - if ($par8 === 0.0 && $par12 === 0.0) { - $this.$motionX = $this.$motionX * 0.10000000149011612; - $this.$motionZ = $this.$motionZ * 0.10000000149011612; - } - $this.$particleScale = $this.$particleScale * 0.75; - $this.$particleMaxAge = 8.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; - $this.$noClip = 0; -}; -$java.nms_EntitySpellParticleFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge * 32.0; - if ($var8 < 0.0) - $var8 = 0.0; - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntitySpellParticleFX_onUpdate = function($this) { - var var$1, var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = $this.$baseSpellTextureIndex + (7 - (($this.$particleAge * 8 | 0) / $this.$particleMaxAge | 0) | 0) | 0; - $this.$particleTextureIndexX = var$2 % 16 | 0; - $this.$particleTextureIndexY = var$2 / 16 | 0; - $this.$motionY = $this.$motionY + 0.004; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - if ($this.$posY === $this.$prevPosY) { - $this.$motionX = $this.$motionX * 1.1; - $this.$motionZ = $this.$motionZ * 1.1; - } - $this.$motionX = $this.$motionX * 0.9599999785423279; - $this.$motionY = $this.$motionY * 0.9599999785423279; - $this.$motionZ = $this.$motionZ * 0.9599999785423279; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $ptr); -}; -function nms_EntitySpellParticleFX_setBaseSpellTextureIndex($this, $par1) { - $this.$baseSpellTextureIndex = $par1; -} -function nms_EntityNoteFX() { - nms_EntityFX.call(this); - this.$noteParticleScale = 0.0; -} -function nms_EntityNoteFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityNoteFX(); - $java.nms_EntityNoteFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityNoteFX__init_0 = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7) { - var var_8 = new nms_EntityNoteFX(); - $java.nms_EntityNoteFX__init_1(var_8, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7); - return var_8; -}; -$java.nms_EntityNoteFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntityNoteFX__init_1($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, 2.0); -}; -$java.nms_EntityNoteFX__init_1 = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14) { - var var$9, var$10; - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$motionX = $this.$motionX * 0.009999999776482582; - $this.$motionY = $this.$motionY * 0.009999999776482582; - $this.$motionZ = $this.$motionZ * 0.009999999776482582; - $this.$motionY = $this.$motionY + 0.2; - var$9 = $par8; - var$10 = (var$9 + 0.0) * 3.1415927410125732 * 2.0; - $this.$particleRed = nms_MathHelper_SIN_TABLE.data[(var$10 * 10430.3779296875 | 0) & 65535] * 0.6499999761581421 + 0.3499999940395355; - var$10 = (var$9 + 0.3333333432674408) * 3.1415927410125732 * 2.0; - $this.$particleGreen = nms_MathHelper_SIN_TABLE.data[(var$10 * 10430.3779296875 | 0) & 65535] * 0.6499999761581421 + 0.3499999940395355; - var$9 = (var$9 + 0.6666666865348816) * 3.1415927410125732 * 2.0; - $this.$particleBlue = nms_MathHelper_SIN_TABLE.data[(var$9 * 10430.3779296875 | 0) & 65535] * 0.6499999761581421 + 0.3499999940395355; - $this.$particleScale = $this.$particleScale * 0.75; - $this.$particleScale = $this.$particleScale * $par14; - $this.$noteParticleScale = $this.$particleScale; - $this.$particleMaxAge = 6; - $this.$noClip = 0; - nms_EntityFX_setParticleTextureIndex($this, 64); -}; -$java.nms_EntityNoteFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge * 32.0; - if ($var8 < 0.0) - $var8 = 0.0; - if ($var8 > 1.0) - $var8 = 1.0; - $this.$particleScale = $this.$noteParticleScale * $var8; - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntityNoteFX_onUpdate = function($this) { - 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();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = $this.$motionX; - var$3 = $this.$motionY; - var$4 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - if ($this.$posY === $this.$prevPosY) { - $this.$motionX = $this.$motionX * 1.1; - $this.$motionZ = $this.$motionZ * 1.1; - } - $this.$motionX = $this.$motionX * 0.6600000262260437; - $this.$motionY = $this.$motionY * 0.6600000262260437; - $this.$motionZ = $this.$motionZ * 0.6600000262260437; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $ptr); -}; -function nms_EntityPortalFX() { - var a = this; nms_EntityFX.call(a); - a.$portalParticleScale = 0.0; - a.$portalPosX = 0.0; - a.$portalPosY = 0.0; - a.$portalPosZ = 0.0; -} -function nms_EntityPortalFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityPortalFX(); - $java.nms_EntityPortalFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityPortalFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - var $var14, var$9; - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $this.$motionX = $par8; - $this.$motionY = $par10; - $this.$motionZ = $par12; - $this.$posX = $par2; - $this.$portalPosX = $par2; - $this.$posY = $par4; - $this.$portalPosY = $par4; - $this.$posZ = $par6; - $this.$portalPosZ = $par6; - $var14 = Math.random() * 0.6000000238418579 + 0.4000000059604645; - var$9 = Math.random() * 0.20000000298023224 + 0.5; - $this.$particleScale = var$9; - $this.$portalParticleScale = var$9; - $var14 = 1.0 * $var14; - $this.$particleBlue = $var14; - $this.$particleGreen = $var14; - $this.$particleRed = $var14; - $this.$particleGreen = $this.$particleGreen * 0.30000001192092896; - $this.$particleRed = $this.$particleRed * 0.8999999761581421; - $this.$particleMaxAge = (jl_Math_randomImpl() * 10.0 | 0) + 40 | 0; - $this.$noClip = 1; - nms_EntityFX_setParticleTextureIndex($this, jl_Math_randomImpl() * 8.0 | 0); -}; -$java.nms_EntityPortalFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = 1.0 - ($this.$particleAge + $par2) / $this.$particleMaxAge; - $var8 = 1.0 - $var8 * $var8; - $this.$particleScale = $this.$portalParticleScale * $var8; - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntityPortalFX_getBrightnessForRender = function($this, $par1) { - var $var2, $var3, $var4; - $var2 = nms_Entity_getBrightnessForRender($this, $par1); - $var3 = $this.$particleAge / $this.$particleMaxAge; - $par1 = $var3 * $var3; - $par1 = $par1 * $par1; - $var4 = $var2 & 255; - $var2 = ($var2 >> 16 & 255) + ($par1 * 15.0 * 16.0 | 0) | 0; - if ($var2 > 240) - $var2 = 240; - return $var4 | $var2 << 16; -}; -$java.nms_EntityPortalFX_onUpdate = function($this) { - var $var1, var$2, var$3, var$4, var$5, var$6; - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $var1 = $this.$particleAge / $this.$particleMaxAge; - var$2 = 1.0 - ( -$var1 + $var1 * $var1 * 2.0); - var$3 = $this.$portalPosX; - var$4 = $this.$motionX; - var$5 = var$2; - $this.$posX = var$3 + var$4 * var$5; - $this.$posY = $this.$portalPosY + $this.$motionY * var$5 + 1.0 - $var1; - $this.$posZ = $this.$portalPosZ + $this.$motionZ * var$5; - var$6 = $this.$particleAge; - $this.$particleAge = var$6 + 1 | 0; - if (var$6 >= $this.$particleMaxAge) - $this.$isDead = 1; -}; -function nms_EntityEnchantmentTableParticleFX() { - var a = this; nms_EntityFX.call(a); - a.$field_70565_a = 0.0; - a.$field_70568_aq = 0.0; - a.$field_70567_ar = 0.0; - a.$field_70566_as = 0.0; -} -function nms_EntityEnchantmentTableParticleFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityEnchantmentTableParticleFX(); - $java.nms_EntityEnchantmentTableParticleFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityEnchantmentTableParticleFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - var $var14, var$9; - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $this.$motionX = $par8; - $this.$motionY = $par10; - $this.$motionZ = $par12; - $this.$posX = $par2; - $this.$field_70568_aq = $par2; - $this.$posY = $par4; - $this.$field_70567_ar = $par4; - $this.$posZ = $par6; - $this.$field_70566_as = $par6; - $var14 = Math.random() * 0.6000000238418579 + 0.4000000059604645; - var$9 = Math.random() * 0.5 + 0.20000000298023224; - $this.$particleScale = var$9; - $this.$field_70565_a = var$9; - $var14 = 1.0 * $var14; - $this.$particleBlue = $var14; - $this.$particleGreen = $var14; - $this.$particleRed = $var14; - $this.$particleGreen = $this.$particleGreen * 0.8999999761581421; - $this.$particleRed = $this.$particleRed * 0.8999999761581421; - $this.$particleMaxAge = (jl_Math_randomImpl() * 10.0 | 0) + 30 | 0; - $this.$noClip = 1; - nms_EntityFX_setParticleTextureIndex($this, jl_Math_randomImpl() * 26.0 + 1.0 + 224.0 | 0); -}; -$java.nms_EntityEnchantmentTableParticleFX_getBrightnessForRender = function($this, $par1) { - var $var2, $var3, $var4; - $var2 = nms_Entity_getBrightnessForRender($this, $par1); - $var3 = $this.$particleAge / $this.$particleMaxAge; - $par1 = $var3 * $var3; - $par1 = $par1 * $par1; - $var4 = $var2 & 255; - $var2 = ($var2 >> 16 & 255) + ($par1 * 15.0 * 16.0 | 0) | 0; - if ($var2 > 240) - $var2 = 240; - return $var4 | $var2 << 16; -}; -$java.nms_EntityEnchantmentTableParticleFX_onUpdate = function($this) { - var $var1, $var2, var$3, var$4, var$5, var$6; - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $var1 = 1.0 - $this.$particleAge / $this.$particleMaxAge; - $var2 = 1.0 - $var1; - $var2 = $var2 * $var2; - $var2 = $var2 * $var2; - var$3 = $this.$field_70568_aq; - var$4 = $this.$motionX; - var$5 = $var1; - $this.$posX = var$3 + var$4 * var$5; - $this.$posY = $this.$field_70567_ar + $this.$motionY * var$5 - $var2 * 1.2000000476837158; - $this.$posZ = $this.$field_70566_as + $this.$motionZ * var$5; - var$6 = $this.$particleAge; - $this.$particleAge = var$6 + 1 | 0; - if (var$6 >= $this.$particleMaxAge) - $this.$isDead = 1; -}; -function nms_EntityExplodeFX() { - nms_EntityFX.call(this); -} -function nms_EntityExplodeFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityExplodeFX(); - $java.nms_EntityExplodeFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityExplodeFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - var var$8; - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $this.$motionX = $par8 + (jl_Math_randomImpl() * 2.0 - 1.0) * 0.05000000074505806; - $this.$motionY = $par10 + (jl_Math_randomImpl() * 2.0 - 1.0) * 0.05000000074505806; - $this.$motionZ = $par12 + (jl_Math_randomImpl() * 2.0 - 1.0) * 0.05000000074505806; - var$8 = Math.random() * 0.30000001192092896 + 0.699999988079071; - $this.$particleBlue = var$8; - $this.$particleGreen = var$8; - $this.$particleRed = var$8; - $this.$particleScale = Math.random() * Math.random() * 6.0 + 1.0; - $this.$particleMaxAge = (16.0 / (Math.random() * 0.8 + 0.2) | 0) + 2 | 0; -}; -$java.nms_EntityExplodeFX_onUpdate = function($this) { - var var$1, var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = 7 - (($this.$particleAge * 8 | 0) / $this.$particleMaxAge | 0) | 0; - $this.$particleTextureIndexX = var$2 % 16 | 0; - $this.$particleTextureIndexY = var$2 / 16 | 0; - $this.$motionY = $this.$motionY + 0.004; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.8999999761581421; - $this.$motionY = $this.$motionY * 0.8999999761581421; - $this.$motionZ = $this.$motionZ * 0.8999999761581421; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $ptr); -}; -function nms_EntityFlameFX() { - nms_EntityFX.call(this); - this.$flameScale = 0.0; -} -function nms_EntityFlameFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityFlameFX(); - $java.nms_EntityFlameFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityFlameFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $this.$motionX = $this.$motionX * 0.009999999776482582 + $par8; - $this.$motionY = $this.$motionY * 0.009999999776482582 + $par10; - $this.$motionZ = $this.$motionZ * 0.009999999776482582 + $par12; - Math.random(); - Math.random(); - Math.random(); - Math.random(); - Math.random(); - Math.random(); - $this.$flameScale = $this.$particleScale; - $this.$particleBlue = 1.0; - $this.$particleGreen = 1.0; - $this.$particleRed = 1.0; - $this.$particleMaxAge = (8.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0) + 4 | 0; - $this.$noClip = 1; - nms_EntityFX_setParticleTextureIndex($this, 48); -}; -$java.nms_EntityFlameFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge; - $this.$particleScale = $this.$flameScale * (1.0 - $var8 * $var8 * 0.5); - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntityFlameFX_getBrightnessForRender = function($this, $par1) { - var $var2, $var3, $var4, $var5; - $var2 = ($this.$particleAge + $par1) / $this.$particleMaxAge; - if ($var2 < 0.0) - $var2 = 0.0; - if ($var2 > 1.0) - $var2 = 1.0; - $var3 = nms_Entity_getBrightnessForRender($this, $par1); - $var4 = $var3 & 255; - $var5 = $var3 >> 16 & 255; - $var3 = $var4 + ($var2 * 15.0 * 16.0 | 0) | 0; - if ($var3 > 240) - $var3 = 240; - return $var3 | $var5 << 16; -}; -$java.nms_EntityFlameFX_onUpdate = function($this) { - 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();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = $this.$motionX; - var$3 = $this.$motionY; - var$4 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9599999785423279; - $this.$motionY = $this.$motionY * 0.9599999785423279; - $this.$motionZ = $this.$motionZ * 0.9599999785423279; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $ptr); -}; -function nms_EntityLavaFX() { - nms_EntityFX.call(this); - this.$lavaParticleScale = 0.0; -} -function nms_EntityLavaFX__init_(var_0, var_1, var_2, var_3) { - var var_4 = new nms_EntityLavaFX(); - $java.nms_EntityLavaFX__init_(var_4, var_0, var_1, var_2, var_3); - return var_4; -} -$java.nms_EntityLavaFX__init_ = function($this, $par1World, $par2, $par4, $par6) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$motionX = $this.$motionX * 0.800000011920929; - $this.$motionY = $this.$motionY * 0.800000011920929; - $this.$motionZ = $this.$motionZ * 0.800000011920929; - $this.$motionY = Math.random() * 0.4000000059604645 + 0.05000000074505806; - $this.$particleBlue = 1.0; - $this.$particleGreen = 1.0; - $this.$particleRed = 1.0; - $this.$particleScale = $this.$particleScale * (Math.random() * 2.0 + 0.20000000298023224); - $this.$lavaParticleScale = $this.$particleScale; - $this.$particleMaxAge = 16.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; - $this.$noClip = 0; - nms_EntityFX_setParticleTextureIndex($this, 49); -}; -$java.nms_EntityLavaFX_getBrightnessForRender = function($this, $par1) { - var $var2; - $var2 = ($this.$particleAge + $par1) / $this.$particleMaxAge; - if ($var2 < 0.0) - $var2 = 0.0; - return 240 | (nms_Entity_getBrightnessForRender($this, $par1) >> 16 & 255) << 16; -}; -$java.nms_EntityLavaFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge; - $this.$particleScale = $this.$lavaParticleScale * (1.0 - $var8 * $var8); - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntityLavaFX_onUpdate = function($this) { - var var$1, $var1, var$3, var$4, var$5, 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();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var1 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - $var1 = $this.$particleAge / $this.$particleMaxAge; - if (Math.random() > $var1) { - var$3 = $this.$worldObj; - var$4 = $rt_s(852); - var$5 = $this.$posX; - var$6 = $this.$posY; - var$7 = $this.$posZ; - var$8 = $this.$motionX; - var$9 = $this.$motionY; - var$10 = $this.$motionZ; - var$1 = 0; - if (var$1 < var$3.$worldAccesses.$size0) { - var$11 = var$3.$worldAccesses; - if (var$1 >= 0 && var$1 < var$11.$size0) { - var$11 = var$11.$array1.data[var$1]; - $ptr = 2; - continue main; - } - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - } - $this.$motionY = $this.$motionY - 0.03; - var$5 = $this.$motionX; - var$6 = $this.$motionY; - var$7 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$5, var$6, var$7); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9990000128746033; - $this.$motionY = $this.$motionY * 0.9990000128746033; - $this.$motionZ = $this.$motionZ * 0.9990000128746033; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - case 2: - nms_RenderGlobal_doSpawnParticle(var$11, var$4, var$5, var$6, var$7, var$8, var$9, var$10); - if ($rt_suspending()) { - break main; - } - var$1 = var$1 + 1 | 0; - if (var$1 >= var$3.$worldAccesses.$size0) { - $this.$motionY = $this.$motionY - 0.03; - var$5 = $this.$motionX; - var$6 = $this.$motionY; - var$7 = $this.$motionZ; - $ptr = 1; - continue main; - } - var$11 = var$3.$worldAccesses; - if (var$1 >= 0 && var$1 < var$11.$size0) { - var$11 = var$11.$array1.data[var$1]; - continue main; - } - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, $var1, var$3, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, $ptr); -}; -function nms_EntityFootStepFX() { - var a = this; nms_EntityFX.call(a); - a.$field_70576_a = 0; - a.$field_70578_aq = 0; - a.$currentFootSteps = null; -} -$java.nms_EntityFootStepFX_fp = null; -function nms_EntityFootStepFX__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityFootStepFX(); - $java.nms_EntityFootStepFX__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -$java.nms_EntityFootStepFX__init_ = function($this, $par1RenderEngine, $par2World, $par3, $par5, $par7) { - $java.nms_EntityFX__init_2($this, $par2World, $par3, $par5, $par7, 0.0, 0.0, 0.0); - $this.$field_70576_a = 0; - $this.$field_70578_aq = 0; - $this.$currentFootSteps = $par1RenderEngine; - $this.$motionZ = 0.0; - $this.$motionY = 0.0; - $this.$motionX = 0.0; - $this.$field_70578_aq = 200; -}; -$java.nms_EntityFootStepFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var11, $var12, $var13, var$13, var$14, var$15, var$16, var$17, $var14, var$19, var$20, var$21, var$22; - $var8 = ($this.$field_70576_a + $par2) / $this.$field_70578_aq; - $var9 = 2.0 - $var8 * $var8 * 2.0; - if ($var9 > 1.0) - $var9 = 1.0; - $par2 = $var9 * 0.20000000298023224; - nleg_EaglerAdapterGL30_glDisable(13); - $var11 = $this.$posX - nms_EntityFX_interpPosX; - $var12 = $this.$posY - nms_EntityFX_interpPosY; - $var13 = $this.$posZ - nms_EntityFX_interpPosZ; - var$13 = $this.$worldObj; - var$14 = $this.$posX; - var$15 = var$14 | 0; - if (var$14 < var$15) - var$15 = var$15 - 1 | 0; - var$14 = $this.$posY; - var$16 = var$14 | 0; - if (var$14 < var$16) - var$16 = var$16 - 1 | 0; - var$14 = $this.$posZ; - var$17 = var$14 | 0; - if (var$14 < var$17) - var$17 = var$17 - 1 | 0; - $var14 = var$13.$provider.$lightBrightnessTable.data[nms_World_getBlockLightValue_do(var$13, var$15, var$16, var$17, 1)]; - nle_TextureLocation_bindTexture($java.nms_EntityFootStepFX_fp); - nleg_EaglerAdapterGL30_glEnable(16); - nleg_EaglerAdapterGL30_glBlendFunc(42, 43); - nlea_Tessellator_startDrawing($par1Tessellator, 98); - var$19 = $var14 * 255.0 | 0; - nlea_Tessellator_setColorRGBA($par1Tessellator, var$19, var$19, var$19, $par2 * 255.0 | 0); - var$14 = $var11 - 0.125; - var$20 = $var12; - var$21 = $var13 + 0.125; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = 0.0; - $par1Tessellator.$textureV = 1.0; - nlea_Tessellator_addVertex($par1Tessellator, var$14, var$20, var$21); - var$22 = $var11 + 0.125; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = 1.0; - $par1Tessellator.$textureV = 1.0; - nlea_Tessellator_addVertex($par1Tessellator, var$22, var$20, var$21); - var$21 = $var13 - 0.125; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = 1.0; - $par1Tessellator.$textureV = 0.0; - nlea_Tessellator_addVertex($par1Tessellator, var$22, var$20, var$21); - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = 0.0; - $par1Tessellator.$textureV = 0.0; - nlea_Tessellator_addVertex($par1Tessellator, var$14, var$20, var$21); - nlea_Tessellator_draw($par1Tessellator); - nleg_EaglerAdapterGL30_glDisable(16); - nleg_EaglerAdapterGL30_glEnable(13); -}; -$java.nms_EntityFootStepFX_onUpdate = function($this) { - $this.$field_70576_a = $this.$field_70576_a + 1 | 0; - if ($this.$field_70576_a == $this.$field_70578_aq) - $this.$isDead = 1; -}; -$java.nms_EntityFootStepFX_getFXLayer = function($this) { - return 3; -}; -function nms_EntityFootStepFX__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2898); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_EntityFootStepFX_fp = var$1; -} -function nms_EntitySplashFX() { - nms_EntityRainFX.call(this); -} -function nms_EntitySplashFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntitySplashFX(); - $java.nms_EntitySplashFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntitySplashFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntityRainFX__init_($this, $par1World, $par2, $par4, $par6); - $this.$particleGravity = 0.03999999910593033; - $this.$particleTextureIndexX = $this.$particleTextureIndexX + 1 | 0; - if ($par10 === 0.0 && !($par8 === 0.0 && $par12 === 0.0)) { - $this.$motionX = $par8; - $this.$motionY = $par10 + 0.1; - $this.$motionZ = $par12; - } -}; -function nms_EntityCloudFX() { - nms_EntityFX.call(this); - this.$field_70569_a = 0.0; -} -function nms_EntityCloudFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityCloudFX(); - $java.nms_EntityCloudFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityCloudFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - var var$8; - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$motionX = $this.$motionX * 0.10000000149011612; - $this.$motionY = $this.$motionY * 0.10000000149011612; - $this.$motionZ = $this.$motionZ * 0.10000000149011612; - $this.$motionX = $this.$motionX + $par8; - $this.$motionY = $this.$motionY + $par10; - $this.$motionZ = $this.$motionZ + $par12; - var$8 = 1.0 - jl_Math_randomImpl() * 0.30000001192092896; - $this.$particleBlue = var$8; - $this.$particleGreen = var$8; - $this.$particleRed = var$8; - $this.$particleScale = $this.$particleScale * 0.75; - $this.$particleScale = $this.$particleScale * 2.5; - $this.$field_70569_a = $this.$particleScale; - $this.$particleMaxAge = 8.0 / (jl_Math_randomImpl() * 0.8 + 0.3) | 0; - $this.$particleMaxAge = $this.$particleMaxAge * 2.5 | 0; - $this.$noClip = 0; -}; -$java.nms_EntityCloudFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge * 32.0; - if ($var8 < 0.0) - $var8 = 0.0; - if ($var8 > 1.0) - $var8 = 1.0; - $this.$particleScale = $this.$field_70569_a * $var8; - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntityCloudFX_onUpdate = function($this) { - var var$1, var$2, var$3, var$4, var$5, $var1, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var1 = $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: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = 7 - (($this.$particleAge * 8 | 0) / $this.$particleMaxAge | 0) | 0; - $this.$particleTextureIndexX = var$2 % 16 | 0; - $this.$particleTextureIndexY = var$2 / 16 | 0; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9599999785423279; - $this.$motionY = $this.$motionY * 0.9599999785423279; - $this.$motionZ = $this.$motionZ * 0.9599999785423279; - $var1 = nms_World_getClosestPlayer($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 2.0); - if ($var1 !== null && $this.$posY > $var1.$boundingBox.$minY) { - $this.$posY = $this.$posY + ($var1.$boundingBox.$minY - $this.$posY) * 0.2; - $this.$motionY = $this.$motionY + ($var1.$motionY - $this.$motionY) * 0.2; - nms_Entity_setPosition($this, $this.$posX, $this.$posY, $this.$posZ); - } - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $var1, $ptr); -}; -function nms_EntityReddustFX() { - nms_EntityFX.call(this); - this.$reddustParticleScale = 0.0; -} -function nms_EntityReddustFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityReddustFX(); - $java.nms_EntityReddustFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityReddustFX__init_0 = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7) { - var var_8 = new nms_EntityReddustFX(); - $java.nms_EntityReddustFX__init_1(var_8, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7); - return var_8; -}; -$java.nms_EntityReddustFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par9, $par10) { - $java.nms_EntityReddustFX__init_1($this, $par1World, $par2, $par4, $par6, 1.0, $par8, $par9, $par10); -}; -$java.nms_EntityReddustFX__init_1 = function($this, $par1World, $par2, $par4, $par6, $par8, $par9, $par10, $par11) { - var $var12; - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$motionX = $this.$motionX * 0.10000000149011612; - $this.$motionY = $this.$motionY * 0.10000000149011612; - $this.$motionZ = $this.$motionZ * 0.10000000149011612; - if ($par9 === 0.0) - $par9 = 1.0; - $var12 = jl_Math_randomImpl() * 0.4000000059604645 + 0.6000000238418579; - $this.$particleRed = (jl_Math_randomImpl() * 0.20000000298023224 + 0.800000011920929) * $par9 * $var12; - $this.$particleGreen = (jl_Math_randomImpl() * 0.20000000298023224 + 0.800000011920929) * $par10 * $var12; - $this.$particleBlue = (jl_Math_randomImpl() * 0.20000000298023224 + 0.800000011920929) * $par11 * $var12; - $this.$particleScale = $this.$particleScale * 0.75; - $this.$particleScale = $this.$particleScale * $par8; - $this.$reddustParticleScale = $this.$particleScale; - $this.$particleMaxAge = 8.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; - $this.$particleMaxAge = $this.$particleMaxAge * $par8 | 0; - $this.$noClip = 0; -}; -$java.nms_EntityReddustFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge * 32.0; - if ($var8 < 0.0) - $var8 = 0.0; - if ($var8 > 1.0) - $var8 = 1.0; - $this.$particleScale = $this.$reddustParticleScale * $var8; - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntityReddustFX_onUpdate = function($this) { - var var$1, var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = 7 - (($this.$particleAge * 8 | 0) / $this.$particleMaxAge | 0) | 0; - $this.$particleTextureIndexX = var$2 % 16 | 0; - $this.$particleTextureIndexY = var$2 / 16 | 0; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - if ($this.$posY === $this.$prevPosY) { - $this.$motionX = $this.$motionX * 1.1; - $this.$motionZ = $this.$motionZ * 1.1; - } - $this.$motionX = $this.$motionX * 0.9599999785423279; - $this.$motionY = $this.$motionY * 0.9599999785423279; - $this.$motionZ = $this.$motionZ * 0.9599999785423279; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $ptr); -}; -function nms_EntityBreakingFX() { - nms_EntityFX.call(this); -} -$java.nms_EntityBreakingFX__init_ = function(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new nms_EntityBreakingFX(); - nms_EntityBreakingFX__init_(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -}; -$java.nms_EntityBreakingFX__init_0 = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8) { - var var_9 = new nms_EntityBreakingFX(); - nms_EntityBreakingFX__init_0(var_9, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8); - return var_9; -}; -function nms_EntityBreakingFX__init_($this, $par1World, $par2, $par4, $par6, $par8Item, $par9RenderEngine) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $java.nms_EntityFX_setParticleIcon($this, $par9RenderEngine, $par8Item.$getIconFromDamage(0)); - $this.$particleBlue = 1.0; - $this.$particleGreen = 1.0; - $this.$particleRed = 1.0; - nms_Block_$callClinit(); - $this.$particleGravity = nms_Block_blockSnow.$blockParticleGravity; - $this.$particleScale = $this.$particleScale / 2.0; -} -function nms_EntityBreakingFX__init_0($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14Item, $par15RenderEngine) { - nms_EntityBreakingFX__init_($this, $par1World, $par2, $par4, $par6, $par14Item, $par15RenderEngine); - $this.$motionX = $this.$motionX * 0.10000000149011612; - $this.$motionY = $this.$motionY * 0.10000000149011612; - $this.$motionZ = $this.$motionZ * 0.10000000149011612; - $this.$motionX = $this.$motionX + $par8; - $this.$motionY = $this.$motionY + $par10; - $this.$motionZ = $this.$motionZ + $par12; -} -$java.nms_EntityBreakingFX_getFXLayer = function($this) { - return 2; -}; -$java.nms_EntityBreakingFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var10, $var11, $var12, var$13, var$14, var$15, $var13, $var14, $var15, var$19, var$20, $var16, var$22, var$23; - $var8 = ($this.$particleTextureIndexX + $this.$particleTextureJitterX / 4.0) / 16.0; - $var9 = $var8 + 0.015609375201165676; - $var10 = ($this.$particleTextureIndexY + $this.$particleTextureJitterY / 4.0) / 16.0; - $var11 = $var10 + 0.015609375201165676; - $var12 = 0.10000000149011612 * $this.$particleScale; - if ($this.$particleIcon !== null) { - $var8 = $this.$particleIcon.$getInterpolatedU($this.$particleTextureJitterX / 4.0 * 16.0); - $var9 = $this.$particleIcon.$getInterpolatedU(($this.$particleTextureJitterX + 1.0) / 4.0 * 16.0); - $var10 = $this.$particleIcon.$getInterpolatedV($this.$particleTextureJitterY / 4.0 * 16.0); - $var11 = $this.$particleIcon.$getInterpolatedV(($this.$particleTextureJitterY + 1.0) / 4.0 * 16.0); - } - var$13 = $this.$prevPosX; - var$14 = $this.$posX - $this.$prevPosX; - var$15 = $par2; - $var13 = var$13 + var$14 * var$15 - nms_EntityFX_interpPosX; - $var14 = $this.$prevPosY + ($this.$posY - $this.$prevPosY) * var$15 - nms_EntityFX_interpPosY; - $var15 = $this.$prevPosZ + ($this.$posZ - $this.$prevPosZ) * var$15 - nms_EntityFX_interpPosZ; - var$19 = 1.0 * $this.$particleRed; - var$20 = 1.0 * $this.$particleGreen; - $var16 = 1.0 * $this.$particleBlue; - nlea_Tessellator_setColorRGBA($par1Tessellator, var$19 * 255.0 | 0, var$20 * 255.0 | 0, $var16 * 255.0 | 0, 255); - $var16 = $par3 * $var12; - var$19 = $var13 - $var16; - $par6 = $par6 * $var12; - var$15 = var$19 - $par6; - $par2 = $par4 * $var12; - var$22 = $var14 - $par2; - $par5 = $par5 * $var12; - var$20 = $var15 - $par5; - $var12 = $par7 * $var12; - var$14 = var$20 - $var12; - var$13 = $var8; - var$23 = $var11; - $par1Tessellator.$hasTexture = 1; - $par3 = var$13; - $par1Tessellator.$textureU = $par3; - $par4 = var$23; - $par1Tessellator.$textureV = $par4; - nlea_Tessellator_addVertex($par1Tessellator, var$15, var$22, var$14); - var$15 = var$19 + $par6; - var$14 = $var14 + $par2; - var$13 = var$20 + $var12; - var$23 = $var10; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = $par3; - $par7 = var$23; - $par1Tessellator.$textureV = $par7; - nlea_Tessellator_addVertex($par1Tessellator, var$15, var$14, var$13); - $var13 = $var13 + $var16; - var$15 = $var13 + $par6; - $par2 = $var15 + $par5; - var$13 = $par2 + $var12; - var$23 = $var9; - $par1Tessellator.$hasTexture = 1; - $par5 = var$23; - $par1Tessellator.$textureU = $par5; - $par1Tessellator.$textureV = $par7; - nlea_Tessellator_addVertex($par1Tessellator, var$15, var$14, var$13); - var$15 = $var13 - $par6; - var$14 = $par2 - $var12; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = $par5; - $par1Tessellator.$textureV = $par4; - nlea_Tessellator_addVertex($par1Tessellator, var$15, var$22, var$14); -}; -function nms_EntityDropParticleFX() { - var a = this; nms_EntityFX.call(a); - a.$materialType = null; - a.$bobTimer = 0; -} -$java.nms_EntityDropParticleFX__init_ = function(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_EntityDropParticleFX(); - nms_EntityDropParticleFX__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -}; -function nms_EntityDropParticleFX__init_($this, $par1World, $par2, $par4, $par6, $par8Material) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$motionZ = 0.0; - $this.$motionY = 0.0; - $this.$motionX = 0.0; - nms_Material_$callClinit(); - if ($par8Material !== nms_Material_water) { - $this.$particleRed = 1.0; - $this.$particleGreen = 0.0; - $this.$particleBlue = 0.0; - } else { - $this.$particleRed = 0.0; - $this.$particleGreen = 0.0; - $this.$particleBlue = 1.0; - $this.$particleAlpha = 0.4000000059604645; - } - nms_EntityFX_setParticleTextureIndex($this, 113); - nms_Entity_setSize($this, 0.009999999776482582, 0.009999999776482582); - $this.$particleGravity = 0.05999999865889549; - $this.$materialType = $par8Material; - $this.$bobTimer = 40; - $this.$particleMaxAge = 64.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; - $this.$motionZ = 0.0; - $this.$motionY = 0.0; - $this.$motionX = 0.0; -} -$java.nms_EntityDropParticleFX_getBrightnessForRender = function($this, $par1) { - var var$2; - var$2 = $this.$materialType; - nms_Material_$callClinit(); - return var$2 !== nms_Material_water ? 257 : nms_Entity_getBrightnessForRender($this, $par1); -}; -$java.nms_EntityDropParticleFX_onUpdate = function($this) { - var $var1, var$2, $var2, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, 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();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $var1 = $this.$materialType; - nms_Material_$callClinit(); - if ($var1 === nms_Material_water) { - $this.$particleRed = 0.20000000298023224; - $this.$particleGreen = 0.30000001192092896; - $this.$particleBlue = 1.0; - } else { - $this.$particleRed = 1.0; - $this.$particleGreen = 16.0 / ((40 - $this.$bobTimer | 0) + 16 | 0); - $this.$particleBlue = 4.0 / ((40 - $this.$bobTimer | 0) + 8 | 0); - } - $this.$motionY = $this.$motionY - $this.$particleGravity; - var$2 = $this.$bobTimer; - $this.$bobTimer = var$2 - 1 | 0; - if (var$2 <= 0) { - $this.$particleTextureIndexX = 0; - $this.$particleTextureIndexY = 7; - } else { - $this.$motionX = $this.$motionX * 0.02; - $this.$motionY = $this.$motionY * 0.02; - $this.$motionZ = $this.$motionZ * 0.02; - $this.$particleTextureIndexX = 1; - $this.$particleTextureIndexY = 7; - } - $var2 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, $var2, var$4, var$5); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9800000190734863; - $this.$motionY = $this.$motionY * 0.9800000190734863; - $this.$motionZ = $this.$motionZ * 0.9800000190734863; - var$2 = $this.$particleMaxAge; - $this.$particleMaxAge = var$2 - 1 | 0; - if (var$2 <= 0) - $this.$isDead = 1; - if ($this.$onGround) { - if ($this.$materialType !== nms_Material_water) { - $this.$particleTextureIndexX = 2; - $this.$particleTextureIndexY = 7; - } else { - $this.$isDead = 1; - $var1 = $this.$worldObj; - var$6 = $rt_s(679); - var$7 = $this.$posX; - var$8 = $this.$posY; - var$9 = $this.$posZ; - $var2 = 0.0; - var$4 = 0.0; - var$5 = 0.0; - var$2 = 0; - if (var$2 < ju_ArrayList_size($var1.$worldAccesses)) { - var$10 = $var1.$worldAccesses; - if (var$2 >= 0 && var$2 < var$10.$size0) { - var$10 = var$10.$array1.data[var$2]; - $ptr = 2; - continue main; - } - $var1 = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($var1); - $rt_throw($var1); - } - } - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - $var1 = $this.$worldObj; - $var2 = $this.$posX; - var$11 = $var2 | 0; - if ($var2 < var$11) - var$11 = var$11 - 1 | 0; - $var2 = $this.$posY; - var$12 = $var2 | 0; - if ($var2 < var$12) - var$12 = var$12 - 1 | 0; - $var2 = $this.$posZ; - var$13 = $var2 | 0; - if ($var2 < var$13) - var$13 = var$13 - 1 | 0; - var$2 = nms_World_getBlockId($var1, var$11, var$12, var$13); - if (!var$2) - $var1 = nms_Material_air; - else { - nms_Block_$callClinit(); - $var1 = nms_Block_blocksList.data[var$2].$blockMaterial; - } - if (!(!$var1.$isLiquid() && !$var1.$isSolid())) { - $var2 = (nms_MathHelper_floor_double($this.$posY) + 1 | 0) - nms_BlockFluid_getFluidHeightPercent(nms_World_getBlockMetadata($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$posY), nms_MathHelper_floor_double($this.$posZ))); - if ($this.$posY < $var2) { - $ptr = 3; - continue main; - } - } - return; - case 2: - nms_RenderGlobal_spawnParticle(var$10, var$6, var$7, var$8, var$9, $var2, var$4, var$5); - if ($rt_suspending()) { - break main; - } - var$2 = var$2 + 1 | 0; - if (var$2 < ju_ArrayList_size($var1.$worldAccesses)) { - var$10 = $var1.$worldAccesses; - if (var$2 >= 0 && var$2 < var$10.$size0) { - var$10 = var$10.$array1.data[var$2]; - continue main; - } - $var1 = new jl_IndexOutOfBoundsException; - jl_Throwable__init_($var1); - $rt_throw($var1); - } - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - $var1 = $this.$worldObj; - $var2 = $this.$posX; - var$11 = $var2 | 0; - if ($var2 < var$11) - var$11 = var$11 - 1 | 0; - $var2 = $this.$posY; - var$12 = $var2 | 0; - if ($var2 < var$12) - var$12 = var$12 - 1 | 0; - $var2 = $this.$posZ; - var$13 = $var2 | 0; - if ($var2 < var$13) - var$13 = var$13 - 1 | 0; - var$2 = nms_World_getBlockId($var1, var$11, var$12, var$13); - if (!var$2) - $var1 = nms_Material_air; - else { - nms_Block_$callClinit(); - $var1 = nms_Block_blocksList.data[var$2].$blockMaterial; - } - if (!(!$var1.$isLiquid() && !$var1.$isSolid())) { - $var2 = (nms_MathHelper_floor_double($this.$posY) + 1 | 0) - nms_BlockFluid_getFluidHeightPercent(nms_World_getBlockMetadata($this.$worldObj, nms_MathHelper_floor_double($this.$posX), nms_MathHelper_floor_double($this.$posY), nms_MathHelper_floor_double($this.$posZ))); - if ($this.$posY < $var2) { - $ptr = 3; - continue main; - } - } - return; - case 3: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, var$2, $var2, var$4, var$5, var$6, var$7, var$8, var$9, var$10, var$11, var$12, var$13, $ptr); -}; -function nms_EntitySnowShovelFX() { - nms_EntityFX.call(this); - this.$snowDigParticleScale = 0.0; -} -function nms_EntitySnowShovelFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntitySnowShovelFX(); - $java.nms_EntitySnowShovelFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntitySnowShovelFX__init_0 = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7) { - var var_8 = new nms_EntitySnowShovelFX(); - $java.nms_EntitySnowShovelFX__init_1(var_8, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7); - return var_8; -}; -$java.nms_EntitySnowShovelFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntitySnowShovelFX__init_1($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, 1.0); -}; -$java.nms_EntitySnowShovelFX__init_1 = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14) { - var var$9; - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12); - $this.$motionX = $this.$motionX * 0.10000000149011612; - $this.$motionY = $this.$motionY * 0.10000000149011612; - $this.$motionZ = $this.$motionZ * 0.10000000149011612; - $this.$motionX = $this.$motionX + $par8; - $this.$motionY = $this.$motionY + $par10; - $this.$motionZ = $this.$motionZ + $par12; - var$9 = 1.0 - jl_Math_randomImpl() * 0.30000001192092896; - $this.$particleBlue = var$9; - $this.$particleGreen = var$9; - $this.$particleRed = var$9; - $this.$particleScale = $this.$particleScale * 0.75; - $this.$particleScale = $this.$particleScale * $par14; - $this.$snowDigParticleScale = $this.$particleScale; - $this.$particleMaxAge = 8.0 / (jl_Math_randomImpl() * 0.8 + 0.2) | 0; - $this.$particleMaxAge = $this.$particleMaxAge * $par14 | 0; - $this.$noClip = 0; -}; -$java.nms_EntitySnowShovelFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge * 32.0; - if ($var8 < 0.0) - $var8 = 0.0; - if ($var8 > 1.0) - $var8 = 1.0; - $this.$particleScale = $this.$snowDigParticleScale * $var8; - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntitySnowShovelFX_onUpdate = function($this) { - var var$1, var$2, var$3, 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();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = 7 - (($this.$particleAge * 8 | 0) / $this.$particleMaxAge | 0) | 0; - $this.$particleTextureIndexX = var$2 % 16 | 0; - $this.$particleTextureIndexY = var$2 / 16 | 0; - $this.$motionY = $this.$motionY - 0.03; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9900000095367432; - $this.$motionY = $this.$motionY * 0.9900000095367432; - $this.$motionZ = $this.$motionZ * 0.9900000095367432; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $ptr); -}; -function nms_EntityHeartFX() { - nms_EntityFX.call(this); - this.$particleScaleOverTime = 0.0; -} -function nms_EntityHeartFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6) { - var var_7 = new nms_EntityHeartFX(); - $java.nms_EntityHeartFX__init_(var_7, var_0, var_1, var_2, var_3, var_4, var_5, var_6); - return var_7; -} -$java.nms_EntityHeartFX__init_0 = function(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7) { - var var_8 = new nms_EntityHeartFX(); - $java.nms_EntityHeartFX__init_1(var_8, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7); - return var_8; -}; -$java.nms_EntityHeartFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12) { - $java.nms_EntityHeartFX__init_1($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, 2.0); -}; -$java.nms_EntityHeartFX__init_1 = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14) { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$motionX = $this.$motionX * 0.009999999776482582; - $this.$motionY = $this.$motionY * 0.009999999776482582; - $this.$motionZ = $this.$motionZ * 0.009999999776482582; - $this.$motionY = $this.$motionY + 0.1; - $this.$particleScale = $this.$particleScale * 0.75; - $this.$particleScale = $this.$particleScale * $par14; - $this.$particleScaleOverTime = $this.$particleScale; - $this.$particleMaxAge = 16; - $this.$noClip = 0; - nms_EntityFX_setParticleTextureIndex($this, 80); -}; -$java.nms_EntityHeartFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8; - $var8 = ($this.$particleAge + $par2) / $this.$particleMaxAge * 32.0; - if ($var8 < 0.0) - $var8 = 0.0; - if ($var8 > 1.0) - $var8 = 1.0; - $this.$particleScale = $this.$particleScaleOverTime * $var8; - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntityHeartFX_onUpdate = function($this) { - 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();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - var$2 = $this.$motionX; - var$3 = $this.$motionY; - var$4 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$2, var$3, var$4); - if ($rt_suspending()) { - break main; - } - if ($this.$posY === $this.$prevPosY) { - $this.$motionX = $this.$motionX * 1.1; - $this.$motionZ = $this.$motionZ * 1.1; - } - $this.$motionX = $this.$motionX * 0.8600000143051147; - $this.$motionY = $this.$motionY * 0.8600000143051147; - $this.$motionZ = $this.$motionZ * 0.8600000143051147; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, $ptr); -}; -function nms_EntityLargeExplodeFX() { - var a = this; nms_EntityFX.call(a); - a.$field_70581_a = 0; - a.$field_70584_aq = 0; - a.$theRenderEngine = null; - a.$field_70582_as = 0.0; -} -$java.nms_EntityLargeExplodeFX_explosion = null; -function nms_EntityLargeExplodeFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7) { - var var_8 = new nms_EntityLargeExplodeFX(); - $java.nms_EntityLargeExplodeFX__init_(var_8, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7); - return var_8; -} -$java.nms_EntityLargeExplodeFX__init_ = function($this, $par1RenderEngine, $par2World, $par3, $par5, $par7, $par9, $par11, $par13) { - var var$9; - $java.nms_EntityFX__init_2($this, $par2World, $par3, $par5, $par7, 0.0, 0.0, 0.0); - $this.$field_70581_a = 0; - $this.$field_70584_aq = 0; - $this.$theRenderEngine = $par1RenderEngine; - $this.$field_70584_aq = 6 + (Math.random() * 4.0 | 0) | 0; - var$9 = Math.random() * 0.6000000238418579 + 0.4000000059604645; - $this.$particleBlue = var$9; - $this.$particleGreen = var$9; - $this.$particleRed = var$9; - $this.$field_70582_as = 1.0 - $par9 * 0.5; -}; -$java.nms_EntityLargeExplodeFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var8, $var9, $var10, $var11, $var12, $var13, var$14, var$15, var$16, $var14, $var15, $var16, var$20, var$21, var$22, var$23; - $var8 = ($this.$field_70581_a + $par2) * 15.0 / $this.$field_70584_aq | 0; - if ($var8 <= 15) { - nle_TextureLocation_bindTexture($java.nms_EntityLargeExplodeFX_explosion); - $var9 = ($var8 % 4 | 0) / 4.0; - $var10 = $var9 + 0.24975000321865082; - $var11 = ($var8 / 4 | 0) / 4.0; - $var12 = $var11 + 0.24975000321865082; - $var13 = 2.0 * $this.$field_70582_as; - var$14 = $this.$prevPosX; - var$15 = $this.$posX - $this.$prevPosX; - var$16 = $par2; - $var14 = var$14 + var$15 * var$16 - nms_EntityFX_interpPosX; - $var15 = $this.$prevPosY + ($this.$posY - $this.$prevPosY) * var$16 - nms_EntityFX_interpPosY; - $var16 = $this.$prevPosZ + ($this.$posZ - $this.$prevPosZ) * var$16 - nms_EntityFX_interpPosZ; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nleg_EaglerAdapterGL30_glDisable(13); - nlea_Tessellator_startDrawing($par1Tessellator, 98); - nlea_Tessellator_setColorRGBA($par1Tessellator, $this.$particleRed * 255.0 | 0, $this.$particleGreen * 255.0 | 0, $this.$particleBlue * 255.0 | 0, 255); - nlea_Tessellator_setNormal($par1Tessellator, 0.0, 1.0, 0.0); - $par1Tessellator.$hasBrightness = 1; - $par1Tessellator.$brightness = 240; - $par2 = $par3 * $var13; - $par3 = $var14 - $par2; - $par6 = $par6 * $var13; - var$14 = $par3 - $par6; - $par4 = $par4 * $var13; - var$15 = $var15 - $par4; - $par5 = $par5 * $var13; - var$20 = $var16 - $par5; - var$21 = $par7 * $var13; - var$22 = var$20 - var$21; - var$16 = $var10; - var$23 = $var12; - $par1Tessellator.$hasTexture = 1; - $par7 = var$16; - $par1Tessellator.$textureU = $par7; - $var10 = var$23; - $par1Tessellator.$textureV = $var10; - nlea_Tessellator_addVertex($par1Tessellator, var$14, var$15, var$22); - var$14 = $par3 + $par6; - var$22 = $var15 + $par4; - var$16 = var$20 + var$21; - var$23 = $var11; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = $par7; - $par3 = var$23; - $par1Tessellator.$textureV = $par3; - nlea_Tessellator_addVertex($par1Tessellator, var$14, var$22, var$16); - $par2 = $var14 + $par2; - var$14 = $par2 + $par6; - $par4 = $var16 + $par5; - var$16 = $par4 + var$21; - var$23 = $var9; - $par1Tessellator.$hasTexture = 1; - $par5 = var$23; - $par1Tessellator.$textureU = $par5; - $par1Tessellator.$textureV = $par3; - nlea_Tessellator_addVertex($par1Tessellator, var$14, var$22, var$16); - var$14 = $par2 - $par6; - var$22 = $par4 - var$21; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = $par5; - $par1Tessellator.$textureV = $var10; - nlea_Tessellator_addVertex($par1Tessellator, var$14, var$15, var$22); - nlea_Tessellator_draw($par1Tessellator); - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_webgl.polygonOffset(0.0, 0.0); - nleg_EaglerAdapterGL30_glEnable(13); - } -}; -$java.nms_EntityLargeExplodeFX_getBrightnessForRender = function($this, $par1) { - return 61680; -}; -$java.nms_EntityLargeExplodeFX_onUpdate = function($this) { - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - $this.$field_70581_a = $this.$field_70581_a + 1 | 0; - if ($this.$field_70581_a == $this.$field_70584_aq) - $this.$isDead = 1; -}; -$java.nms_EntityLargeExplodeFX_getFXLayer = function($this) { - return 3; -}; -function nms_EntityLargeExplodeFX__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2899); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_EntityLargeExplodeFX_explosion = var$1; -} -function nms_EntityFireworkSparkFX() { - var a = this; nms_EntityFX.call(a); - a.$field_92049_a = 0; - a.$field_92054_ax = 0; - a.$field_92048_ay = 0; - a.$field_92047_az = null; - a.$field_92050_aA = 0.0; - a.$field_92051_aB = 0.0; - a.$field_92052_aC = 0.0; - a.$field_92053_aD = 0; -} -function nms_EntityFireworkSparkFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7) { - var var_8 = new nms_EntityFireworkSparkFX(); - $java.nms_EntityFireworkSparkFX__init_(var_8, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7); - return var_8; -} -$java.nms_EntityFireworkSparkFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14EffectRenderer) { - $java.nms_EntityFX__init_0($this, $par1World, $par2, $par4, $par6); - $this.$field_92049_a = 160; - $this.$motionX = $par8; - $this.$motionY = $par10; - $this.$motionZ = $par12; - $this.$field_92047_az = $par14EffectRenderer; - $this.$particleScale = $this.$particleScale * 0.75; - $this.$particleMaxAge = 48 + (Math.random() * 12.0 | 0) | 0; - $this.$noClip = 0; -}; -$java.nms_EntityFireworkSparkFX_func_92045_e = function($this, $par1) { - $this.$field_92054_ax = $par1; -}; -$java.nms_EntityFireworkSparkFX_func_92043_f = function($this, $par1) { - $this.$field_92048_ay = $par1; -}; -$java.nms_EntityFireworkSparkFX_func_92044_a = function($this, $par1) { - var $var2, $var3, $var4; - $var2 = (($par1 & 16711680) >> 16) / 255.0; - $var3 = (($par1 & 65280) >> 8) / 255.0; - $var4 = (($par1 & 255) >> 0) / 255.0; - $var2 = $var2 * 1.0; - $var3 = $var3 * 1.0; - $var4 = $var4 * 1.0; - $this.$particleRed = $var2; - $this.$particleGreen = $var3; - $this.$particleBlue = $var4; -}; -$java.nms_EntityFireworkSparkFX_func_92046_g = function($this, $par1) { - $this.$field_92050_aA = (($par1 & 16711680) >> 16) / 255.0; - $this.$field_92051_aB = (($par1 & 65280) >> 8) / 255.0; - $this.$field_92052_aC = (($par1 & 255) >> 0) / 255.0; - $this.$field_92053_aD = 1; -}; -$java.nms_EntityFireworkSparkFX_getBoundingBox = function($this) { - return null; -}; -$java.nms_EntityFireworkSparkFX_canBePushed = function($this) { - return 0; -}; -$java.nms_EntityFireworkSparkFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - if (!($this.$field_92048_ay && $this.$particleAge >= ($this.$particleMaxAge / 3 | 0) && ((($this.$particleAge + $this.$particleMaxAge | 0) / 3 | 0) % 2 | 0))) - $java.nms_EntityFX_renderParticle($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7); -}; -$java.nms_EntityFireworkSparkFX_onUpdate = function($this) { - var var$1, var$2, var$3, var$4, var$5, $var1, 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();$var1 = $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: - $this.$prevPosX = $this.$posX; - $this.$prevPosY = $this.$posY; - $this.$prevPosZ = $this.$posZ; - var$1 = $this.$particleAge; - $this.$particleAge = var$1 + 1 | 0; - if (var$1 >= $this.$particleMaxAge) - $this.$isDead = 1; - if ($this.$particleAge > ($this.$particleMaxAge / 2 | 0)) { - $this.$particleAlpha = 1.0 - ($this.$particleAge - ($this.$particleMaxAge / 2 | 0)) / $this.$particleMaxAge; - if ($this.$field_92053_aD) { - $this.$particleRed = $this.$particleRed + ($this.$field_92050_aA - $this.$particleRed) * 0.20000000298023224; - $this.$particleGreen = $this.$particleGreen + ($this.$field_92051_aB - $this.$particleGreen) * 0.20000000298023224; - $this.$particleBlue = $this.$particleBlue + ($this.$field_92052_aC - $this.$particleBlue) * 0.20000000298023224; - } - } - var$2 = $this.$field_92049_a + (7 - (($this.$particleAge * 8 | 0) / $this.$particleMaxAge | 0) | 0) | 0; - $this.$particleTextureIndexX = var$2 % 16 | 0; - $this.$particleTextureIndexY = var$2 / 16 | 0; - $this.$motionY = $this.$motionY - 0.004; - var$3 = $this.$motionX; - var$4 = $this.$motionY; - var$5 = $this.$motionZ; - $ptr = 1; - case 1: - nms_Entity_moveEntity($this, var$3, var$4, var$5); - if ($rt_suspending()) { - break main; - } - $this.$motionX = $this.$motionX * 0.9100000262260437; - $this.$motionY = $this.$motionY * 0.9100000262260437; - $this.$motionZ = $this.$motionZ * 0.9100000262260437; - if ($this.$onGround) { - $this.$motionX = $this.$motionX * 0.699999988079071; - $this.$motionZ = $this.$motionZ * 0.699999988079071; - } - if ($this.$field_92054_ax && $this.$particleAge < ($this.$particleMaxAge / 2 | 0) && !(($this.$particleAge + $this.$particleMaxAge | 0) % 2 | 0)) { - $var1 = nms_EntityFireworkSparkFX__init_($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ, 0.0, 0.0, 0.0, $this.$field_92047_az); - var$7 = $this.$particleRed; - var$8 = $this.$particleGreen; - var$9 = $this.$particleBlue; - $var1.$particleRed = var$7; - $var1.$particleGreen = var$8; - $var1.$particleBlue = var$9; - $var1.$particleAge = $var1.$particleMaxAge / 2 | 0; - if ($this.$field_92053_aD) { - $var1.$field_92053_aD = 1; - $var1.$field_92050_aA = $this.$field_92050_aA; - $var1.$field_92051_aB = $this.$field_92051_aB; - $var1.$field_92052_aC = $this.$field_92052_aC; - } - $var1.$field_92048_ay = $this.$field_92048_ay; - nms_EffectRenderer_addEffect($this.$field_92047_az, $var1); - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, $var1, var$7, var$8, var$9, $ptr); -}; -$java.nms_EntityFireworkSparkFX_getBrightnessForRender = function($this, $par1) { - return 15728880; -}; -function nms_EntityFireworkStarterFX() { - var a = this; nms_EntityFX.call(a); - a.$field_92042_ax = 0; - a.$field_92040_ay = null; - a.$fireworkExplosions = null; - a.$field_92041_a = 0; -} -function nms_EntityFireworkStarterFX__init_(var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8) { - var var_9 = new nms_EntityFireworkStarterFX(); - $java.nms_EntityFireworkStarterFX__init_(var_9, var_0, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8); - return var_9; -} -$java.nms_EntityFireworkStarterFX__init_ = function($this, $par1World, $par2, $par4, $par6, $par8, $par10, $par12, $par14EffectRenderer, $par15NBTTagCompound) { - var $var16, var$11, $var17, var$13, var$14; - a: { - b: { - $java.nms_EntityFX__init_2($this, $par1World, $par2, $par4, $par6, 0.0, 0.0, 0.0); - $this.$field_92042_ax = 0; - $this.$motionX = $par8; - $this.$motionY = $par10; - $this.$motionZ = $par12; - $this.$field_92040_ay = $par14EffectRenderer; - $this.$particleMaxAge = 8; - if ($par15NBTTagCompound !== null) { - $par14EffectRenderer = $par15NBTTagCompound.$tagMap; - $var16 = jl_String_hashCode($rt_s(1977)); - if (!(ju_HashMap_findNonNullKeyEntry($par14EffectRenderer, $rt_s(1977), $var16 & ($par14EffectRenderer.$elementData.data.length - 1 | 0), $var16) === null ? 0 : 1)) { - $par14EffectRenderer = new nms_NBTTagList; - $par14EffectRenderer.$name0 = $rt_s(1977); - $par1World = new ju_ArrayList; - $par1World.$array1 = $rt_createArray(jl_Object, 10); - $par14EffectRenderer.$tagList = $par1World; - } else { - $par14EffectRenderer = $par15NBTTagCompound.$tagMap; - var$11 = jl_String_hashCode($rt_s(1977)); - $par1World = ju_HashMap_findNonNullKeyEntry($par14EffectRenderer, $rt_s(1977), var$11 & ($par14EffectRenderer.$elementData.data.length - 1 | 0), var$11); - $par14EffectRenderer = $par1World === null ? null : $par1World.$value0; - } - $this.$fireworkExplosions = $par14EffectRenderer; - if (!$this.$fireworkExplosions.$tagList.$size0) - $this.$fireworkExplosions = null; - else { - $this.$particleMaxAge = ($this.$fireworkExplosions.$tagList.$size0 * 2 | 0) - 1 | 0; - $var16 = 0; - while (true) { - if ($var16 >= $this.$fireworkExplosions.$tagList.$size0) - break b; - $par1World = $this.$fireworkExplosions.$tagList; - if ($var16 < 0) - break a; - if ($var16 >= $par1World.$size0) - break a; - $var17 = $par1World.$array1.data[$var16]; - $par1World = $var17.$tagMap; - var$13 = jl_String_hashCode($rt_s(1990)); - if (!(ju_HashMap_findNonNullKeyEntry($par1World, $rt_s(1990), var$13 & ($par1World.$elementData.data.length - 1 | 0), var$13) === null ? 0 : 1)) - var$14 = 0; - else { - $par1World = $var17.$tagMap; - var$14 = jl_String_hashCode($rt_s(1990)); - $par1World = ju_HashMap_findNonNullKeyEntry($par1World, $rt_s(1990), var$14 & ($par1World.$elementData.data.length - 1 | 0), var$14); - var$14 = ($par1World === null ? null : $par1World.$value0).$data0; - } - if (!var$14 ? 0 : 1) - break; - $var16 = $var16 + 1 | 0; - } - $this.$field_92041_a = 1; - $this.$particleMaxAge = $this.$particleMaxAge + 15 | 0; - } - } - } - return; - } - $par1World = new jl_IndexOutOfBoundsException; - $par1World.$suppressionEnabled = 1; - $par1World.$writableStackTrace = 1; - $rt_throw($par1World); -}; -$java.nms_EntityFireworkStarterFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - return; -}; -$java.nms_EntityFireworkStarterFX_onUpdate = function($this) { - var $var1, $var2, $var3, $var15, $var16, var$6, var$7, var$8, $var9, $var10, $var13, $var14, $var17, $var18, $var5, $var6, $var7, var$18, var$19, var$20, var$21, $var8, $var11, $var12, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$var12 = $thread.pop();$var11 = $thread.pop();$var8 = $thread.pop();var$21 = $thread.pop();var$20 = $thread.pop();var$19 = $thread.pop();var$18 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var18 = $thread.pop();$var17 = $thread.pop();$var14 = $thread.pop();$var13 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var16 = $thread.pop();$var15 = $thread.pop();$var3 = $thread.pop();$var2 - = $thread.pop();$var1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if (!$this.$field_92042_ax && $this.$fireworkExplosions !== null) { - a: { - $var1 = $java.nms_EntityFireworkStarterFX_func_92037_i($this); - $var2 = 0; - if (nms_NBTTagList_tagCount($this.$fireworkExplosions) >= 3) - $var2 = 1; - else { - $var3 = 0; - while ($var3 < nms_NBTTagList_tagCount($this.$fireworkExplosions)) { - if (nms_NBTTagCompound_getByte(nms_NBTTagList_tagAt($this.$fireworkExplosions, $var3), $rt_s(1981)) == 1) { - $var2 = 1; - break a; - } - $var3 = $var3 + 1 | 0; - } - } - } - $var15 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(2900)), !$var2 ? $rt_s(2901) : $rt_s(2902)), !$var1 ? $rt_s(44) : $rt_s(2903))); - $var16 = $this.$worldObj; - var$6 = $this.$posX; - var$7 = $this.$posY; - var$8 = $this.$posZ; - $var9 = 20.0; - $var10 = 0.949999988079071 + ju_Random_nextFloat($this.$rand0) * 0.10000000149011612; - $var1 = 1; - $ptr = 3; - continue main; - } - if (!($this.$field_92042_ax % 2 | 0) && $this.$fireworkExplosions !== null && ($this.$field_92042_ax / 2 | 0) < nms_NBTTagList_tagCount($this.$fireworkExplosions)) { - $var13 = $this.$field_92042_ax / 2 | 0; - $var14 = nms_NBTTagList_tagAt($this.$fireworkExplosions, $var13); - $var17 = nms_NBTTagCompound_getByte($var14, $rt_s(1981)); - $var18 = nms_NBTTagCompound_getBoolean($var14, $rt_s(1988)); - $var5 = nms_NBTTagCompound_getBoolean($var14, $rt_s(1990)); - $var6 = nms_NBTTagCompound_getIntArray($var14, $rt_s(1980)); - $var7 = nms_NBTTagCompound_getIntArray($var14, $rt_s(1986)); - if ($var17 == 1) - $java.nms_EntityFireworkStarterFX_func_92035_a($this, 0.5, 4, $var6, $var7, $var18, $var5); - else if ($var17 == 2) { - var$18 = $rt_createArray($rt_arraycls($rt_doublecls()), 6); - var$19 = var$18.data; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.0; - var$21[1] = 1.0; - var$19[0] = var$20; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.3455; - var$21[1] = 0.309; - var$19[1] = var$20; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.9511; - var$21[1] = 0.309; - var$19[2] = var$20; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.3795918367346939; - var$21[1] = (-0.12653061224489795); - var$19[3] = var$20; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.6122448979591837; - var$21[1] = (-0.8040816326530612); - var$19[4] = var$20; - var$21 = $rt_createDoubleArray(2); - var$20 = var$21.data; - var$20[0] = 0.0; - var$20[1] = (-0.35918367346938773); - var$19[5] = var$21; - $java.nms_EntityFireworkStarterFX_func_92038_a($this, 0.5, var$18, $var6, $var7, $var18, $var5, 0); - } else if ($var17 != 3) { - if ($var17 == 4) - $java.nms_EntityFireworkStarterFX_func_92036_a($this, $var6, $var7, $var18, $var5); - else - $java.nms_EntityFireworkStarterFX_func_92035_a($this, 0.25, 2, $var6, $var7, $var18, $var5); - } else { - var$21 = $rt_createArray($rt_arraycls($rt_doublecls()), 12); - var$19 = var$21.data; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.0; - var$20[1] = 0.2; - var$19[0] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = 0.2; - var$19[1] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = 0.6; - var$19[2] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.6; - var$20[1] = 0.6; - var$19[3] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.6; - var$20[1] = 0.2; - var$19[4] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = 0.2; - var$19[5] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = 0.0; - var$19[6] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.4; - var$20[1] = 0.0; - var$19[7] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.4; - var$20[1] = (-0.6); - var$19[8] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = (-0.6); - var$19[9] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = (-0.4); - var$19[10] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.0; - var$20[1] = (-0.4); - var$19[11] = var$18; - $java.nms_EntityFireworkStarterFX_func_92038_a($this, 0.5, var$21, $var6, $var7, $var18, $var5, 1); - } - $var8 = $var6.data[0]; - $var9 = (($var8 & 16711680) >> 16) / 255.0; - $var10 = (($var8 & 65280) >> 8) / 255.0; - $var11 = (($var8 & 255) >> 0) / 255.0; - $var12 = $java.nms_EntityFireworkOverlayFX__init_($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ); - nms_EntityFX_setRBGColorF($var12, $var9, $var10, $var11); - nms_EffectRenderer_addEffect($this.$field_92040_ay, $var12); - } - $this.$field_92042_ax = $this.$field_92042_ax + 1 | 0; - if ($this.$field_92042_ax <= $this.$particleMaxAge) - return; - if (!$this.$field_92041_a) { - $ptr = 1; - continue main; - } - $var1 = $java.nms_EntityFireworkStarterFX_func_92037_i($this); - $var16 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(2900)), !$var1 ? $rt_s(2904) : $rt_s(2905))); - $var14 = $this.$worldObj; - var$6 = $this.$posX; - var$7 = $this.$posY; - var$8 = $this.$posZ; - $var9 = 20.0; - $var10 = 0.8999999761581421 + ju_Random_nextFloat($this.$rand0) * 0.15000000596046448; - $var1 = 1; - $ptr = 2; - continue main; - case 1: - nms_Entity_setDead($this); - if ($rt_suspending()) { - break main; - } - return; - case 2: - nms_WorldClient_playSound($var14, var$6, var$7, var$8, $var16, $var9, $var10, $var1); - if ($rt_suspending()) { - break main; - } - $ptr = 1; - continue main; - case 3: - nms_WorldClient_playSound($var16, var$6, var$7, var$8, $var15, $var9, $var10, $var1); - if ($rt_suspending()) { - break main; - } - if (!($this.$field_92042_ax % 2 | 0) && $this.$fireworkExplosions !== null && ($this.$field_92042_ax / 2 | 0) < nms_NBTTagList_tagCount($this.$fireworkExplosions)) { - $var13 = $this.$field_92042_ax / 2 | 0; - $var14 = nms_NBTTagList_tagAt($this.$fireworkExplosions, $var13); - $var17 = nms_NBTTagCompound_getByte($var14, $rt_s(1981)); - $var18 = nms_NBTTagCompound_getBoolean($var14, $rt_s(1988)); - $var5 = nms_NBTTagCompound_getBoolean($var14, $rt_s(1990)); - $var6 = nms_NBTTagCompound_getIntArray($var14, $rt_s(1980)); - $var7 = nms_NBTTagCompound_getIntArray($var14, $rt_s(1986)); - if ($var17 == 1) - $java.nms_EntityFireworkStarterFX_func_92035_a($this, 0.5, 4, $var6, $var7, $var18, $var5); - else if ($var17 == 2) { - var$18 = $rt_createArray($rt_arraycls($rt_doublecls()), 6); - var$19 = var$18.data; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.0; - var$21[1] = 1.0; - var$19[0] = var$20; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.3455; - var$21[1] = 0.309; - var$19[1] = var$20; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.9511; - var$21[1] = 0.309; - var$19[2] = var$20; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.3795918367346939; - var$21[1] = (-0.12653061224489795); - var$19[3] = var$20; - var$20 = $rt_createDoubleArray(2); - var$21 = var$20.data; - var$21[0] = 0.6122448979591837; - var$21[1] = (-0.8040816326530612); - var$19[4] = var$20; - var$21 = $rt_createDoubleArray(2); - var$20 = var$21.data; - var$20[0] = 0.0; - var$20[1] = (-0.35918367346938773); - var$19[5] = var$21; - $java.nms_EntityFireworkStarterFX_func_92038_a($this, 0.5, var$18, $var6, $var7, $var18, $var5, 0); - } else if ($var17 != 3) { - if ($var17 == 4) - $java.nms_EntityFireworkStarterFX_func_92036_a($this, $var6, $var7, $var18, $var5); - else - $java.nms_EntityFireworkStarterFX_func_92035_a($this, 0.25, 2, $var6, $var7, $var18, $var5); - } else { - var$21 = $rt_createArray($rt_arraycls($rt_doublecls()), 12); - var$19 = var$21.data; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.0; - var$20[1] = 0.2; - var$19[0] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = 0.2; - var$19[1] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = 0.6; - var$19[2] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.6; - var$20[1] = 0.6; - var$19[3] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.6; - var$20[1] = 0.2; - var$19[4] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = 0.2; - var$19[5] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = 0.0; - var$19[6] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.4; - var$20[1] = 0.0; - var$19[7] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.4; - var$20[1] = (-0.6); - var$19[8] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = (-0.6); - var$19[9] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.2; - var$20[1] = (-0.4); - var$19[10] = var$18; - var$18 = $rt_createDoubleArray(2); - var$20 = var$18.data; - var$20[0] = 0.0; - var$20[1] = (-0.4); - var$19[11] = var$18; - $java.nms_EntityFireworkStarterFX_func_92038_a($this, 0.5, var$21, $var6, $var7, $var18, $var5, 1); - } - $var8 = $var6.data[0]; - $var9 = (($var8 & 16711680) >> 16) / 255.0; - $var10 = (($var8 & 65280) >> 8) / 255.0; - $var11 = (($var8 & 255) >> 0) / 255.0; - $var12 = $java.nms_EntityFireworkOverlayFX__init_($this.$worldObj, $this.$posX, $this.$posY, $this.$posZ); - nms_EntityFX_setRBGColorF($var12, $var9, $var10, $var11); - nms_EffectRenderer_addEffect($this.$field_92040_ay, $var12); - } - $this.$field_92042_ax = $this.$field_92042_ax + 1 | 0; - if ($this.$field_92042_ax <= $this.$particleMaxAge) - return; - if (!$this.$field_92041_a) { - $ptr = 1; - continue main; - } - $var1 = $java.nms_EntityFireworkStarterFX_func_92037_i($this); - $var16 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(2900)), !$var1 ? $rt_s(2904) : $rt_s(2905))); - $var14 = $this.$worldObj; - var$6 = $this.$posX; - var$7 = $this.$posY; - var$8 = $this.$posZ; - $var9 = 20.0; - $var10 = 0.8999999761581421 + ju_Random_nextFloat($this.$rand0) * 0.15000000596046448; - $var1 = 1; - $ptr = 2; - continue main; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $var1, $var2, $var3, $var15, $var16, var$6, var$7, var$8, $var9, $var10, $var13, $var14, $var17, $var18, $var5, $var6, $var7, var$18, var$19, var$20, var$21, $var8, $var11, $var12, $ptr); -}; -$java.nms_EntityFireworkStarterFX_func_92037_i = function($this) { - var $var1, var$2, var$3, var$4, var$5, var$6; - a: { - $var1 = nmc_Minecraft_theMinecraft; - if ($var1 !== null && $var1.$renderViewEntity !== null) { - var$2 = $var1.$renderViewEntity; - var$3 = $this.$posX; - var$4 = $this.$posY; - var$5 = $this.$posZ; - var$3 = var$2.$posX - var$3; - var$4 = var$2.$posY - var$4; - var$5 = var$2.$posZ - var$5; - if (var$3 * var$3 + var$4 * var$4 + var$5 * var$5 < 256.0) { - var$6 = 0; - break a; - } - } - var$6 = 1; - } - return var$6; -}; -$java.nms_EntityFireworkStarterFX_func_92034_a = function($this, $par1, $par3, $par5, $par7, $par9, $par11, $par13ArrayOfInteger, $par14ArrayOfInteger, $par15, $par16) { - var $var17; - $par13ArrayOfInteger = $par13ArrayOfInteger.data; - $var17 = nms_EntityFireworkSparkFX__init_($this.$worldObj, $par1, $par3, $par5, $par7, $par9, $par11, $this.$field_92040_ay); - $var17.$field_92054_ax = $par15; - $var17.$field_92048_ay = $par16; - $par15 = $par13ArrayOfInteger.length; - $java.nms_EntityFireworkSparkFX_func_92044_a($var17, $par13ArrayOfInteger[Math.random() * $par15 | 0]); - if ($par14ArrayOfInteger !== null) { - $par13ArrayOfInteger = $par14ArrayOfInteger.data; - $par15 = $par13ArrayOfInteger.length; - if ($par15 > 0) - $java.nms_EntityFireworkSparkFX_func_92046_g($var17, $par13ArrayOfInteger[Math.random() * $par15 | 0]); - } - nms_EffectRenderer_addEffect($this.$field_92040_ay, $var17); -}; -$java.nms_EntityFireworkStarterFX_func_92035_a = function($this, $par1, $par3, $par4ArrayOfInteger, $par5ArrayOfInteger, $par6, $par7) { - var $var8, $var10, $var12, var$10, var$11, $var14, var$13, $var15, var$15, $var16, $var17, $var19, $var21, $var23; - $var8 = $this.$posX; - $var10 = $this.$posY; - $var12 = $this.$posZ; - var$10 = -$par3; - var$11 = ($par3 * 2 | 0) - 1 | 0; - $var14 = var$10; - while (true) { - var$13 = $rt_compare($var14, $par3); - if (var$13 > 0) - break; - $var15 = var$10; - while (true) { - var$15 = $rt_compare($var15, $par3); - if (var$15 > 0) - break; - $var16 = var$10; - while ($var16 <= $par3) { - $var17 = $var15 + (Math.random() - Math.random()) * 0.5; - $var19 = $var14 + (Math.random() - Math.random()) * 0.5; - $var21 = $var16 + (Math.random() - Math.random()) * 0.5; - $var23 = jl_Math_sqrt($var17 * $var17 + $var19 * $var19 + $var21 * $var21) / $par1 + ju_Random_nextGaussian($this.$rand0) * 0.05; - $java.nms_EntityFireworkStarterFX_func_92034_a($this, $var8, $var10, $var12, $var17 / $var23, $var19 / $var23, $var21 / $var23, $par4ArrayOfInteger, $par5ArrayOfInteger, $par6, $par7); - if ($var14 != var$10 && var$13 && $var15 != var$10 && var$15) - $var16 = $var16 + var$11 | 0; - $var16 = $var16 + 1 | 0; - } - $var15 = $var15 + 1 | 0; - } - $var14 = $var14 + 1 | 0; - } -}; -$java.nms_EntityFireworkStarterFX_func_92038_a = function($this, $par1, $par3ArrayOfDouble, $par4ArrayOfInteger, $par5ArrayOfInteger, $par6, $par7, $par8) { - var $var9, $var11, $var13, $var14, $var16, var$13, $var17, $var23, var$16, var$17, $var24, $var26, $var28, $var30, $var32, $var34, var$24, $var36; - $par3ArrayOfDouble = $par3ArrayOfDouble.data; - $var9 = $par3ArrayOfDouble[0].data[0]; - $var11 = $par3ArrayOfDouble[0].data[1]; - $java.nms_EntityFireworkStarterFX_func_92034_a($this, $this.$posX, $this.$posY, $this.$posZ, $var9 * $par1, $var11 * $par1, 0.0, $par4ArrayOfInteger, $par5ArrayOfInteger, $par6, $par7); - $var13 = Math.random() * 3.1415927410125732; - $var14 = !$par8 ? 0.34 : 0.034; - $var16 = 0; - var$13 = $var13; - while ($var16 < 3) { - $var17 = var$13 + $var16 * 3.1415927410125732 * $var14; - $var23 = 1; - var$16 = $var9; - var$17 = $var11; - while ($var23 < $par3ArrayOfDouble.length) { - $var24 = $par3ArrayOfDouble[$var23].data[0]; - $var26 = $par3ArrayOfDouble[$var23].data[1]; - $var28 = 0.25; - while ($var28 <= 1.0) { - $var30 = (var$16 + ($var24 - var$16) * $var28) * $par1; - $var32 = (var$17 + ($var26 - var$17) * $var28) * $par1; - $var34 = $var30 * jl_Math_sin($var17); - var$24 = $var30 * jl_Math_cos($var17); - $var36 = (-1.0); - while ($var36 <= 1.0) { - $java.nms_EntityFireworkStarterFX_func_92034_a($this, $this.$posX, $this.$posY, $this.$posZ, var$24 * $var36, $var32, $var34 * $var36, $par4ArrayOfInteger, $par5ArrayOfInteger, $par6, $par7); - $var36 = $var36 + 2.0; - } - $var28 = $var28 + 0.25; - } - $var23 = $var23 + 1 | 0; - var$16 = $var24; - var$17 = $var26; - } - $var16 = $var16 + 1 | 0; - } -}; -$java.nms_EntityFireworkStarterFX_func_92036_a = function($this, $par1ArrayOfInteger, $par2ArrayOfInteger, $par3, $par4) { - var $var5, $var7, $var9, $var10, $var12, $var14; - $var5 = ju_Random_nextGaussian($this.$rand0) * 0.05; - $var7 = ju_Random_nextGaussian($this.$rand0) * 0.05; - $var9 = 0; - while ($var9 < 70) { - $var10 = $this.$motionX * 0.5 + ju_Random_nextGaussian($this.$rand0) * 0.15 + $var5; - $var12 = $this.$motionZ * 0.5 + ju_Random_nextGaussian($this.$rand0) * 0.15 + $var7; - $var14 = $this.$motionY * 0.5 + Math.random() * 0.5; - $java.nms_EntityFireworkStarterFX_func_92034_a($this, $this.$posX, $this.$posY, $this.$posZ, $var10, $var14, $var12, $par1ArrayOfInteger, $par2ArrayOfInteger, $par3, $par4); - $var9 = $var9 + 1 | 0; - } -}; -$java.nms_EntityFireworkStarterFX_getFXLayer = function($this) { - return 0; -}; -function cjj_Deflate() { - var a = this; jl_Object.call(a); - a.$strm = null; - a.$status1 = 0; - a.$pending_buf = null; - a.$pending_buf_size = 0; - a.$pending_out = 0; - a.$pending = 0; - a.$wrap1 = 0; - a.$data_type0 = 0; - a.$method0 = 0; - a.$last_flush = 0; - a.$w_size = 0; - a.$w_bits = 0; - a.$w_mask = 0; - a.$window0 = null; - a.$window_size = 0; - a.$prev = null; - a.$head5 = null; - a.$ins_h = 0; - a.$hash_size = 0; - a.$hash_bits = 0; - a.$hash_mask = 0; - a.$hash_shift = 0; - a.$block_start = 0; - a.$match_length = 0; - a.$prev_match = 0; - a.$match_available = 0; - a.$strstart = 0; - a.$match_start = 0; - a.$lookahead = 0; - a.$prev_length = 0; - a.$max_chain_length = 0; - a.$max_lazy_match = 0; - a.$level = 0; - a.$strategy = 0; - a.$good_match = 0; - a.$nice_match = 0; - a.$dyn_ltree = null; - a.$dyn_dtree = null; - a.$bl_tree = null; - a.$l_desc = null; - a.$d_desc = null; - a.$bl_desc = null; - a.$bl_count = null; - a.$next_code = null; - a.$heap = null; - a.$heap_len = 0; - a.$heap_max = 0; - a.$depth0 = null; - a.$l_buf = null; - a.$lit_bufsize = 0; - a.$last_lit = 0; - a.$d_buf = 0; - a.$opt_len = 0; - a.$static_len = 0; - a.$matches1 = 0; - a.$last_eob_len = 0; - a.$bi_buf = 0; - a.$bi_valid = 0; - a.$gheader0 = null; -} -$java.cjj_Deflate_config_table = null; -$java.cjj_Deflate_z_errmsg = null; -$java.cjj_Deflate__init_ = function(var_0) { - var var_1 = new cjj_Deflate(); - $java.cjj_Deflate__init_0(var_1, var_0); - return var_1; -}; -$java.cjj_Deflate__init_0 = function($this, $strm) { - $this.$wrap1 = 1; - $this.$l_desc = new cjj_Tree; - $this.$d_desc = new cjj_Tree; - $this.$bl_desc = new cjj_Tree; - $this.$bl_count = $rt_createShortArray(16); - $this.$next_code = $rt_createShortArray(16); - $this.$heap = $rt_createIntArray(573); - $this.$depth0 = $rt_createByteArray(573); - $this.$gheader0 = null; - $this.$strm = $strm; - $this.$dyn_ltree = $rt_createShortArray(1146); - $this.$dyn_dtree = $rt_createShortArray(122); - $this.$bl_tree = $rt_createShortArray(78); -}; -$java.cjj_Deflate_lm_init = function($this) { - var $i; - $this.$window_size = 2 * $this.$w_size | 0; - $this.$head5.data[$this.$hash_size - 1 | 0] = 0; - $i = 0; - while ($i < ($this.$hash_size - 1 | 0)) { - $this.$head5.data[$i] = 0; - $i = $i + 1 | 0; - } - $this.$max_lazy_match = $java.cjj_Deflate_config_table.data[$this.$level].$max_lazy; - $this.$good_match = $java.cjj_Deflate_config_table.data[$this.$level].$good_length; - $this.$nice_match = $java.cjj_Deflate_config_table.data[$this.$level].$nice_length; - $this.$max_chain_length = $java.cjj_Deflate_config_table.data[$this.$level].$max_chain; - $this.$strstart = 0; - $this.$block_start = 0; - $this.$lookahead = 0; - $this.$prev_length = 2; - $this.$match_length = 2; - $this.$match_available = 0; - $this.$ins_h = 0; -}; -$java.cjj_Deflate_tr_init = function($this) { - var var$1; - $this.$l_desc.$dyn_tree = $this.$dyn_ltree; - var$1 = $this.$l_desc; - $java.cjj_StaticTree_$callClinit(); - var$1.$stat_desc = $java.cjj_StaticTree_static_l_desc; - $this.$d_desc.$dyn_tree = $this.$dyn_dtree; - $this.$d_desc.$stat_desc = $java.cjj_StaticTree_static_d_desc; - $this.$bl_desc.$dyn_tree = $this.$bl_tree; - $this.$bl_desc.$stat_desc = $java.cjj_StaticTree_static_bl_desc; - $this.$bi_buf = 0; - $this.$bi_valid = 0; - $this.$last_eob_len = 8; - $java.cjj_Deflate_init_block($this); -}; -$java.cjj_Deflate_init_block = function($this) { - var $i; - $i = 0; - while ($i < 286) { - $this.$dyn_ltree.data[$i * 2 | 0] = 0; - $i = $i + 1 | 0; - } - $i = 0; - while ($i < 30) { - $this.$dyn_dtree.data[$i * 2 | 0] = 0; - $i = $i + 1 | 0; - } - $i = 0; - while ($i < 19) { - $this.$bl_tree.data[$i * 2 | 0] = 0; - $i = $i + 1 | 0; - } - $this.$dyn_ltree.data[512] = 1; - $this.$static_len = 0; - $this.$opt_len = 0; - $this.$matches1 = 0; - $this.$last_lit = 0; -}; -$java.cjj_Deflate_pqdownheap = function($this, $tree, $k) { - var $v, $j, var$5, var$6; - $v = $this.$heap.data[$k]; - $j = $k << 1; - a: { - while (true) { - if ($j > $this.$heap_len) - break a; - if ($j >= $this.$heap_len) - var$5 = $j; - else { - var$6 = $this.$heap.data; - var$5 = $j + 1 | 0; - if (!$java.cjj_Deflate_smaller($tree, var$6[var$5], $this.$heap.data[$j], $this.$depth0)) - var$5 = $j; - } - if ($java.cjj_Deflate_smaller($tree, $v, $this.$heap.data[var$5], $this.$depth0)) - break; - $this.$heap.data[$k] = $this.$heap.data[var$5]; - $j = var$5 << 1; - $k = var$5; - } - } - $this.$heap.data[$k] = $v; -}; -$java.cjj_Deflate_smaller = function($tree, $n, $m, $depth) { - var $tn2; - a: { - b: { - $tree = $tree.data; - $tn2 = $rt_compare($tree[$n * 2 | 0], $tree[$m * 2 | 0]); - if ($tn2 >= 0) { - if ($tn2) - break b; - $tree = $depth.data; - if ($tree[$n] > $tree[$m]) - break b; - } - $n = 1; - break a; - } - $n = 0; - } - return $n; -}; -$java.cjj_Deflate_scan_tree = function($this, $tree, $max_code) { - var $prevlen, $nextlen, $count, $max_count, $min_count, $n, var$9, var$10; - $tree = $tree.data; - $prevlen = (-1); - $nextlen = $tree[1]; - $count = 0; - $max_count = 7; - $min_count = 4; - if (!$nextlen) { - $max_count = 138; - $min_count = 3; - } - $tree[(($max_code + 1 | 0) * 2 | 0) + 1 | 0] = (-1); - $n = 0; - while ($n <= $max_code) { - $n = $n + 1 | 0; - var$9 = $tree[($n * 2 | 0) + 1 | 0]; - $count = $count + 1 | 0; - if (!($count < $max_count && $nextlen == var$9)) { - if ($count < $min_count) { - var$10 = $this.$bl_tree.data; - $prevlen = $nextlen * 2 | 0; - var$10[$prevlen] = (var$10[$prevlen] + $count | 0) << 16 >> 16; - } else if (!$nextlen) { - if ($count > 10) { - var$10 = $this.$bl_tree.data; - var$10[36] = (var$10[36] + 1 | 0) << 16 >> 16; - } else { - var$10 = $this.$bl_tree.data; - var$10[34] = (var$10[34] + 1 | 0) << 16 >> 16; - } - } else { - if ($nextlen != $prevlen) { - var$10 = $this.$bl_tree.data; - $max_count = $nextlen * 2 | 0; - var$10[$max_count] = (var$10[$max_count] + 1 | 0) << 16 >> 16; - } - var$10 = $this.$bl_tree.data; - var$10[32] = (var$10[32] + 1 | 0) << 16 >> 16; - } - $count = 0; - if (!var$9) { - $max_count = 138; - $min_count = 3; - $prevlen = $nextlen; - } else if ($nextlen != var$9) { - $max_count = 7; - $min_count = 4; - $prevlen = $nextlen; - } else { - $max_count = 6; - $min_count = 3; - $prevlen = $nextlen; - } - } - $nextlen = var$9; - } -}; -$java.cjj_Deflate_build_bl_tree = function($this) { - var $max_blindex; - $java.cjj_Deflate_scan_tree($this, $this.$dyn_ltree, $this.$l_desc.$max_code); - $java.cjj_Deflate_scan_tree($this, $this.$dyn_dtree, $this.$d_desc.$max_code); - $java.cjj_Tree_build_tree($this.$bl_desc, $this); - $max_blindex = 18; - a: { - while (true) { - if ($max_blindex < 3) - break a; - if ($this.$bl_tree.data[($java.cjj_Tree_bl_order.data[$max_blindex] * 2 | 0) + 1 | 0]) - break; - $max_blindex = $max_blindex + (-1) | 0; - } - } - $this.$opt_len = $this.$opt_len + ((((3 * ($max_blindex + 1 | 0) | 0) + 5 | 0) + 5 | 0) + 4 | 0) | 0; - return $max_blindex; -}; -$java.cjj_Deflate_send_all_trees = function($this, $lcodes, $dcodes, $blcodes) { - var $rank; - $java.cjj_Deflate_send_bits($this, $lcodes - 257 | 0, 5); - $dcodes = $dcodes - 1 | 0; - $java.cjj_Deflate_send_bits($this, $dcodes, 5); - $java.cjj_Deflate_send_bits($this, $blcodes - 4 | 0, 4); - $rank = 0; - while ($rank < $blcodes) { - $java.cjj_Deflate_send_bits($this, $this.$bl_tree.data[($java.cjj_Tree_bl_order.data[$rank] * 2 | 0) + 1 | 0], 3); - $rank = $rank + 1 | 0; - } - $java.cjj_Deflate_send_tree($this, $this.$dyn_ltree, $lcodes - 1 | 0); - $java.cjj_Deflate_send_tree($this, $this.$dyn_dtree, $dcodes); -}; -$java.cjj_Deflate_send_tree = function($this, $tree, $max_code) { - var var$3, $prevlen, $nextlen, $count, $max_count, $min_count, $n, var$10; - var$3 = $tree.data; - $prevlen = (-1); - $nextlen = var$3[1]; - $count = 0; - $max_count = 7; - $min_count = 4; - if (!$nextlen) { - $max_count = 138; - $min_count = 3; - } - $n = 0; - while ($n <= $max_code) { - $n = $n + 1 | 0; - var$10 = var$3[($n * 2 | 0) + 1 | 0]; - $count = $count + 1 | 0; - if (!($count < $max_count && $nextlen == var$10)) { - if ($count < $min_count) - while (true) { - $tree = $this.$bl_tree.data; - $min_count = $nextlen * 2 | 0; - $java.cjj_Deflate_send_bits($this, $tree[$min_count] & 65535, $tree[$min_count + 1 | 0] & 65535); - $count = $count + (-1) | 0; - if (!$count) - break; - } - else if (!$nextlen) { - if ($count > 10) { - $tree = $this.$bl_tree.data; - $java.cjj_Deflate_send_bits($this, $tree[36] & 65535, $tree[37] & 65535); - $java.cjj_Deflate_send_bits($this, $count - 11 | 0, 7); - } else { - $tree = $this.$bl_tree.data; - $java.cjj_Deflate_send_bits($this, $tree[34] & 65535, $tree[35] & 65535); - $java.cjj_Deflate_send_bits($this, $count - 3 | 0, 3); - } - } else { - if ($nextlen != $prevlen) { - $tree = $this.$bl_tree.data; - $max_count = $nextlen * 2 | 0; - $java.cjj_Deflate_send_bits($this, $tree[$max_count] & 65535, $tree[$max_count + 1 | 0] & 65535); - $count = $count + (-1) | 0; - } - $tree = $this.$bl_tree.data; - $java.cjj_Deflate_send_bits($this, $tree[32] & 65535, $tree[33] & 65535); - $java.cjj_Deflate_send_bits($this, $count - 3 | 0, 2); - } - $count = 0; - if (!var$10) { - $max_count = 138; - $min_count = 3; - $prevlen = $nextlen; - } else if ($nextlen != var$10) { - $max_count = 7; - $min_count = 4; - $prevlen = $nextlen; - } else { - $max_count = 6; - $min_count = 3; - $prevlen = $nextlen; - } - } - $nextlen = var$10; - } -}; -$java.cjj_Deflate_put_byte = function($this, $p, $start, $len) { - jl_System_arraycopy($p, $start, $this.$pending_buf, $this.$pending, $len); - $this.$pending = $this.$pending + $len | 0; -}; -$java.cjj_Deflate_put_byte0 = function($this, $c) { - var var$2, var$3; - var$2 = $this.$pending_buf.data; - var$3 = $this.$pending; - $this.$pending = var$3 + 1 | 0; - var$2[var$3] = $c; -}; -$java.cjj_Deflate_put_short = function($this, $w) { - var var$2, var$3, var$4, var$5; - var$2 = $w << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$4 = $this.$pending; - $this.$pending = var$4 + 1 | 0; - var$3[var$4] = var$2; - $w = $w >>> 8 << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$5 = $this.$pending; - $this.$pending = var$5 + 1 | 0; - var$3[var$5] = $w; -}; -$java.cjj_Deflate_putShortMSB = function($this, $b) { - var var$2, var$3, var$4, var$5; - var$2 = $b >> 8 << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$4 = $this.$pending; - $this.$pending = var$4 + 1 | 0; - var$3[var$4] = var$2; - $b = $b << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$5 = $this.$pending; - $this.$pending = var$5 + 1 | 0; - var$3[var$5] = $b; -}; -$java.cjj_Deflate_send_code = function($this, $c, $tree) { - var $c2; - $tree = $tree.data; - $c2 = $c * 2 | 0; - $java.cjj_Deflate_send_bits($this, $tree[$c2] & 65535, $tree[$c2 + 1 | 0] & 65535); -}; -$java.cjj_Deflate_send_bits = function($this, $value, $length) { - var var$3, var$4, var$5, var$6, var$7; - if ($this.$bi_valid <= (16 - $length | 0)) { - $this.$bi_buf = ($this.$bi_buf | $value << $this.$bi_valid & 65535) << 16 >> 16; - $this.$bi_valid = $this.$bi_valid + $length | 0; - } else { - $this.$bi_buf = ($this.$bi_buf | $value << $this.$bi_valid & 65535) << 16 >> 16; - var$3 = $this.$bi_buf; - var$4 = var$3 << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$6 = $this.$pending; - $this.$pending = var$6 + 1 | 0; - var$5[var$6] = var$4; - var$3 = var$3 >>> 8 << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$7 = $this.$pending; - $this.$pending = var$7 + 1 | 0; - var$5[var$7] = var$3; - $this.$bi_buf = $value >>> (16 - $this.$bi_valid | 0) << 16 >> 16; - $this.$bi_valid = $this.$bi_valid + ($length - 16 | 0) | 0; - } -}; -$java.cjj_Deflate__tr_align = function($this) { - var var$1; - $java.cjj_Deflate_send_bits($this, 2, 3); - $java.cjj_StaticTree_$callClinit(); - var$1 = $java.cjj_StaticTree_static_ltree.data; - $java.cjj_Deflate_send_bits($this, var$1[512] & 65535, var$1[513] & 65535); - $java.cjj_Deflate_bi_flush($this); - if ((((1 + $this.$last_eob_len | 0) + 10 | 0) - $this.$bi_valid | 0) < 9) { - $java.cjj_Deflate_send_bits($this, 2, 3); - var$1 = $java.cjj_StaticTree_static_ltree.data; - $java.cjj_Deflate_send_bits($this, var$1[512] & 65535, var$1[513] & 65535); - $java.cjj_Deflate_bi_flush($this); - } - $this.$last_eob_len = 7; -}; -$java.cjj_Deflate__tr_tally = function($this, $dist, $lc) { - var var$3, var$4, $out_length, $in_length, $dcode; - $this.$pending_buf.data[$this.$d_buf + ($this.$last_lit * 2 | 0) | 0] = $dist >>> 8 << 24 >> 24; - $this.$pending_buf.data[($this.$d_buf + ($this.$last_lit * 2 | 0) | 0) + 1 | 0] = $dist << 24 >> 24; - $this.$l_buf.data[$this.$last_lit] = $lc << 24 >> 24; - $this.$last_lit = $this.$last_lit + 1 | 0; - if (!$dist) { - var$3 = $this.$dyn_ltree.data; - $dist = $lc * 2 | 0; - var$3[$dist] = (var$3[$dist] + 1 | 0) << 16 >> 16; - } else { - $this.$matches1 = $this.$matches1 + 1 | 0; - $dist = $dist + (-1) | 0; - var$4 = $this.$dyn_ltree.data; - $lc = (($java.cjj_Tree__length_code.data[$lc] + 256 | 0) + 1 | 0) * 2 | 0; - var$4[$lc] = (var$4[$lc] + 1 | 0) << 16 >> 16; - var$3 = $this.$dyn_dtree.data; - $dist = $java.cjj_Tree_d_code($dist) * 2 | 0; - var$3[$dist] = (var$3[$dist] + 1 | 0) << 16 >> 16; - } - if (!($this.$last_lit & 8191) && $this.$level > 2) { - $out_length = $this.$last_lit * 8 | 0; - $in_length = $this.$strstart - $this.$block_start | 0; - $dcode = 0; - while ($dcode < 30) { - $out_length = Long_add(Long_fromInt($out_length), Long_mul(Long_fromInt($this.$dyn_dtree.data[$dcode * 2 | 0]), Long_add(Long_fromInt(5), Long_fromInt($java.cjj_Tree_extra_dbits.data[$dcode])))).lo; - $dcode = $dcode + 1 | 0; - } - $dist = $out_length >>> 3; - if ($this.$matches1 < ($this.$last_lit / 2 | 0) && $dist < ($in_length / 2 | 0)) - return 1; - } - return $this.$last_lit != ($this.$lit_bufsize - 1 | 0) ? 0 : 1; -}; -$java.cjj_Deflate_compress_block = function($this, $ltree, $dtree) { - var $lx, var$4, $lc, $dist, var$7, $code, var$9, $extra; - a: { - $lx = 0; - if ($this.$last_lit) - while (true) { - var$4 = $this.$pending_buf.data; - $lc = $this.$d_buf; - $dist = $lx * 2 | 0; - $dist = var$4[$lc + $dist | 0] << 8 & 65280 | $this.$pending_buf.data[($this.$d_buf + $dist | 0) + 1 | 0] & 255; - $lc = $this.$l_buf.data[$lx] & 255; - $lx = $lx + 1 | 0; - if (!$dist) { - var$4 = $ltree.data; - $lc = $lc * 2 | 0; - $java.cjj_Deflate_send_bits($this, var$4[$lc] & 65535, var$4[$lc + 1 | 0] & 65535); - } else { - var$7 = $ltree.data; - $code = $java.cjj_Tree__length_code.data[$lc]; - var$9 = (($code + 256 | 0) + 1 | 0) * 2 | 0; - $java.cjj_Deflate_send_bits($this, var$7[var$9] & 65535, var$7[var$9 + 1 | 0] & 65535); - $extra = $java.cjj_Tree_extra_lbits.data[$code]; - if ($extra) - $java.cjj_Deflate_send_bits($this, $lc - $java.cjj_Tree_base_length.data[$code] | 0, $extra); - var$4 = $dtree.data; - $dist = $dist + (-1) | 0; - $lc = $java.cjj_Tree_d_code($dist); - var$9 = $lc * 2 | 0; - $java.cjj_Deflate_send_bits($this, var$4[var$9] & 65535, var$4[var$9 + 1 | 0] & 65535); - $code = $java.cjj_Tree_extra_dbits.data[$lc]; - if ($code) - $java.cjj_Deflate_send_bits($this, $dist - $java.cjj_Tree_base_dist.data[$lc] | 0, $code); - } - if ($lx >= $this.$last_lit) - break a; - } - } - $ltree = $ltree.data; - $java.cjj_Deflate_send_bits($this, $ltree[512] & 65535, $ltree[513] & 65535); - $this.$last_eob_len = $ltree[513]; -}; -$java.cjj_Deflate_set_data_type = function($this) { - var $n, $ascii_freq, $bin_freq; - $n = 0; - $ascii_freq = 0; - $bin_freq = 0; - while ($n < 7) { - $bin_freq = $bin_freq + $this.$dyn_ltree.data[$n * 2 | 0] | 0; - $n = $n + 1 | 0; - } - while ($n < 128) { - $ascii_freq = $ascii_freq + $this.$dyn_ltree.data[$n * 2 | 0] | 0; - $n = $n + 1 | 0; - } - while ($n < 256) { - $bin_freq = $bin_freq + $this.$dyn_ltree.data[$n * 2 | 0] | 0; - $n = $n + 1 | 0; - } - $this.$data_type0 = ($bin_freq <= $ascii_freq >>> 2 ? 1 : 0) << 24 >> 24; -}; -$java.cjj_Deflate_bi_flush = function($this) { - var var$1, var$2, var$3, var$4, var$5; - if ($this.$bi_valid == 16) { - var$1 = $this.$bi_buf; - var$2 = var$1 << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$4 = $this.$pending; - $this.$pending = var$4 + 1 | 0; - var$3[var$4] = var$2; - var$1 = var$1 >>> 8 << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$5 = $this.$pending; - $this.$pending = var$5 + 1 | 0; - var$3[var$5] = var$1; - $this.$bi_buf = 0; - $this.$bi_valid = 0; - } else if ($this.$bi_valid >= 8) { - var$1 = $this.$bi_buf << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$5 = $this.$pending; - $this.$pending = var$5 + 1 | 0; - var$3[var$5] = var$1; - $this.$bi_buf = $this.$bi_buf >>> 8 << 16 >> 16; - $this.$bi_valid = $this.$bi_valid - 8 | 0; - } -}; -$java.cjj_Deflate_bi_windup = function($this) { - var var$1, var$2, var$3, var$4, var$5; - if ($this.$bi_valid > 8) { - var$1 = $this.$bi_buf; - var$2 = var$1 << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$4 = $this.$pending; - $this.$pending = var$4 + 1 | 0; - var$3[var$4] = var$2; - var$1 = var$1 >>> 8 << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$5 = $this.$pending; - $this.$pending = var$5 + 1 | 0; - var$3[var$5] = var$1; - } else if ($this.$bi_valid > 0) { - var$1 = $this.$bi_buf << 24 >> 24; - var$3 = $this.$pending_buf.data; - var$5 = $this.$pending; - $this.$pending = var$5 + 1 | 0; - var$3[var$5] = var$1; - } - $this.$bi_buf = 0; - $this.$bi_valid = 0; -}; -$java.cjj_Deflate_copy_block = function($this, $buf, $len, $header) { - var var$4, var$5, var$6; - $java.cjj_Deflate_bi_windup($this); - $this.$last_eob_len = 8; - if ($header) { - var$4 = $len << 16 >> 16; - $header = var$4 << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$6 = $this.$pending; - $this.$pending = var$6 + 1 | 0; - var$5[var$6] = $header; - $header = var$4 >>> 8 << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$6 = $this.$pending; - $this.$pending = var$6 + 1 | 0; - var$5[var$6] = $header; - var$4 = ($len ^ (-1)) << 16 >> 16; - $header = var$4 << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$6 = $this.$pending; - $this.$pending = var$6 + 1 | 0; - var$5[var$6] = $header; - $header = var$4 >>> 8 << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$6 = $this.$pending; - $this.$pending = var$6 + 1 | 0; - var$5[var$6] = $header; - } - jl_System_arraycopy($this.$window0, $buf, $this.$pending_buf, $this.$pending, $len); - $this.$pending = $this.$pending + $len | 0; -}; -$java.cjj_Deflate_flush_block_only = function($this, $eof) { - $java.cjj_Deflate__tr_flush_block($this, $this.$block_start < 0 ? (-1) : $this.$block_start, $this.$strstart - $this.$block_start | 0, $eof); - $this.$block_start = $this.$strstart; - cjj_ZStream_flush_pending($this.$strm); -}; -$java.cjj_Deflate_deflate_stored = function($this, $flush) { - var $max_block_size, $max_start; - $max_block_size = 65535; - if ($max_block_size > ($this.$pending_buf_size - 5 | 0)) - $max_block_size = $this.$pending_buf_size - 5 | 0; - while (true) { - if ($this.$lookahead <= 1) { - $java.cjj_Deflate_fill_window($this); - if (!$this.$lookahead && !$flush) - return 0; - if (!$this.$lookahead) { - $flush = $rt_compare($flush, 4); - $max_block_size = $flush ? 0 : 1; - $java.cjj_Deflate__tr_flush_block($this, $this.$block_start < 0 ? (-1) : $this.$block_start, $this.$strstart - $this.$block_start | 0, $max_block_size); - $this.$block_start = $this.$strstart; - cjj_ZStream_flush_pending($this.$strm); - if ($this.$strm.$avail_out) - return $flush ? 1 : 3; - return $flush ? 0 : 2; - } - } - $this.$strstart = $this.$strstart + $this.$lookahead | 0; - $this.$lookahead = 0; - $max_start = $this.$block_start + $max_block_size | 0; - if (!($this.$strstart && $this.$strstart < $max_start)) { - $this.$lookahead = $this.$strstart - $max_start | 0; - $this.$strstart = $max_start; - $java.cjj_Deflate__tr_flush_block($this, $this.$block_start < 0 ? (-1) : $this.$block_start, $this.$strstart - $this.$block_start | 0, 0); - $this.$block_start = $this.$strstart; - cjj_ZStream_flush_pending($this.$strm); - if (!$this.$strm.$avail_out) - return 0; - } - if (($this.$strstart - $this.$block_start | 0) < ($this.$w_size - 262 | 0)) - continue; - $java.cjj_Deflate__tr_flush_block($this, $this.$block_start < 0 ? (-1) : $this.$block_start, $this.$strstart - $this.$block_start | 0, 0); - $this.$block_start = $this.$strstart; - cjj_ZStream_flush_pending($this.$strm); - if (!$this.$strm.$avail_out) - break; - } - return 0; -}; -$java.cjj_Deflate__tr_stored_block = function($this, $buf, $stored_len, $eof) { - var var$4, var$5, var$6, var$7; - $java.cjj_Deflate_send_bits($this, 0 + (!$eof ? 0 : 1) | 0, 3); - $java.cjj_Deflate_bi_windup($this); - $this.$last_eob_len = 8; - $eof = $stored_len << 16 >> 16; - var$4 = $eof << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$6 = $this.$pending; - $this.$pending = var$6 + 1 | 0; - var$5[var$6] = var$4; - $eof = $eof >>> 8 << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$7 = $this.$pending; - $this.$pending = var$7 + 1 | 0; - var$5[var$7] = $eof; - $eof = ($stored_len ^ (-1)) << 16 >> 16; - var$4 = $eof << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$6 = $this.$pending; - $this.$pending = var$6 + 1 | 0; - var$5[var$6] = var$4; - $eof = $eof >>> 8 << 24 >> 24; - var$5 = $this.$pending_buf.data; - var$7 = $this.$pending; - $this.$pending = var$7 + 1 | 0; - var$5[var$7] = $eof; - jl_System_arraycopy($this.$window0, $buf, $this.$pending_buf, $this.$pending, $stored_len); - $this.$pending = $this.$pending + $stored_len | 0; -}; -$java.cjj_Deflate__tr_flush_block = function($this, $buf, $stored_len, $eof) { - var $max_blindex, $static_lenb, $opt_lenb, var$7, var$8; - $max_blindex = 0; - if ($this.$level <= 0) { - $static_lenb = $stored_len + 5 | 0; - $opt_lenb = $static_lenb; - } else { - if ($this.$data_type0 == 2) - $java.cjj_Deflate_set_data_type($this); - $java.cjj_Tree_build_tree($this.$l_desc, $this); - $java.cjj_Tree_build_tree($this.$d_desc, $this); - $max_blindex = $java.cjj_Deflate_build_bl_tree($this); - $opt_lenb = (($this.$opt_len + 3 | 0) + 7 | 0) >>> 3; - $static_lenb = (($this.$static_len + 3 | 0) + 7 | 0) >>> 3; - if ($static_lenb <= $opt_lenb) - $opt_lenb = $static_lenb; - } - if (($stored_len + 4 | 0) <= $opt_lenb && $buf != (-1)) { - $java.cjj_Deflate_send_bits($this, 0 + (!$eof ? 0 : 1) | 0, 3); - $java.cjj_Deflate_bi_windup($this); - $this.$last_eob_len = 8; - $max_blindex = $stored_len << 16 >> 16; - $static_lenb = $max_blindex << 24 >> 24; - var$7 = $this.$pending_buf.data; - var$8 = $this.$pending; - $this.$pending = var$8 + 1 | 0; - var$7[var$8] = $static_lenb; - $max_blindex = $max_blindex >>> 8 << 24 >> 24; - var$7 = $this.$pending_buf.data; - $opt_lenb = $this.$pending; - $this.$pending = $opt_lenb + 1 | 0; - var$7[$opt_lenb] = $max_blindex; - $max_blindex = ($stored_len ^ (-1)) << 16 >> 16; - $static_lenb = $max_blindex << 24 >> 24; - var$7 = $this.$pending_buf.data; - var$8 = $this.$pending; - $this.$pending = var$8 + 1 | 0; - var$7[var$8] = $static_lenb; - $max_blindex = $max_blindex >>> 8 << 24 >> 24; - var$7 = $this.$pending_buf.data; - $opt_lenb = $this.$pending; - $this.$pending = $opt_lenb + 1 | 0; - var$7[$opt_lenb] = $max_blindex; - jl_System_arraycopy($this.$window0, $buf, $this.$pending_buf, $this.$pending, $stored_len); - $this.$pending = $this.$pending + $stored_len | 0; - } else if ($static_lenb == $opt_lenb) { - $java.cjj_Deflate_send_bits($this, 2 + (!$eof ? 0 : 1) | 0, 3); - $java.cjj_StaticTree_$callClinit(); - $java.cjj_Deflate_compress_block($this, $java.cjj_StaticTree_static_ltree, $java.cjj_StaticTree_static_dtree); - } else { - $java.cjj_Deflate_send_bits($this, 4 + (!$eof ? 0 : 1) | 0, 3); - $java.cjj_Deflate_send_all_trees($this, $this.$l_desc.$max_code + 1 | 0, $this.$d_desc.$max_code + 1 | 0, $max_blindex + 1 | 0); - $java.cjj_Deflate_compress_block($this, $this.$dyn_ltree, $this.$dyn_dtree); - } - $java.cjj_Deflate_init_block($this); - if ($eof) - $java.cjj_Deflate_bi_windup($this); -}; -$java.cjj_Deflate_fill_window = function($this) { - var $more, $n, $p, var$4, $m; - while (true) { - $more = ($this.$window_size - $this.$lookahead | 0) - $this.$strstart | 0; - if (!$more && !$this.$strstart && !$this.$lookahead) - $more = $this.$w_size; - else if ($more == (-1)) - $more = $more + (-1) | 0; - else if ($this.$strstart >= (($this.$w_size + $this.$w_size | 0) - 262 | 0)) { - jl_System_arraycopy($this.$window0, $this.$w_size, $this.$window0, 0, $this.$w_size); - $this.$match_start = $this.$match_start - $this.$w_size | 0; - $this.$strstart = $this.$strstart - $this.$w_size | 0; - $this.$block_start = $this.$block_start - $this.$w_size | 0; - $n = $this.$hash_size; - $p = $n; - while (true) { - var$4 = $this.$head5.data; - $p = $p + (-1) | 0; - $m = var$4[$p] & 65535; - var$4 = $this.$head5; - var$4.data[$p] = $m < $this.$w_size ? 0 : ($m - $this.$w_size | 0) << 16 >> 16; - $n = $n + (-1) | 0; - if (!$n) - break; - } - $n = $this.$w_size; - $p = $n; - while (true) { - var$4 = $this.$prev.data; - $p = $p + (-1) | 0; - $m = var$4[$p] & 65535; - var$4 = $this.$prev; - var$4.data[$p] = $m < $this.$w_size ? 0 : ($m - $this.$w_size | 0) << 16 >> 16; - $n = $n + (-1) | 0; - if (!$n) - break; - } - $more = $more + $this.$w_size | 0; - } - if (!$this.$strm.$avail_in) - return; - $n = cjj_ZStream_read_buf($this.$strm, $this.$window0, $this.$strstart + $this.$lookahead | 0, $more); - $this.$lookahead = $this.$lookahead + $n | 0; - if ($this.$lookahead >= 3) { - $this.$ins_h = $this.$window0.data[$this.$strstart] & 255; - $this.$ins_h = ($this.$ins_h << $this.$hash_shift ^ $this.$window0.data[$this.$strstart + 1 | 0] & 255) & $this.$hash_mask; - } - if ($this.$lookahead >= 262) - break; - if ($this.$strm.$avail_in) - continue; - else - break; - } -}; -$java.cjj_Deflate_deflate_fast = function($this, $flush) { - var $hash_head, $bflush, var$4; - $hash_head = 0; - while (true) { - if ($this.$lookahead < 262) { - $java.cjj_Deflate_fill_window($this); - if ($this.$lookahead < 262 && !$flush) - return 0; - if (!$this.$lookahead) { - $flush = $rt_compare($flush, 4); - $hash_head = $flush ? 0 : 1; - $java.cjj_Deflate__tr_flush_block($this, $this.$block_start < 0 ? (-1) : $this.$block_start, $this.$strstart - $this.$block_start | 0, $hash_head); - $this.$block_start = $this.$strstart; - cjj_ZStream_flush_pending($this.$strm); - if (!$this.$strm.$avail_out) { - if ($flush) - return 0; - return 2; - } - return $flush ? 1 : 3; - } - } - if ($this.$lookahead >= 3) { - $this.$ins_h = ($this.$ins_h << $this.$hash_shift ^ $this.$window0.data[$this.$strstart + 2 | 0] & 255) & $this.$hash_mask; - $hash_head = $this.$head5.data[$this.$ins_h] & 65535; - $this.$prev.data[$this.$strstart & $this.$w_mask] = $this.$head5.data[$this.$ins_h]; - $this.$head5.data[$this.$ins_h] = $this.$strstart << 16 >> 16; - } - if (Long_ne(Long_fromInt($hash_head), Long_ZERO) && (($this.$strstart - $hash_head | 0) & 65535) <= ($this.$w_size - 262 | 0) && $this.$strategy != 2) - $this.$match_length = $java.cjj_Deflate_longest_match($this, $hash_head); - if ($this.$match_length < 3) { - $bflush = $java.cjj_Deflate__tr_tally($this, 0, $this.$window0.data[$this.$strstart] & 255); - $this.$lookahead = $this.$lookahead - 1 | 0; - $this.$strstart = $this.$strstart + 1 | 0; - } else { - $bflush = $java.cjj_Deflate__tr_tally($this, $this.$strstart - $this.$match_start | 0, $this.$match_length - 3 | 0); - $this.$lookahead = $this.$lookahead - $this.$match_length | 0; - if ($this.$match_length <= $this.$max_lazy_match && $this.$lookahead >= 3) { - $this.$match_length = $this.$match_length - 1 | 0; - while (true) { - $this.$strstart = $this.$strstart + 1 | 0; - $this.$ins_h = ($this.$ins_h << $this.$hash_shift ^ $this.$window0.data[$this.$strstart + 2 | 0] & 255) & $this.$hash_mask; - $hash_head = $this.$head5.data[$this.$ins_h] & 65535; - $this.$prev.data[$this.$strstart & $this.$w_mask] = $this.$head5.data[$this.$ins_h]; - $this.$head5.data[$this.$ins_h] = $this.$strstart << 16 >> 16; - var$4 = $this.$match_length - 1 | 0; - $this.$match_length = var$4; - if (var$4) - continue; - else - break; - } - $this.$strstart = $this.$strstart + 1 | 0; - } else { - $this.$strstart = $this.$strstart + $this.$match_length | 0; - $this.$match_length = 0; - $this.$ins_h = $this.$window0.data[$this.$strstart] & 255; - $this.$ins_h = ($this.$ins_h << $this.$hash_shift ^ $this.$window0.data[$this.$strstart + 1 | 0] & 255) & $this.$hash_mask; - } - } - if (!$bflush) - continue; - $java.cjj_Deflate__tr_flush_block($this, $this.$block_start < 0 ? (-1) : $this.$block_start, $this.$strstart - $this.$block_start | 0, 0); - $this.$block_start = $this.$strstart; - cjj_ZStream_flush_pending($this.$strm); - if (!$this.$strm.$avail_out) - break; - } - return 0; -}; -$java.cjj_Deflate_deflate_slow = function($this, $flush) { - var $hash_head, $max_insert, $bflush, var$5; - $hash_head = 0; - while (true) { - if ($this.$lookahead < 262) { - $java.cjj_Deflate_fill_window($this); - if ($this.$lookahead < 262 && !$flush) - return 0; - if (!$this.$lookahead) { - if ($this.$match_available) { - $java.cjj_Deflate__tr_tally($this, 0, $this.$window0.data[$this.$strstart - 1 | 0] & 255); - $this.$match_available = 0; - } - $flush = $rt_compare($flush, 4); - $java.cjj_Deflate_flush_block_only($this, $flush ? 0 : 1); - if (!$this.$strm.$avail_out) { - if ($flush) - return 0; - return 2; - } - return $flush ? 1 : 3; - } - } - if ($this.$lookahead >= 3) { - $this.$ins_h = ($this.$ins_h << $this.$hash_shift ^ $this.$window0.data[$this.$strstart + 2 | 0] & 255) & $this.$hash_mask; - $hash_head = $this.$head5.data[$this.$ins_h] & 65535; - $this.$prev.data[$this.$strstart & $this.$w_mask] = $this.$head5.data[$this.$ins_h]; - $this.$head5.data[$this.$ins_h] = $this.$strstart << 16 >> 16; - } - a: { - $this.$prev_length = $this.$match_length; - $this.$prev_match = $this.$match_start; - $this.$match_length = 2; - if ($hash_head && $this.$prev_length < $this.$max_lazy_match && (($this.$strstart - $hash_head | 0) & 65535) <= ($this.$w_size - 262 | 0)) { - if ($this.$strategy != 2) - $this.$match_length = $java.cjj_Deflate_longest_match($this, $hash_head); - if ($this.$match_length <= 5) { - if ($this.$strategy != 1) { - if ($this.$match_length != 3) - break a; - if (($this.$strstart - $this.$match_start | 0) <= 4096) - break a; - } - $this.$match_length = 2; - } - } - } - if (!($this.$prev_length >= 3 && $this.$match_length <= $this.$prev_length)) { - if (!$this.$match_available) { - $this.$match_available = 1; - $this.$strstart = $this.$strstart + 1 | 0; - $this.$lookahead = $this.$lookahead - 1 | 0; - continue; - } - if ($java.cjj_Deflate__tr_tally($this, 0, $this.$window0.data[$this.$strstart - 1 | 0] & 255)) - $java.cjj_Deflate_flush_block_only($this, 0); - $this.$strstart = $this.$strstart + 1 | 0; - $this.$lookahead = $this.$lookahead - 1 | 0; - if (!$this.$strm.$avail_out) - break; - continue; - } - $max_insert = ($this.$strstart + $this.$lookahead | 0) - 3 | 0; - $bflush = $java.cjj_Deflate__tr_tally($this, ($this.$strstart - 1 | 0) - $this.$prev_match | 0, $this.$prev_length - 3 | 0); - $this.$lookahead = $this.$lookahead - ($this.$prev_length - 1 | 0) | 0; - $this.$prev_length = $this.$prev_length - 2 | 0; - while (true) { - var$5 = $this.$strstart + 1 | 0; - $this.$strstart = var$5; - if (var$5 <= $max_insert) { - $this.$ins_h = ($this.$ins_h << $this.$hash_shift ^ $this.$window0.data[$this.$strstart + 2 | 0] & 255) & $this.$hash_mask; - $hash_head = $this.$head5.data[$this.$ins_h] & 65535; - $this.$prev.data[$this.$strstart & $this.$w_mask] = $this.$head5.data[$this.$ins_h]; - $this.$head5.data[$this.$ins_h] = $this.$strstart << 16 >> 16; - } - var$5 = $this.$prev_length - 1 | 0; - $this.$prev_length = var$5; - if (!var$5) - break; - } - $this.$match_available = 0; - $this.$match_length = 2; - $this.$strstart = $this.$strstart + 1 | 0; - if ($bflush) { - $java.cjj_Deflate_flush_block_only($this, 0); - if (!$this.$strm.$avail_out) - return 0; - } - } - return 0; -}; -$java.cjj_Deflate_longest_match = function($this, $cur_match) { - var $chain_length, $scan, $best_len, $limit, $nice_match, $wmask, $strend, var$9, $len, $scan_end1, $scan_end, var$13, var$14, var$15, var$16; - $chain_length = $this.$max_chain_length; - $scan = $this.$strstart; - $best_len = $this.$prev_length; - $limit = $this.$strstart <= ($this.$w_size - 262 | 0) ? 0 : $this.$strstart - ($this.$w_size - 262 | 0) | 0; - $nice_match = $this.$nice_match; - $wmask = $this.$w_mask; - $strend = $this.$strstart + 258 | 0; - var$9 = $this.$window0.data; - $len = $scan + $best_len | 0; - $scan_end1 = var$9[$len - 1 | 0]; - $scan_end = $this.$window0.data[$len]; - if ($this.$prev_length >= $this.$good_match) - $chain_length = $chain_length >> 2; - if ($nice_match > $this.$lookahead) - $nice_match = $this.$lookahead; - var$13 = $strend - 258 | 0; - a: { - while (true) { - var$9 = $this.$window0.data; - $len = $cur_match + $best_len | 0; - if (var$9[$len] == $scan_end && $this.$window0.data[$len - 1 | 0] == $scan_end1 && $this.$window0.data[$cur_match] == $this.$window0.data[$scan]) { - var$9 = $this.$window0.data; - var$14 = $cur_match + 1 | 0; - if (var$9[var$14] == $this.$window0.data[$scan + 1 | 0]) { - $scan = $scan + 2 | 0; - var$15 = var$14 + 1 | 0; - b: { - while (true) { - var$9 = $this.$window0.data; - $scan = $scan + 1 | 0; - $len = var$9[$scan]; - var$9 = $this.$window0.data; - var$14 = var$15 + 1 | 0; - if ($len != var$9[var$14]) - break; - var$9 = $this.$window0.data; - $scan = $scan + 1 | 0; - $len = var$9[$scan]; - var$9 = $this.$window0.data; - var$14 = var$14 + 1 | 0; - if ($len != var$9[var$14]) - break b; - var$9 = $this.$window0.data; - $scan = $scan + 1 | 0; - $len = var$9[$scan]; - var$9 = $this.$window0.data; - var$14 = var$14 + 1 | 0; - if ($len != var$9[var$14]) - break b; - var$9 = $this.$window0.data; - $scan = $scan + 1 | 0; - $len = var$9[$scan]; - var$9 = $this.$window0.data; - var$14 = var$14 + 1 | 0; - if ($len != var$9[var$14]) - break b; - var$9 = $this.$window0.data; - $scan = $scan + 1 | 0; - $len = var$9[$scan]; - var$9 = $this.$window0.data; - var$14 = var$14 + 1 | 0; - if ($len != var$9[var$14]) - break b; - var$9 = $this.$window0.data; - $scan = $scan + 1 | 0; - var$15 = var$9[$scan]; - var$9 = $this.$window0.data; - var$16 = var$14 + 1 | 0; - if (var$15 != var$9[var$16]) - break b; - var$9 = $this.$window0.data; - $scan = $scan + 1 | 0; - $len = var$9[$scan]; - var$9 = $this.$window0.data; - var$14 = var$16 + 1 | 0; - if ($len != var$9[var$14]) - break b; - var$9 = $this.$window0.data; - $scan = $scan + 1 | 0; - $len = var$9[$scan]; - var$9 = $this.$window0.data; - var$15 = var$14 + 1 | 0; - if ($len != var$9[var$15]) - break b; - if ($scan >= $strend) - break b; - } - } - $len = 258 - ($strend - $scan | 0) | 0; - if ($len <= $best_len) - $scan = var$13; - else { - $this.$match_start = $cur_match; - if ($len >= $nice_match) - break; - var$9 = $this.$window0.data; - var$14 = var$13 + $len | 0; - $scan_end1 = var$9[var$14 - 1 | 0]; - $scan_end = $this.$window0.data[var$14]; - $scan = var$13; - $best_len = $len; - } - } - } - $cur_match = $this.$prev.data[$cur_match & $wmask] & 65535; - if ($cur_match <= $limit) { - $len = $best_len; - break a; - } - $chain_length = $chain_length + (-1) | 0; - if (!$chain_length) { - $len = $best_len; - break a; - } - } - } - if ($len <= $this.$lookahead) - return $len; - return $this.$lookahead; -}; -$java.cjj_Deflate_deflateInit0 = function($this, $level, $bits) { - return $java.cjj_Deflate_deflateInit($this, $level, 8, $bits, 8, 0); -}; -$java.cjj_Deflate_deflateInit = function($this, $level, $method, $windowBits, $memLevel, $strategy) { - var $wrap, var$7, var$8; - $wrap = 1; - $this.$strm.$msg = null; - if ($level == (-1)) - $level = 6; - if ($windowBits < 0) { - $wrap = 0; - $windowBits = -$windowBits; - } else if ($windowBits > 15) { - $wrap = 2; - $windowBits = $windowBits + (-16) | 0; - var$7 = $this.$strm; - var$8 = new cjj_CRC32; - var$8.$v0 = 0; - var$7.$adler = var$8; - } - a: { - if ($memLevel < 1) - break a; - if ($memLevel > 9) - break a; - if ($method != 8) - break a; - if ($windowBits < 9) - break a; - if ($windowBits > 15) - break a; - if ($level < 0) - break a; - if ($level > 9) - break a; - if ($strategy < 0) - break a; - if ($strategy <= 2) { - $this.$strm.$dstate = $this; - $this.$wrap1 = $wrap; - $this.$w_bits = $windowBits; - $this.$w_size = 1 << $this.$w_bits; - $this.$w_mask = $this.$w_size - 1 | 0; - $this.$hash_bits = $memLevel + 7 | 0; - $this.$hash_size = 1 << $this.$hash_bits; - $this.$hash_mask = $this.$hash_size - 1 | 0; - $this.$hash_shift = (($this.$hash_bits + 3 | 0) - 1 | 0) / 3 | 0; - $this.$window0 = $rt_createByteArray($this.$w_size * 2 | 0); - $this.$prev = $rt_createShortArray($this.$w_size); - $this.$head5 = $rt_createShortArray($this.$hash_size); - $this.$lit_bufsize = 1 << ($memLevel + 6 | 0); - $this.$pending_buf = $rt_createByteArray($this.$lit_bufsize * 3 | 0); - $this.$pending_buf_size = $this.$lit_bufsize * 3 | 0; - $this.$d_buf = $this.$lit_bufsize; - $this.$l_buf = $rt_createByteArray($this.$lit_bufsize); - $this.$level = $level; - $this.$strategy = $strategy; - $this.$method0 = $method << 24 >> 24; - return $java.cjj_Deflate_deflateReset($this); - } - } - return (-2); -}; -$java.cjj_Deflate_deflateReset = function($this) { - var var$1; - var$1 = $this.$strm; - $this.$strm.$total_out = Long_ZERO; - var$1.$total_in = Long_ZERO; - $this.$strm.$msg = null; - $this.$strm.$data_type = 2; - $this.$pending = 0; - $this.$pending_out = 0; - if ($this.$wrap1 < 0) - $this.$wrap1 = -$this.$wrap1; - $this.$status1 = $this.$wrap1 ? 42 : 113; - $this.$strm.$adler.$reset(); - $this.$last_flush = 0; - $java.cjj_Deflate_tr_init($this); - $java.cjj_Deflate_lm_init($this); - return 0; -}; -$java.cjj_Deflate_deflateEnd = function($this) { - if ($this.$status1 != 42 && $this.$status1 != 113 && $this.$status1 != 666) - return (-2); - $this.$pending_buf = null; - $this.$l_buf = null; - $this.$head5 = null; - $this.$prev = null; - $this.$window0 = null; - return $this.$status1 != 113 ? 0 : (-3); -}; -$java.cjj_Deflate_deflate = function($this, $flush) { - var var$2, $old_flush, $header, $level_flags, $bstate, $adler, $i; - var$2 = $rt_compare($flush, 4); - if (var$2 <= 0 && $flush >= 0) { - a: { - if ($this.$strm.$next_out !== null && !($this.$strm.$next_in === null && $this.$strm.$avail_in)) { - if ($this.$status1 != 666) - break a; - if (!var$2) - break a; - } - $this.$strm.$msg = $java.cjj_Deflate_z_errmsg.data[4]; - return (-2); - } - if (!$this.$strm.$avail_out) { - $this.$strm.$msg = $java.cjj_Deflate_z_errmsg.data[7]; - return (-5); - } - $old_flush = $this.$last_flush; - $this.$last_flush = $flush; - if ($this.$status1 == 42) { - if ($this.$wrap1 == 2) { - $java.cjj_GZIPHeader_put($java.cjj_Deflate_getGZIPHeader($this), $this); - $this.$status1 = 113; - $this.$strm.$adler.$reset(); - } else { - $header = (8 + (($this.$w_bits - 8 | 0) << 4) | 0) << 8; - $level_flags = (($this.$level - 1 | 0) & 255) >> 1; - if ($level_flags > 3) - $level_flags = 3; - $bstate = $header | $level_flags << 6; - if ($this.$strstart) - $bstate = $bstate | 32; - $bstate = $bstate + (31 - ($bstate % 31 | 0) | 0) | 0; - $this.$status1 = 113; - $java.cjj_Deflate_putShortMSB($this, $bstate); - if ($this.$strstart) { - $adler = $this.$strm.$adler.$getValue0(); - $java.cjj_Deflate_putShortMSB($this, Long_shru($adler, 16).lo); - $java.cjj_Deflate_putShortMSB($this, Long_and($adler, Long_fromInt(65535)).lo); - } - $this.$strm.$adler.$reset(); - } - } - b: { - if ($this.$pending) { - cjj_ZStream_flush_pending($this.$strm); - if ($this.$strm.$avail_out) - break b; - $this.$last_flush = (-1); - return 0; - } - if (!$this.$strm.$avail_in && $flush <= $old_flush && var$2) { - $this.$strm.$msg = $java.cjj_Deflate_z_errmsg.data[7]; - return (-5); - } - } - if ($this.$status1 == 666 && $this.$strm.$avail_in) { - $this.$strm.$msg = $java.cjj_Deflate_z_errmsg.data[7]; - return (-5); - } - c: { - if (!$this.$strm.$avail_in && !$this.$lookahead) { - if (!$flush) - break c; - if ($this.$status1 == 666) - break c; - } - d: { - $bstate = (-1); - switch ($java.cjj_Deflate_config_table.data[$this.$level].$func) { - case 0: - $bstate = $java.cjj_Deflate_deflate_stored($this, $flush); - break d; - case 1: - $bstate = $java.cjj_Deflate_deflate_fast($this, $flush); - break d; - case 2: - $bstate = $java.cjj_Deflate_deflate_slow($this, $flush); - break d; - default: - } - } - $old_flush = $rt_compare($bstate, 2); - if (!($old_flush && $bstate != 3)) - $this.$status1 = 666; - if ($bstate && $old_flush) { - if ($bstate != 1) - break c; - e: { - if ($flush == 1) - $java.cjj_Deflate__tr_align($this); - else { - $java.cjj_Deflate__tr_stored_block($this, 0, 0, 0); - if ($flush == 3) { - $i = 0; - while (true) { - if ($i >= $this.$hash_size) - break e; - $this.$head5.data[$i] = 0; - $i = $i + 1 | 0; - } - } - } - } - cjj_ZStream_flush_pending($this.$strm); - if ($this.$strm.$avail_out) - break c; - $this.$last_flush = (-1); - return 0; - } - if (!$this.$strm.$avail_out) - $this.$last_flush = (-1); - return 0; - } - if (var$2) - return 0; - if ($this.$wrap1 <= 0) - return 1; - if ($this.$wrap1 != 2) { - $adler = $this.$strm.$adler.$getValue0(); - $java.cjj_Deflate_putShortMSB($this, Long_shru($adler, 16).lo); - $java.cjj_Deflate_putShortMSB($this, Long_and($adler, Long_fromInt(65535)).lo); - } else { - $adler = $this.$strm.$adler.$getValue0(); - $java.cjj_Deflate_put_byte0($this, Long_and($adler, Long_fromInt(255)).lo << 24 >> 24); - $java.cjj_Deflate_put_byte0($this, Long_and(Long_shr($adler, 8), Long_fromInt(255)).lo << 24 >> 24); - $java.cjj_Deflate_put_byte0($this, Long_and(Long_shr($adler, 16), Long_fromInt(255)).lo << 24 >> 24); - $java.cjj_Deflate_put_byte0($this, Long_and(Long_shr($adler, 24), Long_fromInt(255)).lo << 24 >> 24); - $java.cjj_Deflate_put_byte0($this, Long_and($this.$strm.$total_in, Long_fromInt(255)).lo << 24 >> 24); - $java.cjj_Deflate_put_byte0($this, Long_and(Long_shr($this.$strm.$total_in, 8), Long_fromInt(255)).lo << 24 >> 24); - $java.cjj_Deflate_put_byte0($this, Long_and(Long_shr($this.$strm.$total_in, 16), Long_fromInt(255)).lo << 24 >> 24); - $java.cjj_Deflate_put_byte0($this, Long_and(Long_shr($this.$strm.$total_in, 24), Long_fromInt(255)).lo << 24 >> 24); - $java.cjj_GZIPHeader_setCRC($java.cjj_Deflate_getGZIPHeader($this), $adler); - } - cjj_ZStream_flush_pending($this.$strm); - if ($this.$wrap1 > 0) - $this.$wrap1 = -$this.$wrap1; - return !$this.$pending ? 1 : 0; - } - return (-2); -}; -$java.cjj_Deflate_getGZIPHeader = function($this) { - var var$1; - jl_Object_monitorEnterSync($this); - try { - if ($this.$gheader0 === null) { - var$1 = new cjj_GZIPHeader; - var$1.$text2 = 0; - var$1.$fhcrc = 0; - var$1.$os = 255; - var$1.$done0 = 0; - var$1.$mtime = Long_ZERO; - $this.$gheader0 = var$1; - } - return $this.$gheader0; - } finally { - jl_Object_monitorExitSync($this); - } -}; -function cjj_Deflate__clinit_() { - var var$1, var$2, var$3; - $java.cjj_Deflate_config_table = $rt_createArray($java.cjj_Deflate$Config, 10); - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 0; - var$2.$max_lazy = 0; - var$2.$nice_length = 0; - var$2.$max_chain = 0; - var$2.$func = 0; - var$1[0] = var$2; - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 4; - var$2.$max_lazy = 4; - var$2.$nice_length = 8; - var$2.$max_chain = 4; - var$2.$func = 1; - var$1[1] = var$2; - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 4; - var$2.$max_lazy = 5; - var$2.$nice_length = 16; - var$2.$max_chain = 8; - var$2.$func = 1; - var$1[2] = var$2; - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 4; - var$2.$max_lazy = 6; - var$2.$nice_length = 32; - var$2.$max_chain = 32; - var$2.$func = 1; - var$1[3] = var$2; - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 4; - var$2.$max_lazy = 4; - var$2.$nice_length = 16; - var$2.$max_chain = 16; - var$2.$func = 2; - var$1[4] = var$2; - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 8; - var$2.$max_lazy = 16; - var$2.$nice_length = 32; - var$2.$max_chain = 32; - var$2.$func = 2; - var$1[5] = var$2; - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 8; - var$2.$max_lazy = 16; - var$2.$nice_length = 128; - var$2.$max_chain = 128; - var$2.$func = 2; - var$1[6] = var$2; - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 8; - var$2.$max_lazy = 32; - var$2.$nice_length = 128; - var$2.$max_chain = 256; - var$2.$func = 2; - var$1[7] = var$2; - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 32; - var$2.$max_lazy = 128; - var$2.$nice_length = 258; - var$2.$max_chain = 1024; - var$2.$func = 2; - var$1[8] = var$2; - var$1 = $java.cjj_Deflate_config_table.data; - var$2 = new $java.cjj_Deflate$Config; - var$2.$good_length = 32; - var$2.$max_lazy = 258; - var$2.$nice_length = 258; - var$2.$max_chain = 4096; - var$2.$func = 2; - var$1[9] = var$2; - var$1 = $rt_createArray(jl_String, 10); - var$3 = var$1.data; - var$3[0] = $rt_s(505); - var$3[1] = $rt_s(2906); - var$3[2] = $rt_s(44); - var$3[3] = $rt_s(2907); - var$3[4] = $rt_s(2908); - var$3[5] = $rt_s(2909); - var$3[6] = $rt_s(2910); - var$3[7] = $rt_s(2911); - var$3[8] = $rt_s(2912); - var$3[9] = $rt_s(44); - $java.cjj_Deflate_z_errmsg = var$1; -} -function nms_EnchantmentNameParts() { - var a = this; jl_Object.call(a); - a.$rand7 = null; - a.$wordList = null; -} -$java.nms_EnchantmentNameParts_instance = null; -$java.nms_EnchantmentNameParts__init_ = function() { - var var_0 = new nms_EnchantmentNameParts(); - nms_EnchantmentNameParts__init_(var_0); - return var_0; -}; -function nms_EnchantmentNameParts__init_($this) { - $this.$rand7 = new ju_Random; - $this.$wordList = jur_Pattern_split(jur_Pattern_compile($rt_s(307), 0), $rt_s(2913), 0); -} -$java.nms_EnchantmentNameParts_generateRandomEnchantName = function($this) { - var $var1, $var2, $var3, var$4, var$5, var$6; - $var1 = (Math.random() * 2.0 | 0) + 3 | 0; - $var2 = $rt_s(44); - $var3 = 0; - while ($var3 < $var1) { - if ($var3 > 0) { - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $var2); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(307)); - $var2 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - } - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $var2); - var$5 = $this.$wordList.data; - var$6 = $this.$wordList.data.length; - $var2 = var$5[Math.random() * var$6 | 0]; - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $var2); - $var2 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - $var3 = $var3 + 1 | 0; - } - return $var2; -}; -$java.nms_EnchantmentNameParts_setRandSeed = function($this, $par1) { - return; -}; -function nms_EnchantmentNameParts__clinit_() { - var var$1; - var$1 = new nms_EnchantmentNameParts; - var$1.$rand7 = new ju_Random; - var$1.$wordList = jur_Pattern_split(jur_Pattern_compile($rt_s(307), 0), $rt_s(2913), 0); - $java.nms_EnchantmentNameParts_instance = var$1; -} -function nms_GuiButtonMerchant() { - nms_GuiButton.call(this); - this.$mirrored = 0; -} -$java.nms_GuiButtonMerchant_tex = null; -$java.nms_GuiButtonMerchant_drawButton = function($this, $par1Minecraft, $par2, $par3) { - var $var4, $var5, $var6; - if ($this.$drawButton0) { - nle_TextureLocation_bindTexture($java.nms_GuiButtonMerchant_tex); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $var4 = $par2 >= $this.$xPosition3 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition3 + $this.$width3 | 0) && $par3 < ($this.$yPosition + $this.$height4 | 0) ? 1 : 0; - $var5 = 0; - $var6 = 176; - if (!$this.$enabled) - $var6 = $var6 + ($this.$width3 * 2 | 0) | 0; - else if ($var4) - $var6 = $var6 + $this.$width3 | 0; - if (!$this.$mirrored) - $var5 = $var5 + $this.$height4 | 0; - nms_Gui_drawTexturedModalRect($this, $this.$xPosition3, $this.$yPosition, $var6, $var5, $this.$width3, $this.$height4); - } -}; -function nms_GuiButtonMerchant__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2804); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiButtonMerchant_tex = var$1; -} -function nms_GuiBeaconButton() { - var a = this; nms_GuiButton.call(a); - a.$buttonTexture = null; - a.$field_82257_l = 0; - a.$field_82258_m = 0; - a.$field_82256_n = 0; -} -$java.nms_GuiBeaconButton_tex_beacon = null; -$java.nms_GuiBeaconButton_drawButton = function($this, $par1Minecraft, $par2, $par3) { - var $var5; - if ($this.$drawButton0) { - nle_TextureLocation_bindTexture($java.nms_GuiBeaconButton_tex_beacon); - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - $this.$field_82253_i = $par2 >= $this.$xPosition3 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition3 + $this.$width3 | 0) && $par3 < ($this.$yPosition + $this.$height4 | 0) ? 1 : 0; - $var5 = 0; - if (!$this.$enabled) - $var5 = $var5 + ($this.$width3 * 2 | 0) | 0; - else if ($this.$field_82256_n) - $var5 = $var5 + ($this.$width3 * 1 | 0) | 0; - else if ($this.$field_82253_i) - $var5 = $var5 + ($this.$width3 * 3 | 0) | 0; - nms_Gui_drawTexturedModalRect($this, $this.$xPosition3, $this.$yPosition, $var5, 219, $this.$width3, $this.$height4); - nle_TextureLocation_bindTexture($this.$buttonTexture); - nms_Gui_drawTexturedModalRect($this, $this.$xPosition3 + 2 | 0, $this.$yPosition + 2 | 0, $this.$field_82257_l, $this.$field_82258_m, 18, 18); - } -}; -$java.nms_GuiBeaconButton_func_82255_b = function($this) { - return $this.$field_82256_n; -}; -$java.nms_GuiBeaconButton_func_82254_b = function($this, $par1) { - $this.$field_82256_n = $par1; -}; -function nms_GuiBeaconButton__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(755); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiBeaconButton_tex_beacon = var$1; -} -$java.nms_GuiBeaconButtonConfirm = function() { - nms_GuiBeaconButton.call(this); - this.$beaconGui = null; -}; -$java.nms_GuiBeaconButtonConfirm_func_82251_b = function($this, $par1, $par2) { - var var$3, var$4, var$5; - var$3 = $this.$beaconGui; - var$4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(436)); - var$5 = $rt_createArray(jl_String, 1); - var$5.data[0] = var$4; - var$4 = new ju_Arrays$ArrayAsList; - var$4.$array3 = var$5; - nms_GuiContainer_func_102021_a(var$3, var$4, $par1, $par2); -}; -$java.nms_GuiBeaconButtonCancel = function() { - nms_GuiBeaconButton.call(this); - this.$beaconGui0 = null; -}; -$java.nms_GuiBeaconButtonCancel_func_82251_b = function($this, $par1, $par2) { - var var$3, var$4, var$5; - var$3 = $this.$beaconGui0; - var$4 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2548)); - var$5 = $rt_createArray(jl_String, 1); - var$5.data[0] = var$4; - var$4 = new ju_Arrays$ArrayAsList; - var$4.$array3 = var$5; - nms_GuiContainer_func_102021_a(var$3, var$4, $par1, $par2); -}; -$java.nms_GuiBeaconButtonPower = function() { - var a = this; nms_GuiBeaconButton.call(a); - a.$field_82261_l = 0; - a.$field_82262_m = 0; - a.$beaconGui1 = null; -}; -$java.nms_GuiBeaconButtonPower__init_ = function(var_0, var_1, var_2, var_3, var_4, var_5) { - var var_6 = new $java.nms_GuiBeaconButtonPower(); - $java.nms_GuiBeaconButtonPower__init_0(var_6, var_0, var_1, var_2, var_3, var_4, var_5); - return var_6; -}; -$java.nms_GuiBeaconButtonPower__init_0 = function($this, $par1GuiBeacon, $par2, $par3, $par4, $par5, $par6) { - var var$7, var$8, var$9; - var$7 = 0 + ((nms_Potion_potionTypes.data[$par5].$statusIconIndex % 8 | 0) * 18 | 0) | 0; - var$8 = 198 + ((nms_Potion_potionTypes.data[$par5].$statusIconIndex / 8 | 0) * 18 | 0) | 0; - nms_GuiButton__init_0($this, $par2, $par3, $par4, 22, 22, $rt_s(44)); - var$9 = new nle_TextureLocation; - var$9.$path = $rt_s(1148); - var$9.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$9); - $this.$buttonTexture = var$9; - $this.$field_82257_l = var$7; - $this.$field_82258_m = var$8; - $this.$beaconGui1 = $par1GuiBeacon; - $this.$field_82261_l = $par5; - $this.$field_82262_m = $par6; -}; -$java.nms_GuiBeaconButtonPower_func_82251_b = function($this, $par1, $par2) { - var $var3, var$4, var$5, var$6; - $var3 = nms_Potion_potionTypes.data[$this.$field_82261_l].$name7; - $var3 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $var3); - if ($this.$field_82262_m >= 3 && $this.$field_82261_l != nms_Potion_regeneration.$id3) { - var$4 = new jl_StringBuilder; - var$4.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $var3); - jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(1144)); - $var3 = jl_String__init_0(var$4.$buffer, 0, var$4.$length); - } - var$5 = $this.$beaconGui1; - var$6 = $rt_createArray(jl_String, 1); - var$6.data[0] = $var3; - var$4 = new ju_Arrays$ArrayAsList; - var$4.$array3 = var$6; - nms_GuiContainer_func_102021_a(var$5, var$4, $par1, $par2); -}; -function cjj_Tree() { - var a = this; jl_Object.call(a); - a.$dyn_tree = null; - a.$max_code = 0; - a.$stat_desc = null; -} -$java.cjj_Tree_extra_lbits = null; -$java.cjj_Tree_extra_dbits = null; -$java.cjj_Tree_extra_blbits = null; -$java.cjj_Tree_bl_order = null; -$java.cjj_Tree__dist_code = null; -$java.cjj_Tree__length_code = null; -$java.cjj_Tree_base_length = null; -$java.cjj_Tree_base_dist = null; -$java.cjj_Tree__init_ = function() { - var var_0 = new cjj_Tree(); - cjj_Tree__init_(var_0); - return var_0; -}; -function cjj_Tree__init_($this) { - return; -} -$java.cjj_Tree_d_code = function($dist) { - return $dist < 256 ? $java.cjj_Tree__dist_code.data[$dist] : $java.cjj_Tree__dist_code.data[256 + ($dist >>> 7) | 0]; -}; -$java.cjj_Tree_gen_bitlen = function($this, $s) { - var $tree, $stree, $extra, $base, $max_length, $overflow, $bits, var$9, $h, $n, $m, $n_0, $xbits, $f; - $tree = $this.$dyn_tree; - $stree = $this.$stat_desc.$static_tree; - $extra = $this.$stat_desc.$extra_bits; - $base = $this.$stat_desc.$extra_base; - $max_length = $this.$stat_desc.$max_length; - $overflow = 0; - $bits = 0; - while ($bits <= 15) { - $s.$bl_count.data[$bits] = 0; - $bits = $bits + 1 | 0; - } - var$9 = $tree.data; - var$9[($s.$heap.data[$s.$heap_max] * 2 | 0) + 1 | 0] = 0; - $h = $s.$heap_max + 1 | 0; - while ($h < 573) { - $n = $s.$heap.data[$h]; - $m = $n * 2 | 0; - $n_0 = $m + 1 | 0; - $bits = var$9[(var$9[$n_0] * 2 | 0) + 1 | 0] + 1 | 0; - if ($bits > $max_length) { - $overflow = $overflow + 1 | 0; - $bits = $max_length; - } - var$9[$n_0] = $bits << 16 >> 16; - if ($n <= $this.$max_code) { - $tree = $s.$bl_count.data; - $tree[$bits] = ($tree[$bits] + 1 | 0) << 16 >> 16; - $xbits = 0; - if ($n >= $base) - $xbits = $extra.data[$n - $base | 0]; - $f = var$9[$m]; - $s.$opt_len = $s.$opt_len + $rt_imul($f, $bits + $xbits | 0) | 0; - if ($stree !== null) { - $tree = $stree.data; - $s.$static_len = $s.$static_len + $rt_imul($f, $tree[$n_0] + $xbits | 0) | 0; - } - } - $h = $h + 1 | 0; - } - if (!$overflow) - return; - $xbits = $max_length - 1 | 0; - while (true) { - $base = $xbits; - while (!$s.$bl_count.data[$base]) { - $base = $base + (-1) | 0; - } - $tree = $s.$bl_count.data; - $tree[$base] = ($tree[$base] - 1 | 0) << 16 >> 16; - $tree = $s.$bl_count.data; - $n_0 = $base + 1 | 0; - $tree[$n_0] = ($tree[$n_0] + 2 | 0) << 16 >> 16; - $tree = $s.$bl_count.data; - $tree[$max_length] = ($tree[$max_length] - 1 | 0) << 16 >> 16; - $overflow = $overflow + (-2) | 0; - if ($overflow <= 0) - break; - } - while ($max_length) { - $n_0 = $s.$bl_count.data[$max_length]; - while ($n_0) { - $tree = $s.$heap.data; - $h = $h + (-1) | 0; - $m = $tree[$h]; - if ($m > $this.$max_code) - continue; - $overflow = $m * 2 | 0; - $bits = $overflow + 1 | 0; - if (var$9[$bits] != $max_length) { - $s.$opt_len = Long_add(Long_fromInt($s.$opt_len), Long_mul(Long_sub(Long_fromInt($max_length), Long_fromInt(var$9[$bits])), Long_fromInt(var$9[$overflow]))).lo; - var$9[$bits] = $max_length << 16 >> 16; - } - $n_0 = $n_0 + (-1) | 0; - } - $max_length = $max_length + (-1) | 0; - } -}; -$java.cjj_Tree_build_tree = function($this, $s) { - var $tree, $stree, $node, $max_code, $n, var$7, $m, $node_0, var$10, var$11, var$12, var$13; - $tree = $this.$dyn_tree; - $stree = $this.$stat_desc.$static_tree; - $node = $this.$stat_desc.$elems; - $max_code = (-1); - $s.$heap_len = 0; - $s.$heap_max = 573; - $n = 0; - while ($n < $node) { - var$7 = $tree.data; - $m = $n * 2 | 0; - if (!var$7[$m]) - var$7[$m + 1 | 0] = 0; - else { - var$7 = $s.$heap.data; - $m = $s.$heap_len + 1 | 0; - $s.$heap_len = $m; - var$7[$m] = $n; - $s.$depth0.data[$n] = 0; - $max_code = $n; - } - $n = $n + 1 | 0; - } - while ($s.$heap_len < 2) { - var$7 = $s.$heap; - $m = $s.$heap_len + 1 | 0; - $s.$heap_len = $m; - if ($max_code >= 2) - $node_0 = 0; - else { - $max_code = $max_code + 1 | 0; - $node_0 = $max_code; - } - var$7 = var$7.data; - var$10 = $tree.data; - var$7[$m] = $node_0; - $m = $node_0 * 2 | 0; - var$10[$m] = 1; - $s.$depth0.data[$node_0] = 0; - $s.$opt_len = $s.$opt_len - 1 | 0; - if ($stree === null) - continue; - var$7 = $stree.data; - $s.$static_len = $s.$static_len - var$7[$m + 1 | 0] | 0; - } - $this.$max_code = $max_code; - $node_0 = $s.$heap_len / 2 | 0; - while ($node_0 >= 1) { - $java.cjj_Deflate_pqdownheap($s, $tree, $node_0); - $node_0 = $node_0 + (-1) | 0; - } - while (true) { - $stree = $tree.data; - var$11 = $s.$heap.data[1]; - var$10 = $s.$heap.data; - var$7 = $s.$heap.data; - $node_0 = $s.$heap_len; - $s.$heap_len = $node_0 - 1 | 0; - var$10[1] = var$7[$node_0]; - $java.cjj_Deflate_pqdownheap($s, $tree, 1); - $m = $s.$heap.data[1]; - var$7 = $s.$heap.data; - $node_0 = $s.$heap_max - 1 | 0; - $s.$heap_max = $node_0; - var$7[$node_0] = var$11; - var$7 = $s.$heap.data; - $node_0 = $s.$heap_max - 1 | 0; - $s.$heap_max = $node_0; - var$7[$node_0] = $m; - var$12 = $node * 2 | 0; - $node_0 = var$11 * 2 | 0; - var$13 = $stree[$node_0]; - $n = $m * 2 | 0; - $stree[var$12] = (var$13 + $stree[$n] | 0) << 16 >> 16; - var$7 = $s.$depth0; - var$11 = $s.$depth0.data[var$11]; - var$12 = $s.$depth0.data[$m]; - if (var$11 > var$12) - var$12 = var$11; - var$7.data[$node] = (var$12 + 1 | 0) << 24 >> 24; - $m = $node_0 + 1 | 0; - $node_0 = $n + 1 | 0; - $n = $node << 16 >> 16; - $stree[$node_0] = $n; - $stree[$m] = $n; - var$7 = $s.$heap.data; - $node_0 = $node + 1 | 0; - var$7[1] = $node; - $java.cjj_Deflate_pqdownheap($s, $tree, 1); - if ($s.$heap_len < 2) - break; - $node = $node_0; - } - var$10 = $s.$heap.data; - $m = $s.$heap_max - 1 | 0; - $s.$heap_max = $m; - var$10[$m] = $s.$heap.data[1]; - $java.cjj_Tree_gen_bitlen($this, $s); - $java.cjj_Tree_gen_codes($tree, $max_code, $s.$bl_count, $s.$next_code); -}; -$java.cjj_Tree_gen_codes = function($tree, $max_code, $bl_count, $next_code) { - var $code, $bits, $n, $len, var$9; - $next_code = $next_code.data; - $code = 0; - $next_code[0] = 0; - $bits = 1; - while ($bits <= 15) { - $code = ($code + $bl_count.data[$bits - 1 | 0] | 0) << 1 << 16 >> 16; - $next_code[$bits] = $code; - $bits = $bits + 1 | 0; - } - $n = 0; - while ($n <= $max_code) { - $bl_count = $tree.data; - $code = $n * 2 | 0; - $len = $bl_count[$code + 1 | 0]; - if ($len) { - var$9 = $next_code[$len]; - $next_code[$len] = (var$9 + 1 | 0) << 16 >> 16; - $bl_count[$code] = $java.cjj_Tree_bi_reverse(var$9, $len) << 16 >> 16; - } - $n = $n + 1 | 0; - } -}; -$java.cjj_Tree_bi_reverse = function($code, $len) { - var $res; - $res = 0; - while (true) { - $res = $res | $code & 1; - $code = $code >>> 1; - $res = $res << 1; - $len = $len + (-1) | 0; - if ($len <= 0) - break; - } - return $res >>> 1; -}; -function cjj_Tree__clinit_() { - var var$1, var$2; - var$1 = $rt_createIntArray(29); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 0; - var$2[2] = 0; - var$2[3] = 0; - var$2[4] = 0; - var$2[5] = 0; - var$2[6] = 0; - var$2[7] = 0; - var$2[8] = 1; - var$2[9] = 1; - var$2[10] = 1; - var$2[11] = 1; - var$2[12] = 2; - var$2[13] = 2; - var$2[14] = 2; - var$2[15] = 2; - var$2[16] = 3; - var$2[17] = 3; - var$2[18] = 3; - var$2[19] = 3; - var$2[20] = 4; - var$2[21] = 4; - var$2[22] = 4; - var$2[23] = 4; - var$2[24] = 5; - var$2[25] = 5; - var$2[26] = 5; - var$2[27] = 5; - var$2[28] = 0; - $java.cjj_Tree_extra_lbits = var$1; - var$1 = $rt_createIntArray(30); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 0; - var$2[2] = 0; - var$2[3] = 0; - var$2[4] = 1; - var$2[5] = 1; - var$2[6] = 2; - var$2[7] = 2; - var$2[8] = 3; - var$2[9] = 3; - var$2[10] = 4; - var$2[11] = 4; - var$2[12] = 5; - var$2[13] = 5; - var$2[14] = 6; - var$2[15] = 6; - var$2[16] = 7; - var$2[17] = 7; - var$2[18] = 8; - var$2[19] = 8; - var$2[20] = 9; - var$2[21] = 9; - var$2[22] = 10; - var$2[23] = 10; - var$2[24] = 11; - var$2[25] = 11; - var$2[26] = 12; - var$2[27] = 12; - var$2[28] = 13; - var$2[29] = 13; - $java.cjj_Tree_extra_dbits = var$1; - var$1 = $rt_createIntArray(19); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 0; - var$2[2] = 0; - var$2[3] = 0; - var$2[4] = 0; - var$2[5] = 0; - var$2[6] = 0; - var$2[7] = 0; - var$2[8] = 0; - var$2[9] = 0; - var$2[10] = 0; - var$2[11] = 0; - var$2[12] = 0; - var$2[13] = 0; - var$2[14] = 0; - var$2[15] = 0; - var$2[16] = 2; - var$2[17] = 3; - var$2[18] = 7; - $java.cjj_Tree_extra_blbits = var$1; - var$1 = $rt_createByteArray(19); - var$2 = var$1.data; - var$2[0] = 16; - var$2[1] = 17; - var$2[2] = 18; - var$2[3] = 0; - var$2[4] = 8; - var$2[5] = 7; - var$2[6] = 9; - var$2[7] = 6; - var$2[8] = 10; - var$2[9] = 5; - var$2[10] = 11; - var$2[11] = 4; - var$2[12] = 12; - var$2[13] = 3; - var$2[14] = 13; - var$2[15] = 2; - var$2[16] = 14; - var$2[17] = 1; - var$2[18] = 15; - $java.cjj_Tree_bl_order = var$1; - var$1 = $rt_createByteArray(512); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 1; - var$2[2] = 2; - var$2[3] = 3; - var$2[4] = 4; - var$2[5] = 4; - var$2[6] = 5; - var$2[7] = 5; - var$2[8] = 6; - var$2[9] = 6; - var$2[10] = 6; - var$2[11] = 6; - var$2[12] = 7; - var$2[13] = 7; - var$2[14] = 7; - var$2[15] = 7; - var$2[16] = 8; - var$2[17] = 8; - var$2[18] = 8; - var$2[19] = 8; - var$2[20] = 8; - var$2[21] = 8; - var$2[22] = 8; - var$2[23] = 8; - var$2[24] = 9; - var$2[25] = 9; - var$2[26] = 9; - var$2[27] = 9; - var$2[28] = 9; - var$2[29] = 9; - var$2[30] = 9; - var$2[31] = 9; - var$2[32] = 10; - var$2[33] = 10; - var$2[34] = 10; - var$2[35] = 10; - var$2[36] = 10; - var$2[37] = 10; - var$2[38] = 10; - var$2[39] = 10; - var$2[40] = 10; - var$2[41] = 10; - var$2[42] = 10; - var$2[43] = 10; - var$2[44] = 10; - var$2[45] = 10; - var$2[46] = 10; - var$2[47] = 10; - var$2[48] = 11; - var$2[49] = 11; - var$2[50] = 11; - var$2[51] = 11; - var$2[52] = 11; - var$2[53] = 11; - var$2[54] = 11; - var$2[55] = 11; - var$2[56] = 11; - var$2[57] = 11; - var$2[58] = 11; - var$2[59] = 11; - var$2[60] = 11; - var$2[61] = 11; - var$2[62] = 11; - var$2[63] = 11; - var$2[64] = 12; - var$2[65] = 12; - var$2[66] = 12; - var$2[67] = 12; - var$2[68] = 12; - var$2[69] = 12; - var$2[70] = 12; - var$2[71] = 12; - var$2[72] = 12; - var$2[73] = 12; - var$2[74] = 12; - var$2[75] = 12; - var$2[76] = 12; - var$2[77] = 12; - var$2[78] = 12; - var$2[79] = 12; - var$2[80] = 12; - var$2[81] = 12; - var$2[82] = 12; - var$2[83] = 12; - var$2[84] = 12; - var$2[85] = 12; - var$2[86] = 12; - var$2[87] = 12; - var$2[88] = 12; - var$2[89] = 12; - var$2[90] = 12; - var$2[91] = 12; - var$2[92] = 12; - var$2[93] = 12; - var$2[94] = 12; - var$2[95] = 12; - var$2[96] = 13; - var$2[97] = 13; - var$2[98] = 13; - var$2[99] = 13; - var$2[100] = 13; - var$2[101] = 13; - var$2[102] = 13; - var$2[103] = 13; - var$2[104] = 13; - var$2[105] = 13; - var$2[106] = 13; - var$2[107] = 13; - var$2[108] = 13; - var$2[109] = 13; - var$2[110] = 13; - var$2[111] = 13; - var$2[112] = 13; - var$2[113] = 13; - var$2[114] = 13; - var$2[115] = 13; - var$2[116] = 13; - var$2[117] = 13; - var$2[118] = 13; - var$2[119] = 13; - var$2[120] = 13; - var$2[121] = 13; - var$2[122] = 13; - var$2[123] = 13; - var$2[124] = 13; - var$2[125] = 13; - var$2[126] = 13; - var$2[127] = 13; - var$2[128] = 14; - var$2[129] = 14; - var$2[130] = 14; - var$2[131] = 14; - var$2[132] = 14; - var$2[133] = 14; - var$2[134] = 14; - var$2[135] = 14; - var$2[136] = 14; - var$2[137] = 14; - var$2[138] = 14; - var$2[139] = 14; - var$2[140] = 14; - var$2[141] = 14; - var$2[142] = 14; - var$2[143] = 14; - var$2[144] = 14; - var$2[145] = 14; - var$2[146] = 14; - var$2[147] = 14; - var$2[148] = 14; - var$2[149] = 14; - var$2[150] = 14; - var$2[151] = 14; - var$2[152] = 14; - var$2[153] = 14; - var$2[154] = 14; - var$2[155] = 14; - var$2[156] = 14; - var$2[157] = 14; - var$2[158] = 14; - var$2[159] = 14; - var$2[160] = 14; - var$2[161] = 14; - var$2[162] = 14; - var$2[163] = 14; - var$2[164] = 14; - var$2[165] = 14; - var$2[166] = 14; - var$2[167] = 14; - var$2[168] = 14; - var$2[169] = 14; - var$2[170] = 14; - var$2[171] = 14; - var$2[172] = 14; - var$2[173] = 14; - var$2[174] = 14; - var$2[175] = 14; - var$2[176] = 14; - var$2[177] = 14; - var$2[178] = 14; - var$2[179] = 14; - var$2[180] = 14; - var$2[181] = 14; - var$2[182] = 14; - var$2[183] = 14; - var$2[184] = 14; - var$2[185] = 14; - var$2[186] = 14; - var$2[187] = 14; - var$2[188] = 14; - var$2[189] = 14; - var$2[190] = 14; - var$2[191] = 14; - var$2[192] = 15; - var$2[193] = 15; - var$2[194] = 15; - var$2[195] = 15; - var$2[196] = 15; - var$2[197] = 15; - var$2[198] = 15; - var$2[199] = 15; - var$2[200] = 15; - var$2[201] = 15; - var$2[202] = 15; - var$2[203] = 15; - var$2[204] = 15; - var$2[205] = 15; - var$2[206] = 15; - var$2[207] = 15; - var$2[208] = 15; - var$2[209] = 15; - var$2[210] = 15; - var$2[211] = 15; - var$2[212] = 15; - var$2[213] = 15; - var$2[214] = 15; - var$2[215] = 15; - var$2[216] = 15; - var$2[217] = 15; - var$2[218] = 15; - var$2[219] = 15; - var$2[220] = 15; - var$2[221] = 15; - var$2[222] = 15; - var$2[223] = 15; - var$2[224] = 15; - var$2[225] = 15; - var$2[226] = 15; - var$2[227] = 15; - var$2[228] = 15; - var$2[229] = 15; - var$2[230] = 15; - var$2[231] = 15; - var$2[232] = 15; - var$2[233] = 15; - var$2[234] = 15; - var$2[235] = 15; - var$2[236] = 15; - var$2[237] = 15; - var$2[238] = 15; - var$2[239] = 15; - var$2[240] = 15; - var$2[241] = 15; - var$2[242] = 15; - var$2[243] = 15; - var$2[244] = 15; - var$2[245] = 15; - var$2[246] = 15; - var$2[247] = 15; - var$2[248] = 15; - var$2[249] = 15; - var$2[250] = 15; - var$2[251] = 15; - var$2[252] = 15; - var$2[253] = 15; - var$2[254] = 15; - var$2[255] = 15; - var$2[256] = 0; - var$2[257] = 0; - var$2[258] = 16; - var$2[259] = 17; - var$2[260] = 18; - var$2[261] = 18; - var$2[262] = 19; - var$2[263] = 19; - var$2[264] = 20; - var$2[265] = 20; - var$2[266] = 20; - var$2[267] = 20; - var$2[268] = 21; - var$2[269] = 21; - var$2[270] = 21; - var$2[271] = 21; - var$2[272] = 22; - var$2[273] = 22; - var$2[274] = 22; - var$2[275] = 22; - var$2[276] = 22; - var$2[277] = 22; - var$2[278] = 22; - var$2[279] = 22; - var$2[280] = 23; - var$2[281] = 23; - var$2[282] = 23; - var$2[283] = 23; - var$2[284] = 23; - var$2[285] = 23; - var$2[286] = 23; - var$2[287] = 23; - var$2[288] = 24; - var$2[289] = 24; - var$2[290] = 24; - var$2[291] = 24; - var$2[292] = 24; - var$2[293] = 24; - var$2[294] = 24; - var$2[295] = 24; - var$2[296] = 24; - var$2[297] = 24; - var$2[298] = 24; - var$2[299] = 24; - var$2[300] = 24; - var$2[301] = 24; - var$2[302] = 24; - var$2[303] = 24; - var$2[304] = 25; - var$2[305] = 25; - var$2[306] = 25; - var$2[307] = 25; - var$2[308] = 25; - var$2[309] = 25; - var$2[310] = 25; - var$2[311] = 25; - var$2[312] = 25; - var$2[313] = 25; - var$2[314] = 25; - var$2[315] = 25; - var$2[316] = 25; - var$2[317] = 25; - var$2[318] = 25; - var$2[319] = 25; - var$2[320] = 26; - var$2[321] = 26; - var$2[322] = 26; - var$2[323] = 26; - var$2[324] = 26; - var$2[325] = 26; - var$2[326] = 26; - var$2[327] = 26; - var$2[328] = 26; - var$2[329] = 26; - var$2[330] = 26; - var$2[331] = 26; - var$2[332] = 26; - var$2[333] = 26; - var$2[334] = 26; - var$2[335] = 26; - var$2[336] = 26; - var$2[337] = 26; - var$2[338] = 26; - var$2[339] = 26; - var$2[340] = 26; - var$2[341] = 26; - var$2[342] = 26; - var$2[343] = 26; - var$2[344] = 26; - var$2[345] = 26; - var$2[346] = 26; - var$2[347] = 26; - var$2[348] = 26; - var$2[349] = 26; - var$2[350] = 26; - var$2[351] = 26; - var$2[352] = 27; - var$2[353] = 27; - var$2[354] = 27; - var$2[355] = 27; - var$2[356] = 27; - var$2[357] = 27; - var$2[358] = 27; - var$2[359] = 27; - var$2[360] = 27; - var$2[361] = 27; - var$2[362] = 27; - var$2[363] = 27; - var$2[364] = 27; - var$2[365] = 27; - var$2[366] = 27; - var$2[367] = 27; - var$2[368] = 27; - var$2[369] = 27; - var$2[370] = 27; - var$2[371] = 27; - var$2[372] = 27; - var$2[373] = 27; - var$2[374] = 27; - var$2[375] = 27; - var$2[376] = 27; - var$2[377] = 27; - var$2[378] = 27; - var$2[379] = 27; - var$2[380] = 27; - var$2[381] = 27; - var$2[382] = 27; - var$2[383] = 27; - var$2[384] = 28; - var$2[385] = 28; - var$2[386] = 28; - var$2[387] = 28; - var$2[388] = 28; - var$2[389] = 28; - var$2[390] = 28; - var$2[391] = 28; - var$2[392] = 28; - var$2[393] = 28; - var$2[394] = 28; - var$2[395] = 28; - var$2[396] = 28; - var$2[397] = 28; - var$2[398] = 28; - var$2[399] = 28; - var$2[400] = 28; - var$2[401] = 28; - var$2[402] = 28; - var$2[403] = 28; - var$2[404] = 28; - var$2[405] = 28; - var$2[406] = 28; - var$2[407] = 28; - var$2[408] = 28; - var$2[409] = 28; - var$2[410] = 28; - var$2[411] = 28; - var$2[412] = 28; - var$2[413] = 28; - var$2[414] = 28; - var$2[415] = 28; - var$2[416] = 28; - var$2[417] = 28; - var$2[418] = 28; - var$2[419] = 28; - var$2[420] = 28; - var$2[421] = 28; - var$2[422] = 28; - var$2[423] = 28; - var$2[424] = 28; - var$2[425] = 28; - var$2[426] = 28; - var$2[427] = 28; - var$2[428] = 28; - var$2[429] = 28; - var$2[430] = 28; - var$2[431] = 28; - var$2[432] = 28; - var$2[433] = 28; - var$2[434] = 28; - var$2[435] = 28; - var$2[436] = 28; - var$2[437] = 28; - var$2[438] = 28; - var$2[439] = 28; - var$2[440] = 28; - var$2[441] = 28; - var$2[442] = 28; - var$2[443] = 28; - var$2[444] = 28; - var$2[445] = 28; - var$2[446] = 28; - var$2[447] = 28; - var$2[448] = 29; - var$2[449] = 29; - var$2[450] = 29; - var$2[451] = 29; - var$2[452] = 29; - var$2[453] = 29; - var$2[454] = 29; - var$2[455] = 29; - var$2[456] = 29; - var$2[457] = 29; - var$2[458] = 29; - var$2[459] = 29; - var$2[460] = 29; - var$2[461] = 29; - var$2[462] = 29; - var$2[463] = 29; - var$2[464] = 29; - var$2[465] = 29; - var$2[466] = 29; - var$2[467] = 29; - var$2[468] = 29; - var$2[469] = 29; - var$2[470] = 29; - var$2[471] = 29; - var$2[472] = 29; - var$2[473] = 29; - var$2[474] = 29; - var$2[475] = 29; - var$2[476] = 29; - var$2[477] = 29; - var$2[478] = 29; - var$2[479] = 29; - var$2[480] = 29; - var$2[481] = 29; - var$2[482] = 29; - var$2[483] = 29; - var$2[484] = 29; - var$2[485] = 29; - var$2[486] = 29; - var$2[487] = 29; - var$2[488] = 29; - var$2[489] = 29; - var$2[490] = 29; - var$2[491] = 29; - var$2[492] = 29; - var$2[493] = 29; - var$2[494] = 29; - var$2[495] = 29; - var$2[496] = 29; - var$2[497] = 29; - var$2[498] = 29; - var$2[499] = 29; - var$2[500] = 29; - var$2[501] = 29; - var$2[502] = 29; - var$2[503] = 29; - var$2[504] = 29; - var$2[505] = 29; - var$2[506] = 29; - var$2[507] = 29; - var$2[508] = 29; - var$2[509] = 29; - var$2[510] = 29; - var$2[511] = 29; - $java.cjj_Tree__dist_code = var$1; - var$1 = $rt_createByteArray(256); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 1; - var$2[2] = 2; - var$2[3] = 3; - var$2[4] = 4; - var$2[5] = 5; - var$2[6] = 6; - var$2[7] = 7; - var$2[8] = 8; - var$2[9] = 8; - var$2[10] = 9; - var$2[11] = 9; - var$2[12] = 10; - var$2[13] = 10; - var$2[14] = 11; - var$2[15] = 11; - var$2[16] = 12; - var$2[17] = 12; - var$2[18] = 12; - var$2[19] = 12; - var$2[20] = 13; - var$2[21] = 13; - var$2[22] = 13; - var$2[23] = 13; - var$2[24] = 14; - var$2[25] = 14; - var$2[26] = 14; - var$2[27] = 14; - var$2[28] = 15; - var$2[29] = 15; - var$2[30] = 15; - var$2[31] = 15; - var$2[32] = 16; - var$2[33] = 16; - var$2[34] = 16; - var$2[35] = 16; - var$2[36] = 16; - var$2[37] = 16; - var$2[38] = 16; - var$2[39] = 16; - var$2[40] = 17; - var$2[41] = 17; - var$2[42] = 17; - var$2[43] = 17; - var$2[44] = 17; - var$2[45] = 17; - var$2[46] = 17; - var$2[47] = 17; - var$2[48] = 18; - var$2[49] = 18; - var$2[50] = 18; - var$2[51] = 18; - var$2[52] = 18; - var$2[53] = 18; - var$2[54] = 18; - var$2[55] = 18; - var$2[56] = 19; - var$2[57] = 19; - var$2[58] = 19; - var$2[59] = 19; - var$2[60] = 19; - var$2[61] = 19; - var$2[62] = 19; - var$2[63] = 19; - var$2[64] = 20; - var$2[65] = 20; - var$2[66] = 20; - var$2[67] = 20; - var$2[68] = 20; - var$2[69] = 20; - var$2[70] = 20; - var$2[71] = 20; - var$2[72] = 20; - var$2[73] = 20; - var$2[74] = 20; - var$2[75] = 20; - var$2[76] = 20; - var$2[77] = 20; - var$2[78] = 20; - var$2[79] = 20; - var$2[80] = 21; - var$2[81] = 21; - var$2[82] = 21; - var$2[83] = 21; - var$2[84] = 21; - var$2[85] = 21; - var$2[86] = 21; - var$2[87] = 21; - var$2[88] = 21; - var$2[89] = 21; - var$2[90] = 21; - var$2[91] = 21; - var$2[92] = 21; - var$2[93] = 21; - var$2[94] = 21; - var$2[95] = 21; - var$2[96] = 22; - var$2[97] = 22; - var$2[98] = 22; - var$2[99] = 22; - var$2[100] = 22; - var$2[101] = 22; - var$2[102] = 22; - var$2[103] = 22; - var$2[104] = 22; - var$2[105] = 22; - var$2[106] = 22; - var$2[107] = 22; - var$2[108] = 22; - var$2[109] = 22; - var$2[110] = 22; - var$2[111] = 22; - var$2[112] = 23; - var$2[113] = 23; - var$2[114] = 23; - var$2[115] = 23; - var$2[116] = 23; - var$2[117] = 23; - var$2[118] = 23; - var$2[119] = 23; - var$2[120] = 23; - var$2[121] = 23; - var$2[122] = 23; - var$2[123] = 23; - var$2[124] = 23; - var$2[125] = 23; - var$2[126] = 23; - var$2[127] = 23; - var$2[128] = 24; - var$2[129] = 24; - var$2[130] = 24; - var$2[131] = 24; - var$2[132] = 24; - var$2[133] = 24; - var$2[134] = 24; - var$2[135] = 24; - var$2[136] = 24; - var$2[137] = 24; - var$2[138] = 24; - var$2[139] = 24; - var$2[140] = 24; - var$2[141] = 24; - var$2[142] = 24; - var$2[143] = 24; - var$2[144] = 24; - var$2[145] = 24; - var$2[146] = 24; - var$2[147] = 24; - var$2[148] = 24; - var$2[149] = 24; - var$2[150] = 24; - var$2[151] = 24; - var$2[152] = 24; - var$2[153] = 24; - var$2[154] = 24; - var$2[155] = 24; - var$2[156] = 24; - var$2[157] = 24; - var$2[158] = 24; - var$2[159] = 24; - var$2[160] = 25; - var$2[161] = 25; - var$2[162] = 25; - var$2[163] = 25; - var$2[164] = 25; - var$2[165] = 25; - var$2[166] = 25; - var$2[167] = 25; - var$2[168] = 25; - var$2[169] = 25; - var$2[170] = 25; - var$2[171] = 25; - var$2[172] = 25; - var$2[173] = 25; - var$2[174] = 25; - var$2[175] = 25; - var$2[176] = 25; - var$2[177] = 25; - var$2[178] = 25; - var$2[179] = 25; - var$2[180] = 25; - var$2[181] = 25; - var$2[182] = 25; - var$2[183] = 25; - var$2[184] = 25; - var$2[185] = 25; - var$2[186] = 25; - var$2[187] = 25; - var$2[188] = 25; - var$2[189] = 25; - var$2[190] = 25; - var$2[191] = 25; - var$2[192] = 26; - var$2[193] = 26; - var$2[194] = 26; - var$2[195] = 26; - var$2[196] = 26; - var$2[197] = 26; - var$2[198] = 26; - var$2[199] = 26; - var$2[200] = 26; - var$2[201] = 26; - var$2[202] = 26; - var$2[203] = 26; - var$2[204] = 26; - var$2[205] = 26; - var$2[206] = 26; - var$2[207] = 26; - var$2[208] = 26; - var$2[209] = 26; - var$2[210] = 26; - var$2[211] = 26; - var$2[212] = 26; - var$2[213] = 26; - var$2[214] = 26; - var$2[215] = 26; - var$2[216] = 26; - var$2[217] = 26; - var$2[218] = 26; - var$2[219] = 26; - var$2[220] = 26; - var$2[221] = 26; - var$2[222] = 26; - var$2[223] = 26; - var$2[224] = 27; - var$2[225] = 27; - var$2[226] = 27; - var$2[227] = 27; - var$2[228] = 27; - var$2[229] = 27; - var$2[230] = 27; - var$2[231] = 27; - var$2[232] = 27; - var$2[233] = 27; - var$2[234] = 27; - var$2[235] = 27; - var$2[236] = 27; - var$2[237] = 27; - var$2[238] = 27; - var$2[239] = 27; - var$2[240] = 27; - var$2[241] = 27; - var$2[242] = 27; - var$2[243] = 27; - var$2[244] = 27; - var$2[245] = 27; - var$2[246] = 27; - var$2[247] = 27; - var$2[248] = 27; - var$2[249] = 27; - var$2[250] = 27; - var$2[251] = 27; - var$2[252] = 27; - var$2[253] = 27; - var$2[254] = 27; - var$2[255] = 28; - $java.cjj_Tree__length_code = var$1; - var$1 = $rt_createIntArray(29); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 1; - var$2[2] = 2; - var$2[3] = 3; - var$2[4] = 4; - var$2[5] = 5; - var$2[6] = 6; - var$2[7] = 7; - var$2[8] = 8; - var$2[9] = 10; - var$2[10] = 12; - var$2[11] = 14; - var$2[12] = 16; - var$2[13] = 20; - var$2[14] = 24; - var$2[15] = 28; - var$2[16] = 32; - var$2[17] = 40; - var$2[18] = 48; - var$2[19] = 56; - var$2[20] = 64; - var$2[21] = 80; - var$2[22] = 96; - var$2[23] = 112; - var$2[24] = 128; - var$2[25] = 160; - var$2[26] = 192; - var$2[27] = 224; - var$2[28] = 0; - $java.cjj_Tree_base_length = var$1; - var$1 = $rt_createIntArray(30); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 1; - var$2[2] = 2; - var$2[3] = 3; - var$2[4] = 4; - var$2[5] = 6; - var$2[6] = 8; - var$2[7] = 12; - var$2[8] = 16; - var$2[9] = 24; - var$2[10] = 32; - var$2[11] = 48; - var$2[12] = 64; - var$2[13] = 96; - var$2[14] = 128; - var$2[15] = 192; - var$2[16] = 256; - var$2[17] = 384; - var$2[18] = 512; - var$2[19] = 768; - var$2[20] = 1024; - var$2[21] = 1536; - var$2[22] = 2048; - var$2[23] = 3072; - var$2[24] = 4096; - var$2[25] = 6144; - var$2[26] = 8192; - var$2[27] = 12288; - var$2[28] = 16384; - var$2[29] = 24576; - $java.cjj_Tree_base_dist = var$1; -} -function nms_EntitySelectorAlive() { - jl_Object.call(this); -} -$java.nms_EntitySelectorAlive__init_ = function() { - var var_0 = new nms_EntitySelectorAlive(); - nms_EntitySelectorAlive__init_(var_0); - return var_0; -}; -function nms_EntitySelectorAlive__init_($this) { - return; -} -$java.nms_EntitySelectorAlive_isEntityApplicable = function($this, $par1Entity) { - return $par1Entity.$isEntityAlive(); -}; -function nms_EntitySelectorInventory() { - jl_Object.call(this); -} -$java.nms_EntitySelectorInventory__init_ = function() { - var var_0 = new nms_EntitySelectorInventory(); - nms_EntitySelectorInventory__init_(var_0); - return var_0; -}; -function nms_EntitySelectorInventory__init_($this) { - return; -} -$java.nms_EntitySelectorInventory_isEntityApplicable = function($this, $par1Entity) { - return $rt_isInstance($par1Entity, nms_IInventory) && $par1Entity.$isEntityAlive() ? 1 : 0; -}; -$java.cjj_Deflate$Config = function() { - var a = this; jl_Object.call(a); - a.$good_length = 0; - a.$max_lazy = 0; - a.$nice_length = 0; - a.$max_chain = 0; - a.$func = 0; -}; -function nms_GuiScreenBook() { - var a = this; nms_GuiScreen.call(a); - a.$editingPlayer = null; - a.$itemstackBook = null; - a.$bookIsUnsigned = 0; - a.$bookModified = 0; - a.$editingTitle = 0; - a.$updateCount = 0; - a.$bookImageWidth = 0; - a.$bookImageHeight = 0; - a.$bookTotalPages = 0; - a.$currPage = 0; - a.$bookPages = null; - a.$bookTitle = null; - a.$buttonNextPage = null; - a.$buttonPreviousPage = null; - a.$buttonDone = null; - a.$buttonSign = null; - a.$buttonFinalize = null; - a.$buttonCancel = null; -} -$java.nms_GuiScreenBook_tex = null; -function nms_GuiScreenBook__init_(var_0, var_1, var_2) { - var var_3 = new nms_GuiScreenBook(); - $java.nms_GuiScreenBook__init_(var_3, var_0, var_1, var_2); - return var_3; -} -$java.nms_GuiScreenBook__init_ = function($this, $par1EntityPlayer, $par2ItemStack, $par3) { - var $var4, var$5, var$6; - nms_GuiScreen__init_($this); - $this.$bookImageWidth = 192; - $this.$bookImageHeight = 192; - $this.$bookTotalPages = 1; - $this.$bookTitle = $rt_s(44); - $this.$editingPlayer = $par1EntityPlayer; - $this.$itemstackBook = $par2ItemStack; - $this.$bookIsUnsigned = $par3; - if ($par2ItemStack.$stackTagCompound === null ? 0 : 1) { - $var4 = $par2ItemStack.$stackTagCompound; - $par2ItemStack = $var4.$tagMap; - var$5 = jl_String_hashCode($rt_s(2914)); - if (!(ju_HashMap_findNonNullKeyEntry($par2ItemStack, $rt_s(2914), var$5 & ($par2ItemStack.$elementData.data.length - 1 | 0), var$5) === null ? 0 : 1)) { - $par2ItemStack = new nms_NBTTagList; - $par2ItemStack.$name0 = $rt_s(2914); - $par1EntityPlayer = new ju_ArrayList; - $par1EntityPlayer.$array1 = $rt_createArray(jl_Object, 10); - $par2ItemStack.$tagList = $par1EntityPlayer; - } else { - $par2ItemStack = $var4.$tagMap; - var$6 = jl_String_hashCode($rt_s(2914)); - $par1EntityPlayer = ju_HashMap_findNonNullKeyEntry($par2ItemStack, $rt_s(2914), var$6 & ($par2ItemStack.$elementData.data.length - 1 | 0), var$6); - $par2ItemStack = $par1EntityPlayer === null ? null : $par1EntityPlayer.$value0; - } - $this.$bookPages = $par2ItemStack; - if ($this.$bookPages !== null) { - $this.$bookPages = nms_NBTTagList_copy($this.$bookPages); - $this.$bookTotalPages = $this.$bookPages.$tagList.$size0; - if ($this.$bookTotalPages < 1) - $this.$bookTotalPages = 1; - } - } - if ($this.$bookPages === null && $par3) { - $par2ItemStack = new nms_NBTTagList; - $par2ItemStack.$name0 = $rt_s(2914); - $par1EntityPlayer = new ju_ArrayList; - $par1EntityPlayer.$array1 = $rt_createArray(jl_Object, 10); - $par2ItemStack.$tagList = $par1EntityPlayer; - $this.$bookPages = $par2ItemStack; - $par2ItemStack = $this.$bookPages; - $var4 = new nms_NBTTagString; - $var4.$name0 = $rt_s(72); - $var4.$data4 = $rt_s(44); - $par2ItemStack.$tagType = 8; - ju_ArrayList_add($par2ItemStack.$tagList, $var4); - $this.$bookTotalPages = 1; - } -}; -$java.nms_GuiScreenBook_updateScreen = function($this) { - $this.$updateCount = $this.$updateCount + 1 | 0; -}; -$java.nms_GuiScreenBook_initGui = function($this) { - var var$1, var$2, var$3, var$4, $var1; - var$1 = $this.$buttonList; - ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null); - var$1.$size0 = 0; - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 1; - if (!$this.$bookIsUnsigned) { - var$2 = $this.$buttonList; - var$1 = nms_GuiButton__init_(0, ($this.$width0 / 2 | 0) - 100 | 0, 4 + $this.$bookImageHeight | 0, 200, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(436))); - $this.$buttonDone = var$1; - ju_ArrayList_add(var$2, var$1); - } else { - var$1 = $this.$buttonList; - var$3 = nms_GuiButton__init_(3, ($this.$width0 / 2 | 0) - 100 | 0, 4 + $this.$bookImageHeight | 0, 98, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2915))); - $this.$buttonSign = var$3; - ju_ArrayList_add(var$1, var$3); - var$1 = $this.$buttonList; - var$4 = nms_GuiButton__init_(0, ($this.$width0 / 2 | 0) + 2 | 0, 4 + $this.$bookImageHeight | 0, 98, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(436))); - $this.$buttonDone = var$4; - ju_ArrayList_add(var$1, var$4); - var$1 = $this.$buttonList; - var$3 = nms_GuiButton__init_(5, ($this.$width0 / 2 | 0) - 100 | 0, 4 + $this.$bookImageHeight | 0, 98, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2916))); - $this.$buttonFinalize = var$3; - ju_ArrayList_add(var$1, var$3); - var$1 = $this.$buttonList; - var$3 = nms_GuiButton__init_(4, ($this.$width0 / 2 | 0) + 2 | 0, 4 + $this.$bookImageHeight | 0, 98, 20, nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2548))); - $this.$buttonCancel = var$3; - ju_ArrayList_add(var$1, var$3); - } - $var1 = ($this.$width0 - $this.$bookImageWidth | 0) / 2 | 0; - var$1 = $this.$buttonList; - var$3 = new nms_GuiButtonNextPage; - nms_GuiButton__init_0(var$3, 1, $var1 + 120 | 0, 156, 23, 13, $rt_s(44)); - var$3.$nextPage = 1; - $this.$buttonNextPage = var$3; - ju_ArrayList_add(var$1, var$3); - var$1 = $this.$buttonList; - var$3 = new nms_GuiButtonNextPage; - nms_GuiButton__init_0(var$3, 2, $var1 + 38 | 0, 156, 23, 13, $rt_s(44)); - var$3.$nextPage = 0; - $this.$buttonPreviousPage = var$3; - ju_ArrayList_add(var$1, var$3); - $java.nms_GuiScreenBook_updateButtons($this); -}; -$java.nms_GuiScreenBook_onGuiClosed = function($this) { - nlea_EaglerAdapterImpl2_$callClinit(); - nlea_EaglerAdapterImpl2_enableRepeatEvents = 0; -}; -$java.nms_GuiScreenBook_updateButtons = function($this) { - var var$1, var$2; - a: { - b: { - var$1 = $this.$buttonNextPage; - if (!$this.$editingTitle) { - if ($this.$currPage < ($this.$bookTotalPages - 1 | 0)) - break b; - if ($this.$bookIsUnsigned) - break b; - } - var$2 = 0; - break a; - } - var$2 = 1; - } - var$1.$drawButton0 = var$2; - $this.$buttonPreviousPage.$drawButton0 = !$this.$editingTitle && $this.$currPage > 0 ? 1 : 0; - $this.$buttonDone.$drawButton0 = $this.$bookIsUnsigned && $this.$editingTitle ? 0 : 1; - if ($this.$bookIsUnsigned) { - $this.$buttonSign.$drawButton0 = $this.$editingTitle ? 0 : 1; - $this.$buttonCancel.$drawButton0 = $this.$editingTitle; - $this.$buttonFinalize.$drawButton0 = $this.$editingTitle; - $this.$buttonFinalize.$enabled = jl_String_trim($this.$bookTitle).$characters.data.length <= 0 ? 0 : 1; - } -}; -$java.nms_GuiScreenBook_sendBookToServer = function($this, $par1) { - var $var8, var$3, $var2, $var7, $var3, $var4, $var6, $$je; - a: { - if ($this.$bookIsUnsigned && $this.$bookModified && $this.$bookPages !== null) { - b: { - while (true) { - if ($this.$bookPages.$tagList.$size0 <= 1) - break b; - $var8 = $this.$bookPages; - var$3 = $this.$bookPages.$tagList.$size0 - 1 | 0; - $var8 = $var8.$tagList; - if (var$3 < 0) - break; - if (var$3 >= $var8.$size0) - break; - $var2 = $var8.$array1.data[var$3]; - if ($var2.$data4 !== null && $var2.$data4.$characters.data.length) - break b; - $var8 = $this.$bookPages; - var$3 = $this.$bookPages.$tagList.$size0 - 1 | 0; - ju_ArrayList_remove($var8.$tagList, var$3); - } - $var8 = new jl_IndexOutOfBoundsException; - $var8.$suppressionEnabled = 1; - $var8.$writableStackTrace = 1; - $rt_throw($var8); - } - if ($this.$itemstackBook.$stackTagCompound === null ? 0 : 1) { - $var7 = $this.$itemstackBook.$stackTagCompound; - $var3 = $this.$bookPages; - $var4 = $var7.$tagMap; - $var3.$name0 = $rt_s(2914); - ju_HashMap_putImpl($var4, $rt_s(2914), $var3); - } else { - $var8 = $this.$itemstackBook; - $var4 = $this.$bookPages; - if ($var8.$stackTagCompound === null) { - $var6 = new nms_NBTTagCompound; - $var6.$name0 = $rt_s(44); - $var6.$tagMap = ju_HashMap__init_1(16, 0.75); - $var8.$stackTagCompound = $var6; - } - $var8 = $var8.$stackTagCompound.$tagMap; - $var4.$name0 = $rt_s(2914); - ju_HashMap_putImpl($var8, $rt_s(2914), $var4); - } - $var8 = $rt_s(2917); - if ($par1) { - $var8 = $rt_s(2918); - $var3 = $this.$itemstackBook; - $var2 = new nms_NBTTagString; - $var7 = $this.$editingPlayer.$username0; - $var2.$name0 = $rt_s(1963); - $var2.$data4 = $var7; - if ($var7 === null) { - $var3 = new jl_IllegalArgumentException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $var3.$message = $rt_s(264); - $rt_throw($var3); - } - if ($var3.$stackTagCompound === null) { - $var7 = new nms_NBTTagCompound; - $var7.$name0 = $rt_s(44); - $var7.$tagMap = ju_HashMap__init_1(16, 0.75); - $var3.$stackTagCompound = $var7; - } - $var3 = $var3.$stackTagCompound.$tagMap; - $var2.$name0 = $rt_s(1963); - ju_HashMap_putImpl($var3, $rt_s(1963), $var2); - $var3 = $this.$itemstackBook; - $var6 = new nms_NBTTagString; - $var7 = jl_String_trim($this.$bookTitle); - $var6.$name0 = $rt_s(1962); - $var6.$data4 = $var7; - if ($var7 === null) { - $var3 = new jl_IllegalArgumentException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $var3.$message = $rt_s(264); - $rt_throw($var3); - } - if ($var3.$stackTagCompound === null) - $var3.$stackTagCompound = nms_NBTTagCompound__init_0(); - nms_NBTTagCompound_setTag($var3.$stackTagCompound, $rt_s(1962), $var6); - $var3 = $this.$itemstackBook; - nms_Item_$callClinit(); - $var3.$itemID0 = nms_Item_writtenBook.$itemID; - } - $var3 = new ji_ByteArrayOutputStream; - $var3.$buf1 = $rt_createByteArray(32); - $var4 = new ji_DataOutputStream; - $var4.$out = $var3; - $var4.$buff0 = $rt_createByteArray(8); - try { - nms_Packet_writeItemStack($this.$itemstackBook, $var4); - nms_NetClientHandler_addToSendQueue(nmc_Minecraft_getNetHandler($this.$mc4), nms_Packet250CustomPayload__init_0($var8, ji_ByteArrayOutputStream_toByteArray($var3))); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof jl_Exception) { - $var6 = $$je; - } else { - throw $$e; - } - } - jl_Throwable_printStackTrace($var6); - } - } -}; -$java.nms_GuiScreenBook_actionPerformed = function($this, $par1GuiButton) { - var var$2, $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();var$2 = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($par1GuiButton.$enabled) { - if (!$par1GuiButton.$id2) { - $par1GuiButton = $this.$mc4; - var$2 = null; - $ptr = 1; - continue main; - } - if ($par1GuiButton.$id2 == 3 && $this.$bookIsUnsigned) - $this.$editingTitle = 1; - else if ($par1GuiButton.$id2 == 1) { - if ($this.$currPage < ($this.$bookTotalPages - 1 | 0)) - $this.$currPage = $this.$currPage + 1 | 0; - else if ($this.$bookIsUnsigned) { - $java.nms_GuiScreenBook_addNewPage($this); - if ($this.$currPage < ($this.$bookTotalPages - 1 | 0)) - $this.$currPage = $this.$currPage + 1 | 0; - } - } else if ($par1GuiButton.$id2 != 2) { - if ($par1GuiButton.$id2 == 5 && $this.$editingTitle) { - $java.nms_GuiScreenBook_sendBookToServer($this, 1); - $par1GuiButton = $this.$mc4; - var$2 = null; - $ptr = 2; - continue main; - } - if ($par1GuiButton.$id2 == 4 && $this.$editingTitle) - $this.$editingTitle = 0; - } else if ($this.$currPage > 0) - $this.$currPage = $this.$currPage - 1 | 0; - $java.nms_GuiScreenBook_updateButtons($this); - } - return; - case 1: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - $java.nms_GuiScreenBook_sendBookToServer($this, 0); - $java.nms_GuiScreenBook_updateButtons($this); - return; - case 2: - nmc_Minecraft_displayGuiScreen($par1GuiButton, var$2); - if ($rt_suspending()) { - break main; - } - $java.nms_GuiScreenBook_updateButtons($this); - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1GuiButton, var$2, $ptr); -}; -$java.nms_GuiScreenBook_addNewPage = function($this) { - var var$1, var$2, var$3, var$4; - if ($this.$bookPages !== null && $this.$bookPages.$tagList.$size0 < 50) { - var$1 = $this.$bookPages; - var$2 = new nms_NBTTagString; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(44)); - var$4 = $this.$bookTotalPages + 1 | 0; - jl_AbstractStringBuilder_insert0(var$3, var$3.$length, var$4, 10); - var$2.$name0 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - var$2.$data4 = $rt_s(44); - var$1.$tagType = 8; - ju_ArrayList_add(var$1.$tagList, var$2); - $this.$bookTotalPages = $this.$bookTotalPages + 1 | 0; - $this.$bookModified = 1; - } -}; -$java.nms_GuiScreenBook_keyTyped = function($this, $par1, $par2) { - var $ptr, $tmp; - $ptr = 0; - if ($rt_resuming()) { - var $thread = $rt_nativeThread(); - $ptr = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - if ($this.$bookIsUnsigned) { - if ($this.$editingTitle) { - $ptr = 1; - continue main; - } - $java.nms_GuiScreenBook_keyTypedInBook($this, $par1, $par2); - } - return; - case 1: - $java.nms_GuiScreenBook_func_74162_c($this, $par1, $par2); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, $ptr); -}; -$java.nms_GuiScreenBook_keyTypedInBook = function($this, $par1, $par2) { - var $var3, var$4; - switch ($par1) { - case 22: - break; - default: - switch ($par2) { - case 14: - $var3 = $java.nms_GuiScreenBook_func_74158_i($this); - if ($var3.$characters.data.length > 0) { - $par2 = $var3.$characters.data.length - 1 | 0; - if (0 > $par2) { - $var3 = new jl_IndexOutOfBoundsException; - $var3.$suppressionEnabled = 1; - $var3.$writableStackTrace = 1; - $rt_throw($var3); - } - $java.nms_GuiScreenBook_func_74159_a($this, jl_String__init_0($var3.$characters, 0, $par2 - 0 | 0)); - } - return; - case 28: - break; - default: - if (nms_ChatAllowedCharacters_isAllowedCharacter($par1)) { - $var3 = new jl_String; - var$4 = $rt_createCharArray(1); - var$4.data[0] = $par1; - jl_String__init_3($var3, var$4); - $java.nms_GuiScreenBook_func_74160_b($this, $var3); - } - return; - } - $java.nms_GuiScreenBook_func_74160_b($this, $rt_s(60)); - return; - } - nms_GuiScreen_$callClinit(); - $java.nms_GuiScreenBook_func_74160_b($this, $rt_s(44)); -}; -$java.nms_GuiScreenBook_func_74162_c = function($this, $par1, $par2) { - var var$3, 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();var$3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop(); - } - main: while (true) { switch ($ptr) { - case 0: - switch ($par2) { - case 14: - break; - case 28: - if ($this.$bookTitle.$characters.data.length <= 0) - return; - $java.nms_GuiScreenBook_sendBookToServer($this, 1); - var$3 = $this.$mc4; - var$4 = null; - $ptr = 1; - continue main; - default: - if ($this.$bookTitle.$characters.data.length < 16 && nms_ChatAllowedCharacters_isAllowedCharacter($par1)) { - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - var$4 = $this.$bookTitle; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$4); - var$4 = new jl_String; - var$5 = $rt_createCharArray(1); - var$5.data[0] = $par1; - jl_String__init_3(var$4, var$5); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$4); - $this.$bookTitle = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - $java.nms_GuiScreenBook_updateButtons($this); - $this.$bookModified = 1; - } - return; - } - if ($this.$bookTitle.$characters.data.length > 0) { - var$3 = $this.$bookTitle; - $par2 = $this.$bookTitle.$characters.data.length - 1 | 0; - if (0 > $par2) { - var$3 = new jl_IndexOutOfBoundsException; - var$3.$suppressionEnabled = 1; - var$3.$writableStackTrace = 1; - $rt_throw(var$3); - } - $this.$bookTitle = jl_String__init_0(var$3.$characters, 0, $par2 - 0 | 0); - $java.nms_GuiScreenBook_updateButtons($this); - } - return; - case 1: - nmc_Minecraft_displayGuiScreen(var$3, var$4); - if ($rt_suspending()) { - break main; - } - return; - default: $rt_invalidPointer(); - }} - $rt_nativeThread().push($this, $par1, $par2, var$3, var$4, var$5, $ptr); -}; -$java.nms_GuiScreenBook_func_74158_i = function($this) { - var $var1, var$2, var$3; - if ($this.$bookPages !== null && $this.$currPage >= 0 && $this.$currPage < $this.$bookPages.$tagList.$size0) { - $var1 = $this.$bookPages; - var$2 = $this.$currPage; - $var1 = $var1.$tagList; - if (var$2 >= 0 && var$2 < $var1.$size0) { - $var1 = $var1.$array1.data[var$2]; - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(44)); - $var1 = $var1.$data4; - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $var1); - return jl_String__init_0(var$3.$buffer, 0, var$3.$length); - } - $var1 = new jl_IndexOutOfBoundsException; - $var1.$suppressionEnabled = 1; - $var1.$writableStackTrace = 1; - $rt_throw($var1); - } - return $rt_s(44); -}; -$java.nms_GuiScreenBook_func_74159_a = function($this, $par1Str) { - var $var2, var$3; - if ($this.$bookPages !== null && $this.$currPage >= 0 && $this.$currPage < $this.$bookPages.$tagList.$size0) { - $var2 = $this.$bookPages; - var$3 = $this.$currPage; - $var2 = $var2.$tagList; - if (var$3 >= 0 && var$3 < $var2.$size0) { - $var2.$array1.data[var$3].$data4 = $par1Str; - $this.$bookModified = 1; - } else { - $par1Str = new jl_IndexOutOfBoundsException; - $par1Str.$suppressionEnabled = 1; - $par1Str.$writableStackTrace = 1; - $rt_throw($par1Str); - } - } -}; -$java.nms_GuiScreenBook_func_74160_b = function($this, $par1Str) { - var $var2, var$3, var$4, $var4; - $var2 = $java.nms_GuiScreenBook_func_74158_i($this); - var$3 = new jl_StringBuilder; - var$3.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $var2); - jl_AbstractStringBuilder_insert(var$3, var$3.$length, $par1Str); - var$4 = jl_String__init_0(var$3.$buffer, 0, var$3.$length); - $par1Str = $this.$fontRenderer0; - $var2 = new jl_StringBuilder; - $var2.$buffer = $rt_createCharArray(16); - jl_AbstractStringBuilder_insert($var2, $var2.$length, var$4); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(44)); - var$3 = nms_EnumChatFormatting_BLACK; - jl_AbstractStringBuilder_insert($var2, $var2.$length, var$3 === null ? $rt_s(47) : var$3.$field_96304_B); - jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(381)); - var$3 = jl_String__init_0($var2.$buffer, 0, $var2.$length); - $var4 = $par1Str.$FONT_HEIGHT; - $par1Str = nms_FontRenderer_wrapFormattedStringToWidth($par1Str, var$3, 118); - if ($rt_imul($var4, jur_Pattern_split(jur_Pattern_compile($rt_s(60), 0), $par1Str, 0).data.length) <= 118 && var$4.$characters.data.length < 256) - $java.nms_GuiScreenBook_func_74159_a($this, var$4); -}; -$java.nms_GuiScreenBook_drawScreen = function($this, $par1, $par2, $par3) { - var $var4, $var6, $var7, $var8, $var7_0, $var5, $var9, var$11, $var10, $var11, $var13, $var12, var$16, $$je; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiScreenBook_tex); - $var4 = ($this.$width0 - $this.$bookImageWidth | 0) / 2 | 0; - nms_Gui_drawTexturedModalRect($this, $var4, 2, 0, 0, $this.$bookImageWidth, $this.$bookImageHeight); - if ($this.$editingTitle) { - $var6 = $this.$bookTitle; - if ($this.$bookIsUnsigned) - $var6 = ($this.$updateCount / 6 | 0) % 2 | 0 ? jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var6), $rt_s(44)), nms_EnumChatFormatting_GRAY), $rt_s(381))) : jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var6), $rt_s(44)), nms_EnumChatFormatting_BLACK), $rt_s(381))); - $var7 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2919)); - $var8 = nms_FontRenderer_getStringWidth($this.$fontRenderer0, $var7); - $var7_0 = $this.$fontRenderer0; - $var5 = $var4 + 36 | 0; - nms_FontRenderer_drawString($var7_0, $var7, $var5 + ((116 - $var8 | 0) / 2 | 0) | 0, 34, 0, 0); - $var9 = nms_FontRenderer_getStringWidth($this.$fontRenderer0, $var6); - nms_FontRenderer_drawString($this.$fontRenderer0, $var6, $var5 + ((116 - $var9 | 0) / 2 | 0) | 0, 50, 0, 0); - $var7_0 = nms_StatCollector_translateToLocal($rt_s(1964)); - var$11 = $rt_createArray(jl_Object, 1); - var$11.data[0] = $this.$editingPlayer.$username0; - $var10 = jl_String_format($var7_0, var$11); - $var11 = nms_FontRenderer_getStringWidth($this.$fontRenderer0, $var10); - $var7_0 = $this.$fontRenderer0; - $var13 = new jl_StringBuilder; - jl_AbstractStringBuilder__init_($var13); - nms_FontRenderer_drawString0($var7_0, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9($var13, nms_EnumChatFormatting_DARK_GRAY), $var10)), $var5 + ((116 - $var11 | 0) / 2 | 0) | 0, 60, 0); - $var12 = nms_StatCollector_translateToLocal($rt_s(2920)); - nms_FontRenderer_drawSplitString($this.$fontRenderer0, $var12, $var5, 82, 116, 0); - } else { - $var10 = nms_StringTranslate_translateKey(nms_StatCollector_localizedName, $rt_s(2921)); - var$11 = $rt_createArray(jl_Object, 2); - var$16 = var$11.data; - var$16[0] = jl_Integer_valueOf($this.$currPage + 1 | 0); - var$16[1] = jl_Integer_valueOf($this.$bookTotalPages); - $var7_0 = new ju_Formatter; - $var6 = ju_Locale_defaultLocale; - $var13 = new jl_StringBuilder; - $var13.$buffer = $rt_createCharArray(16); - $var7_0.$out0 = $var13; - $var7_0.$locale = $var6; - $var13 = $var7_0.$locale; - if ($var7_0.$out0 === null) { - $var7_0 = new ju_FormatterClosedException; - $var7_0.$suppressionEnabled = 1; - $var7_0.$writableStackTrace = 1; - jl_Throwable_fillInStackTrace($var7_0); - $rt_throw($var7_0); - } - a: { - try { - $java.ju_Formatter$FormatWriter_write($java.ju_Formatter$FormatWriter__init_($var7_0, $var7_0.$out0, $var13, $var10, var$11)); - break a; - } catch ($$e) { - $$je = $rt_wrapException($$e); - if ($$je instanceof ji_IOException) { - $var13 = $$je; - } else { - throw $$e; - } - } - $var7_0.$ioException = $var13; - } - if ($var7_0.$out0 === null) { - $var7_0 = new ju_FormatterClosedException; - $var7_0.$suppressionEnabled = 1; - $var7_0.$writableStackTrace = 1; - $rt_throw($var7_0); - } - $var7_0 = $var7_0.$out0; - $var6 = jl_String__init_0($var7_0.$buffer, 0, $var7_0.$length); - $var7_0 = $rt_s(44); - if ($this.$bookPages !== null && $this.$currPage >= 0 && $this.$currPage < nms_NBTTagList_tagCount($this.$bookPages)) - $var7_0 = nms_NBTTagString_toString(nms_NBTTagList_tagAt($this.$bookPages, $this.$currPage)); - if ($this.$bookIsUnsigned) - $var7_0 = nms_FontRenderer_getBidiFlag($this.$fontRenderer0) ? jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var7_0), $rt_s(381))) : ($this.$updateCount / 6 | 0) % 2 | 0 ? jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var7_0), $rt_s(44)), nms_EnumChatFormatting_GRAY), $rt_s(381))) : jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append9(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), - $var7_0), $rt_s(44)), nms_EnumChatFormatting_BLACK), $rt_s(381))); - $var8 = nms_FontRenderer_getStringWidth($this.$fontRenderer0, $var6); - nms_FontRenderer_drawString0($this.$fontRenderer0, $var6, (($var4 - $var8 | 0) + $this.$bookImageWidth | 0) - 44 | 0, 18, 0); - nms_FontRenderer_drawSplitString($this.$fontRenderer0, $var7_0, $var4 + 36 | 0, 34, 116, 0); - } - nms_GuiScreen_drawScreen($this, $par1, $par2, $par3); -}; -function nms_GuiScreenBook__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2922); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiScreenBook_tex = var$1; -} -$java.nms_EntityFireworkOverlayFX = function() { - nms_EntityFX.call(this); -}; -$java.nms_EntityFireworkOverlayFX__init_ = function(var_0, var_1, var_2, var_3) { - var var_4 = new $java.nms_EntityFireworkOverlayFX(); - $java.nms_EntityFireworkOverlayFX__init_0(var_4, var_0, var_1, var_2, var_3); - return var_4; -}; -$java.nms_EntityFireworkOverlayFX__init_0 = function($this, $par1World, $par2, $par4, $par6) { - $java.nms_EntityFX__init_0($this, $par1World, $par2, $par4, $par6); - $this.$particleMaxAge = 4; -}; -$java.nms_EntityFireworkOverlayFX_renderParticle = function($this, $par1Tessellator, $par2, $par3, $par4, $par5, $par6, $par7) { - var $var12, var$9, var$10, var$11, $var13, $var14, $var15, var$15, var$16, var$17, var$18; - $var12 = ($this.$particleAge + $par2 - 1.0) * 0.25 * 3.1415927410125732; - $var12 = 7.099999904632568 * nms_MathHelper_SIN_TABLE.data[($var12 * 10430.3779296875 | 0) & 65535]; - $this.$particleAlpha = 0.6000000238418579 - ($this.$particleAge + $par2 - 1.0) * 0.25 * 0.5; - var$9 = $this.$prevPosX; - var$10 = $this.$posX - $this.$prevPosX; - var$11 = $par2; - $var13 = var$9 + var$10 * var$11 - nms_EntityFX_interpPosX; - $var14 = $this.$prevPosY + ($this.$posY - $this.$prevPosY) * var$11 - nms_EntityFX_interpPosY; - $var15 = $this.$prevPosZ + ($this.$posZ - $this.$prevPosZ) * var$11 - nms_EntityFX_interpPosZ; - $par2 = $this.$particleRed; - var$15 = $this.$particleGreen; - var$16 = $this.$particleBlue; - var$17 = $this.$particleAlpha; - nlea_Tessellator_setColorRGBA($par1Tessellator, $par2 * 255.0 | 0, var$15 * 255.0 | 0, var$16 * 255.0 | 0, var$17 * 255.0 | 0); - $par2 = $par3 * $var12; - $par3 = $var13 - $par2; - $par6 = $par6 * $var12; - var$9 = $par3 - $par6; - $par4 = $par4 * $var12; - var$10 = $var14 - $par4; - var$15 = $par5 * $var12; - var$16 = $var15 - var$15; - $var12 = $par7 * $var12; - var$11 = var$16 - $var12; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = 0.5; - $par1Tessellator.$textureV = 0.375; - nlea_Tessellator_addVertex($par1Tessellator, var$9, var$10, var$11); - var$9 = $par3 + $par6; - var$18 = $var14 + $par4; - var$11 = var$16 + $var12; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = 0.5; - $par1Tessellator.$textureV = 0.125; - nlea_Tessellator_addVertex($par1Tessellator, var$9, var$18, var$11); - $var13 = $var13 + $par2; - var$9 = $var13 + $par6; - $par2 = $var15 + var$15; - var$11 = $par2 + $var12; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = 0.25; - $par1Tessellator.$textureV = 0.125; - nlea_Tessellator_addVertex($par1Tessellator, var$9, var$18, var$11); - var$9 = $var13 - $par6; - var$11 = $par2 - $var12; - $par1Tessellator.$hasTexture = 1; - $par1Tessellator.$textureU = 0.25; - $par1Tessellator.$textureV = 0.375; - nlea_Tessellator_addVertex($par1Tessellator, var$9, var$10, var$11); -}; -function nms_PathEntity() { - var a = this; jl_Object.call(a); - a.$points = null; - a.$currentPathIndex = 0; - a.$pathLength = 0; -} -function nms_PathEntity_incrementPathIndex($this) { - $this.$currentPathIndex = $this.$currentPathIndex + 1 | 0; -} -function nms_PathEntity_isFinished($this) { - return $this.$currentPathIndex < $this.$pathLength ? 0 : 1; -} -function nms_PathEntity_getVectorFromIndex($this, $par1Entity, $par2) { - var $var3, $var5, $var7; - $var3 = $this.$points.data[$par2].$xCoord2 + ($par1Entity.$width1 + 1.0 | 0) * 0.5; - $var5 = $this.$points.data[$par2].$yCoord2; - $var7 = $this.$points.data[$par2].$zCoord2 + ($par1Entity.$width1 + 1.0 | 0) * 0.5; - return nms_Vec3Pool_getVecFromPool($par1Entity.$worldObj.$vecPool, $var3, $var5, $var7); -} -function nms_PathEntity_getPosition($this, $par1Entity) { - return nms_PathEntity_getVectorFromIndex($this, $par1Entity, $this.$currentPathIndex); -} -$java.nms_CombatEntry = function() { - var a = this; jl_Object.call(a); - a.$field_94569_a = null; - a.$field_94567_b = 0; - a.$field_94568_c = 0; - a.$field_94565_d = 0; - a.$field_94566_e = null; - a.$field_94564_f = 0.0; -}; -$java.nms_CombatEntry_func_94560_a = function($this) { - return $this.$field_94569_a; -}; -$java.nms_CombatEntry_func_94563_c = function($this) { - return $this.$field_94568_c; -}; -$java.nms_CombatEntry_func_94559_f = function($this) { - return $this.$field_94569_a.$getEntity() instanceof nms_EntityLiving; -}; -function nms_PathFinder() { - var a = this; jl_Object.call(a); - a.$worldMap = null; - a.$path1 = null; - a.$pointMap = null; - a.$pathOptions = null; - a.$isWoddenDoorAllowed = 0; - a.$isMovementBlockAllowed = 0; - a.$isPathingInWater = 0; - a.$canEntityDrown = 0; -} -function nms_PathFinder__init_(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new nms_PathFinder(); - $java.nms_PathFinder__init_(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -} -$java.nms_PathFinder__init_ = function($this, $par1IBlockAccess, $par2, $par3, $par4, $par5) { - var var$6, var$7; - var$6 = new nms_Path; - var$6.$pathPoints = $rt_createArray($java.nms_PathPoint, 1024); - var$6.$count5 = 0; - $this.$path1 = var$6; - var$7 = new nms_IntHashMap; - var$7.$slots = $rt_createArray(nms_IntHashMapEntry, 16); - var$7.$threshold0 = 12; - var$7.$growFactor = 0.75; - var$6 = new ju_HashSet; - var$6.$backingMap = ju_HashMap__init_1(16, 0.75); - var$7.$keySet0 = var$6; - $this.$pointMap = var$7; - $this.$pathOptions = $rt_createArray($java.nms_PathPoint, 32); - $this.$worldMap = $par1IBlockAccess; - $this.$isWoddenDoorAllowed = $par2; - $this.$isMovementBlockAllowed = $par3; - $this.$isPathingInWater = $par4; - $this.$canEntityDrown = $par5; -}; -$java.nms_PathFinder_createEntityPathTo = function($this, $par1Entity, $par2Entity, $par3) { - return nms_PathFinder_createEntityPathTo($this, $par1Entity, $par2Entity.$posX, $par2Entity.$boundingBox.$minY, $par2Entity.$posZ, $par3); -}; -$java.nms_PathFinder_createEntityPathTo0 = function($this, $par1Entity, $par2, $par3, $par4, $par5) { - return nms_PathFinder_createEntityPathTo($this, $par1Entity, $par2 + 0.5, $par3 + 0.5, $par4 + 0.5, $par5); -}; -function nms_PathFinder_createEntityPathTo($this, $par1Entity, $par2, $par4, $par6, $par8) { - var $var9, var$7, var$8, $var15, $var11, var$11, var$12, var$13, var$14, $var12, $var13, var$17, $var14; - $this.$path1.$count5 = 0; - nms_IntHashMap_clearMap($this.$pointMap); - $var9 = $this.$isPathingInWater; - var$7 = $par1Entity.$boundingBox.$minY + 0.5; - if ($this.$canEntityDrown && $par1Entity.$isInWater()) { - var$8 = $par1Entity.$boundingBox.$minY | 0; - $var15 = $this.$worldMap; - var$7 = $par1Entity.$posX; - $var11 = var$7 | 0; - if (var$7 < $var11) - $var11 = $var11 - 1 | 0; - var$7 = $par1Entity.$posZ; - $var9 = var$7 | 0; - if (var$7 < $var9) - $var9 = $var9 - 1 | 0; - $var11 = $java.nms_ChunkCache_getBlockId($var15, $var11, var$8, $var9); - while (true) { - nms_Block_$callClinit(); - if ($var11 != nms_Block_waterMoving.$blockID && $var11 != nms_Block_waterStill.$blockID) - break; - var$8 = var$8 + 1 | 0; - $var15 = $this.$worldMap; - var$11 = $par1Entity.$posX; - $var11 = var$11 | 0; - if (var$11 < $var11) - $var11 = $var11 - 1 | 0; - var$7 = $par1Entity.$posZ; - var$12 = var$7 | 0; - if (var$7 < var$12) - var$12 = var$12 - 1 | 0; - $var11 = $java.nms_ChunkCache_getBlockId($var15, $var11, var$8, var$12); - } - $var9 = $this.$isPathingInWater; - $this.$isPathingInWater = 0; - } else { - var$7 = $par1Entity.$boundingBox.$minY + 0.5; - var$8 = var$7 | 0; - if (var$7 < var$8) - var$8 = var$8 - 1 | 0; - } - var$7 = $par1Entity.$boundingBox.$minX; - $var11 = var$7 | 0; - if (var$7 < $var11) - $var11 = $var11 - 1 | 0; - var$7 = $par1Entity.$boundingBox.$minZ; - var$13 = var$7 | 0; - if (var$7 < var$13) - var$13 = var$13 - 1 | 0; - var$12 = $java.nms_PathPoint_makeHash($var11, var$8, var$13); - $var15 = nms_IntHashMap_lookup($this.$pointMap, var$12); - if ($var15 === null) { - $var15 = new $java.nms_PathPoint; - $var15.$index9 = (-1); - $var15.$isFirst = 0; - $var15.$xCoord2 = $var11; - $var15.$yCoord2 = var$8; - $var15.$zCoord2 = var$13; - $var15.$hash0 = $java.nms_PathPoint_makeHash($var11, var$8, var$13); - nms_IntHashMap_addKey($this.$pointMap, var$12, $var15); - } - $par2 = $par2 - $par1Entity.$width1 / 2.0; - var$13 = $par2 | 0; - if ($par2 < var$13) - var$13 = var$13 - 1 | 0; - var$14 = $par4 | 0; - if ($par4 < var$14) - var$14 = var$14 - 1 | 0; - $par2 = $par6 - $par1Entity.$width1 / 2.0; - var$12 = $par2 | 0; - if ($par2 < var$12) - var$12 = var$12 - 1 | 0; - var$8 = $java.nms_PathPoint_makeHash(var$13, var$14, var$12); - $var12 = nms_IntHashMap_lookup($this.$pointMap, var$8); - if ($var12 === null) { - $var12 = new $java.nms_PathPoint; - $var12.$index9 = (-1); - $var12.$isFirst = 0; - $var12.$xCoord2 = var$13; - $var12.$yCoord2 = var$14; - $var12.$zCoord2 = var$12; - $var12.$hash0 = $java.nms_PathPoint_makeHash(var$13, var$14, var$12); - nms_IntHashMap_addKey($this.$pointMap, var$8, $var12); - } - $var13 = new $java.nms_PathPoint; - var$17 = $par1Entity.$width1 + 1.0; - var$14 = var$17 | 0; - if (var$17 < var$14) - var$14 = var$14 - 1 | 0; - var$17 = $par1Entity.$height1 + 1.0; - var$12 = var$17 | 0; - if (var$17 < var$12) - var$12 = var$12 - 1 | 0; - var$17 = $par1Entity.$width1 + 1.0; - $var11 = var$17 | 0; - if (var$17 < $var11) - $var11 = $var11 - 1 | 0; - $var13.$index9 = (-1); - $var13.$isFirst = 0; - $var13.$xCoord2 = var$14; - $var13.$yCoord2 = var$12; - $var13.$zCoord2 = $var11; - $var13.$hash0 = $java.nms_PathPoint_makeHash(var$14, var$12, $var11); - $var14 = $java.nms_PathFinder_addToPath($this, $par1Entity, $var15, $var12, $var13, $par8); - $this.$isPathingInWater = $var9; - return $var14; -} -$java.nms_PathFinder_addToPath = function($this, $par1Entity, $par2PathPoint, $par3PathPoint, $par4PathPoint, $par5) { - var $var6, $var7, $var8, $var9, $var10, $var11, var$12, var$13, var$14; - $par2PathPoint.$totalPathDistance = 0.0; - $par2PathPoint.$distanceToNext = $java.nms_PathPoint_func_75832_b($par2PathPoint, $par3PathPoint); - $par2PathPoint.$distanceToTarget = $par2PathPoint.$distanceToNext; - $this.$path1.$count5 = 0; - $java.nms_Path_addPoint($this.$path1, $par2PathPoint); - $var6 = $par2PathPoint; - while (true) { - if ($this.$path1.$count5 ? 0 : 1) { - if ($var6 !== $par2PathPoint) - return $java.nms_PathFinder_createEntityPath($this, $par2PathPoint, $var6); - return null; - } - $var7 = $java.nms_Path_dequeue($this.$path1); - if ($java.nms_PathPoint_equals($var7, $par3PathPoint)) - break; - if ($java.nms_PathPoint_func_75832_b($var7, $par3PathPoint) < $java.nms_PathPoint_func_75832_b($var6, $par3PathPoint)) - $var6 = $var7; - $var7.$isFirst = 1; - $var8 = $java.nms_PathFinder_findPathOptions($this, $par1Entity, $var7, $par4PathPoint, $par3PathPoint, $par5); - $var9 = 0; - while ($var9 < $var8) { - $var10 = $this.$pathOptions.data[$var9]; - $var11 = $var7.$totalPathDistance + $java.nms_PathPoint_func_75832_b($var7, $var10); - var$12 = $var10.$index9 < 0 ? 0 : 1; - if (!(var$12 && $var11 >= $var10.$totalPathDistance)) { - $var10.$previous1 = $var7; - $var10.$totalPathDistance = $var11; - $var10.$distanceToNext = $java.nms_PathPoint_func_75832_b($var10, $par3PathPoint); - if (!($var10.$index9 < 0 ? 0 : 1)) { - $var10.$distanceToTarget = $var10.$totalPathDistance + $var10.$distanceToNext; - $java.nms_Path_addPoint($this.$path1, $var10); - } else { - var$13 = $this.$path1; - var$14 = $var10.$totalPathDistance + $var10.$distanceToNext; - $var11 = $var10.$distanceToTarget; - $var10.$distanceToTarget = var$14; - if (var$14 >= $var11) - $java.nms_Path_sortForward(var$13, $var10.$index9); - else - $java.nms_Path_sortBack(var$13, $var10.$index9); - } - } - $var9 = $var9 + 1 | 0; - } - } - return $java.nms_PathFinder_createEntityPath($this, $par2PathPoint, $par3PathPoint); -}; -$java.nms_PathFinder_findPathOptions = function($this, $par1Entity, $par2PathPoint, $par3PathPoint, $par4PathPoint, $par5) { - var $var7, $var8, $var9, $var10, $var11, var$11, var$12, $var6; - $var7 = 0; - if ($java.nms_PathFinder_func_82565_a($par1Entity, $par2PathPoint.$xCoord2, $par2PathPoint.$yCoord2 + 1 | 0, $par2PathPoint.$zCoord2, $par3PathPoint, $this.$isPathingInWater, $this.$isMovementBlockAllowed, $this.$isWoddenDoorAllowed) == 1) - $var7 = 1; - $var8 = $java.nms_PathFinder_getSafePoint($this, $par1Entity, $par2PathPoint.$xCoord2, $par2PathPoint.$yCoord2, $par2PathPoint.$zCoord2 + 1 | 0, $par3PathPoint, $var7); - $var9 = $java.nms_PathFinder_getSafePoint($this, $par1Entity, $par2PathPoint.$xCoord2 - 1 | 0, $par2PathPoint.$yCoord2, $par2PathPoint.$zCoord2, $par3PathPoint, $var7); - $var10 = $java.nms_PathFinder_getSafePoint($this, $par1Entity, $par2PathPoint.$xCoord2 + 1 | 0, $par2PathPoint.$yCoord2, $par2PathPoint.$zCoord2, $par3PathPoint, $var7); - $var11 = $java.nms_PathFinder_getSafePoint($this, $par1Entity, $par2PathPoint.$xCoord2, $par2PathPoint.$yCoord2, $par2PathPoint.$zCoord2 - 1 | 0, $par3PathPoint, $var7); - if ($var8 === null) - var$11 = 0; - else if ($var8.$isFirst) - var$11 = 0; - else if ($java.nms_PathPoint_distanceTo($var8, $par4PathPoint) >= $par5) - var$11 = 0; - else { - var$12 = $this.$pathOptions.data; - var$11 = 1; - var$12[0] = $var8; - } - if ($var9 === null) - $var6 = var$11; - else if ($var9.$isFirst) - $var6 = var$11; - else if ($java.nms_PathPoint_distanceTo($var9, $par4PathPoint) >= $par5) - $var6 = var$11; - else { - var$12 = $this.$pathOptions.data; - $var6 = var$11 + 1 | 0; - var$12[var$11] = $var9; - } - if ($var10 === null) - var$11 = $var6; - else if ($var10.$isFirst) - var$11 = $var6; - else if ($java.nms_PathPoint_distanceTo($var10, $par4PathPoint) >= $par5) - var$11 = $var6; - else { - var$12 = $this.$pathOptions.data; - var$11 = $var6 + 1 | 0; - var$12[$var6] = $var10; - } - if ($var11 === null) - $var6 = var$11; - else if ($var11.$isFirst) - $var6 = var$11; - else if ($java.nms_PathPoint_distanceTo($var11, $par4PathPoint) >= $par5) - $var6 = var$11; - else { - var$12 = $this.$pathOptions.data; - $var6 = var$11 + 1 | 0; - var$12[var$11] = $var11; - } - return $var6; -}; -$java.nms_PathFinder_getSafePoint = function($this, $par1Entity, $par2, $par3, $par4, $par5PathPoint, $par6) { - var $var7, $var8, $var10, var$10, $var9; - $var7 = null; - $var8 = $java.nms_PathFinder_func_82565_a($par1Entity, $par2, $par3, $par4, $par5PathPoint, $this.$isPathingInWater, $this.$isMovementBlockAllowed, $this.$isWoddenDoorAllowed); - if ($var8 == 2) { - $par6 = $java.nms_PathPoint_makeHash($par2, $par3, $par4); - $par1Entity = nms_IntHashMap_lookup($this.$pointMap, $par6); - if ($par1Entity === null) { - $par1Entity = new $java.nms_PathPoint; - $par1Entity.$index9 = (-1); - $par1Entity.$isFirst = 0; - $par1Entity.$xCoord2 = $par2; - $par1Entity.$yCoord2 = $par3; - $par1Entity.$zCoord2 = $par4; - $par1Entity.$hash0 = $java.nms_PathPoint_makeHash($par2, $par3, $par4); - nms_IntHashMap_addKey($this.$pointMap, $par6, $par1Entity); - } - return $par1Entity; - } - if ($var8 == 1) { - $var10 = $java.nms_PathPoint_makeHash($par2, $par3, $par4); - $var7 = nms_IntHashMap_lookup($this.$pointMap, $var10); - if ($var7 === null) { - $var7 = new $java.nms_PathPoint; - $var7.$index9 = (-1); - $var7.$isFirst = 0; - $var7.$xCoord2 = $par2; - $var7.$yCoord2 = $par3; - $var7.$zCoord2 = $par4; - $var7.$hash0 = $java.nms_PathPoint_makeHash($par2, $par3, $par4); - nms_IntHashMap_addKey($this.$pointMap, $var10, $var7); - } - } - if ($var7 !== null) - var$10 = $par3; - else if ($par6 <= 0) - var$10 = $par3; - else if ($var8 == (-3)) - var$10 = $par3; - else if ($var8 == (-4)) - var$10 = $par3; - else { - var$10 = $par3 + $par6 | 0; - if ($java.nms_PathFinder_func_82565_a($par1Entity, $par2, var$10, $par4, $par5PathPoint, $this.$isPathingInWater, $this.$isMovementBlockAllowed, $this.$isWoddenDoorAllowed) != 1) - var$10 = $par3; - else { - $par3 = $java.nms_PathPoint_makeHash($par2, var$10, $par4); - $var7 = nms_IntHashMap_lookup($this.$pointMap, $par3); - if ($var7 === null) { - $var7 = new $java.nms_PathPoint; - $var7.$index9 = (-1); - $var7.$isFirst = 0; - $var7.$xCoord2 = $par2; - $var7.$yCoord2 = var$10; - $var7.$zCoord2 = $par4; - $var7.$hash0 = $java.nms_PathPoint_makeHash($par2, var$10, $par4); - nms_IntHashMap_addKey($this.$pointMap, $par3, $var7); - } - } - } - if ($var7 !== null) { - $var9 = 0; - $var10 = 0; - a: { - while (true) { - if (var$10 <= 0) - break a; - $var10 = $java.nms_PathFinder_func_82565_a($par1Entity, $par2, var$10 - 1 | 0, $par4, $par5PathPoint, $this.$isPathingInWater, $this.$isMovementBlockAllowed, $this.$isWoddenDoorAllowed); - if ($this.$isPathingInWater && $var10 == (-1)) - return null; - if ($var10 != 1) - break a; - $var8 = $var9 + 1 | 0; - if ($var9 >= $par1Entity.$func_82143_as()) - break; - var$10 = var$10 + (-1) | 0; - if (var$10 <= 0) { - $var9 = $var8; - continue; - } - $par3 = $java.nms_PathPoint_makeHash($par2, var$10, $par4); - $var7 = nms_IntHashMap_lookup($this.$pointMap, $par3); - if ($var7 === null) { - $var7 = new $java.nms_PathPoint; - $var7.$index9 = (-1); - $var7.$isFirst = 0; - $var7.$xCoord2 = $par2; - $var7.$yCoord2 = var$10; - $var7.$zCoord2 = $par4; - $var7.$hash0 = $java.nms_PathPoint_makeHash($par2, var$10, $par4); - nms_IntHashMap_addKey($this.$pointMap, $par3, $var7); - } - $var9 = $var8; - } - return null; - } - if ($var10 == (-2)) - return null; - } - return $var7; -}; -$java.nms_PathFinder_getVerticalOffset = function($this, $par1Entity, $par2, $par3, $par4, $par5PathPoint) { - return $java.nms_PathFinder_func_82565_a($par1Entity, $par2, $par3, $par4, $par5PathPoint, $this.$isPathingInWater, $this.$isMovementBlockAllowed, $this.$isWoddenDoorAllowed); -}; -$java.nms_PathFinder_func_82565_a = function($par0Entity, $par1, $par2, $par3, $par4PathPoint, $par5, $par6, $par7) { - var $var8, $var9, $var10, $var11, $var12, $var13, $var14, $var17, var$17, $var18, $var16, $var15, var$21, var$22, var$23, var$24, var$25, var$26; - $var8 = 0; - $var9 = $par1; - a: { - b: while (true) { - if ($var9 >= ($par1 + $par4PathPoint.$xCoord2 | 0)) - return !$var8 ? 1 : 2; - $var10 = $par2; - while ($var10 < ($par2 + $par4PathPoint.$yCoord2 | 0)) { - $var11 = $par3; - while ($var11 < ($par3 + $par4PathPoint.$zCoord2 | 0)) { - $var12 = nms_World_getBlockId($par0Entity.$worldObj, $var9, $var10, $var11); - if ($var12 > 0) { - nms_Block_$callClinit(); - if ($var12 == nms_Block_trapdoor.$blockID) - $var8 = 1; - else if (!($var12 != nms_Block_waterMoving.$blockID && $var12 != nms_Block_waterStill.$blockID)) { - if ($par5) - return (-1); - $var8 = 1; - } else if (!$par7 && $var12 == nms_Block_doorWood.$blockID) - break b; - $var13 = nms_Block_blocksList.data[$var12]; - $var14 = $var13.$getRenderType(); - $var17 = nms_World_getBlockId($par0Entity.$worldObj, $var9, $var10, $var11); - if ((nms_Block_blocksList.data[$var17] === null ? (-1) : nms_Block_blocksList.data[$var17].$getRenderType()) == 9) { - var$17 = $par0Entity.$posX; - $var18 = var$17 | 0; - if (var$17 < $var18) - $var18 = $var18 - 1 | 0; - var$17 = $par0Entity.$posY; - $var16 = var$17 | 0; - if (var$17 < $var16) - $var16 = $var16 - 1 | 0; - var$17 = $par0Entity.$posZ; - $var17 = var$17 | 0; - if (var$17 < $var17) - $var17 = $var17 - 1 | 0; - $var12 = nms_World_getBlockId($par0Entity.$worldObj, $var18, $var16, $var17); - if ((nms_Block_blocksList.data[$var12] === null ? (-1) : nms_Block_blocksList.data[$var12].$getRenderType()) != 9) { - $var12 = nms_World_getBlockId($par0Entity.$worldObj, $var18, $var16 - 1 | 0, $var17); - if ((nms_Block_blocksList.data[$var12] === null ? (-1) : nms_Block_blocksList.data[$var12].$getRenderType()) != 9) - return (-3); - } - } else if (!$var13.$getBlocksMovement($par0Entity.$worldObj, $var9, $var10, $var11) && !($par6 && $var12 == nms_Block_doorWood.$blockID)) { - if ($var14 == 11) - break a; - if ($var12 == nms_Block_fenceGate.$blockID) - break a; - if ($var14 == 32) - break a; - if ($var12 == nms_Block_trapdoor.$blockID) - return (-4); - $var15 = $var13.$blockMaterial; - nms_Material_$callClinit(); - if ($var15 !== nms_Material_lava) - return 0; - var$21 = $par0Entity.$worldObj; - $var13 = $par0Entity.$boundingBox; - var$22 = $var13.$minX + 0.10000000149011612; - var$23 = $var13.$minY + 0.4000000059604645; - var$17 = $var13.$minZ + 0.10000000149011612; - var$24 = $var13.$maxX + (-0.10000000149011612); - var$25 = $var13.$maxY + (-0.4000000059604645); - var$26 = $var13.$maxZ + (-0.10000000149011612); - $var13 = nms_AxisAlignedBB_theAABBLocalPool; - if (!$var13.$initialized) { - $var15 = new nms_AABBPool; - $var15.$listAABB = ju_ArrayList__init_1(10); - $var15.$nextPoolIndex = 0; - $var15.$maxPoolIndex = 0; - $var15.$numCleans = 0; - $var15.$maxNumCleans = 300; - $var15.$numEntriesToRemove = 2000; - $var13.$value7 = $var15; - $var13.$initialized = 1; - } - if (!nms_World_isMaterialInBB(var$21, nms_AABBPool_getAABB($var13.$value7, var$22, var$23, var$17, var$24, var$25, var$26), nms_Material_lava)) - return (-2); - } - } - $var11 = $var11 + 1 | 0; - } - $var10 = $var10 + 1 | 0; - } - $var9 = $var9 + 1 | 0; - } - return 0; - } - return (-3); -}; -$java.nms_PathFinder_createEntityPath = function($this, $par1PathPoint, $par2PathPoint) { - var $var3, $var4, $var5, var$6; - $var3 = 1; - $var4 = $par2PathPoint; - while ($var4.$previous1 !== null) { - $var3 = $var3 + 1 | 0; - $var4 = $var4.$previous1; - } - $var5 = $rt_createArray($java.nms_PathPoint, $var3); - var$6 = $var5.data; - $var3 = $var3 + (-1) | 0; - var$6[$var3] = $par2PathPoint; - while ($par2PathPoint.$previous1 !== null) { - $par2PathPoint = $par2PathPoint.$previous1; - $var3 = $var3 + (-1) | 0; - var$6[$var3] = $par2PathPoint; - } - $par1PathPoint = new nms_PathEntity; - $par1PathPoint.$points = $var5; - $par1PathPoint.$pathLength = var$6.length; - return $par1PathPoint; -}; -function nms_GuiButtonNextPage() { - nms_GuiButton.call(this); - this.$nextPage = 0; -} -$java.nms_GuiButtonNextPage_tex = null; -$java.nms_GuiButtonNextPage_drawButton = function($this, $par1Minecraft, $par2, $par3) { - var $var4, $var5, $var6; - if ($this.$drawButton0) { - $var4 = $par2 >= $this.$xPosition3 && $par3 >= $this.$yPosition && $par2 < ($this.$xPosition3 + $this.$width3 | 0) && $par3 < ($this.$yPosition + $this.$height4 | 0) ? 1 : 0; - nleg_EaglerAdapterGL30_$callClinit(); - nleg_EaglerAdapterGL30_colorR = 1.0; - nleg_EaglerAdapterGL30_colorG = 1.0; - nleg_EaglerAdapterGL30_colorB = 1.0; - nleg_EaglerAdapterGL30_colorA = 1.0; - nle_TextureLocation_bindTexture($java.nms_GuiButtonNextPage_tex); - $var5 = 0; - $var6 = 192; - if ($var4) - $var5 = 23; - if (!$this.$nextPage) - $var6 = 205; - nms_Gui_drawTexturedModalRect($this, $this.$xPosition3, $this.$yPosition, $var5, $var6, 23, 13); - } -}; -function nms_GuiButtonNextPage__clinit_() { - var var$1; - var$1 = new nle_TextureLocation; - var$1.$path = $rt_s(2922); - var$1.$glObject = (-1); - ju_ArrayList_add(nle_TextureLocation_locations, var$1); - $java.nms_GuiButtonNextPage_tex = var$1; -} -function nms_Path() { - var a = this; jl_Object.call(a); - a.$pathPoints = null; - a.$count5 = 0; -} -$java.nms_Path__init_ = function() { - var var_0 = new nms_Path(); - nms_Path__init_(var_0); - return var_0; -}; -function nms_Path__init_($this) { - $this.$pathPoints = $rt_createArray($java.nms_PathPoint, 1024); - $this.$count5 = 0; -} -$java.nms_Path_addPoint = function($this, $par1PathPoint) { - var $var2, var$3; - if ($par1PathPoint.$index9 >= 0) { - $par1PathPoint = new jl_IllegalStateException; - $par1PathPoint.$suppressionEnabled = 1; - $par1PathPoint.$writableStackTrace = 1; - $par1PathPoint.$message = $rt_s(2923); - $rt_throw($par1PathPoint); - } - if ($this.$count5 == $this.$pathPoints.data.length) { - $var2 = $rt_createArray($java.nms_PathPoint, $this.$count5 << 1); - jl_System_arraycopy($this.$pathPoints, 0, $var2, 0, $this.$count5); - $this.$pathPoints = $var2; - } - $this.$pathPoints.data[$this.$count5] = $par1PathPoint; - $par1PathPoint.$index9 = $this.$count5; - var$3 = $this.$count5; - $this.$count5 = var$3 + 1 | 0; - $java.nms_Path_sortBack($this, var$3); - return $par1PathPoint; -}; -$java.nms_Path_clearPath = function($this) { - $this.$count5 = 0; -}; -$java.nms_Path_dequeue = function($this) { - var $var1, var$2, var$3, var$4; - $var1 = $this.$pathPoints.data[0]; - var$2 = $this.$pathPoints.data; - var$3 = $this.$pathPoints.data; - var$4 = $this.$count5 - 1 | 0; - $this.$count5 = var$4; - var$2[0] = var$3[var$4]; - $this.$pathPoints.data[$this.$count5] = null; - if ($this.$count5 > 0) - $java.nms_Path_sortForward($this, 0); - $var1.$index9 = (-1); - return $var1; -}; -$java.nms_Path_changeDistance = function($this, $par1PathPoint, $par2) { - var $var3; - $var3 = $par1PathPoint.$distanceToTarget; - $par1PathPoint.$distanceToTarget = $par2; - if ($par2 >= $var3) - $java.nms_Path_sortForward($this, $par1PathPoint.$index9); - else - $java.nms_Path_sortBack($this, $par1PathPoint.$index9); -}; -$java.nms_Path_sortBack = function($this, $par1) { - var $var2, $var3, $var4, $var5; - $var2 = $this.$pathPoints.data[$par1]; - $var3 = $var2.$distanceToTarget; - a: { - while (true) { - if ($par1 <= 0) - break a; - $var4 = ($par1 - 1 | 0) >> 1; - $var5 = $this.$pathPoints.data[$var4]; - if ($var3 >= $var5.$distanceToTarget) - break; - $this.$pathPoints.data[$par1] = $var5; - $var5.$index9 = $par1; - $par1 = $var4; - } - } - $this.$pathPoints.data[$par1] = $var2; - $var2.$index9 = $par1; -}; -$java.nms_Path_sortForward = function($this, $par1) { - var $var2, $var3, $var4, $var5, $var6, $var7, $var8, $var9; - $var2 = $this.$pathPoints.data[$par1]; - $var3 = $var2.$distanceToTarget; - a: { - while (true) { - $var4 = 1 + ($par1 << 1) | 0; - $var5 = $var4 + 1 | 0; - if ($var4 >= $this.$count5) - break; - $var6 = $this.$pathPoints.data[$var4]; - $var7 = $var6.$distanceToTarget; - if ($var5 >= $this.$count5) { - $var8 = null; - $var9 = Infinity; - } else { - $var8 = $this.$pathPoints.data[$var5]; - $var9 = $var8.$distanceToTarget; - } - if ($var7 < $var9) { - if ($var7 >= $var3) - break a; - $this.$pathPoints.data[$par1] = $var6; - $var6.$index9 = $par1; - } else { - if ($var9 >= $var3) - break a; - $this.$pathPoints.data[$par1] = $var8; - $var8.$index9 = $par1; - $var4 = $var5; - } - $par1 = $var4; - } - } - $this.$pathPoints.data[$par1] = $var2; - $var2.$index9 = $par1; -}; -$java.nms_Path_isPathEmpty = function($this) { - return $this.$count5 ? 0 : 1; -}; -$java.nms_PathPoint = function() { - var a = this; jl_Object.call(a); - a.$xCoord2 = 0; - a.$yCoord2 = 0; - a.$zCoord2 = 0; - a.$hash0 = 0; - a.$index9 = 0; - a.$totalPathDistance = 0.0; - a.$distanceToNext = 0.0; - a.$distanceToTarget = 0.0; - a.$previous1 = null; - a.$isFirst = 0; -}; -$java.nms_PathPoint_makeHash = function($par0, $par1, $par2) { - return $par1 & 255 | ($par0 & 32767) << 8 | ($par2 & 32767) << 24 | ($par0 >= 0 ? 0 : (-2147483648)) | ($par2 >= 0 ? 0 : 32768); -}; -$java.nms_PathPoint_distanceTo = function($this, $par1PathPoint) { - var $var2, $var3, $var4; - $var2 = $par1PathPoint.$xCoord2 - $this.$xCoord2 | 0; - $var3 = $par1PathPoint.$yCoord2 - $this.$yCoord2 | 0; - $var4 = $par1PathPoint.$zCoord2 - $this.$zCoord2 | 0; - return jl_Math_sqrt($var2 * $var2 + $var3 * $var3 + $var4 * $var4); -}; -$java.nms_PathPoint_func_75832_b = function($this, $par1PathPoint) { - var $var2, $var3, $var4; - $var2 = $par1PathPoint.$xCoord2 - $this.$xCoord2 | 0; - $var3 = $par1PathPoint.$yCoord2 - $this.$yCoord2 | 0; - $var4 = $par1PathPoint.$zCoord2 - $this.$zCoord2 | 0; - return $var2 * $var2 + $var3 * $var3 + $var4 * $var4; -}; -$java.nms_PathPoint_equals = function($this, $par1Obj) { - var $var2; - if (!($par1Obj instanceof $java.nms_PathPoint)) - return 0; - $var2 = $par1Obj; - return $this.$hash0 == $var2.$hash0 && $this.$xCoord2 == $var2.$xCoord2 && $this.$yCoord2 == $var2.$yCoord2 && $this.$zCoord2 == $var2.$zCoord2 ? 1 : 0; -}; -$java.nms_PathPoint_isAssigned = function($this) { - return $this.$index9 < 0 ? 0 : 1; -}; -function ju_LinkedHashMap$1() { - ju_AbstractSet.call(this); - this.$this$07 = null; -} -$java.ju_LinkedHashMap$1_size = function($this) { - return $this.$this$07.$elementCount; -}; -$java.ju_LinkedHashMap$1_iterator = function($this) { - var var$1, var$2; - var$1 = new $java.ju_LinkedHashMap$KeyIterator; - var$2 = $this.$this$07; - var$1.$expectedModCount0 = var$2.$modCount1; - var$1.$futureEntry0 = var$2.$head4; - var$1.$associatedMap1 = var$2; - return var$1; -}; -$java.cjj_StaticTree = function() { - var a = this; jl_Object.call(a); - a.$static_tree = null; - a.$extra_bits = null; - a.$extra_base = 0; - a.$elems = 0; - a.$max_length = 0; -}; -$java.cjj_StaticTree_static_ltree = null; -$java.cjj_StaticTree_static_dtree = null; -$java.cjj_StaticTree_static_l_desc = null; -$java.cjj_StaticTree_static_d_desc = null; -$java.cjj_StaticTree_static_bl_desc = null; -$java.cjj_StaticTree_$callClinit = function() { - $java.cjj_StaticTree_$callClinit = $rt_eraseClinit($java.cjj_StaticTree); - $java.cjj_StaticTree__clinit_(); -}; -$java.cjj_StaticTree__init_ = function(var_0, var_1, var_2, var_3, var_4) { - var var_5 = new $java.cjj_StaticTree(); - $java.cjj_StaticTree__init_0(var_5, var_0, var_1, var_2, var_3, var_4); - return var_5; -}; -$java.cjj_StaticTree__init_0 = function($this, $static_tree, $extra_bits, $extra_base, $elems, $max_length) { - $java.cjj_StaticTree_$callClinit(); - $this.$static_tree = $static_tree; - $this.$extra_bits = $extra_bits; - $this.$extra_base = $extra_base; - $this.$elems = $elems; - $this.$max_length = $max_length; -}; -$java.cjj_StaticTree__clinit_ = function() { - var var$1, var$2; - var$1 = $rt_createShortArray(576); - var$2 = var$1.data; - var$2[0] = 12; - var$2[1] = 8; - var$2[2] = 140; - var$2[3] = 8; - var$2[4] = 76; - var$2[5] = 8; - var$2[6] = 204; - var$2[7] = 8; - var$2[8] = 44; - var$2[9] = 8; - var$2[10] = 172; - var$2[11] = 8; - var$2[12] = 108; - var$2[13] = 8; - var$2[14] = 236; - var$2[15] = 8; - var$2[16] = 28; - var$2[17] = 8; - var$2[18] = 156; - var$2[19] = 8; - var$2[20] = 92; - var$2[21] = 8; - var$2[22] = 220; - var$2[23] = 8; - var$2[24] = 60; - var$2[25] = 8; - var$2[26] = 188; - var$2[27] = 8; - var$2[28] = 124; - var$2[29] = 8; - var$2[30] = 252; - var$2[31] = 8; - var$2[32] = 2; - var$2[33] = 8; - var$2[34] = 130; - var$2[35] = 8; - var$2[36] = 66; - var$2[37] = 8; - var$2[38] = 194; - var$2[39] = 8; - var$2[40] = 34; - var$2[41] = 8; - var$2[42] = 162; - var$2[43] = 8; - var$2[44] = 98; - var$2[45] = 8; - var$2[46] = 226; - var$2[47] = 8; - var$2[48] = 18; - var$2[49] = 8; - var$2[50] = 146; - var$2[51] = 8; - var$2[52] = 82; - var$2[53] = 8; - var$2[54] = 210; - var$2[55] = 8; - var$2[56] = 50; - var$2[57] = 8; - var$2[58] = 178; - var$2[59] = 8; - var$2[60] = 114; - var$2[61] = 8; - var$2[62] = 242; - var$2[63] = 8; - var$2[64] = 10; - var$2[65] = 8; - var$2[66] = 138; - var$2[67] = 8; - var$2[68] = 74; - var$2[69] = 8; - var$2[70] = 202; - var$2[71] = 8; - var$2[72] = 42; - var$2[73] = 8; - var$2[74] = 170; - var$2[75] = 8; - var$2[76] = 106; - var$2[77] = 8; - var$2[78] = 234; - var$2[79] = 8; - var$2[80] = 26; - var$2[81] = 8; - var$2[82] = 154; - var$2[83] = 8; - var$2[84] = 90; - var$2[85] = 8; - var$2[86] = 218; - var$2[87] = 8; - var$2[88] = 58; - var$2[89] = 8; - var$2[90] = 186; - var$2[91] = 8; - var$2[92] = 122; - var$2[93] = 8; - var$2[94] = 250; - var$2[95] = 8; - var$2[96] = 6; - var$2[97] = 8; - var$2[98] = 134; - var$2[99] = 8; - var$2[100] = 70; - var$2[101] = 8; - var$2[102] = 198; - var$2[103] = 8; - var$2[104] = 38; - var$2[105] = 8; - var$2[106] = 166; - var$2[107] = 8; - var$2[108] = 102; - var$2[109] = 8; - var$2[110] = 230; - var$2[111] = 8; - var$2[112] = 22; - var$2[113] = 8; - var$2[114] = 150; - var$2[115] = 8; - var$2[116] = 86; - var$2[117] = 8; - var$2[118] = 214; - var$2[119] = 8; - var$2[120] = 54; - var$2[121] = 8; - var$2[122] = 182; - var$2[123] = 8; - var$2[124] = 118; - var$2[125] = 8; - var$2[126] = 246; - var$2[127] = 8; - var$2[128] = 14; - var$2[129] = 8; - var$2[130] = 142; - var$2[131] = 8; - var$2[132] = 78; - var$2[133] = 8; - var$2[134] = 206; - var$2[135] = 8; - var$2[136] = 46; - var$2[137] = 8; - var$2[138] = 174; - var$2[139] = 8; - var$2[140] = 110; - var$2[141] = 8; - var$2[142] = 238; - var$2[143] = 8; - var$2[144] = 30; - var$2[145] = 8; - var$2[146] = 158; - var$2[147] = 8; - var$2[148] = 94; - var$2[149] = 8; - var$2[150] = 222; - var$2[151] = 8; - var$2[152] = 62; - var$2[153] = 8; - var$2[154] = 190; - var$2[155] = 8; - var$2[156] = 126; - var$2[157] = 8; - var$2[158] = 254; - var$2[159] = 8; - var$2[160] = 1; - var$2[161] = 8; - var$2[162] = 129; - var$2[163] = 8; - var$2[164] = 65; - var$2[165] = 8; - var$2[166] = 193; - var$2[167] = 8; - var$2[168] = 33; - var$2[169] = 8; - var$2[170] = 161; - var$2[171] = 8; - var$2[172] = 97; - var$2[173] = 8; - var$2[174] = 225; - var$2[175] = 8; - var$2[176] = 17; - var$2[177] = 8; - var$2[178] = 145; - var$2[179] = 8; - var$2[180] = 81; - var$2[181] = 8; - var$2[182] = 209; - var$2[183] = 8; - var$2[184] = 49; - var$2[185] = 8; - var$2[186] = 177; - var$2[187] = 8; - var$2[188] = 113; - var$2[189] = 8; - var$2[190] = 241; - var$2[191] = 8; - var$2[192] = 9; - var$2[193] = 8; - var$2[194] = 137; - var$2[195] = 8; - var$2[196] = 73; - var$2[197] = 8; - var$2[198] = 201; - var$2[199] = 8; - var$2[200] = 41; - var$2[201] = 8; - var$2[202] = 169; - var$2[203] = 8; - var$2[204] = 105; - var$2[205] = 8; - var$2[206] = 233; - var$2[207] = 8; - var$2[208] = 25; - var$2[209] = 8; - var$2[210] = 153; - var$2[211] = 8; - var$2[212] = 89; - var$2[213] = 8; - var$2[214] = 217; - var$2[215] = 8; - var$2[216] = 57; - var$2[217] = 8; - var$2[218] = 185; - var$2[219] = 8; - var$2[220] = 121; - var$2[221] = 8; - var$2[222] = 249; - var$2[223] = 8; - var$2[224] = 5; - var$2[225] = 8; - var$2[226] = 133; - var$2[227] = 8; - var$2[228] = 69; - var$2[229] = 8; - var$2[230] = 197; - var$2[231] = 8; - var$2[232] = 37; - var$2[233] = 8; - var$2[234] = 165; - var$2[235] = 8; - var$2[236] = 101; - var$2[237] = 8; - var$2[238] = 229; - var$2[239] = 8; - var$2[240] = 21; - var$2[241] = 8; - var$2[242] = 149; - var$2[243] = 8; - var$2[244] = 85; - var$2[245] = 8; - var$2[246] = 213; - var$2[247] = 8; - var$2[248] = 53; - var$2[249] = 8; - var$2[250] = 181; - var$2[251] = 8; - var$2[252] = 117; - var$2[253] = 8; - var$2[254] = 245; - var$2[255] = 8; - var$2[256] = 13; - var$2[257] = 8; - var$2[258] = 141; - var$2[259] = 8; - var$2[260] = 77; - var$2[261] = 8; - var$2[262] = 205; - var$2[263] = 8; - var$2[264] = 45; - var$2[265] = 8; - var$2[266] = 173; - var$2[267] = 8; - var$2[268] = 109; - var$2[269] = 8; - var$2[270] = 237; - var$2[271] = 8; - var$2[272] = 29; - var$2[273] = 8; - var$2[274] = 157; - var$2[275] = 8; - var$2[276] = 93; - var$2[277] = 8; - var$2[278] = 221; - var$2[279] = 8; - var$2[280] = 61; - var$2[281] = 8; - var$2[282] = 189; - var$2[283] = 8; - var$2[284] = 125; - var$2[285] = 8; - var$2[286] = 253; - var$2[287] = 8; - var$2[288] = 19; - var$2[289] = 9; - var$2[290] = 275; - var$2[291] = 9; - var$2[292] = 147; - var$2[293] = 9; - var$2[294] = 403; - var$2[295] = 9; - var$2[296] = 83; - var$2[297] = 9; - var$2[298] = 339; - var$2[299] = 9; - var$2[300] = 211; - var$2[301] = 9; - var$2[302] = 467; - var$2[303] = 9; - var$2[304] = 51; - var$2[305] = 9; - var$2[306] = 307; - var$2[307] = 9; - var$2[308] = 179; - var$2[309] = 9; - var$2[310] = 435; - var$2[311] = 9; - var$2[312] = 115; - var$2[313] = 9; - var$2[314] = 371; - var$2[315] = 9; - var$2[316] = 243; - var$2[317] = 9; - var$2[318] = 499; - var$2[319] = 9; - var$2[320] = 11; - var$2[321] = 9; - var$2[322] = 267; - var$2[323] = 9; - var$2[324] = 139; - var$2[325] = 9; - var$2[326] = 395; - var$2[327] = 9; - var$2[328] = 75; - var$2[329] = 9; - var$2[330] = 331; - var$2[331] = 9; - var$2[332] = 203; - var$2[333] = 9; - var$2[334] = 459; - var$2[335] = 9; - var$2[336] = 43; - var$2[337] = 9; - var$2[338] = 299; - var$2[339] = 9; - var$2[340] = 171; - var$2[341] = 9; - var$2[342] = 427; - var$2[343] = 9; - var$2[344] = 107; - var$2[345] = 9; - var$2[346] = 363; - var$2[347] = 9; - var$2[348] = 235; - var$2[349] = 9; - var$2[350] = 491; - var$2[351] = 9; - var$2[352] = 27; - var$2[353] = 9; - var$2[354] = 283; - var$2[355] = 9; - var$2[356] = 155; - var$2[357] = 9; - var$2[358] = 411; - var$2[359] = 9; - var$2[360] = 91; - var$2[361] = 9; - var$2[362] = 347; - var$2[363] = 9; - var$2[364] = 219; - var$2[365] = 9; - var$2[366] = 475; - var$2[367] = 9; - var$2[368] = 59; - var$2[369] = 9; - var$2[370] = 315; - var$2[371] = 9; - var$2[372] = 187; - var$2[373] = 9; - var$2[374] = 443; - var$2[375] = 9; - var$2[376] = 123; - var$2[377] = 9; - var$2[378] = 379; - var$2[379] = 9; - var$2[380] = 251; - var$2[381] = 9; - var$2[382] = 507; - var$2[383] = 9; - var$2[384] = 7; - var$2[385] = 9; - var$2[386] = 263; - var$2[387] = 9; - var$2[388] = 135; - var$2[389] = 9; - var$2[390] = 391; - var$2[391] = 9; - var$2[392] = 71; - var$2[393] = 9; - var$2[394] = 327; - var$2[395] = 9; - var$2[396] = 199; - var$2[397] = 9; - var$2[398] = 455; - var$2[399] = 9; - var$2[400] = 39; - var$2[401] = 9; - var$2[402] = 295; - var$2[403] = 9; - var$2[404] = 167; - var$2[405] = 9; - var$2[406] = 423; - var$2[407] = 9; - var$2[408] = 103; - var$2[409] = 9; - var$2[410] = 359; - var$2[411] = 9; - var$2[412] = 231; - var$2[413] = 9; - var$2[414] = 487; - var$2[415] = 9; - var$2[416] = 23; - var$2[417] = 9; - var$2[418] = 279; - var$2[419] = 9; - var$2[420] = 151; - var$2[421] = 9; - var$2[422] = 407; - var$2[423] = 9; - var$2[424] = 87; - var$2[425] = 9; - var$2[426] = 343; - var$2[427] = 9; - var$2[428] = 215; - var$2[429] = 9; - var$2[430] = 471; - var$2[431] = 9; - var$2[432] = 55; - var$2[433] = 9; - var$2[434] = 311; - var$2[435] = 9; - var$2[436] = 183; - var$2[437] = 9; - var$2[438] = 439; - var$2[439] = 9; - var$2[440] = 119; - var$2[441] = 9; - var$2[442] = 375; - var$2[443] = 9; - var$2[444] = 247; - var$2[445] = 9; - var$2[446] = 503; - var$2[447] = 9; - var$2[448] = 15; - var$2[449] = 9; - var$2[450] = 271; - var$2[451] = 9; - var$2[452] = 143; - var$2[453] = 9; - var$2[454] = 399; - var$2[455] = 9; - var$2[456] = 79; - var$2[457] = 9; - var$2[458] = 335; - var$2[459] = 9; - var$2[460] = 207; - var$2[461] = 9; - var$2[462] = 463; - var$2[463] = 9; - var$2[464] = 47; - var$2[465] = 9; - var$2[466] = 303; - var$2[467] = 9; - var$2[468] = 175; - var$2[469] = 9; - var$2[470] = 431; - var$2[471] = 9; - var$2[472] = 111; - var$2[473] = 9; - var$2[474] = 367; - var$2[475] = 9; - var$2[476] = 239; - var$2[477] = 9; - var$2[478] = 495; - var$2[479] = 9; - var$2[480] = 31; - var$2[481] = 9; - var$2[482] = 287; - var$2[483] = 9; - var$2[484] = 159; - var$2[485] = 9; - var$2[486] = 415; - var$2[487] = 9; - var$2[488] = 95; - var$2[489] = 9; - var$2[490] = 351; - var$2[491] = 9; - var$2[492] = 223; - var$2[493] = 9; - var$2[494] = 479; - var$2[495] = 9; - var$2[496] = 63; - var$2[497] = 9; - var$2[498] = 319; - var$2[499] = 9; - var$2[500] = 191; - var$2[501] = 9; - var$2[502] = 447; - var$2[503] = 9; - var$2[504] = 127; - var$2[505] = 9; - var$2[506] = 383; - var$2[507] = 9; - var$2[508] = 255; - var$2[509] = 9; - var$2[510] = 511; - var$2[511] = 9; - var$2[512] = 0; - var$2[513] = 7; - var$2[514] = 64; - var$2[515] = 7; - var$2[516] = 32; - var$2[517] = 7; - var$2[518] = 96; - var$2[519] = 7; - var$2[520] = 16; - var$2[521] = 7; - var$2[522] = 80; - var$2[523] = 7; - var$2[524] = 48; - var$2[525] = 7; - var$2[526] = 112; - var$2[527] = 7; - var$2[528] = 8; - var$2[529] = 7; - var$2[530] = 72; - var$2[531] = 7; - var$2[532] = 40; - var$2[533] = 7; - var$2[534] = 104; - var$2[535] = 7; - var$2[536] = 24; - var$2[537] = 7; - var$2[538] = 88; - var$2[539] = 7; - var$2[540] = 56; - var$2[541] = 7; - var$2[542] = 120; - var$2[543] = 7; - var$2[544] = 4; - var$2[545] = 7; - var$2[546] = 68; - var$2[547] = 7; - var$2[548] = 36; - var$2[549] = 7; - var$2[550] = 100; - var$2[551] = 7; - var$2[552] = 20; - var$2[553] = 7; - var$2[554] = 84; - var$2[555] = 7; - var$2[556] = 52; - var$2[557] = 7; - var$2[558] = 116; - var$2[559] = 7; - var$2[560] = 3; - var$2[561] = 8; - var$2[562] = 131; - var$2[563] = 8; - var$2[564] = 67; - var$2[565] = 8; - var$2[566] = 195; - var$2[567] = 8; - var$2[568] = 35; - var$2[569] = 8; - var$2[570] = 163; - var$2[571] = 8; - var$2[572] = 99; - var$2[573] = 8; - var$2[574] = 227; - var$2[575] = 8; - $java.cjj_StaticTree_static_ltree = var$1; - var$1 = $rt_createShortArray(60); - var$2 = var$1.data; - var$2[0] = 0; - var$2[1] = 5; - var$2[2] = 16; - var$2[3] = 5; - var$2[4] = 8; - var$2[5] = 5; - var$2[6] = 24; - var$2[7] = 5; - var$2[8] = 4; - var$2[9] = 5; - var$2[10] = 20; - var$2[11] = 5; - var$2[12] = 12; - var$2[13] = 5; - var$2[14] = 28; - var$2[15] = 5; - var$2[16] = 2; - var$2[17] = 5; - var$2[18] = 18; - var$2[19] = 5; - var$2[20] = 10; - var$2[21] = 5; - var$2[22] = 26; - var$2[23] = 5; - var$2[24] = 6; - var$2[25] = 5; - var$2[26] = 22; - var$2[27] = 5; - var$2[28] = 14; - var$2[29] = 5; - var$2[30] = 30; - var$2[31] = 5; - var$2[32] = 1; - var$2[33] = 5; - var$2[34] = 17; - var$2[35] = 5; - var$2[36] = 9; - var$2[37] = 5; - var$2[38] = 25; - var$2[39] = 5; - var$2[40] = 5; - var$2[41] = 5; - var$2[42] = 21; - var$2[43] = 5; - var$2[44] = 13; - var$2[45] = 5; - var$2[46] = 29; - var$2[47] = 5; - var$2[48] = 3; - var$2[49] = 5; - var$2[50] = 19; - var$2[51] = 5; - var$2[52] = 11; - var$2[53] = 5; - var$2[54] = 27; - var$2[55] = 5; - var$2[56] = 7; - var$2[57] = 5; - var$2[58] = 23; - var$2[59] = 5; - $java.cjj_StaticTree_static_dtree = var$1; - $java.cjj_StaticTree_static_l_desc = $java.cjj_StaticTree__init_($java.cjj_StaticTree_static_ltree, $java.cjj_Tree_extra_lbits, 257, 286, 15); - $java.cjj_StaticTree_static_d_desc = $java.cjj_StaticTree__init_($java.cjj_StaticTree_static_dtree, $java.cjj_Tree_extra_dbits, 0, 30, 15); - $java.cjj_StaticTree_static_bl_desc = $java.cjj_StaticTree__init_(null, $java.cjj_Tree_extra_blbits, 0, 19, 7); -}; -$java.ju_LinkedHashMap$KeyIterator = function() { - $java.ju_LinkedHashMap$AbstractMapIterator.call(this); -}; -$java.ju_LinkedHashMap$KeyIterator_next = function($this) { - var var$1; - if ($this.$expectedModCount0 != $this.$associatedMap1.$modCount1) { - var$1 = new ju_ConcurrentModificationException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); - } - if ($this.$futureEntry0 === null ? 0 : 1) { - $this.$currentEntry1 = $this.$futureEntry0; - $this.$futureEntry0 = $this.$futureEntry0.$chainForward; - return $this.$currentEntry1.$key; - } - var$1 = new ju_NoSuchElementException; - var$1.$suppressionEnabled = 1; - var$1.$writableStackTrace = 1; - $rt_throw(var$1); -}; -$java.nms_MapInfo = function() { - var a = this; jl_Object.call(a); - a.$entityplayerObj = null; - a.$field_76209_b = null; - a.$field_76210_c = null; - a.$currentRandomNumber = 0; - a.$ticksUntilPlayerLocationMapUpdate = 0; - a.$field_82569_d = 0; - a.$field_82570_i = 0; - a.$mapDataObj = null; -}; -$java.nms_MapInfo__init_ = function(var_0, var_1) { - var var_2 = new $java.nms_MapInfo(); - $java.nms_MapInfo__init_0(var_2, var_0, var_1); - return var_2; -}; -$java.nms_MapInfo__init_0 = function($this, $par1MapData, $par2EntityPlayer) { - var $var3; - $this.$mapDataObj = $par1MapData; - $this.$field_76209_b = $rt_createIntArray(128); - $this.$field_76210_c = $rt_createIntArray(128); - $this.$currentRandomNumber = 0; - $this.$ticksUntilPlayerLocationMapUpdate = 0; - $this.$field_82570_i = 0; - $this.$entityplayerObj = $par2EntityPlayer; - $var3 = 0; - while ($var3 < $this.$field_76209_b.data.length) { - $this.$field_76209_b.data[$var3] = 0; - $this.$field_76210_c.data[$var3] = 127; - $var3 = $var3 + 1 | 0; - } -}; -$rt_packages([-1, "com", 0, "baislsl", 1, "png", 2, "chunk", 2, "decode", 0, "jcraft", 5, "jzlib", -1, "java", 7, "util", 8, "regex", 7, "nio", 10, "charset", 11, "impl", 7, "io", 7, "text", 7, "lang", -1, "org", 16, "teavm", 17, "classlib", 18, "impl", 19, "tz", 19, "unicode", -1, "net", 22, "minecraft", 23, "src", 22, "lax1dude", 25, "eaglercraft", 26, "adapter", 26, "glemu" -]); -$rt_metadata([jl_Object, "Object", 15, 0, [], 0, 3, 0, ["$hashCode0", function() { return jl_Object_hashCode(this); }, "$equals", function(var_1) { return jl_Object_equals(this, var_1); }, "$toString", function() { return jl_Object_toString(this); }], -nle_Client, 0, jl_Object, [], 0, 3, 0, 0, -jlr_AnnotatedElement, 0, jl_Object, [], 3, 3, 0, 0, -jl_Class, "Class", 15, jl_Object, [jlr_AnnotatedElement], 0, 3, 0, 0, -otji_JS, 0, jl_Object, [], 4, 0, 0, 0, -otp_Platform, 0, jl_Object, [], 4, 3, 0, 0, -ji_Serializable, 0, jl_Object, [], 3, 3, 0, 0, -jl_Comparable, 0, jl_Object, [], 3, 3, 0, 0, -jl_CharSequence, 0, jl_Object, [], 3, 3, 0, 0, -jl_String, "String", 15, jl_Object, [ji_Serializable, jl_Comparable, jl_CharSequence], 0, 3, 0, ["$charAt", function(var_1) { return jl_String_charAt(this, var_1); }, "$length0", function() { return jl_String_length(this); }, "$toString", function() { return jl_String_toString(this); }, "$equals", function(var_1) { return jl_String_equals(this, var_1); }, "$hashCode0", function() { return jl_String_hashCode(this); }, "$compareTo4", function(var_1) { return jl_String_compareTo0(this, var_1); }], -jl_Throwable, 0, jl_Object, [], 0, 3, 0, ["$getMessage", function() { return jl_Throwable_getMessage(this); }], -jl_Error, 0, jl_Throwable, [], 0, 3, 0, 0, -jl_LinkageError, 0, jl_Error, [], 0, 3, 0, 0, -jl_NoClassDefFoundError, 0, jl_LinkageError, [], 0, 3, 0, 0, -jl_AbstractStringBuilder, 0, jl_Object, [ji_Serializable, jl_CharSequence], 0, 0, 0, ["$ensureCapacity", function(var_1) { jl_AbstractStringBuilder_ensureCapacity(this, var_1); }, "$toString", function() { return jl_AbstractStringBuilder_toString(this); }], -jl_Appendable, 0, jl_Object, [], 3, 3, 0, 0, -jl_StringBuilder, 0, jl_AbstractStringBuilder, [jl_Appendable], 0, 3, 0, ["$insert5", function(var_1, var_2, var_3, var_4) { return jl_StringBuilder_insert7(this, var_1, var_2, var_3, var_4); }, "$append12", function(var_1, var_2, var_3) { return jl_StringBuilder_append10(this, var_1, var_2, var_3); }, "$insert6", function(var_1, var_2, var_3, var_4) { return jl_StringBuilder_insert8(this, var_1, var_2, var_3, var_4); }, "$append13", function(var_1, var_2, var_3) { return jl_StringBuilder_append11(this, var_1, -var_2, var_3); }, "$charAt", function(var_1) { return jl_StringBuilder_charAt(this, var_1); }, "$length0", function() { return jl_StringBuilder_length(this); }, "$toString", function() { return jl_StringBuilder_toString(this); }, "$ensureCapacity", function(var_1) { jl_StringBuilder_ensureCapacity(this, var_1); }, "$insert1", function(var_1, var_2) { return jl_StringBuilder_insert10(this, var_1, var_2); }, "$insert", function(var_1, var_2) { return jl_StringBuilder_insert14(this, var_1, var_2); }], -jl_Number, 0, jl_Object, [ji_Serializable], 1, 3, 0, 0, -jl_Integer, "Integer", 15, jl_Number, [jl_Comparable], 0, 3, 0, ["$intValue", function() { return jl_Integer_intValue(this); }, "$toString", function() { return jl_Integer_toString1(this); }, "$hashCode0", function() { return jl_Integer_hashCode(this); }, "$equals", function(var_1) { return jl_Integer_equals(this, var_1); }, "$compareTo4", function(var_1) { return jl_Integer_compareTo0(this, var_1); }], -jl_IncompatibleClassChangeError, 0, jl_LinkageError, [], 0, 3, 0, 0, -jl_NoSuchFieldError, 0, jl_IncompatibleClassChangeError, [], 0, 3, 0, 0, -jl_NoSuchMethodError, 0, jl_IncompatibleClassChangeError, [], 0, 3, 0, 0, -jl_Exception, 0, jl_Throwable, [], 0, 3, 0, 0, -jl_RuntimeException, "RuntimeException", 15, jl_Exception, [], 0, 3, 0, 0, -otj_JSObject, 0, jl_Object, [], 3, 3, 0, 0, -otjde_EventTarget, 0, jl_Object, [otj_JSObject], 3, 3, 0, 0, -otjde_FocusEventTarget, 0, jl_Object, [otjde_EventTarget], 3, 3, 0, 0, -otjde_MouseEventTarget, 0, jl_Object, [otjde_EventTarget], 3, 3, 0, 0, -otjde_KeyboardEventTarget, 0, jl_Object, [otjde_EventTarget], 3, 3, 0, 0, -otjde_LoadEventTarget, 0, jl_Object, [otjde_EventTarget], 3, 3, 0, 0, -otjb_WindowEventTarget, 0, jl_Object, [otjde_EventTarget, otjde_FocusEventTarget, otjde_MouseEventTarget, otjde_KeyboardEventTarget, otjde_LoadEventTarget], 3, 3, 0, 0, -otjb_StorageProvider, 0, jl_Object, [], 3, 3, 0, 0, -otjc_JSArrayReader, 0, jl_Object, [otj_JSObject], 3, 3, 0, 0, -otjb_Window, 0, jl_Object, [otj_JSObject, otjb_WindowEventTarget, otjb_StorageProvider, otjc_JSArrayReader], 1, 3, 0, ["$addEventListener$exported$0", function(var_1, var_2) { return otjb_Window_addEventListener$exported$0(this, var_1, var_2); }, "$removeEventListener$exported$1", function(var_1, var_2) { return otjb_Window_removeEventListener$exported$1(this, var_1, var_2); }, "$get$exported$2", function(var_1) { return otjb_Window_get$exported$2(this, var_1); }, "$removeEventListener$exported$3", function(var_1, -var_2, var_3) { return otjb_Window_removeEventListener$exported$3(this, var_1, var_2, var_3); }, "$dispatchEvent$exported$4", function(var_1) { return otjb_Window_dispatchEvent$exported$4(this, var_1); }, "$getLength$exported$5", function() { return otjb_Window_getLength$exported$5(this); }, "$addEventListener$exported$6", function(var_1, var_2, var_3) { return otjb_Window_addEventListener$exported$6(this, var_1, var_2, var_3); }], -nlea_EaglerAdapterImpl2, 0, jl_Object, [], 0, 3, nlea_EaglerAdapterImpl2_$callClinit, 0, -nle_LocalStorageManager, 0, jl_Object, [], 0, 3, 0, 0, -nms_ServerList, 0, jl_Object, [], 0, 3, 0, 0, -otci_IntegerUtil, 0, jl_Object, [], 4, 3, 0, 0, -otjc_JSString, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, -otjw_AudioContext, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, -otjde_EventListener, 0, jl_Object, [otj_JSObject], 3, 3, 0, 0, -nlea_EaglerAdapterImpl2$2, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$2_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$3, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$3_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$4, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$4_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$5, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$5_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$6, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$6_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$7, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$7_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$8, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$8_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$9, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$9_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$10, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$10_handleEvent$exported$0(this, var_1); }]]); -$rt_metadata([nlea_EaglerAdapterImpl2$11, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return nlea_EaglerAdapterImpl2$11_handleEvent$exported$0(this, var_1); }], -nle_EarlyLoadScreen, 0, jl_Object, [], 0, 3, 0, 0, -jl_Runnable, 0, jl_Object, [], 3, 3, 0, 0, -jl_Thread, 0, jl_Object, [jl_Runnable], 0, 3, 0, 0, -jl_InterruptedException, 0, jl_Exception, [], 0, 3, 0, 0, -nle_AssetRepository, 0, jl_Object, [], 0, 3, 0, 0, -ji_IOException, "IOException", 13, jl_Exception, [], 0, 3, 0, 0, -nleg_EaglerAdapterGL30, 0, nlea_EaglerAdapterImpl2, [], 0, 3, nleg_EaglerAdapterGL30_$callClinit, 0, -nle_EaglerAdapter, 0, nleg_EaglerAdapterGL30, [], 0, 3, 0, 0, -nms_CompressedStreamTools, 0, jl_Object, [], 0, 3, 0, 0, -nms_NBTBase, 0, jl_Object, [], 1, 3, 0, ["$equals", function(var_1) { return nms_NBTBase_equals(this, var_1); }, "$hashCode0", function() { return nms_NBTBase_hashCode(this); }], -nms_NBTTagCompound, "NBTTagCompound", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagCompound_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagCompound_load(this, var_1); }, "$getId", function() { return nms_NBTTagCompound_getId(this); }, "$toString", function() { return nms_NBTTagCompound_toString(this); }, "$copy", function() { return nms_NBTTagCompound_copy(this); }, "$equals", function(var_1) { return nms_NBTTagCompound_equals(this, var_1); }, "$hashCode0", function() { -return nms_NBTTagCompound_hashCode(this); }], -jl_System, 0, jl_Object, [], 4, 3, 0, 0, -nmc_Minecraft, 0, jl_Object, [jl_Runnable], 0, 3, 0, 0, -nle_BaseNCodec, 0, jl_Object, [], 1, 3, 0, 0, -nle_Base64, 0, nle_BaseNCodec, [], 0, 3, 0, 0, -nms_ServerData, "ServerData", 24, jl_Object, [], 0, 3, 0, 0, -ju_Comparator, 0, jl_Object, [], 3, 3, 0, 0, -jl_String$_clinit_$lambda$_81_0, 0, jl_Object, [ju_Comparator], 0, 3, 0, 0, -jl_Character, "Character", 15, jl_Object, [jl_Comparable], 0, 3, 0, ["$toString", function() { return jl_Character_toString(this); }, "$equals", function(var_1) { return jl_Character_equals(this, var_1); }, "$hashCode0", function() { return jl_Character_hashCode(this); }, "$compareTo4", function(var_1) { return jl_Character_compareTo0(this, var_1); }], -jl_Iterable, 0, jl_Object, [], 3, 3, 0, 0, -ju_Collection, 0, jl_Object, [jl_Iterable], 3, 3, 0, 0, -ju_AbstractCollection, 0, jl_Object, [ju_Collection], 1, 3, 0, ["$contains0", function(var_1) { return ju_AbstractCollection_contains(this, var_1); }, "$remove2", function(var_1) { return ju_AbstractCollection_remove(this, var_1); }, "$toString", function() { return ju_AbstractCollection_toString(this); }], -ju_List, 0, jl_Object, [ju_Collection], 3, 3, 0, 0, -ju_AbstractList, 0, ju_AbstractCollection, [ju_List], 1, 3, 0, ["$add", function(var_1) { return ju_AbstractList_add(this, var_1); }, "$iterator", function() { return ju_AbstractList_iterator(this); }, "$add1", function(var_1, var_2) { ju_AbstractList_add0(this, var_1, var_2); }, "$remove0", function(var_1) { return ju_AbstractList_remove(this, var_1); }, "$hashCode0", function() { return ju_AbstractList_hashCode(this); }, "$equals", function(var_1) { return ju_AbstractList_equals(this, var_1); }], -ju_AbstractSequentialList, 0, ju_AbstractList, [], 1, 3, 0, ["$add1", function(var_1, var_2) { ju_AbstractSequentialList_add(this, var_1, var_2); }], -ju_Queue, 0, jl_Object, [ju_Collection], 3, 3, 0, 0, -ju_Deque, 0, jl_Object, [ju_Queue], 3, 3, 0, 0, -ju_LinkedList, 0, ju_AbstractSequentialList, [ju_Deque], 0, 3, 0, ["$size2", function() { return ju_LinkedList_size(this); }], -otjt_ArrayBuffer, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, -otjt_ArrayBufferView, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, -otjt_Uint8Array, 0, otjt_ArrayBufferView, [], 1, 3, 0, 0, -otjt_Float32Array, 0, otjt_ArrayBufferView, [], 1, 3, 0, 0, -ju_Map, 0, jl_Object, [], 3, 3, 0, 0, -ju_AbstractMap, 0, jl_Object, [ju_Map], 1, 3, 0, ["$equals", function(var_1) { return ju_AbstractMap_equals(this, var_1); }, "$hashCode0", function() { return ju_AbstractMap_hashCode(this); }], -jl_Cloneable, 0, jl_Object, [], 3, 3, 0, 0, -ju_HashMap, "HashMap", 8, ju_AbstractMap, [jl_Cloneable, ji_Serializable], 0, 3, 0, ["$newElementArray", function(var_1) { return ju_HashMap_newElementArray(this, var_1); }], -otjt_Int32Array, 0, otjt_ArrayBufferView, [], 1, 3, 0, 0, -nle_EaglerImage, 0, jl_Object, [], 0, 3, 0, 0, -nms_GLAllocation, 0, jl_Object, [], 0, 3, 0, 0, -jl_Float, "Float", 15, jl_Number, [jl_Comparable], 0, 3, 0, ["$toString", function() { return jl_Float_toString(this); }, "$equals", function(var_1) { return jl_Float_equals(this, var_1); }, "$hashCode0", function() { return jl_Float_hashCode(this); }], -oti_AsyncCallback, 0, jl_Object, [], 3, 3, 0, 0, -otpp_AsyncCallbackWrapper, 0, jl_Object, [oti_AsyncCallback], 0, 0, 0, ["$complete", function(var_1) { otpp_AsyncCallbackWrapper_complete(this, var_1); }, "$error", function(var_1) { otpp_AsyncCallbackWrapper_error(this, var_1); }], -otja_XMLHttpRequest, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, -otja_ReadyStateChangeHandler, 0, jl_Object, [otj_JSObject], 3, 3, 0, 0, -nlea_EaglerAdapterImpl2$1, 0, jl_Object, [otja_ReadyStateChangeHandler], 0, 0, 0, ["$stateChanged$exported$0", function() { return nlea_EaglerAdapterImpl2$1_stateChanged$exported$0(this); }], -otp_PlatformRunnable, 0, jl_Object, [], 3, 3, 0, 0, -otr_EventQueue$Event, 0, jl_Object, [], 3, 3, 0, 0, -jl_ThreadInterruptHandler, 0, jl_Object, [], 3, 3, 0, 0, -jl_Thread$SleepHandler, 0, jl_Object, [otp_PlatformRunnable, otr_EventQueue$Event, jl_ThreadInterruptHandler], 0, 0, 0, ["$run", function() { jl_Thread$SleepHandler_run(this); }]]); -$rt_metadata([jl_AutoCloseable, 0, jl_Object, [], 3, 3, 0, 0, -ji_Closeable, 0, jl_Object, [jl_AutoCloseable], 3, 3, 0, 0, -ji_InputStream, 0, jl_Object, [ji_Closeable], 1, 3, 0, ["$read2", function(var_1) { return ji_InputStream_read(this, var_1); }, "$read", function(var_1, var_2, var_3) { return ji_InputStream_read0(this, var_1, var_2, var_3); }, "$close", function() { ji_InputStream_close(this); }], -ji_ByteArrayInputStream, 0, ji_InputStream, [], 0, 3, 0, ["$read1", function() { return ji_ByteArrayInputStream_read(this); }, "$read", function(var_1, var_2, var_3) { return ji_ByteArrayInputStream_read0(this, var_1, var_2, var_3); }, "$available", function() { return ji_ByteArrayInputStream_available(this); }, "$close", function() { ji_ByteArrayInputStream_close(this); }], -ji_FilterInputStream, 0, ji_InputStream, [], 0, 3, 0, ["$read2", function(var_1) { return ji_FilterInputStream_read0(this, var_1); }], -ji_DataInput, 0, jl_Object, [], 3, 3, 0, 0, -ji_DataInputStream, 0, ji_FilterInputStream, [ji_DataInput], 0, 3, 0, 0, -jnc_Charset, 0, jl_Object, [jl_Comparable], 1, 3, 0, 0, -cjj_InflaterInputStream, 0, ji_FilterInputStream, [], 0, 3, 0, ["$read1", function() { return cjj_InflaterInputStream_read(this); }, "$read", function(var_1, var_2, var_3) { return cjj_InflaterInputStream_read0(this, var_1, var_2, var_3); }, "$available", function() { return cjj_InflaterInputStream_available(this); }, "$close", function() { cjj_InflaterInputStream_close(this); }], -nle_GeneralDigest, 0, jl_Object, [], 1, 3, 0, 0, -nle_SHA1Digest, 0, nle_GeneralDigest, [], 0, 3, 0, 0, -ju_Arrays, 0, jl_Object, [], 0, 3, 0, 0, -ji_BufferedInputStream, 0, ji_FilterInputStream, [], 0, 3, 0, ["$available", function() { return ji_BufferedInputStream_available(this); }, "$close", function() { ji_BufferedInputStream_close(this); }, "$read1", function() { return ji_BufferedInputStream_read(this); }, "$read", function(var_1, var_2, var_3) { return ji_BufferedInputStream_read0(this, var_1, var_2, var_3); }], -ji_Flushable, 0, jl_Object, [], 3, 3, 0, 0, -ji_OutputStream, 0, jl_Object, [ji_Closeable, ji_Flushable], 1, 3, 0, ["$write2", function(var_1, var_2, var_3) { ji_OutputStream_write0(this, var_1, var_2, var_3); }, "$close", function() { ji_OutputStream_close(this); }, "$flush", function() { ji_OutputStream_flush(this); }], -ji_FilterOutputStream, 0, ji_OutputStream, [], 0, 3, 0, 0, -ji_PrintStream, 0, ji_FilterOutputStream, [], 0, 3, 0, 0, -jl_ConsoleOutputStreamStdout, 0, ji_OutputStream, [], 0, 0, 0, ["$write0", function(var_1) { jl_ConsoleOutputStreamStdout_write(this, var_1); }], -nms_Timer, 0, jl_Object, [], 0, 3, 0, 0, -nms_SoundManager, 0, jl_Object, [], 0, 3, 0, 0, -nms_Profiler, 0, jl_Object, [], 0, 3, 0, 0, -ju_Set, 0, jl_Object, [ju_Collection], 3, 3, 0, 0, -ju_AbstractSet, 0, ju_AbstractCollection, [ju_Set], 1, 3, 0, ["$equals", function(var_1) { return ju_AbstractSet_equals(this, var_1); }, "$hashCode0", function() { return ju_AbstractSet_hashCode(this); }], -ju_HashSet, "HashSet", 8, ju_AbstractSet, [jl_Cloneable, ji_Serializable], 0, 3, 0, ["$add", function(var_1) { return ju_HashSet_add(this, var_1); }, "$contains0", function(var_1) { return ju_HashSet_contains(this, var_1); }, "$iterator", function() { return ju_HashSet_iterator(this); }, "$size2", function() { return ju_HashSet_size(this); }], -nms_Packet, 0, jl_Object, [], 1, 3, nms_Packet_$callClinit, 0, -nms_Packet3Chat, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { nms_Packet3Chat_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { nms_Packet3Chat_writePacketData(this, var_1); }, "$processPacket", function(var_1) { nms_Packet3Chat_processPacket(this, var_1); }, "$getPacketSize", function() { return nms_Packet3Chat_getPacketSize(this); }], -ju_RandomAccess, 0, jl_Object, [], 3, 3, 0, 0, -ju_ArrayList, "ArrayList", 8, ju_AbstractList, [jl_Cloneable, ji_Serializable, ju_RandomAccess], 0, 3, 0, ["$get4", function(var_1) { return ju_ArrayList_get(this, var_1); }, "$size2", function() { return ju_ArrayList_size(this); }, "$add", function(var_1) { return ju_ArrayList_add(this, var_1); }, "$add1", function(var_1, var_2) { ju_ArrayList_add0(this, var_1, var_2); }, "$remove0", function(var_1) { return ju_ArrayList_remove(this, var_1); }, "$remove2", function(var_1) { return ju_ArrayList_remove0(this, -var_1); }], -nms_NBTTagList, "NBTTagList", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagList_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagList_load(this, var_1); }, "$getId", function() { return nms_NBTTagList_getId(this); }, "$toString", function() { return nms_NBTTagList_toString(this); }, "$copy", function() { return nms_NBTTagList_copy(this); }, "$equals", function(var_1) { return nms_NBTTagList_equals(this, var_1); }, "$hashCode0", function() { return nms_NBTTagList_hashCode(this); -}], -nle_EaglerProfile, 0, jl_Object, [], 0, 3, nle_EaglerProfile_$callClinit, 0, -nlea_EaglerAdapterImpl2$TextureGL, 0, jl_Object, [], 4, 3, 0, 0, -cbpd_Decoder, 0, jl_Object, [], 0, 3, 0, 0, -cbpd_PNG, 0, jl_Object, [], 0, 3, 0, 0, -cbpd_DecodeException, "DecodeException", 4, jl_Exception, [], 0, 3, 0, 0, -jn_Buffer, 0, jl_Object, [], 1, 3, 0, 0, -jn_IntBuffer, 0, jn_Buffer, [jl_Comparable], 1, 3, 0, 0, -nlea_EaglerAdapterImpl2$BufferGL, 0, jl_Object, [], 4, 3, 0, 0, -nlea_EaglerAdapterImpl2$ShaderGL, 0, jl_Object, [], 4, 3, 0, 0, -nlea_EaglerAdapterImpl2$ProgramGL, "EaglerAdapterImpl2$ProgramGL", 27, jl_Object, [], 4, 3, 0, 0, -nlea_EaglerAdapterImpl2$UniformGL, 0, jl_Object, [], 4, 3, 0, 0, -nlea_EaglerAdapterImpl2$BufferArrayGL, 0, jl_Object, [], 4, 3, 0, 0, -jnc_Charset$Charsets, 0, jl_Object, [], 0, 0, 0, 0, -jl_IllegalArgumentException, "IllegalArgumentException", 15, jl_RuntimeException, [], 0, 3, 0, 0, -jnc_UnsupportedCharsetException, "UnsupportedCharsetException", 11, jl_IllegalArgumentException, [], 0, 3, 0, 0, -jnci_UTF8Charset, "UTF8Charset", 12, jnc_Charset, [], 0, 3, 0, 0, -ju_Random, 0, jl_Object, [ji_Serializable], 0, 3, 0, 0, -cbpc_Chunk, 0, jl_Object, [], 0, 3, 0, 0, -cbpc_IHDR, 0, cbpc_Chunk, [], 0, 3, 0, 0, -jn_ByteBuffer, 0, jn_Buffer, [jl_Comparable], 1, 3, 0, ["$toString", function() { return jn_ByteBuffer_toString(this); }, "$hashCode0", function() { return jn_ByteBuffer_hashCode(this); }, "$equals", function(var_1) { return jn_ByteBuffer_equals(this, var_1); }, "$compareTo4", function(var_1) { return jn_ByteBuffer_compareTo0(this, var_1); }], -jn_ByteOrder, 0, jl_Object, [], 4, 3, 0, 0]); -$rt_metadata([jnc_IllegalCharsetNameException, "IllegalCharsetNameException", 11, jl_IllegalArgumentException, [], 0, 3, 0, 0, -cjj_ZStream, 0, jl_Object, [], 128, 3, 0, 0, -cjj_Inflater, 0, cjj_ZStream, [], 4, 3, 0, 0, -nms_NBTTagEnd, "NBTTagEnd", 24, nms_NBTBase, [], 0, 3, 0, ["$load1", function(var_1) { nms_NBTTagEnd_load(this, var_1); }, "$write1", function(var_1) { nms_NBTTagEnd_write(this, var_1); }, "$getId", function() { return nms_NBTTagEnd_getId(this); }, "$toString", function() { return nms_NBTTagEnd_toString(this); }, "$copy", function() { return nms_NBTTagEnd_copy(this); }], -otjb_Performance, 0, jl_Object, [otj_JSObject], 4, 3, 0, 0, -nms_Gui, 0, jl_Object, [], 0, 3, 0, 0, -nms_GuiScreen, 0, nms_Gui, [], 0, 3, nms_GuiScreen_$callClinit, ["$keyTyped", function(var_1, var_2) { nms_GuiScreen_keyTyped(this, var_1, var_2); }, "$mouseClicked", function(var_1, var_2, var_3) { nms_GuiScreen_mouseClicked(this, var_1, var_2, var_3); }, "$mouseMovedOrUp", function(var_1, var_2, var_3) { nms_GuiScreen_mouseMovedOrUp(this, var_1, var_2, var_3); }, "$func_85041_a", function(var_1, var_2, var_3, var_4) { nms_GuiScreen_func_85041_a(this, var_1, var_2, var_3, var_4); }, "$actionPerformed", function(var_1) -{ nms_GuiScreen_actionPerformed(this, var_1); }, "$handleMouseInput", function() { nms_GuiScreen_handleMouseInput(this); }, "$updateScreen", function() { nms_GuiScreen_updateScreen(this); }, "$onGuiClosed", function() { nms_GuiScreen_onGuiClosed(this); }], -nle_GuiScreenEditProfile, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { nle_GuiScreenEditProfile_initGui(this); }, "$drawScreen", function(var_1, var_2, var_3) { nle_GuiScreenEditProfile_drawScreen(this, var_1, var_2, var_3); }, "$handleMouseInput", function() { nle_GuiScreenEditProfile_handleMouseInput(this); }, "$actionPerformed", function(var_1) { nle_GuiScreenEditProfile_actionPerformed(this, var_1); }, "$updateScreen", function() { nle_GuiScreenEditProfile_updateScreen(this); }, "$onGuiClosed", -function() { nle_GuiScreenEditProfile_onGuiClosed(this); }, "$keyTyped", function(var_1, var_2) { nle_GuiScreenEditProfile_keyTyped(this, var_1, var_2); }, "$mouseClicked", function(var_1, var_2, var_3) { nle_GuiScreenEditProfile_mouseClicked(this, var_1, var_2, var_3); }], -ji_ByteArrayOutputStream, 0, ji_OutputStream, [], 0, 3, 0, ["$write0", function(var_1) { ji_ByteArrayOutputStream_write(this, var_1); }, "$write2", function(var_1, var_2, var_3) { ji_ByteArrayOutputStream_write0(this, var_1, var_2, var_3); }], -ji_DataOutput, 0, jl_Object, [], 3, 3, 0, 0, -ji_DataOutputStream, 0, ji_FilterOutputStream, [ji_DataOutput], 0, 3, 0, ["$write2", function(var_1, var_2, var_3) { ji_DataOutputStream_write(this, var_1, var_2, var_3); }, "$write0", function(var_1) { ji_DataOutputStream_write0(this, var_1); }], -nleg_GLObjectMap, 0, jl_Object, [], 0, 3, 0, 0, -nlegv_Matrix, 0, jl_Object, [ji_Serializable], 1, 3, 0, 0, -nlegv_Matrix4f, 0, nlegv_Matrix, [ji_Serializable], 0, 3, 0, 0, -nlegv_Matrix3f, 0, nlegv_Matrix, [ji_Serializable], 0, 3, 0, 0, -nlegv_ReadableVector, 0, jl_Object, [], 3, 3, 0, 0, -nlegv_Vector, 0, jl_Object, [ji_Serializable, nlegv_ReadableVector], 1, 3, 0, 0, -nlegv_ReadableVector2f, 0, jl_Object, [nlegv_ReadableVector], 3, 3, 0, 0, -nlegv_ReadableVector3f, 0, jl_Object, [nlegv_ReadableVector2f], 3, 3, 0, 0, -nlegv_WritableVector2f, 0, jl_Object, [], 3, 3, 0, 0, -nlegv_WritableVector3f, 0, jl_Object, [nlegv_WritableVector2f], 3, 3, 0, 0, -nlegv_Vector3f, 0, nlegv_Vector, [ji_Serializable, nlegv_ReadableVector3f, nlegv_WritableVector3f], 0, 3, 0, 0, -nlegv_ReadableVector4f, 0, jl_Object, [nlegv_ReadableVector3f], 3, 3, 0, 0, -nlegv_WritableVector4f, 0, jl_Object, [nlegv_WritableVector3f], 3, 3, 0, 0, -nlegv_Vector4f, 0, nlegv_Vector, [ji_Serializable, nlegv_ReadableVector4f, nlegv_WritableVector4f], 0, 3, 0, 0, -jn_ByteBufferImpl, "ByteBufferImpl", 10, jn_ByteBuffer, [], 0, 0, 0, 0, -jl_Object$Monitor, 0, jl_Object, [], 0, 0, 0, 0, -jl_IllegalStateException, "IllegalStateException", 15, jl_Exception, [], 0, 3, 0, 0, -jl_IllegalMonitorStateException, "IllegalMonitorStateException", 15, jl_RuntimeException, [], 0, 3, 0, 0, -jn_IntBufferImpl, 0, jn_IntBuffer, [], 1, 0, 0, 0, -jn_IntBufferOverArray, 0, jn_IntBufferImpl, [], 0, 0, 0, ["$getElement", function(var_1) { return jn_IntBufferOverArray_getElement(this, var_1); }, "$putElement", function(var_1, var_2) { jn_IntBufferOverArray_putElement(this, var_1, var_2); }, "$readOnly2", function() { return jn_IntBufferOverArray_readOnly(this); }], -nms_NBTTagByte, "NBTTagByte", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagByte_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagByte_load(this, var_1); }, "$getId", function() { return nms_NBTTagByte_getId(this); }, "$toString", function() { return nms_NBTTagByte_toString(this); }, "$copy", function() { return nms_NBTTagByte_copy(this); }, "$equals", function(var_1) { return nms_NBTTagByte_equals(this, var_1); }, "$hashCode0", function() { return nms_NBTTagByte_hashCode(this); -}], -nms_NBTTagShort, "NBTTagShort", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagShort_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagShort_load(this, var_1); }, "$getId", function() { return nms_NBTTagShort_getId(this); }, "$toString", function() { return nms_NBTTagShort_toString(this); }, "$copy", function() { return nms_NBTTagShort_copy(this); }, "$equals", function(var_1) { return nms_NBTTagShort_equals(this, var_1); }, "$hashCode0", function() { return nms_NBTTagShort_hashCode(this); -}], -nms_NBTTagInt, "NBTTagInt", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagInt_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagInt_load(this, var_1); }, "$getId", function() { return nms_NBTTagInt_getId(this); }, "$toString", function() { return nms_NBTTagInt_toString(this); }, "$copy", function() { return nms_NBTTagInt_copy(this); }, "$equals", function(var_1) { return nms_NBTTagInt_equals(this, var_1); }, "$hashCode0", function() { return nms_NBTTagInt_hashCode(this); }], -nms_NBTTagLong, "NBTTagLong", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagLong_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagLong_load(this, var_1); }, "$getId", function() { return nms_NBTTagLong_getId(this); }, "$toString", function() { return nms_NBTTagLong_toString(this); }, "$copy", function() { return nms_NBTTagLong_copy(this); }, "$equals", function(var_1) { return nms_NBTTagLong_equals(this, var_1); }, "$hashCode0", function() { return nms_NBTTagLong_hashCode(this); -}], -nms_NBTTagFloat, "NBTTagFloat", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagFloat_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagFloat_load(this, var_1); }, "$getId", function() { return nms_NBTTagFloat_getId(this); }, "$toString", function() { return nms_NBTTagFloat_toString(this); }, "$copy", function() { return nms_NBTTagFloat_copy(this); }, "$equals", function(var_1) { return nms_NBTTagFloat_equals(this, var_1); }, "$hashCode0", function() { return nms_NBTTagFloat_hashCode(this); -}], -nms_NBTTagDouble, "NBTTagDouble", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagDouble_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagDouble_load(this, var_1); }, "$getId", function() { return nms_NBTTagDouble_getId(this); }, "$toString", function() { return nms_NBTTagDouble_toString(this); }, "$copy", function() { return nms_NBTTagDouble_copy(this); }, "$equals", function(var_1) { return nms_NBTTagDouble_equals(this, var_1); }, "$hashCode0", function() { return nms_NBTTagDouble_hashCode(this); -}], -nms_NBTTagByteArray, "NBTTagByteArray", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagByteArray_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagByteArray_load(this, var_1); }, "$getId", function() { return nms_NBTTagByteArray_getId(this); }, "$toString", function() { return nms_NBTTagByteArray_toString(this); }, "$copy", function() { return nms_NBTTagByteArray_copy(this); }, "$equals", function(var_1) { return nms_NBTTagByteArray_equals(this, var_1); }, "$hashCode0", function() -{ return nms_NBTTagByteArray_hashCode(this); }], -nms_NBTTagString, "NBTTagString", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagString_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagString_load(this, var_1); }, "$getId", function() { return nms_NBTTagString_getId(this); }, "$toString", function() { return nms_NBTTagString_toString(this); }, "$copy", function() { return nms_NBTTagString_copy(this); }, "$equals", function(var_1) { return nms_NBTTagString_equals(this, var_1); }, "$hashCode0", function() { return nms_NBTTagString_hashCode(this); -}], -nms_NBTTagIntArray, "NBTTagIntArray", 24, nms_NBTBase, [], 0, 3, 0, ["$write1", function(var_1) { nms_NBTTagIntArray_write(this, var_1); }, "$load1", function(var_1) { nms_NBTTagIntArray_load(this, var_1); }, "$getId", function() { return nms_NBTTagIntArray_getId(this); }, "$toString", function() { return nms_NBTTagIntArray_toString(this); }, "$copy", function() { return nms_NBTTagIntArray_copy(this); }, "$equals", function(var_1) { return nms_NBTTagIntArray_equals(this, var_1); }, "$hashCode0", function() { -return nms_NBTTagIntArray_hashCode(this); }], -otp_PlatformQueue, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, -jl_Object$monitorExit$lambda$_8_0, 0, jl_Object, [otp_PlatformRunnable], 0, 3, 0, ["$run", function() { jl_Object$monitorExit$lambda$_8_0_run(this); }], -jl_Readable, 0, jl_Object, [], 3, 3, 0, 0, -jn_CharBuffer, 0, jn_Buffer, [jl_Comparable, jl_Appendable, jl_CharSequence, jl_Readable], 1, 3, 0, 0, -cjj_GZIPException, "GZIPException", 6, ji_IOException, [], 0, 3, 0, 0, -jl_CloneNotSupportedException, "CloneNotSupportedException", 15, jl_Exception, [], 0, 3, 0, 0, -jl_Enum, "Enum", 15, jl_Object, [jl_Comparable, ji_Serializable], 1, 3, 0, ["$toString", function() { return jl_Enum_toString(this); }, "$equals", function(var_1) { return jl_Enum_equals(this, var_1); }, "$hashCode0", function() { return jl_Enum_hashCode(this); }, "$compareTo4", function(var_1) { return jl_Enum_compareTo0(this, var_1); }], -nle_BaseNCodec$CodecPolicy, 0, jl_Enum, [], 12, 0, 0, 0, -nle_TextureLocation, "TextureLocation", 26, jl_Object, [], 0, 3, 0, 0, -jl_Object$monitorEnterWait$lambda$_6_0, 0, jl_Object, [otp_PlatformRunnable], 0, 3, 0, 0]); -$rt_metadata([cjj_Checksum, 0, jl_Object, [], 3, 0, 0, 0, -cjj_Adler32, 0, jl_Object, [cjj_Checksum], 4, 3, 0, ["$reset0", function(var_1) { cjj_Adler32_reset(this, var_1); }, "$reset", function() { cjj_Adler32_reset0(this); }, "$getValue0", function() { return cjj_Adler32_getValue(this); }, "$update", function(var_1, var_2, var_3) { cjj_Adler32_update(this, var_1, var_2, var_3); }], -jl_NullPointerException, "NullPointerException", 15, jl_RuntimeException, [], 0, 3, 0, 0, -jl_IndexOutOfBoundsException, "IndexOutOfBoundsException", 15, jl_RuntimeException, [], 0, 3, 0, 0, -jlr_Array, 0, jl_Object, [], 4, 3, 0, 0, -jl_ArrayStoreException, "ArrayStoreException", 15, jl_RuntimeException, [], 0, 3, 0, 0, -jl_UnsupportedOperationException, "UnsupportedOperationException", 15, jl_RuntimeException, [], 0, 3, 0, 0, -jn_ReadOnlyBufferException, "ReadOnlyBufferException", 10, jl_UnsupportedOperationException, [], 0, 3, 0, 0, -jn_BufferOverflowException, "BufferOverflowException", 10, jl_RuntimeException, [], 0, 3, 0, 0, -jn_BufferUnderflowException, "BufferUnderflowException", 10, jl_RuntimeException, [], 0, 3, 0, 0, -ju_Map$Entry, 0, jl_Object, [], 3, 3, 0, 0, -ju_MapEntry, 0, jl_Object, [ju_Map$Entry, jl_Cloneable], 0, 0, 0, ["$equals", function(var_1) { return ju_MapEntry_equals(this, var_1); }, "$getKey", function() { return ju_MapEntry_getKey(this); }, "$getValue", function() { return ju_MapEntry_getValue(this); }, "$hashCode0", function() { return ju_MapEntry_hashCode(this); }, "$toString", function() { return ju_MapEntry_toString(this); }], -ju_HashMap$HashEntry, "HashMap$HashEntry", 8, ju_MapEntry, [], 0, 0, 0, 0, -jl_StringIndexOutOfBoundsException, "StringIndexOutOfBoundsException", 15, jl_IndexOutOfBoundsException, [], 0, 3, 0, 0, -ji_EOFException, "EOFException", 13, ji_IOException, [], 0, 3, 0, 0, -jl_VirtualMachineError, 0, jl_Error, [], 0, 3, 0, 0, -jl_OutOfMemoryError, "OutOfMemoryError", 15, jl_VirtualMachineError, [], 0, 3, 0, 0, -nms_GuiMemoryErrorScreen, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { nms_GuiMemoryErrorScreen_initGui(this); }, "$actionPerformed", function(var_1) { nms_GuiMemoryErrorScreen_actionPerformed(this, var_1); }, "$keyTyped", function(var_1, var_2) { nms_GuiMemoryErrorScreen_keyTyped(this, var_1, var_2); }, "$drawScreen", function(var_1, var_2, var_3) { nms_GuiMemoryErrorScreen_drawScreen(this, var_1, var_2, var_3); }], -cbpu_ByteHandler, 0, jl_Object, [], 0, 3, 0, 0, -cjj_Inflate, 0, jl_Object, [], 4, 0, 0, 0, -jl_ConsoleOutputStreamStderr, 0, ji_OutputStream, [], 0, 0, 0, ["$write0", function(var_1) { jl_ConsoleOutputStreamStderr_write(this, var_1); }], -nms_AxisAlignedBB, "AxisAlignedBB", 24, jl_Object, [], 0, 3, 0, ["$toString", function() { return nms_AxisAlignedBB_toString(this); }], -nms_GameSettings, 0, jl_Object, [], 0, 3, 0, 0, -nms_RenderBlocks, 0, jl_Object, [], 0, 3, 0, 0, -nms_EntityRenderer, 0, jl_Object, [], 0, 3, 0, 0, -nms_RenderEngine, 0, jl_Object, [], 0, 3, 0, 0, -cbpd_IDATManager, 0, ju_ArrayList, [], 0, 3, 0, 0, -cbpc_ChunkType, 0, jl_Enum, [], 9, 3, 0, 0, -jl_Math, 0, jl_Object, [], 4, 3, 0, 0, -jnc_CodingErrorAction, 0, jl_Object, [], 0, 3, 0, 0, -nms_AABBPool, 0, jl_Object, [], 0, 3, 0, 0, -nms_IBlockAccess, 0, jl_Object, [], 3, 3, 0, 0, -nms_World, 0, jl_Object, [nms_IBlockAccess], 1, 3, 0, ["$getBiomeGenForCoords", function(var_1, var_2) { return nms_World_getBiomeGenForCoords(this, var_1, var_2); }, "$getBlockId", function(var_1, var_2, var_3) { return nms_World_getBlockId(this, var_1, var_2, var_3); }, "$isAirBlock", function(var_1, var_2, var_3) { return nms_World_isAirBlock(this, var_1, var_2, var_3); }, "$getBlockMaterial", function(var_1, var_2, var_3) { return nms_World_getBlockMaterial(this, var_1, var_2, var_3); }, "$getBlockMetadata", -function(var_1, var_2, var_3) { return nms_World_getBlockMetadata(this, var_1, var_2, var_3); }, "$getLightBrightnessForSkyBlocks", function(var_1, var_2, var_3, var_4) { return nms_World_getLightBrightnessForSkyBlocks(this, var_1, var_2, var_3, var_4); }, "$getBrightness0", function(var_1, var_2, var_3, var_4) { return nms_World_getBrightness(this, var_1, var_2, var_3, var_4); }, "$getLightBrightness", function(var_1, var_2, var_3) { return nms_World_getLightBrightness(this, var_1, var_2, var_3); }, "$getBlockTileEntity", -function(var_1, var_2, var_3) { return nms_World_getBlockTileEntity(this, var_1, var_2, var_3); }, "$isBlockOpaqueCube", function(var_1, var_2, var_3) { return nms_World_isBlockOpaqueCube(this, var_1, var_2, var_3); }, "$isBlockNormalCube", function(var_1, var_2, var_3) { return nms_World_isBlockNormalCube(this, var_1, var_2, var_3); }, "$doesBlockHaveSolidTopSurface", function(var_1, var_2, var_3) { return nms_World_doesBlockHaveSolidTopSurface(this, var_1, var_2, var_3); }, "$isBlockProvidingPowerTo", function(var_1, -var_2, var_3, var_4) { return nms_World_isBlockProvidingPowerTo(this, var_1, var_2, var_3, var_4); }, "$getHeight0", function() { return nms_World_getHeight(this); }, "$getWorldVec3Pool", function() { return nms_World_getWorldVec3Pool(this); }], -nms_Vec3Pool, 0, jl_Object, [], 0, 3, 0, 0, -nms_Entity, "Entity", 24, jl_Object, [], 1, 3, 0, ["$equals", function(var_1) { return nms_Entity_equals(this, var_1); }, "$hashCode0", function() { return nms_Entity_hashCode(this); }, "$setDead", function() { nms_Entity_setDead(this); }, "$onUpdate", function() { nms_Entity_onUpdate(this); }, "$onEntityUpdate", function() { nms_Entity_onEntityUpdate(this); }, "$kill", function() { nms_Entity_kill(this); }, "$moveEntity", function(var_1, var_2, var_3) { nms_Entity_moveEntity(this, var_1, var_2, var_3); }, "$playStepSound", -function(var_1, var_2, var_3, var_4) { nms_Entity_playStepSound(this, var_1, var_2, var_3, var_4); }, "$playSound1", function(var_1, var_2, var_3) { nms_Entity_playSound(this, var_1, var_2, var_3); }, "$canTriggerWalking", function() { return nms_Entity_canTriggerWalking(this); }, "$updateFallState", function(var_1, var_2) { nms_Entity_updateFallState(this, var_1, var_2); }, "$getBoundingBox", function() { return nms_Entity_getBoundingBox(this); }, "$dealFireDamage", function(var_1) { nms_Entity_dealFireDamage(this, -var_1); }, "$fall", function(var_1) { nms_Entity_fall(this, var_1); }, "$isInWater", function() { return nms_Entity_isInWater(this); }, "$handleWaterMovement", function() { return nms_Entity_handleWaterMovement(this); }, "$getEyeHeight", function() { return nms_Entity_getEyeHeight(this); }, "$handleLavaMovement", function() { return nms_Entity_handleLavaMovement(this); }, "$getBrightnessForRender", function(var_1) { return nms_Entity_getBrightnessForRender(this, var_1); }, "$getBrightness", function(var_1) { -return nms_Entity_getBrightness(this, var_1); }, "$setWorld", function(var_1) { nms_Entity_setWorld(this, var_1); }, "$onCollideWithPlayer", function(var_1) { nms_Entity_onCollideWithPlayer(this, var_1); }, "$applyEntityCollision", function(var_1) { nms_Entity_applyEntityCollision(this, var_1); }, "$addVelocity", function(var_1, var_2, var_3) { nms_Entity_addVelocity(this, var_1, var_2, var_3); }, "$attackEntityFrom", function(var_1, var_2) { return nms_Entity_attackEntityFrom(this, var_1, var_2); }, "$canBeCollidedWith", -function() { return nms_Entity_canBeCollidedWith(this); }, "$canBePushed", function() { return nms_Entity_canBePushed(this); }, "$addToPlayerScore", function(var_1, var_2) { nms_Entity_addToPlayerScore(this, var_1, var_2); }, "$isInRangeToRenderVec3D", function(var_1) { return nms_Entity_isInRangeToRenderVec3D(this, var_1); }, "$isInRangeToRenderDist", function(var_1) { return nms_Entity_isInRangeToRenderDist(this, var_1); }, "$getShadowSize", function() { return nms_Entity_getShadowSize(this); }, "$isEntityAlive", -function() { return nms_Entity_isEntityAlive(this); }, "$isEntityInsideOpaqueBlock", function() { return nms_Entity_isEntityInsideOpaqueBlock(this); }, "$interact", function(var_1) { return nms_Entity_interact(this, var_1); }, "$getCollisionBox", function(var_1) { return nms_Entity_getCollisionBox(this, var_1); }, "$updateRidden", function() { nms_Entity_updateRidden(this); }, "$updateRiderPosition", function() { nms_Entity_updateRiderPosition(this); }, "$getYOffset", function() { return nms_Entity_getYOffset(this); -}, "$getMountedYOffset", function() { return nms_Entity_getMountedYOffset(this); }, "$mountEntity", function(var_1) { nms_Entity_mountEntity(this, var_1); }, "$setPositionAndRotation2", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_Entity_setPositionAndRotation2(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$getCollisionBorderSize", function() { return nms_Entity_getCollisionBorderSize(this); }, "$getLookVec", function() { return nms_Entity_getLookVec(this); }, "$getPortalCooldown", function() -{ return nms_Entity_getPortalCooldown(this); }, "$setVelocity", function(var_1, var_2, var_3) { nms_Entity_setVelocity(this, var_1, var_2, var_3); }, "$handleHealthUpdate", function(var_1) { nms_Entity_handleHealthUpdate(this, var_1); }, "$performHurtAnimation", function() { nms_Entity_performHurtAnimation(this); }, "$updateCloak", function() { nms_Entity_updateCloak(this); }, "$getLastActiveItems", function() { return nms_Entity_getLastActiveItems(this); }, "$setCurrentItemOrArmor", function(var_1, var_2) { -nms_Entity_setCurrentItemOrArmor(this, var_1, var_2); }, "$isBurning", function() { return nms_Entity_isBurning(this); }, "$isSneaking", function() { return nms_Entity_isSneaking(this); }, "$func_98034_c", function(var_1) { return nms_Entity_func_98034_c(this, var_1); }, "$onStruckByLightning", function(var_1) { nms_Entity_onStruckByLightning(this, var_1); }, "$onKillEntity", function(var_1) { nms_Entity_onKillEntity(this, var_1); }, "$setInWeb", function() { nms_Entity_setInWeb(this); }, "$getEntityName", function() -{ return nms_Entity_getEntityName(this); }, "$getParts", function() { return nms_Entity_getParts(this); }, "$isEntityEqual", function(var_1) { return nms_Entity_isEntityEqual(this, var_1); }, "$setRotationYawHead", function(var_1) { nms_Entity_setRotationYawHead(this, var_1); }, "$canAttackWithItem", function() { return nms_Entity_canAttackWithItem(this); }, "$func_85031_j", function(var_1) { return nms_Entity_func_85031_j(this, var_1); }, "$toString", function() { return nms_Entity_toString(this); }, "$travelToDimension", -function(var_1) { nms_Entity_travelToDimension(this, var_1); }, "$func_82146_a", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_Entity_func_82146_a(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$func_96091_a", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { return nms_Entity_func_96091_a(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$doesEntityNotTriggerPressurePlate", function() { return nms_Entity_doesEntityNotTriggerPressurePlate(this); }, "$canRenderOnFire", -function() { return nms_Entity_canRenderOnFire(this); }, "$func_96092_aw", function() { return nms_Entity_func_96092_aw(this); }, "$getTranslatedEntityName", function() { return nms_Entity_getTranslatedEntityName(this); }], -nms_EntityLiving, "EntityLiving", 24, nms_Entity, [], 1, 3, 0, ["$setRotationYawHead", function(var_1) { nms_EntityLiving_setRotationYawHead(this, var_1); }, "$updateFallState", function(var_1, var_2) { nms_EntityLiving_updateFallState(this, var_1, var_2); }, "$setRevengeTarget", function(var_1) { nms_EntityLiving_setRevengeTarget(this, var_1); }, "$entityInit", function() { nms_EntityLiving_entityInit(this); }, "$canBeCollidedWith", function() { return nms_EntityLiving_canBeCollidedWith(this); }, "$canBePushed", -function() { return nms_EntityLiving_canBePushed(this); }, "$getEyeHeight", function() { return nms_EntityLiving_getEyeHeight(this); }, "$getTalkInterval", function() { return nms_EntityLiving_getTalkInterval(this); }, "$onEntityUpdate", function() { nms_EntityLiving_onEntityUpdate(this); }, "$onDeathUpdate", function() { nms_EntityLiving_onDeathUpdate(this); }, "$decreaseAirSupply", function(var_1) { return nms_EntityLiving_decreaseAirSupply(this, var_1); }, "$getExperiencePoints", function(var_1) { return nms_EntityLiving_getExperiencePoints(this, -var_1); }, "$isPlayer", function() { return nms_EntityLiving_isPlayer(this); }, "$updateRidden", function() { nms_EntityLiving_updateRidden(this); }, "$setPositionAndRotation2", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_EntityLiving_setPositionAndRotation2(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onUpdate", function() { nms_EntityLiving_onUpdate(this); }, "$heal", function(var_1) { nms_EntityLiving_heal(this, var_1); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityLiving_attackEntityFrom(this, -var_1, var_2); }, "$getSoundPitch", function() { return nms_EntityLiving_getSoundPitch(this); }, "$performHurtAnimation", function() { nms_EntityLiving_performHurtAnimation(this); }, "$getTotalArmorValue", function() { return nms_EntityLiving_getTotalArmorValue(this); }, "$damageArmor", function(var_1) { nms_EntityLiving_damageArmor(this, var_1); }, "$applyPotionDamageCalculations", function(var_1, var_2) { return nms_EntityLiving_applyPotionDamageCalculations(this, var_1, var_2); }, "$damageEntity", function(var_1, -var_2) { nms_EntityLiving_damageEntity(this, var_1, var_2); }, "$getSoundVolume", function() { return nms_EntityLiving_getSoundVolume(this); }, "$getLivingSound", function() { return nms_EntityLiving_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityLiving_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityLiving_getDeathSound(this); }, "$onDeath", function(var_1) { nms_EntityLiving_onDeath(this, var_1); }, "$dropRareDrop", function(var_1) { nms_EntityLiving_dropRareDrop(this, -var_1); }, "$dropFewItems", function(var_1, var_2) { nms_EntityLiving_dropFewItems(this, var_1, var_2); }, "$getDropItemId", function() { return nms_EntityLiving_getDropItemId(this); }, "$fall", function(var_1) { nms_EntityLiving_fall(this, var_1); }, "$moveEntityWithHeading", function(var_1, var_2) { nms_EntityLiving_moveEntityWithHeading(this, var_1, var_2); }, "$isOnLadder", function() { return nms_EntityLiving_isOnLadder(this); }, "$isEntityAlive", function() { return nms_EntityLiving_isEntityAlive(this); -}, "$canBreatheUnderwater", function() { return nms_EntityLiving_canBreatheUnderwater(this); }, "$onLivingUpdate", function() { nms_EntityLiving_onLivingUpdate(this); }, "$func_85033_bc", function() { nms_EntityLiving_func_85033_bc(this); }, "$collideWithEntity", function(var_1) { nms_EntityLiving_collideWithEntity(this, var_1); }, "$isAIEnabled", function() { return nms_EntityLiving_isAIEnabled(this); }, "$isClientWorld", function() { return nms_EntityLiving_isClientWorld(this); }, "$isMovementBlocked", function() -{ return nms_EntityLiving_isMovementBlocked(this); }, "$jump0", function() { nms_EntityLiving_jump(this); }, "$canDespawn", function() { return nms_EntityLiving_canDespawn(this); }, "$despawnEntity", function() { nms_EntityLiving_despawnEntity(this); }, "$updateAITasks", function() { nms_EntityLiving_updateAITasks(this); }, "$updateAITick", function() { nms_EntityLiving_updateAITick(this); }, "$updateEntityActionState", function() { nms_EntityLiving_updateEntityActionState(this); }, "$getVerticalFaceSpeed", -function() { return nms_EntityLiving_getVerticalFaceSpeed(this); }, "$kill", function() { nms_EntityLiving_kill(this); }, "$getLookVec", function() { return nms_EntityLiving_getLookVec(this); }, "$handleHealthUpdate", function(var_1) { nms_EntityLiving_handleHealthUpdate(this, var_1); }, "$isPlayerSleeping", function() { return nms_EntityLiving_isPlayerSleeping(this); }, "$getItemIcon", function(var_1, var_2) { return nms_EntityLiving_getItemIcon(this, var_1, var_2); }, "$addPotionEffect", function(var_1) { -nms_EntityLiving_addPotionEffect(this, var_1); }, "$isPotionApplicable", function(var_1) { return nms_EntityLiving_isPotionApplicable(this, var_1); }, "$getSpeedModifier", function() { return nms_EntityLiving_getSpeedModifier(this); }, "$isChild", function() { return nms_EntityLiving_isChild(this); }, "$getCreatureAttribute", function() { return nms_EntityLiving_getCreatureAttribute(this); }, "$func_82143_as", function() { return nms_EntityLiving_func_82143_as(this); }, "$getHeldItem", function() { return nms_EntityLiving_getHeldItem(this); -}, "$getCurrentItemOrArmor", function(var_1) { return nms_EntityLiving_getCurrentItemOrArmor(this, var_1); }, "$getCurrentArmor", function(var_1) { return nms_EntityLiving_getCurrentArmor(this, var_1); }, "$setCurrentItemOrArmor", function(var_1, var_2) { nms_EntityLiving_setCurrentItemOrArmor(this, var_1, var_2); }, "$getLastActiveItems", function() { return nms_EntityLiving_getLastActiveItems(this); }, "$onItemPickup", function(var_1, var_2) { nms_EntityLiving_onItemPickup(this, var_1, var_2); }, "$initCreature", -function() { nms_EntityLiving_initCreature(this); }, "$swingItem", function() { nms_EntityLiving_swingItem(this); }, "$getEntityName", function() { return nms_EntityLiving_getEntityName(this); }, "$func_94062_bN", function() { return nms_EntityLiving_func_94062_bN(this); }, "$func_94059_bO", function() { return nms_EntityLiving_func_94059_bO(this); }, "$canPickUpLoot0", function() { return nms_EntityLiving_canPickUpLoot(this); }], -nms_ICommandSender, 0, jl_Object, [], 3, 3, 0, 0, -nms_EntityPlayer, "EntityPlayer", 24, nms_EntityLiving, [nms_ICommandSender], 1, 3, 0, ["$getBrightnessForRender", function(var_1) { return nms_EntityPlayer_getBrightnessForRender(this, var_1); }, "$getMaxHealth", function() { return nms_EntityPlayer_getMaxHealth(this); }, "$entityInit", function() { nms_EntityPlayer_entityInit(this); }, "$getPortalCooldown", function() { return nms_EntityPlayer_getPortalCooldown(this); }, "$playSound1", function(var_1, var_2, var_3) { nms_EntityPlayer_playSound(this, var_1, -var_2, var_3); }, "$handleHealthUpdate", function(var_1) { nms_EntityPlayer_handleHealthUpdate(this, var_1); }, "$isMovementBlocked", function() { return nms_EntityPlayer_isMovementBlocked(this); }, "$closeScreen", function() { nms_EntityPlayer_closeScreen(this); }, "$mountEntity", function(var_1) { nms_EntityPlayer_mountEntity(this, var_1); }, "$updateRidden", function() { nms_EntityPlayer_updateRidden(this); }, "$updateEntityActionState", function() { nms_EntityPlayer_updateEntityActionState(this); }, "$onDeath", -function(var_1) { nms_EntityPlayer_onDeath(this, var_1); }, "$addToPlayerScore", function(var_1, var_2) { nms_EntityPlayer_addToPlayerScore(this, var_1, var_2); }, "$joinEntityItemWithWorld", function(var_1) { nms_EntityPlayer_joinEntityItemWithWorld(this, var_1); }, "$getEyeHeight", function() { return nms_EntityPlayer_getEyeHeight(this); }, "$resetHeight", function() { nms_EntityPlayer_resetHeight(this); }, "$damageArmor", function(var_1) { nms_EntityPlayer_damageArmor(this, var_1); }, "$getTotalArmorValue", -function() { return nms_EntityPlayer_getTotalArmorValue(this); }, "$damageEntity", function(var_1, var_2) { nms_EntityPlayer_damageEntity(this, var_1, var_2); }, "$getYOffset", function() { return nms_EntityPlayer_getYOffset(this); }, "$setDead", function() { nms_EntityPlayer_setDead(this); }, "$isEntityInsideOpaqueBlock", function() { return nms_EntityPlayer_isEntityInsideOpaqueBlock(this); }, "$func_71066_bF", function() { return nms_EntityPlayer_func_71066_bF(this); }, "$isPlayerSleeping", function() { return nms_EntityPlayer_isPlayerSleeping(this); -}, "$addStat", function(var_1, var_2) { nms_EntityPlayer_addStat(this, var_1, var_2); }, "$jump0", function() { nms_EntityPlayer_jump(this); }, "$moveEntityWithHeading", function(var_1, var_2) { nms_EntityPlayer_moveEntityWithHeading(this, var_1, var_2); }, "$fall", function(var_1) { nms_EntityPlayer_fall(this, var_1); }, "$onKillEntity", function(var_1) { nms_EntityPlayer_onKillEntity(this, var_1); }, "$setInWeb", function() { nms_EntityPlayer_setInWeb(this); }, "$getItemIcon", function(var_1, var_2) { return nms_EntityPlayer_getItemIcon(this, -var_1, var_2); }, "$getCurrentArmor", function(var_1) { return nms_EntityPlayer_getCurrentArmor(this, var_1); }, "$getExperiencePoints", function(var_1) { return nms_EntityPlayer_getExperiencePoints(this, var_1); }, "$isPlayer", function() { return nms_EntityPlayer_isPlayer(this); }, "$getEntityName", function() { return nms_EntityPlayer_getEntityName(this); }, "$func_94062_bN", function() { return nms_EntityPlayer_func_94062_bN(this); }, "$func_94059_bO", function() { return nms_EntityPlayer_func_94059_bO(this); -}, "$canPickUpLoot0", function() { return nms_EntityPlayer_canPickUpLoot(this); }, "$canTriggerWalking", function() { return nms_EntityPlayer_canTriggerWalking(this); }, "$getCurrentItemOrArmor", function(var_1) { return nms_EntityPlayer_getCurrentItemOrArmor(this, var_1); }, "$getHeldItem", function() { return nms_EntityPlayer_getHeldItem(this); }, "$setCurrentItemOrArmor", function(var_1, var_2) { nms_EntityPlayer_setCurrentItemOrArmor(this, var_1, var_2); }, "$func_98034_c", function(var_1) { return nms_EntityPlayer_func_98034_c(this, -var_1); }, "$getLastActiveItems", function() { return nms_EntityPlayer_getLastActiveItems(this); }, "$func_96092_aw", function() { return nms_EntityPlayer_func_96092_aw(this); }, "$getTranslatedEntityName", function() { return nms_EntityPlayer_getTranslatedEntityName(this); }], -nlea_Tessellator, 0, jl_Object, [], 0, 3, nlea_Tessellator_$callClinit, 0, -jt_Format, 0, jl_Object, [ji_Serializable, jl_Cloneable], 1, 3, 0, 0, -jt_NumberFormat, 0, jt_Format, [], 1, 3, 0, 0, -jt_DecimalFormat, 0, jt_NumberFormat, [], 0, 3, 0, 0, -nms_ProfilerResult, "ProfilerResult", 24, jl_Object, [jl_Comparable], 4, 3, 0, ["$compareTo4", function(var_1) { return nms_ProfilerResult_compareTo(this, var_1); }], -nms_MathHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_GuiAchievement, 0, nms_Gui, [], 0, 3, 0, 0, -nms_ScaledResolution, 0, jl_Object, [], 0, 3, 0, 0, -nms_GuiMainMenu, 0, nms_GuiScreen, [], 0, 3, 0, ["$handleMouseInput", function() { nms_GuiMainMenu_handleMouseInput(this); }, "$keyTyped", function(var_1, var_2) { nms_GuiMainMenu_keyTyped(this, var_1, var_2); }, "$initGui", function() { nms_GuiMainMenu_initGui(this); }, "$mouseClicked", function(var_1, var_2, var_3) { nms_GuiMainMenu_mouseClicked(this, var_1, var_2, var_3); }, "$actionPerformed", function(var_1) { nms_GuiMainMenu_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) -{ nms_GuiMainMenu_drawScreen(this, var_1, var_2, var_3); }, "$updateScreen", function() { nms_GuiMainMenu_updateScreen(this); }], -cbpu_CRC, 0, jl_Object, [], 0, 3, 0, 0, -jn_CharBufferImpl, 0, jn_CharBuffer, [], 1, 0, 0, 0, -jn_CharBufferOverArray, 0, jn_CharBufferImpl, [], 0, 0, 0, 0]); -$rt_metadata([jnc_CharsetEncoder, 0, jl_Object, [], 1, 3, 0, 0, -jnc_CoderResult, 0, jl_Object, [], 0, 3, 0, 0, -jl_ThreadLocal, 0, jl_Object, [], 0, 3, 0, 0, -nms_AABBLocalPool, 0, jl_ThreadLocal, [], 4, 0, 0, 0, -jt_DecimalFormatSymbols, 0, jl_Object, [jl_Cloneable], 0, 3, 0, 0, -nms_FontRenderer, 0, jl_Object, [], 0, 3, 0, 0, -nms_EnumOS, 0, jl_Enum, [], 12, 3, 0, 0, -cbpc_ChunkType$1, 0, cbpc_ChunkType, [], 12, 0, 0, ["$apply", function(var_1, var_2, var_3, var_4, var_5) { cbpc_ChunkType$1_apply(this, var_1, var_2, var_3, var_4, var_5); }], -cbpc_ChunkType$2, 0, cbpc_ChunkType, [], 12, 0, 0, ["$apply", function(var_1, var_2, var_3, var_4, var_5) { cbpc_ChunkType$2_apply(this, var_1, var_2, var_3, var_4, var_5); }], -cbpc_ChunkType$3, 0, cbpc_ChunkType, [], 12, 0, 0, ["$apply", function(var_1, var_2, var_3, var_4, var_5) { cbpc_ChunkType$3_apply(this, var_1, var_2, var_3, var_4, var_5); }], -cbpc_ChunkType$4, 0, cbpc_ChunkType, [], 12, 0, 0, ["$apply", function(var_1, var_2, var_3, var_4, var_5) { cbpc_ChunkType$4_apply(this, var_1, var_2, var_3, var_4, var_5); }], -ju_Locale, 0, jl_Object, [jl_Cloneable, ji_Serializable], 4, 3, 0, 0, -jt_DecimalFormat$FormatField, "DecimalFormat$FormatField", 14, jl_Object, [], 3, 0, 0, 0, -jt_DecimalFormat$TextField, "DecimalFormat$TextField", 14, jl_Object, [jt_DecimalFormat$FormatField], 0, 0, 0, ["$render", function(var_1, var_2) { jt_DecimalFormat$TextField_render(this, var_1, var_2); }, "$equals", function(var_1) { return jt_DecimalFormat$TextField_equals(this, var_1); }, "$hashCode0", function() { return jt_DecimalFormat$TextField_hashCode(this); }], -jm_RoundingMode, 0, jl_Enum, [], 12, 3, 0, 0, -ju_Currency, "Currency", 8, jl_Object, [ji_Serializable], 4, 3, 0, ["$toString", function() { return ju_Currency_toString(this); }], -otciu_CLDRHelper, 0, jl_Object, [], 4, 3, 0, 0, -otpp_ResourceAccessor, 0, jl_Object, [], 4, 0, 0, 0, -otcic_CurrencyHelper, 0, jl_Object, [], 4, 3, 0, 0, -ju_Dictionary, 0, jl_Object, [], 1, 3, 0, 0, -ju_Hashtable, 0, ju_Dictionary, [ju_Map, jl_Cloneable, ji_Serializable], 0, 3, 0, 0, -ju_Properties, 0, ju_Hashtable, [], 0, 3, 0, 0, -ju_Enumeration, 0, jl_Object, [], 3, 3, 0, 0, -ju_Hashtable$1, 0, jl_Object, [ju_Enumeration], 4, 0, 0, 0, -ju_Iterator, 0, jl_Object, [], 3, 3, 0, 0, -ju_Hashtable$2, 0, jl_Object, [ju_Iterator], 4, 0, 0, 0, -ju_Hashtable$Entry, 0, ju_MapEntry, [], 0, 0, 0, 0, -jn_IntBufferOverByteBuffer, 0, jn_IntBufferImpl, [], 1, 0, 0, ["$readOnly2", function() { return jn_IntBufferOverByteBuffer_readOnly(this); }], -jn_IntBufferOverByteBufferLittleEndian, 0, jn_IntBufferOverByteBuffer, [], 0, 0, 0, ["$getElement", function(var_1) { return jn_IntBufferOverByteBufferLittleEndian_getElement(this, var_1); }, "$putElement", function(var_1, var_2) { jn_IntBufferOverByteBufferLittleEndian_putElement(this, var_1, var_2); }], -jn_IntBufferOverByteBufferBigEndian, 0, jn_IntBufferOverByteBuffer, [], 0, 0, 0, ["$getElement", function(var_1) { return jn_IntBufferOverByteBufferBigEndian_getElement(this, var_1); }, "$putElement", function(var_1, var_2) { jn_IntBufferOverByteBufferBigEndian_putElement(this, var_1, var_2); }], -cbpc_IEND, 0, cbpc_Chunk, [], 0, 3, 0, 0, -cbpc_PLTE, 0, cbpc_Chunk, [], 0, 3, 0, 0, -cbpc_IDAT, "IDAT", 3, cbpc_Chunk, [], 0, 3, 0, 0, -jl_Double, "Double", 15, jl_Number, [jl_Comparable], 0, 3, 0, ["$intValue", function() { return jl_Double_intValue(this); }, "$toString", function() { return jl_Double_toString(this); }, "$hashCode0", function() { return jl_Double_hashCode(this); }], -nms_OpenGlHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_TextureManager, 0, jl_Object, [], 0, 3, 0, 0, -nms_TexturePackList, 0, jl_Object, [], 0, 3, nms_TexturePackList_$callClinit, 0, -nms_ChatAllowedCharacters, 0, jl_Object, [], 0, 3, 0, 0, -nms_ColorizerGrass, 0, jl_Object, [], 0, 3, 0, 0, -nms_ColorizerFoliage, 0, jl_Object, [], 0, 3, 0, 0, -nms_RenderManager, 0, jl_Object, [], 0, 3, 0, 0, -nms_ItemRenderer, 0, jl_Object, [], 0, 3, 0, 0, -nms_AchievementList, 0, jl_Object, [], 0, 3, nms_AchievementList_$callClinit, 0, -nms_IStatStringFormat, 0, jl_Object, [], 3, 3, 0, 0, -nms_StatStringFormatKeyInv, 0, jl_Object, [nms_IStatStringFormat], 0, 3, 0, 0, -nms_MouseHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_IWorldAccess, 0, jl_Object, [], 3, 3, 0, 0, -nms_RenderGlobal, "RenderGlobal", 24, jl_Object, [nms_IWorldAccess], 0, 3, 0, 0, -nms_EffectRenderer, 0, jl_Object, [], 0, 3, 0, 0, -nleg_EffectPipeline, 0, jl_Object, [], 0, 3, 0, 0]); -$rt_metadata([nms_GuiIngame, 0, nms_Gui, [], 0, 3, 0, 0, -nms_IProgressUpdate, 0, jl_Object, [], 3, 3, 0, 0, -nms_LoadingScreenRenderer, 0, jl_Object, [nms_IProgressUpdate], 0, 3, 0, 0, -nms_StringTranslate, 0, jl_Object, [], 0, 3, 0, 0, -nms_GuiGameOver, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { nms_GuiGameOver_initGui(this); }, "$keyTyped", function(var_1, var_2) { nms_GuiGameOver_keyTyped(this, var_1, var_2); }, "$actionPerformed", function(var_1) { nms_GuiGameOver_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { nms_GuiGameOver_drawScreen(this, var_1, var_2, var_3); }, "$updateScreen", function() { nms_GuiGameOver_updateScreen(this); }], -nle_BaseNCodec$Context, 0, jl_Object, [], 0, 0, 0, 0, -cjj_InfBlocks, 0, jl_Object, [], 4, 0, 0, 0, -ju_HashMap$2, 0, ju_AbstractCollection, [], 0, 0, 0, ["$size2", function() { return ju_HashMap$2_size(this); }, "$iterator", function() { return ju_HashMap$2_iterator(this); }], -jl_Long, "Long", 15, jl_Number, [jl_Comparable], 0, 3, 0, ["$toString", function() { return jl_Long_toString(this); }, "$hashCode0", function() { return jl_Long_hashCode(this); }, "$equals", function(var_1) { return jl_Long_equals(this, var_1); }, "$compareTo4", function(var_1) { return jl_Long_compareTo0(this, var_1); }], -nle_DefaultSkinRenderer, 0, jl_Object, [], 0, 3, 0, 0, -nle_GuiScreenVoiceChannel, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { nle_GuiScreenVoiceChannel_initGui(this); }, "$onGuiClosed", function() { nle_GuiScreenVoiceChannel_onGuiClosed(this); }, "$drawScreen", function(var_1, var_2, var_3) { nle_GuiScreenVoiceChannel_drawScreen(this, var_1, var_2, var_3); }, "$actionPerformed", function(var_1) { nle_GuiScreenVoiceChannel_actionPerformed(this, var_1); }, "$updateScreen", function() { nle_GuiScreenVoiceChannel_updateScreen(this); }, "$keyTyped", function(var_1, -var_2) { nle_GuiScreenVoiceChannel_keyTyped(this, var_1, var_2); }, "$mouseClicked", function(var_1, var_2, var_3) { nle_GuiScreenVoiceChannel_mouseClicked(this, var_1, var_2, var_3); }], -nms_KeyBinding, "KeyBinding", 24, jl_Object, [], 0, 3, 0, 0, -nms_EntityPlayerSP, "EntityPlayerSP", 24, nms_EntityPlayer, [], 0, 3, 0, ["$moveEntity", function(var_1, var_2, var_3) { nms_EntityPlayerSP_moveEntity(this, var_1, var_2, var_3); }, "$updateEntityActionState", function() { nms_EntityPlayerSP_updateEntityActionState(this); }, "$isClientWorld", function() { return nms_EntityPlayerSP_isClientWorld(this); }, "$onLivingUpdate", function() { nms_EntityPlayerSP_onLivingUpdate(this); }, "$updateCloak", function() { nms_EntityPlayerSP_updateCloak(this); }, "$onItemPickup", -function(var_1, var_2) { nms_EntityPlayerSP_onItemPickup(this, var_1, var_2); }, "$isSneaking", function() { return nms_EntityPlayerSP_isSneaking(this); }, "$getHeldItem", function() { return nms_EntityPlayerSP_getHeldItem(this); }, "$playSound1", function(var_1, var_2, var_3) { nms_EntityPlayerSP_playSound(this, var_1, var_2, var_3); }], -nms_EntityClientPlayerMP, "EntityClientPlayerMP", 24, nms_EntityPlayerSP, [], 0, 3, 0, ["$attackEntityFrom", function(var_1, var_2) { return nms_EntityClientPlayerMP_attackEntityFrom(this, var_1, var_2); }, "$heal", function(var_1) { nms_EntityClientPlayerMP_heal(this, var_1); }, "$onUpdate", function() { nms_EntityClientPlayerMP_onUpdate(this); }, "$joinEntityItemWithWorld", function(var_1) { nms_EntityClientPlayerMP_joinEntityItemWithWorld(this, var_1); }, "$swingItem", function() { nms_EntityClientPlayerMP_swingItem(this); -}, "$damageEntity", function(var_1, var_2) { nms_EntityClientPlayerMP_damageEntity(this, var_1, var_2); }, "$closeScreen", function() { nms_EntityClientPlayerMP_closeScreen(this); }, "$addStat", function(var_1, var_2) { nms_EntityClientPlayerMP_addStat(this, var_1, var_2); }, "$func_71066_bF", function() { return nms_EntityClientPlayerMP_func_71066_bF(this); }], -nms_IInventory, 0, jl_Object, [], 3, 3, 0, 0, -nms_InventoryPlayer, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$decrStackSize", function(var_1, var_2) { return nms_InventoryPlayer_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { nms_InventoryPlayer_setInventorySlotContents(this, var_1, var_2); }, "$getStackInSlot", function(var_1) { return nms_InventoryPlayer_getStackInSlot(this, var_1); }, "$getInventoryStackLimit", function() { return nms_InventoryPlayer_getInventoryStackLimit(this); }, "$onInventoryChanged", -function() { nms_InventoryPlayer_onInventoryChanged(this); }], -nleg_FixedFunctionShader, 0, jl_Object, [], 0, 3, 0, 0, -nms_EnumOptions, 0, jl_Enum, [], 12, 3, 0, 0, -nms_GuiContainer, 0, nms_GuiScreen, [], 1, 3, 0, ["$initGui", function() { nms_GuiContainer_initGui(this); }, "$drawScreen", function(var_1, var_2, var_3) { nms_GuiContainer_drawScreen(this, var_1, var_2, var_3); }, "$mouseClicked", function(var_1, var_2, var_3) { nms_GuiContainer_mouseClicked(this, var_1, var_2, var_3); }, "$func_85041_a", function(var_1, var_2, var_3, var_4) { nms_GuiContainer_func_85041_a(this, var_1, var_2, var_3, var_4); }, "$mouseMovedOrUp", function(var_1, var_2, var_3) { nms_GuiContainer_mouseMovedOrUp(this, -var_1, var_2, var_3); }, "$handleMouseClick", function(var_1, var_2, var_3, var_4) { nms_GuiContainer_handleMouseClick(this, var_1, var_2, var_3, var_4); }, "$keyTyped", function(var_1, var_2) { nms_GuiContainer_keyTyped(this, var_1, var_2); }, "$onGuiClosed", function() { nms_GuiContainer_onGuiClosed(this); }, "$updateScreen", function() { nms_GuiContainer_updateScreen(this); }], -nms_InventoryEffectRenderer, 0, nms_GuiContainer, [], 1, 3, 0, 0, -nms_GuiInventory, 0, nms_InventoryEffectRenderer, [], 0, 3, 0, ["$updateScreen", function() { nms_GuiInventory_updateScreen(this); }, "$initGui", function() { nms_GuiInventory_initGui(this); }, "$drawGuiContainerForegroundLayer", function(var_1, var_2) { nms_GuiInventory_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$drawScreen", function(var_1, var_2, var_3) { nms_GuiInventory_drawScreen(this, var_1, var_2, var_3); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { nms_GuiInventory_drawGuiContainerBackgroundLayer(this, -var_1, var_2, var_3); }, "$actionPerformed", function(var_1) { nms_GuiInventory_actionPerformed(this, var_1); }], -nms_GuiChat, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { nms_GuiChat_initGui(this); }, "$onGuiClosed", function() { nms_GuiChat_onGuiClosed(this); }, "$updateScreen", function() { nms_GuiChat_updateScreen(this); }, "$keyTyped", function(var_1, var_2) { nms_GuiChat_keyTyped(this, var_1, var_2); }, "$handleMouseInput", function() { nms_GuiChat_handleMouseInput(this); }, "$mouseClicked", function(var_1, var_2, var_3) { nms_GuiChat_mouseClicked(this, var_1, var_2, var_3); }, "$confirmClicked", function(var_1, -var_2) { nms_GuiChat_confirmClicked(this, var_1, var_2); }, "$drawScreen", function(var_1, var_2, var_3) { nms_GuiChat_drawScreen(this, var_1, var_2, var_3); }], -nms_WorldClient, 0, nms_World, [], 0, 3, 0, 0, -nms_GuiSleepMP, 0, nms_GuiChat, [], 0, 3, 0, ["$initGui", function() { nms_GuiSleepMP_initGui(this); }, "$keyTyped", function(var_1, var_2) { nms_GuiSleepMP_keyTyped(this, var_1, var_2); }, "$actionPerformed", function(var_1) { nms_GuiSleepMP_actionPerformed(this, var_1); }], -nms_SoundManager$EntitySoundEvent, "SoundManager$EntitySoundEvent", 24, jl_Object, [], 0, 0, 0, 0, -nms_SoundManager$QueuedSoundEvent, "SoundManager$QueuedSoundEvent", 24, jl_Object, [], 0, 0, 0, 0, -jnci_BufferedEncoder, 0, jnc_CharsetEncoder, [], 1, 3, 0, 0, -jnci_UTF8Encoder, 0, jnci_BufferedEncoder, [], 0, 3, 0, 0, -ju_Collections, 0, jl_Object, [], 0, 3, 0, 0, -jl_StringBuffer, 0, jl_AbstractStringBuilder, [jl_Appendable], 0, 3, 0, ["$insert5", function(var_1, var_2, var_3, var_4) { return jl_StringBuffer_insert3(this, var_1, var_2, var_3, var_4); }, "$append12", function(var_1, var_2, var_3) { return jl_StringBuffer_append5(this, var_1, var_2, var_3); }, "$insert6", function(var_1, var_2, var_3, var_4) { return jl_StringBuffer_insert4(this, var_1, var_2, var_3, var_4); }, "$append13", function(var_1, var_2, var_3) { return jl_StringBuffer_append6(this, var_1, var_2, -var_3); }, "$ensureCapacity", function(var_1) { jl_StringBuffer_ensureCapacity(this, var_1); }, "$insert1", function(var_1, var_2) { return jl_StringBuffer_insert5(this, var_1, var_2); }, "$insert", function(var_1, var_2) { return jl_StringBuffer_insert6(this, var_1, var_2); }], -jt_FieldPosition, 0, jl_Object, [], 0, 3, 0, 0, -jl_AssertionError, "AssertionError", 15, jl_Error, [], 0, 3, 0, 0, -jt_DecimalFormatParser, 0, jl_Object, [], 0, 0, 0, 0, -nle_EaglerInflater, 0, jl_Object, [], 0, 3, 0, 0, -cbpu_ReverseFilter, 0, jl_Object, [], 0, 3, 0, 0, -nleg_EaglerAdapterGL30$DisplayList, "EaglerAdapterGL30$DisplayList", 28, jl_Object, [], 0, 0, 0, 0, -nms_IntHashMap, 0, jl_Object, [], 0, 3, 0, 0, -nms_IconRegister, 0, jl_Object, [], 3, 3, 0, 0, -nle_TextureTerrainMap, 0, jl_Object, [nms_IconRegister], 0, 3, nle_TextureTerrainMap_$callClinit, ["$registerIcon", function(var_1) { return nle_TextureTerrainMap_registerIcon(this, var_1); }], -nms_TextureMap, 0, jl_Object, [nms_IconRegister], 0, 3, 0, ["$registerIcon", function(var_1) { return nms_TextureMap_registerIcon(this, var_1); }], -ji_Reader, 0, jl_Object, [ji_Closeable], 1, 3, 0, 0, -ji_BufferedReader, 0, ji_Reader, [], 0, 3, 0, 0, -ji_InputStreamReader, 0, ji_Reader, [], 0, 3, 0, 0, -nms_MouseFilter, 0, jl_Object, [], 0, 3, 0, 0, -nms_EntityCreature, "EntityCreature", 24, nms_EntityLiving, [], 1, 3, 0, ["$updateEntityActionState", function() { nms_EntityCreature_updateEntityActionState(this); }, "$attackEntity0", function(var_1, var_2) { nms_EntityCreature_attackEntity(this, var_1, var_2); }, "$getBlockPathWeight", function(var_1, var_2, var_3) { return nms_EntityCreature_getBlockPathWeight(this, var_1, var_2, var_3); }, "$findPlayerToAttack", function() { return nms_EntityCreature_findPlayerToAttack(this); }, "$getSpeedModifier", function() -{ return nms_EntityCreature_getSpeedModifier(this); }], -nms_IAnimals, 0, jl_Object, [], 3, 3, 0, 0, -nms_IMob, 0, jl_Object, [nms_IAnimals], 3, 3, 0, 0, -nms_EntityMob, "EntityMob", 24, nms_EntityCreature, [nms_IMob], 1, 3, 0, ["$onLivingUpdate", function() { nms_EntityMob_onLivingUpdate(this); }, "$onUpdate", function() { nms_EntityMob_onUpdate(this); }, "$findPlayerToAttack", function() { return nms_EntityMob_findPlayerToAttack(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityMob_attackEntityFrom(this, var_1, var_2); }, "$attackEntityAsMob", function(var_1) { return nms_EntityMob_attackEntityAsMob(this, var_1); }, "$attackEntity0", function(var_1, -var_2) { nms_EntityMob_attackEntity(this, var_1, var_2); }, "$getBlockPathWeight", function(var_1, var_2, var_3) { return nms_EntityMob_getBlockPathWeight(this, var_1, var_2, var_3); }, "$getAttackStrength", function(var_1) { return nms_EntityMob_getAttackStrength(this, var_1); }], -nms_EntitySpider, "EntitySpider", 24, nms_EntityMob, [], 0, 3, 0, ["$entityInit", function() { nms_EntitySpider_entityInit(this); }, "$onUpdate", function() { nms_EntitySpider_onUpdate(this); }, "$getMaxHealth", function() { return nms_EntitySpider_getMaxHealth(this); }, "$getMountedYOffset", function() { return nms_EntitySpider_getMountedYOffset(this); }, "$findPlayerToAttack", function() { return nms_EntitySpider_findPlayerToAttack(this); }, "$getLivingSound", function() { return nms_EntitySpider_getLivingSound(this); -}, "$getHurtSound", function() { return nms_EntitySpider_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntitySpider_getDeathSound(this); }, "$playStepSound", function(var_1, var_2, var_3, var_4) { nms_EntitySpider_playStepSound(this, var_1, var_2, var_3, var_4); }, "$attackEntity0", function(var_1, var_2) { nms_EntitySpider_attackEntity(this, var_1, var_2); }, "$getDropItemId", function() { return nms_EntitySpider_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntitySpider_dropFewItems(this, -var_1, var_2); }, "$isOnLadder", function() { return nms_EntitySpider_isOnLadder(this); }, "$setInWeb", function() { nms_EntitySpider_setInWeb(this); }, "$spiderScaleAmount", function() { return nms_EntitySpider_spiderScaleAmount(this); }, "$getCreatureAttribute", function() { return nms_EntitySpider_getCreatureAttribute(this); }, "$isPotionApplicable", function(var_1) { return nms_EntitySpider_isPotionApplicable(this, var_1); }, "$initCreature", function() { nms_EntitySpider_initCreature(this); }], -nms_Render, 0, jl_Object, [], 1, 3, 0, ["$updateIcons", function(var_1) { nms_Render_updateIcons(this, var_1); }]]); -$rt_metadata([nms_RenderLiving, 0, nms_Render, [], 1, 3, 0, ["$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderLiving_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$renderModel", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_RenderLiving_renderModel(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$renderLivingAt", function(var_1, var_2, var_3, var_4) { nms_RenderLiving_renderLivingAt(this, var_1, var_2, var_3, var_4); }, "$rotateCorpse", -function(var_1, var_2, var_3, var_4) { nms_RenderLiving_rotateCorpse(this, var_1, var_2, var_3, var_4); }, "$handleRotationFloat", function(var_1, var_2) { return nms_RenderLiving_handleRotationFloat(this, var_1, var_2); }, "$renderEquippedItems", function(var_1, var_2) { nms_RenderLiving_renderEquippedItems(this, var_1, var_2); }, "$inheritRenderPass", function(var_1, var_2, var_3) { return nms_RenderLiving_inheritRenderPass(this, var_1, var_2, var_3); }, "$shouldRenderPass", function(var_1, var_2, var_3) { -return nms_RenderLiving_shouldRenderPass(this, var_1, var_2, var_3); }, "$func_82408_c", function(var_1, var_2, var_3) { nms_RenderLiving_func_82408_c(this, var_1, var_2, var_3); }, "$getDeathMaxRotation", function(var_1) { return nms_RenderLiving_getDeathMaxRotation(this, var_1); }, "$getColorMultiplier", function(var_1, var_2, var_3) { return nms_RenderLiving_getColorMultiplier(this, var_1, var_2, var_3); }, "$preRenderCallback", function(var_1, var_2) { nms_RenderLiving_preRenderCallback(this, var_1, var_2); -}, "$func_96449_a", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_RenderLiving_func_96449_a(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderLiving_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_RenderSpider, "RenderSpider", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderSpider_preRenderCallback(this, var_1, var_2); }, "$getDeathMaxRotation", function(var_1) { return nms_RenderSpider_getDeathMaxRotation(this, var_1); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderSpider_shouldRenderPass(this, var_1, var_2, var_3); }, "$bindTexture2", function(var_1) { nms_RenderSpider_bindTexture(this, var_1); }], -nms_EntityCaveSpider, "EntityCaveSpider", 24, nms_EntitySpider, [], 0, 3, 0, ["$getMaxHealth", function() { return nms_EntityCaveSpider_getMaxHealth(this); }, "$spiderScaleAmount", function() { return nms_EntityCaveSpider_spiderScaleAmount(this); }, "$attackEntityAsMob", function(var_1) { return nms_EntityCaveSpider_attackEntityAsMob(this, var_1); }, "$initCreature", function() { nms_EntityCaveSpider_initCreature(this); }], -nms_EntityAgeable, "EntityAgeable", 24, nms_EntityCreature, [], 1, 3, 0, ["$entityInit", function() { nms_EntityAgeable_entityInit(this); }, "$onLivingUpdate", function() { nms_EntityAgeable_onLivingUpdate(this); }, "$isChild", function() { return nms_EntityAgeable_isChild(this); }], -nms_EntityAnimal, "EntityAnimal", 24, nms_EntityAgeable, [nms_IAnimals], 1, 3, 0, ["$updateAITick", function() { nms_EntityAnimal_updateAITick(this); }, "$onLivingUpdate", function() { nms_EntityAnimal_onLivingUpdate(this); }, "$attackEntity0", function(var_1, var_2) { nms_EntityAnimal_attackEntity(this, var_1, var_2); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityAnimal_attackEntityFrom(this, var_1, var_2); }, "$getBlockPathWeight", function(var_1, var_2, var_3) { return nms_EntityAnimal_getBlockPathWeight(this, -var_1, var_2, var_3); }, "$findPlayerToAttack", function() { return nms_EntityAnimal_findPlayerToAttack(this); }, "$getTalkInterval", function() { return nms_EntityAnimal_getTalkInterval(this); }, "$canDespawn", function() { return nms_EntityAnimal_canDespawn(this); }, "$getExperiencePoints", function(var_1) { return nms_EntityAnimal_getExperiencePoints(this, var_1); }, "$isBreedingItem", function(var_1) { return nms_EntityAnimal_isBreedingItem(this, var_1); }, "$interact", function(var_1) { return nms_EntityAnimal_interact(this, -var_1); }], -nms_EntityPig, "EntityPig", 24, nms_EntityAnimal, [], 0, 3, 0, ["$isAIEnabled", function() { return nms_EntityPig_isAIEnabled(this); }, "$getMaxHealth", function() { return nms_EntityPig_getMaxHealth(this); }, "$updateAITasks", function() { nms_EntityPig_updateAITasks(this); }, "$entityInit", function() { nms_EntityPig_entityInit(this); }, "$getLivingSound", function() { return nms_EntityPig_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityPig_getHurtSound(this); }, "$getDeathSound", function() -{ return nms_EntityPig_getDeathSound(this); }, "$playStepSound", function(var_1, var_2, var_3, var_4) { nms_EntityPig_playStepSound(this, var_1, var_2, var_3, var_4); }, "$interact", function(var_1) { return nms_EntityPig_interact(this, var_1); }, "$getDropItemId", function() { return nms_EntityPig_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntityPig_dropFewItems(this, var_1, var_2); }, "$onStruckByLightning", function(var_1) { nms_EntityPig_onStruckByLightning(this, var_1); }, "$fall", -function(var_1) { nms_EntityPig_fall(this, var_1); }, "$isBreedingItem", function(var_1) { return nms_EntityPig_isBreedingItem(this, var_1); }, "$createChild", function(var_1) { return nms_EntityPig_createChild(this, var_1); }], -nms_RenderPig, "RenderPig", 24, nms_RenderLiving, [], 0, 3, 0, ["$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderPig_shouldRenderPass(this, var_1, var_2, var_3); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderPig_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderPig_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) -{ nms_RenderPig_bindTexture(this, var_1); }], -nms_ModelBase, 0, jl_Object, [], 1, 3, 0, ["$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelBase_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelBase_setLivingAnimations(this, var_1, var_2, var_3, var_4); }], -nms_ModelQuadruped, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelQuadruped_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelQuadruped_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelPig, 0, nms_ModelQuadruped, [], 0, 3, 0, 0, -nms_EntitySheep, "EntitySheep", 24, nms_EntityAnimal, [], 0, 3, 0, ["$isAIEnabled", function() { return nms_EntitySheep_isAIEnabled(this); }, "$updateAITasks", function() { nms_EntitySheep_updateAITasks(this); }, "$onLivingUpdate", function() { nms_EntitySheep_onLivingUpdate(this); }, "$getMaxHealth", function() { return nms_EntitySheep_getMaxHealth(this); }, "$entityInit", function() { nms_EntitySheep_entityInit(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntitySheep_dropFewItems(this, var_1, var_2); -}, "$getDropItemId", function() { return nms_EntitySheep_getDropItemId(this); }, "$handleHealthUpdate", function(var_1) { nms_EntitySheep_handleHealthUpdate(this, var_1); }, "$interact", function(var_1) { return nms_EntitySheep_interact(this, var_1); }, "$getLivingSound", function() { return nms_EntitySheep_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntitySheep_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntitySheep_getDeathSound(this); }, "$playStepSound", function(var_1, -var_2, var_3, var_4) { nms_EntitySheep_playStepSound(this, var_1, var_2, var_3, var_4); }, "$initCreature", function() { nms_EntitySheep_initCreature(this); }, "$createChild", function(var_1) { return nms_EntitySheep_createChild(this, var_1); }], -nms_RenderSheep, "RenderSheep", 24, nms_RenderLiving, [], 0, 3, 0, ["$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderSheep_shouldRenderPass(this, var_1, var_2, var_3); }, "$bindTexture2", function(var_1) { nms_RenderSheep_bindTexture(this, var_1); }], -nms_ModelSheep2, 0, nms_ModelQuadruped, [], 0, 3, 0, ["$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelSheep2_setLivingAnimations(this, var_1, var_2, var_3, var_4); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSheep2_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelSheep1, 0, nms_ModelQuadruped, [], 0, 3, 0, ["$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelSheep1_setLivingAnimations(this, var_1, var_2, var_3, var_4); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSheep1_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_EntityCow, "EntityCow", 24, nms_EntityAnimal, [], 0, 3, 0, ["$isAIEnabled", function() { return nms_EntityCow_isAIEnabled(this); }, "$getMaxHealth", function() { return nms_EntityCow_getMaxHealth(this); }, "$getLivingSound", function() { return nms_EntityCow_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityCow_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityCow_getDeathSound(this); }, "$playStepSound", function(var_1, var_2, var_3, var_4) { nms_EntityCow_playStepSound(this, -var_1, var_2, var_3, var_4); }, "$getSoundVolume", function() { return nms_EntityCow_getSoundVolume(this); }, "$getDropItemId", function() { return nms_EntityCow_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntityCow_dropFewItems(this, var_1, var_2); }, "$interact", function(var_1) { return nms_EntityCow_interact(this, var_1); }, "$spawnBabyAnimal", function(var_1) { return nms_EntityCow_spawnBabyAnimal(this, var_1); }, "$createChild", function(var_1) { return nms_EntityCow_createChild(this, -var_1); }], -nms_RenderCow, "RenderCow", 24, nms_RenderLiving, [], 0, 3, 0, ["$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderCow_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderCow_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderCow_bindTexture(this, var_1); }], -nms_ModelCow, 0, nms_ModelQuadruped, [], 0, 3, 0, 0, -nms_EntityMooshroom, "EntityMooshroom", 24, nms_EntityCow, [], 0, 3, 0, ["$interact", function(var_1) { return nms_EntityMooshroom_interact(this, var_1); }, "$spawnBabyAnimal", function(var_1) { return nms_EntityMooshroom_spawnBabyAnimal(this, var_1); }, "$createChild", function(var_1) { return nms_EntityMooshroom_createChild(this, var_1); }], -nms_RenderMooshroom, "RenderMooshroom", 24, nms_RenderLiving, [], 0, 3, 0, ["$renderEquippedItems", function(var_1, var_2) { nms_RenderMooshroom_renderEquippedItems(this, var_1, var_2); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderMooshroom_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderMooshroom_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) -{ nms_RenderMooshroom_bindTexture(this, var_1); }], -nms_EntityTameable, "EntityTameable", 24, nms_EntityAnimal, [], 1, 3, 0, ["$handleHealthUpdate", function(var_1) { nms_EntityTameable_handleHealthUpdate(this, var_1); }], -nms_EntityWolf, "EntityWolf", 24, nms_EntityTameable, [], 0, 3, 0, ["$isAIEnabled", function() { return nms_EntityWolf_isAIEnabled(this); }, "$updateAITick", function() { nms_EntityWolf_updateAITick(this); }, "$getMaxHealth", function() { return nms_EntityWolf_getMaxHealth(this); }, "$entityInit", function() { nms_EntityWolf_entityInit(this); }, "$playStepSound", function(var_1, var_2, var_3, var_4) { nms_EntityWolf_playStepSound(this, var_1, var_2, var_3, var_4); }, "$canDespawn", function() { return nms_EntityWolf_canDespawn(this); -}, "$getLivingSound", function() { return nms_EntityWolf_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityWolf_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityWolf_getDeathSound(this); }, "$getSoundVolume", function() { return nms_EntityWolf_getSoundVolume(this); }, "$getDropItemId", function() { return nms_EntityWolf_getDropItemId(this); }, "$onLivingUpdate", function() { nms_EntityWolf_onLivingUpdate(this); }, "$onUpdate", function() { nms_EntityWolf_onUpdate(this); -}, "$getEyeHeight", function() { return nms_EntityWolf_getEyeHeight(this); }, "$getVerticalFaceSpeed", function() { return nms_EntityWolf_getVerticalFaceSpeed(this); }, "$interact", function(var_1) { return nms_EntityWolf_interact(this, var_1); }, "$handleHealthUpdate", function(var_1) { nms_EntityWolf_handleHealthUpdate(this, var_1); }, "$isBreedingItem", function(var_1) { return nms_EntityWolf_isBreedingItem(this, var_1); }, "$createChild", function(var_1) { return nms_EntityWolf_createChild(this, var_1); -}], -nms_RenderWolf, "RenderWolf", 24, nms_RenderLiving, [], 0, 3, 0, ["$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderWolf_shouldRenderPass(this, var_1, var_2, var_3); }, "$handleRotationFloat", function(var_1, var_2) { return nms_RenderWolf_handleRotationFloat(this, var_1, var_2); }, "$bindTexture2", function(var_1) { nms_RenderWolf_bindTexture(this, var_1); }], -nms_ModelWolf, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelWolf_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelWolf_setLivingAnimations(this, var_1, var_2, var_3, var_4); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelWolf_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_EntityChicken, "EntityChicken", 24, nms_EntityAnimal, [], 0, 3, 0, ["$isAIEnabled", function() { return nms_EntityChicken_isAIEnabled(this); }, "$getMaxHealth", function() { return nms_EntityChicken_getMaxHealth(this); }, "$onLivingUpdate", function() { nms_EntityChicken_onLivingUpdate(this); }, "$fall", function(var_1) { nms_EntityChicken_fall(this, var_1); }, "$getLivingSound", function() { return nms_EntityChicken_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityChicken_getHurtSound(this); -}, "$getDeathSound", function() { return nms_EntityChicken_getDeathSound(this); }, "$playStepSound", function(var_1, var_2, var_3, var_4) { nms_EntityChicken_playStepSound(this, var_1, var_2, var_3, var_4); }, "$getDropItemId", function() { return nms_EntityChicken_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntityChicken_dropFewItems(this, var_1, var_2); }, "$isBreedingItem", function(var_1) { return nms_EntityChicken_isBreedingItem(this, var_1); }, "$createChild", function(var_1) -{ return nms_EntityChicken_createChild(this, var_1); }], -nms_RenderChicken, "RenderChicken", 24, nms_RenderLiving, [], 0, 3, 0, ["$handleRotationFloat", function(var_1, var_2) { return nms_RenderChicken_handleRotationFloat(this, var_1, var_2); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderChicken_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderChicken_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) -{ nms_RenderChicken_bindTexture(this, var_1); }], -nms_ModelChicken, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelChicken_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelChicken_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_EntityOcelot, "EntityOcelot", 24, nms_EntityTameable, [], 0, 3, 0, ["$entityInit", function() { nms_EntityOcelot_entityInit(this); }, "$updateAITick", function() { nms_EntityOcelot_updateAITick(this); }, "$canDespawn", function() { return nms_EntityOcelot_canDespawn(this); }, "$isAIEnabled", function() { return nms_EntityOcelot_isAIEnabled(this); }, "$getMaxHealth", function() { return nms_EntityOcelot_getMaxHealth(this); }, "$fall", function(var_1) { nms_EntityOcelot_fall(this, var_1); }, "$getLivingSound", -function() { return nms_EntityOcelot_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityOcelot_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityOcelot_getDeathSound(this); }, "$getSoundVolume", function() { return nms_EntityOcelot_getSoundVolume(this); }, "$getDropItemId", function() { return nms_EntityOcelot_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntityOcelot_dropFewItems(this, var_1, var_2); }, "$isBreedingItem", function(var_1) { return nms_EntityOcelot_isBreedingItem(this, -var_1); }, "$getEntityName", function() { return nms_EntityOcelot_getEntityName(this); }, "$initCreature", function() { nms_EntityOcelot_initCreature(this); }, "$createChild", function(var_1) { return nms_EntityOcelot_createChild(this, var_1); }], -nms_RenderOcelot, "RenderOcelot", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderOcelot_preRenderCallback(this, var_1, var_2); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderOcelot_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderOcelot_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderOcelot_bindTexture(this, -var_1); }], -nms_ModelOcelot, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelOcelot_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelOcelot_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelOcelot_setLivingAnimations(this, var_1, var_2, var_3, var_4); }], -nms_EntitySilverfish, "EntitySilverfish", 24, nms_EntityMob, [], 0, 3, 0, ["$getMaxHealth", function() { return nms_EntitySilverfish_getMaxHealth(this); }, "$canTriggerWalking", function() { return nms_EntitySilverfish_canTriggerWalking(this); }, "$findPlayerToAttack", function() { return nms_EntitySilverfish_findPlayerToAttack(this); }, "$getLivingSound", function() { return nms_EntitySilverfish_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntitySilverfish_getHurtSound(this); }, "$getDeathSound", -function() { return nms_EntitySilverfish_getDeathSound(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntitySilverfish_attackEntityFrom(this, var_1, var_2); }, "$attackEntity0", function(var_1, var_2) { nms_EntitySilverfish_attackEntity(this, var_1, var_2); }, "$playStepSound", function(var_1, var_2, var_3, var_4) { nms_EntitySilverfish_playStepSound(this, var_1, var_2, var_3, var_4); }, "$getDropItemId", function() { return nms_EntitySilverfish_getDropItemId(this); }, "$onUpdate", function() -{ nms_EntitySilverfish_onUpdate(this); }, "$updateEntityActionState", function() { nms_EntitySilverfish_updateEntityActionState(this); }, "$getBlockPathWeight", function(var_1, var_2, var_3) { return nms_EntitySilverfish_getBlockPathWeight(this, var_1, var_2, var_3); }, "$getAttackStrength", function(var_1) { return nms_EntitySilverfish_getAttackStrength(this, var_1); }, "$getCreatureAttribute", function() { return nms_EntitySilverfish_getCreatureAttribute(this); }], -nms_RenderSilverfish, "RenderSilverfish", 24, nms_RenderLiving, [], 0, 3, 0, ["$getDeathMaxRotation", function(var_1) { return nms_RenderSilverfish_getDeathMaxRotation(this, var_1); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderSilverfish_shouldRenderPass(this, var_1, var_2, var_3); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderSilverfish_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, -var_4, var_5, var_6) { nms_RenderSilverfish_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderSilverfish_bindTexture(this, var_1); }], -nms_EntityCreeper, "EntityCreeper", 24, nms_EntityMob, [], 0, 3, 0, ["$isAIEnabled", function() { return nms_EntityCreeper_isAIEnabled(this); }, "$func_82143_as", function() { return nms_EntityCreeper_func_82143_as(this); }, "$fall", function(var_1) { nms_EntityCreeper_fall(this, var_1); }, "$getMaxHealth", function() { return nms_EntityCreeper_getMaxHealth(this); }, "$entityInit", function() { nms_EntityCreeper_entityInit(this); }, "$onUpdate", function() { nms_EntityCreeper_onUpdate(this); }, "$getHurtSound", -function() { return nms_EntityCreeper_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityCreeper_getDeathSound(this); }, "$onDeath", function(var_1) { nms_EntityCreeper_onDeath(this, var_1); }, "$attackEntityAsMob", function(var_1) { return nms_EntityCreeper_attackEntityAsMob(this, var_1); }, "$getDropItemId", function() { return nms_EntityCreeper_getDropItemId(this); }, "$onStruckByLightning", function(var_1) { nms_EntityCreeper_onStruckByLightning(this, var_1); }], -nms_RenderCreeper, "RenderCreeper", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderCreeper_preRenderCallback(this, var_1, var_2); }, "$getColorMultiplier", function(var_1, var_2, var_3) { return nms_RenderCreeper_getColorMultiplier(this, var_1, var_2, var_3); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderCreeper_shouldRenderPass(this, var_1, var_2, var_3); }, "$inheritRenderPass", function(var_1, var_2, var_3) { return nms_RenderCreeper_inheritRenderPass(this, -var_1, var_2, var_3); }, "$bindTexture2", function(var_1) { nms_RenderCreeper_bindTexture(this, var_1); }], -nms_EntityEnderman, "EntityEnderman", 24, nms_EntityMob, [], 0, 3, nms_EntityEnderman_$callClinit, ["$getMaxHealth", function() { return nms_EntityEnderman_getMaxHealth(this); }, "$entityInit", function() { nms_EntityEnderman_entityInit(this); }, "$findPlayerToAttack", function() { return nms_EntityEnderman_findPlayerToAttack(this); }, "$onLivingUpdate", function() { nms_EntityEnderman_onLivingUpdate(this); }, "$getLivingSound", function() { return nms_EntityEnderman_getLivingSound(this); }, "$getHurtSound", -function() { return nms_EntityEnderman_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityEnderman_getDeathSound(this); }, "$getDropItemId", function() { return nms_EntityEnderman_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntityEnderman_dropFewItems(this, var_1, var_2); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityEnderman_attackEntityFrom(this, var_1, var_2); }, "$getAttackStrength", function(var_1) { return nms_EntityEnderman_getAttackStrength(this, -var_1); }], -nms_RenderEnderman, "RenderEnderman", 24, nms_RenderLiving, [], 0, 3, 0, ["$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderEnderman_shouldRenderPass(this, var_1, var_2, var_3); }, "$renderEquippedItems", function(var_1, var_2) { nms_RenderEnderman_renderEquippedItems(this, var_1, var_2); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderEnderman_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, -var_4, var_5, var_6) { nms_RenderEnderman_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderEnderman_bindTexture(this, var_1); }], -nms_EntityGolem, "EntityGolem", 24, nms_EntityCreature, [nms_IAnimals], 1, 3, 0, ["$fall", function(var_1) { nms_EntityGolem_fall(this, var_1); }, "$getLivingSound", function() { return nms_EntityGolem_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityGolem_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityGolem_getDeathSound(this); }, "$getTalkInterval", function() { return nms_EntityGolem_getTalkInterval(this); }, "$canDespawn", function() { return nms_EntityGolem_canDespawn(this); -}], -nms_IRangedAttackMob, 0, jl_Object, [], 3, 3, 0, 0, -nms_EntitySnowman, "EntitySnowman", 24, nms_EntityGolem, [nms_IRangedAttackMob], 0, 3, 0, ["$isAIEnabled", function() { return nms_EntitySnowman_isAIEnabled(this); }, "$getMaxHealth", function() { return nms_EntitySnowman_getMaxHealth(this); }, "$onLivingUpdate", function() { nms_EntitySnowman_onLivingUpdate(this); }, "$getDropItemId", function() { return nms_EntitySnowman_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntitySnowman_dropFewItems(this, var_1, var_2); }], -nms_RenderSnowMan, "RenderSnowMan", 24, nms_RenderLiving, [], 0, 3, 0, ["$renderEquippedItems", function(var_1, var_2) { nms_RenderSnowMan_renderEquippedItems(this, var_1, var_2); }, "$bindTexture2", function(var_1) { nms_RenderSnowMan_bindTexture(this, var_1); }], -nms_EntitySkeleton, "EntitySkeleton", 24, nms_EntityMob, [nms_IRangedAttackMob], 0, 3, 0, ["$entityInit", function() { nms_EntitySkeleton_entityInit(this); }, "$isAIEnabled", function() { return nms_EntitySkeleton_isAIEnabled(this); }, "$getMaxHealth", function() { return nms_EntitySkeleton_getMaxHealth(this); }, "$getLivingSound", function() { return nms_EntitySkeleton_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntitySkeleton_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntitySkeleton_getDeathSound(this); -}, "$playStepSound", function(var_1, var_2, var_3, var_4) { nms_EntitySkeleton_playStepSound(this, var_1, var_2, var_3, var_4); }, "$attackEntityAsMob", function(var_1) { return nms_EntitySkeleton_attackEntityAsMob(this, var_1); }, "$getAttackStrength", function(var_1) { return nms_EntitySkeleton_getAttackStrength(this, var_1); }, "$getCreatureAttribute", function() { return nms_EntitySkeleton_getCreatureAttribute(this); }, "$onLivingUpdate", function() { nms_EntitySkeleton_onLivingUpdate(this); }, "$onDeath", -function(var_1) { nms_EntitySkeleton_onDeath(this, var_1); }, "$getDropItemId", function() { return nms_EntitySkeleton_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntitySkeleton_dropFewItems(this, var_1, var_2); }, "$dropRareDrop", function(var_1) { nms_EntitySkeleton_dropRareDrop(this, var_1); }, "$initCreature", function() { nms_EntitySkeleton_initCreature(this); }, "$setCurrentItemOrArmor", function(var_1, var_2) { nms_EntitySkeleton_setCurrentItemOrArmor(this, var_1, var_2); }], -nms_RenderBiped, 0, nms_RenderLiving, [], 1, 3, 0, ["$func_82421_b", function() { nms_RenderBiped_func_82421_b(this); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderBiped_shouldRenderPass(this, var_1, var_2, var_3); }, "$func_82408_c", function(var_1, var_2, var_3) { nms_RenderBiped_func_82408_c(this, var_1, var_2, var_3); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderBiped_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$renderEquippedItems", -function(var_1, var_2) { nms_RenderBiped_renderEquippedItems(this, var_1, var_2); }, "$func_82422_c", function() { nms_RenderBiped_func_82422_c(this); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderBiped_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_RenderSkeleton, "RenderSkeleton", 24, nms_RenderBiped, [], 0, 3, 0, ["$func_82422_c", function() { nms_RenderSkeleton_func_82422_c(this); }, "$preRenderCallback", function(var_1, var_2) { nms_RenderSkeleton_preRenderCallback(this, var_1, var_2); }, "$bindTexture2", function(var_1) { nms_RenderSkeleton_bindTexture(this, var_1); }], -nms_EntityWitch, "EntityWitch", 24, nms_EntityMob, [nms_IRangedAttackMob], 0, 3, nms_EntityWitch_$callClinit, ["$entityInit", function() { nms_EntityWitch_entityInit(this); }, "$getLivingSound", function() { return nms_EntityWitch_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityWitch_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityWitch_getDeathSound(this); }, "$getMaxHealth", function() { return nms_EntityWitch_getMaxHealth(this); }, "$isAIEnabled", function() -{ return nms_EntityWitch_isAIEnabled(this); }, "$onLivingUpdate", function() { nms_EntityWitch_onLivingUpdate(this); }, "$handleHealthUpdate", function(var_1) { nms_EntityWitch_handleHealthUpdate(this, var_1); }, "$applyPotionDamageCalculations", function(var_1, var_2) { return nms_EntityWitch_applyPotionDamageCalculations(this, var_1, var_2); }, "$getSpeedModifier", function() { return nms_EntityWitch_getSpeedModifier(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntityWitch_dropFewItems(this, var_1, -var_2); }], -nms_RenderWitch, "RenderWitch", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderWitch_preRenderCallback(this, var_1, var_2); }, "$renderEquippedItems", function(var_1, var_2) { nms_RenderWitch_renderEquippedItems(this, var_1, var_2); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderWitch_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderWitch_doRender(this, -var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderWitch_bindTexture(this, var_1); }], -nms_EntityBlaze, "EntityBlaze", 24, nms_EntityMob, [], 0, 3, 0, ["$getMaxHealth", function() { return nms_EntityBlaze_getMaxHealth(this); }, "$entityInit", function() { nms_EntityBlaze_entityInit(this); }, "$getLivingSound", function() { return nms_EntityBlaze_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityBlaze_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityBlaze_getDeathSound(this); }, "$getBrightnessForRender", function(var_1) { return nms_EntityBlaze_getBrightnessForRender(this, -var_1); }, "$getBrightness", function(var_1) { return nms_EntityBlaze_getBrightness(this, var_1); }, "$onLivingUpdate", function() { nms_EntityBlaze_onLivingUpdate(this); }, "$attackEntity0", function(var_1, var_2) { nms_EntityBlaze_attackEntity(this, var_1, var_2); }, "$fall", function(var_1) { nms_EntityBlaze_fall(this, var_1); }, "$getDropItemId", function() { return nms_EntityBlaze_getDropItemId(this); }, "$isBurning", function() { return nms_EntityBlaze_isBurning(this); }, "$dropFewItems", function(var_1, -var_2) { nms_EntityBlaze_dropFewItems(this, var_1, var_2); }, "$getAttackStrength", function(var_1) { return nms_EntityBlaze_getAttackStrength(this, var_1); }], -nms_RenderBlaze, "RenderBlaze", 24, nms_RenderLiving, [], 0, 3, 0, ["$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderBlaze_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderBlaze_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderBlaze_bindTexture(this, var_1); }], -nms_EntityZombie, "EntityZombie", 24, nms_EntityMob, [], 0, 3, 0, ["$getSpeedModifier", function() { return nms_EntityZombie_getSpeedModifier(this); }, "$entityInit", function() { nms_EntityZombie_entityInit(this); }, "$getMaxHealth", function() { return nms_EntityZombie_getMaxHealth(this); }, "$getTotalArmorValue", function() { return nms_EntityZombie_getTotalArmorValue(this); }, "$isAIEnabled", function() { return nms_EntityZombie_isAIEnabled(this); }, "$isChild", function() { return nms_EntityZombie_isChild(this); -}, "$onLivingUpdate", function() { nms_EntityZombie_onLivingUpdate(this); }, "$onUpdate", function() { nms_EntityZombie_onUpdate(this); }, "$attackEntityAsMob", function(var_1) { return nms_EntityZombie_attackEntityAsMob(this, var_1); }, "$getAttackStrength", function(var_1) { return nms_EntityZombie_getAttackStrength(this, var_1); }, "$getLivingSound", function() { return nms_EntityZombie_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityZombie_getHurtSound(this); }, "$getDeathSound", -function() { return nms_EntityZombie_getDeathSound(this); }, "$playStepSound", function(var_1, var_2, var_3, var_4) { nms_EntityZombie_playStepSound(this, var_1, var_2, var_3, var_4); }, "$getDropItemId", function() { return nms_EntityZombie_getDropItemId(this); }, "$getCreatureAttribute", function() { return nms_EntityZombie_getCreatureAttribute(this); }, "$dropRareDrop", function(var_1) { nms_EntityZombie_dropRareDrop(this, var_1); }, "$addRandomArmor", function() { nms_EntityZombie_addRandomArmor(this); }, -"$onKillEntity", function(var_1) { nms_EntityZombie_onKillEntity(this, var_1); }, "$initCreature", function() { nms_EntityZombie_initCreature(this); }, "$interact", function(var_1) { return nms_EntityZombie_interact(this, var_1); }, "$handleHealthUpdate", function(var_1) { nms_EntityZombie_handleHealthUpdate(this, var_1); }], -nms_RenderZombie, "RenderZombie", 24, nms_RenderBiped, [], 0, 3, 0, ["$func_82421_b", function() { nms_RenderZombie_func_82421_b(this); }, "$renderEquippedItems", function(var_1, var_2) { nms_RenderZombie_renderEquippedItems(this, var_1, var_2); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderZombie_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderZombie_shouldRenderPass(this, var_1, var_2, -var_3); }, "$rotateCorpse", function(var_1, var_2, var_3, var_4) { nms_RenderZombie_rotateCorpse(this, var_1, var_2, var_3, var_4); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderZombie_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderZombie_bindTexture(this, var_1); }], -nms_EntitySlime, "EntitySlime", 24, nms_EntityLiving, [nms_IMob], 0, 3, 0, ["$entityInit", function() { nms_EntitySlime_entityInit(this); }, "$getMaxHealth", function() { return nms_EntitySlime_getMaxHealth(this); }, "$getSlimeParticle", function() { return nms_EntitySlime_getSlimeParticle(this); }, "$getJumpSound", function() { return nms_EntitySlime_getJumpSound(this); }, "$onUpdate", function() { nms_EntitySlime_onUpdate(this); }, "$updateEntityActionState", function() { nms_EntitySlime_updateEntityActionState(this); -}, "$func_70808_l", function() { nms_EntitySlime_func_70808_l(this); }, "$getJumpDelay", function() { return nms_EntitySlime_getJumpDelay(this); }, "$createInstance", function() { return nms_EntitySlime_createInstance(this); }, "$setDead", function() { nms_EntitySlime_setDead(this); }, "$onCollideWithPlayer", function(var_1) { nms_EntitySlime_onCollideWithPlayer(this, var_1); }, "$canDamagePlayer", function() { return nms_EntitySlime_canDamagePlayer(this); }, "$getAttackStrength0", function() { return nms_EntitySlime_getAttackStrength(this); -}, "$getHurtSound", function() { return nms_EntitySlime_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntitySlime_getDeathSound(this); }, "$getDropItemId", function() { return nms_EntitySlime_getDropItemId(this); }, "$getSoundVolume", function() { return nms_EntitySlime_getSoundVolume(this); }, "$getVerticalFaceSpeed", function() { return nms_EntitySlime_getVerticalFaceSpeed(this); }, "$makesSoundOnLand", function() { return nms_EntitySlime_makesSoundOnLand(this); }], -nms_RenderSlime, "RenderSlime", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderSlime_preRenderCallback(this, var_1, var_2); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderSlime_shouldRenderPass(this, var_1, var_2, var_3); }, "$bindTexture2", function(var_1) { nms_RenderSlime_bindTexture(this, var_1); }]]); -$rt_metadata([nms_ModelSlime, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSlime_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_EntityMagmaCube, "EntityMagmaCube", 24, nms_EntitySlime, [], 0, 3, 0, ["$getTotalArmorValue", function() { return nms_EntityMagmaCube_getTotalArmorValue(this); }, "$getBrightnessForRender", function(var_1) { return nms_EntityMagmaCube_getBrightnessForRender(this, var_1); }, "$getBrightness", function(var_1) { return nms_EntityMagmaCube_getBrightness(this, var_1); }, "$getSlimeParticle", function() { return nms_EntityMagmaCube_getSlimeParticle(this); }, "$createInstance", function() { return nms_EntityMagmaCube_createInstance(this); -}, "$getDropItemId", function() { return nms_EntityMagmaCube_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntityMagmaCube_dropFewItems(this, var_1, var_2); }, "$isBurning", function() { return nms_EntityMagmaCube_isBurning(this); }, "$getJumpDelay", function() { return nms_EntityMagmaCube_getJumpDelay(this); }, "$func_70808_l", function() { nms_EntityMagmaCube_func_70808_l(this); }, "$jump0", function() { nms_EntityMagmaCube_jump(this); }, "$fall", function(var_1) { nms_EntityMagmaCube_fall(this, -var_1); }, "$canDamagePlayer", function() { return nms_EntityMagmaCube_canDamagePlayer(this); }, "$getAttackStrength0", function() { return nms_EntityMagmaCube_getAttackStrength(this); }, "$getHurtSound", function() { return nms_EntityMagmaCube_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityMagmaCube_getDeathSound(this); }, "$getJumpSound", function() { return nms_EntityMagmaCube_getJumpSound(this); }, "$handleLavaMovement", function() { return nms_EntityMagmaCube_handleLavaMovement(this); -}, "$makesSoundOnLand", function() { return nms_EntityMagmaCube_makesSoundOnLand(this); }], -nms_RenderMagmaCube, "RenderMagmaCube", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderMagmaCube_preRenderCallback(this, var_1, var_2); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderMagmaCube_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderMagmaCube_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) -{ nms_RenderMagmaCube_bindTexture(this, var_1); }], -nms_RenderPlayer, "RenderPlayer", 24, nms_RenderLiving, [], 0, 3, 0, ["$func_96449_a", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_RenderPlayer_func_96449_a(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$preRenderCallback", function(var_1, var_2) { nms_RenderPlayer_preRenderCallback(this, var_1, var_2); }, "$func_82408_c", function(var_1, var_2, var_3) { nms_RenderPlayer_func_82408_c(this, var_1, var_2, var_3); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderPlayer_shouldRenderPass(this, -var_1, var_2, var_3); }, "$renderEquippedItems", function(var_1, var_2) { nms_RenderPlayer_renderEquippedItems(this, var_1, var_2); }, "$rotateCorpse", function(var_1, var_2, var_3, var_4) { nms_RenderPlayer_rotateCorpse(this, var_1, var_2, var_3, var_4); }, "$renderLivingAt", function(var_1, var_2, var_3, var_4) { nms_RenderPlayer_renderLivingAt(this, var_1, var_2, var_3, var_4); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderPlayer_doRenderLiving(this, var_1, var_2, var_3, -var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderPlayer_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderPlayer_bindTexture(this, var_1); }], -nms_EntityFlying, "EntityFlying", 24, nms_EntityLiving, [], 1, 3, 0, ["$fall", function(var_1) { nms_EntityFlying_fall(this, var_1); }, "$updateFallState", function(var_1, var_2) { nms_EntityFlying_updateFallState(this, var_1, var_2); }, "$moveEntityWithHeading", function(var_1, var_2) { nms_EntityFlying_moveEntityWithHeading(this, var_1, var_2); }, "$isOnLadder", function() { return nms_EntityFlying_isOnLadder(this); }], -nms_EntityGhast, "EntityGhast", 24, nms_EntityFlying, [nms_IMob], 0, 3, 0, ["$attackEntityFrom", function(var_1, var_2) { return nms_EntityGhast_attackEntityFrom(this, var_1, var_2); }, "$entityInit", function() { nms_EntityGhast_entityInit(this); }, "$getMaxHealth", function() { return nms_EntityGhast_getMaxHealth(this); }, "$updateEntityActionState", function() { nms_EntityGhast_updateEntityActionState(this); }, "$getLivingSound", function() { return nms_EntityGhast_getLivingSound(this); }, "$getHurtSound", -function() { return nms_EntityGhast_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityGhast_getDeathSound(this); }, "$getDropItemId", function() { return nms_EntityGhast_getDropItemId(this); }, "$dropFewItems", function(var_1, var_2) { nms_EntityGhast_dropFewItems(this, var_1, var_2); }, "$getSoundVolume", function() { return nms_EntityGhast_getSoundVolume(this); }], -nms_RenderGhast, "RenderGhast", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderGhast_preRenderCallback(this, var_1, var_2); }, "$bindTexture2", function(var_1) { nms_RenderGhast_bindTexture(this, var_1); }], -nms_EntityWaterMob, "EntityWaterMob", 24, nms_EntityCreature, [nms_IAnimals], 1, 3, 0, ["$canBreatheUnderwater", function() { return nms_EntityWaterMob_canBreatheUnderwater(this); }, "$getTalkInterval", function() { return nms_EntityWaterMob_getTalkInterval(this); }, "$canDespawn", function() { return nms_EntityWaterMob_canDespawn(this); }, "$getExperiencePoints", function(var_1) { return nms_EntityWaterMob_getExperiencePoints(this, var_1); }, "$onEntityUpdate", function() { nms_EntityWaterMob_onEntityUpdate(this); -}], -nms_EntitySquid, "EntitySquid", 24, nms_EntityWaterMob, [], 0, 3, 0, ["$getMaxHealth", function() { return nms_EntitySquid_getMaxHealth(this); }, "$getLivingSound", function() { return nms_EntitySquid_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntitySquid_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntitySquid_getDeathSound(this); }, "$getSoundVolume", function() { return nms_EntitySquid_getSoundVolume(this); }, "$getDropItemId", function() { return nms_EntitySquid_getDropItemId(this); -}, "$dropFewItems", function(var_1, var_2) { nms_EntitySquid_dropFewItems(this, var_1, var_2); }, "$isInWater", function() { return nms_EntitySquid_isInWater(this); }, "$onLivingUpdate", function() { nms_EntitySquid_onLivingUpdate(this); }, "$moveEntityWithHeading", function(var_1, var_2) { nms_EntitySquid_moveEntityWithHeading(this, var_1, var_2); }, "$updateEntityActionState", function() { nms_EntitySquid_updateEntityActionState(this); }], -nms_RenderSquid, "RenderSquid", 24, nms_RenderLiving, [], 0, 3, 0, ["$handleRotationFloat", function(var_1, var_2) { return nms_RenderSquid_handleRotationFloat0(this, var_1, var_2); }, "$rotateCorpse", function(var_1, var_2, var_3, var_4) { nms_RenderSquid_rotateCorpse(this, var_1, var_2, var_3, var_4); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderSquid_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, -var_5, var_6) { nms_RenderSquid_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderSquid_bindTexture(this, var_1); }], -nms_ModelSquid, 0, nms_ModelBase, [], 0, 3, 0, ["$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSquid_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSquid_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_INpc, 0, jl_Object, [nms_IAnimals], 3, 3, 0, 0, -nms_IMerchant, 0, jl_Object, [], 3, 3, 0, 0, -nms_EntityVillager, "EntityVillager", 24, nms_EntityAgeable, [nms_INpc, nms_IMerchant], 0, 3, nms_EntityVillager_$callClinit, ["$isAIEnabled", function() { return nms_EntityVillager_isAIEnabled(this); }, "$updateAITick", function() { nms_EntityVillager_updateAITick(this); }, "$interact", function(var_1) { return nms_EntityVillager_interact(this, var_1); }, "$entityInit", function() { nms_EntityVillager_entityInit(this); }, "$getMaxHealth", function() { return nms_EntityVillager_getMaxHealth(this); }, "$canDespawn", -function() { return nms_EntityVillager_canDespawn(this); }, "$getLivingSound", function() { return nms_EntityVillager_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityVillager_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityVillager_getDeathSound(this); }, "$setRevengeTarget", function(var_1) { nms_EntityVillager_setRevengeTarget(this, var_1); }, "$onDeath", function(var_1) { nms_EntityVillager_onDeath(this, var_1); }, "$setCustomer", function(var_1) { nms_EntityVillager_setCustomer(this, -var_1); }, "$getCustomer", function() { return nms_EntityVillager_getCustomer(this); }, "$useRecipe", function(var_1) { nms_EntityVillager_useRecipe(this, var_1); }, "$getRecipes", function(var_1) { return nms_EntityVillager_getRecipes(this, var_1); }, "$setRecipes", function(var_1) { nms_EntityVillager_setRecipes(this, var_1); }, "$handleHealthUpdate", function(var_1) { nms_EntityVillager_handleHealthUpdate(this, var_1); }, "$initCreature", function() { nms_EntityVillager_initCreature(this); }, "$createChild", -function(var_1) { return nms_EntityVillager_createChild(this, var_1); }], -nms_RenderVillager, "RenderVillager", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderVillager_preRenderCallback(this, var_1, var_2); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderVillager_shouldRenderPass(this, var_1, var_2, var_3); }, "$renderEquippedItems", function(var_1, var_2) { nms_RenderVillager_renderEquippedItems(this, var_1, var_2); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderVillager_doRenderLiving(this, -var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderVillager_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderVillager_bindTexture(this, var_1); }], -nms_EntityIronGolem, "EntityIronGolem", 24, nms_EntityGolem, [], 0, 3, 0, ["$entityInit", function() { nms_EntityIronGolem_entityInit(this); }, "$isAIEnabled", function() { return nms_EntityIronGolem_isAIEnabled(this); }, "$updateAITick", function() { nms_EntityIronGolem_updateAITick(this); }, "$getMaxHealth", function() { return nms_EntityIronGolem_getMaxHealth(this); }, "$decreaseAirSupply", function(var_1) { return nms_EntityIronGolem_decreaseAirSupply(this, var_1); }, "$collideWithEntity", function(var_1) -{ nms_EntityIronGolem_collideWithEntity(this, var_1); }, "$onLivingUpdate", function() { nms_EntityIronGolem_onLivingUpdate(this); }, "$handleHealthUpdate", function(var_1) { nms_EntityIronGolem_handleHealthUpdate(this, var_1); }, "$getLivingSound", function() { return nms_EntityIronGolem_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityIronGolem_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityIronGolem_getDeathSound(this); }, "$playStepSound", function(var_1, var_2, -var_3, var_4) { nms_EntityIronGolem_playStepSound(this, var_1, var_2, var_3, var_4); }, "$dropFewItems", function(var_1, var_2) { nms_EntityIronGolem_dropFewItems(this, var_1, var_2); }, "$onDeath", function(var_1) { nms_EntityIronGolem_onDeath(this, var_1); }], -nms_RenderIronGolem, "RenderIronGolem", 24, nms_RenderLiving, [], 0, 3, 0, ["$renderEquippedItems", function(var_1, var_2) { nms_RenderIronGolem_renderEquippedItems(this, var_1, var_2); }, "$rotateCorpse", function(var_1, var_2, var_3, var_4) { nms_RenderIronGolem_rotateCorpse(this, var_1, var_2, var_3, var_4); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderIronGolem_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, -var_4, var_5, var_6) { nms_RenderIronGolem_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderIronGolem_bindTexture(this, var_1); }], -nms_EntityAmbientCreature, "EntityAmbientCreature", 24, nms_EntityLiving, [nms_IAnimals], 1, 3, 0, 0, -nms_EntityBat, "EntityBat", 24, nms_EntityAmbientCreature, [], 0, 3, 0, ["$entityInit", function() { nms_EntityBat_entityInit(this); }, "$getSoundVolume", function() { return nms_EntityBat_getSoundVolume(this); }, "$getSoundPitch", function() { return nms_EntityBat_getSoundPitch(this); }, "$getLivingSound", function() { return nms_EntityBat_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityBat_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityBat_getDeathSound(this); -}, "$canBePushed", function() { return nms_EntityBat_canBePushed(this); }, "$collideWithEntity", function(var_1) { nms_EntityBat_collideWithEntity(this, var_1); }, "$func_85033_bc", function() { nms_EntityBat_func_85033_bc(this); }, "$getMaxHealth", function() { return nms_EntityBat_getMaxHealth(this); }, "$isAIEnabled", function() { return nms_EntityBat_isAIEnabled(this); }, "$onUpdate", function() { nms_EntityBat_onUpdate(this); }, "$updateAITasks", function() { nms_EntityBat_updateAITasks(this); }, "$canTriggerWalking", -function() { return nms_EntityBat_canTriggerWalking(this); }, "$fall", function(var_1) { nms_EntityBat_fall(this, var_1); }, "$updateFallState", function(var_1, var_2) { nms_EntityBat_updateFallState(this, var_1, var_2); }, "$doesEntityNotTriggerPressurePlate", function() { return nms_EntityBat_doesEntityNotTriggerPressurePlate(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityBat_attackEntityFrom(this, var_1, var_2); }, "$initCreature", function() { nms_EntityBat_initCreature(this); }], -nms_RenderBat, "RenderBat", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderBat_preRenderCallback(this, var_1, var_2); }, "$rotateCorpse", function(var_1, var_2, var_3, var_4) { nms_RenderBat_rotateCorpse(this, var_1, var_2, var_3, var_4); }, "$renderLivingAt", function(var_1, var_2, var_3, var_4) { nms_RenderBat_renderLivingAt(this, var_1, var_2, var_3, var_4); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderBat_doRenderLiving(this, -var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderBat_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderBat_bindTexture(this, var_1); }], -nms_IBossDisplayData, 0, jl_Object, [], 3, 3, 0, 0, -nms_IEntityMultiPart, 0, jl_Object, [], 3, 3, 0, 0, -nms_EntityDragon, "EntityDragon", 24, nms_EntityLiving, [nms_IBossDisplayData, nms_IEntityMultiPart], 0, 3, 0, ["$getMaxHealth", function() { return nms_EntityDragon_getMaxHealth(this); }, "$entityInit", function() { nms_EntityDragon_entityInit(this); }, "$onLivingUpdate", function() { nms_EntityDragon_onLivingUpdate(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityDragon_attackEntityFrom(this, var_1, var_2); }, "$onDeathUpdate", function() { nms_EntityDragon_onDeathUpdate(this); }, "$despawnEntity", -function() { nms_EntityDragon_despawnEntity(this); }, "$getParts", function() { return nms_EntityDragon_getParts(this); }, "$canBeCollidedWith", function() { return nms_EntityDragon_canBeCollidedWith(this); }, "$getBossHealth", function() { return nms_EntityDragon_getBossHealth(this); }, "$getLivingSound", function() { return nms_EntityDragon_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityDragon_getHurtSound(this); }, "$getSoundVolume", function() { return nms_EntityDragon_getSoundVolume(this); -}], -nms_RenderDragon, "RenderDragon", 24, nms_RenderLiving, [], 0, 3, 0, ["$bindTexture2", function(var_1) { nms_RenderDragon_bindTexture(this, var_1); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderDragon_shouldRenderPass(this, var_1, var_2, var_3); }, "$renderEquippedItems", function(var_1, var_2) { nms_RenderDragon_renderEquippedItems(this, var_1, var_2); }, "$rotateCorpse", function(var_1, var_2, var_3, var_4) { nms_RenderDragon_rotateCorpse(this, var_1, var_2, var_3, var_4); }, "$renderModel", -function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_RenderDragon_renderModel(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderDragon_doRenderLiving(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderDragon_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityEnderCrystal, "EntityEnderCrystal", 24, nms_Entity, [], 0, 3, 0, ["$canTriggerWalking", function() { return nms_EntityEnderCrystal_canTriggerWalking(this); }, "$entityInit", function() { nms_EntityEnderCrystal_entityInit(this); }, "$onUpdate", function() { nms_EntityEnderCrystal_onUpdate(this); }, "$getShadowSize", function() { return nms_EntityEnderCrystal_getShadowSize(this); }, "$canBeCollidedWith", function() { return nms_EntityEnderCrystal_canBeCollidedWith(this); }, "$attackEntityFrom", function(var_1, -var_2) { return nms_EntityEnderCrystal_attackEntityFrom(this, var_1, var_2); }], -nms_RenderEnderCrystal, "RenderEnderCrystal", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderEnderCrystal_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityWither, "EntityWither", 24, nms_EntityMob, [nms_IBossDisplayData, nms_IRangedAttackMob], 0, 3, 0, ["$entityInit", function() { nms_EntityWither_entityInit(this); }, "$getShadowSize", function() { return nms_EntityWither_getShadowSize(this); }, "$getLivingSound", function() { return nms_EntityWither_getLivingSound(this); }, "$getHurtSound", function() { return nms_EntityWither_getHurtSound(this); }, "$getDeathSound", function() { return nms_EntityWither_getDeathSound(this); }, "$onLivingUpdate", function() -{ nms_EntityWither_onLivingUpdate(this); }, "$updateAITasks", function() { nms_EntityWither_updateAITasks(this); }, "$setInWeb", function() { nms_EntityWither_setInWeb(this); }, "$getTotalArmorValue", function() { return nms_EntityWither_getTotalArmorValue(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityWither_attackEntityFrom(this, var_1, var_2); }, "$dropFewItems", function(var_1, var_2) { nms_EntityWither_dropFewItems(this, var_1, var_2); }, "$despawnEntity", function() { nms_EntityWither_despawnEntity(this); -}, "$getBrightnessForRender", function(var_1) { return nms_EntityWither_getBrightnessForRender(this, var_1); }, "$canBeCollidedWith", function() { return nms_EntityWither_canBeCollidedWith(this); }, "$getBossHealth", function() { return nms_EntityWither_getBossHealth(this); }, "$fall", function(var_1) { nms_EntityWither_fall(this, var_1); }, "$addPotionEffect", function(var_1) { nms_EntityWither_addPotionEffect(this, var_1); }, "$isAIEnabled", function() { return nms_EntityWither_isAIEnabled(this); }, "$getMaxHealth", -function() { return nms_EntityWither_getMaxHealth(this); }, "$getCreatureAttribute", function() { return nms_EntityWither_getCreatureAttribute(this); }, "$mountEntity", function(var_1) { nms_EntityWither_mountEntity(this, var_1); }], -nms_RenderWither, "RenderWither", 24, nms_RenderLiving, [], 0, 3, 0, ["$preRenderCallback", function(var_1, var_2) { nms_RenderWither_preRenderCallback(this, var_1, var_2); }, "$shouldRenderPass", function(var_1, var_2, var_3) { return nms_RenderWither_shouldRenderPass(this, var_1, var_2, var_3); }, "$inheritRenderPass", function(var_1, var_2, var_3) { return nms_RenderWither_inheritRenderPass(this, var_1, var_2, var_3); }, "$doRenderLiving", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderWither_doRenderLiving(this, -var_1, var_2, var_3, var_4, var_5, var_6); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderWither_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$bindTexture2", function(var_1) { nms_RenderWither_bindTexture(this, var_1); }], -nms_RenderEntity, "RenderEntity", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderEntity_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityHanging, "EntityHanging", 24, nms_Entity, [], 1, 3, 0, ["$entityInit", function() { nms_EntityHanging_entityInit(this); }, "$onUpdate", function() { nms_EntityHanging_onUpdate(this); }, "$canBeCollidedWith", function() { return nms_EntityHanging_canBeCollidedWith(this); }, "$func_85031_j", function(var_1) { return nms_EntityHanging_func_85031_j(this, var_1); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityHanging_attackEntityFrom(this, var_1, var_2); }, "$moveEntity", function(var_1, -var_2, var_3) { nms_EntityHanging_moveEntity(this, var_1, var_2, var_3); }, "$addVelocity", function(var_1, var_2, var_3) { nms_EntityHanging_addVelocity(this, var_1, var_2, var_3); }], -nms_EntityPainting, "EntityPainting", 24, nms_EntityHanging, [], 0, 3, 0, ["$func_82329_d", function() { return nms_EntityPainting_func_82329_d(this); }, "$func_82330_g", function() { return nms_EntityPainting_func_82330_g(this); }, "$dropItemStack", function() { nms_EntityPainting_dropItemStack(this); }], -nms_RenderPainting, "RenderPainting", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderPainting_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityItemFrame, "EntityItemFrame", 24, nms_EntityHanging, [], 0, 3, 0, ["$entityInit", function() { nms_EntityItemFrame_entityInit(this); }, "$func_82329_d", function() { return nms_EntityItemFrame_func_82329_d(this); }, "$func_82330_g", function() { return nms_EntityItemFrame_func_82330_g(this); }, "$isInRangeToRenderDist", function(var_1) { return nms_EntityItemFrame_isInRangeToRenderDist(this, var_1); }, "$dropItemStack", function() { nms_EntityItemFrame_dropItemStack(this); }, "$interact", function(var_1) -{ return nms_EntityItemFrame_interact(this, var_1); }], -nms_RenderItemFrame, "RenderItemFrame", 24, nms_Render, [], 0, 3, 0, ["$updateIcons", function(var_1) { nms_RenderItemFrame_updateIcons(this, var_1); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderItemFrame_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_IProjectile, 0, jl_Object, [], 3, 3, 0, 0, -nms_EntityArrow, "EntityArrow", 24, nms_Entity, [nms_IProjectile], 0, 3, 0, ["$entityInit", function() { nms_EntityArrow_entityInit(this); }, "$setPositionAndRotation2", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_EntityArrow_setPositionAndRotation2(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$setVelocity", function(var_1, var_2, var_3) { nms_EntityArrow_setVelocity(this, var_1, var_2, var_3); }, "$onUpdate", function() { nms_EntityArrow_onUpdate(this); }, "$onCollideWithPlayer", function(var_1) -{ nms_EntityArrow_onCollideWithPlayer(this, var_1); }, "$canTriggerWalking", function() { return nms_EntityArrow_canTriggerWalking(this); }, "$getShadowSize", function() { return nms_EntityArrow_getShadowSize(this); }, "$canAttackWithItem", function() { return nms_EntityArrow_canAttackWithItem(this); }], -nms_RenderArrow, "RenderArrow", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderArrow_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityThrowable, "EntityThrowable", 24, nms_Entity, [nms_IProjectile], 1, 3, 0, ["$entityInit", function() { nms_EntityThrowable_entityInit(this); }, "$isInRangeToRenderDist", function(var_1) { return nms_EntityThrowable_isInRangeToRenderDist(this, var_1); }, "$func_70182_d", function() { return nms_EntityThrowable_func_70182_d(this); }, "$func_70183_g", function() { return nms_EntityThrowable_func_70183_g(this); }, "$setVelocity", function(var_1, var_2, var_3) { nms_EntityThrowable_setVelocity(this, var_1, -var_2, var_3); }, "$onUpdate", function() { nms_EntityThrowable_onUpdate(this); }, "$getGravityVelocity", function() { return nms_EntityThrowable_getGravityVelocity(this); }, "$getShadowSize", function() { return nms_EntityThrowable_getShadowSize(this); }], -nms_EntitySnowball, "EntitySnowball", 24, nms_EntityThrowable, [], 0, 3, 0, ["$onImpact", function(var_1) { nms_EntitySnowball_onImpact(this, var_1); }], -nms_RenderSnowball, "RenderSnowball", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderSnowball_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_Item, 0, jl_Object, [], 0, 3, nms_Item_$callClinit, ["$getSpriteNumber", function() { return nms_Item_getSpriteNumber(this); }, "$getIconFromDamage", function(var_1) { return nms_Item_getIconFromDamage(this, var_1); }, "$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_Item_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$getStrVsBlock0", function(var_1, var_2) { return nms_Item_getStrVsBlock(this, var_1, -var_2); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_Item_onItemRightClick(this, var_1, var_2, var_3); }, "$onEaten", function(var_1, var_2, var_3) { return nms_Item_onEaten(this, var_1, var_2, var_3); }, "$getMetadata", function(var_1) { return nms_Item_getMetadata(this, var_1); }, "$hitEntity0", function(var_1, var_2, var_3) { return nms_Item_hitEntity(this, var_1, var_2, var_3); }, "$onBlockDestroyed", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { return nms_Item_onBlockDestroyed(this, -var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getDamageVsEntity", function(var_1) { return nms_Item_getDamageVsEntity(this, var_1); }, "$canHarvestBlock", function(var_1) { return nms_Item_canHarvestBlock(this, var_1); }, "$itemInteractionForEntity", function(var_1, var_2) { return nms_Item_itemInteractionForEntity(this, var_1, var_2); }, "$isFull3D", function() { return nms_Item_isFull3D(this); }, "$shouldRotateAroundWhenRendering", function() { return nms_Item_shouldRotateAroundWhenRendering(this); -}, "$getUnlocalizedName0", function() { return nms_Item_getUnlocalizedName(this); }, "$getUnlocalizedName", function(var_1) { return nms_Item_getUnlocalizedName0(this, var_1); }, "$getShareTag", function() { return nms_Item_getShareTag(this); }, "$getColorFromItemStack", function(var_1, var_2) { return nms_Item_getColorFromItemStack(this, var_1, var_2); }, "$onUpdate2", function(var_1, var_2, var_3, var_4, var_5) { nms_Item_onUpdate(this, var_1, var_2, var_3, var_4, var_5); }, "$onCreated", function(var_1, var_2, -var_3) { nms_Item_onCreated(this, var_1, var_2, var_3); }, "$getItemUseAction", function(var_1) { return nms_Item_getItemUseAction(this, var_1); }, "$getMaxItemUseDuration", function(var_1) { return nms_Item_getMaxItemUseDuration(this, var_1); }, "$onPlayerStoppedUsing", function(var_1, var_2, var_3, var_4) { nms_Item_onPlayerStoppedUsing(this, var_1, var_2, var_3, var_4); }, "$addInformation", function(var_1, var_2, var_3, var_4) { nms_Item_addInformation(this, var_1, var_2, var_3, var_4); }, "$getItemDisplayName", -function(var_1) { return nms_Item_getItemDisplayName(this, var_1); }, "$hasEffect0", function(var_1) { return nms_Item_hasEffect(this, var_1); }, "$getRarity", function(var_1) { return nms_Item_getRarity(this, var_1); }, "$isItemTool", function(var_1) { return nms_Item_isItemTool(this, var_1); }, "$getItemEnchantability", function() { return nms_Item_getItemEnchantability(this); }, "$requiresMultipleRenderPasses", function() { return nms_Item_requiresMultipleRenderPasses(this); }, "$getIconFromDamageForRenderPass", -function(var_1, var_2) { return nms_Item_getIconFromDamageForRenderPass(this, var_1, var_2); }, "$getSubItems", function(var_1, var_2, var_3) { nms_Item_getSubItems(this, var_1, var_2, var_3); }, "$getCreativeTab", function() { return nms_Item_getCreativeTab(this); }, "$getIsRepairable", function(var_1, var_2) { return nms_Item_getIsRepairable(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_Item_registerIcons(this, var_1); }], -nms_EntityEnderPearl, "EntityEnderPearl", 24, nms_EntityThrowable, [], 0, 3, 0, ["$onImpact", function(var_1) { nms_EntityEnderPearl_onImpact(this, var_1); }], -nms_EntityEnderEye, "EntityEnderEye", 24, nms_Entity, [], 0, 3, 0, ["$entityInit", function() { nms_EntityEnderEye_entityInit(this); }, "$isInRangeToRenderDist", function(var_1) { return nms_EntityEnderEye_isInRangeToRenderDist(this, var_1); }, "$setVelocity", function(var_1, var_2, var_3) { nms_EntityEnderEye_setVelocity(this, var_1, var_2, var_3); }, "$onUpdate", function() { nms_EntityEnderEye_onUpdate(this); }, "$getShadowSize", function() { return nms_EntityEnderEye_getShadowSize(this); }, "$getBrightnessForRender", -function(var_1) { return nms_EntityEnderEye_getBrightnessForRender(this, var_1); }, "$canAttackWithItem", function() { return nms_EntityEnderEye_canAttackWithItem(this); }], -nms_EntityEgg, "EntityEgg", 24, nms_EntityThrowable, [], 0, 3, 0, ["$onImpact", function(var_1) { nms_EntityEgg_onImpact(this, var_1); }], -nms_EntityPotion, "EntityPotion", 24, nms_EntityThrowable, [], 0, 3, 0, ["$getGravityVelocity", function() { return nms_EntityPotion_getGravityVelocity(this); }, "$func_70182_d", function() { return nms_EntityPotion_func_70182_d(this); }, "$func_70183_g", function() { return nms_EntityPotion_func_70183_g(this); }, "$onImpact", function(var_1) { nms_EntityPotion_onImpact(this, var_1); }], -nms_EntityExpBottle, "EntityExpBottle", 24, nms_EntityThrowable, [], 0, 3, 0, ["$getGravityVelocity", function() { return nms_EntityExpBottle_getGravityVelocity(this); }, "$func_70182_d", function() { return nms_EntityExpBottle_func_70182_d(this); }, "$func_70183_g", function() { return nms_EntityExpBottle_func_70183_g(this); }, "$onImpact", function(var_1) { nms_EntityExpBottle_onImpact(this, var_1); }], -nms_EntityFireworkRocket, "EntityFireworkRocket", 24, nms_Entity, [], 0, 3, 0, ["$entityInit", function() { nms_EntityFireworkRocket_entityInit(this); }, "$isInRangeToRenderDist", function(var_1) { return nms_EntityFireworkRocket_isInRangeToRenderDist(this, var_1); }, "$setVelocity", function(var_1, var_2, var_3) { nms_EntityFireworkRocket_setVelocity(this, var_1, var_2, var_3); }, "$onUpdate", function() { nms_EntityFireworkRocket_onUpdate(this); }, "$handleHealthUpdate", function(var_1) { nms_EntityFireworkRocket_handleHealthUpdate(this, -var_1); }, "$getShadowSize", function() { return nms_EntityFireworkRocket_getShadowSize(this); }, "$getBrightnessForRender", function(var_1) { return nms_EntityFireworkRocket_getBrightnessForRender(this, var_1); }, "$canAttackWithItem", function() { return nms_EntityFireworkRocket_canAttackWithItem(this); }], -nms_EntityFireball, "EntityFireball", 24, nms_Entity, [], 1, 3, 0, ["$entityInit", function() { nms_EntityFireball_entityInit(this); }, "$isInRangeToRenderDist", function(var_1) { return nms_EntityFireball_isInRangeToRenderDist(this, var_1); }, "$onUpdate", function() { nms_EntityFireball_onUpdate(this); }, "$getMotionFactor", function() { return nms_EntityFireball_getMotionFactor(this); }, "$canBeCollidedWith", function() { return nms_EntityFireball_canBeCollidedWith(this); }, "$getCollisionBorderSize", function() -{ return nms_EntityFireball_getCollisionBorderSize(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityFireball_attackEntityFrom(this, var_1, var_2); }, "$getShadowSize", function() { return nms_EntityFireball_getShadowSize(this); }, "$getBrightnessForRender", function(var_1) { return nms_EntityFireball_getBrightnessForRender(this, var_1); }], -nms_EntityLargeFireball, "EntityLargeFireball", 24, nms_EntityFireball, [], 0, 3, 0, ["$onImpact", function(var_1) { nms_EntityLargeFireball_onImpact(this, var_1); }], -nms_RenderFireball, "RenderFireball", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderFireball_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }]]); -$rt_metadata([nms_EntitySmallFireball, "EntitySmallFireball", 24, nms_EntityFireball, [], 0, 3, 0, ["$onImpact", function(var_1) { nms_EntitySmallFireball_onImpact(this, var_1); }, "$canBeCollidedWith", function() { return nms_EntitySmallFireball_canBeCollidedWith(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntitySmallFireball_attackEntityFrom(this, var_1, var_2); }], -nms_EntityWitherSkull, "EntityWitherSkull", 24, nms_EntityFireball, [], 0, 3, 0, ["$getMotionFactor", function() { return nms_EntityWitherSkull_getMotionFactor(this); }, "$isBurning", function() { return nms_EntityWitherSkull_isBurning(this); }, "$func_82146_a", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_EntityWitherSkull_func_82146_a(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onImpact", function(var_1) { nms_EntityWitherSkull_onImpact(this, var_1); }, "$canBeCollidedWith", function() -{ return nms_EntityWitherSkull_canBeCollidedWith(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityWitherSkull_attackEntityFrom(this, var_1, var_2); }, "$entityInit", function() { nms_EntityWitherSkull_entityInit(this); }], -nms_RenderWitherSkull, "RenderWitherSkull", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderWitherSkull_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityItem, "EntityItem", 24, nms_Entity, [], 0, 3, 0, ["$canTriggerWalking", function() { return nms_EntityItem_canTriggerWalking(this); }, "$entityInit", function() { nms_EntityItem_entityInit(this); }, "$onUpdate", function() { nms_EntityItem_onUpdate(this); }, "$handleWaterMovement", function() { return nms_EntityItem_handleWaterMovement(this); }, "$dealFireDamage", function(var_1) { nms_EntityItem_dealFireDamage(this, var_1); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityItem_attackEntityFrom(this, -var_1, var_2); }, "$onCollideWithPlayer", function(var_1) { nms_EntityItem_onCollideWithPlayer(this, var_1); }, "$getEntityName", function() { return nms_EntityItem_getEntityName(this); }, "$canAttackWithItem", function() { return nms_EntityItem_canAttackWithItem(this); }, "$travelToDimension", function(var_1) { nms_EntityItem_travelToDimension(this, var_1); }], -nms_RenderItem, "RenderItem", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderItem_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityXPOrb, "EntityXPOrb", 24, nms_Entity, [], 0, 3, 0, ["$canTriggerWalking", function() { return nms_EntityXPOrb_canTriggerWalking(this); }, "$entityInit", function() { nms_EntityXPOrb_entityInit(this); }, "$getBrightnessForRender", function(var_1) { return nms_EntityXPOrb_getBrightnessForRender(this, var_1); }, "$onUpdate", function() { nms_EntityXPOrb_onUpdate(this); }, "$handleWaterMovement", function() { return nms_EntityXPOrb_handleWaterMovement(this); }, "$dealFireDamage", function(var_1) { nms_EntityXPOrb_dealFireDamage(this, -var_1); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityXPOrb_attackEntityFrom(this, var_1, var_2); }, "$onCollideWithPlayer", function(var_1) { nms_EntityXPOrb_onCollideWithPlayer(this, var_1); }, "$canAttackWithItem", function() { return nms_EntityXPOrb_canAttackWithItem(this); }], -nms_RenderXPOrb, "RenderXPOrb", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderXPOrb_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityTNTPrimed, "EntityTNTPrimed", 24, nms_Entity, [], 0, 3, 0, ["$entityInit", function() { nms_EntityTNTPrimed_entityInit(this); }, "$canTriggerWalking", function() { return nms_EntityTNTPrimed_canTriggerWalking(this); }, "$canBeCollidedWith", function() { return nms_EntityTNTPrimed_canBeCollidedWith(this); }, "$onUpdate", function() { nms_EntityTNTPrimed_onUpdate(this); }, "$getShadowSize", function() { return nms_EntityTNTPrimed_getShadowSize(this); }], -nms_RenderTNTPrimed, "RenderTNTPrimed", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderTNTPrimed_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityFallingSand, "EntityFallingSand", 24, nms_Entity, [], 0, 3, 0, ["$canTriggerWalking", function() { return nms_EntityFallingSand_canTriggerWalking(this); }, "$entityInit", function() { nms_EntityFallingSand_entityInit(this); }, "$canBeCollidedWith", function() { return nms_EntityFallingSand_canBeCollidedWith(this); }, "$onUpdate", function() { nms_EntityFallingSand_onUpdate(this); }, "$fall", function(var_1) { nms_EntityFallingSand_fall(this, var_1); }, "$getShadowSize", function() { return nms_EntityFallingSand_getShadowSize(this); -}, "$canRenderOnFire", function() { return nms_EntityFallingSand_canRenderOnFire(this); }], -nms_RenderFallingSand, "RenderFallingSand", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderFallingSand_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityMinecart, "EntityMinecart", 24, nms_Entity, [], 1, 3, 0, ["$setWorld", function(var_1) { nms_EntityMinecart_setWorld(this, var_1); }, "$canTriggerWalking", function() { return nms_EntityMinecart_canTriggerWalking(this); }, "$entityInit", function() { nms_EntityMinecart_entityInit(this); }, "$getCollisionBox", function(var_1) { return nms_EntityMinecart_getCollisionBox(this, var_1); }, "$getBoundingBox", function() { return nms_EntityMinecart_getBoundingBox(this); }, "$canBePushed", function() { return nms_EntityMinecart_canBePushed(this); -}, "$getMountedYOffset", function() { return nms_EntityMinecart_getMountedYOffset(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityMinecart_attackEntityFrom(this, var_1, var_2); }, "$killMinecart", function(var_1) { nms_EntityMinecart_killMinecart(this, var_1); }, "$performHurtAnimation", function() { nms_EntityMinecart_performHurtAnimation(this); }, "$canBeCollidedWith", function() { return nms_EntityMinecart_canBeCollidedWith(this); }, "$setDead", function() { nms_EntityMinecart_setDead(this); -}, "$onUpdate", function() { nms_EntityMinecart_onUpdate(this); }, "$onActivatorRailPass", function(var_1, var_2, var_3, var_4) { nms_EntityMinecart_onActivatorRailPass(this, var_1, var_2, var_3, var_4); }, "$updateOnTrack", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_EntityMinecart_updateOnTrack(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$applyDrag", function() { nms_EntityMinecart_applyDrag(this); }, "$getShadowSize", function() { return nms_EntityMinecart_getShadowSize(this); -}, "$applyEntityCollision", function(var_1) { nms_EntityMinecart_applyEntityCollision(this, var_1); }, "$setPositionAndRotation2", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_EntityMinecart_setPositionAndRotation2(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$setVelocity", function(var_1, var_2, var_3) { nms_EntityMinecart_setVelocity(this, var_1, var_2, var_3); }, "$getDefaultDisplayTile", function() { return nms_EntityMinecart_getDefaultDisplayTile(this); }, "$getDefaultDisplayTileData", -function() { return nms_EntityMinecart_getDefaultDisplayTileData(this); }, "$getDefaultDisplayTileOffset", function() { return nms_EntityMinecart_getDefaultDisplayTileOffset(this); }, "$getEntityName", function() { return nms_EntityMinecart_getEntityName(this); }, "$isInvNameLocalized", function() { return nms_EntityMinecart_isInvNameLocalized(this); }], -nms_EntityMinecartTNT, "EntityMinecartTNT", 24, nms_EntityMinecart, [], 0, 3, 0, ["$getMinecartType", function() { return nms_EntityMinecartTNT_getMinecartType(this); }, "$getDefaultDisplayTile", function() { return nms_EntityMinecartTNT_getDefaultDisplayTile(this); }, "$onUpdate", function() { nms_EntityMinecartTNT_onUpdate(this); }, "$killMinecart", function(var_1) { nms_EntityMinecartTNT_killMinecart(this, var_1); }, "$fall", function(var_1) { nms_EntityMinecartTNT_fall(this, var_1); }, "$onActivatorRailPass", -function(var_1, var_2, var_3, var_4) { nms_EntityMinecartTNT_onActivatorRailPass(this, var_1, var_2, var_3, var_4); }, "$handleHealthUpdate", function(var_1) { nms_EntityMinecartTNT_handleHealthUpdate(this, var_1); }, "$func_82146_a", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_EntityMinecartTNT_func_82146_a(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$func_96091_a", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { return nms_EntityMinecartTNT_func_96091_a(this, var_1, -var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_RenderMinecart, "RenderMinecart", 24, nms_Render, [], 0, 3, 0, ["$renderBlockInMinecart", function(var_1, var_2, var_3, var_4) { nms_RenderMinecart_renderBlockInMinecart(this, var_1, var_2, var_3, var_4); }, "$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderMinecart_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_RenderTntMinecart, "RenderTntMinecart", 24, nms_RenderMinecart, [], 0, 3, 0, ["$renderBlockInMinecart", function(var_1, var_2, var_3, var_4) { nms_RenderTntMinecart_renderBlockInMinecart(this, var_1, var_2, var_3, var_4); }], -nms_EntityMinecartMobSpawner, "EntityMinecartMobSpawner", 24, nms_EntityMinecart, [], 0, 3, 0, ["$getMinecartType", function() { return nms_EntityMinecartMobSpawner_getMinecartType(this); }, "$getDefaultDisplayTile", function() { return nms_EntityMinecartMobSpawner_getDefaultDisplayTile(this); }, "$onUpdate", function() { nms_EntityMinecartMobSpawner_onUpdate(this); }], -nms_RenderMinecartMobSpawner, "RenderMinecartMobSpawner", 24, nms_RenderMinecart, [], 0, 3, 0, ["$renderBlockInMinecart", function(var_1, var_2, var_3, var_4) { nms_RenderMinecartMobSpawner_renderBlockInMinecart(this, var_1, var_2, var_3, var_4); }], -nms_EntityBoat, "EntityBoat", 24, nms_Entity, [], 0, 3, 0, ["$canTriggerWalking", function() { return nms_EntityBoat_canTriggerWalking(this); }, "$entityInit", function() { nms_EntityBoat_entityInit(this); }, "$getCollisionBox", function(var_1) { return nms_EntityBoat_getCollisionBox(this, var_1); }, "$getBoundingBox", function() { return nms_EntityBoat_getBoundingBox(this); }, "$canBePushed", function() { return nms_EntityBoat_canBePushed(this); }, "$getMountedYOffset", function() { return nms_EntityBoat_getMountedYOffset(this); -}, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityBoat_attackEntityFrom(this, var_1, var_2); }, "$performHurtAnimation", function() { nms_EntityBoat_performHurtAnimation(this); }, "$canBeCollidedWith", function() { return nms_EntityBoat_canBeCollidedWith(this); }, "$setPositionAndRotation2", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_EntityBoat_setPositionAndRotation2(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$setVelocity", function(var_1, var_2, var_3) { nms_EntityBoat_setVelocity(this, -var_1, var_2, var_3); }, "$onUpdate", function() { nms_EntityBoat_onUpdate(this); }, "$updateRiderPosition", function() { nms_EntityBoat_updateRiderPosition(this); }, "$getShadowSize", function() { return nms_EntityBoat_getShadowSize(this); }, "$interact", function(var_1) { return nms_EntityBoat_interact(this, var_1); }], -nms_RenderBoat, "RenderBoat", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderBoat_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityFishHook, "EntityFishHook", 24, nms_Entity, [], 0, 3, 0, ["$entityInit", function() { nms_EntityFishHook_entityInit(this); }, "$isInRangeToRenderDist", function(var_1) { return nms_EntityFishHook_isInRangeToRenderDist(this, var_1); }, "$setPositionAndRotation2", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_EntityFishHook_setPositionAndRotation2(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$setVelocity", function(var_1, var_2, var_3) { nms_EntityFishHook_setVelocity(this, var_1, -var_2, var_3); }, "$onUpdate", function() { nms_EntityFishHook_onUpdate(this); }, "$getShadowSize", function() { return nms_EntityFishHook_getShadowSize(this); }, "$setDead", function() { nms_EntityFishHook_setDead(this); }], -nms_RenderFish, "RenderFish", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderFish_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_EntityWeatherEffect, "EntityWeatherEffect", 24, nms_Entity, [], 1, 3, 0, 0, -nms_EntityLightningBolt, "EntityLightningBolt", 24, nms_EntityWeatherEffect, [], 0, 3, 0, ["$onUpdate", function() { nms_EntityLightningBolt_onUpdate(this); }, "$entityInit", function() { nms_EntityLightningBolt_entityInit(this); }, "$isInRangeToRenderVec3D", function(var_1) { return nms_EntityLightningBolt_isInRangeToRenderVec3D(this, var_1); }], -nms_RenderLightningBolt, "RenderLightningBolt", 24, nms_Render, [], 0, 3, 0, ["$doRender", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_RenderLightningBolt_doRender(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_MapItemRenderer, 0, jl_Object, [], 0, 3, 0, 0, -nms_StatBase, 0, jl_Object, [], 0, 3, nms_StatBase_$callClinit, ["$toString", function() { return nms_StatBase_toString(this); }], -nms_Achievement, "Achievement", 24, nms_StatBase, [], 0, 3, 0, 0, -nms_RenderList, 0, jl_Object, [], 0, 3, 0, 0, -nms_GuiNewChat, 0, nms_Gui, [], 0, 3, 0, 0, -nms_EnumChatFormatting, "EnumChatFormatting", 24, jl_Enum, [], 12, 3, 0, ["$toString", function() { return nms_EnumChatFormatting_toString(this); }], -cjj_InfTree, 0, jl_Object, [], 4, 0, 0, 0, -cjj_InfCodes, 0, jl_Object, [], 4, 0, 0, 0, -nms_PlayerControllerMP, 0, jl_Object, [], 0, 3, 0, 0, -nms_EntityOtherPlayerMP, "EntityOtherPlayerMP", 24, nms_EntityPlayer, [], 0, 3, 0, ["$resetHeight", function() { nms_EntityOtherPlayerMP_resetHeight(this); }, "$attackEntityFrom", function(var_1, var_2) { return nms_EntityOtherPlayerMP_attackEntityFrom(this, var_1, var_2); }, "$setPositionAndRotation2", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_EntityOtherPlayerMP_setPositionAndRotation2(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$updateCloak", function() { nms_EntityOtherPlayerMP_updateCloak(this); -}, "$onUpdate", function() { nms_EntityOtherPlayerMP_onUpdate(this); }, "$getShadowSize", function() { return nms_EntityOtherPlayerMP_getShadowSize(this); }, "$onLivingUpdate", function() { nms_EntityOtherPlayerMP_onLivingUpdate(this); }, "$setCurrentItemOrArmor", function(var_1, var_2) { nms_EntityOtherPlayerMP_setCurrentItemOrArmor(this, var_1, var_2); }, "$getEyeHeight", function() { return nms_EntityOtherPlayerMP_getEyeHeight(this); }], -nms_GuiParticle, 0, nms_Gui, [], 0, 3, 0, 0, -nms_MovingObjectPosition, 0, jl_Object, [], 0, 3, 0, 0, -nms_EnumMovingObjectType, 0, jl_Enum, [], 12, 3, 0, 0, -nms_ItemStack, "ItemStack", 24, jl_Object, [], 4, 3, 0, ["$toString", function() { return nms_ItemStack_toString(this); }], -nms_PlayerCapabilities, 0, jl_Object, [], 0, 3, 0, 0, -nms_Block, "Block", 24, jl_Object, [], 0, 3, nms_Block_$callClinit, ["$initializeBlock", function() { nms_Block_initializeBlock(this); }, "$renderAsNormalBlock", function() { return nms_Block_renderAsNormalBlock(this); }, "$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_Block_getBlocksMovement(this, var_1, var_2, var_3, var_4); }, "$getRenderType", function() { return nms_Block_getRenderType(this); }, "$getBlockBrightness", function(var_1, var_2, var_3, var_4) { return nms_Block_getBlockBrightness(this, -var_1, var_2, var_3, var_4); }, "$getMixedBrightnessForBlock", function(var_1, var_2, var_3, var_4) { return nms_Block_getMixedBrightnessForBlock(this, var_1, var_2, var_3, var_4); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_Block_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$getBlockTexture", function(var_1, var_2, var_3, var_4, var_5) { return nms_Block_getBlockTexture(this, var_1, var_2, var_3, var_4, var_5); }, "$getIcon", function(var_1, var_2) -{ return nms_Block_getIcon(this, var_1, var_2); }, "$getSelectedBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_Block_getSelectedBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_Block_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_Block_getCollisionBoundingBoxFromPool(this, -var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_Block_isOpaqueCube(this); }, "$canCollideCheck", function(var_1, var_2) { return nms_Block_canCollideCheck(this, var_1, var_2); }, "$isCollidable", function() { return nms_Block_isCollidable(this); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_Block_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockDestroyedByPlayer", function(var_1, var_2, var_3, var_4, var_5) { nms_Block_onBlockDestroyedByPlayer(this, -var_1, var_2, var_3, var_4, var_5); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_Block_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_Block_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_Block_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$quantityDropped", function(var_1) { return nms_Block_quantityDropped(this, -var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_Block_idDropped(this, var_1, var_2, var_3); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_Block_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$damageDropped", function(var_1) { return nms_Block_damageDropped(this, var_1); }, "$getExplosionResistance", function(var_1) { return nms_Block_getExplosionResistance(this, var_1); }, "$collisionRayTrace", function(var_1, -var_2, var_3, var_4, var_5, var_6) { return nms_Block_collisionRayTrace(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockDestroyedByExplosion", function(var_1, var_2, var_3, var_4, var_5) { nms_Block_onBlockDestroyedByExplosion(this, var_1, var_2, var_3, var_4, var_5); }, "$getRenderBlockPass", function() { return nms_Block_getRenderBlockPass(this); }, "$canPlaceBlockOnSide", function(var_1, var_2, var_3, var_4, var_5) { return nms_Block_canPlaceBlockOnSide0(this, var_1, var_2, var_3, var_4, var_5); -}, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_Block_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_Block_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onEntityWalking", function(var_1, var_2, var_3, var_4, var_5) { nms_Block_onEntityWalking(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockPlaced", function(var_1, var_2, -var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_Block_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockClicked", function(var_1, var_2, var_3, var_4, var_5) { nms_Block_onBlockClicked(this, var_1, var_2, var_3, var_4, var_5); }, "$velocityToAddToEntity", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_Block_velocityToAddToEntity(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, -var_4) { nms_Block_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$getBlockColor", function() { return nms_Block_getBlockColor(this); }, "$getRenderColor", function(var_1) { return nms_Block_getRenderColor(this, var_1); }, "$colorMultiplier", function(var_1, var_2, var_3, var_4) { return nms_Block_colorMultiplier(this, var_1, var_2, var_3, var_4); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_Block_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, -var_5); }, "$canProvidePower", function() { return nms_Block_canProvidePower(this); }, "$onEntityCollidedWithBlock", function(var_1, var_2, var_3, var_4, var_5) { nms_Block_onEntityCollidedWithBlock(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingStrongPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_Block_isProvidingStrongPower(this, var_1, var_2, var_3, var_4, var_5); }, "$setBlockBoundsForItemRender", function() { nms_Block_setBlockBoundsForItemRender(this); }, "$quantityDroppedWithBonus", -function(var_1, var_2) { return nms_Block_quantityDroppedWithBonus(this, var_1, var_2); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_Block_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onPostBlockPlaced", function(var_1, var_2, var_3, var_4, var_5) { nms_Block_onPostBlockPlaced(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockEventReceived", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_Block_onBlockEventReceived(this, var_1, var_2, -var_3, var_4, var_5, var_6); }, "$getMobilityFlag", function() { return nms_Block_getMobilityFlag(this); }, "$onFallenUpon", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_Block_onFallenUpon(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_Block_idPicked(this, var_1, var_2, var_3, var_4); }, "$getDamageValue", function(var_1, var_2, var_3, var_4) { return nms_Block_getDamageValue(this, var_1, var_2, var_3, var_4); }, "$getSubBlocks", -function(var_1, var_2, var_3) { nms_Block_getSubBlocks(this, var_1, var_2, var_3); }, "$isFlowerPot", function() { return nms_Block_isFlowerPot(this); }, "$canDropFromExplosion", function(var_1) { return nms_Block_canDropFromExplosion(this, var_1); }, "$hasComparatorInputOverride", function() { return nms_Block_hasComparatorInputOverride(this); }, "$getComparatorInputOverride", function(var_1, var_2, var_3, var_4, var_5) { return nms_Block_getComparatorInputOverride(this, var_1, var_2, var_3, var_4, var_5); -}, "$registerIcons", function(var_1) { nms_Block_registerIcons(this, var_1); }, "$getItemIconName", function() { return nms_Block_getItemIconName(this); }], -nms_Container, 0, jl_Object, [], 1, 3, 0, ["$addCraftingToCrafters", function(var_1) { nms_Container_addCraftingToCrafters(this, var_1); }, "$detectAndSendChanges", function() { nms_Container_detectAndSendChanges(this); }, "$func_94530_a", function(var_1, var_2) { return nms_Container_func_94530_a(this, var_1, var_2); }, "$retrySlotClick", function(var_1, var_2, var_3, var_4) { nms_Container_retrySlotClick(this, var_1, var_2, var_3, var_4); }, "$onCraftGuiClosed", function(var_1) { nms_Container_onCraftGuiClosed(this, -var_1); }, "$onCraftMatrixChanged", function(var_1) { nms_Container_onCraftMatrixChanged(this, var_1); }, "$updateProgressBar", function(var_1, var_2) { nms_Container_updateProgressBar(this, var_1, var_2); }, "$func_94531_b", function(var_1) { return nms_Container_func_94531_b(this, var_1); }], -nms_EntityList, 0, jl_Object, [], 0, 3, 0, 0, -jl_NegativeArraySizeException, "NegativeArraySizeException", 15, jl_RuntimeException, [], 0, 3, 0, 0, -ji_UTFDataFormatException, "UTFDataFormatException", 13, ji_IOException, [], 0, 3, 0, 0, -nms_ITexturePack, 0, jl_Object, [], 3, 3, 0, 0, -nms_TexturePackImplementation, 0, jl_Object, [nms_ITexturePack], 1, 3, 0, 0, -nms_TexturePackDefault, "TexturePackDefault", 24, nms_TexturePackImplementation, [], 0, 3, 0, 0, -nms_IntHashMapEntry, 0, jl_Object, [], 0, 0, 0, 0, -nms_Icon, 0, jl_Object, [], 3, 3, 0, 0, -nle_TextureTerrainMap$TerrainIcon, "TextureTerrainMap$TerrainIcon", 26, jl_Object, [nms_Icon], 0, 0, 0, ["$getOriginX", function() { return nle_TextureTerrainMap$TerrainIcon_getOriginX(this); }, "$getOriginY", function() { return nle_TextureTerrainMap$TerrainIcon_getOriginY(this); }, "$getMinU", function() { return nle_TextureTerrainMap$TerrainIcon_getMinU(this); }, "$getMaxU", function() { return nle_TextureTerrainMap$TerrainIcon_getMaxU(this); }, "$getInterpolatedU", function(var_1) { return nle_TextureTerrainMap$TerrainIcon_getInterpolatedU(this, -var_1); }, "$getMinV", function() { return nle_TextureTerrainMap$TerrainIcon_getMinV(this); }, "$getMaxV", function() { return nle_TextureTerrainMap$TerrainIcon_getMaxV(this); }, "$getInterpolatedV", function(var_1) { return nle_TextureTerrainMap$TerrainIcon_getInterpolatedV(this, var_1); }, "$getIconName", function() { return nle_TextureTerrainMap$TerrainIcon_getIconName(this); }, "$getSheetWidth", function() { return nle_TextureTerrainMap$TerrainIcon_getSheetWidth(this); }, "$getSheetHeight", function() { -return nle_TextureTerrainMap$TerrainIcon_getSheetHeight(this); }]]); -$rt_metadata([jn_FloatBuffer, 0, jn_Buffer, [jl_Comparable], 1, 3, 0, 0, -nms_ModelSpider, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSpider_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSpider_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelRenderer, "ModelRenderer", 24, jl_Object, [], 0, 3, 0, 0, -nms_ModelSilverfish, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSilverfish_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSilverfish_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelCreeper, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelCreeper_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelCreeper_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelBiped, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelBiped_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelBiped_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelEnderman, 0, nms_ModelBiped, [], 0, 3, 0, ["$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelEnderman_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelSnowMan, 0, nms_ModelBase, [], 0, 3, 0, ["$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSnowMan_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSnowMan_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelZombie, 0, nms_ModelBiped, [], 0, 3, 0, ["$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelZombie_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelSkeleton, 0, nms_ModelZombie, [], 0, 3, 0, ["$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelSkeleton_setLivingAnimations(this, var_1, var_2, var_3, var_4); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelSkeleton_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelVillager, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelVillager_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelVillager_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelWitch, 0, nms_ModelVillager, [], 0, 3, 0, ["$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelWitch_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelBlaze, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelBlaze_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelBlaze_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelZombieVillager, 0, nms_ModelBiped, [], 0, 3, 0, ["$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelZombieVillager_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelMagmaCube, 0, nms_ModelBase, [], 0, 3, 0, ["$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelMagmaCube_setLivingAnimations(this, var_1, var_2, var_3, var_4); }, "$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelMagmaCube_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nle_ModelBipedNewSkins, 0, nms_ModelBiped, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nle_ModelBipedNewSkins_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nle_ModelBipedNewSkins_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelGhast, 0, nms_ModelBase, [], 0, 3, 0, ["$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelGhast_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelGhast_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelIronGolem, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelIronGolem_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelIronGolem_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelIronGolem_setLivingAnimations(this, var_1, var_2, var_3, -var_4); }], -nms_ModelBat, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelBat_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelDragon, 0, nms_ModelBase, [], 0, 3, 0, ["$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelDragon_setLivingAnimations(this, var_1, var_2, var_3, var_4); }, "$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelDragon_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ModelWither, 0, nms_ModelBase, [], 0, 3, 0, ["$render0", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelWither_render(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setRotationAngles", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_ModelWither_setRotationAngles(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setLivingAnimations", function(var_1, var_2, var_3, var_4) { nms_ModelWither_setLivingAnimations(this, var_1, var_2, var_3, var_4); }], -nms_ModelSkeletonHead, 0, nms_ModelBase, [], 0, 3, 0, 0, -nms_ModelMinecart, 0, nms_ModelBase, [], 0, 3, 0, 0, -nms_ModelBoat, 0, nms_ModelBase, [], 0, 3, 0, 0, -nlea_EaglerAdapterImpl2$FramebufferGL, 0, jl_Object, [], 4, 3, 0, 0, -ju_Arrays$NaturalOrder, 0, jl_Object, [ju_Comparator], 0, 0, 0, ["$compare", function(var_1, var_2) { return ju_Arrays$NaturalOrder_compare(this, var_1, var_2); }], -ju_Collections$_clinit_$lambda$_61_0, 0, jl_Object, [ju_Comparator], 0, 3, 0, ["$compare", function(var_1, var_2) { return ju_Collections$_clinit_$lambda$_61_0_compare(this, var_1, var_2); }], -ju_Collections$_clinit_$lambda$_61_1, 0, jl_Object, [ju_Comparator], 0, 3, 0, 0, -ji_UnsupportedEncodingException, "UnsupportedEncodingException", 13, ji_IOException, [], 0, 3, 0, 0, -nms_ItemTool, 0, nms_Item, [], 0, 3, 0, ["$getStrVsBlock0", function(var_1, var_2) { return nms_ItemTool_getStrVsBlock(this, var_1, var_2); }, "$hitEntity0", function(var_1, var_2, var_3) { return nms_ItemTool_hitEntity(this, var_1, var_2, var_3); }, "$onBlockDestroyed", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { return nms_ItemTool_onBlockDestroyed(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getDamageVsEntity", function(var_1) { return nms_ItemTool_getDamageVsEntity(this, var_1); -}, "$isFull3D", function() { return nms_ItemTool_isFull3D(this); }, "$getItemEnchantability", function() { return nms_ItemTool_getItemEnchantability(this); }, "$getIsRepairable", function(var_1, var_2) { return nms_ItemTool_getIsRepairable(this, var_1, var_2); }], -nms_ItemSpade, 0, nms_ItemTool, [], 0, 3, nms_ItemSpade_$callClinit, ["$canHarvestBlock", function(var_1) { return nms_ItemSpade_canHarvestBlock(this, var_1); }], -nms_EnumToolMaterial, 0, jl_Enum, [], 12, 3, 0, 0, -nms_ItemPickaxe, 0, nms_ItemTool, [], 0, 3, nms_ItemPickaxe_$callClinit, ["$canHarvestBlock", function(var_1) { return nms_ItemPickaxe_canHarvestBlock(this, var_1); }, "$getStrVsBlock0", function(var_1, var_2) { return nms_ItemPickaxe_getStrVsBlock(this, var_1, var_2); }], -nms_ItemAxe, 0, nms_ItemTool, [], 0, 3, nms_ItemAxe_$callClinit, ["$getStrVsBlock0", function(var_1, var_2) { return nms_ItemAxe_getStrVsBlock(this, var_1, var_2); }], -nms_ItemFlintAndSteel, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemFlintAndSteel_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemFood, 0, nms_Item, [], 0, 3, 0, ["$onEaten", function(var_1, var_2, var_3) { return nms_ItemFood_onEaten(this, var_1, var_2, var_3); }, "$onFoodEaten", function(var_1, var_2, var_3) { nms_ItemFood_onFoodEaten(this, var_1, var_2, var_3); }, "$getMaxItemUseDuration", function(var_1) { return nms_ItemFood_getMaxItemUseDuration(this, var_1); }, "$getItemUseAction", function(var_1) { return nms_ItemFood_getItemUseAction(this, var_1); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemFood_onItemRightClick(this, -var_1, var_2, var_3); }], -nms_ItemBow, 0, nms_Item, [], 0, 3, 0, ["$onPlayerStoppedUsing", function(var_1, var_2, var_3, var_4) { nms_ItemBow_onPlayerStoppedUsing(this, var_1, var_2, var_3, var_4); }, "$onEaten", function(var_1, var_2, var_3) { return nms_ItemBow_onEaten(this, var_1, var_2, var_3); }, "$getMaxItemUseDuration", function(var_1) { return nms_ItemBow_getMaxItemUseDuration(this, var_1); }, "$getItemUseAction", function(var_1) { return nms_ItemBow_getItemUseAction(this, var_1); }, "$onItemRightClick", function(var_1, var_2, -var_3) { return nms_ItemBow_onItemRightClick(this, var_1, var_2, var_3); }, "$getItemEnchantability", function() { return nms_ItemBow_getItemEnchantability(this); }, "$registerIcons", function(var_1) { nms_ItemBow_registerIcons(this, var_1); }], -nms_CreativeTabs, 0, jl_Object, [], 0, 3, 0, ["$displayAllReleventItems", function(var_1) { nms_CreativeTabs_displayAllReleventItems(this, var_1); }], -nms_ItemCoal, 0, nms_Item, [], 0, 3, 0, ["$getUnlocalizedName", function(var_1) { return nms_ItemCoal_getUnlocalizedName(this, var_1); }, "$getSubItems", function(var_1, var_2, var_3) { nms_ItemCoal_getSubItems(this, var_1, var_2, var_3); }], -nms_ItemSword, 0, nms_Item, [], 0, 3, 0, ["$getStrVsBlock0", function(var_1, var_2) { return nms_ItemSword_getStrVsBlock(this, var_1, var_2); }, "$hitEntity0", function(var_1, var_2, var_3) { return nms_ItemSword_hitEntity(this, var_1, var_2, var_3); }, "$onBlockDestroyed", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { return nms_ItemSword_onBlockDestroyed(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getDamageVsEntity", function(var_1) { return nms_ItemSword_getDamageVsEntity(this, -var_1); }, "$isFull3D", function() { return nms_ItemSword_isFull3D(this); }, "$getItemUseAction", function(var_1) { return nms_ItemSword_getItemUseAction(this, var_1); }, "$getMaxItemUseDuration", function(var_1) { return nms_ItemSword_getMaxItemUseDuration(this, var_1); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemSword_onItemRightClick(this, var_1, var_2, var_3); }, "$canHarvestBlock", function(var_1) { return nms_ItemSword_canHarvestBlock(this, var_1); }, "$getItemEnchantability", -function() { return nms_ItemSword_getItemEnchantability(this); }, "$getIsRepairable", function(var_1, var_2) { return nms_ItemSword_getIsRepairable(this, var_1, var_2); }], -nms_ItemSoup, 0, nms_ItemFood, [], 0, 3, 0, ["$onEaten", function(var_1, var_2, var_3) { return nms_ItemSoup_onEaten(this, var_1, var_2, var_3); }], -nms_ItemReed, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemReed_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_PotionHelper, 0, jl_Object, [], 0, 3, nms_PotionHelper_$callClinit, 0, -nms_ItemHoe, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemHoe_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$isFull3D", function() { return nms_ItemHoe_isFull3D(this); }], -nms_ItemSeeds, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemSeeds_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemArmor, 0, nms_Item, [], 0, 3, 0, ["$getColorFromItemStack", function(var_1, var_2) { return nms_ItemArmor_getColorFromItemStack(this, var_1, var_2); }, "$requiresMultipleRenderPasses", function() { return nms_ItemArmor_requiresMultipleRenderPasses(this); }, "$getItemEnchantability", function() { return nms_ItemArmor_getItemEnchantability(this); }, "$getIconFromDamageForRenderPass", function(var_1, var_2) { return nms_ItemArmor_getIconFromDamageForRenderPass(this, var_1, var_2); }, "$getIsRepairable", -function(var_1, var_2) { return nms_ItemArmor_getIsRepairable(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_ItemArmor_registerIcons(this, var_1); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemArmor_onItemRightClick(this, var_1, var_2, var_3); }], -nms_EnumArmorMaterial, 0, jl_Enum, [], 12, 3, 0, 0, -nms_ItemHangingEntity, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemHangingEntity_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemAppleGold, 0, nms_ItemFood, [], 0, 3, 0, ["$hasEffect0", function(var_1) { return nms_ItemAppleGold_hasEffect(this, var_1); }, "$getRarity", function(var_1) { return nms_ItemAppleGold_getRarity(this, var_1); }, "$onFoodEaten", function(var_1, var_2, var_3) { nms_ItemAppleGold_onFoodEaten(this, var_1, var_2, var_3); }, "$getSubItems", function(var_1, var_2, var_3) { nms_ItemAppleGold_getSubItems(this, var_1, var_2, var_3); }], -nms_Potion, 0, jl_Object, [], 0, 3, 0, ["$isInstant", function() { return nms_Potion_isInstant(this); }, "$isReady", function(var_1, var_2) { return nms_Potion_isReady(this, var_1, var_2); }]]); -$rt_metadata([nms_ItemSign, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemSign_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemDoor, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemDoor_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_Material, 0, jl_Object, [], 0, 3, nms_Material_$callClinit, ["$isLiquid", function() { return nms_Material_isLiquid(this); }, "$isSolid", function() { return nms_Material_isSolid(this); }, "$getCanBlockGrass", function() { return nms_Material_getCanBlockGrass(this); }, "$blocksMovement", function() { return nms_Material_blocksMovement(this); }], -nms_ItemBucket, 0, nms_Item, [], 0, 3, 0, ["$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemBucket_onItemRightClick(this, var_1, var_2, var_3); }], -nms_BlockFluid, 0, nms_Block, [], 1, 3, 0, ["$getBlockColor", function() { return nms_BlockFluid_getBlockColor(this); }, "$colorMultiplier", function(var_1, var_2, var_3, var_4) { return nms_BlockFluid_colorMultiplier(this, var_1, var_2, var_3, var_4); }, "$getIcon", function(var_1, var_2) { return nms_BlockFluid_getIcon(this, var_1, var_2); }, "$renderAsNormalBlock", function() { return nms_BlockFluid_renderAsNormalBlock(this); }, "$isOpaqueCube", function() { return nms_BlockFluid_isOpaqueCube(this); }, "$canCollideCheck", -function(var_1, var_2) { return nms_BlockFluid_canCollideCheck(this, var_1, var_2); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockFluid_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockFluid_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getRenderType", function() { return nms_BlockFluid_getRenderType(this); }, "$idDropped", function(var_1, -var_2, var_3) { return nms_BlockFluid_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockFluid_quantityDropped(this, var_1); }, "$velocityToAddToEntity", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockFluid_velocityToAddToEntity(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$getMixedBrightnessForBlock", function(var_1, var_2, var_3, var_4) { return nms_BlockFluid_getMixedBrightnessForBlock(this, var_1, var_2, var_3, var_4); }, "$getBlockBrightness", -function(var_1, var_2, var_3, var_4) { return nms_BlockFluid_getBlockBrightness(this, var_1, var_2, var_3, var_4); }, "$getRenderBlockPass", function() { return nms_BlockFluid_getRenderBlockPass(this); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockFluid_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockFluid_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, -var_2, var_3, var_4, var_5) { nms_BlockFluid_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockFluid_registerIcons(this, var_1); }], -nms_ItemMinecart, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemMinecart_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemSaddle, 0, nms_Item, [], 0, 3, 0, ["$itemInteractionForEntity", function(var_1, var_2) { return nms_ItemSaddle_itemInteractionForEntity(this, var_1, var_2); }, "$hitEntity0", function(var_1, var_2, var_3) { return nms_ItemSaddle_hitEntity(this, var_1, var_2, var_3); }], -nms_ItemRedstone, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemRedstone_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemSnowball, 0, nms_Item, [], 0, 3, 0, ["$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemSnowball_onItemRightClick(this, var_1, var_2, var_3); }], -nms_ItemBoat, 0, nms_Item, [], 0, 3, 0, ["$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemBoat_onItemRightClick(this, var_1, var_2, var_3); }], -nms_ItemBucketMilk, 0, nms_Item, [], 0, 3, 0, ["$onEaten", function(var_1, var_2, var_3) { return nms_ItemBucketMilk_onEaten(this, var_1, var_2, var_3); }, "$getMaxItemUseDuration", function(var_1) { return nms_ItemBucketMilk_getMaxItemUseDuration(this, var_1); }, "$getItemUseAction", function(var_1) { return nms_ItemBucketMilk_getItemUseAction(this, var_1); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemBucketMilk_onItemRightClick(this, var_1, var_2, var_3); }], -nms_ItemBook, 0, nms_Item, [], 0, 3, 0, ["$isItemTool", function(var_1) { return nms_ItemBook_isItemTool(this, var_1); }, "$getItemEnchantability", function() { return nms_ItemBook_getItemEnchantability(this); }], -nms_ItemEgg, 0, nms_Item, [], 0, 3, 0, ["$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemEgg_onItemRightClick(this, var_1, var_2, var_3); }], -nms_ItemFishingRod, 0, nms_Item, [], 0, 3, 0, ["$isFull3D", function() { return nms_ItemFishingRod_isFull3D(this); }, "$shouldRotateAroundWhenRendering", function() { return nms_ItemFishingRod_shouldRotateAroundWhenRendering(this); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemFishingRod_onItemRightClick(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_ItemFishingRod_registerIcons(this, var_1); }], -nms_ItemDye, 0, nms_Item, [], 0, 3, 0, ["$getIconFromDamage", function(var_1) { return nms_ItemDye_getIconFromDamage(this, var_1); }, "$getUnlocalizedName", function(var_1) { return nms_ItemDye_getUnlocalizedName(this, var_1); }, "$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemDye_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$itemInteractionForEntity", function(var_1, var_2) { return nms_ItemDye_itemInteractionForEntity(this, -var_1, var_2); }, "$getSubItems", function(var_1, var_2, var_3) { nms_ItemDye_getSubItems(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_ItemDye_registerIcons(this, var_1); }], -nms_ItemBed, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemBed_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemMapBase, 0, nms_Item, [], 0, 3, 0, 0, -nms_ItemMap, 0, nms_ItemMapBase, [], 0, 3, 0, ["$onUpdate2", function(var_1, var_2, var_3, var_4, var_5) { nms_ItemMap_onUpdate(this, var_1, var_2, var_3, var_4, var_5); }, "$onCreated", function(var_1, var_2, var_3) { nms_ItemMap_onCreated(this, var_1, var_2, var_3); }, "$addInformation", function(var_1, var_2, var_3, var_4) { nms_ItemMap_addInformation(this, var_1, var_2, var_3, var_4); }], -nms_ItemShears, 0, nms_Item, [], 0, 3, 0, ["$onBlockDestroyed", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { return nms_ItemShears_onBlockDestroyed(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$canHarvestBlock", function(var_1) { return nms_ItemShears_canHarvestBlock(this, var_1); }, "$getStrVsBlock0", function(var_1, var_2) { return nms_ItemShears_getStrVsBlock(this, var_1, var_2); }], -nms_ItemEnderPearl, 0, nms_Item, [], 0, 3, 0, ["$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemEnderPearl_onItemRightClick(this, var_1, var_2, var_3); }], -nms_ItemPotion, 0, nms_Item, [], 0, 3, 0, ["$onEaten", function(var_1, var_2, var_3) { return nms_ItemPotion_onEaten(this, var_1, var_2, var_3); }, "$getMaxItemUseDuration", function(var_1) { return nms_ItemPotion_getMaxItemUseDuration(this, var_1); }, "$getItemUseAction", function(var_1) { return nms_ItemPotion_getItemUseAction(this, var_1); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemPotion_onItemRightClick(this, var_1, var_2, var_3); }, "$onItemUse", function(var_1, var_2, var_3, -var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemPotion_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$getIconFromDamage", function(var_1) { return nms_ItemPotion_getIconFromDamage(this, var_1); }, "$getIconFromDamageForRenderPass", function(var_1, var_2) { return nms_ItemPotion_getIconFromDamageForRenderPass(this, var_1, var_2); }, "$getColorFromItemStack", function(var_1, var_2) { return nms_ItemPotion_getColorFromItemStack(this, var_1, var_2); -}, "$requiresMultipleRenderPasses", function() { return nms_ItemPotion_requiresMultipleRenderPasses(this); }, "$getItemDisplayName", function(var_1) { return nms_ItemPotion_getItemDisplayName(this, var_1); }, "$addInformation", function(var_1, var_2, var_3, var_4) { nms_ItemPotion_addInformation(this, var_1, var_2, var_3, var_4); }, "$hasEffect0", function(var_1) { return nms_ItemPotion_hasEffect(this, var_1); }, "$getSubItems", function(var_1, var_2, var_3) { nms_ItemPotion_getSubItems(this, var_1, var_2, var_3); -}, "$registerIcons", function(var_1) { nms_ItemPotion_registerIcons(this, var_1); }], -nms_ItemGlassBottle, 0, nms_Item, [], 0, 3, 0, ["$getIconFromDamage", function(var_1) { return nms_ItemGlassBottle_getIconFromDamage(this, var_1); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemGlassBottle_onItemRightClick(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_ItemGlassBottle_registerIcons(this, var_1); }], -nms_ItemEnderEye, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemEnderEye_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemEnderEye_onItemRightClick(this, var_1, var_2, var_3); }], -nms_ItemMonsterPlacer, 0, nms_Item, [], 0, 3, 0, ["$getItemDisplayName", function(var_1) { return nms_ItemMonsterPlacer_getItemDisplayName(this, var_1); }, "$getColorFromItemStack", function(var_1, var_2) { return nms_ItemMonsterPlacer_getColorFromItemStack(this, var_1, var_2); }, "$requiresMultipleRenderPasses", function() { return nms_ItemMonsterPlacer_requiresMultipleRenderPasses(this); }, "$getIconFromDamageForRenderPass", function(var_1, var_2) { return nms_ItemMonsterPlacer_getIconFromDamageForRenderPass(this, -var_1, var_2); }, "$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemMonsterPlacer_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$getSubItems", function(var_1, var_2, var_3) { nms_ItemMonsterPlacer_getSubItems(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_ItemMonsterPlacer_registerIcons(this, var_1); }], -nms_ItemExpBottle, 0, nms_Item, [], 0, 3, 0, ["$hasEffect0", function(var_1) { return nms_ItemExpBottle_hasEffect(this, var_1); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemExpBottle_onItemRightClick(this, var_1, var_2, var_3); }], -nms_ItemFireball, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemFireball_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemWritableBook, 0, nms_Item, [], 0, 3, 0, ["$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemWritableBook_onItemRightClick(this, var_1, var_2, var_3); }, "$getShareTag", function() { return nms_ItemWritableBook_getShareTag(this); }], -nms_ItemEditableBook, 0, nms_Item, [], 0, 3, 0, ["$getItemDisplayName", function(var_1) { return nms_ItemEditableBook_getItemDisplayName(this, var_1); }, "$addInformation", function(var_1, var_2, var_3, var_4) { nms_ItemEditableBook_addInformation(this, var_1, var_2, var_3, var_4); }, "$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemEditableBook_onItemRightClick(this, var_1, var_2, var_3); }, "$getShareTag", function() { return nms_ItemEditableBook_getShareTag(this); }, "$hasEffect0", function(var_1) -{ return nms_ItemEditableBook_hasEffect(this, var_1); }], -nms_ItemSeedFood, 0, nms_ItemFood, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemSeedFood_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemEmptyMap, 0, nms_ItemMapBase, [], 0, 3, 0, ["$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemEmptyMap_onItemRightClick(this, var_1, var_2, var_3); }], -nms_ItemSkull, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemSkull_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$getSubItems", function(var_1, var_2, var_3) { nms_ItemSkull_getSubItems(this, var_1, var_2, var_3); }, "$getIconFromDamage", function(var_1) { return nms_ItemSkull_getIconFromDamage(this, var_1); }, "$getUnlocalizedName", function(var_1) { return nms_ItemSkull_getUnlocalizedName(this, -var_1); }, "$getItemDisplayName", function(var_1) { return nms_ItemSkull_getItemDisplayName(this, var_1); }, "$registerIcons", function(var_1) { nms_ItemSkull_registerIcons(this, var_1); }], -nms_ItemCarrotOnAStick, 0, nms_Item, [], 0, 3, 0, ["$isFull3D", function() { return nms_ItemCarrotOnAStick_isFull3D(this); }, "$shouldRotateAroundWhenRendering", function() { return nms_ItemCarrotOnAStick_shouldRotateAroundWhenRendering(this); }], -nms_ItemSimpleFoiled, 0, nms_Item, [], 0, 3, 0, ["$hasEffect0", function(var_1) { return nms_ItemSimpleFoiled_hasEffect(this, var_1); }], -nms_ItemFirework, 0, nms_Item, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemFirework_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$addInformation", function(var_1, var_2, var_3, var_4) { nms_ItemFirework_addInformation(this, var_1, var_2, var_3, var_4); }], -nms_ItemFireworkCharge, 0, nms_Item, [], 0, 3, 0, ["$getIconFromDamageForRenderPass", function(var_1, var_2) { return nms_ItemFireworkCharge_getIconFromDamageForRenderPass(this, var_1, var_2); }, "$getColorFromItemStack", function(var_1, var_2) { return nms_ItemFireworkCharge_getColorFromItemStack(this, var_1, var_2); }, "$requiresMultipleRenderPasses", function() { return nms_ItemFireworkCharge_requiresMultipleRenderPasses(this); }, "$addInformation", function(var_1, var_2, var_3, var_4) { nms_ItemFireworkCharge_addInformation(this, -var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_ItemFireworkCharge_registerIcons(this, var_1); }], -nms_ItemEnchantedBook, 0, nms_Item, [], 0, 3, 0, ["$hasEffect0", function(var_1) { return nms_ItemEnchantedBook_hasEffect(this, var_1); }, "$isItemTool", function(var_1) { return nms_ItemEnchantedBook_isItemTool(this, var_1); }, "$getRarity", function(var_1) { return nms_ItemEnchantedBook_getRarity(this, var_1); }, "$addInformation", function(var_1, var_2, var_3, var_4) { nms_ItemEnchantedBook_addInformation(this, var_1, var_2, var_3, var_4); }], -nms_ItemRecord, "ItemRecord", 24, nms_Item, [], 0, 3, 0, ["$getIconFromDamage", function(var_1) { return nms_ItemRecord_getIconFromDamage(this, var_1); }, "$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemRecord_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$addInformation", function(var_1, var_2, var_3, var_4) { nms_ItemRecord_addInformation(this, var_1, var_2, var_3, var_4); }, "$getRarity", function(var_1) -{ return nms_ItemRecord_getRarity(this, var_1); }, "$registerIcons", function(var_1) { nms_ItemRecord_registerIcons(this, var_1); }], -jur_Pattern, 0, jl_Object, [ji_Serializable], 4, 3, 0, 0, -ju_SortedMap, 0, jl_Object, [ju_Map], 3, 3, 0, 0, -ju_NavigableMap, 0, jl_Object, [ju_SortedMap], 3, 3, 0, 0, -ju_TreeMap, 0, ju_AbstractMap, [jl_Cloneable, ji_Serializable, ju_NavigableMap], 0, 3, 0, 0, -nms_StepSound, 0, jl_Object, [], 0, 3, 0, ["$getBreakSound", function() { return nms_StepSound_getBreakSound(this); }, "$getPlaceSound", function() { return nms_StepSound_getPlaceSound(this); }], -nms_StepSoundStone, 0, nms_StepSound, [], 4, 0, 0, ["$getBreakSound", function() { return nms_StepSoundStone_getBreakSound(this); }, "$getPlaceSound", function() { return nms_StepSoundStone_getPlaceSound(this); }], -nms_StepSoundSand, 0, nms_StepSound, [], 4, 0, 0, ["$getBreakSound", function() { return nms_StepSoundSand_getBreakSound(this); }], -nms_StepSoundAnvil, 0, nms_StepSound, [], 4, 0, 0, ["$getBreakSound", function() { return nms_StepSoundAnvil_getBreakSound(this); }, "$getPlaceSound", function() { return nms_StepSoundAnvil_getPlaceSound(this); }], -nms_NoiseGenerator, 0, jl_Object, [], 1, 3, 0, 0, -nms_NoiseGeneratorPerlin, 0, nms_NoiseGenerator, [], 0, 3, 0, 0, -nms_BlockStone, "BlockStone", 24, nms_Block, [], 0, 3, 0, ["$idDropped", function(var_1, var_2, var_3) { return nms_BlockStone_idDropped(this, var_1, var_2, var_3); }], -nms_BlockGrass, "BlockGrass", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockGrass_getIcon(this, var_1, var_2); }, "$getBlockTexture", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockGrass_getBlockTexture(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockGrass_registerIcons(this, var_1); }, "$getBlockColor", function() { return nms_BlockGrass_getBlockColor(this); }, "$getRenderColor", function(var_1) { return nms_BlockGrass_getRenderColor(this, -var_1); }, "$colorMultiplier", function(var_1, var_2, var_3, var_4) { return nms_BlockGrass_colorMultiplier(this, var_1, var_2, var_3, var_4); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockGrass_idDropped(this, var_1, var_2, var_3); }], -nms_BlockDirt, "BlockDirt", 24, nms_Block, [], 0, 3, 0, 0]); -$rt_metadata([nms_BlockWood, "BlockWood", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockWood_getIcon(this, var_1, var_2); }, "$damageDropped", function(var_1) { return nms_BlockWood_damageDropped(this, var_1); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockWood_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockWood_registerIcons(this, var_1); }], -nms_BlockFlower, "BlockFlower", 24, nms_Block, [], 0, 3, 0, ["$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockFlower_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$canThisPlantGrowOnThisBlockID", function(var_1) { return nms_BlockFlower_canThisPlantGrowOnThisBlockID(this, var_1); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockFlower_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$canBlockStay", function(var_1, var_2, -var_3, var_4) { return nms_BlockFlower_canBlockStay(this, var_1, var_2, var_3, var_4); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockFlower_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockFlower_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockFlower_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockFlower_getRenderType(this); }], -nms_BlockSapling, "BlockSapling", 24, nms_BlockFlower, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockSapling_getIcon(this, var_1, var_2); }, "$damageDropped", function(var_1) { return nms_BlockSapling_damageDropped(this, var_1); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockSapling_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockSapling_registerIcons(this, var_1); }], -nms_BlockFlowing, "BlockFlowing", 24, nms_BlockFluid, [], 0, 3, 0, ["$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_BlockFlowing_getBlocksMovement(this, var_1, var_2, var_3, var_4); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockFlowing_onBlockAdded(this, var_1, var_2, var_3, var_4); }], -nms_BlockStationary, "BlockStationary", 24, nms_BlockFluid, [], 0, 3, 0, ["$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_BlockStationary_getBlocksMovement(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockStationary_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockSand, "BlockSand", 24, nms_Block, [], 0, 3, 0, ["$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockSand_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockSand_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onFinishFalling", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockSand_onFinishFalling(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockGravel, "BlockGravel", 24, nms_BlockSand, [], 0, 3, 0, ["$idDropped", function(var_1, var_2, var_3) { return nms_BlockGravel_idDropped(this, var_1, var_2, var_3); }], -nms_BlockOre, "BlockOre", 24, nms_Block, [], 0, 3, 0, ["$idDropped", function(var_1, var_2, var_3) { return nms_BlockOre_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockOre_quantityDropped(this, var_1); }, "$quantityDroppedWithBonus", function(var_1, var_2) { return nms_BlockOre_quantityDroppedWithBonus(this, var_1, var_2); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockOre_dropBlockAsItemWithChance(this, var_1, -var_2, var_3, var_4, var_5, var_6, var_7); }, "$damageDropped", function(var_1) { return nms_BlockOre_damageDropped(this, var_1); }], -nms_BlockLog, "BlockLog", 24, nms_Block, [], 0, 3, 0, ["$getRenderType", function() { return nms_BlockLog_getRenderType(this); }, "$quantityDropped", function(var_1) { return nms_BlockLog_quantityDropped(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockLog_idDropped(this, var_1, var_2, var_3); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockLog_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockPlaced", function(var_1, var_2, -var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockLog_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$getIcon", function(var_1, var_2) { return nms_BlockLog_getIcon(this, var_1, var_2); }, "$damageDropped", function(var_1) { return nms_BlockLog_damageDropped(this, var_1); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockLog_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockLog_registerIcons(this, var_1); -}], -nms_BlockLeavesBase, 0, nms_Block, [], 0, 3, 0, ["$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockLeavesBase_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockLeaves, "BlockLeaves", 24, nms_BlockLeavesBase, [], 0, 3, 0, ["$getBlockColor", function() { return nms_BlockLeaves_getBlockColor(this); }, "$getRenderColor", function(var_1) { return nms_BlockLeaves_getRenderColor(this, var_1); }, "$colorMultiplier", function(var_1, var_2, var_3, var_4) { return nms_BlockLeaves_colorMultiplier(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockLeaves_breakBlock(this, var_1, var_2, var_3, var_4, var_5, -var_6); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockLeaves_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$quantityDropped", function(var_1) { return nms_BlockLeaves_quantityDropped(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockLeaves_idDropped(this, var_1, var_2, var_3); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockLeaves_dropBlockAsItemWithChance(this, var_1, var_2, -var_3, var_4, var_5, var_6, var_7); }, "$damageDropped", function(var_1) { return nms_BlockLeaves_damageDropped(this, var_1); }, "$isOpaqueCube", function() { return nms_BlockLeaves_isOpaqueCube(this); }, "$getIcon", function(var_1, var_2) { return nms_BlockLeaves_getIcon(this, var_1, var_2); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockLeaves_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockLeaves_registerIcons(this, var_1); }], -nms_BlockSponge, "BlockSponge", 24, nms_Block, [], 0, 3, 0, 0, -nms_BlockBreakable, 0, nms_Block, [], 0, 3, 0, ["$isOpaqueCube", function() { return nms_BlockBreakable_isOpaqueCube(this); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockBreakable_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockBreakable_registerIcons(this, var_1); }], -nms_BlockGlass, "BlockGlass", 24, nms_BlockBreakable, [], 0, 3, 0, ["$quantityDropped", function(var_1) { return nms_BlockGlass_quantityDropped(this, var_1); }, "$getRenderBlockPass", function() { return nms_BlockGlass_getRenderBlockPass(this); }, "$isOpaqueCube", function() { return nms_BlockGlass_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockGlass_renderAsNormalBlock(this); }], -nms_ITileEntityProvider, 0, jl_Object, [], 3, 3, 0, 0, -nms_BlockContainer, 0, nms_Block, [nms_ITileEntityProvider], 1, 3, 0, ["$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockContainer_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockContainer_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockEventReceived", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_BlockContainer_onBlockEventReceived(this, var_1, var_2, var_3, var_4, var_5, -var_6); }], -nms_BlockDispenser, "BlockDispenser", 24, nms_BlockContainer, [], 0, 3, 0, ["$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockDispenser_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$getIcon", function(var_1, var_2) { return nms_BlockDispenser_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockDispenser_registerIcons(this, var_1); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockDispenser_onBlockActivated(this, -var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockDispenser_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$createNewTileEntity", function(var_1) { return nms_BlockDispenser_createNewTileEntity(this, var_1); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockDispenser_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$breakBlock", function(var_1, -var_2, var_3, var_4, var_5, var_6) { nms_BlockDispenser_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$hasComparatorInputOverride", function() { return nms_BlockDispenser_hasComparatorInputOverride(this); }, "$getComparatorInputOverride", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockDispenser_getComparatorInputOverride(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockSandStone, "BlockSandStone", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockSandStone_getIcon(this, var_1, var_2); }, "$damageDropped", function(var_1) { return nms_BlockSandStone_damageDropped(this, var_1); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockSandStone_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockSandStone_registerIcons(this, var_1); }], -nms_BlockNote, "BlockNote", 24, nms_BlockContainer, [], 0, 3, 0, ["$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockNote_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockNote_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockClicked", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockNote_onBlockClicked(this, -var_1, var_2, var_3, var_4, var_5); }, "$createNewTileEntity", function(var_1) { return nms_BlockNote_createNewTileEntity(this, var_1); }, "$onBlockEventReceived", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_BlockNote_onBlockEventReceived(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_BlockDirectional, 0, nms_Block, [], 1, 3, 0, 0, -nms_BlockBed, "BlockBed", 24, nms_BlockDirectional, [], 0, 3, 0, ["$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockBed_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$getIcon", function(var_1, var_2) { return nms_BlockBed_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockBed_registerIcons(this, var_1); }, "$getRenderType", function() { return nms_BlockBed_getRenderType(this); }, -"$renderAsNormalBlock", function() { return nms_BlockBed_renderAsNormalBlock(this); }, "$isOpaqueCube", function() { return nms_BlockBed_isOpaqueCube(this); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockBed_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockBed_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockBed_idDropped(this, -var_1, var_2, var_3); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockBed_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getMobilityFlag", function() { return nms_BlockBed_getMobilityFlag(this); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockBed_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockRailBase, 0, nms_Block, [], 1, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockRailBase_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockRailBase_isOpaqueCube(this); }, "$collisionRayTrace", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_BlockRailBase_collisionRayTrace(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, -var_3, var_4) { nms_BlockRailBase_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$renderAsNormalBlock", function() { return nms_BlockRailBase_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockRailBase_getRenderType(this); }, "$quantityDropped", function(var_1) { return nms_BlockRailBase_quantityDropped(this, var_1); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockRailBase_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockAdded", -function(var_1, var_2, var_3, var_4) { nms_BlockRailBase_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRailBase_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$func_94358_a", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockRailBase_func_94358_a(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getMobilityFlag", function() { return nms_BlockRailBase_getMobilityFlag(this); -}, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockRailBase_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_BlockRailPowered, "BlockRailPowered", 24, nms_BlockRailBase, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockRailPowered_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockRailPowered_registerIcons(this, var_1); }, "$func_94358_a", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockRailPowered_func_94358_a(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_BlockDetectorRail, "BlockDetectorRail", 24, nms_BlockRailBase, [], 0, 3, 0, ["$canProvidePower", function() { return nms_BlockDetectorRail_canProvidePower(this); }, "$onEntityCollidedWithBlock", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockDetectorRail_onEntityCollidedWithBlock(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockDetectorRail_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingStrongPower", -function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockDetectorRail_isProvidingStrongPower(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockDetectorRail_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$hasComparatorInputOverride", function() { return nms_BlockDetectorRail_hasComparatorInputOverride(this); }, "$getComparatorInputOverride", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockDetectorRail_getComparatorInputOverride(this, -var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockDetectorRail_registerIcons(this, var_1); }, "$getIcon", function(var_1, var_2) { return nms_BlockDetectorRail_getIcon(this, var_1, var_2); }], -nms_BlockPistonBase, "BlockPistonBase", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockPistonBase_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockPistonBase_registerIcons(this, var_1); }, "$getRenderType", function() { return nms_BlockPistonBase_getRenderType(this); }, "$isOpaqueCube", function() { return nms_BlockPistonBase_isOpaqueCube(this); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockPistonBase_onBlockActivated(this, -var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockPistonBase_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockPistonBase_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockPistonBase_onBlockAdded(this, var_1, var_2, var_3, var_4); }, -"$onBlockEventReceived", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_BlockPistonBase_onBlockEventReceived(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockPistonBase_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsForItemRender", function() { nms_BlockPistonBase_setBlockBoundsForItemRender(this); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, -var_7) { nms_BlockPistonBase_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockPistonBase_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$renderAsNormalBlock", function() { return nms_BlockPistonBase_renderAsNormalBlock(this); }], -nms_BlockWeb, "BlockWeb", 24, nms_Block, [], 0, 3, 0, ["$onEntityCollidedWithBlock", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockWeb_onEntityCollidedWithBlock(this, var_1, var_2, var_3, var_4, var_5); }, "$isOpaqueCube", function() { return nms_BlockWeb_isOpaqueCube(this); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockWeb_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getRenderType", function() { return nms_BlockWeb_getRenderType(this); -}, "$renderAsNormalBlock", function() { return nms_BlockWeb_renderAsNormalBlock(this); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockWeb_idDropped(this, var_1, var_2, var_3); }], -nms_BlockTallGrass, "BlockTallGrass", 24, nms_BlockFlower, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockTallGrass_getIcon(this, var_1, var_2); }, "$getBlockColor", function() { return nms_BlockTallGrass_getBlockColor(this); }, "$getRenderColor", function(var_1) { return nms_BlockTallGrass_getRenderColor(this, var_1); }, "$colorMultiplier", function(var_1, var_2, var_3, var_4) { return nms_BlockTallGrass_colorMultiplier(this, var_1, var_2, var_3, var_4); }, "$idDropped", function(var_1, -var_2, var_3) { return nms_BlockTallGrass_idDropped(this, var_1, var_2, var_3); }, "$quantityDroppedWithBonus", function(var_1, var_2) { return nms_BlockTallGrass_quantityDroppedWithBonus(this, var_1, var_2); }, "$getDamageValue", function(var_1, var_2, var_3, var_4) { return nms_BlockTallGrass_getDamageValue(this, var_1, var_2, var_3, var_4); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockTallGrass_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockTallGrass_registerIcons(this, -var_1); }], -nms_BlockDeadBush, "BlockDeadBush", 24, nms_BlockFlower, [], 0, 3, 0, ["$canThisPlantGrowOnThisBlockID", function(var_1) { return nms_BlockDeadBush_canThisPlantGrowOnThisBlockID(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockDeadBush_idDropped(this, var_1, var_2, var_3); }], -nms_BlockPistonExtension, "BlockPistonExtension", 24, nms_Block, [], 0, 3, 0, ["$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockPistonExtension_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$getIcon", function(var_1, var_2) { return nms_BlockPistonExtension_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockPistonExtension_registerIcons(this, var_1); }, "$getRenderType", function() { return nms_BlockPistonExtension_getRenderType(this); }, -"$isOpaqueCube", function() { return nms_BlockPistonExtension_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockPistonExtension_renderAsNormalBlock(this); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockPistonExtension_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$canPlaceBlockOnSide", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockPistonExtension_canPlaceBlockOnSide(this, var_1, var_2, var_3, var_4, var_5); }, "$quantityDropped", -function(var_1) { return nms_BlockPistonExtension_quantityDropped(this, var_1); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockPistonExtension_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockPistonExtension_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockPistonExtension_onNeighborBlockChange(this, -var_1, var_2, var_3, var_4, var_5); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockPistonExtension_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockCloth, "BlockCloth", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockCloth_getIcon(this, var_1, var_2); }, "$damageDropped", function(var_1) { return nms_BlockCloth_damageDropped(this, var_1); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockCloth_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockCloth_registerIcons(this, var_1); }], -nms_BlockPistonMoving, "BlockPistonMoving", 24, nms_BlockContainer, [], 0, 3, 0, ["$createNewTileEntity", function(var_1) { return nms_BlockPistonMoving_createNewTileEntity(this, var_1); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockPistonMoving_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockPistonMoving_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$canPlaceBlockAt", function(var_1, var_2, -var_3, var_4) { return nms_BlockPistonMoving_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$canPlaceBlockOnSide", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockPistonMoving_canPlaceBlockOnSide(this, var_1, var_2, var_3, var_4, var_5); }, "$getRenderType", function() { return nms_BlockPistonMoving_getRenderType(this); }, "$isOpaqueCube", function() { return nms_BlockPistonMoving_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockPistonMoving_renderAsNormalBlock(this); -}, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockPistonMoving_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockPistonMoving_idDropped(this, var_1, var_2, var_3); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockPistonMoving_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, -var_7); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockPistonMoving_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockPistonMoving_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockPistonMoving_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$idPicked", -function(var_1, var_2, var_3, var_4) { return nms_BlockPistonMoving_idPicked(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_BlockPistonMoving_registerIcons(this, var_1); }], -nms_BlockMushroom, "BlockMushroom", 24, nms_BlockFlower, [], 0, 3, 0, ["$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockMushroom_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$canThisPlantGrowOnThisBlockID", function(var_1) { return nms_BlockMushroom_canThisPlantGrowOnThisBlockID(this, var_1); }, "$canBlockStay", function(var_1, var_2, var_3, var_4) { return nms_BlockMushroom_canBlockStay(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_BlockMushroom_registerIcons(this, -var_1); }], -nms_BlockOreStorage, "BlockOreStorage", 24, nms_Block, [], 0, 3, 0, 0, -nms_BlockHalfSlab, 0, nms_Block, [], 1, 3, 0, ["$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockHalfSlab_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsForItemRender", function() { nms_BlockHalfSlab_setBlockBoundsForItemRender(this); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockHalfSlab_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$isOpaqueCube", function() -{ return nms_BlockHalfSlab_isOpaqueCube(this); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockHalfSlab_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$quantityDropped", function(var_1) { return nms_BlockHalfSlab_quantityDropped(this, var_1); }, "$damageDropped", function(var_1) { return nms_BlockHalfSlab_damageDropped(this, var_1); }, "$renderAsNormalBlock", function() { return nms_BlockHalfSlab_renderAsNormalBlock(this); -}, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockHalfSlab_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$getDamageValue", function(var_1, var_2, var_3, var_4) { return nms_BlockHalfSlab_getDamageValue(this, var_1, var_2, var_3, var_4); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockHalfSlab_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockStep, "BlockStep", 24, nms_BlockHalfSlab, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockStep_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockStep_registerIcons(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockStep_idDropped(this, var_1, var_2, var_3); }, "$getFullSlabName", function(var_1) { return nms_BlockStep_getFullSlabName(this, var_1); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockStep_getSubBlocks(this, -var_1, var_2, var_3); }], -nms_BlockTNT, "BlockTNT", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockTNT_getIcon(this, var_1, var_2); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockTNT_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTNT_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$quantityDropped", function(var_1) { return nms_BlockTNT_quantityDropped(this, var_1); }, "$onBlockDestroyedByExplosion", -function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTNT_onBlockDestroyedByExplosion(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockDestroyedByPlayer", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTNT_onBlockDestroyedByPlayer(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockTNT_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onEntityCollidedWithBlock", -function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTNT_onEntityCollidedWithBlock(this, var_1, var_2, var_3, var_4, var_5); }, "$canDropFromExplosion", function(var_1) { return nms_BlockTNT_canDropFromExplosion(this, var_1); }, "$registerIcons", function(var_1) { nms_BlockTNT_registerIcons(this, var_1); }], -nms_BlockBookshelf, "BlockBookshelf", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockBookshelf_getIcon(this, var_1, var_2); }, "$quantityDropped", function(var_1) { return nms_BlockBookshelf_quantityDropped(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockBookshelf_idDropped(this, var_1, var_2, var_3); }], -nms_BlockObsidian, "BlockObsidian", 24, nms_BlockStone, [], 0, 3, 0, ["$quantityDropped", function(var_1) { return nms_BlockObsidian_quantityDropped(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockObsidian_idDropped(this, var_1, var_2, var_3); }], -nms_BlockTorch, "BlockTorch", 24, nms_Block, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockTorch_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockTorch_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockTorch_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockTorch_getRenderType(this); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, -var_4) { return nms_BlockTorch_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockTorch_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockTorch_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTorch_onNeighborBlockChange(this, -var_1, var_2, var_3, var_4, var_5); }, "$collisionRayTrace", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_BlockTorch_collisionRayTrace(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTorch_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockFire, "BlockFire", 24, nms_Block, [], 0, 3, 0, ["$initializeBlock", function() { nms_BlockFire_initializeBlock(this); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockFire_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockFire_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockFire_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockFire_getRenderType(this); -}, "$quantityDropped", function(var_1) { return nms_BlockFire_quantityDropped(this, var_1); }, "$isCollidable", function() { return nms_BlockFire_isCollidable(this); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockFire_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockFire_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockFire_onBlockAdded(this, -var_1, var_2, var_3, var_4); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockFire_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockFire_registerIcons(this, var_1); }, "$getIcon", function(var_1, var_2) { return nms_BlockFire_getIcon(this, var_1, var_2); }], -nms_BlockMobSpawner, "BlockMobSpawner", 24, nms_BlockContainer, [], 0, 3, 0, ["$createNewTileEntity", function(var_1) { return nms_BlockMobSpawner_createNewTileEntity(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockMobSpawner_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockMobSpawner_quantityDropped(this, var_1); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockMobSpawner_dropBlockAsItemWithChance(this, -var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$isOpaqueCube", function() { return nms_BlockMobSpawner_isOpaqueCube(this); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockMobSpawner_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockStairs, "BlockStairs", 24, nms_Block, [], 0, 3, 0, ["$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockStairs_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockStairs_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockStairs_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockStairs_getRenderType(this); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, -var_4, var_5, var_6, var_7) { nms_BlockStairs_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockStairs_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockClicked", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockStairs_onBlockClicked(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockDestroyedByPlayer", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockStairs_onBlockDestroyedByPlayer(this, -var_1, var_2, var_3, var_4, var_5); }, "$getMixedBrightnessForBlock", function(var_1, var_2, var_3, var_4) { return nms_BlockStairs_getMixedBrightnessForBlock(this, var_1, var_2, var_3, var_4); }, "$getBlockBrightness", function(var_1, var_2, var_3, var_4) { return nms_BlockStairs_getBlockBrightness(this, var_1, var_2, var_3, var_4); }, "$getExplosionResistance", function(var_1) { return nms_BlockStairs_getExplosionResistance(this, var_1); }, "$getRenderBlockPass", function() { return nms_BlockStairs_getRenderBlockPass(this); -}, "$getIcon", function(var_1, var_2) { return nms_BlockStairs_getIcon(this, var_1, var_2); }, "$getSelectedBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockStairs_getSelectedBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$velocityToAddToEntity", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockStairs_velocityToAddToEntity(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$isCollidable", function() { return nms_BlockStairs_isCollidable(this); }, "$canCollideCheck", -function(var_1, var_2) { return nms_BlockStairs_canCollideCheck(this, var_1, var_2); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockStairs_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockStairs_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockStairs_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onEntityWalking", -function(var_1, var_2, var_3, var_4, var_5) { nms_BlockStairs_onEntityWalking(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockStairs_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockDestroyedByExplosion", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockStairs_onBlockDestroyedByExplosion(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockPlacedBy", -function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockStairs_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockStairs_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$collisionRayTrace", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_BlockStairs_collisionRayTrace(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$registerIcons", -function(var_1) { nms_BlockStairs_registerIcons(this, var_1); }], -nms_BlockChest, "BlockChest", 24, nms_BlockContainer, [], 0, 3, 0, ["$isOpaqueCube", function() { return nms_BlockChest_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockChest_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockChest_getRenderType(this); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockChest_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) -{ nms_BlockChest_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockChest_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockChest_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockChest_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, -"$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockChest_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockChest_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$createNewTileEntity", function(var_1) { return nms_BlockChest_createNewTileEntity(this, var_1); }, "$canProvidePower", function() { return nms_BlockChest_canProvidePower(this); -}, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockChest_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingStrongPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockChest_isProvidingStrongPower(this, var_1, var_2, var_3, var_4, var_5); }, "$hasComparatorInputOverride", function() { return nms_BlockChest_hasComparatorInputOverride(this); }, "$getComparatorInputOverride", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockChest_getComparatorInputOverride(this, -var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockChest_registerIcons(this, var_1); }], -nms_BlockRedstoneWire, "BlockRedstoneWire", 24, nms_Block, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockRedstoneWire_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockRedstoneWire_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockRedstoneWire_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockRedstoneWire_getRenderType(this); }, "$colorMultiplier", -function(var_1, var_2, var_3, var_4) { return nms_BlockRedstoneWire_colorMultiplier(this, var_1, var_2, var_3, var_4); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockRedstoneWire_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockRedstoneWire_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockRedstoneWire_breakBlock(this, var_1, var_2, -var_3, var_4, var_5, var_6); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneWire_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockRedstoneWire_idDropped(this, var_1, var_2, var_3); }, "$isProvidingStrongPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneWire_isProvidingStrongPower(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingWeakPower", function(var_1, -var_2, var_3, var_4, var_5) { return nms_BlockRedstoneWire_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, var_5); }, "$canProvidePower", function() { return nms_BlockRedstoneWire_canProvidePower(this); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneWire_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockRedstoneWire_idPicked(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) -{ nms_BlockRedstoneWire_registerIcons(this, var_1); }], -nms_BlockWorkbench, "BlockWorkbench", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockWorkbench_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockWorkbench_registerIcons(this, var_1); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockWorkbench_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }], -nms_BlockCrops, "BlockCrops", 24, nms_BlockFlower, [], 0, 3, 0, ["$canThisPlantGrowOnThisBlockID", function(var_1) { return nms_BlockCrops_canThisPlantGrowOnThisBlockID(this, var_1); }, "$getIcon", function(var_1, var_2) { return nms_BlockCrops_getIcon(this, var_1, var_2); }, "$getRenderType", function() { return nms_BlockCrops_getRenderType(this); }, "$getSeedItem", function() { return nms_BlockCrops_getSeedItem(this); }, "$getCropItem", function() { return nms_BlockCrops_getCropItem(this); }, "$dropBlockAsItemWithChance", -function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockCrops_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockCrops_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockCrops_quantityDropped(this, var_1); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockCrops_idPicked(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) -{ nms_BlockCrops_registerIcons(this, var_1); }], -nms_BlockFarmland, "BlockFarmland", 24, nms_Block, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockFarmland_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockFarmland_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockFarmland_renderAsNormalBlock(this); }, "$getIcon", function(var_1, var_2) { return nms_BlockFarmland_getIcon(this, var_1, var_2); }, "$onFallenUpon", -function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockFarmland_onFallenUpon(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockFarmland_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockFarmland_idDropped(this, var_1, var_2, var_3); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockFarmland_idPicked(this, var_1, var_2, var_3, -var_4); }, "$registerIcons", function(var_1) { nms_BlockFarmland_registerIcons(this, var_1); }], -nms_BlockFurnace, "BlockFurnace", 24, nms_BlockContainer, [], 0, 3, 0, ["$idDropped", function(var_1, var_2, var_3) { return nms_BlockFurnace_idDropped(this, var_1, var_2, var_3); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockFurnace_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$getIcon", function(var_1, var_2) { return nms_BlockFurnace_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockFurnace_registerIcons(this, var_1); }, "$randomDisplayTick", function(var_1, -var_2, var_3, var_4, var_5) { nms_BlockFurnace_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockFurnace_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$createNewTileEntity", function(var_1) { return nms_BlockFurnace_createNewTileEntity(this, var_1); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockFurnace_onBlockPlacedBy(this, -var_1, var_2, var_3, var_4, var_5, var_6); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockFurnace_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$hasComparatorInputOverride", function() { return nms_BlockFurnace_hasComparatorInputOverride(this); }, "$getComparatorInputOverride", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockFurnace_getComparatorInputOverride(this, var_1, var_2, var_3, var_4, var_5); }, "$idPicked", function(var_1, var_2, var_3, -var_4) { return nms_BlockFurnace_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockSign, "BlockSign", 24, nms_BlockContainer, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockSign_getIcon(this, var_1, var_2); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockSign_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getSelectedBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockSign_getSelectedBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsBasedOnState", -function(var_1, var_2, var_3, var_4) { nms_BlockSign_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$getRenderType", function() { return nms_BlockSign_getRenderType(this); }, "$renderAsNormalBlock", function() { return nms_BlockSign_renderAsNormalBlock(this); }, "$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_BlockSign_getBlocksMovement(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockSign_isOpaqueCube(this); }, "$createNewTileEntity", -function(var_1) { return nms_BlockSign_createNewTileEntity(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockSign_idDropped(this, var_1, var_2, var_3); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockSign_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockSign_idPicked(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_BlockSign_registerIcons(this, -var_1); }], -nms_TileEntity, "TileEntity", 24, jl_Object, [], 0, 3, 0, ["$getWorldObj", function() { return nms_TileEntity_getWorldObj(this); }, "$readFromNBT", function(var_1) { nms_TileEntity_readFromNBT(this, var_1); }, "$writeToNBT", function(var_1) { nms_TileEntity_writeToNBT(this, var_1); }, "$updateEntity0", function() { nms_TileEntity_updateEntity(this); }, "$onInventoryChanged", function() { nms_TileEntity_onInventoryChanged(this); }, "$getMaxRenderDistanceSquared", function() { return nms_TileEntity_getMaxRenderDistanceSquared(this); -}, "$invalidate", function() { nms_TileEntity_invalidate(this); }, "$receiveClientEvent", function(var_1, var_2) { return nms_TileEntity_receiveClientEvent(this, var_1, var_2); }, "$updateContainingBlockInfo", function() { nms_TileEntity_updateContainingBlockInfo(this); }]]); -$rt_metadata([nms_TileEntitySign, "TileEntitySign", 24, nms_TileEntity, [], 0, 3, 0, ["$writeToNBT", function(var_1) { nms_TileEntitySign_writeToNBT(this, var_1); }, "$readFromNBT", function(var_1) { nms_TileEntitySign_readFromNBT(this, var_1); }], -nms_BlockDoor, "BlockDoor", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockDoor_getIcon(this, var_1, var_2); }, "$getBlockTexture", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockDoor_getBlockTexture(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockDoor_registerIcons(this, var_1); }, "$isOpaqueCube", function() { return nms_BlockDoor_isOpaqueCube(this); }, "$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_BlockDoor_getBlocksMovement(this, -var_1, var_2, var_3, var_4); }, "$renderAsNormalBlock", function() { return nms_BlockDoor_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockDoor_getRenderType(this); }, "$getSelectedBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockDoor_getSelectedBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockDoor_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, -var_4); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockDoor_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$onBlockClicked", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockDoor_onBlockClicked(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockDoor_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onNeighborBlockChange", -function(var_1, var_2, var_3, var_4, var_5) { nms_BlockDoor_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockDoor_idDropped(this, var_1, var_2, var_3); }, "$collisionRayTrace", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_BlockDoor_collisionRayTrace(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockDoor_canPlaceBlockAt(this, var_1, var_2, -var_3, var_4); }, "$getMobilityFlag", function() { return nms_BlockDoor_getMobilityFlag(this); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockDoor_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockLadder, "BlockLadder", 24, nms_Block, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockLadder_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getSelectedBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockLadder_getSelectedBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockLadder_setBlockBoundsBasedOnState(this, -var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockLadder_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockLadder_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockLadder_getRenderType(this); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockLadder_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockLadder_onBlockPlaced(this, -var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockLadder_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$quantityDropped", function(var_1) { return nms_BlockLadder_quantityDropped(this, var_1); }], -nms_BlockRail, "BlockRail", 24, nms_BlockRailBase, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockRail_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockRail_registerIcons(this, var_1); }, "$func_94358_a", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockRail_func_94358_a(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_BlockLever, "BlockLever", 24, nms_Block, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockLever_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockLever_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockLever_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockLever_getRenderType(this); }, "$canPlaceBlockOnSide", function(var_1, var_2, -var_3, var_4, var_5) { return nms_BlockLever_canPlaceBlockOnSide(this, var_1, var_2, var_3, var_4, var_5); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockLever_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockLever_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) -{ nms_BlockLever_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockLever_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockLever_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockLever_onBlockActivated(this, -var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockLever_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockLever_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingStrongPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockLever_isProvidingStrongPower(this, var_1, var_2, var_3, -var_4, var_5); }, "$canProvidePower", function() { return nms_BlockLever_canProvidePower(this); }], -nms_BlockBasePressurePlate, 0, nms_Block, [], 1, 3, 0, ["$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockBasePressurePlate_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$tickRate", function(var_1) { return nms_BlockBasePressurePlate_tickRate(this, var_1); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockBasePressurePlate_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() -{ return nms_BlockBasePressurePlate_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockBasePressurePlate_renderAsNormalBlock(this); }, "$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_BlockBasePressurePlate_getBlocksMovement(this, var_1, var_2, var_3, var_4); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockBasePressurePlate_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, -var_4, var_5) { nms_BlockBasePressurePlate_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onEntityCollidedWithBlock", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockBasePressurePlate_onEntityCollidedWithBlock(this, var_1, var_2, var_3, var_4, var_5); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockBasePressurePlate_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { -return nms_BlockBasePressurePlate_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingStrongPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockBasePressurePlate_isProvidingStrongPower(this, var_1, var_2, var_3, var_4, var_5); }, "$canProvidePower", function() { return nms_BlockBasePressurePlate_canProvidePower(this); }, "$setBlockBoundsForItemRender", function() { nms_BlockBasePressurePlate_setBlockBoundsForItemRender(this); }, "$getMobilityFlag", function() { return nms_BlockBasePressurePlate_getMobilityFlag(this); -}, "$registerIcons", function(var_1) { nms_BlockBasePressurePlate_registerIcons(this, var_1); }], -nms_BlockPressurePlate, "BlockPressurePlate", 24, nms_BlockBasePressurePlate, [], 0, 3, 0, ["$getMetaFromWeight", function(var_1) { return nms_BlockPressurePlate_getMetaFromWeight(this, var_1); }, "$getPowerSupply", function(var_1) { return nms_BlockPressurePlate_getPowerSupply(this, var_1); }, "$getPlateState", function(var_1, var_2, var_3, var_4) { return nms_BlockPressurePlate_getPlateState(this, var_1, var_2, var_3, var_4); }], -nms_EnumMobType, 0, jl_Enum, [], 12, 3, 0, 0, -nms_BlockRedstoneOre, "BlockRedstoneOre", 24, nms_Block, [], 0, 3, 0, ["$onBlockClicked", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneOre_onBlockClicked(this, var_1, var_2, var_3, var_4, var_5); }, "$onEntityWalking", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneOre_onEntityWalking(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockRedstoneOre_onBlockActivated(this, var_1, -var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockRedstoneOre_idDropped(this, var_1, var_2, var_3); }, "$quantityDroppedWithBonus", function(var_1, var_2) { return nms_BlockRedstoneOre_quantityDroppedWithBonus(this, var_1, var_2); }, "$quantityDropped", function(var_1) { return nms_BlockRedstoneOre_quantityDropped(this, var_1); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockRedstoneOre_dropBlockAsItemWithChance(this, -var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneOre_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockRedstoneTorch, "BlockRedstoneTorch", 24, nms_BlockTorch, [], 0, 3, 0, ["$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockRedstoneTorch_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockRedstoneTorch_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneTorch_isProvidingWeakPower(this, var_1, var_2, var_3, -var_4, var_5); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneTorch_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingStrongPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneTorch_isProvidingStrongPower(this, var_1, var_2, var_3, var_4, var_5); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockRedstoneTorch_idDropped(this, var_1, var_2, var_3); }, "$canProvidePower", function() { return nms_BlockRedstoneTorch_canProvidePower(this); -}, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneTorch_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockRedstoneTorch_idPicked(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_BlockRedstoneTorch_registerIcons(this, var_1); }], -nms_BlockButton, 0, nms_Block, [], 1, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockButton_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockButton_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockButton_renderAsNormalBlock(this); }, "$canPlaceBlockOnSide", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockButton_canPlaceBlockOnSide(this, var_1, var_2, var_3, -var_4, var_5); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockButton_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockButton_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockButton_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$setBlockBoundsBasedOnState", -function(var_1, var_2, var_3, var_4) { nms_BlockButton_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$onBlockClicked", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockButton_onBlockClicked(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockButton_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$breakBlock", function(var_1, var_2, var_3, -var_4, var_5, var_6) { nms_BlockButton_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockButton_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingStrongPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockButton_isProvidingStrongPower(this, var_1, var_2, var_3, var_4, var_5); }, "$canProvidePower", function() { return nms_BlockButton_canProvidePower(this); }, "$setBlockBoundsForItemRender", -function() { nms_BlockButton_setBlockBoundsForItemRender(this); }, "$onEntityCollidedWithBlock", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockButton_onEntityCollidedWithBlock(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockButton_registerIcons(this, var_1); }], -nms_BlockButtonStone, "BlockButtonStone", 24, nms_BlockButton, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockButtonStone_getIcon(this, var_1, var_2); }], -nms_BlockSnow, "BlockSnow", 24, nms_Block, [], 0, 3, 0, ["$registerIcons", function(var_1) { nms_BlockSnow_registerIcons(this, var_1); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockSnow_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockSnow_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockSnow_renderAsNormalBlock(this); }, "$setBlockBoundsForItemRender", function() { nms_BlockSnow_setBlockBoundsForItemRender(this); -}, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockSnow_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockSnow_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockSnow_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockSnow_idDropped(this, -var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockSnow_quantityDropped(this, var_1); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockSnow_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockIce, "BlockIce", 24, nms_BlockBreakable, [], 0, 3, 0, ["$getRenderBlockPass", function() { return nms_BlockIce_getRenderBlockPass(this); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockIce_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$quantityDropped", function(var_1) { return nms_BlockIce_quantityDropped(this, var_1); }, "$getMobilityFlag", function() { return nms_BlockIce_getMobilityFlag(this); }], -nms_BlockSnowBlock, "BlockSnowBlock", 24, nms_Block, [], 0, 3, 0, ["$idDropped", function(var_1, var_2, var_3) { return nms_BlockSnowBlock_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockSnowBlock_quantityDropped(this, var_1); }], -nms_BlockCactus, "BlockCactus", 24, nms_Block, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockCactus_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getSelectedBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockCactus_getSelectedBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getIcon", function(var_1, var_2) { return nms_BlockCactus_getIcon(this, var_1, var_2); }, "$renderAsNormalBlock", function() -{ return nms_BlockCactus_renderAsNormalBlock(this); }, "$isOpaqueCube", function() { return nms_BlockCactus_isOpaqueCube(this); }, "$getRenderType", function() { return nms_BlockCactus_getRenderType(this); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockCactus_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockCactus_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onEntityCollidedWithBlock", -function(var_1, var_2, var_3, var_4, var_5) { nms_BlockCactus_onEntityCollidedWithBlock(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockCactus_registerIcons(this, var_1); }], -nms_BlockClay, "BlockClay", 24, nms_Block, [], 0, 3, 0, ["$idDropped", function(var_1, var_2, var_3) { return nms_BlockClay_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockClay_quantityDropped(this, var_1); }], -nms_BlockReed, "BlockReed", 24, nms_Block, [], 0, 3, 0, ["$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockReed_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockReed_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockReed_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$idDropped", -function(var_1, var_2, var_3) { return nms_BlockReed_idDropped(this, var_1, var_2, var_3); }, "$isOpaqueCube", function() { return nms_BlockReed_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockReed_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockReed_getRenderType(this); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockReed_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockJukeBox, "BlockJukeBox", 24, nms_BlockContainer, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockJukeBox_getIcon(this, var_1, var_2); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockJukeBox_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockJukeBox_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); -}, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockJukeBox_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$createNewTileEntity", function(var_1) { return nms_BlockJukeBox_createNewTileEntity(this, var_1); }, "$registerIcons", function(var_1) { nms_BlockJukeBox_registerIcons(this, var_1); }, "$hasComparatorInputOverride", function() { return nms_BlockJukeBox_hasComparatorInputOverride(this); }, "$getComparatorInputOverride", -function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockJukeBox_getComparatorInputOverride(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockFence, "BlockFence", 24, nms_Block, [], 0, 3, 0, ["$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockFence_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockFence_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockFence_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockFence_renderAsNormalBlock(this); -}, "$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_BlockFence_getBlocksMovement(this, var_1, var_2, var_3, var_4); }, "$getRenderType", function() { return nms_BlockFence_getRenderType(this); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockFence_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockFence_registerIcons(this, var_1); }], -nms_BlockPumpkin, "BlockPumpkin", 24, nms_BlockDirectional, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockPumpkin_getIcon(this, var_1, var_2); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockPumpkin_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockPumpkin_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockPumpkin_onBlockPlacedBy(this, -var_1, var_2, var_3, var_4, var_5, var_6); }, "$registerIcons", function(var_1) { nms_BlockPumpkin_registerIcons(this, var_1); }], -nms_BlockNetherrack, "BlockNetherrack", 24, nms_Block, [], 0, 3, 0, 0, -nms_BlockSoulSand, "BlockSoulSand", 24, nms_Block, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockSoulSand_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$onEntityCollidedWithBlock", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockSoulSand_onEntityCollidedWithBlock(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockGlowStone, "BlockGlowStone", 24, nms_Block, [], 0, 3, 0, ["$quantityDroppedWithBonus", function(var_1, var_2) { return nms_BlockGlowStone_quantityDroppedWithBonus(this, var_1, var_2); }, "$quantityDropped", function(var_1) { return nms_BlockGlowStone_quantityDropped(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockGlowStone_idDropped(this, var_1, var_2, var_3); }], -nms_BlockPortal, "BlockPortal", 24, nms_BlockBreakable, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockPortal_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockPortal_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockPortal_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockPortal_renderAsNormalBlock(this); -}, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockPortal_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockPortal_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$quantityDropped", function(var_1) { return nms_BlockPortal_quantityDropped(this, var_1); }, "$getRenderBlockPass", function() { return nms_BlockPortal_getRenderBlockPass(this); }, "$onEntityCollidedWithBlock", -function(var_1, var_2, var_3, var_4, var_5) { nms_BlockPortal_onEntityCollidedWithBlock(this, var_1, var_2, var_3, var_4, var_5); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockPortal_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockPortal_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockCake, "BlockCake", 24, nms_Block, [], 0, 3, 0, ["$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockCake_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsForItemRender", function() { nms_BlockCake_setBlockBoundsForItemRender(this); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockCake_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getSelectedBoundingBoxFromPool", function(var_1, -var_2, var_3, var_4) { return nms_BlockCake_getSelectedBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getIcon", function(var_1, var_2) { return nms_BlockCake_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockCake_registerIcons(this, var_1); }, "$renderAsNormalBlock", function() { return nms_BlockCake_renderAsNormalBlock(this); }, "$isOpaqueCube", function() { return nms_BlockCake_isOpaqueCube(this); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, -var_7, var_8, var_9) { return nms_BlockCake_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockClicked", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockCake_onBlockClicked(this, var_1, var_2, var_3, var_4, var_5); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockCake_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockCake_onNeighborBlockChange(this, -var_1, var_2, var_3, var_4, var_5); }, "$quantityDropped", function(var_1) { return nms_BlockCake_quantityDropped(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockCake_idDropped(this, var_1, var_2, var_3); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockCake_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockRedstoneLogic, 0, nms_BlockDirectional, [], 1, 3, 0, ["$renderAsNormalBlock", function() { return nms_BlockRedstoneLogic_renderAsNormalBlock(this); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockRedstoneLogic_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$getIcon", function(var_1, var_2) { return nms_BlockRedstoneLogic_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockRedstoneLogic_registerIcons(this, var_1); }, "$shouldSideBeRendered", -function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneLogic_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$func_96470_c", function(var_1) { return nms_BlockRedstoneLogic_func_96470_c(this, var_1); }, "$isProvidingStrongPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneLogic_isProvidingStrongPower(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneLogic_isProvidingWeakPower(this, -var_1, var_2, var_3, var_4, var_5); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneLogic_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$func_94479_f", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneLogic_func_94479_f(this, var_1, var_2, var_3, var_4, var_5); }, "$func_94476_e", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneLogic_func_94476_e(this, var_1, var_2, var_3, var_4, var_5); }, "$func_94478_d", -function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneLogic_func_94478_d(this, var_1, var_2, var_3, var_4, var_5); }, "$getInputStrength", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneLogic_getInputStrength(this, var_1, var_2, var_3, var_4, var_5); }, "$canProvidePower", function() { return nms_BlockRedstoneLogic_canProvidePower(this); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockRedstoneLogic_onBlockPlacedBy(this, var_1, var_2, -var_3, var_4, var_5, var_6); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockRedstoneLogic_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onBlockDestroyedByPlayer", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneLogic_onBlockDestroyedByPlayer(this, var_1, var_2, var_3, var_4, var_5); }, "$isOpaqueCube", function() { return nms_BlockRedstoneLogic_isOpaqueCube(this); }, "$func_94477_d", function(var_1) { return nms_BlockRedstoneLogic_func_94477_d(this, var_1); }, "$func_94480_d", -function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneLogic_func_94480_d(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockRedstoneRepeater, "BlockRedstoneRepeater", 24, nms_BlockRedstoneLogic, [], 0, 3, 0, ["$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockRedstoneRepeater_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$func_94481_j_", function(var_1) { return nms_BlockRedstoneRepeater_func_94481_j_(this, var_1); }, "$func_94485_e", function() { return nms_BlockRedstoneRepeater_func_94485_e(this); }, "$func_94484_i", -function() { return nms_BlockRedstoneRepeater_func_94484_i(this); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockRedstoneRepeater_idDropped(this, var_1, var_2, var_3); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockRedstoneRepeater_idPicked(this, var_1, var_2, var_3, var_4); }, "$getRenderType", function() { return nms_BlockRedstoneRepeater_getRenderType(this); }, "$func_94476_e", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockRedstoneRepeater_func_94476_e(this, -var_1, var_2, var_3, var_4, var_5); }, "$func_94477_d", function(var_1) { return nms_BlockRedstoneRepeater_func_94477_d(this, var_1); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneRepeater_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockRedstoneRepeater_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_BlockLockedChest, "BlockLockedChest", 24, nms_Block, [], 0, 3, 0, ["$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockLockedChest_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_BlockLockedChest_registerIcons(this, var_1); }], -nms_BlockTrapDoor, "BlockTrapDoor", 24, nms_Block, [], 0, 3, 0, ["$isOpaqueCube", function() { return nms_BlockTrapDoor_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockTrapDoor_renderAsNormalBlock(this); }, "$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_BlockTrapDoor_getBlocksMovement(this, var_1, var_2, var_3, var_4); }, "$getRenderType", function() { return nms_BlockTrapDoor_getRenderType(this); }, "$getSelectedBoundingBoxFromPool", function(var_1, var_2, -var_3, var_4) { return nms_BlockTrapDoor_getSelectedBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockTrapDoor_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockTrapDoor_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsForItemRender", function() { nms_BlockTrapDoor_setBlockBoundsForItemRender(this); -}, "$onBlockClicked", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTrapDoor_onBlockClicked(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockTrapDoor_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTrapDoor_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, -"$collisionRayTrace", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_BlockTrapDoor_collisionRayTrace(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockTrapDoor_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$canPlaceBlockOnSide", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockTrapDoor_canPlaceBlockOnSide(this, var_1, var_2, var_3, -var_4, var_5); }], -nms_BlockSilverfish, "BlockSilverfish", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockSilverfish_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockSilverfish_registerIcons(this, var_1); }, "$onBlockDestroyedByPlayer", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockSilverfish_onBlockDestroyedByPlayer(this, var_1, var_2, var_3, var_4, var_5); }, "$quantityDropped", function(var_1) { return nms_BlockSilverfish_quantityDropped(this, var_1); }, -"$getDamageValue", function(var_1, var_2, var_3, var_4) { return nms_BlockSilverfish_getDamageValue(this, var_1, var_2, var_3, var_4); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockSilverfish_getSubBlocks(this, var_1, var_2, var_3); }], -nms_BlockStoneBrick, "BlockStoneBrick", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockStoneBrick_getIcon(this, var_1, var_2); }, "$damageDropped", function(var_1) { return nms_BlockStoneBrick_damageDropped(this, var_1); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockStoneBrick_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockStoneBrick_registerIcons(this, var_1); }], -nms_BlockMushroomCap, "BlockMushroomCap", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockMushroomCap_getIcon(this, var_1, var_2); }, "$quantityDropped", function(var_1) { return nms_BlockMushroomCap_quantityDropped(this, var_1); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockMushroomCap_idDropped(this, var_1, var_2, var_3); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockMushroomCap_idPicked(this, var_1, var_2, var_3, var_4); }, "$registerIcons", -function(var_1) { nms_BlockMushroomCap_registerIcons(this, var_1); }], -nms_BlockPane, "BlockPane", 24, nms_Block, [], 0, 3, 0, ["$idDropped", function(var_1, var_2, var_3) { return nms_BlockPane_idDropped(this, var_1, var_2, var_3); }, "$isOpaqueCube", function() { return nms_BlockPane_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockPane_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockPane_getRenderType(this); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockPane_shouldSideBeRendered(this, -var_1, var_2, var_3, var_4, var_5); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockPane_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setBlockBoundsForItemRender", function() { nms_BlockPane_setBlockBoundsForItemRender(this); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockPane_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_BlockPane_registerIcons(this, -var_1); }], -nms_BlockMelon, "BlockMelon", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockMelon_getIcon(this, var_1, var_2); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockMelon_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockMelon_quantityDropped(this, var_1); }, "$quantityDroppedWithBonus", function(var_1, var_2) { return nms_BlockMelon_quantityDroppedWithBonus(this, var_1, var_2); }, "$registerIcons", function(var_1) { -nms_BlockMelon_registerIcons(this, var_1); }], -nms_BlockStem, "BlockStem", 24, nms_BlockFlower, [], 0, 3, 0, ["$canThisPlantGrowOnThisBlockID", function(var_1) { return nms_BlockStem_canThisPlantGrowOnThisBlockID(this, var_1); }, "$getRenderColor", function(var_1) { return nms_BlockStem_getRenderColor(this, var_1); }, "$colorMultiplier", function(var_1, var_2, var_3, var_4) { return nms_BlockStem_colorMultiplier(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsForItemRender", function() { nms_BlockStem_setBlockBoundsForItemRender(this); }, "$setBlockBoundsBasedOnState", -function(var_1, var_2, var_3, var_4) { nms_BlockStem_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$getRenderType", function() { return nms_BlockStem_getRenderType(this); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockStem_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockStem_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) -{ return nms_BlockStem_quantityDropped(this, var_1); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockStem_idPicked(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_BlockStem_registerIcons(this, var_1); }], -nms_BlockVine, "BlockVine", 24, nms_Block, [], 0, 3, 0, ["$setBlockBoundsForItemRender", function() { nms_BlockVine_setBlockBoundsForItemRender(this); }, "$getRenderType", function() { return nms_BlockVine_getRenderType(this); }, "$isOpaqueCube", function() { return nms_BlockVine_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockVine_renderAsNormalBlock(this); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockVine_setBlockBoundsBasedOnState(this, var_1, -var_2, var_3, var_4); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockVine_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$canPlaceBlockOnSide", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockVine_canPlaceBlockOnSide(this, var_1, var_2, var_3, var_4, var_5); }, "$getBlockColor", function() { return nms_BlockVine_getBlockColor(this); }, "$getRenderColor", function(var_1) { return nms_BlockVine_getRenderColor(this, var_1); }, -"$colorMultiplier", function(var_1, var_2, var_3, var_4) { return nms_BlockVine_colorMultiplier(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockVine_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockVine_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$idDropped", function(var_1, -var_2, var_3) { return nms_BlockVine_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockVine_quantityDropped(this, var_1); }], -nms_BlockFenceGate, "BlockFenceGate", 24, nms_BlockDirectional, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockFenceGate_getIcon(this, var_1, var_2); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockFenceGate_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockFenceGate_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsBasedOnState", -function(var_1, var_2, var_3, var_4) { nms_BlockFenceGate_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockFenceGate_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockFenceGate_renderAsNormalBlock(this); }, "$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_BlockFenceGate_getBlocksMovement(this, var_1, var_2, var_3, var_4); }, "$getRenderType", function() { return nms_BlockFenceGate_getRenderType(this); -}, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockFenceGate_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockFenceGate_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockFenceGate_onNeighborBlockChange(this, var_1, var_2, var_3, -var_4, var_5); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockFenceGate_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockFenceGate_registerIcons(this, var_1); }], -nms_BlockMycelium, "BlockMycelium", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockMycelium_getIcon(this, var_1, var_2); }, "$getBlockTexture", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockMycelium_getBlockTexture(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockMycelium_registerIcons(this, var_1); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockMycelium_randomDisplayTick(this, var_1, -var_2, var_3, var_4, var_5); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockMycelium_idDropped(this, var_1, var_2, var_3); }], -nms_BlockLilyPad, "BlockLilyPad", 24, nms_BlockFlower, [], 0, 3, 0, ["$getRenderType", function() { return nms_BlockLilyPad_getRenderType(this); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockLilyPad_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockLilyPad_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getBlockColor", -function() { return nms_BlockLilyPad_getBlockColor(this); }, "$getRenderColor", function(var_1) { return nms_BlockLilyPad_getRenderColor(this, var_1); }, "$colorMultiplier", function(var_1, var_2, var_3, var_4) { return nms_BlockLilyPad_colorMultiplier(this, var_1, var_2, var_3, var_4); }, "$canThisPlantGrowOnThisBlockID", function(var_1) { return nms_BlockLilyPad_canThisPlantGrowOnThisBlockID(this, var_1); }, "$canBlockStay", function(var_1, var_2, var_3, var_4) { return nms_BlockLilyPad_canBlockStay(this, -var_1, var_2, var_3, var_4); }], -nms_BlockNetherStalk, "BlockNetherStalk", 24, nms_BlockFlower, [], 0, 3, 0, ["$canThisPlantGrowOnThisBlockID", function(var_1) { return nms_BlockNetherStalk_canThisPlantGrowOnThisBlockID(this, var_1); }, "$canBlockStay", function(var_1, var_2, var_3, var_4) { return nms_BlockNetherStalk_canBlockStay(this, var_1, var_2, var_3, var_4); }, "$getIcon", function(var_1, var_2) { return nms_BlockNetherStalk_getIcon(this, var_1, var_2); }, "$getRenderType", function() { return nms_BlockNetherStalk_getRenderType(this); -}, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockNetherStalk_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockNetherStalk_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockNetherStalk_quantityDropped(this, var_1); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockNetherStalk_idPicked(this, var_1, -var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_BlockNetherStalk_registerIcons(this, var_1); }], -nms_BlockEnchantmentTable, "BlockEnchantmentTable", 24, nms_BlockContainer, [], 0, 3, 0, ["$renderAsNormalBlock", function() { return nms_BlockEnchantmentTable_renderAsNormalBlock(this); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockEnchantmentTable_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$isOpaqueCube", function() { return nms_BlockEnchantmentTable_isOpaqueCube(this); }, "$getIcon", function(var_1, var_2) { return nms_BlockEnchantmentTable_getIcon(this, -var_1, var_2); }, "$createNewTileEntity", function(var_1) { return nms_BlockEnchantmentTable_createNewTileEntity(this, var_1); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockEnchantmentTable_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockEnchantmentTable_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, -"$registerIcons", function(var_1) { nms_BlockEnchantmentTable_registerIcons(this, var_1); }], -nms_BlockBrewingStand, "BlockBrewingStand", 24, nms_BlockContainer, [], 0, 3, 0, ["$isOpaqueCube", function() { return nms_BlockBrewingStand_isOpaqueCube(this); }, "$getRenderType", function() { return nms_BlockBrewingStand_getRenderType(this); }, "$createNewTileEntity", function(var_1) { return nms_BlockBrewingStand_createNewTileEntity(this, var_1); }, "$renderAsNormalBlock", function() { return nms_BlockBrewingStand_renderAsNormalBlock(this); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, -var_5, var_6, var_7) { nms_BlockBrewingStand_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setBlockBoundsForItemRender", function() { nms_BlockBrewingStand_setBlockBoundsForItemRender(this); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockBrewingStand_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) -{ nms_BlockBrewingStand_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockBrewingStand_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockBrewingStand_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockBrewingStand_idDropped(this, var_1, var_2, var_3); }, -"$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockBrewingStand_idPicked(this, var_1, var_2, var_3, var_4); }, "$hasComparatorInputOverride", function() { return nms_BlockBrewingStand_hasComparatorInputOverride(this); }, "$getComparatorInputOverride", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockBrewingStand_getComparatorInputOverride(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockBrewingStand_registerIcons(this, var_1); }], -nms_BlockCauldron, "BlockCauldron", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockCauldron_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockCauldron_registerIcons(this, var_1); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockCauldron_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$setBlockBoundsForItemRender", function() { nms_BlockCauldron_setBlockBoundsForItemRender(this); -}, "$isOpaqueCube", function() { return nms_BlockCauldron_isOpaqueCube(this); }, "$getRenderType", function() { return nms_BlockCauldron_getRenderType(this); }, "$renderAsNormalBlock", function() { return nms_BlockCauldron_renderAsNormalBlock(this); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockCauldron_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockCauldron_idDropped(this, -var_1, var_2, var_3); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockCauldron_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockEndPortal, "BlockEndPortal", 24, nms_BlockContainer, [], 0, 3, 0, ["$createNewTileEntity", function(var_1) { return nms_BlockEndPortal_createNewTileEntity(this, var_1); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockEndPortal_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockEndPortal_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$addCollisionBoxesToList", -function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockEndPortal_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$isOpaqueCube", function() { return nms_BlockEndPortal_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockEndPortal_renderAsNormalBlock(this); }, "$quantityDropped", function(var_1) { return nms_BlockEndPortal_quantityDropped(this, var_1); }, "$onEntityCollidedWithBlock", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockEndPortal_onEntityCollidedWithBlock(this, -var_1, var_2, var_3, var_4, var_5); }, "$randomDisplayTick", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockEndPortal_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$getRenderType", function() { return nms_BlockEndPortal_getRenderType(this); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockEndPortal_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockEndPortal_idPicked(this, var_1, var_2, var_3, var_4); -}, "$registerIcons", function(var_1) { nms_BlockEndPortal_registerIcons(this, var_1); }], -nms_BlockEndPortalFrame, "BlockEndPortalFrame", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockEndPortalFrame_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockEndPortalFrame_registerIcons(this, var_1); }, "$isOpaqueCube", function() { return nms_BlockEndPortalFrame_isOpaqueCube(this); }, "$getRenderType", function() { return nms_BlockEndPortalFrame_getRenderType(this); }, "$setBlockBoundsForItemRender", function() { nms_BlockEndPortalFrame_setBlockBoundsForItemRender(this); -}, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockEndPortalFrame_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockEndPortalFrame_idDropped(this, var_1, var_2, var_3); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockEndPortalFrame_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_BlockDragonEgg, "BlockDragonEgg", 24, nms_Block, [], 0, 3, 0, ["$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockDragonEgg_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockDragonEgg_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockDragonEgg_onBlockActivated(this, var_1, var_2, var_3, -var_4, var_5, var_6, var_7, var_8, var_9); }, "$onBlockClicked", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockDragonEgg_onBlockClicked(this, var_1, var_2, var_3, var_4, var_5); }, "$isOpaqueCube", function() { return nms_BlockDragonEgg_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockDragonEgg_renderAsNormalBlock(this); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockDragonEgg_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, -var_5); }, "$getRenderType", function() { return nms_BlockDragonEgg_getRenderType(this); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockDragonEgg_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockRedstoneLight, "BlockRedstoneLight", 24, nms_Block, [], 0, 3, 0, ["$registerIcons", function(var_1) { nms_BlockRedstoneLight_registerIcons(this, var_1); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockRedstoneLight_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockRedstoneLight_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockRedstoneLight_idDropped(this, -var_1, var_2, var_3); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockRedstoneLight_idPicked(this, var_1, var_2, var_3, var_4); }], -nms_BlockWoodSlab, "BlockWoodSlab", 24, nms_BlockHalfSlab, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockWoodSlab_getIcon(this, var_1, var_2); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockWoodSlab_idDropped(this, var_1, var_2, var_3); }, "$getFullSlabName", function(var_1) { return nms_BlockWoodSlab_getFullSlabName(this, var_1); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockWoodSlab_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) -{ nms_BlockWoodSlab_registerIcons(this, var_1); }], -nms_BlockCocoa, "BlockCocoa", 24, nms_BlockDirectional, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockCocoa_getIcon(this, var_1, var_2); }, "$getRenderType", function() { return nms_BlockCocoa_getRenderType(this); }, "$renderAsNormalBlock", function() { return nms_BlockCocoa_renderAsNormalBlock(this); }, "$isOpaqueCube", function() { return nms_BlockCocoa_isOpaqueCube(this); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockCocoa_getCollisionBoundingBoxFromPool(this, -var_1, var_2, var_3, var_4); }, "$getSelectedBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockCocoa_getSelectedBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockCocoa_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockCocoa_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockPlaced", -function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockCocoa_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockCocoa_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockCocoa_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, -var_7); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockCocoa_idPicked(this, var_1, var_2, var_3, var_4); }, "$getDamageValue", function(var_1, var_2, var_3, var_4) { return nms_BlockCocoa_getDamageValue(this, var_1, var_2, var_3, var_4); }, "$registerIcons", function(var_1) { nms_BlockCocoa_registerIcons(this, var_1); }]]); -$rt_metadata([nms_BlockEnderChest, "BlockEnderChest", 24, nms_BlockContainer, [], 0, 3, 0, ["$isOpaqueCube", function() { return nms_BlockEnderChest_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockEnderChest_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockEnderChest_getRenderType(this); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockEnderChest_idDropped(this, var_1, var_2, var_3); }, "$quantityDropped", function(var_1) { return nms_BlockEnderChest_quantityDropped(this, -var_1); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockEnderChest_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockEnderChest_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$createNewTileEntity", function(var_1) { return nms_BlockEnderChest_createNewTileEntity(this, var_1); }, "$randomDisplayTick", function(var_1, -var_2, var_3, var_4, var_5) { nms_BlockEnderChest_randomDisplayTick(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockEnderChest_registerIcons(this, var_1); }], -nms_BlockTripWireSource, "BlockTripWireSource", 24, nms_Block, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockTripWireSource_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockTripWireSource_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockTripWireSource_renderAsNormalBlock(this); }, "$getRenderType", function() { return nms_BlockTripWireSource_getRenderType(this); -}, "$canPlaceBlockOnSide", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockTripWireSource_canPlaceBlockOnSide(this, var_1, var_2, var_3, var_4, var_5); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) { return nms_BlockTripWireSource_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockTripWireSource_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); -}, "$onPostBlockPlaced", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTripWireSource_onPostBlockPlaced(this, var_1, var_2, var_3, var_4, var_5); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTripWireSource_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockTripWireSource_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, -var_3, var_4, var_5, var_6) { nms_BlockTripWireSource_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockTripWireSource_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, var_5); }, "$isProvidingStrongPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockTripWireSource_isProvidingStrongPower(this, var_1, var_2, var_3, var_4, var_5); }, "$canProvidePower", function() { return nms_BlockTripWireSource_canProvidePower(this); -}], -nms_BlockTripWire, "BlockTripWire", 24, nms_Block, [], 0, 3, 0, ["$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockTripWire_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockTripWire_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockTripWire_renderAsNormalBlock(this); }, "$getRenderBlockPass", function() { return nms_BlockTripWire_getRenderBlockPass(this); }, "$getRenderType", -function() { return nms_BlockTripWire_getRenderType(this); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockTripWire_idDropped(this, var_1, var_2, var_3); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockTripWire_idPicked(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTripWire_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, -var_4) { nms_BlockTripWire_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockTripWire_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockTripWire_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onEntityCollidedWithBlock", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockTripWire_onEntityCollidedWithBlock(this, var_1, var_2, var_3, -var_4, var_5); }], -nms_BlockCommandBlock, "BlockCommandBlock", 24, nms_BlockContainer, [], 0, 3, 0, ["$createNewTileEntity", function(var_1) { return nms_BlockCommandBlock_createNewTileEntity(this, var_1); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockCommandBlock_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockCommandBlock_onBlockActivated(this, var_1, var_2, var_3, -var_4, var_5, var_6, var_7, var_8, var_9); }, "$hasComparatorInputOverride", function() { return nms_BlockCommandBlock_hasComparatorInputOverride(this); }, "$getComparatorInputOverride", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockCommandBlock_getComparatorInputOverride(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockCommandBlock_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_BlockBeacon, "BlockBeacon", 24, nms_BlockContainer, [], 0, 3, 0, ["$createNewTileEntity", function(var_1) { return nms_BlockBeacon_createNewTileEntity(this, var_1); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockBeacon_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$isOpaqueCube", function() { return nms_BlockBeacon_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockBeacon_renderAsNormalBlock(this); -}, "$getRenderType", function() { return nms_BlockBeacon_getRenderType(this); }, "$registerIcons", function(var_1) { nms_BlockBeacon_registerIcons(this, var_1); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockBeacon_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }], -nms_BlockWall, "BlockWall", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockWall_getIcon(this, var_1, var_2); }, "$getRenderType", function() { return nms_BlockWall_getRenderType(this); }, "$renderAsNormalBlock", function() { return nms_BlockWall_renderAsNormalBlock(this); }, "$getBlocksMovement", function(var_1, var_2, var_3, var_4) { return nms_BlockWall_getBlocksMovement(this, var_1, var_2, var_3, var_4); }, "$isOpaqueCube", function() { return nms_BlockWall_isOpaqueCube(this); -}, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockWall_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, var_3, var_4) { return nms_BlockWall_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockWall_getSubBlocks(this, var_1, var_2, var_3); }, "$damageDropped", function(var_1) { return nms_BlockWall_damageDropped(this, var_1); }, -"$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockWall_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockWall_registerIcons(this, var_1); }], -nms_BlockFlowerPot, "BlockFlowerPot", 24, nms_Block, [], 0, 3, 0, ["$setBlockBoundsForItemRender", function() { nms_BlockFlowerPot_setBlockBoundsForItemRender(this); }, "$isOpaqueCube", function() { return nms_BlockFlowerPot_isOpaqueCube(this); }, "$getRenderType", function() { return nms_BlockFlowerPot_getRenderType(this); }, "$renderAsNormalBlock", function() { return nms_BlockFlowerPot_renderAsNormalBlock(this); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) -{ return nms_BlockFlowerPot_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockFlowerPot_idPicked(this, var_1, var_2, var_3, var_4); }, "$getDamageValue", function(var_1, var_2, var_3, var_4) { return nms_BlockFlowerPot_getDamageValue(this, var_1, var_2, var_3, var_4); }, "$isFlowerPot", function() { return nms_BlockFlowerPot_isFlowerPot(this); }, "$canPlaceBlockAt", function(var_1, var_2, var_3, var_4) -{ return nms_BlockFlowerPot_canPlaceBlockAt(this, var_1, var_2, var_3, var_4); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockFlowerPot_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockFlowerPot_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockFlowerPot_idDropped(this, -var_1, var_2, var_3); }], -nms_BlockCarrot, "BlockCarrot", 24, nms_BlockCrops, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockCarrot_getIcon(this, var_1, var_2); }, "$getSeedItem", function() { return nms_BlockCarrot_getSeedItem(this); }, "$getCropItem", function() { return nms_BlockCarrot_getCropItem(this); }, "$registerIcons", function(var_1) { nms_BlockCarrot_registerIcons(this, var_1); }], -nms_BlockPotato, "BlockPotato", 24, nms_BlockCrops, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockPotato_getIcon(this, var_1, var_2); }, "$getSeedItem", function() { return nms_BlockPotato_getSeedItem(this); }, "$getCropItem", function() { return nms_BlockPotato_getCropItem(this); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockPotato_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$registerIcons", -function(var_1) { nms_BlockPotato_registerIcons(this, var_1); }], -nms_BlockButtonWood, "BlockButtonWood", 24, nms_BlockButton, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockButtonWood_getIcon(this, var_1, var_2); }], -nms_BlockSkull, "BlockSkull", 24, nms_BlockContainer, [], 0, 3, 0, ["$getRenderType", function() { return nms_BlockSkull_getRenderType(this); }, "$isOpaqueCube", function() { return nms_BlockSkull_isOpaqueCube(this); }, "$renderAsNormalBlock", function() { return nms_BlockSkull_renderAsNormalBlock(this); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockSkull_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$getCollisionBoundingBoxFromPool", function(var_1, var_2, -var_3, var_4) { return nms_BlockSkull_getCollisionBoundingBoxFromPool(this, var_1, var_2, var_3, var_4); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockSkull_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$createNewTileEntity", function(var_1) { return nms_BlockSkull_createNewTileEntity(this, var_1); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockSkull_idPicked(this, var_1, var_2, var_3, var_4); }, "$getDamageValue", function(var_1, -var_2, var_3, var_4) { return nms_BlockSkull_getDamageValue(this, var_1, var_2, var_3, var_4); }, "$damageDropped", function(var_1) { return nms_BlockSkull_damageDropped(this, var_1); }, "$dropBlockAsItemWithChance", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockSkull_dropBlockAsItemWithChance(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockSkull_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); -}, "$idDropped", function(var_1, var_2, var_3) { return nms_BlockSkull_idDropped(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockSkull_registerIcons(this, var_1); }, "$getIcon", function(var_1, var_2) { return nms_BlockSkull_getIcon(this, var_1, var_2); }, "$getItemIconName", function() { return nms_BlockSkull_getItemIconName(this); }], -nms_BlockAnvil, "BlockAnvil", 24, nms_BlockSand, [], 0, 3, 0, ["$renderAsNormalBlock", function() { return nms_BlockAnvil_renderAsNormalBlock(this); }, "$isOpaqueCube", function() { return nms_BlockAnvil_isOpaqueCube(this); }, "$getIcon", function(var_1, var_2) { return nms_BlockAnvil_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockAnvil_registerIcons(this, var_1); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockAnvil_onBlockPlacedBy(this, var_1, -var_2, var_3, var_4, var_5, var_6); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockAnvil_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$getRenderType", function() { return nms_BlockAnvil_getRenderType(this); }, "$damageDropped", function(var_1) { return nms_BlockAnvil_damageDropped(this, var_1); }, "$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockAnvil_setBlockBoundsBasedOnState(this, -var_1, var_2, var_3, var_4); }, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockAnvil_getSubBlocks(this, var_1, var_2, var_3); }, "$onFinishFalling", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockAnvil_onFinishFalling(this, var_1, var_2, var_3, var_4, var_5); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockAnvil_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockPressurePlateWeighted, "BlockPressurePlateWeighted", 24, nms_BlockBasePressurePlate, [], 0, 3, 0, ["$getPlateState", function(var_1, var_2, var_3, var_4) { return nms_BlockPressurePlateWeighted_getPlateState(this, var_1, var_2, var_3, var_4); }, "$getPowerSupply", function(var_1) { return nms_BlockPressurePlateWeighted_getPowerSupply(this, var_1); }, "$getMetaFromWeight", function(var_1) { return nms_BlockPressurePlateWeighted_getMetaFromWeight(this, var_1); }, "$tickRate", function(var_1) { return nms_BlockPressurePlateWeighted_tickRate(this, -var_1); }], -nms_BlockComparator, "BlockComparator", 24, nms_BlockRedstoneLogic, [nms_ITileEntityProvider], 0, 3, 0, ["$idDropped", function(var_1, var_2, var_3) { return nms_BlockComparator_idDropped(this, var_1, var_2, var_3); }, "$idPicked", function(var_1, var_2, var_3, var_4) { return nms_BlockComparator_idPicked(this, var_1, var_2, var_3, var_4); }, "$func_94481_j_", function(var_1) { return nms_BlockComparator_func_94481_j_(this, var_1); }, "$func_94485_e", function() { return nms_BlockComparator_func_94485_e(this); -}, "$func_94484_i", function() { return nms_BlockComparator_func_94484_i(this); }, "$getRenderType", function() { return nms_BlockComparator_getRenderType(this); }, "$getIcon", function(var_1, var_2) { return nms_BlockComparator_getIcon(this, var_1, var_2); }, "$func_96470_c", function(var_1) { return nms_BlockComparator_func_96470_c(this, var_1); }, "$func_94480_d", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockComparator_func_94480_d(this, var_1, var_2, var_3, var_4, var_5); }, "$func_94478_d", -function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockComparator_func_94478_d(this, var_1, var_2, var_3, var_4, var_5); }, "$getInputStrength", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockComparator_getInputStrength(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockComparator_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$func_94479_f", -function(var_1, var_2, var_3, var_4, var_5) { nms_BlockComparator_func_94479_f(this, var_1, var_2, var_3, var_4, var_5); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockComparator_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockComparator_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockEventReceived", function(var_1, var_2, var_3, var_4, var_5, var_6) { return nms_BlockComparator_onBlockEventReceived(this, -var_1, var_2, var_3, var_4, var_5, var_6); }, "$registerIcons", function(var_1) { nms_BlockComparator_registerIcons(this, var_1); }, "$createNewTileEntity", function(var_1) { return nms_BlockComparator_createNewTileEntity(this, var_1); }], -nms_BlockDaylightDetector, "BlockDaylightDetector", 24, nms_BlockContainer, [], 0, 3, 0, ["$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockDaylightDetector_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockDaylightDetector_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, var_5); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockDaylightDetector_onNeighborBlockChange(this, -var_1, var_2, var_3, var_4, var_5); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockDaylightDetector_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$renderAsNormalBlock", function() { return nms_BlockDaylightDetector_renderAsNormalBlock(this); }, "$isOpaqueCube", function() { return nms_BlockDaylightDetector_isOpaqueCube(this); }, "$canProvidePower", function() { return nms_BlockDaylightDetector_canProvidePower(this); }, "$createNewTileEntity", function(var_1) { return nms_BlockDaylightDetector_createNewTileEntity(this, -var_1); }, "$getIcon", function(var_1, var_2) { return nms_BlockDaylightDetector_getIcon(this, var_1, var_2); }, "$registerIcons", function(var_1) { nms_BlockDaylightDetector_registerIcons(this, var_1); }], -nms_BlockPoweredOre, "BlockPoweredOre", 24, nms_BlockOreStorage, [], 0, 3, 0, ["$canProvidePower", function() { return nms_BlockPoweredOre_canProvidePower(this); }, "$isProvidingWeakPower", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockPoweredOre_isProvidingWeakPower(this, var_1, var_2, var_3, var_4, var_5); }], -nms_BlockHopper, "BlockHopper", 24, nms_BlockContainer, [], 0, 3, 0, ["$setBlockBoundsBasedOnState", function(var_1, var_2, var_3, var_4) { nms_BlockHopper_setBlockBoundsBasedOnState(this, var_1, var_2, var_3, var_4); }, "$addCollisionBoxesToList", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { nms_BlockHopper_addCollisionBoxesToList(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockHopper_onBlockPlaced(this, -var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$createNewTileEntity", function(var_1) { return nms_BlockHopper_createNewTileEntity(this, var_1); }, "$onBlockPlacedBy", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockHopper_onBlockPlacedBy(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$onBlockAdded", function(var_1, var_2, var_3, var_4) { nms_BlockHopper_onBlockAdded(this, var_1, var_2, var_3, var_4); }, "$onBlockActivated", function(var_1, var_2, var_3, var_4, var_5, -var_6, var_7, var_8, var_9) { return nms_BlockHopper_onBlockActivated(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$onNeighborBlockChange", function(var_1, var_2, var_3, var_4, var_5) { nms_BlockHopper_onNeighborBlockChange(this, var_1, var_2, var_3, var_4, var_5); }, "$breakBlock", function(var_1, var_2, var_3, var_4, var_5, var_6) { nms_BlockHopper_breakBlock(this, var_1, var_2, var_3, var_4, var_5, var_6); }, "$getRenderType", function() { return nms_BlockHopper_getRenderType(this); -}, "$renderAsNormalBlock", function() { return nms_BlockHopper_renderAsNormalBlock(this); }, "$isOpaqueCube", function() { return nms_BlockHopper_isOpaqueCube(this); }, "$shouldSideBeRendered", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockHopper_shouldSideBeRendered(this, var_1, var_2, var_3, var_4, var_5); }, "$getIcon", function(var_1, var_2) { return nms_BlockHopper_getIcon(this, var_1, var_2); }, "$hasComparatorInputOverride", function() { return nms_BlockHopper_hasComparatorInputOverride(this); -}, "$getComparatorInputOverride", function(var_1, var_2, var_3, var_4, var_5) { return nms_BlockHopper_getComparatorInputOverride(this, var_1, var_2, var_3, var_4, var_5); }, "$registerIcons", function(var_1) { nms_BlockHopper_registerIcons(this, var_1); }, "$getItemIconName", function() { return nms_BlockHopper_getItemIconName(this); }], -nms_BlockQuartz, "BlockQuartz", 24, nms_Block, [], 0, 3, 0, ["$getIcon", function(var_1, var_2) { return nms_BlockQuartz_getIcon(this, var_1, var_2); }, "$onBlockPlaced", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9) { return nms_BlockQuartz_onBlockPlaced(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9); }, "$damageDropped", function(var_1) { return nms_BlockQuartz_damageDropped(this, var_1); }, "$getRenderType", function() { return nms_BlockQuartz_getRenderType(this); -}, "$getSubBlocks", function(var_1, var_2, var_3) { nms_BlockQuartz_getSubBlocks(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_BlockQuartz_registerIcons(this, var_1); }], -nms_BlockDropper, "BlockDropper", 24, nms_BlockDispenser, [], 0, 3, 0, ["$registerIcons", function(var_1) { nms_BlockDropper_registerIcons(this, var_1); }, "$createNewTileEntity", function(var_1) { return nms_BlockDropper_createNewTileEntity(this, var_1); }], -nms_ItemBlock, 0, nms_Item, [], 0, 3, 0, ["$getSpriteNumber", function() { return nms_ItemBlock_getSpriteNumber(this); }, "$getIconFromDamage", function(var_1) { return nms_ItemBlock_getIconFromDamage(this, var_1); }, "$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemBlock_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }, "$canPlaceItemBlockOnSide", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { -return nms_ItemBlock_canPlaceItemBlockOnSide(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getUnlocalizedName", function(var_1) { return nms_ItemBlock_getUnlocalizedName(this, var_1); }, "$getUnlocalizedName0", function() { return nms_ItemBlock_getUnlocalizedName0(this); }, "$getCreativeTab", function() { return nms_ItemBlock_getCreativeTab(this); }, "$getSubItems", function(var_1, var_2, var_3) { nms_ItemBlock_getSubItems(this, var_1, var_2, var_3); }, "$registerIcons", function(var_1) { nms_ItemBlock_registerIcons(this, -var_1); }], -nms_ItemCloth, 0, nms_ItemBlock, [], 0, 3, 0, ["$getIconFromDamage", function(var_1) { return nms_ItemCloth_getIconFromDamage(this, var_1); }, "$getMetadata", function(var_1) { return nms_ItemCloth_getMetadata(this, var_1); }, "$getUnlocalizedName", function(var_1) { return nms_ItemCloth_getUnlocalizedName(this, var_1); }], -nms_ItemMultiTextureTile, 0, nms_ItemBlock, [], 0, 3, 0, ["$getIconFromDamage", function(var_1) { return nms_ItemMultiTextureTile_getIconFromDamage(this, var_1); }, "$getMetadata", function(var_1) { return nms_ItemMultiTextureTile_getMetadata(this, var_1); }, "$getUnlocalizedName", function(var_1) { return nms_ItemMultiTextureTile_getUnlocalizedName(this, var_1); }], -nms_ItemSlab, 0, nms_ItemBlock, [], 0, 3, 0, ["$getIconFromDamage", function(var_1) { return nms_ItemSlab_getIconFromDamage(this, var_1); }, "$getMetadata", function(var_1) { return nms_ItemSlab_getMetadata(this, var_1); }, "$getUnlocalizedName", function(var_1) { return nms_ItemSlab_getUnlocalizedName(this, var_1); }, "$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemSlab_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, -var_10); }, "$canPlaceItemBlockOnSide", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { return nms_ItemSlab_canPlaceItemBlockOnSide(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_ItemLeaves, 0, nms_ItemBlock, [], 0, 3, 0, ["$getMetadata", function(var_1) { return nms_ItemLeaves_getMetadata(this, var_1); }, "$getIconFromDamage", function(var_1) { return nms_ItemLeaves_getIconFromDamage(this, var_1); }, "$getColorFromItemStack", function(var_1, var_2) { return nms_ItemLeaves_getColorFromItemStack(this, var_1, var_2); }, "$getUnlocalizedName", function(var_1) { return nms_ItemLeaves_getUnlocalizedName(this, var_1); }], -nms_ItemColored, 0, nms_ItemBlock, [], 0, 3, 0, ["$getColorFromItemStack", function(var_1, var_2) { return nms_ItemColored_getColorFromItemStack(this, var_1, var_2); }, "$getIconFromDamage", function(var_1) { return nms_ItemColored_getIconFromDamage(this, var_1); }, "$getMetadata", function(var_1) { return nms_ItemColored_getMetadata(this, var_1); }, "$getUnlocalizedName", function(var_1) { return nms_ItemColored_getUnlocalizedName(this, var_1); }], -nms_ItemBlockWithMetadata, 0, nms_ItemBlock, [], 0, 3, 0, ["$getIconFromDamage", function(var_1) { return nms_ItemBlockWithMetadata_getIconFromDamage(this, var_1); }, "$getMetadata", function(var_1) { return nms_ItemBlockWithMetadata_getMetadata(this, var_1); }], -nms_ItemSnow, 0, nms_ItemBlockWithMetadata, [], 0, 3, 0, ["$onItemUse", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10) { return nms_ItemSnow_onItemUse(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7, var_8, var_9, var_10); }], -nms_ItemLilyPad, 0, nms_ItemColored, [], 0, 3, 0, ["$onItemRightClick", function(var_1, var_2, var_3) { return nms_ItemLilyPad_onItemRightClick(this, var_1, var_2, var_3); }, "$getColorFromItemStack", function(var_1, var_2) { return nms_ItemLilyPad_getColorFromItemStack(this, var_1, var_2); }], -nms_ItemPiston, 0, nms_ItemBlock, [], 0, 3, 0, ["$getMetadata", function(var_1) { return nms_ItemPiston_getMetadata(this, var_1); }], -nms_ItemAnvilBlock, 0, nms_ItemMultiTextureTile, [], 0, 3, 0, ["$getMetadata", function(var_1) { return nms_ItemAnvilBlock_getMetadata(this, var_1); }], -ju_LinkedHashMap, 0, ju_HashMap, [ju_Map], 0, 3, 0, ["$newElementArray", function(var_1) { return ju_LinkedHashMap_newElementArray(this, var_1); }], -nms_EntityMinecartEmpty, "EntityMinecartEmpty", 24, nms_EntityMinecart, [], 0, 3, 0, ["$interact", function(var_1) { return nms_EntityMinecartEmpty_interact(this, var_1); }, "$getMinecartType", function() { return nms_EntityMinecartEmpty_getMinecartType(this); }], -nms_EntityMinecartContainer, "EntityMinecartContainer", 24, nms_EntityMinecart, [nms_IInventory], 1, 3, 0, ["$getStackInSlot", function(var_1) { return nms_EntityMinecartContainer_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return nms_EntityMinecartContainer_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { nms_EntityMinecartContainer_setInventorySlotContents(this, var_1, var_2); }, "$onInventoryChanged", function() { nms_EntityMinecartContainer_onInventoryChanged(this); -}, "$isUseableByPlayer", function(var_1) { return nms_EntityMinecartContainer_isUseableByPlayer(this, var_1); }, "$openChest", function() { nms_EntityMinecartContainer_openChest(this); }, "$closeChest", function() { nms_EntityMinecartContainer_closeChest(this); }, "$isStackValidForSlot", function(var_1, var_2) { return $java.nms_EntityMinecartContainer_isStackValidForSlot(this, var_1, var_2); }, "$getInvName", function() { return $java.nms_EntityMinecartContainer_getInvName(this); }, "$getInventoryStackLimit", -function() { return $java.nms_EntityMinecartContainer_getInventoryStackLimit(this); }, "$travelToDimension", function(var_1) { $java.nms_EntityMinecartContainer_travelToDimension(this, var_1); }, "$setDead", function() { nms_EntityMinecartContainer_setDead(this); }, "$interact", function(var_1) { return $java.nms_EntityMinecartContainer_interact(this, var_1); }, "$applyDrag", function() { $java.nms_EntityMinecartContainer_applyDrag(this); }], -nms_EntityMinecartChest, "EntityMinecartChest", 24, nms_EntityMinecartContainer, [], 0, 3, 0, ["$killMinecart", function(var_1) { $java.nms_EntityMinecartChest_killMinecart(this, var_1); }, "$getSizeInventory", function() { return $java.nms_EntityMinecartChest_getSizeInventory(this); }, "$getMinecartType", function() { return $java.nms_EntityMinecartChest_getMinecartType(this); }, "$getDefaultDisplayTile", function() { return $java.nms_EntityMinecartChest_getDefaultDisplayTile(this); }, "$getDefaultDisplayTileOffset", -function() { return $java.nms_EntityMinecartChest_getDefaultDisplayTileOffset(this); }], -nms_EntityMinecartFurnace, "EntityMinecartFurnace", 24, nms_EntityMinecart, [], 0, 3, 0, ["$getMinecartType", function() { return $java.nms_EntityMinecartFurnace_getMinecartType(this); }, "$entityInit", function() { $java.nms_EntityMinecartFurnace_entityInit(this); }, "$onUpdate", function() { $java.nms_EntityMinecartFurnace_onUpdate(this); }, "$killMinecart", function(var_1) { $java.nms_EntityMinecartFurnace_killMinecart(this, var_1); }, "$updateOnTrack", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) -{ $java.nms_EntityMinecartFurnace_updateOnTrack(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$applyDrag", function() { $java.nms_EntityMinecartFurnace_applyDrag(this); }, "$interact", function(var_1) { return $java.nms_EntityMinecartFurnace_interact(this, var_1); }, "$getDefaultDisplayTile", function() { return $java.nms_EntityMinecartFurnace_getDefaultDisplayTile(this); }, "$getDefaultDisplayTileData", function() { return $java.nms_EntityMinecartFurnace_getDefaultDisplayTileData(this); }], -$java.nms_Hopper, 0, jl_Object, [nms_IInventory], 3, 3, 0, 0, -nms_EntityMinecartHopper, "EntityMinecartHopper", 24, nms_EntityMinecartContainer, [$java.nms_Hopper], 0, 3, 0, ["$getMinecartType", function() { return $java.nms_EntityMinecartHopper_getMinecartType(this); }, "$getDefaultDisplayTile", function() { return $java.nms_EntityMinecartHopper_getDefaultDisplayTile(this); }, "$getDefaultDisplayTileOffset", function() { return $java.nms_EntityMinecartHopper_getDefaultDisplayTileOffset(this); }, "$getSizeInventory", function() { return $java.nms_EntityMinecartHopper_getSizeInventory(this); -}, "$interact", function(var_1) { return $java.nms_EntityMinecartHopper_interact(this, var_1); }, "$onActivatorRailPass", function(var_1, var_2, var_3, var_4) { $java.nms_EntityMinecartHopper_onActivatorRailPass(this, var_1, var_2, var_3, var_4); }, "$getWorldObj", function() { return $java.nms_EntityMinecartHopper_getWorldObj(this); }, "$getXPos", function() { return $java.nms_EntityMinecartHopper_getXPos(this); }, "$getYPos", function() { return $java.nms_EntityMinecartHopper_getYPos(this); }, "$getZPos", -function() { return $java.nms_EntityMinecartHopper_getZPos(this); }, "$onUpdate", function() { $java.nms_EntityMinecartHopper_onUpdate(this); }, "$killMinecart", function(var_1) { $java.nms_EntityMinecartHopper_killMinecart(this, var_1); }], -nms_EntityPigZombie, "EntityPigZombie", 24, nms_EntityZombie, [], 0, 3, 0, ["$isAIEnabled", function() { return $java.nms_EntityPigZombie_isAIEnabled(this); }, "$onUpdate", function() { $java.nms_EntityPigZombie_onUpdate(this); }, "$findPlayerToAttack", function() { return $java.nms_EntityPigZombie_findPlayerToAttack(this); }, "$attackEntityFrom", function(var_1, var_2) { return $java.nms_EntityPigZombie_attackEntityFrom(this, var_1, var_2); }, "$getLivingSound", function() { return $java.nms_EntityPigZombie_getLivingSound(this); -}, "$getHurtSound", function() { return $java.nms_EntityPigZombie_getHurtSound(this); }, "$getDeathSound", function() { return $java.nms_EntityPigZombie_getDeathSound(this); }, "$dropFewItems", function(var_1, var_2) { $java.nms_EntityPigZombie_dropFewItems(this, var_1, var_2); }, "$interact", function(var_1) { return $java.nms_EntityPigZombie_interact(this, var_1); }, "$dropRareDrop", function(var_1) { $java.nms_EntityPigZombie_dropRareDrop(this, var_1); }, "$getDropItemId", function() { return $java.nms_EntityPigZombie_getDropItemId(this); -}, "$addRandomArmor", function() { $java.nms_EntityPigZombie_addRandomArmor(this); }, "$initCreature", function() { $java.nms_EntityPigZombie_initCreature(this); }, "$getAttackStrength", function(var_1) { return $java.nms_EntityPigZombie_getAttackStrength(this, var_1); }], -ju_Collections$5, 0, ju_AbstractSet, [], 4, 0, 0, 0, -ju_Collections$6, 0, ju_AbstractMap, [], 4, 0, 0, 0, -ju_Collections$3, 0, ju_AbstractList, [], 4, 0, 0, 0, -jnc_CharsetDecoder, 0, jl_Object, [], 1, 3, 0, 0, -jn_FloatBufferImpl, 0, jn_FloatBuffer, [], 1, 0, 0, 0, -jn_FloatBufferOverArray, 0, jn_FloatBufferImpl, [], 0, 0, 0, ["$getElement0", function(var_1) { return $java.jn_FloatBufferOverArray_getElement(this, var_1); }, "$putElement0", function(var_1, var_2) { $java.jn_FloatBufferOverArray_putElement(this, var_1, var_2); }, "$readOnly2", function() { return $java.jn_FloatBufferOverArray_readOnly(this); }], -nms_EntityEggInfo, "EntityEggInfo", 24, jl_Object, [], 0, 3, 0, 0, -nms_CreativeTabBlock, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabBlock_getTabIconItemIndex(this); }], -nms_CreativeTabDeco, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabDeco_getTabIconItemIndex(this); }], -nms_CreativeTabRedstone, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabRedstone_getTabIconItemIndex(this); }], -nms_CreativeTabTransport, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabTransport_getTabIconItemIndex(this); }], -nms_CreativeTabMisc, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabMisc_getTabIconItemIndex(this); }, "$displayAllReleventItems", function(var_1) { $java.nms_CreativeTabMisc_displayAllReleventItems(this, var_1); }]]); -$rt_metadata([nms_CreativeTabSearch, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabSearch_getTabIconItemIndex(this); }], -nms_CreativeTabFood, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabFood_getTabIconItemIndex(this); }], -nms_CreativeTabTools, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabTools_getTabIconItemIndex(this); }, "$displayAllReleventItems", function(var_1) { $java.nms_CreativeTabTools_displayAllReleventItems(this, var_1); }], -nms_CreativeTabCombat, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabCombat_getTabIconItemIndex(this); }, "$displayAllReleventItems", function(var_1) { $java.nms_CreativeTabCombat_displayAllReleventItems(this, var_1); }], -nms_CreativeTabBrewing, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabBrewing_getTabIconItemIndex(this); }], -nms_CreativeTabMaterial, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabMaterial_getTabIconItemIndex(this); }], -nms_CreativeTabInventory, 0, nms_CreativeTabs, [], 4, 0, 0, ["$getTabIconItemIndex", function() { return $java.nms_CreativeTabInventory_getTabIconItemIndex(this); }], -nms_PotionHealth, 0, nms_Potion, [], 0, 3, 0, ["$isInstant", function() { return $java.nms_PotionHealth_isInstant(this); }, "$isReady", function(var_1, var_2) { return $java.nms_PotionHealth_isReady(this, var_1, var_2); }], -nms_MaterialTransparent, 0, nms_Material, [], 0, 3, 0, ["$isSolid", function() { return $java.nms_MaterialTransparent_isSolid(this); }, "$getCanBlockGrass", function() { return $java.nms_MaterialTransparent_getCanBlockGrass(this); }, "$blocksMovement", function() { return $java.nms_MaterialTransparent_blocksMovement(this); }], -nms_MapColor, 0, jl_Object, [], 0, 3, 0, 0, -nms_MaterialLiquid, 0, nms_Material, [], 0, 3, 0, ["$isLiquid", function() { return $java.nms_MaterialLiquid_isLiquid(this); }, "$blocksMovement", function() { return $java.nms_MaterialLiquid_blocksMovement(this); }, "$isSolid", function() { return $java.nms_MaterialLiquid_isSolid(this); }], -nms_MaterialLogic, 0, nms_Material, [], 0, 3, 0, ["$isSolid", function() { return $java.nms_MaterialLogic_isSolid(this); }, "$getCanBlockGrass", function() { return $java.nms_MaterialLogic_getCanBlockGrass(this); }, "$blocksMovement", function() { return $java.nms_MaterialLogic_blocksMovement(this); }], -nms_MaterialPortal, 0, nms_Material, [], 0, 3, 0, ["$isSolid", function() { return $java.nms_MaterialPortal_isSolid(this); }, "$getCanBlockGrass", function() { return $java.nms_MaterialPortal_getCanBlockGrass(this); }, "$blocksMovement", function() { return $java.nms_MaterialPortal_blocksMovement(this); }], -nms_MaterialWeb, 0, nms_Material, [], 4, 0, 0, ["$blocksMovement", function() { return $java.nms_MaterialWeb_blocksMovement(this); }], -jur_AbstractSet, 0, jl_Object, [], 1, 0, 0, ["$find0", function(var_1, var_2, var_3) { return $java.jur_AbstractSet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_AbstractSet_findBack(this, var_1, var_2, var_3, var_4); }, "$getType0", function() { return $java.jur_AbstractSet_getType(this); }, "$toString", function() { return $java.jur_AbstractSet_toString(this); }, "$setNext", function(var_1) { jur_AbstractSet_setNext(this, var_1); }, "$first0", function(var_1) -{ return $java.jur_AbstractSet_first(this, var_1); }, "$processBackRefReplacement", function() { return $java.jur_AbstractSet_processBackRefReplacement(this); }, "$processSecondPass", function() { $java.jur_AbstractSet_processSecondPass(this); }], -ju_TreeMap$1, 0, jl_Object, [ju_Comparator], 0, 0, 0, 0, -$java.nms_IStatType, 0, jl_Object, [], 3, 3, 0, 0, -nms_StatTypeSimple, 0, jl_Object, [$java.nms_IStatType], 4, 0, 0, 0, -nms_StatTypeTime, 0, jl_Object, [$java.nms_IStatType], 4, 0, 0, 0, -nms_StatTypeDistance, 0, jl_Object, [$java.nms_IStatType], 4, 0, 0, 0, -jur_FSet, "FSet", 9, jur_AbstractSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_FSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_FSet_getName(this); }, "$hasConsumed", function(var_1) { return $java.jur_FSet_hasConsumed(this, var_1); }], -jur_Lexer, 0, jl_Object, [], 0, 0, 0, 0, -jur_PatternSyntaxException, "PatternSyntaxException", 9, jl_IllegalArgumentException, [], 0, 3, 0, ["$getMessage", function() { return $java.jur_PatternSyntaxException_getMessage(this); }], -jur_NonCapFSet, "NonCapFSet", 9, jur_FSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_NonCapFSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_NonCapFSet_getName(this); }, "$hasConsumed", function(var_1) { return $java.jur_NonCapFSet_hasConsumed(this, var_1); }], -jur_AheadFSet, "AheadFSet", 9, jur_FSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_AheadFSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_AheadFSet_getName(this); }], -jur_BehindFSet, "BehindFSet", 9, jur_FSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_BehindFSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_BehindFSet_getName(this); }], -jur_AtomicFSet, "AtomicFSet", 9, jur_FSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_AtomicFSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_AtomicFSet_getName(this); }, "$hasConsumed", function(var_1) { return $java.jur_AtomicFSet_hasConsumed(this, var_1); }], -jur_FinalSet, "FinalSet", 9, jur_FSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_FinalSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_FinalSet_getName(this); }], -jur_LeafSet, 0, jur_AbstractSet, [], 1, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_LeafSet_matches(this, var_1, var_2, var_3); }, "$charCount0", function() { return $java.jur_LeafSet_charCount(this); }, "$hasConsumed", function(var_1) { return $java.jur_LeafSet_hasConsumed(this, var_1); }], -jur_EmptySet, "EmptySet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_EmptySet_accepts(this, var_1, var_2); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_EmptySet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_EmptySet_findBack(this, var_1, var_2, var_3, var_4); }, "$getName", function() { return $java.jur_EmptySet_getName(this); }, "$hasConsumed", function(var_1) { return $java.jur_EmptySet_hasConsumed(this, -var_1); }], -jur_JointSet, "JointSet", 9, jur_AbstractSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_JointSet_matches(this, var_1, var_2, var_3); }, "$setNext", function(var_1) { $java.jur_JointSet_setNext(this, var_1); }, "$getName", function() { return $java.jur_JointSet_getName(this); }, "$first0", function(var_1) { return $java.jur_JointSet_first(this, var_1); }, "$hasConsumed", function(var_1) { return $java.jur_JointSet_hasConsumed(this, var_1); }, "$processSecondPass", function() { -$java.jur_JointSet_processSecondPass(this); }], -jur_NonCapJointSet, "NonCapJointSet", 9, jur_JointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_NonCapJointSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_NonCapJointSet_getName(this); }, "$hasConsumed", function(var_1) { return $java.jur_NonCapJointSet_hasConsumed(this, var_1); }], -jur_AtomicJointSet, "AtomicJointSet", 9, jur_NonCapJointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_AtomicJointSet_matches(this, var_1, var_2, var_3); }, "$setNext", function(var_1) { $java.jur_AtomicJointSet_setNext(this, var_1); }, "$getName", function() { return $java.jur_AtomicJointSet_getName(this); }], -jur_PositiveLookAhead, "PositiveLookAhead", 9, jur_AtomicJointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PositiveLookAhead_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_PositiveLookAhead_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_PositiveLookAhead_getName(this); }], -jur_NegativeLookAhead, "NegativeLookAhead", 9, jur_AtomicJointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_NegativeLookAhead_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_NegativeLookAhead_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_NegativeLookAhead_getName(this); }], -jur_PositiveLookBehind, "PositiveLookBehind", 9, jur_AtomicJointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PositiveLookBehind_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_PositiveLookBehind_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_PositiveLookBehind_getName(this); }], -jur_NegativeLookBehind, "NegativeLookBehind", 9, jur_AtomicJointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_NegativeLookBehind_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_NegativeLookBehind_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_NegativeLookBehind_getName(this); }], -jur_SingleSet, "SingleSet", 9, jur_JointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_SingleSet_matches(this, var_1, var_2, var_3); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_SingleSet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_SingleSet_findBack(this, var_1, var_2, var_3, var_4); }, "$first0", function(var_1) { return $java.jur_SingleSet_first(this, var_1); }, "$processBackRefReplacement", function() -{ return $java.jur_SingleSet_processBackRefReplacement(this); }, "$processSecondPass", function() { $java.jur_SingleSet_processSecondPass(this); }], -$java.jur_SpecialToken, 0, jl_Object, [], 1, 0, 0, 0, -jur_AbstractCharClass, 0, $java.jur_SpecialToken, [], 1, 0, 0, ["$getBits", function() { return $java.jur_AbstractCharClass_getBits(this); }, "$getLowHighSurrogates", function() { return $java.jur_AbstractCharClass_getLowHighSurrogates(this); }, "$getInstance4", function() { return $java.jur_AbstractCharClass_getInstance(this); }, "$hasUCI", function() { return $java.jur_AbstractCharClass_hasUCI(this); }], -jur_CharClass, "CharClass", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass_contains(this, var_1); }, "$getBits", function() { return $java.jur_CharClass_getBits(this); }, "$getLowHighSurrogates", function() { return $java.jur_CharClass_getLowHighSurrogates(this); }, "$getInstance4", function() { return $java.jur_CharClass_getInstance(this); }, "$toString", function() { return $java.jur_CharClass_toString(this); }, "$hasUCI", function() { return $java.jur_CharClass_hasUCI(this); -}], -$java.ju_MissingResourceException, "MissingResourceException", 8, jl_RuntimeException, [], 0, 3, 0, 0, -jur_QuantifierSet, 0, jur_AbstractSet, [], 1, 0, 0, ["$first0", function(var_1) { return $java.jur_QuantifierSet_first(this, var_1); }, "$hasConsumed", function(var_1) { return $java.jur_QuantifierSet_hasConsumed(this, var_1); }, "$processSecondPass", function() { $java.jur_QuantifierSet_processSecondPass(this); }], -jur_LeafQuantifierSet, "LeafQuantifierSet", 9, jur_QuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_LeafQuantifierSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_LeafQuantifierSet_getName(this); }], -jur_CompositeQuantifierSet, "CompositeQuantifierSet", 9, jur_LeafQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_CompositeQuantifierSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_CompositeQuantifierSet_getName(this); }], -jur_GroupQuantifierSet, "GroupQuantifierSet", 9, jur_QuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_GroupQuantifierSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_GroupQuantifierSet_getName(this); }], -jur_AltQuantifierSet, "AltQuantifierSet", 9, jur_LeafQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_AltQuantifierSet_matches(this, var_1, var_2, var_3); }, "$setNext", function(var_1) { $java.jur_AltQuantifierSet_setNext(this, var_1); }], -jur_UnifiedQuantifierSet, "UnifiedQuantifierSet", 9, jur_LeafQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_UnifiedQuantifierSet_matches(this, var_1, var_2, var_3); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_UnifiedQuantifierSet_find(this, var_1, var_2, var_3); }], -jl_NumberFormatException, "NumberFormatException", 15, jl_IllegalArgumentException, [], 0, 3, 0, 0, -$java.jur_Quantifier, "Quantifier", 9, $java.jur_SpecialToken, [jl_Cloneable], 0, 0, 0, ["$toString", function() { return $java.jur_Quantifier_toString(this); }]]); -$rt_metadata([jur_FSet$PossessiveFSet, "FSet$PossessiveFSet", 9, jur_AbstractSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_FSet$PossessiveFSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_FSet$PossessiveFSet_getName(this); }, "$hasConsumed", function(var_1) { return $java.jur_FSet$PossessiveFSet_hasConsumed(this, var_1); }], -ju_BitSet, 0, jl_Object, [jl_Cloneable, ji_Serializable], 0, 3, 0, 0, -jur_LowHighSurrogateRangeSet, "LowHighSurrogateRangeSet", 9, jur_JointSet, [], 0, 0, 0, ["$getName", function() { return $java.jur_LowHighSurrogateRangeSet_getName(this); }], -jur_CompositeRangeSet, "CompositeRangeSet", 9, jur_JointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_CompositeRangeSet_matches(this, var_1, var_2, var_3); }, "$setNext", function(var_1) { $java.jur_CompositeRangeSet_setNext(this, var_1); }, "$getName", function() { return $java.jur_CompositeRangeSet_getName(this); }, "$hasConsumed", function(var_1) { return $java.jur_CompositeRangeSet_hasConsumed(this, var_1); }, "$first0", function(var_1) { return $java.jur_CompositeRangeSet_first(this, -var_1); }], -jur_SupplRangeSet, "SupplRangeSet", 9, jur_JointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_SupplRangeSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_SupplRangeSet_getName(this); }, "$contains1", function(var_1) { return $java.jur_SupplRangeSet_contains(this, var_1); }, "$first0", function(var_1) { return $java.jur_SupplRangeSet_first(this, var_1); }, "$setNext", function(var_1) { $java.jur_SupplRangeSet_setNext(this, var_1); }, "$hasConsumed", -function(var_1) { return $java.jur_SupplRangeSet_hasConsumed(this, var_1); }], -jur_UCISupplRangeSet, "UCISupplRangeSet", 9, jur_SupplRangeSet, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_UCISupplRangeSet_contains(this, var_1); }, "$getName", function() { return $java.jur_UCISupplRangeSet_getName(this); }], -jur_UCIRangeSet, "UCIRangeSet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_UCIRangeSet_accepts(this, var_1, var_2); }, "$getName", function() { return $java.jur_UCIRangeSet_getName(this); }], -jur_RangeSet, "RangeSet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_RangeSet_accepts(this, var_1, var_2); }, "$getName", function() { return $java.jur_RangeSet_getName(this); }, "$first0", function(var_1) { return $java.jur_RangeSet_first(this, var_1); }], -jur_HangulDecomposedCharSet, "HangulDecomposedCharSet", 9, jur_JointSet, [], 0, 0, 0, ["$setNext", function(var_1) { $java.jur_HangulDecomposedCharSet_setNext(this, var_1); }, "$getName", function() { return $java.jur_HangulDecomposedCharSet_getName(this); }, "$matches", function(var_1, var_2, var_3) { return $java.jur_HangulDecomposedCharSet_matches(this, var_1, var_2, var_3); }, "$first0", function(var_1) { return $java.jur_HangulDecomposedCharSet_first(this, var_1); }, "$hasConsumed", function(var_1) { return $java.jur_HangulDecomposedCharSet_hasConsumed(this, -var_1); }], -jur_CharSet, "CharSet", 9, jur_LeafSet, [], 0, 0, 0, ["$charCount0", function() { return $java.jur_CharSet_charCount(this); }, "$accepts", function(var_1, var_2) { return $java.jur_CharSet_accepts(this, var_1, var_2); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_CharSet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_CharSet_findBack(this, var_1, var_2, var_3, var_4); }, "$getName", function() { return $java.jur_CharSet_getName(this); -}, "$first0", function(var_1) { return $java.jur_CharSet_first(this, var_1); }], -jur_UCICharSet, "UCICharSet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_UCICharSet_accepts(this, var_1, var_2); }, "$getName", function() { return $java.jur_UCICharSet_getName(this); }], -jur_CICharSet, "CICharSet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_CICharSet_accepts(this, var_1, var_2); }, "$getName", function() { return $java.jur_CICharSet_getName(this); }], -jur_DecomposedCharSet, "DecomposedCharSet", 9, jur_JointSet, [], 0, 0, 0, ["$setNext", function(var_1) { $java.jur_DecomposedCharSet_setNext(this, var_1); }, "$matches", function(var_1, var_2, var_3) { return $java.jur_DecomposedCharSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_DecomposedCharSet_getName(this); }, "$first0", function(var_1) { return $java.jur_DecomposedCharSet_first(this, var_1); }, "$hasConsumed", function(var_1) { return $java.jur_DecomposedCharSet_hasConsumed(this, -var_1); }], -jur_UCIDecomposedCharSet, "UCIDecomposedCharSet", 9, jur_DecomposedCharSet, [], 0, 0, 0, 0, -jur_CIDecomposedCharSet, "CIDecomposedCharSet", 9, jur_DecomposedCharSet, [], 0, 0, 0, 0, -jur_PossessiveGroupQuantifierSet, "PossessiveGroupQuantifierSet", 9, jur_GroupQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PossessiveGroupQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_PosPlusGroupQuantifierSet, "PosPlusGroupQuantifierSet", 9, jur_GroupQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PosPlusGroupQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_AltGroupQuantifierSet, "AltGroupQuantifierSet", 9, jur_GroupQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_AltGroupQuantifierSet_matches(this, var_1, var_2, var_3); }, "$setNext", function(var_1) { $java.jur_AltGroupQuantifierSet_setNext(this, var_1); }], -jur_PosAltGroupQuantifierSet, "PosAltGroupQuantifierSet", 9, jur_AltGroupQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PosAltGroupQuantifierSet_matches(this, var_1, var_2, var_3); }, "$setNext", function(var_1) { $java.jur_PosAltGroupQuantifierSet_setNext(this, var_1); }], -jur_CompositeGroupQuantifierSet, "CompositeGroupQuantifierSet", 9, jur_GroupQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_CompositeGroupQuantifierSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_CompositeGroupQuantifierSet_getName(this); }], -jur_PosCompositeGroupQuantifierSet, "PosCompositeGroupQuantifierSet", 9, jur_CompositeGroupQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PosCompositeGroupQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_ReluctantGroupQuantifierSet, "ReluctantGroupQuantifierSet", 9, jur_GroupQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_ReluctantGroupQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_RelAltGroupQuantifierSet, "RelAltGroupQuantifierSet", 9, jur_AltGroupQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_RelAltGroupQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_RelCompositeGroupQuantifierSet, "RelCompositeGroupQuantifierSet", 9, jur_CompositeGroupQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_RelCompositeGroupQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_DotAllQuantifierSet, "DotAllQuantifierSet", 9, jur_QuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_DotAllQuantifierSet_matches(this, var_1, var_2, var_3); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_DotAllQuantifierSet_find(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_DotAllQuantifierSet_getName(this); }], -jur_DotQuantifierSet, "DotQuantifierSet", 9, jur_QuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_DotQuantifierSet_matches(this, var_1, var_2, var_3); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_DotQuantifierSet_find(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_DotQuantifierSet_getName(this); }], -jur_AbstractLineTerminator, 0, jl_Object, [], 1, 0, 0, 0, -jur_PossessiveQuantifierSet, "PossessiveQuantifierSet", 9, jur_LeafQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PossessiveQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_PossessiveAltQuantifierSet, "PossessiveAltQuantifierSet", 9, jur_AltQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PossessiveAltQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_PossessiveCompositeQuantifierSet, "PossessiveCompositeQuantifierSet", 9, jur_CompositeQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PossessiveCompositeQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_ReluctantQuantifierSet, "ReluctantQuantifierSet", 9, jur_LeafQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_ReluctantQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_ReluctantAltQuantifierSet, "ReluctantAltQuantifierSet", 9, jur_AltQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_ReluctantAltQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_ReluctantCompositeQuantifierSet, "ReluctantCompositeQuantifierSet", 9, jur_CompositeQuantifierSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_ReluctantCompositeQuantifierSet_matches(this, var_1, var_2, var_3); }], -jur_SOLSet, "SOLSet", 9, jur_AbstractSet, [], 4, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_SOLSet_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_SOLSet_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_SOLSet_getName(this); }], -jur_WordBoundary, "WordBoundary", 9, jur_AbstractSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_WordBoundary_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_WordBoundary_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_WordBoundary_getName(this); }], -jur_PreviousMatch, "PreviousMatch", 9, jur_AbstractSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_PreviousMatch_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_PreviousMatch_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_PreviousMatch_getName(this); }], -jur_EOLSet, "EOLSet", 9, jur_AbstractSet, [], 4, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_EOLSet_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_EOLSet_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_EOLSet_getName(this); }], -jur_EOISet, "EOISet", 9, jur_AbstractSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_EOISet_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_EOISet_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_EOISet_getName(this); }], -jur_MultiLineSOLSet, "MultiLineSOLSet", 9, jur_AbstractSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_MultiLineSOLSet_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_MultiLineSOLSet_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_MultiLineSOLSet_getName(this); }], -jur_DotAllSet, "DotAllSet", 9, jur_JointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_DotAllSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_DotAllSet_getName(this); }, "$setNext", function(var_1) { $java.jur_DotAllSet_setNext(this, var_1); }, "$getType0", function() { return $java.jur_DotAllSet_getType(this); }, "$hasConsumed", function(var_1) { return $java.jur_DotAllSet_hasConsumed(this, var_1); }], -jur_DotSet, "DotSet", 9, jur_JointSet, [], 4, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_DotSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_DotSet_getName(this); }, "$setNext", function(var_1) { $java.jur_DotSet_setNext(this, var_1); }, "$getType0", function() { return $java.jur_DotSet_getType(this); }, "$hasConsumed", function(var_1) { return $java.jur_DotSet_hasConsumed(this, var_1); }], -jur_UEOLSet, "UEOLSet", 9, jur_AbstractSet, [], 4, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_UEOLSet_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_UEOLSet_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_UEOLSet_getName(this); }], -jur_UMultiLineEOLSet, "UMultiLineEOLSet", 9, jur_AbstractSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_UMultiLineEOLSet_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_UMultiLineEOLSet_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_UMultiLineEOLSet_getName(this); }], -jur_MultiLineEOLSet, "MultiLineEOLSet", 9, jur_AbstractSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_MultiLineEOLSet_matches(this, var_1, var_2, var_3); }, "$hasConsumed", function(var_1) { return $java.jur_MultiLineEOLSet_hasConsumed(this, var_1); }, "$getName", function() { return $java.jur_MultiLineEOLSet_getName(this); }], -jur_CIBackReferenceSet, "CIBackReferenceSet", 9, jur_JointSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_CIBackReferenceSet_matches(this, var_1, var_2, var_3); }, "$setNext", function(var_1) { $java.jur_CIBackReferenceSet_setNext(this, var_1); }, "$getName", function() { return $java.jur_CIBackReferenceSet_getName(this); }, "$hasConsumed", function(var_1) { return $java.jur_CIBackReferenceSet_hasConsumed(this, var_1); }], -jur_BackReferenceSet, "BackReferenceSet", 9, jur_CIBackReferenceSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_BackReferenceSet_matches(this, var_1, var_2, var_3); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_BackReferenceSet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_BackReferenceSet_findBack(this, var_1, var_2, var_3, var_4); }, "$first0", function(var_1) { return $java.jur_BackReferenceSet_first(this, -var_1); }, "$getName", function() { return $java.jur_BackReferenceSet_getName(this); }], -jur_UCIBackReferenceSet, "UCIBackReferenceSet", 9, jur_CIBackReferenceSet, [], 0, 0, 0, ["$matches", function(var_1, var_2, var_3) { return $java.jur_UCIBackReferenceSet_matches(this, var_1, var_2, var_3); }, "$getName", function() { return $java.jur_UCIBackReferenceSet_getName(this); }], -jur_SequenceSet, "SequenceSet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_SequenceSet_accepts(this, var_1, var_2); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_SequenceSet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_SequenceSet_findBack(this, var_1, var_2, var_3, var_4); }, "$getName", function() { return $java.jur_SequenceSet_getName(this); }, "$first0", function(var_1) { return $java.jur_SequenceSet_first(this, -var_1); }], -jur_UCISequenceSet, "UCISequenceSet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_UCISequenceSet_accepts(this, var_1, var_2); }, "$getName", function() { return $java.jur_UCISequenceSet_getName(this); }], -jur_CISequenceSet, "CISequenceSet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_CISequenceSet_accepts(this, var_1, var_2); }, "$getName", function() { return $java.jur_CISequenceSet_getName(this); }]]); -$rt_metadata([jur_AbstractCharClass$PredefinedCharacterClasses, 0, jl_Object, [], 4, 0, 0, 0, -$java.jur_AbstractCharClass$LazyCharClass, 0, jl_Object, [], 1, 0, 0, 0, -jur_UCISupplCharSet, "UCISupplCharSet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_UCISupplCharSet_accepts(this, var_1, var_2); }, "$getName", function() { return $java.jur_UCISupplCharSet_getName(this); }], -jur_LowSurrogateCharSet, "LowSurrogateCharSet", 9, jur_JointSet, [], 0, 0, 0, ["$setNext", function(var_1) { $java.jur_LowSurrogateCharSet_setNext(this, var_1); }, "$matches", function(var_1, var_2, var_3) { return $java.jur_LowSurrogateCharSet_matches(this, var_1, var_2, var_3); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_LowSurrogateCharSet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_LowSurrogateCharSet_findBack(this, var_1, var_2, -var_3, var_4); }, "$getName", function() { return $java.jur_LowSurrogateCharSet_getName(this); }, "$first0", function(var_1) { return $java.jur_LowSurrogateCharSet_first(this, var_1); }, "$hasConsumed", function(var_1) { return $java.jur_LowSurrogateCharSet_hasConsumed(this, var_1); }], -jur_HighSurrogateCharSet, "HighSurrogateCharSet", 9, jur_JointSet, [], 0, 0, 0, ["$setNext", function(var_1) { $java.jur_HighSurrogateCharSet_setNext(this, var_1); }, "$matches", function(var_1, var_2, var_3) { return $java.jur_HighSurrogateCharSet_matches(this, var_1, var_2, var_3); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_HighSurrogateCharSet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_HighSurrogateCharSet_findBack(this, var_1, -var_2, var_3, var_4); }, "$getName", function() { return $java.jur_HighSurrogateCharSet_getName(this); }, "$first0", function(var_1) { return $java.jur_HighSurrogateCharSet_first(this, var_1); }, "$hasConsumed", function(var_1) { return $java.jur_HighSurrogateCharSet_hasConsumed(this, var_1); }], -jur_SupplCharSet, "SupplCharSet", 9, jur_LeafSet, [], 0, 0, 0, ["$accepts", function(var_1, var_2) { return $java.jur_SupplCharSet_accepts(this, var_1, var_2); }, "$find0", function(var_1, var_2, var_3) { return $java.jur_SupplCharSet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_SupplCharSet_findBack(this, var_1, var_2, var_3, var_4); }, "$getName", function() { return $java.jur_SupplCharSet_getName(this); }, "$first0", function(var_1) { return $java.jur_SupplCharSet_first(this, -var_1); }], -jur_AbstractLineTerminator$1, 0, jur_AbstractLineTerminator, [], 4, 0, 0, ["$isLineTerminator", function(var_1) { return $java.jur_AbstractLineTerminator$1_isLineTerminator(this, var_1); }, "$isAfterLineTerminator", function(var_1, var_2) { return $java.jur_AbstractLineTerminator$1_isAfterLineTerminator(this, var_1, var_2); }], -jur_AbstractLineTerminator$2, 0, jur_AbstractLineTerminator, [], 4, 0, 0, ["$isLineTerminator", function(var_1) { return $java.jur_AbstractLineTerminator$2_isLineTerminator(this, var_1); }, "$isAfterLineTerminator", function(var_1, var_2) { return $java.jur_AbstractLineTerminator$2_isAfterLineTerminator(this, var_1, var_2); }], -$java.jur_SequenceSet$IntHash, 0, jl_Object, [], 0, 0, 0, 0, -$java.jur_IntHash, 0, jl_Object, [], 0, 0, 0, 0, -jur_AbstractCharClass$LazySpace, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazySpace_computeValue(this); }], -jur_AbstractCharClass$LazyDigit, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyDigit_computeValue(this); }], -jur_AbstractCharClass$LazyLower, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyLower_computeValue(this); }], -jur_AbstractCharClass$LazyUpper, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyUpper_computeValue(this); }], -jur_AbstractCharClass$LazyASCII, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyASCII_computeValue(this); }], -jur_AbstractCharClass$LazyAlpha, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyAlpha_computeValue(this); }], -jur_AbstractCharClass$LazyAlnum, 0, jur_AbstractCharClass$LazyAlpha, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyAlnum_computeValue(this); }], -jur_AbstractCharClass$LazyPunct, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyPunct_computeValue(this); }], -jur_AbstractCharClass$LazyGraph, 0, jur_AbstractCharClass$LazyAlnum, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyGraph_computeValue(this); }], -jur_AbstractCharClass$LazyPrint, 0, jur_AbstractCharClass$LazyGraph, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyPrint_computeValue(this); }], -jur_AbstractCharClass$LazyBlank, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyBlank_computeValue(this); }], -jur_AbstractCharClass$LazyCntrl, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyCntrl_computeValue(this); }], -jur_AbstractCharClass$LazyXDigit, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyXDigit_computeValue(this); }], -jur_AbstractCharClass$LazyJavaLowerCase, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaLowerCase_computeValue(this); }], -jur_AbstractCharClass$LazyJavaUpperCase, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaUpperCase_computeValue(this); }], -jur_AbstractCharClass$LazyJavaWhitespace, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaWhitespace_computeValue(this); }], -jur_AbstractCharClass$LazyJavaMirrored, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaMirrored_computeValue(this); }], -jur_AbstractCharClass$LazyJavaDefined, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaDefined_computeValue(this); }], -jur_AbstractCharClass$LazyJavaDigit, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaDigit_computeValue(this); }], -jur_AbstractCharClass$LazyJavaIdentifierIgnorable, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaIdentifierIgnorable_computeValue(this); }], -jur_AbstractCharClass$LazyJavaISOControl, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaISOControl_computeValue(this); }], -jur_AbstractCharClass$LazyJavaJavaIdentifierPart, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaJavaIdentifierPart_computeValue(this); }], -jur_AbstractCharClass$LazyJavaJavaIdentifierStart, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaJavaIdentifierStart_computeValue(this); }], -jur_AbstractCharClass$LazyJavaLetter, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaLetter_computeValue(this); }], -jur_AbstractCharClass$LazyJavaLetterOrDigit, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaLetterOrDigit_computeValue(this); }], -jur_AbstractCharClass$LazyJavaSpaceChar, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaSpaceChar_computeValue(this); }], -jur_AbstractCharClass$LazyJavaTitleCase, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaTitleCase_computeValue(this); }], -jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart_computeValue(this); }], -jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart_computeValue(this); }], -jur_AbstractCharClass$LazyWord, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyWord_computeValue(this); }], -jur_AbstractCharClass$LazyNonWord, 0, jur_AbstractCharClass$LazyWord, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyNonWord_computeValue(this); }], -jur_AbstractCharClass$LazyNonSpace, 0, jur_AbstractCharClass$LazySpace, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyNonSpace_computeValue(this); }], -jur_AbstractCharClass$LazyNonDigit, 0, jur_AbstractCharClass$LazyDigit, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyNonDigit_computeValue(this); }], -$java.jur_AbstractCharClass$LazyRange, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyRange_computeValue(this); }], -jur_AbstractCharClass$LazySpecialsBlock, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazySpecialsBlock_computeValue(this); }], -$java.jur_AbstractCharClass$LazyCategory, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyCategory_computeValue(this); }], -$java.jur_AbstractCharClass$LazyCategoryScope, 0, $java.jur_AbstractCharClass$LazyCharClass, [], 0, 0, 0, ["$computeValue", function() { return $java.jur_AbstractCharClass$LazyCategoryScope_computeValue(this); }], -otciu_UnicodeHelper, 0, jl_Object, [], 4, 3, 0, 0, -$java.otciu_UnicodeHelper$Range, "UnicodeHelper$Range", 21, jl_Object, [], 0, 3, 0, 0, -$java.otci_CharFlow, 0, jl_Object, [], 0, 3, 0, 0]); -$rt_metadata([otci_Base46, 0, jl_Object, [], 4, 3, 0, 0, -jnc_CharacterCodingException, 0, ji_IOException, [], 0, 3, 0, 0, -$java.jnci_BufferedDecoder, 0, jnc_CharsetDecoder, [], 1, 3, 0, 0, -jnci_UTF8Decoder, 0, $java.jnci_BufferedDecoder, [], 0, 3, 0, 0, -nms_RenderHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_GuiButton, "GuiButton", 24, nms_Gui, [], 0, 3, 0, ["$getHoverState", function(var_1) { return $java.nms_GuiButton_getHoverState(this, var_1); }, "$drawButton", function(var_1, var_2, var_3) { $java.nms_GuiButton_drawButton(this, var_1, var_2, var_3); }, "$mouseDragged", function(var_1, var_2, var_3) { $java.nms_GuiButton_mouseDragged(this, var_1, var_2, var_3); }, "$mouseReleased", function(var_1, var_2) { $java.nms_GuiButton_mouseReleased(this, var_1, var_2); }, "$mousePressed", function(var_1, var_2, var_3) -{ return $java.nms_GuiButton_mousePressed(this, var_1, var_2, var_3); }, "$func_82251_b", function(var_1, var_2) { $java.nms_GuiButton_func_82251_b(this, var_1, var_2); }], -ju_HashMap$AbstractMapIterator, 0, jl_Object, [], 0, 0, 0, ["$hasNext", function() { return ju_HashMap$AbstractMapIterator_hasNext(this); }, "$remove", function() { ju_HashMap$AbstractMapIterator_remove(this); }], -ju_HashMap$ValueIterator, 0, ju_HashMap$AbstractMapIterator, [ju_Iterator], 0, 0, 0, ["$next", function() { return $java.ju_HashMap$ValueIterator_next(this); }], -ju_HashMap$1, 0, ju_AbstractSet, [], 0, 0, 0, ["$size2", function() { return $java.ju_HashMap$1_size(this); }, "$iterator", function() { return $java.ju_HashMap$1_iterator(this); }], -ju_HashMap$HashMapEntrySet, 0, ju_AbstractSet, [], 0, 0, 0, ["$size2", function() { return $java.ju_HashMap$HashMapEntrySet_size(this); }, "$contains0", function(var_1) { return $java.ju_HashMap$HashMapEntrySet_contains(this, var_1); }, "$iterator", function() { return $java.ju_HashMap$HashMapEntrySet_iterator(this); }], -ju_LinkedHashMap$LinkedHashMapEntry, "LinkedHashMap$LinkedHashMapEntry", 8, ju_HashMap$HashEntry, [], 4, 0, 0, 0, -nms_TileEntitySkull, "TileEntitySkull", 24, nms_TileEntity, [], 0, 3, 0, ["$writeToNBT", function(var_1) { $java.nms_TileEntitySkull_writeToNBT(this, var_1); }, "$readFromNBT", function(var_1) { $java.nms_TileEntitySkull_readFromNBT(this, var_1); }], -nms_Vec3, "Vec3", 24, jl_Object, [], 0, 3, 0, ["$toString", function() { return $java.nms_Vec3_toString(this); }], -nms_GuiIngameMenu, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiIngameMenu_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiIngameMenu_actionPerformed(this, var_1); }, "$updateScreen", function() { $java.nms_GuiIngameMenu_updateScreen(this); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiIngameMenu_drawScreen(this, var_1, var_2, var_3); }], -nms_WorldRenderer, "WorldRenderer", 24, jl_Object, [], 0, 3, $java.nms_WorldRenderer_$callClinit, 0, -nms_EntitySorter, 0, jl_Object, [ju_Comparator], 0, 3, 0, ["$compare", function(var_1, var_2) { return $java.nms_EntitySorter_compare(this, var_1, var_2); }], -nms_GuiContainerCreative, 0, nms_InventoryEffectRenderer, [], 0, 3, $java.nms_GuiContainerCreative_$callClinit, ["$updateScreen", function() { $java.nms_GuiContainerCreative_updateScreen(this); }, "$handleMouseClick", function(var_1, var_2, var_3, var_4) { $java.nms_GuiContainerCreative_handleMouseClick(this, var_1, var_2, var_3, var_4); }, "$initGui", function() { $java.nms_GuiContainerCreative_initGui(this); }, "$onGuiClosed", function() { $java.nms_GuiContainerCreative_onGuiClosed(this); }, "$keyTyped", function(var_1, -var_2) { $java.nms_GuiContainerCreative_keyTyped(this, var_1, var_2); }, "$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiContainerCreative_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$mouseClicked", function(var_1, var_2, var_3) { $java.nms_GuiContainerCreative_mouseClicked(this, var_1, var_2, var_3); }, "$mouseMovedOrUp", function(var_1, var_2, var_3) { $java.nms_GuiContainerCreative_mouseMovedOrUp(this, var_1, var_2, var_3); }, "$handleMouseInput", function() { $java.nms_GuiContainerCreative_handleMouseInput(this); -}, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiContainerCreative_drawScreen(this, var_1, var_2, var_3); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiContainerCreative_drawGuiContainerBackgroundLayer(this, var_1, var_2, var_3); }, "$actionPerformed", function(var_1) { $java.nms_GuiContainerCreative_actionPerformed(this, var_1); }], -nms_BossStatus, 0, jl_Object, [], 4, 3, 0, 0, -nms_EntityFX, "EntityFX", 24, nms_Entity, [], 0, 3, 0, ["$canTriggerWalking", function() { return $java.nms_EntityFX_canTriggerWalking(this); }, "$entityInit", function() { $java.nms_EntityFX_entityInit(this); }, "$onUpdate", function() { $java.nms_EntityFX_onUpdate(this); }, "$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getFXLayer", function() { return $java.nms_EntityFX_getFXLayer(this); -}, "$canAttackWithItem", function() { return $java.nms_EntityFX_canAttackWithItem(this); }, "$toString", function() { return $java.nms_EntityFX_toString(this); }], -ju_AbstractList$1, 0, jl_Object, [ju_Iterator], 0, 0, 0, ["$hasNext", function() { return ju_AbstractList$1_hasNext(this); }, "$next", function() { return ju_AbstractList$1_next(this); }], -jt_DecimalFormat$MantissaAndExponent, 0, jl_Object, [], 0, 0, 0, 0, -jt_DecimalFormat$MinusField, "DecimalFormat$MinusField", 14, jl_Object, [jt_DecimalFormat$FormatField], 0, 0, 0, ["$render", function(var_1, var_2) { $java.jt_DecimalFormat$MinusField_render(this, var_1, var_2); }, "$equals", function(var_1) { return $java.jt_DecimalFormat$MinusField_equals(this, var_1); }, "$hashCode0", function() { return $java.jt_DecimalFormat$MinusField_hashCode(this); }], -nms_EntityDiggingFX, "EntityDiggingFX", 24, nms_EntityFX, [], 0, 3, 0, ["$getFXLayer", function() { return $java.nms_EntityDiggingFX_getFXLayer(this); }, "$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityDiggingFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -$java.jn_FloatBufferOverByteBuffer, 0, jn_FloatBufferImpl, [], 1, 0, 0, ["$readOnly2", function() { return $java.jn_FloatBufferOverByteBuffer_readOnly(this); }], -jn_FloatBufferOverByteBufferLittleEndian, 0, $java.jn_FloatBufferOverByteBuffer, [], 0, 0, 0, ["$getElement0", function(var_1) { return $java.jn_FloatBufferOverByteBufferLittleEndian_getElement(this, var_1); }, "$putElement0", function(var_1, var_2) { $java.jn_FloatBufferOverByteBufferLittleEndian_putElement(this, var_1, var_2); }], -jn_FloatBufferOverByteBufferBigEndian, 0, $java.jn_FloatBufferOverByteBuffer, [], 0, 0, 0, ["$getElement0", function(var_1) { return $java.jn_FloatBufferOverByteBufferBigEndian_getElement(this, var_1); }, "$putElement0", function(var_1, var_2) { $java.jn_FloatBufferOverByteBufferBigEndian_putElement(this, var_1, var_2); }], -nms_ModelBox, "ModelBox", 24, jl_Object, [], 0, 3, 0, 0, -nms_TextureOffset, "TextureOffset", 24, jl_Object, [], 0, 3, 0, 0, -$java.jur_AbstractCharClass$1, "AbstractCharClass$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$2, "AbstractCharClass$2", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$2_contains(this, var_1); }], -$java.jur_CharClass$18, "CharClass$18", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$18_contains(this, var_1); }, "$toString", function() { return $java.jur_CharClass$18_toString(this); }], -$java.jur_CharClass$1, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$1_contains(this, var_1); }], -$java.jur_CharClass$3, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$3_contains(this, var_1); }], -$java.jur_CharClass$2, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$2_contains(this, var_1); }], -$java.jur_CharClass$5, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$5_contains(this, var_1); }], -$java.jur_CharClass$4, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$4_contains(this, var_1); }], -$java.jur_CharClass$7, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$7_contains(this, var_1); }], -$java.jur_CharClass$6, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$6_contains(this, var_1); }], -$java.jur_CharClass$9, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$9_contains(this, var_1); }], -$java.jur_CharClass$8, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$8_contains(this, var_1); }], -$java.jur_CharClass$11, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$11_contains(this, var_1); }], -$java.jur_CharClass$10, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$10_contains(this, var_1); }], -$java.jur_CharClass$13, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$13_contains(this, var_1); }], -$java.jur_CharClass$12, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$12_contains(this, var_1); }], -$java.jur_CharClass$15, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$15_contains(this, var_1); }], -$java.jur_CharClass$14, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$14_contains(this, var_1); }], -$java.jur_CharClass$17, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$17_contains(this, var_1); }], -$java.jur_CharClass$16, 0, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_CharClass$16_contains(this, var_1); }], -nms_WorldProvider, 0, jl_Object, [], 1, 3, 0, ["$generateLightBrightnessTable", function() { $java.nms_WorldProvider_generateLightBrightnessTable(this); }, "$registerWorldChunkManager", function() { $java.nms_WorldProvider_registerWorldChunkManager(this); }, "$calculateCelestialAngle", function(var_1, var_2) { return $java.nms_WorldProvider_calculateCelestialAngle(this, var_1, var_2); }, "$isSurfaceWorld", function() { return $java.nms_WorldProvider_isSurfaceWorld(this); }, "$calcSunriseSunsetColors", function(var_1, -var_2) { return $java.nms_WorldProvider_calcSunriseSunsetColors(this, var_1, var_2); }, "$getFogColor0", function(var_1, var_2) { return $java.nms_WorldProvider_getFogColor(this, var_1, var_2); }, "$canRespawnHere", function() { return $java.nms_WorldProvider_canRespawnHere(this); }, "$getCloudHeight", function() { return $java.nms_WorldProvider_getCloudHeight(this); }, "$isSkyColored", function() { return $java.nms_WorldProvider_isSkyColored(this); }, "$doesXZShowFog", function(var_1, var_2) { return $java.nms_WorldProvider_doesXZShowFog(this, -var_1, var_2); }], -nlea_EaglerAdapterImpl2$AudioBufferSourceNodeX, "EaglerAdapterImpl2$AudioBufferSourceNodeX", 27, jl_Object, [], 0, 0, 0, 0]); -$rt_metadata([nlea_EaglerAdapterImpl2$18, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return $java.nlea_EaglerAdapterImpl2$18_handleEvent$exported$0(this, var_1); }], -nms_GuiTextField, 0, nms_Gui, [], 0, 3, 0, 0, -$java.nms_ContainerCreative, 0, nms_Container, [], 0, 0, 0, ["$canInteractWith", function(var_1) { return $java.nms_ContainerCreative_canInteractWith(this, var_1); }, "$retrySlotClick", function(var_1, var_2, var_3, var_4) { $java.nms_ContainerCreative_retrySlotClick(this, var_1, var_2, var_3, var_4); }, "$transferStackInSlot", function(var_1, var_2) { return $java.nms_ContainerCreative_transferStackInSlot(this, var_1, var_2); }, "$func_94530_a", function(var_1, var_2) { return $java.nms_ContainerCreative_func_94530_a(this, -var_1, var_2); }, "$func_94531_b", function(var_1) { return $java.nms_ContainerCreative_func_94531_b(this, var_1); }], -nms_EntitySmokeFX, "EntitySmokeFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntitySmokeFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntitySmokeFX_onUpdate(this); }], -nms_EntityRainFX, "EntityRainFX", 24, nms_EntityFX, [], 0, 3, 0, ["$onUpdate", function() { $java.nms_EntityRainFX_onUpdate(this); }], -nms_DestroyBlockProgress, "DestroyBlockProgress", 24, jl_Object, [], 0, 3, 0, 0, -nlea_EaglerAdapterImpl2$17, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return $java.nlea_EaglerAdapterImpl2$17_handleEvent$exported$0(this, var_1); }], -jm_BigDecimal, 0, jl_Number, [jl_Comparable, ji_Serializable], 0, 3, jm_BigDecimal_$callClinit, 0, -jm_BigInteger, 0, jl_Number, [jl_Comparable, ji_Serializable], 0, 3, 0, 0, -$java.nms_PositionTextureVertex, 0, jl_Object, [], 0, 3, 0, 0, -nms_TexturedQuad, 0, jl_Object, [], 0, 3, 0, 0, -nms_AchievementMap, 0, jl_Object, [], 0, 3, nms_AchievementMap_$callClinit, 0, -$java.ju_AbstractMap$SimpleEntry, 0, jl_Object, [ju_Map$Entry, ji_Serializable], 0, 3, 0, ["$getValue", function() { return $java.ju_AbstractMap$SimpleEntry_getValue(this); }, "$getKey", function() { return $java.ju_AbstractMap$SimpleEntry_getKey(this); }, "$equals", function(var_1) { return $java.ju_AbstractMap$SimpleEntry_equals(this, var_1); }, "$hashCode0", function() { return $java.ju_AbstractMap$SimpleEntry_hashCode(this); }, "$toString", function() { return $java.ju_AbstractMap$SimpleEntry_toString(this); -}], -ju_TreeMap$TreeNode, "TreeMap$TreeNode", 8, $java.ju_AbstractMap$SimpleEntry, [], 0, 0, 0, 0, -ju_Objects, 0, jl_Object, [], 4, 3, 0, 0, -nlea_EaglerAdapterImpl2$AudioBufferX, "EaglerAdapterImpl2$AudioBufferX", 27, jl_Object, [], 0, 0, 0, 0, -$java.nms_Slot, "Slot", 24, jl_Object, [], 0, 3, 0, ["$onCrafting", function(var_1, var_2) { $java.nms_Slot_onCrafting(this, var_1, var_2); }, "$onPickupFromSlot", function(var_1, var_2) { $java.nms_Slot_onPickupFromSlot(this, var_1, var_2); }, "$isItemValid", function(var_1) { return $java.nms_Slot_isItemValid(this, var_1); }, "$getStack", function() { return $java.nms_Slot_getStack(this); }, "$getHasStack", function() { return $java.nms_Slot_getHasStack(this); }, "$putStack", function(var_1) { $java.nms_Slot_putStack(this, -var_1); }, "$onSlotChanged", function() { $java.nms_Slot_onSlotChanged(this); }, "$getSlotStackLimit", function() { return $java.nms_Slot_getSlotStackLimit(this); }, "$getBackgroundIconIndex", function() { return $java.nms_Slot_getBackgroundIconIndex(this); }, "$decrStackSize0", function(var_1) { return $java.nms_Slot_decrStackSize(this, var_1); }, "$canTakeStack", function(var_1) { return $java.nms_Slot_canTakeStack(this, var_1); }], -$java.nms_InventoryBasic, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$getStackInSlot", function(var_1) { return $java.nms_InventoryBasic_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_InventoryBasic_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_InventoryBasic_setInventorySlotContents(this, var_1, var_2); }, "$getSizeInventory", function() { return $java.nms_InventoryBasic_getSizeInventory(this); }, "$getInvName", -function() { return $java.nms_InventoryBasic_getInvName(this); }, "$isInvNameLocalized", function() { return $java.nms_InventoryBasic_isInvNameLocalized(this); }, "$getInventoryStackLimit", function() { return $java.nms_InventoryBasic_getInventoryStackLimit(this); }, "$onInventoryChanged", function() { $java.nms_InventoryBasic_onInventoryChanged(this); }, "$isUseableByPlayer", function(var_1) { return $java.nms_InventoryBasic_isUseableByPlayer(this, var_1); }, "$openChest", function() { $java.nms_InventoryBasic_openChest(this); -}, "$closeChest", function() { $java.nms_InventoryBasic_closeChest(this); }], -nms_BiomeGenBase, 0, jl_Object, [], 0, 3, 0, 0, -jt_DecimalFormat$1, 0, jl_Object, [], 32, 0, jt_DecimalFormat$1_$callClinit, 0, -jl_ArithmeticException, "ArithmeticException", 15, jl_RuntimeException, [], 0, 3, 0, 0, -nms_PotionEffect, "PotionEffect", 24, jl_Object, [], 0, 3, 0, ["$hashCode0", function() { return $java.nms_PotionEffect_hashCode(this); }, "$toString", function() { return $java.nms_PotionEffect_toString(this); }, "$equals", function(var_1) { return $java.nms_PotionEffect_equals(this, var_1); }], -$java.otjw_DecodeSuccessCallback, 0, jl_Object, [otj_JSObject], 3, 3, 0, 0, -nlea_EaglerAdapterImpl2$15, 0, jl_Object, [$java.otjw_DecodeSuccessCallback], 0, 0, 0, ["$onSuccess$exported$0", function(var_1) { return $java.nlea_EaglerAdapterImpl2$15_onSuccess$exported$0(this, var_1); }], -$java.otjw_DecodeErrorCallback, 0, jl_Object, [otj_JSObject], 3, 3, 0, 0, -nlea_EaglerAdapterImpl2$16, 0, jl_Object, [$java.otjw_DecodeErrorCallback], 0, 0, 0, ["$onError$exported$0", function(var_1) { return $java.nlea_EaglerAdapterImpl2$16_onError$exported$0(this, var_1); }], -jm_Multiplication, 0, jl_Object, [], 0, 0, jm_Multiplication_$callClinit, 0, -nms_DataWatcher, 0, jl_Object, [], 0, 3, 0, 0, -nms_EnumEntitySize, 0, jl_Enum, [], 12, 3, 0, 0, -jl_Byte, 0, jl_Number, [jl_Comparable], 0, 3, 0, ["$equals", function(var_1) { return $java.jl_Byte_equals(this, var_1); }], -jl_Short, "Short", 15, jl_Number, [jl_Comparable], 0, 3, 0, ["$toString", function() { return $java.jl_Short_toString(this); }, "$equals", function(var_1) { return $java.jl_Short_equals(this, var_1); }, "$hashCode0", function() { return $java.jl_Short_hashCode(this); }], -nms_ChunkCoordinates, 0, jl_Object, [jl_Comparable], 0, 3, 0, 0, -nms_Particle, 0, jl_Object, [], 0, 3, 0, 0, -$java.jur_BackReferencedSingleSet, "BackReferencedSingleSet", 9, jur_SingleSet, [], 0, 0, 0, ["$find0", function(var_1, var_2, var_3) { return $java.jur_BackReferencedSingleSet_find(this, var_1, var_2, var_3); }, "$findBack", function(var_1, var_2, var_3, var_4) { return $java.jur_BackReferencedSingleSet_findBack(this, var_1, var_2, var_3, var_4); }, "$processBackRefReplacement", function() { return $java.jur_BackReferencedSingleSet_processBackRefReplacement(this); }], -$java.ju_HashMap$KeyIterator, 0, ju_HashMap$AbstractMapIterator, [ju_Iterator], 0, 0, 0, ["$next", function() { return $java.ju_HashMap$KeyIterator_next(this); }], -ju_HashMap$EntryIterator, 0, ju_HashMap$AbstractMapIterator, [ju_Iterator], 0, 0, 0, ["$next", function() { return $java.ju_HashMap$EntryIterator_next0(this); }], -jm_BitLevel, 0, jl_Object, [], 0, 0, 0, 0, -jm_Division, 0, jl_Object, [], 0, 0, 0, 0, -jm_Elementary, 0, jl_Object, [], 0, 0, 0, 0, -nleg_EffectPipelineFXAA, 0, jl_Object, [], 0, 3, 0, 0, -nms_ActiveRenderInfo, 0, jl_Object, [], 0, 3, 0, 0, -nms_ClippingHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_ClippingHelperImpl, 0, nms_ClippingHelper, [], 0, 3, 0, 0, -$java.nms_ICamera, 0, jl_Object, [], 3, 3, 0, 0, -nms_Frustrum, 0, jl_Object, [$java.nms_ICamera], 0, 3, 0, 0, -nms_StatCollector, 0, jl_Object, [], 0, 3, 0, 0, -nms_StringUtils, 0, jl_Object, [], 0, 3, 0, 0, -nms_Direction, 0, jl_Object, [], 0, 3, 0, 0, -$java.nms_NetHandler, 0, jl_Object, [], 1, 3, 0, 0, -nms_NetClientHandler, 0, $java.nms_NetHandler, [], 0, 3, 0, 0]); -$rt_metadata([$java.nms_GuiPlayerInfo, "GuiPlayerInfo", 24, jl_Object, [], 0, 3, 0, 0, -nms_ScorePlayerTeam, "ScorePlayerTeam", 24, jl_Object, [], 0, 3, 0, 0, -nms_GuiSmallButton, "GuiSmallButton", 24, nms_GuiButton, [], 0, 3, 0, 0, -ju_Calendar, 0, jl_Object, [ji_Serializable, jl_Cloneable, jl_Comparable], 1, 3, 0, 0, -ju_Date, 0, jl_Object, [jl_Comparable], 0, 3, 0, 0, -nms_GuiButtonLanguage, "GuiButtonLanguage", 24, nms_GuiButton, [], 0, 3, 0, ["$drawButton", function(var_1, var_2, var_3) { $java.nms_GuiButtonLanguage_drawButton(this, var_1, var_2, var_3); }], -$java.nms_GuiYesNo, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiYesNo_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiYesNo_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiYesNo_drawScreen(this, var_1, var_2, var_3); }], -nms_GuiConfirmOpenLink, 0, $java.nms_GuiYesNo, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiConfirmOpenLink_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiConfirmOpenLink_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiConfirmOpenLink_drawScreen(this, var_1, var_2, var_3); }], -cjj_Inflate$Return, "Inflate$Return", 6, jl_Exception, [], 0, 0, 0, 0, -cjj_GZIPHeader, 0, jl_Object, [jl_Cloneable], 0, 3, 0, 0, -cjj_CRC32, 0, jl_Object, [cjj_Checksum], 4, 3, 0, ["$update", function(var_1, var_2, var_3) { $java.cjj_CRC32_update(this, var_1, var_2, var_3); }, "$reset", function() { $java.cjj_CRC32_reset(this); }, "$reset0", function(var_1) { $java.cjj_CRC32_reset0(this, var_1); }, "$getValue0", function() { return $java.cjj_CRC32_getValue(this); }], -nms_StitchHolder, "StitchHolder", 24, jl_Object, [jl_Comparable], 0, 3, 0, ["$toString", function() { return $java.nms_StitchHolder_toString(this); }, "$compareTo4", function(var_1) { return $java.nms_StitchHolder_compareTo(this, var_1); }], -nms_Texture, "Texture", 24, jl_Object, [], 0, 3, 0, 0, -nms_StitcherException, "StitcherException", 24, jl_RuntimeException, [], 0, 3, 0, 0, -nms_TextureStitched, "TextureStitched", 24, jl_Object, [nms_Icon], 0, 3, 0, ["$getOriginX", function() { return $java.nms_TextureStitched_getOriginX(this); }, "$getOriginY", function() { return $java.nms_TextureStitched_getOriginY(this); }, "$getMinU", function() { return $java.nms_TextureStitched_getMinU(this); }, "$getMaxU", function() { return $java.nms_TextureStitched_getMaxU(this); }, "$getInterpolatedU", function(var_1) { return $java.nms_TextureStitched_getInterpolatedU(this, var_1); }, "$getMinV", function() -{ return $java.nms_TextureStitched_getMinV(this); }, "$getMaxV", function() { return $java.nms_TextureStitched_getMaxV(this); }, "$getInterpolatedV", function(var_1) { return $java.nms_TextureStitched_getInterpolatedV(this, var_1); }, "$getIconName", function() { return $java.nms_TextureStitched_getIconName(this); }, "$getSheetWidth", function() { return $java.nms_TextureStitched_getSheetWidth(this); }, "$getSheetHeight", function() { return $java.nms_TextureStitched_getSheetHeight(this); }, "$updateAnimation", -function() { $java.nms_TextureStitched_updateAnimation(this); }], -nms_MovementInput, 0, jl_Object, [], 0, 3, 0, 0, -nms_MovementInputFromOptions, 0, nms_MovementInput, [], 0, 3, 0, 0, -nms_Packet204ClientInfo, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet204ClientInfo_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet204ClientInfo_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet204ClientInfo_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet204ClientInfo_getPacketSize(this); }], -$java.nms_ICrafting, 0, jl_Object, [], 3, 3, 0, 0, -$java.nms_CreativeCrafting, "CreativeCrafting", 24, jl_Object, [$java.nms_ICrafting], 0, 3, 0, ["$sendContainerAndContentsToPlayer", function(var_1, var_2) { $java.nms_CreativeCrafting_sendContainerAndContentsToPlayer(this, var_1, var_2); }, "$sendSlotContents", function(var_1, var_2, var_3) { $java.nms_CreativeCrafting_sendSlotContents(this, var_1, var_2, var_3); }, "$sendProgressBarUpdate", function(var_1, var_2, var_3) { $java.nms_CreativeCrafting_sendProgressBarUpdate(this, var_1, var_2, var_3); }], -jt_DecimalFormat$PerMillField, "DecimalFormat$PerMillField", 14, jl_Object, [jt_DecimalFormat$FormatField], 0, 0, 0, ["$render", function(var_1, var_2) { $java.jt_DecimalFormat$PerMillField_render(this, var_1, var_2); }, "$equals", function(var_1) { return $java.jt_DecimalFormat$PerMillField_equals(this, var_1); }, "$hashCode0", function() { return $java.jt_DecimalFormat$PerMillField_hashCode(this); }], -jt_DecimalFormat$CurrencyField, "DecimalFormat$CurrencyField", 14, jl_Object, [jt_DecimalFormat$FormatField], 0, 0, 0, ["$render", function(var_1, var_2) { $java.jt_DecimalFormat$CurrencyField_render(this, var_1, var_2); }, "$equals", function(var_1) { return $java.jt_DecimalFormat$CurrencyField_equals(this, var_1); }, "$hashCode0", function() { return $java.jt_DecimalFormat$CurrencyField_hashCode(this); }], -jt_DecimalFormat$PercentField, "DecimalFormat$PercentField", 14, jl_Object, [jt_DecimalFormat$FormatField], 0, 0, 0, ["$render", function(var_1, var_2) { $java.jt_DecimalFormat$PercentField_render(this, var_1, var_2); }, "$equals", function(var_1) { return $java.jt_DecimalFormat$PercentField_equals(this, var_1); }, "$hashCode0", function() { return $java.jt_DecimalFormat$PercentField_hashCode(this); }], -$java.ju_ListIterator, 0, jl_Object, [ju_Iterator], 3, 3, 0, 0, -ju_LinkedList$SequentialListIterator, 0, jl_Object, [$java.ju_ListIterator], 0, 0, 0, 0, -ju_LinkedList$Entry, 0, jl_Object, [], 0, 0, 0, 0, -nms_Facing, 0, jl_Object, [], 0, 3, 0, 0, -nms_WatchableObject, "WatchableObject", 24, jl_Object, [], 0, 3, 0, 0, -ju_ConcurrentModificationException, "ConcurrentModificationException", 8, jl_RuntimeException, [], 0, 3, 0, 0, -nms_FoodStats, 0, jl_Object, [], 0, 3, 0, 0, -nms_WorldInfo, 0, jl_Object, [], 0, 3, 0, 0, -ju_Formatter, 0, jl_Object, [ji_Closeable, ji_Flushable], 4, 3, 0, 0, -nms_Scoreboard, 0, jl_Object, [], 0, 3, 0, 0, -nms_ScoreObjective, "ScoreObjective", 24, jl_Object, [], 0, 3, 0, 0, -nms_Score, "Score", 24, jl_Object, [], 0, 3, 0, 0, -nms_Packet19EntityAction, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet19EntityAction_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet19EntityAction_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet19EntityAction_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet19EntityAction_getPacketSize(this); }], -ju_GregorianCalendar, 0, ju_Calendar, [], 0, 3, 0, 0, -nms_ChatClickData, 0, jl_Object, [], 0, 3, 0, 0, -nms_Stitcher, 0, jl_Object, [], 0, 3, 0, 0, -ju_Arrays$ArrayAsList, "Arrays$ArrayAsList", 8, ju_AbstractList, [ju_RandomAccess], 0, 0, 0, ["$get4", function(var_1) { return $java.ju_Arrays$ArrayAsList_get(this, var_1); }, "$size2", function() { return $java.ju_Arrays$ArrayAsList_size(this); }], -nms_StitchSlot, "StitchSlot", 24, jl_Object, [], 0, 3, 0, ["$toString", function() { return $java.nms_StitchSlot_toString(this); }], -nms_TextureClock, "TextureClock", 24, nms_TextureStitched, [], 0, 3, 0, ["$updateAnimation", function() { $java.nms_TextureClock_updateAnimation(this); }], -nms_TextureCompass, "TextureCompass", 24, nms_TextureStitched, [], 0, 3, 0, ["$updateAnimation", function() { nms_TextureCompass_updateAnimation(this); }], -$java.nms_SlotCreativeInventory, "SlotCreativeInventory", 24, $java.nms_Slot, [], 0, 0, 0, ["$onPickupFromSlot", function(var_1, var_2) { $java.nms_SlotCreativeInventory_onPickupFromSlot(this, var_1, var_2); }, "$isItemValid", function(var_1) { return $java.nms_SlotCreativeInventory_isItemValid(this, var_1); }, "$getStack", function() { return $java.nms_SlotCreativeInventory_getStack(this); }, "$getHasStack", function() { return $java.nms_SlotCreativeInventory_getHasStack(this); }, "$putStack", function(var_1) -{ $java.nms_SlotCreativeInventory_putStack(this, var_1); }, "$onSlotChanged", function() { $java.nms_SlotCreativeInventory_onSlotChanged(this); }, "$getSlotStackLimit", function() { return $java.nms_SlotCreativeInventory_getSlotStackLimit(this); }, "$getBackgroundIconIndex", function() { return $java.nms_SlotCreativeInventory_getBackgroundIconIndex(this); }, "$decrStackSize0", function(var_1) { return $java.nms_SlotCreativeInventory_decrStackSize(this, var_1); }], -nms_Enchantment, "Enchantment", 24, jl_Object, [], 1, 3, nms_Enchantment_$callClinit, ["$calcModifierDamage", function(var_1, var_2) { return $java.nms_Enchantment_calcModifierDamage(this, var_1, var_2); }, "$calcModifierLiving", function(var_1, var_2) { return $java.nms_Enchantment_calcModifierLiving(this, var_1, var_2); }, "$canApplyTogether", function(var_1) { return $java.nms_Enchantment_canApplyTogether(this, var_1); }, "$getName", function() { return $java.nms_Enchantment_getName(this); }, "$canApply", -function(var_1) { return $java.nms_Enchantment_canApply(this, var_1); }], -nlea_EaglerAdapterImpl2$RenderbufferGL, 0, jl_Object, [], 4, 3, 0, 0, -nms_ChunkPosition, "ChunkPosition", 24, jl_Object, [], 0, 3, 0, ["$equals", function(var_1) { return $java.nms_ChunkPosition_equals(this, var_1); }, "$hashCode0", function() { return $java.nms_ChunkPosition_hashCode(this); }], -$java.otjc_JSArray, 0, jl_Object, [otjc_JSArrayReader], 1, 3, 0, ["$get$exported$0", function(var_1) { return $java.otjc_JSArray_get$exported$0(this, var_1); }, "$getLength$exported$1", function() { return $java.otjc_JSArray_getLength$exported$1(this); }], -$java.otjc_JSNumber, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, -nms_ScoreComparator, 0, jl_Object, [ju_Comparator], 4, 0, 0, ["$compare", function(var_1, var_2) { return $java.nms_ScoreComparator_compare(this, var_1, var_2); }]]); -$rt_metadata([ju_TimeZone, 0, jl_Object, [ji_Serializable, jl_Cloneable], 1, 3, 0, 0, -nms_Packet0KeepAlive, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet0KeepAlive_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet0KeepAlive_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet0KeepAlive_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet0KeepAlive_getPacketSize(this); }], -nms_Packet1Login, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet1Login_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet1Login_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet1Login_getPacketSize(this); }], -nms_Packet2ClientProtocol, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet2ClientProtocol_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet2ClientProtocol_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet2ClientProtocol_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet2ClientProtocol_getPacketSize(this); }], -nms_Packet4UpdateTime, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet4UpdateTime_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet4UpdateTime_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet4UpdateTime_getPacketSize(this); }], -nms_Packet5PlayerInventory, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet5PlayerInventory_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet5PlayerInventory_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet5PlayerInventory_getPacketSize(this); }], -nms_Packet6SpawnPosition, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet6SpawnPosition_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet6SpawnPosition_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet6SpawnPosition_getPacketSize(this); }], -nms_Packet7UseEntity, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet7UseEntity_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet7UseEntity_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet7UseEntity_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet7UseEntity_getPacketSize(this); }], -nms_Packet8UpdateHealth, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet8UpdateHealth_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet8UpdateHealth_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet8UpdateHealth_getPacketSize(this); }], -nms_Packet9Respawn, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet9Respawn_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet9Respawn_readPacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet9Respawn_getPacketSize(this); }], -nms_Packet10Flying, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet10Flying_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet10Flying_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet10Flying_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet10Flying_getPacketSize(this); }], -nms_Packet11PlayerPosition, 0, nms_Packet10Flying, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet11PlayerPosition_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet11PlayerPosition_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet11PlayerPosition_getPacketSize(this); }], -nms_Packet12PlayerLook, 0, nms_Packet10Flying, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet12PlayerLook_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet12PlayerLook_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet12PlayerLook_getPacketSize(this); }], -nms_Packet13PlayerLookMove, 0, nms_Packet10Flying, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet13PlayerLookMove_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet13PlayerLookMove_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet13PlayerLookMove_getPacketSize(this); }], -nms_Packet14BlockDig, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet14BlockDig_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet14BlockDig_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet14BlockDig_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet14BlockDig_getPacketSize(this); }], -nms_Packet15Place, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet15Place_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet15Place_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet15Place_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet15Place_getPacketSize(this); }], -nms_Packet16BlockItemSwitch, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet16BlockItemSwitch_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet16BlockItemSwitch_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet16BlockItemSwitch_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet16BlockItemSwitch_getPacketSize(this); }], -nms_Packet17Sleep, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet17Sleep_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet17Sleep_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet17Sleep_getPacketSize(this); }], -nms_Packet18Animation, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet18Animation_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet18Animation_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet18Animation_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet18Animation_getPacketSize(this); }], -nms_Packet20NamedEntitySpawn, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet20NamedEntitySpawn_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet20NamedEntitySpawn_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet20NamedEntitySpawn_getPacketSize(this); }], -nms_Packet22Collect, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet22Collect_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet22Collect_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet22Collect_getPacketSize(this); }], -nms_Packet23VehicleSpawn, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet23VehicleSpawn_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet23VehicleSpawn_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet23VehicleSpawn_getPacketSize(this); }], -nms_Packet24MobSpawn, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet24MobSpawn_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet24MobSpawn_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet24MobSpawn_getPacketSize(this); }], -nms_Packet25EntityPainting, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet25EntityPainting_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet25EntityPainting_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet25EntityPainting_getPacketSize(this); }], -nms_Packet26EntityExpOrb, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet26EntityExpOrb_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet26EntityExpOrb_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet26EntityExpOrb_getPacketSize(this); }], -nms_Packet28EntityVelocity, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet28EntityVelocity_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet28EntityVelocity_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet28EntityVelocity_getPacketSize(this); }], -nms_Packet29DestroyEntity, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet29DestroyEntity_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet29DestroyEntity_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet29DestroyEntity_getPacketSize(this); }], -nms_Packet30Entity, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet30Entity_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet30Entity_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet30Entity_getPacketSize(this); }], -nms_Packet31RelEntityMove, 0, nms_Packet30Entity, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet31RelEntityMove_readPacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet31RelEntityMove_getPacketSize(this); }], -nms_Packet32EntityLook, 0, nms_Packet30Entity, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet32EntityLook_readPacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet32EntityLook_getPacketSize(this); }], -nms_Packet33RelEntityMoveLook, 0, nms_Packet30Entity, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet33RelEntityMoveLook_readPacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet33RelEntityMoveLook_getPacketSize(this); }], -nms_Packet34EntityTeleport, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet34EntityTeleport_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet34EntityTeleport_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet34EntityTeleport_getPacketSize(this); }], -nms_Packet35EntityHeadRotation, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet35EntityHeadRotation_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet35EntityHeadRotation_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet35EntityHeadRotation_getPacketSize(this); }], -nms_Packet38EntityStatus, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet38EntityStatus_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet38EntityStatus_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet38EntityStatus_getPacketSize(this); }], -nms_Packet39AttachEntity, 0, nms_Packet, [], 0, 3, 0, ["$getPacketSize", function() { return $java.nms_Packet39AttachEntity_getPacketSize(this); }, "$readPacketData", function(var_1) { $java.nms_Packet39AttachEntity_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet39AttachEntity_processPacket(this, var_1); }], -nms_Packet40EntityMetadata, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet40EntityMetadata_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet40EntityMetadata_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet40EntityMetadata_getPacketSize(this); }], -nms_Packet41EntityEffect, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet41EntityEffect_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet41EntityEffect_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet41EntityEffect_getPacketSize(this); }], -nms_Packet42RemoveEntityEffect, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet42RemoveEntityEffect_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet42RemoveEntityEffect_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet42RemoveEntityEffect_getPacketSize(this); }], -nms_Packet43Experience, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet43Experience_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet43Experience_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet43Experience_getPacketSize(this); }], -nms_Packet51MapChunk, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet51MapChunk_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet51MapChunk_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet51MapChunk_getPacketSize(this); }], -nms_Packet52MultiBlockChange, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet52MultiBlockChange_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet52MultiBlockChange_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet52MultiBlockChange_getPacketSize(this); }], -nms_Packet53BlockChange, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet53BlockChange_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet53BlockChange_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet53BlockChange_getPacketSize(this); }], -nms_Packet54PlayNoteBlock, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet54PlayNoteBlock_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet54PlayNoteBlock_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet54PlayNoteBlock_getPacketSize(this); }], -nms_Packet55BlockDestroy, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet55BlockDestroy_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet55BlockDestroy_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet55BlockDestroy_getPacketSize(this); }], -nms_Packet56MapChunks, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet56MapChunks_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet56MapChunks_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet56MapChunks_getPacketSize(this); }], -nms_Packet60Explosion, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet60Explosion_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet60Explosion_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet60Explosion_getPacketSize(this); }], -nms_Packet61DoorChange, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet61DoorChange_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet61DoorChange_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet61DoorChange_getPacketSize(this); }], -nms_Packet62LevelSound, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet62LevelSound_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet62LevelSound_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet62LevelSound_getPacketSize(this); }], -nms_Packet63WorldParticles, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet63WorldParticles_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet63WorldParticles_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet63WorldParticles_getPacketSize(this); }], -nms_Packet70GameEvent, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet70GameEvent_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet70GameEvent_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet70GameEvent_getPacketSize(this); }]]); -$rt_metadata([nms_Packet71Weather, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet71Weather_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet71Weather_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet71Weather_getPacketSize(this); }], -nms_Packet100OpenWindow, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet100OpenWindow_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet100OpenWindow_readPacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet100OpenWindow_getPacketSize(this); }], -nms_Packet101CloseWindow, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet101CloseWindow_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet101CloseWindow_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet101CloseWindow_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet101CloseWindow_getPacketSize(this); }], -nms_Packet102WindowClick, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet102WindowClick_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet102WindowClick_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet102WindowClick_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet102WindowClick_getPacketSize(this); }], -nms_Packet103SetSlot, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet103SetSlot_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet103SetSlot_readPacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet103SetSlot_getPacketSize(this); }], -nms_Packet104WindowItems, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet104WindowItems_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet104WindowItems_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet104WindowItems_getPacketSize(this); }], -nms_Packet105UpdateProgressbar, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet105UpdateProgressbar_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet105UpdateProgressbar_readPacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet105UpdateProgressbar_getPacketSize(this); }], -nms_Packet106Transaction, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet106Transaction_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet106Transaction_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet106Transaction_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet106Transaction_getPacketSize(this); }], -nms_Packet107CreativeSetSlot, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet107CreativeSetSlot_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet107CreativeSetSlot_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet107CreativeSetSlot_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet107CreativeSetSlot_getPacketSize(this); }], -nms_Packet108EnchantItem, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet108EnchantItem_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet108EnchantItem_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet108EnchantItem_writePacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet108EnchantItem_getPacketSize(this); }], -nms_Packet130UpdateSign, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet130UpdateSign_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet130UpdateSign_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet130UpdateSign_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet130UpdateSign_getPacketSize(this); }], -nms_Packet131MapData, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet131MapData_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet131MapData_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet131MapData_getPacketSize(this); }], -nms_Packet132TileEntityData, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet132TileEntityData_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet132TileEntityData_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet132TileEntityData_getPacketSize(this); }], -nms_Packet200Statistic, 0, nms_Packet, [], 0, 3, 0, ["$processPacket", function(var_1) { $java.nms_Packet200Statistic_processPacket(this, var_1); }, "$readPacketData", function(var_1) { $java.nms_Packet200Statistic_readPacketData(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet200Statistic_getPacketSize(this); }], -nms_Packet201PlayerInfo, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet201PlayerInfo_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet201PlayerInfo_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet201PlayerInfo_getPacketSize(this); }], -nms_Packet202PlayerAbilities, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet202PlayerAbilities_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet202PlayerAbilities_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet202PlayerAbilities_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet202PlayerAbilities_getPacketSize(this); }], -nms_Packet203AutoComplete, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet203AutoComplete_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet203AutoComplete_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet203AutoComplete_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet203AutoComplete_getPacketSize(this); }], -nms_Packet205ClientCommand, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet205ClientCommand_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet205ClientCommand_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet205ClientCommand_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet205ClientCommand_getPacketSize(this); }], -nms_Packet206SetObjective, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet206SetObjective_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet206SetObjective_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet206SetObjective_getPacketSize(this); }], -nms_Packet207SetScore, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet207SetScore_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet207SetScore_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet207SetScore_getPacketSize(this); }], -nms_Packet208SetDisplayObjective, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet208SetDisplayObjective_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet208SetDisplayObjective_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet208SetDisplayObjective_getPacketSize(this); }], -nms_Packet209SetPlayerTeam, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet209SetPlayerTeam_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet209SetPlayerTeam_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet209SetPlayerTeam_getPacketSize(this); }], -nms_Packet250CustomPayload, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet250CustomPayload_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet250CustomPayload_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet250CustomPayload_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet250CustomPayload_getPacketSize(this); }], -nms_Packet252SharedKey, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet252SharedKey_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet252SharedKey_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet252SharedKey_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet252SharedKey_getPacketSize(this); }], -nms_Packet253ServerAuthData, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet253ServerAuthData_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet253ServerAuthData_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet253ServerAuthData_getPacketSize(this); }], -nms_Packet254ServerPing, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet254ServerPing_readPacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet254ServerPing_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet254ServerPing_getPacketSize(this); }], -nms_Packet255KickDisconnect, 0, nms_Packet, [], 0, 3, 0, ["$readPacketData", function(var_1) { $java.nms_Packet255KickDisconnect_readPacketData(this, var_1); }, "$writePacketData", function(var_1) { $java.nms_Packet255KickDisconnect_writePacketData(this, var_1); }, "$processPacket", function(var_1) { $java.nms_Packet255KickDisconnect_processPacket(this, var_1); }, "$getPacketSize", function() { return $java.nms_Packet255KickDisconnect_getPacketSize(this); }], -nms_EnchantmentProtection, "EnchantmentProtection", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentProtection_getMaxLevel(this); }, "$calcModifierDamage", function(var_1, var_2) { return $java.nms_EnchantmentProtection_calcModifierDamage(this, var_1, var_2); }, "$getName", function() { return $java.nms_EnchantmentProtection_getName(this); }, "$canApplyTogether", function(var_1) { return $java.nms_EnchantmentProtection_canApplyTogether(this, var_1); }], -$java.nms_EnchantmentOxygen, "EnchantmentOxygen", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentOxygen_getMaxLevel(this); }], -$java.nms_EnchantmentWaterWorker, "EnchantmentWaterWorker", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentWaterWorker_getMaxLevel(this); }], -nms_EnchantmentThorns, "EnchantmentThorns", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentThorns_getMaxLevel(this); }, "$canApply", function(var_1) { return $java.nms_EnchantmentThorns_canApply(this, var_1); }], -nms_EnchantmentDamage, "EnchantmentDamage", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentDamage_getMaxLevel(this); }, "$calcModifierLiving", function(var_1, var_2) { return $java.nms_EnchantmentDamage_calcModifierLiving(this, var_1, var_2); }, "$getName", function() { return $java.nms_EnchantmentDamage_getName(this); }, "$canApplyTogether", function(var_1) { return $java.nms_EnchantmentDamage_canApplyTogether(this, var_1); }, "$canApply", function(var_1) { return $java.nms_EnchantmentDamage_canApply(this, -var_1); }], -$java.nms_EnchantmentKnockback, "EnchantmentKnockback", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentKnockback_getMaxLevel(this); }], -$java.nms_EnchantmentFireAspect, "EnchantmentFireAspect", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentFireAspect_getMaxLevel(this); }], -$java.nms_EnchantmentLootBonus, "EnchantmentLootBonus", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentLootBonus_getMaxLevel(this); }, "$canApplyTogether", function(var_1) { return $java.nms_EnchantmentLootBonus_canApplyTogether(this, var_1); }], -nms_EnumEnchantmentType, 0, jl_Enum, [], 12, 3, 0, 0, -$java.nms_EnchantmentDigging, "EnchantmentDigging", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentDigging_getMaxLevel(this); }, "$canApply", function(var_1) { return $java.nms_EnchantmentDigging_canApply(this, var_1); }], -$java.nms_EnchantmentUntouching, "EnchantmentUntouching", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentUntouching_getMaxLevel(this); }, "$canApplyTogether", function(var_1) { return $java.nms_EnchantmentUntouching_canApplyTogether(this, var_1); }, "$canApply", function(var_1) { return $java.nms_EnchantmentUntouching_canApply(this, var_1); }], -nms_EnchantmentDurability, "EnchantmentDurability", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentDurability_getMaxLevel(this); }, "$canApply", function(var_1) { return $java.nms_EnchantmentDurability_canApply(this, var_1); }], -$java.nms_EnchantmentArrowDamage, "EnchantmentArrowDamage", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentArrowDamage_getMaxLevel(this); }], -$java.nms_EnchantmentArrowKnockback, "EnchantmentArrowKnockback", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentArrowKnockback_getMaxLevel(this); }], -$java.nms_EnchantmentArrowFire, "EnchantmentArrowFire", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentArrowFire_getMaxLevel(this); }], -$java.nms_EnchantmentArrowInfinite, "EnchantmentArrowInfinite", 24, nms_Enchantment, [], 0, 3, 0, ["$getMaxLevel", function() { return $java.nms_EnchantmentArrowInfinite_getMaxLevel(this); }], -otcit_DateTimeZoneProvider, 0, jl_Object, [], 4, 3, 0, 0, -$java.ju_IANATimeZone, 0, ju_TimeZone, [], 0, 0, 0, 0, -$java.otcit_DateTimeZone, 0, jl_Object, [], 1, 3, 0, 0, -$java.otcit_StorableDateTimeZone, 0, $java.otcit_DateTimeZone, [], 1, 3, 0, 0, -$java.otcit_FixedDateTimeZone, "FixedDateTimeZone", 20, $java.otcit_StorableDateTimeZone, [], 4, 3, 0, ["$getOffset", function(var_1) { return $java.otcit_FixedDateTimeZone_getOffset(this, var_1); }, "$getStandardOffset", function(var_1) { return $java.otcit_FixedDateTimeZone_getStandardOffset(this, var_1); }, "$previousTransition", function(var_1) { return $java.otcit_FixedDateTimeZone_previousTransition(this, var_1); }], -$java.ju_AbstractQueue, 0, ju_AbstractCollection, [ju_Queue], 1, 3, 0, 0, -ju_PriorityQueue, 0, $java.ju_AbstractQueue, [ji_Serializable], 0, 3, 0, ["$size2", function() { return $java.ju_PriorityQueue_size(this); }]]); -$rt_metadata([otcit_DateTimeZoneProvider$1, 0, jl_Object, [ju_Comparator], 4, 0, 0, ["$compare", function(var_1, var_2) { return $java.otcit_DateTimeZoneProvider$1_compare0(this, var_1, var_2); }], -$java.otcit_AliasDateTimeZone, "AliasDateTimeZone", 20, $java.otcit_StorableDateTimeZone, [], 0, 3, 0, ["$getOffset", function(var_1) { return $java.otcit_AliasDateTimeZone_getOffset(this, var_1); }, "$getStandardOffset", function(var_1) { return $java.otcit_AliasDateTimeZone_getStandardOffset(this, var_1); }, "$previousTransition", function(var_1) { return $java.otcit_AliasDateTimeZone_previousTransition(this, var_1); }], -$java.otcit_DateTimeZoneProvider$Score, "DateTimeZoneProvider$Score", 20, jl_Object, [], 0, 0, 0, 0, -$java.juf_Function, 0, jl_Object, [], 3, 3, 0, 0, -otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0, 0, jl_Object, [$java.juf_Function], 0, 3, 0, 0, -$java.ju_PriorityQueue$1, 0, jl_Object, [ju_Comparator], 0, 0, 0, ["$compare", function(var_1, var_2) { return $java.ju_PriorityQueue$1_compare(this, var_1, var_2); }], -$java.otcit_DateTimeZoneBuilder$PrecalculatedZone, "DateTimeZoneBuilder$PrecalculatedZone", 20, $java.otcit_StorableDateTimeZone, [], 4, 0, 0, ["$getOffset", function(var_1) { return $java.otcit_DateTimeZoneBuilder$PrecalculatedZone_getOffset(this, var_1); }, "$getStandardOffset", function(var_1) { return $java.otcit_DateTimeZoneBuilder$PrecalculatedZone_getStandardOffset(this, var_1); }, "$previousTransition", function(var_1) { return $java.otcit_DateTimeZoneBuilder$PrecalculatedZone_previousTransition(this, -var_1); }], -$java.otcit_DateTimeZoneBuilder$DSTZone, "DateTimeZoneBuilder$DSTZone", 20, $java.otcit_StorableDateTimeZone, [], 4, 0, 0, ["$getOffset", function(var_1) { return $java.otcit_DateTimeZoneBuilder$DSTZone_getOffset(this, var_1); }, "$getStandardOffset", function(var_1) { return $java.otcit_DateTimeZoneBuilder$DSTZone_getStandardOffset(this, var_1); }, "$previousTransition", function(var_1) { return $java.otcit_DateTimeZoneBuilder$DSTZone_previousTransition(this, var_1); }], -otcit_CachedDateTimeZone, "CachedDateTimeZone", 20, $java.otcit_StorableDateTimeZone, [], 4, 3, 0, ["$getOffset", function(var_1) { return $java.otcit_CachedDateTimeZone_getOffset(this, var_1); }, "$getStandardOffset", function(var_1) { return $java.otcit_CachedDateTimeZone_getStandardOffset(this, var_1); }, "$previousTransition", function(var_1) { return $java.otcit_CachedDateTimeZone_previousTransition(this, var_1); }], -$java.otcit_DateTimeZoneBuilder$Recurrence, 0, jl_Object, [], 4, 0, 0, 0, -$java.otcit_DateTimeZoneBuilder$OfYear, 0, jl_Object, [], 4, 0, 0, 0, -$java.otcit_CachedDateTimeZone$Info, 0, jl_Object, [], 4, 0, 0, 0, -jnc_CoderMalfunctionError, "CoderMalfunctionError", 11, jl_Error, [], 0, 3, 0, 0, -nms_EnumRarity, 0, jl_Enum, [], 12, 3, 0, 0, -ju_NoSuchElementException, "NoSuchElementException", 8, jl_RuntimeException, [], 0, 3, 0, 0, -nms_Tuple, "Tuple", 24, jl_Object, [], 0, 3, 0, 0, -jm_Conversion, 0, jl_Object, [], 0, 0, 0, 0, -$java.jur_AbstractCharClass$LazyJavaLowerCase$1, "AbstractCharClass$LazyJavaLowerCase$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaLowerCase$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaUpperCase$1, "AbstractCharClass$LazyJavaUpperCase$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaUpperCase$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaWhitespace$1, "AbstractCharClass$LazyJavaWhitespace$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaWhitespace$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaMirrored$1, "AbstractCharClass$LazyJavaMirrored$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaMirrored$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaDefined$1, "AbstractCharClass$LazyJavaDefined$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaDefined$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaDigit$1, "AbstractCharClass$LazyJavaDigit$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaDigit$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaIdentifierIgnorable$1, "AbstractCharClass$LazyJavaIdentifierIgnorable$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaIdentifierIgnorable$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaISOControl$1, "AbstractCharClass$LazyJavaISOControl$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaISOControl$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierPart$1, "AbstractCharClass$LazyJavaJavaIdentifierPart$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaJavaIdentifierPart$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaJavaIdentifierStart$1, "AbstractCharClass$LazyJavaJavaIdentifierStart$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaJavaIdentifierStart$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaLetter$1, "AbstractCharClass$LazyJavaLetter$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaLetter$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaLetterOrDigit$1, "AbstractCharClass$LazyJavaLetterOrDigit$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaLetterOrDigit$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaSpaceChar$1, "AbstractCharClass$LazyJavaSpaceChar$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaSpaceChar$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaTitleCase$1, "AbstractCharClass$LazyJavaTitleCase$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaTitleCase$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart$1, "AbstractCharClass$LazyJavaUnicodeIdentifierPart$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart$1_contains(this, var_1); }], -$java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart$1, "AbstractCharClass$LazyJavaUnicodeIdentifierStart$1", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart$1_contains(this, var_1); }], -$java.jur_UnicodeCategory, "UnicodeCategory", 9, jur_AbstractCharClass, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_UnicodeCategory_contains(this, var_1); }], -$java.jur_UnicodeCategoryScope, "UnicodeCategoryScope", 9, $java.jur_UnicodeCategory, [], 0, 0, 0, ["$contains1", function(var_1) { return $java.jur_UnicodeCategoryScope_contains(this, var_1); }], -nms_TileEntityRenderer, 0, jl_Object, [], 0, 3, nms_TileEntityRenderer_$callClinit, 0, -nms_RenderSorter, 0, jl_Object, [ju_Comparator], 0, 3, 0, ["$compare", function(var_1, var_2) { return $java.nms_RenderSorter_compare(this, var_1, var_2); }], -nms_GuiOptions, 0, nms_GuiScreen, [], 0, 3, nms_GuiOptions_$callClinit, ["$initGui", function() { $java.nms_GuiOptions_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiOptions_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiOptions_drawScreen(this, var_1, var_2, var_3); }], -nms_GuiLanguage, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiLanguage_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiLanguage_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiLanguage_drawScreen(this, var_1, var_2, var_3); }, "$updateScreen", function() { $java.nms_GuiLanguage_updateScreen(this); }], -nms_GuiMultiplayer, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiMultiplayer_initGui(this); }, "$updateScreen", function() { $java.nms_GuiMultiplayer_updateScreen(this); }, "$onGuiClosed", function() { $java.nms_GuiMultiplayer_onGuiClosed(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiMultiplayer_actionPerformed(this, var_1); }, "$confirmClicked", function(var_1, var_2) { $java.nms_GuiMultiplayer_confirmClicked(this, var_1, var_2); }, "$keyTyped", function(var_1, var_2) -{ $java.nms_GuiMultiplayer_keyTyped(this, var_1, var_2); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiMultiplayer_drawScreen(this, var_1, var_2, var_3); }], -nms_IconFlipped, 0, jl_Object, [nms_Icon], 0, 3, 0, ["$getOriginX", function() { return $java.nms_IconFlipped_getOriginX(this); }, "$getOriginY", function() { return $java.nms_IconFlipped_getOriginY(this); }, "$getMinU", function() { return $java.nms_IconFlipped_getMinU(this); }, "$getMaxU", function() { return $java.nms_IconFlipped_getMaxU(this); }, "$getInterpolatedU", function(var_1) { return $java.nms_IconFlipped_getInterpolatedU(this, var_1); }, "$getMinV", function() { return $java.nms_IconFlipped_getMinV(this); -}, "$getMaxV", function() { return $java.nms_IconFlipped_getMaxV(this); }, "$getInterpolatedV", function(var_1) { return $java.nms_IconFlipped_getInterpolatedV(this, var_1); }, "$getIconName", function() { return $java.nms_IconFlipped_getIconName(this); }, "$getSheetWidth", function() { return $java.nms_IconFlipped_getSheetWidth(this); }, "$getSheetHeight", function() { return $java.nms_IconFlipped_getSheetHeight(this); }], -nms_MinecraftError, "MinecraftError", 24, jl_Error, [], 0, 3, 0, 0, -nms_EnumAction, 0, jl_Enum, [], 12, 3, 0, 0, -nms_EnchantmentData, 0, jl_Object, [], 0, 3, 0, 0, -nms_ChatLine, "ChatLine", 24, jl_Object, [], 0, 3, 0, 0, -jl_AbstractStringBuilder$Constants, 0, jl_Object, [], 0, 0, 0, 0, -otcit_DoubleAnalyzer, 0, jl_Object, [], 4, 3, 0, 0, -otcit_DoubleAnalyzer$Result, 0, jl_Object, [], 0, 3, 0, 0, -nlea_EaglerAdapterImpl2$QueryGL, 0, jl_Object, [], 4, 3, 0, 0, -$java.jur_MatchResult, 0, jl_Object, [], 3, 3, 0, 0]); -$rt_metadata([jur_Matcher, 0, jl_Object, [$java.jur_MatchResult], 4, 3, 0, 0, -$java.nms_Rect2i, 0, jl_Object, [], 0, 3, 0, 0, -$java.nms_TileEntitySpecialRenderer, 0, jl_Object, [], 1, 3, 0, ["$setTileEntityRenderer", function(var_1) { $java.nms_TileEntitySpecialRenderer_setTileEntityRenderer(this, var_1); }, "$onWorldChange", function(var_1) { $java.nms_TileEntitySpecialRenderer_onWorldChange(this, var_1); }], -nms_TileEntitySignRenderer, "TileEntitySignRenderer", 24, $java.nms_TileEntitySpecialRenderer, [], 0, 3, 0, ["$renderTileEntityAt", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_TileEntitySignRenderer_renderTileEntityAt(this, var_1, var_2, var_3, var_4, var_5); }], -nms_TileEntityPiston, "TileEntityPiston", 24, nms_TileEntity, [], 0, 3, 0, ["$updateEntity0", function() { $java.nms_TileEntityPiston_updateEntity(this); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityPiston_readFromNBT(this, var_1); }, "$writeToNBT", function(var_1) { $java.nms_TileEntityPiston_writeToNBT(this, var_1); }], -nms_TileEntityRendererPiston, "TileEntityRendererPiston", 24, $java.nms_TileEntitySpecialRenderer, [], 0, 3, 0, ["$onWorldChange", function(var_1) { $java.nms_TileEntityRendererPiston_onWorldChange(this, var_1); }, "$renderTileEntityAt", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_TileEntityRendererPiston_renderTileEntityAt(this, var_1, var_2, var_3, var_4, var_5); }], -nms_TileEntityChest, "TileEntityChest", 24, nms_TileEntity, [nms_IInventory], 0, 3, 0, ["$getSizeInventory", function() { return $java.nms_TileEntityChest_getSizeInventory(this); }, "$getStackInSlot", function(var_1) { return $java.nms_TileEntityChest_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_TileEntityChest_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_TileEntityChest_setInventorySlotContents(this, var_1, -var_2); }, "$getInvName", function() { return $java.nms_TileEntityChest_getInvName(this); }, "$isInvNameLocalized", function() { return $java.nms_TileEntityChest_isInvNameLocalized(this); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityChest_readFromNBT(this, var_1); }, "$writeToNBT", function(var_1) { $java.nms_TileEntityChest_writeToNBT(this, var_1); }, "$getInventoryStackLimit", function() { return $java.nms_TileEntityChest_getInventoryStackLimit(this); }, "$isUseableByPlayer", function(var_1) { -return $java.nms_TileEntityChest_isUseableByPlayer(this, var_1); }, "$updateContainingBlockInfo", function() { $java.nms_TileEntityChest_updateContainingBlockInfo(this); }, "$updateEntity0", function() { $java.nms_TileEntityChest_updateEntity(this); }, "$receiveClientEvent", function(var_1, var_2) { return $java.nms_TileEntityChest_receiveClientEvent(this, var_1, var_2); }, "$openChest", function() { $java.nms_TileEntityChest_openChest(this); }, "$closeChest", function() { $java.nms_TileEntityChest_closeChest(this); -}, "$isStackValidForSlot", function(var_1, var_2) { return $java.nms_TileEntityChest_isStackValidForSlot(this, var_1, var_2); }, "$invalidate", function() { $java.nms_TileEntityChest_invalidate(this); }], -nms_TileEntityChestRenderer, "TileEntityChestRenderer", 24, $java.nms_TileEntitySpecialRenderer, [], 0, 3, 0, ["$renderTileEntityAt", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_TileEntityChestRenderer_renderTileEntityAt(this, var_1, var_2, var_3, var_4, var_5); }], -nms_TileEntityEnderChest, "TileEntityEnderChest", 24, nms_TileEntity, [], 0, 3, 0, ["$updateEntity0", function() { $java.nms_TileEntityEnderChest_updateEntity(this); }, "$receiveClientEvent", function(var_1, var_2) { return $java.nms_TileEntityEnderChest_receiveClientEvent(this, var_1, var_2); }, "$invalidate", function() { $java.nms_TileEntityEnderChest_invalidate(this); }], -nms_TileEntityEnderChestRenderer, "TileEntityEnderChestRenderer", 24, $java.nms_TileEntitySpecialRenderer, [], 0, 3, 0, ["$renderTileEntityAt", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_TileEntityEnderChestRenderer_renderTileEntityAt(this, var_1, var_2, var_3, var_4, var_5); }], -nms_TileEntityEnchantmentTable, "TileEntityEnchantmentTable", 24, nms_TileEntity, [], 0, 3, 0, ["$writeToNBT", function(var_1) { $java.nms_TileEntityEnchantmentTable_writeToNBT(this, var_1); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityEnchantmentTable_readFromNBT(this, var_1); }, "$updateEntity0", function() { $java.nms_TileEntityEnchantmentTable_updateEntity(this); }], -nms_RenderEnchantmentTable, "RenderEnchantmentTable", 24, $java.nms_TileEntitySpecialRenderer, [], 0, 3, 0, ["$renderTileEntityAt", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_RenderEnchantmentTable_renderTileEntityAt(this, var_1, var_2, var_3, var_4, var_5); }], -nms_TileEntityEndPortal, "TileEntityEndPortal", 24, nms_TileEntity, [], 0, 3, 0, 0, -nms_RenderEndPortal, "RenderEndPortal", 24, $java.nms_TileEntitySpecialRenderer, [], 0, 3, 0, ["$renderTileEntityAt", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_RenderEndPortal_renderTileEntityAt(this, var_1, var_2, var_3, var_4, var_5); }], -nms_TileEntityBeacon, "TileEntityBeacon", 24, nms_TileEntity, [nms_IInventory], 0, 3, nms_TileEntityBeacon_$callClinit, ["$updateEntity0", function() { $java.nms_TileEntityBeacon_updateEntity(this); }, "$getMaxRenderDistanceSquared", function() { return $java.nms_TileEntityBeacon_getMaxRenderDistanceSquared(this); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityBeacon_readFromNBT(this, var_1); }, "$writeToNBT", function(var_1) { $java.nms_TileEntityBeacon_writeToNBT(this, var_1); }, "$getSizeInventory", -function() { return $java.nms_TileEntityBeacon_getSizeInventory(this); }, "$getStackInSlot", function(var_1) { return $java.nms_TileEntityBeacon_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_TileEntityBeacon_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_TileEntityBeacon_setInventorySlotContents(this, var_1, var_2); }, "$getInventoryStackLimit", function() { return $java.nms_TileEntityBeacon_getInventoryStackLimit(this); -}, "$isStackValidForSlot", function(var_1, var_2) { return $java.nms_TileEntityBeacon_isStackValidForSlot(this, var_1, var_2); }], -nms_TileEntityBeaconRenderer, "TileEntityBeaconRenderer", 24, $java.nms_TileEntitySpecialRenderer, [], 0, 3, 0, ["$renderTileEntityAt", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_TileEntityBeaconRenderer_renderTileEntityAt(this, var_1, var_2, var_3, var_4, var_5); }], -nms_TileEntitySkullRenderer, "TileEntitySkullRenderer", 24, $java.nms_TileEntitySpecialRenderer, [], 0, 3, 0, ["$setTileEntityRenderer", function(var_1) { $java.nms_TileEntitySkullRenderer_setTileEntityRenderer(this, var_1); }, "$renderTileEntityAt", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_TileEntitySkullRenderer_renderTileEntityAt(this, var_1, var_2, var_3, var_4, var_5); }], -otcit_FloatAnalyzer$Result, 0, jl_Object, [], 0, 3, 0, 0, -nms_ModelSign, 0, nms_ModelBase, [], 0, 3, 0, 0, -nms_ModelChest, 0, nms_ModelBase, [], 0, 3, 0, 0, -nms_ModelLargeChest, 0, nms_ModelChest, [], 0, 3, 0, 0, -nms_ModelBook, 0, nms_ModelBase, [], 0, 3, 0, 0, -jnci_BufferedEncoder$Controller, 0, jl_Object, [], 0, 3, 0, 0, -jnc_BufferUnderflowException, "BufferUnderflowException", 11, jl_RuntimeException, [], 0, 3, 0, 0, -jnc_BufferOverflowException, "BufferOverflowException", 11, jl_RuntimeException, [], 0, 3, 0, 0, -jnc_MalformedInputException, "MalformedInputException", 11, jnc_CharacterCodingException, [], 0, 3, 0, ["$getMessage", function() { return $java.jnc_MalformedInputException_getMessage(this); }], -jnc_UnmappableCharacterException, "UnmappableCharacterException", 11, jnc_CharacterCodingException, [], 0, 3, 0, ["$getMessage", function() { return $java.jnc_UnmappableCharacterException_getMessage(this); }], -jl_StrictMath, 0, jl_Object, [], 4, 3, 0, 0, -nms_Chunk, 0, jl_Object, [], 0, 3, 0, ["$getHeightValue", function(var_1, var_2) { return $java.nms_Chunk_getHeightValue(this, var_1, var_2); }, "$generateHeightMap", function() { $java.nms_Chunk_generateHeightMap(this); }, "$generateSkylightMap", function() { $java.nms_Chunk_generateSkylightMap(this); }, "$getBlockLightOpacity", function(var_1, var_2, var_3) { return $java.nms_Chunk_getBlockLightOpacity(this, var_1, var_2, var_3); }, "$getBlockID", function(var_1, var_2, var_3) { return $java.nms_Chunk_getBlockID(this, -var_1, var_2, var_3); }, "$getBlockMetadata", function(var_1, var_2, var_3) { return $java.nms_Chunk_getBlockMetadata(this, var_1, var_2, var_3); }, "$setBlockIDWithMetadata", function(var_1, var_2, var_3, var_4, var_5) { return $java.nms_Chunk_setBlockIDWithMetadata(this, var_1, var_2, var_3, var_4, var_5); }, "$setBlockMetadata", function(var_1, var_2, var_3, var_4) { return $java.nms_Chunk_setBlockMetadata(this, var_1, var_2, var_3, var_4); }, "$getSavedLightValue", function(var_1, var_2, var_3, var_4) { -return $java.nms_Chunk_getSavedLightValue(this, var_1, var_2, var_3, var_4); }, "$setLightValue", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_Chunk_setLightValue(this, var_1, var_2, var_3, var_4, var_5); }, "$getBlockLightValue", function(var_1, var_2, var_3, var_4) { return $java.nms_Chunk_getBlockLightValue(this, var_1, var_2, var_3, var_4); }, "$addEntity", function(var_1) { $java.nms_Chunk_addEntity(this, var_1); }, "$removeEntity", function(var_1) { $java.nms_Chunk_removeEntity(this, var_1); -}, "$removeEntityAtIndex", function(var_1, var_2) { $java.nms_Chunk_removeEntityAtIndex(this, var_1, var_2); }, "$canBlockSeeTheSky", function(var_1, var_2, var_3) { return $java.nms_Chunk_canBlockSeeTheSky(this, var_1, var_2, var_3); }, "$getChunkBlockTileEntity", function(var_1, var_2, var_3) { return $java.nms_Chunk_getChunkBlockTileEntity(this, var_1, var_2, var_3); }, "$setChunkBlockTileEntity", function(var_1, var_2, var_3, var_4) { $java.nms_Chunk_setChunkBlockTileEntity(this, var_1, var_2, var_3, var_4); -}, "$removeChunkBlockTileEntity", function(var_1, var_2, var_3) { $java.nms_Chunk_removeChunkBlockTileEntity(this, var_1, var_2, var_3); }, "$onChunkUnload", function() { $java.nms_Chunk_onChunkUnload(this); }, "$setChunkModified", function() { $java.nms_Chunk_setChunkModified(this); }, "$getEntitiesWithinAABBForEntity", function(var_1, var_2, var_3, var_4) { $java.nms_Chunk_getEntitiesWithinAABBForEntity(this, var_1, var_2, var_3, var_4); }, "$getEntitiesOfTypeWithinAAAB", function(var_1, var_2, var_3, var_4) -{ $java.nms_Chunk_getEntitiesOfTypeWithinAAAB(this, var_1, var_2, var_3, var_4); }, "$isEmpty", function() { return $java.nms_Chunk_isEmpty(this); }, "$getAreLevelsEmpty", function(var_1, var_2) { return $java.nms_Chunk_getAreLevelsEmpty(this, var_1, var_2); }], -nms_ChunkCache, 0, jl_Object, [nms_IBlockAccess], 0, 3, 0, ["$getBlockId", function(var_1, var_2, var_3) { return $java.nms_ChunkCache_getBlockId(this, var_1, var_2, var_3); }, "$getBlockTileEntity", function(var_1, var_2, var_3) { return $java.nms_ChunkCache_getBlockTileEntity(this, var_1, var_2, var_3); }, "$getBrightness0", function(var_1, var_2, var_3, var_4) { return $java.nms_ChunkCache_getBrightness(this, var_1, var_2, var_3, var_4); }, "$getLightBrightnessForSkyBlocks", function(var_1, var_2, var_3, -var_4) { return $java.nms_ChunkCache_getLightBrightnessForSkyBlocks(this, var_1, var_2, var_3, var_4); }, "$getLightBrightness", function(var_1, var_2, var_3) { return $java.nms_ChunkCache_getLightBrightness(this, var_1, var_2, var_3); }, "$getBlockMetadata", function(var_1, var_2, var_3) { return $java.nms_ChunkCache_getBlockMetadata(this, var_1, var_2, var_3); }, "$getBlockMaterial", function(var_1, var_2, var_3) { return $java.nms_ChunkCache_getBlockMaterial(this, var_1, var_2, var_3); }, "$getBiomeGenForCoords", -function(var_1, var_2) { return $java.nms_ChunkCache_getBiomeGenForCoords(this, var_1, var_2); }, "$isBlockOpaqueCube", function(var_1, var_2, var_3) { return $java.nms_ChunkCache_isBlockOpaqueCube(this, var_1, var_2, var_3); }, "$isBlockNormalCube", function(var_1, var_2, var_3) { return $java.nms_ChunkCache_isBlockNormalCube(this, var_1, var_2, var_3); }, "$doesBlockHaveSolidTopSurface", function(var_1, var_2, var_3) { return $java.nms_ChunkCache_doesBlockHaveSolidTopSurface(this, var_1, var_2, var_3); }, -"$getWorldVec3Pool", function() { return $java.nms_ChunkCache_getWorldVec3Pool(this); }, "$isAirBlock", function(var_1, var_2, var_3) { return $java.nms_ChunkCache_isAirBlock(this, var_1, var_2, var_3); }, "$getHeight0", function() { return $java.nms_ChunkCache_getHeight(this); }, "$isBlockProvidingPowerTo", function(var_1, var_2, var_3, var_4) { return $java.nms_ChunkCache_isBlockProvidingPowerTo(this, var_1, var_2, var_3, var_4); }], -nms_ChestItemRenderHelper, 0, jl_Object, [], 0, 3, 0, 0, -$java.nms_GuiSlider, "GuiSlider", 24, nms_GuiButton, [], 0, 3, 0, ["$getHoverState", function(var_1) { return $java.nms_GuiSlider_getHoverState(this, var_1); }, "$mouseDragged", function(var_1, var_2, var_3) { $java.nms_GuiSlider_mouseDragged(this, var_1, var_2, var_3); }, "$mousePressed", function(var_1, var_2, var_3) { return $java.nms_GuiSlider_mousePressed(this, var_1, var_2, var_3); }, "$mouseReleased", function(var_1, var_2) { $java.nms_GuiSlider_mouseReleased(this, var_1, var_2); }], -$java.nms_GuiVideoSettings, 0, nms_GuiScreen, [], 0, 3, $java.nms_GuiVideoSettings_$callClinit, ["$initGui", function() { $java.nms_GuiVideoSettings_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiVideoSettings_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiVideoSettings_drawScreen(this, var_1, var_2, var_3); }], -$java.nms_GuiControls, 0, nms_GuiScreen, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiControls_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiControls_actionPerformed(this, var_1); }, "$mouseClicked", function(var_1, var_2, var_3) { $java.nms_GuiControls_mouseClicked(this, var_1, var_2, var_3); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiControls_keyTyped(this, var_1, var_2); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiControls_drawScreen(this, var_1, -var_2, var_3); }], -$java.nms_GuiScreenChatOptions, 0, nms_GuiScreen, [], 0, 3, $java.nms_GuiScreenChatOptions_$callClinit, ["$initGui", function() { $java.nms_GuiScreenChatOptions_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiScreenChatOptions_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiScreenChatOptions_drawScreen(this, var_1, var_2, var_3); }], -nms_GuiSlot, 0, jl_Object, [], 1, 3, 0, 0, -$java.nms_GuiSlotLanguage, 0, nms_GuiSlot, [], 0, 0, 0, ["$getSize", function() { return $java.nms_GuiSlotLanguage_getSize(this); }, "$elementClicked", function(var_1, var_2) { $java.nms_GuiSlotLanguage_elementClicked(this, var_1, var_2); }, "$isSelected", function(var_1) { return $java.nms_GuiSlotLanguage_isSelected(this, var_1); }, "$getContentHeight", function() { return $java.nms_GuiSlotLanguage_getContentHeight(this); }, "$drawBackground0", function() { $java.nms_GuiSlotLanguage_drawBackground(this); }, -"$drawSlot", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_GuiSlotLanguage_drawSlot(this, var_1, var_2, var_3, var_4, var_5); }], -nms_GuiSlotServer, 0, nms_GuiSlot, [], 0, 0, 0, ["$getSize", function() { return $java.nms_GuiSlotServer_getSize(this); }, "$elementClicked", function(var_1, var_2) { $java.nms_GuiSlotServer_elementClicked(this, var_1, var_2); }, "$isSelected", function(var_1) { return $java.nms_GuiSlotServer_isSelected(this, var_1); }, "$getContentHeight", function() { return $java.nms_GuiSlotServer_getContentHeight(this); }, "$drawBackground0", function() { $java.nms_GuiSlotServer_drawBackground(this); }, "$drawSlot", function(var_1, -var_2, var_3, var_4, var_5) { $java.nms_GuiSlotServer_drawSlot(this, var_1, var_2, var_3, var_4, var_5); }], -$java.nms_GuiScreenServerList, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiScreenServerList_updateScreen(this); }, "$initGui", function() { $java.nms_GuiScreenServerList_initGui(this); }, "$onGuiClosed", function() { $java.nms_GuiScreenServerList_onGuiClosed(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiScreenServerList_actionPerformed(this, var_1); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiScreenServerList_keyTyped(this, var_1, var_2); }, "$mouseClicked", -function(var_1, var_2, var_3) { $java.nms_GuiScreenServerList_mouseClicked(this, var_1, var_2, var_3); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiScreenServerList_drawScreen(this, var_1, var_2, var_3); }], -$java.nms_GuiScreenAddServer, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiScreenAddServer_updateScreen(this); }, "$initGui", function() { $java.nms_GuiScreenAddServer_initGui(this); }, "$onGuiClosed", function() { $java.nms_GuiScreenAddServer_onGuiClosed(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiScreenAddServer_actionPerformed(this, var_1); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiScreenAddServer_keyTyped(this, var_1, var_2); }, "$mouseClicked", -function(var_1, var_2, var_3) { $java.nms_GuiScreenAddServer_mouseClicked(this, var_1, var_2, var_3); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiScreenAddServer_drawScreen(this, var_1, var_2, var_3); }], -nms_GuiSlider2, "GuiSlider2", 24, nms_GuiButton, [], 0, 3, 0, ["$getHoverState", function(var_1) { return $java.nms_GuiSlider2_getHoverState(this, var_1); }, "$mouseDragged", function(var_1, var_2, var_3) { $java.nms_GuiSlider2_mouseDragged(this, var_1, var_2, var_3); }, "$mousePressed", function(var_1, var_2, var_3) { return $java.nms_GuiSlider2_mousePressed(this, var_1, var_2, var_3); }, "$mouseReleased", function(var_1, var_2) { $java.nms_GuiSlider2_mouseReleased(this, var_1, var_2); }], -$java.nms_WorldSavedData, 0, jl_Object, [], 1, 3, 0, 0, -nms_MapData, "MapData", 24, $java.nms_WorldSavedData, [], 0, 3, 0, 0, -$java.nms_MapCoord, "MapCoord", 24, jl_Object, [], 0, 3, 0, 0, -$java.ju_Formatter$FormatWriter, 0, jl_Object, [], 0, 0, 0, 0, -ju_LinkedHashMap$2, 0, ju_AbstractCollection, [], 0, 0, 0, ["$size2", function() { return $java.ju_LinkedHashMap$2_size(this); }, "$iterator", function() { return $java.ju_LinkedHashMap$2_iterator(this); }], -ju_FormatterClosedException, "FormatterClosedException", 8, jl_IllegalStateException, [], 0, 3, 0, 0, -otcit_FloatAnalyzer, 0, jl_Object, [], 4, 3, 0, 0, -jur_MatchResultImpl, 0, jl_Object, [$java.jur_MatchResult], 0, 0, 0, 0, -$java.nms_GuiConnecting, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiConnecting_updateScreen(this); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiConnecting_keyTyped(this, var_1, var_2); }, "$initGui", function() { $java.nms_GuiConnecting_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiConnecting_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiConnecting_drawScreen(this, var_1, var_2, var_3); }]]); -$rt_metadata([$java.nms_ISidedInventory, 0, jl_Object, [nms_IInventory], 3, 3, 0, 0, -nms_TileEntityFurnace, "TileEntityFurnace", 24, nms_TileEntity, [$java.nms_ISidedInventory], 0, 3, 0, ["$getSizeInventory", function() { return $java.nms_TileEntityFurnace_getSizeInventory(this); }, "$getStackInSlot", function(var_1) { return $java.nms_TileEntityFurnace_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_TileEntityFurnace_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_TileEntityFurnace_setInventorySlotContents(this, -var_1, var_2); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityFurnace_readFromNBT(this, var_1); }, "$writeToNBT", function(var_1) { $java.nms_TileEntityFurnace_writeToNBT(this, var_1); }, "$getInventoryStackLimit", function() { return $java.nms_TileEntityFurnace_getInventoryStackLimit(this); }, "$updateEntity0", function() { $java.nms_TileEntityFurnace_updateEntity(this); }, "$isStackValidForSlot", function(var_1, var_2) { return $java.nms_TileEntityFurnace_isStackValidForSlot(this, var_1, var_2); -}, "$getAccessibleSlotsFromSide", function(var_1) { return $java.nms_TileEntityFurnace_getAccessibleSlotsFromSide(this, var_1); }, "$canInsertItem", function(var_1, var_2, var_3) { return $java.nms_TileEntityFurnace_canInsertItem(this, var_1, var_2, var_3); }, "$canExtractItem", function(var_1, var_2, var_3) { return $java.nms_TileEntityFurnace_canExtractItem(this, var_1, var_2, var_3); }], -nms_TileEntityRecordPlayer, "TileEntityRecordPlayer", 24, nms_TileEntity, [], 0, 3, 0, ["$readFromNBT", function(var_1) { $java.nms_TileEntityRecordPlayer_readFromNBT(this, var_1); }, "$writeToNBT", function(var_1) { $java.nms_TileEntityRecordPlayer_writeToNBT(this, var_1); }], -nms_TileEntityDispenser, "TileEntityDispenser", 24, nms_TileEntity, [nms_IInventory], 0, 3, 0, ["$getSizeInventory", function() { return $java.nms_TileEntityDispenser_getSizeInventory(this); }, "$getStackInSlot", function(var_1) { return $java.nms_TileEntityDispenser_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_TileEntityDispenser_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_TileEntityDispenser_setInventorySlotContents(this, -var_1, var_2); }, "$getInvName", function() { return $java.nms_TileEntityDispenser_getInvName(this); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityDispenser_readFromNBT(this, var_1); }, "$writeToNBT", function(var_1) { $java.nms_TileEntityDispenser_writeToNBT(this, var_1); }, "$getInventoryStackLimit", function() { return $java.nms_TileEntityDispenser_getInventoryStackLimit(this); }, "$isStackValidForSlot", function(var_1, var_2) { return $java.nms_TileEntityDispenser_isStackValidForSlot(this, var_1, -var_2); }], -nms_TileEntityDropper, "TileEntityDropper", 24, nms_TileEntityDispenser, [], 0, 3, 0, ["$getInvName", function() { return $java.nms_TileEntityDropper_getInvName(this); }], -nms_TileEntityMobSpawner, "TileEntityMobSpawner", 24, nms_TileEntity, [], 0, 3, 0, ["$readFromNBT", function(var_1) { $java.nms_TileEntityMobSpawner_readFromNBT(this, var_1); }, "$updateEntity0", function() { $java.nms_TileEntityMobSpawner_updateEntity(this); }], -nms_TileEntityNote, "TileEntityNote", 24, nms_TileEntity, [], 0, 3, 0, ["$writeToNBT", function(var_1) { $java.nms_TileEntityNote_writeToNBT(this, var_1); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityNote_readFromNBT(this, var_1); }], -nms_TileEntityBrewingStand, "TileEntityBrewingStand", 24, nms_TileEntity, [$java.nms_ISidedInventory], 0, 3, 0, ["$getSizeInventory", function() { return $java.nms_TileEntityBrewingStand_getSizeInventory(this); }, "$updateEntity0", function() { $java.nms_TileEntityBrewingStand_updateEntity(this); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityBrewingStand_readFromNBT(this, var_1); }, "$writeToNBT", function(var_1) { $java.nms_TileEntityBrewingStand_writeToNBT(this, var_1); }, "$getStackInSlot", function(var_1) -{ return $java.nms_TileEntityBrewingStand_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_TileEntityBrewingStand_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_TileEntityBrewingStand_setInventorySlotContents(this, var_1, var_2); }, "$getInventoryStackLimit", function() { return $java.nms_TileEntityBrewingStand_getInventoryStackLimit(this); }, "$isStackValidForSlot", function(var_1, var_2) { return $java.nms_TileEntityBrewingStand_isStackValidForSlot(this, -var_1, var_2); }, "$getAccessibleSlotsFromSide", function(var_1) { return $java.nms_TileEntityBrewingStand_getAccessibleSlotsFromSide(this, var_1); }, "$canInsertItem", function(var_1, var_2, var_3) { return $java.nms_TileEntityBrewingStand_canInsertItem(this, var_1, var_2, var_3); }, "$canExtractItem", function(var_1, var_2, var_3) { return $java.nms_TileEntityBrewingStand_canExtractItem(this, var_1, var_2, var_3); }], -nms_TileEntityCommandBlock, "TileEntityCommandBlock", 24, nms_TileEntity, [nms_ICommandSender], 0, 3, 0, ["$writeToNBT", function(var_1) { $java.nms_TileEntityCommandBlock_writeToNBT(this, var_1); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityCommandBlock_readFromNBT(this, var_1); }], -nms_TileEntityDaylightDetector, "TileEntityDaylightDetector", 24, nms_TileEntity, [], 0, 3, 0, ["$updateEntity0", function() { $java.nms_TileEntityDaylightDetector_updateEntity(this); }], -nms_TileEntityHopper, "TileEntityHopper", 24, nms_TileEntity, [$java.nms_Hopper], 0, 3, 0, ["$readFromNBT", function(var_1) { $java.nms_TileEntityHopper_readFromNBT(this, var_1); }, "$writeToNBT", function(var_1) { $java.nms_TileEntityHopper_writeToNBT(this, var_1); }, "$onInventoryChanged", function() { $java.nms_TileEntityHopper_onInventoryChanged(this); }, "$getSizeInventory", function() { return $java.nms_TileEntityHopper_getSizeInventory(this); }, "$getStackInSlot", function(var_1) { return $java.nms_TileEntityHopper_getStackInSlot(this, -var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_TileEntityHopper_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_TileEntityHopper_setInventorySlotContents(this, var_1, var_2); }, "$getInvName", function() { return $java.nms_TileEntityHopper_getInvName(this); }, "$isInvNameLocalized", function() { return $java.nms_TileEntityHopper_isInvNameLocalized(this); }, "$getInventoryStackLimit", function() { return $java.nms_TileEntityHopper_getInventoryStackLimit(this); -}, "$isUseableByPlayer", function(var_1) { return $java.nms_TileEntityHopper_isUseableByPlayer(this, var_1); }, "$openChest", function() { $java.nms_TileEntityHopper_openChest(this); }, "$closeChest", function() { $java.nms_TileEntityHopper_closeChest(this); }, "$isStackValidForSlot", function(var_1, var_2) { return $java.nms_TileEntityHopper_isStackValidForSlot(this, var_1, var_2); }, "$updateEntity0", function() { $java.nms_TileEntityHopper_updateEntity(this); }, "$getXPos", function() { return $java.nms_TileEntityHopper_getXPos(this); -}, "$getYPos", function() { return $java.nms_TileEntityHopper_getYPos(this); }, "$getZPos", function() { return $java.nms_TileEntityHopper_getZPos(this); }], -nms_TileEntityComparator, "TileEntityComparator", 24, nms_TileEntity, [], 0, 3, 0, ["$writeToNBT", function(var_1) { $java.nms_TileEntityComparator_writeToNBT(this, var_1); }, "$readFromNBT", function(var_1) { $java.nms_TileEntityComparator_readFromNBT(this, var_1); }], -$java.ju_LinkedHashMap$AbstractMapIterator, 0, jl_Object, [], 0, 0, 0, ["$hasNext", function() { return $java.ju_LinkedHashMap$AbstractMapIterator_hasNext(this); }, "$remove", function() { $java.ju_LinkedHashMap$AbstractMapIterator_remove(this); }], -$java.ju_LinkedHashMap$ValueIterator, 0, $java.ju_LinkedHashMap$AbstractMapIterator, [ju_Iterator], 0, 0, 0, ["$next", function() { return $java.ju_LinkedHashMap$ValueIterator_next(this); }], -$java.jnci_BufferedDecoder$Controller, 0, jl_Object, [], 0, 3, 0, 0, -otcit_DateTimeZoneBuilder, 0, jl_Object, [], 0, 3, 0, 0, -nms_DamageSource, 0, jl_Object, [], 0, 3, 0, ["$getSourceOfDamage", function() { return $java.nms_DamageSource_getSourceOfDamage(this); }, "$getEntity", function() { return $java.nms_DamageSource_getEntity(this); }], -$java.nms_GuiDisconnected, 0, nms_GuiScreen, [], 0, 3, 0, ["$keyTyped", function(var_1, var_2) { $java.nms_GuiDisconnected_keyTyped(this, var_1, var_2); }, "$initGui", function() { $java.nms_GuiDisconnected_initGui(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiDisconnected_actionPerformed(this, var_1); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiDisconnected_drawScreen(this, var_1, var_2, var_3); }], -ju_IllegalFormatException, 0, jl_IllegalArgumentException, [], 0, 3, 0, 0, -$java.ju_UnknownFormatConversionException, "UnknownFormatConversionException", 8, ju_IllegalFormatException, [], 0, 3, 0, 0, -nms_EnchantmentHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_MapStorage, 0, jl_Object, [], 0, 3, 0, 0, -$java.nms_INetworkManager, 0, jl_Object, [], 3, 3, 0, 0, -nle_WebsocketNetworkManager, 0, jl_Object, [$java.nms_INetworkManager], 0, 3, 0, 0, -$java.ju_DuplicateFormatFlagsException, "DuplicateFormatFlagsException", 8, ju_IllegalFormatException, [], 0, 3, 0, 0, -jl_Boolean, 0, jl_Object, [ji_Serializable, jl_Comparable], 0, 3, 0, 0, -$java.ju_IllegalFormatPrecisionException, "IllegalFormatPrecisionException", 8, ju_IllegalFormatException, [], 0, 3, 0, 0, -$java.ju_IllegalFormatCodePointException, "IllegalFormatCodePointException", 8, ju_IllegalFormatException, [], 0, 3, 0, 0, -$java.ju_IllegalFormatConversionException, "IllegalFormatConversionException", 8, ju_IllegalFormatException, [], 0, 3, 0, 0, -$java.ju_Formattable, 0, jl_Object, [], 3, 3, 0, 0, -$java.ju_FormatFlagsConversionMismatchException, "FormatFlagsConversionMismatchException", 8, ju_IllegalFormatException, [], 0, 3, 0, 0, -$java.ju_IllegalFormatFlagsException, "IllegalFormatFlagsException", 8, ju_IllegalFormatException, [], 0, 3, 0, 0, -$java.ju_MissingFormatWidthException, "MissingFormatWidthException", 8, ju_IllegalFormatException, [], 0, 3, 0, 0, -$java.nms_IEnchantmentModifier, 0, jl_Object, [], 3, 0, 0, 0, -nms_EnchantmentModifierDamage, 0, jl_Object, [$java.nms_IEnchantmentModifier], 4, 0, 0, ["$calculateModifier", function(var_1, var_2) { $java.nms_EnchantmentModifierDamage_calculateModifier(this, var_1, var_2); }], -nms_EnchantmentModifierLiving, 0, jl_Object, [$java.nms_IEnchantmentModifier], 4, 0, 0, ["$calculateModifier", function(var_1, var_2) { $java.nms_EnchantmentModifierLiving_calculateModifier(this, var_1, var_2); }], -$java.otjw_WebSocket, 0, jl_Object, [otj_JSObject], 1, 3, 0, 0, -nlea_EaglerAdapterImpl2$12, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return $java.nlea_EaglerAdapterImpl2$12_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$13, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return $java.nlea_EaglerAdapterImpl2$13_handleEvent$exported$0(this, var_1); }], -nlea_EaglerAdapterImpl2$14, 0, jl_Object, [otjde_EventListener], 0, 0, 0, ["$handleEvent$exported$0", function(var_1) { return $java.nlea_EaglerAdapterImpl2$14_handleEvent$exported$0(this, var_1); }], -ju_AbstractMap$KeySet, 0, ju_AbstractSet, [], 0, 0, 0, ["$iterator", function() { return $java.ju_AbstractMap$KeySet_iterator(this); }, "$size2", function() { return $java.ju_AbstractMap$KeySet_size(this); }], -nms_EnumOptionsHelper, 0, jl_Object, [], 0, 0, nms_EnumOptionsHelper_$callClinit, 0, -nms_EnumSkyBlock, 0, jl_Enum, [], 12, 3, 0, 0, -$java.jur_Matcher$1, "Matcher$1", 9, jl_Object, [], 0, 0, 0, ["$toString", function() { return $java.jur_Matcher$1_toString(this); }], -$java.ju_AbstractMap$KeySet$1, 0, jl_Object, [ju_Iterator], 0, 0, 0, ["$hasNext", function() { return $java.ju_AbstractMap$KeySet$1_hasNext(this); }, "$next", function() { return $java.ju_AbstractMap$KeySet$1_next(this); }, "$remove", function() { $java.ju_AbstractMap$KeySet$1_remove(this); }], -nms_ModelEnderCrystal, 0, nms_ModelBase, [], 0, 3, 0, 0, -nms_EnumArt, "EnumArt", 24, jl_Enum, [], 12, 3, 0, 0, -$java.nle_WebsocketNetworkManager$ByteBufferDirectInputStream, 0, ji_InputStream, [], 0, 0, 0, ["$read1", function() { return $java.nle_WebsocketNetworkManager$ByteBufferDirectInputStream_read(this); }, "$available", function() { return $java.nle_WebsocketNetworkManager$ByteBufferDirectInputStream_available(this); }], -nms_PacketCount, 0, jl_Object, [], 0, 3, 0, 0, -ju_TreeMap$EntrySet, 0, ju_AbstractSet, [], 0, 0, 0, 0]); -$rt_metadata([jl_ReflectiveOperationException, 0, jl_Exception, [], 0, 3, 0, 0, -jl_InstantiationException, "InstantiationException", 15, jl_ReflectiveOperationException, [], 0, 3, 0, 0, -jn_InvalidMarkException, "InvalidMarkException", 10, jl_IllegalStateException, [], 0, 3, 0, 0, -$java.jur_IntArrHash, 0, jl_Object, [], 0, 0, 0, 0, -nms_IEntitySelector, 0, jl_Object, [], 3, 3, 0, 0, -nms_EntityWitherAttackFilter, 0, jl_Object, [nms_IEntitySelector], 4, 0, 0, ["$isEntityApplicable", function(var_1) { return $java.nms_EntityWitherAttackFilter_isEntityApplicable(this, var_1); }], -nms_WorldType, 0, jl_Object, [], 0, 3, 0, 0, -nms_EnumGameType, 0, jl_Enum, [], 12, 3, 0, 0, -nms_InventoryCrafting, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$getStackInSlot", function(var_1) { return $java.nms_InventoryCrafting_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_InventoryCrafting_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_InventoryCrafting_setInventorySlotContents(this, var_1, var_2); }, "$getInventoryStackLimit", function() { return $java.nms_InventoryCrafting_getInventoryStackLimit(this); -}, "$onInventoryChanged", function() { $java.nms_InventoryCrafting_onInventoryChanged(this); }], -nms_ContainerSheep, 0, nms_Container, [], 0, 0, 0, 0, -nms_EntityDragonPart, "EntityDragonPart", 24, nms_Entity, [], 0, 3, 0, ["$entityInit", function() { $java.nms_EntityDragonPart_entityInit(this); }, "$canBeCollidedWith", function() { return $java.nms_EntityDragonPart_canBeCollidedWith(this); }, "$attackEntityFrom", function(var_1, var_2) { return $java.nms_EntityDragonPart_attackEntityFrom(this, var_1, var_2); }, "$isEntityEqual", function(var_1) { return $java.nms_EntityDragonPart_isEntityEqual(this, var_1); }], -nms_GameRules, 0, jl_Object, [], 0, 3, 0, 0, -$java.ju_TreeMap$EntryIterator, 0, jl_Object, [ju_Iterator], 0, 0, 0, 0, -nms_CombatTracker, 0, jl_Object, [], 0, 3, 0, 0, -nms_EntityLookHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_EntityMoveHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_EntityJumpHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_EntityBodyHelper, 0, jl_Object, [], 0, 3, 0, 0, -nms_EntitySenses, 0, jl_Object, [], 0, 3, 0, 0, -cjj_GZIPInputStream, 0, cjj_InflaterInputStream, [], 0, 3, 0, 0, -nms_GuiWinGame, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiWinGame_updateScreen(this); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiWinGame_keyTyped(this, var_1, var_2); }, "$initGui", function() { $java.nms_GuiWinGame_initGui(this); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiWinGame_drawScreen(this, var_1, var_2, var_3); }], -$java.nms_NpcMerchant, 0, jl_Object, [nms_IMerchant], 0, 3, 0, ["$getCustomer", function() { return $java.nms_NpcMerchant_getCustomer(this); }, "$setCustomer", function(var_1) { $java.nms_NpcMerchant_setCustomer(this, var_1); }, "$getRecipes", function(var_1) { return $java.nms_NpcMerchant_getRecipes(this, var_1); }, "$setRecipes", function(var_1) { $java.nms_NpcMerchant_setRecipes(this, var_1); }, "$useRecipe", function(var_1) { $java.nms_NpcMerchant_useRecipe(this, var_1); }], -nms_EntityPickupFX, "EntityPickupFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityPickupFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityPickupFX_onUpdate(this); }, "$getFXLayer", function() { return $java.nms_EntityPickupFX_getFXLayer(this); }], -$java.nms_WorldSettings, 0, jl_Object, [], 4, 3, 0, 0, -$java.nms_GuiDownloadTerrain, 0, nms_GuiScreen, [], 0, 3, 0, ["$keyTyped", function(var_1, var_2) { $java.nms_GuiDownloadTerrain_keyTyped(this, var_1, var_2); }, "$initGui", function() { $java.nms_GuiDownloadTerrain_initGui(this); }, "$updateScreen", function() { $java.nms_GuiDownloadTerrain_updateScreen(this); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiDownloadTerrain_drawScreen(this, var_1, var_2, var_3); }], -nms_GuiMerchant, 0, nms_GuiContainer, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiMerchant_initGui(this); }, "$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiMerchant_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$updateScreen", function() { $java.nms_GuiMerchant_updateScreen(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiMerchant_actionPerformed(this, var_1); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiMerchant_drawGuiContainerBackgroundLayer(this, -var_1, var_2, var_3); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiMerchant_drawScreen(this, var_1, var_2, var_3); }], -nms_MerchantRecipeList, 0, ju_ArrayList, [], 0, 3, 0, 0, -nms_WorldProviderSurface, 0, nms_WorldProvider, [], 0, 3, 0, 0, -nms_EntityCrit2FX, "EntityCrit2FX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityCrit2FX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityCrit2FX_onUpdate(this); }, "$getFXLayer", function() { return $java.nms_EntityCrit2FX_getFXLayer(this); }], -nms_ScoreObjectiveCriteria, 0, jl_Object, [], 3, 3, 0, 0, -nms_Explosion, 0, jl_Object, [], 0, 3, 0, 0, -$java.nms_GameRuleValue, "GameRuleValue", 24, jl_Object, [], 0, 0, 0, 0, -$java.nms_InventoryMerchant, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$getStackInSlot", function(var_1) { return $java.nms_InventoryMerchant_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_InventoryMerchant_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_InventoryMerchant_setInventorySlotContents(this, var_1, var_2); }, "$getInventoryStackLimit", function() { return $java.nms_InventoryMerchant_getInventoryStackLimit(this); -}, "$onInventoryChanged", function() { $java.nms_InventoryMerchant_onInventoryChanged(this); }], -nms_MerchantRecipe, "MerchantRecipe", 24, jl_Object, [], 0, 3, 0, 0, -nms_WorldProviderHell, 0, nms_WorldProvider, [], 0, 3, 0, ["$registerWorldChunkManager", function() { $java.nms_WorldProviderHell_registerWorldChunkManager(this); }, "$getFogColor0", function(var_1, var_2) { return $java.nms_WorldProviderHell_getFogColor(this, var_1, var_2); }, "$generateLightBrightnessTable", function() { $java.nms_WorldProviderHell_generateLightBrightnessTable(this); }, "$isSurfaceWorld", function() { return $java.nms_WorldProviderHell_isSurfaceWorld(this); }, "$calculateCelestialAngle", function(var_1, -var_2) { return $java.nms_WorldProviderHell_calculateCelestialAngle(this, var_1, var_2); }, "$canRespawnHere", function() { return $java.nms_WorldProviderHell_canRespawnHere(this); }, "$doesXZShowFog", function(var_1, var_2) { return $java.nms_WorldProviderHell_doesXZShowFog(this, var_1, var_2); }], -nms_WorldProviderEnd, 0, nms_WorldProvider, [], 0, 3, 0, ["$registerWorldChunkManager", function() { $java.nms_WorldProviderEnd_registerWorldChunkManager(this); }, "$calculateCelestialAngle", function(var_1, var_2) { return $java.nms_WorldProviderEnd_calculateCelestialAngle(this, var_1, var_2); }, "$calcSunriseSunsetColors", function(var_1, var_2) { return $java.nms_WorldProviderEnd_calcSunriseSunsetColors(this, var_1, var_2); }, "$getFogColor0", function(var_1, var_2) { return $java.nms_WorldProviderEnd_getFogColor(this, -var_1, var_2); }, "$isSkyColored", function() { return $java.nms_WorldProviderEnd_isSkyColored(this); }, "$canRespawnHere", function() { return $java.nms_WorldProviderEnd_canRespawnHere(this); }, "$isSurfaceWorld", function() { return $java.nms_WorldProviderEnd_isSurfaceWorld(this); }, "$getCloudHeight", function() { return $java.nms_WorldProviderEnd_getCloudHeight(this); }, "$doesXZShowFog", function(var_1, var_2) { return $java.nms_WorldProviderEnd_doesXZShowFog(this, var_1, var_2); }], -$java.nms_ScoreDummyCriteria, "ScoreDummyCriteria", 24, jl_Object, [nms_ScoreObjectiveCriteria], 0, 3, 0, 0, -$java.nms_ScoreHealthCriteria, "ScoreHealthCriteria", 24, $java.nms_ScoreDummyCriteria, [], 0, 3, 0, 0, -nms_InventoryEnderChest, 0, $java.nms_InventoryBasic, [], 0, 3, 0, ["$isUseableByPlayer", function(var_1) { return $java.nms_InventoryEnderChest_isUseableByPlayer(this, var_1); }, "$openChest", function() { $java.nms_InventoryEnderChest_openChest(this); }, "$closeChest", function() { $java.nms_InventoryEnderChest_closeChest(this); }], -nms_ContainerPlayer, 0, nms_Container, [], 0, 3, 0, ["$onCraftMatrixChanged", function(var_1) { $java.nms_ContainerPlayer_onCraftMatrixChanged(this, var_1); }, "$onCraftGuiClosed", function(var_1) { nms_ContainerPlayer_onCraftGuiClosed(this, var_1); }, "$canInteractWith", function(var_1) { return $java.nms_ContainerPlayer_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, var_2) { return $java.nms_ContainerPlayer_transferStackInSlot(this, var_1, var_2); }, "$func_94530_a", function(var_1, -var_2) { return $java.nms_ContainerPlayer_func_94530_a(this, var_1, var_2); }], -nms_InventoryCraftResult, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$getStackInSlot", function(var_1) { return $java.nms_InventoryCraftResult_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_InventoryCraftResult_decrStackSize(this, var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_InventoryCraftResult_setInventorySlotContents(this, var_1, var_2); }, "$getInventoryStackLimit", function() { return $java.nms_InventoryCraftResult_getInventoryStackLimit(this); -}, "$onInventoryChanged", function() { $java.nms_InventoryCraftResult_onInventoryChanged(this); }], -$java.nms_SlotCrafting, "SlotCrafting", 24, $java.nms_Slot, [], 0, 3, 0, ["$isItemValid", function(var_1) { return $java.nms_SlotCrafting_isItemValid(this, var_1); }, "$decrStackSize0", function(var_1) { return $java.nms_SlotCrafting_decrStackSize(this, var_1); }, "$onCrafting", function(var_1, var_2) { $java.nms_SlotCrafting_onCrafting(this, var_1, var_2); }, "$onPickupFromSlot", function(var_1, var_2) { $java.nms_SlotCrafting_onPickupFromSlot(this, var_1, var_2); }], -$java.nms_SlotArmor, "SlotArmor", 24, $java.nms_Slot, [], 0, 0, 0, ["$getSlotStackLimit", function() { return $java.nms_SlotArmor_getSlotStackLimit(this); }, "$isItemValid", function(var_1) { return $java.nms_SlotArmor_isItemValid(this, var_1); }, "$getBackgroundIconIndex", function() { return $java.nms_SlotArmor_getBackgroundIconIndex(this); }], -nms_CraftingManager, 0, jl_Object, [], 0, 3, nms_CraftingManager_$callClinit, 0, -$java.nms_IChunkProvider, 0, jl_Object, [], 3, 3, 0, 0, -nms_ChunkProviderClient, 0, jl_Object, [$java.nms_IChunkProvider], 0, 3, 0, 0, -nms_LongHashMap, 0, jl_Object, [], 0, 3, 0, 0, -nms_EmptyChunk, 0, nms_Chunk, [], 0, 3, 0, ["$getHeightValue", function(var_1, var_2) { return $java.nms_EmptyChunk_getHeightValue(this, var_1, var_2); }, "$generateHeightMap", function() { $java.nms_EmptyChunk_generateHeightMap(this); }, "$generateSkylightMap", function() { $java.nms_EmptyChunk_generateSkylightMap(this); }, "$getBlockID", function(var_1, var_2, var_3) { return $java.nms_EmptyChunk_getBlockID(this, var_1, var_2, var_3); }, "$getBlockLightOpacity", function(var_1, var_2, var_3) { return $java.nms_EmptyChunk_getBlockLightOpacity(this, -var_1, var_2, var_3); }, "$setBlockIDWithMetadata", function(var_1, var_2, var_3, var_4, var_5) { return $java.nms_EmptyChunk_setBlockIDWithMetadata(this, var_1, var_2, var_3, var_4, var_5); }, "$getBlockMetadata", function(var_1, var_2, var_3) { return $java.nms_EmptyChunk_getBlockMetadata(this, var_1, var_2, var_3); }, "$setBlockMetadata", function(var_1, var_2, var_3, var_4) { return $java.nms_EmptyChunk_setBlockMetadata(this, var_1, var_2, var_3, var_4); }, "$getSavedLightValue", function(var_1, var_2, var_3, -var_4) { return $java.nms_EmptyChunk_getSavedLightValue(this, var_1, var_2, var_3, var_4); }, "$setLightValue", function(var_1, var_2, var_3, var_4, var_5) { $java.nms_EmptyChunk_setLightValue(this, var_1, var_2, var_3, var_4, var_5); }, "$getBlockLightValue", function(var_1, var_2, var_3, var_4) { return $java.nms_EmptyChunk_getBlockLightValue(this, var_1, var_2, var_3, var_4); }, "$addEntity", function(var_1) { $java.nms_EmptyChunk_addEntity(this, var_1); }, "$removeEntity", function(var_1) { $java.nms_EmptyChunk_removeEntity(this, -var_1); }, "$removeEntityAtIndex", function(var_1, var_2) { $java.nms_EmptyChunk_removeEntityAtIndex(this, var_1, var_2); }, "$canBlockSeeTheSky", function(var_1, var_2, var_3) { return $java.nms_EmptyChunk_canBlockSeeTheSky(this, var_1, var_2, var_3); }, "$getChunkBlockTileEntity", function(var_1, var_2, var_3) { return $java.nms_EmptyChunk_getChunkBlockTileEntity(this, var_1, var_2, var_3); }, "$setChunkBlockTileEntity", function(var_1, var_2, var_3, var_4) { $java.nms_EmptyChunk_setChunkBlockTileEntity(this, -var_1, var_2, var_3, var_4); }, "$removeChunkBlockTileEntity", function(var_1, var_2, var_3) { $java.nms_EmptyChunk_removeChunkBlockTileEntity(this, var_1, var_2, var_3); }, "$onChunkUnload", function() { $java.nms_EmptyChunk_onChunkUnload(this); }, "$setChunkModified", function() { $java.nms_EmptyChunk_setChunkModified(this); }, "$getEntitiesWithinAABBForEntity", function(var_1, var_2, var_3, var_4) { $java.nms_EmptyChunk_getEntitiesWithinAABBForEntity(this, var_1, var_2, var_3, var_4); }, "$getEntitiesOfTypeWithinAAAB", -function(var_1, var_2, var_3, var_4) { $java.nms_EmptyChunk_getEntitiesOfTypeWithinAAAB(this, var_1, var_2, var_3, var_4); }, "$isEmpty", function() { return $java.nms_EmptyChunk_isEmpty(this); }, "$getAreLevelsEmpty", function(var_1, var_2) { return $java.nms_EmptyChunk_getAreLevelsEmpty(this, var_1, var_2); }], -nms_LongHashMapEntry, 0, jl_Object, [], 0, 0, 0, 0, -nms_RecipesTools, 0, jl_Object, [], 0, 3, 0, 0]); -$rt_metadata([nms_RecipesWeapons, 0, jl_Object, [], 0, 3, 0, 0, -nms_RecipesIngots, 0, jl_Object, [], 0, 3, 0, 0, -nms_RecipesFood, 0, jl_Object, [], 0, 3, 0, 0, -nms_RecipesCrafting, 0, jl_Object, [], 0, 3, 0, 0, -nms_RecipesArmor, 0, jl_Object, [], 0, 3, 0, 0, -nms_RecipesDyes, 0, jl_Object, [], 0, 3, 0, 0, -$java.nms_IRecipe, 0, jl_Object, [], 3, 3, 0, 0, -nms_RecipesArmorDyes, "RecipesArmorDyes", 24, jl_Object, [$java.nms_IRecipe], 0, 3, 0, ["$matches0", function(var_1, var_2) { return $java.nms_RecipesArmorDyes_matches(this, var_1, var_2); }, "$getCraftingResult", function(var_1) { return $java.nms_RecipesArmorDyes_getCraftingResult(this, var_1); }, "$getRecipeSize", function() { return $java.nms_RecipesArmorDyes_getRecipeSize(this); }], -nms_RecipesMapCloning, "RecipesMapCloning", 24, jl_Object, [$java.nms_IRecipe], 0, 3, 0, ["$matches0", function(var_1, var_2) { return $java.nms_RecipesMapCloning_matches(this, var_1, var_2); }, "$getCraftingResult", function(var_1) { return $java.nms_RecipesMapCloning_getCraftingResult(this, var_1); }, "$getRecipeSize", function() { return $java.nms_RecipesMapCloning_getRecipeSize(this); }], -$java.nms_ShapedRecipes, "ShapedRecipes", 24, jl_Object, [$java.nms_IRecipe], 0, 3, 0, ["$matches0", function(var_1, var_2) { return $java.nms_ShapedRecipes_matches(this, var_1, var_2); }, "$getCraftingResult", function(var_1) { return $java.nms_ShapedRecipes_getCraftingResult(this, var_1); }, "$getRecipeSize", function() { return $java.nms_ShapedRecipes_getRecipeSize(this); }], -nms_RecipesMapExtending, "RecipesMapExtending", 24, $java.nms_ShapedRecipes, [], 0, 3, 0, ["$matches0", function(var_1, var_2) { return $java.nms_RecipesMapExtending_matches(this, var_1, var_2); }, "$getCraftingResult", function(var_1) { return $java.nms_RecipesMapExtending_getCraftingResult(this, var_1); }], -nms_RecipeFireworks, "RecipeFireworks", 24, jl_Object, [$java.nms_IRecipe], 0, 3, 0, ["$matches0", function(var_1, var_2) { return $java.nms_RecipeFireworks_matches(this, var_1, var_2); }, "$getCraftingResult", function(var_1) { return $java.nms_RecipeFireworks_getCraftingResult(this, var_1); }, "$getRecipeSize", function() { return $java.nms_RecipeFireworks_getRecipeSize(this); }], -$java.nms_RecipeSorter, 0, jl_Object, [ju_Comparator], 0, 0, 0, ["$compare", function(var_1, var_2) { return $java.nms_RecipeSorter_compare(this, var_1, var_2); }], -$java.nms_ExtendedBlockStorage, 0, jl_Object, [], 0, 3, 0, 0, -nms_GuiChest, 0, nms_GuiContainer, [], 0, 3, 0, ["$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiChest_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiChest_drawGuiContainerBackgroundLayer(this, var_1, var_2, var_3); }], -nms_GuiCrafting, 0, nms_GuiContainer, [], 0, 3, 0, ["$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiCrafting_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiCrafting_drawGuiContainerBackgroundLayer(this, var_1, var_2, var_3); }], -nms_GuiBeacon, 0, nms_GuiContainer, [], 0, 3, 0, ["$initGui", function() { $java.nms_GuiBeacon_initGui(this); }, "$updateScreen", function() { $java.nms_GuiBeacon_updateScreen(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiBeacon_actionPerformed(this, var_1); }, "$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiBeacon_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiBeacon_drawGuiContainerBackgroundLayer(this, -var_1, var_2, var_3); }], -nms_GuiRepair, "GuiRepair", 24, nms_GuiContainer, [$java.nms_ICrafting], 0, 3, 0, ["$initGui", function() { $java.nms_GuiRepair_initGui(this); }, "$onGuiClosed", function() { $java.nms_GuiRepair_onGuiClosed(this); }, "$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiRepair_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiRepair_keyTyped(this, var_1, var_2); }, "$mouseClicked", function(var_1, var_2, var_3) { $java.nms_GuiRepair_mouseClicked(this, -var_1, var_2, var_3); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiRepair_drawScreen(this, var_1, var_2, var_3); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiRepair_drawGuiContainerBackgroundLayer(this, var_1, var_2, var_3); }, "$sendContainerAndContentsToPlayer", function(var_1, var_2) { $java.nms_GuiRepair_sendContainerAndContentsToPlayer(this, var_1, var_2); }, "$sendSlotContents", function(var_1, var_2, var_3) { $java.nms_GuiRepair_sendSlotContents(this, -var_1, var_2, var_3); }, "$sendProgressBarUpdate", function(var_1, var_2, var_3) { $java.nms_GuiRepair_sendProgressBarUpdate(this, var_1, var_2, var_3); }], -nms_GuiDispenser, 0, nms_GuiContainer, [], 0, 3, 0, ["$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiDispenser_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiDispenser_drawGuiContainerBackgroundLayer(this, var_1, var_2, var_3); }], -nms_GuiHopper, 0, nms_GuiContainer, [], 0, 3, 0, ["$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiHopper_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiHopper_drawGuiContainerBackgroundLayer(this, var_1, var_2, var_3); }], -nms_GuiBrewingStand, 0, nms_GuiContainer, [], 0, 3, 0, ["$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiBrewingStand_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiBrewingStand_drawGuiContainerBackgroundLayer(this, var_1, var_2, var_3); }], -nms_GuiEnchantment, 0, nms_GuiContainer, [], 0, 3, 0, ["$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiEnchantment_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$updateScreen", function() { $java.nms_GuiEnchantment_updateScreen(this); }, "$mouseClicked", function(var_1, var_2, var_3) { $java.nms_GuiEnchantment_mouseClicked(this, var_1, var_2, var_3); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiEnchantment_drawGuiContainerBackgroundLayer(this, -var_1, var_2, var_3); }], -nms_GuiFurnace, 0, nms_GuiContainer, [], 0, 3, 0, ["$drawGuiContainerForegroundLayer", function(var_1, var_2) { $java.nms_GuiFurnace_drawGuiContainerForegroundLayer(this, var_1, var_2); }, "$drawGuiContainerBackgroundLayer", function(var_1, var_2, var_3) { $java.nms_GuiFurnace_drawGuiContainerBackgroundLayer(this, var_1, var_2, var_3); }], -nms_EnumStatus, 0, jl_Enum, [], 12, 3, 0, 0, -nms_ChunkCoordIntPair, "ChunkCoordIntPair", 24, jl_Object, [], 0, 3, 0, ["$hashCode0", function() { return nms_ChunkCoordIntPair_hashCode(this); }, "$equals", function(var_1) { return $java.nms_ChunkCoordIntPair_equals(this, var_1); }, "$toString", function() { return $java.nms_ChunkCoordIntPair_toString(this); }], -$java.nms_IUpdatePlayerListBox, 0, jl_Object, [], 3, 3, 0, 0, -nms_SoundUpdaterMinecart, 0, jl_Object, [$java.nms_IUpdatePlayerListBox], 0, 3, 0, 0, -$java.nms_ShapelessRecipes, "ShapelessRecipes", 24, jl_Object, [$java.nms_IRecipe], 0, 3, 0, ["$matches0", function(var_1, var_2) { return $java.nms_ShapelessRecipes_matches(this, var_1, var_2); }, "$getCraftingResult", function(var_1) { return $java.nms_ShapelessRecipes_getCraftingResult(this, var_1); }, "$getRecipeSize", function() { return $java.nms_ShapelessRecipes_getRecipeSize(this); }], -nms_EntityDamageSource, 0, nms_DamageSource, [], 0, 3, 0, ["$getEntity", function() { return $java.nms_EntityDamageSource_getEntity(this); }], -$java.nms_ContainerChest, 0, nms_Container, [], 0, 3, 0, ["$canInteractWith", function(var_1) { return $java.nms_ContainerChest_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, var_2) { return $java.nms_ContainerChest_transferStackInSlot(this, var_1, var_2); }, "$onCraftGuiClosed", function(var_1) { $java.nms_ContainerChest_onCraftGuiClosed(this, var_1); }], -nms_ContainerWorkbench, 0, nms_Container, [], 0, 3, 0, ["$onCraftMatrixChanged", function(var_1) { $java.nms_ContainerWorkbench_onCraftMatrixChanged(this, var_1); }, "$onCraftGuiClosed", function(var_1) { $java.nms_ContainerWorkbench_onCraftGuiClosed(this, var_1); }, "$canInteractWith", function(var_1) { return $java.nms_ContainerWorkbench_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, var_2) { return $java.nms_ContainerWorkbench_transferStackInSlot(this, var_1, var_2); }, "$func_94530_a", -function(var_1, var_2) { return $java.nms_ContainerWorkbench_func_94530_a(this, var_1, var_2); }], -nms_ContainerBeacon, 0, nms_Container, [], 0, 3, 0, ["$addCraftingToCrafters", function(var_1) { $java.nms_ContainerBeacon_addCraftingToCrafters(this, var_1); }, "$detectAndSendChanges", function() { $java.nms_ContainerBeacon_detectAndSendChanges(this); }, "$updateProgressBar", function(var_1, var_2) { $java.nms_ContainerBeacon_updateProgressBar(this, var_1, var_2); }, "$canInteractWith", function(var_1) { return $java.nms_ContainerBeacon_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, -var_2) { return $java.nms_ContainerBeacon_transferStackInSlot(this, var_1, var_2); }], -nms_ContainerRepair, 0, nms_Container, [], 0, 3, 0, ["$addCraftingToCrafters", function(var_1) { $java.nms_ContainerRepair_addCraftingToCrafters(this, var_1); }, "$updateProgressBar", function(var_1, var_2) { $java.nms_ContainerRepair_updateProgressBar(this, var_1, var_2); }, "$onCraftGuiClosed", function(var_1) { $java.nms_ContainerRepair_onCraftGuiClosed(this, var_1); }, "$canInteractWith", function(var_1) { return $java.nms_ContainerRepair_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, -var_2) { return $java.nms_ContainerRepair_transferStackInSlot(this, var_1, var_2); }], -nms_ContainerDispenser, 0, nms_Container, [], 0, 3, 0, ["$canInteractWith", function(var_1) { return $java.nms_ContainerDispenser_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, var_2) { return $java.nms_ContainerDispenser_transferStackInSlot(this, var_1, var_2); }], -nms_ContainerHopper, 0, nms_Container, [], 0, 3, 0, ["$canInteractWith", function(var_1) { return $java.nms_ContainerHopper_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, var_2) { return $java.nms_ContainerHopper_transferStackInSlot(this, var_1, var_2); }, "$onCraftGuiClosed", function(var_1) { $java.nms_ContainerHopper_onCraftGuiClosed(this, var_1); }], -$java.nms_ContainerMerchant, 0, nms_Container, [], 0, 3, 0, ["$addCraftingToCrafters", function(var_1) { $java.nms_ContainerMerchant_addCraftingToCrafters(this, var_1); }, "$detectAndSendChanges", function() { $java.nms_ContainerMerchant_detectAndSendChanges(this); }, "$updateProgressBar", function(var_1, var_2) { $java.nms_ContainerMerchant_updateProgressBar(this, var_1, var_2); }, "$canInteractWith", function(var_1) { return $java.nms_ContainerMerchant_canInteractWith(this, var_1); }, "$transferStackInSlot", -function(var_1, var_2) { return $java.nms_ContainerMerchant_transferStackInSlot(this, var_1, var_2); }, "$onCraftGuiClosed", function(var_1) { $java.nms_ContainerMerchant_onCraftGuiClosed(this, var_1); }], -nms_ContainerBrewingStand, 0, nms_Container, [], 0, 3, 0, ["$addCraftingToCrafters", function(var_1) { $java.nms_ContainerBrewingStand_addCraftingToCrafters(this, var_1); }, "$detectAndSendChanges", function() { $java.nms_ContainerBrewingStand_detectAndSendChanges(this); }, "$updateProgressBar", function(var_1, var_2) { $java.nms_ContainerBrewingStand_updateProgressBar(this, var_1, var_2); }, "$canInteractWith", function(var_1) { return $java.nms_ContainerBrewingStand_canInteractWith(this, var_1); }, "$transferStackInSlot", -function(var_1, var_2) { return $java.nms_ContainerBrewingStand_transferStackInSlot(this, var_1, var_2); }], -nms_ContainerEnchantment, 0, nms_Container, [], 0, 3, 0, ["$addCraftingToCrafters", function(var_1) { $java.nms_ContainerEnchantment_addCraftingToCrafters(this, var_1); }, "$detectAndSendChanges", function() { $java.nms_ContainerEnchantment_detectAndSendChanges(this); }, "$updateProgressBar", function(var_1, var_2) { $java.nms_ContainerEnchantment_updateProgressBar(this, var_1, var_2); }, "$onCraftGuiClosed", function(var_1) { $java.nms_ContainerEnchantment_onCraftGuiClosed(this, var_1); }, "$canInteractWith", -function(var_1) { return $java.nms_ContainerEnchantment_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, var_2) { return $java.nms_ContainerEnchantment_transferStackInSlot(this, var_1, var_2); }], -nms_ContainerFurnace, 0, nms_Container, [], 0, 3, 0, ["$addCraftingToCrafters", function(var_1) { $java.nms_ContainerFurnace_addCraftingToCrafters(this, var_1); }, "$detectAndSendChanges", function() { $java.nms_ContainerFurnace_detectAndSendChanges(this); }, "$updateProgressBar", function(var_1, var_2) { $java.nms_ContainerFurnace_updateProgressBar(this, var_1, var_2); }, "$canInteractWith", function(var_1) { return $java.nms_ContainerFurnace_canInteractWith(this, var_1); }, "$transferStackInSlot", function(var_1, -var_2) { return $java.nms_ContainerFurnace_transferStackInSlot(this, var_1, var_2); }], -nms_EntityDamageSourceIndirect, 0, nms_EntityDamageSource, [], 0, 3, 0, ["$getSourceOfDamage", function() { return $java.nms_EntityDamageSourceIndirect_getSourceOfDamage(this); }, "$getEntity", function() { return $java.nms_EntityDamageSourceIndirect_getEntity(this); }], -$java.nms_SlotBeacon, "SlotBeacon", 24, $java.nms_Slot, [], 0, 0, 0, ["$isItemValid", function(var_1) { return $java.nms_SlotBeacon_isItemValid(this, var_1); }, "$getSlotStackLimit", function() { return $java.nms_SlotBeacon_getSlotStackLimit(this); }], -$java.nms_InventoryRepair, 0, $java.nms_InventoryBasic, [], 0, 0, 0, ["$onInventoryChanged", function() { $java.nms_InventoryRepair_onInventoryChanged(this); }], -$java.nms_SlotRepair, "SlotRepair", 24, $java.nms_Slot, [], 0, 0, 0, ["$isItemValid", function(var_1) { return $java.nms_SlotRepair_isItemValid(this, var_1); }, "$canTakeStack", function(var_1) { return $java.nms_SlotRepair_canTakeStack(this, var_1); }, "$onPickupFromSlot", function(var_1, var_2) { $java.nms_SlotRepair_onPickupFromSlot(this, var_1, var_2); }], -$java.nms_SlotMerchantResult, "SlotMerchantResult", 24, $java.nms_Slot, [], 0, 3, 0, ["$isItemValid", function(var_1) { return $java.nms_SlotMerchantResult_isItemValid(this, var_1); }, "$decrStackSize0", function(var_1) { return $java.nms_SlotMerchantResult_decrStackSize(this, var_1); }, "$onCrafting", function(var_1, var_2) { $java.nms_SlotMerchantResult_onCrafting(this, var_1, var_2); }, "$onPickupFromSlot", function(var_1, var_2) { $java.nms_SlotMerchantResult_onPickupFromSlot(this, var_1, var_2); }], -$java.nms_SlotBrewingStandPotion, "SlotBrewingStandPotion", 24, $java.nms_Slot, [], 0, 0, 0, ["$isItemValid", function(var_1) { return $java.nms_SlotBrewingStandPotion_isItemValid(this, var_1); }, "$getSlotStackLimit", function() { return $java.nms_SlotBrewingStandPotion_getSlotStackLimit(this); }, "$onPickupFromSlot", function(var_1, var_2) { $java.nms_SlotBrewingStandPotion_onPickupFromSlot(this, var_1, var_2); }], -$java.nms_SlotBrewingStandIngredient, "SlotBrewingStandIngredient", 24, $java.nms_Slot, [], 0, 0, 0, ["$isItemValid", function(var_1) { return $java.nms_SlotBrewingStandIngredient_isItemValid(this, var_1); }, "$getSlotStackLimit", function() { return $java.nms_SlotBrewingStandIngredient_getSlotStackLimit(this); }], -$java.nms_SlotEnchantmentTable, 0, $java.nms_InventoryBasic, [], 0, 0, 0, ["$getInventoryStackLimit", function() { return $java.nms_SlotEnchantmentTable_getInventoryStackLimit(this); }, "$onInventoryChanged", function() { $java.nms_SlotEnchantmentTable_onInventoryChanged(this); }], -$java.nms_SlotEnchantment, "SlotEnchantment", 24, $java.nms_Slot, [], 0, 0, 0, ["$isItemValid", function(var_1) { return $java.nms_SlotEnchantment_isItemValid(this, var_1); }], -$java.nms_SlotFurnace, "SlotFurnace", 24, $java.nms_Slot, [], 0, 3, 0, ["$isItemValid", function(var_1) { return $java.nms_SlotFurnace_isItemValid(this, var_1); }, "$decrStackSize0", function(var_1) { return $java.nms_SlotFurnace_decrStackSize(this, var_1); }, "$onPickupFromSlot", function(var_1, var_2) { $java.nms_SlotFurnace_onPickupFromSlot(this, var_1, var_2); }, "$onCrafting", function(var_1, var_2) { $java.nms_SlotFurnace_onCrafting0(this, var_1, var_2); }], -cjj_DeflaterOutputStream, 0, ji_FilterOutputStream, [], 0, 3, 0, ["$write0", function(var_1) { $java.cjj_DeflaterOutputStream_write(this, var_1); }, "$write2", function(var_1, var_2, var_3) { $java.cjj_DeflaterOutputStream_write0(this, var_1, var_2, var_3); }, "$close", function() { $java.cjj_DeflaterOutputStream_close(this); }, "$flush", function() { $java.cjj_DeflaterOutputStream_flush(this); }]]); -$rt_metadata([cjj_GZIPOutputStream, 0, cjj_DeflaterOutputStream, [], 0, 3, 0, 0, -cjj_Deflater, 0, cjj_ZStream, [], 4, 3, 0, 0, -$java.nms_NibbleArray, 0, jl_Object, [], 0, 3, 0, 0, -nms_FurnaceRecipes, 0, jl_Object, [], 0, 3, 0, 0, -nms_EnumCreatureAttribute, 0, jl_Enum, [], 12, 3, 0, 0, -nms_InventoryLargeChest, 0, jl_Object, [nms_IInventory], 0, 3, 0, ["$getSizeInventory", function() { return $java.nms_InventoryLargeChest_getSizeInventory(this); }, "$getInvName", function() { return $java.nms_InventoryLargeChest_getInvName(this); }, "$isInvNameLocalized", function() { return $java.nms_InventoryLargeChest_isInvNameLocalized(this); }, "$getStackInSlot", function(var_1) { return $java.nms_InventoryLargeChest_getStackInSlot(this, var_1); }, "$decrStackSize", function(var_1, var_2) { return $java.nms_InventoryLargeChest_decrStackSize(this, -var_1, var_2); }, "$setInventorySlotContents", function(var_1, var_2) { $java.nms_InventoryLargeChest_setInventorySlotContents(this, var_1, var_2); }, "$getInventoryStackLimit", function() { return $java.nms_InventoryLargeChest_getInventoryStackLimit(this); }, "$onInventoryChanged", function() { $java.nms_InventoryLargeChest_onInventoryChanged(this); }, "$isUseableByPlayer", function(var_1) { return $java.nms_InventoryLargeChest_isUseableByPlayer(this, var_1); }, "$openChest", function() { $java.nms_InventoryLargeChest_openChest(this); -}, "$closeChest", function() { $java.nms_InventoryLargeChest_closeChest(this); }, "$isStackValidForSlot", function(var_1, var_2) { return $java.nms_InventoryLargeChest_isStackValidForSlot(this, var_1, var_2); }], -nms_GuiEditSign, 0, nms_GuiScreen, [], 0, 3, nms_GuiEditSign_$callClinit, ["$initGui", function() { $java.nms_GuiEditSign_initGui(this); }, "$onGuiClosed", function() { $java.nms_GuiEditSign_onGuiClosed(this); }, "$updateScreen", function() { $java.nms_GuiEditSign_updateScreen(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiEditSign_actionPerformed(this, var_1); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiEditSign_keyTyped(this, var_1, var_2); }, "$drawScreen", function(var_1, var_2, var_3) -{ $java.nms_GuiEditSign_drawScreen(this, var_1, var_2, var_3); }], -nms_GuiCommandBlock, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiCommandBlock_updateScreen(this); }, "$initGui", function() { $java.nms_GuiCommandBlock_initGui(this); }, "$onGuiClosed", function() { $java.nms_GuiCommandBlock_onGuiClosed(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiCommandBlock_actionPerformed(this, var_1); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiCommandBlock_keyTyped(this, var_1, var_2); }, "$mouseClicked", function(var_1, var_2, var_3) -{ $java.nms_GuiCommandBlock_mouseClicked(this, var_1, var_2, var_3); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiCommandBlock_drawScreen(this, var_1, var_2, var_3); }], -nms_BlockBaseRailLogic, 0, jl_Object, [], 0, 3, 0, 0, -nms_EntityHugeExplodeFX, "EntityHugeExplodeFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityHugeExplodeFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityHugeExplodeFX_onUpdate(this); }, "$getFXLayer", function() { return $java.nms_EntityHugeExplodeFX_getFXLayer(this); }], -nms_EntityBubbleFX, "EntityBubbleFX", 24, nms_EntityFX, [], 0, 3, 0, ["$onUpdate", function() { $java.nms_EntityBubbleFX_onUpdate(this); }], -nms_EntitySuspendFX, "EntitySuspendFX", 24, nms_EntityFX, [], 0, 3, 0, ["$onUpdate", function() { $java.nms_EntitySuspendFX_onUpdate(this); }], -nms_EntityAuraFX, "EntityAuraFX", 24, nms_EntityFX, [], 0, 3, 0, ["$onUpdate", function() { $java.nms_EntityAuraFX_onUpdate(this); }], -nms_EntityCritFX, "EntityCritFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityCritFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityCritFX_onUpdate(this); }], -nms_EntitySpellParticleFX, "EntitySpellParticleFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntitySpellParticleFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntitySpellParticleFX_onUpdate(this); }], -nms_EntityNoteFX, "EntityNoteFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityNoteFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityNoteFX_onUpdate(this); }], -nms_EntityPortalFX, "EntityPortalFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityPortalFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getBrightnessForRender", function(var_1) { return $java.nms_EntityPortalFX_getBrightnessForRender(this, var_1); }, "$onUpdate", function() { $java.nms_EntityPortalFX_onUpdate(this); }], -nms_EntityEnchantmentTableParticleFX, "EntityEnchantmentTableParticleFX", 24, nms_EntityFX, [], 0, 3, 0, ["$getBrightnessForRender", function(var_1) { return $java.nms_EntityEnchantmentTableParticleFX_getBrightnessForRender(this, var_1); }, "$onUpdate", function() { $java.nms_EntityEnchantmentTableParticleFX_onUpdate(this); }], -nms_EntityExplodeFX, "EntityExplodeFX", 24, nms_EntityFX, [], 0, 3, 0, ["$onUpdate", function() { $java.nms_EntityExplodeFX_onUpdate(this); }], -nms_EntityFlameFX, "EntityFlameFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityFlameFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getBrightnessForRender", function(var_1) { return $java.nms_EntityFlameFX_getBrightnessForRender(this, var_1); }, "$onUpdate", function() { $java.nms_EntityFlameFX_onUpdate(this); }], -nms_EntityLavaFX, "EntityLavaFX", 24, nms_EntityFX, [], 0, 3, 0, ["$getBrightnessForRender", function(var_1) { return $java.nms_EntityLavaFX_getBrightnessForRender(this, var_1); }, "$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityLavaFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityLavaFX_onUpdate(this); }], -nms_EntityFootStepFX, "EntityFootStepFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityFootStepFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityFootStepFX_onUpdate(this); }, "$getFXLayer", function() { return $java.nms_EntityFootStepFX_getFXLayer(this); }], -nms_EntitySplashFX, "EntitySplashFX", 24, nms_EntityRainFX, [], 0, 3, 0, 0, -nms_EntityCloudFX, "EntityCloudFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityCloudFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityCloudFX_onUpdate(this); }], -nms_EntityReddustFX, "EntityReddustFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityReddustFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityReddustFX_onUpdate(this); }], -nms_EntityBreakingFX, "EntityBreakingFX", 24, nms_EntityFX, [], 0, 3, 0, ["$getFXLayer", function() { return $java.nms_EntityBreakingFX_getFXLayer(this); }, "$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityBreakingFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_EntityDropParticleFX, "EntityDropParticleFX", 24, nms_EntityFX, [], 0, 3, 0, ["$getBrightnessForRender", function(var_1) { return $java.nms_EntityDropParticleFX_getBrightnessForRender(this, var_1); }, "$onUpdate", function() { $java.nms_EntityDropParticleFX_onUpdate(this); }], -nms_EntitySnowShovelFX, "EntitySnowShovelFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntitySnowShovelFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntitySnowShovelFX_onUpdate(this); }], -nms_EntityHeartFX, "EntityHeartFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityHeartFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityHeartFX_onUpdate(this); }], -nms_EntityLargeExplodeFX, "EntityLargeExplodeFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityLargeExplodeFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$getBrightnessForRender", function(var_1) { return $java.nms_EntityLargeExplodeFX_getBrightnessForRender(this, var_1); }, "$onUpdate", function() { $java.nms_EntityLargeExplodeFX_onUpdate(this); }, "$getFXLayer", function() { return $java.nms_EntityLargeExplodeFX_getFXLayer(this); -}], -nms_EntityFireworkSparkFX, "EntityFireworkSparkFX", 24, nms_EntityFX, [], 0, 3, 0, ["$getBoundingBox", function() { return $java.nms_EntityFireworkSparkFX_getBoundingBox(this); }, "$canBePushed", function() { return $java.nms_EntityFireworkSparkFX_canBePushed(this); }, "$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityFireworkSparkFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityFireworkSparkFX_onUpdate(this); -}, "$getBrightnessForRender", function(var_1) { return $java.nms_EntityFireworkSparkFX_getBrightnessForRender(this, var_1); }], -nms_EntityFireworkStarterFX, "EntityFireworkStarterFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityFireworkStarterFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }, "$onUpdate", function() { $java.nms_EntityFireworkStarterFX_onUpdate(this); }, "$getFXLayer", function() { return $java.nms_EntityFireworkStarterFX_getFXLayer(this); }], -cjj_Deflate, 0, jl_Object, [jl_Cloneable], 4, 3, 0, 0, -nms_EnchantmentNameParts, 0, jl_Object, [], 0, 3, 0, 0, -nms_GuiButtonMerchant, "GuiButtonMerchant", 24, nms_GuiButton, [], 0, 0, 0, ["$drawButton", function(var_1, var_2, var_3) { $java.nms_GuiButtonMerchant_drawButton(this, var_1, var_2, var_3); }], -nms_GuiBeaconButton, 0, nms_GuiButton, [], 0, 0, 0, ["$drawButton", function(var_1, var_2, var_3) { $java.nms_GuiBeaconButton_drawButton(this, var_1, var_2, var_3); }], -$java.nms_GuiBeaconButtonConfirm, "GuiBeaconButtonConfirm", 24, nms_GuiBeaconButton, [], 0, 0, 0, ["$func_82251_b", function(var_1, var_2) { $java.nms_GuiBeaconButtonConfirm_func_82251_b(this, var_1, var_2); }], -$java.nms_GuiBeaconButtonCancel, "GuiBeaconButtonCancel", 24, nms_GuiBeaconButton, [], 0, 0, 0, ["$func_82251_b", function(var_1, var_2) { $java.nms_GuiBeaconButtonCancel_func_82251_b(this, var_1, var_2); }], -$java.nms_GuiBeaconButtonPower, "GuiBeaconButtonPower", 24, nms_GuiBeaconButton, [], 0, 0, 0, ["$func_82251_b", function(var_1, var_2) { $java.nms_GuiBeaconButtonPower_func_82251_b(this, var_1, var_2); }], -cjj_Tree, 0, jl_Object, [], 4, 0, 0, 0, -nms_EntitySelectorAlive, 0, jl_Object, [nms_IEntitySelector], 4, 0, 0, ["$isEntityApplicable", function(var_1) { return $java.nms_EntitySelectorAlive_isEntityApplicable(this, var_1); }], -nms_EntitySelectorInventory, 0, jl_Object, [nms_IEntitySelector], 4, 0, 0, ["$isEntityApplicable", function(var_1) { return $java.nms_EntitySelectorInventory_isEntityApplicable(this, var_1); }], -$java.cjj_Deflate$Config, 0, jl_Object, [], 0, 0, 0, 0, -nms_GuiScreenBook, 0, nms_GuiScreen, [], 0, 3, 0, ["$updateScreen", function() { $java.nms_GuiScreenBook_updateScreen(this); }, "$initGui", function() { $java.nms_GuiScreenBook_initGui(this); }, "$onGuiClosed", function() { $java.nms_GuiScreenBook_onGuiClosed(this); }, "$actionPerformed", function(var_1) { $java.nms_GuiScreenBook_actionPerformed(this, var_1); }, "$keyTyped", function(var_1, var_2) { $java.nms_GuiScreenBook_keyTyped(this, var_1, var_2); }, "$drawScreen", function(var_1, var_2, var_3) { $java.nms_GuiScreenBook_drawScreen(this, -var_1, var_2, var_3); }], -$java.nms_EntityFireworkOverlayFX, "EntityFireworkOverlayFX", 24, nms_EntityFX, [], 0, 3, 0, ["$renderParticle", function(var_1, var_2, var_3, var_4, var_5, var_6, var_7) { $java.nms_EntityFireworkOverlayFX_renderParticle(this, var_1, var_2, var_3, var_4, var_5, var_6, var_7); }], -nms_PathEntity, 0, jl_Object, [], 0, 3, 0, 0, -$java.nms_CombatEntry, "CombatEntry", 24, jl_Object, [], 0, 3, 0, 0, -nms_PathFinder, 0, jl_Object, [], 0, 3, 0, 0, -nms_GuiButtonNextPage, "GuiButtonNextPage", 24, nms_GuiButton, [], 0, 0, 0, ["$drawButton", function(var_1, var_2, var_3) { $java.nms_GuiButtonNextPage_drawButton(this, var_1, var_2, var_3); }], -nms_Path, 0, jl_Object, [], 0, 3, 0, 0]); -$rt_metadata([$java.nms_PathPoint, "PathPoint", 24, jl_Object, [], 0, 3, 0, 0, -ju_LinkedHashMap$1, 0, ju_AbstractSet, [], 0, 0, 0, ["$size2", function() { return $java.ju_LinkedHashMap$1_size(this); }, "$iterator", function() { return $java.ju_LinkedHashMap$1_iterator(this); }], -$java.cjj_StaticTree, 0, jl_Object, [], 4, 0, $java.cjj_StaticTree_$callClinit, 0, -$java.ju_LinkedHashMap$KeyIterator, 0, $java.ju_LinkedHashMap$AbstractMapIterator, [ju_Iterator], 0, 0, 0, ["$next", function() { return $java.ju_LinkedHashMap$KeyIterator_next(this); }], -$java.nms_MapInfo, "MapInfo", 24, jl_Object, [], 0, 3, 0, 0]); -function $rt_array(cls, data) { - this.$monitor = null; - this.$id$ = 0; - this.type = cls; - this.data = data; - this.constructor = $rt_arraycls(cls); -} -$rt_array.prototype = Object.create(($rt_objcls()).prototype); -$rt_array.prototype.toString = function() { - var str = "["; - for (var i = 0;i < this.data.length;++i) { - if (i > 0) { - str += ", "; - } - str += this.data[i].toString(); - } - str += "]"; - return str; -}; -$rt_setCloneMethod($rt_array.prototype, function() { - var dataCopy; - if ('slice' in this.data) { - dataCopy = this.data.slice(); - } else { - dataCopy = new this.data.constructor(this.data.length); - for (var i = 0;i < dataCopy.length;++i) { - dataCopy[i] = this.data[i]; - } - } - return new $rt_array(this.type, dataCopy); -}); -$rt_stringPool(["Can\'t enter monitor from another thread synchronously", "@", "UTF-8", " -------- starting minecraft -------- ", "Native Browser Exception\n", "----------------------------------\n", " Line: ", " Type: ", " Message: ", "----------------------------------\n\n", "i did an oopsie and crashed. report to cgiacun@gmail.com or LAX1DUDE#6306 on discord or @eagler.69 on instagram if you want to see this bug fixed\n\n", "eaglercraft.version = \"", "alpha 20m06-29", "\"\n", "eaglercraft.minecraft = \"1.5.2\"\n", -"eaglercraft.brand = \"eagtek\"\n", "eaglercraft.username = \"", "eaglercraft.channel = \"", "window.minecraftOpts", " = ", "window.navigator.userAgent", "window.navigator.vendor", "window.navigator.language", "window.navigator.hardwareConcurrency", "window.navigator.deviceMemory", "window.navigator.platform", "window.navigator.product", "rootElement.clientWidth = ", "rootElement.clientHeight = ", "window.innerWidth", "window.innerHeight", "window.outerWidth", "window.outerHeight", "window.devicePixelRatio", -"window.screen.availWidth", "window.screen.availHeight", "window.screen.colorDepth", "window.screen.pixelDepth", "window.currentContext", "window.location.href", "window.location.ancestorOrigins", "\n----- Begin Minecraft Config -----\n", "\n----- End Minecraft Config -----\n\n", "window.minecraftServer", "", "position:relative;", "[]", "null", ": ", " at ", "Caused by: ", "Index out of bounds", "String contains invalid digits: ", "String contains digits out of radix ", "The value is too big for int type: ", -"String is null or empty", "Illegal radix: ", "#version 300 es", "/", "\r\n", "\n", "[\r\n]", "overflow-x:hidden;overflow-y:hidden;", "WebGL 2.0 is not supported in your browser (", ")", "windows", "mousedown", "wheel", "keyup", "_eaglercraft.", "NONE", "ESCAPE", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "MINUS", "EQUALS", "BACK", "TAB", "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "LBRACKET", "RBRACKET", "RETURN", "LCONTROL", "A", "S", "D", "F", "G", "H", "J", "K", "L", "SEMICOLON", "APOSTROPHE", -"GRAVE", "LSHIFT", "BACKSLASH", "Z", "X", "C", "V", "B", "N", "M", "COMMA", "PERIOD", "SLASH", "RSHIFT", "MULTIPLY", "LMENU", "SPACE", "CAPITAL", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "NUMLOCK", "SCROLL", "NUMPAD7", "NUMPAD8", "NUMPAD9", "SUBTRACT", "NUMPAD4", "NUMPAD5", "NUMPAD6", "ADD", "NUMPAD1", "NUMPAD2", "NUMPAD3", "NUMPAD0", "DECIMAL", "F11", "F12", "F13", "F14", "F15", "F16", "F17", "F18", "KANA", "F19", "CONVERT", "NOCONVERT", "YEN", "NUMPADEQUALS", "CIRCUMFLEX", "AT", "COLON", -"UNDERLINE", "KANJI", "STOP", "AX", "UNLABELED", "NUMPADENTER", "RCONTROL", "SECTION", "NUMPADCOMMA", "DIVIDE", "SYSRQ", "RMENU", "FUNCTION", "PAUSE", "HOME", "UP", "PRIOR", "LEFT", "RIGHT", "END", "DOWN", "NEXT", "INSERT", "DELETE", "CLEAR", "LMETA", "RMETA", "APPS", "POWER", "SLEEP", "a", "g", "p", "", "servers", "iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAArXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjaXVBbDgMhCPznFD2CAr6OY7tu0hv0+B2F7sZOwgiDDkQan/dJj4lYmDSVmlvOAdCmjTuSGgx2xqCLF17eQr3pdDUYkuAUK/Pw+x16uh8Udf2561TciasbeeNnKHMyIzl8STcSNj16TY3DjnqHlGVxXf6vteAzjgRRmHhIlLCYbZJYdEQFR0EDrMiTNLDOZekLXFtIXuuhhAwAAAAJcEhZcwAACxMAAAsTAQCanBgAABiCSURBVHja7Z1ZUxtJ1obfWrVLpQVJgGwM2DR4umfC3W3HRExHzD+fmIu5mpnunq29sBiMACGBKEklqRZVqb6L/jKjqrQAbizb+DwRhGyVas8385yTJzMF3/d9EMQXikiPgCABEAQJgCBIAARBAiAIEgBBkAAIggRAECQAgiABEAQJgCBIAARBAiAIEgBB" -+ "kAAIggRAECQAgiABEAQJgCBIAARBAiAIEgBBkAAIggRAECQAgiABEAQJgCBIAARBAiAIEgBBkAAIggRAECQAgiABEAQJgCBIAARBAiAIEgBBkAAIggRAECQAgiABEAQJgCBIAARBAiAIEgBBkAAIggRAECQAgiABEAQJgCBIAAQJgCBIAARBAiAIEgBBkAAIggRAECQAgiABEAQJgCBIAARBAiAIEgBB3ANkegTETRmPx3AcB6L4a72pKAoEQeDbfd/HaDTCaDSCKIoYj8cAAEmSIMsy/zeA0H4kAOKzwDAM6LqO8XiMVCqFYrHIC75lWeh2u1AUBb1eD8lkEqZpwnVdxGIxZDIZjMdjxGIxiKKIRCLBhcTEJYoiBEGA7/uhbSQA4pOo/U3TRLvdhmVZyOfzyOfzAABd19HtdlEsFtFut2EYBgqFAlzXha7rcF0Xoigim82i0+nA931ks1lkMhneUrBPQRAgCAL/jnwA4pPA9324rgsASCQSME0TADAa" -+ "jWCaJkqlElzXxeXlJSRJ4gW62+1CFEWkUin4vo9isQhZljEej2EYBi/07FMURfi+z89JAiA+GSRJQjqdRqfTQaVSwWg0giAIyOVyUFUVo9EIAFCr1eD7PnK5HDY3N1EulxGPx7ntr2layKdgBX08HnMh+L6/ED+BBEDcCFYYu90uNE2DKIq8to7FYtzWf/jwIbflme0fj8chCALi8TgXjSRJ/P+j0QiO43ARMB+AWgDikzKBVFVFLpdDp9PhtTXbJssyJEmCpmlQVRWqqgIAYrEYRqMRfN+H7/tQFAUAoKoqBEGAoiihgh70ARbRApATfM+4vLyE53mh78rl8p0UJtM00e/3kclk+Hej0QiKovAanJlCjuNAURSMRiOoqgrHcXihZ62GbdtwXReyLHP/QlVVbv4swgyiFuCe4bruxN9d+wCGYQAAHMeBLMuwbZubL6y2t22b/84wDNi2DcuyYNs2HMeBYRhwHIf7AbIscx+CmUHUAnyG9Pt9dLtd/vJz" -+ "uRyWl5cXev5oob+LwsT27/f70DQNlmUhHo/D9310u10e0gw6tZZl8c9utwtVVVEul3mrwZ4Rc5CDtT/zAT60CEgAd1z7skKfy+UAgNu8i2J5eXnCebyLQuT7PjzPQzqdxunpKXzf544sM4Xi8ThisRgsy4Jpmsjlcuj1euh2uwDA+w0sy4Ku6/zYTBzZbBbJZJJ3mrFeYxLAZ0Kn08HBwcGE/b2+vr6wa9jd3eX2OOP777+/s8LU7XaxtraGw8NDAEChUOCFOpvNctPIcRwuPF3Xkc/n+ef5+Tl834emaXAcB57n4fDwEPl8HltbWzAMg7co1AJ8RuRyOTx9+jT03aJbgK2tLR6dYbX/XfaoJhIJvHv3Dvl8ntv+3W4XiUSC2/dXV1e848v3feTzed55ZlkW70kul8swDAONRgMAMBwO8e7dO1QqFWQyGfIBPjeGwyHOz88nRFGtVhd2Defn5xM+wJMnT+7EB5AkCb1eD9VqFWdnZ8jn87zws0hP9P+5" -+ "XA6lUgm2baPVavHCfnp6iuFwiOXlZSwvL0PXddi2DV3XoWnaQvoA7nUUiNU+izyOLMtIpVKhPxYPX9Q1JJPJiWu4Sx+AmTvMpAF+DY+y0Gi/38fR0REsy4Isy1BVFalUCslkEgBg2zaurq64H9BoNJDL5fD8+XO+PZFILCxb9KO3AJ7nYTAYwLIsHhZjDlYsFkMikbjxS3QcB5ZlwXXdUGJVPB6/9UO1bRvD4ZDXpqIoIh6PI5lMzjyOKIoTBZ6lAb+vU93v93l4UJIkJJNJ7nhOQ1GUD+o8KooSCoUCv6Y+GIaBk5MT9Ho9WJYFz/OwtraG1dVV3oIsLS0hkUhgc3MT/X4fpVIJyWSSX+/6+jrOzs74M7z3USAWIZgWtWDCGAwG6HQ6KBaLSCQSod9dXl5iOBxy0bC/4P+DvZVMWGtraxPHAoBms4mLi4uF+w0PHjzg/9d1HWdnZzeq8bPZLGq1WsjGb7fbXDCMUqk0tSDV63UeoQmysrLCndt50S4A" -+ "qFQqiMfjGI/HWF9fhyAI6Ha7qNVqPB2CkUqleCSIhULZ+/Z9H5VKBc1mE+12G8lkciH+k+AvytiKwArvdc0ue3G+76NQKIR6IT3Pm2oeBHsSp9UkoihOrZlZ9CTaNR899rzw4qzts76PXks0ghPdN7g/S08IHi+4P9svWAij98t+EzzmtN97nodGo4GzszOk02lIkoR2u40//OEPvOULHo+1RMFnb1kWr92DPb3s07Is/P3vf4cgCHj+/DlSqdT9NIF0XZ9a+GOxGGRZ5gMsotEMXdehqip/QZeXl7AsK1Try7LMO1FYqm5we1BMa2tr3IZ99epVqKD5vo9UKoVcLgdBEGAYBnq93p03yYVCAevr6+j3+3jz5s1U55MVhMFgMLVlWF1d5Y72mzdvJkT07NmzUCthWRZevXoVer7Mf9je3p57vel0mtv6mqbxRDf2/qKVTVBYTHTs/QULP4soraysIB6P34nv9Em2ALZto9lshr6TJAlLS0uhmx6Px9xZ" -+ "Ctbyqqryl8260K8L83meN1VwqVQKoiii3+9PFIZZYTjDMEKFUJIkXkCZDxK1maeZW0HG4zH6/f7E99Ouwff9kP0dLLyyLE9cX/Q4rFKIoqrqXN+CtQC9Xi9038vLy3PzdlhPMXs2pVIJoiiGWhnbtnk+UavVgqZpyGQykCTp/vkAUZtTEASUy+UJe08URRSLRTSbTW7qsLwRlljFBl7cJITX6/VCfgIzH1RVxdXVVchXiMVivFMnimmaGAwGIQEwx9i2bbTb7Yka8zoBsJFW0f2mXYMgCDxoEC1oLFMzGgZNp9OhTqng9QdbkZsyGAyQz+e5YOYV/r29PV6JsVygjY2Nid9G/ZZZJuZnLQDXdSde3DxnhzX/zPSQJAnj8ZjbkjeNdrDheEETgoX1PM8L5bYzx3QWmUyGN9fsOLZtc1Mg6lvcRKC6rof2Yy3iLJaWlng8PVgoc7nc1GfCClKj0eDZl8FzsVr8Ju/PdV3kcjn+7FgCXCwWm7DrbdtGsViE" -+ "7/sYDAZ8PLDrulBVFbZt85bAtm2ebp1MJu9nLtC0pve62jFqC7IHeFuCobVgiFIQBG7XBs2WebH+6O9ZoWMhwqhfc535k06nJ67ruv6GTCYz1bFOpVITvhMzYRKJxIR5FLThb0IqlYLnechms9xsicfj8DyPP4eg8x2Px2HbNm+F2EwSrBJhn+w5xeNx/l7uXQswLcLhuu7UJjka6Qk+jKi9Hv2967q8dmLmznA4hGma/LvxeIxKpYJ0Oo1GoxFykguFAlZWVqYev9Vq4fLyMvTdzs4Or4Xr9fqEk8s6gWaZhMfHxxMmS7SljHJ+fh56Dr7v4+uvv8bp6emEObG6uoqTk5MJ53Rzc/PaCigqlsFgAEmS0Gw2sba2xvP6g59RMbDBM8PhMFS5xGIxKIoC13X5vsEKg7XOH1IIC3WCz8/Pp4rgpmYMexCqqoZMBMdx0O/3YZpmKDQajAxF+xHYsDtRFPk+wW3T/IvxeDwx2CRo9kzbLoriXFONCfVOarPA" -+ "wJLoNUZf8039p2BFdXV1heFwiHK5PNG6BqM74/GY5wWJosgrH9a56XkeFEWBqqp80EzwWLIso91uw3EcPsTyXrQAv+VFB+eNYUIYj8fQdT0UCg2+cDYzgeu6vMYMhkqXlpZ4r2ar1Qo5yLIso1qtcpOGJW1FBVwqlXi+f7fbxcnJSWh7Pp9HrVabeV/TWpT3ZWdnBwcHB1Mdyml+xG1ylARBgGma0DQNiqJAFEVuvrDCz6I5bEQYqxDYrBDsOTLfj+3Dan/f9+E4Du8ki/Zx3Jt+gN8iAiYAz/NweXnJazyW9ThNBKxQs4fJBmqzGovFs23bDjnJbF6bYKEJthKxWCxk8ycSiQnT6TofIJvN3lnMW5IkVCqViYoml8tN7fHt9Xozo12z+gDi8XioRev1eiGzJpgKHY/H4TgOH0PMavylpaXQe2GFv9VqwXVdrK6uckf4XvkA026oWq3eOl9GEARcXV2Fcs5Zwc1kMjwmHqw9dF3nodBer4dOp4Nqtcpf" -+ "Hsv7CbYC7LizrMRo4fE8b8LRv64GmxaXz2azE72g10VEgr2pUTOsUChgNBpNmEemaSKVSt0omsYiaWwIJNvHsixcXFxgY2MDgiCExgKzfZjzLQhCaNSXbdt8H/YOmHm0KEd4oQKY9aBvq3SWJxSN6rDkqut8iKgpxfJnWGFPJpOhghlsQTKZDJ8WZNp1RZ3X62p3URQn9onH47eqmYOwgeZR+79areLk5GTiXEdHR6jVate2VCyCw3wN5uiWSiWe5x9M1AuOFmMpEdGAyHg8hqIoUBSF+xb5fJ6nUdy7KJCiKBO1nWmatzYBpjnSiqLMjbYEX2TQKbQsi3eEpdNppNNpPhrJdV2e38JSe+e9lHg8jkqlMuGYziORSEzs81uyOUul0szcoXK5HOrDuC2sEmBJbp7nQZZlbG5ucvs/ao5KkjQRZGDvK2g6sXAsq1juZTp0IpHgXekMwzB4ctVtXsRtWhHbtjEYDCb8AebYsdrGNE2MRiPeESbL8q3Ms8Fg" -+ "gP39/Yl7/vrrr+dGbvb39yfMk0ePHs3tDJvFwcHBRAXx7bffQpIkqKqKXq/HhzNGnfXHjx9fW3kEBRr8nFaJRX/3KbLwXKCzs7OJl80co+sKG+u9dV0XrVZr4uUsLy9PHGMwGODq6mpqxmixWMRoNOITtrJIEpv49bYvjnX3Tyvk8zrXPM+bGR6+SZzeNE3+OxYRm3eMWeeL5uh8CSxcAKZpTs25FwSB25DBThRW4B3H4aOF8vn81Jx5SZJ4D+V4PMZgMJja+xx0DgVB4NcT7T9g18Xi10xcsixPHZjieR729vYmOqhYugFLSmNxcpYAp2ka9vf3p7Zs6XQapVKJTyfOUg/Y/oZhwPM87OzsQBAE7O7uToRBd3Z2Qi3kaDTC/v7+RLSIdY59SSL4KOMBdF2fmtF4E5LJJEql0o3GE0Rr4eB0fgBQLBaRTCZxfn7ObeNowhwLvbIQ4LQoUXDIn2maPNp0E+LxODRNw3g8xsXFxXsP46xUKhAEAa1Wa6Jg" -+ "s23R1iqalRs0h74UEXyUMcH5fP69oxwMTdNubKLEYjFUKpWpfoIgCKhUKjyZizliwT8W7242m2i1WhPRoWCSHQvzTRPSrD9mfrCRVe/zFyzYs7ZF71tV1anHmtdq3jc+WkeYpmncKb7JA2dhOGZ2yLKMSqXCxwzMCrtms1meiDUrstDpdPisxawQsd5OZg55nsdDpcGQKds+GAywtrYGSZJQrVbR7XbRarUmYvLRfoVg5imbUKvT6Uzk+sxCVVVomsavvdfrTZhA1Wp16r0XCgWcnZ2h0+lMPA82/w+ZQAuAOWWj0Sg0PTbLo2FO5KwCzPwDFm5jUQlWqzNYR1dQIL1ebyIylclk+NjVaefSdZ0vFVQoFJDNZnnPZ/B8nufNDDuye5yVjcn6FKLDKqMijUZf2Ai4qNk479lPu0ZBEG6VKEcC+AxxXReNRiNUYIIjzuZxfHzMCxtrIR48eDB3LAFBPsAnRTD3J+iU3tSpZhmVLFL0Kce7iU/MB/gUmGZj" -+ "32SwDUv4CqZU+L7/RZgM1ALcJ/VP6XgbDofodDoTzisTTL/f59MfBmv/20SlCPIBPgl838f5+fnM/PngoBFm50/LElUUBcvLywtb25YgAdwZo9EIFxcX7zXOmJk9xWKRan8SwOfdEhiGMXV1lakP7f9DhKx3mCAB3BtY3hGb9iOYE8SyQ1VVJXOHBEAQnz9UjREkAIIgARAECYAgSAAEQQIgCBIAQZAACIIEQBAkAIIgARAECYAgSAAEQQIgCBIAQZAACOLz46NPizJtkltZlmcuUxrE8zx0Op2Fzchw3fl+/vlnWJaF58+f33rZp9sSnGW7XC5/8KGZi37WX4wAms0mn2aEkUwmbySAvb09nJ6e4ocffljIS1n0+a57bm/fvuVDNh8+fPjF3Pu9EgDjz3/+8wevNT80z549W2jLWSwWYRgGLi8vP7gAyARaMN1uFz/++CNyuRy+/fZbCIKA169f4+zsjK/ty/jb3/4G4Ndp0H/44Qf85z//wXA4xDff" -+ "fIP//e9/sCwLtVoNm5ubaDQaqNfrGAwGEAQBuVwOT5484cudNptNHB8fo9/vQ5ZlrK2twXEcvHv3bu75got+MDH7vo+//OUvePjwIRzHwcXFBVRVxdOnT6FpGobDIfb29vgaZYzHjx/PnZnZcRx0u11sbW1BVVU0Gg24rgtZlmFZFvb393F1dQXP85DJZLC9vc1Xn5+1zfM8HBwcoNlswvM8FAoFbG1t4eTkZO69zzsmCeAW1Ot13rSyRTA2NjZwcHCA09NTpFIpnJ6eYmNjA5qmwTAMNJtN9Ho9rK+v88WvgzbrL7/8gnw+j263i6OjI5TLZfT7fWQyGVQqFYxGI9Trdbx8+RIvXrxAo9HAy5cvkUgk8OjRI77KTLVahaqqM8+3vLwMTdPQaDT4qi9Bjo+PkU6n8fDhQ7x79w6vX7/GH//4R/zyyy8wTRNra2twXRcnJyfQNA2aps19VmztYrai4tnZGXRdx9LSEl6+fAld1/lU7WyVnHQ6PXfbq1ev" -+ "cHFxgVqtBlEUcXJygn//+9948uTJ3Hufd0wSwC14+/Yt/3e1WkWpVMLa2hp0Xcfe3h4URUEul8OjR48gCALy+TyGwyF6vR5WV1cnVjSxLAuVSgWPHz9Gv9/H1dUVJEnCkydPYBgGDMPgU5qzJVcPDw8hSRK+//77iWnH552PLWbH5haKkkwm8d1330GWZRiGgXa7DeDX9cs0TeMCaDQaUFX12hmm2+02ZFlGKpXiZmO73cbS0hL3CURRRLlcDq03PGubbdtoNpvQNI3fVyaTga7riMViKBQKM+993vlIAL/RBxAEARsbG/jnP/8J27b5Olg3hdnFbPlTVmM1Go3Q79hCGKZp3unK7Yx0Os3vLbhE68rKCur1Ov7617/ybcvLy3OP5fs+N6Xq9Tq//ouLC2xvb2N7exu7u7s4OjrC4eEhUqkUtre3oWnazG3smXY6nYnFMqbNkRpk3vlIAL+R8XiM3d1dpFIpvgDdtDDcrKmNooIaDodoNBooFov43e9+" -+ "B0VR8OOPP6LX60EURSiKgsFgAMdx5orgLqZS8n0fl5eXWF1d5SvY5PP5a9c6NgwDruvCdV3s7e2F/ALDMJDJZPDs2TOMRiM0m028efMGu7u7ePHiBVKp1NRtbBnXBw8eYGtr69rrDjLrmC9evODX9dNPP0GWZTx79iz07t532733AVg/wP7+Pnq9Hr777jt4nod//etf2Nvbw/b2NnfEAOD169d8WdNarTbzHOz4/X4fJycnvMZj9mytVsPh4SH+8Y9/YGVlha/m+PTp07nnq9fr8H2fmz/sXubV5q7rwjRNdDodvjI6u5Z5MX1mPv3pT3/iv2u1Wvjvf/+Lq6sr7O/vI5VKQVVVPukvW6L1559/nrotmUxC0zTU63WMRiOkUik4jgPLsvD73/9+7r3POiaj0+lwE7PX64VW3nnfbffeB0gmk5AkCfV6HbVajTenlUoFp6enyOfzqFQqqNVq6Pf7aLfbaLfbiMVicwUQi8Xw1Vdf4e3btzg+PkapVMLK" -+ "ygrvh2AO3unpKY6OjqCqaqg/Ytb5okuOsnuZt9C1oih8tUvLskJLQ7Haelb4M5FIhETCns/l5SU0TUOz2YRlWVAUBdVqlS+Anc1mZ2775ptvcHBwgIuLCzSbTSSTSZTL5Wvvfd4x2bUxXyWTyYTu5X233SU0NeJHQtd1/PTTT/jqq6+4aOv1OnZ3d7Gzs3OjjkDinvsA9xm2UjuL4Y/HY5yfn/O+CWIxUAvwkfB9H0dHRzg/P4dpmpAkiYd5P5cICgmAID5zKB2aIAEQBAmAIEgABEECIAgSAEGQAAiCBEAQJACCIAEQBAmAIEgABEECIAgSAEGQAAiCBEAQJACCIAEQBAmAIEgABEECIAgSAEGQAAiCBEAQJACCIAEQBAmAIEgABEECIAgSAEGQAAiCBEAQJACCIAEQBAmAIEgABEECIAgSAEGQAAiCBEAQJACCIAEQBAmAIEgABEECIAgSAEGQAAiCBEAQJACCIAEQBAmAIAD8H6pQaRuRO1YIAAAA" -+ "AElFTkSuQmCC", "\nprecision lowp float; in vec2 a_pos; out vec2 v_pos; void main() { gl_Position = vec4(((v_pos = a_pos) - 0.5) * vec2(2.0, -2.0), 0.0, 1.0); }", "\nprecision lowp float; in vec2 v_pos; out vec4 fragColor; uniform sampler2D tex; uniform vec2 aspect; void main() { fragColor = vec4(texture(tex, clamp(v_pos * aspect - ((aspect - 1.0) * 0.5), 0.02, 0.98)).rgb, 1.0); }", "a_pos", "tex", "aspect", "iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAC4jAAAuIwF4pT92AAAEAklEQVR42u2dvXbjIBBG7T0+xw+gTp06v//LmE6dO/VR5a3wGZNh+BGSFeveJgkIBrDy8TGKds8/Pz/PExyW8/P55AY4MP9YgmNzmeeZVUABAA8AKADgAQAFADwAoACABwAUAPAAgAIAHgBQAMADAAoAeABAAY7LOI7fpQDX65VPtZCt18w5d7rdbigAbOgBxnE8DcPwJnnDMCTrNJlsUVcizTnj9HWxeVvINfN9y361OdTEk30551ZZt3PsvYDYxOSChoPQ6sJ21mRLBm61jY0lpy61gDKWNdfcNcv5wErWLbfPF88I9/s9WtayzopXS85YtPqcMeT23SqedV1pucal1V4iTUooV/IaWSfbWHU5JmkvpmzrsayaB9DqfJnVTpMff72sc869/WzVlcjjOI7mOOVYfBzfT05exLfT5pqae008a71L" -+ "y6tPASV79CfPylvFjpm+teLH+tXiF5nA2LOAUMpCibckWpPBUOJT20btFuDjyK8p+S45Z4fX+ti+LDb3pef62PosWbfkDbBW8mFPhB/gt8Vr7gG+kZK9+C/GM2+ArffnnKRHbT5gSdJoK0+ydrziGyCW115LolLxnHOr59q3lt89b6U8Czg4pgdI5bUtKY3VzfOclGBtTLVSmmqn1cdyC7Iud+5791KX1MLJDz3Mg2s59pK6sM/asdTmLrRx5pzjS+e+awWw9lstVeuv1/a10rqwT8sn5LQr8RzaMVfmKrR2qfnFjs57/puLS0nyoTZp0fL8XGq+ap8v4AES+3Msx74kN2/tmblewWoXPl9o+RykZH5/5hTQYv+y+vj084XcPHpJbHmt1s7yGbV1q+UBnHO/gnoZje2RmuzK/Vr2F3sWEF6TGkvutqH5CG08qTmk5u77tLyK5Qtq62rgxRA8AO8FHBkygQeHLQAFADwAoACABwAUAPAAgAIAHgBQAMAD" -+ "AAoAeABAAQAPACgA4AEABQA8AKAAgAcAFAC+3gNM03Tqum7VQSyN4dtvMdZDKcBWC9oqhr8JoIEHeDwep77vf5VJfL0vl9fLa/u+f+vPfx9eszSGNXZo5AH6vlcXW36gsqykrzViwAIPYL3r3nXd63v5m6i9J2+VaT8viWGNHZQbYE97+KdjHPIGKH0XPSyL7eXSjPk2YZlsN03Tq21OjLAs598ZggIT2MpMbW3IMICFN0Dsv4xpfUbfAvIAK9wAcOAtAMgDwJHzAIACAB4AUADAAwAKAHgAQAEADwAoAOABAAUAPACgAIAHABQA8ACAAgAeAFAAwAMACgB4AEABAA8AKADgAQAFADwAoACABwAUAPAAgAIAHgBQAMADAAoAeABAAQAPACgA4AEABQA8AKAAgAcAFADwANCe/0of1jQ8XY5YAAAAAElFTkSuQmCC", "main", "EAGPKG!!", "invalid epk file", "", " end", "invalid file hash for ", -"", "matrix is not supported while recording display list use tessellator class instead", "texture matrix stack overflow", "projection matrix stack overflow", "modelview matrix stack overflow", "texture matrix stack underflow", "projection matrix stack underflow", "modelview matrix stack underflow", "only GL_QUADS supported in a display list", "vertex format inconsistent in display list", "/glsl/occl.glsl", "\n#define CC_VERT\n", "\n#define CC_FRAG\n", "\n[/glsl/occl.glsl][VERT] ", "\n[/glsl/occl.glsl][FRAG] ", -"\n\n", "\n[/glsl/occl.glsl][LINKER] ", "matrix_m", "matrix_p", "only two texture units implemented", "Root tag must be a named compound tag", "TAG_Byte", "TAG_Short", "TAG_Int", "TAG_Long", "TAG_Float", "TAG_Double", "TAG_Byte_Array", "TAG_String", "TAG_List", "TAG_Compound", "TAG_Int_Array", "UNKNOWN", "TAG_End", "BYTE", "SHORT", "INT", "LONG", "FLOAT", "DOUBLE", "BYTE[]", "STRING", "LIST", "COMPOUND", "INT[]", "Empty string not allowed", ":[", ":", ",", "]", "Either src or dest is null", "java.version", "1.8", -"os.name", "TeaVM", "file.separator", "path.separator", "line.separator", "java.io.tmpdir", "/tmp", "java.vm.version", "user.home", "root", "/font/default.png", "/font/alternate.png", "/misc/grasscolor.png", "/misc/foliagecolor.png", "warning: early beta, major problems will arise", "%clamp%/title/eagtek.png", "%blur%/title/mojang.png", "win", "mac", "solaris", "sunos", "linux", "unix", "tick", "preRenderErrors", "sound", "render", "display", "gameRenderer", "syncDisplay", "unspecified", ".", "##0.00", "[0] ", -"ROOT ", " ", "%", "[?] ", "[", "] ", "§6notice: §7", "stats", "gui", "pick", "gameMode", "textures", "pendingConnection", "levelRenderer", "level", "animateTick", "particles", "mouse", "keyboard", "manual crash", "FORCING RELOAD!", "ANGLE Issue #4994 is unpatched on this browser, using fake aliased sampling on linear magnified terrain texture for anisotropic filtering. Chrome patch progress and information available at https://crbug.com/angleproject/4994", "go to -> Options -> Video Settings on the pause menu to enable fancy graphics", -"P: ", ". T: ", "Unable to allocate array size: ", "Input array too big, the output array would be bigger (", ") than the specified maximum size of ", "lineSeparator must not contain base64 characters: [", "Strict decoding: Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible encoding. Decoding requires at least two trailing 6-bit characters to create bytes.", "Strict decoding: Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible encoding. Expected the discarded bits from the character to be zero.", -"Impossible modulus ", "1.5.2", "name", "ip", "hideAddress", "forcedMOTD", "|>", ", ", "array size does not equal image size", "yee", "End of stream reached", "Malformed UTF-8 sequence", "charsetName is null", "Should never been thrown", "buffer size must be greater than 0", "Stream closed", "footer is not found", "Unexpected end of ZLIB input stream", "Stream is closed", "Action must be non-null", "/sounds/sounds.dat", "sounds", "e", "c", "/sounds/", ".mp3", "mob.villager", "the villager sound effects got lost", -"unregistered sound effect: ", "/sounds/gta.mp3", "Something\'s taking too long! \'", "\' took aprox ", " ms", "Duplicate packet id:", "Duplicate packet class:", "Skipping packet with id ", "Bad packet id ", "String too big", "Received string length is less than zero! Weird string!", "Received string length longer than maximum allowed (", " > ", " entries of type ", "ps", "cs", "_", "skins", "Eagler", "Yeer", "Groon", "Eag", "Deevis", "Chode", "Deev", "Dumpster", "Cum", "Chad", "Egg", "Fudgler", "Fudgli", "Yee", -"Yeet", "Flumpter", "Darvy", "Darver", "Fuck", "Frick", "Vigg", "Darvig", "It seems that this is not a PNG files", "IEND", "Error data stream for incorrect crc", "not supported", "Do not support color type ", "New position ", " is outside of range [0;", "New limit ", "The last int in src ", " is outside of array of size ", "Length ", " must be non-negative", "Offset ", "Initialize IHDR : color type not legal to be ", "Initialzie IHDR : bit depth ", " not valid matching color type ", "Capacity is negative: ", -"The last byte in dst ", "The last byte in src ", "[ByteBuffer position=", ", limit=", ", capacity=", ", mark ", " is not set", " at ", "BIG_ENDIAN", "LITTLE_ENDIAN", "random.click", "/gui/background.png", "Edit Profile", "profile.title", "gui.done", "profile.addSkin", "profile.clearSkin", "profile.screenname", "profile.playerSkin", "[^A-Za-z0-9\\-_]", "/gui/gui.png", "Default Steve", "Default Alex", "Tennis Steve", "Tennis Alex", "Tuxedo Steve", "Tuxedo Alex", "Athlete Steve", "Athlete Alex", "Cyclist Steve", -"Cyclist Alex", "Boxer Steve", "Boxer Alex", "Prisoner Steve", "Prisoner Alex", "Scottish Steve", "Scottish Alex", "Developer Steve", "Developer Alex", "Herobrine", "Enderman", "Skeleton", "Blaze", "Barney", "Slime", "Noob", "Trump", "Notch", "Creeper", "Zombie", "Pig", "Squid", "Mooshroom", "Villager", "Long Arms", "Laxative Dude", "UTF Error", "Zero length vector", "Index ", " bytes]", "The last char in dst ", "The last char in src ", " is outside of string of size ", "Start ", " must be before end ", "Can\'t compare ", -" to ", "STRICT", "LENIANT", "could not load: ", "=", "gui.toMenu", "menu.quit", "Out of memory!", "Minecraft has run out of memory.", "This could be caused by a bug in the game or by the", "Java Virtual Machine not being allocated enough", "memory. If you are playing in a web browser, try", "downloading the game and playing it offline.", "To prevent level corruption, the current game has quit.", "We\'ve tried to free up enough memory to let you go back to", "the main menu and back to playing, but this may not have worked.", -"Please restart the game if you see this message again.", "need dictionary", "unknown compression method", "unknown header flags set", "incorrect data check", "incorrect length check", "incorrect header check", "invalid window size", "bad extra field length", "header crc mismatch", "box[", " -> ", "Default", "key.forward", "key.left", "key.back", "key.right", "key.jump", "key.inventory", "key.drop", "key.chat", "key.sneak", "key.attack", "key.use", "key.playerlist", "key.pickItem", "key.sprint", "key.zoom", -"key.function", "en_US", "key.mouseButton", "options.off", "options.on", "options.graphics.fast", "options.graphics.fancy", "options.sensitivity.min", "options.sensitivity.max", "options.fov.min", "options.fov.max", "options.gamma.min", "options.gamma.max", "+", "px", "musicVolume", "soundVolume", "sensitivity", "fov", "gamma", "invertMouse", "viewDistance", "guiScale", "viewBobbing", "anaglyph", "limitFramerate", "fancyGraphics", "ambientOcclusion", "clouds", "fog", "lastServer", "language", "chatVisibility", -"chatColours", "chatLinks", "chatLinksPrompt", "chatOpacity", "fullScreen", "hideServerAddress", "advancedTooltips", "pauseOnLostFocus", "showCape", "touchscreen", "forceHeight", "forceWidth", "antialiasMode", "heldItemTooltips", "chatHeightFocused", "chatHeightUnfocused", "chatScale", "chatWidth", "options.renderDistance.far", "options.renderDistance.normal", "options.renderDistance.short", "options.renderDistance.tiny", "options.difficulty.peaceful", "options.difficulty.easy", "options.difficulty.normal", -"options.difficulty.hard", "options.guiScale.auto", "options.guiScale.small", "options.guiScale.normal", "options.guiScale.large", "options.chat.visibility.full", "options.chat.visibility.system", "options.chat.visibility.hidden", "options.particles.all", "options.particles.decreased", "options.particles.minimal", "performance.max", "performance.balanced", "performance.powersaver", "options.ao.off", "options.ao.min", "options.ao.max", "options.framebufferAntialias.none", "options.framebufferAntialias.auto", -"options.framebufferAntialias.fxaa", "options.framebufferAntialias.msaa4", "options.framebufferAntialias.msaa8", "cauldron_inner", "water", "piston_side", "redstoneDust_cross", "redstoneDust_line", "redstoneDust_cross_overlay", "redstoneDust_line_overlay", "grass_top", "grass_side", "hopper", "hopper_inside", "lightTex", "center", "postprocess", "clear", "camera", "frustrum", "sky", "culling", "updatechunks", "prepareterrain", "terrain", "entities", "litParticles", "outline", "destroyProgress", "weather", "hand", -"ambient.weather.rain", "/terrain.png", "/environment/rain.png", "/environment/snow.png", "textures/blocks/", "items", "textures/items/", "/gui/items.png", "%blur%", "%clamp%", "could not reload: ", "IHDR", "PLTE", "IDAT", "IGNORE", "REPLACE", "REPORT", "checkLight", "global", "remove", "regular", "tileEntities", "pendingTileEntities", "chunkCheck", "All: ", "buildList", "playerCheckLight", "moodSound", "ambient.cave.cave", "getBrightness", "checkedPosition < toCheckCount", "pathfind", "entityBaseTick", "tilecrack_", -"move", "rest", "liquid.swim", "random.fizz", "liquid.splash", "splash", "bubble", "generic", "entity.", ".name", "~NULL~", "%s[\'%s\'/%d, l=\'%s\', x=%.2f, y=%.2f, z=%.2f]", "mobBaseTick", "doMobLoot", "explode", "headTurn", "rangeChecks", "damage.hit", "damage.fallsmall", "damage.fallbig", "ai", "oldAi", "newAi", "jump", "travel", "push", "looting", "mobGriefing", "checkDespawn", "sensing", "targetSelector", "goalSelector", "mob tick", "controls", "look", "mobSpell", "mobSpellAmbient", "random.break", "iconcrack_", -"container.enderchest", "humanoid", "largesmoke", "portal", "random.drink", "random.eat", "keepInventory", "player", "random.levelup", "-", "This exception should not been thrown", "Can\'t avoid rounding", "achievement.get", "/achievement/bg.png", "missingno", "webassembly edition", "seenAcknowledgements", "darviglet!", "menu.singleplayer", "menu.multiplayer", "menu.voicechannel", "menu.options", "menu.editprofile", "/credits.txt", " -- file not found -- ", " ", "§neaglercraft readme.txt", "§ndebug console", -"Options", "Voice Channel", "minecraft 1.5.2 [mcp 7.11]", "eaglercraft alpha 20m06-29", "copyright 2020 calder young", "all rights reserved", "/title/bg/panorama0.png", "/title/bg/panorama1.png", "/title/bg/panorama2.png", "/title/bg/panorama3.png", "/title/bg/panorama4.png", "/title/bg/panorama5.png", "/title/mclogo.png", "/gui/demo_bg.png", "/gui/beacon.png", "Replacement preconditions do not hold", "/font/glyph_sizes.bin", "/font/glyph_%02X.png", "0123456789abcdefklmnor", "§", "LINUX", "SOLARIS", "WINDOWS", -"MACOS", "en", "CA", "fr", "zh", "CN", "FR", "de", "DE", "it", "IT", "ja", "JP", "ko", "KR", "TW", "GB", "US", "CEILING", "FLOOR", "HALF_UP", "HALF_DOWN", "HALF_EVEN", "UNNECESSARY", "Currency not found: ", "PLTE length can not be divide by 3", "TextureManager.registerTexture called, but this texture has already been registered. ignoring.", "TextureManager.createTexture: Skipping ", " because of broken aspect ratio and not animation", ".txt", "/font.txt", "#", "%blur%/misc/glint.png", "/misc/mapbg.png", "/misc/water.png", -"openInventory", "mineWood", "buildWorkBench", "buildPickaxe", "buildFurnace", "acquireIron", "buildHoe", "makeBread", "bakeCake", "buildBetterPickaxe", "cookFish", "onARail", "buildSword", "killEnemy", "killCow", "flyPig", "snipeSkeleton", "diamonds", "ghast", "blazeRod", "potion", "theEnd", "theEnd2", "enchantments", "overkill", "bookcase", " achievements", "prepare", "tileentities", "C: ", "F: ", ", O: ", ", E: ", "fps | C: ", ", U: ", "E: ", ". B: ", ", I: ", "sortchunks", "getoccl", "occl", "nearChunksSearch", -"sort", "cleanup", "trim", "hugeexplosion", "largeexplode", "fireworksSpark", "suspended", "depthsuspend", "townaura", "crit", "magicCrit", "smoke", "spell", "instantSpell", "witchMagic", "note", "enchantmenttable", "flame", "lava", "footstep", "cloud", "reddust", "snowballpoof", "dripWater", "dripLava", "snowshovel", "slime", "heart", "angryVillager", "happyVillager", "mob.wither.spawn", "mob.enderdragon.end", "random.bow", "random.door_close", "random.door_open", "mob.ghast.charge", "mob.ghast.fireball", "mob.zombie.wood", -"mob.zombie.metal", "mob.zombie.woodbreak", "mob.wither.shoot", "mob.bat.takeoff", "mob.zombie.infect", "mob.zombie.unfect", "random.anvil_break", "random.anvil_use", "random.anvil_land", "random.glass", "destroy_", "/misc/tunnel.png", "/environment/sun.png", "/environment/moon_phases.png", "/environment/clouds.png", "/particles.png", "/glsl/pvert.glsl", "\n[/glsl/pvert.glsl] ", "reloading ", " pipeline shader programs", "\n[", "][CC_FRAG] ", "][LINKER] ", "f_color", "f_depth", "ssao_kernel[0]", "eeeaglerrENOPHILEr", -"ssao_kernel[", "screenSize", "randomFloat", "f_ssao", "matrix_p_inv", "f_bloom", "direction", "randomInter", "randomInterF", "bossHealth", "expBar", "healthArmor", "food", "air", "actionBar", "sleep", "expLevel", "toolHighlight", "demo", "demo.demoExpired", "demo.remainingTime", " fps, ", " chunk updates", "x: ", ", y: ", ", z: ", "debug", "minecraft 1.5.2 (", "Used memory: ", "% (", "MB) of ", "MB", "Allocated memory: ", "MB)", " (", ") // c: ", "y: ", ") (feet pos)", "z: ", "f: ", ") / ", "opengl emulator status - v1.0", -"lists: ", ", upload: ", "mbps", "verts: ", "k, triangles: ", "k", "rendering backend: ", "opengl30", "webgl10", "glsl ", ", 32 bytes/vert", "Bound Shaders:", "/glsl/core.glsl", "overlayMessage", "chat", "playerList", "/gui/icons.png", "Now playing: ", "%blur%/misc/pumpkinblur.png", "%blur%/misc/vignette.png", "/lang/", ".lang", "newAction must be non-null", "Format error: ", "English (US)", "deathScreen.respawn", "deathScreen.titleScreen", "deathScreen.leaveServer", "deathScreen.deleteWorld", "deathScreen.title", -"deathScreen.title.hardcore", "deathScreen.hardcoreInfo", "deathScreen.score", "invalid stored block lengths", "invalid block type", "too many length or distance symbols", "invalid bit length repeat", "EAG|FetchSkin", "/skins/01.default_steve.png", "/skins/02.default_alex.png", "/skins/03.tennis_steve.png", "/skins/04.tennis_alex.png", "/skins/05.tuxedo_steve.png", "/skins/06.tuxedo_alex.png", "/skins/07.athlete_steve.png", "/skins/08.athlete_alex.png", "/skins/09.cyclist_steve.png", "/skins/10.cyclist_alex.png", -"/skins/11.boxer_steve.png", "/skins/12.boxer_alex.png", "/skins/13.prisoner_steve.png", "/skins/14.prisoner_alex.png", "/skins/15.scottish_steve.png", "/skins/16.scottish_alex.png", "/skins/17.dev_steve.png", "/skins/18.dev_alex.png", "/skins/19.herobrine.png", "/mob/enderman.png", "/mob/skeleton.png", "/mob/fire.png", "/skins/20.barney.png", "/skins/21.slime.png", "/skins/22.noob.png", "/skins/23.trump.png", "/skins/24.notch.png", "/skins/25.creeper.png", "/skins/26.zombie.png", "/skins/27.pig.png", "/skins/28.squid.png", -"/skins/29.mooshroom.png", "/mob/villager/villager.png", "/skins/30.longarms.png", "/skins/31.laxdude.png", "voice.title", "voice.connect", "voice.disconnect", "voice.addr", "voice.volume", "voice.warning1", "voice.warning2", "voice.warning3", " users listening", "voice connected", "portal.trigger", "Edit sign message:", "container.inventory", "\n#define CC_a_color\n", "#define CC_a_normal\n", "#define CC_a_texture0\n", "#define CC_a_texture1\n", "#define CC_TEX_GEN_STRQ\n", "#define CC_lighting\n", "#define CC_fog\n", -"#define CC_alphatest\n", "#define CC_unit0\n", "#define CC_unit1\n", "#define CC_patch_anisotropic\n", "\n[/glsl/core.glsl][CC_VERT] ", "broken shader file", "\n[/glsl/core.glsl][CC_FRAG] ", "\n[LINKER] ", "matrix_mn", "matrix_t", "colorUniform", "normalUniform", "light0Pos", "light1Pos", "fogColor", "fogMode", "fogStart", "fogEnd", "fogDensity", "fogPremultiply", "alphaTestF", "textureGenS_M", "textureGenT_M", "textureGenR_M", "textureGenQ_M", "textureGenS_V", "textureGenT_V", "textureGenR_V", "textureGenQ_V", -"matrix_inverse_m", "tex0", "tex1", "texCoordV0", "texCoordV1", "a_position", "a_texture0", "a_color", "a_normal", "a_texture1", "MUSIC", "options.music", "SOUND", "options.sound", "INVERT_MOUSE", "options.invertMouse", "SENSITIVITY", "options.sensitivity", "FOV", "options.fov", "GAMMA", "options.gamma", "RENDER_DISTANCE", "options.renderDistance", "VIEW_BOBBING", "options.viewBobbing", "ANAGLYPH", "options.anaglyph", "FRAMERATE_LIMIT", "options.framerateLimit", "DIFFICULTY", "options.difficulty", "GRAPHICS", -"options.graphics", "AMBIENT_OCCLUSION", "options.ao", "GUI_SCALE", "options.guiScale", "RENDER_CLOUDS", "options.renderClouds", "PARTICLES", "options.particles", "CHAT_VISIBILITY", "options.chat.visibility", "CHAT_COLOR", "options.chat.color", "CHAT_LINKS", "options.chat.links", "CHAT_OPACITY", "options.chat.opacity", "CHAT_LINKS_PROMPT", "options.chat.links.prompt", "USE_SERVER_TEXTURES", "options.serverTextures", "SNOOPER_ENABLED", "options.snooper", "USE_FULLSCREEN", "options.fullscreen", "ENABLE_VSYNC", -"options.vsync", "ENABLE_FOG", "options.fog", "SHOW_CAPE", "options.showCape", "ANTIALIASING", "options.framebufferAntialias", "CHAT_SCALE", "options.chat.scale", "CHAT_WIDTH", "options.chat.width", "CHAT_HEIGHT_FOCUSED", "options.chat.height.focused", "CHAT_HEIGHT_UNFOCUSED", "options.chat.height.unfocused", " II", " III", " IV", "**:**", "/gui/inventory.png", "container.crafting", "MpServer", "reEntryProcessing", "connection", "chunkCache", "tiles", "getChunk", "Quitting", "multiplayer.stopSleeping", "Positive number pattern not found in ", -"Expected \';\' at ", " in ", "Prefix contains special character at ", "Quote opened at ", " was not closed in ", "Two group separators at ", "Unexpected \'#\' at non-optional digit part at ", "Pattern does not specify integer digits at ", "Group separator at the end of number at ", "Group separator found at fractional part at ", "Unexpected second decimal separator at ", "Unexpected \'0\' at optional digit part at ", "Unexpected char at exponent at ", "Pattern does not specify exponent digits at ", ".png", -"Couldn\'t find premade icon for ", " doing ", "Found animation info for: ", "debug.stitched_", "Don\'t register null!", "followpath", "stroll", "mob", "mob.spider.say", "mob.spider.death", "mob.spider.step", "%clamp%/misc/shadow.png", "deadmau5", "/mob/spider_eyes.png", "/mob/spider.png", "/mob/cavespider.png", "mob.pig.say", "mob.pig.death", "mob.pig.step", "/mob/saddle.png", "/mob/pig.png", "mob.sheep.shear", "mob.sheep.say", "mob.sheep.step", "/mob/sheep_fur.png", "/mob/sheep.png", "mob.cow.say", "mob.cow.hurt", -"mob.cow.step", "/mob/cow.png", "/mob/redcow.png", "mob.wolf.step", "mob.wolf.growl", "mob.wolf.bark", "mob.wolf.whine", "mob.wolf.panting", "mob.wolf.hurt", "mob.wolf.death", "mob.wolf.shake", "/mob/wolf_collar.png", "/mob/wolf.png", "/mob/wolf_angry.png", "/mob/wolf_tame.png", "mob.chicken.plop", "mob.chicken.say", "mob.chicken.hurt", "mob.chicken.step", "/mob/chicken.png", "mob.cat.purr", "mob.cat.meow", "mob.cat.purreow", "mob.cat.hitt", "entity.Cat.name", "/mob/ozelot.png", "/mob/cat_black.png", "/mob/cat_red.png", -"/mob/cat_siamese.png", "head.main", "head.nose", "head.ear1", "head.ear2", "head", "nose", "ear1", "ear2", "mob.silverfish.say", "mob.silverfish.hit", "mob.silverfish.kill", "mob.silverfish.step", "/mob/silverfish.png", "random.fuse", "mob.creeper.say", "mob.creeper.death", "/armor/power.png", "/mob/creeper.png", "mob.endermen.stare", "mob.endermen.portal", "mob.endermen.idle", "mob.endermen.scream", "mob.endermen.hit", "mob.endermen.death", "/mob/enderman_eyes.png", "none", "/mob/snowman.png", "mob.skeleton.say", -"mob.skeleton.hurt", "mob.skeleton.death", "mob.skeleton.step", "/armor/", "_b.png", "SkullOwner", "cloth", "chain", "iron", "diamond", "gold", "/mob/skeleton_wither.png", "mob.witch.idle", "mob.witch.hurt", "mob.witch.death", "/mob/villager/witch.png", "mob.blaze.breathe", "mob.blaze.hit", "mob.blaze.death", "fire.fire", "mob.zombie.say", "mob.zombie.hurt", "mob.zombie.death", "mob.zombie.step", "mob.zombie.remedy", "/mob/zombie.png", "/mob/pigzombie.png", "/mob/zombie_villager.png", "mob.slime.", "small", -"big", "/mob/slime.png", "mob.magmacube.small", "mob.magmacube.big", "Loaded new lava slime model", "/mob/lava.png", "LAX1DUDE", "/misc/laxcape.png", "/mob/char.png", "fireball", "mob.ghast.moan", "mob.ghast.scream", "mob.ghast.death", "/mob/ghast.png", "/mob/ghast_fire.png", "/mob/squid.png", "mob.villager.default", "mob.villager.defaulthurt", "mob.villager.defaultdeath", "/mob/villager/farmer.png", "/mob/villager/librarian.png", "/mob/villager/priest.png", "/mob/villager/smith.png", "/mob/villager/butcher.png", -"mob.irongolem.throw", "mob.irongolem.hit", "mob.irongolem.death", "mob.irongolem.walk", "/mob/villager_golem.png", "mob.bat.idle", "mob.bat.hurt", "mob.bat.death", "/mob/bat.png", "body", "tail", "wing", "mob.enderdragon.wings", "mob.enderdragon.growl", "mob.enderdragon.hit", "/mob/enderdragon/shuffle.png", "/mob/enderdragon/beam.png", "/mob/enderdragon/ender_eyes.png", "/mob/enderdragon/ender.png", "/mob/enderdragon/crystal.png", "mob.wither.idle", "mob.wither.hurt", "mob.wither.death", "/armor/witherarmor.png", -"/mob/wither.png", "/mob/wither_invul.png", "/art/kz.png", "itemframe_back", "random.bowhit", "random.pop", "/item/arrows.png", "thrown", "potion_splash", "potion_contents", "CONFLICT @ ", "item.", "shovelIron", "pickaxeIron", "hatchetIron", "flintAndSteel", "apple", "bow", "arrow", "coal", "ingotIron", "ingotGold", "swordIron", "swordWood", "shovelWood", "pickaxeWood", "hatchetWood", "swordStone", "shovelStone", "pickaxeStone", "hatchetStone", "swordDiamond", "shovelDiamond", "pickaxeDiamond", "hatchetDiamond", -"stick", "bowl", "mushroomStew", "swordGold", "shovelGold", "pickaxeGold", "hatchetGold", "string", "feather", "sulphur", "hoeWood", "hoeStone", "hoeIron", "hoeDiamond", "hoeGold", "seeds", "wheat", "bread", "helmetCloth", "chestplateCloth", "leggingsCloth", "bootsCloth", "helmetChain", "chestplateChain", "leggingsChain", "bootsChain", "helmetIron", "chestplateIron", "leggingsIron", "bootsIron", "helmetDiamond", "chestplateDiamond", "leggingsDiamond", "bootsDiamond", "helmetGold", "chestplateGold", "leggingsGold", -"bootsGold", "flint", "porkchopRaw", "porkchopCooked", "painting", "appleGold", "sign", "doorWood", "bucket", "bucketWater", "bucketLava", "minecart", "saddle", "doorIron", "redstone", "snowball", "boat", "leather", "milk", "brick", "clay", "reeds", "paper", "book", "slimeball", "minecartChest", "minecartFurnace", "egg", "compass", "fishingRod", "clock", "yellowDust", "fishRaw", "fishCooked", "dyePowder", "bone", "sugar", "cake", "bed", "diode", "cookie", "map", "shears", "melon", "seeds_pumpkin", "seeds_melon", -"beefRaw", "beefCooked", "chickenRaw", "chickenCooked", "rottenFlesh", "enderPearl", "ghastTear", "+0-1-2-3&4-4+13", "goldNugget", "netherStalkSeeds", "+4", "glassBottle", "spiderEye", "fermentedSpiderEye", "blazePowder", "magmaCream", "brewingStand", "cauldron", "eyeOfEnder", "speckledMelon", "monsterPlacer", "expBottle", "writingBook", "writtenBook", "emerald", "frame", "flowerPot", "carrots", "potato", "potatoBaked", "potatoPoisonous", "emptyMap", "carrotGolden", "skull", "carrotOnAStick", "netherStar", "pumpkinPie", -"fireworks", "fireworksCharge", "enchantedBook", "comparator", "netherbrick", "netherquartz", "minecartTnt", "minecartHopper", "13", "record", "cat", "blocks", "chirp", "far", "mall", "mellohi", "stal", "strad", "ward", "11", "wait", "Fireworks", "Flight", "fireworks.launch", "onFire", "Item entity ", " has no item?!", "random.orb", "/item/xporb.png", "x", "y", "z", "/item/cart.png", "/item/boat.png", "random.splash", "ambient.weather.thunder", "random.explode", "/misc/mapicons.png", "########0.00", "achievement.", -".desc", "[CHAT] ", "BLACK", "DARK_BLUE", "DARK_GREEN", "DARK_AQUA", "DARK_RED", "DARK_PURPLE", "GOLD", "GRAY", "DARK_GRAY", "BLUE", "GREEN", "AQUA", "RED", "LIGHT_PURPLE", "YELLOW", "WHITE", "OBFUSCATED", "BOLD", "STRIKETHROUGH", "ITALIC", "RESET", "(?i)", "[0-9A-FK-OR]", "oversubscribed dynamic bit lengths tree", "incomplete dynamic bit lengths tree", "oversubscribed distance tree", "incomplete distance tree", "empty distance tree with lengths", "oversubscribed literal/length tree", "incomplete literal/length tree", -"invalid distance code", "invalid literal/length code", "/gui/particles.png", "TILE", "ENTITY", "id", "Count", "Damage", "tag", "ench", "Name", "#%04d%s", "#%04d/%d%s", " #", "lvl", "color", "item.dyed", "Color: #", "Lore", "Durability: ", " / ", "RepairCost", "Slot ", " is already occupied by ", " when adding ", "doTileDrops", "tile.", "stone", "wood", "gravel", "grass", "sand", "snow", "ladder", "anvil", "methamphetamine", "dirt", "stonebrick", "sapling", "bedrock", "oreGold", "oreIron", "oreCoal", "log", -"leaves", "sponge", "glass", "oreLapis", "blockLapis", "dispenser", "sandStone", "musicBlock", "goldenRail", "detectorRail", "pistonStickyBase", "web", "tallgrass", "deadbush", "pistonBase", "flower", "rose", "mushroom_brown", "mushroom", "mushroom_red", "blockGold", "blockIron", "stoneSlab", "tnt", "bookshelf", "stoneMoss", "obsidian", "torch", "fire", "mobSpawner", "stairsWood", "chest", "redstoneDust", "oreDiamond", "blockDiamond", "workbench", "crops", "farmland", "furnace", "rail", "stairsStone", "lever", -"pressurePlate", "oreRedstone", "notGate", "button", "ice", "cactus", "jukebox", "fence", "pumpkin", "hellrock", "hellsand", "lightgem", "litpumpkin", "lockedchest", "trapdoor", "monsterStoneEgg", "stonebricksmooth", "fenceIron", "thinglass_top", "thinGlass", "pumpkinStem", "vine", "fenceGate", "stairsBrick", "stairsStoneBrickSmooth", "mycel", "waterlily", "netherBrick", "netherFence", "stairsNetherBrick", "netherStalk", "enchantmentTable", "endPortalFrame", "whiteStone", "dragonEgg", "redstoneLight", "woodSlab", -"cocoa", "stairsSandStone", "oreEmerald", "enderChest", "tripWireSource", "tripWire", "blockEmerald", "stairsWoodSpruce", "stairsWoodBirch", "stairsWoodJungle", "commandBlock", "beacon", "cobbleWall", "potatoes", "chestTrap", "weightedPlate_light", "weightedPlate_heavy", "daylightDetector", "blockRedstone", "quartzBlock", "stairsQuartz", "activatorRail", "dropper", "shrub", "fern", "Listener already listening", "Skipping Entity with id ", "Item", "XPOrb", "Painting", "Arrow", "Snowball", "Fireball", "SmallFireball", -"ThrownEnderpearl", "EyeOfEnderSignal", "ThrownPotion", "ThrownExpBottle", "ItemFrame", "WitherSkull", "PrimedTnt", "FallingSand", "FireworksRocketEntity", "Boat", "MinecartRideable", "MinecartChest", "MinecartFurnace", "MinecartTNT", "MinecartHopper", "MinecartSpawner", "Mob", "Monster", "Spider", "Ghast", "PigZombie", "CaveSpider", "Silverfish", "LavaSlime", "EnderDragon", "WitherBoss", "Bat", "Witch", "Sheep", "Cow", "Chicken", "Wolf", "MushroomCow", "SnowMan", "Ozelot", "VillagerGolem", "EnderCrystal", "/gui/unknown_pack.png", -"default", "/pack.png", "The default look of Minecraft", "The last float in dst ", "body.body", "wing.skin", "wingtip.skin", "rearleg.main", "rearfoot.main", "rearlegtip.main", "head.upperhead", "wing.bone", "head.upperlip", "jaw.jaw", "frontleg.main", "wingtip.bone", "frontfoot.main", "neck.box", "frontlegtip.main", "body.scale", "head.scale", "neck.scale", "head.nostril", "upperlip", "upperhead", "scale", "nostril", "jaw", "neck", "box", "skin", "wingtip", "frontleg", "frontlegtip", "frontfoot", "rearleg", -"rearlegtip", "rearfoot", "WOOD", "STONE", "IRON", "EMERALD", "fire.ignite", "random.burp", "bow_pull_0", "bow_pull_1", "bow_pull_2", "itemGroup.", "list_items.png", "buildingBlocks", "decorations", "transportation", "misc", "search", "search.png", "tools", "combat", "brewing", "materials", "inventory", "survival_inv.png", "item.coal", "item.charcoal", "0 & !1 & !2 & !3 & 0+6", "-0+1-2-3&4-4+13", "!0 & 1 & !2 & !3 & 1+6", "+0+1-2-3&4-4+13", "0 & 1 & !2 & !3 & 0+6", "+0-1+2-3&4-4+13", "0 & !1 & 2 & !3", "-0-1+2-3&4-4+13", -"!0 & !1 & 2 & !3 & 2+6", "-0+3-4+13", "!0 & !1 & !2 & 3 & 3+6", "!0 & !1 & 2 & 3", "!0 & 1 & !2 & 3 & 3+6", "+0-1-2+3&4-4+13", "0 & !1 & !2 & 3 & 3+6", "-0+1+2-3+13&4-4", "!0 & 1 & 2 & !3 & 2+6", "!0 & 1 & 2 & 3 & 2+6", "+5-6-7", "-5+6-7", "+14&13-13", "potion.prefix.mundane", "potion.prefix.uninteresting", "potion.prefix.bland", "potion.prefix.clear", "potion.prefix.milky", "potion.prefix.diffuse", "potion.prefix.artless", "potion.prefix.thin", "potion.prefix.awkward", "potion.prefix.flat", "potion.prefix.bulky", -"potion.prefix.bungling", "potion.prefix.buttered", "potion.prefix.smooth", "potion.prefix.suave", "potion.prefix.debonair", "potion.prefix.thick", "potion.prefix.elegant", "potion.prefix.fancy", "potion.prefix.charming", "potion.prefix.dashing", "potion.prefix.refined", "potion.prefix.cordial", "potion.prefix.sparkling", "potion.prefix.potent", "potion.prefix.foul", "potion.prefix.odorless", "potion.prefix.rank", "potion.prefix.harsh", "potion.prefix.acrid", "potion.prefix.gross", "potion.prefix.stinky", "Can\'t dye non-leather!", -"helmetCloth_overlay", "chestplateCloth_overlay", "leggingsCloth_overlay", "bootsCloth_overlay", "slot_empty_helmet", "slot_empty_chestplate", "slot_empty_leggings", "slot_empty_boots", "CLOTH", "CHAIN", "DIAMOND", "indirectMagic", "potion.moveSpeed", "potion.moveSlowdown", "potion.digSpeed", "potion.digSlowDown", "potion.damageBoost", "potion.heal", "potion.harm", "potion.jump", "potion.confusion", "potion.regeneration", "potion.resistance", "potion.fireResistance", "potion.waterBreathing", "potion.invisibility", -"potion.blindness", "potion.nightVision", "potion.hunger", "potion.weakness", "potion.poison", "potion.wither", "liquid.water", "liquid.lava", "liquid.lavapop", "water_flow", "lava_flow", "fishingRod_empty", "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white", "dyePowder_black", "dyePowder_red", "dyePowder_green", "dyePowder_brown", "dyePowder_blue", "dyePowder_purple", "dyePowder_cyan", "dyePowder_silver", "dyePowder_gray", -"dyePowder_pink", "dyePowder_lime", "dyePowder_yellow", "dyePowder_lightBlue", "dyePowder_magenta", "dyePowder_orange", "dyePowder_white", "map_", "map_is_scaling", "Unknown map", "Scaling at 1:", "(Level ", "CustomPotionEffects", "Id", "Amplifier", "Duration", "Ambient", "item.emptyPotion.name", "potion.prefix.grenade", ".postfix", "potion.potency.", "potion.empty", "monsterPlacer_overlay", "title", "author", "book.byAuthor", "item.skull.player.name", "skeleton", "wither", "zombie", "char", "creeper", "skull_skeleton", -"skull_wither", "skull_zombie", "skull_char", "skull_creeper", "item.fireworks.flight", "Explosions", " ", "Explosion", "Colors", "Type", "item.fireworksCharge.type.", "item.fireworksCharge.type", "item.fireworksCharge.", "item.fireworksCharge.customColor", "FadeColors", "item.fireworksCharge.fadeTo", "Trail", "item.fireworksCharge.trail", "Flicker", "item.fireworksCharge.flicker", "fireworksCharge_overlay", "StoredEnchantments", "C418 - ", "record_", "Patter is null", "\\Q", "\\E", "\\\\E\\Q", "dig.", "step.", -"step.stone", "dig.wood", "dig.stone", "snow_side", "grass_side_overlay", "oak", "spruce", "birch", "jungle", "wood_spruce", "wood_birch", "wood_jungle", "sapling_spruce", "sapling_birch", "sapling_jungle", "tree_top", "tree_side", "tree_spruce", "tree_birch", "tree_jungle", "leaves_spruce", "leaves_jungle", "leaves_opaque", "leaves_spruce_opaque", "leaves_jungle_opaque", "furnace_side", "furnace_top", "dispenser_front", "dispenser_front_vertical", "sandstone_top", "sandstone_bottom", "chiseled", "smooth", "sandstone_side", -"sandstone_carved", "sandstone_smooth", "harp", "bd", "snare", "hat", "bassattack", "note.", "tile.bed.noSleep", "tile.bed.notSafe", "tile.bed.occupied", "bed_feet_top", "bed_head_top", "bed_feet_end", "bed_head_end", "bed_feet_side", "bed_head_side", "_powered", "detectorRail_on", "piston_top", "piston_top_sticky", "piston_inner_top", "piston_bottom", "tile.piston.out", "tile.piston.in", "cloth_", "stoneslab_top", "stoneslab_side", "cobble", "smoothStoneBrick", "quartz", "tnt_side", "tnt_top", "tnt_bottom", -"fire_0", "fire_1", "container.chestDouble", "workbench_side", "workbench_top", "workbench_front", "crops_", "farmland_wet", "farmland_dry", "furnace_front", "furnace_front_lit", "Duplicate id: ", " is missing a mapping! This is a bug!", "Furnace", "Chest", "EnderChest", "RecordPlayer", "Trap", "Dropper", "Sign", "MobSpawner", "Music", "Piston", "Cauldron", "EnchantTable", "Airportal", "Control", "Beacon", "Skull", "DLDetector", "Hopper", "Comparator", "Text1", "Text2", "Text3", "Text4", "Text", "doorWood_lower", -"doorWood_upper", "doorIron_lower", "doorIron_upper", "rail_turn", "everything", "mobs", "players", "redtorch", "redtorch_lit", "cactus_side", "cactus_top", "cactus_bottom", "jukebox_top", "pumpkin_face", "pumpkin_jack", "pumpkin_top", "pumpkin_side", "portal.portal", "cake_side", "cake_inner", "cake_top", "cake_bottom", "repeater", "repeater_lit", "mossy", "cracked", "stonebricksmooth_mossy", "stonebricksmooth_cracked", "stonebricksmooth_carved", "mushroom_inside", "mushroom_skin_stem", "mushroom_skin_brown", -"mushroom_skin_red", "melon_side", "melon_top", "stem_straight", "stem_bent", "mycel_side", "mycel_top", "netherStalk_0", "netherStalk_1", "netherStalk_2", "enchantment_side", "enchantment_top", "enchantment_bottom", "brewingStand_base", "cauldron_top", "cauldron_bottom", "cauldron_side", "endframe_side", "endframe_top", "endframe_eye", "redstoneLight_lit", "cocoa_0", "cocoa_1", "cocoa_2", "normal", "carrots_", "potatoes_", "anvil_base", "intact", "slightlyDamaged", "veryDamaged", "anvil_top", "anvil_top_damaged_1", -"anvil_top_damaged_2", "comparator_lit", "daylightDetector_top", "daylightDetector_side", "hopper_top", "quartzblock_top", "quartzblock_chiseled_top", "quartzblock_lines_top", "quartzblock_bottom", "lines", "quartzblock_side", "quartzblock_chiseled", "quartzblock_lines", "dropper_front", "dropper_front_vertical", "container.minecart", "mob.zombiepig.zpigangry", "mob.zombiepig.zpig", "mob.zombiepig.zpighurt", "mob.zombiepig.zpigdeath", "�", "averageCharsPerByte must be positive. Actual value is ", "maxCharsPerByte must be positive. Actual value is ", -"<", ">", "fSet", "Is", "In", "NonCapFSet", "AheadFSet", "BehindFSet", "AtomicFSet", "FinalSet", "", "JointSet", "NonCapJointSet", "PosLookaheadJointSet", "NegLookaheadJointSet", "PosBehindJointSet", "NegBehindJointSet", "", "", "{", "}", "posFSet", "range:", "^ ", "CompositeRangeSet: ", " ", "UCI range:", "decomposed Hangul syllable:", "UCI ", "CI ", "decomposed char:", "", "", "", "WordBoundary", "PreviousMatch", "", -"EOI", "^", "DotAll", "", "", "CI back reference: ", "back reference: ", "UCI back reference: ", "sequence: ", "UCI sequence: ", "CI sequence: ", "Lower", "Upper", "ASCII", "Alpha", "Digit", "Alnum", "Punct", "Graph", "Print", "Blank", "Cntrl", "XDigit", "javaLowerCase", "javaUpperCase", "javaWhitespace", "javaMirrored", "javaDefined", "javaDigit", "javaIdentifierIgnorable", "javaISOControl", "javaJavaIdentifierPart", "javaJavaIdentifierStart", "javaLetter", "javaLetterOrDigit", -"javaSpaceChar", "javaTitleCase", "javaUnicodeIdentifierPart", "javaUnicodeIdentifierStart", "Space", "w", "s", "d", "BasicLatin", "Latin-1Supplement", "LatinExtended-A", "LatinExtended-B", "IPAExtensions", "SpacingModifierLetters", "CombiningDiacriticalMarks", "Greek", "Cyrillic", "CyrillicSupplement", "Armenian", "Hebrew", "Arabic", "Syriac", "ArabicSupplement", "Thaana", "Devanagari", "Bengali", "Gurmukhi", "Gujarati", "Oriya", "Tamil", "Telugu", "Kannada", "Malayalam", "Sinhala", "Thai", "Lao", "Tibetan", -"Myanmar", "Georgian", "HangulJamo", "Ethiopic", "EthiopicSupplement", "Cherokee", "UnifiedCanadianAboriginalSyllabics", "Ogham", "Runic", "Tagalog", "Hanunoo", "Buhid", "Tagbanwa", "Khmer", "Mongolian", "Limbu", "TaiLe", "NewTaiLue", "KhmerSymbols", "Buginese", "PhoneticExtensions", "PhoneticExtensionsSupplement", "CombiningDiacriticalMarksSupplement", "LatinExtendedAdditional", "GreekExtended", "GeneralPunctuation", "SuperscriptsandSubscripts", "CurrencySymbols", "CombiningMarksforSymbols", "LetterlikeSymbols", -"NumberForms", "Arrows", "MathematicalOperators", "MiscellaneousTechnical", "ControlPictures", "OpticalCharacterRecognition", "EnclosedAlphanumerics", "BoxDrawing", "BlockElements", "GeometricShapes", "MiscellaneousSymbols", "Dingbats", "MiscellaneousMathematicalSymbols-A", "SupplementalArrows-A", "BraillePatterns", "SupplementalArrows-B", "MiscellaneousMathematicalSymbols-B", "SupplementalMathematicalOperators", "MiscellaneousSymbolsandArrows", "Glagolitic", "Coptic", "GeorgianSupplement", "Tifinagh", "EthiopicExtended", -"SupplementalPunctuation", "CJKRadicalsSupplement", "KangxiRadicals", "IdeographicDescriptionCharacters", "CJKSymbolsandPunctuation", "Hiragana", "Katakana", "Bopomofo", "HangulCompatibilityJamo", "Kanbun", "BopomofoExtended", "CJKStrokes", "KatakanaPhoneticExtensions", "EnclosedCJKLettersandMonths", "CJKCompatibility", "CJKUnifiedIdeographsExtensionA", "YijingHexagramSymbols", "CJKUnifiedIdeographs", "YiSyllables", "YiRadicals", "ModifierToneLetters", "SylotiNagri", "HangulSyllables", "HighSurrogates", "HighPrivateUseSurrogates", -"LowSurrogates", "PrivateUseArea", "CJKCompatibilityIdeographs", "AlphabeticPresentationForms", "ArabicPresentationForms-A", "VariationSelectors", "VerticalForms", "CombiningHalfMarks", "CJKCompatibilityForms", "SmallFormVariants", "ArabicPresentationForms-B", "HalfwidthandFullwidthForms", "all", "Specials", "Cn", "IsL", "Lu", "Ll", "Lt", "Lm", "Lo", "IsM", "Mn", "Me", "Mc", "Nd", "Nl", "No", "IsZ", "Zs", "Zl", "Zp", "IsC", "Cc", "Cf", "Co", "Cs", "IsP", "Pd", "Ps", "Pe", "Pc", "Po", "IsS", "Sm", "Sc", "Sk", -"So", "Pi", "Pf", "SkullType", "Rot", "ExtraType", "(", "menu.returnToMenu", "menu.disconnect", "menu.returnToGame", "menu.shareToLan", "Game menu", "rebuild", "upload", "inventory.binSlot", "/gui/creative_inv/", "tmp", "/gui/allitems.png", "Invalid call to Particle.setTex, use coordinate methods", ", Pos (", "), RGBA (", "), Age ", "Overflow", "Underflow", "Negative bit address", "Negative exponent", "BigInteger divide by zero", "/achievement/map.txt", "Please avoid temperatures in the range 0.1 - 0.2 because of snow", -"Ocean", "Plains", "Desert", "Extreme Hills", "Forest", "Taiga", "Swampland", "River", "Hell", "Sky", "FrozenOcean", "FrozenRiver", "Ice Plains", "Ice Mountains", "MushroomIsland", "MushroomIslandShore", "Beach", "DesertHills", "ForestHills", "TaigaHills", "Extreme Hills Edge", "Jungle", "JungleHills", "This method should only be called for matching effects!", ", Duration: ", " x ", ", Splash: true", "power of ten too big", "Unknown data type: ", "Data value id is too big with ", "! (Max is ", "Duplicate id value for ", -"!", "SIZE_1", "SIZE_2", "SIZE_3", "SIZE_4", "SIZE_5", "SIZE_6", "/glsl/fxaa.glsl", "\n[/glsl/fxaa.glsl] ", "\n[/glsl/fxaa.glsl][LINKER] ", "Invalid shader code", ":0", "(?i)\\u00A7[0-9A-FK-OR]", "SOUTH", "WEST", "NORTH", "EAST", "disconnect.kicked", "disconnect.disconnected", "disconnect.genericReason", "disconnect.closed", "Unable to locate sign at ", "demo.help.jump", "demo.help.inventory", "demo.help.movement", "random.successful_hit", "Unknown itemid: ", "\u0000", "MC|TrList", "EAG|UserSkin", "Name cannot be null", -"Prefix cannot be null", "Suffix cannot be null", "001", "ERA=", "YEAR=", "MONTH=", "WEEK_OF_YEAR=", "WEEK_OF_MONTH=", "DAY_OF_MONTH=", "DAY_OF_YEAR=", "DAY_OF_WEEK=", "DAY_OF_WEEK_IN_MONTH=", "AM_PM=", "HOUR=", "HOUR_OF_DAY", "MINUTE=", "SECOND=", "MILLISECOND=", "ZONE_OFFSET=", "DST_OFFSET=", "chat.link.confirm", "chat.link.confirmTrusted", "gui.yes", "gui.no", "chat.link.open", "gui.cancel", "chat.copy", "chat.link.warning", "TextureHolder{width=", ", height=", "transferFromImage called with a BufferedImage with dimensions (", -") larger than the Texture dimensions (", "). Ignoring.", "Failed to read animation info for ", "An objective with the name \'", "\' already exists!", "Player is either on another team or not on any team. Cannot remove from team \'", "\'.", "^(?:(https?)://)?([-\\w_\\.]{2,}\\.[a-z]{2,4})(/\\S*)?$", "Slot{originX=", ", originY=", ", width=", ", texture=", ", subSlots=", "Duplicate enchantment id!", "enchantment.", "enchantment.level.", "oxygen", "waterWorker", "thorns", "knockback", "lootBonus", "lootBonusDigger", -"digging", "untouching", "durability", "arrowDamage", "arrowKnockback", "arrowFire", "arrowInfinite", "UTC", "GMT", "00", "tile.bed.notValid", "gameMode.changed", "Payload may not be larger than 32k", "Key was smaller than nothing! Weird key!", "enchantment.protect.", "fall", "explosion", "projectile", "damage.thorns", "enchantment.damage.", "undead", "arthropods", "armor", "armor_feet", "armor_legs", "armor_torso", "armor_head", "weapon", "digger", "Id must not be null", "Unknown zone type: ", "Unknown mode: ", -"GMT+00:00", "common", "Common", "uncommon", "Uncommon", "rare", "Rare", "epic", "Epic", "options.title", "options.difficulty.hardcore", "options.video", "options.controls", "options.language", "options.multiplayer.title", "options.texture.pack", "options.snooper.view", "Video Settings", "Controls", "options.languageWarning", "selectServer.edit", "selectServer.delete", "selectServer.select", "selectServer.direct", "selectServer.add", "selectServer.refresh", "selectServer.deleteQuestion", "\'", "\' ", "selectServer.deleteWarning", -"selectServer.deleteButton", "selectServer.defaultName", "multiplayer.title", "eat", "drink", "block", "> ", " <", "/item/sign.png", "blockId", "blockData", "facing", "progress", "extending", "container.chest", "Items", "CustomName", "Slot", "random.chestopen", "random.chestclosed", "/item/chests/trap_small.png", "/item/xmaschest.png", "/item/chest.png", "/item/chests/trap_large.png", "/item/largexmaschest.png", "/item/largechest.png", "/item/enderchest.png", "container.enchant", "/item/book.png", "/misc/particlefield.png", -"Primary", "Secondary", "Levels", "/misc/beam.png", "Malformed input of length ", "Unmappable characters of length ", "Wrong location! ", "options.videoTitle", "options.farWarning1", "options.farWarning2", "controls.title", "??? ", "options.chat.title", "ar_SA", "he_IL", "selectServer.hiddenAddress", "Server out of date!", "Client out of date!", "(no connection)", "3rd party", "addServer.enterIp", "addServer.add", "addServer.hideAddress", "addServer.title", "addServer.enterName", "frame-", "icon-", "--#+ 0,(<", -"Illegal format flags ", " for conversion ", "Unknown format conversion: ", "false", "true", "Illegal precision: ", "Can\'t format argument of ", " using ", " conversion", "Can\'t convert code point ", " to char", "0x", "Illegal format flags: ", "+ ", "0-", "Missing format with for specifier ", "Duplicate format flags: ", "ws://", "wss://", "://", "invalid uri websocket protocol", "connect.failed", "wss", "invalid port number", "could not connect to ", "EAG|MySkin", "connect.connecting", "connect.authorizing", -"container.furnace", "BurnTime", "CookTime", "RecordItem", "Record", "container.dispenser", "container.dropper", "container.brewing", "BrewTime", "Command", "SuccessCount", "TransferCooldown", "container.hopper", "OutputSignal", "explosion.player", "inFire", "inWall", "drown", "starve", "outOfWorld", "magic", "fallingBlock", "Can\'t set null data", "fail", "websocket to ", " failed", "okay", "Block", "cube", "base", "Kebab", "Aztec", "Alban", "Aztec2", "Bomb", "Plant", "Wasteland", "Pool", "Courbet", "Sea", -"Sunset", "Creebet", "Wanderer", "Graham", "Match", "Bust", "Stage", "Void", "SkullAndRoses", "Wither", "Fighters", "Pointer", "Pigscene", "BurningSkull", "DonkeyKong", "flat", "largeBiomes", "default_1_1", "NOT_SET", "SURVIVAL", "survival", "CREATIVE", "creative", "ADVENTURE", "adventure", "doFireTick", "doMobSpawning", "commandBlockOutput", "vines", "/title/win.txt", "PLAYERNAME", "XXXXXXXX", "/title/credits.txt", "\t", " ", "[C]", "%blur%/gui/background.png", "multiplayer.downloadingTerrain", "entity.Villager.name", -"MC|TrSel", "/gui/trading.png", "dummy", "deathCount", "playerKillCount", "totalKillCount", "health", "###", "#W#", "#X#", "XXX", "##", "X#X", "# #", " X ", "AAA", "BEB", "CCC", " # ", "X X", "XRX", "XSX", " B ", "A ", " B", "# ", "## ", " #", " #X", "# X", "# ", " X", "III", "#R#", "TTT", "D#D", " i ", "iii", "GGG", "QQQ", "WWW", "I I", "ICI", " I ", " recipes", "Invalid shapeless recipy!", "MultiplayerChunkCache: ", "XX", "X#", "MMM", "#-", "#E#", " R ", "RGR", "GSG", "OOO", "NN", "/gui/container.png", "/gui/crafting.png", -"MC|Beacon", "tile.beacon.primary", "tile.beacon.secondary", "container.repair", "container.repair.cost", "container.repair.expensive", "MC|ItemName", "/gui/repair.png", "/gui/trap.png", "/gui/hopper.png", "/gui/alchemy.png", "/gui/enchant.png", "/gui/furnace.png", "OK", "NOT_POSSIBLE_HERE", "NOT_POSSIBLE_NOW", "TOO_FAR_AWAY", "OTHER_PROBLEM", "NOT_SAFE", "minecart.base", "minecart.inside", "Repair", "Naming an item only, cost too high; giving discount to cap cost to 39 levels", "Enchant", "finished", "failed to deflate", -"UNDEFINED", "UNDEAD", "ARTHROPOD", "Done", "MC|AdvCdm", "advMode.setCommand", "advMode.command", "advMode.nearestPlayer", "advMode.randomPlayer", "advMode.allPlayers", "/misc/footprint.png", "/misc/explosion.png", "fireworks.", "blast", "largeBlast", "_far", "twinkle", "twinkle_far", "stream end", "file error", "stream error", "data error", "insufficient memory", "buffer error", "incompatible version", "the elder scrolls klaatu berata niktu xyzzy bless curse light darkness fire air earth water hot dry cold wet ignite snuff embiggen twist shorten stretch fiddle destroy imbue galvanize enchant free limited range of towards inside sphere cube self other ball mental physical grow shrink demon elemental spirit animal creature beast humanoid undead fresh stale ", -"pages", "book.signButton", "book.finalizeButton", "MC|BEdit", "MC|BSign", "book.editTitle", "book.finalizeWarning", "book.pageIndicator", "/gui/book.png", "OW KNOWS!"]); -jl_String.prototype.toString = function() { - return $rt_ustr(this); -}; -jl_String.prototype.valueOf = jl_String.prototype.toString; -jl_Object.prototype.toString = function() { - return $rt_ustr(jl_Object_toString(this)); -}; -jl_Object.prototype.__teavm_class__ = function() { - return $dbg_class(this); -}; -function Long_eq(a, b) { - return a.hi === b.hi && a.lo === b.lo; -} -function Long_ne(a, b) { - return a.hi !== b.hi || a.lo !== b.lo; -} -function Long_gt(a, b) { - if (a.hi < b.hi) { - return false; - } - if (a.hi > b.hi) { - return true; - } - var x = a.lo >>> 1; - var y = b.lo >>> 1; - if (x !== y) { - return x > y; - } - return (a.lo & 1) > (b.lo & 1); -} -function Long_ge(a, b) { - if (a.hi < b.hi) { - return false; - } - if (a.hi > b.hi) { - return true; - } - var x = a.lo >>> 1; - var y = b.lo >>> 1; - if (x !== y) { - return x >= y; - } - return (a.lo & 1) >= (b.lo & 1); -} -function Long_lt(a, b) { - if (a.hi > b.hi) { - return false; - } - if (a.hi < b.hi) { - return true; - } - var x = a.lo >>> 1; - var y = b.lo >>> 1; - if (x !== y) { - return x < y; - } - return (a.lo & 1) < (b.lo & 1); -} -function Long_le(a, b) { - if (a.hi > b.hi) { - return false; - } - if (a.hi < b.hi) { - return true; - } - var x = a.lo >>> 1; - var y = b.lo >>> 1; - if (x !== y) { - return x <= y; - } - return (a.lo & 1) <= (b.lo & 1); -} -function Long_add(a, b) { - if (a.hi === a.lo >> 31 && b.hi === b.lo >> 31) { - return Long_fromNumber(a.lo + b.lo); - } else if (Math.abs(a.hi) < Long_MAX_NORMAL && Math.abs(b.hi) < Long_MAX_NORMAL) { - return Long_fromNumber(Long_toNumber(a) + Long_toNumber(b)); - } - var a_lolo = a.lo & 0xFFFF; - var a_lohi = a.lo >>> 16; - var a_hilo = a.hi & 0xFFFF; - var a_hihi = a.hi >>> 16; - var b_lolo = b.lo & 0xFFFF; - var b_lohi = b.lo >>> 16; - var b_hilo = b.hi & 0xFFFF; - var b_hihi = b.hi >>> 16; - var lolo = a_lolo + b_lolo | 0; - var lohi = a_lohi + b_lohi + (lolo >> 16) | 0; - var hilo = a_hilo + b_hilo + (lohi >> 16) | 0; - var hihi = a_hihi + b_hihi + (hilo >> 16) | 0; - return new Long(lolo & 0xFFFF | (lohi & 0xFFFF) << 16, hilo & 0xFFFF | (hihi & 0xFFFF) << 16); -} -function Long_inc(a) { - var lo = a.lo + 1 | 0; - var hi = a.hi; - if (lo === 0) { - hi = hi + 1 | 0; - } - return new Long(lo, hi); -} -function Long_dec(a) { - var lo = a.lo - 1 | 0; - var hi = a.hi; - if (lo === -1) { - hi = hi - 1 | 0; - } - return new Long(lo, hi); -} -function Long_neg(a) { - return Long_inc(new Long(a.lo ^ 0xFFFFFFFF, a.hi ^ 0xFFFFFFFF)); -} -function Long_sub(a, b) { - if (a.hi === a.lo >> 31 && b.hi === b.lo >> 31) { - return Long_fromNumber(a.lo - b.lo); - } - var a_lolo = a.lo & 0xFFFF; - var a_lohi = a.lo >>> 16; - var a_hilo = a.hi & 0xFFFF; - var a_hihi = a.hi >>> 16; - var b_lolo = b.lo & 0xFFFF; - var b_lohi = b.lo >>> 16; - var b_hilo = b.hi & 0xFFFF; - var b_hihi = b.hi >>> 16; - var lolo = a_lolo - b_lolo | 0; - var lohi = a_lohi - b_lohi + (lolo >> 16) | 0; - var hilo = a_hilo - b_hilo + (lohi >> 16) | 0; - var hihi = a_hihi - b_hihi + (hilo >> 16) | 0; - return new Long(lolo & 0xFFFF | (lohi & 0xFFFF) << 16, hilo & 0xFFFF | (hihi & 0xFFFF) << 16); -} -function Long_compare(a, b) { - var r = a.hi - b.hi; - if (r !== 0) { - return r; - } - r = (a.lo >>> 1) - (b.lo >>> 1); - if (r !== 0) { - return r; - } - return (a.lo & 1) - (b.lo & 1); -} -function Long_isPositive(a) { - return (a.hi & 0x80000000) === 0; -} -function Long_isNegative(a) { - return (a.hi & 0x80000000) !== 0; -} -function Long_mul(a, b) { - var positive = Long_isNegative(a) === Long_isNegative(b); - if (Long_isNegative(a)) { - a = Long_neg(a); - } - if (Long_isNegative(b)) { - b = Long_neg(b); - } - var a_lolo = a.lo & 0xFFFF; - var a_lohi = a.lo >>> 16; - var a_hilo = a.hi & 0xFFFF; - var a_hihi = a.hi >>> 16; - var b_lolo = b.lo & 0xFFFF; - var b_lohi = b.lo >>> 16; - var b_hilo = b.hi & 0xFFFF; - var b_hihi = b.hi >>> 16; - var lolo = 0; - var lohi = 0; - var hilo = 0; - var hihi = 0; - lolo = a_lolo * b_lolo | 0; - lohi = lolo >>> 16; - lohi = (lohi & 0xFFFF) + a_lohi * b_lolo | 0; - hilo = hilo + (lohi >>> 16) | 0; - lohi = (lohi & 0xFFFF) + a_lolo * b_lohi | 0; - hilo = hilo + (lohi >>> 16) | 0; - hihi = hilo >>> 16; - hilo = (hilo & 0xFFFF) + a_hilo * b_lolo | 0; - hihi = hihi + (hilo >>> 16) | 0; - hilo = (hilo & 0xFFFF) + a_lohi * b_lohi | 0; - hihi = hihi + (hilo >>> 16) | 0; - hilo = (hilo & 0xFFFF) + a_lolo * b_hilo | 0; - hihi = hihi + (hilo >>> 16) | 0; - hihi = hihi + a_hihi * b_lolo + a_hilo * b_lohi + a_lohi * b_hilo + a_lolo * b_hihi | 0; - var result = new Long(lolo & 0xFFFF | lohi << 16, hilo & 0xFFFF | hihi << 16); - return positive ? result : Long_neg(result); -} -function Long_div(a, b) { - if (Math.abs(a.hi) < Long_MAX_NORMAL && Math.abs(b.hi) < Long_MAX_NORMAL) { - return Long_fromNumber(Long_toNumber(a) / Long_toNumber(b)); - } - return (Long_divRem(a, b))[0]; -} -function Long_udiv(a, b) { - if (a.hi >= 0 && a.hi < Long_MAX_NORMAL && b.hi >= 0 && b.hi < Long_MAX_NORMAL) { - return Long_fromNumber(Long_toNumber(a) / Long_toNumber(b)); - } - return (Long_udivRem(a, b))[0]; -} -function Long_rem(a, b) { - if (Math.abs(a.hi) < Long_MAX_NORMAL && Math.abs(b.hi) < Long_MAX_NORMAL) { - return Long_fromNumber(Long_toNumber(a) % Long_toNumber(b)); - } - return (Long_divRem(a, b))[1]; -} -function Long_urem(a, b) { - if (a.hi >= 0 && a.hi < Long_MAX_NORMAL && b.hi >= 0 && b.hi < Long_MAX_NORMAL) { - return Long_fromNumber(Long_toNumber(a) / Long_toNumber(b)); - } - return (Long_udivRem(a, b))[1]; -} -function Long_divRem(a, b) { - if (b.lo === 0 && b.hi === 0) { - throw new Error("Division by zero"); - } - var positive = Long_isNegative(a) === Long_isNegative(b); - if (Long_isNegative(a)) { - a = Long_neg(a); - } - if (Long_isNegative(b)) { - b = Long_neg(b); - } - a = new LongInt(a.lo, a.hi, 0); - b = new LongInt(b.lo, b.hi, 0); - var q = LongInt_div(a, b); - a = new Long(a.lo, a.hi); - q = new Long(q.lo, q.hi); - return positive ? [q, a] : [Long_neg(q), Long_neg(a)]; -} -function Long_udivRem(a, b) { - if (b.lo === 0 && b.hi === 0) { - throw new Error("Division by zero"); - } - a = new LongInt(a.lo, a.hi, 0); - b = new LongInt(b.lo, b.hi, 0); - var q = LongInt_div(a, b); - a = new Long(a.lo, a.hi); - q = new Long(q.lo, q.hi); - return [q, a]; -} -function Long_shiftLeft16(a) { - return new Long(a.lo << 16, a.lo >>> 16 | a.hi << 16); -} -function Long_shiftRight16(a) { - return new Long(a.lo >>> 16 | a.hi << 16, a.hi >>> 16); -} -function Long_and(a, b) { - return new Long(a.lo & b.lo, a.hi & b.hi); -} -function Long_or(a, b) { - return new Long(a.lo | b.lo, a.hi | b.hi); -} -function Long_xor(a, b) { - return new Long(a.lo ^ b.lo, a.hi ^ b.hi); -} -function Long_shl(a, b) { - b &= 63; - if (b === 0) { - return a; - } else if (b < 32) { - return new Long(a.lo << b, a.lo >>> 32 - b | a.hi << b); - } else if (b === 32) { - return new Long(0, a.lo); - } else { - return new Long(0, a.lo << b - 32); - } -} -function Long_shr(a, b) { - b &= 63; - if (b === 0) { - return a; - } else if (b < 32) { - return new Long(a.lo >>> b | a.hi << 32 - b, a.hi >> b); - } else if (b === 32) { - return new Long(a.hi, a.hi >> 31); - } else { - return new Long(a.hi >> b - 32, a.hi >> 31); - } -} -function Long_shru(a, b) { - b &= 63; - if (b === 0) { - return a; - } else if (b < 32) { - return new Long(a.lo >>> b | a.hi << 32 - b, a.hi >>> b); - } else if (b === 32) { - return new Long(a.hi, 0); - } else { - return new Long(a.hi >>> b - 32, 0); - } -} -function LongInt(lo, hi, sup) { - this.lo = lo; - this.hi = hi; - this.sup = sup; -} -function LongInt_mul(a, b) { - var a_lolo = (a.lo & 0xFFFF) * b | 0; - var a_lohi = (a.lo >>> 16) * b | 0; - var a_hilo = (a.hi & 0xFFFF) * b | 0; - var a_hihi = (a.hi >>> 16) * b | 0; - var sup = a.sup * b | 0; - a_lohi = a_lohi + (a_lolo >>> 16) | 0; - a_hilo = a_hilo + (a_lohi >>> 16) | 0; - a_hihi = a_hihi + (a_hilo >>> 16) | 0; - sup = sup + (a_hihi >>> 16) | 0; - a.lo = a_lolo & 0xFFFF | a_lohi << 16; - a.hi = a_hilo & 0xFFFF | a_hihi << 16; - a.sup = sup & 0xFFFF; -} -function LongInt_sub(a, b) { - var a_lolo = a.lo & 0xFFFF; - var a_lohi = a.lo >>> 16; - var a_hilo = a.hi & 0xFFFF; - var a_hihi = a.hi >>> 16; - var b_lolo = b.lo & 0xFFFF; - var b_lohi = b.lo >>> 16; - var b_hilo = b.hi & 0xFFFF; - var b_hihi = b.hi >>> 16; - a_lolo = a_lolo - b_lolo | 0; - a_lohi = a_lohi - b_lohi + (a_lolo >> 16) | 0; - a_hilo = a_hilo - b_hilo + (a_lohi >> 16) | 0; - a_hihi = a_hihi - b_hihi + (a_hilo >> 16) | 0; - var sup = a.sup - b.sup + (a_hihi >> 16) | 0; - a.lo = a_lolo & 0xFFFF | a_lohi << 16; - a.hi = a_hilo & 0xFFFF | a_hihi << 16; - a.sup = sup; -} -function LongInt_add(a, b) { - var a_lolo = a.lo & 0xFFFF; - var a_lohi = a.lo >>> 16; - var a_hilo = a.hi & 0xFFFF; - var a_hihi = a.hi >>> 16; - var b_lolo = b.lo & 0xFFFF; - var b_lohi = b.lo >>> 16; - var b_hilo = b.hi & 0xFFFF; - var b_hihi = b.hi >>> 16; - a_lolo = a_lolo + b_lolo | 0; - a_lohi = a_lohi + b_lohi + (a_lolo >> 16) | 0; - a_hilo = a_hilo + b_hilo + (a_lohi >> 16) | 0; - a_hihi = a_hihi + b_hihi + (a_hilo >> 16) | 0; - var sup = a.sup + b.sup + (a_hihi >> 16) | 0; - a.lo = a_lolo & 0xFFFF | a_lohi << 16; - a.hi = a_hilo & 0xFFFF | a_hihi << 16; - a.sup = sup; -} -function LongInt_inc(a) { - a.lo = a.lo + 1 | 0; - if (a.lo === 0) { - a.hi = a.hi + 1 | 0; - if (a.hi === 0) { - a.sup = a.sup + 1 & 0xFFFF; - } - } -} -function LongInt_dec(a) { - a.lo = a.lo - 1 | 0; - if (a.lo === -1) { - a.hi = a.hi - 1 | 0; - if (a.hi === -1) { - a.sup = a.sup - 1 & 0xFFFF; - } - } -} -function LongInt_ucompare(a, b) { - var r = a.sup - b.sup; - if (r !== 0) { - return r; - } - r = (a.hi >>> 1) - (b.hi >>> 1); - if (r !== 0) { - return r; - } - r = (a.hi & 1) - (b.hi & 1); - if (r !== 0) { - return r; - } - r = (a.lo >>> 1) - (b.lo >>> 1); - if (r !== 0) { - return r; - } - return (a.lo & 1) - (b.lo & 1); -} -function LongInt_numOfLeadingZeroBits(a) { - var n = 0; - var d = 16; - while (d > 0) { - if (a >>> d !== 0) { - a >>>= d; - n = n + d | 0; - } - d = d / 2 | 0; - } - return 31 - n; -} -function LongInt_shl(a, b) { - if (b === 0) { - return; - } - if (b < 32) { - a.sup = (a.hi >>> 32 - b | a.sup << b) & 0xFFFF; - a.hi = a.lo >>> 32 - b | a.hi << b; - a.lo <<= b; - } else if (b === 32) { - a.sup = a.hi & 0xFFFF; - a.hi = a.lo; - a.lo = 0; - } else if (b < 64) { - a.sup = (a.lo >>> 64 - b | a.hi << b - 32) & 0xFFFF; - a.hi = a.lo << b; - a.lo = 0; - } else if (b === 64) { - a.sup = a.lo & 0xFFFF; - a.hi = 0; - a.lo = 0; - } else { - a.sup = a.lo << b - 64 & 0xFFFF; - a.hi = 0; - a.lo = 0; - } -} -function LongInt_shr(a, b) { - if (b === 0) { - return; - } - if (b === 32) { - a.lo = a.hi; - a.hi = a.sup; - a.sup = 0; - } else if (b < 32) { - a.lo = a.lo >>> b | a.hi << 32 - b; - a.hi = a.hi >>> b | a.sup << 32 - b; - a.sup >>>= b; - } else if (b === 64) { - a.lo = a.sup; - a.hi = 0; - a.sup = 0; - } else if (b < 64) { - a.lo = a.hi >>> b - 32 | a.sup << 64 - b; - a.hi = a.sup >>> b - 32; - a.sup = 0; - } else { - a.lo = a.sup >>> b - 64; - a.hi = 0; - a.sup = 0; - } -} -function LongInt_copy(a) { - return new LongInt(a.lo, a.hi, a.sup); -} -function LongInt_div(a, b) { - var bits = b.hi !== 0 ? LongInt_numOfLeadingZeroBits(b.hi) : LongInt_numOfLeadingZeroBits(b.lo) + 32; - var sz = 1 + (bits / 16 | 0); - var dividentBits = bits % 16; - LongInt_shl(b, bits); - LongInt_shl(a, dividentBits); - var q = new LongInt(0, 0, 0); - while (sz-- > 0) { - LongInt_shl(q, 16); - var digitA = (a.hi >>> 16) + 0x10000 * a.sup; - var digitB = b.hi >>> 16; - var digit = digitA / digitB | 0; - var t = LongInt_copy(b); - LongInt_mul(t, digit); - if (LongInt_ucompare(t, a) >= 0) { - while (LongInt_ucompare(t, a) > 0) { - LongInt_sub(t, b); - --digit; - } - } else { - while (true) { - var nextT = LongInt_copy(t); - LongInt_add(nextT, b); - if (LongInt_ucompare(nextT, a) > 0) { - break; - } - t = nextT; - ++digit; - } - } - LongInt_sub(a, t); - q.lo |= digit; - LongInt_shl(a, 16); - } - LongInt_shr(a, bits + 16); - return q; -} -function TeaVMThread(runner) { - this.status = 3; - this.stack = []; - this.suspendCallback = null; - this.runner = runner; - this.attribute = null; - this.completeCallback = null; -} -TeaVMThread.prototype.push = function() { - for (var i = 0;i < arguments.length;++i) { - this.stack.push(arguments[i]); - } - return this; -}; -TeaVMThread.prototype.s = TeaVMThread.prototype.push; -TeaVMThread.prototype.pop = function() { - return this.stack.pop(); -}; -TeaVMThread.prototype.l = TeaVMThread.prototype.pop; -TeaVMThread.prototype.isResuming = function() { - return this.status === 2; -}; -TeaVMThread.prototype.isSuspending = function() { - return this.status === 1; -}; -TeaVMThread.prototype.suspend = function(callback) { - this.suspendCallback = callback; - this.status = 1; -}; -TeaVMThread.prototype.start = function(callback) { - if (this.status !== 3) { - throw new Error("Thread already started"); - } - if ($rt_currentNativeThread !== null) { - throw new Error("Another thread is running"); - } - this.status = 0; - this.completeCallback = callback ? callback : function(result) { - if (result instanceof Error) { - throw result; - } - }; - this.run(); -}; -TeaVMThread.prototype.resume = function() { - if ($rt_currentNativeThread !== null) { - throw new Error("Another thread is running"); - } - this.status = 2; - this.run(); -}; -TeaVMThread.prototype.run = function() { - $rt_currentNativeThread = this; - var result; - try { - result = this.runner(); - } catch (e){ - result = e; - } finally { - $rt_currentNativeThread = null; - } - if (this.suspendCallback !== null) { - var self = this; - var callback = this.suspendCallback; - this.suspendCallback = null; - callback(function() { - self.resume(); - }); - } else if (this.status === 0) { - this.completeCallback(result); - } -}; -function $rt_suspending() { - var thread = $rt_nativeThread(); - return thread != null && thread.isSuspending(); -} -function $rt_resuming() { - var thread = $rt_nativeThread(); - return thread != null && thread.isResuming(); -} -function $rt_suspend(callback) { - var nativeThread = $rt_nativeThread(); - if (nativeThread === null) { - throw new Error("Suspension point reached from non-threading context (perhaps, from native JS method)."); - } - return nativeThread.suspend(callback); -} -function $rt_startThread(runner, callback) { - (new TeaVMThread(runner)).start(callback); -} -var $rt_currentNativeThread = null; -function $rt_nativeThread() { - return $rt_currentNativeThread; -} -function $rt_invalidPointer() { - throw new Error("Invalid recorded state"); -} -main = $rt_mainStarter(nle_Client_main); -(function() { - var c; - c = otjb_Window.prototype; - c.dispatchEvent = c.$dispatchEvent$exported$4; - c.addEventListener = c.$addEventListener$exported$0; - c.removeEventListener = c.$removeEventListener$exported$1; - c.getLength = c.$getLength$exported$5; - c.get = c.$get$exported$2; - c.addEventListener = c.$addEventListener$exported$6; - c.removeEventListener = c.$removeEventListener$exported$3; - c = nlea_EaglerAdapterImpl2$2.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$3.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$4.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$5.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$6.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$7.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$8.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$9.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$10.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$11.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$1.prototype; - c.stateChanged = c.$stateChanged$exported$0; - c = nlea_EaglerAdapterImpl2$18.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$17.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$15.prototype; - c.onSuccess = c.$onSuccess$exported$0; - c = nlea_EaglerAdapterImpl2$16.prototype; - c.onError = c.$onError$exported$0; - c = $java.otjc_JSArray.prototype; - c.getLength = c.$getLength$exported$1; - c.get = c.$get$exported$0; - c = nlea_EaglerAdapterImpl2$12.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$13.prototype; - c.handleEvent = c.$handleEvent$exported$0; - c = nlea_EaglerAdapterImpl2$14.prototype; - c.handleEvent = c.$handleEvent$exported$0; -})(); -})();